<commit_before>package org.spoofax.jsglr2.imploder;

import java.util.*;

import org.metaborg.parsetable.IProduction;
import org.spoofax.jsglr2.imploder.treefactory.ITreeFactory;
import org.spoofax.jsglr2.layoutsensitive.LayoutSensitiveParseNode;
import org.spoofax.jsglr2.parseforest.IDerivation;
import org.spoofax.jsglr2.parseforest.IParseForest;
import org.spoofax.jsglr2.parseforest.IParseNode;

public class TreeImploder
//@formatter:off
   <ParseForest extends IParseForest,
    ParseNode   extends IParseNode<ParseForest, Derivation>,
    Derivation  extends IDerivation<ParseForest>,
    Tree>
//@formatter:on
    implements IImploder<ParseForest, Tree> {

    protected final ITreeFactory<Tree> treeFactory;
    private ITokenizer<Tree> tokenizer;

    public TreeImploder(ITreeFactory<Tree> treeFactory, ITokenizer<Tree> tokenizer) {
        this.treeFactory = treeFactory;
        this.tokenizer = tokenizer;
    }

    @Override public ImplodeResult<Tree> implode(String input, String filename, ParseForest parseForest) {<commit_msg>Fix missing import<commit_after>package org.spoofax.jsglr2.imploder;

import java.util.*;

import org.metaborg.parsetable.IProduction;
import org.metaborg.util.iterators.Iterables2;
import org.spoofax.jsglr2.imploder.treefactory.ITreeFactory;
import org.spoofax.jsglr2.layoutsensitive.LayoutSensitiveParseNode;
import org.spoofax.jsglr2.parseforest.IDerivation;
import org.spoofax.jsglr2.parseforest.IParseForest;
import org.spoofax.jsglr2.parseforest.IParseNode;

public class TreeImploder
//@formatter:off
   <ParseForest extends IParseForest,
    ParseNode   extends IParseNode<ParseForest, Derivation>,
    Derivation  extends IDerivation<ParseForest>,
    Tree>
//@formatter:on
    implements IImploder<ParseForest, Tree> {

    protected final ITreeFactory<Tree> treeFactory;
    private ITokenizer<Tree> tokenizer;

    public TreeImploder(ITreeFactory<Tree> treeFactory, ITokenizer<Tree> tokenizer) {
        this.treeFactory = treeFactory;
        this.tokenizer = tokenizer;
    }

    @Override public ImplodeResult<Tree> implode(String input, String filename, ParseForest parseForest) {
{'fraction_non_alphanumeric': 0.08815298507462686, 'fraction_numerical': 0.006063432835820896, 'mean_word_length': 5.364985163204747, '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': '1466862', 'n_tokens_mistral': 730, 'n_tokens_neox': 693, 'n_words': 124}