<commit_before>Robot = require 'robot'

class Shell extends Robot
  send: (user, strings...) ->
    strings.forEach (str) ->
      console.log str

  reply: (user, strings...) ->
    strings.forEach (str) =>
      @send user, "#{user.name}: #{str}"

  run: ->
    console.log "Hubot: the Shell."

    user = new Robot.User 1, 'shell'
    process.stdin.resume()
    process.stdin.on 'data', (txt) =>
      txt.toString().split("\n").forEach (line) =>
        return if line.length == 0
        @receive new Robot.Message user, line

exports.Shell = Shell<commit_msg>setup a few users in the database<commit_after>Robot = require 'robot'

class Shell extends Robot
  send: (user, strings...) ->
    strings.forEach (str) ->
      console.log str

  reply: (user, strings...) ->
    strings.forEach (str) =>
      @send user, "#{user.name}: #{str}"

  run: ->
    console.log "Hubot: the Shell."

    user = @userForId('1', {name: "Shell"})
    console.log user

    process.stdin.resume()
    process.stdin.on 'data', (txt) =>
      txt.toString().split("\n").forEach (line) =>
        return if line.length == 0
        @receive new Robot.Message user, line

    setTimeout =>
      user   = @userForId('1', {name: "Shell"})
      atmos  = @userForId('2', {name: "atmos"})
      holman = @userForId('3', {name: "holman"})
    , 3000

exports.Shell = Shell
{'fraction_non_alphanumeric': 0.17503692762186115, 'fraction_numerical': 0.00812407680945347, 'mean_word_length': 2.603723404255319, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '775014', 'n_tokens_mistral': 461, 'n_tokens_neox': 443, 'n_words': 120}