microsoft / SDN
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 144 files with 31,904 lines of code.
    • 7 very long files (12,437 lines of code)
    • 10 long files (6,532 lines of code)
    • 21 medium size files (6,528 lines of codeclsfd_ftr_w_mp_ins)
    • 27 small files (3,695 lines of code)
    • 79 very small files (2,712 lines of code)
38% | 20% | 20% | 11% | 8%
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
ps147% | 4% | 24% | 12% | 10%
psm175% | 0% | 24% | 0% | 0%
c33% | 25% | 30% | 5% | 4%
cfg0% | 100% | 0% | 0% | 0%
yml0% | 99% | 0% | 0% | <1%
h0% | 0% | 46% | 23% | 29%
go0% | 0% | 22% | 42% | 35%
psd10% | 0% | 0% | 100% | 0%
vcxproj0% | 0% | 0% | 100% | 0%
py0% | 0% | 0% | 100% | 0%
yaml0% | 0% | 0% | 33% | 66%
toml0% | 0% | 0% | 0% | 100%
filters0% | 0% | 0% | 0% | 100%
cmd0% | 0% | 0% | 0% | 100%
PS10% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
SDNExpress/Tools87% | 0% | 9% | 2% | 0%
SDNExpress/scripts79% | 0% | 9% | 11% | 0%
Kubernetes/windows37% | 0% | 45% | 7% | 9%
VMM/VMM SDN Express74% | 0% | 0% | 25% | 0%
NDKCI/RdmaSample23% | 18% | 32% | 12% | 12%
SwitchConfigExamples/Dell Force10 S4810 - Redundant TOR with Aggregate0% | 100% | 0% | 0% | 0%
SwitchConfigExamples/Cisco Nexus 3132 - Redundant TOR0% | 100% | 0% | 0% | 0%
Kubernetes/flannel0% | 84% | 0% | 0% | 15%
VMM/Templates0% | 26% | 31% | 20% | 21%
Diagnostics0% | 0% | 45% | 34% | 20%
NCRESTExamples0% | 0% | 65% | 23% | 11%
Kubernetes/containerd0% | 0% | 68% | 0% | 31%
Kubernetes/wincni0% | 0% | 22% | 42% | 35%
Kubernetes/linux0% | 0% | 0% | 56% | 43%
Containers0% | 0% | 0% | 91% | 8%
VMM/scripts0% | 0% | 0% | 0% | 100%
Kubernetes0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
SDNExplorer.ps1
in SDNExpress/Tools/SDNExplorer
2678 -
SDNExpressModule.psm1
in SDNExpress/scripts
2580 -
NetworkControllerRESTWrappers.ps1
in SDNExpress/Tools/SDNExplorer
2265 -
helper.v2.psm1
in Kubernetes/windows
1655 -
VMMExpress.ps1
in VMM/VMM SDN Express
1114 -
SDNExpressUI.psm1
in SDNExpress/scripts
1073 -
RdmaSocket.c
in NDKCI/RdmaSample
1072 -
NdkWrapper.c
in NDKCI/RdmaSample
815 1
cfg
Dell S4810-TOR2.cfg
in SwitchConfigExamples/Dell Force10 S4810 - Redundant TOR with Aggregate
760 -
cfg
Dell S4810-TOR1.cfg
in SwitchConfigExamples/Dell Force10 S4810 - Redundant TOR with Aggregate
754 -
cfg
Cisco Nexus 3132-TOR1.cfg
in SwitchConfigExamples/Cisco Nexus 3132 - Redundant TOR
750 -
cfg
Cisco Nexus 3132-TOR2.cfg
in SwitchConfigExamples/Cisco Nexus 3132 - Redundant TOR
750 -
Helpers.ps1
in VMM/Templates/NC/NCSetup.cr
553 -
cfg
Dell S4810-AGG1.cfg
in SwitchConfigExamples/Dell Force10 S4810 - Redundant TOR with Aggregate
548 -
cfg
Dell S4810-AGG2.cfg
in SwitchConfigExamples/Dell Force10 S4810 - Redundant TOR with Aggregate
548 -
kube-flannel-example.yml
in Kubernetes/flannel/overlay/manifests
528 -
kube-flannel-example.yml
in Kubernetes/flannel/l2bridge/manifests
526 -
helper.psm1
in Kubernetes/windows
456 -
SDNExpress.ps1
in SDNExpress/scripts
441 -
hns.psm1
in Kubernetes/windows
424 -
ProcessCertificate.ps1
in VMM/Templates/NC/EdgeDeployment.cr
422 -
Lam.c
in NDKCI/RdmaSample
389 -
ZeroToSDNBlog.ps1
in NCRESTExamples
340 -
NetworkControllerWorkloadHelpers.psm1
in SDNExpress/Tools/SDNExplorer
322 -
start.ps1
in Kubernetes/containerd
318 -
Test-Rdma.ps1
in Diagnostics
310 -
RdmaOperation.c
in NDKCI/RdmaSample
302 -
startpacketcapture.ps1
in Kubernetes/windows/debug
286 -
VFP.psm1
in Kubernetes/windows/debug
280 -
starthnstrace.ps1
in Kubernetes/windows/debug
276 -
RdmaSample.c
in NDKCI/RdmaSample
276 1
KubeCluster.ps1
in Kubernetes/windows/kubeadm
272 -
RdmaSocket.h
in NDKCI/RdmaSample
257 -
NdkWrapper.h
in NDKCI/RdmaSample
253 -
InstallNetworkController-AllNodes.ps1
in VMM/Templates/NC/NCSetup.cr
249 -
SDNSecurityToolkit.psm1
in SDNExpress/Tools/SDNSecurityToolkit
229 -
cni.go
in Kubernetes/wincni/cni
225 12
CollectData.ps1
in Diagnostics
201 -
collectlogs.ps1
in Kubernetes/windows/debug
200 -
Fabricconfig.psd1
in VMM/VMM SDN Express
191 -
Fabricconfig_Example.psd1
in VMM/VMM SDN Express
186 -
network.go
in Kubernetes/wincni/cni/network
183 5
RdmaBuffer.c
in NDKCI/RdmaSample
181 -
InstallPrivateCloudPlugin.ps1
in Containers
174 -
Get-VSwitchPathCost.ps1
in Diagnostics
163 -
UpdateNetworkController.ps1
in VMM/Templates/NC/NCSetup.cr
159 -
ValidateParameters.ps1
in VMM/Templates/NC/NCSetup.cr
149 -
util.h
in NDKCI/RdmaSample
146 -
CertHelpers.ps1
in SDNExpress/Tools/SDNExplorer
146 -
manager.go
in Kubernetes/wincni/network
143 13
Files With Most Units (Top 13)
File# lines# units
manager.go
in Kubernetes/wincni/network
143 13
cni.go
in Kubernetes/wincni/cni
225 12
endpoint.go
in Kubernetes/wincni/network
87 8
network.go
in Kubernetes/wincni/network
97 6
generate.py
in Kubernetes/linux/manifest
109 5
network.go
in Kubernetes/wincni/cni/network
183 5
args.go
in Kubernetes/wincni/common
102 5
plugin.go
in Kubernetes/wincni/common
40 5
plugin.go
in Kubernetes/wincni/cni
34 4
main.go
in Kubernetes/wincni/cni/network/plugin
36 1
utils.go
in Kubernetes/wincni/common
16 1
NdkWrapper.c
in NDKCI/RdmaSample
815 1
RdmaSample.c
in NDKCI/RdmaSample
276 1
Files With Long Lines (Top 20)

