<commit_before>Kor.config['maintainer.email'] = 'admin@localhost'

administrators = Credential.create!(:name => "Administrators")

User.create!(:name => "admin",
  :full_name => I18n.t('users.administrator'),
  :groups => [ administrators ],
  :password => '<PASSWORD>', 
  :email => Kor.config['maintainer.mail'],
  :terms_accepted => true,
  
  :admin => true,
  :relation_admin => true,
  :authority_group_admin => true,
  :user_admin => true,
  :credential_admin => true,
  :collection_admin => true,
  :kind_admin => true,
  :developer => false
)

default = Collection.create! :name => "Default"

default.policies.each do |policy|
  Grant.create! :collection => default, :policy => policy, :credential => administrators
end

Kind.create(:name => Medium.model_name.human, :plural_name => Medium.model_name.human(:count => :other),
  :settings => {
    :naming => false
  }
)<commit_msg>added invalid system group via seeds<commit_after>Kor.config['maintainer.email'] = 'admin@localhost'

administrators = Credential.create!(:name => "Administrators")

User.create!(:name => "admin",
  :full_name => I18n.t('users.administrator'),
  :groups => [ administrators ],
  :password => '<PASSWORD>', 
  :email => Kor.config['maintainer.mail'],
  :terms_accepted => true,
  
  :admin => true,
  :relation_admin => true,
  :authority_group_admin => true,
  :user_admin => true,
  :credential_admin => true,
  :collection_admin => true,
  :kind_admin => true,
  :developer => false
)

default = Collection.create! :name => "Default"

default.policies.each do |policy|
  Grant.create! :collection => default, :policy => policy, :credential => administrators
end

Kind.create(:name => Medium.model_name.human, :plural_name => Medium.model_name.human(:count => :other),
  :settings => {
    :naming => false
  }
)

SystemGroup.create(:name => 'invalid')
{'fraction_non_alphanumeric': 0.17362995116657623, 'fraction_numerical': 0.002170374389582203, 'mean_word_length': 4.929260450160772, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 54, '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': '4955219', 'n_tokens_mistral': 620, 'n_tokens_neox': 598, 'n_words': 119}