<commit_before><!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

        <title>reveal.js</title>

        <link rel="stylesheet" href="css/reveal.css">
        <link rel="stylesheet" href="css/theme/league.css">

        <!-- Theme used for syntax highlighting of code -->
        <link rel="stylesheet" href="lib/css/zenburn.css">

        <!-- Printing and PDF exports -->
        <script>
            var link = document.createElement( 'link' );
            link.rel = 'stylesheet';
            link.type = 'text/css';
            link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
            document.getElementsByTagName( 'head' )[0].appendChild( link );
        </script>
        <style type="text/css">
            #background {
                width: 100vw;
                height: 100vh;
                position: relative;
            }

            #background:before {
                content: ' ';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(50, 0, 0, 0.5);
            }

            .wrapper {
                position: absolute;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
            }
        </style>
    </head>
    <body>
        <div id="background">
        </div>

        <div class="wrapper">
            <div class="reveal">
                <div class="slides">
                    <section>
                        <h2>Death to jQuery</h2>
                    </section>
                    <section>
                        <h2>Before we get to the killing part...</h2>
                        <h3>Let's talk about where we've been</h3>
                    </section>
                    <section>
                        <h2>In the beginning...</h2>
                        <h3>there was &lt;html&gt;</h3>
                    </section>
                    <section>
                        <h2>The rise of styles and scripts</h2>
                    </section>
                    <section>
                        <h2>AJAX</h2>
                    </section>
                </div>
            </div>
        </div>

        <script src="lib/js/head.min.js"></script>
        <script src="js/reveal.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.0.1/trianglify.min.js"></script>

        <script>
            const randomInt = (max) => {
                return parseInt(Math.random() * (max - 70) + 70);
            }

            const randomColor = () => '#'+(Math.random()*0xFFFFFF<<0).toString(16);

            const generateBackground = () => {
                var pattern = Trianglify({
                    height: document.body.clientHeight,
                    width: document.body.clientWidth,
                    cell_size: randomInt(150),
                    variance: '0.' + randomInt(100),
                    x_colors: 'random',
                    y_colors: 'random'
                });

                [].slice.call(document.getElementById('background').getElementsByTagName('svg')).forEach((svg) => svg.remove());

                document.getElementById('background').appendChild(pattern.svg());
            }

            // More info https://github.com/hakimel/reveal.js#configuration
            Reveal.initialize({
                history: true,
                progress: false,
                // controls: false,

                // More info https://github.com/hakimel/reveal.js#dependencies
                dependencies: [
                    { src: 'plugin/markdown/marked.js' },
                    { src: 'plugin/markdown/markdown.js' },
                    { src: 'plugin/notes/notes.js', async: true },
                    { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
                ]
            });

            Reveal.addEventListener( 'slidechanged', function( event ) {
                generateBackground();
            } );

            generateBackground();
        </script>
    </body>
</html><commit_msg>added seeding to background generation<commit_after><!doctype html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">

        <title>reveal.js</title>

        <link rel="stylesheet" href="css/reveal.css">
        <link rel="stylesheet" href="css/theme/league.css">

        <!-- Theme used for syntax highlighting of code -->
        <link rel="stylesheet" href="lib/css/zenburn.css">

        <!-- Printing and PDF exports -->
        <script>
            var link = document.createElement( 'link' );
            link.rel = 'stylesheet';
            link.type = 'text/css';
            link.href = window.location.search.match( /print-pdf/gi ) ? 'css/print/pdf.css' : 'css/print/paper.css';
            document.getElementsByTagName( 'head' )[0].appendChild( link );
        </script>
        <style type="text/css">
            #background {
                width: 100vw;
                height: 100vh;
                position: relative;
            }

            #background:before {
                content: ' ';
                position: absolute;
                top: 0;
                left: 0;
                right: 0;
                bottom: 0;
                background: rgba(50, 0, 0, 0.5);
            }

            .wrapper {
                position: absolute;
                top: 0;
                right: 0;
                left: 0;
                bottom: 0;
            }
        </style>
    </head>
    <body>
        <div id="background">
        </div>

        <div class="wrapper">
            <div class="reveal">
                <div class="slides">
                    <section>
                        <h2>Death to jQuery</h2>
                    </section>
                    <section>
                        <h2>Before we get to the killing part...</h2>
                        <h3>Let's talk about where we've been</h3>
                    </section>
                    <section>
                        <h2>In the beginning...</h2>
                        <h3>there was &lt;html&gt;</h3>
                    </section>
                    <section>
                        <h2>The rise of styles and scripts</h2>
                    </section>
                    <section>
                        <h2>AJAX</h2>
                    </section>
                </div>
            </div>
        </div>

        <script src="lib/js/head.min.js"></script>
        <script src="js/reveal.js"></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.0.1/trianglify.min.js"></script>

        <script>
            const randomInt = (max) => {
                return parseInt(Math.random() * (max - 70) + 70);
            }

            const randomColor = () => '#'+(Math.random()*0xFFFFFF<<0).toString(16);

            const generateBackground = (seed) => {
                var pattern = Trianglify({
                    height: document.body.clientHeight,
                    width: document.body.clientWidth,
                    cell_size: randomInt(150),
                    variance: '0.' + randomInt(100),
                    x_colors: 'random',
                    y_colors: 'random',
                    seed: seed
                });

                [].slice.call(document.getElementById('background').getElementsByTagName('svg')).forEach((svg) => svg.remove());

                document.getElementById('background').appendChild(pattern.svg());
            }

            // More info https://github.com/hakimel/reveal.js#configuration
            Reveal.initialize({
                history: true,
                progress: false,
                // controls: false,

                // More info https://github.com/hakimel/reveal.js#dependencies
                dependencies: [
                    { src: 'plugin/markdown/marked.js' },
                    { src: 'plugin/markdown/markdown.js' },
                    { src: 'plugin/notes/notes.js', async: true },
                    { src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }
                ]
            });

            Reveal.addEventListener( 'slidechanged', function( event ) {
                generateBackground(document.querySelector('.present h2').textContent);
            } );
            Reveal.addEventListener( 'ready', function( event ) {
                generateBackground(document.querySelector('.present h2').textContent);
            } );

        </script>
    </body>
</html>
{'fraction_non_alphanumeric': 0.13420348058902276, 'fraction_numerical': 0.013163766175814369, 'mean_word_length': 1.2593245967741935, 'pattern_counts': {'":': 0, '<': 127, '<?xml version=': 0, '>': 131, 'https://': 6, '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': '7163759', 'n_tokens_mistral': 2536, 'n_tokens_neox': 2291, 'n_words': 452}