<commit_before>import React from "react"
import {graphql, useStaticQuery, Link} from "gatsby";
import Img from "gatsby-image"

export const Profile = ({isFooter = false}) => {
    const data = useStaticQuery(graphql`
    query {
      site {
        siteMetadata {
          me {
            title,
            slogan
          }
        }
      },
      placeholderImage: file(relativePath: { eq: "avatar@2x.jpg" }) {
        childImageSharp {
          fluid(maxWidth: 300) {
            ...GatsbyImageSharpFluid
          }
        }
      }
    }
  `);

    if (!isFooter) {
        return (
            <div className="profile">
                <section id="wrapper">
                    <header id="header">
                        <a href="about.html">
                            <span id="avatar">
                                <Img fluid={data.placeholderImage.childImageSharp.fluid}/>
                            </span>
                        </a>

                        <h1>{data.site.siteMetadata.me.title}</h1>
                        <h2>{data.site.siteMetadata.me.slogan}</h2>
                    </header>
                </section>
            </div><commit_msg>Fixed bug<commit_after>import React from "react"
import {graphql, useStaticQuery, Link} from "gatsby";
import Img from "gatsby-image"

export const Profile = ({isFooter = false}) => {
    const data = useStaticQuery(graphql`
    query {
      site {
        siteMetadata {
          me {
            title,
            slogan
          }
        }
      },
      placeholderImage: file(relativePath: { eq: "avatar@2x.jpg" }) {
        childImageSharp {
          fluid(maxWidth: 300) {
            ...GatsbyImageSharpFluid
          }
        }
      }
    }
  `);

    if (!isFooter) {
        return (
            <div className="profile">
                <section id="wrapper">
                    <header id="header">
                        <Link to='/about'>
                            <span id="avatar">
                                <Img fluid={data.placeholderImage.childImageSharp.fluid}/>
                            </span>
                        </Link>

                        <h1>{data.site.siteMetadata.me.title}</h1>
                        <h2>{data.site.siteMetadata.me.slogan}</h2>
                    </header>
                </section>
            </div>
{'fraction_non_alphanumeric': 0.11824324324324324, 'fraction_numerical': 0.006756756756756757, 'mean_word_length': 1.1614963503649636, 'pattern_counts': {'":': 0, '<': 33, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4594064', 'n_tokens_mistral': 666, 'n_tokens_neox': 631, 'n_words': 116}