id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
45334811_19
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePostUpdate() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PostUpdateHandler.class);...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void postUpdate(T t, PostUpdateContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PostUpdateEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.postUpdate(T t, PostUpdateContext<T> context)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_8
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/PageablesTest.java", "identifier": "PageablesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testToSelectOptions() throws Exception {\n\t\tSelectOptions options = Pageables.toSelectOptions(pageRequest(0, 10));\n\t\tassertThat(SelectOptionsAccessor.getOffset(options), is(0L));\n\t\tassertThat(SelectOptionsAccessor.getLimit(options), is(10L));\n\t}", "class_method_signature": ...
{ "fields": [], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Pageables.java", "identifier": "Pageables", "interfaces": "", "methods": [ { "class_method_signature": "Pageables.toSelectOptions(Pageable pageable)", "constructor": false, "full_signature": "public static ...
{ "body": "public static SelectOptions toSelectOptions(Pageable pageable) {\n\t\tfinal int offset = pageable.getPageNumber() * pageable.getPageSize();\n\t\tfinal int limit = pageable.getPageSize();\n\t\treturn SelectOptions.get().offset(offset).limit(limit);\n\t}", "class_method_signature": "Pageables.toSelectOptio...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_15
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePreDelete() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PreDeleteHandler.class);\n...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void preDelete(T t, PreDeleteContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreDeleteEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.preDelete(T t, PreDeleteContext<T> context)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_3
{ "fields": [ { "declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())", "modifier": "private final", "original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL...
{ "body": "@Test\n\tpublic void testThrowDuplicateKeyException() {\n\t\tDataAccessException dataAccessException = translator\n\t\t\t\t.translateExceptionIfPossible(new UniqueConstraintException(\n\t\t\t\t\t\tSqlLogType.FORMATTED,\n\t\t\t\t\t\tSqlKind.INSERT,\n\t\t\t\t\t\t\"insert into todo (todo_id, title) values (?,...
{ "fields": [ { "declarator": "translator", "modifier": "private final", "original_string": "private final SQLExceptionTranslator translator;", "type": "SQLExceptionTranslator", "var_name": "translator" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do...
{ "body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_24
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void springEventListener() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(SpringListener.class);...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void preInsert(T t, PreInsertContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreInsertEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.preInsert(T t, PreInsertContext<T> context)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_12
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePreInsertWithContext() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PreInsertHandle...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void preInsert(T t, PreInsertContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreInsertEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.preInsert(T t, PreInsertContext<T> context)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_13
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePreUpdate() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PreUpdateHandler.class);\n...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void preUpdate(T t, PreUpdateContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreUpdateEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.preUpdate(T t, PreUpdateContext<T> context)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_25
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void springConditionalEventListener() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(TodoListene...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void preInsert(T t, PreInsertContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreInsertEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.preInsert(T t, PreInsertContext<T> context)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_2
{ "fields": [ { "declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())", "modifier": "private final", "original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL...
{ "body": "@Test\n\tpublic void testThrowOptimisticLockingFailureException() {\n\t\tDataAccessException dataAccessException = translator\n\t\t\t\t.translateExceptionIfPossible(new OptimisticLockException(\n\t\t\t\t\t\tSqlLogType.FORMATTED,\n\t\t\t\t\t\tSqlKind.SELECT,\n\t\t\t\t\t\t\"update todo set title = ? where to...
{ "fields": [ { "declarator": "translator", "modifier": "private final", "original_string": "private final SQLExceptionTranslator translator;", "type": "SQLExceptionTranslator", "var_name": "translator" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do...
{ "body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_1
{ "fields": [ { "declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())", "modifier": "private final", "original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL...
{ "body": "@Test\n\tpublic void testOccurSqlExecutionException() {\n\t\tDataAccessException dataAccessException = translator\n\t\t\t\t.translateExceptionIfPossible(new SqlExecutionException(\n\t\t\t\t\t\tSqlLogType.FORMATTED, SqlKind.SELECT,\n\t\t\t\t\t\t\"select * from todo where todo_id = ?\",\n\t\t\t\t\t\t\"select...
{ "fields": [ { "declarator": "translator", "modifier": "private final", "original_string": "private final SQLExceptionTranslator translator;", "type": "SQLExceptionTranslator", "var_name": "translator" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do...
{ "body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_10
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/PageablesTest.java", "identifier": "PageablesTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testToSelectOptions3() throws Exception {\n\t\tSelectOptions options = Pageables.toSelectOptions(pageRequest(2, 5));\n\t\tassertThat(SelectOptionsAccessor.getOffset(options), is(10L));\n\t\tassertThat(SelectOptionsAccessor.getLimit(options), is(5L));\n\t}", "class_method_signature": ...
{ "fields": [], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Pageables.java", "identifier": "Pageables", "interfaces": "", "methods": [ { "class_method_signature": "Pageables.toSelectOptions(Pageable pageable)", "constructor": false, "full_signature": "public static ...
{ "body": "public static SelectOptions toSelectOptions(Pageable pageable) {\n\t\tfinal int offset = pageable.getPageNumber() * pageable.getPageSize();\n\t\tfinal int limit = pageable.getPageSize();\n\t\treturn SelectOptions.get().offset(offset).limit(limit);\n\t}", "class_method_signature": "Pageables.toSelectOptio...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_11
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePreInsert() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PreInsertHandler.class);\n...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void preInsert(T t, PreInsertContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreInsertEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.preInsert(T t, PreInsertContext<T> context)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_0
{ "fields": [ { "declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())", "modifier": "private final", "original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL...
{ "body": "@Test\n\tpublic void testOccurNotJdbcException() {\n\t\tDataAccessException dataAccessException = translator\n\t\t\t\t.translateExceptionIfPossible(new DomaException(Message.DOMA2008));\n\t\tassertThat(dataAccessException, nullValue());\n\t}", "class_method_signature": "DomaPersistenceExceptionTranslator...
{ "fields": [ { "declarator": "translator", "modifier": "private final", "original_string": "private final SQLExceptionTranslator translator;", "type": "SQLExceptionTranslator", "var_name": "translator" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do...
{ "body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_16
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePreDeleteWithContext() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PreDeleteHandle...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void preDelete(T t, PreDeleteContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PreDeleteEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.preDelete(T t, PreDeleteContext<T> context)", "constructor": false, "full_signature": "@Override pu...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_20
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePostUpdateWithContext() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PostUpdateHand...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void postUpdate(T t, PostUpdateContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PostUpdateEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.postUpdate(T t, PostUpdateContext<T> context)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_7
{ "fields": [ { "declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())", "modifier": "private final", "original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL...
{ "body": "@Test\n\tpublic void testThrowUncategorizedDataAccessException() {\n\t\tDataAccessException dataAccessException = translator\n\t\t\t\t.translateExceptionIfPossible(new ConfigException(\"DomaConfig\",\n\t\t\t\t\t\t\"configure\"));\n\t\tassertThat(dataAccessException,\n\t\t\t\tis(instanceOf(UncategorizedData...
{ "fields": [ { "declarator": "translator", "modifier": "private final", "original_string": "private final SQLExceptionTranslator translator;", "type": "SQLExceptionTranslator", "var_name": "translator" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do...
{ "body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_6
{ "fields": [ { "declarator": "translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQLExceptionSubclassTranslator())", "modifier": "private final", "original_string": "private final DomaPersistenceExceptionTranslator translator = new DomaPersistenceExceptionTranslator(\n\t\t\tnew SQL...
{ "body": "@Test\n\tpublic void testThrowTypeMismatchDataAccessException() {\n\t\t{\n\t\t\tDataAccessException dataAccessException = translator\n\t\t\t\t\t.translateExceptionIfPossible(new UnknownColumnException(\n\t\t\t\t\t\t\tSqlLogType.FORMATTED, \"todo_id\", \"todoId\", \"model.Todo\",\n\t\t\t\t\t\t\tSqlKind.SELE...
{ "fields": [ { "declarator": "translator", "modifier": "private final", "original_string": "private final SQLExceptionTranslator translator;", "type": "SQLExceptionTranslator", "var_name": "translator" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/boot/Do...
{ "body": "@Override\n\tpublic DataAccessException translateExceptionIfPossible(RuntimeException ex) {\n\t\tif (!(ex instanceof JdbcException)) {\n\t\t\t// Fallback to other translators if not JdbcException\n\t\t\treturn null;\n\t\t}\n\n\t\tif (ex instanceof OptimisticLockException) {\n\t\t\treturn new OptimisticLock...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_21
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePostDelete() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PostDeleteHandler.class);...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void postDelete(T t, PostDeleteContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PostDeleteEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.postDelete(T t, PostDeleteContext<T> context)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
45334811_17
{ "fields": [], "file": "doma-spring-boot-core/src/test/java/org/seasar/doma/boot/event/DomaEventEntityListenerTest.java", "identifier": "DomaEventEntityListenerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void handlePostInsert() throws Exception {\n\t\tAnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();\n\t\tcontext.register(DomaEventEntityListener.class);\n\t\tcontext.register(DomaEventListenerFactory.class);\n\t\tcontext.register(PostInsertHandler.class);...
{ "fields": [ { "declarator": "eventPublisher", "modifier": "private", "original_string": "private ApplicationEventPublisher eventPublisher;", "type": "ApplicationEventPublisher", "var_name": "eventPublisher" } ], "file": "doma-spring-boot-core/src/main/java/org/seasar/doma/b...
{ "body": "@Override\n\tpublic void postInsert(T t, PostInsertContext<T> context) {\n\t\tthis.eventPublisher.publishEvent(new PostInsertEvent<>(t, context));\n\t}", "class_method_signature": "DomaEventEntityListener.postInsert(T t, PostInsertContext<T> context)", "constructor": false, "full_signature": "@Overri...
{ "created": null, "fork": null, "fork_count": 19, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 45334811, "size": 658, "stargazer_count": 63, "stars": null, "updates": null, "url": "https://github.com/domaframework/doma-spring-boot" }
49894985_1
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LocalesDetectorTest.java", "identifier": "Loca...
{ "body": "@Test\n public void testGetCurrentLocale() throws Exception {\n\n }", "class_method_signature": "LocalesDetectorTest.testGetCurrentLocale()", "constructor": false, "full_signature": "@Test public void testGetCurrentLocale()", "identifier": "testGetCurrentLocale", "invocations": [], "modif...
{ "fields": [ { "declarator": "mContext", "modifier": "private final", "original_string": "private final Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLogger", "modifier": "private", "original_string": "private Logger mLo...
{ "body": "Locale getCurrentLocale() {\n return mContext.getResources().getConfiguration().locale;\n }", "class_method_signature": "LocalesDetector.getCurrentLocale()", "constructor": false, "full_signature": " Locale getCurrentLocale()", "identifier": "getCurrentLocale", "invocations": [ "g...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_0
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LocalesDetectorTest.java", "identifier": "Loca...
{ "body": "@Test\n public void testFetchAvailableLocales() throws Exception {\n\n }", "class_method_signature": "LocalesDetectorTest.testFetchAvailableLocales()", "constructor": false, "full_signature": "@Test public void testFetchAvailableLocales()", "identifier": "testFetchAvailableLocales", "invoca...
{ "fields": [ { "declarator": "mContext", "modifier": "private final", "original_string": "private final Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLogger", "modifier": "private", "original_string": "private Logger mLo...
{ "body": "HashSet<Locale> fetchAvailableLocales(int stringId) {\n\n DisplayMetrics dm = mContext.getResources().getDisplayMetrics();\n Configuration conf = mContext.getResources().getConfiguration();\n Locale originalLocale = conf.locale;\n Locale baseLocale = LocalesUtils.getBaseLocale()...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_7
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LanguageSwitcherTest.java", "identifier": "Lan...
{ "body": "@Test\n public void testSetSupportedLocales() throws Exception {\n\n }", "class_method_signature": "LanguageSwitcherTest.testSetSupportedLocales()", "constructor": false, "full_signature": "@Test public void testSetSupportedLocales()", "identifier": "testSetSupportedLocales", "invocations":...
{ "fields": [ { "declarator": "mContext", "modifier": "private", "original_string": "private Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLocalesPreferences", "modifier": "private", "original_string": "private LocalesPre...
{ "body": "public void setSupportedLocales(HashSet<Locale> locales) {\n LocalesUtils.setSupportedLocales(locales);\n }", "class_method_signature": "LanguageSwitcher.setSupportedLocales(HashSet<Locale> locales)", "constructor": false, "full_signature": "public void setSupportedLocales(HashSet<Locale...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_6
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LanguageSwitcherTest.java", "identifier": "Lan...
{ "body": "@Test\n public void testSetSupportedStringLocales() throws Exception {\n\n }", "class_method_signature": "LanguageSwitcherTest.testSetSupportedStringLocales()", "constructor": false, "full_signature": "@Test public void testSetSupportedStringLocales()", "identifier": "testSetSupportedStringLo...
{ "fields": [ { "declarator": "mContext", "modifier": "private", "original_string": "private Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLocalesPreferences", "modifier": "private", "original_string": "private LocalesPre...
{ "body": "public void setSupportedStringLocales(HashSet<String> sLocales) {\n\n HashSet<Locale> locales = new HashSet<>();\n for (String sLocale: sLocales) {\n locales.add(new Locale(sLocale));\n }\n this.setSupportedLocales(locales);\n }", "class_method_signature": "La...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_5
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LanguageSwitcherTest.java", "identifier": "Lan...
{ "body": "@Test\n public void testGetLocales() throws Exception {\n\n }", "class_method_signature": "LanguageSwitcherTest.testGetLocales()", "constructor": false, "full_signature": "@Test public void testGetLocales()", "identifier": "testGetLocales", "invocations": [], "modifiers": "@Test public", ...
{ "fields": [ { "declarator": "mContext", "modifier": "private", "original_string": "private Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLocalesPreferences", "modifier": "private", "original_string": "private LocalesPre...
{ "body": "public HashSet<Locale> getLocales() {\n return LocalesUtils.getLocales();\n }", "class_method_signature": "LanguageSwitcher.getLocales()", "constructor": false, "full_signature": "public HashSet<Locale> getLocales()", "identifier": "getLocales", "invocations": [ "getLocales" ], ...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_8
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LanguageSwitcherTest.java", "identifier": "Lan...
{ "body": "@Test\n public void testFetchAvailableLocales() throws Exception {\n\n }", "class_method_signature": "LanguageSwitcherTest.testFetchAvailableLocales()", "constructor": false, "full_signature": "@Test public void testFetchAvailableLocales()", "identifier": "testFetchAvailableLocales", "invoc...
{ "fields": [ { "declarator": "mContext", "modifier": "private", "original_string": "private Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLocalesPreferences", "modifier": "private", "original_string": "private LocalesPre...
{ "body": "public HashSet<Locale> fetchAvailableLocales(int stringId) {\n return LocalesUtils.fetchAvailableLocales(stringId);\n }", "class_method_signature": "LanguageSwitcher.fetchAvailableLocales(int stringId)", "constructor": false, "full_signature": "public HashSet<Locale> fetchAvailableLocales(i...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_4
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LanguageSwitcherTest.java", "identifier": "Lan...
{ "body": "@Test\n public void testShowChangeLanguageDialog() throws Exception {\n\n }", "class_method_signature": "LanguageSwitcherTest.testShowChangeLanguageDialog()", "constructor": false, "full_signature": "@Test public void testShowChangeLanguageDialog()", "identifier": "testShowChangeLanguageDialo...
{ "fields": [ { "declarator": "mContext", "modifier": "private", "original_string": "private Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLocalesPreferences", "modifier": "private", "original_string": "private LocalesPre...
{ "body": "public void showChangeLanguageDialog(FragmentActivity activity) {\n new LanguagesListDialogFragment()\n .show(activity.getSupportFragmentManager(), TAG);\n }", "class_method_signature": "LanguageSwitcher.showChangeLanguageDialog(FragmentActivity activity)", "constructor": fals...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_3
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LocalesDetectorTest.java", "identifier": "Loca...
{ "body": "@Test\n public void testValidateLocales() throws Exception {\n\n }", "class_method_signature": "LocalesDetectorTest.testValidateLocales()", "constructor": false, "full_signature": "@Test public void testValidateLocales()", "identifier": "testValidateLocales", "invocations": [], "modifiers...
{ "fields": [ { "declarator": "mContext", "modifier": "private final", "original_string": "private final Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLogger", "modifier": "private", "original_string": "private Logger mLo...
{ "body": "HashSet<Locale> validateLocales(HashSet<Locale> locales) {\n\n mLogger.debug(\"Validating given locales..\");\n\n for (Locale l:LocalesUtils.getPseudoLocales()) {\n if(locales.remove(l)) {\n mLogger.info(\"Pseudo locale '\" + l + \"' has been removed.\");\n ...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
49894985_2
{ "fields": [ { "declarator": "mMockContext", "modifier": "@Mock", "original_string": "@Mock\n Context mMockContext;", "type": "Context", "var_name": "mMockContext" } ], "file": "rosetta/src/test/java/com/ahmedjazzar/rosetta/LocalesDetectorTest.java", "identifier": "Loca...
{ "body": "@Test\n public void testDetectMostClosestLocale() throws Exception {\n\n }", "class_method_signature": "LocalesDetectorTest.testDetectMostClosestLocale()", "constructor": false, "full_signature": "@Test public void testDetectMostClosestLocale()", "identifier": "testDetectMostClosestLocale", ...
{ "fields": [ { "declarator": "mContext", "modifier": "private final", "original_string": "private final Context mContext;", "type": "Context", "var_name": "mContext" }, { "declarator": "mLogger", "modifier": "private", "original_string": "private Logger mLo...
{ "body": "int detectMostClosestLocale(Locale locale) {\n\n mLogger.debug(\"Start detecting a close locale to: \");\n\n int index = 0;\n for (Locale loc: LocalesUtils.getLocales()) {\n if(loc.getDisplayLanguage().equals(locale.getDisplayLanguage())) {\n mLogger.info...
{ "created": null, "fork": null, "fork_count": 21, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 49894985, "size": 1286, "stargazer_count": 71, "stars": null, "updates": null, "url": "https://github.com/ahmedaljazzar/rosetta" }
35550196_44
{ "fields": [], "file": "webanno-io-text/src/test/java/de/tudarmstadt/ukp/clarin/webanno/text/LineOrientedTextReaderTest.java", "identifier": "LineOrientedTextReaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void test()\n throws Exception\n {\n JCas doc = JCasFactory.createJCas();\n\n CollectionReader reader = createReader(LineOrientedTextReader.class,\n LineOrientedTextReader.PARAM_SOURCE_LOCATION, \"LICENSE.txt\");\n\n reader.getNext(doc.getCas(...
{ "fields": [], "file": "webanno-io-text/src/main/java/de/tudarmstadt/ukp/clarin/webanno/text/LineOrientedTextReader.java", "identifier": "LineOrientedTextReader", "interfaces": "", "methods": [ { "class_method_signature": "LineOrientedTextReader.getNext(JCas aJCas)", "constructor": false, ...
{ "body": "@Override\n public void getNext(JCas aJCas)\n throws IOException, CollectionException\n {\n Resource res = nextFile();\n initCas(aJCas, res);\n\n try (InputStream is = new BufferedInputStream(res.getInputStream())) {\n aJCas.setDocumentText(IOUtils.toString(is, ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_13
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatSpanOverlapBehaviorOnCreateWorks() throws AnnotationException\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\");\n\n ChainAdapter sut = new ChainAdapter(layerSup...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "CHAIN = \"Chain\"", ...
{ "body": "public AnnotationFS addSpan(SourceDocument aDocument, String aUsername, CAS aCas, int aBegin,\n int aEnd)\n throws AnnotationException\n {\n return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aCas, aBegin, aEnd));\n }", "class_method_signature": "ChainAdapt...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_3
{ "fields": [ { "declarator": "featureSupportRegistry", "modifier": "private", "original_string": "private FeatureSupportRegistry featureSupportRegistry;", "type": "FeatureSupportRegistry", "var_name": "featureSupportRegistry" }, { "declarator": "layerSupportRegistry", ...
{ "body": "@Test\n public void thatSpanOverlapBehaviorOnRenderGeneratesErrors()\n {\n jcas.setDocumentText(StringUtils.repeat(\"a\", 10));\n \n new Sentence(jcas, 0, 10).addToIndexes();\n NamedEntity ne1 = new NamedEntity(jcas, 3, 8);\n ne1.addToIndexes();\n NamedEntity...
{ "fields": [ { "declarator": "behaviors", "modifier": "private final", "original_string": "private final List<SpanLayerBehavior> behaviors;", "type": "List<SpanLayerBehavior>", "var_name": "behaviors" } ], "file": "webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clar...
{ "body": "@Override\n public void render(CAS aCas, List<AnnotationFeature> aFeatures,\n VDocument aResponse, int aWindowBegin, int aWindowEnd)\n {\n SpanAdapter typeAdapter = getTypeAdapter();\n \n // Iterate over the span annotations of the current type and render each of them\...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_29
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void multiLinkWithRoleNoDifferenceTest()\n throws Exception\n {\n JCas jcasA = createJCas(createMultiLinkWithRoleTestTypeSystem(\"f1\"));\n makeLinkHostFS(jcasA, 0, 0, makeLinkFS(jcasA, \"slot1\", 0, 0));\n makeLinkHostFS(jcasA, 10, 10, makeLinkFS(jcasA, \"s...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public void reMergeCas(DiffResult aDiff, SourceDocument aTargetDocument, String aTargetUsername,\n CAS aTargetCas, Map<String, CAS> aCases)\n throws AnnotationException, UIMAException\n {\n silenceEvents = true;\n \n int updated = 0;\n int created = 0;\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_48
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private ProjectService sut;", "type": "ProjectService", "var_name": "sut" }, { "declarator": "testEntityManager", "modifier": "@Autowired\n private", "original_string": "@Auto...
{ "body": "@Test\n public void listProjectUsersWithSpecificPermissions_ShouldReturnAUser()\n {\n List<User> foundUsers = sut.listProjectUsersWithPermissions(testProject, CURATOR);\n\n assertThat(foundUsers).containsExactly(beate);\n }", "class_method_signature": "ProjectServiceImplTest.listPr...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "entityManager", "m...
{ "body": "@Override\n public List<User> listProjectUsersWithPermissions(Project aProject)\n { \n String query = \n \"SELECT DISTINCT u FROM User u, ProjectPermission pp \" +\n \"WHERE pp.user = u.username \" +\n \"AND pp.project = :project \" +\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_33
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void multiLinkMultiSpanRoleDiffTest()\n throws Exception\n {\n JCas jcasA = createJCas(createMultiLinkWithRoleTestTypeSystem(\"f1\"));\n Type type = jcasA.getTypeSystem().getType(HOST_TYPE);\n Feature feature = type.getFeatureByBaseName(\"f1\");\n\n m...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public void reMergeCas(DiffResult aDiff, SourceDocument aTargetDocument, String aTargetUsername,\n CAS aTargetCas, Map<String, CAS> aCases)\n throws AnnotationException, UIMAException\n {\n silenceEvents = true;\n \n int updated = 0;\n int created = 0;\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_25
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" }, { "declarator":...
{ "body": "@Test\n public void testFail() throws Exception\n {\n\n AnnotationLayer relationLayer = new AnnotationLayer();\n relationLayer.setName(Dependency.class.getName());\n\n relationLayer.setType(WebAnnoConst.RELATION_TYPE);\n Mockito.when(annotationService.listAnnotationLayer(M...
{ "fields": [ { "declarator": "annotationService", "modifier": "private @Autowired", "original_string": "private @Autowired AnnotationSchemaService annotationService;", "type": "AnnotationSchemaService", "var_name": "annotationService" } ], "file": "webanno-diag/src/main/java...
{ "body": "@Override\n public boolean check(Project aProject, CAS aCas, List<LogMessage> aMessages)\n {\n boolean ok = true;\n if (annotationService == null) {\n return ok;\n }\n List<AnnotationLayer> allAnnoLayers = annotationService.listAnnotationLayer(aProject);\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_24
{ "fields": [ { "declarator": "backupProperties", "modifier": "private", "original_string": "private BackupProperties backupProperties;", "type": "BackupProperties", "var_name": "backupProperties" }, { "declarator": "repositoryProperties", "modifier": "private", ...
{ "body": "@Test\n public void thatExportContainsNoCasMetadata() throws Exception\n {\n SourceDocument sd = makeSourceDocument(1l, 1l);\n\n // Create type system with built-in types, internal types, but without any project-specific\n // types.\n List<TypeSystemDescription> typeSystem...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "EXPORT_CAS = \"exportCas...
{ "body": "@Override\n public File exportCasToFile(CAS aCas, SourceDocument aDocument, String aFileName,\n FormatSupport aFormat, boolean aStripExtension)\n throws IOException, UIMAException\n {\n return exportCasToFile(aCas, aDocument, aFileName, aFormat, aStripExtension, null);\n }...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_32
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void multiLinkMultiHostTest()\n throws Exception\n {\n // Creating two span stacked annotations. This should cause the data not to be merged.\n JCas jcasA = createJCas(createMultiLinkWithRoleTestTypeSystem(\"f1\"));\n makeLinkHostFS(jcasA, 0, 0, makeLinkFS(j...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public void reMergeCas(DiffResult aDiff, SourceDocument aTargetDocument, String aTargetUsername,\n CAS aTargetCas, Map<String, CAS> aCases)\n throws AnnotationException, UIMAException\n {\n silenceEvents = true;\n \n int updated = 0;\n int created = 0;\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_49
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private ProjectService sut;", "type": "ProjectService", "var_name": "sut" }, { "declarator": "testEntityManager", "modifier": "@Autowired\n private", "original_string": "@Auto...
{ "body": "@Test\n public void listProjectUsersWithSpecificPermissions_ShouldReturnNoUsers()\n {\n List<User> foundUsers = sut.listProjectUsersWithPermissions(testProject, MANAGER);\n\n assertThat(foundUsers).isEmpty();\n }", "class_method_signature": "ProjectServiceImplTest.listProjectUsersW...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "entityManager", "m...
{ "body": "@Override\n public List<User> listProjectUsersWithPermissions(Project aProject)\n { \n String query = \n \"SELECT DISTINCT u FROM User u, ProjectPermission pp \" +\n \"WHERE pp.user = u.username \" +\n \"AND pp.project = :project \" +\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_28
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void thatIncompleteAnnotationIsNotMerged()\n throws Exception\n {\n JCas user1 = JCasFactory.createText(\"word\");\n token(user1, 0, 4, \"X\");\n \n JCas user2 = JCasFactory.createText(\"word\");\n token(user2, 0, 4, null);\n \n M...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public void reMergeCas(DiffResult aDiff, SourceDocument aTargetDocument, String aTargetUsername,\n CAS aTargetCas, Map<String, CAS> aCases)\n throws AnnotationException, UIMAException\n {\n silenceEvents = true;\n \n int updated = 0;\n int created = 0;\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_2
{ "fields": [ { "declarator": "featureSupportRegistry", "modifier": "private", "original_string": "private FeatureSupportRegistry featureSupportRegistry;", "type": "FeatureSupportRegistry", "var_name": "featureSupportRegistry" }, { "declarator": "layerSupportRegistry", ...
{ "body": "@Test\n public void thatSpanCrossSentenceBehaviorOnRenderGeneratesErrors()\n {\n neLayer.setCrossSentence(false);\n \n jcas.setDocumentText(StringUtils.repeat(\"a\", 20));\n \n new Sentence(jcas, 0, 10).addToIndexes();\n new Sentence(jcas, 10, 20).addToIndexe...
{ "fields": [ { "declarator": "behaviors", "modifier": "private final", "original_string": "private final List<SpanLayerBehavior> behaviors;", "type": "List<SpanLayerBehavior>", "var_name": "behaviors" } ], "file": "webanno-api-annotation/src/main/java/de/tudarmstadt/ukp/clar...
{ "body": "@Override\n public void render(CAS aCas, List<AnnotationFeature> aFeatures,\n VDocument aResponse, int aWindowBegin, int aWindowEnd)\n {\n SpanAdapter typeAdapter = getTypeAdapter();\n \n // Iterate over the span annotations of the current type and render each of them\...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_12
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatSpanCrossSentenceBehaviorOnCreateThrowsException()\n {\n corefLayer.setCrossSentence(false);\n \n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\\nThis is sente...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "CHAIN = \"Chain\"", ...
{ "body": "public AnnotationFS addSpan(SourceDocument aDocument, String aUsername, CAS aCas, int aBegin,\n int aEnd)\n throws AnnotationException\n {\n return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aCas, aBegin, aEnd));\n }", "class_method_signature": "ChainAdapt...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_45
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private ProjectService sut;", "type": "ProjectService", "var_name": "sut" }, { "declarator": "testEntityManager", "modifier": "@Autowired\n private", "original_string": "@Auto...
{ "body": "@Test\n public void listProjectsForAgreement_ShouldReturnOneProject()\n {\n List<Project> foundProjects = sut.listProjectsForAgreement();\n \n assertThat(foundProjects).containsExactly(testProject);\n }", "class_method_signature": "ProjectServiceImplTest.listProjectsForAgree...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "entityManager", "m...
{ "body": "@Override\n public List<Project> listProjectsForAgreement()\n {\n String query = \n \"SELECT DISTINCT p FROM Project p, ProjectPermission pp \" +\n \"WHERE pp.project = p.id \" +\n \"AND pp.level = :annotator \" + \n \"GROUP BY p.id H...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_19
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatSpanCrossSentenceBehaviorOnCreateThrowsException()\n {\n neLayer.setCrossSentence(false);\n \n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\\nThis is sentence...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "behaviors", "modif...
{ "body": "public AnnotationFS add(SourceDocument aDocument, String aUsername, CAS aCas, int aBegin,\n int aEnd)\n throws AnnotationException\n {\n return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aCas, aBegin, aEnd));\n }", "class_method_signature": "SpanAdapter.ad...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_9
{ "fields": [ { "declarator": "schemaService", "modifier": "private @Mock", "original_string": "private @Mock AnnotationSchemaService schemaService;", "type": "AnnotationSchemaService", "var_name": "schemaService" }, { "declarator": "sut", "modifier": "private", ...
{ "body": "@Test\n public void testAccepts()\n {\n AnnotationFeature feat1 = new AnnotationFeature(\"string\", \"LinkType\");\n feat1.setMode(MultiValueMode.ARRAY);\n feat1.setLinkMode(LinkMode.WITH_ROLE);\n \n AnnotationFeature feat2 = new AnnotationFeature(\"Dummy feature\",...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "annotationService", ...
{ "body": "@Override\n public boolean accepts(AnnotationFeature aFeature)\n {\n switch (aFeature.getMultiValueMode()) {\n case ARRAY:\n switch (aFeature.getLinkMode()) {\n case WITH_ROLE:\n return true;\n default:\n return false;\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_35
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void simpleCopyToSameExistingAnnoTest()\n throws Exception\n {\n CAS jcas = createJCas().getCas();\n Type type = jcas.getTypeSystem().getType(POS.class.getTypeName());\n AnnotationFS clickedFs = createPOSAnno(jcas, \"NN\", 0, 0);\n\n CAS mergeCas = cr...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeSpanAnnotation(SourceDocument aDocument, String aUsername,\n AnnotationLayer aAnnotationLayer, CAS aTargetCas, AnnotationFS aSourceFs,\n boolean aAllowStacking)\n throws AnnotationException\n {\n if (existsSameAt(aTargetCas, aSource...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_23
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private CasStorageServiceImpl sut;", "type": "CasStorageServiceImpl", "var_name": "sut" }, { "declarator": "backupProperties", "modifier": "private", "original_string": "private ...
{ "body": "@Test\n public void testReadOrCreateCas() throws Exception\n {\n // Setup fixture\n SourceDocument doc = makeSourceDocument(2l, 2l);\n String user = \"test\";\n String text = \"This is a test\";\n createCasFile(doc, user, text);\n \n // Actual test\n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "EVICT_IDLE_CASES_AFTER_M...
{ "body": "@Override\n public CAS readOrCreateCas(SourceDocument aDocument, String aUsername,\n CasUpgradeMode aUpgradeMode, CasProvider aSupplier, CasAccessMode aAccessMode)\n throws IOException, CasSessionException\n {\n CasStorageSession session = CasStorageSession.get();\n \n...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_42
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void thatMergingRelationIsRejectedIfAlreadyExists()\n throws Exception\n {\n CAS jcas = createJCas().getCas();\n Type type = jcas.getTypeSystem().getType(Dependency.class.getTypeName());\n\n AnnotationFS originClickedToken = createTokenAnno(jcas, 0, 0);\n ...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeRelationAnnotation(SourceDocument aDocument,\n String aUsername, AnnotationLayer aAnnotationLayer, CAS aTargetCas,\n AnnotationFS aSourceFs, boolean aAllowStacking)\n throws AnnotationException\n {\n RelationAdapter adapter = (Relat...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_15
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatRelationAttachmentBehaviorOnCreateWorks() throws Exception\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\");\n\n for (Token t : select(jcas, Token.class)) {\n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "sourceFeatureName", ...
{ "body": "public AnnotationFS add(SourceDocument aDocument, String aUsername, AnnotationFS aOriginFs,\n AnnotationFS aTargetFs, CAS aCas)\n throws AnnotationException\n {\n return handle(new CreateRelationAnnotationRequest(aDocument, aUsername, aCas, aOriginFs,\n aTargetFs)...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_39
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void copySpanWithSlotWithStackingTest()\n throws Exception\n {\n AnnotatorState state = new AnnotatorStateImpl(CURATION);\n state.setUser(new User());\n \n slotLayer.setAnchoringMode(TOKENS);\n slotLayer.setOverlapMode(OverlapMode.ANY_OVERLAP);...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeSpanAnnotation(SourceDocument aDocument, String aUsername,\n AnnotationLayer aAnnotationLayer, CAS aTargetCas, AnnotationFS aSourceFs,\n boolean aAllowStacking)\n throws AnnotationException\n {\n if (existsSameAt(aTargetCas, aSource...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_5
{ "fields": [], "file": "webanno-api-annotation/src/test/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/keybindings/KeyBindingTest.java", "identifier": "KeyBindingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void thatInvalidKeyBindingCanBeParsed()\n {\n assertThat(new KeyBinding(\"foo bar\", null).isValid()).isFalse();\n }", "class_method_signature": "KeyBindingTest.thatInvalidKeyBindingCanBeParsed()", "constructor": false, "full_signature": "@Test public void thatInvalidKe...
{ "fields": [ { "declarator": "serialVersionUID = 6394936950272849288L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 6394936950272849288L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "KEY_M...
{ "body": "@JsonIgnore\n public boolean isValid()\n {\n if (isBlank(keyCombo)) {\n return false;\n }\n \n for (String key : keyCombo.split(\" \")) {\n KeyType type = KEY_MAP.get(key.toUpperCase(Locale.US));\n if (type == null) {\n retur...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_4
{ "fields": [], "file": "webanno-api-annotation/src/test/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/keybindings/KeyBindingTest.java", "identifier": "KeyBindingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void thatValidKeyBindingCanBeParsed() throws Exception\n {\n new KeyBinding(\"a\", null).asKeyTypes();\n new KeyBinding(\"alt f5\", null).asKeyTypes();\n new KeyBinding(\"shift enter\", null).asKeyTypes();\n new KeyBinding(\"ctrl space\", null).asKeyTypes();...
{ "fields": [ { "declarator": "serialVersionUID = 6394936950272849288L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = 6394936950272849288L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "KEY_M...
{ "body": "@JsonIgnore\n public KeyType[] asKeyTypes()\n {\n List<KeyType> combo = new ArrayList<>();\n if (isNotBlank(keyCombo)) {\n for (String key : keyCombo.split(\" \")) {\n KeyType type = KEY_MAP.get(key.toUpperCase(Locale.US));\n combo.add(type);\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_38
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void copySpanWithSlotNoStackingTest()\n throws Exception\n {\n slotLayer.setOverlapMode(OverlapMode.NO_OVERLAP);\n \n JCas jcasA = createJCas(CurationTestUtils.createMultiLinkWithRoleTestTypeSystem(\"f1\"));\n Type type = jcasA.getTypeSystem().getType...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeSpanAnnotation(SourceDocument aDocument, String aUsername,\n AnnotationLayer aAnnotationLayer, CAS aTargetCas, AnnotationFS aSourceFs,\n boolean aAllowStacking)\n throws AnnotationException\n {\n if (existsSameAt(aTargetCas, aSource...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_14
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatSpanAnchoringAndStackingBehaviorsWorkInConcert() throws AnnotationException\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\");\n\n ChainAdapter sut = new ChainAd...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "CHAIN = \"Chain\"", ...
{ "body": "public AnnotationFS addSpan(SourceDocument aDocument, String aUsername, CAS aCas, int aBegin,\n int aEnd)\n throws AnnotationException\n {\n return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aCas, aBegin, aEnd));\n }", "class_method_signature": "ChainAdapt...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_43
{ "fields": [], "file": "webanno-brat/src/test/java/de/tudarmstadt/ukp/clarin/webanno/brat/util/BratAnnotatorUtilityTest.java", "identifier": "BratAnnotatorUtilityTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testClearJCasWithoutDocumentMetadata() throws Exception\n {\n CAS jcas = JCasFactory.createJCas().getCas();\n BratAnnotatorUtility.clearAnnotations(jcas);\n }", "class_method_signature": "BratAnnotatorUtilityTest.testClearJCasWithoutDocumentMetadata()", "const...
{ "fields": [], "file": "webanno-brat/src/main/java/de/tudarmstadt/ukp/clarin/webanno/brat/util/BratAnnotatorUtility.java", "identifier": "BratAnnotatorUtility", "interfaces": "", "methods": [ { "class_method_signature": "BratAnnotatorUtility.isDocumentFinished(DocumentService aRepository,\n ...
{ "body": "public static CAS clearAnnotations(CAS aCas)\n throws IOException\n {\n CAS target;\n try {\n target = CasFactory.createCas((TypeSystemDescription) null);\n }\n catch (UIMAException e) {\n throw new IOException(e);\n }\n \n //...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_22
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatAdjacentAnnotationsDoNotOverlap() throws AnnotationException\n {\n jcas.setDocumentText(\"Test.\");\n new Sentence(jcas, 0, 5).addToIndexes();\n new Token(jcas, 0, 4).addToIndexes();\n new Token(jcas, 4, 5).addToIndexes();\n new NamedEntity(j...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "behaviors", "modif...
{ "body": "@Override\n public List<Pair<LogMessage, AnnotationFS>> validate(CAS aCas)\n {\n List<Pair<LogMessage, AnnotationFS>> messages = new ArrayList<>();\n for (SpanLayerBehavior behavior : behaviors) {\n long startTime = currentTimeMillis();\n messages.addAll(behavior.o...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_34
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void simpleCopyToEmptyTest()\n throws Exception\n {\n AnnotatorState state = new AnnotatorStateImpl(CURATION);\n state.setUser(new User());\n \n CAS jcas = createJCas().getCas();\n AnnotationFS clickedFs = createNEAnno(jcas, \"NN\", 0, 0);\n\n ...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeSpanAnnotation(SourceDocument aDocument, String aUsername,\n AnnotationLayer aAnnotationLayer, CAS aTargetCas, AnnotationFS aSourceFs,\n boolean aAllowStacking)\n throws AnnotationException\n {\n if (existsSameAt(aTargetCas, aSource...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_8
{ "fields": [ { "declarator": "schemaService", "modifier": "private @Mock", "original_string": "private @Mock AnnotationSchemaService schemaService;", "type": "AnnotationSchemaService", "var_name": "schemaService" }, { "declarator": "sut", "modifier": "private", ...
{ "body": "@Test\n public void thatUsingOutOfTagsetValueInOpenTagsetAddsNewValue() throws Exception\n {\n final String tag = \"TAG-NOT-IN-LIST\";\n \n valueFeature.setTagset(valueTagset);\n valueTagset.setCreateTag(true);\n \n when(schemaService.existsTag(tag, valueTags...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "primitiveTypes", "...
{ "body": "@Override\n public void setFeatureValue(CAS aCas, AnnotationFeature aFeature, int aAddress, Object aValue)\n {\n if (\n aValue != null &&\n schemaService != null && \n aFeature.getTagset() != null && \n CAS.TYPE_NAME_STRING.equals(aFe...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_18
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatRelationOverlapBehaviorOnCreateWorks() throws Exception\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\\nThis is sentence two .\");\n\n for (Token t : select(jca...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "sourceFeatureName", ...
{ "body": "public AnnotationFS add(SourceDocument aDocument, String aUsername, AnnotationFS aOriginFs,\n AnnotationFS aTargetFs, CAS aCas)\n throws AnnotationException\n {\n return handle(new CreateRelationAnnotationRequest(aDocument, aUsername, aCas, aOriginFs,\n aTargetFs)...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_21
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatSpanAnchoringAndOverlapBehaviorsWorkInConcert() throws AnnotationException\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\");\n\n SpanAdapter sut = new SpanAdapt...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "behaviors", "modif...
{ "body": "public AnnotationFS add(SourceDocument aDocument, String aUsername, CAS aCas, int aBegin,\n int aEnd)\n throws AnnotationException\n {\n return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aCas, aBegin, aEnd));\n }", "class_method_signature": "SpanAdapter.ad...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_37
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void simpleCopyToDiffExistingAnnoWithStackingTest()\n throws Exception\n {\n neLayer.setOverlapMode(OverlapMode.ANY_OVERLAP);\n\n CAS jcas = createJCas().getCas();\n Type type = jcas.getTypeSystem().getType(NamedEntity.class.getTypeName());\n Annotati...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeSpanAnnotation(SourceDocument aDocument, String aUsername,\n AnnotationLayer aAnnotationLayer, CAS aTargetCas, AnnotationFS aSourceFs,\n boolean aAllowStacking)\n throws AnnotationException\n {\n if (existsSameAt(aTargetCas, aSource...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_7
{ "fields": [ { "declarator": "schemaService", "modifier": "private @Mock", "original_string": "private @Mock AnnotationSchemaService schemaService;", "type": "AnnotationSchemaService", "var_name": "schemaService" }, { "declarator": "sut", "modifier": "private", ...
{ "body": "@Test\n public void thatUsingOutOfTagsetValueInClosedTagsetProducesException() throws Exception\n {\n final String tag = \"TAG-NOT-IN-LIST\";\n \n valueFeature.setTagset(valueTagset);\n valueTagset.setCreateTag(false);\n \n when(schemaService.existsTag(tag, v...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "primitiveTypes", "...
{ "body": "@Override\n public void setFeatureValue(CAS aCas, AnnotationFeature aFeature, int aAddress, Object aValue)\n {\n if (\n aValue != null &&\n schemaService != null && \n aFeature.getTagset() != null && \n CAS.TYPE_NAME_STRING.equals(aFe...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_17
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatCreatingRelationWorks() throws Exception\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\\nThis is sentence two .\");\n\n for (Token t : select(jcas, Token.class)...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "sourceFeatureName", ...
{ "body": "public AnnotationFS add(SourceDocument aDocument, String aUsername, AnnotationFS aOriginFs,\n AnnotationFS aTargetFs, CAS aCas)\n throws AnnotationException\n {\n return handle(new CreateRelationAnnotationRequest(aDocument, aUsername, aCas, aOriginFs,\n aTargetFs)...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_40
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void simpleCopyRelationToEmptyAnnoTest()\n throws Exception\n {\n CAS jcas = createJCas().getCas();\n Type type = jcas.getTypeSystem().getType(Dependency.class.getTypeName());\n\n AnnotationFS originClickedToken = createTokenAnno(jcas, 0, 0);\n Annota...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeRelationAnnotation(SourceDocument aDocument,\n String aUsername, AnnotationLayer aAnnotationLayer, CAS aTargetCas,\n AnnotationFS aSourceFs, boolean aAllowStacking)\n throws AnnotationException\n {\n RelationAdapter adapter = (Relat...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_41
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void simpleCopyRelationToStackedTargetsTest()\n throws Exception\n {\n CAS jcas = createJCas().getCas();\n Type type = jcas.getTypeSystem().getType(Dependency.class.getTypeName());\n\n AnnotationFS originClickedToken = createTokenAnno(jcas, 0, 0);\n A...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeRelationAnnotation(SourceDocument aDocument,\n String aUsername, AnnotationLayer aAnnotationLayer, CAS aTargetCas,\n AnnotationFS aSourceFs, boolean aAllowStacking)\n throws AnnotationException\n {\n RelationAdapter adapter = (Relat...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_16
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatRelationCrossSentenceBehaviorOnCreateThrowsException() throws Exception\n {\n depLayer.setCrossSentence(false);\n \n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a tes...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "sourceFeatureName", ...
{ "body": "public AnnotationFS add(SourceDocument aDocument, String aUsername, AnnotationFS aOriginFs,\n AnnotationFS aTargetFs, CAS aCas)\n throws AnnotationException\n {\n return handle(new CreateRelationAnnotationRequest(aDocument, aUsername, aCas, aOriginFs,\n aTargetFs)...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_6
{ "fields": [], "file": "webanno-api-annotation/src/test/java/de/tudarmstadt/ukp/clarin/webanno/api/annotation/model/VIDTest.java", "identifier": "VIDTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testParse()\n {\n assertParseVid(null, -1, 10, -1, -1, -1, \"10\", null);\n assertParseVid(null, -1, 10, -1, 1, -1, \"10.1\", null);\n assertParseVid(null, -1, 10, -1, 1, 2, \"10.1.2\", null);\n assertParseVid(null, -1, 10, 1, 2, 3, \"10-1.2.3...
{ "fields": [ { "declarator": "serialVersionUID = -8490129995678288943L", "modifier": "private static final", "original_string": "private static final long serialVersionUID = -8490129995678288943L;", "type": "long", "var_name": "serialVersionUID" }, { "declarator": "ID ...
{ "body": "public static VID parse(String aVid)\n {\n Matcher m = PATTERN_EXT.matcher(aVid);\n \n if (m.matches()) {\n String extId = null;\n String extPayload = null;\n int annotationId = Integer.valueOf(m.group(ID));\n \n if (m.group(EXT...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_36
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void simpleCopyToDiffExistingAnnoWithNoStackingTest()\n throws Exception\n {\n CAS jcas = createJCas().getCas();\n Type type = jcas.getTypeSystem().getType(POS.class.getTypeName());\n AnnotationFS clickedFs = createPOSAnno(jcas, \"NN\", 0, 0);\n\n CAS...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public CasMergeOperationResult mergeSpanAnnotation(SourceDocument aDocument, String aUsername,\n AnnotationLayer aAnnotationLayer, CAS aTargetCas, AnnotationFS aSourceFs,\n boolean aAllowStacking)\n throws AnnotationException\n {\n if (existsSameAt(aTargetCas, aSource...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_20
{ "fields": [ { "declarator": "layerSupportRegistry", "modifier": "private", "original_string": "private LayerSupportRegistry layerSupportRegistry;", "type": "LayerSupportRegistry", "var_name": "layerSupportRegistry" }, { "declarator": "featureSupportRegistry", "m...
{ "body": "@Test\n public void thatSpanOverlapBehaviorOnCreateWorks() throws AnnotationException\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\");\n\n SpanAdapter sut = new SpanAdapter(layerSuppo...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "behaviors", "modif...
{ "body": "public AnnotationFS add(SourceDocument aDocument, String aUsername, CAS aCas, int aBegin,\n int aEnd)\n throws AnnotationException\n {\n return handle(new CreateSpanAnnotationRequest(aDocument, aUsername, aCas, aBegin, aEnd));\n }", "class_method_signature": "SpanAdapter.ad...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_1
{ "fields": [ { "declarator": "featureSupportRegistry", "modifier": "private", "original_string": "private FeatureSupportRegistry featureSupportRegistry;", "type": "FeatureSupportRegistry", "var_name": "featureSupportRegistry" }, { "declarator": "layerSupportRegistry", ...
{ "body": "@Test\n public void thatRelationOverlapBehaviorOnRenderGeneratesErrors() throws Exception\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\\nThis is sentence two .\");\n\n for (Token t : ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "behaviors", "modif...
{ "body": "@Override\n public void render(final CAS aCas, List<AnnotationFeature> aFeatures,\n VDocument aResponse, int aWindowBegin, int aWindowEnd)\n {\n RelationAdapter typeAdapter = getTypeAdapter();\n Type type;\n Type spanType;\n try {\n type = getType(aCa...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_11
{ "fields": [ { "declarator": "schemaService", "modifier": "private @Mock", "original_string": "private @Mock AnnotationSchemaService schemaService;", "type": "AnnotationSchemaService", "var_name": "schemaService" }, { "declarator": "sut", "modifier": "private", ...
{ "body": "@Test\n public void thatUsingOutOfTagsetValueInOpenTagsetAddsNewValue() throws Exception\n {\n final String role = \"TAG-NOT-IN-LIST\";\n \n CAS cas = jcas.getCas();\n\n TagSet slotFeatureTagset = new TagSet();\n slotFeatureTagset.setCreateTag(true);\n \n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "annotationService", ...
{ "body": "@Override\n public void setFeatureValue(CAS aCas, AnnotationFeature aFeature, int aAddress, Object aValue)\n {\n if (\n aValue instanceof List &&\n aFeature.getTagset() != null\n ) {\n for (LinkWithRoleModel link : (List<LinkWithRoleModel>) aValu...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_46
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private ProjectService sut;", "type": "ProjectService", "var_name": "sut" }, { "declarator": "testEntityManager", "modifier": "@Autowired\n private", "original_string": "@Auto...
{ "body": "@Test\n public void listProjectUsersWithPermissions_ShouldReturnUsers() {\n List<User> foundUsers = sut.listProjectUsersWithPermissions(testProject);\n \n assertThat(foundUsers).containsExactly(beate, kevin);\n }", "class_method_signature": "ProjectServiceImplTest.listProjectUs...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "entityManager", "m...
{ "body": "@Override\n public List<User> listProjectUsersWithPermissions(Project aProject)\n { \n String query = \n \"SELECT DISTINCT u FROM User u, ProjectPermission pp \" +\n \"WHERE pp.user = u.username \" +\n \"AND pp.project = :project \" +\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_50
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private ProjectService sut;", "type": "ProjectService", "var_name": "sut" }, { "declarator": "testEntityManager", "modifier": "@Autowired\n private", "original_string": "@Auto...
{ "body": "@Test\n public void listProjectUsersWithPermissionButNoTableEntry_ShouldNotReturnThisUser()\n {\n testEntityManager.persist(new ProjectPermission(testProject, \"ghost\", ANNOTATOR));\n\n List<User> foundUsers = sut.listProjectUsersWithPermissions(testProject, ANNOTATOR);\n\n asse...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "entityManager", "m...
{ "body": "@Override\n public List<User> listProjectUsersWithPermissions(Project aProject)\n { \n String query = \n \"SELECT DISTINCT u FROM User u, ProjectPermission pp \" +\n \"WHERE pp.user = u.username \" +\n \"AND pp.project = :project \" +\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_27
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" }, { "declarator":...
{ "body": "@Test\n public void testOkBecauseCoref() throws Exception\n {\n\n AnnotationLayer relationLayer = new AnnotationLayer();\n relationLayer.setName(CoreferenceChain.class.getName());\n\n relationLayer.setType(WebAnnoConst.CHAIN_TYPE);\n Mockito.when(annotationService.listAnno...
{ "fields": [ { "declarator": "annotationService", "modifier": "private @Autowired", "original_string": "private @Autowired AnnotationSchemaService annotationService;", "type": "AnnotationSchemaService", "var_name": "annotationService" } ], "file": "webanno-diag/src/main/java...
{ "body": "@Override\n public boolean check(Project aProject, CAS aCas, List<LogMessage> aMessages)\n {\n boolean ok = true;\n if (annotationService == null) {\n return ok;\n }\n List<AnnotationLayer> allAnnoLayers = annotationService.listAnnotationLayer(aProject);\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_31
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void multiLinkWithRoleTargetDifferenceTest()\n throws Exception\n {\n JCas jcasA = createJCas(createMultiLinkWithRoleTestTypeSystem(\"f1\"));\n makeLinkHostFS(jcasA, 0, 0, makeLinkFS(jcasA, \"slot1\", 0, 0));\n\n JCas jcasB = createJCas(createMultiLinkWithRo...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public void reMergeCas(DiffResult aDiff, SourceDocument aTargetDocument, String aTargetUsername,\n CAS aTargetCas, Map<String, CAS> aCases)\n throws AnnotationException, UIMAException\n {\n silenceEvents = true;\n \n int updated = 0;\n int created = 0;\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_30
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" } ], "file": "webanno-cu...
{ "body": "@Test\n public void multiLinkWithRoleLabelDifferenceTest()\n throws Exception\n {\n JCas jcasA = createJCas(createMultiLinkWithRoleTestTypeSystem(\"f1\"));\n makeLinkHostFS(jcasA, 0, 0, makeLinkFS(jcasA, \"slot1\", 0, 0));\n\n JCas jcasB = createJCas(createMultiLinkWithRol...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(CasMerge.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(CasMerge.class);", "type": "Logger", "var_name": "LOG" }, { "declarator": "sc...
{ "body": "public void reMergeCas(DiffResult aDiff, SourceDocument aTargetDocument, String aTargetUsername,\n CAS aTargetCas, Map<String, CAS> aCases)\n throws AnnotationException, UIMAException\n {\n silenceEvents = true;\n \n int updated = 0;\n int created = 0;\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_26
{ "fields": [ { "declarator": "testContext = new DkproTestContext()", "modifier": "@Rule\n public", "original_string": "@Rule\n public DkproTestContext testContext = new DkproTestContext();", "type": "DkproTestContext", "var_name": "testContext" }, { "declarator":...
{ "body": "@Test\n public void testOK() throws Exception\n {\n AnnotationLayer relationLayer = new AnnotationLayer();\n relationLayer.setName(Dependency.class.getName());\n\n relationLayer.setType(WebAnnoConst.RELATION_TYPE);\n Mockito.when(annotationService.listAnnotationLayer(Mocki...
{ "fields": [ { "declarator": "annotationService", "modifier": "private @Autowired", "original_string": "private @Autowired AnnotationSchemaService annotationService;", "type": "AnnotationSchemaService", "var_name": "annotationService" } ], "file": "webanno-diag/src/main/java...
{ "body": "@Override\n public boolean check(Project aProject, CAS aCas, List<LogMessage> aMessages)\n {\n boolean ok = true;\n if (annotationService == null) {\n return ok;\n }\n List<AnnotationLayer> allAnnoLayers = annotationService.listAnnotationLayer(aProject);\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_47
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private ProjectService sut;", "type": "ProjectService", "var_name": "sut" }, { "declarator": "testEntityManager", "modifier": "@Autowired\n private", "original_string": "@Auto...
{ "body": "@Test\n public void listProjectUsersWithSpecificPermissions_ShouldReturnUsers()\n {\n List<User> foundUsers = sut.listProjectUsersWithPermissions(testProject, ANNOTATOR);\n\n assertThat(foundUsers).containsExactly(beate, kevin);\n }", "class_method_signature": "ProjectServiceImplTe...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "entityManager", "m...
{ "body": "@Override\n public List<User> listProjectUsersWithPermissions(Project aProject)\n { \n String query = \n \"SELECT DISTINCT u FROM User u, ProjectPermission pp \" +\n \"WHERE pp.user = u.username \" +\n \"AND pp.project = :project \" +\n ...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_10
{ "fields": [ { "declarator": "schemaService", "modifier": "private @Mock", "original_string": "private @Mock AnnotationSchemaService schemaService;", "type": "AnnotationSchemaService", "var_name": "schemaService" }, { "declarator": "sut", "modifier": "private", ...
{ "body": "@Test\n public void thatUsingOutOfTagsetValueInClosedTagsetProducesException() throws Exception\n {\n final String role = \"TAG-NOT-IN-LIST\";\n \n CAS cas = jcas.getCas();\n\n TagSet slotFeatureTagset = new TagSet();\n slotFeatureTagset.setCreateTag(false);\n ...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "annotationService", ...
{ "body": "@Override\n public void setFeatureValue(CAS aCas, AnnotationFeature aFeature, int aAddress, Object aValue)\n {\n if (\n aValue instanceof List &&\n aFeature.getTagset() != null\n ) {\n for (LinkWithRoleModel link : (List<LinkWithRoleModel>) aValu...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
35550196_0
{ "fields": [ { "declarator": "featureSupportRegistry", "modifier": "private", "original_string": "private FeatureSupportRegistry featureSupportRegistry;", "type": "FeatureSupportRegistry", "var_name": "featureSupportRegistry" }, { "declarator": "layerSupportRegistry", ...
{ "body": "@Test\n public void thatRelationCrossSentenceBehaviorOnRenderGeneratesErrors() throws Exception\n {\n TokenBuilder<Token, Sentence> builder = new TokenBuilder<>(Token.class, Sentence.class);\n builder.buildTokens(jcas, \"This is a test .\\nThis is sentence two .\");\n\n for (Toke...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(getClass())", "modifier": "private final", "original_string": "private final Logger log = LoggerFactory.getLogger(getClass());", "type": "Logger", "var_name": "log" }, { "declarator": "behaviors", "modif...
{ "body": "@Override\n public void render(final CAS aCas, List<AnnotationFeature> aFeatures,\n VDocument aResponse, int aWindowBegin, int aWindowEnd)\n {\n RelationAdapter typeAdapter = getTypeAdapter();\n Type type;\n Type spanType;\n try {\n type = getType(aCa...
{ "created": "5/13/2015 1:20:49 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 35550196, "size": null, "stargazer_count": null, "stars": 176, "updates": "2020-01-24T20:23:53+00:00", "url": "https://github.com/webanno/webanno"...
78162952_16
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalTest.java", "identifier": "OptionalTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NullPointerException.class)\n public void ofWithNullThrowsNPException() {\n Optional.of(null);\n }", "class_method_signature": "OptionalTest.ofWithNullThrowsNPException()", "constructor": false, "full_signature": "@Test(expected = NullPointerException.class) public void ...
{ "fields": [ { "declarator": "EMPTY = new Optional(null)", "modifier": "@SuppressWarnings(\"unchecked\")\n private static final", "original_string": "@SuppressWarnings(\"unchecked\")\n private static final Optional<?> EMPTY = new Optional(null);", "type": "Optional<?>", "var_n...
{ "body": "public static <T> Optional<T> of(T value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n return new Optional<T>(value);\n }", "class_method_signature": "Optional.of(T value)", "constructor": false, "full_signature": "public static Optional<T> o...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_6
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalIntTest.java", "identifier": "OptionalIntTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualsAnother() throws Exception {\n Assert.assertNotEquals(OptionalInt.of(1), OptionalInt.of(2));\n }", "class_method_signature": "OptionalIntTest.equalsOfValueDoesNotEqualsAnother()", "constructor": false, "full_signature": "@Test public void equ...
{ "fields": [ { "declarator": "EMPTY = new OptionalInt(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalInt EMPTY = new OptionalInt(false, 0);", "type": "OptionalInt", "var_name": "EMPTY" }, { "declarator": "isPresent", ...
{ "body": "public static OptionalInt of(int value) {\n return new OptionalInt(true, value);\n }", "class_method_signature": "OptionalInt.of(int value)", "constructor": false, "full_signature": "public static OptionalInt of(int value)", "identifier": "of", "invocations": [], "modifiers": "public ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_7
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalIntTest.java", "identifier": "OptionalIntTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsSameReference() throws Exception {\n OptionalInt value = OptionalInt.of(1);\n Assert.assertEquals(value, value);\n }", "class_method_signature": "OptionalIntTest.equalsSameReference()", "constructor": false, "full_signature": "@Test public void equalsSame...
{ "fields": [ { "declarator": "EMPTY = new OptionalInt(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalInt EMPTY = new OptionalInt(false, 0);", "type": "OptionalInt", "var_name": "EMPTY" }, { "declarator": "isPresent", ...
{ "body": "public static OptionalInt of(int value) {\n return new OptionalInt(true, value);\n }", "class_method_signature": "OptionalInt.of(int value)", "constructor": false, "full_signature": "public static OptionalInt of(int value)", "identifier": "of", "invocations": [], "modifiers": "public ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_17
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalTest.java", "identifier": "OptionalTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualsAnother() throws Exception {\n Assert.assertNotEquals(Optional.of(1), Optional.of(2));\n }", "class_method_signature": "OptionalTest.equalsOfValueDoesNotEqualsAnother()", "constructor": false, "full_signature": "@Test public void equalsOfValu...
{ "fields": [ { "declarator": "EMPTY = new Optional(null)", "modifier": "@SuppressWarnings(\"unchecked\")\n private static final", "original_string": "@SuppressWarnings(\"unchecked\")\n private static final Optional<?> EMPTY = new Optional(null);", "type": "Optional<?>", "var_n...
{ "body": "public static <T> Optional<T> of(T value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n return new Optional<T>(value);\n }", "class_method_signature": "Optional.of(T value)", "constructor": false, "full_signature": "public static Optional<T> o...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_0
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalDoubleTest.java", "identifier": "OptionalDoubleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void emptyIsSameInstanceEveryTime() {\n Assert.assertSame(OptionalDouble.empty(), OptionalDouble.empty());\n }", "class_method_signature": "OptionalDoubleTest.emptyIsSameInstanceEveryTime()", "constructor": false, "full_signature": "@Test public void emptyIsSameInstanceEve...
{ "fields": [ { "declarator": "EMPTY = new OptionalDouble(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalDouble EMPTY = new OptionalDouble(false, 0);", "type": "OptionalDouble", "var_name": "EMPTY" }, { "declarator": "is...
{ "body": "public static OptionalDouble empty() {\n return EMPTY;\n }", "class_method_signature": "OptionalDouble.empty()", "constructor": false, "full_signature": "public static OptionalDouble empty()", "identifier": "empty", "invocations": [], "modifiers": "public static", "parameters": "()"...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_10
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalLongTest.java", "identifier": "OptionalLongTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void emptyIsSameInstanceEveryTime() {\n Assert.assertSame(OptionalLong.empty(), OptionalLong.empty());\n }", "class_method_signature": "OptionalLongTest.emptyIsSameInstanceEveryTime()", "constructor": false, "full_signature": "@Test public void emptyIsSameInstanceEveryTime...
{ "fields": [ { "declarator": "EMPTY = new OptionalLong(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalLong EMPTY = new OptionalLong(false, 0);", "type": "OptionalLong", "var_name": "EMPTY" }, { "declarator": "isPresent"...
{ "body": "public static OptionalLong empty() {\n return EMPTY;\n }", "class_method_signature": "OptionalLong.empty()", "constructor": false, "full_signature": "public static OptionalLong empty()", "identifier": "empty", "invocations": [], "modifiers": "public static", "parameters": "()", "r...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_11
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalLongTest.java", "identifier": "OptionalLongTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualsAnother() throws Exception {\n Assert.assertNotEquals(OptionalLong.of(1L), OptionalLong.of(2L));\n }", "class_method_signature": "OptionalLongTest.equalsOfValueDoesNotEqualsAnother()", "constructor": false, "full_signature": "@Test public voi...
{ "fields": [ { "declarator": "EMPTY = new OptionalLong(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalLong EMPTY = new OptionalLong(false, 0);", "type": "OptionalLong", "var_name": "EMPTY" }, { "declarator": "isPresent"...
{ "body": "public static OptionalLong of(long value) {\n return new OptionalLong(true, value);\n }", "class_method_signature": "OptionalLong.of(long value)", "constructor": false, "full_signature": "public static OptionalLong of(long value)", "identifier": "of", "invocations": [], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_1
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalDoubleTest.java", "identifier": "OptionalDoubleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualsAnother() throws Exception {\n Assert.assertNotEquals(OptionalDouble.of(1.0), OptionalDouble.of(2.0));\n }", "class_method_signature": "OptionalDoubleTest.equalsOfValueDoesNotEqualsAnother()", "constructor": false, "full_signature": "@Test pu...
{ "fields": [ { "declarator": "EMPTY = new OptionalDouble(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalDouble EMPTY = new OptionalDouble(false, 0);", "type": "OptionalDouble", "var_name": "EMPTY" }, { "declarator": "is...
{ "body": "public static OptionalDouble of(double value) {\n return new OptionalDouble(true, value);\n }", "class_method_signature": "OptionalDouble.of(double value)", "constructor": false, "full_signature": "public static OptionalDouble of(double value)", "identifier": "of", "invocations": [], ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_2
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalDoubleTest.java", "identifier": "OptionalDoubleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsSameReference() throws Exception {\n OptionalDouble value = OptionalDouble.of(1.0);\n Assert.assertEquals(value, value);\n }", "class_method_signature": "OptionalDoubleTest.equalsSameReference()", "constructor": false, "full_signature": "@Test public void...
{ "fields": [ { "declarator": "EMPTY = new OptionalDouble(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalDouble EMPTY = new OptionalDouble(false, 0);", "type": "OptionalDouble", "var_name": "EMPTY" }, { "declarator": "is...
{ "body": "public static OptionalDouble of(double value) {\n return new OptionalDouble(true, value);\n }", "class_method_signature": "OptionalDouble.of(double value)", "constructor": false, "full_signature": "public static OptionalDouble of(double value)", "identifier": "of", "invocations": [], ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_12
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalLongTest.java", "identifier": "OptionalLongTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsSameReference() throws Exception {\n OptionalLong value = OptionalLong.of(1L);\n Assert.assertEquals(value, value);\n }", "class_method_signature": "OptionalLongTest.equalsSameReference()", "constructor": false, "full_signature": "@Test public void equals...
{ "fields": [ { "declarator": "EMPTY = new OptionalLong(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalLong EMPTY = new OptionalLong(false, 0);", "type": "OptionalLong", "var_name": "EMPTY" }, { "declarator": "isPresent"...
{ "body": "public static OptionalLong of(long value) {\n return new OptionalLong(true, value);\n }", "class_method_signature": "OptionalLong.of(long value)", "constructor": false, "full_signature": "public static OptionalLong of(long value)", "identifier": "of", "invocations": [], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_13
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalLongTest.java", "identifier": "OptionalLongTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueEqualsItself() throws Exception {\n Assert.assertEquals(OptionalLong.of(1L), OptionalLong.of(1L));\n }", "class_method_signature": "OptionalLongTest.equalsOfValueEqualsItself()", "constructor": false, "full_signature": "@Test public void equalsOfValueEqua...
{ "fields": [ { "declarator": "EMPTY = new OptionalLong(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalLong EMPTY = new OptionalLong(false, 0);", "type": "OptionalLong", "var_name": "EMPTY" }, { "declarator": "isPresent"...
{ "body": "public static OptionalLong of(long value) {\n return new OptionalLong(true, value);\n }", "class_method_signature": "OptionalLong.of(long value)", "constructor": false, "full_signature": "public static OptionalLong of(long value)", "identifier": "of", "invocations": [], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_3
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalDoubleTest.java", "identifier": "OptionalDoubleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueEqualsItself() throws Exception {\n Assert.assertEquals(OptionalDouble.of(1.0), OptionalDouble.of(1.0));\n }", "class_method_signature": "OptionalDoubleTest.equalsOfValueEqualsItself()", "constructor": false, "full_signature": "@Test public void equalsOfV...
{ "fields": [ { "declarator": "EMPTY = new OptionalDouble(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalDouble EMPTY = new OptionalDouble(false, 0);", "type": "OptionalDouble", "var_name": "EMPTY" }, { "declarator": "is...
{ "body": "public static OptionalDouble of(double value) {\n return new OptionalDouble(true, value);\n }", "class_method_signature": "OptionalDouble.of(double value)", "constructor": false, "full_signature": "public static OptionalDouble of(double value)", "identifier": "of", "invocations": [], ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_14
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalLongTest.java", "identifier": "OptionalLongTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualDifferentType() throws Exception {\n Assert.assertNotEquals(OptionalLong.of(1L), \"a\");\n }", "class_method_signature": "OptionalLongTest.equalsOfValueDoesNotEqualDifferentType()", "constructor": false, "full_signature": "@Test public void eq...
{ "fields": [ { "declarator": "EMPTY = new OptionalLong(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalLong EMPTY = new OptionalLong(false, 0);", "type": "OptionalLong", "var_name": "EMPTY" }, { "declarator": "isPresent"...
{ "body": "public static OptionalLong of(long value) {\n return new OptionalLong(true, value);\n }", "class_method_signature": "OptionalLong.of(long value)", "constructor": false, "full_signature": "public static OptionalLong of(long value)", "identifier": "of", "invocations": [], "modifiers": "...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_8
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalIntTest.java", "identifier": "OptionalIntTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueEqualsItself() throws Exception {\n Assert.assertEquals(OptionalInt.of(1), OptionalInt.of(1));\n }", "class_method_signature": "OptionalIntTest.equalsOfValueEqualsItself()", "constructor": false, "full_signature": "@Test public void equalsOfValueEqualsIts...
{ "fields": [ { "declarator": "EMPTY = new OptionalInt(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalInt EMPTY = new OptionalInt(false, 0);", "type": "OptionalInt", "var_name": "EMPTY" }, { "declarator": "isPresent", ...
{ "body": "public static OptionalInt of(int value) {\n return new OptionalInt(true, value);\n }", "class_method_signature": "OptionalInt.of(int value)", "constructor": false, "full_signature": "public static OptionalInt of(int value)", "identifier": "of", "invocations": [], "modifiers": "public ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_18
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalTest.java", "identifier": "OptionalTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueEqualsItself() throws Exception {\n Assert.assertEquals(Optional.of(1), Optional.of(1));\n }", "class_method_signature": "OptionalTest.equalsOfValueEqualsItself()", "constructor": false, "full_signature": "@Test public void equalsOfValueEqualsItself()", ...
{ "fields": [ { "declarator": "EMPTY = new Optional(null)", "modifier": "@SuppressWarnings(\"unchecked\")\n private static final", "original_string": "@SuppressWarnings(\"unchecked\")\n private static final Optional<?> EMPTY = new Optional(null);", "type": "Optional<?>", "var_n...
{ "body": "public static <T> Optional<T> of(T value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n return new Optional<T>(value);\n }", "class_method_signature": "Optional.of(T value)", "constructor": false, "full_signature": "public static Optional<T> o...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_4
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalDoubleTest.java", "identifier": "OptionalDoubleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualDifferentType() throws Exception {\n Assert.assertNotEquals(OptionalDouble.of(1.0), \"a\");\n }", "class_method_signature": "OptionalDoubleTest.equalsOfValueDoesNotEqualDifferentType()", "constructor": false, "full_signature": "@Test public vo...
{ "fields": [ { "declarator": "EMPTY = new OptionalDouble(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalDouble EMPTY = new OptionalDouble(false, 0);", "type": "OptionalDouble", "var_name": "EMPTY" }, { "declarator": "is...
{ "body": "public static OptionalDouble of(double value) {\n return new OptionalDouble(true, value);\n }", "class_method_signature": "OptionalDouble.of(double value)", "constructor": false, "full_signature": "public static OptionalDouble of(double value)", "identifier": "of", "invocations": [], ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_5
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalIntTest.java", "identifier": "OptionalIntTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void emptyIsSameInstanceEveryTime() {\n Assert.assertSame(OptionalInt.empty(), OptionalInt.empty());\n }", "class_method_signature": "OptionalIntTest.emptyIsSameInstanceEveryTime()", "constructor": false, "full_signature": "@Test public void emptyIsSameInstanceEveryTime()"...
{ "fields": [ { "declarator": "EMPTY = new OptionalInt(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalInt EMPTY = new OptionalInt(false, 0);", "type": "OptionalInt", "var_name": "EMPTY" }, { "declarator": "isPresent", ...
{ "body": "public static OptionalInt empty() {\n return EMPTY;\n }", "class_method_signature": "OptionalInt.empty()", "constructor": false, "full_signature": "public static OptionalInt empty()", "identifier": "empty", "invocations": [], "modifiers": "public static", "parameters": "()", "retu...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_19
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalTest.java", "identifier": "OptionalTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualDifferentType() throws Exception {\n Assert.assertNotEquals(Optional.of(1), \"a\");\n }", "class_method_signature": "OptionalTest.equalsOfValueDoesNotEqualDifferentType()", "constructor": false, "full_signature": "@Test public void equalsOfVal...
{ "fields": [ { "declarator": "EMPTY = new Optional(null)", "modifier": "@SuppressWarnings(\"unchecked\")\n private static final", "original_string": "@SuppressWarnings(\"unchecked\")\n private static final Optional<?> EMPTY = new Optional(null);", "type": "Optional<?>", "var_n...
{ "body": "public static <T> Optional<T> of(T value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n return new Optional<T>(value);\n }", "class_method_signature": "Optional.of(T value)", "constructor": false, "full_signature": "public static Optional<T> o...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_9
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalIntTest.java", "identifier": "OptionalIntTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalsOfValueDoesNotEqualDifferentType() throws Exception {\n Assert.assertNotEquals(OptionalInt.of(1), \"a\");\n }", "class_method_signature": "OptionalIntTest.equalsOfValueDoesNotEqualDifferentType()", "constructor": false, "full_signature": "@Test public void equal...
{ "fields": [ { "declarator": "EMPTY = new OptionalInt(false, 0)", "modifier": "private static final", "original_string": "private static final OptionalInt EMPTY = new OptionalInt(false, 0);", "type": "OptionalInt", "var_name": "EMPTY" }, { "declarator": "isPresent", ...
{ "body": "public static OptionalInt of(int value) {\n return new OptionalInt(true, value);\n }", "class_method_signature": "OptionalInt.of(int value)", "constructor": false, "full_signature": "public static OptionalInt of(int value)", "identifier": "of", "invocations": [], "modifiers": "public ...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
78162952_15
{ "fields": [], "file": "lib/src/test/java/com/github/dmstocking/optional/java/util/OptionalTest.java", "identifier": "OptionalTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void emptyIsSameInstanceEveryTime() {\n Assert.assertSame(Optional.empty(), Optional.empty());\n }", "class_method_signature": "OptionalTest.emptyIsSameInstanceEveryTime()", "constructor": false, "full_signature": "@Test public void emptyIsSameInstanceEveryTime()", "iden...
{ "fields": [ { "declarator": "EMPTY = new Optional(null)", "modifier": "@SuppressWarnings(\"unchecked\")\n private static final", "original_string": "@SuppressWarnings(\"unchecked\")\n private static final Optional<?> EMPTY = new Optional(null);", "type": "Optional<?>", "var_n...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static <T> Optional<T> empty() {\n return (Optional<T>) EMPTY;\n }", "class_method_signature": "Optional.empty()", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") public static Optional<T> empty()", "identifier": "empt...
{ "created": null, "fork": null, "fork_count": 1, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 78162952, "size": 84, "stargazer_count": 31, "stars": null, "updates": null, "url": "https://github.com/dmstocking/support-optional" }
47810463_5
{ "fields": [], "file": "bootique-job/src/test/java/io/bootique/job/value/CronTest.java", "identifier": "CronTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void expressionHashcode() {\n String expression1 = \"* * 8 0 * *\";\n String expression2 = \"* * 8 * 0 *\";\n String expression3 = \"* * 8 0 * *\";\n\n Cron cron1 = new Cron(expression1);\n Cron cron2 = new Cron(expression2);\n Cron cron3 = new Cr...
{ "fields": [ { "declarator": "expression", "modifier": "private", "original_string": "private String expression;", "type": "String", "var_name": "expression" } ], "file": "bootique-job/src/main/java/io/bootique/job/value/Cron.java", "identifier": "Cron", "interfaces": ""...
{ "body": "@Override\n\tpublic int hashCode() {\n\t\tif (expression == null) {\n\t\t\treturn 0;\n\t\t}\n\n\t\treturn Objects.hash(expression);\n\t}", "class_method_signature": "Cron.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "invocations...
{ "created": null, "fork": null, "fork_count": 12, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 47810463, "size": 543, "stargazer_count": 6, "stars": null, "updates": null, "url": "https://github.com/bootique/bootique-job" }