id stringlengths 7 14 | test_class dict | test_case dict | focal_class dict | focal_method dict | repository dict |
|---|---|---|---|---|---|
19257422_157 | {
"fields": [
{
"declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n... | {
"body": "@Test\n public void testGetStrLen() {\n Assert.assertEquals(\"false\".length(), functionA.getStrLen(null));\n Assert.assertEquals(\"true\".length(), functionB.getStrLen(null));\n }",
"class_method_signature": "BooleanFunctionTest.testGetStrLen()",
"constructor": false,
"full_signa... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java",
"identifier": "BooleanF... | {
"body": "@Override\n public final int getStrLen(Record rec) {\n return getBool(rec) ? \"true\".length() : \"false\".length();\n }",
"class_method_signature": "BooleanFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getStrLen(Record rec)",
"ide... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_507 | {
"fields": [
{
"declarator": "MUST_SWITCH = 1",
"modifier": "public static final",
"original_string": "public static final int MUST_SWITCH = 1;",
"type": "int",
"var_name": "MUST_SWITCH"
},
{
"declarator": "MUST_NOT_SWITCH = 2",
"modifier": "public static final",... | {
"body": "@Test\n public void testReadLong256Two() {\n try (TableModel model = new TableModel(configuration, \"w\", PartitionBy.DAY).col(\"l\", ColumnType.LONG256).timestamp()) {\n CairoTestUtils.create(model);\n }\n\n final int N = 1_000_000;\n final Rnd rnd = new Rnd();\n ... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableReader.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableReader.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "YEAR_GEN = Tab... | {
"body": "public TableReaderRecordCursor getCursor() {\n recordCursor.toTop();\n return recordCursor;\n }",
"class_method_signature": "TableReader.getCursor()",
"constructor": false,
"full_signature": "public TableReaderRecordCursor getCursor()",
"identifier": "getCursor",
"invocations": [... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_442 | {
"fields": [
{
"declarator": "ENTITY_MANIPULATOR = (index, len, b) -> b",
"modifier": "private static final",
"original_string": "private static final ByteManipulator ENTITY_MANIPULATOR = (index, len, b) -> b;",
"type": "ByteManipulator",
"var_name": "ENTITY_MANIPULATOR"
},
... | {
"body": "@Test\n public void testSingleColumn() throws Exception {\n assertNoLeak(textLoader -> {\n final String expected = \"f0\\n\" +\n \"1\\n\" +\n \"2\\n\" +\n \"3\\n\" +\n \"4\\n\" +\n \"5\\n\" +... | {
"fields": [
{
"declarator": "LOAD_JSON_METADATA = 0",
"modifier": "public static final",
"original_string": "public static final int LOAD_JSON_METADATA = 0;",
"type": "int",
"var_name": "LOAD_JSON_METADATA"
},
{
"declarator": "ANALYZE_STRUCTURE = 1",
"modifier":... | {
"body": "public void setForceHeaders(boolean forceHeaders) {\n this.forceHeaders = forceHeaders;\n }",
"class_method_signature": "TextLoader.setForceHeaders(boolean forceHeaders)",
"constructor": false,
"full_signature": "public void setForceHeaders(boolean forceHeaders)",
"identifier": "setForceH... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_24 | {
"fields": [
{
"declarator": "function = new LongFunction(25) {\n @Override\n public long getLong(Record rec) {\n return 149;\n }\n }",
"modifier": "private static final",
"original_string": "private static final LongFunction function = new LongFunction(25) {\... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBool() {\n function.getBool(null);\n }",
"class_method_signature": "LongFunctionTest.testGetBool()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java",
"identifier": "LongFunctio... | {
"body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "LongFunction.getBool(Record rec)",
"constructor": false,
"full_signature": "@Override public final boolean getBool(Record rec)",
"identifier": "getBool",... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_291 | {
"fields": [
{
"declarator": "function = new DateFunction(25) {\n @Override\n public long getDate(Record rec) {\n return 163;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DateFunction function = new DateFunction(25) {\... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "DateFunctionTest.testLong256()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public v... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public void getLong256(Record rec, CharSin... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_550 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getBool() {\n Assert.assertFalse(NullColumn.INSTANCE.getBool(1234));\n }",
"class_method_signature": "NullColumnTest.getBool()",
"constructor": false,
"full_signature": "@Test public void getBool()",
"identifier": "getBool",
"invocations": [
"assertFalse",
... | {
"fields": [
{
"declarator": "INSTANCE = new NullColumn()",
"modifier": "public static final",
"original_string": "public static final NullColumn INSTANCE = new NullColumn();",
"type": "NullColumn",
"var_name": "INSTANCE"
}
],
"file": "core/src/main/java/io/questdb/cairo/Nul... | {
"body": "@Override\n public boolean getBool(long offset) {\n return false;\n }",
"class_method_signature": "NullColumn.getBool(long offset)",
"constructor": false,
"full_signature": "@Override public boolean getBool(long offset)",
"identifier": "getBool",
"invocations": [],
"modifiers": "@O... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_100 | {
"fields": [
{
"declarator": "function = new SymbolFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 0;\n }\n\n @Override\n public CharSequence getSymbol(Record rec) {\n return \"XYZ\";\n }\n\n @Override\n pub... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testChar() {\n function.getChar(null);\n }",
"class_method_signature": "SymbolFunctionTest.testChar()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar(... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getChar(Record rec)",
"constructor": false,
"full_signature": "@Override public char getChar(Record rec)",
"identifier": "getChar",
"invocations"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_73 | {
"fields": [
{
"declarator": "function = new CharFunction(25) {\n @Override\n public char getChar(Record rec) {\n return 0x34;\n }\n }",
"modifier": "private static final",
"original_string": "private static final CharFunction function = new CharFunction(25) {... | {
"body": "@Test\n public void testGetStr2() {\n StringSink sink = new StringSink();\n function.getStr(null, sink);\n TestUtils.assertEquals(\"4\", sink);\n }",
"class_method_signature": "CharFunctionTest.testGetStr2()",
"constructor": false,
"full_signature": "@Test public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public final CharSequence getStr(Record rec) {\n final char value = getChar(rec);\n if (value == 0) {\n return null;\n }\n sinkA.clear();\n sinkA.put(value);\n return sinkA;\n }",
"class_method_signature": "CharFunction.getStr(Record ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_415 | {
"fields": [
{
"declarator": "path = new Path()",
"modifier": "private final static",
"original_string": "private final static Path path = new Path();",
"type": "Path",
"var_name": "path"
},
{
"declarator": "LOG = LogFactory.getLog(SqlCompilerTest.class)",
"modif... | {
"body": "@Test\n public void testRemoveTimestampAndReplace() throws Exception {\n assertMemoryLeak(() -> {\n compiler.compile(\"create table x1 (a int, b double, t timestamp) timestamp(t)\", sqlExecutionContext);\n\n try (TableReader reader = engine.getReader(sqlExecutionContext.getC... | {
"fields": [
{
"declarator": "sqlControlSymbols = new ObjList<>(8)",
"modifier": "public static final",
"original_string": "public static final ObjList<String> sqlControlSymbols = new ObjList<>(8);",
"type": "ObjList<String>",
"var_name": "sqlControlSymbols"
},
{
"decl... | {
"body": "@NotNull\n public CompiledQuery compile(@NotNull CharSequence query, @NotNull SqlExecutionContext executionContext) throws SqlException {\n clear();\n //\n // these are quick executions that do not require building of a model\n //\n lexer.of(query);\n\n final Ch... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_696 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
}
],
"file": "core/src/test/java/io/questdb/std/microtime/TimestampsTest.java... | {
"body": "@Test\n public void testAddYears() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"1988-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.addYear(micros, 10));\n TestUtils.assertEquals(\"1998-05-12T23:45:51.045Z\", sink);\n }",... | {
"fields": [
{
"declarator": "WEEK_MICROS = 604800000000L",
"modifier": "public static final",
"original_string": "public static final long WEEK_MICROS = 604800000000L;",
"type": "long",
"var_name": "WEEK_MICROS"
},
{
"declarator": "DAY_MICROS = 86400000000L",
"m... | {
"body": "public static long addYear(long micros, int years) {\n if (years == 0) {\n return micros;\n }\n\n int y = getYear(micros);\n int m;\n boolean leap1 = isLeapYear(y);\n boolean leap2 = isLeapYear(y + years);\n\n return yearMicros(y + years, leap2)\n... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_229 | {
"fields": [
{
"declarator": "function = new ByteFunction(25) {\n @Override\n public byte getByte(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final ByteFunction function = new ByteFunction(25) {\n ... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetTimestamp() {\n function.getTimestamp(null);\n }",
"class_method_signature": "ByteFunctionTest.testGetTimestamp()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) pu... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public final long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ByteFunction.getTimestamp(Record rec)",
"constructor": false,
"full_signature": "@Override public final long getTimestamp(Record rec)",
"identifier": "... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_679 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/time/DateLocaleTest.java",
"identifier": "DateLocaleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test(expected = NumericException.class)\n public void testWrongLength() throws Exception {\n String date = \"23 Zek 2010\";\n DateLocaleFactory.INSTANCE.getLocale(\"en-GB\").matchMonth(date, 30, date.length());\n }",
"class_method_signature": "DateLocaleTest.testWrongLength()",
"co... | {
"fields": [
{
"declarator": "months = new IntObjHashMap<>()",
"modifier": "private final",
"original_string": "private final IntObjHashMap<ObjList<CharSequence>> months = new IntObjHashMap<>();",
"type": "IntObjHashMap<ObjList<CharSequence>>",
"var_name": "months"
},
{
... | {
"body": "public long matchMonth(CharSequence content, int lo, int hi) throws NumericException {\n return findToken(content, lo, hi, months);\n }",
"class_method_signature": "DateLocale.matchMonth(CharSequence content, int lo, int hi)",
"constructor": false,
"full_signature": "public long matchMonth(... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_383 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testFunctionFactoryNullSignature() {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return null;\n }\n\n @Override\n public Function newInstance(ObjList<Function> args... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public int getFunctionCount() {\n return functionFactoryCache.getFunctionCount();\n }",
"class_method_signature": "FunctionParser.getFunctionCount()",
"constructor": false,
"full_signature": "public int getFunctionCount()",
"identifier": "getFunctionCount",
"invocations": [
"getFunc... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_97 | {
"fields": [
{
"declarator": "function = new IntFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 150;\n }\n }",
"modifier": "private static final",
"original_string": "private static final IntFunction function = new IntFunction(25) {\n ... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "IntFunctionTest.testLong256()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public vo... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "IntFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public void getLong256(Record rec, CharSink... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_78 | {
"fields": [
{
"declarator": "function = new CharFunction(25) {\n @Override\n public char getChar(Record rec) {\n return 0x34;\n }\n }",
"modifier": "private static final",
"original_string": "private static final CharFunction function = new CharFunction(25) {... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "CharFunctionTest.testLong256()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public v... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CharFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public void getLong256(Record rec, CharSin... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_367 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testLatestByKeyValuesFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n // no index\n assertQuery(\"a\\tb\\tk\\n\" +\n \"23.90529010846525\\tRXGZ\\t1970-01-03T07:33:20.000000Z\\n\" +\n \"12.0261224128... | {
"fields": [
{
"declarator": "GKK_VANILLA_INT = 0",
"modifier": "public static final",
"original_string": "public static final int GKK_VANILLA_INT = 0;",
"type": "int",
"var_name": "GKK_VANILLA_INT"
},
{
"declarator": "GKK_HOUR_INT = 1",
"modifier": "public stati... | {
"body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }",
"class_method_signature": "SqlCodeGenerator.clear()",
"constructor": false,
"full_signature": "@Override public void clear()",
"identifier": "clear",
"invocations": [
"clear"
],
"modifiers": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_672 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/time/TimeZoneRulesImplTest.java",
"identifier": "TimeZoneRulesImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testSingle() {\n ZoneId zone = ZoneId.of(\"GMT\");\n TimeZoneRulesImpl rules = new TimeZoneRulesImpl(zone.getRules());\n\n int y = 2017;\n int m = 3;\n int d = 29;\n\n LocalDateTime dt = LocalDateTime.of(y, m, d, 0, 0);\n long millis =... | {
"fields": [
{
"declarator": "SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTransitions\")",
"modifier": "public static final",
"original_string": "public static final long SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTr... | {
"body": "@Override\n public long getOffset(long millis, int year, boolean leap) {\n if (standardOffset != Long.MIN_VALUE) {\n return standardOffset;\n }\n\n if (ruleCount > 0 && millis > cutoffTransition) {\n return fromRules(millis, year, leap);\n }\n\n i... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_388 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testImplicitConstantDate() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjList... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_222 | {
"fields": [
{
"declarator": "function = new ByteFunction(25) {\n @Override\n public byte getByte(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final ByteFunction function = new ByteFunction(25) {\n ... | {
"body": "@Test\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }",
"class_method_signature": "ByteFunctionTest.testGetPosition()",
"constructor": false,
"full_signature": "@Test public void testGetPosition()",
"identifier": "testGetPosition",
"invocation... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public int getPosition() {\n return position;\n }",
"class_method_signature": "ByteFunction.getPosition()",
"constructor": false,
"full_signature": "@Override public int getPosition()",
"identifier": "getPosition",
"invocations": [],
"modifiers": "@Override public",
"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_449 | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(PGJobContextTest.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(PGJobContextTest.class);",
"type": "Log",
"var_name": "LOG"
}
],
"file": "core/src/test/ja... | {
"body": "@Test\n public void testPreparedStatement() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n try {\n startBasicServer(\n ... | {
"fields": [
{
"declarator": "PG_VARCHAR = 1043",
"modifier": "public static final",
"original_string": "public static final int PG_VARCHAR = 1043;",
"type": "int",
"var_name": "PG_VARCHAR"
},
{
"declarator": "PG_TIMESTAMP = 1114",
"modifier": "public static fina... | {
"body": "@Override\n public void close() {\n Misc.free(compiler);\n }",
"class_method_signature": "PGJobContext.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"invocations": [
"free"
],
"modifiers": "@Override public",
"para... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_330 | {
"fields": [
{
"declarator": "FACTORY = ExpressionNode.FACTORY",
"modifier": "public static final",
"original_string": "public static final ObjectFactory<ExpressionNode> FACTORY = ExpressionNode.FACTORY;",
"type": "ObjectFactory<ExpressionNode>",
"var_name": "FACTORY"
}
],
"... | {
"body": "@Test\n public void testNodeTraversal18() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n //\n n1.type = FUNCTION;\n n1.token = \"func\";\n n1.lhs = FACTORY.newInstance();\n n1.lhs.type = LITERAL;\n n1.... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java",
"identifier": "GroupByUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum... | {
"body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_275 | {
"fields": [
{
"declarator": "function = new DateFunction(25) {\n @Override\n public long getDate(Record rec) {\n return 163;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DateFunction function = new DateFunction(25) {\... | {
"body": "@Test\n public void testGetDouble() {\n Assert.assertEquals(163, function.getDouble(null), 0.1);\n }",
"class_method_signature": "DateFunctionTest.testGetDouble()",
"constructor": false,
"full_signature": "@Test public void testGetDouble()",
"identifier": "testGetDouble",
"invocation... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public final double getDouble(Record rec) {\n return Numbers.longToDouble(getDate(rec));\n }",
"class_method_signature": "DateFunction.getDouble(Record rec)",
"constructor": false,
"full_signature": "@Override public final double getDouble(Record rec)",
"identifier": "getDo... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_625 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test\n public void testParseFloat() throws Exception {\n String s1 = \"0.45677899234\";\n Assert.assertEquals(Float.parseFloat(s1), Numbers.parseFloat(s1), 0.000000001);\n\n String s2 = \"1.459983E35\";\n Assert.assertEquals(Float.parseFloat(s2) / 1e35d, Numbers.parseFloat(s... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static float parseFloat(CharSequence sequence) throws NumericException {\n int lim = sequence.length();\n\n int p = 0;\n if (lim == p) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(p) == '-';\n if (negative) {\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_39 | {
"fields": [
{
"declarator": "function = new LongFunction(25) {\n @Override\n public long getLong(Record rec) {\n return 149;\n }\n }",
"modifier": "private static final",
"original_string": "private static final LongFunction function = new LongFunction(25) {\... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "LongFunctionTest.testLong256()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public v... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java",
"identifier": "LongFunctio... | {
"body": "@Override\n public final void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "LongFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public final void getLong256(Record ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_326 | {
"fields": [
{
"declarator": "FACTORY = ExpressionNode.FACTORY",
"modifier": "public static final",
"original_string": "public static final ObjectFactory<ExpressionNode> FACTORY = ExpressionNode.FACTORY;",
"type": "ObjectFactory<ExpressionNode>",
"var_name": "FACTORY"
}
],
"... | {
"body": "@Test\n public void testNodeTraversal14() {\n ExpressionNode n1 = FACTORY.newInstance();\n ExpressionNode n2 = FACTORY.newInstance();\n n1.type = FUNCTION;\n n2.type = FUNCTION;\n n1.rhs = FACTORY.newInstance();\n assertFalse(GroupByUtils.compareNodes(n1, n2));\... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/groupby/GroupByUtils.java",
"identifier": "GroupByUtils",
"interfaces": "",
"methods": [
{
"class_method_signature": "GroupByUtils.checkGroupBy(ObjList<ExpressionNode> groupBys, ObjList<QueryColumn> selectColumns, int groupByColum... | {
"body": "public static boolean compareNodes(ExpressionNode groupBy, ExpressionNode selectNode) {\n if (groupBy == null && selectNode == null) {\n return true;\n }\n\n if (groupBy == null || selectNode == null || groupBy.type != selectNode.type) {\n return false;\n }... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_633 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test(expected = NumericException.class)\n public void testParseIntToDelimEmpty() throws Exception {\n String in = \"x\";\n Numbers.parseIntSafely(in, 0, in.length());\n }",
"class_method_signature": "NumbersTest.testParseIntToDelimEmpty()",
"constructor": false,
"full_signature":... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static long parseIntSafely(CharSequence sequence, final int p, int lim) throws NumericException {\n\n if (lim == p) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(p) == '-';\n int i = p;\n if (negative) {\n i++... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_263 | {
"fields": [
{
"declarator": "function = new ShortFunction(25) {\n @Override\n public short getShort(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final ShortFunction function = new ShortFunction(25)... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStr2() {\n function.getStr(null, null);\n }",
"class_method_signature": "ShortFunctionTest.testGetStr2()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java",
"identifier": "ShortFunct... | {
"body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ShortFunction.getStr(Record rec)",
"constructor": false,
"full_signature": "@Override public final CharSequence getStr(Record rec)",
"identifier": "g... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_81 | {
"fields": [
{
"declarator": "function = new IntFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 150;\n }\n }",
"modifier": "private static final",
"original_string": "private static final IntFunction function = new IntFunction(25) {\n ... | {
"body": "@Test\n public void testGetDate() {\n Assert.assertEquals(150, function.getDate(null));\n }",
"class_method_signature": "IntFunctionTest.testGetDate()",
"constructor": false,
"full_signature": "@Test public void testGetDate()",
"identifier": "testGetDate",
"invocations": [
"asser... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/IntFunction.java",
"identifier": "IntFunction"... | {
"body": "@Override\n public long getDate(Record rec) {\n return Numbers.intToLong(getInt(rec));\n }",
"class_method_signature": "IntFunction.getDate(Record rec)",
"constructor": false,
"full_signature": "@Override public long getDate(Record rec)",
"identifier": "getDate",
"invocations": [
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_408 | {
"fields": [
{
"declarator": "path = new Path()",
"modifier": "private final static",
"original_string": "private final static Path path = new Path();",
"type": "Path",
"var_name": "path"
},
{
"declarator": "LOG = LogFactory.getLog(SqlCompilerTest.class)",
"modif... | {
"body": "@Test\n public void testCreateAsSelectIOError2() throws Exception {\n\n TestUtils.assertMemoryLeak(new TestUtils.LeakProneCode() {\n @Override\n public void run() {\n String sql = \"create table y as (\" +\n \"select rnd_symbol(4,4,4,2) ... | {
"fields": [
{
"declarator": "sqlControlSymbols = new ObjList<>(8)",
"modifier": "public static final",
"original_string": "public static final ObjList<String> sqlControlSymbols = new ObjList<>(8);",
"type": "ObjList<String>",
"var_name": "sqlControlSymbols"
},
{
"decl... | {
"body": "@NotNull\n public CompiledQuery compile(@NotNull CharSequence query, @NotNull SqlExecutionContext executionContext) throws SqlException {\n clear();\n //\n // these are quick executions that do not require building of a model\n //\n lexer.of(query);\n\n final Ch... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_371 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testLatestByMissingKeyValuesFiltered() throws Exception {\n TestMatchFunctionFactory.clear();\n assertQuery(\"a\\tb\\tk\\n\" +\n \"97.71103146051203\\tHYRX\\t1970-01-07T22:40:00.000000Z\\n\",\n \"select * from x latest by b where b ... | {
"fields": [
{
"declarator": "GKK_VANILLA_INT = 0",
"modifier": "public static final",
"original_string": "public static final int GKK_VANILLA_INT = 0;",
"type": "int",
"var_name": "GKK_VANILLA_INT"
},
{
"declarator": "GKK_HOUR_INT = 1",
"modifier": "public stati... | {
"body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }",
"class_method_signature": "SqlCodeGenerator.clear()",
"constructor": false,
"full_signature": "@Override public void clear()",
"identifier": "clear",
"invocations": [
"clear"
],
"modifiers": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_721 | {
"fields": [
{
"declarator": "temp = new TemporaryFolder()",
"modifier": "@Rule\n public final",
"original_string": "@Rule\n public final TemporaryFolder temp = new TemporaryFolder();",
"type": "TemporaryFolder",
"var_name": "temp"
}
],
"file": "core/src/test/java/io/q... | {
"body": "@Test(expected = LogError.class)\n public void testBadWriter() {\n System.setProperty(LogFactory.CONFIG_SYSTEM_PROPERTY, \"/nfslog-bad-writer.conf\");\n\n try (LogFactory factory = new LogFactory()) {\n LogFactory.configureFromSystemProperties(factory, null);\n }\n }",... | {
"fields": [
{
"declarator": "INSTANCE = new LogFactory()",
"modifier": "public static final",
"original_string": "public static final LogFactory INSTANCE = new LogFactory();",
"type": "LogFactory",
"var_name": "INSTANCE"
},
{
"declarator": "DEBUG_TRIGGER = \"ebug\"",
... | {
"body": "public static void configureFromSystemProperties(WorkerPool workerPool) {\n configureFromSystemProperties(INSTANCE, workerPool);\n }",
"class_method_signature": "LogFactory.configureFromSystemProperties(WorkerPool workerPool)",
"constructor": false,
"full_signature": "public static void con... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_234 | {
"fields": [
{
"declarator": "function = new FloatFunction(25) {\n @Override\n public float getFloat(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final FloatFunction function = new FloatFunction(25)... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBinLen() {\n function.getBinLen(null);\n }",
"class_method_signature": "FloatFunctionTest.testGetBinLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public voi... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java",
"identifier": "FloatFunct... | {
"body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "FloatFunction.getBinLen(Record rec)",
"constructor": false,
"full_signature": "@Override public long getBinLen(Record rec)",
"identifier": "getBinLen",
"invoc... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_664 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/LongMatrixTest.java",
"identifier": "LongMatrixTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testDeleteRow() {\n LongMatrix<String> m = new LongMatrix<>(2);\n for (int i = 0; i < 1000; i++) {\n int r = m.addRow();\n m.set(r, 0, i);\n m.set(r, 1, i);\n m.set(r, \"s\" + i);\n }\n\n Assert.assertEquals(1000... | {
"fields": [
{
"declarator": "bits",
"modifier": "private final",
"original_string": "private final int bits;",
"type": "int",
"var_name": "bits"
},
{
"declarator": "pos",
"modifier": "private",
"original_string": "private int pos;",
"type": "int",
... | {
"body": "public void deleteRow(int r) {\n if (r < pos - 1) {\n int l = pos - r - 1;\n int next = r + 1;\n System.arraycopy(data, next << bits, data, r << bits, l << bits);\n System.arraycopy(payload, next, payload, r, l);\n }\n\n if (r < pos) {\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_473 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/ContiguousVirtualMemoryTest.java",
"identifier": "ContiguousVirtualMemoryTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testLong256() {\n try (ContiguousVirtualMemory mem = new ContiguousVirtualMemory(256, Integer.MAX_VALUE)) {\n mem.putLong256(\"0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8\");\n mem.putLong256(\"0xEA674fdDe714fd979de3EdF0F56AA9716B898ec8\");\n }\n ... | {
"fields": [
{
"declarator": "STRING_LENGTH_BYTES = 4",
"modifier": "static final",
"original_string": "static final int STRING_LENGTH_BYTES = 4;",
"type": "int",
"var_name": "STRING_LENGTH_BYTES"
},
{
"declarator": "LOG = LogFactory.getLog(ContiguousVirtualMemory.clas... | {
"body": "public void putLong256(long offset, Long256 value) {\n putLong256(\n offset,\n value.getLong0(),\n value.getLong1(),\n value.getLong2(),\n value.getLong3());\n }",
"class_method_signature": "ContiguousVirtualMemory.putLo... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_189 | {
"fields": [
{
"declarator": "function = new BinFunction(25) {\n @Override\n public BinarySequence getBin(Record rec) {\n return null;\n }\n\n @Override\n public long getBinLen(Record rec) {\n return TableUtils.NULL_LEN;\n }\n }",
"mo... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetDouble() {\n function.getDouble(null);\n }",
"class_method_signature": "BinFunctionTest.testGetDouble()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public final double getDouble(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.getDouble(Record rec)",
"constructor": false,
"full_signature": "@Override public final double getDouble(Record rec)",
"identifier": "getDou... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_15 | {
"fields": [
{
"declarator": "function = new StrFunction(25) {\n @Override\n public CharSequence getStr(Record rec) {\n return \"a\";\n }\n\n @Override\n public CharSequence getStrB(Record rec) {\n return \"a\";\n }\n }",
"modifier": ... | {
"body": "@Test\n public void testGetStrLen() {\n Assert.assertEquals(1, function.getStrLen(null));\n }",
"class_method_signature": "StrFunctionTest.testGetStrLen()",
"constructor": false,
"full_signature": "@Test public void testGetStrLen()",
"identifier": "testGetStrLen",
"invocations": [
... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java",
"identifier": "StrFunction"... | {
"body": "@Override\n public int getStrLen(Record rec) {\n final CharSequence str = getStr(rec);\n return str == null ? TableUtils.NULL_LEN : str.length();\n }",
"class_method_signature": "StrFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public int getS... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_536 | {
"fields": [
{
"declarator": "SIZE_4M = 4 * 1024 * 1024L",
"modifier": "public static final",
"original_string": "public static final long SIZE_4M = 4 * 1024 * 1024L;",
"type": "long",
"var_name": "SIZE_4M"
},
{
"declarator": "asm = new BytecodeAssembler()",
"mod... | {
"body": "@Test\n public void testWriteAndRead() throws Exception {\n TestUtils.assertMemoryLeak(\n () -> {\n final int N = 10000 * 2;\n CairoTestUtils.createTestTable(N, new Rnd(), new TestRecord.ArrayBinarySequence());\n try (TableRe... | {
"fields": [
{
"declarator": "columnOffsets",
"modifier": "private final",
"original_string": "private final long[] columnOffsets;",
"type": "long[]",
"var_name": "columnOffsets"
},
{
"declarator": "mem",
"modifier": "private final",
"original_string": "pri... | {
"body": "public void of(long nextRecordOffset) {\n this.nextRecordOffset = nextRecordOffset;\n }",
"class_method_signature": "RecordChain.of(long nextRecordOffset)",
"constructor": false,
"full_signature": "public void of(long nextRecordOffset)",
"identifier": "of",
"invocations": [],
"modifie... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_166 | {
"fields": [
{
"declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }",
"modifier": "private static final",
"original_string": "private static final TimestampFunction function = new ... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetByte() {\n function.getByte(null);\n }",
"class_method_signature": "TimestampFunctionTest.testGetByte()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java",
"identifier": "Timest... | {
"body": "@Override\n public final byte getByte(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "TimestampFunction.getByte(Record rec)",
"constructor": false,
"full_signature": "@Override public final byte getByte(Record rec)",
"identifier": "getByte",
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_42 | {
"fields": [
{
"declarator": "function = new DoubleFunction(25) {\n @Override\n public double getDouble(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DoubleFunction function = new DoubleFunctio... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testChar() {\n function.getChar(null);\n }",
"class_method_signature": "DoubleFunctionTest.testChar()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testChar(... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java",
"identifier": "DoubleFun... | {
"body": "@Override\n public char getChar(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DoubleFunction.getChar(Record rec)",
"constructor": false,
"full_signature": "@Override public char getChar(Record rec)",
"identifier": "getChar",
"invocations"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_424 | {
"fields": [
{
"declarator": "request = \"GET /status?x=1&a=%26b&c&d=x HTTP/1.1\\r\\n\" +\n \"Host: localhost:9000\\r\\n\" +\n \"Connection: keep-alive\\r\\n\" +\n \"Cache-Control: max-age=0\\r\\n\" +\n \"Accept: text/html,application/xhtml+xml,application/xml;q=... | {
"body": "@Test\n public void testQueryInvalidEncoding() throws Exception {\n TestUtils.assertMemoryLeak(() -> {\n String v = \"GET /status?x=1&a=%i6b&c&d=x HTTP/1.1\\r\\n\" +\n \"\\r\\n\";\n long p = TestUtils.toMemory(v);\n try (HttpHeaderParser hp = ne... | {
"fields": [
{
"declarator": "CONTENT_DISPOSITION_HEADER = \"Content-Disposition\"",
"modifier": "private static final",
"original_string": "private static final String CONTENT_DISPOSITION_HEADER = \"Content-Disposition\";",
"type": "String",
"var_name": "CONTENT_DISPOSITION_HEADER"... | {
"body": "public long parse(long ptr, long hi, boolean _method) {\n long p;\n if (_method && needMethod) {\n int l = parseMethod(ptr, hi);\n p = ptr + l;\n } else {\n p = ptr;\n }\n\n DirectByteCharSequence v;\n\n while (p < hi) {\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_131 | {
"fields": [
{
"declarator": "function = new CursorFunction(25, null)",
"modifier": "private static final",
"original_string": "private static final CursorFunction function = new CursorFunction(25, null);",
"type": "CursorFunction",
"var_name": "function"
}
],
"file": "core/... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetInt() {\n function.getInt(null);\n }",
"class_method_signature": "CursorFunctionTest.testGetInt()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGe... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "factory",
"modifier": "private final",
"original_string": "private final Record... | {
"body": "@Override\n public final int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CursorFunction.getInt(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getInt(Record rec)",
"identifier": "getInt",
"invoca... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_561 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testGrow() {\n // this method does nothing. Make sure it doesn corrupt state of singleton and\n // doesn't throw exception\n NullColumn.INSTANCE.grow(100000);\n }",
"class_method_signature": "NullColumnTest.testGrow()",
"constructor": false,
"full_signat... | {
"fields": [
{
"declarator": "INSTANCE = new NullColumn()",
"modifier": "public static final",
"original_string": "public static final NullColumn INSTANCE = new NullColumn();",
"type": "NullColumn",
"var_name": "INSTANCE"
}
],
"file": "core/src/main/java/io/questdb/cairo/Nul... | {
"body": "@Override\n public void grow(long size) {\n }",
"class_method_signature": "NullColumn.grow(long size)",
"constructor": false,
"full_signature": "@Override public void grow(long size)",
"identifier": "grow",
"invocations": [],
"modifiers": "@Override public",
"parameters": "(long size)",... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_648 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test(expected = NumericException.class)\n public void testParseLongSizeFail() throws Exception {\n Numbers.parseLongSize(\"5Kb\");\n }",
"class_method_signature": "NumbersTest.testParseLongSizeFail()",
"constructor": false,
"full_signature": "@Test(expected = NumericException.class) pub... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static long parseLongSize(CharSequence sequence) throws NumericException {\n int lim = sequence.length();\n\n if (lim == 0) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(0) == '-';\n int i = 0;\n if (negative) {\n... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_218 | {
"fields": [
{
"declarator": "function = new ByteFunction(25) {\n @Override\n public byte getByte(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final ByteFunction function = new ByteFunction(25) {\n ... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBinLen() {\n function.getBinLen(null);\n }",
"class_method_signature": "ByteFunctionTest.testGetBinLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ByteFunction.java",
"identifier": "ByteFunctio... | {
"body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ByteFunction.getBinLen(Record rec)",
"constructor": false,
"full_signature": "@Override public long getBinLen(Record rec)",
"identifier": "getBinLen",
"invoca... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_432 | {
"fields": [
{
"declarator": "ENTITY_MANIPULATOR = (index, len, b) -> b",
"modifier": "private static final",
"original_string": "private static final ByteManipulator ENTITY_MANIPULATOR = (index, len, b) -> b;",
"type": "ByteManipulator",
"var_name": "ENTITY_MANIPULATOR"
},
... | {
"body": "@Test\n public void testImportTimestamp() throws Exception {\n final TextConfiguration textConfiguration = new DefaultTextConfiguration() {\n @Override\n public int getTextAnalysisMaxLines() {\n return 3;\n }\n };\n\n CairoConfiguratio... | {
"fields": [
{
"declarator": "LOAD_JSON_METADATA = 0",
"modifier": "public static final",
"original_string": "public static final int LOAD_JSON_METADATA = 0;",
"type": "int",
"var_name": "LOAD_JSON_METADATA"
},
{
"declarator": "ANALYZE_STRUCTURE = 1",
"modifier":... | {
"body": "public void setForceHeaders(boolean forceHeaders) {\n this.forceHeaders = forceHeaders;\n }",
"class_method_signature": "TextLoader.setForceHeaders(boolean forceHeaders)",
"constructor": false,
"full_signature": "public void setForceHeaders(boolean forceHeaders)",
"identifier": "setForceH... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_598 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test\n public void testAppendZeroLong256() {\n sink.clear();\n Numbers.appendLong256(0, 0, 0, 0, sink);\n TestUtils.assertEquals(\"0x00\", sink);\n }",
"class_method_signature": "NumbersTest.testAppendZeroLong256()",
"constructor": false,
"full_signature": "@Test public vo... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static void appendLong256(long a, long b, long c, long d, CharSink sink) {\n if (a == Numbers.LONG_NaN && b == Numbers.LONG_NaN && c == Numbers.LONG_NaN && d == Numbers.LONG_NaN) {\n return;\n }\n sink.put(\"0x\");\n if (d != 0) {\n appendLong256Four... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_54 | {
"fields": [
{
"declarator": "function = new DoubleFunction(25) {\n @Override\n public double getDouble(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DoubleFunction function = new DoubleFunctio... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetShort() {\n function.getShort(null);\n }",
"class_method_signature": "DoubleFunctionTest.testGetShort()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java",
"identifier": "DoubleFun... | {
"body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DoubleFunction.getShort(Record rec)",
"constructor": false,
"full_signature": "@Override public final short getShort(Record rec)",
"identifier": "getShort... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_577 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/IntListTest.java",
"identifier": "IntListTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testBinarySearch() {\n IntList list = new IntList();\n for (int i = 0; i < 65; i++) {\n list.add(i);\n }\n list.add(76);\n list.add(974);\n list.add(1115);\n list.add(2094);\n Assert.assertEquals(-66, list.binarySearc... | {
"fields": [
{
"declarator": "DEFAULT_ARRAY_SIZE = 16",
"modifier": "private static final",
"original_string": "private static final int DEFAULT_ARRAY_SIZE = 16;",
"type": "int",
"var_name": "DEFAULT_ARRAY_SIZE"
},
{
"declarator": "noEntryValue = -1",
"modifier":... | {
"body": "public int binarySearch(int v) {\n int low = 0;\n int high = pos;\n\n while (low < high) {\n\n if (high - low < 65) {\n return scanSearch(v);\n }\n\n int mid = (low + high - 1) >>> 1;\n long midVal = buffer[mid];\n\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_127 | {
"fields": [
{
"declarator": "function = new CursorFunction(25, null)",
"modifier": "private static final",
"original_string": "private static final CursorFunction function = new CursorFunction(25, null);",
"type": "CursorFunction",
"var_name": "function"
}
],
"file": "core/... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "CursorFunctionTest.testLong256()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "factory",
"modifier": "private final",
"original_string": "private final Record... | {
"body": "@Override\n public void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "CursorFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public void getLong256(Record rec, CharS... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_465 | {
"fields": [
{
"declarator": "temp = new TemporaryFolder()",
"modifier": "@Rule\n public final",
"original_string": "@Rule\n public final TemporaryFolder temp = new TemporaryFolder();",
"type": "TemporaryFolder",
"var_name": "temp"
}
],
"file": "core/src/test/java/io/q... | {
"body": "@Test\n public void testLineUdpTimestamp() throws ServerConfigurationException, JsonException {\n Properties properties = new Properties();\n properties.setProperty(\"http.enabled\", \"false\");\n properties.setProperty(\"line.udp.timestamp\", \"\");\n PropServerConfiguration... | {
"fields": [
{
"declarator": "CONFIG_DIRECTORY = \"conf\"",
"modifier": "public static final",
"original_string": "public static final String CONFIG_DIRECTORY = \"conf\";",
"type": "String",
"var_name": "CONFIG_DIRECTORY"
},
{
"declarator": "httpIODispatcherConfigurati... | {
"body": "@Override\n public LineUdpReceiverConfiguration getLineUdpReceiverConfiguration() {\n return lineUdpReceiverConfiguration;\n }",
"class_method_signature": "PropServerConfiguration.getLineUdpReceiverConfiguration()",
"constructor": false,
"full_signature": "@Override public LineUdpReceive... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_170 | {
"fields": [
{
"declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }",
"modifier": "private static final",
"original_string": "private static final TimestampFunction function = new ... | {
"body": "@Test\n public void testGetFloat() {\n Assert.assertEquals(145000, function.getFloat(null), 0.1);\n }",
"class_method_signature": "TimestampFunctionTest.testGetFloat()",
"constructor": false,
"full_signature": "@Test public void testGetFloat()",
"identifier": "testGetFloat",
"invocat... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java",
"identifier": "Timest... | {
"body": "@Override\n public final float getFloat(Record rec) {\n return Numbers.longToFloat(getTimestamp(rec));\n }",
"class_method_signature": "TimestampFunction.getFloat(Record rec)",
"constructor": false,
"full_signature": "@Override public final float getFloat(Record rec)",
"identifier": "g... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_520 | {
"fields": [
{
"declarator": "CONFIGURATION",
"modifier": "private static final",
"original_string": "private static final DefaultCairoConfiguration CONFIGURATION;",
"type": "DefaultCairoConfiguration",
"var_name": "CONFIGURATION"
}
],
"file": "core/src/test/java/io/questdb/... | {
"body": "@Test\n public void testToStringOnWriter() throws Exception {\n assertWithPool(pool -> {\n try (TableWriter w = pool.get(\"z\")) {\n Assert.assertEquals(\"TableWriter{name=z}\", w.toString());\n }\n });\n }",
"class_method_signature": "WriterPoolTe... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(WriterPool.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(WriterPool.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "ENTRY_OWNER = Un... | {
"body": "@Override\n public TableWriter get(CharSequence tableName) {\n\n checkClosed();\n\n long thread = Thread.currentThread().getId();\n\n Entry e = entries.get(tableName);\n if (e == null) {\n // We are racing to create new writer!\n e = new Entry(clock.getT... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_609 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test\n public void testFormatDoubleFast() {\n sink.clear();\n Numbers.append(sink, -5.9522650387500933e18);\n TestUtils.assertEquals(\"-5.9522650387500933E18\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleFast()",
"constructor": false,
"full_signatu... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_259 | {
"fields": [
{
"declarator": "function = new ShortFunction(25) {\n @Override\n public short getShort(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final ShortFunction function = new ShortFunction(25)... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetMetadata() {\n function.getMetadata();\n }",
"class_method_signature": "ShortFunctionTest.testGetMetadata()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public v... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java",
"identifier": "ShortFunct... | {
"body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ShortFunction.getMetadata()",
"constructor": false,
"full_signature": "@Override public RecordMetadata getMetadata()",
"identifier": "getMetadata",
"invocat... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_691 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/microtime/TimeZoneRulesImplTest.java",
"identifier": "TimeZoneRulesImplTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testPerformance() {\n Set<String> allZones = ZoneId.getAvailableZoneIds();\n List<String> zoneList = new ArrayList<>(allZones);\n Collections.sort(zoneList);\n List<ZoneId> zones = new ArrayList<>(zoneList.size());\n List<TimeZoneRulesImpl> zoneRule... | {
"fields": [
{
"declarator": "SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTransitions\")",
"modifier": "public static final",
"original_string": "public static final long SAVING_INSTANT_TRANSITION = Unsafe.getFieldOffset(ZoneRules.class, \"savingsInstantTr... | {
"body": "@Override\n public long getOffset(long micros, int year, boolean leap) {\n if (standardOffset != Long.MIN_VALUE) {\n return standardOffset;\n }\n\n if (ruleCount > 0 && micros > cutoffTransition) {\n return fromRules(micros, year, leap);\n }\n\n i... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_384 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testFunctionOverload() throws SqlException {\n functions.add(new ToStrDateFunctionFactory());\n functions.add(new ToStrTimestampFunctionFactory());\n functions.add(new ToCharBinFunctionFactory());\n\n final GenericRecordMetadata metadata = new GenericRecor... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_557 | {
"fields": [],
"file": "core/src/test/java/io/questdb/cairo/NullColumnTest.java",
"identifier": "NullColumnTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void getShort() {\n Assert.assertEquals(0, NullColumn.INSTANCE.getShort(1234));\n }",
"class_method_signature": "NullColumnTest.getShort()",
"constructor": false,
"full_signature": "@Test public void getShort()",
"identifier": "getShort",
"invocations": [
"assertEq... | {
"fields": [
{
"declarator": "INSTANCE = new NullColumn()",
"modifier": "public static final",
"original_string": "public static final NullColumn INSTANCE = new NullColumn();",
"type": "NullColumn",
"var_name": "INSTANCE"
}
],
"file": "core/src/main/java/io/questdb/cairo/Nul... | {
"body": "@Override\n public short getShort(long offset) {\n return 0;\n }",
"class_method_signature": "NullColumn.getShort(long offset)",
"constructor": false,
"full_signature": "@Override public short getShort(long offset)",
"identifier": "getShort",
"invocations": [],
"modifiers": "@Overr... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_107 | {
"fields": [
{
"declarator": "function = new SymbolFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 0;\n }\n\n @Override\n public CharSequence getSymbol(Record rec) {\n return \"XYZ\";\n }\n\n @Override\n pub... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetFloat() {\n function.getFloat(null);\n }",
"class_method_signature": "SymbolFunctionTest.testGetFloat()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public final float getFloat(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getFloat(Record rec)",
"constructor": false,
"full_signature": "@Override public final float getFloat(Record rec)",
"identifier": "getFloat... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_412 | {
"fields": [
{
"declarator": "path = new Path()",
"modifier": "private final static",
"original_string": "private final static Path path = new Path();",
"type": "Path",
"var_name": "path"
},
{
"declarator": "LOG = LogFactory.getLog(SqlCompilerTest.class)",
"modif... | {
"body": "@Test\n public void testInsertAsSelect() throws Exception {\n String expectedData = \"a\\tb\\tc\\td\\te\\tf\\tg\\th\\ti\\tj\\tk\\tl\\tm\\tn\\to\\tp\\n\" +\n \"1569490116\\tNaN\\tfalse\\t\\tNaN\\t0.7611\\t428\\t-1593\\t2015-04-04T16:34:47.226Z\\t\\t\\t185\\t7039584373105579285\\t197... | {
"fields": [
{
"declarator": "sqlControlSymbols = new ObjList<>(8)",
"modifier": "public static final",
"original_string": "public static final ObjList<String> sqlControlSymbols = new ObjList<>(8);",
"type": "ObjList<String>",
"var_name": "sqlControlSymbols"
},
{
"decl... | {
"body": "private CompiledQuery insertAsSelect(ExecutionModel executionModel, SqlExecutionContext executionContext) throws SqlException {\n final InsertModel model = (InsertModel) executionModel;\n final ExpressionNode name = model.getTableName();\n tableExistsOrFail(name.position, name.token, e... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_74 | {
"fields": [
{
"declarator": "function = new CharFunction(25) {\n @Override\n public char getChar(Record rec) {\n return 0x34;\n }\n }",
"modifier": "private static final",
"original_string": "private static final CharFunction function = new CharFunction(25) {... | {
"body": "@Test\n public void testGetStrB() {\n TestUtils.assertEquals(\"4\", function.getStrB(null));\n }",
"class_method_signature": "CharFunctionTest.testGetStrB()",
"constructor": false,
"full_signature": "@Test public void testGetStrB()",
"identifier": "testGetStrB",
"invocations": [
... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
},
{
"declarator": "sinkA = new StringSink()",
"modifier": "private final",
"original_string": "pri... | {
"body": "@Override\n public final CharSequence getStrB(Record rec) {\n final char value = getChar(rec);\n if (value == 0) {\n return null;\n }\n sinkB.clear();\n sinkB.put(value);\n return sinkB;\n }",
"class_method_signature": "CharFunction.getStrB(Recor... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_296 | {
"fields": [
{
"declarator": "function = new Long256Function(25) {\n @Override\n public Long256 getLong256A(Record rec) {\n return Long256Impl.NULL_LONG256;\n }\n\n @Override\n public Long256 getLong256B(Record rec) {\n return Long256Impl.NULL_LONG25... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBool() {\n function.getBool(null);\n }",
"class_method_signature": "Long256FunctionTest.testGetBool()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void te... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java",
"identifier": "Long256F... | {
"body": "@Override\n public final boolean getBool(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getBool(Record rec)",
"constructor": false,
"full_signature": "@Override public final boolean getBool(Record rec)",
"identifier": "getBoo... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_629 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test(expected = NumericException.class)\n public void testParseIntOverflow1() throws Exception {\n String i1 = \"12345566787\";\n Numbers.parseInt(i1);\n }",
"class_method_signature": "NumbersTest.testParseIntOverflow1()",
"constructor": false,
"full_signature": "@Test(expected =... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static int parseInt(CharSequence sequence) throws NumericException {\n if (sequence == null) {\n throw NumericException.INSTANCE;\n }\n\n return parseInt0(sequence, 0, sequence.length());\n }",
"class_method_signature": "Numbers.parseInt(CharSequence sequence)",
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_279 | {
"fields": [
{
"declarator": "function = new DateFunction(25) {\n @Override\n public long getDate(Record rec) {\n return 163;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DateFunction function = new DateFunction(25) {\... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetMetadata() {\n function.getMetadata();\n }",
"class_method_signature": "DateFunctionTest.testGetMetadata()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public vo... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DateFunction.getMetadata()",
"constructor": false,
"full_signature": "@Override public RecordMetadata getMetadata()",
"identifier": "getMetadata",
"invocati... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_150 | {
"fields": [
{
"declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetMetadata() {\n functionA.getMetadata();\n }",
"class_method_signature": "BooleanFunctionTest.testGetMetadata()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) publi... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java",
"identifier": "BooleanF... | {
"body": "@Override\n public RecordMetadata getMetadata() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BooleanFunction.getMetadata()",
"constructor": false,
"full_signature": "@Override public RecordMetadata getMetadata()",
"identifier": "getMetadata",
"invoc... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_500 | {
"fields": [
{
"declarator": "PRODUCT = \"product\"",
"modifier": "public static final",
"original_string": "public static final String PRODUCT = \"product\";",
"type": "String",
"var_name": "PRODUCT"
},
{
"declarator": "FF = FilesFacadeImpl.INSTANCE",
"modifier"... | {
"body": "@Test\n public void testRenameColumnUnrecoverableRenameFailure() throws Exception {\n class X extends FilesFacadeImpl {\n int count = 2;\n\n @Override\n public boolean rename(LPSZ from, LPSZ to) {\n if (Chars.endsWith(to, TableUtils.META_FILE_NAME) ... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableWriter.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "IGNORED_FILES ... | {
"body": "private int rename(int retries) {\n try {\n int index = 0;\n other.concat(META_PREV_FILE_NAME).$();\n path.concat(META_FILE_NAME).$();\n int l = other.length();\n\n do {\n if (index > 0) {\n other.trimTo(l);\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_23 | {
"fields": [
{
"declarator": "function = new LongFunction(25) {\n @Override\n public long getLong(Record rec) {\n return 149;\n }\n }",
"modifier": "private static final",
"original_string": "private static final LongFunction function = new LongFunction(25) {\... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBinLen() {\n function.getBinLen(null);\n }",
"class_method_signature": "LongFunctionTest.testGetBinLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java",
"identifier": "LongFunctio... | {
"body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "LongFunction.getBinLen(Record rec)",
"constructor": false,
"full_signature": "@Override public long getBinLen(Record rec)",
"identifier": "getBinLen",
"invoca... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_445 | {
"fields": [
{
"declarator": "utf8Sink",
"modifier": "private static",
"original_string": "private static DirectCharSink utf8Sink;",
"type": "DirectCharSink",
"var_name": "utf8Sink"
},
{
"declarator": "jsonLexer",
"modifier": "private static",
"original_str... | {
"body": "@Test\n public void testEmpty() throws JsonException {\n TypeManager typeManager = createTypeManager(\"/textloader/types/empty.json\");\n Assert.assertEquals(\"[CHAR,INT,LONG,DOUBLE,BOOLEAN,LONG256]\", typeManager.getAllAdapters().toString());\n }",
"class_method_signature": "TypeMana... | {
"fields": [
{
"declarator": "probes = new ObjList<>()",
"modifier": "private final",
"original_string": "private final ObjList<TypeAdapter> probes = new ObjList<>();",
"type": "ObjList<TypeAdapter>",
"var_name": "probes"
},
{
"declarator": "probeCount",
"modifie... | {
"body": "ObjList<TypeAdapter> getAllAdapters() {\n return probes;\n }",
"class_method_signature": "TypeManager.getAllAdapters()",
"constructor": false,
"full_signature": " ObjList<TypeAdapter> getAllAdapters()",
"identifier": "getAllAdapters",
"invocations": [],
"modifiers": "",
"parameters"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_3 | {
"fields": [
{
"declarator": "function = new StrFunction(25) {\n @Override\n public CharSequence getStr(Record rec) {\n return \"a\";\n }\n\n @Override\n public CharSequence getStrB(Record rec) {\n return \"a\";\n }\n }",
"modifier": ... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBinLen() {\n function.getBinLen(null);\n }",
"class_method_signature": "StrFunctionTest.testGetBinLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void ... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java",
"identifier": "StrFunction"... | {
"body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "StrFunction.getBinLen(Record rec)",
"constructor": false,
"full_signature": "@Override public long getBinLen(Record rec)",
"identifier": "getBinLen",
"invocat... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_280 | {
"fields": [
{
"declarator": "function = new DateFunction(25) {\n @Override\n public long getDate(Record rec) {\n return 163;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DateFunction function = new DateFunction(25) {\... | {
"body": "@Test\n public void testGetPosition() {\n Assert.assertEquals(25, function.getPosition());\n }",
"class_method_signature": "DateFunctionTest.testGetPosition()",
"constructor": false,
"full_signature": "@Test public void testGetPosition()",
"identifier": "testGetPosition",
"invocation... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DateFunction.java",
"identifier": "DateFunctio... | {
"body": "@Override\n public int getPosition() {\n return position;\n }",
"class_method_signature": "DateFunction.getPosition()",
"constructor": false,
"full_signature": "@Override public int getPosition()",
"identifier": "getPosition",
"invocations": [],
"modifiers": "@Override public",
"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_516 | {
"fields": [
{
"declarator": "CONFIGURATION",
"modifier": "private static final",
"original_string": "private static final DefaultCairoConfiguration CONFIGURATION;",
"type": "DefaultCairoConfiguration",
"var_name": "CONFIGURATION"
}
],
"file": "core/src/test/java/io/questdb/... | {
"body": "@Test\n public void testAllocateAndClear() throws Exception {\n assertWithPool(pool -> {\n int n = 2;\n final CyclicBarrier barrier = new CyclicBarrier(n);\n final CountDownLatch halt = new CountDownLatch(n);\n final AtomicInteger errors1 = new AtomicIn... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(WriterPool.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(WriterPool.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "ENTRY_OWNER = Un... | {
"body": "@Override\n public TableWriter get(CharSequence tableName) {\n\n checkClosed();\n\n long thread = Thread.currentThread().getId();\n\n Entry e = entries.get(tableName);\n if (e == null) {\n // We are racing to create new writer!\n e = new Entry(clock.getT... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_146 | {
"fields": [
{
"declarator": "functionA = new BooleanFunction(25) {\n @Override\n public boolean getBool(Record rec) {\n return false;\n }\n\n @Override\n public void init(SymbolTableSource symbolTableSource, SqlExecutionContext executionContext) {\n }\n... | {
"body": "@Test\n public void testGetDouble() {\n Assert.assertEquals(1.0, functionA.getDouble(null), 0.000001);\n Assert.assertEquals(0.0, functionB.getDouble(null), 0.000001);\n }",
"class_method_signature": "BooleanFunctionTest.testGetDouble()",
"constructor": false,
"full_signature": "@... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BooleanFunction.java",
"identifier": "BooleanF... | {
"body": "@Override\n public final double getDouble(Record rec) {\n return getBool(rec) ? 0 : 1;\n }",
"class_method_signature": "BooleanFunction.getDouble(Record rec)",
"constructor": false,
"full_signature": "@Override public final double getDouble(Record rec)",
"identifier": "getDouble",
"i... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_453 | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(PGJobContextTest.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(PGJobContextTest.class);",
"type": "Log",
"var_name": "LOG"
}
],
"file": "core/src/test/ja... | {
"body": "@Test\n public void batchInsertWithTransaction() throws Exception {\n assertMemoryLeak(() -> {\n\n final CountDownLatch haltLatch = new CountDownLatch(1);\n final AtomicBoolean running = new AtomicBoolean(true);\n\n try {\n startBasicServer(NetworkF... | {
"fields": [
{
"declarator": "PG_VARCHAR = 1043",
"modifier": "public static final",
"original_string": "public static final int PG_VARCHAR = 1043;",
"type": "int",
"var_name": "PG_VARCHAR"
},
{
"declarator": "PG_TIMESTAMP = 1114",
"modifier": "public static fina... | {
"body": "@Override\n public void close() {\n Misc.free(compiler);\n }",
"class_method_signature": "PGJobContext.close()",
"constructor": false,
"full_signature": "@Override public void close()",
"identifier": "close",
"invocations": [
"free"
],
"modifiers": "@Override public",
"para... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_35 | {
"fields": [
{
"declarator": "function = new LongFunction(25) {\n @Override\n public long getLong(Record rec) {\n return 149;\n }\n }",
"modifier": "private static final",
"original_string": "private static final LongFunction function = new LongFunction(25) {\... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStrLen() {\n function.getStrLen(null);\n }",
"class_method_signature": "LongFunctionTest.testGetStrLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/LongFunction.java",
"identifier": "LongFunctio... | {
"body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "LongFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getStrLen(Record rec)",
"identifier": "getStrLen",... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_687 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/microtime/TimestampLocaleTest.java",
"identifier": "TimestampLocaleTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testRTLMonth() throws Exception {\n String s = \"23مارس\";\n long result = TimestampLocaleFactory.INSTANCE.getLocale(\"ar-DZ\").matchMonth(s, 2, s.length());\n Assert.assertEquals(4, Numbers.decodeHighInt(result));\n Assert.assertEquals(2, Numbers.decodeLo... | {
"fields": [
{
"declarator": "months = new IntObjHashMap<>()",
"modifier": "private final",
"original_string": "private final IntObjHashMap<ObjList<CharSequence>> months = new IntObjHashMap<>();",
"type": "IntObjHashMap<ObjList<CharSequence>>",
"var_name": "months"
},
{
... | {
"body": "public long matchMonth(CharSequence content, int lo, int hi) throws NumericException {\n return findToken(content, lo, hi, months);\n }",
"class_method_signature": "TimestampLocale.matchMonth(CharSequence content, int lo, int hi)",
"constructor": false,
"full_signature": "public long matchM... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_668 | {
"fields": [
{
"declarator": "compiler = new DateFormatCompiler()",
"modifier": "private static final",
"original_string": "private static final DateFormatCompiler compiler = new DateFormatCompiler();",
"type": "DateFormatCompiler",
"var_name": "compiler"
},
{
"declara... | {
"body": "@Test(expected = BytecodeException.class)\n public void testLongPattern() {\n StringBuffer b = new StringBuffer();\n for (int i = 0; i < 1000; i++) {\n b.append(\"KK\").append(' ').append('Z').append(',');\n }\n compiler.compile(b);\n }",
"class_method_signatu... | {
"fields": [
{
"declarator": "OP_ERA = 1",
"modifier": "static final",
"original_string": "static final int OP_ERA = 1;",
"type": "int",
"var_name": "OP_ERA"
},
{
"declarator": "OP_YEAR_ONE_DIGIT = 2",
"modifier": "static final",
"original_string": "static ... | {
"body": "public DateFormat compile(CharSequence pattern) {\n return compile(pattern, false);\n }",
"class_method_signature": "DateFormatCompiler.compile(CharSequence pattern)",
"constructor": false,
"full_signature": "public DateFormat compile(CharSequence pattern)",
"identifier": "compile",
"in... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_392 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testImplicitConstantLong() throws SqlException {\n functions.add(new FunctionFactory() {\n @Override\n public String getSignature() {\n return \"x()\";\n }\n\n @Override\n public Function newInstance(ObjList... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_238 | {
"fields": [
{
"declarator": "function = new FloatFunction(25) {\n @Override\n public float getFloat(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final FloatFunction function = new FloatFunction(25)... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetInt() {\n function.getInt(null);\n }",
"class_method_signature": "FloatFunctionTest.testGetInt()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testGet... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java",
"identifier": "FloatFunct... | {
"body": "@Override\n public final int getInt(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "FloatFunction.getInt(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getInt(Record rec)",
"identifier": "getInt",
"invocat... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_111 | {
"fields": [
{
"declarator": "function = new SymbolFunction(25) {\n @Override\n public int getInt(Record rec) {\n return 0;\n }\n\n @Override\n public CharSequence getSymbol(Record rec) {\n return \"XYZ\";\n }\n\n @Override\n pub... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetRecordCursorFactory() {\n function.getRecordCursorFactory();\n }",
"class_method_signature": "SymbolFunctionTest.testGetRecordCursorFactory()",
"constructor": false,
"full_signature": "@Test(expected = Unsupported... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/SymbolFunction.java",
"identifier": "SymbolFun... | {
"body": "@Override\n public RecordCursorFactory getRecordCursorFactory() {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "SymbolFunction.getRecordCursorFactory()",
"constructor": false,
"full_signature": "@Override public RecordCursorFactory getRecordCursorFactory()... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_541 | {
"fields": [
{
"declarator": "reader = new BitmapIndexFwdNullReader()",
"modifier": "private static final",
"original_string": "private static final BitmapIndexFwdNullReader reader = new BitmapIndexFwdNullReader();",
"type": "BitmapIndexFwdNullReader",
"var_name": "reader"
}
]... | {
"body": "@Test\n public void testCursor() {\n final Rnd rnd = new Rnd();\n for (int i = 0; i < 10; i++) {\n int n = rnd.nextPositiveInt() % 1024;\n int m = 0;\n RowCursor cursor = reader.getCursor(true, 0, 0, n);\n while (cursor.hasNext()) {\n ... | {
"fields": [
{
"declarator": "cursor = new NullCursor()",
"modifier": "private final",
"original_string": "private final NullCursor cursor = new NullCursor();",
"type": "NullCursor",
"var_name": "cursor"
}
],
"file": "core/src/main/java/io/questdb/cairo/BitmapIndexFwdNullRea... | {
"body": "@Override\n public RowCursor getCursor(boolean cachedInstance, int key, long minValue, long maxValue) {\n final NullCursor cursor = getCursor(cachedInstance);\n cursor.max = maxValue + 1;\n cursor.value = 0;\n return cursor;\n }",
"class_method_signature": "BitmapIndexFw... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_62 | {
"fields": [
{
"declarator": "function = new DoubleFunction(25) {\n @Override\n public double getDouble(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DoubleFunction function = new DoubleFunctio... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256A() {\n function.getLong256A(null);\n }",
"class_method_signature": "DoubleFunctionTest.testLong256A()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public vo... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java",
"identifier": "DoubleFun... | {
"body": "@Override\n public Long256 getLong256A(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DoubleFunction.getLong256A(Record rec)",
"constructor": false,
"full_signature": "@Override public Long256 getLong256A(Record rec)",
"identifier": "getLong... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_404 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/FunctionParserTest.java",
"identifier": "FunctionParserTest",
"interfaces": "",
"superclass": "extends BaseFunctionFactoryTest"
} | {
"body": "@Test\n public void testVarArgFunctionNoArg() throws SqlException {\n functions.add(new InStrFunctionFactory());\n\n final GenericRecordMetadata metadata = new GenericRecordMetadata();\n metadata.add(new TableColumnMetadata(\"a\", ColumnType.STRING));\n\n FunctionParser funct... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(FunctionParser.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(FunctionParser.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "MATCH_NO... | {
"body": "public Function parseFunction(\n ExpressionNode node,\n RecordMetadata metadata,\n SqlExecutionContext executionContext\n ) throws SqlException {\n\n this.sqlExecutionContext = executionContext;\n\n if (this.metadata != null) {\n metadataStack.pu... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_613 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test\n public void testFormatLong() {\n for (int i = 0; i < 1000; i++) {\n long n = rnd.nextLong();\n sink.clear();\n Numbers.append(sink, n);\n Assert.assertEquals(Long.toString(n), sink.toString());\n }\n }",
"class_method_signature": "Nu... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_243 | {
"fields": [
{
"declarator": "function = new FloatFunction(25) {\n @Override\n public float getFloat(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final FloatFunction function = new FloatFunction(25)... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetShort() {\n function.getShort(null);\n }",
"class_method_signature": "FloatFunctionTest.testGetShort()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void t... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/FloatFunction.java",
"identifier": "FloatFunct... | {
"body": "@Override\n public final short getShort(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "FloatFunction.getShort(Record rec)",
"constructor": false,
"full_signature": "@Override public final short getShort(Record rec)",
"identifier": "getShort"... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_306 | {
"fields": [
{
"declarator": "function = new Long256Function(25) {\n @Override\n public Long256 getLong256A(Record rec) {\n return Long256Impl.NULL_LONG256;\n }\n\n @Override\n public Long256 getLong256B(Record rec) {\n return Long256Impl.NULL_LONG25... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStr() {\n function.getStr(null);\n }",
"class_method_signature": "Long256FunctionTest.testGetStr()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public void testG... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/Long256Function.java",
"identifier": "Long256F... | {
"body": "@Override\n public final CharSequence getStr(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "Long256Function.getStr(Record rec)",
"constructor": false,
"full_signature": "@Override public final CharSequence getStr(Record rec)",
"identifier": ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_19 | {
"fields": [
{
"declarator": "function = new StrFunction(25) {\n @Override\n public CharSequence getStr(Record rec) {\n return \"a\";\n }\n\n @Override\n public CharSequence getStrB(Record rec) {\n return \"a\";\n }\n }",
"modifier": ... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256() {\n function.getLong256(null, null);\n }",
"class_method_signature": "StrFunctionTest.testLong256()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public vo... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/StrFunction.java",
"identifier": "StrFunction"... | {
"body": "@Override\n public final void getLong256(Record rec, CharSink sink) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "StrFunction.getLong256(Record rec, CharSink sink)",
"constructor": false,
"full_signature": "@Override public final void getLong256(Record r... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_185 | {
"fields": [
{
"declarator": "function = new TimestampFunction(25) {\n @Override\n public long getTimestamp(Record rec) {\n return 145000L;\n }\n }",
"modifier": "private static final",
"original_string": "private static final TimestampFunction function = new ... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testLong256B() {\n function.getLong256B(null);\n }",
"class_method_signature": "TimestampFunctionTest.testLong256B()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/TimestampFunction.java",
"identifier": "Timest... | {
"body": "@Override\n public Long256 getLong256B(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "TimestampFunction.getLong256B(Record rec)",
"constructor": false,
"full_signature": "@Override public Long256 getLong256B(Record rec)",
"identifier": "getL... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_490 | {
"fields": [
{
"declarator": "PRODUCT = \"product\"",
"modifier": "public static final",
"original_string": "public static final String PRODUCT = \"product\";",
"type": "String",
"var_name": "PRODUCT"
},
{
"declarator": "FF = FilesFacadeImpl.INSTANCE",
"modifier"... | {
"body": "@Test\n public void testFailureToWriteArchiveFile() throws Exception {\n testCommitRetryAfterFailure(new CountingFilesFacade() {\n long fd = -1;\n\n @Override\n public long openAppend(LPSZ name) {\n if (--count < 1L) {\n return fd... | {
"fields": [
{
"declarator": "LOG = LogFactory.getLog(TableWriter.class)",
"modifier": "private static final",
"original_string": "private static final Log LOG = LogFactory.getLog(TableWriter.class);",
"type": "Log",
"var_name": "LOG"
},
{
"declarator": "IGNORED_FILES ... | {
"body": "private long openAppend(LPSZ name) {\n long fd = ff.openAppend(name);\n if (fd == -1) {\n throw CairoException.instance(Os.errno()).put(\"Cannot open for append: \").put(name);\n }\n return fd;\n }",
"class_method_signature": "TableWriter.openAppend(LPSZ name)",
... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_214 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/engine/functions/eq/EqDoubleFunctionFactoryTest.java",
"identifier": "EqDoubleFunctionFactoryTest",
"interfaces": "",
"superclass": "extends AbstractFunctionFactoryTest"
} | {
"body": "@Test\n public void testRightNaNDate() throws SqlException {\n FunctionFactory factory = getFunctionFactory();\n ObjList<Function> args = new ObjList<>();\n args.add(new DateConstant(1, 10000L));\n args.add(new DoubleConstant(2, Double.NaN));\n Function function = fact... | {
"fields": [],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/eq/EqDoubleFunctionFactory.java",
"identifier": "EqDoubleFunctionFactory",
"interfaces": "implements FunctionFactory",
"methods": [
{
"class_method_signature": "EqDoubleFunctionFactory.getSignature()",
"constructor... | {
"body": "@Override\n public Function newInstance(ObjList<Function> args, int position, CairoConfiguration configuration) {\n // this is probably a special case factory\n // NaN is always a double, so this could lead comparisons of all primitive types\n // to NaN route to this factory. Obviou... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_644 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test\n public void testParseIntSizeMb() throws Exception {\n Assert.assertEquals(5 * 1024 * 1024, Numbers.parseIntSize(\"5M\"));\n Assert.assertEquals(5 * 1024 * 1024, Numbers.parseIntSize(\"5m\"));\n }",
"class_method_signature": "NumbersTest.testParseIntSizeMb()",
"constructor": ... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static int parseIntSize(CharSequence sequence) throws NumericException {\n int lim = sequence.length();\n\n if (lim == 0) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(0) == '-';\n int i = 0;\n if (negative) {\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_351 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testBug484() throws Exception {\n TestMatchFunctionFactory.clear();\n\n assertQuery(\"sym\\n\" +\n \"cc\\n\" +\n \"cc\\n\" +\n \"cc\\n\" +\n \"cc\\n\" +\n ... | {
"fields": [
{
"declarator": "GKK_VANILLA_INT = 0",
"modifier": "public static final",
"original_string": "public static final int GKK_VANILLA_INT = 0;",
"type": "int",
"var_name": "GKK_VANILLA_INT"
},
{
"declarator": "GKK_HOUR_INT = 1",
"modifier": "public stati... | {
"body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }",
"class_method_signature": "SqlCodeGenerator.clear()",
"constructor": false,
"full_signature": "@Override public void clear()",
"identifier": "clear",
"invocations": [
"clear"
],
"modifiers": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_701 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
}
],
"file": "core/src/test/java/io/questdb/std/microtime/TimestampsTest.java... | {
"body": "@Test\n public void testCeilDDPrevEpoch() throws Exception {\n long micros = TimestampFormatUtils.parseDateTime(\"1888-05-12T23:45:51.045Z\");\n TimestampFormatUtils.appendDateTime(sink, Timestamps.ceilDD(micros));\n TestUtils.assertEquals(\"1888-05-12T23:59:59.999Z\", sink);\n }... | {
"fields": [
{
"declarator": "WEEK_MICROS = 604800000000L",
"modifier": "public static final",
"original_string": "public static final long WEEK_MICROS = 604800000000L;",
"type": "long",
"var_name": "WEEK_MICROS"
},
{
"declarator": "DAY_MICROS = 86400000000L",
"m... | {
"body": "public static long ceilDD(long micros) {\n int y, m;\n boolean l;\n return yearMicros(y = getYear(micros), l = isLeapYear(y))\n + monthOfYearMicros(m = getMonthOfYear(micros, y, l), l)\n + (getDayOfMonth(micros, y, m, l) - 1) * DAY_MICROS\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_428 | {
"fields": [
{
"declarator": "ENTITY_MANIPULATOR = (index, len, b) -> b",
"modifier": "private static final",
"original_string": "private static final ByteManipulator ENTITY_MANIPULATOR = (index, len, b) -> b;",
"type": "ByteManipulator",
"var_name": "ENTITY_MANIPULATOR"
},
... | {
"body": "@Test\n public void testDelimiterPriority() throws Exception {\n assertNoLeak(textLoader -> {\n final String expected = \"f0\\tf1\\tf2\\n\" +\n \";;;\\t;;\\t0.0\\n\" +\n \";;;\\t;;\\t0.0\\n\";\n\n String csv = \";;;,;;,....\\n\" +\n ... | {
"fields": [
{
"declarator": "LOAD_JSON_METADATA = 0",
"modifier": "public static final",
"original_string": "public static final int LOAD_JSON_METADATA = 0;",
"type": "int",
"var_name": "LOAD_JSON_METADATA"
},
{
"declarator": "ANALYZE_STRUCTURE = 1",
"modifier":... | {
"body": "public void setForceHeaders(boolean forceHeaders) {\n this.forceHeaders = forceHeaders;\n }",
"class_method_signature": "TextLoader.setForceHeaders(boolean forceHeaders)",
"constructor": false,
"full_signature": "public void setForceHeaders(boolean forceHeaders)",
"identifier": "setForceH... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_582 | {
"fields": [],
"file": "core/src/test/java/io/questdb/std/OsTest.java",
"identifier": "OsTest",
"interfaces": "",
"superclass": ""
} | {
"body": "@Test\n public void testCurrentTimeNanos() {\n long reference = System.currentTimeMillis();\n long actual = Os.currentTimeNanos();\n Assert.assertTrue(actual > 0);\n long delta = actual / 1_000_000 - reference;\n Assert.assertTrue(delta < 200);\n }",
"class_method... | {
"fields": [
{
"declarator": "WINDOWS = 3",
"modifier": "public static final",
"original_string": "public static final int WINDOWS = 3;",
"type": "int",
"var_name": "WINDOWS"
},
{
"declarator": "_32Bit = -2",
"modifier": "public static final",
"original_str... | {
"body": "public static native long currentTimeNanos();",
"class_method_signature": "Os.currentTimeNanos()",
"constructor": false,
"full_signature": "public static native long currentTimeNanos()",
"identifier": "currentTimeNanos",
"invocations": [],
"modifiers": "public static native",
"parameters": "(... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_652 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test(expected = NumericException.class)\n public void testParseLongSizeOverflowAtG() throws Exception {\n Numbers.parseLongSize(\"4503599627370496G\");\n }",
"class_method_signature": "NumbersTest.testParseLongSizeOverflowAtG()",
"constructor": false,
"full_signature": "@Test(expected =... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static long parseLongSize(CharSequence sequence) throws NumericException {\n int lim = sequence.length();\n\n if (lim == 0) {\n throw NumericException.INSTANCE;\n }\n\n boolean negative = sequence.charAt(0) == '-';\n int i = 0;\n if (negative) {\n... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_202 | {
"fields": [
{
"declarator": "function = new BinFunction(25) {\n @Override\n public BinarySequence getBin(Record rec) {\n return null;\n }\n\n @Override\n public long getBinLen(Record rec) {\n return TableUtils.NULL_LEN;\n }\n }",
"mo... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetTimestamp() {\n function.getTimestamp(null);\n }",
"class_method_signature": "BinFunctionTest.testGetTimestamp()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) pub... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/BinFunction.java",
"identifier": "BinFunction"... | {
"body": "@Override\n public final long getTimestamp(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "BinFunction.getTimestamp(Record rec)",
"constructor": false,
"full_signature": "@Override public final long getTimestamp(Record rec)",
"identifier": "g... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_717 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
}
],
"file": "core/src/test/java/io/questdb/std/microtime/TimestampsTest.java... | {
"body": "@Test\n public void testYearsBetween() throws Exception {\n Assert.assertEquals(112,\n Timestamps.getYearsBetween(\n TimestampFormatUtils.parseDateTime(\"1904-11-05T23:45:41.045Z\"),\n TimestampFormatUtils.parseDateTime(\"2017-07-24T23:... | {
"fields": [
{
"declarator": "WEEK_MICROS = 604800000000L",
"modifier": "public static final",
"original_string": "public static final long WEEK_MICROS = 604800000000L;",
"type": "long",
"var_name": "WEEK_MICROS"
},
{
"declarator": "DAY_MICROS = 86400000000L",
"m... | {
"body": "public static long getYearsBetween(long a, long b) {\n return getMonthsBetween(a, b) / 12;\n }",
"class_method_signature": "Timestamps.getYearsBetween(long a, long b)",
"constructor": false,
"full_signature": "public static long getYearsBetween(long a, long b)",
"identifier": "getYearsBet... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_347 | {
"fields": [],
"file": "core/src/test/java/io/questdb/griffin/SqlCodeGeneratorTest.java",
"identifier": "SqlCodeGeneratorTest",
"interfaces": "",
"superclass": "extends AbstractGriffinTest"
} | {
"body": "@Test\n public void testBindVariableInSelect() throws Exception {\n assertMemoryLeak(() -> {\n final CairoConfiguration configuration = new DefaultCairoConfiguration(root);\n try (\n CairoEngine engine = new CairoEngine(configuration);\n ... | {
"fields": [
{
"declarator": "GKK_VANILLA_INT = 0",
"modifier": "public static final",
"original_string": "public static final int GKK_VANILLA_INT = 0;",
"type": "int",
"var_name": "GKK_VANILLA_INT"
},
{
"declarator": "GKK_HOUR_INT = 1",
"modifier": "public stati... | {
"body": "@Override\n public void clear() {\n whereClauseParser.clear();\n }",
"class_method_signature": "SqlCodeGenerator.clear()",
"constructor": false,
"full_signature": "@Override public void clear()",
"identifier": "clear",
"invocations": [
"clear"
],
"modifiers": "@Override publi... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_58 | {
"fields": [
{
"declarator": "function = new DoubleFunction(25) {\n @Override\n public double getDouble(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final DoubleFunction function = new DoubleFunctio... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetStrLen() {\n function.getStrLen(null);\n }",
"class_method_signature": "DoubleFunctionTest.testGetStrLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public vo... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/DoubleFunction.java",
"identifier": "DoubleFun... | {
"body": "@Override\n public final int getStrLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "DoubleFunction.getStrLen(Record rec)",
"constructor": false,
"full_signature": "@Override public final int getStrLen(Record rec)",
"identifier": "getStrLen... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_594 | {
"fields": [
{
"declarator": "sink = new StringSink()",
"modifier": "private final",
"original_string": "private final StringSink sink = new StringSink();",
"type": "StringSink",
"var_name": "sink"
},
{
"declarator": "rnd",
"modifier": "private",
"original_... | {
"body": "@Test\n public void testFormatDoubleInt() {\n sink.clear();\n Numbers.append(sink, 44556d);\n TestUtils.assertEquals(\"44556.0\", sink);\n }",
"class_method_signature": "NumbersTest.testFormatDoubleInt()",
"constructor": false,
"full_signature": "@Test public void testForma... | {
"fields": [
{
"declarator": "INT_NaN = Integer.MIN_VALUE",
"modifier": "public static final",
"original_string": "public static final int INT_NaN = Integer.MIN_VALUE;",
"type": "int",
"var_name": "INT_NaN"
},
{
"declarator": "LONG_NaN = Long.MIN_VALUE",
"modifie... | {
"body": "public static void append(CharSink sink, final float value, int scale) {\n float f = value;\n if (f == Float.POSITIVE_INFINITY) {\n sink.put(\"Infinity\");\n return;\n }\n\n if (f == Float.NEGATIVE_INFINITY) {\n sink.put(\"-Infinity\");\n ... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
19257422_255 | {
"fields": [
{
"declarator": "function = new ShortFunction(25) {\n @Override\n public short getShort(Record rec) {\n return 0;\n }\n }",
"modifier": "private static final",
"original_string": "private static final ShortFunction function = new ShortFunction(25)... | {
"body": "@Test(expected = UnsupportedOperationException.class)\n public void testGetBinLen() {\n function.getBinLen(null);\n }",
"class_method_signature": "ShortFunctionTest.testGetBinLen()",
"constructor": false,
"full_signature": "@Test(expected = UnsupportedOperationException.class) public voi... | {
"fields": [
{
"declarator": "position",
"modifier": "private final",
"original_string": "private final int position;",
"type": "int",
"var_name": "position"
}
],
"file": "core/src/main/java/io/questdb/griffin/engine/functions/ShortFunction.java",
"identifier": "ShortFunct... | {
"body": "@Override\n public long getBinLen(Record rec) {\n throw new UnsupportedOperationException();\n }",
"class_method_signature": "ShortFunction.getBinLen(Record rec)",
"constructor": false,
"full_signature": "@Override public long getBinLen(Record rec)",
"identifier": "getBinLen",
"invoc... | {
"created": "4/28/2014 11:29:15 PM +00:00",
"fork": "False",
"fork_count": null,
"is_fork": null,
"language": null,
"license": "licensed",
"repo_id": 19257422,
"size": null,
"stargazer_count": null,
"stars": 212,
"updates": "2020-01-27T20:58:34+00:00",
"url": "https://github.com/questdb/questdb... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.