<commit_before>require 'spec_helper'
require 'okapi'

describe Okapi do
  class TestClass
    attr_accessor :username
    attr_hider :password

    def initialize(username, password)
      @username = username
      @password = password
    end
  end

  before do
    @instance = TestClass.new('myusername', '<PASSWORD>')
    @inspect = @instance.inspect
  end

  it "should show the name and value of the username" do
    @inspect.should =~ /@username=\"myusername\"/
  end

  it "should not show the name neither the value of the username" do
    @inspect.should_not =~ /@password=\"<PASSWORD>\"/
  end
end
<commit_msg>Remove irrelevant attr_accessor in TestClass<commit_after>require 'spec_helper'
require 'okapi'

describe Okapi do
  class TestClass
    attr_hider :password

    def initialize(username, password)
      @username = username
      @password = password
    end
  end

  before do
    @instance = TestClass.new('myusername', '<PASSWORD>')
    @inspect = @instance.inspect
  end

  it "should show the name and value of the username" do
    @inspect.should =~ /@username=\"myusername\"/
  end

  it "should not show the name neither the value of the username" do
    @inspect.should_not =~ /@password=\"<PASSWORD>\"/
  end
end

{'fraction_non_alphanumeric': 0.09879518072289156, 'fraction_numerical': 0.0, 'mean_word_length': 3.341463414634146, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, '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': '3796700', 'n_tokens_mistral': 389, 'n_tokens_neox': 378, 'n_words': 124}