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

const Single =  React.createClass({
  render(){
    // index of post
    const { postId } = this.props.params;

    const i = this.props.posts.findIndex((post) => post.code === postId);

    const post = this.props.posts[i];

    const postComments = this.props.comments[postId] || [];

    return(
      <div className="single-photo">
          <Photo i={i} post={post} {...this.props}/>
          <Comments postComments={postComments}/>
      </div>
     )
  }
})

export default Single;<commit_msg>Pass down props to comments<commit_after>import React from 'react';
import Photo from './Photo';
import Comments from './Comments';

const Single =  React.createClass({
  render(){
    // index of post
    const { postId } = this.props.params;

    const i = this.props.posts.findIndex((post) => post.code === postId);

    const post = this.props.posts[i];

    const postComments = this.props.comments[postId] || [];

    return(
      <div className="single-photo">
          <Photo i={i} post={post} {...this.props}/>
          <Comments postComments={postComments} {...this.props}/>
      </div>
     )
  }
})

export default Single;
{'fraction_non_alphanumeric': 0.16211878009630817, 'fraction_numerical': 0.0, 'mean_word_length': 2.8487654320987654, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '330063', 'n_tokens_mistral': 389, 'n_tokens_neox': 371, 'n_words': 96}