<commit_before>authorization do
  role :guest do
    has_permission_on :bundles, :to => [:read]
  end

  role :dev do
    has_omnipotence
  end
end

privileges do
  privilege :manage, :includes => [:create, :read, :update, :delete]
  privilege :read, :includes => [:index, :show]
  privilege :create, :includes => :new
  privilege :update, :includes => :edit
  privilege :delete, :includes => :destroy
end<commit_msg>add in base "guest" and admin roles<commit_after>authorization do
  role :guest do
    includes :nonvalidated

    has_permission_on :users, :to => :create
  end

  role :nonvalidated do
    has_permission_on :bundles, :to => :read do
      if_attribute :state => is { 'active' }
    end
    has_permission_on :games, :to => :read do
      if_permitted_to :read, :bundle
    end
  end

  role :admin do
    has_omnipotence
  end

  role :dev do
    has_omnipotence
  end
end

privileges do
  privilege :manage, :includes => [:create, :read, :update, :delete]
  privilege :read, :includes => [:index, :show]
  privilege :create, :includes => :new
  privilege :update, :includes => :edit
  privilege :delete, :includes => :destroy
end
{'fraction_non_alphanumeric': 0.1174934725848564, 'fraction_numerical': 0.0, 'mean_word_length': 3.771784232365145, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, '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': '6019740', 'n_tokens_mistral': 393, 'n_tokens_neox': 401, 'n_words': 121}