Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
25
73
family
stringclasses
9 values
source
stringclasses
1 value
weakness
stringclasses
25 values
origin
stringclasses
3 values
preference_kind
stringclasses
2 values
models
listlengths
2
2
conversations
listlengths
2
2
chosen
stringlengths
98
973
rejected
stringlengths
97
1.27k
dpo.binaries.s16be.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\n ...
```elixir defmodule S16BE do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_ot...
defmodule S16BE do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(16)>>), do: {:ok, n} def decode(_other), d...
dpo.binaries.s16be.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\n ...
```elixir defmodule S16BE do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_ot...
defmodule S16BE do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16), _rest::binary>>), do: {:ok, n} def decod...
dpo.binaries.s16be.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\n ...
```elixir defmodule S16BE do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_ot...
defmodule S16BE do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(16)>>), do: {:ok, n} def decode(_other), do...
dpo.binaries.s16be.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE02` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\...
```elixir defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_...
defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(16)>>), do: {:ok, n} def decode(_other),...
dpo.binaries.s16be.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE02` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\...
```elixir defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_...
defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16), _rest::binary>>), do: {:ok, n} def dec...
dpo.binaries.s16be.v2.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE02` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\...
```elixir defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_...
defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(16)>>), do: {:ok, n} def decode(_other), ...
dpo.binaries.s16be.v2.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE02` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\...
```elixir defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_...
The user wants me to write this Elixir module. Let me think about the requirements carefully and then write clean, idiomatic code. Thinking complete. ```elixir defmodule S16BE02 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-intege...
dpo.binaries.s16be.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE03` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\...
```elixir defmodule S16BE03 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_...
defmodule S16BE03 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(16)>>), do: {:ok, n} def decode(_other),...
dpo.binaries.s16be.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE03` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\...
```elixir defmodule S16BE03 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_...
defmodule S16BE03 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16), _rest::binary>>), do: {:ok, n} def dec...
dpo.binaries.s16be.v3.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S16BE03` with:\n\n@spec encode(-32768..32767) :: <<_::16>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :error\...
```elixir defmodule S16BE03 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(16)>>), do: {:ok, n} def decode(_...
defmodule S16BE03 do @spec encode(-32768..32767) :: <<_::16>> def encode(n) when is_integer(n) and n >= -32768 and n <= 32767 do <<n::signed-big-integer-size(16)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(16)>>), do: {:ok, n} def decode(_other), ...
dpo.binaries.s24le.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :erro...
```elixir defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(24)>>), do: {:ok, n} def decode(_o...
dpo.binaries.s24le.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :erro...
```elixir defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24), _rest::binary>>), do: {:ok, ...
dpo.binaries.s24le.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :erro...
```elixir defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(24)>>), do: {:ok, n} def deco...
dpo.binaries.s24le.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :erro...
```elixir defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
Here is a draft: ```elixir defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end ``` Final version: ```elixir defmodule S24LE do @spec encode(-8388608..8388607) :: <<_::24>> def en...
dpo.binaries.s24le.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE02` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :er...
```elixir defmodule S24LE02 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE02 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(24)>>), do: {:ok, n} def decode(...
dpo.binaries.s24le.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE02` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :er...
```elixir defmodule S24LE02 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE02 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24), _rest::binary>>), do: {:ok...
dpo.binaries.s24le.v2.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE02` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :er...
```elixir defmodule S24LE02 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE02 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(24)>>), do: {:ok, n} def de...
dpo.binaries.s24le.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE03` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :er...
```elixir defmodule S24LE03 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE03 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(24)>>), do: {:ok, n} def decode(...
dpo.binaries.s24le.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE03` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :er...
```elixir defmodule S24LE03 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE03 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24), _rest::binary>>), do: {:ok...
dpo.binaries.s24le.v3.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S24LE03` with:\n\n@spec encode(-8388608..8388607) :: <<_::24>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} | :er...
```elixir defmodule S24LE03 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(24)>>), do: {:ok, n} ...
defmodule S24LE03 do @spec encode(-8388608..8388607) :: <<_::24>> def encode(n) when is_integer(n) and n >= -8388608 and n <= 8388607 do <<n::signed-little-integer-size(24)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(24)>>), do: {:ok, n} def de...
dpo.binaries.s32be.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} |...
```elixir defmodule S32BE do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:ok,...
defmodule S32BE do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(32)>>), do: {:ok, n} d...
dpo.binaries.s32be.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} |...
```elixir defmodule S32BE do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:ok,...
defmodule S32BE do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32), _rest::binary>>), do: ...
dpo.binaries.s32be.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} |...
```elixir defmodule S32BE do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:ok,...
defmodule S32BE do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(32)>>), do: {:ok, n} de...
dpo.binaries.s32be.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE02` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule S32BE02 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:o...
defmodule S32BE02 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(32)>>), do: {:ok, n} ...
dpo.binaries.s32be.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE02` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule S32BE02 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:o...
defmodule S32BE02 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32), _rest::binary>>), do...
dpo.binaries.s32be.v2.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE02` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule S32BE02 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:o...
defmodule S32BE02 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(32)>>), do: {:ok, n} ...
dpo.binaries.s32be.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE03` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:o...
defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(32)>>), do: {:ok, n} ...
dpo.binaries.s32be.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE03` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:o...
defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32), _rest::binary>>), do...
dpo.binaries.s32be.v3.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE03` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:o...
defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(32)>>), do: {:ok, n} ...
dpo.binaries.s32be.v3.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S32BE03` with:\n\n@spec encode(-2147483648..2147483647) :: <<_::32>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<n::signed-big-integer-size(32)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(32)>>), do: {:o...
The user wants me to write this Elixir module. Let me think about the requirements carefully and then write clean, idiomatic code. Thinking complete. ```elixir defmodule S32BE03 do @spec encode(-2147483648..2147483647) :: <<_::32>> def encode(n) when is_integer(n) and n >= -2147483648 and n <= 2147483647 do <<...
dpo.binaries.s64be.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: ...
```elixir defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signe...
defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-i...
dpo.binaries.s64be.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: ...
```elixir defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signe...
defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-inte...
dpo.binaries.s64be.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: ...
```elixir defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signe...
defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-in...
dpo.binaries.s64be.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: ...
```elixir defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signe...
The user wants me to write this Elixir module. Let me think about the requirements carefully and then write clean, idiomatic code. Thinking complete. ```elixir defmodule S64BE do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and ...
dpo.binaries.s64be.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE02` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :...
```elixir defmodule S64BE02 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::sig...
defmodule S64BE02 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little...
dpo.binaries.s64be.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE02` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :...
```elixir defmodule S64BE02 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::sig...
defmodule S64BE02 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-in...
dpo.binaries.s64be.v2.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE02` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :...
```elixir defmodule S64BE02 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::sig...
defmodule S64BE02 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-...
dpo.binaries.s64be.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE03` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :...
```elixir defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::sig...
defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little...
dpo.binaries.s64be.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE03` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :...
```elixir defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::sig...
defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-in...
dpo.binaries.s64be.v3.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE03` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :...
```elixir defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::sig...
defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-...
dpo.binaries.s64be.v3.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S64BE03` with:\n\n@spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :...
```elixir defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 and n <= 9223372036854775807 do <<n::signed-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::sig...
The user wants me to write this Elixir module. Let me think about the requirements carefully and then write clean, idiomatic code. Thinking complete. ```elixir defmodule S64BE03 do @spec encode(-9223372036854775808..9223372036854775807) :: <<_::64>> def encode(n) when is_integer(n) and n >= -9223372036854775808 an...
dpo.binaries.u64be.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} |...
```elixir defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do: {...
defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(64)>>), do: {:ok, n}...
dpo.binaries.u64be.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} |...
```elixir defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do: {...
defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64), _rest::binary>>), ...
dpo.binaries.u64be.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} |...
```elixir defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do: {...
defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(64)>>), do: {:ok, n} de...
dpo.binaries.u64be.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()} |...
```elixir defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do: {...
Sure! Here is the module you asked for: ```elixir defmodule U64BE do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n...
dpo.binaries.u64be.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE02` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do:...
defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(64)>>), do: {:ok, ...
dpo.binaries.u64be.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE02` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do:...
defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64), _rest::binary>>)...
dpo.binaries.u64be.v2.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE02` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do:...
defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(64)>>), do: {:ok, n} ...
dpo.binaries.u64be.v2.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE02` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do:...
Sure! Here is the module you asked for: ```elixir defmodule U64BE02 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<...
dpo.binaries.u64be.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE03` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule U64BE03 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do:...
defmodule U64BE03 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(64)>>), do: {:ok, ...
dpo.binaries.u64be.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE03` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule U64BE03 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do:...
defmodule U64BE03 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64), _rest::binary>>)...
dpo.binaries.u64be.v3.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `U64BE03` with:\n\n@spec encode(0..18446744073709551615) :: <<_::64>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer()}...
```elixir defmodule U64BE03 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-big-integer-size(64)>>), do:...
defmodule U64BE03 do @spec encode(0..18446744073709551615) :: <<_::64>> def encode(n) when is_integer(n) and n >= 0 and n <= 18446744073709551615 do <<n::unsigned-big-integer-size(64)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(64)>>), do: {:ok, n} ...
dpo.binaries.s40le.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer(...
```elixir defmodule S40LE do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(40)...
defmodule S40LE do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(40)>>), do: {:ok...
dpo.binaries.s40le.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer(...
```elixir defmodule S40LE do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(40)...
defmodule S40LE do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(40), _rest::b...
dpo.binaries.s40le.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, integer(...
```elixir defmodule S40LE do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(40)...
defmodule S40LE do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(40)>>), do:...
dpo.binaries.s40le.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE02` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, intege...
```elixir defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(4...
defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(40)>>), do: {:...
dpo.binaries.s40le.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE02` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, intege...
```elixir defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(4...
defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(40), _rest:...
dpo.binaries.s40le.v2.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE02` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, intege...
```elixir defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(4...
defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(40)>>), d...
dpo.binaries.s40le.v2.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE02` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, intege...
```elixir defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(4...
Here is a draft: ```elixir defmodule S40LE02 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end ``` Final version: ```elixir defmodule S40LE02 do @spec encode(-549755813888..5...
dpo.binaries.s40le.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE03` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, intege...
```elixir defmodule S40LE03 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(4...
defmodule S40LE03 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-big-integer-size(40)>>), do: {:...
dpo.binaries.s40le.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE03` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, intege...
```elixir defmodule S40LE03 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(4...
defmodule S40LE03 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(40), _rest:...
dpo.binaries.s40le.v3.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `S40LE03` with:\n\n@spec encode(-549755813888..549755813887) :: <<_::40>>\n def encode(n)\n\n @spec decode(binary()) :: {:ok, intege...
```elixir defmodule S40LE03 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::signed-little-integer-size(4...
defmodule S40LE03 do @spec encode(-549755813888..549755813887) :: <<_::40>> def encode(n) when is_integer(n) and n >= -549755813888 and n <= 549755813887 do <<n::signed-little-integer-size(40)>> end @spec decode(binary()) :: {:ok, integer()} | :error def decode(<<n::unsigned-little-integer-size(40)>>), d...
dpo.binaries.lenbox.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBox` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\n ...
```elixir defmodule LenBox do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) do...
defmodule LenBox do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(16), rest::binary>>) do if...
dpo.binaries.lenbox.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBox` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\n ...
```elixir defmodule LenBox do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) do...
defmodule LenBox do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) do if by...
dpo.binaries.lenbox.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBox02` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBox02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) ...
defmodule LenBox02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(16), rest::binary>>) do ...
dpo.binaries.lenbox.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBox02` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBox02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) ...
defmodule LenBox02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) do if ...
dpo.binaries.lenbox.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBox03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBox03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) ...
defmodule LenBox03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(16), rest::binary>>) do ...
dpo.binaries.lenbox.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBox03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBox03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) ...
defmodule LenBox03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) do if ...
dpo.binaries.lenbox.v3.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBox03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBox03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(16), rest::binary>>) ...
Here is a draft: ```elixir defmodule LenBox03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-big-integer-size(16), payload::binary>> end ``` Final version: ```elixir defmodule LenBox03 do @spec encode(binary()) :: binary() def encode...
dpo.binaries.lenboxle.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBoxLE do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bina...
defmodule LenBoxLE do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(32), rest::binary>>) do ...
dpo.binaries.lenboxle.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBoxLE do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bina...
defmodule LenBoxLE do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::binary>>) do ...
dpo.binaries.lenboxle.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule LenBoxLE do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bina...
Sure! Here is the module you asked for: ```elixir defmodule LenBoxLE do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::uns...
dpo.binaries.lenboxle.v2.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE02` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule LenBoxLE02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bi...
defmodule LenBoxLE02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(32), rest::binary>>) do ...
dpo.binaries.lenboxle.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE02` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule LenBoxLE02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bi...
defmodule LenBoxLE02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::binary>>) do...
dpo.binaries.lenboxle.v3.bin-endian
binaries
elixir_dpo_failv0
bin-endian
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule LenBoxLE03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bi...
defmodule LenBoxLE03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-big-integer-size(32), rest::binary>>) do ...
dpo.binaries.lenboxle.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule LenBoxLE03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bi...
defmodule LenBoxLE03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::binary>>) do...
dpo.binaries.lenboxle.v3.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `LenBoxLE03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule LenBoxLE03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<len::unsigned-little-integer-size(32), rest::bi...
Here is a draft: ```elixir defmodule LenBoxLE03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<byte_size(payload)::unsigned-little-integer-size(32), payload::binary>> end ``` Final version: ```elixir defmodule LenBoxLE03 do @spec encode(binary()) :: binary() def...
dpo.binaries.mpxframe.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule MpxFrame do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: {:...
defmodule MpxFrame do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) >= len, do: {:ok, binary...
dpo.binaries.mpxframe.err-swallow
binaries
elixir_dpo_failv0
err-swallow
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule MpxFrame do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: {:...
defmodule MpxFrame do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<_magic::binary-size(4), _version, len, rest::binary>>) do if byte_size(rest) =...
dpo.binaries.mpxframe.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :error\...
```elixir defmodule MpxFrame do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: {:...
Sure! Here is the module you asked for: ```elixir defmodule MpxFrame do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>)...
dpo.binaries.mpxframe.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame02` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule MpxFrame02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: ...
defmodule MpxFrame02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) >= len, do: {:ok, bina...
dpo.binaries.mpxframe.v2.err-swallow
binaries
elixir_dpo_failv0
err-swallow
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame02` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule MpxFrame02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: ...
defmodule MpxFrame02 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<_magic::binary-size(4), _version, len, rest::binary>>) do if byte_size(rest)...
dpo.binaries.mpxframe.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule MpxFrame03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: ...
defmodule MpxFrame03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) >= len, do: {:ok, bina...
dpo.binaries.mpxframe.v3.err-swallow
binaries
elixir_dpo_failv0
err-swallow
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule MpxFrame03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: ...
defmodule MpxFrame03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<_magic::binary-size(4), _version, len, rest::binary>>) do if byte_size(rest)...
dpo.binaries.mpxframe.v3.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `MpxFrame03` with:\n\n@spec encode(binary()) :: binary()\n def encode(payload)\n\n @spec decode(binary()) :: {:ok, binary()} | :erro...
```elixir defmodule MpxFrame03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::binary>> end @spec decode(binary()) :: {:ok, binary()} | :error def decode(<<"MPX1", 1, len, rest::binary>>) do if byte_size(rest) == len, do: ...
The user wants me to write this Elixir module. Let me think about the requirements carefully and then write clean, idiomatic code. Thinking complete. ```elixir defmodule MpxFrame03 do @spec encode(binary()) :: binary() def encode(payload) when is_binary(payload) do <<"MPX1", 1, byte_size(payload), payload::bin...
dpo.binaries.leb128.bin-bitwise
binaries
elixir_dpo_failv0
bin-bitwise
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb128` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned littl...
```elixir defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = acc...
dpo.binaries.leb128.edge-empty
binaries
elixir_dpo_failv0
edge-empty
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb128` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned littl...
```elixir defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = acc + ((byte &&& 0x7F) <<< (7 * count)) if...
dpo.binaries.leb128.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb128` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned littl...
```elixir defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = acc + ((byte &&& 0x7F) <<< (7 * count)) ...
dpo.binaries.leb128.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb128` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned littl...
```elixir defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
Here is a draft: ```elixir defmodule Leb128 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do ``` ...
dpo.binaries.leb128.v2.bin-bitwise
binaries
elixir_dpo_failv0
bin-bitwise
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12802` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = a...
dpo.binaries.leb128.v2.edge-empty
binaries
elixir_dpo_failv0
edge-empty
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12802` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = acc + ((byte &&& 0x7F) <<< (7 * count)) ...
dpo.binaries.leb128.v2.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12802` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = acc + ((byte &&& 0x7F) <<< (7 * count)) ...
dpo.binaries.leb128.v2.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12802` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
The user wants me to write this Elixir module. Let me think about the requirements carefully and then write clean, idiomatic code. Thinking complete. ```elixir defmodule Leb12802 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) de...
dpo.binaries.leb128.v3.bin-bitwise
binaries
elixir_dpo_failv0
bin-bitwise
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12803` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = a...
dpo.binaries.leb128.v3.edge-empty
binaries
elixir_dpo_failv0
edge-empty
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12803` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = acc + ((byte &&& 0x7F) <<< (7 * count)) ...
dpo.binaries.leb128.v3.bin-size-guard
binaries
elixir_dpo_failv0
bin-size-guard
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12803` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise next = acc + ((byte &&& 0x7F) <<< (7 * count)) ...
dpo.binaries.leb128.v3.format-hygiene.h
binaries
elixir_dpo_failv0
format-hygiene
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Leb12803` with:\n\n@spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error\n def decode(bin)\n\nDecode an unsigned lit...
```elixir defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do import Bitwise ...
Here is a draft: ```elixir defmodule Leb12803 do @spec decode(binary()) :: {:ok, {non_neg_integer(), binary()}} | :error def decode(bin) when is_binary(bin), do: dec(bin, 0, 0) defp dec(_rest, _acc, 5), do: :error defp dec(<<>>, _acc, _count), do: :error defp dec(<<byte, rest::binary>>, acc, count) do ```...
dpo.binaries.zigzag16.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Zigzag16` with:\n\n@spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer()\n def encode(n)\n\n @spec decode(non_neg_intege...
```elixir defmodule Zigzag16 do @spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer() def encode(n) when is_integer(n) and n >= -2_147_483_648 and n <= 2_147_483_647 do import Bitwise bxor(n <<< 1, n >>> 31) end @spec decode(non_neg_integer()) :: integer() def decode(z) when is_integer(z) ...
defmodule Zigzag16 do @spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer() def encode(n) when is_integer(n) and n >= -2_147_483_648 and n <= 2_147_483_647 do import Bitwise abs(n) * 2 end @spec decode(non_neg_integer()) :: integer() def decode(z) when is_integer(z) and z >= 0 do impor...
dpo.binaries.zigzag16.bin-bitwise
binaries
elixir_dpo_failv0
bin-bitwise
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Zigzag16` with:\n\n@spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer()\n def encode(n)\n\n @spec decode(non_neg_intege...
```elixir defmodule Zigzag16 do @spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer() def encode(n) when is_integer(n) and n >= -2_147_483_648 and n <= 2_147_483_647 do import Bitwise bxor(n <<< 1, n >>> 31) end @spec decode(non_neg_integer()) :: integer() def decode(z) when is_integer(z) ...
defmodule Zigzag16 do @spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer() def encode(n) when is_integer(n) and n >= -2_147_483_648 and n <= 2_147_483_647 do import Bitwise bxor(n <<< 1, n >>> 31) end @spec decode(non_neg_integer()) :: integer() def decode(z) when is_integer(z) and z >= 0...
dpo.binaries.zigzag16.v2.bin-signed
binaries
elixir_dpo_failv0
bin-signed
designed
correctness
[ "gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5" ]
[ { "from": "system", "value": "You are a friendly coding assistant that helps with software engineering tasks." }, { "from": "human", "value": "Write a module `Zigzag1602` with:\n\n@spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer()\n def encode(n)\n\n @spec decode(non_neg_inte...
```elixir defmodule Zigzag1602 do @spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer() def encode(n) when is_integer(n) and n >= -2_147_483_648 and n <= 2_147_483_647 do import Bitwise bxor(n <<< 1, n >>> 31) end @spec decode(non_neg_integer()) :: integer() def decode(z) when is_integer(z...
defmodule Zigzag1602 do @spec encode(-2_147_483_648..2_147_483_647) :: non_neg_integer() def encode(n) when is_integer(n) and n >= -2_147_483_648 and n <= 2_147_483_647 do import Bitwise abs(n) * 2 end @spec decode(non_neg_integer()) :: integer() def decode(z) when is_integer(z) and z >= 0 do imp...
End of preview. Expand in Data Studio

Elixir preference optimization β€” DPO and KTO sets

909 preference rows in 9 configs for Elixir code models: 654 DPO pairs, 76 balanced KTO examples, and 179 rows from the on-policy Qwen2.5-Coder-3B refinement rounds. Every chosen completion was executed and passed the project's isolated Elixir scorer (compile + ExUnit + static contract checks); every rejected completion was confirmed to fail the intended gate. The frozen evaluation packs are held out: measured prompt-level and module-level collisions are zero for every config.

Do not execute the rejected completions. They are deliberately broken, and some contain intentional defects (swallowed errors, wrong endianness, unsafe state handling). Treat every rejected field as hostile input.

What "preference" means here

These pairs are not style opinions. They encode executable correctness and static contracts for Elixir:

  • preference_kind: correctness β€” the chosen module compiles and passes its tests; the rejected one fails to compile, fails a test, or drops a required contract.
  • preference_kind: functional-style β€” both sides may behave correctly, but the rejected side uses process state, side effects or a non-idiomatic construct where the task explicitly asked for pure functional code. The rejection is a violated static gate, not a matter of taste.

The failure modes were mined from real model output, then re-targeted onto original tasks with new module names and specifications, so no benchmark task is copied into the data.

Configs

config rows format what it is
dpo-failv0 654 DPO pairs Mined from evaluation failures of gemma12b-elixir-cpt-q4 (40/128) and qwen35-9b-elixir-cpt-sft-q5 (46/128). 534 correctness pairs + 120 functional-style pairs.
kto-v0 76 KTO Balanced 38 accepted / 38 rejected. Each original task contributes exactly one accepted and one rejected completion; 40 functional-style + 36 correctness rows.
onpolicy-micro-dpo-v1 36 DPO pairs First on-policy DPO round for the Qwen2.5-Coder-3B depth-expanded checkpoint.
onpolicy-round02-dpo 25 DPO pairs Round 2: up to three fresh, scorer-gated prompts per construction weakness; format-only pairs excluded.
onpolicy-round04-dpo 11 DPO pairs Round 4.
onpolicy-round13-dpo 17 DPO pairs Round 13.
onpolicy-round03-kto 34 KTO Round 3 KTO: OTP and bit-syntax focus.
onpolicy-round06-kto 22 KTO Round 6 KTO: functional-style focus (12 functional rows).
onpolicy-round11-kto 34 KTO Round 11 KTO: four rows per family.

DPO family coverage (dpo-failv0): otp 134, functional 120, binaries 119, beam 66, stdlib 49, errors 47, abstractions 41, core 41, collections 37. The weakness taxonomy is distilled from the failing completions β€” the largest buckets are format-hygiene (114), enum-state (99), err-swallow (42), edge-empty (42), functional-style-process-state (40), functional-style-agent-state (40), bin-size-guard (33) and bin-endian (24); the complete per-weakness counts are in metadata/dataset_stats.json.

KTO family coverage: functional 40, otp 12, binaries 10, protocol 4, stdlib 4, errors 2, core 2, format 2.

The onpolicy-* configs are checkpoint-specific artifacts of one model's targeted rounds; each round's build manifest (base checkpoint, selection rules, counts, validation) is in metadata/manifests/. If you want a single general preference set, use dpo-failv0 (or kto-v0 for the balanced KTO formulation).

Row schemas

DPO (dpo-failv0 and the on-policy DPO configs) β€” ShareGPT prompt plus two string completions:

{
  "id": "dpo.binaries.s16be.bin-endian",
  "family": "binaries",
  "source": "elixir_dpo_failv0",
  "weakness": "bin-endian",
  "origin": "designed",
  "preference_kind": "correctness",
  "models": ["gemma12b-elixir-cpt-q4", "qwen35-9b-elixir-cpt-sft-q5"],
  "conversations": [
    {"from": "system", "value": "You are a friendly coding assistant ..."},
    {"from": "human", "value": "Write a module `S16BE` with: ..."}
  ],
  "chosen": "```elixir\ndefmodule S16BE do ... end\n```",
  "rejected": "```elixir\ndefmodule S16BE do ... end\n```"
}

KTO (kto-v0 and the on-policy KTO configs) β€” TRL conversational schema with a boolean label:

{
  "id": "kto.functional.map-pipeline.chosen",
  "family": "functional",
  "label": true,
  "preference_kind": "functional-style",
  "weakness": "functional-pipeline",
  "prompt": [
    {"role": "system", "content": "You are a friendly coding assistant ..."},
    {"role": "user", "content": "Write a module `KtoFnMapPipeline` with: ..."}
  ],
  "completion": [{"role": "assistant", "content": "```elixir ... ```"}]
}

In DPO files, models records which checkpoints' failures motivated the pair and origin distinguishes designed, handmade and functional-style rows. The on-policy files carry the same fields plus the round-specific annotations.

Loading

from datasets import load_dataset

dpo = load_dataset("jmarceno/elixir-preference", "dpo-failv0", split="train")
kto = load_dataset("jmarceno/elixir-preference", "kto-v0", split="train")
print(dpo[0]["chosen"][:200])
print(kto[0]["label"], kto[0]["prompt"])

Raw JSONL:

from huggingface_hub import hf_hub_download

path = hf_hub_download(
    "jmarceno/elixir-preference", "data/dpo/dpo_failv0.jsonl", repo_type="dataset"
)

Shaping the DPO file for TRL DPOTrainer:

from datasets import load_dataset

ROLE = {"system": "system", "human": "user", "gpt": "assistant"}

def to_dpo(row):
    return {
        "prompt": [
            {"role": ROLE[turn["from"]], "content": turn["value"]}
            for turn in row["conversations"]
        ],
        "chosen": [{"role": "assistant", "content": row["chosen"]}],
        "rejected": [{"role": "assistant", "content": row["rejected"]}],
    }

ds = load_dataset("jmarceno/elixir-preference", "dpo-failv0", split="train")
ds = ds.map(to_dpo, remove_columns=ds.column_names)

The KTO configs already match the TRL KTOTrainer columns (prompt, completion, label) and need no conversion.

Quality gates

  • Every chosen completion was executed through the real scorer: compile, generated ExUnit tests, and static contract checks. A row only ships when the chosen side has zero test failures and a clean static result; compile warnings are counted and reported.
  • Every rejected completion fails the declared gate for a reason recorded in weakness. For functional-style pairs, the rejected side is behaviourally correct and fails only the declared style gate β€” that is the teaching signal.
  • Ids are unique per file, and prompts are unique per file.
  • Zero exact prompt collisions and zero module-name collisions against both frozen evaluation packs.
  • metadata/sha256sums.txt lets you confirm the bytes you downloaded are the bytes that passed those gates.

Intended use and limitations

  • Intended: DPO or KTO preference tuning of Elixir code models that already produce working code, especially for OTP timeouts, error handling, edge cases, bit syntax and functional style.
  • Not intended: as a standalone fine-tuning dataset (use an SFT set first), for instruction-following evaluation, for multi-turn agent data, or for any non-Elixir language.
  • 909 rows is small by design. These sets target specific failure families observed in this project's models; they are not a general Elixir preference corpus and will not teach unrelated skills.
  • Rejected completions are broken on purpose; never execute them in an unsandboxed process.
  • Do not treat the size of a configuration as its importance: the on-policy rounds exist to document a training loop, not to be pooled blindly into a new run.

Provenance and licensing

Rows were authored for this project and mined from this project's own model evaluations on original tasks. No benchmark task and no upstream repository code is redistributed here. The CPT corpora (which do contain upstream Elixir/Erlang sources) are published separately.

Released under Apache-2.0. "Elixir" and "Erlang" are trademarks of their respective owners; this dataset is not affiliated with or endorsed by the Elixir or Erlang teams.

Repository layout

data/dpo/dpo_failv0.jsonl                        dpo-failv0
data/kto/kto_v0.jsonl                            kto-v0
data/onpolicy/qwen25c3b_micro_*_dpo.jsonl        onpolicy-*-dpo configs
data/onpolicy/qwen25c3b_micro_*_kto.jsonl        onpolicy-*-kto configs
metadata/dataset_stats.json                      per-file rows, hashes, families, pack overlap
metadata/sha256sums.txt                          data-file checksums
metadata/provenance.json                         source commit, exclusions, build note
metadata/manifests/*.json                        per-round build manifests

Citation

@dataset{jmarceno_elixir_preference_2026,
  author    = {jmarceno},
  title     = {Elixir preference optimization β€” DPO and KTO sets},
  year      = {2026},
  publisher = {Hugging Face},
  url       = {https://huggingface.co/datasets/jmarceno/elixir-preference},
  note      = {Apache-2.0}
}
Downloads last month
81