<commit_before>import Head from 'components/head';
import Layout from 'components/Layout';
import Spacer from 'components/Spacer';
import getPosts from 'lib/get-posts';
import Link from 'next/link';
import Router from 'next/router';
import Padding from 'components/padding';

const Blog = ({ posts }) => {
  return (
    <>
      <Head>
        <title>Blog | Reaper</title>
      </Head>
      <Layout>
        <Padding y={3}>
          <div className="container">
            <ul className="card-border min-width-150-px">
              {posts.map(({ meta }, index) => {
                return (
                  <li key={index}>
                    <Link href={`blog/${meta.slug}`}>
                      <a>{meta.title}</a>
                    </Link>
                  </li>
                );
              })}
            </ul>
            <Spacer y={1} />
            <button
              className="margin-top-sm  align-start button black outline-btn"
              onClick={() => Router.push('/')}
            >
              Back
            </button>
            <Spacer y={2} />
          </div>
        </Padding>
      </Layout>
    </>
  );
};

export async function getStaticProps() {
  const posts = await getPosts();
  return {
    props: {
      posts,
    },
  };
}

export default Blog;
<commit_msg>:robot: Formatted!<commit_after>import Head from 'components/head'
import Layout from 'components/Layout'
import Spacer from 'components/Spacer'
import getPosts from 'lib/get-posts'
import Link from 'next/link'
import Router from 'next/router'
import Padding from 'components/padding'

const Blog = ({ posts }) => {
  return (
    <>
      <Head>
        <title>Blog | Reaper</title>
      </Head>
      <Layout>
        <Padding y={3}>
          <div className='container'>
            <ul className='card-border min-width-150-px'>
              {posts.map(({ meta }, index) => {
                return (
                  <li key={index}>
                    <Link href={`blog/${meta.slug}`}>
                      <a>{meta.title}</a>
                    </Link>
                  </li>
                )
              })}
            </ul>
            <Spacer y={1} />
            <button
              className='margin-top-sm  align-start button black outline-btn'
              onClick={() => Router.push('/')}
            >
              Back
            </button>
            <Spacer y={2} />
          </div>
        </Padding>
      </Layout>
    </>
  )
}

export async function getStaticProps () {
  const posts = await getPosts()
  return {
    props: {
      posts
    }
  }
}

export default Blog

{'fraction_non_alphanumeric': 0.14432206608431447, 'fraction_numerical': 0.004557538928978352, 'mean_word_length': 1.4411492122335496, 'pattern_counts': {'":': 0, '<': 51, '<?xml version=': 0, '>': 57, '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': '7444421', 'n_tokens_mistral': 758, 'n_tokens_neox': 739, 'n_words': 175}