<commit_before>/**
 * DeveloperCapes by Jadar
 * License: MIT License (https://raw.github.com/jadar/DeveloperCapes/master/LICENSE)
 * version 2.1
 */
package com.jadarstudios.developercapes;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

import argo.jdom.JdomParser;

public class DevCapesVersionChecker implements Runnable {

	private static final String versionFileURL = "http://raw.github.com/Jadar/DeveloperCapesAPI/master/version";

	private byte result = 0;
	
	private static final byte ERROR = 0;
	private static final byte OLD = 1;
	private static final byte CURRENT = 2;

	@Override
	public void run() {

		try {

			URL url = new URL(versionFileURL);
			BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
			double version = Double.valueOf(new JdomParser().parse(reader).getStringValue("version"));
			
			if(version > DevCapes.version)
				result = OLD;
			else if(version == DevCapes.version)
				result = CURRENT;
			else
				result = ERROR;
		}
		catch(Exception e) {
			e.printStackTrace();
		}
	}

	public byte getResult() {
		return result;
	}
}
<commit_msg>Update DevCapesVersionChecker.java<commit_after>/**
 * DeveloperCapes by Jadar
 * License: MIT License (https://raw.github.com/jadar/DeveloperCapes/master/LICENSE)
 * version 2.1
 */
package com.jadarstudios.developercapes;

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.net.URL;

import argo.jdom.JdomParser;

public class DevCapesVersionChecker implements Runnable {

	private static final String versionFileURL = "https://raw.github.com/jadar/DeveloperCapes/master/version.json";

	private byte result = 0;
	
	private static final byte ERROR = 0;
	private static final byte OLD = 1;
	private static final byte CURRENT = 2;

	@Override
	public void run() {

		try {

			URL url = new URL(versionFileURL);
			BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
			double version = Double.valueOf(new JdomParser().parse(reader).getStringValue("version"));
			
			if(version > DevCapes.version)
				result = OLD;
			else if(version == DevCapes.version)
				result = CURRENT;
			else
				result = ERROR;
		}
		catch(Exception e) {
			e.printStackTrace();
		}
	}

	public byte getResult() {
		return result;
	}
}

{'fraction_non_alphanumeric': 0.10843373493975904, 'fraction_numerical': 0.0051635111876075735, 'mean_word_length': 4.098684210526316, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2142262', 'n_tokens_mistral': 825, 'n_tokens_neox': 723, 'n_words': 183}