<commit_before>require 'rake'

module RSpec::Rake

  module ExampleGroup

    def self.included(base)
      base.instance_eval do

        metadata[:type] = :task
        metadata[:tasks_path] ||= File.join('../', 'lib', 'tasks')
        metadata[:rakefile] ||= nil

        subject(:task)  { Rake.application[self.class.top_level_description] }

        before(:all) do
          metadata = self.class.metadata<commit_msg>Use before `each` hook instead of `all`.<commit_after>require 'rake'

module RSpec::Rake

  module ExampleGroup

    def self.included(base)
      base.instance_eval do

        metadata[:type] = :task
        metadata[:tasks_path] ||= File.join('../', 'lib', 'tasks')
        metadata[:rakefile] ||= nil

        subject(:task)  { Rake.application[self.class.top_level_description] }

        before(:each) do
          metadata = self.class.metadata
{'fraction_non_alphanumeric': 0.13844393592677345, 'fraction_numerical': 0.0, 'mean_word_length': 2.8716814159292037, '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': '5914243', 'n_tokens_mistral': 269, 'n_tokens_neox': 256, 'n_words': 53}