<commit_before>var portfolio = portfolio || {};

(function(app){
  var repos = {};

  repos.repoTemplate = Handlebars.compile($('#repo-template').html());

  repos.fetchData = function(){
    $.ajax({
      url:'https://api.github.com/users/desdemonhu/repos',
      method:'GET',
      headers: {
        'Authorization': `token ${gitHubToken}`
      }
    })
    .then(results =>{
      var modifiedResults = results.sort(function(a,b){
        let aDate = new Date(a['updated_at']);
        let bDate = new Date(b['updated_at']);
        return bDate - aDate;
      }).reduce(function(acc, value, index){
        if(index < 5){
          acc.push(value);
        }
        return acc;
      },[]);
      modifiedResults.forEach(repo =>{
        $('#repos').append(repos.repoTemplate(repo));<commit_msg>removed githubToken.js content<commit_after>var portfolio = portfolio || {};

(function(app){
  var repos = {};

  repos.repoTemplate = Handlebars.compile($('#repo-template').html());

  repos.fetchData = function(){
    $.ajax({
      url:'https://api.github.com/users/desdemonhu/repos',
      method:'GET',
      headers: {
        'Authorization': `token ${process.env.GITHUB_TOKEN}`
      }
    })
    .then(results =>{
      var modifiedResults = results.sort(function(a,b){
        let aDate = new Date(a['updated_at']);
        let bDate = new Date(b['updated_at']);
        return bDate - aDate;
      }).reduce(function(acc, value, index){
        if(index < 5){
          acc.push(value);
        }
        return acc;
      },[]);
      modifiedResults.forEach(repo =>{
        $('#repos').append(repos.repoTemplate(repo));
{'fraction_non_alphanumeric': 0.17765567765567766, 'fraction_numerical': 0.001221001221001221, 'mean_word_length': 2.6101321585903086, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 2, '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': '2621875', 'n_tokens_mistral': 509, 'n_tokens_neox': 497, 'n_words': 85}