parameters: (self)
return_statement: return all
docstring: Return a dictionary mapping transition type -> occurences.
docstring_summary: Return a dictionary mapping transition type -> occurences.
docstring_tokens: Return a dictionary mapping transition type - > occurences .
function: def Transitions(self):
      """Return a dictionary mapping transition type -> occurences."""
      all = {}
      for trans in self.transitions:
        all[trans] = all.get(trans, 0) + 1
        # We currently don't use the chain type.
        # TODO(evanm): make this a command-line option.
        # if trans & 0x30000000 != 0:
        #   chain = ''
        #   if trans & 0x10000000:
        #     chain = 'start'
        #   if trans & 0x20000000:
        #     if len(chain) == 0:
        #       chain = 'end'
        #     else:
        #       chain = ''
        #   if len(chain) > 0:
        #     edge['chain'] = chain
      return all
function_tokens: def Transitions ( self ) : all = { } for trans in self . transitions : all [ trans ] = all . get ( trans , 0 ) + 1 # We currently don't use the chain type. # TODO(evanm): make this a command-line option. # if trans & 0x30000000 != 0: #   chain = '' #   if trans & 0x10000000: #     chain = 'start' #   if trans & 0x20000000: #     if len(chain) == 0: #       chain = 'end' #     else: #       chain = '' #   if len(chain) > 0: #     edge['chain'] = chain return all