<commit_before>
def empty():
  """
  Returns an empty iterator
  """
  return iter(())

def identity(iterable):
  for item in iterable:
    yield item


class Map(object):
  def __init__(self, map_function):
    self.map_function = map_function

  def __call__(self, iterable):
    for item in iterable:
      yield self.map_function(item)


class Filter(object):
  def __init__(self, filter_function):
    self.filter_function = filter_function

  def __call__(self, iterable):
    for item in iterable:<commit_msg>Removed the empty() function since it wasn't needed.<commit_after>
def identity(iterable):
  for item in iterable:
    yield item


class Map(object):
  def __init__(self, map_function):
    self.map_function = map_function

  def __call__(self, iterable):
    for item in iterable:
      yield self.map_function(item)


class Filter(object):
  def __init__(self, filter_function):
    self.filter_function = filter_function

  def __call__(self, iterable):
    for item in iterable:
{'fraction_non_alphanumeric': 0.09309309309309309, 'fraction_numerical': 0.0, 'mean_word_length': 4.05050505050505, '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': '2527601', 'n_tokens_mistral': 315, 'n_tokens_neox': 305, 'n_words': 92}