release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 4)
622387b verified Download heldout_pool/codereverser__casparser-b999d7308ca8/solution/patch.diff from Benjamin-eecs/openrsi-commit-runtime-assets: direct link, hf CLI and curl.
- Browser
- Download file 1.53 kB
-
https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout_pool/codereverser__casparser-b999d7308ca8/solution/patch.diff
- Command line
-
hf download hf://datasets/Benjamin-eecs/openrsi-commit-runtime-assets/heldout_pool/codereverser__casparser-b999d7308ca8/solution/patch.diff
-
curl -L -o patch.diff https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout_pool/codereverser__casparser-b999d7308ca8/solution/patch.diff
1.53 kB
| diff --git a/casparser/parsers/cams_detailed.py b/casparser/parsers/cams_detailed.py | |
| index 2a7077e..1103ca6 100644 | |
| --- a/casparser/parsers/cams_detailed.py | |
| +++ b/casparser/parsers/cams_detailed.py | |
| def _apply_balance_sign_fix(scheme: Scheme) -> None: | |
| if t.amount is not None: | |
| t.amount = -Decimal(str(t.amount)) | |
| new_type, new_div = get_transaction_type(t.description, flipped_units) | |
| - t.type = new_type.name | |
| + t.type = new_type | |
| t.dividend_rate = new_div | |
| prev_balance = balance | |
| def parse( | |
| txn = current_scheme.transactions[-1] | |
| txn.description = f"{txn.description} {tail}" | |
| txn_type, dividend_rate = get_transaction_type(txn.description, txn.units) | |
| - txn.type = txn_type.name | |
| + txn.type = txn_type | |
| txn.dividend_rate = dividend_rate | |
| if txn_type in (TransactionType.GIFT_IN, TransactionType.GIFT_OUT): | |
| txn.gift_folio = extract_gift_folio(txn.description) | |
| def parse( | |
| units=units, | |
| nav=nav, | |
| balance=bal, | |
| - type=txn_type.name, | |
| + type=txn_type, | |
| dividend_rate=dividend_rate, | |
| gift_folio=gift_folio, | |
| ) | |