<commit_before><commit_msg>エリア名表示の仮実装<commit_after>var React = require('react');

function getArea() {
    return function (location) {
        location.reduce(function(area, value) {
            area[value.id] = value.location.name;
        }).filter(function(id, index, self) {
            return self.indexOf(id) === index;
        });
    }
}

var Area = React.createClass({
    extract: function () {
        return this.props.media.filter(function(value) {
            return value.length > 0;
        }).map(getArea);
    },
    render: function () {

    }
});

module.exports = Area;

{'fraction_non_alphanumeric': 0.15008431703204048, 'fraction_numerical': 0.0016863406408094434, 'mean_word_length': 2.453488372093023, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2637963', 'n_tokens_mistral': 187, 'n_tokens_neox': 184, 'n_words': 33}