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
List<CProjectCfg> selectByExample(CProjectCfgExample example);
List<CProjectCfg> selectByExample(CProjectCfgExample example);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table nfjd502.dbo.CProjectCfg * * @mbggenerated Thu Mar 02 11:23:21 CST 2017 */
This method was generated by MyBatis Generator. This method corresponds to the database table nfjd502.dbo.CProjectCfg
selectByExample
{ "repo_name": "xtwxy/cassandra-tests", "path": "mstar-server-dao/src/main/java/com/wincom/mstar/dao/mapper/CProjectCfgMapper.java", "license": "apache-2.0", "size": 2158 }
[ "com.wincom.mstar.domain.CProjectCfg", "com.wincom.mstar.domain.CProjectCfgExample", "java.util.List" ]
import com.wincom.mstar.domain.CProjectCfg; import com.wincom.mstar.domain.CProjectCfgExample; import java.util.List;
import com.wincom.mstar.domain.*; import java.util.*;
[ "com.wincom.mstar", "java.util" ]
com.wincom.mstar; java.util;
947,016
@Override public void resize(DataObject dataObject, AsyncCompletionCallback<CreateCmdResult> callback) { String iqn = null; String errMsg = null; if (dataObject.getType() == DataObjectType.VOLUME) { VolumeInfo volumeInfo = (VolumeInfo) dataObject; String iqnPath ...
void function(DataObject dataObject, AsyncCompletionCallback<CreateCmdResult> callback) { String iqn = null; String errMsg = null; if (dataObject.getType() == DataObjectType.VOLUME) { VolumeInfo volumeInfo = (VolumeInfo) dataObject; String iqnPath = volumeInfo.get_iScsiName(); iqn = DateraUtil.extractIqn(iqnPath); long...
/** * Resizes a volume on Datera, shrinking is not allowed. Resize also takes into * account the HSR * @param dataObject volume to resize * @param callback async context */
Resizes a volume on Datera, shrinking is not allowed. Resize also takes into account the HSR
resize
{ "repo_name": "Datera/cloudstack-driver", "path": "src/org/apache/cloudstack/storage/datastore/driver/DateraPrimaryDataStoreDriver.java", "license": "apache-2.0", "size": 77359 }
[ "com.cloud.agent.api.Answer", "com.cloud.agent.api.to.DataObjectType", "com.cloud.storage.ResizeVolumePayload", "com.cloud.storage.VolumeVO", "com.google.common.base.Preconditions", "com.google.common.primitives.Ints", "java.io.UnsupportedEncodingException", "org.apache.cloudstack.engine.subsystem.api...
import com.cloud.agent.api.Answer; import com.cloud.agent.api.to.DataObjectType; import com.cloud.storage.ResizeVolumePayload; import com.cloud.storage.VolumeVO; import com.google.common.base.Preconditions; import com.google.common.primitives.Ints; import java.io.UnsupportedEncodingException; import org.apache.cloudsta...
import com.cloud.agent.api.*; import com.cloud.agent.api.to.*; import com.cloud.storage.*; import com.google.common.base.*; import com.google.common.primitives.*; import java.io.*; import org.apache.cloudstack.engine.subsystem.api.storage.*; import org.apache.cloudstack.framework.async.*; import org.apache.cloudstack.s...
[ "com.cloud.agent", "com.cloud.storage", "com.google.common", "java.io", "org.apache.cloudstack" ]
com.cloud.agent; com.cloud.storage; com.google.common; java.io; org.apache.cloudstack;
2,894,218
public void setOriginalAstAndSource(ArrayNode ast, String source) { this.originalAst = ast; this.originalSource = source; }
void function(ArrayNode ast, String source) { this.originalAst = ast; this.originalSource = source; }
/** * Set original template data: AST and deparsed source. */
Set original template data: AST and deparsed source
setOriginalAstAndSource
{ "repo_name": "MegafonWebLab/histone-java", "path": "src/main/java/ru/histone/optimizer/OptimizationTrace.java", "license": "apache-2.0", "size": 6558 }
[ "com.fasterxml.jackson.databind.node.ArrayNode" ]
import com.fasterxml.jackson.databind.node.ArrayNode;
import com.fasterxml.jackson.databind.node.*;
[ "com.fasterxml.jackson" ]
com.fasterxml.jackson;
1,538,937
public static Event createSysExEvent(int id) throws IOException{ switch(id){ default: return null; } }
static Event function(int id) throws IOException{ switch(id){ default: return null; } }
/** * Create a new MIDI SysEx event */
Create a new MIDI SysEx event
createSysExEvent
{ "repo_name": "Armaxis/jmg", "path": "src/main/java/jm/midi/MidiUtil.java", "license": "gpl-2.0", "size": 7549 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,937,297
public void addConfigDescription(ConfigDescription configDescription);
void function(ConfigDescription configDescription);
/** * Adds the ConfigDescription to this provider. */
Adds the ConfigDescription to this provider
addConfigDescription
{ "repo_name": "MikeJMajor/openhab2-addons-dlinksmarthome", "path": "bundles/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/type/HomematicConfigDescriptionProvider.java", "license": "epl-1.0", "size": 2128 }
[ "org.openhab.core.config.core.ConfigDescription" ]
import org.openhab.core.config.core.ConfigDescription;
import org.openhab.core.config.core.*;
[ "org.openhab.core" ]
org.openhab.core;
1,189,778
try { List<? extends Token> result = scan(text); Assert.assertEquals(tokens.length, result.size()); for (int i = 0; i < tokens.length; i++) { if (tokens[i] != result.get(i).getType()) { Assert.fail(String.format( "At index %d, expected type %s but found %s", i, tokens[i], result.get(i)...
try { List<? extends Token> result = scan(text); Assert.assertEquals(tokens.length, result.size()); for (int i = 0; i < tokens.length; i++) { if (tokens[i] != result.get(i).getType()) { Assert.fail(String.format( STR, i, tokens[i], result.get(i).getType())); } } } catch (LexerException e) { Assert.fail(String.format( S...
/** * Tests whether a given text is yields a given sequence of token numbers. * Invokes {@link Assert#fail} if the text cannot be accepted, or the tokens * produced do not form the sequence passed in as a parameter. */
Tests whether a given text is yields a given sequence of token numbers. Invokes <code>Assert#fail</code> if the text cannot be accepted, or the tokens produced do not form the sequence passed in as a parameter
yields
{ "repo_name": "tcoenraad/compiler-construction", "path": "block-1/pp/block1/cc/antlr/LexerTester.java", "license": "mit", "size": 3660 }
[ "java.util.List", "org.antlr.v4.runtime.Token", "org.junit.Assert" ]
import java.util.List; import org.antlr.v4.runtime.Token; import org.junit.Assert;
import java.util.*; import org.antlr.v4.runtime.*; import org.junit.*;
[ "java.util", "org.antlr.v4", "org.junit" ]
java.util; org.antlr.v4; org.junit;
1,159,445
public static final List<IAlgebraicRewriteRule> buildNestedDataSourceRuleCollection() { List<IAlgebraicRewriteRule> xquery = new LinkedList<>(); xquery.add(new BreakSelectIntoConjunctsRule()); xquery.add(new SimpleUnnestToProductRule()); xquery.add(new PushMapOperatorDownThroughProdu...
static final List<IAlgebraicRewriteRule> function() { List<IAlgebraicRewriteRule> xquery = new LinkedList<>(); xquery.add(new BreakSelectIntoConjunctsRule()); xquery.add(new SimpleUnnestToProductRule()); xquery.add(new PushMapOperatorDownThroughProductRule()); xquery.add(new PushSubplanWithAggregateDownThroughProductRu...
/** * When a nested data sources exist, convert the plan to use the join operator. * * @return List of algebraic rewrite rules. */
When a nested data sources exist, convert the plan to use the join operator
buildNestedDataSourceRuleCollection
{ "repo_name": "prestoncarman/vxquery", "path": "vxquery-core/src/main/java/org/apache/vxquery/compiler/rewriter/RewriteRuleset.java", "license": "apache-2.0", "size": 19498 }
[ "java.util.LinkedList", "java.util.List", "org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule", "org.apache.hyracks.algebricks.rewriter.rules.BreakSelectIntoConjunctsRule", "org.apache.hyracks.algebricks.rewriter.rules.PushMapOperatorDownThroughProductRule", "org.apache.hyracks.algebri...
import java.util.LinkedList; import java.util.List; import org.apache.hyracks.algebricks.core.rewriter.base.IAlgebraicRewriteRule; import org.apache.hyracks.algebricks.rewriter.rules.BreakSelectIntoConjunctsRule; import org.apache.hyracks.algebricks.rewriter.rules.PushMapOperatorDownThroughProductRule; import org.apach...
import java.util.*; import org.apache.hyracks.algebricks.core.rewriter.base.*; import org.apache.hyracks.algebricks.rewriter.rules.*; import org.apache.vxquery.compiler.rewriter.algebricks_new_version.*;
[ "java.util", "org.apache.hyracks", "org.apache.vxquery" ]
java.util; org.apache.hyracks; org.apache.vxquery;
1,097,159
void hangupForegroundResumeBackground (Message result);
void hangupForegroundResumeBackground (Message result);
/** * 3GPP 22.030 6.5.5 * "Releases all active calls (if any exist) and accepts * the other (held or waiting) call." * * ar.exception carries exception on failure * ar.userObject contains the orignal value of result.obj * ar.result is null on success and failure */
3GPP 22.030 6.5.5 "Releases all active calls (if any exist) and accepts the other (held or waiting) call." ar.exception carries exception on failure ar.userObject contains the orignal value of result.obj ar.result is null on success and failure
hangupForegroundResumeBackground
{ "repo_name": "indashnet/InDashNet.Open.UN2000", "path": "android/frameworks/opt/telephony/src/java/com/android/internal/telephony/CommandsInterface.java", "license": "apache-2.0", "size": 60442 }
[ "android.os.Message" ]
import android.os.Message;
import android.os.*;
[ "android.os" ]
android.os;
1,621,200
public Optional<String> getLbOpt() { return getAnnotationStringOpt("LB"); }
Optional<String> function() { return getAnnotationStringOpt("LB"); }
/** * Return an optional Type=Z value for the reserved key <code>LB</code> * as a string. * * @return an optional Type=Z value for the reserved key <code>LB</code> * as a string */
Return an optional Type=Z value for the reserved key <code>LB</code> as a string
getLbOpt
{ "repo_name": "heuermh/dishevelled-bio", "path": "alignment/src/main/java/org/dishevelled/bio/alignment/sam/SamRecord.java", "license": "lgpl-3.0", "size": 61001 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
2,145,463
@Override public int encodeASN(byte[] buf, int offset, AsnEncoder encoder) throws AsnEncodingException { return encoder.buildUInteger64(buf, offset, typeId(), getValue()); }
int function(byte[] buf, int offset, AsnEncoder encoder) throws AsnEncodingException { return encoder.buildUInteger64(buf, offset, typeId(), getValue()); }
/** * Used to encode the integer value into an ASN.1 buffer. The passed encoder * defines the method for encoding the data. * * @param buf * The location to write the encoded data * @param offset * The start of the encoded buffer. * @param encoder * ...
Used to encode the integer value into an ASN.1 buffer. The passed encoder defines the method for encoding the data
encodeASN
{ "repo_name": "jeffgdotorg/opennms", "path": "core/snmp/joesnmp/src/main/java/org/opennms/protocols/snmp/SnmpCounter64.java", "license": "gpl-2.0", "size": 7902 }
[ "org.opennms.protocols.snmp.asn1.AsnEncoder", "org.opennms.protocols.snmp.asn1.AsnEncodingException" ]
import org.opennms.protocols.snmp.asn1.AsnEncoder; import org.opennms.protocols.snmp.asn1.AsnEncodingException;
import org.opennms.protocols.snmp.asn1.*;
[ "org.opennms.protocols" ]
org.opennms.protocols;
701,662
@LogMessage(level = ERROR) @Message(id = 1002, value = "Error while loading users.properties") public void errorWhileLoadingUsersProperties(@Cause Throwable t);
@LogMessage(level = ERROR) @Message(id = 1002, value = STR) void function(@Cause Throwable t);
/** * Error while loading users.properties * @param t The exception */
Error while loading users.properties
errorWhileLoadingUsersProperties
{ "repo_name": "jesperpedersen/ironjacamar", "path": "core/src/main/java/org/ironjacamar/core/CoreLogger.java", "license": "epl-1.0", "size": 6999 }
[ "org.jboss.logging.annotations.Cause", "org.jboss.logging.annotations.LogMessage", "org.jboss.logging.annotations.Message" ]
import org.jboss.logging.annotations.Cause; import org.jboss.logging.annotations.LogMessage; import org.jboss.logging.annotations.Message;
import org.jboss.logging.annotations.*;
[ "org.jboss.logging" ]
org.jboss.logging;
1,631,338
public static boolean isIndexDeleted(State previousState, State currentState) { return previousState.indexHealth != null && currentState.indexHealth == null; } public static class State { public static final State UNRECOVERED_STATE = new State(null, false, false, false, null, null, nul...
static boolean function(State previousState, State currentState) { return previousState.indexHealth != null && currentState.indexHealth == null; } public static class State { public static final State UNRECOVERED_STATE = new State(null, false, false, false, null, null, null, null, null, null); public final Instant crea...
/** * Return true if the state moves from the index existing to the index not existing. */
Return true if the state moves from the index existing to the index not existing
isIndexDeleted
{ "repo_name": "robin13/elasticsearch", "path": "x-pack/plugin/security/src/main/java/org/elasticsearch/xpack/security/support/SecurityIndexManager.java", "license": "apache-2.0", "size": 24648 }
[ "java.time.Instant", "org.elasticsearch.Version", "org.elasticsearch.cluster.health.ClusterHealthStatus", "org.elasticsearch.cluster.metadata.IndexMetadata" ]
import java.time.Instant; import org.elasticsearch.Version; import org.elasticsearch.cluster.health.ClusterHealthStatus; import org.elasticsearch.cluster.metadata.IndexMetadata;
import java.time.*; import org.elasticsearch.*; import org.elasticsearch.cluster.health.*; import org.elasticsearch.cluster.metadata.*;
[ "java.time", "org.elasticsearch", "org.elasticsearch.cluster" ]
java.time; org.elasticsearch; org.elasticsearch.cluster;
806,247
@Override public boolean performFinish() { try { // Remember the file. // final IFile modelFile = getModelFile();
boolean function() { try { final IFile modelFile = getModelFile();
/** * Do the work after everything is specified. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Do the work after everything is specified.
performFinish
{ "repo_name": "KAMP-Research/KAMP4APS", "path": "edu.kit.ipd.sdq.kamp4aps.model.deploymentcontext.editor/src/edu/kit/ipd/sdq/kamp4aps/model/DeploymentContext/presentation/DeploymentContextModelWizard.java", "license": "apache-2.0", "size": 18945 }
[ "org.eclipse.core.resources.IFile" ]
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.*;
[ "org.eclipse.core" ]
org.eclipse.core;
1,163,397
private void setIndependentVariables(String[] independentVariable) { // Create a new hashtable of just the right size coefficient = new Hashtable<String,Double>( independentVariable.length ); // Add each independent variable with an initial coefficient of 0.0 for ( int v...
void function(String[] independentVariable) { coefficient = new Hashtable<String,Double>( independentVariable.length ); for ( int v=0; v<independentVariable.length; v++ ) coefficient.put( independentVariable[v], new Double(0.0) ); }
/** * A helper function that initializes the set of independent variables used * in this model to the given array of independent variable names. * @param independentVariable an array of independent variables to use in * this MultipleLinearRegressionModel. */
A helper function that initializes the set of independent variables used in this model to the given array of independent variable names
setIndependentVariables
{ "repo_name": "etheriau/OpenForecast", "path": "src/main/java/net/sourceforge/openforecast/models/MultipleLinearRegressionModel.java", "license": "lgpl-2.1", "size": 15827 }
[ "java.util.Hashtable" ]
import java.util.Hashtable;
import java.util.*;
[ "java.util" ]
java.util;
1,634,919
URL url = getURL(); if (url.getProtocol().startsWith(UrlUtils.URL_PROTOCOL_VFS)) { return VfsResourceDelegate.getResource(url).getFile(); } return UrlUtils.getFile(url, getDescription()); }
URL url = getURL(); if (url.getProtocol().startsWith(UrlUtils.URL_PROTOCOL_VFS)) { return VfsResourceDelegate.getResource(url).getFile(); } return UrlUtils.getFile(url, getDescription()); }
/** * This implementation returns a File reference for the underlying class path * resource, provided that it refers to a file in the file system. * @see org.springframework.util.UrlUtils#getFile(java.net.URL, String) */
This implementation returns a File reference for the underlying class path resource, provided that it refers to a file in the file system
getFile
{ "repo_name": "zollty-org/zollty-util", "path": "jretty-util/src/main/java/org/jretty/util/resource/AbstractFileResolvingResource.java", "license": "gpl-2.0", "size": 7671 }
[ "org.jretty.util.UrlUtils" ]
import org.jretty.util.UrlUtils;
import org.jretty.util.*;
[ "org.jretty.util" ]
org.jretty.util;
1,809,319
public Collection<MenuItem> getMenuItems() { return _menuItemMap.values(); }
Collection<MenuItem> function() { return _menuItemMap.values(); }
/** * Get all {@link MenuItem}. */
Get all <code>MenuItem</code>
getMenuItems
{ "repo_name": "JCThePants/NucleusFramework", "path": "src/com/jcwhatever/nucleus/views/menu/MenuInventory.java", "license": "mit", "size": 9209 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,107,478
public OType fieldType(final String iFieldName) { return _fieldTypes != null ? _fieldTypes.get(iFieldName) : null; }
OType function(final String iFieldName) { return _fieldTypes != null ? _fieldTypes.get(iFieldName) : null; }
/** * Returns the forced field type if any. * * @param iFieldName */
Returns the forced field type if any
fieldType
{ "repo_name": "wuman/orientdb-android", "path": "core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocument.java", "license": "apache-2.0", "size": 47688 }
[ "com.orientechnologies.orient.core.metadata.schema.OType" ]
import com.orientechnologies.orient.core.metadata.schema.OType;
import com.orientechnologies.orient.core.metadata.schema.*;
[ "com.orientechnologies.orient" ]
com.orientechnologies.orient;
2,434,964
@Override public boolean updateTeamModel(String teamname, TeamModel model) { return userService.updateTeamModel(teamname, model); }
boolean function(String teamname, TeamModel model) { return userService.updateTeamModel(teamname, model); }
/** * Updates/writes and replaces a complete team object keyed by teamname. * This method allows for renaming a team. * * @param teamname * the old teamname * @param model * the team object to use for teamname * @return true if update is successful * @since 0.8.0 */
Updates/writes and replaces a complete team object keyed by teamname. This method allows for renaming a team
updateTeamModel
{ "repo_name": "firateren52/gitblit", "path": "src/main/java/com/gitblit/manager/UserManager.java", "license": "apache-2.0", "size": 11803 }
[ "com.gitblit.models.TeamModel" ]
import com.gitblit.models.TeamModel;
import com.gitblit.models.*;
[ "com.gitblit.models" ]
com.gitblit.models;
233,679
public MavenPublication getPublication() { return publication; }
MavenPublication function() { return publication; }
/** * The publication to be published. * * @return The publication to be published */
The publication to be published
getPublication
{ "repo_name": "FinishX/coolweather", "path": "gradle/gradle-2.8/src/maven/org/gradle/api/publish/maven/tasks/AbstractPublishToMaven.java", "license": "apache-2.0", "size": 3807 }
[ "org.gradle.api.publish.maven.MavenPublication" ]
import org.gradle.api.publish.maven.MavenPublication;
import org.gradle.api.publish.maven.*;
[ "org.gradle.api" ]
org.gradle.api;
810,377
private int calculateMessLength() { // message which will be sent by the message of this activation String message = createMessage(); // the FontMetrics object used for drawing the diagram FontMetrics fm = getFontMetrics(fProperties.getFont()); // widt...
int function() { String message = createMessage(); FontMetrics fm = getFontMetrics(fProperties.getFont()); int messLength = fm.stringWidth(message) + 8; int srcDistance = fOwner.column(); if (fSrc != null && fSrc.owner() != null) { srcDistance = fOwner.calculateDistance(fSrc.owner()); } if (srcDistance == 0) { messLeng...
/** * Calculates the length of the longest message sent by this activation. * * @return the length of the message */
Calculates the length of the longest message sent by this activation
calculateMessLength
{ "repo_name": "vnu-dse/rtl", "path": "src/gui/org/tzi/use/gui/views/seqDiag/SequenceDiagram.java", "license": "gpl-2.0", "size": 156112 }
[ "java.awt.FontMetrics", "org.tzi.use.uml.ocl.value.Value", "org.tzi.use.uml.sys.MOperationCall", "org.tzi.use.uml.sys.events.LinkDeletedEvent", "org.tzi.use.uml.sys.events.ObjectDestroyedEvent", "org.tzi.use.uml.sys.events.OperationEnteredEvent" ]
import java.awt.FontMetrics; import org.tzi.use.uml.ocl.value.Value; import org.tzi.use.uml.sys.MOperationCall; import org.tzi.use.uml.sys.events.LinkDeletedEvent; import org.tzi.use.uml.sys.events.ObjectDestroyedEvent; import org.tzi.use.uml.sys.events.OperationEnteredEvent;
import java.awt.*; import org.tzi.use.uml.ocl.value.*; import org.tzi.use.uml.sys.*; import org.tzi.use.uml.sys.events.*;
[ "java.awt", "org.tzi.use" ]
java.awt; org.tzi.use;
1,672,490
public TestContextFactory getTestContextFactory() { return testContextFactory; }
TestContextFactory function() { return testContextFactory; }
/** * Obtains the testContextFactory. * @return */
Obtains the testContextFactory
getTestContextFactory
{ "repo_name": "christophd/citrus", "path": "core/citrus-base/src/main/java/com/consol/citrus/CitrusContext.java", "license": "apache-2.0", "size": 16973 }
[ "com.consol.citrus.context.TestContextFactory" ]
import com.consol.citrus.context.TestContextFactory;
import com.consol.citrus.context.*;
[ "com.consol.citrus" ]
com.consol.citrus;
1,860,428
@Override public void enterSrepunion(@NotNull PoCoParser.SrepunionContext ctx) { }
@Override public void enterSrepunion(@NotNull PoCoParser.SrepunionContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitExecution
{ "repo_name": "Corjuh/PoCo-Compiler", "path": "Parser/gen/PoCoParserBaseListener.java", "license": "lgpl-2.1", "size": 18482 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
706,471
public boolean extinguishFire(EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5) { if (par5 == 0) { --par3; } if (par5 == 1) { ++par3; } if (par5 == 2) { --par4; } if (par5 ...
boolean function(EntityPlayer par1EntityPlayer, int par2, int par3, int par4, int par5) { if (par5 == 0) { --par3; } if (par5 == 1) { ++par3; } if (par5 == 2) { --par4; } if (par5 == 3) { ++par4; } if (par5 == 4) { --par2; } if (par5 == 5) { ++par2; } if (this.getBlockId(par2, par3, par4) == Block.fire.blockID) { this....
/** * If the block in the given direction of the given coordinate is fire, extinguish it. Args: Player, X,Y,Z, * blockDirection */
If the block in the given direction of the given coordinate is fire, extinguish it. Args: Player, X,Y,Z, blockDirection
extinguishFire
{ "repo_name": "HATB0T/RuneCraftery", "path": "forge/mcp/src/minecraft/net/minecraft/world/World.java", "license": "lgpl-3.0", "size": 151760 }
[ "net.minecraft.block.Block", "net.minecraft.entity.player.EntityPlayer" ]
import net.minecraft.block.Block; import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.block.*; import net.minecraft.entity.player.*;
[ "net.minecraft.block", "net.minecraft.entity" ]
net.minecraft.block; net.minecraft.entity;
282,895
public void deleteEntriesOlderThanASN(final long pv_ASN, final boolean pv_ageCommitted) throws IOException { int loopIndex = 0; long threadId = Thread.currentThread().getId(); // This TransactionState object is just a mechanism to keep track of the asynch rpc calls // send to regions in order...
void function(final long pv_ASN, final boolean pv_ageCommitted) throws IOException { int loopIndex = 0; long threadId = Thread.currentThread().getId(); TransactionState transactionState = new TransactionState(0); CompletionService<Integer> compPool = new ExecutorCompletionService<Integer>(tlogThreadPool); if (LOG.isTra...
/** * Method : deleteEntriesOlderThanASN * Params : pv_ASN - ASN before which all audit records will be deleted * Return : void * Purpose : Delete transaction records which are no longer needed */
Method : deleteEntriesOlderThanASN Params : pv_ASN - ASN before which all audit records will be deleted Return : void Purpose : Delete transaction records which are no longer needed
deleteEntriesOlderThanASN
{ "repo_name": "rlugojr/incubator-trafodion", "path": "core/sqf/src/seatrans/tm/hbasetmlib2/src/main/java/org/trafodion/dtm/TmAuditTlog.java", "license": "apache-2.0", "size": 58212 }
[ "java.io.IOException", "java.util.List", "java.util.concurrent.CompletionService", "java.util.concurrent.ExecutorCompletionService", "org.apache.hadoop.hbase.HRegionLocation", "org.apache.hadoop.hbase.client.transactional.TransactionState" ]
import java.io.IOException; import java.util.List; import java.util.concurrent.CompletionService; import java.util.concurrent.ExecutorCompletionService; import org.apache.hadoop.hbase.HRegionLocation; import org.apache.hadoop.hbase.client.transactional.TransactionState;
import java.io.*; import java.util.*; import java.util.concurrent.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.transactional.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,479,811
int insertSelective(BEnergyMinute record);
int insertSelective(BEnergyMinute record);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table Energy.dbo.BEnergyMinute * * @mbggenerated Thu Mar 02 11:23:21 CST 2017 */
This method was generated by MyBatis Generator. This method corresponds to the database table Energy.dbo.BEnergyMinute
insertSelective
{ "repo_name": "xtwxy/cassandra-tests", "path": "mstar-server-dao/src/main/java/com/wincom/mstar/dao/mapper/BEnergyMinuteMapper.java", "license": "apache-2.0", "size": 2191 }
[ "com.wincom.mstar.domain.BEnergyMinute" ]
import com.wincom.mstar.domain.BEnergyMinute;
import com.wincom.mstar.domain.*;
[ "com.wincom.mstar" ]
com.wincom.mstar;
1,162
public void setOnRefreshListener(SwipeRefreshLayout.OnRefreshListener listener) { onRefreshListener = listener; enabled = true; if (mSwipeRefreshLayout != null) { mSwipeRefreshLayout.setEnabled(true); mSwipeRefreshLayout.setOnRefreshListener(listener); } }
void function(SwipeRefreshLayout.OnRefreshListener listener) { onRefreshListener = listener; enabled = true; if (mSwipeRefreshLayout != null) { mSwipeRefreshLayout.setEnabled(true); mSwipeRefreshLayout.setOnRefreshListener(listener); } }
/** * Set the {@link android.support.v4.widget.SwipeRefreshLayout.OnRefreshListener} to listen for * initiated refreshes. * * @see android.support.v4.widget.SwipeRefreshLayout#setOnRefreshListener(android.support.v4.widget.SwipeRefreshLayout.OnRefreshListener) */
Set the <code>android.support.v4.widget.SwipeRefreshLayout.OnRefreshListener</code> to listen for initiated refreshes
setOnRefreshListener
{ "repo_name": "kriztan/Conversations", "path": "src/main/java/eu/siacs/conversations/ui/widget/SwipeRefreshListFragment.java", "license": "gpl-3.0", "size": 5881 }
[ "android.support.v4.widget.SwipeRefreshLayout" ]
import android.support.v4.widget.SwipeRefreshLayout;
import android.support.v4.widget.*;
[ "android.support" ]
android.support;
627,792
public Rectangle2D getGeometryBounds() { if (geometryBounds == null) { // System.err.println("geometryBounds are null"); int i=0; while(geometryBounds == null && i < count){ geometryBounds = children[i++].getTransformedGeometryBounds (IDENT...
Rectangle2D function() { if (geometryBounds == null) { int i=0; while(geometryBounds == null && i < count){ geometryBounds = children[i++].getTransformedGeometryBounds (IDENTITY); } while (i<count) { Rectangle2D cgb = children[i++].getTransformedGeometryBounds(IDENTITY); if (cgb != null) { if (geometryBounds == null) {...
/** * Returns the bounds of the area covered by this node, without * taking any of its rendering attributes into account. That is, * exclusive of any clipping, masking, filtering or stroking, for * example. */
Returns the bounds of the area covered by this node, without taking any of its rendering attributes into account. That is, exclusive of any clipping, masking, filtering or stroking, for example
getGeometryBounds
{ "repo_name": "srnsw/xena", "path": "plugins/image/ext/src/batik-1.7/sources/org/apache/batik/gvt/CompositeGraphicsNode.java", "license": "gpl-3.0", "size": 35545 }
[ "java.awt.geom.Rectangle2D" ]
import java.awt.geom.Rectangle2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
28,381
@SuppressWarnings("unchecked") private Map transformRequestHeaders2Map(HttpServletRequest request){ Map<String, String> result = new HashMap<String, String>(); Enumeration<String> hnames = request.getHeaderNames(); while (hnames.hasMoreElements()) { String p = hnames.nextElemen...
@SuppressWarnings(STR) Map function(HttpServletRequest request){ Map<String, String> result = new HashMap<String, String>(); Enumeration<String> hnames = request.getHeaderNames(); while (hnames.hasMoreElements()) { String p = hnames.nextElement().toString(); result.put(p.trim(), request.getHeader(p)); } return result; ...
/** * Transform http request headers to map * * @param request the submitted request */
Transform http request headers to map
transformRequestHeaders2Map
{ "repo_name": "Ariah-Group/Continuity", "path": "src/main/java/org/kuali/continuity/security/KualiAuthenticationProcessingFilter.java", "license": "apache-2.0", "size": 28878 }
[ "java.util.Enumeration", "java.util.HashMap", "java.util.Map", "javax.servlet.http.HttpServletRequest" ]
import java.util.Enumeration; import java.util.HashMap; import java.util.Map; import javax.servlet.http.HttpServletRequest;
import java.util.*; import javax.servlet.http.*;
[ "java.util", "javax.servlet" ]
java.util; javax.servlet;
669,046
public void release() { // even though native_release() stops the native AudioTrack, we need to stop // AudioTrack subclasses too. try { stop(); } catch(IllegalStateException ise) { // don't raise an exception, we're releasing the resources. } ...
void function() { try { stop(); } catch(IllegalStateException ise) { } native_release(); mState = STATE_UNINITIALIZED; }
/** * Releases the native AudioTrack resources. */
Releases the native AudioTrack resources
release
{ "repo_name": "haikuowuya/android_system_code", "path": "src/android/media/AudioTrack.java", "license": "apache-2.0", "size": 49747 }
[ "java.lang.IllegalStateException" ]
import java.lang.IllegalStateException;
import java.lang.*;
[ "java.lang" ]
java.lang;
609,650
@Test public void isFullyInMemory() throws Exception { // add nested file mFileSystemMaster.createFile(NESTED_FILE_URI, mNestedFileContext); // add in-memory block long blockId = mFileSystemMaster.getNewBlockIdForFile(NESTED_FILE_URI); mBlockMaster.commitBlock(mWorkerId1, Constants.KB, "MEM", "M...
void function() throws Exception { mFileSystemMaster.createFile(NESTED_FILE_URI, mNestedFileContext); long blockId = mFileSystemMaster.getNewBlockIdForFile(NESTED_FILE_URI); mBlockMaster.commitBlock(mWorkerId1, Constants.KB, "MEM", "MEM", blockId, Constants.KB); blockId = mFileSystemMaster.getNewBlockIdForFile(NESTED_F...
/** * Tests that a file is fully written to memory. */
Tests that a file is fully written to memory
isFullyInMemory
{ "repo_name": "EvilMcJerkface/alluxio", "path": "core/server/master/src/test/java/alluxio/master/file/FileSystemMasterTest.java", "license": "apache-2.0", "size": 118855 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,571,103
Test suite = TestConfiguration.embeddedSuite (LockTableVtiTest.class); suite = new DatabasePropertyTestSetup(suite, properties, true); return new CleanDatabaseTestSetup(suite) { protected void decorateSQL(Statement s) throws SQLException { Connection conn = getCo...
Test suite = TestConfiguration.embeddedSuite (LockTableVtiTest.class); suite = new DatabasePropertyTestSetup(suite, properties, true); return new CleanDatabaseTestSetup(suite) { void function(Statement s) throws SQLException { Connection conn = getConnection(); conn.setAutoCommit(false); s.executeUpdate(STR + STR); s.e...
/** * Creates the schemas and table used in the test cases. * * @throws SQLException */
Creates the schemas and table used in the test cases
decorateSQL
{ "repo_name": "scnakandala/derby", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/store/LockTableVtiTest.java", "license": "apache-2.0", "size": 11091 }
[ "java.sql.Connection", "java.sql.SQLException", "java.sql.Statement", "junit.framework.Test", "org.apache.derbyTesting.junit.CleanDatabaseTestSetup", "org.apache.derbyTesting.junit.DatabasePropertyTestSetup", "org.apache.derbyTesting.junit.TestConfiguration" ]
import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import junit.framework.Test; import org.apache.derbyTesting.junit.CleanDatabaseTestSetup; import org.apache.derbyTesting.junit.DatabasePropertyTestSetup; import org.apache.derbyTesting.junit.TestConfiguration;
import java.sql.*; import junit.framework.*; import org.apache.*;
[ "java.sql", "junit.framework", "org.apache" ]
java.sql; junit.framework; org.apache;
157,654
@ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux<OperationInner> listAsync(Context context) { return new PagedFlux<>( () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); }
@ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<OperationInner> function(Context context) { return new PagedFlux<>( () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); }
/** * Lists available operations for the Microsoft.Batch provider. * * @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 server. * @thr...
Lists available operations for the Microsoft.Batch provider
listAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/batch/azure-resourcemanager-batch/src/main/java/com/azure/resourcemanager/batch/implementation/OperationsClientImpl.java", "license": "mit", "size": 12147 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedFlux", "com.azure.core.util.Context", "com.azure.resourcemanager.batch.fluent.models.OperationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.core.util.Context; import com.azure.resourcemanager.batch.fluent.models.OperationInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.batch.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,204,920
public MUCAffiliation getAffiliation() { return affiliation; }
MUCAffiliation function() { return affiliation; }
/** * Returns the occupant's affiliation to the room. The affiliation is a semi-permanent * association or connection with a room. The possible affiliations are "owner", "admin", * "member", and "outcast" (naturally it is also possible to have no affiliation). An * affiliation lasts across a user's ...
Returns the occupant's affiliation to the room. The affiliation is a semi-permanent association or connection with a room. The possible affiliations are "owner", "admin", "member", and "outcast" (naturally it is also possible to have no affiliation). An affiliation lasts across a user's visits to a room
getAffiliation
{ "repo_name": "vanitasvitae/smack-omemo", "path": "smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCItem.java", "license": "apache-2.0", "size": 5850 }
[ "org.jivesoftware.smackx.muc.MUCAffiliation" ]
import org.jivesoftware.smackx.muc.MUCAffiliation;
import org.jivesoftware.smackx.muc.*;
[ "org.jivesoftware.smackx" ]
org.jivesoftware.smackx;
1,853,675
default JmsEndpointConsumerBuilder errorHandlerLoggingLevel( LoggingLevel errorHandlerLoggingLevel) { setProperty("errorHandlerLoggingLevel", errorHandlerLoggingLevel); return this; }
default JmsEndpointConsumerBuilder errorHandlerLoggingLevel( LoggingLevel errorHandlerLoggingLevel) { setProperty(STR, errorHandlerLoggingLevel); return this; }
/** * Allows to configure the default errorHandler logging level for * logging uncaught exceptions. * * The option is a: <code>org.apache.camel.LoggingLevel</code> type. * * Group: logging */
Allows to configure the default errorHandler logging level for logging uncaught exceptions. The option is a: <code>org.apache.camel.LoggingLevel</code> type. Group: logging
errorHandlerLoggingLevel
{ "repo_name": "davidkarlsen/camel", "path": "core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/JmsEndpointBuilderFactory.java", "license": "apache-2.0", "size": 226316 }
[ "org.apache.camel.LoggingLevel" ]
import org.apache.camel.LoggingLevel;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
958,493
public static SortedMap<String, String> getEnvironmentVariables() { final SortedMap<String, String> map = new TreeMap<String, String>(); for (final String key : new TreeSet<String>(System.getenv().keySet())) { map.put(key, System.getenv(key)); } return map; } /** * Get a sorted m...
static SortedMap<String, String> function() { final SortedMap<String, String> map = new TreeMap<String, String>(); for (final String key : new TreeSet<String>(System.getenv().keySet())) { map.put(key, System.getenv(key)); } return map; } /** * Get a sorted map of system properties. * * @return the sorted system propert...
/** * Get a sorted map of system environment variables. * * @return the sorted environment variables * * @see System#getenv() */
Get a sorted map of system environment variables
getEnvironmentVariables
{ "repo_name": "jenkinsci/dumpinfo-buildwrapper-plugin", "path": "src/main/java/hudson/plugins/dumpinfo/SystemUtils.java", "license": "mit", "size": 2550 }
[ "java.util.SortedMap", "java.util.TreeMap", "java.util.TreeSet" ]
import java.util.SortedMap; import java.util.TreeMap; import java.util.TreeSet;
import java.util.*;
[ "java.util" ]
java.util;
87,416
@Override public GenericRecordBuilder clear(Field field) { return clear(field.getIndex()); }
GenericRecordBuilder function(Field field) { return clear(field.getIndex()); }
/** * Clears the value of the given field. * * @param field the field to clear. * @return a reference to the RecordBuilder. */
Clears the value of the given field
clear
{ "repo_name": "massakam/pulsar", "path": "pulsar-client/src/main/java/org/apache/pulsar/client/impl/schema/generic/AvroRecordBuilderImpl.java", "license": "apache-2.0", "size": 4675 }
[ "org.apache.pulsar.client.api.schema.Field", "org.apache.pulsar.client.api.schema.GenericRecordBuilder" ]
import org.apache.pulsar.client.api.schema.Field; import org.apache.pulsar.client.api.schema.GenericRecordBuilder;
import org.apache.pulsar.client.api.schema.*;
[ "org.apache.pulsar" ]
org.apache.pulsar;
1,156,466
@Nonnull public static ObservableDoubleValue uiThreadAwareObservableDouble(@Nonnull final ObservableDoubleValue observable) { requireNonNull(observable, ERROR_OBSERVABLE_NULL); return observable instanceof UIThreadAware ? observable : new UIThreadAwareObservableDoubleValue(observable); }
static ObservableDoubleValue function(@Nonnull final ObservableDoubleValue observable) { requireNonNull(observable, ERROR_OBSERVABLE_NULL); return observable instanceof UIThreadAware ? observable : new UIThreadAwareObservableDoubleValue(observable); }
/** * Creates an observable double value that notifies its listeners inside the UI thread. * * @param observable the observable double to wrap. * * @return an observable double value. */
Creates an observable double value that notifies its listeners inside the UI thread
uiThreadAwareObservableDouble
{ "repo_name": "griffon/griffon", "path": "subprojects/griffon-javafx/src/main/java/griffon/javafx/beans/binding/UIThreadAwareBindings.java", "license": "apache-2.0", "size": 50390 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
2,741,070
public static void saveProfiles() { ObjectEncoder<byte[]> encoder = new BinaryEncoder(); ProfileMemoryConfig pmc = new ProfileMemoryConfig(); pmc.profiles = new ArrayList<Profil>(Chat.connectionManager.getLocalEndpointManager().getResourcePool(Profil.class).getResources()); byte[] buffer = encoder.encode(pmc...
static void function() { ObjectEncoder<byte[]> encoder = new BinaryEncoder(); ProfileMemoryConfig pmc = new ProfileMemoryConfig(); pmc.profiles = new ArrayList<Profil>(Chat.connectionManager.getLocalEndpointManager().getResourcePool(Profil.class).getResources()); byte[] buffer = encoder.encode(pmc); try { Files.write(p...
/** * Speichern der Profile */
Speichern der Profile
saveProfiles
{ "repo_name": "Daniel-Abrecht/DPA-Chat", "path": "src/chat/utils/Data.java", "license": "mit", "size": 3353 }
[ "chat.resources.Profil", "java.io.IOException", "java.nio.file.Files", "java.util.ArrayList" ]
import chat.resources.Profil; import java.io.IOException; import java.nio.file.Files; import java.util.ArrayList;
import chat.resources.*; import java.io.*; import java.nio.file.*; import java.util.*;
[ "chat.resources", "java.io", "java.nio", "java.util" ]
chat.resources; java.io; java.nio; java.util;
2,714,852
MethodType mt = MethodType.methodType(Boolean.class, types); try { try { return MethodHandles.publicLookup().findVirtual(this.bean.getClass(), methodName, mt); } catch (NoSuchMethodException e) { return MethodHandles.publicLookup().findVirtual(this.bean.ge...
MethodType mt = MethodType.methodType(Boolean.class, types); try { try { return MethodHandles.publicLookup().findVirtual(this.bean.getClass(), methodName, mt); } catch (NoSuchMethodException e) { return MethodHandles.publicLookup().findVirtual(this.bean.getClass(), methodName, mt.unwrap()); } } catch (NoSuchMethodExcep...
/** * Tries to create a method handle from methodName and specified types. * Takes into account both Boolean and boolean return type. * * @param methodName * @param types * @return * @throws IllegalAccessException * @throws NoSuchMethodException */
Tries to create a method handle from methodName and specified types. Takes into account both Boolean and boolean return type
getMethodHandle
{ "repo_name": "jensalm/spring-workflow", "path": "src/main/java/com/captechconsulting/workflow/TaskAdapter.java", "license": "gpl-2.0", "size": 4485 }
[ "java.lang.invoke.MethodHandles", "java.lang.invoke.MethodType", "org.springframework.beans.factory.BeanInitializationException" ]
import java.lang.invoke.MethodHandles; import java.lang.invoke.MethodType; import org.springframework.beans.factory.BeanInitializationException;
import java.lang.invoke.*; import org.springframework.beans.factory.*;
[ "java.lang", "org.springframework.beans" ]
java.lang; org.springframework.beans;
2,703,456
public void setFilterNodes(Collection<ImageDisplay> nodes) { ResetNodesVisitor visitor = new ResetNodesVisitor(nodes, true); rootDisplay.accept(visitor, ImageDisplayVisitor.IMAGE_SET_ONLY); final Set<DataObject> visibleDataObjects = getVisibleImages(); final Collection<DataObject> selectedDataObjects = getS...
void function(Collection<ImageDisplay> nodes) { ResetNodesVisitor visitor = new ResetNodesVisitor(nodes, true); rootDisplay.accept(visitor, ImageDisplayVisitor.IMAGE_SET_ONLY); final Set<DataObject> visibleDataObjects = getVisibleImages(); final Collection<DataObject> selectedDataObjects = getSelectedDataObjects(); fin...
/** * Implemented as specified by the {@link Browser} interface. * @see Browser#setFilterNodes(Collection) */
Implemented as specified by the <code>Browser</code> interface
setFilterNodes
{ "repo_name": "tp81/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/dataBrowser/browser/BrowserModel.java", "license": "gpl-2.0", "size": 27909 }
[ "java.util.Collection", "java.util.HashSet", "java.util.Set", "org.openmicroscopy.shoola.agents.dataBrowser.visitor.ResetNodesVisitor" ]
import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.openmicroscopy.shoola.agents.dataBrowser.visitor.ResetNodesVisitor;
import java.util.*; import org.openmicroscopy.shoola.agents.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
1,808,079
public String getMimeType(String name) { name = name.substring(name.lastIndexOf('.') + 1); ScriptEngine se = scriptEngineManager.getEngineByExtension(name); if (se != null) { List<?> mimeTypes = se.getFactory().getMimeTypes(); if (mimeTypes != null && mimeTypes.size()...
String function(String name) { name = name.substring(name.lastIndexOf('.') + 1); ScriptEngine se = scriptEngineManager.getEngineByExtension(name); if (se != null) { List<?> mimeTypes = se.getFactory().getMimeTypes(); if (mimeTypes != null && mimeTypes.size() > 0) { return String.valueOf(mimeTypes.get(0)); } } return nu...
/** * Returns the first MIME type entry of the supported MIME types of a * ScriptEngineFactory which is registered for the extension of the given * name. If no ScriptEngineFactory is registered for the given extension or * the registered ScriptEngineFactory is not registered for a MIME type, * ...
Returns the first MIME type entry of the supported MIME types of a ScriptEngineFactory which is registered for the extension of the given name. If no ScriptEngineFactory is registered for the given extension or the registered ScriptEngineFactory is not registered for a MIME type, this method returns <code>null</code>
getMimeType
{ "repo_name": "labertasch/sling", "path": "bundles/scripting/core/src/main/java/org/apache/sling/scripting/core/impl/SlingScriptAdapterFactory.java", "license": "apache-2.0", "size": 6210 }
[ "java.util.List", "javax.script.ScriptEngine" ]
import java.util.List; import javax.script.ScriptEngine;
import java.util.*; import javax.script.*;
[ "java.util", "javax.script" ]
java.util; javax.script;
1,911,645
public void drawItem(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, Cate...
void function(Graphics2D g2, CategoryItemRendererState state, Rectangle2D dataArea, CategoryPlot plot, CategoryAxis domainAxis, ValueAxis rangeAxis, CategoryDataset dataset, int row, int column, int pass) { Number dataValue = dataset.getValue(row, column); if (dataValue == null) { return; } double value = dataValue.dou...
/** * Draws a 3D bar to represent one data item. * * @param g2 the graphics device. * @param state the renderer state. * @param dataArea the area for plotting the data. * @param plot the plot. * @param domainAxis the domain axis. * @param rangeAxis the range axis. ...
Draws a 3D bar to represent one data item
drawItem
{ "repo_name": "apetresc/JFreeChart", "path": "src/main/java/org/jfree/chart/renderer/category/BarRenderer3D.java", "license": "lgpl-2.1", "size": 31854 }
[ "java.awt.Color", "java.awt.Graphics2D", "java.awt.Paint", "java.awt.geom.GeneralPath", "java.awt.geom.Rectangle2D", "org.jfree.chart.axis.CategoryAxis", "org.jfree.chart.axis.ValueAxis", "org.jfree.chart.entity.EntityCollection", "org.jfree.chart.labels.CategoryItemLabelGenerator", "org.jfree.cha...
import java.awt.Color; import java.awt.Graphics2D; import java.awt.Paint; import java.awt.geom.GeneralPath; import java.awt.geom.Rectangle2D; import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.entity.EntityCollection; import org.jfree.chart.labels.CategoryItemLabelGe...
import java.awt.*; import java.awt.geom.*; import org.jfree.chart.axis.*; import org.jfree.chart.entity.*; import org.jfree.chart.labels.*; import org.jfree.chart.plot.*; import org.jfree.data.category.*; import org.jfree.ui.*;
[ "java.awt", "org.jfree.chart", "org.jfree.data", "org.jfree.ui" ]
java.awt; org.jfree.chart; org.jfree.data; org.jfree.ui;
1,786,348
public Host lookup(final String hostName) { Host h = hosts.get(hostName); if(h == null) { h = new Host(); } if(h.patternsApplied) { return h; } for(final Map.Entry<String, Host> e : hosts.entrySet()) { if(!isHostPattern(e.getKey())...
Host function(final String hostName) { Host h = hosts.get(hostName); if(h == null) { h = new Host(); } if(h.patternsApplied) { return h; } for(final Map.Entry<String, Host> e : hosts.entrySet()) { if(!isHostPattern(e.getKey())) { continue; } if(!isHostMatch(e.getKey(), hostName)) { continue; } log.debug(STR + e.getValu...
/** * Locate the configuration for a specific host request. * * @param hostName the name the user has supplied to the SSH tool. This may be a real host name, or it may just be a * "Host" block in the configuration file. * @return r configuration for the requested name. Never nul...
Locate the configuration for a specific host request
lookup
{ "repo_name": "iterate-ch/cyberduck", "path": "ssh/src/main/java/ch/cyberduck/core/sftp/openssh/config/transport/OpenSshConfig.java", "license": "gpl-3.0", "size": 15168 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,434,795
void deleteGroups(Set<GroupRequest> requests) throws AmbariException;
void deleteGroups(Set<GroupRequest> requests) throws AmbariException;
/** * Deletes the user groups specified. * * @param requests the groups to delete * * @throws AmbariException if the resources cannot be deleted */
Deletes the user groups specified
deleteGroups
{ "repo_name": "radicalbit/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/controller/AmbariManagementController.java", "license": "apache-2.0", "size": 30426 }
[ "java.util.Set", "org.apache.ambari.server.AmbariException" ]
import java.util.Set; import org.apache.ambari.server.AmbariException;
import java.util.*; import org.apache.ambari.server.*;
[ "java.util", "org.apache.ambari" ]
java.util; org.apache.ambari;
935,842
EventSearchResult search(EventQuery query, Set<String> fields) throws EventStreamException;
EventSearchResult search(EventQuery query, Set<String> fields) throws EventStreamException;
/** * Search for event according to condition provided by the {@link EventQuery}. * * @param query the query containing the filtering conditions * @param fields the fields included in the result, null or empty means all fields * @return the result of the search * @throws EventStreamExcept...
Search for event according to condition provided by the <code>EventQuery</code>
search
{ "repo_name": "xwiki/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-eventstream/xwiki-platform-eventstream-api/src/main/java/org/xwiki/eventstream/EventStore.java", "license": "lgpl-2.1", "size": 5943 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,380,996
synchronized (sInstances) { final Context appContext = messageContext.getApplicationContext(); AnalyticsMessages ret; if (! sInstances.containsKey(appContext)) { ret = new AnalyticsMessages(appContext); sInstances.put(appContext, ret); } ...
synchronized (sInstances) { final Context appContext = messageContext.getApplicationContext(); AnalyticsMessages ret; if (! sInstances.containsKey(appContext)) { ret = new AnalyticsMessages(appContext); sInstances.put(appContext, ret); } else { ret = sInstances.get(appContext); } return ret; } }
/** * Use this to get an instance of AnalyticsMessages instead of creating one directly * for yourself. * * @param messageContext should be the Main Activity of the application * associated with these messages. */
Use this to get an instance of AnalyticsMessages instead of creating one directly for yourself
getInstance
{ "repo_name": "matteoburgassi/mixpanel-fork", "path": "src/main/java/com/mixpanel/android/mpmetrics/AnalyticsMessages.java", "license": "apache-2.0", "size": 26428 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
600,020
@SuppressWarnings({ "unchecked" }) public static void premain(String agentArgument, Instrumentation instrumentation) { try { $AgentListener listener = theListener(); $ClassTransformer transformer = new $ClassTransformer(agentArgument); Junction<NamedElement> ignoredPackages = theI...
@SuppressWarnings({ STR }) static void function(String agentArgument, Instrumentation instrumentation) { try { $AgentListener listener = theListener(); $ClassTransformer transformer = new $ClassTransformer(agentArgument); Junction<NamedElement> ignoredPackages = theIgnoredPackages(); Junction<NamedElement> exceptTypes ...
/** * The premain method which will be run before the main method (dah!). It * perform the registration for class transformation. * * @param agentArgument * the agent argument. * @param instrumentation * the instrumentation object. */
The premain method which will be run before the main method (dah!). It perform the registration for class transformation
premain
{ "repo_name": "NawaMan/DirectInterceptor", "path": "Agent/src/main/java/direct/interceptor/agent/Agent.java", "license": "apache-2.0", "size": 4023 }
[ "java.lang.instrument.Instrumentation", "net.bytebuddy.agent.builder.AgentBuilder", "net.bytebuddy.description.NamedElement", "net.bytebuddy.matcher.ElementMatcher", "net.bytebuddy.matcher.ElementMatchers" ]
import java.lang.instrument.Instrumentation; import net.bytebuddy.agent.builder.AgentBuilder; import net.bytebuddy.description.NamedElement; import net.bytebuddy.matcher.ElementMatcher; import net.bytebuddy.matcher.ElementMatchers;
import java.lang.instrument.*; import net.bytebuddy.agent.builder.*; import net.bytebuddy.description.*; import net.bytebuddy.matcher.*;
[ "java.lang", "net.bytebuddy.agent", "net.bytebuddy.description", "net.bytebuddy.matcher" ]
java.lang; net.bytebuddy.agent; net.bytebuddy.description; net.bytebuddy.matcher;
1,291,423
void addStreamedFiles(List<Long> fileObjIds) { if (!isCancelled() && ingestModuleTiers.get(moduleTierIndex).hasFileIngestModules()) { if (jobState.equals(IngestJobState.ACCEPTING_STREAMED_CONTENT_AND_ANALYZING)) { taskScheduler.scheduleStreamedFileIngestTasks(this, fileObjIds); ...
void addStreamedFiles(List<Long> fileObjIds) { if (!isCancelled() && ingestModuleTiers.get(moduleTierIndex).hasFileIngestModules()) { if (jobState.equals(IngestJobState.ACCEPTING_STREAMED_CONTENT_AND_ANALYZING)) { taskScheduler.scheduleStreamedFileIngestTasks(this, fileObjIds); } else { logErrorMessage(Level.SEVERE, ST...
/** * Streams in files for analysis as part of a streaming mode ingest job. * * @param fileObjIds The object IDs of the files. */
Streams in files for analysis as part of a streaming mode ingest job
addStreamedFiles
{ "repo_name": "rcordovano/autopsy", "path": "Core/src/org/sleuthkit/autopsy/ingest/IngestJobExecutor.java", "license": "apache-2.0", "size": 66701 }
[ "java.util.List", "java.util.logging.Level" ]
import java.util.List; import java.util.logging.Level;
import java.util.*; import java.util.logging.*;
[ "java.util" ]
java.util;
438,023
public File getLastOpenedExportDir() { return genericDirGetter(SETTING_LASTOPENEDEXPORTDIR); }
File function() { return genericDirGetter(SETTING_LASTOPENEDEXPORTDIR); }
/** * Retrieves the filepath of the last used import path when data was imported * * @return the filepath of the last opened import directory, or null if no filepath was * specified. */
Retrieves the filepath of the last used import path when data was imported
getLastOpenedExportDir
{ "repo_name": "sjPlot/Zettelkasten", "path": "src/main/java/de/danielluedecke/zettelkasten/database/Settings.java", "license": "gpl-3.0", "size": 218287 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,759,742
private static Collection<UserIdCountVolumeCouple> getCollectionUserIdCountVolume(String spaceId, ComponentInst ci) { Collection<UserIdCountVolumeCouple> c = null; try { SilverTrace.info("silverstatistics", "SilverStatisticsVolumeAlimentation.getCollectionUserIdCountVolume()", ...
static Collection<UserIdCountVolumeCouple> function(String spaceId, ComponentInst ci) { Collection<UserIdCountVolumeCouple> c = null; try { SilverTrace.info(STR, STR, STR, STR + spaceId); SilverTrace.info( STR, STR, STR, STR + ci.getId()); String className = getComponentStatisticsClassName(ci.getName()); if (className ...
/** * Method declaration * @param spaceId * @param componentId * @return * @see */
Method declaration
getCollectionUserIdCountVolume
{ "repo_name": "NicolasEYSSERIC/Silverpeas-Core", "path": "ejb-core/silverstatistics/src/main/java/com/stratelia/silverpeas/silverstatistics/control/SilverStatisticsVolumeAlimentation.java", "license": "agpl-3.0", "size": 8912 }
[ "com.silverpeas.silverstatistics.ComponentStatisticsInterface", "com.silverpeas.silverstatistics.UserIdCountVolumeCouple", "com.stratelia.silverpeas.silvertrace.SilverTrace", "com.stratelia.webactiv.beans.admin.ComponentInst", "java.util.Collection" ]
import com.silverpeas.silverstatistics.ComponentStatisticsInterface; import com.silverpeas.silverstatistics.UserIdCountVolumeCouple; import com.stratelia.silverpeas.silvertrace.SilverTrace; import com.stratelia.webactiv.beans.admin.ComponentInst; import java.util.Collection;
import com.silverpeas.silverstatistics.*; import com.stratelia.silverpeas.silvertrace.*; import com.stratelia.webactiv.beans.admin.*; import java.util.*;
[ "com.silverpeas.silverstatistics", "com.stratelia.silverpeas", "com.stratelia.webactiv", "java.util" ]
com.silverpeas.silverstatistics; com.stratelia.silverpeas; com.stratelia.webactiv; java.util;
443,728
public static Set<LinkAbstraction> parseJuniperLldp(HierarchicalConfiguration info) { Set<LinkAbstraction> neighbour = new HashSet<>(); List<HierarchicalConfiguration> subtrees = info.configurationsAt(LLDP_LIST_NBR_INFO); for (HierarchicalConfiguration neighborsInfo : subtree...
static Set<LinkAbstraction> function(HierarchicalConfiguration info) { Set<LinkAbstraction> neighbour = new HashSet<>(); List<HierarchicalConfiguration> subtrees = info.configurationsAt(LLDP_LIST_NBR_INFO); for (HierarchicalConfiguration neighborsInfo : subtrees) { List<HierarchicalConfiguration> neighbors = neighborsI...
/** * Parses neighbours discovery information and returns a list of * link abstractions. * * @param info interface configuration * @return set of link abstractions */
Parses neighbours discovery information and returns a list of link abstractions
parseJuniperLldp
{ "repo_name": "sdnwiselab/onos", "path": "drivers/juniper/src/main/java/org/onosproject/drivers/juniper/JuniperUtils.java", "license": "apache-2.0", "size": 17911 }
[ "java.util.HashSet", "java.util.List", "java.util.Set", "org.apache.commons.configuration.HierarchicalConfiguration", "org.onlab.packet.ChassisId", "org.onlab.packet.MacAddress" ]
import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache.commons.configuration.HierarchicalConfiguration; import org.onlab.packet.ChassisId; import org.onlab.packet.MacAddress;
import java.util.*; import org.apache.commons.configuration.*; import org.onlab.packet.*;
[ "java.util", "org.apache.commons", "org.onlab.packet" ]
java.util; org.apache.commons; org.onlab.packet;
2,093,204
private String getGroupWikiRelPath(final OLATResourceable ores) { return "/cts/wikis/" + ores.getResourceableTypeName() + "/" + ores.getResourceableId(); }
String function(final OLATResourceable ores) { return STR + ores.getResourceableTypeName() + "/" + ores.getResourceableId(); }
/** * Get Wiki-File-Path for certain BusinessGroup. * * @param businessGroup * @return */
Get Wiki-File-Path for certain BusinessGroup
getGroupWikiRelPath
{ "repo_name": "huihoo/olat", "path": "OLAT-LMS/src/main/java/org/olat/lms/wiki/WikiManager.java", "license": "apache-2.0", "size": 27833 }
[ "org.olat.system.commons.resource.OLATResourceable" ]
import org.olat.system.commons.resource.OLATResourceable;
import org.olat.system.commons.resource.*;
[ "org.olat.system" ]
org.olat.system;
664,173
public boolean revokePermission(Class<? extends Permission> permission) { Preconditions.checkNotNull(permission); if (System.getSecurityManager() != null) { System.getSecurityManager().checkPermission(ModuleSecurityManager.UPDATE_ALLOWED_PERMISSIONS); } logger.debug("Revo...
boolean function(Class<? extends Permission> permission) { Preconditions.checkNotNull(permission); if (System.getSecurityManager() != null) { System.getSecurityManager().checkPermission(ModuleSecurityManager.UPDATE_ALLOWED_PERMISSIONS); } logger.debug(STR, permission); return globallyAllowedPermissionsTypes.remove(perm...
/** * Removes a permission that has previously been globally allowed * * @param permission The permission to revoke * @return Whether the permission was previously globally allowed */
Removes a permission that has previously been globally allowed
revokePermission
{ "repo_name": "immortius/gestalt", "path": "gestalt-module/src/main/java/org/terasology/gestalt/module/sandbox/PermissionSet.java", "license": "apache-2.0", "size": 15408 }
[ "com.google.common.base.Preconditions", "java.security.Permission" ]
import com.google.common.base.Preconditions; import java.security.Permission;
import com.google.common.base.*; import java.security.*;
[ "com.google.common", "java.security" ]
com.google.common; java.security;
1,517,456
public List<JRPrintElement> getElements();
List<JRPrintElement> function();
/** * Returns the list of print elements contained in the frame. * * @return the list of sub print elements */
Returns the list of print elements contained in the frame
getElements
{ "repo_name": "aleatorio12/ProVentasConnector", "path": "jasperreports-6.2.1-project/jasperreports-6.2.1/src/net/sf/jasperreports/engine/JRPrintFrame.java", "license": "gpl-3.0", "size": 1664 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,776,121
public Instruction startNode(@Nullable final PsiElement element) { final Instruction instruction = new InstructionImpl(this, element); addNode(instruction); checkPending(instruction); return instruction; }
Instruction function(@Nullable final PsiElement element) { final Instruction instruction = new InstructionImpl(this, element); addNode(instruction); checkPending(instruction); return instruction; }
/** * Creates instruction for given element, and adds it to myInstructionsStack * * @param element Element to create instruction for * @return new instruction */
Creates instruction for given element, and adds it to myInstructionsStack
startNode
{ "repo_name": "hurricup/intellij-community", "path": "platform/lang-impl/src/com/intellij/codeInsight/controlflow/ControlFlowBuilder.java", "license": "apache-2.0", "size": 6870 }
[ "com.intellij.codeInsight.controlflow.impl.InstructionImpl", "com.intellij.psi.PsiElement", "org.jetbrains.annotations.Nullable" ]
import com.intellij.codeInsight.controlflow.impl.InstructionImpl; import com.intellij.psi.PsiElement; import org.jetbrains.annotations.Nullable;
import com.intellij.*; import com.intellij.psi.*; import org.jetbrains.annotations.*;
[ "com.intellij", "com.intellij.psi", "org.jetbrains.annotations" ]
com.intellij; com.intellij.psi; org.jetbrains.annotations;
2,714,481
public void printStackTrace(PrintStream s) { super.printStackTrace(s); //XXX print backtrace of cause }
void function(PrintStream s) { super.printStackTrace(s); }
/** * Prints this {@code URIReferenceException}, its backtrace and * the cause's backtrace to the specified print stream. * * @param s {@code PrintStream} to use for output */
Prints this URIReferenceException, its backtrace and the cause's backtrace to the specified print stream
printStackTrace
{ "repo_name": "JetBrains/jdk8u_jdk", "path": "src/share/classes/javax/xml/crypto/URIReferenceException.java", "license": "gpl-2.0", "size": 6571 }
[ "java.io.PrintStream" ]
import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
1,977,542
ProtocolReviewer createProtocolReviewer(String principalId, boolean nonEmployeeFlag, String reviewerTypeCode, ProtocolSubmissionBase protocolSubmission);
ProtocolReviewer createProtocolReviewer(String principalId, boolean nonEmployeeFlag, String reviewerTypeCode, ProtocolSubmissionBase protocolSubmission);
/** * Creates a reviewer for the protocol included in the protocolSubmission. * @param principalId The ID of the user who will review the document * @param nonEmployeeFlag Whether or not the user is an employee * @param reviewerTypeCode The type of reviewer (usually primary or secondary) that this u...
Creates a reviewer for the protocol included in the protocolSubmission
createProtocolReviewer
{ "repo_name": "blackcathacker/kc.preclean", "path": "coeus-code/src/main/java/org/kuali/kra/protocol/onlinereview/ProtocolOnlineReviewService.java", "license": "apache-2.0", "size": 8607 }
[ "org.kuali.kra.protocol.actions.submit.ProtocolReviewer", "org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase" ]
import org.kuali.kra.protocol.actions.submit.ProtocolReviewer; import org.kuali.kra.protocol.actions.submit.ProtocolSubmissionBase;
import org.kuali.kra.protocol.actions.submit.*;
[ "org.kuali.kra" ]
org.kuali.kra;
1,860,444
private static boolean isAggregatingValue(ActionAnalysisMetadata action) { return action.getActionType() == MiddlemanType.AGGREGATING_MIDDLEMAN; }
static boolean function(ActionAnalysisMetadata action) { return action.getActionType() == MiddlemanType.AGGREGATING_MIDDLEMAN; }
/** * Returns whether this value needs to contain the data of all its inputs. Currently only tests to * see if the action is an aggregating middleman action. However, may include runfiles middleman * actions and Fileset artifacts in the future. */
Returns whether this value needs to contain the data of all its inputs. Currently only tests to see if the action is an aggregating middleman action. However, may include runfiles middleman actions and Fileset artifacts in the future
isAggregatingValue
{ "repo_name": "juhalindfors/bazel-patches", "path": "src/main/java/com/google/devtools/build/lib/skyframe/ArtifactFunction.java", "license": "apache-2.0", "size": 16785 }
[ "com.google.devtools.build.lib.actions.ActionAnalysisMetadata" ]
import com.google.devtools.build.lib.actions.ActionAnalysisMetadata;
import com.google.devtools.build.lib.actions.*;
[ "com.google.devtools" ]
com.google.devtools;
650,099
synchronized ( isInitialized ) { this.indexReady.set( false ); this.modelReady.set( false ); this.isInitialized.set( false ); this.cacheReady.set( false ); } if ( initializationThread.isAlive() ) { log.warn( this.getOntologyName() + " ...
synchronized ( isInitialized ) { this.indexReady.set( false ); this.modelReady.set( false ); this.isInitialized.set( false ); this.cacheReady.set( false ); } if ( initializationThread.isAlive() ) { log.warn( this.getOntologyName() + STR ); initializationThread.cancel(); int maxWait = 10; int wait = 0; while ( initializ...
/** * For testing! Overrides normal way of loading the ontology. This does not index the ontology unless 'force' is * true (if there is an existing index, it will be used) * * @param is * @param forceIndex initialize the index. Otherwise it will only be initialized if it doesn't exist....
For testing! Overrides normal way of loading the ontology. This does not index the ontology unless 'force' is true (if there is an existing index, it will be used)
loadTermsInNameSpace
{ "repo_name": "ppavlidis/baseCode", "path": "src/ubic/basecode/ontology/providers/AbstractOntologyMemoryBackedService.java", "license": "apache-2.0", "size": 3939 }
[ "com.hp.hpl.jena.ontology.OntModelSpec" ]
import com.hp.hpl.jena.ontology.OntModelSpec;
import com.hp.hpl.jena.ontology.*;
[ "com.hp.hpl" ]
com.hp.hpl;
390,984
public Paint getAdvanceLinePaint() { return this.advanceLinePaint; }
Paint function() { return this.advanceLinePaint; }
/** * The advance line is the line drawn at the limit of the current cycle, * when erasing the previous cycle. * * @return The paint (never <code>null</code>). */
The advance line is the line drawn at the limit of the current cycle, when erasing the previous cycle
getAdvanceLinePaint
{ "repo_name": "apetresc/JFreeChart", "path": "src/main/java/org/jfree/chart/axis/CyclicNumberAxis.java", "license": "lgpl-2.1", "size": 42844 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,707,152
public static void setPredefinedTargetLanguage(Tab tab, String targetLanguage) { TranslateBridgeJni.get().setPredefinedTargetLanguage(tab.getWebContents(), targetLanguage); }
static void function(Tab tab, String targetLanguage) { TranslateBridgeJni.get().setPredefinedTargetLanguage(tab.getWebContents(), targetLanguage); }
/** * Sets the language that the contents of the tab needs to be translated to. * No-op in case target language is invalid or not supported. * @param targetLanguage language code in ISO 639 format. */
Sets the language that the contents of the tab needs to be translated to. No-op in case target language is invalid or not supported
setPredefinedTargetLanguage
{ "repo_name": "ric2b/Vivaldi-browser", "path": "chromium/chrome/browser/language/android/java/src/org/chromium/chrome/browser/translate/TranslateBridge.java", "license": "bsd-3-clause", "size": 13108 }
[ "org.chromium.chrome.browser.tab.Tab" ]
import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.browser.tab.*;
[ "org.chromium.chrome" ]
org.chromium.chrome;
2,599,938
public static void runClient(String className, String clientName, String args[], RouterContext ctx, Log log) { runClient(className, clientName, args, ctx, log, null, null); }
static void function(String className, String clientName, String args[], RouterContext ctx, Log log) { runClient(className, clientName, args, ctx, log, null, null); }
/** * Run client in a new thread. * * @param clientName can be null * @param args can be null */
Run client in a new thread
runClient
{ "repo_name": "NoYouShutup/CryptMeme", "path": "CryptMeme/router/java/src/net/i2p/router/startup/LoadClientAppsJob.java", "license": "mit", "size": 13469 }
[ "net.i2p.router.RouterContext", "net.i2p.util.Log" ]
import net.i2p.router.RouterContext; import net.i2p.util.Log;
import net.i2p.router.*; import net.i2p.util.*;
[ "net.i2p.router", "net.i2p.util" ]
net.i2p.router; net.i2p.util;
1,134,452
public final void setAsciiStream(String parameterName, InputStream x, long length) throws SQLException { throw SQLExceptionFactory.notImplemented ("setAsciiStream(String,InputStream,long)"); }
final void function(String parameterName, InputStream x, long length) throws SQLException { throw SQLExceptionFactory.notImplemented (STR); }
/** * Sets the designated parameter to the given input stream, which will have * the specified number of bytes. * * @param parameterName the name of the first parameter * @param x the java input stream which contains the ASCII parameter value * @param length the number of bytes in the stre...
Sets the designated parameter to the given input stream, which will have the specified number of bytes
setAsciiStream
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/client/org/apache/derby/client/am/CallableStatement40.java", "license": "apache-2.0", "size": 13764 }
[ "java.io.InputStream", "java.sql.SQLException" ]
import java.io.InputStream; import java.sql.SQLException;
import java.io.*; import java.sql.*;
[ "java.io", "java.sql" ]
java.io; java.sql;
992,573
public void open() { log.info("Open launch configuration dialog"); MenuItem menu = new ShellMenuItem("Run", getMenuItemName()); menu.select(); new DefaultShell(getTitle()); }
void function() { log.info(STR); MenuItem menu = new ShellMenuItem("Run", getMenuItemName()); menu.select(); new DefaultShell(getTitle()); }
/** * Open the dialog using top menu. */
Open the dialog using top menu
open
{ "repo_name": "jboss-reddeer/reddeer", "path": "plugins/org.eclipse.reddeer.eclipse/src/org/eclipse/reddeer/eclipse/debug/ui/launchConfigurations/LaunchConfigurationsDialog.java", "license": "epl-1.0", "size": 8044 }
[ "org.eclipse.reddeer.swt.api.MenuItem", "org.eclipse.reddeer.swt.impl.menu.ShellMenuItem", "org.eclipse.reddeer.swt.impl.shell.DefaultShell" ]
import org.eclipse.reddeer.swt.api.MenuItem; import org.eclipse.reddeer.swt.impl.menu.ShellMenuItem; import org.eclipse.reddeer.swt.impl.shell.DefaultShell;
import org.eclipse.reddeer.swt.api.*; import org.eclipse.reddeer.swt.impl.menu.*; import org.eclipse.reddeer.swt.impl.shell.*;
[ "org.eclipse.reddeer" ]
org.eclipse.reddeer;
2,709,390
@Test(expectedExceptions = NullPointerException.class) public void testOfInstantArrayValueArrayNullDates() { final Float[] inValues = new Float[] {2.0f, 3.0f, 1.0f}; ImmutableInstantObjectTimeSeries.of((Instant[]) null, inValues); }
@Test(expectedExceptions = NullPointerException.class) void function() { final Float[] inValues = new Float[] {2.0f, 3.0f, 1.0f}; ImmutableInstantObjectTimeSeries.of((Instant[]) null, inValues); }
/** * Tests that the array of instants cannot be null. */
Tests that the array of instants cannot be null
testOfInstantArrayValueArrayNullDates
{ "repo_name": "McLeodMoores/starling", "path": "projects/time-series/src/test/java/com/opengamma/timeseries/precise/instant/ImmutableInstantObjectTimeSeriesTest.java", "license": "apache-2.0", "size": 51790 }
[ "org.testng.annotations.Test", "org.threeten.bp.Instant" ]
import org.testng.annotations.Test; import org.threeten.bp.Instant;
import org.testng.annotations.*; import org.threeten.bp.*;
[ "org.testng.annotations", "org.threeten.bp" ]
org.testng.annotations; org.threeten.bp;
42,302
boolean addImplementedInterface(JSTypeExpression interfaceName) { lazyInitInfo(); if (info.implementedInterfaces == null) { info.implementedInterfaces = new ArrayList<>(2); } if (info.implementedInterfaces.contains(interfaceName)) { return false; } info.implementedInterfaces.add(in...
boolean addImplementedInterface(JSTypeExpression interfaceName) { lazyInitInfo(); if (info.implementedInterfaces == null) { info.implementedInterfaces = new ArrayList<>(2); } if (info.implementedInterfaces.contains(interfaceName)) { return false; } info.implementedInterfaces.add(interfaceName); return true; }
/** * Adds an implemented interface. Returns whether the interface was added. If * the interface was already present in the list, it won't get added again. */
Adds an implemented interface. Returns whether the interface was added. If the interface was already present in the list, it won't get added again
addImplementedInterface
{ "repo_name": "GerHobbelt/closure-compiler", "path": "src/com/google/javascript/rhino/JSDocInfo.java", "license": "apache-2.0", "size": 60946 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,729,900
ICompositeQueryFilter<T> addFilters(List<IQueryFilter<T>> filters);
ICompositeQueryFilter<T> addFilters(List<IQueryFilter<T>> filters);
/** * Add a group of filters * * @param filters * @return this */
Add a group of filters
addFilters
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java/org/adempiere/ad/dao/ICompositeQueryFilter.java", "license": "gpl-2.0", "size": 12222 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
640,740
public List<Vgrdetailproductcategory> findWhereQtygoodEquals(int qtygood) throws VgrdetailproductcategoryDaoException;
List<Vgrdetailproductcategory> function(int qtygood) throws VgrdetailproductcategoryDaoException;
/** * Returns all rows from the vgrdetailproductcategory table that match the criteria 'qtygood = :qtygood'. */
Returns all rows from the vgrdetailproductcategory table that match the criteria 'qtygood = :qtygood'
findWhereQtygoodEquals
{ "repo_name": "rmage/gnvc-ims", "path": "src/java/com/app/wms/engine/db/dao/VgrdetailproductcategoryDao.java", "license": "lgpl-3.0", "size": 4497 }
[ "com.app.wms.engine.db.dto.Vgrdetailproductcategory", "com.app.wms.engine.db.exceptions.VgrdetailproductcategoryDaoException", "java.util.List" ]
import com.app.wms.engine.db.dto.Vgrdetailproductcategory; import com.app.wms.engine.db.exceptions.VgrdetailproductcategoryDaoException; import java.util.List;
import com.app.wms.engine.db.dto.*; import com.app.wms.engine.db.exceptions.*; import java.util.*;
[ "com.app.wms", "java.util" ]
com.app.wms; java.util;
1,100,873
public List<PolygonSimple> getPseudoRegionPolygones() { return pseudoRegionTesselation; }
List<PolygonSimple> function() { return pseudoRegionTesselation; }
/** * Returns the pseudo region structure as a tesselation. * @return pseudo region structure tesselation. */
Returns the pseudo region structure as a tesselation
getPseudoRegionPolygones
{ "repo_name": "schueler87/moving-morphing-masking", "path": "src/movingmorphingmasking/data/topology/maskingpseudoregionfactory/PseudoRegionHolder.java", "license": "gpl-2.0", "size": 5208 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
13,849
public List<Acl> getAcl() { return acl; }
List<Acl> function() { return acl; }
/** * Returns the dataset's access control configuration. * * @see <a href="https://cloud.google.com/bigquery/access-control">Access Control</a> */
Returns the dataset's access control configuration
getAcl
{ "repo_name": "jabubake/google-cloud-java", "path": "google-cloud-bigquery/src/main/java/com/google/cloud/bigquery/DatasetInfo.java", "license": "apache-2.0", "size": 21126 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,913,553
protected void update(final ByteBuffer buf) { update(buf, buf.position(), buf.limit()); }
void function(final ByteBuffer buf) { update(buf, buf.position(), buf.limit()); }
/** * Updates the {@link Adler32} checksum from the data in the buffer. The * position, mark, and limit are unchanged by this operation. The operation * is optimized when the buffer is backed by an array. * * @param buf */
Updates the <code>Adler32</code> checksum from the data in the buffer. The position, mark, and limit are unchanged by this operation. The operation is optimized when the buffer is backed by an array
update
{ "repo_name": "smalyshev/blazegraph", "path": "bigdata/src/java/com/bigdata/util/ChecksumUtility.java", "license": "gpl-2.0", "size": 7981 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,884,015
public static TraceScope createTrace(String description, Span span) { if (span == null) { return createTrace(description); } return (tracer == null) ? null : tracer.newScope(description, span.getSpanId()); }
static TraceScope function(String description, Span span) { if (span == null) { return createTrace(description); } return (tracer == null) ? null : tracer.newScope(description, span.getSpanId()); }
/** * Wrapper method to create new child TraceScope with the given description * and parent scope's spanId * @param span parent span * @return TraceScope or null when not tracing */
Wrapper method to create new child TraceScope with the given description and parent scope's spanId
createTrace
{ "repo_name": "HubSpot/hbase", "path": "hbase-common/src/main/java/org/apache/hadoop/hbase/trace/TraceUtil.java", "license": "apache-2.0", "size": 4112 }
[ "org.apache.htrace.core.Span", "org.apache.htrace.core.TraceScope" ]
import org.apache.htrace.core.Span; import org.apache.htrace.core.TraceScope;
import org.apache.htrace.core.*;
[ "org.apache.htrace" ]
org.apache.htrace;
2,034,099
public FeRangeElement fetch(Position key, BeEdition edition, Position globalKey) { Someone.thingToDo(); throw new SubclassResponsibilityException(); }
FeRangeElement function(Position key, BeEdition edition, Position globalKey) { Someone.thingToDo(); throw new SubclassResponsibilityException(); }
/** * Look up the range element for the key. If it is embedded within a virtual * structure, then make a virtual range element using the edition and globalKey. */
Look up the range element for the key. If it is embedded within a virtual structure, then make a virtual range element using the edition and globalKey
fetch
{ "repo_name": "jonesd/udanax-gold2java", "path": "abora-gold/src/generated-sources/translator/info/dgjones/abora/gold/be/ents/Loaf.java", "license": "mit", "size": 23516 }
[ "info.dgjones.abora.gold.be.basic.BeEdition", "info.dgjones.abora.gold.java.exception.SubclassResponsibilityException", "info.dgjones.abora.gold.nkernel.FeRangeElement", "info.dgjones.abora.gold.spaces.basic.Position" ]
import info.dgjones.abora.gold.be.basic.BeEdition; import info.dgjones.abora.gold.java.exception.SubclassResponsibilityException; import info.dgjones.abora.gold.nkernel.FeRangeElement; import info.dgjones.abora.gold.spaces.basic.Position;
import info.dgjones.abora.gold.be.basic.*; import info.dgjones.abora.gold.java.exception.*; import info.dgjones.abora.gold.nkernel.*; import info.dgjones.abora.gold.spaces.basic.*;
[ "info.dgjones.abora" ]
info.dgjones.abora;
2,151,546
public void measure(CSSNode node, float width, float height, MeasureOutput measureOutput); } // VisibleForTesting final CSSStyle style = new CSSStyle(); final CSSLayout layout = new CSSLayout(); final CachedCSSLayout lastLayout = new CachedCSSLayout(); public int lineIndex = 0; CSSNode nextAbso...
void function(CSSNode node, float width, float height, MeasureOutput measureOutput); } final CSSStyle style = new CSSStyle(); final CSSLayout layout = new CSSLayout(); final CachedCSSLayout lastLayout = new CachedCSSLayout(); public int lineIndex = 0; CSSNode nextAbsoluteChild; CSSNode nextFlexChild; private @Nullable ...
/** * Should measure the given node and put the result in the given MeasureOutput. * * NB: measure is NOT guaranteed to be threadsafe/re-entrant safe! */
Should measure the given node and put the result in the given MeasureOutput
measure
{ "repo_name": "john1jan/ReactNativeSignatureExample", "path": "node_modules/react-native/ReactAndroid/src/main/java/com/facebook/csslayout/CSSNode.java", "license": "apache-2.0", "size": 12953 }
[ "java.util.ArrayList", "javax.annotation.Nullable" ]
import java.util.ArrayList; import javax.annotation.Nullable;
import java.util.*; import javax.annotation.*;
[ "java.util", "javax.annotation" ]
java.util; javax.annotation;
2,162,322
public ServiceFuture<TableGetResultsInner> createUpdateTableAsync(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters, final ServiceCallback<TableGetResultsInner> serviceCallback) { return ServiceFuture.fromResponse(createUpdateTableWithSer...
ServiceFuture<TableGetResultsInner> function(String resourceGroupName, String accountName, String tableName, TableCreateUpdateParameters createUpdateTableParameters, final ServiceCallback<TableGetResultsInner> serviceCallback) { return ServiceFuture.fromResponse(createUpdateTableWithServiceResponseAsync(resourceGroupNa...
/** * Create or update an Azure Cosmos DB Table. * * @param resourceGroupName Name of an Azure resource group. * @param accountName Cosmos DB database account name. * @param tableName Cosmos DB table name. * @param createUpdateTableParameters The parameters to provide for the current Table...
Create or update an Azure Cosmos DB Table
createUpdateTableAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/TableResourcesInner.java", "license": "mit", "size": 56548 }
[ "com.microsoft.azure.management.cosmosdb.v2020_03_01.TableCreateUpdateParameters", "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.azure.management.cosmosdb.v2020_03_01.TableCreateUpdateParameters; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.azure.management.cosmosdb.v2020_03_01.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
957,786
public int centerDialog() { UIUtilities.centerAndShow(this); return option; }
int function() { UIUtilities.centerAndShow(this); return option; }
/** * Shows the chooser dialog. * * @return The option selected. */
Shows the chooser dialog
centerDialog
{ "repo_name": "dpwrussell/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/chooser/ImportDialog.java", "license": "gpl-2.0", "size": 52010 }
[ "org.openmicroscopy.shoola.util.ui.UIUtilities" ]
import org.openmicroscopy.shoola.util.ui.UIUtilities;
import org.openmicroscopy.shoola.util.ui.*;
[ "org.openmicroscopy.shoola" ]
org.openmicroscopy.shoola;
887,857
IndicesShardStoreRequestBuilder prepareShardStores(String... indices);
IndicesShardStoreRequestBuilder prepareShardStores(String... indices);
/** * The shard stores info of one or more indices. */
The shard stores info of one or more indices
prepareShardStores
{ "repo_name": "qwerty4030/elasticsearch", "path": "server/src/main/java/org/elasticsearch/client/IndicesAdminClient.java", "license": "apache-2.0", "size": 31749 }
[ "org.elasticsearch.action.admin.indices.shards.IndicesShardStoreRequestBuilder" ]
import org.elasticsearch.action.admin.indices.shards.IndicesShardStoreRequestBuilder;
import org.elasticsearch.action.admin.indices.shards.*;
[ "org.elasticsearch.action" ]
org.elasticsearch.action;
2,787,179
return proposedStart; } /** * Legt den Wert der proposedStart-Eigenschaft fest. * * @param value * allowed object is * {@link XMLGregorianCalendar }
return proposedStart; } /** * Legt den Wert der proposedStart-Eigenschaft fest. * * @param value * allowed object is * {@link XMLGregorianCalendar }
/** * Ruft den Wert der proposedStart-Eigenschaft ab. * * @return * possible object is * {@link XMLGregorianCalendar } * */
Ruft den Wert der proposedStart-Eigenschaft ab
getProposedStart
{ "repo_name": "dumischbaenger/ews-example", "path": "src/main/java/de/dumischbaenger/ws/MeetingRegistrationResponseObjectType.java", "license": "gpl-3.0", "size": 2856 }
[ "javax.xml.datatype.XMLGregorianCalendar" ]
import javax.xml.datatype.XMLGregorianCalendar;
import javax.xml.datatype.*;
[ "javax.xml" ]
javax.xml;
1,894,256
private List<Pair<PhysicalOperator, PhysicalPlan>> findAlgebraicOps(List<PhysicalPlan> feInners) throws VisitorException { ArrayList<Pair<PhysicalOperator, PhysicalPlan>> algebraicOps = new ArrayList<Pair<PhysicalOperator, PhysicalPlan>>(); //check each foreach inner plan for(Physi...
List<Pair<PhysicalOperator, PhysicalPlan>> function(List<PhysicalPlan> feInners) throws VisitorException { ArrayList<Pair<PhysicalOperator, PhysicalPlan>> algebraicOps = new ArrayList<Pair<PhysicalOperator, PhysicalPlan>>(); for(PhysicalPlan pplan : feInners){ AlgebraicPlanChecker algChecker = new AlgebraicPlanChecker(...
/** * find algebraic operators and also check if the foreach statement * is suitable for combiner use * @param feInners inner plans of foreach * @return null if plan is not combinable, otherwise list of combinable operators * @throws VisitorException */
find algebraic operators and also check if the foreach statement is suitable for combiner use
findAlgebraicOps
{ "repo_name": "hxquangnhat/PIG-ROLLUP-MRCUBE", "path": "src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/CombinerOptimizer.java", "license": "apache-2.0", "size": 53537 }
[ "java.util.ArrayList", "java.util.List", "org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator", "org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ConstantExpression", "org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.POPr...
import java.util.ArrayList; import java.util.List; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.expressionOperators.ConstantExpression; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.expression...
import java.util.*; import org.apache.pig.backend.hadoop.executionengine.*; import org.apache.pig.impl.plan.*; import org.apache.pig.impl.util.*;
[ "java.util", "org.apache.pig" ]
java.util; org.apache.pig;
496,705
public Map<String, Summoner> getSummonerById(Long... summonerIds) { if (!passLengthConstraint(summonerIds, 40)) { throw new UltiException(UltiException.Type.INVALID_PARAMETERS); } Reader json = api.query(versions.get("summoner") + "/summoner/" + prepare(summonerIds)); Ty...
Map<String, Summoner> function(Long... summonerIds) { if (!passLengthConstraint(summonerIds, 40)) { throw new UltiException(UltiException.Type.INVALID_PARAMETERS); } Reader json = api.query(versions.get(STR) + STR + prepare(summonerIds)); Type type = new TypeToken<Map<String, Summoner>>() {}.getType(); return gson.from...
/** * Queries for summoners by their summoner IDs. A maximum of 40 summoner IDs can be provided. * * @param summonerIds the IDs of the summoners to lookup * @return a {@link java.util.Map} with keys being the summoner IDs as a {@link String} and values being * a {@link dto.summoner....
Queries for summoners by their summoner IDs. A maximum of 40 summoner IDs can be provided
getSummonerById
{ "repo_name": "a64adam/ulti", "path": "src/main/java/api/Ulti.java", "license": "mit", "size": 36883 }
[ "com.google.gson.reflect.TypeToken", "java.io.Reader", "java.lang.reflect.Type", "java.util.Map" ]
import com.google.gson.reflect.TypeToken; import java.io.Reader; import java.lang.reflect.Type; import java.util.Map;
import com.google.gson.reflect.*; import java.io.*; import java.lang.reflect.*; import java.util.*;
[ "com.google.gson", "java.io", "java.lang", "java.util" ]
com.google.gson; java.io; java.lang; java.util;
715,306
//----------------------------------------------------------------------- public ZoneId getZone() { return zone; }
ZoneId function() { return zone; }
/** * Gets the overriding zone to be used during formatting. * <p> * This returns the override zone, used to convert instants. * By default, a formatter has no override zone, returning null. * See {@link #withZone(ZoneId)} for more details on overriding. * * @return the override zone ...
Gets the overriding zone to be used during formatting. This returns the override zone, used to convert instants. By default, a formatter has no override zone, returning null. See <code>#withZone(ZoneId)</code> for more details on overriding
getZone
{ "repo_name": "YouDiSN/OpenJDK-Research", "path": "jdk9/jdk/src/java.base/share/classes/java/time/format/DateTimeFormatter.java", "license": "gpl-2.0", "size": 103127 }
[ "java.time.ZoneId" ]
import java.time.ZoneId;
import java.time.*;
[ "java.time" ]
java.time;
1,010,664
public static void loadItemsType(InputStream is) { try { propTypes.load(is); logger.info("ok"); is.close(); } catch (IOException e) { e.printStackTrace(); logger.error(e.getMessage()); } }
static void function(InputStream is) { try { propTypes.load(is); logger.info("ok"); is.close(); } catch (IOException e) { e.printStackTrace(); logger.error(e.getMessage()); } }
/** * Load commands items type * * @param InputStream * is */
Load commands items type
loadItemsType
{ "repo_name": "sedstef/openhab", "path": "bundles/binding/org.openhab.binding.souliss/src/main/java/org/openhab/binding/souliss/internal/network/typicals/StateTraslator.java", "license": "epl-1.0", "size": 5295 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,795,987
@Override public String[] getOptions() { ArrayList<String> options = new ArrayList<String>(); options.add("-F"); options.add("" + getLossFunction().getSelectedTag().getID()); options.add("-L"); options.add("" + getLearningRate()); options.add("-R"); options.add("" + getLambda()...
String[] function() { ArrayList<String> options = new ArrayList<String>(); options.add("-F"); options.add(STR-LSTRSTR-RSTRSTR-ESTRSTR-CSTRSTR-NSTR-M"); } Collections.addAll(options, super.getOptions()); return options.toArray(new String[1]); }
/** * Gets the current settings of the classifier. * * @return an array of strings suitable for passing to setOptions */
Gets the current settings of the classifier
getOptions
{ "repo_name": "runqingz/umple", "path": "Umplificator/UmplifiedProjects/weka-umplified-0/src/main/java/weka/classifiers/functions/SGD.java", "license": "mit", "size": 30390 }
[ "java.util.ArrayList", "java.util.Collections" ]
import java.util.ArrayList; import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
2,253,472
private Object decodeResult(IoBuffer data) { log.debug("decodeResult - data limit: {}", (data != null ? data.limit() : 0)); processHeaders(data); Input input = new Input(data); String target = null; byte b = data.get(); //look for SOH if (b == 0) { ...
Object function(IoBuffer data) { log.debug(STR, (data != null ? data.limit() : 0)); processHeaders(data); Input input = new Input(data); String target = null; byte b = data.get(); if (b == 0) { log.debug(STR, b); log.debug(STR, data.get()); } else if (b == 1) { log.debug(STR, b); } int targetUriLength = data.getShort()...
/** * Decode response received from remoting server. * * @param data * Result data to decode * @return Object deserialized from byte buffer data */
Decode response received from remoting server
decodeResult
{ "repo_name": "solomax/red5-client", "path": "src/main/java/org/red5/client/net/remoting/DSRemotingClient.java", "license": "apache-2.0", "size": 16902 }
[ "org.apache.mina.core.buffer.IoBuffer", "org.red5.io.amf3.Input", "org.red5.io.object.Deserializer" ]
import org.apache.mina.core.buffer.IoBuffer; import org.red5.io.amf3.Input; import org.red5.io.object.Deserializer;
import org.apache.mina.core.buffer.*; import org.red5.io.amf3.*; import org.red5.io.object.*;
[ "org.apache.mina", "org.red5.io" ]
org.apache.mina; org.red5.io;
2,816,132
@Test public void testGetValue_5() throws Exception { JsonResponse fixture = new JsonResponse(); fixture.setResponseBody(new byte[] {}); String key = ""; String result = fixture.getValue(key); // An unexpected exception was thrown in user code while executin...
void function() throws Exception { JsonResponse fixture = new JsonResponse(); fixture.setResponseBody(new byte[] {}); String key = ""; String result = fixture.getValue(key); assertNotNull(result); }
/** * Run the String getValue(String) method test. * * @throws Exception * * @generatedBy CodePro at 12/16/14 3:57 PM */
Run the String getValue(String) method test
testGetValue_5
{ "repo_name": "intuit/Tank", "path": "agent/agent_common/src/test/java/com/intuit/tank/http/json/JsonResponseTest.java", "license": "epl-1.0", "size": 8858 }
[ "org.junit.jupiter.api.Assertions" ]
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.*;
[ "org.junit.jupiter" ]
org.junit.jupiter;
2,443,553
public void print(PrintStream out) { print(out, true); }
void function(PrintStream out) { print(out, true); }
/** * Print Explanation. */
Print Explanation
print
{ "repo_name": "MrSampson/javabayes", "path": "src/edu/cmu/cs/javabayes/bayesianinferences/Explanation.java", "license": "gpl-2.0", "size": 5747 }
[ "java.io.PrintStream" ]
import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
2,672,776
public Element selectElement(String xpath) { return selectElement(dom, xpath); }
Element function(String xpath) { return selectElement(dom, xpath); }
/** * Executes the passed XPath against the POM and returns the single element * that it selects, <code>null</code> if it doesn't select anything. Path * components must be prefixed with "mvn" to use the Maven namespace. */
Executes the passed XPath against the POM and returns the single element that it selects, <code>null</code> if it doesn't select anything. Path components must be prefixed with "mvn" to use the Maven namespace
selectElement
{ "repo_name": "kdgregory/pomutil", "path": "lib-common/src/main/java/com/kdgregory/pomutil/util/PomWrapper.java", "license": "apache-2.0", "size": 12987 }
[ "org.w3c.dom.Element" ]
import org.w3c.dom.Element;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,636,495
@Tailable Flowable<Person> findWithTailableCursorBy();
Flowable<Person> findWithTailableCursorBy();
/** * Use a tailable cursor to emit a stream of entities as new entities are written to the capped collection. * * @return */
Use a tailable cursor to emit a stream of entities as new entities are written to the capped collection
findWithTailableCursorBy
{ "repo_name": "spring-projects/spring-data-examples", "path": "mongodb/reactive/src/main/java/example/springdata/mongodb/people/RxJava2PersonRepository.java", "license": "apache-2.0", "size": 2308 }
[ "io.reactivex.Flowable" ]
import io.reactivex.Flowable;
import io.reactivex.*;
[ "io.reactivex" ]
io.reactivex;
1,077,439
public ServiceFuture<VirtualNetworkTapInner> updateTagsAsync(String resourceGroupName, String tapName, final ServiceCallback<VirtualNetworkTapInner> serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, tapName), serviceCallback); }
ServiceFuture<VirtualNetworkTapInner> function(String resourceGroupName, String tapName, final ServiceCallback<VirtualNetworkTapInner> serviceCallback) { return ServiceFuture.fromResponse(updateTagsWithServiceResponseAsync(resourceGroupName, tapName), serviceCallback); }
/** * Updates an VirtualNetworkTap tags. * * @param resourceGroupName The name of the resource group. * @param tapName The name of the tap. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters ...
Updates an VirtualNetworkTap tags
updateTagsAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/network/v2020_03_01/implementation/VirtualNetworkTapsInner.java", "license": "mit", "size": 64262 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
983,021
public ServiceFuture<Boolean> checkNameExistsAsync(String accountName, final ServiceCallback<Boolean> serviceCallback) { return ServiceFuture.fromResponse(checkNameExistsWithServiceResponseAsync(accountName), serviceCallback); }
ServiceFuture<Boolean> function(String accountName, final ServiceCallback<Boolean> serviceCallback) { return ServiceFuture.fromResponse(checkNameExistsWithServiceResponseAsync(accountName), serviceCallback); }
/** * Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters. * * @param accountName Cosmos DB database account name. * @param serviceCallback the async ServiceCallb...
Checks that the Azure Cosmos DB account name already exists. A valid account name may contain only lowercase letters, numbers, and the '-' character, and must be between 3 and 50 characters
checkNameExistsAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_04_01/implementation/DatabaseAccountsInner.java", "license": "mit", "size": 153860 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
407,410
private Rectangle getMaskTiles() { Rectangle bt = maskTiles; if (bt == null) { synchronized (this) { bt = maskTiles; if (bt == null) { final RenderedImage source = getSource(); final Rectangle bp = clip.getBounds(); ...
Rectangle function() { Rectangle bt = maskTiles; if (bt == null) { synchronized (this) { bt = maskTiles; if (bt == null) { final RenderedImage source = getSource(); final Rectangle bp = clip.getBounds(); ImageUtilities.clipBounds(source, bp); bt = new Rectangle(); if (!bp.isEmpty()) { final int xmax = ImageUtilities.pi...
/** * Returns the bounds of the {@linkplain #clip} in tile coordinates. * It provides a fast way to determine if a tile intersects the mask. */
Returns the bounds of the #clip in tile coordinates. It provides a fast way to determine if a tile intersects the mask
getMaskTiles
{ "repo_name": "apache/sis", "path": "core/sis-feature/src/main/java/org/apache/sis/image/MaskedImage.java", "license": "apache-2.0", "size": 22464 }
[ "java.awt.Rectangle", "java.awt.image.RenderedImage", "java.nio.LongBuffer", "org.apache.sis.internal.coverage.j2d.ImageUtilities" ]
import java.awt.Rectangle; import java.awt.image.RenderedImage; import java.nio.LongBuffer; import org.apache.sis.internal.coverage.j2d.ImageUtilities;
import java.awt.*; import java.awt.image.*; import java.nio.*; import org.apache.sis.internal.coverage.j2d.*;
[ "java.awt", "java.nio", "org.apache.sis" ]
java.awt; java.nio; org.apache.sis;
2,331,004
@Test(groups = {"1m"}) public void testAllDifferentDecomp() { for (int i = 1; i < 12; i++) { // System.out.printf("i : %d\n", i); Random r = new Random(i); for (double d = 1.0; d <= 1.0; d += 0.125) { int[][] values = DomainBuilder.buildFullDomains(i,...
@Test(groups = {"1m"}) void function() { for (int i = 1; i < 12; i++) { Random r = new Random(i); for (double d = 1.0; d <= 1.0; d += 0.125) { int[][] values = DomainBuilder.buildFullDomains(i, 1, i, r, d, false); Solver s1 = model1(i, values); s1.findAllSolutions(); Solver s2 = model2(i, values); s2.findAllSolutions()...
/** * "Decompositions of All Different, Global Cardinality and Related Constraints" * C. Bessiere, G. Katsirelos, N. Narodytska, C.G. Quimper, T. Walsh. * Proceedings IJCAI'09, Pasadena CA, pages 419-424. */
"Decompositions of All Different, Global Cardinality and Related Constraints" C. Bessiere, G. Katsirelos, N. Narodytska, C.G. Quimper, T. Walsh. Proceedings IJCAI'09, Pasadena CA, pages 419-424
testAllDifferentDecomp
{ "repo_name": "cp-profiler/choco3", "path": "choco-solver/src/test/java/org/chocosolver/choco/ReifiedTest.java", "license": "bsd-3-clause", "size": 18253 }
[ "java.util.Random", "org.chocosolver.choco.checker.DomainBuilder", "org.chocosolver.solver.Solver", "org.testng.Assert", "org.testng.annotations.Test" ]
import java.util.Random; import org.chocosolver.choco.checker.DomainBuilder; import org.chocosolver.solver.Solver; import org.testng.Assert; import org.testng.annotations.Test;
import java.util.*; import org.chocosolver.choco.checker.*; import org.chocosolver.solver.*; import org.testng.*; import org.testng.annotations.*;
[ "java.util", "org.chocosolver.choco", "org.chocosolver.solver", "org.testng", "org.testng.annotations" ]
java.util; org.chocosolver.choco; org.chocosolver.solver; org.testng; org.testng.annotations;
2,344,315
public ChannelBuffer formatFilterConfigV1( final Map<String, Map<String, String>> config) { return serializeJSON(config); }
ChannelBuffer function( final Map<String, Map<String, String>> config) { return serializeJSON(config); }
/** * Format the loaded filter configurations * @param config The filters to serialize * @return A ChannelBuffer object to pass on to the caller * @throws JSONException if serialization failed */
Format the loaded filter configurations
formatFilterConfigV1
{ "repo_name": "OpenTSDB/opentsdb", "path": "src/tsd/HttpJsonSerializer.java", "license": "lgpl-2.1", "size": 44736 }
[ "java.util.Map", "org.jboss.netty.buffer.ChannelBuffer" ]
import java.util.Map; import org.jboss.netty.buffer.ChannelBuffer;
import java.util.*; import org.jboss.netty.buffer.*;
[ "java.util", "org.jboss.netty" ]
java.util; org.jboss.netty;
1,765,717
public static String getBlockName(String completeBlockName) { return completeBlockName .substring(0, completeBlockName.lastIndexOf(CarbonCommonConstants.HYPHEN)); }
static String function(String completeBlockName) { return completeBlockName .substring(0, completeBlockName.lastIndexOf(CarbonCommonConstants.HYPHEN)); }
/** * return only block name from completeBlockName * * @param completeBlockName * @return */
return only block name from completeBlockName
getBlockName
{ "repo_name": "jatin9896/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/core/mutate/CarbonUpdateUtil.java", "license": "apache-2.0", "size": 32205 }
[ "org.apache.carbondata.core.constants.CarbonCommonConstants" ]
import org.apache.carbondata.core.constants.CarbonCommonConstants;
import org.apache.carbondata.core.constants.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
1,047,459
public Builder setPerContainerRamInBytes(long perContainerRam) { this.ram = ByteAmount.fromBytes(perContainerRam); // Different packing algorithm might use different configs. Set all of them here. config.setContainerRamRequested(ram); config.setContainerMaxRamHint(ram); return this; ...
Builder function(long perContainerRam) { this.ram = ByteAmount.fromBytes(perContainerRam); config.setContainerRamRequested(ram); config.setContainerMaxRamHint(ram); return this; }
/** * Sets the per-container (per-instance) RAM to be used by this topology as a number of bytes * @param perContainerRam Per-container (per-instance) RAM expressed as a Long. */
Sets the per-container (per-instance) RAM to be used by this topology as a number of bytes
setPerContainerRamInBytes
{ "repo_name": "twitter/heron", "path": "heron/api/src/java/org/apache/heron/streamlet/Config.java", "license": "apache-2.0", "size": 9901 }
[ "org.apache.heron.common.basics.ByteAmount" ]
import org.apache.heron.common.basics.ByteAmount;
import org.apache.heron.common.basics.*;
[ "org.apache.heron" ]
org.apache.heron;
939,329
public static void assertAliasesExist(AliasesExistResponse aliasesExistResponse) { assertTrue("Aliases should exist", aliasesExistResponse.exists()); }
static void function(AliasesExistResponse aliasesExistResponse) { assertTrue(STR, aliasesExistResponse.exists()); }
/** * Assert that aliases exist */
Assert that aliases exist
assertAliasesExist
{ "repo_name": "palecur/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/test/hamcrest/ElasticsearchAssertions.java", "license": "apache-2.0", "size": 34262 }
[ "org.elasticsearch.action.admin.indices.alias.exists.AliasesExistResponse", "org.junit.Assert" ]
import org.elasticsearch.action.admin.indices.alias.exists.AliasesExistResponse; import org.junit.Assert;
import org.elasticsearch.action.admin.indices.alias.exists.*; import org.junit.*;
[ "org.elasticsearch.action", "org.junit" ]
org.elasticsearch.action; org.junit;
2,357,376
public Set<String> getKeys() { return context.keySet(); }
Set<String> function() { return context.keySet(); }
/** * Gets all the keys stored in the exception * * @return the set of keys. */
Gets all the keys stored in the exception
getKeys
{ "repo_name": "venkateshamurthy/java-quantiles", "path": "src/main/java/org/apache/commons/math3/exception/util/ExceptionContext.java", "license": "apache-2.0", "size": 10569 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
621,162
private void maybeIndexResource(String relPath, URL delegate) { if (!index.containsKey(relPath)) { index.put(relPath, delegate); if (relPath.endsWith(File.separator)) { maybeIndexResource(relPath.substring(0, relPath.length() - File.separator.length()), delegate); ...
void function(String relPath, URL delegate) { if (!index.containsKey(relPath)) { index.put(relPath, delegate); if (relPath.endsWith(File.separator)) { maybeIndexResource(relPath.substring(0, relPath.length() - File.separator.length()), delegate); } } }
/** * Callers may request the directory itself as a resource, and may * do so with or without trailing slashes. We do this in a while-loop * in case the classpath element has multiple superfluous trailing slashes. * @param relPath relative path * @param delegate value to insert */
Callers may request the directory itself as a resource, and may do so with or without trailing slashes. We do this in a while-loop in case the classpath element has multiple superfluous trailing slashes
maybeIndexResource
{ "repo_name": "rpau/javalang-compiler", "path": "src/main/java/org/walkmod/javalang/compiler/types/IndexedURLClassPath.java", "license": "lgpl-3.0", "size": 5381 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,388,604
public void recordTypeIdentifier(@Nonnull final String typeIdentifier) { this.typeIdentifiers.add(typeIdentifier); }
void function(@Nonnull final String typeIdentifier) { this.typeIdentifiers.add(typeIdentifier); }
/** * Record the type identifier in this document. * @param typeIdentifier type identifier. */
Record the type identifier in this document
recordTypeIdentifier
{ "repo_name": "erwinmombay/amphtml", "path": "validator/java/src/main/java/dev/amp/validator/Context.java", "license": "apache-2.0", "size": 20310 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
1,506,276
public void updateEntity(Occupation occupation) { occupationDAO.update(occupation); }
void function(Occupation occupation) { occupationDAO.update(occupation); }
/** * Update occupation. */
Update occupation
updateEntity
{ "repo_name": "autentia/TNTConcept", "path": "tntconcept-core/src/main/java/com/autentia/tnt/manager/activity/OccupationManager.java", "license": "gpl-3.0", "size": 2987 }
[ "com.autentia.tnt.businessobject.Occupation" ]
import com.autentia.tnt.businessobject.Occupation;
import com.autentia.tnt.businessobject.*;
[ "com.autentia.tnt" ]
com.autentia.tnt;
1,247,090