<commit_before>import React, { PropTypes } from 'react';
import purebem from 'purebem';


const block = purebem.of('list');

const List = React.createClass({

    propTypes: {
        item: PropTypes.any.isRequired,
        list: PropTypes.array.isRequired
    },

    renderItem(item, index) {
        return (
            <this.props.item key={ index } item={ item } />
        );
    },

    render() {
        return (
            <div className={ block() }>
                {
                    [].map.call(this.props.list, this.renderItem)
                }
            </div>
        );
    }

});

export default List;<commit_msg>index prop added to List component<commit_after>import React, { PropTypes } from 'react';
import purebem from 'purebem';


const block = purebem.of('list');

const List = React.createClass({

    propTypes: {
        item: PropTypes.any.isRequired,
        list: PropTypes.array.isRequired
    },

    renderItem(item, index) {
        return (
            <this.props.item
                index={ index }
                item={ item }
                key={ index } />
        );
    },

    render() {
        return (
            <div className={ block() }>
                {
                    [].map.call(this.props.list, this.renderItem)
                }
            </div>
        );
    }

});

export default List;
{'fraction_non_alphanumeric': 0.12986060161408658, 'fraction_numerical': 0.0, 'mean_word_length': 1.521256931608133, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '2187978', 'n_tokens_mistral': 401, 'n_tokens_neox': 386, 'n_words': 84}