<commit_before>﻿<!DOCTYPE html>
<html>
<head>
    <title>Maker.js Playground</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10">

    <!--
        
    *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    *****************************************************************************

    https://github.com/Microsoft/maker.js

    -->

    <link href="../external/codemirror/lib/codemirror.css" rel="stylesheet" />
    <link href="../external/codemirror/theme/twilight.css" rel="stylesheet" />
    <link href="playground.css" rel="stylesheet" />
    <script src="../external/marked/marked.js"></script>
    <script src="../external/codemirror/lib/codemirror.js"></script>
    <script src="../external/codemirror/mode/javascript/javascript.js"></script>

    <script>
        //pretend we are in node
        var module = {};
    </script>

    <script src="../src/core/maker.js"></script>
    <script src="../src/core/angle.js"></script>
    <script src="../src/core/point.js"></script>
    <script src="../src/core/units.js"></script>
    <script src="../src/core/measure.js"></script>
    <script src="../src/core/path.js"></script>
    <script src="../src/core/break.js"></script>
    <script src="../src/core/paths.js"></script>
    <script src="../src/core/model.js"></script>
    <script src="../src/core/combine.js"></script>
    <script src="../src/core/loops.js"></script>
    <script src="../src/core/kit.js"></script>
    <script src="../src/core/exporter.js"></script>
    <script src="../src/core/dxf.js"></script>
    <script src="../src/core/xml.js"></script>
    <script src="../src/core/svg.js"></script>
    <script src="../src/core/openjscad.js"></script>
    <script src="../src/core/solvers.js"></script>
    <script src="../src/core/fillet.js"></script>
    <script src="../src/core/intersect.js"></script>
    <script src="../src/models/BoltCircle.js"></script>
    <script src="../src/models/BoltRectangle.js"></script>
    <script src="../src/models/Dome.js"></script>
    <script src="../src/models/RoundRectangle.js"></script>
    <script src="../src/models/Oval.js"></script>
    <script src="../src/models/OvalArc.js"></script>
    <script src="../src/models/ConnectTheDots.js"></script>
    <script src="../src/models/Rectangle.js"></script>
    <script src="../src/models/Ring.js"></script>
    <script src="../src/models/Polygon.js"></script>
    <script src="../src/models/Square.js"></script>
    <script src="../src/models/Slot.js"></script>
    <script src="../src/models/SCurve.js"></script>
    <script src="../src/models/Star.js"></script>

    <script>
        //pretend it's been required
        var makerjs = MakerJs;
    </script>

    <script src="export-format.js"></script>
    <script src="playground.js"></script>
    <script>
        //config
        MakerJsPlayground.relativePath = '../examples/';
    </script>

</head>
<body class="no-notes">
    <a name="top"></a>

    <header class="logo">
        <a href="http://microsoft.github.io/maker.js/"><img src="m.png" /><h1>Maker.js</h1></a>
        <div id="rendering-options-top">
            <button onclick="MakerJsPlayground.toggleClass('collapse-rendering-options')">customize <span class="icon dropup">&#x25B4;</span><span class="icon dropdown">&#x25BE;</span></button>
        </div>
    </header>

    <section id="blueprint-canvas">
        <div id="view-params">
            <div id="view"><div id="view-measure"></div></div>
            <div id="rendering-options-menu">
                <div id="params"></div>
                <hr />
                <div><label><input id="check-fit-on-screen" type="checkbox" checked onclick="MakerJsPlayground.render()" /> fit on screen</label></div>
                <div><label><input id="check-show-origin" type="checkbox" checked onclick="MakerJsPlayground.render()" /> show origin</label></div>
                <div><label><input id="check-annotate" type="checkbox" onclick="MakerJsPlayground.render()" /> show path names</label></div>
                <div id="notes-toggle"><label><input id="check-notes" type="checkbox" checked onclick="MakerJsPlayground.toggleClass('collapse-notes')" /> show notes</label></div>
            </div>
        </div>
        <div id="notes"></div>
    </section>

    <section id="download">
        <h2>Download your customized drawing</h2>

        <div id="download-select">
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Dxf);">.dxf</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Svg);">.svg</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Json);">json</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.OpenJsCad);">openjscad</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Stl);">.stl</button>
        </div>

        <div id="download-generating">
            <button onclick="MakerJsPlayground.cancelExport()">cancel</button>
            <div id="download-progress"></div>
        </div>

        <div id="download-ready">
            <span id="download-link-container"></span>
            <span>
                <button class="close" onclick="MakerJsPlayground.toggleClass('download-ready')">close</button>
            </span>
            <div id="download-preview-container">
                <textarea id="download-preview" rows="8" readonly></textarea>
            </div>
            <div class="onscreen-help">
                If your browser does not support the download button above, <button onclick="MakerJsPlayground.copyToClipboard()">copy the text above</button> and paste into a new text file named <b id="download-filename">myfile.txt</b> on your computer.
            </div>
        </div>

    </section>

    <section>
        <div class="code-header">
            JavaScript code editor
            <button onclick="MakerJsPlayground.runCodeFromEditor()">&nbsp;&#x25BA; Run&nbsp;</button>
            <span class="status"></span>
        </div>

        <a name="code"></a>

        <pre id="init-javascript-code">
