anthropics / claude-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
desktop
mjs
ini
  • 19 extensions are included in analyses: py, tsx, sh, md, json, ts, svg, txt, gitignore, toml, desktop, html, yaml, js, mjs, css, dockerignore, ipynb, ini
  • 2 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/git[-]history[.]txt" (Git history) (1 file).
    • exclude files with path like ".*/git[-][a-zA-Z0-9_]+[.]txt" (Git data exports for sokrates analyses) (0 files).
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.

main13420 LOC (24%) 142 files
test3075 LOC (5%) 31 files
generated17166 LOC (31%) 2 files
build and deployment771 LOC (1%) 31 files
other20290 LOC (37%) 45 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
desktop
mjs
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 142 files match defined criteria (13,420 LOC, 100.0% vs. main code):
    • 71 *.py files (6,318 LOC)
    • 31 *.tsx files (3,792 LOC)
    • 11 *.ts files (1,169 LOC)
    • 5 *.js files (1,032 LOC)
    • 6 *.html files (712 LOC)
    • 3 *.css files (239 LOC)
    • 4 *.toml files (53 LOC)
    • 6 *.desktop files (48 LOC)
    • 4 *.mjs files (33 LOC)
    • 1 *.yaml files (24 LOC)
  • " *.py" is biggest, containing 47.08% of LOC.
  • " *.yaml" is smallest, containing 0.18% of LOC.


*.py6318 LOC (47%) 71 files
*.tsx3792 LOC (28%) 31 files
*.ts1169 LOC (8%) 11 files
*.js1032 LOC (7%) 5 files
*.html712 LOC (5%) 6 files
*.css239 LOC (1%) 3 files
*.toml53 LOC (<1%) 4 files
*.desktop48 LOC (<1%) 6 files
*.mjs33 LOC (<1%) 4 files
*.yaml24 LOC (<1%) 1 file
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[.].*".
    • files with paths like ".*/test_.*".
  • 31 files match defined criteria (3,075 LOC, 22.9% vs. main code). All matches are in *.py files.


*.py3075 LOC (100%) 31 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, 127.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 ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[.]dockerignore".
    • files with paths like "(.*/)?[.]dockerignore".
    • files with paths like ".*/setup[.]py".
    • files with paths like "(.*/)?[.]eslintrc([.].*)?".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/package[-]lock[.]json".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
    • files with paths like "(.*/)?[.](idea|vscode|vs|gradle|mvn|settings|metadata|circleci)/.*".
  • 31 files match defined criteria (771 LOC, 5.7% vs. main code):
    • 16 *.sh files (312 LOC)
    • 3 *.yaml files (221 LOC)
    • 7 *.gitignore files (139 LOC)
    • 3 *.toml files (54 LOC)
    • 1 *.py files (28 LOC)
    • 1 *.dockerignore files (17 LOC)
  • " *.sh" is biggest, containing 40.47% of LOC.
  • " *.dockerignore" is smallest, containing 2.2% of LOC.


*.sh312 LOC (40%) 16 files
*.yaml221 LOC (28%) 3 files
*.gitignore139 LOC (18%) 7 files
*.toml54 LOC (7%) 3 files
*.py28 LOC (3%) 1 file
*.dockerignore17 LOC (2%) 1 file
Other Code
ini
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]ini".
    • files with paths like ".*[.]svg".
  • 45 files match defined criteria (20,290 LOC, 151.2% vs. main code):
    • 14 *.json files (17,569 LOC)
    • 16 *.md files (1,801 LOC)
    • 7 *.txt files (823 LOC)
    • 7 *.svg files (69 LOC)
    • 1 *.ini files (28 LOC)
  • " *.json" is biggest, containing 86.59% of LOC.
  • " *.ini" is smallest, containing 0.14% of LOC.


*.json17569 LOC (86%) 14 files
*.md1801 LOC (8%) 16 files
*.txt823 LOC (4%) 7 files
*.svg69 LOC (<1%) 7 files
*.ini28 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.py files are analyzed with PythonAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Basic heuristic dependency analysis
  • *.tsx files are analyzed with TypeScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.ts files are analyzed with TypeScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.js files are analyzed with JavaScriptAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • No dependency analysis
  • *.html files are analyzed with HtmlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • Unit size analysis
    • Conditional complexity analysis
    • Advanced heuristic dependency analysis
  • *.css files are analyzed with CssAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.toml files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.desktop files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.mjs files are analyzed with DefaultLanguageAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Basic code cleaning (empty lines removed for LOC calculations and duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis
  • *.yaml files are analyzed with YamlAnalyzer:
    • All basic standard analyses supported (source code overview, duplication, file size, concerns, findings, metrics, controls)
    • Advanced code cleaning (empty lines and comments removed for LOC calculations, additional cleaning for duplication calculations)
    • No unit size analysis
    • No conditional complexity analysis
    • No dependency analysis


2026-06-24 10:44