microsoft / QuantumKatas
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 27 files with 3,209 lines of code.
    • 0 very long files (0 lines of code)
    • 2 long files (1,374 lines of code)
    • 1 medium size files (345 lines of codeclsfd_ftr_w_mp_ins)
    • 6 small files (860 lines of code)
    • 18 very small files (630 lines of code)
0% | 42% | 10% | 26% | 19%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
tex0% | 100% | 0% | 0% | 0%
py0% | 63% | 36% | 0% | 0%
cs0% | 0% | 0% | 74% | 25%
ps10% | 0% | 0% | 33% | 66%
yml0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
quickref0% | 100% | 0% | 0% | 0%
tutorials/LinearAlgebra0% | 100% | 0% | 0% | 0%
tutorials/ComplexArithmetic0% | 0% | 100% | 0% | 0%
utilities/Microsoft.Quantum.Katas0% | 0% | 0% | 100% | 0%
SimonsAlgorithm0% | 0% | 0% | 76% | 23%
utilities/Common0% | 0% | 0% | 88% | 11%
scripts0% | 0% | 0% | 31% | 68%
ROOT0% | 0% | 0% | 0% | 100%
utilities/DumpUnitary0% | 0% | 0% | 0% | 100%
PhaseEstimation0% | 0% | 0% | 0% | 100%
utilities/DumpUnitaryTest0% | 0% | 0% | 0% | 100%
Longest Files (Top 27)
File# lines# units
tex
qsharp-quick-reference.tex
in quickref
780 -
testing.py
in tutorials/LinearAlgebra
594 46
testing.py
in tutorials/ComplexArithmetic
345 33
CounterSimulator.cs
in utilities/Common
171 14
KataMagic.cs
in utilities/Microsoft.Quantum.Katas
160 5
CheckKataMagic.cs
in utilities/Microsoft.Quantum.Katas
154 4
validate-notebooks.ps1
in scripts
137 -
BooleanMatrix.cs
in SimonsAlgorithm
132 13
GaussianElimination.cs
in SimonsAlgorithm
106 4
azure-pipelines.yml
in root
82 -
Update-QDKVersion.ps1
in scripts
74 -
Tests.cs
in SimonsAlgorithm
72 6
Driver.cs
in utilities/DumpUnitary
67 2
Tests.cs
in PhaseEstimation
58 2
install-iqsharp.ps1
in scripts
36 -
validate-projects.ps1
in scripts
29 -
DumpUnitaryTest.cs
in utilities/DumpUnitaryTest
29 2
manifest.ps1
in scripts
28 -
test.ps1
in scripts
26 -
build.ps1
in scripts
24 -
DelaySign.cs
in utilities/Common
22 -
pack.ps1
in scripts
20 -
steps-init.yml
in scripts
16 -
steps-binaries.yml
in scripts
14 -
set-env.ps1
in scripts
13 -
validate-unicode.ps1
in scripts
12 -
fix-unicode.ps1
in scripts
8 -
Files With Most Units (Top 11)
File# lines# units
testing.py
in tutorials/LinearAlgebra
594 46
testing.py
in tutorials/ComplexArithmetic
345 33
CounterSimulator.cs
in utilities/Common
171 14
BooleanMatrix.cs
in SimonsAlgorithm
132 13
Tests.cs
in SimonsAlgorithm
72 6
KataMagic.cs
in utilities/Microsoft.Quantum.Katas
160 5
GaussianElimination.cs
in SimonsAlgorithm
106 4
CheckKataMagic.cs
in utilities/Microsoft.Quantum.Katas
154 4
Tests.cs
in PhaseEstimation
58 2
Driver.cs
in utilities/DumpUnitary
67 2
DumpUnitaryTest.cs
in utilities/DumpUnitaryTest
29 2
Files With Long Lines (Top 12)

There are 12 files with lines longer than 120 characters. In total, there are 43 long lines.

File# lines# units# long lines
tex
qsharp-quick-reference.tex
in quickref
780 - 22
validate-notebooks.ps1
in scripts
137 - 6
GaussianElimination.cs
in SimonsAlgorithm
106 4 3
Tests.cs
in SimonsAlgorithm
72 6 3
KataMagic.cs
in utilities/Microsoft.Quantum.Katas
160 5 2
Tests.cs
in PhaseEstimation
58 2 1
Update-QDKVersion.ps1
in scripts
74 - 1
fix-unicode.ps1
in scripts
8 - 1
install-iqsharp.ps1
in scripts
36 - 1
validate-unicode.ps1
in scripts
12 - 1
testing.py
in tutorials/LinearAlgebra
594 46 1
CheckKataMagic.cs
in utilities/Microsoft.Quantum.Katas
154 4 1