Get an ascending order revision list from the couch style {@code _revisions} history of
{@code start} and hash {@code ids}.

@param start the starting generation
@param ids   the list of ID hashes
@return
432455
public static List<String> couchStyleRevisionHistoryToFullRevisionIDs(final int start, List<String> ids) {
        List<String> revisionHistory = new ArrayList<String>();
        int generation = start;
        for (String revIdHash : ids) {
            revisionHistory.add(generation + "-" + revIdHash);
            generation--;
        }
        Collections.reverse(revisionHistory);
        return revisionHistory;
    }
311329
public Versioned<E> getVersionedById(int id) {
        Versioned<VListNode<E>> listNode = getListNode(id);
        if(listNode == null)
            throw new IndexOutOfBoundsException();
        return new Versioned<E>(listNode.getValue().getValue(), listNode.getVersion());
    }
304980
@Override
	public List<T> getForIdentifiers(Collection<X> ids) {
		if(AssertUtils.isEmpty(ids)) {
			return null;
		}
		
		if(this.idKey == null) {
			fetchMappingContextAndConversionService();
		}
		
		Query query = new Query(Criteria.where(this.idKey).in(ids));
		return this.mongoTemplate.find(query, this.entityClass);
	}
435198
def set_all_revisions_to_in_process(self, ids):
        

        predicate = {
            "_id" : {
                "$in" : [ ObjectId(id) for id in ids ]
            }
        }

        set = {"$set": { "inProcess": True }}

        yield self.revisions.collection.update(predicate, set, multi=True)
630462
public void collectIds(List<String> ids) {
    ids.add(attribute("id"));
    for (Element child : elements) {
      child.collectIds(ids);
    }
  }
191696
public function delete($appId, array $ids, $guestSpaceId = null, array $revisions = []): array
    {
        $options = ['json' => ['app' => $appId, 'ids' => $ids]];
        if (count($revisions) && count($ids) === count($revisions)) {
            $options['json']['revisions'] = $revisions;
        }

        /** @var JsonStream $stream */
        $stream = $this->client
            ->delete(KintoneApi::generateUrl('records.json', $guestSpaceId), $options)
            ->getBody();

        return $stream->jsonSerialize();
    }
63384
protected static List<CmsResourceInfo> getUserInfos(Set<String> ids) {

        List<CmsResourceInfo> ret = new ArrayList<CmsResourceInfo>();
        try {
            for (String id : ids) {
                CmsUser user = A_CmsUI.getCmsObject().readUser(
                    OpenCms.getSessionManager().getSessionInfo(new CmsUUID(id)).getUserId());
                ret.add(CmsAccountsApp.getPrincipalInfo(user));
            }
        } catch (CmsException e) {
            LOG.error("Unable to read user", e);
        }
        return ret;
    }
1240985
@Override
    public List<T> findAllById(Iterable<ID> ids) {
        Assert.notNull(ids, "Iterable ids should not be null");

        return operation.findByIds(ids, information.getJavaType(), information.getCollectionName());
    }
767365
public java.util.List<RevisionInfo> getRevisions() {
        if (revisions == null) {
            revisions = new com.amazonaws.internal.SdkInternalList<RevisionInfo>();
        }
        return revisions;
    }
795815
def get_ids(self, start=0, rows=1000, **query_dict):
        """"""
        resp_dict = self._get_query(start=start, rows=rows, **query_dict)
        return {
            'matches': resp_dict['response']['numFound'],
            'start': start,
            'ids': [d['id'] for d in resp_dict['response']['docs']],
        }
1013717
public <T extends Header> T getHeader(short ... ids) {
        if(ids == null || ids.length == 0)
            return null;
        return Headers.getHeader(this.headers, ids);
    }
1202810
public Spider startUrls(List<String> startUrls) {
        checkIfRunning();
        this.startRequests = UrlUtils.convertToRequests(startUrls);
        return this;
    }
1079257
public void setHostIds(java.util.Collection<String> hostIds) {
        if (hostIds == null) {
            this.hostIds = null;
            return;
        }

        this.hostIds = new com.amazonaws.internal.SdkInternalList<String>(hostIds);
    }
421642
@Override
    public List<RevisionInternal> getRevisionHistory(RevisionInternal rev) {
        Document doc = getDocument(rev.getDocID());
        if (doc == null)
            return null;
        try {
            try {
                if (!doc.selectRevID(rev.getRevID(), false))
                    return null;
            } catch (ForestException e) {
                Log.e(TAG, "Error in getRevisionHistory() rev=" + rev, e);
                return null;
            }
            List<RevisionInternal> history = new ArrayList<RevisionInternal>();
            do {
                RevisionInternal ancestor = ForestBridge.revisionObject(
                        doc, rev.getDocID(), null, false);
                if (ancestor == null)
                    break;
                ancestor.setMissing(!doc.hasRevisionBody());
                history.add(ancestor);
                // TODO: implement once ancestorRevIDs param is given.
                //if(ancestorRevIDs!=null&&ancestorRevIDs.contains(ancestor.getRevID()))
                //    break;
            } while (doc.selectParentRev());
            return history;
        } finally {
            doc.free();
        }
    }
71068
public static <S extends Sequence<C>, C extends Compound> String getIDFormat(List<S> sequences) {
		int length = 0;
		for (S as : sequences) {
			length = Math.max(length, (as.getAccession() == null) ? 0 : as.getAccession().toString().length());
		}
		return (length == 0) ? null : "%-" + (length + 1) + "s";
	}
988326
public WasStartedBy newWasStartedBy(QualifiedName id) {
   	WasStartedBy res = of.createWasStartedBy();
   	res.setId(id);
   	return res;
    }
698118
@GET
    @Path("{id}/history/{start: " + DATE_REGEX + "}-{end: " + DATE_REGEX + "}")
    public Response fetchHistory(@PathParam("id") URI_ID id,
                                 @PathParam("start") Timestamp start,
                                 @PathParam("end") Timestamp end) throws Exception {
        return super.fetchHistory(id, start, end);
    }