<commit_before>require 'faraday/error'

module Travis
  module Services
    module Github
      class FindAdmin < Base
        extend Travis::Instrumentation
        include Travis::Logging

<<<<<<< HEAD
=======
        class << self
          def for_repository(repository)
            new(repository).run
          end
        end

>>>>>>> ac0a8e4c86c7e088b4397e38a69c0d80b83475b5
        def run
          admin = candidates.detect { |user| validate(user) }
          admin || raise_admin_missing
        end
        instrument :run

        def repository
          params[:repository]
        end<commit_msg>remove crap<commit_after>require 'faraday/error'

module Travis
  module Services
    module Github
      class FindAdmin < Base
        extend Travis::Instrumentation
        include Travis::Logging

        def run
          admin = candidates.detect { |user| validate(user) }
          admin || raise_admin_missing
        end
        instrument :run

        def repository
          params[:repository]
        end
{'fraction_non_alphanumeric': 0.0755813953488372, 'fraction_numerical': 0.025193798449612403, 'mean_word_length': 2.0471976401179943, 'pattern_counts': {'":': 0, '<': 14, '<?xml version=': 0, '>': 10, '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': '6947107', 'n_tokens_mistral': 294, 'n_tokens_neox': 272, 'n_words': 69}