<commit_before>require "spec_helper"

describe "Localizer::Parser::Common" do

  subject{ Object.new.extend Localizer::Parser::Common }

  describe "translate_setter_to_key" do
    example "setSomeValue matches setter type" do
      subject.matches_type?("setSomeValue", "setter").should be_truthy
    end
    example "define matches scope type" do
      subject.matches_type?("define", "scope").should be_truthy
    end
  end

  describe "translate_setter_to_key" do
    example "setSomeValue" do
      subject.translate_setter_to_key("setSomeValue").should == "someValue"
    end
    example "notASetterName" do
      subject.translate_setter_to_key("notASetterName").should be nil
    end
  end

end<commit_msg>Spec description fixed: it is for another method<commit_after>require "spec_helper"

describe "Localizer::Parser::Common" do

  subject{ Object.new.extend Localizer::Parser::Common }

  describe "matches_type?" do
    example "setSomeValue matches setter type" do
      subject.matches_type?("setSomeValue", "setter").should be_truthy
    end
    example "define matches scope type" do
      subject.matches_type?("define", "scope").should be_truthy
    end
  end

  describe "translate_setter_to_key" do
    example "setSomeValue" do
      subject.translate_setter_to_key("setSomeValue").should == "someValue"
    end
    example "notASetterName" do
      subject.translate_setter_to_key("notASetterName").should be nil
    end
  end

end
{'fraction_non_alphanumeric': 0.09359944941500344, 'fraction_numerical': 0.0, 'mean_word_length': 4.345588235294118, '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': '4128676', 'n_tokens_mistral': 456, 'n_tokens_neox': 443, 'n_words': 106}