Source Code Analysis Scope
Files includes and excluded from analyses
jsonl
npmrc
pkl
ini
mjs

scoping details...
  • 19 extensions are included in analyses: py, ipynb, md, txt, json, yaml, yml, gitignore, sh, jsonl, toml, ts, npmrc, pkl, dockerignore, xml, c, ini, mjs
  • 8 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/docs/.*" (Documentation) (2 files).
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (12 files).
    • exclude files with path like ".*/git[-]commit[-]trailers[.]txt" (Git history trailers) (1 file).
    • 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) (1 file).
    • exclude files with path like ".*/_sokrates/.*" (Sokrates files) (0 files).
    • exclude files with path like ".*/_sokrates_landscape/.*" (Sokrates landscape files) (0 files).
    • exclude files with path like ".*/sokrates_.*?[.]json" (Sokrates conventions and configurations) (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.
main51430 LOC (81%) 183 files
test1643 LOC (2%) 20 files
generated0 LOC (0%) 0 files
build and deployment1599 LOC (2%) 40 files
other8489 LOC (13%) 147 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
mjs
jsonl
Explore:   circles  |  sunburst

ipynb35275 LOC (68%) 51 files
py13292 LOC (25%) 93 files
yaml2057 LOC (3%) 21 files
ts524 LOC (1%) 6 files
toml99 LOC (<1%) 4 files
mjs56 LOC (<1%) 1 file
jsonl54 LOC (<1%) 5 files
c39 LOC (<1%) 1 file
xml34 LOC (<1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 183 files match defined criteria (51,430 LOC, 100.0% vs. main code):
    • 51 ipynb files (35,275 LOC)
    • 93 py files (13,292 LOC)
    • 21 yaml files (2,057 LOC)
    • 6 ts files (524 LOC)
    • 4 toml files (99 LOC)
    • 1 mjs files (56 LOC)
    • 5 jsonl files (54 LOC)
    • 1 c files (39 LOC)
    • 1 xml files (34 LOC)
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
Explore:   circles  |  sunburst

py1271 LOC (77%) 19 files
ipynb372 LOC (22%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/[Tt]ests/.*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*_tests[.].*".
  • 20 files match defined criteria (1,643 LOC, 3.2% vs. main code):
    • 19 py files (1,271 LOC)
    • 1 ipynb files (372 LOC)
Build and Deployment Code
Source code used to configure or support build and deployment process.
npmrc
Explore:   circles  |  sunburst

yaml910 LOC (56%) 11 files
sh300 LOC (18%) 9 files
gitignore246 LOC (15%) 13 files
toml126 LOC (7%) 3 files
dockerignore14 LOC (<1%) 1 file
npmrc3 LOC (<1%) 3 files

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*/requirements[a-zA-Z0-9._-]*[.]txt".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/pyproject[.]toml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]npmrc".
    • files with paths like "(.*/)?[.]npmrc".
    • files with paths like ".*/package[.]json".
    • files with paths like ".*/docker[-]compose[.]yml".
    • files with paths like ".*/Dockerfile[.][a-zA-Z0-9._-]+".
    • files with paths like ".*/[.]github/workflows/.*[.]ya?ml".
  • 40 files match defined criteria (1,599 LOC, 3.1% vs. main code):
    • 11 yaml files (910 LOC)
    • 9 sh files (300 LOC)
    • 13 gitignore files (246 LOC)
    • 3 toml files (126 LOC)
    • 1 dockerignore files (14 LOC)
    • 3 npmrc files (3 LOC)
Other Code
ini
Explore:   circles  |  sunburst

md4608 LOC (54%) 79 files
json2503 LOC (29%) 31 files
txt848 LOC (9%) 35 files
py386 LOC (4%) 1 file
ini144 LOC (1%) 1 file

scope details...
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]json".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]ini".
  • 147 files match defined criteria (8,489 LOC, 16.5% vs. main code):
    • 79 md files (4,608 LOC)
    • 31 json files (2,503 LOC)
    • 35 txt files (848 LOC)
    • 1 py files (386 LOC)
    • 1 ini files (144 LOC)
About This Analysis
learn more about scopes (main, test, generated, build, 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.

learn more about used code analyzers...
  • *.ipynb 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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.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
  • *.jsonl files are analyzed with JsonAnalyzer:
    • 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
  • *.c files are analyzed with CStyleAnalyzer:
    • 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
  • *.xml files are analyzed with XmlAnalyzer:
    • 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