<commit_before># encoding: UTF-8

require_relative '../spec_helper'

module Piquant describe Configuration do

  describe '.api_root, .api_root=' do
    it 'allows reading and setting the API root (defaulting to CCLab’s)' do
      Configuration.api_root.must_equal 'http://cecyf.megivps.pl/api/json/'
      Configuration.api_root = 'http://some.other/url'
      Configuration.api_root.must_equal 'http://some.other/url'
    end
  end

end end<commit_msg>reset Configuration to a sane default (foul smell here)<commit_after># encoding: UTF-8

require_relative '../spec_helper'

module Piquant describe Configuration do

  describe '.api_root, .api_root=' do
    it 'allows reading and setting the API root (defaulting to CCLab’s)' do
      Configuration.api_root.must_equal 'http://cecyf.megivps.pl/api/json/'
      begin
        Configuration.api_root = 'http://some.other/url'
        Configuration.api_root.must_equal 'http://some.other/url'
      ensure
        Configuration.api_root = 'http://cecyf.megivps.pl/api/json/'
      end
    end
  end

end end
{'fraction_non_alphanumeric': 0.11153119092627599, 'fraction_numerical': 0.001890359168241966, 'mean_word_length': 3.3224489795918366, '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': '2472345', 'n_tokens_mistral': 344, 'n_tokens_neox': 330, 'n_words': 84}