<commit_before>require 'generators/cells/base'

module Rspec
  module Generators
    class WidgetGenerator < ::Cells::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      def create_cell_spec_file
        template "widget_spec.erb", File.join("spec/widgets/#{file_name}_widget_spec.rb")
      end
    end
  end
end<commit_msg>Namespace tests. So for `Twitter::Tweet` it will generate `spec/widgets/twitter/tweet_widget_spec.rb`<commit_after>require 'generators/cells/base'

module Rspec
  module Generators
    class WidgetGenerator < ::Cells::Generators::Base
      source_root File.expand_path('../templates', __FILE__)

      def create_cell_spec_file
        template "widget_spec.erb", File.join("spec/widgets/", class_path, "#{file_name}_widget_spec.rb")
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.11097560975609756, 'fraction_numerical': 0.0, 'mean_word_length': 4.13125, 'pattern_counts': {'":': 0, '<': 5, '<?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': '5923700', 'n_tokens_mistral': 262, 'n_tokens_neox': 253, 'n_words': 51}