<commit_before>module Trello
  # A board is a container which holds lists. This is where everything lives.
  class Board < BasicData
    attr_reader :id, :name, :description, :closed, :url, :organization_id

    class << self
      # Locate a board given a specific id.
      def find(id)
        super(:boards, id)
      end
    end

    # Update the fields of a board.
    #
    # Supply a hash of string keyed data retrieved from the Trello API representing
    # a board.
    def update_fields(fields)
      @id              = fields['id']
      @name            = fields['name']
      @description     = fields['desc']
      @closed          = fields['closed']
      @url             = fields['url']
      @organization_id = fields['idOrganization']
    end

    # Check if the board is active.
    def closed?
      closed
    end

    # Return a timeline of actions related to this board.
    def actions
      return @actions if @actions
      @actions = Client.get("/boards/#{id}/actions").json_into(Action)
    end

    # Return all the cards on this board.
    #
    # The options hash may have a filter key which can have its value set as any
    # of the following values:
    #    :filter => [ :none, :open, :closed, :all ] # default :open
    def cards(options = { :filter => :open })
      return @cards if @cards
      @cards = Client.get("/boards/#{id}/cards/all").json_into(Card)
    end

    # Returns all the lists on this board.
    #
    # The options hash may have a filter key which can have its value set as any
    # of the following values:
    #    :filter => [ :none, :open, :closed, :all ] # default :open
    def lists(options = { :filter => :open })
      return @lists if @lists
      @lists = Client.get("/boards/#{id}/lists", options).json_into(List)
    end

    # Returns an array of members who are associated with this board.
    #
    # The options hash may have a filter key which can have its value set as any
    # of the following values:
    #    :filter => [ :none, :normal, :owners, :all ] # default :all
    def members(options = { :filter => :all })
      return @members if @members
      @members = Client.get("/boards/#{id}/members/all").json_into(Member)
    end

    # Returns a reference to the organization this board belongs to.
    def organization
      return @organization if @organization
      @organization = Organization.find(organization_id)
    end
  end
end<commit_msg>fixes wrong url in board related changes<commit_after>module Trello
  # A board is a container which holds lists. This is where everything lives.
  class Board < BasicData
    attr_reader :id, :name, :description, :closed, :url, :organization_id

    class << self
      # Locate a board given a specific id.
      def find(id)
        super(:boards, id)
      end
    end

    # Update the fields of a board.
    #
    # Supply a hash of string keyed data retrieved from the Trello API representing
    # a board.
    def update_fields(fields)
      @id              = fields['id']
      @name            = fields['name']
      @description     = fields['desc']
      @closed          = fields['closed']
      @url             = fields['url']
      @organization_id = fields['idOrganization']
    end

    # Check if the board is active.
    def closed?
      closed
    end

    # Return a timeline of actions related to this board.
    def actions
      return @actions if @actions
      @actions = Client.get("/boards/#{id}/actions").json_into(Action)
    end

    # Return all the cards on this board.
    #
    # The options hash may have a filter key which can have its value set as any
    # of the following values:
    #    :filter => [ :none, :open, :closed, :all ] # default :open
    def cards(options = { :filter => :open })
      return @cards if @cards
      @cards = Client.get("/boards/#{id}/cards").json_into(Card)
    end

    # Returns all the lists on this board.
    #
    # The options hash may have a filter key which can have its value set as any
    # of the following values:
    #    :filter => [ :none, :open, :closed, :all ] # default :open
    def lists(options = { :filter => :open })
      return @lists if @lists
      @lists = Client.get("/boards/#{id}/lists", options).json_into(List)
    end

    # Returns an array of members who are associated with this board.
    #
    # The options hash may have a filter key which can have its value set as any
    # of the following values:
    #    :filter => [ :none, :normal, :owners, :all ] # default :all
    def members(options = { :filter => :all })
      return @members if @members
      @members = Client.get("/boards/#{id}/members").json_into(Member)
    end

    # Returns a reference to the organization this board belongs to.
    def organization
      return @organization if @organization
      @organization = Organization.find(organization_id)
    end
  end
end
{'fraction_non_alphanumeric': 0.10214504596527069, 'fraction_numerical': 0.0, 'mean_word_length': 2.4118466898954702, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 15, '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': '190835', 'n_tokens_mistral': 1390, 'n_tokens_neox': 1351, 'n_words': 535}