Global Metrics

path: .metrics.mi.mi_original
old: 93.72239544933647
new: -21.127393533608014

path: .metrics.mi.mi_sei
old: 99.49172243505194
new: -67.88109198004096

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

path: .metrics.cyclomatic.sum
old: 3.0
new: 136.0

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

path: .metrics.loc.sloc
old: 20.0
new: 818.0

path: .metrics.loc.cloc
old: 7.0
new: 89.0

path: .metrics.loc.blank
old: 2.0
new: 139.0

path: .metrics.loc.ploc
old: 11.0
new: 590.0

path: .metrics.loc.lloc
old: 2.0
new: 275.0

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

path: .metrics.cognitive.average
old: 0.0
new: 1.1666666666666667

path: .metrics.nom.functions
old: 2.0
new: 66.0

path: .metrics.nom.total
old: 2.0
new: 66.0

path: .metrics.nargs.sum
old: 4.0
new: 120.0

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

path: .metrics.halstead.difficulty
old: 6.730769230769231
new: 53.30769230769231

path: .metrics.halstead.N2
old: 25.0
new: 1155.0

path: .metrics.halstead.n1
old: 7.0
new: 30.0

path: .metrics.halstead.purity_ratio
old: 1.3285725645144593
new: 1.058926995533665

path: .metrics.halstead.N1
old: 26.0
new: 1545.0

path: .metrics.halstead.vocabulary
old: 20.0
new: 355.0

path: .metrics.halstead.volume
old: 220.4183328392555
new: 22873.52307885852

path: .metrics.halstead.effort
old: 1483.584932571912
new: 1219334.7302806887

path: .metrics.halstead.time
old: 82.421385142884
new: 67740.81834892715

path: .metrics.halstead.length
old: 51.0
new: 2700.0

path: .metrics.halstead.estimated_program_length
old: 67.75720079023742
new: 2859.102887940896

path: .metrics.halstead.level
old: 0.14857142857142858
new: 0.01875901875901876

path: .metrics.halstead.n2
old: 13.0
new: 325.0

path: .metrics.halstead.bugs
old: 0.043359775131972755
new: 3.804468926244172

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

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

Spaces Data

Minimal test - lines (71, 90)

path: .spaces[1].metrics.loc.lloc
old: 1.0
new: 8.0

path: .spaces[1].metrics.loc.sloc
old: 4.0
new: 20.0

path: .spaces[1].metrics.loc.ploc
old: 4.0
new: 16.0

path: .spaces[1].metrics.loc.blank
old: 0.0
new: 4.0

path: .spaces[1].metrics.cognitive.sum
old: 0.0
new: 3.0

path: .spaces[1].metrics.cognitive.average
old: 0.0
new: 3.0

path: .spaces[1].metrics.nargs.average
old: 2.0
new: 0.0

path: .spaces[1].metrics.nargs.sum
old: 2.0
new: 0.0

path: .spaces[1].metrics.cyclomatic.average
old: 1.0
new: 4.0

path: .spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 4.0

path: .spaces[1].metrics.mi.mi_sei
old: 104.49849186155518
new: 57.08549959832895

path: .spaces[1].metrics.mi.mi_original
old: 124.83409098238153
new: 91.75818062780212

path: .spaces[1].metrics.mi.mi_visual_studio
old: 73.00239238735762
new: 53.659754753100664

path: .spaces[1].metrics.halstead.n1
old: 7.0
new: 13.0

path: .spaces[1].metrics.halstead.N1
old: 13.0
new: 40.0

path: .spaces[1].metrics.halstead.length
old: 24.0
new: 64.0

path: .spaces[1].metrics.halstead.time
old: 27.920602761755767
new: 177.76530200675228

path: .spaces[1].metrics.halstead.difficulty
old: 5.5
new: 10.4

path: .spaces[1].metrics.halstead.purity_ratio
old: 1.6376237045336024
new: 1.6673293010931558

