<commit_before><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>BlockPy Example</title>

    <!-- D3 -->
    <script src="../libs/d3/d3.min.js"></script>

    <!-- FontAwesome 5 -->
    <link rel="stylesheet" href="../libs/fontawesome/all.min.css">

    <!-- JQuery -->
    <script src="../libs/jquery/jquery-3.4.1.min.js"></script>

    <!-- JQuery UI -->
    <script src="../libs/jquery/jquery-ui.min.js"></script>

    <!-- JQuery Multi-select -->
    <link rel="stylesheet" href="../libs/jquery/multi-select.css">
    <script src="../libs/jquery/jquery.multi-select.js"></script>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="../libs/bootstrap/bootstrap.min.css">
    <script src="../libs/bootstrap/popper.min.js"></script>
    <script src="../libs/bootstrap/bootstrap.min.js"></script>

    <!-- Knockout -->
    <script src="../libs/knockout/knockout-3.5.0.js"></script>

    <!-- HighlightJS -->
    <link rel="stylesheet" href="../libs/highlight/default.min.css">
    <script src="../libs/highlight/highlight.min.js"></script>

    <!-- EasyMD -->
    <link rel="stylesheet" href="../libs/easymde/easymde.css">
    <script src="../libs/easymde/easymde.min.js"></script>

    <!-- Code Mirror -->
    <link rel="stylesheet" href="../libs/codemirror/codemirror.css">
    <link rel="stylesheet" href="../libs/codemirror/fullscreen.css">
    <script src="../libs/codemirror/codemirror.js"></script>
    <script src="../libs/codemirror/diff.js"></script>
    <script src="../libs/codemirror/django.js"></script>
    <script src="../libs/codemirror/fullscreen.js"></script>
    <script src="../libs/codemirror/markdown.js"></script>
    <script src="../libs/codemirror/python.js"></script>
    <script src="../libs/codemirror/shell.js"></script>
    <script src="../libs/codemirror/yaml-frontmatter.js"></script>

    <!-- Blockly -->
    <script src="../../blockly/blockly_compressed.js" type="text/javascript"></script>
    <script src="../../blockly/blocks_compressed.js" type="text/javascript"></script>
    <script src="../../blockly/msg/js/en.js" type="text/javascript"></script>
    <script src="../../blockly/python_compressed.js" type="text/javascript"></script>

    <!-- Skulpt -->
    <script src="../../skulpt/dist/skulpt.js" type="text/javascript"></script>
    <script src="../../skulpt/dist/skulpt-stdlib.js" type="text/javascript"></script>

    <!-- Pedal -->
    <script src="../../../pedal-edu/pedal/dist-js/skulpt-pedal.js" type="text/javascript"></script>
    <script src="../../../pedal-edu/curriculum-ctvt/dist-js/skulpt-curriculum-ctvt.js" type="text/javascript"></script>
    <script src="../../../pedal-edu/curriculum-sneks/dist-js/skulpt-curriculum-sneks.js" type="text/javascript"></script>

    <!-- BlockMirror -->
    <link rel="stylesheet" href="../../BlockMirror/dist/block_mirror.css">
    <script src="../../BlockMirror/dist/block_mirror.js" type="text/javascript"></script>

    <!-- BlockPy -->
    <link rel="stylesheet" href="../dist/blockpy.css">
    <script src="../dist/blockpy.js"></script>

</head>
<body>

<div style="width:900px;  margin:0 auto;">

<div id="main-editor"></div>

    <!-- Debugging code
import turtle
turtle.bgpic("https://i.imgur.com/A8eQsll.jpg")
turtle.forward(50)
turtle.right(90)
turtle.forward(100)
turtle.circle(10)

# Image manipulation
from PIL import Image

i = Image()
i.open("http://placecorgi.com/260/180")
i.show()
-->

<script>
    $(document).ready(function() {
        editor = new blockpy.BlockPy({
            'attachment.point': '#main-editor',
            "urls": {
                "importDatasets": "https://corgis-edu.github.io/corgis/datasets/"
            },
            "display.instructor": true,
            "assignment.on_run": `
debug(student.output)
log(student.output)
`.trim(),
            "submission.code": `
a = 0
print(a)
`.trim()
        });
/*
from image import Image
dog = Image("http://localhost:8000/images/swimming.gif")
dog.flip().show()
 */
        blockmirror = editor.components.editors.registered_[1].bm;
    });
</script>



</div>

