-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata.txt
More file actions
1 lines (1 loc) · 8.37 KB
/
data.txt
File metadata and controls
1 lines (1 loc) · 8.37 KB
1
{"alvin":{"asdf":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 00:03:24 GMT-0500 (EST)","compiled_code":"","statistics":"","warnings":""},"a":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 19:37:33 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"rqwerasdfv":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 19:38:06 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"as":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:04:32 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"ttt":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:12:04 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"t":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:14:37 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"tt":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:14:51 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"f":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:15:07 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"NEW FIOLEEE":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:31:29 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"Cool":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:31:54 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"sdfg":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:33:54 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"asdfasdfa":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 20:34:36 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"sdf":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 21:35:48 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"ertyeyh":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 21:35:51 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"sdfsdf":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 21:35:53 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"erwtg":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 21:35:59 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"wfqa":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 21:36:02 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"},"jfjfj":{"text":"// Enter Your Code Here","date":"Tue Feb 26 2013 21:36:05 GMT-0500 (EST)","compiled_code":"Haven't compiled any code","statistics":"No statistics","warnings":"No warnings"}},"john":{"hello":{"text":"var hello = function() {\n\thi();\n\tciao();\n}\n\nvar hi = function() {\n}\n\nvar ciao = function() {\n}","date":"Tue Feb 26 2013 17:50:38 GMT-0500 (Eastern Standard Time)","compiled_code":"var hello = function() {\n hi();\n ciao()\n};\nvar hi = function() {\n};\nvar ciao = function() {\n};\n","statistics":"","warnings":""},"undefined":{"text":"function Alvin(x) {\n Jon(x)\n Ethan(x)\n return\n}\nfunction Jon(y) {\n return Ethan(y) + 1\n}\nfunction Ethan(z) {\n return z + 4\n}\n;","date":"Tue Feb 26 2013 17:51:54 GMT-0500 (Eastern Standard Time)","compiled_code":"","statistics":"","warnings":""},"me":{"text":"me","date":"Tue Feb 26 2013 17:58:58 GMT-0500 (Eastern Standard Time)","compiled_code":"me;\n","statistics":"","warnings":""},"Jon":{"text":"","date":"Wed Feb 27 2013 00:18:34 GMT-0500 (EST)","compiled_code":"","statistics":"Original size: 0<br>Compressed size: 0<br>Compile Time: 2","warnings":"No warnings"},"ghhh":{"text":"//This file interactes with google closure compler and update DOM\n\nfunction sendCode () {\n var js_code = $(\"#js_code\").val();\n var compilation_level = $(\"#editor_area input[type='radio']:checked\").val();\n getCompiledCode(js_code, compilation_level);\n getErrors(js_code, compilation_level);\n getWarnings(js_code, compilation_level);\n getStatistics(js_code, compilation_level);\n showNotification(\"Finished Compiling!\",\"green\");\n}\n\n//Retrives compiled code and checks for server errors\nfunction getCompiledCode(js_code, compilation_level) {\n $.ajax({\n type: \"post\",\n dataType: \"json\",\n data: {'js_code' : js_code, 'compilation_level':compilation_level, 'output_format':\"json\", 'output_info':\"compiled_code\", 'formatting':\"pretty_print\"},\n url: \"http://closure-compiler.appspot.com/compile\",\n success: function (data) {\n if(data.compiledCode === undefined){\n $(\"#code_content\").html(data.serverErrors[0].error);\n } else {\n $(\"#code_content\").html(data.compiledCode);\n if(tempFile === '0'){\n localDatabase[currentFile].compiled_code = data.compiledCode;\n }\n }\n }\n });\n}\n\n//Retrives errors if there are any\nfunction getErrors(js_code, compilation_level) {\n $.ajax({\n type: \"post\",\n dataType: \"json\",\n data: {'js_code' : js_code, 'compilation_level':compilation_level, 'output_format':\"json\", 'output_info':\"errors\"},\n url: \"http://closure-compiler.appspot.com/compile\",\n success: function (data) {\n if(data.errors !== undefined){\n var errorMSG = \"Compile errors:\\n\";\n for(var i = 0; i < data.errors.length; i++) {\n errorMSG += \"Line: \" + data.errors[i].lineno + '\\n';\n errorMSG += \" \" + data.errors[i].error + '\\n';\n }\n $(\"#code_content\").html(errorMSG);\n if(tempFile === '0'){\n localDatabase[currentFile].compiled_code = data.errors;\n }\n }\n }\n });\n}\n\nfunction getWarnings(js_code, compilation_level) {\n $.ajax({\n type: \"post\",\n dataType: \"json\",\n data: {'js_code' : js_code, 'compilation_level':compilation_level, 'output_format':\"json\", 'output_info':\"warnings\"},\n url: \"http://closure-compiler.appspot.com/compile\",\n success: function (data) {\n if(data.warnings !== undefined){\n var warningMSG = \"\";\n for(var i = 0; i < data.warnings.length; i++) {\n warningMSG += \"Line: \" + data.warnings[i].lineno + '\\n';\n warningMSG += \" \" + data.warnings[i].warning + '\\n';\n }\n $(\"#warning_area p\").html(warningMSG);\n\n if(tempFile === '0'){\n localDatabase[currentFile].warnings = warningMSG;\n }\n } else {\n $(\"#warning_area p\").html(\"No warnings\");\n if(tempFile === '0'){\n localDatabase[currentFile].warnings = \"No warnings\";\n }\n }\n }\n });\n}\n\nfunction getStatistics(js_code, compilation_level) {\n $.ajax({\n type: \"post\",\n dataType: \"json\",\n data: {'js_code' : js_code, 'compilation_level':compilation_level, 'output_format':\"json\", 'output_info':\"statistics\"},\n url: \"http://closure-compiler.appspot.com/compile\",\n success: function (data) {\n if(data.statistics !== undefined) {\n var statMSG = \"Original size: \" + data.statistics.originalSize + \"<br>\";\n statMSG += \"Compressed size: \" + data.statistics.compressedSize + \"<br>\";\n statMSG += \"Compile Time: \" + data.statistics.compileTime;\n $(\"#stat_area p\").html(statMSG);\n if(tempFile === '0'){\n localDatabase[currentFile].statistics = statMSG;\n }\n } else {\n $(\"#stat_area p\").html(\"No statistics\");\n if(tempFile === '0'){\n localDatabase[currentFile].statistics = \"No statistics\";\n }\n }\n }\n });\n}","date":"Wed Feb 27 2013 13:28:01 GMT-0500 (Eastern Standard Time)"},"new":{"text":"hello","date":"Wed Feb 27 2013 14:54:28 GMT-0500 (Eastern Standard Time)","compiled_code":"Optimized Code","statistics":"","warnings":""}},"alv":{},"radio":{},"alvin7":{}}