parameters: (builder_name)
return_statement: return result
docstring: Makes a dictionary containing details about the builder from its name.
docstring_summary: Makes a dictionary containing details about the builder from its name.
docstring_tokens: Makes a dictionary containing details about the builder from its name .
function: def DictForBuilderName(builder_name):
    """Makes a dictionary containing details about the builder from its name."""
    split_name = builder_name.split(BUILDER_NAME_SEP)
  
    def pop_front():
      try:
        return split_name.pop(0)
      except:
        raise ValueError('Invalid builder name: %s' % builder_name)
  
    result = {'is_trybot': False}
  
    if split_name[-1] == TRYBOT_NAME_SUFFIX:
      result['is_trybot'] = True
      split_name.pop()
  
    if split_name[0] in BUILDER_NAME_SCHEMA.keys():
      key_list = BUILDER_NAME_SCHEMA[split_name[0]]
      result['role'] = pop_front()
      for key in key_list:
        result[key] = pop_front()
      if split_name:
        result['extra_config'] = pop_front()
      if split_name:
        raise ValueError('Invalid builder name: %s' % builder_name)
    else:
      raise ValueError('Invalid builder name: %s' % builder_name)
    return result
function_tokens: def DictForBuilderName ( builder_name ) : split_name = builder_name . split ( BUILDER_NAME_SEP ) def pop_front ( ) : try : return split_name . pop ( 0 ) except : raise ValueError ( 'Invalid builder name: %s' % builder_name ) result = { 'is_trybot' : False } if split_name [ - 1 ] == TRYBOT_NAME_SUFFIX : result [ 'is_trybot' ] = True split_name . pop ( ) if split_name [ 0 ] in BUILDER_NAME_SCHEMA . keys ( ) : key_list = BUILDER_NAME_SCHEMA [ split_name [ 0 ] ] result [ 'role' ] = pop_front ( ) for key in key_list : result [ key ] = pop_front ( ) if split_name : result [ 'extra_config' ] = pop_front ( ) if split_name : raise ValueError ( 'Invalid builder name: %s' % builder_name ) else : raise ValueError ( 'Invalid builder name: %s' % builder_name ) return result