Global Metrics

path: .metrics.halstead.length
old: 146.0
new: 6625.0

path: .metrics.halstead.n1
old: 8.0
new: 40.0

path: .metrics.halstead.level
old: 0.15753424657534248
new: 0.011561228264890862

path: .metrics.halstead.bugs
old: 0.10175487408697312
new: 10.226235599234098

path: .metrics.halstead.time
old: 296.30720288917024
new: 298526.622971763

path: .metrics.halstead.volume
old: 840.2135753158664
new: 62124.01976382416

path: .metrics.halstead.n2
old: 46.0
new: 625.0

path: .metrics.halstead.estimated_program_length
old: 278.0838499786226
new: 6017.697361013899

path: .metrics.halstead.vocabulary
old: 54.0
new: 665.0

path: .metrics.halstead.difficulty
old: 6.3478260869565215
new: 86.496

path: .metrics.halstead.effort
old: 5333.529652005064
new: 5373479.213491734

path: .metrics.halstead.purity_ratio
old: 1.9046839039631684
new: 0.9083316771341736

path: .metrics.halstead.N1
old: 73.0
new: 3922.0

path: .metrics.halstead.N2
old: 73.0
new: 2703.0

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

path: .metrics.nom.functions
old: 0.0
new: 89.0

path: .metrics.nom.total
old: 0.0
new: 92.0

path: .metrics.loc.cloc
old: 49.0
new: 223.0

path: .metrics.loc.sloc
old: 89.0
new: 1960.0

path: .metrics.loc.lloc
old: 0.0
new: 585.0

path: .metrics.loc.ploc
old: 32.0
new: 1430.0

path: .metrics.loc.blank
old: 8.0
new: 307.0

path: .metrics.cognitive.sum
old: 0.0
new: 220.0

path: .metrics.cognitive.average
old: null
new: 2.391304347826087

path: .metrics.cyclomatic.sum
old: 7.0
new: 278.0

path: .metrics.cyclomatic.average
old: 1.0
new: 2.8958333333333335

path: .metrics.mi.mi_original
old: 61.65907900792914
new: -73.13915350712759

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

path: .metrics.mi.mi_sei
old: 59.59509644368236
new: -127.95773934634184

path: .metrics.nexits.average
old: null
new: 1.576086956521739

path: .metrics.nexits.sum
old: 0.0
new: 145.0

path: .metrics.nargs.sum
old: 0.0
new: 138.0

path: .metrics.nargs.average
old: null
new: 1.5

Spaces Data

Minimal test - lines (77, 88)

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

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

path: .spaces[0].metrics.nargs.average
old: null
new: 1.0

path: .spaces[0].metrics.loc.blank
old: 5.0
new: 2.0

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

path: .spaces[0].metrics.loc.lloc
old: 0.0
new: 2.0

path: .spaces[0].metrics.loc.ploc
old: 25.0
new: 10.0

path: .spaces[0].metrics.loc.sloc
old: 71.0
new: 12.0

path: .spaces[0].metrics.cognitive.average
old: null
new: 0.0

path: .spaces[0].metrics.nexits.average
old: null
new: 0.0

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

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

path: .spaces[0].metrics.halstead.n1
old: 8.0
new: 12.0

path: .spaces[0].metrics.halstead.volume
old: 795.7837227582361
new: 173.9178331268546

path: .spaces[0].metrics.halstead.N1
old: 73.0
new: 25.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 250.4773317567079
new: 76.2388309575275

path: .spaces[0].metrics.halstead.N2
old: 68.0
new: 14.0

path: .spaces[0].metrics.halstead.difficulty
old: 6.476190476190476
new: 8.4

path: .spaces[0].metrics.halstead.effort
old: 5153.646966434291
new: 1460.9097982655785

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.7764349769979286
new: 1.954841819423782

path: .spaces[0].metrics.halstead.vocabulary
old: 50.0
new: 22.0

path: .spaces[0].metrics.halstead.level
old: 0.15441176470588236
new: 0.11904761904761904

path: .spaces[0].metrics.halstead.time
old: 286.3137203574606
new: 81.16165545919881

path: .spaces[0].metrics.halstead.bugs
old: 0.09945390852205462
new: 0.04291683435118191

path: .spaces[0].metrics.halstead.length
old: 141.0
new: 39.0

path: .spaces[0].metrics.halstead.n2
old: 42.0
new: 10.0

path: .spaces[0].metrics.mi.mi_original
old: 65.83208328391964
new: 103.22988085921448

path: .spaces[0].metrics.mi.mi_sei
old: 66.0634191115258
new: 73.5338447733479

path: .spaces[0].metrics.mi.mi_visual_studio
old: 38.49829431808166
new: 60.36835137965759

Code

