anthropics / anthropic-quickstarts
Source Code Overview

Analysis scope, overview of main, test, generated, deployment, build, and other code.

Source Code Analysis Scope
Files includes and excluded from analyses
mjs
txt
desktop
Overview of Analyzed Files
Basic stats on analyzed files
Intro
For analysis purposes we separate files in scope into several categories: main, test, generated, deployment and build, and other.

  • The main category contains all manually created source code files that are being used in the production.
  • Files in the main category are used as input for other analyses: logical decomposition, concerns, duplication, file size, unit size, and conditional complexity.
  • Test source code files are used only for testing of the product. These files are normally not deployed to production.
  • Build and deployment source code files are used to configure or support build and deployment process.
  • Generated source code files are automatically generated files that have not been manually changed after generation.
  • While a source code folder may contain a number of files, we are primarily interested in the source code files that are being written and maintained by developers.
  • Files containing binaries, documentation, or third-party libraries, for instance, are excluded from analysis. The exception are third-party libraries that have been changed by developers.

main7808 LOC (17%) 78 files
test497 LOC (1%) 6 files
generated17166 LOC (39%) 2 files
build and deployment151 LOC (<1%) 8 files
other18166 LOC (41%) 25 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 78 files match defined criteria (7,808 LOC, 100.0% vs. main code):
    • 31 *.tsx files (3,790 LOC)
    • 24 *.py files (2,113 LOC)
    • 11 *.ts files (1,169 LOC)
    • 1 *.js files (390 LOC)
    • 2 *.css files (167 LOC)
    • 2 *.html files (115 LOC)
    • 4 *.mjs files (33 LOC)
    • 3 *.toml files (31 LOC)
  • " *.tsx" is biggest, containing 48.54% of LOC.
  • " *.toml" is smallest, containing 0.4% of LOC.


*.tsx3790 LOC (48%) 31 files
*.py2113 LOC (27%) 24 files
*.ts1169 LOC (14%) 11 files
*.js390 LOC (4%) 1 file
*.css167 LOC (2%) 2 files
*.html115 LOC (1%) 2 files
*.mjs33 LOC (<1%) 4 files
*.toml31 LOC (<1%) 3 files
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*_test[.].*".
  • 6 files match defined criteria (497 LOC, 6.4% vs. main code). All matches are in *.py files.


*.py497 LOC (100%) 6 files
Generated Code
Automatically generated files, not manually changed after generation.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
  • 2 files match defined criteria (17,166 LOC, 219.9% vs. main code). All matches are in *.json files.


*.json17166 LOC (100%) 2 files
Build and Deployment Code
Source code used to configure or support build and deployment process.
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
  • 8 files match defined criteria (151 LOC, 1.9% vs. main code). All matches are in *.sh files.


*.sh151 LOC (100%) 8 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]svg".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]txt".
  • 25 files match defined criteria (18,166 LOC, 232.7% vs. main code):
    • 9 *.json files (17,440 LOC)
    • 7 *.md files (647 LOC)
    • 7 *.svg files (69 LOC)
    • 2 *.txt files (10 LOC)
  • " *.json" is biggest, containing 96% of LOC.
  • " *.txt" is smallest, containing 0.06% of LOC.


*.json17440 LOC (96%) 9 files
*.md647 LOC (3%) 7 files
*.svg69 LOC (<1%) 7 files
*.txt10 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 13:31