Skip to content

Stata files not picked up - when they are in cloc #1259

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
floswald opened this issue May 22, 2025 · 0 comments
Open

Stata files not picked up - when they are in cloc #1259

floswald opened this issue May 22, 2025 · 0 comments

Comments

@floswald
Copy link

Hi there

I was trying out tokei on this code repository: https://zenodo.org/records/15299342

the tree looks like this:

.
├── Manifest.toml
├── Project.toml
├── README.aux
├── README.bbl
├── README.fdb_latexmk
├── README.fls
├── README.log
├── README.pdf
├── README.synctex.gz
├── README.tex
├── code
│   ├── analysis
│   │   ├── EFC.jl
│   │   ├── TTTestimate_noallocation.jl
│   │   ├── TTTnew.jl
│   │   ├── TTTsetupEverywhere.jl
│   │   ├── TTTsetupNew.jl
│   │   ├── admindata_new.jl
│   │   ├── bootstrapFunctions2024.jl
│   │   ├── bootstrap_2024.jl
│   │   ├── counterfactuals_2024.jl
│   │   ├── describeAdditionalModels.jl
│   │   ├── describeFit2024.jl
│   │   ├── describeNoLOS2024.jl
│   │   ├── describeNumbers.jl
│   │   ├── describeParameters2024.jl
│   │   ├── describeResults2024.jl
│   │   ├── describeResultsFunctions2024.jl
│   │   ├── describe_extensions.jl
│   │   ├── estimate_2024.jl
│   │   ├── fitOutcomeModels2024.jl
│   │   ├── fitOutcomeModels2024_robustness.jl
│   │   ├── fitOutcomeModels_nonflagship.jl
│   │   ├── loadMicroData.jl
│   │   ├── loadSimulatedData.jl
│   │   ├── makeUnpackerTTT.jl
│   │   ├── makeportfolios.jl
│   │   ├── reversemodegradient_2024.jl
│   │   ├── reversemodegradientfunctions_2024.jl
│   │   ├── runCounterfactuals2024.jl
│   │   ├── run_2024.jl
│   │   ├── setup_2024.jl
│   │   ├── simulateData.jl
│   │   ├── simulateDataFunctions.jl
│   │   ├── simulateRawDatasets.jl
│   │   ├── startvals.jl
│   │   ├── startvals_2024.jl
│   │   └── tests_2024.jl
│   └── setup
│       ├── ExportCollegeNames.do
│       ├── Master.do
│       ├── UTA_TAMU_Admin.do
│       ├── aggregateMultiApps.do
│       ├── aggregatecols.do
│       ├── botf.tex
│       ├── botf2
│       ├── cleanRawSurvey.do
│       ├── crosswalk.do
│       ├── descriptive_AdminVSurvey.do
│       ├── encode_locations.do
│       ├── finaidvars.do
│       ├── geocode_colleges.do
│       ├── new_descriptive.do
│       ├── new_descriptive_setup.do
│       ├── outputToMatlab.do
│       ├── sample_balance_appendix.do
│       ├── seniorsvy.do
│       ├── sumstats1.do
│       ├── sumstats2.do
│       ├── sumstats3.do
│       ├── sumstats4.do
│       ├── sumstats5.do
│       └── topf.tex
├── data
│   ├── raw
│   │   ├── ICPSR_29841_simulated
│   │   ├── IPEDS_200304
│   │   ├── SAT-ACT crosswalk
│   │   ├── THEOP_public_simulated
│   │   ├── cps
│   │   └── geocoded
│   └── workfiles
│       └── toMatlab
├── intermediate
└── output
    ├── Numbers
    └── Tables

It seems the .do extension of stata source code is not being picked up correctly, even though I saw it in the list of languages. It does show up in cloc FWIW:

floswald@PTL11077 ~/D/replication_package> tokei .                       (base) 
===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 CSS                     1          135          121            0           14
 JavaScript              1          150           76           33           41
 Julia                  36         7019         5211         1185          623
 TeX                     3          691          466          139           86
 Plain Text              1       187701            0       187701            0
 TOML                    2         1777         1453            1          323
-------------------------------------------------------------------------------
 HTML                    1         4886         4525           20          341
 |- CSS                  1           19           17            0            2
 (Total)                           4905         4542           20          343
===============================================================================
 Total                  45       202359        11852       189079         1428
===============================================================================
floswald@PTL11077 ~/D/replication_package> cloc .                                                            (base) 
      95 text files.
      90 unique files.                              
      29 files ignored.

github.com/AlDanial/cloc v 2.02  T=0.70 s (128.5 files/s, 531218.0 lines/s)
-------------------------------------------------------------------------------
Language                     files          blank        comment           code
-------------------------------------------------------------------------------
Text                             1              0              0         187701
CSV                             19              0              0         164301
Julia                           36            681           1139           5199
HTML                             1            343             36           4525
Stata                           24            260            638           4351
TOML                             2            323              1           1453
TeX                              4             86            139            550
CSS                              1             14              0            121
JavaScript                       1             41             33             76
JSON                             1              0              0              2
-------------------------------------------------------------------------------
SUM:                            90           1748           1986         368279
-------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant