<commit_before>
!(function()
{
  var goo = {};
  goo.searchGoo = function(query)
  {
    d3.json('/api/goo/search?' + Object.keys(query).reduce(function(a,k){a.push(k+'='+encodeURIComponent(query[k]));return a},[]).join('&'), function(err,dat)
    {
      if (err != null)
      {
        return;
      }
      d3.select('div#goo ul').selectAll('li').remove();
      var lis = d3.select('div#goo ul')
        .selectAll('li')
        .data(dat.items)
        .enter().append('li')
        .on('click', function(d)
        {
          d3.event.preventDefault();
          d3.select(this)
            .select('span')
            .append('a')
            .text(function(d){return d.body;})
            .attr('href', function(d){return 'http://oshiete.goo.ne.jp/qa/' + d.question_id + '.html';}); 
        });
      lis.append('div')
        .style('background-color', '‪#‎91c3c9‬')
        .append('a').text(function(d){return d.title;}).attr('href','#');
      lis.append('span');
    });
  }
  if (typeof define === "function" && define.amd) define(goo); else if (typeof module === "object" && module.exports) module.exports = goo;
  this.goo = goo;
}());<commit_msg>debugging<commit_after>
!(function()
{
  var goo = {};
  goo.searchGoo = function(query)
  {
    d3.json('/api/goo/search?' + Object.keys(query).reduce(function(a,k){a.push(k+'='+encodeURIComponent(query[k]));return a},[]).join('&'), function(err,dat)
    {
      if (err != null)
      {
        return;
      }
      d3.select('div#goo ul').selectAll('li').remove();
      var lis = d3.select('div#goo ul')
        .selectAll('li')
        .data(dat.items)
        .enter().append('li')
        .on('click', function(d)
        {
          d3.event.preventDefault();
          d3.select(this)
            .select('span')
            .append('a')
            .text(function(d){return d.body;})
            .attr('href', function(d){return 'http://oshiete.goo.ne.jp/qa/' + d.question_id + '.html';})
            .attr('target','_blank'); 
        });
      lis.append('div')
        .style('background-color', '‪#‎91c3c9‬')
        .append('a').text(function(d){return d.title;}).attr('href','#');
      lis.append('span');
    });
  }
  if (typeof define === "function" && define.amd) define(goo); else if (typeof module === "object" && module.exports) module.exports = goo;
  this.goo = goo;
}());
{'fraction_non_alphanumeric': 0.22494714587737843, 'fraction_numerical': 0.007610993657505285, 'mean_word_length': 2.4439592430858808, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '182185', 'n_tokens_mistral': 832, 'n_tokens_neox': 833, 'n_words': 117}