<commit_before># /notice processor for Hipchat room
#   -- use /notice to notify everyone in a room with the passed in message
#
# Author::    <NAME>  (mailto:<EMAIL>)
# Copyright:: Copyright (c) 2015 <NAME>
# License::   MIT

Hippie::App.controllers :notice, conditions: {:protect => true} do

  post '/process' do
    request_payload = convert_json_body(request)
    message = request_payload['item']['message']['message'].gsub('/notice', '')
    respond(message, {color: 'red', notify: true})
  end


end<commit_msg>use token as part of the url<commit_after># /notice processor for Hipchat room
#   -- use /notice to notify everyone in a room with the passed in message
#
# Author::    <NAME>  (mailto:<EMAIL>)
# Copyright:: Copyright (c) 2015 <NAME>
# License::   MIT

Hippie::App.controllers :notice, conditions: {:protect => true} do

  post '/process/:token' do
    request_payload = convert_json_body(request)
    message = request_payload['item']['message']['message'].gsub('/notice', '')
    respond(message, {color: 'red', notify: true})
  end


end
{'fraction_non_alphanumeric': 0.1509433962264151, 'fraction_numerical': 0.007547169811320755, 'mean_word_length': 4.413265306122449, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, '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': '3187237', 'n_tokens_mistral': 337, 'n_tokens_neox': 319, 'n_words': 103}