Text Generation
Transformers
Safetensors
GGUF
English
qwen2
awk
code-generation
text-to-code
qwen
local
small-model
execution-verified
conversational
text-generation-inference
Instructions to use asterbraid/awkweave-0.5b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use asterbraid/awkweave-0.5b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="asterbraid/awkweave-0.5b") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("asterbraid/awkweave-0.5b") model = AutoModelForCausalLM.from_pretrained("asterbraid/awkweave-0.5b", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use asterbraid/awkweave-0.5b with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf asterbraid/awkweave-0.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf asterbraid/awkweave-0.5b:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf asterbraid/awkweave-0.5b:Q4_K_M # Run inference directly in the terminal: llama cli -hf asterbraid/awkweave-0.5b:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf asterbraid/awkweave-0.5b:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf asterbraid/awkweave-0.5b:Q4_K_M
Use Docker
docker model run hf.co/asterbraid/awkweave-0.5b:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use asterbraid/awkweave-0.5b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "asterbraid/awkweave-0.5b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "asterbraid/awkweave-0.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/asterbraid/awkweave-0.5b:Q4_K_M
- SGLang
How to use asterbraid/awkweave-0.5b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "asterbraid/awkweave-0.5b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "asterbraid/awkweave-0.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "asterbraid/awkweave-0.5b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "asterbraid/awkweave-0.5b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use asterbraid/awkweave-0.5b with Ollama:
ollama run hf.co/asterbraid/awkweave-0.5b:Q4_K_M
- Unsloth Desktop
- Pi
How to use asterbraid/awkweave-0.5b with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf asterbraid/awkweave-0.5b:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "asterbraid/awkweave-0.5b:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use asterbraid/awkweave-0.5b with Docker Model Runner:
docker model run hf.co/asterbraid/awkweave-0.5b:Q4_K_M
- Lemonade
How to use asterbraid/awkweave-0.5b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull asterbraid/awkweave-0.5b:Q4_K_M
Run and chat with the model
lemonade run user.awkweave-0.5b-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use asterbraid/awkweave-0.5b with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf asterbraid/awkweave-0.5b:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default asterbraid/awkweave-0.5b:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use asterbraid/awkweave-0.5b with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf asterbraid/awkweave-0.5b:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "asterbraid/awkweave-0.5b:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Awkweave 0.5B: low-memory offline natural-language-to-awk with GGUF and Ollama support
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +3 -0
- LICENSE +202 -0
- Modelfile +5 -0
- NOTICE +7 -0
- OLLAMA.md +35 -0
- README.md +133 -0
- SHA256SUMS +2 -0
- added_tokens.json +24 -0
- awkweave-0.5b.Q4_K_M.gguf +3 -0
- awkweave-0.5b.Q8_0.gguf +3 -0
- awkweave/__init__.py +3 -0
- awkweave/cli.py +31 -0
- awkweave/execution.py +68 -0
- awkweave/model.py +44 -0
- awkweave/prompts.py +12 -0
- chat_template.jinja +54 -0
- config.json +54 -0
- evaluate.py +116 -0
- evaluation/base-base-challenge.jsonl +33 -0
- evaluation/base-base-challenge.summary.json +180 -0
- evaluation/base-base-frozen.jsonl +37 -0
- evaluation/base-base-frozen.summary.json +200 -0
- evaluation/base-base-test.jsonl +0 -0
- evaluation/base-base-test.summary.json +210 -0
- evaluation/challenge.jsonl +33 -0
- evaluation/challenge.summary.json +180 -0
- evaluation/frozen.jsonl +37 -0
- evaluation/frozen.summary.json +200 -0
- evaluation/test.jsonl +0 -0
- evaluation/test.summary.json +210 -0
- evaluation/v2-base-challenge.jsonl +33 -0
- evaluation/v2-base-challenge.summary.json +180 -0
- evaluation/v2-base-frozen.jsonl +37 -0
- evaluation/v2-base-frozen.summary.json +200 -0
- evaluation/v2-base-test.jsonl +0 -0
- evaluation/v2-base-test.summary.json +210 -0
- evaluation/v2-challenge.jsonl +33 -0
- evaluation/v2-challenge.summary.json +180 -0
- evaluation/v2-frozen.jsonl +37 -0
- evaluation/v2-frozen.summary.json +200 -0
- evaluation/v2-test.jsonl +0 -0
- evaluation/v2-test.summary.json +210 -0
- evaluation/v2-v1-challenge.jsonl +33 -0
- evaluation/v2-v1-challenge.summary.json +180 -0
- evaluation/v2-v1-frozen.jsonl +37 -0
- evaluation/v2-v1-frozen.summary.json +200 -0
- evaluation/v2-v1-test.jsonl +0 -0
- evaluation/v2-v1-test.summary.json +210 -0
- export_gguf.sh +38 -0
- generation_config.json +14 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
awkweave-0.5b.Q4_K_M.gguf filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
awkweave-0.5b.Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
|
| 2 |
+
Apache License
|
| 3 |
+
Version 2.0, January 2004
|
| 4 |
+
http://www.apache.org/licenses/
|
| 5 |
+
|
| 6 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 7 |
+
|
| 8 |
+
1. Definitions.
|
| 9 |
+
|
| 10 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 11 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 12 |
+
|
| 13 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 14 |
+
the copyright owner that is granting the License.
|
| 15 |
+
|
| 16 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 17 |
+
other entities that control, are controlled by, or are under common
|
| 18 |
+
control with that entity. For the purposes of this definition,
|
| 19 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 20 |
+
direction or management of such entity, whether by contract or
|
| 21 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 22 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 23 |
+
|
| 24 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 25 |
+
exercising permissions granted by this License.
|
| 26 |
+
|
| 27 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 28 |
+
including but not limited to software source code, documentation
|
| 29 |
+
source, and configuration files.
|
| 30 |
+
|
| 31 |
+
"Object" form shall mean any form resulting from mechanical
|
| 32 |
+
transformation or translation of a Source form, including but
|
| 33 |
+
not limited to compiled object code, generated documentation,
|
| 34 |
+
and conversions to other media types.
|
| 35 |
+
|
| 36 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 37 |
+
Object form, made available under the License, as indicated by a
|
| 38 |
+
copyright notice that is included in or attached to the work
|
| 39 |
+
(an example is provided in the Appendix below).
|
| 40 |
+
|
| 41 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 42 |
+
form, that is based on (or derived from) the Work and for which the
|
| 43 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 44 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 45 |
+
of this License, Derivative Works shall not include works that remain
|
| 46 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 47 |
+
the Work and Derivative Works thereof.
|
| 48 |
+
|
| 49 |
+
"Contribution" shall mean any work of authorship, including
|
| 50 |
+
the original version of the Work and any modifications or additions
|
| 51 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 52 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 53 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 54 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 55 |
+
means any form of electronic, verbal, or written communication sent
|
| 56 |
+
to the Licensor or its representatives, including but not limited to
|
| 57 |
+
communication on electronic mailing lists, source code control systems,
|
| 58 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 59 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 60 |
+
excluding communication that is conspicuously marked or otherwise
|
| 61 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 62 |
+
|
| 63 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 64 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 65 |
+
subsequently incorporated within the Work.
|
| 66 |
+
|
| 67 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 68 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 69 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 70 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 71 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 72 |
+
Work and such Derivative Works in Source or Object form.
|
| 73 |
+
|
| 74 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 75 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 76 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 77 |
+
(except as stated in this section) patent license to make, have made,
|
| 78 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 79 |
+
where such license applies only to those patent claims licensable
|
| 80 |
+
by such Contributor that are necessarily infringed by their
|
| 81 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 82 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 83 |
+
institute patent litigation against any entity (including a
|
| 84 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 85 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 86 |
+
or contributory patent infringement, then any patent licenses
|
| 87 |
+
granted to You under this License for that Work shall terminate
|
| 88 |
+
as of the date such litigation is filed.
|
| 89 |
+
|
| 90 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 91 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 92 |
+
modifications, and in Source or Object form, provided that You
|
| 93 |
+
meet the following conditions:
|
| 94 |
+
|
| 95 |
+
(a) You must give any other recipients of the Work or
|
| 96 |
+
Derivative Works a copy of this License; and
|
| 97 |
+
|
| 98 |
+
(b) You must cause any modified files to carry prominent notices
|
| 99 |
+
stating that You changed the files; and
|
| 100 |
+
|
| 101 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 102 |
+
that You distribute, all copyright, patent, trademark, and
|
| 103 |
+
attribution notices from the Source form of the Work,
|
| 104 |
+
excluding those notices that do not pertain to any part of
|
| 105 |
+
the Derivative Works; and
|
| 106 |
+
|
| 107 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 108 |
+
distribution, then any Derivative Works that You distribute must
|
| 109 |
+
include a readable copy of the attribution notices contained
|
| 110 |
+
within such NOTICE file, excluding those notices that do not
|
| 111 |
+
pertain to any part of the Derivative Works, in at least one
|
| 112 |
+
of the following places: within a NOTICE text file distributed
|
| 113 |
+
as part of the Derivative Works; within the Source form or
|
| 114 |
+
documentation, if provided along with the Derivative Works; or,
|
| 115 |
+
within a display generated by the Derivative Works, if and
|
| 116 |
+
wherever such third-party notices normally appear. The contents
|
| 117 |
+
of the NOTICE file are for informational purposes only and
|
| 118 |
+
do not modify the License. You may add Your own attribution
|
| 119 |
+
notices within Derivative Works that You distribute, alongside
|
| 120 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 121 |
+
that such additional attribution notices cannot be construed
|
| 122 |
+
as modifying the License.
|
| 123 |
+
|
| 124 |
+
You may add Your own copyright statement to Your modifications and
|
| 125 |
+
may provide additional or different license terms and conditions
|
| 126 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 127 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 128 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 129 |
+
the conditions stated in this License.
|
| 130 |
+
|
| 131 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 132 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 133 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 134 |
+
this License, without any additional terms or conditions.
|
| 135 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 136 |
+
the terms of any separate license agreement you may have executed
|
| 137 |
+
with Licensor regarding such Contributions.
|
| 138 |
+
|
| 139 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 140 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 141 |
+
except as required for reasonable and customary use in describing the
|
| 142 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 143 |
+
|
| 144 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 145 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 146 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 147 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 148 |
+
implied, including, without limitation, any warranties or conditions
|
| 149 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 150 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 151 |
+
appropriateness of using or redistributing the Work and assume any
|
| 152 |
+
risks associated with Your exercise of permissions under this License.
|
| 153 |
+
|
| 154 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 155 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 156 |
+
unless required by applicable law (such as deliberate and grossly
|
| 157 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 158 |
+
liable to You for damages, including any direct, indirect, special,
|
| 159 |
+
incidental, or consequential damages of any character arising as a
|
| 160 |
+
result of this License or out of the use or inability to use the
|
| 161 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 162 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 163 |
+
other commercial damages or losses), even if such Contributor
|
| 164 |
+
has been advised of the possibility of such damages.
|
| 165 |
+
|
| 166 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 167 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 168 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 169 |
+
or other liability obligations and/or rights consistent with this
|
| 170 |
+
License. However, in accepting such obligations, You may act only
|
| 171 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 172 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 173 |
+
defend, and hold each Contributor harmless for any liability
|
| 174 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 175 |
+
of your accepting any such warranty or additional liability.
|
| 176 |
+
|
| 177 |
+
END OF TERMS AND CONDITIONS
|
| 178 |
+
|
| 179 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 180 |
+
|
| 181 |
+
To apply the Apache License to your work, attach the following
|
| 182 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 183 |
+
replaced with your own identifying information. (Don't include
|
| 184 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 185 |
+
comment syntax for the file format. We also recommend that a
|
| 186 |
+
file or class name and description of purpose be included on the
|
| 187 |
+
same "printed page" as the copyright notice for easier
|
| 188 |
+
identification within third-party archives.
|
| 189 |
+
|
| 190 |
+
Copyright [yyyy] [name of copyright owner]
|
| 191 |
+
|
| 192 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 193 |
+
you may not use this file except in compliance with the License.
|
| 194 |
+
You may obtain a copy of the License at
|
| 195 |
+
|
| 196 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 197 |
+
|
| 198 |
+
Unless required by applicable law or agreed to in writing, software
|
| 199 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 200 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 201 |
+
See the License for the specific language governing permissions and
|
| 202 |
+
limitations under the License.
|
Modelfile
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ./awkweave-0.5b.Q4_K_M.gguf
|
| 2 |
+
PARAMETER temperature 0
|
| 3 |
+
PARAMETER num_ctx 4096
|
| 4 |
+
PARAMETER num_predict 192
|
| 5 |
+
SYSTEM """You write POSIX awk programs for text-processing requests. Given a request and sample input, return only the awk program, not the awk command or Markdown. Do not read or write files, invoke commands, or explain."""
|
NOTICE
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Awkweave
|
| 2 |
+
Copyright 2026 Asterbraid
|
| 3 |
+
|
| 4 |
+
The Awkweave model is a LoRA fine-tune of Qwen/Qwen2.5-Coder-1.5B-Instruct, released under Apache-2.0.
|
| 5 |
+
Base model: https://huggingface.co/Qwen/Qwen2.5-Coder-1.5B-Instruct
|
| 6 |
+
|
| 7 |
+
Synthetic Awkweave dataset rows are licensed CC-BY-4.0. Attribute Asterbraid when redistributing them.
|
OLLAMA.md
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Run Awkweave 0.5B with Ollama
|
| 2 |
+
|
| 3 |
+
The included `Modelfile` selects the Q4_K_M build, applies the required system prompt, limits the context to 4,096 tokens, and uses deterministic generation.
|
| 4 |
+
|
| 5 |
+
```bash
|
| 6 |
+
ollama create awkweave-0.5b -f Modelfile
|
| 7 |
+
```
|
| 8 |
+
|
| 9 |
+
Generate a program with a request and representative input:
|
| 10 |
+
|
| 11 |
+
```bash
|
| 12 |
+
ollama run awkweave-0.5b $'Request:\nPrint each name and the running total of column 2.\n\nSample input:\n```text\nalice 10\nbruno 15\nchen 7\n```'
|
| 13 |
+
```
|
| 14 |
+
|
| 15 |
+
Expected output:
|
| 16 |
+
|
| 17 |
+
```awk
|
| 18 |
+
{s+=$2;print $1,s}
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
The model returns a bare `awk` program. Review it before execution. To run the example with `awk` itself:
|
| 22 |
+
|
| 23 |
+
```bash
|
| 24 |
+
printf 'alice 10\nbruno 15\nchen 7\n' | awk '{s+=$2;print $1,s}'
|
| 25 |
+
```
|
| 26 |
+
|
| 27 |
+
Expected result:
|
| 28 |
+
|
| 29 |
+
```text
|
| 30 |
+
alice 10
|
| 31 |
+
bruno 25
|
| 32 |
+
chen 32
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
For a local HTTP API, use `llama-server` with `awkweave-0.5b.Q4_K_M.gguf` or the larger Q8_0 build. The 1.5B sibling model is more accurate on the frozen evaluation; choose based on your speed and accuracy needs.
|
README.md
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language: en
|
| 4 |
+
library_name: transformers
|
| 5 |
+
pipeline_tag: text-generation
|
| 6 |
+
base_model: Qwen/Qwen2.5-Coder-0.5B-Instruct
|
| 7 |
+
datasets:
|
| 8 |
+
- asterbraid/awkweave-data
|
| 9 |
+
- asterbraid/awkweave-realistic-data
|
| 10 |
+
tags:
|
| 11 |
+
- awk
|
| 12 |
+
- code-generation
|
| 13 |
+
- text-to-code
|
| 14 |
+
- qwen
|
| 15 |
+
- local
|
| 16 |
+
- small-model
|
| 17 |
+
- execution-verified
|
| 18 |
+
---
|
| 19 |
+
|
| 20 |
+
# Awkweave 0.5B
|
| 21 |
+
|
| 22 |
+
A low-memory natural-language-to-`awk` specialist for fast local inference. This is the smaller alternative to [Awkweave 1.5B](https://huggingface.co/asterbraid/awkweave-1.5b), trained from **Qwen2.5-Coder-0.5B-Instruct** and merged into ordinary Transformers weights. Inference is offline and needs no API key.
|
| 23 |
+
|
| 24 |
+
- Data: [original](https://huggingface.co/datasets/asterbraid/awkweave-data) and [realistic expansion](https://huggingface.co/datasets/asterbraid/awkweave-realistic-data)
|
| 25 |
+
- Larger model: [asterbraid/awkweave-1.5b](https://huggingface.co/asterbraid/awkweave-1.5b)
|
| 26 |
+
- Demo: [Awkweave Space](https://huggingface.co/spaces/asterbraid/awkweave-demo)
|
| 27 |
+
- Output contract: one bare `awk` program, with no shell command, filename, Markdown, or explanation.
|
| 28 |
+
|
| 29 |
+
## Results
|
| 30 |
+
|
| 31 |
+
Greedy generation, one prediction per row. **Valid** means the program executes on the primary input. **Correct** requires exact output equality on the primary and second inputs. Only trailing special tokens are stripped.
|
| 32 |
+
|
| 33 |
+
| Model | Test valid | Test correct | Dev valid | Dev correct | Frozen valid | Frozen correct |
|
| 34 |
+
| --- | ---: | ---: | ---: | ---: | ---: | ---: |
|
| 35 |
+
| Qwen2.5-Coder-0.5B base | 0.0% (0/3000) | 0.0% (0/3000) | 0.0% (0/33) | 0.0% (0/33) | 0.0% (0/37) | 0.0% (0/37) |
|
| 36 |
+
| **Awkweave 0.5B** | **100.0% (3000/3000)** | **100.0% (3000/3000)** | **100.0% (33/33)** | **84.8% (28/33)** | **83.8% (31/37)** | **16.2% (6/37)** |
|
| 37 |
+
| Awkweave 1.5B | 100.0% (3000/3000) | 100.0% (3000/3000) | 97.0% (32/33) | 78.8% (26/33) | 94.6% (35/37) | 29.7% (11/37) |
|
| 38 |
+
|
| 39 |
+
The base model fenced every prediction in Markdown and usually emitted a shell command rather than a bare program. Test contains 3,000 grammar-generated rows and measures in-distribution behavior only. Dev contains 33 authored tasks used to guide the realistic expansion. Frozen contains 37 separately authored tasks excluded from training and checkpoint selection.
|
| 40 |
+
|
| 41 |
+
**Tradeoff:** the 0.5B model is smaller and performed better on the 33 development tasks, while the 1.5B model is substantially better on the 37 frozen tasks. Do not treat the small model as universally more accurate.
|
| 42 |
+
|
| 43 |
+
Full prediction files and summaries are included under `evaluation/`.
|
| 44 |
+
|
| 45 |
+
## Verified generation
|
| 46 |
+
|
| 47 |
+
Request: `For each record, print column 1 and the running sum of column 2, separated by a space.`
|
| 48 |
+
|
| 49 |
+
```text
|
| 50 |
+
gus 24 indigo
|
| 51 |
+
jules 18 delta
|
| 52 |
+
farah 18 grove
|
| 53 |
+
alice 22 delta
|
| 54 |
+
farah 29 grove
|
| 55 |
+
dina 10 amber
|
| 56 |
+
jules 4 fable
|
| 57 |
+
farah 2 fable
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
Generated program:
|
| 61 |
+
|
| 62 |
+
```awk
|
| 63 |
+
{s+=$2;print $1,s}
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
Executed output:
|
| 67 |
+
|
| 68 |
+
```text
|
| 69 |
+
gus 24
|
| 70 |
+
jules 42
|
| 71 |
+
farah 60
|
| 72 |
+
alice 82
|
| 73 |
+
farah 111
|
| 74 |
+
dina 121
|
| 75 |
+
jules 125
|
| 76 |
+
farah 127
|
| 77 |
+
```
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
## Use
|
| 81 |
+
|
| 82 |
+
```python
|
| 83 |
+
from awkweave.model import generate_program
|
| 84 |
+
|
| 85 |
+
program = generate_program(
|
| 86 |
+
"Print each name and the running total of column 2.",
|
| 87 |
+
"alice 10\nbruno 15\nchen 7\n",
|
| 88 |
+
"asterbraid/awkweave-0.5b",
|
| 89 |
+
)
|
| 90 |
+
print(program)
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
Or clone this repository for the CLI:
|
| 94 |
+
|
| 95 |
+
```bash
|
| 96 |
+
git clone https://huggingface.co/asterbraid/awkweave-0.5b
|
| 97 |
+
cd awkweave-0.5b
|
| 98 |
+
pip install -e '.[model]'
|
| 99 |
+
printf 'alice 10\nbruno 15\n' | awkweave --model asterbraid/awkweave-0.5b 'Print the running sum of column 2'
|
| 100 |
+
```
|
| 101 |
+
|
| 102 |
+
Python 3.10+ and `awk` are required. Add `--run` to print the program to stderr and execute it with the included safety guard.
|
| 103 |
+
|
| 104 |
+
## GGUF and Ollama
|
| 105 |
+
|
| 106 |
+
Quantized builds:
|
| 107 |
+
|
| 108 |
+
- `awkweave-0.5b.Q4_K_M.gguf`
|
| 109 |
+
- `awkweave-0.5b.Q8_0.gguf`
|
| 110 |
+
|
| 111 |
+
For Ollama, run `ollama create awkweave-0.5b -f Modelfile` from this repository and follow `OLLAMA.md`. For llama.cpp, run `llama-server -m awkweave-0.5b.Q8_0.gguf --host 127.0.0.1 --port 8080`.
|
| 112 |
+
|
| 113 |
+
The Q4_K_M build passed a real `llama-completion` generation smoke check.
|
| 114 |
+
|
| 115 |
+
|
| 116 |
+
## Training
|
| 117 |
+
|
| 118 |
+
- Base: `Qwen/Qwen2.5-Coder-0.5B-Instruct` (Apache-2.0).
|
| 119 |
+
- Data: 40,000 realistic rows plus 20,000 replay rows, for 60000 training rows and 500 validation rows.
|
| 120 |
+
- Method: LoRA rank 32, alpha 64, dropout 0.05; merged after training.
|
| 121 |
+
- Schedule: one epoch, cosine decay, learning rate 5e-05, effective batch size 64, maximum sequence length 1024.
|
| 122 |
+
- Precision: BF16 with gradient checkpointing, non-fused AdamW, maximum gradient norm 0.5.
|
| 123 |
+
- Release gate: at least 90% valid and 50% correct on the development set; frozen accuracy was not used for selection.
|
| 124 |
+
|
| 125 |
+
Every reference program was execution-verified on two inputs. Full settings are in `training_config.json`.
|
| 126 |
+
|
| 127 |
+
## Limitations
|
| 128 |
+
|
| 129 |
+
English only, single-input POSIX-style `awk`, simple CSV without quoted commas, and no multi-file joins or external pipelines. It is not a general chatbot or shell assistant. Complex or out-of-scope requests can fail. The small frozen set does not establish broad reliability.
|
| 130 |
+
|
| 131 |
+
## License
|
| 132 |
+
|
| 133 |
+
Code and merged weights are Apache-2.0. See `LICENSE` and `NOTICE`. Training data is CC-BY-4.0; attribute Asterbraid when redistributing it.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
d0a44be7b0d1505a1eabc6d8b6d7459c0e645e5cd8d79a75ee4cb48422699ec7 awkweave-0.5b.Q4_K_M.gguf
|
| 2 |
+
a299f1374fc1f7c50c8f4b7aa66802209261603969fb04f3b7291c3dba0bdb9b awkweave-0.5b.Q8_0.gguf
|
added_tokens.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"</tool_call>": 151658,
|
| 3 |
+
"<tool_call>": 151657,
|
| 4 |
+
"<|box_end|>": 151649,
|
| 5 |
+
"<|box_start|>": 151648,
|
| 6 |
+
"<|endoftext|>": 151643,
|
| 7 |
+
"<|file_sep|>": 151664,
|
| 8 |
+
"<|fim_middle|>": 151660,
|
| 9 |
+
"<|fim_pad|>": 151662,
|
| 10 |
+
"<|fim_prefix|>": 151659,
|
| 11 |
+
"<|fim_suffix|>": 151661,
|
| 12 |
+
"<|im_end|>": 151645,
|
| 13 |
+
"<|im_start|>": 151644,
|
| 14 |
+
"<|image_pad|>": 151655,
|
| 15 |
+
"<|object_ref_end|>": 151647,
|
| 16 |
+
"<|object_ref_start|>": 151646,
|
| 17 |
+
"<|quad_end|>": 151651,
|
| 18 |
+
"<|quad_start|>": 151650,
|
| 19 |
+
"<|repo_name|>": 151663,
|
| 20 |
+
"<|video_pad|>": 151656,
|
| 21 |
+
"<|vision_end|>": 151653,
|
| 22 |
+
"<|vision_pad|>": 151654,
|
| 23 |
+
"<|vision_start|>": 151652
|
| 24 |
+
}
|
awkweave-0.5b.Q4_K_M.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0a44be7b0d1505a1eabc6d8b6d7459c0e645e5cd8d79a75ee4cb48422699ec7
|
| 3 |
+
size 397807456
|
awkweave-0.5b.Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a299f1374fc1f7c50c8f4b7aa66802209261603969fb04f3b7291c3dba0bdb9b
|
| 3 |
+
size 531067744
|
awkweave/__init__.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Awkweave: execution-verified natural-language-to-awk tools."""
|
| 2 |
+
|
| 3 |
+
__version__ = "0.1.0"
|
awkweave/cli.py
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
import sys
|
| 5 |
+
|
| 6 |
+
from awkweave.execution import run_awk
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
def main() -> None:
|
| 10 |
+
parser = argparse.ArgumentParser(description="Generate an awk program from a natural-language request.")
|
| 11 |
+
parser.add_argument("request")
|
| 12 |
+
parser.add_argument("--model", default="asterbraid/awkweave-1.5b")
|
| 13 |
+
parser.add_argument("--input", help="Read sample input from this file; defaults to stdin.")
|
| 14 |
+
parser.add_argument("--run", action="store_true", help="Execute the generated program after printing it to stderr.")
|
| 15 |
+
args = parser.parse_args()
|
| 16 |
+
input_text = open(args.input, encoding="utf-8").read() if args.input else sys.stdin.read()
|
| 17 |
+
if not input_text.strip():
|
| 18 |
+
parser.error("Provide sample input on stdin or with --input.")
|
| 19 |
+
|
| 20 |
+
from awkweave.model import generate_program
|
| 21 |
+
|
| 22 |
+
program = generate_program(args.request, input_text, args.model)
|
| 23 |
+
if not args.run:
|
| 24 |
+
print(program)
|
| 25 |
+
return
|
| 26 |
+
print(f"awk program:\n{program}\n", file=sys.stderr)
|
| 27 |
+
sys.stdout.write(run_awk(program, input_text))
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
if __name__ == "__main__":
|
| 31 |
+
main()
|
awkweave/execution.py
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import re
|
| 4 |
+
import resource
|
| 5 |
+
import shutil
|
| 6 |
+
import subprocess
|
| 7 |
+
|
| 8 |
+
MAX_INPUT_BYTES = 1_000_000
|
| 9 |
+
MAX_PROGRAM_CHARS = 8_000
|
| 10 |
+
FORBIDDEN_PATTERN = re.compile(
|
| 11 |
+
r"\b(?:system|getline|ARGV|ARGC|ENVIRON|FILENAME|FNR|nextfile|close)\b",
|
| 12 |
+
re.IGNORECASE,
|
| 13 |
+
)
|
| 14 |
+
OUTPUT_REDIRECT_PATTERN = re.compile(
|
| 15 |
+
r"\bprintf?\b[^;\n}]*(?:>\s*(?:[\"/]|[A-Za-z_$])|(?<!\|)\|(?!\|))",
|
| 16 |
+
re.IGNORECASE,
|
| 17 |
+
)
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
class UnsafeProgramError(ValueError):
|
| 21 |
+
pass
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
def check_program(program: str) -> str:
|
| 25 |
+
program = program.strip()
|
| 26 |
+
if not program:
|
| 27 |
+
raise UnsafeProgramError("The awk program is empty.")
|
| 28 |
+
if len(program) > MAX_PROGRAM_CHARS:
|
| 29 |
+
raise UnsafeProgramError("The awk program is too long.")
|
| 30 |
+
if "\x00" in program:
|
| 31 |
+
raise UnsafeProgramError("The awk program contains a null byte.")
|
| 32 |
+
match = FORBIDDEN_PATTERN.search(program)
|
| 33 |
+
if match:
|
| 34 |
+
raise UnsafeProgramError(f"File, environment, and process access are not allowed: {match.group()}")
|
| 35 |
+
if OUTPUT_REDIRECT_PATTERN.search(program):
|
| 36 |
+
raise UnsafeProgramError("Output redirection and pipes are not allowed.")
|
| 37 |
+
return program
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
def limit_resources() -> None:
|
| 41 |
+
resource.setrlimit(resource.RLIMIT_CPU, (2, 2))
|
| 42 |
+
resource.setrlimit(resource.RLIMIT_AS, (256_000_000, 256_000_000))
|
| 43 |
+
resource.setrlimit(resource.RLIMIT_FSIZE, (1_000_000, 1_000_000))
|
| 44 |
+
resource.setrlimit(resource.RLIMIT_CORE, (0, 0))
|
| 45 |
+
resource.setrlimit(resource.RLIMIT_NOFILE, (16, 16))
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
def run_awk(program: str, input_text: str, timeout: float = 3.0) -> str:
|
| 49 |
+
program = check_program(program)
|
| 50 |
+
if len(input_text.encode("utf-8")) > MAX_INPUT_BYTES:
|
| 51 |
+
raise ValueError("Input text exceeds the 1 MB limit.")
|
| 52 |
+
executable = shutil.which("awk")
|
| 53 |
+
if executable is None:
|
| 54 |
+
raise RuntimeError("No awk executable is available on PATH.")
|
| 55 |
+
result = subprocess.run(
|
| 56 |
+
[executable, program],
|
| 57 |
+
input=input_text,
|
| 58 |
+
text=True,
|
| 59 |
+
capture_output=True,
|
| 60 |
+
timeout=timeout,
|
| 61 |
+
env={"LC_ALL": "C", "PATH": "/usr/bin:/bin"},
|
| 62 |
+
preexec_fn=limit_resources,
|
| 63 |
+
start_new_session=True,
|
| 64 |
+
check=False,
|
| 65 |
+
)
|
| 66 |
+
if result.returncode != 0:
|
| 67 |
+
raise ValueError(result.stderr.strip() or f"awk exited with status {result.returncode}")
|
| 68 |
+
return result.stdout
|
awkweave/model.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import re
|
| 4 |
+
|
| 5 |
+
import torch
|
| 6 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 7 |
+
|
| 8 |
+
from awkweave.prompts import messages
|
| 9 |
+
|
| 10 |
+
_CACHE: dict[str, tuple[AutoTokenizer, AutoModelForCausalLM]] = {}
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def load_model(model_id: str):
|
| 14 |
+
if model_id not in _CACHE:
|
| 15 |
+
tokenizer = AutoTokenizer.from_pretrained(model_id)
|
| 16 |
+
if tokenizer.pad_token_id is None:
|
| 17 |
+
tokenizer.pad_token = tokenizer.eos_token
|
| 18 |
+
device = "cuda" if torch.cuda.is_available() else "cpu"
|
| 19 |
+
dtype = torch.bfloat16 if device == "cuda" else torch.float32
|
| 20 |
+
model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype=dtype).to(device)
|
| 21 |
+
model.eval()
|
| 22 |
+
_CACHE[model_id] = (tokenizer, model)
|
| 23 |
+
return _CACHE[model_id]
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def generate_program(request: str, input_text: str, model_id: str, max_new_tokens: int = 192) -> str:
|
| 27 |
+
tokenizer, model = load_model(model_id)
|
| 28 |
+
prompt = tokenizer.apply_chat_template(
|
| 29 |
+
messages(request, input_text),
|
| 30 |
+
tokenize=False,
|
| 31 |
+
add_generation_prompt=True,
|
| 32 |
+
)
|
| 33 |
+
encoded = tokenizer(prompt, return_tensors="pt", add_special_tokens=False, truncation=True, max_length=1024).to(model.device)
|
| 34 |
+
with torch.inference_mode():
|
| 35 |
+
generated = model.generate(
|
| 36 |
+
**encoded,
|
| 37 |
+
do_sample=False,
|
| 38 |
+
max_new_tokens=max_new_tokens,
|
| 39 |
+
pad_token_id=tokenizer.pad_token_id,
|
| 40 |
+
eos_token_id=tokenizer.eos_token_id,
|
| 41 |
+
use_cache=True,
|
| 42 |
+
)
|
| 43 |
+
text = tokenizer.decode(generated[0, encoded["input_ids"].shape[1]:], skip_special_tokens=False)
|
| 44 |
+
return re.sub(r"<\|(?:im_end|endoftext|im_start)\|>.*$", "", text, flags=re.DOTALL).strip()
|
awkweave/prompts.py
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SYSTEM_PROMPT = """You write POSIX awk programs for text-processing requests. Given a request and sample input, return only the awk program, not the awk command or Markdown. Do not read or write files, invoke commands, or explain."""
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
def user_prompt(request: str, input_text: str) -> str:
|
| 5 |
+
return f"Request:\n{request.strip()}\n\nSample input:\n```text\n{input_text.rstrip()}\n```"
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
def messages(request: str, input_text: str) -> list[dict[str, str]]:
|
| 9 |
+
return [
|
| 10 |
+
{"role": "system", "content": SYSTEM_PROMPT},
|
| 11 |
+
{"role": "user", "content": user_prompt(request, input_text)},
|
| 12 |
+
]
|
chat_template.jinja
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{%- if tools %}
|
| 2 |
+
{{- '<|im_start|>system\n' }}
|
| 3 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 4 |
+
{{- messages[0]['content'] }}
|
| 5 |
+
{%- else %}
|
| 6 |
+
{{- 'You are Qwen, created by Alibaba Cloud. You are a helpful assistant.' }}
|
| 7 |
+
{%- endif %}
|
| 8 |
+
{{- "\n\n# Tools\n\nYou may call one or more functions to assist with the user query.\n\nYou are provided with function signatures within <tools></tools> XML tags:\n<tools>" }}
|
| 9 |
+
{%- for tool in tools %}
|
| 10 |
+
{{- "\n" }}
|
| 11 |
+
{{- tool | tojson }}
|
| 12 |
+
{%- endfor %}
|
| 13 |
+
{{- "\n</tools>\n\nFor each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:\n<tool_call>\n{\"name\": <function-name>, \"arguments\": <args-json-object>}\n</tool_call><|im_end|>\n" }}
|
| 14 |
+
{%- else %}
|
| 15 |
+
{%- if messages[0]['role'] == 'system' %}
|
| 16 |
+
{{- '<|im_start|>system\n' + messages[0]['content'] + '<|im_end|>\n' }}
|
| 17 |
+
{%- else %}
|
| 18 |
+
{{- '<|im_start|>system\nYou are Qwen, created by Alibaba Cloud. You are a helpful assistant.<|im_end|>\n' }}
|
| 19 |
+
{%- endif %}
|
| 20 |
+
{%- endif %}
|
| 21 |
+
{%- for message in messages %}
|
| 22 |
+
{%- if (message.role == "user") or (message.role == "system" and not loop.first) or (message.role == "assistant" and not message.tool_calls) %}
|
| 23 |
+
{{- '<|im_start|>' + message.role + '\n' + message.content + '<|im_end|>' + '\n' }}
|
| 24 |
+
{%- elif message.role == "assistant" %}
|
| 25 |
+
{{- '<|im_start|>' + message.role }}
|
| 26 |
+
{%- if message.content %}
|
| 27 |
+
{{- '\n' + message.content }}
|
| 28 |
+
{%- endif %}
|
| 29 |
+
{%- for tool_call in message.tool_calls %}
|
| 30 |
+
{%- if tool_call.function is defined %}
|
| 31 |
+
{%- set tool_call = tool_call.function %}
|
| 32 |
+
{%- endif %}
|
| 33 |
+
{{- '\n<tool_call>\n{"name": "' }}
|
| 34 |
+
{{- tool_call.name }}
|
| 35 |
+
{{- '", "arguments": ' }}
|
| 36 |
+
{{- tool_call.arguments | tojson }}
|
| 37 |
+
{{- '}\n</tool_call>' }}
|
| 38 |
+
{%- endfor %}
|
| 39 |
+
{{- '<|im_end|>\n' }}
|
| 40 |
+
{%- elif message.role == "tool" %}
|
| 41 |
+
{%- if (loop.index0 == 0) or (messages[loop.index0 - 1].role != "tool") %}
|
| 42 |
+
{{- '<|im_start|>user' }}
|
| 43 |
+
{%- endif %}
|
| 44 |
+
{{- '\n<tool_response>\n' }}
|
| 45 |
+
{{- message.content }}
|
| 46 |
+
{{- '\n</tool_response>' }}
|
| 47 |
+
{%- if loop.last or (messages[loop.index0 + 1].role != "tool") %}
|
| 48 |
+
{{- '<|im_end|>\n' }}
|
| 49 |
+
{%- endif %}
|
| 50 |
+
{%- endif %}
|
| 51 |
+
{%- endfor %}
|
| 52 |
+
{%- if add_generation_prompt %}
|
| 53 |
+
{{- '<|im_start|>assistant\n' }}
|
| 54 |
+
{%- endif %}
|
config.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen2ForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_dropout": 0.0,
|
| 6 |
+
"bos_token_id": 151643,
|
| 7 |
+
"dtype": "bfloat16",
|
| 8 |
+
"eos_token_id": 151645,
|
| 9 |
+
"hidden_act": "silu",
|
| 10 |
+
"hidden_size": 896,
|
| 11 |
+
"initializer_range": 0.02,
|
| 12 |
+
"intermediate_size": 4864,
|
| 13 |
+
"layer_types": [
|
| 14 |
+
"full_attention",
|
| 15 |
+
"full_attention",
|
| 16 |
+
"full_attention",
|
| 17 |
+
"full_attention",
|
| 18 |
+
"full_attention",
|
| 19 |
+
"full_attention",
|
| 20 |
+
"full_attention",
|
| 21 |
+
"full_attention",
|
| 22 |
+
"full_attention",
|
| 23 |
+
"full_attention",
|
| 24 |
+
"full_attention",
|
| 25 |
+
"full_attention",
|
| 26 |
+
"full_attention",
|
| 27 |
+
"full_attention",
|
| 28 |
+
"full_attention",
|
| 29 |
+
"full_attention",
|
| 30 |
+
"full_attention",
|
| 31 |
+
"full_attention",
|
| 32 |
+
"full_attention",
|
| 33 |
+
"full_attention",
|
| 34 |
+
"full_attention",
|
| 35 |
+
"full_attention",
|
| 36 |
+
"full_attention",
|
| 37 |
+
"full_attention"
|
| 38 |
+
],
|
| 39 |
+
"max_position_embeddings": 32768,
|
| 40 |
+
"max_window_layers": 24,
|
| 41 |
+
"model_type": "qwen2",
|
| 42 |
+
"num_attention_heads": 14,
|
| 43 |
+
"num_hidden_layers": 24,
|
| 44 |
+
"num_key_value_heads": 2,
|
| 45 |
+
"rms_norm_eps": 1e-06,
|
| 46 |
+
"rope_scaling": null,
|
| 47 |
+
"rope_theta": 1000000.0,
|
| 48 |
+
"sliding_window": null,
|
| 49 |
+
"tie_word_embeddings": true,
|
| 50 |
+
"transformers_version": "4.57.6",
|
| 51 |
+
"use_cache": true,
|
| 52 |
+
"use_sliding_window": false,
|
| 53 |
+
"vocab_size": 151936
|
| 54 |
+
}
|
evaluate.py
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
import argparse
|
| 4 |
+
import collections
|
| 5 |
+
import hashlib
|
| 6 |
+
import importlib.metadata
|
| 7 |
+
import json
|
| 8 |
+
import re
|
| 9 |
+
import time
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
import torch
|
| 13 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 14 |
+
|
| 15 |
+
from awkweave.execution import run_awk
|
| 16 |
+
from awkweave.prompts import messages
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def normalize_special_tokens(text: str) -> str:
|
| 20 |
+
return re.sub(r"<\|(?:im_end|endoftext|im_start)\|>.*$", "", text, flags=re.DOTALL).strip()
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
def main() -> None:
|
| 24 |
+
parser = argparse.ArgumentParser()
|
| 25 |
+
parser.add_argument("--model", required=True)
|
| 26 |
+
parser.add_argument("--data", required=True)
|
| 27 |
+
parser.add_argument("--output", required=True)
|
| 28 |
+
parser.add_argument("--split", default="test")
|
| 29 |
+
parser.add_argument("--rows", type=int)
|
| 30 |
+
parser.add_argument("--batch-size", type=int, default=24)
|
| 31 |
+
parser.add_argument("--max-new-tokens", type=int, default=192)
|
| 32 |
+
args = parser.parse_args()
|
| 33 |
+
|
| 34 |
+
rows = [json.loads(line) for line in open(args.data, encoding="utf-8")]
|
| 35 |
+
rows = [row for row in rows if row["split"] == args.split and not row.get("paraphrase_of")]
|
| 36 |
+
rows.sort(key=lambda row: row["id"])
|
| 37 |
+
if args.rows:
|
| 38 |
+
rows = rows[: args.rows]
|
| 39 |
+
tokenizer = AutoTokenizer.from_pretrained(args.model)
|
| 40 |
+
tokenizer.padding_side = "left"
|
| 41 |
+
if tokenizer.pad_token_id is None:
|
| 42 |
+
tokenizer.pad_token = tokenizer.eos_token
|
| 43 |
+
model = AutoModelForCausalLM.from_pretrained(args.model, torch_dtype=torch.bfloat16, device_map="cuda")
|
| 44 |
+
model.eval()
|
| 45 |
+
|
| 46 |
+
output = Path(args.output)
|
| 47 |
+
output.parent.mkdir(parents=True, exist_ok=True)
|
| 48 |
+
started = time.time()
|
| 49 |
+
with output.open("w", encoding="utf-8") as handle:
|
| 50 |
+
for start in range(0, len(rows), args.batch_size):
|
| 51 |
+
batch = rows[start:start + args.batch_size]
|
| 52 |
+
prompts = [
|
| 53 |
+
tokenizer.apply_chat_template(
|
| 54 |
+
messages(row["request"], row["input_text"]),
|
| 55 |
+
tokenize=False,
|
| 56 |
+
add_generation_prompt=True,
|
| 57 |
+
)
|
| 58 |
+
for row in batch
|
| 59 |
+
]
|
| 60 |
+
encoded = tokenizer(prompts, return_tensors="pt", padding=True, add_special_tokens=False, truncation=True, max_length=1024).to("cuda")
|
| 61 |
+
with torch.inference_mode():
|
| 62 |
+
generated = model.generate(
|
| 63 |
+
**encoded,
|
| 64 |
+
do_sample=False,
|
| 65 |
+
max_new_tokens=args.max_new_tokens,
|
| 66 |
+
pad_token_id=tokenizer.pad_token_id,
|
| 67 |
+
eos_token_id=tokenizer.eos_token_id,
|
| 68 |
+
use_cache=True,
|
| 69 |
+
)
|
| 70 |
+
for index, row in enumerate(batch):
|
| 71 |
+
prediction = tokenizer.decode(generated[index, encoded["input_ids"].shape[1]:], skip_special_tokens=False)
|
| 72 |
+
prediction = normalize_special_tokens(prediction)
|
| 73 |
+
result = dict(row)
|
| 74 |
+
result["prediction"] = prediction
|
| 75 |
+
result["valid"] = False
|
| 76 |
+
result["correct"] = False
|
| 77 |
+
result["error"] = None
|
| 78 |
+
try:
|
| 79 |
+
actual = run_awk(prediction, row["input_text"])
|
| 80 |
+
result["valid"] = True
|
| 81 |
+
validation_actual = run_awk(prediction, row["validation_input"])
|
| 82 |
+
result["correct"] = actual == row["expected_output"] and validation_actual == row["validation_output"]
|
| 83 |
+
except Exception as error:
|
| 84 |
+
result["error"] = str(error)[:500]
|
| 85 |
+
handle.write(json.dumps(result, ensure_ascii=False, separators=(",", ":")) + "\n")
|
| 86 |
+
handle.flush()
|
| 87 |
+
print(f"evaluated {min(start + args.batch_size, len(rows))}/{len(rows)}", flush=True)
|
| 88 |
+
|
| 89 |
+
predictions = [json.loads(line) for line in output.open(encoding="utf-8")]
|
| 90 |
+
family_counts = collections.defaultdict(lambda: {"rows": 0, "valid": 0, "correct": 0})
|
| 91 |
+
for row in predictions:
|
| 92 |
+
metrics = family_counts[row["family"]]
|
| 93 |
+
metrics["rows"] += 1
|
| 94 |
+
metrics["valid"] += int(row["valid"])
|
| 95 |
+
metrics["correct"] += int(row["correct"])
|
| 96 |
+
summary = {
|
| 97 |
+
"model": args.model,
|
| 98 |
+
"split": args.split,
|
| 99 |
+
"rows": len(predictions),
|
| 100 |
+
"valid_at_1": sum(row["valid"] for row in predictions) / len(predictions),
|
| 101 |
+
"correct_at_1": sum(row["correct"] for row in predictions) / len(predictions),
|
| 102 |
+
"exact_output_on_two_inputs": True,
|
| 103 |
+
"prediction_cleanup": "special tokens only",
|
| 104 |
+
"seconds": time.time() - started,
|
| 105 |
+
"data_sha256": hashlib.sha256(Path(args.data).read_bytes()).hexdigest(),
|
| 106 |
+
"transformers_version": importlib.metadata.version("transformers"),
|
| 107 |
+
"torch_version": importlib.metadata.version("torch"),
|
| 108 |
+
"families": dict(sorted(family_counts.items())),
|
| 109 |
+
}
|
| 110 |
+
summary_path = output.with_suffix(".summary.json")
|
| 111 |
+
summary_path.write_text(json.dumps(summary, indent=2), encoding="utf-8")
|
| 112 |
+
print(json.dumps({key: value for key, value in summary.items() if key != "families"}, indent=2))
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
if __name__ == "__main__":
|
| 116 |
+
main()
|
evaluation/base-base-challenge.jsonl
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-challenge-0001","request":"Count server-error responses with HTTP status from 500 through 599; print 0 when none occur.","program":"$9 >= 500 && $9 < 600{n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"1\n","family":"http_5xx_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($i ~ /^HTTP/ && $i ~ /500-599/) {\n count++\n }\n }\n if (count == 0) {\n print 0\n } else {\n print count\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 15: unexpected character '`'"}
|
| 2 |
+
{"id":"awkweave-challenge-0002","request":"What is the total number of response bytes? Sum the final field and print one integer.","program":"{bytes+=$NF}END{print bytes+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"992\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"129\n","family":"http_bytes_sum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n sum = 0\n for (i = 1; i <= NF; i++) {\n sum += $i\n }\n print sum\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 3 |
+
{"id":"awkweave-challenge-0003","request":"Count distinct client IP addresses, which appear in field 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"4\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"3\n","family":"http_unique_clients","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"\\n\"\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($i != \"\") {\n count++\n }\n }\n print count\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 12: unexpected character '`'"}
|
| 4 |
+
{"id":"awkweave-challenge-0004","request":"Print the request path (field 7) for API routes with a 500 response.","program":"$7 ~ /^\\/api\\// && $9 == 500{print $7}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/api/orders\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"","family":"http_api_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($7 == \"500\") {\n print $0\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 5 |
+
{"id":"awkweave-challenge-0005","request":"For responses with status 200 only, print the average number of bytes to two decimal places.","program":"$9==200{bytes+=$10;n++}END{printf \"%.2f\\n\",bytes/n}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"384.00\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"15.00\n","family":"http_success_bytes","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n # Read the input file\n while (getline) {\n # Check if the status is 200\n if ($2 == \"200\") {\n # Calculate the average number of bytes\n sum = $5\n count = 1\n while (sum > 0) {\n sum -= $5\n count++\n }\n avg = sum / count\n # Print the average number of bytes\n printf \"%.2f\\n\", avg\n }\n }\n}\n```","valid":false,"correct":false,"error":"File, environment, and process access are not allowed: getline"}
|
| 6 |
+
{"id":"awkweave-challenge-0006","request":"Print complete request records for methods other than GET.","program":"$6 !~ /^\"GET$/{print $0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n","family":"http_non_get","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print \"Request records for methods other than GET:\"\n}\n{\n if ($1 != \"GET\") {\n print $0\n }\n}\nEND {\n print \"No more records to process.\"\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 13: unexpected character '`'"}
|
| 7 |
+
{"id":"awkweave-challenge-0007","request":"Count each request path from field 7 and print path then count in first-appearance order.","program":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/index.html 2\n/api/orders 2\n/missing 1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"/health 2\n/api/items 2\n","family":"http_url_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 7; i <= NF; i++) {\n if ($i == 1) {\n print $i\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 8 |
+
{"id":"awkweave-challenge-0008","request":"Use the header to find the region and amount columns. Print total paid amount per region in first-appearance order.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"paid\"{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 20\nnorth 10\nwest 5\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 8\neast 14\nwest 22\n","family":"header_region_totals","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n # Read the input file\n while (getline) {\n # Split the line into columns\n split($0, fields, \"\\t\")\n \n # Check if the region is \"east\" and the amount is greater than 0\n if (fields[1] == \"east\" && fields[2] > 0) {\n # Print the region and amount\n print fields[1], fields[2]\n }\n }\n}\n```","valid":false,"correct":false,"error":"File, environment, and process access are not allowed: getline"}
|
| 9 |
+
{"id":"awkweave-challenge-0009","request":"The first line is a header. Print order_id values for pending orders only.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r103\n","family":"header_pending_ids","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print \"order_id\"\n}\n{\n if ($2 == \"pending\") {\n print $1\n }\n}\nEND {\n print \"\"\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 13: unexpected character '`'"}
|
| 10 |
+
{"id":"awkweave-challenge-0010","request":"Read the amount column by its header name and print its mean over all data rows to two decimal places.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"amount\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"11.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"12.50\n","family":"header_amount_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n # Read the amount column by its header name\n getline amount from \"order_id\"\n \n # Print the mean over all data rows to two decimal places\n printf \"%.2f\\n\", amount / NF\n}\n```","valid":false,"correct":false,"error":"File, environment, and process access are not allowed: getline"}
|
| 11 |
+
{"id":"awkweave-challenge-0011","request":"The first row is a header. Print the two complete orders with the largest amounts, highest first. Keep file order for ties.","program":"NR==1{next}{n++;v[n]=$3+0;line[n]=$0}END{for(i=2;i<=n;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=n;i++)print line[i]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002 west 20.00 pending\nr001 east 12.50 paid\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r104 west 22.00 paid\nr102 east 14.00 paid\n","family":"top_two_amounts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($1 == \"order_id\") {\n print $2, $3\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 12 |
+
{"id":"awkweave-challenge-0012","request":"The first row is a header. Print each region and its average order amount to two decimals, grouping in first-appearance order and including every status.","program":"NR==1{next}{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3;counts[$2]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 10.00\nwest 12.50\nnorth 10.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 7.00\neast 14.00\nwest 22.00\n","family":"region_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '\nBEGIN {\n print \"header\"\n}\n{\n if ($1 == \"region\") {\n print $2, $3, $4\n }\n}\nEND {\n print \"footer\"\n}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 13: unexpected character '''"}
|
| 13 |
+
{"id":"awkweave-challenge-0013","request":"The first row is a header. For every order, print order_id and its amount as a percentage of the grand total, with two decimals and a percent sign.","program":"NR==1{next}{n++;id[n]=$1;v[n]=$3;total+=$3}END{for(i=1;i<=n;i++)printf \"%s %.2f%%\\n\",id[i],100*v[i]/total}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r001 22.73%\nr002 36.36%\nr003 13.64%\nr004 18.18%\nr005 9.09%\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r101 16.00%\nr102 28.00%\nr103 12.00%\nr104 44.00%\n","family":"amount_percentage","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '\nBEGIN {\n print \"header\"\n}\n{\n print $1, ($2 * 100 / $3) * 100 / 100\n}\nEND {\n print \"footer\"\n}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '''"}
|
| 14 |
+
{"id":"awkweave-challenge-0014","request":"This is colon-delimited passwd data. Print usernames whose login shell is /bin/bash.","program":"BEGIN{FS=\":\"}$7==\"/bin/bash\"{print $1}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"root\nalice\nchen\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"root\neli\n","family":"passwd_shell","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i ~ /^login shell:/) {\n print $i\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 15 |
+
{"id":"awkweave-challenge-0015","request":"Using colon separators, print username and UID for accounts with UID at least 1000 and below 1002.","program":"BEGIN{FS=\":\";OFS=\":\"}$3>=1000&&$3<1002{print $1,$3}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"alice:1000\nbruno:1001\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"dina:1000\neli:1001\n","family":"passwd_uid_range","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($3 >= 1000 && $3 <= 1002) {\n print $1, $2\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 16 |
+
{"id":"awkweave-challenge-0016","request":"For colon-delimited passwd records, count users per login shell in order of first appearance.","program":"BEGIN{FS=\":\"}{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"/bin/bash 3\n/usr/sbin/nologin 1\n/bin/zsh 1\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"/bin/bash 2\n/bin/sh 1\n","family":"passwd_shell_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n # Read the input file line by line\n while (getline) {\n # Split the line into fields using colon as the delimiter\n fields = split($0, fields, \":\")\n \n # Check if the field is a login shell\n if (fields[1] == \"login\") {\n # Increment the count for this login shell\n count++\n }\n }\n \n # Output the count of users per login shell\n print count\n}\n```","valid":false,"correct":false,"error":"File, environment, and process access are not allowed: getline"}
|
| 17 |
+
{"id":"awkweave-challenge-0017","request":"Extract the service value from each record whose level value is error, ignoring level letter case.","program":"{service=\"\";level=\"\";for(i=1;i<=NF;i++){split($i,parts,\"=\");if(parts[1]==\"service\")service=parts[2];if(parts[1]==\"level\")level=tolower(parts[2])}if(level==\"error\")print service}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"db\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"api\nworker\n","family":"keyvalue_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($3 == \"error\") {\n print $1\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 18 |
+
{"id":"awkweave-challenge-0018","request":"Print timestamps with latency above 20. The timestamp is field 1 and latency is stored as latency=N in the final field.","program":"{split($NF,parts,\"=\");if(parts[2]+0>20)print $1}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z\n2026-11-28T09:03:00Z\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"2026-11-28T12:00:00Z\n2026-11-28T12:02:00Z\n","family":"keyvalue_latency","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print \"awk '{print $1, $2, $3}'\"\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 5: unexpected character '`'"}
|
| 19 |
+
{"id":"awkweave-challenge-0019","request":"Print only events with timestamps from 2026-11-28T09:01:00Z through 2026-11-28T09:02:00Z inclusive.","program":"$1>=\"2026-11-28T09:01:00Z\"&&$1<=\"2026-11-28T09:02:00Z\"","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"","family":"event_window","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print \"2026-11-28T09:01:00Z\"\n print \"2026-11-28T09:02:00Z\"\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 6: unexpected character '`'"}
|
| 20 |
+
{"id":"awkweave-challenge-0020","request":"For each row after the first, print the group name and the change in column 2 from the previous row; for the first row print 0 as the change.","program":"{delta=$2-previous;if(NR==1)delta=0;print $1,delta;previous=$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 0\nbeta 10\nalpha 10\ngamma -25\nbeta 10\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 0\nred 4\nblue -5\ngreen 13\nblue -11\n","family":"running_delta","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if (NR > 1) {\n print $2 - $3\n } else {\n print 0\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 21 |
+
{"id":"awkweave-challenge-0021","request":"For each group in column 1, print its largest value from column 2 in first-appearance order.","program":"{if(!($1 in max)||$2>max[$1])max[$1]=$2;if(!($1 in seen)){order[++n]=$1;seen[$1]=1}}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 30\nbeta 20\ngamma 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 12\nblue 9\ngreen 20\n","family":"group_maximum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i == 1) {\n max = $2\n } else if ($2 > max) {\n max = $2\n }\n }\n print max\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 12: unexpected character '`'"}
|
| 22 |
+
{"id":"awkweave-challenge-0022","request":"Print each group from column 1 with its first and last value from column 2, in first-appearance order.","program":"{if(!($1 in first)){first[$1]=$2;order[++n]=$1}last[$1]=$2}END{for(i=1;i<=n;i++)print order[i],first[order[i]],last[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 30\nbeta 20 15\ngamma 5 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 12\nblue 7 9\ngreen 20 20\n","family":"first_last_group","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n print $1, $2\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 23 |
+
{"id":"awkweave-challenge-0023","request":"Print group and the ratio of column 3 to column 2 as a percentage with one decimal; skip zero denominators.","program":"$2!=0{printf \"%s %.1f%%\\n\",$1,100*$3/$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 40.0%\nbeta 0.0%\nalpha 26.7%\ngamma 40.0%\nbeta 20.0%\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 25.0%\nred 33.3%\nblue 0.0%\ngreen 25.0%\nblue 33.3%\n","family":"positive_ratio","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($3 == 0) {\n next\n }\n print $1, ($3 / $2) * 100\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 8: unexpected character '`'"}
|
| 24 |
+
{"id":"awkweave-challenge-0024","request":"Print every row with column 2 clamped to the inclusive range 8 through 18; leave other fields unchanged.","program":"{if($2<8)$2=8;else if($2>18)$2=18;print}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 18 0\nalpha 18 8\ngamma 8 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nred 12 4\nblue 8 0\ngreen 18 5\nblue 9 3\n","family":"clamp_values","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($2 >= 8 && $2 <= 18) {\n print $0\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 25 |
+
{"id":"awkweave-challenge-0025","request":"Suppress only consecutive duplicate group names in column 1, printing one complete row per run.","program":"$1!=previous{print}{previous=$1}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nblue 7 0\ngreen 20 5\nblue 9 3\n","family":"consecutive_dedup","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i != prev) {\n print $i\n }\n prev = $i\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 10: unexpected character '`'"}
|
| 26 |
+
{"id":"awkweave-challenge-0026","request":"Remove blank and whitespace-only lines, leaving all other lines unchanged.","program":"$0 ~ /[^[:space:]]/","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"alpha 1\nbeta 2\nalpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"red 4\nblue 5\n","family":"blank_filter","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i != \"\") {\n print $i\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 27 |
+
{"id":"awkweave-challenge-0027","request":"Count blank or whitespace-only lines and print the count.","program":"$0 !~ /[^[:space:]]/{n++}END{print n+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"2\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"2\n","family":"blank_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($i == \"\") {\n count++\n }\n }\n print count\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
| 28 |
+
{"id":"awkweave-challenge-0028","request":"Prefix each non-empty line with its original line number, a colon, and one space.","program":"$0 ~ /[^[:space:]]/{print NR \": \" $0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"1: alpha 1\n3: beta 2\n5: alpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"1: red 4\n4: blue 5\n","family":"line_numbers","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n print NR \":\" $0\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 5: unexpected character '`'"}
|
| 29 |
+
{"id":"awkweave-challenge-0029","request":"Print the total number of characters in the input, excluding newline characters.","program":"{total+=length($0)}END{print total+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"23\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"11\n","family":"character_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print length($0)\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 5: unexpected character '`'"}
|
| 30 |
+
{"id":"awkweave-challenge-0030","request":"Convert simple comma-separated rows to tab-separated rows, preserving every field in order.","program":"BEGIN{FS=\",\";OFS=\"\\t\"}{$1=$1;print}","input_text":"a,1,x\nb,2,y\n","expected_output":"a\t1\tx\nb\t2\ty\n","validation_input":"c,3,z\nd,4,w\n","validation_output":"c\t3\tz\nd\t4\tw\n","family":"comma_to_tab","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \",\"\n print $0\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 6: unexpected character '`'"}
|
| 31 |
+
{"id":"awkweave-challenge-0031","request":"Print column 1 right-aligned in a width of 8, followed by column 2 with no extra separator beyond the padding.","program":"{printf \"%8s%s\\n\",$1,$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":" alpha10\n beta20\n alpha30\n gamma5\n beta15\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":" red8\n red12\n blue7\n green20\n blue9\n","family":"fixed_width","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n printf \"%-8s %d\\n\", $1, $2\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 5: unexpected character '`'"}
|
| 32 |
+
{"id":"awkweave-challenge-0032","request":"For every record, print group and the absolute difference between columns 2 and 3.","program":"{difference=$2-$3;if(difference<0)difference=-difference;print $1,difference}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 6\nbeta 20\nalpha 22\ngamma 3\nbeta 12\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 6\nred 8\nblue 7\ngreen 15\nblue 6\n","family":"absolute_difference","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 2; i <= NF; i++) {\n diff = $i - $2\n printf \"%s %d\\n\", $1, diff\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 8: unexpected character '`'"}
|
| 33 |
+
{"id":"awkweave-challenge-0033","request":"Print each distinct word from column 1 once, sorted in ascending lexical order.","program":"{seen[$1]=1}END{for(word in seen){value[++n]=word}for(i=2;i<=n;i++){x=value[i];j=i-1;while(j>=1&&value[j]>x){value[j+1]=value[j];j--}value[j+1]=x}for(i=1;i<=n;i++)print value[i]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha\nbeta\ngamma\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"blue\ngreen\nred\n","family":"sorted_unique_words","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n # Extract words from column 1\n for (i = 1; i <= NF; i++) {\n print $i\n }\n}\n```\n\nThis awk program reads the input file line by line, extracts each word from column 1, and prints it on a new line. The `NF` variable represents the number of fields in the current line, which corresponds to the number of words in the input.","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 8: unexpected character '`'"}
|
evaluation/base-base-challenge.summary.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen2.5-Coder-0.5B-Instruct",
|
| 3 |
+
"split": "challenge",
|
| 4 |
+
"rows": 33,
|
| 5 |
+
"valid_at_1": 0.0,
|
| 6 |
+
"correct_at_1": 0.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 10.034422874450684,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"absolute_difference": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 0,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"amount_percentage": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 0,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"blank_count": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 0,
|
| 27 |
+
"correct": 0
|
| 28 |
+
},
|
| 29 |
+
"blank_filter": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 0,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"character_count": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 0,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"clamp_values": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 0,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"comma_to_tab": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 0,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"consecutive_dedup": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 0,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"event_window": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 0,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"first_last_group": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"fixed_width": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 0,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_maximum": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 0,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"header_amount_average": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 0,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"header_pending_ids": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 0,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"header_region_totals": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 0,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"http_5xx_count": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 0,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"http_api_errors": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 0,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"http_bytes_sum": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 0,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"http_non_get": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 0,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"http_success_bytes": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 0,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"http_unique_clients": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"http_url_counts": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 0,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"keyvalue_errors": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 0,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"keyvalue_latency": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 0,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"line_numbers": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 0,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"passwd_shell": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 0,
|
| 142 |
+
"correct": 0
|
| 143 |
+
},
|
| 144 |
+
"passwd_shell_counts": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 0,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"passwd_uid_range": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 0,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"positive_ratio": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 0,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"region_average": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 0,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"running_delta": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"sorted_unique_words": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 0,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"top_two_amounts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 0,
|
| 177 |
+
"correct": 0
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
}
|
evaluation/base-base-frozen.jsonl
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-frozen-0001","request":"Using pipe delimiters, count TCP flows and print 0 when none exist.","program":"BEGIN{FS=\"|\"}$4==\"TCP\"{n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3\n","family":"flow_tcp_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($i ~ /TCP/ && $i ~ /12/) {\n count++\n }\n }\n if (count == 0) {\n print \"0\"\n } else {\n print count\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 15: unexpected character '`'"}
|
| 2 |
+
{"id":"awkweave-frozen-0002","request":"Sum bytes in field 6 of these pipe-delimited flows.","program":"BEGIN{FS=\"|\"}{s+=$6}END{print s+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"3234\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2030\n","family":"flow_bytes_total","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"|\"\n sum = 0\n for (i = 1; i <= NF; i++) {\n if ($i == 6) {\n sum += $6\n }\n }\n print sum\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 12: unexpected character '`'"}
|
| 3 |
+
{"id":"awkweave-frozen-0003","request":"For pipe-delimited flows, total bytes per protocol in first-appearance order.","program":"BEGIN{FS=\"|\"}{if(!($4 in sums))order[++n]=$4;sums[$4]+=$6}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"TCP 2300\nUDP 870\nICMP 64\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"TCP 1850\nUDP 180\n","family":"flow_protocol_bytes","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"|\"\n for (i = 1; i <= NF; i++) {\n if ($i == 1) {\n print \"total bytes per protocol in first-appearance order:\"\n }\n print $i\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
| 4 |
+
{"id":"awkweave-frozen-0004","request":"For UDP flows, print average packets to two decimals. Fields are pipe-delimited.","program":"BEGIN{FS=\"|\"}$4==\"UDP\"{s+=$5;n++}END{printf \"%.2f\\n\",s/n}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"5.50\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3.00\n","family":"flow_udp_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"|\"\n for (i = 1; i <= NF; i++) {\n if ($i == \"UDP\") {\n sum = 0\n count = 0\n for (j = 1; j <= NF; j++) {\n if ($j == \"packet\") {\n sum += $j\n count++\n }\n }\n avg = sum / count\n printf \"%.2f\\n\", avg\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 19: unexpected character '`'"}
|
| 5 |
+
{"id":"awkweave-frozen-0005","request":"Count distinct destination IPs in field 3 of this pipe-delimited data.","program":"BEGIN{FS=\"|\"}{if(!seen[$3]++)n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"4\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"4\n","family":"flow_destination_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"\\t\"\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($i == \"destination IPs\") {\n count++\n }\n }\n print count\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 12: unexpected character '`'"}
|
| 6 |
+
{"id":"awkweave-frozen-0006","request":"Print the two complete flows with the most bytes, highest first and stable on ties.","program":"BEGIN{FS=\"|\"}{v[NR]=$6+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=NR;i++)print line[i]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n","family":"flow_top_sources","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n print $1, $2, $3, $4, $5, $6, $7, $8, $9, $10, $11, $12, $13, $14, $15, $16, $17, $18, $19, $20, $21, $22, $23, $24, $25, $26, $27, $28, $29, $30, $31, $32, $33, $34, $35, $36, $37, $38, $39, $40, $41, $42, $43, $44, $45, $46, $47, $48, $49","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: line 4: missing } near end of file"}
|
| 7 |
+
{"id":"awkweave-frozen-0007","request":"The CSV has a header. Print sku for products with stock below 5; fields contain no quoted commas.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]<5{print $h[\"sku\"]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"A1\nB2\nD4\nE5\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"F6\nG7\nH8\nI9\n","family":"inventory_low_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \",\"\n print \"sku,category,price,stock\"\n}\n{\n if ($3 < 5) {\n print $1, $2, $3, $4\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
| 8 |
+
{"id":"awkweave-frozen-0008","request":"Read stock by its CSV header and print total units in inventory.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"stock\"]}END{print s+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"14\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"9\n","family":"inventory_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \",\"\n print \"total_units_in_inventory\"\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 6: unexpected character '`'"}
|
| 9 |
+
{"id":"awkweave-frozen-0009","request":"Using the CSV header, print the mean price over products to two decimals.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"price\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"17.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"12.00\n","family":"inventory_average_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \",\"\n sum = 0\n count = 0\n for (i = 1; i <= NF; i++) {\n sum += $i\n count++\n }\n mean = sum / count\n printf \"%.2f\\n\", mean\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 13: unexpected character '`'"}
|
| 10 |
+
{"id":"awkweave-frozen-0010","request":"Count products whose stock field is zero in this simple CSV with a header.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]==0{n++}END{print n+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"1\n","family":"inventory_out_of_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($i == \"stock\") {\n count++\n }\n }\n print count\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
| 11 |
+
{"id":"awkweave-frozen-0011","request":"Print each category and its total inventory value (price times stock) to two decimals, in first-appearance order.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"category\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"price\"]*$h[\"stock\"]}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"book 97.50\ntool 30.00\ngame 30.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"game 56.00\nbook 0.00\ntool 75.00\n","family":"inventory_category_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print \"Category\\tTotal Inventory Value\"\n for (i = 1; i <= NF; i++) {\n category = $i\n price = $i + 1\n stock = $i + 2\n printf \"%s\\t%.2f\\n\", category, price * stock\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
| 12 |
+
{"id":"awkweave-frozen-0012","request":"Skip the CSV header and print the complete product with the highest price, keeping the earliest on ties.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}NR==2{best=$h[\"price\"];record=$0}$h[\"price\"]>best{best=$h[\"price\"];record=$0}END{print record}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"E5,game,30.00,1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"H8,tool,25.00,3\n","family":"inventory_highest_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \",\"\n print $1, $2, $3, $4\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 6: unexpected character '`'"}
|
| 13 |
+
{"id":"awkweave-frozen-0013","request":"Count syslog lines containing the exact word Failed.","program":"$0 ~ /Failed/{n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"1\n","family":"syslog_failed_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n/Failed/\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'"}
|
| 14 |
+
{"id":"awkweave-frozen-0014","request":"Print hostnames (field 4) for records whose process field begins with sshd.","program":"$5 ~ /^sshd/{print $4}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"web01\nweb01\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"api01\napi01\n","family":"syslog_sshd_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($4 ~ /^sshd/) {\n print $4\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 15 |
+
{"id":"awkweave-frozen-0015","request":"Print complete syslog records containing error in any letter case.","program":"tolower($0) ~ /error/","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:03 cache01 redis[104]: Error allocating buffer\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","family":"syslog_error_casefold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($0 ~ /[a-zA-Z]/) {\n print $0\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 16 |
+
{"id":"awkweave-frozen-0016","request":"Extract the process name before [ in field 5 and count records per process in first-appearance order.","program":"{split($5,p,\"[\");if(!(p[1] in counts))order[++n]=p[1];counts[p[1]]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"sshd 2\ncron 2\nredis 1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"sshd 2\ncron 1\nnginx 1\n","family":"syslog_process_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"\\n\"\n for (i = 1; i <= NF; i++) {\n if ($5 ~ /[[:space:]]*web01/) {\n print $i\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 10: unexpected character '`'"}
|
| 17 |
+
{"id":"awkweave-frozen-0017","request":"For cron records, print month, day, and time (the first three fields).","program":"$5 ~ /^cron/{print $1,$2,$3}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:01\nDec 01 10:00:04\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:02\n","family":"syslog_cron_timestamp","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print \"month\", \"day\", \"time\"\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 5: unexpected character '`'"}
|
| 18 |
+
{"id":"awkweave-frozen-0018","request":"Count distinct hostnames in field 4 of the syslog input.","program":"{if(!seen[$4]++)n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"3\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"2\n","family":"syslog_unique_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"\\n\"\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($4 ~ /^[a-zA-Z]+$/) {\n count++\n }\n }\n print count\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 12: unexpected character '`'"}
|
| 19 |
+
{"id":"awkweave-frozen-0019","request":"In colon-delimited group data, print group names containing alice as a comma-separated member of field 4.","program":"BEGIN{FS=\":\"}{split($4,members,\",\");for(i in members)if(members[i]==\"alice\")print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel\ndevelopers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"","family":"group_membership","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i == \"alice\") {\n print $i\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 20 |
+
{"id":"awkweave-frozen-0020","request":"For each colon-delimited group, print its name and number of members; an empty fourth field means zero.","program":"BEGIN{FS=\":\"}{n=split($4,members,\",\");if($4==\"\")n=0;print $1,n}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel 2\ndevelopers 3\naudio 0\nusers 2\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"admins 1\ndevelopers 2\nvideo 3\n","family":"group_member_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if (NF > 3) {\n print $i, $NF\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 21 |
+
{"id":"awkweave-frozen-0021","request":"Print names of colon-delimited groups with numeric GID at least 1000.","program":"BEGIN{FS=\":\"}$3>=1000{print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"developers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"developers\n","family":"group_gid_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i ~ /:/) {\n gsub(/:/, \"\", $i)\n if (length($i) >= 1000) {\n print $i\n }\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 12: unexpected character '`'"}
|
| 22 |
+
{"id":"awkweave-frozen-0022","request":"For each device in column 1, print its average reading from column 3 to two decimals in first-appearance order.","program":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$3;counts[$1]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 21.25\ns2 46.25\ns3 101.20\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.75\ns5 52.00\ns6 100.80\n","family":"sensor_device_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($1 == \"s1\") {\n avg_temp = ($3 / $NF) * 100\n printf \"%.2f\\n\", avg_temp\n } else if ($1 == \"s2\") {\n avg_humidity = ($3 / $NF) * 100\n printf \"%.2f\\n\", avg_humidity\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 13: unexpected character '`'"}
|
| 23 |
+
{"id":"awkweave-frozen-0023","request":"Print complete readings with value in column 3 greater than 45.","program":"$3>45","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sensor_threshold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($3 > 45) {\n print $0\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 24 |
+
{"id":"awkweave-frozen-0024","request":"For each metric in column 2, print its maximum value from column 3 in first-appearance order.","program":"{if(!($2 in seen)){order[++n]=$2;seen[$2]=1;max[$2]=$3}if($3>max[$2])max[$2]=$3}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"temperature 22.0\nhumidity 47.5\npressure 101.2\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"temperature 19.5\nhumidity 52.0\npressure 100.8\n","family":"sensor_metric_max","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 2; i <= NF; i++) {\n if (max < $i) {\n max = $i\n }\n }\n print max\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 10: unexpected character '`'"}
|
| 25 |
+
{"id":"awkweave-frozen-0025","request":"Count distinct device identifiers in column 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"3\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"3\n","family":"sensor_device_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n print \"awk '{print length($1)}'\"\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 5: unexpected character '`'"}
|
| 26 |
+
{"id":"awkweave-frozen-0026","request":"Print device and value for readings whose unit in column 4 is C.","program":"$4==\"C\"{print $1,$3}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.5\ns1 22.0\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.0\ns4 19.5\n","family":"sensor_unit_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n if ($4 == \"C\") {\n print $1, $2\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 27 |
+
{"id":"awkweave-frozen-0027","request":"Convert tab-separated rows to comma-separated rows while preserving all fields.","program":"BEGIN{FS=\"\\t\";OFS=\",\"}{$1=$1;print}","input_text":"a\t1\tx\nb\t2\ty\n","expected_output":"a,1,x\nb,2,y\n","validation_input":"c\t3\tz\nd\t4\tw\n","validation_output":"c,3,z\nd,4,w\n","family":"tsv_to_csv","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"\\t\"\n print $0\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 6: unexpected character '`'"}
|
| 28 |
+
{"id":"awkweave-frozen-0028","request":"For each record, print column 1 and the running mean of column 3 to two decimals.","program":"{s+=$3;n++;printf \"%s %.2f\\n\",$1,s/n}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.50\ns2 32.75\ns1 29.17\ns3 47.17\ns2 47.24\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.00\ns4 18.75\ns5 29.83\ns6 47.58\n","family":"running_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n printf \"%s \", $i;\n }\n printf \"\\n\";\n \n running_mean = 0;\n for (i = 1; i <= NF; i++) {\n running_mean += $i;\n }\n running_mean /= NF;\n \n for (i = 1; i <= NF; i++) {\n printf \"%.2f \", running_mean;\n }\n printf \"\\n\";\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 19: unexpected character '`'"}
|
| 29 |
+
{"id":"awkweave-frozen-0029","request":"Print the median of column 3; for an even number of records use the lower middle value.","program":"{v[NR]=$3+0}END{for(i=2;i<=NR;i++){x=v[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];j--}v[j+1]=x}print v[int((NR+1)/2)]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"45\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"19.5\n","family":"median_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n # Read the input file\n while (getline) {\n # Split the line into columns\n col1 = $1\n col2 = $2\n col3 = $3\n \n # Check if the number of records is odd\n if (NF % 2 != 0) {\n # Print the median of column 3\n print col3\n } else {\n # Print the lower middle value of column 3\n mid1 = col3\n mid2 = col3\n for (i = 1; i < NF; i += 2) {\n mid1 = min(mid1, col3)\n mid2 = max(mid2, col3)\n }\n print (mid1 + mid2) / 2\n }\n }\n}\n```","valid":false,"correct":false,"error":"File, environment, and process access are not allowed: getline"}
|
| 30 |
+
{"id":"awkweave-frozen-0030","request":"Remove blank lines and lines whose first non-whitespace character is #.","program":"$0 ~ /[^[:space:]]/ && $0 !~ /^[[:space:]]*#/","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"a 1\nb 2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"c 3\nd 4\n","family":"comment_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i != \"\") {\n print $i\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 31 |
+
{"id":"awkweave-frozen-0031","request":"Count lines whose first non-whitespace character is #, excluding blank lines.","program":"$0 ~ /^[[:space:]]*#/{n++}END{print n+0}","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"1\n","family":"comment_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n if ($i != \"\") {\n print $i\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 9: unexpected character '`'"}
|
| 32 |
+
{"id":"awkweave-frozen-0032","request":"Trim leading and trailing whitespace from each line without altering internal spacing.","program":"{gsub(/^[[:space:]]+|[[:space:]]+$/,\"\",$0);print}","input_text":" a 1 \n\tb 2\t\n","expected_output":"a 1\nb 2\n","validation_input":" c 3 \n d 4 \n","validation_output":"c 3\nd 4\n","family":"trim_lines","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n for (i = 1; i <= NF; i++) {\n $i = substr($i, 1, length($i))\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 7: unexpected character '`'"}
|
| 33 |
+
{"id":"awkweave-frozen-0033","request":"For ISO timestamps in field 1, print year, month, and day separated by hyphens.","program":"BEGIN{OFS=\"-\"}{split($1,date,\"-\");split(date[3],parts,\"T\");print date[1],date[2],parts[1]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","family":"iso_date_parts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"-\"\n for (i = 1; i <= NF; i++) {\n printf \"%d-%02d-%02d\\n\", $i, $i, $i\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 8: unexpected character '`'"}
|
| 34 |
+
{"id":"awkweave-frozen-0034","request":"Print complete records sorted by column 3 ascending, preserving input order on ties.","program":"{v[NR]=$3+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=NR;i++)print line[i]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns1 temperature 22.0 C\ns2 humidity 45.0 percent\ns2 humidity 47.5 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sort_numeric_ascending","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\n{\n print $3\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 5: unexpected character '`'"}
|
| 35 |
+
{"id":"awkweave-frozen-0035","request":"Sum column 3 only for temperature records, printing 0 when no such records exist.","program":"$2==\"temperature\"{s+=$3}END{print s+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"42.5\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"37.5\n","family":"sum_if_metric","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n sum = 0\n for (i = 1; i <= NF; i++) {\n if ($3 == \"temperature\") {\n sum += $2\n }\n }\n print sum\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
| 36 |
+
{"id":"awkweave-frozen-0036","request":"Print only the first complete record for each device in column 1.","program":"!seen[$1]++","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"first_record_per_device","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n FS = \"\\t\"\n for (i = 1; i <= NF; i++) {\n if ($i == 1) {\n print $0\n }\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 10: unexpected character '`'"}
|
| 37 |
+
{"id":"awkweave-frozen-0037","request":"Count records per unit in column 4 in first-appearance order.","program":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"C 2\npercent 2\nkPa 1\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"C 2\npercent 1\nkPa 1\n","family":"count_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```awk\nBEGIN {\n count = 0\n for (i = 1; i <= NF; i++) {\n if ($4 == $i) {\n count++\n }\n }\n print count\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
evaluation/base-base-frozen.summary.json
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen2.5-Coder-0.5B-Instruct",
|
| 3 |
+
"split": "frozen_test",
|
| 4 |
+
"rows": 37,
|
| 5 |
+
"valid_at_1": 0.0,
|
| 6 |
+
"correct_at_1": 0.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 15.000192403793335,
|
| 10 |
+
"data_sha256": "48db6edd11b564732f70711f894745b87c756f4eb8c20922fb18466b80771867",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"comment_count": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 0,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"comment_filter": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 0,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"count_units": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 0,
|
| 27 |
+
"correct": 0
|
| 28 |
+
},
|
| 29 |
+
"first_record_per_device": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 0,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"flow_bytes_total": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 0,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"flow_destination_count": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 0,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"flow_protocol_bytes": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 0,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"flow_tcp_count": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 0,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"flow_top_sources": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 0,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"flow_udp_average": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"group_gid_filter": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 0,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_member_counts": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 0,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"group_membership": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 0,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"inventory_average_price": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 0,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"inventory_category_value": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 0,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"inventory_highest_price": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 0,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"inventory_low_stock": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 0,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"inventory_out_of_stock": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 0,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"inventory_units": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 0,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"iso_date_parts": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 0,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"median_value": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"running_average": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 0,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"sensor_device_average": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 0,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"sensor_device_count": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 0,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"sensor_metric_max": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 0,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"sensor_threshold": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 0,
|
| 142 |
+
"correct": 0
|
| 143 |
+
},
|
| 144 |
+
"sensor_unit_filter": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 0,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"sort_numeric_ascending": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 0,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"sum_if_metric": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 0,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"syslog_cron_timestamp": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 0,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"syslog_error_casefold": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"syslog_failed_count": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 0,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"syslog_process_counts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 0,
|
| 177 |
+
"correct": 0
|
| 178 |
+
},
|
| 179 |
+
"syslog_sshd_hosts": {
|
| 180 |
+
"rows": 1,
|
| 181 |
+
"valid": 0,
|
| 182 |
+
"correct": 0
|
| 183 |
+
},
|
| 184 |
+
"syslog_unique_hosts": {
|
| 185 |
+
"rows": 1,
|
| 186 |
+
"valid": 0,
|
| 187 |
+
"correct": 0
|
| 188 |
+
},
|
| 189 |
+
"trim_lines": {
|
| 190 |
+
"rows": 1,
|
| 191 |
+
"valid": 0,
|
| 192 |
+
"correct": 0
|
| 193 |
+
},
|
| 194 |
+
"tsv_to_csv": {
|
| 195 |
+
"rows": 1,
|
| 196 |
+
"valid": 0,
|
| 197 |
+
"correct": 0
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
}
|
evaluation/base-base-test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/base-base-test.summary.json
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen2.5-Coder-0.5B-Instruct",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"rows": 3000,
|
| 5 |
+
"valid_at_1": 0.0,
|
| 6 |
+
"correct_at_1": 0.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 379.8920488357544,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"average_field": {
|
| 15 |
+
"rows": 77,
|
| 16 |
+
"valid": 0,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"computed_field": {
|
| 20 |
+
"rows": 77,
|
| 21 |
+
"valid": 0,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"conditional_label": {
|
| 25 |
+
"rows": 77,
|
| 26 |
+
"valid": 0,
|
| 27 |
+
"correct": 0
|
| 28 |
+
},
|
| 29 |
+
"count_by_key": {
|
| 30 |
+
"rows": 77,
|
| 31 |
+
"valid": 0,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"count_matches": {
|
| 35 |
+
"rows": 77,
|
| 36 |
+
"valid": 0,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"count_records": {
|
| 40 |
+
"rows": 77,
|
| 41 |
+
"valid": 0,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"csv_filter": {
|
| 45 |
+
"rows": 77,
|
| 46 |
+
"valid": 0,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"dedup_field": {
|
| 50 |
+
"rows": 78,
|
| 51 |
+
"valid": 0,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"dedup_lines": {
|
| 55 |
+
"rows": 77,
|
| 56 |
+
"valid": 0,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"distinct_count": {
|
| 60 |
+
"rows": 76,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"duplicates_only": {
|
| 65 |
+
"rows": 77,
|
| 66 |
+
"valid": 0,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"every_nth": {
|
| 70 |
+
"rows": 76,
|
| 71 |
+
"valid": 0,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"exclude_regex": {
|
| 75 |
+
"rows": 77,
|
| 76 |
+
"valid": 0,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"field_count": {
|
| 80 |
+
"rows": 77,
|
| 81 |
+
"valid": 0,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"first_n": {
|
| 85 |
+
"rows": 77,
|
| 86 |
+
"valid": 0,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"header_filter": {
|
| 90 |
+
"rows": 77,
|
| 91 |
+
"valid": 0,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"header_projection": {
|
| 95 |
+
"rows": 77,
|
| 96 |
+
"valid": 0,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"last_field": {
|
| 100 |
+
"rows": 77,
|
| 101 |
+
"valid": 0,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"line_range": {
|
| 105 |
+
"rows": 77,
|
| 106 |
+
"valid": 0,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"longest_line": {
|
| 110 |
+
"rows": 77,
|
| 111 |
+
"valid": 0,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"max_field": {
|
| 115 |
+
"rows": 77,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"min_field": {
|
| 120 |
+
"rows": 77,
|
| 121 |
+
"valid": 0,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"normalize_whitespace": {
|
| 125 |
+
"rows": 77,
|
| 126 |
+
"valid": 0,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"numeric_filter": {
|
| 130 |
+
"rows": 77,
|
| 131 |
+
"valid": 0,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"numeric_range": {
|
| 135 |
+
"rows": 77,
|
| 136 |
+
"valid": 0,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"project_fields": {
|
| 140 |
+
"rows": 77,
|
| 141 |
+
"valid": 0,
|
| 142 |
+
"correct": 0
|
| 143 |
+
},
|
| 144 |
+
"ratio": {
|
| 145 |
+
"rows": 76,
|
| 146 |
+
"valid": 0,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"regex_filter": {
|
| 150 |
+
"rows": 77,
|
| 151 |
+
"valid": 0,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"replace_underscores": {
|
| 155 |
+
"rows": 77,
|
| 156 |
+
"valid": 0,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"reverse_fields": {
|
| 160 |
+
"rows": 77,
|
| 161 |
+
"valid": 0,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"running_total": {
|
| 165 |
+
"rows": 77,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"skip_header": {
|
| 170 |
+
"rows": 77,
|
| 171 |
+
"valid": 0,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"string_filter": {
|
| 175 |
+
"rows": 77,
|
| 176 |
+
"valid": 0,
|
| 177 |
+
"correct": 0
|
| 178 |
+
},
|
| 179 |
+
"substring": {
|
| 180 |
+
"rows": 77,
|
| 181 |
+
"valid": 0,
|
| 182 |
+
"correct": 0
|
| 183 |
+
},
|
| 184 |
+
"sum_by_key": {
|
| 185 |
+
"rows": 77,
|
| 186 |
+
"valid": 0,
|
| 187 |
+
"correct": 0
|
| 188 |
+
},
|
| 189 |
+
"sum_field": {
|
| 190 |
+
"rows": 77,
|
| 191 |
+
"valid": 0,
|
| 192 |
+
"correct": 0
|
| 193 |
+
},
|
| 194 |
+
"top_three": {
|
| 195 |
+
"rows": 76,
|
| 196 |
+
"valid": 0,
|
| 197 |
+
"correct": 0
|
| 198 |
+
},
|
| 199 |
+
"tsv_projection": {
|
| 200 |
+
"rows": 77,
|
| 201 |
+
"valid": 0,
|
| 202 |
+
"correct": 0
|
| 203 |
+
},
|
| 204 |
+
"uppercase": {
|
| 205 |
+
"rows": 77,
|
| 206 |
+
"valid": 0,
|
| 207 |
+
"correct": 0
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
}
|
evaluation/challenge.jsonl
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-challenge-0001","request":"Count server-error responses with HTTP status from 500 through 599; print 0 when none occur.","program":"$9 >= 500 && $9 < 600{n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"1\n","family":"http_5xx_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$9>=500&&$9<=599{n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 2 |
+
{"id":"awkweave-challenge-0002","request":"What is the total number of response bytes? Sum the final field and print one integer.","program":"{bytes+=$NF}END{print bytes+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"992\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"129\n","family":"http_bytes_sum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$NF}END{print s+0}","valid":true,"correct":true,"error":null}
|
| 3 |
+
{"id":"awkweave-challenge-0003","request":"Count distinct client IP addresses, which appear in field 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"4\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"3\n","family":"http_unique_clients","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$1]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 4 |
+
{"id":"awkweave-challenge-0004","request":"Print the request path (field 7) for API routes with a 500 response.","program":"$7 ~ /^\\/api\\// && $9 == 500{print $7}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/api/orders\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"","family":"http_api_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$7>=500","valid":true,"correct":false,"error":null}
|
| 5 |
+
{"id":"awkweave-challenge-0005","request":"For responses with status 200 only, print the average number of bytes to two decimal places.","program":"$9==200{bytes+=$10;n++}END{printf \"%.2f\\n\",bytes/n}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"384.00\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"15.00\n","family":"http_success_bytes","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$9==200{s+=$10;n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":true,"error":null}
|
| 6 |
+
{"id":"awkweave-challenge-0006","request":"Print complete request records for methods other than GET.","program":"$6 !~ /^\"GET$/{print $0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n","family":"http_non_get","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$6 != \"GET\"","valid":true,"correct":false,"error":null}
|
| 7 |
+
{"id":"awkweave-challenge-0007","request":"Count each request path from field 7 and print path then count in first-appearance order.","program":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/index.html 2\n/api/orders 2\n/missing 1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"/health 2\n/api/items 2\n","family":"http_url_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 8 |
+
{"id":"awkweave-challenge-0008","request":"Use the header to find the region and amount columns. Print total paid amount per region in first-appearance order.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"paid\"{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 20\nnorth 10\nwest 5\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 8\neast 14\nwest 22\n","family":"header_region_totals","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 9 |
+
{"id":"awkweave-challenge-0009","request":"The first line is a header. Print order_id values for pending orders only.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r103\n","family":"header_pending_ids","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","valid":true,"correct":true,"error":null}
|
| 10 |
+
{"id":"awkweave-challenge-0010","request":"Read the amount column by its header name and print its mean over all data rows to two decimal places.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"amount\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"11.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"12.50\n","family":"header_amount_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"amount\"];n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":true,"error":null}
|
| 11 |
+
{"id":"awkweave-challenge-0011","request":"The first row is a header. Print the two complete orders with the largest amounts, highest first. Keep file order for ties.","program":"NR==1{next}{n++;v[n]=$3+0;line[n]=$0}END{for(i=2;i<=n;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=n;i++)print line[i]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002 west 20.00 pending\nr001 east 12.50 paid\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r104 west 22.00 paid\nr102 east 14.00 paid\n","family":"top_two_amounts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{n++;v[n]=$h[\"amount\"]+0;line[n]=$0}END{for(i=2;i<=n;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=n;i++)print line[i]}","valid":true,"correct":true,"error":null}
|
| 12 |
+
{"id":"awkweave-challenge-0012","request":"The first row is a header. Print each region and its average order amount to two decimals, grouping in first-appearance order and including every status.","program":"NR==1{next}{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3;counts[$2]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 10.00\nwest 12.50\nnorth 10.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 7.00\neast 14.00\nwest 22.00\n","family":"region_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"];counts[key]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 13 |
+
{"id":"awkweave-challenge-0013","request":"The first row is a header. For every order, print order_id and its amount as a percentage of the grand total, with two decimals and a percent sign.","program":"NR==1{next}{n++;id[n]=$1;v[n]=$3;total+=$3}END{for(i=1;i<=n;i++)printf \"%s %.2f%%\\n\",id[i],100*v[i]/total}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r001 22.73%\nr002 36.36%\nr003 13.64%\nr004 18.18%\nr005 9.09%\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r101 16.00%\nr102 28.00%\nr103 12.00%\nr104 44.00%\n","family":"amount_percentage","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{n++;id[n]=$h[\"order_id\"];v[n]=$h[\"amount\"];total+=$h[\"amount\"]}END{for(i=1;i<=n;i++)printf \"%s %.2f%%\\n\",id[i],100*v[i]/total}","valid":true,"correct":true,"error":null}
|
| 14 |
+
{"id":"awkweave-challenge-0014","request":"This is colon-delimited passwd data. Print usernames whose login shell is /bin/bash.","program":"BEGIN{FS=\":\"}$7==\"/bin/bash\"{print $1}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"root\nalice\nchen\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"root\neli\n","family":"passwd_shell","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}$7==\"/bin/bash\"{print $1}","valid":true,"correct":true,"error":null}
|
| 15 |
+
{"id":"awkweave-challenge-0015","request":"Using colon separators, print username and UID for accounts with UID at least 1000 and below 1002.","program":"BEGIN{FS=\":\";OFS=\":\"}$3>=1000&&$3<1002{print $1,$3}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"alice:1000\nbruno:1001\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"dina:1000\neli:1001\n","family":"passwd_uid_range","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\";OFS=\":\"}$3>=1000&&$3<=1002{print $1,$3}","valid":true,"correct":false,"error":null}
|
| 16 |
+
{"id":"awkweave-challenge-0016","request":"For colon-delimited passwd records, count users per login shell in order of first appearance.","program":"BEGIN{FS=\":\"}{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"/bin/bash 3\n/usr/sbin/nologin 1\n/bin/zsh 1\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"/bin/bash 2\n/bin/sh 1\n","family":"passwd_shell_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 17 |
+
{"id":"awkweave-challenge-0017","request":"Extract the service value from each record whose level value is error, ignoring level letter case.","program":"{service=\"\";level=\"\";for(i=1;i<=NF;i++){split($i,parts,\"=\");if(parts[1]==\"service\")service=parts[2];if(parts[1]==\"level\")level=tolower(parts[2])}if(level==\"error\")print service}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"db\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"api\nworker\n","family":"keyvalue_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{service=\"\";level=\"\";for(i=1;i<=NF;i++){split($i,p,\"=\");if(p[1]==\"service\")service=p[2];if(p[1]==\"level\")level=tolower(p[2])}if(level==\"error\")print service}","valid":true,"correct":true,"error":null}
|
| 18 |
+
{"id":"awkweave-challenge-0018","request":"Print timestamps with latency above 20. The timestamp is field 1 and latency is stored as latency=N in the final field.","program":"{split($NF,parts,\"=\");if(parts[2]+0>20)print $1}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z\n2026-11-28T09:03:00Z\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"2026-11-28T12:00:00Z\n2026-11-28T12:02:00Z\n","family":"keyvalue_latency","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{for(i=1;i<=NF;i++){split($i,p,\"=\");if(p[1]==\"latency\"&&p[2]+0>20)print $1}}","valid":true,"correct":true,"error":null}
|
| 19 |
+
{"id":"awkweave-challenge-0019","request":"Print only events with timestamps from 2026-11-28T09:01:00Z through 2026-11-28T09:02:00Z inclusive.","program":"$1>=\"2026-11-28T09:01:00Z\"&&$1<=\"2026-11-28T09:02:00Z\"","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"","family":"event_window","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$1 >= \"2026-11-28T09:01:00Z\" && $1 <= \"2026-11-28T09:02:00Z\"","valid":true,"correct":true,"error":null}
|
| 20 |
+
{"id":"awkweave-challenge-0020","request":"For each row after the first, print the group name and the change in column 2 from the previous row; for the first row print 0 as the change.","program":"{delta=$2-previous;if(NR==1)delta=0;print $1,delta;previous=$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 0\nbeta 10\nalpha 10\ngamma -25\nbeta 10\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 0\nred 4\nblue -5\ngreen 13\nblue -11\n","family":"running_delta","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{change=$2-previous;if(NR==1)change=0;print $1,change;previous=$2}","valid":true,"correct":true,"error":null}
|
| 21 |
+
{"id":"awkweave-challenge-0021","request":"For each group in column 1, print its largest value from column 2 in first-appearance order.","program":"{if(!($1 in max)||$2>max[$1])max[$1]=$2;if(!($1 in seen)){order[++n]=$1;seen[$1]=1}}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 30\nbeta 20\ngamma 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 12\nblue 9\ngreen 20\n","family":"group_maximum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in largest)){largest[$1]=$2;order[++n]=$1}}END{for(i=1;i<=n;i++)print order[i],largest[order[i]]}","valid":true,"correct":false,"error":null}
|
| 22 |
+
{"id":"awkweave-challenge-0022","request":"Print each group from column 1 with its first and last value from column 2, in first-appearance order.","program":"{if(!($1 in first)){first[$1]=$2;order[++n]=$1}last[$1]=$2}END{for(i=1;i<=n;i++)print order[i],first[order[i]],last[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 30\nbeta 20 15\ngamma 5 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 12\nblue 7 9\ngreen 20 20\n","family":"first_last_group","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in first)){first[$1]=$2;order[++n]=$1}last[$1]=$2}END{for(i=1;i<=n;i++)print order[i],first[order[i]],last[order[i]]}","valid":true,"correct":true,"error":null}
|
| 23 |
+
{"id":"awkweave-challenge-0023","request":"Print group and the ratio of column 3 to column 2 as a percentage with one decimal; skip zero denominators.","program":"$2!=0{printf \"%s %.1f%%\\n\",$1,100*$3/$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 40.0%\nbeta 0.0%\nalpha 26.7%\ngamma 40.0%\nbeta 20.0%\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 25.0%\nred 33.3%\nblue 0.0%\ngreen 25.0%\nblue 33.3%\n","family":"positive_ratio","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$2!=0{printf \"%s %.1f%%\\n\",$1,100*$3/$2}","valid":true,"correct":true,"error":null}
|
| 24 |
+
{"id":"awkweave-challenge-0024","request":"Print every row with column 2 clamped to the inclusive range 8 through 18; leave other fields unchanged.","program":"{if($2<8)$2=8;else if($2>18)$2=18;print}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 18 0\nalpha 18 8\ngamma 8 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nred 12 4\nblue 8 0\ngreen 18 5\nblue 9 3\n","family":"clamp_values","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if($2<8)$2=8;else if($2>18)$2=18;print}","valid":true,"correct":true,"error":null}
|
| 25 |
+
{"id":"awkweave-challenge-0025","request":"Suppress only consecutive duplicate group names in column 1, printing one complete row per run.","program":"$1!=previous{print}{previous=$1}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nblue 7 0\ngreen 20 5\nblue 9 3\n","family":"consecutive_dedup","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$1!=previous{print}{previous=$1}","valid":true,"correct":true,"error":null}
|
| 26 |
+
{"id":"awkweave-challenge-0026","request":"Remove blank and whitespace-only lines, leaving all other lines unchanged.","program":"$0 ~ /[^[:space:]]/","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"alpha 1\nbeta 2\nalpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"red 4\nblue 5\n","family":"blank_filter","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /[^[:space:]]/","valid":true,"correct":true,"error":null}
|
| 27 |
+
{"id":"awkweave-challenge-0027","request":"Count blank or whitespace-only lines and print the count.","program":"$0 !~ /[^[:space:]]/{n++}END{print n+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"2\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"2\n","family":"blank_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$0 !~ /[^[:space:]]/{n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 28 |
+
{"id":"awkweave-challenge-0028","request":"Prefix each non-empty line with its original line number, a colon, and one space.","program":"$0 ~ /[^[:space:]]/{print NR \": \" $0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"1: alpha 1\n3: beta 2\n5: alpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"1: red 4\n4: blue 5\n","family":"line_numbers","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /[^[:space:]]/{print NR \": \" $0}","valid":true,"correct":true,"error":null}
|
| 29 |
+
{"id":"awkweave-challenge-0029","request":"Print the total number of characters in the input, excluding newline characters.","program":"{total+=length($0)}END{print total+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"23\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"11\n","family":"character_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{n+=length($0)}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 30 |
+
{"id":"awkweave-challenge-0030","request":"Convert simple comma-separated rows to tab-separated rows, preserving every field in order.","program":"BEGIN{FS=\",\";OFS=\"\\t\"}{$1=$1;print}","input_text":"a,1,x\nb,2,y\n","expected_output":"a\t1\tx\nb\t2\ty\n","validation_input":"c,3,z\nd,4,w\n","validation_output":"c\t3\tz\nd\t4\tw\n","family":"comma_to_tab","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\",\";OFS=\"\\t\"}{$1=$1;print}","valid":true,"correct":true,"error":null}
|
| 31 |
+
{"id":"awkweave-challenge-0031","request":"Print column 1 right-aligned in a width of 8, followed by column 2 with no extra separator beyond the padding.","program":"{printf \"%8s%s\\n\",$1,$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":" alpha10\n beta20\n alpha30\n gamma5\n beta15\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":" red8\n red12\n blue7\n green20\n blue9\n","family":"fixed_width","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{printf \"%8s%s\\n\",$1,$2}","valid":true,"correct":true,"error":null}
|
| 32 |
+
{"id":"awkweave-challenge-0032","request":"For every record, print group and the absolute difference between columns 2 and 3.","program":"{difference=$2-$3;if(difference<0)difference=-difference;print $1,difference}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 6\nbeta 20\nalpha 22\ngamma 3\nbeta 12\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 6\nred 8\nblue 7\ngreen 15\nblue 6\n","family":"absolute_difference","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{d=$2-$3;if(d<0)d=-d;print $1,d}","valid":true,"correct":true,"error":null}
|
| 33 |
+
{"id":"awkweave-challenge-0033","request":"Print each distinct word from column 1 once, sorted in ascending lexical order.","program":"{seen[$1]=1}END{for(word in seen){value[++n]=word}for(i=2;i<=n;i++){x=value[i];j=i-1;while(j>=1&&value[j]>x){value[j+1]=value[j];j--}value[j+1]=x}for(i=1;i<=n;i++)print value[i]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha\nbeta\ngamma\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"blue\ngreen\nred\n","family":"sorted_unique_words","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{seen[$1]=1}END{for(word in seen){value[++n]=word}for(i=2;i<=n;i++){x=value[i];j=i-1;while(j>=1&&value[j]>x){value[j+1]=value[j];j--}value[j+1]=x}for(i=1;i<=n;i++)print value[i]}","valid":true,"correct":true,"error":null}
|
evaluation/challenge.summary.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/18340ac6-3434-4037-ac46-9bcf566ce496/small-training/model",
|
| 3 |
+
"split": "challenge",
|
| 4 |
+
"rows": 33,
|
| 5 |
+
"valid_at_1": 1.0,
|
| 6 |
+
"correct_at_1": 0.8484848484848485,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 14.094012975692749,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"absolute_difference": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 1,
|
| 17 |
+
"correct": 1
|
| 18 |
+
},
|
| 19 |
+
"amount_percentage": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 1,
|
| 22 |
+
"correct": 1
|
| 23 |
+
},
|
| 24 |
+
"blank_count": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 1,
|
| 27 |
+
"correct": 1
|
| 28 |
+
},
|
| 29 |
+
"blank_filter": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 1,
|
| 32 |
+
"correct": 1
|
| 33 |
+
},
|
| 34 |
+
"character_count": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 1,
|
| 37 |
+
"correct": 1
|
| 38 |
+
},
|
| 39 |
+
"clamp_values": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 1,
|
| 42 |
+
"correct": 1
|
| 43 |
+
},
|
| 44 |
+
"comma_to_tab": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 1,
|
| 47 |
+
"correct": 1
|
| 48 |
+
},
|
| 49 |
+
"consecutive_dedup": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 1,
|
| 52 |
+
"correct": 1
|
| 53 |
+
},
|
| 54 |
+
"event_window": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 1,
|
| 57 |
+
"correct": 1
|
| 58 |
+
},
|
| 59 |
+
"first_last_group": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 1,
|
| 62 |
+
"correct": 1
|
| 63 |
+
},
|
| 64 |
+
"fixed_width": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 1,
|
| 67 |
+
"correct": 1
|
| 68 |
+
},
|
| 69 |
+
"group_maximum": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 1,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"header_amount_average": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 1,
|
| 77 |
+
"correct": 1
|
| 78 |
+
},
|
| 79 |
+
"header_pending_ids": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 1,
|
| 82 |
+
"correct": 1
|
| 83 |
+
},
|
| 84 |
+
"header_region_totals": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 1,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"http_5xx_count": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 1,
|
| 92 |
+
"correct": 1
|
| 93 |
+
},
|
| 94 |
+
"http_api_errors": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 1,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"http_bytes_sum": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 1,
|
| 102 |
+
"correct": 1
|
| 103 |
+
},
|
| 104 |
+
"http_non_get": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 1,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"http_success_bytes": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 1,
|
| 112 |
+
"correct": 1
|
| 113 |
+
},
|
| 114 |
+
"http_unique_clients": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 1,
|
| 117 |
+
"correct": 1
|
| 118 |
+
},
|
| 119 |
+
"http_url_counts": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 1,
|
| 122 |
+
"correct": 1
|
| 123 |
+
},
|
| 124 |
+
"keyvalue_errors": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 1,
|
| 127 |
+
"correct": 1
|
| 128 |
+
},
|
| 129 |
+
"keyvalue_latency": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 1,
|
| 132 |
+
"correct": 1
|
| 133 |
+
},
|
| 134 |
+
"line_numbers": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 1,
|
| 137 |
+
"correct": 1
|
| 138 |
+
},
|
| 139 |
+
"passwd_shell": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 1,
|
| 142 |
+
"correct": 1
|
| 143 |
+
},
|
| 144 |
+
"passwd_shell_counts": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 1,
|
| 147 |
+
"correct": 1
|
| 148 |
+
},
|
| 149 |
+
"passwd_uid_range": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 1,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"positive_ratio": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 1,
|
| 157 |
+
"correct": 1
|
| 158 |
+
},
|
| 159 |
+
"region_average": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 1,
|
| 162 |
+
"correct": 1
|
| 163 |
+
},
|
| 164 |
+
"running_delta": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 1,
|
| 167 |
+
"correct": 1
|
| 168 |
+
},
|
| 169 |
+
"sorted_unique_words": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 1,
|
| 172 |
+
"correct": 1
|
| 173 |
+
},
|
| 174 |
+
"top_two_amounts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 1,
|
| 177 |
+
"correct": 1
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
}
|
evaluation/frozen.jsonl
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-frozen-0001","request":"Using pipe delimiters, count TCP flows and print 0 when none exist.","program":"BEGIN{FS=\"|\"}$4==\"TCP\"{n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3\n","family":"flow_tcp_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\"|\"}$7==“TCP”{n++}END{print n+0}","valid":false,"correct":false,"error":"awk: 1: unexpected character 0xe2"}
|
| 2 |
+
{"id":"awkweave-frozen-0002","request":"Sum bytes in field 6 of these pipe-delimited flows.","program":"BEGIN{FS=\"|\"}{s+=$6}END{print s+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"3234\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2030\n","family":"flow_bytes_total","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\"|\"}{s+=$6}END{print s+0}","valid":true,"correct":true,"error":null}
|
| 3 |
+
{"id":"awkweave-frozen-0003","request":"For pipe-delimited flows, total bytes per protocol in first-appearance order.","program":"BEGIN{FS=\"|\"}{if(!($4 in sums))order[++n]=$4;sums[$4]+=$6}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"TCP 2300\nUDP 870\nICMP 64\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"TCP 1850\nUDP 180\n","family":"flow_protocol_bytes","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\"|\"}{if(!($7 in sums))order[++n]=$7;sums[$7]+=$10}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 4 |
+
{"id":"awkweave-frozen-0004","request":"For UDP flows, print average packets to two decimals. Fields are pipe-delimited.","program":"BEGIN{FS=\"|\"}$4==\"UDP\"{s+=$5;n++}END{printf \"%.2f\\n\",s/n}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"5.50\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3.00\n","family":"flow_udp_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$9==“UDP”{n++;s+=$10;n--}END{printf \"%.2f\\n\",s/n}","valid":false,"correct":false,"error":"awk: 1: unexpected character 0xe2"}
|
| 5 |
+
{"id":"awkweave-frozen-0005","request":"Count distinct destination IPs in field 3 of this pipe-delimited data.","program":"BEGIN{FS=\"|\"}{if(!seen[$3]++)n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"4\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"4\n","family":"flow_destination_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$3]++)n++}END{print n+0}","valid":true,"correct":false,"error":null}
|
| 6 |
+
{"id":"awkweave-frozen-0006","request":"Print the two complete flows with the most bytes, highest first and stable on ties.","program":"BEGIN{FS=\"|\"}{v[NR]=$6+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=NR;i++)print line[i]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n","family":"flow_top_sources","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(NR==1||$NF>largest){largest=$NF;record=$0}}END{print record}","valid":true,"correct":false,"error":null}
|
| 7 |
+
{"id":"awkweave-frozen-0007","request":"The CSV has a header. Print sku for products with stock below 5; fields contain no quoted commas.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]<5{print $h[\"sku\"]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"A1\nB2\nD4\nE5\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"F6\nG7\nH8\nI9\n","family":"inventory_low_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]<5{print $h[\"sku\"]}","valid":true,"correct":false,"error":null}
|
| 8 |
+
{"id":"awkweave-frozen-0008","request":"Read stock by its CSV header and print total units in inventory.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"stock\"]}END{print s+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"14\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"9\n","family":"inventory_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{n++}END{print h[\"stock\"]}","valid":true,"correct":false,"error":null}
|
| 9 |
+
{"id":"awkweave-frozen-0009","request":"Using the CSV header, print the mean price over products to two decimals.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"price\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"17.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"12.00\n","family":"inventory_average_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"price\"];n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":false,"error":null}
|
| 10 |
+
{"id":"awkweave-frozen-0010","request":"Count products whose stock field is zero in this simple CSV with a header.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]==0{n++}END{print n+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"1\n","family":"inventory_out_of_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]==0++","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near end of line"}
|
| 11 |
+
{"id":"awkweave-frozen-0011","request":"Print each category and its total inventory value (price times stock) to two decimals, in first-appearance order.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"category\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"price\"]*$h[\"stock\"]}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"book 97.50\ntool 30.00\ngame 30.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"game 56.00\nbook 0.00\ntool 75.00\n","family":"inventory_category_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($7 in sums))order[++n]=$7;sums[$7]+=$10}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 12 |
+
{"id":"awkweave-frozen-0012","request":"Skip the CSV header and print the complete product with the highest price, keeping the earliest on ties.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}NR==2{best=$h[\"price\"];record=$0}$h[\"price\"]>best{best=$h[\"price\"];record=$0}END{print record}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"E5,game,30.00,1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"H8,tool,25.00,3\n","family":"inventory_highest_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{n++;v[n]=$h[\"price\"];if(v[n]>v[1])v[1]=v[n]}END{print v[1],h[v[1]]}","valid":true,"correct":false,"error":null}
|
| 13 |
+
{"id":"awkweave-frozen-0013","request":"Count syslog lines containing the exact word Failed.","program":"$0 ~ /Failed/{n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"1\n","family":"syslog_failed_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$7 == \"Failed\"{n++}END{print n+0}","valid":true,"correct":false,"error":null}
|
| 14 |
+
{"id":"awkweave-frozen-0014","request":"Print hostnames (field 4) for records whose process field begins with sshd.","program":"$5 ~ /^sshd/{print $4}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"web01\nweb01\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"api01\napi01\n","family":"syslog_sshd_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$4 ~ /^sshd/","valid":true,"correct":false,"error":null}
|
| 15 |
+
{"id":"awkweave-frozen-0015","request":"Print complete syslog records containing error in any letter case.","program":"tolower($0) ~ /error/","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:03 cache01 redis[104]: Error allocating buffer\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","family":"syslog_error_casefold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$7 ~ /error/","valid":true,"correct":false,"error":null}
|
| 16 |
+
{"id":"awkweave-frozen-0016","request":"Extract the process name before [ in field 5 and count records per process in first-appearance order.","program":"{split($5,p,\"[\");if(!(p[1] in counts))order[++n]=p[1];counts[p[1]]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"sshd 2\ncron 2\nredis 1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"sshd 2\ncron 1\nnginx 1\n","family":"syslog_process_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if($5 ~ /process name/){split($5,p,\"=\");name=p[1]}if(!name)next}{if(!name)order++}END{for(i=1;i<=order;i++)print name,i}","valid":true,"correct":false,"error":null}
|
| 17 |
+
{"id":"awkweave-frozen-0017","request":"For cron records, print month, day, and time (the first three fields).","program":"$5 ~ /^cron/{print $1,$2,$3}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:01\nDec 01 10:00:04\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:02\n","family":"syslog_cron_timestamp","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\" \"}$7==1{for(i=1;i<=NF;i++)print $7,$8,$9}","valid":true,"correct":false,"error":null}
|
| 18 |
+
{"id":"awkweave-frozen-0018","request":"Count distinct hostnames in field 4 of the syslog input.","program":"{if(!seen[$4]++)n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"3\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"2\n","family":"syslog_unique_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$4]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 19 |
+
{"id":"awkweave-frozen-0019","request":"In colon-delimited group data, print group names containing alice as a comma-separated member of field 4.","program":"BEGIN{FS=\":\"}{split($4,members,\",\");for(i in members)if(members[i]==\"alice\")print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel\ndevelopers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"","family":"group_membership","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}$4==~/alice|$4==~/alice,/{print $1}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near \nawk: line 1: runaway regular expression /{print $1} ..."}
|
| 20 |
+
{"id":"awkweave-frozen-0020","request":"For each colon-delimited group, print its name and number of members; an empty fourth field means zero.","program":"BEGIN{FS=\":\"}{n=split($4,members,\",\");if($4==\"\")n=0;print $1,n}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel 2\ndevelopers 3\naudio 0\nusers 2\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"admins 1\ndevelopers 2\nvideo 3\n","family":"group_member_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}$4==\"\"{n++}{$1=$1;print $1,n++}","valid":true,"correct":false,"error":null}
|
| 21 |
+
{"id":"awkweave-frozen-0021","request":"Print names of colon-delimited groups with numeric GID at least 1000.","program":"BEGIN{FS=\":\"}$3>=1000{print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"developers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"developers\n","family":"group_gid_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}$7>=1000{print $1}","valid":true,"correct":false,"error":null}
|
| 22 |
+
{"id":"awkweave-frozen-0022","request":"For each device in column 1, print its average reading from column 3 to two decimals in first-appearance order.","program":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$3;counts[$1]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 21.25\ns2 46.25\ns3 101.20\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.75\ns5 52.00\ns6 100.80\n","family":"sensor_device_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$3;counts[$1]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 23 |
+
{"id":"awkweave-frozen-0023","request":"Print complete readings with value in column 3 greater than 45.","program":"$3>45","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sensor_threshold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$3 > 45","valid":true,"correct":true,"error":null}
|
| 24 |
+
{"id":"awkweave-frozen-0024","request":"For each metric in column 2, print its maximum value from column 3 in first-appearance order.","program":"{if(!($2 in seen)){order[++n]=$2;seen[$2]=1;max[$2]=$3}if($3>max[$2])max[$2]=$3}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"temperature 22.0\nhumidity 47.5\npressure 101.2\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"temperature 19.5\nhumidity 52.0\npressure 100.8\n","family":"sensor_metric_max","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($2 in seen)){order[++n]=$2;seen[$2]=1;max=$3}if($3>max)max=$3}END{for(i=1;i<=n;i++)print order[i],max}","valid":true,"correct":false,"error":null}
|
| 25 |
+
{"id":"awkweave-frozen-0025","request":"Count distinct device identifiers in column 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"3\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"3\n","family":"sensor_device_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$1]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 26 |
+
{"id":"awkweave-frozen-0026","request":"Print device and value for readings whose unit in column 4 is C.","program":"$4==\"C\"{print $1,$3}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.5\ns1 22.0\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.0\ns4 19.5\n","family":"sensor_unit_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$4 == \"C\"{print $1, $4}","valid":true,"correct":false,"error":null}
|
| 27 |
+
{"id":"awkweave-frozen-0027","request":"Convert tab-separated rows to comma-separated rows while preserving all fields.","program":"BEGIN{FS=\"\\t\";OFS=\",\"}{$1=$1;print}","input_text":"a\t1\tx\nb\t2\ty\n","expected_output":"a,1,x\nb,2,y\n","validation_input":"c\t3\tz\nd\t4\tw\n","validation_output":"c,3,z\nd,4,w\n","family":"tsv_to_csv","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\"tab\";OFS=\",\"}$0{print}","valid":true,"correct":false,"error":null}
|
| 28 |
+
{"id":"awkweave-frozen-0028","request":"For each record, print column 1 and the running mean of column 3 to two decimals.","program":"{s+=$3;n++;printf \"%s %.2f\\n\",$1,s/n}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.50\ns2 32.75\ns1 29.17\ns3 47.17\ns2 47.24\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.00\ns4 18.75\ns5 29.83\ns6 47.58\n","family":"running_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{s=0;for(i=1;i<=NF;i++){split($i,p,\"=\");if(p[1]==\"running\")s=p[2]}if(s==0)print $1,\"N/A\"else print $1,s/NC}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near else"}
|
| 29 |
+
{"id":"awkweave-frozen-0029","request":"Print the median of column 3; for an even number of records use the lower middle value.","program":"{v[NR]=$3+0}END{for(i=2;i<=NR;i++){x=v[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];j--}v[j+1]=x}print v[int((NR+1)/2)]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"45\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"19.5\n","family":"median_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR%2{printf \"%s\\n\",$3}END{printf \"%.1f\\n\",NRL%2?($3[MAXNR/2]):$3[(NRL/2)-1]}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near ["}
|
| 30 |
+
{"id":"awkweave-frozen-0030","request":"Remove blank lines and lines whose first non-whitespace character is #.","program":"$0 ~ /[^[:space:]]/ && $0 !~ /^[[:space:]]*#/","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"a 1\nb 2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"c 3\nd 4\n","family":"comment_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /[^[:space:]]/","valid":true,"correct":false,"error":null}
|
| 31 |
+
{"id":"awkweave-frozen-0031","request":"Count lines whose first non-whitespace character is #, excluding blank lines.","program":"$0 ~ /^[[:space:]]*#/{n++}END{print n+0}","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"1\n","family":"comment_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$1 ~ /[^[:space:]]/","valid":true,"correct":false,"error":null}
|
| 32 |
+
{"id":"awkweave-frozen-0032","request":"Trim leading and trailing whitespace from each line without altering internal spacing.","program":"{gsub(/^[[:space:]]+|[[:space:]]+$/,\"\",$0);print}","input_text":" a 1 \n\tb 2\t\n","expected_output":"a 1\nb 2\n","validation_input":" c 3 \n d 4 \n","validation_output":"c 3\nd 4\n","family":"trim_lines","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{$1=$1;print}","valid":true,"correct":false,"error":null}
|
| 33 |
+
{"id":"awkweave-frozen-0033","request":"For ISO timestamps in field 1, print year, month, and day separated by hyphens.","program":"BEGIN{OFS=\"-\"}{split($1,date,\"-\");split(date[3],parts,\"T\");print date[1],date[2],parts[1]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","family":"iso_date_parts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\"-\"}$1>=1970&&$1<=2099{print $1}","valid":true,"correct":false,"error":null}
|
| 34 |
+
{"id":"awkweave-frozen-0034","request":"Print complete records sorted by column 3 ascending, preserving input order on ties.","program":"{v[NR]=$3+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=NR;i++)print line[i]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns1 temperature 22.0 C\ns2 humidity 45.0 percent\ns2 humidity 47.5 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sort_numeric_ascending","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($3 in seen)){order[++n]=$0;seen[$3]=1}if($3==order[n])next}END{for(i=1;i<=n;i++)print order[i]}","valid":true,"correct":false,"error":null}
|
| 35 |
+
{"id":"awkweave-frozen-0035","request":"Sum column 3 only for temperature records, printing 0 when no such records exist.","program":"$2==\"temperature\"{s+=$3}END{print s+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"42.5\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"37.5\n","family":"sum_if_metric","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$3==0{s+=$3}END{print s+0}","valid":true,"correct":false,"error":null}
|
| 36 |
+
{"id":"awkweave-frozen-0036","request":"Print only the first complete record for each device in column 1.","program":"!seen[$1]++","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"first_record_per_device","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$1 == \"\" {print}","valid":true,"correct":false,"error":null}
|
| 37 |
+
{"id":"awkweave-frozen-0037","request":"Count records per unit in column 4 in first-appearance order.","program":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"C 2\npercent 2\nkPa 1\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"C 2\npercent 1\nkPa 1\n","family":"count_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
evaluation/frozen.summary.json
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/18340ac6-3434-4037-ac46-9bcf566ce496/small-training/model",
|
| 3 |
+
"split": "frozen_test",
|
| 4 |
+
"rows": 37,
|
| 5 |
+
"valid_at_1": 0.8378378378378378,
|
| 6 |
+
"correct_at_1": 0.16216216216216217,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 12.372962236404419,
|
| 10 |
+
"data_sha256": "48db6edd11b564732f70711f894745b87c756f4eb8c20922fb18466b80771867",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"comment_count": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 1,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"comment_filter": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 1,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"count_units": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 1,
|
| 27 |
+
"correct": 1
|
| 28 |
+
},
|
| 29 |
+
"first_record_per_device": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 1,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"flow_bytes_total": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 1,
|
| 37 |
+
"correct": 1
|
| 38 |
+
},
|
| 39 |
+
"flow_destination_count": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 1,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"flow_protocol_bytes": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 1,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"flow_tcp_count": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 0,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"flow_top_sources": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 1,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"flow_udp_average": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"group_gid_filter": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 1,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_member_counts": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 1,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"group_membership": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 0,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"inventory_average_price": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 1,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"inventory_category_value": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 1,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"inventory_highest_price": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 1,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"inventory_low_stock": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 1,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"inventory_out_of_stock": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 0,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"inventory_units": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 1,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"iso_date_parts": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 1,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"median_value": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"running_average": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 0,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"sensor_device_average": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 1,
|
| 127 |
+
"correct": 1
|
| 128 |
+
},
|
| 129 |
+
"sensor_device_count": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 1,
|
| 132 |
+
"correct": 1
|
| 133 |
+
},
|
| 134 |
+
"sensor_metric_max": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 1,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"sensor_threshold": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 1,
|
| 142 |
+
"correct": 1
|
| 143 |
+
},
|
| 144 |
+
"sensor_unit_filter": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 1,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"sort_numeric_ascending": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 1,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"sum_if_metric": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 1,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"syslog_cron_timestamp": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 1,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"syslog_error_casefold": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 1,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"syslog_failed_count": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 1,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"syslog_process_counts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 1,
|
| 177 |
+
"correct": 0
|
| 178 |
+
},
|
| 179 |
+
"syslog_sshd_hosts": {
|
| 180 |
+
"rows": 1,
|
| 181 |
+
"valid": 1,
|
| 182 |
+
"correct": 0
|
| 183 |
+
},
|
| 184 |
+
"syslog_unique_hosts": {
|
| 185 |
+
"rows": 1,
|
| 186 |
+
"valid": 1,
|
| 187 |
+
"correct": 1
|
| 188 |
+
},
|
| 189 |
+
"trim_lines": {
|
| 190 |
+
"rows": 1,
|
| 191 |
+
"valid": 1,
|
| 192 |
+
"correct": 0
|
| 193 |
+
},
|
| 194 |
+
"tsv_to_csv": {
|
| 195 |
+
"rows": 1,
|
| 196 |
+
"valid": 1,
|
| 197 |
+
"correct": 0
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
}
|
evaluation/test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/test.summary.json
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/18340ac6-3434-4037-ac46-9bcf566ce496/small-training/model",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"rows": 3000,
|
| 5 |
+
"valid_at_1": 1.0,
|
| 6 |
+
"correct_at_1": 1.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 800.2374930381775,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"average_field": {
|
| 15 |
+
"rows": 77,
|
| 16 |
+
"valid": 77,
|
| 17 |
+
"correct": 77
|
| 18 |
+
},
|
| 19 |
+
"computed_field": {
|
| 20 |
+
"rows": 77,
|
| 21 |
+
"valid": 77,
|
| 22 |
+
"correct": 77
|
| 23 |
+
},
|
| 24 |
+
"conditional_label": {
|
| 25 |
+
"rows": 77,
|
| 26 |
+
"valid": 77,
|
| 27 |
+
"correct": 77
|
| 28 |
+
},
|
| 29 |
+
"count_by_key": {
|
| 30 |
+
"rows": 77,
|
| 31 |
+
"valid": 77,
|
| 32 |
+
"correct": 77
|
| 33 |
+
},
|
| 34 |
+
"count_matches": {
|
| 35 |
+
"rows": 77,
|
| 36 |
+
"valid": 77,
|
| 37 |
+
"correct": 77
|
| 38 |
+
},
|
| 39 |
+
"count_records": {
|
| 40 |
+
"rows": 77,
|
| 41 |
+
"valid": 77,
|
| 42 |
+
"correct": 77
|
| 43 |
+
},
|
| 44 |
+
"csv_filter": {
|
| 45 |
+
"rows": 77,
|
| 46 |
+
"valid": 77,
|
| 47 |
+
"correct": 77
|
| 48 |
+
},
|
| 49 |
+
"dedup_field": {
|
| 50 |
+
"rows": 78,
|
| 51 |
+
"valid": 78,
|
| 52 |
+
"correct": 78
|
| 53 |
+
},
|
| 54 |
+
"dedup_lines": {
|
| 55 |
+
"rows": 77,
|
| 56 |
+
"valid": 77,
|
| 57 |
+
"correct": 77
|
| 58 |
+
},
|
| 59 |
+
"distinct_count": {
|
| 60 |
+
"rows": 76,
|
| 61 |
+
"valid": 76,
|
| 62 |
+
"correct": 76
|
| 63 |
+
},
|
| 64 |
+
"duplicates_only": {
|
| 65 |
+
"rows": 77,
|
| 66 |
+
"valid": 77,
|
| 67 |
+
"correct": 77
|
| 68 |
+
},
|
| 69 |
+
"every_nth": {
|
| 70 |
+
"rows": 76,
|
| 71 |
+
"valid": 76,
|
| 72 |
+
"correct": 76
|
| 73 |
+
},
|
| 74 |
+
"exclude_regex": {
|
| 75 |
+
"rows": 77,
|
| 76 |
+
"valid": 77,
|
| 77 |
+
"correct": 77
|
| 78 |
+
},
|
| 79 |
+
"field_count": {
|
| 80 |
+
"rows": 77,
|
| 81 |
+
"valid": 77,
|
| 82 |
+
"correct": 77
|
| 83 |
+
},
|
| 84 |
+
"first_n": {
|
| 85 |
+
"rows": 77,
|
| 86 |
+
"valid": 77,
|
| 87 |
+
"correct": 77
|
| 88 |
+
},
|
| 89 |
+
"header_filter": {
|
| 90 |
+
"rows": 77,
|
| 91 |
+
"valid": 77,
|
| 92 |
+
"correct": 77
|
| 93 |
+
},
|
| 94 |
+
"header_projection": {
|
| 95 |
+
"rows": 77,
|
| 96 |
+
"valid": 77,
|
| 97 |
+
"correct": 77
|
| 98 |
+
},
|
| 99 |
+
"last_field": {
|
| 100 |
+
"rows": 77,
|
| 101 |
+
"valid": 77,
|
| 102 |
+
"correct": 77
|
| 103 |
+
},
|
| 104 |
+
"line_range": {
|
| 105 |
+
"rows": 77,
|
| 106 |
+
"valid": 77,
|
| 107 |
+
"correct": 77
|
| 108 |
+
},
|
| 109 |
+
"longest_line": {
|
| 110 |
+
"rows": 77,
|
| 111 |
+
"valid": 77,
|
| 112 |
+
"correct": 77
|
| 113 |
+
},
|
| 114 |
+
"max_field": {
|
| 115 |
+
"rows": 77,
|
| 116 |
+
"valid": 77,
|
| 117 |
+
"correct": 77
|
| 118 |
+
},
|
| 119 |
+
"min_field": {
|
| 120 |
+
"rows": 77,
|
| 121 |
+
"valid": 77,
|
| 122 |
+
"correct": 77
|
| 123 |
+
},
|
| 124 |
+
"normalize_whitespace": {
|
| 125 |
+
"rows": 77,
|
| 126 |
+
"valid": 77,
|
| 127 |
+
"correct": 77
|
| 128 |
+
},
|
| 129 |
+
"numeric_filter": {
|
| 130 |
+
"rows": 77,
|
| 131 |
+
"valid": 77,
|
| 132 |
+
"correct": 77
|
| 133 |
+
},
|
| 134 |
+
"numeric_range": {
|
| 135 |
+
"rows": 77,
|
| 136 |
+
"valid": 77,
|
| 137 |
+
"correct": 77
|
| 138 |
+
},
|
| 139 |
+
"project_fields": {
|
| 140 |
+
"rows": 77,
|
| 141 |
+
"valid": 77,
|
| 142 |
+
"correct": 77
|
| 143 |
+
},
|
| 144 |
+
"ratio": {
|
| 145 |
+
"rows": 76,
|
| 146 |
+
"valid": 76,
|
| 147 |
+
"correct": 76
|
| 148 |
+
},
|
| 149 |
+
"regex_filter": {
|
| 150 |
+
"rows": 77,
|
| 151 |
+
"valid": 77,
|
| 152 |
+
"correct": 77
|
| 153 |
+
},
|
| 154 |
+
"replace_underscores": {
|
| 155 |
+
"rows": 77,
|
| 156 |
+
"valid": 77,
|
| 157 |
+
"correct": 77
|
| 158 |
+
},
|
| 159 |
+
"reverse_fields": {
|
| 160 |
+
"rows": 77,
|
| 161 |
+
"valid": 77,
|
| 162 |
+
"correct": 77
|
| 163 |
+
},
|
| 164 |
+
"running_total": {
|
| 165 |
+
"rows": 77,
|
| 166 |
+
"valid": 77,
|
| 167 |
+
"correct": 77
|
| 168 |
+
},
|
| 169 |
+
"skip_header": {
|
| 170 |
+
"rows": 77,
|
| 171 |
+
"valid": 77,
|
| 172 |
+
"correct": 77
|
| 173 |
+
},
|
| 174 |
+
"string_filter": {
|
| 175 |
+
"rows": 77,
|
| 176 |
+
"valid": 77,
|
| 177 |
+
"correct": 77
|
| 178 |
+
},
|
| 179 |
+
"substring": {
|
| 180 |
+
"rows": 77,
|
| 181 |
+
"valid": 77,
|
| 182 |
+
"correct": 77
|
| 183 |
+
},
|
| 184 |
+
"sum_by_key": {
|
| 185 |
+
"rows": 77,
|
| 186 |
+
"valid": 77,
|
| 187 |
+
"correct": 77
|
| 188 |
+
},
|
| 189 |
+
"sum_field": {
|
| 190 |
+
"rows": 77,
|
| 191 |
+
"valid": 77,
|
| 192 |
+
"correct": 77
|
| 193 |
+
},
|
| 194 |
+
"top_three": {
|
| 195 |
+
"rows": 76,
|
| 196 |
+
"valid": 76,
|
| 197 |
+
"correct": 76
|
| 198 |
+
},
|
| 199 |
+
"tsv_projection": {
|
| 200 |
+
"rows": 77,
|
| 201 |
+
"valid": 77,
|
| 202 |
+
"correct": 77
|
| 203 |
+
},
|
| 204 |
+
"uppercase": {
|
| 205 |
+
"rows": 77,
|
| 206 |
+
"valid": 77,
|
| 207 |
+
"correct": 77
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
}
|
evaluation/v2-base-challenge.jsonl
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-challenge-0001","request":"Count server-error responses with HTTP status from 500 through 599; print 0 when none occur.","program":"$9 >= 500 && $9 < 600{n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"1\n","family":"http_5xx_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '/^5[0-9]{2}$/ {count++} END {if (count == 0) print 0; else print count}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 2 |
+
{"id":"awkweave-challenge-0002","request":"What is the total number of response bytes? Sum the final field and print one integer.","program":"{bytes+=$NF}END{print bytes+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"992\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"129\n","family":"http_bytes_sum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{sum += $NF} END {print sum}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 3 |
+
{"id":"awkweave-challenge-0003","request":"Count distinct client IP addresses, which appear in field 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"4\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"3\n","family":"http_unique_clients","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1}' | sort | uniq | wc -l\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 4 |
+
{"id":"awkweave-challenge-0004","request":"Print the request path (field 7) for API routes with a 500 response.","program":"$7 ~ /^\\/api\\// && $9 == 500{print $7}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/api/orders\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"","family":"http_api_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '$7 == 500 {print $7}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 5 |
+
{"id":"awkweave-challenge-0005","request":"For responses with status 200 only, print the average number of bytes to two decimal places.","program":"$9==200{bytes+=$10;n++}END{printf \"%.2f\\n\",bytes/n}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"384.00\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"15.00\n","family":"http_success_bytes","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '/^HTTP\\/1\\.1 200/ {sum += $7; count++} END {print sum/count.toFixed(2)}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '.'\nawk: 2: unexpected character '''"}
|
| 6 |
+
{"id":"awkweave-challenge-0006","request":"Print complete request records for methods other than GET.","program":"$6 !~ /^\"GET$/{print $0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n","family":"http_non_get","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '$1 != \"GET\"' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'"}
|
| 7 |
+
{"id":"awkweave-challenge-0007","request":"Count each request path from field 7 and print path then count in first-appearance order.","program":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/index.html 2\n/api/orders 2\n/missing 1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"/health 2\n/api/items 2\n","family":"http_url_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $7, NR}' | sort | uniq -c\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 8 |
+
{"id":"awkweave-challenge-0008","request":"Use the header to find the region and amount columns. Print total paid amount per region in first-appearance order.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"paid\"{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 20\nnorth 10\nwest 5\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 8\neast 14\nwest 22\n","family":"header_region_totals","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\" \"; OFS=\"\\t\"} NR==1 {regions[$1]=1} $1 in regions && !seen[$1] {total[$1]+=$3; seen[$1]=1} END {for (region in total) print region \"\\t\" total[region]}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 9 |
+
{"id":"awkweave-challenge-0009","request":"The first line is a header. Print order_id values for pending orders only.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r103\n","family":"header_pending_ids","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'NR==1 {print $1}' input.txt | grep -E \"pending\"\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 10 |
+
{"id":"awkweave-challenge-0010","request":"Read the amount column by its header name and print its mean over all data rows to two decimal places.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"amount\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"11.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"12.50\n","family":"header_amount_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\" \"; sum=0; count=0} NR>1 && $2==\"amount\" {sum+=$3; count++} END {print \"mean = \", sum/count, \" (rounded to 2 decimals)\"}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 11 |
+
{"id":"awkweave-challenge-0011","request":"The first row is a header. Print the two complete orders with the largest amounts, highest first. Keep file order for ties.","program":"NR==1{next}{n++;v[n]=$3+0;line[n]=$0}END{for(i=2;i<=n;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=n;i++)print line[i]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002 west 20.00 pending\nr001 east 12.50 paid\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r104 west 22.00 paid\nr102 east 14.00 paid\n","family":"top_two_amounts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'NR==1 {next} {if ($3 > max1) {max2 = max1; max1 = $3; order2 = order1; order1 = $0} else if ($3 > max2) {max2 = $3; order2 = $0}} END {print order1, order2}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 12 |
+
{"id":"awkweave-challenge-0012","request":"The first row is a header. Print each region and its average order amount to two decimals, grouping in first-appearance order and including every status.","program":"NR==1{next}{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3;counts[$2]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 10.00\nwest 12.50\nnorth 10.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 7.00\neast 14.00\nwest 22.00\n","family":"region_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\" \"; OFS=\"\\t\"} NR>1 {regions[$1]++} END {for (region in regions) print region, sprintf(\"%.2f\", sum[region]/count[region])}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 13 |
+
{"id":"awkweave-challenge-0013","request":"The first row is a header. For every order, print order_id and its amount as a percentage of the grand total, with two decimals and a percent sign.","program":"NR==1{next}{n++;id[n]=$1;v[n]=$3;total+=$3}END{for(i=1;i<=n;i++)printf \"%s %.2f%%\\n\",id[i],100*v[i]/total}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r001 22.73%\nr002 36.36%\nr003 13.64%\nr004 18.18%\nr005 9.09%\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r101 16.00%\nr102 28.00%\nr103 12.00%\nr104 44.00%\n","family":"amount_percentage","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nBEGIN {\n # Calculate the total amount\n total = 0\n for (i=2; i<=NF; i++) {\n total += $i\n }\n}\n\nNR > 1 {\n # Calculate the percentage of each order's amount relative to the total\n percentage = ($2 / total) * 100\n printf \"%s %.2f%%\\n\", $1, percentage\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 15: unexpected character '`'"}
|
| 14 |
+
{"id":"awkweave-challenge-0014","request":"This is colon-delimited passwd data. Print usernames whose login shell is /bin/bash.","program":"BEGIN{FS=\":\"}$7==\"/bin/bash\"{print $1}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"root\nalice\nchen\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"root\neli\n","family":"passwd_shell","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk -F: '$3 == \"/bin/bash\" {print $1}' <<< \"$sample_input\"\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 15 |
+
{"id":"awkweave-challenge-0015","request":"Using colon separators, print username and UID for accounts with UID at least 1000 and below 1002.","program":"BEGIN{FS=\":\";OFS=\":\"}$3>=1000&&$3<1002{print $1,$3}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"alice:1000\nbruno:1001\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"dina:1000\neli:1001\n","family":"passwd_uid_range","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk -F: '$3 >= 1000 && $3 < 1002 {print $1, $3}' <<< \"root:x:0:0:root:/root:/bin/bash\\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\"\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 16 |
+
{"id":"awkweave-challenge-0016","request":"For colon-delimited passwd records, count users per login shell in order of first appearance.","program":"BEGIN{FS=\":\"}{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"/bin/bash 3\n/usr/sbin/nologin 1\n/bin/zsh 1\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"/bin/bash 2\n/bin/sh 1\n","family":"passwd_shell_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk -F: '{print $7}' | sort | uniq -c | sort -nr\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 17 |
+
{"id":"awkweave-challenge-0017","request":"Extract the service value from each record whose level value is error, ignoring level letter case.","program":"{service=\"\";level=\"\";for(i=1;i<=NF;i++){split($i,parts,\"=\");if(parts[1]==\"service\")service=parts[2];if(parts[1]==\"level\")level=tolower(parts[2])}if(level==\"error\")print service}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"db\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"api\nworker\n","family":"keyvalue_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '$2 == \"error\" {print $3}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 18 |
+
{"id":"awkweave-challenge-0018","request":"Print timestamps with latency above 20. The timestamp is field 1 and latency is stored as latency=N in the final field.","program":"{split($NF,parts,\"=\");if(parts[2]+0>20)print $1}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z\n2026-11-28T09:03:00Z\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"2026-11-28T12:00:00Z\n2026-11-28T12:02:00Z\n","family":"keyvalue_latency","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\" \"}; $NF ~ /latency=(\\d+)/ {print $1, $NF}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 19 |
+
{"id":"awkweave-challenge-0019","request":"Print only events with timestamps from 2026-11-28T09:01:00Z through 2026-11-28T09:02:00Z inclusive.","program":"$1>=\"2026-11-28T09:01:00Z\"&&$1<=\"2026-11-28T09:02:00Z\"","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"","family":"event_window","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '$1 >= \"2026-11-28T09:01:00Z\" && $1 <= \"2026-11-28T09:02:00Z\"' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'"}
|
| 20 |
+
{"id":"awkweave-challenge-0020","request":"For each row after the first, print the group name and the change in column 2 from the previous row; for the first row print 0 as the change.","program":"{delta=$2-previous;if(NR==1)delta=0;print $1,delta;previous=$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 0\nbeta 10\nalpha 10\ngamma -25\nbeta 10\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 0\nred 4\nblue -5\ngreen 13\nblue -11\n","family":"running_delta","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nNR > 1 {print $1, $2 - prev[$1]} {prev[$1] = $2}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 3: unexpected character '`'"}
|
| 21 |
+
{"id":"awkweave-challenge-0021","request":"For each group in column 1, print its largest value from column 2 in first-appearance order.","program":"{if(!($1 in max)||$2>max[$1])max[$1]=$2;if(!($1 in seen)){order[++n]=$1;seen[$1]=1}}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 30\nbeta 20\ngamma 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 12\nblue 9\ngreen 20\n","family":"group_maximum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{\n if (NR == 1) {\n max = $2;\n group = $1;\n } else if ($1 == group && $2 > max) {\n max = $2;\n }\n}\nEND {\n print group \" \" max;\n}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 12: unexpected character '''"}
|
| 22 |
+
{"id":"awkweave-challenge-0022","request":"Print each group from column 1 with its first and last value from column 2, in first-appearance order.","program":"{if(!($1 in first)){first[$1]=$2;order[++n]=$1}last[$1]=$2}END{for(i=1;i<=n;i++)print order[i],first[order[i]],last[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 30\nbeta 20 15\ngamma 5 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 12\nblue 7 9\ngreen 20 20\n","family":"first_last_group","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{if (!seen[$1]) {print $1, $2, $2; seen[$1]=1}}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 23 |
+
{"id":"awkweave-challenge-0023","request":"Print group and the ratio of column 3 to column 2 as a percentage with one decimal; skip zero denominators.","program":"$2!=0{printf \"%s %.1f%%\\n\",$1,100*$3/$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 40.0%\nbeta 0.0%\nalpha 26.7%\ngamma 40.0%\nbeta 20.0%\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 25.0%\nred 33.3%\nblue 0.0%\ngreen 25.0%\nblue 33.3%\n","family":"positive_ratio","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nBEGIN {\n FS = \" \"\n}\nNR > 1 {\n if ($2 != 0) {\n print $1, sprintf(\"%.1f%%\", ($3 / $2) * 100)\n }\n}\nEND {}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 11: unexpected character '`'"}
|
| 24 |
+
{"id":"awkweave-challenge-0024","request":"Print every row with column 2 clamped to the inclusive range 8 through 18; leave other fields unchanged.","program":"{if($2<8)$2=8;else if($2>18)$2=18;print}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 18 0\nalpha 18 8\ngamma 8 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nred 12 4\nblue 8 0\ngreen 18 5\nblue 9 3\n","family":"clamp_values","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\" \"}; $2 >= 8 && $2 <= 18 {print}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 25 |
+
{"id":"awkweave-challenge-0025","request":"Suppress only consecutive duplicate group names in column 1, printing one complete row per run.","program":"$1!=previous{print}{previous=$1}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nblue 7 0\ngreen 20 5\nblue 9 3\n","family":"consecutive_dedup","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{if ($1 != prev) print $0; prev = $1}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 26 |
+
{"id":"awkweave-challenge-0026","request":"Remove blank and whitespace-only lines, leaving all other lines unchanged.","program":"$0 ~ /[^[:space:]]/","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"alpha 1\nbeta 2\nalpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"red 4\nblue 5\n","family":"blank_filter","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '!/^$/ {print}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 27 |
+
{"id":"awkweave-challenge-0027","request":"Count blank or whitespace-only lines and print the count.","program":"$0 !~ /[^[:space:]]/{n++}END{print n+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"2\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"2\n","family":"blank_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {count=0} /^$/ {count++} END {print count}' <<< \"alpha 1\\nbeta 2\\nalpha 3\"\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 28 |
+
{"id":"awkweave-challenge-0028","request":"Prefix each non-empty line with its original line number, a colon, and one space.","program":"$0 ~ /[^[:space:]]/{print NR \": \" $0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"1: alpha 1\n3: beta 2\n5: alpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"1: red 4\n4: blue 5\n","family":"line_numbers","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nNR: $0\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'"}
|
| 29 |
+
{"id":"awkweave-challenge-0029","request":"Print the total number of characters in the input, excluding newline characters.","program":"{total+=length($0)}END{print total+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"23\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"11\n","family":"character_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print length}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 30 |
+
{"id":"awkweave-challenge-0030","request":"Convert simple comma-separated rows to tab-separated rows, preserving every field in order.","program":"BEGIN{FS=\",\";OFS=\"\\t\"}{$1=$1;print}","input_text":"a,1,x\nb,2,y\n","expected_output":"a\t1\tx\nb\t2\ty\n","validation_input":"c,3,z\nd,4,w\n","validation_output":"c\t3\tz\nd\t4\tw\n","family":"comma_to_tab","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1 \"\\t\" $2 \"\\t\" $3}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 31 |
+
{"id":"awkweave-challenge-0031","request":"Print column 1 right-aligned in a width of 8, followed by column 2 with no extra separator beyond the padding.","program":"{printf \"%8s%s\\n\",$1,$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":" alpha10\n beta20\n alpha30\n gamma5\n beta15\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":" red8\n red12\n blue7\n green20\n blue9\n","family":"fixed_width","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{printf \"%-8s %d\\n\", $1, $2}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 32 |
+
{"id":"awkweave-challenge-0032","request":"For every record, print group and the absolute difference between columns 2 and 3.","program":"{difference=$2-$3;if(difference<0)difference=-difference;print $1,difference}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 6\nbeta 20\nalpha 22\ngamma 3\nbeta 12\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 6\nred 8\nblue 7\ngreen 15\nblue 6\n","family":"absolute_difference","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1, abs($2 - $3)}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 33 |
+
{"id":"awkweave-challenge-0033","request":"Print each distinct word from column 1 once, sorted in ascending lexical order.","program":"{seen[$1]=1}END{for(word in seen){value[++n]=word}for(i=2;i<=n;i++){x=value[i];j=i-1;while(j>=1&&value[j]>x){value[j+1]=value[j];j--}value[j+1]=x}for(i=1;i<=n;i++)print value[i]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha\nbeta\ngamma\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"blue\ngreen\nred\n","family":"sorted_unique_words","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1}' | sort -u\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
evaluation/v2-base-challenge.summary.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen2.5-Coder-1.5B-Instruct",
|
| 3 |
+
"split": "challenge",
|
| 4 |
+
"rows": 33,
|
| 5 |
+
"valid_at_1": 0.0,
|
| 6 |
+
"correct_at_1": 0.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 20.817210912704468,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"absolute_difference": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 0,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"amount_percentage": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 0,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"blank_count": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 0,
|
| 27 |
+
"correct": 0
|
| 28 |
+
},
|
| 29 |
+
"blank_filter": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 0,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"character_count": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 0,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"clamp_values": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 0,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"comma_to_tab": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 0,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"consecutive_dedup": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 0,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"event_window": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 0,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"first_last_group": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"fixed_width": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 0,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_maximum": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 0,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"header_amount_average": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 0,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"header_pending_ids": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 0,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"header_region_totals": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 0,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"http_5xx_count": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 0,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"http_api_errors": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 0,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"http_bytes_sum": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 0,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"http_non_get": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 0,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"http_success_bytes": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 0,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"http_unique_clients": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"http_url_counts": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 0,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"keyvalue_errors": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 0,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"keyvalue_latency": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 0,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"line_numbers": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 0,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"passwd_shell": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 0,
|
| 142 |
+
"correct": 0
|
| 143 |
+
},
|
| 144 |
+
"passwd_shell_counts": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 0,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"passwd_uid_range": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 0,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"positive_ratio": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 0,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"region_average": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 0,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"running_delta": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"sorted_unique_words": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 0,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"top_two_amounts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 0,
|
| 177 |
+
"correct": 0
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
}
|
evaluation/v2-base-frozen.jsonl
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-frozen-0001","request":"Using pipe delimiters, count TCP flows and print 0 when none exist.","program":"BEGIN{FS=\"|\"}$4==\"TCP\"{n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3\n","family":"flow_tcp_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\"|\"} NR>1 {if ($5==\"TCP\") count++} END {print count==0?\"0\":count}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 2 |
+
{"id":"awkweave-frozen-0002","request":"Sum bytes in field 6 of these pipe-delimited flows.","program":"BEGIN{FS=\"|\"}{s+=$6}END{print s+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"3234\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2030\n","family":"flow_bytes_total","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{sum += $6} END {print sum}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 3 |
+
{"id":"awkweave-frozen-0003","request":"For pipe-delimited flows, total bytes per protocol in first-appearance order.","program":"BEGIN{FS=\"|\"}{if(!($4 in sums))order[++n]=$4;sums[$4]+=$6}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"TCP 2300\nUDP 870\nICMP 64\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"TCP 1850\nUDP 180\n","family":"flow_protocol_bytes","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1, $2, $3, $4}' | sort -k 4,4n | uniq -c\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 4 |
+
{"id":"awkweave-frozen-0004","request":"For UDP flows, print average packets to two decimals. Fields are pipe-delimited.","program":"BEGIN{FS=\"|\"}$4==\"UDP\"{s+=$5;n++}END{printf \"%.2f\\n\",s/n}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"5.50\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3.00\n","family":"flow_udp_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $NF / NR}' FS='|' OFS=' ' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 5 |
+
{"id":"awkweave-frozen-0005","request":"Count distinct destination IPs in field 3 of this pipe-delimited data.","program":"BEGIN{FS=\"|\"}{if(!seen[$3]++)n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"4\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"4\n","family":"flow_destination_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $3}' | sort -u | wc -l\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 6 |
+
{"id":"awkweave-frozen-0006","request":"Print the two complete flows with the most bytes, highest first and stable on ties.","program":"BEGIN{FS=\"|\"}{v[NR]=$6+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=NR;i++)print line[i]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n","family":"flow_top_sources","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '\nBEGIN {\n max_bytes = 0;\n max_flows = 0;\n}\n{\n flow_bytes += $5;\n if (flow_bytes > max_bytes) {\n max_bytes = flow_bytes;\n max_flows = 1;\n } else if (flow_bytes == max_bytes) {\n max_flows++;\n }\n}\nEND {\n for (i = 1; i <= max_flows; i++) {\n print \"Flow \" i \":\";\n for (j = 1; j <= NF; j++) {\n print $j;\n }\n print \"\";\n }\n}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 24: unexpected character '''"}
|
| 7 |
+
{"id":"awkweave-frozen-0007","request":"The CSV has a header. Print sku for products with stock below 5; fields contain no quoted commas.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]<5{print $h[\"sku\"]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"A1\nB2\nD4\nE5\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"F6\nG7\nH8\nI9\n","family":"inventory_low_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'NR>1 && $4<5 {print $1}' input.csv\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 8 |
+
{"id":"awkweave-frozen-0008","request":"Read stock by its CSV header and print total units in inventory.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"stock\"]}END{print s+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"14\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"9\n","family":"inventory_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN { FS=','; sum=0 } NR>1 { if ($1==\"SKU\") continue; sum+=$4 } END { print \"Total units in inventory:\", sum }' input.csv\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''\nawk: 2: unexpected character '''"}
|
| 9 |
+
{"id":"awkweave-frozen-0009","request":"Using the CSV header, print the mean price over products to two decimals.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"price\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"17.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"12.00\n","family":"inventory_average_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN { FS=','; sum=0; count=0 } NR>1 { sum+=$3; count++ } END { printf \"%.2f\\n\", sum/count }' input.csv\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''\nawk: 2: unexpected character '''"}
|
| 10 |
+
{"id":"awkweave-frozen-0010","request":"Count products whose stock field is zero in this simple CSV with a header.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]==0{n++}END{print n+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"1\n","family":"inventory_out_of_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'NR>1 && $4==0 {print $1}' input.csv\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 11 |
+
{"id":"awkweave-frozen-0011","request":"Print each category and its total inventory value (price times stock) to two decimals, in first-appearance order.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"category\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"price\"]*$h[\"stock\"]}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"book 97.50\ntool 30.00\ngame 30.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"game 56.00\nbook 0.00\ntool 75.00\n","family":"inventory_category_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nBEGIN {\n FS = \",\"\n print \"Category\\tTotal Inventory Value\"\n}\n\n{\n if (!seen[$2]) {\n seen[$2] = 1\n total_value += $3 * $4\n }\n}\n\nEND {\n printf \"%.2f\\n\", total_value\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 17: unexpected character '`'"}
|
| 12 |
+
{"id":"awkweave-frozen-0012","request":"Skip the CSV header and print the complete product with the highest price, keeping the earliest on ties.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}NR==2{best=$h[\"price\"];record=$0}$h[\"price\"]>best{best=$h[\"price\"];record=$0}END{print record}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"E5,game,30.00,1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"H8,tool,25.00,3\n","family":"inventory_highest_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'NR>1 {if ($3 > maxPrice) {maxPrice=$3; maxProduct=$0}} END {print maxProduct}' input.csv\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 13 |
+
{"id":"awkweave-frozen-0013","request":"Count syslog lines containing the exact word Failed.","program":"$0 ~ /Failed/{n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"1\n","family":"syslog_failed_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '/Failed/ {count++} END {print count}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 14 |
+
{"id":"awkweave-frozen-0014","request":"Print hostnames (field 4) for records whose process field begins with sshd.","program":"$5 ~ /^sshd/{print $4}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"web01\nweb01\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"api01\napi01\n","family":"syslog_sshd_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '$4 ~ /^sshd/ {print $4}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 15 |
+
{"id":"awkweave-frozen-0015","request":"Print complete syslog records containing error in any letter case.","program":"tolower($0) ~ /error/","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:03 cache01 redis[104]: Error allocating buffer\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","family":"syslog_error_casefold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '/error/i'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'"}
|
| 16 |
+
{"id":"awkweave-frozen-0016","request":"Extract the process name before [ in field 5 and count records per process in first-appearance order.","program":"{split($5,p,\"[\");if(!(p[1] in counts))order[++n]=p[1];counts[p[1]]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"sshd 2\ncron 2\nredis 1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"sshd 2\ncron 1\nnginx 1\n","family":"syslog_process_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $5}' | sort -u | awk '{count[$5]++} END {for (process in count) print process, count[process]}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''\nawk: 2: unexpected character '''"}
|
| 17 |
+
{"id":"awkweave-frozen-0017","request":"For cron records, print month, day, and time (the first three fields).","program":"$5 ~ /^cron/{print $1,$2,$3}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:01\nDec 01 10:00:04\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:02\n","family":"syslog_cron_timestamp","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1, $2, $3}'\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 18 |
+
{"id":"awkweave-frozen-0018","request":"Count distinct hostnames in field 4 of the syslog input.","program":"{if(!seen[$4]++)n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"3\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"2\n","family":"syslog_unique_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $4}' | sort -u | wc -l\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 19 |
+
{"id":"awkweave-frozen-0019","request":"In colon-delimited group data, print group names containing alice as a comma-separated member of field 4.","program":"BEGIN{FS=\":\"}{split($4,members,\",\");for(i in members)if(members[i]==\"alice\")print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel\ndevelopers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"","family":"group_membership","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk -F: '$4 ~ /alice/ {print $1}' <<< \"$sample_input\"\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 20 |
+
{"id":"awkweave-frozen-0020","request":"For each colon-delimited group, print its name and number of members; an empty fourth field means zero.","program":"BEGIN{FS=\":\"}{n=split($4,members,\",\");if($4==\"\")n=0;print $1,n}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel 2\ndevelopers 3\naudio 0\nusers 2\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"admins 1\ndevelopers 2\nvideo 3\n","family":"group_member_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\":\"} {print $1, length($4)}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 21 |
+
{"id":"awkweave-frozen-0021","request":"Print names of colon-delimited groups with numeric GID at least 1000.","program":"BEGIN{FS=\":\"}$3>=1000{print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"developers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"developers\n","family":"group_gid_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk -F: '$3 >= 1000 {print $1}' <<< \"$sample_input\"\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 22 |
+
{"id":"awkweave-frozen-0022","request":"For each device in column 1, print its average reading from column 3 to two decimals in first-appearance order.","program":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$3;counts[$1]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 21.25\ns2 46.25\ns3 101.20\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.75\ns5 52.00\ns6 100.80\n","family":"sensor_device_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{if (!seen[$1]) {avg=0; count=0; seen[$1]=1} avg+=$3; count++} END {for (i in seen) printf \"%s %.2f\\n\", i, avg/count}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 23 |
+
{"id":"awkweave-frozen-0023","request":"Print complete readings with value in column 3 greater than 45.","program":"$3>45","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sensor_threshold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '$3 > 45' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'"}
|
| 24 |
+
{"id":"awkweave-frozen-0024","request":"For each metric in column 2, print its maximum value from column 3 in first-appearance order.","program":"{if(!($2 in seen)){order[++n]=$2;seen[$2]=1;max[$2]=$3}if($3>max[$2])max[$2]=$3}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"temperature 22.0\nhumidity 47.5\npressure 101.2\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"temperature 19.5\nhumidity 52.0\npressure 100.8\n","family":"sensor_metric_max","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{if ($2 == prev) max = max > $3 ? max : $3; else {print prev \" \" max; prev = $2; max = $3}} END {print prev \" \" max}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 25 |
+
{"id":"awkweave-frozen-0025","request":"Count distinct device identifiers in column 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"3\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"3\n","family":"sensor_device_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1}' | sort -u | wc -l\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 26 |
+
{"id":"awkweave-frozen-0026","request":"Print device and value for readings whose unit in column 4 is C.","program":"$4==\"C\"{print $1,$3}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.5\ns1 22.0\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.0\ns4 19.5\n","family":"sensor_unit_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '$4 == \"C\" {print $1, $2}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 27 |
+
{"id":"awkweave-frozen-0027","request":"Convert tab-separated rows to comma-separated rows while preserving all fields.","program":"BEGIN{FS=\"\\t\";OFS=\",\"}{$1=$1;print}","input_text":"a\t1\tx\nb\t2\ty\n","expected_output":"a,1,x\nb,2,y\n","validation_input":"c\t3\tz\nd\t4\tw\n","validation_output":"c,3,z\nd,4,w\n","family":"tsv_to_csv","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1 \",\" $2 \",\" $3}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 28 |
+
{"id":"awkweave-frozen-0028","request":"For each record, print column 1 and the running mean of column 3 to two decimals.","program":"{s+=$3;n++;printf \"%s %.2f\\n\",$1,s/n}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.50\ns2 32.75\ns1 29.17\ns3 47.17\ns2 47.24\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.00\ns4 18.75\ns5 29.83\ns6 47.58\n","family":"running_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{sum += $3; count++} END {print $1, sum/count}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 29 |
+
{"id":"awkweave-frozen-0029","request":"Print the median of column 3; for an even number of records use the lower middle value.","program":"{v[NR]=$3+0}END{for(i=2;i<=NR;i++){x=v[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];j--}v[j+1]=x}print v[int((NR+1)/2)]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"45\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"19.5\n","family":"median_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\" \"}; NR%2==0 {print $3} else {print ($3+$4)/2}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: line 2: syntax error at or near else\nawk: 2: unexpected character '''"}
|
| 30 |
+
{"id":"awkweave-frozen-0030","request":"Remove blank lines and lines whose first non-whitespace character is #.","program":"$0 ~ /[^[:space:]]/ && $0 !~ /^[[:space:]]*#/","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"a 1\nb 2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"c 3\nd 4\n","family":"comment_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '!/^#/ && NF' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'"}
|
| 31 |
+
{"id":"awkweave-frozen-0031","request":"Count lines whose first non-whitespace character is #, excluding blank lines.","program":"$0 ~ /^[[:space:]]*#/{n++}END{print n+0}","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"1\n","family":"comment_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '/^#/ && !/^$/ {print NR}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 32 |
+
{"id":"awkweave-frozen-0032","request":"Trim leading and trailing whitespace from each line without altering internal spacing.","program":"{gsub(/^[[:space:]]+|[[:space:]]+$/,\"\",$0);print}","input_text":" a 1 \n\tb 2\t\n","expected_output":"a 1\nb 2\n","validation_input":" c 3 \n d 4 \n","validation_output":"c 3\nd 4\n","family":"trim_lines","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{gsub(/^\\s+|\\s+$/, \"\"); print}' <<< \" a 1 \\n b 2\"\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 33 |
+
{"id":"awkweave-frozen-0033","request":"For ISO timestamps in field 1, print year, month, and day separated by hyphens.","program":"BEGIN{OFS=\"-\"}{split($1,date,\"-\");split(date[3],parts,\"T\");print date[1],date[2],parts[1]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","family":"iso_date_parts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{print $1 | \"date -d \\\"\"$1\"\\\" +%Y-%m-%d\"}'\n```","valid":false,"correct":false,"error":"Output redirection and pipes are not allowed."}
|
| 34 |
+
{"id":"awkweave-frozen-0034","request":"Print complete records sorted by column 3 ascending, preserving input order on ties.","program":"{v[NR]=$3+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=NR;i++)print line[i]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns1 temperature 22.0 C\ns2 humidity 45.0 percent\ns2 humidity 47.5 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sort_numeric_ascending","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nBEGIN {\n FS = \" \"\n}\nNR > 1 {\n arr[NR] = $0\n}\nEND {\n for (i in arr) {\n print arr[i]\n }\n asort(arr)\n for (i in arr) {\n print arr[i]\n }\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 17: unexpected character '`'"}
|
| 35 |
+
{"id":"awkweave-frozen-0035","request":"Sum column 3 only for temperature records, printing 0 when no such records exist.","program":"$2==\"temperature\"{s+=$3}END{print s+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"42.5\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"37.5\n","family":"sum_if_metric","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nBEGIN {\n sum = 0;\n}\n{\n if ($1 == \"temperature\") {\n sum += $3;\n }\n}\nEND {\n print sum ? sum : 0;\n}\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 13: unexpected character '`'"}
|
| 36 |
+
{"id":"awkweave-frozen-0036","request":"Print only the first complete record for each device in column 1.","program":"!seen[$1]++","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"first_record_per_device","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk '{if (NR==1 || $1!=prev_device) print; prev_device=$1}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
| 37 |
+
{"id":"awkweave-frozen-0037","request":"Count records per unit in column 4 in first-appearance order.","program":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"C 2\npercent 2\nkPa 1\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"C 2\npercent 1\nkPa 1\n","family":"count_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"```\nawk 'BEGIN {FS=\" \"}; {if (NR==1) print $4; else if ($4!=prev) print $4} {prev=$4}' input.txt\n```","valid":false,"correct":false,"error":"awk: 1: unexpected character '`'\nawk: 2: unexpected character '''"}
|
evaluation/v2-base-frozen.summary.json
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen2.5-Coder-1.5B-Instruct",
|
| 3 |
+
"split": "frozen_test",
|
| 4 |
+
"rows": 37,
|
| 5 |
+
"valid_at_1": 0.0,
|
| 6 |
+
"correct_at_1": 0.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 12.290115594863892,
|
| 10 |
+
"data_sha256": "48db6edd11b564732f70711f894745b87c756f4eb8c20922fb18466b80771867",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"comment_count": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 0,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"comment_filter": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 0,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"count_units": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 0,
|
| 27 |
+
"correct": 0
|
| 28 |
+
},
|
| 29 |
+
"first_record_per_device": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 0,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"flow_bytes_total": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 0,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"flow_destination_count": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 0,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"flow_protocol_bytes": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 0,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"flow_tcp_count": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 0,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"flow_top_sources": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 0,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"flow_udp_average": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"group_gid_filter": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 0,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_member_counts": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 0,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"group_membership": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 0,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"inventory_average_price": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 0,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"inventory_category_value": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 0,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"inventory_highest_price": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 0,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"inventory_low_stock": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 0,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"inventory_out_of_stock": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 0,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"inventory_units": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 0,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"iso_date_parts": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 0,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"median_value": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"running_average": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 0,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"sensor_device_average": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 0,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"sensor_device_count": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 0,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"sensor_metric_max": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 0,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"sensor_threshold": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 0,
|
| 142 |
+
"correct": 0
|
| 143 |
+
},
|
| 144 |
+
"sensor_unit_filter": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 0,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"sort_numeric_ascending": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 0,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"sum_if_metric": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 0,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"syslog_cron_timestamp": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 0,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"syslog_error_casefold": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"syslog_failed_count": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 0,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"syslog_process_counts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 0,
|
| 177 |
+
"correct": 0
|
| 178 |
+
},
|
| 179 |
+
"syslog_sshd_hosts": {
|
| 180 |
+
"rows": 1,
|
| 181 |
+
"valid": 0,
|
| 182 |
+
"correct": 0
|
| 183 |
+
},
|
| 184 |
+
"syslog_unique_hosts": {
|
| 185 |
+
"rows": 1,
|
| 186 |
+
"valid": 0,
|
| 187 |
+
"correct": 0
|
| 188 |
+
},
|
| 189 |
+
"trim_lines": {
|
| 190 |
+
"rows": 1,
|
| 191 |
+
"valid": 0,
|
| 192 |
+
"correct": 0
|
| 193 |
+
},
|
| 194 |
+
"tsv_to_csv": {
|
| 195 |
+
"rows": 1,
|
| 196 |
+
"valid": 0,
|
| 197 |
+
"correct": 0
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
}
|
evaluation/v2-base-test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/v2-base-test.summary.json
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "Qwen/Qwen2.5-Coder-1.5B-Instruct",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"rows": 3000,
|
| 5 |
+
"valid_at_1": 0.0,
|
| 6 |
+
"correct_at_1": 0.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 316.782217502594,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"average_field": {
|
| 15 |
+
"rows": 77,
|
| 16 |
+
"valid": 0,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"computed_field": {
|
| 20 |
+
"rows": 77,
|
| 21 |
+
"valid": 0,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"conditional_label": {
|
| 25 |
+
"rows": 77,
|
| 26 |
+
"valid": 0,
|
| 27 |
+
"correct": 0
|
| 28 |
+
},
|
| 29 |
+
"count_by_key": {
|
| 30 |
+
"rows": 77,
|
| 31 |
+
"valid": 0,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"count_matches": {
|
| 35 |
+
"rows": 77,
|
| 36 |
+
"valid": 0,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"count_records": {
|
| 40 |
+
"rows": 77,
|
| 41 |
+
"valid": 0,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"csv_filter": {
|
| 45 |
+
"rows": 77,
|
| 46 |
+
"valid": 0,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"dedup_field": {
|
| 50 |
+
"rows": 78,
|
| 51 |
+
"valid": 0,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"dedup_lines": {
|
| 55 |
+
"rows": 77,
|
| 56 |
+
"valid": 0,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"distinct_count": {
|
| 60 |
+
"rows": 76,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"duplicates_only": {
|
| 65 |
+
"rows": 77,
|
| 66 |
+
"valid": 0,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"every_nth": {
|
| 70 |
+
"rows": 76,
|
| 71 |
+
"valid": 0,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"exclude_regex": {
|
| 75 |
+
"rows": 77,
|
| 76 |
+
"valid": 0,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"field_count": {
|
| 80 |
+
"rows": 77,
|
| 81 |
+
"valid": 0,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"first_n": {
|
| 85 |
+
"rows": 77,
|
| 86 |
+
"valid": 0,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"header_filter": {
|
| 90 |
+
"rows": 77,
|
| 91 |
+
"valid": 0,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"header_projection": {
|
| 95 |
+
"rows": 77,
|
| 96 |
+
"valid": 0,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"last_field": {
|
| 100 |
+
"rows": 77,
|
| 101 |
+
"valid": 0,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"line_range": {
|
| 105 |
+
"rows": 77,
|
| 106 |
+
"valid": 0,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"longest_line": {
|
| 110 |
+
"rows": 77,
|
| 111 |
+
"valid": 0,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"max_field": {
|
| 115 |
+
"rows": 77,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"min_field": {
|
| 120 |
+
"rows": 77,
|
| 121 |
+
"valid": 0,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"normalize_whitespace": {
|
| 125 |
+
"rows": 77,
|
| 126 |
+
"valid": 0,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"numeric_filter": {
|
| 130 |
+
"rows": 77,
|
| 131 |
+
"valid": 0,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"numeric_range": {
|
| 135 |
+
"rows": 77,
|
| 136 |
+
"valid": 0,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"project_fields": {
|
| 140 |
+
"rows": 77,
|
| 141 |
+
"valid": 0,
|
| 142 |
+
"correct": 0
|
| 143 |
+
},
|
| 144 |
+
"ratio": {
|
| 145 |
+
"rows": 76,
|
| 146 |
+
"valid": 0,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"regex_filter": {
|
| 150 |
+
"rows": 77,
|
| 151 |
+
"valid": 0,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"replace_underscores": {
|
| 155 |
+
"rows": 77,
|
| 156 |
+
"valid": 0,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"reverse_fields": {
|
| 160 |
+
"rows": 77,
|
| 161 |
+
"valid": 0,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"running_total": {
|
| 165 |
+
"rows": 77,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"skip_header": {
|
| 170 |
+
"rows": 77,
|
| 171 |
+
"valid": 0,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"string_filter": {
|
| 175 |
+
"rows": 77,
|
| 176 |
+
"valid": 0,
|
| 177 |
+
"correct": 0
|
| 178 |
+
},
|
| 179 |
+
"substring": {
|
| 180 |
+
"rows": 77,
|
| 181 |
+
"valid": 0,
|
| 182 |
+
"correct": 0
|
| 183 |
+
},
|
| 184 |
+
"sum_by_key": {
|
| 185 |
+
"rows": 77,
|
| 186 |
+
"valid": 0,
|
| 187 |
+
"correct": 0
|
| 188 |
+
},
|
| 189 |
+
"sum_field": {
|
| 190 |
+
"rows": 77,
|
| 191 |
+
"valid": 0,
|
| 192 |
+
"correct": 0
|
| 193 |
+
},
|
| 194 |
+
"top_three": {
|
| 195 |
+
"rows": 76,
|
| 196 |
+
"valid": 0,
|
| 197 |
+
"correct": 0
|
| 198 |
+
},
|
| 199 |
+
"tsv_projection": {
|
| 200 |
+
"rows": 77,
|
| 201 |
+
"valid": 0,
|
| 202 |
+
"correct": 0
|
| 203 |
+
},
|
| 204 |
+
"uppercase": {
|
| 205 |
+
"rows": 77,
|
| 206 |
+
"valid": 0,
|
| 207 |
+
"correct": 0
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
}
|
evaluation/v2-challenge.jsonl
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-challenge-0001","request":"Count server-error responses with HTTP status from 500 through 599; print 0 when none occur.","program":"$9 >= 500 && $9 < 600{n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"1\n","family":"http_5xx_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$9>=500&&$9<=599{n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 2 |
+
{"id":"awkweave-challenge-0002","request":"What is the total number of response bytes? Sum the final field and print one integer.","program":"{bytes+=$NF}END{print bytes+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"992\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"129\n","family":"http_bytes_sum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$NF}END{print s+0}","valid":true,"correct":true,"error":null}
|
| 3 |
+
{"id":"awkweave-challenge-0003","request":"Count distinct client IP addresses, which appear in field 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"4\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"3\n","family":"http_unique_clients","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$1]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 4 |
+
{"id":"awkweave-challenge-0004","request":"Print the request path (field 7) for API routes with a 500 response.","program":"$7 ~ /^\\/api\\// && $9 == 500{print $7}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/api/orders\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"","family":"http_api_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$9==500{print $7}","valid":true,"correct":true,"error":null}
|
| 5 |
+
{"id":"awkweave-challenge-0005","request":"For responses with status 200 only, print the average number of bytes to two decimal places.","program":"$9==200{bytes+=$10;n++}END{printf \"%.2f\\n\",bytes/n}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"384.00\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"15.00\n","family":"http_success_bytes","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$9==200{s+=$10;n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":true,"error":null}
|
| 6 |
+
{"id":"awkweave-challenge-0006","request":"Print complete request records for methods other than GET.","program":"$6 !~ /^\"GET$/{print $0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n","family":"http_non_get","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$6 != \"GET\"{print}","valid":true,"correct":false,"error":null}
|
| 7 |
+
{"id":"awkweave-challenge-0007","request":"Count each request path from field 7 and print path then count in first-appearance order.","program":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/index.html 2\n/api/orders 2\n/missing 1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"/health 2\n/api/items 2\n","family":"http_url_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 8 |
+
{"id":"awkweave-challenge-0008","request":"Use the header to find the region and amount columns. Print total paid amount per region in first-appearance order.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"paid\"{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 20\nnorth 10\nwest 5\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 8\neast 14\nwest 22\n","family":"header_region_totals","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 9 |
+
{"id":"awkweave-challenge-0009","request":"The first line is a header. Print order_id values for pending orders only.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r103\n","family":"header_pending_ids","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","valid":true,"correct":true,"error":null}
|
| 10 |
+
{"id":"awkweave-challenge-0010","request":"Read the amount column by its header name and print its mean over all data rows to two decimal places.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"amount\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"11.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"12.50\n","family":"header_amount_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"amount\"];n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":true,"error":null}
|
| 11 |
+
{"id":"awkweave-challenge-0011","request":"The first row is a header. Print the two complete orders with the largest amounts, highest first. Keep file order for ties.","program":"NR==1{next}{n++;v[n]=$3+0;line[n]=$0}END{for(i=2;i<=n;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=n;i++)print line[i]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002 west 20.00 pending\nr001 east 12.50 paid\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r104 west 22.00 paid\nr102 east 14.00 paid\n","family":"top_two_amounts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{n++;v[n]=$h[\"order_id\"]+0;line[n]=$0}END{for(i=2;i<=n;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}print line[1],line[2]}","valid":true,"correct":false,"error":null}
|
| 12 |
+
{"id":"awkweave-challenge-0012","request":"The first row is a header. Print each region and its average order amount to two decimals, grouping in first-appearance order and including every status.","program":"NR==1{next}{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3;counts[$2]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 10.00\nwest 12.50\nnorth 10.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 7.00\neast 14.00\nwest 22.00\n","family":"region_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"];counts[key]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 13 |
+
{"id":"awkweave-challenge-0013","request":"The first row is a header. For every order, print order_id and its amount as a percentage of the grand total, with two decimals and a percent sign.","program":"NR==1{next}{n++;id[n]=$1;v[n]=$3;total+=$3}END{for(i=1;i<=n;i++)printf \"%s %.2f%%\\n\",id[i],100*v[i]/total}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r001 22.73%\nr002 36.36%\nr003 13.64%\nr004 18.18%\nr005 9.09%\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r101 16.00%\nr102 28.00%\nr103 12.00%\nr104 44.00%\n","family":"amount_percentage","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{n++;id[n]=$h[\"order_id\"];v[n]=$h[\"amount\"];total+=$h[\"amount\"]}END{for(i=1;i<=n;i++)printf \"%s %.2f%%\\n\",id[i],100*v[i]/total}","valid":true,"correct":true,"error":null}
|
| 14 |
+
{"id":"awkweave-challenge-0014","request":"This is colon-delimited passwd data. Print usernames whose login shell is /bin/bash.","program":"BEGIN{FS=\":\"}$7==\"/bin/bash\"{print $1}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"root\nalice\nchen\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"root\neli\n","family":"passwd_shell","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}$7==\"/bin/bash\"{print $1}","valid":true,"correct":true,"error":null}
|
| 15 |
+
{"id":"awkweave-challenge-0015","request":"Using colon separators, print username and UID for accounts with UID at least 1000 and below 1002.","program":"BEGIN{FS=\":\";OFS=\":\"}$3>=1000&&$3<1002{print $1,$3}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"alice:1000\nbruno:1001\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"dina:1000\neli:1001\n","family":"passwd_uid_range","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\";OFS=\":\"}$3>=1000&&$3<1002{print $1,$3}","valid":true,"correct":true,"error":null}
|
| 16 |
+
{"id":"awkweave-challenge-0016","request":"For colon-delimited passwd records, count users per login shell in order of first appearance.","program":"BEGIN{FS=\":\"}{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"/bin/bash 3\n/usr/sbin/nologin 1\n/bin/zsh 1\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"/bin/bash 2\n/bin/sh 1\n","family":"passwd_shell_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 17 |
+
{"id":"awkweave-challenge-0017","request":"Extract the service value from each record whose level value is error, ignoring level letter case.","program":"{service=\"\";level=\"\";for(i=1;i<=NF;i++){split($i,parts,\"=\");if(parts[1]==\"service\")service=parts[2];if(parts[1]==\"level\")level=tolower(parts[2])}if(level==\"error\")print service}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"db\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"api\nworker\n","family":"keyvalue_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{service=\"\";level=\"\";for(i=1;i<=NF;i++){split($i,p,\"=\");if(p[1]==\"service\")service=p[2];if(p[1]==\"level\")level=tolower(p[2])}if(level==\"error\")print service}","valid":true,"correct":true,"error":null}
|
| 18 |
+
{"id":"awkweave-challenge-0018","request":"Print timestamps with latency above 20. The timestamp is field 1 and latency is stored as latency=N in the final field.","program":"{split($NF,parts,\"=\");if(parts[2]+0>20)print $1}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z\n2026-11-28T09:03:00Z\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"2026-11-28T12:00:00Z\n2026-11-28T12:02:00Z\n","family":"keyvalue_latency","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{for(i=1;i<=NF;i++){split($i,p,\"=\");if(p[1]==\"latency\")latency=p[2];next}{print $1,latitude+0>20?$1:\"\"}","valid":false,"correct":false,"error":"awk: line 2: missing } near end of file"}
|
| 19 |
+
{"id":"awkweave-challenge-0019","request":"Print only events with timestamps from 2026-11-28T09:01:00Z through 2026-11-28T09:02:00Z inclusive.","program":"$1>=\"2026-11-28T09:01:00Z\"&&$1<=\"2026-11-28T09:02:00Z\"","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"","family":"event_window","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$1 >= \"2026-11-28T09:01:00Z\" && $1 <= \"2026-11-28T09:02:00Z\"","valid":true,"correct":true,"error":null}
|
| 20 |
+
{"id":"awkweave-challenge-0020","request":"For each row after the first, print the group name and the change in column 2 from the previous row; for the first row print 0 as the change.","program":"{delta=$2-previous;if(NR==1)delta=0;print $1,delta;previous=$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 0\nbeta 10\nalpha 10\ngamma -25\nbeta 10\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 0\nred 4\nblue -5\ngreen 13\nblue -11\n","family":"running_delta","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{change=$2-previous;if(NR==1)change=0;print $1,change;previous=$2}","valid":true,"correct":true,"error":null}
|
| 21 |
+
{"id":"awkweave-challenge-0021","request":"For each group in column 1, print its largest value from column 2 in first-appearance order.","program":"{if(!($1 in max)||$2>max[$1])max[$1]=$2;if(!($1 in seen)){order[++n]=$1;seen[$1]=1}}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 30\nbeta 20\ngamma 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 12\nblue 9\ngreen 20\n","family":"group_maximum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in seen)){order[++n]=$1;seen[$1]=1;largest[$1]=$2}if($2>largest[$1])largest[$1]=$2}END{for(i=1;i<=n;i++)print order[i],largest[order[i]]}","valid":true,"correct":true,"error":null}
|
| 22 |
+
{"id":"awkweave-challenge-0022","request":"Print each group from column 1 with its first and last value from column 2, in first-appearance order.","program":"{if(!($1 in first)){first[$1]=$2;order[++n]=$1}last[$1]=$2}END{for(i=1;i<=n;i++)print order[i],first[order[i]],last[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 30\nbeta 20 15\ngamma 5 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 12\nblue 7 9\ngreen 20 20\n","family":"first_last_group","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in seen)){order[++n]=$1;first[$1]=$2;last[$1]=$2}last[$1]=$2}END{for(i=1;i<=n;i++)print order[i],first[order[i]],last[order[i]]}","valid":true,"correct":false,"error":null}
|
| 23 |
+
{"id":"awkweave-challenge-0023","request":"Print group and the ratio of column 3 to column 2 as a percentage with one decimal; skip zero denominators.","program":"$2!=0{printf \"%s %.1f%%\\n\",$1,100*$3/$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 40.0%\nbeta 0.0%\nalpha 26.7%\ngamma 40.0%\nbeta 20.0%\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 25.0%\nred 33.3%\nblue 0.0%\ngreen 25.0%\nblue 33.3%\n","family":"positive_ratio","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$2!=0{printf \"%s %.1f%%\\n\",$1,100*$3/$2}","valid":true,"correct":true,"error":null}
|
| 24 |
+
{"id":"awkweave-challenge-0024","request":"Print every row with column 2 clamped to the inclusive range 8 through 18; leave other fields unchanged.","program":"{if($2<8)$2=8;else if($2>18)$2=18;print}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 18 0\nalpha 18 8\ngamma 8 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nred 12 4\nblue 8 0\ngreen 18 5\nblue 9 3\n","family":"clamp_values","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$2 >= 8 && $2 <= 18{print}","valid":true,"correct":false,"error":null}
|
| 25 |
+
{"id":"awkweave-challenge-0025","request":"Suppress only consecutive duplicate group names in column 1, printing one complete row per run.","program":"$1!=previous{print}{previous=$1}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nblue 7 0\ngreen 20 5\nblue 9 3\n","family":"consecutive_dedup","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$1!=previous{print}{previous=$1}","valid":true,"correct":true,"error":null}
|
| 26 |
+
{"id":"awkweave-challenge-0026","request":"Remove blank and whitespace-only lines, leaving all other lines unchanged.","program":"$0 ~ /[^[:space:]]/","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"alpha 1\nbeta 2\nalpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"red 4\nblue 5\n","family":"blank_filter","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /[^[:space:]]/","valid":true,"correct":true,"error":null}
|
| 27 |
+
{"id":"awkweave-challenge-0027","request":"Count blank or whitespace-only lines and print the count.","program":"$0 !~ /[^[:space:]]/{n++}END{print n+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"2\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"2\n","family":"blank_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$0 !~ /[^[:space:]]/{n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 28 |
+
{"id":"awkweave-challenge-0028","request":"Prefix each non-empty line with its original line number, a colon, and one space.","program":"$0 ~ /[^[:space:]]/{print NR \": \" $0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"1: alpha 1\n3: beta 2\n5: alpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"1: red 4\n4: blue 5\n","family":"line_numbers","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /[^[:space:]]/{print NR \": \" $0}","valid":true,"correct":true,"error":null}
|
| 29 |
+
{"id":"awkweave-challenge-0029","request":"Print the total number of characters in the input, excluding newline characters.","program":"{total+=length($0)}END{print total+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"23\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"11\n","family":"character_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{n+=length($0)}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 30 |
+
{"id":"awkweave-challenge-0030","request":"Convert simple comma-separated rows to tab-separated rows, preserving every field in order.","program":"BEGIN{FS=\",\";OFS=\"\\t\"}{$1=$1;print}","input_text":"a,1,x\nb,2,y\n","expected_output":"a\t1\tx\nb\t2\ty\n","validation_input":"c,3,z\nd,4,w\n","validation_output":"c\t3\tz\nd\t4\tw\n","family":"comma_to_tab","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\",\";OFS=\"\\t\"}{$1=$1;print}","valid":true,"correct":true,"error":null}
|
| 31 |
+
{"id":"awkweave-challenge-0031","request":"Print column 1 right-aligned in a width of 8, followed by column 2 with no extra separator beyond the padding.","program":"{printf \"%8s%s\\n\",$1,$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":" alpha10\n beta20\n alpha30\n gamma5\n beta15\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":" red8\n red12\n blue7\n green20\n blue9\n","family":"fixed_width","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{printf \"%8s%2d\\n\",$1,$2}","valid":true,"correct":false,"error":null}
|
| 32 |
+
{"id":"awkweave-challenge-0032","request":"For every record, print group and the absolute difference between columns 2 and 3.","program":"{difference=$2-$3;if(difference<0)difference=-difference;print $1,difference}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 6\nbeta 20\nalpha 22\ngamma 3\nbeta 12\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 6\nred 8\nblue 7\ngreen 15\nblue 6\n","family":"absolute_difference","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{d=$2-$3;if(d<0)d=-d;print $1,d}","valid":true,"correct":true,"error":null}
|
| 33 |
+
{"id":"awkweave-challenge-0033","request":"Print each distinct word from column 1 once, sorted in ascending lexical order.","program":"{seen[$1]=1}END{for(word in seen){value[++n]=word}for(i=2;i<=n;i++){x=value[i];j=i-1;while(j>=1&&value[j]>x){value[j+1]=value[j];j--}value[j+1]=x}for(i=1;i<=n;i++)print value[i]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha\nbeta\ngamma\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"blue\ngreen\nred\n","family":"sorted_unique_words","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{seen[$1]=1}END{for(word in seen){value[++n]=word}for(i=2;i<=n;i++){x=value[i];j=i-1;while(j>=1&&value[j]>x){value[j+1]=value[j];j--}value[j+1]=x}for(i=1;i<=n;i++)print value[i]}","valid":true,"correct":true,"error":null}
|
evaluation/v2-challenge.summary.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/611bcf57-d883-4bab-8e1b-6fbcb2235e76/v2-training/model",
|
| 3 |
+
"split": "challenge",
|
| 4 |
+
"rows": 33,
|
| 5 |
+
"valid_at_1": 0.9696969696969697,
|
| 6 |
+
"correct_at_1": 0.7878787878787878,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 14.969119310379028,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"absolute_difference": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 1,
|
| 17 |
+
"correct": 1
|
| 18 |
+
},
|
| 19 |
+
"amount_percentage": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 1,
|
| 22 |
+
"correct": 1
|
| 23 |
+
},
|
| 24 |
+
"blank_count": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 1,
|
| 27 |
+
"correct": 1
|
| 28 |
+
},
|
| 29 |
+
"blank_filter": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 1,
|
| 32 |
+
"correct": 1
|
| 33 |
+
},
|
| 34 |
+
"character_count": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 1,
|
| 37 |
+
"correct": 1
|
| 38 |
+
},
|
| 39 |
+
"clamp_values": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 1,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"comma_to_tab": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 1,
|
| 47 |
+
"correct": 1
|
| 48 |
+
},
|
| 49 |
+
"consecutive_dedup": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 1,
|
| 52 |
+
"correct": 1
|
| 53 |
+
},
|
| 54 |
+
"event_window": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 1,
|
| 57 |
+
"correct": 1
|
| 58 |
+
},
|
| 59 |
+
"first_last_group": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 1,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"fixed_width": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 1,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_maximum": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 1,
|
| 72 |
+
"correct": 1
|
| 73 |
+
},
|
| 74 |
+
"header_amount_average": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 1,
|
| 77 |
+
"correct": 1
|
| 78 |
+
},
|
| 79 |
+
"header_pending_ids": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 1,
|
| 82 |
+
"correct": 1
|
| 83 |
+
},
|
| 84 |
+
"header_region_totals": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 1,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"http_5xx_count": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 1,
|
| 92 |
+
"correct": 1
|
| 93 |
+
},
|
| 94 |
+
"http_api_errors": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 1,
|
| 97 |
+
"correct": 1
|
| 98 |
+
},
|
| 99 |
+
"http_bytes_sum": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 1,
|
| 102 |
+
"correct": 1
|
| 103 |
+
},
|
| 104 |
+
"http_non_get": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 1,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"http_success_bytes": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 1,
|
| 112 |
+
"correct": 1
|
| 113 |
+
},
|
| 114 |
+
"http_unique_clients": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 1,
|
| 117 |
+
"correct": 1
|
| 118 |
+
},
|
| 119 |
+
"http_url_counts": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 1,
|
| 122 |
+
"correct": 1
|
| 123 |
+
},
|
| 124 |
+
"keyvalue_errors": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 1,
|
| 127 |
+
"correct": 1
|
| 128 |
+
},
|
| 129 |
+
"keyvalue_latency": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 0,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"line_numbers": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 1,
|
| 137 |
+
"correct": 1
|
| 138 |
+
},
|
| 139 |
+
"passwd_shell": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 1,
|
| 142 |
+
"correct": 1
|
| 143 |
+
},
|
| 144 |
+
"passwd_shell_counts": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 1,
|
| 147 |
+
"correct": 1
|
| 148 |
+
},
|
| 149 |
+
"passwd_uid_range": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 1,
|
| 152 |
+
"correct": 1
|
| 153 |
+
},
|
| 154 |
+
"positive_ratio": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 1,
|
| 157 |
+
"correct": 1
|
| 158 |
+
},
|
| 159 |
+
"region_average": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 1,
|
| 162 |
+
"correct": 1
|
| 163 |
+
},
|
| 164 |
+
"running_delta": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 1,
|
| 167 |
+
"correct": 1
|
| 168 |
+
},
|
| 169 |
+
"sorted_unique_words": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 1,
|
| 172 |
+
"correct": 1
|
| 173 |
+
},
|
| 174 |
+
"top_two_amounts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 1,
|
| 177 |
+
"correct": 0
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
}
|
evaluation/v2-frozen.jsonl
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-frozen-0001","request":"Using pipe delimiters, count TCP flows and print 0 when none exist.","program":"BEGIN{FS=\"|\"}$4==\"TCP\"{n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3\n","family":"flow_tcp_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$7== \"TCP\"{n++}END{print n+0}","valid":true,"correct":false,"error":null}
|
| 2 |
+
{"id":"awkweave-frozen-0002","request":"Sum bytes in field 6 of these pipe-delimited flows.","program":"BEGIN{FS=\"|\"}{s+=$6}END{print s+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"3234\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2030\n","family":"flow_bytes_total","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$6}END{print s+0}","valid":true,"correct":false,"error":null}
|
| 3 |
+
{"id":"awkweave-frozen-0003","request":"For pipe-delimited flows, total bytes per protocol in first-appearance order.","program":"BEGIN{FS=\"|\"}{if(!($4 in sums))order[++n]=$4;sums[$4]+=$6}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"TCP 2300\nUDP 870\nICMP 64\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"TCP 1850\nUDP 180\n","family":"flow_protocol_bytes","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\"|\"}{if(!($10 in sums))order[++n]=$10;sums[$10]+=$11}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 4 |
+
{"id":"awkweave-frozen-0004","request":"For UDP flows, print average packets to two decimals. Fields are pipe-delimited.","program":"BEGIN{FS=\"|\"}$4==\"UDP\"{s+=$5;n++}END{printf \"%.2f\\n\",s/n}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"5.50\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3.00\n","family":"flow_udp_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$7==\\\"UDP\"{s+=$NF;n++}END{printf \"%.2f\\n\",s/n}","valid":false,"correct":false,"error":"awk: 1: unexpected character '\\'"}
|
| 5 |
+
{"id":"awkweave-frozen-0005","request":"Count distinct destination IPs in field 3 of this pipe-delimited data.","program":"BEGIN{FS=\"|\"}{if(!seen[$3]++)n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"4\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"4\n","family":"flow_destination_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$3]++)n++}END{print n+0}","valid":true,"correct":false,"error":null}
|
| 6 |
+
{"id":"awkweave-frozen-0006","request":"Print the two complete flows with the most bytes, highest first and stable on ties.","program":"BEGIN{FS=\"|\"}{v[NR]=$6+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=NR;i++)print line[i]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n","family":"flow_top_sources","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$5}END{for(i=2;i<=n;i++){v=sums[order[i]];x=order[i];j=i-1;while(j>=1&&sums[order[j]]>v){sums[order[j+1]]=sums[order[j]];order[j+1]=order[j];j--}sums[order[j+1]]=v;order[j+1]=x}for(i=1;i<=2&&i<=n;i++)print logs[order[i]]}","valid":true,"correct":false,"error":null}
|
| 7 |
+
{"id":"awkweave-frozen-0007","request":"The CSV has a header. Print sku for products with stock below 5; fields contain no quoted commas.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]<5{print $h[\"sku\"]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"A1\nB2\nD4\nE5\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"F6\nG7\nH8\nI9\n","family":"inventory_low_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\",\"}$4<5{print $1}","valid":true,"correct":true,"error":null}
|
| 8 |
+
{"id":"awkweave-frozen-0008","request":"Read stock by its CSV header and print total units in inventory.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"stock\"]}END{print s+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"14\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"9\n","family":"inventory_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h[\"sku\"],$h[\"stock\"]}","valid":true,"correct":false,"error":null}
|
| 9 |
+
{"id":"awkweave-frozen-0009","request":"Using the CSV header, print the mean price over products to two decimals.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"price\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"17.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"12.00\n","family":"inventory_average_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"price\"];n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":false,"error":null}
|
| 10 |
+
{"id":"awkweave-frozen-0010","request":"Count products whose stock field is zero in this simple CSV with a header.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]==0{n++}END{print n+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"1\n","family":"inventory_out_of_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]==0{n++}END{print n+0}","valid":true,"correct":false,"error":null}
|
| 11 |
+
{"id":"awkweave-frozen-0011","request":"Print each category and its total inventory value (price times stock) to two decimals, in first-appearance order.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"category\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"price\"]*$h[\"stock\"]}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"book 97.50\ntool 30.00\ngame 30.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"game 56.00\nbook 0.00\ntool 75.00\n","family":"inventory_category_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"category\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"price\"]*$h[\"stock\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 12 |
+
{"id":"awkweave-frozen-0012","request":"Skip the CSV header and print the complete product with the highest price, keeping the earliest on ties.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}NR==2{best=$h[\"price\"];record=$0}$h[\"price\"]>best{best=$h[\"price\"];record=$0}END{print record}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"E5,game,30.00,1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"H8,tool,25.00,3\n","family":"inventory_highest_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{n++;v[n]=$h[\"sku\"]+0;p[n]=$h[\"price\"];s[n]=$0}END{var=1;best=v[1];highest=p[1];for(i=2;i<=n;i++){if(v[i]<var){var=v[i];best=v[i];highest=p[i]}else if(v[i]==var&&s[i]<s[best])best=v[i];highest=p[best]}print s[best]}","valid":true,"correct":false,"error":null}
|
| 13 |
+
{"id":"awkweave-frozen-0013","request":"Count syslog lines containing the exact word Failed.","program":"$0 ~ /Failed/{n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"1\n","family":"syslog_failed_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /Failed/{n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 14 |
+
{"id":"awkweave-frozen-0014","request":"Print hostnames (field 4) for records whose process field begins with sshd.","program":"$5 ~ /^sshd/{print $4}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"web01\nweb01\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"api01\napi01\n","family":"syslog_sshd_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$7 ~ /^sshd/ {print $4}","valid":true,"correct":false,"error":null}
|
| 15 |
+
{"id":"awkweave-frozen-0015","request":"Print complete syslog records containing error in any letter case.","program":"tolower($0) ~ /error/","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:03 cache01 redis[104]: Error allocating buffer\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","family":"syslog_error_casefold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"error","valid":true,"correct":false,"error":null}
|
| 16 |
+
{"id":"awkweave-frozen-0016","request":"Extract the process name before [ in field 5 and count records per process in first-appearance order.","program":"{split($5,p,\"[\");if(!(p[1] in counts))order[++n]=p[1];counts[p[1]]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"sshd 2\ncron 2\nredis 1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"sshd 2\ncron 1\nnginx 1\n","family":"syslog_process_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($5~/[[:space:]]*\\[[^[]+\\]/){print $5;next}{if(!($5 in counts))order[++n]=$5;counts[$5]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near {"}
|
| 17 |
+
{"id":"awkweave-frozen-0017","request":"For cron records, print month, day, and time (the first three fields).","program":"$5 ~ /^cron/{print $1,$2,$3}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:01\nDec 01 10:00:04\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:02\n","family":"syslog_cron_timestamp","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{print $1,$2,$3}","valid":true,"correct":false,"error":null}
|
| 18 |
+
{"id":"awkweave-frozen-0018","request":"Count distinct hostnames in field 4 of the syslog input.","program":"{if(!seen[$4]++)n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"3\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"2\n","family":"syslog_unique_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$4]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 19 |
+
{"id":"awkweave-frozen-0019","request":"In colon-delimited group data, print group names containing alice as a comma-separated member of field 4.","program":"BEGIN{FS=\":\"}{split($4,members,\",\");for(i in members)if(members[i]==\"alice\")print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel\ndevelopers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"","family":"group_membership","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}$4~/\"alice\"/{print $1}","valid":true,"correct":false,"error":null}
|
| 20 |
+
{"id":"awkweave-frozen-0020","request":"For each colon-delimited group, print its name and number of members; an empty fourth field means zero.","program":"BEGIN{FS=\":\"}{n=split($4,members,\",\");if($4==\"\")n=0;print $1,n}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel 2\ndevelopers 3\naudio 0\nusers 2\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"admins 1\ndevelopers 2\nvideo 3\n","family":"group_member_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}{print $1,$2,NR-$3+1}","valid":true,"correct":false,"error":null}
|
| 21 |
+
{"id":"awkweave-frozen-0021","request":"Print names of colon-delimited groups with numeric GID at least 1000.","program":"BEGIN{FS=\":\"}$3>=1000{print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"developers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"developers\n","family":"group_gid_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=\":\"}$3>=1000{print $1}","valid":true,"correct":true,"error":null}
|
| 22 |
+
{"id":"awkweave-frozen-0022","request":"For each device in column 1, print its average reading from column 3 to two decimals in first-appearance order.","program":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$3;counts[$1]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 21.25\ns2 46.25\ns3 101.20\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.75\ns5 52.00\ns6 100.80\n","family":"sensor_device_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in averages))order[++n]=$1;averages[$1]+=$3;nr[$1]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],averages[order[i]]/nr[order[i]]}","valid":true,"correct":true,"error":null}
|
| 23 |
+
{"id":"awkweave-frozen-0023","request":"Print complete readings with value in column 3 greater than 45.","program":"$3>45","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sensor_threshold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$3 > 45","valid":true,"correct":true,"error":null}
|
| 24 |
+
{"id":"awkweave-frozen-0024","request":"For each metric in column 2, print its maximum value from column 3 in first-appearance order.","program":"{if(!($2 in seen)){order[++n]=$2;seen[$2]=1;max[$2]=$3}if($3>max[$2])max[$2]=$3}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"temperature 22.0\nhumidity 47.5\npressure 101.2\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"temperature 19.5\nhumidity 52.0\npressure 100.8\n","family":"sensor_metric_max","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($2 in seen)){order[++n]=$2;seen[$2]=1;max[$2]=$3}if($3>max[$2])max[$2]=$3}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","valid":true,"correct":true,"error":null}
|
| 25 |
+
{"id":"awkweave-frozen-0025","request":"Count distinct device identifiers in column 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"3\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"3\n","family":"sensor_device_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$1]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 26 |
+
{"id":"awkweave-frozen-0026","request":"Print device and value for readings whose unit in column 4 is C.","program":"$4==\"C\"{print $1,$3}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.5\ns1 22.0\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.0\ns4 19.5\n","family":"sensor_unit_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$4 == \"C\"{print $1, $2}","valid":true,"correct":false,"error":null}
|
| 27 |
+
{"id":"awkweave-frozen-0027","request":"Convert tab-separated rows to comma-separated rows while preserving all fields.","program":"BEGIN{FS=\"\\t\";OFS=\",\"}{$1=$1;print}","input_text":"a\t1\tx\nb\t2\ty\n","expected_output":"a,1,x\nb,2,y\n","validation_input":"c\t3\tz\nd\t4\tw\n","validation_output":"c,3,z\nd,4,w\n","family":"tsv_to_csv","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\"\\t\"}{$1=$1;print}","valid":true,"correct":false,"error":null}
|
| 28 |
+
{"id":"awkweave-frozen-0028","request":"For each record, print column 1 and the running mean of column 3 to two decimals.","program":"{s+=$3;n++;printf \"%s %.2f\\n\",$1,s/n}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.50\ns2 32.75\ns1 29.17\ns3 47.17\ns2 47.24\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.00\ns4 18.75\ns5 29.83\ns6 47.58\n","family":"running_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$3;n++}END{printf \"%s %.2f\\n\", $1, s/n}","valid":true,"correct":false,"error":null}
|
| 29 |
+
{"id":"awkweave-frozen-0029","request":"Print the median of column 3; for an even number of records use the lower middle value.","program":"{v[NR]=$3+0}END{for(i=2;i<=NR;i++){x=v[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];j--}v[j+1]=x}print v[int((NR+1)/2)]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"45\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"19.5\n","family":"median_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR%2==1{median=$3}NR%2==0{if($3>median)median=$3}END{print median}","valid":true,"correct":false,"error":null}
|
| 30 |
+
{"id":"awkweave-frozen-0030","request":"Remove blank lines and lines whose first non-whitespace character is #.","program":"$0 ~ /[^[:space:]]/ && $0 !~ /^[[:space:]]*#/","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"a 1\nb 2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"c 3\nd 4\n","family":"comment_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /[^[:space:]]/","valid":true,"correct":false,"error":null}
|
| 31 |
+
{"id":"awkweave-frozen-0031","request":"Count lines whose first non-whitespace character is #, excluding blank lines.","program":"$0 ~ /^[[:space:]]*#/{n++}END{print n+0}","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"1\n","family":"comment_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$1 ~ /^#/ && $1 !~ /$/","valid":true,"correct":false,"error":null}
|
| 32 |
+
{"id":"awkweave-frozen-0032","request":"Trim leading and trailing whitespace from each line without altering internal spacing.","program":"{gsub(/^[[:space:]]+|[[:space:]]+$/,\"\",$0);print}","input_text":" a 1 \n\tb 2\t\n","expected_output":"a 1\nb 2\n","validation_input":" c 3 \n d 4 \n","validation_output":"c 3\nd 4\n","family":"trim_lines","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{$1=$1;print}","valid":true,"correct":false,"error":null}
|
| 33 |
+
{"id":"awkweave-frozen-0033","request":"For ISO timestamps in field 1, print year, month, and day separated by hyphens.","program":"BEGIN{OFS=\"-\"}{split($1,date,\"-\");split(date[3],parts,\"T\");print date[1],date[2],parts[1]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","family":"iso_date_parts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{printf \"%s-%s-%s\\n\",$1,substr($1,12,2),substr($1,15,2)}","valid":true,"correct":false,"error":null}
|
| 34 |
+
{"id":"awkweave-frozen-0034","request":"Print complete records sorted by column 3 ascending, preserving input order on ties.","program":"{v[NR]=$3+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=NR;i++)print line[i]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns1 temperature 22.0 C\ns2 humidity 45.0 percent\ns2 humidity 47.5 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sort_numeric_ascending","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]>v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=NR;i++)print line[i]}","valid":true,"correct":true,"error":null}
|
| 35 |
+
{"id":"awkweave-frozen-0035","request":"Sum column 3 only for temperature records, printing 0 when no such records exist.","program":"$2==\"temperature\"{s+=$3}END{print s+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"42.5\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"37.5\n","family":"sum_if_metric","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$3>0{s+=$3}END{print s+0}","valid":true,"correct":false,"error":null}
|
| 36 |
+
{"id":"awkweave-frozen-0036","request":"Print only the first complete record for each device in column 1.","program":"!seen[$1]++","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"first_record_per_device","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"!seen[$1]++","valid":true,"correct":true,"error":null}
|
| 37 |
+
{"id":"awkweave-frozen-0037","request":"Count records per unit in column 4 in first-appearance order.","program":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"C 2\npercent 2\nkPa 1\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"C 2\npercent 1\nkPa 1\n","family":"count_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
evaluation/v2-frozen.summary.json
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/611bcf57-d883-4bab-8e1b-6fbcb2235e76/v2-training/model",
|
| 3 |
+
"split": "frozen_test",
|
| 4 |
+
"rows": 37,
|
| 5 |
+
"valid_at_1": 0.9459459459459459,
|
| 6 |
+
"correct_at_1": 0.2972972972972973,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 16.03351330757141,
|
| 10 |
+
"data_sha256": "48db6edd11b564732f70711f894745b87c756f4eb8c20922fb18466b80771867",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"comment_count": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 1,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"comment_filter": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 1,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"count_units": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 1,
|
| 27 |
+
"correct": 1
|
| 28 |
+
},
|
| 29 |
+
"first_record_per_device": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 1,
|
| 32 |
+
"correct": 1
|
| 33 |
+
},
|
| 34 |
+
"flow_bytes_total": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 1,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"flow_destination_count": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 1,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"flow_protocol_bytes": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 1,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"flow_tcp_count": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 1,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"flow_top_sources": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 1,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"flow_udp_average": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"group_gid_filter": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 1,
|
| 67 |
+
"correct": 1
|
| 68 |
+
},
|
| 69 |
+
"group_member_counts": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 1,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"group_membership": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 1,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"inventory_average_price": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 1,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"inventory_category_value": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 1,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"inventory_highest_price": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 1,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"inventory_low_stock": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 1,
|
| 97 |
+
"correct": 1
|
| 98 |
+
},
|
| 99 |
+
"inventory_out_of_stock": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 1,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"inventory_units": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 1,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"iso_date_parts": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 1,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"median_value": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 1,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"running_average": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 1,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"sensor_device_average": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 1,
|
| 127 |
+
"correct": 1
|
| 128 |
+
},
|
| 129 |
+
"sensor_device_count": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 1,
|
| 132 |
+
"correct": 1
|
| 133 |
+
},
|
| 134 |
+
"sensor_metric_max": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 1,
|
| 137 |
+
"correct": 1
|
| 138 |
+
},
|
| 139 |
+
"sensor_threshold": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 1,
|
| 142 |
+
"correct": 1
|
| 143 |
+
},
|
| 144 |
+
"sensor_unit_filter": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 1,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"sort_numeric_ascending": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 1,
|
| 152 |
+
"correct": 1
|
| 153 |
+
},
|
| 154 |
+
"sum_if_metric": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 1,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"syslog_cron_timestamp": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 1,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"syslog_error_casefold": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 1,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"syslog_failed_count": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 1,
|
| 172 |
+
"correct": 1
|
| 173 |
+
},
|
| 174 |
+
"syslog_process_counts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 0,
|
| 177 |
+
"correct": 0
|
| 178 |
+
},
|
| 179 |
+
"syslog_sshd_hosts": {
|
| 180 |
+
"rows": 1,
|
| 181 |
+
"valid": 1,
|
| 182 |
+
"correct": 0
|
| 183 |
+
},
|
| 184 |
+
"syslog_unique_hosts": {
|
| 185 |
+
"rows": 1,
|
| 186 |
+
"valid": 1,
|
| 187 |
+
"correct": 1
|
| 188 |
+
},
|
| 189 |
+
"trim_lines": {
|
| 190 |
+
"rows": 1,
|
| 191 |
+
"valid": 1,
|
| 192 |
+
"correct": 0
|
| 193 |
+
},
|
| 194 |
+
"tsv_to_csv": {
|
| 195 |
+
"rows": 1,
|
| 196 |
+
"valid": 1,
|
| 197 |
+
"correct": 0
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
}
|
evaluation/v2-test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/v2-test.summary.json
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/611bcf57-d883-4bab-8e1b-6fbcb2235e76/v2-training/model",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"rows": 3000,
|
| 5 |
+
"valid_at_1": 1.0,
|
| 6 |
+
"correct_at_1": 1.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 758.139878988266,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"average_field": {
|
| 15 |
+
"rows": 77,
|
| 16 |
+
"valid": 77,
|
| 17 |
+
"correct": 77
|
| 18 |
+
},
|
| 19 |
+
"computed_field": {
|
| 20 |
+
"rows": 77,
|
| 21 |
+
"valid": 77,
|
| 22 |
+
"correct": 77
|
| 23 |
+
},
|
| 24 |
+
"conditional_label": {
|
| 25 |
+
"rows": 77,
|
| 26 |
+
"valid": 77,
|
| 27 |
+
"correct": 77
|
| 28 |
+
},
|
| 29 |
+
"count_by_key": {
|
| 30 |
+
"rows": 77,
|
| 31 |
+
"valid": 77,
|
| 32 |
+
"correct": 77
|
| 33 |
+
},
|
| 34 |
+
"count_matches": {
|
| 35 |
+
"rows": 77,
|
| 36 |
+
"valid": 77,
|
| 37 |
+
"correct": 77
|
| 38 |
+
},
|
| 39 |
+
"count_records": {
|
| 40 |
+
"rows": 77,
|
| 41 |
+
"valid": 77,
|
| 42 |
+
"correct": 77
|
| 43 |
+
},
|
| 44 |
+
"csv_filter": {
|
| 45 |
+
"rows": 77,
|
| 46 |
+
"valid": 77,
|
| 47 |
+
"correct": 77
|
| 48 |
+
},
|
| 49 |
+
"dedup_field": {
|
| 50 |
+
"rows": 78,
|
| 51 |
+
"valid": 78,
|
| 52 |
+
"correct": 78
|
| 53 |
+
},
|
| 54 |
+
"dedup_lines": {
|
| 55 |
+
"rows": 77,
|
| 56 |
+
"valid": 77,
|
| 57 |
+
"correct": 77
|
| 58 |
+
},
|
| 59 |
+
"distinct_count": {
|
| 60 |
+
"rows": 76,
|
| 61 |
+
"valid": 76,
|
| 62 |
+
"correct": 76
|
| 63 |
+
},
|
| 64 |
+
"duplicates_only": {
|
| 65 |
+
"rows": 77,
|
| 66 |
+
"valid": 77,
|
| 67 |
+
"correct": 77
|
| 68 |
+
},
|
| 69 |
+
"every_nth": {
|
| 70 |
+
"rows": 76,
|
| 71 |
+
"valid": 76,
|
| 72 |
+
"correct": 76
|
| 73 |
+
},
|
| 74 |
+
"exclude_regex": {
|
| 75 |
+
"rows": 77,
|
| 76 |
+
"valid": 77,
|
| 77 |
+
"correct": 77
|
| 78 |
+
},
|
| 79 |
+
"field_count": {
|
| 80 |
+
"rows": 77,
|
| 81 |
+
"valid": 77,
|
| 82 |
+
"correct": 77
|
| 83 |
+
},
|
| 84 |
+
"first_n": {
|
| 85 |
+
"rows": 77,
|
| 86 |
+
"valid": 77,
|
| 87 |
+
"correct": 77
|
| 88 |
+
},
|
| 89 |
+
"header_filter": {
|
| 90 |
+
"rows": 77,
|
| 91 |
+
"valid": 77,
|
| 92 |
+
"correct": 77
|
| 93 |
+
},
|
| 94 |
+
"header_projection": {
|
| 95 |
+
"rows": 77,
|
| 96 |
+
"valid": 77,
|
| 97 |
+
"correct": 77
|
| 98 |
+
},
|
| 99 |
+
"last_field": {
|
| 100 |
+
"rows": 77,
|
| 101 |
+
"valid": 77,
|
| 102 |
+
"correct": 77
|
| 103 |
+
},
|
| 104 |
+
"line_range": {
|
| 105 |
+
"rows": 77,
|
| 106 |
+
"valid": 77,
|
| 107 |
+
"correct": 77
|
| 108 |
+
},
|
| 109 |
+
"longest_line": {
|
| 110 |
+
"rows": 77,
|
| 111 |
+
"valid": 77,
|
| 112 |
+
"correct": 77
|
| 113 |
+
},
|
| 114 |
+
"max_field": {
|
| 115 |
+
"rows": 77,
|
| 116 |
+
"valid": 77,
|
| 117 |
+
"correct": 77
|
| 118 |
+
},
|
| 119 |
+
"min_field": {
|
| 120 |
+
"rows": 77,
|
| 121 |
+
"valid": 77,
|
| 122 |
+
"correct": 77
|
| 123 |
+
},
|
| 124 |
+
"normalize_whitespace": {
|
| 125 |
+
"rows": 77,
|
| 126 |
+
"valid": 77,
|
| 127 |
+
"correct": 77
|
| 128 |
+
},
|
| 129 |
+
"numeric_filter": {
|
| 130 |
+
"rows": 77,
|
| 131 |
+
"valid": 77,
|
| 132 |
+
"correct": 77
|
| 133 |
+
},
|
| 134 |
+
"numeric_range": {
|
| 135 |
+
"rows": 77,
|
| 136 |
+
"valid": 77,
|
| 137 |
+
"correct": 77
|
| 138 |
+
},
|
| 139 |
+
"project_fields": {
|
| 140 |
+
"rows": 77,
|
| 141 |
+
"valid": 77,
|
| 142 |
+
"correct": 77
|
| 143 |
+
},
|
| 144 |
+
"ratio": {
|
| 145 |
+
"rows": 76,
|
| 146 |
+
"valid": 76,
|
| 147 |
+
"correct": 76
|
| 148 |
+
},
|
| 149 |
+
"regex_filter": {
|
| 150 |
+
"rows": 77,
|
| 151 |
+
"valid": 77,
|
| 152 |
+
"correct": 77
|
| 153 |
+
},
|
| 154 |
+
"replace_underscores": {
|
| 155 |
+
"rows": 77,
|
| 156 |
+
"valid": 77,
|
| 157 |
+
"correct": 77
|
| 158 |
+
},
|
| 159 |
+
"reverse_fields": {
|
| 160 |
+
"rows": 77,
|
| 161 |
+
"valid": 77,
|
| 162 |
+
"correct": 77
|
| 163 |
+
},
|
| 164 |
+
"running_total": {
|
| 165 |
+
"rows": 77,
|
| 166 |
+
"valid": 77,
|
| 167 |
+
"correct": 77
|
| 168 |
+
},
|
| 169 |
+
"skip_header": {
|
| 170 |
+
"rows": 77,
|
| 171 |
+
"valid": 77,
|
| 172 |
+
"correct": 77
|
| 173 |
+
},
|
| 174 |
+
"string_filter": {
|
| 175 |
+
"rows": 77,
|
| 176 |
+
"valid": 77,
|
| 177 |
+
"correct": 77
|
| 178 |
+
},
|
| 179 |
+
"substring": {
|
| 180 |
+
"rows": 77,
|
| 181 |
+
"valid": 77,
|
| 182 |
+
"correct": 77
|
| 183 |
+
},
|
| 184 |
+
"sum_by_key": {
|
| 185 |
+
"rows": 77,
|
| 186 |
+
"valid": 77,
|
| 187 |
+
"correct": 77
|
| 188 |
+
},
|
| 189 |
+
"sum_field": {
|
| 190 |
+
"rows": 77,
|
| 191 |
+
"valid": 77,
|
| 192 |
+
"correct": 77
|
| 193 |
+
},
|
| 194 |
+
"top_three": {
|
| 195 |
+
"rows": 76,
|
| 196 |
+
"valid": 76,
|
| 197 |
+
"correct": 76
|
| 198 |
+
},
|
| 199 |
+
"tsv_projection": {
|
| 200 |
+
"rows": 77,
|
| 201 |
+
"valid": 77,
|
| 202 |
+
"correct": 77
|
| 203 |
+
},
|
| 204 |
+
"uppercase": {
|
| 205 |
+
"rows": 77,
|
| 206 |
+
"valid": 77,
|
| 207 |
+
"correct": 77
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
}
|
evaluation/v2-v1-challenge.jsonl
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-challenge-0001","request":"Count server-error responses with HTTP status from 500 through 599; print 0 when none occur.","program":"$9 >= 500 && $9 < 600{n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"1\n","family":"http_5xx_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$status >= 500 && $status <= 599","valid":true,"correct":false,"error":null}
|
| 2 |
+
{"id":"awkweave-challenge-0002","request":"What is the total number of response bytes? Sum the final field and print one integer.","program":"{bytes+=$NF}END{print bytes+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"992\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"129\n","family":"http_bytes_sum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print $NF}","valid":true,"correct":false,"error":null}
|
| 3 |
+
{"id":"awkweave-challenge-0003","request":"Count distinct client IP addresses, which appear in field 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"4\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"3\n","family":"http_unique_clients","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$1]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 4 |
+
{"id":"awkweave-challenge-0004","request":"Print the request path (field 7) for API routes with a 500 response.","program":"$7 ~ /^\\/api\\// && $9 == 500{print $7}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/api/orders\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"","family":"http_api_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$7","valid":true,"correct":false,"error":null}
|
| 5 |
+
{"id":"awkweave-challenge-0005","request":"For responses with status 200 only, print the average number of bytes to two decimal places.","program":"$9==200{bytes+=$10;n++}END{printf \"%.2f\\n\",bytes/n}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"384.00\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"15.00\n","family":"http_success_bytes","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$status == 200{bytes+=$size;count++}END{printf \"%.2f\\n\",bytes/count}","valid":true,"correct":false,"error":null}
|
| 6 |
+
{"id":"awkweave-challenge-0006","request":"Print complete request records for methods other than GET.","program":"$6 !~ /^\"GET$/{print $0}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n","family":"http_non_get","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$1 != \"GET\"{print $0}","valid":true,"correct":false,"error":null}
|
| 7 |
+
{"id":"awkweave-challenge-0007","request":"Count each request path from field 7 and print path then count in first-appearance order.","program":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"192.0.2.10 - - [28/Nov/2026:10:00:00 +0000] \"GET /index.html HTTP/1.1\" 200 512\n192.0.2.11 - - [28/Nov/2026:10:00:01 +0000] \"POST /api/orders HTTP/1.1\" 201 128\n192.0.2.10 - - [28/Nov/2026:10:00:02 +0000] \"GET /missing HTTP/1.1\" 404 64\n192.0.2.12 - - [28/Nov/2026:10:00:03 +0000] \"GET /api/orders HTTP/1.1\" 500 32\n192.0.2.13 - - [28/Nov/2026:10:00:04 +0000] \"GET /index.html HTTP/1.1\" 200 256\n","expected_output":"/index.html 2\n/api/orders 2\n/missing 1\n","validation_input":"198.51.100.20 - - [28/Nov/2026:11:00:00 +0000] \"GET /health HTTP/1.1\" 200 10\n198.51.100.21 - - [28/Nov/2026:11:00:01 +0000] \"GET /api/items HTTP/1.1\" 503 0\n198.51.100.20 - - [28/Nov/2026:11:00:02 +0000] \"POST /api/items HTTP/1.1\" 201 99\n198.51.100.22 - - [28/Nov/2026:11:00:03 +0000] \"GET /health HTTP/1.1\" 200 20\n","validation_output":"/health 2\n/api/items 2\n","family":"http_url_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
| 8 |
+
{"id":"awkweave-challenge-0008","request":"Use the header to find the region and amount columns. Print total paid amount per region in first-appearance order.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"paid\"{key=$h[\"region\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"amount\"]}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 20\nnorth 10\nwest 5\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 8\neast 14\nwest 22\n","family":"header_region_totals","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$2}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 9 |
+
{"id":"awkweave-challenge-0009","request":"The first line is a header. Print order_id values for pending orders only.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r103\n","family":"header_pending_ids","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"status\"]==\"pending\"{print $h[\"order_id\"]}","valid":true,"correct":true,"error":null}
|
| 10 |
+
{"id":"awkweave-challenge-0010","request":"Read the amount column by its header name and print its mean over all data rows to two decimal places.","program":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"amount\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"11.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"12.50\n","family":"header_amount_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$2;n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":false,"error":null}
|
| 11 |
+
{"id":"awkweave-challenge-0011","request":"The first row is a header. Print the two complete orders with the largest amounts, highest first. Keep file order for ties.","program":"NR==1{next}{n++;v[n]=$3+0;line[n]=$0}END{for(i=2;i<=n;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=n;i++)print line[i]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r002 west 20.00 pending\nr001 east 12.50 paid\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r104 west 22.00 paid\nr102 east 14.00 paid\n","family":"top_two_amounts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"amount\"]<$h[\"amount\"]{next}!seen[$0]++{if(++n>2)for(i=1;i<=2&&i<=NF;i++)print $h[i],$i}","valid":true,"correct":false,"error":null}
|
| 12 |
+
{"id":"awkweave-challenge-0012","request":"The first row is a header. Print each region and its average order amount to two decimals, grouping in first-appearance order and including every status.","program":"NR==1{next}{if(!($2 in sums))order[++n]=$2;sums[$2]+=$3;counts[$2]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"east 10.00\nwest 12.50\nnorth 10.00\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"south 7.00\neast 14.00\nwest 22.00\n","family":"region_average","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in sums))order[$1]=sprintf(\"%.2f\",sums[$1]=$2);next}order[$1]+=sums[$1]}for(key in order)print key,order[key]","valid":false,"correct":false,"error":"awk: line 1: extra '}'\nawk: line 1: syntax error at or near for"}
|
| 13 |
+
{"id":"awkweave-challenge-0013","request":"The first row is a header. For every order, print order_id and its amount as a percentage of the grand total, with two decimals and a percent sign.","program":"NR==1{next}{n++;id[n]=$1;v[n]=$3;total+=$3}END{for(i=1;i<=n;i++)printf \"%s %.2f%%\\n\",id[i],100*v[i]/total}","input_text":"order_id region amount status\nr001 east 12.50 paid\nr002 west 20.00 pending\nr003 east 7.50 paid\nr004 north 10.00 paid\nr005 west 5.00 paid\n","expected_output":"r001 22.73%\nr002 36.36%\nr003 13.64%\nr004 18.18%\nr005 9.09%\n","validation_input":"order_id region amount status\nr101 south 8.00 paid\nr102 east 14.00 paid\nr103 south 6.00 pending\nr104 west 22.00 paid\n","validation_output":"r101 16.00%\nr102 28.00%\nr103 12.00%\nr104 44.00%\n","family":"amount_percentage","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{print $h[\"order_id\"],$h[\"amount\"]/$(h[\"order_id\"]+h[\"grand_total\"])*100.0%}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near }"}
|
| 14 |
+
{"id":"awkweave-challenge-0014","request":"This is colon-delimited passwd data. Print usernames whose login shell is /bin/bash.","program":"BEGIN{FS=\":\"}$7==\"/bin/bash\"{print $1}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"root\nalice\nchen\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"root\neli\n","family":"passwd_shell","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\":\"}$3==\"/bin/bash\"{print $1}","valid":true,"correct":false,"error":null}
|
| 15 |
+
{"id":"awkweave-challenge-0015","request":"Using colon separators, print username and UID for accounts with UID at least 1000 and below 1002.","program":"BEGIN{FS=\":\";OFS=\":\"}$3>=1000&&$3<1002{print $1,$3}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"alice:1000\nbruno:1001\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"dina:1000\neli:1001\n","family":"passwd_uid_range","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print $1,$3}","valid":true,"correct":false,"error":null}
|
| 16 |
+
{"id":"awkweave-challenge-0016","request":"For colon-delimited passwd records, count users per login shell in order of first appearance.","program":"BEGIN{FS=\":\"}{if(!($7 in counts))order[++n]=$7;counts[$7]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"root:x:0:0:root:/root:/bin/bash\ndaemon:x:1:1:daemon:/usr/sbin:/usr/sbin/nologin\nalice:x:1000:1000:Alice:/home/alice:/bin/bash\nbruno:x:1001:1001:Bruno:/home/bruno:/bin/zsh\nchen:x:1002:1002:Chen:/home/chen:/bin/bash\n","expected_output":"/bin/bash 3\n/usr/sbin/nologin 1\n/bin/zsh 1\n","validation_input":"root:x:0:0:root:/root:/bin/bash\ndina:x:1000:1000:Dina:/home/dina:/bin/sh\neli:x:1001:1001:Eli:/home/eli:/bin/bash\n","validation_output":"/bin/bash 2\n/bin/sh 1\n","family":"passwd_shell_counts","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($3 in counts))order[++n]=$3;counts[$3]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":false,"error":null}
|
| 17 |
+
{"id":"awkweave-challenge-0017","request":"Extract the service value from each record whose level value is error, ignoring level letter case.","program":"{service=\"\";level=\"\";for(i=1;i<=NF;i++){split($i,parts,\"=\");if(parts[1]==\"service\")service=parts[2];if(parts[1]==\"level\")level=tolower(parts[2])}if(level==\"error\")print service}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"db\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"api\nworker\n","family":"keyvalue_errors","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$level == \"error\"{print $service}","valid":true,"correct":false,"error":null}
|
| 18 |
+
{"id":"awkweave-challenge-0018","request":"Print timestamps with latency above 20. The timestamp is field 1 and latency is stored as latency=N in the final field.","program":"{split($NF,parts,\"=\");if(parts[2]+0>20)print $1}","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z\n2026-11-28T09:03:00Z\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"2026-11-28T12:00:00Z\n2026-11-28T12:02:00Z\n","family":"keyvalue_latency","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print $1,$NF}","valid":true,"correct":false,"error":null}
|
| 19 |
+
{"id":"awkweave-challenge-0019","request":"Print only events with timestamps from 2026-11-28T09:01:00Z through 2026-11-28T09:02:00Z inclusive.","program":"$1>=\"2026-11-28T09:01:00Z\"&&$1<=\"2026-11-28T09:02:00Z\"","input_text":"2026-11-28T09:00:00Z level=info service=web latency=12\n2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n2026-11-28T09:03:00Z level=warn service=db latency=25\n","expected_output":"2026-11-28T09:01:00Z level=error service=db latency=40\n2026-11-28T09:02:00Z level=INFO service=web latency=18\n","validation_input":"2026-11-28T12:00:00Z level=error service=api latency=33\n2026-11-28T12:01:00Z level=info service=api latency=9\n2026-11-28T12:02:00Z level=ERROR service=worker latency=51\n","validation_output":"","family":"event_window","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$1 >= \"2026-11-28T09:01:00Z\" && $1 <= \"2026-11-28T09:02:00Z\"","valid":true,"correct":true,"error":null}
|
| 20 |
+
{"id":"awkweave-challenge-0020","request":"For each row after the first, print the group name and the change in column 2 from the previous row; for the first row print 0 as the change.","program":"{delta=$2-previous;if(NR==1)delta=0;print $1,delta;previous=$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 0\nbeta 10\nalpha 10\ngamma -25\nbeta 10\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 0\nred 4\nblue -5\ngreen 13\nblue -11\n","family":"running_delta","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!prev)change=0;else change=$2-prev}print prev,change;prev=$2}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near print\nawk: line 1: extra '}'"}
|
| 21 |
+
{"id":"awkweave-challenge-0021","request":"For each group in column 1, print its largest value from column 2 in first-appearance order.","program":"{if(!($1 in max)||$2>max[$1])max[$1]=$2;if(!($1 in seen)){order[++n]=$1;seen[$1]=1}}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 30\nbeta 20\ngamma 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 12\nblue 9\ngreen 20\n","family":"group_maximum","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in best) || $2>best[$1])best[$1]=$2}END{for(i in best)print i,best[i]}","valid":true,"correct":false,"error":null}
|
| 22 |
+
{"id":"awkweave-challenge-0022","request":"Print each group from column 1 with its first and last value from column 2, in first-appearance order.","program":"{if(!($1 in first)){first[$1]=$2;order[++n]=$1}last[$1]=$2}END{for(i=1;i<=n;i++)print order[i],first[order[i]],last[order[i]]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 30\nbeta 20 15\ngamma 5 5\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 12\nblue 7 9\ngreen 20 20\n","family":"first_last_group","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in $0))order[++n]=$1;print $1,$0$2}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near $"}
|
| 23 |
+
{"id":"awkweave-challenge-0023","request":"Print group and the ratio of column 3 to column 2 as a percentage with one decimal; skip zero denominators.","program":"$2!=0{printf \"%s %.1f%%\\n\",$1,100*$3/$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 40.0%\nbeta 0.0%\nalpha 26.7%\ngamma 40.0%\nbeta 20.0%\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 25.0%\nred 33.3%\nblue 0.0%\ngreen 25.0%\nblue 33.3%\n","family":"positive_ratio","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if($2!=0)printf \"%s %.1f%\\n\",$1,$3/$2*100}","valid":false,"correct":false,"error":"awk: run time error: not enough arguments passed to printf(\"%s %.1f%\n\")\n\tFILENAME=\"-\" FNR=1 NR=1"}
|
| 24 |
+
{"id":"awkweave-challenge-0024","request":"Print every row with column 2 clamped to the inclusive range 8 through 18; leave other fields unchanged.","program":"{if($2<8)$2=8;else if($2>18)$2=18;print}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 18 0\nalpha 18 8\ngamma 8 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nred 12 4\nblue 8 0\ngreen 18 5\nblue 9 3\n","family":"clamp_values","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print $1,$2>=8&&$2<=18?$2:8,$3}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near ="}
|
| 25 |
+
{"id":"awkweave-challenge-0025","request":"Suppress only consecutive duplicate group names in column 1, printing one complete row per run.","program":"$1!=previous{print}{previous=$1}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 8 2\nblue 7 0\ngreen 20 5\nblue 9 3\n","family":"consecutive_dedup","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"!seen[$1]++","valid":true,"correct":false,"error":null}
|
| 26 |
+
{"id":"awkweave-challenge-0026","request":"Remove blank and whitespace-only lines, leaving all other lines unchanged.","program":"$0 ~ /[^[:space:]]/","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"alpha 1\nbeta 2\nalpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"red 4\nblue 5\n","family":"blank_filter","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{$1!~ /^ *$/}","valid":true,"correct":false,"error":null}
|
| 27 |
+
{"id":"awkweave-challenge-0027","request":"Count blank or whitespace-only lines and print the count.","program":"$0 !~ /[^[:space:]]/{n++}END{print n+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"2\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"2\n","family":"blank_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"$1 == \"\"{n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 28 |
+
{"id":"awkweave-challenge-0028","request":"Prefix each non-empty line with its original line number, a colon, and one space.","program":"$0 ~ /[^[:space:]]/{print NR \": \" $0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"1: alpha 1\n3: beta 2\n5: alpha 3\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"1: red 4\n4: blue 5\n","family":"line_numbers","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print NR\":\"$0}","valid":true,"correct":false,"error":null}
|
| 29 |
+
{"id":"awkweave-challenge-0029","request":"Print the total number of characters in the input, excluding newline characters.","program":"{total+=length($0)}END{print total+0}","input_text":"alpha 1\n\nbeta 2\n \nalpha 3\n","expected_output":"23\n","validation_input":"red 4\n\n\nblue 5\n","validation_output":"11\n","family":"character_count","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print length($0)}","valid":true,"correct":false,"error":null}
|
| 30 |
+
{"id":"awkweave-challenge-0030","request":"Convert simple comma-separated rows to tab-separated rows, preserving every field in order.","program":"BEGIN{FS=\",\";OFS=\"\\t\"}{$1=$1;print}","input_text":"a,1,x\nb,2,y\n","expected_output":"a\t1\tx\nb\t2\ty\n","validation_input":"c,3,z\nd,4,w\n","validation_output":"c\t3\tz\nd\t4\tw\n","family":"comma_to_tab","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\",\"}$0{print $1,$2,$3}","valid":true,"correct":false,"error":null}
|
| 31 |
+
{"id":"awkweave-challenge-0031","request":"Print column 1 right-aligned in a width of 8, followed by column 2 with no extra separator beyond the padding.","program":"{printf \"%8s%s\\n\",$1,$2}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":" alpha10\n beta20\n alpha30\n gamma5\n beta15\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":" red8\n red12\n blue7\n green20\n blue9\n","family":"fixed_width","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print $1 padlen(8-$2)$2}","valid":false,"correct":false,"error":"awk: line 2: function padlen never defined"}
|
| 32 |
+
{"id":"awkweave-challenge-0032","request":"For every record, print group and the absolute difference between columns 2 and 3.","program":"{difference=$2-$3;if(difference<0)difference=-difference;print $1,difference}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha 6\nbeta 20\nalpha 22\ngamma 3\nbeta 12\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"red 6\nred 8\nblue 7\ngreen 15\nblue 6\n","family":"absolute_difference","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{print $1,$3-$2}","valid":true,"correct":false,"error":null}
|
| 33 |
+
{"id":"awkweave-challenge-0033","request":"Print each distinct word from column 1 once, sorted in ascending lexical order.","program":"{seen[$1]=1}END{for(word in seen){value[++n]=word}for(i=2;i<=n;i++){x=value[i];j=i-1;while(j>=1&&value[j]>x){value[j+1]=value[j];j--}value[j+1]=x}for(i=1;i<=n;i++)print value[i]}","input_text":"alpha 10 4\nbeta 20 0\nalpha 30 8\ngamma 5 2\nbeta 15 3\n","expected_output":"alpha\nbeta\ngamma\n","validation_input":"red 8 2\nred 12 4\nblue 7 0\ngreen 20 5\nblue 9 3\n","validation_output":"blue\ngreen\nred\n","family":"sorted_unique_words","difficulty":3,"split":"challenge","source":"original-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in counts))order[++n]=$1;counts[$1]++}END{for(i=1;i<=n;i++)print order[i]}","valid":true,"correct":false,"error":null}
|
evaluation/v2-v1-challenge.summary.json
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/6d42913a-6bf5-49b5-888f-b04f126c3534/full-training/model",
|
| 3 |
+
"split": "challenge",
|
| 4 |
+
"rows": 33,
|
| 5 |
+
"valid_at_1": 0.7878787878787878,
|
| 6 |
+
"correct_at_1": 0.15151515151515152,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 11.097077131271362,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"absolute_difference": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 1,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"amount_percentage": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 0,
|
| 22 |
+
"correct": 0
|
| 23 |
+
},
|
| 24 |
+
"blank_count": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 1,
|
| 27 |
+
"correct": 1
|
| 28 |
+
},
|
| 29 |
+
"blank_filter": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 1,
|
| 32 |
+
"correct": 0
|
| 33 |
+
},
|
| 34 |
+
"character_count": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 1,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"clamp_values": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 0,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"comma_to_tab": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 1,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"consecutive_dedup": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 1,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"event_window": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 1,
|
| 57 |
+
"correct": 1
|
| 58 |
+
},
|
| 59 |
+
"first_last_group": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 0,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"fixed_width": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 0,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_maximum": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 1,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"header_amount_average": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 1,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"header_pending_ids": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 1,
|
| 82 |
+
"correct": 1
|
| 83 |
+
},
|
| 84 |
+
"header_region_totals": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 1,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"http_5xx_count": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 1,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"http_api_errors": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 1,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"http_bytes_sum": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 1,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"http_non_get": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 1,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"http_success_bytes": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 1,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"http_unique_clients": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 1,
|
| 117 |
+
"correct": 1
|
| 118 |
+
},
|
| 119 |
+
"http_url_counts": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 1,
|
| 122 |
+
"correct": 1
|
| 123 |
+
},
|
| 124 |
+
"keyvalue_errors": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 1,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"keyvalue_latency": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 1,
|
| 132 |
+
"correct": 0
|
| 133 |
+
},
|
| 134 |
+
"line_numbers": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 1,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"passwd_shell": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 1,
|
| 142 |
+
"correct": 0
|
| 143 |
+
},
|
| 144 |
+
"passwd_shell_counts": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 1,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"passwd_uid_range": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 1,
|
| 152 |
+
"correct": 0
|
| 153 |
+
},
|
| 154 |
+
"positive_ratio": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 0,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"region_average": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 0,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"running_delta": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"sorted_unique_words": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 1,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"top_two_amounts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 1,
|
| 177 |
+
"correct": 0
|
| 178 |
+
}
|
| 179 |
+
}
|
| 180 |
+
}
|
evaluation/v2-v1-frozen.jsonl
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"awkweave-frozen-0001","request":"Using pipe delimiters, count TCP flows and print 0 when none exist.","program":"BEGIN{FS=\"|\"}$4==\"TCP\"{n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3\n","family":"flow_tcp_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$1 == \"TCP\"{n++}END{print n+0}","valid":true,"correct":false,"error":null}
|
| 2 |
+
{"id":"awkweave-frozen-0002","request":"Sum bytes in field 6 of these pipe-delimited flows.","program":"BEGIN{FS=\"|\"}{s+=$6}END{print s+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"3234\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2030\n","family":"flow_bytes_total","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$6}END{print s+0}","valid":true,"correct":false,"error":null}
|
| 3 |
+
{"id":"awkweave-frozen-0003","request":"For pipe-delimited flows, total bytes per protocol in first-appearance order.","program":"BEGIN{FS=\"|\"}{if(!($4 in sums))order[++n]=$4;sums[$4]+=$6}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"TCP 2300\nUDP 870\nICMP 64\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"TCP 1850\nUDP 180\n","family":"flow_protocol_bytes","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$2}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 4 |
+
{"id":"awkweave-frozen-0004","request":"For UDP flows, print average packets to two decimals. Fields are pipe-delimited.","program":"BEGIN{FS=\"|\"}$4==\"UDP\"{s+=$5;n++}END{printf \"%.2f\\n\",s/n}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"5.50\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"3.00\n","family":"flow_udp_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1==\"UDP\"&&$NF~/^\\d+\\.\\d+$/))next; s+=$NF;n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":false,"error":null}
|
| 5 |
+
{"id":"awkweave-frozen-0005","request":"Count distinct destination IPs in field 3 of this pipe-delimited data.","program":"BEGIN{FS=\"|\"}{if(!seen[$3]++)n++}END{print n+0}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"4\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"4\n","family":"flow_destination_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$3]++)n++}END{print n+0}","valid":true,"correct":false,"error":null}
|
| 6 |
+
{"id":"awkweave-frozen-0006","request":"Print the two complete flows with the most bytes, highest first and stable on ties.","program":"BEGIN{FS=\"|\"}{v[NR]=$6+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]<x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=2&&i<=NR;i++)print line[i]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n","family":"flow_top_sources","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in counts))order[++n]=$1;counts[$1]+=$2}END{for(i=2;i<=n;i++)if(counts[order[i]]>counts[order[i-1]])order[i-1]=order[i],order[i]=temp}for(i=1;i<=2&&i<=n;i++)print order[i],counts[order[i]]}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near ,\nawk: line 1: syntax error at or near for\nawk: line 1: extra '}'"}
|
| 7 |
+
{"id":"awkweave-frozen-0007","request":"The CSV has a header. Print sku for products with stock below 5; fields contain no quoted commas.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]<5{print $h[\"sku\"]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"A1\nB2\nD4\nE5\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"F6\nG7\nH8\nI9\n","family":"inventory_low_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\",\"}$stock<5{print $1}","valid":true,"correct":false,"error":null}
|
| 8 |
+
{"id":"awkweave-frozen-0008","request":"Read stock by its CSV header and print total units in inventory.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"stock\"]}END{print s+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"14\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"9\n","family":"inventory_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\",\"}$1==ARGV[1]{s+=$3}END{print ARGV[1],s}","valid":false,"correct":false,"error":"File, environment, and process access are not allowed: ARGV"}
|
| 9 |
+
{"id":"awkweave-frozen-0009","request":"Using the CSV header, print the mean price over products to two decimals.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{s+=$h[\"price\"];n++}END{printf \"%.2f\\n\",s/n}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"17.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"12.00\n","family":"inventory_average_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$3;n++}END{printf \"%.2f\\n\",s/n}","valid":true,"correct":false,"error":null}
|
| 10 |
+
{"id":"awkweave-frozen-0010","request":"Count products whose stock field is zero in this simple CSV with a header.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"stock\"]==0{n++}END{print n+0}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"1\n","family":"inventory_out_of_stock","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1||$3==0","valid":true,"correct":false,"error":null}
|
| 11 |
+
{"id":"awkweave-frozen-0011","request":"Print each category and its total inventory value (price times stock) to two decimals, in first-appearance order.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}{key=$h[\"category\"];if(!(key in sums))order[++n]=key;sums[key]+=$h[\"price\"]*$h[\"stock\"]}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"book 97.50\ntool 30.00\ngame 30.00\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"game 56.00\nbook 0.00\ntool 75.00\n","family":"inventory_category_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$2* $3}END{for(i=1;i<=n;i++)print order[i],sums[order[i]]}","valid":true,"correct":false,"error":null}
|
| 12 |
+
{"id":"awkweave-frozen-0012","request":"Skip the CSV header and print the complete product with the highest price, keeping the earliest on ties.","program":"BEGIN{FS=OFS=\",\"}NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}NR==2{best=$h[\"price\"];record=$0}$h[\"price\"]>best{best=$h[\"price\"];record=$0}END{print record}","input_text":"sku,category,price,stock\nA1,book,12.50,3\nB2,tool,20.00,0\nC3,book,7.50,8\nD4,tool,15.00,2\nE5,game,30.00,1\n","expected_output":"E5,game,30.00,1\n","validation_input":"sku,category,price,stock\nF6,game,10.00,4\nG7,book,5.00,0\nH8,tool,25.00,3\nI9,game,8.00,2\n","validation_output":"H8,tool,25.00,3\n","family":"inventory_highest_price","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"NR==1{for(i=1;i<=NF;i++)h[$i]=i;next}$h[\"price\"]>price{price=$h[\"price\"];product=$0}END{print product}","valid":true,"correct":false,"error":null}
|
| 13 |
+
{"id":"awkweave-frozen-0013","request":"Count syslog lines containing the exact word Failed.","program":"$0 ~ /Failed/{n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"1\n","family":"syslog_failed_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$0 ~ /Failed/","valid":true,"correct":false,"error":null}
|
| 14 |
+
{"id":"awkweave-frozen-0014","request":"Print hostnames (field 4) for records whose process field begins with sshd.","program":"$5 ~ /^sshd/{print $4}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"web01\nweb01\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"api01\napi01\n","family":"syslog_sshd_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$1 == \"sshd\" && $4 ~ /^sshd/","valid":true,"correct":false,"error":null}
|
| 15 |
+
{"id":"awkweave-frozen-0015","request":"Print complete syslog records containing error in any letter case.","program":"tolower($0) ~ /error/","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:03 cache01 redis[104]: Error allocating buffer\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","family":"syslog_error_casefold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$* contains \"error\"","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near *"}
|
| 16 |
+
{"id":"awkweave-frozen-0016","request":"Extract the process name before [ in field 5 and count records per process in first-appearance order.","program":"{split($5,p,\"[\");if(!(p[1] in counts))order[++n]=p[1];counts[p[1]]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"sshd 2\ncron 2\nredis 1\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"sshd 2\ncron 1\nnginx 1\n","family":"syslog_process_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{print $5,($1$2$3$4)}","valid":true,"correct":false,"error":null}
|
| 17 |
+
{"id":"awkweave-frozen-0017","request":"For cron records, print month, day, and time (the first three fields).","program":"$5 ~ /^cron/{print $1,$2,$3}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"Dec 01 10:00:01\nDec 01 10:00:04\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"Dec 02 11:00:02\n","family":"syslog_cron_timestamp","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{print $1, $2, $3}","valid":true,"correct":false,"error":null}
|
| 18 |
+
{"id":"awkweave-frozen-0018","request":"Count distinct hostnames in field 4 of the syslog input.","program":"{if(!seen[$4]++)n++}END{print n+0}","input_text":"Dec 01 10:00:00 web01 sshd[101]: Failed password for invalid user admin\nDec 01 10:00:01 db01 cron[102]: (root) CMD (backup)\nDec 01 10:00:02 web01 sshd[103]: Accepted publickey for alice\nDec 01 10:00:03 cache01 redis[104]: Error allocating buffer\nDec 01 10:00:04 db01 cron[105]: (root) CMD (cleanup)\n","expected_output":"3\n","validation_input":"Dec 02 11:00:00 api01 sshd[201]: Accepted password for bruno\nDec 02 11:00:01 api01 sshd[202]: Failed password for root\nDec 02 11:00:02 job01 cron[203]: (daemon) CMD (index)\nDec 02 11:00:03 api01 nginx[204]: Error connecting upstream\n","validation_output":"2\n","family":"syslog_unique_hosts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$4]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 19 |
+
{"id":"awkweave-frozen-0019","request":"In colon-delimited group data, print group names containing alice as a comma-separated member of field 4.","program":"BEGIN{FS=\":\"}{split($4,members,\",\");for(i in members)if(members[i]==\"alice\")print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel\ndevelopers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"","family":"group_membership","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{print $1}","valid":true,"correct":false,"error":null}
|
| 20 |
+
{"id":"awkweave-frozen-0020","request":"For each colon-delimited group, print its name and number of members; an empty fourth field means zero.","program":"BEGIN{FS=\":\"}{n=split($4,members,\",\");if($4==\"\")n=0;print $1,n}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"wheel 2\ndevelopers 3\naudio 0\nusers 2\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"admins 1\ndevelopers 2\nvideo 3\n","family":"group_member_counts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{print $1, NF}","valid":true,"correct":false,"error":null}
|
| 21 |
+
{"id":"awkweave-frozen-0021","request":"Print names of colon-delimited groups with numeric GID at least 1000.","program":"BEGIN{FS=\":\"}$3>=1000{print $1}","input_text":"wheel:x:10:alice,bruno\ndevelopers:x:1000:alice,chen,dina\naudio:x:29:\nusers:x:100:bruno,eli\n","expected_output":"developers\n","validation_input":"admins:x:4:farah\ndevelopers:x:1000:farah,gus\nvideo:x:44:gus,hana,ivan\n","validation_output":"developers\n","family":"group_gid_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{print $1}","valid":true,"correct":false,"error":null}
|
| 22 |
+
{"id":"awkweave-frozen-0022","request":"For each device in column 1, print its average reading from column 3 to two decimals in first-appearance order.","program":"{if(!($1 in sums))order[++n]=$1;sums[$1]+=$3;counts[$1]++}END{for(i=1;i<=n;i++)printf \"%s %.2f\\n\",order[i],sums[order[i]]/counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 21.25\ns2 46.25\ns3 101.20\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.75\ns5 52.00\ns6 100.80\n","family":"sensor_device_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($1 in averages))order[++n]=$1;averages[$1]+=$3}END{for(i=1;i<=n;i++)print order[i],averages[order[i]].toFixed(2)}","valid":false,"correct":false,"error":"awk: 1: unexpected character '.'"}
|
| 23 |
+
{"id":"awkweave-frozen-0023","request":"Print complete readings with value in column 3 greater than 45.","program":"$3>45","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sensor_threshold","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$3 > 45","valid":true,"correct":true,"error":null}
|
| 24 |
+
{"id":"awkweave-frozen-0024","request":"For each metric in column 2, print its maximum value from column 3 in first-appearance order.","program":"{if(!($2 in seen)){order[++n]=$2;seen[$2]=1;max[$2]=$3}if($3>max[$2])max[$2]=$3}END{for(i=1;i<=n;i++)print order[i],max[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"temperature 22.0\nhumidity 47.5\npressure 101.2\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"temperature 19.5\nhumidity 52.0\npressure 100.8\n","family":"sensor_metric_max","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($2 in values))order[++n]=$2;values[$2]=max(values[$2],$3)}END{for(i=1;i<=n;i++)print order[i],values[order[i]]}","valid":false,"correct":false,"error":"awk: line 2: function max never defined"}
|
| 25 |
+
{"id":"awkweave-frozen-0025","request":"Count distinct device identifiers in column 1.","program":"{if(!seen[$1]++)n++}END{print n+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"3\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"3\n","family":"sensor_device_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!seen[$1]++)n++}END{print n+0}","valid":true,"correct":true,"error":null}
|
| 26 |
+
{"id":"awkweave-frozen-0026","request":"Print device and value for readings whose unit in column 4 is C.","program":"$4==\"C\"{print $1,$3}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.5\ns1 22.0\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.0\ns4 19.5\n","family":"sensor_unit_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$4 == \"C\"{print $1, $2}","valid":true,"correct":false,"error":null}
|
| 27 |
+
{"id":"awkweave-frozen-0027","request":"Convert tab-separated rows to comma-separated rows while preserving all fields.","program":"BEGIN{FS=\"\\t\";OFS=\",\"}{$1=$1;print}","input_text":"a\t1\tx\nb\t2\ty\n","expected_output":"a,1,x\nb,2,y\n","validation_input":"c\t3\tz\nd\t4\tw\n","validation_output":"c,3,z\nd,4,w\n","family":"tsv_to_csv","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"BEGIN{FS=OFS=\"\\t\"}{for(i=1;i<=NF;i++)printf \"%s%s\",$i,(i< NF?OFS:ORS)}","valid":true,"correct":false,"error":null}
|
| 28 |
+
{"id":"awkweave-frozen-0028","request":"For each record, print column 1 and the running mean of column 3 to two decimals.","program":"{s+=$3;n++;printf \"%s %.2f\\n\",$1,s/n}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 20.50\ns2 32.75\ns1 29.17\ns3 47.17\ns2 47.24\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 18.00\ns4 18.75\ns5 29.83\ns6 47.58\n","family":"running_average","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{s+=$3;n++}END{printf \"%s %.2f\\n\",$1,n/s}","valid":true,"correct":false,"error":null}
|
| 29 |
+
{"id":"awkweave-frozen-0029","request":"Print the median of column 3; for an even number of records use the lower middle value.","program":"{v[NR]=$3+0}END{for(i=2;i<=NR;i++){x=v[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];j--}v[j+1]=x}print v[int((NR+1)/2)]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"45\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"19.5\n","family":"median_value","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!n||$3<median)median=$3,n++}END{print median}","valid":false,"correct":false,"error":"awk: line 1: syntax error at or near ,"}
|
| 30 |
+
{"id":"awkweave-frozen-0030","request":"Remove blank lines and lines whose first non-whitespace character is #.","program":"$0 ~ /[^[:space:]]/ && $0 !~ /^[[:space:]]*#/","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"a 1\nb 2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"c 3\nd 4\n","family":"comment_filter","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$1 != \"\" && $1 !~ /^#/","valid":true,"correct":true,"error":null}
|
| 31 |
+
{"id":"awkweave-frozen-0031","request":"Count lines whose first non-whitespace character is #, excluding blank lines.","program":"$0 ~ /^[[:space:]]*#/{n++}END{print n+0}","input_text":"# comment\na 1\n\n # another\nb 2\n","expected_output":"2\n","validation_input":"c 3\n# note\n\nd 4\n","validation_output":"1\n","family":"comment_count","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"$1 == \"#\" && $0 !~ /^ +$/","valid":true,"correct":false,"error":null}
|
| 32 |
+
{"id":"awkweave-frozen-0032","request":"Trim leading and trailing whitespace from each line without altering internal spacing.","program":"{gsub(/^[[:space:]]+|[[:space:]]+$/,\"\",$0);print}","input_text":" a 1 \n\tb 2\t\n","expected_output":"a 1\nb 2\n","validation_input":" c 3 \n d 4 \n","validation_output":"c 3\nd 4\n","family":"trim_lines","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{$1=$1;print}","valid":true,"correct":false,"error":null}
|
| 33 |
+
{"id":"awkweave-frozen-0033","request":"For ISO timestamps in field 1, print year, month, and day separated by hyphens.","program":"BEGIN{OFS=\"-\"}{split($1,date,\"-\");split(date[3],parts,\"T\");print date[1],date[2],parts[1]}","input_text":"2026-12-01T10:00:00Z|10.0.0.1|10.0.0.2|TCP|12|1400\n2026-12-01T10:00:01Z|10.0.0.3|10.0.0.2|UDP|4|240\n2026-12-01T10:00:02Z|10.0.0.1|10.0.0.4|TCP|8|900\n2026-12-01T10:00:03Z|10.0.0.2|10.0.0.5|ICMP|1|64\n2026-12-01T10:00:04Z|10.0.0.3|10.0.0.1|UDP|7|630\n","expected_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","validation_input":"2026-12-01T11:00:00Z|10.1.0.1|10.1.0.2|TCP|5|500\n2026-12-01T11:00:01Z|10.1.0.4|10.1.0.1|TCP|9|1100\n2026-12-01T11:00:02Z|10.1.0.2|10.1.0.4|UDP|3|180\n2026-12-01T11:00:03Z|10.1.0.4|10.1.0.5|TCP|2|250\n","validation_output":"2026-12-01\n2026-12-01\n2026-12-01\n2026-12-01\n","family":"iso_date_parts","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{print $1}","valid":true,"correct":false,"error":null}
|
| 34 |
+
{"id":"awkweave-frozen-0034","request":"Print complete records sorted by column 3 ascending, preserving input order on ties.","program":"{v[NR]=$3+0;line[NR]=$0}END{for(i=2;i<=NR;i++){x=v[i];s=line[i];j=i-1;while(j>=1&&v[j]>x){v[j+1]=v[j];line[j+1]=line[j];j--}v[j+1]=x;line[j+1]=s}for(i=1;i<=NR;i++)print line[i]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns1 temperature 22.0 C\ns2 humidity 45.0 percent\ns2 humidity 47.5 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"sort_numeric_ascending","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{value[NR]=$3;line[NR]=$0}END{for(i=2;i<=NR;i++){v=value[i];text=line[i];j=i-1;while(j>=1&&value[j]>v){value[j+1]=value[j];line[j+1]=line[j];j--}value[j+1]=v;line[j+1]=text}for(i=1;i<=NR;i++)print line[i]}","valid":true,"correct":true,"error":null}
|
| 35 |
+
{"id":"awkweave-frozen-0035","request":"Sum column 3 only for temperature records, printing 0 when no such records exist.","program":"$2==\"temperature\"{s+=$3}END{print s+0}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"42.5\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"37.5\n","family":"sum_if_metric","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if($1==\"temperature\")s+=$3}END{print s+0}","valid":true,"correct":false,"error":null}
|
| 36 |
+
{"id":"awkweave-frozen-0036","request":"Print only the first complete record for each device in column 1.","program":"!seen[$1]++","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns3 pressure 101.2 kPa\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"s4 temperature 18.0 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","family":"first_record_per_device","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"!seen[$1]++","valid":true,"correct":true,"error":null}
|
| 37 |
+
{"id":"awkweave-frozen-0037","request":"Count records per unit in column 4 in first-appearance order.","program":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","input_text":"s1 temperature 20.5 C\ns2 humidity 45.0 percent\ns1 temperature 22.0 C\ns3 pressure 101.2 kPa\ns2 humidity 47.5 percent\n","expected_output":"C 2\npercent 2\nkPa 1\n","validation_input":"s4 temperature 18.0 C\ns4 temperature 19.5 C\ns5 humidity 52.0 percent\ns6 pressure 100.8 kPa\n","validation_output":"C 2\npercent 1\nkPa 1\n","family":"count_units","difficulty":3,"split":"frozen_test","source":"original-frozen-hand-authored","license":"CC-BY-4.0","prediction":"{if(!($4 in counts))order[++n]=$4;counts[$4]++}END{for(i=1;i<=n;i++)print order[i],counts[order[i]]}","valid":true,"correct":true,"error":null}
|
evaluation/v2-v1-frozen.summary.json
ADDED
|
@@ -0,0 +1,200 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/6d42913a-6bf5-49b5-888f-b04f126c3534/full-training/model",
|
| 3 |
+
"split": "frozen_test",
|
| 4 |
+
"rows": 37,
|
| 5 |
+
"valid_at_1": 0.8378378378378378,
|
| 6 |
+
"correct_at_1": 0.1891891891891892,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 13.835761547088623,
|
| 10 |
+
"data_sha256": "48db6edd11b564732f70711f894745b87c756f4eb8c20922fb18466b80771867",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"comment_count": {
|
| 15 |
+
"rows": 1,
|
| 16 |
+
"valid": 1,
|
| 17 |
+
"correct": 0
|
| 18 |
+
},
|
| 19 |
+
"comment_filter": {
|
| 20 |
+
"rows": 1,
|
| 21 |
+
"valid": 1,
|
| 22 |
+
"correct": 1
|
| 23 |
+
},
|
| 24 |
+
"count_units": {
|
| 25 |
+
"rows": 1,
|
| 26 |
+
"valid": 1,
|
| 27 |
+
"correct": 1
|
| 28 |
+
},
|
| 29 |
+
"first_record_per_device": {
|
| 30 |
+
"rows": 1,
|
| 31 |
+
"valid": 1,
|
| 32 |
+
"correct": 1
|
| 33 |
+
},
|
| 34 |
+
"flow_bytes_total": {
|
| 35 |
+
"rows": 1,
|
| 36 |
+
"valid": 1,
|
| 37 |
+
"correct": 0
|
| 38 |
+
},
|
| 39 |
+
"flow_destination_count": {
|
| 40 |
+
"rows": 1,
|
| 41 |
+
"valid": 1,
|
| 42 |
+
"correct": 0
|
| 43 |
+
},
|
| 44 |
+
"flow_protocol_bytes": {
|
| 45 |
+
"rows": 1,
|
| 46 |
+
"valid": 1,
|
| 47 |
+
"correct": 0
|
| 48 |
+
},
|
| 49 |
+
"flow_tcp_count": {
|
| 50 |
+
"rows": 1,
|
| 51 |
+
"valid": 1,
|
| 52 |
+
"correct": 0
|
| 53 |
+
},
|
| 54 |
+
"flow_top_sources": {
|
| 55 |
+
"rows": 1,
|
| 56 |
+
"valid": 0,
|
| 57 |
+
"correct": 0
|
| 58 |
+
},
|
| 59 |
+
"flow_udp_average": {
|
| 60 |
+
"rows": 1,
|
| 61 |
+
"valid": 1,
|
| 62 |
+
"correct": 0
|
| 63 |
+
},
|
| 64 |
+
"group_gid_filter": {
|
| 65 |
+
"rows": 1,
|
| 66 |
+
"valid": 1,
|
| 67 |
+
"correct": 0
|
| 68 |
+
},
|
| 69 |
+
"group_member_counts": {
|
| 70 |
+
"rows": 1,
|
| 71 |
+
"valid": 1,
|
| 72 |
+
"correct": 0
|
| 73 |
+
},
|
| 74 |
+
"group_membership": {
|
| 75 |
+
"rows": 1,
|
| 76 |
+
"valid": 1,
|
| 77 |
+
"correct": 0
|
| 78 |
+
},
|
| 79 |
+
"inventory_average_price": {
|
| 80 |
+
"rows": 1,
|
| 81 |
+
"valid": 1,
|
| 82 |
+
"correct": 0
|
| 83 |
+
},
|
| 84 |
+
"inventory_category_value": {
|
| 85 |
+
"rows": 1,
|
| 86 |
+
"valid": 1,
|
| 87 |
+
"correct": 0
|
| 88 |
+
},
|
| 89 |
+
"inventory_highest_price": {
|
| 90 |
+
"rows": 1,
|
| 91 |
+
"valid": 1,
|
| 92 |
+
"correct": 0
|
| 93 |
+
},
|
| 94 |
+
"inventory_low_stock": {
|
| 95 |
+
"rows": 1,
|
| 96 |
+
"valid": 1,
|
| 97 |
+
"correct": 0
|
| 98 |
+
},
|
| 99 |
+
"inventory_out_of_stock": {
|
| 100 |
+
"rows": 1,
|
| 101 |
+
"valid": 1,
|
| 102 |
+
"correct": 0
|
| 103 |
+
},
|
| 104 |
+
"inventory_units": {
|
| 105 |
+
"rows": 1,
|
| 106 |
+
"valid": 0,
|
| 107 |
+
"correct": 0
|
| 108 |
+
},
|
| 109 |
+
"iso_date_parts": {
|
| 110 |
+
"rows": 1,
|
| 111 |
+
"valid": 1,
|
| 112 |
+
"correct": 0
|
| 113 |
+
},
|
| 114 |
+
"median_value": {
|
| 115 |
+
"rows": 1,
|
| 116 |
+
"valid": 0,
|
| 117 |
+
"correct": 0
|
| 118 |
+
},
|
| 119 |
+
"running_average": {
|
| 120 |
+
"rows": 1,
|
| 121 |
+
"valid": 1,
|
| 122 |
+
"correct": 0
|
| 123 |
+
},
|
| 124 |
+
"sensor_device_average": {
|
| 125 |
+
"rows": 1,
|
| 126 |
+
"valid": 0,
|
| 127 |
+
"correct": 0
|
| 128 |
+
},
|
| 129 |
+
"sensor_device_count": {
|
| 130 |
+
"rows": 1,
|
| 131 |
+
"valid": 1,
|
| 132 |
+
"correct": 1
|
| 133 |
+
},
|
| 134 |
+
"sensor_metric_max": {
|
| 135 |
+
"rows": 1,
|
| 136 |
+
"valid": 0,
|
| 137 |
+
"correct": 0
|
| 138 |
+
},
|
| 139 |
+
"sensor_threshold": {
|
| 140 |
+
"rows": 1,
|
| 141 |
+
"valid": 1,
|
| 142 |
+
"correct": 1
|
| 143 |
+
},
|
| 144 |
+
"sensor_unit_filter": {
|
| 145 |
+
"rows": 1,
|
| 146 |
+
"valid": 1,
|
| 147 |
+
"correct": 0
|
| 148 |
+
},
|
| 149 |
+
"sort_numeric_ascending": {
|
| 150 |
+
"rows": 1,
|
| 151 |
+
"valid": 1,
|
| 152 |
+
"correct": 1
|
| 153 |
+
},
|
| 154 |
+
"sum_if_metric": {
|
| 155 |
+
"rows": 1,
|
| 156 |
+
"valid": 1,
|
| 157 |
+
"correct": 0
|
| 158 |
+
},
|
| 159 |
+
"syslog_cron_timestamp": {
|
| 160 |
+
"rows": 1,
|
| 161 |
+
"valid": 1,
|
| 162 |
+
"correct": 0
|
| 163 |
+
},
|
| 164 |
+
"syslog_error_casefold": {
|
| 165 |
+
"rows": 1,
|
| 166 |
+
"valid": 0,
|
| 167 |
+
"correct": 0
|
| 168 |
+
},
|
| 169 |
+
"syslog_failed_count": {
|
| 170 |
+
"rows": 1,
|
| 171 |
+
"valid": 1,
|
| 172 |
+
"correct": 0
|
| 173 |
+
},
|
| 174 |
+
"syslog_process_counts": {
|
| 175 |
+
"rows": 1,
|
| 176 |
+
"valid": 1,
|
| 177 |
+
"correct": 0
|
| 178 |
+
},
|
| 179 |
+
"syslog_sshd_hosts": {
|
| 180 |
+
"rows": 1,
|
| 181 |
+
"valid": 1,
|
| 182 |
+
"correct": 0
|
| 183 |
+
},
|
| 184 |
+
"syslog_unique_hosts": {
|
| 185 |
+
"rows": 1,
|
| 186 |
+
"valid": 1,
|
| 187 |
+
"correct": 1
|
| 188 |
+
},
|
| 189 |
+
"trim_lines": {
|
| 190 |
+
"rows": 1,
|
| 191 |
+
"valid": 1,
|
| 192 |
+
"correct": 0
|
| 193 |
+
},
|
| 194 |
+
"tsv_to_csv": {
|
| 195 |
+
"rows": 1,
|
| 196 |
+
"valid": 1,
|
| 197 |
+
"correct": 0
|
| 198 |
+
}
|
| 199 |
+
}
|
| 200 |
+
}
|
evaluation/v2-v1-test.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
evaluation/v2-v1-test.summary.json
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/6d42913a-6bf5-49b5-888f-b04f126c3534/full-training/model",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"rows": 3000,
|
| 5 |
+
"valid_at_1": 1.0,
|
| 6 |
+
"correct_at_1": 1.0,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 767.8419840335846,
|
| 10 |
+
"data_sha256": "1ece36b78a66b22837531eb532201c6cd9fb74f3c17b0a4cd6f969e4e9a8d977",
|
| 11 |
+
"transformers_version": "4.57.6",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"average_field": {
|
| 15 |
+
"rows": 77,
|
| 16 |
+
"valid": 77,
|
| 17 |
+
"correct": 77
|
| 18 |
+
},
|
| 19 |
+
"computed_field": {
|
| 20 |
+
"rows": 77,
|
| 21 |
+
"valid": 77,
|
| 22 |
+
"correct": 77
|
| 23 |
+
},
|
| 24 |
+
"conditional_label": {
|
| 25 |
+
"rows": 77,
|
| 26 |
+
"valid": 77,
|
| 27 |
+
"correct": 77
|
| 28 |
+
},
|
| 29 |
+
"count_by_key": {
|
| 30 |
+
"rows": 77,
|
| 31 |
+
"valid": 77,
|
| 32 |
+
"correct": 77
|
| 33 |
+
},
|
| 34 |
+
"count_matches": {
|
| 35 |
+
"rows": 77,
|
| 36 |
+
"valid": 77,
|
| 37 |
+
"correct": 77
|
| 38 |
+
},
|
| 39 |
+
"count_records": {
|
| 40 |
+
"rows": 77,
|
| 41 |
+
"valid": 77,
|
| 42 |
+
"correct": 77
|
| 43 |
+
},
|
| 44 |
+
"csv_filter": {
|
| 45 |
+
"rows": 77,
|
| 46 |
+
"valid": 77,
|
| 47 |
+
"correct": 77
|
| 48 |
+
},
|
| 49 |
+
"dedup_field": {
|
| 50 |
+
"rows": 78,
|
| 51 |
+
"valid": 78,
|
| 52 |
+
"correct": 78
|
| 53 |
+
},
|
| 54 |
+
"dedup_lines": {
|
| 55 |
+
"rows": 77,
|
| 56 |
+
"valid": 77,
|
| 57 |
+
"correct": 77
|
| 58 |
+
},
|
| 59 |
+
"distinct_count": {
|
| 60 |
+
"rows": 76,
|
| 61 |
+
"valid": 76,
|
| 62 |
+
"correct": 76
|
| 63 |
+
},
|
| 64 |
+
"duplicates_only": {
|
| 65 |
+
"rows": 77,
|
| 66 |
+
"valid": 77,
|
| 67 |
+
"correct": 77
|
| 68 |
+
},
|
| 69 |
+
"every_nth": {
|
| 70 |
+
"rows": 76,
|
| 71 |
+
"valid": 76,
|
| 72 |
+
"correct": 76
|
| 73 |
+
},
|
| 74 |
+
"exclude_regex": {
|
| 75 |
+
"rows": 77,
|
| 76 |
+
"valid": 77,
|
| 77 |
+
"correct": 77
|
| 78 |
+
},
|
| 79 |
+
"field_count": {
|
| 80 |
+
"rows": 77,
|
| 81 |
+
"valid": 77,
|
| 82 |
+
"correct": 77
|
| 83 |
+
},
|
| 84 |
+
"first_n": {
|
| 85 |
+
"rows": 77,
|
| 86 |
+
"valid": 77,
|
| 87 |
+
"correct": 77
|
| 88 |
+
},
|
| 89 |
+
"header_filter": {
|
| 90 |
+
"rows": 77,
|
| 91 |
+
"valid": 77,
|
| 92 |
+
"correct": 77
|
| 93 |
+
},
|
| 94 |
+
"header_projection": {
|
| 95 |
+
"rows": 77,
|
| 96 |
+
"valid": 77,
|
| 97 |
+
"correct": 77
|
| 98 |
+
},
|
| 99 |
+
"last_field": {
|
| 100 |
+
"rows": 77,
|
| 101 |
+
"valid": 77,
|
| 102 |
+
"correct": 77
|
| 103 |
+
},
|
| 104 |
+
"line_range": {
|
| 105 |
+
"rows": 77,
|
| 106 |
+
"valid": 77,
|
| 107 |
+
"correct": 77
|
| 108 |
+
},
|
| 109 |
+
"longest_line": {
|
| 110 |
+
"rows": 77,
|
| 111 |
+
"valid": 77,
|
| 112 |
+
"correct": 77
|
| 113 |
+
},
|
| 114 |
+
"max_field": {
|
| 115 |
+
"rows": 77,
|
| 116 |
+
"valid": 77,
|
| 117 |
+
"correct": 77
|
| 118 |
+
},
|
| 119 |
+
"min_field": {
|
| 120 |
+
"rows": 77,
|
| 121 |
+
"valid": 77,
|
| 122 |
+
"correct": 77
|
| 123 |
+
},
|
| 124 |
+
"normalize_whitespace": {
|
| 125 |
+
"rows": 77,
|
| 126 |
+
"valid": 77,
|
| 127 |
+
"correct": 77
|
| 128 |
+
},
|
| 129 |
+
"numeric_filter": {
|
| 130 |
+
"rows": 77,
|
| 131 |
+
"valid": 77,
|
| 132 |
+
"correct": 77
|
| 133 |
+
},
|
| 134 |
+
"numeric_range": {
|
| 135 |
+
"rows": 77,
|
| 136 |
+
"valid": 77,
|
| 137 |
+
"correct": 77
|
| 138 |
+
},
|
| 139 |
+
"project_fields": {
|
| 140 |
+
"rows": 77,
|
| 141 |
+
"valid": 77,
|
| 142 |
+
"correct": 77
|
| 143 |
+
},
|
| 144 |
+
"ratio": {
|
| 145 |
+
"rows": 76,
|
| 146 |
+
"valid": 76,
|
| 147 |
+
"correct": 76
|
| 148 |
+
},
|
| 149 |
+
"regex_filter": {
|
| 150 |
+
"rows": 77,
|
| 151 |
+
"valid": 77,
|
| 152 |
+
"correct": 77
|
| 153 |
+
},
|
| 154 |
+
"replace_underscores": {
|
| 155 |
+
"rows": 77,
|
| 156 |
+
"valid": 77,
|
| 157 |
+
"correct": 77
|
| 158 |
+
},
|
| 159 |
+
"reverse_fields": {
|
| 160 |
+
"rows": 77,
|
| 161 |
+
"valid": 77,
|
| 162 |
+
"correct": 77
|
| 163 |
+
},
|
| 164 |
+
"running_total": {
|
| 165 |
+
"rows": 77,
|
| 166 |
+
"valid": 77,
|
| 167 |
+
"correct": 77
|
| 168 |
+
},
|
| 169 |
+
"skip_header": {
|
| 170 |
+
"rows": 77,
|
| 171 |
+
"valid": 77,
|
| 172 |
+
"correct": 77
|
| 173 |
+
},
|
| 174 |
+
"string_filter": {
|
| 175 |
+
"rows": 77,
|
| 176 |
+
"valid": 77,
|
| 177 |
+
"correct": 77
|
| 178 |
+
},
|
| 179 |
+
"substring": {
|
| 180 |
+
"rows": 77,
|
| 181 |
+
"valid": 77,
|
| 182 |
+
"correct": 77
|
| 183 |
+
},
|
| 184 |
+
"sum_by_key": {
|
| 185 |
+
"rows": 77,
|
| 186 |
+
"valid": 77,
|
| 187 |
+
"correct": 77
|
| 188 |
+
},
|
| 189 |
+
"sum_field": {
|
| 190 |
+
"rows": 77,
|
| 191 |
+
"valid": 77,
|
| 192 |
+
"correct": 77
|
| 193 |
+
},
|
| 194 |
+
"top_three": {
|
| 195 |
+
"rows": 76,
|
| 196 |
+
"valid": 76,
|
| 197 |
+
"correct": 76
|
| 198 |
+
},
|
| 199 |
+
"tsv_projection": {
|
| 200 |
+
"rows": 77,
|
| 201 |
+
"valid": 77,
|
| 202 |
+
"correct": 77
|
| 203 |
+
},
|
| 204 |
+
"uppercase": {
|
| 205 |
+
"rows": 77,
|
| 206 |
+
"valid": 77,
|
| 207 |
+
"correct": 77
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
}
|
export_gguf.sh
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
MODEL_DIR=$1
|
| 4 |
+
OUTPUT_DIR=$2
|
| 5 |
+
BASENAME=${3:-${BASENAME}}
|
| 6 |
+
VENV=/tmp/awkweave-venv
|
| 7 |
+
python3 -m venv --system-site-packages "$VENV"
|
| 8 |
+
"$VENV/bin/pip" install -q --upgrade 'transformers>=4.46,<5' 'gguf>=0.14' 'sentencepiece'
|
| 9 |
+
if [ ! -d /tmp/llama.cpp ]; then
|
| 10 |
+
git clone --depth 1 https://github.com/ggml-org/llama.cpp.git /tmp/llama.cpp
|
| 11 |
+
fi
|
| 12 |
+
cmake -S /tmp/llama.cpp -B /tmp/llama.cpp/build -DGGML_NATIVE=OFF -DLLAMA_CURL=OFF -DCMAKE_BUILD_TYPE=Release
|
| 13 |
+
cmake --build /tmp/llama.cpp/build --target llama-quantize llama-completion -j 8
|
| 14 |
+
mkdir -p "$OUTPUT_DIR"
|
| 15 |
+
"$VENV/bin/python" /tmp/llama.cpp/convert_hf_to_gguf.py "$MODEL_DIR" --outtype f16 --outfile "$OUTPUT_DIR/${BASENAME}.f16.gguf"
|
| 16 |
+
/tmp/llama.cpp/build/bin/llama-quantize "$OUTPUT_DIR/${BASENAME}.f16.gguf" "$OUTPUT_DIR/${BASENAME}.Q8_0.gguf" Q8_0
|
| 17 |
+
/tmp/llama.cpp/build/bin/llama-quantize "$OUTPUT_DIR/${BASENAME}.f16.gguf" "$OUTPUT_DIR/${BASENAME}.Q4_K_M.gguf" Q4_K_M
|
| 18 |
+
rm "$OUTPUT_DIR/${BASENAME}.f16.gguf"
|
| 19 |
+
"$VENV/bin/python" - "$MODEL_DIR" <<'PY'
|
| 20 |
+
import sys
|
| 21 |
+
from pathlib import Path
|
| 22 |
+
from transformers import AutoTokenizer
|
| 23 |
+
from awkweave.prompts import messages
|
| 24 |
+
tokenizer = AutoTokenizer.from_pretrained(sys.argv[1])
|
| 25 |
+
prompt = tokenizer.apply_chat_template(messages("Print the last field of every input line.", "a 1\nb 2\n"), tokenize=False, add_generation_prompt=True)
|
| 26 |
+
Path("/tmp/awkweave-gguf-prompt.txt").write_text(prompt, encoding="utf-8")
|
| 27 |
+
PY
|
| 28 |
+
/tmp/llama.cpp/build/bin/llama-completion -m "$OUTPUT_DIR/${BASENAME}.Q4_K_M.gguf" -f /tmp/awkweave-gguf-prompt.txt -n 64 --temp 0 -no-cnv > "$OUTPUT_DIR/gguf-smoke.txt" 2>&1
|
| 29 |
+
"$VENV/bin/python" - "$OUTPUT_DIR/gguf-smoke.txt" <<'PY'
|
| 30 |
+
import sys
|
| 31 |
+
from pathlib import Path
|
| 32 |
+
output = Path(sys.argv[1]).read_text(encoding="utf-8")
|
| 33 |
+
if "$NF" not in output:
|
| 34 |
+
raise SystemExit("GGUF smoke generation did not contain the expected $NF program")
|
| 35 |
+
PY
|
| 36 |
+
git -C /tmp/llama.cpp rev-parse HEAD > "$OUTPUT_DIR/llama-cpp-commit.txt"
|
| 37 |
+
(cd "$OUTPUT_DIR" && sha256sum *.gguf > SHA256SUMS)
|
| 38 |
+
ls -lh "$OUTPUT_DIR"
|
generation_config.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"bos_token_id": 151643,
|
| 3 |
+
"eos_token_id": [
|
| 4 |
+
151645,
|
| 5 |
+
151643
|
| 6 |
+
],
|
| 7 |
+
"max_new_tokens": 192,
|
| 8 |
+
"pad_token_id": 151643,
|
| 9 |
+
"repetition_penalty": 1.05,
|
| 10 |
+
"temperature": null,
|
| 11 |
+
"top_k": null,
|
| 12 |
+
"top_p": null,
|
| 13 |
+
"transformers_version": "4.57.6"
|
| 14 |
+
}
|