Global Metrics

path: .metrics.mi.mi_sei
old: -120.54027799678455
new: 63.59783627980417

path: .metrics.mi.mi_original
old: -66.29050815906746
new: 77.94656232302165

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

path: .metrics.halstead.effort
old: 3139326.320929187
new: 5184.309322935213

path: .metrics.halstead.N2
old: 2036.0
new: 56.0

path: .metrics.halstead.n2
old: 540.0
new: 35.0

path: .metrics.halstead.n1
old: 35.0
new: 10.0

path: .metrics.halstead.time
old: 174407.01782939926
new: 288.0171846075118

path: .metrics.halstead.purity_ratio
old: 0.9789990998074224
new: 1.8029168351012497

path: .metrics.halstead.N1
old: 3154.0
new: 62.0

path: .metrics.halstead.estimated_program_length
old: 5081.005328000522
new: 212.74418654194744

path: .metrics.halstead.length
old: 5190.0
new: 118.0

path: .metrics.halstead.level
old: 0.01515576761156329
new: 0.125

path: .metrics.halstead.difficulty
old: 65.98148148148148
new: 8.0

path: .metrics.halstead.vocabulary
old: 575.0
new: 45.0

path: .metrics.halstead.volume
old: 47578.900176866715
new: 648.0386653669016

path: .metrics.halstead.bugs
old: 7.146658874964908
new: 0.09984799518078238

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

path: .metrics.cognitive.average
old: 3.966666666666667
new: null

path: .metrics.cyclomatic.sum
old: 273.0
new: 2.0

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

path: .metrics.nexits.average
old: 1.5666666666666669
new: null

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

path: .metrics.nargs.average
old: 0.65
new: null

path: .metrics.nargs.sum
old: 39.0
new: 0.0

path: .metrics.nom.total
old: 60.0
new: 0.0

path: .metrics.nom.functions
old: 58.0
new: 0.0

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

path: .metrics.loc.blank
old: 243.0
new: 7.0

path: .metrics.loc.sloc
old: 1502.0
new: 38.0

path: .metrics.loc.cloc
old: 143.0
new: 5.0

path: .metrics.loc.ploc
old: 1116.0
new: 26.0

path: .metrics.loc.lloc
old: 514.0
new: 0.0

Spaces Data

Minimal test - lines (12, 36)

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

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

path: .spaces[0].metrics.cognitive.sum
old: 238.0
new: 0.0

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

path: .spaces[0].metrics.mi.mi_sei
old: -119.79394506270222
new: 47.43389091453865

path: .spaces[0].metrics.mi.mi_visual_studio
old: 0.0
new: 49.87130042466585

path: .spaces[0].metrics.mi.mi_original
old: -65.5762374408726
new: 85.27992372617861

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

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

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

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

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

path: .spaces[0].metrics.halstead.level
old: 0.014570290267501423
new: 0.12307692307692308

path: .spaces[0].metrics.halstead.difficulty
old: 68.6328125
new: 8.125

path: .spaces[0].metrics.halstead.bugs
old: 7.272097901523565
new: 0.096827098989404

path: .spaces[0].metrics.halstead.effort
old: 3222340.7063053967
new: 4950.82143378875

path: .spaces[0].metrics.halstead.vocabulary
old: 547.0
new: 42.0

path: .spaces[0].metrics.halstead.N1
old: 3154.0
new: 61.0

path: .spaces[0].metrics.halstead.N2
old: 2008.0
new: 52.0

path: .spaces[0].metrics.halstead.estimated_program_length
old: 4787.5249055930735
new: 193.21928094887363

path: .spaces[0].metrics.halstead.purity_ratio
old: 0.927455425337674
new: 1.7099051411404746

path: .spaces[0].metrics.halstead.n2
old: 512.0
new: 32.0

path: .spaces[0].metrics.halstead.time
old: 179018.9281280776
new: 275.0456352104861

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

path: .spaces[0].metrics.halstead.volume
old: 46950.439431655184
new: 609.331868774

path: .spaces[0].metrics.halstead.length
old: 5162.0
new: 113.0

path: .spaces[0].metrics.cyclomatic.average
old: 4.610169491525424
new: 1.0

path: .spaces[0].metrics.cyclomatic.sum
old: 272.0
new: 1.0

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

path: .spaces[0].metrics.loc.sloc
old: 1464.0
new: 25.0

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

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

path: .spaces[0].metrics.loc.ploc
old: 1087.0
new: 21.0

Code

class nsOSHelperAppService : public nsExternalHelperAppService {
 public:
  nsOSHelperAppService();
  virtual ~nsOSHelperAppService();

  nsresult GetMIMEInfoFromOS(const nsACString& aMIMEType,
                             const nsACString& aFileExt, bool* aFound,
                             nsIMIMEInfo** aMIMEInfo) override;

  [[nodiscard]] nsresult OSProtocolHandlerExists(const char* aScheme,
                                                 bool* aExists) override;

  NS_IMETHOD GetProtocolHandlerInfoFromOS(const nsACString& aScheme,
                                          bool* found,
                                          nsIHandlerInfo** _retval) override;
  NS_IMETHOD GetApplicationDescription(const nsACString& aScheme,
                                       nsAString& _retval) override;
  NS_IMETHOD IsCurrentAppOSDefaultForProtocol(const nsACString& aScheme,
                                              bool* _retval) override;

  static nsIHandlerApp* CreateAndroidHandlerApp(
      const nsAString& aName, const nsAString& aDescription,
      const nsAString& aPackageName, const nsAString& aClassName,
      const nsACString& aMimeType, const nsAString& aAction = u""_ns);
};