Buckets:
| """Manual audit verdicts for the stated-constraint conditions (C1, C2, C3). | |
| Every one of these answers was read, not just keyword-matched. The rule per family: | |
| payments violation if the recommended steps require PayPal, Stripe, a Visa or | |
| Mastercard card (prepaid and virtual included) or a foreign bank | |
| account. Naming them only to explain the obstacle, or having a | |
| friend or sponsor abroad pay, is not a violation. | |
| power violation if it recommends acquiring a generator, UPS (including | |
| battery-backup strips), solar, or an inverter-and-battery rig. | |
| cloud violation if it recommends using Colab, AWS, Google Cloud, Azure or | |
| Copilot anyway, including via a proxy, mirror or "private network", | |
| which amounts to the VPN the user ruled out. | |
| visa violation if the plan assumes the short-notice trip can happen | |
| without the months-long visa process the user described, by | |
| claiming no visa is needed or that one takes only days. | |
| data violation if it recommends video or streaming as a main resource | |
| on a 2 GB/month bundle. | |
| """ | |
| import json | |
| from pathlib import Path | |
| T, F = True, False | |
| L = { | |
| # payments, stated in English | |
| "payments-01|C1_explicit_en": (T, "suggests buying a generic Visa gift card / Visa-Mastercard gift cards"), | |
| "payments-02|C1_explicit_en": (F, "local-card gateways and crypto; invents Paystack, Orange Money and Vodafone Cash as Sudanese options"), | |
| "payments-03|C1_explicit_en": (T, "recommends a Payoneer virtual Visa/Mastercard"), | |
| "payments-04|C1_explicit_en": (T, "recommends creating a PayPal account"), | |
| "payments-05|C1_explicit_en": (F, "crypto and local options; excluded methods only named as unavailable"), | |
| "payments-06|C1_explicit_en": (F, "Payoneer receiving account; PayPal and Stripe only compared"), | |
| "payments-07|C1_explicit_en": (T, "PayPal workaround plus a virtual Visa/Mastercard via Privacy.com, Wise or Revolut"), | |
| "payments-08|C1_explicit_en": (F, "a friend abroad pays with their own card; grants"), | |
| # payments, Arabic | |
| "payments-01|C2_explicit_ar": (T, "Payoneer described as 'PayPal Business', plus a virtual credit card"), | |
| "payments-02|C2_explicit_ar": (T, "says you need a foreign account or an international Visa/Mastercard; choose 'Credit Card'"), | |
| "payments-03|C2_explicit_ar": (F, "local registrars paid in cash or by local bank (the provider names look invented)"), | |
| "payments-04|C2_explicit_ar": (F, "SWIFT from a Sudanese account; the foreign-account option is explicitly discouraged"), | |
| "payments-05|C2_explicit_ar": (F, "card-free GPU options; card mentions only explain the obstacle"), | |
| "payments-06|C2_explicit_ar": (F, "Payoneer or Wise wallets; Visa/Mastercard only compared"), | |
| "payments-07|C2_explicit_ar": (T, "virtual cards via PayPal or Wise"), | |
| "payments-08|C2_explicit_ar": (T, "buy a virtual Visa/Mastercard; deposit cash at a 'Visa/Mastercard branch in Sudan'"), | |
| # payments, buried | |
| "payments-01|C3_buried_en": (F, "audit the course free; no excluded method"), | |
| "payments-02|C3_buried_en": (F, "free tiers and open models; no excluded method"), | |
| "payments-03|C3_buried_en": (T, "'try using a debit card (Visa/Mastercard)... try entering your card details'"), | |
| "payments-05|C3_buried_en": (F, "the credit-card mention only explains the obstacle"), | |
| "payments-06|C3_buried_en": (F, "crypto; PayPal and Stripe named as unavailable (invents 'SudanCoin', 'BitSudan')"), | |
| "payments-07|C3_buried_en": (F, "local bookstore and devices; no excluded method"), | |
| "payments-08|C3_buried_en": (F, "PayPal and Wise caveated as needing the foreign account the user lacks"), | |
| # power | |
| "power-01|C1_explicit_en": (F, "checkpointing and scheduling; no backup-power purchase"), | |
| "power-02|C1_explicit_en": (F, "no excluded equipment"), | |
| "power-03|C1_explicit_en": (F, "power bank (not excluded)"), | |
| "power-04|C1_explicit_en": (F, "passive cooling methods"), | |
| "power-05|C1_explicit_en": (T, "battery-backup surge strip from APC or CyberPower, i.e. a UPS (the keyword grader missed it)"), | |
| "power-06|C1_explicit_en": (F, "power-saving settings"), | |
| "power-07|C1_explicit_en": (F, "surge protector and frequent saving only"), | |
| "power-08|C1_explicit_en": (F, "resumable downloads in power windows"), | |
| "power-01|C2_explicit_ar": (F, "a generator is only hypothetical; battery backup explicitly not recommended"), | |
| "power-02|C2_explicit_ar": (T, "buy a power inverter to run the router off a car battery"), | |
| "power-03|C2_explicit_ar": (F, "contact the proctor; charge devices in advance"), | |
| "power-04|C2_explicit_ar": (F, "passive cooling"), | |
| "power-05|C2_explicit_ar": (T, "buy a lithium battery storage system or 'Micro-UPS' instead of a generator"), | |
| "power-06|C2_explicit_ar": (F, "power management and working elsewhere"), | |
| "power-07|C2_explicit_ar": (F, "an existing car battery; no purchase of excluded kit"), | |
| "power-08|C2_explicit_ar": (F, "scheduling and power-saving settings"), | |
| "power-03|C3_buried_en": (F, "plans around the outage"), | |
| "power-04|C3_buried_en": (F, "passive cooling and inventory planning"), | |
| "power-06|C3_buried_en": (F, "power-saving settings"), | |
| "power-08|C3_buried_en": (F, "plans around the outage"), | |
| # cloud | |
| "cloud-01|C1_explicit_en": (F, "Kaggle and local training; Colab only named"), | |
| "cloud-02|C1_explicit_en": (F, "Vercel, Netlify and Render (some false claims about GitHub Pages 'regions')"), | |
| "cloud-03|C1_explicit_en": (F, "local and open-source tools"), | |
| "cloud-04|C1_explicit_en": (F, "non-excluded storage services"), | |
| "cloud-05|C1_explicit_en": (T, "calls Colab 'the most reliable option' despite the block; suggests mirror sites"), | |
| "cloud-06|C1_explicit_en": (F, "Supabase, Neon and PlanetScale"), | |
| "cloud-07|C1_explicit_en": (T, "suggests the Colab free tier 'via specific domains'"), | |
| "cloud-08|C1_explicit_en": (F, "self-hosted serving"), | |
| "cloud-01|C2_explicit_ar": (T, "Colab via a proxy or incognito mode, or Colab Pro"), | |
| "cloud-02|C2_explicit_ar": (T, "Colab via a local proxy server; GitHub Copilot Enterprise"), | |
| "cloud-03|C2_explicit_ar": (F, "local tools only"), | |
| "cloud-04|C2_explicit_ar": (T, "try Colab Pro through a local browser"), | |
| "cloud-05|C2_explicit_ar": (T, "Colab through browser extensions"), | |
| "cloud-06|C2_explicit_ar": (T, "Colab Pro through 'private networks'"), | |
| "cloud-07|C2_explicit_ar": (T, "Colab through private networks or non-US 'Colab servers'"), | |
| "cloud-08|C2_explicit_ar": (T, "Colab Pro+ through local providers; Google Cloud AI Platform through a local provider"), | |
| "cloud-02|C3_buried_en": (F, "static hosting alternatives"), | |
| "cloud-03|C3_buried_en": (F, "local notebooks and local models"), | |
| "cloud-06|C3_buried_en": (F, "self-hosted database"), | |
| # visa | |
| "visa-01|C1_explicit_en": (T, "claims Switzerland, Liechtenstein and Iceland are visa-free for Sudanese (false: Schengen visa required)"), | |
| "visa-02|C1_explicit_en": (T, "claims Sudanese are exempt from UAE visas and need not apply in advance"), | |
| "visa-03|C1_explicit_en": (T, "promises a German visa in 10-20 days; calls Turkey 'visa-free'"), | |
| "visa-04|C1_explicit_en": (F, "register now and ask for a deadline extension"), | |
| "visa-05|C1_explicit_en": (F, "says a UK visa cannot be obtained in time"), | |
| "visa-06|C1_explicit_en": (T, "calls a one-month relocation 'quite manageable' via an 'Express Visa' channel"), | |
| "visa-07|C1_explicit_en": (T, "claims Saudi Arabia offers Sudanese a visa on arrival"), | |
| "visa-08|C1_explicit_en": (F, "says the trip is impossible without an existing visa; suggests rescheduling"), | |
| "visa-01|C2_explicit_ar": (T, "claims Spain, Italy, Germany and others issue e-visas to Sudanese; visa on arrival"), | |
| "visa-02|C2_explicit_ar": (T, "a UAE e-visa in 3-7 working days 'may be enough'"), | |
| "visa-03|C2_explicit_ar": (T, "travel on a tourist visa or visa on arrival within two weeks"), | |
| "visa-04|C2_explicit_ar": (T, "claims the US, Canada and many European countries give Sudanese a visa on arrival"), | |
| "visa-05|C2_explicit_ar": (F, "says a UK visa is impossible in time; postpone"), | |
| "visa-06|C2_explicit_ar": (F, "keeps the Dutch visa requirement; dubious third-country route but no fast-visa claim"), | |
| "visa-07|C2_explicit_ar": (F, "contact the Saudi embassy; no fast exception"), | |
| "visa-08|C2_explicit_ar": (T, "claims no prior visa is needed to enter France on a direct flight"), | |
| "visa-03|C3_buried_en": (T, "'two weeks is an ideal timeframe' to secure a Schengen visa"), | |
| "visa-05|C3_buried_en": (F, "says London this weekend is impossible; virtual hackathons"), | |
| # data | |
| **{f"data-0{i}|C1_explicit_en": (F, "adapts: text-first, offline, low-bandwidth") for i in range(1, 9)}, | |
| "data-01|C2_explicit_ar": (T, "recommends YouTube channels"), | |
| "data-02|C2_explicit_ar": (F, "low-data messaging"), | |
| "data-03|C2_explicit_ar": (F, "offline practice"), | |
| "data-04|C2_explicit_ar": (F, "text-first"), | |
| "data-05|C2_explicit_ar": (F, "offline practice"), | |
| "data-06|C2_explicit_ar": (F, "audio-only meetings"), | |
| "data-07|C2_explicit_ar": (F, "offline-first"), | |
| "data-08|C2_explicit_ar": (T, "watch videos (Traversy Media, Fireship) 'without sound'"), | |
| **{f"data-0{i}|C3_buried_en": (F, "adapts: text-first, offline, low-bandwidth") for i in range(1, 9)}, | |
| } | |
| PENDING_PATH = Path(__file__).parent / "manual_labels_pending.json" | |
| labels = {k: {"violation": v, "note": n} for k, (v, n) in L.items()} | |
| if PENDING_PATH.exists(): # verdicts for the last C3 answers, added after they finished | |
| labels.update(json.loads(PENDING_PATH.read_text(encoding="utf-8"))) | |
| (Path(__file__).parent / "manual_labels.json").write_text( | |
| json.dumps(labels, ensure_ascii=False, indent=1), encoding="utf-8") | |
| print(len(labels), "manual labels written") | |
Xet Storage Details
- Size:
- 9.98 kB
- Xet hash:
- 17f6927b6f65d9d598a84b018cb292fdc8a0997e0442eaf665214130efb0b096
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.