<commit_before>module Spider; module Auth

    module RBACProvider
        
        def self.included(model)
            model.extend(ClassMethods)
        end
        
        def can?(permission, context=nil)
            context ||= self.class.rbac_contexts.first
            el = self.class.rbac_provider_elements[context]
            options = RBAC.options(context)
            if options[:superuser]
                val = self.get(options[:superuser])
                return true if val
            end
            val = self.get(el)
            val.each do |v|
                return true if v.id == permission
            end
            self.class.rbac_inherit_from.each do |element|
                val = self.get(element)
                val = [val] unless val.is_a?(Enumerable)
                val.each do |v|
                    return true if v.can?(permission, context)
                end<commit_msg>Rbac symbol comparison<commit_after>module Spider; module Auth

    module RBACProvider
        
        def self.included(model)
            model.extend(ClassMethods)
        end
        
        def can?(permission, context=nil)
            context ||= self.class.rbac_contexts.first
            el = self.class.rbac_provider_elements[context]
            options = RBAC.options(context)
            if options[:superuser]
                val = self.get(options[:superuser])
                return true if val
            end
            val = self.get(el)
            val.each do |v|
                return true if v.id.to_sym == permission.to_sym
            end
            self.class.rbac_inherit_from.each do |element|
                val = self.get(element)
                val = [val] unless val.is_a?(Enumerable)
                val.each do |v|
                    return true if v.can?(permission, context)
                end
{'fraction_non_alphanumeric': 0.08094981111710739, 'fraction_numerical': 0.0, 'mean_word_length': 1.4109232769830948, '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': '3501444', 'n_tokens_mistral': 499, 'n_tokens_neox': 477, 'n_words': 115}