<commit_before>class Triad
  class ValueNotPresent < StandardError; end
  class DescriptorNotPresent < StandardError; end
  class KeyNotPresent < StandardError; end

  class Finder
    def initialize(interest, storage)
      @interest, @storage = interest, storage
    end
    attr_reader :interest, :storage
    private :storage

    def key_position
      0
    end

    def descriptor_position
      1
    end

    def value_position
      2
    end

    def interest_position
      basename = self.class.name.split('::').last
      interest_name = basename.sub('Finder','').downcase
      self.send("#{interest_name}_position")
    end

    def keys
      with_interest.keys<commit_msg>move to visual representation of positions<commit_after>class Triad
  class ValueNotPresent < StandardError; end
  class DescriptorNotPresent < StandardError; end
  class KeyNotPresent < StandardError; end

  class Finder
    def initialize(interest, storage)
      @interest, @storage = interest, storage
    end
    attr_reader :interest, :storage
    private :storage

    def positions
      [:key, :descriptor, :value]
    end

    def key_position
      positions.index(:key)
    end

    def descriptor_position
      positions.index(:descriptor)
    end

    def value_position
      positions.index(:value)
    end

    def interest_position
      basename = self.class.name.split('::').last
      interest_name = basename.sub('Finder','').downcase
      self.send("#{interest_name}_position")
    end

    def keys
      with_interest.keys
{'fraction_non_alphanumeric': 0.07862248213125406, 'fraction_numerical': 0.001949317738791423, 'mean_word_length': 2.9690721649484537, 'pattern_counts': {'":': 0, '<': 9, '<?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': '1414545', 'n_tokens_mistral': 431, 'n_tokens_neox': 420, 'n_words': 114}