<commit_before>window.passes_tags = (user, tags) -> 
  if typeof(tags) == 'string'
    tags = [tags]
  user = fetch(user)

  passes = true 
  for tag in tags 
    passes &&= user.tags[tag] && \
     !("#{user.tags[tag]}".toLowerCase() in ['no', 'false'])
  passes 

window.passes_tag_filter = (user, tag, regex) -> 
  user = fetch(user)
  passes = true 
  for tag, value of user.tags   
    passes ||= tag.match(regex) && !(value.toLowerCase() in ['no', 'false'])<commit_msg>minor bug fix with filter passing<commit_after>window.passes_tags = (user, tags) -> 
  if typeof(tags) == 'string'
    tags = [tags]
  user = fetch(user)

  passes = true 
  for tag in tags 
    passes &&= user?.tags?[tag] && \
     !("#{user?.tags?[tag]}".toLowerCase() in ['no', 'false'])
  passes 

window.passes_tag_filter = (user, tag, regex) -> 
  user = fetch(user)
  passes = true 
  for tag, value of user.tags   
    passes ||= tag.match(regex) && !(value.toLowerCase() in ['no', 'false'])
{'fraction_non_alphanumeric': 0.18480492813141683, 'fraction_numerical': 0.0, 'mean_word_length': 3.276315789473684, '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': '4537723', 'n_tokens_mistral': 347, 'n_tokens_neox': 351, 'n_words': 88}