diff options
| author | Ben Beltran <ben@nsovocal.com> | 2017-03-02 13:13:31 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2017-03-02 13:13:31 -0600 |
| commit | 06a3d6866e4f545abddd6654e490e50b623330a9 (patch) | |
| tree | e0e6a7d72eeaf647d03a44ed5c12733796fb8b87 /atom/packages/pretty-json/node_modules/jsonminify/report/files | |
| parent | 49c52987b6c6be6392351b6a7b227efc7341a414 (diff) | |
Update atoms
Diffstat (limited to 'atom/packages/pretty-json/node_modules/jsonminify/report/files')
5 files changed, 216 insertions, 0 deletions
diff --git a/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/index.html b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/index.html new file mode 100644 index 0000000..9398c6f --- /dev/null +++ b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/index.html @@ -0,0 +1,212 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="utf-8"> + <title></title> + + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="description" content=""> + <meta name="author" content=""> + + <!--[if lt IE 9]> + <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> + <![endif]--> + + <link href="../../assets/css/vendor/morris.css" rel="stylesheet"> + <link href="../../assets/css/vendor/bootstrap.css" rel="stylesheet"> + <link href="../../assets/css/vendor/font-awesome.css" rel="stylesheet"> + <link href="../../assets/css/vendor/font-awesome-ie7.css" rel="stylesheet"> + <link href="../../assets/css/vendor/codemirror.css" rel="stylesheet"> + <link href="../../assets/css/plato.css" rel="stylesheet"> + <link href="../../assets/css/plato-file.css" rel="stylesheet"> + +</head> + +<body> + +<div class="navbar navbar-fixed-top"> + <div class="container"> + <a class="navbar-brand" href="http://github.com/jsoverson/plato">Plato on Github</a> + <ul class="nav navbar-nav"> + <li> + <a href="../../index.html">Report Home</a> + </li> + </ul> + </div> +</div> + +<div class="jumbotron"> + <div class="container"> + <h1>minify.json.js</h1> + </div> +</div> + +<div class="container aggregate-stats"> + <div class="row"> + <div class="col-md-6"> + <h2 class="header">Maintainability <a href="http://blogs.msdn.com/b/codeanalysis/archive/2007/11/20/maintainability-index-range-and-meaning.aspx"><i class="icon icon-info-sign" rel="popover" data-placement="top" data-trigger="hover" data-content="A value between 0 and 100 that represents the relative ease of maintaining the code. A high value means better maintainability." data-original-title="Maintainability Index"></i></a></h2> + <p class="stat">48.77</p> + </div> + <div class="col-md-6"> + <h2 class="header">Lines of code <i class="icon icon-info-sign" rel="popover" data-placement="top" data-trigger="hover" data-content="Source Lines of Code / Logical Lines of Code" data-original-title="SLOC/LSLOC"></i></h2> + <p class="stat">81</p> + </div> + </div> + <div class="row historical"> + <div class="col-md-6"> + <p id="chart_historical_maint" class="chart"></p> + </div> + <div class="col-md-6"> + <p id="chart_historical_sloc" class="chart"></p> + </div> + </div> + <div class="row"> + <div class="col-md-6"> + <h2 class="header">Difficulty <a href="http://en.wikipedia.org/wiki/Halstead_complexity_measures"><i class="icon icon-info-sign" rel="popover" data-placement="top" data-trigger="hover" data-content="The difficulty measure is related to the difficulty of the program to write or understand." data-original-title="Difficulty"></i></a></h2> + <p class="stat">32.34</p> + </div> + <div class="col-md-6"> + <h2 class="header">Estimated Errors <a href="http://en.wikipedia.org/wiki/Halstead_complexity_measures"><i class="icon icon-info-sign" rel="popover" data-placement="top" data-trigger="hover" data-content="Halstead's delivered bugs is an estimate for the number of errors in the implementation." data-original-title="Delivered Bugs"></i></a></h2> + <p class="stat">0.62</p> + </div> + </div> +</div> + +<div class="container charts"> + <div class="row"> + <h2 class="header">Function weight</h2> + </div> + <div class="row"> + <div class="col-md-6"> + <h3 class="chart-header">By Complexity <a href="http://en.wikipedia.org/wiki/Cyclomatic_complexity"><i class="icon icon-info-sign" rel="popover" data-placement="top" data-trigger="hover" data-content="This metric counts the number of distinct paths through a block of code. Lower values are better." data-original-title="Cyclomatic Complexity"></i></a></h3> + <div id="fn-by-complexity" class="stat"></div> + </div> + <div class="col-md-6"> + <h3 class="chart-header">By SLOC <i class="icon icon-info-sign" rel="popover" data-placement="top" data-trigger="hover" data-content="Source Lines of Code / Logical Lines of Code" data-original-title="SLOC/LSLOC"></i></h3> + <div id="fn-by-sloc" class="stat"></div> + </div> + </div> +</div> + +<div class="container"> + <div class="row"> + <textarea id="file-source" class="col-md-12">/*! JSON.minify() + v0.1 (c) Kyle Simpson + MIT License +*/ +/** + * @name minify.json.js + * @author Kei Funagayama <kei.topaz@gmail.com + * @overview JSON.minify + */ + +/** + * @namespace JSON + */ +(function(global){ + 'use strict'; + + /** + * @function + * @memberof JSON + * @param {Object} Transformed data. format) json-like + * @return {String} + * + * @example + * var json = { // hoge + * "foo": "bar",// this is cool + * "bar": [ + * "baz", "bum", "zam" // this is cool + * ] + * } // hoge + * + */ + var minify = function (json) { + + var tokenizer = /"|(\/\*)|(\*\/)|(\/\/)|\n|\r/g, + in_string = false, + in_multiline_comment = false, + in_singleline_comment = false, + tmp, tmp2, new_str = [], ns = 0, from = 0, lc, rc + ; + + tokenizer.lastIndex = 0; + + while ( tmp = tokenizer.exec(json) ) { + lc = RegExp.leftContext; + rc = RegExp.rightContext; + if (!in_multiline_comment && !in_singleline_comment) { + tmp2 = lc.substring(from); + if (!in_string) { + tmp2 = tmp2.replace(/(\n|\r|\s)*/g,""); + } + new_str[ns++] = tmp2; + } + from = tokenizer.lastIndex; + + if (tmp[0] === "\"" && !in_multiline_comment && !in_singleline_comment) { + tmp2 = lc.match(/(\\)*$/); + if (!in_string || !tmp2 || (tmp2[0].length % 2) === 0) { // start of string with ", or unescaped " character found to end string + in_string = !in_string; + } + from--; // include " character in next catch + rc = json.substring(from); + } + else if (tmp[0] === "/*" && !in_string && !in_multiline_comment && !in_singleline_comment) { + in_multiline_comment = true; + } + else if (tmp[0] === "*/" && !in_string && in_multiline_comment && !in_singleline_comment) { + in_multiline_comment = false; + } + else if (tmp[0] === "//" && !in_string && !in_multiline_comment && !in_singleline_comment) { + in_singleline_comment = true; + } + else if ((tmp[0] === "\n" || tmp[0] === "\r") && !in_string && !in_multiline_comment && in_singleline_comment) { + in_singleline_comment = false; + } + else if (!in_multiline_comment && !in_singleline_comment && !(/\n|\r|\s/.test(tmp[0]))) { + new_str[ns++] = tmp[0]; + } + } + new_str[ns++] = rc; + return new_str.join(""); + }; + + if (typeof module !== 'undefined' && module.exports) { + // node + module.exports = minify; + JSON.minify = minify; + } else { + // others, export global + if (typeof global.JSON === "undefined" || !global.JSON) { + global.JSON = {}; + } + global.JSON.minify = minify; + } +})(this);</textarea> + </div> +</div> + +<footer class="footer"> + <div class="container"> + <p>.</p> + </div> +</footer> + +<script type="text/html" id="complexity-popover-template"> + <div class="complexity-notice"> + Complexity : {{ complexity.cyclomatic }} <br> + Length : {{ complexity.halstead.length }} <br> + Difficulty : {{ complexity.halstead.difficulty.toFixed(2) }} <br> + Est # bugs : {{ complexity.halstead.bugs.toFixed(2) }}<br> + </div> +</script> + +<script type="text/javascript" src="../../assets/scripts/bundles/core-bundle.js"></script> +<script type="text/javascript" src="../../assets/scripts/bundles/codemirror.js"></script> +<script type="text/javascript" src="../../assets/scripts/codemirror.markpopovertext.js"></script> +<script type="text/javascript" src="report.js"></script> +<script type="text/javascript" src="report.history.js"></script> +<script type="text/javascript" src="../../assets/scripts/plato-file.js"></script> +</body> +</html> diff --git a/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.history.js b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.history.js new file mode 100644 index 0000000..9baab0f --- /dev/null +++ b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.history.js @@ -0,0 +1 @@ +__history = [{"date":"Mon, 30 Sep 2013 05:18:25 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:19:33 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:19:49 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:19:53 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:20:37 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:20:48 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:20:52 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:21:09 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:31:53 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:34:35 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:35:47 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:37:30 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489}]
\ No newline at end of file diff --git a/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.history.json b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.history.json new file mode 100644 index 0000000..dccb400 --- /dev/null +++ b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.history.json @@ -0,0 +1 @@ +[{"date":"Mon, 30 Sep 2013 05:18:25 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:19:33 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:19:49 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:19:53 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:20:37 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:20:48 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:20:52 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:21:09 GMT","sloc":66,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:31:53 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:34:35 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:35:47 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489},{"date":"Mon, 30 Sep 2013 05:37:30 GMT","sloc":81,"lloc":55,"functions":2,"deliveredBugs":0.6187410974266928,"maintainability":48.77297000310815,"lintErrors":1,"difficulty":32.34042553191489}]
\ No newline at end of file diff --git a/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.js b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.js new file mode 100644 index 0000000..f74c3d8 --- /dev/null +++ b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.js @@ -0,0 +1 @@ +__report = {"info":{"file":"minify.json.js","fileShort":"minify.json.js","fileSafe":"minify_json_js","link":"files/minify_json_js/index.html"},"complexity":{"aggregate":{"line":14,"complexity":{"sloc":{"physical":81,"logical":55},"cyclomatic":17,"halstead":{"operators":{"distinct":20,"total":154,"identifiers":["__stripped__"]},"operands":{"distinct":47,"total":152,"identifiers":["__stripped__"]},"length":306,"vocabulary":67,"difficulty":32.34042553191489,"volume":1856.2232922800783,"effort":60031.05115458976,"bugs":0.6187410974266928,"time":3335.058397477209},"params":2}},"functions":[{"name":"<anonymous>","line":14,"complexity":{"sloc":{"physical":81,"logical":9},"cyclomatic":4,"halstead":{"operators":{"distinct":13,"total":26,"identifiers":["__stripped__"]},"operands":{"distinct":8,"total":26,"identifiers":["__stripped__"]},"length":52,"vocabulary":21,"difficulty":21.125,"volume":228.40050598449557,"effort":4824.960688922469,"bugs":0.07613350199483186,"time":268.0533716068038},"params":1}},{"name":"minify","line":32,"complexity":{"sloc":{"physical":50,"logical":44},"cyclomatic":14,"halstead":{"operators":{"distinct":16,"total":126,"identifiers":["__stripped__"]},"operands":{"distinct":39,"total":124,"identifiers":["__stripped__"]},"length":250,"vocabulary":55,"difficulty":25.435897435897434,"volume":1445.339928381165,"effort":36763.51817831066,"bugs":0.481779976127055,"time":2042.4176765728143},"params":1}}],"maintainability":48.77297000310815,"params":1,"module":"minify.json.js"},"jshint":{"messages":[{"severity":"error","line":43,"column":44,"message":"Expected a conditional expression and instead saw an assignment.","source":"Expected a conditional expression and instead saw an assignment."}]}}
\ No newline at end of file diff --git a/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.json b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.json new file mode 100644 index 0000000..7299902 --- /dev/null +++ b/atom/packages/pretty-json/node_modules/jsonminify/report/files/minify_json_js/report.json @@ -0,0 +1 @@ +{"info":{"file":"minify.json.js","fileShort":"minify.json.js","fileSafe":"minify_json_js","link":"files/minify_json_js/index.html"},"complexity":{"aggregate":{"line":14,"complexity":{"sloc":{"physical":81,"logical":55},"cyclomatic":17,"halstead":{"operators":{"distinct":20,"total":154,"identifiers":["__stripped__"]},"operands":{"distinct":47,"total":152,"identifiers":["__stripped__"]},"length":306,"vocabulary":67,"difficulty":32.34042553191489,"volume":1856.2232922800783,"effort":60031.05115458976,"bugs":0.6187410974266928,"time":3335.058397477209},"params":2}},"functions":[{"name":"<anonymous>","line":14,"complexity":{"sloc":{"physical":81,"logical":9},"cyclomatic":4,"halstead":{"operators":{"distinct":13,"total":26,"identifiers":["__stripped__"]},"operands":{"distinct":8,"total":26,"identifiers":["__stripped__"]},"length":52,"vocabulary":21,"difficulty":21.125,"volume":228.40050598449557,"effort":4824.960688922469,"bugs":0.07613350199483186,"time":268.0533716068038},"params":1}},{"name":"minify","line":32,"complexity":{"sloc":{"physical":50,"logical":44},"cyclomatic":14,"halstead":{"operators":{"distinct":16,"total":126,"identifiers":["__stripped__"]},"operands":{"distinct":39,"total":124,"identifiers":["__stripped__"]},"length":250,"vocabulary":55,"difficulty":25.435897435897434,"volume":1445.339928381165,"effort":36763.51817831066,"bugs":0.481779976127055,"time":2042.4176765728143},"params":1}}],"maintainability":48.77297000310815,"params":1,"module":"minify.json.js"},"jshint":{"messages":[{"severity":"error","line":43,"column":44,"message":"Expected a conditional expression and instead saw an assignment.","source":"Expected a conditional expression and instead saw an assignment."}]}}
\ No newline at end of file |