<commit_before>module Waw
  module Routing
    # FormValidationFeedback routing
    class FormValidationFeedback < RoutingRule

      def generate_js_code(result, align=0)
        buffer = ""
				buffer << " "*align + "str = '';\n"
				buffer << " "*align + "str += '<ul>';\n"
				buffer << " "*align + "for (var k in data[1]) {\n"
				buffer << " "*(align+2)	+ "str += '<li>' + messages[data[1][k]] + '</li>';\n"
				buffer << " "*align + "}\n"
				buffer << " "*align + "str += '</ul>';\n"
				buffer << " "*align + "$(form + ' .feedback').html(str);"
        buffer
      end
      
    end # class FormValidationFeedback
  end # module Routing
end # module Waw<commit_msg>Adds a show() in form_validation_feedback<commit_after>module Waw
  module Routing
    # FormValidationFeedback routing
    class FormValidationFeedback < RoutingRule

      def generate_js_code(result, align=0)
        buffer = ""
				buffer << " "*align + "str = '';\n"
				buffer << " "*align + "str += '<ul>';\n"
				buffer << " "*align + "for (var k in data[1]) {\n"
				buffer << " "*(align+2)	+ "str += '<li>' + messages[data[1][k]] + '</li>';\n"
				buffer << " "*align + "}\n"
				buffer << " "*align + "str += '</ul>';\n"
				buffer << " "*align + "$(form + ' .feedback').show();"
				buffer << " "*align + "$(form + ' .feedback').html(str);"
        buffer
      end
      
    end # class FormValidationFeedback
  end # module Routing
end # module Waw
{'fraction_non_alphanumeric': 0.20361362056984017, 'fraction_numerical': 0.005559416261292564, 'mean_word_length': 2.75, 'pattern_counts': {'":': 0, '<': 43, '<?xml version=': 0, '>': 11, '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': '7139632', 'n_tokens_mistral': 529, 'n_tokens_neox': 472, 'n_words': 121}