Datasets:
Add verified 1.5B metrics and update the model recommendation
Browse files- README.md +5 -2
- evaluation/1.5b-dev.jsonl +42 -0
- evaluation/1.5b-dev.summary.json +20 -0
- evaluation/1.5b-test.jsonl +37 -0
- evaluation/1.5b-test.summary.json +20 -0
README.md
CHANGED
|
@@ -57,11 +57,14 @@ Greedy generation, one prediction per row. Valid means the command executes; cor
|
|
| 57 |
| Model | Validation valid | Validation correct | Frozen-test valid | Frozen-test correct |
|
| 58 |
| --- | ---: | ---: | ---: | ---: |
|
| 59 |
| Original Sedweave 0.5B | 71.4% (30/42) | 23.8% (10/42) | 89.2% (33/37) | 18.9% (7/37) |
|
| 60 |
-
| Unselected generalization-tuned candidate | 76.2% (32/42) | 23.8% (10/42) | 83.8% (31/37) | 18.9% (7/37) |
|
|
|
|
| 61 |
|
| 62 |
Full predictions and summaries are included under `evaluation/`.
|
| 63 |
|
| 64 |
-
The generalization-tuned candidate was **not released**: frozen validity decreased and frozen correctness did not improve.
|
|
|
|
|
|
|
| 65 |
|
| 66 |
|
| 67 |
## Limitations
|
|
|
|
| 57 |
| Model | Validation valid | Validation correct | Frozen-test valid | Frozen-test correct |
|
| 58 |
| --- | ---: | ---: | ---: | ---: |
|
| 59 |
| Original Sedweave 0.5B | 71.4% (30/42) | 23.8% (10/42) | 89.2% (33/37) | 18.9% (7/37) |
|
| 60 |
+
| Unselected generalization-tuned 0.5B candidate | 76.2% (32/42) | 23.8% (10/42) | 83.8% (31/37) | 18.9% (7/37) |
|
| 61 |
+
| Sedweave 1.5B | 90.5% (38/42) | 52.4% (22/42) | 97.3% (36/37) | 35.1% (13/37) |
|
| 62 |
|
| 63 |
Full predictions and summaries are included under `evaluation/`.
|
| 64 |
|
| 65 |
+
The generalization-tuned 0.5B candidate was **not released**: frozen validity decreased and frozen correctness did not improve. Its training settings are in `candidate_training_config.json`.
|
| 66 |
+
|
| 67 |
+
**Sedweave 1.5B is the recommended model** because it improves both validity and correctness on the development and frozen real-question sets.
|
| 68 |
|
| 69 |
|
| 70 |
## Limitations
|
evaluation/1.5b-dev.jsonl
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"so-1032023","request":"Replace all occurrences of the whole word 'bar' with 'no bar' in the input text, ensuring that partial matches like 'embarassment' are not affected.","command":"sed 's/\\bbar\\b/no bar/g'","input_text":"bar embarassment\nbar foo bar\nfoobar","expected_output":"no bar embarassment\nno bar foo no bar\nfoobar","validation_input":"start bar end\nno bar here\nbarbell","validation_output":"start no bar end\nno no bar here\nbarbell","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/1032023/sed-whole-word-search-and-replace","question_title":"sed whole word search and replace","question_owner":"ksuralta","answer_owner":"Joakim Lundborg","answer_id":1032039,"question_score":159,"reviewed":true,"prediction":"sed -e 's/\\bbar\\b/no bar/g'","valid":true,"correct":true,"error":null}
|
| 2 |
+
{"id":"so-11145270","request":"Replace the entire third line of the input text with the string 'replacement-line'.","command":"sed '3s/.*/replacement-line/'","input_text":"Line one\nLine two\nLine three\nLine four","expected_output":"Line one\nLine two\nreplacement-line\nLine four","validation_input":"Alpha\nBeta\nGamma\nDelta\nEpsilon","validation_output":"Alpha\nBeta\nreplacement-line\nDelta\nEpsilon","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/11145270/how-to-replace-an-entire-line-in-a-text-file-by-line-number","question_title":"How to replace an entire line in a text file by line number","question_owner":"user788171","answer_owner":"chepner","answer_id":11145362,"question_score":225,"reviewed":true,"prediction":"sed '3s/.*/replacement-line/'","valid":true,"correct":true,"error":null}
|
| 3 |
+
{"id":"so-11245144","request":"Replace any line containing the string 'TEXT_TO_BE_REPLACED' with the text 'This line is removed by the admin.'","command":"sed '/TEXT_TO_BE_REPLACED/c\\This line is removed by the admin.'","input_text":"sometext sometext sometext TEXT_TO_BE_REPLACED sometext sometext sometext\nother line\nanother line with TEXT_TO_BE_REPLACED here","expected_output":"This line is removed by the admin.\nother line\nThis line is removed by the admin.\n","validation_input":"line one\nTEXT_TO_BE_REPLACED\nline three","validation_output":"line one\nThis line is removed by the admin.\nline three","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/11245144/replace-whole-line-containing-a-string-using-sed","question_title":"Replace whole line containing a string using Sed","question_owner":"Rahul","answer_owner":"Todd A. Jacobs","answer_id":11245501,"question_score":472,"reviewed":true,"prediction":"sed '/TEXT_TO_BE_REPLACED/c This line is removed by the admin.'","valid":true,"correct":true,"error":null}
|
| 4 |
+
{"id":"so-11469989","request":"Remove the first 4 characters from each line of input.","command":"sed 's/^....//'","input_text":"pid: 1234\nname: test","expected_output":" 1234\n: test","validation_input":"code: ABCD\nid: 9999","validation_output":": ABCD\n9999","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/11469989/how-can-i-strip-first-x-characters-from-string-using-sed","question_title":"How can I strip first X characters from string using sed?","question_owner":"Kokesh","answer_owner":"Arnaud F.","answer_id":11470076,"question_score":174,"reviewed":true,"prediction":"sed 's/^.....//'","valid":true,"correct":false,"error":null}
|
| 5 |
+
{"id":"so-11568859","request":"Extract the first sequence of digits followed by 'G' and more digits from each line, printing only the match.","command":"sed -n 's/^[^0-9]*\\([0-9][0-9]*G[0-9][0-9]*\\).*/\\1/p'","input_text":"This is 02G05 a test string 20-Jul-2012","expected_output":"02G05","validation_input":"No match here\nCode 123G456 found\n9G1 end","validation_output":"123G456\n9G1","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/11568859/how-to-extract-text-from-a-string-using-sed","question_title":"How to extract text from a string using sed?","question_owner":"RanRag","answer_owner":"tripleee","answer_id":11568930,"question_score":130,"reviewed":true,"prediction":"sed -n 's/.*\\([0-9][0-9]*G[0-9][0-9]*\\).*/\\1/p'","valid":true,"correct":false,"error":null}
|
| 6 |
+
{"id":"so-13055889","request":"Replace all commas with a comma surrounded by single quotes in the input text.","command":"sed \"s/,/','/g\"","input_text":"A,B,C","expected_output":"A','B','C","validation_input":"X,Y,Z\n1,2","validation_output":"X','Y','Z\n1','2","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/13055889/sed-with-literal-string-not-input-file","question_title":"sed with literal string--not input file","question_owner":"amphibient","answer_owner":"Gilles Quénot","answer_id":13055913,"question_score":135,"reviewed":true,"prediction":"sed 's/,/\"&\"/g'","valid":true,"correct":false,"error":null}
|
| 7 |
+
{"id":"so-13242469","request":"Extract the text between the words 'Here' and 'String' on a single line, removing the words themselves.","command":"sed 's/^.*Here\\(.*\\)String.*$/\\1/'","input_text":"Here is a String","expected_output":" is a ","validation_input":"Here we go String now","validation_output":" we go ","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/13242469/how-to-use-sed-grep-to-extract-text-between-two-words","question_title":"How to use sed/grep to extract text between two words?","question_owner":"user1190650","answer_owner":"Brian Campbell","answer_id":13242517,"question_score":228,"reviewed":true,"prediction":"sed -n 's/.*Here \\([^ ]*\\) String.*/\\1/p'","valid":true,"correct":false,"error":null}
|
| 8 |
+
{"id":"so-1429556","request":"Print only the second line of the input stream.","command":"sed -n '2p'","input_text":"first line\nsecond line\nthird line","expected_output":"second line\n","validation_input":"alpha\nbeta\ngamma\ndelta","validation_output":"beta\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/1429556/command-to-get-nth-line-of-stdout","question_title":"Command to get nth line of STDOUT","question_owner":"Alana Storm","answer_owner":"Jonathan Leffler","answer_id":1429628,"question_score":277,"reviewed":true,"prediction":"sed -n '2p'","valid":true,"correct":true,"error":null}
|
| 9 |
+
{"id":"so-14671293","request":"Remove all sequences of digits from the input text using a POSIX-compatible character class.","command":"sed 's/[[:digit:]]\\+//g'","input_text":"abc123def456\n789xyz","expected_output":"abcdef\nxyz","validation_input":"no digits here\n1a2b3c","validation_output":"no digits here\nabc","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/14671293/why-doesnt-d-work-in-regular-expressions-in-sed","question_title":"Why doesn't `\\d` work in regular expressions in sed?","question_owner":"user2036880","answer_owner":"Kamil","answer_id":14671415,"question_score":105,"reviewed":true,"prediction":"sed 's/[0-9][0-9]*/ /g'","valid":true,"correct":false,"error":null}
|
| 10 |
+
{"id":"so-148451","request":"Replace only the first occurrence of the string 'foo' with 'bar' in the input stream.","command":"sed '0,/foo/s//bar/'","input_text":"foo baz\nfoo qux\nfoo end","expected_output":"bar baz\nfoo qux\nfoo end","validation_input":"no match here\nfoo match here\nfoo another","validation_output":"no match here\nbar match here\nfoo another","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/148451/how-to-use-sed-to-replace-only-the-first-occurrence-in-a-file","question_title":"How to use sed to replace only the first occurrence in a file?","question_owner":"David Dibben","answer_owner":"Ben Hoffstein","answer_id":148473,"question_score":346,"reviewed":true,"prediction":"sed s/foo/bar/","valid":true,"correct":false,"error":null}
|
| 11 |
+
{"id":"so-15559359","request":"Insert the line 'CLIENTSCRIPT2=\"hello\"' after the first line that matches 'CLIENTSCRIPT=\"foo\"'.","command":"sed '/CLIENTSCRIPT=\"foo\"/a\\\nCLIENTSCRIPT2=\"hello\"'","input_text":"CLIENTSCRIPT=\"foo\"\nCLIENTFILE=\"bar\"","expected_output":"CLIENTSCRIPT=\"foo\"\nCLIENTSCRIPT2=\"hello\"\nCLIENTFILE=\"bar\"","validation_input":"line1\nCLIENTSCRIPT=\"foo\"\nline3","validation_output":"line1\nCLIENTSCRIPT=\"foo\"\nCLIENTSCRIPT2=\"hello\"\nline3","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/15559359/insert-line-after-match-using-sed","question_title":"Insert line after match using sed","question_owner":"user2150250","answer_owner":"Gilles Quénot","answer_id":15559399,"question_score":371,"reviewed":true,"prediction":"sed '/CLIENTSCRIPT=\"foo\"/a\\CLIENTSCRIPT2=\"hello\"'","valid":true,"correct":true,"error":null}
|
| 12 |
+
{"id":"so-15849119","request":"Replace all occurrences of the word 'dog' with 'log' in each line of the input.","command":"sed -e 's/dog/log/g'","input_text":"dog dog dos","expected_output":"log log dos","validation_input":"a dog b dog c","validation_output":"a log b log c","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/15849119/why-does-sed-not-replace-all-occurrences","question_title":"Why does sed not replace all occurrences?","question_owner":"Nishant George Agrwal","answer_owner":"Bruno Reis","answer_id":15849152,"question_score":188,"reviewed":true,"prediction":"sed s/dog/log/g","valid":true,"correct":true,"error":null}
|
| 13 |
+
{"id":"so-16414410","request":"Remove all lines that are empty or contain only whitespace characters from the input text.","command":"sed '/^[[:space:]]*$/d'","input_text":"xxxxxx\n \n\nyyyyyy\n\t\nzzzzzz","expected_output":"xxxxxx\nyyyyyy\nzzzzzz","validation_input":"hello\n \nworld\n\nfoo","validation_output":"hello\nworld\nfoo","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/16414410/delete-empty-lines-using-sed","question_title":"Delete empty lines using sed","question_owner":"jonas","answer_owner":"Kent","answer_id":16414489,"question_score":530,"reviewed":true,"prediction":"sed '/^[[:space:]]*$/d'","valid":true,"correct":true,"error":null}
|
| 14 |
+
{"id":"so-1665549","request":"Extract the filename from lines matching the pattern '[wrote filename.class]' and suppress all other lines.","command":"sed -n 's/^\\[wrote \\(.*\\.class\\)\\]$/\\1/p'","input_text":"[wrote some-class-name.class]","expected_output":"some-class-name.class","validation_input":"[wrote Main.class]\ncompiling...\n[wrote Utils.class]","validation_output":"Main.class\nUtils.class","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/1665549/have-sed-ignore-non-matching-lines","question_title":"Have sed ignore non-matching lines","question_owner":"Paggas","answer_owner":"liori","answer_id":1665662,"question_score":138,"reviewed":true,"prediction":"sed -n '/[wrote filename\\.class]/p'","valid":true,"correct":false,"error":null}
|
| 15 |
+
{"id":"so-1706431","request":"Replace all spaces in the input with underscores.","command":"sed 's/ /_/g'","input_text":"This is just a test\nWindows XP","expected_output":"This_is_just_a_test\nWindows_XP","validation_input":"Hello World Foo Bar\nMy File Name.txt","validation_output":"Hello_World_Foo_Bar\nMy_File_Name.txt","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/1706431/the-easiest-way-to-replace-white-spaces-with-underscores-in-bash","question_title":"The easiest way to replace white spaces with (underscores) _ in bash","question_owner":"flazzarini","answer_owner":"ghostdog74","answer_id":1706459,"question_score":107,"reviewed":true,"prediction":"sed 's/ /_/g'","valid":true,"correct":true,"error":null}
|
| 16 |
+
{"id":"so-17511639","request":"Extract and print only the last integer and floating-point number (separated by whitespace) from each line, ignoring preceding text.","command":"sed -n 's/^.*[^0-9]\\([0-9][0-9]*\\)[ \\t]\\([0-9][0-9]*\\.[0-9][0-9]*\\)[ \\t]*$/\\1 \\2/p'","input_text":"foo bar <foo> bla 1 2 3.4\nno match here\nvalues 10 20.5","expected_output":"2 3.4\n10 20.5","validation_input":"test 5 6.7\nabc 123 456.789\nnothing","validation_output":"5 6.7\n123 456.789\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/17511639/sed-print-only-matching-group","question_title":"sed: print only matching group","question_owner":"mort","answer_owner":"iruvar","answer_id":17511700,"question_score":205,"reviewed":true,"prediction":"sed 's/[^0-9.]*\\([0-9.]*\\).*/\\1/'","valid":true,"correct":false,"error":null}
|
| 17 |
+
{"id":"so-18439528","request":"Insert the line ' hello world' (with three leading spaces) before the second line of the input text.","command":"sed '2i\\ hello world'","input_text":"hello\nworld","expected_output":"hello\n hello world\nworld","validation_input":"line1\nline2\nline3","validation_output":"line1\n hello world\nline2\nline3","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/18439528/sed-insert-line-with-leading-spaces-to-a-specific-line","question_title":"sed insert line with leading spaces to a specific line","question_owner":"Ggdw","answer_owner":"Atropo","answer_id":18439749,"question_score":120,"reviewed":true,"prediction":"sed '1,2 {p; s/\\(.*\\)/ \\1/}'","valid":true,"correct":false,"error":null}
|
| 18 |
+
{"id":"so-20348097","request":"Remove the colon and everything after it from each line of input.","command":"sed 's/:.*//'","input_text":"/some/random/file.csv:some string\n/some/random/file2.csv:some string2","expected_output":"/some/random/file.csv\n/some/random/file2.csv","validation_input":"path/to/data.txt:value here\nanother/path.log:more data","validation_output":"path/to/data.txt\nanother/path.log","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/20348097/bash-extract-string-before-a-colon","question_title":"bash, extract string before a colon","question_owner":"user788171","answer_owner":"ray","answer_id":20348145,"question_score":111,"reviewed":true,"prediction":"sed 's/:.*//'","valid":true,"correct":true,"error":null}
|
| 19 |
+
{"id":"so-2112469","request":"Delete lines 5 through 10 and line 12 from the input text.","command":"sed -e '5,10d;12d'","input_text":"Line 1\nLine 2\nLine 3\nLine 4\nLine 5\nLine 6\nLine 7\nLine 8","expected_output":"Line 1\nLine 2\nLine 3\nLine 4\n","validation_input":"A\nB\nC\nD\nE\nF\nG\nH\nI\nJ\nK\nL\nM","validation_output":"A\nB\nC\nD\nK\nM","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/2112469/delete-specific-line-numbers-from-a-text-file-using-sed","question_title":"Delete specific line number(s) from a text file using sed?","question_owner":"Justin Ethier","answer_owner":"Brian Campbell","answer_id":2112496,"question_score":367,"reviewed":true,"prediction":"sed 5,10d; 12d","valid":false,"correct":false,"error":"Expected exactly one sed expression and no filenames."}
|
| 20 |
+
{"id":"so-24509214","request":"Replace the string 'ones' with 'one's' in the input text using sed.","command":"sed \"s/ones/one's/g\"","input_text":"ones thing","expected_output":"one's thing","validation_input":"ones and ones again","validation_output":"one's and one's again","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/24509214/how-to-escape-single-quote-in-sed","question_title":"How to escape single quote in sed?","question_owner":"Thomas Bratt","answer_owner":"Kent","answer_id":24509931,"question_score":148,"reviewed":true,"prediction":"sed s/ones/one's/g","valid":false,"correct":false,"error":"Cannot parse sed command: No closing quotation"}
|
| 21 |
+
{"id":"so-2610115","request":"Insert a literal tab character at the beginning of every line in the input.","command":"sed 's/^/\t/'","input_text":"hello\nworld","expected_output":"\thello\n\tworld","validation_input":"foo\nbar\nbaz","validation_output":"\tfoo\n\tbar\n\tbaz","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/2610115/why-is-sed-not-recognizing-t-as-a-tab","question_title":"Why is sed not recognizing \\t as a tab?","question_owner":"sixtyfootersdude","answer_owner":"Mark Byers","answer_id":2610121,"question_score":132,"reviewed":true,"prediction":"sed 's/^/\\t/'","valid":true,"correct":true,"error":null}
|
| 22 |
+
{"id":"so-26568952","request":"Swap all occurrences of 'ab' with 'bc' and 'bc' with 'ab' simultaneously in the input stream, assuming '~' does not appear in the text.","command":"sed 's/ab/~~/g; s/bc/ab/g; s/~~/bc/g'","input_text":"abbc","expected_output":"bcab","validation_input":"abc ab bc","validation_output":"bcc bc ab","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/26568952/how-to-swap-text-based-on-patterns-at-once-with-sed","question_title":"How to swap text based on patterns at once with sed?","question_owner":"DaniloNC","answer_owner":"ooga","answer_id":26568996,"question_score":344,"reviewed":true,"prediction":"sed -e 's/ab/cb/g;s/cb/ab/g'","valid":true,"correct":false,"error":null}
|
| 23 |
+
{"id":"so-2777579","request":"Extract only the sequences of digits from each line, separated by a space. If a line has multiple digit sequences, print them all on one line separated by spaces. If no digits, print nothing for that line.","command":"sed -n 's/[^0-9][^0-9]*/ /g; s/^ *//; s/ *$//; /[0-9]/p'","input_text":"This is a sample 123 text and some 987 numbers\nno numbers here\nabc 42 def","expected_output":"123 987\n42","validation_input":"start 10 middle 20 end\njust text\n555","validation_output":"10 20\n555","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/2777579/how-can-i-output-only-captured-groups-with-sed","question_title":"How can I output only captured groups with sed?","question_owner":"Pablo","answer_owner":"Dennis Williamson","answer_id":2778096,"question_score":426,"reviewed":true,"prediction":"sed 's/[^0-9]*\\([0-9]\\+\\)[^0-9]*/\\1 /g'","valid":true,"correct":false,"error":null}
|
| 24 |
+
{"id":"so-2869669","request":"Append the string 'string after each line' to the end of every line in the input.","command":"sed -e 's/$/string after each line/'","input_text":"Line one\nLine two\nLine three","expected_output":"Line onestring after each line\nLine twostring after each line\nLine threestring after each line","validation_input":"Hello World\nFoo Bar","validation_output":"Hello Worldstring after each line\nFoo Barstring after each line","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/2869669/in-bash-how-do-i-add-a-string-after-each-line-in-a-file","question_title":"In Bash, how do I add a string after each line in a file?","question_owner":"Jason Volkoz","answer_owner":"Tom DeGisi","answer_id":2869736,"question_score":170,"reviewed":true,"prediction":"sed 's/$/string after each line/'","valid":true,"correct":true,"error":null}
|
| 25 |
+
{"id":"so-3134791","request":"Remove all newline characters from the input text to join all lines into a single continuous string.","command":"sed ':a;N;$!ba;s/\\n//g'","input_text":"22791\n;\n14336\n;\n22821\n;","expected_output":"22791;14336;22821;","validation_input":"A\nB\nC\n","validation_output":"ABC\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/3134791/how-do-i-remove-newlines-from-a-text-file","question_title":"How do I remove newlines from a text file?","question_owner":"Alucard","answer_owner":"Tyler McHenry","answer_id":3134827,"question_score":213,"reviewed":true,"prediction":"sed ':a;N;s/\\n//;ba'","valid":true,"correct":true,"error":null}
|
| 26 |
+
{"id":"so-38672680","request":"Join all lines into a single line, replacing newlines with the literal characters backslash and n.","command":"sed ':a;N;$!ba;s/\\n/\\\\n/g'","input_text":"Line one\nLine two\nLine three","expected_output":"Line one\\nLine two\\nLine three","validation_input":"First\nSecond","validation_output":"First\\nSecond","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/38672680/replace-newlines-with-literal-n","question_title":"Replace newlines with literal \\n","question_owner":"Parze","answer_owner":"anubhava","answer_id":38672741,"question_score":106,"reviewed":true,"prediction":"sed ':a;N;s/\\n/\\\\n/g;ba'","valid":true,"correct":true,"error":null}
|
| 27 |
+
{"id":"so-38972736","request":"Print all lines from the first occurrence of 'PAT1' to the next occurrence of 'PAT2', inclusive of both pattern lines.","command":"sed -n '/PAT1/,/PAT2/p'","input_text":"1\n2\nPAT1\n3\n4\nPAT2\n5","expected_output":"PAT1\n3\n4\nPAT2\n","validation_input":"start\nPAT1\nmiddle\nend\nPAT2\nfinish","validation_output":"PAT1\nmiddle\nend\nPAT2\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/38972736/how-to-print-lines-between-two-patterns-inclusive-or-exclusive-in-sed-awk-or","question_title":"How to print lines between two patterns, inclusive or exclusive (in sed, AWK or Perl)?","question_owner":"fedorqui","answer_owner":"fedorqui","answer_id":38972737,"question_score":116,"reviewed":true,"prediction":"sed -n '/PAT1/,/PAT2/p'","valid":true,"correct":true,"error":null}
|
| 28 |
+
{"id":"so-4569825","request":"Convert all uppercase letters in the input text to lowercase.","command":"sed 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'","input_text":"Hello World\nTHIS IS A TEST\nMixed Case Text","expected_output":"hello world\nthis is a test\nmixed case text","validation_input":"ABCdef\nXYZ123\nNo Change here","validation_output":"abcdef\nxyz123\nno change here","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/4569825/sed-one-liner-to-convert-all-uppercase-to-lowercase","question_title":"sed one-liner to convert all uppercase to lowercase?","question_owner":"magnetar","answer_owner":"magnetar","answer_id":4581564,"question_score":213,"reviewed":true,"prediction":"sed 's/.*/\\L&/'","valid":true,"correct":true,"error":null}
|
| 29 |
+
{"id":"so-5080988","request":"Extract the value inside double quotes that immediately follows name= on each line.","command":"sed -n 's/.*name=\"\\([^\"]*\\)\".*/\\1/p'","input_text":"<table name=\"content_analyzer\" primary-key=\"id\">\n<type=\"global\" />\n</table>","expected_output":"content_analyzer\n","validation_input":"<tag name=\"test_value\" attr=\"val\">","validation_output":"test_value","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/5080988/how-to-extract-string-following-a-pattern-with-grep-regex-or-perl","question_title":"How to extract string following a pattern with grep, regex or perl","question_owner":"wrangler","answer_owner":"sidyll","answer_id":5081519,"question_score":122,"reviewed":true,"prediction":"sed -n 's/^.*name=\"\\([^\"]*\\)\".*$/\\1/p'","valid":true,"correct":true,"error":null}
|
| 30 |
+
{"id":"so-5227295","request":"Delete the line matching 'The second line' and all subsequent lines from the input text.","command":"sed '/The second line/,$d'","input_text":"The first line\nThe second line\nThe third line\nThe fourth line","expected_output":"The first line\n","validation_input":"Line A\nLine B\nThe second line\nLine C","validation_output":"Line A\nLine B\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/5227295/how-do-i-delete-all-lines-in-a-file-starting-from-after-a-matching-line","question_title":"How do I delete all lines in a file starting from after a matching line?","question_owner":"DocWiki","answer_owner":"Dennis Williamson","answer_id":5227429,"question_score":126,"reviewed":true,"prediction":"sed /The second line/d","valid":false,"correct":false,"error":"Expected exactly one sed expression and no filenames."}
|
| 31 |
+
{"id":"so-538664","request":"Print only the first 12 characters of each line from the input text.","command":"sed -e 's/^\\(.\\{12\\}\\).*/\\1/'","input_text":"Hello World This Is A Test\nShort\nThis is a longer line that exceeds twelve characters","expected_output":"Hello World \nShort\nThis is a lo","validation_input":"123456789012345\n123456789012\nabcdefghijklmnop","validation_output":"123456789012\n123456789012\nabcdefghijkl","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/538664/using-sed-how-do-you-print-the-first-n-characters-of-a-line","question_title":"Using sed, how do you print the first 'N' characters of a line?","question_owner":"Berlin Brown","answer_owner":"Paul Tomblin","answer_id":538676,"question_score":153,"reviewed":true,"prediction":"sed 's/^\\(.\\{12\\}\\).*/\\1/'","valid":true,"correct":true,"error":null}
|
| 32 |
+
{"id":"so-5410757","request":"Delete all lines containing the string 'error' from the input text.","command":"sed '/error/d'","input_text":"line one\nerror found here\nline three\nanother error line\nfinal line","expected_output":"line one\nline three\nfinal line","validation_input":"no errors here\nthis is clean\nerror in middle\nclean again","validation_output":"this is clean\nclean again","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/5410757/how-can-i-delete-all-lines-that-contain-a-specific-string-from-a-text-file","question_title":"How can I delete all lines that contain a specific string from a text file?","question_owner":"A Clockwork Orange","answer_owner":"SiegeX","answer_id":5410784,"question_score":2423,"reviewed":true,"prediction":"sed /error/d","valid":true,"correct":true,"error":null}
|
| 33 |
+
{"id":"so-6022384","request":"Print only the 3rd line of the input text.","command":"sed '3q;d'","input_text":"first line\nsecond line\nthird line\nfourth line\nfifth line","expected_output":"third line\n","validation_input":"alpha\nbeta\ngamma\ndelta","validation_output":"gamma\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/6022384/bash-tool-to-get-nth-line-from-a-file","question_title":"Bash tool to get nth line from a file","question_owner":"Vlad Vivdovitch","answer_owner":"anubhava","answer_id":6022431,"question_score":914,"reviewed":true,"prediction":"sed -n '3p'","valid":true,"correct":true,"error":null}
|
| 34 |
+
{"id":"so-6287755","request":"Delete all lines strictly between a line starting with # and a line starting with $, keeping the boundary lines.","command":"sed '/^#/,/^\\$/{/^#/!{/^\\$/!d}}'","input_text":"# ID 1\nblah blah\nblah blah\n$ description 1\nblah blah","expected_output":"# ID 1\n$ description 1\nblah blah","validation_input":"# Start\nremove this\nand this\n$ End\nkeep this","validation_output":"# Start\n$ End\nkeep this","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/6287755/using-sed-to-delete-all-lines-between-two-matching-patterns","question_title":"Using sed to delete all lines between two matching patterns","question_owner":"Ken","answer_owner":"anubhava","answer_id":6287940,"question_score":120,"reviewed":true,"prediction":"sed '/^#/,/^\\$/d'","valid":true,"correct":false,"error":null}
|
| 35 |
+
{"id":"so-723157","request":"Insert a newline before every occurrence of a phone number pattern like (012)345-6789 in the input text.","command":"sed 's/(\\([0-9]\\{3\\}\\))[0-9]\\{3\\}-[0-9]\\{4\\}/\\n&/g'","input_text":"some text (012)345-6789","expected_output":"some text \n(012)345-6789","validation_input":"call (123)456-7890 or (987)654-3210 now","validation_output":"call \n(123)456-7890 or \n(987)654-3210 now","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/723157/how-to-insert-a-newline-in-front-of-a-pattern","question_title":"How to insert a newline in front of a pattern?","question_owner":"Dennis","answer_owner":"Dennis","answer_id":723247,"question_score":146,"reviewed":true,"prediction":"sed 's/\\([0-9][0-9]?\\)\\([0-9][0-9]?\\)\\(-[0-9][0-9]\\{4\\}\\)/\\n\\1\\2\\3/g'","valid":true,"correct":false,"error":null}
|
| 36 |
+
{"id":"so-7451423","request":"Print only the line immediately following any line that contains the string 'blah'. Do not print the matching line itself.","command":"sed -n '/blah/{n;p;}'","input_text":"header\nblah found\nnext line content\nfooter","expected_output":"next line content\n","validation_input":"no match here\nblah trigger\nresult line\nanother blah\nsecond result\nend","validation_output":"result line\nsecond result\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/7451423/how-to-show-only-next-line-after-the-matched-one","question_title":"How to show only next line after the matched one?","question_owner":"facha","answer_owner":"Michał Šrajer","answer_id":7451456,"question_score":279,"reviewed":true,"prediction":"sed -n '/blah/{p; n;}'","valid":true,"correct":false,"error":null}
|
| 37 |
+
{"id":"so-7517632","request":"Replace the literal string \"http://www.fubar.com\" with URL_FUBAR in the input.","command":"sed 's#\"http://www\\.fubar\\.com\"#URL_FUBAR#g'","input_text":"Visit \"http://www.fubar.com\" now.\nKeep \"http://other.com\".","expected_output":"Visit URL_FUBAR now.\nKeep \"http://other.com\".","validation_input":"Link: \"http://www.fubar.com\"","validation_output":"Link: URL_FUBAR","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/7517632/how-do-i-escape-slashes-and-double-and-single-quotes-in-sed","question_title":"How do I escape slashes and double and single quotes in sed?","question_owner":"KRB","answer_owner":"Kusalananda","answer_id":7517900,"question_score":122,"reviewed":true,"prediction":"sed s/http:\\/\\/www\\.fubar\\.com/URL_FUBAR/g","valid":false,"correct":false,"error":"/usr/bin/sed: couldn't open file ww.fubar.com/URL_FUBAR/g: No such file or directory"}
|
| 38 |
+
{"id":"so-8206280","request":"Delete all lines that begin with a hash character (#) from the input text.","command":"sed '/^#/d'","input_text":"# This is a comment\nThis is code\n# Another comment\nMore code # inline comment","expected_output":"This is code\nMore code # inline comment","validation_input":"# Comment line 1\nValid line 1\n# Comment line 2\nValid line 2 with # symbol","validation_output":"Valid line 1\nValid line 2 with # symbol","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/8206280/delete-all-lines-beginning-with-a-from-a-file","question_title":"Delete all lines beginning with a # from a file","question_owner":"Village","answer_owner":"Raymond Hettinger","answer_id":8206295,"question_score":283,"reviewed":true,"prediction":"sed '/^#/d'","valid":true,"correct":true,"error":null}
|
| 39 |
+
{"id":"so-8822097","request":"Replace any line starting with 'aaa=' followed by any characters with the line 'aaa=xxx'.","command":"sed 's/^aaa=.*/aaa=xxx/'","input_text":"aaa=bbb\naaa=ccc\naaa=ddd\nother=line","expected_output":"aaa=xxx\naaa=xxx\naaa=xxx\nother=line","validation_input":"aaa=test\nkeep=this\naaa=value","validation_output":"aaa=xxx\nkeep=this\naaa=xxx","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/8822097/how-to-replace-a-whole-line-with-sed","question_title":"How to replace a whole line with sed?","question_owner":"Michael","answer_owner":"John Doyle","answer_id":8822211,"question_score":253,"reviewed":true,"prediction":"sed '/^aaa=/s/.*/aaa=xxx/'","valid":true,"correct":true,"error":null}
|
| 40 |
+
{"id":"so-9533679","request":"Prepend the text '<added text> ' to the beginning of the first line of the input stream without adding a new line.","command":"sed '1s/^/<added text> /'","input_text":"some text at the beginning\nsecond line","expected_output":"<added text> some text at the beginning\nsecond line","validation_input":"hello world","validation_output":"<added text> hello world","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/9533679/how-to-insert-a-text-at-the-beginning-of-a-file","question_title":"How to insert a text at the beginning of a file?","question_owner":"user219882","answer_owner":"kev","answer_id":9533736,"question_score":350,"reviewed":true,"prediction":"sed 's/^/<added text> /'","valid":true,"correct":false,"error":null}
|
| 41 |
+
{"id":"so-9605232","request":"Merge every two consecutive lines into a single line separated by a space.","command":"sed 'N;s/\\n/ /'","input_text":"KEY 4048:1736 string\n3\nKEY 0:1772 string\n1","expected_output":"KEY 4048:1736 string 3\nKEY 0:1772 string 1","validation_input":"Line A\nLine B\nLine C\nLine D","validation_output":"Line A Line B\nLine C Line D","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/9605232/how-to-merge-every-two-lines-into-one-from-the-command-line","question_title":"How to merge every two lines into one from the command line?","question_owner":"shantanuo","answer_owner":"Kent","answer_id":9605559,"question_score":229,"reviewed":true,"prediction":"sed '$!N;s/\\n/ /'","valid":true,"correct":true,"error":null}
|
| 42 |
+
{"id":"so-9953448","request":"Remove every space and tab character from each input line.","command":"sed 's/[[:space:]]//g'","input_text":"Hello \t World\nNew Line","expected_output":"HelloWorld\nNewLine","validation_input":"a b\tc\nd","validation_output":"abc\nd","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/9953448/how-to-remove-all-white-spaces-from-a-given-text-file","question_title":"How to remove all white spaces from a given text file?","question_owner":"Lunar Mushrooms","answer_owner":"Paulo Scardine","answer_id":9953487,"question_score":123,"reviewed":true,"prediction":"sed 's/[ \\t]*//'","valid":true,"correct":false,"error":null}
|
evaluation/1.5b-dev.summary.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/43074909-088d-4a6d-874f-13abacf2dc37/training/model",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"rows": 42,
|
| 5 |
+
"valid_at_1": 0.9047619047619048,
|
| 6 |
+
"correct_at_1": 0.5238095238095238,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 15.14633560180664,
|
| 10 |
+
"data_sha256": "5e8eec182a096b1d169845ef6f03235b3166b7f3315b473ec8cbc3e44dfc8c44",
|
| 11 |
+
"transformers_version": "5.17.0",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"real-stackoverflow": {
|
| 15 |
+
"rows": 42,
|
| 16 |
+
"valid": 38,
|
| 17 |
+
"correct": 22
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|
evaluation/1.5b-test.jsonl
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id":"so-10754682","request":"Wrap each line in double quotes, handling potential carriage returns at the end of lines by removing them before quoting.","command":"sed 's/\\r$//; s/.*/\"&\"/'","input_text":"name,id,3\r\nuser,pass,4\r\n","expected_output":"\"name,id,3\"\n\"user,pass,4\"\n","validation_input":"hello,world\r\ntest,data\r\n","validation_output":"\"hello,world\"\n\"test,data\"\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/10754682/how-to-add-double-quotes-to-a-line-with-sed-or-awk","question_title":"How to add double quotes to a line with SED or AWK?","question_owner":"minerals","answer_owner":"Dennis Williamson","answer_id":10755347,"question_score":31,"reviewed":true,"prediction":"sed 's/$/\\n/g'","valid":true,"correct":false,"error":null}
|
| 2 |
+
{"id":"so-11687216","request":"Remove all blank lines from the input text.","command":"sed '/^$/d'","input_text":"Line 1\n\nLine 3\n\nLine 5","expected_output":"Line 1\nLine 3\nLine 5","validation_input":"Hello\n\nWorld\n\nEnd","validation_output":"Hello\nWorld\nEnd","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/11687216/awk-to-skip-the-blank-lines","question_title":"Awk to skip the blank lines","question_owner":"Gil","answer_owner":"Levon","answer_id":11687266,"question_score":33,"reviewed":true,"prediction":"sed '/^$/d'","valid":true,"correct":true,"error":null}
|
| 3 |
+
{"id":"so-13202715","request":"Print only the lines that start with the prefix 'RIM-COD-' from the input text.","command":"sed -n -e '/^RIM-COD-/p'","input_text":"RIM-COD-URL-12: HelloWorld-12.cod\nRIM-COD-Size: 68020\nRIM-MIDlet-Icon-2-1: icon.png\nRIM-COD-URL-11: HelloWorld-11.cod","expected_output":"RIM-COD-URL-12: HelloWorld-12.cod\nRIM-COD-Size: 68020\nRIM-COD-URL-11: HelloWorld-11.cod","validation_input":"RIM-COD-URL-10: Test.cod\nOther-Line: Value\nRIM-COD-SHA1: abc123\nManifest-Version: 1.0","validation_output":"RIM-COD-URL-10: Test.cod\nRIM-COD-SHA1: abc123\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/13202715/sed-get-lines-beginning-with-some-prefix","question_title":"Sed: get lines beginning with some prefix","question_owner":"CAMOBAP","answer_owner":"John3136","answer_id":13202727,"question_score":30,"reviewed":true,"prediction":"sed -n '/^RIM-COD-/p'","valid":true,"correct":true,"error":null}
|
| 4 |
+
{"id":"so-14046878","request":"Delete from the first line exactly matching '-----THIS STUFF IS USELESS-----' to the end of the input stream.","command":"sed '/^-----THIS STUFF IS USELESS-----$/,$d'","input_text":"Files:\nsomefiles.tar.gz 1 2 3\nsomefiles.tar.gz 1 2 3\n-----THIS STUFF IS USELESS-----\nBLEH BLEH BLEH\nBLEH BLEH BLEH","expected_output":"Files:\nsomefiles.tar.gz 1 2 3\nsomefiles.tar.gz 1 2 3\n","validation_input":"Header\nData Line 1\nData Line 2\n-----THIS STUFF IS USELESS-----\nFooter 1\nFooter 2","validation_output":"Header\nData Line 1\nData Line 2\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/14046878/using-sed-to-match-a-pattern-and-deleting-from-the-line-to-the-end-of-the-file","question_title":"Using sed to match a pattern and deleting from the line to the end of the file","question_owner":"Albert H","answer_owner":"shellter","answer_id":14046990,"question_score":26,"reviewed":true,"prediction":"sed /-----THIS STUFF IS USELESS-----/d","valid":false,"correct":false,"error":"Expected exactly one sed expression and no filenames."}
|
| 5 |
+
{"id":"so-15632691","request":"Print only the first line of the input and then stop processing.","command":"sed -n '1{p;q}'","input_text":"Line 1\nLine 2\nLine 3","expected_output":"Line 1\n","validation_input":"First\nSecond\nThird\nFourth","validation_output":"First\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/15632691/fastest-way-to-print-a-single-line-in-a-file","question_title":"Fastest way to print a single line in a file","question_owner":"JBoy","answer_owner":"Chris Seymour","answer_id":15632780,"question_score":25,"reviewed":true,"prediction":"sed -n 1p","valid":true,"correct":true,"error":null}
|
| 6 |
+
{"id":"so-1617724","request":"Replace all newline characters with tab characters in the input stream.","command":"sed ':a;N;$!ba;s/\\n/\\t/g'","input_text":"hi\nhello\nhallo\ngreetings","expected_output":"hi\thello\thallo\tgreetings","validation_input":"salutations\nno more hello for you","validation_output":"salutations\tno more hello for you","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/1617724/how-to-replace-newlines-with-tab-characters","question_title":"How to replace newlines with tab characters?","question_owner":"Vijay","answer_owner":"ghostdog74","answer_id":1617769,"question_score":24,"reviewed":true,"prediction":"sed 's/\\n/\\t/g'","valid":true,"correct":false,"error":null}
|
| 7 |
+
{"id":"so-16202900","request":"Remove spaces following commas only within lines 2 through 3 of the input.","command":"sed '2,3s/,\\s\\+/,/g'","input_text":"Line 1, with space\nLine 2, with space\nLine 3, with space\nLine 4, with space","expected_output":"Line 1, with space\nLine 2,with space\nLine 3,with space\nLine 4, with space","validation_input":"a, b\nb, c\nc, d\nd, e","validation_output":"a, b\nb,c\nc,d\nd, e","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/16202900/using-sed-between-specific-lines-only","question_title":"Using sed between specific lines only","question_owner":"hackio","answer_owner":"anubhava","answer_id":16202932,"question_score":26,"reviewed":true,"prediction":"sed -e '2,3 s/[[:blank:]]*,/,/g'","valid":true,"correct":false,"error":null}
|
| 8 |
+
{"id":"so-16576197","request":"Insert a newline between '</a>' and '<a><a>' in the input stream.","command":"sed 's#</a><a><a>#</a>\\\n<a><a>#g'","input_text":"</a><a><a>\nsome text </a><a><a> more text","expected_output":"</a>\n<a><a>\nsome text </a>\n<a><a> more text","validation_input":"prefix</a><a><a>suffix\n</a><a><a>","validation_output":"prefix</a>\n<a><a>suffix\n</a>\n<a><a>","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/16576197/how-to-add-new-line-using-sed-on-macos","question_title":"How to add new line using sed on MacOS?","question_owner":"codereviewanskquestions","answer_owner":"Kevin","answer_id":16576291,"question_score":26,"reviewed":true,"prediction":"sed 's/<\\/a>/<\\/a>\\n<a>/g'","valid":true,"correct":false,"error":null}
|
| 9 |
+
{"id":"so-18602234","request":"Remove the period and everything following it on each line.","command":"sed 's/\\..*$//'","input_text":"95 flour.\n47 water.s\netc..","expected_output":"95 flour\n47 water\netc","validation_input":"hello.world\ntest.case.end","validation_output":"hello\ntest","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/18602234/sed-to-remove-everything-after-in-file-using-command","question_title":"Sed to remove everything after "." in file using * command?","question_owner":"Novice","answer_owner":"Adam Rosenfield","answer_id":18602273,"question_score":25,"reviewed":true,"prediction":"sed 's/.*//'","valid":true,"correct":false,"error":null}
|
| 10 |
+
{"id":"so-20568515","request":"Replace the value of the variable VAR5 with VALUE10 in a configuration file content, keeping the key name intact.","command":"sed 's/^\\(VAR5=\\).*/\\1VALUE10/'","input_text":"VAR1=VALUE1\nVAR2=VALUE2\nVAR3=VALUE3\nVAR4=VALUE4\nVAR5=VALUE5\nVAR6=VALUE6","expected_output":"VAR1=VALUE1\nVAR2=VALUE2\nVAR3=VALUE3\nVAR4=VALUE4\nVAR5=VALUE10\nVAR6=VALUE6","validation_input":"KEY=OLD\nVAR5=SOMETHING\nOTHER=DATA","validation_output":"KEY=OLD\nVAR5=VALUE10\nOTHER=DATA","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/20568515/how-to-use-sed-to-replace-a-config-files-variable","question_title":"How to use sed to replace a config file's variable?","question_owner":"SomeGuyOnAComputer","answer_owner":"anubhava","answer_id":20568559,"question_score":32,"reviewed":true,"prediction":"sed -e \"s/VAR5=VALUE5/VAR5=VALUE10/g\"","valid":true,"correct":false,"error":null}
|
| 11 |
+
{"id":"so-22159044","request":"Append the string ' myalias' to the end of any line containing '192.168.1.2'.","command":"sed '/192.168.1.2/s/$/ myalias/'","input_text":"192.168.1.1 www.address1.com\n192.168.1.2 www.address2.com\n192.168.1.3 www.address3.com","expected_output":"192.168.1.1 www.address1.com\n192.168.1.2 www.address2.com myalias\n192.168.1.3 www.address3.com","validation_input":"10.0.0.1 host1\n192.168.1.2 host2\n10.0.0.3 host3","validation_output":"10.0.0.1 host1\n192.168.1.2 host2 myalias\n10.0.0.3 host3","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/22159044/how-to-append-a-string-at-end-of-a-specific-line-in-a-file-in-bash","question_title":"How to append a string at end of a specific line in a file in bash","question_owner":"Chris F","answer_owner":"Steve","answer_id":22159086,"question_score":30,"reviewed":true,"prediction":"sed '/192\\.168\\.1\\.2/a myalias'","valid":true,"correct":false,"error":null}
|
| 12 |
+
{"id":"so-22939323","request":"Replace sequences of two or more spaces with a single space in the input text.","command":"sed -e 's/ */ /g'","input_text":"iiHi Hello Hi\nthis is loga","expected_output":"iiHi Hello Hi\nthis is loga","validation_input":"a b c d\ne f","validation_output":"a b c d\ne f","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/22939323/sed-command-to-replace-multiple-spaces-into-single-spaces","question_title":"sed command to replace multiple spaces into single spaces","question_owner":"logan","answer_owner":"John Zwinck","answer_id":22939416,"question_score":25,"reviewed":true,"prediction":"sed 's/[[:blank:]]\\{2,\\}/ /g'","valid":true,"correct":true,"error":null}
|
| 13 |
+
{"id":"so-24427009","request":"Extract the last three characters from every line of the input.","command":"sed -e 's/^.*\\(...\\)$/\\1/'","input_text":"hello\nworld\nabcdef","expected_output":"llo\nrld\ndef","validation_input":"short\nlonger string\nxyz","validation_output":"ort\ning\nxyz","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/24427009/is-there-a-cleaner-way-of-getting-the-last-n-characters-of-every-line","question_title":"Is there a cleaner way of getting the last N characters of every line?","question_owner":"merlin2011","answer_owner":"Tiago Lopo","answer_id":24427087,"question_score":32,"reviewed":true,"prediction":"sed 's/.*\\(.\\{3\\}\\)$/\\1/'","valid":true,"correct":true,"error":null}
|
| 14 |
+
{"id":"so-25491847","request":"Extract only the second word from each line of text.","command":"sed -n 's/^[[:space:]]*[^[:space:]]*[[:space:]]\\+\\([^[:space:]]*\\).*/\\1/p'","input_text":"* CRISTOBAL AL042014 08/05/14 12 UTC *\nthis is a test","expected_output":"CRISTOBAL\nis","validation_input":" hello world foo\none two","validation_output":"world\ntwo","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/25491847/extract-the-second-word-in-a-line-from-a-text-file","question_title":"Extract The Second Word In A Line From A Text File","question_owner":"Aaron Perry","answer_owner":"zedfoxus","answer_id":25491964,"question_score":32,"reviewed":true,"prediction":"sed 's/[^ ]*\\ [^ ]*//'","valid":true,"correct":false,"error":null}
|
| 15 |
+
{"id":"so-28795479","request":"Convert camelCase text to underscore_case by inserting an underscore before uppercase letters and lowercasing them.","command":"sed 's/\\([a-z0-9]\\)\\([A-Z]\\)/\\1_\\2/g; s/.*/\\L&/'","input_text":"fooBar\nmyVariableName\nsimpleTest","expected_output":"foo_bar\nmy_variable_name\nsimple_test","validation_input":"getUserName\nparseXMLData","validation_output":"get_user_name\nparse_xmldata","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/28795479/awk-sed-script-to-convert-a-file-from-camelcase-to-underscores","question_title":"Awk/sed script to convert a file from camelCase to underscores","question_owner":"Corentin Peuvrel","answer_owner":"Avinash Raj","answer_id":28795550,"question_score":25,"reviewed":true,"prediction":"sed 's/\\([A-Z]\\)/_\\L\\1/g'","valid":true,"correct":false,"error":null}
|
| 16 |
+
{"id":"so-31903432","request":"Replace all tab characters with four spaces in the input text.","command":"sed 's/\\t/ /g'","input_text":"col1\tcol2\tcol3\nval1\tval2\tval3","expected_output":"col1 col2 col3\nval1 val2 val3","validation_input":"a\tb\n\tc","validation_output":"a b\n c","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/31903432/using-sed-to-replace-tab-with-spaces","question_title":"Using sed to replace tab with spaces","question_owner":"manshuai","answer_owner":"anubhava","answer_id":31903444,"question_score":28,"reviewed":true,"prediction":"sed 's/\\t/ /g'","valid":true,"correct":true,"error":null}
|
| 17 |
+
{"id":"so-31911179","request":"Delete the first line of the input stream.","command":"sed '1d'","input_text":"Header\nLine1\nLine2","expected_output":"Line1\nLine2","validation_input":"Title\nData A\nData B","validation_output":"Data A\nData B","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/31911179/ignoring-first-line-column-header-while-reading-a-file-in-bash","question_title":"Ignoring First line/Column header while reading a file in bash","question_owner":"Jai","answer_owner":"chepner","answer_id":31911198,"question_score":28,"reviewed":true,"prediction":"sed '1d'","valid":true,"correct":true,"error":null}
|
| 18 |
+
{"id":"so-3194534","request":"Join every pair of consecutive lines by appending the second line to the first, effectively merging line 2 into line 1, line 4 into line 3, and so on.","command":"sed '$!N;s/\\n//'","input_text":"abcd\njoinabcd\nefgh\njoinefgh\nijkl\njoinijkl","expected_output":"abcdjoinabcd\nefghjoinefgh\nijkljoinijkl","validation_input":"line1\nline2\nline3\nline4","validation_output":"line1line2\nline3line4","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/3194534/joining-two-consecutive-lines-using-awk-or-sed","question_title":"Joining two consecutive lines using awk or sed","question_owner":"Vijay","answer_owner":"Dimitre Radoulov","answer_id":3196948,"question_score":26,"reviewed":true,"prediction":"sed '$!N;s/\\n/ /'","valid":true,"correct":false,"error":null}
|
| 19 |
+
{"id":"so-3302434","request":"Remove the substring 'ko:' from each line, keeping the rest of the text intact.","command":"sed 's/ko://'","input_text":"ko04062 ko:CXCR3\nko04062 ko:CX3CR1\nko04062 ko:CCL3","expected_output":"ko04062 CXCR3\nko04062 CX3CR1\nko04062 CCL3","validation_input":"ko04080 ko:GZMA\nko05414 ko:ITGA4","validation_output":"ko04080 GZMA\nko05414 ITGA4","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/3302434/capturing-groups-in-sed","question_title":"capturing groups in sed","question_owner":"Mike Dewar","answer_owner":"ninjalj","answer_id":3302593,"question_score":25,"reviewed":true,"prediction":"sed 's/ko:://'","valid":true,"correct":false,"error":null}
|
| 20 |
+
{"id":"so-34576667","request":"Replace the text 'Foo' with 'Bar' in the input stream.","command":"sed -e 's/Foo/Bar/'","input_text":"Foo","expected_output":"Bar","validation_input":"Hello Foo World","validation_output":"Hello Bar World","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/34576667/sed-unescaped-newline-inside-substitute-pattern","question_title":"sed: unescaped newline inside substitute pattern?","question_owner":"RocketNuts","answer_owner":"anubhava","answer_id":34576684,"question_score":30,"reviewed":true,"prediction":"sed s/Foo/Bar/g","valid":true,"correct":true,"error":null}
|
| 21 |
+
{"id":"so-3576139","request":"Remove the string 'line number' only if it appears in the last line of the input.","command":"sed '$ s/line number//g'","input_text":"first line number\nsecond line number\nlast line number","expected_output":"first line number\nsecond line number\nlast ","validation_input":"keep line number\nremove line number","validation_output":"keep line number\nremove ","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/3576139/sed-remove-string-only-in-the-last-line-of-the-file","question_title":"sed + remove string only in the last line of the file","question_owner":"lidia","answer_owner":"Scharron","answer_id":3576183,"question_score":31,"reviewed":true,"prediction":"sed '$ s/line number//'","valid":true,"correct":true,"error":null}
|
| 22 |
+
{"id":"so-39198780","request":"Replace all newline characters with a single space in the input stream.","command":"sed ':a;N;$!ba;s/\\n/ /g'","input_text":"my\nname\nis\nxxxx","expected_output":"my name is xxxx","validation_input":"hello\nworld","validation_output":"hello world","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/39198780/replace-nnew-line-with-space-in-bash","question_title":"Replace \\n(new line) with space in bash","question_owner":"Prometheus","answer_owner":"Cyrus","answer_id":39198829,"question_score":24,"reviewed":true,"prediction":"sed 's/\\n/ /g'","valid":true,"correct":false,"error":null}
|
| 23 |
+
{"id":"so-39648222","request":"Convert a multi-line text stream into a single line by replacing all newline characters with spaces, effectively joining the lines.","command":"sed ':a;N;$!ba;s/\\n/ /g'","input_text":"{\n\"key\": \"value\"\n}","expected_output":"{ \"key\": \"value\" }","validation_input":"Line 1\nLine 2\nLine 3","validation_output":"Line 1 Line 2 Line 3","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/39648222/converting-json-pretty-print-to-one-line","question_title":"Converting JSON pretty print to one line","question_owner":"h.b","answer_owner":"P....","answer_id":39653559,"question_score":29,"reviewed":true,"prediction":"sed ':a;N;s/\\n/ /;ba'","valid":true,"correct":true,"error":null}
|
| 24 |
+
{"id":"so-40506782","request":"Remove all characters from the beginning of each line up to and including the first occurrence of the digit '2'.","command":"sed 's/^[^2]*2//'","input_text":"ananas1kiwi2apple1banana2tree\nhello2world\ntest","expected_output":"apple1banana2tree\nworld\ntest","validation_input":"abc2def2ghi\nno_match_here\n123","validation_output":"def2ghi\nno_match_here\n3","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/40506782/delete-everyting-preceding-and-including-a-certain-substring-from-variable","question_title":"Delete everyting preceding and including a certain substring from variable","question_owner":"Anne K.","answer_owner":"heemayl","answer_id":40506863,"question_score":27,"reviewed":true,"prediction":"sed 's/^[^2]*//'","valid":true,"correct":false,"error":null}
|
| 25 |
+
{"id":"so-5024357","request":"Read lines from standard input and print them until a line containing the exact string 'EOF' is encountered. The line containing 'EOF' should also be printed, and then the program should stop processing further input.","command":"sed '/EOF/q'","input_text":"Line 1\nLine 2\nThis is EOF\nLine 4","expected_output":"Line 1\nLine 2\nThis is EOF\n","validation_input":"Start\nMiddle\nEnd with EOF marker\nIgnored line","validation_output":"Start\nMiddle\nEnd with EOF marker\n","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/5024357/do-a-tail-f-until-matching-a-pattern","question_title":"Do a tail -F until matching a pattern","question_owner":"Sam Alba","answer_owner":"jpetazzo","answer_id":5033775,"question_score":27,"reviewed":true,"prediction":"sed -n '/EOF/p'","valid":true,"correct":false,"error":null}
|
| 26 |
+
{"id":"so-5544322","request":"Extract and clean the value from lines starting with 'Important1: ', removing the prefix and surrounding whitespace, while suppressing all other lines.","command":"sed -n 's/^Important1: *\\([^ ]*\\) */\\1/p'","input_text":"Bla\nBla\nImportant1: One \nBla\nImportant2: Two\nBla\nBla","expected_output":"One\n","validation_input":"Ignore this\nImportant1: Value \nIgnore that\nImportant1: Another","validation_output":"Value\nAnother","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/5544322/sed-get-only-the-replaced-string-from-a-multiline-input-omit-unmatched-lines","question_title":"sed - Get only the replaced string from a multiline input & omit unmatched lines!","question_owner":"porg","answer_owner":"anubhava","answer_id":5544539,"question_score":26,"reviewed":true,"prediction":"sed -n '/Important1:/ s/.*://p'","valid":true,"correct":false,"error":null}
|
| 27 |
+
{"id":"so-6006132","request":"Print only the lines that do not end with the string 'abcd'.","command":"sed -n '/abcd$/!p'","input_text":"this is abcd\nthis is not\nanother abcd\nend","expected_output":"this is not\nend","validation_input":"xyzabcd\nkeep this line\nfoo bar abcd\nretain","validation_output":"keep this line\nretain","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/6006132/grep-line-of-text-that-does-not-end-with-abcd","question_title":"Grep. Line of text that does not end with "abcd"?","question_owner":"CCC","answer_owner":"tobyodavies","answer_id":6006139,"question_score":27,"reviewed":true,"prediction":"sed '/abcd$/d'","valid":true,"correct":true,"error":null}
|
| 28 |
+
{"id":"so-6011661","request":"Extract the two-digit number surrounded by identical non-digit characters from each line. If a line does not match this pattern, produce no output for that line.","command":"sed -n 's/^.*\\(.\\)\\([0-9][0-9]\\)\\1.*$/\\2/p'","input_text":"plop-02-plop\nabcX99Xdef\nno-match-here\nz55z","expected_output":"02\n99\n55","validation_input":"testA12Aend\nfailB1C\nok_77_","validation_output":"12\n77","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/6011661/regexp-sed-suppress-no-match-output","question_title":"regexp (sed) suppress "no match" output","question_owner":"yPhil","answer_owner":"przemoc","answer_id":6011704,"question_score":28,"reviewed":true,"prediction":"sed 's/[^a-zA-Z]*\\([0-9][0-9]\\)\\{1,\\}[^a-zA-Z]*/\\1/'","valid":true,"correct":false,"error":null}
|
| 29 |
+
{"id":"so-6869449","request":"Delete lines matching the regex '^Name' but skip the first line of the input.","command":"sed -e '2,${ /^Name/d }'","input_text":"Name\nJohn\nAlbert\nMora\nName\nTommy\nTammy","expected_output":"Name\nJohn\nAlbert\nMora\nTommy\nTammy","validation_input":"Header\nData1\nHeader\nData2\nFooter","validation_output":"Header\nData1\nHeader\nData2\nFooter","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/6869449/skipping-the-first-n-lines-when-using-regex-with-sed","question_title":"Skipping the first n lines when using regex with sed?","question_owner":"Legend","answer_owner":"a'r","answer_id":6869486,"question_score":26,"reviewed":true,"prediction":"sed '1d; /^Name/d'","valid":true,"correct":false,"error":null}
|
| 30 |
+
{"id":"so-689495","request":"Convert the uppercase letter immediately following an underscore in identifiers starting with 'get' to lowercase.","command":"sed -e 's/\\(get[A-Z][A-Za-z0-9]*_\\)\\([A-Z]\\)/\\1\\L\\2/g'","input_text":"getFoo_Bar\ngetBaz_Qux","expected_output":"getFoo_bar\ngetBaz_qux","validation_input":"getX_Y\ngetAb_Cd_Ef","validation_output":"getX_y\ngetAb_cd_Ef","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/689495/upper-to-lower-case-using-sed","question_title":"upper- to lower-case using sed","question_owner":"cadrian","answer_owner":"strager","answer_id":689608,"question_score":25,"reviewed":true,"prediction":"sed -e 's/^get_[A-Z][a-z]*/get_\\L&/'","valid":true,"correct":false,"error":null}
|
| 31 |
+
{"id":"so-8225822","request":"Replace all occurrences of 'A' with 'a' and only print lines where a substitution was made.","command":"sed -n 's/A/a/gp'","input_text":"Apple\nBanana\nAvocado","expected_output":"apple\navocado","validation_input":"ABC\nXYZ\nA123","validation_output":"aBC\na123","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/8225822/how-to-make-sed-remove-lines-not-matched-by-a-substitution","question_title":"How to make sed remove lines not matched by a substitution","question_owner":"Ropez","answer_owner":"jaypal singh","answer_id":8255627,"question_score":28,"reviewed":true,"prediction":"sed -e '/./s/A/a/g'","valid":true,"correct":false,"error":null}
|
| 32 |
+
{"id":"so-8356958","request":"Remove the prefix 'foo: ' from the beginning of each line in the input text.","command":"sed 's/^foo: //'","input_text":"foo: bar1\nfoo: bar2\nfoo: bar3","expected_output":"bar1\nbar2\nbar3","validation_input":"foo: hello world\nfoo: test case\nno match here","validation_output":"hello world\ntest case\nno match here","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/8356958/sed-just-trying-to-remove-a-substring","question_title":"sed: just trying to remove a substring","question_owner":"user1077220","answer_owner":"aefxx","answer_id":8356980,"question_score":28,"reviewed":true,"prediction":"sed 's/^foo: //'","valid":true,"correct":true,"error":null}
|
| 33 |
+
{"id":"so-8394066","request":"Insert a line containing two words separated by a tab character at the beginning of the input.","command":"sed '1i\\\nword1\tword2'","input_text":"Existing line 1\nExisting line 2","expected_output":"word1\tword2\nExisting line 1\nExisting line 2","validation_input":"Data start","validation_output":"word1\tword2\nData start","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/8394066/what-is-the-proper-way-to-insert-tab-in-sed","question_title":"What is the proper way to insert tab in sed?","question_owner":"dabest1","answer_owner":"Jonathan Leffler","answer_id":8394150,"question_score":33,"reviewed":true,"prediction":"sed '1i\\Two words'","valid":true,"correct":false,"error":null}
|
| 34 |
+
{"id":"so-8991275","request":"Replace the character 'b' with a newline in the input stream.","command":"sed 's/b/\\\n/'","input_text":"abc","expected_output":"a\nc","validation_input":"xbx","validation_output":"x\nx","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/8991275/escaping-newlines-in-sed-replacement-string","question_title":"escaping newlines in sed replacement string","question_owner":"spraff","answer_owner":"jaypal singh","answer_id":8991356,"question_score":29,"reviewed":true,"prediction":"sed 's/b/\\n/g'","valid":true,"correct":true,"error":null}
|
| 35 |
+
{"id":"so-9191030","request":"Remove all occurrences of the substring 'ABC' from the end of each line.","command":"sed 's/\\(ABC\\)*$//'","input_text":"DAAAAABCBBBCCABCABC\nHelloABC\nWorld","expected_output":"DAAAAABCBBBCC\nHello\nWorld","validation_input":"TestABCABC\nNoChange\nEndABC","validation_output":"Test\nNoChange\nEnd","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/9191030/removing-pattern-at-the-end-of-a-string-using-sed-or-other-bash-tools","question_title":"Removing pattern at the end of a string using sed or other bash tools","question_owner":"Kay Chan","answer_owner":"Birei","answer_id":9191062,"question_score":30,"reviewed":true,"prediction":"sed 's/.*ABC$//'","valid":true,"correct":false,"error":null}
|
| 36 |
+
{"id":"so-9260625","request":"Extract the first sequence of digits from each line of input text.","command":"sed -n 's/^[^0-9]*\\([0-9][0-9]*\\).*/\\1/p'","input_text":"This is an example: 65 apples\nThere are 123 items here","expected_output":"65\n123","validation_input":"No numbers in this line\nValue is 42 and count is 7","validation_output":"42","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/9260625/sed-extracting-group-of-digits","question_title":"sed extracting group of digits","question_owner":"Uthman","answer_owner":"codaddict","answer_id":9260734,"question_score":24,"reviewed":true,"prediction":"sed 's/[^0-9]*\\([0-9]\\+\\).*/\\1/'","valid":true,"correct":false,"error":null}
|
| 37 |
+
{"id":"so-9970124","request":"Insert the line 'New Inserted Line' immediately after the first occurrence of 'Matched Keyword', before any remaining text on that line.","command":"sed '0,/Matched Keyword/s//Matched Keyword\\nNew Inserted Line/'","input_text":"Line 1\nLine 2\nThis line contains the Matched Keyword and other stuff\nLine 4\nThis line contains the Matched Keyword and other stuff\nLine 6","expected_output":"Line 1\nLine 2\nThis line contains the Matched Keyword\nNew Inserted Line and other stuff\nLine 4\nThis line contains the Matched Keyword and other stuff\nLine 6","validation_input":"Start\nMiddle Matched Keyword End\nEnd Matched Keyword Start\nFinish","validation_output":"Start\nMiddle Matched Keyword\nNew Inserted Line End\nEnd Matched Keyword Start\nFinish","family":"real-stackoverflow","difficulty":3,"split":"test","source":"stackoverflow-accepted-answer","license":"CC-BY-SA-4.0","question_url":"https://stackoverflow.com/questions/9970124/sed-to-insert-on-first-match-only","question_title":"sed to insert on first match only","question_owner":"SSS","answer_owner":"Squazic","answer_id":9970467,"question_score":26,"reviewed":true,"prediction":"sed '/Matched Keyword/a\\New Inserted Line'","valid":true,"correct":false,"error":null}
|
evaluation/1.5b-test.summary.json
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model": "/outputs/43074909-088d-4a6d-874f-13abacf2dc37/training/model",
|
| 3 |
+
"split": "test",
|
| 4 |
+
"rows": 37,
|
| 5 |
+
"valid_at_1": 0.972972972972973,
|
| 6 |
+
"correct_at_1": 0.35135135135135137,
|
| 7 |
+
"exact_output_on_two_inputs": true,
|
| 8 |
+
"prediction_cleanup": "special tokens only",
|
| 9 |
+
"seconds": 12.091012239456177,
|
| 10 |
+
"data_sha256": "9351a02c467b606e9c16ca2b2fcef7309850a4edfd3b539e9adc192ac766b555",
|
| 11 |
+
"transformers_version": "5.17.0",
|
| 12 |
+
"torch_version": "2.14.0",
|
| 13 |
+
"families": {
|
| 14 |
+
"real-stackoverflow": {
|
| 15 |
+
"rows": 37,
|
| 16 |
+
"valid": 36,
|
| 17 |
+
"correct": 13
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
}
|