<commit_before>module MassInsert
  module Adapters
    module AdapterHelpers
      module Timestamp

        # Returns true o false if the database table has the
        # timestamp columns.
        def timestamp?
          columns.include?(:created_at) && columns.include?(:updated_at)
        end

        # Returns timestamp format according to the database adapter. This
        # function can be overwrite in database adapters classes to put the
        # correct format to that database.
        def timestamp_format
          "%Y-%m-%d %H:%M:%S.%6N"
        end

        # Returns the timestamp value with specific format according to the
        # correct timestamp format to that database.
        def timestamp
          Time.now.strftime(timestamp_format)
        end

        # Returns the timestamp values to be merge into row values that
        # will be saved in the database.
        def timestamp_hash
          timestamp_value = timestamp
          {:created_at => timestamp_value, :updated_at => timestamp_value}
        end

      end
    end<commit_msg>Updating comments in Timestamp module<commit_after>module MassInsert
  module Adapters
    module AdapterHelpers
      module Timestamp

        # Returns true o false if the database table has timestamp columns.
        def timestamp?
          columns.include?(:created_at) && columns.include?(:updated_at)
        end

        # Returns timestamp format according to the database adapter. This
        # function can be overwrite in database adapters classes.
        def timestamp_format
          "%Y-%m-%d %H:%M:%S.%6N"
        end

        # Returns the timestamp value according to the correct timestamp
        # format to that database engine.
        def timestamp
          Time.now.strftime(timestamp_format)
        end

        # Returns the timestamp hash to be merge into row values that will
        # be saved in the database.
        def timestamp_hash
          timestamp_value = timestamp
          {:created_at => timestamp_value, :updated_at => timestamp_value}
        end

      end
    end
{'fraction_non_alphanumeric': 0.054519368723098996, 'fraction_numerical': 0.0009564801530368245, 'mean_word_length': 2.1890243902439024, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '9033', 'n_tokens_mistral': 508, 'n_tokens_neox': 491, 'n_words': 198}