<commit_before># -*- encoding: us-ascii -*-

require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../shared/collect', __FILE__)

describe "Enumerator::Lazy#map" do
  it_behaves_like :enumerator_lazy_collect, :map
  it "doesn't unwrap Arrays" do
    Enumerator.new {|y| y.yield([1])}.lazy.to_a.should == [[1]]
  end
end<commit_msg>Improve formatting<commit_after># -*- encoding: us-ascii -*-

require File.expand_path('../../../../spec_helper', __FILE__)
require File.expand_path('../shared/collect', __FILE__)

describe "Enumerator::Lazy#map" do
  it_behaves_like :enumerator_lazy_collect, :map

  it "doesn't unwrap Arrays" do
    Enumerator.new {|y| y.yield([1])}.lazy.to_a.should == [[1]]
  end
end
{'fraction_non_alphanumeric': 0.19021739130434784, 'fraction_numerical': 0.005434782608695652, 'mean_word_length': 4.302158273381295, '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': '3200256', 'n_tokens_mistral': 278, 'n_tokens_neox': 266, 'n_words': 52}