<commit_before>$(function() {
  var drawScores = $.getJSON("endpoints/scores", function(json) {
    data = make_score_data(json)
    showPie("#score", data);
  });
  var drawAlive = $.getJSON("endpoints/alive", function(json) {
    data = make_alive_data(json)
    showPie("#alive", data);
  });
  var drawSd = $.getJSON("endpoints/service_descriptions", function(json) {
    data = make_sd_data(json)
    showPie("#sd", data);
  });

  setTimeout(function(){ drawScores.abort(); }, 10000);
  setTimeout(function(){ drawAlive.abort(); }, 10000);
  setTimeout(function(){ drawSd.abort(); }, 10000);

  var drawScoreStatistics = $.getJSON("endpoints/score_statistics", function(json) {
    var labels = json['labels'];
    var datasets = json['datasets'];
    data = make_score_statistics_data(labels, datasets)
    var lineChart = showLine("#score_statistics", data, make_scale_options(100));
    addGraphClickEvent("#score_statistics", lineChart, labels, location.pathname);
  });
  var drawAliveStatistics = $.getJSON("endpoints/alive_statistics", function(json) {
    var labels = json['labels'];
    var datasets = json['datasets'];
    data = make_alive_statistics_data(labels, datasets)
    var max = select_max_from_data(datasets[0]['data'])
    var lineChart = showLine("#alive_statistics", data, make_scale_options(max));
    addGraphClickEvent("#alive_statistics" ,lineChart, labels, location.pathname);
  });
  var drawSdStatistics = $.getJSON("endpoints/service_description_statistics", function(json) {
    var labels = json['labels'];
    var datasets = json['datasets'];
    data = make_sd_statistics_data(labels, datasets)
    var max = select_max_from_data(datasets[0]['data'])
    var lineChart = showLine("#sd_statistics", data, make_scale_options(max));
    addGraphClickEvent("#sd_statistics", lineChart, labels, location.pathname);
  });
<commit_msg>use variable<commit_after>$(function() {
  var drawScores = $.getJSON("endpoints/scores", function(json) {
    data = make_score_data(json)
    showPie("#score", data);
  });
  var drawAlive = $.getJSON("endpoints/alive", function(json) {
    data = make_alive_data(json)
    showPie("#alive", data);
  });
  var drawSd = $.getJSON("endpoints/service_descriptions", function(json) {
    data = make_sd_data(json)
    showPie("#sd", data);
  });

  setTimeout(function(){ drawScores.abort(); }, 10000);
  setTimeout(function(){ drawAlive.abort(); }, 10000);
  setTimeout(function(){ drawSd.abort(); }, 10000);

  var drawScoreStatistics = $.getJSON("endpoints/score_statistics", function(json) {
    var labels = json['labels'];
    var datasets = json['datasets'];
    data = make_score_statistics_data(labels, datasets)
    var canvas_id = "#score_statistics";
    var lineChart = showLine(canvas_id, data, make_scale_options(100));
    addGraphClickEvent(canvas_id, lineChart, labels, location.pathname);
  });
  var drawAliveStatistics = $.getJSON("endpoints/alive_statistics", function(json) {
    var labels = json['labels'];
    var datasets = json['datasets'];
    data = make_alive_statistics_data(labels, datasets)
    var max = select_max_from_data(datasets[0]['data'])
    var canvas_id = "#alive_statistics";
    var lineChart = showLine(canvas_id, data, make_scale_options(max));
    addGraphClickEvent(canvas_id, lineChart, labels, location.pathname);
  });
  var drawSdStatistics = $.getJSON("endpoints/service_description_statistics", function(json) {
    var labels = json['labels'];
    var datasets = json['datasets'];
    data = make_sd_statistics_data(labels, datasets)
    var max = select_max_from_data(datasets[0]['data'])
    var canvas_id = "#sd_statistics";
    var lineChart = showLine(canvas_id, data, make_scale_options(max));
    addGraphClickEvent(canvas_id, lineChart, labels, location.pathname);
  });

{'fraction_non_alphanumeric': 0.14998686629892305, 'fraction_numerical': 0.010506960861570791, 'mean_word_length': 5.346666666666667, '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': '3423565', 'n_tokens_mistral': 1233, 'n_tokens_neox': 1200, 'n_words': 222}