<commit_before>import React, { PropTypes } from 'react'
import { Link } from 'react-router'
import styles from 'styles/components/PostItem.scss'

function PostItem ({ post }) {
  return (
    <article key={post._id}>
      <div className={styles.thumbnail}>
        <img src={post.img} alt={post.title} />
      </div>
      <div className={styles.detail}>
        <h2 className={styles.title}><Link to={`/post/${post._id}`}>{post.title}</Link></h2>
        <p className={styles.desc}>{post.desc}</p>
      </div>
      <div className={styles.meta}>
        <Link className={styles.category} to={post.category_link} >{post.category}</Link>
        <time className={styles.date}>{post.date}</time>
      </div>
    </article>
  )
}

PostItem.propTypes = {
  post: PropTypes.shape({
    _id: PropTypes.string.isRequired,
    title: PropTypes.string.isRequired
  }).isRequired
}

export default PostItem
<commit_msg>Add more PropType on PostItem<commit_after>import React, { PropTypes } from 'react'
import { Link } from 'react-router'
import styles from 'styles/components/PostItem.scss'

function PostItem ({ post }) {
  return (
    <article key={post._id}>
      <div className={styles.thumbnail}>
        <img src={post.img} alt={post.title} />
      </div>
      <div className={styles.detail}>
        <h2 className={styles.title}><Link to={`/post/${post._id}`}>{post.title}</Link></h2>
        <p className={styles.desc}>{post.desc}</p>
      </div>
      <div className={styles.meta}>
        <Link className={styles.category} to={post.category_link} >{post.category}</Link>
        <time className={styles.date}>{post.date}</time>
      </div>
    </article>
  )
}

PostItem.propTypes = {
  post: PropTypes.shape({
    _id: PropTypes.string.isRequired,
    title: PropTypes.string.isRequired,
    desc: PropTypes.string.isRequired,
    img: PropTypes.string,
    category: PropTypes.string.isRequired,
    category_link: PropTypes.string.isRequired,
    date: PropTypes.string.isRequired
  }).isRequired
}

export default PostItem

{'fraction_non_alphanumeric': 0.16535819430814525, 'fraction_numerical': 0.001962708537782139, 'mean_word_length': 3.394396551724138, 'pattern_counts': {'":': 0, '<': 41, '<?xml version=': 0, '>': 41, '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': '1054054', 'n_tokens_mistral': 635, 'n_tokens_neox': 651, 'n_words': 122}