<commit_before>require 'etc'

module OodSupport
  # A helper object describing a Unix group's details
  class Group
    # The id of the group
    # @return [Fixnum] the group id
    attr_reader :id

    # The name of the group
    # @return [String] the group name
    attr_reader :name

    # @param group [Fixnum, #to_s] the group id or name
    def initialize(group = Process.group)
      if group.is_a?(Fixnum)
        @id = group
        @name = Etc.getgrgid(group).name
      else
        @name = group
        @id = Etc.getgrnam(group.to_s).gid
      end
    end

    # The comparison operator for sorting values<commit_msg>fixed group name not being string<commit_after>require 'etc'

module OodSupport
  # A helper object describing a Unix group's details
  class Group
    # The id of the group
    # @return [Fixnum] the group id
    attr_reader :id

    # The name of the group
    # @return [String] the group name
    attr_reader :name

    # @param group [Fixnum, #to_s] the group id or name
    def initialize(group = Process.group)
      if group.is_a?(Fixnum)
        @id = group
        @name = Etc.getgrgid(@id).name
      else
        @name = group.to_s
        @id = Etc.getgrnam(@name).gid
      end
    end

    # The comparison operator for sorting values
{'fraction_non_alphanumeric': 0.08125, 'fraction_numerical': 0.0, 'mean_word_length': 2.4069148936170213, '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': '3592138', 'n_tokens_mistral': 410, 'n_tokens_neox': 395, 'n_words': 142}