<commit_before>class TrelloWebhooksController < ActionController::Base
  include TrelloWebhook::Processor

  def update_board(args)
    puts '################################################'
    puts args
    puts '################################################'
    case json_body["action"]["data"]["old"].keys.first
      when "desc"
        Project.find_by(board: json_body["model"]["id"]).update_attributes(description: json_body["action"]["data"]["board"]["desc"]) 
      when "name"
        Project.find_by(board: json_body["model"]["id"]).update_attributes(name: json_body["action"]["data"]["board"]["name"])   
    end 
  end

  def webhook_secret
    puts '#################event###############################'
    puts event
    puts '############request_body####################################'
    puts request_body
    puts '#########json_body3#############'
    puts json_body
    puts '############normalized_body####################################'
    puts "#{request_body}#{request_url}".unpack('U*').pack('c*')
    puts '######################3request.body'
    puts request.body
    ENV['TRELLO_SECRET']
  end
end
 TrelloWebhook::Processor::SignatureError (Actual: 4ipCjUQ6OH1OyFR0Q7jbjJhxw6Q=, Expected: +HRF5Qx0M72zJdUIVueBUgYFlcw=):<commit_msg>added minor trello webhooks modification<commit_after>class TrelloWebhooksController < ActionController::Base
  include TrelloWebhook::Processor

  def update_board(args)
    puts '################################################'
    puts args
    puts '################################################'
    case json_body["action"]["data"]["old"].keys.first
      when "desc"
        Project.find_by(board: json_body["model"]["id"]).update_attributes(description: json_body["action"]["data"]["board"]["desc"]) 
      when "name"
        Project.find_by(board: json_body["model"]["id"]).update_attributes(name: json_body["action"]["data"]["board"]["name"])   
    end 
  end

  def webhook_secret
    puts '#################event###############################'
    puts event
    puts '############request_body####################################'
    puts request_body
    puts '#########json_body3#############'
    puts json_body
    puts '############normalized_body####################################'
    puts "#{request_body}#{request_url}".unpack('U*').pack('c*')
    puts '######################3request.body'
    puts request.body
    ENV['TRELLO_SECRET']
  end
end
{'fraction_non_alphanumeric': 0.3447572419420645, 'fraction_numerical': 0.005711954304365565, 'mean_word_length': 5.946175637393767, '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': '968439', 'n_tokens_mistral': 698, 'n_tokens_neox': 738, 'n_words': 108}