Dataset Viewer
Auto-converted to Parquet Duplicate
function
stringlengths
61
9.1k
testmethod
stringlengths
42
143
location_fixed
stringlengths
43
98
end_buggy
int64
10
12k
location
stringlengths
43
98
function_name
stringlengths
4
73
source_buggy
stringlengths
655
442k
prompt_complete
stringlengths
433
4.3k
end_fixed
int64
10
12k
comment
stringlengths
0
763
bug_id
stringlengths
1
3
start_fixed
int64
7
12k
location_buggy
stringlengths
43
98
source_dir
stringclasses
5 values
prompt_chat
stringlengths
420
3.86k
start_buggy
int64
7
12k
classes_modified
sequence
task_id
stringlengths
64
64
function_signature
stringlengths
22
150
prompt_complete_without_signature
stringlengths
404
4.23k
project
stringclasses
17 values
indent
stringclasses
4 values
source_fixed
stringlengths
655
442k
@Test public void appendMustCorrectlyMoveChildrenInsideOneParentElement() { Document doc = new Document(""); Element body = doc.appendElement("body"); body.appendElement("div1"); body.appendElement("div2"); final Element div3 = body.appendElement("div3"); div3.tex...
org.jsoup.nodes.ElementTest::appendMustCorrectlyMoveChildrenInsideOneParentElement
src/test/java/org/jsoup/nodes/ElementTest.java
879
src/test/java/org/jsoup/nodes/ElementTest.java
appendMustCorrectlyMoveChildrenInsideOneParentElement
package org.jsoup.nodes; import org.jsoup.Jsoup; import org.jsoup.TextUtil; import org.jsoup.parser.Tag; import org.jsoup.select.Elements; import org.junit.Test; import java.util.*; import static org.junit.Assert.*; /** * Tests for Element (DOM stuff mostly). * * @author Jonathan Hedley */ public class ElementT...
// You are a professional Java test case writer, please create a test case named `appendMustCorrectlyMoveChildrenInsideOneParentElement` for the issue `Jsoup-689`, utilizing the provided issue report information and the following function signature. // ## Issue-ID: Jsoup-689 // // ## Issue-Title: // Bug in Element.i...
879
49
860
src/test/java/org/jsoup/nodes/ElementTest.java
src/test/java
```markdown ## Issue-ID: Jsoup-689 ## Issue-Title: Bug in Element.insertChildren() ## Issue-Description: When using org.jsoup.nodes.Element.insertChildren(int, Collection<? extends Node>) to move (more than one!) child-elements from one parent-element to the same parent, but different index then it produces wrong r...
860
[ "org.jsoup.nodes.Node" ]
021c78a789592d6afbc95eeb73663d951c5109c229ab25610349c0ffef564ce1
@Test public void appendMustCorrectlyMoveChildrenInsideOneParentElement()
// You are a professional Java test case writer, please create a test case named `appendMustCorrectlyMoveChildrenInsideOneParentElement` for the issue `Jsoup-689`, utilizing the provided issue report information and the following function signature. // ## Issue-ID: Jsoup-689 // // ## Issue-Title: // Bug in Element.i...
Jsoup
package org.jsoup.nodes; import org.jsoup.Jsoup; import org.jsoup.TextUtil; import org.jsoup.parser.Tag; import org.jsoup.select.Elements; import org.junit.Test; import java.util.*; import static org.junit.Assert.*; /** * Tests for Element (DOM stuff mostly). * * @author Jonathan Hedley */ public class ElementT...
@Test public void testEscapeNull1() throws IOException { StringWriter sw = new StringWriter(); try (final CSVPrinter printer = new CSVPrinter(sw, CSVFormat.DEFAULT.withEscape(null))) { printer.print("\\"); } assertEquals("\\", sw.toString()); }
org.apache.commons.csv.CSVPrinterTest::testEscapeNull1
src/test/java/org/apache/commons/csv/CSVPrinterTest.java
346
src/test/java/org/apache/commons/csv/CSVPrinterTest.java
testEscapeNull1
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
// You are a professional Java test case writer, please create a test case named `testEscapeNull1` for the issue `Csv-CSV-171`, utilizing the provided issue report information and the following function signature. // ## Issue-ID: Csv-CSV-171 // // ## Issue-Title: // Negative numeric values in the first column are al...
346
14
339
src/test/java/org/apache/commons/csv/CSVPrinterTest.java
src/test/java
```markdown ## Issue-ID: Csv-CSV-171 ## Issue-Title: Negative numeric values in the first column are always quoted in minimal mode ## Issue-Description: Negative Numeric values are always quoted in minimal mode if (and only if) they are in the first column. i.e. long,lat,data "-92.222",43.333,3 Looking a...
339
[ "org.apache.commons.csv.CSVFormat" ]
02fe4403d96ec0bdd25c23d282e89bcdffb04daeb609bf922ed558bc1139023e
@Test public void testEscapeNull1() throws IOException
// You are a professional Java test case writer, please create a test case named `testEscapeNull1` for the issue `Csv-CSV-171`, utilizing the provided issue report information and the following function signature. // ## Issue-ID: Csv-CSV-171 // // ## Issue-Title: // Negative numeric values in the first column are al...
Csv
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may ...
" @Test\n public void testChainedRemoveAttributes() {\n String html = \"<a one two thre(...TRUNCATED)
org.jsoup.nodes.ElementTest::testChainedRemoveAttributes
src/test/java/org/jsoup/nodes/ElementTest.java
973
src/test/java/org/jsoup/nodes/ElementTest.java
testChainedRemoveAttributes
"package org.jsoup.nodes;\n\nimport org.jsoup.Jsoup;\nimport org.jsoup.TextUtil;\nimport org.jsoup.p(...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `testChainedRemove(...TRUNCATED)
973
57
960
src/test/java/org/jsoup/nodes/ElementTest.java
src/test/java
"```markdown\n## Issue-ID: Jsoup-759\n\n## Issue-Title: \nremoveIgnoreCase ConcurrentModificationExc(...TRUNCATED)
960
[ "org.jsoup.nodes.Attributes" ]
03861a74fcf192e0e0543153e3e1885a9c95b0146e24fe30efe83a989d95bccb
@Test public void testChainedRemoveAttributes()
"// You are a professional Java test case writer, please create a test case named `testChainedRemove(...TRUNCATED)
Jsoup
"package org.jsoup.nodes;\n\nimport org.jsoup.Jsoup;\nimport org.jsoup.TextUtil;\nimport org.jsoup.p(...TRUNCATED)
" public void testWithUnwrappedAndCreatorSingleParameterAtBeginning() throws Exception {\n (...TRUNCATED)
"com.fasterxml.jackson.databind.deser.builder.BuilderWithUnwrappedTest::testWithUnwrappedAndCreatorS(...TRUNCATED)
src/test/java/com/fasterxml/jackson/databind/deser/builder/BuilderWithUnwrappedTest.java
179
src/test/java/com/fasterxml/jackson/databind/deser/builder/BuilderWithUnwrappedTest.java
testWithUnwrappedAndCreatorSingleParameterAtBeginning
"package com.fasterxml.jackson.databind.deser.builder;\n\nimport com.fasterxml.jackson.annotation.Js(...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `testWithUnwrapped(...TRUNCATED)
179
" /*\n *************************************\n * Unit tests\n ***********************(...TRUNCATED)
76
168
src/test/java/com/fasterxml/jackson/databind/deser/builder/BuilderWithUnwrappedTest.java
src/test/java
"```markdown\n## Issue-ID: JacksonDatabind-1573\n\n## Issue-Title: \nMissing properties when deseria(...TRUNCATED)
168
[ "com.fasterxml.jackson.databind.deser.BuilderBasedDeserializer" ]
0401bac6c0aa608166d12da47792008573fda3176ab1774de2b9f86ea7aabd03
public void testWithUnwrappedAndCreatorSingleParameterAtBeginning() throws Exception
"// You are a professional Java test case writer, please create a test case named `testWithUnwrapped(...TRUNCATED)
JacksonDatabind
"package com.fasterxml.jackson.databind.deser.builder;\n\nimport com.fasterxml.jackson.annotation.Js(...TRUNCATED)
" @Test\n public void survivesPaxHeaderWithNameEndingInSlash() throws Exception {\n fin(...TRUNCATED)
"org.apache.commons.compress.archivers.tar.TarArchiveInputStreamTest::survivesPaxHeaderWithNameEndin(...TRUNCATED)
src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
328
src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
survivesPaxHeaderWithNameEndingInSlash
"/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license(...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `survivesPaxHeader(...TRUNCATED)
328
/** * @link "https://issues.apache.org/jira/browse/COMPRESS-356" */
38
318
src/test/java/org/apache/commons/compress/archivers/tar/TarArchiveInputStreamTest.java
src/test/java
"```markdown\n## Issue-ID: Compress-COMPRESS-356\n\n## Issue-Title: \nPAX header entry name ending w(...TRUNCATED)
318
[ "org.apache.commons.compress.archivers.tar.TarArchiveEntry" ]
0415194838d24fbbc7c6bba450f676fa746588c1e44179aae34c4601d66b3b6b
@Test public void survivesPaxHeaderWithNameEndingInSlash() throws Exception
"// You are a professional Java test case writer, please create a test case named `survivesPaxHeader(...TRUNCATED)
Compress
"/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license(...TRUNCATED)
" @Test\n public void testReadingOfFirstStoredEntry() throws Exception {\n ZipArchiveIn(...TRUNCATED)
org.apache.commons.compress.archivers.zip.ZipArchiveInputStreamTest::testReadingOfFirstStoredEntry
src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
170
src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
testReadingOfFirstStoredEntry
"/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license(...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `testReadingOfFirs(...TRUNCATED)
170
" /**\n * Test case for \n * <a href=\"https://issues.apache.org/jira/browse/COMPRESS-264(...TRUNCATED)
25
158
src/test/java/org/apache/commons/compress/archivers/zip/ZipArchiveInputStreamTest.java
src/test/java
"```markdown\n## Issue-ID: Compress-COMPRESS-264\n\n## Issue-Title: \nZIP reads correctly with commo(...TRUNCATED)
158
[ "org.apache.commons.compress.archivers.zip.ZipArchiveInputStream" ]
050b4d4132e91fd034ea46a90712ff55907adde1c1012bec705211fb26cb04ce
@Test public void testReadingOfFirstStoredEntry() throws Exception
"// You are a professional Java test case writer, please create a test case named `testReadingOfFirs(...TRUNCATED)
Compress
"/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license(...TRUNCATED)
" public void testBug4944818() {\n test(\n \"var getDomServices_ = function(self) {\\n\" (...TRUNCATED)
com.google.javascript.jscomp.InlineFunctionsTest::testBug4944818
test/com/google/javascript/jscomp/InlineFunctionsTest.java
2,093
test/com/google/javascript/jscomp/InlineFunctionsTest.java
testBug4944818
"/*\n * Copyright 2008 The Closure Compiler Authors.\n *\n * Licensed under the Apache License, Vers(...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `testBug4944818` f(...TRUNCATED)
2,093
115
2,058
test/com/google/javascript/jscomp/InlineFunctionsTest.java
test
"```markdown\n## Issue-ID: Closure-1101\n\n## Issue-Title: \nErroneous optimization in ADVANCED_OPTI(...TRUNCATED)
2,058
[ "com.google.javascript.jscomp.FunctionInjector" ]
0547be5ae0ee0bb59db0bd6db5e5b39ba3eb97b4572678f7c8ca2d9687baeea0
public void testBug4944818()
"// You are a professional Java test case writer, please create a test case named `testBug4944818` f(...TRUNCATED)
Closure
"/*\n * Copyright 2008 The Closure Compiler Authors.\n *\n * Licensed under the Apache License, Vers(...TRUNCATED)
" public void testPrintWrapped()\n throws Exception\n {\n StringBuffer sb = new String(...TRUNCATED)
org.apache.commons.cli.HelpFormatterTest::testPrintWrapped
src/test/org/apache/commons/cli/HelpFormatterTest.java
114
src/test/org/apache/commons/cli/HelpFormatterTest.java
testPrintWrapped
"/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license (...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `testPrintWrapped`(...TRUNCATED)
114
8
67
src/test/org/apache/commons/cli/HelpFormatterTest.java
src/test
"```markdown\n## Issue-ID: Cli-CLI-151\n\n## Issue-Title: \nHelpFormatter wraps incorrectly on every(...TRUNCATED)
67
[ "org.apache.commons.cli.HelpFormatter" ]
06a4b1a5880e47010b28e5cb1d3de6798c92c7a0d4113e697e16d87a8f5c04a0
public void testPrintWrapped() throws Exception
"// You are a professional Java test case writer, please create a test case named `testPrintWrapped`(...TRUNCATED)
Cli
"/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license (...TRUNCATED)
" public void testPropertyOptionFlags() throws Exception\n {\n Properties properties = (...TRUNCATED)
org.apache.commons.cli.ValueTest::testPropertyOptionFlags
src/test/org/apache/commons/cli/ValueTest.java
236
src/test/org/apache/commons/cli/ValueTest.java
testPropertyOptionFlags
"/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license (...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `testPropertyOptio(...TRUNCATED)
236
28
191
src/test/org/apache/commons/cli/ValueTest.java
src/test
"```markdown\n## Issue-ID: Cli-CLI-201\n\n## Issue-Title: \nDefault options may be partially process(...TRUNCATED)
191
[ "org.apache.commons.cli.Parser" ]
07be9f5a2dc338177219f9e05b441b6c77b4d7baec421c9c82e25c28a1683513
public void testPropertyOptionFlags() throws Exception
"// You are a professional Java test case writer, please create a test case named `testPropertyOptio(...TRUNCATED)
Cli
"/**\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license (...TRUNCATED)
" public void testIssue1047() throws Exception {\n testTypes(\n \"/**\\n\" +\n \" (...TRUNCATED)
com.google.javascript.jscomp.TypeCheckTest::testIssue1047
test/com/google/javascript/jscomp/TypeCheckTest.java
6,870
test/com/google/javascript/jscomp/TypeCheckTest.java
testIssue1047
"/*\n * Copyright 2006 The Closure Compiler Authors.\n *\n * Licensed under the Apache License, Vers(...TRUNCATED)
"// You are a professional Java test case writer, please create a test case named `testIssue1047` fo(...TRUNCATED)
6,870
117
6,850
test/com/google/javascript/jscomp/TypeCheckTest.java
test
"```markdown\n## Issue-ID: Closure-1047\n\n## Issue-Title: \nWrong type name reported on missing pro(...TRUNCATED)
6,850
[ "com.google.javascript.jscomp.TypeValidator" ]
07cf137f8e93b1b3ea8d9d5deb05baafa7244be45fb719b13791f8e28a6b7d8e
public void testIssue1047() throws Exception
"// You are a professional Java test case writer, please create a test case named `testIssue1047` fo(...TRUNCATED)
Closure
"/*\n * Copyright 2006 The Closure Compiler Authors.\n *\n * Licensed under the Apache License, Vers(...TRUNCATED)
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
5

Models trained or fine-tuned on ZHENGRAN/code_ujb_testgenissue