<commit_before>module UV
  module Resource
    def check_result(rc)
      @loop.lookup_error(rc) unless rc >= 0 || rc.nil?
    end

    def check_result!(rc)
      e = check_result(rc)
      raise e if e
    end

    def to_ptr
      @pointer
    end
<commit_msg>fix error check<commit_after>module UV
  module Resource
    def check_result(rc)
      @loop.lookup_error(rc) unless rc.nil? || rc >= 0 
    end

    def check_result!(rc)
      e = check_result(rc)
      raise e if e
    end

    def to_ptr
      @pointer
    end

{'fraction_non_alphanumeric': 0.0831758034026465, 'fraction_numerical': 0.003780718336483932, 'mean_word_length': 2.1547619047619047, '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': '612156', 'n_tokens_mistral': 186, 'n_tokens_neox': 178, 'n_words': 52}