<commit_before>package com.github.parboiled1.grappa.quotedstring.event;

import com.github.parboiled1.grappa.event.EventBusParser;
import com.github.parboiled1.grappa.quotedstring.stack.StringAccumulator;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableMap;
import org.parboiled.Rule;

import java.util.Map;

public class EventStringParser
    extends EventBusParser<Object>
{
    protected static final Map<Character, Character> SPECIAL_ESCAPES;

    static {
        final ImmutableMap.Builder<Character, Character> builder
            = ImmutableMap.builder();

        builder.put('n', '\n');
        builder.put('f', '\f');
        builder.put('r', '\r');
        builder.put('t', '\t');

        SPECIAL_ESCAPES = builder.build();
    }

    protected final StringAccumulator accumulator = new StringAccumulator();

    Rule escaped()
    {
        return sequence('\\', ANY,<commit_msg>Modify EventStringParser<commit_after>package com.github.parboiled1.grappa.quotedstring.event;

import com.github.parboiled1.grappa.parsers.EventBusParser;
import com.github.parboiled1.grappa.quotedstring.stack.StringAccumulator;
import com.google.common.base.Optional;
import com.google.common.collect.ImmutableMap;
import org.parboiled.Rule;

import java.util.Map;

public class EventStringParser
    extends EventBusParser<Object>
{
    protected static final Map<Character, Character> SPECIAL_ESCAPES;

    static {
        final ImmutableMap.Builder<Character, Character> builder
            = ImmutableMap.builder();

        builder.put('n', '\n');
        builder.put('f', '\f');
        builder.put('r', '\r');
        builder.put('t', '\t');

        SPECIAL_ESCAPES = builder.build();
    }

    protected final StringAccumulator accumulator = new StringAccumulator();

    Rule escaped()
    {
        return sequence('\\', ANY,
{'fraction_non_alphanumeric': 0.12319228709159079, 'fraction_numerical': 0.0032137118371719335, 'mean_word_length': 3.5784313725490198, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '3440542', 'n_tokens_mistral': 570, 'n_tokens_neox': 555, 'n_words': 104}