<commit_before>require 'mechanize'
require 'open-uri'

class Url

  def reply(message)
    URI.extract(message.text, %w(http https)).map { |uri| page_title(uri) }.each do |title|
      return title
    end
  end

 
private
    def page_title(uri)
      case uri
      when /twitter.com/
        get_tweet(uri)
      when /page6.auctions.yahoo.co.jp/<commit_msg>modify yahoo url<commit_after>require 'mechanize'
require 'open-uri'

class Url

  def reply(message)
    URI.extract(message.text, %w(http https)).map { |uri| page_title(uri) }.each do |title|
      return title
    end
  end

 
private
    def page_title(uri)
      case uri
      when /twitter.com/
        get_tweet(uri)
      when /auctions.yahoo.co.jp/
{'fraction_non_alphanumeric': 0.11265646731571627, 'fraction_numerical': 0.0013908205841446453, 'mean_word_length': 2.673469387755102, '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': '6460429', 'n_tokens_mistral': 264, 'n_tokens_neox': 253, 'n_words': 61}