<commit_before>
import java.util.EnumMap;
import java.util.Map;

public class JudgeFactory {

    static Judge create() {
        return new Judge() {
            Map<Hand, Map<Hand, Result>> judgeMap;

            {
                judgeMap = new EnumMap<>(Hand.class);

                Map<Hand, Result> rockMap = new EnumMap<>(Hand.class);
                rockMap.put(Hand.PAPER, Result.LOSE);
                rockMap.put(Hand.SCISSORS, Result.WIN);
                rockMap.put(Hand.ROCK, Result.DRAW);
                judgeMap.put(Hand.ROCK, rockMap);

                Map<Hand, Result> paperMap = new EnumMap<>(Hand.class);
                paperMap.put(Hand.SCISSORS, Result.LOSE);
                paperMap.put(Hand.ROCK, Result.WIN);
                paperMap.put(Hand.PAPER, Result.DRAW);
                judgeMap.put(Hand.PAPER, paperMap);

                Map<Hand, Result> scissorsMap = new EnumMap<>(Hand.class);
                scissorsMap.put(Hand.ROCK, Result.LOSE);
                scissorsMap.put(Hand.PAPER, Result.WIN);
                scissorsMap.put(Hand.SCISSORS, Result.DRAW);
            }
        
            @Override
            public Result judge(Hand one, Hand other) {
                return judgeMap.get(one).get(other);<commit_msg>fixed judge map creation<commit_after>
import java.util.EnumMap;
import java.util.Map;

public class JudgeFactory {

    static Judge create() {
        return new Judge() {
            Map<Hand, Map<Hand, Result>> judgeMap;

            {
                judgeMap = new EnumMap<>(Hand.class);

                Map<Hand, Result> rockMap = new EnumMap<>(Hand.class);
                rockMap.put(Hand.PAPER, Result.LOSE);
                rockMap.put(Hand.SCISSORS, Result.WIN);
                rockMap.put(Hand.ROCK, Result.DRAW);
                judgeMap.put(Hand.ROCK, rockMap);

                Map<Hand, Result> paperMap = new EnumMap<>(Hand.class);
                paperMap.put(Hand.SCISSORS, Result.LOSE);
                paperMap.put(Hand.ROCK, Result.WIN);
                paperMap.put(Hand.PAPER, Result.DRAW);
                judgeMap.put(Hand.PAPER, paperMap);

                Map<Hand, Result> scissorsMap = new EnumMap<>(Hand.class);
                scissorsMap.put(Hand.ROCK, Result.LOSE);
                scissorsMap.put(Hand.PAPER, Result.WIN);
                scissorsMap.put(Hand.SCISSORS, Result.DRAW);
                judgeMap.put(Hand.SCISSORS, scissorsMap);
            }
        
            @Override
            public Result judge(Hand one, Hand other) {
                return judgeMap.get(one).get(other);
{'fraction_non_alphanumeric': 0.11714836223506744, 'fraction_numerical': 0.0, 'mean_word_length': 1.75, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, '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': '5410031', 'n_tokens_mistral': 802, 'n_tokens_neox': 750, 'n_words': 138}