<commit_before># encoding: utf-8
# This file is part of the K5 bot project.
# See files README.md and COPYING for copyright and licensing information.

# IRCUser describes an IRC user

class IRCUser
  attr_reader :name
  attr_accessor :realname, :host, :nick

  def initialize(name=nil, host=nil, realname=nil, nick=nil)
    @ident = !(name =~ /^~/)
    @name = name.sub(/^~/, '')
    @host, @realname, @nick = host, realname, nick
  end

  def ident?; @ident; end<commit_msg>Have IRCUser.ident? properly return a boolean<commit_after># encoding: utf-8
# This file is part of the K5 bot project.
# See files README.md and COPYING for copyright and licensing information.

# IRCUser describes an IRC user

class IRCUser
  attr_reader :name
  attr_accessor :realname, :host, :nick

  def initialize(name=nil, host=nil, realname=nil, nick=nil)
    @ident = !(name =~ /^~/)
    @name = name.sub(/^~/, '')
    @host, @realname, @nick = host, realname, nick
  end

  def ident?
    !!@ident
  end
{'fraction_non_alphanumeric': 0.12727272727272726, 'fraction_numerical': 0.00404040404040404, 'mean_word_length': 3.7416267942583734, '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': '5765773', 'n_tokens_mistral': 343, 'n_tokens_neox': 332, 'n_words': 114}