<commit_before>import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';

import { Typography } from '@material-ui/core';

import { Article, ArticleContent, ArticleMedia, Markdown } from 'components';

const List = ({ event }) => (
  <Article isLoading={ !event }>
    <ArticleContent>
      <Typography gutterBottom variant='h4' component='h2'>Pravidla: { event.name } { event.year }</Typography>
    </ArticleContent>
    <ArticleMedia src={ event.rules_image && event.rules_image.src } />
    <ArticleContent><Markdown content={ event.rules } /></ArticleContent>
  </Article>
);

List.propTypes = {
  event: PropTypes.object.isRequired
};

export default connect(({ event }) => ({ event }))(List);<commit_msg>Use refactored Article in Rules<commit_after>import React from 'react';
import { connect } from 'react-redux';
import PropTypes from 'prop-types';

import { CardContent } from '@material-ui/core';

import { Article, ArticleCardHeader, Markdown } from 'components';

const List = ({ event }) => (
  <Article>
    <ArticleCardHeader title={ `${event.name} - Pravidla` } image={ event.rules_image && event.rules_image.src }/>
    <CardContent>
      <Markdown content={ event.rules } />
    </CardContent>
  </Article>
);

List.propTypes = {
  event: PropTypes.object.isRequired
};

export default connect(({ event }) => ({ event }))(List);
{'fraction_non_alphanumeric': 0.15936826992103373, 'fraction_numerical': 0.0014357501794687725, 'mean_word_length': 4.466666666666667, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 23, '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': '4656867', 'n_tokens_mistral': 426, 'n_tokens_neox': 421, 'n_words': 107}