<commit_before>
google.load("visualization", "1", {packages:["corechart"]});
google.setOnLoadCallback(drawChart);
function drawChart() {
  var programsArr = prepareProgramsCount(countPrograms(gon.programs))
  var data = google.visualization.arrayToDataTable(programsArr);

  var options = {
    legend: 'none',
    slices: { 4: {offset: 0.2},
              11: {offset: 0.3},
              14: {offset: 0.4},
              15: {offset: 0.5},
            }
  }

  var chart = new google.visualization.PieChart(document.getElementById('piechart'));

  chart.draw(data, options);
}

function countPrograms(data) {
  var programsCount = {}
  for (i=0; i < data.length; i++) {
    var interest_area = data[i].interest_area;
    programsCount[interest_area] = 0 ;
  }
  for (i=0; i < data.length; i++) {
    var interest_area = data[i].interest_area;
    programsCount[interest_area] +=  1 ;
  }
  return programsCount
}

function prepareProgramsCount(hsh) {
  var programsArr = new Array()
  programsArr.push(['Task', 'Hours per Day'])
  for (var k in hsh) {
    programsArr.push([k, hsh[k]]);
  }
  return programsArr
}


<commit_msg>Comment out text for pie chart<commit_after>
// google.load("visualization", "1", {packages:["corechart"]});
// google.setOnLoadCallback(drawChart);
// function drawChart() {
//   var programsArr = prepareProgramsCount(countPrograms(gon.programs))
//   var data = google.visualization.arrayToDataTable(programsArr);

//   var options = {
//     legend: 'none',
//     slices: { 4: {offset: 0.2},
//               11: {offset: 0.3},
//               14: {offset: 0.4},
//               15: {offset: 0.5},
//             }
//   }

//   var chart = new google.visualization.PieChart(document.getElementById('piechart'));

//   chart.draw(data, options);
// }

// function countPrograms(data) {
//   var programsCount = {}
//   for (i=0; i < data.length; i++) {
//     var interest_area = data[i].interest_area;
//     programsCount[interest_area] = 0 ;
//   }
//   for (i=0; i < data.length; i++) {
//     var interest_area = data[i].interest_area;
//     programsCount[interest_area] +=  1 ;
//   }
//   return programsCount
// }

// function prepareProgramsCount(hsh) {
//   var programsArr = new Array()
//   programsArr.push(['Task', 'Hours per Day'])
//   for (var k in hsh) {
//     programsArr.push([k, hsh[k]]);
//   }
//   return programsArr
// }



{'fraction_non_alphanumeric': 0.1710691823899371, 'fraction_numerical': 0.016771488469601678, 'mean_word_length': 2.823717948717949, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2115519', 'n_tokens_mistral': 831, 'n_tokens_neox': 807, 'n_words': 167}