Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
23
25
content
stringlengths
5.51k
455k
max_stars_repo_path
stringlengths
46
115
code_ujb_testgen_data_1
@Test public void testDecodeWithInnerPad() { final String content = "SGVsbG8gV29ybGQ=SGVsbG8gV29ybGQ="; final byte[] result = Base64.decodeBase64(content); final byte[] shouldBe = StringUtils.getBytesUtf8("Hello World"); assertTrue("decode should halt at pad (=)", Arrays.equals(r...
src/test/java/org/apache/commons/codec/binary/Base64Test.java
code_ujb_testgen_data_2
public void testDateConstructor1() { TimeZone zone = TimeZone.getTimeZone("GMT"); Calendar c = new GregorianCalendar(zone); Quarter q1 = new Quarter(new Date(1017619199999L), zone, Locale.getDefault()); Quarter q2 = new Quarter(new Date(1017619200000L), zone, L...
tests/org/jfree/data/time/junit/QuarterTests.java
code_ujb_testgen_data_3
public void testGetDomainBoundsWithInterval() { // check empty dataset TimePeriodValuesCollection dataset = new TimePeriodValuesCollection(); Range r = dataset.getDomainBounds(true); assertNull(r); // check dataset with one time period TimePeriodValues s1 = n...
tests/org/jfree/data/time/junit/TimePeriodValuesCollectionTests.java
code_ujb_testgen_data_4
public void testLocalType728() throws Exception { TypeFactory tf = TypeFactory.defaultInstance(); Method m = Issue728.class.getMethod("method", CharSequence.class); assertNotNull(m); // Start with return type // first type-erased JavaType t = tf.constructType(m.g...
src/test/java/com/fasterxml/jackson/databind/type/TestJavaType.java
code_ujb_testgen_data_5
public void testCollections() { // Ok, first: let's test what happens when we pass 'raw' Collection: TypeFactory tf = TypeFactory.defaultInstance(); JavaType t = tf.constructType(ArrayList.class); assertEquals(CollectionType.class, t.getClass()); assertSame(ArrayList.clas...
src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactory.java
code_ujb_testgen_data_6
public void test2502355_zoomInRange() { DefaultXYDataset dataset = new DefaultXYDataset(); JFreeChart chart = ChartFactory.createXYLineChart("TestChart", "X", "Y", dataset, false); XYPlot plot = (XYPlot) chart.getPlot(); plot.setRangeAxis(1, new NumberAxis("X2")); ...
tests/org/jfree/chart/junit/ChartPanelTests.java
code_ujb_testgen_data_7
" public void test1170825() {\n YIntervalSeries s1 = new YIntervalSeries(\"Series1\");\n (...TRUNCATED)
tests/org/jfree/data/xy/junit/YIntervalSeriesCollectionTests.java
code_ujb_testgen_data_8
" public void test2502355_restoreAutoDomainBounds() {\n DefaultXYDataset dataset = new Def(...TRUNCATED)
tests/org/jfree/chart/junit/ChartPanelTests.java
code_ujb_testgen_data_9
" @Test\n public void testConstructorPlusAdd() {\n final FixedOrderComparator<String> c(...TRUNCATED)
src/test/java/org/apache/commons/collections4/comparators/FixedOrderComparatorTest.java
code_ujb_testgen_data_10
" public void testFifteenMinSegmentedTimeline() {\n assertEquals(SegmentedTimeline.FIFTEEN(...TRUNCATED)
tests/org/jfree/chart/axis/junit/SegmentedTimelineTests.java
End of preview. Expand in Data Studio
README.md exists but content is empty.
Downloads last month
3