<commit_before>var Irelia = require('irelia');
var irelia = new Irelia({
  secure:true,
  host: 'prod.api.pvp.net',
  path: '/api/lol/',
  key: '',
  debug:true
});

var data = [
  {
    value:75,
    color:"#262626",
    highlight: "#505050",
    lable:""
  },
  {
    value:25,
    color:"#ffffff",
    highlight: "#ffffff",
    lable:""
  }
];

var options = {};

var ctx = document.getElementById("champChart").getContext("2d");
var champChart = new Chart(ctx).Doughnut(data,options);

irelia.getChampions('na', true, function(err, summoner){
  if(err){
    if(err.status.code == 429){
                console.log(err.status.message);
            } else if(err.status.code == 404){
                console.log(err.status.message);
            } else if(err.status.code == 500){
                console.log(err.status.message);
            } else {
                console.log('Unknown error code');
            }
        } else {
            console.log(err); // Non http error
        }
  }else{
    document.getElementById("champs").innerText = ('Free champions: ' + champions.join(', ');
  }
});<commit_msg>js fixes<commit_after>
var data = [
  {
    value:75,
    color:"#262626",
    highlight: "#505050",
    lable:""
  },
  {
    value:25,
    color:"#ffffff",
    highlight: "#ffffff",
    lable:""
  }
];

var options = {};

var ctx = document.getElementById("champChart").getContext("2d");
var champChart = new Chart(ctx).Doughnut(data,options);
{'fraction_non_alphanumeric': 0.17957505140507196, 'fraction_numerical': 0.029472241261137764, 'mean_word_length': 2.5096153846153846, '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': '6555962', 'n_tokens_mistral': 526, 'n_tokens_neox': 493, 'n_words': 88}