# Global Metrics

path: .metrics.cognitive.sum
old: 73.0
new: 0.0
path: .metrics.cognitive.average
old: 1.280701754385965
new: 0.0
path: .metrics.nexits.average
old: 0.7719298245614035
new: 1.0
path: .metrics.nexits.sum
old: 44.0
new: 4.0
path: .metrics.cyclomatic.average
old: 2.088235294117647
new: 1.0
path: .metrics.cyclomatic.sum
old: 142.0
new: 5.0
path: .metrics.mi.mi_visual_studio
old: 0.0
new: 35.346148579279884
path: .metrics.mi.mi_original
old: -30.726481458068776
new: 60.4419140705686
path: .metrics.mi.mi_sei
old: -68.84217326079181
new: 29.086414134678463
path: .metrics.nargs.average
old: 0.9649122807017544
new: 1.75
path: .metrics.nargs.sum
old: 55.0
new: 7.0
path: .metrics.nom.functions
old: 57.0
new: 4.0
path: .metrics.nom.total
old: 57.0
new: 4.0
path: .metrics.halstead.vocabulary
old: 458.0
new: 87.0
path: .metrics.halstead.N1
old: 2102.0
new: 131.0
path: .metrics.halstead.bugs
old: 5.482248751418368
new: 0.23902608123731056
path: .metrics.halstead.purity_ratio
old: 1.1022873488876763
new: 1.944847760124048
path: .metrics.halstead.volume
old: 30866.49962803453
new: 1681.608252416518
path: .metrics.halstead.N2
old: 1390.0
new: 130.0
path: .metrics.halstead.n1
old: 41.0
new: 13.0
path: .metrics.halstead.level
old: 0.014634146341463415
new: 0.08757396449704141
path: .metrics.halstead.difficulty
old: 68.33333333333333
new: 11.41891891891892
path: .metrics.halstead.effort
old: 2109210.8079156927
new: 19202.14828772916
path: .metrics.halstead.length
old: 3492.0
new: 261.0
path: .metrics.halstead.time
old: 117178.37821753848
new: 1066.786015984953
path: .metrics.halstead.n2
old: 417.0
new: 74.0
path: .metrics.halstead.estimated_program_length
old: 3849.1874223157656
new: 507.6052653923765
path: .metrics.loc.blank
old: 129.0
new: 17.0
path: .metrics.loc.lloc
old: 260.0
new: 21.0
path: .metrics.loc.cloc
old: 350.0
new: 4.0
path: .metrics.loc.ploc
old: 755.0
new: 58.0
path: .metrics.loc.sloc
old: 1234.0
new: 79.0

# Spaces Data

## Minimal test - lines (21, 40)

path: .spaces[0].metrics.nexits.average
old: 0.7719298245614035
new: 1.0
path: .spaces[0].metrics.nexits.sum
old: 44.0
new: 1.0
path: .spaces[0].metrics.loc.ploc
old: 733.0
new: 15.0
path: .spaces[0].metrics.loc.sloc
old: 1166.0
new: 20.0
path: .spaces[0].metrics.loc.lloc
old: 260.0
new: 7.0
path: .spaces[0].metrics.loc.cloc
old: 309.0
new: 1.0
path: .spaces[0].metrics.loc.blank
old: 124.0
new: 4.0
path: .spaces[0].metrics.mi.mi_sei
old: -68.20018350012768
new: 70.74225958569681
path: .spaces[0].metrics.mi.mi_original
old: -29.55361218360008
new: 89.66906907229803
path: .spaces[0].metrics.mi.mi_visual_studio
old: 0.0
new: 52.43805208906317
path: .spaces[0].metrics.nargs.sum
old: 55.0
new: 0.0
path: .spaces[0].metrics.nargs.average
old: 0.9649122807017544
new: 0.0
path: .spaces[0].metrics.halstead.bugs
old: 5.494183219803923
new: 0.0848998177340098
path: .spaces[0].metrics.halstead.N1
old: 2102.0
new: 50.0
path: .spaces[0].metrics.halstead.n1
old: 41.0
new: 10.0
path: .spaces[0].metrics.halstead.estimated_program_length
old: 3788.370406082513
new: 186.79936657086677
path: .spaces[0].metrics.halstead.effort
old: 2116101.9593754997
new: 4064.826553181205
path: .spaces[0].metrics.halstead.time
old: 117561.21996530554
new: 225.8236973989558
path: .spaces[0].metrics.halstead.N2
old: 1381.0
new: 48.0
path: .spaces[0].metrics.halstead.volume
old: 30720.683326092098
new: 525.0400964525722
path: .spaces[0].metrics.halstead.level
old: 0.014517581815934016
new: 0.12916666666666665
path: .spaces[0].metrics.halstead.n2
old: 411.0
new: 31.0
path: .spaces[0].metrics.halstead.difficulty
old: 68.88199513381996
new: 7.741935483870968
path: .spaces[0].metrics.halstead.length
old: 3483.0
new: 98.0
path: .spaces[0].metrics.halstead.vocabulary
old: 452.0
new: 41.0
path: .spaces[0].metrics.halstead.purity_ratio
old: 1.08767453519452
new: 1.906115985417008
path: .spaces[0].metrics.cyclomatic.sum
old: 141.0
new: 1.0
path: .spaces[0].metrics.cyclomatic.average
old: 2.1044776119402986
new: 1.0
path: .spaces[0].metrics.cognitive.sum
old: 73.0
new: 0.0
path: .spaces[0].metrics.cognitive.average
old: 1.280701754385965
new: 0.0
path: .spaces[0].metrics.nom.functions
old: 57.0
new: 1.0
path: .spaces[0].metrics.nom.total
old: 57.0
new: 1.0

### Code

    already_AddRefed nsDeviceContextSpecAndroid::MakePrintTarget() {
      nsresult rv =
          NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(mTempFile));
      NS_ENSURE_SUCCESS(rv, nullptr);

      nsAutoCString filename("tmp-printing.pdf");
      mTempFile->AppendNative(filename);
      rv = mTempFile->CreateUnique(nsIFile::NORMAL_FILE_TYPE, 0660);
      NS_ENSURE_SUCCESS(rv, nullptr);

      nsCOMPtr stream =
          do_CreateInstance("@mozilla.org/network/file-output-stream;1");
      rv = stream->Init(mTempFile, -1, -1, 0);
      NS_ENSURE_SUCCESS(rv, nullptr);

      // XXX: what should we do here for size? screen size?
      IntSize size(480, 800);

      return PrintTargetPDF::CreateOrNull(stream, size);
    }