<commit_before># -*- coding: utf-8 -*-

module Agharta
  class FileRecipe < Recipe
    attr_reader :path

    def self.execute(recipe_path)
      new(recipe_path).execute
    end

    def initialize(recipe_path)
      @name = File.basename(recipe_path)
      @path = recipe_path
    end

    def load!
      eval(File.read(path), binding)
    end

    def execute
      load!
      super
    end
  end<commit_msg>Join load method to execute method.<commit_after># -*- coding: utf-8 -*-

module Agharta
  class FileRecipe < Recipe
    attr_reader :path

    def self.execute(recipe_path)
      new(recipe_path).execute
    end

    def initialize(recipe_path)
      @name = File.basename(recipe_path)
      @path = recipe_path
    end

    def execute
      eval(File.read(path), binding)
      super
    end
  end
{'fraction_non_alphanumeric': 0.0897908979089791, 'fraction_numerical': 0.0024600246002460025, 'mean_word_length': 2.3916666666666666, 'pattern_counts': {'":': 0, '<': 5, '<?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': '486621', 'n_tokens_mistral': 273, 'n_tokens_neox': 265, 'n_words': 64}