<commit_before>import React from 'react';
import moment from 'moment';
import { humanFileSize } from '../utils';

export default class File extends React.Component {

    constructor(props) {
        super(props);
        this.state = {
            isUploading: this.props.id.charAt(0) === '?'
        }
    }

    render() {
        var cb = '';
        var name = '';
        var actions = '';
        if (this.state.isUploading) {
            name = this.props.name;
        } else {
            cb = <input type="checkbox" className="cb" date-file-id={this.props.id} />
            name = <a href="#">{this.props.name}</a>
            actions = <a href="#" data-file-id={this.props.id}>Delete</a>
        }

        return (
            <tr className="file">
                <td className="cb-col">{cb}</td>
                <td>{name}</td><commit_msg>add conditional classes to file name<commit_after>import React from 'react';
import moment from 'moment';
import { humanFileSize } from '../utils';

export default class File extends React.Component {

    constructor(props) {
        super(props);
        this.state = {
            isUploading: this.props.id.charAt(0) === '?'
        }
    }

    render() {
        var cb = '';
        var name = '';
        var actions = '';
        if (this.state.isUploading) {
            name = <td className="file-name file-uploading">this.props.name</td>;
        } else {
            cb = <input type="checkbox" className="cb" date-file-id={this.props.id} />
            name = <td className="file-name"><a href="#">{this.props.name}</a></td>
            actions = <a href="#" data-file-id={this.props.id}>Delete</a>
        }

        return (
            <tr className="file">
                <td className="cb-col">{cb}</td>
                {name}
{'fraction_non_alphanumeric': 0.16435313714602998, 'fraction_numerical': 0.001110494169905608, 'mean_word_length': 1.8740031897926634, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 25, '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': '6637765', 'n_tokens_mistral': 533, 'n_tokens_neox': 519, 'n_words': 113}