# Global Metrics

path: .metrics.cognitive.average
old: 8.0
new: 5.333333333333333
path: .metrics.cognitive.sum
old: 80.0
new: 16.0
path: .metrics.halstead.difficulty
old: 57.84239130434783
new: 18.0327868852459
path: .metrics.halstead.purity_ratio
old: 0.8806101898228579
new: 1.6358158375513991
path: .metrics.halstead.estimated_program_length
old: 1525.21684877319
new: 448.21353948908336
path: .metrics.halstead.n2
old: 184.0
new: 61.0
path: .metrics.halstead.time
old: 43049.254557163695
new: 1740.2830517936482
path: .metrics.halstead.length
old: 1732.0
new: 274.0
path: .metrics.halstead.n1
old: 29.0
new: 20.0
path: .metrics.halstead.N1
old: 998.0
new: 164.0
path: .metrics.halstead.bugs
old: 2.812143677109173
new: 0.33123814397231705
path: .metrics.halstead.effort
old: 774886.5820289465
new: 31325.094932285665
path: .metrics.halstead.level
old: 0.017288358545522877
new: 0.05545454545454546
path: .metrics.halstead.N2
old: 734.0
new: 110.0
path: .metrics.halstead.volume
old: 13396.517062231153
new: 1737.118900790387
path: .metrics.halstead.vocabulary
old: 213.0
new: 81.0
path: .metrics.cyclomatic.average
old: 6.363636363636363
new: 3.0
path: .metrics.cyclomatic.sum
old: 70.0
new: 12.0
path: .metrics.loc.ploc
old: 411.0
new: 66.0
path: .metrics.loc.blank
old: 45.0
new: 16.0
path: .metrics.loc.lloc
old: 177.0
new: 26.0
path: .metrics.loc.sloc
old: 485.0
new: 107.0
path: .metrics.loc.cloc
old: 29.0
new: 25.0
path: .metrics.mi.mi_sei
old: -42.43233514328631
new: 37.1024772546909
path: .metrics.mi.mi_visual_studio
old: 3.1008700604702617
new: 31.431731087745185
path: .metrics.mi.mi_original
old: 5.302487803404148
new: 53.74826016004427
path: .metrics.nargs.sum
old: 6.0
new: 0.0
path: .metrics.nargs.average
old: 0.6
new: 0.0
path: .metrics.nexits.sum
old: 46.0
new: 2.0
path: .metrics.nexits.average
old: 4.6
new: 0.6666666666666666
path: .metrics.nom.closures
old: 1.0
new: 0.0
path: .metrics.nom.total
old: 10.0
new: 3.0
path: .metrics.nom.functions
old: 9.0
new: 3.0

# Spaces Data

## Minimal test - lines (21, 30)

path: .spaces[0].metrics.loc.ploc
old: 396.0
new: 10.0
path: .spaces[0].metrics.loc.blank
old: 43.0
new: 0.0
path: .spaces[0].metrics.loc.lloc
old: 177.0
new: 3.0
path: .spaces[0].metrics.loc.sloc
old: 464.0
new: 10.0
path: .spaces[0].metrics.loc.cloc
old: 25.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 0.6
new: 0.0
path: .spaces[0].metrics.nargs.sum
old: 6.0
new: 0.0
path: .spaces[0].metrics.cyclomatic.sum
old: 69.0
new: 2.0
path: .spaces[0].metrics.cyclomatic.average
old: 6.9
new: 2.0
path: .spaces[0].metrics.mi.mi_sei
old: -41.89604369205328
new: 79.28924772494271
path: .spaces[0].metrics.mi.mi_visual_studio
old: 3.7228747816959857
new: 62.742572126649144
path: .spaces[0].metrics.mi.mi_original
old: 6.366115876700135
new: 107.28979833657004
path: .spaces[0].metrics.nexits.average
old: 4.6
new: 1.0
path: .spaces[0].metrics.nexits.sum
old: 46.0
new: 1.0
path: .spaces[0].metrics.cognitive.sum
old: 80.0
new: 1.0
path: .spaces[0].metrics.cognitive.average
old: 8.0
new: 1.0
path: .spaces[0].metrics.nom.closures
old: 1.0
new: 0.0
path: .spaces[0].metrics.nom.total
old: 10.0
new: 1.0
path: .spaces[0].metrics.nom.functions
old: 9.0
new: 1.0
path: .spaces[0].metrics.halstead.n2
old: 169.0
new: 10.0
path: .spaces[0].metrics.halstead.length
old: 1717.0
new: 34.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 0.8105009164766388
new: 1.9540753499337429
path: .spaces[0].metrics.halstead.volume
old: 13099.605316676689
new: 146.94555522617034
path: .spaces[0].metrics.halstead.bugs
old: 2.891951539242545
new: 0.028921768200934967
path: .spaces[0].metrics.halstead.difficulty
old: 61.68934911242604
new: 5.5
path: .spaces[0].metrics.halstead.estimated_program_length
old: 1391.6300735903887
new: 66.43856189774725
path: .spaces[0].metrics.halstead.N1
old: 998.0
new: 23.0
path: .spaces[0].metrics.halstead.N2
old: 719.0
new: 11.0
path: .spaces[0].metrics.halstead.level
old: 0.01621025370485828
new: 0.18181818181818185
path: .spaces[0].metrics.halstead.n1
old: 29.0
new: 10.0
path: .spaces[0].metrics.halstead.effort
old: 808106.1256154604
new: 808.2005537439369
path: .spaces[0].metrics.halstead.vocabulary
old: 198.0
new: 20.0
path: .spaces[0].metrics.halstead.time
old: 44894.78475641447
new: 44.90003076355205

### Code

    void nsSandboxViolationSink::Start() {
      if (mNotifyToken) {
        return;
      }
      notify_register_dispatch(
          SANDBOX_VIOLATION_NOTIFICATION_NAME, &mNotifyToken,
          dispatch_queue_create(SANDBOX_VIOLATION_QUEUE_NAME, DISPATCH_QUEUE_SERIAL), ^(int token) {
            ViolationHandler();
          });
    }