Global Metrics

path: .metrics.cognitive.sum
old: 19.0
new: 4.0

path: .metrics.cognitive.average
old: 1.3571428571428572
new: 1.0

path: .metrics.halstead.bugs
old: 1.468048630155918
new: 0.2311753459972429

path: .metrics.halstead.estimated_program_length
old: 1635.7847042325543
new: 159.11595475302198

path: .metrics.halstead.purity_ratio
old: 1.4162638131883587
new: 0.9040679247330794

path: .metrics.halstead.vocabulary
old: 224.0
new: 37.0

path: .metrics.halstead.volume
old: 9017.494934976532
new: 916.8637923506952

path: .metrics.halstead.n2
old: 199.0
new: 25.0

path: .metrics.halstead.length
old: 1155.0
new: 176.0

path: .metrics.halstead.level
old: 0.030852713178294577
new: 0.0502008032128514

path: .metrics.halstead.time
old: 16237.532755611008
new: 1014.6625968681028

path: .metrics.halstead.N1
old: 639.0
new: 93.0

path: .metrics.halstead.N2
old: 516.0
new: 83.0

path: .metrics.halstead.difficulty
old: 32.41206030150754
new: 19.92

path: .metrics.halstead.effort
old: 292275.58960099815
new: 18263.926743625852

path: .metrics.halstead.n1
old: 25.0
new: 12.0

path: .metrics.nargs.average
old: 2.142857142857143
new: 2.0

path: .metrics.nargs.sum
old: 30.0
new: 8.0

path: .metrics.mi.mi_original
old: 21.45352228811298
new: 59.8596381168404

path: .metrics.mi.mi_visual_studio
old: 12.545919466732736
new: 35.00563632563766

path: .metrics.mi.mi_sei
old: -12.015981618500778
new: 53.931800119954495

path: .metrics.nexits.average
old: 1.5
new: 0.0

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

path: .metrics.nom.total
old: 14.0
new: 4.0

path: .metrics.nom.functions
old: 11.0
new: 4.0

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

path: .metrics.cyclomatic.average
old: 2.3333333333333335
new: 1.8

path: .metrics.cyclomatic.sum
old: 35.0
new: 9.0

path: .metrics.loc.lloc
old: 91.0
new: 11.0

path: .metrics.loc.blank
old: 48.0
new: 15.0

path: .metrics.loc.cloc
old: 54.0
new: 40.0

path: .metrics.loc.ploc
old: 232.0
new: 39.0

path: .metrics.loc.sloc
old: 334.0
new: 94.0

Spaces Data

Minimal test - lines (27, 47)

path: .spaces[0].metrics.mi.mi_sei
old: -10.507191054407496
new: 98.66515785118254

path: .spaces[0].metrics.mi.mi_visual_studio
old: 13.435302495502524
new: 54.79098937587609

path: .spaces[0].metrics.mi.mi_original
old: 22.97436726730932
new: 93.69259183274812

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

path: .spaces[0].metrics.loc.cloc
old: 48.0
new: 7.0

path: .spaces[0].metrics.loc.sloc
old: 311.0
new: 21.0

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

path: .spaces[0].metrics.loc.blank
old: 46.0
new: 4.0

path: .spaces[0].metrics.halstead.effort
old: 299047.62871580676
new: 1531.0517389731428

path: .spaces[0].metrics.halstead.time
old: 16613.757150878155
new: 85.05842994295239

path: .spaces[0].metrics.halstead.volume
old: 8786.389410572207
new: 199.03672606650855

path: .spaces[0].metrics.halstead.bugs
old: 1.4906384543760445
new: 0.0442797666319799

path: .spaces[0].metrics.halstead.n2
old: 184.0
new: 13.0

path: .spaces[0].metrics.halstead.N2
old: 501.0
new: 20.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 1500.4318046588585
new: 81.32499728470782

path: .spaces[0].metrics.halstead.length
old: 1140.0
new: 44.0

path: .spaces[0].metrics.halstead.level
old: 0.0293812375249501
new: 0.13

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

path: .spaces[0].metrics.halstead.difficulty
old: 34.03532608695652
new: 7.6923076923076925

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.316168249700753
new: 1.8482953928342687

path: .spaces[0].metrics.halstead.vocabulary
old: 209.0
new: 23.0

path: .spaces[0].metrics.halstead.n1
old: 25.0
new: 10.0

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

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

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

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

path: .spaces[0].metrics.nexits.sum
old: 21.0
new: 0.0

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

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

path: .spaces[0].metrics.nom.closures
old: 3.0
new: 0.0

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

path: .spaces[0].metrics.nargs.average
old: 2.142857142857143
new: 2.0

path: .spaces[0].metrics.nargs.sum
old: 30.0
new: 2.0

Code

void  // nsresult
Test03_raw(nsINode* aDOMNode, nsString* aResult)
// m140, w62
{
  // -- the following code is assumed, but is commented out so we compare only
  //		 the relevent generated code

  //		if ( !aDOMNode || !aResult )
  //			return NS_ERROR_NULL_POINTER;

  nsINode* parent = 0;
  nsresult status = aDOMNode->GetParentNode(&parent);

  if (NS_SUCCEEDED(status)) {
    parent->GetNodeName(*aResult);
  }

  NS_IF_RELEASE(parent);

  //		return status;
}