original_docstring: Calculate the aracne dust
      Return how much dust will be generated from the cards (dustOut)
      or how much is needed to prodece the cards (dustIn)
      
docstring: Calculate the aracne dust
  Return how much dust will be generated from the cards (dustOut)
  or how much is needed to prodece the cards (dustIn)
docstring_tokens: Calculate the aracne dust Return how much dust will be generated from the cards ( dustOut ) or how much is needed to prodece the cards ( dustIn )
code: def calcArcaneDust(cards, db_dbf):
      """Calculate the aracne dust
      Return how much dust will be generated from the cards (dustOut)
      or how much is needed to prodece the cards (dustIn)
      """
      dustOut = 0
      dustIn = 0
      for cardPair in cards:
          card = db_dbf[cardPair[0]]
          if card.rarity == Rarity.COMMON:
              dustOut += 5
              dustIn += 40
          elif card.rarity == Rarity.RARE:
              dustOut += 20
              dustIn += 100
          elif card.rarity == Rarity.EPIC:
              dustOut += 100
              dustIn += 400
          elif card.rarity == Rarity.LEGENDARY:
              dustOut += 400
              dustIn += 1600
      return dustOut, dustIn
code_tokens: def calcArcaneDust ( cards , db_dbf ) : dustOut = 0 dustIn = 0 for cardPair in cards : card = db_dbf [ cardPair [ 0 ] ] if card . rarity == Rarity . COMMON : dustOut += 5 dustIn += 40 elif card . rarity == Rarity . RARE : dustOut += 20 dustIn += 100 elif card . rarity == Rarity . EPIC : dustOut += 100 dustIn += 400 elif card . rarity == Rarity . LEGENDARY : dustOut += 400 dustIn += 1600 return dustOut , dustIn
short_docstring: Calculate the aracne dust
  Return how much dust will be generated from the cards (dustOut)
  or how much is needed to prodece the cards (dustIn)
short_docstring_tokens: Calculate the aracne dust Return how much dust will be generated from the cards ( dustOut ) or how much is needed to prodece the cards ( dustIn )
comment: """Calculate the aracne dust
      Return how much dust will be generated from the cards (dustOut)
      or how much is needed to prodece the cards (dustIn)
      """