Global Metrics

path: .metrics.nexits.average
old: 0.9642857142857144
new: 0.8918918918918919

path: .metrics.nexits.sum
old: 27.0
new: 198.0

path: .metrics.cognitive.sum
old: 30.0
new: 567.0

path: .metrics.cognitive.average
old: 1.0714285714285714
new: 2.554054054054054

path: .metrics.cyclomatic.average
old: 1.96875
new: 3.1265822784810124

path: .metrics.cyclomatic.sum
old: 63.0
new: 741.0

path: .metrics.nargs.average
old: 0.9285714285714286
new: 1.472972972972973

path: .metrics.nargs.sum
old: 26.0
new: 327.0

path: .metrics.loc.ploc
old: 228.0
new: 3784.0

path: .metrics.loc.cloc
old: 36.0
new: 1302.0

path: .metrics.loc.blank
old: 57.0
new: 860.0

path: .metrics.loc.lloc
old: 73.0
new: 1402.0

path: .metrics.loc.sloc
old: 321.0
new: 5946.0

path: .metrics.mi.mi_sei
old: -21.310847825765013
new: -260.72131423732816

path: .metrics.mi.mi_original
old: 16.069373578846722
new: -203.52415702645808

path: .metrics.mi.mi_visual_studio
old: 9.397294490553636
new: 0.0

path: .metrics.nom.total
old: 28.0
new: 222.0

path: .metrics.nom.functions
old: 28.0
new: 206.0

path: .metrics.nom.closures
old: 0.0
new: 16.0

path: .metrics.halstead.purity_ratio
old: 1.6035667052639602
new: 1.0795833185610657

path: .metrics.halstead.time
old: 13306.26675067087
new: 1057276.619727943

path: .metrics.halstead.bugs
old: 1.2855764229613484
new: 23.76035003440371

path: .metrics.halstead.N1
old: 641.0
new: 10675.0

path: .metrics.halstead.length
old: 1060.0
new: 17904.0

path: .metrics.halstead.N2
old: 419.0
new: 7229.0

path: .metrics.halstead.effort
old: 239512.80151207565
new: 19030979.15510298

path: .metrics.halstead.n2
old: 204.0
new: 1767.0

path: .metrics.halstead.estimated_program_length
old: 1699.7807075797978
new: 19328.85973551732

path: .metrics.halstead.difficulty
old: 28.754901960784313
new: 98.18675721561968

path: .metrics.halstead.level
old: 0.034776679168087285
new: 0.01018467284548347

path: .metrics.halstead.n1
old: 28.0
new: 48.0

path: .metrics.halstead.vocabulary
old: 232.0
new: 1815.0

path: .metrics.halstead.volume
old: 8329.459854835226
new: 193824.29662393924

Spaces Data

Minimal test - lines (193, 205)

path: .spaces[0].metrics.nom.total
old: 28.0
new: 1.0

path: .spaces[0].metrics.nom.functions
old: 28.0
new: 1.0

path: .spaces[0].metrics.nexits.sum
old: 27.0
new: 2.0

path: .spaces[0].metrics.nexits.average
old: 0.9642857142857144
new: 2.0

path: .spaces[0].metrics.halstead.volume
old: 8050.372370723449
new: 130.79881092001085

path: .spaces[0].metrics.halstead.N2
old: 402.0
new: 8.0

path: .spaces[0].metrics.halstead.time
old: 13460.33740416862
new: 53.28840444889331

path: .spaces[0].metrics.halstead.length
old: 1039.0
new: 32.0

path: .spaces[0].metrics.halstead.N1
old: 637.0
new: 24.0

path: .spaces[0].metrics.halstead.difficulty
old: 30.09625668449198
new: 7.333333333333333

path: .spaces[0].metrics.halstead.n2
old: 187.0
new: 6.0

path: .spaces[0].metrics.halstead.bugs
old: 1.2954809951110315
new: 0.03242019031423472

path: .spaces[0].metrics.halstead.vocabulary
old: 215.0
new: 17.0

path: .spaces[0].metrics.halstead.effort
old: 242286.07327503516
new: 959.1912800800797

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.4878490874077004
new: 1.6738600877917875

path: .spaces[0].metrics.halstead.estimated_program_length
old: 1545.8752018166008
new: 53.5635228093372

path: .spaces[0].metrics.halstead.level
old: 0.03322672352523098
new: 0.13636363636363638

path: .spaces[0].metrics.halstead.n1
old: 28.0
new: 11.0

