<commit_before><!DOCTYPE html>
<!-- This demo mirrors, as far as possible, the archive.org BookReader configuration and functionality
   please keep up to date as BookReader evolves -->
<html>
<head>
  <title>bookreader demo internetArchive</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">

    <!-- JS dependencies -->
    <script src="../BookReader/jquery-1.10.1.js"></script>
    <script src="../BookReader/jquery-ui-1.12.0.min.js"></script>
    <script src="../BookReader/jquery.ui.touch-punch.min.js"></script>
    <script src="../BookReader/jquery.browser.min.js"></script>
    <script src="../BookReader/dragscrollable-br.js"></script>
    <script src="../BookReader/jquery.colorbox-min.js"></script>
    <script src="../BookReader/soundmanager/script/soundmanager2-jsmin.js"></script>


    <!-- mmenu for mobile nav -->
    <script src="../BookReader/mmenu/dist/js/jquery.mmenu.min.js"></script>
    <script src="../BookReader/mmenu/dist/addons/navbars/jquery.mmenu.navbars.min.js" ></script>
    <link rel="stylesheet" href="../BookReader/mmenu/dist/css/jquery.mmenu.css" />
    <link rel="stylesheet" href="../BookReader/mmenu/dist/addons/navbars/jquery.mmenu.navbars.css" />

    <!-- Bookreader -->
    <script src="../BookReader/BookReader.js"></script>
    <link rel="stylesheet" href="../BookReader/BookReader.css"/>

    <!-- plugins needed for archive.org, in same order as archive.org -->
    <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
    <script src="../BookReader/plugins/plugin.search.js"></script>
    <script src="../BookReader/plugins/plugin.chapters.js"></script>
    <script src="../BookReader/plugins/plugin.tts.js"></script>
    <script src="../BookReader/plugins/plugin.url.js"></script>
    <script src="../BookReader/plugins/plugin.autoplay.js"></script>
    <script src="../BookReader/plugins/plugin.resume.js"></script>
    <script src="../BookReader/plugins/plugin.archive_analytics.js"></script>
    <script src="../BookReader/plugins/plugin.text_selection.js"></script>

    
    <link rel="stylesheet" href="BookReaderDemo.css"/>
</head>
<body>

<div id="BookReader">
    Internet Archive BookReader Demo<br/>
    <noscript>
    <p>
        The BookReader requires JavaScript to be enabled. Please check that your browser supports JavaScript and that it is enabled in the browser settings.
    </p>
    </noscript>
</div>

<script id="pageUrl" type="text/javascript"></script>

<script>
  var ocaid = location.href.match(/ocaid=([^&#]+)/i)[1];

  // Override options coming from IA
  BookReader.optionOverrides.imagesBaseURL = '/BookReader/images/';

  var script_url = 'https://archive.org/bookreader/BookReaderJSLocate.php?subPrefix=&id=' + ocaid;
  document.getElementById('pageUrl').src = script_url;
</script>

</body>
</html><commit_msg>Circumvent bug in BR JSIA code<commit_after><!DOCTYPE html>
<!-- This demo mirrors, as far as possible, the archive.org BookReader configuration and functionality
   please keep up to date as BookReader evolves -->
<html>
<head>
  <title>bookreader demo internetArchive</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="apple-mobile-web-app-capable" content="yes">

    <!-- JS dependencies -->
    <script src="../BookReader/jquery-1.10.1.js"></script>
    <script src="../BookReader/jquery-ui-1.12.0.min.js"></script>
    <script src="../BookReader/jquery.ui.touch-punch.min.js"></script>
    <script src="../BookReader/jquery.browser.min.js"></script>
    <script src="../BookReader/dragscrollable-br.js"></script>
    <script src="../BookReader/jquery.colorbox-min.js"></script>
    <script src="../BookReader/soundmanager/script/soundmanager2-jsmin.js"></script>


    <!-- mmenu for mobile nav -->
    <script src="../BookReader/mmenu/dist/js/jquery.mmenu.min.js"></script>
    <script src="../BookReader/mmenu/dist/addons/navbars/jquery.mmenu.navbars.min.js" ></script>
    <link rel="stylesheet" href="../BookReader/mmenu/dist/css/jquery.mmenu.css" />
    <link rel="stylesheet" href="../BookReader/mmenu/dist/addons/navbars/jquery.mmenu.navbars.css" />

    <!-- Bookreader -->
    <script src="../BookReader/BookReader.js"></script>
    <link rel="stylesheet" href="../BookReader/BookReader.css"/>

    <!-- plugins needed for archive.org, in same order as archive.org -->
    <script src="../BookReader/plugins/plugin.mobile_nav.js"></script>
    <script src="../BookReader/plugins/plugin.search.js"></script>
    <script src="../BookReader/plugins/plugin.chapters.js"></script>
    <script src="../BookReader/plugins/plugin.tts.js"></script>
    <script src="../BookReader/plugins/plugin.url.js"></script>
    <script src="../BookReader/plugins/plugin.autoplay.js"></script>
    <script src="../BookReader/plugins/plugin.resume.js"></script>
    <script src="../BookReader/plugins/plugin.archive_analytics.js"></script>
    <script src="../BookReader/plugins/plugin.text_selection.js"></script>

    
    <link rel="stylesheet" href="BookReaderDemo.css"/>
</head>
<body>

<div id="BookReader">
    Internet Archive BookReader Demo<br/>
    <noscript>
    <p>
        The BookReader requires JavaScript to be enabled. Please check that your browser supports JavaScript and that it is enabled in the browser settings.
    </p>
    </noscript>
</div>

<script id="pageUrl" type="text/javascript"></script>

<script>
  var ocaid = location.href.match(/ocaid=([^&#]+)/i)[1];

  // Override options coming from IA
  BookReader.optionOverrides.imagesBaseURL = '/BookReader/images/';

  // Temp; Circumvent bug in BookReaderJSIA code
  window.Sentry = null;

  var script_url = 'https://archive.org/bookreader/BookReaderJSLocate.php?subPrefix=&id=' + ocaid;
  document.getElementById('pageUrl').src = script_url;
</script>

</body>
</html>
{'fraction_non_alphanumeric': 0.18656841400100485, 'fraction_numerical': 0.004689331770222743, 'mean_word_length': 3.7472178060413355, 'pattern_counts': {'":': 0, '<': 141, '<?xml version=': 0, '>': 141, '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': '5886791', 'n_tokens_mistral': 1874, 'n_tokens_neox': 1833, 'n_words': 338}