parameters: ()
return_statement: return jsonify(projects=projects, active=active)
docstring: List docker compose projects
docstring_summary: List docker compose projects
docstring_tokens: List docker compose projects
function: def list_projects():
      """
      List docker compose projects
      """
      load_projects()
      active = [container['Labels']['com.docker.compose.project'] \
          if 'com.docker.compose.project' in container['Labels'] \
          else [] for container in containers()]
      return jsonify(projects=projects, active=active)
function_tokens: def list_projects ( ) : load_projects ( ) active = [ container [ 'Labels' ] [ 'com.docker.compose.project' ] if 'com.docker.compose.project' in container [ 'Labels' ] else [ ] for container in containers ( ) ] return jsonify ( projects = projects , active = active )