Given a list of DNAnexus project IDs, returns the one that is newest as determined by creation date.
  
    Args: 
        dx_project_ids: `list` of DNAnexus project IDs.
  
    Returns:
        `str`.
176551
def select_newest_project(dx_project_ids):
    
    if len(dx_project_ids) == 1:
        return dx_project_ids[0]
    
    projects = [dxpy.DXProject(x) for x in dx_project_ids]
    created_times = [x.describe()["created"] for x in projects]
    paired = zip(created_times,projects)
    paired.sort(reverse=True)
    return paired[0][0]
485002
def get_project(self, project_id):
        
        try:
            result = self._request('/getproject/',
                                   {'projectid': project_id})
            return TildaProject(**result)
        except NetworkError:
            return []
95135
def list_milestones(self, project_id, find=None):
        
        path = '/projects/%u/milestones/list' % project_id
        req = ET.Element('request')
        if find is not None:
            ET.SubElement(req, 'find').text = str(find)
        return self._request(path, req)
480102
def project_has_listeners(self, project):
        
        return project.id in self._listeners and len(self._listeners[project.id]) > 0
491505
def get_project(project_id, opts = {})
      data, _status_code, _headers = get_project_with_http_info(project_id, opts)
      return data
    end
1181640
def get_connected_services(self, project_id, kind=None):
        
        route_values = {}
        if project_id is not None:
            route_values['projectId'] = self._serialize.url('project_id', project_id, 'str')
        query_parameters = {}
        if kind is not None:
            query_parameters['kind'] = self._serialize.query('kind', kind, 'str')
        response = self._send(http_method='GET',
                              location_id='b4f70219-e18b-42c5-abe3-98b07d35525e',
                              version='5.0-preview.1',
                              route_values=route_values,
                              query_parameters=query_parameters)
        return self._deserialize('[WebApiConnectedService]', self._unwrap_collection(response))
236483
def get_project_name(project_id, projects):
    
    for project in projects:
        if project_id == project.id:
            return project.name
179285
def get_projects():
    
    conn, c = open_data_base_connection()
    try:
        c.execute("""SELECT project_name FROM main_table""")
        project_names = np.array(c.fetchall()).squeeze(axis=1)
        project_names = convert_list_to_dict(project_names)
        return project_names
    except sqlite3.OperationalError:
        logging.info("{} not found".format(run_name))
    finally:
        conn.close()
482069
def find_by_id(self, project, params={}, **options): 
        
        path = "/projects/%s" % (project)
        return self.client.get(path, params, **options)
913459
def get_model(self, ids):
        
        to_get_ids = [i for i in ids if i not in self._known_models]
        models = [dxl_to_model(m) for m in self._get_model(to_get_ids, convert=False)]
        self._known_models.update(zip(to_get_ids, models))

        return tuple(self._known_models[id] for id in ids)
317320
def file_list_projects(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/listProjects' % object_id, input_params, always_retry=always_retry, **kwargs)
1033413
def project(project_id, opts = {})
      data, _status_code, _headers = project_with_http_info(project_id, opts)
      return data
    end
1283149
def _current_ids_subquery(self):
        
        return self.values(*self.model.KEY_FIELDS).annotate(max=models.Max('pk')).values('max')
44872
def get_project(self, project_id):
        
        try:
            return self._projects[project_id]
        except KeyError:
            raise aiohttp.web.HTTPNotFound(text="Project ID {} doesn't exist".format(project_id))
1160844
def get_workflow_id_and_project(path):
    '''
    
    '''
    project, _folderpath, entity_result = try_call(resolve_existing_path, path, expected='entity')
    try:
        if entity_result is None or not entity_result['id'].startswith('workflow-'):
            raise DXCLIError('Could not resolve "' + path + '" to a workflow object')
    except:
        err_exit()
    return entity_result['id'], project
428302
def get_timex(self, timex_id):
        
        if timex_id in self.idx:
            return Ctime(self.idx[timex_id])
        else:
            return None
528486
def project_update(object_id, input_params={}, always_retry=True, **kwargs):
    
    return DXHTTPRequest('/%s/update' % object_id, input_params, always_retry=always_retry, **kwargs)