aliyun / aliyun-odps-python-sdk
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
po
pxd
txt
proto
xsd
pxi
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.

main81315 LOC (70%) 392 files
test31198 LOC (26%) 177 files
generated322 LOC (<1%) 2 files
build and deployment2 LOC (<1%) 1 file
other2889 LOC (2%) 22 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
xsd
proto
pxd
pxi
cfg
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 392 files match defined criteria (81,315 LOC, 100.0% vs. main code):
    • 339 *.py files (69,749 LOC)
    • 10 *.xml files (4,138 LOC)
    • 7 *.js files (2,836 LOC)
    • 9 *.pyx files (2,510 LOC)
    • 2 *.xsd files (573 LOC)
    • 5 *.proto files (516 LOC)
    • 10 *.pxd files (245 LOC)
    • 2 *.c files (200 LOC)
    • 1 *.h files (152 LOC)
    • 1 *.pxi files (115 LOC)
    • 2 *.css files (107 LOC)
    • 1 *.cfg files (69 LOC)
    • 1 *.toml files (61 LOC)
    • 1 *.pl files (33 LOC)
    • 1 *.in files (11 LOC)
  • " *.py" is biggest, containing 85.78% of LOC.
  • " *.in" is smallest, containing 0.01% of LOC.


*.py69749 LOC (85%) 339 files
*.xml4138 LOC (5%) 10 files
*.js2836 LOC (3%) 7 files
*.pyx2510 LOC (3%) 9 files
*.xsd573 LOC (<1%) 2 files
*.proto516 LOC (<1%) 5 files
*.pxd245 LOC (<1%) 10 files
*.c200 LOC (<1%) 2 files
*.h152 LOC (<1%) 1 file
*.pxi115 LOC (<1%) 1 file
*.css107 LOC (<1%) 2 files
*.cfg69 LOC (<1%) 1 file
*.toml61 LOC (<1%) 1 file
*.pl33 LOC (<1%) 1 file
*.in11 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[.].*".
  • 177 files match defined criteria (31,198 LOC, 38.4% vs. main code). All matches are in *.py files.


*.py31198 LOC (100%) 177 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 ".*[.](py|java|h|cc|cpp|m|rb|php)" AND any line of content like ".*Generated by the protocol buffer compiler[.][ ]+DO NOT EDIT[!].*".
    • files with any line of content like "\<\!\-\-[ ]*Generated by .*".
  • 2 files match defined criteria (322 LOC, 0.4% vs. main code). All matches are in *.py files.


*.py322 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 ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]bat".
    • files with paths like ".*/package[.]json".
  • 1 file matches defined criteria (2 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh2 LOC (100%) 1 file
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]json".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
  • 22 files match defined criteria (2,889 LOC, 3.6% vs. main code):
    • 8 *.txt files (1,740 LOC)
    • 11 *.py files (813 LOC)
    • 1 *.rst files (161 LOC)
    • 1 *.md files (153 LOC)
    • 1 *.json files (22 LOC)
  • " *.txt" is biggest, containing 60.23% of LOC.
  • " *.json" is smallest, containing 0.76% of LOC.


*.txt1740 LOC (60%) 8 files
*.py813 LOC (28%) 11 files
*.rst161 LOC (5%) 1 file
*.md153 LOC (5%) 1 file
*.json22 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-15 04:53