<commit_before>import _hashLink from './_hashLink';
import animateScroll from './scroll';
import React from 'react';

function _animateScroll(event, animate) {
  event.preventDefault();
  const hash = event.target.getAttribute('href');
  animateScroll(hash, animate);
}

export default function HashLink(props) {
  return <_hashLink {...props} animateScroll={_animateScroll} />;
}
<commit_msg>Use hash attribute instead of full href<commit_after>import _hashLink from './_hashLink';
import animateScroll from './scroll';
import React from 'react';

function _animateScroll(event, animate) {
  event.preventDefault();
  const hash = event.target.hash;
  animateScroll(hash, animate);
}

export default function HashLink(props) {
  return <_hashLink {...props} animateScroll={_animateScroll} />;
}

{'fraction_non_alphanumeric': 0.12814070351758794, 'fraction_numerical': 0.0, 'mean_word_length': 5.697478991596639, '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': '4963542', 'n_tokens_mistral': 237, 'n_tokens_neox': 225, 'n_words': 64}