<commit_before>shared_examples_for 'an embeddable controller' do
  integrate_views
  
  controller_class_lambda = lambda { self.send(:described_class) }
  model_class_lambda      = lambda { controller_class_lambda.call.name[/(.*)Controller/, 1].singularize.constantize }
  model_ivar_name_lambda  = lambda { model_class_lambda.call.name.demodulize.underscore }
  
  # def setup_for_specific_controller
  #   @controller_class = self.send(:described_class)
  #   @model_class =  @controller_class.name[/(.*)Controller/, 1].singularize.constantize
  #   @model_ivar_name = @model_class.name.demodulize.underscore
  #   unless instance_variable_defined?("@#{model_ivar_name_lambda.call}".to_sym)
  #     @model_ivar = instance_variable_set("@#{model_ivar_name_lambda.call}", Factory.create(@model_ivar_name))
  #   end
  # end
  
  # before(:all) do
  #   @controller_class = self.send(:described_class)
  #   @model_class =  @controller_class.name[/(.*)Controller/, 1].singularize.constantize
  #   @model_ivar_name = @model_class.name.demodulize.underscore
  # end

  def with_tags_like_a(model_name)
    self.send("with_tags_like_a_#{model_name}".to_sym)
  end

  before(:each) do
    generate_default_project_and_jnlps_with_mocks
    # setup_for_specific_controller
    @model_class = model_class_lambda.call
    @model_ivar_name = model_ivar_name_lambda.call
    unless instance_variable_defined?("@#{@model_ivar_name}".to_sym)
      @model_ivar = instance_variable_set("@#{@model_ivar_name}", Factory.create(@model_ivar_name))
    end    
    login_admin
    @session_options = {
      :secure=>false, 
      :secret=>"<KEY>", 
      :expire_after=>nil, 
      :path=>"/", 
      :httponly=>true, 
      :domain=>nil, <commit_msg>remove unused code from embeddable controller helper<commit_after>shared_examples_for 'an embeddable controller' do
  integrate_views
  
  controller_class_lambda = lambda { self.send(:described_class) }
  model_class_lambda      = lambda { controller_class_lambda.call.name[/(.*)Controller/, 1].singularize.constantize }
  model_ivar_name_lambda  = lambda { model_class_lambda.call.name.demodulize.underscore }

  def with_tags_like_a(model_name)
    self.send("with_tags_like_a_#{model_name}".to_sym)
  end

  before(:each) do
    generate_default_project_and_jnlps_with_mocks
    @model_class = model_class_lambda.call
    @model_ivar_name = model_ivar_name_lambda.call
    unless instance_variable_defined?("@#{@model_ivar_name}".to_sym)
      @model_ivar = instance_variable_set("@#{@model_ivar_name}", Factory.create(@model_ivar_name))
    end    
    login_admin
    @session_options = {
      :secure=>false, 
      :secret=>"<KEY>", 
      :expire_after=>nil, 
      :path=>"/", 
      :httponly=>true, 
      :domain=>nil, 
{'fraction_non_alphanumeric': 0.1193058568329718, 'fraction_numerical': 0.0014461315979754157, 'mean_word_length': 4.522954091816367, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 17, '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': '7381908', 'n_tokens_mistral': 984, 'n_tokens_neox': 957, 'n_words': 115}