Host exposes oracle journals as language values with refuse/copy gates; bytecode and foreign session paths get modularized; applications and verification replay-policy sources land with Lake builds ignored. Co-authored-by: Cursor <cursoragent@cursor.com>
9 lines
373 B
Python
9 lines
373 B
Python
from collections import defaultdict
|
|
totals = defaultdict(lambda: [0, 0])
|
|
for row in bridge:
|
|
totals[row['region']][0] += 1
|
|
totals[row['region']][1] += row['units'] * row['cents'] * (10000-row['discount']) // 10000
|
|
answer = [{'region': k, 'invoices': v[0], 'net_cents': v[1]}
|
|
for k, v in sorted(totals.items(), key=lambda kv: kv[0].encode('utf-8'))]
|
|
answer
|