<commit_before>import React from 'react';
import PropTypes from 'prop-types';

import Image from './Image';
import DetailsBox from './DetailsBox';
import TextBox from './TextBox';
import Link from './../elements/Link';

import LikeContainer from './../../containers/LikeContainer';

import { postsPath } from './../../helpers/routes/paths';

const BlogItem = ({ id, image, details, title }) => (
  <div className="blog_item">
    <Link to={postsPath(id)}>
      <Image {...image} />
    </Link>
    <div className="container">
      <DetailsBox {...details} />
      <TextBox>{title}</TextBox>
      <LikeContainer postId={id} />
    </div>
  </div>
);

BlogItem.propTypes = {
  id: PropTypes.number,
  image: PropTypes.object,
  details: PropTypes.object,
  title: PropTypes.string
};

export default BlogItem;<commit_msg>lesson-9 | Edit link<commit_after>import React from 'react';
import PropTypes from 'prop-types';

import Image from './Image';
import DetailsBox from './DetailsBox';
import TextBox from './TextBox';
import Link from './../elements/Link';

import LikeContainer from './../../containers/LikeContainer';

import { postsPath, editPostsPath } from './../../helpers/routes/paths';

const BlogItem = ({ id, image, details, title }) => (
  <div className="blog_item">
    <Link to={postsPath(id)}>
      <Image {...image} />
    </Link>
    <div className="container">
      <DetailsBox {...details} />
      <TextBox>{title}</TextBox>
      <Link to={editPostsPath(id)}>
        Edit
      </Link>
      <LikeContainer postId={id} />
    </div>
  </div>
);

BlogItem.propTypes = {
  id: PropTypes.number,
  image: PropTypes.object,
  details: PropTypes.object,
  title: PropTypes.string
};

export default BlogItem;
{'fraction_non_alphanumeric': 0.17619872905834777, 'fraction_numerical': 0.0005777007510109763, 'mean_word_length': 3.276543209876543, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 29, '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': '6259272', 'n_tokens_mistral': 516, 'n_tokens_neox': 524, 'n_words': 138}