<commit_before>module JanusGateway

  class Resource

    include Events::Emitter

    attr_accessor :id

    # @param [JanusGateway::Client] client
    # @param [String] id
    def initialize(client, id = nil)
      @client = client
      @id = id
    end

    # @return [String, NilClass]
    def id
      @id
    end

    # @return [JanusGateway::Client]
    def client
      @client
    end

    # @return [String, NilClass]
    def name
      raise("`#{__method__}` is not implemented for `#{self.class.name}`")
    end

    # @return [Concurrent::Promise]
    def create<commit_msg>Always return @id as string<commit_after>module JanusGateway

  class Resource

    include Events::Emitter

    attr_accessor :id

    # @param [JanusGateway::Client] client
    # @param [String] id
    def initialize(client, id = nil)
      @client = client
      @id = id
    end

    # @return [String]
    def id
      @id.to_s
    end

    # @return [JanusGateway::Client]
    def client
      @client
    end

    # @return [String, NilClass]
    def name
      raise("`#{__method__}` is not implemented for `#{self.class.name}`")
    end

    # @return [Concurrent::Promise]
    def create
{'fraction_non_alphanumeric': 0.10886075949367088, 'fraction_numerical': 0.0, 'mean_word_length': 2.43768115942029, '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': '7633302', 'n_tokens_mistral': 385, 'n_tokens_neox': 380, 'n_words': 106}