<commit_before>document.addEventListener("DOMContentLoaded", function () {
  document.addEventListener("scroll", dealHeadShow, false);
  if (/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(navigator.userAgent)) {
    document.addEventListener("touchmove", dealHeadShow, false);
  }
}, false);

function dealHeadShow() {
  if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
    document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-overflow');
  } else {
    document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-top');
  }
}
<commit_msg>fixed ios Scroll<commit_after>document.addEventListener("DOMContentLoaded", function () {
  document.addEventListener("scroll", dealHeadShow, false);
  if (/\(i[^;]+;( U;)? CPU.+Mac OS X/.test(navigator.userAgent)) {
    document.addEventListener("touchend", dealHeadShow, false);
  }
}, false);

function dealHeadShow() {
  if (document.body.scrollTop > 300 || document.documentElement.scrollTop > 300) {
    document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-overflow');
  } else {
    document.getElementById("J_header").setAttribute('class', 'header-menu header-menu-top');
  }
}

{'fraction_non_alphanumeric': 0.17398373983739837, 'fraction_numerical': 0.00975609756097561, 'mean_word_length': 5.654054054054054, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '4393550', 'n_tokens_mistral': 375, 'n_tokens_neox': 361, 'n_words': 60}