<commit_before><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>TextRange Demo</title>
    <link href="demo.css" rel="stylesheet" type="text/css">
    <style type="text/css">
        *.searchResult {
            font-weight: bold;
            background-color: yellow;
        }

        *.redItalic {
            font-style: italic;
            color: red;
        }

        *.demo {
            border: solid darkblue 1px;
            background-color: #f5f5f5;
            padding: 10px;
        }

        *.buttonSpan {
            border: solid #333 1px;
            background-color: #f5f5f5;
            padding: 2px;
            cursor: default;
            font-size: 165%;
            font-weight: bold;
        }
    </style>
    <script type="text/javascript" src="../lib/log4javascript.js"></script>
<!--
    <script type="text/javascript" src="http://rangy.googlecode.com/svn/trunk/dev/rangy-core.js"></script>
    <script type="text/javascript" src="http://rangy.googlecode.com/svn/trunk/dev/rangy-textrange.js"></script>
    <script type="text/javascript" src="http://rangy.googlecode.com/svn/trunk/dev/rangy-cssclassapplier.js"></script>
-->

        <script type="text/javascript" src="../src/js/core/core.js"></script>
        <script type="text/javascript" src="../src/js/core/dom.js"></script>
        <script type="text/javascript" src="../src/js/core/domrange.js"></script>
        <script type="text/javascript" src="../src/js/core/wrappedrange.js"></script>
        <script type="text/javascript" src="../src/js/core/wrappedselection.js"></script>
        <script type="text/javascript" src="../src/js/modules/rangy-textrange2.js"></script>
        <script type="text/javascript" src="../src/js/modules/rangy-cssclassapplier.js"></script>
    <script type="text/javascript">
        function gEBI(id) {
            return document.getElementById(id);
        }

        var searchResultApplier;

        function toggleItalicYellowBg() {
            searchResultApplier.toggleSelection();
        }

        function initFind() {
            // Enable buttons
            var cssClassApplierModule = rangy.modules.CssClassApplier;
            if (rangy.supported && cssClassApplierModule && cssClassApplierModule.supported) {
                searchResultApplier = rangy.createCssClassApplier("searchResult");
<commit_msg>Restored  TextRange demo<commit_after><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>TextRange Demo</title>
    <link href="demo.css" rel="stylesheet" type="text/css">
    <style type="text/css">
        *.searchResult {
            font-weight: bold;
            background-color: yellow;
        }

        *.redItalic {
            font-style: italic;
            color: red;
        }

        *.demo {
            border: solid darkblue 1px;
            background-color: #f5f5f5;
            padding: 10px;
        }

        *.buttonSpan {
            border: solid #333 1px;
            background-color: #f5f5f5;
            padding: 2px;
            cursor: default;
            font-size: 165%;
            font-weight: bold;
        }
    </style>
    <script type="text/javascript" src="http://rangy.googlecode.com/svn/trunk/dev/rangy-core.js"></script>
    <script type="text/javascript" src="http://rangy.googlecode.com/svn/trunk/dev/rangy-textrange.js"></script>
    <script type="text/javascript" src="http://rangy.googlecode.com/svn/trunk/dev/rangy-cssclassapplier.js"></script>

<!--
        <script type="text/javascript" src="../lib/log4javascript.js"></script>
        <script type="text/javascript" src="../src/js/core/core.js"></script>
        <script type="text/javascript" src="../src/js/core/dom.js"></script>
        <script type="text/javascript" src="../src/js/core/domrange.js"></script>
        <script type="text/javascript" src="../src/js/core/wrappedrange.js"></script>
        <script type="text/javascript" src="../src/js/core/wrappedselection.js"></script>
        <script type="text/javascript" src="../src/js/modules/rangy-textrange2.js"></script>
        <script type="text/javascript" src="../src/js/modules/rangy-cssclassapplier.js"></script>
-->
    <script type="text/javascript">
        function gEBI(id) {
            return document.getElementById(id);
        }

        var searchResultApplier;

        function toggleItalicYellowBg() {
            searchResultApplier.toggleSelection();
        }

        function initFind() {
            // Enable buttons
            var cssClassApplierModule = rangy.modules.CssClassApplier;
            if (rangy.supported && cssClassApplierModule && cssClassApplierModule.supported) {
                searchResultApplier = rangy.createCssClassApplier("searchResult");

{'fraction_non_alphanumeric': 0.15975232198142414, 'fraction_numerical': 0.010319917440660475, 'mean_word_length': 2.3146374829001366, 'pattern_counts': {'":': 0, '<': 67, '<?xml version=': 0, '>': 67, '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': '7207577', 'n_tokens_mistral': 1540, 'n_tokens_neox': 1456, 'n_words': 220}