mysql / mysql-connector-python
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
mo
po
proto
txt
spec
in
clang-format
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.

main42955 LOC (43%) 153 files
test51149 LOC (51%) 99 files
generated0 LOC (0%) 0 files
build and deployment0 LOC (0%) 0 files
other4772 LOC (4%) 19 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
proto
spec
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 153 files match defined criteria (42,955 LOC, 100.0% vs. main code):
    • 122 *.py files (35,624 LOC)
    • 4 *.c files (3,222 LOC)
    • 12 *.proto files (2,229 LOC)
    • 2 *.cc files (777 LOC)
    • 2 *.spec files (498 LOC)
    • 6 *.h files (333 LOC)
    • 3 *.toml files (241 LOC)
    • 2 *.in files (31 LOC)
  • " *.py" is biggest, containing 82.93% of LOC.
  • " *.in" is smallest, containing 0.07% of LOC.


*.py35624 LOC (82%) 122 files
*.c3222 LOC (7%) 4 files
*.proto2229 LOC (5%) 12 files
*.cc777 LOC (1%) 2 files
*.spec498 LOC (1%) 2 files
*.h333 LOC (<1%) 6 files
*.toml241 LOC (<1%) 3 files
*.in31 LOC (<1%) 2 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 ".*_tests[.].*".
  • 99 files match defined criteria (51,149 LOC, 119.1% vs. main code):
    • 89 *.py files (50,102 LOC)
    • 6 *.sql files (653 LOC)
    • 4 *.sh files (394 LOC)
  • " *.py" is biggest, containing 97.95% of LOC.
  • " *.sh" is smallest, containing 0.77% of LOC.


*.py50102 LOC (97%) 89 files
*.sql653 LOC (1%) 6 files
*.sh394 LOC (<1%) 4 files
Other Code
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[Ee]xamples/.*".
    • files with paths like ".*[.](rst|rest|resttxt|rsttxt)".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]po".
    • files with paths like ".*[.]svg".
  • 19 files match defined criteria (4,772 LOC, 11.1% vs. main code):
    • 5 *.txt files (3,868 LOC)
    • 11 *.py files (494 LOC)
    • 2 *.md files (254 LOC)
    • 1 *.rst files (156 LOC)
  • " *.txt" is biggest, containing 81.06% of LOC.
  • " *.rst" is smallest, containing 3.27% of LOC.


*.txt3868 LOC (81%) 5 files
*.py494 LOC (10%) 11 files
*.md254 LOC (5%) 2 files
*.rst156 LOC (3%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-09 19:48