<commit_before> # -*- coding: utf-8 -*-

 Plugin.create(:mikutter_premiamu) do

   DEFINED_TIME = Time.new.freeze

   def reply_and_favorite(tweet)
     replySentence = "puremiamuじゃなくてpremiamuだよ"
     Service.primary.post(:message => "#{"@" + tweet.user.idname + ' ' + replySentence}", :replyto => tweet)
     tweet.message.favorite(true)
   end

   on_appear do |ms|

     #does_reply_self_message = UserConfig[:does_reply_self_message] || false

     ms.each do |m|
       if m.message.to_s =~ /puremiamu/ and m[:created] > DEFINED_TIME and !m.retweet?
         unless m.me # and does_reply_self_message
           replySentence = "puremiamuじゃなくてpremiamuだよ"
		   Service.primary.post(:message => "#{"@" + tweet.user.idname + ' ' + replySentence}", :replyto => tweet)
		   tweet.message.favorite(true)
		   # reply_and_favorite(m)
         end
       end
     end
   end
 end<commit_msg>Not working properly<commit_after> # -*- coding: utf-8 -*-

 Plugin.create(:mikutter_premiamu) do

   DEFINED_TIME = Time.new.freeze

   on_appear do |ms|

     #does_reply_self_message = UserConfig[:does_reply_self_message] || false

     ms.each do |m|
       if m.message.to_s =~ /puremiamu/ and m[:created] > DEFINED_TIME and !m.retweet?
         unless m.me # and does_reply_self_message
           replySentence = "puremiamuじゃなくてpremiamuだよ"
           Service.primary.post(:message => "#{"@" + tweet.user.idname + ' ' + replySentence}", :replyto => tweet)
           tweet.message.favorite(true)
           # reply_and_favorite(m)
         end
       end
     end
   end
 end
{'fraction_non_alphanumeric': 0.1268323773103888, 'fraction_numerical': 0.0012746972594008922, 'mean_word_length': 2.838630806845966, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3473078', 'n_tokens_mistral': 589, 'n_tokens_neox': 545, 'n_words': 96}