epam / opencv
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
cl
in
xaml
project
classpath
prefs
vcxproj
props
filters
mk
cmakein
hlsl
csproj
cmd
resx
patch
gitattributes
cproject
sty
jsproj
s
bib
properties
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.

main508056 LOC (77%) 1,383 files
test75813 LOC (11%) 395 files
generated264 LOC (<1%) 5 files
build and deployment247 LOC (<1%) 17 files
other74720 LOC (11%) 767 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
cl
in
bib
sty
cmd
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 1383 files match defined criteria (508,056 LOC, 100.0% vs. main code):
    • 523 *.cpp files (285,837 LOC)
    • 401 *.hpp files (71,104 LOC)
    • 21 *.xml files (62,369 LOC)
    • 120 *.cu files (29,814 LOC)
    • 68 *.cl files (17,572 LOC)
    • 88 *.h files (12,811 LOC)
    • 53 *.cmake files (9,848 LOC)
    • 25 *.py files (8,392 LOC)
    • 42 *.java files (4,615 LOC)
    • 8 *.mm files (3,243 LOC)
    • 27 *.in files (1,171 LOC)
    • 1 *.bib files (849 LOC)
    • 1 *.ps1 files (323 LOC)
    • 1 *.sty files (41 LOC)
    • 1 *.css files (30 LOC)
    • 1 *.js files (16 LOC)
    • 1 *.html files (15 LOC)
    • 1 *.cmd files (6 LOC)
  • " *.cpp" is biggest, containing 56.26% of LOC.
  • " *.cmd" is smallest, containing 0% of LOC.


*.cpp285837 LOC (56%) 523 files
*.hpp71104 LOC (13%) 401 files
*.xml62369 LOC (12%) 21 files
*.cu29814 LOC (5%) 120 files
*.cl17572 LOC (3%) 68 files
*.h12811 LOC (2%) 88 files
*.cmake9848 LOC (1%) 53 files
*.py8392 LOC (1%) 25 files
*.java4615 LOC (<1%) 42 files
*.mm3243 LOC (<1%) 8 files
*.in1171 LOC (<1%) 27 files
*.bib849 LOC (<1%) 1 file
*.ps1323 LOC (<1%) 1 file
*.sty41 LOC (<1%) 1 file
*.css30 LOC (<1%) 1 file
*.js16 LOC (<1%) 1 file
*.html15 LOC (<1%) 1 file
*.cmd6 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[.].*".
    • files with paths like ".*/test_.*".
    • files with paths like ".*/test[.].*".
    • files with paths like ".*/tests_.*".
  • 395 files match defined criteria (75,813 LOC, 14.9% vs. main code):
    • 231 *.cpp files (59,848 LOC)
    • 91 *.java files (10,921 LOC)
    • 14 *.cu files (1,826 LOC)
    • 35 *.hpp files (1,625 LOC)
    • 12 *.py files (1,322 LOC)
    • 12 *.h files (271 LOC)
  • " *.cpp" is biggest, containing 78.94% of LOC.
  • " *.h" is smallest, containing 0.36% of LOC.


*.cpp59848 LOC (78%) 231 files
*.java10921 LOC (14%) 91 files
*.cu1826 LOC (2%) 14 files
*.hpp1625 LOC (2%) 35 files
*.py1322 LOC (1%) 12 files
*.h271 LOC (<1%) 12 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 ".*[.]cs" AND any line of content like "[/][/][ ]*".
    • files with paths like ".*[.]h" AND any line of content like ".* DO NOT EDIT THIS FILE [-] it is machine generated .*".
    • files with paths like ".*[.](html|html|xhtml)" AND any line of content like "[ ]*[<]meta name[=]"generator" .*".
  • 5 files match defined criteria (264 LOC, 0.1% vs. main code):
    • 3 *.cs files (203 LOC)
    • 1 *.html files (39 LOC)
    • 1 *.h files (22 LOC)
  • " *.cs" is biggest, containing 76.89% of LOC.
  • " *.h" is smallest, containing 8.33% of LOC.


