<commit_before>package algorithms.gameofthrones;

import java.util.Scanner;

public class Solution {

    private static Scanner scanner;

    public static void main(String[] args) {
        scanner = new Scanner(System.in);
        int[] charactersOccurance = new int[30];
        char[] input = scanner.nextLine().toCharArray();

        for (int i = 0; i < input.length; i++) {
            charactersOccurance[input[i] - 'a']++;
        }

        int odd = 0;
        for (int i = 0; i < charactersOccurance.length; i++) {
            if (charactersOccurance[i] % 2 != 0) {
                odd++;
            }
        }

        System.out.println(odd < 2 ? "YES" : "NO");
    }
}<commit_msg>switched with boolean array since i don't really need to know how many characters are used<commit_after>package algorithms.gameofthrones;

import java.util.Scanner;

public class Solution {

    private static Scanner scanner;

    public static void main(String[] args) {
        scanner = new Scanner(System.in);
        boolean[] charOddCount = new boolean[26];
        char[] input = scanner.nextLine().toCharArray();

        for (int i = 0; i < input.length; i++) {
            charOddCount[input[i] - 'a'] = !charOddCount[input[i] - 'a'];
        }

        int oddCountChars = 0;
        
        for (boolean isOdd : charOddCount) {
            if (isOdd){
                oddCountChars++;
            }
        }

        System.out.println(oddCountChars < 2 ? "YES" : "NO");
    }
}
{'fraction_non_alphanumeric': 0.1267605633802817, 'fraction_numerical': 0.008718980549966466, 'mean_word_length': 2.095435684647303, 'pattern_counts': {'":': 0, '<': 8, '<?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': '4148707', 'n_tokens_mistral': 477, 'n_tokens_neox': 441, 'n_words': 120}