<commit_before>chrome.runtime.onMessage.addListener(function(req) {
  switch (req.action) {
    case 'COMMIT_TIME':
      document.querySelector('textarea[name=comment\\[body\\]]').value = 'Time spent: ' + req.time;
      document.querySelector('#partial-new-comment-form-actions button').click()
      break;
    case 'SHOW_REPORTS':
      $('.report').remove();
      $('body').append(req.content);
      $('#reports').modal('show');
      var milestoneTotalHours = milestoneTotalMinutes = 0;
      $('select[name=milestone]').change(function() {
        var milestoneHref = $(this).val();
        $.get(
          'https://github.com' + milestoneHref,
          function(html) {
            html = $(html);
            $('.time-items').html('');
            $('.milestoneTotal').text('');
            milestoneTotalHours = milestoneTotalMinutes = 0;
            $('a.issue-title-link', html).each(function() {
              var issueTitle = $(this).text();
              var issueHref = $(this).attr('href');
              $.get(
                'https://github.com' + issueHref,
                function(html) {
                  var regex = /<p>Time spent: \d+:\d+<\/p>/g
                  var matches = html.match(regex);
                  if (matches) {
                    var totalHours = totalMinutes = 0;
                    $.each(matches, function(index, value) {<commit_msg>fixed report<commit_after>chrome.runtime.onMessage.addListener(function(req) {
  switch (req.action) {
    case 'COMMIT_TIME':
      document.querySelector('textarea[name=comment\\[body\\]]').value = 'Time spent: ' + req.time;
      document.querySelector('#partial-new-comment-form-actions button').click()
      break;
    case 'SHOW_REPORTS':
      $('.report').remove();
      $('body').append(req.content);
      $('#reports').modal('show');
      var milestoneTotalHours = milestoneTotalMinutes = 0;
      $('select[name=milestone]').change(function() {
        var milestoneHref = $(this).val();
        var parts = milestoneHref.split('/');
        var milestoneLabel = parts[parts.length - 1];
        $.get(
          'https://github.com/' + parts[1] + '/' + parts[2] + '/issues?q=milestone%3A' + encodeURIComponent(milestoneLabel),
          function(html) {
            html = $(html);
            $('.time-items').html('');
            $('.milestoneTotal').text('');
            milestoneTotalHours = milestoneTotalMinutes = 0;
            $('a.issue-title-link', html).each(function() {
              var issueTitle = $(this).text();
              var issueHref = $(this).attr('href');
              $.get(
                'https://github.com' + issueHref,
                function(html) {
                  var regex = /<p>Time spent: \d+:\d+<\/p>/g
                  var matches = html.match(regex);
                  if (matches) {
                    var totalHours = totalMinutes = 0;
                    $.each(matches, function(index, value) {
{'fraction_non_alphanumeric': 0.17344173441734417, 'fraction_numerical': 0.0033875338753387536, 'mean_word_length': 2.0537745604963806, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, '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': '7406370', 'n_tokens_mistral': 863, 'n_tokens_neox': 836, 'n_words': 141}