Jq
1 program
Added 2025-10-22T16:09:35Z
Model: anthropic/claude-3.5-sonnetTemp: 0.4
Evidence
Report issue
View issues
Aliases: jq
Provenance: commit d0068e0a88 · authored 2025-10-22T18:09:35+02:00 · model anthropic/claude-3.5-sonnet
Sources mentioning this language
7 sources · pl_id:
pl/jqWikipedia infobox ↗
Pulled from the
wikimedia/structured-wikipedia
snapshot — see data/raw/wikipedia_pl_facts.*.jsonl and
pl_fact.csv for the long-table provenance.
| Paradigms | purely functional · json -oriented processing · tacit |
|---|---|
| Typing | dynamic |
| Designed by | Stephen Dolan |
| First appeared | 2012 |
| Influenced by | sed |
| License | MIT |
| Implemented in | Haskell (original) C (later) |
| Homepage | http://jqlang.org |
Extensions claimed by this language
1 claim. Each row is one upstream assertion with its strength.
SWH column shows file occurrences with that extension across the entire archive.| Extension | Source | Strength | SWH |
|---|---|---|---|
.jq | linguist | primary | 27.6K files |
Related languages
LLM-contributed programs
JSON Data Transformation Example
Provenance: commit d0068e0a88 · authored 2025-10-22T18:09:35+02:00 · model anthropic/claude-3.5-sonnet · Temp 0.4
def has($key): has($key) as $x | if $x then $x else false end;
def map_values(f): .[] |= f;
def to_entries: [keys_unsorted[] as $k | {key: $k, value: .[$k]}];
def from_entries:
map({(.key // .Key // .name // .Name): (if has("value") then .value else .Value end)}) | add;
def with_entries(f): to_entries | map(f) | from_entries;
def reverse: [.[length - 1 - range(0;length)]];
def indices($i): if type == "array" then range(0;length) as $ix | select(.[$ix] == $i) | $ix
elif type == "string" then explode | indices($i) end;
Real programs from Software Heritage
No SWH evidence indexed yet for this language. (Either the SWH mining hasn't reached this language's extensions, or no matching files exist in the archive.)