<commit_before>module DynaMo
  module Environment
    # dummy.
  end
end

module Kernel
  # define class A -> A.prepend(X) -> overwrite defs of A
  #   => A.ancestors: [X, A, ...] (correct)

  # define A -> A.prepend(X) -> define B < A
  #   => B.ancestors: [B, X, A, ...] (correct)

  def dynamo_define(target_name_or_instance, default_context_name, &block)
    raise "block is not given for dynamo_define" unless block_given?
    # target_name_or_instance accepts module instance, to help programmer to avoid typo
    ::DynaMo.synchronize do
      # get/create context object and evaluate block with it
    end
  end

  def dynamo_context(context_name, &block)
    raise "block is not given for dynamo_context" unless block_given?
    # get context, apply context and yield block

    yield
  end

  def dynamo_super(*args)
    Thread.current[:dynamo_stack].last.call(*args)
  end
end<commit_msg>remove comment which does not make sense now<commit_after>module DynaMo
  module Environment
    # dummy.
  end
end

module Kernel
  def dynamo_define(target_name_or_instance, default_context_name, &block)
    raise "block is not given for dynamo_define" unless block_given?
    # target_name_or_instance accepts module instance, to help programmer to avoid typo
    ::DynaMo.synchronize do
      # get/create context object and evaluate block with it
    end
  end

  def dynamo_context(context_name, &block)
    raise "block is not given for dynamo_context" unless block_given?
    # get context, apply context and yield block

    yield
  end

  def dynamo_super(*args)
    Thread.current[:dynamo_stack].last.call(*args)
  end
end
{'fraction_non_alphanumeric': 0.07847946045370938, 'fraction_numerical': 0.0, 'mean_word_length': 3.610169491525424, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 9, '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': '7430176', 'n_tokens_mistral': 525, 'n_tokens_neox': 509, 'n_words': 169}