<commit_before>require 'spec_helper'

module Xcake
  describe Configurable do

    before :each do
      @onfigurable = Object.new
      @configurable.extend(Configurable)

      allow(@configurable).to receive(:default_debug_settings).and_return({
        :DEFAULT_SETTING => "DEFAULT_VALUE"
      })

      allow(@configurable).to receive(:default_release_settings).and_return({
        :DEFAULT_SETTING => "DEFAULT_VALUE"
      })
    end

    context "when creating debug configuration" do

      before :each do
        @configuration = @configurable.debug_configuration :debug
      end

      it "should store build configuration" do
        expect(@configurable.debug_configurations.count).to eq(1)
      end

      context "that already exists" do

        before :each do
          @duplicate_configuration = @configurable.debug_configuration :debug
        end
<commit_msg>All passing.<commit_after>require 'spec_helper'

module Xcake
  describe Configurable do

    before :each do
      @configurable = Object.new
      @configurable.extend(Configurable)

      allow(@configurable).to receive(:default_debug_settings).and_return({
        :DEFAULT_SETTING => "DEFAULT_VALUE"
      })

      allow(@configurable).to receive(:default_release_settings).and_return({
        :DEFAULT_SETTING => "DEFAULT_VALUE"
      })
    end

    context "when creating debug configuration" do

      before :each do
        @configuration = @configurable.debug_configuration :debug
      end

      it "should store build configuration" do
        expect(@configurable.debug_configurations.count).to eq(1)
      end

      context "that already exists" do

        before :each do
          @duplicate_configuration = @configurable.debug_configuration :debug
        end

{'fraction_non_alphanumeric': 0.0831447963800905, 'fraction_numerical': 0.0011312217194570137, 'mean_word_length': 2.9752808988764046, 'pattern_counts': {'":': 0, '<': 3, '<?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': '4979371', 'n_tokens_mistral': 471, 'n_tokens_neox': 456, 'n_words': 113}