</body>
</html><commit_msg>When are we finally going to get test cases for BlockPy? Probably not this version...<commit_after><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>BlockPy Example</title>

    <!-- D3 -->
    <script src="../libs/d3/d3.min.js"></script>

    <!-- FontAwesome 5 -->
    <link rel="stylesheet" href="../libs/fontawesome/all.min.css">

    <!-- JQuery -->
    <script src="../libs/jquery/jquery-3.4.1.min.js"></script>

    <!-- JQuery UI -->
    <script src="../libs/jquery/jquery-ui.min.js"></script>

    <!-- JQuery Multi-select -->
    <link rel="stylesheet" href="../libs/jquery/multi-select.css">
    <script src="../libs/jquery/jquery.multi-select.js"></script>

    <!-- Bootstrap -->
    <link rel="stylesheet" href="../libs/bootstrap/bootstrap.min.css">
    <script src="../libs/bootstrap/popper.min.js"></script>
    <script src="../libs/bootstrap/bootstrap.min.js"></script>

    <!-- Knockout -->
    <script src="../libs/knockout/knockout-3.5.0.js"></script>

    <!-- HighlightJS -->
    <link rel="stylesheet" href="../libs/highlight/default.min.css">
    <script src="../libs/highlight/highlight.min.js"></script>

    <!-- EasyMD -->
    <link rel="stylesheet" href="../libs/easymde/easymde.css">
    <script src="../libs/easymde/easymde.min.js"></script>

    <!-- Code Mirror -->
    <link rel="stylesheet" href="../libs/codemirror/codemirror.css">
    <link rel="stylesheet" href="../libs/codemirror/fullscreen.css">
    <script src="../libs/codemirror/codemirror.js"></script>
    <script src="../libs/codemirror/diff.js"></script>
    <script src="../libs/codemirror/django.js"></script>
    <script src="../libs/codemirror/fullscreen.js"></script>
    <script src="../libs/codemirror/markdown.js"></script>
    <script src="../libs/codemirror/python.js"></script>
    <script src="../libs/codemirror/shell.js"></script>
    <script src="../libs/codemirror/yaml-frontmatter.js"></script>

    <!-- Blockly -->
    <script src="../../blockly/blockly_compressed.js" type="text/javascript"></script>
    <script src="../../blockly/blocks_compressed.js" type="text/javascript"></script>
    <script src="../../blockly/msg/js/en.js" type="text/javascript"></script>
    <script src="../../blockly/python_compressed.js" type="text/javascript"></script>

    <!-- Skulpt -->
    <script src="../../skulpt/dist/skulpt.js" type="text/javascript"></script>
    <script src="../../skulpt/dist/skulpt-stdlib.js" type="text/javascript"></script>

    <!-- Pedal -->
    <script src="../../../pedal-edu/pedal/dist-js/skulpt-pedal.js" type="text/javascript"></script>
    <script src="../../../pedal-edu/curriculum-ctvt/dist-js/skulpt-curriculum-ctvt.js" type="text/javascript"></script>
    <script src="../../../pedal-edu/curriculum-sneks/dist-js/skulpt-curriculum-sneks.js" type="text/javascript"></script>

    <!-- BlockMirror -->
    <link rel="stylesheet" href="../../BlockMirror/dist/block_mirror.css">
    <script src="../../BlockMirror/dist/block_mirror.js" type="text/javascript"></script>

    <!-- BlockPy -->
    <link rel="stylesheet" href="../dist/blockpy.css">
    <script src="../dist/blockpy.js"></script>

</head>
<body>

<div style="width:900px;  margin:0 auto;">

<div id="main-editor"></div>

    <!-- Debugging code
import turtle
turtle.bgpic("https://i.imgur.com/A8eQsll.jpg")
turtle.forward(50)
turtle.right(90)
turtle.forward(100)
turtle.circle(10)

# Image manipulation
from PIL import Image

i = Image()
i.open("http://placecorgi.com/260/180")
i.show()
-->

<script>
    $(document).ready(function() {
        editor = new blockpy.BlockPy({
            'attachment.point': '#main-editor',
            "urls": {
                "importDatasets": "https://corgis-edu.github.io/corgis/datasets/"
            },
            "display.instructor": true,
            "assignment.on_run": `
debug(student.output)
log(student.output)
`.trim(),
            "submission.code": `
a = 0
print(a+"")
`.trim()
        });
/*
from image import Image
dog = Image("http://localhost:8000/images/swimming.gif")
dog.flip().show()
 */
        blockmirror = editor.components.editors.registered_[1].bm;
    });
</script>



</div>

</body>
</html>
{'fraction_non_alphanumeric': 0.23208478863061544, 'fraction_numerical': 0.008912441286282066, 'mean_word_length': 2.898591549295775, 'pattern_counts': {'":': 10, '<': 197, '<?xml version=': 0, '>': 197, 'https://': 4, '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': '6296590', 'n_tokens_mistral': 2878, 'n_tokens_neox': 2699, 'n_words': 377}