<commit_before>require File.expand_path(File.join('../', 'spec_helper'), File.dirname(__FILE__))

describe Fukusa::ConfigParser do
  describe "#attributes" do
    context "sample1" do
      let(:config_obj) { described_class.new("#{APP_ROOT}/spec/samples/yamls/sample1.yml") }

      it do
        expect(config_obj.attributes).to match(
          service: "fukusa",
          environment: "staging",
          region: "ap-northeast-1",
          security_group_id: "sg-aad34bcf",
          subnet_id: "subnet-cd985794",
          image_id: "<KEY>",
          key_name: "fukusa_staging",
          playbook_path: "fukusa/staging.yml",
          instance_type: "t2.micro"
        )
      end
    end
  end
end<commit_msg>modify test<commit_after>require File.expand_path(File.join('../', 'spec_helper'), File.dirname(__FILE__))

describe Fukusa::ConfigParser do
  describe "#attributes" do
    context "sample1" do
      let(:config_obj) { described_class.new("#{APP_ROOT}/spec/samples/yamls/sample1.yml") }

      it do
        expect(config_obj.attributes).to match(
          service: "fukusa",
          environment: "staging",
          region: "ap-northeast-1",
          security_group_id: "sg-aad34bcf",
          subnet_id: "subnet-cd985794",
          image_id: "<KEY>",
          key_name: "fukusa_staging",
          playbook_path: "fukusa/staging.yml",
          instance_type: "t2.micro",
          inventory_file: "~/.ansible/ec2.py",
          vault_password: "<PASSWORD>",
        )
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.1363040629095675, 'fraction_numerical': 0.0163826998689384, 'mean_word_length': 2.5184331797235022, 'pattern_counts': {'":': 0, '<': 6, '<?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': '4533537', 'n_tokens_mistral': 524, 'n_tokens_neox': 504, 'n_words': 86}