{ "data_id": "51", "name": "jm1", "exact_name": "jm1", "version": 1, "version_label": null, "description": "**Author**: \n**Source**: Unknown - Date unknown \n**Please cite**: \n\nThis is a PROMISE data set made publicly available in order to encourage repeatable, verifiable, refutable, and\/or improvable predictive models of software engineering.\n\nIf you publish material based on PROMISE data sets then, please follow the acknowledgment guidelines posted on [the PROMISE repository web page](http:\/\/promise.site.uottawa.ca\/SERepository).\n\n## Title\/Topic\nJM1\/software defect prediction\n\n\n## Sources\n* **Creators:** NASA, then the NASA Metrics Data Program, http:\/\/mdp.ivv.nasa.gov. \n* **Contacts:** \n * Mike Chapman, Galaxy Global Corporation (Robert.Chapman@ivv.nasa.gov) +1-304-367-8341\n * Pat Callis, NASA, NASA project manager for MDP (Patrick.E.Callis@ivv.nasa.gov) +1-304-367-8309\n\n* **Donor:** Tim Menzies (tim@barmag.net)\n\n* **Date:** December 2nd, 2004\n\n## Past usage\n**_How Good is Your Blind Spot Sampling Policy?_; 2003; Tim Menzies and Justin S. Di Stefano; 2004 IEEE Conference on High Assurance Software Engineering (http:\/\/menzies.us\/pdf\/03blind.pdf).**\n\n### Results:\n* Very simple learners (ROCKY) perform as well in this domain as more sophisticated methods (e.g. J48, model trees, model trees) for predicting detects\n* Many learners have very low false alarm rates.\n* Probability of detection (PD) rises with effort and rarely rises above it.\n* High PDs are associated with high PFs (probability of failure)\n* PD, PF, effort can change significantly while accuracy remains essentially stable\n* With two notable exceptions, detectors learned from one data set (e.g. KC2) have nearly they same properties when applied to another (e.g. PC2, KC2). Exceptions:\n* LinesOfCode measures generate wider inter-data-set variances;\n* Precision's inter-data-set variances vary wildly\n\n**_\"Assessing Predictors of Software Defects\"_, T. Menzies and J. DiStefano and A. Orrego and R. Chapman, 2004,**\n**Proceedings, workshop on Predictive Software Models, Chicago, Available from http:\/\/menzies.us\/pdf\/04psm.pdf.**\n\n### Results:\n* From JM1, Naive Bayes generated PDs of 25% with PF of 20%\n* Naive Bayes out-performs J48 for defect detection\n* When learning on more and more data, little improvement is seen after processing 300 examples.\n* PDs are much higher from data collected below the sub-sub-system level.\n* Accuracy is a surprisingly uninformative measure of success for a defect detector. Two detectors with the same accuracy can have widely varying PDs and PFs.\n\n## Relevant information\n* JM1 is written in \"C\" and is a real-time predictive ground system: Uses simulations to generate predictions\n* Data comes from McCabe and Halstead features extractors of source code. These features were defined in the 70s in an attempt to objectively characterize code features that are associated with software quality. The nature of association is under dispute.\n\nNotes on McCabe and Halstead follow.\n\n* The McCabe and Halstead measures are \"module\"-based where a \"module\" is the smallest unit of functionality. In C or Smalltalk, \"modules\" would be called \"function\" or \"method\" respectively.\n\n* Defect detectors can be assessed according to the following measures:\n\n module actually has defects\n +-------------+------------+\n | no | yes |\n +-----+-------------+------------+\n classifier predicts no defects | no | a | b |\n +-----+-------------+------------+\n classifier predicts some defects | yes | c | d |\n +-----+-------------+------------+\n\n\n accuracy = acc = (a+d)\/(a+b+c+d\n probability of detection = pd = recall = d\/(b+d)\n probability of false alarm = pf = c\/(a+c)\n precision = prec = d\/(c+d)\n effort = amount of code selected by detector = (c.LOC + d.LOC)\/(Total LOC)\n\n\nIdeally, detectors have high PDs, low PFs, and low effort. This ideal state rarely happens:\n\n* PD and effort are linked. The more modules that trigger the detector, the higher the PD. However, effort also gets increases\n* High PD or low PF comes at the cost of high PF or low PD (respectively). This linkage can be seen in a standard receiver operator curve (ROC). Suppose, for example, LOC> x is used as the detector (i.e. we assume large modules have more errors). LOC > x represents a family of detectors. At x=0, EVERY module is predicted to have errors. This detector has a high PD but also a high false alarm rate. At x=0, NO module is predicted to have errors. This detector has a low false alarm rate but won't detect anything at all. At 0 but does not reach it.\n* The line pf=pd on the above graph represents the \"no information\" line. If pf=pd then the detector is pretty useless. The better the detector, the more it rises above PF=PD towards the \"sweet spot\".\n\nNOTES ON MCCABE\/HALSTEAD\n========================\nMcCabe argued that code with complicated pathways are more error-prone. His metrics therefore reflect the pathways within a code module.\n\n @Article{mccabe76,\n title = \"A Complexity Measure\",\n author = \"T.J. McCabe\",\n pages = \"308--320\",\n journal = \"IEEE Transactions on Software Engineering\",\n year = \"1976\",\n volume = \"2\",\n month = \"December\",\n number = \"4\"}\n\nHalstead argued that code that is hard to read is more likely to be fault prone. Halstead estimates reading complexity by counting the number of concepts in a module; e.g. number of unique operators.\n\n @Book{halstead77,\n Author = \"M.H. Halstead\",\n Title = \"Elements of Software Science\",\n Publisher = \"Elsevier \",\n Year = 1977}\n\nWe study these static code measures since they are useful, easy to use, and widely used:\n\n* USEFUL: E.g. this data set can generate highly accurate predictors for defects\n* EASY TO USE: Static code measures (e.g. lines of code, the McCabe\/Halstead measures) can be automatically and cheaply collected.\n* WIDELY USED: Many researchers use static measures to guide software quality predictions (see the reference list in the above \"blind spot\" paper. Verification and validation (V\\&V) textbooks advise using static code complexity measures to decide which modules are worthy of manual inspections. Further, we know of several large government software contractors that won't review software modules _unless_ tools like McCabe predict that they are fault prone. Hence, defect detectors have a major economic impact when they may force programmers to rewrite code.\n\nNevertheless, the merits of these metrics has been widely criticized. Static code measures are hardly a complete characterization of the internals of a function. Fenton offers an insightful example where the same functionality is achieved using different programming language constructs resulting in different static measurements for that module. Fenton uses this example to argue the uselessness of static code measures.\n\n @Book{fenton97,\n author = \"N.E. Fenton and S.L. Pfleeger\",\n title = {Software metrics: a Rigorous \\& Practical Approach},\n publisher = {International Thompson Press},\n year = {1997}}\n\nAn alternative interpretation of Fenton's example is that static measures can never be a definite and certain indicator of the presence of a fault. Rather, defect detectors based on static measures are best viewed as probabilistic statements that the frequency of faults tends to increase in code modules that trigger the detector. By definition, such probabilistic statements will are not categorical claims with some a non-zero false alarm rate. The research challenge for data miners is to ensure that these false alarms do not cripple their learned theories.\n\nThe McCabe metrics are a collection of four software metrics: essential complexity, cyclomatic complexity, design complexity and LOC, Lines of Code.\n\n* Cyclomatic Complexity, or \"v(G)\", measures the number of \"linearly independent paths\". A set of paths is said to be linearly independent if no path in the set is a linear combination of any other paths in the set through a program's \"flowgraph\". A flowgraph is a directed graph where each node corresponds to a program statement, and each arc indicates the flow of control from one statement to another. \"v(G)\" is calculated by \"v(G) = e - n + 2\" where \"G\" is a program's flowgraph, \"e\" is the number of arcs in the flowgraph, and \"n\" is the number of nodes in the flowgraph. The standard McCabes rules (\"v(G)\">10), are used to identify fault-prone module.\n* Essential Complexity, or \"ev(G)$\" is the extent to which a flowgraph can be \"reduced\" by decomposing all the subflowgraphs of $G$ that are \"D-structured primes\". Such \"D-structured primes\" are also sometimes referred to as \"proper one-entry one-exit subflowgraphs\" (for a more thorough discussion of D-primes, see the Fenton text referenced above). \"ev(G)\" is calculated using \"ev(G)= v(G) - m\" where $m$ is the number of subflowgraphs of \"G\" that are D-structured primes.\n* Design Complexity, or \"iv(G)\", is the cyclomatic complexity of a module's reduced flowgraph. The flowgraph, \"G\", of a module is reduced to eliminate any complexity which does not influence the interrelationship between design modules. According to McCabe, this complexity measurement reflects the modules calling patterns to its immediate subordinate modules.\n* Lines of code is measured according to McCabe's line counting conventions.\n\nThe Halstead falls into three groups: the base measures, the derived measures, and lines of code measures.\n\n* Base measures:\n * mu1 = number of unique operators\n * mu2 = number of unique operands\n * N1 = total occurrences of operators\n * N2 = total occurrences of operands\n * length = N = N1 + N2\n * vocabulary = mu = mu1 + mu2\n * Constants set for each function:\n * mu1' = 2 = potential operator count (just the function name and the \"return\" operator)\n * mu2' = potential operand count. (the number of arguments to the module)\n\nFor example, the expression \"return max(w+x,x+y)\" has \"N1=4\" operators \"return, max, +,+)\", \"N2=4\" operands (w,x,x,y), \"mu1=3\" unique operators (return, max,+), and \"mu2=3\" unique operands (w,x,y).\n\n* Derived measures:\n * P = volume = V = N * log2(mu) (the number of mental comparisons needed to write\na program of length N)\n * V* = volume on minimal implementation = (2 + mu2')*log2(2 + mu2')\n * L = program length = V*\/N\n * D = difficulty = 1\/L\n * L' = 1\/D\n * I = intelligence = L'*V'\n * E = effort to write program = V\/L\n * T = time to write program = E\/18 seconds\n\n## Number of instances\n10885\n\n## Number of attributes\n22 (5 different lines of code measure, 3 McCabe metrics, 4 base Halstead measures, 8 derived Halstead measures, a branch-count, and 1 goal field)\n\n## Attribute Information\n1. loc : numeric % McCabe's line count of code\n2. v(g) : numeric % McCabe \"cyclomatic complexity\"\n3. ev(g) : numeric % McCabe \"essential complexity\"\n4. iv(g) : numeric % McCabe \"design complexity\"\n5. n : numeric % Halstead total operators + operands\n6. v : numeric % Halstead \"volume\"\n7. l : numeric % Halstead \"program length\"\n8. d : numeric % Halstead \"difficulty\"\n9. i : numeric % Halstead \"intelligence\"\n10. e : numeric % Halstead \"effort\"\n11. b : numeric % Halstead\n12. t : numeric % Halstead's time estimator\n13. lOCode : numeric % Halstead's line count\n14. lOComment : numeric % Halstead's count of lines of comments\n15. lOBlank : numeric % Halstead's count of blank lines\n16. lOCodeAndComment: numeric\n17. uniq_Op : numeric % unique operators\n18. uniq_Opnd : numeric % unique operands\n19. total_Op : numeric % total operators\n20. total_Opnd : numeric % total operands\n21: branchCount : numeric % of the flow graph\n22. defects : {false,true} % module has\/has not one or more reported defects\n\n## Missing attributes\nNone\n\n## Class Distribution\nThe class value (defects) is discrete\nfalse: 2106 = 19.35%\ntrue: 8779 = 80.65%", "format": "ARFF", "uploader": "Joaquin Vanschoren", "uploader_id": 2, "visibility": "public", "creator": null, "contributor": null, "date": "2014-10-06 23:57:19", "update_comment": null, "last_update": "2014-10-06 23:57:19", "licence": "Public", "status": "active", "error_message": null, "url": "https:\/\/www.openml.org\/data\/download\/53936\/jm1.arff", "default_target_attribute": "defects", "row_id_attribute": null, "ignore_attribute": null, "runs": 0, "suggest": { "input": [ "jm1", "This is a PROMISE data set made publicly available in order to encourage repeatable, verifiable, refutable, and\/or improvable predictive models of software engineering. If you publish material based on PROMISE data sets then, please follow the acknowledgment guidelines posted on [the PROMISE repository web page](http:\/\/promise.site.uottawa.ca\/SERepository). ## Title\/Topic JM1\/software defect prediction ## Sources * **Creators:** NASA, then the NASA Metrics Data Program, http:\/\/mdp.ivv.nasa.gov. " ], "weight": 5 }, "qualities": { "NumberOfInstances": 10885, "NumberOfFeatures": 22, "NumberOfClasses": 2, "NumberOfMissingValues": 25, "NumberOfInstancesWithMissingValues": 5, "NumberOfNumericFeatures": 21, "NumberOfSymbolicFeatures": 1, "AutoCorrelation": 0.9998162440279309, "CfsSubsetEval_DecisionStumpAUC": 0.662083592817921, "CfsSubsetEval_DecisionStumpErrRate": 0.1934772622875517, "CfsSubsetEval_DecisionStumpKappa": 0, "CfsSubsetEval_NaiveBayesAUC": 0.6544631037787574, "CfsSubsetEval_NaiveBayesErrRate": 0.1962333486449242, "CfsSubsetEval_NaiveBayesKappa": 0.21336606040740824, "CfsSubsetEval_kNN1NAUC": 0.6129893808037304, "CfsSubsetEval_kNN1NErrRate": 0.2502526412494258, "CfsSubsetEval_kNN1NKappa": 0.1836967861361532, "ClassEntropy": 0.7086892115305543, "DecisionStumpAUC": 0.662083592817921, "DecisionStumpErrRate": 0.1934772622875517, "DecisionStumpKappa": 0, "Dimensionality": 0.002021129995406523, "EquivalentNumberOfAtts": null, "J48.00001.AUC": 0.49997152295250025, "J48.00001.ErrRate": 0.1934772622875517, "J48.00001.Kappa": 0, "J48.0001.AUC": 0.49997152295250025, "J48.0001.ErrRate": 0.1934772622875517, "J48.0001.Kappa": 0, "J48.001.AUC": 0.49997152295250025, "J48.001.ErrRate": 0.1934772622875517, "J48.001.Kappa": 0, "MajorityClassPercentage": 80.65227377124484, "MajorityClassSize": 8779, "MaxAttributeEntropy": null, "MaxKurtosisOfNumericAtts": 2765.9879679639744, "MaxMeansOfNumericAtts": 36836.3653431329, "MaxMutualInformation": null, "MaxNominalAttDistinctValues": 2, "MaxSkewnessOfNumericAtts": 46.21215121044533, "MaxStdDevOfNumericAtts": 434367.80125524563, "MeanAttributeEntropy": null, "MeanKurtosisOfNumericAtts": 586.619469504969, "MeanMeansOfNumericAtts": 1902.782368644972, "MeanMutualInformation": null, "MeanNoiseToSignalRatio": null, "MeanNominalAttDistinctValues": 2, "MeanSkewnessOfNumericAtts": 15.836470747949765, "MeanStdDevOfNumericAtts": 21963.75301398026, "MinAttributeEntropy": null, "MinKurtosisOfNumericAtts": 3.3600523103582027, "MinMeansOfNumericAtts": 0.13533486449242005, "MinMutualInformation": null, "MinNominalAttDistinctValues": 2, "MinSkewnessOfNumericAtts": 1.9206587292925694, "MinStdDevOfNumericAtts": 0.1605384477399967, "MinorityClassPercentage": 19.347726228755167, "MinorityClassSize": 2106, "NaiveBayesAUC": 0.6543475319881906, "NaiveBayesErrRate": 0.1966008268259072, "NaiveBayesKappa": 0.197396734416771, "NumberOfBinaryFeatures": 1, "PercentageOfBinaryFeatures": 4.545454545454546, "PercentageOfInstancesWithMissingValues": 0.045934772622875514, "PercentageOfMissingValues": 0.010439721050653527, "PercentageOfNumericFeatures": 95.45454545454545, "PercentageOfSymbolicFeatures": 4.545454545454546, "Quartile1AttributeEntropy": null, "Quartile1KurtosisOfNumericAtts": 187.28804596952557, "Quartile1MeansOfNumericAtts": 3.7013229214515384, "Quartile1MutualInformation": null, "Quartile1SkewnessOfNumericAtts": 9.996525984131477, "Quartile1StdDevOfNumericAtts": 9.062748417574056, "Quartile2AttributeEntropy": null, "Quartile2KurtosisOfNumericAtts": 392.2049277598112, "Quartile2MeansOfNumericAtts": 14.17723748277455, "Quartile2MutualInformation": null, "Quartile2SkewnessOfNumericAtts": 13.648072779325632, "Quartile2StdDevOfNumericAtts": 22.597617346469026, "Quartile3AttributeEntropy": null, "Quartile3KurtosisOfNumericAtts": 557.8218633161355, "Quartile3MeansOfNumericAtts": 57.24978860294003, "Quartile3MutualInformation": null, "Quartile3SkewnessOfNumericAtts": 16.647450971037983, "Quartile3StdDevOfNumericAtts": 125.93284053077517, "REPTreeDepth1AUC": 0.49997152295250025, "REPTreeDepth1ErrRate": 0.1934772622875517, "REPTreeDepth1Kappa": 0, "REPTreeDepth2AUC": 0.49997152295250025, "REPTreeDepth2ErrRate": 0.1934772622875517, "REPTreeDepth2Kappa": 0, "REPTreeDepth3AUC": 0.67673942836262, "REPTreeDepth3ErrRate": 0.1919154800183739, "REPTreeDepth3Kappa": 0.025378315409935855, "RandomTreeDepth1AUC": 0.6242533090978244, "RandomTreeDepth1ErrRate": 0.1934772622875517, "RandomTreeDepth1Kappa": 0, "RandomTreeDepth2AUC": 0.6608247612822925, "RandomTreeDepth2ErrRate": 0.1915480018373909, "RandomTreeDepth2Kappa": 0.06521031488487158, "RandomTreeDepth3AUC": 0.6788350740300468, "RandomTreeDepth3ErrRate": 0.19072117593017915, "RandomTreeDepth3Kappa": 0.048586976136257835, "StdvNominalAttDistinctValues": 0, "kNN1NAUC": 0.6196530631837556, "kNN1NErrRate": 0.24474046853468076, "kNN1NKappa": 0.20020772020128605 }, "tags": [ { "tag": "study_14", "uploader": "1" }, { "tag": "study_1", "uploader": "0" }, { "tag": "study_256", "uploader": "0" }, { "tag": "study_310", "uploader": "0" }, { "tag": "study_310", "uploader": "0" }, { "tag": "study_165", "uploader": "0" }, { "tag": "study_143", "uploader": "0" }, { "tag": "study_66", "uploader": "0" }, { "tag": "study_212", "uploader": "0" }, { "tag": "study_322", "uploader": "0" } ], "features": [ { "name": "defects", "index": "21", "type": "nominal", "distinct": "2", "missing": "0", "target": "1", "distr": [ [ "false", "true" ], [ [ "8779", "0" ], [ "0", "2106" ] ] ] }, { "name": "t", "index": "11", "type": "numeric", "distinct": "6761", "missing": "0", "min": "0", "max": "1726655", "mean": "2046", "stdev": "24132" }, { "name": "branchCount", "index": "20", "type": "numeric", "distinct": "146", "missing": "5", "min": "1", "max": "826", "mean": "11", "stdev": "23" }, { "name": "total_Opnd", "index": "19", "type": "numeric", "distinct": "468", "missing": "5", "min": "0", "max": "3021", "mean": "46", "stdev": "100" }, { "name": "total_Op", "index": "18", "type": "numeric", "distinct": "581", "missing": "5", "min": "0", "max": "5420", "mean": "68", "stdev": "152" }, { "name": "uniq_Opnd", "index": "17", "type": "numeric", "distinct": "171", "missing": "5", "min": "0", "max": "1026", "mean": "17", "stdev": "27" }, { "name": "uniq_Op", "index": "16", "type": "numeric", "distinct": "68", "missing": "5", "min": "0", "max": "411", "mean": "11", "stdev": "10" }, { "name": "locCodeAndComment", "index": "15", "type": "numeric", "distinct": "30", "missing": "0", "min": "0", "max": "108", "mean": "0", "stdev": "2" }, { "name": "lOBlank", "index": "14", "type": "numeric", "distinct": "95", "missing": "0", "min": "0", "max": "447", "mean": "5", "stdev": "10" }, { "name": "lOComment", "index": "13", "type": "numeric", "distinct": "88", "missing": "0", "min": "0", "max": "344", "mean": "3", "stdev": "9" }, { "name": "lOCode", "index": "12", "type": "numeric", "distinct": "291", "missing": "0", "min": "0", "max": "2824", "mean": "26", "stdev": "60" }, { "name": "loc", "index": "0", "type": "numeric", "distinct": "365", "missing": "0", "min": "1", "max": "3442", "mean": "42", "stdev": "77" }, { "name": "b", "index": "10", "type": "numeric", "distinct": "310", "missing": "0", "min": "0", "max": "27", "mean": "0", "stdev": "1" }, { "name": "e", "index": "9", "type": "numeric", "distinct": "6978", "missing": "0", "min": "0", "max": "31079782", "mean": "36836", "stdev": "434368" }, { "name": "i", "index": "8", "type": "numeric", "distinct": "4268", "missing": "0", "min": "0", "max": "570", "mean": "29", "stdev": "34" }, { "name": "d", "index": "7", "type": "numeric", "distinct": "2695", "missing": "0", "min": "0", "max": "418", "mean": "14", "stdev": "19" }, { "name": "l", "index": "6", "type": "numeric", "distinct": "55", "missing": "0", "min": "0", "max": "1", "mean": "0", "stdev": "0" }, { "name": "v", "index": "5", "type": "numeric", "distinct": "3991", "missing": "0", "min": "0", "max": "80843", "mean": "674", "stdev": "1939" }, { "name": "n", "index": "4", "type": "numeric", "distinct": "806", "missing": "0", "min": "0", "max": "8441", "mean": "114", "stdev": "250" }, { "name": "iv(g)", "index": "3", "type": "numeric", "distinct": "82", "missing": "0", "min": "1", "max": "402", "mean": "4", "stdev": "9" }, { "name": "ev(g)", "index": "2", "type": "numeric", "distinct": "74", "missing": "0", "min": "1", "max": "165", "mean": "3", "stdev": "7" }, { "name": "v(g)", "index": "1", "type": "numeric", "distinct": "108", "missing": "0", "min": "1", "max": "470", "mean": "6", "stdev": "13" } ], "nr_of_issues": 0, "nr_of_downvotes": 0, "nr_of_likes": 0, "nr_of_downloads": 0, "total_downloads": 0, "reach": 0, "reuse": 11, "impact_of_reuse": 0, "reach_of_reuse": 0, "impact": 11 }