<commit_before>class Notifier
  class SlackNotifier < Base
    private

    def notify
      response = channel.chat_postMessage(message)
      notification.prop.update(slack_ts: response[:ts])

    rescue Slack::Web::Api::Error => err
      Rails.logger.error "Sending slack notifaction failed. Reason: #{err}"
    end

    def channel<commit_msg>Report to Rollbar if sending notification failed<commit_after>class Notifier
  class SlackNotifier < Base
    private

    def notify
      response = channel.chat_postMessage(message)
      notification.prop.update(slack_ts: response[:ts])

    rescue Slack::Web::Api::Error => err
      Rollbar.error "Sending slack notifaction failed. Reason: #{err}"
    end

    def channel
{'fraction_non_alphanumeric': 0.08953168044077135, 'fraction_numerical': 0.0, 'mean_word_length': 3.6012658227848102, 'pattern_counts': {'":': 0, '<': 5, '<?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': '4027455', 'n_tokens_mistral': 214, 'n_tokens_neox': 205, 'n_words': 55}