<commit_before>package com.paritytrading.parity.book;

/**
 * An order.
 */
public class Order {

    private OrderBook book;

    private Side side;
    private long price;

    private long remainingQuantity;

    Order(OrderBook book, Side side, long price, long size) {
        this.book = book;

        this.side  = side;
        this.price = price;

        this.remainingQuantity = size;
    }

    /**
     * Get the order book.
     *
     * @return the order book
     */
    public OrderBook getOrderBook() {
        return book;
    }

    /**
     * Get the price.
     *<commit_msg>parity-book: Use 'final' modifier in 'Order'<commit_after>package com.paritytrading.parity.book;

/**
 * An order.
 */
public class Order {

    private final OrderBook book;

    private final Side side;
    private final long price;

    private long remainingQuantity;

    Order(OrderBook book, Side side, long price, long size) {
        this.book = book;

        this.side  = side;
        this.price = price;

        this.remainingQuantity = size;
    }

    /**
     * Get the order book.
     *
     * @return the order book
     */
    public OrderBook getOrderBook() {
        return book;
    }

    /**
     * Get the price.
     *
{'fraction_non_alphanumeric': 0.0997586484312148, 'fraction_numerical': 0.0, 'mean_word_length': 1.9339622641509433, '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': '7250712', 'n_tokens_mistral': 386, 'n_tokens_neox': 364, 'n_words': 110}