epam / pymol-open-source
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
fs
ui
txt
gitattributes
patch
gs
sty
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.

main286948 LOC (94%) 704 files
test3130 LOC (1%) 29 files
generated0 LOC (0%) 0 files
build and deployment47 LOC (<1%) 1 file
other12910 LOC (4%) 99 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ui
fs
gs
sty
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 704 files match defined criteria (286,948 LOC, 100.0% vs. main code):
    • 180 *.cpp files (151,456 LOC)
    • 207 *.py files (75,090 LOC)
    • 236 *.h files (33,228 LOC)
    • 39 *.c files (20,900 LOC)
    • 16 *.ui files (3,611 LOC)
    • 2 *.js files (1,231 LOC)
    • 21 *.fs files (880 LOC)
    • 1 *.gs files (339 LOC)
    • 1 *.hxx files (197 LOC)
    • 1 *.sty files (16 LOC)
  • " *.cpp" is biggest, containing 52.78% of LOC.
  • " *.sty" is smallest, containing 0.01% of LOC.


*.cpp151456 LOC (52%) 180 files
*.py75090 LOC (26%) 207 files
*.h33228 LOC (11%) 236 files
*.c20900 LOC (7%) 39 files
*.ui3611 LOC (1%) 16 files
*.js1231 LOC (<1%) 2 files
*.fs880 LOC (<1%) 21 files
*.gs339 LOC (<1%) 1 file
*.hxx197 LOC (<1%) 1 file
*.sty16 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]est/.*".
    • files with paths like ".*/test[.].*".
  • 29 files match defined criteria (3,130 LOC, 1.1% vs. main code). All matches are in *.py files.


*.py3130 LOC (100%) 29 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 ".*/[.]gitattributes".
  • 1 file matches defined criteria (47 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh47 LOC (100%) 1 file
Other Code
patch
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]patch".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*/[Dd]emos?/.*".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]txt".
  • 99 files match defined criteria (12,910 LOC, 4.5% vs. main code):
    • 15 *.js files (7,737 LOC)
    • 53 *.py files (2,439 LOC)
    • 26 *.html files (2,430 LOC)
    • 1 *.patch files (206 LOC)
    • 2 *.svg files (89 LOC)
    • 1 *.md files (8 LOC)
    • 1 *.txt files (1 LOC)
  • " *.js" is biggest, containing 59.93% of LOC.
  • " *.txt" is smallest, containing 0.01% of LOC.


*.js7737 LOC (59%) 15 files
*.py2439 LOC (18%) 53 files
*.html2430 LOC (18%) 26 files
*.patch206 LOC (1%) 1 file
*.svg89 LOC (<1%) 2 files
*.md8 LOC (<1%) 1 file
*.txt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-01-10 14:41