<commit_before># coding: utf-8
require 'cgi'
require 'cinch/formatting'

module Cinch
  module Plugins
    class Twitter
      module Formatter
        include Cinch::Formatting

        def format_tweet(tweet)
          tweet_text = expand_uris(tweet.text, tweet.attrs["entities"]["urls"])
          parts, head, body, tail, urls = [], [], [], [], []
          head = format(:bold,"#{tweet.user.screen_name} »")
          body << CGI::unescapeHTML(tweet_text.gsub("\n", " ").squeeze(" "))<commit_msg>If anything, it should be `extend`, not `include`.<commit_after># coding: utf-8
require 'cgi'
require 'cinch/formatting'

module Cinch
  module Plugins
    class Twitter
      module Formatter
        extend Cinch::Formatting

        def format_tweet(tweet)
          tweet_text = expand_uris(tweet.text, tweet.attrs["entities"]["urls"])
          parts, head, body, tail, urls = [], [], [], [], []
          head = format(:bold,"#{tweet.user.screen_name} »")
          body << CGI::unescapeHTML(tweet_text.gsub("\n", " ").squeeze(" "))
{'fraction_non_alphanumeric': 0.1628131021194605, 'fraction_numerical': 0.0019267822736030828, 'mean_word_length': 3.1067193675889326, 'pattern_counts': {'":': 0, '<': 7, '<?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': '2750131', 'n_tokens_mistral': 337, 'n_tokens_neox': 342, 'n_words': 73}