MCPcopy Create free account
hub / github.com/It4innovations/hyperqueue / filter

Method filter

benchmarks/src/benchmark/database.py:123–126  ·  view source on GitHub ↗
(self, identifiers: List[BenchmarkIdentifier])

Source from the content-addressed store, hash-verified

121 df.to_json(self.path, orient="split", index=False)
122
123 def filter(self, identifiers: List[BenchmarkIdentifier]) -> "Database":
124 keys = set(create_identifier_key(identifier) for identifier in identifiers)
125 data = {k: v for (k, v) in self.data.items() if k in keys}
126 return Database(path=self.path, data=data, metadata=self.metadata)
127
128
129def serialize(value) -> str:

Callers 15

get_ids_and_entriesFunction · 0.80
create_reportFunction · 0.80
print_task_infoMethod · 0.80
print_explanationMethod · 0.80
handle_worker_stopFunction · 0.80
handle_job_cancelFunction · 0.80
handle_job_closeFunction · 0.80
perform_submitsFunction · 0.80
run_testFunction · 0.80
queued_allocationsMethod · 0.80
active_allocationsMethod · 0.80

Calls 2

create_identifier_keyFunction · 0.85
DatabaseClass · 0.85

Tested by 3

test_many_cutsFunction · 0.64
checkMethod · 0.64