<commit_before>require 'spec_helper'

describe CubaReact do
  # let(:creact_wrapper) { Class.new { include Creact } }
  #
  # before :all do
  #   Creact::FileOperations.run_generator
  # end
  #
  # after :all do
  #   Creact::FileOperations.delete_dirs
  # end
  #
  # it 'has a version number' do
  #   expect(Creact::VERSION).not_to be nil
  # end
  #
  # it 'loader marks opal loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("opal");'
  # end
  #
  # it 'loader marks runtime loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("corelib/runtime.self");'
  # end
  #
  # it 'loader marks jquery loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("jquery.self");'
  # end
  #
  # it 'loader marks react loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("sources/react.self");'
  # end
  #<commit_msg>Added version test to correct namespace.<commit_after>require 'spec_helper'

describe CubaReact do
  # let(:creact_wrapper) { Class.new { include Creact } }
  #
  # before :all do
  #   Creact::FileOperations.run_generator
  # end
  #
  # after :all do
  #   Creact::FileOperations.delete_dirs
  # end
  #
  it 'has a version number' do
    expect(CubaReact::VERSION).not_to be nil
  end
  #
  # it 'loader marks opal loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("opal");'
  # end
  #
  # it 'loader marks runtime loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("corelib/runtime.self");'
  # end
  #
  # it 'loader marks jquery loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("jquery.self");'
  # end
  #
  # it 'loader marks react loaded' do
  #   expect(creact_wrapper.new.loader).to include 'mark_as_loaded("sources/react.self");'
  # end
  #
{'fraction_non_alphanumeric': 0.12742980561555076, 'fraction_numerical': 0.0, 'mean_word_length': 3.6325, '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': '82676', 'n_tokens_mistral': 657, 'n_tokens_neox': 657, 'n_words': 143}