<commit_before>from re import sub


def check_command(p, c):
  A = sub('\D','1', sub('\d','0',c))
  B = '{:0{}b}'.format(p, len(c))
  return A == B<commit_msg>Update word-pattern.py<commit_after>from re import sub


def check_command(p, c):
    A = sub('\D','1', sub('\d','0',c))
    B = '{:0{}b}'.format(p, len(c))
    return A == B
{'fraction_non_alphanumeric': 0.25825825825825827, 'fraction_numerical': 0.018018018018018018, 'mean_word_length': 3.911764705882353, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5151988', 'n_tokens_mistral': 140, 'n_tokens_neox': 141, 'n_words': 32}