method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
T visitMessageExchange(@NotNull DuroParser.MessageExchangeContext ctx);
T visitMessageExchange(@NotNull DuroParser.MessageExchangeContext ctx);
/** * Visit a parse tree produced by {@link DuroParser#messageExchange}. * @param ctx the parse tree * @return the visitor result */
Visit a parse tree produced by <code>DuroParser#messageExchange</code>
visitMessageExchange
{ "repo_name": "jakobehmsen/duro", "path": "eclipse/src/duro/reflang/antlr4/DuroVisitor.java", "license": "mit", "size": 11411 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,341,125
public void verifyInstanceOfCheck() { final Object object = new Object(); assertThat("An object shouldn't be equals to new Object().", primary.equals(object), is(equalTo(false))); assertThat("An object should return the different hash codes.", primary.hashCode...
void function() { final Object object = new Object(); assertThat(STR, primary.equals(object), is(equalTo(false))); assertThat(STR, primary.hashCode(), not(equalTo(object.hashCode()))); }
/** * Provide verification check for equality for the specified object with * java.lang.Object. * <p> * Equals and hashCodes should be different. */
Provide verification check for equality for the specified object with java.lang.Object. Equals and hashCodes should be different
verifyInstanceOfCheck
{ "repo_name": "geeoz/pawl", "path": "pawl-jbehave/src/main/java/pawl/util/VerifyObjects.java", "license": "apache-2.0", "size": 3944 }
[ "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import org.hamcrest.*;
[ "org.hamcrest" ]
org.hamcrest;
1,968,741
default SftpEndpointConsumerBuilder readLockIdempotentReleaseExecutorService( ScheduledExecutorService readLockIdempotentReleaseExecutorService) { setProperty("readLockIdempotentReleaseExecutorService", readLockIdempotentReleaseExecutorService); return this; }
default SftpEndpointConsumerBuilder readLockIdempotentReleaseExecutorService( ScheduledExecutorService readLockIdempotentReleaseExecutorService) { setProperty(STR, readLockIdempotentReleaseExecutorService); return this; }
/** * To use a custom and shared thread pool for asynchronous release * tasks. See more details at the readLockIdempotentReleaseDelay option. * * The option is a: * <code>java.util.concurrent.ScheduledExecutorService</code> type. * * Group: lock ...
To use a custom and shared thread pool for asynchronous release tasks. See more details at the readLockIdempotentReleaseDelay option. The option is a: <code>java.util.concurrent.ScheduledExecutorService</code> type. Group: lock
readLockIdempotentReleaseExecutorService
{ "repo_name": "davidkarlsen/camel", "path": "core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/SftpEndpointBuilderFactory.java", "license": "apache-2.0", "size": 214729 }
[ "java.util.concurrent.ScheduledExecutorService" ]
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,739,735
private void handle422SessionTooSmall(SipResponse resp) { try { // 422 response received if (logger.isActivated()) { logger.info("422 response received"); } // Extract the Min-SE value int minExpire = SipUtils.getMinSessionExpirePeriod(resp); if (minExpire == -1) ...
void function(SipResponse resp) { try { if (logger.isActivated()) { logger.info(STR); } int minExpire = SipUtils.getMinSessionExpirePeriod(resp); if (minExpire == -1) { if (logger.isActivated()) { logger.error(STR); } handleError(new ChatError(ChatError.UNEXPECTED_EXCEPTION, STR)); return; } getDialogPath().setMinSessi...
/** * Handle 422 response * * @param resp 422 response */
Handle 422 response
handle422SessionTooSmall
{ "repo_name": "rex-xxx/mt6572_x201", "path": "mediatek/packages/apps/RCSe/core/src/com/orangelabs/rcs/core/ims/service/im/chat/OriginatingAdhocGroupChatSession.java", "license": "gpl-2.0", "size": 17620 }
[ "com.orangelabs.rcs.core.ims.network.sip.SipUtils", "com.orangelabs.rcs.core.ims.protocol.sip.SipRequest", "com.orangelabs.rcs.core.ims.protocol.sip.SipResponse" ]
import com.orangelabs.rcs.core.ims.network.sip.SipUtils; import com.orangelabs.rcs.core.ims.protocol.sip.SipRequest; import com.orangelabs.rcs.core.ims.protocol.sip.SipResponse;
import com.orangelabs.rcs.core.ims.network.sip.*; import com.orangelabs.rcs.core.ims.protocol.sip.*;
[ "com.orangelabs.rcs" ]
com.orangelabs.rcs;
2,577,314
void loadTitlesBelongingToACluster(final Cluster nameCluster, final Connection connection) throws SQLException { if (nameCluster == null) { return; } try (final PreparedStatement statement = connection.prepareStatement("select clstr_ttl_id from clstr_nme_ttl where clstr_nme_id = ? limit 20")) { statement.setI...
void loadTitlesBelongingToACluster(final Cluster nameCluster, final Connection connection) throws SQLException { if (nameCluster == null) { return; } try (final PreparedStatement statement = connection.prepareStatement(STR)) { statement.setInt(1, nameCluster.getId()); try( final ResultSet rs = statement.executeQuery())...
/** * Loads, from the database, the name {@link Cluster} associated with the given heading. * * @param heading the cluster search criterion. * @return the name {@link Cluster} associated with the given heading. * @throws SQLException in case of data access failure. */
Loads, from the database, the name <code>Cluster</code> associated with the given heading
loadTitlesBelongingToACluster
{ "repo_name": "atcult/aliada-tool", "path": "aliada/aliada-rdfizer/src/main/java/eu/aliada/rdfizer/pipeline/format/marc/frbr/cluster/ClusterService.java", "license": "gpl-3.0", "size": 8905 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,253,103
static BulkheadRegistry of(BulkheadConfig bulkheadConfig, RegistryEventConsumer<Bulkhead> registryEventConsumer) { return new InMemoryBulkheadRegistry(bulkheadConfig, registryEventConsumer); }
static BulkheadRegistry of(BulkheadConfig bulkheadConfig, RegistryEventConsumer<Bulkhead> registryEventConsumer) { return new InMemoryBulkheadRegistry(bulkheadConfig, registryEventConsumer); }
/** * Creates a BulkheadRegistry with a custom default Bulkhead configuration and a Bulkhead * registry event consumer. * * @param bulkheadConfig a custom default Bulkhead configuration. * @param registryEventConsumer a Bulkhead registry event consumer. * @return a BulkheadRegistry ...
Creates a BulkheadRegistry with a custom default Bulkhead configuration and a Bulkhead registry event consumer
of
{ "repo_name": "drmaas/resilience4j", "path": "resilience4j-bulkhead/src/main/java/io/github/resilience4j/bulkhead/BulkheadRegistry.java", "license": "apache-2.0", "size": 11033 }
[ "io.github.resilience4j.bulkhead.internal.InMemoryBulkheadRegistry", "io.github.resilience4j.core.registry.RegistryEventConsumer" ]
import io.github.resilience4j.bulkhead.internal.InMemoryBulkheadRegistry; import io.github.resilience4j.core.registry.RegistryEventConsumer;
import io.github.resilience4j.bulkhead.internal.*; import io.github.resilience4j.core.registry.*;
[ "io.github.resilience4j" ]
io.github.resilience4j;
1,696,907
public synchronized boolean isRVVGCDominatedBy(RegionVersionVector<T> requesterRVV) { if (requesterRVV.singleMember) { // do the diff for only a single member. This is typically a member that // recently crashed. Map.Entry<T, RegionVersionHolder<T>> entry = requesterRVV.memberToVersion...
synchronized boolean function(RegionVersionVector<T> requesterRVV) { if (requesterRVV.singleMember) { Map.Entry<T, RegionVersionHolder<T>> entry = requesterRVV.memberToVersion.entrySet().iterator().next(); Long gcVersion = this.memberToGCVersion.get(entry.getKey()); return isGCVersionDominatedByOtherHolder(gcVersion, e...
/** * See if this vector's rvvgc has updates that has not seen. */
See if this vector's rvvgc has updates that has not seen
isRVVGCDominatedBy
{ "repo_name": "davebarnes97/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/versions/RegionVersionVector.java", "license": "apache-2.0", "size": 56609 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,570,162
@ServiceMethod(returns = ReturnType.SINGLE) PollerFlux<PollResult<Void>, Void> beginStopAsync( String resourceGroupName, String networkWatcherName, String connectionMonitorName);
@ServiceMethod(returns = ReturnType.SINGLE) PollerFlux<PollResult<Void>, Void> beginStopAsync( String resourceGroupName, String networkWatcherName, String connectionMonitorName);
/** * Stops the specified connection monitor. * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name of the connection monitor. * @throws IllegalAr...
Stops the specified connection monitor
beginStopAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ConnectionMonitorsClient.java", "license": "mit", "size": 42870 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.management.polling.PollResult", "com.azure.core.util.polling.PollerFlux" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.PollerFlux;
import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*;
[ "com.azure.core" ]
com.azure.core;
1,215,744
private void unregisterReceiver() { if (!mReceiverRegistered) return; ContextUtils.getApplicationContext().unregisterReceiver(this); mReceiverRegistered = false; }
void function() { if (!mReceiverRegistered) return; ContextUtils.getApplicationContext().unregisterReceiver(this); mReceiverRegistered = false; }
/** * Unregister the receiver in one of the following situations * - When the deferred intent expires * - When updateDeferredIntent(null) called * - When the deferred intent has been fired */
Unregister the receiver in one of the following situations - When the deferred intent expires - When updateDeferredIntent(null) called - When the deferred intent has been fired
unregisterReceiver
{ "repo_name": "mogoweb/365browser", "path": "app/src/main/java/org/chromium/chrome/browser/DelayedScreenLockIntentHandler.java", "license": "apache-2.0", "size": 3064 }
[ "org.chromium.base.ContextUtils" ]
import org.chromium.base.ContextUtils;
import org.chromium.base.*;
[ "org.chromium.base" ]
org.chromium.base;
679,114
@Test public void testProcessLogoutRequestUnsupportedProcessLogout() throws Exception { when(context.isLogoutRequest()).thenReturn(true); doReturn(false).when(abstractApplicationAuthenticator).canHandle(request); doCallRealMethod().when(abstractApplicationAuthenticator).processLogoutRes...
void function() throws Exception { when(context.isLogoutRequest()).thenReturn(true); doReturn(false).when(abstractApplicationAuthenticator).canHandle(request); doCallRealMethod().when(abstractApplicationAuthenticator).processLogoutResponse(request, response, context); AuthenticatorFlowStatus status = abstractApplicatio...
/** * Process request by an authenticator that does not support processing logout requests * * @throws Exception */
Process request by an authenticator that does not support processing logout requests
testProcessLogoutRequestUnsupportedProcessLogout
{ "repo_name": "wso2/carbon-identity-framework", "path": "components/authentication-framework/org.wso2.carbon.identity.application.authentication.framework/src/test/java/org/wso2/carbon/identity/application/authentication/framework/AbstractApplicationAuthenticatorTest.java", "license": "apache-2.0", "size": 131...
[ "org.powermock.api.mockito.PowerMockito", "org.testng.Assert" ]
import org.powermock.api.mockito.PowerMockito; import org.testng.Assert;
import org.powermock.api.mockito.*; import org.testng.*;
[ "org.powermock.api", "org.testng" ]
org.powermock.api; org.testng;
2,206,136
public void testIsQuotedSingle() { assertTrue(StringUtils.isQuoted("\'a\'")); }
void function() { assertTrue(StringUtils.isQuoted("\'a\'")); }
/** * Test method for {@link org.melati.util.StringUtils#isQuoted(String)}. */
Test method for <code>org.melati.util.StringUtils#isQuoted(String)</code>
testIsQuotedSingle
{ "repo_name": "timp21337/melati-old", "path": "poem/src/test/java/org/melati/poem/util/test/StringUtilsTest.java", "license": "gpl-2.0", "size": 8060 }
[ "org.melati.poem.util.StringUtils" ]
import org.melati.poem.util.StringUtils;
import org.melati.poem.util.*;
[ "org.melati.poem" ]
org.melati.poem;
2,111,520
public static <K extends Serializable, V extends Serializable> Cache<K, V> createEHCache(EHCacheConfig<K, V> config) { ResourcePoolsBuilder rpb = ResourcePoolsBuilder.newResourcePoolsBuilder(); rpb = rpb.heap(config.getHeapSizeEntries(), EntryUnit.ENTRIES); long offHeapSizeInMB = config.getOffHeapSizeInMB(); ...
static <K extends Serializable, V extends Serializable> Cache<K, V> function(EHCacheConfig<K, V> config) { ResourcePoolsBuilder rpb = ResourcePoolsBuilder.newResourcePoolsBuilder(); rpb = rpb.heap(config.getHeapSizeEntries(), EntryUnit.ENTRIES); long offHeapSizeInMB = config.getOffHeapSizeInMB(); if (offHeapSizeInMB > ...
/** * Create a new EHCache with the given parameters * @param <K> Key type * @param <V> Value Type * @param config A cache configuration * @return An EHCache configured ready for use. */
Create a new EHCache with the given parameters
createEHCache
{ "repo_name": "skyvers/wildcat", "path": "skyve-ext/src/main/java/org/skyve/cache/CacheUtil.java", "license": "lgpl-2.1", "size": 10177 }
[ "java.io.Serializable", "java.time.Duration", "org.ehcache.Cache", "org.ehcache.config.CacheConfiguration", "org.ehcache.config.builders.CacheConfigurationBuilder", "org.ehcache.config.builders.ExpiryPolicyBuilder", "org.ehcache.config.builders.ResourcePoolsBuilder", "org.ehcache.config.units.EntryUni...
import java.io.Serializable; import java.time.Duration; import org.ehcache.Cache; import org.ehcache.config.CacheConfiguration; import org.ehcache.config.builders.CacheConfigurationBuilder; import org.ehcache.config.builders.ExpiryPolicyBuilder; import org.ehcache.config.builders.ResourcePoolsBuilder; import org.ehcach...
import java.io.*; import java.time.*; import org.ehcache.*; import org.ehcache.config.*; import org.ehcache.config.builders.*; import org.ehcache.config.units.*;
[ "java.io", "java.time", "org.ehcache", "org.ehcache.config" ]
java.io; java.time; org.ehcache; org.ehcache.config;
2,165,267
public static boolean isDESParityAdjusted (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); }
static boolean function (byte[] bytes) { byte[] correct = bytes.clone(); adjustDESParity(correct); return Arrays.equals(bytes, correct); }
/** * DES Keys use the LSB as the odd parity bit. This method checks * whether the parity is adjusted or not * * @param bytes the byte[] to be checked * @return true if parity is adjusted else returns false */
DES Keys use the LSB as the odd parity bit. This method checks whether the parity is adjusted or not
isDESParityAdjusted
{ "repo_name": "bharavi/jPOS", "path": "jpos/src/main/java/org/jpos/security/Util.java", "license": "agpl-3.0", "size": 1850 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,110,071
public void testContextStatus() throws IOException, InterruptedException, ClassNotFoundException { int numMaps = 1; Job job = MapReduceTestUtil.createJob(createJobConf(), new Path("in"), new Path("out"), numMaps, 0); job.setMapperClass(MyMapper.class); job.waitForCompletion(true); as...
void function() throws IOException, InterruptedException, ClassNotFoundException { int numMaps = 1; Job job = MapReduceTestUtil.createJob(createJobConf(), new Path("in"), new Path("out"), numMaps, 0); job.setMapperClass(MyMapper.class); job.waitForCompletion(true); assertTrue(STR, job.isSuccessful()); }
/** * Tests context.setStatus method. * * @throws IOException * @throws InterruptedException * @throws ClassNotFoundException */
Tests context.setStatus method
testContextStatus
{ "repo_name": "karahiyo/hanoi-hadoop-2.0.0-cdh", "path": "src/test/org/apache/hadoop/mapreduce/TestTaskContext.java", "license": "apache-2.0", "size": 2100 }
[ "java.io.IOException", "org.apache.hadoop.fs.Path" ]
import java.io.IOException; import org.apache.hadoop.fs.Path;
import java.io.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
460,516
public ServiceCall<Void> beginPostAsyncRelativeRetry400Async(final ServiceCallback<Void> serviceCallback) { return ServiceCall.createWithHeaders(beginPostAsyncRelativeRetry400WithServiceResponseAsync(), serviceCallback); }
ServiceCall<Void> function(final ServiceCallback<Void> serviceCallback) { return ServiceCall.createWithHeaders(beginPostAsyncRelativeRetry400WithServiceResponseAsync(), serviceCallback); }
/** * Long running post request, service returns a 202 to the initial request Poll the endpoint indicated in the Azure-AsyncOperation header for operation status. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link ServiceCall} object ...
Long running post request, service returns a 202 to the initial request Poll the endpoint indicated in the Azure-AsyncOperation header for operation status
beginPostAsyncRelativeRetry400Async
{ "repo_name": "tbombach/autorest", "path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/lro/implementation/LROSADsImpl.java", "license": "mit", "size": 288876 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,266,268
public Properties toProperties() { Properties ret = new Properties(); if (applicationUri != null) { ret.setProperty(APPLICATION_URI, applicationUri); } if (applicationTarget != null) { ret.setProperty(APPLICATION_TARGET, applicationTarget); } ...
Properties function() { Properties ret = new Properties(); if (applicationUri != null) { ret.setProperty(APPLICATION_URI, applicationUri); } if (applicationTarget != null) { ret.setProperty(APPLICATION_TARGET, applicationTarget); } StringBuilder uris = new StringBuilder(); for (String apiEndpointUri : apiEndpointUris) ...
/** * Creates a {@link Properties} object containing the configuration values. * * @return Properties object */
Creates a <code>Properties</code> object containing the configuration values
toProperties
{ "repo_name": "eveoh/mytimetable-api-client", "path": "src/main/java/nl/eveoh/mytimetable/apiclient/configuration/Configuration.java", "license": "apache-2.0", "size": 12565 }
[ "com.google.common.base.Joiner", "java.util.Properties" ]
import com.google.common.base.Joiner; import java.util.Properties;
import com.google.common.base.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
942,910
public static void assertEqualModelItems(ModelItem actual, ModelItem expected, SerializationStrategy tempStrategy) { assertEqualModelItems(actual, expected, tempStrategy, true); }
static void function(ModelItem actual, ModelItem expected, SerializationStrategy tempStrategy) { assertEqualModelItems(actual, expected, tempStrategy, true); }
/** * Asserts that two ModelItems have the same values for all their attributes except the excluded ones. * <p> * If the serialization strategy is not {@code null}, the serialization strategy of the ModelItems is replaced * for this assertion, but restored afterwards. * * @param actual ...
Asserts that two ModelItems have the same values for all their attributes except the excluded ones. If the serialization strategy is not null, the serialization strategy of the ModelItems is replaced for this assertion, but restored afterwards
assertEqualModelItems
{ "repo_name": "intuit/wasabi", "path": "modules/functional-test/src/main/java/com/intuit/wasabi/tests/library/util/ModelAssert.java", "license": "apache-2.0", "size": 15852 }
[ "com.intuit.wasabi.tests.library.util.serialstrategies.SerializationStrategy", "com.intuit.wasabi.tests.model.ModelItem" ]
import com.intuit.wasabi.tests.library.util.serialstrategies.SerializationStrategy; import com.intuit.wasabi.tests.model.ModelItem;
import com.intuit.wasabi.tests.library.util.serialstrategies.*; import com.intuit.wasabi.tests.model.*;
[ "com.intuit.wasabi" ]
com.intuit.wasabi;
569,614
@SuppressWarnings("rawtypes") public void run(TestResult result, Element element) { for (TestCase each : fTests) { runTest(each, result, element); if (each.getName().equals("origin")) { originOutput = each.getOutput(); } else { modif...
@SuppressWarnings(STR) void function(TestResult result, Element element) { for (TestCase each : fTests) { runTest(each, result, element); if (each.getName().equals(STR)) { originOutput = each.getOutput(); } else { modifyOutput = each.getOutput(); try { Class[] parameters = new Class[2]; parameters[0] = parameters[1] = ...
/** * Runs the tests and collects their result in a TestResult. */
Runs the tests and collects their result in a TestResult
run
{ "repo_name": "nuaalida/lab_2", "path": "src/framework/TestSuite.java", "license": "apache-2.0", "size": 8480 }
[ "java.lang.reflect.InvocationTargetException", "java.lang.reflect.Method", "org.w3c.dom.Element" ]
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import org.w3c.dom.Element;
import java.lang.reflect.*; import org.w3c.dom.*;
[ "java.lang", "org.w3c.dom" ]
java.lang; org.w3c.dom;
2,850,331
public ModsCollectionClient getMods() { return mods; }
ModsCollectionClient function() { return mods; }
/** * Gets the mods. * * @return the mods */
Gets the mods
getMods
{ "repo_name": "moravianlibrary/MEditor", "path": "editor-common/editor-common-client/src/main/java/cz/mzk/editor/shared/rpc/DigitalObjectDetail.java", "license": "gpl-2.0", "size": 8581 }
[ "cz.mzk.editor.client.mods.ModsCollectionClient" ]
import cz.mzk.editor.client.mods.ModsCollectionClient;
import cz.mzk.editor.client.mods.*;
[ "cz.mzk.editor" ]
cz.mzk.editor;
2,306,199
TestSuite suite = new TestSuite("Upgrade test for 10.9"); suite.addTestSuite(Changes10_10.class); return new SupportFilesSetup((Test) suite); } /////////////////////////////////////////////////////////////////////////////////// // // TESTS // //////////////////////////...
TestSuite suite = new TestSuite(STR); suite.addTestSuite(Changes10_10.class); return new SupportFilesSetup((Test) suite); }
/** * Return the suite of tests to test the changes made in 10.10. * @param phase an integer that indicates the current phase in * the upgrade test. * @return the test suite created. */
Return the suite of tests to test the changes made in 10.10
suite
{ "repo_name": "scnakandala/derby", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/upgradeTests/Changes10_10.java", "license": "apache-2.0", "size": 18087 }
[ "junit.framework.Test", "junit.framework.TestSuite", "org.apache.derbyTesting.junit.SupportFilesSetup" ]
import junit.framework.Test; import junit.framework.TestSuite; import org.apache.derbyTesting.junit.SupportFilesSetup;
import junit.framework.*; import org.apache.*;
[ "junit.framework", "org.apache" ]
junit.framework; org.apache;
630,020
public void waitForCompletion(HeadMountable hm, CompletionType completionType) throws Exception;
void function(HeadMountable hm, CompletionType completionType) throws Exception;
/** * Perform a coordinated wait for completion. This must be issued before capturing camera frames etc. * * @param hm The HeadMountable to wait for. If null, wait for all the axes on the driver. Most drivers/controllers will probably * not be able to wait for just a sub-set of axes, so the'll wai...
Perform a coordinated wait for completion. This must be issued before capturing camera frames etc
waitForCompletion
{ "repo_name": "openpnp/openpnp", "path": "src/main/java/org/openpnp/spi/Driver.java", "license": "gpl-3.0", "size": 10382 }
[ "org.openpnp.spi.MotionPlanner" ]
import org.openpnp.spi.MotionPlanner;
import org.openpnp.spi.*;
[ "org.openpnp.spi" ]
org.openpnp.spi;
2,911,998
this.dateButton = dateView; this.timeButton = timeView; this.resetButton = resetButton; this.fragmentManager = fragmentManager; this.date = Calendar.getInstance(); this.dateButton.setOnClickListener(new DateListener()); if (this.timeButton != null) { ...
this.dateButton = dateView; this.timeButton = timeView; this.resetButton = resetButton; this.fragmentManager = fragmentManager; this.date = Calendar.getInstance(); this.dateButton.setOnClickListener(new DateListener()); if (this.timeButton != null) { this.timeButton.setOnClickListener(new TimeListener()); } if (this.re...
/** * Initializes the instance. Typically called in an activities 'onCreate' method. * @param dateView textview to use for date display and picker handling. Usually this is a text button * @param timeView textview to use for time display and picker handling. Might be null * @param resetButton view t...
Initializes the instance. Typically called in an activities 'onCreate' method
init
{ "repo_name": "tobiasge/cgeo", "path": "main/src/cgeo/geocaching/ui/DateTimeEditor.java", "license": "apache-2.0", "size": 6838 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
1,222,016
private void configureSecurityContextChain( final Map<String, String> principals, final Map<String, String> credentials, final ISecurityContext securityContext, final String baseContextName) throws PortalSecurityException { this.setContextParameter...
void function( final Map<String, String> principals, final Map<String, String> credentials, final ISecurityContext securityContext, final String baseContextName) throws PortalSecurityException { this.setContextParameters(principals, credentials, baseContextName, securityContext); for (final Enumeration<String> subCtxNa...
/** * Recurse through the {@link ISecurityContext} chain, setting the credentials for each. TODO * This functionality should be moved into the {@link * org.apereo.portal.security.provider.ChainingSecurityContext}. * * @param principals * @param credentials * @param securityContext ...
Recurse through the <code>ISecurityContext</code> chain, setting the credentials for each. TODO This functionality should be moved into the <code>org.apereo.portal.security.provider.ChainingSecurityContext</code>
configureSecurityContextChain
{ "repo_name": "ChristianMurphy/uPortal", "path": "uPortal-security/uPortal-security-services/src/main/java/org/apereo/portal/services/Authentication.java", "license": "apache-2.0", "size": 17994 }
[ "java.util.Enumeration", "java.util.Map", "org.apereo.portal.security.ISecurityContext", "org.apereo.portal.security.PortalSecurityException" ]
import java.util.Enumeration; import java.util.Map; import org.apereo.portal.security.ISecurityContext; import org.apereo.portal.security.PortalSecurityException;
import java.util.*; import org.apereo.portal.security.*;
[ "java.util", "org.apereo.portal" ]
java.util; org.apereo.portal;
1,169,093
public Definition getDefinition(QName portType) throws Exception { Definition def = (Definition) _flattened.get(portType); if (def == null) { def = flattenDefinition(portType); _flattened.put(portType, def); } return def; }
Definition function(QName portType) throws Exception { Definition def = (Definition) _flattened.get(portType); if (def == null) { def = flattenDefinition(portType); _flattened.put(portType, def); } return def; }
/** * Retrieve a flattened definition for a given port type name. * @param portType the port type to create a flat definition for * @return a flat definition for the port type * @throws Exception if an error occurs */
Retrieve a flattened definition for a given port type name
getDefinition
{ "repo_name": "hasithaa/wso2-ode", "path": "jbi/src/main/java/org/apache/ode/jbi/util/WSDLFlattener.java", "license": "apache-2.0", "size": 10272 }
[ "javax.wsdl.Definition", "javax.xml.namespace.QName" ]
import javax.wsdl.Definition; import javax.xml.namespace.QName;
import javax.wsdl.*; import javax.xml.namespace.*;
[ "javax.wsdl", "javax.xml" ]
javax.wsdl; javax.xml;
198,899
public static void setFormattedOutput (@Nonnull final Marshaller aMarshaller, final boolean bFormattedOutput) { _setProperty (aMarshaller, Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.valueOf (bFormattedOutput)); }
static void function (@Nonnull final Marshaller aMarshaller, final boolean bFormattedOutput) { _setProperty (aMarshaller, Marshaller.JAXB_FORMATTED_OUTPUT, Boolean.valueOf (bFormattedOutput)); }
/** * Set the standard property for formatting the output or not. * * @param aMarshaller * The marshaller to set the property. May not be <code>null</code>. * @param bFormattedOutput * the value to be set */
Set the standard property for formatting the output or not
setFormattedOutput
{ "repo_name": "phax/ph-commons", "path": "ph-jaxb/src/main/java/com/helger/jaxb/JAXBMarshallerHelper.java", "license": "apache-2.0", "size": 13380 }
[ "javax.annotation.Nonnull", "javax.xml.bind.Marshaller" ]
import javax.annotation.Nonnull; import javax.xml.bind.Marshaller;
import javax.annotation.*; import javax.xml.bind.*;
[ "javax.annotation", "javax.xml" ]
javax.annotation; javax.xml;
1,162,984
private void countURI(HashMap<String, Integer> map, QName qname) { if (qname == null) return; String uri = qname.getNamespaceURI(); if (map.containsKey(uri)) { map.put(uri, map.get(uri) + 1); } else { map.put(uri, 1); } }
void function(HashMap<String, Integer> map, QName qname) { if (qname == null) return; String uri = qname.getNamespaceURI(); if (map.containsKey(uri)) { map.put(uri, map.get(uri) + 1); } else { map.put(uri, 1); } }
/** * pull the uri out of the specified QName and keep track of it in the * specified hash map * * @param qname */
pull the uri out of the specified QName and keep track of it in the specified hash map
countURI
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/generator/bean/PackageOutlineImpl.java", "license": "mit", "size": 10105 }
[ "java.util.HashMap", "javax.xml.namespace.QName" ]
import java.util.HashMap; import javax.xml.namespace.QName;
import java.util.*; import javax.xml.namespace.*;
[ "java.util", "javax.xml" ]
java.util; javax.xml;
397,511
public void addOutputPort() { EndBlockComponent component = getComponent(); ComponentDataPort outputPort = component.getOutputPort(); DataPort port = outputPort.createPort(); addOutputPort(port); }
void function() { EndBlockComponent component = getComponent(); ComponentDataPort outputPort = component.getOutputPort(); DataPort port = outputPort.createPort(); addOutputPort(port); }
/** * Adds additional output port. */
Adds additional output port
addOutputPort
{ "repo_name": "hasinitg/airavata", "path": "modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/graph/system/EndBlockNode.java", "license": "apache-2.0", "size": 8532 }
[ "org.apache.airavata.workflow.model.component.ComponentDataPort", "org.apache.airavata.workflow.model.component.system.EndBlockComponent", "org.apache.airavata.workflow.model.graph.DataPort" ]
import org.apache.airavata.workflow.model.component.ComponentDataPort; import org.apache.airavata.workflow.model.component.system.EndBlockComponent; import org.apache.airavata.workflow.model.graph.DataPort;
import org.apache.airavata.workflow.model.component.*; import org.apache.airavata.workflow.model.component.system.*; import org.apache.airavata.workflow.model.graph.*;
[ "org.apache.airavata" ]
org.apache.airavata;
1,213,278
@Override public List<SocialInformation> getSocialInformationsListOfMyContacts( SocialInformationType socialInformationType, String myId, List<String> myContactsIds, Date begin, Date end) throws SilverpeasException { List<SocialInformation> list = new ArrayList<SocialInformation>(); try { ...
List<SocialInformation> function( SocialInformationType socialInformationType, String myId, List<String> myContactsIds, Date begin, Date end) throws SilverpeasException { List<SocialInformation> list = new ArrayList<SocialInformation>(); try { switch (socialInformationType) { case EVENT: list = getSocialEventsInterface...
/** * get the List of social Informations of my contatcs according to the social information type and * my UserId , ids of my contacts ,limit and index * @param socialInformationType * @param myId * @param myContactsIds the ids of my contacts * @param limit nb of element * @param offset firstIndex ...
get the List of social Informations of my contatcs according to the social information type and my UserId , ids of my contacts ,limit and index
getSocialInformationsListOfMyContacts
{ "repo_name": "CecileBONIN/Silverpeas-Core", "path": "lib-core/src/main/java/com/silverpeas/socialnetwork/provider/ProviderSwitch.java", "license": "agpl-3.0", "size": 9506 }
[ "com.silverpeas.calendar.Date", "com.silverpeas.socialnetwork.SocialNetworkException", "com.silverpeas.socialnetwork.model.SocialInformation", "com.silverpeas.socialnetwork.model.SocialInformationType", "com.stratelia.webactiv.util.exception.SilverpeasException", "java.util.ArrayList", "java.util.List" ...
import com.silverpeas.calendar.Date; import com.silverpeas.socialnetwork.SocialNetworkException; import com.silverpeas.socialnetwork.model.SocialInformation; import com.silverpeas.socialnetwork.model.SocialInformationType; import com.stratelia.webactiv.util.exception.SilverpeasException; import java.util.ArrayList; imp...
import com.silverpeas.calendar.*; import com.silverpeas.socialnetwork.*; import com.silverpeas.socialnetwork.model.*; import com.stratelia.webactiv.util.exception.*; import java.util.*;
[ "com.silverpeas.calendar", "com.silverpeas.socialnetwork", "com.stratelia.webactiv", "java.util" ]
com.silverpeas.calendar; com.silverpeas.socialnetwork; com.stratelia.webactiv; java.util;
1,976,149
public ICallgraphView getNativeCallgraphView() { return m_nativeCallgraphView; }
ICallgraphView function() { return m_nativeCallgraphView; }
/** * Returns the native call graph view of the module. * * @return The native call graph view of the module. */
Returns the native call graph view of the module
getNativeCallgraphView
{ "repo_name": "AmesianX/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/disassembly/Modules/CViewContainer.java", "license": "apache-2.0", "size": 15197 }
[ "com.google.security.zynamics.binnavi.disassembly.ICallgraphView" ]
import com.google.security.zynamics.binnavi.disassembly.ICallgraphView;
import com.google.security.zynamics.binnavi.disassembly.*;
[ "com.google.security" ]
com.google.security;
1,913,765
private static SyncFolderItemsResult syncFolderItems(final ExchangeService exchangeService, final SyncFolderItemsType syncFolderItemsRequest, final String targetUser, final FolderContext folder) ...
static SyncFolderItemsResult function(final ExchangeService exchangeService, final SyncFolderItemsType syncFolderItemsRequest, final String targetUser, final FolderContext folder) throws ServiceCallException, HttpErrorException { SyncFolderItemsResponseType response = exchangeService.syncFolderItems(syncFolderItemsRequ...
/** * Gets a list of all the new ids for the given folder of the current user. * * @param exchangeService The actual service to use when requesting ids. * @param syncFolderItemsRequest The request to send to exchange. * @param targetUser The user to impersonate for this request. * @param f...
Gets a list of all the new ids for the given folder of the current user
syncFolderItems
{ "repo_name": "RiparianData/Timberwolf", "path": "src/main/java/com/ripariandata/timberwolf/mail/exchange/SyncFolderItemsHelper.java", "license": "apache-2.0", "size": 8090 }
[ "com.microsoft.schemas.exchange.services.x2006.messages.ArrayOfResponseMessagesType", "com.microsoft.schemas.exchange.services.x2006.messages.ResponseCodeType", "com.microsoft.schemas.exchange.services.x2006.messages.SyncFolderItemsResponseMessageType", "com.microsoft.schemas.exchange.services.x2006.messages....
import com.microsoft.schemas.exchange.services.x2006.messages.ArrayOfResponseMessagesType; import com.microsoft.schemas.exchange.services.x2006.messages.ResponseCodeType; import com.microsoft.schemas.exchange.services.x2006.messages.SyncFolderItemsResponseMessageType; import com.microsoft.schemas.exchange.services.x200...
import com.microsoft.schemas.exchange.services.x2006.messages.*; import com.microsoft.schemas.exchange.services.x2006.types.*; import java.util.*;
[ "com.microsoft.schemas", "java.util" ]
com.microsoft.schemas; java.util;
1,902,182
registry = Registry.newInstance(); registry.setPrioritizer(fifo); ff.put(APP, "FF"); RemoteProxy p1 = RemoteProxyFactory.getNewBasicRemoteProxy(ff, "http://machine1:4444", registry); registry.add(p1); for (int i = 1; i <= MAX; i++) { Map<String, Object> cap = new HashMap<>(); cap....
registry = Registry.newInstance(); registry.setPrioritizer(fifo); ff.put(APP, "FF"); RemoteProxy p1 = RemoteProxyFactory.getNewBasicRemoteProxy(ff, STRFFSTR_priority", i); MockedRequestHandler req =GridHelper.createNewSessionHandler(registry, cap); requests.add(req); } MockedRequestHandler newSessionRequest =GridHelper...
/** * create a hub with 1 FF * * @throws InterruptedException */
create a hub with 1 FF
setup
{ "repo_name": "knorrium/selenium", "path": "java/server/test/org/openqa/grid/internal/DefaultToFIFOPriorityTest.java", "license": "apache-2.0", "size": 3671 }
[ "org.openqa.grid.internal.mock.GridHelper", "org.openqa.grid.internal.mock.MockedRequestHandler" ]
import org.openqa.grid.internal.mock.GridHelper; import org.openqa.grid.internal.mock.MockedRequestHandler;
import org.openqa.grid.internal.mock.*;
[ "org.openqa.grid" ]
org.openqa.grid;
2,137,427
public List<Group> getGroupsForTrack(Track track) { return getGroupsForTrack(track.getId()); }
List<Group> function(Track track) { return getGroupsForTrack(track.getId()); }
/** * Retrieve all {@link Group} objects associated with track id * * @param track Track object * @return a list of Group objects */
Retrieve all <code>Group</code> objects associated with track id
getGroupsForTrack
{ "repo_name": "lordi/tickmate", "path": "app/src/main/java/de/smasi/tickmate/database/DataSource.java", "license": "gpl-3.0", "size": 30350 }
[ "de.smasi.tickmate.models.Group", "de.smasi.tickmate.models.Track", "java.util.List" ]
import de.smasi.tickmate.models.Group; import de.smasi.tickmate.models.Track; import java.util.List;
import de.smasi.tickmate.models.*; import java.util.*;
[ "de.smasi.tickmate", "java.util" ]
de.smasi.tickmate; java.util;
2,435,720
private static String replaceTab(String string) { return StringUtils.replace(string, "\t", " "); }
static String function(String string) { return StringUtils.replace(string, "\t", " "); }
/** * replace tab to four spaces * * @param string the original string * @return the replaced string */
replace tab to four spaces
replaceTab
{ "repo_name": "dadarom/dubbo", "path": "dubbo-plugin/dubbo-qos/src/main/java/com/alibaba/dubbo/qos/textui/TTable.java", "license": "apache-2.0", "size": 15563 }
[ "org.apache.commons.lang3.StringUtils" ]
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.*;
[ "org.apache.commons" ]
org.apache.commons;
876,992
public @Nullable Map<String, Object> getExportedViewConstants() { return null; }
@Nullable Map<String, Object> function() { return null; }
/** * Returns a map of view-specific constants that are injected to JavaScript. These constants are * made accessible via UIManager.<ViewName>.Constants. */
Returns a map of view-specific constants that are injected to JavaScript. These constants are made accessible via UIManager..Constants
getExportedViewConstants
{ "repo_name": "glovebx/react-native", "path": "ReactAndroid/src/main/java/com/facebook/react/uimanager/ViewManager.java", "license": "bsd-3-clause", "size": 10270 }
[ "java.util.Map", "javax.annotation.Nullable" ]
import java.util.Map; import javax.annotation.Nullable;
import java.util.*; import javax.annotation.*;
[ "java.util", "javax.annotation" ]
java.util; javax.annotation;
1,700,500
public void notifications_send(Collection<Integer> recipientIds, CharSequence notification) throws FacebookException, IOException;
void function(Collection<Integer> recipientIds, CharSequence notification) throws FacebookException, IOException;
/** * Send a notification message to the specified users on behalf of the logged-in user. * * @param recipientIds the user ids to which the message is to be sent. if empty, * notification will be sent to logged-in user. * @param notification the FBML to be displayed on the notifications page; only...
Send a notification message to the specified users on behalf of the logged-in user
notifications_send
{ "repo_name": "jkinner/ringside", "path": "api/clients/java/com/facebook/api/IFacebookRestClient.java", "license": "lgpl-2.1", "size": 46105 }
[ "java.io.IOException", "java.util.Collection" ]
import java.io.IOException; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
141,123
public static IntValuedEnum<RTresult> rtSelectorSetChildCount(RTselector selector, int count) { return FlagSet.fromValue(rtSelectorSetChildCount(Pointer.getPeer(selector), count), RTresult.class); }
static IntValuedEnum<RTresult> function(RTselector selector, int count) { return FlagSet.fromValue(rtSelectorSetChildCount(Pointer.getPeer(selector), count), RTresult.class); }
/** * Original signature : <code>RTresult rtSelectorSetChildCount(RTselector, unsigned int)</code><br> * <i>native declaration : include\optix_host.h:3812</i> */
Original signature : <code>RTresult rtSelectorSetChildCount(RTselector, unsigned int)</code> native declaration : include\optix_host.h:3812
rtSelectorSetChildCount
{ "repo_name": "fetox74/optix-wrapper", "path": "src/main/java/com/fetoxdevelopments/optix/api/RT.java", "license": "mit", "size": 162970 }
[ "com.fetoxdevelopments.optix.api.enumeration.RTresult", "com.fetoxdevelopments.optix.api.struct.RTselector", "org.bridj.FlagSet", "org.bridj.IntValuedEnum", "org.bridj.Pointer" ]
import com.fetoxdevelopments.optix.api.enumeration.RTresult; import com.fetoxdevelopments.optix.api.struct.RTselector; import org.bridj.FlagSet; import org.bridj.IntValuedEnum; import org.bridj.Pointer;
import com.fetoxdevelopments.optix.api.enumeration.*; import com.fetoxdevelopments.optix.api.struct.*; import org.bridj.*;
[ "com.fetoxdevelopments.optix", "org.bridj" ]
com.fetoxdevelopments.optix; org.bridj;
861,161
public Options deviceOrdinal(Long deviceOrdinal) { this.deviceOrdinal = deviceOrdinal; return this; } } @OpInputsMetadata( outputsClass = OutfeedDequeueTuple.class ) public static class Inputs extends RawOpInputs<OutfeedDequeueTuple> { public final DataType[] dtypes; ...
Options function(Long deviceOrdinal) { this.deviceOrdinal = deviceOrdinal; return this; } } @OpInputsMetadata( outputsClass = OutfeedDequeueTuple.class ) static class Inputs extends RawOpInputs<OutfeedDequeueTuple> { public final DataType[] dtypes; public final Shape[] shapes; public final long function; Inputs(GraphOp...
/** * Sets the deviceOrdinal option. * * @param deviceOrdinal The TPU device to use. This should be -1 when the Op * is running on a TPU device, and &gt;= 0 when the Op is running on the CPU * device. * @return this Options instance. */
Sets the deviceOrdinal option
deviceOrdinal
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/tpu/OutfeedDequeueTuple.java", "license": "apache-2.0", "size": 5661 }
[ "java.util.Arrays", "org.tensorflow.GraphOperation", "org.tensorflow.ndarray.Shape", "org.tensorflow.op.RawOpInputs", "org.tensorflow.op.annotation.OpInputsMetadata", "org.tensorflow.proto.framework.DataType" ]
import java.util.Arrays; import org.tensorflow.GraphOperation; import org.tensorflow.ndarray.Shape; import org.tensorflow.op.RawOpInputs; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.proto.framework.DataType;
import java.util.*; import org.tensorflow.*; import org.tensorflow.ndarray.*; import org.tensorflow.op.*; import org.tensorflow.op.annotation.*; import org.tensorflow.proto.framework.*;
[ "java.util", "org.tensorflow", "org.tensorflow.ndarray", "org.tensorflow.op", "org.tensorflow.proto" ]
java.util; org.tensorflow; org.tensorflow.ndarray; org.tensorflow.op; org.tensorflow.proto;
304,864
public static boolean isLastBlock(BinaryMessage binaryMessage) { return binaryMessage.get(LAST_BLOCK_FLAG); }
static boolean function(BinaryMessage binaryMessage) { return binaryMessage.get(LAST_BLOCK_FLAG); }
/** * Indicates if this is the last TSBK in a sequence (1-3 blocks) */
Indicates if this is the last TSBK in a sequence (1-3 blocks)
isLastBlock
{ "repo_name": "ImagoTrigger/sdrtrunk", "path": "src/main/java/io/github/dsheirer/module/decode/p25/phase1/message/tsbk/TSBKMessage.java", "license": "gpl-3.0", "size": 4901 }
[ "io.github.dsheirer.bits.BinaryMessage" ]
import io.github.dsheirer.bits.BinaryMessage;
import io.github.dsheirer.bits.*;
[ "io.github.dsheirer" ]
io.github.dsheirer;
1,552,794
public void testExceptionWhenClosed() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, SQLException { // create a result set and close it Statement stmt = createStatement(); ResultSet rs = stmt.executeQuery("values(1)"); rs.c...
void function() throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, SQLException { Statement stmt = createStatement(); ResultSet rs = stmt.executeQuery(STR); rs.close(); HashMap<String, Class[]> params = new HashMap<String, Class[]>(); HashMap<String, Object[]> args = new HashMap<String, Ob...
/** * Test that an exception is thrown when methods are called * on a closed result set (DERBY-1060). * * @throws SQLException Thrown if some unexpected error happens */
Test that an exception is thrown when methods are called on a closed result set (DERBY-1060)
testExceptionWhenClosed
{ "repo_name": "scnakandala/derby", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/jdbc4/ResultSetTest.java", "license": "apache-2.0", "size": 72380 }
[ "java.lang.reflect.InvocationTargetException", "java.lang.reflect.Method", "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Statement", "java.util.HashMap" ]
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import java.util.HashMap;
import java.lang.reflect.*; import java.sql.*; import java.util.*;
[ "java.lang", "java.sql", "java.util" ]
java.lang; java.sql; java.util;
2,326,483
@Override protected void onResume() { Log.d(TAG, "onResume()"); super.onResume(); LoadPreferences(); analyzerViews.graphView.setReady(this); // TODO: move this earlier? analyzerViews.enableSaveWavView(bSaveWav); // Used to prevent extra calling to restartSampli...
void function() { Log.d(TAG, STR); super.onResume(); LoadPreferences(); analyzerViews.graphView.setReady(this); analyzerViews.enableSaveWavView(bSaveWav); bSamplingPreparation = true; restartSampling(analyzerParam); }
/** * Run processClick() for views, transferring the state in the textView to our * internal state, then begin sampling and processing audio data */
Run processClick() for views, transferring the state in the textView to our internal state, then begin sampling and processing audio data
onResume
{ "repo_name": "nfsmaster208/audio-analyzer-for-android", "path": "audioSpectrumAnalyzer/src/main/java/github/bewantbe/audio_analyzer_for_android/AnalyzerActivity.java", "license": "apache-2.0", "size": 36251 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
2,024,414
public void onResume() { if (DEBUG) Log.d(TAG, "screen on, instance " + Integer.toHexString(hashCode())); mSecurityContainer.onResume(KeyguardSecurityView.SCREEN_ON); requestFocus(); }
void function() { if (DEBUG) Log.d(TAG, STR + Integer.toHexString(hashCode())); mSecurityContainer.onResume(KeyguardSecurityView.SCREEN_ON); requestFocus(); }
/** * Called when the Keyguard is actively shown on the screen. */
Called when the Keyguard is actively shown on the screen
onResume
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "frameworks/base/packages/Keyguard/src/com/android/keyguard/KeyguardViewBase.java", "license": "gpl-3.0", "size": 18500 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
1,759,726
static void putToCatalogTable(final CatalogTracker ct, final Put p) throws IOException { put(MetaReader.getCatalogHTable(ct), p); }
static void putToCatalogTable(final CatalogTracker ct, final Put p) throws IOException { put(MetaReader.getCatalogHTable(ct), p); }
/** * Put the passed <code>p</code> to a catalog table. * @param ct CatalogTracker on whose back we will ride the edit. * @param p Put to add * @throws IOException */
Put the passed <code>p</code> to a catalog table
putToCatalogTable
{ "repo_name": "lilonglai/hbase-0.96.2", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/catalog/MetaEditor.java", "license": "apache-2.0", "size": 21835 }
[ "java.io.IOException", "org.apache.hadoop.hbase.client.Put" ]
import java.io.IOException; import org.apache.hadoop.hbase.client.Put;
import java.io.*; import org.apache.hadoop.hbase.client.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
526,266
public String removeGroupFromCollection() { log.debug("add permissions called"); InstitutionalCollection collection = institutionalCollectionService.getCollection(collectionId, false); userGroup = userGroupService.get(groupId, false); if( userGroup != null) { acl = institutionalCollectio...
String function() { log.debug(STR); InstitutionalCollection collection = institutionalCollectionService.getCollection(collectionId, false); userGroup = userGroupService.get(groupId, false); if( userGroup != null) { acl = institutionalCollectionSecurityService.removeGroupFromCollectionAcl(collection, userGroup); entries...
/** * Remove all permissions for the user group on the institutional collection. * * @return */
Remove all permissions for the user group on the institutional collection
removeGroupFromCollection
{ "repo_name": "nate-rcl/irplus", "path": "ir_web/src/edu/ur/ir/web/action/institution/EditGroupPermissionsOnCollection.java", "license": "apache-2.0", "size": 11427 }
[ "edu.ur.ir.institution.InstitutionalCollection" ]
import edu.ur.ir.institution.InstitutionalCollection;
import edu.ur.ir.institution.*;
[ "edu.ur.ir" ]
edu.ur.ir;
2,529,893
public IndexRequest source(Map source) throws ElasticsearchGenerationException { return source(source, Requests.INDEX_CONTENT_TYPE); }
IndexRequest function(Map source) throws ElasticsearchGenerationException { return source(source, Requests.INDEX_CONTENT_TYPE); }
/** * Index the Map in {@link Requests#INDEX_CONTENT_TYPE} format * * @param source The map to index */
Index the Map in <code>Requests#INDEX_CONTENT_TYPE</code> format
source
{ "repo_name": "nezirus/elasticsearch", "path": "core/src/main/java/org/elasticsearch/action/index/IndexRequest.java", "license": "apache-2.0", "size": 23243 }
[ "java.util.Map", "org.elasticsearch.ElasticsearchGenerationException", "org.elasticsearch.client.Requests" ]
import java.util.Map; import org.elasticsearch.ElasticsearchGenerationException; import org.elasticsearch.client.Requests;
import java.util.*; import org.elasticsearch.*; import org.elasticsearch.client.*;
[ "java.util", "org.elasticsearch", "org.elasticsearch.client" ]
java.util; org.elasticsearch; org.elasticsearch.client;
425,053
public synchronized void parseCatalog(String mimeType, InputStream is) throws IOException, CatalogException { default_override = catalogManager.getPreferPublic(); catalogManager.debug.message(4, "Parse " + mimeType + " catalog on input stream"); CatalogReader reader = null; if (readerMap.contai...
synchronized void function(String mimeType, InputStream is) throws IOException, CatalogException { default_override = catalogManager.getPreferPublic(); catalogManager.debug.message(4, STR + mimeType + STR); CatalogReader reader = null; if (readerMap.containsKey(mimeType)) { int arrayPos = ((Integer) readerMap.get(mimeT...
/** * Parse a catalog file, augmenting internal data structures. * * <p>Catalogs retrieved over the net may have an associated MIME type. * The MIME type can be used to select an appropriate reader.</p> * * @param mimeType The MIME type of the catalog file. * @param is The InputStream from which th...
Parse a catalog file, augmenting internal data structures. Catalogs retrieved over the net may have an associated MIME type. The MIME type can be used to select an appropriate reader
parseCatalog
{ "repo_name": "jboss/jboss-common-core", "path": "src/main/java/org/jboss/util/xml/catalog/Catalog.java", "license": "apache-2.0", "size": 69247 }
[ "java.io.IOException", "java.io.InputStream", "org.jboss.util.xml.catalog.readers.CatalogReader" ]
import java.io.IOException; import java.io.InputStream; import org.jboss.util.xml.catalog.readers.CatalogReader;
import java.io.*; import org.jboss.util.xml.catalog.readers.*;
[ "java.io", "org.jboss.util" ]
java.io; org.jboss.util;
1,804,714
public boolean scrollWebView(final WebView webView, int direction, final boolean allTheWay){
boolean function(final WebView webView, int direction, final boolean allTheWay){
/** * Scrolls a WebView. * * @param webView the WebView to scroll * @param direction the direction to scroll * @param allTheWay {@code true} to scroll the view all the way up or down, {@code false} to scroll one page up or down or down. * @return {@code true} if more scrolling can ...
Scrolls a WebView
scrollWebView
{ "repo_name": "MattGong/robotium", "path": "robotium-solo/src/main/java/com/robotium/solo/Scroller.java", "license": "apache-2.0", "size": 10483 }
[ "android.webkit.WebView" ]
import android.webkit.WebView;
import android.webkit.*;
[ "android.webkit" ]
android.webkit;
1,364,733
private void fireSubscriberNotifications(String correlationID, ServiceDescriptor serviceDescriptor, String event) { try { busServices.notificationManager().fireNotifications(correlationID, serviceDescriptor, event, null, null); } catch (Exception e) { logger.log(Level.WAR...
void function(String correlationID, ServiceDescriptor serviceDescriptor, String event) { try { busServices.notificationManager().fireNotifications(correlationID, serviceDescriptor, event, null, null); } catch (Exception e) { logger.log(Level.WARNING, STR, new Object[] { correlationID, serviceDescriptor.toString(), even...
/** * Fires client notification messages for each feed being unsubscribed. * * @param correlationID * the correlation ID of the subscription. * * @param serviceDescriptor * the feed for which notifications are required. * * @param event * ...
Fires client notification messages for each feed being unsubscribed
fireSubscriberNotifications
{ "repo_name": "acshea/edgware", "path": "fabric.lib/src/fabric/bus/feeds/impl/SubscriptionManager.java", "license": "epl-1.0", "size": 61985 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,560,174
public ServiceFuture<ClusterInner> updateAsync(String resourceGroupName, String workspaceName, String clusterName, ScaleSettings scaleSettings, final ServiceCallback<ClusterInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterNam...
ServiceFuture<ClusterInner> function(String resourceGroupName, String workspaceName, String clusterName, ScaleSettings scaleSettings, final ServiceCallback<ClusterInner> serviceCallback) { return ServiceFuture.fromResponse(updateWithServiceResponseAsync(resourceGroupName, workspaceName, clusterName, scaleSettings), ser...
/** * Updates properties of a Cluster. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param workspaceName The name of the workspace. Workspace names can only contain a combination of alphanumeric characters along with dash (-) and underscore (_). The name m...
Updates properties of a Cluster
updateAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/batchai/mgmt-v2018_05_01/src/main/java/com/microsoft/azure/management/batchai/v2018_05_01/implementation/ClustersInner.java", "license": "mit", "size": 94766 }
[ "com.microsoft.azure.management.batchai.v2018_05_01.ScaleSettings", "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.azure.management.batchai.v2018_05_01.ScaleSettings; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.azure.management.batchai.v2018_05_01.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
1,932,006
public static Date getCopyToolRunDate(final AccumuloRyaDAO dao) throws RyaDAOException { final String time = getCopyToolRunTime(dao); Date date = null; if (time != null) { try { date = TIME_FORMATTER.parse(time); } catch (final ParseException e) { ...
static Date function(final AccumuloRyaDAO dao) throws RyaDAOException { final String time = getCopyToolRunTime(dao); Date date = null; if (time != null) { try { date = TIME_FORMATTER.parse(time); } catch (final ParseException e) { log.error(STR + time, e); } } return date; }
/** * Gets the copy tool run {@link Date} metadata for the table. * @param dao the {@link AccumuloRyaDAO}. * @return the copy tool run {@link Date}. * @throws RyaDAOException */
Gets the copy tool run <code>Date</code> metadata for the table
getCopyToolRunDate
{ "repo_name": "kchilton2/incubator-rya", "path": "extras/rya.merger/src/main/java/org/apache/rya/accumulo/mr/merge/util/AccumuloRyaUtils.java", "license": "apache-2.0", "size": 30873 }
[ "java.text.ParseException", "java.util.Date", "org.apache.rya.accumulo.AccumuloRyaDAO", "org.apache.rya.api.persist.RyaDAOException" ]
import java.text.ParseException; import java.util.Date; import org.apache.rya.accumulo.AccumuloRyaDAO; import org.apache.rya.api.persist.RyaDAOException;
import java.text.*; import java.util.*; import org.apache.rya.accumulo.*; import org.apache.rya.api.persist.*;
[ "java.text", "java.util", "org.apache.rya" ]
java.text; java.util; org.apache.rya;
20,526
protected void addPathLocationSourcePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Filetransferoperations_pathLocationSource_feature"), get...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), InteroperabilityPackage.Literals.FILETRANSFEROPERATIONS__PATH_LOCATION_SOURCE, true, false, false...
/** * This adds a property descriptor for the Path Location Source feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Path Location Source feature.
addPathLocationSourcePropertyDescriptor
{ "repo_name": "occiware/Multi-Cloud-Studio", "path": "plugins/org.eclipse.cmf.occi.multicloud.interoperability.edit/src-gen/org/eclipse/cmf/occi/multicloud/interoperability/provider/FiletransferoperationsItemProvider.java", "license": "epl-1.0", "size": 9110 }
[ "org.eclipse.cmf.occi.multicloud.interoperability.InteroperabilityPackage", "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import org.eclipse.cmf.occi.multicloud.interoperability.InteroperabilityPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import org.eclipse.cmf.occi.multicloud.interoperability.*; import org.eclipse.emf.edit.provider.*;
[ "org.eclipse.cmf", "org.eclipse.emf" ]
org.eclipse.cmf; org.eclipse.emf;
13,817
static KmlContainer createContainer(XmlPullParser parser) throws XmlPullParserException, IOException { return assignPropertiesToContainer(parser); }
static KmlContainer createContainer(XmlPullParser parser) throws XmlPullParserException, IOException { return assignPropertiesToContainer(parser); }
/** * Obtains a Container object (created if a Document or Folder start tag is read by the * XmlPullParser) and assigns specific elements read from the XmlPullParser to the container. */
Obtains a Container object (created if a Document or Folder start tag is read by the XmlPullParser) and assigns specific elements read from the XmlPullParser to the container
createContainer
{ "repo_name": "googlemaps/android-maps-utils", "path": "library/src/main/java/com/google/maps/android/data/kml/KmlContainerParser.java", "license": "apache-2.0", "size": 8392 }
[ "java.io.IOException", "org.xmlpull.v1.XmlPullParser", "org.xmlpull.v1.XmlPullParserException" ]
import java.io.IOException; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException;
import java.io.*; import org.xmlpull.v1.*;
[ "java.io", "org.xmlpull.v1" ]
java.io; org.xmlpull.v1;
2,815,994
public static boolean isFullyPlayedThumbnail(File file) { return file != null && configuration.getFullyPlayedAction() == FullyPlayedAction.MARK && MediaMonitor.isFullyPlayed(file.getAbsolutePath()); }
static boolean function(File file) { return file != null && configuration.getFullyPlayedAction() == FullyPlayedAction.MARK && MediaMonitor.isFullyPlayed(file.getAbsolutePath()); }
/** * Determines if the media thumbnail should have a "fully played" overlay. * * @param file the file representing this media * @return The result */
Determines if the media thumbnail should have a "fully played" overlay
isFullyPlayedThumbnail
{ "repo_name": "taconaut/ums-mlx", "path": "core/src/main/java/net/pms/util/FullyPlayed.java", "license": "gpl-2.0", "size": 10328 }
[ "java.io.File", "net.pms.dlna.MediaMonitor" ]
import java.io.File; import net.pms.dlna.MediaMonitor;
import java.io.*; import net.pms.dlna.*;
[ "java.io", "net.pms.dlna" ]
java.io; net.pms.dlna;
969,463
@IgniteSpiConfiguration(optional = true) public void setAddressResolver(AddressResolver addrRslvr) { // Injection should not override value already set by Spring or user. if (this.addrRslvr == null) this.addrRslvr = addrRslvr; }
@IgniteSpiConfiguration(optional = true) void function(AddressResolver addrRslvr) { if (this.addrRslvr == null) this.addrRslvr = addrRslvr; }
/** * Sets address resolver. * * @param addrRslvr Address resolver. */
Sets address resolver
setAddressResolver
{ "repo_name": "leveyj/ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java", "license": "apache-2.0", "size": 136350 }
[ "org.apache.ignite.configuration.AddressResolver", "org.apache.ignite.spi.IgniteSpiConfiguration" ]
import org.apache.ignite.configuration.AddressResolver; import org.apache.ignite.spi.IgniteSpiConfiguration;
import org.apache.ignite.configuration.*; import org.apache.ignite.spi.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,343,889
public static boolean isValid(Class<? extends Message> type, String path) { Descriptor descriptor = Internal.getDefaultInstance(type).getDescriptorForType(); return isValid(descriptor, path); }
static boolean function(Class<? extends Message> type, String path) { Descriptor descriptor = Internal.getDefaultInstance(type).getDescriptorForType(); return isValid(descriptor, path); }
/** * Checks whether a given field path is valid. */
Checks whether a given field path is valid
isValid
{ "repo_name": "chromium/chromium", "path": "third_party/protobuf/java/util/src/main/java/com/google/protobuf/util/FieldMaskUtil.java", "license": "bsd-3-clause", "size": 14100 }
[ "com.google.protobuf.Descriptors", "com.google.protobuf.Internal", "com.google.protobuf.Message" ]
import com.google.protobuf.Descriptors; import com.google.protobuf.Internal; import com.google.protobuf.Message;
import com.google.protobuf.*;
[ "com.google.protobuf" ]
com.google.protobuf;
2,855,869
public Cursor fetchAllBookshelves(long rowId) { String sql = "SELECT DISTINCT bs." + KEY_ROWID + " as " + KEY_ROWID + ", " + "bs." + KEY_BOOKSHELF + " as " + KEY_BOOKSHELF + ", " + "CASE WHEN w." + KEY_BOOK + " IS NULL THEN 0 ELSE 1 END as " + KEY_BOOK + " FROM " + DB_TB_BOOKSHELF + " bs LEFT OUTER...
Cursor function(long rowId) { String sql = STR + KEY_ROWID + STR + KEY_ROWID + STR + "bs." + KEY_BOOKSHELF + STR + KEY_BOOKSHELF + STR + STR + KEY_BOOK + STR + KEY_BOOK + STR + DB_TB_BOOKSHELF + STR + DB_TB_BOOK_BOOKSHELF_WEAK + STR + KEY_BOOKSHELF + "=bs." + KEY_ROWID + STR + KEY_BOOK + "=" + rowId + STR + STR + KEY_B...
/** * Return a Cursor over the list of all bookshelves in the database * * @param long rowId the rowId of a book, which in turn adds a new field on each row as to the active state of that bookshelf for the book * @return Cursor over all bookshelves */
Return a Cursor over the list of all bookshelves in the database
fetchAllBookshelves
{ "repo_name": "jgaldo/Book-Catalogue", "path": "src/com/eleybourn/bookcatalogue/CatalogueDBAdapter.java", "license": "gpl-3.0", "size": 238306 }
[ "android.database.Cursor" ]
import android.database.Cursor;
import android.database.*;
[ "android.database" ]
android.database;
487,224
Graph load(String filename);
Graph load(String filename);
/** * Loads a graph from a file per the appropriate format * @param filename the location and name of the file * @return the graph */
Loads a graph from a file per the appropriate format
load
{ "repo_name": "markus1978/clickwatch", "path": "external/edu.uci.ics.jung/src/edu/uci/ics/jung/io/GraphFile.java", "license": "apache-2.0", "size": 863 }
[ "edu.uci.ics.jung.graph.Graph" ]
import edu.uci.ics.jung.graph.Graph;
import edu.uci.ics.jung.graph.*;
[ "edu.uci.ics" ]
edu.uci.ics;
329,762
public synchronized Optional<Contact> createContact(String jid, String name) { if (!this.isValid(jid)) return Optional.empty(); Contact newContact = new Contact(jid, name); if (newContact.getID() < 1) return Optional.empty(); mJIDMap.put(newContact.getJID(),...
synchronized Optional<Contact> function(String jid, String name) { if (!this.isValid(jid)) return Optional.empty(); Contact newContact = new Contact(jid, name); if (newContact.getID() < 1) return Optional.empty(); mJIDMap.put(newContact.getJID(), newContact); mIDMap.put(newContact.getID(), newContact); this.changed(new...
/** * Create and add a new contact. * @param jid JID of new contact * @param name nickname of new contact, use an empty string if not known * @return the newly created contact, if one was created */
Create and add a new contact
createContact
{ "repo_name": "0359xiaodong/desktopclient-java", "path": "src/main/java/org/kontalk/model/ContactList.java", "license": "gpl-3.0", "size": 6201 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
2,052,416
private CredentialComboBox getCred() { if (cred == null) { cred = new CredentialComboBox(this.allowAnonymous); } return cred; }
CredentialComboBox function() { if (cred == null) { cred = new CredentialComboBox(this.allowAnonymous); } return cred; }
/** * This method initializes cred * * @return javax.swing.JComboBox */
This method initializes cred
getCred
{ "repo_name": "NCIP/cagrid-grid-incubation", "path": "grid-incubation/incubator/projects/csm/projects/csm-ui/src/java/org/cagrid/gaards/ui/csm/SessionPanel.java", "license": "bsd-3-clause", "size": 4675 }
[ "org.cagrid.gaards.ui.common.CredentialComboBox" ]
import org.cagrid.gaards.ui.common.CredentialComboBox;
import org.cagrid.gaards.ui.common.*;
[ "org.cagrid.gaards" ]
org.cagrid.gaards;
718,703
@Override public void configureLogging(LoggingPreferences prefs) { if (prefs == null) { return; } if (prefs.getEnabledLogTypes().contains(LogType.SERVER)) { serverLogLevel = prefs.getLevel(LogType.SERVER); } } private static class ThreadKey { private final String name; ...
void function(LoggingPreferences prefs) { if (prefs == null) { return; } if (prefs.getEnabledLogTypes().contains(LogType.SERVER)) { serverLogLevel = prefs.getLevel(LogType.SERVER); } } private static class ThreadKey { private final String name; private final Long id; ThreadKey() { this.name = Thread.currentThread().toS...
/** * Configures logging using a logging preferences object. * * @param prefs The logging preferences object. */
Configures logging using a logging preferences object
configureLogging
{ "repo_name": "SeleniumGridRefactor/selenium.remote.server", "path": "src/main/java/org/openqa/selenium/remote/server/log/DefaultPerSessionLogHandler.java", "license": "apache-2.0", "size": 12787 }
[ "org.openqa.selenium.logging.LogType", "org.openqa.selenium.logging.LoggingPreferences" ]
import org.openqa.selenium.logging.LogType; import org.openqa.selenium.logging.LoggingPreferences;
import org.openqa.selenium.logging.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
323,883
public Optional<Duration> timeLeftOrThrow() { return timeout.map(timeout -> { Duration passed = timePassed(); Duration left = timeout.minus(passed); if (left.toMillis() <= 0) { throw new UncheckedTimeoutException("Time since start " + passed + " exceeds ti...
Optional<Duration> function() { return timeout.map(timeout -> { Duration passed = timePassed(); Duration left = timeout.minus(passed); if (left.toMillis() <= 0) { throw new UncheckedTimeoutException(STR + passed + STR + this.timeout); } return left; }); }
/** * Returns the time until deadline, if there is one. * * @return time until deadline. It's toMillis() is guaranteed to be positive. * @throws UncheckedTimeoutException if the deadline has been reached or passed. */
Returns the time until deadline, if there is one
timeLeftOrThrow
{ "repo_name": "vespa-engine/vespa", "path": "vespajlib/src/main/java/com/yahoo/time/TimeBudget.java", "license": "apache-2.0", "size": 3222 }
[ "com.yahoo.concurrent.UncheckedTimeoutException", "java.time.Duration", "java.util.Optional" ]
import com.yahoo.concurrent.UncheckedTimeoutException; import java.time.Duration; import java.util.Optional;
import com.yahoo.concurrent.*; import java.time.*; import java.util.*;
[ "com.yahoo.concurrent", "java.time", "java.util" ]
com.yahoo.concurrent; java.time; java.util;
981,811
public void addbiboSubsequentLegalDecision(Decision value) { Base.add(this.model, this.getResource(), SUBSEQUENTLEGALDECISION, value); }
void function(Decision value) { Base.add(this.model, this.getResource(), SUBSEQUENTLEGALDECISION, value); }
/** * Adds a value to property SubsequentLegalDecision from an instance of Decision * * [Generated from RDFReactor template rule #add4dynamic] */
Adds a value to property SubsequentLegalDecision from an instance of Decision [Generated from RDFReactor template rule #add4dynamic]
addbiboSubsequentLegalDecision
{ "repo_name": "alexgarciac/biotea", "path": "src/ws/biotea/ld2rdf/rdf/model/bibo/Decision.java", "license": "apache-2.0", "size": 48808 }
[ "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.rdfreactor" ]
org.ontoware.rdfreactor;
968,609
public void loadUrl(LoadUrlParams params) { if (params.getLoadUrlType() == LoadUrlParams.LOAD_TYPE_DATA && !params.isBaseUrlDataScheme()) { // This allows data URLs with a non-data base URL access to file:///android_asset/ and // file:///android_res/ URLs. If AwSettings.g...
void function(LoadUrlParams params) { if (params.getLoadUrlType() == LoadUrlParams.LOAD_TYPE_DATA && !params.isBaseUrlDataScheme()) { params.setCanLoadLocalResources(true); } if (params.getUrl() != null && params.getUrl().equals(mContentViewCore.getUrl()) && params.getTransitionType() == PageTransitionTypes.PAGE_TRANSI...
/** * Load url without fixing up the url string. Consumers of ContentView are responsible for * ensuring the URL passed in is properly formatted (i.e. the scheme has been added if left * off during user input). * * @param pararms Parameters for this load. */
Load url without fixing up the url string. Consumers of ContentView are responsible for ensuring the URL passed in is properly formatted (i.e. the scheme has been added if left off during user input)
loadUrl
{ "repo_name": "hujiajie/pa-chromium", "path": "android_webview/java/src/org/chromium/android_webview/AwContents.java", "license": "bsd-3-clause", "size": 57298 }
[ "org.chromium.content.browser.LoadUrlParams", "org.chromium.content.browser.PageTransitionTypes" ]
import org.chromium.content.browser.LoadUrlParams; import org.chromium.content.browser.PageTransitionTypes;
import org.chromium.content.browser.*;
[ "org.chromium.content" ]
org.chromium.content;
1,777,638
public int deactivateProxy(String clientcert) throws ProxyNotActivatedException, MethodInvalidParamException { Server server = validateClientCertificate(clientcert); if (!server.isProxy()) { throw new ProxyNotActivatedException(); } SystemManager.deactivateProxy(...
int function(String clientcert) throws ProxyNotActivatedException, MethodInvalidParamException { Server server = validateClientCertificate(clientcert); if (!server.isProxy()) { throw new ProxyNotActivatedException(); } SystemManager.deactivateProxy(server); return 1; }
/** * Deactivates the system identified by the given client certificate. * @param clientcert client certificate of the system. * @return 1 if the deactivation succeeded, 0 otherwise. * @throws ProxyNotActivatedException thrown if server is not a proxy. * @throws MethodInvalidParamException thro...
Deactivates the system identified by the given client certificate
deactivateProxy
{ "repo_name": "davidhrbac/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/proxy/ProxyHandler.java", "license": "gpl-2.0", "size": 6937 }
[ "com.redhat.rhn.domain.server.Server", "com.redhat.rhn.frontend.xmlrpc.MethodInvalidParamException", "com.redhat.rhn.frontend.xmlrpc.ProxyNotActivatedException", "com.redhat.rhn.manager.system.SystemManager" ]
import com.redhat.rhn.domain.server.Server; import com.redhat.rhn.frontend.xmlrpc.MethodInvalidParamException; import com.redhat.rhn.frontend.xmlrpc.ProxyNotActivatedException; import com.redhat.rhn.manager.system.SystemManager;
import com.redhat.rhn.domain.server.*; import com.redhat.rhn.frontend.xmlrpc.*; import com.redhat.rhn.manager.system.*;
[ "com.redhat.rhn" ]
com.redhat.rhn;
2,049,428
public void setValue(double percent){ _percent = percent; if (_percent==-1.0 || (_percent==0.0 && !_drawZero)){ _lbl.setText("-"); } else{ _lbl.setText(PCT_FORMATTER.format(percent)+"%"); } if (_percent>=75.0) _clr = Color.green; else if (_percent>=50.0) _clr = Col...
void function(double percent){ _percent = percent; if (_percent==-1.0 (_percent==0.0 && !_drawZero)){ _lbl.setText("-"); } else{ _lbl.setText(PCT_FORMATTER.format(percent)+"%"); } if (_percent>=75.0) _clr = Color.green; else if (_percent>=50.0) _clr = Color.yellow; else if (_percent>=25.0) _clr = Color.orange; else _cl...
/** * Set the value. It has to be in the range 0.0 to 100.0. Note that * this method assigns a color to the component background according * to the value passed in. This color can be overloaded by a subsequent * call to setColor(). * * @param percent the value */
Set the value. It has to be in the range 0.0 to 100.0. Note that this method assigns a color to the component background according to the value passed in. This color can be overloaded by a subsequent call to setColor()
setValue
{ "repo_name": "pgdurand/Bioinformatics-UI-API", "path": "src/bzh/plealog/bioinfo/ui/util/JPercentLabel.java", "license": "agpl-3.0", "size": 6038 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,856,636
public static void executeDirector(String profilePath, String outName, String powerAddresses, String generators, int randomSeed, int threadCount, int urlTimeout, String scriptPath, boolean randomizeUsers, double warmupRate, int warmupDurationS, int warmupPauseS, String powerCommunicatorClassName) { List<...
static void function(String profilePath, String outName, String powerAddresses, String generators, int randomSeed, int threadCount, int urlTimeout, String scriptPath, boolean randomizeUsers, double warmupRate, int warmupDurationS, int warmupPauseS, String powerCommunicatorClassName) { List<IPowerCommunicator> powerComm...
/** * Execute the director with the given parameters. * Parameters may be null. Director asks the user for null parameters if they are required. * @param profilePath The path of the LIMBO-generated load profile. * @param outName The name of the output log file. * @param powerAddresses The addresses of the pow...
Execute the director with the given parameters. Parameters may be null. Director asks the user for null parameters if they are required
executeDirector
{ "repo_name": "joakimkistowski/HTTP-Load-Generator", "path": "tools.descartes.dlim.httploadgenerator/src/main/java/tools/descartes/dlim/httploadgenerator/runner/Director.java", "license": "apache-2.0", "size": 15956 }
[ "java.io.File", "java.util.ArrayList", "java.util.LinkedList", "java.util.List", "tools.descartes.dlim.httploadgenerator.power.IPowerCommunicator" ]
import java.io.File; import java.util.ArrayList; import java.util.LinkedList; import java.util.List; import tools.descartes.dlim.httploadgenerator.power.IPowerCommunicator;
import java.io.*; import java.util.*; import tools.descartes.dlim.httploadgenerator.power.*;
[ "java.io", "java.util", "tools.descartes.dlim" ]
java.io; java.util; tools.descartes.dlim;
1,356,309
public List<Map<String, Object>> listExtraPackages(User loggedInUser, Integer serverId) { DataResult<PackageListItem> dr = SystemManager.listExtraPackages(new Long(serverId)); List<Map<String, Object>> returnList = new ArrayList<Map<String, Object>>(); for (Iter...
List<Map<String, Object>> function(User loggedInUser, Integer serverId) { DataResult<PackageListItem> dr = SystemManager.listExtraPackages(new Long(serverId)); List<Map<String, Object>> returnList = new ArrayList<Map<String, Object>>(); for (Iterator<PackageListItem> itr = dr.iterator(); itr.hasNext();) { PackageListIt...
/** * List extra packages for given system * @param loggedInUser The current user * @param serverId Server ID * @return Array of extra packages for given system * * @xmlrpc.doc List extra packages for a system * @xmlrpc.param #param("string", "sessionKey") * @xmlrpc.param #param(...
List extra packages for given system
listExtraPackages
{ "repo_name": "jdobes/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/system/SystemHandler.java", "license": "gpl-2.0", "size": 240801 }
[ "com.redhat.rhn.common.db.datasource.DataResult", "com.redhat.rhn.domain.user.User", "com.redhat.rhn.frontend.dto.PackageListItem", "com.redhat.rhn.manager.system.SystemManager", "java.util.ArrayList", "java.util.HashMap", "java.util.Iterator", "java.util.List", "java.util.Map" ]
import com.redhat.rhn.common.db.datasource.DataResult; import com.redhat.rhn.domain.user.User; import com.redhat.rhn.frontend.dto.PackageListItem; import com.redhat.rhn.manager.system.SystemManager; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util....
import com.redhat.rhn.common.db.datasource.*; import com.redhat.rhn.domain.user.*; import com.redhat.rhn.frontend.dto.*; import com.redhat.rhn.manager.system.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
2,280,099
protected String getString(String bundleName, Locale locale, String key, Object... args) { return applicationContext.getString(bundleName, locale, key, args); }
String function(String bundleName, Locale locale, String key, Object... args) { return applicationContext.getString(bundleName, locale, key, args); }
/** * Get a bundle string * @param bundleName name of bundle * @param locale Locale * @param key key of the bundle * @param args replacement arguments * @return String value of the bundle */
Get a bundle string
getString
{ "repo_name": "luismanuelamengual/NeoGroup-Sparks", "path": "src/main/java/org/neogroup/sparks/processors/Processor.java", "license": "apache-2.0", "size": 10247 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
924,167
private List<String> drawMultilineString(String name, int x, int y, int width, int height) { // text' if (name != null) { int maxWidth = width - 10; String[] split = name.split("\\s{1}"); StringBuilder builder = new StringBuilder(); ArrayList<String> rows = new ArrayList<String>(5); for (String da...
List<String> function(String name, int x, int y, int width, int height) { if (name != null) { int maxWidth = width - 10; String[] split = name.split(STR); StringBuilder builder = new StringBuilder(); ArrayList<String> rows = new ArrayList<String>(5); for (String data : split) { String tempString = builder.toString(); i...
/** * Draw multiline string. * * @param name the name * @param x the x * @param y the y * @param width the width * @param height the height * @return the list */
Draw multiline string
drawMultilineString
{ "repo_name": "SirmaITT/conservation-space-1.7.0", "path": "docker/sep-alfresco/alfresco/src/alfresco/org/activiti/engine/impl/bpmn/diagram/ProcessDiagramCanvas.java", "license": "lgpl-3.0", "size": 25936 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,780,722
@Test public void testExplainScriptIsEachStatementValidated() throws Throwable { PigServer server = new PigServer(cluster.getExecType(), cluster.getProperties()); PigContext context = server.getPigContext(); String strCmd = "a = load 'foo' as (foo, fast, regenerate);" + ...
void function() throws Throwable { PigServer server = new PigServer(cluster.getExecType(), cluster.getProperties()); PigContext context = server.getPigContext(); String strCmd = STR + STR + STR + STR; ByteArrayInputStream cmd = new ByteArrayInputStream(strCmd.getBytes()); InputStreamReader reader = new InputStreamReade...
/** * PIG-2084 * Check if only statements used in query are validated, in non-interactive * /non-check mode. There is an 'unused' statement in query that would otherise * fail the validation. * Primary purpose of test is to verify that check not happening for * every statement. * @t...
PIG-2084 Check if only statements used in query are validated, in non-interactive non-check mode. There is an 'unused' statement in query that would otherise fail the validation. Primary purpose of test is to verify that check not happening for every statement
testExplainScriptIsEachStatementValidated
{ "repo_name": "wenbingYu/pig-source", "path": "test/org/apache/pig/test/TestGrunt.java", "license": "apache-2.0", "size": 55557 }
[ "java.io.BufferedReader", "java.io.ByteArrayInputStream", "java.io.InputStreamReader", "org.apache.pig.PigServer", "org.apache.pig.impl.PigContext", "org.apache.pig.tools.grunt.Grunt" ]
import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStreamReader; import org.apache.pig.PigServer; import org.apache.pig.impl.PigContext; import org.apache.pig.tools.grunt.Grunt;
import java.io.*; import org.apache.pig.*; import org.apache.pig.impl.*; import org.apache.pig.tools.grunt.*;
[ "java.io", "org.apache.pig" ]
java.io; org.apache.pig;
206,851
EAttribute getGetResourceByIdType_ResourceID();
EAttribute getGetResourceByIdType_ResourceID();
/** * Returns the meta object for the attribute '{@link net.opengis.ows20.GetResourceByIdType#getResourceID <em>Resource ID</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Resource ID</em>'. * @see net.opengis.ows20.GetResourceByIdType#getResou...
Returns the meta object for the attribute '<code>net.opengis.ows20.GetResourceByIdType#getResourceID Resource ID</code>'.
getGetResourceByIdType_ResourceID
{ "repo_name": "geotools/geotools", "path": "modules/ogc/net.opengis.ows/src/net/opengis/ows20/Ows20Package.java", "license": "lgpl-2.1", "size": 356067 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,706,351
public java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NumberConstantHLAPI> getSubterm_integers_NumberConstantHLAPI() { java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NumberConstantHLAPI> retour = new ArrayList<fr.lip6.move.pnml.pthlpng.integers.hlapi.NumberConstantHLAPI>(); for (Term elemnt : g...
java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NumberConstantHLAPI> function() { java.util.List<fr.lip6.move.pnml.pthlpng.integers.hlapi.NumberConstantHLAPI> retour = new ArrayList<fr.lip6.move.pnml.pthlpng.integers.hlapi.NumberConstantHLAPI>(); for (Term elemnt : getSubterm()) { if (elemnt.getClass().equals(f...
/** * This accessor return a list of encapsulated subelement, only of * NumberConstantHLAPI kind. WARNING : this method can creates a lot of new * object in memory. */
This accessor return a list of encapsulated subelement, only of NumberConstantHLAPI kind. WARNING : this method can creates a lot of new object in memory
getSubterm_integers_NumberConstantHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-PT-HLPNG/src/fr/lip6/move/pnml/pthlpng/integers/hlapi/GreaterThanHLAPI.java", "license": "epl-1.0", "size": 69869 }
[ "fr.lip6.move.pnml.pthlpng.terms.Term", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.pthlpng.terms.Term; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.pthlpng.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
2,833,687
private void compareColors(Set<String> expectedColors, Set<String> actualColors) { assertThat(onlyBlack(actualColors)).as("Only black").isFalse(); assertThat(onlyWhite(actualColors)).as("Only white").isFalse(); // Ignore black and white for further comparison Set<String> cleanActualColors = Sets.newH...
void function(Set<String> expectedColors, Set<String> actualColors) { assertThat(onlyBlack(actualColors)).as(STR).isFalse(); assertThat(onlyWhite(actualColors)).as(STR).isFalse(); Set<String> cleanActualColors = Sets.newHashSet(actualColors); cleanActualColors.remove(STR); cleanActualColors.remove(STR); if (! expectedC...
/** * Compares sets of colors are same. * * @param expectedColors - set of expected colors * @param actualColors - set of actual colors */
Compares sets of colors are same
compareColors
{ "repo_name": "5hawnknight/selenium", "path": "java/client/test/org/openqa/selenium/TakesScreenshotTest.java", "license": "apache-2.0", "size": 21219 }
[ "com.google.common.collect.Sets", "java.util.Set", "org.assertj.core.api.Assertions", "org.junit.Assert" ]
import com.google.common.collect.Sets; import java.util.Set; import org.assertj.core.api.Assertions; import org.junit.Assert;
import com.google.common.collect.*; import java.util.*; import org.assertj.core.api.*; import org.junit.*;
[ "com.google.common", "java.util", "org.assertj.core", "org.junit" ]
com.google.common; java.util; org.assertj.core; org.junit;
1,357,321
public final HSSFWorkbook getWkbk() { return wkbk; }
final HSSFWorkbook function() { return wkbk; }
/** *Getter for wkbk. *@return HSSFWorkbook. * **/
Getter for wkbk
getWkbk
{ "repo_name": "JaLandry/MeasureAuthoringTool_LatestSprint", "path": "mat/src/mat/server/service/impl/SimpleEMeasureServiceImpl.java", "license": "apache-2.0", "size": 28801 }
[ "org.apache.poi.hssf.usermodel.HSSFWorkbook" ]
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.apache.poi.hssf.usermodel.*;
[ "org.apache.poi" ]
org.apache.poi;
2,671,142
public void testPoolWeightsWhenNoMaps() throws Exception { // Set up pools file PrintWriter out = new PrintWriter(new FileWriter(ALLOC_FILE)); out.println("<?xml version=\"1.0\"?>"); out.println("<allocations>"); out.println("<pool name=\"poolA\">"); out.println("<weight>2.0</weight>"); ou...
void function() throws Exception { PrintWriter out = new PrintWriter(new FileWriter(ALLOC_FILE)); out.println(STR1.0\"?>"); out.println(STR); out.println(STRpoolA\">"); out.println(STR); out.println(STR); out.println(STRpoolB\">"); out.println(STR); out.println(STR); out.println(STR); out.close(); scheduler.getPoolMana...
/** * This test submits jobs in two pools, poolA and poolB. None of the * jobs in poolA have maps, but this should not affect their reduce * share. */
This test submits jobs in two pools, poolA and poolB. None of the jobs in poolA have maps, but this should not affect their reduce share
testPoolWeightsWhenNoMaps
{ "repo_name": "pombredanne/brisk-hadoop-common", "path": "src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java", "license": "apache-2.0", "size": 52439 }
[ "java.io.FileWriter", "java.io.PrintWriter", "org.apache.hadoop.mapred.FairScheduler", "org.apache.hadoop.mapred.JobStatus" ]
import java.io.FileWriter; import java.io.PrintWriter; import org.apache.hadoop.mapred.FairScheduler; import org.apache.hadoop.mapred.JobStatus;
import java.io.*; import org.apache.hadoop.mapred.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,837,769
@Deprecated public static void setComponentRam(Map<String, Object> conf, String component, long ramInBytes) { setComponentRam(conf, component, ByteAmount.fromBytes(ramInBytes)); }
static void function(Map<String, Object> conf, String component, long ramInBytes) { setComponentRam(conf, component, ByteAmount.fromBytes(ramInBytes)); }
/** * Users should use the version of this method at uses ByteAmount * @deprecated use * setComponentRam(Map&lt;String, Object&gt; conf, String component, ByteAmount ramInBytes) */
Users should use the version of this method at uses ByteAmount
setComponentRam
{ "repo_name": "lewiskan/heron", "path": "heron/api/src/java/com/twitter/heron/api/Config.java", "license": "apache-2.0", "size": 24540 }
[ "com.twitter.heron.common.basics.ByteAmount", "java.util.Map" ]
import com.twitter.heron.common.basics.ByteAmount; import java.util.Map;
import com.twitter.heron.common.basics.*; import java.util.*;
[ "com.twitter.heron", "java.util" ]
com.twitter.heron; java.util;
1,724,930
public static String getMetadataTypes(String dbType, String dataType) { String[] linearTypes = new String[0]; String[] ordinalTypes = new String[0]; // String[] timeTypes; //ToDo: data type implementation for supported databases switch (dbType) { case "mysql": ...
static String function(String dbType, String dataType) { String[] linearTypes = new String[0]; String[] ordinalTypes = new String[0]; switch (dbType) { case "mysql": linearTypes = new String[]{STR, "INT", STR, STR, STR, STR, STR, STR, "FLOAT", STR}; ordinalTypes = new String[]{"CHAR", STR, STR, STR, "BLOB", "TEXT", "EN...
/** * Get metadata type(linear,ordinal,time) for the given data type of the data base. * * @param dbType String name of the database that the datatype belongs * @param dataType String data type name provided by the result set metadata * @return String metadata type */
Get metadata type(linear,ordinal,time) for the given data type of the data base
getMetadataTypes
{ "repo_name": "grainier/carbon-analytics-common", "path": "components/org.wso2.carbon.analytics-common.data-provider/src/main/java/org/wso2/carbon/analytics/common/data/provider/internal/rdbms/RDBMSHelper.java", "license": "apache-2.0", "size": 3931 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,847,737
public void moveFromLocalFile(Path src, Path dst) throws IOException { copyFromLocalFile(true, src, dst); }
void function(Path src, Path dst) throws IOException { copyFromLocalFile(true, src, dst); }
/** * The src file is on the local disk. Add it to FS at * the given dst name, removing the source afterwards. */
The src file is on the local disk. Add it to FS at the given dst name, removing the source afterwards
moveFromLocalFile
{ "repo_name": "jayantgolhar/Hadoop-0.21.0", "path": "common/src/java/org/apache/hadoop/fs/FileSystem.java", "license": "apache-2.0", "size": 67991 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,647,110
public void resolveFunctionPointers() { // 1.Step: get all function calls final FunctionPointerCallCollector visitor = new FunctionPointerCallCollector(); for (FunctionEntryNode functionStartNode : cfa.getAllFunctionHeads()) { CFATraversal.dfs().traverseOnce(functionStartNode, visitor); } ...
void function() { final FunctionPointerCallCollector visitor = new FunctionPointerCallCollector(); for (FunctionEntryNode functionStartNode : cfa.getAllFunctionHeads()) { CFATraversal.dfs().traverseOnce(functionStartNode, visitor); } for (final CStatementEdge edge : visitor.functionPointerCalls) { replaceFunctionPointe...
/** * This method traverses the whole CFA, * potentially replacing function pointer calls with regular function calls. */
This method traverses the whole CFA, potentially replacing function pointer calls with regular function calls
resolveFunctionPointers
{ "repo_name": "nishanttotla/predator", "path": "cpachecker/src/org/sosy_lab/cpachecker/cfa/postprocessing/function/CFunctionPointerResolver.java", "license": "gpl-3.0", "size": 23872 }
[ "java.util.ArrayList", "java.util.List", "org.sosy_lab.cpachecker.cfa.ast.c.CFunctionCall", "org.sosy_lab.cpachecker.cfa.model.FunctionEntryNode", "org.sosy_lab.cpachecker.cfa.model.c.CStatementEdge", "org.sosy_lab.cpachecker.util.CFATraversal" ]
import java.util.ArrayList; import java.util.List; import org.sosy_lab.cpachecker.cfa.ast.c.CFunctionCall; import org.sosy_lab.cpachecker.cfa.model.FunctionEntryNode; import org.sosy_lab.cpachecker.cfa.model.c.CStatementEdge; import org.sosy_lab.cpachecker.util.CFATraversal;
import java.util.*; import org.sosy_lab.cpachecker.cfa.ast.c.*; import org.sosy_lab.cpachecker.cfa.model.*; import org.sosy_lab.cpachecker.cfa.model.c.*; import org.sosy_lab.cpachecker.util.*;
[ "java.util", "org.sosy_lab.cpachecker" ]
java.util; org.sosy_lab.cpachecker;
2,870,394
@SuppressWarnings("rawtypes") public int createList() { lists.add(new ArrayList<Comparable>()); return lists.size() - 1; }
@SuppressWarnings(STR) int function() { lists.add(new ArrayList<Comparable>()); return lists.size() - 1; }
/** * Creates and stores a list, returns with the id. * * @return The ID of the list. */
Creates and stores a list, returns with the id
createList
{ "repo_name": "WangTaoTheTonic/flink", "path": "flink-tests/src/test/java/org/apache/flink/test/streaming/runtime/util/TestListWrapper.java", "license": "apache-2.0", "size": 1830 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
159,027
@Test public void testBuilderPutAllMapEmpty() { final InstantObjectTimeSeriesBuilder<Float> bld = ImmutableInstantObjectTimeSeries.builder(); final Map<Instant, Float> map = new HashMap<>(); bld.put(Instant.ofEpochSecond(0), 0.5f).putAll(map); final Instant[] outDates = new Instant[] {Instant.ofEpoc...
void function() { final InstantObjectTimeSeriesBuilder<Float> bld = ImmutableInstantObjectTimeSeries.builder(); final Map<Instant, Float> map = new HashMap<>(); bld.put(Instant.ofEpochSecond(0), 0.5f).putAll(map); final Instant[] outDates = new Instant[] {Instant.ofEpochSecond(0)}; final Float[] outValues = new Float[]...
/** * Tests the putAll method of the builder. */
Tests the putAll method of the builder
testBuilderPutAllMapEmpty
{ "repo_name": "McLeodMoores/starling", "path": "projects/time-series/src/test/java/com/opengamma/timeseries/precise/instant/ImmutableInstantObjectTimeSeriesTest.java", "license": "apache-2.0", "size": 51790 }
[ "java.util.HashMap", "java.util.Map", "org.testng.Assert", "org.threeten.bp.Instant" ]
import java.util.HashMap; import java.util.Map; import org.testng.Assert; import org.threeten.bp.Instant;
import java.util.*; import org.testng.*; import org.threeten.bp.*;
[ "java.util", "org.testng", "org.threeten.bp" ]
java.util; org.testng; org.threeten.bp;
42,363
@Test public void testParseLayers() throws XMLStreamException { List<Layer> layers = adapter.parseLayers(); assertEquals( 1, layers.size() ); }
void function() throws XMLStreamException { List<Layer> layers = adapter.parseLayers(); assertEquals( 1, layers.size() ); }
/** * Test method for {@link org.deegree.protocol.wmts.client.WMTSCapabilitiesAdapter#parseLayers()}. */
Test method for <code>org.deegree.protocol.wmts.client.WMTSCapabilitiesAdapter#parseLayers()</code>
testParseLayers
{ "repo_name": "deegree/deegree3", "path": "deegree-core/deegree-core-protocol/deegree-protocol-wmts/src/test/java/org/deegree/protocol/wmts/client/WMTSCapabilitiesAdapterTest.java", "license": "lgpl-2.1", "size": 7822 }
[ "java.util.List", "javax.xml.stream.XMLStreamException", "junit.framework.Assert" ]
import java.util.List; import javax.xml.stream.XMLStreamException; import junit.framework.Assert;
import java.util.*; import javax.xml.stream.*; import junit.framework.*;
[ "java.util", "javax.xml", "junit.framework" ]
java.util; javax.xml; junit.framework;
988,184
public void setFaultTo(EndpointReference faultTo) { this.faultTo = faultTo; }
void function(EndpointReference faultTo) { this.faultTo = faultTo; }
/** * Sets the fault to endpoint reference. * @param faultTo the faultTo to set */
Sets the fault to endpoint reference
setFaultTo
{ "repo_name": "hmmlopez/citrus", "path": "modules/citrus-ws/src/main/java/com/consol/citrus/ws/addressing/WsAddressingHeaders.java", "license": "apache-2.0", "size": 5868 }
[ "org.springframework.ws.soap.addressing.core.EndpointReference" ]
import org.springframework.ws.soap.addressing.core.EndpointReference;
import org.springframework.ws.soap.addressing.core.*;
[ "org.springframework.ws" ]
org.springframework.ws;
862,991
protected VdcReturnValueBase createReturnValue() { return new VdcReturnValueBase(); }
VdcReturnValueBase function() { return new VdcReturnValueBase(); }
/** * Factory to determine the type of the ReturnValue field */
Factory to determine the type of the ReturnValue field
createReturnValue
{ "repo_name": "walteryang47/ovirt-engine", "path": "backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/CommandBase.java", "license": "apache-2.0", "size": 103472 }
[ "org.ovirt.engine.core.common.action.VdcReturnValueBase" ]
import org.ovirt.engine.core.common.action.VdcReturnValueBase;
import org.ovirt.engine.core.common.action.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
2,904,054
public Response processResponse(Command cmd, Response inResponse, String[] args) { String responseXml = (String)inResponse.getObject(); if(!ActionCommon.isRawResponseOK(responseXml)){ // There was an error in the comms. inResponse.setPassed(false); inRes...
Response function(Command cmd, Response inResponse, String[] args) { String responseXml = (String)inResponse.getObject(); if(!ActionCommon.isRawResponseOK(responseXml)){ inResponse.setPassed(false); inResponse.setRespMessage(ProtocolConstants.MESSAGE_FAIL_HTTP_CONNECTION); } else { Document dom = DocumentHelper.createD...
/** * Analyses the response contents, taking different actions based on them, * and transforming the response itself accordingly, so it can be passed * to the layer above. */
Analyses the response contents, taking different actions based on them, and transforming the response itself accordingly, so it can be passed to the layer above
processResponse
{ "repo_name": "debabratahazra/DS", "path": "designstudio/components/basic/ui/com.odcgroup.basic.ui/src/main/java/com/temenos/t24/tools/eclipse/basic/protocols/actions/ActionSignOff.java", "license": "epl-1.0", "size": 4106 }
[ "com.temenos.t24.tools.eclipse.basic.protocols.Command", "com.temenos.t24.tools.eclipse.basic.protocols.ProtocolConstants", "com.temenos.t24.tools.eclipse.basic.protocols.Response", "com.temenos.t24.tools.eclipse.basic.utils.XmlUtil", "org.dom4j.Document", "org.dom4j.DocumentHelper", "org.dom4j.Element"...
import com.temenos.t24.tools.eclipse.basic.protocols.Command; import com.temenos.t24.tools.eclipse.basic.protocols.ProtocolConstants; import com.temenos.t24.tools.eclipse.basic.protocols.Response; import com.temenos.t24.tools.eclipse.basic.utils.XmlUtil; import org.dom4j.Document; import org.dom4j.DocumentHelper; impor...
import com.temenos.t24.tools.eclipse.basic.protocols.*; import com.temenos.t24.tools.eclipse.basic.utils.*; import org.dom4j.*;
[ "com.temenos.t24", "org.dom4j" ]
com.temenos.t24; org.dom4j;
2,520,900
public List<Exclusion> getExclusions() { return this.exclusions; }
List<Exclusion> function() { return this.exclusions; }
/** * Return the dependency exclusions. * @return the exclusions */
Return the dependency exclusions
getExclusions
{ "repo_name": "kdvolder/spring-boot", "path": "spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/compiler/dependencies/Dependency.java", "license": "apache-2.0", "size": 4800 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
657,698
public static MozuClient<com.mozu.api.contracts.commerceruntime.fulfillment.Package> getPackageClient(String returnId, String packageId) throws Exception { return getPackageClient( returnId, packageId, null); }
static MozuClient<com.mozu.api.contracts.commerceruntime.fulfillment.Package> function(String returnId, String packageId) throws Exception { return getPackageClient( returnId, packageId, null); }
/** * Retrieves the details of a package of return replacement items. * <p><pre><code> * MozuClient<com.mozu.api.contracts.commerceruntime.fulfillment.Package> mozuClient=GetPackageClient( returnId, packageId); * client.setBaseAddress(url); * client.executeRequest(); * Package package = client.Result(); ...
Retrieves the details of a package of return replacement items. <code><code> MozuClient mozuClient=GetPackageClient( returnId, packageId); client.setBaseAddress(url); client.executeRequest(); Package package = client.Result(); </code></code>
getPackageClient
{ "repo_name": "lakshmi-nair/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/returns/PackageClient.java", "license": "mit", "size": 10491 }
[ "com.mozu.api.MozuClient" ]
import com.mozu.api.MozuClient;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
1,642,495
public String getCanonicalKeyPropertyListString() { StringBuilder builder = new StringBuilder(); Iterator i = properties.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry) i.next(); builder.append(entry.getKey() + "=" + entry.getValue()); if (i.hasNext()) builder.appe...
String function() { StringBuilder builder = new StringBuilder(); Iterator i = properties.entrySet().iterator(); while (i.hasNext()) { Map.Entry entry = (Map.Entry) i.next(); builder.append(entry.getKey() + "=" + entry.getValue()); if (i.hasNext()) builder.append(","); } return builder.toString(); }
/** * Returns the property list in canonical form. The keys * are ordered using the lexicographic ordering used by * {@link java.lang.String#compareTo(java.lang.Object)}. * * @return the property list, with the keys in lexicographic * order. */
Returns the property list in canonical form. The keys are ordered using the lexicographic ordering used by <code>java.lang.String#compareTo(java.lang.Object)</code>
getCanonicalKeyPropertyListString
{ "repo_name": "rhuitl/uClinux", "path": "lib/classpath/javax/management/ObjectName.java", "license": "gpl-2.0", "size": 31655 }
[ "java.util.Iterator", "java.util.Map" ]
import java.util.Iterator; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,344,357
public static void fireDeleted(Run r) { for (RunListener l : all()) { if(l.targetType.isInstance(r)) try { l.onDeleted(r); } catch (Throwable e) { report(e); } } }
static void function(Run r) { for (RunListener l : all()) { if(l.targetType.isInstance(r)) try { l.onDeleted(r); } catch (Throwable e) { report(e); } } }
/** * Fires the {@link #onDeleted} event. */
Fires the <code>#onDeleted</code> event
fireDeleted
{ "repo_name": "samatdav/jenkins", "path": "core/src/main/java/hudson/model/listeners/RunListener.java", "license": "mit", "size": 9531 }
[ "hudson.model.Run" ]
import hudson.model.Run;
import hudson.model.*;
[ "hudson.model" ]
hudson.model;
2,360,544
@Test public void shouldReturnCoarseHeadingMax() throws JsonProcessingException, IOException{ ObjectMapper mapper = new ObjectMapper(); BigDecimal expectedValue = BigDecimal.valueOf(358.5); JsonNode testHeading = mapper.readTree("239"); BigDecimal actualValue = HeadingBuilder....
void function() throws JsonProcessingException, IOException{ ObjectMapper mapper = new ObjectMapper(); BigDecimal expectedValue = BigDecimal.valueOf(358.5); JsonNode testHeading = mapper.readTree("239"); BigDecimal actualValue = HeadingBuilder.genericCoarseHeading(testHeading); assertEquals(expectedValue, actualValue);...
/** * Test that maximum coarse heading (239) returns correct heading angle (358.5) */
Test that maximum coarse heading (239) returns correct heading angle (358.5)
shouldReturnCoarseHeadingMax
{ "repo_name": "hmusavi/jpo-ode", "path": "jpo-ode-plugins/src/test/java/us/dot/its/jpo/ode/plugin/j2735/builders/HeadingBuilderTest.java", "license": "apache-2.0", "size": 3984 }
[ "com.fasterxml.jackson.core.JsonProcessingException", "com.fasterxml.jackson.databind.JsonNode", "com.fasterxml.jackson.databind.ObjectMapper", "java.io.IOException", "java.math.BigDecimal", "org.junit.Assert" ]
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import java.math.BigDecimal; import org.junit.Assert;
import com.fasterxml.jackson.core.*; import com.fasterxml.jackson.databind.*; import java.io.*; import java.math.*; import org.junit.*;
[ "com.fasterxml.jackson", "java.io", "java.math", "org.junit" ]
com.fasterxml.jackson; java.io; java.math; org.junit;
1,583,747
private void resizeControlPanel() { ProjectSettingsOJ.getInstance().setTitle(OJ.getData().getName() + ".ojj"); ((CardLayout) pnlSettings.getLayout()).show(pnlSettings, selectedPanelKey); Dimension dim = ((IControlPanelOJ) settingsPanels.get(selectedPanelKey)).getPanelSize(); pnlSetti...
void function() { ProjectSettingsOJ.getInstance().setTitle(OJ.getData().getName() + ".ojj"); ((CardLayout) pnlSettings.getLayout()).show(pnlSettings, selectedPanelKey); Dimension dim = ((IControlPanelOJ) settingsPanels.get(selectedPanelKey)).getPanelSize(); pnlSettings.setPreferredSize(dim); pnlSettings.setSize(dim); P...
/** * each of the four panels uses different size */
each of the four panels uses different size
resizeControlPanel
{ "repo_name": "norbertvischer/ObjectJ", "path": "src/oj/gui/settings/ProjectSettingsOJ.java", "license": "mit", "size": 19507 }
[ "java.awt.CardLayout", "java.awt.Dimension" ]
import java.awt.CardLayout; import java.awt.Dimension;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,147,279
@Step List<ICell> cellsMatch(String regex);
List<ICell> cellsMatch(String regex);
/** * Get all Cells with values matches to searched regex */
Get all Cells with values matches to searched regex
cellsMatch
{ "repo_name": "FunCat/JDI", "path": "Java/JDI/jdi-uitest-core/src/main/java/com/epam/jdi/uitests/core/interfaces/complex/tables/ITable.java", "license": "gpl-3.0", "size": 10499 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,174,191
public static Point getPointByPoint2D(Point2D.Double pointB) { Coordinate point = new Coordinate(pointB.x, pointB.y); return geoFactory.createPoint(point); }
static Point function(Point2D.Double pointB) { Coordinate point = new Coordinate(pointB.x, pointB.y); return geoFactory.createPoint(point); }
/** * Converting point objects to point objects in Geo * @param pointB Point2D Point object * @return JTS Point object */
Converting point objects to point objects in Geo
getPointByPoint2D
{ "repo_name": "jackylk/incubator-carbondata", "path": "geo/src/main/java/org/apache/carbondata/geo/QuadTreeCls.java", "license": "apache-2.0", "size": 31316 }
[ "java.awt.geom.Point2D", "org.locationtech.jts.geom.Coordinate", "org.locationtech.jts.geom.Point" ]
import java.awt.geom.Point2D; import org.locationtech.jts.geom.Coordinate; import org.locationtech.jts.geom.Point;
import java.awt.geom.*; import org.locationtech.jts.geom.*;
[ "java.awt", "org.locationtech.jts" ]
java.awt; org.locationtech.jts;
530,611
private boolean sendStartupMessage(StartupOperation startupOperation) throws InterruptedException { if (Thread.interrupted()) throw new InterruptedException(); receivedStartupResponse = false; boolean ok; // Be sure to add ourself to the equivalencies list! Set<InetAddress> equivs = S...
boolean function(StartupOperation startupOperation) throws InterruptedException { if (Thread.interrupted()) throw new InterruptedException(); receivedStartupResponse = false; boolean ok; Set<InetAddress> equivs = StartupMessage.getMyAddresses(this); if (equivs == null equivs.size() == 0) { equivs = new HashSet<>(); try...
/** * Sends a startup message and waits for a response. Returns true if response received; false if * it timed out or there are no peers. */
Sends a startup message and waits for a response. Returns true if response received; false if it timed out or there are no peers
sendStartupMessage
{ "repo_name": "davebarnes97/geode", "path": "geode-core/src/main/java/org/apache/geode/distributed/internal/ClusterDistributionManager.java", "license": "apache-2.0", "size": 93878 }
[ "java.net.InetAddress", "java.net.UnknownHostException", "java.util.HashSet", "java.util.Set", "org.apache.geode.SystemConnectException", "org.apache.geode.distributed.internal.membership.InternalDistributedMember", "org.apache.geode.internal.inet.LocalHostUtil" ]
import java.net.InetAddress; import java.net.UnknownHostException; import java.util.HashSet; import java.util.Set; import org.apache.geode.SystemConnectException; import org.apache.geode.distributed.internal.membership.InternalDistributedMember; import org.apache.geode.internal.inet.LocalHostUtil;
import java.net.*; import java.util.*; import org.apache.geode.*; import org.apache.geode.distributed.internal.membership.*; import org.apache.geode.internal.inet.*;
[ "java.net", "java.util", "org.apache.geode" ]
java.net; java.util; org.apache.geode;
2,724,660
public boolean intersects(Rectangle2D r) { return intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
boolean function(Rectangle2D r) { return intersects(r.getX(), r.getY(), r.getWidth(), r.getHeight()); }
/** * Test if a high-precision rectangle intersects the shape. This is true * if any point in the rectangle is in the shape. This implementation is * precise. * * @param r the rectangle * @return true if the rectangle intersects this shape * @throws NullPointerException if r is null * @see #inte...
Test if a high-precision rectangle intersects the shape. This is true if any point in the rectangle is in the shape. This implementation is precise
intersects
{ "repo_name": "shaotuanchen/sunflower_exp", "path": "tools/source/gcc-4.2.4/libjava/classpath/java/awt/Polygon.java", "license": "bsd-3-clause", "size": 17464 }
[ "java.awt.geom.Rectangle2D" ]
import java.awt.geom.Rectangle2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
2,484,624
public AnjoPermissionsHandler getWorldPermissionsByPlayerName(String playerName) { WorldDataHolder dh = getWorldDataByPlayerName(playerName); if (dh != null) { return dh.getPermissionsHandler(); } return null; }
AnjoPermissionsHandler function(String playerName) { WorldDataHolder dh = getWorldDataByPlayerName(playerName); if (dh != null) { return dh.getPermissionsHandler(); } return null; }
/** * Id does getWorldDataByPlayerName(playerName). * If it doesnt return null, it will return result.getPermissionsHandler() * @param playerName * @return null if the player matching gone wrong. */
Id does getWorldDataByPlayerName(playerName). If it doesnt return null, it will return result.getPermissionsHandler()
getWorldPermissionsByPlayerName
{ "repo_name": "AkintudnesServer/essentials", "path": "EssentialsGroupManager/src/org/anjocaido/groupmanager/dataholder/worlds/WorldsHolder.java", "license": "gpl-3.0", "size": 15090 }
[ "org.anjocaido.groupmanager.dataholder.WorldDataHolder", "org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler" ]
import org.anjocaido.groupmanager.dataholder.WorldDataHolder; import org.anjocaido.groupmanager.permissions.AnjoPermissionsHandler;
import org.anjocaido.groupmanager.dataholder.*; import org.anjocaido.groupmanager.permissions.*;
[ "org.anjocaido.groupmanager" ]
org.anjocaido.groupmanager;
1,456,544
protected void createContextMenuFor(StructuredViewer viewer) { MenuManager contextMenu = new MenuManager("#PopUp"); contextMenu.add(new Separator("additions")); contextMenu.setRemoveAllWhenShown(true); contextMenu.addMenuListener(this); Menu menu= contextMenu.createContextMenu(viewer.getControl()); viewe...
void function(StructuredViewer viewer) { MenuManager contextMenu = new MenuManager(STR); contextMenu.add(new Separator(STR)); contextMenu.setRemoveAllWhenShown(true); contextMenu.addMenuListener(this); Menu menu= contextMenu.createContextMenu(viewer.getControl()); viewer.getControl().setMenu(menu); getSite().registerCo...
/** * This creates a context menu for the viewer and adds a listener as well registering the menu for extension. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This creates a context menu for the viewer and adds a listener as well registering the menu for extension.
createContextMenuFor
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.editor/src/net/opengis/citygml/building/presentation/BuildingEditor.java", "license": "apache-2.0", "size": 56379 }
[ "org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter", "org.eclipse.emf.edit.ui.dnd.LocalTransfer", "org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter", "org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider", "org.eclipse.jface.action.MenuManager", "org.eclipse.jface.action.Separator", "org.e...
import org.eclipse.emf.edit.ui.dnd.EditingDomainViewerDropAdapter; import org.eclipse.emf.edit.ui.dnd.LocalTransfer; import org.eclipse.emf.edit.ui.dnd.ViewerDragAdapter; import org.eclipse.emf.edit.ui.provider.UnwrappingSelectionProvider; import org.eclipse.jface.action.MenuManager; import org.eclipse.jface.action.Sep...
import org.eclipse.emf.edit.ui.dnd.*; import org.eclipse.emf.edit.ui.provider.*; import org.eclipse.jface.action.*; import org.eclipse.jface.viewers.*; import org.eclipse.swt.dnd.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.emf", "org.eclipse.jface", "org.eclipse.swt" ]
org.eclipse.emf; org.eclipse.jface; org.eclipse.swt;
382,391
@VisibleForTesting public void invalidateConfigurationCollection() { invalidate(SkyFunctionName.functionIsIn(ImmutableSet.of(SkyFunctions.CONFIGURATION_FRAGMENT, SkyFunctions.CONFIGURATION_COLLECTION))); }
void function() { invalidate(SkyFunctionName.functionIsIn(ImmutableSet.of(SkyFunctions.CONFIGURATION_FRAGMENT, SkyFunctions.CONFIGURATION_COLLECTION))); }
/** * Removes ConfigurationFragmentValuess and ConfigurationCollectionValues from the cache. */
Removes ConfigurationFragmentValuess and ConfigurationCollectionValues from the cache
invalidateConfigurationCollection
{ "repo_name": "Asana/bazel", "path": "src/main/java/com/google/devtools/build/lib/skyframe/SkyframeExecutor.java", "license": "apache-2.0", "size": 88381 }
[ "com.google.common.collect.ImmutableSet", "com.google.devtools.build.skyframe.SkyFunctionName" ]
import com.google.common.collect.ImmutableSet; import com.google.devtools.build.skyframe.SkyFunctionName;
import com.google.common.collect.*; import com.google.devtools.build.skyframe.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
1,153,909
InputStream getEntryInputStream() throws IOException;
InputStream getEntryInputStream() throws IOException;
/** * Obtains the input stream for the current entry. * * @return The input stream * @throws IOException If the stream cannot be obtained */
Obtains the input stream for the current entry
getEntryInputStream
{ "repo_name": "wenzhucjy/tomcat_source", "path": "tomcat-8.0.9-sourcecode/java/org/apache/tomcat/util/scan/Jar.java", "license": "apache-2.0", "size": 4294 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,867,382
public ApiResponse<Void> backupSetQueueSizeWithHttpInfo(String id, Long size) throws ApiException { Object localVarPostBody = size; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling backupSetQueueSize"); ...
ApiResponse<Void> function(String id, Long size) throws ApiException { Object localVarPostBody = size; if (id == null) { throw new ApiException(400, STR); } if (size == null) { throw new ApiException(400, STR); } String localVarPath = STR .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); List<Pa...
/** * Update the client with the current queue size * * @param id The client to update (required) * @param size The queue size in bytes (required) * @throws ApiException if fails to make API call */
Update the client with the current queue size
backupSetQueueSizeWithHttpInfo
{ "repo_name": "iterate-ch/cyberduck", "path": "storegate/src/main/java/ch/cyberduck/core/storegate/io/swagger/client/api/BackupApi.java", "license": "gpl-3.0", "size": 16209 }
[ "ch.cyberduck.core.storegate.io.swagger.client.ApiException", "ch.cyberduck.core.storegate.io.swagger.client.ApiResponse", "ch.cyberduck.core.storegate.io.swagger.client.Pair", "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map" ]
import ch.cyberduck.core.storegate.io.swagger.client.ApiException; import ch.cyberduck.core.storegate.io.swagger.client.ApiResponse; import ch.cyberduck.core.storegate.io.swagger.client.Pair; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;
import ch.cyberduck.core.storegate.io.swagger.client.*; import java.util.*;
[ "ch.cyberduck.core", "java.util" ]
ch.cyberduck.core; java.util;
2,380,935
default SshEndpointConsumerBuilder scheduledExecutorService( ScheduledExecutorService scheduledExecutorService) { doSetProperty("scheduledExecutorService", scheduledExecutorService); return this; }
default SshEndpointConsumerBuilder scheduledExecutorService( ScheduledExecutorService scheduledExecutorService) { doSetProperty(STR, scheduledExecutorService); return this; }
/** * Allows for configuring a custom/shared thread pool to use for the * consumer. By default each consumer has its own single threaded thread * pool. * * The option is a: * <code>java.util.concurrent.ScheduledExecutorService</code> type. * * Gr...
Allows for configuring a custom/shared thread pool to use for the consumer. By default each consumer has its own single threaded thread pool. The option is a: <code>java.util.concurrent.ScheduledExecutorService</code> type. Group: scheduler
scheduledExecutorService
{ "repo_name": "adessaigne/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/SshEndpointBuilderFactory.java", "license": "apache-2.0", "size": 58280 }
[ "java.util.concurrent.ScheduledExecutorService" ]
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,932,430