<commit_before><!DOCTYPE html>
<!-- credit: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie10 lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie10 lt-ie9" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="lt-ie10" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="" lang="en"> <!--<![endif]-->
<head>
  <!-- Of course one could use modernizr instead -->
  <script>document.documentElement.className += ' js';</script>

  <!-- Set Site/Page Meta -->
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="keywords" content="">
  <meta name="description" content="">

  <title>Truncate Text Test</title>

  <style>
  </style>


</head>

<body>
  <p><a href="#" title="">Lorem ipsum</a> dolor sit amet, <a href="#" title="">consectetur adipiscing</a> <img src="" width="" height="" alt="" />elit. Duis magna tellus, <a href="#" title="">egestas ut</a> erat sed, aliquam ultricies ante. <a href="#" title="">Integer ac nunc</a> at justo consequat aliquet. <a href="#" title="">Integer vel ullamcorper</a> justo. Aenean faucibus libero ut fermentum varius. Etiam <a href="#" title="">sollicitudin</a> est ut mauris auctor, <a href="#" title="">non tincidunt</a> metus eleifend. <a href="#" title="">Aliquam pulvinar</a> magna a sem imperdiet rhoncus. <a href="#" title="">Ut et enim</a> erat. Suspendisse scelerisque non <a href="#" title="">turpis non</a> sodales. In vulputate, <a href="#" title="">augue quis</a> tincidunt pretium, lacus odio <a href="#" title="">tincidunt tellus</a>, congue vehicula <a href="#" title="">justo ante</a> et purus. <a href="#" title="">Suspendisse porta euismod</a> leo, a vulputate diam hendrerit et. <a href="#" title="">Aliquam erat</a> volutpat. <a href="#" title="">Aenean sit amet</a> venenatis tellus. Donec in massa urna. Suspendisse quis vulputate augue, ac convallis magna.</p>
  <p id="truncate"><a href="#" title="">Lorem ipsum</a> dolor sit amet, <a href="#" title="">consectetur adipiscing</a> <img src="" width="" height="" alt="" />elit. Duis magna tellus, <a href="#" title="">egestas ut</a> erat sed, aliquam ultricies ante. <a href="#" title="">Integer ac nunc</a> at justo consequat aliquet. <a href="#" title="">Integer vel ullamcorper</a> justo. Aenean faucibus libero ut fermentum varius. Etiam <a href="#" title="">sollicitudin</a> est ut mauris auctor, <a href="#" title="">non tincidunt</a> metus eleifend. <a href="#" title="">Aliquam pulvinar</a> magna a sem imperdiet rhoncus. <a href="#" title="">Ut et enim</a> erat. Suspendisse scelerisque non <a href="#" title="">turpis non</a> sodales. In vulputate, <a href="#" title="">augue quis</a> tincidunt pretium, lacus odio <a href="#" title="">tincidunt tellus</a>, congue vehicula <a href="#" title="">justo ante</a> et purus. <a href="#" title="">Suspendisse porta euismod</a> leo, a vulputate diam hendrerit et. <a href="#" title="">Aliquam erat</a> volutpat. <a href="#" title="">Aenean sit amet</a> venenatis tellus. Donec in massa urna. Suspendisse quis vulputate augue, ac convallis magna.</p>

  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.3/jquery.min.js"></script>
  <script src="../jquery-truncate.js"></script>
  <script>
    $('#truncate').truncate();
  </script>

</body>
</html><commit_msg>Add second test to html file. This uses a list and <a> tags to show the plugin's capability for handling and properly closing nested html.<commit_after><!DOCTYPE html>
<!-- credit: http://paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->
<!--[if lt IE 7]> <html class="lt-ie10 lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]>    <html class="lt-ie10 lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]>    <html class="lt-ie10 lt-ie9" lang="en"> <![endif]-->
<!--[if IE 9]>    <html class="lt-ie10" lang="en"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="" lang="en"> <!--<![endif]-->
<head>
  <!-- Of course one could use modernizr instead -->
  <script>document.documentElement.className += ' js';</script>

  <!-- Set Site/Page Meta -->
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta name="keywords" content="">
  <meta name="description" content="">

  <title>Truncate Text Test</title>

  <style>
  </style>


</head>

