<commit_before>//
// Copyright (c) 2017 DrSmugleaf
//

"use strict"

class MemberExtension {
  get language() {
    if(!this._language) {
      const userSettings = this.guild.settings.get(this.id)
      this._language = userSettings ? userSettings.language : "english"
    }
    return this._language
  }

  set language(language) {
    const userSettings = this.guild.settings.get(this.id, {})
    this._language = language
    userSettings.language = language
    this.guild.settings.set(this.id, userSettings)
  }

  static applyToClass(target) {
    for(const prop of [
      "language"<commit_msg>Fixed server language not applying to members who had no language set<commit_after>//
// Copyright (c) 2017 DrSmugleaf
//

"use strict"

class MemberExtension {
  get language() {
    if(!this._language) {
      const userSettings = this.guild.settings.get(this.id)
      this._language = userSettings ? userSettings.language : null
    }
    return this._language
  }

  set language(language) {
    const userSettings = this.guild.settings.get(this.id, {})
    this._language = language
    userSettings.language = language
    this.guild.settings.set(this.id, userSettings)
  }

  static applyToClass(target) {
    for(const prop of [
      "language"
{'fraction_non_alphanumeric': 0.11137629276054097, 'fraction_numerical': 0.006364359586316627, 'mean_word_length': 3.1933333333333334, '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': '631089', 'n_tokens_mistral': 391, 'n_tokens_neox': 380, 'n_words': 86}