<commit_before>module CatarsePagarme
  class NotificationsController < CatarsePagarme::ApplicationController
    skip_before_filter :authenticate_user!
    skip_before_filter :force_http

    def create
      Rails.logger.info "Start IPN"
      Rails.logger.info contribution.try(:payment_id)
      Rails.logger.info params[:fingerprint]
      if PagarMe::validate_fingerprint(contribution.try(:payment_id), params[:fingerprint])
        Rails.logger.info "GET FINGERPRINT"
        if contribution
          contribution.payment_notifications.create(extra_data: params.to_json)
          delegator.change_status_by_transaction(params[:current_status])

          return render nothing: true, status: 200
        end

        return render nothing: true, status: 404
      end

      Rails.logger.info "CANT CHECK FINGERPRINT :("

      render nothing: true, status: 404
    end
  end
end<commit_msg>remove logger<commit_after>module CatarsePagarme
  class NotificationsController < CatarsePagarme::ApplicationController
    skip_before_filter :authenticate_user!
    skip_before_filter :force_http

    def create
      if PagarMe::validate_fingerprint(contribution.try(:payment_id), params[:fingerprint])
        if contribution
          contribution.payment_notifications.create(extra_data: params.to_json)
          delegator.change_status_by_transaction(params[:current_status])

          return render nothing: true, status: 200
        end

        return render nothing: true, status: 404
      end

      render nothing: true, status: 404
    end
  end
end
{'fraction_non_alphanumeric': 0.06960408684546615, 'fraction_numerical': 0.011494252873563218, 'mean_word_length': 3.542028985507246, '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': '3832351', 'n_tokens_mistral': 461, 'n_tokens_neox': 426, 'n_words': 96}