<commit_before>var sparkles = {};

var HttpClient = function() {
    this.get = function(aUrl, aCallback) {
        var anHttpRequest = new XMLHttpRequest();
        anHttpRequest.onreadystatechange = function() {
            if (anHttpRequest.readyState == 4 && anHttpRequest.status == 200)
                aCallback(anHttpRequest.responseText);
        }
        anHttpRequest.open( "GET", aUrl, true );
        anHttpRequest.send( null );
    }
}

// Get sparkles from the server
function getSparkles() {
  sClient = new HttpClient();
  sClient.get('/sparkles', function(response) {
    sparkles = JSON.parse(response);
  });
}

var edges = [];
function getGraphEdges() {
  sClient = new HttpClient();
  sClient.get('/graph', function(response) {
    edges = JSON.parse(response);
  })
}


function graphSparklesOverTime(s) {
  // Graph sparkles <s> over time
}
<commit_msg>Rename edges to graph in JS<commit_after>var sparkles = {};

var HttpClient = function() {
    this.get = function(aUrl, aCallback) {
        var anHttpRequest = new XMLHttpRequest();
        anHttpRequest.onreadystatechange = function() {
            if (anHttpRequest.readyState == 4 && anHttpRequest.status == 200)
                aCallback(anHttpRequest.responseText);
        }
        anHttpRequest.open( "GET", aUrl, true );
        anHttpRequest.send( null );
    }
}

// Get sparkles from the server
function getSparkles() {
  sClient = new HttpClient();
  sClient.get('/sparkles', function(response) {
    sparkles = JSON.parse(response);
  });
}

var graph = [];
function getGraphEdges() {
  sClient = new HttpClient();
  sClient.get('/graph', function(response) {
    graph = JSON.parse(response);
  })
}


function graphSparklesOverTime(s) {
  // Graph sparkles <s> over time
}

{'fraction_non_alphanumeric': 0.1334841628959276, 'fraction_numerical': 0.004524886877828055, 'mean_word_length': 3.0949074074074074, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '4178773', 'n_tokens_mistral': 555, 'n_tokens_neox': 538, 'n_words': 121}