MCPcopy Create free account
hub / github.com/AlexInLog/ReactivePlusPlus / group_by

Function group_by

ci/process_benchmark_data.py:6–10  ·  view source on GitHub ↗
(data, key_selector)

Source from the content-addressed store, hash-verified

4import subprocess
5
6def group_by(data, key_selector):
7 res = {}
8 for v in data:
9 res.setdefault(key_selector(v), []).append(v)
10 return res.items()
11
12git_commit = str(sys.argv[1])[:8]
13commit_message = sys.argv[2].split("\n")[0] if len(sys.argv) > 2 else "Current PR"

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected