<commit_before># -*- coding: utf-8 -*-

module Isono
module Rack
  class ObjectMethod
    include Logger
    
    def initialize
      @obj = obj
    end
    
    def call(req, res)
      m = @obj.method(req.command)
      raise UnknownMethodError, "#{req.command}" if m.nil?
      res.response(m.arity > 0 ? m.call(*req.args) : m.call)
    end
    
  end
end
end
<commit_msg>fix argument mismatch in Rack::ObjectMethod.<commit_after># -*- coding: utf-8 -*-

module Isono
module Rack
  class ObjectMethod
    include Logger
    
    def initialize(obj)
      @obj = obj
    end
    
    def call(req, res)
      m = @obj.method(req.command)
      raise UnknownMethodError, "#{req.command}" if m.nil?
      res.response(m.arity > 0 ? m.call(*req.args) : m.call)
    end
    
  end
end
end

{'fraction_non_alphanumeric': 0.12055837563451777, 'fraction_numerical': 0.005076142131979695, 'mean_word_length': 2.2336065573770494, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '7534309', 'n_tokens_mistral': 277, 'n_tokens_neox': 271, 'n_words': 72}