<commit_before>require 'spec_helper'

describe Bonfig do
  subject do
    module MyModule
      extend Bonfig

      bonfig do
        config :name

        config :has_default, default: 'hello'
        config :has_block_default, default: -> { name }
        config :nested do
          config :hello
        end

        config :size
      end
    end

    MyModule.config do |c|
      c.name = 'shit'
    end
    MyModule
  end
  it 'should have a VERSION constant' do
    expect(subject.config.name).to eq('shit')
  end
end
<commit_msg>Updating specs<commit_after>require 'spec_helper'

describe Bonfig do
  subject do
    module MyModule
      extend Bonfig

      bonfig do
        config :name

        config :has_default, default: 'hello'
        config :nested do
          config :hello
        end

        config :size
      end
    end

    MyModule.config do |c|
      c.name = 1
      c.size = 'test'
      c.nested.hello = 2
    end
    MyModule
  end
  it 'should be configurable' do
    config = subject.config

    expect(config.name).to eq(1)
    expect(config.has_default).to eq('hello')
    expect(config.nested.hello).to eq(2)

    expect(config.size).to eq('test')
  end
end

{'fraction_non_alphanumeric': 0.0817347789824854, 'fraction_numerical': 0.003336113427856547, 'mean_word_length': 1.9925187032418952, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, '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': '2928756', 'n_tokens_mistral': 384, 'n_tokens_neox': 369, 'n_words': 111}