var makerjs = require('makerjs');
this.paths = {
    head: new makerjs.paths.Circle([0, 0], 90),
    eye: new makerjs.paths.Circle([25, 25], 10),
    mouth: new makerjs.paths.Arc([0, 0], 50, 225, 315),
    wink: new makerjs.paths.Line([-35, 20], [-15, 20])
};
this.notes = '# Welcome to the Maker.js playground \n You can edit the code below, then click **Run** to see your drawing.';
</pre>

    </section>

    <div class="scroll-nav-links">
        <span>jump to</span>
        <span><a href="#code">code</a></span>
        <span><a href="#top">top</a></span>
    </div>

    <footer>
        <a href="https://github.com/Microsoft"><img src="microsoft.png" height="16" /> Open source, from Microsoft with love.</a> <a href="http://aka.ms/privacy">Privacy Statement</a> &copy;2016&nbsp;Microsoft
    </footer>

</body>
</html><commit_msg>jump links do not add to history<commit_after>﻿<!DOCTYPE html>
<html>
<head>
    <title>Maker.js Playground</title>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=10">

    <!--
        
    *****************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    Licensed under the Apache License, Version 2.0 (the "License"); you may not use
    this file except in compliance with the License. You may obtain a copy of the
    License at http://www.apache.org/licenses/LICENSE-2.0

    THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
    WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
    MERCHANTABLITY OR NON-INFRINGEMENT.

    See the Apache Version 2.0 License for specific language governing permissions
    and limitations under the License.
    *****************************************************************************

    https://github.com/Microsoft/maker.js

    -->

    <link href="../external/codemirror/lib/codemirror.css" rel="stylesheet" />
    <link href="../external/codemirror/theme/twilight.css" rel="stylesheet" />
    <link href="playground.css" rel="stylesheet" />
    <script src="../external/marked/marked.js"></script>
    <script src="../external/codemirror/lib/codemirror.js"></script>
    <script src="../external/codemirror/mode/javascript/javascript.js"></script>

    <script>
        //pretend we are in node
        var module = {};
    </script>

    <script src="../src/core/maker.js"></script>
    <script src="../src/core/angle.js"></script>
    <script src="../src/core/point.js"></script>
    <script src="../src/core/units.js"></script>
    <script src="../src/core/measure.js"></script>
    <script src="../src/core/path.js"></script>
    <script src="../src/core/break.js"></script>
    <script src="../src/core/paths.js"></script>
    <script src="../src/core/model.js"></script>
    <script src="../src/core/combine.js"></script>
    <script src="../src/core/loops.js"></script>
    <script src="../src/core/kit.js"></script>
    <script src="../src/core/exporter.js"></script>
    <script src="../src/core/dxf.js"></script>
    <script src="../src/core/xml.js"></script>
    <script src="../src/core/svg.js"></script>
    <script src="../src/core/openjscad.js"></script>
    <script src="../src/core/solvers.js"></script>
    <script src="../src/core/fillet.js"></script>
    <script src="../src/core/intersect.js"></script>
    <script src="../src/models/BoltCircle.js"></script>
    <script src="../src/models/BoltRectangle.js"></script>
    <script src="../src/models/Dome.js"></script>
    <script src="../src/models/RoundRectangle.js"></script>
    <script src="../src/models/Oval.js"></script>
    <script src="../src/models/OvalArc.js"></script>
    <script src="../src/models/ConnectTheDots.js"></script>
    <script src="../src/models/Rectangle.js"></script>
    <script src="../src/models/Ring.js"></script>
    <script src="../src/models/Polygon.js"></script>
    <script src="../src/models/Square.js"></script>
    <script src="../src/models/Slot.js"></script>
    <script src="../src/models/SCurve.js"></script>
    <script src="../src/models/Star.js"></script>

    <script>
        //pretend it's been required
        var makerjs = MakerJs;
    </script>

    <script src="export-format.js"></script>
    <script src="playground.js"></script>
    <script>
        //config
        MakerJsPlayground.relativePath = '../examples/';
    </script>

