<commit_before><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="x-ua-compatible" content="ie=edge">

    <title>atw dingus</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.css">
    <style>
textarea {
    width: 100%;
    height: 30ex;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
#error, #result, #tree {
    display: none;
}
#clear {
    float: left;
    margin-right: 1em;
}
#tools {
    height: 2em;
}
#help {
    clear: both;
    margin-top: 1em;
}
#tree {
    max-height: 30ex;
    overflow: scroll;
}

.example:hover {
    background: rgba(0, 0, 0, 0.2);
}
#help p {
    margin-bottom: 0;
    color: #666;
}
#help pre {
    font-weight: bold;
}
    </style>
</head>
<body>
<div class="container">

<h1>atw dingus</h1>

<div class="row">
    <div class="col-sm-6">
        <textarea id="code"></textarea>
        <div id="tools">
            <button type="button" class="btn btn-secondary btn-sm" id="clear">
                clear
            </button>
            <p id="type"></p>
        </div>
    </div>

    <div class="col-sm-6">
        <div id="error" class="alert alert-danger"></div>
        <pre id="result"></pre>
        <pre id="tree"></pre>
    </div>
</div>

<div class="row">
    <div class="col-sm-12" id="help">
        <p>You can use arithmetic and variables:</p>
        <pre class="example"><code>let x = 7;
x * 3</code></pre>

        <p>And define functions:</p>
        <pre class="example"><code>let double = fun x:Int -&gt; x * 2;
double 21</code></pre>

        <p>Use angle brackets to defer code:</p>
        <pre class="example"><code>&lt; 45 - 3 &gt;</code></pre>
<commit_msg>Hide tree on mobile?<commit_after><!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="x-ua-compatible" content="ie=edge">

    <title>atw dingus</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.0.0-alpha/css/bootstrap.css">
    <style>
textarea {
    width: 100%;
    height: 30ex;
    font-family: Menlo, Monaco, Consolas, "Courier New", monospace;
}
#error, #result, #tree {
    display: none;
}
#clear {
    float: left;
    margin-right: 1em;
}
#tools {
    height: 2em;
}
#help {
    clear: both;
    margin-top: 1em;
}
#tree {
    max-height: 30ex;
    overflow: scroll;
}

.example:hover {
    background: rgba(0, 0, 0, 0.2);
}
#help p {
    margin-bottom: 0;
    color: #666;
}
#help pre {
    font-weight: bold;
}
    </style>
</head>
<body>
<div class="container">

<h1>atw dingus</h1>

<div class="row">
    <div class="col-sm-6">
        <textarea id="code"></textarea>
        <div id="tools">
            <button type="button" class="btn btn-secondary btn-sm" id="clear">
                clear
            </button>
            <p id="type"></p>
        </div>
    </div>

    <div class="col-sm-6">
        <div id="error" class="alert alert-danger"></div>
        <pre id="result"></pre>
        <pre id="tree" class="hidden-sm-down"></pre>
    </div>
</div>

<div class="row">
    <div class="col-sm-12" id="help">
        <p>You can use arithmetic and variables:</p>
        <pre class="example"><code>let x = 7;
x * 3</code></pre>

        <p>And define functions:</p>
        <pre class="example"><code>let double = fun x:Int -&gt; x * 2;
double 21</code></pre>

        <p>Use angle brackets to defer code:</p>
        <pre class="example"><code>&lt; 45 - 3 &gt;</code></pre>

{'fraction_non_alphanumeric': 0.19476268412438624, 'fraction_numerical': 0.020731042007637753, 'mean_word_length': 2.641509433962264, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 2, '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': '2923478', 'n_tokens_mistral': 1419, 'n_tokens_neox': 1316, 'n_words': 304}