<commit_before>package nl.utwente.group10.haskell.expr;

import nl.utwente.group10.haskell.HaskellObject;

/**
 * Binding for an Lambda object. Names a Haskell lambda.
 */
public class Binding extends HaskellObject {
    /**
     * The name the lambda is bound to.
     */
    private final String name;

    /**
     * The lambda that is bound.
     */
    private final Lambda lambda;

    /**
     * @param name The name to bind the lambda to.
     * @param lambda The lambda to bind.
     */
    public Binding(final String name, final Lambda lambda) {
        this.name = name;
        this.lambda = lambda;
    }

    /**
     * @return The name the lambda is bound to.
     */
    public final String getName() {
        return this.name;
    }

    /**
     * @return The lambda that is bound.
     */
    public final Lambda getLambda() {
        return this.lambda;
    }

    /**
     * @return A string representation of this Binding.
     */
    @Override
    public final String toString() {
        return "Binding{" +
                "name='" + this.name + '\'' +
                ", lambda=" + this.lambda +
                '}';
    }
}<commit_msg>Have Binding track Expressions not Lambdas<commit_after>package nl.utwente.group10.haskell.expr;

import nl.utwente.group10.haskell.HaskellObject;

/**
 * Binding for an Expr object. Names a Haskell expression.
 */
public class Binding extends HaskellObject {
    /**
     * The name the expression is bound to.
     */
    private final String name;

    /**
     * The expression that is bound.
     */
    private final Expr expr;

    /**
     * @param name The name to bind the expression to.
     * @param expr The expression to bind.
     */
    public Binding(final String name, final Expr expr) {
        this.name = name;
        this.expr = expr;
    }

    /**
     * @return The name the expression is bound to.
     */
    public final String getName() {
        return this.name;
    }

    /**
     * @return The expression that is bound.
     */
    public final Expr getExpr() {
        return this.expr;
    }

    /**
     * @return A string representation of this Binding.
     */
    @Override
    public final String toString() {
        return "Binding{" +
                "name='" + this.name + '\'' +
                ", expr=" + this.expr +
                '}';
    }
}
{'fraction_non_alphanumeric': 0.10936837643069097, 'fraction_numerical': 0.003391267486222976, 'mean_word_length': 1.8028503562945368, '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': '1087097', 'n_tokens_mistral': 705, 'n_tokens_neox': 666, 'n_words': 221}