<commit_before><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Editor</title>
    <link href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="https://rawgit.com/Newawe/newawe/master/pages/css/main.css">
    <link rel="stylesheet" href="https://rawgit.com/Newawe/newawe/master/pages/css/layout.css">
    <link rel="stylesheet" href="https://rawgit.com/Newawe/newawe/master/pages/css/utils.css">
    <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/Newawe/newawe/master/pages/imgs/favicon.svg">
    <style type="text/css" media="screen">
      body {
        overflow: hidden;

      }
      button{
        width: 100px;
        margin-left:10px;
      }
      #lang {
        width:150px;
        color:white;
      }
      #editor {
        margin: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
      }
      #demo {
        margin-left:20px;
        height: 30%;
        width: 30%;
        border: solid 5px #00A3C6;
        border-radius: 10px;
        box-shadow: 0 0 5px #000000;
      }
      #under {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 50%;
        background-color: #FFFFFF;
      }
      .aceButton {

        color: white;
        background-color: #00A3C6;
        border: none;
        border-radius: 3px;
        height: 40px;
        vertical-align: middle;
        box-shadow: 0 0 2px #000000;

      }
      .aceButton:hover{

        box-shadow: 0 0 10px #000000;
        background-color: #00B0D0;

      }

      /*Check box haxs*/
      label input {
        visibility: hidden;
        display:block;
        height:0;
        width:0;
        position:absolute;
        overflow:hidden;
      }
      label span {
        height: 15px;
        width: 15px;
        border: 2px solid #00A3C6;
        border-radius: 3px;
        display: inline-block;
        vertical-align: middle;
        box-shadow: 0px 0px 2px #000000;
      }
      [type=checkbox]:checked + span {
        background-color: #00A3C6;
      }
      /*[type=checkbox]:hover + span {
       
        background-color: #00C5F5;
        box-shadow: 0 0 5px #000000;
        
      }                                     852719: Removed Hover effect becaue it's confusing.
      */
      /*End Check box haxs*/
      .regLink {
        
        font-weight: bold;
        
      }
      .regLink:hover {
        
       text-decoration: underline;
       text-decoration-color: #000000;
      
      }
      
    </style>
  </head>
  <body>
    <pre id="editor" onkeyup="if(document.getElementById('autoRun').checked){updateLive()}" placeholder="Insert code here!"></pre>
    <div id="under">
      <hr>
      <div><iframe id="demo" src="http://newawe.github.io/Sandbox/html.html?code=<h1>You will see your code here!</h1>" ></iframe></div>
      <br>
      <br>
      Langauge =
      <select class="aceButton" id="lang" size="1" onchange="if(document.getElementById('autoRun').checked){updateLang()}" width="100px"><option value="html" selected="selected">HTML</option><option value="php">PHP</option><option value="python">Python</option><option value="javascript">JavaScript</option><option value="css">CSS</option>
        <option value="abap">ABAP</option><option value="abc">ABC</option><option value="actionscript">ActionScript</option><option value="ada">ADA</option><option value="apache_conf">Apache Conf</option><option value="asciidoc">AsciiDoc</option><option value="assembly_x86">Assembly x86</option><option value="autohotkey">AutoHotKey</option><option value="batchfile">BatchFile</option><option value="c_cpp">C and C++</option><option value="c9search">C9Search</option><option value="cirru">Cirru</option><option value="clojure">Clojure</option><option value="cobol">Cobol</option><option value="coffee">CoffeeScript</option><option value="coldfusion">ColdFusion</option><option value="csharp">C#</option><option value="curly">Curly</option><option value="d">D</option><option value="dart">Dart</option><option value="diff">Diff</option><option value="dockerfile">Dockerfile</option><option value="dot">Dot</option><option value="dummy">Dummy</option><option value="dummysyntax">DummySyntax</option><option value="eiffel">Eiffel</option><option value="ejs">EJS</option><option value="elixir">Elixir</option><option value="elm">Elm</option><option value="erlang">Erlang</option><option value="forth">Forth</option><option value="fortran">Fortran</option><option value="ftl">FreeMarker</option><option value="gcode">Gcode</option><option value="gherkin">Gherkin</option><option value="gitignore">Gitignore</option><option value="glsl">Glsl</option><option value="gobstones">Gobstones</option><option value="golang">Go</option><option value="groovy">Groovy</option><option value="haml">HAML</option><option value="handlebars">Handlebars</option><option value="haskell">Haskell</option><option value="haxe">haXe</option><option value="html_elixir">HTML (Elixir)</option><option value="html_ruby">HTML (Ruby)</option><option value="ini">INI</option><option value="io">Io</option><option value="jack">Jack</option><option value="jade">Jade</option><option value="java">Java</option><option value="json">JSON</option><option value="jsoniq">JSONiq</option><option value="jsp">JSP</option><option value="jsx">JSX</option><option value="julia">Julia</option><option value="latex">LaTeX</option><option value="lean">Lean</option><option value="less">LESS</option><option value="liquid">Liquid</option><option value="lisp">Lisp</option><option value="livescript">LiveScript</option><option value="logiql">LogiQL</option><option value="lsl">LSL</option><option value="lua">Lua</option><option value="luapage">LuaPage</option><option value="lucene">Lucene</option><option value="makefile">Makefile</option><option value="markdown">Markdown</option><option value="mask">Mask</option><option value="matlab">MATLAB</option><option value="maze">Maze</option><option value="mel">MEL</option><option value="mushcode">MUSHCode</option><option value="mysql">MySQL</option><option value="nix">Nix</option><option value="nsis">NSIS</option><option value="objectivec">Objective-C</option><option value="ocaml">OCaml</option><option value="pascal">Pascal</option><option value="perl">Perl</option><option value="pgsql">pgSQL</option><option value="powershell">Powershell</option><option value="praat">Praat</option><option value="prolog">Prolog</option><option value="properties">Properties</option><option value="protobuf">Protobuf</option><option value="r">R</option><option value="razor">Razor</option><option value="rdoc">RDoc</option><option value="rhtml">RHTML</option><option value="rst">RST</option><option value="ruby">Ruby</option><option value="rust">Rust</option><option value="sass">SASS</option><option value="scad">SCAD</option><option value="scala">Scala</option><option value="scheme">Scheme</option><option value="scss">SCSS</option><option value="sh">SH</option><option value="sjs">SJS</option><option value="smarty">Smarty</option><option value="snippets">snippets</option><option value="soy_template">Soy Template</option><option value="space">Space</option><option value="sql">SQL</option><option value="sqlserver">SQLServer</option><option value="stylus">Stylus</option><option value="svg">SVG</option><option value="swift">Swift</option><option value="tcl">Tcl</option><option value="tex">Tex</option><option value="text">Text</option><option value="textile">Textile</option><option value="toml">Toml</option><option value="twig">Twig</option><option value="typescript">Typescript</option><option value="vala">Vala</option><option value="vbscript">VBScript</option><option value="velocity">Velocity</option><option value="verilog">Verilog</option><option value="vhdl">VHDL</option><option value="wollok">Wollok</option><option value="xml">XML</option><option value="xquery">XQuery</option><option value="yaml">YAML</option><option value="django">Django</option></select><button class="aceButton" onclick="updateLive()">Test Live!</button>
      <button class="aceButton" onclick="download()">Download</button><button class="aceButton" onclick="localsave()">Save To LocalStorage</button><button class="aceButton" onclick="loadLocal()">Open From LocalStorage</button>&nbsp;&nbsp;&nbsp;
      
      <!--The checkbox that gets all the cool haxs-->
      <label  for="autoRun">Automatically execute code<input type="checkbox"  id="autoRun" checked>&nbsp;<span></span></label><br>
      <!--The checkbox that gets all the cool haxs-->
      
      <p>Code execution courtesy of <a class="regLink" href="http://rextester.com/" target="_blank">rextester.com</a></p>
    </div>
    <script src="src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
    <script>
      var editor = ace.edit("editor");
      editor.setTheme("ace/theme/clouds");
      editor.session.setMode("ace/mode/html");
      var lang = document.getElementById("lang");
      var langvalue = lang.options[lang.selectedIndex].value;
      //function update() {
      //var code = editor.getValue();
      //document.getElementById('demo').innerHTML = code;
      //}

      function setCookie(cname, cvalue, exdays) {
        var d = new Date();
        d.setTime(d.getTime() + (exdays*24*60*60*1000));
        var expires = "expires="+d.toUTCString();
        document.cookie = cname + "=" + cvalue + "; " + expires;
      }
      function updateLang() {
        var lang = document.getElementById("lang");
        var langvalue = lang.options[lang.selectedIndex].value;

        editor.session.setMode("ace/mode/"+langvalue);
        console.log(langvalue)
      }
      window.setInterval(function(){
        var code = editor.getValue();
      }, 100);

      function loadLocal() {
        var saved = localStorage.getItem('savedcode');
        editor.setValue(saved);
      }
      function localsave() {
        var code = editor.getValue();
        localStorage.setItem('savedcode', code);
      }
      function updateLive() {
        var code = editor.getValue();
        //Switch to interpret language. By defualt HTML. To add a language add a case. Default case is a message.
        switch(lang.value){
          case "html":
            document.getElementById('demo').src = "http://newawe.github.io/Sandbox/html.html?code="+code;
            break;
          case "ruby":
            document.getElementById('demo').src = "http://ronskons.tk/ruby.php?code="+code;
            break;
          case "php":
            document.getElementById('demo').src = "http://ronskons.tk/php.php?code="+code;
            break;
          case "python":
            document.getElementById('demo').src = "http://newawe.github.io/Sandbox/python.html?code="+code;
            break;
          case "mysql":
            document.getElementById('demo').src = "http://ronskons.tk/mysql.php?code="+code;
            break;
          case "perl":
            document.getElementById('demo').src = "http://ronskons.tk/perl.php?code="+code;
            break;
          case "javascript":
            document.getElementById('demo').src = "http://newawe.github.io/Sandbox/javascript.html?code="+code;
            break;
          case "java":
            document.getElementById('demo').src = "http://ronskons.tk/java.php?code="+code;
            break;
          case "python":
            document.getElementById('demo').src = "http://ronskons.tk/python.php?code="+code;
            break;
          default:<commit_msg>Bug Fixes<commit_after><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Editor</title>
    <link href='https://fonts.googleapis.com/css?family=Roboto:400,100,300,500,700' rel='stylesheet' type='text/css'>
    <link rel="stylesheet" href="https://rawgit.com/Newawe/newawe/master/pages/css/main.css">
    <link rel="stylesheet" href="https://rawgit.com/Newawe/newawe/master/pages/css/layout.css">
    <link rel="stylesheet" href="https://rawgit.com/Newawe/newawe/master/pages/css/utils.css">
    <link rel="icon" type="image/png" href="https://raw.githubusercontent.com/Newawe/newawe/master/pages/imgs/favicon.svg">
    <style type="text/css" media="screen">
      body {
        overflow: hidden;

      }
      button{
        width: 100px;
        margin-left:10px;
      }
      #lang {
        width:150px;
        color:white;
      }
      #editor {
        margin: 0;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 50%;
      }
      #demo {
        margin-left:20px;
        height: 30%;
        width: 30%;
        border: solid 5px #00A3C6;
        border-radius: 10px;
        box-shadow: 0 0 5px #000000;
      }
      #under {
        margin: 0;
        position: absolute;
        top: 50%;
        left: 0;
        width: 100%;
        height: 50%;
        background-color: #FFFFFF;
      }
      .aceButton {

        color: white;
        background-color: #00A3C6;
        border: none;
        border-radius: 3px;
        height: 40px;
        vertical-align: middle;
        box-shadow: 0 0 2px #000000;

      }
      .aceButton:hover{

        box-shadow: 0 0 10px #000000;
        background-color: #00B0D0;

      }

      /*Check box haxs*/
      label input {
        visibility: hidden;
        display:block;
        height:0;
        width:0;
        position:absolute;
        overflow:hidden;
      }
      label span {
        height: 15px;
        width: 15px;
        border: 2px solid #00A3C6;
        border-radius: 3px;
        display: inline-block;
        vertical-align: middle;
        box-shadow: 0px 0px 2px #000000;
      }
      [type=checkbox]:checked + span {
        background-color: #00A3C6;
      }
      /*[type=checkbox]:hover + span {
       
        background-color: #00C5F5;
        box-shadow: 0 0 5px #000000;
        
      }                                     852719: Removed Hover effect becaue it's confusing.
      */
      /*End Check box haxs*/
      .regLink {
        
        font-weight: bold;
        
      }
      .regLink:hover {
        
       text-decoration: underline;
       text-decoration-color: #000000;
      
      }
      
    </style>
  </head>
  <body>
    <pre id="editor" onkeyup="if(document.getElementById('autoRun').checked){updateLive()}" placeholder="Insert code here!"></pre>
    <div id="under">
      <hr>
      <div><iframe id="demo" src="http://newawe.github.io/Sandbox/html.html?code=<h1>You will see your code here!</h1>" ></iframe></div>
      <br>
      <br>
      Langauge =
      <select class="aceButton" id="lang" size="1" onchange="if(document.getElementById('autoRun').checked){updateLang()}" width="100px"><option value="html" selected="selected">HTML</option><option value="php">PHP</option><option value="python">Python</option><option value="javascript">JavaScript</option><option value="css">CSS</option>
        <option value="abap">ABAP</option><option value="abc">ABC</option><option value="actionscript">ActionScript</option><option value="ada">ADA</option><option value="apache_conf">Apache Conf</option><option value="asciidoc">AsciiDoc</option><option value="assembly_x86">Assembly x86</option><option value="autohotkey">AutoHotKey</option><option value="batchfile">BatchFile</option><option value="c_cpp">C and C++</option><option value="c9search">C9Search</option><option value="cirru">Cirru</option><option value="clojure">Clojure</option><option value="cobol">Cobol</option><option value="coffee">CoffeeScript</option><option value="coldfusion">ColdFusion</option><option value="csharp">C#</option><option value="curly">Curly</option><option value="d">D</option><option value="dart">Dart</option><option value="diff">Diff</option><option value="dockerfile">Dockerfile</option><option value="dot">Dot</option><option value="dummy">Dummy</option><option value="dummysyntax">DummySyntax</option><option value="eiffel">Eiffel</option><option value="ejs">EJS</option><option value="elixir">Elixir</option><option value="elm">Elm</option><option value="erlang">Erlang</option><option value="forth">Forth</option><option value="fortran">Fortran</option><option value="ftl">FreeMarker</option><option value="gcode">Gcode</option><option value="gherkin">Gherkin</option><option value="gitignore">Gitignore</option><option value="glsl">Glsl</option><option value="gobstones">Gobstones</option><option value="golang">Go</option><option value="groovy">Groovy</option><option value="haml">HAML</option><option value="handlebars">Handlebars</option><option value="haskell">Haskell</option><option value="haxe">haXe</option><option value="html_elixir">HTML (Elixir)</option><option value="html_ruby">HTML (Ruby)</option><option value="ini">INI</option><option value="io">Io</option><option value="jack">Jack</option><option value="jade">Jade</option><option value="java">Java</option><option value="json">JSON</option><option value="jsoniq">JSONiq</option><option value="jsp">JSP</option><option value="jsx">JSX</option><option value="julia">Julia</option><option value="latex">LaTeX</option><option value="lean">Lean</option><option value="less">LESS</option><option value="liquid">Liquid</option><option value="lisp">Lisp</option><option value="livescript">LiveScript</option><option value="logiql">LogiQL</option><option value="lsl">LSL</option><option value="lua">Lua</option><option value="luapage">LuaPage</option><option value="lucene">Lucene</option><option value="makefile">Makefile</option><option value="markdown">Markdown</option><option value="mask">Mask</option><option value="matlab">MATLAB</option><option value="maze">Maze</option><option value="mel">MEL</option><option value="mushcode">MUSHCode</option><option value="mysql">MySQL</option><option value="nix">Nix</option><option value="nsis">NSIS</option><option value="objectivec">Objective-C</option><option value="ocaml">OCaml</option><option value="pascal">Pascal</option><option value="perl">Perl</option><option value="pgsql">pgSQL</option><option value="powershell">Powershell</option><option value="praat">Praat</option><option value="prolog">Prolog</option><option value="properties">Properties</option><option value="protobuf">Protobuf</option><option value="r">R</option><option value="razor">Razor</option><option value="rdoc">RDoc</option><option value="rhtml">RHTML</option><option value="rst">RST</option><option value="ruby">Ruby</option><option value="rust">Rust</option><option value="sass">SASS</option><option value="scad">SCAD</option><option value="scala">Scala</option><option value="scheme">Scheme</option><option value="scss">SCSS</option><option value="sh">SH</option><option value="sjs">SJS</option><option value="smarty">Smarty</option><option value="snippets">snippets</option><option value="soy_template">Soy Template</option><option value="space">Space</option><option value="sql">SQL</option><option value="sqlserver">SQLServer</option><option value="stylus">Stylus</option><option value="svg">SVG</option><option value="swift">Swift</option><option value="tcl">Tcl</option><option value="tex">Tex</option><option value="text">Text</option><option value="textile">Textile</option><option value="toml">Toml</option><option value="twig">Twig</option><option value="typescript">Typescript</option><option value="vala">Vala</option><option value="vbscript">VBScript</option><option value="velocity">Velocity</option><option value="verilog">Verilog</option><option value="vhdl">VHDL</option><option value="wollok">Wollok</option><option value="xml">XML</option><option value="xquery">XQuery</option><option value="yaml">YAML</option><option value="django">Django</option></select><button class="aceButton" onclick="updateLive()">Test Live!</button>
      <button class="aceButton" onclick="download()">Download</button><button class="aceButton" onclick="localsave()">Save To LocalStorage</button><button class="aceButton" onclick="loadLocal()">Open From LocalStorage</button>&nbsp;&nbsp;&nbsp;
      
      <!--The checkbox that gets all the cool haxs-->
      <label  for="autoRun">Automatically execute code<input type="checkbox"  id="autoRun" checked>&nbsp;<span></span></label><br>
      <!--The checkbox that gets all the cool haxs-->
      
      <p>Code execution courtesy of <a class="regLink" href="http://rextester.com/" target="_blank">rextester.com</a></p>
    </div>
    <script src="src-noconflict/ace.js" type="text/javascript" charset="utf-8"></script>
    <script>
      var editor = ace.edit("editor");
      editor.setTheme("ace/theme/clouds");
      editor.session.setMode("ace/mode/html");
      var lang = document.getElementById("lang");
      var langvalue = lang.options[lang.selectedIndex].value;
      //function update() {
      //var code = editor.getValue();
      //document.getElementById('demo').innerHTML = code;
      //}

      function setCookie(cname, cvalue, exdays) {
        var d = new Date();
        d.setTime(d.getTime() + (exdays*24*60*60*1000));
        var expires = "expires="+d.toUTCString();
        document.cookie = cname + "=" + cvalue + "; " + expires;
      }
      function updateLang() {
        var lang = document.getElementById("lang");
        var langvalue = lang.options[lang.selectedIndex].value;

        editor.session.setMode("ace/mode/"+langvalue);
        console.log(langvalue)
      }
      window.setInterval(function(){
        var code = editor.getValue();
      }, 100);

      function loadLocal() {
        var saved = localStorage.getItem('savedcode');
        editor.setValue(saved);
      }
      function localsave() {
        var code = editor.getValue();
        localStorage.setItem('savedcode', code);
      }
      function updateLive() {
        var code = editor.getValue();
        //Switch to interpret language. By defualt HTML. To add a language add a case. Default case is a message.
        switch(lang.value){
          case "html":
            document.getElementById('demo').src = "http://newawe.github.io/Sandbox/html.html?code="+code;
            break;
          case "ruby":
            document.getElementById('demo').src = "http://ronskons.tk/ruby.php?code="+code;
            break;
          case "php":
            document.getElementById('demo').src = "http://ronskons.tk/php.php?code="+code;
            break;
          case "mysql":
            document.getElementById('demo').src = "http://ronskons.tk/mysql.php?code="+code;
            break;
          case "perl":
            document.getElementById('demo').src = "http://ronskons.tk/perl.php?code="+code;
            break;
          case "javascript":
            document.getElementById('demo').src = "http://newawe.github.io/Sandbox/javascript.html?code="+code;
            break;
          case "java":
            document.getElementById('demo').src = "http://ronskons.tk/java.php?code="+code;
            break;
          case "python":
            document.getElementById('demo').src = "http://ronskons.tk/python.php?code="+code;
            break;
          default:
{'fraction_non_alphanumeric': 0.1791281260705721, 'fraction_numerical': 0.014559780746831107, 'mean_word_length': 3.8865871521238753, 'pattern_counts': {'":': 17, '<': 639, '<?xml version=': 0, '>': 639, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 8, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3563618', 'n_tokens_mistral': 7357, 'n_tokens_neox': 6959, 'n_words': 1061}