# Global Metrics

path: .metrics.mi.mi_sei
old: 42.60036189454803
new: -34.82414305390973
path: .metrics.mi.mi_original
old: 60.86840469582843
new: 18.285202714633357
path: .metrics.mi.mi_visual_studio
old: 35.59555830165405
new: 10.693101002709565
path: .metrics.nexits.sum
old: 1.0
new: 41.0
path: .metrics.nexits.average
old: 0.5
new: 2.05
path: .metrics.cognitive.sum
old: 5.0
new: 36.0
path: .metrics.cognitive.average
old: 2.5
new: 1.8
path: .metrics.nargs.average
old: 3.5
new: 1.35
path: .metrics.nargs.sum
old: 7.0
new: 27.0
path: .metrics.nom.total
old: 2.0
new: 20.0
path: .metrics.nom.functions
old: 2.0
new: 20.0
path: .metrics.cyclomatic.sum
old: 18.0
new: 55.0
path: .metrics.cyclomatic.average
old: 6.0
new: 2.619047619047619
path: .metrics.halstead.N2
old: 112.0
new: 492.0
path: .metrics.halstead.n2
old: 45.0
new: 96.0
path: .metrics.halstead.level
old: 0.03493788819875776
new: 0.017738359201773836
path: .metrics.halstead.effort
old: 65338.767829420314
new: 539332.5126518055
path: .metrics.halstead.bugs
old: 0.5407452403018944
new: 2.2085970093373497
path: .metrics.halstead.purity_ratio
old: 0.9364675048643912
new: 0.5253697091217637
path: .metrics.halstead.length
old: 375.0
new: 1390.0
path: .metrics.halstead.N1
old: 263.0
new: 898.0
path: .metrics.halstead.vocabulary
old: 68.0
new: 118.0
path: .metrics.halstead.estimated_program_length
old: 351.17531432414665
new: 730.2638956792516
path: .metrics.halstead.volume
old: 2282.7985654688773
new: 9566.87383861296
path: .metrics.halstead.n1
old: 23.0
new: 22.0
path: .metrics.halstead.time
old: 3629.931546078906
new: 29962.917369544753
path: .metrics.halstead.difficulty
old: 28.622222222222224
new: 56.375
path: .metrics.loc.ploc
old: 42.0
new: 247.0
path: .metrics.loc.cloc
old: 9.0
new: 4.0
path: .metrics.loc.lloc
old: 48.0
new: 82.0
path: .metrics.loc.sloc
old: 58.0
new: 300.0
path: .metrics.loc.blank
old: 7.0
new: 49.0

# Spaces Data

## Minimal test - lines (12, 19)

path: .spaces[0].metrics.halstead.effort
old: 50922.46305566143
new: 1126.6069456196246
path: .spaces[0].metrics.halstead.difficulty
old: 27.02857142857143
new: 7.875
path: .spaces[0].metrics.halstead.N2
old: 86.0
new: 14.0
path: .spaces[0].metrics.halstead.N1
old: 237.0
new: 21.0
path: .spaces[0].metrics.halstead.n2
old: 35.0
new: 8.0
path: .spaces[0].metrics.halstead.bugs
old: 0.4579502985258259
new: 0.036090566150035266
path: .spaces[0].metrics.halstead.n1
old: 22.0
new: 9.0
path: .spaces[0].metrics.halstead.level
old: 0.03699788583509514
new: 0.12698412698412698
path: .spaces[0].metrics.halstead.estimated_program_length
old: 277.63240120309433
new: 52.529325012980806
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.8595430377804778
new: 1.500837857513737
path: .spaces[0].metrics.halstead.length
old: 323.0
new: 35.0
path: .spaces[0].metrics.halstead.time
old: 2829.0257253145237
new: 62.589274756645814
path: .spaces[0].metrics.halstead.vocabulary
old: 57.0
new: 17.0
path: .spaces[0].metrics.halstead.volume
old: 1884.0234745752111
new: 143.06119944376186
path: .spaces[0].metrics.nargs.average
old: 3.0
new: 2.0
path: .spaces[0].metrics.nargs.sum
old: 3.0
new: 2.0
path: .spaces[0].metrics.cognitive.sum
old: 5.0
new: 1.0
path: .spaces[0].metrics.cognitive.average
old: 5.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 16.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.sum
old: 16.0
new: 2.0
path: .spaces[0].metrics.nexits.average
old: 0.0
new: 2.0
path: .spaces[0].metrics.nexits.sum
old: 0.0
new: 2.0
path: .spaces[0].metrics.loc.sloc
old: 37.0
new: 8.0
path: .spaces[0].metrics.loc.lloc
old: 47.0
new: 3.0
path: .spaces[0].metrics.loc.cloc
old: 4.0
new: 0.0
path: .spaces[0].metrics.loc.blank
old: 2.0
new: 0.0
path: .spaces[0].metrics.loc.ploc
old: 31.0
new: 8.0
path: .spaces[0].metrics.mi.mi_visual_studio
old: 40.70705979943697
new: 64.93802923344339
path: .spaces[0].metrics.mi.mi_original
old: 69.60907225703721
new: 111.0440299891882
path: .spaces[0].metrics.mi.mi_sei
old: 50.73436639445175
new: 84.70545911252333

