conversations
listlengths
2
3
source
stringclasses
1 value
stack
stringclasses
1 value
[ { "from": "system", "value": "Convert output from JSON to Unix\n" }, { "from": "human", "value": "#!/usr/bin/jq -rMf\n\n# List modules in order of the gap between their timestamps.\n# May show misleading outliers due to recently-frozen modules\n# and in-progress bot passes.\n\n# Usage: wget -q -...
jsoniq
chosen
[ { "from": "system", "value": "Switch from draft to prerelease to make Github release public.\n\n[Build]\n" }, { "from": "human", "value": "{\n \"tag_name\": \"v1.6.1\",\n \"name\": \"The Aristotle release\",\n \"draft\": true,\n \"prerelease\": false,\n \"body\": $changelog\n}" }, { ...
jsoniq
chosen
[ { "from": "system", "value": "Make upcoming release publicly available on Github.\n\n[Build]\n" }, { "from": "human", "value": "{\n \"tag_name\": \"v1.7.1\",\n \"name\": \"The Brontinus release\",\n \"draft\": true,\n \"prerelease\": false,\n \"body\": $changelog\n}" }, { "from": "g...
jsoniq
chosen
[ { "from": "system", "value": "Fix issue with Thema conversion\n" }, { "from": "human", "value": "\"http://uri.gbv.de/terminology/thema\" as $BASE |\n\n# date of publication as found at EDItEUR website\n{\n \"1.0\": \"2013\",\n \"1.1\": \"2015\",\n \"1.2\": \"2016-05\",\n \"1.3\": \"2018-04\"...
jsoniq
chosen
[ { "from": "human", "value": "Add jq helper functions to remember how to handle mixed logs\n" }, { "from": "gpt", "value": "function jqdbg {\n jq -R '. as $raw | try fromjson catch $raw'\n}\n\nfunction strip_log_with_errors {\n awk -F'{' '{ st = index($0,\"{\"); print \"{\"substr($0,st+1)}' $1 ...
jsoniq
chosen
[ { "from": "human", "value": "Add a jq script to analyse ping results.\n\nContributed by: stephane@bortzmeyer.org\n" }, { "from": "gpt", "value": "map(.result) | flatten(1) | map(.rtt) | length as $total |\n \"Median: \" + (sort |\n if length % 2 == 0 then .[length/2] else .[(length-1)/2] en...
jsoniq
chosen