<commit_before>import { Type } from './type.model';
import { ItemTemplate } from '@core/game_master/gameMaster';
import { Util } from '@util';
import APP_SETTINGS from '@settings/app';

export class TypeMapper {
    public static Map(rawType: ItemTemplate): Type {
        let type: Type = new Type();

        type.id = rawType.templateId;
        type.name = Util.SnakeCase2HumanReadable(rawType.templateId.replace('POKEMON_TYPE_', ''));

        type.damage = APP_SETTINGS.POKEMON_TYPES.map((pokemonType, index) => { return {
            id: pokemonType.id,
            attackScalar: rawType.typeEffective.attackScalar[pokemonType.attackScalarIndex]
        }});

        return type;
    }
}<commit_msg>Add type.json - Code style changes<commit_after>import { Type } from './type.model';
import { ItemTemplate } from '@core/game_master/gameMaster';
import { Util } from '@util';
import APP_SETTINGS from '@settings/app';

export class TypeMapper {
    public static Map(rawType: ItemTemplate): Type {
        let type: Type = new Type();

        type.id = rawType.templateId;
        type.name = Util.SnakeCase2HumanReadable(rawType.templateId.replace('POKEMON_TYPE_', ''));

        type.damage = APP_SETTINGS.POKEMON_TYPES.map((pokemonType, index) => ({
            id: pokemonType.id,
            attackScalar: rawType.typeEffective.attackScalar[pokemonType.attackScalarIndex]
        }));

        return type;
    }
}
{'fraction_non_alphanumeric': 0.12473721093202522, 'fraction_numerical': 0.001401541695865452, 'mean_word_length': 3.2754491017964074, 'pattern_counts': {'":': 0, '<': 3, '<?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': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5267386', 'n_tokens_mistral': 445, 'n_tokens_neox': 438, 'n_words': 89}