<commit_before>module Idobata::Hook
  class Kibela < Base
    screen_name 'kibe.la'
    icon_url hook_image_url('icon.png')
    template_name { "#{action}.html.haml" }
    before_render do
      skip_processing! if payload.action == "update" && !payload.notify
    end

    private

    def action
      payload.action
    end

    def hide_body?
      value_to_boolean(params[:hide_body])<commit_msg>Fix skip check at comment update for kibela<commit_after>module Idobata::Hook
  class Kibela < Base
    screen_name 'kibe.la'
    icon_url hook_image_url('icon.png')
    template_name { "#{action}.html.haml" }
    before_render do
      skip_processing! if skip?
    end

    private

    def skip?
      payload.action == "update" && (action == "comment" || !payload.notify)
    end

    def action
      payload.action
    end

    def hide_body?
      value_to_boolean(params[:hide_body])
{'fraction_non_alphanumeric': 0.10089686098654709, 'fraction_numerical': 0.0, 'mean_word_length': 2.968888888888889, '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': '205162', 'n_tokens_mistral': 293, 'n_tokens_neox': 285, 'n_words': 66}