<commit_before>'use strict';

function scrape(html) {
  var arr = []
    , rows
    ;

  if (/Sorry, no records found/.test(html)) {
    return null;
  }

  // there's tons of malformed html, let's level the playing field
  html = html.replace(/[\s\S]+(<TABLE[\s\S]+?TABLE>)[\s\S]+/g, '$1');
  html = html.replace(/<TH[\s\S]+?<TR>/g, '<TR>');
  rows = html.split(/<TR>/ig);
  rows.shift(); // TABLE open + header
  rows.pop(); // TABLE close

  rows.forEach(function (row) {
    var cols = row.split(/<TD>/ig)
      , linkHrefRe = /<A.*?HREF='([^']*)'.*/
      , linkTitleRe = /<A[^>]*>([^<]+)(<\/A>)?/
      , area<commit_msg>allow for missing city name for 605 522 xxxx<commit_after>'use strict';

function scrape(html) {
  var arr = []
    , rows
    ;

  if (/Sorry, no records found/.test(html)) {
    return null;
  }

  // there's tons of malformed html, let's level the playing field
  html = html.replace(/[\s\S]+(<TABLE[\s\S]+?TABLE>)[\s\S]+/g, '$1');
  html = html.replace(/<TH[\s\S]+?<TR>/g, '<TR>');
  rows = html.split(/<TR>/ig);
  rows.shift(); // TABLE open + header
  rows.pop(); // TABLE close

  rows.forEach(function (row) {
    var cols = row.split(/<TD>/ig)
      , linkHrefRe = /<A.*?HREF='([^']*)'.*/
      , linkTitleRe = /<A[^>]*>([^<]*)(<\/A>)?/
      , area
{'fraction_non_alphanumeric': 0.2536964980544747, 'fraction_numerical': 0.0062256809338521405, 'mean_word_length': 2.749271137026239, 'pattern_counts': {'":': 0, '<': 23, '<?xml version=': 0, '>': 19, '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': '1134125', 'n_tokens_mistral': 517, 'n_tokens_neox': 493, 'n_words': 105}