chrome/tools/history-viz.py
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
Return a dictionary mapping transition type -> occurences.
Return a dictionary mapping transition type -> occurences.
Return a dictionary mapping transition type - > occurences .
def Transitions(self):
    all = {}
    for trans in self.transitions:
      all[trans] = all.get(trans, 0) + 1
    return all
def Transitions ( self ) : all = { } for trans in self . transitions : all [ trans ] = all . get ( trans , 0 ) + 1 return all
Return a dictionary mapping transition type -> occurences.
Return a dictionary mapping transition type - > occurences .
"""Return a dictionary mapping transition type -> occurences.""" # 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
self