path: .spaces[0].metrics.mi.mi_visual_studio
old: 10.435635303568596
new: 60.47648339105906

path: .spaces[0].metrics.mi.mi_original
old: 17.8449363691023
new: 103.414786598711

path: .spaces[0].metrics.mi.mi_sei
old: -19.93423054637539
new: 73.80060736675146

path: .spaces[0].metrics.cognitive.average
old: 1.0714285714285714
new: 1.0

path: .spaces[0].metrics.cognitive.sum
old: 30.0
new: 1.0

path: .spaces[0].metrics.cyclomatic.average
old: 2.0
new: 1.5

path: .spaces[0].metrics.cyclomatic.sum
old: 62.0
new: 3.0

path: .spaces[0].metrics.nargs.average
old: 0.9285714285714286
new: 0.0

path: .spaces[0].metrics.nargs.sum
old: 26.0
new: 0.0

path: .spaces[0].metrics.loc.lloc
old: 72.0
new: 3.0

path: .spaces[0].metrics.loc.sloc
old: 295.0
new: 13.0

path: .spaces[0].metrics.loc.cloc
old: 30.0
new: 0.0

path: .spaces[0].metrics.loc.ploc
old: 212.0
new: 12.0

path: .spaces[0].metrics.loc.blank
old: 53.0
new: 1.0

Code

class GeckoJavaSampler
    : public java::GeckoJavaSampler::Natives {
 private:
  GeckoJavaSampler();

 public:
  static double GetProfilerTime() {
    if (!profiler_is_active()) {
      return 0.0;
    }
    return profiler_time();
  };
};

Minimal test - lines (199, 204)

path: .spaces[0].spaces[0].metrics.cognitive.sum
old: 30.0
new: 1.0

path: .spaces[0].spaces[0].metrics.cognitive.average
old: 1.0714285714285714
new: 1.0

path: .spaces[0].spaces[0].metrics.nom.functions
old: 28.0
new: 1.0

path: .spaces[0].spaces[0].metrics.nom.total
old: 28.0
new: 1.0

path: .spaces[0].spaces[0].metrics.loc.cloc
old: 29.0
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.blank
old: 54.0
new: 0.0

path: .spaces[0].spaces[0].metrics.loc.ploc
old: 210.0
new: 6.0

path: .spaces[0].spaces[0].metrics.loc.sloc
old: 293.0
new: 6.0

path: .spaces[0].spaces[0].metrics.loc.lloc
old: 72.0
new: 3.0

path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 10.64044453020663
new: 70.36669288373412

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 18.195160146653336
new: 120.32704483118532

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: -19.82399109348825
new: 98.09801858957128

path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 30.02139037433155
new: 3.5

path: .spaces[0].spaces[0].metrics.halstead.length
old: 1037.0
new: 17.0

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 28.0
new: 7.0

path: .spaces[0].spaces[0].metrics.halstead.N1
old: 636.0
new: 13.0

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.4907186131307626
new: 1.6265579090825428

path: .spaces[0].spaces[0].metrics.halstead.N2
old: 401.0
new: 4.0

path: .spaces[0].spaces[0].metrics.halstead.effort
old: 241218.14855575535
new: 205.8361813089192

path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.03330958318489491
new: 0.2857142857142857

path: .spaces[0].spaces[0].metrics.halstead.volume
old: 8034.87598502427
new: 58.81033751683405

path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 1.2916714640046876
new: 0.01162054658604168

path: .spaces[0].spaces[0].metrics.halstead.time
old: 13401.00825309752
new: 11.435343406051066

path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 1545.8752018166008
new: 27.651484454403228

path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 215.0
new: 11.0

path: .spaces[0].spaces[0].metrics.halstead.n2
old: 187.0
new: 4.0

path: .spaces[0].spaces[0].metrics.nargs.average
old: 0.9285714285714286
new: 0.0

path: .spaces[0].spaces[0].metrics.nargs.sum
old: 26.0
new: 0.0

path: .spaces[0].spaces[0].metrics.cyclomatic.average
old: 2.033333333333333
new: 2.0

path: .spaces[0].spaces[0].metrics.cyclomatic.sum
old: 61.0
new: 2.0

path: .spaces[0].spaces[0].metrics.nexits.average
old: 0.9642857142857144
new: 2.0

path: .spaces[0].spaces[0].metrics.nexits.sum
old: 27.0
new: 2.0

Code

  static double GetProfilerTime() {
    if (!profiler_is_active()) {
      return 0.0;
    }
    return profiler_time();
  };