id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
150677892_93
{ "fields": [], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java", "identifier": "CanonFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getCanonLibrary() {\n final CanonLibrary canonLibrary = CanonFactory.getCanonFactory().getCanonLibrary();\n assertNotNull(canonLibrary);\n\n final CanonLibrary shortcut = CanonFactory.canonLibrary();\n assertSame(canonLibrary, shortcut);\n }", "class_method_signature": "CanonFactoryTest.getCanonLibrary()", "constructor": false, "full_signature": "@Test void getCanonLibrary()", "identifier": "getCanonLibrary", "invocations": [ "getCanonLibrary", "getCanonFactory", "assertNotNull", "canonLibrary", "assertSame" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getCanonLibrary()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(CanonFactory.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);", "type": "Logger", "var_name": "log" }, { "declarator": "factoryChangedCount = new AtomicInteger(0)", "modifier": "private static final", "original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);", "type": "AtomicInteger", "var_name": "factoryChangedCount" }, { "declarator": "canonFactory = new CanonFactory()", "modifier": "private static", "original_string": "private static CanonFactory canonFactory = new CanonFactory();", "type": "CanonFactory", "var_name": "canonFactory" }, { "declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()", "modifier": "private static final", "original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();", "type": "CommandDispatcher", "var_name": "commandDispatcher" }, { "declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()", "modifier": "private static final", "original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();", "type": "EventFetcherLogic", "var_name": "eventFetcherLogic" }, { "declarator": "canonLibrary = new CanonLibraryImpl()", "modifier": "private static final", "original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();", "type": "CanonLibrary", "var_name": "canonLibrary" }, { "declarator": "cameraLogic = new CameraLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();", "type": "CameraLogic", "var_name": "cameraLogic" }, { "declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();", "type": "CameraAddedEventLogic", "var_name": "cameraAddedEventLogic" }, { "declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();", "type": "CameraObjectEventLogic", "var_name": "cameraObjectEventLogic" }, { "declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();", "type": "CameraPropertyEventLogic", "var_name": "cameraPropertyEventLogic" }, { "declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();", "type": "CameraStateEventLogic", "var_name": "cameraStateEventLogic" }, { "declarator": "propertyLogic = new PropertyLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();", "type": "PropertyLogic", "var_name": "propertyLogic" }, { "declarator": "propertyDescLogic = new PropertyDescLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();", "type": "PropertyDescLogic", "var_name": "propertyDescLogic" }, { "declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();", "type": "PropertyDescShortcutLogic", "var_name": "propertyDescShortcutLogic" }, { "declarator": "propertyGetLogic = new PropertyGetLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();", "type": "PropertyGetLogic", "var_name": "propertyGetLogic" }, { "declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();", "type": "PropertyGetShortcutLogic", "var_name": "propertyGetShortcutLogic" }, { "declarator": "propertySetLogic = new PropertySetLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();", "type": "PropertySetLogic", "var_name": "propertySetLogic" }, { "declarator": "liveViewLogic = new LiveViewLogicDefault()", "modifier": "private static final", "original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();", "type": "LiveViewLogic", "var_name": "liveViewLogic" }, { "declarator": "shootLogic = new ShootLogicDefault()", "modifier": "private static final", "original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();", "type": "ShootLogic", "var_name": "shootLogic" }, { "declarator": "fileLogic = new FileLogicDefault()", "modifier": "private static final", "original_string": "private static final FileLogic fileLogic = new FileLogicDefault();", "type": "FileLogic", "var_name": "fileLogic" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java", "identifier": "CanonFactory", "interfaces": "", "methods": [ { "class_method_signature": "CanonFactory.CanonFactory()", "constructor": true, "full_signature": "protected CanonFactory()", "identifier": "CanonFactory", "modifiers": "protected", "parameters": "()", "return": "", "signature": " CanonFactory()", "testcase": false }, { "class_method_signature": "CanonFactory.getCanonFactory()", "constructor": false, "full_signature": "public static CanonFactory getCanonFactory()", "identifier": "getCanonFactory", "modifiers": "public static", "parameters": "()", "return": "CanonFactory", "signature": "CanonFactory getCanonFactory()", "testcase": false }, { "class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)", "constructor": false, "full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)", "identifier": "setCanonFactory", "modifiers": "public static", "parameters": "(final CanonFactory canonFactory)", "return": "void", "signature": "void setCanonFactory(final CanonFactory canonFactory)", "testcase": false }, { "class_method_signature": "CanonFactory.commandDispatcher()", "constructor": false, "full_signature": "public static CommandDispatcher commandDispatcher()", "identifier": "commandDispatcher", "modifiers": "public static", "parameters": "()", "return": "CommandDispatcher", "signature": "CommandDispatcher commandDispatcher()", "testcase": false }, { "class_method_signature": "CanonFactory.eventFetcherLogic()", "constructor": false, "full_signature": "public static EventFetcherLogic eventFetcherLogic()", "identifier": "eventFetcherLogic", "modifiers": "public static", "parameters": "()", "return": "EventFetcherLogic", "signature": "EventFetcherLogic eventFetcherLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.edsdkLibrary()", "constructor": false, "full_signature": "public static EdsdkLibrary edsdkLibrary()", "identifier": "edsdkLibrary", "modifiers": "public static", "parameters": "()", "return": "EdsdkLibrary", "signature": "EdsdkLibrary edsdkLibrary()", "testcase": false }, { "class_method_signature": "CanonFactory.canonLibrary()", "constructor": false, "full_signature": "public static CanonLibrary canonLibrary()", "identifier": "canonLibrary", "modifiers": "public static", "parameters": "()", "return": "CanonLibrary", "signature": "CanonLibrary canonLibrary()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraLogic()", "constructor": false, "full_signature": "public static CameraLogic cameraLogic()", "identifier": "cameraLogic", "modifiers": "public static", "parameters": "()", "return": "CameraLogic", "signature": "CameraLogic cameraLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraAddedEventLogic()", "constructor": false, "full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()", "identifier": "cameraAddedEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraAddedEventLogic", "signature": "CameraAddedEventLogic cameraAddedEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraObjectEventLogic()", "constructor": false, "full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()", "identifier": "cameraObjectEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraObjectEventLogic", "signature": "CameraObjectEventLogic cameraObjectEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraPropertyEventLogic()", "constructor": false, "full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()", "identifier": "cameraPropertyEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraPropertyEventLogic", "signature": "CameraPropertyEventLogic cameraPropertyEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraStateEventLogic()", "constructor": false, "full_signature": "public static CameraStateEventLogic cameraStateEventLogic()", "identifier": "cameraStateEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraStateEventLogic", "signature": "CameraStateEventLogic cameraStateEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyLogic()", "constructor": false, "full_signature": "public static PropertyLogic propertyLogic()", "identifier": "propertyLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyLogic", "signature": "PropertyLogic propertyLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyDescLogic()", "constructor": false, "full_signature": "public static PropertyDescLogic propertyDescLogic()", "identifier": "propertyDescLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyDescLogic", "signature": "PropertyDescLogic propertyDescLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyDescShortcutLogic()", "constructor": false, "full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()", "identifier": "propertyDescShortcutLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyDescShortcutLogic", "signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyGetLogic()", "constructor": false, "full_signature": "public static PropertyGetLogic propertyGetLogic()", "identifier": "propertyGetLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyGetLogic", "signature": "PropertyGetLogic propertyGetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyGetShortcutLogic()", "constructor": false, "full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()", "identifier": "propertyGetShortcutLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyGetShortcutLogic", "signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertySetLogic()", "constructor": false, "full_signature": "public static PropertySetLogic propertySetLogic()", "identifier": "propertySetLogic", "modifiers": "public static", "parameters": "()", "return": "PropertySetLogic", "signature": "PropertySetLogic propertySetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.liveViewLogic()", "constructor": false, "full_signature": "public static LiveViewLogic liveViewLogic()", "identifier": "liveViewLogic", "modifiers": "public static", "parameters": "()", "return": "LiveViewLogic", "signature": "LiveViewLogic liveViewLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.shootLogic()", "constructor": false, "full_signature": "public static ShootLogic shootLogic()", "identifier": "shootLogic", "modifiers": "public static", "parameters": "()", "return": "ShootLogic", "signature": "ShootLogic shootLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.fileLogic()", "constructor": false, "full_signature": "public static FileLogic fileLogic()", "identifier": "fileLogic", "modifiers": "public static", "parameters": "()", "return": "FileLogic", "signature": "FileLogic fileLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCommandDispatcher()", "constructor": false, "full_signature": "public CommandDispatcher getCommandDispatcher()", "identifier": "getCommandDispatcher", "modifiers": "public", "parameters": "()", "return": "CommandDispatcher", "signature": "CommandDispatcher getCommandDispatcher()", "testcase": false }, { "class_method_signature": "CanonFactory.getEventFetcherLogic()", "constructor": false, "full_signature": "public EventFetcherLogic getEventFetcherLogic()", "identifier": "getEventFetcherLogic", "modifiers": "public", "parameters": "()", "return": "EventFetcherLogic", "signature": "EventFetcherLogic getEventFetcherLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCanonLibrary()", "constructor": false, "full_signature": "public CanonLibrary getCanonLibrary()", "identifier": "getCanonLibrary", "modifiers": "public", "parameters": "()", "return": "CanonLibrary", "signature": "CanonLibrary getCanonLibrary()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraLogic()", "constructor": false, "full_signature": "public CameraLogic getCameraLogic()", "identifier": "getCameraLogic", "modifiers": "public", "parameters": "()", "return": "CameraLogic", "signature": "CameraLogic getCameraLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraAddedEventLogic()", "constructor": false, "full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()", "identifier": "getCameraAddedEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraAddedEventLogic", "signature": "CameraAddedEventLogic getCameraAddedEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraObjectEventLogic()", "constructor": false, "full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()", "identifier": "getCameraObjectEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraObjectEventLogic", "signature": "CameraObjectEventLogic getCameraObjectEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraPropertyEventLogic()", "constructor": false, "full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()", "identifier": "getCameraPropertyEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraPropertyEventLogic", "signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraStateEventLogic()", "constructor": false, "full_signature": "public CameraStateEventLogic getCameraStateEventLogic()", "identifier": "getCameraStateEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraStateEventLogic", "signature": "CameraStateEventLogic getCameraStateEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyLogic()", "constructor": false, "full_signature": "public PropertyLogic getPropertyLogic()", "identifier": "getPropertyLogic", "modifiers": "public", "parameters": "()", "return": "PropertyLogic", "signature": "PropertyLogic getPropertyLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyDescLogic()", "constructor": false, "full_signature": "public PropertyDescLogic getPropertyDescLogic()", "identifier": "getPropertyDescLogic", "modifiers": "public", "parameters": "()", "return": "PropertyDescLogic", "signature": "PropertyDescLogic getPropertyDescLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()", "constructor": false, "full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()", "identifier": "getPropertyDescShortcutLogic", "modifiers": "public", "parameters": "()", "return": "PropertyDescShortcutLogic", "signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyGetLogic()", "constructor": false, "full_signature": "public PropertyGetLogic getPropertyGetLogic()", "identifier": "getPropertyGetLogic", "modifiers": "public", "parameters": "()", "return": "PropertyGetLogic", "signature": "PropertyGetLogic getPropertyGetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()", "constructor": false, "full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()", "identifier": "getPropertyGetShortcutLogic", "modifiers": "public", "parameters": "()", "return": "PropertyGetShortcutLogic", "signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertySetLogic()", "constructor": false, "full_signature": "public PropertySetLogic getPropertySetLogic()", "identifier": "getPropertySetLogic", "modifiers": "public", "parameters": "()", "return": "PropertySetLogic", "signature": "PropertySetLogic getPropertySetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getLiveViewLogic()", "constructor": false, "full_signature": "public LiveViewLogic getLiveViewLogic()", "identifier": "getLiveViewLogic", "modifiers": "public", "parameters": "()", "return": "LiveViewLogic", "signature": "LiveViewLogic getLiveViewLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getShootLogic()", "constructor": false, "full_signature": "public ShootLogic getShootLogic()", "identifier": "getShootLogic", "modifiers": "public", "parameters": "()", "return": "ShootLogic", "signature": "ShootLogic getShootLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getFileLogic()", "constructor": false, "full_signature": "public FileLogic getFileLogic()", "identifier": "getFileLogic", "modifiers": "public", "parameters": "()", "return": "FileLogic", "signature": "FileLogic getFileLogic()", "testcase": false } ], "superclass": "" }
{ "body": "public CanonLibrary getCanonLibrary() {\n return canonLibrary;\n }", "class_method_signature": "CanonFactory.getCanonLibrary()", "constructor": false, "full_signature": "public CanonLibrary getCanonLibrary()", "identifier": "getCanonLibrary", "invocations": [], "modifiers": "public", "parameters": "()", "return": "CanonLibrary", "signature": "CanonLibrary getCanonLibrary()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_109
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "objectEvent", "modifier": "private", "original_string": "private EdsObjectEvent objectEvent;", "type": "EdsObjectEvent", "var_name": "objectEvent" }, { "declarator": "baseRef", "modifier": "private", "original_string": "private EdsBaseRef baseRef;", "type": "EdsBaseRef", "var_name": "baseRef" }, { "declarator": "canonObjectEvent", "modifier": "private", "original_string": "private CanonObjectEventImpl canonObjectEvent;", "type": "CanonObjectEventImpl", "var_name": "canonObjectEvent" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImplTest.java", "identifier": "CanonObjectEventImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getObjectEvent() {\n final EdsObjectEvent event = canonObjectEvent.getObjectEvent();\n Assertions.assertNotNull(event);\n Assertions.assertEquals(objectEvent, event);\n Assertions.assertSame(objectEvent, canonObjectEvent.getObjectEvent());\n }", "class_method_signature": "CanonObjectEventImplTest.getObjectEvent()", "constructor": false, "full_signature": "@Test void getObjectEvent()", "identifier": "getObjectEvent", "invocations": [ "getObjectEvent", "assertNotNull", "assertEquals", "assertSame", "getObjectEvent" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getObjectEvent()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef", "modifier": "private final", "original_string": "private final EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "objectEvent", "modifier": "private final", "original_string": "private final EdsObjectEvent objectEvent;", "type": "EdsObjectEvent", "var_name": "objectEvent" }, { "declarator": "baseRef", "modifier": "private final", "original_string": "private final EdsBaseRef baseRef;", "type": "EdsBaseRef", "var_name": "baseRef" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImpl.java", "identifier": "CanonObjectEventImpl", "interfaces": "implements CanonObjectEvent", "methods": [ { "class_method_signature": "CanonObjectEventImpl.CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "constructor": true, "full_signature": "public CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "identifier": "CanonObjectEventImpl", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "return": "", "signature": " CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.getObjectEvent()", "constructor": false, "full_signature": "@Override public EdsObjectEvent getObjectEvent()", "identifier": "getObjectEvent", "modifiers": "@Override public", "parameters": "()", "return": "EdsObjectEvent", "signature": "EdsObjectEvent getObjectEvent()", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.getBaseRef()", "constructor": false, "full_signature": "@Override public EdsBaseRef getBaseRef()", "identifier": "getBaseRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getBaseRef()", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public EdsObjectEvent getObjectEvent() {\n return objectEvent;\n }", "class_method_signature": "CanonObjectEventImpl.getObjectEvent()", "constructor": false, "full_signature": "@Override public EdsObjectEvent getObjectEvent()", "identifier": "getObjectEvent", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EdsObjectEvent", "signature": "EdsObjectEvent getObjectEvent()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_85
{ "fields": [ { "declarator": "cameraDefaultConstructor", "modifier": "private", "original_string": "private CanonCamera cameraDefaultConstructor;", "type": "CanonCamera", "var_name": "cameraDefaultConstructor" }, { "declarator": "cameraWithSerialNumber", "modifier": "private", "original_string": "private CanonCamera cameraWithSerialNumber;", "type": "CanonCamera", "var_name": "cameraWithSerialNumber" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java", "identifier": "CanonCameraTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void toStringOk() {\n Assertions.assertNotNull(cameraDefaultConstructor.toString());\n Assertions.assertNotNull(cameraWithSerialNumber.toString());\n }", "class_method_signature": "CanonCameraTest.toStringOk()", "constructor": false, "full_signature": "@Test void toStringOk()", "identifier": "toStringOk", "invocations": [ "assertNotNull", "toString", "assertNotNull", "toString" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void toStringOk()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef = new AtomicReference<>()", "modifier": "private final", "original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();", "type": "AtomicReference<EdsCameraRef>", "var_name": "cameraRef" }, { "declarator": "commandBuilderReusable", "modifier": "private", "original_string": "private CommandBuilderReusable commandBuilderReusable;", "type": "CommandBuilderReusable", "var_name": "commandBuilderReusable" }, { "declarator": "lockBuilderUse = new Object()", "modifier": "private final", "original_string": "private final Object lockBuilderUse = new Object();", "type": "Object", "var_name": "lockBuilderUse" }, { "declarator": "defaultTimeout", "modifier": "private", "original_string": "private Duration defaultTimeout;", "type": "Duration", "var_name": "defaultTimeout" }, { "declarator": "event = new Event()", "modifier": "private final", "original_string": "private final Event event = new Event();", "type": "Event", "var_name": "event" }, { "declarator": "shoot = new Shoot()", "modifier": "private final", "original_string": "private final Shoot shoot = new Shoot();", "type": "Shoot", "var_name": "shoot" }, { "declarator": "liveView = new LiveView()", "modifier": "private final", "original_string": "private final LiveView liveView = new LiveView();", "type": "LiveView", "var_name": "liveView" }, { "declarator": "property = new Property()", "modifier": "private final", "original_string": "private final Property property = new Property();", "type": "Property", "var_name": "property" }, { "declarator": "serialNumber", "modifier": "private", "original_string": "private String serialNumber;", "type": "String", "var_name": "serialNumber" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java", "identifier": "CanonCamera", "interfaces": "", "methods": [ { "class_method_signature": "CanonCamera.CanonCamera()", "constructor": true, "full_signature": "public CanonCamera()", "identifier": "CanonCamera", "modifiers": "public", "parameters": "()", "return": "", "signature": " CanonCamera()", "testcase": false }, { "class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)", "constructor": true, "full_signature": "public CanonCamera(final String serialNumber)", "identifier": "CanonCamera", "modifiers": "public", "parameters": "(final String serialNumber)", "return": "", "signature": " CanonCamera(final String serialNumber)", "testcase": false }, { "class_method_signature": "CanonCamera.applyTarget(final T command)", "constructor": false, "full_signature": "protected T applyTarget(final T command)", "identifier": "applyTarget", "modifiers": "protected", "parameters": "(final T command)", "return": "T", "signature": "T applyTarget(final T command)", "testcase": false }, { "class_method_signature": "CanonCamera.applyExtraOptions(final T command)", "constructor": false, "full_signature": "protected T applyExtraOptions(final T command)", "identifier": "applyExtraOptions", "modifiers": "protected", "parameters": "(final T command)", "return": "T", "signature": "T applyExtraOptions(final T command)", "testcase": false }, { "class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)", "identifier": "applyDefaultCommandDecoration", "modifiers": "@SuppressWarnings(\"unchecked\") protected", "parameters": "(final T command)", "return": "T", "signature": "T applyDefaultCommandDecoration(final T command)", "testcase": false }, { "class_method_signature": "CanonCamera.dispatchCommand(T command)", "constructor": false, "full_signature": "public T dispatchCommand(T command)", "identifier": "dispatchCommand", "modifiers": "public", "parameters": "(T command)", "return": "T", "signature": "T dispatchCommand(T command)", "testcase": false }, { "class_method_signature": "CanonCamera.getCameraRef()", "constructor": false, "full_signature": "public Optional<EdsCameraRef> getCameraRef()", "identifier": "getCameraRef", "modifiers": "public", "parameters": "()", "return": "Optional<EdsCameraRef>", "signature": "Optional<EdsCameraRef> getCameraRef()", "testcase": false }, { "class_method_signature": "CanonCamera.getCameraRefInternal()", "constructor": false, "full_signature": "protected EdsCameraRef getCameraRefInternal()", "identifier": "getCameraRefInternal", "modifiers": "protected", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRefInternal()", "testcase": false }, { "class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)", "constructor": false, "full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)", "identifier": "setCameraRef", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef)", "return": "CanonCamera", "signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)", "testcase": false }, { "class_method_signature": "CanonCamera.getSerialNumber()", "constructor": false, "full_signature": "public Optional<String> getSerialNumber()", "identifier": "getSerialNumber", "modifiers": "public", "parameters": "()", "return": "Optional<String>", "signature": "Optional<String> getSerialNumber()", "testcase": false }, { "class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)", "constructor": false, "full_signature": "public void setSerialNumber(final String serialNumber)", "identifier": "setSerialNumber", "modifiers": "public", "parameters": "(final String serialNumber)", "return": "void", "signature": "void setSerialNumber(final String serialNumber)", "testcase": false }, { "class_method_signature": "CanonCamera.getCommandBuilderReusable()", "constructor": false, "full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()", "identifier": "getCommandBuilderReusable", "modifiers": "public", "parameters": "()", "return": "Optional<CommandBuilderReusable>", "signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()", "testcase": false }, { "class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)", "constructor": false, "full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)", "identifier": "setCommandBuilderReusable", "modifiers": "public", "parameters": "(final CommandBuilderReusable commandBuilderReusable)", "return": "void", "signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)", "testcase": false }, { "class_method_signature": "CanonCamera.getDefaultTimeout()", "constructor": false, "full_signature": "public Optional<Duration> getDefaultTimeout()", "identifier": "getDefaultTimeout", "modifiers": "public", "parameters": "()", "return": "Optional<Duration>", "signature": "Optional<Duration> getDefaultTimeout()", "testcase": false }, { "class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)", "constructor": false, "full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)", "identifier": "setDefaultTimeout", "modifiers": "public", "parameters": "(final Duration defaultTimeout)", "return": "CanonCamera", "signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)", "testcase": false }, { "class_method_signature": "CanonCamera.getEvent()", "constructor": false, "full_signature": "public Event getEvent()", "identifier": "getEvent", "modifiers": "public", "parameters": "()", "return": "Event", "signature": "Event getEvent()", "testcase": false }, { "class_method_signature": "CanonCamera.getShoot()", "constructor": false, "full_signature": "public Shoot getShoot()", "identifier": "getShoot", "modifiers": "public", "parameters": "()", "return": "Shoot", "signature": "Shoot getShoot()", "testcase": false }, { "class_method_signature": "CanonCamera.getLiveView()", "constructor": false, "full_signature": "public LiveView getLiveView()", "identifier": "getLiveView", "modifiers": "public", "parameters": "()", "return": "LiveView", "signature": "LiveView getLiveView()", "testcase": false }, { "class_method_signature": "CanonCamera.getProperty()", "constructor": false, "full_signature": "public Property getProperty()", "identifier": "getProperty", "modifiers": "public", "parameters": "()", "return": "Property", "signature": "Property getProperty()", "testcase": false }, { "class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)", "constructor": false, "full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)", "identifier": "sendGenericCommandAsync", "modifiers": "public", "parameters": "(final GenericCommand<R> command)", "return": "GenericCommand<R>", "signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)", "testcase": false }, { "class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)", "constructor": false, "full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)", "identifier": "sendGenericCommandAsync", "modifiers": "public", "parameters": "(final CallableCommand<R> callableCommand)", "return": "GenericCommand<R>", "signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)", "testcase": false }, { "class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)", "constructor": false, "full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)", "identifier": "sendCameraCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraCommand cameraCommand)", "return": "CameraCommand", "signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)", "testcase": false }, { "class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "constructor": false, "full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "identifier": "sendCameraCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "return": "CameraCommand", "signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "testcase": false }, { "class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)", "constructor": false, "full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)", "identifier": "sendCameraCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraCommand cameraCommand, final long inParam)", "return": "CameraCommand", "signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)", "testcase": false }, { "class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)", "constructor": false, "full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)", "identifier": "sendStatusCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraStatusCommand statusCommand)", "return": "StatusCommand", "signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)", "testcase": false }, { "class_method_signature": "CanonCamera.isConnectedAsync()", "constructor": false, "full_signature": "public IsConnectedCommand isConnectedAsync()", "identifier": "isConnectedAsync", "modifiers": "public", "parameters": "()", "return": "IsConnectedCommand", "signature": "IsConnectedCommand isConnectedAsync()", "testcase": false }, { "class_method_signature": "CanonCamera.openSession()", "constructor": false, "full_signature": "public OpenSessionCommand openSession()", "identifier": "openSession", "modifiers": "public", "parameters": "()", "return": "OpenSessionCommand", "signature": "OpenSessionCommand openSession()", "testcase": false }, { "class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)", "constructor": false, "full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)", "identifier": "openSession", "modifiers": "public", "parameters": "(final OpenSessionOption option)", "return": "OpenSessionCommand", "signature": "OpenSessionCommand openSession(final OpenSessionOption option)", "testcase": false }, { "class_method_signature": "CanonCamera.closeSession()", "constructor": false, "full_signature": "public CloseSessionCommand closeSession()", "identifier": "closeSession", "modifiers": "public", "parameters": "()", "return": "CloseSessionCommand", "signature": "CloseSessionCommand closeSession()", "testcase": false }, { "class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)", "constructor": false, "full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)", "identifier": "closeSession", "modifiers": "public", "parameters": "(final CloseSessionOption option)", "return": "CloseSessionCommand", "signature": "CloseSessionCommand closeSession(final CloseSessionOption option)", "testcase": false }, { "class_method_signature": "CanonCamera.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public String toString() {\n return \"CanonCamera{\" +\n \"cameraRef=\" + cameraRef.get() +\n \", commandBuilderReusable=\" + commandBuilderReusable +\n \", defaultTimeout=\" + defaultTimeout +\n \", serialNumber='\" + serialNumber + '\\'' +\n '}';\n }", "class_method_signature": "CanonCamera.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "get" ], "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_6
{ "fields": [ { "declarator": "countOnly", "modifier": "private", "original_string": "private NameToBeDefined countOnly;", "type": "NameToBeDefined", "var_name": "countOnly" }, { "declarator": "throwRuntime", "modifier": "private", "original_string": "private NameToBeDefined throwRuntime;", "type": "NameToBeDefined", "var_name": "throwRuntime" }, { "declarator": "throwBusy", "modifier": "private", "original_string": "private NameToBeDefined throwBusy;", "type": "NameToBeDefined", "var_name": "throwBusy" }, { "declarator": "throwCommUsbBus", "modifier": "private", "original_string": "private NameToBeDefined throwCommUsbBus;", "type": "NameToBeDefined", "var_name": "throwCommUsbBus" }, { "declarator": "count = new AtomicInteger(0)", "modifier": "private final", "original_string": "private final AtomicInteger count = new AtomicInteger(0);", "type": "AtomicInteger", "var_name": "count" }, { "declarator": "countThrows = new AtomicInteger(0)", "modifier": "private final", "original_string": "private final AtomicInteger countThrows = new AtomicInteger(0);", "type": "AtomicInteger", "var_name": "countThrows" }, { "declarator": "countRunOnError = new AtomicInteger(0)", "modifier": "private final", "original_string": "private final AtomicInteger countRunOnError = new AtomicInteger(0);", "type": "AtomicInteger", "var_name": "countRunOnError" }, { "declarator": "runOnError = countRunOnError::incrementAndGet", "modifier": "private final", "original_string": "private final Runnable runOnError = countRunOnError::incrementAndGet;", "type": "Runnable", "var_name": "runOnError" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/NameToBeDefinedTest.java", "identifier": "NameToBeDefinedTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void handleWithReturnValue() {\n final Boolean handle = throwRuntime\n .handle(throwable -> true);\n\n Assertions.assertTrue(handle);\n\n final Boolean handle2 = countOnly\n .handle(throwable -> true);\n\n Assertions.assertNull(handle2);\n }", "class_method_signature": "NameToBeDefinedTest.handleWithReturnValue()", "constructor": false, "full_signature": "@Test void handleWithReturnValue()", "identifier": "handleWithReturnValue", "invocations": [ "handle", "assertTrue", "handle", "assertNull" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void handleWithReturnValue()", "testcase": true }
{ "fields": [ { "declarator": "DEFAULT_DELAY_MILLIS = 200", "modifier": "private static final", "original_string": "private static final int DEFAULT_DELAY_MILLIS = 200;", "type": "int", "var_name": "DEFAULT_DELAY_MILLIS" }, { "declarator": "runnable", "modifier": "private final", "original_string": "private final Runnable runnable;", "type": "Runnable", "var_name": "runnable" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/NameToBeDefined.java", "identifier": "NameToBeDefined", "interfaces": "implements Runnable", "methods": [ { "class_method_signature": "NameToBeDefined.wrap(final Runnable runnableToDecorate)", "constructor": false, "full_signature": "public static NameToBeDefined wrap(final Runnable runnableToDecorate)", "identifier": "wrap", "modifiers": "public static", "parameters": "(final Runnable runnableToDecorate)", "return": "NameToBeDefined", "signature": "NameToBeDefined wrap(final Runnable runnableToDecorate)", "testcase": false }, { "class_method_signature": "NameToBeDefined.NameToBeDefined(Runnable runnableToDecorate)", "constructor": true, "full_signature": "protected NameToBeDefined(Runnable runnableToDecorate)", "identifier": "NameToBeDefined", "modifiers": "protected", "parameters": "(Runnable runnableToDecorate)", "return": "", "signature": " NameToBeDefined(Runnable runnableToDecorate)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnBusy()", "constructor": false, "full_signature": "public NameToBeDefined retryOnBusy()", "identifier": "retryOnBusy", "modifiers": "public", "parameters": "()", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnBusy()", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis)", "constructor": false, "full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis)", "identifier": "retryOnBusy", "modifiers": "public", "parameters": "(final long delayMillis)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnBusy(final long delayMillis)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnBusy(final long... delayMillis)", "constructor": false, "full_signature": "public NameToBeDefined retryOnBusy(final long... delayMillis)", "identifier": "retryOnBusy", "modifiers": "public", "parameters": "(final long... delayMillis)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnBusy(final long... delayMillis)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnBusy(final long delayMillis, final int retryTimes)", "constructor": false, "full_signature": "public NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)", "identifier": "retryOnBusy", "modifiers": "public", "parameters": "(final long delayMillis, final int retryTimes)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnBusy(final long delayMillis, final int retryTimes)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError errors)", "constructor": false, "full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)", "identifier": "retryOnError", "modifiers": "public", "parameters": "(final long delayMillis, final EdsdkError errors)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError errors)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final EdsdkError... errors)", "constructor": false, "full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)", "identifier": "retryOnError", "modifiers": "public", "parameters": "(final long delayMillis, final EdsdkError... errors)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnError(final long delayMillis, final EdsdkError... errors)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)", "constructor": false, "full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)", "identifier": "retryOnError", "modifiers": "public", "parameters": "(final long delayMillis, final int retryTimes, final EdsdkError errors)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError errors)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)", "constructor": false, "full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)", "identifier": "retryOnError", "modifiers": "public", "parameters": "(final long delayMillis, final int retryTimes, final EdsdkError... errors)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final EdsdkError... errors)", "testcase": false }, { "class_method_signature": "NameToBeDefined.retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)", "constructor": false, "full_signature": "public NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)", "identifier": "retryOnError", "modifiers": "public", "parameters": "(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)", "return": "NameToBeDefined", "signature": "NameToBeDefined retryOnError(final long delayMillis, final int retryTimes, final List<EdsdkError> errors)", "testcase": false }, { "class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError error)", "constructor": false, "full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)", "identifier": "runOnError", "modifiers": "public", "parameters": "(final Runnable runOnError, final EdsdkError error)", "return": "NameToBeDefined", "signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError error)", "testcase": false }, { "class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final EdsdkError... errors)", "constructor": false, "full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)", "identifier": "runOnError", "modifiers": "public", "parameters": "(final Runnable runOnError, final EdsdkError... errors)", "return": "NameToBeDefined", "signature": "NameToBeDefined runOnError(final Runnable runOnError, final EdsdkError... errors)", "testcase": false }, { "class_method_signature": "NameToBeDefined.runOnError(final Runnable runOnError, final List<EdsdkError> errors)", "constructor": false, "full_signature": "public NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)", "identifier": "runOnError", "modifiers": "public", "parameters": "(final Runnable runOnError, final List<EdsdkError> errors)", "return": "NameToBeDefined", "signature": "NameToBeDefined runOnError(final Runnable runOnError, final List<EdsdkError> errors)", "testcase": false }, { "class_method_signature": "NameToBeDefined.run()", "constructor": false, "full_signature": "@Override public void run()", "identifier": "run", "modifiers": "@Override public", "parameters": "()", "return": "void", "signature": "void run()", "testcase": false }, { "class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)", "constructor": false, "full_signature": "public void handle(Consumer<Throwable> consumer)", "identifier": "handle", "modifiers": "public", "parameters": "(Consumer<Throwable> consumer)", "return": "void", "signature": "void handle(Consumer<Throwable> consumer)", "testcase": false }, { "class_method_signature": "NameToBeDefined.handle(Function<Throwable, R> function)", "constructor": false, "full_signature": "public R handle(Function<Throwable, R> function)", "identifier": "handle", "modifiers": "public", "parameters": "(Function<Throwable, R> function)", "return": "R", "signature": "R handle(Function<Throwable, R> function)", "testcase": false }, { "class_method_signature": "NameToBeDefined.sleep(final long millis)", "constructor": false, "full_signature": "private boolean sleep(final long millis)", "identifier": "sleep", "modifiers": "private", "parameters": "(final long millis)", "return": "boolean", "signature": "boolean sleep(final long millis)", "testcase": false } ], "superclass": "" }
{ "body": "public void handle(Consumer<Throwable> consumer) {\n try {\n runnable.run();\n } catch (Throwable t) {\n consumer.accept(t);\n }\n }", "class_method_signature": "NameToBeDefined.handle(Consumer<Throwable> consumer)", "constructor": false, "full_signature": "public void handle(Consumer<Throwable> consumer)", "identifier": "handle", "invocations": [ "run", "accept" ], "modifiers": "public", "parameters": "(Consumer<Throwable> consumer)", "return": "void", "signature": "void handle(Consumer<Throwable> consumer)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_70
{ "fields": [], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/TargetRefAccessTypeTest.java", "identifier": "TargetRefAccessTypeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void hasWrite() {\n Assertions.assertTrue(CAMERA_READ_WRITE.hasWrite());\n Assertions.assertTrue(CAMERA_WRITE.hasWrite());\n Assertions.assertTrue(IMAGE_READ_WRITE.hasWrite());\n Assertions.assertTrue(IMAGE_WRITE.hasWrite());\n\n Assertions.assertFalse(CAMERA_READ.hasWrite());\n Assertions.assertFalse(IMAGE_READ.hasWrite());\n Assertions.assertFalse(EVF_IMAGE_READ.hasWrite());\n }", "class_method_signature": "TargetRefAccessTypeTest.hasWrite()", "constructor": false, "full_signature": "@Test void hasWrite()", "identifier": "hasWrite", "invocations": [ "assertTrue", "hasWrite", "assertTrue", "hasWrite", "assertTrue", "hasWrite", "assertTrue", "hasWrite", "assertFalse", "hasWrite", "assertFalse", "hasWrite", "assertFalse", "hasWrite" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void hasWrite()", "testcase": true }
{ "fields": [ { "declarator": "CAMERA_READ = new TargetRefAccessType(CAMERA, true, false)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType CAMERA_READ = new TargetRefAccessType(CAMERA, true, false);", "type": "TargetRefAccessType", "var_name": "CAMERA_READ" }, { "declarator": "CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true);", "type": "TargetRefAccessType", "var_name": "CAMERA_READ_WRITE" }, { "declarator": "CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true);", "type": "TargetRefAccessType", "var_name": "CAMERA_WRITE" }, { "declarator": "IMAGE_READ = new TargetRefAccessType(IMAGE, true, false)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType IMAGE_READ = new TargetRefAccessType(IMAGE, true, false);", "type": "TargetRefAccessType", "var_name": "IMAGE_READ" }, { "declarator": "IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true);", "type": "TargetRefAccessType", "var_name": "IMAGE_READ_WRITE" }, { "declarator": "IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true);", "type": "TargetRefAccessType", "var_name": "IMAGE_WRITE" }, { "declarator": "EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false);", "type": "TargetRefAccessType", "var_name": "EVF_IMAGE_READ" }, { "declarator": "GROUP_NONE = Collections.emptySet()", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_NONE = Collections.emptySet();", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_NONE" }, { "declarator": "GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ" }, { "declarator": "GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_WRITE" }, { "declarator": "GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_IMAGE_READ" }, { "declarator": "GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_IMAGE_READ_WRITE" }, { "declarator": "GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_IMAGE_WRITE" }, { "declarator": "GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_EVF_IMAGE_READ" }, { "declarator": "GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_IMAGE_READ" }, { "declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ" }, { "declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE" }, { "declarator": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ" }, { "declarator": "targetRefType", "modifier": "private final", "original_string": "private final TargetRefType targetRefType;", "type": "TargetRefType", "var_name": "targetRefType" }, { "declarator": "read", "modifier": "private final", "original_string": "private final boolean read;", "type": "boolean", "var_name": "read" }, { "declarator": "write", "modifier": "private final", "original_string": "private final boolean write;", "type": "boolean", "var_name": "write" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/TargetRefAccessType.java", "identifier": "TargetRefAccessType", "interfaces": "", "methods": [ { "class_method_signature": "TargetRefAccessType.TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)", "constructor": true, "full_signature": "private TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)", "identifier": "TargetRefAccessType", "modifiers": "private", "parameters": "(final TargetRefType targetRefType, final boolean read, final boolean write)", "return": "", "signature": " TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)", "testcase": false }, { "class_method_signature": "TargetRefAccessType.getTargetRefType()", "constructor": false, "full_signature": "public TargetRefType getTargetRefType()", "identifier": "getTargetRefType", "modifiers": "public", "parameters": "()", "return": "TargetRefType", "signature": "TargetRefType getTargetRefType()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.hasRead()", "constructor": false, "full_signature": "public boolean hasRead()", "identifier": "hasRead", "modifiers": "public", "parameters": "()", "return": "boolean", "signature": "boolean hasRead()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.hasWrite()", "constructor": false, "full_signature": "public boolean hasWrite()", "identifier": "hasWrite", "modifiers": "public", "parameters": "()", "return": "boolean", "signature": "boolean hasWrite()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.equals(final Object o)", "constructor": false, "full_signature": "@Override public boolean equals(final Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(final Object o)", "return": "boolean", "signature": "boolean equals(final Object o)", "testcase": false }, { "class_method_signature": "TargetRefAccessType.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "public boolean hasWrite() {\n return write;\n }", "class_method_signature": "TargetRefAccessType.hasWrite()", "constructor": false, "full_signature": "public boolean hasWrite()", "identifier": "hasWrite", "invocations": [], "modifiers": "public", "parameters": "()", "return": "boolean", "signature": "boolean hasWrite()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_113
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "stateEvent", "modifier": "private", "original_string": "private EdsStateEvent stateEvent;", "type": "EdsStateEvent", "var_name": "stateEvent" }, { "declarator": "eventData", "modifier": "private", "original_string": "private Long eventData;", "type": "Long", "var_name": "eventData" }, { "declarator": "canonStateEvent", "modifier": "private", "original_string": "private CanonStateEventImpl canonStateEvent;", "type": "CanonStateEventImpl", "var_name": "canonStateEvent" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImplTest.java", "identifier": "CanonStateEventImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getObjectEvent() {\n final EdsStateEvent event = canonStateEvent.getStateEvent();\n Assertions.assertNotNull(event);\n Assertions.assertEquals(stateEvent, event);\n Assertions.assertSame(stateEvent, canonStateEvent.getStateEvent());\n }", "class_method_signature": "CanonStateEventImplTest.getObjectEvent()", "constructor": false, "full_signature": "@Test void getObjectEvent()", "identifier": "getObjectEvent", "invocations": [ "getStateEvent", "assertNotNull", "assertEquals", "assertSame", "getStateEvent" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getObjectEvent()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef", "modifier": "private final", "original_string": "private final EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "stateEvent", "modifier": "private final", "original_string": "private final EdsStateEvent stateEvent;", "type": "EdsStateEvent", "var_name": "stateEvent" }, { "declarator": "inEventData", "modifier": "private final", "original_string": "private final long inEventData;", "type": "long", "var_name": "inEventData" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImpl.java", "identifier": "CanonStateEventImpl", "interfaces": "implements CanonStateEvent", "methods": [ { "class_method_signature": "CanonStateEventImpl.CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "constructor": true, "full_signature": "public CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "identifier": "CanonStateEventImpl", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "return": "", "signature": " CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.getStateEvent()", "constructor": false, "full_signature": "@Override public EdsStateEvent getStateEvent()", "identifier": "getStateEvent", "modifiers": "@Override public", "parameters": "()", "return": "EdsStateEvent", "signature": "EdsStateEvent getStateEvent()", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.getEventData()", "constructor": false, "full_signature": "@Override public long getEventData()", "identifier": "getEventData", "modifiers": "@Override public", "parameters": "()", "return": "long", "signature": "long getEventData()", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public EdsStateEvent getStateEvent() {\n return stateEvent;\n }", "class_method_signature": "CanonStateEventImpl.getStateEvent()", "constructor": false, "full_signature": "@Override public EdsStateEvent getStateEvent()", "identifier": "getStateEvent", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EdsStateEvent", "signature": "EdsStateEvent getStateEvent()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_27
{ "fields": [ { "declarator": "doNothingCommand", "modifier": "private", "original_string": "private DoNothingCommand doNothingCommand;", "type": "DoNothingCommand", "var_name": "doNothingCommand" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java", "identifier": "AbstractCanonCommandTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getTargetRefInternalThrowsIfNotSetYet() {\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.getTargetRefInternal());\n }", "class_method_signature": "AbstractCanonCommandTest.getTargetRefInternalThrowsIfNotSetYet()", "constructor": false, "full_signature": "@Test void getTargetRefInternalThrowsIfNotSetYet()", "identifier": "getTargetRefInternalThrowsIfNotSetYet", "invocations": [ "assertThrows", "getTargetRefInternal" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getTargetRefInternalThrowsIfNotSetYet()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)", "modifier": "protected final", "original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);", "type": "Duration", "var_name": "DEFAULT_TIMEOUT" }, { "declarator": "createTime = currentInstant()", "modifier": "private final", "original_string": "private final Instant createTime = currentInstant();", "type": "Instant", "var_name": "createTime" }, { "declarator": "executionStartTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionStartTime = null;", "type": "Instant", "var_name": "executionStartTime" }, { "declarator": "executionEndTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionEndTime = null;", "type": "Instant", "var_name": "executionEndTime" }, { "declarator": "timeout", "modifier": "private", "original_string": "private Duration timeout;", "type": "Duration", "var_name": "timeout" }, { "declarator": "targetRef", "modifier": "private", "original_string": "private EdsBaseRef targetRef;", "type": "EdsBaseRef", "var_name": "targetRef" }, { "declarator": "targetRefType", "modifier": "private", "original_string": "private TargetRefType targetRefType;", "type": "TargetRefType", "var_name": "targetRefType" }, { "declarator": "decoratorCommand", "modifier": "private", "original_string": "private DecoratorCommand<R> decoratorCommand;", "type": "DecoratorCommand<R>", "var_name": "decoratorCommand" }, { "declarator": "resultBlocker = new CountDownLatch(1)", "modifier": "private final", "original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);", "type": "CountDownLatch", "var_name": "resultBlocker" }, { "declarator": "result", "modifier": "private volatile", "original_string": "private volatile R result;", "type": "R", "var_name": "result" }, { "declarator": "resultException", "modifier": "private volatile", "original_string": "private volatile Throwable resultException;", "type": "Throwable", "var_name": "resultException" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java", "identifier": "AbstractCanonCommand", "interfaces": "implements CanonCommand<R>, TargetRefCommand<R>", "methods": [ { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()", "constructor": true, "full_signature": "protected AbstractCanonCommand()", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "()", "return": "", "signature": " AbstractCanonCommand()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "constructor": true, "full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "(final AbstractCanonCommand<R> toCopy)", "return": "", "signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.copy()", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()", "identifier": "copy", "modifiers": "@SuppressWarnings(\"unchecked\") @Override public", "parameters": "()", "return": "AbstractCanonCommand<R>", "signature": "AbstractCanonCommand<R> copy()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.run()", "constructor": false, "full_signature": "@Override public final void run()", "identifier": "run", "modifiers": "@Override public final", "parameters": "()", "return": "void", "signature": "void run()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.runInternal()", "constructor": false, "full_signature": "protected abstract R runInternal()", "identifier": "runInternal", "modifiers": "protected abstract", "parameters": "()", "return": "R", "signature": "R runInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()", "constructor": false, "full_signature": "private void throwIfRunAlreadyCalled()", "identifier": "throwIfRunAlreadyCalled", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void throwIfRunAlreadyCalled()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "identifier": "setTargetRef", "modifiers": "@Override public", "parameters": "(final EdsBaseRef targetRef)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRef()", "constructor": false, "full_signature": "public final Optional<EdsBaseRef> getTargetRef()", "identifier": "getTargetRef", "modifiers": "public final", "parameters": "()", "return": "Optional<EdsBaseRef>", "signature": "Optional<EdsBaseRef> getTargetRef()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefType()", "constructor": false, "full_signature": "@Override public TargetRefType getTargetRefType()", "identifier": "getTargetRefType", "modifiers": "@Override public", "parameters": "()", "return": "TargetRefType", "signature": "TargetRefType getTargetRefType()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefInternal()", "constructor": false, "full_signature": "protected final EdsBaseRef getTargetRefInternal()", "identifier": "getTargetRefInternal", "modifiers": "protected final", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getTargetRefInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getCreateTime()", "constructor": false, "full_signature": "@Override public Instant getCreateTime()", "identifier": "getCreateTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getCreateTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionStartTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionStartTime()", "identifier": "getExecutionStartTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionStartTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionStarted()", "constructor": false, "full_signature": "@Override public boolean hasExecutionStarted()", "identifier": "hasExecutionStarted", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionStarted()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionEndTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionEndTime()", "identifier": "getExecutionEndTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionEndTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionEnded()", "constructor": false, "full_signature": "@Override public boolean hasExecutionEnded()", "identifier": "hasExecutionEnded", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionEnded()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.get()", "constructor": false, "full_signature": "@Override public R get()", "identifier": "get", "modifiers": "@Override public", "parameters": "()", "return": "R", "signature": "R get()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeout()", "constructor": false, "full_signature": "@Override public Optional<Duration> getTimeout()", "identifier": "getTimeout", "modifiers": "@Override public", "parameters": "()", "return": "Optional<Duration>", "signature": "Optional<Duration> getTimeout()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)", "identifier": "setTimeout", "modifiers": "@Override public", "parameters": "(final Duration timeout)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTimeout(final Duration timeout)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeoutInternal()", "constructor": false, "full_signature": "protected Duration getTimeoutInternal()", "identifier": "getTimeoutInternal", "modifiers": "protected", "parameters": "()", "return": "Duration", "signature": "Duration getTimeoutInternal()", "testcase": false } ], "superclass": "" }
{ "body": "protected final EdsBaseRef getTargetRefInternal() {\n if (targetRef == null)\n throw new IllegalStateException(\"TargetRef have not been set yet\");\n return targetRef;\n }", "class_method_signature": "AbstractCanonCommand.getTargetRefInternal()", "constructor": false, "full_signature": "protected final EdsBaseRef getTargetRefInternal()", "identifier": "getTargetRefInternal", "invocations": [], "modifiers": "protected final", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getTargetRefInternal()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_105
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "propertyEvent", "modifier": "private", "original_string": "private EdsPropertyEvent propertyEvent;", "type": "EdsPropertyEvent", "var_name": "propertyEvent" }, { "declarator": "propertyID", "modifier": "private", "original_string": "private EdsPropertyID propertyID;", "type": "EdsPropertyID", "var_name": "propertyID" }, { "declarator": "inParam", "modifier": "private", "original_string": "private Long inParam;", "type": "Long", "var_name": "inParam" }, { "declarator": "canonPropertyEvent", "modifier": "private", "original_string": "private CanonPropertyEventImpl canonPropertyEvent;", "type": "CanonPropertyEventImpl", "var_name": "canonPropertyEvent" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImplTest.java", "identifier": "CanonPropertyEventImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getPropertyId() {\n final EdsPropertyID id = canonPropertyEvent.getPropertyId();\n Assertions.assertNotNull(id);\n Assertions.assertEquals(propertyID, id);\n Assertions.assertSame(propertyID, canonPropertyEvent.getPropertyId());\n }", "class_method_signature": "CanonPropertyEventImplTest.getPropertyId()", "constructor": false, "full_signature": "@Test void getPropertyId()", "identifier": "getPropertyId", "invocations": [ "getPropertyId", "assertNotNull", "assertEquals", "assertSame", "getPropertyId" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getPropertyId()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef", "modifier": "private final", "original_string": "private final EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "propertyEvent", "modifier": "private final", "original_string": "private final EdsPropertyEvent propertyEvent;", "type": "EdsPropertyEvent", "var_name": "propertyEvent" }, { "declarator": "propertyID", "modifier": "private final", "original_string": "private final EdsPropertyID propertyID;", "type": "EdsPropertyID", "var_name": "propertyID" }, { "declarator": "inParam", "modifier": "private final", "original_string": "private final long inParam;", "type": "long", "var_name": "inParam" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImpl.java", "identifier": "CanonPropertyEventImpl", "interfaces": "implements CanonPropertyEvent", "methods": [ { "class_method_signature": "CanonPropertyEventImpl.CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "constructor": true, "full_signature": "public CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "identifier": "CanonPropertyEventImpl", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "return": "", "signature": " CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getPropertyEvent()", "constructor": false, "full_signature": "@Override public EdsPropertyEvent getPropertyEvent()", "identifier": "getPropertyEvent", "modifiers": "@Override public", "parameters": "()", "return": "EdsPropertyEvent", "signature": "EdsPropertyEvent getPropertyEvent()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getPropertyId()", "constructor": false, "full_signature": "@Override public EdsPropertyID getPropertyId()", "identifier": "getPropertyId", "modifiers": "@Override public", "parameters": "()", "return": "EdsPropertyID", "signature": "EdsPropertyID getPropertyId()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getInParam()", "constructor": false, "full_signature": "@Override public long getInParam()", "identifier": "getInParam", "modifiers": "@Override public", "parameters": "()", "return": "long", "signature": "long getInParam()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public EdsPropertyID getPropertyId() {\n return propertyID;\n }", "class_method_signature": "CanonPropertyEventImpl.getPropertyId()", "constructor": false, "full_signature": "@Override public EdsPropertyID getPropertyId()", "identifier": "getPropertyId", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EdsPropertyID", "signature": "EdsPropertyID getPropertyId()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_31
{ "fields": [ { "declarator": "doNothingCommand", "modifier": "private", "original_string": "private DoNothingCommand doNothingCommand;", "type": "DoNothingCommand", "var_name": "doNothingCommand" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java", "identifier": "AbstractCanonCommandTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void hasExecutionStarted() {\n Assertions.assertFalse(doNothingCommand.hasExecutionStarted());\n\n doNothingCommand.run();\n\n Assertions.assertTrue(doNothingCommand.hasExecutionStarted());\n }", "class_method_signature": "AbstractCanonCommandTest.hasExecutionStarted()", "constructor": false, "full_signature": "@Test void hasExecutionStarted()", "identifier": "hasExecutionStarted", "invocations": [ "assertFalse", "hasExecutionStarted", "run", "assertTrue", "hasExecutionStarted" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void hasExecutionStarted()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)", "modifier": "protected final", "original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);", "type": "Duration", "var_name": "DEFAULT_TIMEOUT" }, { "declarator": "createTime = currentInstant()", "modifier": "private final", "original_string": "private final Instant createTime = currentInstant();", "type": "Instant", "var_name": "createTime" }, { "declarator": "executionStartTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionStartTime = null;", "type": "Instant", "var_name": "executionStartTime" }, { "declarator": "executionEndTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionEndTime = null;", "type": "Instant", "var_name": "executionEndTime" }, { "declarator": "timeout", "modifier": "private", "original_string": "private Duration timeout;", "type": "Duration", "var_name": "timeout" }, { "declarator": "targetRef", "modifier": "private", "original_string": "private EdsBaseRef targetRef;", "type": "EdsBaseRef", "var_name": "targetRef" }, { "declarator": "targetRefType", "modifier": "private", "original_string": "private TargetRefType targetRefType;", "type": "TargetRefType", "var_name": "targetRefType" }, { "declarator": "decoratorCommand", "modifier": "private", "original_string": "private DecoratorCommand<R> decoratorCommand;", "type": "DecoratorCommand<R>", "var_name": "decoratorCommand" }, { "declarator": "resultBlocker = new CountDownLatch(1)", "modifier": "private final", "original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);", "type": "CountDownLatch", "var_name": "resultBlocker" }, { "declarator": "result", "modifier": "private volatile", "original_string": "private volatile R result;", "type": "R", "var_name": "result" }, { "declarator": "resultException", "modifier": "private volatile", "original_string": "private volatile Throwable resultException;", "type": "Throwable", "var_name": "resultException" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java", "identifier": "AbstractCanonCommand", "interfaces": "implements CanonCommand<R>, TargetRefCommand<R>", "methods": [ { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()", "constructor": true, "full_signature": "protected AbstractCanonCommand()", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "()", "return": "", "signature": " AbstractCanonCommand()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "constructor": true, "full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "(final AbstractCanonCommand<R> toCopy)", "return": "", "signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.copy()", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()", "identifier": "copy", "modifiers": "@SuppressWarnings(\"unchecked\") @Override public", "parameters": "()", "return": "AbstractCanonCommand<R>", "signature": "AbstractCanonCommand<R> copy()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.run()", "constructor": false, "full_signature": "@Override public final void run()", "identifier": "run", "modifiers": "@Override public final", "parameters": "()", "return": "void", "signature": "void run()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.runInternal()", "constructor": false, "full_signature": "protected abstract R runInternal()", "identifier": "runInternal", "modifiers": "protected abstract", "parameters": "()", "return": "R", "signature": "R runInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()", "constructor": false, "full_signature": "private void throwIfRunAlreadyCalled()", "identifier": "throwIfRunAlreadyCalled", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void throwIfRunAlreadyCalled()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "identifier": "setTargetRef", "modifiers": "@Override public", "parameters": "(final EdsBaseRef targetRef)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRef()", "constructor": false, "full_signature": "public final Optional<EdsBaseRef> getTargetRef()", "identifier": "getTargetRef", "modifiers": "public final", "parameters": "()", "return": "Optional<EdsBaseRef>", "signature": "Optional<EdsBaseRef> getTargetRef()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefType()", "constructor": false, "full_signature": "@Override public TargetRefType getTargetRefType()", "identifier": "getTargetRefType", "modifiers": "@Override public", "parameters": "()", "return": "TargetRefType", "signature": "TargetRefType getTargetRefType()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefInternal()", "constructor": false, "full_signature": "protected final EdsBaseRef getTargetRefInternal()", "identifier": "getTargetRefInternal", "modifiers": "protected final", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getTargetRefInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getCreateTime()", "constructor": false, "full_signature": "@Override public Instant getCreateTime()", "identifier": "getCreateTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getCreateTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionStartTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionStartTime()", "identifier": "getExecutionStartTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionStartTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionStarted()", "constructor": false, "full_signature": "@Override public boolean hasExecutionStarted()", "identifier": "hasExecutionStarted", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionStarted()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionEndTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionEndTime()", "identifier": "getExecutionEndTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionEndTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionEnded()", "constructor": false, "full_signature": "@Override public boolean hasExecutionEnded()", "identifier": "hasExecutionEnded", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionEnded()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.get()", "constructor": false, "full_signature": "@Override public R get()", "identifier": "get", "modifiers": "@Override public", "parameters": "()", "return": "R", "signature": "R get()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeout()", "constructor": false, "full_signature": "@Override public Optional<Duration> getTimeout()", "identifier": "getTimeout", "modifiers": "@Override public", "parameters": "()", "return": "Optional<Duration>", "signature": "Optional<Duration> getTimeout()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)", "identifier": "setTimeout", "modifiers": "@Override public", "parameters": "(final Duration timeout)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTimeout(final Duration timeout)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeoutInternal()", "constructor": false, "full_signature": "protected Duration getTimeoutInternal()", "identifier": "getTimeoutInternal", "modifiers": "protected", "parameters": "()", "return": "Duration", "signature": "Duration getTimeoutInternal()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public boolean hasExecutionStarted() {\n return executionStartTime != null;\n }", "class_method_signature": "AbstractCanonCommand.hasExecutionStarted()", "constructor": false, "full_signature": "@Override public boolean hasExecutionStarted()", "identifier": "hasExecutionStarted", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionStarted()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_89
{ "fields": [ { "declarator": "list", "modifier": "private", "original_string": "private List<WeakReference<Object>> list;", "type": "List<WeakReference<Object>>", "var_name": "list" }, { "declarator": "data1", "modifier": "private", "original_string": "private Object data1;", "type": "Object", "var_name": "data1" }, { "declarator": "data2", "modifier": "private", "original_string": "private Object data2;", "type": "Object", "var_name": "data2" }, { "declarator": "data3", "modifier": "private", "original_string": "private Object data3;", "type": "Object", "var_name": "data3" }, { "declarator": "weak1", "modifier": "private", "original_string": "private WeakReference<Object> weak1;", "type": "WeakReference<Object>", "var_name": "weak1" }, { "declarator": "weak2", "modifier": "private", "original_string": "private WeakReference<Object> weak2;", "type": "WeakReference<Object>", "var_name": "weak2" }, { "declarator": "weak3", "modifier": "private", "original_string": "private WeakReference<Object> weak3;", "type": "WeakReference<Object>", "var_name": "weak3" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/WeakReferenceUtilTest.java", "identifier": "WeakReferenceUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void cleanNullReferences() throws InterruptedException {\n list.add(weak1);\n list.add(weak2);\n list.add(weak3);\n\n data2 = null;\n data3 = null;\n\n for (int i = 0; i < 50; i++) {\n System.gc();\n Thread.sleep(50);\n System.gc();\n }\n\n // Let's hope gc actually happened...\n\n WeakReferenceUtil.cleanNullReferences(list);\n\n Assertions.assertEquals(1, list.size());\n Assertions.assertEquals(weak1, list.get(0));\n }", "class_method_signature": "WeakReferenceUtilTest.cleanNullReferences()", "constructor": false, "full_signature": "@Test void cleanNullReferences()", "identifier": "cleanNullReferences", "invocations": [ "add", "add", "add", "gc", "sleep", "gc", "cleanNullReferences", "assertEquals", "size", "assertEquals", "get" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void cleanNullReferences()", "testcase": true }
{ "fields": [], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/WeakReferenceUtil.java", "identifier": "WeakReferenceUtil", "interfaces": "", "methods": [ { "class_method_signature": "WeakReferenceUtil.contains(final List<WeakReference<T>> list, final T object)", "constructor": false, "full_signature": "static boolean contains(final List<WeakReference<T>> list, final T object)", "identifier": "contains", "modifiers": "static", "parameters": "(final List<WeakReference<T>> list, final T object)", "return": "boolean", "signature": "boolean contains(final List<WeakReference<T>> list, final T object)", "testcase": false }, { "class_method_signature": "WeakReferenceUtil.remove(final List<WeakReference<T>> weakReferences, final T object)", "constructor": false, "full_signature": "static void remove(final List<WeakReference<T>> weakReferences, final T object)", "identifier": "remove", "modifiers": "static", "parameters": "(final List<WeakReference<T>> weakReferences, final T object)", "return": "void", "signature": "void remove(final List<WeakReference<T>> weakReferences, final T object)", "testcase": false }, { "class_method_signature": "WeakReferenceUtil.cleanNullReferences(final List<WeakReference<T>> weakReferences)", "constructor": false, "full_signature": "static void cleanNullReferences(final List<WeakReference<T>> weakReferences)", "identifier": "cleanNullReferences", "modifiers": "static", "parameters": "(final List<WeakReference<T>> weakReferences)", "return": "void", "signature": "void cleanNullReferences(final List<WeakReference<T>> weakReferences)", "testcase": false }, { "class_method_signature": "WeakReferenceUtil.WeakReferenceUtil()", "constructor": true, "full_signature": "private WeakReferenceUtil()", "identifier": "WeakReferenceUtil", "modifiers": "private", "parameters": "()", "return": "", "signature": " WeakReferenceUtil()", "testcase": false } ], "superclass": "" }
{ "body": "static <T> void cleanNullReferences(final List<WeakReference<T>> weakReferences) {\n weakReferences.removeIf(weakReference -> weakReference.isEnqueued() || weakReference.get() == null);\n }", "class_method_signature": "WeakReferenceUtil.cleanNullReferences(final List<WeakReference<T>> weakReferences)", "constructor": false, "full_signature": "static void cleanNullReferences(final List<WeakReference<T>> weakReferences)", "identifier": "cleanNullReferences", "invocations": [ "removeIf", "isEnqueued", "get" ], "modifiers": "static", "parameters": "(final List<WeakReference<T>> weakReferences)", "return": "void", "signature": "void cleanNullReferences(final List<WeakReference<T>> weakReferences)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_66
{ "fields": [ { "declarator": "builder", "modifier": "private", "original_string": "private ShootOptionBuilder builder;", "type": "ShootOptionBuilder", "var_name": "builder" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilderTest.java", "identifier": "ShootOptionBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void builderIsReusable() {\n final ShootOption shootOption = builder.build();\n final ShootOption shootOption2 = builder.build();\n\n Assertions.assertNotNull(shootOption);\n Assertions.assertNotNull(shootOption2);\n Assertions.assertNotSame(shootOption, shootOption2);\n Assertions.assertEquals(shootOption, shootOption2);\n Assertions.assertEquals(shootOption.hashCode(), shootOption2.hashCode());\n }", "class_method_signature": "ShootOptionBuilderTest.builderIsReusable()", "constructor": false, "full_signature": "@Test void builderIsReusable()", "identifier": "builderIsReusable", "invocations": [ "build", "build", "assertNotNull", "assertNotNull", "assertNotSame", "assertEquals", "assertEquals", "hashCode", "hashCode" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void builderIsReusable()", "testcase": true }
{ "fields": [ { "declarator": "shootAttemptCount = 5", "modifier": "private", "original_string": "private int shootAttemptCount = 5;", "type": "int", "var_name": "shootAttemptCount" }, { "declarator": "checkLiveViewState = false", "modifier": "private", "original_string": "private boolean checkLiveViewState = false;", "type": "boolean", "var_name": "checkLiveViewState" }, { "declarator": "shootWithV0 = true", "modifier": "private", "original_string": "private boolean shootWithV0 = true;", "type": "boolean", "var_name": "shootWithV0" }, { "declarator": "shootWithNoAF = true", "modifier": "private", "original_string": "private boolean shootWithNoAF = true;", "type": "boolean", "var_name": "shootWithNoAF" }, { "declarator": "shootWithAF = true", "modifier": "private", "original_string": "private boolean shootWithAF = true;", "type": "boolean", "var_name": "shootWithAF" }, { "declarator": "saveTo = EdsSaveTo.kEdsSaveTo_Both", "modifier": "private", "original_string": "private EdsSaveTo saveTo = EdsSaveTo.kEdsSaveTo_Both;", "type": "EdsSaveTo", "var_name": "saveTo" }, { "declarator": "waitForItemDownloadEvent = true", "modifier": "private", "original_string": "private boolean waitForItemDownloadEvent = true;", "type": "boolean", "var_name": "waitForItemDownloadEvent" }, { "declarator": "busyWaitMillis = 200", "modifier": "private", "original_string": "private long busyWaitMillis = 200;", "type": "long", "var_name": "busyWaitMillis" }, { "declarator": "fetchEvents = true", "modifier": "private", "original_string": "private boolean fetchEvents = true;", "type": "boolean", "var_name": "fetchEvents" }, { "declarator": "folderDestination = null", "modifier": "private", "original_string": "private File folderDestination = null;", "type": "File", "var_name": "folderDestination" }, { "declarator": "filename = null", "modifier": "private", "original_string": "private String filename = null;", "type": "String", "var_name": "filename" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilder.java", "identifier": "ShootOptionBuilder", "interfaces": "", "methods": [ { "class_method_signature": "ShootOptionBuilder.setShootAttemptCount(final int shootAttemptCount)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)", "identifier": "setShootAttemptCount", "modifiers": "public", "parameters": "(final int shootAttemptCount)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setCheckLiveViewState(final boolean checkLiveViewState)", "constructor": false, "full_signature": "public ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)", "identifier": "setCheckLiveViewState", "modifiers": "public", "parameters": "(final boolean checkLiveViewState)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setShootWithV0(final boolean shootWithV0)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootWithV0(final boolean shootWithV0)", "identifier": "setShootWithV0", "modifiers": "public", "parameters": "(final boolean shootWithV0)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootWithV0(final boolean shootWithV0)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setShootWithNoAF(final boolean shootWithNoAF)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)", "identifier": "setShootWithNoAF", "modifiers": "public", "parameters": "(final boolean shootWithNoAF)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setShootWithAF(final boolean shootWithAF)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootWithAF(final boolean shootWithAF)", "identifier": "setShootWithAF", "modifiers": "public", "parameters": "(final boolean shootWithAF)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootWithAF(final boolean shootWithAF)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setSaveTo(final EdsSaveTo saveTo)", "constructor": false, "full_signature": "public ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)", "identifier": "setSaveTo", "modifiers": "public", "parameters": "(final EdsSaveTo saveTo)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)", "constructor": false, "full_signature": "public ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)", "identifier": "setWaitForItemDownloadEvent", "modifiers": "public", "parameters": "(final boolean waitForItemDownloadEvent)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setBusyWaitMillis(final long busyWaitMillis)", "constructor": false, "full_signature": "public ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)", "identifier": "setBusyWaitMillis", "modifiers": "public", "parameters": "(final long busyWaitMillis)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setFetchEvents(final boolean fetchEvents)", "constructor": false, "full_signature": "public ShootOptionBuilder setFetchEvents(final boolean fetchEvents)", "identifier": "setFetchEvents", "modifiers": "public", "parameters": "(final boolean fetchEvents)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setFetchEvents(final boolean fetchEvents)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setFolderDestination(final File folderDestination)", "constructor": false, "full_signature": "public ShootOptionBuilder setFolderDestination(final File folderDestination)", "identifier": "setFolderDestination", "modifiers": "public", "parameters": "(final File folderDestination)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setFolderDestination(final File folderDestination)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setFilename(final String filename)", "constructor": false, "full_signature": "public ShootOptionBuilder setFilename(final String filename)", "identifier": "setFilename", "modifiers": "public", "parameters": "(final String filename)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setFilename(final String filename)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.build()", "constructor": false, "full_signature": "public ShootOption build()", "identifier": "build", "modifiers": "public", "parameters": "()", "return": "ShootOption", "signature": "ShootOption build()", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.validate()", "constructor": false, "full_signature": "private void validate()", "identifier": "validate", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void validate()", "testcase": false } ], "superclass": "" }
{ "body": "public ShootOption build() {\n validate();\n return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename);\n }", "class_method_signature": "ShootOptionBuilder.build()", "constructor": false, "full_signature": "public ShootOption build()", "identifier": "build", "invocations": [ "validate" ], "modifiers": "public", "parameters": "()", "return": "ShootOption", "signature": "ShootOption build()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_88
{ "fields": [ { "declarator": "list", "modifier": "private", "original_string": "private List<WeakReference<Object>> list;", "type": "List<WeakReference<Object>>", "var_name": "list" }, { "declarator": "data1", "modifier": "private", "original_string": "private Object data1;", "type": "Object", "var_name": "data1" }, { "declarator": "data2", "modifier": "private", "original_string": "private Object data2;", "type": "Object", "var_name": "data2" }, { "declarator": "data3", "modifier": "private", "original_string": "private Object data3;", "type": "Object", "var_name": "data3" }, { "declarator": "weak1", "modifier": "private", "original_string": "private WeakReference<Object> weak1;", "type": "WeakReference<Object>", "var_name": "weak1" }, { "declarator": "weak2", "modifier": "private", "original_string": "private WeakReference<Object> weak2;", "type": "WeakReference<Object>", "var_name": "weak2" }, { "declarator": "weak3", "modifier": "private", "original_string": "private WeakReference<Object> weak3;", "type": "WeakReference<Object>", "var_name": "weak3" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/WeakReferenceUtilTest.java", "identifier": "WeakReferenceUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void remove() {\n list.add(weak1);\n list.add(weak2);\n list.add(weak3);\n\n WeakReferenceUtil.remove(list, data1);\n WeakReferenceUtil.remove(list, data2);\n WeakReferenceUtil.remove(list, weak3);\n\n Assertions.assertEquals(1, list.size());\n Assertions.assertEquals(weak3, list.get(0));\n }", "class_method_signature": "WeakReferenceUtilTest.remove()", "constructor": false, "full_signature": "@Test void remove()", "identifier": "remove", "invocations": [ "add", "add", "add", "remove", "remove", "remove", "assertEquals", "size", "assertEquals", "get" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void remove()", "testcase": true }
{ "fields": [], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/WeakReferenceUtil.java", "identifier": "WeakReferenceUtil", "interfaces": "", "methods": [ { "class_method_signature": "WeakReferenceUtil.contains(final List<WeakReference<T>> list, final T object)", "constructor": false, "full_signature": "static boolean contains(final List<WeakReference<T>> list, final T object)", "identifier": "contains", "modifiers": "static", "parameters": "(final List<WeakReference<T>> list, final T object)", "return": "boolean", "signature": "boolean contains(final List<WeakReference<T>> list, final T object)", "testcase": false }, { "class_method_signature": "WeakReferenceUtil.remove(final List<WeakReference<T>> weakReferences, final T object)", "constructor": false, "full_signature": "static void remove(final List<WeakReference<T>> weakReferences, final T object)", "identifier": "remove", "modifiers": "static", "parameters": "(final List<WeakReference<T>> weakReferences, final T object)", "return": "void", "signature": "void remove(final List<WeakReference<T>> weakReferences, final T object)", "testcase": false }, { "class_method_signature": "WeakReferenceUtil.cleanNullReferences(final List<WeakReference<T>> weakReferences)", "constructor": false, "full_signature": "static void cleanNullReferences(final List<WeakReference<T>> weakReferences)", "identifier": "cleanNullReferences", "modifiers": "static", "parameters": "(final List<WeakReference<T>> weakReferences)", "return": "void", "signature": "void cleanNullReferences(final List<WeakReference<T>> weakReferences)", "testcase": false }, { "class_method_signature": "WeakReferenceUtil.WeakReferenceUtil()", "constructor": true, "full_signature": "private WeakReferenceUtil()", "identifier": "WeakReferenceUtil", "modifiers": "private", "parameters": "()", "return": "", "signature": " WeakReferenceUtil()", "testcase": false } ], "superclass": "" }
{ "body": "static <T> void remove(final List<WeakReference<T>> weakReferences, final T object) {\n weakReferences.removeIf(weakReference -> {\n final T ref = weakReference.get();\n if (weakReference.isEnqueued() || ref == null) {\n return true;\n }\n return ref.equals(object);\n });\n }", "class_method_signature": "WeakReferenceUtil.remove(final List<WeakReference<T>> weakReferences, final T object)", "constructor": false, "full_signature": "static void remove(final List<WeakReference<T>> weakReferences, final T object)", "identifier": "remove", "invocations": [ "removeIf", "get", "isEnqueued", "equals" ], "modifiers": "static", "parameters": "(final List<WeakReference<T>> weakReferences, final T object)", "return": "void", "signature": "void remove(final List<WeakReference<T>> weakReferences, final T object)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_67
{ "fields": [ { "declarator": "builder", "modifier": "private", "original_string": "private ShootOptionBuilder builder;", "type": "ShootOptionBuilder", "var_name": "builder" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilderTest.java", "identifier": "ShootOptionBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void toStringOk() {\n final ShootOption option = builder.build();\n Assertions.assertNotNull(option.toString());\n }", "class_method_signature": "ShootOptionBuilderTest.toStringOk()", "constructor": false, "full_signature": "@Test void toStringOk()", "identifier": "toStringOk", "invocations": [ "build", "assertNotNull", "toString" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void toStringOk()", "testcase": true }
{ "fields": [ { "declarator": "shootAttemptCount = 5", "modifier": "private", "original_string": "private int shootAttemptCount = 5;", "type": "int", "var_name": "shootAttemptCount" }, { "declarator": "checkLiveViewState = false", "modifier": "private", "original_string": "private boolean checkLiveViewState = false;", "type": "boolean", "var_name": "checkLiveViewState" }, { "declarator": "shootWithV0 = true", "modifier": "private", "original_string": "private boolean shootWithV0 = true;", "type": "boolean", "var_name": "shootWithV0" }, { "declarator": "shootWithNoAF = true", "modifier": "private", "original_string": "private boolean shootWithNoAF = true;", "type": "boolean", "var_name": "shootWithNoAF" }, { "declarator": "shootWithAF = true", "modifier": "private", "original_string": "private boolean shootWithAF = true;", "type": "boolean", "var_name": "shootWithAF" }, { "declarator": "saveTo = EdsSaveTo.kEdsSaveTo_Both", "modifier": "private", "original_string": "private EdsSaveTo saveTo = EdsSaveTo.kEdsSaveTo_Both;", "type": "EdsSaveTo", "var_name": "saveTo" }, { "declarator": "waitForItemDownloadEvent = true", "modifier": "private", "original_string": "private boolean waitForItemDownloadEvent = true;", "type": "boolean", "var_name": "waitForItemDownloadEvent" }, { "declarator": "busyWaitMillis = 200", "modifier": "private", "original_string": "private long busyWaitMillis = 200;", "type": "long", "var_name": "busyWaitMillis" }, { "declarator": "fetchEvents = true", "modifier": "private", "original_string": "private boolean fetchEvents = true;", "type": "boolean", "var_name": "fetchEvents" }, { "declarator": "folderDestination = null", "modifier": "private", "original_string": "private File folderDestination = null;", "type": "File", "var_name": "folderDestination" }, { "declarator": "filename = null", "modifier": "private", "original_string": "private String filename = null;", "type": "String", "var_name": "filename" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/ShootOptionBuilder.java", "identifier": "ShootOptionBuilder", "interfaces": "", "methods": [ { "class_method_signature": "ShootOptionBuilder.setShootAttemptCount(final int shootAttemptCount)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)", "identifier": "setShootAttemptCount", "modifiers": "public", "parameters": "(final int shootAttemptCount)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootAttemptCount(final int shootAttemptCount)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setCheckLiveViewState(final boolean checkLiveViewState)", "constructor": false, "full_signature": "public ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)", "identifier": "setCheckLiveViewState", "modifiers": "public", "parameters": "(final boolean checkLiveViewState)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setCheckLiveViewState(final boolean checkLiveViewState)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setShootWithV0(final boolean shootWithV0)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootWithV0(final boolean shootWithV0)", "identifier": "setShootWithV0", "modifiers": "public", "parameters": "(final boolean shootWithV0)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootWithV0(final boolean shootWithV0)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setShootWithNoAF(final boolean shootWithNoAF)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)", "identifier": "setShootWithNoAF", "modifiers": "public", "parameters": "(final boolean shootWithNoAF)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootWithNoAF(final boolean shootWithNoAF)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setShootWithAF(final boolean shootWithAF)", "constructor": false, "full_signature": "public ShootOptionBuilder setShootWithAF(final boolean shootWithAF)", "identifier": "setShootWithAF", "modifiers": "public", "parameters": "(final boolean shootWithAF)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setShootWithAF(final boolean shootWithAF)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setSaveTo(final EdsSaveTo saveTo)", "constructor": false, "full_signature": "public ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)", "identifier": "setSaveTo", "modifiers": "public", "parameters": "(final EdsSaveTo saveTo)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setSaveTo(final EdsSaveTo saveTo)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)", "constructor": false, "full_signature": "public ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)", "identifier": "setWaitForItemDownloadEvent", "modifiers": "public", "parameters": "(final boolean waitForItemDownloadEvent)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setWaitForItemDownloadEvent(final boolean waitForItemDownloadEvent)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setBusyWaitMillis(final long busyWaitMillis)", "constructor": false, "full_signature": "public ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)", "identifier": "setBusyWaitMillis", "modifiers": "public", "parameters": "(final long busyWaitMillis)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setBusyWaitMillis(final long busyWaitMillis)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setFetchEvents(final boolean fetchEvents)", "constructor": false, "full_signature": "public ShootOptionBuilder setFetchEvents(final boolean fetchEvents)", "identifier": "setFetchEvents", "modifiers": "public", "parameters": "(final boolean fetchEvents)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setFetchEvents(final boolean fetchEvents)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setFolderDestination(final File folderDestination)", "constructor": false, "full_signature": "public ShootOptionBuilder setFolderDestination(final File folderDestination)", "identifier": "setFolderDestination", "modifiers": "public", "parameters": "(final File folderDestination)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setFolderDestination(final File folderDestination)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.setFilename(final String filename)", "constructor": false, "full_signature": "public ShootOptionBuilder setFilename(final String filename)", "identifier": "setFilename", "modifiers": "public", "parameters": "(final String filename)", "return": "ShootOptionBuilder", "signature": "ShootOptionBuilder setFilename(final String filename)", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.build()", "constructor": false, "full_signature": "public ShootOption build()", "identifier": "build", "modifiers": "public", "parameters": "()", "return": "ShootOption", "signature": "ShootOption build()", "testcase": false }, { "class_method_signature": "ShootOptionBuilder.validate()", "constructor": false, "full_signature": "private void validate()", "identifier": "validate", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void validate()", "testcase": false } ], "superclass": "" }
{ "body": "public ShootOption build() {\n validate();\n return new ShootOption(shootAttemptCount, checkLiveViewState, shootWithV0, shootWithNoAF, shootWithAF, saveTo, waitForItemDownloadEvent, busyWaitMillis, fetchEvents, folderDestination, filename);\n }", "class_method_signature": "ShootOptionBuilder.build()", "constructor": false, "full_signature": "public ShootOption build()", "identifier": "build", "invocations": [ "validate" ], "modifiers": "public", "parameters": "()", "return": "ShootOption", "signature": "ShootOption build()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_104
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "propertyEvent", "modifier": "private", "original_string": "private EdsPropertyEvent propertyEvent;", "type": "EdsPropertyEvent", "var_name": "propertyEvent" }, { "declarator": "propertyID", "modifier": "private", "original_string": "private EdsPropertyID propertyID;", "type": "EdsPropertyID", "var_name": "propertyID" }, { "declarator": "inParam", "modifier": "private", "original_string": "private Long inParam;", "type": "Long", "var_name": "inParam" }, { "declarator": "canonPropertyEvent", "modifier": "private", "original_string": "private CanonPropertyEventImpl canonPropertyEvent;", "type": "CanonPropertyEventImpl", "var_name": "canonPropertyEvent" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImplTest.java", "identifier": "CanonPropertyEventImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getPropertyEvent() {\n final EdsPropertyEvent event = canonPropertyEvent.getPropertyEvent();\n Assertions.assertNotNull(event);\n Assertions.assertEquals(propertyEvent, event);\n Assertions.assertSame(propertyEvent, canonPropertyEvent.getPropertyEvent());\n }", "class_method_signature": "CanonPropertyEventImplTest.getPropertyEvent()", "constructor": false, "full_signature": "@Test void getPropertyEvent()", "identifier": "getPropertyEvent", "invocations": [ "getPropertyEvent", "assertNotNull", "assertEquals", "assertSame", "getPropertyEvent" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getPropertyEvent()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef", "modifier": "private final", "original_string": "private final EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "propertyEvent", "modifier": "private final", "original_string": "private final EdsPropertyEvent propertyEvent;", "type": "EdsPropertyEvent", "var_name": "propertyEvent" }, { "declarator": "propertyID", "modifier": "private final", "original_string": "private final EdsPropertyID propertyID;", "type": "EdsPropertyID", "var_name": "propertyID" }, { "declarator": "inParam", "modifier": "private final", "original_string": "private final long inParam;", "type": "long", "var_name": "inParam" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonPropertyEventImpl.java", "identifier": "CanonPropertyEventImpl", "interfaces": "implements CanonPropertyEvent", "methods": [ { "class_method_signature": "CanonPropertyEventImpl.CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "constructor": true, "full_signature": "public CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "identifier": "CanonPropertyEventImpl", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "return": "", "signature": " CanonPropertyEventImpl(final EdsCameraRef cameraRef, final EdsPropertyEvent propertyEvent, final EdsPropertyID propertyID, final long inParam)", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getPropertyEvent()", "constructor": false, "full_signature": "@Override public EdsPropertyEvent getPropertyEvent()", "identifier": "getPropertyEvent", "modifiers": "@Override public", "parameters": "()", "return": "EdsPropertyEvent", "signature": "EdsPropertyEvent getPropertyEvent()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getPropertyId()", "constructor": false, "full_signature": "@Override public EdsPropertyID getPropertyId()", "identifier": "getPropertyId", "modifiers": "@Override public", "parameters": "()", "return": "EdsPropertyID", "signature": "EdsPropertyID getPropertyId()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.getInParam()", "constructor": false, "full_signature": "@Override public long getInParam()", "identifier": "getInParam", "modifiers": "@Override public", "parameters": "()", "return": "long", "signature": "long getInParam()", "testcase": false }, { "class_method_signature": "CanonPropertyEventImpl.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public EdsPropertyEvent getPropertyEvent() {\n return propertyEvent;\n }", "class_method_signature": "CanonPropertyEventImpl.getPropertyEvent()", "constructor": false, "full_signature": "@Override public EdsPropertyEvent getPropertyEvent()", "identifier": "getPropertyEvent", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EdsPropertyEvent", "signature": "EdsPropertyEvent getPropertyEvent()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_30
{ "fields": [ { "declarator": "doNothingCommand", "modifier": "private", "original_string": "private DoNothingCommand doNothingCommand;", "type": "DoNothingCommand", "var_name": "doNothingCommand" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java", "identifier": "AbstractCanonCommandTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getExecutionStartTimeThrowsWhenNotRan() {\n Assertions.assertThrows(IllegalStateException.class, () -> doNothingCommand.getExecutionStartTime());\n }", "class_method_signature": "AbstractCanonCommandTest.getExecutionStartTimeThrowsWhenNotRan()", "constructor": false, "full_signature": "@Test void getExecutionStartTimeThrowsWhenNotRan()", "identifier": "getExecutionStartTimeThrowsWhenNotRan", "invocations": [ "assertThrows", "getExecutionStartTime" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getExecutionStartTimeThrowsWhenNotRan()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)", "modifier": "protected final", "original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);", "type": "Duration", "var_name": "DEFAULT_TIMEOUT" }, { "declarator": "createTime = currentInstant()", "modifier": "private final", "original_string": "private final Instant createTime = currentInstant();", "type": "Instant", "var_name": "createTime" }, { "declarator": "executionStartTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionStartTime = null;", "type": "Instant", "var_name": "executionStartTime" }, { "declarator": "executionEndTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionEndTime = null;", "type": "Instant", "var_name": "executionEndTime" }, { "declarator": "timeout", "modifier": "private", "original_string": "private Duration timeout;", "type": "Duration", "var_name": "timeout" }, { "declarator": "targetRef", "modifier": "private", "original_string": "private EdsBaseRef targetRef;", "type": "EdsBaseRef", "var_name": "targetRef" }, { "declarator": "targetRefType", "modifier": "private", "original_string": "private TargetRefType targetRefType;", "type": "TargetRefType", "var_name": "targetRefType" }, { "declarator": "decoratorCommand", "modifier": "private", "original_string": "private DecoratorCommand<R> decoratorCommand;", "type": "DecoratorCommand<R>", "var_name": "decoratorCommand" }, { "declarator": "resultBlocker = new CountDownLatch(1)", "modifier": "private final", "original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);", "type": "CountDownLatch", "var_name": "resultBlocker" }, { "declarator": "result", "modifier": "private volatile", "original_string": "private volatile R result;", "type": "R", "var_name": "result" }, { "declarator": "resultException", "modifier": "private volatile", "original_string": "private volatile Throwable resultException;", "type": "Throwable", "var_name": "resultException" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java", "identifier": "AbstractCanonCommand", "interfaces": "implements CanonCommand<R>, TargetRefCommand<R>", "methods": [ { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()", "constructor": true, "full_signature": "protected AbstractCanonCommand()", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "()", "return": "", "signature": " AbstractCanonCommand()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "constructor": true, "full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "(final AbstractCanonCommand<R> toCopy)", "return": "", "signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.copy()", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()", "identifier": "copy", "modifiers": "@SuppressWarnings(\"unchecked\") @Override public", "parameters": "()", "return": "AbstractCanonCommand<R>", "signature": "AbstractCanonCommand<R> copy()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.run()", "constructor": false, "full_signature": "@Override public final void run()", "identifier": "run", "modifiers": "@Override public final", "parameters": "()", "return": "void", "signature": "void run()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.runInternal()", "constructor": false, "full_signature": "protected abstract R runInternal()", "identifier": "runInternal", "modifiers": "protected abstract", "parameters": "()", "return": "R", "signature": "R runInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()", "constructor": false, "full_signature": "private void throwIfRunAlreadyCalled()", "identifier": "throwIfRunAlreadyCalled", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void throwIfRunAlreadyCalled()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "identifier": "setTargetRef", "modifiers": "@Override public", "parameters": "(final EdsBaseRef targetRef)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRef()", "constructor": false, "full_signature": "public final Optional<EdsBaseRef> getTargetRef()", "identifier": "getTargetRef", "modifiers": "public final", "parameters": "()", "return": "Optional<EdsBaseRef>", "signature": "Optional<EdsBaseRef> getTargetRef()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefType()", "constructor": false, "full_signature": "@Override public TargetRefType getTargetRefType()", "identifier": "getTargetRefType", "modifiers": "@Override public", "parameters": "()", "return": "TargetRefType", "signature": "TargetRefType getTargetRefType()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefInternal()", "constructor": false, "full_signature": "protected final EdsBaseRef getTargetRefInternal()", "identifier": "getTargetRefInternal", "modifiers": "protected final", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getTargetRefInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getCreateTime()", "constructor": false, "full_signature": "@Override public Instant getCreateTime()", "identifier": "getCreateTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getCreateTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionStartTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionStartTime()", "identifier": "getExecutionStartTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionStartTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionStarted()", "constructor": false, "full_signature": "@Override public boolean hasExecutionStarted()", "identifier": "hasExecutionStarted", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionStarted()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionEndTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionEndTime()", "identifier": "getExecutionEndTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionEndTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionEnded()", "constructor": false, "full_signature": "@Override public boolean hasExecutionEnded()", "identifier": "hasExecutionEnded", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionEnded()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.get()", "constructor": false, "full_signature": "@Override public R get()", "identifier": "get", "modifiers": "@Override public", "parameters": "()", "return": "R", "signature": "R get()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeout()", "constructor": false, "full_signature": "@Override public Optional<Duration> getTimeout()", "identifier": "getTimeout", "modifiers": "@Override public", "parameters": "()", "return": "Optional<Duration>", "signature": "Optional<Duration> getTimeout()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)", "identifier": "setTimeout", "modifiers": "@Override public", "parameters": "(final Duration timeout)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTimeout(final Duration timeout)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeoutInternal()", "constructor": false, "full_signature": "protected Duration getTimeoutInternal()", "identifier": "getTimeoutInternal", "modifiers": "protected", "parameters": "()", "return": "Duration", "signature": "Duration getTimeoutInternal()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public Instant getExecutionStartTime() {\n if (executionStartTime == null)\n throw new IllegalStateException(\"Command not started yet\");\n return executionStartTime;\n }", "class_method_signature": "AbstractCanonCommand.getExecutionStartTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionStartTime()", "identifier": "getExecutionStartTime", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionStartTime()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_112
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "stateEvent", "modifier": "private", "original_string": "private EdsStateEvent stateEvent;", "type": "EdsStateEvent", "var_name": "stateEvent" }, { "declarator": "eventData", "modifier": "private", "original_string": "private Long eventData;", "type": "Long", "var_name": "eventData" }, { "declarator": "canonStateEvent", "modifier": "private", "original_string": "private CanonStateEventImpl canonStateEvent;", "type": "CanonStateEventImpl", "var_name": "canonStateEvent" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImplTest.java", "identifier": "CanonStateEventImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getCameraRef() {\n final EdsCameraRef ref = canonStateEvent.getCameraRef();\n Assertions.assertNotNull(ref);\n Assertions.assertEquals(cameraRef, ref);\n Assertions.assertSame(cameraRef, canonStateEvent.getCameraRef());\n }", "class_method_signature": "CanonStateEventImplTest.getCameraRef()", "constructor": false, "full_signature": "@Test void getCameraRef()", "identifier": "getCameraRef", "invocations": [ "getCameraRef", "assertNotNull", "assertEquals", "assertSame", "getCameraRef" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getCameraRef()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef", "modifier": "private final", "original_string": "private final EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "stateEvent", "modifier": "private final", "original_string": "private final EdsStateEvent stateEvent;", "type": "EdsStateEvent", "var_name": "stateEvent" }, { "declarator": "inEventData", "modifier": "private final", "original_string": "private final long inEventData;", "type": "long", "var_name": "inEventData" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonStateEventImpl.java", "identifier": "CanonStateEventImpl", "interfaces": "implements CanonStateEvent", "methods": [ { "class_method_signature": "CanonStateEventImpl.CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "constructor": true, "full_signature": "public CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "identifier": "CanonStateEventImpl", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "return": "", "signature": " CanonStateEventImpl(final EdsCameraRef cameraRef, final EdsStateEvent stateEvent, final long inEventData)", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.getStateEvent()", "constructor": false, "full_signature": "@Override public EdsStateEvent getStateEvent()", "identifier": "getStateEvent", "modifiers": "@Override public", "parameters": "()", "return": "EdsStateEvent", "signature": "EdsStateEvent getStateEvent()", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.getEventData()", "constructor": false, "full_signature": "@Override public long getEventData()", "identifier": "getEventData", "modifiers": "@Override public", "parameters": "()", "return": "long", "signature": "long getEventData()", "testcase": false }, { "class_method_signature": "CanonStateEventImpl.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public EdsCameraRef getCameraRef() {\n return cameraRef;\n }", "class_method_signature": "CanonStateEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_26
{ "fields": [ { "declarator": "doNothingCommand", "modifier": "private", "original_string": "private DoNothingCommand doNothingCommand;", "type": "DoNothingCommand", "var_name": "doNothingCommand" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/AbstractCanonCommandTest.java", "identifier": "AbstractCanonCommandTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getTargetRefInternal() {\n final EdsdkLibrary.EdsImageRef targetRef = new EdsdkLibrary.EdsImageRef();\n doNothingCommand.setTargetRef(targetRef);\n Assertions.assertNotNull(doNothingCommand.getTargetRefInternal());\n Assertions.assertEquals(targetRef, doNothingCommand.getTargetRefInternal());\n }", "class_method_signature": "AbstractCanonCommandTest.getTargetRefInternal()", "constructor": false, "full_signature": "@Test void getTargetRefInternal()", "identifier": "getTargetRefInternal", "invocations": [ "setTargetRef", "assertNotNull", "getTargetRefInternal", "assertEquals", "getTargetRefInternal" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getTargetRefInternal()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(AbstractCanonCommand.class)", "modifier": "protected final", "original_string": "protected final Logger log = LoggerFactory.getLogger(AbstractCanonCommand.class);", "type": "Logger", "var_name": "log" }, { "declarator": "DEFAULT_TIMEOUT = Duration.ofSeconds(60)", "modifier": "private static final", "original_string": "private static final Duration DEFAULT_TIMEOUT = Duration.ofSeconds(60);", "type": "Duration", "var_name": "DEFAULT_TIMEOUT" }, { "declarator": "createTime = currentInstant()", "modifier": "private final", "original_string": "private final Instant createTime = currentInstant();", "type": "Instant", "var_name": "createTime" }, { "declarator": "executionStartTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionStartTime = null;", "type": "Instant", "var_name": "executionStartTime" }, { "declarator": "executionEndTime = null", "modifier": "private volatile", "original_string": "private volatile Instant executionEndTime = null;", "type": "Instant", "var_name": "executionEndTime" }, { "declarator": "timeout", "modifier": "private", "original_string": "private Duration timeout;", "type": "Duration", "var_name": "timeout" }, { "declarator": "targetRef", "modifier": "private", "original_string": "private EdsBaseRef targetRef;", "type": "EdsBaseRef", "var_name": "targetRef" }, { "declarator": "targetRefType", "modifier": "private", "original_string": "private TargetRefType targetRefType;", "type": "TargetRefType", "var_name": "targetRefType" }, { "declarator": "decoratorCommand", "modifier": "private", "original_string": "private DecoratorCommand<R> decoratorCommand;", "type": "DecoratorCommand<R>", "var_name": "decoratorCommand" }, { "declarator": "resultBlocker = new CountDownLatch(1)", "modifier": "private final", "original_string": "private final CountDownLatch resultBlocker = new CountDownLatch(1);", "type": "CountDownLatch", "var_name": "resultBlocker" }, { "declarator": "result", "modifier": "private volatile", "original_string": "private volatile R result;", "type": "R", "var_name": "result" }, { "declarator": "resultException", "modifier": "private volatile", "original_string": "private volatile Throwable resultException;", "type": "Throwable", "var_name": "resultException" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/AbstractCanonCommand.java", "identifier": "AbstractCanonCommand", "interfaces": "implements CanonCommand<R>, TargetRefCommand<R>", "methods": [ { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand()", "constructor": true, "full_signature": "protected AbstractCanonCommand()", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "()", "return": "", "signature": " AbstractCanonCommand()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "constructor": true, "full_signature": "protected AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "identifier": "AbstractCanonCommand", "modifiers": "protected", "parameters": "(final AbstractCanonCommand<R> toCopy)", "return": "", "signature": " AbstractCanonCommand(final AbstractCanonCommand<R> toCopy)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.copy()", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") @Override public AbstractCanonCommand<R> copy()", "identifier": "copy", "modifiers": "@SuppressWarnings(\"unchecked\") @Override public", "parameters": "()", "return": "AbstractCanonCommand<R>", "signature": "AbstractCanonCommand<R> copy()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.run()", "constructor": false, "full_signature": "@Override public final void run()", "identifier": "run", "modifiers": "@Override public final", "parameters": "()", "return": "void", "signature": "void run()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.runInternal()", "constructor": false, "full_signature": "protected abstract R runInternal()", "identifier": "runInternal", "modifiers": "protected abstract", "parameters": "()", "return": "R", "signature": "R runInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.throwIfRunAlreadyCalled()", "constructor": false, "full_signature": "private void throwIfRunAlreadyCalled()", "identifier": "throwIfRunAlreadyCalled", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void throwIfRunAlreadyCalled()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTargetRef(final EdsBaseRef targetRef)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "identifier": "setTargetRef", "modifiers": "@Override public", "parameters": "(final EdsBaseRef targetRef)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTargetRef(final EdsBaseRef targetRef)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRef()", "constructor": false, "full_signature": "public final Optional<EdsBaseRef> getTargetRef()", "identifier": "getTargetRef", "modifiers": "public final", "parameters": "()", "return": "Optional<EdsBaseRef>", "signature": "Optional<EdsBaseRef> getTargetRef()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefType()", "constructor": false, "full_signature": "@Override public TargetRefType getTargetRefType()", "identifier": "getTargetRefType", "modifiers": "@Override public", "parameters": "()", "return": "TargetRefType", "signature": "TargetRefType getTargetRefType()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTargetRefInternal()", "constructor": false, "full_signature": "protected final EdsBaseRef getTargetRefInternal()", "identifier": "getTargetRefInternal", "modifiers": "protected final", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getTargetRefInternal()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getCreateTime()", "constructor": false, "full_signature": "@Override public Instant getCreateTime()", "identifier": "getCreateTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getCreateTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionStartTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionStartTime()", "identifier": "getExecutionStartTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionStartTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionStarted()", "constructor": false, "full_signature": "@Override public boolean hasExecutionStarted()", "identifier": "hasExecutionStarted", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionStarted()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getExecutionEndTime()", "constructor": false, "full_signature": "@Override public Instant getExecutionEndTime()", "identifier": "getExecutionEndTime", "modifiers": "@Override public", "parameters": "()", "return": "Instant", "signature": "Instant getExecutionEndTime()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.hasExecutionEnded()", "constructor": false, "full_signature": "@Override public boolean hasExecutionEnded()", "identifier": "hasExecutionEnded", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean hasExecutionEnded()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.get()", "constructor": false, "full_signature": "@Override public R get()", "identifier": "get", "modifiers": "@Override public", "parameters": "()", "return": "R", "signature": "R get()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeout()", "constructor": false, "full_signature": "@Override public Optional<Duration> getTimeout()", "identifier": "getTimeout", "modifiers": "@Override public", "parameters": "()", "return": "Optional<Duration>", "signature": "Optional<Duration> getTimeout()", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.setTimeout(final Duration timeout)", "constructor": false, "full_signature": "@Override public CanonCommand<R> setTimeout(final Duration timeout)", "identifier": "setTimeout", "modifiers": "@Override public", "parameters": "(final Duration timeout)", "return": "CanonCommand<R>", "signature": "CanonCommand<R> setTimeout(final Duration timeout)", "testcase": false }, { "class_method_signature": "AbstractCanonCommand.getTimeoutInternal()", "constructor": false, "full_signature": "protected Duration getTimeoutInternal()", "identifier": "getTimeoutInternal", "modifiers": "protected", "parameters": "()", "return": "Duration", "signature": "Duration getTimeoutInternal()", "testcase": false } ], "superclass": "" }
{ "body": "protected final EdsBaseRef getTargetRefInternal() {\n if (targetRef == null)\n throw new IllegalStateException(\"TargetRef have not been set yet\");\n return targetRef;\n }", "class_method_signature": "AbstractCanonCommand.getTargetRefInternal()", "constructor": false, "full_signature": "protected final EdsBaseRef getTargetRefInternal()", "identifier": "getTargetRefInternal", "invocations": [], "modifiers": "protected final", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getTargetRefInternal()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_71
{ "fields": [], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/TargetRefAccessTypeTest.java", "identifier": "TargetRefAccessTypeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void equals() {\n Assertions.assertEquals(CAMERA_READ, CAMERA_READ);\n\n Assertions.assertNotEquals(CAMERA_WRITE, CAMERA_READ_WRITE);\n Assertions.assertNotEquals(CAMERA_READ, CAMERA_WRITE);\n\n Assertions.assertNotEquals(IMAGE_READ, IMAGE_READ_WRITE);\n Assertions.assertNotEquals(IMAGE_WRITE, IMAGE_READ_WRITE);\n Assertions.assertNotEquals(CAMERA_READ, IMAGE_WRITE);\n\n Assertions.assertNotEquals(CAMERA_READ, EVF_IMAGE_READ);\n }", "class_method_signature": "TargetRefAccessTypeTest.equals()", "constructor": false, "full_signature": "@Test void equals()", "identifier": "equals", "invocations": [ "assertEquals", "assertNotEquals", "assertNotEquals", "assertNotEquals", "assertNotEquals", "assertNotEquals", "assertNotEquals" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void equals()", "testcase": true }
{ "fields": [ { "declarator": "CAMERA_READ = new TargetRefAccessType(CAMERA, true, false)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType CAMERA_READ = new TargetRefAccessType(CAMERA, true, false);", "type": "TargetRefAccessType", "var_name": "CAMERA_READ" }, { "declarator": "CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType CAMERA_READ_WRITE = new TargetRefAccessType(CAMERA, true, true);", "type": "TargetRefAccessType", "var_name": "CAMERA_READ_WRITE" }, { "declarator": "CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType CAMERA_WRITE = new TargetRefAccessType(CAMERA, false, true);", "type": "TargetRefAccessType", "var_name": "CAMERA_WRITE" }, { "declarator": "IMAGE_READ = new TargetRefAccessType(IMAGE, true, false)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType IMAGE_READ = new TargetRefAccessType(IMAGE, true, false);", "type": "TargetRefAccessType", "var_name": "IMAGE_READ" }, { "declarator": "IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType IMAGE_READ_WRITE = new TargetRefAccessType(IMAGE, true, true);", "type": "TargetRefAccessType", "var_name": "IMAGE_READ_WRITE" }, { "declarator": "IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType IMAGE_WRITE = new TargetRefAccessType(IMAGE, false, true);", "type": "TargetRefAccessType", "var_name": "IMAGE_WRITE" }, { "declarator": "EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false)", "modifier": "public static final", "original_string": "public static final TargetRefAccessType EVF_IMAGE_READ = new TargetRefAccessType(EVF_IMAGE, true, false);", "type": "TargetRefAccessType", "var_name": "EVF_IMAGE_READ" }, { "declarator": "GROUP_NONE = Collections.emptySet()", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_NONE = Collections.emptySet();", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_NONE" }, { "declarator": "GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ = ImmutableSet.of(CAMERA_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ" }, { "declarator": "GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_WRITE" }, { "declarator": "GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ = ImmutableSet.of(IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_IMAGE_READ" }, { "declarator": "GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_READ_WRITE = ImmutableSet.of(IMAGE_READ_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_IMAGE_READ_WRITE" }, { "declarator": "GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_IMAGE_WRITE = ImmutableSet.of(IMAGE_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_IMAGE_WRITE" }, { "declarator": "GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_EVF_IMAGE_READ = ImmutableSet.of(EVF_IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_EVF_IMAGE_READ" }, { "declarator": "GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_IMAGE_READ = ImmutableSet.of(CAMERA_READ, IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_IMAGE_READ" }, { "declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ" }, { "declarator": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE = ImmutableSet.of(CAMERA_READ_WRITE, IMAGE_READ_WRITE);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_READ_WRITE_IMAGE_READ_WRITE" }, { "declarator": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ)", "modifier": "public static final", "original_string": "public static final Set<TargetRefAccessType> GROUP_CAMERA_WRITE_EVF_IMAGE_READ = ImmutableSet.of(CAMERA_WRITE, EVF_IMAGE_READ);", "type": "Set<TargetRefAccessType>", "var_name": "GROUP_CAMERA_WRITE_EVF_IMAGE_READ" }, { "declarator": "targetRefType", "modifier": "private final", "original_string": "private final TargetRefType targetRefType;", "type": "TargetRefType", "var_name": "targetRefType" }, { "declarator": "read", "modifier": "private final", "original_string": "private final boolean read;", "type": "boolean", "var_name": "read" }, { "declarator": "write", "modifier": "private final", "original_string": "private final boolean write;", "type": "boolean", "var_name": "write" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/TargetRefAccessType.java", "identifier": "TargetRefAccessType", "interfaces": "", "methods": [ { "class_method_signature": "TargetRefAccessType.TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)", "constructor": true, "full_signature": "private TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)", "identifier": "TargetRefAccessType", "modifiers": "private", "parameters": "(final TargetRefType targetRefType, final boolean read, final boolean write)", "return": "", "signature": " TargetRefAccessType(final TargetRefType targetRefType, final boolean read, final boolean write)", "testcase": false }, { "class_method_signature": "TargetRefAccessType.getTargetRefType()", "constructor": false, "full_signature": "public TargetRefType getTargetRefType()", "identifier": "getTargetRefType", "modifiers": "public", "parameters": "()", "return": "TargetRefType", "signature": "TargetRefType getTargetRefType()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.hasRead()", "constructor": false, "full_signature": "public boolean hasRead()", "identifier": "hasRead", "modifiers": "public", "parameters": "()", "return": "boolean", "signature": "boolean hasRead()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.hasWrite()", "constructor": false, "full_signature": "public boolean hasWrite()", "identifier": "hasWrite", "modifiers": "public", "parameters": "()", "return": "boolean", "signature": "boolean hasWrite()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.equals(final Object o)", "constructor": false, "full_signature": "@Override public boolean equals(final Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(final Object o)", "return": "boolean", "signature": "boolean equals(final Object o)", "testcase": false }, { "class_method_signature": "TargetRefAccessType.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false }, { "class_method_signature": "TargetRefAccessType.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public boolean equals(final Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n final TargetRefAccessType that = (TargetRefAccessType) o;\n return read == that.read &&\n write == that.write &&\n targetRefType == that.targetRefType;\n }", "class_method_signature": "TargetRefAccessType.equals(final Object o)", "constructor": false, "full_signature": "@Override public boolean equals(final Object o)", "identifier": "equals", "invocations": [ "getClass", "getClass" ], "modifiers": "@Override public", "parameters": "(final Object o)", "return": "boolean", "signature": "boolean equals(final Object o)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_7
{ "fields": [], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/ReleaseUtilTest.java", "identifier": "ReleaseUtilTest", "interfaces": "", "superclass": "extends AbstractMockTest" }
{ "body": "@Test\n void release() {\n final EdsBaseRef.ByReference byReference = new EdsBaseRef.ByReference();\n\n ReleaseUtil.release(byReference);\n\n // ================\n // Accepts null\n\n ReleaseUtil.release((EdsBaseRef.ByReference) null, null);\n\n ReleaseUtil.release((EdsBaseRef.ByReference) null);\n }", "class_method_signature": "ReleaseUtilTest.release()", "constructor": false, "full_signature": "@Test void release()", "identifier": "release", "invocations": [ "release", "release", "release" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void release()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(ReleaseUtil.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(ReleaseUtil.class);", "type": "Logger", "var_name": "log" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/ReleaseUtil.java", "identifier": "ReleaseUtil", "interfaces": "", "methods": [ { "class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "constructor": false, "full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "identifier": "release", "modifiers": "public static", "parameters": "(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "return": "void", "signature": "void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "testcase": false }, { "class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef... refs)", "constructor": false, "full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef... refs)", "identifier": "release", "modifiers": "public static", "parameters": "(final EdsdkLibrary.EdsBaseRef... refs)", "return": "void", "signature": "void release(final EdsdkLibrary.EdsBaseRef... refs)", "testcase": false }, { "class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef ref)", "constructor": false, "full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef ref)", "identifier": "release", "modifiers": "public static", "parameters": "(final EdsdkLibrary.EdsBaseRef ref)", "return": "void", "signature": "void release(final EdsdkLibrary.EdsBaseRef ref)", "testcase": false }, { "class_method_signature": "ReleaseUtil.ReleaseUtil()", "constructor": true, "full_signature": "private ReleaseUtil()", "identifier": "ReleaseUtil", "modifiers": "private", "parameters": "()", "return": "", "signature": " ReleaseUtil()", "testcase": false } ], "superclass": "" }
{ "body": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs) {\n if (refs != null)\n for (final EdsdkLibrary.EdsBaseRef.ByReference byReference : refs) {\n if (byReference != null)\n release(byReference.getValue());\n }\n }", "class_method_signature": "ReleaseUtil.release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "constructor": false, "full_signature": "public static void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "identifier": "release", "invocations": [ "release", "getValue" ], "modifiers": "public static", "parameters": "(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "return": "void", "signature": "void release(final EdsdkLibrary.EdsBaseRef.ByReference... refs)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_84
{ "fields": [ { "declarator": "cameraDefaultConstructor", "modifier": "private", "original_string": "private CanonCamera cameraDefaultConstructor;", "type": "CanonCamera", "var_name": "cameraDefaultConstructor" }, { "declarator": "cameraWithSerialNumber", "modifier": "private", "original_string": "private CanonCamera cameraWithSerialNumber;", "type": "CanonCamera", "var_name": "cameraWithSerialNumber" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/camera/CanonCameraTest.java", "identifier": "CanonCameraTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getProperty() {\n Assertions.assertNotNull(cameraDefaultConstructor.getProperty());\n Assertions.assertNotNull(cameraWithSerialNumber.getProperty());\n }", "class_method_signature": "CanonCameraTest.getProperty()", "constructor": false, "full_signature": "@Test void getProperty()", "identifier": "getProperty", "invocations": [ "assertNotNull", "getProperty", "assertNotNull", "getProperty" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getProperty()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef = new AtomicReference<>()", "modifier": "private final", "original_string": "private final AtomicReference<EdsCameraRef> cameraRef = new AtomicReference<>();", "type": "AtomicReference<EdsCameraRef>", "var_name": "cameraRef" }, { "declarator": "commandBuilderReusable", "modifier": "private", "original_string": "private CommandBuilderReusable commandBuilderReusable;", "type": "CommandBuilderReusable", "var_name": "commandBuilderReusable" }, { "declarator": "lockBuilderUse = new Object()", "modifier": "private final", "original_string": "private final Object lockBuilderUse = new Object();", "type": "Object", "var_name": "lockBuilderUse" }, { "declarator": "defaultTimeout", "modifier": "private", "original_string": "private Duration defaultTimeout;", "type": "Duration", "var_name": "defaultTimeout" }, { "declarator": "event = new Event()", "modifier": "private final", "original_string": "private final Event event = new Event();", "type": "Event", "var_name": "event" }, { "declarator": "shoot = new Shoot()", "modifier": "private final", "original_string": "private final Shoot shoot = new Shoot();", "type": "Shoot", "var_name": "shoot" }, { "declarator": "liveView = new LiveView()", "modifier": "private final", "original_string": "private final LiveView liveView = new LiveView();", "type": "LiveView", "var_name": "liveView" }, { "declarator": "property = new Property()", "modifier": "private final", "original_string": "private final Property property = new Property();", "type": "Property", "var_name": "property" }, { "declarator": "serialNumber", "modifier": "private", "original_string": "private String serialNumber;", "type": "String", "var_name": "serialNumber" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/camera/CanonCamera.java", "identifier": "CanonCamera", "interfaces": "", "methods": [ { "class_method_signature": "CanonCamera.CanonCamera()", "constructor": true, "full_signature": "public CanonCamera()", "identifier": "CanonCamera", "modifiers": "public", "parameters": "()", "return": "", "signature": " CanonCamera()", "testcase": false }, { "class_method_signature": "CanonCamera.CanonCamera(final String serialNumber)", "constructor": true, "full_signature": "public CanonCamera(final String serialNumber)", "identifier": "CanonCamera", "modifiers": "public", "parameters": "(final String serialNumber)", "return": "", "signature": " CanonCamera(final String serialNumber)", "testcase": false }, { "class_method_signature": "CanonCamera.applyTarget(final T command)", "constructor": false, "full_signature": "protected T applyTarget(final T command)", "identifier": "applyTarget", "modifiers": "protected", "parameters": "(final T command)", "return": "T", "signature": "T applyTarget(final T command)", "testcase": false }, { "class_method_signature": "CanonCamera.applyExtraOptions(final T command)", "constructor": false, "full_signature": "protected T applyExtraOptions(final T command)", "identifier": "applyExtraOptions", "modifiers": "protected", "parameters": "(final T command)", "return": "T", "signature": "T applyExtraOptions(final T command)", "testcase": false }, { "class_method_signature": "CanonCamera.applyDefaultCommandDecoration(final T command)", "constructor": false, "full_signature": "@SuppressWarnings(\"unchecked\") protected T applyDefaultCommandDecoration(final T command)", "identifier": "applyDefaultCommandDecoration", "modifiers": "@SuppressWarnings(\"unchecked\") protected", "parameters": "(final T command)", "return": "T", "signature": "T applyDefaultCommandDecoration(final T command)", "testcase": false }, { "class_method_signature": "CanonCamera.dispatchCommand(T command)", "constructor": false, "full_signature": "public T dispatchCommand(T command)", "identifier": "dispatchCommand", "modifiers": "public", "parameters": "(T command)", "return": "T", "signature": "T dispatchCommand(T command)", "testcase": false }, { "class_method_signature": "CanonCamera.getCameraRef()", "constructor": false, "full_signature": "public Optional<EdsCameraRef> getCameraRef()", "identifier": "getCameraRef", "modifiers": "public", "parameters": "()", "return": "Optional<EdsCameraRef>", "signature": "Optional<EdsCameraRef> getCameraRef()", "testcase": false }, { "class_method_signature": "CanonCamera.getCameraRefInternal()", "constructor": false, "full_signature": "protected EdsCameraRef getCameraRefInternal()", "identifier": "getCameraRefInternal", "modifiers": "protected", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRefInternal()", "testcase": false }, { "class_method_signature": "CanonCamera.setCameraRef(final EdsCameraRef cameraRef)", "constructor": false, "full_signature": "public CanonCamera setCameraRef(final EdsCameraRef cameraRef)", "identifier": "setCameraRef", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef)", "return": "CanonCamera", "signature": "CanonCamera setCameraRef(final EdsCameraRef cameraRef)", "testcase": false }, { "class_method_signature": "CanonCamera.getSerialNumber()", "constructor": false, "full_signature": "public Optional<String> getSerialNumber()", "identifier": "getSerialNumber", "modifiers": "public", "parameters": "()", "return": "Optional<String>", "signature": "Optional<String> getSerialNumber()", "testcase": false }, { "class_method_signature": "CanonCamera.setSerialNumber(final String serialNumber)", "constructor": false, "full_signature": "public void setSerialNumber(final String serialNumber)", "identifier": "setSerialNumber", "modifiers": "public", "parameters": "(final String serialNumber)", "return": "void", "signature": "void setSerialNumber(final String serialNumber)", "testcase": false }, { "class_method_signature": "CanonCamera.getCommandBuilderReusable()", "constructor": false, "full_signature": "public Optional<CommandBuilderReusable> getCommandBuilderReusable()", "identifier": "getCommandBuilderReusable", "modifiers": "public", "parameters": "()", "return": "Optional<CommandBuilderReusable>", "signature": "Optional<CommandBuilderReusable> getCommandBuilderReusable()", "testcase": false }, { "class_method_signature": "CanonCamera.setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)", "constructor": false, "full_signature": "public void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)", "identifier": "setCommandBuilderReusable", "modifiers": "public", "parameters": "(final CommandBuilderReusable commandBuilderReusable)", "return": "void", "signature": "void setCommandBuilderReusable(final CommandBuilderReusable commandBuilderReusable)", "testcase": false }, { "class_method_signature": "CanonCamera.getDefaultTimeout()", "constructor": false, "full_signature": "public Optional<Duration> getDefaultTimeout()", "identifier": "getDefaultTimeout", "modifiers": "public", "parameters": "()", "return": "Optional<Duration>", "signature": "Optional<Duration> getDefaultTimeout()", "testcase": false }, { "class_method_signature": "CanonCamera.setDefaultTimeout(final Duration defaultTimeout)", "constructor": false, "full_signature": "public CanonCamera setDefaultTimeout(final Duration defaultTimeout)", "identifier": "setDefaultTimeout", "modifiers": "public", "parameters": "(final Duration defaultTimeout)", "return": "CanonCamera", "signature": "CanonCamera setDefaultTimeout(final Duration defaultTimeout)", "testcase": false }, { "class_method_signature": "CanonCamera.getEvent()", "constructor": false, "full_signature": "public Event getEvent()", "identifier": "getEvent", "modifiers": "public", "parameters": "()", "return": "Event", "signature": "Event getEvent()", "testcase": false }, { "class_method_signature": "CanonCamera.getShoot()", "constructor": false, "full_signature": "public Shoot getShoot()", "identifier": "getShoot", "modifiers": "public", "parameters": "()", "return": "Shoot", "signature": "Shoot getShoot()", "testcase": false }, { "class_method_signature": "CanonCamera.getLiveView()", "constructor": false, "full_signature": "public LiveView getLiveView()", "identifier": "getLiveView", "modifiers": "public", "parameters": "()", "return": "LiveView", "signature": "LiveView getLiveView()", "testcase": false }, { "class_method_signature": "CanonCamera.getProperty()", "constructor": false, "full_signature": "public Property getProperty()", "identifier": "getProperty", "modifiers": "public", "parameters": "()", "return": "Property", "signature": "Property getProperty()", "testcase": false }, { "class_method_signature": "CanonCamera.sendGenericCommandAsync(final GenericCommand<R> command)", "constructor": false, "full_signature": "public GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)", "identifier": "sendGenericCommandAsync", "modifiers": "public", "parameters": "(final GenericCommand<R> command)", "return": "GenericCommand<R>", "signature": "GenericCommand<R> sendGenericCommandAsync(final GenericCommand<R> command)", "testcase": false }, { "class_method_signature": "CanonCamera.sendGenericCommandAsync(final CallableCommand<R> callableCommand)", "constructor": false, "full_signature": "public GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)", "identifier": "sendGenericCommandAsync", "modifiers": "public", "parameters": "(final CallableCommand<R> callableCommand)", "return": "GenericCommand<R>", "signature": "GenericCommand<R> sendGenericCommandAsync(final CallableCommand<R> callableCommand)", "testcase": false }, { "class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand)", "constructor": false, "full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)", "identifier": "sendCameraCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraCommand cameraCommand)", "return": "CameraCommand", "signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand)", "testcase": false }, { "class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "constructor": false, "full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "identifier": "sendCameraCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "return": "CameraCommand", "signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final NativeEnum<? extends Number> param)", "testcase": false }, { "class_method_signature": "CanonCamera.sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)", "constructor": false, "full_signature": "public CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)", "identifier": "sendCameraCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraCommand cameraCommand, final long inParam)", "return": "CameraCommand", "signature": "CameraCommand sendCameraCommandAsync(final EdsCameraCommand cameraCommand, final long inParam)", "testcase": false }, { "class_method_signature": "CanonCamera.sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)", "constructor": false, "full_signature": "public StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)", "identifier": "sendStatusCommandAsync", "modifiers": "public", "parameters": "(final EdsCameraStatusCommand statusCommand)", "return": "StatusCommand", "signature": "StatusCommand sendStatusCommandAsync(final EdsCameraStatusCommand statusCommand)", "testcase": false }, { "class_method_signature": "CanonCamera.isConnectedAsync()", "constructor": false, "full_signature": "public IsConnectedCommand isConnectedAsync()", "identifier": "isConnectedAsync", "modifiers": "public", "parameters": "()", "return": "IsConnectedCommand", "signature": "IsConnectedCommand isConnectedAsync()", "testcase": false }, { "class_method_signature": "CanonCamera.openSession()", "constructor": false, "full_signature": "public OpenSessionCommand openSession()", "identifier": "openSession", "modifiers": "public", "parameters": "()", "return": "OpenSessionCommand", "signature": "OpenSessionCommand openSession()", "testcase": false }, { "class_method_signature": "CanonCamera.openSession(final OpenSessionOption option)", "constructor": false, "full_signature": "public OpenSessionCommand openSession(final OpenSessionOption option)", "identifier": "openSession", "modifiers": "public", "parameters": "(final OpenSessionOption option)", "return": "OpenSessionCommand", "signature": "OpenSessionCommand openSession(final OpenSessionOption option)", "testcase": false }, { "class_method_signature": "CanonCamera.closeSession()", "constructor": false, "full_signature": "public CloseSessionCommand closeSession()", "identifier": "closeSession", "modifiers": "public", "parameters": "()", "return": "CloseSessionCommand", "signature": "CloseSessionCommand closeSession()", "testcase": false }, { "class_method_signature": "CanonCamera.closeSession(final CloseSessionOption option)", "constructor": false, "full_signature": "public CloseSessionCommand closeSession(final CloseSessionOption option)", "identifier": "closeSession", "modifiers": "public", "parameters": "(final CloseSessionOption option)", "return": "CloseSessionCommand", "signature": "CloseSessionCommand closeSession(final CloseSessionOption option)", "testcase": false }, { "class_method_signature": "CanonCamera.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "public Property getProperty() {\n return property;\n }", "class_method_signature": "CanonCamera.getProperty()", "constructor": false, "full_signature": "public Property getProperty()", "identifier": "getProperty", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Property", "signature": "Property getProperty()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_108
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "objectEvent", "modifier": "private", "original_string": "private EdsObjectEvent objectEvent;", "type": "EdsObjectEvent", "var_name": "objectEvent" }, { "declarator": "baseRef", "modifier": "private", "original_string": "private EdsBaseRef baseRef;", "type": "EdsBaseRef", "var_name": "baseRef" }, { "declarator": "canonObjectEvent", "modifier": "private", "original_string": "private CanonObjectEventImpl canonObjectEvent;", "type": "CanonObjectEventImpl", "var_name": "canonObjectEvent" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImplTest.java", "identifier": "CanonObjectEventImplTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getCameraRef() {\n final EdsCameraRef ref = canonObjectEvent.getCameraRef();\n Assertions.assertNotNull(ref);\n Assertions.assertEquals(cameraRef, ref);\n Assertions.assertSame(cameraRef, canonObjectEvent.getCameraRef());\n }", "class_method_signature": "CanonObjectEventImplTest.getCameraRef()", "constructor": false, "full_signature": "@Test void getCameraRef()", "identifier": "getCameraRef", "invocations": [ "getCameraRef", "assertNotNull", "assertEquals", "assertSame", "getCameraRef" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getCameraRef()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef", "modifier": "private final", "original_string": "private final EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "objectEvent", "modifier": "private final", "original_string": "private final EdsObjectEvent objectEvent;", "type": "EdsObjectEvent", "var_name": "objectEvent" }, { "declarator": "baseRef", "modifier": "private final", "original_string": "private final EdsBaseRef baseRef;", "type": "EdsBaseRef", "var_name": "baseRef" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/logic/event/CanonObjectEventImpl.java", "identifier": "CanonObjectEventImpl", "interfaces": "implements CanonObjectEvent", "methods": [ { "class_method_signature": "CanonObjectEventImpl.CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "constructor": true, "full_signature": "public CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "identifier": "CanonObjectEventImpl", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "return": "", "signature": " CanonObjectEventImpl(final EdsCameraRef cameraRef, final EdsObjectEvent objectEvent, final EdsBaseRef baseRef)", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.getObjectEvent()", "constructor": false, "full_signature": "@Override public EdsObjectEvent getObjectEvent()", "identifier": "getObjectEvent", "modifiers": "@Override public", "parameters": "()", "return": "EdsObjectEvent", "signature": "EdsObjectEvent getObjectEvent()", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.getBaseRef()", "constructor": false, "full_signature": "@Override public EdsBaseRef getBaseRef()", "identifier": "getBaseRef", "modifiers": "@Override public", "parameters": "()", "return": "EdsBaseRef", "signature": "EdsBaseRef getBaseRef()", "testcase": false }, { "class_method_signature": "CanonObjectEventImpl.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public EdsCameraRef getCameraRef() {\n return cameraRef;\n }", "class_method_signature": "CanonObjectEventImpl.getCameraRef()", "constructor": false, "full_signature": "@Override public EdsCameraRef getCameraRef()", "identifier": "getCameraRef", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EdsCameraRef", "signature": "EdsCameraRef getCameraRef()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_92
{ "fields": [], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/helper/factory/CanonFactoryTest.java", "identifier": "CanonFactoryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setCanonFactoryThrowsIfNull() {\n assertThrows(NullPointerException.class, () -> CanonFactory.setCanonFactory(null));\n }", "class_method_signature": "CanonFactoryTest.setCanonFactoryThrowsIfNull()", "constructor": false, "full_signature": "@Test void setCanonFactoryThrowsIfNull()", "identifier": "setCanonFactoryThrowsIfNull", "invocations": [ "assertThrows", "setCanonFactory" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void setCanonFactoryThrowsIfNull()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(CanonFactory.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(CanonFactory.class);", "type": "Logger", "var_name": "log" }, { "declarator": "factoryChangedCount = new AtomicInteger(0)", "modifier": "private static final", "original_string": "private static final AtomicInteger factoryChangedCount = new AtomicInteger(0);", "type": "AtomicInteger", "var_name": "factoryChangedCount" }, { "declarator": "canonFactory = new CanonFactory()", "modifier": "private static", "original_string": "private static CanonFactory canonFactory = new CanonFactory();", "type": "CanonFactory", "var_name": "canonFactory" }, { "declarator": "commandDispatcher = SingleCommandDispatcher.getInstance()", "modifier": "private static final", "original_string": "private static final CommandDispatcher commandDispatcher = SingleCommandDispatcher.getInstance();", "type": "CommandDispatcher", "var_name": "commandDispatcher" }, { "declarator": "eventFetcherLogic = new EventFetcherCommandLogicDefault()", "modifier": "private static final", "original_string": "private static final EventFetcherLogic eventFetcherLogic = new EventFetcherCommandLogicDefault();", "type": "EventFetcherLogic", "var_name": "eventFetcherLogic" }, { "declarator": "canonLibrary = new CanonLibraryImpl()", "modifier": "private static final", "original_string": "private static final CanonLibrary canonLibrary = new CanonLibraryImpl();", "type": "CanonLibrary", "var_name": "canonLibrary" }, { "declarator": "cameraLogic = new CameraLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraLogic cameraLogic = new CameraLogicDefault();", "type": "CameraLogic", "var_name": "cameraLogic" }, { "declarator": "cameraAddedEventLogic = new CameraAddedEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraAddedEventLogic cameraAddedEventLogic = new CameraAddedEventLogicDefault();", "type": "CameraAddedEventLogic", "var_name": "cameraAddedEventLogic" }, { "declarator": "cameraObjectEventLogic = new CameraObjectEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraObjectEventLogic cameraObjectEventLogic = new CameraObjectEventLogicDefault();", "type": "CameraObjectEventLogic", "var_name": "cameraObjectEventLogic" }, { "declarator": "cameraPropertyEventLogic = new CameraPropertyEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraPropertyEventLogic cameraPropertyEventLogic = new CameraPropertyEventLogicDefault();", "type": "CameraPropertyEventLogic", "var_name": "cameraPropertyEventLogic" }, { "declarator": "cameraStateEventLogic = new CameraStateEventLogicDefault()", "modifier": "private static final", "original_string": "private static final CameraStateEventLogic cameraStateEventLogic = new CameraStateEventLogicDefault();", "type": "CameraStateEventLogic", "var_name": "cameraStateEventLogic" }, { "declarator": "propertyLogic = new PropertyLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyLogic propertyLogic = new PropertyLogicDefault();", "type": "PropertyLogic", "var_name": "propertyLogic" }, { "declarator": "propertyDescLogic = new PropertyDescLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyDescLogic propertyDescLogic = new PropertyDescLogicDefault();", "type": "PropertyDescLogic", "var_name": "propertyDescLogic" }, { "declarator": "propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyDescShortcutLogic propertyDescShortcutLogic = new PropertyDescShortcutLogicDefault();", "type": "PropertyDescShortcutLogic", "var_name": "propertyDescShortcutLogic" }, { "declarator": "propertyGetLogic = new PropertyGetLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyGetLogic propertyGetLogic = new PropertyGetLogicDefault();", "type": "PropertyGetLogic", "var_name": "propertyGetLogic" }, { "declarator": "propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertyGetShortcutLogic propertyGetShortcutLogic = new PropertyGetShortcutLogicDefault();", "type": "PropertyGetShortcutLogic", "var_name": "propertyGetShortcutLogic" }, { "declarator": "propertySetLogic = new PropertySetLogicDefault()", "modifier": "private static final", "original_string": "private static final PropertySetLogic propertySetLogic = new PropertySetLogicDefault();", "type": "PropertySetLogic", "var_name": "propertySetLogic" }, { "declarator": "liveViewLogic = new LiveViewLogicDefault()", "modifier": "private static final", "original_string": "private static final LiveViewLogic liveViewLogic = new LiveViewLogicDefault();", "type": "LiveViewLogic", "var_name": "liveViewLogic" }, { "declarator": "shootLogic = new ShootLogicDefault()", "modifier": "private static final", "original_string": "private static final ShootLogic shootLogic = new ShootLogicDefault();", "type": "ShootLogic", "var_name": "shootLogic" }, { "declarator": "fileLogic = new FileLogicDefault()", "modifier": "private static final", "original_string": "private static final FileLogic fileLogic = new FileLogicDefault();", "type": "FileLogic", "var_name": "fileLogic" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/helper/factory/CanonFactory.java", "identifier": "CanonFactory", "interfaces": "", "methods": [ { "class_method_signature": "CanonFactory.CanonFactory()", "constructor": true, "full_signature": "protected CanonFactory()", "identifier": "CanonFactory", "modifiers": "protected", "parameters": "()", "return": "", "signature": " CanonFactory()", "testcase": false }, { "class_method_signature": "CanonFactory.getCanonFactory()", "constructor": false, "full_signature": "public static CanonFactory getCanonFactory()", "identifier": "getCanonFactory", "modifiers": "public static", "parameters": "()", "return": "CanonFactory", "signature": "CanonFactory getCanonFactory()", "testcase": false }, { "class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)", "constructor": false, "full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)", "identifier": "setCanonFactory", "modifiers": "public static", "parameters": "(final CanonFactory canonFactory)", "return": "void", "signature": "void setCanonFactory(final CanonFactory canonFactory)", "testcase": false }, { "class_method_signature": "CanonFactory.commandDispatcher()", "constructor": false, "full_signature": "public static CommandDispatcher commandDispatcher()", "identifier": "commandDispatcher", "modifiers": "public static", "parameters": "()", "return": "CommandDispatcher", "signature": "CommandDispatcher commandDispatcher()", "testcase": false }, { "class_method_signature": "CanonFactory.eventFetcherLogic()", "constructor": false, "full_signature": "public static EventFetcherLogic eventFetcherLogic()", "identifier": "eventFetcherLogic", "modifiers": "public static", "parameters": "()", "return": "EventFetcherLogic", "signature": "EventFetcherLogic eventFetcherLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.edsdkLibrary()", "constructor": false, "full_signature": "public static EdsdkLibrary edsdkLibrary()", "identifier": "edsdkLibrary", "modifiers": "public static", "parameters": "()", "return": "EdsdkLibrary", "signature": "EdsdkLibrary edsdkLibrary()", "testcase": false }, { "class_method_signature": "CanonFactory.canonLibrary()", "constructor": false, "full_signature": "public static CanonLibrary canonLibrary()", "identifier": "canonLibrary", "modifiers": "public static", "parameters": "()", "return": "CanonLibrary", "signature": "CanonLibrary canonLibrary()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraLogic()", "constructor": false, "full_signature": "public static CameraLogic cameraLogic()", "identifier": "cameraLogic", "modifiers": "public static", "parameters": "()", "return": "CameraLogic", "signature": "CameraLogic cameraLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraAddedEventLogic()", "constructor": false, "full_signature": "public static CameraAddedEventLogic cameraAddedEventLogic()", "identifier": "cameraAddedEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraAddedEventLogic", "signature": "CameraAddedEventLogic cameraAddedEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraObjectEventLogic()", "constructor": false, "full_signature": "public static CameraObjectEventLogic cameraObjectEventLogic()", "identifier": "cameraObjectEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraObjectEventLogic", "signature": "CameraObjectEventLogic cameraObjectEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraPropertyEventLogic()", "constructor": false, "full_signature": "public static CameraPropertyEventLogic cameraPropertyEventLogic()", "identifier": "cameraPropertyEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraPropertyEventLogic", "signature": "CameraPropertyEventLogic cameraPropertyEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.cameraStateEventLogic()", "constructor": false, "full_signature": "public static CameraStateEventLogic cameraStateEventLogic()", "identifier": "cameraStateEventLogic", "modifiers": "public static", "parameters": "()", "return": "CameraStateEventLogic", "signature": "CameraStateEventLogic cameraStateEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyLogic()", "constructor": false, "full_signature": "public static PropertyLogic propertyLogic()", "identifier": "propertyLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyLogic", "signature": "PropertyLogic propertyLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyDescLogic()", "constructor": false, "full_signature": "public static PropertyDescLogic propertyDescLogic()", "identifier": "propertyDescLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyDescLogic", "signature": "PropertyDescLogic propertyDescLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyDescShortcutLogic()", "constructor": false, "full_signature": "public static PropertyDescShortcutLogic propertyDescShortcutLogic()", "identifier": "propertyDescShortcutLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyDescShortcutLogic", "signature": "PropertyDescShortcutLogic propertyDescShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyGetLogic()", "constructor": false, "full_signature": "public static PropertyGetLogic propertyGetLogic()", "identifier": "propertyGetLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyGetLogic", "signature": "PropertyGetLogic propertyGetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertyGetShortcutLogic()", "constructor": false, "full_signature": "public static PropertyGetShortcutLogic propertyGetShortcutLogic()", "identifier": "propertyGetShortcutLogic", "modifiers": "public static", "parameters": "()", "return": "PropertyGetShortcutLogic", "signature": "PropertyGetShortcutLogic propertyGetShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.propertySetLogic()", "constructor": false, "full_signature": "public static PropertySetLogic propertySetLogic()", "identifier": "propertySetLogic", "modifiers": "public static", "parameters": "()", "return": "PropertySetLogic", "signature": "PropertySetLogic propertySetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.liveViewLogic()", "constructor": false, "full_signature": "public static LiveViewLogic liveViewLogic()", "identifier": "liveViewLogic", "modifiers": "public static", "parameters": "()", "return": "LiveViewLogic", "signature": "LiveViewLogic liveViewLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.shootLogic()", "constructor": false, "full_signature": "public static ShootLogic shootLogic()", "identifier": "shootLogic", "modifiers": "public static", "parameters": "()", "return": "ShootLogic", "signature": "ShootLogic shootLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.fileLogic()", "constructor": false, "full_signature": "public static FileLogic fileLogic()", "identifier": "fileLogic", "modifiers": "public static", "parameters": "()", "return": "FileLogic", "signature": "FileLogic fileLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCommandDispatcher()", "constructor": false, "full_signature": "public CommandDispatcher getCommandDispatcher()", "identifier": "getCommandDispatcher", "modifiers": "public", "parameters": "()", "return": "CommandDispatcher", "signature": "CommandDispatcher getCommandDispatcher()", "testcase": false }, { "class_method_signature": "CanonFactory.getEventFetcherLogic()", "constructor": false, "full_signature": "public EventFetcherLogic getEventFetcherLogic()", "identifier": "getEventFetcherLogic", "modifiers": "public", "parameters": "()", "return": "EventFetcherLogic", "signature": "EventFetcherLogic getEventFetcherLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCanonLibrary()", "constructor": false, "full_signature": "public CanonLibrary getCanonLibrary()", "identifier": "getCanonLibrary", "modifiers": "public", "parameters": "()", "return": "CanonLibrary", "signature": "CanonLibrary getCanonLibrary()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraLogic()", "constructor": false, "full_signature": "public CameraLogic getCameraLogic()", "identifier": "getCameraLogic", "modifiers": "public", "parameters": "()", "return": "CameraLogic", "signature": "CameraLogic getCameraLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraAddedEventLogic()", "constructor": false, "full_signature": "public CameraAddedEventLogic getCameraAddedEventLogic()", "identifier": "getCameraAddedEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraAddedEventLogic", "signature": "CameraAddedEventLogic getCameraAddedEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraObjectEventLogic()", "constructor": false, "full_signature": "public CameraObjectEventLogic getCameraObjectEventLogic()", "identifier": "getCameraObjectEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraObjectEventLogic", "signature": "CameraObjectEventLogic getCameraObjectEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraPropertyEventLogic()", "constructor": false, "full_signature": "public CameraPropertyEventLogic getCameraPropertyEventLogic()", "identifier": "getCameraPropertyEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraPropertyEventLogic", "signature": "CameraPropertyEventLogic getCameraPropertyEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getCameraStateEventLogic()", "constructor": false, "full_signature": "public CameraStateEventLogic getCameraStateEventLogic()", "identifier": "getCameraStateEventLogic", "modifiers": "public", "parameters": "()", "return": "CameraStateEventLogic", "signature": "CameraStateEventLogic getCameraStateEventLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyLogic()", "constructor": false, "full_signature": "public PropertyLogic getPropertyLogic()", "identifier": "getPropertyLogic", "modifiers": "public", "parameters": "()", "return": "PropertyLogic", "signature": "PropertyLogic getPropertyLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyDescLogic()", "constructor": false, "full_signature": "public PropertyDescLogic getPropertyDescLogic()", "identifier": "getPropertyDescLogic", "modifiers": "public", "parameters": "()", "return": "PropertyDescLogic", "signature": "PropertyDescLogic getPropertyDescLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyDescShortcutLogic()", "constructor": false, "full_signature": "public PropertyDescShortcutLogic getPropertyDescShortcutLogic()", "identifier": "getPropertyDescShortcutLogic", "modifiers": "public", "parameters": "()", "return": "PropertyDescShortcutLogic", "signature": "PropertyDescShortcutLogic getPropertyDescShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyGetLogic()", "constructor": false, "full_signature": "public PropertyGetLogic getPropertyGetLogic()", "identifier": "getPropertyGetLogic", "modifiers": "public", "parameters": "()", "return": "PropertyGetLogic", "signature": "PropertyGetLogic getPropertyGetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertyGetShortcutLogic()", "constructor": false, "full_signature": "public PropertyGetShortcutLogic getPropertyGetShortcutLogic()", "identifier": "getPropertyGetShortcutLogic", "modifiers": "public", "parameters": "()", "return": "PropertyGetShortcutLogic", "signature": "PropertyGetShortcutLogic getPropertyGetShortcutLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getPropertySetLogic()", "constructor": false, "full_signature": "public PropertySetLogic getPropertySetLogic()", "identifier": "getPropertySetLogic", "modifiers": "public", "parameters": "()", "return": "PropertySetLogic", "signature": "PropertySetLogic getPropertySetLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getLiveViewLogic()", "constructor": false, "full_signature": "public LiveViewLogic getLiveViewLogic()", "identifier": "getLiveViewLogic", "modifiers": "public", "parameters": "()", "return": "LiveViewLogic", "signature": "LiveViewLogic getLiveViewLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getShootLogic()", "constructor": false, "full_signature": "public ShootLogic getShootLogic()", "identifier": "getShootLogic", "modifiers": "public", "parameters": "()", "return": "ShootLogic", "signature": "ShootLogic getShootLogic()", "testcase": false }, { "class_method_signature": "CanonFactory.getFileLogic()", "constructor": false, "full_signature": "public FileLogic getFileLogic()", "identifier": "getFileLogic", "modifiers": "public", "parameters": "()", "return": "FileLogic", "signature": "FileLogic getFileLogic()", "testcase": false } ], "superclass": "" }
{ "body": "public static void setCanonFactory(final CanonFactory canonFactory) {\n CanonFactory.canonFactory = Objects.requireNonNull(canonFactory);\n log.info(\"Canon factory has been modified {} time(s)\", factoryChangedCount.incrementAndGet());\n }", "class_method_signature": "CanonFactory.setCanonFactory(final CanonFactory canonFactory)", "constructor": false, "full_signature": "public static void setCanonFactory(final CanonFactory canonFactory)", "identifier": "setCanonFactory", "invocations": [ "requireNonNull", "info", "incrementAndGet" ], "modifiers": "public static", "parameters": "(final CanonFactory canonFactory)", "return": "void", "signature": "void setCanonFactory(final CanonFactory canonFactory)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_51
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsdkLibrary.EdsCameraRef cameraRef;", "type": "EdsdkLibrary.EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "builder", "modifier": "private", "original_string": "private CloseSessionOptionBuilder builder;", "type": "CloseSessionOptionBuilder", "var_name": "builder" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilderTest.java", "identifier": "CloseSessionOptionBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void setCameraRefThrowsOnNull() {\n Assertions.assertThrows(NullPointerException.class, () -> builder.setCameraRef(null));\n }", "class_method_signature": "CloseSessionOptionBuilderTest.setCameraRefThrowsOnNull()", "constructor": false, "full_signature": "@Test void setCameraRefThrowsOnNull()", "identifier": "setCameraRefThrowsOnNull", "invocations": [ "assertThrows", "setCameraRef" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void setCameraRefThrowsOnNull()", "testcase": true }
{ "fields": [ { "declarator": "cameraRef", "modifier": "private", "original_string": "private EdsCameraRef cameraRef;", "type": "EdsCameraRef", "var_name": "cameraRef" }, { "declarator": "releaseCameraRef = true", "modifier": "private", "original_string": "private boolean releaseCameraRef = true;", "type": "boolean", "var_name": "releaseCameraRef" }, { "declarator": "camera", "modifier": "private", "original_string": "private CanonCamera camera;", "type": "CanonCamera", "var_name": "camera" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/builder/CloseSessionOptionBuilder.java", "identifier": "CloseSessionOptionBuilder", "interfaces": "", "methods": [ { "class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)", "constructor": false, "full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)", "identifier": "setCameraRef", "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef)", "return": "CloseSessionOptionBuilder", "signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)", "testcase": false }, { "class_method_signature": "CloseSessionOptionBuilder.setReleaseCameraRef(final boolean releaseCameraRef)", "constructor": false, "full_signature": "public CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)", "identifier": "setReleaseCameraRef", "modifiers": "public", "parameters": "(final boolean releaseCameraRef)", "return": "CloseSessionOptionBuilder", "signature": "CloseSessionOptionBuilder setReleaseCameraRef(final boolean releaseCameraRef)", "testcase": false }, { "class_method_signature": "CloseSessionOptionBuilder.setCamera(final CanonCamera camera)", "constructor": false, "full_signature": "public CloseSessionOptionBuilder setCamera(final CanonCamera camera)", "identifier": "setCamera", "modifiers": "public", "parameters": "(final CanonCamera camera)", "return": "CloseSessionOptionBuilder", "signature": "CloseSessionOptionBuilder setCamera(final CanonCamera camera)", "testcase": false }, { "class_method_signature": "CloseSessionOptionBuilder.build()", "constructor": false, "full_signature": "public CloseSessionOption build()", "identifier": "build", "modifiers": "public", "parameters": "()", "return": "CloseSessionOption", "signature": "CloseSessionOption build()", "testcase": false }, { "class_method_signature": "CloseSessionOptionBuilder.validate()", "constructor": false, "full_signature": "private void validate()", "identifier": "validate", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void validate()", "testcase": false } ], "superclass": "" }
{ "body": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef) {\n this.cameraRef = Objects.requireNonNull(cameraRef);\n return this;\n }", "class_method_signature": "CloseSessionOptionBuilder.setCameraRef(final EdsCameraRef cameraRef)", "constructor": false, "full_signature": "public CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)", "identifier": "setCameraRef", "invocations": [ "requireNonNull" ], "modifiers": "public", "parameters": "(final EdsCameraRef cameraRef)", "return": "CloseSessionOptionBuilder", "signature": "CloseSessionOptionBuilder setCameraRef(final EdsCameraRef cameraRef)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_47
{ "fields": [ { "declarator": "command", "modifier": "private", "original_string": "private GenericCommand<String> command;", "type": "GenericCommand<String>", "var_name": "command" }, { "declarator": "commandThrows", "modifier": "private", "original_string": "private GenericCommand<String> commandThrows;", "type": "GenericCommand<String>", "var_name": "commandThrows" } ], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/api/command/decorator/impl/DefaultValueOnErrorDecoratorTest.java", "identifier": "DefaultValueOnErrorDecoratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void get() {\n final DefaultValueOnErrorDecorator<String> decorator = new DefaultValueOnErrorDecorator<>(command);\n\n decorator.run();\n\n Assertions.assertNotNull(decorator.get());\n Assertions.assertEquals(\"value\", decorator.get());\n }", "class_method_signature": "DefaultValueOnErrorDecoratorTest.get()", "constructor": false, "full_signature": "@Test void get()", "identifier": "get", "invocations": [ "run", "assertNotNull", "get", "assertEquals", "get" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void get()", "testcase": true }
{ "fields": [ { "declarator": "defaultValue", "modifier": "private final", "original_string": "private final R defaultValue;", "type": "R", "var_name": "defaultValue" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/api/command/decorator/impl/DefaultValueOnErrorDecorator.java", "identifier": "DefaultValueOnErrorDecorator", "interfaces": "implements CanonCommand<R>", "methods": [ { "class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)", "constructor": true, "full_signature": "public DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)", "identifier": "DefaultValueOnErrorDecorator", "modifiers": "public", "parameters": "(final CanonCommand<R> delegate)", "return": "", "signature": " DefaultValueOnErrorDecorator(final CanonCommand<R> delegate)", "testcase": false }, { "class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)", "constructor": true, "full_signature": "public DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)", "identifier": "DefaultValueOnErrorDecorator", "modifiers": "public", "parameters": "(final CanonCommand<R> delegate, final R defaultValue)", "return": "", "signature": " DefaultValueOnErrorDecorator(final CanonCommand<R> delegate, final R defaultValue)", "testcase": false }, { "class_method_signature": "DefaultValueOnErrorDecorator.DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)", "constructor": true, "full_signature": "public DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)", "identifier": "DefaultValueOnErrorDecorator", "modifiers": "public", "parameters": "(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)", "return": "", "signature": " DefaultValueOnErrorDecorator(final FakeClassArgument fake, final DefaultValueOnErrorDecorator<R> toCopy)", "testcase": false }, { "class_method_signature": "DefaultValueOnErrorDecorator.get()", "constructor": false, "full_signature": "@Override public R get()", "identifier": "get", "modifiers": "@Override public", "parameters": "()", "return": "R", "signature": "R get()", "testcase": false }, { "class_method_signature": "DefaultValueOnErrorDecorator.getOpt()", "constructor": false, "full_signature": "@Override public Optional<R> getOpt()", "identifier": "getOpt", "modifiers": "@Override public", "parameters": "()", "return": "Optional<R>", "signature": "Optional<R> getOpt()", "testcase": false } ], "superclass": "extends AbstractDecoratorCommand<R>" }
{ "body": "@Override\n public R get() {\n try {\n return getDelegate().get();\n } catch (Exception e) {\n return defaultValue;\n }\n }", "class_method_signature": "DefaultValueOnErrorDecorator.get()", "constructor": false, "full_signature": "@Override public R get()", "identifier": "get", "invocations": [ "get", "getDelegate" ], "modifiers": "@Override public", "parameters": "()", "return": "R", "signature": "R get()", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
150677892_10
{ "fields": [], "file": "camera-framework/src/test/java/org/blackdread/cameraframework/util/LibraryFieldUtilTest.java", "identifier": "LibraryFieldUtilTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getNativeIntValue() {\n final int nativeIntValue = LibraryFieldUtil.getNativeIntValue(EdsdkLibrary.EdsFileAttributes.class,\n EdsFileAttributes.kEdsFileAttribute_Archive.name());\n Assertions.assertTrue(nativeIntValue > 0);\n }", "class_method_signature": "LibraryFieldUtilTest.getNativeIntValue()", "constructor": false, "full_signature": "@Test void getNativeIntValue()", "identifier": "getNativeIntValue", "invocations": [ "getNativeIntValue", "name", "assertTrue" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void getNativeIntValue()", "testcase": true }
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(LibraryFieldUtil.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(LibraryFieldUtil.class);", "type": "Logger", "var_name": "log" } ], "file": "camera-framework/src/main/java/org/blackdread/cameraframework/util/LibraryFieldUtil.java", "identifier": "LibraryFieldUtil", "interfaces": "", "methods": [ { "class_method_signature": "LibraryFieldUtil.getNativeIntValue(final Class klass, final String fieldName)", "constructor": false, "full_signature": "public static int getNativeIntValue(final Class klass, final String fieldName)", "identifier": "getNativeIntValue", "modifiers": "public static", "parameters": "(final Class klass, final String fieldName)", "return": "int", "signature": "int getNativeIntValue(final Class klass, final String fieldName)", "testcase": false }, { "class_method_signature": "LibraryFieldUtil.countClassField(final Class klass)", "constructor": false, "full_signature": "public static int countClassField(final Class klass)", "identifier": "countClassField", "modifiers": "public static", "parameters": "(final Class klass)", "return": "int", "signature": "int countClassField(final Class klass)", "testcase": false }, { "class_method_signature": "LibraryFieldUtil.LibraryFieldUtil()", "constructor": true, "full_signature": "private LibraryFieldUtil()", "identifier": "LibraryFieldUtil", "modifiers": "private", "parameters": "()", "return": "", "signature": " LibraryFieldUtil()", "testcase": false } ], "superclass": "" }
{ "body": "public static int getNativeIntValue(final Class klass, final String fieldName) {\n try {\n final Field field = klass.getField(fieldName);\n return field.getInt(null);\n } catch (NoSuchFieldException | IllegalAccessException e) {\n log.error(\"Failed to get field value for '{}' in {}: {}\", fieldName, klass, e.getMessage());\n throw new IllegalStateException(\"Failed to get field value for '\" + fieldName + \"' from \" + klass.getCanonicalName(), e);\n }\n }", "class_method_signature": "LibraryFieldUtil.getNativeIntValue(final Class klass, final String fieldName)", "constructor": false, "full_signature": "public static int getNativeIntValue(final Class klass, final String fieldName)", "identifier": "getNativeIntValue", "invocations": [ "getField", "getInt", "error", "getMessage", "getCanonicalName" ], "modifiers": "public static", "parameters": "(final Class klass, final String fieldName)", "return": "int", "signature": "int getNativeIntValue(final Class klass, final String fieldName)", "testcase": false }
{ "created": "9/28/2018 3:00:04 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 150677892, "size": null, "stargazer_count": null, "stars": 37, "updates": "2020-01-23T02:16:48+00:00", "url": "https://github.com/Blackdread/canon-sdk-java" }
36073969_1
{ "fields": [], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/scheduled/ScheduleTest.java", "identifier": "ScheduleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquality() {\n Instant startTime = Instant.parse(\"2015-06-10T03:00:00.00Z\");\n\n Schedule schedule1 = new Schedule.Builder()\n .jobName(\"scheduled-input-output\")\n .jobClass(ScheduledInputOutputJob.class)\n .frequency(\"0 * * * *\")\n .startAt(startTime)\n .withInput(\"source_users\", ScheduledInputOutputApp.INPUT_URI_PATTERN, \"0 * * * *\")\n .withOutput(\"target_users\", ScheduledInputOutputApp.OUTPUT_URI_PATTERN)\n .build();\n\n Schedule schedule2 = new Schedule.Builder()\n .jobName(\"scheduled-input-output\")\n .frequency(\"0 * * * *\")\n .jobClass(ScheduledInputOutputJob.class)\n .startAt(startTime)\n .withOutput(\"target_users\", ScheduledInputOutputApp.OUTPUT_URI_PATTERN)\n .withInput(\"source_users\", ScheduledInputOutputApp.INPUT_URI_PATTERN, \"0 * * * *\")\n .build();\n\n Schedule unequal = new Schedule.Builder()\n .jobName(\"scheduled-input-output\")\n .frequency(\"0 * * * *\")\n .jobClass(ScheduledInputOutputJob.class)\n .startAt(startTime)\n .withOutput(\"target_users\", ScheduledInputOutputApp.OUTPUT_URI_PATTERN)\n .withInput(\"source_users\", ScheduledInputOutputApp.INPUT_URI_PATTERN, \"1 * * * *\")\n .build();\n\n assertEquals(schedule1, schedule2);\n\n assertFalse(schedule1.equals(unequal));\n }", "class_method_signature": "ScheduleTest.testEquality()", "constructor": false, "full_signature": "@Test public void testEquality()", "identifier": "testEquality", "invocations": [ "parse", "build", "withOutput", "withInput", "startAt", "frequency", "jobClass", "jobName", "build", "withInput", "withOutput", "startAt", "jobClass", "frequency", "jobName", "build", "withInput", "withOutput", "startAt", "jobClass", "frequency", "jobName", "assertEquals", "assertFalse", "equals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testEquality()", "testcase": true }
{ "fields": [ { "declarator": "jobClass", "modifier": "private final", "original_string": "private final Class<? extends SchedulableJob> jobClass;", "type": "Class<? extends SchedulableJob>", "var_name": "jobClass" }, { "declarator": "frequency", "modifier": "private final", "original_string": "private final String frequency;", "type": "String", "var_name": "frequency" }, { "declarator": "name", "modifier": "private final", "original_string": "private final String name;", "type": "String", "var_name": "name" }, { "declarator": "startTime", "modifier": "private final", "original_string": "private final Instant startTime;", "type": "Instant", "var_name": "startTime" }, { "declarator": "views", "modifier": "private final", "original_string": "private final Map<String,ViewTemplate> views;", "type": "Map<String,ViewTemplate>", "var_name": "views" }, { "declarator": "NAME_PATTERN = Pattern.compile(\"([a-zA-Z]([\\\\-_a-zA-Z0-9])*){1,39}\")", "modifier": "private static final", "original_string": "private static final Pattern NAME_PATTERN = Pattern.compile(\"([a-zA-Z]([\\\\-_a-zA-Z0-9])*){1,39}\");", "type": "Pattern", "var_name": "NAME_PATTERN" }, { "declarator": "NAME = \"name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"name\";", "type": "String", "var_name": "NAME" }, { "declarator": "JOBCLASS = \"jobclass\"", "modifier": "private static final", "original_string": "private static final String JOBCLASS = \"jobclass\";", "type": "String", "var_name": "JOBCLASS" }, { "declarator": "URI = \"uri\"", "modifier": "private static final", "original_string": "private static final String URI = \"uri\";", "type": "String", "var_name": "URI" }, { "declarator": "FREQUENCY = \"frequency\"", "modifier": "private static final", "original_string": "private static final String FREQUENCY = \"frequency\";", "type": "String", "var_name": "FREQUENCY" }, { "declarator": "TYPE = \"type\"", "modifier": "private static final", "original_string": "private static final String TYPE = \"type\";", "type": "String", "var_name": "TYPE" }, { "declarator": "VIEWS = \"views\"", "modifier": "private static final", "original_string": "private static final String VIEWS = \"views\";", "type": "String", "var_name": "VIEWS" }, { "declarator": "IS_INPUT = \"isinput\"", "modifier": "private static final", "original_string": "private static final String IS_INPUT = \"isinput\";", "type": "String", "var_name": "IS_INPUT" }, { "declarator": "START_TIME = \"starttime\"", "modifier": "private static final", "original_string": "private static final String START_TIME = \"starttime\";", "type": "String", "var_name": "START_TIME" }, { "declarator": "formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC)", "modifier": "private static final", "original_string": "private static final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC);", "type": "DateTimeFormatter", "var_name": "formatter" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/scheduled/Schedule.java", "identifier": "Schedule", "interfaces": "", "methods": [ { "class_method_signature": "Schedule.Schedule(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "constructor": true, "full_signature": " Schedule(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "identifier": "Schedule", "modifiers": "", "parameters": "(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "return": "", "signature": " Schedule(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "testcase": false }, { "class_method_signature": "Schedule.getJobClass()", "constructor": false, "full_signature": "public Class<? extends SchedulableJob> getJobClass()", "identifier": "getJobClass", "modifiers": "public", "parameters": "()", "return": "Class<? extends SchedulableJob>", "signature": "Class<? extends SchedulableJob> getJobClass()", "testcase": false }, { "class_method_signature": "Schedule.getFrequency()", "constructor": false, "full_signature": "public String getFrequency()", "identifier": "getFrequency", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String getFrequency()", "testcase": false }, { "class_method_signature": "Schedule.getName()", "constructor": false, "full_signature": "public String getName()", "identifier": "getName", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String getName()", "testcase": false }, { "class_method_signature": "Schedule.getStartTime()", "constructor": false, "full_signature": "public Instant getStartTime()", "identifier": "getStartTime", "modifiers": "public", "parameters": "()", "return": "Instant", "signature": "Instant getStartTime()", "testcase": false }, { "class_method_signature": "Schedule.getViewTemplates()", "constructor": false, "full_signature": "public Map<String,ViewTemplate> getViewTemplates()", "identifier": "getViewTemplates", "modifiers": "public", "parameters": "()", "return": "Map<String,ViewTemplate>", "signature": "Map<String,ViewTemplate> getViewTemplates()", "testcase": false }, { "class_method_signature": "Schedule.toJson()", "constructor": false, "full_signature": "private TreeNode toJson()", "identifier": "toJson", "modifiers": "private", "parameters": "()", "return": "TreeNode", "signature": "TreeNode toJson()", "testcase": false }, { "class_method_signature": "Schedule.parseJson(String json)", "constructor": false, "full_signature": "public static Schedule parseJson(String json)", "identifier": "parseJson", "modifiers": "public static", "parameters": "(String json)", "return": "Schedule", "signature": "Schedule parseJson(String json)", "testcase": false }, { "class_method_signature": "Schedule.toString()", "constructor": false, "full_signature": "public String toString()", "identifier": "toString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Schedule.equals(Object that)", "constructor": false, "full_signature": "@Override public boolean equals(Object that)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object that)", "return": "boolean", "signature": "boolean equals(Object that)", "testcase": false }, { "class_method_signature": "Schedule.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public boolean equals(Object that) {\n if (this == that) {\n return true;\n }\n\n if (!(that instanceof Schedule))\n return false;\n\n Schedule _that = (Schedule) that;\n\n return this.name.equals(_that.name) &&\n this.jobClass.equals(_that.jobClass) &&\n this.frequency.equals(_that.frequency) &&\n this.startTime.equals(_that.startTime) &&\n this.views.equals(_that.views);\n }", "class_method_signature": "Schedule.equals(Object that)", "constructor": false, "full_signature": "@Override public boolean equals(Object that)", "identifier": "equals", "invocations": [ "equals", "equals", "equals", "equals", "equals" ], "modifiers": "@Override public", "parameters": "(Object that)", "return": "boolean", "signature": "boolean equals(Object that)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_0
{ "fields": [], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/scheduled/ScheduleTest.java", "identifier": "ScheduleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testStartNextHour() {\n\n Instant startTime = Instant.parse(\"2015-06-10T02:42:37.52Z\");\n Instant effectiveStart = Instant.parse(\"2015-06-10T03:00:00.00Z\");\n\n Schedule schedule = new Schedule.Builder()\n .jobName(\"scheduled-input-output\")\n .jobClass(ScheduledInputOutputJob.class)\n .frequency(\"0 * * * *\")\n .startAt(startTime)\n .withInput(\"source_users\", ScheduledInputOutputApp.INPUT_URI_PATTERN, \"0 * * * *\")\n .withOutput(\"target_users\", ScheduledInputOutputApp.OUTPUT_URI_PATTERN)\n .build();\n\n assertEquals(effectiveStart, schedule.getStartTime());\n }", "class_method_signature": "ScheduleTest.testStartNextHour()", "constructor": false, "full_signature": "@Test public void testStartNextHour()", "identifier": "testStartNextHour", "invocations": [ "parse", "parse", "build", "withOutput", "withInput", "startAt", "frequency", "jobClass", "jobName", "assertEquals", "getStartTime" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testStartNextHour()", "testcase": true }
{ "fields": [ { "declarator": "jobClass", "modifier": "private final", "original_string": "private final Class<? extends SchedulableJob> jobClass;", "type": "Class<? extends SchedulableJob>", "var_name": "jobClass" }, { "declarator": "frequency", "modifier": "private final", "original_string": "private final String frequency;", "type": "String", "var_name": "frequency" }, { "declarator": "name", "modifier": "private final", "original_string": "private final String name;", "type": "String", "var_name": "name" }, { "declarator": "startTime", "modifier": "private final", "original_string": "private final Instant startTime;", "type": "Instant", "var_name": "startTime" }, { "declarator": "views", "modifier": "private final", "original_string": "private final Map<String,ViewTemplate> views;", "type": "Map<String,ViewTemplate>", "var_name": "views" }, { "declarator": "NAME_PATTERN = Pattern.compile(\"([a-zA-Z]([\\\\-_a-zA-Z0-9])*){1,39}\")", "modifier": "private static final", "original_string": "private static final Pattern NAME_PATTERN = Pattern.compile(\"([a-zA-Z]([\\\\-_a-zA-Z0-9])*){1,39}\");", "type": "Pattern", "var_name": "NAME_PATTERN" }, { "declarator": "NAME = \"name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"name\";", "type": "String", "var_name": "NAME" }, { "declarator": "JOBCLASS = \"jobclass\"", "modifier": "private static final", "original_string": "private static final String JOBCLASS = \"jobclass\";", "type": "String", "var_name": "JOBCLASS" }, { "declarator": "URI = \"uri\"", "modifier": "private static final", "original_string": "private static final String URI = \"uri\";", "type": "String", "var_name": "URI" }, { "declarator": "FREQUENCY = \"frequency\"", "modifier": "private static final", "original_string": "private static final String FREQUENCY = \"frequency\";", "type": "String", "var_name": "FREQUENCY" }, { "declarator": "TYPE = \"type\"", "modifier": "private static final", "original_string": "private static final String TYPE = \"type\";", "type": "String", "var_name": "TYPE" }, { "declarator": "VIEWS = \"views\"", "modifier": "private static final", "original_string": "private static final String VIEWS = \"views\";", "type": "String", "var_name": "VIEWS" }, { "declarator": "IS_INPUT = \"isinput\"", "modifier": "private static final", "original_string": "private static final String IS_INPUT = \"isinput\";", "type": "String", "var_name": "IS_INPUT" }, { "declarator": "START_TIME = \"starttime\"", "modifier": "private static final", "original_string": "private static final String START_TIME = \"starttime\";", "type": "String", "var_name": "START_TIME" }, { "declarator": "formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC)", "modifier": "private static final", "original_string": "private static final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC);", "type": "DateTimeFormatter", "var_name": "formatter" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/scheduled/Schedule.java", "identifier": "Schedule", "interfaces": "", "methods": [ { "class_method_signature": "Schedule.Schedule(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "constructor": true, "full_signature": " Schedule(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "identifier": "Schedule", "modifiers": "", "parameters": "(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "return": "", "signature": " Schedule(Class<? extends SchedulableJob> jobClass, String name, String frequency,\n Instant startTime, Map<String,ViewTemplate> views)", "testcase": false }, { "class_method_signature": "Schedule.getJobClass()", "constructor": false, "full_signature": "public Class<? extends SchedulableJob> getJobClass()", "identifier": "getJobClass", "modifiers": "public", "parameters": "()", "return": "Class<? extends SchedulableJob>", "signature": "Class<? extends SchedulableJob> getJobClass()", "testcase": false }, { "class_method_signature": "Schedule.getFrequency()", "constructor": false, "full_signature": "public String getFrequency()", "identifier": "getFrequency", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String getFrequency()", "testcase": false }, { "class_method_signature": "Schedule.getName()", "constructor": false, "full_signature": "public String getName()", "identifier": "getName", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String getName()", "testcase": false }, { "class_method_signature": "Schedule.getStartTime()", "constructor": false, "full_signature": "public Instant getStartTime()", "identifier": "getStartTime", "modifiers": "public", "parameters": "()", "return": "Instant", "signature": "Instant getStartTime()", "testcase": false }, { "class_method_signature": "Schedule.getViewTemplates()", "constructor": false, "full_signature": "public Map<String,ViewTemplate> getViewTemplates()", "identifier": "getViewTemplates", "modifiers": "public", "parameters": "()", "return": "Map<String,ViewTemplate>", "signature": "Map<String,ViewTemplate> getViewTemplates()", "testcase": false }, { "class_method_signature": "Schedule.toJson()", "constructor": false, "full_signature": "private TreeNode toJson()", "identifier": "toJson", "modifiers": "private", "parameters": "()", "return": "TreeNode", "signature": "TreeNode toJson()", "testcase": false }, { "class_method_signature": "Schedule.parseJson(String json)", "constructor": false, "full_signature": "public static Schedule parseJson(String json)", "identifier": "parseJson", "modifiers": "public static", "parameters": "(String json)", "return": "Schedule", "signature": "Schedule parseJson(String json)", "testcase": false }, { "class_method_signature": "Schedule.toString()", "constructor": false, "full_signature": "public String toString()", "identifier": "toString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Schedule.equals(Object that)", "constructor": false, "full_signature": "@Override public boolean equals(Object that)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object that)", "return": "boolean", "signature": "boolean equals(Object that)", "testcase": false }, { "class_method_signature": "Schedule.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false } ], "superclass": "" }
{ "body": "public Instant getStartTime() { return startTime; }", "class_method_signature": "Schedule.getStartTime()", "constructor": false, "full_signature": "public Instant getStartTime()", "identifier": "getStartTime", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Instant", "signature": "Instant getStartTime()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_7
{ "fields": [ { "declarator": "fs", "modifier": "", "original_string": "FileSystem fs;", "type": "FileSystem", "var_name": "fs" } ], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/spi/AppDeployerTest.java", "identifier": "AppDeployerTest", "interfaces": "", "superclass": "extends MiniDFSTest" }
{ "body": "@Test\n public void testDeploySimpleApp() throws Exception {\n\n Path testDirectory = createTestDirectory();\n\n AppDeployer deployer = new AppDeployer(fs, new AppContext(getConfiguration()));\n\n ScheduledInputOutputApp app = new ScheduledInputOutputApp();\n\n app.setup(new AppContext(getConfiguration()));\n\n File propFile = createTestProperties();\n\n deployer.install(app, testDirectory, propFile, Collections.<File>emptyList());\n\n assertValidInstallation(testDirectory);\n }", "class_method_signature": "AppDeployerTest.testDeploySimpleApp()", "constructor": false, "full_signature": "@Test public void testDeploySimpleApp()", "identifier": "testDeploySimpleApp", "invocations": [ "createTestDirectory", "getConfiguration", "setup", "getConfiguration", "createTestProperties", "install", "emptyList", "assertValidInstallation" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testDeploySimpleApp()", "testcase": true }
{ "fields": [ { "declarator": "fs", "modifier": "private final", "original_string": "private final FileSystem fs;", "type": "FileSystem", "var_name": "fs" }, { "declarator": "context", "modifier": "private final", "original_string": "private final AppContext context;", "type": "AppContext", "var_name": "context" }, { "declarator": "random", "modifier": "private final", "original_string": "private final Random random;", "type": "Random", "var_name": "random" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/spi/AppDeployer.java", "identifier": "AppDeployer", "interfaces": "", "methods": [ { "class_method_signature": "AppDeployer.AppDeployer(FileSystem fs, AppContext context)", "constructor": true, "full_signature": "public AppDeployer(FileSystem fs, AppContext context)", "identifier": "AppDeployer", "modifiers": "public", "parameters": "(FileSystem fs, AppContext context)", "return": "", "signature": " AppDeployer(FileSystem fs, AppContext context)", "testcase": false }, { "class_method_signature": "AppDeployer.deploy(Class<? extends Application> applicationClass, Path appPath, File settingsFile, List<File> jars)", "constructor": false, "full_signature": "public void deploy(Class<? extends Application> applicationClass, Path appPath, File settingsFile, List<File> jars)", "identifier": "deploy", "modifiers": "public", "parameters": "(Class<? extends Application> applicationClass, Path appPath, File settingsFile, List<File> jars)", "return": "void", "signature": "void deploy(Class<? extends Application> applicationClass, Path appPath, File settingsFile, List<File> jars)", "testcase": false }, { "class_method_signature": "AppDeployer.install(Application app, Path appPath, File settingsFile, List<File> jars)", "constructor": false, "full_signature": "@VisibleForTesting public void install(Application app, Path appPath, File settingsFile, List<File> jars)", "identifier": "install", "modifiers": "@VisibleForTesting public", "parameters": "(Application app, Path appPath, File settingsFile, List<File> jars)", "return": "void", "signature": "void install(Application app, Path appPath, File settingsFile, List<File> jars)", "testcase": false }, { "class_method_signature": "AppDeployer.writeSchedule(Path tempDestination, Schedule schedule)", "constructor": false, "full_signature": "private void writeSchedule(Path tempDestination, Schedule schedule)", "identifier": "writeSchedule", "modifiers": "private", "parameters": "(Path tempDestination, Schedule schedule)", "return": "void", "signature": "void writeSchedule(Path tempDestination, Schedule schedule)", "testcase": false }, { "class_method_signature": "AppDeployer.filterConfig(Configuration conf)", "constructor": false, "full_signature": "@edu.umd.cs.findbugs.annotations.SuppressWarnings( value=\"UPM_UNCALLED_PRIVATE_METHOD\", justification=\"Future work\") private Configuration filterConfig(Configuration conf)", "identifier": "filterConfig", "modifiers": "@edu.umd.cs.findbugs.annotations.SuppressWarnings( value=\"UPM_UNCALLED_PRIVATE_METHOD\", justification=\"Future work\") private", "parameters": "(Configuration conf)", "return": "Configuration", "signature": "Configuration filterConfig(Configuration conf)", "testcase": false }, { "class_method_signature": "AppDeployer.installJars(Path libPath, List<File> jars)", "constructor": false, "full_signature": "private void installJars(Path libPath, List<File> jars)", "identifier": "installJars", "modifiers": "private", "parameters": "(Path libPath, List<File> jars)", "return": "void", "signature": "void installJars(Path libPath, List<File> jars)", "testcase": false }, { "class_method_signature": "AppDeployer.start(OozieClient oozieClient, Path appPath)", "constructor": false, "full_signature": "private String start(OozieClient oozieClient, Path appPath)", "identifier": "start", "modifiers": "private", "parameters": "(OozieClient oozieClient, Path appPath)", "return": "String", "signature": "String start(OozieClient oozieClient, Path appPath)", "testcase": false }, { "class_method_signature": "AppDeployer.installWorkflow(Path appPath, Schedule schedule)", "constructor": false, "full_signature": "private void installWorkflow(Path appPath, Schedule schedule)", "identifier": "installWorkflow", "modifiers": "private", "parameters": "(Path appPath, Schedule schedule)", "return": "void", "signature": "void installWorkflow(Path appPath, Schedule schedule)", "testcase": false }, { "class_method_signature": "AppDeployer.installCoordinator(Path appPath, Schedule schedule)", "constructor": false, "full_signature": "private void installCoordinator(Path appPath, Schedule schedule)", "identifier": "installCoordinator", "modifiers": "private", "parameters": "(Path appPath, Schedule schedule)", "return": "void", "signature": "void installCoordinator(Path appPath, Schedule schedule)", "testcase": false }, { "class_method_signature": "AppDeployer.installBundle(Class appClass, Path tempDestination, Path appPath, List<Schedule> schedules)", "constructor": false, "full_signature": "private Path installBundle(Class appClass, Path tempDestination, Path appPath, List<Schedule> schedules)", "identifier": "installBundle", "modifiers": "private", "parameters": "(Class appClass, Path tempDestination, Path appPath, List<Schedule> schedules)", "return": "Path", "signature": "Path installBundle(Class appClass, Path tempDestination, Path appPath, List<Schedule> schedules)", "testcase": false } ], "superclass": "" }
{ "body": "@VisibleForTesting\n public void install(Application app, Path appPath, File settingsFile, List<File> jars) {\n\n // Install to a temporary destination and rename it to avoid\n // potential races against other installers.\n String tempBase = context.getHadoopConf().get(\"hadoop.tmp.dir\", \"/tmp\");\n Path tempDestination = new Path(tempBase, \"kite-\" + (random.nextInt() & Integer.MAX_VALUE));\n\n try {\n\n fs.mkdirs(tempDestination);\n\n } catch (IOException e) {\n throw new AppException(e);\n }\n\n if (settingsFile != null) {\n\n // Install the configuration.\n Path appProps = new Path(tempDestination, \"conf/app.properties\");\n\n try {\n\n fs.copyFromLocalFile(new Path(settingsFile.getAbsolutePath()), appProps);\n } catch (IOException e) {\n throw new AppException(e);\n }\n }\n\n\n // Install the scheduled jobs.\n List<Schedule> schedules = app.getSchedules();\n\n for (Schedule schedule: schedules) {\n\n writeSchedule(tempDestination, schedule);\n\n installWorkflow(tempDestination, schedule);\n\n installCoordinator(tempDestination, schedule);\n }\n\n installBundle(app.getClass(), tempDestination, appPath, schedules);\n\n // Install the streaming jobs.\n List<StreamDescription> descriptions = app.getStreamDescriptions();\n\n for (StreamDescription description: descriptions) {\n\n StreamingJobManager manager = JobManagers.createStreaming(description, context);\n\n manager.install(fs, tempDestination);\n }\n\n // Install the library JARs.\n installJars(new Path(tempDestination, \"lib\"), jars);\n\n // Copy the temporary path to the final location.\n try {\n if (!fs.rename(tempDestination, appPath)) {\n\n throw new AppException(\"Unable to rename \" +\n tempDestination + \" to \" + appPath + \".\");\n }\n\n } catch (IOException e) {\n throw new AppException(e);\n }\n }", "class_method_signature": "AppDeployer.install(Application app, Path appPath, File settingsFile, List<File> jars)", "constructor": false, "full_signature": "@VisibleForTesting public void install(Application app, Path appPath, File settingsFile, List<File> jars)", "identifier": "install", "invocations": [ "get", "getHadoopConf", "nextInt", "mkdirs", "copyFromLocalFile", "getAbsolutePath", "getSchedules", "writeSchedule", "installWorkflow", "installCoordinator", "installBundle", "getClass", "getStreamDescriptions", "createStreaming", "install", "installJars", "rename" ], "modifiers": "@VisibleForTesting public", "parameters": "(Application app, Path appPath, File settingsFile, List<File> jars)", "return": "void", "signature": "void install(Application app, Path appPath, File settingsFile, List<File> jars)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_6
{ "fields": [ { "declarator": "testSchedule", "modifier": "", "original_string": "Schedule testSchedule;", "type": "Schedule", "var_name": "testSchedule" }, { "declarator": "context", "modifier": "", "original_string": "AppContext context;", "type": "AppContext", "var_name": "context" } ], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/spi/oozie/OozieSchedulingTest.java", "identifier": "OozieSchedulingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAlreadyQualifiedUri() {\n String template = \"view:hive://examplehost:1234/example/events?year=${YEAR}\" +\n \"&month=${MONTH}&day=${DAY}&hour=${HOUR}&minute=${MINUTE}\";\n\n Configuration conf = new Configuration();\n conf.set(\"hive.metastore.uris\", \"thrift://examplehost:1234\");\n\n String qualified = OozieScheduling.qualifyUri(conf, template);\n\n assertEquals(template, qualified);\n }", "class_method_signature": "OozieSchedulingTest.testAlreadyQualifiedUri()", "constructor": false, "full_signature": "@Test public void testAlreadyQualifiedUri()", "identifier": "testAlreadyQualifiedUri", "invocations": [ "set", "qualifyUri", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testAlreadyQualifiedUri()", "testcase": true }
{ "fields": [ { "declarator": "OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\"", "modifier": "static final", "original_string": "static final String OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\";", "type": "String", "var_name": "OOZIE_COORD_NS" }, { "declarator": "OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\"", "modifier": "static final", "original_string": "static final String OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\";", "type": "String", "var_name": "OOZIE_WORKFLOW_NS" }, { "declarator": "OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\"", "modifier": "static final", "original_string": "static final String OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\";", "type": "String", "var_name": "OOZIE_BUNDLE_NS" }, { "declarator": "OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\"", "modifier": "static final", "original_string": "static final String OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\";", "type": "String", "var_name": "OOZIE_SPARK_NS" }, { "declarator": "WORKFLOW_ELEMENT = \"workflow-app\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_ELEMENT = \"workflow-app\";", "type": "String", "var_name": "WORKFLOW_ELEMENT" }, { "declarator": "COORDINATOR_ELEMENT = \"coordinator-app\"", "modifier": "private static final", "original_string": "private static final String COORDINATOR_ELEMENT = \"coordinator-app\";", "type": "String", "var_name": "COORDINATOR_ELEMENT" }, { "declarator": "BUNDLE_ELEMENT = \"bundle-app\"", "modifier": "private static final", "original_string": "private static final String BUNDLE_ELEMENT = \"bundle-app\";", "type": "String", "var_name": "BUNDLE_ELEMENT" }, { "declarator": "formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC)", "modifier": "private static final", "original_string": "private static final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC);", "type": "DateTimeFormatter", "var_name": "formatter" }, { "declarator": "COORD_NOMINAL_TIME = \"coordNominalTime\"", "modifier": "private static final", "original_string": "private static final String COORD_NOMINAL_TIME = \"coordNominalTime\";", "type": "String", "var_name": "COORD_NOMINAL_TIME" }, { "declarator": "WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\";", "type": "String", "var_name": "WORKFLOW_NOMINAL_TIME" }, { "declarator": "HIVE_METASTORE_URIS = \"hive.metastore.uris\"", "modifier": "private static final", "original_string": "private static final String HIVE_METASTORE_URIS = \"hive.metastore.uris\";", "type": "String", "var_name": "HIVE_METASTORE_URIS" }, { "declarator": "WORKFLOW_DIR = \"oozie/workflows\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_DIR = \"oozie/workflows\";", "type": "String", "var_name": "WORKFLOW_DIR" }, { "declarator": "COORD_DIR = \"oozie/coordinators\"", "modifier": "private static final", "original_string": "private static final String COORD_DIR = \"oozie/coordinators\";", "type": "String", "var_name": "COORD_DIR" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/spi/oozie/OozieScheduling.java", "identifier": "OozieScheduling", "interfaces": "", "methods": [ { "class_method_signature": "OozieScheduling.workflowPath(Schedule schedule)", "constructor": false, "full_signature": "public static String workflowPath(Schedule schedule)", "identifier": "workflowPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String workflowPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.coordPath(Schedule schedule)", "constructor": false, "full_signature": "public static String coordPath(Schedule schedule)", "identifier": "coordPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String coordPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.getNominalTime(Configuration conf)", "constructor": false, "full_signature": "public static Instant getNominalTime(Configuration conf)", "identifier": "getNominalTime", "modifiers": "public static", "parameters": "(Configuration conf)", "return": "Instant", "signature": "Instant getNominalTime(Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "return": "void", "signature": "void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String text)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String text)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String text)", "return": "void", "signature": "void element(XMLWriter writer, String name, String text)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "identifier": "writeWorkFlow", "modifiers": "public static", "parameters": "(Schedule schedule,\n AppContext context,\n OutputStream output)", "return": "void", "signature": "void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.toIdentifier(String name)", "constructor": false, "full_signature": "private static final String toIdentifier(String name)", "identifier": "toIdentifier", "modifiers": "private static final", "parameters": "(String name)", "return": "String", "signature": "String toIdentifier(String name)", "testcase": false }, { "class_method_signature": "OozieScheduling.qualifyUri(Configuration conf, String uriTemplate)", "constructor": false, "full_signature": "@VisibleForTesting static final String qualifyUri(Configuration conf, String uriTemplate)", "identifier": "qualifyUri", "modifiers": "@VisibleForTesting static final", "parameters": "(Configuration conf, String uriTemplate)", "return": "String", "signature": "String qualifyUri(Configuration conf, String uriTemplate)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "constructor": false, "full_signature": "private static final void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "identifier": "writeCoordinatorDatasets", "modifiers": "private static final", "parameters": "(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "return": "void", "signature": "void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "identifier": "writeCoordinator", "modifiers": "public static", "parameters": "(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "return": "void", "signature": "void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.property(XMLWriter writer, String name, String value)", "constructor": false, "full_signature": "public static void property(XMLWriter writer, String name, String value)", "identifier": "property", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String value)", "return": "void", "signature": "void property(XMLWriter writer, String name, String value)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "identifier": "writeBundle", "modifiers": "public static", "parameters": "(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "return": "void", "signature": "void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.loadViews(SchedulableJobManager manager, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "identifier": "loadViews", "modifiers": "public static", "parameters": "(SchedulableJobManager manager, Configuration conf)", "return": "Map<String,View>", "signature": "Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.getJobSettings(Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "identifier": "getJobSettings", "modifiers": "public static", "parameters": "(Schedule schedule, Configuration conf)", "return": "Map<String,String>", "signature": "Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "identifier": "writeJobConfiguration", "modifiers": "public static", "parameters": "(XMLWriter writer, Schedule schedule, Configuration conf)", "return": "void", "signature": "void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "testcase": false } ], "superclass": "" }
{ "body": "@VisibleForTesting\n static final String qualifyUri(Configuration conf, String uriTemplate) {\n\n // Create a URI that doesn't include the initial view: or dataset: prefix\n // and excludes the parameters.\n URI baseURI = URI.create(uriTemplate.substring(uriTemplate.indexOf(':') + 1, uriTemplate.indexOf('?')));\n\n // We only need to qualify hive URIs that\n // are not already qualified with a host,\n // when there is a Hive metastore URI configured.\n if (!\"hive\".equals(baseURI.getScheme()) ||\n baseURI.getHost() != null ||\n conf.get(HIVE_METASTORE_URIS) == null) {\n\n return uriTemplate;\n }\n\n String[] uris = conf.get(HIVE_METASTORE_URIS).split(\",\");\n\n if (uris.length == 0) {\n return uriTemplate;\n }\n\n URI hiveUri = URI.create(uris[0]);\n\n String host = hiveUri.getHost();\n int port = hiveUri.getPort();\n\n // Recreate a template this is qualified with host and port information.\n String prefix = uriTemplate.startsWith(\"dataset\") ? \"dataset:hive:\" :\n \"view:hive:\";\n\n String rest = uriTemplate.substring(prefix.length());\n\n return prefix + \"//\" + host + \":\" + port + \"/\" + rest;\n }", "class_method_signature": "OozieScheduling.qualifyUri(Configuration conf, String uriTemplate)", "constructor": false, "full_signature": "@VisibleForTesting static final String qualifyUri(Configuration conf, String uriTemplate)", "identifier": "qualifyUri", "invocations": [ "create", "substring", "indexOf", "indexOf", "equals", "getScheme", "getHost", "get", "split", "get", "create", "getHost", "getPort", "startsWith", "substring", "length" ], "modifiers": "@VisibleForTesting static final", "parameters": "(Configuration conf, String uriTemplate)", "return": "String", "signature": "String qualifyUri(Configuration conf, String uriTemplate)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_5
{ "fields": [ { "declarator": "testSchedule", "modifier": "", "original_string": "Schedule testSchedule;", "type": "Schedule", "var_name": "testSchedule" }, { "declarator": "context", "modifier": "", "original_string": "AppContext context;", "type": "AppContext", "var_name": "context" } ], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/spi/oozie/OozieSchedulingTest.java", "identifier": "OozieSchedulingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testQualifyHiveUri() {\n String template = \"view:hive:example/events\" +\n \"?year=${YEAR}&month=${MONTH}&day=${DAY}&hour=${HOUR}&minute=${MINUTE}\";\n\n Configuration conf = new Configuration();\n conf.set(\"hive.metastore.uris\", \"thrift://examplehost:1234\");\n\n String qualified = OozieScheduling.qualifyUri(conf, template);\n\n assertEquals(\"view:hive://examplehost:1234/example/events?year=${YEAR}\" +\n \"&month=${MONTH}&day=${DAY}&hour=${HOUR}&minute=${MINUTE}\",\n qualified);\n }", "class_method_signature": "OozieSchedulingTest.testQualifyHiveUri()", "constructor": false, "full_signature": "@Test public void testQualifyHiveUri()", "identifier": "testQualifyHiveUri", "invocations": [ "set", "qualifyUri", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testQualifyHiveUri()", "testcase": true }
{ "fields": [ { "declarator": "OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\"", "modifier": "static final", "original_string": "static final String OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\";", "type": "String", "var_name": "OOZIE_COORD_NS" }, { "declarator": "OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\"", "modifier": "static final", "original_string": "static final String OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\";", "type": "String", "var_name": "OOZIE_WORKFLOW_NS" }, { "declarator": "OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\"", "modifier": "static final", "original_string": "static final String OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\";", "type": "String", "var_name": "OOZIE_BUNDLE_NS" }, { "declarator": "OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\"", "modifier": "static final", "original_string": "static final String OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\";", "type": "String", "var_name": "OOZIE_SPARK_NS" }, { "declarator": "WORKFLOW_ELEMENT = \"workflow-app\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_ELEMENT = \"workflow-app\";", "type": "String", "var_name": "WORKFLOW_ELEMENT" }, { "declarator": "COORDINATOR_ELEMENT = \"coordinator-app\"", "modifier": "private static final", "original_string": "private static final String COORDINATOR_ELEMENT = \"coordinator-app\";", "type": "String", "var_name": "COORDINATOR_ELEMENT" }, { "declarator": "BUNDLE_ELEMENT = \"bundle-app\"", "modifier": "private static final", "original_string": "private static final String BUNDLE_ELEMENT = \"bundle-app\";", "type": "String", "var_name": "BUNDLE_ELEMENT" }, { "declarator": "formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC)", "modifier": "private static final", "original_string": "private static final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC);", "type": "DateTimeFormatter", "var_name": "formatter" }, { "declarator": "COORD_NOMINAL_TIME = \"coordNominalTime\"", "modifier": "private static final", "original_string": "private static final String COORD_NOMINAL_TIME = \"coordNominalTime\";", "type": "String", "var_name": "COORD_NOMINAL_TIME" }, { "declarator": "WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\";", "type": "String", "var_name": "WORKFLOW_NOMINAL_TIME" }, { "declarator": "HIVE_METASTORE_URIS = \"hive.metastore.uris\"", "modifier": "private static final", "original_string": "private static final String HIVE_METASTORE_URIS = \"hive.metastore.uris\";", "type": "String", "var_name": "HIVE_METASTORE_URIS" }, { "declarator": "WORKFLOW_DIR = \"oozie/workflows\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_DIR = \"oozie/workflows\";", "type": "String", "var_name": "WORKFLOW_DIR" }, { "declarator": "COORD_DIR = \"oozie/coordinators\"", "modifier": "private static final", "original_string": "private static final String COORD_DIR = \"oozie/coordinators\";", "type": "String", "var_name": "COORD_DIR" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/spi/oozie/OozieScheduling.java", "identifier": "OozieScheduling", "interfaces": "", "methods": [ { "class_method_signature": "OozieScheduling.workflowPath(Schedule schedule)", "constructor": false, "full_signature": "public static String workflowPath(Schedule schedule)", "identifier": "workflowPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String workflowPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.coordPath(Schedule schedule)", "constructor": false, "full_signature": "public static String coordPath(Schedule schedule)", "identifier": "coordPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String coordPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.getNominalTime(Configuration conf)", "constructor": false, "full_signature": "public static Instant getNominalTime(Configuration conf)", "identifier": "getNominalTime", "modifiers": "public static", "parameters": "(Configuration conf)", "return": "Instant", "signature": "Instant getNominalTime(Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "return": "void", "signature": "void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String text)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String text)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String text)", "return": "void", "signature": "void element(XMLWriter writer, String name, String text)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "identifier": "writeWorkFlow", "modifiers": "public static", "parameters": "(Schedule schedule,\n AppContext context,\n OutputStream output)", "return": "void", "signature": "void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.toIdentifier(String name)", "constructor": false, "full_signature": "private static final String toIdentifier(String name)", "identifier": "toIdentifier", "modifiers": "private static final", "parameters": "(String name)", "return": "String", "signature": "String toIdentifier(String name)", "testcase": false }, { "class_method_signature": "OozieScheduling.qualifyUri(Configuration conf, String uriTemplate)", "constructor": false, "full_signature": "@VisibleForTesting static final String qualifyUri(Configuration conf, String uriTemplate)", "identifier": "qualifyUri", "modifiers": "@VisibleForTesting static final", "parameters": "(Configuration conf, String uriTemplate)", "return": "String", "signature": "String qualifyUri(Configuration conf, String uriTemplate)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "constructor": false, "full_signature": "private static final void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "identifier": "writeCoordinatorDatasets", "modifiers": "private static final", "parameters": "(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "return": "void", "signature": "void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "identifier": "writeCoordinator", "modifiers": "public static", "parameters": "(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "return": "void", "signature": "void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.property(XMLWriter writer, String name, String value)", "constructor": false, "full_signature": "public static void property(XMLWriter writer, String name, String value)", "identifier": "property", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String value)", "return": "void", "signature": "void property(XMLWriter writer, String name, String value)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "identifier": "writeBundle", "modifiers": "public static", "parameters": "(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "return": "void", "signature": "void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.loadViews(SchedulableJobManager manager, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "identifier": "loadViews", "modifiers": "public static", "parameters": "(SchedulableJobManager manager, Configuration conf)", "return": "Map<String,View>", "signature": "Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.getJobSettings(Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "identifier": "getJobSettings", "modifiers": "public static", "parameters": "(Schedule schedule, Configuration conf)", "return": "Map<String,String>", "signature": "Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "identifier": "writeJobConfiguration", "modifiers": "public static", "parameters": "(XMLWriter writer, Schedule schedule, Configuration conf)", "return": "void", "signature": "void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "testcase": false } ], "superclass": "" }
{ "body": "@VisibleForTesting\n static final String qualifyUri(Configuration conf, String uriTemplate) {\n\n // Create a URI that doesn't include the initial view: or dataset: prefix\n // and excludes the parameters.\n URI baseURI = URI.create(uriTemplate.substring(uriTemplate.indexOf(':') + 1, uriTemplate.indexOf('?')));\n\n // We only need to qualify hive URIs that\n // are not already qualified with a host,\n // when there is a Hive metastore URI configured.\n if (!\"hive\".equals(baseURI.getScheme()) ||\n baseURI.getHost() != null ||\n conf.get(HIVE_METASTORE_URIS) == null) {\n\n return uriTemplate;\n }\n\n String[] uris = conf.get(HIVE_METASTORE_URIS).split(\",\");\n\n if (uris.length == 0) {\n return uriTemplate;\n }\n\n URI hiveUri = URI.create(uris[0]);\n\n String host = hiveUri.getHost();\n int port = hiveUri.getPort();\n\n // Recreate a template this is qualified with host and port information.\n String prefix = uriTemplate.startsWith(\"dataset\") ? \"dataset:hive:\" :\n \"view:hive:\";\n\n String rest = uriTemplate.substring(prefix.length());\n\n return prefix + \"//\" + host + \":\" + port + \"/\" + rest;\n }", "class_method_signature": "OozieScheduling.qualifyUri(Configuration conf, String uriTemplate)", "constructor": false, "full_signature": "@VisibleForTesting static final String qualifyUri(Configuration conf, String uriTemplate)", "identifier": "qualifyUri", "invocations": [ "create", "substring", "indexOf", "indexOf", "equals", "getScheme", "getHost", "get", "split", "get", "create", "getHost", "getPort", "startsWith", "substring", "length" ], "modifiers": "@VisibleForTesting static final", "parameters": "(Configuration conf, String uriTemplate)", "return": "String", "signature": "String qualifyUri(Configuration conf, String uriTemplate)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_4
{ "fields": [ { "declarator": "testSchedule", "modifier": "", "original_string": "Schedule testSchedule;", "type": "Schedule", "var_name": "testSchedule" }, { "declarator": "context", "modifier": "", "original_string": "AppContext context;", "type": "AppContext", "var_name": "context" } ], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/spi/oozie/OozieSchedulingTest.java", "identifier": "OozieSchedulingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWriteBundle() throws Exception {\n\n String appPath = \"/test/app/path\";\n String libPath = \"/test/lib/path\";\n\n\n Schedule schedule1 = new Schedule.Builder()\n .jobName(\"scheduled-input-output\")\n .jobClass(ScheduledInputOutputJob.class)\n .frequency(\"0 * * * *\")\n .withInput(\"source_users\", ScheduledInputOutputApp.INPUT_URI_PATTERN, \"0 * * * *\")\n .withOutput(\"target_users\", ScheduledInputOutputApp.OUTPUT_URI_PATTERN)\n .build();\n\n Schedule schedule2 = new Schedule.Builder()\n .jobName(\"alt-scheduled-input-output\")\n .jobClass(AltScheduledInputOutputJob.class)\n .frequency(\"0 * * * *\")\n .withInput(\"source_users\", ScheduledInputOutputApp.INPUT_URI_PATTERN, \"0 * * * *\")\n .withOutput(\"target_users\", ScheduledInputOutputApp.OUTPUT_URI_PATTERN)\n .build();\n\n List<Schedule> schedules = Arrays.asList(schedule1, schedule2);\n\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n\n OozieScheduling.writeBundle(ScheduledInputOutputApp.class, context,\n new Path(appPath), schedules, output);\n\n Document bundle = XMLUtil.toDom(output);\n\n XPath xpath = XMLUtil.getXPath();\n\n // Check expected coordinator names.\n assertEquals(schedule1.getName(),\n xpath.evaluate(\"bn:bundle-app/bn:coordinator[1]/@name\", bundle));\n\n assertEquals(schedule2.getName(),\n xpath.evaluate(\"bn:bundle-app/bn:coordinator[2]/@name\", bundle));\n\n // Entries for the coordinator paths should exist.\n assertEquals(\"${kiteAppRoot}/\" + OozieScheduling.coordPath(schedule1),\n xpath.evaluate(\"bn:bundle-app/bn:coordinator[1]/bn:app-path\", bundle));\n\n assertEquals(\"${kiteAppRoot}/\" + OozieScheduling.coordPath(schedule2),\n xpath.evaluate(\"bn:bundle-app/bn:coordinator[2]/bn:app-path\", bundle));\n }", "class_method_signature": "OozieSchedulingTest.testWriteBundle()", "constructor": false, "full_signature": "@Test public void testWriteBundle()", "identifier": "testWriteBundle", "invocations": [ "build", "withOutput", "withInput", "frequency", "jobClass", "jobName", "build", "withOutput", "withInput", "frequency", "jobClass", "jobName", "asList", "writeBundle", "toDom", "getXPath", "assertEquals", "getName", "evaluate", "assertEquals", "getName", "evaluate", "assertEquals", "coordPath", "evaluate", "assertEquals", "coordPath", "evaluate" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testWriteBundle()", "testcase": true }
{ "fields": [ { "declarator": "OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\"", "modifier": "static final", "original_string": "static final String OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\";", "type": "String", "var_name": "OOZIE_COORD_NS" }, { "declarator": "OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\"", "modifier": "static final", "original_string": "static final String OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\";", "type": "String", "var_name": "OOZIE_WORKFLOW_NS" }, { "declarator": "OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\"", "modifier": "static final", "original_string": "static final String OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\";", "type": "String", "var_name": "OOZIE_BUNDLE_NS" }, { "declarator": "OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\"", "modifier": "static final", "original_string": "static final String OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\";", "type": "String", "var_name": "OOZIE_SPARK_NS" }, { "declarator": "WORKFLOW_ELEMENT = \"workflow-app\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_ELEMENT = \"workflow-app\";", "type": "String", "var_name": "WORKFLOW_ELEMENT" }, { "declarator": "COORDINATOR_ELEMENT = \"coordinator-app\"", "modifier": "private static final", "original_string": "private static final String COORDINATOR_ELEMENT = \"coordinator-app\";", "type": "String", "var_name": "COORDINATOR_ELEMENT" }, { "declarator": "BUNDLE_ELEMENT = \"bundle-app\"", "modifier": "private static final", "original_string": "private static final String BUNDLE_ELEMENT = \"bundle-app\";", "type": "String", "var_name": "BUNDLE_ELEMENT" }, { "declarator": "formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC)", "modifier": "private static final", "original_string": "private static final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC);", "type": "DateTimeFormatter", "var_name": "formatter" }, { "declarator": "COORD_NOMINAL_TIME = \"coordNominalTime\"", "modifier": "private static final", "original_string": "private static final String COORD_NOMINAL_TIME = \"coordNominalTime\";", "type": "String", "var_name": "COORD_NOMINAL_TIME" }, { "declarator": "WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\";", "type": "String", "var_name": "WORKFLOW_NOMINAL_TIME" }, { "declarator": "HIVE_METASTORE_URIS = \"hive.metastore.uris\"", "modifier": "private static final", "original_string": "private static final String HIVE_METASTORE_URIS = \"hive.metastore.uris\";", "type": "String", "var_name": "HIVE_METASTORE_URIS" }, { "declarator": "WORKFLOW_DIR = \"oozie/workflows\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_DIR = \"oozie/workflows\";", "type": "String", "var_name": "WORKFLOW_DIR" }, { "declarator": "COORD_DIR = \"oozie/coordinators\"", "modifier": "private static final", "original_string": "private static final String COORD_DIR = \"oozie/coordinators\";", "type": "String", "var_name": "COORD_DIR" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/spi/oozie/OozieScheduling.java", "identifier": "OozieScheduling", "interfaces": "", "methods": [ { "class_method_signature": "OozieScheduling.workflowPath(Schedule schedule)", "constructor": false, "full_signature": "public static String workflowPath(Schedule schedule)", "identifier": "workflowPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String workflowPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.coordPath(Schedule schedule)", "constructor": false, "full_signature": "public static String coordPath(Schedule schedule)", "identifier": "coordPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String coordPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.getNominalTime(Configuration conf)", "constructor": false, "full_signature": "public static Instant getNominalTime(Configuration conf)", "identifier": "getNominalTime", "modifiers": "public static", "parameters": "(Configuration conf)", "return": "Instant", "signature": "Instant getNominalTime(Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "return": "void", "signature": "void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String text)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String text)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String text)", "return": "void", "signature": "void element(XMLWriter writer, String name, String text)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "identifier": "writeWorkFlow", "modifiers": "public static", "parameters": "(Schedule schedule,\n AppContext context,\n OutputStream output)", "return": "void", "signature": "void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.toIdentifier(String name)", "constructor": false, "full_signature": "private static final String toIdentifier(String name)", "identifier": "toIdentifier", "modifiers": "private static final", "parameters": "(String name)", "return": "String", "signature": "String toIdentifier(String name)", "testcase": false }, { "class_method_signature": "OozieScheduling.qualifyUri(Configuration conf, String uriTemplate)", "constructor": false, "full_signature": "@VisibleForTesting static final String qualifyUri(Configuration conf, String uriTemplate)", "identifier": "qualifyUri", "modifiers": "@VisibleForTesting static final", "parameters": "(Configuration conf, String uriTemplate)", "return": "String", "signature": "String qualifyUri(Configuration conf, String uriTemplate)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "constructor": false, "full_signature": "private static final void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "identifier": "writeCoordinatorDatasets", "modifiers": "private static final", "parameters": "(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "return": "void", "signature": "void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "identifier": "writeCoordinator", "modifiers": "public static", "parameters": "(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "return": "void", "signature": "void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.property(XMLWriter writer, String name, String value)", "constructor": false, "full_signature": "public static void property(XMLWriter writer, String name, String value)", "identifier": "property", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String value)", "return": "void", "signature": "void property(XMLWriter writer, String name, String value)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "identifier": "writeBundle", "modifiers": "public static", "parameters": "(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "return": "void", "signature": "void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.loadViews(SchedulableJobManager manager, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "identifier": "loadViews", "modifiers": "public static", "parameters": "(SchedulableJobManager manager, Configuration conf)", "return": "Map<String,View>", "signature": "Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.getJobSettings(Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "identifier": "getJobSettings", "modifiers": "public static", "parameters": "(Schedule schedule, Configuration conf)", "return": "Map<String,String>", "signature": "Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "identifier": "writeJobConfiguration", "modifiers": "public static", "parameters": "(XMLWriter writer, Schedule schedule, Configuration conf)", "return": "void", "signature": "void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "testcase": false } ], "superclass": "" }
{ "body": "public static void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output) throws IOException {\n\n Configuration conf = context.getHadoopConf();\n\n XmlStreamWriter streamWriter = WriterFactory.newXmlWriter(output);\n\n PrettyPrintXMLWriter writer = new PrettyPrintXMLWriter(streamWriter);\n\n writer.startElement(BUNDLE_ELEMENT);\n writer.addAttribute(\"name\", appClass.getCanonicalName());\n writer.addAttribute(\"xmlns\", OOZIE_BUNDLE_NS);\n\n writer.startElement(\"parameters\");\n\n // Default to the HDFS scheme for the root path if none is provided.\n Path qualifiedPath = appPath.toUri().getScheme() == null ?\n appPath.makeQualified(URI.create(\"hdfs:/\"), appPath) :\n appPath;\n\n property(writer, \"kiteAppRoot\", qualifiedPath.toString());\n\n property(writer, \"oozie.libpath\", \"${kiteAppRoot}/lib\");\n property(writer, \"nameNode\", conf.get(\"fs.default.name\"));\n\n String resourceManager = conf.get(\"yarn.resourcemanager.address\");\n\n // MR2 uses YARN for the job tracker, but some Hadoop deployments\n // don't have the resoure manager setting visible. We work around this\n // by grabbing the job tracker setting and swapping to the resource\n // manager port.\n // TODO: is there a better way to deal with this?\n if (resourceManager == null) {\n\n String jobTracker = conf.get(\"mapred.job.tracker\");\n\n if (jobTracker != null)\n resourceManager = jobTracker.replace(\"8021\", \"8032\");\n }\n\n if (resourceManager != null)\n property(writer, \"jobTracker\", resourceManager);\n\n // TODO: handle application configuration.\n// if (appConfigPath != null)\n// property(writer, \"appConfigPath\", appConfigPath.toString());\n writer.endElement(); // parameters\n\n int i = 0;\n\n for (Schedule schedule: schedules) {\n writer.startElement(\"coordinator\");\n writer.addAttribute(\"name\", schedule.getName());\n\n element(writer, \"app-path\", \"${kiteAppRoot}/\" + coordPath(schedule));\n writer.endElement(); // coordinator\n }\n\n writer.endElement(); // bundle\n streamWriter.flush();\n }", "class_method_signature": "OozieScheduling.writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "identifier": "writeBundle", "invocations": [ "getHadoopConf", "newXmlWriter", "startElement", "addAttribute", "getCanonicalName", "addAttribute", "startElement", "getScheme", "toUri", "makeQualified", "create", "property", "toString", "property", "property", "get", "get", "get", "replace", "property", "endElement", "startElement", "addAttribute", "getName", "element", "coordPath", "endElement", "endElement", "flush" ], "modifiers": "public static", "parameters": "(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "return": "void", "signature": "void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_8
{ "fields": [], "file": "kite-apps-spark/src/test/java/org/kitesdk/apps/spark/spi/kryo/KryoAvroRegistratorTest.java", "identifier": "KryoAvroRegistratorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRegistrator() {\n\n System.setProperty(KryoAvroRegistrator.KITE_AVRO_CLASSES, SmallEvent.class.getName());\n\n Kryo kryo = new Kryo();\n\n new KryoAvroRegistrator().registerClasses(kryo);\n\n Serializer serializer = kryo.getSerializer(SmallEvent.class);\n\n Assert.assertNotNull(serializer);\n\n Output output = new Output(1024);\n\n SmallEvent testEvent = SmallEvent.newBuilder()\n .setUserId(1)\n .setSessionId(\"123\")\n .build();\n\n kryo.writeObject(output, testEvent);\n\n byte [] bytes = output.toBytes();\n\n Input input = new Input(bytes);\n\n SmallEvent result = kryo.readObject(input, SmallEvent.class);\n\n Assert.assertEquals(testEvent, result);\n }", "class_method_signature": "KryoAvroRegistratorTest.testRegistrator()", "constructor": false, "full_signature": "@Test public void testRegistrator()", "identifier": "testRegistrator", "invocations": [ "setProperty", "getName", "registerClasses", "getSerializer", "assertNotNull", "build", "setSessionId", "setUserId", "newBuilder", "writeObject", "toBytes", "readObject", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testRegistrator()", "testcase": true }
{ "fields": [ { "declarator": "LOGGER = LoggerFactory.getLogger(KryoAvroRegistrator.class)", "modifier": "", "original_string": "Logger LOGGER = LoggerFactory.getLogger(KryoAvroRegistrator.class);", "type": "Logger", "var_name": "LOGGER" }, { "declarator": "KITE_AVRO_CLASSES = \"kite.avro.classes\"", "modifier": "public static final", "original_string": "public static final String KITE_AVRO_CLASSES = \"kite.avro.classes\";", "type": "String", "var_name": "KITE_AVRO_CLASSES" } ], "file": "kite-apps-spark/src/main/java/org/kitesdk/apps/spark/spi/kryo/KryoAvroRegistrator.java", "identifier": "KryoAvroRegistrator", "interfaces": "implements KryoRegistrator", "methods": [ { "class_method_signature": "KryoAvroRegistrator.registerClasses(Kryo kryo)", "constructor": false, "full_signature": "public void registerClasses(Kryo kryo)", "identifier": "registerClasses", "modifiers": "public", "parameters": "(Kryo kryo)", "return": "void", "signature": "void registerClasses(Kryo kryo)", "testcase": false } ], "superclass": "" }
{ "body": "public void registerClasses(Kryo kryo) {\n\n String classesString = System.getProperty(KITE_AVRO_CLASSES);\n\n if (classesString == null || classesString.isEmpty()) {\n LOGGER.info(\"No Avro classes set in property {}.\", KITE_AVRO_CLASSES);\n } else {\n\n LOGGER.info(\"Registring Avro classes {}.\", classesString);\n\n String[] classes = classesString.split(\",\");\n\n for(String className: classes) {\n\n Class cls = null;\n try {\n cls = Thread.currentThread().getContextClassLoader().loadClass(className);\n } catch (ClassNotFoundException e) {\n throw new AppException(e);\n }\n\n kryo.register(cls, new KryoAvroSerializer(cls));\n }\n }\n }", "class_method_signature": "KryoAvroRegistrator.registerClasses(Kryo kryo)", "constructor": false, "full_signature": "public void registerClasses(Kryo kryo)", "identifier": "registerClasses", "invocations": [ "getProperty", "isEmpty", "info", "info", "split", "loadClass", "getContextClassLoader", "currentThread", "register" ], "modifiers": "public", "parameters": "(Kryo kryo)", "return": "void", "signature": "void registerClasses(Kryo kryo)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_3
{ "fields": [ { "declarator": "testSchedule", "modifier": "", "original_string": "Schedule testSchedule;", "type": "Schedule", "var_name": "testSchedule" }, { "declarator": "context", "modifier": "", "original_string": "AppContext context;", "type": "AppContext", "var_name": "context" } ], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/spi/oozie/OozieSchedulingTest.java", "identifier": "OozieSchedulingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWriteCoordinator() throws Exception {\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n\n SchedulableJobManager manager = JobManagers.createSchedulable(testSchedule,\n new AppContext(new Configuration()));\n\n OozieScheduling.writeCoordinator(testSchedule, manager, output);\n\n Document coord = XMLUtil.toDom(output);\n\n XPath xpath = XMLUtil.getXPath();\n\n assertEquals(testSchedule.getFrequency(),\n xpath.evaluate(\"coord:coordinator-app/@frequency\", coord));\n\n // check for the input and output datasets\n assertEquals(xpath.evaluate(\"coord:coordinator-app/coord:datasets/\" +\n \"coord:dataset[@name = \\\"ds_source_users\\\"]/coord:uri-template\", coord),\n ScheduledInputOutputApp.INPUT_URI_PATTERN);\n\n assertEquals(xpath.evaluate(\"coord:coordinator-app/coord:datasets/\" +\n \"coord:dataset[@name = \\\"ds_target_users\\\"]/coord:uri-template\", coord),\n ScheduledInputOutputApp.OUTPUT_URI_PATTERN);\n\n assertEquals(\"${coord:current(0)}\",\n xpath.evaluate(\"coord:coordinator-app/coord:input-events/coord:data-in/coord:instance\",\n coord));\n\n assertEquals(\"${coord:current(0)}\",\n xpath.evaluate(\"coord:coordinator-app/coord:output-events/coord:data-out/coord:instance\",\n coord));\n\n assertEquals(\"${kiteAppRoot}/oozie/workflows/scheduled-input-output\",\n xpath.evaluate(\"coord:coordinator-app/coord:action/coord:workflow/coord:app-path\", coord));\n\n // Check the nominal time is set for the workflow.\n assertEquals(\"${coord:nominalTime()}\",\n xpath.evaluate(\"coord:coordinator-app/coord:action/coord:workflow/coord:configuration/\" +\n \"coord:property/coord:value[../coord:name/text() = \\\"coordNominalTime\\\"]\", coord));\n\n // Check data input and output properties are set for the workflow.\n assertEquals(\"${coord:dataIn('datain_source_users')}\",\n xpath.evaluate(\"coord:coordinator-app/coord:action/coord:workflow/coord:configuration/\" +\n \"coord:property/coord:value[../coord:name/text() = \\\"coord_source_users\\\"]\", coord));\n\n assertEquals(\"${coord:dataOut('dataout_target_users')}\",\n xpath.evaluate(\"coord:coordinator-app/coord:action/coord:workflow/coord:configuration/\" +\n \"coord:property/coord:value[../coord:name/text() = \\\"coord_target_users\\\"]\", coord));\n }", "class_method_signature": "OozieSchedulingTest.testWriteCoordinator()", "constructor": false, "full_signature": "@Test public void testWriteCoordinator()", "identifier": "testWriteCoordinator", "invocations": [ "createSchedulable", "writeCoordinator", "toDom", "getXPath", "assertEquals", "getFrequency", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testWriteCoordinator()", "testcase": true }
{ "fields": [ { "declarator": "OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\"", "modifier": "static final", "original_string": "static final String OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\";", "type": "String", "var_name": "OOZIE_COORD_NS" }, { "declarator": "OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\"", "modifier": "static final", "original_string": "static final String OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\";", "type": "String", "var_name": "OOZIE_WORKFLOW_NS" }, { "declarator": "OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\"", "modifier": "static final", "original_string": "static final String OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\";", "type": "String", "var_name": "OOZIE_BUNDLE_NS" }, { "declarator": "OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\"", "modifier": "static final", "original_string": "static final String OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\";", "type": "String", "var_name": "OOZIE_SPARK_NS" }, { "declarator": "WORKFLOW_ELEMENT = \"workflow-app\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_ELEMENT = \"workflow-app\";", "type": "String", "var_name": "WORKFLOW_ELEMENT" }, { "declarator": "COORDINATOR_ELEMENT = \"coordinator-app\"", "modifier": "private static final", "original_string": "private static final String COORDINATOR_ELEMENT = \"coordinator-app\";", "type": "String", "var_name": "COORDINATOR_ELEMENT" }, { "declarator": "BUNDLE_ELEMENT = \"bundle-app\"", "modifier": "private static final", "original_string": "private static final String BUNDLE_ELEMENT = \"bundle-app\";", "type": "String", "var_name": "BUNDLE_ELEMENT" }, { "declarator": "formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC)", "modifier": "private static final", "original_string": "private static final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC);", "type": "DateTimeFormatter", "var_name": "formatter" }, { "declarator": "COORD_NOMINAL_TIME = \"coordNominalTime\"", "modifier": "private static final", "original_string": "private static final String COORD_NOMINAL_TIME = \"coordNominalTime\";", "type": "String", "var_name": "COORD_NOMINAL_TIME" }, { "declarator": "WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\";", "type": "String", "var_name": "WORKFLOW_NOMINAL_TIME" }, { "declarator": "HIVE_METASTORE_URIS = \"hive.metastore.uris\"", "modifier": "private static final", "original_string": "private static final String HIVE_METASTORE_URIS = \"hive.metastore.uris\";", "type": "String", "var_name": "HIVE_METASTORE_URIS" }, { "declarator": "WORKFLOW_DIR = \"oozie/workflows\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_DIR = \"oozie/workflows\";", "type": "String", "var_name": "WORKFLOW_DIR" }, { "declarator": "COORD_DIR = \"oozie/coordinators\"", "modifier": "private static final", "original_string": "private static final String COORD_DIR = \"oozie/coordinators\";", "type": "String", "var_name": "COORD_DIR" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/spi/oozie/OozieScheduling.java", "identifier": "OozieScheduling", "interfaces": "", "methods": [ { "class_method_signature": "OozieScheduling.workflowPath(Schedule schedule)", "constructor": false, "full_signature": "public static String workflowPath(Schedule schedule)", "identifier": "workflowPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String workflowPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.coordPath(Schedule schedule)", "constructor": false, "full_signature": "public static String coordPath(Schedule schedule)", "identifier": "coordPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String coordPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.getNominalTime(Configuration conf)", "constructor": false, "full_signature": "public static Instant getNominalTime(Configuration conf)", "identifier": "getNominalTime", "modifiers": "public static", "parameters": "(Configuration conf)", "return": "Instant", "signature": "Instant getNominalTime(Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "return": "void", "signature": "void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String text)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String text)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String text)", "return": "void", "signature": "void element(XMLWriter writer, String name, String text)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "identifier": "writeWorkFlow", "modifiers": "public static", "parameters": "(Schedule schedule,\n AppContext context,\n OutputStream output)", "return": "void", "signature": "void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.toIdentifier(String name)", "constructor": false, "full_signature": "private static final String toIdentifier(String name)", "identifier": "toIdentifier", "modifiers": "private static final", "parameters": "(String name)", "return": "String", "signature": "String toIdentifier(String name)", "testcase": false }, { "class_method_signature": "OozieScheduling.qualifyUri(Configuration conf, String uriTemplate)", "constructor": false, "full_signature": "@VisibleForTesting static final String qualifyUri(Configuration conf, String uriTemplate)", "identifier": "qualifyUri", "modifiers": "@VisibleForTesting static final", "parameters": "(Configuration conf, String uriTemplate)", "return": "String", "signature": "String qualifyUri(Configuration conf, String uriTemplate)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "constructor": false, "full_signature": "private static final void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "identifier": "writeCoordinatorDatasets", "modifiers": "private static final", "parameters": "(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "return": "void", "signature": "void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "identifier": "writeCoordinator", "modifiers": "public static", "parameters": "(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "return": "void", "signature": "void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.property(XMLWriter writer, String name, String value)", "constructor": false, "full_signature": "public static void property(XMLWriter writer, String name, String value)", "identifier": "property", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String value)", "return": "void", "signature": "void property(XMLWriter writer, String name, String value)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "identifier": "writeBundle", "modifiers": "public static", "parameters": "(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "return": "void", "signature": "void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.loadViews(SchedulableJobManager manager, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "identifier": "loadViews", "modifiers": "public static", "parameters": "(SchedulableJobManager manager, Configuration conf)", "return": "Map<String,View>", "signature": "Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.getJobSettings(Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "identifier": "getJobSettings", "modifiers": "public static", "parameters": "(Schedule schedule, Configuration conf)", "return": "Map<String,String>", "signature": "Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "identifier": "writeJobConfiguration", "modifiers": "public static", "parameters": "(XMLWriter writer, Schedule schedule, Configuration conf)", "return": "void", "signature": "void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "testcase": false } ], "superclass": "" }
{ "body": "public static void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output) throws IOException {\n\n XmlStreamWriter streamWriter = WriterFactory.newXmlWriter(output);\n\n PrettyPrintXMLWriter writer = new PrettyPrintXMLWriter(streamWriter);\n\n String jobName = schedule.getJobClass().getCanonicalName();\n\n writer.startElement(COORDINATOR_ELEMENT);\n writer.addAttribute(\"name\", jobName);\n writer.addAttribute(\"xmlns\", OOZIE_COORD_NS);\n writer.addAttribute(\"frequency\", schedule.getFrequency());\n writer.addAttribute(\"start\", formatter.print(schedule.getStartTime()));\n\n writer.addAttribute(\"end\", \"3000-01-01T00:00Z\");\n\n writer.addAttribute(\"timezone\", \"UTC\");\n\n writeCoordinatorDatasets(writer, schedule, manager);\n\n writer.startElement(\"action\");\n\n writer.startElement(\"workflow\");\n element(writer, \"app-path\", \"${kiteAppRoot}/\" + workflowPath(schedule));\n\n writer.startElement(\"configuration\");\n\n property(writer, \"kiteAppRoot\", \"${kiteAppRoot}\");\n\n property(writer, COORD_NOMINAL_TIME, \"${coord:nominalTime()}\");\n\n // Include the dataset inputs to make them visible to the workflow.\n for (String inputName: manager.getJobParameters().getInputNames()) {\n\n property(writer, \"coord_\" + toIdentifier(inputName),\n \"${coord:dataIn('datain_\" + toIdentifier(inputName) + \"')}\");\n }\n\n for (String outputName: manager.getJobParameters().getOutputNames()) {\n\n property(writer, \"coord_\" + toIdentifier(outputName),\n \"${coord:dataOut('dataout_\" + toIdentifier(outputName) + \"')}\");\n }\n\n writer.endElement(); // configuration\n\n writer.endElement(); // workflow\n writer.endElement(); // action\n writer.endElement(); // coordinator\n streamWriter.flush();\n }", "class_method_signature": "OozieScheduling.writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "identifier": "writeCoordinator", "invocations": [ "newXmlWriter", "getCanonicalName", "getJobClass", "startElement", "addAttribute", "addAttribute", "addAttribute", "getFrequency", "addAttribute", "print", "getStartTime", "addAttribute", "addAttribute", "writeCoordinatorDatasets", "startElement", "startElement", "element", "workflowPath", "startElement", "property", "property", "getInputNames", "getJobParameters", "property", "toIdentifier", "toIdentifier", "getOutputNames", "getJobParameters", "property", "toIdentifier", "toIdentifier", "endElement", "endElement", "endElement", "endElement", "flush" ], "modifiers": "public static", "parameters": "(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "return": "void", "signature": "void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
36073969_2
{ "fields": [ { "declarator": "testSchedule", "modifier": "", "original_string": "Schedule testSchedule;", "type": "Schedule", "var_name": "testSchedule" }, { "declarator": "context", "modifier": "", "original_string": "AppContext context;", "type": "AppContext", "var_name": "context" } ], "file": "kite-apps-core/src/test/java/org/kitesdk/apps/spi/oozie/OozieSchedulingTest.java", "identifier": "OozieSchedulingTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWriteWorkflow() throws Exception {\n\n ByteArrayOutputStream output = new ByteArrayOutputStream();\n\n OozieScheduling.writeWorkFlow(testSchedule, context, output);\n\n Document workflow = XMLUtil.toDom(output);\n\n XPath xpath = XMLUtil.getXPath();\n\n assertEquals(testSchedule.getName(),\n xpath.evaluate(\"wf:workflow-app/@name\", workflow));\n\n // The oozie main should be invoked with the argument specifying the job.\n assertEquals(OozieScheduledJobMain.class.getName(),\n xpath.evaluate(\"wf:workflow-app/wf:action/wf:java/wf:main-class\", workflow));\n\n assertEquals(testSchedule.getName(),\n xpath.evaluate(\"wf:workflow-app/wf:action/wf:java/wf:arg\", workflow));\n\n // Check that the nominal time and source and target datasets are passed\n // as configuration to the Oozie job.\n assertEquals(\"${coordNominalTime}\",\n xpath.evaluate(\"wf:workflow-app/wf:action/wf:java/wf:configuration/\" +\n \"wf:property/wf:value[../wf:name/text() = \\\"workflowNominalTime\\\"]\", workflow));\n\n assertEquals(\"${coord_source_users}\",\n xpath.evaluate(\"wf:workflow-app/wf:action/wf:java/wf:configuration/\" +\n \"wf:property/wf:value[../wf:name/text() = \\\"wf_source_users\\\"]\", workflow));\n\n assertEquals(\"${coord_target_users}\",\n xpath.evaluate(\"wf:workflow-app/wf:action/wf:java/wf:configuration/\" +\n \"wf:property/wf:value[../wf:name/text() = \\\"wf_target_users\\\"]\", workflow));\n }", "class_method_signature": "OozieSchedulingTest.testWriteWorkflow()", "constructor": false, "full_signature": "@Test public void testWriteWorkflow()", "identifier": "testWriteWorkflow", "invocations": [ "writeWorkFlow", "toDom", "getXPath", "assertEquals", "getName", "evaluate", "assertEquals", "getName", "evaluate", "assertEquals", "getName", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate", "assertEquals", "evaluate" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testWriteWorkflow()", "testcase": true }
{ "fields": [ { "declarator": "OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\"", "modifier": "static final", "original_string": "static final String OOZIE_COORD_NS = \"uri:oozie:coordinator:0.4\";", "type": "String", "var_name": "OOZIE_COORD_NS" }, { "declarator": "OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\"", "modifier": "static final", "original_string": "static final String OOZIE_WORKFLOW_NS = \"uri:oozie:workflow:0.5\";", "type": "String", "var_name": "OOZIE_WORKFLOW_NS" }, { "declarator": "OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\"", "modifier": "static final", "original_string": "static final String OOZIE_BUNDLE_NS = \"uri:oozie:bundle:0.2\";", "type": "String", "var_name": "OOZIE_BUNDLE_NS" }, { "declarator": "OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\"", "modifier": "static final", "original_string": "static final String OOZIE_SPARK_NS = \"uri:oozie:spark-action:0.1\";", "type": "String", "var_name": "OOZIE_SPARK_NS" }, { "declarator": "WORKFLOW_ELEMENT = \"workflow-app\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_ELEMENT = \"workflow-app\";", "type": "String", "var_name": "WORKFLOW_ELEMENT" }, { "declarator": "COORDINATOR_ELEMENT = \"coordinator-app\"", "modifier": "private static final", "original_string": "private static final String COORDINATOR_ELEMENT = \"coordinator-app\";", "type": "String", "var_name": "COORDINATOR_ELEMENT" }, { "declarator": "BUNDLE_ELEMENT = \"bundle-app\"", "modifier": "private static final", "original_string": "private static final String BUNDLE_ELEMENT = \"bundle-app\";", "type": "String", "var_name": "BUNDLE_ELEMENT" }, { "declarator": "formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC)", "modifier": "private static final", "original_string": "private static final DateTimeFormatter formatter = DateTimeFormat.forPattern(\"yyyy-MM-dd'T'HH:mm'Z'\")\n .withZone(DateTimeZone.UTC);", "type": "DateTimeFormatter", "var_name": "formatter" }, { "declarator": "COORD_NOMINAL_TIME = \"coordNominalTime\"", "modifier": "private static final", "original_string": "private static final String COORD_NOMINAL_TIME = \"coordNominalTime\";", "type": "String", "var_name": "COORD_NOMINAL_TIME" }, { "declarator": "WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_NOMINAL_TIME = \"workflowNominalTime\";", "type": "String", "var_name": "WORKFLOW_NOMINAL_TIME" }, { "declarator": "HIVE_METASTORE_URIS = \"hive.metastore.uris\"", "modifier": "private static final", "original_string": "private static final String HIVE_METASTORE_URIS = \"hive.metastore.uris\";", "type": "String", "var_name": "HIVE_METASTORE_URIS" }, { "declarator": "WORKFLOW_DIR = \"oozie/workflows\"", "modifier": "private static final", "original_string": "private static final String WORKFLOW_DIR = \"oozie/workflows\";", "type": "String", "var_name": "WORKFLOW_DIR" }, { "declarator": "COORD_DIR = \"oozie/coordinators\"", "modifier": "private static final", "original_string": "private static final String COORD_DIR = \"oozie/coordinators\";", "type": "String", "var_name": "COORD_DIR" } ], "file": "kite-apps-core/src/main/java/org/kitesdk/apps/spi/oozie/OozieScheduling.java", "identifier": "OozieScheduling", "interfaces": "", "methods": [ { "class_method_signature": "OozieScheduling.workflowPath(Schedule schedule)", "constructor": false, "full_signature": "public static String workflowPath(Schedule schedule)", "identifier": "workflowPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String workflowPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.coordPath(Schedule schedule)", "constructor": false, "full_signature": "public static String coordPath(Schedule schedule)", "identifier": "coordPath", "modifiers": "public static", "parameters": "(Schedule schedule)", "return": "String", "signature": "String coordPath(Schedule schedule)", "testcase": false }, { "class_method_signature": "OozieScheduling.getNominalTime(Configuration conf)", "constructor": false, "full_signature": "public static Instant getNominalTime(Configuration conf)", "identifier": "getNominalTime", "modifiers": "public static", "parameters": "(Configuration conf)", "return": "Instant", "signature": "Instant getNominalTime(Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "return": "void", "signature": "void element(XMLWriter writer, String name, String attributeName,\n String attributeValue)", "testcase": false }, { "class_method_signature": "OozieScheduling.element(XMLWriter writer, String name, String text)", "constructor": false, "full_signature": "public static void element(XMLWriter writer, String name, String text)", "identifier": "element", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String text)", "return": "void", "signature": "void element(XMLWriter writer, String name, String text)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "identifier": "writeWorkFlow", "modifiers": "public static", "parameters": "(Schedule schedule,\n AppContext context,\n OutputStream output)", "return": "void", "signature": "void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.toIdentifier(String name)", "constructor": false, "full_signature": "private static final String toIdentifier(String name)", "identifier": "toIdentifier", "modifiers": "private static final", "parameters": "(String name)", "return": "String", "signature": "String toIdentifier(String name)", "testcase": false }, { "class_method_signature": "OozieScheduling.qualifyUri(Configuration conf, String uriTemplate)", "constructor": false, "full_signature": "@VisibleForTesting static final String qualifyUri(Configuration conf, String uriTemplate)", "identifier": "qualifyUri", "modifiers": "@VisibleForTesting static final", "parameters": "(Configuration conf, String uriTemplate)", "return": "String", "signature": "String qualifyUri(Configuration conf, String uriTemplate)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "constructor": false, "full_signature": "private static final void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "identifier": "writeCoordinatorDatasets", "modifiers": "private static final", "parameters": "(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "return": "void", "signature": "void writeCoordinatorDatasets(XMLWriter writer,\n Schedule schedule,\n SchedulableJobManager manager)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "identifier": "writeCoordinator", "modifiers": "public static", "parameters": "(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "return": "void", "signature": "void writeCoordinator(Schedule schedule,\n SchedulableJobManager manager,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.property(XMLWriter writer, String name, String value)", "constructor": false, "full_signature": "public static void property(XMLWriter writer, String name, String value)", "identifier": "property", "modifiers": "public static", "parameters": "(XMLWriter writer, String name, String value)", "return": "void", "signature": "void property(XMLWriter writer, String name, String value)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "identifier": "writeBundle", "modifiers": "public static", "parameters": "(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "return": "void", "signature": "void writeBundle(Class appClass,\n AppContext context,\n Path appPath,\n List<Schedule> schedules,\n OutputStream output)", "testcase": false }, { "class_method_signature": "OozieScheduling.loadViews(SchedulableJobManager manager, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "identifier": "loadViews", "modifiers": "public static", "parameters": "(SchedulableJobManager manager, Configuration conf)", "return": "Map<String,View>", "signature": "Map<String,View> loadViews(SchedulableJobManager manager, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.getJobSettings(Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "identifier": "getJobSettings", "modifiers": "public static", "parameters": "(Schedule schedule, Configuration conf)", "return": "Map<String,String>", "signature": "Map<String,String> getJobSettings(Schedule schedule, Configuration conf)", "testcase": false }, { "class_method_signature": "OozieScheduling.writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "constructor": false, "full_signature": "public static void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "identifier": "writeJobConfiguration", "modifiers": "public static", "parameters": "(XMLWriter writer, Schedule schedule, Configuration conf)", "return": "void", "signature": "void writeJobConfiguration(XMLWriter writer, Schedule schedule, Configuration conf)", "testcase": false } ], "superclass": "" }
{ "body": "public static void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output) throws IOException {\n\n XmlStreamWriter streamWriter = WriterFactory.newXmlWriter(output);\n\n PrettyPrintXMLWriter writer = new PrettyPrintXMLWriter(streamWriter);\n\n writer.startElement(WORKFLOW_ELEMENT);\n writer.addAttribute(\"name\", schedule.getName());\n writer.addAttribute(\"xmlns\", OOZIE_WORKFLOW_NS);\n\n element(writer, \"start\", \"to\", schedule.getName());\n\n writer.startElement(\"action\");\n writer.addAttribute(\"name\", schedule.getName());\n\n // Reduce retry attempts. TODO: make this configurable?\n writer.addAttribute(\"retry-max\", \"2\");\n writer.addAttribute(\"retry-interval\", \"1\");\n\n // Write the appropriate action to be used in the job.\n SchedulableJobManager manager = JobManagers.createSchedulable(schedule, context);\n manager.writeOozieActionBlock(writer, schedule);\n\n element(writer, \"ok\", \"to\", \"end\");\n\n element(writer, \"error\", \"to\", \"kill\");\n\n writer.endElement(); // action\n\n writer.startElement(\"kill\");\n writer.addAttribute(\"name\", \"kill\");\n element(writer, \"message\", \"Error in workflow for \" + schedule.getName());\n writer.endElement(); // kill\n\n element(writer, \"end\", \"name\", \"end\");\n\n writer.endElement(); // workflow\n streamWriter.flush();\n }", "class_method_signature": "OozieScheduling.writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "constructor": false, "full_signature": "public static void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "identifier": "writeWorkFlow", "invocations": [ "newXmlWriter", "startElement", "addAttribute", "getName", "addAttribute", "element", "getName", "startElement", "addAttribute", "getName", "addAttribute", "addAttribute", "createSchedulable", "writeOozieActionBlock", "element", "element", "endElement", "startElement", "addAttribute", "element", "getName", "endElement", "element", "endElement", "flush" ], "modifiers": "public static", "parameters": "(Schedule schedule,\n AppContext context,\n OutputStream output)", "return": "void", "signature": "void writeWorkFlow(Schedule schedule,\n AppContext context,\n OutputStream output)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 3, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 36073969, "size": 595, "stargazer_count": 12, "stars": null, "updates": null, "url": "https://github.com/rbrush/kite-apps" }
11206901_7
{ "fields": [ { "declarator": "handler", "modifier": "private", "original_string": "private WmsMapElementGraphics2DHandler handler;", "type": "WmsMapElementGraphics2DHandler", "var_name": "handler" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementGraphics2DHandlerTest.java", "identifier": "WmsMapElementGraphics2DHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToExport() {\n assertTrue(handler.toExport(mock(JRGenericPrintElement.class)));\n }", "class_method_signature": "WmsMapElementGraphics2DHandlerTest.testToExport()", "constructor": false, "full_signature": "@Test public void testToExport()", "identifier": "testToExport", "invocations": [ "assertTrue", "toExport", "mock" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testToExport()", "testcase": true }
{ "fields": [ { "declarator": "INSTANCE =\n new WmsMapElementGraphics2DHandler()", "modifier": "private static final", "original_string": "private static final WmsMapElementGraphics2DHandler INSTANCE =\n new WmsMapElementGraphics2DHandler();", "type": "WmsMapElementGraphics2DHandler", "var_name": "INSTANCE" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementGraphics2DHandler.java", "identifier": "WmsMapElementGraphics2DHandler", "interfaces": "implements\n GenericElementGraphics2DHandler", "methods": [ { "class_method_signature": "WmsMapElementGraphics2DHandler.getInstance()", "constructor": false, "full_signature": "public static WmsMapElementGraphics2DHandler getInstance()", "identifier": "getInstance", "modifiers": "public static", "parameters": "()", "return": "WmsMapElementGraphics2DHandler", "signature": "WmsMapElementGraphics2DHandler getInstance()", "testcase": false }, { "class_method_signature": "WmsMapElementGraphics2DHandler.exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "constructor": false, "full_signature": "@Override public void exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "identifier": "exportElement", "modifiers": "@Override public", "parameters": "(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "return": "void", "signature": "void exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "testcase": false }, { "class_method_signature": "WmsMapElementGraphics2DHandler.toExport(JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public boolean toExport(JRGenericPrintElement element)", "identifier": "toExport", "modifiers": "@Override public", "parameters": "(JRGenericPrintElement element)", "return": "boolean", "signature": "boolean toExport(JRGenericPrintElement element)", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public boolean toExport(JRGenericPrintElement element) {\n return true;\n }", "class_method_signature": "WmsMapElementGraphics2DHandler.toExport(JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public boolean toExport(JRGenericPrintElement element)", "identifier": "toExport", "invocations": [], "modifiers": "@Override public", "parameters": "(JRGenericPrintElement element)", "return": "boolean", "signature": "boolean toExport(JRGenericPrintElement element)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_6
{ "fields": [ { "declarator": "handler", "modifier": "private", "original_string": "private WmsMapElementGraphics2DHandler handler;", "type": "WmsMapElementGraphics2DHandler", "var_name": "handler" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementGraphics2DHandlerTest.java", "identifier": "WmsMapElementGraphics2DHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Ignore\n @Test\n public void testExportElement() throws JRException {\n JRGraphics2DExporter exporter = new JRGraphics2DExporter();\n JRGraphics2DExporterContext context = mock(JRGraphics2DExporterContext.class);\n when(context.getExporter()).thenReturn(exporter);\n JRGenericPrintElement element = mock(JRGenericPrintElement.class);\n java.awt.Container container = new Container();\n Graphics2D graphics = (Graphics2D) container.getGraphics();\n Offset offset = new Offset(0, 0);\n handler.exportElement(context, element, graphics, offset);\n }", "class_method_signature": "WmsMapElementGraphics2DHandlerTest.testExportElement()", "constructor": false, "full_signature": "@Ignore @Test public void testExportElement()", "identifier": "testExportElement", "invocations": [ "mock", "thenReturn", "when", "getExporter", "mock", "getGraphics", "exportElement" ], "modifiers": "@Ignore @Test public", "parameters": "()", "return": "void", "signature": "void testExportElement()", "testcase": true }
{ "fields": [ { "declarator": "INSTANCE =\n new WmsMapElementGraphics2DHandler()", "modifier": "private static final", "original_string": "private static final WmsMapElementGraphics2DHandler INSTANCE =\n new WmsMapElementGraphics2DHandler();", "type": "WmsMapElementGraphics2DHandler", "var_name": "INSTANCE" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementGraphics2DHandler.java", "identifier": "WmsMapElementGraphics2DHandler", "interfaces": "implements\n GenericElementGraphics2DHandler", "methods": [ { "class_method_signature": "WmsMapElementGraphics2DHandler.getInstance()", "constructor": false, "full_signature": "public static WmsMapElementGraphics2DHandler getInstance()", "identifier": "getInstance", "modifiers": "public static", "parameters": "()", "return": "WmsMapElementGraphics2DHandler", "signature": "WmsMapElementGraphics2DHandler getInstance()", "testcase": false }, { "class_method_signature": "WmsMapElementGraphics2DHandler.exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "constructor": false, "full_signature": "@Override public void exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "identifier": "exportElement", "modifiers": "@Override public", "parameters": "(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "return": "void", "signature": "void exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "testcase": false }, { "class_method_signature": "WmsMapElementGraphics2DHandler.toExport(JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public boolean toExport(JRGenericPrintElement element)", "identifier": "toExport", "modifiers": "@Override public", "parameters": "(JRGenericPrintElement element)", "return": "boolean", "signature": "boolean toExport(JRGenericPrintElement element)", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public void exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset) {\n try {\n JRGraphics2DExporter exporter = (JRGraphics2DExporter) context\n .getExporter();\n ImageDrawer imageDrawer = exporter.getFrameDrawer().getDrawVisitor()\n .getImageDrawer();\n JRPrintImage image = getImage(context.getJasperReportsContext(), element);\n imageDrawer.draw(grx, image, offset.getX(), offset.getY());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "class_method_signature": "WmsMapElementGraphics2DHandler.exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "constructor": false, "full_signature": "@Override public void exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "identifier": "exportElement", "invocations": [ "getExporter", "getImageDrawer", "getDrawVisitor", "getFrameDrawer", "getImage", "getJasperReportsContext", "draw", "getX", "getY" ], "modifiers": "@Override public", "parameters": "(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "return": "void", "signature": "void exportElement(JRGraphics2DExporterContext context,\n JRGenericPrintElement element, Graphics2D grx, Offset offset)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_1
{ "fields": [], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsVersionTest.java", "identifier": "WmsVersionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = NullPointerException.class)\n public void testCompareToNull() {\n WmsVersion version = new WmsVersion(\"1.1.1\");\n version.compareTo(null);\n }", "class_method_signature": "WmsVersionTest.testCompareToNull()", "constructor": false, "full_signature": "@Test(expected = NullPointerException.class) public void testCompareToNull()", "identifier": "testCompareToNull", "invocations": [ "compareTo" ], "modifiers": "@Test(expected = NullPointerException.class) public", "parameters": "()", "return": "void", "signature": "void testCompareToNull()", "testcase": true }
{ "fields": [ { "declarator": "major", "modifier": "private final", "original_string": "private final int major;", "type": "int", "var_name": "major" }, { "declarator": "minor", "modifier": "private final", "original_string": "private final int minor;", "type": "int", "var_name": "minor" }, { "declarator": "build", "modifier": "private final", "original_string": "private final int build;", "type": "int", "var_name": "build" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsVersion.java", "identifier": "WmsVersion", "interfaces": "implements Comparable<WmsVersion>", "methods": [ { "class_method_signature": "WmsVersion.WmsVersion(String version)", "constructor": true, "full_signature": "public WmsVersion(String version)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(String version)", "return": "", "signature": " WmsVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.WmsVersion(int major, int minor, int build)", "constructor": true, "full_signature": "public WmsVersion(int major, int minor, int build)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(int major, int minor, int build)", "return": "", "signature": " WmsVersion(int major, int minor, int build)", "testcase": false }, { "class_method_signature": "WmsVersion.getMajor()", "constructor": false, "full_signature": "public int getMajor()", "identifier": "getMajor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMajor()", "testcase": false }, { "class_method_signature": "WmsVersion.getMinor()", "constructor": false, "full_signature": "public int getMinor()", "identifier": "getMinor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMinor()", "testcase": false }, { "class_method_signature": "WmsVersion.getBuild()", "constructor": false, "full_signature": "public int getBuild()", "identifier": "getBuild", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getBuild()", "testcase": false }, { "class_method_signature": "WmsVersion.compareTo(WmsVersion o)", "constructor": false, "full_signature": "@Override public int compareTo(WmsVersion o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(WmsVersion o)", "return": "int", "signature": "int compareTo(WmsVersion o)", "testcase": false }, { "class_method_signature": "WmsVersion.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "WmsVersion.toVersionString()", "constructor": false, "full_signature": "public String toVersionString()", "identifier": "toVersionString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toVersionString()", "testcase": false }, { "class_method_signature": "WmsVersion.validateVersion(String version)", "constructor": false, "full_signature": "public static void validateVersion(String version)", "identifier": "validateVersion", "modifiers": "public static", "parameters": "(String version)", "return": "void", "signature": "void validateVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.versionElement(String[] versionParts, int i)", "constructor": false, "full_signature": "private static int versionElement(String[] versionParts, int i)", "identifier": "versionElement", "modifiers": "private static", "parameters": "(String[] versionParts, int i)", "return": "int", "signature": "int versionElement(String[] versionParts, int i)", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public int compareTo(WmsVersion o) {\n if (o == null) {\n throw new NullPointerException(\"Version to compare to must not be null\");\n }\n if (this.major != o.major) {\n return this.major < o.major ? -1 : 1;\n }\n if (this.minor != o.minor) {\n return this.minor < o.minor ? -1 : 1;\n }\n if (this.build != o.build) {\n return this.build < o.build ? -1 : 1;\n }\n return 0;\n }", "class_method_signature": "WmsVersion.compareTo(WmsVersion o)", "constructor": false, "full_signature": "@Override public int compareTo(WmsVersion o)", "identifier": "compareTo", "invocations": [], "modifiers": "@Override public", "parameters": "(WmsVersion o)", "return": "int", "signature": "int compareTo(WmsVersion o)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_0
{ "fields": [], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsVersionTest.java", "identifier": "WmsVersionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCompareTo() {\n WmsVersion version111 = new WmsVersion(\"1.1.1\");\n WmsVersion version112 = new WmsVersion(\"1.1.2\");\n WmsVersion version110 = new WmsVersion(\"1.1\");\n WmsVersion version130 = new WmsVersion(\"1.3\");\n WmsVersion version200 = new WmsVersion(\"2.0\");\n assertThat(version111.compareTo(version112), is(-1));\n assertThat(version112.compareTo(version111), is(1));\n assertThat(version111.compareTo(version130), is(-1));\n assertThat(version130.compareTo(version111), is(1));\n assertThat(version130.compareTo(version130), is(0));\n assertThat(version110.compareTo(version111), is(-1));\n assertThat(version200.compareTo(version111), is(1));\n assertThat(version130.compareTo(version200), is(-1));\n }", "class_method_signature": "WmsVersionTest.testCompareTo()", "constructor": false, "full_signature": "@Test public void testCompareTo()", "identifier": "testCompareTo", "invocations": [ "assertThat", "compareTo", "is", "assertThat", "compareTo", "is", "assertThat", "compareTo", "is", "assertThat", "compareTo", "is", "assertThat", "compareTo", "is", "assertThat", "compareTo", "is", "assertThat", "compareTo", "is", "assertThat", "compareTo", "is" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCompareTo()", "testcase": true }
{ "fields": [ { "declarator": "major", "modifier": "private final", "original_string": "private final int major;", "type": "int", "var_name": "major" }, { "declarator": "minor", "modifier": "private final", "original_string": "private final int minor;", "type": "int", "var_name": "minor" }, { "declarator": "build", "modifier": "private final", "original_string": "private final int build;", "type": "int", "var_name": "build" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsVersion.java", "identifier": "WmsVersion", "interfaces": "implements Comparable<WmsVersion>", "methods": [ { "class_method_signature": "WmsVersion.WmsVersion(String version)", "constructor": true, "full_signature": "public WmsVersion(String version)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(String version)", "return": "", "signature": " WmsVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.WmsVersion(int major, int minor, int build)", "constructor": true, "full_signature": "public WmsVersion(int major, int minor, int build)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(int major, int minor, int build)", "return": "", "signature": " WmsVersion(int major, int minor, int build)", "testcase": false }, { "class_method_signature": "WmsVersion.getMajor()", "constructor": false, "full_signature": "public int getMajor()", "identifier": "getMajor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMajor()", "testcase": false }, { "class_method_signature": "WmsVersion.getMinor()", "constructor": false, "full_signature": "public int getMinor()", "identifier": "getMinor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMinor()", "testcase": false }, { "class_method_signature": "WmsVersion.getBuild()", "constructor": false, "full_signature": "public int getBuild()", "identifier": "getBuild", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getBuild()", "testcase": false }, { "class_method_signature": "WmsVersion.compareTo(WmsVersion o)", "constructor": false, "full_signature": "@Override public int compareTo(WmsVersion o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(WmsVersion o)", "return": "int", "signature": "int compareTo(WmsVersion o)", "testcase": false }, { "class_method_signature": "WmsVersion.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "WmsVersion.toVersionString()", "constructor": false, "full_signature": "public String toVersionString()", "identifier": "toVersionString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toVersionString()", "testcase": false }, { "class_method_signature": "WmsVersion.validateVersion(String version)", "constructor": false, "full_signature": "public static void validateVersion(String version)", "identifier": "validateVersion", "modifiers": "public static", "parameters": "(String version)", "return": "void", "signature": "void validateVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.versionElement(String[] versionParts, int i)", "constructor": false, "full_signature": "private static int versionElement(String[] versionParts, int i)", "identifier": "versionElement", "modifiers": "private static", "parameters": "(String[] versionParts, int i)", "return": "int", "signature": "int versionElement(String[] versionParts, int i)", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public int compareTo(WmsVersion o) {\n if (o == null) {\n throw new NullPointerException(\"Version to compare to must not be null\");\n }\n if (this.major != o.major) {\n return this.major < o.major ? -1 : 1;\n }\n if (this.minor != o.minor) {\n return this.minor < o.minor ? -1 : 1;\n }\n if (this.build != o.build) {\n return this.build < o.build ? -1 : 1;\n }\n return 0;\n }", "class_method_signature": "WmsVersion.compareTo(WmsVersion o)", "constructor": false, "full_signature": "@Override public int compareTo(WmsVersion o)", "identifier": "compareTo", "invocations": [], "modifiers": "@Override public", "parameters": "(WmsVersion o)", "return": "int", "signature": "int compareTo(WmsVersion o)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_3
{ "fields": [], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsVersionTest.java", "identifier": "WmsVersionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToVersionString() {\n WmsVersion version1 = new WmsVersion(1, 0, 0);\n assertThat(version1.toVersionString(), is(\"1\"));\n WmsVersion version13 = new WmsVersion(1, 3, 0);\n assertThat(version13.toVersionString(), is(\"1.3\"));\n WmsVersion version111 = new WmsVersion(1, 1, 1);\n assertThat(version111.toVersionString(), is(\"1.1.1\"));\n }", "class_method_signature": "WmsVersionTest.testToVersionString()", "constructor": false, "full_signature": "@Test public void testToVersionString()", "identifier": "testToVersionString", "invocations": [ "assertThat", "toVersionString", "is", "assertThat", "toVersionString", "is", "assertThat", "toVersionString", "is" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testToVersionString()", "testcase": true }
{ "fields": [ { "declarator": "major", "modifier": "private final", "original_string": "private final int major;", "type": "int", "var_name": "major" }, { "declarator": "minor", "modifier": "private final", "original_string": "private final int minor;", "type": "int", "var_name": "minor" }, { "declarator": "build", "modifier": "private final", "original_string": "private final int build;", "type": "int", "var_name": "build" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsVersion.java", "identifier": "WmsVersion", "interfaces": "implements Comparable<WmsVersion>", "methods": [ { "class_method_signature": "WmsVersion.WmsVersion(String version)", "constructor": true, "full_signature": "public WmsVersion(String version)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(String version)", "return": "", "signature": " WmsVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.WmsVersion(int major, int minor, int build)", "constructor": true, "full_signature": "public WmsVersion(int major, int minor, int build)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(int major, int minor, int build)", "return": "", "signature": " WmsVersion(int major, int minor, int build)", "testcase": false }, { "class_method_signature": "WmsVersion.getMajor()", "constructor": false, "full_signature": "public int getMajor()", "identifier": "getMajor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMajor()", "testcase": false }, { "class_method_signature": "WmsVersion.getMinor()", "constructor": false, "full_signature": "public int getMinor()", "identifier": "getMinor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMinor()", "testcase": false }, { "class_method_signature": "WmsVersion.getBuild()", "constructor": false, "full_signature": "public int getBuild()", "identifier": "getBuild", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getBuild()", "testcase": false }, { "class_method_signature": "WmsVersion.compareTo(WmsVersion o)", "constructor": false, "full_signature": "@Override public int compareTo(WmsVersion o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(WmsVersion o)", "return": "int", "signature": "int compareTo(WmsVersion o)", "testcase": false }, { "class_method_signature": "WmsVersion.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "WmsVersion.toVersionString()", "constructor": false, "full_signature": "public String toVersionString()", "identifier": "toVersionString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toVersionString()", "testcase": false }, { "class_method_signature": "WmsVersion.validateVersion(String version)", "constructor": false, "full_signature": "public static void validateVersion(String version)", "identifier": "validateVersion", "modifiers": "public static", "parameters": "(String version)", "return": "void", "signature": "void validateVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.versionElement(String[] versionParts, int i)", "constructor": false, "full_signature": "private static int versionElement(String[] versionParts, int i)", "identifier": "versionElement", "modifiers": "private static", "parameters": "(String[] versionParts, int i)", "return": "int", "signature": "int versionElement(String[] versionParts, int i)", "testcase": false } ], "superclass": "" }
{ "body": "public String toVersionString() {\n StringBuilder version = new StringBuilder();\n version.append(major);\n if (minor != 0) {\n version.append('.').append(minor);\n }\n if (build != 0) {\n version.append('.').append(build);\n }\n return version.toString();\n }", "class_method_signature": "WmsVersion.toVersionString()", "constructor": false, "full_signature": "public String toVersionString()", "identifier": "toVersionString", "invocations": [ "append", "append", "append", "append", "append", "toString" ], "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toVersionString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_11
{ "fields": [ { "declarator": "SERVICE_URL = \"http://test.service.url\"", "modifier": "private static final", "original_string": "private static final String SERVICE_URL = \"http://test.service.url\";", "type": "String", "var_name": "SERVICE_URL" }, { "declarator": "request", "modifier": "private", "original_string": "private WmsRequestBuilder request;", "type": "WmsRequestBuilder", "var_name": "request" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilderTest.java", "identifier": "WmsRequestBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testVersion() throws MalformedURLException {\n String url = basicRequestBuilder().toMapUrl().toExternalForm();\n assertThat(url, containsString(\"VERSION=1.1.1\"));\n }", "class_method_signature": "WmsRequestBuilderTest.testVersion()", "constructor": false, "full_signature": "@Test public void testVersion()", "identifier": "testVersion", "invocations": [ "toExternalForm", "toMapUrl", "basicRequestBuilder", "assertThat", "containsString" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testVersion()", "testcase": true }
{ "fields": [ { "declarator": "UTF_8 = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String UTF_8 = \"UTF-8\";", "type": "String", "var_name": "UTF_8" }, { "declarator": "parameters =\n new HashMap<WmsRequestParameter, String>()", "modifier": "private final", "original_string": "private final Map<WmsRequestParameter, String> parameters =\n new HashMap<WmsRequestParameter, String>();", "type": "Map<WmsRequestParameter, String>", "var_name": "parameters" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilder.java", "identifier": "WmsRequestBuilder", "interfaces": "", "methods": [ { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(String serviceUrl)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(String serviceUrl)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(String serviceUrl)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(String serviceUrl)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(\n Map<WmsRequestParameter, String> params)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.layers(String layers)", "constructor": false, "full_signature": "public WmsRequestBuilder layers(String layers)", "identifier": "layers", "modifiers": "public", "parameters": "(String layers)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder layers(String layers)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.styles(String styles)", "constructor": false, "full_signature": "public WmsRequestBuilder styles(String styles)", "identifier": "styles", "modifiers": "public", "parameters": "(String styles)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder styles(String styles)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.format(String format)", "constructor": false, "full_signature": "public WmsRequestBuilder format(String format)", "identifier": "format", "modifiers": "public", "parameters": "(String format)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder format(String format)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.boundingBox(String boundingBox)", "constructor": false, "full_signature": "public WmsRequestBuilder boundingBox(String boundingBox)", "identifier": "boundingBox", "modifiers": "public", "parameters": "(String boundingBox)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder boundingBox(String boundingBox)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.transparent(boolean transparent)", "constructor": false, "full_signature": "public WmsRequestBuilder transparent(boolean transparent)", "identifier": "transparent", "modifiers": "public", "parameters": "(boolean transparent)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder transparent(boolean transparent)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.version(String version)", "constructor": false, "full_signature": "public WmsRequestBuilder version(String version)", "identifier": "version", "modifiers": "public", "parameters": "(String version)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder version(String version)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.srsCrs(String srsCrs)", "constructor": false, "full_signature": "public WmsRequestBuilder srsCrs(String srsCrs)", "identifier": "srsCrs", "modifiers": "public", "parameters": "(String srsCrs)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder srsCrs(String srsCrs)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.urlParameters(String urlParameters)", "constructor": false, "full_signature": "public WmsRequestBuilder urlParameters(String urlParameters)", "identifier": "urlParameters", "modifiers": "public", "parameters": "(String urlParameters)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder urlParameters(String urlParameters)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.width(int width)", "constructor": false, "full_signature": "public WmsRequestBuilder width(int width)", "identifier": "width", "modifiers": "public", "parameters": "(int width)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder width(int width)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.height(int height)", "constructor": false, "full_signature": "public WmsRequestBuilder height(int height)", "identifier": "height", "modifiers": "public", "parameters": "(int height)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder height(int height)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.toMapUrl()", "constructor": false, "full_signature": "public URL toMapUrl()", "identifier": "toMapUrl", "modifiers": "public", "parameters": "()", "return": "URL", "signature": "URL toMapUrl()", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.encodeParameter(String key, Object value)", "constructor": false, "full_signature": "private static String encodeParameter(String key, Object value)", "identifier": "encodeParameter", "modifiers": "private static", "parameters": "(String key, Object value)", "return": "String", "signature": "String encodeParameter(String key, Object value)", "testcase": false } ], "superclass": "" }
{ "body": "public WmsRequestBuilder version(String version) {\n parameters.put(WmsRequestParameter.VERSION, version);\n return this;\n }", "class_method_signature": "WmsRequestBuilder.version(String version)", "constructor": false, "full_signature": "public WmsRequestBuilder version(String version)", "identifier": "version", "invocations": [ "put" ], "modifiers": "public", "parameters": "(String version)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder version(String version)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_10
{ "fields": [ { "declarator": "SERVICE_URL = \"http://test.service.url\"", "modifier": "private static final", "original_string": "private static final String SERVICE_URL = \"http://test.service.url\";", "type": "String", "var_name": "SERVICE_URL" }, { "declarator": "request", "modifier": "private", "original_string": "private WmsRequestBuilder request;", "type": "WmsRequestBuilder", "var_name": "request" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilderTest.java", "identifier": "WmsRequestBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTransparent() throws MalformedURLException {\n String url = basicRequestBuilder().toMapUrl().toExternalForm();\n assertThat(url, containsString(\"TRANSPARENT=FALSE\"));\n }", "class_method_signature": "WmsRequestBuilderTest.testTransparent()", "constructor": false, "full_signature": "@Test public void testTransparent()", "identifier": "testTransparent", "invocations": [ "toExternalForm", "toMapUrl", "basicRequestBuilder", "assertThat", "containsString" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testTransparent()", "testcase": true }
{ "fields": [ { "declarator": "UTF_8 = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String UTF_8 = \"UTF-8\";", "type": "String", "var_name": "UTF_8" }, { "declarator": "parameters =\n new HashMap<WmsRequestParameter, String>()", "modifier": "private final", "original_string": "private final Map<WmsRequestParameter, String> parameters =\n new HashMap<WmsRequestParameter, String>();", "type": "Map<WmsRequestParameter, String>", "var_name": "parameters" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilder.java", "identifier": "WmsRequestBuilder", "interfaces": "", "methods": [ { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(String serviceUrl)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(String serviceUrl)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(String serviceUrl)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(String serviceUrl)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(\n Map<WmsRequestParameter, String> params)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.layers(String layers)", "constructor": false, "full_signature": "public WmsRequestBuilder layers(String layers)", "identifier": "layers", "modifiers": "public", "parameters": "(String layers)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder layers(String layers)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.styles(String styles)", "constructor": false, "full_signature": "public WmsRequestBuilder styles(String styles)", "identifier": "styles", "modifiers": "public", "parameters": "(String styles)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder styles(String styles)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.format(String format)", "constructor": false, "full_signature": "public WmsRequestBuilder format(String format)", "identifier": "format", "modifiers": "public", "parameters": "(String format)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder format(String format)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.boundingBox(String boundingBox)", "constructor": false, "full_signature": "public WmsRequestBuilder boundingBox(String boundingBox)", "identifier": "boundingBox", "modifiers": "public", "parameters": "(String boundingBox)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder boundingBox(String boundingBox)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.transparent(boolean transparent)", "constructor": false, "full_signature": "public WmsRequestBuilder transparent(boolean transparent)", "identifier": "transparent", "modifiers": "public", "parameters": "(boolean transparent)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder transparent(boolean transparent)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.version(String version)", "constructor": false, "full_signature": "public WmsRequestBuilder version(String version)", "identifier": "version", "modifiers": "public", "parameters": "(String version)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder version(String version)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.srsCrs(String srsCrs)", "constructor": false, "full_signature": "public WmsRequestBuilder srsCrs(String srsCrs)", "identifier": "srsCrs", "modifiers": "public", "parameters": "(String srsCrs)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder srsCrs(String srsCrs)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.urlParameters(String urlParameters)", "constructor": false, "full_signature": "public WmsRequestBuilder urlParameters(String urlParameters)", "identifier": "urlParameters", "modifiers": "public", "parameters": "(String urlParameters)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder urlParameters(String urlParameters)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.width(int width)", "constructor": false, "full_signature": "public WmsRequestBuilder width(int width)", "identifier": "width", "modifiers": "public", "parameters": "(int width)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder width(int width)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.height(int height)", "constructor": false, "full_signature": "public WmsRequestBuilder height(int height)", "identifier": "height", "modifiers": "public", "parameters": "(int height)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder height(int height)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.toMapUrl()", "constructor": false, "full_signature": "public URL toMapUrl()", "identifier": "toMapUrl", "modifiers": "public", "parameters": "()", "return": "URL", "signature": "URL toMapUrl()", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.encodeParameter(String key, Object value)", "constructor": false, "full_signature": "private static String encodeParameter(String key, Object value)", "identifier": "encodeParameter", "modifiers": "private static", "parameters": "(String key, Object value)", "return": "String", "signature": "String encodeParameter(String key, Object value)", "testcase": false } ], "superclass": "" }
{ "body": "public WmsRequestBuilder transparent(boolean transparent) {\n parameters.put(WmsRequestParameter.TRANSPARENT, Boolean\n .valueOf(transparent)\n .toString());\n return this;\n }", "class_method_signature": "WmsRequestBuilder.transparent(boolean transparent)", "constructor": false, "full_signature": "public WmsRequestBuilder transparent(boolean transparent)", "identifier": "transparent", "invocations": [ "put", "toString", "valueOf" ], "modifiers": "public", "parameters": "(boolean transparent)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder transparent(boolean transparent)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_2
{ "fields": [], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsVersionTest.java", "identifier": "WmsVersionTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToString() {\n WmsVersion version = new WmsVersion(\"1.3\");\n assertThat(version.toString(), is(\"1.3.0\"));\n }", "class_method_signature": "WmsVersionTest.testToString()", "constructor": false, "full_signature": "@Test public void testToString()", "identifier": "testToString", "invocations": [ "assertThat", "toString", "is" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testToString()", "testcase": true }
{ "fields": [ { "declarator": "major", "modifier": "private final", "original_string": "private final int major;", "type": "int", "var_name": "major" }, { "declarator": "minor", "modifier": "private final", "original_string": "private final int minor;", "type": "int", "var_name": "minor" }, { "declarator": "build", "modifier": "private final", "original_string": "private final int build;", "type": "int", "var_name": "build" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsVersion.java", "identifier": "WmsVersion", "interfaces": "implements Comparable<WmsVersion>", "methods": [ { "class_method_signature": "WmsVersion.WmsVersion(String version)", "constructor": true, "full_signature": "public WmsVersion(String version)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(String version)", "return": "", "signature": " WmsVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.WmsVersion(int major, int minor, int build)", "constructor": true, "full_signature": "public WmsVersion(int major, int minor, int build)", "identifier": "WmsVersion", "modifiers": "public", "parameters": "(int major, int minor, int build)", "return": "", "signature": " WmsVersion(int major, int minor, int build)", "testcase": false }, { "class_method_signature": "WmsVersion.getMajor()", "constructor": false, "full_signature": "public int getMajor()", "identifier": "getMajor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMajor()", "testcase": false }, { "class_method_signature": "WmsVersion.getMinor()", "constructor": false, "full_signature": "public int getMinor()", "identifier": "getMinor", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getMinor()", "testcase": false }, { "class_method_signature": "WmsVersion.getBuild()", "constructor": false, "full_signature": "public int getBuild()", "identifier": "getBuild", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getBuild()", "testcase": false }, { "class_method_signature": "WmsVersion.compareTo(WmsVersion o)", "constructor": false, "full_signature": "@Override public int compareTo(WmsVersion o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(WmsVersion o)", "return": "int", "signature": "int compareTo(WmsVersion o)", "testcase": false }, { "class_method_signature": "WmsVersion.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "WmsVersion.toVersionString()", "constructor": false, "full_signature": "public String toVersionString()", "identifier": "toVersionString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toVersionString()", "testcase": false }, { "class_method_signature": "WmsVersion.validateVersion(String version)", "constructor": false, "full_signature": "public static void validateVersion(String version)", "identifier": "validateVersion", "modifiers": "public static", "parameters": "(String version)", "return": "void", "signature": "void validateVersion(String version)", "testcase": false }, { "class_method_signature": "WmsVersion.versionElement(String[] versionParts, int i)", "constructor": false, "full_signature": "private static int versionElement(String[] versionParts, int i)", "identifier": "versionElement", "modifiers": "private static", "parameters": "(String[] versionParts, int i)", "return": "int", "signature": "int versionElement(String[] versionParts, int i)", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public String toString() {\n return format(\"%d.%d.%d\", major, minor, build);\n }", "class_method_signature": "WmsVersion.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "format" ], "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_9
{ "fields": [ { "declarator": "SERVICE_URL = \"http://test.service.url\"", "modifier": "private static final", "original_string": "private static final String SERVICE_URL = \"http://test.service.url\";", "type": "String", "var_name": "SERVICE_URL" }, { "declarator": "request", "modifier": "private", "original_string": "private WmsRequestBuilder request;", "type": "WmsRequestBuilder", "var_name": "request" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilderTest.java", "identifier": "WmsRequestBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testFormatDefault() throws MalformedURLException {\n String url = basicRequestBuilder().toMapUrl().toExternalForm();\n assertThat(url, containsString(\"FORMAT=image%2Fpng\"));\n }", "class_method_signature": "WmsRequestBuilderTest.testFormatDefault()", "constructor": false, "full_signature": "@Test public void testFormatDefault()", "identifier": "testFormatDefault", "invocations": [ "toExternalForm", "toMapUrl", "basicRequestBuilder", "assertThat", "containsString" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testFormatDefault()", "testcase": true }
{ "fields": [ { "declarator": "UTF_8 = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String UTF_8 = \"UTF-8\";", "type": "String", "var_name": "UTF_8" }, { "declarator": "parameters =\n new HashMap<WmsRequestParameter, String>()", "modifier": "private final", "original_string": "private final Map<WmsRequestParameter, String> parameters =\n new HashMap<WmsRequestParameter, String>();", "type": "Map<WmsRequestParameter, String>", "var_name": "parameters" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilder.java", "identifier": "WmsRequestBuilder", "interfaces": "", "methods": [ { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(String serviceUrl)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(String serviceUrl)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(String serviceUrl)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(String serviceUrl)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(\n Map<WmsRequestParameter, String> params)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.layers(String layers)", "constructor": false, "full_signature": "public WmsRequestBuilder layers(String layers)", "identifier": "layers", "modifiers": "public", "parameters": "(String layers)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder layers(String layers)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.styles(String styles)", "constructor": false, "full_signature": "public WmsRequestBuilder styles(String styles)", "identifier": "styles", "modifiers": "public", "parameters": "(String styles)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder styles(String styles)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.format(String format)", "constructor": false, "full_signature": "public WmsRequestBuilder format(String format)", "identifier": "format", "modifiers": "public", "parameters": "(String format)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder format(String format)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.boundingBox(String boundingBox)", "constructor": false, "full_signature": "public WmsRequestBuilder boundingBox(String boundingBox)", "identifier": "boundingBox", "modifiers": "public", "parameters": "(String boundingBox)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder boundingBox(String boundingBox)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.transparent(boolean transparent)", "constructor": false, "full_signature": "public WmsRequestBuilder transparent(boolean transparent)", "identifier": "transparent", "modifiers": "public", "parameters": "(boolean transparent)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder transparent(boolean transparent)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.version(String version)", "constructor": false, "full_signature": "public WmsRequestBuilder version(String version)", "identifier": "version", "modifiers": "public", "parameters": "(String version)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder version(String version)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.srsCrs(String srsCrs)", "constructor": false, "full_signature": "public WmsRequestBuilder srsCrs(String srsCrs)", "identifier": "srsCrs", "modifiers": "public", "parameters": "(String srsCrs)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder srsCrs(String srsCrs)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.urlParameters(String urlParameters)", "constructor": false, "full_signature": "public WmsRequestBuilder urlParameters(String urlParameters)", "identifier": "urlParameters", "modifiers": "public", "parameters": "(String urlParameters)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder urlParameters(String urlParameters)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.width(int width)", "constructor": false, "full_signature": "public WmsRequestBuilder width(int width)", "identifier": "width", "modifiers": "public", "parameters": "(int width)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder width(int width)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.height(int height)", "constructor": false, "full_signature": "public WmsRequestBuilder height(int height)", "identifier": "height", "modifiers": "public", "parameters": "(int height)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder height(int height)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.toMapUrl()", "constructor": false, "full_signature": "public URL toMapUrl()", "identifier": "toMapUrl", "modifiers": "public", "parameters": "()", "return": "URL", "signature": "URL toMapUrl()", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.encodeParameter(String key, Object value)", "constructor": false, "full_signature": "private static String encodeParameter(String key, Object value)", "identifier": "encodeParameter", "modifiers": "private static", "parameters": "(String key, Object value)", "return": "String", "signature": "String encodeParameter(String key, Object value)", "testcase": false } ], "superclass": "" }
{ "body": "public URL toMapUrl() throws MalformedURLException {\n StringBuilder url = new StringBuilder();\n Map<WmsRequestParameter, String> params =\n new LinkedHashMap<WmsRequestParameter, String>(this.parameters);\n String wmsUrl = params.remove(WmsRequestParameter.WMS_URL).toString();\n url.append(wmsUrl);\n if (wmsUrl.indexOf(\"?\") == -1) {\n url.append(\"?\");\n }\n java.util.List<String> paramList = new ArrayList<String>();\n\n for (WmsRequestParameter parameter : WmsRequestParameter.parameterValues()) {\n if (parameter == WmsRequestParameter.URL_PARAMETERS) {\n continue;\n }\n Object defaultValue = parameter.defaultValue(params);\n if (params.containsKey(parameter) || parameter.isRequired(params)\n || defaultValue != null) {\n String parameterName = parameter.parameterName(params);\n Object value = parameter.extract(params);\n paramList.add(encodeParameter(parameterName, value.toString()));\n }\n }\n Iterator<String> iterator = paramList.iterator();\n while (iterator.hasNext()) {\n String param = iterator.next();\n url.append(param);\n if (iterator.hasNext()) {\n url.append(\"&\");\n }\n }\n Object urlParams = params.remove(WmsRequestParameter.URL_PARAMETERS);\n if (urlParams != null) {\n String extraUrlParams = urlParams.toString();\n if (!extraUrlParams.startsWith(\"&\")) {\n url.append(\"&\");\n }\n url.append(extraUrlParams);\n }\n return new URL(url.toString());\n }", "class_method_signature": "WmsRequestBuilder.toMapUrl()", "constructor": false, "full_signature": "public URL toMapUrl()", "identifier": "toMapUrl", "invocations": [ "toString", "remove", "append", "indexOf", "append", "parameterValues", "defaultValue", "containsKey", "isRequired", "parameterName", "extract", "add", "encodeParameter", "toString", "iterator", "hasNext", "next", "append", "hasNext", "append", "remove", "toString", "startsWith", "append", "append", "toString" ], "modifiers": "public", "parameters": "()", "return": "URL", "signature": "URL toMapUrl()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_5
{ "fields": [ { "declarator": "handler", "modifier": "private", "original_string": "private WmsMapElementHtmlHandler handler;", "type": "WmsMapElementHtmlHandler", "var_name": "handler" }, { "declarator": "BASE_URL = \"http://wms.qgiscloud.com/test\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://wms.qgiscloud.com/test\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "parameters", "modifier": "private", "original_string": "private Map<String, Object> parameters;", "type": "Map<String, Object>", "var_name": "parameters" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementHtmlHandlerTest.java", "identifier": "WmsMapElementHtmlHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Ignore(\"Moved test from generic element\")\n @Test\n public void testGetHtmlFragment() {\n JRGenericPrintElement element = mock(JRGenericPrintElement.class);\n when(element.getParameterNames()).thenReturn(parameters.keySet());\n when(element.getParameterValue(WmsRequestParameter.WMS_URL.name()))\n .thenReturn(BASE_URL);\n when(element.getParameterValue(WmsRequestParameter.LAYERS.name()))\n .thenReturn(\"Hintergrund\");\n when(element.getParameterValue(WmsRequestParameter.BBOX.name()))\n .thenReturn(\"1,1,1,1\");\n when(element.getParameterValue(WmsRequestParameter.SRS_CRS.name()))\n .thenReturn(\"EPSG:21781\");\n when(element.getWidth()).thenReturn(100);\n when(element.getHeight()).thenReturn(100);\n String htmlFragment = handler.getHtmlFragment(\n mock(JRHtmlExporterContext.class), element);\n assertThat(htmlFragment, startsWith(\"<img \"));\n assertThat(htmlFragment, containsString(BASE_URL));\n assertThat(htmlFragment, containsString(\"WIDTH=100\"));\n assertThat(htmlFragment, containsString(\"HEIGHT=100\"));\n }", "class_method_signature": "WmsMapElementHtmlHandlerTest.testGetHtmlFragment()", "constructor": false, "full_signature": "@Ignore(\"Moved test from generic element\") @Test public void testGetHtmlFragment()", "identifier": "testGetHtmlFragment", "invocations": [ "mock", "thenReturn", "when", "getParameterNames", "keySet", "thenReturn", "when", "getParameterValue", "name", "thenReturn", "when", "getParameterValue", "name", "thenReturn", "when", "getParameterValue", "name", "thenReturn", "when", "getParameterValue", "name", "thenReturn", "when", "getWidth", "thenReturn", "when", "getHeight", "getHtmlFragment", "mock", "assertThat", "startsWith", "assertThat", "containsString", "assertThat", "containsString", "assertThat", "containsString" ], "modifiers": "@Ignore(\"Moved test from generic element\") @Test public", "parameters": "()", "return": "void", "signature": "void testGetHtmlFragment()", "testcase": true }
{ "fields": [ { "declarator": "INSTANCE = new WmsMapElementHtmlHandler()", "modifier": "private static final", "original_string": "private static final WmsMapElementHtmlHandler INSTANCE = new WmsMapElementHtmlHandler();", "type": "WmsMapElementHtmlHandler", "var_name": "INSTANCE" }, { "declarator": "MAP_ELEMENT_HTML_TEMPLATE =\n \"com/sourcepole/jasperreports/wmsmap/resources/templates/WmsMapElementTemplate.vm\"", "modifier": "private static final", "original_string": "private static final String MAP_ELEMENT_HTML_TEMPLATE =\n \"com/sourcepole/jasperreports/wmsmap/resources/templates/WmsMapElementTemplate.vm\";", "type": "String", "var_name": "MAP_ELEMENT_HTML_TEMPLATE" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementHtmlHandler.java", "identifier": "WmsMapElementHtmlHandler", "interfaces": "implements GenericElementHtmlHandler", "methods": [ { "class_method_signature": "WmsMapElementHtmlHandler.getInstance()", "constructor": false, "full_signature": "public static WmsMapElementHtmlHandler getInstance()", "identifier": "getInstance", "modifiers": "public static", "parameters": "()", "return": "WmsMapElementHtmlHandler", "signature": "WmsMapElementHtmlHandler getInstance()", "testcase": false }, { "class_method_signature": "WmsMapElementHtmlHandler.getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public String getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "identifier": "getHtmlFragment", "modifiers": "@Override public", "parameters": "(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "return": "String", "signature": "String getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "testcase": false }, { "class_method_signature": "WmsMapElementHtmlHandler.toExport(JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public boolean toExport(JRGenericPrintElement element)", "identifier": "toExport", "modifiers": "@Override public", "parameters": "(JRGenericPrintElement element)", "return": "boolean", "signature": "boolean toExport(JRGenericPrintElement element)", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public String getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element) {\n\n Map<String, Object> contextMap = new HashMap<String, Object>();\n contextMap.put(\"mapCanvasId\", \"map_canvas_\" + element.hashCode());\n\n if (context.getExporter() instanceof JRXhtmlExporter) {\n contextMap.put(\"xhtml\", \"xhtml\");\n JRXhtmlExporter xhtmlExporter = (JRXhtmlExporter) context.getExporter();\n contextMap.put(\"elementX\", xhtmlExporter.toSizeUnit(element.getX()));\n contextMap.put(\"elementY\", xhtmlExporter.toSizeUnit(element.getY()));\n } else {\n JRHtmlExporter htmlExporter = (JRHtmlExporter) context.getExporter();\n contextMap.put(\"elementX\", htmlExporter.toSizeUnit(element.getX()));\n contextMap.put(\"elementY\", htmlExporter.toSizeUnit(element.getY()));\n }\n contextMap.put(\"elementId\", element.getKey());\n contextMap.put(\"elementWidth\", element.getWidth());\n contextMap.put(\"elementHeight\", element.getHeight());\n\n if (element.getModeValue() == ModeEnum.OPAQUE) {\n contextMap.put(\"backgroundColor\",\n JRColorUtil.getColorHexa(element.getBackcolor()));\n }\n WmsRequestBuilder requestBuilder =\n WmsMapElementImageProvider.mapRequestBuilder(element);\n try {\n contextMap.put(\"wmsMapUrl\", requestBuilder.toMapUrl());\n } catch (MalformedURLException e) {\n throw new RuntimeException(\"Unable to build WMS map service url\", e);\n }\n\n return VelocityUtil.processTemplate(MAP_ELEMENT_HTML_TEMPLATE, contextMap);\n }", "class_method_signature": "WmsMapElementHtmlHandler.getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public String getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "identifier": "getHtmlFragment", "invocations": [ "put", "hashCode", "getExporter", "put", "getExporter", "put", "toSizeUnit", "getX", "put", "toSizeUnit", "getY", "getExporter", "put", "toSizeUnit", "getX", "put", "toSizeUnit", "getY", "put", "getKey", "put", "getWidth", "put", "getHeight", "getModeValue", "put", "getColorHexa", "getBackcolor", "mapRequestBuilder", "put", "toMapUrl", "processTemplate" ], "modifiers": "@Override public", "parameters": "(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "return": "String", "signature": "String getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_4
{ "fields": [ { "declarator": "handler", "modifier": "private", "original_string": "private WmsMapElementHtmlHandler handler;", "type": "WmsMapElementHtmlHandler", "var_name": "handler" }, { "declarator": "BASE_URL = \"http://wms.qgiscloud.com/test\"", "modifier": "private static final", "original_string": "private static final String BASE_URL = \"http://wms.qgiscloud.com/test\";", "type": "String", "var_name": "BASE_URL" }, { "declarator": "parameters", "modifier": "private", "original_string": "private Map<String, Object> parameters;", "type": "Map<String, Object>", "var_name": "parameters" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementHtmlHandlerTest.java", "identifier": "WmsMapElementHtmlHandlerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToExport() {\n assertTrue(handler.toExport(null));\n }", "class_method_signature": "WmsMapElementHtmlHandlerTest.testToExport()", "constructor": false, "full_signature": "@Test public void testToExport()", "identifier": "testToExport", "invocations": [ "assertTrue", "toExport" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testToExport()", "testcase": true }
{ "fields": [ { "declarator": "INSTANCE = new WmsMapElementHtmlHandler()", "modifier": "private static final", "original_string": "private static final WmsMapElementHtmlHandler INSTANCE = new WmsMapElementHtmlHandler();", "type": "WmsMapElementHtmlHandler", "var_name": "INSTANCE" }, { "declarator": "MAP_ELEMENT_HTML_TEMPLATE =\n \"com/sourcepole/jasperreports/wmsmap/resources/templates/WmsMapElementTemplate.vm\"", "modifier": "private static final", "original_string": "private static final String MAP_ELEMENT_HTML_TEMPLATE =\n \"com/sourcepole/jasperreports/wmsmap/resources/templates/WmsMapElementTemplate.vm\";", "type": "String", "var_name": "MAP_ELEMENT_HTML_TEMPLATE" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsMapElementHtmlHandler.java", "identifier": "WmsMapElementHtmlHandler", "interfaces": "implements GenericElementHtmlHandler", "methods": [ { "class_method_signature": "WmsMapElementHtmlHandler.getInstance()", "constructor": false, "full_signature": "public static WmsMapElementHtmlHandler getInstance()", "identifier": "getInstance", "modifiers": "public static", "parameters": "()", "return": "WmsMapElementHtmlHandler", "signature": "WmsMapElementHtmlHandler getInstance()", "testcase": false }, { "class_method_signature": "WmsMapElementHtmlHandler.getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public String getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "identifier": "getHtmlFragment", "modifiers": "@Override public", "parameters": "(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "return": "String", "signature": "String getHtmlFragment(JRHtmlExporterContext context,\n JRGenericPrintElement element)", "testcase": false }, { "class_method_signature": "WmsMapElementHtmlHandler.toExport(JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public boolean toExport(JRGenericPrintElement element)", "identifier": "toExport", "modifiers": "@Override public", "parameters": "(JRGenericPrintElement element)", "return": "boolean", "signature": "boolean toExport(JRGenericPrintElement element)", "testcase": false } ], "superclass": "" }
{ "body": "@Override\n public boolean toExport(JRGenericPrintElement element) {\n return true;\n }", "class_method_signature": "WmsMapElementHtmlHandler.toExport(JRGenericPrintElement element)", "constructor": false, "full_signature": "@Override public boolean toExport(JRGenericPrintElement element)", "identifier": "toExport", "invocations": [], "modifiers": "@Override public", "parameters": "(JRGenericPrintElement element)", "return": "boolean", "signature": "boolean toExport(JRGenericPrintElement element)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
11206901_8
{ "fields": [ { "declarator": "SERVICE_URL = \"http://test.service.url\"", "modifier": "private static final", "original_string": "private static final String SERVICE_URL = \"http://test.service.url\";", "type": "String", "var_name": "SERVICE_URL" }, { "declarator": "request", "modifier": "private", "original_string": "private WmsRequestBuilder request;", "type": "WmsRequestBuilder", "var_name": "request" } ], "file": "jasperreports-wms-component/src/test/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilderTest.java", "identifier": "WmsRequestBuilderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testStylesDefaults() throws MalformedURLException {\n String url = basicRequestBuilder()\n .toMapUrl().toExternalForm();\n assertThat(url, containsString(\"STYLE=%2C%2C\"));\n System.out.println(url);\n }", "class_method_signature": "WmsRequestBuilderTest.testStylesDefaults()", "constructor": false, "full_signature": "@Test public void testStylesDefaults()", "identifier": "testStylesDefaults", "invocations": [ "toExternalForm", "toMapUrl", "basicRequestBuilder", "assertThat", "containsString", "println" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testStylesDefaults()", "testcase": true }
{ "fields": [ { "declarator": "UTF_8 = \"UTF-8\"", "modifier": "private static final", "original_string": "private static final String UTF_8 = \"UTF-8\";", "type": "String", "var_name": "UTF_8" }, { "declarator": "parameters =\n new HashMap<WmsRequestParameter, String>()", "modifier": "private final", "original_string": "private final Map<WmsRequestParameter, String> parameters =\n new HashMap<WmsRequestParameter, String>();", "type": "Map<WmsRequestParameter, String>", "var_name": "parameters" } ], "file": "jasperreports-wms-component/src/main/java/com/sourcepole/jasperreports/wmsmap/WmsRequestBuilder.java", "identifier": "WmsRequestBuilder", "interfaces": "", "methods": [ { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(String serviceUrl)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(String serviceUrl)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(String serviceUrl)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(String serviceUrl)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "constructor": false, "full_signature": "public static WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "identifier": "createGetMapRequest", "modifiers": "public static", "parameters": "(\n Map<WmsRequestParameter, String> params)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder createGetMapRequest(\n Map<WmsRequestParameter, String> params)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.layers(String layers)", "constructor": false, "full_signature": "public WmsRequestBuilder layers(String layers)", "identifier": "layers", "modifiers": "public", "parameters": "(String layers)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder layers(String layers)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.styles(String styles)", "constructor": false, "full_signature": "public WmsRequestBuilder styles(String styles)", "identifier": "styles", "modifiers": "public", "parameters": "(String styles)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder styles(String styles)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.format(String format)", "constructor": false, "full_signature": "public WmsRequestBuilder format(String format)", "identifier": "format", "modifiers": "public", "parameters": "(String format)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder format(String format)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.boundingBox(String boundingBox)", "constructor": false, "full_signature": "public WmsRequestBuilder boundingBox(String boundingBox)", "identifier": "boundingBox", "modifiers": "public", "parameters": "(String boundingBox)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder boundingBox(String boundingBox)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.transparent(boolean transparent)", "constructor": false, "full_signature": "public WmsRequestBuilder transparent(boolean transparent)", "identifier": "transparent", "modifiers": "public", "parameters": "(boolean transparent)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder transparent(boolean transparent)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.version(String version)", "constructor": false, "full_signature": "public WmsRequestBuilder version(String version)", "identifier": "version", "modifiers": "public", "parameters": "(String version)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder version(String version)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.srsCrs(String srsCrs)", "constructor": false, "full_signature": "public WmsRequestBuilder srsCrs(String srsCrs)", "identifier": "srsCrs", "modifiers": "public", "parameters": "(String srsCrs)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder srsCrs(String srsCrs)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.urlParameters(String urlParameters)", "constructor": false, "full_signature": "public WmsRequestBuilder urlParameters(String urlParameters)", "identifier": "urlParameters", "modifiers": "public", "parameters": "(String urlParameters)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder urlParameters(String urlParameters)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.width(int width)", "constructor": false, "full_signature": "public WmsRequestBuilder width(int width)", "identifier": "width", "modifiers": "public", "parameters": "(int width)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder width(int width)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.height(int height)", "constructor": false, "full_signature": "public WmsRequestBuilder height(int height)", "identifier": "height", "modifiers": "public", "parameters": "(int height)", "return": "WmsRequestBuilder", "signature": "WmsRequestBuilder height(int height)", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.toMapUrl()", "constructor": false, "full_signature": "public URL toMapUrl()", "identifier": "toMapUrl", "modifiers": "public", "parameters": "()", "return": "URL", "signature": "URL toMapUrl()", "testcase": false }, { "class_method_signature": "WmsRequestBuilder.encodeParameter(String key, Object value)", "constructor": false, "full_signature": "private static String encodeParameter(String key, Object value)", "identifier": "encodeParameter", "modifiers": "private static", "parameters": "(String key, Object value)", "return": "String", "signature": "String encodeParameter(String key, Object value)", "testcase": false } ], "superclass": "" }
{ "body": "public URL toMapUrl() throws MalformedURLException {\n StringBuilder url = new StringBuilder();\n Map<WmsRequestParameter, String> params =\n new LinkedHashMap<WmsRequestParameter, String>(this.parameters);\n String wmsUrl = params.remove(WmsRequestParameter.WMS_URL).toString();\n url.append(wmsUrl);\n if (wmsUrl.indexOf(\"?\") == -1) {\n url.append(\"?\");\n }\n java.util.List<String> paramList = new ArrayList<String>();\n\n for (WmsRequestParameter parameter : WmsRequestParameter.parameterValues()) {\n if (parameter == WmsRequestParameter.URL_PARAMETERS) {\n continue;\n }\n Object defaultValue = parameter.defaultValue(params);\n if (params.containsKey(parameter) || parameter.isRequired(params)\n || defaultValue != null) {\n String parameterName = parameter.parameterName(params);\n Object value = parameter.extract(params);\n paramList.add(encodeParameter(parameterName, value.toString()));\n }\n }\n Iterator<String> iterator = paramList.iterator();\n while (iterator.hasNext()) {\n String param = iterator.next();\n url.append(param);\n if (iterator.hasNext()) {\n url.append(\"&\");\n }\n }\n Object urlParams = params.remove(WmsRequestParameter.URL_PARAMETERS);\n if (urlParams != null) {\n String extraUrlParams = urlParams.toString();\n if (!extraUrlParams.startsWith(\"&\")) {\n url.append(\"&\");\n }\n url.append(extraUrlParams);\n }\n return new URL(url.toString());\n }", "class_method_signature": "WmsRequestBuilder.toMapUrl()", "constructor": false, "full_signature": "public URL toMapUrl()", "identifier": "toMapUrl", "invocations": [ "toString", "remove", "append", "indexOf", "append", "parameterValues", "defaultValue", "containsKey", "isRequired", "parameterName", "extract", "add", "encodeParameter", "toString", "iterator", "hasNext", "next", "append", "hasNext", "append", "remove", "toString", "startsWith", "append", "append", "toString" ], "modifiers": "public", "parameters": "()", "return": "URL", "signature": "URL toMapUrl()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 2, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 11206901, "size": 588, "stargazer_count": 9, "stars": null, "updates": null, "url": "https://github.com/sourcepole/jasperreports-wms-component" }
130912988_0
{ "fields": [ { "declarator": "objectMapper = new ObjectMapper()", "modifier": "", "original_string": "ObjectMapper objectMapper = new ObjectMapper();", "type": "ObjectMapper", "var_name": "objectMapper" } ], "file": "core/src/test/java/com/elepy/dao/QueryTest.java", "identifier": "QueryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void simpleSearch() {\n //Should handle multiple spaces properly\n final var searchQuery = parse(\"hi my name is ryan\");\n\n assertThat(searchQuery.getExpression())\n .asInstanceOf(type(SearchQuery.class))\n .extracting(SearchQuery::getTerm)\n .isEqualTo(\"hi my name is ryan\");\n\n }", "class_method_signature": "QueryTest.simpleSearch()", "constructor": false, "full_signature": "@Test void simpleSearch()", "identifier": "simpleSearch", "invocations": [ "parse", "isEqualTo", "extracting", "asInstanceOf", "assertThat", "getExpression", "type" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void simpleSearch()", "testcase": true }
{ "fields": [ { "declarator": "expression", "modifier": "private", "original_string": "private Expression expression;", "type": "Expression", "var_name": "expression" }, { "declarator": "skip = 0", "modifier": "private", "original_string": "private int skip = 0;", "type": "int", "var_name": "skip" }, { "declarator": "limit = Integer.MAX_VALUE", "modifier": "private", "original_string": "private int limit = Integer.MAX_VALUE;", "type": "int", "var_name": "limit" }, { "declarator": "sortingSpecifications = new SortingSpecification()", "modifier": "private", "original_string": "private SortingSpecification sortingSpecifications = new SortingSpecification();", "type": "SortingSpecification", "var_name": "sortingSpecifications" } ], "file": "core/src/main/java/com/elepy/dao/Query.java", "identifier": "Query", "interfaces": "", "methods": [ { "class_method_signature": "Query.Query()", "constructor": true, "full_signature": "public Query()", "identifier": "Query", "modifiers": "public", "parameters": "()", "return": "", "signature": " Query()", "testcase": false }, { "class_method_signature": "Query.purge()", "constructor": false, "full_signature": "public Query purge()", "identifier": "purge", "modifiers": "public", "parameters": "()", "return": "Query", "signature": "Query purge()", "testcase": false }, { "class_method_signature": "Query.Query(Expression expression)", "constructor": true, "full_signature": "public Query(Expression expression)", "identifier": "Query", "modifiers": "public", "parameters": "(Expression expression)", "return": "", "signature": " Query(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }, { "class_method_signature": "Query.setExpression(Expression expression)", "constructor": false, "full_signature": "public void setExpression(Expression expression)", "identifier": "setExpression", "modifiers": "public", "parameters": "(Expression expression)", "return": "void", "signature": "void setExpression(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getSkip()", "constructor": false, "full_signature": "public int getSkip()", "identifier": "getSkip", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getSkip()", "testcase": false }, { "class_method_signature": "Query.skip(int skip)", "constructor": false, "full_signature": "public Query skip(int skip)", "identifier": "skip", "modifiers": "public", "parameters": "(int skip)", "return": "Query", "signature": "Query skip(int skip)", "testcase": false }, { "class_method_signature": "Query.getLimit()", "constructor": false, "full_signature": "public int getLimit()", "identifier": "getLimit", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getLimit()", "testcase": false }, { "class_method_signature": "Query.limit(int limit)", "constructor": false, "full_signature": "public Query limit(int limit)", "identifier": "limit", "modifiers": "public", "parameters": "(int limit)", "return": "Query", "signature": "Query limit(int limit)", "testcase": false }, { "class_method_signature": "Query.getSortingSpecification()", "constructor": false, "full_signature": "public SortingSpecification getSortingSpecification()", "identifier": "getSortingSpecification", "modifiers": "public", "parameters": "()", "return": "SortingSpecification", "signature": "SortingSpecification getSortingSpecification()", "testcase": false }, { "class_method_signature": "Query.sort(String property, SortOption option)", "constructor": false, "full_signature": "public Query sort(String property, SortOption option)", "identifier": "sort", "modifiers": "public", "parameters": "(String property, SortOption option)", "return": "Query", "signature": "Query sort(String property, SortOption option)", "testcase": false }, { "class_method_signature": "Query.sort(SortingSpecification sortingSpecification)", "constructor": false, "full_signature": "public Query sort(SortingSpecification sortingSpecification)", "identifier": "sort", "modifiers": "public", "parameters": "(SortingSpecification sortingSpecification)", "return": "Query", "signature": "Query sort(SortingSpecification sortingSpecification)", "testcase": false }, { "class_method_signature": "Query.page(int number, int size)", "constructor": false, "full_signature": "public Query page(int number, int size)", "identifier": "page", "modifiers": "public", "parameters": "(int number, int size)", "return": "Query", "signature": "Query page(int number, int size)", "testcase": false } ], "superclass": "" }
{ "body": "public Expression getExpression() {\n return expression;\n }", "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }
{ "created": "4/24/2018 8:58:25 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 130912988, "size": null, "stargazer_count": null, "stars": 81, "updates": "2020-01-26T20:52:55+00:00", "url": "https://github.com/RyanSusana/elepy" }
130912988_1
{ "fields": [ { "declarator": "objectMapper = new ObjectMapper()", "modifier": "", "original_string": "ObjectMapper objectMapper = new ObjectMapper();", "type": "ObjectMapper", "var_name": "objectMapper" } ], "file": "core/src/test/java/com/elepy/dao/QueryTest.java", "identifier": "QueryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void stringSearch() {\n var subject = \"'ryan is my firstname and is not equals my last name or my middle name!!! @™@€'\";\n final var searchQuery = parse(subject);\n\n assertThat(searchQuery.getExpression())\n .asInstanceOf(type(SearchQuery.class))\n .extracting(SearchQuery::getTerm)\n .isEqualTo(subject.substring(1, subject.length() - 1));\n\n }", "class_method_signature": "QueryTest.stringSearch()", "constructor": false, "full_signature": "@Test void stringSearch()", "identifier": "stringSearch", "invocations": [ "parse", "isEqualTo", "extracting", "asInstanceOf", "assertThat", "getExpression", "type", "substring", "length" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void stringSearch()", "testcase": true }
{ "fields": [ { "declarator": "expression", "modifier": "private", "original_string": "private Expression expression;", "type": "Expression", "var_name": "expression" }, { "declarator": "skip = 0", "modifier": "private", "original_string": "private int skip = 0;", "type": "int", "var_name": "skip" }, { "declarator": "limit = Integer.MAX_VALUE", "modifier": "private", "original_string": "private int limit = Integer.MAX_VALUE;", "type": "int", "var_name": "limit" }, { "declarator": "sortingSpecifications = new SortingSpecification()", "modifier": "private", "original_string": "private SortingSpecification sortingSpecifications = new SortingSpecification();", "type": "SortingSpecification", "var_name": "sortingSpecifications" } ], "file": "core/src/main/java/com/elepy/dao/Query.java", "identifier": "Query", "interfaces": "", "methods": [ { "class_method_signature": "Query.Query()", "constructor": true, "full_signature": "public Query()", "identifier": "Query", "modifiers": "public", "parameters": "()", "return": "", "signature": " Query()", "testcase": false }, { "class_method_signature": "Query.purge()", "constructor": false, "full_signature": "public Query purge()", "identifier": "purge", "modifiers": "public", "parameters": "()", "return": "Query", "signature": "Query purge()", "testcase": false }, { "class_method_signature": "Query.Query(Expression expression)", "constructor": true, "full_signature": "public Query(Expression expression)", "identifier": "Query", "modifiers": "public", "parameters": "(Expression expression)", "return": "", "signature": " Query(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }, { "class_method_signature": "Query.setExpression(Expression expression)", "constructor": false, "full_signature": "public void setExpression(Expression expression)", "identifier": "setExpression", "modifiers": "public", "parameters": "(Expression expression)", "return": "void", "signature": "void setExpression(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getSkip()", "constructor": false, "full_signature": "public int getSkip()", "identifier": "getSkip", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getSkip()", "testcase": false }, { "class_method_signature": "Query.skip(int skip)", "constructor": false, "full_signature": "public Query skip(int skip)", "identifier": "skip", "modifiers": "public", "parameters": "(int skip)", "return": "Query", "signature": "Query skip(int skip)", "testcase": false }, { "class_method_signature": "Query.getLimit()", "constructor": false, "full_signature": "public int getLimit()", "identifier": "getLimit", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getLimit()", "testcase": false }, { "class_method_signature": "Query.limit(int limit)", "constructor": false, "full_signature": "public Query limit(int limit)", "identifier": "limit", "modifiers": "public", "parameters": "(int limit)", "return": "Query", "signature": "Query limit(int limit)", "testcase": false }, { "class_method_signature": "Query.getSortingSpecification()", "constructor": false, "full_signature": "public SortingSpecification getSortingSpecification()", "identifier": "getSortingSpecification", "modifiers": "public", "parameters": "()", "return": "SortingSpecification", "signature": "SortingSpecification getSortingSpecification()", "testcase": false }, { "class_method_signature": "Query.sort(String property, SortOption option)", "constructor": false, "full_signature": "public Query sort(String property, SortOption option)", "identifier": "sort", "modifiers": "public", "parameters": "(String property, SortOption option)", "return": "Query", "signature": "Query sort(String property, SortOption option)", "testcase": false }, { "class_method_signature": "Query.sort(SortingSpecification sortingSpecification)", "constructor": false, "full_signature": "public Query sort(SortingSpecification sortingSpecification)", "identifier": "sort", "modifiers": "public", "parameters": "(SortingSpecification sortingSpecification)", "return": "Query", "signature": "Query sort(SortingSpecification sortingSpecification)", "testcase": false }, { "class_method_signature": "Query.page(int number, int size)", "constructor": false, "full_signature": "public Query page(int number, int size)", "identifier": "page", "modifiers": "public", "parameters": "(int number, int size)", "return": "Query", "signature": "Query page(int number, int size)", "testcase": false } ], "superclass": "" }
{ "body": "public Expression getExpression() {\n return expression;\n }", "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }
{ "created": "4/24/2018 8:58:25 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 130912988, "size": null, "stargazer_count": null, "stars": 81, "updates": "2020-01-26T20:52:55+00:00", "url": "https://github.com/RyanSusana/elepy" }
130912988_2
{ "fields": [ { "declarator": "objectMapper = new ObjectMapper()", "modifier": "", "original_string": "ObjectMapper objectMapper = new ObjectMapper();", "type": "ObjectMapper", "var_name": "objectMapper" } ], "file": "core/src/test/java/com/elepy/dao/QueryTest.java", "identifier": "QueryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void orSearch() {\n //Should handle multiple spaces properly\n final var searchQuery = parse(\"ryan or ryan\");\n\n assertThat(searchQuery.getExpression())\n .asInstanceOf(type(BooleanGroup.class))\n .satisfies(group -> {\n assertThat(group.getOperator()).isEqualTo(BooleanGroup.BooleanOperator.OR);\n assertThat(group.getExpressions())\n .hasSize(2)\n .allSatisfy(expression ->\n assertThat(expression)\n .asInstanceOf(type(SearchQuery.class))\n .extracting(SearchQuery::getTerm)\n .isEqualTo(\"ryan\")\n );\n\n });\n }", "class_method_signature": "QueryTest.orSearch()", "constructor": false, "full_signature": "@Test void orSearch()", "identifier": "orSearch", "invocations": [ "parse", "satisfies", "asInstanceOf", "assertThat", "getExpression", "type", "isEqualTo", "assertThat", "getOperator", "allSatisfy", "hasSize", "assertThat", "getExpressions", "isEqualTo", "extracting", "asInstanceOf", "assertThat", "type" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void orSearch()", "testcase": true }
{ "fields": [ { "declarator": "expression", "modifier": "private", "original_string": "private Expression expression;", "type": "Expression", "var_name": "expression" }, { "declarator": "skip = 0", "modifier": "private", "original_string": "private int skip = 0;", "type": "int", "var_name": "skip" }, { "declarator": "limit = Integer.MAX_VALUE", "modifier": "private", "original_string": "private int limit = Integer.MAX_VALUE;", "type": "int", "var_name": "limit" }, { "declarator": "sortingSpecifications = new SortingSpecification()", "modifier": "private", "original_string": "private SortingSpecification sortingSpecifications = new SortingSpecification();", "type": "SortingSpecification", "var_name": "sortingSpecifications" } ], "file": "core/src/main/java/com/elepy/dao/Query.java", "identifier": "Query", "interfaces": "", "methods": [ { "class_method_signature": "Query.Query()", "constructor": true, "full_signature": "public Query()", "identifier": "Query", "modifiers": "public", "parameters": "()", "return": "", "signature": " Query()", "testcase": false }, { "class_method_signature": "Query.purge()", "constructor": false, "full_signature": "public Query purge()", "identifier": "purge", "modifiers": "public", "parameters": "()", "return": "Query", "signature": "Query purge()", "testcase": false }, { "class_method_signature": "Query.Query(Expression expression)", "constructor": true, "full_signature": "public Query(Expression expression)", "identifier": "Query", "modifiers": "public", "parameters": "(Expression expression)", "return": "", "signature": " Query(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }, { "class_method_signature": "Query.setExpression(Expression expression)", "constructor": false, "full_signature": "public void setExpression(Expression expression)", "identifier": "setExpression", "modifiers": "public", "parameters": "(Expression expression)", "return": "void", "signature": "void setExpression(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getSkip()", "constructor": false, "full_signature": "public int getSkip()", "identifier": "getSkip", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getSkip()", "testcase": false }, { "class_method_signature": "Query.skip(int skip)", "constructor": false, "full_signature": "public Query skip(int skip)", "identifier": "skip", "modifiers": "public", "parameters": "(int skip)", "return": "Query", "signature": "Query skip(int skip)", "testcase": false }, { "class_method_signature": "Query.getLimit()", "constructor": false, "full_signature": "public int getLimit()", "identifier": "getLimit", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getLimit()", "testcase": false }, { "class_method_signature": "Query.limit(int limit)", "constructor": false, "full_signature": "public Query limit(int limit)", "identifier": "limit", "modifiers": "public", "parameters": "(int limit)", "return": "Query", "signature": "Query limit(int limit)", "testcase": false }, { "class_method_signature": "Query.getSortingSpecification()", "constructor": false, "full_signature": "public SortingSpecification getSortingSpecification()", "identifier": "getSortingSpecification", "modifiers": "public", "parameters": "()", "return": "SortingSpecification", "signature": "SortingSpecification getSortingSpecification()", "testcase": false }, { "class_method_signature": "Query.sort(String property, SortOption option)", "constructor": false, "full_signature": "public Query sort(String property, SortOption option)", "identifier": "sort", "modifiers": "public", "parameters": "(String property, SortOption option)", "return": "Query", "signature": "Query sort(String property, SortOption option)", "testcase": false }, { "class_method_signature": "Query.sort(SortingSpecification sortingSpecification)", "constructor": false, "full_signature": "public Query sort(SortingSpecification sortingSpecification)", "identifier": "sort", "modifiers": "public", "parameters": "(SortingSpecification sortingSpecification)", "return": "Query", "signature": "Query sort(SortingSpecification sortingSpecification)", "testcase": false }, { "class_method_signature": "Query.page(int number, int size)", "constructor": false, "full_signature": "public Query page(int number, int size)", "identifier": "page", "modifiers": "public", "parameters": "(int number, int size)", "return": "Query", "signature": "Query page(int number, int size)", "testcase": false } ], "superclass": "" }
{ "body": "public Expression getExpression() {\n return expression;\n }", "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }
{ "created": "4/24/2018 8:58:25 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 130912988, "size": null, "stargazer_count": null, "stars": 81, "updates": "2020-01-26T20:52:55+00:00", "url": "https://github.com/RyanSusana/elepy" }
130912988_3
{ "fields": [ { "declarator": "objectMapper = new ObjectMapper()", "modifier": "", "original_string": "ObjectMapper objectMapper = new ObjectMapper();", "type": "ObjectMapper", "var_name": "objectMapper" } ], "file": "core/src/test/java/com/elepy/dao/QueryTest.java", "identifier": "QueryTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void andSearch() {\n //Should handle multiple spaces properly\n final var searchQuery = parse(\"ryan AND ryan\");\n\n assertThat(searchQuery.getExpression())\n .asInstanceOf(type(BooleanGroup.class))\n .satisfies(group -> {\n assertThat(group.getOperator()).isEqualTo(BooleanGroup.BooleanOperator.AND);\n assertThat(group.getExpressions())\n .hasSize(2)\n .allSatisfy(expression ->\n assertThat(expression)\n .asInstanceOf(type(SearchQuery.class))\n .extracting(SearchQuery::getTerm)\n .isEqualTo(\"ryan\")\n );\n\n });\n }", "class_method_signature": "QueryTest.andSearch()", "constructor": false, "full_signature": "@Test void andSearch()", "identifier": "andSearch", "invocations": [ "parse", "satisfies", "asInstanceOf", "assertThat", "getExpression", "type", "isEqualTo", "assertThat", "getOperator", "allSatisfy", "hasSize", "assertThat", "getExpressions", "isEqualTo", "extracting", "asInstanceOf", "assertThat", "type" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void andSearch()", "testcase": true }
{ "fields": [ { "declarator": "expression", "modifier": "private", "original_string": "private Expression expression;", "type": "Expression", "var_name": "expression" }, { "declarator": "skip = 0", "modifier": "private", "original_string": "private int skip = 0;", "type": "int", "var_name": "skip" }, { "declarator": "limit = Integer.MAX_VALUE", "modifier": "private", "original_string": "private int limit = Integer.MAX_VALUE;", "type": "int", "var_name": "limit" }, { "declarator": "sortingSpecifications = new SortingSpecification()", "modifier": "private", "original_string": "private SortingSpecification sortingSpecifications = new SortingSpecification();", "type": "SortingSpecification", "var_name": "sortingSpecifications" } ], "file": "core/src/main/java/com/elepy/dao/Query.java", "identifier": "Query", "interfaces": "", "methods": [ { "class_method_signature": "Query.Query()", "constructor": true, "full_signature": "public Query()", "identifier": "Query", "modifiers": "public", "parameters": "()", "return": "", "signature": " Query()", "testcase": false }, { "class_method_signature": "Query.purge()", "constructor": false, "full_signature": "public Query purge()", "identifier": "purge", "modifiers": "public", "parameters": "()", "return": "Query", "signature": "Query purge()", "testcase": false }, { "class_method_signature": "Query.Query(Expression expression)", "constructor": true, "full_signature": "public Query(Expression expression)", "identifier": "Query", "modifiers": "public", "parameters": "(Expression expression)", "return": "", "signature": " Query(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }, { "class_method_signature": "Query.setExpression(Expression expression)", "constructor": false, "full_signature": "public void setExpression(Expression expression)", "identifier": "setExpression", "modifiers": "public", "parameters": "(Expression expression)", "return": "void", "signature": "void setExpression(Expression expression)", "testcase": false }, { "class_method_signature": "Query.getSkip()", "constructor": false, "full_signature": "public int getSkip()", "identifier": "getSkip", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getSkip()", "testcase": false }, { "class_method_signature": "Query.skip(int skip)", "constructor": false, "full_signature": "public Query skip(int skip)", "identifier": "skip", "modifiers": "public", "parameters": "(int skip)", "return": "Query", "signature": "Query skip(int skip)", "testcase": false }, { "class_method_signature": "Query.getLimit()", "constructor": false, "full_signature": "public int getLimit()", "identifier": "getLimit", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getLimit()", "testcase": false }, { "class_method_signature": "Query.limit(int limit)", "constructor": false, "full_signature": "public Query limit(int limit)", "identifier": "limit", "modifiers": "public", "parameters": "(int limit)", "return": "Query", "signature": "Query limit(int limit)", "testcase": false }, { "class_method_signature": "Query.getSortingSpecification()", "constructor": false, "full_signature": "public SortingSpecification getSortingSpecification()", "identifier": "getSortingSpecification", "modifiers": "public", "parameters": "()", "return": "SortingSpecification", "signature": "SortingSpecification getSortingSpecification()", "testcase": false }, { "class_method_signature": "Query.sort(String property, SortOption option)", "constructor": false, "full_signature": "public Query sort(String property, SortOption option)", "identifier": "sort", "modifiers": "public", "parameters": "(String property, SortOption option)", "return": "Query", "signature": "Query sort(String property, SortOption option)", "testcase": false }, { "class_method_signature": "Query.sort(SortingSpecification sortingSpecification)", "constructor": false, "full_signature": "public Query sort(SortingSpecification sortingSpecification)", "identifier": "sort", "modifiers": "public", "parameters": "(SortingSpecification sortingSpecification)", "return": "Query", "signature": "Query sort(SortingSpecification sortingSpecification)", "testcase": false }, { "class_method_signature": "Query.page(int number, int size)", "constructor": false, "full_signature": "public Query page(int number, int size)", "identifier": "page", "modifiers": "public", "parameters": "(int number, int size)", "return": "Query", "signature": "Query page(int number, int size)", "testcase": false } ], "superclass": "" }
{ "body": "public Expression getExpression() {\n return expression;\n }", "class_method_signature": "Query.getExpression()", "constructor": false, "full_signature": "public Expression getExpression()", "identifier": "getExpression", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Expression", "signature": "Expression getExpression()", "testcase": false }
{ "created": "4/24/2018 8:58:25 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 130912988, "size": null, "stargazer_count": null, "stars": 81, "updates": "2020-01-26T20:52:55+00:00", "url": "https://github.com/RyanSusana/elepy" }
130912988_4
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private Injector sut;", "type": "Injector", "var_name": "sut" }, { "declarator": "defaultElepyContext", "modifier": "private", "original_string": "private DefaultElepyContext defaultElepyContext;", "type": "DefaultElepyContext", "var_name": "defaultElepyContext" } ], "file": "core/src/test/java/com/elepy/di/InjectorTest.java", "identifier": "InjectorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testCrudInjection() {\n\n defaultElepyContext.strictMode(true);\n defaultElepyContext.registerDependencySupplier(Crud.class, \"/resources\", MockCrudResource::new);\n final var mockCrudService = sut.initializeAndInject(MockCrudService.class);\n\n assertThat(mockCrudService.getCrudGeneric())\n .isNotNull();\n\n assertThat(mockCrudService.getCrudResource())\n .isNotNull();\n }", "class_method_signature": "InjectorTest.testCrudInjection()", "constructor": false, "full_signature": "@Test void testCrudInjection()", "identifier": "testCrudInjection", "invocations": [ "strictMode", "registerDependencySupplier", "initializeAndInject", "isNotNull", "assertThat", "getCrudGeneric", "isNotNull", "assertThat", "getCrudResource" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void testCrudInjection()", "testcase": true }
{ "fields": [ { "declarator": "elepyContext", "modifier": "private final", "original_string": "private final ElepyContext elepyContext;", "type": "ElepyContext", "var_name": "elepyContext" }, { "declarator": "logger = LoggerFactory.getLogger(Injector.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(Injector.class);", "type": "Logger", "var_name": "logger" } ], "file": "core/src/main/java/com/elepy/di/Injector.java", "identifier": "Injector", "interfaces": "", "methods": [ { "class_method_signature": "Injector.Injector(ElepyContext elepyContext)", "constructor": true, "full_signature": " Injector(ElepyContext elepyContext)", "identifier": "Injector", "modifiers": "", "parameters": "(ElepyContext elepyContext)", "return": "", "signature": " Injector(ElepyContext elepyContext)", "testcase": false }, { "class_method_signature": "Injector.initializeAndInject(Class<? extends T> cls)", "constructor": false, "full_signature": " T initializeAndInject(Class<? extends T> cls)", "identifier": "initializeAndInject", "modifiers": "", "parameters": "(Class<? extends T> cls)", "return": "T", "signature": "T initializeAndInject(Class<? extends T> cls)", "testcase": false }, { "class_method_signature": "Injector.injectFields(Object object)", "constructor": false, "full_signature": " void injectFields(Object object)", "identifier": "injectFields", "modifiers": "", "parameters": "(Object object)", "return": "void", "signature": "void injectFields(Object object)", "testcase": false }, { "class_method_signature": "Injector.getDependencyForAnnotatedElement(AnnotatedElement annotatedElement)", "constructor": false, "full_signature": "private Object getDependencyForAnnotatedElement(AnnotatedElement annotatedElement)", "identifier": "getDependencyForAnnotatedElement", "modifiers": "private", "parameters": "(AnnotatedElement annotatedElement)", "return": "Object", "signature": "Object getDependencyForAnnotatedElement(AnnotatedElement annotatedElement)", "testcase": false }, { "class_method_signature": "Injector.getProp(Class<?> returnType, Property annotation)", "constructor": false, "full_signature": "private Object getProp(Class<?> returnType, Property annotation)", "identifier": "getProp", "modifiers": "private", "parameters": "(Class<?> returnType, Property annotation)", "return": "Object", "signature": "Object getProp(Class<?> returnType, Property annotation)", "testcase": false }, { "class_method_signature": "Injector.initializeObjectViaConstructor(Class<? extends T> cls)", "constructor": false, "full_signature": "private T initializeObjectViaConstructor(Class<? extends T> cls)", "identifier": "initializeObjectViaConstructor", "modifiers": "private", "parameters": "(Class<? extends T> cls)", "return": "T", "signature": "T initializeObjectViaConstructor(Class<? extends T> cls)", "testcase": false } ], "superclass": "" }
{ "body": "<T> T initializeAndInject(Class<? extends T> cls) {\n\n try {\n T object = initializeObjectViaConstructor(cls);\n injectFields(object);\n return object;\n } catch (IllegalAccessException | InvocationTargetException | InstantiationException e) {\n throw new ElepyConfigException(\"Failed to instantiate an Elepy Object: \" + cls\n .getName(), e);\n }\n }", "class_method_signature": "Injector.initializeAndInject(Class<? extends T> cls)", "constructor": false, "full_signature": " T initializeAndInject(Class<? extends T> cls)", "identifier": "initializeAndInject", "invocations": [ "initializeObjectViaConstructor", "injectFields", "getName" ], "modifiers": "", "parameters": "(Class<? extends T> cls)", "return": "T", "signature": "T initializeAndInject(Class<? extends T> cls)", "testcase": false }
{ "created": "4/24/2018 8:58:25 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 130912988, "size": null, "stargazer_count": null, "stars": 81, "updates": "2020-01-26T20:52:55+00:00", "url": "https://github.com/RyanSusana/elepy" }
130912988_5
{ "fields": [ { "declarator": "sut", "modifier": "private", "original_string": "private Injector sut;", "type": "Injector", "var_name": "sut" }, { "declarator": "defaultElepyContext", "modifier": "private", "original_string": "private DefaultElepyContext defaultElepyContext;", "type": "DefaultElepyContext", "var_name": "defaultElepyContext" } ], "file": "core/src/test/java/com/elepy/di/InjectorTest.java", "identifier": "InjectorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void testPropertyInjection() {\n final var propertiesConfiguration = new PropertiesConfiguration();\n propertiesConfiguration.addProperty(\"smtp.server\", \"ryan\");\n propertiesConfiguration.addProperty(\"test\", true);\n\n defaultElepyContext.registerDependency(Configuration.class, propertiesConfiguration);\n\n final var props = sut.initializeAndInject(Props.class);\n\n assertThat(props.getSmtpServer())\n .isEqualTo(\"ryan\");\n\n assertThat(props.isTestBoolean())\n .isTrue();\n assertThat(props.getWithDefault())\n .isEqualTo(\"isAvailable\");\n }", "class_method_signature": "InjectorTest.testPropertyInjection()", "constructor": false, "full_signature": "@Test void testPropertyInjection()", "identifier": "testPropertyInjection", "invocations": [ "addProperty", "addProperty", "registerDependency", "initializeAndInject", "isEqualTo", "assertThat", "getSmtpServer", "isTrue", "assertThat", "isTestBoolean", "isEqualTo", "assertThat", "getWithDefault" ], "modifiers": "@Test", "parameters": "()", "return": "void", "signature": "void testPropertyInjection()", "testcase": true }
{ "fields": [ { "declarator": "elepyContext", "modifier": "private final", "original_string": "private final ElepyContext elepyContext;", "type": "ElepyContext", "var_name": "elepyContext" }, { "declarator": "logger = LoggerFactory.getLogger(Injector.class)", "modifier": "private static final", "original_string": "private static final Logger logger = LoggerFactory.getLogger(Injector.class);", "type": "Logger", "var_name": "logger" } ], "file": "core/src/main/java/com/elepy/di/Injector.java", "identifier": "Injector", "interfaces": "", "methods": [ { "class_method_signature": "Injector.Injector(ElepyContext elepyContext)", "constructor": true, "full_signature": " Injector(ElepyContext elepyContext)", "identifier": "Injector", "modifiers": "", "parameters": "(ElepyContext elepyContext)", "return": "", "signature": " Injector(ElepyContext elepyContext)", "testcase": false }, { "class_method_signature": "Injector.initializeAndInject(Class<? extends T> cls)", "constructor": false, "full_signature": " T initializeAndInject(Class<? extends T> cls)", "identifier": "initializeAndInject", "modifiers": "", "parameters": "(Class<? extends T> cls)", "return": "T", "signature": "T initializeAndInject(Class<? extends T> cls)", "testcase": false }, { "class_method_signature": "Injector.injectFields(Object object)", "constructor": false, "full_signature": " void injectFields(Object object)", "identifier": "injectFields", "modifiers": "", "parameters": "(Object object)", "return": "void", "signature": "void injectFields(Object object)", "testcase": false }, { "class_method_signature": "Injector.getDependencyForAnnotatedElement(AnnotatedElement annotatedElement)", "constructor": false, "full_signature": "private Object getDependencyForAnnotatedElement(AnnotatedElement annotatedElement)", "identifier": "getDependencyForAnnotatedElement", "modifiers": "private", "parameters": "(AnnotatedElement annotatedElement)", "return": "Object", "signature": "Object getDependencyForAnnotatedElement(AnnotatedElement annotatedElement)", "testcase": false }, { "class_method_signature": "Injector.getProp(Class<?> returnType, Property annotation)", "constructor": false, "full_signature": "private Object getProp(Class<?> returnType, Property annotation)", "identifier": "getProp", "modifiers": "private", "parameters": "(Class<?> returnType, Property annotation)", "return": "Object", "signature": "Object getProp(Class<?> returnType, Property annotation)", "testcase": false }, { "class_method_signature": "Injector.initializeObjectViaConstructor(Class<? extends T> cls)", "constructor": false, "full_signature": "private T initializeObjectViaConstructor(Class<? extends T> cls)", "identifier": "initializeObjectViaConstructor", "modifiers": "private", "parameters": "(Class<? extends T> cls)", "return": "T", "signature": "T initializeObjectViaConstructor(Class<? extends T> cls)", "testcase": false } ], "superclass": "" }
{ "body": "<T> T initializeAndInject(Class<? extends T> cls) {\n\n try {\n T object = initializeObjectViaConstructor(cls);\n injectFields(object);\n return object;\n } catch (IllegalAccessException | InvocationTargetException | InstantiationException e) {\n throw new ElepyConfigException(\"Failed to instantiate an Elepy Object: \" + cls\n .getName(), e);\n }\n }", "class_method_signature": "Injector.initializeAndInject(Class<? extends T> cls)", "constructor": false, "full_signature": " T initializeAndInject(Class<? extends T> cls)", "identifier": "initializeAndInject", "invocations": [ "initializeObjectViaConstructor", "injectFields", "getName" ], "modifiers": "", "parameters": "(Class<? extends T> cls)", "return": "T", "signature": "T initializeAndInject(Class<? extends T> cls)", "testcase": false }
{ "created": "4/24/2018 8:58:25 PM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 130912988, "size": null, "stargazer_count": null, "stars": 81, "updates": "2020-01-26T20:52:55+00:00", "url": "https://github.com/RyanSusana/elepy" }
105571183_25
{ "fields": [ { "declarator": "NEWLINE = System.getProperty(\"line.separator\")", "modifier": "public static final", "original_string": "public static final String NEWLINE = System.getProperty(\"line.separator\");", "type": "String", "var_name": "NEWLINE" }, { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/FSMTest.java", "identifier": "FSMTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testKleene() {\n ERE aStar = Kleene.get(a);\n\n String fsm = \"s0 [\" + NEWLINE + \" a -> s0\" + NEWLINE + \"]\" + NEWLINE +\n \"alias match = s0 \" + NEWLINE;\n assertEquals(fsm, printFSM(aStar, a));\n }", "class_method_signature": "FSMTest.testKleene()", "constructor": false, "full_signature": "@Test public void testKleene()", "identifier": "testKleene", "invocations": [ "get", "assertEquals", "printFSM" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testKleene()", "testcase": true }
{ "fields": [ { "declarator": "contents", "modifier": "public", "original_string": "public LinkedHashMap<ERE, LinkedHashMap<Symbol, ERE>> contents;", "type": "LinkedHashMap<ERE, LinkedHashMap<Symbol, ERE>>", "var_name": "contents" }, { "declarator": "match", "modifier": "public", "original_string": "public LinkedHashSet<ERE> match;", "type": "LinkedHashSet<ERE>", "var_name": "match" }, { "declarator": "count = 0", "modifier": "private", "original_string": "private int count = 0;", "type": "int", "var_name": "count" }, { "declarator": "number", "modifier": "private", "original_string": "private LinkedHashMap<ERE, String> number;", "type": "LinkedHashMap<ERE, String>", "var_name": "number" }, { "declarator": "start", "modifier": "private", "original_string": "private ERE start;", "type": "ERE", "var_name": "start" }, { "declarator": "events", "modifier": "private", "original_string": "private Symbol[] events;", "type": "Symbol[]", "var_name": "events" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/FSM.java", "identifier": "FSM", "interfaces": "", "methods": [ { "class_method_signature": "FSM.get(ERE input, Symbol[] events)", "constructor": false, "full_signature": "static public FSM get(ERE input, Symbol[] events)", "identifier": "get", "modifiers": "static public", "parameters": "(ERE input, Symbol[] events)", "return": "FSM", "signature": "FSM get(ERE input, Symbol[] events)", "testcase": false }, { "class_method_signature": "FSM.FSM(ERE input, Symbol[] events)", "constructor": true, "full_signature": "private FSM(ERE input, Symbol[] events)", "identifier": "FSM", "modifiers": "private", "parameters": "(ERE input, Symbol[] events)", "return": "", "signature": " FSM(ERE input, Symbol[] events)", "testcase": false }, { "class_method_signature": "FSM.generate(ERE state)", "constructor": false, "full_signature": "private void generate(ERE state)", "identifier": "generate", "modifiers": "private", "parameters": "(ERE state)", "return": "void", "signature": "void generate(ERE state)", "testcase": false }, { "class_method_signature": "FSM.print(PrintStream p)", "constructor": false, "full_signature": "public void print(PrintStream p)", "identifier": "print", "modifiers": "public", "parameters": "(PrintStream p)", "return": "void", "signature": "void print(PrintStream p)", "testcase": false }, { "class_method_signature": "FSM.printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "constructor": false, "full_signature": "private void printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "identifier": "printTransition", "modifiers": "private", "parameters": "(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "return": "void", "signature": "void printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "testcase": false } ], "superclass": "" }
{ "body": "static public FSM get(ERE input, Symbol[] events) {\n return new FSM(input, events);\n }", "class_method_signature": "FSM.get(ERE input, Symbol[] events)", "constructor": false, "full_signature": "static public FSM get(ERE input, Symbol[] events)", "identifier": "get", "invocations": [], "modifiers": "static public", "parameters": "(ERE input, Symbol[] events)", "return": "FSM", "signature": "FSM get(ERE input, Symbol[] events)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_72
{ "fields": [ { "declarator": "a = Symbol.get(\"a\")", "modifier": "private static", "original_string": "private static Symbol a = Symbol.get(\"a\");", "type": "Symbol", "var_name": "a" }, { "declarator": "b = Symbol.get(\"b\")", "modifier": "private static", "original_string": "private static Symbol b = Symbol.get(\"b\");", "type": "Symbol", "var_name": "b" }, { "declarator": "c = Symbol.get(\"c\")", "modifier": "private static", "original_string": "private static Symbol c = Symbol.get(\"c\");", "type": "Symbol", "var_name": "c" }, { "declarator": "d = Symbol.get(\"d\")", "modifier": "private static", "original_string": "private static Symbol d = Symbol.get(\"d\");", "type": "Symbol", "var_name": "d" }, { "declarator": "seqA = new Sequence(new ArrayList<Symbol>(Arrays.asList(a)))", "modifier": "private static", "original_string": "private static Sequence seqA = new Sequence(new ArrayList<Symbol>(Arrays.asList(a)));", "type": "Sequence", "var_name": "seqA" }, { "declarator": "seqAB = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b)))", "modifier": "private static", "original_string": "private static Sequence seqAB = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b)));", "type": "Sequence", "var_name": "seqAB" }, { "declarator": "seqABC = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b, c)))", "modifier": "private static", "original_string": "private static Sequence seqABC = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b, c)));", "type": "Sequence", "var_name": "seqABC" }, { "declarator": "seqCD = new Sequence(new ArrayList<Symbol>(Arrays.asList(c, d)))", "modifier": "private static", "original_string": "private static Sequence seqCD = new Sequence(new ArrayList<Symbol>(Arrays.asList(c, d)));", "type": "Sequence", "var_name": "seqCD" }, { "declarator": "srs", "modifier": "private static", "original_string": "private static SRS srs;", "type": "SRS", "var_name": "srs" }, { "declarator": "pma", "modifier": "private static", "original_string": "private static PatternMatchAutomaton pma;", "type": "PatternMatchAutomaton", "var_name": "pma" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/PatternMatchAutomatonTest.java", "identifier": "PatternMatchAutomatonTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testString() {\n String pmaStr = pma.toString();\n \n /**\n * These get reordered and the order isn't important, so i just test for the lines separately.\n */\n \n String zeroAtZero = pmaStr.substring(pmaStr.indexOf(\"\\n<0 @ 0\"), pmaStr.indexOf(\"\\n<1 @ 1\"));\n assertTrue(zeroAtZero.contains(\"d -> [0] <0 @ 0>\"));\n assertTrue(zeroAtZero.contains(\"c -> [0] <0 @ 0>\"));\n assertTrue(zeroAtZero.contains(\"b -> [0] <0 @ 0>\"));\n assertTrue(zeroAtZero.contains(\"a -> [0] <1 @ 1>\"));\n \n String oneAtOne = pmaStr.substring(pmaStr.indexOf(\"\\n<1 @ 1\"), pmaStr.indexOf(\"\\n<2 @ 2\"));\n assertTrue(oneAtOne.contains(\"d -> [1] <0 @ 0>\"));\n assertTrue(oneAtOne.contains(\"c -> [1] <0 @ 0>\"));\n assertTrue(oneAtOne.contains(\"a -> [1] <0 @ 0>\"));\n assertTrue(oneAtOne.contains(\"b -> [0] <2 @ 2 matches a b -> c d >\"));\n \n String twoAtTwo = pmaStr.substring(pmaStr.indexOf(\"\\n<2 @ 2\"));\n assertTrue(twoAtTwo.contains(\"d -> [2] <0 @ 0>\"));\n assertTrue(twoAtTwo.contains(\"c -> [2] <0 @ 0>\"));\n assertTrue(twoAtTwo.contains(\"b -> [2] <0 @ 0>\"));\n assertTrue(twoAtTwo.contains(\"a -> [2] <0 @ 0>\"));\n }", "class_method_signature": "PatternMatchAutomatonTest.testString()", "constructor": false, "full_signature": "@Test public void testString()", "identifier": "testString", "invocations": [ "toString", "substring", "indexOf", "indexOf", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains", "substring", "indexOf", "indexOf", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains", "substring", "indexOf", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testString()", "testcase": true }
{ "fields": [ { "declarator": "s0 = new State(0)", "modifier": "private", "original_string": "private State s0 = new State(0);", "type": "State", "var_name": "s0" }, { "declarator": "depthMap = new ArrayList<Set<State>>()", "modifier": "private", "original_string": "private ArrayList<Set<State>> depthMap = new ArrayList<Set<State>>();", "type": "ArrayList<Set<State>>", "var_name": "depthMap" }, { "declarator": "fail", "modifier": "private", "original_string": "private HashMap<State, State> fail;", "type": "HashMap<State, State>", "var_name": "fail" }, { "declarator": "needsBegin = false", "modifier": "private", "original_string": "private boolean needsBegin = false;", "type": "boolean", "var_name": "needsBegin" }, { "declarator": "needsEnd = false", "modifier": "private", "original_string": "private boolean needsEnd = false;", "type": "boolean", "var_name": "needsEnd" } ], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/PatternMatchAutomaton.java", "identifier": "PatternMatchAutomaton", "interfaces": "", "methods": [ { "class_method_signature": "PatternMatchAutomaton.PatternMatchAutomaton(SRS srs)", "constructor": true, "full_signature": "public PatternMatchAutomaton(SRS srs)", "identifier": "PatternMatchAutomaton", "modifiers": "public", "parameters": "(SRS srs)", "return": "", "signature": " PatternMatchAutomaton(SRS srs)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.PatternMatchAutomaton(SRS srs, Symbol[] extraTerminals)", "constructor": true, "full_signature": "public PatternMatchAutomaton(SRS srs, Symbol[] extraTerminals)", "identifier": "PatternMatchAutomaton", "modifiers": "public", "parameters": "(SRS srs, Symbol[] extraTerminals)", "return": "", "signature": " PatternMatchAutomaton(SRS srs, Symbol[] extraTerminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.PatternMatchAutomaton(SRS srs, Set<Symbol> extraTerminals)", "constructor": true, "full_signature": "public PatternMatchAutomaton(SRS srs, Set<Symbol> extraTerminals)", "identifier": "PatternMatchAutomaton", "modifiers": "public", "parameters": "(SRS srs, Set<Symbol> extraTerminals)", "return": "", "signature": " PatternMatchAutomaton(SRS srs, Set<Symbol> extraTerminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.init(SRS srs)", "constructor": false, "full_signature": "private void init(SRS srs)", "identifier": "init", "modifiers": "private", "parameters": "(SRS srs)", "return": "void", "signature": "void init(SRS srs)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.mkGotoMachine(SRS srs, Set<Symbol> terminals)", "constructor": false, "full_signature": "private void mkGotoMachine(SRS srs, Set<Symbol> terminals)", "identifier": "mkGotoMachine", "modifiers": "private", "parameters": "(SRS srs, Set<Symbol> terminals)", "return": "void", "signature": "void mkGotoMachine(SRS srs, Set<Symbol> terminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.addFailureTransitions(Set<Symbol> terminals)", "constructor": false, "full_signature": "private void addFailureTransitions(Set<Symbol> terminals)", "identifier": "addFailureTransitions", "modifiers": "private", "parameters": "(Set<Symbol> terminals)", "return": "void", "signature": "void addFailureTransitions(Set<Symbol> terminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.findState(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "constructor": false, "full_signature": "private State findState(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "identifier": "findState", "modifiers": "private", "parameters": "(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "return": "State", "signature": "State findState(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.rewrite(SinglyLinkedList<Symbol> l)", "constructor": false, "full_signature": "public void rewrite(SinglyLinkedList<Symbol> l)", "identifier": "rewrite", "modifiers": "public", "parameters": "(SinglyLinkedList<Symbol> l)", "return": "void", "signature": "void rewrite(SinglyLinkedList<Symbol> l)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.rewrite(SpliceList<Symbol> l)", "constructor": false, "full_signature": "public void rewrite(SpliceList<Symbol> l)", "identifier": "rewrite", "modifiers": "public", "parameters": "(SpliceList<Symbol> l)", "return": "void", "signature": "void rewrite(SpliceList<Symbol> l)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.toDotString()", "constructor": false, "full_signature": "public String toDotString()", "identifier": "toDotString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toDotString()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.mkSymToNum()", "constructor": false, "full_signature": "public Map<Symbol, Integer> mkSymToNum()", "identifier": "mkSymToNum", "modifiers": "public", "parameters": "()", "return": "Map<Symbol, Integer>", "signature": "Map<Symbol, Integer> mkSymToNum()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.toImplString()", "constructor": false, "full_signature": "public String toImplString()", "identifier": "toImplString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toImplString()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.transitionToDotString(State state, Map<Symbol, ActionState> transition)", "constructor": false, "full_signature": "public StringBuilder transitionToDotString(State state, Map<Symbol, ActionState> transition)", "identifier": "transitionToDotString", "modifiers": "public", "parameters": "(State state, Map<Symbol, ActionState> transition)", "return": "StringBuilder", "signature": "StringBuilder transitionToDotString(State state, Map<Symbol, ActionState> transition)", "testcase": false } ], "superclass": "extends LinkedHashMap<State, HashMap<Symbol, ActionState>>" }
{ "body": "@Override public String toString() {\n StringBuilder sb = new StringBuilder(\"\\n\");\n sb.append(needsBegin);\n sb.append(\"\\n\");\n sb.append(needsEnd);\n sb.append(\"\\n\");\n for(State state : keySet()) {\n sb.append(state);\n sb.append(\"\\n[\");\n HashMap<Symbol, ActionState> transition = get(state);\n for(Symbol symbol : transition.keySet()) {\n sb.append(\" \");\n sb.append(symbol);\n sb.append(\" -> \");\n sb.append(transition.get(symbol));\n sb.append(\"\\n\");\n }\n sb.append(\"]\\n\");\n }\n return sb.toString();\n }", "class_method_signature": "PatternMatchAutomaton.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "append", "append", "append", "append", "keySet", "append", "append", "get", "keySet", "append", "append", "append", "append", "get", "append", "append", "toString" ], "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_64
{ "fields": [ { "declarator": "l", "modifier": "private", "original_string": "private SinglyLinkedList<String> l;", "type": "SinglyLinkedList<String>", "var_name": "l" }, { "declarator": "arr", "modifier": "private", "original_string": "private ArrayList<String> arr;", "type": "ArrayList<String>", "var_name": "arr" }, { "declarator": "replacement", "modifier": "private", "original_string": "private ArrayList<String> replacement;", "type": "ArrayList<String>", "var_name": "replacement" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/SinglyLinkedListTest.java", "identifier": "SinglyLinkedListTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInit() {\n assertEquals(\"[1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]\", l.toString());\n int i = 1;\n for(String s : l) {\n assertEquals(Integer.toString(i), s);\n i++;\n }\n }", "class_method_signature": "SinglyLinkedListTest.testInit()", "constructor": false, "full_signature": "@Test public void testInit()", "identifier": "testInit", "invocations": [ "assertEquals", "toString", "assertEquals", "toString" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testInit()", "testcase": true }
{ "fields": [ { "declarator": "head", "modifier": "protected", "original_string": "protected Node head;", "type": "Node", "var_name": "head" }, { "declarator": "tail", "modifier": "protected", "original_string": "protected Node tail;", "type": "Node", "var_name": "tail" }, { "declarator": "size", "modifier": "protected", "original_string": "protected int size;", "type": "int", "var_name": "size" } ], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/SinglyLinkedList.java", "identifier": "SinglyLinkedList", "interfaces": "implements Iterable<E>", "methods": [ { "class_method_signature": "SinglyLinkedList.SinglyLinkedList()", "constructor": true, "full_signature": "public SinglyLinkedList()", "identifier": "SinglyLinkedList", "modifiers": "public", "parameters": "()", "return": "", "signature": " SinglyLinkedList()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.SinglyLinkedList(Iterable<E> c)", "constructor": true, "full_signature": "public SinglyLinkedList(Iterable<E> c)", "identifier": "SinglyLinkedList", "modifiers": "public", "parameters": "(Iterable<E> c)", "return": "", "signature": " SinglyLinkedList(Iterable<E> c)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.add(E e)", "constructor": false, "full_signature": "public boolean add(E e)", "identifier": "add", "modifiers": "public", "parameters": "(E e)", "return": "boolean", "signature": "boolean add(E e)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.addAll(Iterable<E> c)", "constructor": false, "full_signature": "public boolean addAll(Iterable<E> c)", "identifier": "addAll", "modifiers": "public", "parameters": "(Iterable<E> c)", "return": "boolean", "signature": "boolean addAll(Iterable<E> c)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.contains(Object o)", "constructor": false, "full_signature": "public boolean contains(Object o)", "identifier": "contains", "modifiers": "public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean contains(Object o)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.isEmpty()", "constructor": false, "full_signature": "public boolean isEmpty()", "identifier": "isEmpty", "modifiers": "public", "parameters": "()", "return": "boolean", "signature": "boolean isEmpty()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.remove(Object o)", "constructor": false, "full_signature": "public boolean remove(Object o)", "identifier": "remove", "modifiers": "public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean remove(Object o)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.size()", "constructor": false, "full_signature": "public int size()", "identifier": "size", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int size()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.replace(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "constructor": false, "full_signature": "public void replace(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "identifier": "replace", "modifiers": "public", "parameters": "(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "return": "void", "signature": "void replace(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.nonDestructiveReplace(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "constructor": false, "full_signature": "public void nonDestructiveReplace(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "identifier": "nonDestructiveReplace", "modifiers": "public", "parameters": "(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "return": "void", "signature": "void nonDestructiveReplace(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.printRange(Iterator<E> I, Iterator<E> J)", "constructor": false, "full_signature": "public void printRange(Iterator<E> I, Iterator<E> J)", "identifier": "printRange", "modifiers": "public", "parameters": "(Iterator<E> I, Iterator<E> J)", "return": "void", "signature": "void printRange(Iterator<E> I, Iterator<E> J)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.iterator()", "constructor": false, "full_signature": "@Override public Iterator<E> iterator()", "identifier": "iterator", "modifiers": "@Override public", "parameters": "()", "return": "Iterator<E>", "signature": "Iterator<E> iterator()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.iterator(Iterator<E> I)", "constructor": false, "full_signature": "public Iterator<E> iterator(Iterator<E> I)", "identifier": "iterator", "modifiers": "public", "parameters": "(Iterator<E> I)", "return": "Iterator<E>", "signature": "Iterator<E> iterator(Iterator<E> I)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.getHead()", "constructor": false, "full_signature": "public Node getHead()", "identifier": "getHead", "modifiers": "public", "parameters": "()", "return": "Node", "signature": "Node getHead()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.getTail()", "constructor": false, "full_signature": "public Node getTail()", "identifier": "getTail", "modifiers": "public", "parameters": "()", "return": "Node", "signature": "Node getTail()", "testcase": false } ], "superclass": "" }
{ "body": "@Override \n public String toString() {\n if(head == null) return \"#epsilon\";\n StringBuilder sb = new StringBuilder(\"[\");\n Node node = head;\n while(node != null) {\n sb.append(node.element.toString());\n sb.append(\", \");\n node = node.next;\n }\n //remove the last \", \"\n String ret = sb.substring(0, sb.length() - 2);\n return ret + \"]\";\n }", "class_method_signature": "SinglyLinkedList.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "append", "toString", "append", "substring", "length" ], "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_33
{ "fields": [ { "declarator": "one", "modifier": "private", "original_string": "private Symbol one;", "type": "Symbol", "var_name": "one" }, { "declarator": "two", "modifier": "private", "original_string": "private Symbol two;", "type": "Symbol", "var_name": "two" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/SymbolTest.java", "identifier": "SymbolTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEREType() {\n EREType type = one.getEREType();\n \n assertEquals(EREType.S, type);\n }", "class_method_signature": "SymbolTest.testEREType()", "constructor": false, "full_signature": "@Test public void testEREType()", "identifier": "testEREType", "invocations": [ "getEREType", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testEREType()", "testcase": true }
{ "fields": [ { "declarator": "stringToRef = new HashMap<String, Symbol>()", "modifier": "private static final", "original_string": "private static final HashMap<String, Symbol> stringToRef = new HashMap<String, Symbol>();", "type": "HashMap<String, Symbol>", "var_name": "stringToRef" }, { "declarator": "refToString = new HashMap<Symbol, String>()", "modifier": "private static final", "original_string": "private static final HashMap<Symbol, String> refToString = new HashMap<Symbol, String>();", "type": "HashMap<Symbol, String>", "var_name": "refToString" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Symbol.java", "identifier": "Symbol", "interfaces": "", "methods": [ { "class_method_signature": "Symbol.Symbol()", "constructor": true, "full_signature": "private Symbol()", "identifier": "Symbol", "modifiers": "private", "parameters": "()", "return": "", "signature": " Symbol()", "testcase": false }, { "class_method_signature": "Symbol.get(String name)", "constructor": false, "full_signature": "static public Symbol get(String name)", "identifier": "get", "modifiers": "static public", "parameters": "(String name)", "return": "Symbol", "signature": "Symbol get(String name)", "testcase": false }, { "class_method_signature": "Symbol.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Symbol.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Symbol.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Symbol.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Symbol.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Symbol.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Symbol.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public EREType getEREType() { \n return EREType.S;\n }", "class_method_signature": "Symbol.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_2
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Atom c;", "type": "Atom", "var_name": "c" }, { "declarator": "a_and_b", "modifier": "private", "original_string": "private And a_and_b;", "type": "And", "var_name": "a_and_b" }, { "declarator": "a_and_c", "modifier": "private", "original_string": "private And a_and_c;", "type": "And", "var_name": "a_and_c" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/AndTest.java", "identifier": "AndTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testReduce() {\n {\n And duplicate = makeAnd(a, b, c, a, b, c);\n assertEquals(makeAnd(a, b, c), duplicate.reduce());\n }\n {\n And combined = makeAnd(a_and_b,a_and_c);\n assertEquals(makeAnd(a, b, c), combined.reduce());\n }\n {\n And withTrue = makeAnd(a, b, True.get());\n assertEquals(a_and_b, withTrue.reduce());\n }\n {\n And withFalse = makeAnd(a, b, False.get());\n assertEquals(False.get(), withFalse.reduce());\n }\n {\n And solitaryWithTrue = makeAnd(a, True.get());\n assertEquals(a, solitaryWithTrue.reduce());\n }\n }", "class_method_signature": "AndTest.testReduce()", "constructor": false, "full_signature": "@Test public void testReduce()", "identifier": "testReduce", "invocations": [ "makeAnd", "assertEquals", "makeAnd", "reduce", "makeAnd", "assertEquals", "makeAnd", "reduce", "makeAnd", "get", "assertEquals", "reduce", "makeAnd", "get", "assertEquals", "get", "reduce", "makeAnd", "get", "assertEquals", "reduce" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testReduce()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/And.java", "identifier": "And", "interfaces": "", "methods": [ { "class_method_signature": "And.And(ArrayList<LTLFormula> children)", "constructor": true, "full_signature": "public And(ArrayList<LTLFormula> children)", "identifier": "And", "modifiers": "public", "parameters": "(ArrayList<LTLFormula> children)", "return": "", "signature": " And(ArrayList<LTLFormula> children)", "testcase": false }, { "class_method_signature": "And.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "And.flatten()", "constructor": false, "full_signature": "private void flatten()", "identifier": "flatten", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void flatten()", "testcase": false }, { "class_method_signature": "And.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }, { "class_method_signature": "And.getNegation(int i, boolean b)", "constructor": false, "full_signature": "private LTLFormula getNegation(int i, boolean b)", "identifier": "getNegation", "modifiers": "private", "parameters": "(int i, boolean b)", "return": "LTLFormula", "signature": "LTLFormula getNegation(int i, boolean b)", "testcase": false }, { "class_method_signature": "And.normalize(boolean b)", "constructor": false, "full_signature": "@Override protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "@Override protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "And.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "And.copySet(LinkedHashSet<LTLFormula> set)", "constructor": false, "full_signature": "private static LinkedHashSet<LTLFormula> copySet(LinkedHashSet<LTLFormula> set)", "identifier": "copySet", "modifiers": "private static", "parameters": "(LinkedHashSet<LTLFormula> set)", "return": "LinkedHashSet<LTLFormula>", "signature": "LinkedHashSet<LTLFormula> copySet(LinkedHashSet<LTLFormula> set)", "testcase": false }, { "class_method_signature": "And.innerUnion(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "constructor": false, "full_signature": "private static LinkedHashSet<LinkedHashSet<LTLFormula>> innerUnion(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "identifier": "innerUnion", "modifiers": "private static", "parameters": "(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "return": "LinkedHashSet<LinkedHashSet<LTLFormula>>", "signature": "LinkedHashSet<LinkedHashSet<LTLFormula>> innerUnion(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "testcase": false }, { "class_method_signature": "And.toSetForm()", "constructor": false, "full_signature": "@Override public LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "identifier": "toSetForm", "modifiers": "@Override public", "parameters": "()", "return": "LinkedHashSet<LinkedHashSet<LTLFormula>>", "signature": "LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "testcase": false }, { "class_method_signature": "And.d(HashMap<LTLFormula, ATransition> D)", "constructor": false, "full_signature": "@Override public ATransition d(HashMap<LTLFormula, ATransition> D)", "identifier": "d", "modifiers": "@Override public", "parameters": "(HashMap<LTLFormula, ATransition> D)", "return": "ATransition", "signature": "ATransition d(HashMap<LTLFormula, ATransition> D)", "testcase": false }, { "class_method_signature": "And.main(String args[])", "constructor": false, "full_signature": "public static void main(String args[])", "identifier": "main", "modifiers": "public static", "parameters": "(String args[])", "return": "void", "signature": "void main(String args[])", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n protected LTLFormula reduce(){\n //first reduce all children\n for(int i = 0; i < children.size(); ++i){\n children.set(i, children.get(i).reduce());\n }\n //first pass, perform any inlining\n flatten();\n //now sort\n Collections.sort(children);\n //the rest of this method must preserve sorting\n for(int i = 0; ; ++i){\n //because we are removing elements the\n //size may change during computation\n if(i >= children.size()) return this;\n //if a child is false the whole thing\n //reduces to false\n if(children.get(i) == False.get()){\n return False.get();\n }\n //Trues can be removed\n if(children.get(i) == True.get()){\n children.remove(i);\n --i; continue;\n }\n //If we have a and not a we can reduce\n //the whole formula to false\n if(children.get(i).getLTLType() == LTLType.A){\n for(int j = i; j < children.size(); ++j){\n LTLFormula child = children.get(j);\n if(child.getLTLType().compareTo(LTLType.NEG) > 0){\n break;\n }\n if(child.getLTLType() == LTLType.NEG\n && child.getChildren().get(0) == children.get(i)){\n return False.get();\n }\n }\n }\n //duplicate children can be removed\n //keep in mind that the children are sorted\n //so duplicates must be adjacent\n if(i + 1 < children.size() \n && children.get(i).equals(children.get(i + 1))){\n children.remove(i);\n --i;\n }\n if(children.size() == 1) return children.get(0);\n }\n }", "class_method_signature": "And.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "invocations": [ "size", "set", "reduce", "get", "flatten", "sort", "size", "get", "get", "get", "get", "get", "remove", "getLTLType", "get", "size", "get", "compareTo", "getLTLType", "getLTLType", "get", "getChildren", "get", "get", "size", "equals", "get", "get", "remove", "size", "get" ], "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_48
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aOrb", "modifier": "private", "original_string": "private ERE aOrb;", "type": "ERE", "var_name": "aOrb" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/OrTest.java", "identifier": "OrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSimplify() {\n Symbol c = Symbol.get(\"c\");\n Epsilon epsilon = Epsilon.get();\n \n assertEquals(aOrb, Or.get(new ArrayList<ERE>(Arrays.asList(a, b, a, b, a, b, a, b, a))));\n assertEquals(Or.get(new ArrayList<ERE>(Arrays.asList(a, b, c))), Or.get(new ArrayList<ERE>(Arrays.asList(aOrb, c))));\n }", "class_method_signature": "OrTest.testSimplify()", "constructor": false, "full_signature": "@Test public void testSimplify()", "identifier": "testSimplify", "invocations": [ "get", "get", "assertEquals", "get", "asList", "assertEquals", "get", "asList", "get", "asList" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testSimplify()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Or.java", "identifier": "Or", "interfaces": "", "methods": [ { "class_method_signature": "Or.get(List<ERE> children)", "constructor": false, "full_signature": "static public ERE get(List<ERE> children)", "identifier": "get", "modifiers": "static public", "parameters": "(List<ERE> children)", "return": "ERE", "signature": "ERE get(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.Or(List<ERE> children)", "constructor": true, "full_signature": "private Or(List<ERE> children)", "identifier": "Or", "modifiers": "private", "parameters": "(List<ERE> children)", "return": "", "signature": " Or(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.simplify()", "constructor": false, "full_signature": "public ERE simplify()", "identifier": "simplify", "modifiers": "public", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Or.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Or.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Or.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Or.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "public ERE simplify() {\n //Flatten any child Or elements into this one.\n ArrayList<ERE> flattened = new ArrayList<ERE>(children.size() >> 1);\n ArrayList<ERE> previous = new ArrayList<ERE>(children);\n boolean changed = true;\n while(changed) {\n changed = false; \n flattened = new ArrayList<ERE>(children.size());\n for(ERE child : previous) {\n if(child.getEREType() == EREType.OR) {\n flattened.addAll(child.getChildren());\n changed = true;\n } else {\n flattened.add(child); \n }\n }\n previous = flattened;\n }\n children = flattened;\n // Sort the elements so that structurally equal one will be adjacent.\n Collections.sort(children);\n // Remove elements that do not match anything.\n for(int i = 0; i < children.size(); ++i) {\n if(children.get(i) == Empty.get()) {\n children.remove(i);\n }\n }\n // Remove duplicate elements.\n for(int i = 0; i < children.size() - 1; ++i) {\n if(children.get(i).equals(children.get(i + 1))) {\n children.remove(i);\n i--;\n }\n }\n // Simplify degenerate Or instances to simpler ERE types.\n if(children.size() == 0) {\n return Empty.get();\n }\n else if(children.size() == 1) {\n return children.get(0);\n }\n return this;\n }", "class_method_signature": "Or.simplify()", "constructor": false, "full_signature": "public ERE simplify()", "identifier": "simplify", "invocations": [ "size", "size", "getEREType", "addAll", "getChildren", "add", "sort", "size", "get", "get", "remove", "size", "equals", "get", "get", "remove", "size", "get", "size", "get" ], "modifiers": "public", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_29
{ "fields": [ { "declarator": "symbol", "modifier": "private", "original_string": "private Symbol symbol;", "type": "Symbol", "var_name": "symbol" }, { "declarator": "empty", "modifier": "private", "original_string": "private Empty empty;", "type": "Empty", "var_name": "empty" }, { "declarator": "epsilon", "modifier": "private", "original_string": "private Epsilon epsilon;", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/NegationTest.java", "identifier": "NegationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testContainsEpsilon() {\n ERE negateEmpty = Negation.get(empty);\n ERE negateEpsilon = Negation.get(epsilon);\n \n assertTrue(negateEmpty.containsEpsilon());\n assertFalse(negateEpsilon.containsEpsilon());\n }", "class_method_signature": "NegationTest.testContainsEpsilon()", "constructor": false, "full_signature": "@Test public void testContainsEpsilon()", "identifier": "testContainsEpsilon", "invocations": [ "get", "get", "assertTrue", "containsEpsilon", "assertFalse", "containsEpsilon" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testContainsEpsilon()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Negation.java", "identifier": "Negation", "interfaces": "", "methods": [ { "class_method_signature": "Negation.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }, { "class_method_signature": "Negation.Negation(ERE child)", "constructor": true, "full_signature": "private Negation(ERE child)", "identifier": "Negation", "modifiers": "private", "parameters": "(ERE child)", "return": "", "signature": " Negation(ERE child)", "testcase": false }, { "class_method_signature": "Negation.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Negation.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Negation.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Negation.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Negation.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public boolean containsEpsilon() {\n return !(children.get(0).containsEpsilon());\n }", "class_method_signature": "Negation.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "invocations": [ "containsEpsilon", "get" ], "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_68
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a, b, c, d;", "type": "Symbol", "var_name": "a" }, { "declarator": "ab_a", "modifier": "private", "original_string": "private Rule ab_a;", "type": "Rule", "var_name": "ab_a" }, { "declarator": "ab_cd", "modifier": "private", "original_string": "private Rule ab_cd;", "type": "Rule", "var_name": "ab_cd" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/RuleTest.java", "identifier": "RuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInit() {\n assertFalse(ab_a.getNumber() == ab_cd.getNumber());\n }", "class_method_signature": "RuleTest.testInit()", "constructor": false, "full_signature": "@Test public void testInit()", "identifier": "testInit", "invocations": [ "assertFalse", "getNumber", "getNumber" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testInit()", "testcase": true }
{ "fields": [ { "declarator": "counter = 0", "modifier": "private static", "original_string": "private static int counter = 0;", "type": "int", "var_name": "counter" }, { "declarator": "number", "modifier": "private", "original_string": "private int number;", "type": "int", "var_name": "number" }, { "declarator": "terminals = new HashSet<Symbol>()", "modifier": "private", "original_string": "private Set<Symbol> terminals = new HashSet<Symbol>();", "type": "Set<Symbol>", "var_name": "terminals" }, { "declarator": "lhs", "modifier": "private", "original_string": "private Sequence lhs;", "type": "Sequence", "var_name": "lhs" }, { "declarator": "rhs", "modifier": "private", "original_string": "private AbstractSequence rhs;", "type": "AbstractSequence", "var_name": "rhs" } ], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/Rule.java", "identifier": "Rule", "interfaces": "", "methods": [ { "class_method_signature": "Rule.getLhs()", "constructor": false, "full_signature": "public Sequence getLhs()", "identifier": "getLhs", "modifiers": "public", "parameters": "()", "return": "Sequence", "signature": "Sequence getLhs()", "testcase": false }, { "class_method_signature": "Rule.getRhs()", "constructor": false, "full_signature": "public AbstractSequence getRhs()", "identifier": "getRhs", "modifiers": "public", "parameters": "()", "return": "AbstractSequence", "signature": "AbstractSequence getRhs()", "testcase": false }, { "class_method_signature": "Rule.Rule()", "constructor": true, "full_signature": "protected Rule()", "identifier": "Rule", "modifiers": "protected", "parameters": "()", "return": "", "signature": " Rule()", "testcase": false }, { "class_method_signature": "Rule.Rule(Sequence lhs, AbstractSequence rhs)", "constructor": true, "full_signature": "public Rule(Sequence lhs, AbstractSequence rhs)", "identifier": "Rule", "modifiers": "public", "parameters": "(Sequence lhs, AbstractSequence rhs)", "return": "", "signature": " Rule(Sequence lhs, AbstractSequence rhs)", "testcase": false }, { "class_method_signature": "Rule.computeTerminals()", "constructor": false, "full_signature": "private void computeTerminals()", "identifier": "computeTerminals", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void computeTerminals()", "testcase": false }, { "class_method_signature": "Rule.getNumber()", "constructor": false, "full_signature": "public int getNumber()", "identifier": "getNumber", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getNumber()", "testcase": false }, { "class_method_signature": "Rule.getTerminals()", "constructor": false, "full_signature": "public Set<Symbol> getTerminals()", "identifier": "getTerminals", "modifiers": "public", "parameters": "()", "return": "Set<Symbol>", "signature": "Set<Symbol> getTerminals()", "testcase": false }, { "class_method_signature": "Rule.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Rule.toDotString()", "constructor": false, "full_signature": "public String toDotString()", "identifier": "toDotString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toDotString()", "testcase": false }, { "class_method_signature": "Rule.dotLength()", "constructor": false, "full_signature": "public int dotLength()", "identifier": "dotLength", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int dotLength()", "testcase": false }, { "class_method_signature": "Rule.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Rule.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false } ], "superclass": "" }
{ "body": "public int getNumber() {\n return number;\n }", "class_method_signature": "Rule.getNumber()", "constructor": false, "full_signature": "public int getNumber()", "identifier": "getNumber", "invocations": [], "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getNumber()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_44
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aOrb", "modifier": "private", "original_string": "private ERE aOrb;", "type": "ERE", "var_name": "aOrb" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/OrTest.java", "identifier": "OrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n ERE copy = aOrb.copy();\n assertEquals(aOrb, copy);\n }", "class_method_signature": "OrTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "copy", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Or.java", "identifier": "Or", "interfaces": "", "methods": [ { "class_method_signature": "Or.get(List<ERE> children)", "constructor": false, "full_signature": "static public ERE get(List<ERE> children)", "identifier": "get", "modifiers": "static public", "parameters": "(List<ERE> children)", "return": "ERE", "signature": "ERE get(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.Or(List<ERE> children)", "constructor": true, "full_signature": "private Or(List<ERE> children)", "identifier": "Or", "modifiers": "private", "parameters": "(List<ERE> children)", "return": "", "signature": " Or(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.simplify()", "constructor": false, "full_signature": "public ERE simplify()", "identifier": "simplify", "modifiers": "public", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Or.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Or.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Or.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Or.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE copy() {\n ArrayList<ERE> retChildren = new ArrayList<ERE>(children.size());\n for(ERE child : children) {\n retChildren.add(child.copy());\n }\n return new Or(retChildren);\n }", "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "invocations": [ "size", "add", "copy" ], "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_13
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Atom c;", "type": "Atom", "var_name": "c" }, { "declarator": "a_xor_b", "modifier": "private", "original_string": "private XOr a_xor_b;", "type": "XOr", "var_name": "a_xor_b" }, { "declarator": "a_xor_c", "modifier": "private", "original_string": "private XOr a_xor_c;", "type": "XOr", "var_name": "a_xor_c" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/XOrTest.java", "identifier": "XOrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n assertEquals(a_xor_b, a_xor_b.copy());\n assertEquals(a_xor_c, a_xor_c.copy());\n }", "class_method_signature": "XOrTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "assertEquals", "copy", "assertEquals", "copy" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/XOr.java", "identifier": "XOr", "interfaces": "", "methods": [ { "class_method_signature": "XOr.XOr(ArrayList<LTLFormula> children)", "constructor": true, "full_signature": "public XOr(ArrayList<LTLFormula> children)", "identifier": "XOr", "modifiers": "public", "parameters": "(ArrayList<LTLFormula> children)", "return": "", "signature": " XOr(ArrayList<LTLFormula> children)", "testcase": false }, { "class_method_signature": "XOr.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "XOr.normalize()", "constructor": false, "full_signature": "@Override public LTLFormula normalize()", "identifier": "normalize", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula normalize()", "testcase": false }, { "class_method_signature": "XOr.normalize(boolean b)", "constructor": false, "full_signature": "@Override protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "@Override protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "XOr.lower()", "constructor": false, "full_signature": "@Override protected LTLFormula lower()", "identifier": "lower", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula lower()", "testcase": false }, { "class_method_signature": "XOr.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "XOr.main(String[] args)", "constructor": false, "full_signature": "public static void main(String[] args)", "identifier": "main", "modifiers": "public static", "parameters": "(String[] args)", "return": "void", "signature": "void main(String[] args)", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n public LTLFormula copy() {\n ArrayList<LTLFormula> copiedChildren = new ArrayList<LTLFormula>(children.size());\n for(LTLFormula child : children){\n copiedChildren.add(child.copy());\n }\n return new XOr(copiedChildren);\n }", "class_method_signature": "XOr.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "invocations": [ "size", "add", "copy" ], "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_52
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aStar", "modifier": "private", "original_string": "private ERE aStar;", "type": "ERE", "var_name": "aStar" }, { "declarator": "bStar", "modifier": "private", "original_string": "private ERE bStar;", "type": "ERE", "var_name": "bStar" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/KleeneTest.java", "identifier": "KleeneTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testContainsEpsilon() {\n assertTrue(aStar.containsEpsilon());\n }", "class_method_signature": "KleeneTest.testContainsEpsilon()", "constructor": false, "full_signature": "@Test public void testContainsEpsilon()", "identifier": "testContainsEpsilon", "invocations": [ "assertTrue", "containsEpsilon" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testContainsEpsilon()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Kleene.java", "identifier": "Kleene", "interfaces": "", "methods": [ { "class_method_signature": "Kleene.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.Kleene(ERE child)", "constructor": true, "full_signature": "private Kleene(ERE child)", "identifier": "Kleene", "modifiers": "private", "parameters": "(ERE child)", "return": "", "signature": " Kleene(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Kleene.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Kleene.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Kleene.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Kleene.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public boolean containsEpsilon() {\n return true;\n }", "class_method_signature": "Kleene.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_53
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aStar", "modifier": "private", "original_string": "private ERE aStar;", "type": "ERE", "var_name": "aStar" }, { "declarator": "bStar", "modifier": "private", "original_string": "private ERE bStar;", "type": "ERE", "var_name": "bStar" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/KleeneTest.java", "identifier": "KleeneTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n ERE copy = aStar.copy();\n assertEquals(aStar, copy);\n }", "class_method_signature": "KleeneTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "copy", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Kleene.java", "identifier": "Kleene", "interfaces": "", "methods": [ { "class_method_signature": "Kleene.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.Kleene(ERE child)", "constructor": true, "full_signature": "private Kleene(ERE child)", "identifier": "Kleene", "modifiers": "private", "parameters": "(ERE child)", "return": "", "signature": " Kleene(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Kleene.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Kleene.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Kleene.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Kleene.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE copy() {\n return new Kleene(children.get(0).copy());\n }", "class_method_signature": "Kleene.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "invocations": [ "copy", "get" ], "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_12
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Atom c;", "type": "Atom", "var_name": "c" }, { "declarator": "a_xor_b", "modifier": "private", "original_string": "private XOr a_xor_b;", "type": "XOr", "var_name": "a_xor_b" }, { "declarator": "a_xor_c", "modifier": "private", "original_string": "private XOr a_xor_c;", "type": "XOr", "var_name": "a_xor_c" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/XOrTest.java", "identifier": "XOrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testLower() {\n LTLFormula expected = OrTest.makeOr(AndTest.makeAnd(new Negation(a), b),\n AndTest.makeAnd(a, new Negation(b)));\n assertEquals(expected, a_xor_b.simplify());\n }", "class_method_signature": "XOrTest.testLower()", "constructor": false, "full_signature": "@Test public void testLower()", "identifier": "testLower", "invocations": [ "makeOr", "makeAnd", "makeAnd", "assertEquals", "simplify" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testLower()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/XOr.java", "identifier": "XOr", "interfaces": "", "methods": [ { "class_method_signature": "XOr.XOr(ArrayList<LTLFormula> children)", "constructor": true, "full_signature": "public XOr(ArrayList<LTLFormula> children)", "identifier": "XOr", "modifiers": "public", "parameters": "(ArrayList<LTLFormula> children)", "return": "", "signature": " XOr(ArrayList<LTLFormula> children)", "testcase": false }, { "class_method_signature": "XOr.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "XOr.normalize()", "constructor": false, "full_signature": "@Override public LTLFormula normalize()", "identifier": "normalize", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula normalize()", "testcase": false }, { "class_method_signature": "XOr.normalize(boolean b)", "constructor": false, "full_signature": "@Override protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "@Override protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "XOr.lower()", "constructor": false, "full_signature": "@Override protected LTLFormula lower()", "identifier": "lower", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula lower()", "testcase": false }, { "class_method_signature": "XOr.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "XOr.main(String[] args)", "constructor": false, "full_signature": "public static void main(String[] args)", "identifier": "main", "modifiers": "public static", "parameters": "(String[] args)", "return": "void", "signature": "void main(String[] args)", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n protected LTLFormula lower(){\n for(int i = 0; i < children.size(); ++i){\n children.set(i,children.get(i).lower());\n }\n ArrayList<LTLFormula> nextChildren; \n LTLFormula left = children.get(0);\n for(int i = 1; i < children.size(); ++i){\n nextChildren = new ArrayList<LTLFormula>(2);\n LTLFormula right = children.get(i);\n nextChildren.add(new Negation(left.copy()));\n nextChildren.add(right.copy());\n LTLFormula And1 = new And(nextChildren);\n nextChildren = new ArrayList<LTLFormula>(2);\n nextChildren.add(left);\n nextChildren.add(new Negation(right));\n LTLFormula And2 = new And(nextChildren);\n nextChildren = new ArrayList<LTLFormula>(2);\n nextChildren.add(And1);\n nextChildren.add(And2);\n left = new Or(nextChildren);\n }\n return left;\n }", "class_method_signature": "XOr.lower()", "constructor": false, "full_signature": "@Override protected LTLFormula lower()", "identifier": "lower", "invocations": [ "size", "set", "lower", "get", "get", "size", "get", "add", "copy", "add", "copy", "add", "add", "add", "add" ], "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula lower()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_45
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aOrb", "modifier": "private", "original_string": "private ERE aOrb;", "type": "ERE", "var_name": "aOrb" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/OrTest.java", "identifier": "OrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEREType() {\n assertEquals(EREType.OR, aOrb.getEREType());\n }", "class_method_signature": "OrTest.testEREType()", "constructor": false, "full_signature": "@Test public void testEREType()", "identifier": "testEREType", "invocations": [ "assertEquals", "getEREType" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testEREType()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Or.java", "identifier": "Or", "interfaces": "", "methods": [ { "class_method_signature": "Or.get(List<ERE> children)", "constructor": false, "full_signature": "static public ERE get(List<ERE> children)", "identifier": "get", "modifiers": "static public", "parameters": "(List<ERE> children)", "return": "ERE", "signature": "ERE get(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.Or(List<ERE> children)", "constructor": true, "full_signature": "private Or(List<ERE> children)", "identifier": "Or", "modifiers": "private", "parameters": "(List<ERE> children)", "return": "", "signature": " Or(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.simplify()", "constructor": false, "full_signature": "public ERE simplify()", "identifier": "simplify", "modifiers": "public", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Or.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Or.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Or.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Or.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public EREType getEREType() { \n return EREType.OR;\n }", "class_method_signature": "Or.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_69
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a, b, c, d;", "type": "Symbol", "var_name": "a" }, { "declarator": "ab_a", "modifier": "private", "original_string": "private Rule ab_a;", "type": "Rule", "var_name": "ab_a" }, { "declarator": "ab_cd", "modifier": "private", "original_string": "private Rule ab_cd;", "type": "Rule", "var_name": "ab_cd" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/RuleTest.java", "identifier": "RuleTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testTerminals() {\n assertTrue(ab_a.getTerminals().contains(a));\n assertTrue(ab_a.getTerminals().contains(b));\n assertFalse(ab_a.getTerminals().contains(c));\n assertFalse(ab_a.getTerminals().contains(d));\n \n assertTrue(ab_cd.getTerminals().contains(a));\n assertTrue(ab_cd.getTerminals().contains(b));\n assertTrue(ab_cd.getTerminals().contains(c));\n assertTrue(ab_cd.getTerminals().contains(d));\n }", "class_method_signature": "RuleTest.testTerminals()", "constructor": false, "full_signature": "@Test public void testTerminals()", "identifier": "testTerminals", "invocations": [ "assertTrue", "contains", "getTerminals", "assertTrue", "contains", "getTerminals", "assertFalse", "contains", "getTerminals", "assertFalse", "contains", "getTerminals", "assertTrue", "contains", "getTerminals", "assertTrue", "contains", "getTerminals", "assertTrue", "contains", "getTerminals", "assertTrue", "contains", "getTerminals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testTerminals()", "testcase": true }
{ "fields": [ { "declarator": "counter = 0", "modifier": "private static", "original_string": "private static int counter = 0;", "type": "int", "var_name": "counter" }, { "declarator": "number", "modifier": "private", "original_string": "private int number;", "type": "int", "var_name": "number" }, { "declarator": "terminals = new HashSet<Symbol>()", "modifier": "private", "original_string": "private Set<Symbol> terminals = new HashSet<Symbol>();", "type": "Set<Symbol>", "var_name": "terminals" }, { "declarator": "lhs", "modifier": "private", "original_string": "private Sequence lhs;", "type": "Sequence", "var_name": "lhs" }, { "declarator": "rhs", "modifier": "private", "original_string": "private AbstractSequence rhs;", "type": "AbstractSequence", "var_name": "rhs" } ], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/Rule.java", "identifier": "Rule", "interfaces": "", "methods": [ { "class_method_signature": "Rule.getLhs()", "constructor": false, "full_signature": "public Sequence getLhs()", "identifier": "getLhs", "modifiers": "public", "parameters": "()", "return": "Sequence", "signature": "Sequence getLhs()", "testcase": false }, { "class_method_signature": "Rule.getRhs()", "constructor": false, "full_signature": "public AbstractSequence getRhs()", "identifier": "getRhs", "modifiers": "public", "parameters": "()", "return": "AbstractSequence", "signature": "AbstractSequence getRhs()", "testcase": false }, { "class_method_signature": "Rule.Rule()", "constructor": true, "full_signature": "protected Rule()", "identifier": "Rule", "modifiers": "protected", "parameters": "()", "return": "", "signature": " Rule()", "testcase": false }, { "class_method_signature": "Rule.Rule(Sequence lhs, AbstractSequence rhs)", "constructor": true, "full_signature": "public Rule(Sequence lhs, AbstractSequence rhs)", "identifier": "Rule", "modifiers": "public", "parameters": "(Sequence lhs, AbstractSequence rhs)", "return": "", "signature": " Rule(Sequence lhs, AbstractSequence rhs)", "testcase": false }, { "class_method_signature": "Rule.computeTerminals()", "constructor": false, "full_signature": "private void computeTerminals()", "identifier": "computeTerminals", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void computeTerminals()", "testcase": false }, { "class_method_signature": "Rule.getNumber()", "constructor": false, "full_signature": "public int getNumber()", "identifier": "getNumber", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int getNumber()", "testcase": false }, { "class_method_signature": "Rule.getTerminals()", "constructor": false, "full_signature": "public Set<Symbol> getTerminals()", "identifier": "getTerminals", "modifiers": "public", "parameters": "()", "return": "Set<Symbol>", "signature": "Set<Symbol> getTerminals()", "testcase": false }, { "class_method_signature": "Rule.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Rule.toDotString()", "constructor": false, "full_signature": "public String toDotString()", "identifier": "toDotString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toDotString()", "testcase": false }, { "class_method_signature": "Rule.dotLength()", "constructor": false, "full_signature": "public int dotLength()", "identifier": "dotLength", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int dotLength()", "testcase": false }, { "class_method_signature": "Rule.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Rule.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false } ], "superclass": "" }
{ "body": "public Set<Symbol> getTerminals() {\n return terminals;\n }", "class_method_signature": "Rule.getTerminals()", "constructor": false, "full_signature": "public Set<Symbol> getTerminals()", "identifier": "getTerminals", "invocations": [], "modifiers": "public", "parameters": "()", "return": "Set<Symbol>", "signature": "Set<Symbol> getTerminals()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_28
{ "fields": [ { "declarator": "symbol", "modifier": "private", "original_string": "private Symbol symbol;", "type": "Symbol", "var_name": "symbol" }, { "declarator": "empty", "modifier": "private", "original_string": "private Empty empty;", "type": "Empty", "var_name": "empty" }, { "declarator": "epsilon", "modifier": "private", "original_string": "private Epsilon epsilon;", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/NegationTest.java", "identifier": "NegationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testSimplification() {\n ERE negation = Negation.get(symbol);\n ERE doubleNegation = Negation.get(negation);\n \n assertEquals(symbol, doubleNegation);\n }", "class_method_signature": "NegationTest.testSimplification()", "constructor": false, "full_signature": "@Test public void testSimplification()", "identifier": "testSimplification", "invocations": [ "get", "get", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testSimplification()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Negation.java", "identifier": "Negation", "interfaces": "", "methods": [ { "class_method_signature": "Negation.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }, { "class_method_signature": "Negation.Negation(ERE child)", "constructor": true, "full_signature": "private Negation(ERE child)", "identifier": "Negation", "modifiers": "private", "parameters": "(ERE child)", "return": "", "signature": " Negation(ERE child)", "testcase": false }, { "class_method_signature": "Negation.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Negation.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Negation.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Negation.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Negation.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "public static ERE get(ERE child) {\n if(child.getEREType() == EREType.NEG) return child.children.get(0);\n return new Negation(child);\n }", "class_method_signature": "Negation.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "invocations": [ "getEREType", "get" ], "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_3
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Atom c;", "type": "Atom", "var_name": "c" }, { "declarator": "a_and_b", "modifier": "private", "original_string": "private And a_and_b;", "type": "And", "var_name": "a_and_b" }, { "declarator": "a_and_c", "modifier": "private", "original_string": "private And a_and_c;", "type": "And", "var_name": "a_and_c" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/AndTest.java", "identifier": "AndTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n assertEquals(a_and_b, a_and_b.copy());\n assertEquals(a_and_c, a_and_c.copy());\n }", "class_method_signature": "AndTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "assertEquals", "copy", "assertEquals", "copy" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/And.java", "identifier": "And", "interfaces": "", "methods": [ { "class_method_signature": "And.And(ArrayList<LTLFormula> children)", "constructor": true, "full_signature": "public And(ArrayList<LTLFormula> children)", "identifier": "And", "modifiers": "public", "parameters": "(ArrayList<LTLFormula> children)", "return": "", "signature": " And(ArrayList<LTLFormula> children)", "testcase": false }, { "class_method_signature": "And.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "And.flatten()", "constructor": false, "full_signature": "private void flatten()", "identifier": "flatten", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void flatten()", "testcase": false }, { "class_method_signature": "And.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }, { "class_method_signature": "And.getNegation(int i, boolean b)", "constructor": false, "full_signature": "private LTLFormula getNegation(int i, boolean b)", "identifier": "getNegation", "modifiers": "private", "parameters": "(int i, boolean b)", "return": "LTLFormula", "signature": "LTLFormula getNegation(int i, boolean b)", "testcase": false }, { "class_method_signature": "And.normalize(boolean b)", "constructor": false, "full_signature": "@Override protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "@Override protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "And.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "And.copySet(LinkedHashSet<LTLFormula> set)", "constructor": false, "full_signature": "private static LinkedHashSet<LTLFormula> copySet(LinkedHashSet<LTLFormula> set)", "identifier": "copySet", "modifiers": "private static", "parameters": "(LinkedHashSet<LTLFormula> set)", "return": "LinkedHashSet<LTLFormula>", "signature": "LinkedHashSet<LTLFormula> copySet(LinkedHashSet<LTLFormula> set)", "testcase": false }, { "class_method_signature": "And.innerUnion(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "constructor": false, "full_signature": "private static LinkedHashSet<LinkedHashSet<LTLFormula>> innerUnion(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "identifier": "innerUnion", "modifiers": "private static", "parameters": "(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "return": "LinkedHashSet<LinkedHashSet<LTLFormula>>", "signature": "LinkedHashSet<LinkedHashSet<LTLFormula>> innerUnion(LinkedHashSet<LinkedHashSet<LTLFormula>> first, \n LinkedHashSet<LinkedHashSet<LTLFormula>> second)", "testcase": false }, { "class_method_signature": "And.toSetForm()", "constructor": false, "full_signature": "@Override public LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "identifier": "toSetForm", "modifiers": "@Override public", "parameters": "()", "return": "LinkedHashSet<LinkedHashSet<LTLFormula>>", "signature": "LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "testcase": false }, { "class_method_signature": "And.d(HashMap<LTLFormula, ATransition> D)", "constructor": false, "full_signature": "@Override public ATransition d(HashMap<LTLFormula, ATransition> D)", "identifier": "d", "modifiers": "@Override public", "parameters": "(HashMap<LTLFormula, ATransition> D)", "return": "ATransition", "signature": "ATransition d(HashMap<LTLFormula, ATransition> D)", "testcase": false }, { "class_method_signature": "And.main(String args[])", "constructor": false, "full_signature": "public static void main(String args[])", "identifier": "main", "modifiers": "public static", "parameters": "(String args[])", "return": "void", "signature": "void main(String args[])", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n public LTLFormula copy() {\n ArrayList<LTLFormula> copiedChildren = new ArrayList<LTLFormula>(children.size());\n for(LTLFormula child : children){\n copiedChildren.add(child.copy());\n }\n return new And(copiedChildren);\n }", "class_method_signature": "And.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "invocations": [ "size", "add", "copy" ], "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_49
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aStar", "modifier": "private", "original_string": "private ERE aStar;", "type": "ERE", "var_name": "aStar" }, { "declarator": "bStar", "modifier": "private", "original_string": "private ERE bStar;", "type": "ERE", "var_name": "bStar" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/KleeneTest.java", "identifier": "KleeneTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquality() {\n ERE aStar_again = Kleene.get(a);\n \n assertEquals(aStar, aStar_again);\n assertEquals(0, aStar.compareTo(aStar_again));\n }", "class_method_signature": "KleeneTest.testEquality()", "constructor": false, "full_signature": "@Test public void testEquality()", "identifier": "testEquality", "invocations": [ "get", "assertEquals", "assertEquals", "compareTo" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testEquality()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Kleene.java", "identifier": "Kleene", "interfaces": "", "methods": [ { "class_method_signature": "Kleene.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.Kleene(ERE child)", "constructor": true, "full_signature": "private Kleene(ERE child)", "identifier": "Kleene", "modifiers": "private", "parameters": "(ERE child)", "return": "", "signature": " Kleene(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Kleene.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Kleene.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Kleene.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Kleene.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "public static ERE get(ERE child) {\n return new Kleene(child);\n }", "class_method_signature": "Kleene.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "invocations": [], "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_32
{ "fields": [ { "declarator": "one", "modifier": "private", "original_string": "private Symbol one;", "type": "Symbol", "var_name": "one" }, { "declarator": "two", "modifier": "private", "original_string": "private Symbol two;", "type": "Symbol", "var_name": "two" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/SymbolTest.java", "identifier": "SymbolTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n ERE copy = one.copy();\n assertEquals(one, copy);\n }", "class_method_signature": "SymbolTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "copy", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [ { "declarator": "stringToRef = new HashMap<String, Symbol>()", "modifier": "private static final", "original_string": "private static final HashMap<String, Symbol> stringToRef = new HashMap<String, Symbol>();", "type": "HashMap<String, Symbol>", "var_name": "stringToRef" }, { "declarator": "refToString = new HashMap<Symbol, String>()", "modifier": "private static final", "original_string": "private static final HashMap<Symbol, String> refToString = new HashMap<Symbol, String>();", "type": "HashMap<Symbol, String>", "var_name": "refToString" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Symbol.java", "identifier": "Symbol", "interfaces": "", "methods": [ { "class_method_signature": "Symbol.Symbol()", "constructor": true, "full_signature": "private Symbol()", "identifier": "Symbol", "modifiers": "private", "parameters": "()", "return": "", "signature": " Symbol()", "testcase": false }, { "class_method_signature": "Symbol.get(String name)", "constructor": false, "full_signature": "static public Symbol get(String name)", "identifier": "get", "modifiers": "static public", "parameters": "(String name)", "return": "Symbol", "signature": "Symbol get(String name)", "testcase": false }, { "class_method_signature": "Symbol.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Symbol.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Symbol.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Symbol.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Symbol.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Symbol.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Symbol.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE copy() {\n return this;\n }", "class_method_signature": "Symbol.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_65
{ "fields": [ { "declarator": "l", "modifier": "private", "original_string": "private SinglyLinkedList<String> l;", "type": "SinglyLinkedList<String>", "var_name": "l" }, { "declarator": "arr", "modifier": "private", "original_string": "private ArrayList<String> arr;", "type": "ArrayList<String>", "var_name": "arr" }, { "declarator": "replacement", "modifier": "private", "original_string": "private ArrayList<String> replacement;", "type": "ArrayList<String>", "var_name": "replacement" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/SinglyLinkedListTest.java", "identifier": "SinglyLinkedListTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRemove() {\n Iterator<String> I = arr.iterator();\n removeOdd(I);\n I = l.iterator();\n removeOdd(I);\n \n assertEquals(arr.toString(), l.toString());\n assertEquals(arr.size(), l.size());\n assertEquals(\"<12, <>>\", \"\" + l.getTail());\n }", "class_method_signature": "SinglyLinkedListTest.testRemove()", "constructor": false, "full_signature": "@Test public void testRemove()", "identifier": "testRemove", "invocations": [ "iterator", "removeOdd", "iterator", "removeOdd", "assertEquals", "toString", "toString", "assertEquals", "size", "size", "assertEquals", "getTail" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testRemove()", "testcase": true }
{ "fields": [ { "declarator": "head", "modifier": "protected", "original_string": "protected Node head;", "type": "Node", "var_name": "head" }, { "declarator": "tail", "modifier": "protected", "original_string": "protected Node tail;", "type": "Node", "var_name": "tail" }, { "declarator": "size", "modifier": "protected", "original_string": "protected int size;", "type": "int", "var_name": "size" } ], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/SinglyLinkedList.java", "identifier": "SinglyLinkedList", "interfaces": "implements Iterable<E>", "methods": [ { "class_method_signature": "SinglyLinkedList.SinglyLinkedList()", "constructor": true, "full_signature": "public SinglyLinkedList()", "identifier": "SinglyLinkedList", "modifiers": "public", "parameters": "()", "return": "", "signature": " SinglyLinkedList()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.SinglyLinkedList(Iterable<E> c)", "constructor": true, "full_signature": "public SinglyLinkedList(Iterable<E> c)", "identifier": "SinglyLinkedList", "modifiers": "public", "parameters": "(Iterable<E> c)", "return": "", "signature": " SinglyLinkedList(Iterable<E> c)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.add(E e)", "constructor": false, "full_signature": "public boolean add(E e)", "identifier": "add", "modifiers": "public", "parameters": "(E e)", "return": "boolean", "signature": "boolean add(E e)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.addAll(Iterable<E> c)", "constructor": false, "full_signature": "public boolean addAll(Iterable<E> c)", "identifier": "addAll", "modifiers": "public", "parameters": "(Iterable<E> c)", "return": "boolean", "signature": "boolean addAll(Iterable<E> c)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.contains(Object o)", "constructor": false, "full_signature": "public boolean contains(Object o)", "identifier": "contains", "modifiers": "public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean contains(Object o)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.hashCode()", "constructor": false, "full_signature": "@Override public int hashCode()", "identifier": "hashCode", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int hashCode()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.isEmpty()", "constructor": false, "full_signature": "public boolean isEmpty()", "identifier": "isEmpty", "modifiers": "public", "parameters": "()", "return": "boolean", "signature": "boolean isEmpty()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.remove(Object o)", "constructor": false, "full_signature": "public boolean remove(Object o)", "identifier": "remove", "modifiers": "public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean remove(Object o)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.size()", "constructor": false, "full_signature": "public int size()", "identifier": "size", "modifiers": "public", "parameters": "()", "return": "int", "signature": "int size()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.replace(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "constructor": false, "full_signature": "public void replace(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "identifier": "replace", "modifiers": "public", "parameters": "(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "return": "void", "signature": "void replace(Iterator<E> I, Iterator<E> J, SinglyLinkedList<E> replacement)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.nonDestructiveReplace(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "constructor": false, "full_signature": "public void nonDestructiveReplace(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "identifier": "nonDestructiveReplace", "modifiers": "public", "parameters": "(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "return": "void", "signature": "void nonDestructiveReplace(Iterator<E> I, Iterator<E> J, Iterable<E> replacement)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.printRange(Iterator<E> I, Iterator<E> J)", "constructor": false, "full_signature": "public void printRange(Iterator<E> I, Iterator<E> J)", "identifier": "printRange", "modifiers": "public", "parameters": "(Iterator<E> I, Iterator<E> J)", "return": "void", "signature": "void printRange(Iterator<E> I, Iterator<E> J)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.iterator()", "constructor": false, "full_signature": "@Override public Iterator<E> iterator()", "identifier": "iterator", "modifiers": "@Override public", "parameters": "()", "return": "Iterator<E>", "signature": "Iterator<E> iterator()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.iterator(Iterator<E> I)", "constructor": false, "full_signature": "public Iterator<E> iterator(Iterator<E> I)", "identifier": "iterator", "modifiers": "public", "parameters": "(Iterator<E> I)", "return": "Iterator<E>", "signature": "Iterator<E> iterator(Iterator<E> I)", "testcase": false }, { "class_method_signature": "SinglyLinkedList.getHead()", "constructor": false, "full_signature": "public Node getHead()", "identifier": "getHead", "modifiers": "public", "parameters": "()", "return": "Node", "signature": "Node getHead()", "testcase": false }, { "class_method_signature": "SinglyLinkedList.getTail()", "constructor": false, "full_signature": "public Node getTail()", "identifier": "getTail", "modifiers": "public", "parameters": "()", "return": "Node", "signature": "Node getTail()", "testcase": false } ], "superclass": "" }
{ "body": "public boolean remove(Object o) {\n Iterator<E> I = iterator();\n while(I.hasNext()) {\n E e = I.next();\n if(e.equals(o)) {\n I.remove();\n return true;\n }\n }\n return false;\n }", "class_method_signature": "SinglyLinkedList.remove(Object o)", "constructor": false, "full_signature": "public boolean remove(Object o)", "identifier": "remove", "invocations": [ "iterator", "hasNext", "next", "equals", "remove" ], "modifiers": "public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean remove(Object o)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_73
{ "fields": [ { "declarator": "a = Symbol.get(\"a\")", "modifier": "private static", "original_string": "private static Symbol a = Symbol.get(\"a\");", "type": "Symbol", "var_name": "a" }, { "declarator": "b = Symbol.get(\"b\")", "modifier": "private static", "original_string": "private static Symbol b = Symbol.get(\"b\");", "type": "Symbol", "var_name": "b" }, { "declarator": "c = Symbol.get(\"c\")", "modifier": "private static", "original_string": "private static Symbol c = Symbol.get(\"c\");", "type": "Symbol", "var_name": "c" }, { "declarator": "d = Symbol.get(\"d\")", "modifier": "private static", "original_string": "private static Symbol d = Symbol.get(\"d\");", "type": "Symbol", "var_name": "d" }, { "declarator": "seqA = new Sequence(new ArrayList<Symbol>(Arrays.asList(a)))", "modifier": "private static", "original_string": "private static Sequence seqA = new Sequence(new ArrayList<Symbol>(Arrays.asList(a)));", "type": "Sequence", "var_name": "seqA" }, { "declarator": "seqAB = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b)))", "modifier": "private static", "original_string": "private static Sequence seqAB = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b)));", "type": "Sequence", "var_name": "seqAB" }, { "declarator": "seqABC = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b, c)))", "modifier": "private static", "original_string": "private static Sequence seqABC = new Sequence(new ArrayList<Symbol>(Arrays.asList(a, b, c)));", "type": "Sequence", "var_name": "seqABC" }, { "declarator": "seqCD = new Sequence(new ArrayList<Symbol>(Arrays.asList(c, d)))", "modifier": "private static", "original_string": "private static Sequence seqCD = new Sequence(new ArrayList<Symbol>(Arrays.asList(c, d)));", "type": "Sequence", "var_name": "seqCD" }, { "declarator": "srs", "modifier": "private static", "original_string": "private static SRS srs;", "type": "SRS", "var_name": "srs" }, { "declarator": "pma", "modifier": "private static", "original_string": "private static PatternMatchAutomaton pma;", "type": "PatternMatchAutomaton", "var_name": "pma" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/PatternMatchAutomatonTest.java", "identifier": "PatternMatchAutomatonTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDotSring() {\n String pmaDotStr = pma.toDotString();\n \n System.out.println(pmaDotStr);\n assertTrue(pmaDotStr.contains(\"s_0 [texlbl=\\\"$\\\\begin{array}{c}0 : 0\\\\end{array}$\\\" label=\\\" \\\"];\"));\n assertTrue(pmaDotStr.contains(\"s_1 [texlbl=\\\"$\\\\begin{array}{c}1 : 1\\\\end{array}$\\\" label=\\\" \\\"];\"));\n assertTrue(pmaDotStr.contains(\"s_2 [texlbl=\\\"$\\\\begin{array}{c}2 : 2\\\\\\\\ (a\\\\ b \\\\rightarrow c\\\\ d)\\\\end{array}$\\\" label=\\\" \\\"];\"));\n assertTrue(pmaDotStr.contains(\"s_0 -> s_1 [label=\\\"a / 0\\\"];\"));\n assertTrue(pmaDotStr.contains(\"s_1 -> s_2 [label=\\\"b / 0\\\"];\"));\n }", "class_method_signature": "PatternMatchAutomatonTest.testDotSring()", "constructor": false, "full_signature": "@Test public void testDotSring()", "identifier": "testDotSring", "invocations": [ "toDotString", "println", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains", "assertTrue", "contains" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testDotSring()", "testcase": true }
{ "fields": [ { "declarator": "s0 = new State(0)", "modifier": "private", "original_string": "private State s0 = new State(0);", "type": "State", "var_name": "s0" }, { "declarator": "depthMap = new ArrayList<Set<State>>()", "modifier": "private", "original_string": "private ArrayList<Set<State>> depthMap = new ArrayList<Set<State>>();", "type": "ArrayList<Set<State>>", "var_name": "depthMap" }, { "declarator": "fail", "modifier": "private", "original_string": "private HashMap<State, State> fail;", "type": "HashMap<State, State>", "var_name": "fail" }, { "declarator": "needsBegin = false", "modifier": "private", "original_string": "private boolean needsBegin = false;", "type": "boolean", "var_name": "needsBegin" }, { "declarator": "needsEnd = false", "modifier": "private", "original_string": "private boolean needsEnd = false;", "type": "boolean", "var_name": "needsEnd" } ], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/PatternMatchAutomaton.java", "identifier": "PatternMatchAutomaton", "interfaces": "", "methods": [ { "class_method_signature": "PatternMatchAutomaton.PatternMatchAutomaton(SRS srs)", "constructor": true, "full_signature": "public PatternMatchAutomaton(SRS srs)", "identifier": "PatternMatchAutomaton", "modifiers": "public", "parameters": "(SRS srs)", "return": "", "signature": " PatternMatchAutomaton(SRS srs)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.PatternMatchAutomaton(SRS srs, Symbol[] extraTerminals)", "constructor": true, "full_signature": "public PatternMatchAutomaton(SRS srs, Symbol[] extraTerminals)", "identifier": "PatternMatchAutomaton", "modifiers": "public", "parameters": "(SRS srs, Symbol[] extraTerminals)", "return": "", "signature": " PatternMatchAutomaton(SRS srs, Symbol[] extraTerminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.PatternMatchAutomaton(SRS srs, Set<Symbol> extraTerminals)", "constructor": true, "full_signature": "public PatternMatchAutomaton(SRS srs, Set<Symbol> extraTerminals)", "identifier": "PatternMatchAutomaton", "modifiers": "public", "parameters": "(SRS srs, Set<Symbol> extraTerminals)", "return": "", "signature": " PatternMatchAutomaton(SRS srs, Set<Symbol> extraTerminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.init(SRS srs)", "constructor": false, "full_signature": "private void init(SRS srs)", "identifier": "init", "modifiers": "private", "parameters": "(SRS srs)", "return": "void", "signature": "void init(SRS srs)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.mkGotoMachine(SRS srs, Set<Symbol> terminals)", "constructor": false, "full_signature": "private void mkGotoMachine(SRS srs, Set<Symbol> terminals)", "identifier": "mkGotoMachine", "modifiers": "private", "parameters": "(SRS srs, Set<Symbol> terminals)", "return": "void", "signature": "void mkGotoMachine(SRS srs, Set<Symbol> terminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.addFailureTransitions(Set<Symbol> terminals)", "constructor": false, "full_signature": "private void addFailureTransitions(Set<Symbol> terminals)", "identifier": "addFailureTransitions", "modifiers": "private", "parameters": "(Set<Symbol> terminals)", "return": "void", "signature": "void addFailureTransitions(Set<Symbol> terminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.findState(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "constructor": false, "full_signature": "private State findState(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "identifier": "findState", "modifiers": "private", "parameters": "(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "return": "State", "signature": "State findState(State state, Set<State> shallowerStates, \n HashMap<State, State> fail, Set<Symbol> terminals)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.rewrite(SinglyLinkedList<Symbol> l)", "constructor": false, "full_signature": "public void rewrite(SinglyLinkedList<Symbol> l)", "identifier": "rewrite", "modifiers": "public", "parameters": "(SinglyLinkedList<Symbol> l)", "return": "void", "signature": "void rewrite(SinglyLinkedList<Symbol> l)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.rewrite(SpliceList<Symbol> l)", "constructor": false, "full_signature": "public void rewrite(SpliceList<Symbol> l)", "identifier": "rewrite", "modifiers": "public", "parameters": "(SpliceList<Symbol> l)", "return": "void", "signature": "void rewrite(SpliceList<Symbol> l)", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.toDotString()", "constructor": false, "full_signature": "public String toDotString()", "identifier": "toDotString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toDotString()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.mkSymToNum()", "constructor": false, "full_signature": "public Map<Symbol, Integer> mkSymToNum()", "identifier": "mkSymToNum", "modifiers": "public", "parameters": "()", "return": "Map<Symbol, Integer>", "signature": "Map<Symbol, Integer> mkSymToNum()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.toImplString()", "constructor": false, "full_signature": "public String toImplString()", "identifier": "toImplString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toImplString()", "testcase": false }, { "class_method_signature": "PatternMatchAutomaton.transitionToDotString(State state, Map<Symbol, ActionState> transition)", "constructor": false, "full_signature": "public StringBuilder transitionToDotString(State state, Map<Symbol, ActionState> transition)", "identifier": "transitionToDotString", "modifiers": "public", "parameters": "(State state, Map<Symbol, ActionState> transition)", "return": "StringBuilder", "signature": "StringBuilder transitionToDotString(State state, Map<Symbol, ActionState> transition)", "testcase": false } ], "superclass": "extends LinkedHashMap<State, HashMap<Symbol, ActionState>>" }
{ "body": "public String toDotString() {\n StringBuilder sb = new StringBuilder(\"digraph A\");\n sb.append((long) (Math.random()* 2e61d)); \n sb.append(\"{\\n rankdir=TB;\\n node [shape=circle];\\n\");\n // sb.append(\" edge [style=\\\">=stealth' ,shorten >=1pt\\\"];\\n\");\n for(State state : keySet()) {\n sb.append(\" \");\n sb.append(state.toFullDotString());\n sb.append(\"\\n\");\n }\n for(State state : keySet()) {\n HashMap<Symbol, ActionState> transition = get(state);\n sb.append(transitionToDotString(state, transition));\n }\n sb.append(\"}\");\n return sb.toString();\n }", "class_method_signature": "PatternMatchAutomaton.toDotString()", "constructor": false, "full_signature": "public String toDotString()", "identifier": "toDotString", "invocations": [ "append", "random", "append", "keySet", "append", "append", "toFullDotString", "append", "keySet", "get", "append", "transitionToDotString", "append", "toString" ], "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toDotString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_24
{ "fields": [ { "declarator": "NEWLINE = System.getProperty(\"line.separator\")", "modifier": "public static final", "original_string": "public static final String NEWLINE = System.getProperty(\"line.separator\");", "type": "String", "var_name": "NEWLINE" }, { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/FSMTest.java", "identifier": "FSMTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testOr() {\n ERE or = Or.get(new ArrayList<ERE>(Arrays.asList(a, b)));\n\n String fsm = \"s0 [\" + NEWLINE + \" a -> s1\" + NEWLINE + \" b -> s1\" + NEWLINE + \"]\" + NEWLINE +\n \"s1 [\" + NEWLINE + \"]\" + NEWLINE +\n \"alias match = s1 \" + NEWLINE;\n assertEquals(fsm, printFSM(or, a, b));\n }", "class_method_signature": "FSMTest.testOr()", "constructor": false, "full_signature": "@Test public void testOr()", "identifier": "testOr", "invocations": [ "get", "asList", "assertEquals", "printFSM" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testOr()", "testcase": true }
{ "fields": [ { "declarator": "contents", "modifier": "public", "original_string": "public LinkedHashMap<ERE, LinkedHashMap<Symbol, ERE>> contents;", "type": "LinkedHashMap<ERE, LinkedHashMap<Symbol, ERE>>", "var_name": "contents" }, { "declarator": "match", "modifier": "public", "original_string": "public LinkedHashSet<ERE> match;", "type": "LinkedHashSet<ERE>", "var_name": "match" }, { "declarator": "count = 0", "modifier": "private", "original_string": "private int count = 0;", "type": "int", "var_name": "count" }, { "declarator": "number", "modifier": "private", "original_string": "private LinkedHashMap<ERE, String> number;", "type": "LinkedHashMap<ERE, String>", "var_name": "number" }, { "declarator": "start", "modifier": "private", "original_string": "private ERE start;", "type": "ERE", "var_name": "start" }, { "declarator": "events", "modifier": "private", "original_string": "private Symbol[] events;", "type": "Symbol[]", "var_name": "events" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/FSM.java", "identifier": "FSM", "interfaces": "", "methods": [ { "class_method_signature": "FSM.get(ERE input, Symbol[] events)", "constructor": false, "full_signature": "static public FSM get(ERE input, Symbol[] events)", "identifier": "get", "modifiers": "static public", "parameters": "(ERE input, Symbol[] events)", "return": "FSM", "signature": "FSM get(ERE input, Symbol[] events)", "testcase": false }, { "class_method_signature": "FSM.FSM(ERE input, Symbol[] events)", "constructor": true, "full_signature": "private FSM(ERE input, Symbol[] events)", "identifier": "FSM", "modifiers": "private", "parameters": "(ERE input, Symbol[] events)", "return": "", "signature": " FSM(ERE input, Symbol[] events)", "testcase": false }, { "class_method_signature": "FSM.generate(ERE state)", "constructor": false, "full_signature": "private void generate(ERE state)", "identifier": "generate", "modifiers": "private", "parameters": "(ERE state)", "return": "void", "signature": "void generate(ERE state)", "testcase": false }, { "class_method_signature": "FSM.print(PrintStream p)", "constructor": false, "full_signature": "public void print(PrintStream p)", "identifier": "print", "modifiers": "public", "parameters": "(PrintStream p)", "return": "void", "signature": "void print(PrintStream p)", "testcase": false }, { "class_method_signature": "FSM.printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "constructor": false, "full_signature": "private void printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "identifier": "printTransition", "modifiers": "private", "parameters": "(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "return": "void", "signature": "void printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "testcase": false } ], "superclass": "" }
{ "body": "static public FSM get(ERE input, Symbol[] events) {\n return new FSM(input, events);\n }", "class_method_signature": "FSM.get(ERE input, Symbol[] events)", "constructor": false, "full_signature": "static public FSM get(ERE input, Symbol[] events)", "identifier": "get", "invocations": [], "modifiers": "static public", "parameters": "(ERE input, Symbol[] events)", "return": "FSM", "signature": "FSM get(ERE input, Symbol[] events)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_39
{ "fields": [ { "declarator": "empty", "modifier": "private", "original_string": "private Empty empty;", "type": "Empty", "var_name": "empty" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/EmptyTest.java", "identifier": "EmptyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDerive() {\n ERE derived = empty.derive(Symbol.get(\"test\"));\n assertEquals(empty, derived);\n }", "class_method_signature": "EmptyTest.testDerive()", "constructor": false, "full_signature": "@Test public void testDerive()", "identifier": "testDerive", "invocations": [ "derive", "get", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testDerive()", "testcase": true }
{ "fields": [ { "declarator": "empty = new Empty()", "modifier": "private static", "original_string": "private static Empty empty = new Empty();", "type": "Empty", "var_name": "empty" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Empty.java", "identifier": "Empty", "interfaces": "", "methods": [ { "class_method_signature": "Empty.Empty()", "constructor": true, "full_signature": "private Empty()", "identifier": "Empty", "modifiers": "private", "parameters": "()", "return": "", "signature": " Empty()", "testcase": false }, { "class_method_signature": "Empty.get()", "constructor": false, "full_signature": "static public Empty get()", "identifier": "get", "modifiers": "static public", "parameters": "()", "return": "Empty", "signature": "Empty get()", "testcase": false }, { "class_method_signature": "Empty.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Empty.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Empty.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Empty.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Empty.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Empty.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Empty.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE derive(Symbol s) {\n return empty;\n }", "class_method_signature": "Empty.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "invocations": [], "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_8
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Atom c;", "type": "Atom", "var_name": "c" }, { "declarator": "a_or_b", "modifier": "private", "original_string": "private Or a_or_b;", "type": "Or", "var_name": "a_or_b" }, { "declarator": "a_or_c", "modifier": "private", "original_string": "private Or a_or_c;", "type": "Or", "var_name": "a_or_c" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/OrTest.java", "identifier": "OrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNormalize() {\n {\n ArrayList<LTLFormula> orElements = new ArrayList<LTLFormula>(\n Arrays.asList(new Negation(a), new Negation(b)));\n Collections.sort(orElements);\n And expected = new And(orElements);\n assertEquals(expected, a_or_b.copy().normalize(true));\n }\n assertEquals(makeOr(a, c), a_or_c.normalize(false));\n }", "class_method_signature": "OrTest.testNormalize()", "constructor": false, "full_signature": "@Test public void testNormalize()", "identifier": "testNormalize", "invocations": [ "asList", "sort", "assertEquals", "normalize", "copy", "assertEquals", "makeOr", "normalize" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testNormalize()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/Or.java", "identifier": "Or", "interfaces": "", "methods": [ { "class_method_signature": "Or.Or(ArrayList<LTLFormula> children)", "constructor": true, "full_signature": "public Or(ArrayList<LTLFormula> children)", "identifier": "Or", "modifiers": "public", "parameters": "(ArrayList<LTLFormula> children)", "return": "", "signature": " Or(ArrayList<LTLFormula> children)", "testcase": false }, { "class_method_signature": "Or.getLTLType()", "constructor": false, "full_signature": "public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "Or.flatten()", "constructor": false, "full_signature": "private void flatten()", "identifier": "flatten", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void flatten()", "testcase": false }, { "class_method_signature": "Or.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }, { "class_method_signature": "Or.getNegation(int i, boolean b)", "constructor": false, "full_signature": "private LTLFormula getNegation(int i, boolean b)", "identifier": "getNegation", "modifiers": "private", "parameters": "(int i, boolean b)", "return": "LTLFormula", "signature": "LTLFormula getNegation(int i, boolean b)", "testcase": false }, { "class_method_signature": "Or.normalize(boolean b)", "constructor": false, "full_signature": "protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "public LTLFormula copy()", "identifier": "copy", "modifiers": "public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "Or.toSetForm()", "constructor": false, "full_signature": "public LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "identifier": "toSetForm", "modifiers": "public", "parameters": "()", "return": "LinkedHashSet<LinkedHashSet<LTLFormula>>", "signature": "LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "testcase": false }, { "class_method_signature": "Or.d(HashMap<LTLFormula, ATransition> D)", "constructor": false, "full_signature": "public ATransition d(HashMap<LTLFormula, ATransition> D)", "identifier": "d", "modifiers": "public", "parameters": "(HashMap<LTLFormula, ATransition> D)", "return": "ATransition", "signature": "ATransition d(HashMap<LTLFormula, ATransition> D)", "testcase": false }, { "class_method_signature": "Or.main(String args[])", "constructor": false, "full_signature": "public static void main(String args[])", "identifier": "main", "modifiers": "public static", "parameters": "(String args[])", "return": "void", "signature": "void main(String args[])", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "protected LTLFormula normalize(boolean b) {\n if(b) {\n flatten();\n //because b is true we are below a negation\n //negate all the children and create a \n //new And containing the negated children\n //(And is the dual of Or)\n for(int i = 0; i < children.size(); ++i){\n children.set(i, getNegation(i, true));\n }\n return new And(children);\n }\n else {\n for(int i = 0; i < children.size(); ++i){\n children.set(i, getNegation(i, false));\n }\n return this;\n }\n }", "class_method_signature": "Or.normalize(boolean b)", "constructor": false, "full_signature": "protected LTLFormula normalize(boolean b)", "identifier": "normalize", "invocations": [ "flatten", "size", "set", "getNegation", "size", "set", "getNegation" ], "modifiers": "protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_42
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aOrb", "modifier": "private", "original_string": "private ERE aOrb;", "type": "ERE", "var_name": "aOrb" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/OrTest.java", "identifier": "OrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquality() {\n \n ERE or_again = Or.get(new ArrayList<ERE>(Arrays.asList(a, b)));\n ERE or_reverse = Or.get(new ArrayList<ERE>(Arrays.asList(a, b)));\n \n assertEquals(aOrb, or_again);\n assertEquals(0, aOrb.compareTo(or_again));\n assertEquals(aOrb, or_reverse);\n assertEquals(0, aOrb.compareTo(or_reverse));\n }", "class_method_signature": "OrTest.testEquality()", "constructor": false, "full_signature": "@Test public void testEquality()", "identifier": "testEquality", "invocations": [ "get", "asList", "get", "asList", "assertEquals", "assertEquals", "compareTo", "assertEquals", "assertEquals", "compareTo" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testEquality()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Or.java", "identifier": "Or", "interfaces": "", "methods": [ { "class_method_signature": "Or.get(List<ERE> children)", "constructor": false, "full_signature": "static public ERE get(List<ERE> children)", "identifier": "get", "modifiers": "static public", "parameters": "(List<ERE> children)", "return": "ERE", "signature": "ERE get(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.Or(List<ERE> children)", "constructor": true, "full_signature": "private Or(List<ERE> children)", "identifier": "Or", "modifiers": "private", "parameters": "(List<ERE> children)", "return": "", "signature": " Or(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.simplify()", "constructor": false, "full_signature": "public ERE simplify()", "identifier": "simplify", "modifiers": "public", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Or.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Or.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Or.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Or.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "static public ERE get(List<ERE> children) {\n Or or = new Or(children);\n ERE ret = or.simplify();\n return ret;\n }", "class_method_signature": "Or.get(List<ERE> children)", "constructor": false, "full_signature": "static public ERE get(List<ERE> children)", "identifier": "get", "invocations": [ "simplify" ], "modifiers": "static public", "parameters": "(List<ERE> children)", "return": "ERE", "signature": "ERE get(List<ERE> children)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_15
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "a_x3", "modifier": "private", "original_string": "private ERE a_x3;", "type": "ERE", "var_name": "a_x3" }, { "declarator": "a_x5", "modifier": "private", "original_string": "private ERE a_x5;", "type": "ERE", "var_name": "a_x5" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/RepeatTest.java", "identifier": "RepeatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void inequalityTest() {\n ERE a_x10 = Repeat.get(a, 10);\n Symbol b = Symbol.get(\"b\");\n ERE b_x5 = Repeat.get(b, 5);\n \n assertFalse(a_x5.equals(a_x10));\n assertFalse(0 == a_x5.compareTo(a_x10));\n assertFalse(a_x5.equals(b_x5));\n assertFalse(0 == a_x5.compareTo(b_x5));\n }", "class_method_signature": "RepeatTest.inequalityTest()", "constructor": false, "full_signature": "@Test public void inequalityTest()", "identifier": "inequalityTest", "invocations": [ "get", "get", "get", "assertFalse", "equals", "assertFalse", "compareTo", "assertFalse", "equals", "assertFalse", "compareTo" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void inequalityTest()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Repeat.java", "identifier": "Repeat", "interfaces": "", "methods": [ { "class_method_signature": "Repeat.get(ERE child, int num)", "constructor": false, "full_signature": "public static ERE get(ERE child, int num)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child, int num)", "return": "ERE", "signature": "ERE get(ERE child, int num)", "testcase": false } ], "superclass": "" }
{ "body": "public static ERE get(ERE child, int num) {\n /* \n * We won't even use derive here or even\n * subclass ERE, we just immediately \n * return a new concatenation list of the child repeated\n * num times.\n */\n if(num < 1) {\n return Empty.get();\n } else if(num == 1) {\n return child;\n } else {\n ERE ret = Concat.get(child, child);\n for(int i = 2; i < num; ++i) {\n ret = Concat.get(child, ret); \n } \n return ret;\n }\n }", "class_method_signature": "Repeat.get(ERE child, int num)", "constructor": false, "full_signature": "public static ERE get(ERE child, int num)", "identifier": "get", "invocations": [ "get", "get", "get" ], "modifiers": "public static", "parameters": "(ERE child, int num)", "return": "ERE", "signature": "ERE get(ERE child, int num)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_54
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aStar", "modifier": "private", "original_string": "private ERE aStar;", "type": "ERE", "var_name": "aStar" }, { "declarator": "bStar", "modifier": "private", "original_string": "private ERE bStar;", "type": "ERE", "var_name": "bStar" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/KleeneTest.java", "identifier": "KleeneTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDerive() {\n Epsilon epsilon = Epsilon.get();\n Empty empty = Empty.get();\n \n assertEquals(aStar, aStar.derive(a));\n assertEquals(empty, aStar.derive(b));\n \n ERE ab = Concat.get(a, b);\n ERE ab_Star = Kleene.get(ab);\n assertEquals(ab_Star, ab_Star.derive(a).derive(b));\n assertEquals(empty, ab_Star.derive(b));\n }", "class_method_signature": "KleeneTest.testDerive()", "constructor": false, "full_signature": "@Test public void testDerive()", "identifier": "testDerive", "invocations": [ "get", "get", "assertEquals", "derive", "assertEquals", "derive", "get", "get", "assertEquals", "derive", "derive", "assertEquals", "derive" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testDerive()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Kleene.java", "identifier": "Kleene", "interfaces": "", "methods": [ { "class_method_signature": "Kleene.get(ERE child)", "constructor": false, "full_signature": "public static ERE get(ERE child)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child)", "return": "ERE", "signature": "ERE get(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.Kleene(ERE child)", "constructor": true, "full_signature": "private Kleene(ERE child)", "identifier": "Kleene", "modifiers": "private", "parameters": "(ERE child)", "return": "", "signature": " Kleene(ERE child)", "testcase": false }, { "class_method_signature": "Kleene.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Kleene.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Kleene.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Kleene.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Kleene.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE derive(Symbol s) {\n return Concat.get(children.get(0).derive(s), copy());\n }", "class_method_signature": "Kleene.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "invocations": [ "get", "derive", "get", "copy" ], "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_23
{ "fields": [ { "declarator": "NEWLINE = System.getProperty(\"line.separator\")", "modifier": "public static final", "original_string": "public static final String NEWLINE = System.getProperty(\"line.separator\");", "type": "String", "var_name": "NEWLINE" }, { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/FSMTest.java", "identifier": "FSMTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConcat() {\n ERE ab = Concat.get(a, b);\n\n String fsm = \"s0 [\" + NEWLINE + \" a -> s1\" + NEWLINE + \"]\" + NEWLINE +\n \"s1 [\" + NEWLINE + \" b -> s2\" + NEWLINE + \"]\" + NEWLINE +\n \"s2 [\" + NEWLINE + \"]\" + NEWLINE +\n \"alias match = s2 \" + NEWLINE;\n assertEquals(fsm, printFSM(ab, a, b));\n }", "class_method_signature": "FSMTest.testConcat()", "constructor": false, "full_signature": "@Test public void testConcat()", "identifier": "testConcat", "invocations": [ "get", "assertEquals", "printFSM" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testConcat()", "testcase": true }
{ "fields": [ { "declarator": "contents", "modifier": "public", "original_string": "public LinkedHashMap<ERE, LinkedHashMap<Symbol, ERE>> contents;", "type": "LinkedHashMap<ERE, LinkedHashMap<Symbol, ERE>>", "var_name": "contents" }, { "declarator": "match", "modifier": "public", "original_string": "public LinkedHashSet<ERE> match;", "type": "LinkedHashSet<ERE>", "var_name": "match" }, { "declarator": "count = 0", "modifier": "private", "original_string": "private int count = 0;", "type": "int", "var_name": "count" }, { "declarator": "number", "modifier": "private", "original_string": "private LinkedHashMap<ERE, String> number;", "type": "LinkedHashMap<ERE, String>", "var_name": "number" }, { "declarator": "start", "modifier": "private", "original_string": "private ERE start;", "type": "ERE", "var_name": "start" }, { "declarator": "events", "modifier": "private", "original_string": "private Symbol[] events;", "type": "Symbol[]", "var_name": "events" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/FSM.java", "identifier": "FSM", "interfaces": "", "methods": [ { "class_method_signature": "FSM.get(ERE input, Symbol[] events)", "constructor": false, "full_signature": "static public FSM get(ERE input, Symbol[] events)", "identifier": "get", "modifiers": "static public", "parameters": "(ERE input, Symbol[] events)", "return": "FSM", "signature": "FSM get(ERE input, Symbol[] events)", "testcase": false }, { "class_method_signature": "FSM.FSM(ERE input, Symbol[] events)", "constructor": true, "full_signature": "private FSM(ERE input, Symbol[] events)", "identifier": "FSM", "modifiers": "private", "parameters": "(ERE input, Symbol[] events)", "return": "", "signature": " FSM(ERE input, Symbol[] events)", "testcase": false }, { "class_method_signature": "FSM.generate(ERE state)", "constructor": false, "full_signature": "private void generate(ERE state)", "identifier": "generate", "modifiers": "private", "parameters": "(ERE state)", "return": "void", "signature": "void generate(ERE state)", "testcase": false }, { "class_method_signature": "FSM.print(PrintStream p)", "constructor": false, "full_signature": "public void print(PrintStream p)", "identifier": "print", "modifiers": "public", "parameters": "(PrintStream p)", "return": "void", "signature": "void print(PrintStream p)", "testcase": false }, { "class_method_signature": "FSM.printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "constructor": false, "full_signature": "private void printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "identifier": "printTransition", "modifiers": "private", "parameters": "(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "return": "void", "signature": "void printTransition(LinkedHashMap<Symbol, ERE> trans, PrintStream p)", "testcase": false } ], "superclass": "" }
{ "body": "static public FSM get(ERE input, Symbol[] events) {\n return new FSM(input, events);\n }", "class_method_signature": "FSM.get(ERE input, Symbol[] events)", "constructor": false, "full_signature": "static public FSM get(ERE input, Symbol[] events)", "identifier": "get", "invocations": [], "modifiers": "static public", "parameters": "(ERE input, Symbol[] events)", "return": "FSM", "signature": "FSM get(ERE input, Symbol[] events)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_62
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a, b, c, d;", "type": "Symbol", "var_name": "a" }, { "declarator": "empty", "modifier": "private", "original_string": "private Sequence empty;", "type": "Sequence", "var_name": "empty" }, { "declarator": "sequenceAB", "modifier": "private", "original_string": "private Sequence sequenceAB;", "type": "Sequence", "var_name": "sequenceAB" }, { "declarator": "sequenceABC", "modifier": "private", "original_string": "private Sequence sequenceABC;", "type": "Sequence", "var_name": "sequenceABC" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/SequenceTest.java", "identifier": "SequenceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n Sequence[] copies = { new Sequence(sequenceABC), sequenceABC.copy() };\n for(Sequence sequenceABCD : copies) {\n assertEquals(3, sequenceABCD.size());\n assertEquals(sequenceABC, sequenceABCD);\n \n sequenceABCD.add(d);\n assertEquals(4, sequenceABCD.size());\n assertEquals(3, sequenceABC.size());\n assertFalse(sequenceABC.equals(sequenceABCD));\n }\n }", "class_method_signature": "SequenceTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "copy", "assertEquals", "size", "assertEquals", "add", "assertEquals", "size", "assertEquals", "size", "assertFalse", "equals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/Sequence.java", "identifier": "Sequence", "interfaces": "implements AbstractSequence", "methods": [ { "class_method_signature": "Sequence.Sequence(int size)", "constructor": true, "full_signature": "public Sequence(int size)", "identifier": "Sequence", "modifiers": "public", "parameters": "(int size)", "return": "", "signature": " Sequence(int size)", "testcase": false }, { "class_method_signature": "Sequence.Sequence()", "constructor": true, "full_signature": "public Sequence()", "identifier": "Sequence", "modifiers": "public", "parameters": "()", "return": "", "signature": " Sequence()", "testcase": false }, { "class_method_signature": "Sequence.Sequence(ArrayList<Symbol> symbols)", "constructor": true, "full_signature": "public Sequence(ArrayList<Symbol> symbols)", "identifier": "Sequence", "modifiers": "public", "parameters": "(ArrayList<Symbol> symbols)", "return": "", "signature": " Sequence(ArrayList<Symbol> symbols)", "testcase": false }, { "class_method_signature": "Sequence.toString()", "constructor": false, "full_signature": "public String toString()", "identifier": "toString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Sequence.toDotString()", "constructor": false, "full_signature": "public String toDotString()", "identifier": "toDotString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toDotString()", "testcase": false }, { "class_method_signature": "Sequence.copy()", "constructor": false, "full_signature": "public Sequence copy()", "identifier": "copy", "modifiers": "public", "parameters": "()", "return": "Sequence", "signature": "Sequence copy()", "testcase": false }, { "class_method_signature": "Sequence.printSequenceArray(Sequence[] arr)", "constructor": false, "full_signature": "public static void printSequenceArray(Sequence[] arr)", "identifier": "printSequenceArray", "modifiers": "public static", "parameters": "(Sequence[] arr)", "return": "void", "signature": "void printSequenceArray(Sequence[] arr)", "testcase": false }, { "class_method_signature": "Sequence.dotLength()", "constructor": false, "full_signature": "@Override public int dotLength()", "identifier": "dotLength", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int dotLength()", "testcase": false }, { "class_method_signature": "Sequence.getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum)", "constructor": false, "full_signature": "@Override public void getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum)", "identifier": "getImpl", "modifiers": "@Override public", "parameters": "(StringBuilder sb, Map<Symbol, Integer> symToNum)", "return": "void", "signature": "void getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum)", "testcase": false } ], "superclass": "extends ArrayList<Symbol>" }
{ "body": "public Sequence copy() {\n Sequence ret = new Sequence(size());\n for(Symbol s : this) {\n ret.add(s);\n }\n return ret;\n }", "class_method_signature": "Sequence.copy()", "constructor": false, "full_signature": "public Sequence copy()", "identifier": "copy", "invocations": [ "size", "add" ], "modifiers": "public", "parameters": "()", "return": "Sequence", "signature": "Sequence copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_35
{ "fields": [ { "declarator": "one", "modifier": "private", "original_string": "private Symbol one;", "type": "Symbol", "var_name": "one" }, { "declarator": "two", "modifier": "private", "original_string": "private Symbol two;", "type": "Symbol", "var_name": "two" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/SymbolTest.java", "identifier": "SymbolTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDerive() {\n Empty empty = Empty.get();\n Epsilon epsilon = Epsilon.get();\n \n assertEquals(epsilon, one.derive(one));\n assertEquals(empty, one.derive(two));\n assertEquals(epsilon, two.derive(two));\n assertEquals(empty, two.derive(one));\n }", "class_method_signature": "SymbolTest.testDerive()", "constructor": false, "full_signature": "@Test public void testDerive()", "identifier": "testDerive", "invocations": [ "get", "get", "assertEquals", "derive", "assertEquals", "derive", "assertEquals", "derive", "assertEquals", "derive" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testDerive()", "testcase": true }
{ "fields": [ { "declarator": "stringToRef = new HashMap<String, Symbol>()", "modifier": "private static final", "original_string": "private static final HashMap<String, Symbol> stringToRef = new HashMap<String, Symbol>();", "type": "HashMap<String, Symbol>", "var_name": "stringToRef" }, { "declarator": "refToString = new HashMap<Symbol, String>()", "modifier": "private static final", "original_string": "private static final HashMap<Symbol, String> refToString = new HashMap<Symbol, String>();", "type": "HashMap<Symbol, String>", "var_name": "refToString" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Symbol.java", "identifier": "Symbol", "interfaces": "", "methods": [ { "class_method_signature": "Symbol.Symbol()", "constructor": true, "full_signature": "private Symbol()", "identifier": "Symbol", "modifiers": "private", "parameters": "()", "return": "", "signature": " Symbol()", "testcase": false }, { "class_method_signature": "Symbol.get(String name)", "constructor": false, "full_signature": "static public Symbol get(String name)", "identifier": "get", "modifiers": "static public", "parameters": "(String name)", "return": "Symbol", "signature": "Symbol get(String name)", "testcase": false }, { "class_method_signature": "Symbol.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Symbol.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Symbol.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Symbol.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Symbol.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Symbol.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Symbol.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE derive(Symbol s) {\n if(this == s) {\n return Epsilon.get();\n }\n return Empty.get();\n }", "class_method_signature": "Symbol.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "invocations": [ "get", "get" ], "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_4
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/AtomTest.java", "identifier": "AtomTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n LTLFormula a_copy = a.copy();\n \n assertEquals(a, a_copy);\n assertEquals(0, a.compareTo(a_copy));\n assertEquals(a.hashCode(), a_copy.hashCode());\n }", "class_method_signature": "AtomTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "copy", "assertEquals", "assertEquals", "compareTo", "assertEquals", "hashCode", "hashCode" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/Atom.java", "identifier": "Atom", "interfaces": "", "methods": [ { "class_method_signature": "Atom.Atom()", "constructor": true, "full_signature": "private Atom()", "identifier": "Atom", "modifiers": "private", "parameters": "()", "return": "", "signature": " Atom()", "testcase": false }, { "class_method_signature": "Atom.get(String name)", "constructor": false, "full_signature": "static public Atom get(String name)", "identifier": "get", "modifiers": "static public", "parameters": "(String name)", "return": "Atom", "signature": "Atom get(String name)", "testcase": false }, { "class_method_signature": "Atom.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "Atom.lower()", "constructor": false, "full_signature": "@Override protected LTLFormula lower()", "identifier": "lower", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula lower()", "testcase": false }, { "class_method_signature": "Atom.normalize(boolean b)", "constructor": false, "full_signature": "@Override protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "@Override protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "Atom.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }, { "class_method_signature": "Atom.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Atom.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Atom.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "Atom.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Atom.subFormulae(LinkedHashSet acc)", "constructor": false, "full_signature": "@Override public void subFormulae(LinkedHashSet acc)", "identifier": "subFormulae", "modifiers": "@Override public", "parameters": "(LinkedHashSet acc)", "return": "void", "signature": "void subFormulae(LinkedHashSet acc)", "testcase": false }, { "class_method_signature": "Atom.d(HashMap<LTLFormula, ATransition> D)", "constructor": false, "full_signature": "@Override public ATransition d(HashMap<LTLFormula, ATransition> D)", "identifier": "d", "modifiers": "@Override public", "parameters": "(HashMap<LTLFormula, ATransition> D)", "return": "ATransition", "signature": "ATransition d(HashMap<LTLFormula, ATransition> D)", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n public LTLFormula copy(){\n return this;\n }", "class_method_signature": "Atom.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_19
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Symbol c;", "type": "Symbol", "var_name": "c" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/ConcatTest.java", "identifier": "ConcatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testContainsEpsilon() {\n Epsilon epsilon = Epsilon.get();\n \n assertFalse(Concat.get(a, b).containsEpsilon());\n assertFalse(Concat.get(a, epsilon).containsEpsilon());\n assertFalse(Concat.get(epsilon, b).containsEpsilon());\n assertTrue(Concat.get(epsilon, epsilon).containsEpsilon());\n }", "class_method_signature": "ConcatTest.testContainsEpsilon()", "constructor": false, "full_signature": "@Test public void testContainsEpsilon()", "identifier": "testContainsEpsilon", "invocations": [ "get", "assertFalse", "containsEpsilon", "get", "assertFalse", "containsEpsilon", "get", "assertFalse", "containsEpsilon", "get", "assertTrue", "containsEpsilon", "get" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testContainsEpsilon()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Concat.java", "identifier": "Concat", "interfaces": "", "methods": [ { "class_method_signature": "Concat.get(ERE left, ERE right)", "constructor": false, "full_signature": "public static ERE get(ERE left, ERE right)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE left, ERE right)", "return": "ERE", "signature": "ERE get(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.Concat(ERE left, ERE right)", "constructor": true, "full_signature": "private Concat(ERE left, ERE right)", "identifier": "Concat", "modifiers": "private", "parameters": "(ERE left, ERE right)", "return": "", "signature": " Concat(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.simplify()", "constructor": false, "full_signature": "private ERE simplify()", "identifier": "simplify", "modifiers": "private", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Concat.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Concat.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Concat.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Concat.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Concat.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public boolean containsEpsilon() {\n for(ERE child : children) {\n if(!child.containsEpsilon()) {\n return false;\n }\n }\n return true;\n }", "class_method_signature": "Concat.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "invocations": [ "containsEpsilon" ], "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_58
{ "fields": [ { "declarator": "epsilon", "modifier": "private", "original_string": "private Epsilon epsilon;", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/EpsilonTest.java", "identifier": "EpsilonTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testContainsEpsilon() {\n assertTrue(epsilon.containsEpsilon());\n }", "class_method_signature": "EpsilonTest.testContainsEpsilon()", "constructor": false, "full_signature": "@Test public void testContainsEpsilon()", "identifier": "testContainsEpsilon", "invocations": [ "assertTrue", "containsEpsilon" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testContainsEpsilon()", "testcase": true }
{ "fields": [ { "declarator": "epsilon = new Epsilon()", "modifier": "private static", "original_string": "private static Epsilon epsilon = new Epsilon();", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Epsilon.java", "identifier": "Epsilon", "interfaces": "", "methods": [ { "class_method_signature": "Epsilon.Epsilon()", "constructor": true, "full_signature": "private Epsilon()", "identifier": "Epsilon", "modifiers": "private", "parameters": "()", "return": "", "signature": " Epsilon()", "testcase": false }, { "class_method_signature": "Epsilon.get()", "constructor": false, "full_signature": "static public Epsilon get()", "identifier": "get", "modifiers": "static public", "parameters": "()", "return": "Epsilon", "signature": "Epsilon get()", "testcase": false }, { "class_method_signature": "Epsilon.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Epsilon.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Epsilon.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Epsilon.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Epsilon.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public boolean containsEpsilon() {\n return true;\n }", "class_method_signature": "Epsilon.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_59
{ "fields": [ { "declarator": "epsilon", "modifier": "private", "original_string": "private Epsilon epsilon;", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/EpsilonTest.java", "identifier": "EpsilonTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCopy() {\n ERE copy = epsilon.copy();\n assertEquals(epsilon, copy);\n }", "class_method_signature": "EpsilonTest.testCopy()", "constructor": false, "full_signature": "@Test public void testCopy()", "identifier": "testCopy", "invocations": [ "copy", "assertEquals" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testCopy()", "testcase": true }
{ "fields": [ { "declarator": "epsilon = new Epsilon()", "modifier": "private static", "original_string": "private static Epsilon epsilon = new Epsilon();", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Epsilon.java", "identifier": "Epsilon", "interfaces": "", "methods": [ { "class_method_signature": "Epsilon.Epsilon()", "constructor": true, "full_signature": "private Epsilon()", "identifier": "Epsilon", "modifiers": "private", "parameters": "()", "return": "", "signature": " Epsilon()", "testcase": false }, { "class_method_signature": "Epsilon.get()", "constructor": false, "full_signature": "static public Epsilon get()", "identifier": "get", "modifiers": "static public", "parameters": "()", "return": "Epsilon", "signature": "Epsilon get()", "testcase": false }, { "class_method_signature": "Epsilon.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Epsilon.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Epsilon.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Epsilon.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Epsilon.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE copy() {\n return this;\n }", "class_method_signature": "Epsilon.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_18
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Symbol c;", "type": "Symbol", "var_name": "c" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/ConcatTest.java", "identifier": "ConcatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInequality() {\n ERE one = Concat.get(a, b);\n ERE two = Concat.get(a, c);\n \n assertFalse(one.equals(two));\n assertFalse(0 == one.compareTo(two));\n assertFalse(one.equals(a));\n assertFalse(0 == one.compareTo(a));\n }", "class_method_signature": "ConcatTest.testInequality()", "constructor": false, "full_signature": "@Test public void testInequality()", "identifier": "testInequality", "invocations": [ "get", "get", "assertFalse", "equals", "assertFalse", "compareTo", "assertFalse", "equals", "assertFalse", "compareTo" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testInequality()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Concat.java", "identifier": "Concat", "interfaces": "", "methods": [ { "class_method_signature": "Concat.get(ERE left, ERE right)", "constructor": false, "full_signature": "public static ERE get(ERE left, ERE right)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE left, ERE right)", "return": "ERE", "signature": "ERE get(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.Concat(ERE left, ERE right)", "constructor": true, "full_signature": "private Concat(ERE left, ERE right)", "identifier": "Concat", "modifiers": "private", "parameters": "(ERE left, ERE right)", "return": "", "signature": " Concat(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.simplify()", "constructor": false, "full_signature": "private ERE simplify()", "identifier": "simplify", "modifiers": "private", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Concat.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Concat.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Concat.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Concat.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Concat.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "public static ERE get(ERE left, ERE right) {\n Concat cat = new Concat(left, right);\n ERE ret = cat.simplify();\n return ret;\n }", "class_method_signature": "Concat.get(ERE left, ERE right)", "constructor": false, "full_signature": "public static ERE get(ERE left, ERE right)", "identifier": "get", "invocations": [ "simplify" ], "modifiers": "public static", "parameters": "(ERE left, ERE right)", "return": "ERE", "signature": "ERE get(ERE left, ERE right)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_5
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/AtomTest.java", "identifier": "AtomTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToString() {\n assertEquals(\"a\", a.toString());\n assertEquals(\"b\", b.toString());\n }", "class_method_signature": "AtomTest.testToString()", "constructor": false, "full_signature": "@Test public void testToString()", "identifier": "testToString", "invocations": [ "assertEquals", "toString", "assertEquals", "toString" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testToString()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/Atom.java", "identifier": "Atom", "interfaces": "", "methods": [ { "class_method_signature": "Atom.Atom()", "constructor": true, "full_signature": "private Atom()", "identifier": "Atom", "modifiers": "private", "parameters": "()", "return": "", "signature": " Atom()", "testcase": false }, { "class_method_signature": "Atom.get(String name)", "constructor": false, "full_signature": "static public Atom get(String name)", "identifier": "get", "modifiers": "static public", "parameters": "(String name)", "return": "Atom", "signature": "Atom get(String name)", "testcase": false }, { "class_method_signature": "Atom.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "Atom.lower()", "constructor": false, "full_signature": "@Override protected LTLFormula lower()", "identifier": "lower", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula lower()", "testcase": false }, { "class_method_signature": "Atom.normalize(boolean b)", "constructor": false, "full_signature": "@Override protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "@Override protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "Atom.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }, { "class_method_signature": "Atom.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Atom.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Atom.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "Atom.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Atom.subFormulae(LinkedHashSet acc)", "constructor": false, "full_signature": "@Override public void subFormulae(LinkedHashSet acc)", "identifier": "subFormulae", "modifiers": "@Override public", "parameters": "(LinkedHashSet acc)", "return": "void", "signature": "void subFormulae(LinkedHashSet acc)", "testcase": false }, { "class_method_signature": "Atom.d(HashMap<LTLFormula, ATransition> D)", "constructor": false, "full_signature": "@Override public ATransition d(HashMap<LTLFormula, ATransition> D)", "identifier": "d", "modifiers": "@Override public", "parameters": "(HashMap<LTLFormula, ATransition> D)", "return": "ATransition", "signature": "ATransition d(HashMap<LTLFormula, ATransition> D)", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n public String toString(){\n return LTLFormula.refToString.get(this);\n }", "class_method_signature": "Atom.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [ "get" ], "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_34
{ "fields": [ { "declarator": "one", "modifier": "private", "original_string": "private Symbol one;", "type": "Symbol", "var_name": "one" }, { "declarator": "two", "modifier": "private", "original_string": "private Symbol two;", "type": "Symbol", "var_name": "two" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/SymbolTest.java", "identifier": "SymbolTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testContainsEpsilon() {\n assertFalse(one.containsEpsilon());\n }", "class_method_signature": "SymbolTest.testContainsEpsilon()", "constructor": false, "full_signature": "@Test public void testContainsEpsilon()", "identifier": "testContainsEpsilon", "invocations": [ "assertFalse", "containsEpsilon" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testContainsEpsilon()", "testcase": true }
{ "fields": [ { "declarator": "stringToRef = new HashMap<String, Symbol>()", "modifier": "private static final", "original_string": "private static final HashMap<String, Symbol> stringToRef = new HashMap<String, Symbol>();", "type": "HashMap<String, Symbol>", "var_name": "stringToRef" }, { "declarator": "refToString = new HashMap<Symbol, String>()", "modifier": "private static final", "original_string": "private static final HashMap<Symbol, String> refToString = new HashMap<Symbol, String>();", "type": "HashMap<Symbol, String>", "var_name": "refToString" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Symbol.java", "identifier": "Symbol", "interfaces": "", "methods": [ { "class_method_signature": "Symbol.Symbol()", "constructor": true, "full_signature": "private Symbol()", "identifier": "Symbol", "modifiers": "private", "parameters": "()", "return": "", "signature": " Symbol()", "testcase": false }, { "class_method_signature": "Symbol.get(String name)", "constructor": false, "full_signature": "static public Symbol get(String name)", "identifier": "get", "modifiers": "static public", "parameters": "(String name)", "return": "Symbol", "signature": "Symbol get(String name)", "testcase": false }, { "class_method_signature": "Symbol.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Symbol.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Symbol.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Symbol.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Symbol.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Symbol.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Symbol.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public boolean containsEpsilon() {\n return false;\n }", "class_method_signature": "Symbol.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_63
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a, b, c, d;", "type": "Symbol", "var_name": "a" }, { "declarator": "empty", "modifier": "private", "original_string": "private Sequence empty;", "type": "Sequence", "var_name": "empty" }, { "declarator": "sequenceAB", "modifier": "private", "original_string": "private Sequence sequenceAB;", "type": "Sequence", "var_name": "sequenceAB" }, { "declarator": "sequenceABC", "modifier": "private", "original_string": "private Sequence sequenceABC;", "type": "Sequence", "var_name": "sequenceABC" } ], "file": "plugins_logicrepository/srs/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/SequenceTest.java", "identifier": "SequenceTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDotLength() {\n assertEquals(8, empty.dotLength());\n assertEquals(2, sequenceAB.dotLength());\n assertEquals(3, sequenceABC.dotLength());\n }", "class_method_signature": "SequenceTest.testDotLength()", "constructor": false, "full_signature": "@Test public void testDotLength()", "identifier": "testDotLength", "invocations": [ "assertEquals", "dotLength", "assertEquals", "dotLength", "assertEquals", "dotLength" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testDotLength()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/srs/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/srs/Sequence.java", "identifier": "Sequence", "interfaces": "implements AbstractSequence", "methods": [ { "class_method_signature": "Sequence.Sequence(int size)", "constructor": true, "full_signature": "public Sequence(int size)", "identifier": "Sequence", "modifiers": "public", "parameters": "(int size)", "return": "", "signature": " Sequence(int size)", "testcase": false }, { "class_method_signature": "Sequence.Sequence()", "constructor": true, "full_signature": "public Sequence()", "identifier": "Sequence", "modifiers": "public", "parameters": "()", "return": "", "signature": " Sequence()", "testcase": false }, { "class_method_signature": "Sequence.Sequence(ArrayList<Symbol> symbols)", "constructor": true, "full_signature": "public Sequence(ArrayList<Symbol> symbols)", "identifier": "Sequence", "modifiers": "public", "parameters": "(ArrayList<Symbol> symbols)", "return": "", "signature": " Sequence(ArrayList<Symbol> symbols)", "testcase": false }, { "class_method_signature": "Sequence.toString()", "constructor": false, "full_signature": "public String toString()", "identifier": "toString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Sequence.toDotString()", "constructor": false, "full_signature": "public String toDotString()", "identifier": "toDotString", "modifiers": "public", "parameters": "()", "return": "String", "signature": "String toDotString()", "testcase": false }, { "class_method_signature": "Sequence.copy()", "constructor": false, "full_signature": "public Sequence copy()", "identifier": "copy", "modifiers": "public", "parameters": "()", "return": "Sequence", "signature": "Sequence copy()", "testcase": false }, { "class_method_signature": "Sequence.printSequenceArray(Sequence[] arr)", "constructor": false, "full_signature": "public static void printSequenceArray(Sequence[] arr)", "identifier": "printSequenceArray", "modifiers": "public static", "parameters": "(Sequence[] arr)", "return": "void", "signature": "void printSequenceArray(Sequence[] arr)", "testcase": false }, { "class_method_signature": "Sequence.dotLength()", "constructor": false, "full_signature": "@Override public int dotLength()", "identifier": "dotLength", "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int dotLength()", "testcase": false }, { "class_method_signature": "Sequence.getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum)", "constructor": false, "full_signature": "@Override public void getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum)", "identifier": "getImpl", "modifiers": "@Override public", "parameters": "(StringBuilder sb, Map<Symbol, Integer> symToNum)", "return": "void", "signature": "void getImpl(StringBuilder sb, Map<Symbol, Integer> symToNum)", "testcase": false } ], "superclass": "extends ArrayList<Symbol>" }
{ "body": "@Override\n public int dotLength() {\n if(isEmpty()) return 8;\n int len = 0;\n for(Symbol s: this) {\n len += s.length();\n }\n return len;\n }", "class_method_signature": "Sequence.dotLength()", "constructor": false, "full_signature": "@Override public int dotLength()", "identifier": "dotLength", "invocations": [ "isEmpty", "length" ], "modifiers": "@Override public", "parameters": "()", "return": "int", "signature": "int dotLength()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_22
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Symbol c;", "type": "Symbol", "var_name": "c" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/ConcatTest.java", "identifier": "ConcatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDerive() {\n Epsilon epsilon = Epsilon.get();\n Empty empty = Empty.get();\n \n ERE ab = Concat.get(a, b);\n assertEquals(b, ab.derive(a));\n assertEquals(empty, ab.derive(b));\n \n ERE aStar = Kleene.get(a);\n ERE aStarb = Concat.get(aStar, b);\n assertEquals(aStarb, aStarb.derive(a));\n assertEquals(epsilon, aStarb.derive(b));\n assertEquals(empty, aStarb.derive(c));\n }", "class_method_signature": "ConcatTest.testDerive()", "constructor": false, "full_signature": "@Test public void testDerive()", "identifier": "testDerive", "invocations": [ "get", "get", "get", "assertEquals", "derive", "assertEquals", "derive", "get", "get", "assertEquals", "derive", "assertEquals", "derive", "assertEquals", "derive" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testDerive()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Concat.java", "identifier": "Concat", "interfaces": "", "methods": [ { "class_method_signature": "Concat.get(ERE left, ERE right)", "constructor": false, "full_signature": "public static ERE get(ERE left, ERE right)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE left, ERE right)", "return": "ERE", "signature": "ERE get(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.Concat(ERE left, ERE right)", "constructor": true, "full_signature": "private Concat(ERE left, ERE right)", "identifier": "Concat", "modifiers": "private", "parameters": "(ERE left, ERE right)", "return": "", "signature": " Concat(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.simplify()", "constructor": false, "full_signature": "private ERE simplify()", "identifier": "simplify", "modifiers": "private", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Concat.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Concat.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Concat.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Concat.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Concat.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public ERE derive(Symbol s){\n ERE left = children.get(0);\n ERE right = children.get(1);\n if(left.containsEpsilon()) {\n ArrayList<ERE> orChildren = new ArrayList<ERE>(2);\n orChildren.add(Concat.get(left.derive(s), right.copy()));\n orChildren.add(right.derive(s));\n return Or.get(orChildren);\n }\n return Concat.get(left.derive(s), right.copy());\n }", "class_method_signature": "Concat.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "invocations": [ "get", "get", "containsEpsilon", "add", "get", "derive", "copy", "add", "derive", "get", "get", "derive", "copy" ], "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_55
{ "fields": [ { "declarator": "epsilon", "modifier": "private", "original_string": "private Epsilon epsilon;", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/EpsilonTest.java", "identifier": "EpsilonTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testType() {\n assertEquals(epsilon.getEREType(), EREType.EPS);\n }", "class_method_signature": "EpsilonTest.testType()", "constructor": false, "full_signature": "@Test public void testType()", "identifier": "testType", "invocations": [ "assertEquals", "getEREType" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testType()", "testcase": true }
{ "fields": [ { "declarator": "epsilon = new Epsilon()", "modifier": "private static", "original_string": "private static Epsilon epsilon = new Epsilon();", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Epsilon.java", "identifier": "Epsilon", "interfaces": "", "methods": [ { "class_method_signature": "Epsilon.Epsilon()", "constructor": true, "full_signature": "private Epsilon()", "identifier": "Epsilon", "modifiers": "private", "parameters": "()", "return": "", "signature": " Epsilon()", "testcase": false }, { "class_method_signature": "Epsilon.get()", "constructor": false, "full_signature": "static public Epsilon get()", "identifier": "get", "modifiers": "static public", "parameters": "()", "return": "Epsilon", "signature": "Epsilon get()", "testcase": false }, { "class_method_signature": "Epsilon.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Epsilon.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Epsilon.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Epsilon.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Epsilon.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public EREType getEREType() { \n return EREType.EPS;\n }", "class_method_signature": "Epsilon.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_14
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "a_x3", "modifier": "private", "original_string": "private ERE a_x3;", "type": "ERE", "var_name": "a_x3" }, { "declarator": "a_x5", "modifier": "private", "original_string": "private ERE a_x5;", "type": "ERE", "var_name": "a_x5" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/RepeatTest.java", "identifier": "RepeatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void equalityTest() {\n ERE a_x5_again = Repeat.get(a, 5);\n \n assertEquals(a_x5, a_x5_again);\n assertEquals(0, a_x5.compareTo(a_x5_again));\n }", "class_method_signature": "RepeatTest.equalityTest()", "constructor": false, "full_signature": "@Test public void equalityTest()", "identifier": "equalityTest", "invocations": [ "get", "assertEquals", "assertEquals", "compareTo" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void equalityTest()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Repeat.java", "identifier": "Repeat", "interfaces": "", "methods": [ { "class_method_signature": "Repeat.get(ERE child, int num)", "constructor": false, "full_signature": "public static ERE get(ERE child, int num)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE child, int num)", "return": "ERE", "signature": "ERE get(ERE child, int num)", "testcase": false } ], "superclass": "" }
{ "body": "public static ERE get(ERE child, int num) {\n /* \n * We won't even use derive here or even\n * subclass ERE, we just immediately \n * return a new concatenation list of the child repeated\n * num times.\n */\n if(num < 1) {\n return Empty.get();\n } else if(num == 1) {\n return child;\n } else {\n ERE ret = Concat.get(child, child);\n for(int i = 2; i < num; ++i) {\n ret = Concat.get(child, ret); \n } \n return ret;\n }\n }", "class_method_signature": "Repeat.get(ERE child, int num)", "constructor": false, "full_signature": "public static ERE get(ERE child, int num)", "identifier": "get", "invocations": [ "get", "get", "get" ], "modifiers": "public static", "parameters": "(ERE child, int num)", "return": "ERE", "signature": "ERE get(ERE child, int num)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_9
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Atom c;", "type": "Atom", "var_name": "c" }, { "declarator": "a_or_b", "modifier": "private", "original_string": "private Or a_or_b;", "type": "Or", "var_name": "a_or_b" }, { "declarator": "a_or_c", "modifier": "private", "original_string": "private Or a_or_c;", "type": "Or", "var_name": "a_or_c" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/OrTest.java", "identifier": "OrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testReduce() {\n {\n Or duplicate = makeOr(a, b, c, a, b, c);\n assertEquals(makeOr(a, b, c), duplicate.reduce());\n }\n {\n Or combined = makeOr(a_or_b,a_or_c);\n assertEquals(makeOr(a, b, c), combined.reduce());\n }\n {\n Or withTrue = makeOr(a, b, True.get());\n assertEquals(True.get(), withTrue.reduce());\n }\n {\n Or withFalse = makeOr(a, b, False.get());\n assertEquals(a_or_b, withFalse.reduce());\n }\n }", "class_method_signature": "OrTest.testReduce()", "constructor": false, "full_signature": "@Test public void testReduce()", "identifier": "testReduce", "invocations": [ "makeOr", "assertEquals", "makeOr", "reduce", "makeOr", "assertEquals", "makeOr", "reduce", "makeOr", "get", "assertEquals", "get", "reduce", "makeOr", "get", "assertEquals", "reduce" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testReduce()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/Or.java", "identifier": "Or", "interfaces": "", "methods": [ { "class_method_signature": "Or.Or(ArrayList<LTLFormula> children)", "constructor": true, "full_signature": "public Or(ArrayList<LTLFormula> children)", "identifier": "Or", "modifiers": "public", "parameters": "(ArrayList<LTLFormula> children)", "return": "", "signature": " Or(ArrayList<LTLFormula> children)", "testcase": false }, { "class_method_signature": "Or.getLTLType()", "constructor": false, "full_signature": "public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "Or.flatten()", "constructor": false, "full_signature": "private void flatten()", "identifier": "flatten", "modifiers": "private", "parameters": "()", "return": "void", "signature": "void flatten()", "testcase": false }, { "class_method_signature": "Or.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }, { "class_method_signature": "Or.getNegation(int i, boolean b)", "constructor": false, "full_signature": "private LTLFormula getNegation(int i, boolean b)", "identifier": "getNegation", "modifiers": "private", "parameters": "(int i, boolean b)", "return": "LTLFormula", "signature": "LTLFormula getNegation(int i, boolean b)", "testcase": false }, { "class_method_signature": "Or.normalize(boolean b)", "constructor": false, "full_signature": "protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "public LTLFormula copy()", "identifier": "copy", "modifiers": "public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "Or.toSetForm()", "constructor": false, "full_signature": "public LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "identifier": "toSetForm", "modifiers": "public", "parameters": "()", "return": "LinkedHashSet<LinkedHashSet<LTLFormula>>", "signature": "LinkedHashSet<LinkedHashSet<LTLFormula>> toSetForm()", "testcase": false }, { "class_method_signature": "Or.d(HashMap<LTLFormula, ATransition> D)", "constructor": false, "full_signature": "public ATransition d(HashMap<LTLFormula, ATransition> D)", "identifier": "d", "modifiers": "public", "parameters": "(HashMap<LTLFormula, ATransition> D)", "return": "ATransition", "signature": "ATransition d(HashMap<LTLFormula, ATransition> D)", "testcase": false }, { "class_method_signature": "Or.main(String args[])", "constructor": false, "full_signature": "public static void main(String args[])", "identifier": "main", "modifiers": "public static", "parameters": "(String args[])", "return": "void", "signature": "void main(String args[])", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n protected LTLFormula reduce(){\n //first reduce all children\n for(int i = 0; i < children.size(); ++i){\n children.set(i, children.get(i).reduce());\n }\n //first pass, perform any inlining\n flatten();\n //now sort\n Collections.sort(children);\n //the rest of this method must preserve sorting\n for(int i = 0; ; ++i){\n //because we are removing elements the\n //size may change during computation\n if(i >= children.size()) return this;\n //if a child is true the whole thing\n //reduces to true\n if(children.get(i) == True.get()){\n return True.get();\n }\n //Falses can be removed\n if(children.get(i) == False.get()){\n children.remove(i);\n --i; continue;\n }\n //If we have a and not a we can reduce\n //the whole formula to true\n if(children.get(i).getLTLType() == LTLType.A){\n for(int j = i; j < children.size(); ++j){\n LTLFormula child = children.get(j);\n if(child.getLTLType().compareTo(LTLType.NEG) > 0){\n break;\n }\n if(child.getLTLType() == LTLType.NEG\n && child.getChildren().get(0) == children.get(i)){\n return True.get();\n }\n }\n }\n //duplicate children can be removed\n //keep in mind that the children are sorted\n //so duplicates must be adjacent\n if(i + 1 < children.size() \n && children.get(i).equals(children.get(i + 1))){\n children.remove(i);\n --i; \n }\n if(children.size() == 1) return children.get(0);\n }\n }", "class_method_signature": "Or.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "invocations": [ "size", "set", "reduce", "get", "flatten", "sort", "size", "get", "get", "get", "get", "get", "remove", "getLTLType", "get", "size", "get", "compareTo", "getLTLType", "getLTLType", "get", "getChildren", "get", "get", "size", "equals", "get", "get", "remove", "size", "get" ], "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_43
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "aOrb", "modifier": "private", "original_string": "private ERE aOrb;", "type": "ERE", "var_name": "aOrb" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/OrTest.java", "identifier": "OrTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInequality() {\n Symbol c = Symbol.get(\"c\");\n ERE aOrc = Or.get(new ArrayList<ERE>(Arrays.asList(a, c)));\n \n assertFalse(aOrb.equals(aOrc));\n assertFalse(0 == aOrb.compareTo(aOrc));\n assertFalse(aOrb.equals(a));\n assertFalse(0 == aOrb.compareTo(a));\n }", "class_method_signature": "OrTest.testInequality()", "constructor": false, "full_signature": "@Test public void testInequality()", "identifier": "testInequality", "invocations": [ "get", "get", "asList", "assertFalse", "equals", "assertFalse", "compareTo", "assertFalse", "equals", "assertFalse", "compareTo" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testInequality()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Or.java", "identifier": "Or", "interfaces": "", "methods": [ { "class_method_signature": "Or.get(List<ERE> children)", "constructor": false, "full_signature": "static public ERE get(List<ERE> children)", "identifier": "get", "modifiers": "static public", "parameters": "(List<ERE> children)", "return": "ERE", "signature": "ERE get(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.Or(List<ERE> children)", "constructor": true, "full_signature": "private Or(List<ERE> children)", "identifier": "Or", "modifiers": "private", "parameters": "(List<ERE> children)", "return": "", "signature": " Or(List<ERE> children)", "testcase": false }, { "class_method_signature": "Or.simplify()", "constructor": false, "full_signature": "public ERE simplify()", "identifier": "simplify", "modifiers": "public", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Or.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Or.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Or.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Or.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Or.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "static public ERE get(List<ERE> children) {\n Or or = new Or(children);\n ERE ret = or.simplify();\n return ret;\n }", "class_method_signature": "Or.get(List<ERE> children)", "constructor": false, "full_signature": "static public ERE get(List<ERE> children)", "identifier": "get", "invocations": [ "simplify" ], "modifiers": "static public", "parameters": "(List<ERE> children)", "return": "ERE", "signature": "ERE get(List<ERE> children)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_38
{ "fields": [ { "declarator": "empty", "modifier": "private", "original_string": "private Empty empty;", "type": "Empty", "var_name": "empty" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/EmptyTest.java", "identifier": "EmptyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testString() {\n assertEquals(\"empty\", empty.toString());\n }", "class_method_signature": "EmptyTest.testString()", "constructor": false, "full_signature": "@Test public void testString()", "identifier": "testString", "invocations": [ "assertEquals", "toString" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testString()", "testcase": true }
{ "fields": [ { "declarator": "empty = new Empty()", "modifier": "private static", "original_string": "private static Empty empty = new Empty();", "type": "Empty", "var_name": "empty" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Empty.java", "identifier": "Empty", "interfaces": "", "methods": [ { "class_method_signature": "Empty.Empty()", "constructor": true, "full_signature": "private Empty()", "identifier": "Empty", "modifiers": "private", "parameters": "()", "return": "", "signature": " Empty()", "testcase": false }, { "class_method_signature": "Empty.get()", "constructor": false, "full_signature": "static public Empty get()", "identifier": "get", "modifiers": "static public", "parameters": "()", "return": "Empty", "signature": "Empty get()", "testcase": false }, { "class_method_signature": "Empty.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Empty.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Empty.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Empty.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Empty.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Empty.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Empty.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public String toString() {\n return \"empty\";\n }", "class_method_signature": "Empty.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_56
{ "fields": [ { "declarator": "epsilon", "modifier": "private", "original_string": "private Epsilon epsilon;", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/EpsilonTest.java", "identifier": "EpsilonTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testString() {\n assertEquals(\"epsilon\", epsilon.toString());\n }", "class_method_signature": "EpsilonTest.testString()", "constructor": false, "full_signature": "@Test public void testString()", "identifier": "testString", "invocations": [ "assertEquals", "toString" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testString()", "testcase": true }
{ "fields": [ { "declarator": "epsilon = new Epsilon()", "modifier": "private static", "original_string": "private static Epsilon epsilon = new Epsilon();", "type": "Epsilon", "var_name": "epsilon" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Epsilon.java", "identifier": "Epsilon", "interfaces": "", "methods": [ { "class_method_signature": "Epsilon.Epsilon()", "constructor": true, "full_signature": "private Epsilon()", "identifier": "Epsilon", "modifiers": "private", "parameters": "()", "return": "", "signature": " Epsilon()", "testcase": false }, { "class_method_signature": "Epsilon.get()", "constructor": false, "full_signature": "static public Epsilon get()", "identifier": "get", "modifiers": "static public", "parameters": "()", "return": "Epsilon", "signature": "Epsilon get()", "testcase": false }, { "class_method_signature": "Epsilon.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Epsilon.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Epsilon.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Epsilon.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Epsilon.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Epsilon.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public String toString() {\n return \"epsilon\";\n }", "class_method_signature": "Epsilon.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_17
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Symbol a;", "type": "Symbol", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Symbol b;", "type": "Symbol", "var_name": "b" }, { "declarator": "c", "modifier": "private", "original_string": "private Symbol c;", "type": "Symbol", "var_name": "c" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/ConcatTest.java", "identifier": "ConcatTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testEquality() {\n ERE one = Concat.get(a, b);\n ERE two = Concat.get(a, b);\n assertEquals(one, two);\n assertEquals(0, one.compareTo(two));\n }", "class_method_signature": "ConcatTest.testEquality()", "constructor": false, "full_signature": "@Test public void testEquality()", "identifier": "testEquality", "invocations": [ "get", "get", "assertEquals", "assertEquals", "compareTo" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testEquality()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Concat.java", "identifier": "Concat", "interfaces": "", "methods": [ { "class_method_signature": "Concat.get(ERE left, ERE right)", "constructor": false, "full_signature": "public static ERE get(ERE left, ERE right)", "identifier": "get", "modifiers": "public static", "parameters": "(ERE left, ERE right)", "return": "ERE", "signature": "ERE get(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.Concat(ERE left, ERE right)", "constructor": true, "full_signature": "private Concat(ERE left, ERE right)", "identifier": "Concat", "modifiers": "private", "parameters": "(ERE left, ERE right)", "return": "", "signature": " Concat(ERE left, ERE right)", "testcase": false }, { "class_method_signature": "Concat.simplify()", "constructor": false, "full_signature": "private ERE simplify()", "identifier": "simplify", "modifiers": "private", "parameters": "()", "return": "ERE", "signature": "ERE simplify()", "testcase": false }, { "class_method_signature": "Concat.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Concat.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Concat.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Concat.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Concat.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "public static ERE get(ERE left, ERE right) {\n Concat cat = new Concat(left, right);\n ERE ret = cat.simplify();\n return ret;\n }", "class_method_signature": "Concat.get(ERE left, ERE right)", "constructor": false, "full_signature": "public static ERE get(ERE left, ERE right)", "identifier": "get", "invocations": [ "simplify" ], "modifiers": "public static", "parameters": "(ERE left, ERE right)", "return": "ERE", "signature": "ERE get(ERE left, ERE right)", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_40
{ "fields": [ { "declarator": "empty", "modifier": "private", "original_string": "private Empty empty;", "type": "Empty", "var_name": "empty" } ], "file": "plugins_logicrepository/ere/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/EmptyTest.java", "identifier": "EmptyTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testContainsEpsilon() {\n assertFalse(empty.containsEpsilon());\n }", "class_method_signature": "EmptyTest.testContainsEpsilon()", "constructor": false, "full_signature": "@Test public void testContainsEpsilon()", "identifier": "testContainsEpsilon", "invocations": [ "assertFalse", "containsEpsilon" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testContainsEpsilon()", "testcase": true }
{ "fields": [ { "declarator": "empty = new Empty()", "modifier": "private static", "original_string": "private static Empty empty = new Empty();", "type": "Empty", "var_name": "empty" } ], "file": "plugins_logicrepository/ere/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ere/Empty.java", "identifier": "Empty", "interfaces": "", "methods": [ { "class_method_signature": "Empty.Empty()", "constructor": true, "full_signature": "private Empty()", "identifier": "Empty", "modifiers": "private", "parameters": "()", "return": "", "signature": " Empty()", "testcase": false }, { "class_method_signature": "Empty.get()", "constructor": false, "full_signature": "static public Empty get()", "identifier": "get", "modifiers": "static public", "parameters": "()", "return": "Empty", "signature": "Empty get()", "testcase": false }, { "class_method_signature": "Empty.getEREType()", "constructor": false, "full_signature": "@Override public EREType getEREType()", "identifier": "getEREType", "modifiers": "@Override public", "parameters": "()", "return": "EREType", "signature": "EREType getEREType()", "testcase": false }, { "class_method_signature": "Empty.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Empty.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Empty.copy()", "constructor": false, "full_signature": "@Override public ERE copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "ERE", "signature": "ERE copy()", "testcase": false }, { "class_method_signature": "Empty.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Empty.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }, { "class_method_signature": "Empty.derive(Symbol s)", "constructor": false, "full_signature": "@Override public ERE derive(Symbol s)", "identifier": "derive", "modifiers": "@Override public", "parameters": "(Symbol s)", "return": "ERE", "signature": "ERE derive(Symbol s)", "testcase": false } ], "superclass": "extends ERE" }
{ "body": "@Override\n public boolean containsEpsilon() {\n return false;\n }", "class_method_signature": "Empty.containsEpsilon()", "constructor": false, "full_signature": "@Override public boolean containsEpsilon()", "identifier": "containsEpsilon", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "boolean", "signature": "boolean containsEpsilon()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }
105571183_6
{ "fields": [ { "declarator": "a", "modifier": "private", "original_string": "private Atom a;", "type": "Atom", "var_name": "a" }, { "declarator": "b", "modifier": "private", "original_string": "private Atom b;", "type": "Atom", "var_name": "b" } ], "file": "plugins_logicrepository/ltl/src/test/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/AtomTest.java", "identifier": "AtomTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testType() {\n assertEquals(LTLType.A, a.getLTLType());\n assertEquals(LTLType.A, b.getLTLType());\n }", "class_method_signature": "AtomTest.testType()", "constructor": false, "full_signature": "@Test public void testType()", "identifier": "testType", "invocations": [ "assertEquals", "getLTLType", "assertEquals", "getLTLType" ], "modifiers": "@Test public", "parameters": "()", "return": "void", "signature": "void testType()", "testcase": true }
{ "fields": [], "file": "plugins_logicrepository/ltl/src/main/java/com/runtimeverification/rvmonitor/logicrepository/plugins/ltl/Atom.java", "identifier": "Atom", "interfaces": "", "methods": [ { "class_method_signature": "Atom.Atom()", "constructor": true, "full_signature": "private Atom()", "identifier": "Atom", "modifiers": "private", "parameters": "()", "return": "", "signature": " Atom()", "testcase": false }, { "class_method_signature": "Atom.get(String name)", "constructor": false, "full_signature": "static public Atom get(String name)", "identifier": "get", "modifiers": "static public", "parameters": "(String name)", "return": "Atom", "signature": "Atom get(String name)", "testcase": false }, { "class_method_signature": "Atom.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }, { "class_method_signature": "Atom.lower()", "constructor": false, "full_signature": "@Override protected LTLFormula lower()", "identifier": "lower", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula lower()", "testcase": false }, { "class_method_signature": "Atom.normalize(boolean b)", "constructor": false, "full_signature": "@Override protected LTLFormula normalize(boolean b)", "identifier": "normalize", "modifiers": "@Override protected", "parameters": "(boolean b)", "return": "LTLFormula", "signature": "LTLFormula normalize(boolean b)", "testcase": false }, { "class_method_signature": "Atom.reduce()", "constructor": false, "full_signature": "@Override protected LTLFormula reduce()", "identifier": "reduce", "modifiers": "@Override protected", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula reduce()", "testcase": false }, { "class_method_signature": "Atom.equals(Object o)", "constructor": false, "full_signature": "@Override public boolean equals(Object o)", "identifier": "equals", "modifiers": "@Override public", "parameters": "(Object o)", "return": "boolean", "signature": "boolean equals(Object o)", "testcase": false }, { "class_method_signature": "Atom.compareTo(Object o)", "constructor": false, "full_signature": "@Override public int compareTo(Object o)", "identifier": "compareTo", "modifiers": "@Override public", "parameters": "(Object o)", "return": "int", "signature": "int compareTo(Object o)", "testcase": false }, { "class_method_signature": "Atom.copy()", "constructor": false, "full_signature": "@Override public LTLFormula copy()", "identifier": "copy", "modifiers": "@Override public", "parameters": "()", "return": "LTLFormula", "signature": "LTLFormula copy()", "testcase": false }, { "class_method_signature": "Atom.toString()", "constructor": false, "full_signature": "@Override public String toString()", "identifier": "toString", "modifiers": "@Override public", "parameters": "()", "return": "String", "signature": "String toString()", "testcase": false }, { "class_method_signature": "Atom.subFormulae(LinkedHashSet acc)", "constructor": false, "full_signature": "@Override public void subFormulae(LinkedHashSet acc)", "identifier": "subFormulae", "modifiers": "@Override public", "parameters": "(LinkedHashSet acc)", "return": "void", "signature": "void subFormulae(LinkedHashSet acc)", "testcase": false }, { "class_method_signature": "Atom.d(HashMap<LTLFormula, ATransition> D)", "constructor": false, "full_signature": "@Override public ATransition d(HashMap<LTLFormula, ATransition> D)", "identifier": "d", "modifiers": "@Override public", "parameters": "(HashMap<LTLFormula, ATransition> D)", "return": "ATransition", "signature": "ATransition d(HashMap<LTLFormula, ATransition> D)", "testcase": false } ], "superclass": "extends LTLFormula" }
{ "body": "@Override\n public LTLType getLTLType(){ \n return LTLType.A;\n }", "class_method_signature": "Atom.getLTLType()", "constructor": false, "full_signature": "@Override public LTLType getLTLType()", "identifier": "getLTLType", "invocations": [], "modifiers": "@Override public", "parameters": "()", "return": "LTLType", "signature": "LTLType getLTLType()", "testcase": false }
{ "created": null, "fork": null, "fork_count": 8, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 105571183, "size": 225526, "stargazer_count": 10, "stars": null, "updates": null, "url": "https://github.com/runtimeverification/rv-monitor" }