<commit_before>module NeonRAW
  module Objects
    class Thing
      # Methods for moderators.
      module Moderateable
        # Approve a comment or submission.
        # @!method approve!
        def approve!
          params = {}
          params[:id] = name
          @client.request_data('/api/approve', :post, params)
          refresh!
        end

        # Checks whether or not the thing was distinguished by a privileged
        # user.
        # @!method distinguished?
        # @return [Boolean] Returns whether or not the comment was
        #   distinguished.
        def distinguished?
          if @distinguished.nil?
            false
          else
            true
          end
        end

        # Distinguish a submission/comment.
        # @!method distinguish(type)
        # @param type [Symbol] The type of distinguish you want to do.
        # @option type :yes [Symbol] Distinguish the thing.
        # @option type :no [Symbol] Undistinguish the thing.
        # @option type :admin [Symbol] Admin Distinguish the thing (Admins
        #   only).
        # @option type :special [Symbol] Add a user-specific distinguish
        #   (Depends on the user).
        # @!group Moderators
        def distinguish(type)
          params = {}
          params[:api_type] = 'json'
          params[:how] = type
          params[:id] = name
          @client.request_data('/api/distinguish', :post, params)
          refresh!
        end

        # Checks who distinguished the thing.
        # @!method distinguished_by
        # @return [String, nil] Returns who distinguished the comment or nil if
        #   the comment isn't distinguished [moderator, admin, special].
        def distinguished_by<commit_msg>touched up docs<commit_after>module NeonRAW
  module Objects
    class Thing
      # Methods for moderators.
      # @!attribute [r] mod_reports
      #   @return [Array<String>, nil] Returns the mod reports or nil if there
      #     are none.
      # @!attribute [r] user_reports
      #   @return [Array<String>, nil] Returns the user reports or nil if there
      #     are none.
      module Moderateable
        # Approve a comment or submission.
        # @!method approve!
        def approve!
          params = {}
          params[:id] = name
          @client.request_data('/api/approve', :post, params)
          refresh!
        end

        # Checks whether or not the thing was distinguished by a privileged
        # user.
        # @!method distinguished?
        # @return [Boolean] Returns whether or not the comment was
        #   distinguished.
        def distinguished?
          if @distinguished.nil?
            false
          else
            true
          end
        end

        # Distinguish a submission/comment.
        # @!method distinguish(type)
        # @param type [String] The type of distinguish you want to do [yes, no,
        #   admin, special].
        # @!group Moderators
        def distinguish(type)
          params = {}
          params[:api_type] = 'json'
          params[:how] = type
          params[:id] = name
          @client.request_data('/api/distinguish', :post, params)
          refresh!
        end

        # Checks who distinguished the thing.
        # @!method distinguished_by
        # @return [String, nil] Returns who distinguished the comment or nil if
        #   the comment isn't distinguished [moderator, admin, special].
        def distinguished_by
{'fraction_non_alphanumeric': 0.08321336020731356, 'fraction_numerical': 0.0, 'mean_word_length': 1.8175182481751824, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '514772', 'n_tokens_mistral': 916, 'n_tokens_neox': 880, 'n_words': 313}