<commit_before>package com.heisenbugdev.heisenui.json;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.heisenbugdev.heisenui.logger.Logger;

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;

/**
 * Created by Ash on 15/05/2014.
 */
public class JSONHandler {

    public static void jsonLoader(String fileLocation) throws IOException {
        try(Reader reader = new InputStreamReader(JSONHandler.class.getResourceAsStream(fileLocation), "UTF-8")) {
            Gson gson = new GsonBuilder().create();
            GUIReader gui = gson.fromJson(reader, GUIReader.class);
        } catch(Exception e) {
            Logger.fatal(e);
        }
    }

}<commit_msg>Renamed logger to Logger made JSONHandler Try 1.6 compatible<commit_after>package com.heisenbugdev.heisenui.json;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.heisenbugdev.heisenui.logger.Logger;

import java.io.IOException;
import java.io.InputStreamReader;
import java.io.Reader;

/**
 * Created by Ash on 15/05/2014.
 */
public class JSONHandler {

    public static void jsonLoader(String fileLocation) throws IOException {
        try {
            Reader reader = new InputStreamReader(JSONHandler.class.getResourceAsStream(fileLocation), "UTF-8");
            Gson gson = new GsonBuilder().create();
            GUIReader gui = gson.fromJson(reader, GUIReader.class);
        } catch(Exception e) {
            Logger.fatal(e);
        }
    }

}
{'fraction_non_alphanumeric': 0.10721376571806751, 'fraction_numerical': 0.013236267372600927, 'mean_word_length': 3.3076923076923075, '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': '7319626', 'n_tokens_mistral': 477, 'n_tokens_neox': 460, 'n_words': 99}