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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
public boolean transferBalance(final BufferLedger target) {
Preconditions.checkNotNull(target);
Preconditions.checkArgument(allocator.root == target.allocator.root,
"You can only transfer between two allocators that share the same root.");
allocator.assertOpen();
target.allocator.... | boolean function(final BufferLedger target) { Preconditions.checkNotNull(target); Preconditions.checkArgument(allocator.root == target.allocator.root, STR); allocator.assertOpen(); target.allocator.assertOpen(); if (target == this) { return true; } try (AutoCloseableLock write = writeLock.open()) { if (owningLedger != ... | /**
* Transfer any balance the current ledger has to the target ledger. In the case that the
* current ledger holds no
* memory, no transfer is made to the new ledger.
*
* @param target The ledger to transfer ownership account to.
* @return Whether transfer fit within target ledgers limits... | Transfer any balance the current ledger has to the target ledger. In the case that the current ledger holds no memory, no transfer is made to the new ledger | transferBalance | {
"repo_name": "jeffknupp/arrow",
"path": "java/memory/src/main/java/org/apache/arrow/memory/AllocationManager.java",
"license": "apache-2.0",
"size": 16346
} | [
"com.google.common.base.Preconditions",
"org.apache.arrow.memory.util.AutoCloseableLock"
] | import com.google.common.base.Preconditions; import org.apache.arrow.memory.util.AutoCloseableLock; | import com.google.common.base.*; import org.apache.arrow.memory.util.*; | [
"com.google.common",
"org.apache.arrow"
] | com.google.common; org.apache.arrow; | 46,948 |
public boolean hideOverflowMenu() {
if (mPostedOpenRunnable != null && mMenuView != null) {
((View) mMenuView).removeCallbacks(mPostedOpenRunnable);
mPostedOpenRunnable = null;
return true;
}
MenuPopupHelper popup = mOverflowPopup;
if (popup != nu... | boolean function() { if (mPostedOpenRunnable != null && mMenuView != null) { ((View) mMenuView).removeCallbacks(mPostedOpenRunnable); mPostedOpenRunnable = null; return true; } MenuPopupHelper popup = mOverflowPopup; if (popup != null) { popup.dismiss(); return true; } return false; } | /**
* Hide the overflow menu if it is currently showing.
*
* @return true if the overflow menu was hidden, false otherwise.
*/ | Hide the overflow menu if it is currently showing | hideOverflowMenu | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "frameworks/base/core/java/com/android/internal/view/menu/ActionMenuPresenter.java",
"license": "gpl-2.0",
"size": 24262
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 92,240 |
@Test
@SmallTest
@Feature({"Homepage"})
public void testProviderNotFromSystemPackage() throws InterruptedException {
TestThreadUtils.runOnUiThreadBlocking(() -> {
mHomepageManager.setPrefHomepageEnabled(true);
mHomepageManager.setHomepagePreferences(false, true, TEST_CUST... | @Feature({STR}) void function() throws InterruptedException { TestThreadUtils.runOnUiThreadBlocking(() -> { mHomepageManager.setPrefHomepageEnabled(true); mHomepageManager.setHomepagePreferences(false, true, TEST_CUSTOM_HOMEPAGE_URI); }); PartnerBrowserCustomizations.ignoreBrowserProviderSystemPackageCheckForTests(fals... | /**
* Everything is enabled for using partner homepage, except that there is no flag file.
*/ | Everything is enabled for using partner homepage, except that there is no flag file | testProviderNotFromSystemPackage | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/chrome/android/javatests/src/org/chromium/chrome/browser/partnercustomizations/PartnerHomepageUnitTest.java",
"license": "bsd-3-clause",
"size": 14817
} | [
"org.chromium.base.test.util.Feature",
"org.chromium.content_public.browser.test.util.TestThreadUtils",
"org.junit.Assert"
] | import org.chromium.base.test.util.Feature; import org.chromium.content_public.browser.test.util.TestThreadUtils; import org.junit.Assert; | import org.chromium.base.test.util.*; import org.chromium.content_public.browser.test.util.*; import org.junit.*; | [
"org.chromium.base",
"org.chromium.content_public",
"org.junit"
] | org.chromium.base; org.chromium.content_public; org.junit; | 1,758,844 |
// Build the proxy service
SynapseConfiguration synCfg = new SynapseConfiguration();
AxisConfiguration axisCfg = new AxisConfiguration();
ProxyService proxyService = new ProxyService("Test");
AxisService axisService = proxyService.buildAxisService(synCfg, axisCfg);
// Serialize t... | SynapseConfiguration synCfg = new SynapseConfiguration(); AxisConfiguration axisCfg = new AxisConfiguration(); ProxyService proxyService = new ProxyService("Test"); AxisService axisService = proxyService.buildAxisService(synCfg, axisCfg); ByteArrayOutputStream baos = new ByteArrayOutputStream(); axisService.printWSDL(b... | /**
* Test that a proxy service without publishWSDL will produce a meaningful WSDL.
* This is a regression test for SYNAPSE-366.
*/ | Test that a proxy service without publishWSDL will produce a meaningful WSDL. This is a regression test for SYNAPSE-366 | testWSDLWithoutPublishWSDL | {
"repo_name": "maheshika/wso2-synapse",
"path": "modules/core/src/test/java/org/apache/synapse/core/axis2/ProxyServiceTest.java",
"license": "apache-2.0",
"size": 4679
} | [
"java.io.ByteArrayInputStream",
"java.io.ByteArrayOutputStream",
"javax.wsdl.factory.WSDLFactory",
"javax.wsdl.xml.WSDLReader",
"org.apache.axis2.description.AxisService",
"org.apache.axis2.engine.AxisConfiguration",
"org.apache.synapse.config.SynapseConfiguration",
"org.xml.sax.InputSource"
] | import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import javax.wsdl.factory.WSDLFactory; import javax.wsdl.xml.WSDLReader; import org.apache.axis2.description.AxisService; import org.apache.axis2.engine.AxisConfiguration; import org.apache.synapse.config.SynapseConfiguration; import org.xml.sax... | import java.io.*; import javax.wsdl.factory.*; import javax.wsdl.xml.*; import org.apache.axis2.description.*; import org.apache.axis2.engine.*; import org.apache.synapse.config.*; import org.xml.sax.*; | [
"java.io",
"javax.wsdl",
"org.apache.axis2",
"org.apache.synapse",
"org.xml.sax"
] | java.io; javax.wsdl; org.apache.axis2; org.apache.synapse; org.xml.sax; | 2,749,748 |
void unregister(Monitor<?> monitor); | void unregister(Monitor<?> monitor); | /**
* Unregister a Monitor from the registry.
*/ | Unregister a Monitor from the registry | unregister | {
"repo_name": "Netflix/servo",
"path": "servo-core/src/main/java/com/netflix/servo/MonitorRegistry.java",
"license": "apache-2.0",
"size": 1263
} | [
"com.netflix.servo.monitor.Monitor"
] | import com.netflix.servo.monitor.Monitor; | import com.netflix.servo.monitor.*; | [
"com.netflix.servo"
] | com.netflix.servo; | 1,277,205 |
public static Bitmap combineBitmapsVertically(Bitmap...bitmaps)
{
int width = 0;
int height = 0;
for (int i = 0; i < bitmaps.length; i++)
{
width = Math.max(bitmaps[i].getWidth(), width);
height += bitmaps[i].getHeight();
}
... | static Bitmap function(Bitmap...bitmaps) { int width = 0; int height = 0; for (int i = 0; i < bitmaps.length; i++) { width = Math.max(bitmaps[i].getWidth(), width); height += bitmaps[i].getHeight(); } Bitmap bitmap = Bitmap.createBitmap(width, height, Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); Paint ... | /**
* Combine the given bitmaps vertically
*
* @param bitmaps
* @return the combined bitmap
*/ | Combine the given bitmaps vertically | combineBitmapsVertically | {
"repo_name": "TianziHou/tzPalette",
"path": "src/com/tzapps/common/utils/BitmapUtils.java",
"license": "apache-2.0",
"size": 12300
} | [
"android.graphics.Bitmap",
"android.graphics.Canvas",
"android.graphics.Paint"
] | import android.graphics.Bitmap; import android.graphics.Canvas; import android.graphics.Paint; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 2,442,194 |
protected void sendNoPayLoad(byte command) {
if (verbose) {
log.debug("Sending command 0x%02x\n", command & 0xFF);
}
dataOut[0] = SYNC_BYTE0;
dataOut[1] = command;
try {
out.write(dataOut, 0, 2);
out.flush();
} catch (IOException e) {
log.error(e.getLocalizedMessage());
//TODO Think in a... | void function(byte command) { if (verbose) { log.debug(STR, command & 0xFF); } dataOut[0] = SYNC_BYTE0; dataOut[1] = command; try { out.write(dataOut, 0, 2); out.flush(); } catch (IOException e) { log.error(e.getLocalizedMessage()); e.printStackTrace(); } } | /**
* Sends a command with no data payload
*/ | Sends a command with no data payload | sendNoPayLoad | {
"repo_name": "ev3dev-lang-java/RPLidar4J",
"path": "src/main/java/ev3dev/sensors/slamtec/service/RpLidarLowLevelDriver.java",
"license": "mit",
"size": 11523
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 902,501 |
public synchronized void connected(BluetoothSocket socket, BluetoothDevice device) {
if (D) Log.d(TAG, "connected");
// Cancel the thread that completed the connection
if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;}
// Cancel any thread currently runni... | synchronized void function(BluetoothSocket socket, BluetoothDevice device) { if (D) Log.d(TAG, STR); if (mConnectThread != null) {mConnectThread.cancel(); mConnectThread = null;} if (mConnectedThread != null) {mConnectedThread.cancel(); mConnectedThread = null;} mConnectedThread = new ConnectedThread(socket); mConnecte... | /**
* Start the ConnectedThread to begin managing a Bluetooth connection
* @param socket The BluetoothSocket on which the connection was made
* @param device The BluetoothDevice that has been connected
*/ | Start the ConnectedThread to begin managing a Bluetooth connection | connected | {
"repo_name": "bbatliner/phone-mouse-android",
"path": "app/src/main/java/beest/phonemouse/BluetoothMouseService.java",
"license": "mit",
"size": 13004
} | [
"android.bluetooth.BluetoothDevice",
"android.bluetooth.BluetoothSocket",
"android.os.Bundle",
"android.os.Message",
"android.util.Log"
] | import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.os.Bundle; import android.os.Message; import android.util.Log; | import android.bluetooth.*; import android.os.*; import android.util.*; | [
"android.bluetooth",
"android.os",
"android.util"
] | android.bluetooth; android.os; android.util; | 2,272,727 |
public void setLogWriter(PrintWriter logWriter) {
this.logWriter = logWriter;
} | void function(PrintWriter logWriter) { this.logWriter = logWriter; } | /**
* Setter for logWriter property
*
* @param logWriter - the new value of the logWriter property
*/ | Setter for logWriter property | setLogWriter | {
"repo_name": "deadlock-library/official-samples",
"path": "coding_postgresql_rw/app/src/main/java/ScriptRunner.java",
"license": "gpl-3.0",
"size": 8470
} | [
"java.io.PrintWriter"
] | import java.io.PrintWriter; | import java.io.*; | [
"java.io"
] | java.io; | 2,387,506 |
protected void unsetRegistryService(RegistryService registryService) {
if (log.isDebugEnabled()) {
log.debug("RegistryService unset in Entitlement bundle");
}
EntitlementServiceComponent.registryService = null;
} | void function(RegistryService registryService) { if (log.isDebugEnabled()) { log.debug(STR); } EntitlementServiceComponent.registryService = null; } | /**
* un-sets registry service
*
* @param registryService <code>RegistryService</code>
*/ | un-sets registry service | unsetRegistryService | {
"repo_name": "johannnallathamby/carbon-identity",
"path": "components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/internal/EntitlementServiceComponent.java",
"license": "apache-2.0",
"size": 19462
} | [
"org.wso2.carbon.registry.core.service.RegistryService"
] | import org.wso2.carbon.registry.core.service.RegistryService; | import org.wso2.carbon.registry.core.service.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 2,861,808 |
public EncryptionScopeSource source() {
return this.innerEncryptionScopeProperties() == null ? null : this.innerEncryptionScopeProperties().source();
} | EncryptionScopeSource function() { return this.innerEncryptionScopeProperties() == null ? null : this.innerEncryptionScopeProperties().source(); } | /**
* Get the source property: The provider for the encryption scope. Possible values (case-insensitive):
* Microsoft.Storage, Microsoft.KeyVault.
*
* @return the source value.
*/ | Get the source property: The provider for the encryption scope. Possible values (case-insensitive): Microsoft.Storage, Microsoft.KeyVault | source | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/models/EncryptionScopeInner.java",
"license": "mit",
"size": 6831
} | [
"com.azure.resourcemanager.storage.models.EncryptionScopeSource"
] | import com.azure.resourcemanager.storage.models.EncryptionScopeSource; | import com.azure.resourcemanager.storage.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 2,282,005 |
protected void analyzeDtoSetterMethod(Method method, MethodModel methodModel) {
methodModel.setSetter(true);
// add the parameter
Type fieldType = method.getGenericParameterTypes()[0];
String fieldName = getSetterFieldName(method);
fieldAttributes.put(fieldName, fieldType);
... | void function(Method method, MethodModel methodModel) { methodModel.setSetter(true); Type fieldType = method.getGenericParameterTypes()[0]; String fieldName = getSetterFieldName(method); fieldAttributes.put(fieldName, fieldType); methodModel.setFieldName(fieldName); methodModel.setFieldType(convertType(fieldType)); } | /**
* Populate model from given reflect setter method
* @param method the method to analyze
* @param methodModel the model to update
*/ | Populate model from given reflect setter method | analyzeDtoSetterMethod | {
"repo_name": "Mirage20/che",
"path": "core/che-core-typescript-dto-maven-plugin/src/main/java/org/eclipse/che/plugin/typescript/dto/model/DtoModel.java",
"license": "epl-1.0",
"size": 6079
} | [
"java.lang.reflect.Method",
"java.lang.reflect.Type",
"org.eclipse.che.plugin.typescript.dto.DTOHelper"
] | import java.lang.reflect.Method; import java.lang.reflect.Type; import org.eclipse.che.plugin.typescript.dto.DTOHelper; | import java.lang.reflect.*; import org.eclipse.che.plugin.typescript.dto.*; | [
"java.lang",
"org.eclipse.che"
] | java.lang; org.eclipse.che; | 2,592,735 |
List<Ann> getAnnotations(); | List<Ann> getAnnotations(); | /**
* <p>Return the annotations found in this document (e.g. ParagraphAnn, tags, etc.).</p>
*/ | Return the annotations found in this document (e.g. ParagraphAnn, tags, etc.) | getAnnotations | {
"repo_name": "elaatifi/disko",
"path": "src/java/disko/TextDocument.java",
"license": "lgpl-2.1",
"size": 1628
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 987,003 |
public SearchSourceBuilder postFilter(QueryBuilder postFilter) {
this.postQueryBuilder = postFilter;
return this;
} | SearchSourceBuilder function(QueryBuilder postFilter) { this.postQueryBuilder = postFilter; return this; } | /**
* Sets a filter that will be executed after the query has been executed and
* only has affect on the search hits (not aggregations). This filter is
* always executed as last filtering mechanism.
*/ | Sets a filter that will be executed after the query has been executed and only has affect on the search hits (not aggregations). This filter is always executed as last filtering mechanism | postFilter | {
"repo_name": "LeoYao/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java",
"license": "apache-2.0",
"size": 58763
} | [
"org.elasticsearch.index.query.QueryBuilder"
] | import org.elasticsearch.index.query.QueryBuilder; | import org.elasticsearch.index.query.*; | [
"org.elasticsearch.index"
] | org.elasticsearch.index; | 377,665 |
public static <K, V> MapBuilder<K, V, Map<K, V>> createMap(final K key, final V value) {
return create((Map<K, V>) new HashMap<K, V>()).put(key, value);
} | static <K, V> MapBuilder<K, V, Map<K, V>> function(final K key, final V value) { return create((Map<K, V>) new HashMap<K, V>()).put(key, value); } | /**
* Create new map builder for HashMap and stores a new entry
*
* @param key
* the key of the new entry
* @param value
* the value of the new entry
* @param <K>
* key type
* @param <V>
* value type
* @return new map builder for HashMap
*/ | Create new map builder for HashMap and stores a new entry | createMap | {
"repo_name": "thexman/commons",
"path": "src/main/java/com/a9ski/utils/MapBuilder.java",
"license": "apache-2.0",
"size": 5783
} | [
"java.util.HashMap",
"java.util.Map"
] | import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,148,030 |
//@VisibleForTesting
boolean skipToNextPage(ExtractorInput input, long until)
throws IOException, InterruptedException {
until = Math.min(until + 3, endPosition);
byte[] buffer = new byte[2048];
int peekLength = buffer.length;
while (true) {
if (input.getPosition() + peekLength > until) ... | throws IOException, InterruptedException { until = Math.min(until + 3, endPosition); byte[] buffer = new byte[2048]; int peekLength = buffer.length; while (true) { if (input.getPosition() + peekLength > until) { peekLength = (int) (until - input.getPosition()); if (peekLength < 4) { return false; } } input.peekFully(bu... | /**
* Skips to the next page. Searches for the next page header.
*
* @param input The {@code ExtractorInput} to skip to the next page.
* @param until Searches until this position.
* @return true if the next page is found.
* @throws IOException thrown if peeking/reading from the input fails.
* @thro... | Skips to the next page. Searches for the next page header | skipToNextPage | {
"repo_name": "Blaez/ZiosGram",
"path": "TMessagesProj/src/main/java/org/telegram/messenger/exoplayer2/extractor/ogg/DefaultOggSeeker.java",
"license": "gpl-2.0",
"size": 12223
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 514,024 |
public static String throwableToMessage(Throwable t, String defaultMessage) {
if (t instanceof ServerAPIException) {
return ((ServerAPIException)t).toJson().toString();
}
String m = t.getMessage();
if (m == null) {
return defaultMessage;
}
return m;
} | static String function(Throwable t, String defaultMessage) { if (t instanceof ServerAPIException) { return ((ServerAPIException)t).toJson().toString(); } String m = t.getMessage(); if (m == null) { return defaultMessage; } return m; } | /**
* Get the given throwable's message or return a default one if it is
* <code>null</code>
* @param t the throwable's message
* @param defaultMessage the message to return if the one of the throwable
* is <code>null</code>
* @return the message
*/ | Get the given throwable's message or return a default one if it is <code>null</code> | throwableToMessage | {
"repo_name": "andrej-sajenko/georocket",
"path": "georocket-server/src/main/java/io/georocket/util/ThrowableHelper.java",
"license": "apache-2.0",
"size": 1569
} | [
"io.georocket.ServerAPIException"
] | import io.georocket.ServerAPIException; | import io.georocket.*; | [
"io.georocket"
] | io.georocket; | 1,092,011 |
public ELEvaluator getELEvaluator(); | ELEvaluator function(); | /**
* Return an ELEvaluator with the context injected.
*
* @return configured ELEvaluator.
*/ | Return an ELEvaluator with the context injected | getELEvaluator | {
"repo_name": "sunmeng007/oozie",
"path": "core/src/main/java/org/apache/oozie/action/ActionExecutor.java",
"license": "apache-2.0",
"size": 16619
} | [
"org.apache.oozie.util.ELEvaluator"
] | import org.apache.oozie.util.ELEvaluator; | import org.apache.oozie.util.*; | [
"org.apache.oozie"
] | org.apache.oozie; | 991,040 |
//TODO: try to re-use timeout values (or remove preferences options
// params.putInt("timeout", ContactsSync.getInstance().getConnectionTimeout() * 1000);
try {
Bundle parameters = new Bundle();
parameters.putString("access_token", mAccessToken);
parameters.putString("fields", "permission,status");
... | try { Bundle parameters = new Bundle(); parameters.putString(STR, mAccessToken); parameters.putString(STR, STR); GraphRequest graphRequest = new GraphRequest(null, STR, parameters, HttpMethod.GET, null); GraphResponse response = graphRequest.executeAndWait(); if (response.getError() != null) { if (response.getError().g... | /**
* Connects to the Sync test server, authenticates the provided
* username and password.
*
* @param username
* The server account username
* @param password
* The server account password
* @return String The authentication token returned by the server (or null)
* @throws Netw... | Connects to the Sync test server, authenticates the provided username and password | checkAccessToken | {
"repo_name": "loadrunner/Facebook-Contact-Sync",
"path": "src/ro/weednet/contactssync/client/NetworkUtilities.java",
"license": "gpl-3.0",
"size": 10099
} | [
"android.accounts.NetworkErrorException",
"android.os.Bundle",
"com.facebook.FacebookException",
"com.facebook.GraphRequest",
"com.facebook.GraphResponse",
"com.facebook.HttpMethod",
"java.util.ArrayList",
"java.util.List",
"org.json.JSONArray",
"org.json.JSONException",
"org.json.JSONObject",
... | import android.accounts.NetworkErrorException; import android.os.Bundle; import com.facebook.FacebookException; import com.facebook.GraphRequest; import com.facebook.GraphResponse; import com.facebook.HttpMethod; import java.util.ArrayList; import java.util.List; import org.json.JSONArray; import org.json.JSONException... | import android.accounts.*; import android.os.*; import com.facebook.*; import java.util.*; import org.json.*; import ro.weednet.contactssync.authenticator.*; | [
"android.accounts",
"android.os",
"com.facebook",
"java.util",
"org.json",
"ro.weednet.contactssync"
] | android.accounts; android.os; com.facebook; java.util; org.json; ro.weednet.contactssync; | 2,785,358 |
void configureServiceChain(Window ocelotMainFrame); | void configureServiceChain(Window ocelotMainFrame); | /**
* Configures the service chain.
*
* @param ocelotMainFrame
* the Ocelot main frame.
*/ | Configures the service chain | configureServiceChain | {
"repo_name": "vistatec/ocelot",
"path": "src/main/java/com/vistatec/ocelot/plugins/freme/FremePlugin.java",
"license": "lgpl-3.0",
"size": 3357
} | [
"java.awt.Window"
] | import java.awt.Window; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,333,414 |
public static boolean validate(Statement stmt) {
try {
Connection conn = stmt.getConnection();
if (conn == null)
return false;
if (!conn.isClosed() && conn.isValid(10))
return true;
stmt.close();
conn.close();
} catch (SQLException e) {
// this may well fa... | static boolean function(Statement stmt) { try { Connection conn = stmt.getConnection(); if (conn == null) return false; if (!conn.isClosed() && conn.isValid(10)) return true; stmt.close(); conn.close(); } catch (SQLException e) { } return false; } | /**
* Verifies that the connection is still alive. Returns true if it
* is, false if it is not. If the connection is broken we try
* closing everything, too, so that the caller need only open a new
* connection.
*/ | Verifies that the connection is still alive. Returns true if it is, false if it is not. If the connection is broken we try closing everything, too, so that the caller need only open a new connection | validate | {
"repo_name": "dinesh-kumar-11/recordLinkageMapreduce",
"path": "src/main/java/org/dinesh/er/database/JDBCUtils.java",
"license": "apache-2.0",
"size": 3860
} | [
"java.sql.Connection",
"java.sql.SQLException",
"java.sql.Statement"
] | import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; | import java.sql.*; | [
"java.sql"
] | java.sql; | 225,807 |
public static <E> Bindable<Set<E>> setOf(Class<E> elementType) {
return of(ResolvableType.forClassWithGenerics(Set.class, elementType));
} | static <E> Bindable<Set<E>> function(Class<E> elementType) { return of(ResolvableType.forClassWithGenerics(Set.class, elementType)); } | /**
* Create a new {@link Bindable} {@link Set} of the specified element type.
* @param <E> the element type
* @param elementType the set element type
* @return a {@link Bindable} instance
*/ | Create a new <code>Bindable</code> <code>Set</code> of the specified element type | setOf | {
"repo_name": "aahlenst/spring-boot",
"path": "spring-boot-project/spring-boot/src/main/java/org/springframework/boot/context/properties/bind/Bindable.java",
"license": "apache-2.0",
"size": 9881
} | [
"java.util.Set",
"org.springframework.core.ResolvableType"
] | import java.util.Set; import org.springframework.core.ResolvableType; | import java.util.*; import org.springframework.core.*; | [
"java.util",
"org.springframework.core"
] | java.util; org.springframework.core; | 2,777,639 |
public List<RescoreContext> rescore() {
return searchContext.rescore();
} | List<RescoreContext> function() { return searchContext.rescore(); } | /**
* The rescorers included in the original search, used for explain output
*/ | The rescorers included in the original search, used for explain output | rescore | {
"repo_name": "ern/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/search/fetch/FetchContext.java",
"license": "apache-2.0",
"size": 7098
} | [
"java.util.List",
"org.elasticsearch.search.rescore.RescoreContext"
] | import java.util.List; import org.elasticsearch.search.rescore.RescoreContext; | import java.util.*; import org.elasticsearch.search.rescore.*; | [
"java.util",
"org.elasticsearch.search"
] | java.util; org.elasticsearch.search; | 1,598,997 |
Observable<ServiceResponse<Void>> getDefaultNone400InvalidWithServiceResponseAsync(); | Observable<ServiceResponse<Void>> getDefaultNone400InvalidWithServiceResponseAsync(); | /**
* Send a 400 response with valid payload: {'statusCode': '400'}.
*
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the {@link ServiceResponse} object if successful.
*/ | Send a 400 response with valid payload: {'statusCode': '400'} | getDefaultNone400InvalidWithServiceResponseAsync | {
"repo_name": "lmazuel/autorest",
"path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/http/MultipleResponses.java",
"license": "mit",
"size": 50475
} | [
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.rest.ServiceResponse; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,003,989 |
@Override
public Object execute(Object... arguments) throws RemoteException {
try {
Thread.sleep(100);
} catch (InterruptedException e) {}
if (obj.imInServer()) {
obj.println("local run");
} else {
obj.println("remote run");
}
return null;
}
| Object function(Object... arguments) throws RemoteException { try { Thread.sleep(100); } catch (InterruptedException e) {} if (obj.imInServer()) { obj.println(STR); } else { obj.println(STR); } return null; } | /**
* Indicates if is a local o remote execution.
*
* @param arguments not uses here
* @return a <code>null</code> value
* @throws RemoteException if a remote operation fails
*/ | Indicates if is a local o remote execution | execute | {
"repo_name": "freeVM/freeVM",
"path": "enhanced/archive/classlib/modules/rmi2/src/ar/org/fitc/test/rmi/integration/fase2/serverExecutor/MoveRemoteObject.java",
"license": "apache-2.0",
"size": 2148
} | [
"java.rmi.RemoteException"
] | import java.rmi.RemoteException; | import java.rmi.*; | [
"java.rmi"
] | java.rmi; | 2,169,744 |
public PublicationDetail getDetail() {
if (detail == null) {
try {
setPublicationDetail(getKmeliaService().getPublicationDetail(pk));
} catch (RemoteException ex) {
throw new KmeliaRuntimeException(getClass().getSimpleName() + ".getDetail()",
SilverpeasRuntimeException.... | PublicationDetail function() { if (detail == null) { try { setPublicationDetail(getKmeliaService().getPublicationDetail(pk)); } catch (RemoteException ex) { throw new KmeliaRuntimeException(getClass().getSimpleName() + STR, SilverpeasRuntimeException.ERROR, STR, ex); } } return detail; } | /**
* Gets the details about this publication.
* @return the publication details.
*/ | Gets the details about this publication | getDetail | {
"repo_name": "stephaneperry/Silverpeas-Components",
"path": "kmelia/kmelia-ejb/src/main/java/com/stratelia/webactiv/kmelia/model/KmeliaPublication.java",
"license": "agpl-3.0",
"size": 14338
} | [
"com.stratelia.webactiv.util.exception.SilverpeasRuntimeException",
"com.stratelia.webactiv.util.publication.model.PublicationDetail",
"java.rmi.RemoteException"
] | import com.stratelia.webactiv.util.exception.SilverpeasRuntimeException; import com.stratelia.webactiv.util.publication.model.PublicationDetail; import java.rmi.RemoteException; | import com.stratelia.webactiv.util.exception.*; import com.stratelia.webactiv.util.publication.model.*; import java.rmi.*; | [
"com.stratelia.webactiv",
"java.rmi"
] | com.stratelia.webactiv; java.rmi; | 1,365,594 |
public static String detectXmlEncoding(byte[] data) throws XmlEncodingDetectionException {
if (data.length<4) {
throw new IllegalArgumentException();
}
PreliminaryCharset preliminary = guessCharset(data);
if (preliminary==null) {
throw new XmlEncodingDetectionException("Could not detect encoding.");
... | static String function(byte[] data) throws XmlEncodingDetectionException { if (data.length<4) { throw new IllegalArgumentException(); } PreliminaryCharset preliminary = guessCharset(data); if (preliminary==null) { throw new XmlEncodingDetectionException(STR); } Optional<String> specifiedEncoding = getDeclaredEncoding(d... | /**
* Detects XML encoding based on this algorithm: <a href="https://www.w3.org/TR/xml/#sec-guessing">https://www.w3.org/TR/xml/#sec-guessing</a>.
* In accordance with this specification, it is assumed that the XML declaration
* is not preceded by whitespace (if present).
* Note that some encodings mentioned i... | Detects XML encoding based on this algorithm: HREF In accordance with this specification, it is assumed that the XML declaration is not preceded by whitespace (if present). Note that some encodings mentioned in the specification are not supported because they are not supported by the JVM | detectXmlEncoding | {
"repo_name": "daisy/pipeline-issues",
"path": "libs/dotify/dotify.common/src/org/daisy/dotify/common/xml/XMLTools.java",
"license": "apache-2.0",
"size": 25289
} | [
"java.text.MessageFormat",
"java.util.Optional"
] | import java.text.MessageFormat; import java.util.Optional; | import java.text.*; import java.util.*; | [
"java.text",
"java.util"
] | java.text; java.util; | 1,300,307 |
@JsonProperty("transitCapability")
public void setTransitCapability(boolean transitCapability) {
this.transitCapability = transitCapability;
} | @JsonProperty(STR) void function(boolean transitCapability) { this.transitCapability = transitCapability; } | /**
* Sets transit capability.
*
* @param transitCapability true if transit capable, else false
*/ | Sets transit capability | setTransitCapability | {
"repo_name": "Phaneendra-Huawei/demo",
"path": "protocols/ospf/ctl/src/main/java/org/onosproject/ospf/controller/area/OspfAreaImpl.java",
"license": "apache-2.0",
"size": 30008
} | [
"com.fasterxml.jackson.annotation.JsonProperty"
] | import com.fasterxml.jackson.annotation.JsonProperty; | import com.fasterxml.jackson.annotation.*; | [
"com.fasterxml.jackson"
] | com.fasterxml.jackson; | 1,821,541 |
public OutputStream createOutputStream() throws IOException
{
return createOutputStream(null);
} | OutputStream function() throws IOException { return createOutputStream(null); } | /**
* Returns a new OutputStream for writing stream data, using the current filters.
*
* @return OutputStream for un-encoded stream data.
* @throws IOException If the output stream could not be created.
*/ | Returns a new OutputStream for writing stream data, using the current filters | createOutputStream | {
"repo_name": "joansmith/pdfbox",
"path": "pdfbox/src/main/java/org/apache/pdfbox/cos/COSStream.java",
"license": "apache-2.0",
"size": 12839
} | [
"java.io.IOException",
"java.io.OutputStream"
] | import java.io.IOException; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,449,769 |
As of 3.2: The hot key will be registered with the first ancestor found that is either a
jsx3.gui.Window, a jsx3.gui.Dialog, or the root block of a jsx3.app.Server.
* @param fctCallback JavaScript function to execute when the given sequence is keyed by the user.
* @param strKeys a plus-delimited ('+') key seq... | As of 3.2: The hot key will be registered with the first ancestor found that is either a jsx3.gui.Window, a jsx3.gui.Dialog, or the root block of a jsx3.app.Server. * @param fctCallback JavaScript function to execute when the given sequence is keyed by the user. * @param strKeys a plus-delimited ('+') key sequence such... | /**
* Binds the given key sequence to a callback function. Any object that has a key binding (specified with
setKeyBinding()) will call this method when painted to register the key sequence with an appropriate
ancestor of this form control. Any key down event that bubbles up to the ancestor without being intercept... | Binds the given key sequence to a callback function. Any object that has a key binding (specified with | doKeyBinding | {
"repo_name": "burris/dwr",
"path": "ui/gi/generated/java/jsx3/gui/Tree.java",
"license": "apache-2.0",
"size": 87147
} | [
"org.directwebremoting.io.Context"
] | import org.directwebremoting.io.Context; | import org.directwebremoting.io.*; | [
"org.directwebremoting.io"
] | org.directwebremoting.io; | 1,788,897 |
public void onPlayerStoppedUsing(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4)
{
int j = this.getMaxItemUseDuration(par1ItemStack) - par4;
ArrowLooseEvent event = new ArrowLooseEvent(par3EntityPlayer, par1ItemStack, j);
MinecraftForge.EVENT_BUS.post(... | void function(ItemStack par1ItemStack, World par2World, EntityPlayer par3EntityPlayer, int par4) { int j = this.getMaxItemUseDuration(par1ItemStack) - par4; ArrowLooseEvent event = new ArrowLooseEvent(par3EntityPlayer, par1ItemStack, j); MinecraftForge.EVENT_BUS.post(event); if (event.isCanceled()) { return; } j = even... | /**
* called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount
*/ | called when the player releases the use item button. Args: itemstack, world, entityplayer, itemInUseCount | onPlayerStoppedUsing | {
"repo_name": "DrSideburns/Modjam-3-Winter-Warfare-Mod",
"path": "src/Dr_Sideburns/winterWarMod/ItemLauncher.java",
"license": "mit",
"size": 15671
} | [
"net.minecraft.enchantment.Enchantment",
"net.minecraft.enchantment.EnchantmentHelper",
"net.minecraft.entity.player.EntityPlayer",
"net.minecraft.item.Item",
"net.minecraft.item.ItemStack",
"net.minecraft.world.World",
"net.minecraftforge.common.MinecraftForge",
"net.minecraftforge.event.entity.playe... | import net.minecraft.enchantment.Enchantment; import net.minecraft.enchantment.EnchantmentHelper; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.world.World; import net.minecraftforge.common.MinecraftForge; import net.minecraftf... | import net.minecraft.enchantment.*; import net.minecraft.entity.player.*; import net.minecraft.item.*; import net.minecraft.world.*; import net.minecraftforge.common.*; import net.minecraftforge.event.entity.player.*; | [
"net.minecraft.enchantment",
"net.minecraft.entity",
"net.minecraft.item",
"net.minecraft.world",
"net.minecraftforge.common",
"net.minecraftforge.event"
] | net.minecraft.enchantment; net.minecraft.entity; net.minecraft.item; net.minecraft.world; net.minecraftforge.common; net.minecraftforge.event; | 2,310,516 |
public SslContextBuilder keyManager(File keyCertChainFile, File keyFile, String keyPassword) {
X509Certificate[] keyCertChain;
PrivateKey key;
try {
keyCertChain = SslContext.toX509Certificates(keyCertChainFile);
} catch (Exception e) {
throw new IllegalArgume... | SslContextBuilder function(File keyCertChainFile, File keyFile, String keyPassword) { X509Certificate[] keyCertChain; PrivateKey key; try { keyCertChain = SslContext.toX509Certificates(keyCertChainFile); } catch (Exception e) { throw new IllegalArgumentException(STR + keyCertChainFile, e); } try { key = SslContext.toPr... | /**
* Identifying certificate for this host. {@code keyCertChainFile} and {@code keyFile} may
* be {@code null} for client contexts, which disables mutual authentication.
*
* @param keyCertChainFile an X.509 certificate chain file in PEM format
* @param keyFile a PKCS#8 private key file in PEM ... | Identifying certificate for this host. keyCertChainFile and keyFile may be null for client contexts, which disables mutual authentication | keyManager | {
"repo_name": "mx657649013/netty",
"path": "handler/src/main/java/io/netty/handler/ssl/SslContextBuilder.java",
"license": "apache-2.0",
"size": 16328
} | [
"java.io.File",
"java.security.PrivateKey",
"java.security.cert.X509Certificate"
] | import java.io.File; import java.security.PrivateKey; import java.security.cert.X509Certificate; | import java.io.*; import java.security.*; import java.security.cert.*; | [
"java.io",
"java.security"
] | java.io; java.security; | 321,146 |
@Bug(8592)
@For(Pipe.class)
public void testReaderCloseWhileWriterIsStillWriting() throws Exception {
final Pipe p = Pipe.createRemoteToLocal();
final Future<Void> f = channel.callAsync(new InfiniteWriter(p));
final InputStream in = p.getIn();
assertEquals(in.read(), 0);
... | @Bug(8592) @For(Pipe.class) void function() throws Exception { final Pipe p = Pipe.createRemoteToLocal(); final Future<Void> f = channel.callAsync(new InfiniteWriter(p)); final InputStream in = p.getIn(); assertEquals(in.read(), 0); in.close(); try { f.get(); fail(); } catch (ExecutionException e) { if (!(e.getCause() ... | /**
* Have the reader close the read end of the pipe while the writer is still writing.
* The writer should pick up a failure.
*/ | Have the reader close the read end of the pipe while the writer is still writing. The writer should pick up a failure | testReaderCloseWhileWriterIsStillWriting | {
"repo_name": "oleg-nenashev/remoting",
"path": "src/test/java/hudson/remoting/PipeTest.java",
"license": "mit",
"size": 9228
} | [
"java.io.IOException",
"java.io.InputStream",
"java.util.concurrent.ExecutionException",
"org.jvnet.hudson.test.Bug",
"org.jvnet.hudson.test.For"
] | import java.io.IOException; import java.io.InputStream; import java.util.concurrent.ExecutionException; import org.jvnet.hudson.test.Bug; import org.jvnet.hudson.test.For; | import java.io.*; import java.util.concurrent.*; import org.jvnet.hudson.test.*; | [
"java.io",
"java.util",
"org.jvnet.hudson"
] | java.io; java.util; org.jvnet.hudson; | 2,463,692 |
Cache<K, V> cache = null;
CacheManager cacheManager = Caching.getCacheManagerFactory().getCacheManager(ENTITLEMENT_CACHE_MANAGER);
if (this.cacheTimeout > 0) {
if (cacheBuilder == null) {
synchronized (Entitlement_CACHE_NAME.intern()) {
if (cacheBu... | Cache<K, V> cache = null; CacheManager cacheManager = Caching.getCacheManagerFactory().getCacheManager(ENTITLEMENT_CACHE_MANAGER); if (this.cacheTimeout > 0) { if (cacheBuilder == null) { synchronized (Entitlement_CACHE_NAME.intern()) { if (cacheBuilder == null) { cacheManager.removeCache(Entitlement_CACHE_NAME); this.... | /**
* Getting existing cache if the cache available, else returns a newly created cache.
* This logic handles by javax.cache implementation
*
* @return
*/ | Getting existing cache if the cache available, else returns a newly created cache. This logic handles by javax.cache implementation | getEntitlementCache | {
"repo_name": "wso2/carbon-identity-framework",
"path": "components/entitlement/org.wso2.carbon.identity.entitlement/src/main/java/org/wso2/carbon/identity/entitlement/cache/EntitlementBaseCache.java",
"license": "apache-2.0",
"size": 8874
} | [
"java.util.concurrent.TimeUnit",
"javax.cache.Cache",
"javax.cache.CacheConfiguration",
"javax.cache.CacheManager",
"javax.cache.Caching",
"org.wso2.carbon.context.CarbonContext"
] | import java.util.concurrent.TimeUnit; import javax.cache.Cache; import javax.cache.CacheConfiguration; import javax.cache.CacheManager; import javax.cache.Caching; import org.wso2.carbon.context.CarbonContext; | import java.util.concurrent.*; import javax.cache.*; import org.wso2.carbon.context.*; | [
"java.util",
"javax.cache",
"org.wso2.carbon"
] | java.util; javax.cache; org.wso2.carbon; | 2,832,675 |
@Nonnull
default BiConsumer2<T, Double> boxed() {
return this::accept;
} | default BiConsumer2<T, Double> boxed() { return this::accept; } | /**
* Returns a composed {@link BiConsumer2} which represents this {@link ObjDoubleConsumer2}. Thereby the primitive
* input argument for this consumer is autoboxed. This method provides the possibility to use this
* {@code ObjDoubleConsumer2} with methods provided by the {@code JDK}.
*
* @retu... | Returns a composed <code>BiConsumer2</code> which represents this <code>ObjDoubleConsumer2</code>. Thereby the primitive input argument for this consumer is autoboxed. This method provides the possibility to use this ObjDoubleConsumer2 with methods provided by the JDK | boxed | {
"repo_name": "Gridtec/lambda4j",
"path": "lambda4j/src-gen/main/java/at/gridtec/lambda4j/consumer/bi/obj/ObjDoubleConsumer2.java",
"license": "apache-2.0",
"size": 21505
} | [
"at.gridtec.lambda4j.consumer.bi.BiConsumer2"
] | import at.gridtec.lambda4j.consumer.bi.BiConsumer2; | import at.gridtec.lambda4j.consumer.bi.*; | [
"at.gridtec.lambda4j"
] | at.gridtec.lambda4j; | 1,616,665 |
public static void apiManagementTenantAccessRegenerateKey(
com.azure.resourcemanager.apimanagement.ApiManagementManager manager) {
manager
.tenantAccess()
.regeneratePrimaryKeyWithResponse("rg1", "apimService1", AccessIdName.ACCESS, Context.NONE);
} | static void function( com.azure.resourcemanager.apimanagement.ApiManagementManager manager) { manager .tenantAccess() .regeneratePrimaryKeyWithResponse("rg1", STR, AccessIdName.ACCESS, Context.NONE); } | /**
* Sample code: ApiManagementTenantAccessRegenerateKey.
*
* @param manager Entry point to ApiManagementManager.
*/ | Sample code: ApiManagementTenantAccessRegenerateKey | apiManagementTenantAccessRegenerateKey | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/samples/java/com/azure/resourcemanager/apimanagement/TenantAccessRegeneratePrimaryKeySamples.java",
"license": "mit",
"size": 1030
} | [
"com.azure.core.util.Context",
"com.azure.resourcemanager.apimanagement.models.AccessIdName"
] | import com.azure.core.util.Context; import com.azure.resourcemanager.apimanagement.models.AccessIdName; | import com.azure.core.util.*; import com.azure.resourcemanager.apimanagement.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,916,996 |
public void setFileSystemMgtName( ObjectName name ) {
support.setFileSystemMgtName( name );
} | void function( ObjectName name ) { support.setFileSystemMgtName( name ); } | /**
* Setter for the name of the FileSystemMgt MBean.
* <p>
* This bean is used to locate the DICOM file.
*
* @param Name of the MBean
*/ | Setter for the name of the FileSystemMgt MBean. This bean is used to locate the DICOM file | setFileSystemMgtName | {
"repo_name": "medicayun/medicayundicom",
"path": "dcm4jboss-all/tags/DCM4CHEE_2_13_5/dcm4jboss-wado/src/java/org/dcm4chex/wado/mbean/RIDService.java",
"license": "apache-2.0",
"size": 11384
} | [
"javax.management.ObjectName"
] | import javax.management.ObjectName; | import javax.management.*; | [
"javax.management"
] | javax.management; | 2,581,747 |
public ThesaurusManager getThesaurusManager() {
return thesaurusManager;
} | ThesaurusManager function() { return thesaurusManager; } | /**
* Gets an instance of a manager of the thesaurus used with the PdC.
* @return a ThesaurusManager object.
*/ | Gets an instance of a manager of the thesaurus used with the PdC | getThesaurusManager | {
"repo_name": "NicolasEYSSERIC/Silverpeas-Core",
"path": "ejb-core/pdc/src/main/java/com/silverpeas/pdc/PdcServiceFactory.java",
"license": "agpl-3.0",
"size": 2788
} | [
"com.silverpeas.thesaurus.control.ThesaurusManager"
] | import com.silverpeas.thesaurus.control.ThesaurusManager; | import com.silverpeas.thesaurus.control.*; | [
"com.silverpeas.thesaurus"
] | com.silverpeas.thesaurus; | 2,180,486 |
public static void openLink(Context context, String link) {
Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setData(Uri.parse(link));
context.startActivity(intent);
} | static void function(Context context, String link) { Intent intent = new Intent(Intent.ACTION_VIEW); intent.setData(Uri.parse(link)); context.startActivity(intent); } | /**
* Open intent with data
*
* @param context used to start activity
* @param link intent's data
*/ | Open intent with data | openLink | {
"repo_name": "ruigoncalo/passarola",
"path": "app/src/main/java/pt/passarola/utils/Utils.java",
"license": "apache-2.0",
"size": 2591
} | [
"android.content.Context",
"android.content.Intent",
"android.net.Uri"
] | import android.content.Context; import android.content.Intent; import android.net.Uri; | import android.content.*; import android.net.*; | [
"android.content",
"android.net"
] | android.content; android.net; | 2,428,055 |
public Iterator getPackageIterator() {
sortPackages();
return packageResults.iterator();
}
| Iterator function() { sortPackages(); return packageResults.iterator(); } | /**
* Returns an iterator that provides access to the package results.
*
* @return An iterator.
*/ | Returns an iterator that provides access to the package results | getPackageIterator | {
"repo_name": "niloc132/mauve-gwt",
"path": "src/main/java/gnu/testlet/runner/RunResult.java",
"license": "gpl-2.0",
"size": 6893
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,724,094 |
V get() throws CancellationException, ExecutionException,
InterruptedException {
// Acquire the shared lock allowing interruption.
acquireSharedInterruptibly(-1);
return getValue();
} | V get() throws CancellationException, ExecutionException, InterruptedException { acquireSharedInterruptibly(-1); return getValue(); } | /**
* Blocks until {@link #complete(Object, Throwable, int)} has been
* successfully called. Throws a {@link CancellationException} if the task
* was cancelled, or a {@link ExecutionException} if the task completed with
* an error.
*/ | Blocks until <code>#complete(Object, Throwable, int)</code> has been successfully called. Throws a <code>CancellationException</code> if the task was cancelled, or a <code>ExecutionException</code> if the task completed with an error | get | {
"repo_name": "gingerwizard/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/common/util/concurrent/BaseFuture.java",
"license": "apache-2.0",
"size": 12957
} | [
"java.util.concurrent.CancellationException",
"java.util.concurrent.ExecutionException"
] | import java.util.concurrent.CancellationException; import java.util.concurrent.ExecutionException; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 1,393,985 |
@Test
public void testPerUserResourcesXML() throws Exception {
//Start RM so that it accepts app submissions
rm.start();
try {
rm.submitApp(10, "app1", "user1", null, "b1");
rm.submitApp(20, "app2", "user2", null, "b1");
//Get the XML from ws/v1/cluster/scheduler
WebResource r =... | void function() throws Exception { rm.start(); try { rm.submitApp(10, "app1", "user1", null, "b1"); rm.submitApp(20, "app2", "user2", null, "b1"); WebResource r = resource(); ClientResponse response = r.path(STR) .accept(MediaType.APPLICATION_XML).get(ClientResponse.class); assertEquals(MediaType.APPLICATION_XML_TYPE, ... | /**
* Test per user resources and resourcesUsed elements in the web services XML
* @throws Exception
*/ | Test per user resources and resourcesUsed elements in the web services XML | testPerUserResourcesXML | {
"repo_name": "ZhangXFeng/hadoop",
"path": "src/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/webapp/TestRMWebServicesCapacitySched.java",
"license": "apache-2.0",
"size": 25164
} | [
"com.sun.jersey.api.client.ClientResponse",
"com.sun.jersey.api.client.WebResource",
"java.io.StringReader",
"javax.ws.rs.core.MediaType",
"javax.xml.parsers.DocumentBuilder",
"javax.xml.parsers.DocumentBuilderFactory",
"org.junit.Assert",
"org.w3c.dom.Document",
"org.w3c.dom.Node",
"org.w3c.dom.N... | import com.sun.jersey.api.client.ClientResponse; import com.sun.jersey.api.client.WebResource; import java.io.StringReader; import javax.ws.rs.core.MediaType; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.junit.Assert; import org.w3c.dom.Document; import org.w3c.d... | import com.sun.jersey.api.client.*; import java.io.*; import javax.ws.rs.core.*; import javax.xml.parsers.*; import org.junit.*; import org.w3c.dom.*; import org.xml.sax.*; | [
"com.sun.jersey",
"java.io",
"javax.ws",
"javax.xml",
"org.junit",
"org.w3c.dom",
"org.xml.sax"
] | com.sun.jersey; java.io; javax.ws; javax.xml; org.junit; org.w3c.dom; org.xml.sax; | 2,737,507 |
protected JLabel createLabelFor(String fieldName, JComponent component) {
JLabel label = getComponentFactory().createLabel("");
getFormModel().getFieldFace(fieldName).configure(label);
label.setLabelFor(component);
FormComponentInterceptor interceptor = getFormComponentInterceptor();
if (interceptor != nu... | JLabel function(String fieldName, JComponent component) { JLabel label = getComponentFactory().createLabel(""); getFormModel().getFieldFace(fieldName).configure(label); label.setLabelFor(component); FormComponentInterceptor interceptor = getFormComponentInterceptor(); if (interceptor != null) { interceptor.processLabel... | /**
* Create a label for the property.
*
* @param fieldName the name of the property.
* @param component the component of the property which is related to the
* label.
* @return a {@link JLabel} for the property.
*/ | Create a label for the property | createLabelFor | {
"repo_name": "danilovalente/spring-richclient",
"path": "spring-richclient-core/src/main/java/org/springframework/richclient/form/builder/AbstractFormBuilder.java",
"license": "apache-2.0",
"size": 7174
} | [
"javax.swing.JComponent",
"javax.swing.JLabel"
] | import javax.swing.JComponent; import javax.swing.JLabel; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 521,935 |
@Deprecated
public boolean isValid() {
try {
validate();
} catch (final ValidationException vex) {
return false;
}
return true;
} | boolean function() { try { validate(); } catch (final ValidationException vex) { return false; } return true; } | /**
* Method isValid.
*
* @return true if this object is valid according to the schema
*/ | Method isValid | isValid | {
"repo_name": "rfdrake/opennms",
"path": "opennms-config-model/src/main/java/org/opennms/netmgt/config/datacollection/StorageStrategy.java",
"license": "gpl-2.0",
"size": 12127
} | [
"org.exolab.castor.xml.ValidationException"
] | import org.exolab.castor.xml.ValidationException; | import org.exolab.castor.xml.*; | [
"org.exolab.castor"
] | org.exolab.castor; | 754,269 |
public static IStatus repairAvd(AvdInfo avdInfo)
{
IStatus status = Status.OK_STATUS;
AvdManager avdManager = Sdk.getCurrent().getAvdManager();
Display display = PlatformUI.getWorkbench().getDisplay();
ISdkLog log =
new MessageBoxLog(String.format("Result of upda... | static IStatus function(AvdInfo avdInfo) { IStatus status = Status.OK_STATUS; AvdManager avdManager = Sdk.getCurrent().getAvdManager(); Display display = PlatformUI.getWorkbench().getDisplay(); ISdkLog log = new MessageBoxLog(String.format(STR, avdInfo.getName()), display, false); try { avdManager.updateAvd(avdInfo, lo... | /**
* Try to repair an AVD. Currently only avds with wrong image path are repariable.
* Display a message with the changes to the config.ini
* @param avdInfo
* @return Status ERROR if an IO exception occured.
*/ | Try to repair an AVD. Currently only avds with wrong image path are repariable. Display a message with the changes to the config.ini | repairAvd | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "tools/motodev/src/plugins/android/src/com/motorola/studio/android/adt/SdkUtils.java",
"license": "gpl-2.0",
"size": 29287
} | [
"com.android.ide.eclipse.adt.internal.sdk.Sdk",
"com.android.sdklib.ISdkLog",
"com.android.sdklib.internal.avd.AvdInfo",
"com.android.sdklib.internal.avd.AvdManager",
"com.android.sdkuilib.internal.widgets.MessageBoxLog",
"com.motorola.studio.android.AndroidPlugin",
"com.motorola.studio.android.i18n.And... | import com.android.ide.eclipse.adt.internal.sdk.Sdk; import com.android.sdklib.ISdkLog; import com.android.sdklib.internal.avd.AvdInfo; import com.android.sdklib.internal.avd.AvdManager; import com.android.sdkuilib.internal.widgets.MessageBoxLog; import com.motorola.studio.android.AndroidPlugin; import com.motorola.stu... | import com.android.ide.eclipse.adt.internal.sdk.*; import com.android.sdklib.*; import com.android.sdklib.internal.avd.*; import com.android.sdkuilib.internal.widgets.*; import com.motorola.studio.android.*; import com.motorola.studio.android.i18n.*; import java.io.*; import org.eclipse.core.runtime.*; import org.eclip... | [
"com.android.ide",
"com.android.sdklib",
"com.android.sdkuilib",
"com.motorola.studio",
"java.io",
"org.eclipse.core",
"org.eclipse.swt",
"org.eclipse.ui"
] | com.android.ide; com.android.sdklib; com.android.sdkuilib; com.motorola.studio; java.io; org.eclipse.core; org.eclipse.swt; org.eclipse.ui; | 2,571,842 |
public QuoteBySourceAmountResponse build() {
return new Builder.Impl(this);
}
private static class Impl implements QuoteBySourceAmountResponse {
private final BigInteger destinationAmount;
private final Duration sourceHoldDuration;
private Impl(final Builder builder) {
... | QuoteBySourceAmountResponse function() { return new Builder.Impl(this); } static class Impl implements QuoteBySourceAmountResponse { private final BigInteger destinationAmount; private final Duration sourceHoldDuration; private Impl(final Builder functioner) { Objects.requireNonNull(builder); this.destinationAmount = O... | /**
* The method that actually constructs a QuoteBySourceAmountResponse instance.
*
* @return An instance of {@link QuoteBySourceAmountResponse}.
*/ | The method that actually constructs a QuoteBySourceAmountResponse instance | build | {
"repo_name": "interledger/java-ilp-core",
"path": "src/main/java/org/interledger/ilqp/QuoteBySourceAmountResponse.java",
"license": "apache-2.0",
"size": 3901
} | [
"java.math.BigInteger",
"java.time.Duration",
"java.util.Objects"
] | import java.math.BigInteger; import java.time.Duration; import java.util.Objects; | import java.math.*; import java.time.*; import java.util.*; | [
"java.math",
"java.time",
"java.util"
] | java.math; java.time; java.util; | 1,435,498 |
Observable<ServiceResponse<Void>> getBooleanTrueWithServiceResponseAsync(); | Observable<ServiceResponse<Void>> getBooleanTrueWithServiceResponseAsync(); | /**
* Get true Boolean value on path.
*
* @return the {@link ServiceResponse} object if successful.
*/ | Get true Boolean value on path | getBooleanTrueWithServiceResponseAsync | {
"repo_name": "yugangw-msft/autorest",
"path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/url/Paths.java",
"license": "mit",
"size": 26061
} | [
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.rest.ServiceResponse; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 924,992 |
@Factory
public static Matcher<List<InternalFactHandle>> isTuple(List<InternalFactHandle> operand) {
return new IsTuple( operand );
} | static Matcher<List<InternalFactHandle>> function(List<InternalFactHandle> operand) { return new IsTuple( operand ); } | /**
* Is the value equal to another value, as tested by the
* {@link java.lang.Object#equals} invokedMethod?
*/ | Is the value equal to another value, as tested by the <code>java.lang.Object#equals</code> invokedMethod | isTuple | {
"repo_name": "amckee23/drools",
"path": "drools-core/src/test/java/org/drools/core/util/BinaryHeapQueueTest.java",
"license": "apache-2.0",
"size": 12322
} | [
"java.util.List",
"org.drools.core.common.InternalFactHandle",
"org.hamcrest.Matcher"
] | import java.util.List; import org.drools.core.common.InternalFactHandle; import org.hamcrest.Matcher; | import java.util.*; import org.drools.core.common.*; import org.hamcrest.*; | [
"java.util",
"org.drools.core",
"org.hamcrest"
] | java.util; org.drools.core; org.hamcrest; | 2,333,407 |
@Override
public int getPrecision(int param) throws SQLException {
try {
debugCodeCall("getPrecision", param);
ParameterInterface p = getParameter(param);
return MathUtils.convertLongToInt(p.getPrecision());
} catch (Exception e) {
throw logAndConv... | int function(int param) throws SQLException { try { debugCodeCall(STR, param); ParameterInterface p = getParameter(param); return MathUtils.convertLongToInt(p.getPrecision()); } catch (Exception e) { throw logAndConvert(e); } } | /**
* Returns the parameter precision.
* The value 0 is returned if the precision is not known.
*
* @param param the column index (1,2,...)
* @return the precision
*/ | Returns the parameter precision. The value 0 is returned if the precision is not known | getPrecision | {
"repo_name": "wizardofos/Protozoo",
"path": "extra/h2/src/main/java/org/h2/jdbc/JdbcParameterMetaData.java",
"license": "mit",
"size": 7379
} | [
"java.sql.SQLException",
"org.h2.expression.ParameterInterface",
"org.h2.util.MathUtils"
] | import java.sql.SQLException; import org.h2.expression.ParameterInterface; import org.h2.util.MathUtils; | import java.sql.*; import org.h2.expression.*; import org.h2.util.*; | [
"java.sql",
"org.h2.expression",
"org.h2.util"
] | java.sql; org.h2.expression; org.h2.util; | 878,594 |
EClass getHardware(); | EClass getHardware(); | /**
* Returns the meta object for class '{@link org.eclipse.papyrus.RobotML.Hardware <em>Hardware</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Hardware</em>'.
* @see org.eclipse.papyrus.RobotML.Hardware
* @generated
*/ | Returns the meta object for class '<code>org.eclipse.papyrus.RobotML.Hardware Hardware</code>'. | getHardware | {
"repo_name": "RobotML/RobotML-SDK-Juno",
"path": "plugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/RobotMLPackage.java",
"license": "epl-1.0",
"size": 231818
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 539,135 |
public void post() throws ClientException {
this.send(HttpMethod.POST, body);
} | void function() throws ClientException { this.send(HttpMethod.POST, body); } | /**
* Creates the ContentTypeCopyToDefaultContentLocation
*
* @throws ClientException an exception occurs if there was an error while the request was sent
*/ | Creates the ContentTypeCopyToDefaultContentLocation | post | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/ContentTypeCopyToDefaultContentLocationRequest.java",
"license": "mit",
"size": 2328
} | [
"com.microsoft.graph.core.ClientException",
"com.microsoft.graph.http.HttpMethod"
] | import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; | import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; | [
"com.microsoft.graph"
] | com.microsoft.graph; | 376,771 |
public void setTextSelection(Mark start, Mark end) { } | public void setTextSelection(Mark start, Mark end) { } | /**
* Unsupported operation.
*/ | Unsupported operation | setSVGCursor | {
"repo_name": "srnsw/xena",
"path": "plugins/image/ext/src/batik-1.7/sources/org/apache/batik/bridge/UserAgentAdapter.java",
"license": "gpl-3.0",
"size": 12827
} | [
"org.apache.batik.gvt.text.Mark"
] | import org.apache.batik.gvt.text.Mark; | import org.apache.batik.gvt.text.*; | [
"org.apache.batik"
] | org.apache.batik; | 2,340,174 |
//-------------------------------------------------------------------------
public MultiCurrencyScenarioArray currencyExposure(
ResolvedTermDepositTrade trade,
RatesMarketDataLookup lookup,
ScenarioMarketData marketData) {
return calc.currencyExposure(trade, lookup.marketDataView(marketData)... | MultiCurrencyScenarioArray function( ResolvedTermDepositTrade trade, RatesMarketDataLookup lookup, ScenarioMarketData marketData) { return calc.currencyExposure(trade, lookup.marketDataView(marketData)); } | /**
* Calculates currency exposure across one or more scenarios.
* <p>
* The currency risk, expressed as the equivalent amount in each currency.
*
* @param trade the trade
* @param lookup the lookup used to query the market data
* @param marketData the market data
* @return the currency expo... | Calculates currency exposure across one or more scenarios. The currency risk, expressed as the equivalent amount in each currency | currencyExposure | {
"repo_name": "OpenGamma/Strata",
"path": "modules/measure/src/main/java/com/opengamma/strata/measure/deposit/TermDepositTradeCalculations.java",
"license": "apache-2.0",
"size": 13780
} | [
"com.opengamma.strata.data.scenario.MultiCurrencyScenarioArray",
"com.opengamma.strata.data.scenario.ScenarioMarketData",
"com.opengamma.strata.measure.rate.RatesMarketDataLookup",
"com.opengamma.strata.product.deposit.ResolvedTermDepositTrade"
] | import com.opengamma.strata.data.scenario.MultiCurrencyScenarioArray; import com.opengamma.strata.data.scenario.ScenarioMarketData; import com.opengamma.strata.measure.rate.RatesMarketDataLookup; import com.opengamma.strata.product.deposit.ResolvedTermDepositTrade; | import com.opengamma.strata.data.scenario.*; import com.opengamma.strata.measure.rate.*; import com.opengamma.strata.product.deposit.*; | [
"com.opengamma.strata"
] | com.opengamma.strata; | 1,792,896 |
public List<InternalScene> getNamedSceneList() {
if (genList) {
return this.namedScenes;
} else {
if (sceneManager != null) {
sceneManager.getScenes();
}
}
return null;
} | List<InternalScene> function() { if (genList) { return this.namedScenes; } else { if (sceneManager != null) { sceneManager.getScenes(); } } return null; } | /**
* Returns the list of all generated {@link InternalScene}'s, if the list shall generated.
*
* @return List of all {@link InternalScene} or null
*/ | Returns the list of all generated <code>InternalScene</code>'s, if the list shall generated | getNamedSceneList | {
"repo_name": "MikeJMajor/openhab2-addons-dlinksmarthome",
"path": "bundles/org.openhab.binding.digitalstrom/src/main/java/org/openhab/binding/digitalstrom/internal/lib/structure/scene/SceneDiscovery.java",
"license": "epl-1.0",
"size": 21275
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 140,367 |
public static Boolean cubeGt(Configuration configuration, Object __1, Object __2) {
CubeGt f = new CubeGt();
f.set__1(__1);
f.set__2(__2);
f.execute(configuration);
return f.getReturnValue();
} | static Boolean function(Configuration configuration, Object __1, Object __2) { CubeGt f = new CubeGt(); f.set__1(__1); f.set__2(__2); f.execute(configuration); return f.getReturnValue(); } | /**
* Call <code>public.cube_gt</code>
*/ | Call <code>public.cube_gt</code> | cubeGt | {
"repo_name": "Remper/sociallink",
"path": "alignments/src/main/java/eu/fbk/fm/alignments/index/db/Routines.java",
"license": "apache-2.0",
"size": 37686
} | [
"eu.fbk.fm.alignments.index.db.routines.CubeGt",
"org.jooq.Configuration"
] | import eu.fbk.fm.alignments.index.db.routines.CubeGt; import org.jooq.Configuration; | import eu.fbk.fm.alignments.index.db.routines.*; import org.jooq.*; | [
"eu.fbk.fm",
"org.jooq"
] | eu.fbk.fm; org.jooq; | 2,219,497 |
final void acquireWrite() {
assert holdsLock(this);
if (readLocksCount > 0) {
boolean intr = Thread.interrupted();
try {
do try {
wait();
} catch (InterruptedException ignored) {
intr = true;
... | final void acquireWrite() { assert holdsLock(this); if (readLocksCount > 0) { boolean intr = Thread.interrupted(); try { do try { wait(); } catch (InterruptedException ignored) { intr = true; } while (readLocksCount > 0); } finally { if (intr) Thread.currentThread().interrupt(); } } } | /**
* Acquires write lock. Must be called under the intrinsic lock.
* Write lock is available if and only if all read locks have been released.
*/ | Acquires write lock. Must be called under the intrinsic lock. Write lock is available if and only if all read locks have been released | acquireWrite | {
"repo_name": "ropalka/jboss-msc",
"path": "src/main/java/org/jboss/msc/service/Lockable.java",
"license": "lgpl-2.1",
"size": 3726
} | [
"java.lang.Thread"
] | import java.lang.Thread; | import java.lang.*; | [
"java.lang"
] | java.lang; | 1,099,343 |
public void mergeWith(Parameters other, boolean override) {
for (Map.Entry<String,Attrs> e : other.entrySet()) {
Attrs existing = get(e.getKey());
if (existing == null) {
put(e.getKey(), new Attrs(e.getValue()));
} else
existing.mergeWith(e.getValue(), override);
}
} | void function(Parameters other, boolean override) { for (Map.Entry<String,Attrs> e : other.entrySet()) { Attrs existing = get(e.getKey()); if (existing == null) { put(e.getKey(), new Attrs(e.getValue())); } else existing.mergeWith(e.getValue(), override); } } | /**
* Merge all attributes of the given parameters with this
*/ | Merge all attributes of the given parameters with this | mergeWith | {
"repo_name": "joansmith/bnd",
"path": "biz.aQute.bndlib/src/aQute/bnd/header/Parameters.java",
"license": "apache-2.0",
"size": 4806
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,751,340 |
Map<Instance, BigInteger> pointers = new HashMap<>();
// number of pointers in a supracontext,
// that is the number of exemplars in the whole thing
BigInteger pointersInList = BigInteger.ZERO;
// iterate all supracontext
for (Supracontext supra : set) {
if (!linear)... | Map<Instance, BigInteger> pointers = new HashMap<>(); BigInteger pointersInList = BigInteger.ZERO; for (Supracontext supra : set) { if (!linear) { pointersInList = BigInteger.ZERO; for (Subcontext sub : supra.getData()) pointersInList = pointersInList.add(BigInteger.valueOf(sub.getExemplars().size())); } for (Subcontex... | /**
* See page 392 of the red book.
*
* @param set List of Supracontexts created by filling the supracontextual lattice.
* @param linear True if pointer counting should be done linearly; false if it should be done quadratically
* @return A mapping of each exemplar to the number of pointers p... | See page 392 of the red book | getPointers | {
"repo_name": "garfieldnate/Weka_AnalogicalModeling",
"path": "src/main/java/weka/classifiers/lazy/AM/data/AMResults.java",
"license": "apache-2.0",
"size": 11617
} | [
"java.math.BigInteger",
"java.util.HashMap",
"java.util.Map"
] | import java.math.BigInteger; import java.util.HashMap; import java.util.Map; | import java.math.*; import java.util.*; | [
"java.math",
"java.util"
] | java.math; java.util; | 2,627,717 |
public void setTemplateParameters(List<TemplateParameter> parameters) {
int size = parameters.size();
for (int i = 0; i < size; i++) {
TemplateParameter par = parameters.get(i);
int index = i + 1;
addParameter("constraint" + index, par.getP... | void function(List<TemplateParameter> parameters) { int size = parameters.size(); for (int i = 0; i < size; i++) { TemplateParameter par = parameters.get(i); int index = i + 1; addParameter(STR + index, par.getPathId()); addParameter("op" + index, par.getOperation()); String valueIndex = "value" + index; if (par.isMult... | /**
* Set some template parameters.
*
* @param parameters a List of TemplateParameter objects
*/ | Set some template parameters | setTemplateParameters | {
"repo_name": "elsiklab/intermine",
"path": "intermine/webservice/client/main/src/org/intermine/webservice/client/services/TemplateService.java",
"license": "lgpl-2.1",
"size": 23836
} | [
"java.util.List",
"org.intermine.pathquery.PathConstraint",
"org.intermine.webservice.client.template.TemplateParameter"
] | import java.util.List; import org.intermine.pathquery.PathConstraint; import org.intermine.webservice.client.template.TemplateParameter; | import java.util.*; import org.intermine.pathquery.*; import org.intermine.webservice.client.template.*; | [
"java.util",
"org.intermine.pathquery",
"org.intermine.webservice"
] | java.util; org.intermine.pathquery; org.intermine.webservice; | 844,599 |
public static List<Integer> convertToIntegerList(int[] array) {
List<Integer> integers = new ArrayList<Integer>();
for (int i = 0; i < array.length; i++) {
integers.add(array[i]);
}
return integers;
} | static List<Integer> function(int[] array) { List<Integer> integers = new ArrayList<Integer>(); for (int i = 0; i < array.length; i++) { integers.add(array[i]); } return integers; } | /**
* Convert int array to Integer list
*
* @param array
* @return List<Integer>
*/ | Convert int array to Integer list | convertToIntegerList | {
"repo_name": "HuaweiBigData/carbondata",
"path": "core/src/main/java/org/apache/carbondata/core/util/CarbonUtil.java",
"license": "apache-2.0",
"size": 71009
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 673,699 |
private static int getValueLength(Object value)
{
if (value == null)
{
return JmxDumpUtil.NULL_VALUE.length();
}
else if (value.getClass().isArray() || value instanceof CompositeData)
{
// We continue arrays and composites on a new line
... | static int function(Object value) { if (value == null) { return JmxDumpUtil.NULL_VALUE.length(); } else if (value.getClass().isArray() value instanceof CompositeData) { return 0; } else { return value.toString().length(); } } | /**
* Gets the number of characters required to encode a value.
*
* @param value
* the value to be encoded
* @return the number of characters
*/ | Gets the number of characters required to encode a value | getValueLength | {
"repo_name": "Alfresco/alfresco-repository",
"path": "src/main/java/org/alfresco/repo/management/JmxDumpUtil.java",
"license": "lgpl-3.0",
"size": 19510
} | [
"javax.management.openmbean.CompositeData"
] | import javax.management.openmbean.CompositeData; | import javax.management.openmbean.*; | [
"javax.management"
] | javax.management; | 1,618,341 |
Locale language(); | Locale language(); | /**
* Fetches the locale of this stream.
*
* @return The locale this stream is designated for, nor null if undefined.
*/ | Fetches the locale of this stream | language | {
"repo_name": "IvyBits/JAVI",
"path": "src/main/java/tk/ivybits/javi/media/stream/Stream.java",
"license": "lgpl-3.0",
"size": 2160
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 416,887 |
@Adjacency(label = BOM, direction = Direction.OUT)
ArchiveCoordinateModel getBom(); | @Adjacency(label = BOM, direction = Direction.OUT) ArchiveCoordinateModel getBom(); | /**
* Contains the coordinates of the BOM.
*/ | Contains the coordinates of the BOM | getBom | {
"repo_name": "mareknovotny/windup",
"path": "rules-java/api/src/main/java/org/jboss/windup/rules/apps/mavenize/PomXmlModel.java",
"license": "epl-1.0",
"size": 2034
} | [
"com.tinkerpop.blueprints.Direction",
"com.tinkerpop.frames.Adjacency",
"org.jboss.windup.rules.apps.java.archives.model.ArchiveCoordinateModel"
] | import com.tinkerpop.blueprints.Direction; import com.tinkerpop.frames.Adjacency; import org.jboss.windup.rules.apps.java.archives.model.ArchiveCoordinateModel; | import com.tinkerpop.blueprints.*; import com.tinkerpop.frames.*; import org.jboss.windup.rules.apps.java.archives.model.*; | [
"com.tinkerpop.blueprints",
"com.tinkerpop.frames",
"org.jboss.windup"
] | com.tinkerpop.blueprints; com.tinkerpop.frames; org.jboss.windup; | 1,689,970 |
public Properties getProperties() {
return properties;
}
/**
* Sets the properties.
*
* @param properties the properties to set
* @return the updated SSLConfig
* @throws IllegalArgumentException if properties is {@code null} | Properties function() { return properties; } /** * Sets the properties. * * @param properties the properties to set * @return the updated SSLConfig * @throws IllegalArgumentException if properties is {@code null} | /**
* Gets all properties.
*
* @return the properties
*/ | Gets all properties | getProperties | {
"repo_name": "Donnerbart/hazelcast",
"path": "hazelcast/src/main/java/com/hazelcast/config/SocketInterceptorConfig.java",
"license": "apache-2.0",
"size": 5650
} | [
"java.util.Properties"
] | import java.util.Properties; | import java.util.*; | [
"java.util"
] | java.util; | 2,716,614 |
@Override
public AbstractMap transform(Categoria dto) {
AbstractMap map = new HashMap<String, Object>();
//Paso sus campos
map.put(ID, (Integer)dto.getId());
map.put(NAME, (String)dto.getName());
//Y si tiene categoria padre le paso su id
Categori... | AbstractMap function(Categoria dto) { AbstractMap map = new HashMap<String, Object>(); map.put(ID, (Integer)dto.getId()); map.put(NAME, (String)dto.getName()); Categoria padre = dto.getParent(); if (padre != null) { map.put(PARENT, padre.getId()); } return map; } | /**
* Transform que pasa de Categoria a AbstractMap.
*
* @param dto
* @return
*/ | Transform que pasa de Categoria a AbstractMap | transform | {
"repo_name": "tonilopezmr/CategoriPlus",
"path": "src/categoriplus/dataccesobject/openerp/transformer/CategoriaTransformer.java",
"license": "apache-2.0",
"size": 3745
} | [
"java.util.AbstractMap",
"java.util.HashMap"
] | import java.util.AbstractMap; import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 2,800,623 |
int getMaxSlots(String poolName, TaskType taskType) {
Map<String, Integer> maxMap = (taskType == TaskType.MAP ? poolMaxMaps : poolMaxReduces);
if (maxMap.containsKey(poolName)) {
return maxMap.get(poolName);
} else {
return Integer.MAX_VALUE;
}
} | int getMaxSlots(String poolName, TaskType taskType) { Map<String, Integer> maxMap = (taskType == TaskType.MAP ? poolMaxMaps : poolMaxReduces); if (maxMap.containsKey(poolName)) { return maxMap.get(poolName); } else { return Integer.MAX_VALUE; } } | /**
* Get the maximum map or reduce slots for the given pool.
* @return the cap set on this pool, or Integer.MAX_VALUE if not set.
*/ | Get the maximum map or reduce slots for the given pool | getMaxSlots | {
"repo_name": "jayantgolhar/Hadoop-0.21.0",
"path": "mapred/src/contrib/fairscheduler/src/java/org/apache/hadoop/mapred/PoolManager.java",
"license": "apache-2.0",
"size": 21522
} | [
"java.util.Map",
"org.apache.hadoop.mapreduce.TaskType"
] | import java.util.Map; import org.apache.hadoop.mapreduce.TaskType; | import java.util.*; import org.apache.hadoop.mapreduce.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 728,409 |
private ITypeHierarchy getTypeHierarchy(final IType type, final IProgressMonitor monitor) throws JavaModelException {
ITypeHierarchy hierarchy= null;
try {
monitor.beginTask("", 1); //$NON-NLS-1$
monitor.setTaskName(RefactoringCoreMessages.MemberVisibilityAdjustor_checking);
try {
hierarchy= fTypeHi... | ITypeHierarchy function(final IType type, final IProgressMonitor monitor) throws JavaModelException { ITypeHierarchy hierarchy= null; try { monitor.beginTask("", 1); monitor.setTaskName(RefactoringCoreMessages.MemberVisibilityAdjustor_checking); try { hierarchy= fTypeHierarchies.get(type); if (hierarchy == null) { if (... | /**
* Returns a cached type hierarchy for the specified type.
*
* @param type the type to get the hierarchy for
* @param monitor the progress monitor to use
* @return the type hierarchy
* @throws JavaModelException if the type hierarchy could not be created
*/ | Returns a cached type hierarchy for the specified type | getTypeHierarchy | {
"repo_name": "alexVengrovsk/che",
"path": "plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/structure/MemberVisibilityAdjustor.java",
"license": "epl-1.0",
"size": 57915
} | [
"org.eclipse.core.runtime.IProgressMonitor",
"org.eclipse.core.runtime.SubProgressMonitor",
"org.eclipse.jdt.core.IType",
"org.eclipse.jdt.core.ITypeHierarchy",
"org.eclipse.jdt.core.JavaModelException",
"org.eclipse.jdt.internal.corext.refactoring.RefactoringCoreMessages"
] | import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.jdt.core.IType; import org.eclipse.jdt.core.ITypeHierarchy; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.internal.corext.refactoring.RefactoringCoreMessages; | import org.eclipse.core.runtime.*; import org.eclipse.jdt.core.*; import org.eclipse.jdt.internal.corext.refactoring.*; | [
"org.eclipse.core",
"org.eclipse.jdt"
] | org.eclipse.core; org.eclipse.jdt; | 955,385 |
void applyApis(ManagementApiVersion serverVersion, List<DeclarativeApi> apis, String orgName); | void applyApis(ManagementApiVersion serverVersion, List<DeclarativeApi> apis, String orgName); | /**
* Add APIs to the specified organisation, if they are not present, then configure them.
*
* @param serverVersion the management server version.
* @param apis the APIs to add.
* @param orgName the name of the organisation.
*/ | Add APIs to the specified organisation, if they are not present, then configure them | applyApis | {
"repo_name": "apiman/apiman-cli",
"path": "src/main/java/io/apiman/cli/managerapi/service/DeclarativeService.java",
"license": "apache-2.0",
"size": 1792
} | [
"io.apiman.cli.command.declarative.model.DeclarativeApi",
"io.apiman.cli.managerapi.command.common.model.ManagementApiVersion",
"java.util.List"
] | import io.apiman.cli.command.declarative.model.DeclarativeApi; import io.apiman.cli.managerapi.command.common.model.ManagementApiVersion; import java.util.List; | import io.apiman.cli.command.declarative.model.*; import io.apiman.cli.managerapi.command.common.model.*; import java.util.*; | [
"io.apiman.cli",
"java.util"
] | io.apiman.cli; java.util; | 1,023,217 |
public ArrayList<OvhProductInformation> cart_cartId_domainTransfer_GET(String cartId, String domain) throws IOException {
String qPath = "/order/cart/{cartId}/domainTransfer";
StringBuilder sb = path(qPath, cartId);
query(sb, "domain", domain);
String resp = execN(qPath, "GET", sb.toString(), null);
return... | ArrayList<OvhProductInformation> function(String cartId, String domain) throws IOException { String qPath = STR; StringBuilder sb = path(qPath, cartId); query(sb, STR, domain); String resp = execN(qPath, "GET", sb.toString(), null); return convertTo(resp, t6); } | /**
* Get informations about a domain name transfer
*
* REST: GET /order/cart/{cartId}/domainTransfer
* @param cartId [required] Cart identifier
* @param domain [required] Domain name requested
*
* API beta
*/ | Get informations about a domain name transfer | cart_cartId_domainTransfer_GET | {
"repo_name": "UrielCh/ovh-java-sdk",
"path": "ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java",
"license": "bsd-3-clause",
"size": 511080
} | [
"java.io.IOException",
"java.util.ArrayList",
"net.minidev.ovh.api.order.cart.OvhProductInformation"
] | import java.io.IOException; import java.util.ArrayList; import net.minidev.ovh.api.order.cart.OvhProductInformation; | import java.io.*; import java.util.*; import net.minidev.ovh.api.order.cart.*; | [
"java.io",
"java.util",
"net.minidev.ovh"
] | java.io; java.util; net.minidev.ovh; | 1,423,412 |
public void validate() {
if (value() == null) {
throw LOGGER
.logExceptionAsError(
new IllegalArgumentException("Missing required property value in model CloudServiceListResult"));
} else {
value().forEach(e -> e.validate());
}
... | void function() { if (value() == null) { throw LOGGER .logExceptionAsError( new IllegalArgumentException(STR)); } else { value().forEach(e -> e.validate()); } } private static final ClientLogger LOGGER = new ClientLogger(CloudServiceListResult.class); | /**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/ | Validates the instance | validate | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/models/CloudServiceListResult.java",
"license": "mit",
"size": 2336
} | [
"com.azure.core.util.logging.ClientLogger"
] | import com.azure.core.util.logging.ClientLogger; | import com.azure.core.util.logging.*; | [
"com.azure.core"
] | com.azure.core; | 1,264,120 |
public static Expr createConjunctivePredicate(List<Expr> conjuncts) {
return createCompoundTree(conjuncts, Operator.AND);
} | static Expr function(List<Expr> conjuncts) { return createCompoundTree(conjuncts, Operator.AND); } | /**
* Creates a conjunctive predicate from a list of exprs.
*/ | Creates a conjunctive predicate from a list of exprs | createConjunctivePredicate | {
"repo_name": "michaelhkw/incubator-impala",
"path": "fe/src/main/java/org/apache/impala/analysis/CompoundPredicate.java",
"license": "apache-2.0",
"size": 6585
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,342,757 |
public HttpMethodBase makeMethod(CSWGetDataRecordsFilter filter, ResultType resultType, int maxRecords, int startPosition) throws UnsupportedEncodingException {
PostMethod httpMethod = new PostMethod(serviceUrl);
String filterString = null;
if (filter != null) {
filterString = f... | HttpMethodBase function(CSWGetDataRecordsFilter filter, ResultType resultType, int maxRecords, int startPosition) throws UnsupportedEncodingException { PostMethod httpMethod = new PostMethod(serviceUrl); String filterString = null; if (filter != null) { filterString = filter.getFilterStringAllRecords(); } StringBuilder... | /**
* Generates a method that performs a CSW GetRecords request
* with the specified filter
*
* @param filter [Optional] The filter to constrain our request
* @return
* @throws UnsupportedEncodingException If the PostMethod body cannot be encoded ISO-8859-1
*/ | Generates a method that performs a CSW GetRecords request with the specified filter | makeMethod | {
"repo_name": "AuScope/ABIN-Portal",
"path": "src/main/java/org/auscope/portal/csw/CSWMethodMakerGetDataRecords.java",
"license": "gpl-3.0",
"size": 4403
} | [
"java.io.UnsupportedEncodingException",
"org.apache.commons.httpclient.HttpMethodBase",
"org.apache.commons.httpclient.methods.PostMethod"
] | import java.io.UnsupportedEncodingException; import org.apache.commons.httpclient.HttpMethodBase; import org.apache.commons.httpclient.methods.PostMethod; | import java.io.*; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.*; | [
"java.io",
"org.apache.commons"
] | java.io; org.apache.commons; | 248,929 |
public MBeanInfo getMBeanInfo(final ObjectName name) {
try {
return getMbeanServer().getMBeanInfo(name);
} catch (final Exception e) {
logger.error("Load MBean Information Failure", e);
return null;
}
} | MBeanInfo function(final ObjectName name) { try { return getMbeanServer().getMBeanInfo(name); } catch (final Exception e) { logger.error(STR, e); return null; } } | /**
* Get MBeanInfo
* @param name mbean Name
* @return MBeanInfo
*/ | Get MBeanInfo | getMBeanInfo | {
"repo_name": "HappyRay/azkaban",
"path": "azkaban-common/src/main/java/azkaban/server/MBeanRegistrationManager.java",
"license": "apache-2.0",
"size": 4375
} | [
"javax.management.MBeanInfo",
"javax.management.ObjectName"
] | import javax.management.MBeanInfo; import javax.management.ObjectName; | import javax.management.*; | [
"javax.management"
] | javax.management; | 697,188 |
public static <T> void writeListTo(OutputStream out, List<T> messages, Schema<T> schema)
throws IOException
{
writeListTo(out, messages, schema, DEFAULT_OUTPUT_FACTORY);
}
| static <T> void function(OutputStream out, List<T> messages, Schema<T> schema) throws IOException { writeListTo(out, messages, schema, DEFAULT_OUTPUT_FACTORY); } | /**
* Serializes the {@code messages} into the {@link OutputStream} using the given schema.
*/ | Serializes the messages into the <code>OutputStream</code> using the given schema | writeListTo | {
"repo_name": "Shvid/protostuff",
"path": "protostuff-xml/src/main/java/io/protostuff/XmlIOUtil.java",
"license": "apache-2.0",
"size": 19193
} | [
"java.io.IOException",
"java.io.OutputStream",
"java.util.List"
] | import java.io.IOException; import java.io.OutputStream; import java.util.List; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,261,024 |
public static void writePemKey(final PublicKey key, final OutputStream out)
throws IOException
{
writeData(out, Convert.toAsciiBytes(PemHelper.encodeKey(key)));
} | static void function(final PublicKey key, final OutputStream out) throws IOException { writeData(out, Convert.toAsciiBytes(PemHelper.encodeKey(key))); } | /**
* Writes the supplied public key to the supplied output stream in PEM format.
*
* @param key Public key to write to file.
* @param out Ouput stream to write key data to.
*
* @throws IOException On write errors.
*/ | Writes the supplied public key to the supplied output stream in PEM format | writePemKey | {
"repo_name": "vdemeester/vt-crypt-tests",
"path": "src/main/java/edu/vt/middleware/crypt/util/CryptWriter.java",
"license": "apache-2.0",
"size": 10304
} | [
"java.io.IOException",
"java.io.OutputStream",
"java.security.PublicKey"
] | import java.io.IOException; import java.io.OutputStream; import java.security.PublicKey; | import java.io.*; import java.security.*; | [
"java.io",
"java.security"
] | java.io; java.security; | 2,426,338 |
public void closeArchiveEntry() throws IOException; | void function() throws IOException; | /**
* Closes the archive entry which is currently open.
*
* @throws IOException
*/ | Closes the archive entry which is currently open | closeArchiveEntry | {
"repo_name": "alanbuttars/commons-java",
"path": "commons-compress/src/main/java/com/alanbuttars/commons/compress/archives/output/ArchiveOutputStream.java",
"license": "apache-2.0",
"size": 1722
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,507,107 |
if (isInited) return (Tdse3Package)EPackage.Registry.INSTANCE.getEPackage(Tdse3Package.eNS_URI);
// Obtain or create and register package
Tdse3PackageImpl theTdse3Package = (Tdse3PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Tdse3PackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Tdse3... | if (isInited) return (Tdse3Package)EPackage.Registry.INSTANCE.getEPackage(Tdse3Package.eNS_URI); Tdse3PackageImpl theTdse3Package = (Tdse3PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Tdse3PackageImpl ? EPackage.Registry.INSTANCE.get(eNS_URI) : new Tdse3PackageImpl()); isInited = true; theTdse3Package... | /**
* Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
*
* <p>This method is used to initialize {@link Tdse3Package#eINSTANCE} when that field is accessed.
* Clients should not invoke it directly. Instead, they should simply access that field to o... | Creates, registers, and initializes the Package for this model, and for any others upon which it depends. This method is used to initialize <code>Tdse3Package#eINSTANCE</code> when that field is accessed. Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. | init | {
"repo_name": "jastram/teaching",
"path": "SE/se-materials/tutorial/tdse-5/src/tdse3/tdse3/impl/Tdse3PackageImpl.java",
"license": "apache-2.0",
"size": 8219
} | [
"org.eclipse.emf.ecore.EPackage"
] | import org.eclipse.emf.ecore.EPackage; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 70,380 |
public void setConnectionTimeout(int connectionTimeout) {
this.connectionTimeout = Configuration.getConnectionTimeout(connectionTimeout);
} | void function(int connectionTimeout) { this.connectionTimeout = Configuration.getConnectionTimeout(connectionTimeout); } | /**
* Sets a specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by this URLConnection.
* System property -Dsinat4j.http.connectionTimeout overrides this attribute.
* @param connectionTimeout - an int that specifies the connect timeout value ... | Sets a specified timeout value, in milliseconds, to be used when opening a communications link to the resource referenced by this URLConnection. System property -Dsinat4j.http.connectionTimeout overrides this attribute | setConnectionTimeout | {
"repo_name": "alexcaisenchuan/wemap",
"path": "src/com/weibo/sdk/android/http/HttpClient.java",
"license": "apache-2.0",
"size": 36449
} | [
"com.weibo.sdk.android.model.Configuration"
] | import com.weibo.sdk.android.model.Configuration; | import com.weibo.sdk.android.model.*; | [
"com.weibo.sdk"
] | com.weibo.sdk; | 2,128,284 |
@Test
public void testSerialization() throws IOException, ClassNotFoundException {
VectorRenderer r1 = new VectorRenderer();
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
ObjectOutput out = new ObjectOutputStream(buffer);
out.writeObject(r1);
... | void function() throws IOException, ClassNotFoundException { VectorRenderer r1 = new VectorRenderer(); ByteArrayOutputStream buffer = new ByteArrayOutputStream(); ObjectOutput out = new ObjectOutputStream(buffer); out.writeObject(r1); out.close(); ObjectInput in = new ObjectInputStream( new ByteArrayInputStream(buffer.... | /**
* Serialize an instance, restore it, and check for equality.
*/ | Serialize an instance, restore it, and check for equality | testSerialization | {
"repo_name": "akardapolov/ASH-Viewer",
"path": "jfreechart-fse/src/test/java/org/jfree/chart/renderer/xy/VectorRendererTest.java",
"license": "gpl-3.0",
"size": 4431
} | [
"java.io.ByteArrayInputStream",
"java.io.ByteArrayOutputStream",
"java.io.IOException",
"java.io.ObjectInput",
"java.io.ObjectInputStream",
"java.io.ObjectOutput",
"java.io.ObjectOutputStream",
"org.junit.Assert"
] | import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectInput; import java.io.ObjectInputStream; import java.io.ObjectOutput; import java.io.ObjectOutputStream; import org.junit.Assert; | import java.io.*; import org.junit.*; | [
"java.io",
"org.junit"
] | java.io; org.junit; | 838,435 |
public static <K, V> boolean putMapNotNullKeyAndValue(Map<K, V> map, K key, V value) {
if (map == null || key == null || value == null) {
return false;
}
map.put(key, value);
return true;
} | static <K, V> boolean function(Map<K, V> map, K key, V value) { if (map == null key == null value == null) { return false; } map.put(key, value); return true; } | /**
* add key-value pair to map, both key and value need not null
*
* @param map
* @param key
* @param value
* @return <ul>
* <li>if map is null, return false</li>
* <li>if key is null, return false</li>
* <li>if value is null, return false</li>
... | add key-value pair to map, both key and value need not null | putMapNotNullKeyAndValue | {
"repo_name": "PamelaLiu/AtomicBomb",
"path": "AtomicBomb/app/src/main/java/com/jwl/tools/MapUtils.java",
"license": "apache-2.0",
"size": 9909
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,043,649 |
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AssemblyDefinitionInner> list(String resourceGroupName, String integrationAccountName); | @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<AssemblyDefinitionInner> list(String resourceGroupName, String integrationAccountName); | /**
* List the assemblies for an integration account.
*
* @param resourceGroupName The resource group name.
* @param integrationAccountName The integration account name.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.excepti... | List the assemblies for an integration account | list | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/fluent/IntegrationAccountAssembliesClient.java",
"license": "mit",
"size": 9339
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedIterable",
"com.azure.resourcemanager.logic.fluent.models.AssemblyDefinitionInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.resourcemanager.logic.fluent.models.AssemblyDefinitionInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.logic.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 15,867 |
public void prependToHeader(WSSecHeader secHeader) {
WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), ut.getElement());
} | void function(WSSecHeader secHeader) { WSSecurityUtil.prependChildElement(secHeader.getSecurityHeader(), ut.getElement()); } | /**
* Prepends the UsernameToken element to the elements already in the
* Security header.
*
* The method can be called any time after <code>prepare()</code>.
* This allows to insert the UsernameToken element at any position in the
* Security header.
*
* @param secHeader The se... | Prepends the UsernameToken element to the elements already in the Security header. The method can be called any time after <code>prepare()</code>. This allows to insert the UsernameToken element at any position in the Security header | prependToHeader | {
"repo_name": "wso2/wso2-wss4j",
"path": "modules/wss4j/src/org/apache/ws/security/message/WSSecUsernameToken.java",
"license": "apache-2.0",
"size": 9491
} | [
"org.apache.ws.security.util.WSSecurityUtil"
] | import org.apache.ws.security.util.WSSecurityUtil; | import org.apache.ws.security.util.*; | [
"org.apache.ws"
] | org.apache.ws; | 1,818,558 |
@RequestMapping(value = "/bundles/{bundleId}/icon", method = RequestMethod.GET)
public void getBundleIcon(@PathVariable long bundleId, HttpServletResponse response) throws IOException {
BundleIcon bundleIcon = moduleAdminService.getBundleIcon(bundleId);
response.setStatus(HttpServletResponse.SC... | @RequestMapping(value = STR, method = RequestMethod.GET) void function(@PathVariable long bundleId, HttpServletResponse response) throws IOException { BundleIcon bundleIcon = moduleAdminService.getBundleIcon(bundleId); response.setStatus(HttpServletResponse.SC_OK); response.setContentLength(bundleIcon.getContentLength(... | /**
* Returns the icon associated with the given bundle. Bundles that do not have their own icons will
* get a default icon.
* @param bundleId the id of the bundle for which the icon should be retrieved
* @param response the HttpServletResponse, used for writing the icon in its output
* @throws... | Returns the icon associated with the given bundle. Bundles that do not have their own icons will get a default icon | getBundleIcon | {
"repo_name": "tectronics/motech",
"path": "modules/admin/src/main/java/org/motechproject/admin/web/controller/BundleAdminController.java",
"license": "bsd-3-clause",
"size": 10550
} | [
"java.io.IOException",
"javax.servlet.http.HttpServletResponse",
"org.motechproject.server.api.BundleIcon",
"org.springframework.web.bind.annotation.PathVariable",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.RequestMethod"
] | import java.io.IOException; import javax.servlet.http.HttpServletResponse; import org.motechproject.server.api.BundleIcon; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; | import java.io.*; import javax.servlet.http.*; import org.motechproject.server.api.*; import org.springframework.web.bind.annotation.*; | [
"java.io",
"javax.servlet",
"org.motechproject.server",
"org.springframework.web"
] | java.io; javax.servlet; org.motechproject.server; org.springframework.web; | 614,099 |
@ApiModelProperty(example = "null", value = "Created On")
public Long getCreatedOn() {
return createdOn;
} | @ApiModelProperty(example = "null", value = STR) Long function() { return createdOn; } | /**
* Created On
* @return createdOn
**/ | Created On | getCreatedOn | {
"repo_name": "artikcloud/artikcloud-java",
"path": "src/main/java/cloud/artik/model/Tier.java",
"license": "apache-2.0",
"size": 6881
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 838,912 |
public int getServerMajorVersion() {
try {
StringTokenizer versionTokens = new StringTokenizer(queryExecutor.getServerVersion(), "."); // aaXbb.ccYdd
return integerPart(versionTokens.nextToken()); // return X
} catch (NoSuchElementException e) {
return 0;
}
} | int function() { try { StringTokenizer versionTokens = new StringTokenizer(queryExecutor.getServerVersion(), "."); return integerPart(versionTokens.nextToken()); } catch (NoSuchElementException e) { return 0; } } | /**
* Get server major version.
*
* @return server major version
*/ | Get server major version | getServerMajorVersion | {
"repo_name": "AlexElin/pgjdbc",
"path": "pgjdbc/src/main/java/org/postgresql/jdbc/PgConnection.java",
"license": "bsd-2-clause",
"size": 56304
} | [
"java.util.NoSuchElementException",
"java.util.StringTokenizer"
] | import java.util.NoSuchElementException; import java.util.StringTokenizer; | import java.util.*; | [
"java.util"
] | java.util; | 572,155 |
@Override
public void respond(final IRequestCycle requestCycle)
{
} | void function(final IRequestCycle requestCycle) { } | /**
* Does nothing at all.
*
* @see org.apache.wicket.request.IRequestHandler#respond(org.apache.wicket.request.IRequestCycle)
*/ | Does nothing at all | respond | {
"repo_name": "mosoft521/wicket",
"path": "wicket-request/src/main/java/org/apache/wicket/request/handler/EmptyRequestHandler.java",
"license": "apache-2.0",
"size": 1395
} | [
"org.apache.wicket.request.IRequestCycle"
] | import org.apache.wicket.request.IRequestCycle; | import org.apache.wicket.request.*; | [
"org.apache.wicket"
] | org.apache.wicket; | 851,283 |
protected void assignByEigenvectors(final double eigenvalue1Re,
final double eigenvalue1Im,
final Complex2 eigenvector1,
final double eigenvalue2Re,
final d... | void function(final double eigenvalue1Re, final double eigenvalue1Im, final Complex2 eigenvector1, final double eigenvalue2Re, final double eigenvalue2Im, final Complex2 eigenvector2) { this.assign(eigenvalue1Re, eigenvalue1Im, 0.0, 0.0, 0.0, 0.0, eigenvalue2Re, eigenvalue2Im); dummyComplex2By2.assignByColumn(eigenvect... | /**
* <p>Assign <code>this</code> by prescribing eigenvectors and
* eigenvalues. </p>
*
* <p> The given eigenvectors must be linearly independent. </p>
*
* @param eigenvalue1Re a <code>double</code>: real part of the first
* eigenvalue
* @param eigenvalue1Im a <code>double</code>... | Assign <code>this</code> by prescribing eigenvectors and eigenvalues. The given eigenvectors must be linearly independent. | assignByEigenvectors | {
"repo_name": "jupsal/schmies-jTEM",
"path": "libUnzipped/de/jtem/mfc/matrix/AbstractComplex2By2.java",
"license": "bsd-2-clause",
"size": 33984
} | [
"de.jtem.mfc.vector.Complex2"
] | import de.jtem.mfc.vector.Complex2; | import de.jtem.mfc.vector.*; | [
"de.jtem.mfc"
] | de.jtem.mfc; | 2,377,016 |
protected void setSize(int size) {
this.size = size;
}
/**
* Gets the sketch in the form of a {@link BitSet} | void function(int size) { this.size = size; } /** * Gets the sketch in the form of a {@link BitSet} | /**
* Sets the size of the sketch. Take into account, you should instantiate a new sketch with the
* {@link #setSketch(BitSet)} method in case the new size is bigger than the old one.
* <br>
* Tipically, you would use this method in case you are building a (de)serialization mechanism for this class
... | Sets the size of the sketch. Take into account, you should instantiate a new sketch with the <code>#setSketch(BitSet)</code> method in case the new size is bigger than the old one. Tipically, you would use this method in case you are building a (de)serialization mechanism for this class | setSize | {
"repo_name": "inigoillan/libanalytics",
"path": "src/main/java/com/inigoillan/libanalytics/algorithms/oddsketch/OddSketch.java",
"license": "apache-2.0",
"size": 13184
} | [
"java.util.BitSet"
] | import java.util.BitSet; | import java.util.*; | [
"java.util"
] | java.util; | 1,792,717 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<CheckAvailabilityResultInner>> checkNotificationHubAvailabilityWithResponseAsync(
String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters, Context context) {
if (this.client.getEndpoint() == null) {
... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<CheckAvailabilityResultInner>> function( String resourceGroupName, String namespaceName, CheckAvailabilityParameters parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGr... | /**
* Checks the availability of the given notificationHub in a namespace.
*
* @param resourceGroupName The name of the resource group.
* @param namespaceName The namespace name.
* @param parameters The notificationHub name.
* @param context The context to associate with this operation.
... | Checks the availability of the given notificationHub in a namespace | checkNotificationHubAvailabilityWithResponseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/notificationhubs/azure-resourcemanager-notificationhubs/src/main/java/com/azure/resourcemanager/notificationhubs/implementation/NotificationHubsClientImpl.java",
"license": "mit",
"size": 154387
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context",
"com.azure.resourcemanager.notificationhubs.fluent.models.CheckAvailabilityResultInner",
"com.azure.resourcemanager.notificationhubs.models.CheckAvailabili... | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.notificationhubs.fluent.models.CheckAvailabilityResultInner; import com.azure.resourcemanager.notificationhubs.model... | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.notificationhubs.fluent.models.*; import com.azure.resourcemanager.notificationhubs.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,251,466 |
@Test
public void testSupplier()
{
final Collector<String, ImmutableSortedSet.Builder<String>, ImmutableSortedSet<String>> collector =
toImmutableSortedSet();
assertThat(collector.supplier().get().build(), is(ImmutableSortedSet.of()));
} | void function() { final Collector<String, ImmutableSortedSet.Builder<String>, ImmutableSortedSet<String>> collector = toImmutableSortedSet(); assertThat(collector.supplier().get().build(), is(ImmutableSortedSet.of())); } | /**
* Tests that the supplier produces an initial state immutable sorted set builder.
*/ | Tests that the supplier produces an initial state immutable sorted set builder | testSupplier | {
"repo_name": "gkopff/omnium",
"path": "omnium-core/src/test/java/com/fatboyindustrial/omnium/ImmutableCollectorsImmutableSortedSetTest.java",
"license": "mit",
"size": 4525
} | [
"com.fatboyindustrial.omnium.ImmutableCollectors",
"com.google.common.collect.ImmutableSortedSet",
"java.util.stream.Collector",
"org.hamcrest.Matchers",
"org.junit.Assert"
] | import com.fatboyindustrial.omnium.ImmutableCollectors; import com.google.common.collect.ImmutableSortedSet; import java.util.stream.Collector; import org.hamcrest.Matchers; import org.junit.Assert; | import com.fatboyindustrial.omnium.*; import com.google.common.collect.*; import java.util.stream.*; import org.hamcrest.*; import org.junit.*; | [
"com.fatboyindustrial.omnium",
"com.google.common",
"java.util",
"org.hamcrest",
"org.junit"
] | com.fatboyindustrial.omnium; com.google.common; java.util; org.hamcrest; org.junit; | 2,406,388 |
public static long getPathLength(FileSystem fs, FileStatus status, long max)
throws IOException {
if (!status.isDir()) {
return status.getLen();
} else {
FileStatus[] children = fs.listStatus(
status.getPath(), hiddenFileFilter);
lo... | static long function(FileSystem fs, FileStatus status, long max) throws IOException { if (!status.isDir()) { return status.getLen(); } else { FileStatus[] children = fs.listStatus( status.getPath(), hiddenFileFilter); long size = 0; for (FileStatus child : children) { size += getPathLength(fs, child, max); if (size > m... | /**
* Returns the total number of bytes for this file, or if a directory all
* files in the directory.
*
* @param fs FileSystem
* @param status FileStatus
* @param max Maximum value of total length that will trigger exit. Many
* times we're only interested whether the total length of... | Returns the total number of bytes for this file, or if a directory all files in the directory | getPathLength | {
"repo_name": "sigmoidanalytics/spork",
"path": "src/org/apache/pig/backend/hadoop/executionengine/util/MapRedUtil.java",
"license": "apache-2.0",
"size": 30359
} | [
"java.io.IOException",
"org.apache.hadoop.fs.FileStatus",
"org.apache.hadoop.fs.FileSystem"
] | import java.io.IOException; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; | import java.io.*; import org.apache.hadoop.fs.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 244,396 |
public GenericEngine getGenericEngine(String engineName) throws GenericServiceException {
return factory.getGenericEngine(engineName);
} | GenericEngine function(String engineName) throws GenericServiceException { return factory.getGenericEngine(engineName); } | /**
* Gets the GenericEngine instance that corresponds to the given name
* @param engineName Name of the engine
* @return GenericEngine instance that corresponds to the engineName
*/ | Gets the GenericEngine instance that corresponds to the given name | getGenericEngine | {
"repo_name": "ilscipio/scipio-erp",
"path": "framework/service/src/org/ofbiz/service/ServiceDispatcher.java",
"license": "apache-2.0",
"size": 59484
} | [
"org.ofbiz.service.engine.GenericEngine"
] | import org.ofbiz.service.engine.GenericEngine; | import org.ofbiz.service.engine.*; | [
"org.ofbiz.service"
] | org.ofbiz.service; | 1,207,788 |
private FileContents getFileContents() {
return fileContentsReference.get();
} | FileContents function() { return fileContentsReference.get(); } | /**
* Returns FileContents for this filter.
* @return the FileContents for this filter.
*/ | Returns FileContents for this filter | getFileContents | {
"repo_name": "jonmbake/checkstyle",
"path": "src/main/java/com/puppycrawl/tools/checkstyle/filters/SuppressWithNearbyCommentFilter.java",
"license": "lgpl-2.1",
"size": 15271
} | [
"com.puppycrawl.tools.checkstyle.api.FileContents"
] | import com.puppycrawl.tools.checkstyle.api.FileContents; | import com.puppycrawl.tools.checkstyle.api.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 2,516,688 |
public static void main( String[] a ) throws KettleException {
boolean doConsoleRedirect = !Boolean.getBoolean( "Spoon.Console.Redirect.Disabled" );
if ( doConsoleRedirect ) {
try {
Path parent = Paths.get( System.getProperty( "user.dir" ) + File.separator + "logs" );
Files.createDirecto... | static void function( String[] a ) throws KettleException { boolean doConsoleRedirect = !Boolean.getBoolean( STR ); if ( doConsoleRedirect ) { try { Path parent = Paths.get( System.getProperty( STR ) + File.separator + "logs" ); Files.createDirectories( parent ); Files.deleteIfExists( Paths.get( parent.toString(), STR ... | /**
* This is the main procedure for Spoon.
*
* @param a
* Arguments are available in the "Get System Info" step.
*/ | This is the main procedure for Spoon | main | {
"repo_name": "flbrino/pentaho-kettle",
"path": "ui/src/main/java/org/pentaho/di/ui/spoon/Spoon.java",
"license": "apache-2.0",
"size": 353303
} | [
"java.io.File",
"java.io.FileOutputStream",
"java.io.PrintStream",
"java.nio.file.Files",
"java.nio.file.Path",
"java.nio.file.Paths",
"java.util.concurrent.Callable",
"java.util.concurrent.ExecutorService",
"java.util.concurrent.Executors",
"java.util.concurrent.Future",
"org.apache.commons.io.... | import java.io.File; import java.io.FileOutputStream; import java.io.PrintStream; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.concurrent.Callable; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Futur... | import java.io.*; import java.nio.file.*; import java.util.concurrent.*; import org.apache.commons.io.output.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.core.logging.*; | [
"java.io",
"java.nio",
"java.util",
"org.apache.commons",
"org.pentaho.di"
] | java.io; java.nio; java.util; org.apache.commons; org.pentaho.di; | 1,833,091 |
private Properties readFileHashCacheFile() {
Properties props = new Properties();
Log log = getLog();
if (!this.targetDirectory.exists()) {
this.targetDirectory.mkdirs();
} else if (!this.targetDirectory.isDirectory()) {
log.warn("Something strange here as the "
+ "supposedly target directory is n... | Properties function() { Properties props = new Properties(); Log log = getLog(); if (!this.targetDirectory.exists()) { this.targetDirectory.mkdirs(); } else if (!this.targetDirectory.isDirectory()) { log.warn(STR + STR); return props; } File cacheFile = new File(this.targetDirectory, CACHE_PROPERTIES_FILENAME); if (!ca... | /**
* Read file hash cache file.
*
* @return the properties
*/ | Read file hash cache file | readFileHashCacheFile | {
"repo_name": "astrapi69/maven-formatter-plugin",
"path": "maven-plugin/src/main/java/com/marvinformatics/formatter/FormatterMojo.java",
"license": "apache-2.0",
"size": 19313
} | [
"java.io.BufferedInputStream",
"java.io.File",
"java.io.FileInputStream",
"java.io.FileNotFoundException",
"java.io.IOException",
"java.util.Properties",
"org.apache.maven.plugin.logging.Log"
] | import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Properties; import org.apache.maven.plugin.logging.Log; | import java.io.*; import java.util.*; import org.apache.maven.plugin.logging.*; | [
"java.io",
"java.util",
"org.apache.maven"
] | java.io; java.util; org.apache.maven; | 772,002 |
public void addLocalDataGroup(@NonNull String dataGroup) {
logger.debug("Called addLocalDataGroup for: " + dataGroup);
bridgeManagerProvider.getAccountDao().addDataGroup(dataGroup);
} | void function(@NonNull String dataGroup) { logger.debug(STR + dataGroup); bridgeManagerProvider.getAccountDao().addDataGroup(dataGroup); } | /**
* Add data groups to this account locally. Note: this does not call the server to update the
* participant.
*/ | Add data groups to this account locally. Note: this does not call the server to update the participant | addLocalDataGroup | {
"repo_name": "liujoshua/BridgeAndroidSDK",
"path": "researchstack-sdk/src/main/java/org/sagebionetworks/bridge/researchstack/BridgeDataProvider.java",
"license": "apache-2.0",
"size": 34111
} | [
"android.support.annotation.NonNull"
] | import android.support.annotation.NonNull; | import android.support.annotation.*; | [
"android.support"
] | android.support; | 796,330 |
public Single<List<generated.rx3.reactive.guice.tables.pojos.Something>> findManyBySomehugenumber(Collection<Long> values, int limit) {
return findManyByCondition(Something.SOMETHING.SOMEHUGENUMBER.in(values),limit);
} | Single<List<generated.rx3.reactive.guice.tables.pojos.Something>> function(Collection<Long> values, int limit) { return findManyByCondition(Something.SOMETHING.SOMEHUGENUMBER.in(values),limit); } | /**
* Find records that have <code>someHugeNumber IN (values)</code>
* asynchronously limited by the given limit
*/ | Find records that have <code>someHugeNumber IN (values)</code> asynchronously limited by the given limit | findManyBySomehugenumber | {
"repo_name": "jklingsporn/vertx-jooq",
"path": "vertx-jooq-generate/src/test/java/generated/rx3/reactive/guice/tables/daos/SomethingDao.java",
"license": "mit",
"size": 15145
} | [
"io.reactivex.rxjava3.core.Single",
"java.util.Collection",
"java.util.List"
] | import io.reactivex.rxjava3.core.Single; import java.util.Collection; import java.util.List; | import io.reactivex.rxjava3.core.*; import java.util.*; | [
"io.reactivex.rxjava3",
"java.util"
] | io.reactivex.rxjava3; java.util; | 635,299 |
Call<ResponseBody> getValidAsync(final ServiceCallback<Fish> serviceCallback);
/**
* Put complex types that are polymorphic and have recursive references
*
* @param complexBody Please put a salmon that looks like this:
{
"dtype": "salmon",
"species": "king",
"length": 1,
"ag... | Call<ResponseBody> getValidAsync(final ServiceCallback<Fish> serviceCallback); /** * Put complex types that are polymorphic and have recursive references * * @param complexBody Please put a salmon that looks like this: { "dtype": STR, STR: "king", STR: 1, "age": 1, STR: STR, STR: true, STR: [ { "dtype": "shark", STR: S... | /**
* Get complex types that are polymorphic and have recursive references
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @return the {@link Call} object
*/ | Get complex types that are polymorphic and have recursive references | getValidAsync | {
"repo_name": "BretJohnson/autorest",
"path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodycomplex/Polymorphicrecursive.java",
"license": "mit",
"size": 5464
} | [
"com.microsoft.rest.ServiceCallback",
"com.squareup.okhttp.ResponseBody"
] | import com.microsoft.rest.ServiceCallback; import com.squareup.okhttp.ResponseBody; | import com.microsoft.rest.*; import com.squareup.okhttp.*; | [
"com.microsoft.rest",
"com.squareup.okhttp"
] | com.microsoft.rest; com.squareup.okhttp; | 18,701 |
protected List <StateHashTuple> performRecahabilityAnalysisFrom(State si){
DPrint.cl(debugCode, "Starting reachability analysis");
StateHashTuple sih = this.stateHash(si);
//first check if this is an new state, otherwise we do not need to do any new reachability analysis
if(transitionDynamics.containsK... | List <StateHashTuple> function(State si){ DPrint.cl(debugCode, STR); StateHashTuple sih = this.stateHash(si); if(transitionDynamics.containsKey(sih)){ return new ArrayList<StateHashTuple>(); } LinkedList <StateHashTuple> closedList = new LinkedList<StateHashTuple>(); LinkedList <StateHashTuple> openList = new LinkedLis... | /**
* Finds either all reachable states from si or all states up to the depth that the first goal state is found from si.
* @param si the initial state from which to search for states
* @return the list of all states found
*/ | Finds either all reachable states from si or all states up to the depth that the first goal state is found from si | performRecahabilityAnalysisFrom | {
"repo_name": "jmacglashan/affordances_code",
"path": "src/burlap/behavior/singleagent/planning/stochastic/rtdp/BFSRTDP.java",
"license": "lgpl-3.0",
"size": 8117
} | [
"burlap.behavior.singleagent.planning.ActionTransitions",
"burlap.behavior.singleagent.planning.HashedTransitionProbability",
"burlap.behavior.statehashing.StateHashTuple",
"burlap.debugtools.DPrint",
"burlap.oomdp.core.State",
"java.util.ArrayList",
"java.util.HashSet",
"java.util.LinkedList",
"jav... | import burlap.behavior.singleagent.planning.ActionTransitions; import burlap.behavior.singleagent.planning.HashedTransitionProbability; import burlap.behavior.statehashing.StateHashTuple; import burlap.debugtools.DPrint; import burlap.oomdp.core.State; import java.util.ArrayList; import java.util.HashSet; import java.u... | import burlap.behavior.singleagent.planning.*; import burlap.behavior.statehashing.*; import burlap.debugtools.*; import burlap.oomdp.core.*; import java.util.*; | [
"burlap.behavior.singleagent",
"burlap.behavior.statehashing",
"burlap.debugtools",
"burlap.oomdp.core",
"java.util"
] | burlap.behavior.singleagent; burlap.behavior.statehashing; burlap.debugtools; burlap.oomdp.core; java.util; | 839,869 |
Set<String> getImports(); | Set<String> getImports(); | /**
* Returns the imports of this RuleFlow process.
* They are defined as a List of fully qualified class names.
*
* @return the imports of this RuleFlow process
*/ | Returns the imports of this RuleFlow process. They are defined as a List of fully qualified class names | getImports | {
"repo_name": "pleacu/jbpm",
"path": "jbpm-flow/src/main/java/org/jbpm/process/core/Process.java",
"license": "apache-2.0",
"size": 3227
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,773,047 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.