neo-ai / neo-ai-dlr
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
txt
properties
pro
cmake
cfg
in
clang-format
gitmodules
  • 23 extensions are included in analyses: py, cc, java, xml, sh, md, txt, h, ipynb, gradle, gitignore, rst, properties, pro, cmake, json, hpp, js, bat, cfg, in, clang-format, gitmodules
  • 9 criteria are used to exclude files from analysis:
    • exclude files with path like ".*/[.][a-zA-Z0-9_]+.*" (Hidden files and folders) (10 files).
    • exclude files with path like ".*/gradle/wrapper/.*" (Gradle) (2 files).
    • exclude files with path like ".*/proguard[-]rules[.]pro" (ProGuard) (2 files).
    • exclude files with path like ".*/(3rd|[Tt]hird)[-_]?[Pp]arty/.*" (Dependencies) (2 files).
    • 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).
    • exclude files with path like ".*/docs?/_?(build|themes?|templates?|static)/.*" (Sphinx) (1 file).
    • exclude files with path like ".*[.]txt" (Text files) (11 files).
    • exclude files with path like ".*/sokrates_conventions[.]json" (Sokrates scoping conventions) (1 file).
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.

main7008 LOC (38%) 74 files
test3191 LOC (17%) 26 files
generated0 LOC (0%) 0 files
build and deployment237 LOC (1%) 13 files
other7714 LOC (42%) 79 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cmake
cfg
in
pro
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 74 files match defined criteria (7,008 lines of code, 100.0% vs. main code):
    • 11 *.cc files (3,164 lines of code)
    • 46 *.py files (2,779 lines of code)
    • 9 *.h files (751 lines of code)
    • 1 *.js files (183 lines of code)
    • 3 *.cmake files (97 lines of code)
    • 1 *.java files (26 lines of code)
    • 1 *.cfg files (5 lines of code)
    • 1 *.in files (2 lines of code)
    • 1 *.pro files (1 lines of code)
  • " *.cc" is biggest, containing 45.15% of code.
  • " *.pro" is smallest, containing 0.01% of code.


*.cc3164 LOC (45%) 11 files
*.py2779 LOC (39%) 46 files
*.h751 LOC (10%) 9 files
*.js183 LOC (2%) 1 files
*.cmake97 LOC (1%) 3 files
*.java26 LOC (<1%) 1 files
*.cfg5 LOC (<1%) 1 files
*.in2 LOC (<1%) 1 files
*.pro1 LOC (<1%) 1 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_.*".
    • files with paths like ".*_test[.].*".
    • files with paths like ".*/[Tt]est/.*".
    • files with any line of content like ".*/simpletest/.*".
  • 26 files match defined criteria (3,191 lines of code, 45.5% vs. main code):
    • 15 *.cc files (2,693 lines of code)
    • 8 *.py files (343 lines of code)
    • 1 *.hpp files (94 lines of code)
    • 2 *.sh files (61 lines of code)
  • " *.cc" is biggest, containing 84.39% of code.
  • " *.sh" is smallest, containing 1.91% of code.


*.cc2693 LOC (84%) 15 files
*.py343 LOC (10%) 8 files
*.hpp94 LOC (2%) 1 files
*.sh61 LOC (1%) 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]gradle".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/[.]gitmodules".
  • 13 files match defined criteria (237 lines of code, 3.4% vs. main code):
    • 10 *.sh files (181 lines of code)
    • 3 *.gradle files (56 lines of code)
  • " *.sh" is biggest, containing 76.37% of code.
  • " *.gradle" is smallest, containing 23.63% of code.


*.sh181 LOC (76%) 10 files
*.gradle56 LOC (23%) 3 files
Other Code
properties
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 ".*[.]properties".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.](xml|xsd|robot|sql|pgsql|dashboard|profile|ipynb|raml|avsc|al)".
  • 79 files match defined criteria (7,714 lines of code, 110.1% vs. main code):
    • 7 *.ipynb files (3,367 lines of code)
    • 21 *.java files (2,219 lines of code)
    • 18 *.xml files (659 lines of code)
    • 10 *.md files (518 lines of code)
    • 5 *.rst files (301 lines of code)
    • 2 *.cc files (251 lines of code)
    • 5 *.gradle files (171 lines of code)
    • 4 *.py files (87 lines of code)
    • 4 *.properties files (77 lines of code)
    • 1 *.bat files (61 lines of code)
    • 1 *.sh files (2 lines of code)
    • 1 *.json files (1 lines of code)
  • " *.ipynb" is biggest, containing 43.65% of code.
  • " *.json" is smallest, containing 0.01% of code.


*.ipynb3367 LOC (43%) 7 files
*.java2219 LOC (28%) 21 files
*.xml659 LOC (8%) 18 files
*.md518 LOC (6%) 10 files
*.rst301 LOC (3%) 5 files
*.cc251 LOC (3%) 2 files
*.gradle171 LOC (2%) 5 files
*.py87 LOC (1%) 4 files
*.properties77 LOC (<1%) 4 files
*.bat61 LOC (<1%) 1 files
*.sh2 LOC (<1%) 1 files
*.json1 LOC (<1%) 1 files
Analyzers
Info about analyzers used for source code examinations.
  • *.cc files are analyzed with CppAnalyzer:
    • 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
  • *.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
  • *.h files are analyzed with CppAnalyzer:
    • 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
  • *.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
  • *.cmake 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
  • *.java files are analyzed with JavaAnalyzer:
    • 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 (based on package names)
  • *.cfg files are analyzed with CfgAnalyzer:
    • 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
  • *.in files are analyzed with RustAnalyzer:
    • 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
  • *.pro 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


2022-02-01 03:12