<commit_before>package com.bitdubai.fermat_api.layer.dmp_middleware.wallet_factory.enums;

/**
 * The Class <code>com.bitdubai.fermat_api.layer.middleware.wallet_factory.enums.ResourceType</code>
 * enumerates type of Resources.
 * <p/>
 *
 * Created by <NAME> - (<EMAIL>) on 15/07/15.
 * @version 1.0
 * @since Java JDK 1.7
 */
public enum ResourceType {
    VIDEO,
    SOUND,
    IMAGE,
    FONT_STYLE,
    LAYOUT,
    LANGUAGE
}<commit_msg>updated plugin wallet factory middleware | Compiling & Running<commit_after>package com.bitdubai.fermat_api.layer.dmp_middleware.wallet_factory.enums;

import com.bitdubai.fermat_api.layer.all_definition.exceptions.InvalidParameterException;

/**
 * The Class <code>com.bitdubai.fermat_api.layer.middleware.wallet_factory.enums.ResourceType</code>
 * enumerates type of Resources.
 * <p/>
 *
 * Created by <NAME> - (<EMAIL>) on 15/07/15.
 * @version 1.0
 * @since Java JDK 1.7
 */
public enum ResourceType {
    VIDEO("VID"),
    SOUND("SND"),
    IMAGE("IMG"),
    FONT_STYLE("FNT"),
    LAYOUT("LAY");

    public static ResourceType fromValue(String key) throws InvalidParameterException {
        switch(key){
            case "VID":
                return ResourceType.VIDEO ;
            case "SND":
                return ResourceType.SOUND ;
            case "IMG":
                return ResourceType.IMAGE ;
            case "FNT":
                return ResourceType.FONT_STYLE;
            case "LAY":
                return ResourceType.LAYOUT;
        }
        throw new InvalidParameterException(key);
    }

    private final String key;

    ResourceType(String key) {
        this.key = key;
    }

    public String value() { return this.key; }
}
{'fraction_non_alphanumeric': 0.11527208894090112, 'fraction_numerical': 0.011702750146284377, 'mean_word_length': 2.6152219873150107, 'pattern_counts': {'":': 5, '<': 13, '<?xml version=': 0, '>': 13, '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': '6966920', 'n_tokens_mistral': 576, 'n_tokens_neox': 548, 'n_words': 113}