<commit_before>require 'spec_helper'

RSpec.describe WowzaRest::Client do
  let(:client) do
    WowzaRest::Client.new(host: '127.0.0.1',
                          port: '8087',
                          username: ENV.fetch('WOWZA_USERNAME'),
                          password: ENV.fetch('<PASSWORD>_PASSWORD'))
  end

  it 'has a default server name' do
    expect(client.server_name).to eq '_defaultServer_'
  end

  it 'has a default api version' do
    expect(client.api_version).to eq 'v2'
  end

  it 'has a default vhost' do
    expect(client.vhost).to eq '_defaultVHost_'
  end

  it 'has a valid base uri' do
    expect(client.base_uri).to(
      eq '127.0.0.1:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_'
    )
  end

  it 'has a valid connection object' do
    expect(client.connection).to be_an_instance_of(WowzaRest::Connection)
  end
end
<commit_msg>refactor client_spec<commit_after>require 'spec_helper'

RSpec.describe WowzaRest::Client do
  let(:client) do
    described_class.new(host: '127.0.0.1',
                        port: '8087',
                        username: ENV.fetch('WOWZA_USERNAME'),
                        password: ENV.fetch('<PASSWORD>'))
  end

  it 'has a default server name' do
    expect(client.server_name).to eq '_defaultServer_'
  end

  it 'has a default api version' do
    expect(client.api_version).to eq 'v2'
  end

  it 'has a default vhost' do
    expect(client.vhost).to eq '_defaultVHost_'
  end

  it 'has a valid base uri' do
    expect(client.base_uri).to(
      eq '127.0.0.1:8087/v2/servers/_defaultServer_/vhosts/_defaultVHost_'
    )
  end

  it 'has a valid connection object' do
    expect(client.connection).to be_an_instance_of(WowzaRest::Connection)
  end
end

{'fraction_non_alphanumeric': 0.10817031070195628, 'fraction_numerical': 0.02531645569620253, 'mean_word_length': 2.684322033898305, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 4, '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': '5875793', 'n_tokens_mistral': 620, 'n_tokens_neox': 584, 'n_words': 141}