<commit_before>import React from 'react';
import PropTypes from 'prop-types';
import formatDate from 'date-fns/format';
import BlogPostTitle from './blog-post-title.jsx';
import Helmet from 'react-helmet';

export default function BlogPost(
	{
		isSinglePostPage,
		children,
		title,
		publishDate,
		slug,
	}
) {
	const HeadingTag = isSinglePostPage ? 'h1' : 'h2';

	return (
		<div className={isSinglePostPage ? 'max-width-container blog' : ''}>
			{isSinglePostPage && (
				<Helmet>
					<title>Agander 1 0 Is Now Out | <NAME></title>
				</Helmet>
			)}
			<article className="blog-post">
				<header>
					<HeadingTag>
						<BlogPostTitle isLink={!isSinglePostPage} href={slug}>
							{title}
						</BlogPostTitle>
					</HeadingTag>
				</header>
				<p>
					<time className="post-meta__date" dateTime={publishDate}>
						{formatDate(publishDate, 'Do of MMMM, YYYY')}
					</time>
				</p>
				{children}
			</article>
		</div>
	)<commit_msg>fix: not setting title to actual title<commit_after>import React from 'react';
import PropTypes from 'prop-types';
import formatDate from 'date-fns/format';
import BlogPostTitle from './blog-post-title.jsx';
import Helmet from 'react-helmet';

export default function BlogPost(
	{
		isSinglePostPage,
		children,
		title,
		publishDate,
		slug,
	}
) {
	const HeadingTag = isSinglePostPage ? 'h1' : 'h2';

	return (
		<div className={isSinglePostPage ? 'max-width-container blog' : ''}>
			{isSinglePostPage && (
				<Helmet>
					<title>{title} | Luke Boyle</title>
				</Helmet>
			)}
			<article className="blog-post">
				<header>
					<HeadingTag>
						<BlogPostTitle isLink={!isSinglePostPage} href={slug}>
							{title}
						</BlogPostTitle>
					</HeadingTag>
				</header>
				<p>
					<time className="post-meta__date" dateTime={publishDate}>
						{formatDate(publishDate, 'Do of MMMM, YYYY')}
					</time>
				</p>
				{children}
			</article>
		</div>
	)
{'fraction_non_alphanumeric': 0.14812889812889812, 'fraction_numerical': 0.0031185031185031187, 'mean_word_length': 3.306487695749441, 'pattern_counts': {'":': 0, '<': 40, '<?xml version=': 0, '>': 40, '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': '6860319', 'n_tokens_mistral': 826, 'n_tokens_neox': 670, 'n_words': 150}