<commit_before>package de.learnlib.weblearner.learner.connectors;

import de.learnlib.mapper.ContextExecutableInputSUL;

public class CounterStoreContextHandler implements ContextExecutableInputSUL.ContextHandler<CounterStoreConnector> {

    private CounterStoreConnector connector;

    public CounterStoreContextHandler() {
        this.connector = new CounterStoreConnector();
    }

    @Override
    public CounterStoreConnector createContext() {
        connector.clear();
        return connector;<commit_msg>fixed that counters were not persistent over resets.<commit_after>package de.learnlib.weblearner.learner.connectors;

import de.learnlib.mapper.ContextExecutableInputSUL;

public class CounterStoreContextHandler implements ContextExecutableInputSUL.ContextHandler<CounterStoreConnector> {

    private CounterStoreConnector connector;

    public CounterStoreContextHandler() {
        this.connector = new CounterStoreConnector();
    }

    @Override
    public CounterStoreConnector createContext() {
        return connector;
{'fraction_non_alphanumeric': 0.06405353728489484, 'fraction_numerical': 0.0, 'mean_word_length': 5.0520231213872835, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3114271', 'n_tokens_mistral': 271, 'n_tokens_neox': 253, 'n_words': 53}