<commit_before>require 'rubygems'
require 'bucketface'

module BitbucketAPI
    class Error < StandardError; end
        
    class << self
        attr_accessor :username, :password
        
        def authenticate(username, password)
            @username = username 
            @password = password
            resources.each do |resource|
              resource.user = @username
              resource.password = @password
            end
        end

        def resources
          @resource ||= []
        end

    end

    class Issue
    end

    class Repository
      def self.find(mode, attributes = {})
        if !mode.nil? and mode == :all
          Bucketface.list_repos(attributes[:username])
        end
      end
    end

end<commit_msg>added issues method to repository class<commit_after>require 'rubygems'
require 'bucketface'

module BitbucketAPI
    class Error < StandardError; end
        
    class << self
        attr_accessor :username, :password
        
        def authenticate(username, password)
            @username = username 
            @password = password
            resources.each do |resource|
              resource.user = @username
              resource.password = <PASSWORD>
            end
        end

        def resources
          @resource ||= []
        end

    end

    class Issue
    end

    class Repository
      def self.find(mode, attributes = {})
        if !mode.nil? and mode == :all
          Bucketface.list_repos(attributes[:username])
        end
      end

      def issues
        Issue.find(:all, :username => 'cored', :slug => 'test-repo')
      end
    end

    class Issue
      def self.find(mode, attributes = {})
        if !mode.nil? and mode == :all
          Bucketface.issues(attributes)
        end
      end
    end

end
{'fraction_non_alphanumeric': 0.07960199004975124, 'fraction_numerical': 0.0, 'mean_word_length': 1.661764705882353, 'pattern_counts': {'":': 0, '<': 10, '<?xml version=': 0, '>': 6, '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': '946201', 'n_tokens_mistral': 478, 'n_tokens_neox': 462, 'n_words': 134}