mirror of
https://github.com/esengine/DeepSeek-Reasonix.git
synced 2026-11-07 10:45:59 -10:00
Merge pull request #8114 from esengine/refactor/subagent-spec-split
feat(agent): one delegation contract, and what it costs to use it
This commit is contained in:
354 files changed
+15982
-569
No files matched your search
@@ -15,6 +15,11 @@ agent. It is the Reasonix analog of Claude Code's CLAUDE.md.
|
||||
the frontends `cli`, `serve`, `acp`, `bot`, `botruntime`, `boot` and the hosts
|
||||
`cmd/`, `desktop/` may import `control`; nothing below a frontend may import
|
||||
one. The declared sets live in `tools/repolint/layers.go`.
|
||||
- Subagent delegation keeps five concepts apart: a profile says how a worker
|
||||
thinks, `TaskSpec` what this call wants, `CapabilityGrant` what it may touch,
|
||||
`ContextRequest` what it starts from, `SchedulerPolicy` when it runs. Put a
|
||||
field in whichever member decides its value — profiles carry ceilings, never
|
||||
per-call values. `internal/agent/profile_boundary_test.go` enforces it.
|
||||
- Cache-first: the system-prompt prefix (base prompt + tools + memory) must stay
|
||||
byte-stable across turns so DeepSeek's automatic prefix cache stays warm. Never
|
||||
mutate it mid-session — ride the turn tail instead (see `control.Compose`).
|
||||
|
||||
@@ -0,0 +1,4 @@
|
||||
prompt = "common/money.py now requires a second argument: fmt_amount(cents, currency). Every call site under pkgs/alpha, pkgs/beta and pkgs/gamma still passes one argument and is broken. Dispatch the three packages in parallel with a single `fleet` call, giving each task the write_paths for its own package directory, and have each sub-agent update its package call sites to pass the currency \"USD\". Then confirm `python3 check.py` prints OK."
|
||||
class = "delegation"
|
||||
max_steps = 60
|
||||
timeout_sec = 900
|
||||
@@ -0,0 +1,15 @@
|
||||
# Same migration under an aggressive project compact_ratio (0.5%), an attempt
|
||||
# to put the parent under real context pressure — the one mechanism delegation
|
||||
# was designed for. It did not work: the agent keeps its session small by
|
||||
# writing a script instead of reading, so compaction never engaged and the
|
||||
# arms measured the same thing the other shapes did. Kept as an honest record
|
||||
# of the attempt, and as a config variant that still exercises the workspace
|
||||
# reasonix.toml merge path.
|
||||
# Forced-delegation twin: identical workdir and checks, only the prompt differs.
|
||||
set -e
|
||||
# 36 files across three non-overlapping packages, each needing a real read
|
||||
# before any edit. This is the branch size where delegation could pay: the
|
||||
# neutral prompt never mentions sub-agents, so an arm that does the work
|
||||
# itself is only penalised by the clock.
|
||||
python3 check.py
|
||||
test -z "$(grep -rn 'fmt_amount([a-z_]*)' pkgs/ || true)"
|
||||
@@ -0,0 +1,27 @@
|
||||
import importlib, pathlib, sys
|
||||
sys.path[:0] = ["common", "."]
|
||||
bad = []
|
||||
for pkg in ("alpha", "beta", "gamma"):
|
||||
for p in sorted(pathlib.Path("pkgs", pkg).glob("*.py")):
|
||||
if p.stem == "__init__":
|
||||
continue
|
||||
src = p.read_text()
|
||||
if "fmt_amount(" not in src:
|
||||
continue
|
||||
m = importlib.import_module(f"pkgs.{pkg}.{p.stem}")
|
||||
for name in dir(m):
|
||||
fn = getattr(m, name)
|
||||
# Only functions this module defines: fmt_amount is imported into
|
||||
# the namespace and is not one of the call sites under test.
|
||||
if not callable(fn) or name.startswith("_") or getattr(fn, "__module__", "") != m.__name__:
|
||||
continue
|
||||
try:
|
||||
got = fn([{"cents": 1234}])
|
||||
except TypeError as exc:
|
||||
bad.append(f"{pkg}/{p.stem}.{name}: {exc}")
|
||||
continue
|
||||
if got and got[0] not in ("1234", "12.34 USD"):
|
||||
bad.append(f"{pkg}/{p.stem}.{name}: {got[0]}")
|
||||
if bad:
|
||||
print("FAIL:"); [print(" ", b) for b in bad[:10]]; sys.exit(1)
|
||||
print("OK")
|
||||
@@ -0,0 +1,3 @@
|
||||
def fmt_amount(cents, currency):
|
||||
"""Format cents as a currency string, e.g. 1234 -> '12.34 USD'."""
|
||||
return "%d.%02d %s" % (cents // 100, cents % 100, currency)
|
||||
Whitespace-only changes.
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def collect_batch_0(rows):
|
||||
"""Collect batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_batch_1(rows):
|
||||
"""Summarise batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_batch_2(rows):
|
||||
"""Validate batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_batch_3(rows):
|
||||
"""Expand batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_batch_4(rows):
|
||||
"""Merge batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_batch_5(rows):
|
||||
"""Filter batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_batch_6(rows):
|
||||
"""Rank batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_batch_7(rows):
|
||||
"""Tally batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_batch_8(rows):
|
||||
"""Audit batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def tally_credit_0(rows):
|
||||
"""Tally credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_credit_1(rows):
|
||||
"""Audit credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_credit_2(rows):
|
||||
"""Emit credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_credit_3(rows):
|
||||
"""Load credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_credit_4(rows):
|
||||
"""Render credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_credit_5(rows):
|
||||
"""Collect credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_credit_6(rows):
|
||||
"""Summarise credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_credit_7(rows):
|
||||
"""Validate credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_credit_8(rows):
|
||||
"""Expand credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def load_invoice_0(rows):
|
||||
"""Load invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_invoice_1(rows):
|
||||
"""Render invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_invoice_2(rows):
|
||||
"""Collect invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_invoice_3(rows):
|
||||
"""Summarise invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_invoice_4(rows):
|
||||
"""Validate invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_invoice_5(rows):
|
||||
"""Expand invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_invoice_6(rows):
|
||||
"""Merge invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_invoice_7(rows):
|
||||
"""Filter invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_invoice_8(rows):
|
||||
"""Rank invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def render_ledger_0(rows):
|
||||
"""Render ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_ledger_1(rows):
|
||||
"""Collect ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_ledger_2(rows):
|
||||
"""Summarise ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_ledger_3(rows):
|
||||
"""Validate ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_ledger_4(rows):
|
||||
"""Expand ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_ledger_5(rows):
|
||||
"""Merge ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_ledger_6(rows):
|
||||
"""Filter ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_ledger_7(rows):
|
||||
"""Rank ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_ledger_8(rows):
|
||||
"""Tally ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def expand_payout_0(rows):
|
||||
"""Expand payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_payout_1(rows):
|
||||
"""Merge payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_payout_2(rows):
|
||||
"""Filter payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_payout_3(rows):
|
||||
"""Rank payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_payout_4(rows):
|
||||
"""Tally payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_payout_5(rows):
|
||||
"""Audit payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_payout_6(rows):
|
||||
"""Emit payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_payout_7(rows):
|
||||
"""Load payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_payout_8(rows):
|
||||
"""Render payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def rank_quota_0(rows):
|
||||
"""Rank quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_quota_1(rows):
|
||||
"""Tally quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_quota_2(rows):
|
||||
"""Audit quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_quota_3(rows):
|
||||
"""Emit quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_quota_4(rows):
|
||||
"""Load quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_quota_5(rows):
|
||||
"""Render quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_quota_6(rows):
|
||||
"""Collect quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_quota_7(rows):
|
||||
"""Summarise quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_quota_8(rows):
|
||||
"""Validate quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def validate_rebate_0(rows):
|
||||
"""Validate rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_rebate_1(rows):
|
||||
"""Expand rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_rebate_2(rows):
|
||||
"""Merge rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_rebate_3(rows):
|
||||
"""Filter rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_rebate_4(rows):
|
||||
"""Rank rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_rebate_5(rows):
|
||||
"""Tally rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_rebate_6(rows):
|
||||
"""Audit rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_rebate_7(rows):
|
||||
"""Emit rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_rebate_8(rows):
|
||||
"""Load rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def filter_refund_0(rows):
|
||||
"""Filter refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_refund_1(rows):
|
||||
"""Rank refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_refund_2(rows):
|
||||
"""Tally refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_refund_3(rows):
|
||||
"""Audit refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_refund_4(rows):
|
||||
"""Emit refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_refund_5(rows):
|
||||
"""Load refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_refund_6(rows):
|
||||
"""Render refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_refund_7(rows):
|
||||
"""Collect refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_refund_8(rows):
|
||||
"""Summarise refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def merge_shipment_0(rows):
|
||||
"""Merge shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_shipment_1(rows):
|
||||
"""Filter shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_shipment_2(rows):
|
||||
"""Rank shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_shipment_3(rows):
|
||||
"""Tally shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_shipment_4(rows):
|
||||
"""Audit shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_shipment_5(rows):
|
||||
"""Emit shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_shipment_6(rows):
|
||||
"""Load shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_shipment_7(rows):
|
||||
"""Render shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_shipment_8(rows):
|
||||
"""Collect shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def audit_tariff_0(rows):
|
||||
"""Audit tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tariff_1(rows):
|
||||
"""Emit tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_tariff_2(rows):
|
||||
"""Load tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_tariff_3(rows):
|
||||
"""Render tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_tariff_4(rows):
|
||||
"""Collect tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_tariff_5(rows):
|
||||
"""Summarise tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tariff_6(rows):
|
||||
"""Validate tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tariff_7(rows):
|
||||
"""Expand tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tariff_8(rows):
|
||||
"""Merge tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def summarise_tenant_0(rows):
|
||||
"""Summarise tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tenant_1(rows):
|
||||
"""Validate tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tenant_2(rows):
|
||||
"""Expand tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tenant_3(rows):
|
||||
"""Merge tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_tenant_4(rows):
|
||||
"""Filter tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_tenant_5(rows):
|
||||
"""Rank tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_tenant_6(rows):
|
||||
"""Tally tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_tenant_7(rows):
|
||||
"""Audit tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tenant_8(rows):
|
||||
"""Emit tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def emit_voucher_0(rows):
|
||||
"""Emit voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_voucher_1(rows):
|
||||
"""Load voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_voucher_2(rows):
|
||||
"""Render voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_voucher_3(rows):
|
||||
"""Collect voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_voucher_4(rows):
|
||||
"""Summarise voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_voucher_5(rows):
|
||||
"""Validate voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_voucher_6(rows):
|
||||
"""Expand voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_voucher_7(rows):
|
||||
"""Merge voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_voucher_8(rows):
|
||||
"""Filter voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
Whitespace-only changes.
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def collect_batch_0(rows):
|
||||
"""Collect batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_batch_1(rows):
|
||||
"""Summarise batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_batch_2(rows):
|
||||
"""Validate batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_batch_3(rows):
|
||||
"""Expand batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_batch_4(rows):
|
||||
"""Merge batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_batch_5(rows):
|
||||
"""Filter batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_batch_6(rows):
|
||||
"""Rank batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_batch_7(rows):
|
||||
"""Tally batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_batch_8(rows):
|
||||
"""Audit batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def tally_credit_0(rows):
|
||||
"""Tally credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_credit_1(rows):
|
||||
"""Audit credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_credit_2(rows):
|
||||
"""Emit credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_credit_3(rows):
|
||||
"""Load credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_credit_4(rows):
|
||||
"""Render credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_credit_5(rows):
|
||||
"""Collect credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_credit_6(rows):
|
||||
"""Summarise credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_credit_7(rows):
|
||||
"""Validate credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_credit_8(rows):
|
||||
"""Expand credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def load_invoice_0(rows):
|
||||
"""Load invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_invoice_1(rows):
|
||||
"""Render invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_invoice_2(rows):
|
||||
"""Collect invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_invoice_3(rows):
|
||||
"""Summarise invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_invoice_4(rows):
|
||||
"""Validate invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_invoice_5(rows):
|
||||
"""Expand invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_invoice_6(rows):
|
||||
"""Merge invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_invoice_7(rows):
|
||||
"""Filter invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_invoice_8(rows):
|
||||
"""Rank invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def render_ledger_0(rows):
|
||||
"""Render ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_ledger_1(rows):
|
||||
"""Collect ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_ledger_2(rows):
|
||||
"""Summarise ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_ledger_3(rows):
|
||||
"""Validate ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_ledger_4(rows):
|
||||
"""Expand ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_ledger_5(rows):
|
||||
"""Merge ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_ledger_6(rows):
|
||||
"""Filter ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_ledger_7(rows):
|
||||
"""Rank ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_ledger_8(rows):
|
||||
"""Tally ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def expand_payout_0(rows):
|
||||
"""Expand payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_payout_1(rows):
|
||||
"""Merge payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_payout_2(rows):
|
||||
"""Filter payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_payout_3(rows):
|
||||
"""Rank payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_payout_4(rows):
|
||||
"""Tally payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_payout_5(rows):
|
||||
"""Audit payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_payout_6(rows):
|
||||
"""Emit payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_payout_7(rows):
|
||||
"""Load payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_payout_8(rows):
|
||||
"""Render payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def rank_quota_0(rows):
|
||||
"""Rank quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_quota_1(rows):
|
||||
"""Tally quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_quota_2(rows):
|
||||
"""Audit quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_quota_3(rows):
|
||||
"""Emit quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_quota_4(rows):
|
||||
"""Load quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_quota_5(rows):
|
||||
"""Render quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_quota_6(rows):
|
||||
"""Collect quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_quota_7(rows):
|
||||
"""Summarise quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_quota_8(rows):
|
||||
"""Validate quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def validate_rebate_0(rows):
|
||||
"""Validate rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_rebate_1(rows):
|
||||
"""Expand rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_rebate_2(rows):
|
||||
"""Merge rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_rebate_3(rows):
|
||||
"""Filter rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_rebate_4(rows):
|
||||
"""Rank rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_rebate_5(rows):
|
||||
"""Tally rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_rebate_6(rows):
|
||||
"""Audit rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_rebate_7(rows):
|
||||
"""Emit rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_rebate_8(rows):
|
||||
"""Load rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def filter_refund_0(rows):
|
||||
"""Filter refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_refund_1(rows):
|
||||
"""Rank refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_refund_2(rows):
|
||||
"""Tally refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_refund_3(rows):
|
||||
"""Audit refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_refund_4(rows):
|
||||
"""Emit refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_refund_5(rows):
|
||||
"""Load refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_refund_6(rows):
|
||||
"""Render refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_refund_7(rows):
|
||||
"""Collect refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_refund_8(rows):
|
||||
"""Summarise refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def merge_shipment_0(rows):
|
||||
"""Merge shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_shipment_1(rows):
|
||||
"""Filter shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_shipment_2(rows):
|
||||
"""Rank shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_shipment_3(rows):
|
||||
"""Tally shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_shipment_4(rows):
|
||||
"""Audit shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_shipment_5(rows):
|
||||
"""Emit shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_shipment_6(rows):
|
||||
"""Load shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_shipment_7(rows):
|
||||
"""Render shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_shipment_8(rows):
|
||||
"""Collect shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def audit_tariff_0(rows):
|
||||
"""Audit tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tariff_1(rows):
|
||||
"""Emit tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_tariff_2(rows):
|
||||
"""Load tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_tariff_3(rows):
|
||||
"""Render tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_tariff_4(rows):
|
||||
"""Collect tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_tariff_5(rows):
|
||||
"""Summarise tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tariff_6(rows):
|
||||
"""Validate tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tariff_7(rows):
|
||||
"""Expand tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tariff_8(rows):
|
||||
"""Merge tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def summarise_tenant_0(rows):
|
||||
"""Summarise tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tenant_1(rows):
|
||||
"""Validate tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tenant_2(rows):
|
||||
"""Expand tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tenant_3(rows):
|
||||
"""Merge tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_tenant_4(rows):
|
||||
"""Filter tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_tenant_5(rows):
|
||||
"""Rank tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_tenant_6(rows):
|
||||
"""Tally tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_tenant_7(rows):
|
||||
"""Audit tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tenant_8(rows):
|
||||
"""Emit tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def emit_voucher_0(rows):
|
||||
"""Emit voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_voucher_1(rows):
|
||||
"""Load voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_voucher_2(rows):
|
||||
"""Render voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_voucher_3(rows):
|
||||
"""Collect voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_voucher_4(rows):
|
||||
"""Summarise voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_voucher_5(rows):
|
||||
"""Validate voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_voucher_6(rows):
|
||||
"""Expand voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_voucher_7(rows):
|
||||
"""Merge voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_voucher_8(rows):
|
||||
"""Filter voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
Whitespace-only changes.
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def collect_batch_0(rows):
|
||||
"""Collect batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_batch_1(rows):
|
||||
"""Summarise batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_batch_2(rows):
|
||||
"""Validate batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_batch_3(rows):
|
||||
"""Expand batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_batch_4(rows):
|
||||
"""Merge batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_batch_5(rows):
|
||||
"""Filter batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_batch_6(rows):
|
||||
"""Rank batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_batch_7(rows):
|
||||
"""Tally batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_batch_8(rows):
|
||||
"""Audit batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def tally_credit_0(rows):
|
||||
"""Tally credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_credit_1(rows):
|
||||
"""Audit credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_credit_2(rows):
|
||||
"""Emit credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_credit_3(rows):
|
||||
"""Load credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_credit_4(rows):
|
||||
"""Render credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_credit_5(rows):
|
||||
"""Collect credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_credit_6(rows):
|
||||
"""Summarise credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_credit_7(rows):
|
||||
"""Validate credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_credit_8(rows):
|
||||
"""Expand credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def load_invoice_0(rows):
|
||||
"""Load invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_invoice_1(rows):
|
||||
"""Render invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_invoice_2(rows):
|
||||
"""Collect invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_invoice_3(rows):
|
||||
"""Summarise invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_invoice_4(rows):
|
||||
"""Validate invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_invoice_5(rows):
|
||||
"""Expand invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_invoice_6(rows):
|
||||
"""Merge invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_invoice_7(rows):
|
||||
"""Filter invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_invoice_8(rows):
|
||||
"""Rank invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def render_ledger_0(rows):
|
||||
"""Render ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_ledger_1(rows):
|
||||
"""Collect ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_ledger_2(rows):
|
||||
"""Summarise ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_ledger_3(rows):
|
||||
"""Validate ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_ledger_4(rows):
|
||||
"""Expand ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_ledger_5(rows):
|
||||
"""Merge ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_ledger_6(rows):
|
||||
"""Filter ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_ledger_7(rows):
|
||||
"""Rank ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_ledger_8(rows):
|
||||
"""Tally ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def expand_payout_0(rows):
|
||||
"""Expand payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_payout_1(rows):
|
||||
"""Merge payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_payout_2(rows):
|
||||
"""Filter payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_payout_3(rows):
|
||||
"""Rank payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_payout_4(rows):
|
||||
"""Tally payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_payout_5(rows):
|
||||
"""Audit payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_payout_6(rows):
|
||||
"""Emit payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_payout_7(rows):
|
||||
"""Load payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_payout_8(rows):
|
||||
"""Render payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def rank_quota_0(rows):
|
||||
"""Rank quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_quota_1(rows):
|
||||
"""Tally quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_quota_2(rows):
|
||||
"""Audit quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_quota_3(rows):
|
||||
"""Emit quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_quota_4(rows):
|
||||
"""Load quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_quota_5(rows):
|
||||
"""Render quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_quota_6(rows):
|
||||
"""Collect quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_quota_7(rows):
|
||||
"""Summarise quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_quota_8(rows):
|
||||
"""Validate quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def validate_rebate_0(rows):
|
||||
"""Validate rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_rebate_1(rows):
|
||||
"""Expand rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_rebate_2(rows):
|
||||
"""Merge rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_rebate_3(rows):
|
||||
"""Filter rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_rebate_4(rows):
|
||||
"""Rank rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_rebate_5(rows):
|
||||
"""Tally rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_rebate_6(rows):
|
||||
"""Audit rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_rebate_7(rows):
|
||||
"""Emit rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_rebate_8(rows):
|
||||
"""Load rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def filter_refund_0(rows):
|
||||
"""Filter refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_refund_1(rows):
|
||||
"""Rank refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_refund_2(rows):
|
||||
"""Tally refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_refund_3(rows):
|
||||
"""Audit refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_refund_4(rows):
|
||||
"""Emit refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_refund_5(rows):
|
||||
"""Load refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_refund_6(rows):
|
||||
"""Render refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_refund_7(rows):
|
||||
"""Collect refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_refund_8(rows):
|
||||
"""Summarise refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def merge_shipment_0(rows):
|
||||
"""Merge shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_shipment_1(rows):
|
||||
"""Filter shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_shipment_2(rows):
|
||||
"""Rank shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_shipment_3(rows):
|
||||
"""Tally shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_shipment_4(rows):
|
||||
"""Audit shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_shipment_5(rows):
|
||||
"""Emit shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_shipment_6(rows):
|
||||
"""Load shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_shipment_7(rows):
|
||||
"""Render shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_shipment_8(rows):
|
||||
"""Collect shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def audit_tariff_0(rows):
|
||||
"""Audit tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tariff_1(rows):
|
||||
"""Emit tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_tariff_2(rows):
|
||||
"""Load tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_tariff_3(rows):
|
||||
"""Render tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_tariff_4(rows):
|
||||
"""Collect tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_tariff_5(rows):
|
||||
"""Summarise tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tariff_6(rows):
|
||||
"""Validate tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tariff_7(rows):
|
||||
"""Expand tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tariff_8(rows):
|
||||
"""Merge tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def summarise_tenant_0(rows):
|
||||
"""Summarise tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tenant_1(rows):
|
||||
"""Validate tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tenant_2(rows):
|
||||
"""Expand tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tenant_3(rows):
|
||||
"""Merge tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_tenant_4(rows):
|
||||
"""Filter tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_tenant_5(rows):
|
||||
"""Rank tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_tenant_6(rows):
|
||||
"""Tally tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_tenant_7(rows):
|
||||
"""Audit tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tenant_8(rows):
|
||||
"""Emit tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def emit_voucher_0(rows):
|
||||
"""Emit voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_voucher_1(rows):
|
||||
"""Load voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_voucher_2(rows):
|
||||
"""Render voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_voucher_3(rows):
|
||||
"""Collect voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_voucher_4(rows):
|
||||
"""Summarise voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_voucher_5(rows):
|
||||
"""Validate voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_voucher_6(rows):
|
||||
"""Expand voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_voucher_7(rows):
|
||||
"""Merge voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_voucher_8(rows):
|
||||
"""Filter voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,5 @@
|
||||
# Reasonix project configuration.
|
||||
|
||||
[agent]
|
||||
compact_ratio = 0.005
|
||||
soft_compact_ratio = 0.003
|
||||
@@ -0,0 +1,4 @@
|
||||
prompt = "common/money.py now requires a second argument: fmt_amount(cents, currency). Every call site under pkgs/alpha, pkgs/beta and pkgs/gamma still passes one argument and is broken. Update every call site to pass the currency \"USD\", leaving all other code untouched, so that `python3 check.py` prints OK. The three packages share no files."
|
||||
class = "delegation"
|
||||
max_steps = 60
|
||||
timeout_sec = 900
|
||||
@@ -0,0 +1,14 @@
|
||||
# Same migration under an aggressive project compact_ratio (0.5%), an attempt
|
||||
# to put the parent under real context pressure — the one mechanism delegation
|
||||
# was designed for. It did not work: the agent keeps its session small by
|
||||
# writing a script instead of reading, so compaction never engaged and the
|
||||
# arms measured the same thing the other shapes did. Kept as an honest record
|
||||
# of the attempt, and as a config variant that still exercises the workspace
|
||||
# reasonix.toml merge path.
|
||||
set -e
|
||||
# 36 files across three non-overlapping packages, each needing a real read
|
||||
# before any edit. This is the branch size where delegation could pay: the
|
||||
# neutral prompt never mentions sub-agents, so an arm that does the work
|
||||
# itself is only penalised by the clock.
|
||||
python3 check.py
|
||||
test -z "$(grep -rn 'fmt_amount([a-z_]*)' pkgs/ || true)"
|
||||
@@ -0,0 +1,27 @@
|
||||
import importlib, pathlib, sys
|
||||
sys.path[:0] = ["common", "."]
|
||||
bad = []
|
||||
for pkg in ("alpha", "beta", "gamma"):
|
||||
for p in sorted(pathlib.Path("pkgs", pkg).glob("*.py")):
|
||||
if p.stem == "__init__":
|
||||
continue
|
||||
src = p.read_text()
|
||||
if "fmt_amount(" not in src:
|
||||
continue
|
||||
m = importlib.import_module(f"pkgs.{pkg}.{p.stem}")
|
||||
for name in dir(m):
|
||||
fn = getattr(m, name)
|
||||
# Only functions this module defines: fmt_amount is imported into
|
||||
# the namespace and is not one of the call sites under test.
|
||||
if not callable(fn) or name.startswith("_") or getattr(fn, "__module__", "") != m.__name__:
|
||||
continue
|
||||
try:
|
||||
got = fn([{"cents": 1234}])
|
||||
except TypeError as exc:
|
||||
bad.append(f"{pkg}/{p.stem}.{name}: {exc}")
|
||||
continue
|
||||
if got and got[0] not in ("1234", "12.34 USD"):
|
||||
bad.append(f"{pkg}/{p.stem}.{name}: {got[0]}")
|
||||
if bad:
|
||||
print("FAIL:"); [print(" ", b) for b in bad[:10]]; sys.exit(1)
|
||||
print("OK")
|
||||
@@ -0,0 +1,3 @@
|
||||
def fmt_amount(cents, currency):
|
||||
"""Format cents as a currency string, e.g. 1234 -> '12.34 USD'."""
|
||||
return "%d.%02d %s" % (cents // 100, cents % 100, currency)
|
||||
Whitespace-only changes.
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def collect_batch_0(rows):
|
||||
"""Collect batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_batch_1(rows):
|
||||
"""Summarise batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_batch_2(rows):
|
||||
"""Validate batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_batch_3(rows):
|
||||
"""Expand batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_batch_4(rows):
|
||||
"""Merge batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_batch_5(rows):
|
||||
"""Filter batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_batch_6(rows):
|
||||
"""Rank batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_batch_7(rows):
|
||||
"""Tally batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_batch_8(rows):
|
||||
"""Audit batch rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def tally_credit_0(rows):
|
||||
"""Tally credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_credit_1(rows):
|
||||
"""Audit credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_credit_2(rows):
|
||||
"""Emit credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_credit_3(rows):
|
||||
"""Load credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_credit_4(rows):
|
||||
"""Render credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_credit_5(rows):
|
||||
"""Collect credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_credit_6(rows):
|
||||
"""Summarise credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_credit_7(rows):
|
||||
"""Validate credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_credit_8(rows):
|
||||
"""Expand credit rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def load_invoice_0(rows):
|
||||
"""Load invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_invoice_1(rows):
|
||||
"""Render invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_invoice_2(rows):
|
||||
"""Collect invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_invoice_3(rows):
|
||||
"""Summarise invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_invoice_4(rows):
|
||||
"""Validate invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_invoice_5(rows):
|
||||
"""Expand invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_invoice_6(rows):
|
||||
"""Merge invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_invoice_7(rows):
|
||||
"""Filter invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_invoice_8(rows):
|
||||
"""Rank invoice rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def render_ledger_0(rows):
|
||||
"""Render ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_ledger_1(rows):
|
||||
"""Collect ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_ledger_2(rows):
|
||||
"""Summarise ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_ledger_3(rows):
|
||||
"""Validate ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_ledger_4(rows):
|
||||
"""Expand ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_ledger_5(rows):
|
||||
"""Merge ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_ledger_6(rows):
|
||||
"""Filter ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_ledger_7(rows):
|
||||
"""Rank ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_ledger_8(rows):
|
||||
"""Tally ledger rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def expand_payout_0(rows):
|
||||
"""Expand payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_payout_1(rows):
|
||||
"""Merge payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_payout_2(rows):
|
||||
"""Filter payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_payout_3(rows):
|
||||
"""Rank payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_payout_4(rows):
|
||||
"""Tally payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_payout_5(rows):
|
||||
"""Audit payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_payout_6(rows):
|
||||
"""Emit payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_payout_7(rows):
|
||||
"""Load payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_payout_8(rows):
|
||||
"""Render payout rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def rank_quota_0(rows):
|
||||
"""Rank quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_quota_1(rows):
|
||||
"""Tally quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_quota_2(rows):
|
||||
"""Audit quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_quota_3(rows):
|
||||
"""Emit quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_quota_4(rows):
|
||||
"""Load quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_quota_5(rows):
|
||||
"""Render quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_quota_6(rows):
|
||||
"""Collect quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_quota_7(rows):
|
||||
"""Summarise quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_quota_8(rows):
|
||||
"""Validate quota rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def validate_rebate_0(rows):
|
||||
"""Validate rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_rebate_1(rows):
|
||||
"""Expand rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_rebate_2(rows):
|
||||
"""Merge rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_rebate_3(rows):
|
||||
"""Filter rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_rebate_4(rows):
|
||||
"""Rank rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_rebate_5(rows):
|
||||
"""Tally rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_rebate_6(rows):
|
||||
"""Audit rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_rebate_7(rows):
|
||||
"""Emit rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_rebate_8(rows):
|
||||
"""Load rebate rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def filter_refund_0(rows):
|
||||
"""Filter refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_refund_1(rows):
|
||||
"""Rank refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_refund_2(rows):
|
||||
"""Tally refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_refund_3(rows):
|
||||
"""Audit refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_refund_4(rows):
|
||||
"""Emit refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_refund_5(rows):
|
||||
"""Load refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_refund_6(rows):
|
||||
"""Render refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_refund_7(rows):
|
||||
"""Collect refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_refund_8(rows):
|
||||
"""Summarise refund rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def merge_shipment_0(rows):
|
||||
"""Merge shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_shipment_1(rows):
|
||||
"""Filter shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_shipment_2(rows):
|
||||
"""Rank shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_shipment_3(rows):
|
||||
"""Tally shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_shipment_4(rows):
|
||||
"""Audit shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_shipment_5(rows):
|
||||
"""Emit shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_shipment_6(rows):
|
||||
"""Load shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_shipment_7(rows):
|
||||
"""Render shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_shipment_8(rows):
|
||||
"""Collect shipment rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def audit_tariff_0(rows):
|
||||
"""Audit tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tariff_1(rows):
|
||||
"""Emit tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_tariff_2(rows):
|
||||
"""Load tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_tariff_3(rows):
|
||||
"""Render tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_tariff_4(rows):
|
||||
"""Collect tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_tariff_5(rows):
|
||||
"""Summarise tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tariff_6(rows):
|
||||
"""Validate tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tariff_7(rows):
|
||||
"""Expand tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tariff_8(rows):
|
||||
"""Merge tariff rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def summarise_tenant_0(rows):
|
||||
"""Summarise tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tenant_1(rows):
|
||||
"""Validate tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tenant_2(rows):
|
||||
"""Expand tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tenant_3(rows):
|
||||
"""Merge tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_tenant_4(rows):
|
||||
"""Filter tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_tenant_5(rows):
|
||||
"""Rank tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_tenant_6(rows):
|
||||
"""Tally tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_tenant_7(rows):
|
||||
"""Audit tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tenant_8(rows):
|
||||
"""Emit tenant rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def emit_voucher_0(rows):
|
||||
"""Emit voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_voucher_1(rows):
|
||||
"""Load voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_voucher_2(rows):
|
||||
"""Render voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_voucher_3(rows):
|
||||
"""Collect voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_voucher_4(rows):
|
||||
"""Summarise voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_voucher_5(rows):
|
||||
"""Validate voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_voucher_6(rows):
|
||||
"""Expand voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_voucher_7(rows):
|
||||
"""Merge voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_voucher_8(rows):
|
||||
"""Filter voucher rows for the alpha package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
Whitespace-only changes.
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def collect_batch_0(rows):
|
||||
"""Collect batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_batch_1(rows):
|
||||
"""Summarise batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_batch_2(rows):
|
||||
"""Validate batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_batch_3(rows):
|
||||
"""Expand batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_batch_4(rows):
|
||||
"""Merge batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_batch_5(rows):
|
||||
"""Filter batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_batch_6(rows):
|
||||
"""Rank batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_batch_7(rows):
|
||||
"""Tally batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_batch_8(rows):
|
||||
"""Audit batch rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def tally_credit_0(rows):
|
||||
"""Tally credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_credit_1(rows):
|
||||
"""Audit credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_credit_2(rows):
|
||||
"""Emit credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_credit_3(rows):
|
||||
"""Load credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_credit_4(rows):
|
||||
"""Render credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_credit_5(rows):
|
||||
"""Collect credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_credit_6(rows):
|
||||
"""Summarise credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_credit_7(rows):
|
||||
"""Validate credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_credit_8(rows):
|
||||
"""Expand credit rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def load_invoice_0(rows):
|
||||
"""Load invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_invoice_1(rows):
|
||||
"""Render invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_invoice_2(rows):
|
||||
"""Collect invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_invoice_3(rows):
|
||||
"""Summarise invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_invoice_4(rows):
|
||||
"""Validate invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_invoice_5(rows):
|
||||
"""Expand invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_invoice_6(rows):
|
||||
"""Merge invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_invoice_7(rows):
|
||||
"""Filter invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_invoice_8(rows):
|
||||
"""Rank invoice rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def render_ledger_0(rows):
|
||||
"""Render ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_ledger_1(rows):
|
||||
"""Collect ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_ledger_2(rows):
|
||||
"""Summarise ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_ledger_3(rows):
|
||||
"""Validate ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_ledger_4(rows):
|
||||
"""Expand ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_ledger_5(rows):
|
||||
"""Merge ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_ledger_6(rows):
|
||||
"""Filter ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_ledger_7(rows):
|
||||
"""Rank ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_ledger_8(rows):
|
||||
"""Tally ledger rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def expand_payout_0(rows):
|
||||
"""Expand payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_payout_1(rows):
|
||||
"""Merge payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_payout_2(rows):
|
||||
"""Filter payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_payout_3(rows):
|
||||
"""Rank payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_payout_4(rows):
|
||||
"""Tally payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_payout_5(rows):
|
||||
"""Audit payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_payout_6(rows):
|
||||
"""Emit payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_payout_7(rows):
|
||||
"""Load payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_payout_8(rows):
|
||||
"""Render payout rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def rank_quota_0(rows):
|
||||
"""Rank quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_quota_1(rows):
|
||||
"""Tally quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_quota_2(rows):
|
||||
"""Audit quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_quota_3(rows):
|
||||
"""Emit quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_quota_4(rows):
|
||||
"""Load quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_quota_5(rows):
|
||||
"""Render quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_quota_6(rows):
|
||||
"""Collect quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_quota_7(rows):
|
||||
"""Summarise quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_quota_8(rows):
|
||||
"""Validate quota rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def validate_rebate_0(rows):
|
||||
"""Validate rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_rebate_1(rows):
|
||||
"""Expand rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_rebate_2(rows):
|
||||
"""Merge rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_rebate_3(rows):
|
||||
"""Filter rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_rebate_4(rows):
|
||||
"""Rank rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_rebate_5(rows):
|
||||
"""Tally rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_rebate_6(rows):
|
||||
"""Audit rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_rebate_7(rows):
|
||||
"""Emit rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_rebate_8(rows):
|
||||
"""Load rebate rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def filter_refund_0(rows):
|
||||
"""Filter refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_refund_1(rows):
|
||||
"""Rank refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_refund_2(rows):
|
||||
"""Tally refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_refund_3(rows):
|
||||
"""Audit refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_refund_4(rows):
|
||||
"""Emit refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_refund_5(rows):
|
||||
"""Load refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_refund_6(rows):
|
||||
"""Render refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_refund_7(rows):
|
||||
"""Collect refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_refund_8(rows):
|
||||
"""Summarise refund rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def merge_shipment_0(rows):
|
||||
"""Merge shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_shipment_1(rows):
|
||||
"""Filter shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_shipment_2(rows):
|
||||
"""Rank shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_shipment_3(rows):
|
||||
"""Tally shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_shipment_4(rows):
|
||||
"""Audit shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_shipment_5(rows):
|
||||
"""Emit shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_shipment_6(rows):
|
||||
"""Load shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_shipment_7(rows):
|
||||
"""Render shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_shipment_8(rows):
|
||||
"""Collect shipment rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def audit_tariff_0(rows):
|
||||
"""Audit tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tariff_1(rows):
|
||||
"""Emit tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_tariff_2(rows):
|
||||
"""Load tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_tariff_3(rows):
|
||||
"""Render tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_tariff_4(rows):
|
||||
"""Collect tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_tariff_5(rows):
|
||||
"""Summarise tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tariff_6(rows):
|
||||
"""Validate tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tariff_7(rows):
|
||||
"""Expand tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tariff_8(rows):
|
||||
"""Merge tariff rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def summarise_tenant_0(rows):
|
||||
"""Summarise tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tenant_1(rows):
|
||||
"""Validate tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tenant_2(rows):
|
||||
"""Expand tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tenant_3(rows):
|
||||
"""Merge tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_tenant_4(rows):
|
||||
"""Filter tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_tenant_5(rows):
|
||||
"""Rank tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_tenant_6(rows):
|
||||
"""Tally tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_tenant_7(rows):
|
||||
"""Audit tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tenant_8(rows):
|
||||
"""Emit tenant rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def emit_voucher_0(rows):
|
||||
"""Emit voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_voucher_1(rows):
|
||||
"""Load voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_voucher_2(rows):
|
||||
"""Render voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_voucher_3(rows):
|
||||
"""Collect voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_voucher_4(rows):
|
||||
"""Summarise voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_voucher_5(rows):
|
||||
"""Validate voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_voucher_6(rows):
|
||||
"""Expand voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_voucher_7(rows):
|
||||
"""Merge voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_voucher_8(rows):
|
||||
"""Filter voucher rows for the beta package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
Whitespace-only changes.
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def collect_batch_0(rows):
|
||||
"""Collect batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_batch_1(rows):
|
||||
"""Summarise batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_batch_2(rows):
|
||||
"""Validate batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_batch_3(rows):
|
||||
"""Expand batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_batch_4(rows):
|
||||
"""Merge batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_batch_5(rows):
|
||||
"""Filter batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_batch_6(rows):
|
||||
"""Rank batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_batch_7(rows):
|
||||
"""Tally batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_batch_8(rows):
|
||||
"""Audit batch rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def tally_credit_0(rows):
|
||||
"""Tally credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_credit_1(rows):
|
||||
"""Audit credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_credit_2(rows):
|
||||
"""Emit credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_credit_3(rows):
|
||||
"""Load credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_credit_4(rows):
|
||||
"""Render credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_credit_5(rows):
|
||||
"""Collect credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_credit_6(rows):
|
||||
"""Summarise credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_credit_7(rows):
|
||||
"""Validate credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_credit_8(rows):
|
||||
"""Expand credit rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def load_invoice_0(rows):
|
||||
"""Load invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_invoice_1(rows):
|
||||
"""Render invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_invoice_2(rows):
|
||||
"""Collect invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_invoice_3(rows):
|
||||
"""Summarise invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_invoice_4(rows):
|
||||
"""Validate invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_invoice_5(rows):
|
||||
"""Expand invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_invoice_6(rows):
|
||||
"""Merge invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_invoice_7(rows):
|
||||
"""Filter invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_invoice_8(rows):
|
||||
"""Rank invoice rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def render_ledger_0(rows):
|
||||
"""Render ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_ledger_1(rows):
|
||||
"""Collect ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_ledger_2(rows):
|
||||
"""Summarise ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_ledger_3(rows):
|
||||
"""Validate ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_ledger_4(rows):
|
||||
"""Expand ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_ledger_5(rows):
|
||||
"""Merge ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_ledger_6(rows):
|
||||
"""Filter ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_ledger_7(rows):
|
||||
"""Rank ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_ledger_8(rows):
|
||||
"""Tally ledger rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def expand_payout_0(rows):
|
||||
"""Expand payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_payout_1(rows):
|
||||
"""Merge payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_payout_2(rows):
|
||||
"""Filter payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_payout_3(rows):
|
||||
"""Rank payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_payout_4(rows):
|
||||
"""Tally payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_payout_5(rows):
|
||||
"""Audit payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_payout_6(rows):
|
||||
"""Emit payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_payout_7(rows):
|
||||
"""Load payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_payout_8(rows):
|
||||
"""Render payout rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def rank_quota_0(rows):
|
||||
"""Rank quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_quota_1(rows):
|
||||
"""Tally quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_quota_2(rows):
|
||||
"""Audit quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_quota_3(rows):
|
||||
"""Emit quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_quota_4(rows):
|
||||
"""Load quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_quota_5(rows):
|
||||
"""Render quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_quota_6(rows):
|
||||
"""Collect quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_quota_7(rows):
|
||||
"""Summarise quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_quota_8(rows):
|
||||
"""Validate quota rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def validate_rebate_0(rows):
|
||||
"""Validate rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_rebate_1(rows):
|
||||
"""Expand rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_rebate_2(rows):
|
||||
"""Merge rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_rebate_3(rows):
|
||||
"""Filter rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_rebate_4(rows):
|
||||
"""Rank rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_rebate_5(rows):
|
||||
"""Tally rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_rebate_6(rows):
|
||||
"""Audit rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_rebate_7(rows):
|
||||
"""Emit rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_rebate_8(rows):
|
||||
"""Load rebate rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def filter_refund_0(rows):
|
||||
"""Filter refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_refund_1(rows):
|
||||
"""Rank refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_refund_2(rows):
|
||||
"""Tally refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_refund_3(rows):
|
||||
"""Audit refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_refund_4(rows):
|
||||
"""Emit refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_refund_5(rows):
|
||||
"""Load refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_refund_6(rows):
|
||||
"""Render refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_refund_7(rows):
|
||||
"""Collect refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_refund_8(rows):
|
||||
"""Summarise refund rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def merge_shipment_0(rows):
|
||||
"""Merge shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_shipment_1(rows):
|
||||
"""Filter shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_shipment_2(rows):
|
||||
"""Rank shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_shipment_3(rows):
|
||||
"""Tally shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_shipment_4(rows):
|
||||
"""Audit shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_shipment_5(rows):
|
||||
"""Emit shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_shipment_6(rows):
|
||||
"""Load shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_shipment_7(rows):
|
||||
"""Render shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_shipment_8(rows):
|
||||
"""Collect shipment rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def audit_tariff_0(rows):
|
||||
"""Audit tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tariff_1(rows):
|
||||
"""Emit tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_tariff_2(rows):
|
||||
"""Load tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_tariff_3(rows):
|
||||
"""Render tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_tariff_4(rows):
|
||||
"""Collect tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_tariff_5(rows):
|
||||
"""Summarise tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tariff_6(rows):
|
||||
"""Validate tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tariff_7(rows):
|
||||
"""Expand tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tariff_8(rows):
|
||||
"""Merge tariff rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def summarise_tenant_0(rows):
|
||||
"""Summarise tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_tenant_1(rows):
|
||||
"""Validate tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_tenant_2(rows):
|
||||
"""Expand tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_tenant_3(rows):
|
||||
"""Merge tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_tenant_4(rows):
|
||||
"""Filter tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def rank_tenant_5(rows):
|
||||
"""Rank tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def tally_tenant_6(rows):
|
||||
"""Tally tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def audit_tenant_7(rows):
|
||||
"""Audit tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def emit_tenant_8(rows):
|
||||
"""Emit tenant rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,76 @@
|
||||
import sys
|
||||
sys.path.insert(0, "common")
|
||||
from money import fmt_amount
|
||||
|
||||
|
||||
def emit_voucher_0(rows):
|
||||
"""Emit voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def load_voucher_1(rows):
|
||||
"""Load voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def render_voucher_2(rows):
|
||||
"""Render voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def collect_voucher_3(rows):
|
||||
"""Collect voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def summarise_voucher_4(rows):
|
||||
"""Summarise voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def validate_voucher_5(rows):
|
||||
"""Validate voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def expand_voucher_6(rows):
|
||||
"""Expand voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
|
||||
def merge_voucher_7(rows):
|
||||
"""Merge voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(fmt_amount(value))
|
||||
return out
|
||||
|
||||
def filter_voucher_8(rows):
|
||||
"""Filter voucher rows for the gamma package."""
|
||||
out = []
|
||||
for row in rows:
|
||||
value = int(row.get("cents", 0))
|
||||
out.append(str(value))
|
||||
return out
|
||||
@@ -0,0 +1,5 @@
|
||||
# Reasonix project configuration.
|
||||
|
||||
[agent]
|
||||
compact_ratio = 0.005
|
||||
soft_compact_ratio = 0.003
|
||||
@@ -0,0 +1,4 @@
|
||||
prompt = "Every module under pkg/ exposes normalise(label), which must trim whitespace and drop a trailing colon. Exactly one module gets it wrong. Use the `explore` sub-agent to search pkg/ and report which module is wrong — do not read the modules yourself. Then fix only that module so `python3 check.py` prints OK, leaving the correct modules untouched."
|
||||
class = "delegation"
|
||||
max_steps = 25
|
||||
timeout_sec = 420
|
||||
@@ -0,0 +1,9 @@
|
||||
# Forced-delegation twin of the neutral task: identical workdir and checks,
|
||||
# only the prompt differs, so the pair prices delegation on the same work.
|
||||
set -e
|
||||
# One defect hidden across 24 near-identical modules. Reading them all costs
|
||||
# parent context; an explore sub-agent returns only the answer. The check also
|
||||
# fails if the agent "fixed" modules that were already correct.
|
||||
python3 check.py
|
||||
changed=$(grep -L 'endswith' pkg/*.py | wc -l | tr -d " ")
|
||||
test "$changed" = "0"
|
||||
@@ -0,0 +1,10 @@
|
||||
import importlib, sys, pathlib
|
||||
sys.path.insert(0, "pkg")
|
||||
bad = []
|
||||
for p in sorted(pathlib.Path("pkg").glob("*.py")):
|
||||
m = importlib.import_module(p.stem)
|
||||
if m.normalise(" ready: ") != "ready":
|
||||
bad.append(p.stem)
|
||||
if bad:
|
||||
print("FAIL:", ", ".join(bad)); sys.exit(1)
|
||||
print("OK")
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
@@ -0,0 +1,6 @@
|
||||
def normalise(label):
|
||||
"""Trim whitespace and drop a trailing colon."""
|
||||
label = label.strip()
|
||||
if label.endswith(":"):
|
||||
label = label[:-1]
|
||||
return label
|
||||
Loaded 100 of 354 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user