path: .spaces[1].metrics.halstead.vocabulary
old: 14.0
new: 28.0

path: .spaces[1].metrics.halstead.estimated_program_length
old: 39.302968908806456
new: 106.70907526996196

path: .spaces[1].metrics.halstead.n2
old: 7.0
new: 15.0

path: .spaces[1].metrics.halstead.bugs
old: 0.021070601904317903
new: 0.07238108329098972

path: .spaces[1].metrics.halstead.effort
old: 502.5708497116038
new: 3199.775436121541

path: .spaces[1].metrics.halstead.volume
old: 91.3765181293825
new: 307.67071501168664

path: .spaces[1].metrics.halstead.level
old: 0.18181818181818185
new: 0.09615384615384616

path: .spaces[1].metrics.halstead.N2
old: 11.0
new: 24.0

path: .spaces[1].metrics.nexits.sum
old: 0.0
new: 4.0

path: .spaces[1].metrics.nexits.average
old: 0.0
new: 4.0

Code

already_AddRefed
nsContentTreeOwner::GetWebBrowserChrome() {
  if (!mAppWindow) {
    return nullptr;
  }

  nsCOMPtr docShell;
  mAppWindow->GetDocShell(getter_AddRefs(docShell));

  if (!docShell) {
    return nullptr;
  }

  if (nsCOMPtr chrome =
          do_QueryActor("WebBrowserChrome", docShell->GetDocument())) {
    return chrome.forget();
  }

  return nullptr;
}

Minimal test - lines (51, 69)

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

path: .spaces[0].metrics.mi.mi_visual_studio
old: 73.00239238735762
new: 58.20350037454632

path: .spaces[0].metrics.mi.mi_sei
old: 104.49849186155518
new: 106.22436571270518

path: .spaces[0].metrics.mi.mi_original
old: 124.83409098238153
new: 99.5279856404742

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

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

path: .spaces[0].metrics.halstead.difficulty
old: 5.5
new: 4.714285714285714

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

path: .spaces[0].metrics.halstead.purity_ratio
old: 1.6376237045336024
new: 1.4064503783492066

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

path: .spaces[0].metrics.halstead.estimated_program_length
old: 39.302968908806456
new: 35.161259458730164

path: .spaces[0].metrics.halstead.level
old: 0.18181818181818185
new: 0.21212121212121213

path: .spaces[0].metrics.halstead.volume
old: 91.3765181293825
new: 92.5109929535273

path: .spaces[0].metrics.halstead.bugs
old: 0.021070601904317903
new: 0.01916982905574607

path: .spaces[0].metrics.halstead.effort
old: 502.5708497116038
new: 436.1232524952002

path: .spaces[0].metrics.halstead.time
old: 27.920602761755767
new: 24.229069583066675

path: .spaces[0].metrics.halstead.length
old: 24.0
new: 25.0

path: .spaces[0].metrics.halstead.vocabulary
old: 14.0
new: 13.0

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

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

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

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

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

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

path: .spaces[0].metrics.loc.sloc
old: 4.0
new: 19.0

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

Code

class nsSiteWindow : public nsIEmbeddingSiteWindow {
  // nsSiteWindow shares a lifetime with nsContentTreeOwner, and proxies it's
  // AddRef and Release calls to said object.
  // When nsContentTreeOwner is destroyed, nsSiteWindow will be destroyed as
  // well. nsContentTreeOwner is a friend class of nsSiteWindow such that it can
  // call nsSiteWindow's destructor, which is private, as public destructors on
  // reference counted classes are generally unsafe.
  friend class nsContentTreeOwner;

 public:
  explicit nsSiteWindow(nsContentTreeOwner* aAggregator);

  NS_DECL_ISUPPORTS_INHERITED
  NS_DECL_NSIEMBEDDINGSITEWINDOW

 private:
  virtual ~nsSiteWindow();
  nsContentTreeOwner* mAggregator;
};