# Global Metrics

path: .metrics.cognitive.average
old: 1.5
new: 0.0
path: .metrics.cognitive.sum
old: 3.0
new: 0.0
path: .metrics.nargs.sum
old: 2.0
new: 4.0
path: .metrics.nargs.average
old: 1.0
new: 1.3333333333333333
path: .metrics.nom.total
old: 2.0
new: 3.0
path: .metrics.nom.functions
old: 2.0
new: 3.0
path: .metrics.loc.lloc
old: 7.0
new: 3.0
path: .metrics.loc.blank
old: 6.0
new: 5.0
path: .metrics.loc.sloc
old: 47.0
new: 26.0
path: .metrics.loc.ploc
old: 31.0
new: 16.0
path: .metrics.loc.cloc
old: 10.0
new: 5.0
path: .metrics.nexits.average
old: 0.0
new: 0.6666666666666666
path: .metrics.nexits.sum
old: 0.0
new: 2.0
path: .metrics.halstead.N2
old: 58.0
new: 29.0
path: .metrics.halstead.time
old: 487.7470830904956
new: 176.79240641091712
path: .metrics.halstead.length
old: 131.0
new: 64.0
path: .metrics.halstead.N1
old: 73.0
new: 35.0
path: .metrics.halstead.n2
old: 37.0
new: 17.0
path: .metrics.halstead.n1
old: 15.0
new: 12.0
path: .metrics.halstead.vocabulary
old: 52.0
new: 29.0
path: .metrics.halstead.volume
old: 746.7576030764831
new: 310.9107836881646
path: .metrics.halstead.estimated_program_length
old: 251.35313346239897
new: 112.50641830990963
path: .metrics.halstead.level
old: 0.08505747126436781
new: 0.09770114942528736
path: .metrics.halstead.purity_ratio
old: 1.918726209636633
new: 1.757912786092338
path: .metrics.halstead.effort
old: 8779.447495628921
new: 3182.263315396508
path: .metrics.halstead.bugs
old: 0.1418589918878958
new: 0.07211675113968352
path: .metrics.halstead.difficulty
old: 11.756756756756756
new: 10.235294117647058
path: .metrics.mi.mi_visual_studio
old: 42.4653552816247
new: 51.007839107841235
path: .metrics.mi.mi_original
old: 72.61575753157824
new: 87.22340487440852
path: .metrics.mi.mi_sei
old: 62.539653904557824
new: 82.06002537209808
path: .metrics.cyclomatic.sum
old: 7.0
new: 5.0
path: .metrics.cyclomatic.average
old: 1.4
new: 1.0

# Spaces Data

## Minimal test - lines (10, 13)

path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 3.0
new: 0.0
path: .spaces[0].spaces[0].metrics.cognitive.average
old: 1.5
new: 0.0
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 1.6666666666666667
new: 1.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 5.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nargs.average
old: 1.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 68.64741620882609
new: 111.07306171748976
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 82.58961408090849
new: 129.391235541417
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 48.29801993035584
new: 75.667389205507
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 22.0
new: 4.0
path: .spaces[0].spaces[0].metrics.loc.blank
old: 2.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 27.0
new: 4.0
path: .spaces[0].spaces[0].metrics.loc.cloc
old: 3.0
new: 0.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 7.0
new: 1.0
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 31.0
new: 3.0
path: .spaces[0].spaces[0].metrics.halstead.time
old: 461.9301410025098
new: 10.566416671474377
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 673.8745586389556
new: 38.039100017307746
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 8314.742538045177
new: 190.19550008653871
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 46.0
new: 9.0
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.08104575163398693
new: 0.2
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 51.0
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.13680793342695916
new: 0.011024161587825522
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 12.338709677419354
new: 5.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 71.0
new: 7.0
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 212.18344455612092
new: 20.264662506490403
path: .spaces[0].spaces[0].metrics.halstead.length
old: 122.0
new: 12.0
path: .spaces[0].spaces[0].metrics.halstead.n1
old: 15.0
new: 6.0
path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.7392085619354174
new: 1.6887218755408668
path: .spaces[0].spaces[0].metrics.nom.total
old: 2.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nom.functions
old: 2.0
new: 1.0

### Code

    FuzzerRegistry& FuzzerRegistry::getInstance() {
      static FuzzerRegistry instance;
      return instance;
    }

## Minimal test - lines (8, 26)

path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 0.0
new: 0.6666666666666666
path: .spaces[0].metrics.mi.mi_original
old: 79.96612894085317
new: 92.67102345311478
path: .spaces[0].metrics.mi.mi_visual_studio
old: 46.76381809406618
new: 54.19358096673379
path: .spaces[0].metrics.mi.mi_sei
old: 63.451386328784224
new: 58.40245341551859
path: .spaces[0].metrics.cyclomatic.average
old: 1.5
new: 1.0
path: .spaces[0].metrics.cyclomatic.sum
old: 6.0
new: 4.0
path: .spaces[0].metrics.nargs.average
old: 1.0
new: 1.3333333333333333
path: .spaces[0].metrics.nargs.sum
old: 2.0
new: 4.0
path: .spaces[0].metrics.halstead.bugs
old: 0.13841923728543165
new: 0.07208353927298908
path: .spaces[0].metrics.halstead.length
old: 125.0
new: 63.0
path: .spaces[0].metrics.halstead.n2
old: 32.0
new: 16.0
path: .spaces[0].metrics.halstead.level
old: 0.08205128205128205
new: 0.09523809523809525
path: .spaces[0].metrics.halstead.n1
old: 15.0
new: 12.0
path: .spaces[0].metrics.halstead.N2
old: 52.0
new: 28.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.7488268714730222
new: 1.698723016010379
path: .spaces[0].metrics.halstead.vocabulary
old: 47.0
new: 28.0
path: .spaces[0].metrics.halstead.effort
old: 8462.06895372765
new: 3180.065280941105
path: .spaces[0].metrics.halstead.volume
old: 694.3236064597047
new: 302.86336008962905
path: .spaces[0].metrics.halstead.estimated_program_length
old: 218.60335893412775
new: 107.01955000865388
path: .spaces[0].metrics.halstead.time
old: 470.1149418737584
new: 176.67029338561693
path: .spaces[0].metrics.halstead.N1
old: 73.0
new: 35.0
path: .spaces[0].metrics.halstead.difficulty
old: 12.1875
new: 10.5
path: .spaces[0].metrics.nom.functions
old: 2.0
new: 3.0
path: .spaces[0].metrics.nom.total
old: 2.0
new: 3.0
path: .spaces[0].metrics.cognitive.sum
old: 3.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 1.5
new: 0.0
path: .spaces[0].metrics.loc.cloc
old: 3.0
new: 0.0
path: .spaces[0].metrics.loc.sloc
old: 31.0
new: 19.0
path: .spaces[0].metrics.loc.lloc
old: 7.0
new: 3.0
path: .spaces[0].metrics.loc.ploc
old: 24.0
new: 15.0

### Code

    namespace mozilla {

    FuzzerRegistry& FuzzerRegistry::getInstance() {
      static FuzzerRegistry instance;
      return instance;
    }

    void FuzzerRegistry::registerModule(std::string moduleName,
                                        FuzzerInitFunc initFunc,
                                        FuzzerTestingFunc testingFunc) {
      moduleMap.insert(std::pair(
          moduleName, FuzzerFunctions(initFunc, testingFunc)));
    }

    FuzzerFunctions FuzzerRegistry::getModuleFunctions(std::string& moduleName) {
      return moduleMap[moduleName];
    }

    }  // namespace mozilla