<commit_before>package com.nestedworld.nestedworld.helper.input;


import android.support.annotation.NonNull;
import android.text.TextUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class InputChecker {

    public final int SHORTEST_PASSWORD_LENGTH = 6;

    public static boolean checkEmailFormat(@NonNull final String email) {
        boolean isValid = false;

        final String expression = "^[\\w\\.-]+@([\\w\\-]+\\.)+[A-Z]{2,4}$";

        final Pattern pattern = Pattern.compile(expression, Pattern.CASE_INSENSITIVE);
        final Matcher matcher = pattern.matcher(email);
        if (matcher.matches()) {
            isValid = true;
        }
        return isValid;<commit_msg>compilation error<commit_after>package com.nestedworld.nestedworld.helper.input;


import android.support.annotation.NonNull;
import android.text.TextUtils;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class InputChecker {

    public final static int SHORTEST_PASSWORD_LENGTH = 6;

    public static boolean checkEmailFormat(@NonNull final String email) {
        boolean isValid = false;

        final String expression = "^[\\w\\.-]+@([\\w\\-]+\\.)+[A-Z]{2,4}$";

        final Pattern pattern = Pattern.compile(expression, Pattern.CASE_INSENSITIVE);
        final Matcher matcher = pattern.matcher(email);
        if (matcher.matches()) {
            isValid = true;
        }
        return isValid;
{'fraction_non_alphanumeric': 0.12371134020618557, 'fraction_numerical': 0.004123711340206186, 'mean_word_length': 3.1481481481481484, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '1696917', 'n_tokens_mistral': 424, 'n_tokens_neox': 416, 'n_words': 95}