<commit_before>package com.github.aldurd392.bigdatacontest.datatypes;

import java.util.Comparator;
import java.util.Map;

import org.apache.hadoop.io.IntWritable;

public class IntegerValueComparator implements Comparator<IntWritable> {

    Map<IntWritable, Integer> base;

    public IntegerValueComparator(Map<IntWritable, Integer> base) {
        this.base = base;
    }

    @Override
    public int compare(IntWritable o1, IntWritable o2) {
        if (base.get(o1) >= base.get(o2)) {
            return 1;
        } else {
            return -1;
        } // returning 0 would merge keys
    }

}<commit_msg>make IntegerValueComparator fields private<commit_after>package com.github.aldurd392.bigdatacontest.datatypes;

import org.apache.hadoop.io.IntWritable;

import java.util.Comparator;
import java.util.Map;

public class IntegerValueComparator implements Comparator<IntWritable> {

    private final Map<IntWritable, Integer> base;

    public IntegerValueComparator(Map<IntWritable, Integer> base) {
        this.base = base;
    }

    @Override
    public int compare(IntWritable o1, IntWritable o2) {
        if (base.get(o1) >= base.get(o2)) {
            return 1;
        } else {
            return -1;
        } // returning 0 would merge keys
    }

}
{'fraction_non_alphanumeric': 0.09725490196078432, 'fraction_numerical': 0.01568627450980392, 'mean_word_length': 2.9382716049382718, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3528998', 'n_tokens_mistral': 402, 'n_tokens_neox': 395, 'n_words': 89}