<commit_before>package com.alexstyl.specialdates.events.namedays;

import android.support.annotation.RawRes;
import android.support.annotation.StringRes;

import com.alexstyl.specialdates.R;
import com.novoda.notils.exception.DeveloperError;

public enum NamedayLocale {
    GREEK("gr", true, R.string.Greek, R.raw.gr_namedays),
    ROMANIAN("ro", false, R.string.Romanian, R.raw.ro_namedays),
    RUSSIAN("ru", false, R.string.Russian, R.raw.ru_namedays),
    LATVIAN("lv", false, R.string.Latvian_Traditional, R.raw.lv_namedays),
    LATVIAN_EXTENDED("lv_LV", false, R.string.Latvian_Extended, R.raw.lv_ext_namedays),
    SLOVAK("sk", false, R.string.Slovak, R.raw.sk_namedays),
    ITALIAN("it", false, R.string.Italian, R.raw.it_namedays),
    CZECH("cs", false, R.string.Czech, R.raw.cs_namedays);

    private final String shortCode;
    private final boolean soundCompared;
    @StringRes
    private int languageName;
    @RawRes
    private final int rawResId;

    NamedayLocale(String shortCode, boolean soundCompared, @StringRes int languageName, @RawRes int rawResId) {
        this.shortCode = shortCode;
        this.soundCompared = soundCompared;
        this.languageName = languageName;
        this.rawResId = rawResId;
    }

    public static NamedayLocale from(String displayLanguage) {
        for (NamedayLocale locale : values()) {
            if (locale.getCountryCode().equalsIgnoreCase(displayLanguage)) {
                return locale;<commit_msg>Change local of Latvian extended to lv_ext<commit_after>package com.alexstyl.specialdates.events.namedays;

import android.support.annotation.RawRes;
import android.support.annotation.StringRes;

import com.alexstyl.specialdates.R;
import com.novoda.notils.exception.DeveloperError;

public enum NamedayLocale {
    GREEK("gr", true, R.string.Greek, R.raw.gr_namedays),
    ROMANIAN("ro", false, R.string.Romanian, R.raw.ro_namedays),
    RUSSIAN("ru", false, R.string.Russian, R.raw.ru_namedays),
    LATVIAN("lv", false, R.string.Latvian_Traditional, R.raw.lv_namedays),
    LATVIAN_EXTENDED("lv_ext", false, R.string.Latvian_Extended, R.raw.lv_ext_namedays),
    SLOVAK("sk", false, R.string.Slovak, R.raw.sk_namedays),
    ITALIAN("it", false, R.string.Italian, R.raw.it_namedays),
    CZECH("cs", false, R.string.Czech, R.raw.cs_namedays);

    private final String shortCode;
    private final boolean soundCompared;
    @StringRes
    private int languageName;
    @RawRes
    private final int rawResId;

    NamedayLocale(String shortCode, boolean soundCompared, @StringRes int languageName, @RawRes int rawResId) {
        this.shortCode = shortCode;
        this.soundCompared = soundCompared;
        this.languageName = languageName;
        this.rawResId = rawResId;
    }

    public static NamedayLocale from(String displayLanguage) {
        for (NamedayLocale locale : values()) {
            if (locale.getCountryCode().equalsIgnoreCase(displayLanguage)) {
                return locale;
{'fraction_non_alphanumeric': 0.11267605633802817, 'fraction_numerical': 0.0, 'mean_word_length': 3.914332784184514, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6276840', 'n_tokens_mistral': 1013, 'n_tokens_neox': 962, 'n_words': 191}