openai / orrb
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
meta
shader
hlsl
asset
mat
txt
proto
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.

main31463 LOC (65%) 219 files
test197 LOC (<1%) 2 files
generated14680 LOC (30%) 378 files
build and deployment26 LOC (<1%) 3 files
other1473 LOC (3%) 13 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
hlsl
shader
asset
mat
proto
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 219 files match defined criteria (31,463 LOC, 100.0% vs. main code):
    • 134 *.cs files (16,096 LOC)
    • 22 *.hlsl files (6,719 LOC)
    • 23 *.shader files (2,325 LOC)
    • 19 *.asset files (1,970 LOC)
    • 2 *.xml files (1,780 LOC)
    • 2 *.prefab files (1,175 LOC)
    • 6 *.mat files (548 LOC)
    • 8 *.py files (503 LOC)
    • 1 *.unity files (244 LOC)
    • 2 *.proto files (103 LOC)
  • " *.cs" is biggest, containing 51.16% of LOC.
  • " *.proto" is smallest, containing 0.33% of LOC.


*.cs16096 LOC (51%) 134 files
*.hlsl6719 LOC (21%) 22 files
*.shader2325 LOC (7%) 23 files
*.asset1970 LOC (6%) 19 files
*.xml1780 LOC (5%) 2 files
*.prefab1175 LOC (3%) 2 files
*.mat548 LOC (1%) 6 files
*.py503 LOC (1%) 8 files
*.unity244 LOC (<1%) 1 file
*.proto103 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]est/.*".
    • files with paths like ".*/test_.*".
  • 2 files match defined criteria (197 LOC, 0.6% vs. main code):
    • 1 *.cs files (112 LOC)
    • 1 *.py files (85 LOC)
  • " *.cs" is biggest, containing 56.85% of LOC.
  • " *.py" is smallest, containing 43.15% of LOC.


*.cs112 LOC (56%) 1 file
*.py85 LOC (43%) 1 file
Generated Code
Automatically generated files, not manually changed after generation.
meta
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]meta" AND any line of content like ".*fileFormatVersion[:] .*".
    • files with any line of content like "//[ ]*Generated by .*".
    • files with paths like ".*[.]cs" AND any line of content like "[/][/][ ]*".
  • 378 files match defined criteria (14,680 LOC, 46.7% vs. main code):
    • 375 *.meta files (11,597 LOC)
    • 3 *.cs files (3,083 LOC)
  • " *.meta" is biggest, containing 79% of LOC.
  • " *.cs" is smallest, containing 21% of LOC.


*.meta11597 LOC (78%) 375 files
*.cs3083 LOC (21%) 3 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".
  • 3 files match defined criteria (26 LOC, 0.1% vs. main code). All matches are in *.sh files.


*.sh26 LOC (100%) 3 files
Other Code
meta
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]txt".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*/LICENSE[.][a-z0-9]+".
    • files with paths like ".*[.]md".
    • files with paths like ".*[.]json".
    • files with paths like ".*/README[.][a-z0-9]+".
  • 13 files match defined criteria (1,473 LOC, 4.7% vs. main code):
    • 5 *.json files (765 LOC)
    • 4 *.md files (683 LOC)
    • 2 *.meta files (15 LOC)
    • 2 *.txt files (10 LOC)
  • " *.json" is biggest, containing 51.93% of LOC.
  • " *.txt" is smallest, containing 0.68% of LOC.


*.json765 LOC (51%) 5 files
*.md683 LOC (46%) 4 files
*.meta15 LOC (1%) 2 files
*.txt10 LOC (<1%) 2 files
Analyzers
Info about analyzers used for source code examinations.
  • *.cs files are analyzed with CSharpAnalyzer:
    • 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 namespace heuristics)
  • *.hlsl 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
  • *.shader 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
  • *.asset 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
  • *.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
  • *.prefab 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
  • *.mat 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
  • *.unity 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
  • *.proto 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-04-14 11:54