<commit_before><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Sass.js Source Console</title>
</head>
<body>
  <h1>Sass.js Source Console</h1>
  <p>This document loads the <em>source</em> sass.js. You have to compile libsass using <code>grunt libsass:prepare libsass:build</code> before this will work. Please open your browser's DevTools to use the API.</p>


  <h2>Try the following example:</h2>
  <pre>Sass.writeFile('testfile.scss', '@import "sub/deeptest";\n.testfile { content: "loaded"; }');
Sass.writeFile('sub/deeptest.scss', '.deeptest { content: "loaded"; }');
Sass.options({ style: Sass.style.expanded });
var result = Sass.compile('@import "testfile";');
console.log("compiled", result.text);</pre>


  <script src="libsass/libsass/lib/libsass.js"></script>
  <script src="src/sass.properties.js"></script>
  <script src="src/sass.api.js"></script>
</body>
</html><commit_msg>feature(emscripten): callback when system is ready<commit_after><!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>Sass.js Source Console</title>
</head>
<body>
  <h1>Sass.js Source Console</h1>
  <p>This document loads the <em>source</em> sass.js. You have to compile libsass using <code>grunt libsass:prepare libsass:build</code> before this will work. Please open your browser's DevTools to use the API.</p>


  <h2>Try the following example:</h2>
  <pre>Sass.writeFile('testfile.scss', '@import "sub/deeptest";\n.testfile { content: "loaded"; }');
Sass.writeFile('sub/deeptest.scss', '.deeptest { content: "loaded"; }');
Sass.options({ style: Sass.style.expanded });
var result = Sass.compile('@import "testfile";');
console.log("compiled", result.text);</pre>

  <script>
    var Module = {
      // see http://kripken.github.io/emscripten-site/docs/getting_started/FAQ.html#how-can-i-tell-when-the-page-is-fully-loaded-and-it-is-safe-to-call-compiled-functions
      onRuntimeInitialized: function() {
        console.log("runtime initialized, ready to go!");
      }
    };
  </script>
  <script src="libsass/libsass/lib/libsass.js"></script>
  <script src="src/sass.properties.js"></script>
  <script src="src/sass.api.js"></script>
</body>
</html>
{'fraction_non_alphanumeric': 0.1882673942701228, 'fraction_numerical': 0.004547521600727604, 'mean_word_length': 4.684754521963824, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '4286139', 'n_tokens_mistral': 809, 'n_tokens_neox': 776, 'n_words': 163}