<commit_before>module PluginDemo
  class ControllerGenerator < Adhearsion::Generators::Generator

    argument :controller_name, :type => :string

    def create_controller
      raise Exception, "Generator commands need to be run in an Adhearsion app directory" unless ScriptAhnLoader.in_ahn_application?('.')
      self.destination_root = '.'
      template 'lib/controller.rb', "lib/#{@controller_name.underscore}.rb"
      template 'spec/controller_spec.rb', "spec/#{@controller_name.underscore}_spec.rb"
    end

  end
end
<commit_msg>[BUGFIX] Fix a namespacing issue<commit_after>module PluginDemo
  class ControllerGenerator < Adhearsion::Generators::Generator

    argument :controller_name, :type => :string

    def create_controller
      raise Exception, "Generator commands need to be run in an Adhearsion app directory" unless Adhearsion::ScriptAhnLoader.in_ahn_application?('.')
      self.destination_root = '.'
      template 'lib/controller.rb', "lib/#{@controller_name.underscore}.rb"
      template 'spec/controller_spec.rb', "spec/#{@controller_name.underscore}_spec.rb"
    end

  end
end

{'fraction_non_alphanumeric': 0.10621062106210621, 'fraction_numerical': 0.0, 'mean_word_length': 4.5879396984924625, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '3220363', 'n_tokens_mistral': 331, 'n_tokens_neox': 318, 'n_words': 76}