There are 81 files with lines longer than 120 characters. In total, there are 1241 long lines.

File# lines# units# long lines
SDNExpressModule.psm1
in SDNExpress/scripts
2580 - 253
NetworkControllerRESTWrappers.ps1
in SDNExpress/Tools/SDNExplorer
2265 - 103
SDNExpressUI.psm1
in SDNExpress/scripts
1073 - 98
VMMExpress.ps1
in VMM/VMM SDN Express
1114 - 78
SDNExplorer.ps1
in SDNExpress/Tools/SDNExplorer
2678 - 72
helper.v2.psm1
in Kubernetes/windows
1655 - 48
SDNExpress.ps1
in SDNExpress/scripts
441 - 33
Sample - SDN Gateways.psd1
in SDNExpress/scripts
106 - 33
Sample - Software Load Balancer.psd1
in SDNExpress/scripts
106 - 31
Sample - Traditional VLAN networks.psd1
in SDNExpress/scripts
106 - 28
Sample - Virtualized networks.psd1
in SDNExpress/scripts
106 - 28
start.ps1
in Kubernetes/containerd
318 - 26
MultiNodeSampleConfig.psd1
in SDNExpress/scripts
105 - 26
collectlogs.ps1
in Kubernetes/windows/debug
200 - 22
ProcessCertificate.ps1
in VMM/Templates/NC/EdgeDeployment.cr
422 - 21
ZeroToSDNBlogs-VMPolicy.ps1
in NCRESTExamples
120 - 19
helper.psm1
in Kubernetes/windows
456 - 18
starthnstrace.ps1
in Kubernetes/windows/debug
276 - 17
startpacketcapture.ps1
in Kubernetes/windows/debug
286 - 17
NetworkControllerWorkloadHelpers.psm1
in SDNExpress/Tools/SDNExplorer
322 - 17