<commit_before>module Overcommit::HookContext
  # Contains helpers related to contextual information used by pre-push hooks.
  class PrePush < Base
    attr_accessor :args

    def remote_name
      @args[0]
    end

    def remote_url
      @args[1]
    end

    def pushed_commits
      input_lines.map do |line|
        PushedCommit.new(*line.split(' '))
      end
    end

    private

    def input_lines
      @input_lines ||= ARGF.read.split("\n")
    end

    PushedCommit = Struct.new(:local_ref, :local_sha1, :remote_ref, :remote_sha1) do
      def to_s
        "#{local_ref} #{local_sha1} #{remote_ref} #{remote_sha1}"
      end
    end<commit_msg>Remove input_lines method from HookContext::PrePush<commit_after>module Overcommit::HookContext
  # Contains helpers related to contextual information used by pre-push hooks.
  class PrePush < Base
    attr_accessor :args

    def remote_name
      @args[0]
    end

    def remote_url
      @args[1]
    end

    def pushed_commits
      input_lines.map do |line|
        PushedCommit.new(*line.split(' '))
      end
    end

    PushedCommit = Struct.new(:local_ref, :local_sha1, :remote_ref, :remote_sha1) do
      def to_s
        "#{local_ref} #{local_sha1} #{remote_ref} #{remote_sha1}"
      end
    end
{'fraction_non_alphanumeric': 0.0937746256895193, 'fraction_numerical': 0.009456264775413711, 'mean_word_length': 2.746312684365782, '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': '7235166', 'n_tokens_mistral': 424, 'n_tokens_neox': 417, 'n_words': 103}