<commit_before>module Line
  module Bot
    module Receive
      class Message
        attr_reader :id, :from_mid, :to_mid, :from_channel_id, :to_channel_id, :event_type, :created_time, :content

        def initialize(env)
          @id = env['content']['id']
          @from_mid = env['content']['from']
          @to_mid = env['content']['to']

          @from_channel_id = env['fromChannel']
          @to_channel_id = env['toChannel']

          @event_type = env['eventType']

          (epoch, ms) = env['createdTime'].to_i.divmod(1000)
          @created_time = Time.at(epoch, ms)

          @content = create_content(env['content'])
        end

        def create_content(attrs)
          case attrs['contentType']<commit_msg>rename<commit_after>module Line
  module Bot
    module Receive
      class Message
        attr_reader :id, :from_mid, :to_mid, :from_channel_id, :to_channel_id, :event_type, :created_time, :content

        def initialize(env)
          @id = env['content']['id']
          @from_mid = env['content']['from']
          @to_mid = env['content']['to']

          @from_channel_id = env['fromChannel']
          @to_channel_id = env['toChannel']

          @event_type = env['eventType']

          (time, usec) = env['content']['createdTime'].to_i.divmod(1000)
          @created_time = Time.at(time, usec)

          @content = create_content(env['content'])
        end

        def create_content(attrs)
          case attrs['contentType']
{'fraction_non_alphanumeric': 0.13802435723951287, 'fraction_numerical': 0.005412719891745603, 'mean_word_length': 2.5985401459854014, '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': '1186763', 'n_tokens_mistral': 465, 'n_tokens_neox': 451, 'n_words': 87}