<commit_before>module Permissions
  module TestPermissions
    def cud_allowed( users, testee)
      for user in users
        testee.should be_creatable_by(user)
        testee.should be_updatable_by(user)
        testee.should be_editable_by(user)
      end
    end

    def cud_denied( users, testee)
      for user in users
        testee.should_not be_creatable_by(user)
        testee.should_not be_updatable_by(user)
        testee.should_not be_editable_by(user)
      end
    end
    
    def ud_denied( users, testee)
      for user in users
        testee.should_not be_updatable_by(user)
        testee.should_not be_editable_by(user)
      end
    end

    def view_allowed( users, testee)
      for user in users
        testee.should be_viewable_by(user)
      end
    end
    
    def view_denied( users, testee)
      for user in users
        testee.should_not be_viewable_by(user)
      end
    end
  end
end<commit_msg>Fix bug in spec support functions<commit_after>module Permissions
  module TestPermissions
    def cud_allowed( users, testee)
      for user in users
        testee.should be_creatable_by(user)
        testee.should be_updatable_by(user)
        testee.should be_destroyable_by(user)
      end
    end

    def cud_denied( users, testee)
      for user in users
        testee.should_not be_creatable_by(user)
        testee.should_not be_updatable_by(user)
        testee.should_not be_destroyable_by(user)
      end
    end
    
    def ud_denied( users, testee)
      for user in users
        testee.should_not be_updatable_by(user)
        testee.should_not be_destroyable_by(user)
      end
    end

    def view_allowed( users, testee)
      for user in users
        testee.should be_viewable_by(user)
      end
    end
    
    def view_denied( users, testee)
      for user in users
        testee.should_not be_viewable_by(user)
      end
    end
  end
end
{'fraction_non_alphanumeric': 0.050340849501835344, 'fraction_numerical': 0.0, 'mean_word_length': 2.359154929577465, 'pattern_counts': {'":': 0, '<': 3, '<?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': '1189112', 'n_tokens_mistral': 640, 'n_tokens_neox': 637, 'n_words': 156}