<commit_before>
;(function (root) {
  'use strict'

  var HEP = root.HOLDEM_POKER || (root.HOLDEM_POKER = {}),
      
      cards = [
        '2C', '3C', '4C', '5C', '6C', '7C', '8C', '9C', 'TC', 'JC', 'QC', 'KC', 'AC',
        '2D', '3D', '4D', '5D', '6D', '7D', '8D', '9D', 'TD', 'JD', 'QD', 'KD', 'AD',
        '2H', '3H', '4H', '5H', '6H', '7H', '8H', '9H', 'TH', 'JH', 'QH', 'KH', 'AH',
        '2S', '3S', '4S', '5S', '6S', '7S', '8S', '9S', 'TS', 'JS', 'QS', 'KS', 'AS'
      ],
      
      SIZE = cards.length,
      
      MAX_JOKERS = 4
  
  
  HEP.Deck = function (options) {
    var i, len
    
    options = options || {}
    this._cards = []
    
    this._in = []
    this._out = []
    
    // add cards
    for (i = 0, len = cards.length; i < len; i++) {
      this._cards[i] = cards[i]
    }
    
    // add jokers
    this._jokers = options.jokers ? Math.max(0, Math.min(MAX_JOKERS, parseInt(options.jokers, 10))) : 0
    for (i = 0, len = this._jokers; i < len; i++) {
      this._cards[i + SIZE] = 'J' + (i + 1)
    }
    
    this._reset = true
  }

  
  HEP.Deck.prototype = {
    
    cards: function () {
      return this._cards
    },
    
    /**
     * @returns number of cards in the deck.
     */
    count: function () {
      return SIZE + this.jokers()
    },
    
    /**
     * @returns number of jokers in the deck.
     */
    jokers: function () {
      return this._jokers
    },<commit_msg>added comments to all prototype methods<commit_after>
;(function (root) {
  'use strict'

  var HEP = root.HOLDEM_POKER || (root.HOLDEM_POKER = {}),
      
      cards = [
        '2C', '3C', '4C', '5C', '6C', '7C', '8C', '9C', 'TC', 'JC', 'QC', 'KC', 'AC',
        '2D', '3D', '4D', '5D', '6D', '7D', '8D', '9D', 'TD', 'JD', 'QD', 'KD', 'AD',
        '2H', '3H', '4H', '5H', '6H', '7H', '8H', '9H', 'TH', 'JH', 'QH', 'KH', 'AH',
        '2S', '3S', '4S', '5S', '6S', '7S', '8S', '9S', 'TS', 'JS', 'QS', 'KS', 'AS'
      ],
      
      SIZE = cards.length,
      
      MAX_JOKERS = 4
  
  
  HEP.Deck = function (options) {
    var i, len
    
    options = options || {}
    this._cards = []
    
    this._in = []
    this._out = []
    
    // add cards
    for (i = 0, len = cards.length; i < len; i++) {
      this._cards[i] = cards[i]
    }
    
    // add jokers
    this._jokers = options.jokers ? Math.max(0, Math.min(MAX_JOKERS, parseInt(options.jokers, 10))) : 0
    for (i = 0, len = this._jokers; i < len; i++) {
      this._cards[i + SIZE] = 'J' + (i + 1)
    }
    
    this._reset = true
  }

  
  HEP.Deck.prototype = {
    
    /**
     * @returns current unshuffled deck, including jokers.
     */
    cards: function () {
      return this._cards
    },
    
    /**
     * @returns number of cards in the deck.
     */
    count: function () {
      return SIZE + this.jokers()
    },
    
    /**
     * @returns number of jokers in the deck.
     */
    jokers: function () {
      return this._jokers
    },
{'fraction_non_alphanumeric': 0.2175379426644182, 'fraction_numerical': 0.026981450252951095, 'mean_word_length': 1.8464491362763915, 'pattern_counts': {'":': 0, '<': 7, '<?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': '5413779', 'n_tokens_mistral': 1276, 'n_tokens_neox': 1216, 'n_words': 293}