@json_view(permission='view_tender')
    def collection_get(self):
        if self.request.params.get('all', ''):
            collection_data = [i.serialize("view") for i in self.context.documents]
        else:
            collection_data = sorted(dict([
                (i.id, i.serialize("view"))
                for i in self.context.documents
            ]).values(), key=lambda i: i['dateModified'])
        return {'data': collection_data}
Cleanup UnixBench on the target vm.
dataset/ETHPy150Open openprocurement/openprocurement.api/src/openprocurement/api/views/tender_document.py/TenderDocumentResource.collection_get--crossover with--dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/unixbench_benchmark.py/Cleanup