<commit_before>
function assertScrollable(scroller) {
  var f = overflow(scroller)
  if(!/auto|scroll/.test(f))
    throw new Error('scroller.style.overflowY must be scroll or auto, was:' + f + '!')
}

function isEnd(scroller, buffer, isPrepend) {
  //if the element is hidden, don't read anything into it.
  return (isPrepend ? isTop : isBottom)(scroller, buffer)
}

function isFilled(content) {
  return (
    !isVisible(content)
    //check if the scroller is not visible.
    // && content.getBoundingClientRect().height == 0
    //and has children. if there are no children,
    //it might be size zero because it hasn't started yet.
    && content.children.length > 10
    //&& !isVisible(scroller)
  )
}

function isVisible(el) {
  var style = getComputedStyle(el)
  return style.display !== 'none' && style.visibility !== 'hidden'
}

module.exports = {
  assertScrollable: assertScrollable,
  isEnd: isEnd,
  isFilled: isFilled,
  isVisible: isVisible
}


// 'private' functions
<commit_msg>comment out display none test of visibility<commit_after>
function assertScrollable(scroller) {
  var f = overflow(scroller)
  if(!/auto|scroll/.test(f))
    throw new Error('scroller.style.overflowY must be scroll or auto, was:' + f + '!')
}

function isEnd(scroller, buffer, isPrepend) {
  //if the element is hidden, don't read anything into it.
  return (isPrepend ? isTop : isBottom)(scroller, buffer)
}

function isFilled(content) {
  return (
    !isVisible(content)
    //check if the scroller is not visible.
    // && content.getBoundingClientRect().height == 0
    //and has children. if there are no children,
    //it might be size zero because it hasn't started yet.
    && content.children.length > 10
    //&& !isVisible(scroller)
  )
}

function isVisible(el) {
  var style = getComputedStyle(el)
  return style.visibility !== 'hidden'
}

module.exports = {
  assertScrollable: assertScrollable,
  isEnd: isEnd,
  isFilled: isFilled,
  isVisible: isVisible
}


// 'private' functions

{'fraction_non_alphanumeric': 0.124, 'fraction_numerical': 0.003, 'mean_word_length': 3.675233644859813, 'pattern_counts': {'":': 0, '<': 3, '<?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': '430708', 'n_tokens_mistral': 651, 'n_tokens_neox': 636, 'n_words': 186}