<commit_before><!DOCTYPE html>
<html>
  <head>
    <title><NAME> från LiTHe kod!</title>
    <meta charset="UTF-8">
    <style>
      #app { display: flex; height: 500px; }
      #drawview { height: 100%; flex: 1; }
    </style>
    <link rel=stylesheet href="julkalender.css">
    <script>
      function runCode() {
          let code = document.getElementById("codeeditor").value;
          eval(code);
      }
    </script>
  </head>
  <body onload="runCode()">
      <h2>God jul önskar <div><img src="assets/logo_cropped.png"></div></h2>
    Koden nedan kan ändras. Klicka på knappen
    <button onclick="runCode()">Kör</button> eller tryck F5 för att se resultatet.
    Delta gärna i vår <a href="http://lithekod.se/advent-of-code/">Advent of code-tävling</a>.
    <div id="app">
      <textarea id="codeeditor">
let treeSvg = "\n \
// Himmel \
<rect x=\"0\" y=\"0\" width=\"100\" height=\"100\" fill=\"black\"></rect>\n \
<line x1=\"10\" x2=\"10\" y1=\"10\" y2=\"20\" stroke=\"yellow\"></line>\n \
<line x1=\"5\" x2=\"15\" y1=\"15\" y2=\"15\" stroke=\"yellow\"></line>\n \
<line x1=\"80\" x2=\"80\" y1=\"17\" y2=\"27\" stroke=\"yellow\"></line>\n \
<line x1=\"75\" x2=\"85\" y1=\"22\" y2=\"22\" stroke=\"yellow\"></line>\n \
\
// Snö \
<path d=\"M0 90 C20 85, 40 87, 100 82 V100 H0\" fill=\"white\"></path>\n\n \
\
// Gran \
<polygon points=\"20 80, 40 60, 25 60, 50 30, 75 60, 60 60, 80 80\" fill=\"green\"></polygon>\n \
<rect x=\"45\" y=\"80\" width=\"10\" height=\"15\" fill=\"brown\"></rect>\n \
";

let drawView = document.getElementById("drawview");
drawView.innerHTML = treeSvg;
      </textarea>
      <svg id="drawview" viewbox="0 0 100 100">
      </svg>
    </div>
  </body>
</html>
<commit_msg>Add link to website and remove press F5<commit_after><!DOCTYPE html>
<html>
  <head>
    <title>God jul från LiTHe kod!</title>
    <meta charset="UTF-8">
    <style>
      #app { display: flex; height: 500px; }
      #drawview { height: 100%; flex: 1; }
    </style>
    <link rel=stylesheet href="julkalender.css">
    <script>
      function runCode() {
          let code = document.getElementById("codeeditor").value;
          eval(code);
      }
    </script>
  </head>
  <body onload="runCode()">
      <h2>God jul önskar <a href="http://lithekod.se"><div><img src="assets/logo_cropped.png"></div></a></h2>
    Koden nedan kan ändras. Klicka på knappen
    <button onclick="runCode()">Kör</button> för att se resultatet.
    Delta gärna i vår <a href="http://lithekod.se/advent-of-code/">Advent of code-tävling</a>.
    <div id="app">
      <textarea id="codeeditor">
let treeSvg = "\n \
// Himmel \
<rect x=\"0\" y=\"0\" width=\"100\" height=\"100\" fill=\"black\"></rect>\n \
<line x1=\"10\" x2=\"10\" y1=\"10\" y2=\"20\" stroke=\"yellow\"></line>\n \
<line x1=\"5\" x2=\"15\" y1=\"15\" y2=\"15\" stroke=\"yellow\"></line>\n \
<line x1=\"80\" x2=\"80\" y1=\"17\" y2=\"27\" stroke=\"yellow\"></line>\n \
<line x1=\"75\" x2=\"85\" y1=\"22\" y2=\"22\" stroke=\"yellow\"></line>\n \
\
// Snö \
<path d=\"M0 90 C20 85, 40 87, 100 82 V100 H0\" fill=\"white\"></path>\n\n \
\
// Gran \
<polygon points=\"20 80, 40 60, 25 60, 50 30, 75 60, 60 60, 80 80\" fill=\"green\"></polygon>\n \
<rect x=\"45\" y=\"80\" width=\"10\" height=\"15\" fill=\"brown\"></rect>\n \
";

let drawView = document.getElementById("drawview");
drawView.innerHTML = treeSvg;
      </textarea>
      <svg id="drawview" viewbox="0 0 100 100">
      </svg>
    </div>
  </body>
</html>

{'fraction_non_alphanumeric': 0.2464727900950187, 'fraction_numerical': 0.07486323063633746, 'mean_word_length': 2.7967213114754097, 'pattern_counts': {'":': 0, '<': 98, '<?xml version=': 0, '>': 98, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6852471', 'n_tokens_mistral': 1488, 'n_tokens_neox': 1299, 'n_words': 316}