### Code

    nsITheme::Transparency nsNativeBasicThemeWin::GetWidgetTransparency(
        nsIFrame* aFrame, StyleAppearance aAppearance) {
      if (auto transparency =
              ScrollbarUtil::GetScrollbarPartTransparency(aFrame, aAppearance)) {
        return *transparency;
      }
      return nsNativeBasicTheme::GetWidgetTransparency(aFrame, aAppearance);
    }

## Minimal test - lines (21, 48)

path: .spaces[1].metrics.mi.mi_sei
old: 98.2060413983146
new: 40.013656057682496
path: .spaces[1].metrics.mi.mi_visual_studio
old: 70.45175244735273
new: 46.53333313934879
path: .spaces[1].metrics.mi.mi_original
old: 120.47249668497318
new: 79.57199966828644
path: .spaces[1].metrics.cyclomatic.sum
old: 1.0
new: 9.0
path: .spaces[1].metrics.cyclomatic.average
old: 1.0
new: 9.0
path: .spaces[1].metrics.nexits.sum
old: 1.0
new: 2.0
path: .spaces[1].metrics.nexits.average
old: 1.0
new: 2.0
path: .spaces[1].metrics.cognitive.average
old: 0.0
new: 8.0
path: .spaces[1].metrics.cognitive.sum
old: 0.0
new: 8.0
path: .spaces[1].metrics.nargs.average
old: 4.0
new: 2.0
path: .spaces[1].metrics.nargs.sum
old: 4.0
new: 2.0
path: .spaces[1].metrics.loc.blank
old: 0.0
new: 3.0
path: .spaces[1].metrics.loc.sloc
old: 5.0
new: 28.0
path: .spaces[1].metrics.loc.lloc
old: 1.0
new: 9.0
path: .spaces[1].metrics.loc.ploc
old: 5.0
new: 25.0
path: .spaces[1].metrics.halstead.effort
old: 553.8017419275075
new: 18313.499458560687
path: .spaces[1].metrics.halstead.time
old: 30.76676344041708
new: 1017.4166365867048
path: .spaces[1].metrics.halstead.N2
old: 12.0
new: 61.0
path: .spaces[1].metrics.halstead.N1
old: 15.0
new: 103.0
path: .spaces[1].metrics.halstead.level
old: 0.1904761904761905
new: 0.049180327868852465
path: .spaces[1].metrics.halstead.purity_ratio
old: 1.616721646459379
new: 1.2404915401486296
path: .spaces[1].metrics.halstead.difficulty
old: 5.25
new: 20.333333333333332
path: .spaces[1].metrics.halstead.estimated_program_length
old: 43.65148445440323
new: 203.4406125843753
path: .spaces[1].metrics.halstead.n2
old: 8.0
new: 27.0
path: .spaces[1].metrics.halstead.volume
old: 105.48604608143
new: 900.6639077980667
path: .spaces[1].metrics.halstead.vocabulary
old: 15.0
new: 45.0
path: .spaces[1].metrics.halstead.bugs
old: 0.022479239973047977
new: 0.2315934675302729
path: .spaces[1].metrics.halstead.length
old: 27.0
new: 164.0
path: .spaces[1].metrics.halstead.n1
old: 7.0
new: 18.0

### Code

    std::pair nsNativeBasicThemeWin::ComputeCheckboxColors(
        const EventStates& aState, StyleAppearance aAppearance) {
      if (!LookAndFeel::GetInt(LookAndFeel::IntID::UseAccessibilityTheme, 0)) {
        return nsNativeBasicTheme::ComputeCheckboxColors(aState, aAppearance);
      }

      bool isDisabled = aState.HasState(NS_EVENT_STATE_DISABLED);
      bool isChecked = aState.HasState(NS_EVENT_STATE_CHECKED);
      bool isIndeterminate = aAppearance == StyleAppearance::Checkbox &&
                             aState.HasState(NS_EVENT_STATE_INDETERMINATE);

      sRGBColor backgroundColor = sRGBColor::FromABGR(
          LookAndFeel::GetColor(LookAndFeel::ColorID::TextBackground));
      sRGBColor borderColor = sRGBColor::FromABGR(
          LookAndFeel::GetColor(LookAndFeel::ColorID::Buttontext));
      if (isDisabled && (isChecked || isIndeterminate)) {
        backgroundColor = borderColor = sRGBColor::FromABGR(
            LookAndFeel::GetColor(LookAndFeel::ColorID::Graytext));
      } else if (isDisabled) {
        borderColor = sRGBColor::FromABGR(
            LookAndFeel::GetColor(LookAndFeel::ColorID::Graytext));
      } else if (isChecked || isIndeterminate) {
        backgroundColor = borderColor = sRGBColor::FromABGR(
            LookAndFeel::GetColor(LookAndFeel::ColorID::Highlight));
      }

      return std::make_pair(backgroundColor, borderColor);
    }