<commit_before>require "spec_helper"

describe BLS_API::Client do
  describe "accepts an API key" do
    let(:api_key) { "<PASSWORD>" }

    it "via environment variable" do
      ClimateControl.modify(:BLS_API_KEY => api_key) do
        expect do
          client = BLS_API::Client.new
          expect(client.api_key).to eq(api_key)
        end.not_to raise_error
      end
    end
<commit_msg>Make dummy API keys consistent across tests<commit_after>require "spec_helper"

describe BLS_API::Client do
  describe "accepts an API key" do
    let(:api_key) { "dummy_api_key" }

    it "via environment variable" do
      ClimateControl.modify(:BLS_API_KEY => api_key) do
        expect do
          client = BLS_API::Client.new
          expect(client.api_key).to eq(api_key)
        end.not_to raise_error
      end
    end

{'fraction_non_alphanumeric': 0.08727272727272728, 'fraction_numerical': 0.0, 'mean_word_length': 2.841860465116279, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 6, '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': '6172255', 'n_tokens_mistral': 272, 'n_tokens_neox': 267, 'n_words': 68}