*.cs203 LOC (76%) 3 files
*.html39 LOC (14%) 1 file
*.h22 LOC (8%) 1 file
Build and Deployment Code
Source code used to configure or support build and deployment process.
mk
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]bat".
    • files with paths like ".*/build[.]xml".
    • files with paths like ".*/AndroidManifest[.]xml".
    • files with paths like ".*[.]sh".
    • files with paths like ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]csproj".
    • files with paths like ".*[.]mk".
    • files with paths like ".*/[.]gitattributes".
  • 17 files match defined criteria (247 LOC, 0.0% vs. main code):
    • 5 *.xml files (130 LOC)
    • 2 *.bat files (66 LOC)
    • 8 *.sh files (38 LOC)
    • 2 *.mk files (13 LOC)
  • " *.xml" is biggest, containing 52.63% of LOC.
  • " *.mk" is smallest, containing 5.26% of LOC.


*.xml130 LOC (52%) 5 files
*.bat66 LOC (26%) 2 files
*.sh38 LOC (15%) 8 files
*.mk13 LOC (5%) 2 files
Other Code
txt
xaml
vcxproj
csproj
filters
props
hlsl
jsproj
cmd
mk
properties
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*[.]properties".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[Ss]amples/.*".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]markdown".
    • files with paths like ".*[.]svg".
    • files with paths like ".*[.]patch".
  • 767 files match defined criteria (74,720 LOC, 14.7% vs. main code):
    • 229 *.cpp files (32,245 LOC)
    • 190 *.markdown files (21,198 LOC)
    • 53 *.py files (3,836 LOC)
    • 83 *.txt files (3,438 LOC)
    • 54 *.h files (2,277 LOC)
    • 21 *.xaml files (2,118 LOC)
    • 36 *.xml files (1,977 LOC)
    • 19 *.java files (1,971 LOC)
    • 10 *.vcxproj files (1,850 LOC)
    • 15 *.cs files (795 LOC)
    • 4 *.hpp files (536 LOC)
    • 3 *.csproj files (479 LOC)
    • 8 *.filters files (347 LOC)
    • 9 *.props files (329 LOC)
    • 3 *.js files (325 LOC)
    • 1 *.svg files (233 LOC)
    • 2 *.css files (183 LOC)
    • 4 *.hlsl files (104 LOC)
    • 1 *.jsproj files (102 LOC)
    • 4 *.scala files (93 LOC)
    • 3 *.html files (81 LOC)
    • 2 *.md files (72 LOC)
    • 2 *.cmd files (46 LOC)
    • 3 *.clj files (30 LOC)
    • 4 *.mk files (26 LOC)
    • 2 *.sh files (15 LOC)
    • 1 *.properties files (13 LOC)
    • 1 *.sbt files (1 LOC)
  • " *.cpp" is biggest, containing 43.15% of LOC.
  • " *.sbt" is smallest, containing 0% of LOC.


*.cpp32245 LOC (43%) 229 files
*.markdown21198 LOC (28%) 190 files
*.py3836 LOC (5%) 53 files
*.txt3438 LOC (4%) 83 files
*.h2277 LOC (3%) 54 files
*.xaml2118 LOC (2%) 21 files
*.xml1977 LOC (2%) 36 files
*.java1971 LOC (2%) 19 files
*.vcxproj1850 LOC (2%) 10 files
*.cs795 LOC (1%) 15 files
*.hpp536 LOC (<1%) 4 files
*.csproj479 LOC (<1%) 3 files
*.filters347 LOC (<1%) 8 files
*.props329 LOC (<1%) 9 files
*.js325 LOC (<1%) 3 files
*.svg233 LOC (<1%) 1 file
*.css183 LOC (<1%) 2 files
*.hlsl104 LOC (<1%) 4 files
*.jsproj102 LOC (<1%) 1 file
*.scala93 LOC (<1%) 4 files
*.html81 LOC (<1%) 3 files
*.md72 LOC (<1%) 2 files
*.cmd46 LOC (<1%) 2 files
*.clj30 LOC (<1%) 3 files
*.mk26 LOC (<1%) 4 files
*.sh15 LOC (<1%) 2 files
*.properties13 LOC (<1%) 1 file
*.sbt1 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.
  • *.cpp 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
  • *.hpp 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
  • *.xml files are analyzed with XmlAnalyzer:
    • 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
  • *.cu 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
  • *.cl 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
  • *.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
  • *.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
  • *.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
  • *.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)
  • *.mm 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
  • *.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
  • *.bib 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
  • *.ps1 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
  • *.sty 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
  • *.css files are analyzed with CssAnalyzer:
    • 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
  • *.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
  • *.html files are analyzed with HtmlAnalyzer:
    • 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
  • *.cmd 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


2025-01-10 15:05