<commit_before>var subredditList = ["announcements", "art", "askreddit", "askscience", "aww", "blog", "books", "creepy", "dataisbeautiful", "diy",
	"documentaries", "earthporn", "explainlikeimfive", "fitness", "food", "funny", "futurology", "gadgets", "gaming",
	"getmotivated", "gifs", "history", "iama", "internetisbeautiful", "jokes", "lifeprotips", "listentothis",
	"mildlyinteresting", "movies", "music", "news", "nosleep", "nottheonion", "oldschoolcool", "personalfinance",
	"philosophy", "photoshopbattles", "pics", "science", "showerthoughts", "space", "sports", "television", "tifu",
	"todayilearned", "twoxchromosomes", "upliftingnews", "videos", "worldnews", "writingprompts"];

var options = {
    hAxis: {title: 'Score'},
    vAxis: {title: 'Flesch–Kincaid Readability'},
    legend: 'none'
};

var chart;

function createChart(){
    console.log("Creating chart");

    chart = new google.visualization.ScatterChart(document.getElementById("chart"));

    draw();
}

function draw(){
    rawData = [['readability', 'score'],];
    for(var i = 0; i < subredditList.length; i++){
        if(document.getElementById(subredditList[i]).checked){
            console.log("showing " + subredditList[i])
            console.log(subredditList[i]);
            rawData = rawData.concat(allData[i])
        }
    }

    console.log(rawData);

    var data = google.visualization.arrayToDataTable(rawData);

    chart.draw(data, options);
    console.log("Done with chart");
}

function selectDefaults(){
    document.getElementById("announcements").checked = true;
    document.getElementById("funny").checked = true;
}<commit_msg>made stuff load all proper<commit_after>var subredditList = ["announcements", "art", "askreddit", "askscience", "aww", "blog", "books", "creepy", "dataisbeautiful", "diy",
	"documentaries", "earthporn", "explainlikeimfive", "fitness", "food", "funny", "futurology", "gadgets", "gaming",
	"getmotivated", "gifs", "history", "iama", "internetisbeautiful", "jokes", "lifeprotips", "listentothis",
	"mildlyinteresting", "movies", "music", "news", "nosleep", "nottheonion", "oldschoolcool", "personalfinance",
	"philosophy", "photoshopbattles", "pics", "science", "showerthoughts", "space", "sports", "television", "tifu",
	"todayilearned", "twoxchromosomes", "upliftingnews", "videos", "worldnews", "writingprompts"];

var options = {
    hAxis: {title: 'Score'},
    vAxis: {title: 'Flesch–Kincaid Readability'},
    legend: 'none'
};

var chart;

function createChart(){
    console.log("Creating chart");

    chart = new google.visualization.ScatterChart(document.getElementById("chart"));

    draw();
}

function draw(){
    rawData = [['readability', 'score'],];
    for(var i = 0; i < subredditList.length; i++){
        if(document.getElementById(subredditList[i]).checked){
            console.log("showing " + subredditList[i])
            console.log(subredditList[i]);
            rawData = rawData.concat(allData[i])
        }
    }
    
    if(rawData.length == 1){
        rawData = rawData.concat([0,0])
    }

    console.log(rawData);

    var data = google.visualization.arrayToDataTable(rawData);

    chart.draw(data, options);
    console.log("Done with chart");
}

function selectDefaults(){
    document.getElementById("announcements").checked = true;
    document.getElementById("funny").checked = true;
}
{'fraction_non_alphanumeric': 0.18327878607557274, 'fraction_numerical': 0.001487652484379649, 'mean_word_length': 4.867364746945899, 'pattern_counts': {'":': 0, '<': 5, '<?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': '3178724', 'n_tokens_mistral': 1154, 'n_tokens_neox': 1109, 'n_words': 218}