<commit_before>const Collection = require('../util/Collection');

/**
 * Keeps track of mentions in a {@link Message}
 */
class MessageMentions {
  /**
   * @param {Message} message Message to read mentions from
   * @param {?Array<Object>} users Raw user objects from Discord
   * @param {?Array<Object>} roles Raw role objects from Discord
   * @param {?boolean} everyone Whether @everyone or @here were mentioned
   * @private
   */
  constructor(message, users, roles, everyone) {
    /**
     * Whether `@everyone` or ``@here` were mentioned
     * @type {boolean}
     */
    this.everyone = Boolean(everyone);

    if (users) {
      if (users instanceof Collection) {
        /**
         * Any users that were mentioned<commit_msg>Fix some docstrings<commit_after>const Collection = require('../util/Collection');

/**
 * Keeps track of mentions in a {@link Message}
 */
class MessageMentions {
  /**
   * @param {Message} message Message to read mentions from
   * @param {?Array<Object>} users Raw user objects from Discord
   * @param {?Array<Object>} roles Raw role objects from Discord
   * @param {?boolean} everyone Whether `@everyone` or `@here` were mentioned
   * @private
   */
  constructor(message, users, roles, everyone) {
    /**
     * Whether `@everyone` or `@here` were mentioned
     * @type {boolean}
     */
    this.everyone = Boolean(everyone);

    if (users) {
      if (users instanceof Collection) {
        /**
         * Any users that were mentioned
{'fraction_non_alphanumeric': 0.12693082605775688, 'fraction_numerical': 0.0, 'mean_word_length': 3.0821917808219177, 'pattern_counts': {'":': 0, '<': 7, '<?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': '6519796', 'n_tokens_mistral': 428, 'n_tokens_neox': 421, 'n_words': 145}