<commit_before>import path from "path";

const query = `
{
  allMarkdownRemark(
    sort: { fields: [frontmatter___date], order: DESC }
    limit: 1000
  ) {
    edges {
      node {
        fields {
          slug
          title
        }
        frontmatter {
          title
          category
        }
      }
    }
  }
}
`;

interface Data {
  allMarkdownRemark: {
    edges: Array<{
      node: {
        fields: {
          slug: string;
          title: string;
        };

        frontmatter: {
          title: string;
          category: string;
        };
      };
    }>;
  };
}

type Result = { errors?: object; data: Data };

async function createPages({ graphql, actions }) {
  const { createPage } = actions;

  const blogPost = path.resolve("./src/templates/blog-post.tsx");<commit_msg>🐛 Fix: Fix graphql error<commit_after>import path from "path";

const query = `
{
  allMarkdownRemark(
    sort: { fields: [fields___date], order: DESC }
    limit: 1000
  ) {
    edges {
      node {
        fields {
          slug
          title
        }
        frontmatter {
          category
        }
      }
    }
  }
}
`;

interface Data {
  allMarkdownRemark: {
    edges: Array<{
      node: {
        fields: {
          slug: string;
          title: string;
        };

        frontmatter: {
          category: string;
        };
      };
    }>;
  };
}

type Result = { errors?: object; data: Data };

async function createPages({ graphql, actions }) {
  const { createPage } = actions;

  const blogPost = path.resolve("./src/templates/blog-post.tsx");
{'fraction_non_alphanumeric': 0.12159594680177327, 'fraction_numerical': 0.00506649778340722, 'mean_word_length': 1.6158940397350994, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '5357027', 'n_tokens_mistral': 509, 'n_tokens_neox': 490, 'n_words': 110}