<body>
  <p><a href="#" title="">Lorem ipsum</a> dolor sit amet, <a href="#" title="">consectetur adipiscing</a> <img src="" width="" height="" alt="" />elit. Duis magna tellus, <a href="#" title="">egestas ut</a> erat sed, aliquam ultricies ante. <a href="#" title="">Integer ac nunc</a> at justo consequat aliquet. <a href="#" title="">Integer vel ullamcorper</a> justo. Aenean faucibus libero ut fermentum varius. Etiam <a href="#" title="">sollicitudin</a> est ut mauris auctor, <a href="#" title="">non tincidunt</a> metus eleifend. <a href="#" title="">Aliquam pulvinar</a> magna a sem imperdiet rhoncus. <a href="#" title="">Ut et enim</a> erat. Suspendisse scelerisque non <a href="#" title="">turpis non</a> sodales. In vulputate, <a href="#" title="">augue quis</a> tincidunt pretium, lacus odio <a href="#" title="">tincidunt tellus</a>, congue vehicula <a href="#" title="">justo ante</a> et purus. <a href="#" title="">Suspendisse porta euismod</a> leo, a vulputate diam hendrerit et. <a href="#" title="">Aliquam erat</a> volutpat. <a href="#" title="">Aenean sit amet</a> venenatis tellus. Donec in massa urna. Suspendisse quis vulputate augue, ac convallis magna.</p>
  <p id="truncate"><a href="#" title="">Lorem ipsum</a> dolor sit amet, <a href="#" title="">consectetur adipiscing</a> <img src="" width="" height="" alt="" />elit. Duis magna tellus, <a href="#" title="">egestas ut</a> erat sed, aliquam ultricies ante. <a href="#" title="">Integer ac nunc</a> at justo consequat aliquet. <a href="#" title="">Integer vel ullamcorper</a> justo. Aenean faucibus libero ut fermentum varius. Etiam <a href="#" title="">sollicitudin</a> est ut mauris auctor, <a href="#" title="">non tincidunt</a> metus eleifend. <a href="#" title="">Aliquam pulvinar</a> magna a sem imperdiet rhoncus. <a href="#" title="">Ut et enim</a> erat. Suspendisse scelerisque non <a href="#" title="">turpis non</a> sodales. In vulputate, <a href="#" title="">augue quis</a> tincidunt pretium, lacus odio <a href="#" title="">tincidunt tellus</a>, congue vehicula <a href="#" title="">justo ante</a> et purus. <a href="#" title="">Suspendisse porta euismod</a> leo, a vulputate diam hendrerit et. <a href="#" title="">Aliquam erat</a> volutpat. <a href="#" title="">Aenean sit amet</a> venenatis tellus. Donec in massa urna. Suspendisse quis vulputate augue, ac convallis magna.</p>

  <hr/>

  <div>
    <p><a href="#" title="">Lorem ipsum</a> dolor sit amet, <a href="#" title="">consectetur adipiscing</a> <img src="" width="" height="" alt="" />elit:</p>
    <ul>
      <li>The First Item</li>
      <li>The Second Item</li>
      <li>The Third Item</li>
      <li>The Fourth Item</li>
      <li>The Fifth Item</li>
      <li>The Sixth Item</li>
      <li>The Seventh Item</li>
      <li>The Eigth Item</li>
      <li>The Ninth Item</li>
      <li>The Tenth Item</li>
    </ul>
  </div>

  <div id="truncate2">
    <p><a href="#" title="">Lorem ipsum</a> dolor sit amet, <a href="#" title="">consectetur adipiscing</a> <img src="" width="" height="" alt="" />elit:</p>
    <ul>
      <li><a href="">The First Item</a></li>
      <li><a href="">The Second Item</a></li>
      <li><a href="">The Third Item</a></li>
      <li><a href="">The Fourth Item</a></li>
      <li><a href="">The Fifth Item</a></li>
      <li><a href="">The Sixth Item</a></li>
      <li><a href="">The Seventh Item</a></li>
      <li><a href="">The Eigth Item</a></li>
      <li><a href="">The Ninth Item</a></li>
      <li><a href="">The Tenth Item</a></li>
    </ul>
  </div>



  <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.3/jquery.min.js"></script>
  <script src="../jquery-truncate.js"></script>
  <script>
    $('#truncate').truncate();
    $('#truncate2').truncate();
  </script>

</body>
</html>
{'fraction_non_alphanumeric': 0.2226369656833233, 'fraction_numerical': 0.007224563515954244, 'mean_word_length': 4.390006489292667, 'pattern_counts': {'":': 0, '<': 311, '<?xml version=': 0, '>': 309, 'https://': 0, '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': '5126426', 'n_tokens_mistral': 3221, 'n_tokens_neox': 3024, 'n_words': 888}