</head>
<body class="no-notes">
    <a name="top"></a>

    <header class="logo">
        <a href="http://microsoft.github.io/maker.js/"><img src="m.png" /><h1>Maker.js</h1></a>
        <div id="rendering-options-top">
            <button onclick="MakerJsPlayground.toggleClass('collapse-rendering-options')">customize <span class="icon dropup">&#x25B4;</span><span class="icon dropdown">&#x25BE;</span></button>
        </div>
    </header>

    <section id="blueprint-canvas">
        <div id="view-params">
            <div id="view"><div id="view-measure"></div></div>
            <div id="rendering-options-menu">
                <div id="params"></div>
                <hr />
                <div><label><input id="check-fit-on-screen" type="checkbox" checked onclick="MakerJsPlayground.render()" /> fit on screen</label></div>
                <div><label><input id="check-show-origin" type="checkbox" checked onclick="MakerJsPlayground.render()" /> show origin</label></div>
                <div><label><input id="check-annotate" type="checkbox" onclick="MakerJsPlayground.render()" /> show path names</label></div>
                <div id="notes-toggle"><label><input id="check-notes" type="checkbox" checked onclick="MakerJsPlayground.toggleClass('collapse-notes')" /> show notes</label></div>
            </div>
        </div>
        <div id="notes"></div>
    </section>

    <section id="download">
        <h2>Download your customized drawing</h2>

        <div id="download-select">
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Dxf);">.dxf</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Svg);">.svg</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Json);">json</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.OpenJsCad);">openjscad</button>
            <button href="#" onclick="MakerJsPlayground.downloadClick(this, MakerJsPlaygroundExport.ExportFormat.Stl);">.stl</button>
        </div>

        <div id="download-generating">
            <button onclick="MakerJsPlayground.cancelExport()">cancel</button>
            <div id="download-progress"></div>
        </div>

        <div id="download-ready">
            <span id="download-link-container"></span>
            <span>
                <button class="close" onclick="MakerJsPlayground.toggleClass('download-ready')">close</button>
            </span>
            <div id="download-preview-container">
                <textarea id="download-preview" rows="8" readonly></textarea>
            </div>
            <div class="onscreen-help">
                If your browser does not support the download button above, <button onclick="MakerJsPlayground.copyToClipboard()">copy the text above</button> and paste into a new text file named <b id="download-filename">myfile.txt</b> on your computer.
            </div>
        </div>

    </section>

    <section>
        <div class="code-header">
            JavaScript code editor
            <button onclick="MakerJsPlayground.runCodeFromEditor()">&nbsp;&#x25BA; Run&nbsp;</button>
            <span class="status"></span>
        </div>

        <a name="code"></a>

        <pre id="init-javascript-code">
var makerjs = require('makerjs');
this.paths = {
    head: new makerjs.paths.Circle([0, 0], 90),
    eye: new makerjs.paths.Circle([25, 25], 10),
    mouth: new makerjs.paths.Arc([0, 0], 50, 225, 315),
    wink: new makerjs.paths.Line([-35, 20], [-15, 20])
};
this.notes = '# Welcome to the Maker.js playground \n You can edit the code below, then click **Run** to see your drawing.';
</pre>

    </section>

    <div class="scroll-nav-links">
        <span>jump to</span>
        <span><a href="#code" onclick="document.querySelector('a[name=code]').scrollIntoView();return false;">code</a></span>
        <span><a href="#top" onclick="document.querySelector('a[name=top]').scrollIntoView();return false;">top</a></span>
    </div>

    <footer>
        <a href="https://github.com/Microsoft"><img src="microsoft.png" height="16" /> Open source, from Microsoft with love.</a> <a href="http://aka.ms/privacy">Privacy Statement</a> &copy;2016&nbsp;Microsoft
    </footer>

</body>
</html>
{'fraction_non_alphanumeric': 0.20269763956538028, 'fraction_numerical': 0.006993880354689647, 'mean_word_length': 3.065752729119066, 'pattern_counts': {'":': 0, '<': 447, '<?xml version=': 0, '>': 447, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 2}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 34, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '76588', 'n_tokens_mistral': 4915, 'n_tokens_neox': 4705, 'n_words': 933}