<commit_before>#  cleverbot.rb
#  Author: <NAME>
#  ------------------------
#  A Cinch plugin that provides Cleverbot interaction to yossarian-bot.
#  ------------------------
#  This code is licensed by <NAME> under the MIT License.
#  http://opensource.org/licenses/MIT

require 'open-uri'

require_relative 'yossarian_plugin'

class TinyURL < YossarianPlugin
	include Cinch::Plugin

	def usage
		'!turl <url> - Shorten the given <url> using TinyURL.'
	end

	def match?(cmd)
		cmd =~ /^(!)?(tinyurl)|(turl)$/
	end

	match /turl (http(s)?:\/\/[^ \t]*)/, method: :tinyurl
	match /tinyurl (http(s)?:\/\/[^ \t]*)/, method: :tinyurl
<commit_msg>correct comments<commit_after>#  tiny_url.rb
#  Author: <NAME>
#  ------------------------
#  A Cinch plugin that provides TinyURL interaction to yossarian-bot.
#  ------------------------
#  This code is licensed by William Woodruff under the MIT License.
#  http://opensource.org/licenses/MIT

require 'open-uri'

require_relative 'yossarian_plugin'

class TinyURL < YossarianPlugin
	include Cinch::Plugin

	def usage
		'!turl <url> - Shorten the given <url> using TinyURL.'
	end

	def match?(cmd)
		cmd =~ /^(!)?(tinyurl)|(turl)$/
	end

	match /turl (http(s)?:\/\/[^ \t]*)/, method: :tinyurl
	match /tinyurl (http(s)?:\/\/[^ \t]*)/, method: :tinyurl

{'fraction_non_alphanumeric': 0.22685185185185186, 'fraction_numerical': 0.0, 'mean_word_length': 2.7377521613832854, 'pattern_counts': {'":': 0, '<': 12, '<?xml version=': 0, '>': 10, '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': '3784270', 'n_tokens_mistral': 472, 'n_tokens_neox': 450, 'n_words': 124}