<commit_before>import {Pipe} from 'angular2/angular2';

@Pipe({
    name: 'arrayFromEnum'
})
export class EnumPipe {
    transform(value) {
        return Object.keys(value)
            .map(Number)
            .filter((v) => !isNaN(v))
            .map((v) => value[v]);
    }
}<commit_msg>[master]impr pipe<commit_after>import {Pipe} from 'angular2/angular2';

@Pipe({
    name: 'arrayFromEnum',
    pure: false
})
export class EnumPipe {
    transform(data) {
        return Object.keys(data)
            .map(Number)
            .filter((v) => !isNaN(v))
            .map((v) => data[v]);
    }
}
{'fraction_non_alphanumeric': 0.17, 'fraction_numerical': 0.006666666666666667, 'mean_word_length': 2.338888888888889, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '7478368', 'n_tokens_mistral': 209, 'n_tokens_neox': 206, 'n_words': 39}