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 Builder<T, K> withConsistency(ConsistencyLevel level) { Preconditions.checkNotNull(level); this.readConsitency = level; this.writeConsistency = level; return this; }
Builder<T, K> function(ConsistencyLevel level) { Preconditions.checkNotNull(level); this.readConsitency = level; this.writeConsistency = level; return this; }
/** * set both read and write consistency * optional * @param level */
set both read and write consistency optional
withConsistency
{ "repo_name": "bazaarvoice/astyanax", "path": "astyanax-entity-mapper/src/main/java/com/netflix/astyanax/entitystore/CompositeEntityManager.java", "license": "apache-2.0", "size": 24679 }
[ "com.google.common.base.Preconditions", "com.netflix.astyanax.model.ConsistencyLevel" ]
import com.google.common.base.Preconditions; import com.netflix.astyanax.model.ConsistencyLevel;
import com.google.common.base.*; import com.netflix.astyanax.model.*;
[ "com.google.common", "com.netflix.astyanax" ]
com.google.common; com.netflix.astyanax;
1,432,717
private HttpURLConnection makeConnection( URL url, @HttpMethod int httpMethod, @Nullable byte[] httpBody, long position, long length, boolean allowGzip, boolean followRedirects, Map<String, String> requestParameters) throws IOException { HttpURLConnection conn...
HttpURLConnection function( URL url, @HttpMethod int httpMethod, @Nullable byte[] httpBody, long position, long length, boolean allowGzip, boolean followRedirects, Map<String, String> requestParameters) throws IOException { HttpURLConnection connection = openConnection(url); connection.setConnectTimeout(connectTimeoutM...
/** * Configures a connection and opens it. * * @param url The url to connect to. * @param httpMethod The http method. * @param httpBody The body data, or {@code null} if not required. * @param position The byte offset of the requested data. * @param length The length of the requested data, or {@li...
Configures a connection and opens it
makeConnection
{ "repo_name": "ened/ExoPlayer", "path": "library/common/src/main/java/com/google/android/exoplayer2/upstream/DefaultHttpDataSource.java", "license": "apache-2.0", "size": 30099 }
[ "androidx.annotation.Nullable", "com.google.android.exoplayer2.upstream.DataSpec", "com.google.android.exoplayer2.upstream.HttpUtil", "com.google.common.net.HttpHeaders", "java.io.IOException", "java.io.OutputStream", "java.net.HttpURLConnection", "java.util.HashMap", "java.util.Map" ]
import androidx.annotation.Nullable; import com.google.android.exoplayer2.upstream.DataSpec; import com.google.android.exoplayer2.upstream.HttpUtil; import com.google.common.net.HttpHeaders; import java.io.IOException; import java.io.OutputStream; import java.net.HttpURLConnection; import java.util.HashMap; import java...
import androidx.annotation.*; import com.google.android.exoplayer2.upstream.*; import com.google.common.net.*; import java.io.*; import java.net.*; import java.util.*;
[ "androidx.annotation", "com.google.android", "com.google.common", "java.io", "java.net", "java.util" ]
androidx.annotation; com.google.android; com.google.common; java.io; java.net; java.util;
910,862
public IClasspathEntry getResult() { return fSourceAttachmentBlock.getNewEntry(); }
IClasspathEntry function() { return fSourceAttachmentBlock.getNewEntry(); }
/** * Returns the configured class path entry. * * @return the configured class path entry */
Returns the configured class path entry
getResult
{ "repo_name": "kumattau/JDTPatch", "path": "org.eclipse.jdt.ui/src/org/eclipse/jdt/internal/ui/wizards/buildpaths/SourceAttachmentDialog.java", "license": "epl-1.0", "size": 3854 }
[ "org.eclipse.jdt.core.IClasspathEntry" ]
import org.eclipse.jdt.core.IClasspathEntry;
import org.eclipse.jdt.core.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
1,587,014
public void decode(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception { IoBufferEx inEx = (IoBufferEx) in; if (!session.getTransportMetadata().hasFragmentation()) { while (in.hasRemaining()) { if (!doDecode(session, inEx, out)) { ...
void function(IoSession session, IoBuffer in, ProtocolDecoderOutput out) throws Exception { IoBufferEx inEx = (IoBufferEx) in; if (!session.getTransportMetadata().hasFragmentation()) { while (in.hasRemaining()) { if (!doDecode(session, inEx, out)) { break; } } return; } boolean usingSessionBuffer = true; IoBufferEx buf...
/** * Cumulates content of <tt>in</tt> into internal buffer and forwards * decoding request to {@link #doDecode(IoSession, IoBuffer, ProtocolDecoderOutput)}. * <tt>doDecode()</tt> is invoked repeatedly until it returns <tt>false</tt> * and the cumulative buffer is compacted after decoding ends. ...
Cumulates content of in into internal buffer and forwards decoding request to <code>#doDecode(IoSession, IoBuffer, ProtocolDecoderOutput)</code>. doDecode() is invoked repeatedly until it returns false and the cumulative buffer is compacted after decoding ends
decode
{ "repo_name": "EArdeleanu/gateway", "path": "mina.netty/src/main/java/org/kaazing/mina/filter/codec/CumulativeProtocolDecoderEx.java", "license": "apache-2.0", "size": 10719 }
[ "java.nio.ByteBuffer", "org.apache.mina.core.buffer.IoBuffer", "org.apache.mina.core.session.IoSession", "org.apache.mina.filter.codec.ProtocolDecoderOutput", "org.kaazing.mina.core.buffer.IoBufferEx" ]
import java.nio.ByteBuffer; import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.session.IoSession; import org.apache.mina.filter.codec.ProtocolDecoderOutput; import org.kaazing.mina.core.buffer.IoBufferEx;
import java.nio.*; import org.apache.mina.core.buffer.*; import org.apache.mina.core.session.*; import org.apache.mina.filter.codec.*; import org.kaazing.mina.core.buffer.*;
[ "java.nio", "org.apache.mina", "org.kaazing.mina" ]
java.nio; org.apache.mina; org.kaazing.mina;
418,218
public XYURLGenerator getURLGenerator() { return this.urlGenerator; }
XYURLGenerator function() { return this.urlGenerator; }
/** * Returns the URL generator for HTML image maps. * * @return the URL generator (possibly null). */
Returns the URL generator for HTML image maps
getURLGenerator
{ "repo_name": "simeshev/parabuild-ci", "path": "3rdparty/jfreechart0921/source/org/jfree/chart/plot/ContourPlot.java", "license": "lgpl-3.0", "size": 58661 }
[ "org.jfree.chart.urls.XYURLGenerator" ]
import org.jfree.chart.urls.XYURLGenerator;
import org.jfree.chart.urls.*;
[ "org.jfree.chart" ]
org.jfree.chart;
444,882
public static void offerSuperUser(Activity activity) { getInternals().offerSuperUser(activity); }
static void function(Activity activity) { getInternals().offerSuperUser(activity); }
/** * This will launch the Android market looking for SuperUser * * @param activity pass in your Activity */
This will launch the Android market looking for SuperUser
offerSuperUser
{ "repo_name": "Morlunk/Mountie", "path": "app/src/main/java/com/stericson/RootTools/RootTools.java", "license": "gpl-3.0", "size": 34186 }
[ "android.app.Activity" ]
import android.app.Activity;
import android.app.*;
[ "android.app" ]
android.app;
2,606,409
void createSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties);
void createSchema(Session session, CatalogSchemaName schema, Map<String, Object> properties);
/** * Creates a schema. */
Creates a schema
createSchema
{ "repo_name": "Yaliang/presto", "path": "presto-main/src/main/java/com/facebook/presto/metadata/Metadata.java", "license": "apache-2.0", "size": 12623 }
[ "com.facebook.presto.Session", "com.facebook.presto.spi.CatalogSchemaName", "java.util.Map" ]
import com.facebook.presto.Session; import com.facebook.presto.spi.CatalogSchemaName; import java.util.Map;
import com.facebook.presto.*; import com.facebook.presto.spi.*; import java.util.*;
[ "com.facebook.presto", "java.util" ]
com.facebook.presto; java.util;
136,858
private void sendHandshakeOpenMessage() throws IOException, PcepParseException { PcepOpenObject pcepOpenobj = factory1.buildOpenObject() .setSessionId(sessionId) .setKeepAliveTime(keepAliveTime) .setDeadTime(deadTime) .build(); PcepMess...
void function() throws IOException, PcepParseException { PcepOpenObject pcepOpenobj = factory1.buildOpenObject() .setSessionId(sessionId) .setKeepAliveTime(keepAliveTime) .setDeadTime(deadTime) .build(); PcepMessage msg = factory1.buildOpenMsg() .setPcepOpenObj(pcepOpenobj) .build(); log.debug(STR, channel.getRemoteAdd...
/** * Send handshake open message. * * @throws IOException,PcepParseException */
Send handshake open message
sendHandshakeOpenMessage
{ "repo_name": "lsinfo3/onos", "path": "protocols/pcep/ctl/src/main/java/org/onosproject/pcep/controller/impl/PcepChannelHandler.java", "license": "apache-2.0", "size": 26832 }
[ "java.io.IOException", "java.util.Collections", "org.onosproject.pcepio.exceptions.PcepParseException", "org.onosproject.pcepio.protocol.PcepMessage", "org.onosproject.pcepio.protocol.PcepOpenObject" ]
import java.io.IOException; import java.util.Collections; import org.onosproject.pcepio.exceptions.PcepParseException; import org.onosproject.pcepio.protocol.PcepMessage; import org.onosproject.pcepio.protocol.PcepOpenObject;
import java.io.*; import java.util.*; import org.onosproject.pcepio.exceptions.*; import org.onosproject.pcepio.protocol.*;
[ "java.io", "java.util", "org.onosproject.pcepio" ]
java.io; java.util; org.onosproject.pcepio;
1,900,330
public @Nonnull SnapshotFilterOptions withTags(@Nonnull Map<String, String> tags) { this.tags = tags; return this; }
@Nonnull SnapshotFilterOptions function(@Nonnull Map<String, String> tags) { this.tags = tags; return this; }
/** * Builds filtering options that will force filtering on the specified meta-data tags. * @param tags the meta-data tags on which to filter * @return this */
Builds filtering options that will force filtering on the specified meta-data tags
withTags
{ "repo_name": "unwin/dasein-cloud-core", "path": "src/main/java/org/dasein/cloud/compute/SnapshotFilterOptions.java", "license": "apache-2.0", "size": 8988 }
[ "java.util.Map", "javax.annotation.Nonnull" ]
import java.util.Map; import javax.annotation.Nonnull;
import java.util.*; import javax.annotation.*;
[ "java.util", "javax.annotation" ]
java.util; javax.annotation;
941,623
@Override protected Map<String, Object> variablesMap(final IValidatable<String> validatable) { final Map<String, Object> map = super.variablesMap(validatable); map.put("pattern", EMAIL_PATTERN); return map; }
Map<String, Object> function(final IValidatable<String> validatable) { final Map<String, Object> map = super.variablesMap(validatable); map.put(STR, EMAIL_PATTERN); return map; }
/** * Checks a value against this <code>PatternValidator</code>'s {@link Pattern}. * * @param validatable * the <code>IValidatable</code> to check */
Checks a value against this <code>PatternValidator</code>'s <code>Pattern</code>
variablesMap
{ "repo_name": "afiantara/apache-wicket-1.5.7", "path": "src/wicket-extensions/src/main/java/org/apache/wicket/extensions/validation/validator/RfcCompliantEmailAddressValidator.java", "license": "apache-2.0", "size": 11029 }
[ "java.util.Map", "org.apache.wicket.validation.IValidatable" ]
import java.util.Map; import org.apache.wicket.validation.IValidatable;
import java.util.*; import org.apache.wicket.validation.*;
[ "java.util", "org.apache.wicket" ]
java.util; org.apache.wicket;
1,216,336
public void addLocalizedAttributes(AttributeAwareBuilder<?> builder, String property) { addLocalizedAttributes(builder, LABEL, property); }
void function(AttributeAwareBuilder<?> builder, String property) { addLocalizedAttributes(builder, LABEL, property); }
/** * Add "label" localized attributes for the given property. * @param variable * @param property */
Add "label" localized attributes for the given property
addLocalizedAttributes
{ "repo_name": "apruden/onyx", "path": "onyx-core/src/main/java/org/obiba/onyx/magma/OnyxAttributeHelper.java", "license": "gpl-3.0", "size": 6879 }
[ "org.obiba.magma.AttributeAwareBuilder" ]
import org.obiba.magma.AttributeAwareBuilder;
import org.obiba.magma.*;
[ "org.obiba.magma" ]
org.obiba.magma;
916,294
public static String getPageDescription(@NonNull final Resources resources, final int pageIndex) { return getFormattedText(resources, pageIndex, OnboardingData.pageDescriptions, OnboardingData.pageDescriptionsFormatArgs); }
static String function(@NonNull final Resources resources, final int pageIndex) { return getFormattedText(resources, pageIndex, OnboardingData.pageDescriptions, OnboardingData.pageDescriptionsFormatArgs); }
/** * Provides onboarding page description with formatted args if available. * * @param resources Android resources * @param pageIndex Index of page, can't be more than {@link #getTotalPages()}. * @return Formatted page description. */
Provides onboarding page description with formatted args if available
getPageDescription
{ "repo_name": "amardeshbd/android-daily-headlines", "path": "core-lib/src/main/java/info/hossainkhan/android/core/onboarding/OnboardingData.java", "license": "mit", "size": 5510 }
[ "android.content.res.Resources", "android.support.annotation.NonNull" ]
import android.content.res.Resources; import android.support.annotation.NonNull;
import android.content.res.*; import android.support.annotation.*;
[ "android.content", "android.support" ]
android.content; android.support;
2,103,217
private List<CmsResource> getResources() { List<CmsResource> result = new LinkedList<CmsResource>(); CmsObject cms = getCms(); CmsResourceFilter filter = CmsResourceFilter.ALL; try { for (String path : m_paths) { List<CmsResource> resources = cms.readReso...
List<CmsResource> function() { List<CmsResource> result = new LinkedList<CmsResource>(); CmsObject cms = getCms(); CmsResourceFilter filter = CmsResourceFilter.ALL; try { for (String path : m_paths) { List<CmsResource> resources = cms.readResources(path, filter, true); for (CmsResource resource : resources) { if (resou...
/** * Reads the resources available for processing based on the path parameters.<p> * * @return the resources available for processing based on the path parameters. */
Reads the resources available for processing based on the path parameters
getResources
{ "repo_name": "ggiudetti/opencms-core", "path": "src-modules/org/opencms/workplace/tools/content/languagecopy/CmsLanguageCopySelectionList.java", "license": "lgpl-2.1", "size": 20490 }
[ "java.util.Collections", "java.util.LinkedList", "java.util.List", "org.opencms.file.CmsObject", "org.opencms.file.CmsResource", "org.opencms.file.CmsResourceFilter", "org.opencms.file.types.CmsResourceTypeXmlContent", "org.opencms.file.types.CmsResourceTypeXmlPage", "org.opencms.main.CmsException" ...
import java.util.Collections; import java.util.LinkedList; import java.util.List; import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.file.CmsResourceFilter; import org.opencms.file.types.CmsResourceTypeXmlContent; import org.opencms.file.types.CmsResourceTypeXmlPage; import org.o...
import java.util.*; import org.opencms.file.*; import org.opencms.file.types.*; import org.opencms.main.*;
[ "java.util", "org.opencms.file", "org.opencms.main" ]
java.util; org.opencms.file; org.opencms.main;
1,466,812
public Map<String, MigrationValidationDatabaseSummaryResult> summaryResults() { return this.summaryResults; }
Map<String, MigrationValidationDatabaseSummaryResult> function() { return this.summaryResults; }
/** * Get the summaryResults property: Validation summary results for each database. * * @return the summaryResults value. */
Get the summaryResults property: Validation summary results for each database
summaryResults
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/datamigration/azure-resourcemanager-datamigration/src/main/java/com/azure/resourcemanager/datamigration/models/MigrateSqlServerSqlDbTaskOutputValidationResult.java", "license": "mit", "size": 3378 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,551,280
private static Map popFromStack(SessionState state) { logger.debug("ResourcesAction.popFromStack()"); Map current_stack_frame = null; Stack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK); if(operations_stack == null) { operations_stack = new Stack(); state.setAttribu...
static Map function(SessionState state) { logger.debug(STR); Map current_stack_frame = null; Stack operations_stack = (Stack) state.getAttribute(STATE_SUSPENDED_OPERATIONS_STACK); if(operations_stack == null) { operations_stack = new Stack(); state.setAttribute(STATE_SUSPENDED_OPERATIONS_STACK, operations_stack); } if(...
/** * Remove and return the top item from the suspended-operations stack. * @param state The current session state, including the STATE_SUSPENDED_OPERATIONS_STACK attribute. * @return The item that has just been removed from the stack, or null if the stack was empty. */
Remove and return the top item from the suspended-operations stack
popFromStack
{ "repo_name": "noondaysun/sakai", "path": "content/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java", "license": "apache-2.0", "size": 337685 }
[ "java.util.Map", "java.util.Stack", "org.sakaiproject.event.api.SessionState" ]
import java.util.Map; import java.util.Stack; import org.sakaiproject.event.api.SessionState;
import java.util.*; import org.sakaiproject.event.api.*;
[ "java.util", "org.sakaiproject.event" ]
java.util; org.sakaiproject.event;
2,312,228
protected final void setHeaderScroll(int value) { if (DEBUG) { Log.d(LOG_TAG, "setHeaderScroll: " + value); } // Clamp value to with pull scroll range final int maximumPullScroll = getMaximumPullScroll(); value = Math.min(maximumPullScroll, Math.max(-maximumPullScroll, value)); if (mLayoutVisibility...
final void function(int value) { if (DEBUG) { Log.d(LOG_TAG, STR + value); } final int maximumPullScroll = getMaximumPullScroll(); value = Math.min(maximumPullScroll, Math.max(-maximumPullScroll, value)); if (mLayoutVisibilityChangesEnabled) { if (value < 0) { mHeaderLayout.setVisibility(View.VISIBLE); } else if (value...
/** * Helper method which just calls scrollTo() in the correct scrolling * direction. * * @param value - New Scroll value */
Helper method which just calls scrollTo() in the correct scrolling direction
setHeaderScroll
{ "repo_name": "cowthan/AyoWeibo", "path": "ayoview/src/main/java/org/ayo/view/listview/pulltorefresh/PullToRefreshBase.java", "license": "apache-2.0", "size": 46310 }
[ "android.util.Log", "android.view.View", "org.ayo.view.listview.pulltorefresh.internal.ViewCompat" ]
import android.util.Log; import android.view.View; import org.ayo.view.listview.pulltorefresh.internal.ViewCompat;
import android.util.*; import android.view.*; import org.ayo.view.listview.pulltorefresh.internal.*;
[ "android.util", "android.view", "org.ayo.view" ]
android.util; android.view; org.ayo.view;
1,149,015
protected JdbcTemplate getJdbcTemplate() { if (jdbcTemplate == null) { jdbcTemplate = new JdbcTemplate(dataSource); } return jdbcTemplate; }
JdbcTemplate function() { if (jdbcTemplate == null) { jdbcTemplate = new JdbcTemplate(dataSource); } return jdbcTemplate; }
/** * Gets {@link JdbcTemplate} for test DB. * * @return JdbcTemplate */
Gets <code>JdbcTemplate</code> for test DB
getJdbcTemplate
{ "repo_name": "integram/cleverbus", "path": "test/src/main/java/org/cleverbus/test/AbstractDbTest.java", "license": "gpl-3.0", "size": 7547 }
[ "org.springframework.jdbc.core.JdbcTemplate" ]
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.*;
[ "org.springframework.jdbc" ]
org.springframework.jdbc;
2,273,109
public static ImmutableList<Artifact> getBootClasspath(JavaToolchainProvider javaToolchain) { return ImmutableList.copyOf(javaToolchain.getBootclasspath()); }
static ImmutableList<Artifact> function(JavaToolchainProvider javaToolchain) { return ImmutableList.copyOf(javaToolchain.getBootclasspath()); }
/** * Returns the javac bootclasspath artifacts from the given toolchain (if it has any) or the rule. */
Returns the javac bootclasspath artifacts from the given toolchain (if it has any) or the rule
getBootClasspath
{ "repo_name": "snnn/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/java/JavaCompilationHelper.java", "license": "apache-2.0", "size": 34730 }
[ "com.google.common.collect.ImmutableList", "com.google.devtools.build.lib.actions.Artifact" ]
import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.actions.Artifact;
import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
2,128,263
public static IWContext getIWContext() { try { FacesContext context = FacesContext.getCurrentInstance(); if (context == null) { return null; } return IWContext.getIWContext(context); } catch (Exception e) { LOGGER.log(Level.WARNING, IWContext.class.getName() + " is unavailable", e); return ...
static IWContext function() { try { FacesContext context = FacesContext.getCurrentInstance(); if (context == null) { return null; } return IWContext.getIWContext(context); } catch (Exception e) { LOGGER.log(Level.WARNING, IWContext.class.getName() + STR, e); return null; } }
/** * Almost identical method to {@link IWContext#getInstance()} just this one doesn't throw any exception - it's very important * using it with DWR * @return */
Almost identical method to <code>IWContext#getInstance()</code> just this one doesn't throw any exception - it's very important using it with DWR
getIWContext
{ "repo_name": "grimurjonsson/com.idega.core", "path": "src/java/com/idega/util/CoreUtil.java", "license": "gpl-3.0", "size": 9044 }
[ "com.idega.presentation.IWContext", "java.util.logging.Level", "javax.faces.context.FacesContext" ]
import com.idega.presentation.IWContext; import java.util.logging.Level; import javax.faces.context.FacesContext;
import com.idega.presentation.*; import java.util.logging.*; import javax.faces.context.*;
[ "com.idega.presentation", "java.util", "javax.faces" ]
com.idega.presentation; java.util; javax.faces;
480,429
public CoAPResource createObservationRelationship(URI uri, CoAPResourceObserver observer) throws CoAPException { return obsHandler.createObservationRelationship(uri, observer); }
CoAPResource function(URI uri, CoAPResourceObserver observer) throws CoAPException { return obsHandler.createObservationRelationship(uri, observer); }
/** * This method creates an observation relationship with the resource * identified by the given URI and the observer. If there already exist a * relationship with the resource, the same relationship will be used. * * @param uri URI to the resource * @param observer observer who wants to ...
This method creates an observation relationship with the resource identified by the given URI and the observer. If there already exist a relationship with the resource, the same relationship will be used
createObservationRelationship
{ "repo_name": "Ericsson-LMF/IoT-Gateway", "path": "osgi/basedriver.coap/src/main/java/com/ericsson/deviceaccess/coap/basedriver/osgi/LocalCoAPEndpoint.java", "license": "gpl-2.0", "size": 37595 }
[ "com.ericsson.deviceaccess.coap.basedriver.api.CoAPException", "com.ericsson.deviceaccess.coap.basedriver.api.resources.CoAPResource", "com.ericsson.deviceaccess.coap.basedriver.api.resources.CoAPResourceObserver" ]
import com.ericsson.deviceaccess.coap.basedriver.api.CoAPException; import com.ericsson.deviceaccess.coap.basedriver.api.resources.CoAPResource; import com.ericsson.deviceaccess.coap.basedriver.api.resources.CoAPResourceObserver;
import com.ericsson.deviceaccess.coap.basedriver.api.*; import com.ericsson.deviceaccess.coap.basedriver.api.resources.*;
[ "com.ericsson.deviceaccess" ]
com.ericsson.deviceaccess;
1,238,138
public DiscoverItems discoverCommands(Jid jid) throws XMPPException, SmackException, InterruptedException { return serviceDiscoveryManager.discoverItems(jid, NAMESPACE); }
DiscoverItems function(Jid jid) throws XMPPException, SmackException, InterruptedException { return serviceDiscoveryManager.discoverItems(jid, NAMESPACE); }
/** * Discover the commands of an specific JID. The <code>jid</code> is a * full JID. * * @param jid the full JID to retrieve the commands for. * @return the discovered items. * @throws XMPPException if the operation failed for some reason. * @throws SmackException if there was no res...
Discover the commands of an specific JID. The <code>jid</code> is a full JID
discoverCommands
{ "repo_name": "kkroid/OnechatSmack", "path": "smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java", "license": "apache-2.0", "size": 29954 }
[ "org.jivesoftware.smack.SmackException", "org.jivesoftware.smack.XMPPException", "org.jivesoftware.smackx.disco.packet.DiscoverItems", "org.jxmpp.jid.Jid" ]
import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.XMPPException; import org.jivesoftware.smackx.disco.packet.DiscoverItems; import org.jxmpp.jid.Jid;
import org.jivesoftware.smack.*; import org.jivesoftware.smackx.disco.packet.*; import org.jxmpp.jid.*;
[ "org.jivesoftware.smack", "org.jivesoftware.smackx", "org.jxmpp.jid" ]
org.jivesoftware.smack; org.jivesoftware.smackx; org.jxmpp.jid;
134,945
public Value eval(Env env) { return _expr.eval(env).toObject(env); }
Value function(Env env) { return _expr.eval(env).toObject(env); }
/** * Evaluates the expression. * * @param env the calling environment. * * @return the expression value. */
Evaluates the expression
eval
{ "repo_name": "moriyoshi/quercus-gae", "path": "src/main/java/com/caucho/quercus/expr/ToObjectExpr.java", "license": "gpl-2.0", "size": 1689 }
[ "com.caucho.quercus.env.Env", "com.caucho.quercus.env.Value" ]
import com.caucho.quercus.env.Env; import com.caucho.quercus.env.Value;
import com.caucho.quercus.env.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
1,269,088
private boolean canExecuteProtocolOnlineReviewTask(String userId, ProtocolOnlineReviewDocument doc, String taskName) { ProtocolOnlineReviewTask task = new ProtocolOnlineReviewTask(taskName, (ProtocolOnlineReview)doc.getProtocolOnlineReview()); TaskAuthorizationService taskAuthenticationServic...
boolean function(String userId, ProtocolOnlineReviewDocument doc, String taskName) { ProtocolOnlineReviewTask task = new ProtocolOnlineReviewTask(taskName, (ProtocolOnlineReview)doc.getProtocolOnlineReview()); TaskAuthorizationService taskAuthenticationService = KraServiceLocator.getService(TaskAuthorizationService.cla...
/** * Does the user have permission to execute the given task for a protocol? * @param username the user's username * @param doc the protocol document * @param taskName the name of the task * @return true if has permission; otherwise false */
Does the user have permission to execute the given task for a protocol
canExecuteProtocolOnlineReviewTask
{ "repo_name": "vivantech/kc_fixes", "path": "src/main/java/org/kuali/kra/irb/onlinereview/authorization/ProtocolOnlineReviewDocumentAuthorizer.java", "license": "apache-2.0", "size": 7763 }
[ "org.kuali.kra.infrastructure.KraServiceLocator", "org.kuali.kra.irb.ProtocolOnlineReviewDocument", "org.kuali.kra.irb.onlinereview.ProtocolOnlineReview", "org.kuali.kra.service.TaskAuthorizationService" ]
import org.kuali.kra.infrastructure.KraServiceLocator; import org.kuali.kra.irb.ProtocolOnlineReviewDocument; import org.kuali.kra.irb.onlinereview.ProtocolOnlineReview; import org.kuali.kra.service.TaskAuthorizationService;
import org.kuali.kra.infrastructure.*; import org.kuali.kra.irb.*; import org.kuali.kra.irb.onlinereview.*; import org.kuali.kra.service.*;
[ "org.kuali.kra" ]
org.kuali.kra;
831,961
synchronized void setStorageDirectories(Collection<URI> fsNameDirs, Collection<URI> fsEditsDirs) throws IOException { this.storageDirs.clear(); this.removedStorageDirs.clear(); // Add all name dirs with appropriate NameNodeDirType for (URI dirName : fsNa...
synchronized void setStorageDirectories(Collection<URI> fsNameDirs, Collection<URI> fsEditsDirs) throws IOException { this.storageDirs.clear(); this.removedStorageDirs.clear(); for (URI dirName : fsNameDirs) { checkSchemeConsistency(dirName); boolean isAlsoEdits = false; for (URI editsDirName : fsEditsDirs) { if (edits...
/** * Set the storage directories which will be used. NNStorage.close() should * be called before this to ensure any previous storage directories have been * freed. * * Synchronized due to initialization of storageDirs and removedStorageDirs. * * @param fsNameDirs Locations to store images. * @p...
Set the storage directories which will be used. NNStorage.close() should be called before this to ensure any previous storage directories have been freed. Synchronized due to initialization of storageDirs and removedStorageDirs
setStorageDirectories
{ "repo_name": "steveloughran/hadoop-hdfs", "path": "src/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java", "license": "apache-2.0", "size": 33563 }
[ "java.io.File", "java.io.IOException", "java.util.Collection", "org.apache.hadoop.hdfs.server.namenode.JournalStream" ]
import java.io.File; import java.io.IOException; import java.util.Collection; import org.apache.hadoop.hdfs.server.namenode.JournalStream;
import java.io.*; import java.util.*; import org.apache.hadoop.hdfs.server.namenode.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,113,608
public ActionCriteria getUsageFilter() { return usageFilter; }
ActionCriteria function() { return usageFilter; }
/** * Gets the usage filter * @return the usage filter */
Gets the usage filter
getUsageFilter
{ "repo_name": "openmrs/openmrs-module-usagestatistics", "path": "omod/src/main/java/org/openmrs/module/usagestatistics/web/view/chart/AbstractChartView.java", "license": "mpl-2.0", "size": 3930 }
[ "org.openmrs.module.usagestatistics.ActionCriteria" ]
import org.openmrs.module.usagestatistics.ActionCriteria;
import org.openmrs.module.usagestatistics.*;
[ "org.openmrs.module" ]
org.openmrs.module;
1,518,527
public Set<HttpMethod> allowedRequestMethods() { return Collections.unmodifiableSet(allowedRequestMethods); }
Set<HttpMethod> function() { return Collections.unmodifiableSet(allowedRequestMethods); }
/** * Returns the allowed set of Request Methods. The Http methods that should be returned in the * CORS 'Access-Control-Request-Method' response header. * * @return {@code Set} of {@link HttpMethod}s that represent the allowed Request Methods. */
Returns the allowed set of Request Methods. The Http methods that should be returned in the CORS 'Access-Control-Request-Method' response header
allowedRequestMethods
{ "repo_name": "strapdata/elassandra-test", "path": "core/src/main/java/org/elasticsearch/http/netty/cors/CorsConfig.java", "license": "apache-2.0", "size": 8533 }
[ "java.util.Collections", "java.util.Set", "org.jboss.netty.handler.codec.http.HttpMethod" ]
import java.util.Collections; import java.util.Set; import org.jboss.netty.handler.codec.http.HttpMethod;
import java.util.*; import org.jboss.netty.handler.codec.http.*;
[ "java.util", "org.jboss.netty" ]
java.util; org.jboss.netty;
548,458
public void setRegion(Region region) { if (region != populationModel.getRegion()) { this.populationModel = new ARXPopulationModel(region); this.modified = true; } }
void function(Region region) { if (region != populationModel.getRegion()) { this.populationModel = new ARXPopulationModel(region); this.modified = true; } }
/** * Sets the region * @param region */
Sets the region
setRegion
{ "repo_name": "COWYARD/arx", "path": "src/gui/org/deidentifier/arx/gui/model/ModelRisk.java", "license": "apache-2.0", "size": 7828 }
[ "org.deidentifier.arx.ARXPopulationModel" ]
import org.deidentifier.arx.ARXPopulationModel;
import org.deidentifier.arx.*;
[ "org.deidentifier.arx" ]
org.deidentifier.arx;
1,378,147
public HttpClientRequestActionBuilder patch(String path) { return request(HttpMethod.PATCH, path); }
HttpClientRequestActionBuilder function(String path) { return request(HttpMethod.PATCH, path); }
/** * Sends Http PATCH request as client to server. */
Sends Http PATCH request as client to server
patch
{ "repo_name": "hmmlopez/citrus", "path": "modules/citrus-java-dsl/src/main/java/com/consol/citrus/dsl/builder/HttpClientActionBuilder.java", "license": "apache-2.0", "size": 6745 }
[ "org.springframework.http.HttpMethod" ]
import org.springframework.http.HttpMethod;
import org.springframework.http.*;
[ "org.springframework.http" ]
org.springframework.http;
1,454,465
public AsyncRequest createPutRequest(String url, Object dtoData, boolean async) { return createRequest(RequestBuilder.PUT, url, dtoData, async); }
AsyncRequest function(String url, Object dtoData, boolean async) { return createRequest(RequestBuilder.PUT, url, dtoData, async); }
/** * Creates new PUT request to the specified {@code url} with the provided {@code data}. * * @param url * request URL * @param dtoData * the DTO to send as body of the request. Must implement {@link JsonSerializable} interface. May be {@code null}. * @param async ...
Creates new PUT request to the specified url with the provided data
createPutRequest
{ "repo_name": "cdietrich/che", "path": "ide/commons-gwt/src/main/java/org/eclipse/che/ide/rest/AsyncRequestFactory.java", "license": "epl-1.0", "size": 9885 }
[ "com.google.gwt.http.client.RequestBuilder" ]
import com.google.gwt.http.client.RequestBuilder;
import com.google.gwt.http.client.*;
[ "com.google.gwt" ]
com.google.gwt;
1,775,521
@Test public void testGetCreated_1() throws Exception { DataFileDescriptor fixture = new DataFileDescriptor(); fixture.setComments(""); fixture.setCreator(""); fixture.setName(""); fixture.setDataUrl(""); fixture.setId(new Integer(1)); fixture.setC...
void function() throws Exception { DataFileDescriptor fixture = new DataFileDescriptor(); fixture.setComments(STRSTRSTR"); fixture.setId(new Integer(1)); fixture.setCreated(new Date()); fixture.setModified(new Date()); Date result = fixture.getCreated(); assertNotNull(result); }
/** * Run the Date getCreated() method test. * * @throws Exception * * @generatedBy CodePro at 12/15/14 3:00 PM */
Run the Date getCreated() method test
testGetCreated_1
{ "repo_name": "rkadle/Tank", "path": "rest/api/datafile/src/test/java/com/intuit/tank/api/model/v1/datafile/DataFileDescriptorTest.java", "license": "epl-1.0", "size": 11816 }
[ "com.intuit.tank.api.model.v1.datafile.DataFileDescriptor", "java.util.Date", "org.junit.Assert" ]
import com.intuit.tank.api.model.v1.datafile.DataFileDescriptor; import java.util.Date; import org.junit.Assert;
import com.intuit.tank.api.model.v1.datafile.*; import java.util.*; import org.junit.*;
[ "com.intuit.tank", "java.util", "org.junit" ]
com.intuit.tank; java.util; org.junit;
2,308,379
public static <T> Predicate<T> alwaysFalse() { return t -> false; }
static <T> Predicate<T> function() { return t -> false; }
/** * Returns a predicate that always evaluates to {@code false}. */
Returns a predicate that always evaluates to false
alwaysFalse
{ "repo_name": "diffplug/durian", "path": "src/com/diffplug/common/base/Predicates.java", "license": "apache-2.0", "size": 10451 }
[ "java.util.function.Predicate" ]
import java.util.function.Predicate;
import java.util.function.*;
[ "java.util" ]
java.util;
324,728
public Node start() throws NodeValidationException { if (!lifecycle.moveToStarted()) { return this; } Logger logger = Loggers.getLogger(Node.class, NODE_NAME_SETTING.get(settings)); logger.info("starting ..."); pluginLifecycleComponents.forEach(LifecycleComponent...
Node function() throws NodeValidationException { if (!lifecycle.moveToStarted()) { return this; } Logger logger = Loggers.getLogger(Node.class, NODE_NAME_SETTING.get(settings)); logger.info(STR); pluginLifecycleComponents.forEach(LifecycleComponent::start); injector.getInstance(MappingUpdatedAction.class).setClient(cli...
/** * Start the node. If the node is already started, this method is no-op. */
Start the node. If the node is already started, this method is no-op
start
{ "repo_name": "nezirus/elasticsearch", "path": "core/src/main/java/org/elasticsearch/node/Node.java", "license": "apache-2.0", "size": 53944 }
[ "java.util.concurrent.CountDownLatch", "java.util.stream.Collectors", "org.apache.logging.log4j.Logger", "org.elasticsearch.cluster.ClusterState", "org.elasticsearch.cluster.ClusterStateObserver", "org.elasticsearch.cluster.NodeConnectionsService", "org.elasticsearch.cluster.action.index.MappingUpdatedA...
import java.util.concurrent.CountDownLatch; import java.util.stream.Collectors; import org.apache.logging.log4j.Logger; import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.cluster.ClusterStateObserver; import org.elasticsearch.cluster.NodeConnectionsService; import org.elasticsearch.cluster.action.i...
import java.util.concurrent.*; import java.util.stream.*; import org.apache.logging.log4j.*; import org.elasticsearch.cluster.*; import org.elasticsearch.cluster.action.index.*; import org.elasticsearch.cluster.routing.*; import org.elasticsearch.cluster.service.*; import org.elasticsearch.common.component.*; import or...
[ "java.util", "org.apache.logging", "org.elasticsearch.cluster", "org.elasticsearch.common", "org.elasticsearch.discovery", "org.elasticsearch.gateway", "org.elasticsearch.indices", "org.elasticsearch.monitor", "org.elasticsearch.plugins", "org.elasticsearch.search", "org.elasticsearch.snapshots"...
java.util; org.apache.logging; org.elasticsearch.cluster; org.elasticsearch.common; org.elasticsearch.discovery; org.elasticsearch.gateway; org.elasticsearch.indices; org.elasticsearch.monitor; org.elasticsearch.plugins; org.elasticsearch.search; org.elasticsearch.snapshots; org.elasticsearch.tasks; org.elasticsearch.t...
2,336,443
public FilterConfig getFilterConfig() { return (this.filterConfig); }
FilterConfig function() { return (this.filterConfig); }
/** * Return the filter configuration object for this filter. * * @return */
Return the filter configuration object for this filter
getFilterConfig
{ "repo_name": "rlweb/DIMS", "path": "DIMS/src/java/Filters/AuthFilter.java", "license": "gpl-2.0", "size": 4288 }
[ "javax.servlet.FilterConfig" ]
import javax.servlet.FilterConfig;
import javax.servlet.*;
[ "javax.servlet" ]
javax.servlet;
1,980,638
private SimpleSink.SimpleWriteOperation buildWriteOperation( TemporaryFileRetention fileRetention) { SimpleSink sink = buildSink(); return new SimpleSink.SimpleWriteOperation(sink, getBaseTempFilename(), fileRetention); }
SimpleSink.SimpleWriteOperation function( TemporaryFileRetention fileRetention) { SimpleSink sink = buildSink(); return new SimpleSink.SimpleWriteOperation(sink, getBaseTempFilename(), fileRetention); }
/** * Build a SimpleWriteOperation with default options and the given file retention policy. */
Build a SimpleWriteOperation with default options and the given file retention policy
buildWriteOperation
{ "repo_name": "ahartley39/DataflowJavaSDK", "path": "sdk/src/test/java/com/google/cloud/dataflow/sdk/io/FileBasedSinkTest.java", "license": "apache-2.0", "size": 17403 }
[ "com.google.cloud.dataflow.sdk.io.FileBasedSink" ]
import com.google.cloud.dataflow.sdk.io.FileBasedSink;
import com.google.cloud.dataflow.sdk.io.*;
[ "com.google.cloud" ]
com.google.cloud;
1,166,690
public static deltaRangeRateCor2Type fromPerUnaligned(byte[] encodedBytes) { deltaRangeRateCor2Type result = new deltaRangeRateCor2Type(); result.decodePerUnaligned(new BitStreamReader(encodedBytes)); return result; }
static deltaRangeRateCor2Type function(byte[] encodedBytes) { deltaRangeRateCor2Type result = new deltaRangeRateCor2Type(); result.decodePerUnaligned(new BitStreamReader(encodedBytes)); return result; }
/** * Creates a new deltaRangeRateCor2Type from encoded stream. */
Creates a new deltaRangeRateCor2Type from encoded stream
fromPerUnaligned
{ "repo_name": "google/supl-client", "path": "src/main/java/com/google/location/suplclient/asn1/supl2/rrlp_components/SatElement.java", "license": "apache-2.0", "size": 36456 }
[ "com.google.location.suplclient.asn1.base.BitStreamReader" ]
import com.google.location.suplclient.asn1.base.BitStreamReader;
import com.google.location.suplclient.asn1.base.*;
[ "com.google.location" ]
com.google.location;
1,604,467
private PlanarImage getImage() { PlanarImage img = roiImage; if (img == null) { synchronized (this) { img = roiImage; if (img == null) { roiImage = img = roi.getAsImage(); } } } return img; ...
PlanarImage function() { PlanarImage img = roiImage; if (img == null) { synchronized (this) { img = roiImage; if (img == null) { roiImage = img = roi.getAsImage(); } } } return img; }
/** * This method provides a lazy initialization of the image associated to the ROI. The method uses the Double-checked locking in order to maintain * thread-safety * * @return */
This method provides a lazy initialization of the image associated to the ROI. The method uses the Double-checked locking in order to maintain thread-safety
getImage
{ "repo_name": "geosolutions-it/jai-ext", "path": "jt-algebra/src/main/java/it/geosolutions/jaiext/algebra/constant/OperationConstOpImage.java", "license": "apache-2.0", "size": 51490 }
[ "javax.media.jai.PlanarImage" ]
import javax.media.jai.PlanarImage;
import javax.media.jai.*;
[ "javax.media" ]
javax.media;
938,222
public static void buildQueryWithINClause(HiveConf conf, List<String> queries, StringBuilder prefix, StringBuilder suffix, List<Long> inList, String inColumn, boolean addParens, boolean notIn) { if (inList == null || inList.si...
static void function(HiveConf conf, List<String> queries, StringBuilder prefix, StringBuilder suffix, List<Long> inList, String inColumn, boolean addParens, boolean notIn) { if (inList == null inList.size() == 0) { throw new IllegalArgumentException(STR); } int batchSize = conf.getIntVar(HiveConf.ConfVars.METASTORE_DIR...
/** * Build a query (or queries if one query is too big) with specified "prefix" and "suffix", * while populating the IN list into multiple OR clauses, e.g. id in (1,2,3) OR id in (4,5,6) * For NOT IN case, NOT IN list is broken into multiple AND clauses. * @param queries array of complete query strings ...
Build a query (or queries if one query is too big) with specified "prefix" and "suffix", while populating the IN list into multiple OR clauses, e.g. id in (1,2,3) OR id in (4,5,6) For NOT IN case, NOT IN list is broken into multiple AND clauses
buildQueryWithINClause
{ "repo_name": "vergilchiu/hive", "path": "metastore/src/java/org/apache/hadoop/hive/metastore/txn/TxnUtils.java", "license": "apache-2.0", "size": 8830 }
[ "java.util.List", "org.apache.hadoop.hive.conf.HiveConf" ]
import java.util.List; import org.apache.hadoop.hive.conf.HiveConf;
import java.util.*; import org.apache.hadoop.hive.conf.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,375,649
protected State clone(State other, Acceptance acc) { assert (other != init); StateSignature sig = other.getSignature(); if(sig.acceptance == acc) return other; sig = sig.duplicate(); sig.acceptance = acc; sig.updateHashCode(); return replaceOrRegister(sig); }
State function(State other, Acceptance acc) { assert (other != init); StateSignature sig = other.getSignature(); if(sig.acceptance == acc) return other; sig = sig.duplicate(); sig.acceptance = acc; sig.updateHashCode(); return replaceOrRegister(sig); }
/** * Clones a state, changing the signature. * @param other the state to clone * @param acc the new acceptance value * @return the canonical state for the derived signature */
Clones a state, changing the signature
clone
{ "repo_name": "bencaldwell/automatalib", "path": "misc/incremental/src/main/java/net/automatalib/incremental/dfa/dag/AbstractIncrementalDFADAGBuilder.java", "license": "apache-2.0", "size": 14402 }
[ "net.automatalib.incremental.dfa.Acceptance" ]
import net.automatalib.incremental.dfa.Acceptance;
import net.automatalib.incremental.dfa.*;
[ "net.automatalib.incremental" ]
net.automatalib.incremental;
1,507,617
private static boolean equal(double[][] array1, double[][] array2) { if (array1 == null) { return (array2 == null); } if (array2 == null) { return false; } if (array1.length != array2.length) { return false; } for ...
static boolean function(double[][] array1, double[][] array2) { if (array1 == null) { return (array2 == null); } if (array2 == null) { return false; } if (array1.length != array2.length) { return false; } for (int i = 0; i < array1.length; i++) { if (!Arrays.equals(array1[i], array2[i])) { return false; } } return true...
/** * Tests two double[][] arrays for equality. * * @param array1 the first array (<code>null</code> permitted). * @param array2 the second arrray (<code>null</code> permitted). * * @return A boolean. */
Tests two double[][] arrays for equality
equal
{ "repo_name": "nologic/nabs", "path": "client/trunk/shared/libraries/jfreechart-1.0.5/source/org/jfree/chart/plot/ThermometerPlot.java", "license": "gpl-2.0", "size": 48435 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,699,183
public void setEndTime(final Calendar endTimeValue) { this.endTime = endTimeValue; } private ApiError error;
void function(final Calendar endTimeValue) { this.endTime = endTimeValue; } private ApiError error;
/** * Optional. Gets the operation end time * @param endTimeValue The EndTime value. */
Optional. Gets the operation end time
setEndTime
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "resource-management/azure-mgmt-compute/src/main/java/com/microsoft/azure/management/compute/models/DeleteOperationResponse.java", "license": "apache-2.0", "size": 4201 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
1,123,109
public Intent execute(Context context) { String[] titles = new String[] { "2007", "2008" }; List<double[]> values = new ArrayList<double[]>(); values.add(new double[] { 5230, 7300, 9240, 10540, 7900, 9200, 12030, 11200, 9500, 10500, 11600, 13500 }); values.add(new double[] { 14230, 12300, 1424...
Intent function(Context context) { String[] titles = new String[] { "2007", "2008" }; List<double[]> values = new ArrayList<double[]>(); values.add(new double[] { 5230, 7300, 9240, 10540, 7900, 9200, 12030, 11200, 9500, 10500, 11600, 13500 }); values.add(new double[] { 14230, 12300, 14240, 15244, 15900, 19200, 22030, 2...
/** * Executes the chart demo. * * @param context the context * @return the built intent */
Executes the chart demo
execute
{ "repo_name": "michaelchucoder/AChartEngineOnAndroidStudio", "path": "src/org/achartengine/chartdemo/demo/chart/SalesBarChart.java", "license": "apache-2.0", "size": 2982 }
[ "android.content.Context", "android.content.Intent", "android.graphics.Color", "java.util.ArrayList", "java.util.List", "org.achartengine.ChartFactory", "org.achartengine.chart.BarChart", "org.achartengine.renderer.SimpleSeriesRenderer", "org.achartengine.renderer.XYMultipleSeriesRenderer" ]
import android.content.Context; import android.content.Intent; import android.graphics.Color; import java.util.ArrayList; import java.util.List; import org.achartengine.ChartFactory; import org.achartengine.chart.BarChart; import org.achartengine.renderer.SimpleSeriesRenderer; import org.achartengine.renderer.XYMultipl...
import android.content.*; import android.graphics.*; import java.util.*; import org.achartengine.*; import org.achartengine.chart.*; import org.achartengine.renderer.*;
[ "android.content", "android.graphics", "java.util", "org.achartengine", "org.achartengine.chart", "org.achartengine.renderer" ]
android.content; android.graphics; java.util; org.achartengine; org.achartengine.chart; org.achartengine.renderer;
743,905
CompletableFuture<Boolean> updateNodeRecursive(ResourceId path, DataNode node);
CompletableFuture<Boolean> updateNodeRecursive(ResourceId path, DataNode node);
/** * Updates an existing node in the dynamic config store. * Any missing children will be created with this request. The update will * fail if the requested node or any of the parent nodes in the path * were not present. * * @param path data structure with absolute path to the parent ...
Updates an existing node in the dynamic config store. Any missing children will be created with this request. The update will fail if the requested node or any of the parent nodes in the path were not present
updateNodeRecursive
{ "repo_name": "donNewtonAlpha/onos", "path": "apps/config/src/main/java/org/onosproject/config/DynamicConfigStore.java", "license": "apache-2.0", "size": 6422 }
[ "java.util.concurrent.CompletableFuture", "org.onosproject.config.model.DataNode", "org.onosproject.config.model.ResourceId" ]
import java.util.concurrent.CompletableFuture; import org.onosproject.config.model.DataNode; import org.onosproject.config.model.ResourceId;
import java.util.concurrent.*; import org.onosproject.config.model.*;
[ "java.util", "org.onosproject.config" ]
java.util; org.onosproject.config;
2,191,905
InitMaxStreams getInitMaxStreams();
InitMaxStreams getInitMaxStreams();
/** * Gets the <a href="https://openjdk.java.net/projects/sctp/javadoc/com/sun/nio/sctp/SctpStandardSocketOption.html"> * {@code SCTP_INIT_MAXSTREAMS}</a> option. */
Gets the SCTP_INIT_MAXSTREAMS option
getInitMaxStreams
{ "repo_name": "NiteshKant/netty", "path": "transport-sctp/src/main/java/io/netty/channel/sctp/SctpChannelConfig.java", "license": "apache-2.0", "size": 5261 }
[ "com.sun.nio.sctp.SctpStandardSocketOptions" ]
import com.sun.nio.sctp.SctpStandardSocketOptions;
import com.sun.nio.sctp.*;
[ "com.sun.nio" ]
com.sun.nio;
101,438
public Arguments getLaunchArguments(LaunchOptions options) throws IOException { return null; }
Arguments function(LaunchOptions options) throws IOException { return null; }
/** * Called when launching game. * @return null if no argument is specified */
Called when launching game
getLaunchArguments
{ "repo_name": "huanghongxun/HMCL", "path": "HMCLCore/src/main/java/org/jackhuang/hmcl/auth/AuthInfo.java", "license": "gpl-3.0", "size": 2194 }
[ "java.io.IOException", "org.jackhuang.hmcl.game.Arguments", "org.jackhuang.hmcl.game.LaunchOptions" ]
import java.io.IOException; import org.jackhuang.hmcl.game.Arguments; import org.jackhuang.hmcl.game.LaunchOptions;
import java.io.*; import org.jackhuang.hmcl.game.*;
[ "java.io", "org.jackhuang.hmcl" ]
java.io; org.jackhuang.hmcl;
317,198
private List<PLPInfo> model2Relatives(Model model) { List<PLPInfo> relatives = new LinkedList<PLPInfo>(); for (int j = 0; j < model.getEntityCount(); j++) { Entity entity = model.getEntity(j); String id = entity.getAttributeValue(PRESUCCESSOR_UUID); String memberN...
List<PLPInfo> function(Model model) { List<PLPInfo> relatives = new LinkedList<PLPInfo>(); for (int j = 0; j < model.getEntityCount(); j++) { Entity entity = model.getEntity(j); String id = entity.getAttributeValue(PRESUCCESSOR_UUID); String memberName = entity.getAttributeValue(PRESUCCESSOR_MEMEBERNAME); String versio...
/** * Creates information related to relative projects.. * @param model A model of type {@link ModelType#PREDECESSORS} or * {@link ModelType#SUCCESSORS} holding all Prede-/Successor information. * @return The Predecessors/Successor-List */
Creates information related to relative projects.
model2Relatives
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/EASy-Producer/de.uni_hildesheim.sse.EASy-Producer.persistence/src/net/ssehub/easy/producer/core/persistence/standard/PersistentProject2PLPConverter.java", "license": "apache-2.0", "size": 7388 }
[ "java.io.File", "java.util.LinkedList", "java.util.List", "net.ssehub.easy.producer.core.mgmt.PLPInfo", "net.ssehub.easy.producer.core.mgmt.SPLsManager", "net.ssehub.easy.producer.core.persistence.datatypes.Entity", "net.ssehub.easy.producer.core.persistence.datatypes.Model" ]
import java.io.File; import java.util.LinkedList; import java.util.List; import net.ssehub.easy.producer.core.mgmt.PLPInfo; import net.ssehub.easy.producer.core.mgmt.SPLsManager; import net.ssehub.easy.producer.core.persistence.datatypes.Entity; import net.ssehub.easy.producer.core.persistence.datatypes.Model;
import java.io.*; import java.util.*; import net.ssehub.easy.producer.core.mgmt.*; import net.ssehub.easy.producer.core.persistence.datatypes.*;
[ "java.io", "java.util", "net.ssehub.easy" ]
java.io; java.util; net.ssehub.easy;
1,326,258
public void setEncoder(MultiEncoder e) { this.encoder = e; }
void function(MultiEncoder e) { this.encoder = e; }
/** * Sets the {@link MultiEncoder} on this Network * @param e */
Sets the <code>MultiEncoder</code> on this Network
setEncoder
{ "repo_name": "user405/test", "path": "src/main/java/org/numenta/nupic/network/Network.java", "license": "agpl-3.0", "size": 18985 }
[ "org.numenta.nupic.encoders.MultiEncoder" ]
import org.numenta.nupic.encoders.MultiEncoder;
import org.numenta.nupic.encoders.*;
[ "org.numenta.nupic" ]
org.numenta.nupic;
1,258,487
public static Test suite() { return new TestSuite(SleepTest.class); }
static Test function() { return new TestSuite(SleepTest.class); }
/** * Returns a test suite. * * @return the test suite */
Returns a test suite
suite
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-core/src/test/java/adams/flow/control/SleepTest.java", "license": "gpl-3.0", "size": 2398 }
[ "junit.framework.Test", "junit.framework.TestSuite" ]
import junit.framework.Test; import junit.framework.TestSuite;
import junit.framework.*;
[ "junit.framework" ]
junit.framework;
1,590,597
public static OutputStream leftShift(OutputStream self, byte[] value) throws IOException { self.write(value); self.flush(); return self; }
static OutputStream function(OutputStream self, byte[] value) throws IOException { self.write(value); self.flush(); return self; }
/** * Overloads the leftShift operator to provide an append mechanism to add bytes to a stream. * * @param self an OutputStream * @param value a value to append * @return an OutputStream * @throws IOException if an I/O error occurs. * @since 1.0 */
Overloads the leftShift operator to provide an append mechanism to add bytes to a stream
leftShift
{ "repo_name": "antoaravinth/incubator-groovy", "path": "src/main/org/codehaus/groovy/runtime/IOGroovyMethods.java", "license": "apache-2.0", "size": 62643 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,204,164
EList<Term> getInGoals();
EList<Term> getInGoals();
/** * Returns the value of the '<em><b>In Goals</b></em>' containment reference list. * The list contents are of type {@link org.ai4fm.proofprocess.Term}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>In Goals</em>' containment reference list isn't clear, * there really should be more of a de...
Returns the value of the 'In Goals' containment reference list. The list contents are of type <code>org.ai4fm.proofprocess.Term</code>. If the meaning of the 'In Goals' containment reference list isn't clear, there really should be more of a description here...
getInGoals
{ "repo_name": "andriusvelykis/proofprocess", "path": "org.ai4fm.proofprocess/src/org/ai4fm/proofprocess/ProofStep.java", "license": "epl-1.0", "size": 3825 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
633,056
protected Object writeReplace() { List<DestructionAwareBeanPostProcessor> serializablePostProcessors = null; if (this.beanPostProcessors != null) { serializablePostProcessors = new ArrayList<>(); for (DestructionAwareBeanPostProcessor postProcessor : this.beanPostProcessors) { if (postProcessor instanc...
Object function() { List<DestructionAwareBeanPostProcessor> serializablePostProcessors = null; if (this.beanPostProcessors != null) { serializablePostProcessors = new ArrayList<>(); for (DestructionAwareBeanPostProcessor postProcessor : this.beanPostProcessors) { if (postProcessor instanceof Serializable) { serializabl...
/** * Serializes a copy of the state of this class, * filtering out non-serializable BeanPostProcessors. */
Serializes a copy of the state of this class, filtering out non-serializable BeanPostProcessors
writeReplace
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/spring-jdk9/src/spring.beans/org/springframework/beans/factory/support/DisposableBeanAdapter.java", "license": "mit", "size": 15540 }
[ "java.io.Serializable", "java.util.ArrayList", "java.util.List", "org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor" ]
import java.io.Serializable; import java.util.ArrayList; import java.util.List; import org.springframework.beans.factory.config.DestructionAwareBeanPostProcessor;
import java.io.*; import java.util.*; import org.springframework.beans.factory.config.*;
[ "java.io", "java.util", "org.springframework.beans" ]
java.io; java.util; org.springframework.beans;
1,449,313
public boolean runAfter(List tasks, int size) { return false; }//end runAfter }//end class NewRegistrationTask
boolean function(List tasks, int size) { return false; } }
/** This method returns true if the current instance of this class * must be run after at least one task in the input task list with * an index less than the <code>size</code> parameter (size may be * less than tasks.size()). * <p> * Note that using List.get will be mor...
This method returns true if the current instance of this class must be run after at least one task in the input task list with an index less than the <code>size</code> parameter (size may be less than tasks.size()). Note that using List.get will be more efficient than List.iterator
runAfter
{ "repo_name": "cdegroot/river", "path": "src/com/sun/jini/fiddler/FiddlerImpl.java", "license": "apache-2.0", "size": 419779 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
872,640
mapDefaults(); int count = 0; String names[] = new String[propNames.size()]; for (Enumeration e = propNames.keys(); e.hasMoreElements(); ) { names[count++] = ((CaselessStringKey)e.nextElement()).getName(); } return names; }
mapDefaults(); int count = 0; String names[] = new String[propNames.size()]; for (Enumeration e = propNames.keys(); e.hasMoreElements(); ) { names[count++] = ((CaselessStringKey)e.nextElement()).getName(); } return names; }
/** * Returns an array of Strings recognized as names by this * property source. * * @return an array of Strings giving the valid property names. */
Returns an array of Strings recognized as names by this property source
getPropertyNames
{ "repo_name": "RoProducts/rastertheque", "path": "JAILibrary/src/javax/media/jai/PropertyEnvironment.java", "license": "gpl-2.0", "size": 12657 }
[ "java.util.Enumeration", "javax.media.jai.util.CaselessStringKey" ]
import java.util.Enumeration; import javax.media.jai.util.CaselessStringKey;
import java.util.*; import javax.media.jai.util.*;
[ "java.util", "javax.media" ]
java.util; javax.media;
178,921
public void requestNextPermission() { boolean granted = true; for (Permission permission : permissions) { // Permission previously requested but not granted if (!permission.granted(getApplication())) { // Permission not previously requested - request it ...
void function() { boolean granted = true; for (Permission permission : permissions) { if (!permission.granted(getApplication())) { if (!permission.isRequested()) { permission.request(this); return; } granted = false; } } if (granted) { parseArguments(); showSamples(); } else { for (Permission permission : permissions) ...
/** * Chain request permissions from the required permission list. When called the * next unrequested permission with be requested If all permission are requested * but not all granted; requested states will be reset and the PermissionView * will be shown */
Chain request permissions from the required permission list. When called the next unrequested permission with be requested If all permission are requested but not all granted; requested states will be reset and the PermissionView will be shown
requestNextPermission
{ "repo_name": "KhronosGroup/Vulkan-Samples", "path": "app/android/java/com/khronos/vulkan_samples/SampleLauncherActivity.java", "license": "apache-2.0", "size": 12441 }
[ "com.khronos.vulkan_samples.model.Permission" ]
import com.khronos.vulkan_samples.model.Permission;
import com.khronos.vulkan_samples.model.*;
[ "com.khronos.vulkan_samples" ]
com.khronos.vulkan_samples;
2,003,866
@Test public void testGeoOverrideParams() throws Exception { // Default params executionSteps(); JSONObject postDataBefore = inspectPostData(); assertFalse(postDataBefore.has(GEO_OVERRIDE)); // Set the params SDKSettings.setGeoOverrideCountryCode("US"); ...
void function() throws Exception { executionSteps(); JSONObject postDataBefore = inspectPostData(); assertFalse(postDataBefore.has(GEO_OVERRIDE)); SDKSettings.setGeoOverrideCountryCode("US"); SDKSettings.setGeoOverrideZipCode(STR); executionSteps(); JSONObject postData = inspectPostData(); assertTrue(postData.has(GEO_O...
/** * Test GeoOverride parameters in /ut request body * * @throws Exception */
Test GeoOverride parameters in /ut request body
testGeoOverrideParams
{ "repo_name": "appnexus/mobile-sdk-android", "path": "sdk/test/com/appnexus/opensdk/UTAdRequestTest.java", "license": "apache-2.0", "size": 50438 }
[ "junit.framework.Assert", "org.json.JSONObject" ]
import junit.framework.Assert; import org.json.JSONObject;
import junit.framework.*; import org.json.*;
[ "junit.framework", "org.json" ]
junit.framework; org.json;
1,172,523
private static GlyphList load(String filename) { ClassLoader loader = GlyphList.class.getClassLoader(); String path = "org/apache/pdfbox/resources/glyphlist/"; try { return new GlyphList(loader.getResourceAsStream(path + filename)); } catch (IOExceptio...
static GlyphList function(String filename) { ClassLoader loader = GlyphList.class.getClassLoader(); String path = STR; try { return new GlyphList(loader.getResourceAsStream(path + filename)); } catch (IOException e) { throw new RuntimeException(e); } } static { try { String location = System.getProperty(STR); if (locat...
/** * Loads a glyph list from disk. */
Loads a glyph list from disk
load
{ "repo_name": "benmccann/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/font/encoding/GlyphList.java", "license": "apache-2.0", "size": 9547 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
692,876
Result handle(Invoker<?> invoker, Invocation invocation, BlockException ex);
Result handle(Invoker<?> invoker, Invocation invocation, BlockException ex);
/** * Handle the block exception and provide fallback result. * * @param invoker Dubbo invoker * @param invocation Dubbo invocation * @param ex block exception * @return fallback result */
Handle the block exception and provide fallback result
handle
{ "repo_name": "alibaba/Sentinel", "path": "sentinel-adapter/sentinel-apache-dubbo-adapter/src/main/java/com/alibaba/csp/sentinel/adapter/dubbo/fallback/DubboFallback.java", "license": "apache-2.0", "size": 1287 }
[ "com.alibaba.csp.sentinel.slots.block.BlockException", "org.apache.dubbo.rpc.Invocation", "org.apache.dubbo.rpc.Invoker", "org.apache.dubbo.rpc.Result" ]
import com.alibaba.csp.sentinel.slots.block.BlockException; import org.apache.dubbo.rpc.Invocation; import org.apache.dubbo.rpc.Invoker; import org.apache.dubbo.rpc.Result;
import com.alibaba.csp.sentinel.slots.block.*; import org.apache.dubbo.rpc.*;
[ "com.alibaba.csp", "org.apache.dubbo" ]
com.alibaba.csp; org.apache.dubbo;
1,790,983
public void setReadOnlyAccessGroups(final TrainingDO training, final Collection<GroupDO> readonlyAccessGroups) { training.setReadOnlyAccessGroupIds(new GroupsProvider().getGroupIds(readonlyAccessGroups)); }
void function(final TrainingDO training, final Collection<GroupDO> readonlyAccessGroups) { training.setReadOnlyAccessGroupIds(new GroupsProvider().getGroupIds(readonlyAccessGroups)); }
/** * Please note: Only the string group.readonlyAccessGroupIds will be modified (but not be saved)! * @param training * @param readonlyAccessGroups */
Please note: Only the string group.readonlyAccessGroupIds will be modified (but not be saved)
setReadOnlyAccessGroups
{ "repo_name": "linqingyicen/projectforge-webapp", "path": "src/main/java/org/projectforge/plugins/skillmatrix/TrainingDao.java", "license": "gpl-3.0", "size": 5278 }
[ "java.util.Collection", "org.projectforge.user.GroupDO", "org.projectforge.web.user.GroupsProvider" ]
import java.util.Collection; import org.projectforge.user.GroupDO; import org.projectforge.web.user.GroupsProvider;
import java.util.*; import org.projectforge.user.*; import org.projectforge.web.user.*;
[ "java.util", "org.projectforge.user", "org.projectforge.web" ]
java.util; org.projectforge.user; org.projectforge.web;
1,207,924
public PropertyBeanSet createPropertyBeanSet(final BeanContext context, final String namingConvention, FieldType fieldType) { ImportDeclaration importDeclaration = new ImportDeclaration( new NameExpr(context.getImportDeclaration()), false, false); FieldContext field = Ja...
PropertyBeanSet function(final BeanContext context, final String namingConvention, FieldType fieldType) { ImportDeclaration importDeclaration = new ImportDeclaration( new NameExpr(context.getImportDeclaration()), false, false); FieldContext field = JavaMemberContextUtils.createPropertyFieldContext( context.getJavaType(...
/** * Creates the property bean set. * * @param context * the context * @return el property bean set */
Creates the property bean set
createPropertyBeanSet
{ "repo_name": "danimaniarqsoft/asterix-gen", "path": "asterix-modules/asterix-javaparser/src/main/java/com/danimaniarqsoft/asterix/javaparser/core/JavaFileContextService.java", "license": "mit", "size": 6528 }
[ "com.danimaniarqsoft.asterix.javaparser.core.context.BeanContext", "com.danimaniarqsoft.asterix.javaparser.core.context.FieldContext", "com.danimaniarqsoft.asterix.javaparser.core.context.FieldType", "com.danimaniarqsoft.asterix.javaparser.core.context.MethodContext", "com.danimaniarqsoft.asterix.javaparser...
import com.danimaniarqsoft.asterix.javaparser.core.context.BeanContext; import com.danimaniarqsoft.asterix.javaparser.core.context.FieldContext; import com.danimaniarqsoft.asterix.javaparser.core.context.FieldType; import com.danimaniarqsoft.asterix.javaparser.core.context.MethodContext; import com.danimaniarqsoft.aste...
import com.danimaniarqsoft.asterix.javaparser.core.context.*; import com.danimaniarqsoft.asterix.javaparser.util.*; import com.github.javaparser.ast.*; import com.github.javaparser.ast.body.*; import com.github.javaparser.ast.expr.*;
[ "com.danimaniarqsoft.asterix", "com.github.javaparser" ]
com.danimaniarqsoft.asterix; com.github.javaparser;
1,504,645
@Nullable public CacheObject peek(boolean heap, boolean offheap, boolean swap, @Nullable IgniteCacheExpiryPolicy plc) throws GridCacheEntryRemovedException, IgniteCheckedException;
@Nullable CacheObject function(boolean heap, boolean offheap, boolean swap, @Nullable IgniteCacheExpiryPolicy plc) throws GridCacheEntryRemovedException, IgniteCheckedException;
/** * Peeks into entry without loading value or updating statistics. * * @param heap Read from heap flag. * @param offheap Read from offheap flag. * @param swap Read from swap flag. * @param plc Expiry policy if TTL should be updated. * @return Value. * @throws GridCacheEntryRemo...
Peeks into entry without loading value or updating statistics
peek
{ "repo_name": "agura/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheEntryEx.java", "license": "apache-2.0", "size": 37668 }
[ "org.apache.ignite.IgniteCheckedException", "org.jetbrains.annotations.Nullable" ]
import org.apache.ignite.IgniteCheckedException; import org.jetbrains.annotations.Nullable;
import org.apache.ignite.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
2,004,172
//-------------------// // splitTrainAndTest // //-------------------// public void splitTrainAndTest (List<Sample> train, List<Sample> test, int minCount, int maxCount) { // Gat...
void function (List<Sample> train, List<Sample> test, int minCount, int maxCount) { EnumMap<Shape, List<Sample>> shapeSamples = new EnumMap<>(Shape.class); for (Sample sample : getAllSamples()) { Shape shape = sample.getShape(); List<Sample> list = shapeSamples.get(shape); if (list == null) { shapeSamples.put(shape, li...
/** * Build train collection and test collection out of this repository. * <p> * In the 'train' collection, no shape collection can contain more than maxShapeSampleCount * samples. * * @param train output to be populated by train samples * @param test output to be popula...
Build train collection and test collection out of this repository. In the 'train' collection, no shape collection can contain more than maxShapeSampleCount samples
splitTrainAndTest
{ "repo_name": "Audiveris/audiveris", "path": "src/main/org/audiveris/omr/classifier/SampleRepository.java", "license": "agpl-3.0", "size": 62382 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.EnumMap", "java.util.List", "org.audiveris.omr.glyph.Shape" ]
import java.util.ArrayList; import java.util.Collections; import java.util.EnumMap; import java.util.List; import org.audiveris.omr.glyph.Shape;
import java.util.*; import org.audiveris.omr.glyph.*;
[ "java.util", "org.audiveris.omr" ]
java.util; org.audiveris.omr;
2,019,519
public void verify(RowSet actual) { compareSchemasAndCounts(actual); int testLength = getTestLength(); RowSetReader er = expected.reader(); RowSetReader ar = actual.reader(); for (int i = 0; i < offset; i++) { er.next(); ar.next(); } for (int i = 0; i < testLength; i++) { ...
void function(RowSet actual) { compareSchemasAndCounts(actual); int testLength = getTestLength(); RowSetReader er = expected.reader(); RowSetReader ar = actual.reader(); for (int i = 0; i < offset; i++) { er.next(); ar.next(); } for (int i = 0; i < testLength; i++) { er.next(); ar.next(); String label = Integer.toStrin...
/** * Verify the actual rows using the rules defined in this builder * @param actual the actual results to verify */
Verify the actual rows using the rules defined in this builder
verify
{ "repo_name": "kkhatua/drill", "path": "exec/java-exec/src/test/java/org/apache/drill/test/rowSet/RowSetComparison.java", "license": "apache-2.0", "size": 12738 }
[ "org.apache.drill.exec.physical.rowSet.RowSet", "org.apache.drill.exec.physical.rowSet.RowSetReader" ]
import org.apache.drill.exec.physical.rowSet.RowSet; import org.apache.drill.exec.physical.rowSet.RowSetReader;
import org.apache.drill.exec.physical.*;
[ "org.apache.drill" ]
org.apache.drill;
2,767,836
public static boolean isPlayerInventoryFull(PlayerEntity player) { return player.inventory.getFirstEmptyStack() == -1; }
static boolean function(PlayerEntity player) { return player.inventory.getFirstEmptyStack() == -1; }
/** * Check if the given player inventory is full. * @param player The player. * @return If the player does not have a free spot in it's inventory. */
Check if the given player inventory is full
isPlayerInventoryFull
{ "repo_name": "CyclopsMC/CyclopsCore", "path": "src/main/java/org/cyclops/cyclopscore/helper/MinecraftHelpers.java", "license": "mit", "size": 5085 }
[ "net.minecraft.entity.player.PlayerEntity" ]
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.entity.player.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
2,011,826
public Builder classesOrPackages(String ... classesOrPackages) throws IOException { if (classesOrPackages == null) { classScanner.addPackage(null, true); } else for (String s : classesOrPackages) { classScanner.addClassOrPackage(s); } return this; }
Builder function(String ... classesOrPackages) throws IOException { if (classesOrPackages == null) { classScanner.addPackage(null, true); } else for (String s : classesOrPackages) { classScanner.addClassOrPackage(s); } return this; }
/** Requests the {@link #classScanner} to add a class or all classes from a package. * A {@code null} argument indicates the unnamed package. */
Requests the <code>#classScanner</code> to add a class or all classes from a package
classesOrPackages
{ "repo_name": "xuse/javacpp", "path": "src/main/java/org/bytedeco/javacpp/tools/Builder.java", "license": "gpl-2.0", "size": 33376 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
578,232
private void setQuery(Query query, boolean isFromResults) { this.currentQuery = query; view.setQueryWrapperPlotNavVisible(true); this.view.setTableMessageVisible(false); if (!isFromResults) { // configure QueryWrapperPlotNav OnQueryCallback onQueryChange = (newQueryJson) -> { try { JSO...
void function(Query query, boolean isFromResults) { this.currentQuery = query; view.setQueryWrapperPlotNavVisible(true); this.view.setTableMessageVisible(false); if (!isFromResults) { OnQueryCallback onQueryChange = (newQueryJson) -> { try { JSONObjectAdapter adapter = ginInjector.getJSONObjectAdapter().createNew(newQu...
/** * Set the query used by this widget. * * @param sql */
Set the query used by this widget
setQuery
{ "repo_name": "jay-hodgson/SynapseWebClient", "path": "src/main/java/org/sagebionetworks/web/client/widget/table/explore/TableEntityPlotsWidget.java", "license": "apache-2.0", "size": 25134 }
[ "org.sagebionetworks.repo.model.table.Query", "org.sagebionetworks.repo.model.table.QueryResultBundle", "org.sagebionetworks.schema.adapter.JSONObjectAdapter", "org.sagebionetworks.schema.adapter.JSONObjectAdapterException", "org.sagebionetworks.web.client.jsinterop.QueryWrapperPlotNavProps", "org.sagebio...
import org.sagebionetworks.repo.model.table.Query; import org.sagebionetworks.repo.model.table.QueryResultBundle; import org.sagebionetworks.schema.adapter.JSONObjectAdapter; import org.sagebionetworks.schema.adapter.JSONObjectAdapterException; import org.sagebionetworks.web.client.jsinterop.QueryWrapperPlotNavProps; i...
import org.sagebionetworks.repo.model.table.*; import org.sagebionetworks.schema.adapter.*; import org.sagebionetworks.web.client.jsinterop.*; import org.sagebionetworks.web.client.widget.table.v2.results.*;
[ "org.sagebionetworks.repo", "org.sagebionetworks.schema", "org.sagebionetworks.web" ]
org.sagebionetworks.repo; org.sagebionetworks.schema; org.sagebionetworks.web;
1,963,897
public Object[] listProvidingChannels(User loggedInUser, Integer pid) throws FaultException { //Get the logged in user Package pkg = lookupPackage(loggedInUser, pid); DataResult dr = PackageManager.orgPackageChannels(loggedInUser.getOrg().getId(), ...
Object[] function(User loggedInUser, Integer pid) throws FaultException { Package pkg = lookupPackage(loggedInUser, pid); DataResult dr = PackageManager.orgPackageChannels(loggedInUser.getOrg().getId(), pkg.getId()); return dr.toArray(); }
/** * List of Channels that provide a given package * @param loggedInUser The current user * @param pid The id of the package in question * @return Returns an array of maps representing a channel * @throws FaultException A FaultException is thrown if the errata corresponding to * pid canno...
List of Channels that provide a given package
listProvidingChannels
{ "repo_name": "xkollar/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/packages/PackagesHandler.java", "license": "gpl-2.0", "size": 20426 }
[ "com.redhat.rhn.FaultException", "com.redhat.rhn.common.db.datasource.DataResult", "com.redhat.rhn.domain.rhnpackage.Package", "com.redhat.rhn.domain.user.User", "com.redhat.rhn.manager.rhnpackage.PackageManager" ]
import com.redhat.rhn.FaultException; import com.redhat.rhn.common.db.datasource.DataResult; import com.redhat.rhn.domain.rhnpackage.Package; import com.redhat.rhn.domain.user.User; import com.redhat.rhn.manager.rhnpackage.PackageManager;
import com.redhat.rhn.*; import com.redhat.rhn.common.db.datasource.*; import com.redhat.rhn.domain.rhnpackage.*; import com.redhat.rhn.domain.user.*; import com.redhat.rhn.manager.rhnpackage.*;
[ "com.redhat.rhn" ]
com.redhat.rhn;
2,204,670
public static ims.core.resource.people.domain.objects.ClinicalTeam extractClinicalTeam(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.ClinicalTeamVo valueObject) { return extractClinicalTeam(domainFactory, valueObject, new HashMap()); }
static ims.core.resource.people.domain.objects.ClinicalTeam function(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.ClinicalTeamVo valueObject) { return extractClinicalTeam(domainFactory, valueObject, new HashMap()); }
/** * Create the domain object from the value object. * @param domainFactory - used to create existing (persistent) domain objects. * @param valueObject - extract the domain object fields from this. */
Create the domain object from the value object
extractClinicalTeam
{ "repo_name": "open-health-hub/openMAXIMS", "path": "openmaxims_workspace/ValueObjects/src/ims/core/vo/domain/ClinicalTeamVoAssembler.java", "license": "agpl-3.0", "size": 18361 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,011,628
@Test(expectedExceptions = NullPointerException.class) public void parse01() throws Exception { parserAdapter.parse((InputSource)null); }
@Test(expectedExceptions = NullPointerException.class) void function() throws Exception { parserAdapter.parse((InputSource)null); }
/** * NPE expected when parsing a null object by ParserAdapter. * * @throws Exception If any errors occur. */
NPE expected when parsing a null object by ParserAdapter
parse01
{ "repo_name": "FauxFaux/jdk9-jaxp", "path": "test/javax/xml/jaxp/functional/org/xml/sax/ptests/ParserAdapterTest.java", "license": "gpl-2.0", "size": 8052 }
[ "org.testng.annotations.Test", "org.xml.sax.InputSource" ]
import org.testng.annotations.Test; import org.xml.sax.InputSource;
import org.testng.annotations.*; import org.xml.sax.*;
[ "org.testng.annotations", "org.xml.sax" ]
org.testng.annotations; org.xml.sax;
2,078,198
public CallHandle loadRenderingControl(long pixelsID, int index, AgentEventListener observer);
CallHandle function(long pixelsID, int index, AgentEventListener observer);
/** * Loads the rendering proxy associated to the pixels set. * * @param pixelsID The id of the pixels set. * @param index One of the constants defined by this class. * @param observer Call-back handler. * @return A handle that can be used to cancel the call. */
Loads the rendering proxy associated to the pixels set
loadRenderingControl
{ "repo_name": "joshmoore/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/views/ImageDataView.java", "license": "gpl-2.0", "size": 15233 }
[ "org.openmicroscopy.shoola.env.event.AgentEventListener" ]
import org.openmicroscopy.shoola.env.event.AgentEventListener;
import org.openmicroscopy.shoola.env.event.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
1,931,014
protected int calculateDiagramEdgesCount() { return ((Diagram) getDiagramEditPart().getDiagramView()).getEdges().size(); }
int function() { return ((Diagram) getDiagramEditPart().getDiagramView()).getEdges().size(); }
/** * calculate diagram edges count */
calculate diagram edges count
calculateDiagramEdgesCount
{ "repo_name": "bmaggi/Papyrus-SysML11", "path": "tests/org.eclipse.papyrus.uml.diagram.tests/src/org/eclipse/papyrus/uml/diagram/tests/canonical/TestLink.java", "license": "epl-1.0", "size": 36488 }
[ "org.eclipse.gmf.runtime.notation.Diagram" ]
import org.eclipse.gmf.runtime.notation.Diagram;
import org.eclipse.gmf.runtime.notation.*;
[ "org.eclipse.gmf" ]
org.eclipse.gmf;
916,285
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<DataPolicyManifestInner>> getByPolicyModeWithResponseAsync( String policyMode, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentExce...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<DataPolicyManifestInner>> function( String policyMode, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (policyMode == null) { return Mono.error(new IllegalArgumentException(STR)); } final ...
/** * This operation retrieves the data policy manifest with the given policy mode. * * @param policyMode The policy mode of the data policy manifest to get. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validatio...
This operation retrieves the data policy manifest with the given policy mode
getByPolicyModeWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/DataPolicyManifestsClientImpl.java", "license": "mit", "size": 24247 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.resources.fluent.models.DataPolicyManifestInner" ]
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.resources.fluent.models.DataPolicyManifestInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.resources.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
154,699
public InputStream inputStream() { return stream; }
InputStream function() { return stream; }
/** * Get the input stream associated with this keyval, if any * @return input stream if set, or null */
Get the input stream associated with this keyval, if any
inputStream
{ "repo_name": "Relucent/yyl_mvc", "path": "src/main/java/yyl/mvc/common/http/Connection.java", "license": "apache-2.0", "size": 56134 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,059,070
public void deleteObject () throws NCMBException { NCMBRoleService roleService = (NCMBRoleService)NCMB.factory(NCMB.ServiceType.ROLE); roleService.deleteRole(getObjectId()); mFields = new JSONObject(); }
void function () throws NCMBException { NCMBRoleService roleService = (NCMBRoleService)NCMB.factory(NCMB.ServiceType.ROLE); roleService.deleteRole(getObjectId()); mFields = new JSONObject(); }
/** * delete role * @throws NCMBException exception sdk internal or NIFTY Cloud mobile backend */
delete role
deleteObject
{ "repo_name": "Rebirthble/ncmb_android", "path": "ncmb-core/src/main/java/com/nifty/cloud/mb/core/NCMBRole.java", "license": "apache-2.0", "size": 9866 }
[ "org.json.JSONObject" ]
import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,276,474
protected String createFilterQuery(String site, List<FilterTO> filters) { StringBuffer buffer = new StringBuffer(); NamespaceService namespaceService = getServicesManager().getService(NamespaceService.class); PersistenceManagerService persistenceManagerService = getServicesManager().getService(Pers...
String function(String site, List<FilterTO> filters) { StringBuffer buffer = new StringBuffer(); NamespaceService namespaceService = getServicesManager().getService(NamespaceService.class); PersistenceManagerService persistenceManagerService = getServicesManager().getService(PersistenceManagerService.class); for (Filte...
/** * add a filter query */
add a filter query
createFilterQuery
{ "repo_name": "hlim/studio", "path": "alfresco-svcs/src/main/java/org/craftercms/cstudio/alfresco/util/impl/XPathSearchQueryBuilder.java", "license": "gpl-3.0", "size": 7240 }
[ "java.util.List", "org.alfresco.service.cmr.dictionary.PropertyDefinition", "org.alfresco.service.namespace.QName", "org.apache.commons.lang.StringUtils", "org.craftercms.cstudio.alfresco.service.api.NamespaceService", "org.craftercms.cstudio.alfresco.service.api.PersistenceManagerService", "org.crafter...
import java.util.List; import org.alfresco.service.cmr.dictionary.PropertyDefinition; import org.alfresco.service.namespace.QName; import org.apache.commons.lang.StringUtils; import org.craftercms.cstudio.alfresco.service.api.NamespaceService; import org.craftercms.cstudio.alfresco.service.api.PersistenceManagerService...
import java.util.*; import org.alfresco.service.cmr.dictionary.*; import org.alfresco.service.namespace.*; import org.apache.commons.lang.*; import org.craftercms.cstudio.alfresco.service.api.*; import org.craftercms.cstudio.alfresco.to.*; import org.craftercms.cstudio.alfresco.util.*;
[ "java.util", "org.alfresco.service", "org.apache.commons", "org.craftercms.cstudio" ]
java.util; org.alfresco.service; org.apache.commons; org.craftercms.cstudio;
2,659,931
protected void checkProxyPrefetchingLimit(DefBase def, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } if (def.hasProperty(PropertyHelper.OJB_PROPERTY_PROXY_PREFETCHING_LIMIT)) { if (!def....
void function(DefBase def, String checkLevel) throws ConstraintException { if (CHECKLEVEL_NONE.equals(checkLevel)) { return; } if (def.hasProperty(PropertyHelper.OJB_PROPERTY_PROXY_PREFETCHING_LIMIT)) { if (!def.hasProperty(PropertyHelper.OJB_PROPERTY_PROXY)) { if (def instanceof ClassDescriptorDef) { LogHelper.warn(tr...
/** * Constraint that ensures that the proxy-prefetching-limit has a valid value. * * @param def The descriptor (class, reference, collection) * @param checkLevel The current check level (this constraint is checked in basic and strict) */
Constraint that ensures that the proxy-prefetching-limit has a valid value
checkProxyPrefetchingLimit
{ "repo_name": "kuali/ojb-1.0.4", "path": "src/xdoclet/java/src/xdoclet/modules/ojb/constraints/ConstraintsBase.java", "license": "apache-2.0", "size": 4170 }
[ "xdoclet.modules.ojb.LogHelper", "xdoclet.modules.ojb.model.ClassDescriptorDef", "xdoclet.modules.ojb.model.DefBase", "xdoclet.modules.ojb.model.PropertyHelper" ]
import xdoclet.modules.ojb.LogHelper; import xdoclet.modules.ojb.model.ClassDescriptorDef; import xdoclet.modules.ojb.model.DefBase; import xdoclet.modules.ojb.model.PropertyHelper;
import xdoclet.modules.ojb.*; import xdoclet.modules.ojb.model.*;
[ "xdoclet.modules.ojb" ]
xdoclet.modules.ojb;
15,432
private void addColumn(SQLiteDatabase db, String dbTable, String columnName, String columnDefinition) { db.execSQL("ALTER TABLE " + dbTable + " ADD COLUMN " + columnName + " " + columnDefinition); }
void function(SQLiteDatabase db, String dbTable, String columnName, String columnDefinition) { db.execSQL(STR + dbTable + STR + columnName + " " + columnDefinition); }
/** * Add a column to a table using ALTER TABLE. * * @param dbTable name of the table * @param columnName name of the column to add * @param columnDefinition SQL for the column definition */
Add a column to a table using ALTER TABLE
addColumn
{ "repo_name": "79144876/WordReviewProject", "path": "src/com/coleman/providers/downloads/DownloadProvider.java", "license": "apache-2.0", "size": 48594 }
[ "android.database.sqlite.SQLiteDatabase" ]
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.*;
[ "android.database" ]
android.database;
1,879,548
public void ejbPostCreate(int intValue) throws CreateException { printMsg(BeanName, "(ejbPostCreate with long values)"); }
void function(int intValue) throws CreateException { printMsg(BeanName, STR); }
/** * ejbPostCreate with long values */
ejbPostCreate with long values
ejbPostCreate
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.mdb.jms_fat/test-applications/MDBMixEJB.jar/src/com/ibm/ws/ejbcontainer/mdb/jms/mix/ejb/SFBean.java", "license": "epl-1.0", "size": 4021 }
[ "javax.ejb.CreateException" ]
import javax.ejb.CreateException;
import javax.ejb.*;
[ "javax.ejb" ]
javax.ejb;
682,317
public void setShowSearchKey(boolean show) { mShowSearchKey = show; if (show) { mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH); } else { mSearchInput.setImeOptions(EditorInfo.IME_ACTION_NONE); } }
void function(boolean show) { mShowSearchKey = show; if (show) { mSearchInput.setImeOptions(EditorInfo.IME_ACTION_SEARCH); } else { mSearchInput.setImeOptions(EditorInfo.IME_ACTION_NONE); } }
/** * Sets whether the the button with the search icon * will appear in the soft-keyboard or not. * * @param show to show the search button in * the soft-keyboard. */
Sets whether the the button with the search icon will appear in the soft-keyboard or not
setShowSearchKey
{ "repo_name": "btcontract/lnwallet", "path": "app/src/main/java/com/arlib/floatingsearchview/FloatingSearchView.java", "license": "apache-2.0", "size": 31407 }
[ "android.view.inputmethod.EditorInfo" ]
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.*;
[ "android.view" ]
android.view;
403,632
public PDFPaint getPaint(float[] components) { float[] rgb = this.cs.toRGB(components); return PDFPaint.getColorPaint(new Color(rgb[0], rgb[1], rgb[2])); }
PDFPaint function(float[] components) { float[] rgb = this.cs.toRGB(components); return PDFPaint.getColorPaint(new Color(rgb[0], rgb[1], rgb[2])); }
/** * get the PDFPaint representing the color described by the * given color components * @param components the color components corresponding to the given * colorspace * @return a PDFPaint object representing the closest Color to the * given components. */
get the PDFPaint representing the color described by the given color components
getPaint
{ "repo_name": "Pixplicity/PDFrenderer", "path": "src/com/sun/pdfview/colorspace/PDFColorSpace.java", "license": "lgpl-2.1", "size": 7890 }
[ "com.sun.pdfview.PDFPaint", "java.awt.Color" ]
import com.sun.pdfview.PDFPaint; import java.awt.Color;
import com.sun.pdfview.*; import java.awt.*;
[ "com.sun.pdfview", "java.awt" ]
com.sun.pdfview; java.awt;
1,065,857
public void setRouteDistinguisher(RouteDistinguisher rd) { this.rd = rd; }
void function(RouteDistinguisher rd) { this.rd = rd; }
/** * Set the rd. * * @param rd route distinguisher */
Set the rd
setRouteDistinguisher
{ "repo_name": "gkatsikas/onos", "path": "protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/evpn/BgpEvpnRouteType2Nlri.java", "license": "apache-2.0", "size": 9190 }
[ "org.onosproject.bgpio.types.RouteDistinguisher" ]
import org.onosproject.bgpio.types.RouteDistinguisher;
import org.onosproject.bgpio.types.*;
[ "org.onosproject.bgpio" ]
org.onosproject.bgpio;
1,166,714
public int lastIndexOf(Object value) { return lastIndexOf(IntUtils.toPrimitive(value)); }
int function(Object value) { return lastIndexOf(IntUtils.toPrimitive(value)); }
/** * Gets the last index of the specified <code>Integer</code> value. * * @param value the value to search for * @return the zero-based index, or <code>-1</code> if not found * @throws NullPointerException if the value if null * @throws ClassCastException if the object is not <code...
Gets the last index of the specified <code>Integer</code> value
lastIndexOf
{ "repo_name": "fengshao0907/joda-primitives", "path": "src/main/java/org/joda/primitives/list/impl/AbstractIntList.java", "license": "apache-2.0", "size": 30958 }
[ "org.joda.primitives.IntUtils" ]
import org.joda.primitives.IntUtils;
import org.joda.primitives.*;
[ "org.joda.primitives" ]
org.joda.primitives;
1,168,036
public SOAPMessage invoke(final SOAPMessage soapMessage) { return invoke(soapMessage, null); }
SOAPMessage function(final SOAPMessage soapMessage) { return invoke(soapMessage, null); }
/** * The delegate method called by the Webservice implementation. * @param soapMessage the SOAP request * @return the SOAP response */
The delegate method called by the Webservice implementation
invoke
{ "repo_name": "igarashitm/switchyard", "path": "components/soap/src/main/java/org/switchyard/component/soap/InboundHandler.java", "license": "apache-2.0", "size": 19324 }
[ "javax.xml.soap.SOAPMessage" ]
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.*;
[ "javax.xml" ]
javax.xml;
1,007,077
public static Map<HostRoleStatus, Integer> calculateTaskEntityStatusCounts(Collection<HostRoleCommandEntity> tasks) { Collection<HostRoleStatus> hostRoleStatuses = new LinkedList<HostRoleStatus>(); for (HostRoleCommandEntity hostRoleCommand : tasks) { hostRoleStatuses.add(hostRoleCommand.getStatus()); ...
static Map<HostRoleStatus, Integer> function(Collection<HostRoleCommandEntity> tasks) { Collection<HostRoleStatus> hostRoleStatuses = new LinkedList<HostRoleStatus>(); for (HostRoleCommandEntity hostRoleCommand : tasks) { hostRoleStatuses.add(hostRoleCommand.getStatus()); } return calculateStatusCounts(hostRoleStatuses...
/** * Returns counts of task entities that are in various states. * * @param tasks the collection of task entities * * @return a map of counts of tasks keyed by the task status */
Returns counts of task entities that are in various states
calculateTaskEntityStatusCounts
{ "repo_name": "alexryndin/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/controller/internal/CalculatedStatus.java", "license": "apache-2.0", "size": 17159 }
[ "java.util.Collection", "java.util.LinkedList", "java.util.Map", "org.apache.ambari.server.actionmanager.HostRoleStatus", "org.apache.ambari.server.orm.entities.HostRoleCommandEntity" ]
import java.util.Collection; import java.util.LinkedList; import java.util.Map; import org.apache.ambari.server.actionmanager.HostRoleStatus; import org.apache.ambari.server.orm.entities.HostRoleCommandEntity;
import java.util.*; import org.apache.ambari.server.actionmanager.*; import org.apache.ambari.server.orm.entities.*;
[ "java.util", "org.apache.ambari" ]
java.util; org.apache.ambari;
1,498,883
public RestorableSqlContainersClient getRestorableSqlContainers() { return this.restorableSqlContainers; } private final RestorableSqlResourcesClient restorableSqlResources;
RestorableSqlContainersClient function() { return this.restorableSqlContainers; } private final RestorableSqlResourcesClient restorableSqlResources;
/** * Gets the RestorableSqlContainersClient object to access its operations. * * @return the RestorableSqlContainersClient object. */
Gets the RestorableSqlContainersClient object to access its operations
getRestorableSqlContainers
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/implementation/CosmosDBManagementClientImpl.java", "license": "mit", "size": 20901 }
[ "com.azure.resourcemanager.cosmos.fluent.RestorableSqlContainersClient", "com.azure.resourcemanager.cosmos.fluent.RestorableSqlResourcesClient" ]
import com.azure.resourcemanager.cosmos.fluent.RestorableSqlContainersClient; import com.azure.resourcemanager.cosmos.fluent.RestorableSqlResourcesClient;
import com.azure.resourcemanager.cosmos.fluent.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
48,423
List<T> step(int step);
List<T> step(int step);
/** * Forms a list by stepping through the range by the indicated interval. * * @param step the amount by which to step. If negative, steps through the * range backwards. * @return the list formed by stepping through the range by the indicated interval. */
Forms a list by stepping through the range by the indicated interval
step
{ "repo_name": "graemerocher/incubator-groovy", "path": "src/main/groovy/lang/Range.java", "license": "apache-2.0", "size": 3547 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
743,703
public Metadata getMetadataOfEdge(NodeInfoPair edge) throws Exception { try { if (this.edgesIndex.containsKey(edge)) { return this.modelConstants.getListMetadata().get(this.edgesIndex.get(edge)); } else { return this.createMetadataOfEdge(edge); } } catch (Exception e) { e.printStackTrace()...
Metadata function(NodeInfoPair edge) throws Exception { try { if (this.edgesIndex.containsKey(edge)) { return this.modelConstants.getListMetadata().get(this.edgesIndex.get(edge)); } else { return this.createMetadataOfEdge(edge); } } catch (Exception e) { e.printStackTrace(); return null; } }
/** * Retrieve the Metadata object of an edge * * @param edge the edge you want to annotate * @return the existing Metadata of the node. Create it if it does not exist. * @throws Exception */
Retrieve the Metadata object of an edge
getMetadataOfEdge
{ "repo_name": "colomoto/bioLQM", "path": "src/main/java/org/colomoto/biolqm/metadata/AnnotationModule.java", "license": "lgpl-3.0", "size": 14426 }
[ "org.colomoto.biolqm.metadata.annotations.Metadata" ]
import org.colomoto.biolqm.metadata.annotations.Metadata;
import org.colomoto.biolqm.metadata.annotations.*;
[ "org.colomoto.biolqm" ]
org.colomoto.biolqm;
1,770,542
// @Test //@Ignore("failing") public void testUpdateGlobalRegistryValidInputs() { String folderConstant = "populateRegistryWithTypeLibraries/1"; m_soaTypeRegistry = SOAGlobalRegistryFactory.getSOATypeRegistryInstance(); try { setEnvironment(folderConstant); createTempLibrary(testingdir.getDir().getAbs...
void function() { String folderConstant = STR; m_soaTypeRegistry = SOAGlobalRegistryFactory.getSOATypeRegistryInstance(); try { setEnvironment(folderConstant); createTempLibrary(testingdir.getDir().getAbsolutePath() +STR, STR); m_soaTypeRegistry.addTypeLibraryToRegistry(PRODUCT_TYPE_LIBRARY); TypeLibraryType library = ...
/** * Validate the working of the updateGlobalRegistry() method. */
Validate the working of the updateGlobalRegistry() method
testUpdateGlobalRegistryValidInputs
{ "repo_name": "ebayopensource/turmeric-runtime", "path": "codegen/codegen-tools/src/test/java/org/ebayopensource/turmeric/tools/library/SOAGlobalRegistryQETest.java", "license": "apache-2.0", "size": 82980 }
[ "org.ebayopensource.turmeric.common.config.LibraryType", "org.ebayopensource.turmeric.common.config.TypeLibraryType", "org.junit.Assert", "org.junit.Test" ]
import org.ebayopensource.turmeric.common.config.LibraryType; import org.ebayopensource.turmeric.common.config.TypeLibraryType; import org.junit.Assert; import org.junit.Test;
import org.ebayopensource.turmeric.common.config.*; import org.junit.*;
[ "org.ebayopensource.turmeric", "org.junit" ]
org.ebayopensource.turmeric; org.junit;
2,386,716
@NonNull Optional<DataTreeCandidateNode> getModifiedChild(PathArgument childIdentifier);
@NonNull Optional<DataTreeCandidateNode> getModifiedChild(PathArgument childIdentifier);
/** * Returns modified child or empty. Note that this method may return an {@link ModificationType#UNMODIFIED} node * when there is evidence of the node or its parent being involved in modification which has turned out not to * modify the node's contents. * * @param childIdentifier Identifier o...
Returns modified child or empty. Note that this method may return an <code>ModificationType#UNMODIFIED</code> node when there is evidence of the node or its parent being involved in modification which has turned out not to modify the node's contents
getModifiedChild
{ "repo_name": "opendaylight/yangtools", "path": "data/yang-data-tree-api/src/main/java/org/opendaylight/yangtools/yang/data/tree/api/DataTreeCandidateNode.java", "license": "epl-1.0", "size": 2681 }
[ "java.util.Optional", "org.eclipse.jdt.annotation.NonNull", "org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier" ]
import java.util.Optional; import org.eclipse.jdt.annotation.NonNull; import org.opendaylight.yangtools.yang.data.api.YangInstanceIdentifier;
import java.util.*; import org.eclipse.jdt.annotation.*; import org.opendaylight.yangtools.yang.data.api.*;
[ "java.util", "org.eclipse.jdt", "org.opendaylight.yangtools" ]
java.util; org.eclipse.jdt; org.opendaylight.yangtools;
1,653,968
public void resetGlobalQueueWorkerIfRunning(String globalQueueName) { List<String> globalQueues = getWorkerRunningGlobalQueueNames(); if(globalQueues.contains(globalQueueName)) { queueWorkerMap.get(globalQueueName).resetMessageReading(); } }
void function(String globalQueueName) { List<String> globalQueues = getWorkerRunningGlobalQueueNames(); if(globalQueues.contains(globalQueueName)) { queueWorkerMap.get(globalQueueName).resetMessageReading(); } }
/** * Instructs all global queue workers running in this node to reset themselves */
Instructs all global queue workers running in this node to reset themselves
resetGlobalQueueWorkerIfRunning
{ "repo_name": "akalankapagoda/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/server/cluster/GlobalQueueManager.java", "license": "apache-2.0", "size": 5873 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
779,438
public void remove(Key key, Serializable entry, ChordCallback callback);
void function(Key key, Serializable entry, ChordCallback callback);
/** * Asynchronous method to remove <code>entry</code> under the provided * <code>key</code>. Implementations of this method must return * immediately and the completion of the removal must be reported to the * provided <code>callback</code> instance. * * @param key * The {@link Key} as...
Asynchronous method to remove <code>entry</code> under the provided <code>key</code>. Implementations of this method must return immediately and the completion of the removal must be reported to the provided <code>callback</code> instance
remove
{ "repo_name": "lettas/openchord-fork", "path": "src/de/uniba/wiai/lspi/chord/service/AsynChord.java", "license": "gpl-2.0", "size": 13299 }
[ "java.io.Serializable" ]
import java.io.Serializable;
import java.io.*;
[ "java.io" ]
java.io;
519,817
public GenericValue getRelatedOneCache(String relationName) throws GenericEntityException { return this.getDelegator().getRelatedOne(relationName, this, true); } /** Get the named Related Entity for the GenericValue from the persistent store and filter it * @param relationName String containin...
GenericValue function(String relationName) throws GenericEntityException { return this.getDelegator().getRelatedOne(relationName, this, true); } /** Get the named Related Entity for the GenericValue from the persistent store and filter it * @param relationName String containing the relation name which is the combinatio...
/** Get the named Related Entity for the GenericValue from the persistent * store, looking first in the global generic cache (for the moment this isn't true, is same as EmbeddedCache variant) * <p>SCIPIO: 2019-02-14: UN-deprecated this method, because it's useful and does no harm. *@param relationName S...
Get the named Related Entity for the GenericValue from the persistent store, looking first in the global generic cache (for the moment this isn't true, is same as EmbeddedCache variant)
getRelatedOneCache
{ "repo_name": "ilscipio/scipio-erp", "path": "framework/entity/src/org/ofbiz/entity/GenericValue.java", "license": "apache-2.0", "size": 28803 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,302,340
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<MonitoringTagRulesInner>> getWithResponseAsync( String resourceGroupName, String monitorName, String ruleSetName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<MonitoringTagRulesInner>> function( String resourceGroupName, String monitorName, String ruleSetName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId() == nu...
/** * Get a tag rule set for a given monitor resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param monitorName Monitor resource name. * @param ruleSetName The ruleSetName parameter. * @param context The context to associate with this ...
Get a tag rule set for a given monitor resource
getWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/logz/azure-resourcemanager-logz/src/main/java/com/azure/resourcemanager/logz/implementation/TagRulesClientImpl.java", "license": "mit", "size": 43786 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.logz.fluent.models.MonitoringTagRulesInner" ]
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.logz.fluent.models.MonitoringTagRulesInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.logz.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,093,301
EList<B> getB();
EList<B> getB();
/** * Returns the value of the '<em><b>B</b></em>' containment reference list. * The list contents are of type {@link org.openhealthtools.mdht.emf.w3c.xhtml.B}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * <!-- begin-model-doc --> * bold font * <!-- end-model-doc --> * @return the value o...
Returns the value of the 'B' containment reference list. The list contents are of type <code>org.openhealthtools.mdht.emf.w3c.xhtml.B</code>. bold font
getB
{ "repo_name": "drbgfc/mdht", "path": "hl7/plugins/org.openhealthtools.mdht.emf.hl7.mif2/src/org/openhealthtools/mdht/emf/w3c/xhtml/Object.java", "license": "epl-1.0", "size": 32409 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
222,199
public Integer getClientApiAcceptors() { String acceptors = getProperty(SRVR_API_ACCEPTOR_THREAD_COUNT); return StringUtils.isEmpty(acceptors) ? null : Integer.parseInt(acceptors); }
Integer function() { String acceptors = getProperty(SRVR_API_ACCEPTOR_THREAD_COUNT); return StringUtils.isEmpty(acceptors) ? null : Integer.parseInt(acceptors); }
/** * Return configured acceptors for server api connector. Default = null */
Return configured acceptors for server api connector. Default = null
getClientApiAcceptors
{ "repo_name": "sekikn/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/configuration/Configuration.java", "license": "apache-2.0", "size": 252637 }
[ "org.apache.commons.lang.StringUtils" ]
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
860,408
@Test void testEnum() throws Exception { UtilTests.testEnum(Transparency.class); }
void testEnum() throws Exception { UtilTests.testEnum(Transparency.class); }
/** * Test enum. * * @throws Exception If error. */
Test enum
testEnum
{ "repo_name": "b3dgs/lionengine", "path": "lionengine-core/src/test/java/com/b3dgs/lionengine/graphic/TransparencyTest.java", "license": "gpl-3.0", "size": 1168 }
[ "com.b3dgs.lionengine.UtilTests" ]
import com.b3dgs.lionengine.UtilTests;
import com.b3dgs.lionengine.*;
[ "com.b3dgs.lionengine" ]
com.b3dgs.lionengine;
1,889,971
@Mod.EventHandler public void init(FMLInitializationEvent e) { setup.init(e); proxy.init(e); }
@Mod.EventHandler void function(FMLInitializationEvent e) { setup.init(e); proxy.init(e); }
/** * Do your mod setup. Build whatever data structures you care about. Register recipes. */
Do your mod setup. Build whatever data structures you care about. Register recipes
init
{ "repo_name": "romelo333/rflux", "path": "src/main/java/romelo333/rflux/RFLux.java", "license": "mit", "size": 2221 }
[ "net.minecraftforge.fml.common.Mod", "net.minecraftforge.fml.common.event.FMLInitializationEvent" ]
import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.*; import net.minecraftforge.fml.common.event.*;
[ "net.minecraftforge.fml" ]
net.minecraftforge.fml;
2,902,272
public Adapter createStringAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link ajiML.String <em>String</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-- end-user-doc --> * @retu...
Creates a new adapter for an object of class '<code>ajiML.String String</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
createStringAdapter
{ "repo_name": "SeelabFhdo/AjiL", "path": "ajiML/src/ajiML/util/AjiMLAdapterFactory.java", "license": "mit", "size": 20806 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,443,357
public Set<Bean<?>> getBeans(String name) { ArrayList<Bean<?>> beanList = findByName(name); if (beanList != null) return new LinkedHashSet<Bean<?>>(beanList); else return new LinkedHashSet<Bean<?>>(); }
Set<Bean<?>> function(String name) { ArrayList<Bean<?>> beanList = findByName(name); if (beanList != null) return new LinkedHashSet<Bean<?>>(beanList); else return new LinkedHashSet<Bean<?>>(); }
/** * Returns the bean definitions matching a given name * * @param name the name of the bean to match */
Returns the bean definitions matching a given name
getBeans
{ "repo_name": "CleverCloud/Quercus", "path": "resin/src/main/java/com/caucho/config/inject/InjectManager.java", "license": "gpl-2.0", "size": 120951 }
[ "java.util.ArrayList", "java.util.LinkedHashSet", "java.util.Set", "javax.enterprise.inject.spi.Bean" ]
import java.util.ArrayList; import java.util.LinkedHashSet; import java.util.Set; import javax.enterprise.inject.spi.Bean;
import java.util.*; import javax.enterprise.inject.spi.*;
[ "java.util", "javax.enterprise" ]
java.util; javax.enterprise;
425,939
private void setupTable() { outlineViewListener.listenToVisibilityChanges(false); List<Node.Property<?>> props = loadColumnOrder(); boolean propsExist = props.isEmpty() == false; Node.Property<?> firstProp = null; if (propsExist) { firstProp = pr...
void function() { outlineViewListener.listenToVisibilityChanges(false); List<Node.Property<?>> props = loadColumnOrder(); boolean propsExist = props.isEmpty() == false; Node.Property<?> firstProp = null; if (propsExist) { firstProp = props.remove(0); } outline.setAutoResizeMode((props.isEmpty()) ? JTable.AUTO_RESIZE_AL...
/** * Sets up the Outline view of this tabular result viewer by creating * column headers based on the children of the current root node. The * persisted column order, sorting and visibility is used. */
Sets up the Outline view of this tabular result viewer by creating column headers based on the children of the current root node. The persisted column order, sorting and visibility is used
setupTable
{ "repo_name": "APriestman/autopsy", "path": "Core/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java", "license": "apache-2.0", "size": 35614 }
[ "java.beans.PropertyVetoException", "java.util.List", "java.util.logging.Level", "javax.swing.JTable", "javax.swing.SwingUtilities", "org.netbeans.swing.outline.DefaultOutlineModel", "org.openide.nodes.Node", "org.sleuthkit.autopsy.datamodel.NodeSelectionInfo" ]
import java.beans.PropertyVetoException; import java.util.List; import java.util.logging.Level; import javax.swing.JTable; import javax.swing.SwingUtilities; import org.netbeans.swing.outline.DefaultOutlineModel; import org.openide.nodes.Node; import org.sleuthkit.autopsy.datamodel.NodeSelectionInfo;
import java.beans.*; import java.util.*; import java.util.logging.*; import javax.swing.*; import org.netbeans.swing.outline.*; import org.openide.nodes.*; import org.sleuthkit.autopsy.datamodel.*;
[ "java.beans", "java.util", "javax.swing", "org.netbeans.swing", "org.openide.nodes", "org.sleuthkit.autopsy" ]
java.beans; java.util; javax.swing; org.netbeans.swing; org.openide.nodes; org.sleuthkit.autopsy;
611,139
public com.squareup.okhttp.Call getCharactersCharacterIdAssetsAsync(Integer characterId, String datasource, String token, String userAgent, String xUserAgent, final ApiCallback<List<GetCharactersCharacterIdAssets200Ok>> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener ...
com.squareup.okhttp.Call function(Integer characterId, String datasource, String token, String userAgent, String xUserAgent, final ApiCallback<List<GetCharactersCharacterIdAssets200Ok>> callback) throws ApiException { ProgressResponseBody.ProgressListener progressListener = null; ProgressRequestBody.ProgressRequestList...
/** * Get character assets (asynchronously) * Return a list of the characters assets --- Alternate route: &#x60;/v1/characters/{character_id}/assets/&#x60; Alternate route: &#x60;/legacy/characters/{character_id}/assets/&#x60; Alternate route: &#x60;/dev/characters/{character_id}/assets/&#x60; --- This...
Get character assets (asynchronously) Return a list of the characters assets --- Alternate route: &#x60;/v1/characters/{character_id}/assets/&#x60; Alternate route: &#x60;/legacy/characters/{character_id}/assets/&#x60; Alternate route: &#x60;/dev/characters/{character_id}/assets/&#x60; --- This route is cached for up t...
getCharactersCharacterIdAssetsAsync
{ "repo_name": "Tmin10/EVE-Security-Service", "path": "server-api/src/main/java/ru/tmin10/EVESecurityService/serverApi/api/AssetsApi.java", "license": "gpl-3.0", "size": 10786 }
[ "java.util.List", "ru.tmin10.EVESecurityService" ]
import java.util.List; import ru.tmin10.EVESecurityService;
import java.util.*; import ru.tmin10.*;
[ "java.util", "ru.tmin10" ]
java.util; ru.tmin10;
383,829
public void setFileType(final FileSystemOptions opts, final FtpFileType ftpFileType) { setParam(opts, FILE_TYPE, ftpFileType); }
void function(final FileSystemOptions opts, final FtpFileType ftpFileType) { setParam(opts, FILE_TYPE, ftpFileType); }
/** * Sets the file type parameter. * * @param opts The FileSystemOptions. * @param ftpFileType A FtpFileType * @since 2.1 */
Sets the file type parameter
setFileType
{ "repo_name": "svn2github/commons-vfs2", "path": "commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FtpFileSystemConfigBuilder.java", "license": "apache-2.0", "size": 15018 }
[ "org.apache.commons.vfs2.FileSystemOptions" ]
import org.apache.commons.vfs2.FileSystemOptions;
import org.apache.commons.vfs2.*;
[ "org.apache.commons" ]
org.apache.commons;
2,128,184