<commit_before>import PropTypes from 'prop-types';
import capitalize from 'lodash/capitalize';

import Projects from 'layouts/grants-and-fellowships/projects';
import About from 'layouts/grants-and-fellowships/about';
import Apply from 'layouts/grants-and-fellowships/apply';

import Cover from 'components/cover';
import SubnavMenu from 'components/subnav-menu';

import bgImage from './background.jpg';
import './styles.scss';

const GRANTS_PAGE_COMPONENTS = {
  projects: Projects,
  about: About,
  apply: Apply,
};

const GrantsAndFellowshipsPage = (props) => {
  const SectionComponent = GRANTS_PAGE_COMPONENTS[props?.section];
  const links = Object.keys(GRANTS_PAGE_COMPONENTS).map((key) => ({
    label: capitalize(key),
    href: '/grants-and-fellowships/[section]',
    as: `/grants-and-fellowships/${key}`,
    activeShallow: key === props?.section,
  }));

  return (
    <div>
      <Cover
        title="Grants & Fellowships"
        description="The Small Grants Fund and Tech Fellowship support civil society organizations
          and individuals around the world to use Global Forest Watch in their advocacy,
          research, and feld work."
        bgImage={bgImage}
      />
      <SubnavMenu links={links} />
      <div className="l-grants-page">
        {SectionComponent && <SectionComponent {...props} />}
      </div>
    </div>
  );
};

GrantsAndFellowshipsPage.propTypes = {
  section: PropTypes.string,
};

export default GrantsAndFellowshipsPage;<commit_msg>Fixing a typo<commit_after>import PropTypes from 'prop-types';
import capitalize from 'lodash/capitalize';

import Projects from 'layouts/grants-and-fellowships/projects';
import About from 'layouts/grants-and-fellowships/about';
import Apply from 'layouts/grants-and-fellowships/apply';

import Cover from 'components/cover';
import SubnavMenu from 'components/subnav-menu';

import bgImage from './background.jpg';
import './styles.scss';

const GRANTS_PAGE_COMPONENTS = {
  projects: Projects,
  about: About,
  apply: Apply,
};

const GrantsAndFellowshipsPage = (props) => {
  const SectionComponent = GRANTS_PAGE_COMPONENTS[props?.section];
  const links = Object.keys(GRANTS_PAGE_COMPONENTS).map((key) => ({
    label: capitalize(key),
    href: '/grants-and-fellowships/[section]',
    as: `/grants-and-fellowships/${key}`,
    activeShallow: key === props?.section,
  }));

  return (
    <div>
      <Cover
        title="Grants & Fellowships"
        description="The Small Grants Fund and Tech Fellowship support civil society organizations
          and individuals around the world to use Global Forest Watch in their advocacy,
          research, and field work."
        bgImage={bgImage}
      />
      <SubnavMenu links={links} />
      <div className="l-grants-page">
        {SectionComponent && <SectionComponent {...props} />}
      </div>
    </div>
  );
};

GrantsAndFellowshipsPage.propTypes = {
  section: PropTypes.string,
};

export default GrantsAndFellowshipsPage;
{'fraction_non_alphanumeric': 0.12462311557788945, 'fraction_numerical': 0.0, 'mean_word_length': 3.7776, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 21, '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': '5097887', 'n_tokens_mistral': 924, 'n_tokens_neox': 892, 'n_words': 219}