<commit_before>package org.lichess.compression.game;

class Move {
    public static final int NORMAL = 0;
    public static final int EN_PASSANT = 1;
    public static final int CASTLING = 2;

    public int type;
    public Role role;
    public int from;
    public boolean capture;
    public int to;
    public Role promotion;

    public Move(Role role, int from, boolean capture, int to) {
        assert role != null;
        assert from != to;

        this.type = NORMAL;
        this.role = role;
        this.from = from;
        this.capture = capture;
        this.to = to;
    }

    public Move(Role role, int from, boolean capture, int to, Role promotion) {
        this(role, from, capture, to);
        this.promotion = promotion;
    }

    public static Move castle(int king, int rook) {
        Move move = new Move(Role.KING, king, false, rook);
        move.type = CASTLING;
        return move;
    }
<commit_msg>remove some runtime assertions<commit_after>package org.lichess.compression.game;

class Move {
    public static final int NORMAL = 0;
    public static final int EN_PASSANT = 1;
    public static final int CASTLING = 2;

    public int type;
    public Role role;
    public int from;
    public boolean capture;
    public int to;
    public Role promotion;

    public Move(Role role, int from, boolean capture, int to) {
        this.type = NORMAL;
        this.role = role;
        this.from = from;
        this.capture = capture;
        this.to = to;
    }

    public Move(Role role, int from, boolean capture, int to, Role promotion) {
        this(role, from, capture, to);
        this.promotion = promotion;
    }

    public static Move castle(int king, int rook) {
        Move move = new Move(Role.KING, king, false, rook);
        move.type = CASTLING;
        return move;
    }

{'fraction_non_alphanumeric': 0.0860566448801743, 'fraction_numerical': 0.0032679738562091504, 'mean_word_length': 2.2513274336283184, 'pattern_counts': {'":': 0, '<': 3, '<?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': '251084', 'n_tokens_mistral': 552, 'n_tokens_neox': 533, 'n_words': 197}