id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
4349381_2
{ "fields": [], "file": "data/src/test/java/fr/ippon/android/opendata/data/distance/AsTheCrowFliesDistanceCalculatorTest.java", "identifier": "AsTheCrowFliesDistanceCalculatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testGetDistanceBetweenPointsBigDistance() throws Exception {\n\n\t\t// Statue of Liberty\n\t\tGpsPoint p1 = new GpsPoint(40.6892, -74.0444);\n\t\t// Eiffel Tower\n\t\tGpsPoint p2 = new GpsPoint(48.8583, 2.2945);\n\n\t\tAsTheCrowFliesDistanceCalculator cal = new AsTheCrowFliesDistanceCa...
{ "fields": [], "file": "data/src/main/java/fr/ippon/android/opendata/data/distance/AsTheCrowFliesDistanceCalculator.java", "identifier": "AsTheCrowFliesDistanceCalculator", "interfaces": "implements DistanceCalculator", "methods": [ { "class_method_signature": "AsTheCrowFliesDistanceCalculator.getD...
{ "body": "public double getDistanceBetweenPoints(GpsPoint p1, GpsPoint p2) {\n\t\t// http://en.wikipedia.org/wiki/Haversine_formula\n\t\tdouble dLat = Math.toRadians(p2.getLatitude() - p1.getLatitude());\n\t\tdouble dLon = Math.toRadians(p2.getLongitude() - p1.getLongitude());\n\t\tdouble lat1 = Math.toRadians(p1.ge...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4349381, "size": 5172, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/ippontech/nantes-mobi-parkings" }
4349381_3
{ "fields": [], "file": "data/src/test/java/fr/ippon/android/opendata/data/distance/BoundingBoxCalculatorTest.java", "identifier": "BoundingBoxCalculatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testGetBoundingBox() {\n\t\tBoundingBoxCalculator cal = new BoundingBoxCalculator();\n\t\tGpsPoint center = new GpsPoint(47.21806, -1.55278);\n\t\t\n\t\t// 3km\n\t\tdouble bboxsize = 3 * 1000;\n\t\t// Tolérance de 1.5/1000\n\t\tdouble tolerance = 1.5d * bboxsize / 1000;\n\t\t\n\t\tBoun...
{ "fields": [], "file": "data/src/main/java/fr/ippon/android/opendata/data/distance/BoundingBoxCalculator.java", "identifier": "BoundingBoxCalculator", "interfaces": "", "methods": [ { "class_method_signature": "BoundingBoxCalculator.getBoundingBox(GpsPoint center, double distance)", "construc...
{ "body": "public BoundingBox getBoundingBox(GpsPoint center, double distance) {\n\n\t\t// angular distance in radians on a great circle\n\t\tdouble radDist = distance / EARTH_RADIUS;\n\t\tdouble radLat = Math.toRadians(center.getLatitude());\n\t\tdouble radLon = Math.toRadians(center.getLongitude());\n\n\t\tdouble m...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4349381, "size": 5172, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/ippontech/nantes-mobi-parkings" }
4349381_4
{ "fields": [], "file": "data/src/test/java/fr/ippon/android/opendata/data/distance/GoogleMapsDirectionDistanceCalculatorTest.java", "identifier": "GoogleMapsDirectionDistanceCalculatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\t@Ignore(\"Use network for testing\")\n\tpublic void testGetOnlineGoogleRoutes() throws IOException {\n\t\t// Nantes\n\t\tGpsPoint p1 = new GpsPoint(47.2208, -1.5584);\n\t\t// Combourg\n\t\tGpsPoint p2 = new GpsPoint(48.4116, -1.7525);\n\t\tGoogleMapsDirectionDistanceCalculator dist = new GoogleMap...
{ "fields": [ { "declarator": "GOOGLE_API = \"http://maps.googleapis.com/maps/api/directions/json\"", "modifier": "private static final", "original_string": "private static final String GOOGLE_API = \"http://maps.googleapis.com/maps/api/directions/json\";", "type": "String", "var_nam...
{ "body": "public double getDistanceBetweenPoints(GpsPoint p1, GpsPoint p2) {\n\n\t\tHttpGet httpRequest = new HttpGet(appendParameterToUrl(GOOGLE_API, p1,\n\t\t\t\tp2));\n\n\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\tHttpResponse response = null;\n\t\tGoogleRoutes pl = null;\n\t\ttry {\n\t\t\tresponse ...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4349381, "size": 5172, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/ippontech/nantes-mobi-parkings" }
4349381_5
{ "fields": [], "file": "data/src/test/java/fr/ippon/android/opendata/data/traffic/SegmentTest.java", "identifier": "SegmentTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void parseSegments() {\n //given\n InputStream is = this.getClass().getResourceAsStream(\n \"/segments.json\");\n\n //when\n List<Segment> segs = Segment.parseSegments(is);\n\n //then\n assertNotNull(segs);\n assertEquals(3, ...
{ "fields": [ { "declarator": "name", "modifier": "protected", "original_string": "protected String name;", "type": "String", "var_name": "name" }, { "declarator": "colorId", "modifier": "protected", "original_string": "protected Integer colorId;", "ty...
{ "body": "public static List<Segment> parseSegments(InputStream in) {\n BufferedReader reader = null;\n try {\n reader = new BufferedReader(new InputStreamReader(in, \"UTF-8\"));\n Gson gson = new Gson();\n return gson.fromJson(reader, new TypeToken<List<Segment>>() {}....
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4349381, "size": 5172, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/ippontech/nantes-mobi-parkings" }
4349381_0
{ "fields": [ { "declarator": "api", "modifier": "protected", "original_string": "protected BisonFuteApi api;", "type": "BisonFuteApi", "var_name": "api" } ], "file": "data/src/test/java/fr/ippon/android/opendata/data/trafficfluency/BisonFuteApiTest.java", "identifier": "Bi...
{ "body": "@Test\n public void testGetBisonFuteTrafficStatus() throws ApiReseauException {\n //given\n api.setConnecteur(new FileConnector(\"/TraficStatus.xml\"));\n\n //when\n List<FreewaySegmentFluency> res = api.getBisonFuteTrafficStatus();\n\n //then\n assertNotNull(re...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(BisonFuteApi.class.getSimpleName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(BisonFuteApi.class.getSimpleName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "public List<FreewaySegmentFluency> getBisonFuteTrafficStatus() throws ApiReseauException {\n //FreewaySegmentFluency\n List<FreewaySegmentFluency> freewaySegFluency = new ArrayList<FreewaySegmentFluency>();\n List<BasicDataValue> result = appelApi(getUrl(CMD_SEGMENT_FLUENCY));\n ...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4349381, "size": 5172, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/ippontech/nantes-mobi-parkings" }
4349381_1
{ "fields": [], "file": "data/src/test/java/fr/ippon/android/opendata/data/distance/AsTheCrowFliesDistanceCalculatorTest.java", "identifier": "AsTheCrowFliesDistanceCalculatorTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n\tpublic void testGetDistanceBetweenPointsSmallDistance() throws Exception {\n\n\t\t// Haluchère\n\t\tGpsPoint p1 = new GpsPoint(47.2481, -1.5214);\n\t\t// Beaujoire\n\t\tGpsPoint p2 = new GpsPoint(47.2565, -1.5280);\n\n\t\tAsTheCrowFliesDistanceCalculator cal = new AsTheCrowFliesDistanceCalculator(...
{ "fields": [], "file": "data/src/main/java/fr/ippon/android/opendata/data/distance/AsTheCrowFliesDistanceCalculator.java", "identifier": "AsTheCrowFliesDistanceCalculator", "interfaces": "implements DistanceCalculator", "methods": [ { "class_method_signature": "AsTheCrowFliesDistanceCalculator.getD...
{ "body": "public double getDistanceBetweenPoints(GpsPoint p1, GpsPoint p2) {\n\t\t// http://en.wikipedia.org/wiki/Haversine_formula\n\t\tdouble dLat = Math.toRadians(p2.getLatitude() - p1.getLatitude());\n\t\tdouble dLon = Math.toRadians(p2.getLongitude() - p1.getLongitude());\n\t\tdouble lat1 = Math.toRadians(p1.ge...
{ "created": null, "fork": null, "fork_count": 6, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 4349381, "size": 5172, "stargazer_count": 15, "stars": null, "updates": null, "url": "https://github.com/ippontech/nantes-mobi-parkings" }
54371579_9
{ "fields": [], "file": "presenter/src/test/java/nucleus/presenter/RxPresenterTest.java", "identifier": "RxPresenterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testRestartable() throws Exception {\n RxPresenter presenter = new RxPresenter();\n presenter.create(null);\n\n Func0<Subscription> restartable = mock(Func0.class);\n Subscription subscription = mock(Subscription.class);\n when(restartable.call()).t...
{ "fields": [ { "declarator": "REQUESTED_KEY = RxPresenter.class.getName() + \"#requested\"", "modifier": "private static final", "original_string": "private static final String REQUESTED_KEY = RxPresenter.class.getName() + \"#requested\";", "type": "String", "var_name": "REQUESTED_K...
{ "body": "public void restartable(int restartableId, Func0<Subscription> factory) {\n if (workingSubscribers.containsKey(restartableId))\n stop(restartableId);\n restartables.put(restartableId, factory);\n }", "class_method_signature": "RxPresenter.restartable(int restartableId, Func0<S...
{ "created": null, "fork": null, "fork_count": 13, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 54371579, "size": 905, "stargazer_count": 40, "stars": null, "updates": null, "url": "https://github.com/caifeile/FlowGeek" }
54371579_14
{ "fields": [ { "declarator": "BASE_VIEW_CLASS = FrameLayout.class", "modifier": "public static final", "original_string": "public static final Class<?> BASE_VIEW_CLASS = FrameLayout.class;", "type": "Class<?>", "var_name": "BASE_VIEW_CLASS" }, { "declarator": "VIEW_CLA...
{ "body": "@Test\n public void getActivityFromWrappedContext() throws Exception {\n Activity activity = mock(Activity.class);\n ContextWrapper wrapper = mock(ContextWrapper.class);\n when(wrapper.getBaseContext()).thenReturn(activity);\n ContextWrapper wrapper2 = mock(ContextWrapper.cla...
{ "fields": [ { "declarator": "PARENT_STATE_KEY = \"parent_state\"", "modifier": "private static final", "original_string": "private static final String PARENT_STATE_KEY = \"parent_state\";", "type": "String", "var_name": "PARENT_STATE_KEY" }, { "declarator": "PRESENTER...
{ "body": "public Activity getActivity() {\n Context context = getContext();\n while (!(context instanceof Activity) && context instanceof ContextWrapper)\n context = ((ContextWrapper)context).getBaseContext();\n if (!(context instanceof Activity))\n throw new IllegalStateEx...
{ "created": null, "fork": null, "fork_count": 13, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 54371579, "size": 905, "stargazer_count": 40, "stars": null, "updates": null, "url": "https://github.com/caifeile/FlowGeek" }
54371579_8
{ "fields": [], "file": "presenter/src/test/java/nucleus/presenter/RxPresenterTest.java", "identifier": "RxPresenterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAdd() throws Exception {\n RxPresenter presenter = new RxPresenter();\n Subscription mock = Mockito.mock(Subscription.class);\n when(mock.isUnsubscribed()).thenReturn(false);\n presenter.add(mock);\n presenter.onDestroy();\n verify(mock,...
{ "fields": [ { "declarator": "REQUESTED_KEY = RxPresenter.class.getName() + \"#requested\"", "modifier": "private static final", "original_string": "private static final String REQUESTED_KEY = RxPresenter.class.getName() + \"#requested\";", "type": "String", "var_name": "REQUESTED_K...
{ "body": "public void add(Subscription subscription) {\n subscriptions.add(subscription);\n }", "class_method_signature": "RxPresenter.add(Subscription subscription)", "constructor": false, "full_signature": "public void add(Subscription subscription)", "identifier": "add", "invocations": [ "...
{ "created": null, "fork": null, "fork_count": 13, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 54371579, "size": 905, "stargazer_count": 40, "stars": null, "updates": null, "url": "https://github.com/caifeile/FlowGeek" }
54371579_13
{ "fields": [ { "declarator": "BASE_VIEW_CLASS = FrameLayout.class", "modifier": "public static final", "original_string": "public static final Class<?> BASE_VIEW_CLASS = FrameLayout.class;", "type": "Class<?>", "var_name": "BASE_VIEW_CLASS" }, { "declarator": "VIEW_CLA...
{ "body": "@Test\n public void getActivityFromContext() throws Exception {\n Activity activity = mock(Activity.class);\n stub(method(BASE_VIEW_CLASS, \"getContext\")).toReturn(activity);\n assertEquals(activity, tested.getActivity());\n }", "class_method_signature": "NucleusLayoutTest.get...
{ "fields": [ { "declarator": "PARENT_STATE_KEY = \"parent_state\"", "modifier": "private static final", "original_string": "private static final String PARENT_STATE_KEY = \"parent_state\";", "type": "String", "var_name": "PARENT_STATE_KEY" }, { "declarator": "PRESENTER...
{ "body": "public Activity getActivity() {\n Context context = getContext();\n while (!(context instanceof Activity) && context instanceof ContextWrapper)\n context = ((ContextWrapper)context).getBaseContext();\n if (!(context instanceof Activity))\n throw new IllegalStateEx...
{ "created": null, "fork": null, "fork_count": 13, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 54371579, "size": 905, "stargazer_count": 40, "stars": null, "updates": null, "url": "https://github.com/caifeile/FlowGeek" }
54371579_12
{ "fields": [ { "declarator": "BASE_VIEW_CLASS = FrameLayout.class", "modifier": "public static final", "original_string": "public static final Class<?> BASE_VIEW_CLASS = FrameLayout.class;", "type": "Class<?>", "var_name": "BASE_VIEW_CLASS" }, { "declarator": "VIEW_CLA...
{ "body": "@Test\n public void testDestroy() throws Exception {\n setUpIsFinishing(true);\n tested.onDetachedFromWindow();\n verify(mockDelegate, times(1)).onPause(true);\n }", "class_method_signature": "NucleusLayoutTest.testDestroy()", "constructor": false, "full_signature": "@Test ...
{ "fields": [ { "declarator": "PARENT_STATE_KEY = \"parent_state\"", "modifier": "private static final", "original_string": "private static final String PARENT_STATE_KEY = \"parent_state\";", "type": "String", "var_name": "PARENT_STATE_KEY" }, { "declarator": "PRESENTER...
{ "body": "@Override\n protected void onDetachedFromWindow() {\n super.onDetachedFromWindow();\n presenterDelegate.onDestroy(getActivity().isFinishing());\n }", "class_method_signature": "NucleusLayout.onDetachedFromWindow()", "constructor": false, "full_signature": "@Override protected void...
{ "created": null, "fork": null, "fork_count": 13, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 54371579, "size": 905, "stargazer_count": 40, "stars": null, "updates": null, "url": "https://github.com/caifeile/FlowGeek" }
54371579_7
{ "fields": [], "file": "presenter/src/test/java/nucleus/presenter/PresenterTest.java", "identifier": "PresenterTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testOnDestroy() throws Exception {\n Presenter.OnDestroyListener listener = mock(Presenter.OnDestroyListener.class);\n Presenter presenter = new Presenter();\n presenter.create(null);\n presenter.addOnDestroyListener(listener);\n presenter.destroy()...
{ "fields": [ { "declarator": "view", "modifier": "@Nullable private", "original_string": "@Nullable private View view;", "type": "View", "var_name": "view" }, { "declarator": "onDestroyListeners = new CopyOnWriteArrayList<>()", "modifier": "private", "origi...
{ "body": "protected void onDestroy() {\n }", "class_method_signature": "Presenter.onDestroy()", "constructor": false, "full_signature": "protected void onDestroy()", "identifier": "onDestroy", "invocations": [], "modifiers": "protected", "parameters": "()", "return": "void", "signature": "void o...
{ "created": null, "fork": null, "fork_count": 13, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 54371579, "size": 905, "stargazer_count": 40, "stars": null, "updates": null, "url": "https://github.com/caifeile/FlowGeek" }
1535924_3
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Test\n public void shouldCreateAccessManagerFactoryTrackerOnStartOnlyTheFirstTime() throws Exception {\n BundleContext bundleContext = mock(BundleContext.class);\n\n final AccessManagerFactoryTracker accessManagerFactoryTracker = mock(AccessManagerFactoryTracker.class);\n final Act...
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Override\n public void start( BundleContext bundleContext ) throws Exception {\n this.bundleContext = bundleContext;\n\n if (null == activatorHelper) {\n this.activatorHelper = getActivatorHelper();\n }\n\n ServiceReference configurationAdminServiceReference = bun...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_2
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Test\n public void shouldRegisterItselfAsListenerOnStartWhenNoConfigurationAdminServiceReferenceIsFound() throws Exception {\n\n BundleContext bundleContext = mock(BundleContext.class);\n when(bundleContext.getServiceReference(CONFIG_ADMIN_NAME)).thenReturn(null);\n\n Activator act...
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Override\n public void start( BundleContext bundleContext ) throws Exception {\n this.bundleContext = bundleContext;\n\n if (null == activatorHelper) {\n this.activatorHelper = getActivatorHelper();\n }\n\n ServiceReference configurationAdminServiceReference = bun...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_13
{ "fields": [], "file": "bundles/extensions/webconsole-security-provider/src/test/java/com/sourcesense/stone/extensions/webconsolesecurityprovider/internal/SlingWebConsoleSecurityProviderTest.java", "identifier": "SlingWebConsoleSecurityProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void shouldAuthorizeAnyone() throws Exception {\n\n SlingWebConsoleSecurityProvider slingWebConsoleSecurityProvider = new SlingWebConsoleSecurityProvider();\n assertTrue(slingWebConsoleSecurityProvider.authorize(\"anyObject\", \"anyRole\"));\n }", "class_me...
{ "fields": [ { "declarator": "PROPERTY_FOR_AUTHORIZED_USERS = \"users\"", "modifier": "private static final", "original_string": "private static final String PROPERTY_FOR_AUTHORIZED_USERS = \"users\";", "type": "String", "var_name": "PROPERTY_FOR_AUTHORIZED_USERS" }, { ...
{ "body": "@Override\n public boolean authorize( Object user,\n String role ) {\n log.info(\"********** Attempting to authorize \" + user + \", with role \" + role);\n return true;\n }", "class_method_signature": "SlingWebConsoleSecurityProvider.authorize( Object use...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_5
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Test\n public void shouldNotCloseAccessManagerFactoryTrackerOnStopBecauseNotOpened() throws Exception {\n BundleContext bundleContext = mock(BundleContext.class);\n\n final AccessManagerFactoryTracker accessManagerFactoryTracker = mock(AccessManagerFactoryTracker.class);\n\n Activa...
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Override\n public void stop( BundleContext bundleContext ) throws Exception {\n AccessManagerFactoryTracker managerFactoryTracker = getAccessManagerFactoryTracker();\n\n if (null != managerFactoryTracker) {\n managerFactoryTracker.close();\n }\n }", "class_method_si...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_9
{ "fields": [], "file": "bundles/jcr/modeshape-server/src/test/java/com/sourcesense/stone/jcr/modeshape/server/impl/ConfigurationUtilsTest.java", "identifier": "ConfigurationUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnHomeDirSetUsingPropertySlingHome() throws Exception {\n BundleContext bundleContext = programBundleContextToReturn(null, \"aPath\");\n ConfigurationUtils configurationUtil = new ConfigurationUtils(bundleContext);\n\n File homeDir = configurationUtil.g...
{ "fields": [ { "declarator": "SLING_HOME = \"sling.home\"", "modifier": "static final", "original_string": "static final String SLING_HOME = \"sling.home\";", "type": "String", "var_name": "SLING_HOME" }, { "declarator": "SLING_REPOSITORY_HOME = \"sling.repository.home...
{ "body": "File getHomeDir() {\n File homeDir;\n\n String repoHomePath = bundleContext.getProperty(SLING_REPOSITORY_HOME);\n String slingHomePath = bundleContext.getProperty(SLING_HOME);\n\n String repositoryName = getRepositoryName();\n if (repoHomePath != null) {\n home...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_8
{ "fields": [], "file": "bundles/jcr/modeshape-server/src/test/java/com/sourcesense/stone/jcr/modeshape/server/impl/ConfigurationUtilsTest.java", "identifier": "ConfigurationUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnHomeDirSetUsingPropertySlingRepositoryHome() throws Exception {\n BundleContext bundleContext = programBundleContextToReturn(\"aPath\", null);\n ConfigurationUtils configurationUtil = new ConfigurationUtils(bundleContext);\n\n File homeDir = configura...
{ "fields": [ { "declarator": "SLING_HOME = \"sling.home\"", "modifier": "static final", "original_string": "static final String SLING_HOME = \"sling.home\";", "type": "String", "var_name": "SLING_HOME" }, { "declarator": "SLING_REPOSITORY_HOME = \"sling.repository.home...
{ "body": "File getHomeDir() {\n File homeDir;\n\n String repoHomePath = bundleContext.getProperty(SLING_REPOSITORY_HOME);\n String slingHomePath = bundleContext.getProperty(SLING_HOME);\n\n String repositoryName = getRepositoryName();\n if (repoHomePath != null) {\n home...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_4
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Test\n public void shouldCloseAccessManagerFactoryTrackerOnStopOnlyWhenOpened() throws Exception {\n BundleContext bundleContext = mock(BundleContext.class);\n\n final AccessManagerFactoryTracker accessManagerFactoryTracker = mock(AccessManagerFactoryTracker.class);\n\n Activator a...
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Override\n public void stop( BundleContext bundleContext ) throws Exception {\n AccessManagerFactoryTracker managerFactoryTracker = getAccessManagerFactoryTracker();\n\n if (null != managerFactoryTracker) {\n managerFactoryTracker.close();\n }\n }", "class_method_si...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_12
{ "fields": [], "file": "bundles/extensions/webconsole-security-provider/src/test/java/com/sourcesense/stone/extensions/webconsolesecurityprovider/internal/SlingWebConsoleSecurityProviderTest.java", "identifier": "SlingWebConsoleSecurityProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void shouldAuthenticateUserWithNameAdminAndPasswordAdmin() throws Exception {\n\n SlingWebConsoleSecurityProvider slingWebConsoleSecurityProvider = new SlingWebConsoleSecurityProvider();\n assertNotNull(slingWebConsoleSecurityProvider.authenticate(\"admin\", \"a...
{ "fields": [ { "declarator": "PROPERTY_FOR_AUTHORIZED_USERS = \"users\"", "modifier": "private static final", "original_string": "private static final String PROPERTY_FOR_AUTHORIZED_USERS = \"users\";", "type": "String", "var_name": "PROPERTY_FOR_AUTHORIZED_USERS" }, { ...
{ "body": "@Override\n public Object authenticate( String userName,\n String password ) {\n final Credentials creds = new SimpleCredentials(userName,\n (password == null) ? new char[0] : password.toCharArray());\n Session session = null;\n ...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_7
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Test\n public void shouldNotVerifyConfigurationAndRemoveServiceListenerWhenServiceEventRegisteredIsNotNotified() throws Exception {\n\n final ActivatorHelper activatorHelper = mock(ActivatorHelper.class);\n Activator activator = new Activator() {\n @Override\n protec...
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Override\n public void serviceChanged( ServiceEvent event ) {\n if (ServiceEvent.REGISTERED == event.getType()) {\n\n getActivatorHelper().verifyConfiguration(event.getServiceReference());\n bundleContext.removeServiceListener(this);\n }\n }", "class_method_sign...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_11
{ "fields": [], "file": "bundles/extensions/webconsole-security-provider/src/test/java/com/sourcesense/stone/extensions/webconsolesecurityprovider/internal/SlingWebConsoleSecurityProviderTest.java", "identifier": "SlingWebConsoleSecurityProviderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @Ignore\n public void shouldNotAuthenticateUsersWithWrongCredentials() throws Exception {\n\n SlingWebConsoleSecurityProvider slingWebConsoleSecurityProvider = new SlingWebConsoleSecurityProvider();\n assertNull(slingWebConsoleSecurityProvider.authenticate(\"wrong user\", \"wron...
{ "fields": [ { "declarator": "PROPERTY_FOR_AUTHORIZED_USERS = \"users\"", "modifier": "private static final", "original_string": "private static final String PROPERTY_FOR_AUTHORIZED_USERS = \"users\";", "type": "String", "var_name": "PROPERTY_FOR_AUTHORIZED_USERS" }, { ...
{ "body": "@Override\n public Object authenticate( String userName,\n String password ) {\n final Credentials creds = new SimpleCredentials(userName,\n (password == null) ? new char[0] : password.toCharArray());\n Session session = null;\n ...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_10
{ "fields": [], "file": "bundles/jcr/modeshape-server/src/test/java/com/sourcesense/stone/jcr/modeshape/server/impl/ConfigurationUtilsTest.java", "identifier": "ConfigurationUtilsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void shouldReturnRepositoryNameWhenNoPropertySet() throws Exception {\n BundleContext bundleContext = programBundleContextToReturn(null, null);\n ConfigurationUtils configurationUtil = new ConfigurationUtils(bundleContext);\n\n File homeDir = configurationUtil.getHome...
{ "fields": [ { "declarator": "SLING_HOME = \"sling.home\"", "modifier": "static final", "original_string": "static final String SLING_HOME = \"sling.home\";", "type": "String", "var_name": "SLING_HOME" }, { "declarator": "SLING_REPOSITORY_HOME = \"sling.repository.home...
{ "body": "File getHomeDir() {\n File homeDir;\n\n String repoHomePath = bundleContext.getProperty(SLING_REPOSITORY_HOME);\n String slingHomePath = bundleContext.getProperty(SLING_HOME);\n\n String repositoryName = getRepositoryName();\n if (repoHomePath != null) {\n home...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_6
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Test\n public void shouldVerifyConfigurationWhenServiceEventRegisteredIsNotifiedAndRemoveServiceListener() throws Exception {\n\n final ActivatorHelper activatorHelper = mock(ActivatorHelper.class);\n Activator activator = new Activator() {\n @Override\n protected Ac...
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Override\n public void serviceChanged( ServiceEvent event ) {\n if (ServiceEvent.REGISTERED == event.getType()) {\n\n getActivatorHelper().verifyConfiguration(event.getServiceReference());\n bundleContext.removeServiceListener(this);\n }\n }", "class_method_sign...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_1
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Test\n public void shouldVerifyConfigurationOnStartWhenConfigurationAdminServiceReferenceIsFound() throws Exception {\n\n ServiceReference configurationAdminServiceReference = mock(ServiceReference.class);\n\n BundleContext bundleContext = mock(BundleContext.class);\n when(bundleCo...
{ "fields": [ { "declarator": "CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName()", "modifier": "private static final", "original_string": "private static final String CONFIG_ADMIN_NAME = ConfigurationAdmin.class.getName();", "type": "String", "var_name": "CONFIG_ADMIN_NAME" ...
{ "body": "@Override\n public void start( BundleContext bundleContext ) throws Exception {\n this.bundleContext = bundleContext;\n\n if (null == activatorHelper) {\n this.activatorHelper = getActivatorHelper();\n }\n\n ServiceReference configurationAdminServiceReference = bun...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
1535924_0
{ "fields": [], "file": "bundles/jcr/com.sourcesense.stone.jcr.base/src/test/java/com/sourcesense/stone/jcr/base/NodeTypeLoaderTest.java", "identifier": "NodeTypeLoaderTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testisReRegisterBuiltinNodeType() {\n assertFalse(\"Exception does not match\",\n NodeTypeLoader.isReRegisterBuiltinNodeType(new Exception()));\n assertFalse(\"Plain RepositoryException does not match\",\n NodeTypeLoader.isReRegisterBuiltin...
{ "fields": [ { "declarator": "log = LoggerFactory.getLogger(NodeTypeLoader.class)", "modifier": "private static final", "original_string": "private static final Logger log = LoggerFactory.getLogger(NodeTypeLoader.class);", "type": "Logger", "var_name": "log" } ], "file": "bu...
{ "body": "static boolean isReRegisterBuiltinNodeType(Exception e) {\n return\n (e instanceof RepositoryException)\n & (e.getMessage() != null && e.getMessage().contains(\"reregister built-in node type\"));\n }", "class_method_signature": "NodeTypeLoader.isReRegisterBuiltinNodeType(E...
{ "created": null, "fork": null, "fork_count": 0, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 1535924, "size": 28399, "stargazer_count": 5, "stars": null, "updates": null, "url": "https://github.com/sourcesense/stone" }
30044052_183
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static TextileMarkup markup;", "type": "TextileMarkup", "var_name": "markup" } ], "file": "slideshowfx-textile/src/test/java/com/twasyl/slideshowfx/markup/textile/TextileMarkupTe...
{ "body": "@Test\n public void generateInlineCode() {\n final String result = markup.convertAsHtml(\"@public class Java { }@\");\n\n assertEquals(\"<p><code>public class Java { }</code></p>\", result);\n }", "class_method_signature": "TextileMarkupTest.generateInlineCode()", "constructor": fal...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(TextileMarkup.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(TextileMarkup.class.getName());", "type": "Logger", "var_name": "LOGGER" } ], ...
{ "body": "@Override\n public String convertAsHtml(String markupString) {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n String result = null;\n\n try (final StringWriter writer = new String...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_70
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/RecentPresentationTest.java", "identifier": "RecentPresentationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @DisplayName(\"is not equal to a null object\")\n void notEqualToNull() {\n final RecentPresentation presentation = new RecentPresentation(\"presentation1.sfx\", null);\n assertFalse(presentation.equals(null));\n }", "class_method_signature": "RecentPresentationTest.notEqua...
{ "fields": [ { "declarator": "openedDateTime", "modifier": "private", "original_string": "private LocalDateTime openedDateTime;", "type": "LocalDateTime", "var_name": "openedDateTime" }, { "declarator": "normalizedPath", "modifier": "private", "original_str...
{ "body": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n if (!super.equals(o)) return false;\n\n final RecentPresentation that = (RecentPresentation) o;\n\n return getNormalizedPath().equ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_27
{ "fields": [ { "declarator": "snippetExecutor = new JavaSnippetExecutor()", "modifier": "private final", "original_string": "private final JavaSnippetExecutor snippetExecutor = new JavaSnippetExecutor();", "type": "JavaSnippetExecutor", "var_name": "snippetExecutor" } ], "fi...
{ "body": "@Test\n public void emptyClassName() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(CLASS_NAME_PROPERTY, \"\");\n\n assertEquals(\"Snippet\", snippetExecutor.determineClassName(snippet));\n }", "class_method_signature": "JavaSnippetExecutorTest...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER"...
{ "body": "protected String determineClassName(final CodeSnippet codeSnippet) {\n String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY);\n if (className == null || className.isEmpty()) className = \"Snippet\";\n return className;\n }", "class_method_signature": "JavaSnippet...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_212
{ "fields": [], "file": "slideshowfx-utils/src/test/java/com/twasyl/slideshowfx/utils/keys/SlideshowFXKeyCombinationTest.java", "identifier": "SlideshowFXKeyCombinationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAltA() {\n final SlideshowFXKeyCombination combination = SlideshowFXKeyCombination.valueOf(\"Alt+A\");\n assertCombination(UP, DOWN, UP, UP, UP, \"A\", combination);\n }", "class_method_signature": "SlideshowFXKeyCombinationTest.testAltA()", "constructor": fa...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName())", "modifier": "public static final", "original_string": "public static final Logger LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName());", "type": "Logger", "var_name"...
{ "body": "public static SlideshowFXKeyCombination valueOf(String value) {\n if (value == null) throw new NullPointerException(\"The value can not be null\");\n if (value.isEmpty()) throw new IllegalArgumentException(\"The value can not be empty\");\n\n String determinedText = null;\n KeyC...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_31
{ "fields": [ { "declarator": "snippetExecutor = new JavaSnippetExecutor()", "modifier": "private final", "original_string": "private final JavaSnippetExecutor snippetExecutor = new JavaSnippetExecutor();", "type": "JavaSnippetExecutor", "var_name": "snippetExecutor" } ], "fi...
{ "body": "@Test\n public void hasImports() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(IMPORTS_PROPERTY, \"import p._\");\n\n assertTrue(snippetExecutor.hasImports(snippet));\n }", "class_method_signature": "JavaSnippetExecutorTest.hasImports()", "c...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER"...
{ "body": "protected boolean hasImports(final CodeSnippet codeSnippet) {\n final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY);\n return imports != null && !imports.isEmpty();\n }", "class_method_signature": "JavaSnippetExecutor.hasImports(final CodeSnippet codeSnippet)", "co...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_204
{ "fields": [ { "declarator": "baseLocation", "modifier": "private static", "original_string": "private static File baseLocation;", "type": "File", "var_name": "baseLocation" }, { "declarator": "visitor", "modifier": "private", "original_string": "private Li...
{ "body": "@Test\n public void testOnFileTree() throws IOException {\n final File emptyDir = baseLocation;\n Files.walkFileTree(emptyDir.toPath(), visitor);\n\n assertEquals(5, visitor.getPaths().size(), visitor.getPaths().stream().map(Path::toString).collect(Collectors.joining(System.lineSepa...
{ "fields": [ { "declarator": "paths = new ArrayList<>()", "modifier": "private", "original_string": "private List<Path> paths = new ArrayList<>();", "type": "List<Path>", "var_name": "paths" }, { "declarator": "nonEmptyDirectories = new HashSet<>()", "modifier": ...
{ "body": "public List<Path> getPaths() {\n return paths;\n }", "class_method_signature": "ListFilesFileVisitor.getPaths()", "constructor": false, "full_signature": "public List<Path> getPaths()", "identifier": "getPaths", "invocations": [], "modifiers": "public", "parameters": "()", "return...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_89
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void saveWithoutOpenedPresentationDate() throws Exception {\n final String path = \"presentation.sfx\";\n\n final RecentPresentation recentPresentation = new RecentPresentation(path, null);\n final ByteArrayInputStream input = new ByteArrayInputStream(new byte[0]);\n ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static void saveRecentPresentation(final InputStream input, final OutputStream output,\n final RecentPresentation recentPresentation) throws ContextFileException {\n final Document document = createDocumentFromInput(input);\n\n populat...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_195
{ "fields": [ { "declarator": "snippetExecutor = new GoSnippetExecutor()", "modifier": "private final", "original_string": "private final GoSnippetExecutor snippetExecutor = new GoSnippetExecutor();", "type": "GoSnippetExecutor", "var_name": "snippetExecutor" } ], "file": "sl...
{ "body": "@Test\n public void formatImportWithDoubleQuotes() {\n assertEquals(\"\\\"fmt\\\"\", snippetExecutor.formatImportLine(\"\\\"fmt\\\"\"));\n }", "class_method_signature": "GoSnippetExecutorTest.formatImportWithDoubleQuotes()", "constructor": false, "full_signature": "@Test public void form...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected String formatImportLine(final String importLine) {\n final String importLineBeginning = \"\\\"\";\n final String importLineEnding = \"\\\"\";\n\n String formattedImportLine;\n\n if (importLine.startsWith(importLineBeginning)) {\n formattedImportLine = import...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_66
{ "fields": [ { "declarator": "snippetExecutor = new GroovySnippetExecutor()", "modifier": "private final", "original_string": "private final GroovySnippetExecutor snippetExecutor = new GroovySnippetExecutor();", "type": "GroovySnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void buildSourceCodeWithoutWrapInMethodRunnerButMakeScript() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(CLASS_NAME_PROPERTY, \"TestGroovy\");\n snippet.getProperties().put(IMPORTS_PROPERTY, \"import mypackage\\n...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected String buildSourceCode(final CodeSnippet codeSnippet) throws IOException {\n final StringBuilder sourceCode = new StringBuilder();\n\n boolean someImportsPresent = false;\n\n if (makeScript(codeSnippet)) {\n sourceCode.append(getScriptImport()).append(\"\\n\");\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_101
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void purgeRecentPresentationsWhenLessThanSpecified() throws ContextFileException {\n final int numberOfRecentPresentationsToKeep = 4;\n final RecentPresentation recentPresentation1 = new RecentPresentation(\"presentation1.sfx\", LocalDateTime.now());\n final RecentPre...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "static Set<RecentPresentation> purgeRecentPresentations(final File contextFile, final long numberOfRecentPresentationsToKeep) throws ContextFileException {\n checkContextFileValidity(contextFile);\n if (numberOfRecentPresentationsToKeep < 0)\n throw new IllegalArgumentException(\"T...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_156
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static AsciidoctorMarkup markup;", "type": "AsciidoctorMarkup", "var_name": "markup" } ], "file": "slideshowfx-asciidoctor/src/test/java/com/twasyl/slideshowfx/markup/asciidoctor...
{ "body": "@Test public void generateH1() {\n final String result = markup.convertAsHtml(\"= A title\");\n\n assertEquals(\"<h1>A title</h1>\", result);\n }", "class_method_signature": "AsciidoctorMarkupTest.generateH1()", "constructor": false, "full_signature": "@Test public void generateH1()"...
{ "fields": [ { "declarator": "asciidoctor", "modifier": "private final", "original_string": "private final Asciidoctor asciidoctor;", "type": "Asciidoctor", "var_name": "asciidoctor" } ], "file": "slideshowfx-asciidoctor/src/main/java/com/twasyl/slideshowfx/markup/asciidocto...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n final AttributesBuilder attributes = Attribu...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_140
{ "fields": [ { "declarator": "snippetExecutor = new ScalaSnippetExecutor()", "modifier": "private final", "original_string": "private final ScalaSnippetExecutor snippetExecutor = new ScalaSnippetExecutor();", "type": "ScalaSnippetExecutor", "var_name": "snippetExecutor" } ], ...
{ "body": "@Test\n public void hasNoImports() {\n final CodeSnippet snippet = new CodeSnippet();\n\n assertFalse(snippetExecutor.hasImports(snippet));\n }", "class_method_signature": "ScalaSnippetExecutorTest.hasNoImports()", "constructor": false, "full_signature": "@Test public void hasNoIm...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGE...
{ "body": "protected boolean hasImports(final CodeSnippet codeSnippet) {\n final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY);\n return imports != null && !imports.isEmpty();\n }", "class_method_signature": "ScalaSnippetExecutor.hasImports(final CodeSnippet codeSnippet)", "c...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_117
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static HtmlMarkup markup;", "type": "HtmlMarkup", "var_name": "markup" } ], "file": "slideshowfx-html/src/test/java/com/twasyl/slideshowfx/markup/html/HtmlMarkupTest.java", "id...
{ "body": "@Test\n public void generateH2() {\n final String result = markup.convertAsHtml(\"<h2>A title</h2>\");\n\n assertEquals(\"<h2>A title</h2>\", result);\n }", "class_method_signature": "HtmlMarkupTest.generateH2()", "constructor": false, "full_signature": "@Test public void generate...
{ "fields": [], "file": "slideshowfx-html/src/main/java/com/twasyl/slideshowfx/markup/html/HtmlMarkup.java", "identifier": "HtmlMarkup", "interfaces": "", "methods": [ { "class_method_signature": "HtmlMarkup.HtmlMarkup()", "constructor": true, "full_signature": "public HtmlMarkup()", ...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n return markupString;\n }", "class_metho...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_5
{ "fields": [ { "declarator": "TMP_DIR = new File(\"build/tmp\")", "modifier": "private static final", "original_string": "private static final File TMP_DIR = new File(\"build/tmp\");", "type": "File", "var_name": "TMP_DIR" }, { "declarator": "PLUGIN_FILE", "modif...
{ "body": "@Test\n void testGetResource() throws IOException, ClassNotFoundException {\n final PluginClassLoader pluginClassLoader = PluginClassLoader.newInstance(PLUGIN_FILE);\n\n final Class<?> clazz = pluginClassLoader.loadClass(\"com.twasyl.slideshowfx.dummy.plugin.Dummy\");\n final URL re...
{ "fields": [], "file": "slideshowfx-plugin-manager/src/main/java/com/twasyl/slideshowfx/plugin/manager/internal/PluginClassLoader.java", "identifier": "PluginClassLoader", "interfaces": "", "methods": [ { "class_method_signature": "PluginClassLoader.PluginClassLoader(URL[] urls)", "constructo...
{ "body": "public static PluginClassLoader newInstance(final PluginFile file) throws IOException {\n if (file == null) throw new NullPointerException(\"The plugin can not be null\");\n\n try (final ZipFile zipFile = new ZipFile(file)) {\n final URL[] urls = zipFile.stream()\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_93
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void populateDocumentWhenNoRecentPresentationsTag() throws Exception {\n final String xml = \"<slideshowfx></slideshowfx>\";\n final Document document = createDocumentFromString(xml);\n\n ContextFileWorker.populateDocumentIfNecessary(document);\n\n final XPathF...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static void populateDocumentIfNecessary(final Document document) {\n Element root = document.getDocumentElement();\n if (root == null) {\n root = document.createElement(ROOT_TAG);\n document.appendChild(root);\n }\n\n try {\n final Stri...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_160
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static AsciidoctorMarkup markup;", "type": "AsciidoctorMarkup", "var_name": "markup" } ], "file": "slideshowfx-asciidoctor/src/test/java/com/twasyl/slideshowfx/markup/asciidoctor...
{ "body": "@Test public void generateStrong() {\n final String result = markup.convertAsHtml(\"*Strong text*\");\n\n assertEquals(\"<strong>Strong text</strong>\", result);\n }", "class_method_signature": "AsciidoctorMarkupTest.generateStrong()", "constructor": false, "full_signature": "@Test p...
{ "fields": [ { "declarator": "asciidoctor", "modifier": "private final", "original_string": "private final Asciidoctor asciidoctor;", "type": "Asciidoctor", "var_name": "asciidoctor" } ], "file": "slideshowfx-asciidoctor/src/main/java/com/twasyl/slideshowfx/markup/asciidocto...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n final AttributesBuilder attributes = Attribu...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_137
{ "fields": [ { "declarator": "snippetExecutor = new ScalaSnippetExecutor()", "modifier": "private final", "original_string": "private final ScalaSnippetExecutor snippetExecutor = new ScalaSnippetExecutor();", "type": "ScalaSnippetExecutor", "var_name": "snippetExecutor" } ], ...
{ "body": "@Test\n public void noClassName() {\n final CodeSnippet snippet = new CodeSnippet();\n\n assertEquals(\"Snippet\", snippetExecutor.determineClassName(snippet));\n }", "class_method_signature": "ScalaSnippetExecutorTest.noClassName()", "constructor": false, "full_signature": "@Test...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGE...
{ "body": "protected String determineClassName(final CodeSnippet codeSnippet) {\n String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY);\n if (className == null || className.isEmpty()) className = \"Snippet\";\n return className;\n }", "class_method_signature": "ScalaSnippe...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_208
{ "fields": [], "file": "slideshowfx-utils/src/test/java/com/twasyl/slideshowfx/utils/keys/SlideshowFXKeyCombinationTest.java", "identifier": "SlideshowFXKeyCombinationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShortcutA() {\n final SlideshowFXKeyCombination combination = SlideshowFXKeyCombination.valueOf(\"Shortcut+A\");\n assertCombination(UP, UP, UP, UP, DOWN, \"A\", combination);\n }", "class_method_signature": "SlideshowFXKeyCombinationTest.testShortcutA()", "c...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName())", "modifier": "public static final", "original_string": "public static final Logger LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName());", "type": "Logger", "var_name"...
{ "body": "public static SlideshowFXKeyCombination valueOf(String value) {\n if (value == null) throw new NullPointerException(\"The value can not be null\");\n if (value.isEmpty()) throw new IllegalArgumentException(\"The value can not be empty\");\n\n String determinedText = null;\n KeyC...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_121
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static HtmlMarkup markup;", "type": "HtmlMarkup", "var_name": "markup" } ], "file": "slideshowfx-html/src/test/java/com/twasyl/slideshowfx/markup/html/HtmlMarkupTest.java", "id...
{ "body": "@Test\n public void generateUnorderedList() {\n final String result = markup.convertAsHtml(\"<ul><li>One</li><li>Two</li></ul>\");\n\n assertEquals(\"<ul><li>One</li><li>Two</li></ul>\", result);\n }", "class_method_signature": "HtmlMarkupTest.generateUnorderedList()", "constructor"...
{ "fields": [], "file": "slideshowfx-html/src/main/java/com/twasyl/slideshowfx/markup/html/HtmlMarkup.java", "identifier": "HtmlMarkup", "interfaces": "", "methods": [ { "class_method_signature": "HtmlMarkup.HtmlMarkup()", "constructor": true, "full_signature": "public HtmlMarkup()", ...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n return markupString;\n }", "class_metho...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_199
{ "fields": [ { "declarator": "snippetExecutor = new GoSnippetExecutor()", "modifier": "private final", "original_string": "private final GoSnippetExecutor snippetExecutor = new GoSnippetExecutor();", "type": "GoSnippetExecutor", "var_name": "snippetExecutor" } ], "file": "sl...
{ "body": "@Test\n public void buildSourceCodeWithoutWrapInMain() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(PACKAGE_NAME_PROPERTY, \"sfx\");\n snippet.getProperties().put(IMPORTS_PROPERTY, \"mypackage\\nmysecondpackage\");\n\n sn...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected String buildSourceCode(final CodeSnippet codeSnippet) throws IOException {\n final StringBuilder sourceCode = new StringBuilder();\n\n sourceCode.append(getStartPackageDefinition(codeSnippet)).append(\"\\n\\n\");\n\n if (hasImports(codeSnippet)) {\n sourceCode.appe...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_85
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void tryToGetRecentPresentationsNodeWhenMissing() throws Exception {\n final String xml = \"<slideshowfx></slideshowfx>\";\n final Document document = createDocumentFromString(xml);\n\n final Node recentPresentationsNode = ContextFileWorker.getRecentPresentationsNode(...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static Node getRecentPresentationsNode(final Document document) {\n Node recentPresentationsNode;\n\n final NodeList list = document.getElementsByTagName(RECENT_PRESENTATIONS_TAG);\n if (list != null && list.getLength() > 0) {\n recentPresentationsNode = list.item(...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_176
{ "fields": [], "file": "slideshowfx-ui-controls/src/test/java/com/twasyl/slideshowfx/ui/controls/validators/ValidatorsTest.java", "identifier": "ValidatorsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isIntegerWithOnlySpaces() {\n assertFalse(isInteger().isValid(\" \"));\n }", "class_method_signature": "ValidatorsTest.isIntegerWithOnlySpaces()", "constructor": false, "full_signature": "@Test public void isIntegerWithOnlySpaces()", "identifier": "isIntegerWithOnl...
{ "fields": [], "file": "slideshowfx-ui-controls/src/main/java/com/twasyl/slideshowfx/ui/controls/validators/Validators.java", "identifier": "Validators", "interfaces": "", "methods": [ { "class_method_signature": "Validators.isNotEmpty()", "constructor": false, "full_signature": "public...
{ "body": "public static IValidator<String> isInteger() {\n return value -> {\n try {\n Integer.parseInt(value);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n };\n }", "class_method_signature...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_11
{ "fields": [ { "declarator": "TMP_DIR = new File(\"build/tmp\")", "modifier": "private static final", "original_string": "private static final File TMP_DIR = new File(\"build/tmp\");", "type": "File", "var_name": "TMP_DIR" } ], "file": "slideshowfx-plugin-manager/src/test/ja...
{ "body": "@Test\n public void uninstallPlugin() throws IOException {\n final File plugin01 = createDummyPlugin(\"plugin-01\", \"Plugin 01\", \"1.0\");\n final File plugin02 = createDummyPlugin(\"plugin-02\", \"Plugin 02\", \"1.0\");\n\n PluginManager.getInstance().installPlugin(plugin02);\n ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(PluginManager.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(PluginManager.class.getName());", "type": "Logger", "var_name": "LOGGER" }, ...
{ "body": "protected void uninstallPlugin(RegisteredPlugin plugin) {\n this.loadedPlugins.remove(plugin);\n plugin.stop();\n plugin.uninstall();\n }", "class_method_signature": "PluginManager.uninstallPlugin(RegisteredPlugin plugin)", "constructor": false, "full_signature": "protected vo...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_46
{ "fields": [ { "declarator": "FILE_LOCATION", "modifier": "private static", "original_string": "private static File FILE_LOCATION;", "type": "File", "var_name": "FILE_LOCATION" }, { "declarator": "MISSING_FILE", "modifier": "private static", "original_strin...
{ "body": "@Test\n public void fileSeemsInvalidWhenFileNotExists() {\n assertThrows(FileNotFoundException.class, () -> controller.fileSeemsValid(MISSING_FILE));\n }", "class_method_signature": "PluginCenterControllerTest.fileSeemsInvalidWhenFileNotExists()", "constructor": false, "full_signature": ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(PluginCenterController.class.getName())", "modifier": "private static", "original_string": "private static Logger LOGGER = Logger.getLogger(PluginCenterController.class.getName());", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "protected boolean fileSeemsValid(final PluginFile file) throws FileNotFoundException {\n if (file == null) throw new NullPointerException(\"The file to check can not be null\");\n if (!file.exists()) throw new FileNotFoundException(\"The file to check must exist\");\n\n final Registere...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_50
{ "fields": [ { "declarator": "snippetExecutor = new GroovySnippetExecutor()", "modifier": "private final", "original_string": "private final GroovySnippetExecutor snippetExecutor = new GroovySnippetExecutor();", "type": "GroovySnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void noClassName() {\n final CodeSnippet snippet = new CodeSnippet();\n\n assertEquals(\"Snippet\", snippetExecutor.determineClassName(snippet));\n }", "class_method_signature": "GroovySnippetExecutorTest.noClassName()", "constructor": false, "full_signature": "@Tes...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected String determineClassName(final CodeSnippet codeSnippet) {\n String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY);\n if (className == null || className.isEmpty()) className = \"Snippet\";\n return className;\n }", "class_method_signature": "GroovySnipp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_9
{ "fields": [], "file": "slideshowfx-plugin-manager/src/test/java/com/twasyl/slideshowfx/plugin/manager/internal/RegisteredPluginTest.java", "identifier": "RegisteredPluginTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void pluginIsInstanceOf() throws IOException {\n final File plugin = PluginTestUtils.createDummyPlugin(\"my-plugin\", \"Awesome plugin\", \"1.0\");\n final RegisteredPlugin registeredPlugin = new RegisteredPlugin(new PluginFile(plugin));\n\n assertTrue(registeredPlugin.isIns...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(RegisteredPlugin.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(RegisteredPlugin.class.getName());", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "public boolean isInstanceOf(final Class<? extends IPlugin> clazz) {\n try (final Jar jar = this.file.getJar()) {\n return jar.getEntry(\"META-INF/services/\" + clazz.getName()) != null;\n } catch (IOException e) {\n LOGGER.log(WARNING, \"Can not determine instance of \" ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_8
{ "fields": [], "file": "slideshowfx-plugin-manager/src/test/java/com/twasyl/slideshowfx/plugin/manager/internal/RegisteredPluginTest.java", "identifier": "RegisteredPluginTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void getDescriptionWhenNotUnzipped() throws IOException {\n final File plugin = PluginTestUtils.createDummyPlugin(\"my-plugin\", \"Awesome plugin\", \"1.0\");\n final RegisteredPlugin registeredPlugin = new RegisteredPlugin(new PluginFile(plugin));\n\n final String descripti...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(RegisteredPlugin.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(RegisteredPlugin.class.getName());", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "public String getDescription() {\n if (this.description == null) {\n final String defaultValue = \"\";\n\n try (final Jar jar = this.file.getJar()) {\n if (jar != null) {\n this.description = jar.getManifestAttributeValue(\"Plugin-Description\"...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_51
{ "fields": [ { "declarator": "snippetExecutor = new GroovySnippetExecutor()", "modifier": "private final", "original_string": "private final GroovySnippetExecutor snippetExecutor = new GroovySnippetExecutor();", "type": "GroovySnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void emptyClassName() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(CLASS_NAME_PROPERTY, \"\");\n\n assertEquals(\"Snippet\", snippetExecutor.determineClassName(snippet));\n }", "class_method_signature": "GroovySnippetExecutorTe...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected String determineClassName(final CodeSnippet codeSnippet) {\n String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY);\n if (className == null || className.isEmpty()) className = \"Snippet\";\n return className;\n }", "class_method_signature": "GroovySnipp...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_47
{ "fields": [ { "declarator": "FILE_LOCATION", "modifier": "private static", "original_string": "private static File FILE_LOCATION;", "type": "File", "var_name": "FILE_LOCATION" }, { "declarator": "MISSING_FILE", "modifier": "private static", "original_strin...
{ "body": "@Test\n public void isManifestAttributeInvalidWhenNull() {\n assertFalse(controller.isValueValid(null));\n }", "class_method_signature": "PluginCenterControllerTest.isManifestAttributeInvalidWhenNull()", "constructor": false, "full_signature": "@Test public void isManifestAttributeInvali...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(PluginCenterController.class.getName())", "modifier": "private static", "original_string": "private static Logger LOGGER = Logger.getLogger(PluginCenterController.class.getName());", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "protected boolean isValueValid(final String value) {\n return value != null && !value.trim().isEmpty();\n }", "class_method_signature": "PluginCenterController.isValueValid(final String value)", "constructor": false, "full_signature": "protected boolean isValueValid(final String value)", ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_10
{ "fields": [], "file": "slideshowfx-plugin-manager/src/test/java/com/twasyl/slideshowfx/plugin/manager/internal/RegisteredPluginTest.java", "identifier": "RegisteredPluginTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n void pluginIsNotInstanceOf() throws IOException {\n final File plugin = PluginTestUtils.createDummyPlugin(\"my-plugin\", \"Awesome plugin\", \"1.0\");\n final RegisteredPlugin registeredPlugin = new RegisteredPlugin(new PluginFile(plugin));\n\n assertFalse(registeredPlugin.i...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(RegisteredPlugin.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(RegisteredPlugin.class.getName());", "type": "Logger", "var_name": "LOGGER" }...
{ "body": "public boolean isInstanceOf(final Class<? extends IPlugin> clazz) {\n try (final Jar jar = this.file.getJar()) {\n return jar.getEntry(\"META-INF/services/\" + clazz.getName()) != null;\n } catch (IOException e) {\n LOGGER.log(WARNING, \"Can not determine instance of \" ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_198
{ "fields": [ { "declarator": "snippetExecutor = new GoSnippetExecutor()", "modifier": "private final", "original_string": "private final GoSnippetExecutor snippetExecutor = new GoSnippetExecutor();", "type": "GoSnippetExecutor", "var_name": "snippetExecutor" } ], "file": "sl...
{ "body": "@Test\n public void buildSourceCodeWithoutImportsAndWithoutWrapInMain() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(PACKAGE_NAME_PROPERTY, \"sfx\");\n\n snippet.setCode(\"func main() {\\n\\tfmt.Printf(\\\"Hello, world.\\\\n\\\"...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected String buildSourceCode(final CodeSnippet codeSnippet) throws IOException {\n final StringBuilder sourceCode = new StringBuilder();\n\n sourceCode.append(getStartPackageDefinition(codeSnippet)).append(\"\\n\\n\");\n\n if (hasImports(codeSnippet)) {\n sourceCode.appe...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_84
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void getRecentPresentationsNode() throws Exception {\n final String xml = \"<slideshowfx><recentPresentations></recentPresentations></slideshowfx>\";\n final Document document = createDocumentFromString(xml);\n\n final Node recentPresentationsNode = ContextFileWorker....
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static Node getRecentPresentationsNode(final Document document) {\n Node recentPresentationsNode;\n\n final NodeList list = document.getElementsByTagName(RECENT_PRESENTATIONS_TAG);\n if (list != null && list.getLength() > 0) {\n recentPresentationsNode = list.item(...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_177
{ "fields": [], "file": "slideshowfx-ui-controls/src/test/java/com/twasyl/slideshowfx/ui/controls/validators/ValidatorsTest.java", "identifier": "ValidatorsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isIntegerWithNumberAndSpace() {\n assertFalse(isInteger().isValid(\"12 \"));\n }", "class_method_signature": "ValidatorsTest.isIntegerWithNumberAndSpace()", "constructor": false, "full_signature": "@Test public void isIntegerWithNumberAndSpace()", "identifier": "isI...
{ "fields": [], "file": "slideshowfx-ui-controls/src/main/java/com/twasyl/slideshowfx/ui/controls/validators/Validators.java", "identifier": "Validators", "interfaces": "", "methods": [ { "class_method_signature": "Validators.isNotEmpty()", "constructor": false, "full_signature": "public...
{ "body": "public static IValidator<String> isInteger() {\n return value -> {\n try {\n Integer.parseInt(value);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n };\n }", "class_method_signature...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_120
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static HtmlMarkup markup;", "type": "HtmlMarkup", "var_name": "markup" } ], "file": "slideshowfx-html/src/test/java/com/twasyl/slideshowfx/markup/html/HtmlMarkupTest.java", "id...
{ "body": "@Test\n public void generateStrong() {\n final String result = markup.convertAsHtml(\"<strong>Strong text</strong>\");\n\n assertEquals(\"<strong>Strong text</strong>\", result);\n }", "class_method_signature": "HtmlMarkupTest.generateStrong()", "constructor": false, "full_signatu...
{ "fields": [], "file": "slideshowfx-html/src/main/java/com/twasyl/slideshowfx/markup/html/HtmlMarkup.java", "identifier": "HtmlMarkup", "interfaces": "", "methods": [ { "class_method_signature": "HtmlMarkup.HtmlMarkup()", "constructor": true, "full_signature": "public HtmlMarkup()", ...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n return markupString;\n }", "class_metho...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_209
{ "fields": [], "file": "slideshowfx-utils/src/test/java/com/twasyl/slideshowfx/utils/keys/SlideshowFXKeyCombinationTest.java", "identifier": "SlideshowFXKeyCombinationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShiftA() {\n final SlideshowFXKeyCombination combination = SlideshowFXKeyCombination.valueOf(\"Shift+A\");\n assertCombination(DOWN, UP, UP, UP, UP, \"A\", combination);\n }", "class_method_signature": "SlideshowFXKeyCombinationTest.testShiftA()", "constructo...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName())", "modifier": "public static final", "original_string": "public static final Logger LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName());", "type": "Logger", "var_name"...
{ "body": "public static SlideshowFXKeyCombination valueOf(String value) {\n if (value == null) throw new NullPointerException(\"The value can not be null\");\n if (value.isEmpty()) throw new IllegalArgumentException(\"The value can not be empty\");\n\n String determinedText = null;\n KeyC...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_136
{ "fields": [ { "declarator": "snippetExecutor = new KotlinSnippetExecutor()", "modifier": "private final", "original_string": "private final KotlinSnippetExecutor snippetExecutor = new KotlinSnippetExecutor();", "type": "KotlinSnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void buildSourceCode() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(PACKAGE_NAME_PROPERTY, \"SlideshowFX\");\n snippet.getProperties().put(IMPORTS_PROPERTY, \"import mypackage\\nmysecondpackage\");\n snippe...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(KotlinSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(KotlinSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected String buildSourceCode(final CodeSnippet codeSnippet) throws IOException {\n final StringBuilder sourceCode = new StringBuilder();\n\n if (hasPackage(codeSnippet)) {\n sourceCode.append(getPackage(codeSnippet)).append(\"\\n\\n\");\n }\n\n if (hasImports(code...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_92
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void populateEmptyDocument() throws Exception {\n final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();\n final DocumentBuilder builder = factory.newDocumentBuilder();\n final Document document = builder.newDocument();\n\n ContextFileWork...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static void populateDocumentIfNecessary(final Document document) {\n Element root = document.getDocumentElement();\n if (root == null) {\n root = document.createElement(ROOT_TAG);\n document.appendChild(root);\n }\n\n try {\n final Stri...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_161
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static AsciidoctorMarkup markup;", "type": "AsciidoctorMarkup", "var_name": "markup" } ], "file": "slideshowfx-asciidoctor/src/test/java/com/twasyl/slideshowfx/markup/asciidoctor...
{ "body": "@Test public void generateUnorderedList() {\n final String result = markup.convertAsHtml(\"<ul><li>One</li><li>Two</li></ul>\");\n\n assertEquals(\"<ul><li>One</li><li>Two</li></ul>\", result);\n }", "class_method_signature": "AsciidoctorMarkupTest.generateUnorderedList()", "constructo...
{ "fields": [ { "declarator": "asciidoctor", "modifier": "private final", "original_string": "private final Asciidoctor asciidoctor;", "type": "Asciidoctor", "var_name": "asciidoctor" } ], "file": "slideshowfx-asciidoctor/src/main/java/com/twasyl/slideshowfx/markup/asciidocto...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n final AttributesBuilder attributes = Attribu...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_116
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static HtmlMarkup markup;", "type": "HtmlMarkup", "var_name": "markup" } ], "file": "slideshowfx-html/src/test/java/com/twasyl/slideshowfx/markup/html/HtmlMarkupTest.java", "id...
{ "body": "@Test\n public void generateH1() {\n final String result = markup.convertAsHtml(\"<h1>A title</h1>\");\n\n assertEquals(\"<h1>A title</h1>\", result);\n }", "class_method_signature": "HtmlMarkupTest.generateH1()", "constructor": false, "full_signature": "@Test public void generate...
{ "fields": [], "file": "slideshowfx-html/src/main/java/com/twasyl/slideshowfx/markup/html/HtmlMarkup.java", "identifier": "HtmlMarkup", "interfaces": "", "methods": [ { "class_method_signature": "HtmlMarkup.HtmlMarkup()", "constructor": true, "full_signature": "public HtmlMarkup()", ...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n return markupString;\n }", "class_metho...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_4
{ "fields": [ { "declarator": "TMP_DIR = new File(\"build/tmp\")", "modifier": "private static final", "original_string": "private static final File TMP_DIR = new File(\"build/tmp\");", "type": "File", "var_name": "TMP_DIR" }, { "declarator": "PLUGIN_FILE", "modif...
{ "body": "@Test\n void testGetClass() throws IOException, ClassNotFoundException {\n final PluginClassLoader pluginClassLoader = PluginClassLoader.newInstance(PLUGIN_FILE);\n final Class<?> clazz = pluginClassLoader.loadClass(\"com.twasyl.slideshowfx.dummy.plugin.Dummy\");\n\n assertAll(\n ...
{ "fields": [], "file": "slideshowfx-plugin-manager/src/main/java/com/twasyl/slideshowfx/plugin/manager/internal/PluginClassLoader.java", "identifier": "PluginClassLoader", "interfaces": "", "methods": [ { "class_method_signature": "PluginClassLoader.PluginClassLoader(URL[] urls)", "constructo...
{ "body": "public static PluginClassLoader newInstance(final PluginFile file) throws IOException {\n if (file == null) throw new NullPointerException(\"The plugin can not be null\");\n\n try (final ZipFile zipFile = new ZipFile(file)) {\n final URL[] urls = zipFile.stream()\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_141
{ "fields": [ { "declarator": "snippetExecutor = new ScalaSnippetExecutor()", "modifier": "private final", "original_string": "private final ScalaSnippetExecutor snippetExecutor = new ScalaSnippetExecutor();", "type": "ScalaSnippetExecutor", "var_name": "snippetExecutor" } ], ...
{ "body": "@Test\n public void hasEmptyImports() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(IMPORTS_PROPERTY, \"\");\n\n assertFalse(snippetExecutor.hasImports(snippet));\n }", "class_method_signature": "ScalaSnippetExecutorTest.hasEmptyImports()", ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGE...
{ "body": "protected boolean hasImports(final CodeSnippet codeSnippet) {\n final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY);\n return imports != null && !imports.isEmpty();\n }", "class_method_signature": "ScalaSnippetExecutor.hasImports(final CodeSnippet codeSnippet)", "c...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_157
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static AsciidoctorMarkup markup;", "type": "AsciidoctorMarkup", "var_name": "markup" } ], "file": "slideshowfx-asciidoctor/src/test/java/com/twasyl/slideshowfx/markup/asciidoctor...
{ "body": "@Test public void generateH2() {\n final String result = markup.convertAsHtml(\"== A title\");\n System.out.println(result);\n assertEquals(\"<h2>A title</h2>\", result);\n }", "class_method_signature": "AsciidoctorMarkupTest.generateH2()", "constructor": false, "full_signatur...
{ "fields": [ { "declarator": "asciidoctor", "modifier": "private final", "original_string": "private final Asciidoctor asciidoctor;", "type": "Asciidoctor", "var_name": "asciidoctor" } ], "file": "slideshowfx-asciidoctor/src/main/java/com/twasyl/slideshowfx/markup/asciidocto...
{ "body": "@Override\n public String convertAsHtml(String markupString) throws IllegalArgumentException {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n final AttributesBuilder attributes = Attribu...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_100
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void purgeRecentPresentationsWhenEqualAsSpecified() throws ContextFileException {\n final int numberOfRecentPresentationsToKeep = 3;\n final RecentPresentation recentPresentation1 = new RecentPresentation(\"presentation1.sfx\", LocalDateTime.now());\n final RecentPres...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "static Set<RecentPresentation> purgeRecentPresentations(final File contextFile, final long numberOfRecentPresentationsToKeep) throws ContextFileException {\n checkContextFileValidity(contextFile);\n if (numberOfRecentPresentationsToKeep < 0)\n throw new IllegalArgumentException(\"T...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_88
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void saveWithExistingDocument() throws Exception {\n final RecentPresentation recentPresentation1 = new RecentPresentation(\"presentation1.sfx\", LocalDateTime.now());\n final RecentPresentation recentPresentation2 = new RecentPresentation(\"presentation2.sfx\", LocalDateTim...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static void saveRecentPresentation(final InputStream input, final OutputStream output,\n final RecentPresentation recentPresentation) throws ContextFileException {\n final Document document = createDocumentFromInput(input);\n\n populat...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_194
{ "fields": [ { "declarator": "snippetExecutor = new GoSnippetExecutor()", "modifier": "private final", "original_string": "private final GoSnippetExecutor snippetExecutor = new GoSnippetExecutor();", "type": "GoSnippetExecutor", "var_name": "snippetExecutor" } ], "file": "sl...
{ "body": "@Test\n public void formatImportWithoutDoubleQuotes() {\n assertEquals(\"\\\"fmt\\\"\", snippetExecutor.formatImportLine(\"fmt\"));\n }", "class_method_signature": "GoSnippetExecutorTest.formatImportWithoutDoubleQuotes()", "constructor": false, "full_signature": "@Test public void format...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected String formatImportLine(final String importLine) {\n final String importLineBeginning = \"\\\"\";\n final String importLineEnding = \"\\\"\";\n\n String formattedImportLine;\n\n if (importLine.startsWith(importLineBeginning)) {\n formattedImportLine = import...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_67
{ "fields": [ { "declarator": "snippetExecutor = new GroovySnippetExecutor()", "modifier": "private final", "original_string": "private final GroovySnippetExecutor snippetExecutor = new GroovySnippetExecutor();", "type": "GroovySnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void buildSourceCode() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(CLASS_NAME_PROPERTY, \"TestGroovy\");\n snippet.getProperties().put(IMPORTS_PROPERTY, \"import mypackage\\nmysecondpackage\");\n snippet.g...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected String buildSourceCode(final CodeSnippet codeSnippet) throws IOException {\n final StringBuilder sourceCode = new StringBuilder();\n\n boolean someImportsPresent = false;\n\n if (makeScript(codeSnippet)) {\n sourceCode.append(getScriptImport()).append(\"\\n\");\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_205
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ZipUtilsTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ZipUtilsTest.class.getName());", "type": "Logger", "var_name": "LOGGER" }, { ...
{ "body": "@Test\n public void zip() throws IOException {\n final File zip = new File(testResultsDir, \"zipped.zip\");\n ZipUtils.zip(resourcesDir, zip);\n\n // Verify all content of the zip\n try (final FileInputStream fileInput = new FileInputStream(zip);\n final ZipInputS...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ZipUtils.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ZipUtils.class.getName());", "type": "Logger", "var_name": "LOGGER" } ], "file": ...
{ "body": "public static void zip(File fileToZip, File destination) throws IOException {\n if (fileToZip == null) throw new NullPointerException(\"The file to zip can not be null\");\n if (!fileToZip.exists()) throw new FileNotFoundException(\"The file to zip does not exist\");\n if (destination ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_30
{ "fields": [ { "declarator": "snippetExecutor = new JavaSnippetExecutor()", "modifier": "private final", "original_string": "private final JavaSnippetExecutor snippetExecutor = new JavaSnippetExecutor();", "type": "JavaSnippetExecutor", "var_name": "snippetExecutor" } ], "fi...
{ "body": "@Test\n public void hasEmptyImports() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(IMPORTS_PROPERTY, \"\");\n\n assertFalse(snippetExecutor.hasImports(snippet));\n }", "class_method_signature": "JavaSnippetExecutorTest.hasEmptyImports()", "...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER"...
{ "body": "protected boolean hasImports(final CodeSnippet codeSnippet) {\n final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY);\n return imports != null && !imports.isEmpty();\n }", "class_method_signature": "JavaSnippetExecutor.hasImports(final CodeSnippet codeSnippet)", "co...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_213
{ "fields": [], "file": "slideshowfx-utils/src/test/java/com/twasyl/slideshowfx/utils/keys/SlideshowFXKeyCombinationTest.java", "identifier": "SlideshowFXKeyCombinationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testShortcutMetaA() {\n final SlideshowFXKeyCombination combination = SlideshowFXKeyCombination.valueOf(\"Shortcut+Meta+A\");\n assertCombination(UP, UP, UP, DOWN, DOWN, \"A\", combination);\n }", "class_method_signature": "SlideshowFXKeyCombinationTest.testShortcu...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName())", "modifier": "public static final", "original_string": "public static final Logger LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName());", "type": "Logger", "var_name"...
{ "body": "public static SlideshowFXKeyCombination valueOf(String value) {\n if (value == null) throw new NullPointerException(\"The value can not be null\");\n if (value.isEmpty()) throw new IllegalArgumentException(\"The value can not be empty\");\n\n String determinedText = null;\n KeyC...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_26
{ "fields": [ { "declarator": "snippetExecutor = new JavaSnippetExecutor()", "modifier": "private final", "original_string": "private final JavaSnippetExecutor snippetExecutor = new JavaSnippetExecutor();", "type": "JavaSnippetExecutor", "var_name": "snippetExecutor" } ], "fi...
{ "body": "@Test\n public void noClassName() {\n final CodeSnippet snippet = new CodeSnippet();\n\n assertEquals(\"Snippet\", snippetExecutor.determineClassName(snippet));\n }", "class_method_signature": "JavaSnippetExecutorTest.noClassName()", "constructor": false, "full_signature": "@Test ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER"...
{ "body": "protected String determineClassName(final CodeSnippet codeSnippet) {\n String className = codeSnippet.getProperties().get(CLASS_NAME_PROPERTY);\n if (className == null || className.isEmpty()) className = \"Snippet\";\n return className;\n }", "class_method_signature": "JavaSnippet...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_182
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static TextileMarkup markup;", "type": "TextileMarkup", "var_name": "markup" } ], "file": "slideshowfx-textile/src/test/java/com/twasyl/slideshowfx/markup/textile/TextileMarkupTe...
{ "body": "@Test\n public void generateH2() {\n final String result = markup.convertAsHtml(\"h2. A title\");\n\n assertEquals(\"<h2 id=\\\"Atitle\\\">A title</h2>\", result);\n }", "class_method_signature": "TextileMarkupTest.generateH2()", "constructor": false, "full_signature": "@Test publ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(TextileMarkup.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(TextileMarkup.class.getName());", "type": "Logger", "var_name": "LOGGER" } ], ...
{ "body": "@Override\n public String convertAsHtml(String markupString) {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n String result = null;\n\n try (final StringWriter writer = new String...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_71
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/RecentPresentationTest.java", "identifier": "RecentPresentationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @DisplayName(\"is not equal to an object of different type\")\n void notEqualToDifferentType() {\n final RecentPresentation presentation = new RecentPresentation(\"presentation1.sfx\", null);\n assertFalse(presentation.equals(\"Hello\"));\n }", "class_method_signature": "Re...
{ "fields": [ { "declarator": "openedDateTime", "modifier": "private", "original_string": "private LocalDateTime openedDateTime;", "type": "LocalDateTime", "var_name": "openedDateTime" }, { "declarator": "normalizedPath", "modifier": "private", "original_str...
{ "body": "@Override\n public boolean equals(Object o) {\n if (this == o) return true;\n if (o == null || getClass() != o.getClass()) return false;\n if (!super.equals(o)) return false;\n\n final RecentPresentation that = (RecentPresentation) o;\n\n return getNormalizedPath().equ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_189
{ "fields": [ { "declarator": "snippetExecutor = new GoSnippetExecutor()", "modifier": "private final", "original_string": "private final GoSnippetExecutor snippetExecutor = new GoSnippetExecutor();", "type": "GoSnippetExecutor", "var_name": "snippetExecutor" } ], "file": "sl...
{ "body": "@Test\n public void emptyPackageName() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(PACKAGE_NAME_PROPERTY, \"\");\n\n assertEquals(\"slideshowfx\", snippetExecutor.determinePackageName(snippet));\n }", "class_method_signature": "GoSnippetExec...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected String determinePackageName(final CodeSnippet codeSnippet) {\n String packageName = codeSnippet.getProperties().get(PACKAGE_NAME_PROPERTY);\n if (packageName == null || packageName.isEmpty()) packageName = \"slideshowfx\";\n return packageName;\n }", "class_method_signat...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_95
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void findExistingRecentPresentation() throws Exception {\n final RecentPresentation recentPresentation1 = new RecentPresentation(\"presentation1.sfx\", LocalDateTime.now());\n final RecentPresentation recentPresentation2 = new RecentPresentation(\"presentation2.sfx\", recent...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static Node findRecentPresentationNodeFromID(final Document document, final RecentPresentation recentPresentation) throws ContextFileException {\n final StringBuilder expression = new StringBuilder(\"/\").append(ROOT_TAG)\n .append(\"/\").append(RECENT_PRESENTATIONS_TAG)\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_166
{ "fields": [ { "declarator": "quiz", "modifier": "private static", "original_string": "private static Quiz quiz;", "type": "Quiz", "var_name": "quiz" } ], "file": "slideshowfx-server/src/test/java/com/twasyl/slideshowfx/server/beans/quiz/QuizTest.java", "identifier": "Quiz...
{ "body": "@Test\n public void testWithoutAllCorrectAnswers() {\n assertFalse(quiz.checkAnswers(2L));\n }", "class_method_signature": "QuizTest.testWithoutAllCorrectAnswers()", "constructor": false, "full_signature": "@Test public void testWithoutAllCorrectAnswers()", "identifier": "testWithoutAl...
{ "fields": [ { "declarator": "id = new SimpleLongProperty()", "modifier": "private", "original_string": "private LongProperty id = new SimpleLongProperty();", "type": "LongProperty", "var_name": "id" }, { "declarator": "question = new SimpleObjectProperty<>()", "...
{ "body": "public boolean checkAnswers(Long... answersIDs) {\n boolean correct = answersIDs != null && answersIDs.length > 0;\n\n // Avoid unnecessary treatment and variable assignment\n if (correct) {\n final List<Answer> correctAnswers = this.getAnswers().filtered(Answer::isCorrect);...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_131
{ "fields": [ { "declarator": "snippetExecutor = new KotlinSnippetExecutor()", "modifier": "private final", "original_string": "private final KotlinSnippetExecutor snippetExecutor = new KotlinSnippetExecutor();", "type": "KotlinSnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void formatPackageWithoutPackageKeyword() {\n assertEquals(\"package SlideshowFX\", snippetExecutor.formatPackageName(\"SlideshowFX\"));\n }", "class_method_signature": "KotlinSnippetExecutorTest.formatPackageWithoutPackageKeyword()", "constructor": false, "full_signature"...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(KotlinSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(KotlinSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected String formatPackageName(final String packageName) {\n final String packageLineBeginning = \"package \";\n\n String formattedPackageLine;\n\n if (packageName.startsWith(packageLineBeginning)) {\n formattedPackageLine = packageName;\n } else {\n fo...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_127
{ "fields": [ { "declarator": "snippetExecutor = new KotlinSnippetExecutor()", "modifier": "private final", "original_string": "private final KotlinSnippetExecutor snippetExecutor = new KotlinSnippetExecutor();", "type": "KotlinSnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void hasPackage() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(PACKAGE_NAME_PROPERTY, \"SlideshowFX\");\n\n assertTrue(snippetExecutor.hasPackage(snippet));\n }", "class_method_signature": "KotlinSnippetExecutorTest.hasPackage(...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(KotlinSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(KotlinSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected boolean hasPackage(final CodeSnippet codeSnippet) {\n final String packageName = codeSnippet.getProperties().get(PACKAGE_NAME_PROPERTY);\n return packageName != null && !packageName.isEmpty();\n }", "class_method_signature": "KotlinSnippetExecutor.hasPackage(final CodeSnippet c...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_83
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void createRecentPresentationFromNodeWithoutChildren() {\n final Node node = createRecentPresentationNode();\n final RecentPresentation recentPresentation = ContextFileWorker.buildRecentPresentationFromNode(node);\n\n assertNull(recentPresentation);\n }", "class_...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected static RecentPresentation buildRecentPresentationFromNode(final Node node) {\n RecentPresentation recentPresentation = null;\n LocalDateTime openedDateTime = null;\n String path = null;\n\n final NodeList children = node.getChildNodes();\n int index = 0;\n\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_170
{ "fields": [], "file": "slideshowfx-ui-controls/src/test/java/com/twasyl/slideshowfx/ui/controls/validators/ValidatorsTest.java", "identifier": "ValidatorsTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void isNotEmptyWithEmptyString() {\n assertFalse(isNotEmpty().isValid(\"\"));\n }", "class_method_signature": "ValidatorsTest.isNotEmptyWithEmptyString()", "constructor": false, "full_signature": "@Test public void isNotEmptyWithEmptyString()", "identifier": "isNotEmptyW...
{ "fields": [], "file": "slideshowfx-ui-controls/src/main/java/com/twasyl/slideshowfx/ui/controls/validators/Validators.java", "identifier": "Validators", "interfaces": "", "methods": [ { "class_method_signature": "Validators.isNotEmpty()", "constructor": false, "full_signature": "public...
{ "body": "public static IValidator<String> isNotEmpty() {\n return value -> value != null && !value.isBlank();\n }", "class_method_signature": "Validators.isNotEmpty()", "constructor": false, "full_signature": "public static IValidator<String> isNotEmpty()", "identifier": "isNotEmpty", "invocatio...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_17
{ "fields": [ { "declarator": "snippetExecutor = new GoloSnippetExecutor()", "modifier": "private final", "original_string": "private final GoloSnippetExecutor snippetExecutor = new GoloSnippetExecutor();", "type": "GoloSnippetExecutor", "var_name": "snippetExecutor" } ], "fi...
{ "body": "@Test\n public void hasEmptyImports() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(IMPORTS_PROPERTY, \"\");\n\n assertFalse(snippetExecutor.hasImports(snippet));\n }", "class_method_signature": "GoloSnippetExecutorTest.hasEmptyImports()", "...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoloSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoloSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER"...
{ "body": "protected boolean hasImports(final CodeSnippet codeSnippet) {\n final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY);\n return imports != null && !imports.isEmpty();\n }", "class_method_signature": "GoloSnippetExecutor.hasImports(final CodeSnippet codeSnippet)", "co...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_40
{ "fields": [], "file": "slideshowfx-icons/src/test/java/com/twasyl/slideshowfx/icons/FontAwesomeTest.java", "identifier": "FontAwesomeTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void obtainRegularFontFile() throws URISyntaxException {\n assertFontAwesomeUrl(FontAwesome.getFontAwesomeFontFile(REGULAR));\n }", "class_method_signature": "FontAwesomeTest.obtainRegularFontFile()", "constructor": false, "full_signature": "@Test public void obtainRegular...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(FontAwesome.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(FontAwesome.class.getName());", "type": "Logger", "var_name": "LOGGER" }, { ...
{ "body": "public static URL getFontAwesomeFontFile(final FontType type) {\n final StringBuilder path = new StringBuilder(\"fonts/fontawesome-\")\n .append(type.name().toLowerCase()).append(\".otf\");\n\n return getFontAwesomeFile(path.toString());\n }", "class_method_signature": "Fo...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_56
{ "fields": [ { "declarator": "snippetExecutor = new GroovySnippetExecutor()", "modifier": "private final", "original_string": "private final GroovySnippetExecutor snippetExecutor = new GroovySnippetExecutor();", "type": "GroovySnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void hasNoImports() {\n final CodeSnippet snippet = new CodeSnippet();\n\n assertFalse(snippetExecutor.hasImports(snippet));\n }", "class_method_signature": "GroovySnippetExecutorTest.hasNoImports()", "constructor": false, "full_signature": "@Test public void hasNoI...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected boolean hasImports(final CodeSnippet codeSnippet) {\n final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY);\n return imports != null && !imports.isEmpty();\n }", "class_method_signature": "GroovySnippetExecutor.hasImports(final CodeSnippet codeSnippet)", "...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_99
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/ContextFileWorkerTest.java", "identifier": "ContextFileWorkerTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void purgeRecentPresentations() throws ContextFileException {\n final int numberOfRecentPresentationsToKeep = 2;\n final RecentPresentation recentPresentation1 = new RecentPresentation(\"presentation1.sfx\", LocalDateTime.now());\n final RecentPresentation recentPrese...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ContextFileWorker.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ContextFileWorker.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "static Set<RecentPresentation> purgeRecentPresentations(final File contextFile, final long numberOfRecentPresentationsToKeep) throws ContextFileException {\n checkContextFileValidity(contextFile);\n if (numberOfRecentPresentationsToKeep < 0)\n throw new IllegalArgumentException(\"T...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_185
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static TextileMarkup markup;", "type": "TextileMarkup", "var_name": "markup" } ], "file": "slideshowfx-textile/src/test/java/com/twasyl/slideshowfx/markup/textile/TextileMarkupTe...
{ "body": "@Test\n public void generateStrong() {\n final String result = markup.convertAsHtml(\"*Strong text*\");\n\n assertEquals(\"<p><strong>Strong text</strong></p>\", result);\n }", "class_method_signature": "TextileMarkupTest.generateStrong()", "constructor": false, "full_signature": ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(TextileMarkup.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(TextileMarkup.class.getName());", "type": "Logger", "var_name": "LOGGER" } ], ...
{ "body": "@Override\n public String convertAsHtml(String markupString) {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n String result = null;\n\n try (final StringWriter writer = new String...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_76
{ "fields": [], "file": "slideshowfx-global-configuration/src/test/java/com/twasyl/slideshowfx/global/configuration/RecentPresentationTest.java", "identifier": "RecentPresentationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n @DisplayName(\"is equal to itself using compareTo\")\n void compareToIsEqual() {\n final RecentPresentation presentation1 = new RecentPresentation(\"presentation1.sfx\", null);\n assertEquals(0, presentation1.compareTo(presentation1));\n }", "class_method_signature": "Recen...
{ "fields": [ { "declarator": "openedDateTime", "modifier": "private", "original_string": "private LocalDateTime openedDateTime;", "type": "LocalDateTime", "var_name": "openedDateTime" }, { "declarator": "normalizedPath", "modifier": "private", "original_str...
{ "body": "@Override\n public int compareTo(File o) {\n if (o != null && o instanceof RecentPresentation) {\n final RecentPresentation other = (RecentPresentation) o;\n return this.getNormalizedPath().compareTo(other.getNormalizedPath());\n }\n\n return 1;\n }", "cla...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_21
{ "fields": [ { "declarator": "snippetExecutor = new GoloSnippetExecutor()", "modifier": "private final", "original_string": "private final GoloSnippetExecutor snippetExecutor = new GoloSnippetExecutor();", "type": "GoloSnippetExecutor", "var_name": "snippetExecutor" } ], "fi...
{ "body": "@Test\n public void importsWithAndWithoutKeyword() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(IMPORTS_PROPERTY, \"import mypackage\\nmysecondpackage\");\n\n assertEquals(\"import mypackage\\nimport mysecondpackage\", snippetEx...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoloSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoloSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER"...
{ "body": "protected String getImports(final CodeSnippet codeSnippet) throws IOException {\n final StringJoiner imports = new StringJoiner(\"\\n\");\n\n try (final StringReader stringReader = new StringReader(codeSnippet.getProperties().get(IMPORTS_PROPERTY));\n final BufferedReader reader =...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_214
{ "fields": [], "file": "slideshowfx-utils/src/test/java/com/twasyl/slideshowfx/utils/keys/SlideshowFXKeyCombinationTest.java", "identifier": "SlideshowFXKeyCombinationTest", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testMetaShortcutA() {\n final SlideshowFXKeyCombination combination = SlideshowFXKeyCombination.valueOf(\"Meta+Shortcut+A\");\n assertCombination(UP, UP, UP, DOWN, DOWN, \"A\", combination);\n }", "class_method_signature": "SlideshowFXKeyCombinationTest.testMetaSho...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName())", "modifier": "public static final", "original_string": "public static final Logger LOGGER = Logger.getLogger(SlideshowFXKeyCombination.class.getName());", "type": "Logger", "var_name"...
{ "body": "public static SlideshowFXKeyCombination valueOf(String value) {\n if (value == null) throw new NullPointerException(\"The value can not be null\");\n if (value.isEmpty()) throw new IllegalArgumentException(\"The value can not be empty\");\n\n String determinedText = null;\n KeyC...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_37
{ "fields": [ { "declarator": "snippetExecutor = new JavaSnippetExecutor()", "modifier": "private final", "original_string": "private final JavaSnippetExecutor snippetExecutor = new JavaSnippetExecutor();", "type": "JavaSnippetExecutor", "var_name": "snippetExecutor" } ], "fi...
{ "body": "@Test\n public void buildSourceCodeWithoutImportsAndWithoutWrapInMain() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(CLASS_NAME_PROPERTY, \"TestJava\");\n\n snippet.setCode(\"public static void main(String ... args) {\\n\\tSyste...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(JavaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER"...
{ "body": "protected String buildSourceCode(final CodeSnippet codeSnippet) throws IOException {\n final StringBuilder sourceCode = new StringBuilder();\n\n if (hasImports(codeSnippet)) {\n sourceCode.append(getImports(codeSnippet)).append(\"\\n\\n\");\n }\n\n sourceCode.append(g...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_202
{ "fields": [ { "declarator": "baseLocation", "modifier": "private static", "original_string": "private static File baseLocation;", "type": "File", "var_name": "baseLocation" }, { "declarator": "visitor", "modifier": "private", "original_string": "private Li...
{ "body": "@Test\n public void testWalkOnExistingFile() throws IOException {\n final File file = new File(baseLocation, \"file.txt\");\n Files.walkFileTree(file.toPath(), visitor);\n\n assertFalse(visitor.getPaths().isEmpty());\n assertEquals(file.toPath(), visitor.getPaths().get(0));\n...
{ "fields": [ { "declarator": "paths = new ArrayList<>()", "modifier": "private", "original_string": "private List<Path> paths = new ArrayList<>();", "type": "List<Path>", "var_name": "paths" }, { "declarator": "nonEmptyDirectories = new HashSet<>()", "modifier": ...
{ "body": "public List<Path> getPaths() {\n return paths;\n }", "class_method_signature": "ListFilesFileVisitor.getPaths()", "constructor": false, "full_signature": "public List<Path> getPaths()", "identifier": "getPaths", "invocations": [], "modifiers": "public", "parameters": "()", "return...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_193
{ "fields": [ { "declarator": "snippetExecutor = new GoSnippetExecutor()", "modifier": "private final", "original_string": "private final GoSnippetExecutor snippetExecutor = new GoSnippetExecutor();", "type": "GoSnippetExecutor", "var_name": "snippetExecutor" } ], "file": "sl...
{ "body": "@Test\n public void hasImports() {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.getProperties().put(IMPORTS_PROPERTY, \"fmt\");\n\n assertTrue(snippetExecutor.hasImports(snippet));\n }", "class_method_signature": "GoSnippetExecutorTest.hasImports()", "constructo...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GoSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "protected boolean hasImports(final CodeSnippet codeSnippet) {\n final String imports = codeSnippet.getProperties().get(IMPORTS_PROPERTY);\n return imports != null && !imports.isEmpty();\n }", "class_method_signature": "GoSnippetExecutor.hasImports(final CodeSnippet codeSnippet)", "cons...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_60
{ "fields": [ { "declarator": "snippetExecutor = new GroovySnippetExecutor()", "modifier": "private final", "original_string": "private final GroovySnippetExecutor snippetExecutor = new GroovySnippetExecutor();", "type": "GroovySnippetExecutor", "var_name": "snippetExecutor" } ...
{ "body": "@Test\n public void formatImportWithImportKeyword() {\n assertEquals(\"import mypackage\", snippetExecutor.formatImportLine(\"import mypackage\"));\n }", "class_method_signature": "GroovySnippetExecutorTest.formatImportWithImportKeyword()", "constructor": false, "full_signature": "@Test ...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(GroovySnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOG...
{ "body": "protected String formatImportLine(final String importLine) {\n final String importLineBeginning = \"import \";\n\n String formattedImportLine;\n\n if (importLine.startsWith(importLineBeginning)) {\n formattedImportLine = importLine;\n } else {\n formattedIm...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_107
{ "fields": [ { "declarator": "markup", "modifier": "private static", "original_string": "private static MarkdownMarkup markup;", "type": "MarkdownMarkup", "var_name": "markup" } ], "file": "slideshowfx-markdown/src/test/java/com/twasyl/slideshowfx/markup/markdown/MarkdownMar...
{ "body": "@Test\n void generateStrong() {\n final String result = markup.convertAsHtml(\"*Strong text*\");\n\n assertEquals(\"<p><em>Strong text</em></p>\", result);\n }", "class_method_signature": "MarkdownMarkupTest.generateStrong()", "constructor": false, "full_signature": "@Test void ge...
{ "fields": [ { "declarator": "extensions", "modifier": "private final", "original_string": "private final List<Extension> extensions;", "type": "List<Extension>", "var_name": "extensions" } ], "file": "slideshowfx-markdown/src/main/java/com/twasyl/slideshowfx/markup/markdown...
{ "body": "@Override\n public String convertAsHtml(String markupString) {\n if (markupString == null)\n throw new IllegalArgumentException(\"Can not convert \" + getName() + \" to HTML : the String is null\");\n\n final Parser parser = Parser.builder().extensions(extensions).build();\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_150
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(SlideshowFXHandlerTest.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(SlideshowFXHandlerTest.class.getName());", "type": "Logger", "var_name": "L...
{ "body": "@Test\n @DisplayName(\"returns all logs\")\n void returnsAllLogs() {\n LOGGER.log(INFO, \"Information message\");\n LOGGER.warning(\"Warning message\");\n\n assertTrue(handler.getAllLogs().contains(\"INFO: Information message\"));\n assertTrue(handler.getAllLogs().contains...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(SlideshowFXHandler.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(SlideshowFXHandler.class.getName());", "type": "Logger", "var_name": "LOGGER" ...
{ "body": "public synchronized String getAllLogs() {\n String logs = \"\";\n\n try {\n super.flush();\n logs = new String(this.byteOutput.toByteArray(), this.getEncoding());\n } catch (IOException e) {\n LOGGER.log(WARNING, \"Error retrieving all logs\", e);\n ...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }
30044052_146
{ "fields": [ { "declarator": "snippetExecutor = new ScalaSnippetExecutor()", "modifier": "private final", "original_string": "private final ScalaSnippetExecutor snippetExecutor = new ScalaSnippetExecutor();", "type": "ScalaSnippetExecutor", "var_name": "snippetExecutor" } ], ...
{ "body": "@Test\n public void buildSourceCodeWithoutImportsAndWithoutWrapInMainAndWithoutClassName() throws IOException {\n final CodeSnippet snippet = new CodeSnippet();\n snippet.setCode(\"def main(args: Array[String]) {\\n\\tprintln(\\\"Hello\\\")\\n}\");\n\n final String expected = IOUtil...
{ "fields": [ { "declarator": "LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName())", "modifier": "private static final", "original_string": "private static final Logger LOGGER = Logger.getLogger(ScalaSnippetExecutor.class.getName());", "type": "Logger", "var_name": "LOGGE...
{ "body": "protected String buildSourceCode(final CodeSnippet codeSnippet) throws IOException {\n final StringBuilder sourceCode = new StringBuilder();\n\n if (hasImports(codeSnippet)) {\n sourceCode.append(getImports(codeSnippet)).append(\"\\n\\n\");\n }\n\n sourceCode.append(g...
{ "created": null, "fork": null, "fork_count": 5, "is_fork": false, "language": "Java", "license": "licensed", "repo_id": 30044052, "size": 221114, "stargazer_count": 45, "stars": null, "updates": null, "url": "https://github.com/twasyl/SlideshowFX" }