<commit_before>Category = React.createClass
  render: ->
    return `(null)` unless this.props.category?
    `(
      <span className="category">
        <a href={"/category/" + this.props.category.slug + "/"}>{this.props.category.title}</a>
      </span>
    )`

Entry = React.createClass
  render: ->
    `(
      <li className="entry">
        <a href={this.props.link}>{this.props.title}</a>
        <div className="detail-information">
          <span className="created_at">{this.props.created_at}</span>
          <Category category={this.props.category} />
        </div>
      </li>
    )`

EntryList = React.createClass
  render: ->
    entries = this.props.entries.map (entry) ->
      uniqueKey = "#{entry.title}-#{entry.created_at}"
      `(
        <Entry key={uniqueKey} title={entry.title} category={entry.category} link={entry.link} created_at={entry.created_at} />
      )`
    title = this.props.monthYear.replace(
      /(\d{4})\-(\d{1,2})/, -> "#{arguments[1]}年#{arguments[2]}月"
    )
    `(
      <li className="entryList year-month"><commit_msg>Use slug instead of link<commit_after>Category = React.createClass
  render: ->
    return `(null)` unless this.props.category?
    `(
      <span className="category">
        <a href={"/category/" + this.props.category.slug + "/"}>{this.props.category.title}</a>
      </span>
    )`

Entry = React.createClass
  render: ->
    `(
      <li className="entry">
        <a href={"/" + this.props.link}>{this.props.title}</a>
        <div className="detail-information">
          <span className="created_at">{this.props.created_at}</span>
          <Category category={this.props.category} />
        </div>
      </li>
    )`

EntryList = React.createClass
  render: ->
    entries = this.props.entries.map (entry) ->
      uniqueKey = "#{entry.title}-#{entry.created_at}"
      `(
        <Entry key={uniqueKey} title={entry.title} category={entry.category} link={entry.slug} created_at={entry.created_at} />
      )`
    title = this.props.monthYear.replace(
      /(\d{4})\-(\d{1,2})/, -> "#{arguments[1]}年#{arguments[2]}月"
    )
    `(
      <li className="entryList year-month">
{'fraction_non_alphanumeric': 0.19414770088248956, 'fraction_numerical': 0.004644681839294009, 'mean_word_length': 2.713793103448276, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 43, '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': '6098865', 'n_tokens_mistral': 706, 'n_tokens_neox': 711, 'n_words': 104}