original_docstring: 
          Iterate over all the the outcomes in the dice pool and
          calculate probabilities of botch, torment, failure, success
          levels.
  
          @returns: dict -- calculated probabilities.
          
docstring: Iterate over all the the outcomes in the dice pool and
  calculate probabilities of botch, torment, failure, success
  levels.
docstring_tokens: Iterate over all the the outcomes in the dice pool and calculate probabilities of botch torment failure success levels .
code: def summary(self):
          """
          Iterate over all the the outcomes in the dice pool and
          calculate probabilities of botch, torment, failure, success
          levels.
  
          @returns: dict -- calculated probabilities.
          """
          keys = self.tier.keys()
          botchProb = 0
          tormentProb = 0
          successes = []
          for key in keys:
              # print(key)
              netBotches = max(0, key[self.BOTCH] - self.charmed)
              # print('isTorment: {}'.format(self.isTorment(outcome, netBotches)))
              netSuccesses = max(0,key[self.TORMENT] + key[self.SUCCESS] - netBotches)
              if self.isBotch(key):
                  botchProb += self.tier[key]
              if self.isTorment(key, netBotches) and netSuccesses > 0:
                  tormentProb += self.tier[key]
              try:
                  successes[netSuccesses] += self.tier[key]
              except IndexError:
                  successes.extend([0 for _ in range(netSuccesses - len(successes))])
                  successes.append(self.tier[key])
          return {
              'botch': botchProb,
              'torment': tormentProb,
              'success': successes,
              'totalFail': successes[0],
              'totalSuccess': sum(successes[1:]),
              'expectedSuccesses': sum([i*n for i,n in enumerate(successes)]),
              'charmed': self.charmed,
              'diff': self.diff,
              'pool': self.pool,
              'tormentVal': self.torment,
          }
code_tokens: def summary ( self ) : keys = self . tier . keys ( ) botchProb = 0 tormentProb = 0 successes = [ ] for key in keys : netBotches = max ( 0 , key [ self . BOTCH ] - self . charmed ) netSuccesses = max ( 0 , key [ self . TORMENT ] + key [ self . SUCCESS ] - netBotches ) if self . isBotch ( key ) : botchProb += self . tier [ key ] if self . isTorment ( key , netBotches ) and netSuccesses > 0 : tormentProb += self . tier [ key ] try : successes [ netSuccesses ] += self . tier [ key ] except IndexError : successes . extend ( [ 0 for _ in range ( netSuccesses - len ( successes ) ) ] ) successes . append ( self . tier [ key ] ) return { 'botch' : botchProb , 'torment' : tormentProb , 'success' : successes , 'totalFail' : successes [ 0 ] , 'totalSuccess' : sum ( successes [ 1 : ] ) , 'expectedSuccesses' : sum ( [ i * n for i , n in enumerate ( successes ) ] ) , 'charmed' : self . charmed , 'diff' : self . diff , 'pool' : self . pool , 'tormentVal' : self . torment , }
short_docstring: Iterate over all the the outcomes in the dice pool and
  calculate probabilities of botch, torment, failure, success
  levels.
short_docstring_tokens: Iterate over all the the outcomes in the dice pool and calculate probabilities of botch torment failure success levels .
comment: """
          Iterate over all the the outcomes in the dice pool and
          calculate probabilities of botch, torment, failure, success
          levels.
  
          @returns: dict -- calculated probabilities.
          """$SEP$# print(key)$SEP$# print('isTorment: {}'.format(self.isTorment(outcome, netBotches)))