<commit_before>import useData from 'api/useData';
import Meta from 'components/Meta';

/**
 * Creates metadata for the privacy page from privacy data
 */
const HomepageMeta = () => {
  const { data: privacyBlock } = useData('privacy');

  // Grabs the second text element, since the first is a last updated
  const secondParagraph = privacyBlock?.content?.json.content?.filter(
    (item) => item.nodeType === 'paragraph',
  )?.[1];

  const text = secondParagraph?.content?.map((node) => node.value)?.join('') ?? '';

  return <Meta title="Engineer. Problem Solver." description={text} />;
};

export default HomepageMeta;
<commit_msg>chore: update privacy meta title<commit_after>import useData from 'api/useData';
import Meta from 'components/Meta';

/**
 * Creates metadata for the privacy page from privacy data
 */
const PrivacyMeta = () => {
  const { data: privacyBlock } = useData('privacy');

  // Grabs the second text element, since the first is a last updated
  const secondParagraph = privacyBlock?.content?.json.content?.filter(
    (item) => item.nodeType === 'paragraph',
  )?.[1];

  const text = secondParagraph?.content?.map((node) => node.value)?.join('') ?? '';

  return <Meta title="Privacy Policy" description={text} />;
};

export default PrivacyMeta;

{'fraction_non_alphanumeric': 0.1541471048513302, 'fraction_numerical': 0.001564945226917058, 'mean_word_length': 4.419491525423729, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '5700340', 'n_tokens_mistral': 370, 'n_tokens_neox': 361, 'n_words': 113}