id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
43502922_16
{ "fields": [ { "declarator": "mBytes = new byte[] { 17, 16, 0, 55, 23, 66, 127, -128, -23, 66 }", "modifier": "private final", "original_string": "private final byte[] mBytes = new byte[] { 17, 16, 0, 55, 23, 66, 127, -128, -23, 66 };", "type": "byte[]", "var_name": "mBytes" } ...
{ "body": "@Test public void readsInputStream() throws Exception {\n assertArrayEquals(mBytes, read(new ByteArrayInputStream(mBytes)).toByteArray());\n }", "class_method_signature": "StreamsTest.readsInputStream()", "constructor": false, "full_signature": "@Test public void readsInputStream()", "ide...
{ "fields": [ { "declarator": "BUFFER_SIZE = 16 * 1024", "modifier": "private static final", "original_string": "private static final int BUFFER_SIZE = 16 * 1024;", "type": "int", "var_name": "BUFFER_SIZE" } ], "file": "app/src/main/java/pl/rbolanowski/tw4a/Streams.java", "...
{ "body": "public static ByteArrayOutputStream read(InputStream inputStream) throws IOException {\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n copy(inputStream, outputStream);\n return outputStream;\n }", "class_method_signature": "Streams.read(InputStream inputStrea...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_5
{ "fields": [ { "declarator": "mParser = mock(Parser.class)", "modifier": "private", "original_string": "private Parser mParser = mock(Parser.class);", "type": "Parser", "var_name": "mParser" }, { "declarator": "mTaskwarrior = mock(Taskwarrior.class)", "modifier":...
{ "body": "@Test public void insertsTask() throws Exception {\n mTask.description = \"this is some task\";\n mDatabase.insert(mTask);\n verify(mTaskwarrior, atLeastOnce()).put(mTask.description);\n }", "class_method_signature": "TaskwarriorDatabaseTest.insertsTask()", "constructor": false,...
{ "fields": [ { "declarator": "LOG_TAG = TaskwarriorDatabase.class.getSimpleName()", "modifier": "private static final", "original_string": "private static final String LOG_TAG = TaskwarriorDatabase.class.getSimpleName();", "type": "String", "var_name": "LOG_TAG" }, { "...
{ "body": "@Override\n public void insert(Task task) throws AlreadyStoredException, IncompleteArgumentException {\n if (task.uuid != null) throw new AlreadyStoredException();\n require(task.description, Field.description);\n mTaskwarrior.put(task.description);\n }", "class_method_signatur...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_11
{ "fields": [ { "declarator": "mTranslator = new Translator()", "modifier": "private", "original_string": "private Translator mTranslator = new Translator();", "type": "Translator", "var_name": "mTranslator" } ], "file": "app/src/test/java/pl/rbolanowski/tw4a/backend/taskwarr...
{ "body": "@Test public void translatesNotNullObjects() {\n InternalTask in = new InternalTask();\n\n in.uuid = \"1234\";\n in.description = \"hello world\";\n in.urgency = 9.8401f;\n in.status = InternalTask.Status.Pending;\n assertTaskMatches(mTranslator.translate(in), \"12...
{ "fields": [], "file": "app/src/main/java/pl/rbolanowski/tw4a/backend/taskwarrior/Translator.java", "identifier": "Translator", "interfaces": "", "methods": [ { "class_method_signature": "Translator.translate(InternalTask in)", "constructor": false, "full_signature": "public Task transl...
{ "body": "public Task translate(InternalTask in) {\n Task out = null;\n if (in != null) {\n out = new Task();\n out.uuid = in.uuid;\n out.description = in.description;\n out.done = in.status == InternalTask.Status.Completed;\n out.urgency = in.urge...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_9
{ "fields": [ { "declarator": "mParser = mock(Parser.class)", "modifier": "private", "original_string": "private Parser mParser = mock(Parser.class);", "type": "Parser", "var_name": "mParser" }, { "declarator": "mTaskwarrior = mock(Taskwarrior.class)", "modifier":...
{ "body": "@Test public void selectsTasks() throws Exception {\n final int tasksCount = 3;\n configure(tasksCount, internalTask(InternalTask.Status.Pending), mTask);\n assertEquals(tasksCount, mDatabase.select().length);\n }", "class_method_signature": "TaskwarriorDatabaseTest.selectsTasks()...
{ "fields": [ { "declarator": "LOG_TAG = TaskwarriorDatabase.class.getSimpleName()", "modifier": "private static final", "original_string": "private static final String LOG_TAG = TaskwarriorDatabase.class.getSimpleName();", "type": "String", "var_name": "LOG_TAG" }, { "...
{ "body": "@Override\n public Task[] select() {\n Taskwarrior.Output output = mTaskwarrior.export();\n List<InternalTask> internalTasks = only(parse(output.stdout), InternalTask.Status.Pending);\n return translateAll(internalTasks);\n }", "class_method_signature": "TaskwarriorDatabase.sel...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_8
{ "fields": [ { "declarator": "mParser = mock(Parser.class)", "modifier": "private", "original_string": "private Parser mParser = mock(Parser.class);", "type": "Parser", "var_name": "mParser" }, { "declarator": "mTaskwarrior = mock(Taskwarrior.class)", "modifier":...
{ "body": "@Test public void selectsOnlyPendingTasks() throws Exception {\n configure(internalTask(InternalTask.Status.Completed), null);\n assertEquals(0, mDatabase.select().length);\n\n configure(internalTask(InternalTask.Status.Recurring), null);\n assertEquals(0, mDatabase.select().len...
{ "fields": [ { "declarator": "LOG_TAG = TaskwarriorDatabase.class.getSimpleName()", "modifier": "private static final", "original_string": "private static final String LOG_TAG = TaskwarriorDatabase.class.getSimpleName();", "type": "String", "var_name": "LOG_TAG" }, { "...
{ "body": "@Override\n public Task[] select() {\n Taskwarrior.Output output = mTaskwarrior.export();\n List<InternalTask> internalTasks = only(parse(output.stdout), InternalTask.Status.Pending);\n return translateAll(internalTasks);\n }", "class_method_signature": "TaskwarriorDatabase.sel...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_10
{ "fields": [ { "declarator": "mTranslator = new Translator()", "modifier": "private", "original_string": "private Translator mTranslator = new Translator();", "type": "Translator", "var_name": "mTranslator" } ], "file": "app/src/test/java/pl/rbolanowski/tw4a/backend/taskwarr...
{ "body": "@Test public void translatesNull() {\n assertTrue(mTranslator.translate(null) == null);\n }", "class_method_signature": "TranslatorTest.translatesNull()", "constructor": false, "full_signature": "@Test public void translatesNull()", "identifier": "translatesNull", "invocations": [ "...
{ "fields": [], "file": "app/src/main/java/pl/rbolanowski/tw4a/backend/taskwarrior/Translator.java", "identifier": "Translator", "interfaces": "", "methods": [ { "class_method_signature": "Translator.translate(InternalTask in)", "constructor": false, "full_signature": "public Task transl...
{ "body": "public Task translate(InternalTask in) {\n Task out = null;\n if (in != null) {\n out = new Task();\n out.uuid = in.uuid;\n out.description = in.description;\n out.done = in.status == InternalTask.Status.Completed;\n out.urgency = in.urge...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_4
{ "fields": [ { "declarator": "mParser = mock(Parser.class)", "modifier": "private", "original_string": "private Parser mParser = mock(Parser.class);", "type": "Parser", "var_name": "mParser" }, { "declarator": "mTaskwarrior = mock(Taskwarrior.class)", "modifier":...
{ "body": "@Test(expected = Database.IncompleteArgumentException.class)\n public void insertingElementWithEmptyDescriptionCausesDetailedException() throws Exception {\n mDatabase.insert(mTask);\n }", "class_method_signature": "TaskwarriorDatabaseTest.insertingElementWithEmptyDescriptionCausesDetailedEx...
{ "fields": [ { "declarator": "LOG_TAG = TaskwarriorDatabase.class.getSimpleName()", "modifier": "private static final", "original_string": "private static final String LOG_TAG = TaskwarriorDatabase.class.getSimpleName();", "type": "String", "var_name": "LOG_TAG" }, { "...
{ "body": "@Override\n public void insert(Task task) throws AlreadyStoredException, IncompleteArgumentException {\n if (task.uuid != null) throw new AlreadyStoredException();\n require(task.description, Field.description);\n mTaskwarrior.put(task.description);\n }", "class_method_signatur...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_7
{ "fields": [ { "declarator": "mParser = mock(Parser.class)", "modifier": "private", "original_string": "private Parser mParser = mock(Parser.class);", "type": "Parser", "var_name": "mParser" }, { "declarator": "mTaskwarrior = mock(Taskwarrior.class)", "modifier":...
{ "body": "@Test public void updatesTask() throws Exception {\n mTask.uuid = \"1234\";\n mTask.description = \"updated!\";\n\n mDatabase.update(mTask);\n verify(mTaskwarrior, atLeastOnce()).modify(mTask.uuid, mTask.description, InternalTask.Status.Pending);\n\n mTask.done = true;\n ...
{ "fields": [ { "declarator": "LOG_TAG = TaskwarriorDatabase.class.getSimpleName()", "modifier": "private static final", "original_string": "private static final String LOG_TAG = TaskwarriorDatabase.class.getSimpleName();", "type": "String", "var_name": "LOG_TAG" }, { "...
{ "body": "@Override\n public void update(Task task) throws NotStoredException {\n if (task.uuid == null) throw new NotStoredException();\n mTaskwarrior.modify(task.uuid, task.description, translateStatus(task.done));\n }", "class_method_signature": "TaskwarriorDatabase.update(Task task)", "co...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_13
{ "fields": [ { "declarator": "PREFIX = \"tw4a\"", "modifier": "private static final", "original_string": "private static final String PREFIX = \"tw4a\";", "type": "String", "var_name": "PREFIX" }, { "declarator": "SUFFIX = DirectoryExporterTest.class.getSimpleName()", ...
{ "body": "@Test(expected = NullPointerException.class)\n public void reportsErrorOnUsingNullHandler() throws Exception {\n File dir = mock(File.class);\n when(dir.isDirectory()).thenReturn(true);\n new DirectoryExporter(dir).export(null);\n }", "class_method_signature": "DirectoryExporte...
{ "fields": [ { "declarator": "mDir", "modifier": "private", "original_string": "private File mDir;", "type": "File", "var_name": "mDir" } ], "file": "app/src/main/java/pl/rbolanowski/tw4a/backend/internal/DirectoryExporter.java", "identifier": "DirectoryExporter", "inter...
{ "body": "@Override\n public void export(Handler handler) throws IOException {\n if (!mDir.isDirectory()) throw new IOException(\"not a directory\");\n for (String fileName : mDir.list()) {\n exportFile(fileName, new FileInputStream(new File(mDir, fileName)), handler);\n }\n }",...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_12
{ "fields": [ { "declarator": "PREFIX = \"tw4a\"", "modifier": "private static final", "original_string": "private static final String PREFIX = \"tw4a\";", "type": "String", "var_name": "PREFIX" }, { "declarator": "SUFFIX = DirectoryExporterTest.class.getSimpleName()", ...
{ "body": "@Test(expected = NullPointerException.class)\n public void reportsErrorOnUsingNullFile() throws Exception {\n new DirectoryExporter(null).export(this);\n }", "class_method_signature": "DirectoryExporterTest.reportsErrorOnUsingNullFile()", "constructor": false, "full_signature": "@Test(ex...
{ "fields": [ { "declarator": "mDir", "modifier": "private", "original_string": "private File mDir;", "type": "File", "var_name": "mDir" } ], "file": "app/src/main/java/pl/rbolanowski/tw4a/backend/internal/DirectoryExporter.java", "identifier": "DirectoryExporter", "inter...
{ "body": "@Override\n public void export(Handler handler) throws IOException {\n if (!mDir.isDirectory()) throw new IOException(\"not a directory\");\n for (String fileName : mDir.list()) {\n exportFile(fileName, new FileInputStream(new File(mDir, fileName)), handler);\n }\n }",...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_6
{ "fields": [ { "declarator": "mParser = mock(Parser.class)", "modifier": "private", "original_string": "private Parser mParser = mock(Parser.class);", "type": "Parser", "var_name": "mParser" }, { "declarator": "mTaskwarrior = mock(Taskwarrior.class)", "modifier":...
{ "body": "@Test(expected = Database.NotStoredException.class)\n public void updatingTaskWithoutUuidThrowsException() throws Exception {\n mDatabase.update(mTask);\n }", "class_method_signature": "TaskwarriorDatabaseTest.updatingTaskWithoutUuidThrowsException()", "constructor": false, "full_signatu...
{ "fields": [ { "declarator": "LOG_TAG = TaskwarriorDatabase.class.getSimpleName()", "modifier": "private static final", "original_string": "private static final String LOG_TAG = TaskwarriorDatabase.class.getSimpleName();", "type": "String", "var_name": "LOG_TAG" }, { "...
{ "body": "@Override\n public void update(Task task) throws NotStoredException {\n if (task.uuid == null) throw new NotStoredException();\n mTaskwarrior.modify(task.uuid, task.description, translateStatus(task.done));\n }", "class_method_signature": "TaskwarriorDatabase.update(Task task)", "co...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_15
{ "fields": [ { "declarator": "PREFIX = \"tw4a\"", "modifier": "private static final", "original_string": "private static final String PREFIX = \"tw4a\";", "type": "String", "var_name": "PREFIX" }, { "declarator": "SUFFIX = DirectoryExporterTest.class.getSimpleName()", ...
{ "body": "@Test public void exportsFileFromDirectory() throws Exception {\n new DirectoryExporter(mDir).export(this);\n }", "class_method_signature": "DirectoryExporterTest.exportsFileFromDirectory()", "constructor": false, "full_signature": "@Test public void exportsFileFromDirectory()", "identifi...
{ "fields": [ { "declarator": "mDir", "modifier": "private", "original_string": "private File mDir;", "type": "File", "var_name": "mDir" } ], "file": "app/src/main/java/pl/rbolanowski/tw4a/backend/internal/DirectoryExporter.java", "identifier": "DirectoryExporter", "inter...
{ "body": "@Override\n public void export(Handler handler) throws IOException {\n if (!mDir.isDirectory()) throw new IOException(\"not a directory\");\n for (String fileName : mDir.list()) {\n exportFile(fileName, new FileInputStream(new File(mDir, fileName)), handler);\n }\n }",...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_1
{ "fields": [ { "declarator": "LAYOUT = 12", "modifier": "private static final", "original_string": "private static final int LAYOUT = 12;", "type": "int", "var_name": "LAYOUT" }, { "declarator": "mContext = mock(MockContext.class)", "modifier": "private", "...
{ "body": "@Test public void changesInDataAreNotWatched() {\n mTasks.add(new Task());\n\n TaskAdapter adapter = new TaskAdapter(mContext, LAYOUT, mTasks);\n assertEquals(1, adapter.getCount());\n\n mTasks.addAll(makeTasks(3));\n adapter.notifyDataSetChanged();\n assertEquals(...
{ "fields": [ { "declarator": "mContext", "modifier": "private", "original_string": "private Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mResource", "modifier": "private", "original_string": "private int mResource;", ...
{ "body": "@Override\n public int getCount() {\n return mCurrentData.size();\n }", "class_method_signature": "TaskAdapter.getCount()", "constructor": false, "full_signature": "@Override public int getCount()", "identifier": "getCount", "invocations": [ "size" ], "modifiers": "@Override ...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_19
{ "fields": [], "file": "app/src/test/java/pl/rbolanowski/tw4a/TaskComparatorsTest.java", "identifier": "TaskComparatorsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test public void byUrgencyComparesInAscendingOrder() {\n testComparator(byUrgency(), makeTask(13.231f), makeTask(3.12f));\n }", "class_method_signature": "TaskComparatorsTest.byUrgencyComparesInAscendingOrder()", "constructor": false, "full_signature": "@Test public void byUrgencyComparesI...
{ "fields": [], "file": "app/src/main/java/pl/rbolanowski/tw4a/TaskComparators.java", "identifier": "TaskComparators", "interfaces": "", "methods": [ { "class_method_signature": "TaskComparators.TaskComparators()", "constructor": true, "full_signature": "private TaskComparators()", ...
{ "body": "public static Comparator<Task> byUrgency() {\n return new Comparator<Task>() {\n @Override\n public int compare(Task lhs, Task rhs) {\n return Float.compare(lhs.urgency, rhs.urgency);\n }\n };\n }", "class_method_signature": "TaskComparator...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_18
{ "fields": [], "file": "app/src/test/java/pl/rbolanowski/tw4a/TaskComparatorsTest.java", "identifier": "TaskComparatorsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NullPointerException.class)\n public void byUrgencyHandlesNull() {\n byUrgency().compare(null, null);\n }", "class_method_signature": "TaskComparatorsTest.byUrgencyHandlesNull()", "constructor": false, "full_signature": "@Test(expected = NullPointerException.class) publi...
{ "fields": [], "file": "app/src/main/java/pl/rbolanowski/tw4a/TaskComparators.java", "identifier": "TaskComparators", "interfaces": "", "methods": [ { "class_method_signature": "TaskComparators.TaskComparators()", "constructor": true, "full_signature": "private TaskComparators()", ...
{ "body": "public static Comparator<Task> byUrgency() {\n return new Comparator<Task>() {\n @Override\n public int compare(Task lhs, Task rhs) {\n return Float.compare(lhs.urgency, rhs.urgency);\n }\n };\n }", "class_method_signature": "TaskComparator...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_0
{ "fields": [ { "declarator": "LAYOUT = 12", "modifier": "private static final", "original_string": "private static final int LAYOUT = 12;", "type": "int", "var_name": "LAYOUT" }, { "declarator": "mContext = mock(MockContext.class)", "modifier": "private", "...
{ "body": "@Test public void constructs() {\n assertEquals(0, new TaskAdapter(mContext, LAYOUT, mTasks).getCount());\n }", "class_method_signature": "TaskAdapterTest.constructs()", "constructor": false, "full_signature": "@Test public void constructs()", "identifier": "constructs", "invocations": ...
{ "fields": [ { "declarator": "mContext", "modifier": "private", "original_string": "private Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mResource", "modifier": "private", "original_string": "private int mResource;", ...
{ "body": "@Override\n public int getCount() {\n return mCurrentData.size();\n }", "class_method_signature": "TaskAdapter.getCount()", "constructor": false, "full_signature": "@Override public int getCount()", "identifier": "getCount", "invocations": [ "size" ], "modifiers": "@Override ...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
43502922_14
{ "fields": [ { "declarator": "PREFIX = \"tw4a\"", "modifier": "private static final", "original_string": "private static final String PREFIX = \"tw4a\";", "type": "String", "var_name": "PREFIX" }, { "declarator": "SUFFIX = DirectoryExporterTest.class.getSimpleName()", ...
{ "body": "@Test(expected = IOException.class)\n public void supportsOnlyDirectories() throws Exception {\n File file = mock(File.class);\n when(file.isDirectory()).thenReturn(false);\n new DirectoryExporter(file).export(null);\n }", "class_method_signature": "DirectoryExporterTest.suppor...
{ "fields": [ { "declarator": "mDir", "modifier": "private", "original_string": "private File mDir;", "type": "File", "var_name": "mDir" } ], "file": "app/src/main/java/pl/rbolanowski/tw4a/backend/internal/DirectoryExporter.java", "identifier": "DirectoryExporter", "inter...
{ "body": "@Override\n public void export(Handler handler) throws IOException {\n if (!mDir.isDirectory()) throw new IOException(\"not a directory\");\n for (String fileName : mDir.list()) {\n exportFile(fileName, new FileInputStream(new File(mDir, fileName)), handler);\n }\n }",...
{ "created": null, "fork": null, "fork_count": 4, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 43502922, "size": 3765, "stargazer_count": 7, "stars": null, "updates": null, "url": "https://github.com/robin92/tw4a" }
8648747_8
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/util/LRUVectorTest.java", "identifier": "LRUVectorTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Test\n public void testAddElement() {\n System.out.println(\"addElement\");\n LRUVector instance = new LRUVector();\n Object o_1 = \"a\";\n Object o_2 = \"b\";\n instance.addElement(o_1);\n assertEquals(\"Size 1\", 1, instance.size());\n instance.addElem...
{ "fields": [], "file": "TantalumCore/src/main/java/org/tantalum/util/LRUVector.java", "identifier": "LRUVector", "interfaces": "", "methods": [ { "class_method_signature": "LRUVector.LRUVector()", "constructor": true, "full_signature": "public LRUVector()", "identifier": "LRUVect...
{ "body": "public synchronized void addElement(Object o) {\n removeElement(o);\n super.addElement(o);\n }", "class_method_signature": "LRUVector.addElement(Object o)", "constructor": false, "full_signature": "public synchronized void addElement(Object o)", "identifier": "addElement", "invoc...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_46
{ "fields": [ { "declarator": "collection", "modifier": "private", "original_string": "private SortedVector collection;", "type": "SortedVector", "var_name": "collection" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/SortedVectorTest.java", "identifier": "Sorte...
{ "body": "@Test\n public void setElementAtTest() {\n System.out.println(\"setElementAt\");\n SortedVector instance = new SortedVector(new Comparator() {\n public int compare(Object o1, Object o2) {\n return ((Integer) o1).intValue() - ((Integer) o2).intValue();\n ...
{ "fields": [ { "declarator": "comparator", "modifier": "private final", "original_string": "private final Comparator comparator;", "type": "Comparator", "var_name": "comparator" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/SortedVector.java", "identifier": "S...
{ "body": "public final void setElementAt(Object o, int index) {\n throw new IllegalArgumentException(\"setElementAt() not supported\");\n }", "class_method_signature": "SortedVector.setElementAt(Object o, int index)", "constructor": false, "full_signature": "public final void setElementAt(Object o, i...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_11
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void hexStringChecksForWrongLengthInput() {\n StringUtils.hexStringToByteArray(\"0\");\n }", "class_method_signature": "StringUtilsTest.hexStringChecksForWrongLengthInput()", "constructor": false, "full_signature": "@Test(expected...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static byte[] hexStringToByteArray(final String s) {\n if (s == null) {\n throw new NullPointerException(\"hexStringToByteArray was pass null string\");\n }\n \n final int n = s.length();\n if (n % 2 != 0) {\n throw new IllegalArgumentExceptio...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_50
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test\n public void almostSameLongsAreNotTheSameTest() throws DigestException, UnsupportedEncodingException {\n assertNotEquals(cryptoUtils.toDigest(imageUrl1), cryptoUtils.toDigest(imageUrl2));\n }", "class_method_signature": "CryptoUtilsTest.almostSameLongsAreNotTheSameTest()", "construc...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_4
{ "fields": [ { "declarator": "mockedRmsUtils", "modifier": "", "original_string": "RMSUtils mockedRmsUtils;", "type": "RMSUtils", "var_name": "mockedRmsUtils" }, { "declarator": "mockedKeyRS", "modifier": "", "original_string": "RecordStore mockedKeyRS;", ...
{ "body": "@Test(expected = NullPointerException.class)\n public void nullPointerExceptionThrownWhenPutNullData() throws DigestException, FlashDatabaseException {\n rmsFastCache.put(\"fah\", null);\n }", "class_method_signature": "RMSFastCacheTest.nullPointerExceptionThrownWhenPutNullData()", "constr...
{ "fields": [ { "declarator": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000", "modifier": "private static final", "original_string": "private static final int SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000;", "type": "int", "var_name": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS" }, { "decla...
{ "body": "public void put(final String key, final byte[] value) throws DigestException, FlashFullException, FlashDatabaseException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to put a null key to the cache\");\n }\n if (value == null) {\n throw n...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_27
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeSimple() throws IOException {\n assertEquals(\"This%2Bis+a+simple+%26+short+test.\", StringUtils.urlEncode(\"This+is a simple & short test.\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeSimple()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_70
{ "fields": [ { "declarator": "xml", "modifier": "", "original_string": "byte[] xml;", "type": "byte[]", "var_name": "xml" }, { "declarator": "instance", "modifier": "private", "original_string": "private RSSModel instance;", "type": "RSSModel", ...
{ "body": "@Test\n public void testParseElement() throws SAXException {\n instance.setXML(xml);\n assertEquals(\"rss size\", 86, instance.size());\n }", "class_method_signature": "RSSModelTest.testParseElement()", "constructor": false, "full_signature": "@Test public void testParseElement()"...
{ "fields": [ { "declarator": "items = new Vector(40)", "modifier": "protected final", "original_string": "protected final Vector items = new Vector(40);", "type": "Vector", "var_name": "items" }, { "declarator": "currentItem", "modifier": "protected", "orig...
{ "body": "protected synchronized void parseElement(final String qname, final String chars, final XMLAttributes attributes) {\n try {\n if (currentItem != null) {\n if (qname.equals(\"title\")) {\n currentItem.setTitle(chars);\n } else if (qname.equal...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_66
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test\n public void testSize() {\n System.out.println(\"size\");\n WeakHashCache instance = new WeakHashCache();\n final int length = 10000;\n for (int i = 0; i < length; i++) {\n instance.put(\"keykeykey\" + i, \"valuevaluevalue\" + i);\n }\n assertE...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized int size() {\n return hash.size();\n }", "class_method_signature": "WeakHashCache.size()", "constructor": false, "full_signature": "public synchronized int size()", "identifier": "size", "invocations": [ "size" ], "modifiers": "public synchronized", "parame...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_31
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlDecodeSymbols() throws IOException {\n assertEquals(\"$ & < > ? ; # : = , \\\" ' ~ + %\", StringUtils.urlDecode(\"%24+%26+%3C+%3E+%3F+%3B+%23+%3A+%3D+%2C+%22+%27+%7E+%2B+%25\"));\n }", "class_method_signature": "StringUtilsTest.urlDecodeSymbols()", "constructor": fal...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_30
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeSymbols() throws IOException {\n assertEquals(\"%24+%26+%3C+%3E+%3F+%3B+%23+%3A+%3D+%2C+%22+%27+%7E+%2B+%25\", StringUtils.urlEncode(\"$ & < > ? ; # : = , \\\" ' ~ + %\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeSymbols()", "constructor": fal...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_67
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test\n public void testClear() {\n System.out.println(\"size\");\n WeakHashCache instance = new WeakHashCache();\n final int length = 10000;\n for (int i = 0; i < length; i++) {\n instance.put(VALUE_CONSTANT + i, \"valuevaluevalue\" + i);\n }\n asser...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized void clear() {\n hash.clear();\n }", "class_method_signature": "WeakHashCache.clear()", "constructor": false, "full_signature": "public synchronized void clear()", "identifier": "clear", "invocations": [ "clear" ], "modifiers": "public synchronized", "param...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_71
{ "fields": [ { "declarator": "cancelCalled", "modifier": "", "original_string": "boolean cancelCalled;", "type": "boolean", "var_name": "cancelCalled" }, { "declarator": "getter", "modifier": "", "original_string": "HttpGetter getter;", "type": "HttpG...
{ "body": "@Test\n public void canceledWhenNonStringKey() throws InterruptedException {\n getter.exec(new Object());\n assertEquals(\"Getter was not correctly cancelled for non-String url\", getter.getStatus(), Task.CANCELED);\n }", "class_method_signature": "HttpGetterTest.canceledWhenNonString...
{ "fields": [ { "declarator": "READ_BUFFER_LENGTH = 8192", "modifier": "private static final", "original_string": "private static final int READ_BUFFER_LENGTH = 8192;", "type": "int", "var_name": "READ_BUFFER_LENGTH" }, { "declarator": "OUTPUT_BUFFER_INITIAL_LENGTH = 81...
{ "body": "public Object exec(final Object in) throws InterruptedException {\n LOR out = null;\n\n if (Task.isShuttingDown()) {\n //#debug\n L.i(\"Attempt to run HttpGetter during shutdown\", \"ignored\");\n setRetriesRemaining(0);\n cancel(\"Attempt to run Ht...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_26
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void toHexTestCD1A() {\n assertEquals(\"CD1A\", StringUtils.byteArrayToHexString(byteTest2));\n }", "class_method_signature": "StringUtilsTest.toHexTestCD1A()", "constructor": false, "full_signature": "@Test public void toHexTestCD1A()", "identifier": "toHexTestCD1A", ...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String byteArrayToHexString(final byte[] bytes) {\n final StringBuffer sb = new StringBuffer(bytes.length * 2);\n\n for (int i = 0; i < bytes.length; i++) {\n appendHex(bytes[i], sb);\n }\n\n return sb.toString();\n }", "class_method_signature": "St...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_5
{ "fields": [ { "declarator": "mockedRmsUtils", "modifier": "", "original_string": "RMSUtils mockedRmsUtils;", "type": "RMSUtils", "var_name": "mockedRmsUtils" }, { "declarator": "mockedKeyRS", "modifier": "", "original_string": "RecordStore mockedKeyRS;", ...
{ "body": "@Test(expected = NullPointerException.class)\n public void nullPointerExceptionThrownWhenGetNullString() throws DigestException, FlashDatabaseException {\n rmsFastCache.get((String) null);\n }", "class_method_signature": "RMSFastCacheTest.nullPointerExceptionThrownWhenGetNullString()", "co...
{ "fields": [ { "declarator": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000", "modifier": "private static final", "original_string": "private static final int SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000;", "type": "int", "var_name": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS" }, { "decla...
{ "body": "public byte[] get(final long digest, final boolean markAsLeastRecentlyUsed) throws FlashDatabaseException {\n synchronized (mutex) {\n final Long dig = new Long(digest);\n final Long hashValue = ((Long) indexHash.get(dig, markAsLeastRecentlyUsed));\n\n if (hashValue ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_51
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test\n public void statelessSequenceTest() throws DigestException, UnsupportedEncodingException {\n long l = cryptoUtils.toDigest(imageUrl2);\n cryptoUtils.toDigest(\"wahhh\");\n assertEquals(l, cryptoUtils.toDigest(imageUrl2));\n }", "class_method_signature": "CryptoUtilsTest...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_10
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void sampleBytesToHexString() {\n assertArrayEquals(sampleAsBytes, StringUtils.hexStringToByteArray(sampleAsHex));\n }", "class_method_signature": "StringUtilsTest.sampleBytesToHexString()", "constructor": false, "full_signature": "@Test public void sampleBytesToHexString(...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static byte[] hexStringToByteArray(final String s) {\n if (s == null) {\n throw new NullPointerException(\"hexStringToByteArray was pass null string\");\n }\n \n final int n = s.length();\n if (n % 2 != 0) {\n throw new IllegalArgumentExceptio...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_9
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/util/LRUVectorTest.java", "identifier": "LRUVectorTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Test\n public void testRemoveLeastRecentlyUsed() {\n System.out.println(\"removeLeastRecentlyUsed\");\n LRUVector instance = new LRUVector();\n Object expResult_1 = true;\n instance.addElement(\"a\");\n instance.addElement(\"b\");\n instance.addElement(\"c\");\...
{ "fields": [], "file": "TantalumCore/src/main/java/org/tantalum/util/LRUVector.java", "identifier": "LRUVector", "interfaces": "", "methods": [ { "class_method_signature": "LRUVector.LRUVector()", "constructor": true, "full_signature": "public LRUVector()", "identifier": "LRUVect...
{ "body": "public synchronized Object removeLeastRecentlyUsed() {\n final Object o = getLeastRecentlyUsed();\n\n if (o != null) {\n removeElement(o);\n }\n\n return o;\n }", "class_method_signature": "LRUVector.removeLeastRecentlyUsed()", "constructor": false, "full_sig...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_47
{ "fields": [ { "declarator": "collection", "modifier": "private", "original_string": "private SortedVector collection;", "type": "SortedVector", "var_name": "collection" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/SortedVectorTest.java", "identifier": "Sorte...
{ "body": "@Test\n public void addElementTest() {\n System.out.println(\"addElement\");\n SortedVector instance = new SortedVector(new Comparator() {\n public int compare(Object o1, Object o2) {\n return ((Integer) o1).intValue() - ((Integer) o2).intValue();\n }\n...
{ "fields": [ { "declarator": "comparator", "modifier": "private final", "original_string": "private final Comparator comparator;", "type": "Comparator", "var_name": "comparator" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/SortedVector.java", "identifier": "S...
{ "body": "public synchronized void addElement(final Object o) {\n int insertIndex = size(); /* Future index of o in the SortedVector? */\n /* Finding the index */\n for (int i = size() - 1; i >= 0; i--) {\n if (comparator.compare(o, elementAt(i)) < 0) {\n insertIndex--;...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_2
{ "fields": [ { "declarator": "mockedRmsUtils", "modifier": "", "original_string": "RMSUtils mockedRmsUtils;", "type": "RMSUtils", "var_name": "mockedRmsUtils" }, { "declarator": "mockedKeyRS", "modifier": "", "original_string": "RecordStore mockedKeyRS;", ...
{ "body": "@Test(expected = NullPointerException.class)\n public void nullPointerExceptionThrownWhenNullStringRemoveData() throws DigestException, FlashDatabaseException {\n rmsFastCache.removeData((String) null);\n }", "class_method_signature": "RMSFastCacheTest.nullPointerExceptionThrownWhenNullStrin...
{ "fields": [ { "declarator": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000", "modifier": "private static final", "original_string": "private static final int SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000;", "type": "int", "var_name": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS" }, { "decla...
{ "body": "public void removeData(final long digest) throws FlashDatabaseException {\n synchronized (mutex) {\n try {\n final Long indexEntry = indexHashGet(digest, false);\n\n if (indexEntry != null) {\n\n final Long dig = new Long(digest);\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_21
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void twoByteDecode() throws UnsupportedEncodingException, IOException {\n String twoByteString = new String(twoByteArray, \"UTF-8\");\n assertEquals(twoByteString, StringUtils.urlDecode(twoByteEncoded));\n }", "class_method_signature": "StringUtilsTest.twoByteDecode()",...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_60
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test\n public void testRemove() {\n System.out.println(\"remove\");\n WeakHashCache instance = new WeakHashCache();\n String key1 = \"\";\n String key2 = \"a\";\n instance.remove(null);\n instance.remove(key1);\n instance.put(key1, \"fruit\");\n i...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized boolean remove(final Object key) {\n if (key != null) {\n return hash.remove(key) != null;\n }\n\n //#debug\n L.i(this, \"WeakHashCache\", \"remove() with null key\");\n return false;\n }", "class_method_signature": "WeakHashCache.remov...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_37
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeZhuang() throws IOException {\n assertEquals(\"%E5%80%B1\", StringUtils.urlEncode(\"倱\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeZhuang()", "constructor": false, "full_signature": "@Test public void urlEncodeZhuang()", "identifier": "url...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_40
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeJapaneseHiragana() throws IOException {\n assertEquals(\"%E3%81%8B%E3%82%93%E3%81%98\", StringUtils.urlEncode(\"かんじ\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeJapaneseHiragana()", "constructor": false, "full_signature": "@Test public void ...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_17
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void fourByteDecode() throws UnsupportedEncodingException, IOException {\n String fourByteString = new String(fourByteArray, \"UTF-8\");\n assertEquals(fourByteString, StringUtils.urlDecode(fourByteEncoded));\n }", "class_method_signature": "StringUtilsTest.fourByteDeco...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_56
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test(expected = NullPointerException.class)\n public void nullByteArrayTest() throws DigestException, UnsupportedEncodingException {\n cryptoUtils.toDigest((byte[]) null);\n }", "class_method_signature": "CryptoUtilsTest.nullByteArrayTest()", "constructor": false, "full_signature": "@Te...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_57
{ "fields": [ { "declarator": "tooLong = false", "modifier": "private", "original_string": "private boolean tooLong = false;", "type": "boolean", "var_name": "tooLong" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/LengthLimitedVectorTest.java", "identifier": "L...
{ "body": "@Test\n public void testAddElement() {\n System.out.println(\"addElement\");\n LengthLimitedVector instance = new LengthLimitedVector(3) {\n protected void lengthExceeded(Object extra) {\n tooLong = true;\n }\n };\n instance.addElement(\"a...
{ "fields": [ { "declarator": "maxLength", "modifier": "private", "original_string": "private int maxLength;", "type": "int", "var_name": "maxLength" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/LengthLimitedVector.java", "identifier": "LengthLimitedVector", ...
{ "body": "public synchronized void addElement(final Object o) {\n if (maxLength == 0) {\n throw new IllegalArgumentException(\"Max length of LRU vector is currently 0, can not add: \" + o);\n }\n\n super.addElement(o);\n\n if (size() > maxLength) {\n final Object ext...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_16
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void uudecodeOneChar() throws UnsupportedEncodingException, IOException {\n System.out.println(\"oneChar \" + oneChar + \" - length=\" + oneChar.length() + \" - \" + Integer.toHexString(oneChar.charAt(0)) + \" - \" + Integer.toBinaryString(oneChar.charAt(0)));\n char decoded...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_41
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeHindi() throws IOException {\n assertEquals(\"%E0%A4%AE%E0%A5%81%E0%A4%9D%E0%A5%87+%E0%A4%A6%E0%A5%8B+%E0%A4%95%E0%A4%AE%E0%A4%B0%E0%A4%BE+%E0%A4%9A%E0%A4%BE%E0%A4%B9%E0%A4%BF%E0%A4%8F\", StringUtils.urlEncode(\"मुझे दो कमरा चाहिए\"));\n }", "class_method_signatu...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_36
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeVietnamese() throws IOException {\n assertEquals(\"ch%E1%BB%AF+H%C3%A1n\", StringUtils.urlEncode(\"chữ Hán\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeVietnamese()", "constructor": false, "full_signature": "@Test public void urlEncodeVietna...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_61
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test\n public void testPut() {\n System.out.println(\"put\");\n WeakHashCache instance = new WeakHashCache();\n String key1 = \"\";\n String key2 = \"a\";\n String expectedVal1 = \"fruit\";\n instance.put(key1, expectedVal1);\n instance.put(key2, \"cake\...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized void put(final Object key, final Object value) {\n if (key == null) {\n throw new NullPointerException(\"null key put to WeakHashCache\");\n }\n if (value == null) {\n throw new IllegalArgumentException(\"null value put to WeakHashCache\");\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_20
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void threeByteEncode() throws UnsupportedEncodingException, IOException {\n String threeByteString = new String(threeByteArray, \"UTF-8\");\n assertEquals(threeByteEncoded, StringUtils.urlEncode(threeByteString));\n }", "class_method_signature": "StringUtilsTest.threeBy...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_3
{ "fields": [ { "declarator": "mockedRmsUtils", "modifier": "", "original_string": "RMSUtils mockedRmsUtils;", "type": "RMSUtils", "var_name": "mockedRmsUtils" }, { "declarator": "mockedKeyRS", "modifier": "", "original_string": "RecordStore mockedKeyRS;", ...
{ "body": "@Test(expected = NullPointerException.class)\n public void nullPointerExceptionThrownWhenPutNullKey() throws DigestException, FlashDatabaseException {\n rmsFastCache.put(null, new byte[16]);\n }", "class_method_signature": "RMSFastCacheTest.nullPointerExceptionThrownWhenPutNullKey()", "con...
{ "fields": [ { "declarator": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000", "modifier": "private static final", "original_string": "private static final int SLEEP_TIME_DURING_CLOSE_OPEN_RMS = 1000;", "type": "int", "var_name": "SLEEP_TIME_DURING_CLOSE_OPEN_RMS" }, { "decla...
{ "body": "public void put(final String key, final byte[] value) throws DigestException, FlashFullException, FlashDatabaseException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to put a null key to the cache\");\n }\n if (value == null) {\n throw n...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_35
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeSimplifiedChinese() throws IOException {\n assertEquals(\"%E6%B1%89%E5%AD%97\", StringUtils.urlEncode(\"汉字\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeSimplifiedChinese()", "constructor": false, "full_signature": "@Test public void urlEncod...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_62
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testPutNullValue() {\n WeakHashCache instance = new WeakHashCache();\n instance.put(\"aKey\", null);\n }", "class_method_signature": "WeakHashCacheTest.testPutNullValue()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized void put(final Object key, final Object value) {\n if (key == null) {\n throw new NullPointerException(\"null key put to WeakHashCache\");\n }\n if (value == null) {\n throw new IllegalArgumentException(\"null value put to WeakHashCache\");\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_74
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/TaskTest.java", "identifier": "TaskTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Ignore\n @Test\n public void onCanceledTest() {\n System.out.println(\"onCanceled\");\n final Vector v = new Vector();\n v.addElement(\"Dummy\");\n final Task instance = new Task(Task.HIGH_PRIORITY) {\n @Override\n protected Object exec(Object in) {\...
{ "fields": [ { "declarator": "DEDICATED_THREAD_PRIORITY = 9", "modifier": "public static final", "original_string": "public static final int DEDICATED_THREAD_PRIORITY = 9;", "type": "int", "var_name": "DEDICATED_THREAD_PRIORITY" }, { "declarator": "UI_PRIORITY = 8", ...
{ "body": "protected void onCanceled(final String reason) {\n //#debug\n L.i(this, \"default Task.onCanceled() - this method was not overridden: cancellationReason=\" + reason, this.toString());\n }", "class_method_signature": "Task.onCanceled(final String reason)", "constructor": false, "full_...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_23
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void oneByteDecode() throws UnsupportedEncodingException, IOException {\n String oneByteString = new String(oneByteArray, \"UTF-8\");\n assertEquals(oneByteString, StringUtils.urlDecode(oneByteEncoded));\n }", "class_method_signature": "StringUtilsTest.oneByteDecode()",...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_58
{ "fields": [ { "declarator": "tooLong = false", "modifier": "private", "original_string": "private boolean tooLong = false;", "type": "boolean", "var_name": "tooLong" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/LengthLimitedVectorTest.java", "identifier": "L...
{ "body": "@Test\n public void testLengthExceeded() {\n System.out.println(\"lengthExceeded\");\n LengthLimitedVector instance = new LengthLimitedVector(3) {\n protected void lengthExceeded(Object o) {\n }\n };\n instance.addElement(\"a\");\n instance.addEle...
{ "fields": [ { "declarator": "maxLength", "modifier": "private", "original_string": "private int maxLength;", "type": "int", "var_name": "maxLength" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/LengthLimitedVector.java", "identifier": "LengthLimitedVector", ...
{ "body": "protected abstract void lengthExceeded(Object extra);", "class_method_signature": "LengthLimitedVector.lengthExceeded(Object extra)", "constructor": false, "full_signature": "protected abstract void lengthExceeded(Object extra)", "identifier": "lengthExceeded", "invocations": [], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_19
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void threeByteDecode() throws UnsupportedEncodingException, IOException {\n String fourByteString = new String(threeByteArray, \"UTF-8\");\n assertEquals(fourByteString, StringUtils.urlDecode(threeByteEncoded));\n }", "class_method_signature": "StringUtilsTest.threeByte...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_0
{ "fields": [ { "declarator": "keyUtils", "modifier": "", "original_string": "RMSKeyUtils keyUtils;", "type": "RMSKeyUtils", "var_name": "keyUtils" } ], "file": "TantalumJME/src/test/java/org/tantalum/jme/RMSKeyUtilsTest.java", "identifier": "RMSKeyUtilsTest", "interfaces...
{ "body": "@Test\n public void valueIndexValuesCanStoreEntireIntegerRange() {\n long one = 1;\n long previous = 0;\n\n for (int bits = 0; bits < 32; bits++) {\n long shifted = one << bits;\n assertTrue(\"Overflow when shifting long. Previous value: \" + previous + \" now:...
{ "fields": [], "file": "TantalumJME/src/main/java/org/tantalum/jme/RMSKeyUtils.java", "identifier": "RMSKeyUtils", "interfaces": "", "methods": [ { "class_method_signature": "RMSKeyUtils.toIndexHash(final int keyIndex, final int valueIndex)", "constructor": false, "full_signature": " Lo...
{ "body": "int toValueIndex(final Long hashValue) {\n return (int) (hashValue.longValue() & 0xFFFFFFFF);\n }", "class_method_signature": "RMSKeyUtils.toValueIndex(final Long hashValue)", "constructor": false, "full_signature": " int toValueIndex(final Long hashValue)", "identifier": "toValueIndex", ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_39
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeKoreanHanja() throws IOException {\n assertEquals(\"%E6%BC%A2%E5%AD%97\", StringUtils.urlEncode(\"漢字\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeKoreanHanja()", "constructor": false, "full_signature": "@Test public void urlEncodeKoreanHanja...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_54
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test\n public void spaceIsNotEqualEmptyStringTest() throws DigestException, UnsupportedEncodingException {\n assertNotEquals(cryptoUtils.toDigest(\" \"), cryptoUtils.toDigest(\"\"));\n }", "class_method_signature": "CryptoUtilsTest.spaceIsNotEqualEmptyStringTest()", "constructor": false, ...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_15
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void uudecode() throws UnsupportedEncodingException, IOException {\n assertEquals(roundTripConversionTest, StringUtils.urlDecode(urlDecodeConversionTest));\n }", "class_method_signature": "StringUtilsTest.uudecode()", "constructor": false, "full_signature": "@Test public v...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_42
{ "fields": [ { "declarator": "collection", "modifier": "private", "original_string": "private SortedVector collection;", "type": "SortedVector", "var_name": "collection" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/SortedVectorTest.java", "identifier": "Sorte...
{ "body": "@Test\n public void collectionMaintainsSortOrder() {\n collection.addElement(2);\n collection.addElement(1);\n\n assertEquals(1, collection.firstElement());\n assertEquals(2, collection.lastElement());\n }", "class_method_signature": "SortedVectorTest.collectionMaintains...
{ "fields": [ { "declarator": "comparator", "modifier": "private final", "original_string": "private final Comparator comparator;", "type": "Comparator", "var_name": "comparator" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/SortedVector.java", "identifier": "S...
{ "body": "public synchronized void addElement(final Object o) {\n int insertIndex = size(); /* Future index of o in the SortedVector? */\n /* Finding the index */\n for (int i = size() - 1; i >= 0; i--) {\n if (comparator.compare(o, elementAt(i)) < 0) {\n insertIndex--;...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_43
{ "fields": [ { "declarator": "collection", "modifier": "private", "original_string": "private SortedVector collection;", "type": "SortedVector", "var_name": "collection" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/SortedVectorTest.java", "identifier": "Sorte...
{ "body": "@Test\n public void duplicatesAreAllowed() {\n Integer one = new Integer(1);\n Integer two = new Integer(1);\n\n assertNotSame(one, two);\n assertEquals(one, two);\n\n collection.addElement(one);\n collection.addElement(two);\n\n assertEquals(2, collectio...
{ "fields": [ { "declarator": "comparator", "modifier": "private final", "original_string": "private final Comparator comparator;", "type": "Comparator", "var_name": "comparator" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/SortedVector.java", "identifier": "S...
{ "body": "public synchronized void addElement(final Object o) {\n int insertIndex = size(); /* Future index of o in the SortedVector? */\n /* Finding the index */\n for (int i = size() - 1; i >= 0; i--) {\n if (comparator.compare(o, elementAt(i)) < 0) {\n insertIndex--;...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_14
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void sampleHexStringAsBytes() {\n assertEquals(sampleAsHex, StringUtils.byteArrayToHexString(sampleAsBytes));\n }", "class_method_signature": "StringUtilsTest.sampleHexStringAsBytes()", "constructor": false, "full_signature": "@Test public void sampleHexStringAsBytes()", ...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String byteArrayToHexString(final byte[] bytes) {\n final StringBuffer sb = new StringBuffer(bytes.length * 2);\n\n for (int i = 0; i < bytes.length; i++) {\n appendHex(bytes[i], sb);\n }\n\n return sb.toString();\n }", "class_method_signature": "St...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_55
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test(expected = NullPointerException.class)\n public void nullStringTest() throws DigestException, UnsupportedEncodingException {\n cryptoUtils.toDigest((String) null);\n }", "class_method_signature": "CryptoUtilsTest.nullStringTest()", "constructor": false, "full_signature": "@Test(exp...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_38
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeKoreanHangul() throws IOException {\n assertEquals(\"%ED%95%9C%EC%9E%90\", StringUtils.urlEncode(\"한자\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeKoreanHangul()", "constructor": false, "full_signature": "@Test public void urlEncodeKoreanHan...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_1
{ "fields": [ { "declarator": "keyUtils", "modifier": "", "original_string": "RMSKeyUtils keyUtils;", "type": "RMSKeyUtils", "var_name": "keyUtils" } ], "file": "TantalumJME/src/test/java/org/tantalum/jme/RMSKeyUtilsTest.java", "identifier": "RMSKeyUtilsTest", "interfaces...
{ "body": "@Test\n public void keyIndexValuesCanStoreEntireIntegerRange() {\n final int bitsInInteger = 32;\n final long one = 1;\n\n for (int bits = 0; bits < bitsInInteger; bits++) {\n final int keyIntegerValue = (int)(one << bits);\n final long shiftedLong = one << (bi...
{ "fields": [], "file": "TantalumJME/src/main/java/org/tantalum/jme/RMSKeyUtils.java", "identifier": "RMSKeyUtils", "interfaces": "", "methods": [ { "class_method_signature": "RMSKeyUtils.toIndexHash(final int keyIndex, final int valueIndex)", "constructor": false, "full_signature": " Lo...
{ "body": "int toKeyIndex(final Long hashValue) {\n return (int) ((hashValue.longValue() >>> 32) & 0xFFFFFFFF);\n }", "class_method_signature": "RMSKeyUtils.toKeyIndex(final Long hashValue)", "constructor": false, "full_signature": " int toKeyIndex(final Long hashValue)", "identifier": "toKeyIndex",...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_18
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Ignore\n @Test\n public void fourByteEncode() throws UnsupportedEncodingException, IOException {\n String fourByteString = new String(fourByteArray, \"UTF-8\");\n assertEquals(fourByteEncoded, StringUtils.urlEncode(fourByteString));\n }", "class_method_signature": "StringUtilsTest...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_59
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/util/RollingAverageTest.java", "identifier": "RollingAverageTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Test\n public void firstGet() {\n RollingAverage rollingAverage = new RollingAverage(10, 10.0f);\n assertEquals(10.f, rollingAverage.value(), 0.000001f);\n }", "class_method_signature": "RollingAverageTest.firstGet()", "constructor": false, "full_signature": "@Test public void fi...
{ "fields": [ { "declarator": "average", "modifier": "private", "original_string": "private float average;", "type": "float", "var_name": "average" }, { "declarator": "windowLength", "modifier": "private final", "original_string": "private final int windowLe...
{ "body": "public float value() {\n return average;\n }", "class_method_signature": "RollingAverage.value()", "constructor": false, "full_signature": "public float value()", "identifier": "value", "invocations": [], "modifiers": "public", "parameters": "()", "return": "float", "signature":...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_22
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void twoByteEncode() throws UnsupportedEncodingException, IOException {\n String twoByteString = new String(twoByteArray, \"UTF-8\");\n assertEquals(twoByteEncoded, StringUtils.urlEncode(twoByteString));\n }", "class_method_signature": "StringUtilsTest.twoByteEncode()",...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_63
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test(expected = NullPointerException.class)\n public void testPutNullKey() {\n WeakHashCache instance = new WeakHashCache();\n instance.put(null, \"aValue\");\n }", "class_method_signature": "WeakHashCacheTest.testPutNullKey()", "constructor": false, "full_signature": "@Test(expe...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized void put(final Object key, final Object value) {\n if (key == null) {\n throw new NullPointerException(\"null key put to WeakHashCache\");\n }\n if (value == null) {\n throw new IllegalArgumentException(\"null value put to WeakHashCache\");\n ...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_34
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlEncodeTraditionalChinese() throws IOException {\n assertEquals(\"%E6%BC%A2%E5%AD%97\", StringUtils.urlEncode(\"漢字\"));\n }", "class_method_signature": "StringUtilsTest.urlEncodeTraditionalChinese()", "constructor": false, "full_signature": "@Test public void urlEnc...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_68
{ "fields": [ { "declarator": "SAMPLE_DATA = \"{\\n\"\n + \" \\\"glossary\\\": {\\n\"\n + \" \\\"title\\\": \\\"example glossary\\\",\\n\"\n + \"\t\t\\\"GlossDiv\\\": {\\n\"\n + \" \\\"title\\\": \\\"S\\\",\\n\"\n + \"\t\t\t\\\"Glos...
{ "body": "@Test\n public void basicModelTest() throws JSONException {\n JSONModel model = new JSONModel();\n model.setJSON(SAMPLE_DATA);\n }", "class_method_signature": "JSONModelTest.basicModelTest()", "constructor": false, "full_signature": "@Test public void basicModelTest()", "identif...
{ "fields": [ { "declarator": "jsonObject = new JSONObject()", "modifier": "private", "original_string": "private JSONObject jsonObject = new JSONObject();", "type": "JSONObject", "var_name": "jsonObject" } ], "file": "TantalumCore/src/main/java/org/tantalum/net/json/JSONMode...
{ "body": "public synchronized void setJSON(final String json) throws JSONException {\n if (json == null) {\n throw new NullPointerException(\"Can not setJSON(null): \" + this);\n }\n jsonObject = new JSONObject(json);\n }", "class_method_signature": "JSONModel.setJSON(final Strin...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_29
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlDecodeSpaces() throws IOException {\n assertEquals(\" \", StringUtils.urlDecode(\"+%20\"));\n }", "class_method_signature": "StringUtilsTest.urlDecodeSpaces()", "constructor": false, "full_signature": "@Test public void urlDecodeSpaces()", "identifier": "urlDeco...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_52
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test\n public void magicValueTest() throws DigestException, UnsupportedEncodingException {\n assertEquals(1683574533465955905l, cryptoUtils.toDigest(imageUrl3));\n }", "class_method_signature": "CryptoUtilsTest.magicValueTest()", "constructor": false, "full_signature": "@Test public voi...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_13
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void illegalCharsInHexStringSecondPosition() {\n StringUtils.hexStringToByteArray(\"FZ\");\n }", "class_method_signature": "StringUtilsTest.illegalCharsInHexStringSecondPosition()", "constructor": false, "full_signature": "@Test(e...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static byte[] hexStringToByteArray(final String s) {\n if (s == null) {\n throw new NullPointerException(\"hexStringToByteArray was pass null string\");\n }\n \n final int n = s.length();\n if (n % 2 != 0) {\n throw new IllegalArgumentExceptio...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_44
{ "fields": [ { "declarator": "collection", "modifier": "private", "original_string": "private SortedVector collection;", "type": "SortedVector", "var_name": "collection" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/SortedVectorTest.java", "identifier": "Sorte...
{ "body": "@Test\n public void integerSequenceOrderIsCorrectTest() {\n Object o_1 = new Integer(10);\n Object o_2 = new Integer(20);\n Object o_3 = new Integer(50);\n Object o_4 = new Integer(40);\n Object o_5 = new Integer(30);\n\n System.out.println(\"Collection now \" +...
{ "fields": [ { "declarator": "comparator", "modifier": "private final", "original_string": "private final Comparator comparator;", "type": "Comparator", "var_name": "comparator" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/SortedVector.java", "identifier": "S...
{ "body": "public synchronized void addElement(final Object o) {\n int insertIndex = size(); /* Future index of o in the SortedVector? */\n /* Finding the index */\n for (int i = size() - 1; i >= 0; i--) {\n if (comparator.compare(o, elementAt(i)) < 0) {\n insertIndex--;...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_33
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void testReadBytesFromJAR() throws Exception {\n //ClassLoader classLoader = this.getClass()\n // JSE classloader to verify the length of the file, rather than using a magic number\n InputStream stream = getClass().getResourceAsStream(EXAMPLE_FILE_NAME);\n\n as...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static byte[] readBytesFromJAR(final String name) throws IOException {\n return StringUtilsHolder.instance.doReadBytesFromJAR(name);\n }", "class_method_signature": "StringUtils.readBytesFromJAR(final String name)", "constructor": false, "full_signature": "public static byte[] readBy...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_64
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test\n public void testGet() {\n System.out.println(\"get\");\n WeakHashCache instance = new WeakHashCache();\n String key1 = \"11\";\n String key2 = \"22\";\n Object value1 = \"chocolate\";\n Object value2 = \"cake\";\n Object result_1 = instance.get(ke...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized Object get(final Object key) {\n if (key == null) {\n throw new NullPointerException(\"Attempt to get(null) from WeakHashCache\");\n }\n\n final WeakReference reference = (WeakReference) hash.get(key);\n\n if (reference == null) {\n retu...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_72
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/TaskTest.java", "identifier": "TaskTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Test\n public void testFork() {\n System.out.println(\"fork\");\n Task instance = new Task(Task.FASTLANE_PRIORITY) {\n protected Object exec(Object in) {\n return \"run\";\n }\n };\n Task result_1 = instance.fork();\n assertEquals(...
{ "fields": [ { "declarator": "DEDICATED_THREAD_PRIORITY = 9", "modifier": "public static final", "original_string": "public static final int DEDICATED_THREAD_PRIORITY = 9;", "type": "int", "var_name": "DEDICATED_THREAD_PRIORITY" }, { "declarator": "UI_PRIORITY = 8", ...
{ "body": "public final Task fork() {\n return Worker.fork(this);\n }", "class_method_signature": "Task.fork()", "constructor": false, "full_signature": "public final Task fork()", "identifier": "fork", "invocations": [ "fork" ], "modifiers": "public final", "parameters": "()", "return...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_25
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void toHexTestFF00() {\n assertEquals(\"FF00\", StringUtils.byteArrayToHexString(byteTest1));\n }", "class_method_signature": "StringUtilsTest.toHexTestFF00()", "constructor": false, "full_signature": "@Test public void toHexTestFF00()", "identifier": "toHexTestFF00", ...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String byteArrayToHexString(final byte[] bytes) {\n final StringBuffer sb = new StringBuffer(bytes.length * 2);\n\n for (int i = 0; i < bytes.length; i++) {\n appendHex(bytes[i], sb);\n }\n\n return sb.toString();\n }", "class_method_signature": "St...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_48
{ "fields": [ { "declarator": "collection", "modifier": "private", "original_string": "private SortedVector collection;", "type": "SortedVector", "var_name": "collection" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/SortedVectorTest.java", "identifier": "Sorte...
{ "body": "@Test\n public void sequenceTest() {\n System.out.println(\"testSequence\");\n SortedVector instance = new SortedVector(new Comparator() {\n public int compare(Object o1, Object o2) {\n return ((Integer) o1).intValue() - ((Integer) o2).intValue();\n }\n...
{ "fields": [ { "declarator": "comparator", "modifier": "private final", "original_string": "private final Comparator comparator;", "type": "Comparator", "var_name": "comparator" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/SortedVector.java", "identifier": "S...
{ "body": "public synchronized void addElement(final Object o) {\n int insertIndex = size(); /* Future index of o in the SortedVector? */\n /* Finding the index */\n for (int i = size() - 1; i >= 0; i--) {\n if (comparator.compare(o, elementAt(i)) < 0) {\n insertIndex--;...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_6
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/util/LRUVectorTest.java", "identifier": "LRUVectorTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Test\n public void testSetElementAt() {\n System.out.println(\"setElementAt\");\n LRUVector instance = new LRUVector();\n Object o_1 = null;\n int index_1 = 0;\n try {\n instance.setElementAt(o_1, index_1);\n } catch (IllegalArgumentException e) {\n ...
{ "fields": [], "file": "TantalumCore/src/main/java/org/tantalum/util/LRUVector.java", "identifier": "LRUVector", "interfaces": "", "methods": [ { "class_method_signature": "LRUVector.LRUVector()", "constructor": true, "full_signature": "public LRUVector()", "identifier": "LRUVect...
{ "body": "public void setElementAt(Object o, int index) {\n throw new IllegalArgumentException(\"setElementAt() not allowed on LRUVector\");\n }", "class_method_signature": "LRUVector.setElementAt(Object o, int index)", "constructor": false, "full_signature": "public void setElementAt(Object o, int i...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_49
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test\n public void boodleLongsAreNotTheSameTest() throws DigestException, UnsupportedEncodingException {\n assertNotEquals(\"boodle is not a url\", cryptoUtils.toDigest(imageUrl1), cryptoUtils.toDigest(boodle));\n }", "class_method_signature": "CryptoUtilsTest.boodleLongsAreNotTheSameTest()...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_7
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/util/LRUVectorTest.java", "identifier": "LRUVectorTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Test\n public void testInsertElementAt() {\n System.out.println(\"setElementAt\");\n LRUVector instance = new LRUVector();\n Object o_1 = null;\n int index_1 = 0;\n try {\n instance.insertElementAt(o_1, index_1);\n } catch (IllegalArgumentException e...
{ "fields": [], "file": "TantalumCore/src/main/java/org/tantalum/util/LRUVector.java", "identifier": "LRUVector", "interfaces": "", "methods": [ { "class_method_signature": "LRUVector.LRUVector()", "constructor": true, "full_signature": "public LRUVector()", "identifier": "LRUVect...
{ "body": "public void insertElementAt(Object o, int index) {\n throw new IllegalArgumentException(\"insertElementAt() not allowed on LRUVector\");\n }", "class_method_signature": "LRUVector.insertElementAt(Object o, int index)", "constructor": false, "full_signature": "public void insertElementAt(Obj...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_24
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void oneByteEncode() throws UnsupportedEncodingException, IOException {\n String oneByteString = new String(oneByteArray, \"UTF-8\");\n assertEquals(oneByteEncoded, StringUtils.urlEncode(oneByteString));\n }", "class_method_signature": "StringUtilsTest.oneByteEncode()",...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlEncode(final String s) throws IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlEncode null string\");\n }\n if (s.length() == 0) {\n return s;\n }\n\n final ByteArrayInputStream bIn;\n fina...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_73
{ "fields": [], "file": "TantalumCore/src/test/java/org/tantalum/TaskTest.java", "identifier": "TaskTest", "interfaces": "", "superclass": "extends MockedStaticInitializers" }
{ "body": "@Test(expected = TimeoutException.class)\n public void taskTimesOutIfJoinedBeforeFork() throws CancellationException, TimeoutException {\n Task instance = new Task(Task.FASTLANE_PRIORITY, \"white\") {\n protected Object exec(Object in) {\n System.out.println(\"Executing ...
{ "fields": [ { "declarator": "DEDICATED_THREAD_PRIORITY = 9", "modifier": "public static final", "original_string": "public static final int DEDICATED_THREAD_PRIORITY = 9;", "type": "int", "var_name": "DEDICATED_THREAD_PRIORITY" }, { "declarator": "UI_PRIORITY = 8", ...
{ "body": "public final Object join() throws CancellationException, TimeoutException {\n return join(MAX_TIMEOUT);\n }", "class_method_signature": "Task.join()", "constructor": false, "full_signature": "public final Object join()", "identifier": "join", "invocations": [ "join" ], "modifier...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_65
{ "fields": [ { "declarator": "KEY_CONSTANT = \"keykeykey\"", "modifier": "final", "original_string": "final String KEY_CONSTANT = \"keykeykey\";", "type": "String", "var_name": "KEY_CONSTANT" }, { "declarator": "VALUE_CONSTANT = \"valvalval\"", "modifier": "final...
{ "body": "@Test\n public void testContainsKey() {\n System.out.println(\"containsKey\");\n WeakHashCache instance = new WeakHashCache();\n String key1 = \"11\";\n String key2 = \"22\";\n Object value1 = \"chocolate\";\n Object value2 = \"cake\";\n instance.put(key1...
{ "fields": [ { "declarator": "NULL_WEAK_REFERENCE = new WeakReference(null)", "modifier": "private final static", "original_string": "private final static WeakReference NULL_WEAK_REFERENCE = new WeakReference(null);", "type": "WeakReference", "var_name": "NULL_WEAK_REFERENCE" },...
{ "body": "public synchronized boolean containsKey(final Object key) {\n if (key == null) {\n throw new NullPointerException(\"containsKey() with null key\");\n }\n\n return hash.containsKey(key);\n }", "class_method_signature": "WeakHashCache.containsKey(final Object key)", "co...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_32
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void testReadStringFromJAR() throws Exception {\n String name_1 = \"/test.txt\";\n String expResult_1 = \"Hello, this is test text\";\n String result_1 = StringUtils.readStringFromJAR(name_1);\n assertEquals(expResult_1, result_1);\n }", "class_method_sign...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String readStringFromJAR(final String name) throws IOException {\n return readStringFromJAR(name, \"UTF-8\");\n }", "class_method_signature": "StringUtils.readStringFromJAR(final String name)", "constructor": false, "full_signature": "public static String readStringFromJAR(fin...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_45
{ "fields": [ { "declarator": "collection", "modifier": "private", "original_string": "private SortedVector collection;", "type": "SortedVector", "var_name": "collection" } ], "file": "TantalumCore/src/test/java/org/tantalum/util/SortedVectorTest.java", "identifier": "Sorte...
{ "body": "@Test\n public void insertElementAtTest() {\n System.out.println(\"insertElementAt\");\n SortedVector instance = new SortedVector(new Comparator() {\n public int compare(Object o1, Object o2) {\n return ((Integer) o1).intValue() - ((Integer) o2).intValue();\n ...
{ "fields": [ { "declarator": "comparator", "modifier": "private final", "original_string": "private final Comparator comparator;", "type": "Comparator", "var_name": "comparator" } ], "file": "TantalumCore/src/main/java/org/tantalum/util/SortedVector.java", "identifier": "S...
{ "body": "public final void insertElementAt(Object o, int index) {\n throw new IllegalArgumentException(\"insertElementAt() not supported\");\n }", "class_method_signature": "SortedVector.insertElementAt(Object o, int index)", "constructor": false, "full_signature": "public final void insertElementAt...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_12
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void illegalCharsInHexStringFirstPosition() {\n StringUtils.hexStringToByteArray(\"QF\");\n }", "class_method_signature": "StringUtilsTest.illegalCharsInHexStringFirstPosition()", "constructor": false, "full_signature": "@Test(exp...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static byte[] hexStringToByteArray(final String s) {\n if (s == null) {\n throw new NullPointerException(\"hexStringToByteArray was pass null string\");\n }\n \n final int n = s.length();\n if (n % 2 != 0) {\n throw new IllegalArgumentExceptio...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_53
{ "fields": [ { "declarator": "imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/maptile/newest/normal.day/11/1099/675/128/png8?app_id=Db84BEVKmbJGsBiRR_RJ&token=FzPD8qiiOKt9ZDmy7jCtEQ&\"", "modifier": "", "original_string": "String imageUrl1 = \"http://1.maps.nlp.nokia.com/maptile/2.1/mapti...
{ "body": "@Test\n public void magicValuesAreNotTheSameTest() throws DigestException, UnsupportedEncodingException {\n assertNotEquals(cryptoUtils.toDigest(imageUrl1), cryptoUtils.toDigest(imageUrl3));\n }", "class_method_signature": "CryptoUtilsTest.magicValuesAreNotTheSameTest()", "constructor": fa...
{ "fields": [ { "declarator": "DIGEST_LENGTH = 16", "modifier": "public static final", "original_string": "public static final int DIGEST_LENGTH = 16;", "type": "int", "var_name": "DIGEST_LENGTH" }, { "declarator": "LONG_LENGTH_IN_BYTES = 8", "modifier": "private ...
{ "body": "public synchronized long toDigest(final String key) throws DigestException, UnsupportedEncodingException {\n if (key == null) {\n throw new NullPointerException(\"You attempted to convert a null string into a hash digest\");\n }\n \n final byte[] bytes = key.getBytes(...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_28
{ "fields": [ { "declarator": "EXAMPLE_FILE_NAME = \"/rss.xml\"", "modifier": "static final", "original_string": "static final String EXAMPLE_FILE_NAME = \"/rss.xml\";", "type": "String", "var_name": "EXAMPLE_FILE_NAME" }, { "declarator": "intTest1 = {0xFF, 0x00}", ...
{ "body": "@Test\n public void urlDecodeSimple() throws IOException {\n assertEquals(\"This+is a simple & short test.\", StringUtils.urlDecode(\"This%2Bis+a+simple+%26+short+test.\"));\n }", "class_method_signature": "StringUtilsTest.urlDecodeSimple()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "HEX_CHARS = \"0123456789ABCDEF\".toCharArray()", "modifier": "private final static", "original_string": "private final static char[] HEX_CHARS = \"0123456789ABCDEF\".toCharArray();", "type": "char[]", "var_name": "HEX_CHARS" } ], "file": "Tantal...
{ "body": "public static String urlDecode(final String s) throws UnsupportedEncodingException, IOException {\n if (s == null) {\n throw new NullPointerException(\"Can not urlDecode null string\");\n }\n final int n = s.length();\n final StringBuffer sb = new StringBuffer(n * 2);...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
8648747_69
{ "fields": [ { "declarator": "SAMPLE_DATA = \"{\\n\"\n + \" \\\"glossary\\\": {\\n\"\n + \" \\\"title\\\": \\\"example glossary\\\",\\n\"\n + \"\t\t\\\"GlossDiv\\\": {\\n\"\n + \" \\\"title\\\": \\\"S\\\",\\n\"\n + \"\t\t\t\\\"Glos...
{ "body": "@Test\n public void oddParsingOfTheModel() throws IOException, JSONException {\n final JSONModel jsonModel = new JSONModel();\n jsonModel.setJSON(SAMPLE_DATA);\n }", "class_method_signature": "JSONModelTest.oddParsingOfTheModel()", "constructor": false, "full_signature": "@Test pu...
{ "fields": [ { "declarator": "jsonObject = new JSONObject()", "modifier": "private", "original_string": "private JSONObject jsonObject = new JSONObject();", "type": "JSONObject", "var_name": "jsonObject" } ], "file": "TantalumCore/src/main/java/org/tantalum/net/json/JSONMode...
{ "body": "public synchronized void setJSON(final String json) throws JSONException {\n if (json == null) {\n throw new NullPointerException(\"Can not setJSON(null): \" + this);\n }\n jsonObject = new JSONObject(json);\n }", "class_method_signature": "JSONModel.setJSON(final Strin...
{ "created": null, "fork": null, "fork_count": 7, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 8648747, "size": 116403, "stargazer_count": 13, "stars": null, "updates": null, "url": "https://github.com/TantalumMobile/Tantalum" }
88777477_23
{ "fields": [], "file": "nitrite/src/test/java/org/dizitart/no2/mapper/MappableMapperTest.java", "identifier": "MappableMapperTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConvertToDocument4() {\n Class<?> forNameResult = Object.class;\n Class<?> forNameResult1 = Object.class;\n MappableMapper mappableMapper = new MappableMapper(forNameResult, forNameResult1, Object.class);\n assertEquals(3, mappableMapper.<Object>conver...
{ "fields": [ { "declarator": "valueTypes", "modifier": "private final", "original_string": "private final Set<Class<?>> valueTypes;", "type": "Set<Class<?>>", "var_name": "valueTypes" } ], "file": "nitrite/src/main/java/org/dizitart/no2/mapper/MappableMapper.java", "identi...
{ "body": "protected <Source> Document convertToDocument(Source source) {\n if (source instanceof Mappable) {\n Mappable mappable = (Mappable) source;\n return mappable.write(this);\n }\n\n throw new ObjectMappingException(\"object must implements Mappable\");\n }", "cl...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...
88777477_154
{ "fields": [], "file": "nitrite/src/test/java/org/dizitart/no2/filters/EqualsFilterTest.java", "identifier": "EqualsFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testApply2() {\n EqualsFilter equalsFilter = new EqualsFilter(\"field\", \"value\");\n NitriteId first = NitriteId.newId();\n assertFalse(equalsFilter.apply(new Pair<NitriteId, Document>(first, Document.createDocument())));\n assertTrue(equalsFilter.getVal...
{ "fields": [], "file": "nitrite/src/main/java/org/dizitart/no2/filters/EqualsFilter.java", "identifier": "EqualsFilter", "interfaces": "", "methods": [ { "class_method_signature": "EqualsFilter.EqualsFilter(String field, Object value)", "constructor": true, "full_signature": " EqualsFi...
{ "body": "@Override\n public boolean apply(Pair<NitriteId, Document> element) {\n Document document = element.getSecond();\n Object fieldValue = document.get(getField());\n return deepEquals(fieldValue, getValue());\n }", "class_method_signature": "EqualsFilter.apply(Pair<NitriteId, Docu...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...
88777477_74
{ "fields": [], "file": "nitrite/src/test/java/org/dizitart/no2/store/memory/InMemoryMapTest.java", "identifier": "InMemoryMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLowerKey3() {\n assertNull((new InMemoryMap<Object, Object>(\"mapName\", null)).lowerKey(\"key\"));\n }", "class_method_signature": "InMemoryMapTest.testLowerKey3()", "constructor": false, "full_signature": "@Test public void testLowerKey3()", "identifier": "tes...
{ "fields": [ { "declarator": "backingMap", "modifier": "private final", "original_string": "private final NavigableMap<Key, Value> backingMap;", "type": "NavigableMap<Key, Value>", "var_name": "backingMap" }, { "declarator": "nullEntryMap", "modifier": "private f...
{ "body": "@Override\n public Key lowerKey(Key key) {\n if (key == null) {\n return null;\n }\n return backingMap.lowerKey(key);\n }", "class_method_signature": "InMemoryMap.lowerKey(Key key)", "constructor": false, "full_signature": "@Override public Key lowerKey(Key key)"...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...
88777477_103
{ "fields": [], "file": "nitrite/src/test/java/org/dizitart/no2/common/util/ObjectUtilsTest.java", "identifier": "ObjectUtilsTest", "interfaces": "implements Serializable", "superclass": "" }
{ "body": "@Test\n public void testDeepEquals4() {\n JUnit4TestAdapterCache o1 = new JUnit4TestAdapterCache();\n assertTrue(ObjectUtils.deepEquals(o1, new JUnit4TestAdapterCache()));\n }", "class_method_signature": "ObjectUtilsTest.testDeepEquals4()", "constructor": false, "full_signature": ...
{ "fields": [ { "declarator": "PRIMITIVE_TO_WRAPPER_TYPE", "modifier": "private static final", "original_string": "private static final Map<Class<?>, Class<?>> PRIMITIVE_TO_WRAPPER_TYPE;", "type": "Map<Class<?>, Class<?>>", "var_name": "PRIMITIVE_TO_WRAPPER_TYPE" }, { "...
{ "body": "@SuppressWarnings(\"rawtypes\")\n public static boolean deepEquals(Object o1, Object o2) {\n if (o1 == null && o2 == null) {\n return true;\n } else if (o1 == null || o2 == null) {\n return false;\n }\n\n if (o1 == o2) {\n // if reference equa...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...
88777477_62
{ "fields": [], "file": "nitrite/src/test/java/org/dizitart/no2/store/memory/InMemoryMapTest.java", "identifier": "InMemoryMapTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGet() {\n assertNull((new InMemoryMap<Object, Object>(\"mapName\", null)).get(\"key\"));\n }", "class_method_signature": "InMemoryMapTest.testGet()", "constructor": false, "full_signature": "@Test public void testGet()", "identifier": "testGet", "invocations":...
{ "fields": [ { "declarator": "backingMap", "modifier": "private final", "original_string": "private final NavigableMap<Key, Value> backingMap;", "type": "NavigableMap<Key, Value>", "var_name": "backingMap" }, { "declarator": "nullEntryMap", "modifier": "private f...
{ "body": "@Override\n public Value get(Key key) {\n if (key == null) {\n return nullEntryMap.get(NullEntry.getInstance());\n }\n return backingMap.get(key);\n }", "class_method_signature": "InMemoryMap.get(Key key)", "constructor": false, "full_signature": "@Override publi...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...
88777477_115
{ "fields": [ { "declarator": "x", "modifier": "@Parameterized.Parameter\n public", "original_string": "@Parameterized.Parameter\n public Number x;", "type": "Number", "var_name": "x" }, { "declarator": "y", "modifier": "@Parameterized.Parameter(value = 1)\n...
{ "body": "@Test\n public void testCompare() {\n assertEquals(compare(x, y), result);\n }", "class_method_signature": "NumbersTest.testCompare()", "constructor": false, "full_signature": "@Test public void testCompare()", "identifier": "testCompare", "invocations": [ "assertEquals", "co...
{ "fields": [], "file": "nitrite/src/main/java/org/dizitart/no2/common/util/Numbers.java", "identifier": "Numbers", "interfaces": "", "methods": [ { "class_method_signature": "Numbers.Numbers()", "constructor": true, "full_signature": "private Numbers()", "identifier": "Numbers", ...
{ "body": "public static int compare(Number x, Number y) {\n if (isSpecial(x) || isSpecial(y)) {\n return Double.compare(x.doubleValue(), y.doubleValue());\n } else {\n return toBigDecimal(x).compareTo(toBigDecimal(y));\n }\n }", "class_method_signature": "Numbers.compa...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...
88777477_35
{ "fields": [ { "declarator": "operations", "modifier": "private", "original_string": "private RepositoryOperations operations;", "type": "RepositoryOperations", "var_name": "operations" }, { "declarator": "db", "modifier": "private", "original_string": "pri...
{ "body": "@Test(expected = ValidationException.class)\n public void testGetFieldNoSuchField() {\n NitriteMapper nitriteMapper = db.getConfig().nitriteMapper();\n ObjectRepository<ClassWithAnnotatedFields> repository = db.getRepository(ClassWithAnnotatedFields.class);\n operations = new Reposi...
{ "fields": [ { "declarator": "nitriteMapper", "modifier": "private final", "original_string": "private final NitriteMapper nitriteMapper;", "type": "NitriteMapper", "var_name": "nitriteMapper" }, { "declarator": "type", "modifier": "private final", "origina...
{ "body": "<T> Field getField(Class<T> type, String name) {\n if (name.contains(NitriteConfig.getFieldSeparator())) {\n return getEmbeddedField(type, name);\n } else {\n // first check declared fields (fix for kotlin properties, ref: issue #54)\n // if nothing found and ...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...
88777477_142
{ "fields": [], "file": "nitrite/src/test/java/org/dizitart/no2/filters/FluentFilterTest.java", "identifier": "FluentFilterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNotEq() {\n assertFalse(((NotEqualsFilter) FluentFilter.where(\"field\").notEq(\"value\")).getOnIdField());\n assertTrue(((NotEqualsFilter) FluentFilter.where(\"field\").notEq(\"value\")).getValue() instanceof String);\n assertFalse(((NotEqualsFilter) FluentF...
{ "fields": [ { "declarator": "field", "modifier": "private", "original_string": "private String field;", "type": "String", "var_name": "field" } ], "file": "nitrite/src/main/java/org/dizitart/no2/filters/FluentFilter.java", "identifier": "FluentFilter", "interfaces": "",...
{ "body": "public Filter notEq(Object value) {\n return new NotEqualsFilter(field, value);\n }", "class_method_signature": "FluentFilter.notEq(Object value)", "constructor": false, "full_signature": "public Filter notEq(Object value)", "identifier": "notEq", "invocations": [], "modifiers": "publ...
{ "created": "4/19/2017 6:26:54 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 88777477, "size": null, "stargazer_count": null, "stars": 414, "updates": "2020-01-27T05:46:15+00:00", "url": "https://github.com/dizitart/nitrite...