<commit_before>module <%= engine_class_name %>
  class <%= class_name %>Task < Task
    title "<%= class_name %> Task"
    role "author"

    def active_model_serializer
      TaskSerializer
    end
  end
end
<commit_msg>Update rails task generator for new task registration system<commit_after>module <%= engine_class_name %>
  class <%= class_name %>Task < Task
    register_task default_title: "<%= class_name %> Task", default_role: "author"

    def active_model_serializer
      TaskSerializer
    end
  end
end

{'fraction_non_alphanumeric': 0.0945945945945946, 'fraction_numerical': 0.0, 'mean_word_length': 3.8962264150943398, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 9, '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': '3297238', 'n_tokens_mistral': 167, 'n_tokens_neox': 147, 'n_words': 43}