<commit_before>package mb.nabl2.spoofax.analysis;

import java.util.List;
import java.util.Optional;

import mb.nabl2.constraints.IConstraint;
import mb.nabl2.solver.ISolution;
import mb.nabl2.terms.ITerm;

public interface IResult {

    boolean partial();

    List<IConstraint> constraints();

    ISolution solution();

    Optional<ITerm> customAnalysis();

    IResult withCustomAnalysis(ITerm term);

}<commit_msg>Add interface method to update solution.<commit_after>package mb.nabl2.spoofax.analysis;

import java.util.List;
import java.util.Optional;

import mb.nabl2.constraints.IConstraint;
import mb.nabl2.solver.ISolution;
import mb.nabl2.terms.ITerm;

public interface IResult {

    boolean partial();

    List<IConstraint> constraints();

    ISolution solution();

    IResult withSolution(ISolution solution);

    Optional<ITerm> customAnalysis();

    IResult withCustomAnalysis(ITerm term);

}
{'fraction_non_alphanumeric': 0.10480349344978165, 'fraction_numerical': 0.008733624454148471, 'mean_word_length': 4.767295597484277, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '6035816', 'n_tokens_mistral': 297, 'n_tokens_neox': 279, 'n_words': 60}