MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / get_many

Method get_many

tools/commitlist.py:284–292  ·  view source on GitHub ↗
(self, numbers: Iterable[int])

Source from the content-addressed store, hash-verified

282 self._data = json.loads(self.path.read_text())
283
284 def get_many(self, numbers: Iterable[int]) -> dict[int, PullRequestRecord]:
285 records = {}
286 for number in numbers:
287 cached = self._data.get(str(number))
288 if cached is not None:
289 cached = dict(cached)
290 cached.setdefault('title', f'PR #{number}')
291 records[number] = PullRequestRecord(**cached)
292 return records
293
294 def update_many(self, records: Iterable[PullRequestRecord]) -> None:
295 changed = False

Callers 1

mainFunction · 0.95

Calls 4

strFunction · 0.85
PullRequestRecordClass · 0.85
getMethod · 0.45
setdefaultMethod · 0.45

Tested by

no test coverage detected