<commit_before># encoding: utf-8
require 'helper'

describe RCFile do

  before do
    RCFile.instance.reset
  end

  after do
    RCFile.instance.reset
  end

  it 'should be a singleton class' do
    RCFile.should be_a Class
    lambda do
      RCFile.new
    end.should raise_error(NoMethodError, /private method `new' called/)
  end

  describe '#[]' do
    it 'should return the profiles for a user' do<commit_msg>No need to reset RCFile before each test<commit_after># encoding: utf-8
require 'helper'

describe RCFile do

  after do
    RCFile.instance.reset
  end

  it 'should be a singleton class' do
    RCFile.should be_a Class
    lambda do
      RCFile.new
    end.should raise_error(NoMethodError, /private method `new' called/)
  end

  describe '#[]' do
    it 'should return the profiles for a user' do
{'fraction_non_alphanumeric': 0.07317073170731707, 'fraction_numerical': 0.0024390243902439024, 'mean_word_length': 3.004878048780488, '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': '6301678', 'n_tokens_mistral': 265, 'n_tokens_neox': 253, 'n_words': 96}