<commit_before>#!/usr/bin/ruby

require "rubygems"
require "twitter"


puts "Welcome! Twtir posts to Twitter from the command line!"



puts "your token, please:"

please = gets.chomp




puts "...aaand your secret_token:"

secret_token = gets.chomp
puts "You're Done!"


Twitter.configure do |config|
  config.consumer_key = 'x26ksN2I8c1GvI0I9s1EQ'
  config.consumer_secret = '<KEY>'
  config.oauth_token = please = '<KEY>'
  config.oauth_token_secret = '<KEY>'
end


client = Twitter::Client.new





puts "Now,  post an update:"

update = gets.chomp

client.update(update)


puts "Now, post an update:"

update = gets.chomp

client.update(update)

<commit_msg>RC2: search added<commit_after>#!/usr/bin/ruby

require "rubygems"
require "twitter"


puts "Welcome! Twtir posts to Twitter from the command line!"



puts "your token, please:"

please = gets.chomp




puts "...aaand your secret_token:"

secret_token = gets.chomp


puts "You're Done!"


Twitter.configure do |config|
  config.consumer_key = 'x26ksN2I8c1GvI0I9s1EQ'
  config.consumer_secret = '<KEY>'
  config.oauth_token = please = '<KEY>'
  config.oauth_token_secret = '<KEY>'
end


client = Twitter::Client.new




puts 'What would you like to do?'

@do = gets.chomp



if @do = update [then]  

	puts "Now,  post an update:"

	update = gets.chomp

	client.update(update)


	puts "Now, post an update:"

	update = gets.chomp

	client.update(update)



elsif @do = search [then]

	@@search = Twitter::Search.new

	puts 'What hashtag?'

@hashtag = gets.chomp 

puts @@search.hahshtag(@hashtag ).language("en").no_retwets.per_page(1).fetch.first.text
{'fraction_non_alphanumeric': 0.12941176470588237, 'fraction_numerical': 0.011145510835913313, 'mean_word_length': 4.065830721003135, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '6289504', 'n_tokens_mistral': 654, 'n_tokens_neox': 590, 'n_words': 151}