<commit_before>package com.kirinpatel.util;

import jdk.nashorn.api.scripting.URLReader;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.Scanner;

/**
 * VersionChecker will determine if the current version of sync is outdated or not.
 */
public class VersionChecker {

    private final static int VERSION = 1;
    private final static int BUILD = 4;
    private final static int REVISION = 1;

    /**
     * Provides if sync is updated.
     *
     * @return Returns if sync is updated
     */
    public static boolean isUpdated() {
        try {
            Scanner s = new Scanner(new URLReader(new URL("https://github.com/ajchili/sync/releases")));
            String version = "";
            while (s.hasNext()) {
                String line = s.nextLine();
                if (line.contains("tag-reference")) {
                    s.nextLine();
                    version = s.nextLine();
                    version = version.substring(version.indexOf("tree/") + 5, version.indexOf("tree/") + 10);<commit_msg>Updated version<commit_after>package com.kirinpatel.util;

import jdk.nashorn.api.scripting.URLReader;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.Scanner;

/**
 * VersionChecker will determine if the current version of sync is outdated or not.
 */
public class VersionChecker {

    private final static int VERSION = 1;
    private final static int BUILD = 5;
    private final static int REVISION = 0;

    /**
     * Provides if sync is updated.
     *
     * @return Returns if sync is updated
     */
    public static boolean isUpdated() {
        try {
            Scanner s = new Scanner(new URLReader(new URL("https://github.com/ajchili/sync/releases")));
            String version = "";
            while (s.hasNext()) {
                String line = s.nextLine();
                if (line.contains("tag-reference")) {
                    s.nextLine();
                    version = s.nextLine();
                    version = version.substring(version.indexOf("tree/") + 5, version.indexOf("tree/") + 10);
{'fraction_non_alphanumeric': 0.11227402473834443, 'fraction_numerical': 0.005708848715509039, 'mean_word_length': 2.2353846153846155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '4932598', 'n_tokens_mistral': 600, 'n_tokens_neox': 577, 'n_words': 166}