<commit_before>import React, { Component, PropTypes } from 'react';
import HTML5Backend from 'react-dnd-html5-backend';
import { DragDropContext } from 'react-dnd';
import File from '../components/File.jsx';

class FileList extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        return (
            <ul className="bulletless">
                { this.props.files.map((file, i) => <File key={i} filename={file.Filename} isDir={file.IsDir}/> )}
            </ul>
        );
    }
};

FileList.propTypes = { files: PropTypes.array.isRequired };
export default DragDropContext(HTML5Backend)(FileList);<commit_msg>Passed file actions to each File component as props<commit_after>import React, { Component, PropTypes } from 'react';
import HTML5Backend from 'react-dnd-html5-backend';
import { DragDropContext } from 'react-dnd';
import File from '../components/File.jsx';

class FileList extends Component {
    constructor(props) {
        super(props);
    }

    render() {
        let props = {
            actions: this.props.actions,
        };

        return (
            <ul className="bulletless">
                { this.props.files.map((file, i) => 
                    <File key={i} file={file} {...props} /> 
                )}
            </ul>
        );
    }
};

FileList.propTypes = { 
    files: PropTypes.array.isRequired,
    actions: PropTypes.object.isRequired
};

export default DragDropContext(HTML5Backend)(FileList);
{'fraction_non_alphanumeric': 0.1350438892640108, 'fraction_numerical': 0.004051316677920324, 'mean_word_length': 2.5201900237529693, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '2214633', 'n_tokens_mistral': 430, 'n_tokens_neox': 427, 'n_words': 95}