original_docstring: Create and return a sample recipe
docstring: Create and return a sample recipe
docstring_tokens: Create and return a sample recipe
code: def sample_recipe(user, **params):
      """Create and return a sample recipe"""
      defaults = {
          'title': 'sample recile',
          'time_minutes': 10,
          'price': 5.00
      }
      # **params means any additional that is passed will be
      # params dictionary
      # below statement will simply update the default with
      # whatever params is passed
      defaults.update(params)
  
      # **defaults will convert dictionary into arguments
      return Recipe.objects.create(user=user, **defaults)
code_tokens: def sample_recipe ( user , ** params ) : defaults = { 'title' : 'sample recile' , 'time_minutes' : 10 , 'price' : 5.00 } defaults . update ( params ) return Recipe . objects . create ( user = user , ** defaults )
short_docstring: Create and return a sample recipe
short_docstring_tokens: Create and return a sample recipe
comment: """Create and return a sample recipe"""$SEP$# **params means any additional that is passed will be$SEP$# params dictionary$SEP$# below statement will simply update the default with$SEP$# whatever params is passed$SEP$# **defaults will convert dictionary into arguments