# Global Metrics

path: .metrics.nexits.average
old: 0.6666666666666666
new: 1.5
path: .metrics.nexits.sum
old: 2.0
new: 3.0
path: .metrics.loc.ploc
old: 39.0
new: 25.0
path: .metrics.loc.sloc
old: 51.0
new: 41.0
path: .metrics.loc.blank
old: 3.0
new: 6.0
path: .metrics.loc.cloc
old: 9.0
new: 10.0
path: .metrics.loc.lloc
old: 8.0
new: 7.0
path: .metrics.cyclomatic.average
old: 1.4
new: 2.5
path: .metrics.cyclomatic.sum
old: 7.0
new: 10.0
path: .metrics.nom.functions
old: 3.0
new: 2.0
path: .metrics.nom.total
old: 3.0
new: 2.0
path: .metrics.halstead.n1
old: 16.0
new: 14.0
path: .metrics.halstead.n2
old: 32.0
new: 29.0
path: .metrics.halstead.volume
old: 1027.6331001326928
new: 466.6587689043804
path: .metrics.halstead.length
old: 184.0
new: 86.0
path: .metrics.halstead.purity_ratio
old: 1.2173913043478262
new: 2.257958346133791
path: .metrics.halstead.N1
old: 110.0
new: 48.0
path: .metrics.halstead.estimated_program_length
old: 224.0
new: 194.18441776750603
path: .metrics.halstead.bugs
old: 0.23743894496725973
new: 0.08787542904268088
path: .metrics.halstead.level
old: 0.05405405405405406
new: 0.10902255639097744
path: .metrics.halstead.vocabulary
old: 48.0
new: 43.0
path: .metrics.halstead.difficulty
old: 18.5
new: 9.172413793103448
path: .metrics.halstead.time
old: 1056.1784640252674
new: 237.7992960317341
path: .metrics.halstead.N2
old: 74.0
new: 38.0
path: .metrics.halstead.effort
old: 19011.212352454815
new: 4280.387328571213
path: .metrics.mi.mi_original
old: 69.63235467558565
new: 76.58302134370854
path: .metrics.mi.mi_sei
old: 55.76095058728512
new: 70.4334618593696
path: .metrics.mi.mi_visual_studio
old: 40.7206752488805
new: 44.78539259865996
path: .metrics.cognitive.sum
old: 2.0
new: 3.0
path: .metrics.cognitive.average
old: 0.6666666666666666
new: 1.5
path: .metrics.nargs.average
old: 2.0
new: 1.0
path: .metrics.nargs.sum
old: 6.0
new: 2.0

# Spaces Data

## Minimal test - lines (23, 29)

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.2438974119320354
new: 1.8275135577918944
path: .spaces[0].spaces[0].metrics.halstead.time
old: 119.88534379146648
new: 69.21227454075624
path: .spaces[0].spaces[0].metrics.halstead.n2
old: 8.0
new: 11.0
path: .spaces[0].spaces[0].metrics.halstead.N2
old: 18.0
new: 16.0
path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.05566358121927229
new: 0.038593647859231583
path: .spaces[0].spaces[0].metrics.halstead.length
old: 46.0
new: 39.0
path: .spaces[0].spaces[0].metrics.halstead.volume
old: 191.81655006634637
new: 171.30037948837168
path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 57.219280948873624
new: 71.27302875388389
path: .spaces[0].spaces[0].metrics.halstead.effort
old: 2157.936188246397
new: 1245.8209417336122
path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.08888888888888889
new: 0.1375
path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 11.25
new: 7.272727272727272
path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 18.0
new: 21.0
path: .spaces[0].spaces[0].metrics.halstead.N1
old: 28.0
new: 23.0
path: .spaces[0].spaces[0].metrics.loc.lloc
old: 1.0
new: 3.0
path: .spaces[0].spaces[0].metrics.loc.ploc
old: 6.0
new: 7.0
path: .spaces[0].spaces[0].metrics.loc.sloc
old: 6.0
new: 7.0
path: .spaces[0].spaces[0].metrics.cognitive.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 66.9061353653619
new: 65.65525073556326
path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 89.45897384866888
new: 86.47485066892295
path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 114.40949147476886
new: 112.27047875781318
path: .spaces[0].spaces[0].metrics.nargs.average
old: 3.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nargs.sum
old: 3.0
new: 1.0
path: .spaces[0].spaces[0].metrics.nexits.average
old: 1.0
new: 2.0
path: .spaces[0].spaces[0].metrics.nexits.sum
old: 1.0
new: 2.0

### Code

    int ExecuteCommand(const Command &Cmd) {
      std::string CmdLine = Cmd.toString();
      int exit_code = system(CmdLine.c_str());
      if (WIFEXITED(exit_code))
        return WEXITSTATUS(exit_code);
      return exit_code;
    }

