<commit_before>package view;

import javafx.event.EventHandler;
import javafx.scene.CacheHint;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCodeCombination;
import javafx.scene.input.KeyCombination;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.BorderPane;
import model.BoxReference;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import static view.ViewUtil.addFocusListener;
import static view.ViewUtil.checkShortcut;


public class RowPane extends BorderPane {
    final static KeyCombination shiftEnter = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.SHIFT_DOWN);
    final static KeyCombination ctrlLeft = new KeyCodeCombination(KeyCode.LEFT, KeyCombination.CONTROL_DOWN);
    final static KeyCombination ctrlRight = new KeyCodeCombination(KeyCode.RIGHT, KeyCombination.CONTROL_DOWN);
    final static KeyCombination ctrlB = new KeyCodeCombination(KeyCode.B, KeyCombination.CONTROL_DOWN);
    final static KeyCombination ctrlD = new KeyCodeCombination(KeyCode.D, KeyCombination.CONTROL_DOWN);
    static Pattern p = Pattern.compile("^([1-9]\\d*-?([1-9]\\d*)?)?$");

    private static final HashMap<String, List<Boolean>> ruleBox;
    static {
        List<Boolean> ff = Arrays.asList(false,false,true);
        List<Boolean> ft = Arrays.asList(false,true,true);
        List<Boolean> tf = Arrays.asList(true,false,true);
        ruleBox = new HashMap<String, List<Boolean>>();
        ruleBox.put("∨E", ft);
        ruleBox.put("→I", tf);
        ruleBox.put("¬I", tf);
        ruleBox.put("∀I", tf);
        ruleBox.put("∃E", ft);
        ruleBox.put("=I", ft);
        ruleBox.put("MT", tf);
        ruleBox.put("PBC", tf);
        ruleBox.put("¬¬I", ff);
    }
    private static final HashMap<String, Integer> ruleMap;
    static {
        ruleMap = new HashMap<String, Integer>();
        ruleMap.put("∧I", 2);
        ruleMap.put("∧E1", 1);
        ruleMap.put("∧E2", 1);
        ruleMap.put("∨I1", 1);
        ruleMap.put("∨I2", 1);
        ruleMap.put("∨E", 3);
        ruleMap.put("→I", 1);
        ruleMap.put("→E", 2);
        ruleMap.put("⊥E", 1);
        ruleMap.put("¬I", 1);
        ruleMap.put("¬E", 2);
        ruleMap.put("¬¬E", 1);
        ruleMap.put("Premise", 0);
        ruleMap.put("∀I", 1);
        ruleMap.put("∀E", 1);
        ruleMap.put("∃I", 1);
        ruleMap.put("∃E", 2);
        ruleMap.put("=E", 2);
        ruleMap.put("=I", 0);
        ruleMap.put("Ass.", 0);
        ruleMap.put("Fresh", 0);
        ruleMap.put("MT", 2);
        ruleMap.put("LEM", 0);
        ruleMap.put("PBC", 1);
        ruleMap.put("¬¬I", 1);
        ruleMap.put("Copy", 1);<commit_msg>Trimmed map, as default value covers everything<commit_after>package view;

import javafx.event.EventHandler;
import javafx.scene.CacheHint;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.MenuItem;
import javafx.scene.control.TextField;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyCodeCombination;
import javafx.scene.input.KeyCombination;
import javafx.scene.input.KeyEvent;
import javafx.scene.layout.BorderPane;
import model.BoxReference;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

import static view.ViewUtil.addFocusListener;
import static view.ViewUtil.checkShortcut;


public class RowPane extends BorderPane {
    final static KeyCombination shiftEnter = new KeyCodeCombination(KeyCode.ENTER, KeyCombination.SHIFT_DOWN);
    final static KeyCombination ctrlLeft = new KeyCodeCombination(KeyCode.LEFT, KeyCombination.CONTROL_DOWN);
    final static KeyCombination ctrlRight = new KeyCodeCombination(KeyCode.RIGHT, KeyCombination.CONTROL_DOWN);
    final static KeyCombination ctrlB = new KeyCodeCombination(KeyCode.B, KeyCombination.CONTROL_DOWN);
    final static KeyCombination ctrlD = new KeyCodeCombination(KeyCode.D, KeyCombination.CONTROL_DOWN);
    static Pattern p = Pattern.compile("^([1-9]\\d*-?([1-9]\\d*)?)?$");

    private static final HashMap<String, List<Boolean>> ruleBox;
    static {
        List<Boolean> ff = Arrays.asList(false,false,true);
        List<Boolean> ft = Arrays.asList(false,true,true);
        List<Boolean> tf = Arrays.asList(true,false,true);
        ruleBox = new HashMap<String, List<Boolean>>();
        ruleBox.put("∨E", ft);
        ruleBox.put("→I", tf);
        ruleBox.put("¬I", tf);
        ruleBox.put("∀I", tf);
        ruleBox.put("∃E", ft);
        ruleBox.put("=I", ft);
        ruleBox.put("MT", tf);
        ruleBox.put("PBC", tf);
    }
    private static final HashMap<String, Integer> ruleMap;
    static {
        ruleMap = new HashMap<String, Integer>();
        ruleMap.put("∧I", 2);
        ruleMap.put("∧E1", 1);
        ruleMap.put("∧E2", 1);
        ruleMap.put("∨I1", 1);
        ruleMap.put("∨I2", 1);
        ruleMap.put("∨E", 3);
        ruleMap.put("→I", 1);
        ruleMap.put("→E", 2);
        ruleMap.put("⊥E", 1);
        ruleMap.put("¬I", 1);
        ruleMap.put("¬E", 2);
        ruleMap.put("¬¬E", 1);
        ruleMap.put("Premise", 0);
        ruleMap.put("∀I", 1);
        ruleMap.put("∀E", 1);
        ruleMap.put("∃I", 1);
        ruleMap.put("∃E", 2);
        ruleMap.put("=E", 2);
        ruleMap.put("=I", 0);
        ruleMap.put("Ass.", 0);
        ruleMap.put("Fresh", 0);
        ruleMap.put("MT", 2);
        ruleMap.put("LEM", 0);
        ruleMap.put("PBC", 1);
        ruleMap.put("¬¬I", 1);
        ruleMap.put("Copy", 1);
{'fraction_non_alphanumeric': 0.1600831600831601, 'fraction_numerical': 0.01178101178101178, 'mean_word_length': 3.289004457652303, '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': '3671926', 'n_tokens_mistral': 2018, 'n_tokens_neox': 1927, 'n_words': 377}