namespace {

class AutoIDString : public nsAutoCStringN {
 public:
  explicit AutoIDString(const nsID& aID) {
    SetLength(NSID_LENGTH - 1);
    aID.ToProvidedString(
        *reinterpret_cast(BeginWriting()));
  }
};

}  // namespace

Minimal test - lines (79, 86)

path: .spaces[0].spaces[0].metrics.halstead.n1
old: 8.0
new: 12.0

path: .spaces[0].spaces[0].metrics.halstead.purity_ratio
old: 1.752946994167924
new: 2.0605089447980403

path: .spaces[0].spaces[0].metrics.halstead.difficulty
old: 6.536585365853658
new: 8.4

path: .spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: 243.65963218934144
new: 76.2388309575275

path: .spaces[0].spaces[0].metrics.halstead.time
old: 283.41351099319746
new: 76.999519281804

path: .spaces[0].spaces[0].metrics.halstead.N2
old: 67.0
new: 14.0

path: .spaces[0].spaces[0].metrics.halstead.length
old: 139.0
new: 37.0

path: .spaces[0].spaces[0].metrics.halstead.N1
old: 72.0
new: 23.0

path: .spaces[0].spaces[0].metrics.halstead.bugs
old: 0.0987811585635816
new: 0.04143675694155633

path: .spaces[0].spaces[0].metrics.halstead.n2
old: 41.0
new: 10.0

path: .spaces[0].spaces[0].metrics.halstead.vocabulary
old: 49.0
new: 22.0

path: .spaces[0].spaces[0].metrics.halstead.effort
old: 5101.443197877555
new: 1385.991347072472

path: .spaces[0].spaces[0].metrics.halstead.volume
old: 780.444668332014
new: 164.99896988958

path: .spaces[0].spaces[0].metrics.halstead.level
old: 0.15298507462686567
new: 0.11904761904761904

path: .spaces[0].spaces[0].metrics.nexits.average
old: null
new: 0.0

path: .spaces[0].spaces[0].metrics.mi.mi_original
old: 66.62618263230141
new: 110.30216302469094

path: .spaces[0].spaces[0].metrics.mi.mi_sei
old: 67.15096208198517
new: 83.63517132184379

path: .spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: 38.96267990193065
new: 64.50418890332804

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

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

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

path: .spaces[0].spaces[0].metrics.cognitive.average
old: null
new: 0.0

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

path: .spaces[0].spaces[0].metrics.loc.ploc
old: 23.0
new: 8.0

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

path: .spaces[0].spaces[0].metrics.loc.sloc
old: 69.0
new: 8.0

path: .spaces[0].spaces[0].metrics.loc.lloc
old: 0.0
new: 2.0

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

path: .spaces[0].spaces[0].metrics.nargs.average
old: null
new: 1.0

Code

class AutoIDString : public nsAutoCStringN {
 public:
  explicit AutoIDString(const nsID& aID) {
    SetLength(NSID_LENGTH - 1);
    aID.ToProvidedString(
        *reinterpret_cast(BeginWriting()));
  }
};

Minimal test - lines (81, 85)

path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_visual_studio
old: null
new: 69.92743805480441

path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_original
old: null
new: 119.57591907371554

path: .spaces[0].spaces[0].spaces[0].metrics.mi.mi_sei
old: null
new: 96.91255332478111

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

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

path: .spaces[0].spaces[0].spaces[0].metrics.cognitive.average
old: null
new: 0.0

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.N2
old: 1.0
new: 11.0

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.time
old: 0.0
new: 46.80754841036961

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.volume
old: 0.0
new: 125.33591475173353

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.vocabulary
old: 1.0
new: 20.0

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.purity_ratio
old: null
new: 2.295968028206589

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.effort
old: 0.0
new: 842.5358713866531

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.N1
old: 0.0
new: 18.0

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

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.difficulty
old: 0.0
new: 6.722222222222222

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.bugs
old: 0.0
new: 0.02973521014579129

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.level
old: null
new: 0.1487603305785124

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.n2
old: 1.0
new: 9.0

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.length
old: 1.0
new: 29.0

path: .spaces[0].spaces[0].spaces[0].metrics.halstead.estimated_program_length
old: null
new: 66.58307281799108

path: .spaces[0].spaces[0].spaces[0].metrics.nexits.average
old: null
new: 0.0

path: .spaces[0].spaces[0].spaces[0].metrics.loc.ploc
old: 1.0
new: 5.0

path: .spaces[0].spaces[0].spaces[0].metrics.loc.sloc
old: 1.0
new: 5.0

path: .spaces[0].spaces[0].spaces[0].metrics.loc.lloc
old: 0.0
new: 2.0

path: .spaces[0].spaces[0].spaces[0].metrics.nargs.average
old: null
new: 1.0

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

Code

  explicit AutoIDString(const nsID& aID) {
    SetLength(NSID_LENGTH - 1);
    aID.ToProvidedString(
        *reinterpret_cast(BeginWriting()));
  }