<commit_before>http = require 'http'

# Description: 
#   Listens for patterns matching youtrack issues and provides information about 
#   them
# 
# Commands:
#   #project-number - responds with a summary of the issue

host     = process.env.HUBOT_YOUTRACK_HOSTNAME
username = process.env.HUBOT_YOUTRACK_USERNAME
password = process.env.HUBOT_YOUTRACK_PASSWORD

# http://en.wikipedia.org/wiki/You_talkin'_to_me%3F
youTalkinToMe = (msg, robot) ->
  input = msg.message.text.toLowerCase()
  name = robot.name.toLowerCase()
  input.indexOf(name) != -1

getProject = (msg) ->
  s = msg.message.room.replace /-.*/, ''

module.exports = (robot) ->

  robot.hear /what (are )?my issues/i, (msg) ->
    msg.send "@#{msg.message.user.name}, you have many issues.  Shall I enumerate them?  I think not."   if Math.random() < .2
<commit_msg>Update documentation for youtrack<commit_after>http = require 'http'

# Description: 
#   Listens for patterns matching youtrack issues and provides information about 
#   them
# 
# Dependencies:
#   None
#
# Configuration:
#   HUBOT_YOUTRACK_HOSTNAME = <host:port>
#   HUBOT_YOUTRACK_USERNAME = <user name>
#   HUBOT_YOUTRACK_PASSWORD = <password>
#
# Commands:
#   what are my issues? - Show my in progress issues
#   what can I work on? - Show open issues
#   #project-number - responds with a summary of the issue
#
# Author:
#   <NAME> and <NAME>

host     = process.env.HUBOT_YOUTRACK_HOSTNAME
username = process.env.HUBOT_YOUTRACK_USERNAME
password = process.env.HUBOT_YOUTRACK_PASSWORD

# http://en.wikipedia.org/wiki/You_talkin'_to_me%3F
youTalkinToMe = (msg, robot) ->
  input = msg.message.text.toLowerCase()
  name = robot.name.toLowerCase()
  input.indexOf(name) != -1

getProject = (msg) ->
  s = msg.message.room.replace /-.*/, ''

module.exports = (robot) ->

  robot.hear /what (are )?my issues/i, (msg) ->
    msg.send "@#{msg.message.user.name}, you have many issues.  Shall I enumerate them?  I think not."   if Math.random() < .2

{'fraction_non_alphanumeric': 0.13023725391216556, 'fraction_numerical': 0.003028773346794548, 'mean_word_length': 3.7303102625298328, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 16, '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': '6483151', 'n_tokens_mistral': 707, 'n_tokens_neox': 698, 'n_words': 170}