<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() {
        const { path, files, actions, selected } = this.props;
        const FileProps = { path, files, actions };
        const empty = !files.length;

        return (
            <div className="file-list">
                <ul className="bulletless">
                    {!empty && files.map((file, i) =>  {
                        const isSelected = !!selected[file.Filename];
                        const backgroundColor = isSelected ? 'rgb(207, 241, 252)' : 'transparent';

                        Object.assign(FileProps, {
                            file,
                            key: i,
                            isSelected,
                            backgroundColor 
                        });

                        return <File {...FileProps}/>
                    })}
                    {empty && <p className="empty-text"> {"< empty >"} </p>}
                </ul>
            </div>
        );
    }
};

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

export default DragDropContext(HTML5Backend)(FileList);
<commit_msg>Integrated the connection id into the render logic<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() {
        const { path, files, connId, actions, selected } = this.props;
        const FileProps = { path, connId, files, actions };
        const empty = !files.length;

        return (
            <div className="file-list">
                <ul className="bulletless">
                    {!empty && files.map((file, i) =>  {
                        const isSelected = !!selected[file.Filename];
                        const backgroundColor = isSelected ? 'rgb(207, 241, 252)' : 'transparent';

                        Object.assign(FileProps, {
                            file,
                            key: i,
                            isSelected,
                            backgroundColor 
                        });

                        return <File {...FileProps}/>
                    })}
                    {empty && <p className="empty-text"> {"< empty >"} </p>}
                </ul>
            </div>
        );
    }
};

FileList.propTypes = { 
    connId: PropTypes.number.isRequired,
    path: PropTypes.string.isRequired,
    files: PropTypes.array.isRequired,
    actions: PropTypes.object.isRequired,
    selected: PropTypes.object.isRequired
};

export default DragDropContext(HTML5Backend)(FileList);

{'fraction_non_alphanumeric': 0.11734364925854288, 'fraction_numerical': 0.007736943907156673, 'mean_word_length': 1.5901502504173624, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 21, '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': '803338', 'n_tokens_mistral': 813, 'n_tokens_neox': 777, 'n_words': 181}