<commit_before>App.Project = React.createClass({
    mixins: [ReactMeteorData],
    getMeteorData() {
        var data = {},
            projectId = this.props.projectId,
            handle = Meteor.subscribe('project', projectId);

        if (handle.ready()) {
            data.project = Projects.findOne({_id: projectId});
        }

        return data;
    },
    renderProject() {
        return <article className="project">
                   <a href="/">Back</a>
                   <h1 className="title">{this.data.project.title}</h1>
                   <img className="image" src={this.data.project.image} />
                   <div className="content">{this.data.project.content}</div>
               </article>;
    },
    render() {
        return (
            <main className="project view">
                {this.data.project ? this.renderProject() : 'loading...'}
            </main>
        )
    }
});<commit_msg>more work on project view - root check passed<commit_after>App.Project = React.createClass({
    mixins: [ReactMeteorData],
    getMeteorData() {
        var data = {},
            projectId = this.props._id,
            handle = Meteor.subscribe('project', projectId);

        if (handle.ready()) {
            data.project = Projects.findOne({_id: projectId});
        }

        return data;
    },
    renderProject() {
        return <article className="project">
                   <a href="/">Back</a>
                   <h1 className="title">{this.data.project.title}</h1>
                   <img className="image" src={this.data.project.image} />
                   <div className="content">{this.data.project.content}</div>
               </article>;
    },
    render() {
        return (
            <main className="project view">
                {this.data.project ? this.renderProject() : 'loading...'}
            </main>
        )
    }
});
{'fraction_non_alphanumeric': 0.15079365079365079, 'fraction_numerical': 0.0021164021164021165, 'mean_word_length': 1.7091690544412608, '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': '353462', 'n_tokens_mistral': 526, 'n_tokens_neox': 505, 'n_words': 91}