<commit_before><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="copyright" content="Copyright © 2013 Adobe Systems Incorporated. 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
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an “AS IS” BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.">
        <title>Snap</title>
        <script src="../../dist/snap.svg-min.js"></script>
        <link rel="stylesheet" href="style.css">
        <script>
        window.onload = function () {

            var logo = Snap.select("#snap-logo"),
                elements = [
                    ["top", [0, 20]], 
                    ["left", [20, 0]], 
                    ["bottom", [0, -20]],
                    ["right", [-20, 0]]
                ],
                i;

            for (i = 0; i < elements.length; i++) {
                var el = elements[i],
                    element = logo.select("#" + el[0]);
                element.attr({
                    opacity: 0,
                    transform: "t" + el[1]
                });
                elements[i] = element;
            }

            i = 0;

            function animateEach() {
                if (!elements[i]) return;
                elements[i].animate({ 
                    transform: "t0,0",
                    opacity: 1
                }, 200, mina.easeout);
                setTimeout(animateEach, 200);
                i++;
            }

            setTimeout(function () {
                logo.attr({
                    display: "inline"
                });
                animateEach();
            }, 500);

        };<commit_msg>made snap logo demo interactive<commit_after><!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta name="copyright" content="Copyright © 2013 Adobe Systems Incorporated. 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
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an “AS IS” BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.">
        <title>Snap</title>
        <script src="../../dist/snap.svg-min.js"></script>
        <link rel="stylesheet" href="style.css">
        <script>
        window.onload = function () {

            var logo = Snap.select("#snap-logo"),
                parts = [
                    ["top", [0, 20]], 
                    ["left", [20, 0]], 
                    ["bottom", [0, -20]],
                    ["right", [-20, 0]]
                ],
                i = 0,
                showTimer = null,
                hideTimer = null;

            for (i = 0; i < parts.length; i++) {
                var el = parts[i],
                element = logo.select("#" + el[0]);
                element.attr({
                    opacity: 0,
                    transform: "t" + el[1]
                });
                parts[i].push(element);
            }

            i = 0;

            function showEach() {
                clearTimeout(hideTimer);
                if (i >= parts.length) return;
                parts[i][2].animate({ 
                    transform: "t0,0",
                    opacity: 1
                }, 200, mina.easeout);
                showTimer = setTimeout(showEach, 200);
                i++;
                if (i >= parts.length) i = parts.length-1;
            }

            function hideEach() {
                clearTimeout(showTimer);
                if (i < 0) return;
                parts[i][2].animate({ 
                    transform: "t" + parts[i][1],
                    opacity: 0
                }, 200, mina.easeout);
                hideTimer = setTimeout(hideEach, 200);
                i--;
                if (i < 0) i = 0;
            }

            setTimeout(function () {
                logo.attr({
                    display: "inline"
                });
                showEach();
            }, 100);

            logo.hover(hideEach, showEach);

        };
{'fraction_non_alphanumeric': 0.11953537486800422, 'fraction_numerical': 0.019218585005279832, 'mean_word_length': 1.330708661417323, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, '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': '6416255', 'n_tokens_mistral': 1311, 'n_tokens_neox': 1138, 'n_words': 372}