<commit_before>require 'rubygems'
require 'bundler/setup'

Bundler.require(:default)

require 'highline/import'

Dir["lib/**/*.rb"].each {|file| require_relative file }

animations = [
  {name: 'people', animation: PersonAnimation.new(['me'])},
  {name: 'dog-car', animation: DogCarAnimation.new},
  {name: 'dog-car-punkd', animation: DogCarPunkdAnimation.new},
  {name: 'rolling-face', animation: RollingFaceAnimation.new},
  {name: 'donald-trump-quotes', animation: DonaldTrumpQuotesAnimation.new}
]
selections = animations.each_with_index.map {|animation, index| "#{index + 1}: #{animation[:name]}"}.join("\n")
animation = ask("What animation do you want to play?\n" + selections) {|q| q.echo = true}
selected_animation = animations[animation.to_i - 1][:animation]
team_name = ask('What is your Slack team name?') {|q| q.echo = true}
email = ask('What is your email address?') {|q| q.echo = true}
password = ask('What is your password?') {|q| q.echo = '*'}
channel = ask('What channel do you want to send a message to?') {|q| q.echo = true}
session = SessionInitializer.init(team_name, email, password, channel)<commit_msg>Added in the clock animation to the list.<commit_after>require 'rubygems'
require 'bundler/setup'

Bundler.require(:default)

require 'highline/import'

Dir["lib/**/*.rb"].each {|file| require_relative file }

animations = [
  {name: 'people', animation: PersonAnimation.new(['me'])},
  {name: 'dog-car', animation: DogCarAnimation.new},
  {name: 'dog-car-punkd', animation: DogCarPunkdAnimation.new},
  {name: 'rolling-face', animation: RollingFaceAnimation.new},
  {name: 'donald-trump-quotes', animation: DonaldTrumpQuotesAnimation.new},
  {name: 'clock', animation: ClockAnimation.new}
]
selections = animations.each_with_index.map {|animation, index| "#{index + 1}: #{animation[:name]}"}.join("\n")
animation = ask("What animation do you want to play?\n" + selections) {|q| q.echo = true}
selected_animation = animations[animation.to_i - 1][:animation]
team_name = ask('What is your Slack team name?') {|q| q.echo = true}
email = ask('What is your email address?') {|q| q.echo = true}
password = ask('What is your password?') {|q| q.echo = '*'}
channel = ask('What channel do you want to send a message to?') {|q| q.echo = true}
session = SessionInitializer.init(team_name, email, password, channel)
{'fraction_non_alphanumeric': 0.17253218884120172, 'fraction_numerical': 0.0017167381974248926, 'mean_word_length': 5.776162790697675, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1701764', 'n_tokens_mistral': 782, 'n_tokens_neox': 759, 'n_words': 208}