mozilla / firefox-translations-models
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
ru
fr
el
sv
hy
ig
sl
cy
pt
mt
nb
nl
txt
in
gitattributes
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.

main444626 LOC (78%) 290 files
test4571 LOC (<1%) 5 files
generated0 LOC (0%) 0 files
build and deployment125 LOC (<1%) 9 files
other115336 LOC (20%) 63 files
Main Code
All manually created or maintained source code that defines logic of the product that is run in a production environment.
ru
sv
el
hy
sl
ig
cy
pt
mt
nl
in
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*".
  • 290 files match defined criteria (444,626 LOC, 100.0% vs. main code):
    • 66 *.cs files (145,030 LOC)
    • 50 *.ru files (103,575 LOC)
    • 34 *.es files (73,109 LOC)
    • 16 *.sv files (16,072 LOC)
    • 16 *.el files (16,072 LOC)
    • 12 *.hy files (12,054 LOC)
    • 12 *.sl files (12,054 LOC)
    • 12 *.ig files (12,054 LOC)
    • 14 *.pl files (11,586 LOC)
    • 12 *.cy files (11,395 LOC)
    • 10 *.pt files (10,045 LOC)
    • 10 *.mt files (10,045 LOC)
    • 10 *.nl files (10,045 LOC)
    • 14 *.py files (1,429 LOC)
    • 1 *.toml files (49 LOC)
    • 1 *.in files (12 LOC)
  • " *.cs" is biggest, containing 32.62% of LOC.
  • " *.in" is smallest, containing 0% of LOC.


*.cs145030 LOC (32%) 66 files
*.ru103575 LOC (23%) 50 files
*.es73109 LOC (16%) 34 files
*.sv16072 LOC (3%) 16 files
*.el16072 LOC (3%) 16 files
*.hy12054 LOC (2%) 12 files
*.sl12054 LOC (2%) 12 files
*.ig12054 LOC (2%) 12 files
*.pl11586 LOC (2%) 14 files
*.cy11395 LOC (2%) 12 files
*.pt10045 LOC (2%) 10 files
*.mt10045 LOC (2%) 10 files
*.nl10045 LOC (2%) 10 files
*.py1429 LOC (<1%) 14 files
*.toml49 LOC (<1%) 1 file
*.in12 LOC (<1%) 1 file
Test Code
Used only for testing of the product. Normally not deployed in a production environment.
ru
el
pt
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[.].*".
  • 5 files match defined criteria (4,571 LOC, 1.0% vs. main code):
    • 1 *.ru files (1,132 LOC)
    • 1 *.el files (1,027 LOC)
    • 1 *.pt files (1,020 LOC)
    • 1 *.es files (1,009 LOC)
    • 1 *.py files (383 LOC)
  • " *.ru" is biggest, containing 24.76% of LOC.
  • " *.py" is smallest, containing 8.38% of LOC.


*.ru1132 LOC (24%) 1 file
*.el1027 LOC (22%) 1 file
*.pt1020 LOC (22%) 1 file
*.es1009 LOC (22%) 1 file
*.py383 LOC (8%) 1 file
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 ".*[.]git[a-z]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]sh".
    • files with paths like ".*/[.]gitattributes".
  • 9 files match defined criteria (125 LOC, 0.0% vs. main code). All matches are in *.sh files.


*.sh125 LOC (100%) 9 files
Other Code
fr
nb
txt
Explore:   circles  |  sunburst
  • The following criteria are used to filter files:
    • files with paths like ".*[.]md".
    • files with paths like ".*/README[.][a-z0-9]+".
    • files with paths like ".*/[.]gitignore".
    • files with paths like ".*[.]json".
    • files with paths like ".*[.]nb".
    • files with paths like ".*[.]fr".
    • files with paths like ".*[.]txt".
  • 63 files match defined criteria (115,336 LOC, 25.9% vs. main code):
    • 44 *.fr files (96,728 LOC)
    • 10 *.nb files (10,045 LOC)
    • 3 *.json files (7,917 LOC)
    • 5 *.md files (380 LOC)
    • 1 *.txt files (266 LOC)
  • " *.fr" is biggest, containing 83.87% of LOC.
  • " *.txt" is smallest, containing 0.23% of LOC.


*.fr96728 LOC (83%) 44 files
*.nb10045 LOC (8%) 10 files
*.json7917 LOC (6%) 3 files
*.md380 LOC (<1%) 5 files
*.txt266 LOC (<1%) 1 file
Analyzers
Info about analyzers used for source code examinations.


2025-05-11 19:55