<commit_before>import React from 'react';
import Photo from './Photo';

const Single = React.createClass({
  render() {
    const params = this.props.params;
    const i = this.props.posts.findIndex((post) => post.code === params.postId);
    console.log(i);
    return (
      <div className="single-photo">
        I'm the Single
      </div>
    )
  }
});

export default Single;<commit_msg>Added Photo to Single component<commit_after>import React from 'react';
import Photo from './Photo';

const Single = React.createClass({
  render() {
    const params = this.props.params;
    const i = this.props.posts.findIndex((post) => post.code === params.postId);
    const post = this.props.posts[i];
    return (
      <div className="single-photo">
        <Photo i={i} post={post} {...this.props}/>
      </div>
    )
  }
});

export default Single;
{'fraction_non_alphanumeric': 0.1572769953051643, 'fraction_numerical': 0.0, 'mean_word_length': 3.004694835680751, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 10, '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': '1331854', 'n_tokens_mistral': 264, 'n_tokens_neox': 261, 'n_words': 68}