## Minimal test - lines (21, 39)

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.115763695604567
new: 1.9495094926113965
path: .spaces[0].metrics.halstead.difficulty
old: 19.714285714285715
new: 9.159090909090908
path: .spaces[0].metrics.halstead.length
old: 178.0
new: 75.0
path: .spaces[0].metrics.halstead.n2
old: 28.0
new: 22.0
path: .spaces[0].metrics.halstead.bugs
old: 0.23865895326610465
new: 0.07718370272391428
path: .spaces[0].metrics.halstead.N2
old: 69.0
new: 31.0
path: .spaces[0].metrics.halstead.n1
old: 16.0
new: 13.0
path: .spaces[0].metrics.halstead.N1
old: 109.0
new: 44.0
path: .spaces[0].metrics.halstead.time
old: 1064.3291927000523
new: 195.7482060443959
path: .spaces[0].metrics.halstead.vocabulary
old: 44.0
new: 35.0
path: .spaces[0].metrics.halstead.volume
old: 971.7788281174388
new: 384.6962262708725
path: .spaces[0].metrics.halstead.estimated_program_length
old: 198.6059378176129
new: 146.21321194585474
path: .spaces[0].metrics.halstead.effort
old: 19157.92546860094
new: 3523.467708799127
path: .spaces[0].metrics.halstead.level
old: 0.05072463768115942
new: 0.10918114143920596
path: .spaces[0].metrics.loc.blank
old: 1.0
new: 3.0
path: .spaces[0].metrics.loc.lloc
old: 8.0
new: 7.0
path: .spaces[0].metrics.loc.ploc
old: 33.0
new: 16.0
path: .spaces[0].metrics.loc.sloc
old: 34.0
new: 19.0
path: .spaces[0].metrics.mi.mi_sei
old: 35.595784178723605
new: 56.3781797729375
path: .spaces[0].metrics.mi.mi_visual_studio
old: 44.86636998638869
new: 53.33177060620272
path: .spaces[0].metrics.mi.mi_original
old: 76.72149267672467
new: 91.19732773660664
path: .spaces[0].metrics.nexits.average
old: 0.6666666666666666
new: 1.5
path: .spaces[0].metrics.nexits.sum
old: 2.0
new: 3.0
path: .spaces[0].metrics.cognitive.average
old: 0.6666666666666666
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 1.5
new: 1.6666666666666667
path: .spaces[0].metrics.cyclomatic.sum
old: 6.0
new: 5.0
path: .spaces[0].metrics.nom.total
old: 3.0
new: 2.0
path: .spaces[0].metrics.nom.functions
old: 3.0
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 6.0
new: 2.0
path: .spaces[0].metrics.nargs.average
old: 2.0
new: 1.0

### Code

    namespace fuzzer {

    int ExecuteCommand(const Command &Cmd) {
      std::string CmdLine = Cmd.toString();
      int exit_code = system(CmdLine.c_str());
      if (WIFEXITED(exit_code))
        return WEXITSTATUS(exit_code);
      return exit_code;
    }

    void DiscardOutput(int Fd) {
      FILE* Temp = fopen("/dev/null", "w");
      if (!Temp)
        return;
      dup2(fileno(Temp), Fd);
      fclose(Temp);
    }

    } // namespace fuzzer

## Minimal test - lines (31, 37)

path: .spaces[0].spaces[1].metrics.cognitive.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.cognitive.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.loc.sloc
old: 1.0
new: 7.0
path: .spaces[0].spaces[1].metrics.loc.ploc
old: 1.0
new: 7.0
path: .spaces[0].spaces[1].metrics.loc.lloc
old: 1.0
new: 4.0
path: .spaces[0].spaces[1].metrics.nargs.average
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.nargs.sum
old: 0.0
new: 1.0
path: .spaces[0].spaces[1].metrics.halstead.vocabulary
old: 8.0
new: 20.0
path: .spaces[0].spaces[1].metrics.halstead.purity_ratio
old: 2.188721875540867
new: 1.9540753499337429
path: .spaces[0].spaces[1].metrics.halstead.estimated_program_length
old: 17.509775004326936
new: 66.43856189774725
path: .spaces[0].spaces[1].metrics.halstead.length
old: 8.0
new: 34.0
path: .spaces[0].spaces[1].metrics.halstead.n1
old: 6.0
new: 10.0
path: .spaces[0].spaces[1].metrics.halstead.volume
old: 24.0
new: 146.94555522617034
path: .spaces[0].spaces[1].metrics.halstead.N1
old: 6.0
new: 20.0
path: .spaces[0].spaces[1].metrics.halstead.N2
old: 2.0
new: 14.0
path: .spaces[0].spaces[1].metrics.halstead.time
old: 4.0
new: 57.14549369906624
path: .spaces[0].spaces[1].metrics.halstead.bugs
old: 0.0057689982812296325
new: 0.03396631305909162
path: .spaces[0].spaces[1].metrics.halstead.effort
old: 72.0
new: 1028.6188865831923
path: .spaces[0].spaces[1].metrics.halstead.level
old: 0.3333333333333333
new: 0.14285714285714285
path: .spaces[0].spaces[1].metrics.halstead.difficulty
old: 3.0
new: 7.0
path: .spaces[0].spaces[1].metrics.halstead.n2
old: 2.0
new: 10.0
path: .spaces[0].spaces[1].metrics.mi.mi_sei
old: 146.92819499625
new: 87.62533312478479
path: .spaces[0].spaces[1].metrics.mi.mi_visual_studio
old: 90.2012398141466
new: 66.12159791133188
path: .spaces[0].spaces[1].metrics.mi.mi_original
old: 154.24412008219068
new: 113.0679324283775
path: .spaces[0].spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 2.0
path: .spaces[0].spaces[1].metrics.cyclomatic.average
old: 1.0
new: 2.0

### Code

    void DiscardOutput(int Fd) {
      FILE* Temp = fopen("/dev/null", "w");
      if (!Temp)
        return;
      dup2(fileno(Temp), Fd);
      fclose(Temp);
    }