<commit_before>require 'capistrano/ec2_role_tag/version'
require 'capistrano/ec2_role_tag/aws_ec2_role_loader'

module Capistrano
  module Ec2RoleTag
    class << self
      attr_accessor :provider, :stage
      def configure
        yield self
        self.stage = 'staging' if self.stage.nil?
        self.provider = Capistrano::Ec2RoleTag::AwsEc2RoleLoader.new(stage: self.stage)
      end
    end
    def ec2_by_role(role)
      Capistrano::Ec2RoleTag.provider.fetch(role)
    end
  end
  class Configuration
    def ec2_by_role(role)
      Capistrano::Ec2RoleTag.provider.fetch(role)
    end
  end
end

extend Capistrano::Ec2RoleTag<commit_msg>init if not<commit_after>require 'capistrano/ec2_role_tag/version'
require 'capistrano/ec2_role_tag/aws_ec2_role_loader'

module Capistrano
  module Ec2RoleTag
    class << self
      attr_accessor :provider, :stage
      def configure
        yield self
        self.stage = 'staging' if self.stage.nil?
        self.provider = Capistrano::Ec2RoleTag::AwsEc2RoleLoader.new(stage: self.stage)
      end
    end
  end
  class Configuration
    def ec2_by_role(role)
      if Capistrano::Ec2RoleTag.provider.nil?
        Capistrano::Ec2RoleTag.configure {|config| config.stage = fetch(:stage) }
      end
      Capistrano::Ec2RoleTag.provider.fetch(role)
    end
  end
end

extend Capistrano::Ec2RoleTag
{'fraction_non_alphanumeric': 0.0837037037037037, 'fraction_numerical': 0.016296296296296295, 'mean_word_length': 3.415032679738562, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6487164', 'n_tokens_mistral': 472, 'n_tokens_neox': 460, 'n_words': 86}