<commit_before>class UpdateCoreRoleLabels < ActiveRecord::DataMigration
  def up
    Role.where(name: [:user, :manager]).update_all(label: 'Staff')
    Role.find_or_create_by(name: :super_manager).update(label: 'Manager', privilege: false, role_parent_id: nil)<commit_msg>[TTPLAT-1044] Fix data migrations for role labels.<commit_after>class UpdateCoreRoleLabels < ActiveRecord::DataMigration
  def up
    Role.where(name: [:user, :manager]).update_all(label: 'Staff')
    Role.find_or_initialize_by(name: :super_manager).update(label: 'Manager', privilege: false, role_parent_id: nil)
{'fraction_non_alphanumeric': 0.12991452991452992, 'fraction_numerical': 0.006837606837606838, 'mean_word_length': 7.492753623188406, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 3, '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': '3433915', 'n_tokens_mistral': 188, 'n_tokens_neox': 184, 'n_words': 37}