<commit_before><commit_msg>I added a class that we can use to write tests for any general features.<commit_after>package com.fsck.k9;

import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;
import static junit.framework.Assert.assertTrue;
import static junit.framework.Assert.assertFalse;

/**
 * Created by Josh on 2/3/2016.
 * Use this class to test any general/basic features (that aren't in their own folder)
 */
@RunWith(AndroidJUnit4.class)
public class BasicFeaturesTest {

    /**
     * Created by Josh on 2/3/2016.
     * Tests the Email Address Validator
     */
    @Test
    public void testEmailAddressValidator() {
        EmailAddressValidator testValidator = new EmailAddressValidator();

        //test 1: check a valid email address
        assertTrue(testValidator.isValidAddressOnly("<EMAIL>"));
        //test 2: check 1st almost valid email address
        assertFalse(testValidator.isValidAddressOnly("aaabbb.com"));
        //test 3: check 2nd almost valid email address
        assertFalse(testValidator.isValidAddressOnly("aaa@bbbcom"));
        //test 4: check completely invalid email address
        assertFalse(testValidator.isValidAddressOnly("aaabbbcom"));
        //test 5: check tricky email address
        assertFalse(testValidator.isValidAddressOnly("@."));
    }
}
{'fraction_non_alphanumeric': 0.0959409594095941, 'fraction_numerical': 0.016236162361623615, 'mean_word_length': 3.5656565656565657, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 4, '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': '4263091', 'n_tokens_mistral': 378, 'n_tokens_neox': 364, 'n_words': 110}