alibaba / EasyRec
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
proto
txt
lua
gitattributes
in
cfg
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.

main44697 LOC (76%) 288 files
test5265 LOC (9%) 33 files
generated0 LOC (0%) 0 files
build and deployment984 LOC (1%) 23 files
other7308 LOC (12%) 119 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
lua
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 288 files match defined criteria (44,697 LOC, 100.0% vs. main code):
    • 235 *.py files (40,491 LOC)
    • 45 *.proto files (2,343 LOC)
    • 2 *.lua files (1,099 LOC)
    • 2 *.xml files (436 LOC)
    • 2 *.cc files (296 LOC)
    • 1 *.cfg files (29 LOC)
    • 1 *.in files (3 LOC)
  • " *.py" is biggest, containing 90.59% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.py40491 LOC (90%) 235 files
*.proto2343 LOC (5%) 45 files
*.lua1099 LOC (2%) 2 files
*.xml436 LOC (<1%) 2 files
*.cc296 LOC (<1%) 2 files
*.cfg29 LOC (<1%) 1 file
*.in3 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 ".*_test[.].*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/[Tt]est/.*".
  • 33 files match defined criteria (5,265 LOC, 11.8% vs. main code):
    • 31 *.py files (5,231 LOC)
    • 2 *.sh files (34 LOC)
  • " *.py" is biggest, containing 99.35% of LOC.
  • " *.sh" is smallest, containing 0.65% of LOC.


*.py5231 LOC (99%) 31 files
*.sh34 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 ".*/[.]gitattributes".
    • files with paths like ".*[.]bat".
  • 23 files match defined criteria (984 LOC, 2.2% vs. main code). All matches are in *.sh files.


*.sh984 LOC (100%) 23 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]svg".
  • 119 files match defined criteria (7,308 LOC, 16.4% vs. main code):
    • 29 *.json files (4,738 LOC)
    • 18 *.md files (1,367 LOC)
    • 60 *.sql files (958 LOC)
    • 4 *.py files (171 LOC)
    • 5 *.txt files (43 LOC)
    • 3 *.sh files (31 LOC)
  • " *.json" is biggest, containing 64.83% of LOC.
  • " *.sh" is smallest, containing 0.42% of LOC.


*.json4738 LOC (64%) 29 files
*.md1367 LOC (18%) 18 files
*.sql958 LOC (13%) 60 files
*.py171 LOC (2%) 4 files
*.txt43 LOC (<1%) 5 files
*.sh31 LOC (<1%) 3 files
Analyzers
Info about analyzers used for source code examinations.


2025-05-14 18:53