original_docstring:  Updates global definitions with a single provider's definitions
  
      Args:
          provider     (str): Provider ID
          definition  (dict): Loaded provider's definitions to be merged with the global definitions
          custom      (bool): Boolean flag to specify if this is a custom provider
      
docstring: Updates global definitions with a single provider's definitions
docstring_tokens: Updates global definitions with a single provider ' s definitions
code: def update_definitions(provider, definition, custom=False):
      """ Updates global definitions with a single provider's definitions
  
      Args:
          provider     (str): Provider ID
          definition  (dict): Loaded provider's definitions to be merged with the global definitions
          custom      (bool): Boolean flag to specify if this is a custom provider
      """
      if 'base_url' in definition:
          parsed_url = urlparse(definition['base_url'])
          root_url = '%s://%s' % (parsed_url.scheme, parsed_url.netloc)
          definition['root_url'] = root_url
  
      if custom:
          definition['custom'] = True
          definition['enabled'] = True
  
      if provider in definitions:
          update(definitions[provider], definition)
      else:
          definitions[provider] = definition
code_tokens: def update_definitions ( provider , definition , custom = False ) : if 'base_url' in definition : parsed_url = urlparse ( definition [ 'base_url' ] ) root_url = '%s://%s' % ( parsed_url . scheme , parsed_url . netloc ) definition [ 'root_url' ] = root_url if custom : definition [ 'custom' ] = True definition [ 'enabled' ] = True if provider in definitions : update ( definitions [ provider ] , definition ) else : definitions [ provider ] = definition
short_docstring: Updates global definitions with a single provider's definitions
short_docstring_tokens: Updates global definitions with a single provider ' s definitions
comment: """ Updates global definitions with a single provider's definitions
  
      Args:
          provider     (str): Provider ID
          definition  (dict): Loaded provider's definitions to be merged with the global definitions
          custom      (bool): Boolean flag to specify if this is a custom provider
      """