original_docstring: Return snapshot entry if it already exists.
docstring: Return snapshot entry if it already exists.
docstring_tokens: Return snapshot entry if it already exists .
code: def check_for_snapshot_entry(name, json_object):
      """Return snapshot entry if it already exists."""
      return_entry = {}
      for entry in json_object['snapshots']:
          if entry['name'] == name:
              LOGGER.info('Selecting snapshot ' + name)
              return_entry = entry
              break
      return return_entry
code_tokens: def check_for_snapshot_entry ( name , json_object ) : return_entry = { } for entry in json_object [ 'snapshots' ] : if entry [ 'name' ] == name : LOGGER . info ( 'Selecting snapshot ' + name ) return_entry = entry break return return_entry
short_docstring: Return snapshot entry if it already exists.
short_docstring_tokens: Return snapshot entry if it already exists .
comment: """Return snapshot entry if it already exists."""