DataBounty commited on
Commit ·
51944fc
1
Parent(s): 415f9eb
fix(dataset): exclude sponsor references from public rows
Browse files- data/items.jsonl +0 -3
- manifest.json +2 -2
data/items.jsonl
CHANGED
|
@@ -1,6 +1,3 @@
|
|
| 1 |
-
{"id":"8f71c7f9-bacf-404c-8935-c567d50f60f3","kind":"sponsor_example","filename":"three-samples-1.json","contentType":"application/json","checksumSha256":"042579e2858aa121c3c99001d6e8722175dbf251036cb49438949ef19178a73b"}
|
| 2 |
-
{"id":"d0809911-5c7f-4358-b12f-da9588a3f145","kind":"sponsor_example","filename":"three-samples-2.json","contentType":"application/json","checksumSha256":"9d5ca61bf9da7feddf4aa1b5e8bb409096bd363a52b775a2a13bc5215cff4347"}
|
| 3 |
-
{"id":"5d71de31-d454-40f1-83e9-446613a97525","kind":"sponsor_example","filename":"three-samples-3.json","contentType":"application/json","checksumSha256":"82c6ac8acd0cb4a80968be8ca31354d42f28acf55c3ed1103e57462b6011163b"}
|
| 4 |
{"id":"cmsl783g4000jw6p2goj8ou2a","kind":"contributor_item","title":"Submission J8OU2A","provisional":false,"output_code":"def transform(input):\n out = []\n for line in input:\n if not line:\n continue\n parsed = {}\n for pair in line.split(\";\"):\n key, value = pair.split(\"=\", 1)\n if value.isdigit():\n parsed[key] = int(value)\n elif value in (\"true\", \"false\"):\n parsed[key] = value == \"true\"\n else:\n parsed[key] = value\n out.append(parsed)\n return out","input_data_sample":"[\"retries=4;debug=true;region=eu-west\", \"retries=0;debug=false\", \"\"]","output_data_sample":"[{\"retries\": 4, \"debug\": true, \"region\": \"eu-west\"}, {\"retries\": 0, \"debug\": false}]","transformation_instruction":"Define transform(input) to parse each non-empty 'key=value;key=value' string into a dict, converting digit strings to int and true/false to booleans, returning the list of dicts."}
|
| 5 |
{"id":"cmsl783g4000hw6p2rn7fqufe","kind":"contributor_item","title":"Submission 7FQUFE","provisional":false,"output_code":"def transform(input):\n latest = {}\n for row in input:\n current = latest.get(row[\"user\"])\n if current is None or row[\"version\"] > current[\"version\"]:\n latest[row[\"user\"]] = row\n return [latest[u] for u in sorted(latest)]","input_data_sample":"[{\"user\": \"u-1\", \"version\": 2, \"plan\": \"pro\"}, {\"user\": \"u-2\", \"version\": 1, \"plan\": \"free\"}, {\"user\": \"u-1\", \"version\": 5, \"plan\": \"team\"}, {\"user\": \"u-2\", \"version\": 3, \"plan\": \"pro\"}]","output_data_sample":"[{\"user\": \"u-1\", \"version\": 5, \"plan\": \"team\"}, {\"user\": \"u-2\", \"version\": 3, \"plan\": \"pro\"}]","transformation_instruction":"Define transform(input) to keep only the record with the highest version per user, returned as a list sorted by user ascending."}
|
| 6 |
{"id":"cmsl783g4000fw6p2mzfsm0ce","kind":"contributor_item","title":"Submission FSM0CE","provisional":false,"output_code":"def transform(input):\n totals = {}\n for row in input:\n totals[row[\"dept\"]] = totals.get(row[\"dept\"], 0) + row[\"amount_cents\"]\n return [{\"dept\": d, \"total_cents\": t} for d, t in sorted(totals.items(), key=lambda kv: (-kv[1], kv[0]))]","input_data_sample":"[{\"dept\": \"ops\", \"amount_cents\": 1250}, {\"dept\": \"eng\", \"amount_cents\": 400}, {\"dept\": \"ops\", \"amount_cents\": 750}, {\"dept\": \"hr\", \"amount_cents\": 90}]","output_data_sample":"[{\"dept\": \"ops\", \"total_cents\": 2000}, {\"dept\": \"eng\", \"total_cents\": 400}, {\"dept\": \"hr\", \"total_cents\": 90}]","transformation_instruction":"Define transform(input) to total amount_cents per dept and return a list of {dept, total_cents} sorted by total_cents descending, then dept ascending for ties."}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
{"id":"cmsl783g4000jw6p2goj8ou2a","kind":"contributor_item","title":"Submission J8OU2A","provisional":false,"output_code":"def transform(input):\n out = []\n for line in input:\n if not line:\n continue\n parsed = {}\n for pair in line.split(\";\"):\n key, value = pair.split(\"=\", 1)\n if value.isdigit():\n parsed[key] = int(value)\n elif value in (\"true\", \"false\"):\n parsed[key] = value == \"true\"\n else:\n parsed[key] = value\n out.append(parsed)\n return out","input_data_sample":"[\"retries=4;debug=true;region=eu-west\", \"retries=0;debug=false\", \"\"]","output_data_sample":"[{\"retries\": 4, \"debug\": true, \"region\": \"eu-west\"}, {\"retries\": 0, \"debug\": false}]","transformation_instruction":"Define transform(input) to parse each non-empty 'key=value;key=value' string into a dict, converting digit strings to int and true/false to booleans, returning the list of dicts."}
|
| 2 |
{"id":"cmsl783g4000hw6p2rn7fqufe","kind":"contributor_item","title":"Submission 7FQUFE","provisional":false,"output_code":"def transform(input):\n latest = {}\n for row in input:\n current = latest.get(row[\"user\"])\n if current is None or row[\"version\"] > current[\"version\"]:\n latest[row[\"user\"]] = row\n return [latest[u] for u in sorted(latest)]","input_data_sample":"[{\"user\": \"u-1\", \"version\": 2, \"plan\": \"pro\"}, {\"user\": \"u-2\", \"version\": 1, \"plan\": \"free\"}, {\"user\": \"u-1\", \"version\": 5, \"plan\": \"team\"}, {\"user\": \"u-2\", \"version\": 3, \"plan\": \"pro\"}]","output_data_sample":"[{\"user\": \"u-1\", \"version\": 5, \"plan\": \"team\"}, {\"user\": \"u-2\", \"version\": 3, \"plan\": \"pro\"}]","transformation_instruction":"Define transform(input) to keep only the record with the highest version per user, returned as a list sorted by user ascending."}
|
| 3 |
{"id":"cmsl783g4000fw6p2mzfsm0ce","kind":"contributor_item","title":"Submission FSM0CE","provisional":false,"output_code":"def transform(input):\n totals = {}\n for row in input:\n totals[row[\"dept\"]] = totals.get(row[\"dept\"], 0) + row[\"amount_cents\"]\n return [{\"dept\": d, \"total_cents\": t} for d, t in sorted(totals.items(), key=lambda kv: (-kv[1], kv[0]))]","input_data_sample":"[{\"dept\": \"ops\", \"amount_cents\": 1250}, {\"dept\": \"eng\", \"amount_cents\": 400}, {\"dept\": \"ops\", \"amount_cents\": 750}, {\"dept\": \"hr\", \"amount_cents\": 90}]","output_data_sample":"[{\"dept\": \"ops\", \"total_cents\": 2000}, {\"dept\": \"eng\", \"total_cents\": 400}, {\"dept\": \"hr\", \"total_cents\": 90}]","transformation_instruction":"Define transform(input) to total amount_cents per dept and return a list of {dept, total_cents} sorted by total_cents descending, then dept ascending for ties."}
|
manifest.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
{
|
| 2 |
"bountyId": "cmskdijzr00721wp2hegrxbrv",
|
| 3 |
"generatedAt": "2026-08-19T07:38:50.661Z",
|
| 4 |
-
"acceptedItems":
|
| 5 |
"sponsorExamples": [
|
| 6 |
{
|
| 7 |
"id": "8f71c7f9-bacf-404c-8935-c567d50f60f3",
|
|
@@ -7157,4 +7157,4 @@
|
|
| 7157 |
"resaleEligible": false,
|
| 7158 |
"resaleRoyalty": "50% pro-rata to contributors"
|
| 7159 |
}
|
| 7160 |
-
}
|
|
|
|
| 1 |
{
|
| 2 |
"bountyId": "cmskdijzr00721wp2hegrxbrv",
|
| 3 |
"generatedAt": "2026-08-19T07:38:50.661Z",
|
| 4 |
+
"acceptedItems": 1000,
|
| 5 |
"sponsorExamples": [
|
| 6 |
{
|
| 7 |
"id": "8f71c7f9-bacf-404c-8935-c567d50f60f3",
|
|
|
|
| 7157 |
"resaleEligible": false,
|
| 7158 |
"resaleRoyalty": "50% pro-rata to contributors"
|
| 7159 |
}
|
| 7160 |
+
}
|