<commit_before>module LightScaffold
  module Controller
    def self.included(klass)
      klass.class_eval do
        def try_render_scaffold_template(action_name = self.action_name)
          render
	rescue
          render :template => "scaffold/#{action_name}"
        end

        index.wants.html do
          try_render_scaffold_template
        end

        edit.wants.html do
          try_render_scaffold_template 
        end
<commit_msg>adding helper to base controller<commit_after>module LightScaffold
  module Controller
    def self.included(klass)
      klass.class_eval do
        helper LightScaffold::Helper

        def try_render_scaffold_template(action_name = self.action_name)
          render
	rescue
          render :template => "scaffold/#{action_name}"
        end

        index.wants.html do
          try_render_scaffold_template
        end

        edit.wants.html do
          try_render_scaffold_template 
        end

{'fraction_non_alphanumeric': 0.05235602094240838, 'fraction_numerical': 0.0, 'mean_word_length': 2.251700680272109, 'pattern_counts': {'":': 0, '<': 3, '<?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': '5878172', 'n_tokens_mistral': 283, 'n_tokens_neox': 277, 'n_words': 56}