<commit_before>package com.szagurskii.rxtesting.deletion;

import android.os.Build;
import android.widget.EditText;

import com.szagurskii.patternedtextwatcher.BuildConfig;

import org.junit.runner.RunWith;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolectric.annotation.Config;

/**
 * @author <NAME>
 */
@Config(constants = BuildConfig.class, sdk = Build.VERSION_CODES.LOLLIPOP)
@RunWith(RobolectricGradleTestRunner.class)
public class GradualCustomizedDeletionTests extends BaseCustomizedDeletionTests {
    @Override
    public void multipleAddingAndDeletion1() {

    }

    @Override
    void addText(EditText editText, String value) {
        editText.append(value);
    }
}<commit_msg>Added tests for custom deletion when appending text.<commit_after>package com.szagurskii.rxtesting.deletion;

import android.os.Build;
import android.widget.EditText;

import com.szagurskii.patternedtextwatcher.BuildConfig;
import com.szagurskii.patternedtextwatcher.PatternedTextWatcher;

import org.junit.runner.RunWith;
import org.robolectric.RobolectricGradleTestRunner;
import org.robolectric.annotation.Config;

import static com.szagurskii.rxtesting.utils.EditTextUtils.clearTextChangeListener;

/**
 * @author <NAME>
 */
@Config(constants = BuildConfig.class, sdk = Build.VERSION_CODES.LOLLIPOP)
@RunWith(RobolectricGradleTestRunner.class)
public class GradualCustomizedDeletionTests extends BaseCustomizedDeletionTests {
    @Override
    public void multipleAddingAndDeletion1() {
        PatternedTextWatcher patternedTextWatcher = init(editText, PATTERN_4);
        addText(editText, STRING_TO_BE_TYPED_LENGTH_FIVE);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))4", PATTERN_4);

        addText(editText, STRING_TO_BE_TYPED_LENGTH_TWO);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))412))))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))412)))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))412))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))412)", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))412", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))41", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))4", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123))", PATTERN_4);

        addText(editText, STRING_TO_BE_TYPED_LENGTH_THREE);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))123))))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))123)))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))123))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))123)", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))123", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))12", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))1", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123))", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123)", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(123", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(12", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(1", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "(", PATTERN_4);
        backspace(STRING_TO_BE_TYPED_LENGTH_NINE, "", PATTERN_4);

        clearTextChangeListener(editText, patternedTextWatcher);
    }

    @Override
    void addText(EditText editText, String value) {
        editText.append(value);
    }
}
{'fraction_non_alphanumeric': 0.11620553359683794, 'fraction_numerical': 0.034519104084321475, 'mean_word_length': 5.578856152512998, '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': '4159834', 'n_tokens_mistral': 1447, 'n_tokens_neox': 1356, 'n_words': 171}