<commit_before>
class Mumukit::Runner
  attr_reader :name, :runtime

  def initialize(name)
    @name = name
  end

  def configure
    @config ||= self.class.default_config.clone
    yield @config
  end

  def configure_runtime(config)
    @runtime = Mumukit::Runtime.new(config)
  end

  def config
    @config or raise 'This runner has not being configured yet'
  end

  def prefix
    name.camelize
  end

  def directives_pipeline
    @pipeline ||= new_directives_pipeline
  end

  def new_directives_pipeline
    if config.preprocessor_enabled
      Mumukit::Directives::Pipeline.new(
          [Mumukit::Directives::Sections.new,
           Mumukit::Directives::Interpolations.new('test'),
           Mumukit::Directives::Interpolations.new('extra'),
           Mumukit::Directives::Flags.new],
          config.comment_type)
    else
      Mumukit::Directives::NullPipeline
    end
  end

  def self.default_config
    @default_config
  end
<commit_msg>Add content interpolation directive to pipeline<commit_after>
class Mumukit::Runner
  attr_reader :name, :runtime

  def initialize(name)
    @name = name
  end

  def configure
    @config ||= self.class.default_config.clone
    yield @config
  end

  def configure_runtime(config)
    @runtime = Mumukit::Runtime.new(config)
  end

  def config
    @config or raise 'This runner has not being configured yet'
  end

  def prefix
    name.camelize
  end

  def directives_pipeline
    @pipeline ||= new_directives_pipeline
  end

  def new_directives_pipeline
    if config.preprocessor_enabled
      Mumukit::Directives::Pipeline.new(
          [Mumukit::Directives::Sections.new,
           Mumukit::Directives::Interpolations.new('test'),
           Mumukit::Directives::Interpolations.new('extra'),
           Mumukit::Directives::Interpolations.new('content'),
           Mumukit::Directives::Flags.new],
          config.comment_type)
    else
      Mumukit::Directives::NullPipeline
    end
  end

  def self.default_config
    @default_config
  end

{'fraction_non_alphanumeric': 0.09014363546310054, 'fraction_numerical': 0.0, 'mean_word_length': 3.1995841995841996, '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': '7110802', 'n_tokens_mistral': 627, 'n_tokens_neox': 625, 'n_words': 132}