<commit_before>/*
 * =============================================================================
 * Copyright 1998-2012, IAESTE Internet Development Team. All rights reserved.
 * -----------------------------------------------------------------------------
 * Project: IntraWeb Services (iws-api) - net.iaeste.iws.api.enums.Language
 * -----------------------------------------------------------------------------
 * This software is provided by the members of the IAESTE Internet Development
 * Team (IDT) to IAESTE A.s.b.l. It is for internal use only and may not be
 * redistributed. IAESTE A.s.b.l. is not permitted to sell this software.
 *
 * This software is provided "as is"; the IDT or individuals within the IDT
 * cannot be held legally responsible for any problems the software may cause.
 * =============================================================================
 */
package net.iaeste.iws.api.enums;

/**
 * All languages that can be selected in the system
 *
 * @author <NAME> / last $Author:$
 * @version $Revision:$ / $Date:$
 * @since 1.7
 */
public enum Language {
    // TODO add more languages
    ENGLISH, GERMAN, FRENCH, RUSSIAN
}<commit_msg>add all languages to the enum, fixes #91<commit_after>/*
 * =============================================================================
 * Copyright 1998-2012, IAESTE Internet Development Team. All rights reserved.
 * -----------------------------------------------------------------------------
 * Project: IntraWeb Services (iws-api) - net.iaeste.iws.api.enums.Language
 * -----------------------------------------------------------------------------
 * This software is provided by the members of the IAESTE Internet Development
 * Team (IDT) to IAESTE A.s.b.l. It is for internal use only and may not be
 * redistributed. IAESTE A.s.b.l. is not permitted to sell this software.
 *
 * This software is provided "as is"; the IDT or individuals within the IDT
 * cannot be held legally responsible for any problems the software may cause.
 * =============================================================================
 */
package net.iaeste.iws.api.enums;

/**
 * All languages that can be selected in the system
 *
 * @author <NAME> / last $Author:$
 * @version $Revision:$ / $Date:$
 * @since 1.7
 */
public enum Language {
    ENGLISH("English"),
    ARABIC("Arabic"),
    BELARUSIAN("Belarusian"),
    BULGARIAN("Bulgarian"),
    CANTONESE_YUE_CHINESE("Cantonese (Yue) Chinese"),
    CROATIAN("Croatian"),
    CZECH("Czech"),
    DANISH("Danish"),
    DUTCH("Dutch"),
    ESTONIAN("Estonian"),
    FINNISH("Finnish"),
    FRENCH("French"),
    GERMAN("German"),
    GREEK("Greek"),
    HUNGARIAN("Hungarian"),
    INDONESIAN("Indonesian"),
    ITALIAN("Italian"),
    JAPANESE("Japanese"),
    KOREAN("Korean"),
    LATVIAN("Latvian"),
    LITHUANIAN("Lithuanian"),
    MANDARIN_CHINESE("Mandarin Chinese"),
    NORWEGIAN("Norwegian"),
    PERSIAN("Persian"),
    POLISH("Polish"),
    PORTUGUESE("Portuguese"),
    ROMANIAN("Romanian"),
    RUSSIAN("Russian"),
    SERBIAN("Serbian"),
    SLOVAKIAN("Slovakian"),
    SLOVENIAN("Slovenian"),
    SPANISH("Spanish"),
    SWEDISH("Swedish"),
    TAJIK("Tajik"),
    THAI("Thai"),
    TURKISH("Turkish"),
    VIETNAMESE("Vietnamese"),
    UKRAINIAN("Ukrainian"),
    ANY("Any");


    private final String description;

    Language(final String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    /**
     * Same as valueOf but for when an argument is null then null is returned.
     *
     * @param language String which should be value of TypeOfWork
     * @return null or enum value
     */
    public static Language toValue(final String language) {
        return language == null ? null : Language.valueOf(language);
    }

}
{'fraction_non_alphanumeric': 0.2658523908523909, 'fraction_numerical': 0.005717255717255718, 'mean_word_length': 2.6518026565464896, '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': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '935336', 'n_tokens_mistral': 1155, 'n_tokens_neox': 1039, 'n_words': 312}