<commit_before>const User = (function(){
  function User(system, container, nick){
    this.container = container;
    this.isOp = false;
    this.isVoice = false;
    this.nick = nick;
    this.system = system;
  }

  User.prototype.remove = function(){
    this.system.gui.removeUser(this.container);
  };

  User.prototype.op = function(){
    this.system.gui.opUser(this.container, this.nick);
    this.isOp = true;
  };

  User.prototype.deop = function(){
    this.system.gui.deopUser(this.container, this.nick, this.isVoice);
    this.isOp = false;
  };

  User.prototype.voice = function(){
    this.system.gui.voiceUser(this.container, this.nick, this.isOp);
    this.isVoice = true;
  };

  User.prototype.devoice = function(){
    this.system.gui.devoiceUser(this.container, this.nick, this.isOp);
    this.isVoice = false;
  };

  User.prototype.inaktiv = function(){
    this.system.gui.inaktiv(this.container);
  };

  User.prototype.uninaktiv = function(){
    this.system.gui.uninaktiv(this.conatiner);
  };

  User.prototype.updateNick = function(nick){
    this.system.gui.updateNick(this.container, this.nick, this.isVoice, this.isOp);
     const dom = this.container.getElementsByClassName("nick")[0];
     if(this.isOp){
       dom.innerHTML = "@"+nick;
     }else if(this.isVoice){
       dom.innerHTML = "+"+nick;
     }else{
       dom.innerHTML = nick;
     }
     this.nick = nick;
  };

  return User;
})();<commit_msg>Update user.js<commit_after>const User = (function(){
  function User(system, container, nick){
    this.container = container;
    this.isOp = false;
    this.isVoice = false;
    this.nick = nick;
    this.system = system;
  }

  User.prototype.remove = function(){
    this.system.gui.removeUser(this.container);
  };

  User.prototype.op = function(){
    this.system.gui.opUser(this.container, this.nick);
    this.isOp = true;
  };

  User.prototype.deop = function(){
    this.system.gui.deopUser(this.container, this.nick, this.isVoice);
    this.isOp = false;
  };

  User.prototype.voice = function(){
    this.system.gui.voiceUser(this.container, this.nick, this.isOp);
    this.isVoice = true;
  };

  User.prototype.devoice = function(){
    this.system.gui.devoiceUser(this.container, this.nick, this.isOp);
    this.isVoice = false;
  };

  User.prototype.inaktiv = function(){
    this.system.gui.inaktiv(this.container);
  };

  User.prototype.uninaktiv = function(){
    this.system.gui.uninaktiv(this.conatiner);
  };

  User.prototype.updateNick = function(nick){
    this.system.gui.updateNick(this.container, this.nick, this.isVoice, this.isOp);
    this.nick = nick;
  };

  return User;
})();
{'fraction_non_alphanumeric': 0.15777610818933133, 'fraction_numerical': 0.0003756574004507889, 'mean_word_length': 3.220285261489699, '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': '2670799', 'n_tokens_mistral': 929, 'n_tokens_neox': 899, 'n_words': 140}