<commit_before>require 'faker'

module Faker
  class Role < Base
    class << self
      def name
        fetch('role.name')
      end

      def by_index i
        all_values.fetch(i) { require 'pry'; binding.pry }
      end

      private

      def all_values
        @values ||= translate('faker.role.name')
      end
    end
  end
end<commit_msg>Remove random pry in Faker::Role<commit_after>require 'faker'

module Faker
  class Role < Base
    class << self
      def name
        fetch('role.name')
      end

      def by_index i
        all_values.fetch(i) { raise NotEnoughRoles, "You only have #{i} roles defined, and you tried to access number #{i+1}!" }
      end

      private

      def all_values
        @values ||= translate('faker.role.name')
      end
    end
  end

  class NotEnoughRoles < StandardError; end
end
{'fraction_non_alphanumeric': 0.09090909090909091, 'fraction_numerical': 0.0011961722488038277, 'mean_word_length': 2.1466165413533833, 'pattern_counts': {'":': 0, '<': 10, '<?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': '1827785', 'n_tokens_mistral': 269, 'n_tokens_neox': 261, 'n_words': 79}