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
private void executeSimulation( int simIndex ) { _LOG.trace( "Entering executeSimulation()" ); Map<Object, DepartureEvent> indEvents = new HashMap<Object, DepartureEvent>(); // Maintain the departure history List<DepartureEvent> departureHistory = new L...
void function( int simIndex ) { _LOG.trace( STR ); Map<Object, DepartureEvent> indEvents = new HashMap<Object, DepartureEvent>(); List<DepartureEvent> departureHistory = new LinkedList<DepartureEvent>(); Map<Object,Float> departureTimes = new HashMap<Object, Float>(); Map<SpatialIndividual, InitiatorData> initiators = ...
/** * Executes a single run of the simulator * */
Executes a single run of the simulator
executeSimulation
{ "repo_name": "snucsne/bio-inspired-leadership", "path": "src/edu/snu/leader/hidden/LocalSpatialSimulation.java", "license": "gpl-3.0", "size": 25999 }
[ "edu.snu.leader.hidden.event.DepartureEvent", "java.util.HashMap", "java.util.Iterator", "java.util.LinkedList", "java.util.List", "java.util.Map" ]
import edu.snu.leader.hidden.event.DepartureEvent; import java.util.HashMap; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import java.util.Map;
import edu.snu.leader.hidden.event.*; import java.util.*;
[ "edu.snu.leader", "java.util" ]
edu.snu.leader; java.util;
2,482,819
public void removeLight(String name) { PreCon.notNullOrEmpty(name, "name"); PhantomPackets.getLightManager().remove(name); }
void function(String name) { PreCon.notNullOrEmpty(name, "name"); PhantomPackets.getLightManager().remove(name); }
/** * Remove a light source. * * @param name The name of the light source. */
Remove a light source
removeLight
{ "repo_name": "JCThePants/PhantomPackets", "path": "src/com/jcwhatever/phantom/scripts/PhantomScriptApi.java", "license": "mit", "size": 12545 }
[ "com.jcwhatever.nucleus.utils.PreCon", "com.jcwhatever.phantom.PhantomPackets" ]
import com.jcwhatever.nucleus.utils.PreCon; import com.jcwhatever.phantom.PhantomPackets;
import com.jcwhatever.nucleus.utils.*; import com.jcwhatever.phantom.*;
[ "com.jcwhatever.nucleus", "com.jcwhatever.phantom" ]
com.jcwhatever.nucleus; com.jcwhatever.phantom;
688,909
private static void checkNoLiteralVariableUsageAcrossTypes(Signature declaredSignature) { Map<String, TypeSignature> existingUsages = new HashMap<>(); for (TypeSignature parameter : declaredSignature.getArgumentTypes()) { checkNoLiteralVariableUsageAcrossTypes(parameter, existingUsag...
static void function(Signature declaredSignature) { Map<String, TypeSignature> existingUsages = new HashMap<>(); for (TypeSignature parameter : declaredSignature.getArgumentTypes()) { checkNoLiteralVariableUsageAcrossTypes(parameter, existingUsages); } }
/** * Example of not allowed literal variable usages across typeSignatures: * <p><ul> * <li>x used in different base types: char(x) and varchar(x) * <li>x used in different positions of the same base type: decimal(x,y) and decimal(z,x) * <li>p used in combination with different literals, types,...
Example of not allowed literal variable usages across typeSignatures: x used in different base types: char(x) and varchar(x) x used in different positions of the same base type: decimal(x,y) and decimal(z,x) p used in combination with different literals, types, or literal variables: decimal(p,s1) and decimal(p,s2)
checkNoLiteralVariableUsageAcrossTypes
{ "repo_name": "twitter-forks/presto", "path": "presto-main/src/main/java/com/facebook/presto/metadata/SignatureBinder.java", "license": "apache-2.0", "size": 40674 }
[ "com.facebook.presto.common.type.TypeSignature", "com.facebook.presto.spi.function.Signature", "java.util.HashMap", "java.util.Map" ]
import com.facebook.presto.common.type.TypeSignature; import com.facebook.presto.spi.function.Signature; import java.util.HashMap; import java.util.Map;
import com.facebook.presto.common.type.*; import com.facebook.presto.spi.function.*; import java.util.*;
[ "com.facebook.presto", "java.util" ]
com.facebook.presto; java.util;
1,879,269
Map<String, Object> getProperties();
Map<String, Object> getProperties();
/** * Returns the set of input properties for this task. * * @return The properties. */
Returns the set of input properties for this task
getProperties
{ "repo_name": "gstevey/gradle", "path": "subprojects/core-api/src/main/java/org/gradle/api/tasks/TaskInputs.java", "license": "apache-2.0", "size": 4389 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,476,419
String upload(InputStream content) throws RedmineException;
String upload(InputStream content) throws RedmineException;
/** * UPloads content on a server. * * @param content * content stream. * @return uploaded item token. * @throws RedmineException * if something goes wrong. */
UPloads content on a server
upload
{ "repo_name": "sleroy/redmine-java-api", "path": "src/main/java/com/taskadapter/redmineapi/ITransport.java", "license": "apache-2.0", "size": 6527 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,455,989
public void backpressureBarrier() throws InterruptedException, IOException { ClientImpl currentClient = this.getClient(); if (currentClient == null) { throw new IOException("Client is unavailable for backpressureBarrier()."); } currentClient.backpressureBarrier(); }
void function() throws InterruptedException, IOException { ClientImpl currentClient = this.getClient(); if (currentClient == null) { throw new IOException(STR); } currentClient.backpressureBarrier(); }
/** * Blocks the current thread until there is no more backpressure or there are no more * connections to the database * * @throws InterruptedException * @throws IOException */
Blocks the current thread until there is no more backpressure or there are no more connections to the database
backpressureBarrier
{ "repo_name": "eoneil1942/voltdb-4.7fix", "path": "src/frontend/org/voltdb/jdbc/JDBC4ClientConnection.java", "license": "agpl-3.0", "size": 18714 }
[ "java.io.IOException", "org.voltdb.client.ClientImpl" ]
import java.io.IOException; import org.voltdb.client.ClientImpl;
import java.io.*; import org.voltdb.client.*;
[ "java.io", "org.voltdb.client" ]
java.io; org.voltdb.client;
1,627,018
private Expression matchExpression() throws SQLSyntaxErrorException { match(PUNC_LEFT_PAREN); List<Expression> colList = expressionList(new LinkedList<Expression>()); matchIdentifier("AGAINST"); match(PUNC_LEFT_PAREN); Expression pattern = expression(); Modifier...
Expression function() throws SQLSyntaxErrorException { match(PUNC_LEFT_PAREN); List<Expression> colList = expressionList(new LinkedList<Expression>()); matchIdentifier(STR); match(PUNC_LEFT_PAREN); Expression pattern = expression(); Modifier modifier = Modifier._DEFAULT; switch (lexer.token()) { case KW_WITH: lexer.nex...
/** * first <code>MATCH</code> has been consumed */
first <code>MATCH</code> has been consumed
matchExpression
{ "repo_name": "mingfly/opencloudb", "path": "src/main/java/org/opencloudb/paser/recognizer/mysql/syntax/MySQLExprParser.java", "license": "apache-2.0", "size": 66943 }
[ "java.sql.SQLSyntaxErrorException", "java.util.LinkedList", "java.util.List", "org.opencloudb.paser.ast.expression.Expression", "org.opencloudb.paser.ast.expression.primary.MatchExpression" ]
import java.sql.SQLSyntaxErrorException; import java.util.LinkedList; import java.util.List; import org.opencloudb.paser.ast.expression.Expression; import org.opencloudb.paser.ast.expression.primary.MatchExpression;
import java.sql.*; import java.util.*; import org.opencloudb.paser.ast.expression.*; import org.opencloudb.paser.ast.expression.primary.*;
[ "java.sql", "java.util", "org.opencloudb.paser" ]
java.sql; java.util; org.opencloudb.paser;
137,304
static List<String> getNamesOfClassesWithFieldOfType(final String fieldTypeName, final Set<ClassInfo> allClassInfo) { // This method will not likely be used for a large number of different field types, so perform a linear // search on each invocation, rather than building an index on cla...
static List<String> getNamesOfClassesWithFieldOfType(final String fieldTypeName, final Set<ClassInfo> allClassInfo) { final ArrayList<String> namesOfClassesWithFieldOfType = new ArrayList<>(); for (final ClassInfo classInfo : allClassInfo) { for (final ClassInfo fieldType : classInfo.getDirectlyRelatedClasses(RelType.F...
/** * Get the list of classes that have a field of the named type. * * @return the sorted list of names of classes that have a field of the named type. */
Get the list of classes that have a field of the named type
getNamesOfClassesWithFieldOfType
{ "repo_name": "CiNC0/Cartier", "path": "cartier-classpath-scanner/src/main/java/xyz/vopen/cartier/classpathscanner/scanner/ClassInfo.java", "license": "apache-2.0", "size": 88074 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List", "java.util.Set" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,250,047
public void addThingType(ThingType thingType); /** * Use this method to lookup a ThingType which was generated by the * homematic binding. Other than {@link #getThingType(ThingTypeUID, Locale)} * of this provider, it will return also those {@link ThingType}s which are * excluded by {@li...
void function(ThingType thingType); /** * Use this method to lookup a ThingType which was generated by the * homematic binding. Other than {@link #getThingType(ThingTypeUID, Locale)} * of this provider, it will return also those {@link ThingType}s which are * excluded by {@link HomematicThingTypeExcluder}
/** * Adds the ThingType to this provider. */
Adds the ThingType to this provider
addThingType
{ "repo_name": "johannrichard/openhab2-addons", "path": "addons/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicThingTypeProvider.java", "license": "epl-1.0", "size": 1646 }
[ "java.util.Locale", "org.eclipse.smarthome.core.thing.ThingTypeUID", "org.eclipse.smarthome.core.thing.type.ThingType", "org.openhab.binding.homematic.type.HomematicThingTypeExcluder" ]
import java.util.Locale; import org.eclipse.smarthome.core.thing.ThingTypeUID; import org.eclipse.smarthome.core.thing.type.ThingType; import org.openhab.binding.homematic.type.HomematicThingTypeExcluder;
import java.util.*; import org.eclipse.smarthome.core.thing.*; import org.eclipse.smarthome.core.thing.type.*; import org.openhab.binding.homematic.type.*;
[ "java.util", "org.eclipse.smarthome", "org.openhab.binding" ]
java.util; org.eclipse.smarthome; org.openhab.binding;
1,986,864
public void mergeSortedField(FieldInfo fieldInfo, final MergeState mergeState, List<SortedDocValues> toMerge) throws IOException { mergeState.checkAbort.work(mergeState.segmentInfo.getDocCount()); final AtomicReader readers[] = mergeState.readers.toArray(new AtomicReader[toMerge.size()]); final SortedDo...
void function(FieldInfo fieldInfo, final MergeState mergeState, List<SortedDocValues> toMerge) throws IOException { mergeState.checkAbort.work(mergeState.segmentInfo.getDocCount()); final AtomicReader readers[] = mergeState.readers.toArray(new AtomicReader[toMerge.size()]); final SortedDocValues dvs[] = toMerge.toArray...
/** * Merges the sorted docvalues from <code>toMerge</code>. * <p> * The default implementation calls {@link #addSortedField}, passing * an Iterable that merges ordinals and values and filters deleted documents . */
Merges the sorted docvalues from <code>toMerge</code>. The default implementation calls <code>#addSortedField</code>, passing an Iterable that merges ordinals and values and filters deleted documents
mergeSortedField
{ "repo_name": "smartan/lucene", "path": "src/main/java/org/apache/lucene/codecs/DocValuesConsumer.java", "license": "apache-2.0", "size": 32343 }
[ "java.io.IOException", "java.util.List", "org.apache.lucene.index.AtomicReader", "org.apache.lucene.index.FieldInfo", "org.apache.lucene.index.MergeState", "org.apache.lucene.index.MultiDocValues", "org.apache.lucene.index.SortedDocValues", "org.apache.lucene.index.TermsEnum", "org.apache.lucene.uti...
import java.io.IOException; import java.util.List; import org.apache.lucene.index.AtomicReader; import org.apache.lucene.index.FieldInfo; import org.apache.lucene.index.MergeState; import org.apache.lucene.index.MultiDocValues; import org.apache.lucene.index.SortedDocValues; import org.apache.lucene.index.TermsEnum; im...
import java.io.*; import java.util.*; import org.apache.lucene.index.*; import org.apache.lucene.util.*; import org.apache.lucene.util.packed.*;
[ "java.io", "java.util", "org.apache.lucene" ]
java.io; java.util; org.apache.lucene;
2,041,467
void onCreate(Data key, Object value);
void onCreate(Data key, Object value);
/** * Called when a new entry is created. * * @param key the key * @param value the value */
Called when a new entry is created
onCreate
{ "repo_name": "jerrinot/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/cache/impl/CacheRSMutationObserver.java", "license": "apache-2.0", "size": 1982 }
[ "com.hazelcast.internal.serialization.Data" ]
import com.hazelcast.internal.serialization.Data;
import com.hazelcast.internal.serialization.*;
[ "com.hazelcast.internal" ]
com.hazelcast.internal;
1,359,872
public void setChannelValue(int channelId, PercentType value);
void function(int channelId, PercentType value);
/** * For channels without active actions, this will set the channel to the * provided value. If a channel is disabled, setting the value will also * enable the channel. For channels with active actions, this will set the * output level on the actions to the provided value. * * @param channelId * @param ...
For channels without active actions, this will set the channel to the provided value. If a channel is disabled, setting the value will also enable the channel. For channels with active actions, this will set the output level on the actions to the provided value
setChannelValue
{ "repo_name": "Cougar/mirror-openhab", "path": "bundles/binding/org.openhab.binding.dmx/src/main/java/org/openhab/binding/dmx/DmxService.java", "license": "gpl-3.0", "size": 7508 }
[ "org.openhab.core.library.types.PercentType" ]
import org.openhab.core.library.types.PercentType;
import org.openhab.core.library.types.*;
[ "org.openhab.core" ]
org.openhab.core;
927,505
public ManagedAccounts collectorManagedAccountsGet(String xProgrammeKey, String authorization, ManagedAccountFilter request, String xCallref) throws ApiException { ApiResponse<ManagedAccounts> resp = collectorManagedAccountsGetWithHttpInfo(xProgrammeKey, authorization, request, xCallref); return res...
ManagedAccounts function(String xProgrammeKey, String authorization, ManagedAccountFilter request, String xCallref) throws ApiException { ApiResponse<ManagedAccounts> resp = collectorManagedAccountsGetWithHttpInfo(xProgrammeKey, authorization, request, xCallref); return resp.getData(); }
/** * * Retrieve managed accounts with the specified parameters. * @param xProgrammeKey This identifies your tenant and programme within OPE. The typical format is &#x60;tenantId|programmeId&#x60;, for example &#x60;team-01|3749203750&#x60;. (required) * @param authorization This is the authorisati...
Retrieve managed accounts with the specified parameters
collectorManagedAccountsGet
{ "repo_name": "ixaris/ope-applicationclients", "path": "java-client/src/main/java/com/ixaris/ope/applications/client/api/CollectorApi.java", "license": "mit", "size": 110960 }
[ "com.ixaris.ope.applications.client.ApiException", "com.ixaris.ope.applications.client.ApiResponse", "com.ixaris.ope.applications.client.model.ManagedAccountFilter", "com.ixaris.ope.applications.client.model.ManagedAccounts" ]
import com.ixaris.ope.applications.client.ApiException; import com.ixaris.ope.applications.client.ApiResponse; import com.ixaris.ope.applications.client.model.ManagedAccountFilter; import com.ixaris.ope.applications.client.model.ManagedAccounts;
import com.ixaris.ope.applications.client.*; import com.ixaris.ope.applications.client.model.*;
[ "com.ixaris.ope" ]
com.ixaris.ope;
2,078,059
private void cancelStream(ChannelHandlerContext ctx, CancelStreamCommand cmd, ChannelPromise promise) { NettyClientStream stream = cmd.stream(); stream.transportReportStatus(Status.CANCELLED, true, new Metadata.Trailers()); encoder().writeRstStream(ctx, stream.id(), Http2Error.CANCEL.code(), promise...
void function(ChannelHandlerContext ctx, CancelStreamCommand cmd, ChannelPromise promise) { NettyClientStream stream = cmd.stream(); stream.transportReportStatus(Status.CANCELLED, true, new Metadata.Trailers()); encoder().writeRstStream(ctx, stream.id(), Http2Error.CANCEL.code(), promise); }
/** * Cancels this stream. */
Cancels this stream
cancelStream
{ "repo_name": "jcanizales/grpc-java", "path": "netty/src/main/java/io/grpc/transport/netty/NettyClientHandler.java", "license": "bsd-3-clause", "size": 15719 }
[ "io.grpc.Metadata", "io.grpc.Status", "io.netty.channel.ChannelHandlerContext", "io.netty.channel.ChannelPromise", "io.netty.handler.codec.http2.Http2Error" ]
import io.grpc.Metadata; import io.grpc.Status; import io.netty.channel.ChannelHandlerContext; import io.netty.channel.ChannelPromise; import io.netty.handler.codec.http2.Http2Error;
import io.grpc.*; import io.netty.channel.*; import io.netty.handler.codec.http2.*;
[ "io.grpc", "io.netty.channel", "io.netty.handler" ]
io.grpc; io.netty.channel; io.netty.handler;
2,168,208
void delete202() throws ErrorException, IOException;
void delete202() throws ErrorException, IOException;
/** * Delete true Boolean value in request returns 202 (accepted). * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization */
Delete true Boolean value in request returns 202 (accepted)
delete202
{ "repo_name": "tbombach/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/http/HttpSuccess.java", "license": "mit", "size": 36703 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,443,453
@Test public void testNamenodeOrder() throws Exception { Map<String, UpgradePack> upgrades = ambariMetaInfo.getUpgradePacks("HDP", "2.1.1"); assertTrue(upgrades.containsKey("upgrade_test")); UpgradePack upgrade = upgrades.get("upgrade_test"); assertNotNull(upgrade); Cluster cluster = makeCluste...
void function() throws Exception { Map<String, UpgradePack> upgrades = ambariMetaInfo.getUpgradePacks("HDP", "2.1.1"); assertTrue(upgrades.containsKey(STR)); UpgradePack upgrade = upgrades.get(STR); assertNotNull(upgrade); Cluster cluster = makeCluster(); UpgradeContext context = getMockUpgradeContext(cluster, Directio...
/** * Verify that a Rolling Upgrades restarts the NameNodes in the following order: standby, active. * @throws Exception */
Verify that a Rolling Upgrades restarts the NameNodes in the following order: standby, active
testNamenodeOrder
{ "repo_name": "sekikn/ambari", "path": "ambari-server/src/test/java/org/apache/ambari/server/stack/upgrade/orchestrate/UpgradeHelperTest.java", "license": "apache-2.0", "size": 140925 }
[ "java.util.LinkedList", "java.util.List", "java.util.Map", "org.apache.ambari.server.stack.upgrade.Direction", "org.apache.ambari.server.stack.upgrade.UpgradePack", "org.apache.ambari.server.state.Cluster", "org.apache.ambari.spi.upgrade.UpgradeType", "org.junit.Assert" ]
import java.util.LinkedList; import java.util.List; import java.util.Map; import org.apache.ambari.server.stack.upgrade.Direction; import org.apache.ambari.server.stack.upgrade.UpgradePack; import org.apache.ambari.server.state.Cluster; import org.apache.ambari.spi.upgrade.UpgradeType; import org.junit.Assert;
import java.util.*; import org.apache.ambari.server.stack.upgrade.*; import org.apache.ambari.server.state.*; import org.apache.ambari.spi.upgrade.*; import org.junit.*;
[ "java.util", "org.apache.ambari", "org.junit" ]
java.util; org.apache.ambari; org.junit;
1,712,137
public TransHopMeta findTransHopFrom(StepMeta fromstep) { int i; for (i = 0; i < nrTransHops(); i++) { TransHopMeta hi = getTransHop(i); if (hi.getFromStep() != null && hi.getFromStep().equals(fromstep)) // return the first { return hi; } } ...
TransHopMeta function(StepMeta fromstep) { int i; for (i = 0; i < nrTransHops(); i++) { TransHopMeta hi = getTransHop(i); if (hi.getFromStep() != null && hi.getFromStep().equals(fromstep)) { return hi; } } return null; }
/** * Search all hops for a hop where a certain step is at the start. * * @param fromstep The step at the start of the hop. * @return The hop or null if no hop was found. */
Search all hops for a hop where a certain step is at the start
findTransHopFrom
{ "repo_name": "icholy/geokettle-2.0", "path": "src/org/pentaho/di/trans/TransMeta.java", "license": "lgpl-2.1", "size": 230572 }
[ "org.pentaho.di.trans.step.StepMeta" ]
import org.pentaho.di.trans.step.StepMeta;
import org.pentaho.di.trans.step.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,554,570
@Generated @Selector("environmentTexturing") @NInt public native long environmentTexturing();
@Selector(STR) native long function();
/** * The mode of environment texturing to run. * <p> * If set, texture information will be accumulated and updated. Adding an AREnvironmentProbeAnchor to the session * will get the current environment texture available from that probe's perspective which can be used for lighting * virtual obje...
The mode of environment texturing to run. If set, texture information will be accumulated and updated. Adding an AREnvironmentProbeAnchor to the session will get the current environment texture available from that probe's perspective which can be used for lighting virtual objects in the scene. Defaults to AREnvironment...
environmentTexturing
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/arkit/ARBodyTrackingConfiguration.java", "license": "apache-2.0", "size": 14496 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
2,504,403
public ISelection getSelection() { return editorSelection; }
ISelection function() { return editorSelection; }
/** * This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to return this editor's overall selection. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This implements <code>org.eclipse.jface.viewers.ISelectionProvider</code> to return this editor's overall selection.
getSelection
{ "repo_name": "FTSRG/mondo-collab-framework", "path": "archive/workspaceTracker/VA/traceModel.editor/src/eu/mondo/collaboration/operationtracemodel/presentation/OperationtracemodelEditor.java", "license": "epl-1.0", "size": 56226 }
[ "org.eclipse.jface.viewers.ISelection" ]
import org.eclipse.jface.viewers.ISelection;
import org.eclipse.jface.viewers.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
2,228,182
public Map<Class<?>, Class<? extends PropertyEditor>> getCustomEditors() { return this.customEditors; }
Map<Class<?>, Class<? extends PropertyEditor>> function() { return this.customEditors; }
/** * Return the map of custom editors, with Classes as keys and PropertyEditor classes as values. */
Return the map of custom editors, with Classes as keys and PropertyEditor classes as values
getCustomEditors
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/spring/org/springframework/beans/factory/support/AbstractBeanFactory.java", "license": "gpl-2.0", "size": 67974 }
[ "java.beans.PropertyEditor", "java.util.Map" ]
import java.beans.PropertyEditor; import java.util.Map;
import java.beans.*; import java.util.*;
[ "java.beans", "java.util" ]
java.beans; java.util;
738,157
private int renderMBeans(JsonGenerator jg, String[] mBeanNames) throws IOException, MalformedObjectNameException { jg.writeStartObject(); Set<ObjectName> nameQueries, queriedObjects; nameQueries = new HashSet<ObjectName>(); queriedObjects = new HashSet<ObjectName>(); // if no mbean names p...
int function(JsonGenerator jg, String[] mBeanNames) throws IOException, MalformedObjectNameException { jg.writeStartObject(); Set<ObjectName> nameQueries, queriedObjects; nameQueries = new HashSet<ObjectName>(); queriedObjects = new HashSet<ObjectName>(); if (mBeanNames == null) { nameQueries.add(null); } else { for (S...
/** * Renders MBean attributes to jg. * The queries parameter allows selection of a subset of mbeans. * * @param jg * JsonGenerator that will be written to * @param mBeanNames * Optional list of mbean names to render. If null, every * mbean will be returned. * @ret...
Renders MBean attributes to jg. The queries parameter allows selection of a subset of mbeans
renderMBeans
{ "repo_name": "shakamunyi/hadoop-20", "path": "src/core/org/apache/hadoop/jmx/JMXJsonServlet.java", "license": "apache-2.0", "size": 11316 }
[ "java.io.IOException", "java.util.HashSet", "java.util.Set", "javax.management.MalformedObjectNameException", "javax.management.ObjectName", "javax.servlet.http.HttpServletResponse", "org.codehaus.jackson.JsonGenerator" ]
import java.io.IOException; import java.util.HashSet; import java.util.Set; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import javax.servlet.http.HttpServletResponse; import org.codehaus.jackson.JsonGenerator;
import java.io.*; import java.util.*; import javax.management.*; import javax.servlet.http.*; import org.codehaus.jackson.*;
[ "java.io", "java.util", "javax.management", "javax.servlet", "org.codehaus.jackson" ]
java.io; java.util; javax.management; javax.servlet; org.codehaus.jackson;
1,805,097
public int update(Object[] params, KeyHolder generatedKeyHolder) throws DataAccessException { validateParameters(params); int rowsAffected = getJdbcTemplate().update(newPreparedStatementCreator(params), generatedKeyHolder); checkRowsAffected(rowsAffected); return rowsAffected; }
int function(Object[] params, KeyHolder generatedKeyHolder) throws DataAccessException { validateParameters(params); int rowsAffected = getJdbcTemplate().update(newPreparedStatementCreator(params), generatedKeyHolder); checkRowsAffected(rowsAffected); return rowsAffected; }
/** * Method to execute the update given arguments and * retrieve the generated keys using a KeyHolder. * @param params array of parameter objects * @param generatedKeyHolder KeyHolder that will hold the generated keys * @return the number of rows affected by the update */
Method to execute the update given arguments and retrieve the generated keys using a KeyHolder
update
{ "repo_name": "cbeams-archive/spring-framework-2.5.x", "path": "src/org/springframework/jdbc/object/SqlUpdate.java", "license": "apache-2.0", "size": 9786 }
[ "org.springframework.dao.DataAccessException", "org.springframework.jdbc.support.KeyHolder" ]
import org.springframework.dao.DataAccessException; import org.springframework.jdbc.support.KeyHolder;
import org.springframework.dao.*; import org.springframework.jdbc.support.*;
[ "org.springframework.dao", "org.springframework.jdbc" ]
org.springframework.dao; org.springframework.jdbc;
1,728,198
private File buildDestFile(final File srcFile) { String srcFilename = srcFile.getName(); String destFilename; if (srcFilename.toLowerCase().endsWith(".wav")) { destFilename = srcFilename.substring(0, srcFilename.length()-4); } else { destFilename = srcFilename; } de...
File function(final File srcFile) { String srcFilename = srcFile.getName(); String destFilename; if (srcFilename.toLowerCase().endsWith(".wav")) { destFilename = srcFilename.substring(0, srcFilename.length()-4); } else { destFilename = srcFilename; } destFilename = destFilename + ".spx"; if (destDir == null) { return n...
/** * Builds and returns the destination file. * @param srcFile * @return the destination file. */
Builds and returns the destination file
buildDestFile
{ "repo_name": "srnsw/xena", "path": "plugins/audio/ext/src/jspeex/src/java/org/xiph/speex/ant/JSpeexEncoderTask.java", "license": "gpl-3.0", "size": 21159 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,665,659
public void enableOrbColorAnimation(boolean enable) { if (mColorAnimator != null) { mColorAnimator.end(); mColorAnimator = null; } if (enable) { // TODO: set interpolator (material if available) mColorAnimator = ValueAnimator.ofObject(mColorEva...
void function(boolean enable) { if (mColorAnimator != null) { mColorAnimator.end(); mColorAnimator = null; } if (enable) { mColorAnimator = ValueAnimator.ofObject(mColorEvaluator, mColors.color, mColors.brightColor, mColors.color); mColorAnimator.setRepeatCount(ValueAnimator.INFINITE); mColorAnimator.setDuration(mPulse...
/** * Enables or disables the orb color animation. * * <p> * Orb color animation is handled automatically when the orb is focused/unfocused, * however, an app may choose to override the current animation state, for example * when an activity is paused. * </p> */
Enables or disables the orb color animation. Orb color animation is handled automatically when the orb is focused/unfocused, however, an app may choose to override the current animation state, for example when an activity is paused.
enableOrbColorAnimation
{ "repo_name": "syslover33/ctank", "path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/android/support/v17/leanback/widget/SearchOrbView.java", "license": "gpl-3.0", "size": 12627 }
[ "android.animation.ValueAnimator" ]
import android.animation.ValueAnimator;
import android.animation.*;
[ "android.animation" ]
android.animation;
1,286,365
@Override public Entry<K, V> next() { if (!hasNext) { throw new NoSuchElementException(); } if (!valid) { throw new RuntimeException("#iterator() cannot be used nested."); } K[] keyTable = map.keyTable; ...
Entry<K, V> function() { if (!hasNext) { throw new NoSuchElementException(); } if (!valid) { throw new RuntimeException(STR); } K[] keyTable = map.keyTable; entry.key = keyTable[nextIndex]; entry.value = map.valueTable[nextIndex]; currentIndex = nextIndex; findNextIndex(); return entry; }
/** * Note the same entry instance is returned each time this method is called. */
Note the same entry instance is returned each time this method is called
next
{ "repo_name": "grum/Ashley", "path": "gdx-lib/src/main/java/com/badlogic/gdx/utils/ObjectMap.java", "license": "apache-2.0", "size": 29169 }
[ "java.util.NoSuchElementException" ]
import java.util.NoSuchElementException;
import java.util.*;
[ "java.util" ]
java.util;
725,265
public void setResourceBundle(ResourceBundle resourceBundle) { this.resourceBundle = resourceBundle; }
void function(ResourceBundle resourceBundle) { this.resourceBundle = resourceBundle; }
/** * Sets the resource bundle of the add-on. * * <p><strong>Note:</strong> This method should be called only by bootstrap classes. * * @param resourceBundle the resource bundle of the add-on, might be {@code null}. * @since 2.8.0 * @see #getBundleData() */
Sets the resource bundle of the add-on. Note: This method should be called only by bootstrap classes
setResourceBundle
{ "repo_name": "gmaran23/zaproxy", "path": "zap/src/main/java/org/zaproxy/zap/control/AddOn.java", "license": "apache-2.0", "size": 85984 }
[ "java.util.ResourceBundle" ]
import java.util.ResourceBundle;
import java.util.*;
[ "java.util" ]
java.util;
490,465
@Override public Schema getSchema() { return schema$; }
Schema function() { return schema$; }
/** * This method supports the Avro framework and is not intended to be called * directly by the user. * * @return the schema object describing this class. * */
This method supports the Avro framework and is not intended to be called directly by the user
getSchema
{ "repo_name": "GPUdb/gpudb-api-java", "path": "api/src/main/java/com/gpudb/protocol/AlterResourceGroupRequest.java", "license": "mit", "size": 28797 }
[ "org.apache.avro.Schema" ]
import org.apache.avro.Schema;
import org.apache.avro.*;
[ "org.apache.avro" ]
org.apache.avro;
561,235
if (this.setInHand()) { return boardState; } if (!CultMaster.filter.targetMatches(thisMinionPlayerSide, this, deadMinionPlayerSide, deadMinion, boardState.data_)) { return boardState; } if (!this.isAlive()) { return boardState; } ret...
if (this.setInHand()) { return boardState; } if (!CultMaster.filter.targetMatches(thisMinionPlayerSide, this, deadMinionPlayerSide, deadMinion, boardState.data_)) { return boardState; } if (!this.isAlive()) { return boardState; } return CultMaster.effect.applyEffect(thisMinionPlayerSide, CharacterIndex.HERO, boardState...
/** * Draw a card whenever this minion takes damage * */
Draw a card whenever this minion takes damage
minionDeadEvent
{ "repo_name": "oyachai/HearthSim", "path": "src/main/java/com/hearthsim/card/classic/minion/common/CultMaster.java", "license": "mit", "size": 1386 }
[ "com.hearthsim.card.CharacterIndex" ]
import com.hearthsim.card.CharacterIndex;
import com.hearthsim.card.*;
[ "com.hearthsim.card" ]
com.hearthsim.card;
1,457,446
public static byte[] readFully(final InputStream input, final int length) throws IOException { final byte[] buffer = new byte[length]; readFully(input, buffer, 0, buffer.length); return buffer; }
static byte[] function(final InputStream input, final int length) throws IOException { final byte[] buffer = new byte[length]; readFully(input, buffer, 0, buffer.length); return buffer; }
/** * Reads the requested number of bytes or fail if there are not enough left. * <p> * This allows for the possibility that * {@link InputStream#read(byte[], int, int)} may not read as many bytes as * requested (most likely because of reaching EOF). * * @param input where to read input from * ...
Reads the requested number of bytes or fail if there are not enough left. This allows for the possibility that <code>InputStream#read(byte[], int, int)</code> may not read as many bytes as requested (most likely because of reaching EOF)
readFully
{ "repo_name": "ecd-plugin/ecd", "path": "org.sf.feeling.decompiler/src/org/sf/feeling/decompiler/util/IOUtils.java", "license": "epl-1.0", "size": 55283 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,838,113
List<FigshareCategory> getCategories (boolean useAccountCategories);
List<FigshareCategory> getCategories (boolean useAccountCategories);
/** * Gets list of Categories, currently parent Categories are not returned, only their ids in parentID fields. * @param useAccountCategories boolean flag used to retrieve private categories for this account if set, see here: https://docs.figshare.com/#private_categories_list * @return */
Gets list of Categories, currently parent Categories are not returned, only their ids in parentID fields
getCategories
{ "repo_name": "rspace-os/figshare-client-java", "path": "src/main/java/com/researchspace/figshare/api/Figshare.java", "license": "apache-2.0", "size": 4086 }
[ "com.researchspace.figshare.model.FigshareCategory", "java.util.List" ]
import com.researchspace.figshare.model.FigshareCategory; import java.util.List;
import com.researchspace.figshare.model.*; import java.util.*;
[ "com.researchspace.figshare", "java.util" ]
com.researchspace.figshare; java.util;
2,343,407
// Suppressing 'ObsoleteSdkInt' as this code is shared between APKs with different min SDK // levels @SuppressLint({"ObsoleteSdkInt"}) private static void initNotifications(Context context) { NotificationChannelCompat navChannel = new NotificationChannelCompat.Builder( ...
@SuppressLint({STR}) static void function(Context context) { NotificationChannelCompat navChannel = new NotificationChannelCompat.Builder( NAV_NOTIFICATION_CHANNEL_ID, NotificationManagerCompat.IMPORTANCE_HIGH) .setName(NAV_NOTIFICATION_CHANNEL_NAME).build(); CarNotificationManager.from(context).createNotificationChann...
/** * Initializes the notifications, if needed. * * <p>{@link NotificationManager#IMPORTANCE_HIGH} is needed to show the alerts on top of the car * screen. However, the rail widget at the bottom of the screen will show regardless of the * importance setting. */
Initializes the notifications, if needed. <code>NotificationManager#IMPORTANCE_HIGH</code> is needed to show the alerts on top of the car screen. However, the rail widget at the bottom of the screen will show regardless of the importance setting
initNotifications
{ "repo_name": "android/car-samples", "path": "car_app_library/showcase/common/src/main/java/androidx/car/app/sample/showcase/common/navigation/NavigationNotificationService.java", "license": "apache-2.0", "size": 10566 }
[ "android.annotation.SuppressLint", "android.content.Context", "androidx.car.app.notification.CarNotificationManager", "androidx.core.app.NotificationChannelCompat", "androidx.core.app.NotificationManagerCompat" ]
import android.annotation.SuppressLint; import android.content.Context; import androidx.car.app.notification.CarNotificationManager; import androidx.core.app.NotificationChannelCompat; import androidx.core.app.NotificationManagerCompat;
import android.annotation.*; import android.content.*; import androidx.car.app.notification.*; import androidx.core.app.*;
[ "android.annotation", "android.content", "androidx.car", "androidx.core" ]
android.annotation; android.content; androidx.car; androidx.core;
665,136
public String getLoggerLevel(final String logger) { if (logger == null) { throw new IllegalArgumentException("logger is null"); } Level level = LogManager.getLogger(logger).getLevel(); if (level != null) { return level.toString(); } return n...
String function(final String logger) { if (logger == null) { throw new IllegalArgumentException(STR); } Level level = LogManager.getLogger(logger).getLevel(); if (level != null) { return level.toString(); } return null; }
/** * Gets the level of the logger of the give name. * * @param logger The logger to inspect. */
Gets the level of the logger of the give name
getLoggerLevel
{ "repo_name": "meetdestiny/geronimo-trader", "path": "modules/system/src/java/org/apache/geronimo/system/logging/log4j/Log4jService.java", "license": "apache-2.0", "size": 23959 }
[ "org.apache.log4j.Level", "org.apache.log4j.LogManager" ]
import org.apache.log4j.Level; import org.apache.log4j.LogManager;
import org.apache.log4j.*;
[ "org.apache.log4j" ]
org.apache.log4j;
1,923,219
void testIterationStart(LoopIterationEvent event);
void testIterationStart(LoopIterationEvent event);
/** * Each time through a Thread Group's test script, an iteration event is * fired for each thread. * * This will be after the test elements have been cloned, so in general * the instance will not be the same as the ones the start/end methods call. * * @param event the iterati...
Each time through a Thread Group's test script, an iteration event is fired for each thread. This will be after the test elements have been cloned, so in general the instance will not be the same as the ones the start/end methods call
testIterationStart
{ "repo_name": "yuyupapa/OpenSource", "path": "apache-jmeter-3.0/src/core/org/apache/jmeter/testelement/TestIterationListener.java", "license": "apache-2.0", "size": 1371 }
[ "org.apache.jmeter.engine.event.LoopIterationEvent" ]
import org.apache.jmeter.engine.event.LoopIterationEvent;
import org.apache.jmeter.engine.event.*;
[ "org.apache.jmeter" ]
org.apache.jmeter;
757,127
public void done(long baseOffset, long timestamp, RuntimeException exception) { log.trace("Produced messages to topic-partition {} with base offset offset {} and error: {}.", topicPartition, baseOffset, exception); // execute callbacks fo...
void function(long baseOffset, long timestamp, RuntimeException exception) { log.trace(STR, topicPartition, baseOffset, exception); for (int i = 0; i < this.thunks.size(); i++) { try { Thunk thunk = this.thunks.get(i); if (exception == null) { RecordMetadata metadata = new RecordMetadata(this.topicPartition, baseOffset...
/** * Complete the request * * @param baseOffset The base offset of the messages assigned by the server * @param timestamp The timestamp returned by the broker. * @param exception The exception that occurred (or null if the request was successful) */
Complete the request
done
{ "repo_name": "geeag/kafka", "path": "clients/src/main/java/org/apache/kafka/clients/producer/internals/RecordBatch.java", "license": "apache-2.0", "size": 7883 }
[ "org.apache.kafka.clients.producer.Callback", "org.apache.kafka.clients.producer.RecordMetadata", "org.apache.kafka.common.record.Record" ]
import org.apache.kafka.clients.producer.Callback; import org.apache.kafka.clients.producer.RecordMetadata; import org.apache.kafka.common.record.Record;
import org.apache.kafka.clients.producer.*; import org.apache.kafka.common.record.*;
[ "org.apache.kafka" ]
org.apache.kafka;
655,878
private void visitCommon(int offset, int length, boolean nextIsLive) { Bits.set(liveSet, offset); if (nextIsLive) { addWorkIfNecessary(offset + length, false); } else { Bits.set(blockSet, offset + length); } }
void function(int offset, int length, boolean nextIsLive) { Bits.set(liveSet, offset); if (nextIsLive) { addWorkIfNecessary(offset + length, false); } else { Bits.set(blockSet, offset + length); } }
/** * Helper method used by all the visitor methods. * * @param offset offset to the instruction * @param length length of the instruction, in bytes * @param nextIsLive {@code true} iff the instruction after * the indicated one is possibly-live (because this one isn't an * uncondition...
Helper method used by all the visitor methods
visitCommon
{ "repo_name": "rex-xxx/mt6572_x201", "path": "dalvik/dx/src/com/android/dx/cf/code/BasicBlocker.java", "license": "gpl-2.0", "size": 15051 }
[ "com.android.dx.util.Bits" ]
import com.android.dx.util.Bits;
import com.android.dx.util.*;
[ "com.android.dx" ]
com.android.dx;
1,932,398
public void write(DataOutput out) throws IOException { // write a prefix indicating the type of UGI being written Text.writeString(out, UGI_TECHNOLOGY); // write this object Text.writeString(out, userName); WritableUtils.writeVInt(out, groupNames.length); for (String groupName : groupNames) { ...
void function(DataOutput out) throws IOException { Text.writeString(out, UGI_TECHNOLOGY); Text.writeString(out, userName); WritableUtils.writeVInt(out, groupNames.length); for (String groupName : groupNames) { Text.writeString(out, groupName); } }
/** Serialize this object * First write a string marking that this is a UGI in the string format, * then write this object's serialized form to the given data output * * @param out output stream * @exception IOException if encounter any error during writing */
Serialize this object First write a string marking that this is a UGI in the string format, then write this object's serialized form to the given data output
write
{ "repo_name": "zyguan/HDFS-503-on-0.20.2", "path": "src/core/org/apache/hadoop/security/UnixUserGroupInformation.java", "license": "apache-2.0", "size": 14465 }
[ "java.io.DataOutput", "java.io.IOException", "org.apache.hadoop.io.Text", "org.apache.hadoop.io.WritableUtils" ]
import java.io.DataOutput; import java.io.IOException; import org.apache.hadoop.io.Text; import org.apache.hadoop.io.WritableUtils;
import java.io.*; import org.apache.hadoop.io.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
265,719
@ServiceMethod(returns = ReturnType.SINGLE) Response<Void> deleteWithResponse(String policyDefinitionName, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<Void> deleteWithResponse(String policyDefinitionName, Context context);
/** * Deletes a policy definition. * * @param policyDefinitionName The name of the policy definition to delete. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.ex...
Deletes a policy definition
deleteWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/PolicyDefinitionsClient.java", "license": "mit", "size": 26040 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context" ]
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.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
2,510,724
String getName();
String getName();
/** * Returns the value of the '<em><b>Name</b></em>' attribute. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Name</em>' attribute isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Na...
Returns the value of the 'Name' attribute. If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here...
getName
{ "repo_name": "geotools/geotools", "path": "modules/ogc/net.opengis.csw/src/net/opengis/cat/csw20/ConceptualSchemeType.java", "license": "lgpl-2.1", "size": 4002 }
[ "java.lang.String" ]
import java.lang.String;
import java.lang.*;
[ "java.lang" ]
java.lang;
791,821
public void closeScreen() { this.connection.sendPacket(new SPacketCloseWindow(this.openContainer.windowId)); this.closeContainer(); }
void function() { this.connection.sendPacket(new SPacketCloseWindow(this.openContainer.windowId)); this.closeContainer(); }
/** * set current crafting inventory back to the 2x2 square */
set current crafting inventory back to the 2x2 square
closeScreen
{ "repo_name": "F1r3w477/CustomWorldGen", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/player/EntityPlayerMP.java", "license": "lgpl-3.0", "size": 50878 }
[ "net.minecraft.network.play.server.SPacketCloseWindow" ]
import net.minecraft.network.play.server.SPacketCloseWindow;
import net.minecraft.network.play.server.*;
[ "net.minecraft.network" ]
net.minecraft.network;
1,488,015
@Override @CallSuper public boolean onLongClick(View view) { int position = getFlexibleAdapterPosition(); if (mAdapter.isItemEnabled(position) && isViewCollapsibleOnLongClick()) { collapseView(position); } return super.onLongClick(view); } /** * {@in...
boolean function(View view) { int position = getFlexibleAdapterPosition(); if (mAdapter.isItemEnabled(position) && isViewCollapsibleOnLongClick()) { collapseView(position); } return super.onLongClick(view); } /** * {@inheritDoc}
/** * Called when user long taps on this itemView. * <p><b>Note:</b> In Expandable version, it tries to collapse, but before, * it checks if the view {@link #isViewCollapsibleOnLongClick()}.</p> * * @param view the view that receives the event * @since 5.0.0-b1 */
Called when user long taps on this itemView. Note: In Expandable version, it tries to collapse, but before, it checks if the view <code>#isViewCollapsibleOnLongClick()</code>
onLongClick
{ "repo_name": "davideas/FlexibleAdapter", "path": "flexible-adapter/src/main/java/eu/davidea/viewholders/ExpandableViewHolder.java", "license": "apache-2.0", "size": 7781 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,289,048
protected Intent prepareUrlIntent(Intent intent, String url) { intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setComponent(new ComponentName(getInstrumentation().getTargetContext(), ChromeLauncherActivity.class)); if (url != null) { intent.setData(Uri.par...
Intent function(Intent intent, String url) { intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); intent.setComponent(new ComponentName(getInstrumentation().getTargetContext(), ChromeLauncherActivity.class)); if (url != null) { intent.setData(Uri.parse(url)); } try { Method method = getClass().getMethod(getName(), (Class[])...
/** * Prepares a URL intent to start the activity. * @param intent the intent to be modified * @param url the URL to be used (may be null) */
Prepares a URL intent to start the activity
prepareUrlIntent
{ "repo_name": "lihui7115/ChromiumGStreamerBackend", "path": "chrome/test/android/javatests/src/org/chromium/chrome/test/ChromeActivityTestCaseBase.java", "license": "bsd-3-clause", "size": 41535 }
[ "android.content.ComponentName", "android.content.Intent", "android.net.Uri", "java.lang.reflect.Method", "org.chromium.chrome.browser.ChromeTabbedActivity", "org.chromium.chrome.browser.document.ChromeLauncherActivity", "org.chromium.content.browser.test.util.RenderProcessLimit" ]
import android.content.ComponentName; import android.content.Intent; import android.net.Uri; import java.lang.reflect.Method; import org.chromium.chrome.browser.ChromeTabbedActivity; import org.chromium.chrome.browser.document.ChromeLauncherActivity; import org.chromium.content.browser.test.util.RenderProcessLimit;
import android.content.*; import android.net.*; import java.lang.reflect.*; import org.chromium.chrome.browser.*; import org.chromium.chrome.browser.document.*; import org.chromium.content.browser.test.util.*;
[ "android.content", "android.net", "java.lang", "org.chromium.chrome", "org.chromium.content" ]
android.content; android.net; java.lang; org.chromium.chrome; org.chromium.content;
1,146,669
public void testScriptCaching() throws Exception { assertAcked(prepareCreate("cache_test_idx").setMapping("d", "type=long") .setSettings(Settings.builder().put("requests.cache.enable", true).put("number_of_shards", 1).put("number_of_replicas", 1)) .get()); indexRandom...
void function() throws Exception { assertAcked(prepareCreate(STR).setMapping("d", STR) .setSettings(Settings.builder().put(STR, true).put(STR, 1).put(STR, 1)) .get()); indexRandom(true, client().prepareIndex(STR).setId("1").setSource("s", 1), client().prepareIndex(STR).setId("2").setSource("s", 2)); assertThat(client()...
/** * Make sure that a request using a deterministic script or not using a script get cached. * Ensure requests using nondeterministic scripts do not get cached. */
Make sure that a request using a deterministic script or not using a script get cached. Ensure requests using nondeterministic scripts do not get cached
testScriptCaching
{ "repo_name": "robin13/elasticsearch", "path": "server/src/internalClusterTest/java/org/elasticsearch/search/aggregations/metrics/StatsIT.java", "license": "apache-2.0", "size": 14229 }
[ "java.util.Collections", "org.elasticsearch.action.search.SearchResponse", "org.elasticsearch.common.settings.Settings", "org.elasticsearch.script.Script", "org.elasticsearch.script.ScriptType", "org.elasticsearch.search.aggregations.AggregationBuilders", "org.elasticsearch.search.aggregations.Aggregati...
import java.util.Collections; import org.elasticsearch.action.search.SearchResponse; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.script.Script; import org.elasticsearch.script.ScriptType; import org.elasticsearch.search.aggregations.AggregationBuilders; import org.elasticsearch.search.ag...
import java.util.*; import org.elasticsearch.action.search.*; import org.elasticsearch.common.settings.*; import org.elasticsearch.script.*; import org.elasticsearch.search.aggregations.*; import org.elasticsearch.test.hamcrest.*; import org.hamcrest.*;
[ "java.util", "org.elasticsearch.action", "org.elasticsearch.common", "org.elasticsearch.script", "org.elasticsearch.search", "org.elasticsearch.test", "org.hamcrest" ]
java.util; org.elasticsearch.action; org.elasticsearch.common; org.elasticsearch.script; org.elasticsearch.search; org.elasticsearch.test; org.hamcrest;
2,535,715
public Channel getChannel() { return channel; }
Channel function() { return channel; }
/** * If this is a Channel notice this will return the Channel * * @return Channel * @see Channel */
If this is a Channel notice this will return the Channel
getChannel
{ "repo_name": "Lyude/PhantomBot", "path": "src/me/mast3rplan/phantombot/jerklib/events/NoticeEvent.java", "license": "gpl-2.0", "size": 2204 }
[ "me.mast3rplan.phantombot.jerklib.Channel" ]
import me.mast3rplan.phantombot.jerklib.Channel;
import me.mast3rplan.phantombot.jerklib.*;
[ "me.mast3rplan.phantombot" ]
me.mast3rplan.phantombot;
32,997
@Nonnull @Override public RunnableFuture<SnapshotResult<KeyedStateHandle>> snapshot( final long checkpointId, final long timestamp, @Nonnull final CheckpointStreamFactory streamFactory, @Nonnull CheckpointOptions checkpointOptions) throws Exception { long startTime = System.currentTimeMillis(); // fl...
RunnableFuture<SnapshotResult<KeyedStateHandle>> function( final long checkpointId, final long timestamp, @Nonnull final CheckpointStreamFactory streamFactory, @Nonnull CheckpointOptions checkpointOptions) throws Exception { long startTime = System.currentTimeMillis(); writeBatchWrapper.flush(); RocksDBSnapshotStrategy...
/** * Triggers an asynchronous snapshot of the keyed state backend from RocksDB. This snapshot can be canceled and * is also stopped when the backend is closed through {@link #dispose()}. For each backend, this method must always * be called by the same thread. * * @param checkpointId The Id of the checkpoin...
Triggers an asynchronous snapshot of the keyed state backend from RocksDB. This snapshot can be canceled and is also stopped when the backend is closed through <code>#dispose()</code>. For each backend, this method must always be called by the same thread
snapshot
{ "repo_name": "sunjincheng121/flink", "path": "flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBKeyedStateBackend.java", "license": "apache-2.0", "size": 30537 }
[ "java.util.concurrent.RunnableFuture", "javax.annotation.Nonnull", "org.apache.flink.contrib.streaming.state.snapshot.RocksDBSnapshotStrategyBase", "org.apache.flink.runtime.checkpoint.CheckpointOptions", "org.apache.flink.runtime.state.CheckpointStreamFactory", "org.apache.flink.runtime.state.KeyedStateH...
import java.util.concurrent.RunnableFuture; import javax.annotation.Nonnull; import org.apache.flink.contrib.streaming.state.snapshot.RocksDBSnapshotStrategyBase; import org.apache.flink.runtime.checkpoint.CheckpointOptions; import org.apache.flink.runtime.state.CheckpointStreamFactory; import org.apache.flink.runtime....
import java.util.concurrent.*; import javax.annotation.*; import org.apache.flink.contrib.streaming.state.snapshot.*; import org.apache.flink.runtime.checkpoint.*; import org.apache.flink.runtime.state.*;
[ "java.util", "javax.annotation", "org.apache.flink" ]
java.util; javax.annotation; org.apache.flink;
1,981,890
public H2FeatureService getEaAttr() { return eaAttr; }
H2FeatureService function() { return eaAttr; }
/** * DOCUMENT ME! * * @return the eaAttr */
DOCUMENT ME
getEaAttr
{ "repo_name": "cismet/watergis-client", "path": "src/main/java/de/cismet/watergis/gui/actions/checks/BauwerkeCheckAction.java", "license": "lgpl-3.0", "size": 182528 }
[ "de.cismet.cismap.commons.featureservice.H2FeatureService" ]
import de.cismet.cismap.commons.featureservice.H2FeatureService;
import de.cismet.cismap.commons.featureservice.*;
[ "de.cismet.cismap" ]
de.cismet.cismap;
1,374,680
public static List<Integer> getIndicesAfter(String pattern, String string) { List<Integer> indices = new ArrayList<>(); int counter = 0; char[] chars = string.toCharArray(); for (int i = 0; i < chars.length; i++) { if (chars[i] != pattern.charAt(counter++)) { counter = ...
static List<Integer> function(String pattern, String string) { List<Integer> indices = new ArrayList<>(); int counter = 0; char[] chars = string.toCharArray(); for (int i = 0; i < chars.length; i++) { if (chars[i] != pattern.charAt(counter++)) { counter = 0; } else if (counter == pattern.length()) { indices.add(i + 1);...
/** * Determines the indices after char of all occurences * of the <code>pattern</code> in the <code>string</code>. * * @param pattern The pattern to look for. * @param string The string in which the pattern is looked for. * * @return The list of the indices after all the occurences of the p...
Determines the indices after char of all occurences of the <code>pattern</code> in the <code>string</code>
getIndicesAfter
{ "repo_name": "Koefflitz/Util", "path": "src/main/java/de/dk/util/StringUtils.java", "license": "mit", "size": 13347 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,891,108
@Override public void looseMarshal(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { super.looseMarshal(wireFormat, o, dataOut); }
void function(OpenWireFormat wireFormat, Object o, DataOutput dataOut) throws IOException { super.looseMarshal(wireFormat, o, dataOut); }
/** * Write the booleans that this object uses to a BooleanStream */
Write the booleans that this object uses to a BooleanStream
looseMarshal
{ "repo_name": "tabish121/OpenWire", "path": "openwire-legacy/src/main/java/io/openwire/codec/v2/ShutdownInfoMarshaller.java", "license": "apache-2.0", "size": 3448 }
[ "io.openwire.codec.OpenWireFormat", "java.io.DataOutput", "java.io.IOException" ]
import io.openwire.codec.OpenWireFormat; import java.io.DataOutput; import java.io.IOException;
import io.openwire.codec.*; import java.io.*;
[ "io.openwire.codec", "java.io" ]
io.openwire.codec; java.io;
24,481
public void addUsuario(Usuario usuario) throws SQLException, Exception { String sql = "INSERT INTO USUARIO_TABLA1 VALUES ('"; sql += usuario.getNombre() + "',"; sql += usuario.getIdentificacion() + ",'"; sql += usuario.getCorreo() + "','"; sql += usuario.getRol() + "')"; PreparedStatement prepStmt =...
void function(Usuario usuario) throws SQLException, Exception { String sql = STR; sql += usuario.getNombre() + "',"; sql += usuario.getIdentificacion() + ",'"; sql += usuario.getCorreo() + "','"; sql += usuario.getRol() + "')"; PreparedStatement prepStmt = conn.prepareStatement(sql); recursos.add(prepStmt); prepStmt.ex...
/** * Metodo que agrega el Cliente que entra como parametro a la base de datos. * @param Cliente - el Cliente a agregar. Cliente != null * <b> post: </b> se ha agregado el Cliente a la base de datos en la transaction actual. pendiente que el Cliente master * haga commit para que el Cliente baje a la base de d...
Metodo que agrega el Cliente que entra como parametro a la base de datos
addUsuario
{ "repo_name": "ssaenz11/iteracion2", "path": "src/dao/DAOTablaUsuario.java", "license": "mit", "size": 6864 }
[ "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,392,095
@Override public void add(int index, @NonNull T row) throws Exception { if(m_comparator != null) throw new IllegalStateException("Cannot add by index on a sorted model: the sorting order determines the insert index"); getList().add(index, row); fireAdded(index); }
void function(int index, @NonNull T row) throws Exception { if(m_comparator != null) throw new IllegalStateException(STR); getList().add(index, row); fireAdded(index); }
/** * Add the item at the specified index. The item currently at that position * and all items above it move up a notch. */
Add the item at the specified index. The item currently at that position and all items above it move up a notch
add
{ "repo_name": "fjalvingh/domui", "path": "to.etc.domui/src/main/java/to/etc/domui/component/tbl/TableListModelBase.java", "license": "lgpl-2.1", "size": 5157 }
[ "org.eclipse.jdt.annotation.NonNull" ]
import org.eclipse.jdt.annotation.NonNull;
import org.eclipse.jdt.annotation.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
485,108
public Future<CommandResult> getLocalTemperatureCalibrationAsync() { return read(attributes.get(ATTR_LOCALTEMPERATURECALIBRATION)); }
Future<CommandResult> function() { return read(attributes.get(ATTR_LOCALTEMPERATURECALIBRATION)); }
/** * Get the <i>LocalTemperatureCalibration</i> attribute [attribute ID <b>16</b>]. * <p> * The attribute is of type {@link Integer}. * <p> * The implementation of this attribute by a device is OPTIONAL * * @return the {@link Future<CommandResult>} command result future */
Get the LocalTemperatureCalibration attribute [attribute ID 16]. The attribute is of type <code>Integer</code>. The implementation of this attribute by a device is OPTIONAL
getLocalTemperatureCalibrationAsync
{ "repo_name": "cschwer/com.zsmartsystems.zigbee", "path": "com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclThermostatCluster.java", "license": "epl-1.0", "size": 71589 }
[ "com.zsmartsystems.zigbee.CommandResult", "java.util.concurrent.Future" ]
import com.zsmartsystems.zigbee.CommandResult; import java.util.concurrent.Future;
import com.zsmartsystems.zigbee.*; import java.util.concurrent.*;
[ "com.zsmartsystems.zigbee", "java.util" ]
com.zsmartsystems.zigbee; java.util;
2,110,156
@SuppressWarnings("unchecked") protected void _onSearchComplete(Object result) { this._searching = false; this._runButtonEnableLogic(); if (result instanceof Exception) { JOptionPane.showMessageDialog(this.getTopLevelAncestor(), "Could not search archive:\n"+((Exception)result).getMessage()...
@SuppressWarnings(STR) void function(Object result) { this._searching = false; this._runButtonEnableLogic(); if (result instanceof Exception) { JOptionPane.showMessageDialog(this.getTopLevelAncestor(), STR+((Exception)result).getMessage(), "Error", JOptionPane.ERROR_MESSAGE); return; } List<Conversation> results = (Lis...
/** * Reacts to the completion of the current search job. * * @param result If the search completed successfully, * a list of the conversations found; * otherwise, an Exception describing any * encountered error. */
Reacts to the completion of the current search job
_onSearchComplete
{ "repo_name": "goc9000/UniArchive", "path": "src/uniarchive/widgets/ConversationsView.java", "license": "gpl-3.0", "size": 13798 }
[ "java.util.List", "javax.swing.JOptionPane" ]
import java.util.List; import javax.swing.JOptionPane;
import java.util.*; import javax.swing.*;
[ "java.util", "javax.swing" ]
java.util; javax.swing;
1,928,967
public StructureGuiWorld setClearShape(BuildClear clearShape) { this.clearShape = clearShape; this.buildShape = clearShape.getShape(); return this; }
StructureGuiWorld function(BuildClear clearShape) { this.clearShape = clearShape; this.buildShape = clearShape.getShape(); return this; }
/** * Sets the clear shape. * * @param clearShape The clear shape to set for the class. * @return The updated instance of this class. */
Sets the clear shape
setClearShape
{ "repo_name": "Brian-Wuest/MC-Prefab", "path": "src/main/java/com/wuest/prefab/structures/gui/StructureGuiWorld.java", "license": "mit", "size": 8209 }
[ "com.wuest.prefab.structures.base.BuildClear" ]
import com.wuest.prefab.structures.base.BuildClear;
import com.wuest.prefab.structures.base.*;
[ "com.wuest.prefab" ]
com.wuest.prefab;
2,353,654
EClass getLanguageCodeFilter();
EClass getLanguageCodeFilter();
/** * Returns the meta object for class '{@link com.b2international.snowowl.snomed.ql.ql.LanguageCodeFilter <em>Language Code Filter</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Language Code Filter</em>'. * @see com.b2international.snowowl.snomed.ql....
Returns the meta object for class '<code>com.b2international.snowowl.snomed.ql.ql.LanguageCodeFilter Language Code Filter</code>'.
getLanguageCodeFilter
{ "repo_name": "IHTSDO/snow-owl", "path": "snomed/com.b2international.snowowl.snomed.ql/src-gen/com/b2international/snowowl/snomed/ql/ql/QlPackage.java", "license": "apache-2.0", "size": 67451 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,304,056
public void createResources(final boolean requireInvocable) { descriptors = new ArrayList<>(); // The following is required for JRuby, should be transparent to everything else. // Note this is not done in a ScriptRunner, as it is too early in the lifecycle. The // setting must be the...
void function(final boolean requireInvocable) { descriptors = new ArrayList<>(); System.setProperty(STR, STR); ScriptEngineManager scriptEngineManager = new ScriptEngineManager(); List<ScriptEngineFactory> scriptEngineFactories = scriptEngineManager.getEngineFactories(); if (scriptEngineFactories != null) { scriptEngin...
/** * This method creates all resources needed for the script processor to function, such as script engines, * script file reloader threads, etc. */
This method creates all resources needed for the script processor to function, such as script engines, script file reloader threads, etc
createResources
{ "repo_name": "MikeThomsen/nifi", "path": "nifi-nar-bundles/nifi-scripting-bundle/nifi-scripting-processors/src/main/java/org/apache/nifi/script/ScriptingComponentHelper.java", "license": "apache-2.0", "size": 12310 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.LinkedList", "java.util.List", "javax.script.Invocable", "javax.script.ScriptEngineFactory", "javax.script.ScriptEngineManager", "org.apache.nifi.components.AllowableValue", "org.apache.nifi.components.PropertyDescriptor", "org.apache.nifi.exp...
import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import javax.script.Invocable; import javax.script.ScriptEngineFactory; import javax.script.ScriptEngineManager; import org.apache.nifi.components.AllowableValue; import org.apache.nifi.components.PropertyDescripto...
import java.util.*; import javax.script.*; import org.apache.nifi.components.*; import org.apache.nifi.expression.*;
[ "java.util", "javax.script", "org.apache.nifi" ]
java.util; javax.script; org.apache.nifi;
882,621
public void stop() { if (Log.LOGV) Log.v("TimerRingService.stop()"); if (mPlaying) { mPlaying = false; // Stop audio playing if (mMediaPlayer != null) { mMediaPlayer.stop(); final AudioManager audioManager = ...
void function() { if (Log.LOGV) Log.v(STR); if (mPlaying) { mPlaying = false; if (mMediaPlayer != null) { mMediaPlayer.stop(); final AudioManager audioManager = (AudioManager)getSystemService(Context.AUDIO_SERVICE); audioManager.abandonAudioFocus(this); mMediaPlayer.release(); mMediaPlayer = null; } } }
/** * Stops timer audio */
Stops timer audio
stop
{ "repo_name": "miswenwen/My_bird_work", "path": "Bird_work/我的项目/AliDeskClock/AliDeskClock_liuqipeng_11_11_drawaniamtion/src/com/android/deskclock/TimerRingService.java", "license": "apache-2.0", "size": 7749 }
[ "android.content.Context", "android.media.AudioManager" ]
import android.content.Context; import android.media.AudioManager;
import android.content.*; import android.media.*;
[ "android.content", "android.media" ]
android.content; android.media;
2,464,493
static public void skip(InputStream is, int size) throws IOException { while (size > 0) { size -= is.skip(size); } }
static void function(InputStream is, int size) throws IOException { while (size > 0) { size -= is.skip(size); } }
/** * This method is an alternative for the <CODE>InputStream.skip()</CODE> * -method that doesn't seem to work properly for big values of <CODE>size * </CODE>. * * @param is * the <CODE>InputStream</CODE> * @param size * the number of bytes to skip * @throws IOException */
This method is an alternative for the <code>InputStream.skip()</code> -method that doesn't seem to work properly for big values of <code>size </code>
skip
{ "repo_name": "MesquiteProject/MesquiteArchive", "path": "trunk/Mesquite Project/LibrarySource/com/lowagie/text/Image.java", "license": "lgpl-3.0", "size": 46598 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
374,315
// REVIEWME: the following method was primarly based on the default folder name for determining component type. // instead, why not use file extension? public Component getComponentByFilePath(String filePath) { if (Utils.isEmpty(filePath)) { logger.error("Filepath cannot be null"); ...
Component function(String filePath) { if (Utils.isEmpty(filePath)) { logger.error(STR); throw new IllegalArgumentException(STR); } if (Utils.isEmpty(componentRegistry)) { logger.warn(STR); return null; } String tmpfilePath = Utils.stripSourceFolder(filePath); if (logger.isDebugEnabled()) { logger.debug(STR + tmpfilePat...
/** * Create new component instance base on given file path. * * @param filePath * @return */
Create new component instance base on given file path
getComponentByFilePath
{ "repo_name": "PatrickSHYee/idecore", "path": "com.salesforce.ide.core/src/com/salesforce/ide/core/factories/ComponentFactory.java", "license": "epl-1.0", "size": 52097 }
[ "com.salesforce.ide.core.internal.utils.Constants", "com.salesforce.ide.core.internal.utils.Utils", "com.salesforce.ide.core.model.Component", "com.salesforce.ide.core.remote.metadata.CustomObjectNameResolver" ]
import com.salesforce.ide.core.internal.utils.Constants; import com.salesforce.ide.core.internal.utils.Utils; import com.salesforce.ide.core.model.Component; import com.salesforce.ide.core.remote.metadata.CustomObjectNameResolver;
import com.salesforce.ide.core.internal.utils.*; import com.salesforce.ide.core.model.*; import com.salesforce.ide.core.remote.metadata.*;
[ "com.salesforce.ide" ]
com.salesforce.ide;
2,768,032
protected void sequence_MeasurementDataNotAdjustable(ISerializationContext context, MeasurementData semanticObject) { genericSequencer.createSequence(context, semanticObject); }
void function(ISerializationContext context, MeasurementData semanticObject) { genericSequencer.createSequence(context, semanticObject); }
/** * Contexts: * MeasurementDataNotAdjustable returns MeasurementData * * Constraint: * ( * name=ID * dataType=DataTypeNotAdjustable * unit=UNIT * ID=STRING? * ((excludedMethods+='setter' excludedMethods+='getter'?) | (excludedMethods+='getter' ex...
Contexts: MeasurementDataNotAdjustable returns MeasurementData Constraint: ( name=ID dataType=DataTypeNotAdjustable unit=UNIT ID=STRING? ((excludedMethods+='setter' excludedMethods+='getter'?) | (excludedMethods+='getter' excludedMethods+='setter'?))? description=DESCRIPTION? )
sequence_MeasurementDataNotAdjustable
{ "repo_name": "SENSIDL-PROJECT/SensIDL", "path": "bundles/de.fzi.sensidl.language/src-gen/de/fzi/sensidl/language/serializer/SensidlSemanticSequencer.java", "license": "epl-1.0", "size": 15845 }
[ "de.fzi.sensidl.design.sensidl.dataRepresentation.MeasurementData", "org.eclipse.xtext.serializer.ISerializationContext" ]
import de.fzi.sensidl.design.sensidl.dataRepresentation.MeasurementData; import org.eclipse.xtext.serializer.ISerializationContext;
import de.fzi.sensidl.design.sensidl.*; import org.eclipse.xtext.serializer.*;
[ "de.fzi.sensidl", "org.eclipse.xtext" ]
de.fzi.sensidl; org.eclipse.xtext;
1,125,949
Set<ToolActivity> getActivitiesProvidingVsaAnswers(Long toolContentId);
Set<ToolActivity> getActivitiesProvidingVsaAnswers(Long toolContentId);
/** * Returns all activities that precede specified activity and can provide VSA answers. * * @param toolContentId * toolContentId of the specified activity * @return */
Returns all activities that precede specified activity and can provide VSA answers
getActivitiesProvidingVsaAnswers
{ "repo_name": "lamsfoundation/lams", "path": "lams_common/src/java/org/lamsfoundation/lams/tool/service/ILamsToolService.java", "license": "gpl-2.0", "size": 9187 }
[ "java.util.Set", "org.lamsfoundation.lams.learningdesign.ToolActivity" ]
import java.util.Set; import org.lamsfoundation.lams.learningdesign.ToolActivity;
import java.util.*; import org.lamsfoundation.lams.learningdesign.*;
[ "java.util", "org.lamsfoundation.lams" ]
java.util; org.lamsfoundation.lams;
1,506,934
public List<Node> childNodesCopy() { List<Node> children = new ArrayList<Node>(childNodes.size()); for (Node node : childNodes) { children.add(node.clone()); } return children; }
List<Node> function() { List<Node> children = new ArrayList<Node>(childNodes.size()); for (Node node : childNodes) { children.add(node.clone()); } return children; }
/** * Returns a deep copy of this node's children. Changes made to these nodes will not be reflected in the original * nodes * @return a deep copy of this node's children */
Returns a deep copy of this node's children. Changes made to these nodes will not be reflected in the original nodes
childNodesCopy
{ "repo_name": "tiancj/MV", "path": "src/org/jsoup/nodes/Node.java", "license": "gpl-2.0", "size": 21066 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
821,239
Consumer<Result<Model>> getUpdateConsumer(MutationContext mutationContext);
Consumer<Result<Model>> getUpdateConsumer(MutationContext mutationContext);
/** * Return a {@link Consumer} which is able to handle an update to the SessionManager. An update * consists of {@link Model} containing a list of {@link StreamDataOperation} objects. The * {@link MutationContext} captures the context which is initiating the update operation. */
Return a <code>Consumer</code> which is able to handle an update to the SessionManager. An update consists of <code>Model</code> containing a list of <code>StreamDataOperation</code> objects. The <code>MutationContext</code> captures the context which is initiating the update operation
getUpdateConsumer
{ "repo_name": "endlessm/chromium-browser", "path": "chrome/android/feed/core/java/src/org/chromium/chrome/browser/feed/library/api/internal/sessionmanager/FeedSessionManager.java", "license": "bsd-3-clause", "size": 6415 }
[ "org.chromium.base.Consumer", "org.chromium.chrome.browser.feed.library.api.common.MutationContext", "org.chromium.chrome.browser.feed.library.api.internal.common.Model", "org.chromium.chrome.browser.feed.library.common.Result" ]
import org.chromium.base.Consumer; import org.chromium.chrome.browser.feed.library.api.common.MutationContext; import org.chromium.chrome.browser.feed.library.api.internal.common.Model; import org.chromium.chrome.browser.feed.library.common.Result;
import org.chromium.base.*; import org.chromium.chrome.browser.feed.library.api.common.*; import org.chromium.chrome.browser.feed.library.api.internal.common.*; import org.chromium.chrome.browser.feed.library.common.*;
[ "org.chromium.base", "org.chromium.chrome" ]
org.chromium.base; org.chromium.chrome;
790,295
public void onRowCancel(RowEditEvent event) { FacesMessage msg = new FacesMessage("La modificacion fue cancelada", ""); FacesContext.getCurrentInstance().addMessage(null, msg); }
void function(RowEditEvent event) { FacesMessage msg = new FacesMessage(STR, ""); FacesContext.getCurrentInstance().addMessage(null, msg); }
/** * On row cancel. * * @param event * the event */
On row cancel
onRowCancel
{ "repo_name": "aalva-gapsi/gapsieventos", "path": "src/main/java/mx/com/gapsi/eventos/bean/EventView.java", "license": "apache-2.0", "size": 9746 }
[ "javax.faces.application.FacesMessage", "javax.faces.context.FacesContext", "org.primefaces.event.RowEditEvent" ]
import javax.faces.application.FacesMessage; import javax.faces.context.FacesContext; import org.primefaces.event.RowEditEvent;
import javax.faces.application.*; import javax.faces.context.*; import org.primefaces.event.*;
[ "javax.faces", "org.primefaces.event" ]
javax.faces; org.primefaces.event;
2,287,423
public double getTimeFrom(Date date) { Calendar cal1 = Calendar.getInstance(); Calendar cal2 = Calendar.getInstance(); cal1.setTime(this.getCommentDate()); cal2.setTime(date); long t1 = cal1.getTimeInMillis(); long t2 = cal2.getTimeInMillis(); if (TimeUnit.MILLISECONDS.toHours(Math.abs(t1 - t2))...
double function(Date date) { Calendar cal1 = Calendar.getInstance(); Calendar cal2 = Calendar.getInstance(); cal1.setTime(this.getCommentDate()); cal2.setTime(date); long t1 = cal1.getTimeInMillis(); long t2 = cal2.getTimeInMillis(); if (TimeUnit.MILLISECONDS.toHours(Math.abs(t1 - t2)) < 1) { return 0.5; } else { retur...
/** * Determines the amount of time between when the Comment was posted and the * passed date in terms of hours. * * @param date * The Date to be compared with. * @return The number of hours between when the Comment was posted and the * passed Date. */
Determines the amount of time between when the Comment was posted and the passed date in terms of hours
getTimeFrom
{ "repo_name": "CMPUT301W14T08/GeoChan", "path": "GeoChan/src/ca/ualberta/cmput301w14t08/geochan/models/Comment.java", "license": "apache-2.0", "size": 12479 }
[ "java.util.Calendar", "java.util.Date", "java.util.concurrent.TimeUnit" ]
import java.util.Calendar; import java.util.Date; import java.util.concurrent.TimeUnit;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,867,408
public QView view() { return new QView(this, ViewComment.PROPERTY.view.name()); }
QView function() { return new QView(this, ViewComment.PROPERTY.view.name()); }
/** * Returns a DSL query element for reference property, <b>view</b>. * * @return a DSL query element for reference property, <b>view</b>. */
Returns a DSL query element for reference property, view
view
{ "repo_name": "plasma-framework/plasma", "path": "plasma-provisioning/src/main/java/org/plasma/provisioning/rdb/oracle/g11/sys/query/QViewComment.java", "license": "apache-2.0", "size": 3478 }
[ "org.plasma.provisioning.rdb.oracle.g11.sys.ViewComment" ]
import org.plasma.provisioning.rdb.oracle.g11.sys.ViewComment;
import org.plasma.provisioning.rdb.oracle.g11.sys.*;
[ "org.plasma.provisioning" ]
org.plasma.provisioning;
2,008,961
protected boolean validateParameters(ParameterBlock args, StringBuffer msg) { if (!super.validateParameters(args, msg)) { return false; } Boolean checkFile = (Boolean)args.getObjectParameter(2); if (checkFile.booleanValue()){ String filename...
boolean function(ParameterBlock args, StringBuffer msg) { if (!super.validateParameters(args, msg)) { return false; } Boolean checkFile = (Boolean)args.getObjectParameter(2); if (checkFile.booleanValue()){ String filename = (String)args.getObjectParameter(0); File f = new File(filename); boolean fileExists = f.exists()...
/** * Validates the input parameters. * * <p> In addition to the standard checks performed by the * superclass method, this method by default checks that the source file * exists and is readable. This check may be bypassed by setting the * <code>checkFileLocally</code> parameter to <code>F...
Validates the input parameters. In addition to the standard checks performed by the superclass method, this method by default checks that the source file exists and is readable. This check may be bypassed by setting the <code>checkFileLocally</code> parameter to <code>FALSE</code>
validateParameters
{ "repo_name": "MarinnaCole/LightZone", "path": "lightcrafts/extsrc/com/lightcrafts/mediax/jai/operator/FileLoadDescriptor.java", "license": "bsd-3-clause", "size": 7868 }
[ "java.awt.image.renderable.ParameterBlock", "java.io.File", "java.io.InputStream" ]
import java.awt.image.renderable.ParameterBlock; import java.io.File; import java.io.InputStream;
import java.awt.image.renderable.*; import java.io.*;
[ "java.awt", "java.io" ]
java.awt; java.io;
1,553,019
public void setParallelism(int parallelism) { OperatorValidationUtils.validateParallelism(parallelism); this.parallelism = parallelism; }
void function(int parallelism) { OperatorValidationUtils.validateParallelism(parallelism); this.parallelism = parallelism; }
/** * Sets the parallelism of this {@code Transformation}. * * @param parallelism The new parallelism to set on this {@code Transformation}. */
Sets the parallelism of this Transformation
setParallelism
{ "repo_name": "greghogan/flink", "path": "flink-core/src/main/java/org/apache/flink/api/dag/Transformation.java", "license": "apache-2.0", "size": 20642 }
[ "org.apache.flink.api.common.operators.util.OperatorValidationUtils" ]
import org.apache.flink.api.common.operators.util.OperatorValidationUtils;
import org.apache.flink.api.common.operators.util.*;
[ "org.apache.flink" ]
org.apache.flink;
1,032,928
public MLTrain create(final MLMethod method, final MLDataSet training, final String args) { if (!(method instanceof RBFNetwork)) { throw new EncogError( "RBF-SVD training cannot be used on a method of type: " + ...
MLTrain function(final MLMethod method, final MLDataSet training, final String args) { if (!(method instanceof RBFNetwork)) { throw new EncogError( STR + method.getClass().getName()); } return new SVDTraining((RBFNetwork) method, training); }
/** * Create a RBF-SVD trainer. * <p/> * @param method * The method to use. * @param training * The training data to use. * @param args * The arguments to use. * <p/> * @return The newly created trainer. */
Create a RBF-SVD trainer.
create
{ "repo_name": "ladygagapowerbot/bachelor-thesis-implementation", "path": "lib/Encog/src/main/java/org/encog/ml/factory/train/RBFSVDFactory.java", "license": "mit", "size": 1986 }
[ "org.encog.EncogError", "org.encog.ml.MLMethod", "org.encog.ml.data.MLDataSet", "org.encog.ml.train.MLTrain", "org.encog.neural.rbf.RBFNetwork", "org.encog.neural.rbf.training.SVDTraining" ]
import org.encog.EncogError; import org.encog.ml.MLMethod; import org.encog.ml.data.MLDataSet; import org.encog.ml.train.MLTrain; import org.encog.neural.rbf.RBFNetwork; import org.encog.neural.rbf.training.SVDTraining;
import org.encog.*; import org.encog.ml.*; import org.encog.ml.data.*; import org.encog.ml.train.*; import org.encog.neural.rbf.*; import org.encog.neural.rbf.training.*;
[ "org.encog", "org.encog.ml", "org.encog.neural" ]
org.encog; org.encog.ml; org.encog.neural;
2,172,370
@Override public void asBytes(ByteBuffer buf) { buf.putInt(VERBOSE_ARRAY_DIGEST); buf.putDouble(compression()); buf.putInt(pageSize); buf.putInt(centroidCount); for (Page page : data) { for (int i = 0; i < page.active; i++) { buf.putDouble(page...
void function(ByteBuffer buf) { buf.putInt(VERBOSE_ARRAY_DIGEST); buf.putDouble(compression()); buf.putInt(pageSize); buf.putInt(centroidCount); for (Page page : data) { for (int i = 0; i < page.active; i++) { buf.putDouble(page.centroids[i]); } } for (Page page : data) { for (int i = 0; i < page.active; i++) { buf.put...
/** * Outputs a histogram as bytes using a particularly cheesy encoding. */
Outputs a histogram as bytes using a particularly cheesy encoding
asBytes
{ "repo_name": "sguazt/dcsxx-testbed", "path": "thirdparty/t-digest/com/tdunning/math/stats/ArrayDigest.java", "license": "apache-2.0", "size": 30723 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,277,023
private ContextMenuDialog createContextMenuDialog( Activity activity, View view, float touchPointXPx, float touchPointYPx) { View frame = view.findViewById(R.id.context_menu_frame); // TODO(sinansahin): Refactor ContextMenuDialog as well. final ContextMenuDialog dialog = ...
ContextMenuDialog function( Activity activity, View view, float touchPointXPx, float touchPointYPx) { View frame = view.findViewById(R.id.context_menu_frame); final ContextMenuDialog dialog = new ContextMenuDialog(activity, R.style.Theme_Chromium_AlertDialog, touchPointXPx, touchPointYPx, mTopContentOffsetPx, frame); d...
/** * Returns the fully complete dialog based off the params and the itemGroups. * * @param activity Used to inflate the dialog. * @param view The inflated view, including the scrim, that contains the list view. * @param touchPointYPx The x-coordinate of the touch that triggered the context men...
Returns the fully complete dialog based off the params and the itemGroups
createContextMenuDialog
{ "repo_name": "endlessm/chromium-browser", "path": "chrome/android/java/src/org/chromium/chrome/browser/contextmenu/RevampedContextMenuCoordinator.java", "license": "bsd-3-clause", "size": 12293 }
[ "android.app.Activity", "android.view.View", "androidx.appcompat.app.AlertDialog", "org.chromium.components.browser_ui.widget.ContextMenuDialog" ]
import android.app.Activity; import android.view.View; import androidx.appcompat.app.AlertDialog; import org.chromium.components.browser_ui.widget.ContextMenuDialog;
import android.app.*; import android.view.*; import androidx.appcompat.app.*; import org.chromium.components.browser_ui.widget.*;
[ "android.app", "android.view", "androidx.appcompat", "org.chromium.components" ]
android.app; android.view; androidx.appcompat; org.chromium.components;
296,001
@Override public EnumActionResult onItemUseFirst(EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, EnumHand hand) { //Set teleporter position if(world.getTileEntity(pos) instanceof TileAreaTeleporter) { setTeleporterLoc(p...
EnumActionResult function(EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, EnumHand hand) { if(world.getTileEntity(pos) instanceof TileAreaTeleporter) { setTeleporterLoc(player.getHeldItem(hand), new Location(world, pos)); if(world.isRemote) player.sendMessage(new Tex...
/** * This is called when the item is used, before the block is activated. * @return Return PASS to allow vanilla handling, any other to skip normal code. */
This is called when the item is used, before the block is activated
onItemUseFirst
{ "repo_name": "thebrightspark/StructuralRelocation", "path": "src/main/java/brightspark/structuralrelocation/item/ItemDebugger.java", "license": "gpl-2.0", "size": 3542 }
[ "net.minecraft.entity.player.EntityPlayer", "net.minecraft.util.EnumActionResult", "net.minecraft.util.EnumFacing", "net.minecraft.util.EnumHand", "net.minecraft.util.math.BlockPos", "net.minecraft.util.text.TextComponentString", "net.minecraft.world.World" ]
import net.minecraft.entity.player.EntityPlayer; import net.minecraft.util.EnumActionResult; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.util.text.TextComponentString; import net.minecraft.world.World;
import net.minecraft.entity.player.*; import net.minecraft.util.*; import net.minecraft.util.math.*; import net.minecraft.util.text.*; import net.minecraft.world.*;
[ "net.minecraft.entity", "net.minecraft.util", "net.minecraft.world" ]
net.minecraft.entity; net.minecraft.util; net.minecraft.world;
724,257
public void getter() { assertEquals("BondFuturesOptionMarginSecurityDefinition: getter", BOBLM4_DEFINITION, CALL_BOBLM4_DEFINITION.getUnderlyingFuture()); assertEquals("BondFuturesOptionMarginSecurityDefinition: getter", EXPIRY_DATE_OPT, CALL_BOBLM4_DEFINITION.getExpirationDate()); assertEquals("BondFutur...
void function() { assertEquals(STR, BOBLM4_DEFINITION, CALL_BOBLM4_DEFINITION.getUnderlyingFuture()); assertEquals(STR, EXPIRY_DATE_OPT, CALL_BOBLM4_DEFINITION.getExpirationDate()); assertEquals(STR, STRIKE_125, CALL_BOBLM4_DEFINITION.getStrike()); assertEquals(STR, true, CALL_BOBLM4_DEFINITION.isCall()); }
/** * Tests the getter methods. */
Tests the getter methods
getter
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/test/java/com/opengamma/analytics/financial/instrument/future/BondFuturesOptionMarginSecurityDefinitionTest.java", "license": "apache-2.0", "size": 5911 }
[ "org.testng.AssertJUnit" ]
import org.testng.AssertJUnit;
import org.testng.*;
[ "org.testng" ]
org.testng;
2,770,514
@Override public void preInitialize(AbstractSession session) throws DescriptorException { super.preInitialize(session); // If weaving was used the mapping must be configured to use the weaved get/set methods. if ((this.indirectionPolicy instanceof BasicIndirectionPolicy) && ClassConstant...
void function(AbstractSession session) throws DescriptorException { super.preInitialize(session); if ((this.indirectionPolicy instanceof BasicIndirectionPolicy) && ClassConstants.PersistenceWeavedLazy_Class.isAssignableFrom(getDescriptor().getJavaClass())) { Class attributeType = getAttributeAccessor().getAttributeClas...
/** * INTERNAL: * Initialize the state of mapping. */
Initialize the state of mapping
preInitialize
{ "repo_name": "gameduell/eclipselink.runtime", "path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/mappings/ForeignReferenceMapping.java", "license": "epl-1.0", "size": 115540 }
[ "org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy", "org.eclipse.persistence.exceptions.DescriptorException", "org.eclipse.persistence.indirection.ValueHolderInterface", "org.eclipse.persistence.internal.helper.ClassConstants", "org.eclipse.persistence.internal.helper.Helper", "org.ecli...
import org.eclipse.persistence.descriptors.partitioning.PartitioningPolicy; import org.eclipse.persistence.exceptions.DescriptorException; import org.eclipse.persistence.indirection.ValueHolderInterface; import org.eclipse.persistence.internal.helper.ClassConstants; import org.eclipse.persistence.internal.helper.Helper...
import org.eclipse.persistence.descriptors.partitioning.*; import org.eclipse.persistence.exceptions.*; import org.eclipse.persistence.indirection.*; import org.eclipse.persistence.internal.helper.*; import org.eclipse.persistence.internal.indirection.*; import org.eclipse.persistence.internal.sessions.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
1,608,667
public void setLinksTo(Thing value) { Base.set(this.model, this.getResource(), LINKSTO, value); }
void function(Thing value) { Base.set(this.model, this.getResource(), LINKSTO, value); }
/** * Sets a value of property LinksTo from an instance of Thing First, all * existing values are removed, then this value is added. Cardinality * constraints are not checked, but this method exists only for properties * with no minCardinality or minCardinality == 1. * * @param value ...
Sets a value of property LinksTo from an instance of Thing First, all existing values are removed, then this value is added. Cardinality constraints are not checked, but this method exists only for properties with no minCardinality or minCardinality == 1
setLinksTo
{ "repo_name": "m0ep/master-thesis", "path": "source/apis/rdf2go/rdf2go-sioc/src/main/java/org/rdfs/sioc/Thing.java", "license": "mit", "size": 317844 }
[ "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.rdfreactor" ]
org.ontoware.rdfreactor;
1,083,798
public static void endTransaction(Connection connection, boolean successful) { endTransaction(connection, successful, null); }
static void function(Connection connection, boolean successful) { endTransaction(connection, successful, null); }
/** * End a transaction for the connection * * @param connection * connection * @param successful * true to commit, false to rollback * @since 3.3.0 */
End a transaction for the connection
endTransaction
{ "repo_name": "ngageoint/geopackage-java", "path": "src/main/java/mil/nga/geopackage/db/SQLUtils.java", "license": "mit", "size": 16229 }
[ "java.sql.Connection" ]
import java.sql.Connection;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,152,860
public void draw(ShapeRenderer sr) { if (Settings.DEBUG) { sr.begin(ShapeType.Line); sr.setColor(1, 0.5f, 0.5f, 1); sr.circle(x, y, (float) distanceToDodge); sr.end(); } float blender = lifeTimer / lifeTime; sr.begin(ShapeType.Line); ...
void function(ShapeRenderer sr) { if (Settings.DEBUG) { sr.begin(ShapeType.Line); sr.setColor(1, 0.5f, 0.5f, 1); sr.circle(x, y, (float) distanceToDodge); sr.end(); } float blender = lifeTimer / lifeTime; sr.begin(ShapeType.Line); sr.setColor(blender, 1 - blender, 0, 1); for (int i = 0, j = shapex.length - 1; i < shape...
/** * Draws the ship into the ShapeRenderer. * * @param sr ShapeRenderer where the Ship will be drawn. */
Draws the ship into the ShapeRenderer
draw
{ "repo_name": "BlueDi/Evolution", "path": "src/entities/Ship.java", "license": "mit", "size": 14360 }
[ "com.badlogic.gdx.graphics.glutils.ShapeRenderer" ]
import com.badlogic.gdx.graphics.glutils.ShapeRenderer;
import com.badlogic.gdx.graphics.glutils.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
1,178,343
void postUpdate(Entity entity);
void postUpdate(Entity entity);
/** * Callback that is fired when the entity with the given id is updated. * * @param entity the updated entity */
Callback that is fired when the entity with the given id is updated
postUpdate
{ "repo_name": "jjettenn/molgenis", "path": "molgenis-data/src/main/java/org/molgenis/data/listeners/EntityListener.java", "license": "lgpl-3.0", "size": 465 }
[ "org.molgenis.data.Entity" ]
import org.molgenis.data.Entity;
import org.molgenis.data.*;
[ "org.molgenis.data" ]
org.molgenis.data;
2,587,567
public final IntegerProperty clientHeightProperty() { return clientHeight; }
final IntegerProperty function() { return clientHeight; }
/** * Returns the read-only client height property instance. The client height property stores the untransformed height * of this component, excluding padding and border. * * @return The read-only client height property instance. */
Returns the read-only client height property instance. The client height property stores the untransformed height of this component, excluding padding and border
clientHeightProperty
{ "repo_name": "EagerLogic/Cubee", "path": "src/Cubee/src/main/java/com/eagerlogic/cubee/client/components/AComponent.java", "license": "apache-2.0", "size": 63202 }
[ "com.eagerlogic.cubee.client.properties.IntegerProperty" ]
import com.eagerlogic.cubee.client.properties.IntegerProperty;
import com.eagerlogic.cubee.client.properties.*;
[ "com.eagerlogic.cubee" ]
com.eagerlogic.cubee;
2,150,241
@FIXVersion(introduced="4.4") public void clearYieldData() { throw new UnsupportedOperationException(getUnsupportedTagMessage()); }
@FIXVersion(introduced="4.4") void function() { throw new UnsupportedOperationException(getUnsupportedTagMessage()); }
/** * Sets the YieldData component to null. */
Sets the YieldData component to null
clearYieldData
{ "repo_name": "marvisan/HadesFIX", "path": "Model/src/main/java/net/hades/fix/message/ConfirmationMsg.java", "license": "gpl-3.0", "size": 94557 }
[ "net.hades.fix.message.anno.FIXVersion" ]
import net.hades.fix.message.anno.FIXVersion;
import net.hades.fix.message.anno.*;
[ "net.hades.fix" ]
net.hades.fix;
502,512
public int getStatValue(Stat stat);
int function(Stat stat);
/** * Gets the value of a stat * * @param stat the stat to get the value of * @return the value of the stat */
Gets the value of a stat
getStatValue
{ "repo_name": "WaywardRealms/Wayward", "path": "WaywardLib/src/main/java/net/wayward_realms/waywardlib/character/Character.java", "license": "agpl-3.0", "size": 9417 }
[ "net.wayward_realms.waywardlib.classes.Stat" ]
import net.wayward_realms.waywardlib.classes.Stat;
import net.wayward_realms.waywardlib.classes.*;
[ "net.wayward_realms.waywardlib" ]
net.wayward_realms.waywardlib;
434,874
public static Ticker adaptTicker(CleverCoinTicker cleverCoinTicker, CurrencyPair currencyPair) { BigDecimal last = cleverCoinTicker.getLast(); BigDecimal bid = cleverCoinTicker.getBid(); BigDecimal ask = cleverCoinTicker.getAsk(); BigDecimal high = cleverCoinTicker.getHigh(); BigDecimal low = cle...
static Ticker function(CleverCoinTicker cleverCoinTicker, CurrencyPair currencyPair) { BigDecimal last = cleverCoinTicker.getLast(); BigDecimal bid = cleverCoinTicker.getBid(); BigDecimal ask = cleverCoinTicker.getAsk(); BigDecimal high = cleverCoinTicker.getHigh(); BigDecimal low = cleverCoinTicker.getLow(); BigDecima...
/** * Adapts a CleverCoinTicker to a Ticker Object * * @param cleverCoinTicker The exchange specific ticker * @param currencyPair (e.g. BTC/USD) * @return The ticker */
Adapts a CleverCoinTicker to a Ticker Object
adaptTicker
{ "repo_name": "mmithril/XChange", "path": "xchange-clevercoin/src/main/java/org/knowm/xchange/clevercoin/CleverCoinAdapters.java", "license": "mit", "size": 7693 }
[ "java.math.BigDecimal", "java.util.Date", "org.knowm.xchange.clevercoin.dto.marketdata.CleverCoinTicker", "org.knowm.xchange.currency.CurrencyPair", "org.knowm.xchange.dto.marketdata.Ticker" ]
import java.math.BigDecimal; import java.util.Date; import org.knowm.xchange.clevercoin.dto.marketdata.CleverCoinTicker; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.dto.marketdata.Ticker;
import java.math.*; import java.util.*; import org.knowm.xchange.clevercoin.dto.marketdata.*; import org.knowm.xchange.currency.*; import org.knowm.xchange.dto.marketdata.*;
[ "java.math", "java.util", "org.knowm.xchange" ]
java.math; java.util; org.knowm.xchange;
1,242,292
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<OperationInner>> listNextSinglePageAsync(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<OperationInner>> function(String nextLink, Context context) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final String ac...
/** * Get the next page of items. * * @param nextLink The nextLink parameter. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by serve...
Get the next page of items
listNextSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/costmanagement/azure-resourcemanager-costmanagement/src/main/java/com/azure/resourcemanager/costmanagement/implementation/OperationsClientImpl.java", "license": "mit", "size": 12185 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.Context", "com.azure.resourcemanager.costmanagement.fluent.models.OperationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.Context; import com.azure.resourcemanager.costmanagement.fluent.models.OperationInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.costmanagement.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,717,044
@Auditable(parameters = {"nodeRef"}) public boolean exists(NodeRef nodeRef);
@Auditable(parameters = {STR}) boolean function(NodeRef nodeRef);
/** * Check the validity of a node reference * * @return returns <tt>true</tt> if the NodeRef is valid */
Check the validity of a node reference
exists
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/service/cmr/model/FileFolderService.java", "license": "lgpl-3.0", "size": 21841 }
[ "org.alfresco.service.Auditable", "org.alfresco.service.cmr.repository.NodeRef" ]
import org.alfresco.service.Auditable; import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.*; import org.alfresco.service.cmr.repository.*;
[ "org.alfresco.service" ]
org.alfresco.service;
838,659
Set<API> getAPIsWithTag(String tag, String tenantDomain) throws APIManagementException;
Set<API> getAPIsWithTag(String tag, String tenantDomain) throws APIManagementException;
/** * Returns a list of #{@link org.wso2.carbon.apimgt.api.model.API} bearing the selected tag * * @param tag name of the tag * @return set of API having the given tag name * @throws APIManagementException if failed to get set of API */
Returns a list of #<code>org.wso2.carbon.apimgt.api.model.API</code> bearing the selected tag
getAPIsWithTag
{ "repo_name": "jaadds/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.api/src/main/java/org/wso2/carbon/apimgt/api/APIConsumer.java", "license": "apache-2.0", "size": 41368 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,988,267
@Test public void testReportTime_withJSONHavingTimestampValueAtLocationNoCalc() throws Exception { final StatsDClient client = Mockito.mock(StatsDClient.class); StatsdExtractedMetricsReporterConfiguration cfg = new StatsdExtractedMetricsReporterConfiguration("host", 8125, "prefix"); cfg.addMetricConfig(new ...
void function() throws Exception { final StatsDClient client = Mockito.mock(StatsDClient.class); StatsdExtractedMetricsReporterConfiguration cfg = new StatsdExtractedMetricsReporterConfiguration("host", 8125, STR); cfg.addMetricConfig(new StatsdMetricConfig(STR, StatsdMetricType.TIME, new JsonContentReference(new Strin...
/** * Test case for {@link StatsdExtractedMetricsReporter#reportTime(StatsdMetricConfig, JSONObject)} being provided a json which returns an integer for selected path. * Value is reported as execution time --> no computation */
Test case for <code>StatsdExtractedMetricsReporter#reportTime(StatsdMetricConfig, JSONObject)</code> being provided a json which returns an integer for selected path. Value is reported as execution time --> no computation
testReportTime_withJSONHavingTimestampValueAtLocationNoCalc
{ "repo_name": "ottogroup/flink-operator-library", "path": "src/test/java/com/ottogroup/bi/streaming/operator/json/statsd/StatsdExtractedMetricsReporterTest.java", "license": "apache-2.0", "size": 58212 }
[ "com.ottogroup.bi.streaming.operator.json.JsonContentReference", "com.ottogroup.bi.streaming.operator.json.JsonContentType", "com.timgroup.statsd.StatsDClient", "org.apache.sling.commons.json.JSONObject", "org.mockito.Mockito" ]
import com.ottogroup.bi.streaming.operator.json.JsonContentReference; import com.ottogroup.bi.streaming.operator.json.JsonContentType; import com.timgroup.statsd.StatsDClient; import org.apache.sling.commons.json.JSONObject; import org.mockito.Mockito;
import com.ottogroup.bi.streaming.operator.json.*; import com.timgroup.statsd.*; import org.apache.sling.commons.json.*; import org.mockito.*;
[ "com.ottogroup.bi", "com.timgroup.statsd", "org.apache.sling", "org.mockito" ]
com.ottogroup.bi; com.timgroup.statsd; org.apache.sling; org.mockito;
2,243,273
@Override public void onDrawerClosed(View drawerView) { super.onDrawerClosed(drawerView); if (mSelectedInterpolator != -1) { mActionBar.setTitle(mArray[mSelectedInterpolator]); } invalidateOptionsMenu(); ...
void function(View drawerView) { super.onDrawerClosed(drawerView); if (mSelectedInterpolator != -1) { mActionBar.setTitle(mArray[mSelectedInterpolator]); } invalidateOptionsMenu(); }
/** * {@link android.support.v4.widget.DrawerLayout.DrawerListener} callback method. If you do not use your * ActionBarDrawerToggle instance directly as your DrawerLayout's listener, you should call * through to this method from your own listener object. * ...
<code>android.support.v4.widget.DrawerLayout.DrawerListener</code> callback method. If you do not use your ActionBarDrawerToggle instance directly as your DrawerLayout's listener, you should call through to this method from your own listener object
onDrawerClosed
{ "repo_name": "peterdocter/InterpolatorDiagram", "path": "app/src/main/java/com/airk/interpolatordiagram/app/MainActivity.java", "license": "gpl-3.0", "size": 12437 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
382,728
public synchronized void fatalError(TaskAttemptID taskId, String msg) throws IOException { LOG.fatal("Task: " + taskId + " - Killed : " + msg); TaskInProgress tip = runningTasks.get(taskId); tip.reportDiagnosticInfo("Error: " + msg); purgeTask(tip, true); }
synchronized void function(TaskAttemptID taskId, String msg) throws IOException { LOG.fatal(STR + taskId + STR + msg); TaskInProgress tip = runningTasks.get(taskId); tip.reportDiagnosticInfo(STR + msg); purgeTask(tip, true); }
/** * A child task had a fatal error. Kill the task. */
A child task had a fatal error. Kill the task
fatalError
{ "repo_name": "rvadali/fb-raid-refactoring", "path": "src/mapred/org/apache/hadoop/mapred/TaskTracker.java", "license": "apache-2.0", "size": 135755 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,677,860
private void loadContentInGridview(ArrayList<Application> applications) { if(applications != null && !applications.isEmpty()) { ApplicationsAdapter applicationsAdapter = new ApplicationsAdapter(getApplicationContext(), applications); gridView.setAdapter(applicationsAdapter); ...
void function(ArrayList<Application> applications) { if(applications != null && !applications.isEmpty()) { ApplicationsAdapter applicationsAdapter = new ApplicationsAdapter(getApplicationContext(), applications); gridView.setAdapter(applicationsAdapter); mContentLoaded = !mContentLoaded; showContentOrLoadingIndicator(m...
/** * Load content in gridview. * * @param applications the applications */
Load content in gridview
loadContentInGridview
{ "repo_name": "jrmunson/Android-Dev", "path": "outsystems-app-android/Outsytems/platforms/android/src/com/outsystems/android/ApplicationsActivity.java", "license": "mit", "size": 8050 }
[ "android.view.View", "android.widget.TextView", "com.outsystems.android.adapters.ApplicationsAdapter", "com.outsystems.android.model.Application", "java.util.ArrayList" ]
import android.view.View; import android.widget.TextView; import com.outsystems.android.adapters.ApplicationsAdapter; import com.outsystems.android.model.Application; import java.util.ArrayList;
import android.view.*; import android.widget.*; import com.outsystems.android.adapters.*; import com.outsystems.android.model.*; import java.util.*;
[ "android.view", "android.widget", "com.outsystems.android", "java.util" ]
android.view; android.widget; com.outsystems.android; java.util;
890,364
private void closeAllOpenStatements() throws SQLException { SQLException postponedException = null; // Copy openStatements, since VitessStatement.close() // deregisters itself, modifying the original set. for (Statement statement : new ArrayList<>(this.openStatements)) { ...
void function() throws SQLException { SQLException postponedException = null; for (Statement statement : new ArrayList<>(this.openStatements)) { try { VitessStatement vitessStatement = (VitessStatement) statement; vitessStatement.close(); } catch (SQLException sqlEx) { postponedException = sqlEx; } } this.openStatement...
/** * Closes all currently open statements. * * @throws SQLException */
Closes all currently open statements
closeAllOpenStatements
{ "repo_name": "pivanof/vitess", "path": "java/jdbc/src/main/java/io/vitess/jdbc/VitessConnection.java", "license": "apache-2.0", "size": 27787 }
[ "java.sql.SQLException", "java.sql.Statement", "java.util.ArrayList" ]
import java.sql.SQLException; import java.sql.Statement; import java.util.ArrayList;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
2,113,639
@Test public void testFilterableWhereWithNot2() throws SQLException { sql("filterable-model", "select name, empno from EMPS " + "where name like '%i%' and name not like '%W%' ") .returns("NAME=Eric; EMPNO=110", "NAME=Alice; EMPNO=130") .ok(); }
@Test void function() throws SQLException { sql(STR, STR + STR) .returns(STR, STR) .ok(); }
/** Similar to {@link #testFilterableWhereWithNot1()}; * But use the same column. */
Similar to <code>#testFilterableWhereWithNot1()</code>
testFilterableWhereWithNot2
{ "repo_name": "xhoong/incubator-calcite", "path": "example/csv/src/test/java/org/apache/calcite/test/CsvTest.java", "license": "apache-2.0", "size": 39106 }
[ "java.sql.SQLException", "org.junit.Test" ]
import java.sql.SQLException; import org.junit.Test;
import java.sql.*; import org.junit.*;
[ "java.sql", "org.junit" ]
java.sql; org.junit;
2,446,601
Iterator<INDArray> vectors();
Iterator<INDArray> vectors();
/** * Iterates through all of the vectors in the cache * @return an iterator for all vectors in the cache */
Iterates through all of the vectors in the cache
vectors
{ "repo_name": "RobAltena/deeplearning4j", "path": "deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/models/embeddings/WeightLookupTable.java", "license": "apache-2.0", "size": 4266 }
[ "java.util.Iterator", "org.nd4j.linalg.api.ndarray.INDArray" ]
import java.util.Iterator; import org.nd4j.linalg.api.ndarray.INDArray;
import java.util.*; import org.nd4j.linalg.api.ndarray.*;
[ "java.util", "org.nd4j.linalg" ]
java.util; org.nd4j.linalg;
2,615,246
Future<NetworkReservedIPListResponse> listAsync();
Future<NetworkReservedIPListResponse> listAsync();
/** * The List Reserved IP operation retrieves all of the virtual IPs reserved * for the subscription. * * @return The response structure for the Server List operation. */
The List Reserved IP operation retrieves all of the virtual IPs reserved for the subscription
listAsync
{ "repo_name": "oaastest/azure-sdk-for-java", "path": "management-network/src/main/java/com/microsoft/windowsazure/management/network/ReservedIPOperations.java", "license": "apache-2.0", "size": 13902 }
[ "com.microsoft.windowsazure.management.network.models.NetworkReservedIPListResponse", "java.util.concurrent.Future" ]
import com.microsoft.windowsazure.management.network.models.NetworkReservedIPListResponse; import java.util.concurrent.Future;
import com.microsoft.windowsazure.management.network.models.*; import java.util.concurrent.*;
[ "com.microsoft.windowsazure", "java.util" ]
com.microsoft.windowsazure; java.util;
758,244
private void createFieldsEnum(Entity entity, JavaClassSource entityClass) { JavaEnumSource fieldsEnum = Roaster.create(JavaEnumSource.class); fieldsEnum.setName("Fields"); for (Field field : entity.getField()) { EnumConstantSource fieldConstant = fieldsEnum.addEnumConstant(field.getName()); } entityCl...
void function(Entity entity, JavaClassSource entityClass) { JavaEnumSource fieldsEnum = Roaster.create(JavaEnumSource.class); fieldsEnum.setName(STR); for (Field field : entity.getField()) { EnumConstantSource fieldConstant = fieldsEnum.addEnumConstant(field.getName()); } entityClass.addNestedType(fieldsEnum); }
/** * Create fields enum * @param entity * @param entityClass */
Create fields enum
createFieldsEnum
{ "repo_name": "yuri0x7c1/ofbiz-explorer", "path": "src/main/java/com/github/yuri0x7c1/ofbiz/explorer/generator/util/EntityGenerator.java", "license": "apache-2.0", "size": 8011 }
[ "com.github.yuri0x7c1.ofbiz.explorer.entity.xml.Entity", "com.github.yuri0x7c1.ofbiz.explorer.entity.xml.Field", "org.jboss.forge.roaster.Roaster", "org.jboss.forge.roaster.model.source.EnumConstantSource", "org.jboss.forge.roaster.model.source.JavaClassSource", "org.jboss.forge.roaster.model.source.JavaE...
import com.github.yuri0x7c1.ofbiz.explorer.entity.xml.Entity; import com.github.yuri0x7c1.ofbiz.explorer.entity.xml.Field; import org.jboss.forge.roaster.Roaster; import org.jboss.forge.roaster.model.source.EnumConstantSource; import org.jboss.forge.roaster.model.source.JavaClassSource; import org.jboss.forge.roaster.m...
import com.github.yuri0x7c1.ofbiz.explorer.entity.xml.*; import org.jboss.forge.roaster.*; import org.jboss.forge.roaster.model.source.*;
[ "com.github.yuri0x7c1", "org.jboss.forge" ]
com.github.yuri0x7c1; org.jboss.forge;
569,713
@Override public synchronized Repository getRepository() { return repository; }
synchronized Repository function() { return repository; }
/** * Returns the configured repository instance. * * @return the configured repository instance. */
Returns the configured repository instance
getRepository
{ "repo_name": "mduerig/jackrabbit-oak", "path": "oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/OakMongoNSRepositoryStub.java", "license": "apache-2.0", "size": 3168 }
[ "javax.jcr.Repository" ]
import javax.jcr.Repository;
import javax.jcr.*;
[ "javax.jcr" ]
javax.jcr;
918,448
public boolean isStorageCardValid() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); }
boolean function() { return Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED); }
/** * check whether storage card is valid * * @return true if is valid */
check whether storage card is valid
isStorageCardValid
{ "repo_name": "BaiduQA/Cafe", "path": "testservice/src/com/baidu/cafe/remote/SystemLib.java", "license": "apache-2.0", "size": 87756 }
[ "android.os.Environment" ]
import android.os.Environment;
import android.os.*;
[ "android.os" ]
android.os;
2,232,035
private static boolean definedInSourceFile(Tree member) { Symbol sym = getSymbol(member); if (sym == null) { return false; } if (member instanceof MethodTree && ASTHelpers.isGeneratedConstructor((MethodTree) member)) { return false; } return (sym.flags() & Flags....
static boolean function(Tree member) { Symbol sym = getSymbol(member); if (sym == null) { return false; } if (member instanceof MethodTree && ASTHelpers.isGeneratedConstructor((MethodTree) member)) { return false; } return (sym.flags() & Flags.SYNTHETIC) == 0; } }
/** * An imprecise guess at whether the member is actually defined in a .java file, as opposed to * being generated by javac (e.g. a synthetic member or a generated constructor). */
An imprecise guess at whether the member is actually defined in a .java file, as opposed to being generated by javac (e.g. a synthetic member or a generated constructor)
definedInSourceFile
{ "repo_name": "cushon/error-prone", "path": "check_api/src/main/java/com/google/errorprone/fixes/SuggestedFixes.java", "license": "apache-2.0", "size": 64728 }
[ "com.google.errorprone.util.ASTHelpers", "com.sun.source.tree.MethodTree", "com.sun.source.tree.Tree", "com.sun.tools.javac.code.Flags", "com.sun.tools.javac.code.Symbol" ]
import com.google.errorprone.util.ASTHelpers; import com.sun.source.tree.MethodTree; import com.sun.source.tree.Tree; import com.sun.tools.javac.code.Flags; import com.sun.tools.javac.code.Symbol;
import com.google.errorprone.util.*; import com.sun.source.tree.*; import com.sun.tools.javac.code.*;
[ "com.google.errorprone", "com.sun.source", "com.sun.tools" ]
com.google.errorprone; com.sun.source; com.sun.tools;
138,921
public List depthFirst(boolean preorder) { List answer = new NodeList(); if (preorder) answer.add(this); answer.addAll(depthFirstRest(preorder)); if (!preorder) answer.add(this); return answer; }
List function(boolean preorder) { List answer = new NodeList(); if (preorder) answer.add(this); answer.addAll(depthFirstRest(preorder)); if (!preorder) answer.add(this); return answer; }
/** * Provides a collection of all the nodes in the tree * using a depth-first traversal. * * @param preorder if false, a postorder depth-first traversal will be performed * @return the list of (depth-first) ordered nodes * @since 2.5.0 */
Provides a collection of all the nodes in the tree using a depth-first traversal
depthFirst
{ "repo_name": "apache/groovy", "path": "src/main/java/groovy/util/Node.java", "license": "apache-2.0", "size": 29216 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,161,469
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<WorkspaceInner>> updateWithResponseAsync( String resourceGroupName, String workspaceName, WorkspacePatch parameters) { if (this.client.getEndpoint() == null) { return Mono .error( ne...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<WorkspaceInner>> function( String resourceGroupName, String workspaceName, WorkspacePatch parameters) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return Mono .error(new Il...
/** * Updates a workspace. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param workspaceName The name of the workspace. * @param parameters The parameters required to patch a workspace. * @throws IllegalArgumentException thrown if parameters ...
Updates a workspace
updateWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/loganalytics/azure-resourcemanager-loganalytics/src/main/java/com/azure/resourcemanager/loganalytics/implementation/WorkspacesClientImpl.java", "license": "mit", "size": 66615 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner", "com.azure.resourcemanager.loganalytics.models.WorkspacePatch" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.loganalytics.fluent.models.WorkspaceInner; import com.azure.resourcemanager.loganalytics.models.WorkspacePatch;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.loganalytics.fluent.models.*; import com.azure.resourcemanager.loganalytics.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,893,985
public String[] getInstalledCores() { SplitInstallManager manager = SplitInstallManagerFactory.create(this); String[] modules = manager.getInstalledModules().toArray(new String[0]); List<String> cores = new ArrayList<>(); List<String> availableCores = Arrays.asList(getAvailableCores()); SharedPre...
String[] function() { SplitInstallManager manager = SplitInstallManagerFactory.create(this); String[] modules = manager.getInstalledModules().toArray(new String[0]); List<String> cores = new ArrayList<>(); List<String> availableCores = Arrays.asList(getAvailableCores()); SharedPreferences prefs = UserPreferences.getPre...
/** * Gets the list of cores that are currently installed as Dynamic Feature Modules. * * @return the list of installed cores */
Gets the list of cores that are currently installed as Dynamic Feature Modules
getInstalledCores
{ "repo_name": "fr500/RetroArch", "path": "pkg/android/phoenix-common/src/com/retroarch/browser/retroactivity/RetroActivityCommon.java", "license": "gpl-3.0", "size": 25560 }
[ "android.content.SharedPreferences", "android.util.Log", "com.google.android.play.core.splitinstall.SplitInstallManager", "com.google.android.play.core.splitinstall.SplitInstallManagerFactory", "com.retroarch.browser.preferences.util.UserPreferences", "java.util.ArrayList", "java.util.Arrays", "java.u...
import android.content.SharedPreferences; import android.util.Log; import com.google.android.play.core.splitinstall.SplitInstallManager; import com.google.android.play.core.splitinstall.SplitInstallManagerFactory; import com.retroarch.browser.preferences.util.UserPreferences; import java.util.ArrayList; import java.uti...
import android.content.*; import android.util.*; import com.google.android.play.core.splitinstall.*; import com.retroarch.browser.preferences.util.*; import java.util.*;
[ "android.content", "android.util", "com.google.android", "com.retroarch.browser", "java.util" ]
android.content; android.util; com.google.android; com.retroarch.browser; java.util;
268,356
public Reliability getReplyReliability() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, "getReplyReliability"); Reliability r = msg.getReplyReliability(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr....
Reliability function() { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(this, tc, STR); Reliability r = msg.getReplyReliability(); if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, STR, r); return r; }
/** * Obtains the reliability field from the reply header * * @return Reliability */
Obtains the reliability field from the reply header
getReplyReliability
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.messaging.jms.2.0/src/com/ibm/ws/sib/api/jms/impl/JmsMessageImpl.java", "license": "epl-1.0", "size": 124521 }
[ "com.ibm.websphere.ras.TraceComponent", "com.ibm.websphere.sib.Reliability", "com.ibm.ws.sib.utils.ras.SibTr" ]
import com.ibm.websphere.ras.TraceComponent; import com.ibm.websphere.sib.Reliability; import com.ibm.ws.sib.utils.ras.SibTr;
import com.ibm.websphere.ras.*; import com.ibm.websphere.sib.*; import com.ibm.ws.sib.utils.ras.*;
[ "com.ibm.websphere", "com.ibm.ws" ]
com.ibm.websphere; com.ibm.ws;
2,646,812
public final <R> PropertyStream<R> map(Function<M, R> mapper) { return lift(new OperatorMap<>(mapper)); }
final <R> PropertyStream<R> function(Function<M, R> mapper) { return lift(new OperatorMap<>(mapper)); }
/** * Transforms this Property Stream by the provided mapper function. * * @param mapper some function the emitted values of this property stream. * @return a new {@link PropertyStream} with the values transformed by the provided mapper. * @param <R> * the type of the event stream cr...
Transforms this Property Stream by the provided mapper function
map
{ "repo_name": "Tiger-UI/tigerui-core", "path": "src/main/java/tigerui/property/PropertyStream.java", "license": "apache-2.0", "size": 19479 }
[ "java.util.function.Function" ]
import java.util.function.Function;
import java.util.function.*;
[ "java.util" ]
java.util;
2,627,589