<commit_before><% if @graffity.approved && !@graffity.new_record? %>
<% escaped_js = escape_javascript(render(:partial => "member/graffities/graffity", :object => @graffity)) %>        
  if (jQuery("#graffities").children().length > 0)
    jQuery("#graffities").prepend("<%= escaped_js %>");
  else
    jQuery("#graffities")[0].innerHTML("<%= escaped_js %>");
<% end %><commit_msg>Add placeholder behaviour to textarea loaded dynamically after create a graffity<commit_after><% if @graffity.approved && !@graffity.new_record? %>
<% escaped_js = escape_javascript(render(:partial => "member/graffities/graffity", :object => @graffity)) %>        
  if (jQuery("#graffities").children().length > 0)
    jQuery("#graffities").prepend("<%= escaped_js %>");
  else
    jQuery("#graffities").replaceWith("<%= escaped_js %>");
  jQuery("textarea.reply", jQuery("#graffities")).filter(function(){
      return !(!!jQuery(this).data('events'));
  }).placeholder();        
<% end %>
{'fraction_non_alphanumeric': 0.2104722792607803, 'fraction_numerical': 0.003080082135523614, 'mean_word_length': 5.4144736842105265, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 19, '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': '3004389', 'n_tokens_mistral': 317, 'n_tokens_neox': 294, 'n_words': 51}