id
stringlengths
7
14
test_class
dict
test_case
dict
focal_class
dict
focal_method
dict
repository
dict
2383782_40
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testWithoutTouchz() {\n final ActionAttributesBuilder builder = getBuilderInstance();\n\n for (final Touchz touchz : TOUCHZS) {\n builder.withTouchz(touchz);\n }\n\n builder.withoutTouchz(TOUCHZS[0]);\n\n final ActionAttributes attributes...
{ "fields": [ { "declarator": "resourceManager", "modifier": "private final", "original_string": "private final ModifyOnce<String> resourceManager;", "type": "ModifyOnce<String>", "var_name": "resourceManager" }, { "declarator": "nameNode", "modifier": "private fi...
{ "body": "void withoutTouchz(final Touchz touchz) {\n touchzs.remove(touchz);\n }", "class_method_signature": "ActionAttributesBuilder.withoutTouchz(final Touchz touchz)", "constructor": false, "full_signature": " void withoutTouchz(final Touchz touchz)", "identifier": "withoutTouchz", "invocatio...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_376
{ "fields": [ { "declarator": "services", "modifier": "private", "original_string": "private Services services;", "type": "Services", "var_name": "services" }, { "declarator": "OOZIE_HOME_DIR = null", "modifier": "private static", "original_string": "private...
{ "body": "@Test\n public void testAddToJobConfFromHCat() throws Exception {\n File hcatConfig = new File(OOZIE_HOME_DIR, \"hcatConf.xml\");\n Writer fw = new OutputStreamWriter(new FileOutputStream(hcatConfig),\n StandardCharsets.UTF_8);\n fw.write(getHiveConfig(TEST_HIVE_METAS...
{ "fields": [ { "declarator": "HCAT_METASTORE_PRINCIPAL = \"hcat.metastore.principal\"", "modifier": "private static final", "original_string": "private static final String HCAT_METASTORE_PRINCIPAL = \"hcat.metastore.principal\";", "type": "String", "var_name": "HCAT_METASTORE_PRINCI...
{ "body": "@Override\n public void updateCredentials(Credentials credentials, Configuration config, CredentialsProperties props,\n Context context) throws Exception {\n try {\n\n String principal = getProperty(props.getProperties(), HCAT_METASTORE_PRINCIPAL, HIVE_METASTORE_PRINCIPAL);\...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_399
{ "fields": [ { "declarator": "mockServices", "modifier": "@Mock", "original_string": "@Mock Services mockServices;", "type": "Services", "var_name": "mockServices" }, { "declarator": "mockCfgService", "modifier": "@Mock", "original_string": "@Mock Configura...
{ "body": "@Test\n public void constraintHandlersCanBeSet() {\n Configuration config = new Configuration(false);\n config.set(\"oozie.base.url\", \"https://localhost:11443/oozie\");\n when(mockCfgService.getConf()).thenReturn(config);\n when(mockServices.get(ConfigurationService.class))...
{ "fields": [ { "declarator": "oozieConfiguration", "modifier": "private final", "original_string": "private final Configuration oozieConfiguration;", "type": "Configuration", "var_name": "oozieConfiguration" } ], "file": "server/src/main/java/org/apache/oozie/server/guice/Co...
{ "body": "@Override\n public ConstraintSecurityHandler get() {\n String contextPath = EmbeddedOozieServer.getContextPath(oozieConfiguration);\n ConstraintMapping callbackConstraintMapping = new ConstraintMapping();\n callbackConstraintMapping.setPathSpec(String.format(\"%s/callback/*\", conte...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_233
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestDateUtils.java", "identifier": "TestDateUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetTimeZoneValidFormats() throws Exception {\n Assert.assertEquals(TimeZone.getTimeZone(\"America/Los_Angeles\"), DateUtils.getTimeZone(\"America/Los_Angeles\"));\n\n Assert.assertEquals(TimeZone.getTimeZone(\"PST\"), DateUtils.getTimeZone(\"PST\"));\n\n Asse...
{ "fields": [ { "declarator": "LOG = XLog.getLog(DateUtils.class)", "modifier": "private static final", "original_string": "private static final XLog LOG = XLog.getLog(DateUtils.class);", "type": "XLog", "var_name": "LOG" }, { "declarator": "GMT_OFFSET_COLON_PATTERN = P...
{ "body": "public static TimeZone getTimeZone(String tzId) {\n if (tzId == null) {\n throw new IllegalArgumentException(\"Invalid TimeZone: \" + tzId);\n }\n tzId = handleGMTOffsetTZNames(tzId); // account for GMT-####\n TimeZone tz = TimeZone.getTimeZone(tzId);\n\n //...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_17
{ "fields": [ { "declarator": "folder = new TemporaryFolder()", "modifier": "@Rule\n public", "original_string": "@Rule\n public TemporaryFolder folder = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "folder" }, { "declarator": "mockDiagClient", ...
{ "body": "@Test\n public void testGetShareLibInfo() throws Exception {\n doReturn(\"share1\\nshare2\").when(mockDiagClient).listShareLib(isNull());\n doReturn(\"share1\\nshare2\").when(mockDiagClient).listShareLib(anyString());\n\n serverInfoCollector.storeShareLibInfo(testTempFolder);\n\n ...
{ "fields": [ { "declarator": "client", "modifier": "private final", "original_string": "private final DiagOozieClient client;", "type": "DiagOozieClient", "var_name": "client" } ], "file": "tools/src/main/java/org/apache/oozie/tools/diag/ServerInfoCollector.java", "identif...
{ "body": "void storeShareLibInfo(final File outputDir) {\n try {\n System.out.print(\"Getting Sharelib Information...\");\n final String[] libs = client.listShareLib(null).split(\"\\n\");\n\n try (DiagBundleEntryWriter configEntryWriter = new DiagBundleEntryWriter(outputDir, \...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_321
{ "fields": [ { "declarator": "DEFAULT_TYPE = \"test\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_TYPE = \"test\";", "type": "String", "var_name": "DEFAULT_TYPE" }, { "declarator": "DEFAULT_MAX_ACTIVE_COMMANDS = 5", ...
{ "body": "@Test\n public void testSubmissionFailsAfterDelay() {\n when(callableWrapper.getInitialDelay()).thenReturn(100L);\n when(callableWrapper.getDelay(eq(TimeUnit.MILLISECONDS))).thenReturn(50L);\n configureMockScheduler();\n\n asyncExecutor.queue(callableWrapper, false);\n\n ...
{ "fields": [ { "declarator": "MIN_PRIORITY = 0", "modifier": "public static final", "original_string": "public static final int MIN_PRIORITY = 0;", "type": "int", "var_name": "MIN_PRIORITY" }, { "declarator": "ANTI_STARVATION_INTERVAL = 500", "modifier": "public ...
{ "body": "public synchronized boolean queue(CallableWrapper<?> wrapper, boolean ignoreQueueSize) {\n if (!ignoreQueueSize && activeCommands.get() >= maxActiveCommands) {\n log.warn(\"queue full, ignoring queuing for [{0}]\", wrapper.getElement().getKey());\n return false;\n }\n\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_264
{ "fields": [ { "declarator": "testRetryPredicate = new Predicate<Throwable>() {\n @Override\n public boolean test(Throwable input) {\n return input.getClass() == RuntimeException.class;\n }\n }", "modifier": "private final", "original_string": "private final P...
{ "body": "@Test\n public void testRetriesOnFailureRecovery() throws Exception {\n @SuppressWarnings(\"unchecked\")\n Callable<String> operation = mock(Callable.class);\n final MutableInt callCount = new MutableInt(0);\n\n willAnswer(new Answer<Void>() {\n @Override\n ...
{ "fields": [ { "declarator": "LOG = XLog.getLog(OperationRetryHandler.class)", "modifier": "private static", "original_string": "private static XLog LOG = XLog.getLog(OperationRetryHandler.class);", "type": "XLog", "var_name": "LOG" }, { "declarator": "RETRY_ATTEMPT_ST...
{ "body": "public <V> V executeWithRetry(final Callable<V> operation) throws Exception {\n int retries = 0;\n long waitTime = initialWaitTime;\n Exception lastException = null;\n\n if (!shouldRetry) {\n try {\n LOG.trace(\"Configured not to retry, calling operatio...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_337
{ "fields": [ { "declarator": "HDFS_SCHEME_PREFIX = \"hdfs\"", "modifier": "private static final", "original_string": "private static final String HDFS_SCHEME_PREFIX = \"hdfs\";", "type": "String", "var_name": "HDFS_SCHEME_PREFIX" }, { "declarator": "TEST_HDFS_HOME = \"...
{ "body": "@Test\n public void testAddShareLib_pig() throws Exception {\n setShipLauncherInOozieConfig();\n services.init();\n String actionXml = \"<pig>\" + \"<job-tracker>\" + getJobTrackerUri() + \"</job-tracker>\" + \"<name-node>\"\n + getNameNodeUri() + \"</name-node>\" + \...
{ "fields": [ { "declarator": "LAUNCHERJAR_LIB_RETENTION = CONF_PREFIX + \"ShareLibService.temp.sharelib.retention.days\"", "modifier": "public static final", "original_string": "public static final String LAUNCHERJAR_LIB_RETENTION = CONF_PREFIX + \"ShareLibService.temp.sharelib.retention.days\"...
{ "body": "@Override\n public void init(Services services) throws ServiceException {\n this.services = services;\n sharelibMappingFile = ConfigurationService.get(services.getConf(), SHARELIB_MAPPING_FILE);\n isShipLauncherEnabled = ConfigurationService.getBoolean(services.getConf(), SHIP_LAUNC...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_272
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedException" }, ...
{ "body": "@Test\n public void testTrimNewLineReplacement() {\n assertEquals(\"A string\", StringUtils.trim(\"A \\n string\"));\n }", "class_method_signature": "TestStringUtils.testTrimNewLineReplacement()", "constructor": false, "full_signature": "@Test public void testTrimNewLineReplacement()", ...
{ "fields": [], "file": "core/src/main/java/org/apache/oozie/util/StringUtils.java", "identifier": "StringUtils", "interfaces": "", "methods": [ { "class_method_signature": "StringUtils.trim(String str)", "constructor": false, "full_signature": "public static String trim(String str)", ...
{ "body": "public static String trim(String str) {\n if (str != null) {\n str = str.replaceAll(\"\\\\n\", \"\");\n str = str.replaceAll(\"\\\\t\", \"\");\n str = str.trim();\n }\n return str;\n }", "class_method_signature": "StringUtils.trim(String str)", "...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_56
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testWithInputformat() {\n final String inputformat = \"inputformat\";\n\n final PipesBuilder builder = new PipesBuilder();\n builder.withInputformat(inputformat);\n\n final Pipes pipes = builder.build();\n assertEquals(inputformat, pipes.getInputfor...
{ "fields": [ { "declarator": "map", "modifier": "private final", "original_string": "private final ModifyOnce<String> map;", "type": "ModifyOnce<String>", "var_name": "map" }, { "declarator": "reduce", "modifier": "private final", "original_string": "privat...
{ "body": "public PipesBuilder withInputformat(final String inputformat) {\n this.inputformat.set(inputformat);\n return this;\n }", "class_method_signature": "PipesBuilder.withInputformat(final String inputformat)", "constructor": false, "full_signature": "public PipesBuilder withInputformat(f...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_360
{ "fields": [ { "declarator": "VIEW_ACL_VALUE = \"viewacl\"", "modifier": "private static final", "original_string": "private static final String VIEW_ACL_VALUE = \"viewacl\";", "type": "String", "var_name": "VIEW_ACL_VALUE" }, { "declarator": "MODIFY_ACL_VALUE = \"modi...
{ "body": "@Test\n public void testViewACLisSet() {\n setupYarnACLHandler(true);\n setViewACL();\n\n yarnACLSetter.setACLs(contextMock);\n\n assertViewACLset();\n }", "class_method_signature": "TestYarnACLHandler.testViewACLisSet()", "constructor": false, "full_signature": "@Te...
{ "fields": [ { "declarator": "LOG = XLog.getLog(getClass())", "modifier": "private", "original_string": "private XLog LOG = XLog.getLog(getClass());", "type": "XLog", "var_name": "LOG" }, { "declarator": "launcherConf", "modifier": "private final", "origina...
{ "body": "public void setACLs(ContainerLaunchContext containerLaunchContext) {\n Map<ApplicationAccessType, String> aclDefinition = new HashMap<>();\n\n String viewAcl = launcherConf.get(JavaActionExecutor.LAUNCER_VIEW_ACL);\n if (viewAcl != null) {\n LOG.info(\"Setting view-acl: [{0}...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_225
{ "fields": [ { "declarator": "CREATED_TIME = \"Thu, 01 Jan 2009 00:00:00 GMT\"", "modifier": "static", "original_string": "static String CREATED_TIME = \"Thu, 01 Jan 2009 00:00:00 GMT\";", "type": "String", "var_name": "CREATED_TIME" }, { "declarator": "START_TIME = \"...
{ "body": "@Test\n public void testParseJMSInfo() {\n JSONObject json = createJMSInfoJSONObject();\n JMSConnectionInfo jmsDetails = JsonToBean.createJMSConnectionInfo(json);\n assertEquals(\"topicPrefix\", jmsDetails.getTopicPrefix());\n assertEquals(\"wfTopic\", jmsDetails.getTopicPatt...
{ "fields": [ { "declarator": "WF_JOB = new HashMap<String, Property>()", "modifier": "@VisibleForTesting\n static final", "original_string": "@VisibleForTesting\n static final Map<String, Property> WF_JOB = new HashMap<String, Property>();", "type": "Map<String, Property>", "v...
{ "body": "public static JMSConnectionInfo createJMSConnectionInfo(JSONObject json) {\n final JMSConnectionInfoWrapper jmsInfo = (JMSConnectionInfoWrapper) Proxy.newProxyInstance(\n JsonToBean.class.getClassLoader(), new Class[] { JMSConnectionInfoWrapper.class },\n new JsonInvoca...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_252
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/db/TestSLADbXOperations.java", "identifier": "TestSLADbXOperations", "interfaces": "", "superclass": "" }
{ "body": "@SuppressWarnings(\"deprecation\")\n @Test\n public void testCreateSlaRegistrationEventMinReqFields() throws Exception {\n Date nomDate = DateUtils.parseDateOozieTZ(\"2014-01-01T01:01Z\");\n String slaXML = \" <sla:info xmlns:sla='uri:oozie:sla:0.2'>\"\n + \" <sla:nominal...
{ "fields": [ { "declarator": "CLIENT_ID_TAG = \"oozie:sla:client-id\"", "modifier": "public static final", "original_string": "public static final String CLIENT_ID_TAG = \"oozie:sla:client-id\";", "type": "String", "var_name": "CLIENT_ID_TAG" } ], "file": "core/src/main/java...
{ "body": "public static SLAEventBean createSlaRegistrationEvent(Element eSla, String slaId,\n SlaAppType appType, String user, String groupName)\n throws Exception {\n if (eSla == null) {\n return null;\n }\n SLAEventBean sla ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_317
{ "fields": [ { "declarator": "services = null", "modifier": "private", "original_string": "private Services services = null;", "type": "Services", "var_name": "services" }, { "declarator": "uriService", "modifier": "private", "original_string": "private URI...
{ "body": "@Test\n public void testExists() throws Exception {\n Path path1 = new Path(getFsTestCaseDir() + \"/2012/12/02/\");\n Path path2 = new Path(getFsTestCaseDir() + \"/2012/12/12/\");\n getFileSystem().mkdirs(path1);\n URIHandler handler = uriService.getURIHandler(path1.toUri());...
{ "fields": [ { "declarator": "service", "modifier": "private", "original_string": "private HadoopAccessorService service;", "type": "HadoopAccessorService", "var_name": "service" }, { "declarator": "supportedSchemes", "modifier": "private", "original_string...
{ "body": "@Override\n public boolean exists(URI uri, Context context) throws URIHandlerException {\n try {\n FileSystem fs = ((FSContext) context).getFileSystem();\n return fs.exists(getNormalizedPath(uri));\n }\n catch (IOException e) {\n throw new HadoopAcce...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_21
{ "fields": [ { "declarator": "folder = new TemporaryFolder()", "modifier": "@Rule\n public", "original_string": "@Rule\n public TemporaryFolder folder = new TemporaryFolder();", "type": "TemporaryFolder", "var_name": "folder" }, { "declarator": "mockDiagClient", ...
{ "body": "@Test\n public void testGetCallableQueueDump() throws Exception {\n final List<String> testDump = Arrays.asList(\"(coord_action_start,1)\",\"(coord_action_start,1)\");\n doReturn(testDump).when(mockDiagClient).getQueueDump();\n\n serverInfoCollector.storeCallableQueueDump(testTempFo...
{ "fields": [ { "declarator": "client", "modifier": "private final", "original_string": "private final DiagOozieClient client;", "type": "DiagOozieClient", "var_name": "client" } ], "file": "tools/src/main/java/org/apache/oozie/tools/diag/ServerInfoCollector.java", "identif...
{ "body": "void storeCallableQueueDump(final File outputDir) {\n try {\n System.out.print(\"Getting Queue Dump...\");\n final List<String> queueDump = client.getQueueDump();\n\n try (DiagBundleEntryWriter configEntryWriter = new DiagBundleEntryWriter(outputDir, \"queue-dump.txt...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_194
{ "fields": [ { "declarator": "conf", "modifier": "@Mock\n private", "original_string": "@Mock\n private Configuration conf;", "type": "Configuration", "var_name": "conf" } ], "file": "sharelib/oozie/src/test/java/org/apache/oozie/action/hadoop/TestLauncherAMUtils.java"...
{ "body": "@Test\n public void testArgsHandlingWhenArgsContainsOneNullAndNullsAllowed() {\n setupConf(Arrays.asList((String) null));\n setEnableNullArgsAllowed(true);\n\n String args[] = LauncherAMUtils.getMainArguments(conf);\n\n assertTrue(Arrays.equals(new String[] { null }, args));\...
{ "fields": [ { "declarator": "CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\"", "modifier": "static final", "original_string": "static final String CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\";", "type": "String", "var_name": "CONF_OOZIE_AC...
{ "body": "public static String[] getMainArguments(Configuration conf) {\n String[] args = new String[conf.getInt(CONF_OOZIE_ACTION_MAIN_ARG_COUNT, 0)];\n\n String[] retArray;\n\n if (conf.getBoolean(CONF_OOZIE_NULL_ARGS_ALLOWED, true)) {\n for (int i = 0; i < args.length; i++) {\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_205
{ "fields": [ { "declarator": "SPARK_DEFAULTS_PROPERTIES = \"spark-defaults.conf\"", "modifier": "private static final", "original_string": "private static final String SPARK_DEFAULTS_PROPERTIES = \"spark-defaults.conf\";", "type": "String", "var_name": "SPARK_DEFAULTS_PROPERTIES" ...
{ "body": "@Test\n public void testPropertiesFileMerging() throws Exception {\n final Configuration actionConf = new Configuration();\n actionConf.set(SparkActionExecutor.SPARK_MASTER, \"yarn\");\n actionConf.set(SparkActionExecutor.SPARK_MODE, \"client\");\n actionConf.set(SparkActionE...
{ "fields": [ { "declarator": "SPARK_DEFAULTS_FILE_PATTERN = Pattern.compile(\"spark-defaults.conf\")", "modifier": "private static final", "original_string": "private static final Pattern SPARK_DEFAULTS_FILE_PATTERN = Pattern.compile(\"spark-defaults.conf\");", "type": "Pattern", "v...
{ "body": "List<String> extract(final String[] mainArgs) throws OozieActionConfiguratorException, IOException, URISyntaxException {\n final List<String> sparkArgs = new ArrayList<>();\n\n sparkArgs.add(MASTER_OPTION);\n final String master = actionConf.get(SparkActionExecutor.SPARK_MASTER);\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_340
{ "fields": [ { "declarator": "HDFS_SCHEME_PREFIX = \"hdfs\"", "modifier": "private static final", "original_string": "private static final String HDFS_SCHEME_PREFIX = \"hdfs\";", "type": "String", "var_name": "HDFS_SCHEME_PREFIX" }, { "declarator": "TEST_HDFS_HOME = \"...
{ "body": "@Test\n public void testConfFileAddedToDistributedCache() throws Exception {\n try {\n\n Properties prop = new Properties();\n prop.put(\"oozie.hive_conf\", TEST_HDFS_HOME + SHARELIB_PATH + \"hive-site.xml#hive-site.xml\");\n setupSharelibConf(\"hive-site.xml\", \...
{ "fields": [ { "declarator": "LAUNCHERJAR_LIB_RETENTION = CONF_PREFIX + \"ShareLibService.temp.sharelib.retention.days\"", "modifier": "public static final", "original_string": "public static final String LAUNCHERJAR_LIB_RETENTION = CONF_PREFIX + \"ShareLibService.temp.sharelib.retention.days\"...
{ "body": "public FileSystem getFileSystem() {\n return fs;\n }", "class_method_signature": "ShareLibService.getFileSystem()", "constructor": false, "full_signature": "public FileSystem getFileSystem()", "identifier": "getFileSystem", "invocations": [], "modifiers": "public", "parameters": "()...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_76
{ "fields": [ { "declarator": "NAME = \"hive2-name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"hive2-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "NAME_NODE = \"${nameNode}\"", "modifier": "...
{ "body": "@Test\n public void testSameConfigPropertyAddedTwiceThrows() {\n final Hive2ActionBuilder builder = getBuilderInstance();\n builder.withConfigProperty(MAPRED_JOB_QUEUE_NAME, DEFAULT);\n\n expectedException.expect(IllegalStateException.class);\n builder.withConfigProperty(MAPR...
{ "fields": [ { "declarator": "delegate", "modifier": "private final", "original_string": "private final HiveActionBuilder delegate;", "type": "HiveActionBuilder", "var_name": "delegate" }, { "declarator": "jdbcUrl", "modifier": "private final", "original_st...
{ "body": "public Hive2ActionBuilder withConfigProperty(final String key, final String value) {\n delegate.withConfigProperty(key, value);\n return this;\n }", "class_method_signature": "Hive2ActionBuilder.withConfigProperty(final String key, final String value)", "constructor": false, "full_si...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_99
{ "fields": [], "file": "fluent-job/fluent-job-api/src/test/java/org/apache/oozie/fluentjob/api/action/TestEmailActionBuilder.java", "identifier": "TestEmailActionBuilder", "interfaces": "", "superclass": "extends TestNodeBuilderBaseImpl<EmailAction, EmailActionBuilder>" }
{ "body": "@Test\n public void testCcAddedTwiceThrows() {\n final EmailActionBuilder builder = getBuilderInstance();\n builder.withCc(\"some.recipient@something.com\");\n\n expectedException.expect(IllegalStateException.class);\n builder.withCc(\"any.recipient@something.com\");\n }",...
{ "fields": [ { "declarator": "to", "modifier": "private final", "original_string": "private final ModifyOnce<String> to;", "type": "ModifyOnce<String>", "var_name": "to" }, { "declarator": "cc", "modifier": "private final", "original_string": "private final...
{ "body": "public EmailActionBuilder withCc(final String cc) {\n this.cc.set(cc);\n return this;\n }", "class_method_signature": "EmailActionBuilder.withCc(final String cc)", "constructor": false, "full_signature": "public EmailActionBuilder withCc(final String cc)", "identifier": "withCc", ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_213
{ "fields": [], "file": "client/src/test/java/org/apache/oozie/client/rest/TestJsonUtils.java", "identifier": "TestJsonUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInvalidTimeZone() throws Exception {\n String gmtTime = \"Thu, 01 Jan 2009 00:00:00 GMT\";\n SimpleDateFormat dateFormatter = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss zzz\", Locale.US);\n Date date = dateFormatter.parse(gmtTime);\n String asdTi...
{ "fields": [ { "declarator": "GMT_TZ = TimeZone.getTimeZone(\"GMT\")", "modifier": "private static", "original_string": "private static TimeZone GMT_TZ = TimeZone.getTimeZone(\"GMT\");", "type": "TimeZone", "var_name": "GMT_TZ" } ], "file": "client/src/main/java/org/apache/o...
{ "body": "public static String formatDateRfc822(Date date, String timeZoneId) {\n if (date != null) {\n TimeZone tZone = \"GMT\".equals(timeZoneId) ? GMT_TZ : TimeZone.getTimeZone(timeZoneId);\n SimpleDateFormat dateFormater = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss zzz\", Local...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_356
{ "fields": [ { "declarator": "TZ_DST = TimeZone.getTimeZone(\"America/Los_Angeles\")", "modifier": "private final static", "original_string": "private final static TimeZone TZ_DST = TimeZone.getTimeZone(\"America/Los_Angeles\");", "type": "TimeZone", "var_name": "TZ_DST" }, ...
{ "body": "@Test\n public void testGetDSTOffsetOfDaylightChangeFromStandardToDSTGivesNegativeOffset() throws ParseException {\n final long dstOffset = DaylightOffsetCalculator.getDSTOffset(TZ_DST,\n DateUtils.parseDateOozieTZ(\"2013-01-18T00:00Z\"),\n DateUtils.parseDateOozieTZ...
{ "fields": [ { "declarator": "startMatdTime", "modifier": "private final", "original_string": "private final Date startMatdTime;", "type": "Date", "var_name": "startMatdTime" }, { "declarator": "endMatdTime", "modifier": "private final", "original_string": ...
{ "body": "static long getDSTOffset(final TimeZone tz, final Date beginDate, final Date endDate) {\n if (tz.inDaylightTime(beginDate) && !tz.inDaylightTime(endDate)) {\n final Calendar cal = Calendar.getInstance(tz);\n cal.setTime(beginDate);\n\n return cal.get(Calendar.DST_OFF...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_60
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testWithWriter() {\n final String writer = \"writer\";\n\n final PipesBuilder builder = new PipesBuilder();\n builder.withWriter(writer);\n\n final Pipes pipes = builder.build();\n assertEquals(writer, pipes.getWriter());\n }", "class_method_si...
{ "fields": [ { "declarator": "map", "modifier": "private final", "original_string": "private final ModifyOnce<String> map;", "type": "ModifyOnce<String>", "var_name": "map" }, { "declarator": "reduce", "modifier": "private final", "original_string": "privat...
{ "body": "public PipesBuilder withWriter(final String writer) {\n this.writer.set(writer);\n return this;\n }", "class_method_signature": "PipesBuilder.withWriter(final String writer)", "constructor": false, "full_signature": "public PipesBuilder withWriter(final String writer)", "identifier...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_244
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestELConstantsFunctions.java", "identifier": "TestELConstantsFunctions", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToPropertiesStr() throws Exception {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"a\", \"A\");\n map.put(\"b\", \"&\");\n String str = ELConstantsFunctions.toPropertiesStr(map);\n Element e = XmlUtils.parseXml(\"<x>\" +...
{ "fields": [ { "declarator": "KB = 1024", "modifier": "public static final", "original_string": "public static final long KB = 1024;", "type": "long", "var_name": "KB" }, { "declarator": "MB = KB * 1024", "modifier": "public static final", "original_string"...
{ "body": "public static String toPropertiesStr(Map<String, String> map) {\n Properties props = new Properties();\n for (Map.Entry<String, String> entry: map.entrySet()) {\n props.setProperty(entry.getKey(), entry.getValue());\n }\n return XmlUtils.escapeCharsForXML(PropertiesUt...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_301
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testTooEarlyInputStreamRead() {\n final BufferDrainer bufferDrainer = new BufferDrainer(null, 0);\n expectedException.expect(IllegalStateException.class);\n bufferDrainer.getInputBuffer();\n }", "class_method_signature": "TestBufferDrainer.testTooEarlyInputS...
{ "fields": [ { "declarator": "LOG = XLog.getLog(getClass())", "modifier": "private final", "original_string": "private final XLog LOG = XLog.getLog(getClass());", "type": "XLog", "var_name": "LOG" }, { "declarator": "DRAIN_BUFFER_SLEEP_TIME_MS = 500", "modifier":...
{ "body": "public StringBuffer getInputBuffer() {\n if (drainBuffersFinished) {\n return inputBuffer;\n }\n else {\n throw new IllegalStateException(\"Buffer draining has not been finished yet\");\n }\n }", "class_method_signature": "BufferDrainer.getInputBuffer(...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_182
{ "fields": [ { "declarator": "outContent = new ByteArrayOutputStream()", "modifier": "private final", "original_string": "private final ByteArrayOutputStream outContent = new ByteArrayOutputStream();", "type": "ByteArrayOutputStream", "var_name": "outContent" }, { "dec...
{ "body": "@Test\n public void testDontCreateStreamIfFileExists() throws IOException {\n File f = tmp.newFile();\n try (FileOutputStream fos = new FileOutputStream(f)) {\n fos.write(\"foo\".getBytes(StandardCharsets.UTF_8));\n }\n\n try (FileOutputStream fos = LauncherMain.cr...
{ "fields": [ { "declarator": "ACTION_PREFIX = \"oozie.action.\"", "modifier": "public static final", "original_string": "public static final String ACTION_PREFIX = \"oozie.action.\";", "type": "String", "var_name": "ACTION_PREFIX" }, { "declarator": "EXTERNAL_CHILD_IDS...
{ "body": "static FileOutputStream createStreamIfFileNotExists(File output) throws IOException {\n if (output.exists()) {\n System.out.println(output + \" exists, skipping. The action will use the \"\n + output.getName() + \" defined in the workflow.\");\n return null;\...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_37
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testClearMoves() {\n final ActionAttributesBuilder builder = getBuilderInstance();\n\n for (final Move move : MOVES) {\n builder.withMove(move);\n }\n\n builder.clearMoves();\n\n final ActionAttributes attributes = builder.build();\n\n ...
{ "fields": [ { "declarator": "resourceManager", "modifier": "private final", "original_string": "private final ModifyOnce<String> resourceManager;", "type": "ModifyOnce<String>", "var_name": "resourceManager" }, { "declarator": "nameNode", "modifier": "private fi...
{ "body": "void clearMoves() {\n moves.clear();\n }", "class_method_signature": "ActionAttributesBuilder.clearMoves()", "constructor": false, "full_signature": " void clearMoves()", "identifier": "clearMoves", "invocations": [ "clear" ], "modifiers": "", "parameters": "()", "return": "...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_395
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/coord/input/logic/TestInputLogicParser.java", "identifier": "TestInputLogicParser", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAllAnd() throws JDOMException {\n //@formatter:off\n String xml=\n \"<input-logic>\"+\n \"<and name=\\\"test\\\">\"+\n \"<data-in dataset=\\\"A\\\" />\"+\n \"<data-in dataset=\\\"B\\\" />\"+\n ...
{ "fields": [ { "declarator": "COORD_INPUT_EVENTS_DATA_IN = \"data-in\"", "modifier": "public final static", "original_string": "public final static String COORD_INPUT_EVENTS_DATA_IN = \"data-in\";", "type": "String", "var_name": "COORD_INPUT_EVENTS_DATA_IN" }, { "decla...
{ "body": "public String parse(Element root) {\n return parseWithName(root, null);\n\n }", "class_method_signature": "InputLogicParser.parse(Element root)", "constructor": false, "full_signature": "public String parse(Element root)", "identifier": "parse", "invocations": [ "parseWithName" ],...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_116
{ "fields": [ { "declarator": "NAME_NODE = \"${nameNode}\"", "modifier": "private static final", "original_string": "private static final String NAME_NODE = \"${nameNode}\";", "type": "String", "var_name": "NAME_NODE" }, { "declarator": "JOB_XMLS = {\"jobXml1.xml\", \"j...
{ "body": "@Test\n public void testClearMoves() {\n final FSActionBuilder builder = getBuilderInstance();\n\n for (final Move move : MOVES) {\n builder.withMove(move);\n }\n\n builder.clearMoves();\n\n final FSAction fsAction = builder.build();\n\n assertTrue(fs...
{ "fields": [ { "declarator": "attributesBuilder", "modifier": "private final", "original_string": "private final ActionAttributesBuilder attributesBuilder;", "type": "ActionAttributesBuilder", "var_name": "attributesBuilder" } ], "file": "fluent-job/fluent-job-api/src/main/j...
{ "body": "public FSActionBuilder clearMoves() {\n attributesBuilder.clearMoves();\n return this;\n }", "class_method_signature": "FSActionBuilder.clearMoves()", "constructor": false, "full_signature": "public FSActionBuilder clearMoves()", "identifier": "clearMoves", "invocations": [ "...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_403
{ "fields": [ { "declarator": "mockJspHandler", "modifier": "@Mock private", "original_string": "@Mock private JspHandler mockJspHandler;", "type": "JspHandler", "var_name": "mockJspHandler" }, { "declarator": "mockServices", "modifier": "@Mock private", "or...
{ "body": "@Test\n public void testServerSetup() throws Exception {\n doReturn(\"false\").when(mockConfiguration).get(\"oozie.https.enabled\");\n\n embeddedOozieServer.setup();\n verify(mockJspHandler).setupWebAppContext(isA(WebAppContext.class));\n verify(oozieFilterMapper).addFilters(...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(EmbeddedOozieServer.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(EmbeddedOozieServer.class);", "type": "Logger", "var_name": "LOG" }, { ...
{ "body": "public void setup() throws URISyntaxException, IOException, ServiceException {\n conf = serviceController.get(ConfigurationService.class).getConf();\n setContextPath(conf);\n httpPort = getConfigPort(ConfigUtils.OOZIE_HTTP_PORT);\n\n HttpConfiguration httpConfiguration = new Htt...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_287
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestPriorityDelayQueue.java", "identifier": "TestPriorityDelayQueue", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testClear() {\n PriorityDelayQueue<Integer> q = new PriorityDelayQueue<Integer>(3, 500, TimeUnit.MILLISECONDS, -1);\n q.offer(new TestQueueElement<Integer>(1, 1, 10, TimeUnit.MILLISECONDS));\n q.offer(new TestQueueElement<Integer>(10, 0, 0, TimeUnit.MILLISECONDS)...
{ "fields": [ { "declarator": "ANTI_STARVATION_INTERVAL = 500", "modifier": "public static final", "original_string": "public static final long ANTI_STARVATION_INTERVAL = 500;", "type": "long", "var_name": "ANTI_STARVATION_INTERVAL" }, { "declarator": "priorities", ...
{ "body": "@Override\n public void clear() {\n for (DelayQueue<QueueElement<E>> q : queues) {\n q.clear();\n }\n }", "class_method_signature": "PriorityDelayQueue.clear()", "constructor": false, "full_signature": "@Override public void clear()", "identifier": "clear", "invocat...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_268
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestIOUtils.java", "identifier": "TestIOUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetResourceAsString() throws IOException {\n try {\n IOUtils.getResourceAsString(\"invalid-resource.txt\", 2);\n fail();\n }\n catch (IllegalArgumentException ex) {\n //nop\n }\n String s = IOUtils.getResourceAsS...
{ "fields": [], "file": "core/src/main/java/org/apache/oozie/util/IOUtils.java", "identifier": "IOUtils", "interfaces": "", "methods": [ { "class_method_signature": "IOUtils.delete(File file)", "constructor": false, "full_signature": "public static void delete(File file)", "identif...
{ "body": "public static String getResourceAsString(String path, int maxLen) throws IOException {\n ParamChecker.notEmpty(path, \"path\");\n InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(path);\n if (is == null) {\n throw new IllegalArgumentExcepti...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_141
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testRemoveParent() {\n final Start start = getInstance(\"start\");\n\n expectedException.expect(IllegalStateException.class);\n start.removeParent(null);\n }", "class_method_signature": "TestStart.testRemoveParent()", "constructor": false, "full_signatur...
{ "fields": [ { "declarator": "child", "modifier": "private", "original_string": "private NodeBase child;", "type": "NodeBase", "var_name": "child" } ], "file": "fluent-job/fluent-job-api/src/main/java/org/apache/oozie/fluentjob/api/dag/Start.java", "identifier": "Start", ...
{ "body": "@Override\n public void removeParent(NodeBase parent) {\n throw new IllegalStateException(\"Start nodes cannot have parents.\");\n }", "class_method_signature": "Start.removeParent(NodeBase parent)", "constructor": false, "full_signature": "@Override public void removeParent(NodeBase par...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_291
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestParamChecker.java", "identifier": "TestParamChecker", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testValidToken() {\n ParamChecker.validateActionName(\"azAZ09_-\");\n try {\n ParamChecker.validateActionName(null);\n fail();\n }\n catch (IllegalArgumentException ex) {\n // nop\n }\n try {\n Para...
{ "fields": [ { "declarator": "MAX_NODE_NAME_LEN = 128", "modifier": "private static final", "original_string": "private static final int MAX_NODE_NAME_LEN = 128;", "type": "int", "var_name": "MAX_NODE_NAME_LEN" } ], "file": "core/src/main/java/org/apache/oozie/util/ParamChec...
{ "body": "public static String validateActionName(String actionName) {\n ParamChecker.notEmpty(actionName, \"action name\");\n if (actionName.length() > MAX_NODE_NAME_LEN) {\n throw new IllegalArgumentException(XLog.format(\"name [{0}] must be {1} chars or less\", actionName,\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_157
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testGetChildren() {\n final ExplicitNode instance = getInstance(\"start\");\n final NodeBase child = getInstance(\"child\");\n\n child.addParent(instance);\n\n assertEquals(Arrays.asList(child), instance.getChildren());\n }", "class_method_signature":...
{ "fields": [ { "declarator": "parent", "modifier": "private", "original_string": "private NodeBase parent;", "type": "NodeBase", "var_name": "parent" }, { "declarator": "child", "modifier": "private", "original_string": "private NodeBase child;", "typ...
{ "body": "@Override\n public List<NodeBase> getChildren() {\n if (child == null) {\n return Arrays.asList();\n }\n\n return Arrays.asList(child);\n }", "class_method_signature": "ExplicitNode.getChildren()", "constructor": false, "full_signature": "@Override public List<No...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_383
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/coord/input/logic/TestInputLogicParser.java", "identifier": "TestInputLogicParser", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAndOr() throws JDOMException {\n //@formatter:off\n String xml =\n \"<input-logic>\" +\n \"<and>\" +\n \"<or>\" +\n \"<data-in dataset=\\\"A\\\"/> \" +\n ...
{ "fields": [ { "declarator": "COORD_INPUT_EVENTS_DATA_IN = \"data-in\"", "modifier": "public final static", "original_string": "public final static String COORD_INPUT_EVENTS_DATA_IN = \"data-in\";", "type": "String", "var_name": "COORD_INPUT_EVENTS_DATA_IN" }, { "decla...
{ "body": "public String parse(Element root) {\n return parseWithName(root, null);\n\n }", "class_method_signature": "InputLogicParser.parse(Element root)", "constructor": false, "full_signature": "public String parse(Element root)", "identifier": "parse", "invocations": [ "parseWithName" ],...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_229
{ "fields": [ { "declarator": "START = \"2009-02-01T01:00Z\"", "modifier": "private static final", "original_string": "private static final String START = \"2009-02-01T01:00Z\";", "type": "String", "var_name": "START" }, { "declarator": "END = \"2009-02-01T02:00Z\"", ...
{ "body": "@Test\n public void testCorrectOutput() throws IOException, ParseException {\n final String[] args = {START, END, FREQUENCY, TIMEUNIT, TIMEZONE};\n\n final File output_file = folder.newFile(\"action_output.properties\");\n\n final String output_filename = output_file.getCanonicalPat...
{ "fields": [ { "declarator": "UTC = getTimeZone(\"UTC\")", "modifier": "private static final", "original_string": "private static final TimeZone UTC = getTimeZone(\"UTC\");", "type": "TimeZone", "var_name": "UTC" }, { "declarator": "DATE_LIST_SEPARATOR = \",\"", ...
{ "body": "public static void main(String[] args) throws IOException, ParseException {\n if (!checkArgsOk(args)) {\n System.exit(1);\n }\n\n String dateList = createDateListFromArgs(args);\n\n System.out.println(\"datelist :\" + dateList+ \":\");\n writeWorkflowOutput(dat...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_100
{ "fields": [], "file": "fluent-job/fluent-job-api/src/test/java/org/apache/oozie/fluentjob/api/action/TestEmailActionBuilder.java", "identifier": "TestEmailActionBuilder", "interfaces": "", "superclass": "extends TestNodeBuilderBaseImpl<EmailAction, EmailActionBuilder>" }
{ "body": "@Test\n public void testBccAddedTwiceThrows() {\n final EmailActionBuilder builder = getBuilderInstance();\n builder.withBcc(\"some.recipient@something.com\");\n\n expectedException.expect(IllegalStateException.class);\n builder.withBcc(\"any.recipient@something.com\");\n ...
{ "fields": [ { "declarator": "to", "modifier": "private final", "original_string": "private final ModifyOnce<String> to;", "type": "ModifyOnce<String>", "var_name": "to" }, { "declarator": "cc", "modifier": "private final", "original_string": "private final...
{ "body": "public EmailActionBuilder withBcc(final String bcc) {\n this.bcc.set(bcc);\n return this;\n }", "class_method_signature": "EmailActionBuilder.withBcc(final String bcc)", "constructor": false, "full_signature": "public EmailActionBuilder withBcc(final String bcc)", "identifier": "wi...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_367
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void whenIncorrectUnitIsGivenException() {\n expectedException.expect(NumberFormatException.class);\n\n new BytesAndUOMConverter().toMegabytes(\"1aa1K\");\n }", "class_method_signature": "TestBytesAndUOMConverter.whenIncorrectUnitIsGivenException()", "constructor": fa...
{ "fields": [ { "declarator": "LOG = XLog.getLog(BytesAndUOMConverter.class)", "modifier": "private static final", "original_string": "private static final XLog LOG = XLog.getLog(BytesAndUOMConverter.class);", "type": "XLog", "var_name": "LOG" } ], "file": "core/src/main/java...
{ "body": "long toMegabytes(final String unitAndUOM) {\n Preconditions.checkArgument(!Strings.isNullOrEmpty(unitAndUOM), \"unitAndUOM should not be empty\");\n Preconditions.checkArgument(unitAndUOM.toUpperCase().endsWith(\"K\")\n || unitAndUOM.toUpperCase().endsWith(\"M\")\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_222
{ "fields": [ { "declarator": "CREATED_TIME = \"Thu, 01 Jan 2009 00:00:00 GMT\"", "modifier": "static", "original_string": "static String CREATED_TIME = \"Thu, 01 Jan 2009 00:00:00 GMT\";", "type": "String", "var_name": "CREATED_TIME" }, { "declarator": "START_TIME = \"...
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void testParseCoordinatorActions() {\n JSONArray array = createJsonCoordinatorActionList();\n List<CoordinatorAction> list = JsonToBean.createCoordinatorActionList(array);\n\n assertEquals(2, list.size());\n assertEquals(\"...
{ "fields": [ { "declarator": "WF_JOB = new HashMap<String, Property>()", "modifier": "@VisibleForTesting\n static final", "original_string": "@VisibleForTesting\n static final Map<String, Property> WF_JOB = new HashMap<String, Property>();", "type": "Map<String, Property>", "v...
{ "body": "public static List<CoordinatorAction> createCoordinatorActionList(JSONArray json) {\n List<CoordinatorAction> list = new ArrayList<CoordinatorAction>();\n for (Object obj : json) {\n list.add(createCoordinatorAction((JSONObject) obj));\n }\n return list;\n }", "c...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_388
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/coord/input/logic/TestInputLogicParser.java", "identifier": "TestInputLogicParser", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testWithName() throws JDOMException {\n //@formatter:off\n String xml =\n \"<input-logic>\" +\n \"<or name =\\\"test\\\" min=\\\"10\\\">\" +\n \"<data-in dataset=\\\"A\\\"/> \" +\n ...
{ "fields": [ { "declarator": "COORD_INPUT_EVENTS_DATA_IN = \"data-in\"", "modifier": "public final static", "original_string": "public final static String COORD_INPUT_EVENTS_DATA_IN = \"data-in\";", "type": "String", "var_name": "COORD_INPUT_EVENTS_DATA_IN" }, { "decla...
{ "body": "@SuppressWarnings(\"unchecked\")\n public String parseWithName(Element root, String name) {\n if (root == null) {\n return \"\";\n }\n StringBuilder parsedString = new StringBuilder();\n\n List<Element> childrens = root.getChildren();\n for (int i = 0; i < c...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_51
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testWithEnv() {\n final String env1 = \"env1\";\n final String env2 = \"env2\";\n\n final StreamingBuilder builder = new StreamingBuilder();\n builder.withEnv(env1)\n .withEnv(env2);\n\n final Streaming streaming = builder.build();\n ...
{ "fields": [ { "declarator": "mapper", "modifier": "private final", "original_string": "private final ModifyOnce<String> mapper;", "type": "ModifyOnce<String>", "var_name": "mapper" }, { "declarator": "reducer", "modifier": "private final", "original_string...
{ "body": "public StreamingBuilder withEnv(final String env) {\n this.envs.add(env);\n return this;\n }", "class_method_signature": "StreamingBuilder.withEnv(final String env)", "constructor": false, "full_signature": "public StreamingBuilder withEnv(final String env)", "identifier": "withEnv...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_330
{ "fields": [ { "declarator": "DEFAULT_TYPE = \"test\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_TYPE = \"test\";", "type": "String", "var_name": "DEFAULT_TYPE" }, { "declarator": "DEFAULT_MAX_ACTIVE_COMMANDS = 5", ...
{ "body": "@Test\n public void testAntiStarvationWhenPriorityIsHighest() {\n asyncExecutor = createExecutor(DEFAULT_ENABLE_CONCURRENCY_CHECK, DEFAULT_MAX_ACTIVE_COMMANDS, 500, TEST_PRIORITIES,\n AWAIT_TERMINATION_TIMEOUT_SECONDS);\n when(callableWrapper.getDelay(eq(TimeUnit.MILLISECOND...
{ "fields": [ { "declarator": "MIN_PRIORITY = 0", "modifier": "public static final", "original_string": "public static final int MIN_PRIORITY = 0;", "type": "int", "var_name": "MIN_PRIORITY" }, { "declarator": "ANTI_STARVATION_INTERVAL = 500", "modifier": "public ...
{ "body": "public void checkMaxConcurrency(String type) {\n Set<CallableWrapper<?>> commandsForType = pendingCommandsPerType.get(type);\n\n if (commandsForType != null) {\n // Only a single thread should be doing stuff here! Reason: concurrent executions might\n // submit an eligib...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_275
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedException" }, ...
{ "body": "@Test\n public void testTrimUnmodifiedString() {\n assertEquals(\"A string\", StringUtils.trim(\"A string\"));\n }", "class_method_signature": "TestStringUtils.testTrimUnmodifiedString()", "constructor": false, "full_signature": "@Test public void testTrimUnmodifiedString()", "identifi...
{ "fields": [], "file": "core/src/main/java/org/apache/oozie/util/StringUtils.java", "identifier": "StringUtils", "interfaces": "", "methods": [ { "class_method_signature": "StringUtils.trim(String str)", "constructor": false, "full_signature": "public static String trim(String str)", ...
{ "body": "public static String trim(String str) {\n if (str != null) {\n str = str.replaceAll(\"\\\\n\", \"\");\n str = str.replaceAll(\"\\\\t\", \"\");\n str = str.trim();\n }\n return str;\n }", "class_method_signature": "StringUtils.trim(String str)", "...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_326
{ "fields": [ { "declarator": "DEFAULT_TYPE = \"test\"", "modifier": "private static final", "original_string": "private static final String DEFAULT_TYPE = \"test\";", "type": "String", "var_name": "DEFAULT_TYPE" }, { "declarator": "DEFAULT_MAX_ACTIVE_COMMANDS = 5", ...
{ "body": "@Test\n public void testPendingCommandsWithSameType() {\n XCallable<?> callable = mock(XCallable.class);\n when(callable.getType()).thenReturn(DEFAULT_TYPE);\n Mockito.<XCallable<?>>when(callableWrapper.getElement()).thenReturn(callable);\n\n XCallable<?> secondCallable = moc...
{ "fields": [ { "declarator": "MIN_PRIORITY = 0", "modifier": "public static final", "original_string": "public static final int MIN_PRIORITY = 0;", "type": "int", "var_name": "MIN_PRIORITY" }, { "declarator": "ANTI_STARVATION_INTERVAL = 500", "modifier": "public ...
{ "body": "public void handleConcurrencyExceeded(CallableWrapper<?> command) {\n String type = command.getElement().getType();\n\n Set<CallableWrapper<?>> commandsForType = pendingCommandsPerType.get(type);\n if (commandsForType == null) {\n commandsForType = new ConcurrentHashSet<>();...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_263
{ "fields": [ { "declarator": "testRetryPredicate = new Predicate<Throwable>() {\n @Override\n public boolean test(Throwable input) {\n return input.getClass() == RuntimeException.class;\n }\n }", "modifier": "private final", "original_string": "private final P...
{ "body": "@Test\n public void testRetriesOnFailure() throws Exception {\n @SuppressWarnings(\"unchecked\")\n Callable<String> operation = mock(Callable.class);\n final MutableInt callCount = new MutableInt(0);\n\n willAnswer(new Answer<Void>() {\n @Override\n publ...
{ "fields": [ { "declarator": "LOG = XLog.getLog(OperationRetryHandler.class)", "modifier": "private static", "original_string": "private static XLog LOG = XLog.getLog(OperationRetryHandler.class);", "type": "XLog", "var_name": "LOG" }, { "declarator": "RETRY_ATTEMPT_ST...
{ "body": "public <V> V executeWithRetry(final Callable<V> operation) throws Exception {\n int retries = 0;\n long waitTime = initialWaitTime;\n Exception lastException = null;\n\n if (!shouldRetry) {\n try {\n LOG.trace(\"Configured not to retry, calling operatio...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_10
{ "fields": [ { "declarator": "conf= new Configuration(false)", "modifier": "private final", "original_string": "private final Configuration conf= new Configuration(false);", "type": "Configuration", "var_name": "conf" }, { "declarator": "testFolder", "modifier": ...
{ "body": "@Test\n public void testStoreLastBundles() throws Exception {\n final List<BundleJob> bundleJobs = Arrays.asList(bundleJob);\n doReturn(bundleJobs).when(mockOozieClient).getBundleJobsInfo(null, 0, 1);\n\n final String bundleId = \"0000027-110322105610515-oozie-chao-B\";\n doR...
{ "fields": [ { "declarator": "client", "modifier": "private final", "original_string": "private final DiagOozieClient client;", "type": "DiagOozieClient", "var_name": "client" }, { "declarator": "oozieLauncherLogFetcher", "modifier": "private final", "origi...
{ "body": "void storeLastBundles(final File outputDir, int numBundles, int maxChildActions) {\n if (numBundles == 0) {\n return;\n }\n\n try {\n final List<BundleJob> jobs = client.getBundleJobsInfo(null, 0, numBundles);\n for (BundleJob job : jobs) {\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_371
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void whenKilobytesAreGivenConvertedCorrectly() {\n assertEquals(\"kilobytes count should be converted correctly\",\n 1L,\n new BytesAndUOMConverter().toMegabytes(\"1024K\"));\n\n assertEquals(\"kilobytes count should be converted correctly\",\n ...
{ "fields": [ { "declarator": "LOG = XLog.getLog(BytesAndUOMConverter.class)", "modifier": "private static final", "original_string": "private static final XLog LOG = XLog.getLog(BytesAndUOMConverter.class);", "type": "XLog", "var_name": "LOG" } ], "file": "core/src/main/java...
{ "body": "long toMegabytes(final String unitAndUOM) {\n Preconditions.checkArgument(!Strings.isNullOrEmpty(unitAndUOM), \"unitAndUOM should not be empty\");\n Preconditions.checkArgument(unitAndUOM.toUpperCase().endsWith(\"K\")\n || unitAndUOM.toUpperCase().endsWith(\"M\")\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_234
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestDateUtils.java", "identifier": "TestDateUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test(expected = IllegalArgumentException.class)\n public void testGetTimeZoneInvalidFormat() throws Exception {\n DateUtils.getTimeZone(\"This_is_not_a_TimeZone_id\");\n }", "class_method_signature": "TestDateUtils.testGetTimeZoneInvalidFormat()", "constructor": false, "full_signature":...
{ "fields": [ { "declarator": "LOG = XLog.getLog(DateUtils.class)", "modifier": "private static final", "original_string": "private static final XLog LOG = XLog.getLog(DateUtils.class);", "type": "XLog", "var_name": "LOG" }, { "declarator": "GMT_OFFSET_COLON_PATTERN = P...
{ "body": "public static TimeZone getTimeZone(String tzId) {\n if (tzId == null) {\n throw new IllegalArgumentException(\"Invalid TimeZone: \" + tzId);\n }\n tzId = handleGMTOffsetTZNames(tzId); // account for GMT-####\n TimeZone tz = TimeZone.getTimeZone(tzId);\n\n //...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_47
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testWithReducerCalledTwiceThrows() {\n final String reducerName1 = \"reducer-name1.sh\";\n final String reducerName2 = \"reducer-name2.sh\";\n\n final StreamingBuilder builder = new StreamingBuilder();\n builder.withReducer(reducerName1);\n\n expect...
{ "fields": [ { "declarator": "mapper", "modifier": "private final", "original_string": "private final ModifyOnce<String> mapper;", "type": "ModifyOnce<String>", "var_name": "mapper" }, { "declarator": "reducer", "modifier": "private final", "original_string...
{ "body": "public StreamingBuilder withReducer(final String reducer) {\n this.reducer.set(reducer);\n return this;\n }", "class_method_signature": "StreamingBuilder.withReducer(final String reducer)", "constructor": false, "full_signature": "public StreamingBuilder withReducer(final String redu...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_408
{ "fields": [ { "declarator": "mockSSLContextFactory", "modifier": "@Mock private", "original_string": "@Mock private SslContextFactory mockSSLContextFactory;", "type": "SslContextFactory", "var_name": "mockSSLContextFactory" }, { "declarator": "mockSSLServerConnectorFa...
{ "body": "@Test\n public void excludeCipherSuitesCanBeSetViaConfig() throws Exception {\n testConfig.set(OOZIE_HTTPS_EXCLUDE_CIPHER_SUITES, \"TLS_ECDHE_RSA_WITH_RC4_128_SHA,\"\n + \"SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA,SSL_RSA_EXPORT_WITH_DES40_CBC_SHA\");\n\n sslServerConnectorFacto...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(SSLServerConnectorFactory.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(SSLServerConnectorFactory.class);", "type": "Logger", "var_name": "LOG" ...
{ "body": "public ServerConnector createSecureServerConnector(int oozieHttpsPort, Configuration conf, Server server) {\n this.conf = Objects.requireNonNull(conf, \"conf is null\");\n Objects.requireNonNull(server, \"server is null\");\n Preconditions.checkState(oozieHttpsPort >= 1 && oozieHttpsPo...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_189
{ "fields": [ { "declarator": "conf", "modifier": "@Mock\n private", "original_string": "@Mock\n private Configuration conf;", "type": "Configuration", "var_name": "conf" } ], "file": "sharelib/oozie/src/test/java/org/apache/oozie/action/hadoop/TestLauncherAMUtils.java"...
{ "body": "@Test\n public void testArgsHandlingWithoutNullsAndNullsNotAllowed() {\n setupConf(Arrays.asList(\"a\", \"b\", \"c\"));\n setEnableNullArgsAllowed(false);\n\n String args[] = LauncherAMUtils.getMainArguments(conf);\n\n assertTrue(Arrays.equals(new String[] { \"a\", \"b\", \"c\"},...
{ "fields": [ { "declarator": "CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\"", "modifier": "static final", "original_string": "static final String CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\";", "type": "String", "var_name": "CONF_OOZIE_AC...
{ "body": "public static String[] getMainArguments(Configuration conf) {\n String[] args = new String[conf.getInt(CONF_OOZIE_ACTION_MAIN_ARG_COUNT, 0)];\n\n String[] retArray;\n\n if (conf.getBoolean(CONF_OOZIE_NULL_ARGS_ALLOWED, true)) {\n for (int i = 0; i < args.length; i++) {\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_166
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testThrowOnSecondModification() {\n final ModifyOnce<String> instance = new ModifyOnce<>();\n instance.set(\"First modification\");\n\n expectedException.expect(IllegalStateException.class);\n instance.set(\"Second modification\");\n }", "class_method...
{ "fields": [ { "declarator": "data", "modifier": "private", "original_string": "private T data;", "type": "T", "var_name": "data" }, { "declarator": "modified", "modifier": "private", "original_string": "private boolean modified;", "type": "boolean", ...
{ "body": "public void set(final T data) {\n Preconditions.checkState(!modified, \"Has already been modified once.\");\n\n this.data = data;\n this.modified = true;\n }", "class_method_signature": "ModifyOnce.set(final T data)", "constructor": false, "full_signature": "public void set(fi...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_218
{ "fields": [ { "declarator": "CREATED_TIME = \"Thu, 01 Jan 2009 00:00:00 GMT\"", "modifier": "static", "original_string": "static String CREATED_TIME = \"Thu, 01 Jan 2009 00:00:00 GMT\";", "type": "String", "var_name": "CREATED_TIME" }, { "declarator": "START_TIME = \"...
{ "body": "@SuppressWarnings(\"unchecked\")\n @Test\n public void testParseWorkflowActions() {\n JSONArray array = createJsonWorkflowActionList();\n List<WorkflowAction> list = JsonToBean.createWorkflowActionList(array);\n\n assertEquals(2, list.size());\n assertEquals(\"a1\", list.g...
{ "fields": [ { "declarator": "WF_JOB = new HashMap<String, Property>()", "modifier": "@VisibleForTesting\n static final", "original_string": "@VisibleForTesting\n static final Map<String, Property> WF_JOB = new HashMap<String, Property>();", "type": "Map<String, Property>", "v...
{ "body": "public static List<WorkflowAction> createWorkflowActionList(JSONArray json) {\n List<WorkflowAction> list = new ArrayList<WorkflowAction>();\n for (Object obj : json) {\n list.add(createWorkflowAction((JSONObject) obj));\n }\n return list;\n }", "class_method_sig...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_84
{ "fields": [ { "declarator": "NAME = \"ssh-name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"ssh-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "NAME_NODE = \"${nameNode}\"", "modifier": "priv...
{ "body": "@Test\n public void testClearArgs() {\n final JavaActionBuilder builder = getBuilderInstance();\n\n for (final String file : ARGS) {\n builder.withArg(file);\n }\n\n builder.clearArgs();\n\n final JavaAction action = builder.build();\n\n final List<St...
{ "fields": [ { "declarator": "attributesBuilder", "modifier": "private final", "original_string": "private final ActionAttributesBuilder attributesBuilder;", "type": "ActionAttributesBuilder", "var_name": "attributesBuilder" }, { "declarator": "mainClass", "modif...
{ "body": "public JavaActionBuilder clearArgs() {\n this.attributesBuilder.clearArgs();\n return this;\n }", "class_method_signature": "JavaActionBuilder.clearArgs()", "constructor": false, "full_signature": "public JavaActionBuilder clearArgs()", "identifier": "clearArgs", "invocations": [...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_131
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testBranchingUncles() {\n final Node a = MapReduceActionBuilder.create().withName(\"A\").build();\n\n final Node b = MapReduceActionBuilder.create().withName(\"B\").withParent(a).build();\n final Node c = MapReduceActionBuilder.create().withName(\"C\").withParent...
{ "fields": [ { "declarator": "name", "modifier": "private final", "original_string": "private final String name;", "type": "String", "var_name": "name" }, { "declarator": "start = new Start(\"start\")", "modifier": "private final", "original_string": "priva...
{ "body": "public Collection<NodeBase> getNodes() {\n return nodesByName.values();\n }", "class_method_signature": "Graph.getNodes()", "constructor": false, "full_signature": "public Collection<NodeBase> getNodes()", "identifier": "getNodes", "invocations": [ "values" ], "modifiers": "publ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_127
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testWorkflowNewDependenciesNeeded() {\n final Node a = MapReduceActionBuilder.create().withName(\"A\").build();\n\n final Node b = MapReduceActionBuilder.create().withName(\"B\").withParent(a).build();\n final Node c = MapReduceActionBuilder.create().withName(\"C...
{ "fields": [ { "declarator": "name", "modifier": "private final", "original_string": "private final String name;", "type": "String", "var_name": "name" }, { "declarator": "start = new Start(\"start\")", "modifier": "private final", "original_string": "priva...
{ "body": "public Collection<NodeBase> getNodes() {\n return nodesByName.values();\n }", "class_method_signature": "Graph.getNodes()", "constructor": false, "full_signature": "public Collection<NodeBase> getNodes()", "identifier": "getNodes", "invocations": [ "values" ], "modifiers": "publ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_92
{ "fields": [ { "declarator": "NAME = \"map-reduce-name\"", "modifier": "static final", "original_string": "static final String NAME = \"map-reduce-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "expectedException = ExpectedException.none()", "m...
{ "body": "@Test\n public void testAddDuplicateDefaultParentTwiceAsDefaultThrows() {\n final Node parent = getBuilderInstance().build();\n\n final NodeBuilderBaseImpl<B> builder = getBuilderInstance()\n .withParentDefaultConditional(parent);\n\n expectedException.expect(IllegalA...
{ "fields": [ { "declarator": "name", "modifier": "private final", "original_string": "private final ModifyOnce<String> name;", "type": "ModifyOnce<String>", "var_name": "name" }, { "declarator": "credentials", "modifier": "private final", "original_string":...
{ "body": "public B withParentDefaultConditional(final Node parent) {\n checkNoDuplicateParent(parent);\n\n parentsWithConditions.add(new Node.NodeWithCondition(parent, Condition.defaultCondition()));\n return ensureRuntimeSelfReference();\n }", "class_method_signature": "NodeBuilderBaseImpl...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_259
{ "fields": [ { "declarator": "predicate =\n new PersistenceExceptionSubclassFilterRetryPredicate()", "modifier": "private final", "original_string": "private final PersistenceExceptionSubclassFilterRetryPredicate predicate =\n new PersistenceExceptionSubclassFilterRetryPre...
{ "body": "@Test\n public void testNestedNonJPAExceptions() {\n assertTrue(predicate.test(wrapCause(new RuntimeException())));\n assertTrue(predicate.test(wrapCause(new Exception())));\n }", "class_method_signature": "TestPersistenceExceptionSubclassFilterRetryPredicate.testNestedNonJPAException...
{ "fields": [ { "declarator": "LOG = XLog.getLog(PersistenceExceptionSubclassFilterRetryPredicate.class)", "modifier": "private static final", "original_string": "private static final XLog LOG = XLog.getLog(PersistenceExceptionSubclassFilterRetryPredicate.class);", "type": "XLog", "v...
{ "body": "@Override\n public boolean test(final Throwable throwable) {\n LOG.trace(\"Retry predicate investigation started. [throwable.class={0}]\", throwable.getClass().getName());\n\n boolean applies = true;\n\n if ((throwable.getCause() == null) && BLACKLIST_WITHOUT_CAUSE.contains(throwabl...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_4
{ "fields": [], "file": "tools/src/test/java/org/apache/oozie/tools/TestECPolicyDisabler.java", "identifier": "TestECPolicyDisabler", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testServerNotSupportsGetErasureCodingPolicyMethod() {\n MockDistributedFileSystem fs = mock(MockDistributedFileSystem.class);\n when(fs.getErasureCodingPolicy(any(Path.class))).thenThrow(createNoSuchMethodException());\n ECPolicyDisabler.Result result = ECPolicyD...
{ "fields": [ { "declarator": "GETREPLICATIONPOLICY_METHOD = \"getReplicationPolicy\"", "modifier": "private static final", "original_string": "private static final String GETREPLICATIONPOLICY_METHOD = \"getReplicationPolicy\";", "type": "String", "var_name": "GETREPLICATIONPOLICY_ME...
{ "body": "static Result check(FileSystem fs, Path path) {\n if (fs instanceof DistributedFileSystem && supportsErasureCoding()) {\n System.out.println(\"Found Hadoop that supports Erasure Coding. Trying to disable Erasure Coding for path: \"+ path);\n DistributedFileSystem dfs = (Distrib...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_170
{ "fields": [ { "declarator": "passwordMasker", "modifier": "private", "original_string": "private PasswordMasker passwordMasker;", "type": "PasswordMasker", "var_name": "passwordMasker" } ], "file": "sharelib/oozie/src/test/java/org/apache/oozie/action/hadoop/TestPasswordMas...
{ "body": "@Test\n public void testMaskJavaSystemProp() {\n assertEquals(\"-Djava.sysprop.password=*****\", passwordMasker.maskPasswordsIfNecessary(\"-Djava.sysprop.password=pwd123\"));\n }", "class_method_signature": "TestPasswordMasker.testMaskJavaSystemProp()", "constructor": false, "full_signat...
{ "fields": [ { "declarator": "PASSWORD_MASK = \"*****\"", "modifier": "private static final", "original_string": "private static final String PASSWORD_MASK = \"*****\";", "type": "String", "var_name": "PASSWORD_MASK" }, { "declarator": "PASSWORD_KEY = \"pass\"", ...
{ "body": "public String maskPasswordsIfNecessary(String unmasked) {\n if (containsPasswordFragment(unmasked)) {\n return maskPasswordFragments(unmasked);\n } else {\n return unmasked;\n }\n }", "class_method_signature": "PasswordMasker.maskPasswordsIfNecessary(String u...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_107
{ "fields": [], "file": "fluent-job/fluent-job-api/src/test/java/org/apache/oozie/fluentjob/api/action/TestTouchz.java", "identifier": "TestTouchz", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testGetPath() {\n final String path = \"path\";\n final Touchz touchz = new Touchz(path);\n\n assertEquals(path, touchz.getPath());\n }", "class_method_signature": "TestTouchz.testGetPath()", "constructor": false, "full_signature": "@Test public void tes...
{ "fields": [ { "declarator": "path", "modifier": "private final", "original_string": "private final String path;", "type": "String", "var_name": "path" } ], "file": "fluent-job/fluent-job-api/src/main/java/org/apache/oozie/fluentjob/api/action/Touchz.java", "identifier": "...
{ "body": "public String getPath() {\n return path;\n }", "class_method_signature": "Touchz.getPath()", "constructor": false, "full_signature": "public String getPath()", "identifier": "getPath", "invocations": [], "modifiers": "public", "parameters": "()", "return": "String", "signature":...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_384
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/coord/input/logic/TestInputLogicParser.java", "identifier": "TestInputLogicParser", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testAnd() throws JDOMException {\n //@formatter:off\n String xml =\n \"<input-logic>\" +\n \"<and>\" +\n \"<data-in dataset=\\\"A\\\"/> \" +\n \"<data-in dataset=\\\"B\\\"/>\" +\...
{ "fields": [ { "declarator": "COORD_INPUT_EVENTS_DATA_IN = \"data-in\"", "modifier": "public final static", "original_string": "public final static String COORD_INPUT_EVENTS_DATA_IN = \"data-in\";", "type": "String", "var_name": "COORD_INPUT_EVENTS_DATA_IN" }, { "decla...
{ "body": "public String parse(Element root) {\n return parseWithName(root, null);\n\n }", "class_method_signature": "InputLogicParser.parse(Element root)", "constructor": false, "full_signature": "public String parse(Element root)", "identifier": "parse", "invocations": [ "parseWithName" ],...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_150
{ "fields": [], "file": "fluent-job/fluent-job-api/src/test/java/org/apache/oozie/fluentjob/api/dag/TestJoiningNodeBase.java", "identifier": "TestJoiningNodeBase", "interfaces": "", "superclass": "extends TestNodeBase<JoiningNodeBase<B>>" }
{ "body": "@Test\n public void testRemoveNonexistentParentThrows() {\n final ExplicitNode parent = new ExplicitNode(\"parent\", null);\n final J instance = getJoiningInstance(\"instance\");\n\n expectedException.expect(IllegalArgumentException.class);\n instance.removeParent(parent);\n ...
{ "fields": [ { "declarator": "parents", "modifier": "private final", "original_string": "private final List<NodeBase> parents;", "type": "List<NodeBase>", "var_name": "parents" }, { "declarator": "child", "modifier": "private", "original_string": "private N...
{ "body": "@Override\n public void removeParent(final NodeBase parent) {\n Preconditions.checkArgument(parents.remove(parent), \"Trying to remove a nonexistent parent\");\n\n parent.removeChild(this);\n }", "class_method_signature": "JoiningNodeBase.removeParent(final NodeBase parent)", "const...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_296
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestParamChecker.java", "identifier": "TestParamChecker", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testCheckUTC() {\n ParamChecker.checkDateOozieTZ(\"2009-02-01T01:00Z\", \"test\");\n try {\n ParamChecker.checkDateOozieTZ(\"2009-02-01T01:00\", \"test\");\n fail();\n }\n catch (Exception ex) {\n }\n try {\n ...
{ "fields": [ { "declarator": "MAX_NODE_NAME_LEN = 128", "modifier": "private static final", "original_string": "private static final int MAX_NODE_NAME_LEN = 128;", "type": "int", "var_name": "MAX_NODE_NAME_LEN" } ], "file": "core/src/main/java/org/apache/oozie/util/ParamChec...
{ "body": "public static Date checkDateOozieTZ(String date, String name) {\n Date ret;\n try {\n ret = DateUtils.parseDateOozieTZ(date);\n }\n catch (Exception ex) {\n throw new IllegalArgumentException(XLog.format(\n \"parameter [{0}] = [{1}] must ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_279
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedException" }, ...
{ "body": "@Test\n public void testUnclosedFunctionCall() throws ELEvaluationException {\n expectedException.expect(ELEvaluationException.class);\n StringUtils.checkStaticExistence(\"${a:a(}\", \",\");\n }", "class_method_signature": "TestStringUtils.testUnclosedFunctionCall()", "constructor":...
{ "fields": [], "file": "core/src/main/java/org/apache/oozie/util/StringUtils.java", "identifier": "StringUtils", "interfaces": "", "methods": [ { "class_method_signature": "StringUtils.trim(String str)", "constructor": false, "full_signature": "public static String trim(String str)", ...
{ "body": "public static boolean checkStaticExistence(String expr, String sequence) throws ELEvaluationException {\n int curlyBracketDept = 0;\n int functionDepth = 0;\n int index = 0;\n boolean foundSequence = false;\n while (index < expr.length()) {\n String substring =...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_146
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testAddParentWhenItAlreadyExistsThrows() {\n final NodeBase parent1 = getInstance(\"parent1\");\n final NodeBase parent2 = getInstance(\"parent2\");\n\n final Fork instance = getInstance(\"instance\");\n\n instance.addParent(parent1);\n\n expectedEx...
{ "fields": [ { "declarator": "parent", "modifier": "private", "original_string": "private NodeBase parent;", "type": "NodeBase", "var_name": "parent" }, { "declarator": "children", "modifier": "private final", "original_string": "private final List<NodeBase...
{ "body": "@Override\n public void addParent(final NodeBase parent) {\n Preconditions.checkState(this.parent == null, \"Fork nodes cannot have multiple parents.\");\n\n this.parent = parent;\n parent.addChild(this);\n }", "class_method_signature": "Fork.addParent(final NodeBase parent)", ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_280
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public", "original_string": "@Rule\n public ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedException" }, ...
{ "body": "@Test\n public void testTooManyParanthesisClosing() throws ELEvaluationException {\n expectedException.expect(ELEvaluationException.class);\n StringUtils.checkStaticExistence(\"${a:a())}\", \",\");\n }", "class_method_signature": "TestStringUtils.testTooManyParanthesisClosing()", "c...
{ "fields": [], "file": "core/src/main/java/org/apache/oozie/util/StringUtils.java", "identifier": "StringUtils", "interfaces": "", "methods": [ { "class_method_signature": "StringUtils.trim(String str)", "constructor": false, "full_signature": "public static String trim(String str)", ...
{ "body": "public static boolean checkStaticExistence(String expr, String sequence) throws ELEvaluationException {\n int curlyBracketDept = 0;\n int functionDepth = 0;\n int index = 0;\n boolean foundSequence = false;\n while (index < expr.length()) {\n String substring =...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_111
{ "fields": [ { "declarator": "NAME_NODE = \"${nameNode}\"", "modifier": "private static final", "original_string": "private static final String NAME_NODE = \"${nameNode}\";", "type": "String", "var_name": "NAME_NODE" }, { "declarator": "JOB_XMLS = {\"jobXml1.xml\", \"j...
{ "body": "@Test\n public void testWithoutDelete() {\n final FSActionBuilder builder = getBuilderInstance();\n\n for (final Delete delete : DELETES) {\n builder.withDelete(delete);\n }\n\n builder.withoutDelete(DELETES[0]);\n\n final FSAction fsAction = builder.build()...
{ "fields": [ { "declarator": "attributesBuilder", "modifier": "private final", "original_string": "private final ActionAttributesBuilder attributesBuilder;", "type": "ActionAttributesBuilder", "var_name": "attributesBuilder" } ], "file": "fluent-job/fluent-job-api/src/main/j...
{ "body": "public FSActionBuilder withoutDelete(final Delete delete) {\n attributesBuilder.withoutDelete(delete);\n return this;\n }", "class_method_signature": "FSActionBuilder.withoutDelete(final Delete delete)", "constructor": false, "full_signature": "public FSActionBuilder withoutDelete(fi...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_404
{ "fields": [ { "declarator": "mockJspHandler", "modifier": "@Mock private", "original_string": "@Mock private JspHandler mockJspHandler;", "type": "JspHandler", "var_name": "mockJspHandler" }, { "declarator": "mockServices", "modifier": "@Mock private", "or...
{ "body": "@Test\n public void testServerSetupTruststorePathSetViaSystemProperty() throws Exception {\n final String truststorePath2 = \"truststore.jks\";\n doReturn(String.valueOf(false)).when(mockConfiguration).get(\"oozie.https.enabled\");\n System.setProperty(EmbeddedOozieServer.TRUSTSTORE...
{ "fields": [ { "declarator": "LOG = LoggerFactory.getLogger(EmbeddedOozieServer.class)", "modifier": "private static final", "original_string": "private static final Logger LOG = LoggerFactory.getLogger(EmbeddedOozieServer.class);", "type": "Logger", "var_name": "LOG" }, { ...
{ "body": "public void setup() throws URISyntaxException, IOException, ServiceException {\n conf = serviceController.get(ConfigurationService.class).getConf();\n setContextPath(conf);\n httpPort = getConfigPort(ConfigUtils.OOZIE_HTTP_PORT);\n\n HttpConfiguration httpConfiguration = new Htt...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_238
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestELConstantsFunctions.java", "identifier": "TestELConstantsFunctions", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testConcat() {\n assertEquals(\"a\", ELConstantsFunctions.concat(\"a\", null));\n assertEquals(\"b\", ELConstantsFunctions.concat(null, \"b\"));\n assertEquals(\"ab\", ELConstantsFunctions.concat(\"a\", \"b\"));\n assertEquals(\"\", ELConstantsFunctions.co...
{ "fields": [ { "declarator": "KB = 1024", "modifier": "public static final", "original_string": "public static final long KB = 1024;", "type": "long", "var_name": "KB" }, { "declarator": "MB = KB * 1024", "modifier": "public static final", "original_string"...
{ "body": "public static String concat(String s1, String s2) {\n StringBuilder sb = new StringBuilder();\n if (s1 != null) {\n sb.append(s1);\n }\n if (s2 != null) {\n sb.append(s2);\n }\n return sb.toString();\n }", "class_method_signature": "ELCon...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_392
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/coord/input/logic/TestInputLogicParser.java", "identifier": "TestInputLogicParser", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testDepth2WithCombine() throws JDOMException {\n //@formatter:off\n String xml =\n \"<input-logic>\" +\n \"<and>\" +\n \"<and>\" +\n \"<combine>\" +\n ...
{ "fields": [ { "declarator": "COORD_INPUT_EVENTS_DATA_IN = \"data-in\"", "modifier": "public final static", "original_string": "public final static String COORD_INPUT_EVENTS_DATA_IN = \"data-in\";", "type": "String", "var_name": "COORD_INPUT_EVENTS_DATA_IN" }, { "decla...
{ "body": "public String parse(Element root) {\n return parseWithName(root, null);\n\n }", "class_method_signature": "InputLogicParser.parse(Element root)", "constructor": false, "full_signature": "public String parse(Element root)", "identifier": "parse", "invocations": [ "parseWithName" ],...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_185
{ "fields": [ { "declarator": "outContent = new ByteArrayOutputStream()", "modifier": "private final", "original_string": "private final ByteArrayOutputStream outContent = new ByteArrayOutputStream();", "type": "ByteArrayOutputStream", "var_name": "outContent" }, { "dec...
{ "body": "@Test\n public void testKillChildYarnJobs() throws Exception {\n YarnClient yc = Mockito.mock(YarnClient.class);\n ApplicationReport ar = Mockito.mock(ApplicationReport.class);\n Mockito.when(yc.getApplicationReport(Mockito.any(ApplicationId.class))).thenReturn(ar);\n\n Mocki...
{ "fields": [ { "declarator": "ACTION_PREFIX = \"oozie.action.\"", "modifier": "public static final", "original_string": "public static final String ACTION_PREFIX = \"oozie.action.\";", "type": "String", "var_name": "ACTION_PREFIX" }, { "declarator": "EXTERNAL_CHILD_IDS...
{ "body": "public static void killChildYarnJobs(Configuration actionConf) {\n try {\n Set<ApplicationId> childYarnJobs = getChildYarnJobs(actionConf);\n if (!childYarnJobs.isEmpty()) {\n checkAndKillChildYarnJobs(YarnClient.createYarnClient(), actionConf, childYarnJobs);\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_30
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testClearFiles() {\n final ActionAttributesBuilder builder = getBuilderInstance();\n\n for (final String file : FILES) {\n builder.withFile(file);\n }\n\n builder.clearFiles();\n\n final ActionAttributes attributes = builder.build();\n\n ...
{ "fields": [ { "declarator": "resourceManager", "modifier": "private final", "original_string": "private final ModifyOnce<String> resourceManager;", "type": "ModifyOnce<String>", "var_name": "resourceManager" }, { "declarator": "nameNode", "modifier": "private fi...
{ "body": "void clearFiles() {\n files.clear();\n }", "class_method_signature": "ActionAttributesBuilder.clearFiles()", "constructor": false, "full_signature": " void clearFiles()", "identifier": "clearFiles", "invocations": [ "clear" ], "modifiers": "", "parameters": "()", "return": "...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_243
{ "fields": [], "file": "core/src/test/java/org/apache/oozie/util/TestELConstantsFunctions.java", "identifier": "TestELConstantsFunctions", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testToJsonStr() throws Exception {\n Map<String, String> map = new HashMap<String, String>();\n map.put(\"a\", \"A\");\n map.put(\"b\", \"&\");\n String str = ELConstantsFunctions.toJsonStr(map);\n Element e = XmlUtils.parseXml(\"<x>\" + str + \"</x...
{ "fields": [ { "declarator": "KB = 1024", "modifier": "public static final", "original_string": "public static final long KB = 1024;", "type": "long", "var_name": "KB" }, { "declarator": "MB = KB * 1024", "modifier": "public static final", "original_string"...
{ "body": "public static String toJsonStr(Map<String, String> map) {\n String json = JSONValue.toJSONString(map);\n return XmlUtils.escapeCharsForXML(json);\n }", "class_method_signature": "ELConstantsFunctions.toJsonStr(Map<String, String> map)", "constructor": false, "full_signature": "public...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_306
{ "fields": [ { "declarator": "functionA", "modifier": "private static", "original_string": "private static Method functionA;", "type": "Method", "var_name": "functionA" }, { "declarator": "functionB", "modifier": "private static", "original_string": "privat...
{ "body": "@Test\n public void testFunctions() throws Exception {\n ELEvaluator.Context support = new ELEvaluator.Context();\n support.addFunction(\"a\", \"a\", functionA);\n ELEvaluator evaluator = new ELEvaluator(support);\n assertEquals(functionA, evaluator.getContext().resolveFuncti...
{ "fields": [ { "declarator": "LOG = XLog.getLog(ELEvaluator.class)", "modifier": "public static final", "original_string": "public static final XLog LOG = XLog.getLog(ELEvaluator.class);", "type": "XLog", "var_name": "LOG" }, { "declarator": "current = new ThreadLocal<...
{ "body": "public Context getContext() {\n return context;\n }", "class_method_signature": "ELEvaluator.getContext()", "constructor": false, "full_signature": "public Context getContext()", "identifier": "getContext", "invocations": [], "modifiers": "public", "parameters": "()", "return": "C...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_67
{ "fields": [ { "declarator": "NAME = \"map-reduce-name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"map-reduce-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "NAME_NODE = \"${nameNode}\"", "mo...
{ "body": "@Test\n public void testConfigClassAddedTwiceThrows() {\n final MapReduceActionBuilder builder = getBuilderInstance();\n builder.withConfigClass(CONFIG_CLASS);\n\n expectedException.expect(IllegalStateException.class);\n builder.withConfigClass(\"AnyClass\");\n }", "clas...
{ "fields": [ { "declarator": "attributesBuilder", "modifier": "private final", "original_string": "private final ActionAttributesBuilder attributesBuilder;", "type": "ActionAttributesBuilder", "var_name": "attributesBuilder" } ], "file": "fluent-job/fluent-job-api/src/main/j...
{ "body": "public MapReduceActionBuilder withConfigClass(final String configClass) {\n attributesBuilder.withConfigClass(configClass);\n return this;\n }", "class_method_signature": "MapReduceActionBuilder.withConfigClass(final String configClass)", "constructor": false, "full_signature": "publ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_88
{ "fields": [ { "declarator": "NAME = \"map-reduce-name\"", "modifier": "static final", "original_string": "static final String NAME = \"map-reduce-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "expectedException = ExpectedException.none()", "m...
{ "body": "@Test\n public void testWithConditionalParents() {\n final String condition1 = \"condition1\";\n final String condition2 = \"condition2\";\n\n final N parent1 = Mockito.spy(getBuilderInstance().build());\n final N parent2 = Mockito.spy(getBuilderInstance().build());\n\n ...
{ "fields": [ { "declarator": "name", "modifier": "private final", "original_string": "private final ModifyOnce<String> name;", "type": "ModifyOnce<String>", "var_name": "name" }, { "declarator": "credentials", "modifier": "private final", "original_string":...
{ "body": "public B withParentWithCondition(final Node parent, final String condition) {\n checkNoDuplicateParent(parent);\n\n parentsWithConditions.add(new Node.NodeWithCondition(parent, Condition.actualCondition(condition)));\n return ensureRuntimeSelfReference();\n }", "class_method_signa...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_214
{ "fields": [], "file": "client/src/test/java/org/apache/oozie/client/rest/TestJsonUtils.java", "identifier": "TestJsonUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testInvalidDateStr() {\n Date date = JsonUtils.parseDateRfc822(\"Xhu, 01 Jan 2009 00:00:00 GMT\");\n assertEquals(null, date);\n }", "class_method_signature": "TestJsonUtils.testInvalidDateStr()", "constructor": false, "full_signature": "@Test public void testI...
{ "fields": [ { "declarator": "GMT_TZ = TimeZone.getTimeZone(\"GMT\")", "modifier": "private static", "original_string": "private static TimeZone GMT_TZ = TimeZone.getTimeZone(\"GMT\");", "type": "TimeZone", "var_name": "GMT_TZ" } ], "file": "client/src/main/java/org/apache/o...
{ "body": "public static Date parseDateRfc822(String str) {\n if (str != null) {\n try {\n SimpleDateFormat dateFormater = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss 'GMT'\", Locale.US);\n dateFormater.setTimeZone(GMT_TZ);\n return dateFormater.pars...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_351
{ "fields": [ { "declarator": "TZ_DST = TimeZone.getTimeZone(\"America/Los_Angeles\")", "modifier": "private final static", "original_string": "private final static TimeZone TZ_DST = TimeZone.getTimeZone(\"America/Los_Angeles\");", "type": "TimeZone", "var_name": "TZ_DST" }, ...
{ "body": "@Test\n public void testCalculateBetweenDSTStartAndStandardEndGivesPositiveOffset() throws ParseException {\n final DaylightOffsetCalculator dstStartAndStandardEndCalculator = new DaylightOffsetCalculator(\n DateUtils.parseDateOozieTZ(\"2013-07-18T00:00Z\"),\n DateUt...
{ "fields": [ { "declarator": "startMatdTime", "modifier": "private final", "original_string": "private final Date startMatdTime;", "type": "Date", "var_name": "startMatdTime" }, { "declarator": "endMatdTime", "modifier": "private final", "original_string": ...
{ "body": "Calendar calculate(final TimeZone tz, final Calendar target) {\n final Calendar targetWithDSTOffset = Calendar.getInstance();\n targetWithDSTOffset.setTimeInMillis(target.getTime().getTime() + getDSTOffset(tz, startMatdTime, endMatdTime));\n\n return targetWithDSTOffset;\n }", "cl...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_71
{ "fields": [ { "declarator": "NAME = \"map-reduce-name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"map-reduce-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "NAME_NODE = \"${nameNode}\"", "mo...
{ "body": "@Test\n public void testClearArchives() {\n final MapReduceActionBuilder builder = getBuilderInstance();\n\n for (final String archive : ARCHIVES) {\n builder.withArchive(archive);\n }\n\n builder.clearArchives();\n\n final MapReduceAction mrAction = builder...
{ "fields": [ { "declarator": "attributesBuilder", "modifier": "private final", "original_string": "private final ActionAttributesBuilder attributesBuilder;", "type": "ActionAttributesBuilder", "var_name": "attributesBuilder" } ], "file": "fluent-job/fluent-job-api/src/main/j...
{ "body": "public MapReduceActionBuilder clearArchives() {\n attributesBuilder.clearArchives();\n return this;\n }", "class_method_signature": "MapReduceActionBuilder.clearArchives()", "constructor": false, "full_signature": "public MapReduceActionBuilder clearArchives()", "identifier": "clea...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_202
{ "fields": [ { "declarator": "SPARK_DEFAULTS_PROPERTIES = \"spark-defaults.conf\"", "modifier": "private static final", "original_string": "private static final String SPARK_DEFAULTS_PROPERTIES = \"spark-defaults.conf\";", "type": "String", "var_name": "SPARK_DEFAULTS_PROPERTIES" ...
{ "body": "@Test\n public void testDriverClassPathArgsParsing() throws Exception {\n final Configuration actionConf = new Configuration();\n actionConf.set(SparkActionExecutor.SPARK_MASTER, \"yarn\");\n actionConf.set(SparkActionExecutor.SPARK_MODE, \"client\");\n actionConf.set(SparkAc...
{ "fields": [ { "declarator": "SPARK_DEFAULTS_FILE_PATTERN = Pattern.compile(\"spark-defaults.conf\")", "modifier": "private static final", "original_string": "private static final Pattern SPARK_DEFAULTS_FILE_PATTERN = Pattern.compile(\"spark-defaults.conf\");", "type": "Pattern", "v...
{ "body": "List<String> extract(final String[] mainArgs) throws OozieActionConfiguratorException, IOException, URISyntaxException {\n final List<String> sparkArgs = new ArrayList<>();\n\n sparkArgs.add(MASTER_OPTION);\n final String master = actionConf.get(SparkActionExecutor.SPARK_MASTER);\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_347
{ "fields": [ { "declarator": "services", "modifier": "protected", "original_string": "protected Services services;", "type": "Services", "var_name": "services" }, { "declarator": "hcatServer", "modifier": "private", "original_string": "private String hcatSe...
{ "body": "@Test\n public void testCoordOffset() throws Exception {\n CoordinatorJobBean job = addRecordToCoordJobTableForWaiting(\"coord-dataset-offset.xml\",\n CoordinatorJob.Status.RUNNING, false, true);\n Path appPath = new Path(getFsTestCaseDir(), \"coord\");\n String actio...
{ "fields": [ { "declarator": "CURRENT = 0", "modifier": "public static final", "original_string": "public static final int CURRENT = 0;", "type": "int", "var_name": "CURRENT" }, { "declarator": "LATEST = 1", "modifier": "public static final", "original_stri...
{ "body": "@SuppressWarnings(\"unchecked\")\n public static String materializeOneInstance(String jobId, boolean dryrun, Element eAction, Date nominalTime,\n Date actualTime, int instanceCount, Configuration conf, CoordinatorActionBean actionBean) throws Exception {\n String actionId = Services.ge...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_26
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testNameNodeAddedTwiceThrows() {\n final ActionAttributesBuilder builder = getBuilderInstance();\n builder.withNameNode(NAME_NODE);\n\n expectedException.expect(IllegalStateException.class);\n builder.withNameNode(\"any_string\");\n }", "class_method_...
{ "fields": [ { "declarator": "resourceManager", "modifier": "private final", "original_string": "private final ModifyOnce<String> resourceManager;", "type": "ModifyOnce<String>", "var_name": "resourceManager" }, { "declarator": "nameNode", "modifier": "private fi...
{ "body": "public void withNameNode(final String nameNode) {\n this.nameNode.set(nameNode);\n }", "class_method_signature": "ActionAttributesBuilder.withNameNode(final String nameNode)", "constructor": false, "full_signature": "public void withNameNode(final String nameNode)", "identifier": "withNam...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_193
{ "fields": [ { "declarator": "conf", "modifier": "@Mock\n private", "original_string": "@Mock\n private Configuration conf;", "type": "Configuration", "var_name": "conf" } ], "file": "sharelib/oozie/src/test/java/org/apache/oozie/action/hadoop/TestLauncherAMUtils.java"...
{ "body": "@Test\n public void testHandlingWhenArgsContainNullsAndNullAllowed() {\n setupConf(Arrays.asList(\"a\", null, \"b\", null, \"c\"));\n setEnableNullArgsAllowed(true);\n\n String args[] = LauncherAMUtils.getMainArguments(conf);\n\n assertTrue(Arrays.equals(new String[] { \"a\",...
{ "fields": [ { "declarator": "CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\"", "modifier": "static final", "original_string": "static final String CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\";", "type": "String", "var_name": "CONF_OOZIE_AC...
{ "body": "public static String[] getMainArguments(Configuration conf) {\n String[] args = new String[conf.getInt(CONF_OOZIE_ACTION_MAIN_ARG_COUNT, 0)];\n\n String[] retArray;\n\n if (conf.getBoolean(CONF_OOZIE_NULL_ARGS_ALLOWED, true)) {\n for (int i = 0; i < args.length; i++) {\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_8
{ "fields": [ { "declarator": "conf= new Configuration(false)", "modifier": "private final", "original_string": "private final Configuration conf= new Configuration(false);", "type": "Configuration", "var_name": "conf" }, { "declarator": "testFolder", "modifier": ...
{ "body": "@Test\n public void testStoreLastWorkflows() throws Exception {\n final List<WorkflowJob> wfJobs = Arrays.asList(wfJob);\n doReturn(wfJobs).when(mockOozieClient).getJobsInfo(null, 0, 1);\n doReturn(wfJob).when(mockOozieClient).getJobInfo(anyString());\n\n final String wfName ...
{ "fields": [ { "declarator": "client", "modifier": "private final", "original_string": "private final DiagOozieClient client;", "type": "DiagOozieClient", "var_name": "client" }, { "declarator": "oozieLauncherLogFetcher", "modifier": "private final", "origi...
{ "body": "void storeLastWorkflows(final File outputDir, int numWorkflows, int maxChildActions) {\n if (numWorkflows == 0) {\n return;\n }\n\n try {\n final List<WorkflowJob> jobs = client.getJobsInfo(null, 0, numWorkflows);\n for (WorkflowJob job : jobs) {\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_255
{ "fields": [ { "declarator": "predicate =\n new PersistenceExceptionSubclassFilterRetryPredicate()", "modifier": "private final", "original_string": "private final PersistenceExceptionSubclassFilterRetryPredicate predicate =\n new PersistenceExceptionSubclassFilterRetryPre...
{ "body": "@Test\n public void testNotFilteredJPAExceptions() {\n assertTrue(predicate.test(new RollbackException()));\n assertTrue(predicate.test(new PersistenceException()));\n }", "class_method_signature": "TestPersistenceExceptionSubclassFilterRetryPredicate.testNotFilteredJPAExceptions()", ...
{ "fields": [ { "declarator": "LOG = XLog.getLog(PersistenceExceptionSubclassFilterRetryPredicate.class)", "modifier": "private static final", "original_string": "private static final XLog LOG = XLog.getLog(PersistenceExceptionSubclassFilterRetryPredicate.class);", "type": "XLog", "v...
{ "body": "@Override\n public boolean test(final Throwable throwable) {\n LOG.trace(\"Retry predicate investigation started. [throwable.class={0}]\", throwable.getClass().getName());\n\n boolean applies = true;\n\n if ((throwable.getCause() == null) && BLACKLIST_WITHOUT_CAUSE.contains(throwabl...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_310
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testMissingEquals() throws ServletException {\n expectedException.expect(ServletException.class);\n FilterParser.parseFilter(\"keyvalue\");\n }", "class_method_signature": "TestFilterParser.testMissingEquals()", "constructor": false, "full_signature": "@Test pu...
{ "fields": [ { "declarator": "PARAMETER_DELIMITER = \";\"", "modifier": "private static final", "original_string": "private static final String PARAMETER_DELIMITER = \";\";", "type": "String", "var_name": "PARAMETER_DELIMITER" }, { "declarator": "PARAMETER_EQUALS = \"=...
{ "body": "public static ListMultimap<String, String> parseFilter(String filterString) throws ServletException {\n ListMultimap<String, String> filterFieldMap = LinkedListMultimap.create();\n if (filterString != null) {\n StringTokenizer st = new StringTokenizer(filterString, PARAMETER_DELIMI...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_9
{ "fields": [ { "declarator": "conf= new Configuration(false)", "modifier": "private final", "original_string": "private final Configuration conf= new Configuration(false);", "type": "Configuration", "var_name": "conf" }, { "declarator": "testFolder", "modifier": ...
{ "body": "@Test\n public void testStoreCoordinators() throws Exception {\n final List<CoordinatorJob> coordJobs = Arrays.asList(coordJob);\n doReturn(coordJobs).when(mockOozieClient).getCoordJobsInfo(null, 0, 1);\n\n final String coordId = \"0000000-170926142250283-oozie-test-C\";\n do...
{ "fields": [ { "declarator": "client", "modifier": "private final", "original_string": "private final DiagOozieClient client;", "type": "DiagOozieClient", "var_name": "client" }, { "declarator": "oozieLauncherLogFetcher", "modifier": "private final", "origi...
{ "body": "void storeLastCoordinators(final File outputDir, int numCoordinators, int maxChildActions) {\n if (numCoordinators == 0) {\n return;\n }\n\n try {\n final List<CoordinatorJob> jobs = client.getCoordJobsInfo(null, 0, numCoordinators);\n for (CoordinatorJ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_254
{ "fields": [ { "declarator": "predicate =\n new PersistenceExceptionSubclassFilterRetryPredicate()", "modifier": "private final", "original_string": "private final PersistenceExceptionSubclassFilterRetryPredicate predicate =\n new PersistenceExceptionSubclassFilterRetryPre...
{ "body": "@Test\n public void testFilteredJPAExceptions() {\n assertFalse(predicate.test(new EntityExistsException()));\n assertFalse(predicate.test(new EntityNotFoundException()));\n assertFalse(predicate.test(new LockTimeoutException()));\n assertFalse(predicate.test(new NoResultExce...
{ "fields": [ { "declarator": "LOG = XLog.getLog(PersistenceExceptionSubclassFilterRetryPredicate.class)", "modifier": "private static final", "original_string": "private static final XLog LOG = XLog.getLog(PersistenceExceptionSubclassFilterRetryPredicate.class);", "type": "XLog", "v...
{ "body": "@Override\n public boolean test(final Throwable throwable) {\n LOG.trace(\"Retry predicate investigation started. [throwable.class={0}]\", throwable.getClass().getName());\n\n boolean applies = true;\n\n if ((throwable.getCause() == null) && BLACKLIST_WITHOUT_CAUSE.contains(throwabl...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_311
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testMissingKey() throws ServletException {\n expectedException.expect(ServletException.class);\n FilterParser.parseFilter(\"=value\");\n }", "class_method_signature": "TestFilterParser.testMissingKey()", "constructor": false, "full_signature": "@Test public voi...
{ "fields": [ { "declarator": "PARAMETER_DELIMITER = \";\"", "modifier": "private static final", "original_string": "private static final String PARAMETER_DELIMITER = \";\";", "type": "String", "var_name": "PARAMETER_DELIMITER" }, { "declarator": "PARAMETER_EQUALS = \"=...
{ "body": "public static ListMultimap<String, String> parseFilter(String filterString) throws ServletException {\n ListMultimap<String, String> filterFieldMap = LinkedListMultimap.create();\n if (filterString != null) {\n StringTokenizer st = new StringTokenizer(filterString, PARAMETER_DELIMI...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_27
{ "fields": [ { "declarator": "expectedException = ExpectedException.none()", "modifier": "@Rule\n public final", "original_string": "@Rule\n public final ExpectedException expectedException = ExpectedException.none();", "type": "ExpectedException", "var_name": "expectedExcepti...
{ "body": "@Test\n public void testConfigClassAddedTwiceThrows() {\n final ActionAttributesBuilder builder = getBuilderInstance();\n builder.withConfigClass(CONFIG_CLASS);\n\n expectedException.expect(IllegalStateException.class);\n builder.withConfigClass(\"AnyClass\");\n }", "cla...
{ "fields": [ { "declarator": "resourceManager", "modifier": "private final", "original_string": "private final ModifyOnce<String> resourceManager;", "type": "ModifyOnce<String>", "var_name": "resourceManager" }, { "declarator": "nameNode", "modifier": "private fi...
{ "body": "void withConfigClass(final String configClass) {\n this.configClass.set(configClass);\n }", "class_method_signature": "ActionAttributesBuilder.withConfigClass(final String configClass)", "constructor": false, "full_signature": " void withConfigClass(final String configClass)", "identifier...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_192
{ "fields": [ { "declarator": "conf", "modifier": "@Mock\n private", "original_string": "@Mock\n private Configuration conf;", "type": "Configuration", "var_name": "conf" } ], "file": "sharelib/oozie/src/test/java/org/apache/oozie/action/hadoop/TestLauncherAMUtils.java"...
{ "body": "@Test\n public void testArgsHandlingWhenArgsContainsOneNullAndNullsNotAllowed() {\n setupConf(Arrays.asList((String) null));\n setEnableNullArgsAllowed(false);\n\n String args[] = LauncherAMUtils.getMainArguments(conf);\n\n assertTrue(Arrays.equals(new String[] {}, args));\n ...
{ "fields": [ { "declarator": "CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\"", "modifier": "static final", "original_string": "static final String CONF_OOZIE_ACTION_MAIN_CLASS = \"oozie.launcher.action.main.class\";", "type": "String", "var_name": "CONF_OOZIE_AC...
{ "body": "public static String[] getMainArguments(Configuration conf) {\n String[] args = new String[conf.getInt(CONF_OOZIE_ACTION_MAIN_ARG_COUNT, 0)];\n\n String[] retArray;\n\n if (conf.getBoolean(CONF_OOZIE_NULL_ARGS_ALLOWED, true)) {\n for (int i = 0; i < args.length; i++) {\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_203
{ "fields": [ { "declarator": "SPARK_DEFAULTS_PROPERTIES = \"spark-defaults.conf\"", "modifier": "private static final", "original_string": "private static final String SPARK_DEFAULTS_PROPERTIES = \"spark-defaults.conf\";", "type": "String", "var_name": "SPARK_DEFAULTS_PROPERTIES" ...
{ "body": "@Test\n public void testQuotedConfDriverAndExecutorExtraJavaOptionsParsing() throws Exception {\n final Configuration actionConf = new Configuration();\n actionConf.set(SparkActionExecutor.SPARK_MASTER, \"yarn\");\n actionConf.set(SparkActionExecutor.SPARK_MODE, \"client\");\n ...
{ "fields": [ { "declarator": "SPARK_DEFAULTS_FILE_PATTERN = Pattern.compile(\"spark-defaults.conf\")", "modifier": "private static final", "original_string": "private static final Pattern SPARK_DEFAULTS_FILE_PATTERN = Pattern.compile(\"spark-defaults.conf\");", "type": "Pattern", "v...
{ "body": "List<String> extract(final String[] mainArgs) throws OozieActionConfiguratorException, IOException, URISyntaxException {\n final List<String> sparkArgs = new ArrayList<>();\n\n sparkArgs.add(MASTER_OPTION);\n final String master = actionConf.get(SparkActionExecutor.SPARK_MASTER);\n ...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_346
{ "fields": [ { "declarator": "services", "modifier": "protected", "original_string": "protected Services services;", "type": "Services", "var_name": "services" }, { "declarator": "hcatServer", "modifier": "private", "original_string": "private String hcatSe...
{ "body": "@Test\n public void testDryRunPullAndPushDeps() {\n\n try {\n CoordinatorJobBean job = addRecordToCoordJobTableForWaiting(\"coord-job-for-matd-hcat.xml\",\n CoordinatorJob.Status.RUNNING, false, true);\n\n Path appPath = new Path(getFsTestCaseDir(), \"coor...
{ "fields": [ { "declarator": "CURRENT = 0", "modifier": "public static final", "original_string": "public static final int CURRENT = 0;", "type": "int", "var_name": "CURRENT" }, { "declarator": "LATEST = 1", "modifier": "public static final", "original_stri...
{ "body": "static String dryRunCoord(Element eAction, CoordinatorActionBean actionBean) throws Exception {\n String action = XmlUtils.prettyPrint(eAction).toString();\n StringBuilder actionXml = new StringBuilder(action);\n Configuration actionConf = new XConfiguration(new StringReader(actionBean...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_70
{ "fields": [ { "declarator": "NAME = \"map-reduce-name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"map-reduce-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "NAME_NODE = \"${nameNode}\"", "mo...
{ "body": "@Test\n public void testClearFiles() {\n final MapReduceActionBuilder builder = getBuilderInstance();\n\n for (final String file : FILES) {\n builder.withFile(file);\n }\n\n builder.clearFiles();\n\n final MapReduceAction mrAction = builder.build();\n\n ...
{ "fields": [ { "declarator": "attributesBuilder", "modifier": "private final", "original_string": "private final ActionAttributesBuilder attributesBuilder;", "type": "ActionAttributesBuilder", "var_name": "attributesBuilder" } ], "file": "fluent-job/fluent-job-api/src/main/j...
{ "body": "public MapReduceActionBuilder clearFiles() {\n attributesBuilder.clearFiles();\n return this;\n }", "class_method_signature": "MapReduceActionBuilder.clearFiles()", "constructor": false, "full_signature": "public MapReduceActionBuilder clearFiles()", "identifier": "clearFiles", "...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_215
{ "fields": [], "file": "client/src/test/java/org/apache/oozie/client/rest/TestJsonUtils.java", "identifier": "TestJsonUtils", "interfaces": "", "superclass": "" }
{ "body": "@Test\n public void testNullDateStr() {\n assertEquals(null, JsonUtils.parseDateRfc822(null));\n }", "class_method_signature": "TestJsonUtils.testNullDateStr()", "constructor": false, "full_signature": "@Test public void testNullDateStr()", "identifier": "testNullDateStr", "invocatio...
{ "fields": [ { "declarator": "GMT_TZ = TimeZone.getTimeZone(\"GMT\")", "modifier": "private static", "original_string": "private static TimeZone GMT_TZ = TimeZone.getTimeZone(\"GMT\");", "type": "TimeZone", "var_name": "GMT_TZ" } ], "file": "client/src/main/java/org/apache/o...
{ "body": "public static Date parseDateRfc822(String str) {\n if (str != null) {\n try {\n SimpleDateFormat dateFormater = new SimpleDateFormat(\"EEE, dd MMM yyyy HH:mm:ss 'GMT'\", Locale.US);\n dateFormater.setTimeZone(GMT_TZ);\n return dateFormater.pars...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_350
{ "fields": [ { "declarator": "TZ_DST = TimeZone.getTimeZone(\"America/Los_Angeles\")", "modifier": "private final static", "original_string": "private final static TimeZone TZ_DST = TimeZone.getTimeZone(\"America/Los_Angeles\");", "type": "TimeZone", "var_name": "TZ_DST" }, ...
{ "body": "@Test\n public void testCalculateBetweenNonDSTStartAndEndGivesZeroOffset() throws ParseException {\n final DaylightOffsetCalculator nonDSTStartAndEndCalculator = new DaylightOffsetCalculator(\n DateUtils.parseDateOozieTZ(\"2013-01-18T00:00Z\"),\n DateUtils.parseDateO...
{ "fields": [ { "declarator": "startMatdTime", "modifier": "private final", "original_string": "private final Date startMatdTime;", "type": "Date", "var_name": "startMatdTime" }, { "declarator": "endMatdTime", "modifier": "private final", "original_string": ...
{ "body": "Calendar calculate(final TimeZone tz, final Calendar target) {\n final Calendar targetWithDSTOffset = Calendar.getInstance();\n targetWithDSTOffset.setTimeInMillis(target.getTime().getTime() + getDSTOffset(tz, startMatdTime, endMatdTime));\n\n return targetWithDSTOffset;\n }", "cl...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_66
{ "fields": [ { "declarator": "NAME = \"map-reduce-name\"", "modifier": "private static final", "original_string": "private static final String NAME = \"map-reduce-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "NAME_NODE = \"${nameNode}\"", "mo...
{ "body": "@Test\n public void testNameNodeAddedTwiceThrows() {\n final MapReduceActionBuilder builder = getBuilderInstance();\n builder.withNameNode(NAME_NODE);\n\n expectedException.expect(IllegalStateException.class);\n builder.withNameNode(\"any_string\");\n }", "class_method_s...
{ "fields": [ { "declarator": "attributesBuilder", "modifier": "private final", "original_string": "private final ActionAttributesBuilder attributesBuilder;", "type": "ActionAttributesBuilder", "var_name": "attributesBuilder" } ], "file": "fluent-job/fluent-job-api/src/main/j...
{ "body": "public MapReduceActionBuilder withNameNode(final String nameNode) {\n attributesBuilder.withNameNode(nameNode);\n return this;\n }", "class_method_signature": "MapReduceActionBuilder.withNameNode(final String nameNode)", "constructor": false, "full_signature": "public MapReduceAction...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }
2383782_89
{ "fields": [ { "declarator": "NAME = \"map-reduce-name\"", "modifier": "static final", "original_string": "static final String NAME = \"map-reduce-name\";", "type": "String", "var_name": "NAME" }, { "declarator": "expectedException = ExpectedException.none()", "m...
{ "body": "@Test\n public void testAddingDuplicateParentBothTimesWithoutConditionThrows() {\n final N parent = getBuilderInstance().build();\n\n final B builder = getBuilderInstance();\n\n builder.withParent(parent);\n\n expectedException.expect(IllegalArgumentException.class);\n ...
{ "fields": [ { "declarator": "name", "modifier": "private final", "original_string": "private final ModifyOnce<String> name;", "type": "ModifyOnce<String>", "var_name": "name" }, { "declarator": "credentials", "modifier": "private final", "original_string":...
{ "body": "public B withParent(final Node parent) {\n checkNoDuplicateParent(parent);\n\n parents.add(parent);\n return ensureRuntimeSelfReference();\n }", "class_method_signature": "NodeBuilderBaseImpl.withParent(final Node parent)", "constructor": false, "full_signature": "public B wit...
{ "created": "9/14/2011 7:00:10 AM +00:00", "fork": "False", "fork_count": null, "is_fork": null, "language": null, "license": "licensed", "repo_id": 2383782, "size": null, "stargazer_count": null, "stars": 542, "updates": "2020-01-18T12:54:24+00:00", "url": "https://github.com/apache/oozie" }