<commit_before><!DOCTYPE html>
<html>
<head>
    <title>Dragonfly - Command Processor</title>
    <link rel="stylesheet" href="qunit/qunit.css" media="screen">
    <script src="qunit/qunit.js"></script>
    <script src="../src/ecma-debugger/syntax.js"></script>
    <script src="../src/ecma-debugger/formatter.js"></script>
    <script src="../src/lib/json.js"></script>
    <script src="../src/console/commandtransformer.js"></script>


<script>
window.transformer = new HostCommandTransformer();
  
function t(s) {
    return window.transformer.transform(s);
}
  
test("Smoketest", function() {
    expect(3);
    equal(t("$(foo)"), "document.getElementById(foo)");
    equal(t("dir(foo)"), "console.dir(foo)");
    equal(t("dirxml(foo)"), "console.dirxml(foo)");
});


</script>

</head>
<body>
    <h1 id="qunit-header">Dragonfly - Command Processor</h1>
    <h2 id="qunit-banner"></h2>
    <div id="qunit-testrunner-toolbar"></div>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
</body>
</html>
<commit_msg>Added some failing tests<commit_after><!DOCTYPE html>
<html>
<head>
    <title>Dragonfly - Command Processor</title>
    <link rel="stylesheet" href="qunit/qunit.css" media="screen">
    <script src="qunit/qunit.js"></script>
    <script src="../src/ecma-debugger/syntax.js"></script>
    <script src="../src/ecma-debugger/formatter.js"></script>
    <script src="../src/lib/json.js"></script>
    <script src="../src/console/commandtransformer.js"></script>


<script>
window.transformer = new HostCommandTransformer();
  
function t(s) {
    return window.transformer.transform(s);
}
  
test("dir/dirxml", function() {
    equal(t("dir(foo)"), "console.dir(foo)");
    equal(t("dirxml(foo)"), "console.dirxml(foo)");

    equal(t("var x=dir(foo)"), "var x=console.dir(foo)");
    equal(t("var x=dirxml(foo)"), "var x=console.dirxml(foo)");

    equal(t("var x= dir(foo)"), "var x= console.dir(foo)");
    equal(t("var x= dirxml(foo)"), "var x= console.dirxml(foo)");

    equal(t("var x =dir(foo)"), "var x =console.dir(foo)");
    equal(t("var x =dirxml(foo)"), "var x =console.dirxml(foo)");

    equal(t("var x = dir(foo)"), "var x = console.dir(foo)");
    equal(t("var x = dirxml(foo)"), "var x = console.dirxml(foo)");
});

test("$", function() {
    equal(t("$(foo)"), "document.getElementById(foo)");
    equal(t("var x=$(foo)"), "var x=document.getElementById(foo)");
    equal(t("var x= $(foo)"), "var x= document.getElementById(foo)");
    equal(t("var x =$(foo)"), "var x =document.getElementById(foo)");
    equal(t("var x = $(foo)"), "var x = document.getElementById(foo)");
});

</script>

</head>
<body>
    <h1 id="qunit-header">Dragonfly - Command Processor</h1>
    <h2 id="qunit-banner"></h2>
    <div id="qunit-testrunner-toolbar"></div>
    <h2 id="qunit-userAgent"></h2>
    <ol id="qunit-tests"></ol>
</body>
</html>

{'fraction_non_alphanumeric': 0.23764787752261657, 'fraction_numerical': 0.004523312456506611, 'mean_word_length': 4.324074074074074, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 13}, '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': '2870245', 'n_tokens_mistral': 1055, 'n_tokens_neox': 1057, 'n_words': 180}