method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public void setDateJoined(Date _DateJoined) { this._DateJoined = _DateJoined; }
public void setDateJoined(Date _DateJoined) { this._DateJoined = _DateJoined; }
/** * The getter method for DateJoined */
The getter method for DateJoined
getDateJoined
{ "repo_name": "FavPiggy/EasterEgg", "path": "src/main/java/edu/uw/tacoma/piggy/model/entity/MemberEntity.java", "license": "mit", "size": 3504 }
[ "java.sql.Date" ]
import java.sql.Date;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,166,989
public ContributionContextTypeRegistry getContextTypeRegistry() { if (fRegistry == null) { // create and configure the contexts available in the template editor fRegistry= new ContributionContextTypeRegistry(); fRegistry.addContextType("xpath"); //fRegistry.addContextType("jscript"); } return fReg...
ContributionContextTypeRegistry function() { if (fRegistry == null) { fRegistry= new ContributionContextTypeRegistry(); fRegistry.addContextType("xpath"); } return fRegistry; }
/** * Returns this plug-in's context type registry. * * @return the context type registry for this plug-in instance */
Returns this plug-in's context type registry
getContextTypeRegistry
{ "repo_name": "Drifftr/devstudio-tooling-bps", "path": "plugins/org.eclipse.bpel.ui.noEmbeddedEditors/src/org/eclipse/bpel/ui/editors/xpath/templates/XPathEditorTemplateAccess.java", "license": "apache-2.0", "size": 2168 }
[ "org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry" ]
import org.eclipse.ui.editors.text.templates.ContributionContextTypeRegistry;
import org.eclipse.ui.editors.text.templates.*;
[ "org.eclipse.ui" ]
org.eclipse.ui;
1,464,628
@Override public void notifyChanged(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
void function(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> <!-- * end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "dresden-ocl/dresdenocl", "path": "plugins/org.dresdenocl.tracer/src/org/dresdenocl/tracer/tracermodel/provider/TracerRootItemProvider.java", "license": "lgpl-3.0", "size": 4249 }
[ "org.eclipse.emf.common.notify.Notification" ]
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
260,608
@Test public void reportMessageTest42() throws PcepParseException, PcepOutOfBoundMessageException { byte[] reportMsg = new byte[] {0x20, 0x0a, 0x00, (byte) 0xE8, 0x21, 0x10, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, //SRP object 0x20, 0x10, 0x00, 0x10...
void function() throws PcepParseException, PcepOutOfBoundMessageException { byte[] reportMsg = new byte[] {0x20, 0x0a, 0x00, (byte) 0xE8, 0x21, 0x10, 0x00, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x20, 0x10, 0x00, 0x10, 0x00, 0x00, 0x10, 0x03, 0x00, 0x11, 0x00, 0x02, 0x54, 0x31, 0x00, 0x00, 0x07, 0x10, 0x...
/** * This test case checks for SRP Object,LSP Object(symbolic path tlv),ERO Object,LSPA Object,BandWidth Object, * Metric-list SRP Object,LSP Object(symbolic path tlv),ERO Object,LSPA Object,BandWidth Object,Metric-list, * RRO Object * in PcRpt message. */
This test case checks for SRP Object,LSP Object(symbolic path tlv),ERO Object,LSPA Object,BandWidth Object, Metric-list SRP Object,LSP Object(symbolic path tlv),ERO Object,LSPA Object,BandWidth Object,Metric-list, RRO Object in PcRpt message
reportMessageTest42
{ "repo_name": "sonu283304/onos", "path": "protocols/pcep/pcepio/src/test/java/org/onosproject/pcepio/protocol/PcepReportMsgExtTest.java", "license": "apache-2.0", "size": 10852 }
[ "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers", "org.hamcrest.core.Is", "org.jboss.netty.buffer.ChannelBuffer", "org.jboss.netty.buffer.ChannelBuffers", "org.onosproject.pcepio.exceptions.PcepOutOfBoundMessageException", "org.onosproject.pcepio.exceptions.PcepParseException" ]
import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.hamcrest.core.Is; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.onosproject.pcepio.exceptions.PcepOutOfBoundMessageException; import org.onosproject.pcepio.exceptions.PcepParseException;
import org.hamcrest.*; import org.hamcrest.core.*; import org.jboss.netty.buffer.*; import org.onosproject.pcepio.exceptions.*;
[ "org.hamcrest", "org.hamcrest.core", "org.jboss.netty", "org.onosproject.pcepio" ]
org.hamcrest; org.hamcrest.core; org.jboss.netty; org.onosproject.pcepio;
260,150
public static GridNearTxLocal checkActive(GridNearTxLocal tx) throws IgniteTxAlreadyCompletedCheckedException { if (tx != null && tx.state() != TransactionState.ACTIVE) throw new IgniteTxAlreadyCompletedCheckedException("Transaction is already completed."); return tx; }
static GridNearTxLocal function(GridNearTxLocal tx) throws IgniteTxAlreadyCompletedCheckedException { if (tx != null && tx.state() != TransactionState.ACTIVE) throw new IgniteTxAlreadyCompletedCheckedException(STR); return tx; }
/** * Checks transaction state. * @param tx Transaction. * @return Checked transaction. */
Checks transaction state
checkActive
{ "repo_name": "SomeFire/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/mvcc/MvccUtils.java", "license": "apache-2.0", "size": 36919 }
[ "org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal", "org.apache.ignite.internal.transactions.IgniteTxAlreadyCompletedCheckedException", "org.apache.ignite.transactions.TransactionState" ]
import org.apache.ignite.internal.processors.cache.distributed.near.GridNearTxLocal; import org.apache.ignite.internal.transactions.IgniteTxAlreadyCompletedCheckedException; import org.apache.ignite.transactions.TransactionState;
import org.apache.ignite.internal.processors.cache.distributed.near.*; import org.apache.ignite.internal.transactions.*; import org.apache.ignite.transactions.*;
[ "org.apache.ignite" ]
org.apache.ignite;
405,862
public void createSubscription(String id,SubscriptionDefinition def,SITransaction tran) throws SIMPNullParameterException, SINotAuthorizedException, SINotPossibleInCurrentConfigurationException, SIMPDestinationAlreadyExistsException, SIIncorrectCallException, SIDestinationLockedException, ...
void function(String id,SubscriptionDefinition def,SITransaction tran) throws SIMPNullParameterException, SINotAuthorizedException, SINotPossibleInCurrentConfigurationException, SIMPDestinationAlreadyExistsException, SIIncorrectCallException, SIDestinationLockedException, SIDiscriminatorSyntaxException, SISelectorSynta...
/** * <p>Creates a durable subscription.</p> * * @param id The subscription id * @param def The subscription definition * @param tran The transaction context * @return void * @throws SIDestinationAlreadyExistsException * @throws SINotPossibleInCurrentConfigurationException * @throws SIInco...
Creates a durable subscription
createSubscription
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/processor/Administrator.java", "license": "epl-1.0", "size": 13899 }
[ "com.ibm.websphere.sib.exception.SIException", "com.ibm.websphere.sib.exception.SIIncorrectCallException", "com.ibm.websphere.sib.exception.SINotPossibleInCurrentConfigurationException", "com.ibm.websphere.sib.exception.SIResourceException", "com.ibm.ws.sib.processor.exceptions.SIMPDestinationAlreadyExistsE...
import com.ibm.websphere.sib.exception.SIException; import com.ibm.websphere.sib.exception.SIIncorrectCallException; import com.ibm.websphere.sib.exception.SINotPossibleInCurrentConfigurationException; import com.ibm.websphere.sib.exception.SIResourceException; import com.ibm.ws.sib.processor.exceptions.SIMPDestination...
import com.ibm.websphere.sib.exception.*; import com.ibm.ws.sib.processor.exceptions.*; import com.ibm.wsspi.sib.core.*; import com.ibm.wsspi.sib.core.exception.*;
[ "com.ibm.websphere", "com.ibm.ws", "com.ibm.wsspi" ]
com.ibm.websphere; com.ibm.ws; com.ibm.wsspi;
1,732,665
public @Nonnull BlockState getNewState() { return this.newState; }
@Nonnull BlockState function() { return this.newState; }
/** * Gets the state of the block after being damaged. * * @return Old block state */
Gets the state of the block after being damaged
getNewState
{ "repo_name": "cswhite2000/ProjectAres", "path": "PGM/src/main/java/tc/oc/pgm/destroyable/DestroyableHealthChange.java", "license": "agpl-3.0", "size": 2138 }
[ "javax.annotation.Nonnull", "org.bukkit.block.BlockState" ]
import javax.annotation.Nonnull; import org.bukkit.block.BlockState;
import javax.annotation.*; import org.bukkit.block.*;
[ "javax.annotation", "org.bukkit.block" ]
javax.annotation; org.bukkit.block;
1,672,026
public boolean checkFileSystem() { if (this.fsOk && this.fs != null) { try { FSUtils.checkFileSystemAvailable(this.fs); } catch (IOException e) { abort("File System not available", e); this.fsOk = false; } } return this.fsOk; }
boolean function() { if (this.fsOk && this.fs != null) { try { FSUtils.checkFileSystemAvailable(this.fs); } catch (IOException e) { abort(STR, e); this.fsOk = false; } } return this.fsOk; }
/** * Checks to see if the file system is still accessible. If not, sets * abortRequested and stopRequested * * @return false if file system is not available */
Checks to see if the file system is still accessible. If not, sets abortRequested and stopRequested
checkFileSystem
{ "repo_name": "mapr/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java", "license": "apache-2.0", "size": 180354 }
[ "java.io.IOException", "org.apache.hadoop.hbase.util.FSUtils" ]
import java.io.IOException; import org.apache.hadoop.hbase.util.FSUtils;
import java.io.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,158,109
private static boolean expenseNeedsAdjustment(BigDecimal value, BigDecimal target) { return value.compareTo(target) != 0; }
static boolean function(BigDecimal value, BigDecimal target) { return value.compareTo(target) != 0; }
/** * Is the expense already in the target value? * * @param value the value of the expense * @param target the target expense value * @return true if the expense needs adjustment */
Is the expense already in the target value
expenseNeedsAdjustment
{ "repo_name": "hugcruz/AlgoDesign", "path": "src/main/java/com/hugomfcruz/algodesign/chapter1/TheTrip.java", "license": "mit", "size": 3773 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
1,580,272
@Override public void setExpression(ExpressionDefinition expression) { // override to include javadoc what the expression is used for super.setExpression(expression); }
void function(ExpressionDefinition expression) { super.setExpression(expression); }
/** * Expression to configure the maximum number of messages to throttle per request */
Expression to configure the maximum number of messages to throttle per request
setExpression
{ "repo_name": "rparree/camel", "path": "camel-core/src/main/java/org/apache/camel/model/ThrottleDefinition.java", "license": "apache-2.0", "size": 8968 }
[ "org.apache.camel.model.language.ExpressionDefinition" ]
import org.apache.camel.model.language.ExpressionDefinition;
import org.apache.camel.model.language.*;
[ "org.apache.camel" ]
org.apache.camel;
45,809
Map<User, List<Account>> getMap() { return new HashMap<User, List<Account>>(this.map); }
Map<User, List<Account>> getMap() { return new HashMap<User, List<Account>>(this.map); }
/** * Getter copy of map. * @return copy of map. */
Getter copy of map
getMap
{ "repo_name": "Alesandrus/aivanov", "path": "chapter_005_Collections_Lite/src/main/java/ru/job4j/test/Bank.java", "license": "apache-2.0", "size": 5893 }
[ "java.util.HashMap", "java.util.List", "java.util.Map" ]
import java.util.HashMap; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,837,708
public TrackerPayload getPayload() { TrackerPayload payload = new TrackerPayload(); payload.add(Parameter.EVENT, Constants.EVENT_PAGE_VIEW); payload.add(Parameter.PAGE_URL, this.pageUrl); payload.add(Parameter.PAGE_TITLE, this.pageTitle); payload.add(Parameter.PAGE_REFR, this...
TrackerPayload function() { TrackerPayload payload = new TrackerPayload(); payload.add(Parameter.EVENT, Constants.EVENT_PAGE_VIEW); payload.add(Parameter.PAGE_URL, this.pageUrl); payload.add(Parameter.PAGE_TITLE, this.pageTitle); payload.add(Parameter.PAGE_REFR, this.referrer); return putDefaultParams(payload); }
/** * Returns a TrackerPayload which can be stored into * the local database. * * @return the payload to be sent. */
Returns a TrackerPayload which can be stored into the local database
getPayload
{ "repo_name": "snowplow/snowplow-java-tracker", "path": "src/main/java/com/snowplowanalytics/snowplow/tracker/events/PageView.java", "license": "apache-2.0", "size": 3335 }
[ "com.snowplowanalytics.snowplow.tracker.constants.Constants", "com.snowplowanalytics.snowplow.tracker.constants.Parameter", "com.snowplowanalytics.snowplow.tracker.payload.TrackerPayload" ]
import com.snowplowanalytics.snowplow.tracker.constants.Constants; import com.snowplowanalytics.snowplow.tracker.constants.Parameter; import com.snowplowanalytics.snowplow.tracker.payload.TrackerPayload;
import com.snowplowanalytics.snowplow.tracker.constants.*; import com.snowplowanalytics.snowplow.tracker.payload.*;
[ "com.snowplowanalytics.snowplow" ]
com.snowplowanalytics.snowplow;
2,243,148
public void sendStartDecodingMessageParams(RilMessage rilMsg) { Message msg = obtainMessage(CMD_START); msg.obj = rilMsg; sendMessage(msg); }
void function(RilMessage rilMsg) { Message msg = obtainMessage(CMD_START); msg.obj = rilMsg; sendMessage(msg); }
/** * Start decoding the message parameters, * when complete MSG_ID_RIL_MSG_DECODED will be returned to caller. * * @param rilMsg */
Start decoding the message parameters, when complete MSG_ID_RIL_MSG_DECODED will be returned to caller
sendStartDecodingMessageParams
{ "repo_name": "mateor/PDroidHistory", "path": "frameworks/base/telephony/java/com/android/internal/telephony/gsm/stk/RilMessageDecoder.java", "license": "gpl-3.0", "size": 5996 }
[ "android.os.Message" ]
import android.os.Message;
import android.os.*;
[ "android.os" ]
android.os;
1,079,016
public Graphics2D getGraphGraphics() { // DEK (Federico Granata) 17-11-2003 return (Graphics2D) graph.getGraphics(); // end 17-11-2003 // return mainWindow.getGraphics(); }
Graphics2D function() { return (Graphics2D) graph.getGraphics(); }
/** * Returns this graph's graphics context, which lets you draw * on a component. Use this method get a <code>Graphics</code> object and * then invoke operations on that object to draw on the component. * @return this components graphics context */
Returns this graph's graphics context, which lets you draw on a component. Use this method get a <code>Graphics</code> object and then invoke operations on that object to draw on the component
getGraphGraphics
{ "repo_name": "chpatrick/jmt", "path": "src/jmt/gui/jmodel/controller/Mediator.java", "license": "gpl-2.0", "size": 120551 }
[ "java.awt.Graphics2D" ]
import java.awt.Graphics2D;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,120,328
public List<Point2DDataset> getStatisticLineData(){ List<Point2DDataset> allLines = new ArrayList<>(); //Resolution[] keys for resolutions Object[] resolutionKeys = results.keySet().toArray(); //Resolution Map for (int i = 0; i < results.si...
List<Point2DDataset> function(){ List<Point2DDataset> allLines = new ArrayList<>(); Object[] resolutionKeys = results.keySet().toArray(); for (int i = 0; i < results.size(); i++){ Resolution resolution = (Resolution) resolutionKeys[i]; Map<Integer, Statistics> map = results.get(resolution); Object[] sizeKeys = map.keyS...
/** * Forms a set of point 2D data for each resolution profiled * where the point is composed of the number of data points profiled * and the average profile time. * * Each point has the form (size, time). * * @return lines for each resolution composed of average profile time and ...
Forms a set of point 2D data for each resolution profiled where the point is composed of the number of data points profiled and the average profile time. Each point has the form (size, time)
getStatisticLineData
{ "repo_name": "richardfearn/graphene", "path": "graphene-profile/src/main/java/org/epics/graphene/profile/MultiLevelProfiler.java", "license": "gpl-2.0", "size": 18222 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "org.epics.graphene.Point2DDataset", "org.epics.graphene.Point2DDatasets", "org.epics.graphene.profile.utils.Resolution", "org.epics.graphene.profile.utils.Statistics" ]
import java.util.ArrayList; import java.util.List; import java.util.Map; import org.epics.graphene.Point2DDataset; import org.epics.graphene.Point2DDatasets; import org.epics.graphene.profile.utils.Resolution; import org.epics.graphene.profile.utils.Statistics;
import java.util.*; import org.epics.graphene.*; import org.epics.graphene.profile.utils.*;
[ "java.util", "org.epics.graphene" ]
java.util; org.epics.graphene;
433,538
void setDefaultValue(XExpression value);
void setDefaultValue(XExpression value);
/** * Sets the value of the '{@link org.eclipse.elk.core.meta.metaData.MdOption#getDefaultValue <em>Default Value</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Default Value</em>' containment reference. * @see #getDefaultValue() ...
Sets the value of the '<code>org.eclipse.elk.core.meta.metaData.MdOption#getDefaultValue Default Value</code>' containment reference.
setDefaultValue
{ "repo_name": "eNBeWe/elk", "path": "plugins/org.eclipse.elk.core.meta/src-gen/org/eclipse/elk/core/meta/metaData/MdOption.java", "license": "epl-1.0", "size": 14340 }
[ "org.eclipse.xtext.xbase.XExpression" ]
import org.eclipse.xtext.xbase.XExpression;
import org.eclipse.xtext.xbase.*;
[ "org.eclipse.xtext" ]
org.eclipse.xtext;
1,277,542
public static void validateEntityForSaving(EntityInterface entity) throws DynamicExtensionsApplicationException { validateName(entity.getName()); Collection<AbstractAttributeInterface> collection = entity.getAbstractAttributeCollection(); if (collection != null && !collection.isEmpty()) { Ite...
static void function(EntityInterface entity) throws DynamicExtensionsApplicationException { validateName(entity.getName()); Collection<AbstractAttributeInterface> collection = entity.getAbstractAttributeCollection(); if (collection != null && !collection.isEmpty()) { Iterator iterator = collection.iterator(); while (it...
/** * validate the entity for * 1. Name - should not contain any special characters, should not be empty,null * 2. Description - should be less than 1000 characters. * * @param entity * @throws DynamicExtensionsApplicationException */
validate the entity for 1. Name - should not contain any special characters, should not be empty,null 2. Description - should be less than 1000 characters
validateEntityForSaving
{ "repo_name": "NCIP/cab2b", "path": "software/dependencies/dynamicextensions/caB2B_2009_JUN_02/src/edu/common/dynamicextensions/util/DynamicExtensionsUtility.java", "license": "bsd-3-clause", "size": 35564 }
[ "edu.common.dynamicextensions.domaininterface.AbstractAttributeInterface", "edu.common.dynamicextensions.domaininterface.AbstractMetadataInterface", "edu.common.dynamicextensions.domaininterface.EntityInterface", "edu.common.dynamicextensions.entitymanager.EntityManagerExceptionConstantsInterface", "edu.com...
import edu.common.dynamicextensions.domaininterface.AbstractAttributeInterface; import edu.common.dynamicextensions.domaininterface.AbstractMetadataInterface; import edu.common.dynamicextensions.domaininterface.EntityInterface; import edu.common.dynamicextensions.entitymanager.EntityManagerExceptionConstantsInterface; ...
import edu.common.dynamicextensions.domaininterface.*; import edu.common.dynamicextensions.entitymanager.*; import edu.common.dynamicextensions.exception.*; import edu.common.dynamicextensions.util.global.*; import java.util.*;
[ "edu.common.dynamicextensions", "java.util" ]
edu.common.dynamicextensions; java.util;
542,782
@Test public void testGenerateConfig_withRealFileOutput() throws Exception { String outputPath = "/tmp/plugin-and-builtin-policies_headless.json"; command.setDeclarationFiles(getResourceAsPathList("/gateway/generateHeadless/plugin-and-builtin-policies.yml")); command.outputFiles.add(Pa...
void function() throws Exception { String outputPath = STR; command.setDeclarationFiles(getResourceAsPathList(STR)); command.outputFiles.add(Paths.get(outputPath)); command.applyDeclarations(); isTrue(Files.exists(Paths.get(outputPath))); String expectedFileOutput = new String(Files.readAllBytes(Paths.get(outputPath)))...
/** * Write a real file to ensure the format is correct. */
Write a real file to ensure the format is correct
testGenerateConfig_withRealFileOutput
{ "repo_name": "apiman/apiman-cli", "path": "src/test/java/io/apiman/cli/gatewayapi/command/generate/GenerateHeadlessTest.java", "license": "apache-2.0", "size": 7199 }
[ "java.nio.file.Files", "java.nio.file.Paths", "org.junit.Assert", "org.modelmapper.internal.util.Assert" ]
import java.nio.file.Files; import java.nio.file.Paths; import org.junit.Assert; import org.modelmapper.internal.util.Assert;
import java.nio.file.*; import org.junit.*; import org.modelmapper.internal.util.*;
[ "java.nio", "org.junit", "org.modelmapper.internal" ]
java.nio; org.junit; org.modelmapper.internal;
131,493
// BinaryByteGetter bytes = new ByteGetter.BinaryByteGetter(value); ByteBuffer buf = ByteBuffer.wrap(value); return parseGeometry(buf); }
ByteBuffer buf = ByteBuffer.wrap(value); return parseGeometry(buf); }
/** * Parse a binary encoded geometry. * * Is synchronized to protect offset counter. (Unfortunately, Java does not * have neither call by reference nor multiple return values.) */
Parse a binary encoded geometry. Is synchronized to protect offset counter. (Unfortunately, Java does not have neither call by reference nor multiple return values.)
parse
{ "repo_name": "iCarto/siga", "path": "libFMap/src/com/iver/cit/gvsig/fmap/drivers/WKBParser2.java", "license": "gpl-3.0", "size": 13087 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,301,489
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<AgentPoolUpgradeProfileInner>> getUpgradeProfileWithResponseAsync( String resourceGroupName, String resourceName, String agentPoolName, Context context) { if (this.client.getEndpoint() == null) { return Mono ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<AgentPoolUpgradeProfileInner>> function( String resourceGroupName, String resourceName, String agentPoolName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (this.client.getSubscriptionId...
/** * Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster * name. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param agentPoolName The name of the ag...
Gets the details of the upgrade profile for an agent pool with a specified resource group and managed cluster name
getUpgradeProfileWithResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java", "license": "mit", "size": 70622 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.containerservice.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
587,668
public static void updateToolTipTitle() { String name_ver = ApplicationGlobals.getNameAndVersion(), net_name = NetworkGlobals.getServerName(); if(icon != null && net_name != null ) // Update TrayIcon tooltip with the new server name. icon.setToolTip(name_ver + ":" + net_name); }
static void function() { String name_ver = ApplicationGlobals.getNameAndVersion(), net_name = NetworkGlobals.getServerName(); if(icon != null && net_name != null ) icon.setToolTip(name_ver + ":" + net_name); }
/** * Updates the TrayIcon tooltip with the new server name located at NetworkGlobals. */
Updates the TrayIcon tooltip with the new server name located at NetworkGlobals
updateToolTipTitle
{ "repo_name": "RikuKarasuma/couch-cast-server", "path": "src/net/eureka/couchcast/gui/tray/Tray.java", "license": "gpl-3.0", "size": 7687 }
[ "net.eureka.couchcast.foundation.init.ApplicationGlobals", "net.eureka.couchcast.foundation.init.NetworkGlobals" ]
import net.eureka.couchcast.foundation.init.ApplicationGlobals; import net.eureka.couchcast.foundation.init.NetworkGlobals;
import net.eureka.couchcast.foundation.init.*;
[ "net.eureka.couchcast" ]
net.eureka.couchcast;
2,627,354
@Test public void testT1RV5D5_T1LV1D3() { test_id = getTestId("T1RV5D5", "T1LV1D3", "230"); String src = selectTRVD("T1RV5D5"); String dest = selectTLVD("T1LV1D3"); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace()...
void function() { test_id = getTestId(STR, STR, "230"); String src = selectTRVD(STR); String dest = selectTLVD(STR); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace(); } catch (TokenStreamException e) { e.printStackTrace(); } assertTrue(Failure2, che...
/** * Perform the test for the given matrix column (T1RV5D5) and row (T1LV1D3). * */
Perform the test for the given matrix column (T1RV5D5) and row (T1LV1D3)
testT1RV5D5_T1LV1D3
{ "repo_name": "jason-rhodes/bridgepoint", "path": "src/org.xtuml.bp.als.oal.test/src/org/xtuml/bp/als/oal/test/SingleDimensionFixedArrayAssigmentTest_10_Generics.java", "license": "apache-2.0", "size": 160978 }
[ "org.xtuml.bp.ui.graphics.editor.GraphicalEditor" ]
import org.xtuml.bp.ui.graphics.editor.GraphicalEditor;
import org.xtuml.bp.ui.graphics.editor.*;
[ "org.xtuml.bp" ]
org.xtuml.bp;
1,761,818
@Override protected Collection<ArtifactResultError> getCollection() throws JspException { return getBusinessObject().getArtifactResultErrors(); }
Collection<ArtifactResultError> function() throws JspException { return getBusinessObject().getArtifactResultErrors(); }
/** * The method that actually gets the data from the router. * @see gov.va.med.imaging.exchange.business.taglib.document.AbstractDocumentSetCollectionTag#getCollection() */
The method that actually gets the data from the router
getCollection
{ "repo_name": "VHAINNOVATIONS/Telepathology", "path": "Source/Java/ImagingBaseWebFacade/main/src/java/gov/va/med/imaging/exchange/business/taglib/document/PatientArtifactResultErrorCollectionTag.java", "license": "apache-2.0", "size": 1156 }
[ "gov.va.med.imaging.exchange.business.ArtifactResultError", "java.util.Collection", "javax.servlet.jsp.JspException" ]
import gov.va.med.imaging.exchange.business.ArtifactResultError; import java.util.Collection; import javax.servlet.jsp.JspException;
import gov.va.med.imaging.exchange.business.*; import java.util.*; import javax.servlet.jsp.*;
[ "gov.va.med", "java.util", "javax.servlet" ]
gov.va.med; java.util; javax.servlet;
1,729,791
public List<VirtualLink> getVirtualLinks(String title, String url, OrderBy orderby);
List<VirtualLink> function(String title, String url, OrderBy orderby);
/** * Get all the virtual links filtered by the title and/or url. * * @param title * @param url * @param orderby * @return List<VirtualLink> */
Get all the virtual links filtered by the title and/or url
getVirtualLinks
{ "repo_name": "ggonzales/dotcms", "path": "src/com/dotmarketing/portlets/virtuallinks/business/VirtualLinkAPI.java", "license": "gpl-3.0", "size": 2003 }
[ "com.dotmarketing.portlets.virtuallinks.model.VirtualLink", "java.util.List" ]
import com.dotmarketing.portlets.virtuallinks.model.VirtualLink; import java.util.List;
import com.dotmarketing.portlets.virtuallinks.model.*; import java.util.*;
[ "com.dotmarketing.portlets", "java.util" ]
com.dotmarketing.portlets; java.util;
502,450
private void testBug71396PrepStatementMultiCheck(Connection testConn, String[] queries, int[] expRowCount) throws SQLException { if (queries.length != expRowCount.length) { fail("Bad arguments!"); } for (int i = 0; i < queries.length; i++) { testBug71396PrepStatementC...
void function(Connection testConn, String[] queries, int[] expRowCount) throws SQLException { if (queries.length != expRowCount.length) { fail(STR); } for (int i = 0; i < queries.length; i++) { testBug71396PrepStatementCheck(testConn, queries[i], expRowCount[i], -1); } }
/** * Executes a set of queries using newly created PreparedStatements and tests if the results count is the expected. */
Executes a set of queries using newly created PreparedStatements and tests if the results count is the expected
testBug71396PrepStatementMultiCheck
{ "repo_name": "jamslatt/ap-comp-sci", "path": "javaTest/lib/mysql-connector-java-5.1.45/src/testsuite/regression/StatementRegressionTest.java", "license": "mit", "size": 354750 }
[ "java.sql.Connection", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
549,233
@Test public void testAeshExtensionCommandConnected() throws Exception { CliProcessWrapper cli = new CliProcessWrapper() .addCliArgument("--connect") .addCliArgument("--controller=" + client.getMgmtAddress() + ":" + client.getMgmtPort()) .addCliArgument(Cl...
void function() throws Exception { CliProcessWrapper cli = new CliProcessWrapper() .addCliArgument(STR) .addCliArgument(STR + client.getMgmtAddress() + ":" + client.getMgmtPort()) .addCliArgument(CliExtCommand.NAME); cli.executeNonInteractive(); Assert.assertThat(STR, cli.getProcessExitValue(), is(0)); Assert.assertTha...
/** * Use Aesh CLI command, CLI is connected. CLI command should work correctly. */
Use Aesh CLI command, CLI is connected. CLI command should work correctly
testAeshExtensionCommandConnected
{ "repo_name": "jamezp/wildfly-core", "path": "testsuite/standalone/src/test/java/org/jboss/as/test/integration/management/cli/extensions/CliExtCommandsTestCase.java", "license": "lgpl-2.1", "size": 10373 }
[ "org.hamcrest.CoreMatchers", "org.jboss.as.test.integration.management.cli.CliProcessWrapper", "org.junit.Assert" ]
import org.hamcrest.CoreMatchers; import org.jboss.as.test.integration.management.cli.CliProcessWrapper; import org.junit.Assert;
import org.hamcrest.*; import org.jboss.as.test.integration.management.cli.*; import org.junit.*;
[ "org.hamcrest", "org.jboss.as", "org.junit" ]
org.hamcrest; org.jboss.as; org.junit;
1,520,108
private Controller getController() { return control; }
Controller function() { return control; }
/** * Returns the controller. * @return the controller */
Returns the controller
getController
{ "repo_name": "jurkov/j-algo-mod", "path": "src/org/jalgo/module/hoare/view/View.java", "license": "gpl-2.0", "size": 32171 }
[ "org.jalgo.module.hoare.control.Controller" ]
import org.jalgo.module.hoare.control.Controller;
import org.jalgo.module.hoare.control.*;
[ "org.jalgo.module" ]
org.jalgo.module;
1,245,088
public boolean waitForInitialCreate(long timeout, TimeUnit unit) throws InterruptedException { Preconditions.checkState(state.get() == State.STARTED, "Not started"); CountDownLatch localLatch = initialCreateLatch.get(); return (localLatch == null) || localLatch.await(timeout, unit); ...
boolean function(long timeout, TimeUnit unit) throws InterruptedException { Preconditions.checkState(state.get() == State.STARTED, STR); CountDownLatch localLatch = initialCreateLatch.get(); return (localLatch == null) localLatch.await(timeout, unit); }
/** * Block until the either initial node creation initiated by {@link #start()} succeeds or * the timeout elapses. * * @param timeout the maximum time to wait * @param unit time unit * @return if the node was created before timeout * @throws InterruptedException if the thread is i...
Block until the either initial node creation initiated by <code>#start()</code> succeeds or the timeout elapses
waitForInitialCreate
{ "repo_name": "fengbaicanhe/curator", "path": "curator-recipes/src/main/java/org/apache/curator/framework/recipes/nodes/PersistentEphemeralNode.java", "license": "apache-2.0", "size": 12979 }
[ "com.google.common.base.Preconditions", "java.util.concurrent.CountDownLatch", "java.util.concurrent.TimeUnit" ]
import com.google.common.base.Preconditions; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit;
import com.google.common.base.*; import java.util.concurrent.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
429,063
public List<String> getRequiredModules() { return requiredModulesMap == null ? null : new ArrayList<String>(requiredModulesMap.keySet()); }
List<String> function() { return requiredModulesMap == null ? null : new ArrayList<String>(requiredModulesMap.keySet()); }
/** * This list of strings is just what is included in the config.xml file, the full package names: * e.g. org.openmrs.module.formentry * * @return the list of requiredModules */
This list of strings is just what is included in the config.xml file, the full package names: e.g. org.openmrs.module.formentry
getRequiredModules
{ "repo_name": "Bhamni/openmrs-core", "path": "api/src/main/java/org/openmrs/module/Module.java", "license": "mpl-2.0", "size": 20255 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,270,747
protected boolean testaLucro( Object[] args, BigDecimal fator ) { boolean bRet = false; PreparedStatement ps = null; ResultSet rs = null; String sCampoCusto = null; String sVerifProd = null; String sSQL = null; try { sSQL = "SELECT P1.USALIQREL,P1.TIPOPRECOCUSTO,PD.VERIFPROD FROM SGPREFERE1...
boolean function( Object[] args, BigDecimal fator ) { boolean bRet = false; PreparedStatement ps = null; ResultSet rs = null; String sCampoCusto = null; String sVerifProd = null; String sSQL = null; try { sSQL = STR + STR; ps = con.prepareStatement( sSQL ); ps.setInt( 1, Aplicativo.iCodEmp ); ps.setInt( 2, ListaCampos....
/** * Verifica se a lucro na venda. * * @param args * parametros * @return se a lucro verdadeiro, se não falso. */
Verifica se a lucro na venda
testaLucro
{ "repo_name": "cams7/erp", "path": "freedom/src/main/java/org/freedom/modulos/std/view/frame/crud/detail/FVD.java", "license": "gpl-3.0", "size": 26869 }
[ "java.math.BigDecimal", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "org.freedom.library.functions.Funcoes", "org.freedom.library.persistence.ListaCampos", "org.freedom.library.swing.frame.Aplicativo" ]
import java.math.BigDecimal; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import org.freedom.library.functions.Funcoes; import org.freedom.library.persistence.ListaCampos; import org.freedom.library.swing.frame.Aplicativo;
import java.math.*; import java.sql.*; import org.freedom.library.functions.*; import org.freedom.library.persistence.*; import org.freedom.library.swing.frame.*;
[ "java.math", "java.sql", "org.freedom.library" ]
java.math; java.sql; org.freedom.library;
2,436,851
@Deprecated public String getLog() throws IOException { return Util.loadFile(getLogFile(),getCharset()); }
String function() throws IOException { return Util.loadFile(getLogFile(),getCharset()); }
/** * Gets the log of the build as a string. * * @deprecated since 2007-11-11. * Use {@link #getLog(int)} instead as it avoids loading * the whole log into memory unnecessarily. */
Gets the log of the build as a string
getLog
{ "repo_name": "vivek/hudson", "path": "core/src/main/java/hudson/model/Run.java", "license": "mit", "size": 60828 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
795,610
public T lookup(String name, XContentParser parser, ParseFieldMatcher parseFieldMatcher) { T value = lookupReturningNullIfNotFound(name, parseFieldMatcher); if (value == null) { throw new ParsingException(parser.getTokenLocation(), "no [" + registryName + "] registered for [" + name + "]...
T function(String name, XContentParser parser, ParseFieldMatcher parseFieldMatcher) { T value = lookupReturningNullIfNotFound(name, parseFieldMatcher); if (value == null) { throw new ParsingException(parser.getTokenLocation(), STR + registryName + STR + name + "]"); } return value; }
/** * Lookup a value from the registry by name while checking that the name matches the ParseField. * * @param name The name of the thing to look up. * @param parser The parser from which the name was looked up. * @param parseFieldMatcher to build nice error messages. * @return The value b...
Lookup a value from the registry by name while checking that the name matches the ParseField
lookup
{ "repo_name": "mmaracic/elasticsearch", "path": "core/src/main/java/org/elasticsearch/common/xcontent/ParseFieldRegistry.java", "license": "apache-2.0", "size": 4399 }
[ "org.elasticsearch.common.ParseFieldMatcher", "org.elasticsearch.common.ParsingException" ]
import org.elasticsearch.common.ParseFieldMatcher; import org.elasticsearch.common.ParsingException;
import org.elasticsearch.common.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
889,489
@Test public void testGetFill() { boolean valueOnly = true; FieldConfigArrow field = new FieldConfigArrow( new FieldConfigCommonData( String.class, FieldIdEnum.NAME, "test label", valueOnly, false), n...
void function() { boolean valueOnly = true; FieldConfigArrow field = new FieldConfigArrow( new FieldConfigCommonData( String.class, FieldIdEnum.NAME, STR, valueOnly, false), null, null, null); assertNull(field.getFill(null, null)); }
/** * Test method for {@link * com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#getFill(org.opengis.style.GraphicFill, * com.sldeditor.ui.detail.GraphicPanelFieldManager)}. */
Test method for <code>com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow#getFill(org.opengis.style.GraphicFill, com.sldeditor.ui.detail.GraphicPanelFieldManager)</code>
testGetFill
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/test/java/com/sldeditor/test/unit/ui/detail/vendor/geoserver/marker/arrow/FieldConfigArrowTest.java", "license": "gpl-3.0", "size": 23774 }
[ "com.sldeditor.common.xml.ui.FieldIdEnum", "com.sldeditor.ui.detail.config.FieldConfigCommonData", "com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow", "org.junit.jupiter.api.Assertions" ]
import com.sldeditor.common.xml.ui.FieldIdEnum; import com.sldeditor.ui.detail.config.FieldConfigCommonData; import com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.FieldConfigArrow; import org.junit.jupiter.api.Assertions;
import com.sldeditor.common.xml.ui.*; import com.sldeditor.ui.detail.config.*; import com.sldeditor.ui.detail.vendor.geoserver.marker.arrow.*; import org.junit.jupiter.api.*;
[ "com.sldeditor.common", "com.sldeditor.ui", "org.junit.jupiter" ]
com.sldeditor.common; com.sldeditor.ui; org.junit.jupiter;
1,358,283
@Idempotent void disallowSnapshot(String snapshotRoot) throws IOException;
void disallowSnapshot(String snapshotRoot) throws IOException;
/** * Disallow snapshot on a directory. * @param snapshotRoot the directory to disallow snapshot * @throws IOException on error */
Disallow snapshot on a directory
disallowSnapshot
{ "repo_name": "IBYoung/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/protocol/ClientProtocol.java", "license": "apache-2.0", "size": 57388 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,982,487
public void unlock() { InferBuiltins.__set_unlocked_attribute(this); }
void function() { InferBuiltins.__set_unlocked_attribute(this); }
/** * In some implementations (like ReentrantLock) an exception is thrown if the lock * is not held by the current thread. This model does not consider that possibility. */
In some implementations (like ReentrantLock) an exception is thrown if the lock is not held by the current thread. This model does not consider that possibility
unlock
{ "repo_name": "kstreee/infer", "path": "infer/models/java/src/java/util/concurrent/Lock.java", "license": "bsd-3-clause", "size": 2047 }
[ "com.facebook.infer.models.InferBuiltins" ]
import com.facebook.infer.models.InferBuiltins;
import com.facebook.infer.models.*;
[ "com.facebook.infer" ]
com.facebook.infer;
2,589,823
public List<DeliverableAndesMetadata> getMetaDataList(Slot slot, final String queueName, long firstMsgId, long lastMsgID) throws AndesException { return MessagingEngine.getInstance().getMetaDataList(slot, queueName, firstMsgId, lastMsgID); }
List<DeliverableAndesMetadata> function(Slot slot, final String queueName, long firstMsgId, long lastMsgID) throws AndesException { return MessagingEngine.getInstance().getMetaDataList(slot, queueName, firstMsgId, lastMsgID); }
/** * Get message metadata from queue between two message id values * * @param queueName queue name * @param firstMsgId id of the starting id * @param lastMsgID id of the last id * @return List of message metadata * @throws AndesException */
Get message metadata from queue between two message id values
getMetaDataList
{ "repo_name": "ThilankaBowala/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/Andes.java", "license": "apache-2.0", "size": 27956 }
[ "java.util.List", "org.wso2.andes.kernel.slot.Slot" ]
import java.util.List; import org.wso2.andes.kernel.slot.Slot;
import java.util.*; import org.wso2.andes.kernel.slot.*;
[ "java.util", "org.wso2.andes" ]
java.util; org.wso2.andes;
1,919,864
public Node getLastValue() { return lastValue; } }
Node function() { return lastValue; } }
/** * Gets the last assigned value. */
Gets the last assigned value
getLastValue
{ "repo_name": "007slm/kissy", "path": "tools/module-compiler/src/com/google/javascript/jscomp/ProcessDefines.java", "license": "mit", "size": 18329 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,239,911
protected static byte[] createPassword(byte[] identifier, SecretKey key) { Mac mac = threadLocalMac.get(); try { mac.init(key); } catch (InvalidKeyException ike) { throw new IllegalArgumentException("Invalid key to HMAC computation", ...
static byte[] function(byte[] identifier, SecretKey key) { Mac mac = threadLocalMac.get(); try { mac.init(key); } catch (InvalidKeyException ike) { throw new IllegalArgumentException(STR, ike); } return mac.doFinal(identifier); }
/** * Compute HMAC of the identifier using the secret key and return the * output as password * @param identifier the bytes of the identifier * @param key the secret key * @return the bytes of the generated password */
Compute HMAC of the identifier using the secret key and return the output as password
createPassword
{ "repo_name": "linpawslitap/mds_scaling", "path": "hadoop/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/SecretManager.java", "license": "bsd-3-clause", "size": 4704 }
[ "java.security.InvalidKeyException", "javax.crypto.Mac", "javax.crypto.SecretKey" ]
import java.security.InvalidKeyException; import javax.crypto.Mac; import javax.crypto.SecretKey;
import java.security.*; import javax.crypto.*;
[ "java.security", "javax.crypto" ]
java.security; javax.crypto;
839,715
public synchronized boolean containsUserName(final String userName) { Preconditions.checkNotNull(userName, "IE02720: userName argument can not be null"); syncUsers(); for (final IUser storedUser : users) { if (storedUser.getUserName().equalsIgnoreCase(userName)) { return true; } ...
synchronized boolean function(final String userName) { Preconditions.checkNotNull(userName, STR); syncUsers(); for (final IUser storedUser : users) { if (storedUser.getUserName().equalsIgnoreCase(userName)) { return true; } } return false; }
/** * Checks the stored user names against a provided user name. * * @param userName The user name to be checked. * * @return true if the user names already contain the given user name. */
Checks the stored user names against a provided user name
containsUserName
{ "repo_name": "guiquanz/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/Gui/Users/CUserManager.java", "license": "apache-2.0", "size": 11501 }
[ "com.google.common.base.Preconditions", "com.google.security.zynamics.binnavi.Gui" ]
import com.google.common.base.Preconditions; import com.google.security.zynamics.binnavi.Gui;
import com.google.common.base.*; import com.google.security.zynamics.binnavi.*;
[ "com.google.common", "com.google.security" ]
com.google.common; com.google.security;
1,909,896
protected void convertGroovy(AST node) { while (node != null) { int type = node.getType(); switch (type) { case PACKAGE_DEF: packageDef(node); break; case STATIC_IMPORT: case IMPORT: ...
void function(AST node) { while (node != null) { int type = node.getType(); switch (type) { case PACKAGE_DEF: packageDef(node); break; case STATIC_IMPORT: case IMPORT: importDef(node); break; case TRAIT_DEF: case CLASS_DEF: classDef(node); break; case INTERFACE_DEF: interfaceDef(node); break; case METHOD_DEF: methodDef...
/** * Converts the Antlr AST to the Groovy AST */
Converts the Antlr AST to the Groovy AST
convertGroovy
{ "repo_name": "avafanasiev/groovy", "path": "src/main/org/codehaus/groovy/antlr/AntlrParserPlugin.java", "license": "apache-2.0", "size": 130201 }
[ "org.codehaus.groovy.ast.stmt.Statement" ]
import org.codehaus.groovy.ast.stmt.Statement;
import org.codehaus.groovy.ast.stmt.*;
[ "org.codehaus.groovy" ]
org.codehaus.groovy;
1,689,429
protected void processPI() throws Exception { XMLUtil.skipWhitespace(reader, null); final String target = XMLUtil.scanIdentifier(reader); XMLUtil.skipWhitespace(reader, null); try (final Reader reader = new PIReader(this.reader)) { if (!target.equalsIgnoreCase("xml")) { builder.newProcessingI...
void function() throws Exception { XMLUtil.skipWhitespace(reader, null); final String target = XMLUtil.scanIdentifier(reader); XMLUtil.skipWhitespace(reader, null); try (final Reader reader = new PIReader(this.reader)) { if (!target.equalsIgnoreCase("xml")) { builder.newProcessingInstruction(target, reader); } } }
/** * Processes a "processing instruction". * * @throws java.lang.Exception * if something went wrong */
Processes a "processing instruction"
processPI
{ "repo_name": "freeplane/freeplane", "path": "freeplane/src/main/java/org/freeplane/n3/nanoxml/StdXMLParser.java", "license": "gpl-2.0", "size": 15593 }
[ "java.io.Reader" ]
import java.io.Reader;
import java.io.*;
[ "java.io" ]
java.io;
1,112,967
public boolean read(java.io.ObjectInputStream p_object_stream) { try { SavedAttributes saved_attributes = (SavedAttributes) p_object_stream.readObject(); this.snapshot_count = saved_attributes.snapshot_count; this.list_model = saved_attributes.list_model; ...
boolean function(java.io.ObjectInputStream p_object_stream) { try { SavedAttributes saved_attributes = (SavedAttributes) p_object_stream.readObject(); this.snapshot_count = saved_attributes.snapshot_count; this.list_model = saved_attributes.list_model; this.list.setModel(this.list_model); String next_default_name = STR...
/** * Reads the data of this frame from disk. * Returns false, if the reading failed. */
Reads the data of this frame from disk. Returns false, if the reading failed
read
{ "repo_name": "freerouting/freerouting", "path": "src/main/java/app/freerouting/gui/WindowSnapshot.java", "license": "gpl-3.0", "size": 13119 }
[ "app.freerouting.logger.FRLogger" ]
import app.freerouting.logger.FRLogger;
import app.freerouting.logger.*;
[ "app.freerouting.logger" ]
app.freerouting.logger;
511,657
@Override public T visitMacrodecl(@NotNull PoCoParser.MacrodeclContext ctx) { return visitChildren(ctx); }
@Override public T visitMacrodecl(@NotNull PoCoParser.MacrodeclContext ctx) { return visitChildren(ctx); }
/** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */
The default implementation returns the result of calling <code>#visitChildren</code> on ctx
visitMacrodecls
{ "repo_name": "Corjuh/PoCoScanner", "path": "src/main/java/com/coryjuhlin/pocoscanner/antlr/PoCoParserBaseVisitor.java", "license": "gpl-3.0", "size": 13743 }
[ "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;
2,345,071
protected void checkDepth(InternalContextAdapter context) { if (maxCallDepth > 0 && maxCallDepth == context.getCurrentMacroCallDepth()) { String templateName = context.getCurrentTemplateName(); Object[] stack = context.getMacroNameStack(); StringBuffer...
void function(InternalContextAdapter context) { if (maxCallDepth > 0 && maxCallDepth == context.getCurrentMacroCallDepth()) { String templateName = context.getCurrentTemplateName(); Object[] stack = context.getMacroNameStack(); StringBuffer out = new StringBuffer(100) .append(STR).append(maxCallDepth) .append(STR).appe...
/** * check that we aren't already at the max call depth and throws * a MacroOverflowException if we are there. */
check that we aren't already at the max call depth and throws a MacroOverflowException if we are there
checkDepth
{ "repo_name": "VISTALL/apache.velocity-engine", "path": "velocity-engine-core/src/main/java/org/apache/velocity/runtime/directive/VelocimacroProxy.java", "license": "apache-2.0", "size": 12748 }
[ "org.apache.velocity.context.InternalContextAdapter", "org.apache.velocity.exception.MacroOverflowException", "org.apache.velocity.runtime.log.Log" ]
import org.apache.velocity.context.InternalContextAdapter; import org.apache.velocity.exception.MacroOverflowException; import org.apache.velocity.runtime.log.Log;
import org.apache.velocity.context.*; import org.apache.velocity.exception.*; import org.apache.velocity.runtime.log.*;
[ "org.apache.velocity" ]
org.apache.velocity;
1,146,144
@Test public void testUpdate() throws SQLException, InstantiationException, IllegalAccessException { // Given bean = newBean(); String[] insertable = {"testUpdate insertable 1", "testUpdate insertable 2"}; String[] notInsertable = {"testUpdate non-insertable 1", "testUpdate non-insertable 2"}; bean.setIn...
void function() throws SQLException, InstantiationException, IllegalAccessException { bean = newBean(); String[] insertable = {STR, STR}; String[] notInsertable = {STR, STR}; bean.setInsertable(insertable[0]); bean.setNotInsertable(notInsertable[0]); int id = orm.create(bean); bean.setId(id); bean.setInsertable(inserta...
/** * Test method for {@link net.jirasystems.cheeporm.Orm#update(java.lang.Object)}. * * @throws SQLException . * @throws IllegalAccessException . * @throws InstantiationException . */
Test method for <code>net.jirasystems.cheeporm.Orm#update(java.lang.Object)</code>
testUpdate
{ "repo_name": "davidcarboni/cheep-orm", "path": "src/test/java/net/jirasystems/cheeporm/beans/BeanInsertableTest.java", "license": "apache-2.0", "size": 6604 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,024,422
@Override protected void actionPerformed(GuiButton parButton) { if (parButton.id == 1) { NetworkHandler.sendToServer(new MessageGuiV4Module()); } this.buttonList.clear(); this.initGui(); this.updateScreen(); }
void function(GuiButton parButton) { if (parButton.id == 1) { NetworkHandler.sendToServer(new MessageGuiV4Module()); } this.buttonList.clear(); this.initGui(); this.updateScreen(); }
/** * Called by the controls from the buttonList when activated. (Mouse pressed for buttons) */
Called by the controls from the buttonList when activated. (Mouse pressed for buttons)
actionPerformed
{ "repo_name": "Weisses/Ebonheart-Mods", "path": "ViesCraft/Archived/1.9.4 - 1976/src/main/java/com/viesis/viescraft/client/gui/v4/GuiEntityAirshipV4ModuleInventorySmall.java", "license": "mit", "size": 4261 }
[ "com.viesis.viescraft.network.NetworkHandler", "com.viesis.viescraft.network.server.v4.MessageGuiV4Module", "net.minecraft.client.gui.GuiButton" ]
import com.viesis.viescraft.network.NetworkHandler; import com.viesis.viescraft.network.server.v4.MessageGuiV4Module; import net.minecraft.client.gui.GuiButton;
import com.viesis.viescraft.network.*; import com.viesis.viescraft.network.server.v4.*; import net.minecraft.client.gui.*;
[ "com.viesis.viescraft", "net.minecraft.client" ]
com.viesis.viescraft; net.minecraft.client;
85,123
@Override public Application approveApplication(PerunSession session, Application app) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, ExternallyManagedException, WrongReferenceAttributeValueException, WrongAttributeValueException, RegistrarException, ExtSourceNotExistsException, Attri...
Application function(PerunSession session, Application app) throws PrivilegeException, GroupNotExistsException, MemberNotExistsException, ExternallyManagedException, WrongReferenceAttributeValueException, WrongAttributeValueException, RegistrarException, ExtSourceNotExistsException, AttributeNotExistsException, WrongAt...
/** * Create proper UserExtSource */
Create proper UserExtSource
approveApplication
{ "repo_name": "CESNET/perun", "path": "perun-registrar-lib/src/main/java/cz/metacentrum/perun/registrar/modules/LifeScienceHostelRIAcc.java", "license": "bsd-2-clause", "size": 4473 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.AttributesManager", "cz.metacentrum.perun.core.api.ExtSource", "cz.metacentrum.perun.core.api.Member", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.User", "cz.metacentrum.perun.core.api.UserExtSourc...
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.AttributesManager; import cz.metacentrum.perun.core.api.ExtSource; import cz.metacentrum.perun.core.api.Member; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.User; import cz.metacentrum.perun.c...
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import cz.metacentrum.perun.core.bl.*; import cz.metacentrum.perun.registrar.exceptions.*; import cz.metacentrum.perun.registrar.model.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,258,787
boolean isInfrastructure(Topology topology, ConnectPoint connectPoint);
boolean isInfrastructure(Topology topology, ConnectPoint connectPoint);
/** * Indicates whether the given connect point is part of the network fabric. * * @param topology topology descriptor * @param connectPoint connection point * @return true if infrastructure; false otherwise */
Indicates whether the given connect point is part of the network fabric
isInfrastructure
{ "repo_name": "LorenzReinhart/ONOSnew", "path": "core/api/src/main/java/org/onosproject/net/topology/TopologyStore.java", "license": "apache-2.0", "size": 10324 }
[ "org.onosproject.net.ConnectPoint" ]
import org.onosproject.net.ConnectPoint;
import org.onosproject.net.*;
[ "org.onosproject.net" ]
org.onosproject.net;
727,302
public void testGetCheckbox_Selected() { SessionMode currentMode = mCut.getSessionMode(); assertEquals("The default mode was not NightMode.", SessionMode.night, currentMode); assertEquals("The delivered resource was not correct", R.drawable.checked_night, mCut.getCheckbox_Selected()); mCut.setNormalMode()...
void function() { SessionMode currentMode = mCut.getSessionMode(); assertEquals(STR, SessionMode.night, currentMode); assertEquals(STR, R.drawable.checked_night, mCut.getCheckbox_Selected()); mCut.setNormalMode(); assertEquals(STR, R.drawable.checked_normal, mCut.getCheckbox_Selected()); mCut.setNightMode(); assertEqua...
/** * Test method for {@link com.mobileobservinglog.SettingsContainer#getCheckbox_Selected(). */
Test method for {@link com.mobileobservinglog.SettingsContainer#getCheckbox_Selected()
testGetCheckbox_Selected
{ "repo_name": "alphonzo79/MobileObservingLog", "path": "app/src/androidTest/java/com/mobileobservinglog/tests/SettingsContainerTest.java", "license": "mit", "size": 34596 }
[ "com.mobileobservinglog.support.SettingsContainer" ]
import com.mobileobservinglog.support.SettingsContainer;
import com.mobileobservinglog.support.*;
[ "com.mobileobservinglog.support" ]
com.mobileobservinglog.support;
1,411,336
@Test public void testPrewarm() throws Exception { Configuration conf = MetastoreConf.newMetastoreConf(); MetastoreConf.setBoolVar(conf, MetastoreConf.ConfVars.HIVE_IN_TEST, true); MetastoreConf.setVar(conf, MetastoreConf.ConfVars.CACHED_RAW_STORE_MAX_CACHE_MEMORY, "-1Kb"); MetaStoreTestUtils.setConfF...
@Test void function() throws Exception { Configuration conf = MetastoreConf.newMetastoreConf(); MetastoreConf.setBoolVar(conf, MetastoreConf.ConfVars.HIVE_IN_TEST, true); MetastoreConf.setVar(conf, MetastoreConf.ConfVars.CACHED_RAW_STORE_MAX_CACHE_MEMORY, "-1Kb"); MetaStoreTestUtils.setConfForStandloneMode(conf); Cache...
/********************************************************************************************** * Methods that test CachedStore *********************************************************************************************/
Methods that test CachedStore
testPrewarm
{ "repo_name": "vineetgarg02/hive", "path": "standalone-metastore/metastore-server/src/test/java/org/apache/hadoop/hive/metastore/cache/TestCachedStore.java", "license": "apache-2.0", "size": 86519 }
[ "java.util.List", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hive.metastore.Deadline", "org.apache.hadoop.hive.metastore.MetaStoreTestUtils", "org.apache.hadoop.hive.metastore.ObjectStore", "org.apache.hadoop.hive.metastore.api.Partition", "org.apache.hadoop.hive.metastore.conf.Metastore...
import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hive.metastore.Deadline; import org.apache.hadoop.hive.metastore.MetaStoreTestUtils; import org.apache.hadoop.hive.metastore.ObjectStore; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.hadoop.hive.meta...
import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hive.metastore.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.conf.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
2,777,260
private void notifySpecialListeners(SpecialCommand specialCommand) { for(SpecialDefinedListener listener : specialListeners) { listener.whenSpecialDefined(specialCommand); } }
void function(SpecialCommand specialCommand) { for(SpecialDefinedListener listener : specialListeners) { listener.whenSpecialDefined(specialCommand); } }
/** * Notify listeners that a magic command has been defined. * @param specialCommand The magic command. */
Notify listeners that a magic command has been defined
notifySpecialListeners
{ "repo_name": "cestella/incubator-metron", "path": "metron-stellar/stellar-common/src/main/java/org/apache/metron/stellar/common/shell/DefaultStellarShellExecutor.java", "license": "apache-2.0", "size": 13898 }
[ "org.apache.metron.stellar.common.shell.StellarExecutionListeners", "org.apache.metron.stellar.common.shell.specials.SpecialCommand" ]
import org.apache.metron.stellar.common.shell.StellarExecutionListeners; import org.apache.metron.stellar.common.shell.specials.SpecialCommand;
import org.apache.metron.stellar.common.shell.*; import org.apache.metron.stellar.common.shell.specials.*;
[ "org.apache.metron" ]
org.apache.metron;
200,892
public PlaceRequest orElse( PlaceRequest orElsePlaceRequest ) { this.orElsePlaceRequest = orElsePlaceRequest; return this; }
PlaceRequest function( PlaceRequest orElsePlaceRequest ) { this.orElsePlaceRequest = orElsePlaceRequest; return this; }
/** * Creates a place request for the given place ID with the given * state parameters for that place. * @param orElsePlaceRequest alternative place request. */
Creates a place request for the given place ID with the given state parameters for that place
orElse
{ "repo_name": "kiereleaseuser/uberfire", "path": "uberfire-api/src/main/java/org/uberfire/mvp/impl/ConditionalPlaceRequest.java", "license": "apache-2.0", "size": 5812 }
[ "org.uberfire.mvp.PlaceRequest" ]
import org.uberfire.mvp.PlaceRequest;
import org.uberfire.mvp.*;
[ "org.uberfire.mvp" ]
org.uberfire.mvp;
951,644
public Sequence getSequence(URL url) throws InvalidMidiDataException, IOException { InputStream is = new BufferedInputStream(url.openStream(), bisBufferSize); // throws IOException Sequence seq; try { seq = getSequence(is); } finally { ...
Sequence function(URL url) throws InvalidMidiDataException, IOException { InputStream is = new BufferedInputStream(url.openStream(), bisBufferSize); Sequence seq; try { seq = getSequence(is); } finally { is.close(); } return seq; }
/** * Obtains a MIDI sequence from the URL provided. The URL must * point to valid MIDI file data. * @param url the URL for which the <code>Sequence</code> should be * constructed * @return an <code>Sequence</code> object based on the MIDI file data pointed * to by the URL * @throws ...
Obtains a MIDI sequence from the URL provided. The URL must point to valid MIDI file data
getSequence
{ "repo_name": "ivmai/JCGO", "path": "sunawt/fix_snd/com/sun/media/sound/StandardMidiFileReader.java", "license": "gpl-2.0", "size": 17866 }
[ "java.io.BufferedInputStream", "java.io.IOException", "java.io.InputStream", "javax.sound.midi.InvalidMidiDataException", "javax.sound.midi.Sequence" ]
import java.io.BufferedInputStream; import java.io.IOException; import java.io.InputStream; import javax.sound.midi.InvalidMidiDataException; import javax.sound.midi.Sequence;
import java.io.*; import javax.sound.midi.*;
[ "java.io", "javax.sound" ]
java.io; javax.sound;
256,831
public static java.util.Set extractChemoRegimensConfigSet(ims.domain.ILightweightDomainFactory domainFactory, ims.oncology.vo.ChemoRegimensConfigVoCollection voCollection) { return extractChemoRegimensConfigSet(domainFactory, voCollection, null, new HashMap()); }
static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.oncology.vo.ChemoRegimensConfigVoCollection voCollection) { return extractChemoRegimensConfigSet(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.oncology.configuration.domain.objects.ChemoRegimensConfig set from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.oncology.configuration.domain.objects.ChemoRegimensConfig set from the value object collection
extractChemoRegimensConfigSet
{ "repo_name": "FreudianNM/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/oncology/vo/domain/ChemoRegimensConfigVoAssembler.java", "license": "agpl-3.0", "size": 26765 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,523,782
@Override protected synchronized boolean commitChangeImpl(RepositoryModel repository, long ticketId, Change change) { boolean success = false; Repository db = repositoryManager.getRepository(repository.name); try { List<Change> changes = getJournal(db, ticketId); changes.add(change); String journal ...
synchronized boolean function(RepositoryModel repository, long ticketId, Change change) { boolean success = false; Repository db = repositoryManager.getRepository(repository.name); try { List<Change> changes = getJournal(db, ticketId); changes.add(change); String journal = TicketSerializer.serializeJournal(changes).tri...
/** * Commit a ticket change to the repository. * * @param repository * @param ticketId * @param change * @return true, if the change was committed */
Commit a ticket change to the repository
commitChangeImpl
{ "repo_name": "wellington-junio/gitblit", "path": "src/main/java/com/gitblit/tickets/FileTicketService.java", "license": "apache-2.0", "size": 13151 }
[ "com.gitblit.models.RepositoryModel", "com.gitblit.models.TicketModel", "com.gitblit.utils.FileUtils", "java.io.File", "java.text.MessageFormat", "java.util.List", "org.eclipse.jgit.lib.Repository" ]
import com.gitblit.models.RepositoryModel; import com.gitblit.models.TicketModel; import com.gitblit.utils.FileUtils; import java.io.File; import java.text.MessageFormat; import java.util.List; import org.eclipse.jgit.lib.Repository;
import com.gitblit.models.*; import com.gitblit.utils.*; import java.io.*; import java.text.*; import java.util.*; import org.eclipse.jgit.lib.*;
[ "com.gitblit.models", "com.gitblit.utils", "java.io", "java.text", "java.util", "org.eclipse.jgit" ]
com.gitblit.models; com.gitblit.utils; java.io; java.text; java.util; org.eclipse.jgit;
1,296,412
Optional<MenuItem> getDefaultItem();
Optional<MenuItem> getDefaultItem();
/** * Returns an {@code Optional} with a default {@link MenuItem} which should be passed to {@link * ActionHandler#onAction(MenuItem)} when user makes a short click on a {@link MenuButton}. * * <p>Returns an empty {@code Optional} if no default {@link MenuItem}. */
Returns an Optional with a default <code>MenuItem</code> which should be passed to <code>ActionHandler#onAction(MenuItem)</code> when user makes a short click on a <code>MenuButton</code>. Returns an empty Optional if no default <code>MenuItem</code>
getDefaultItem
{ "repo_name": "sleshchenko/che", "path": "ide/che-core-ide-ui/src/main/java/org/eclipse/che/ide/ui/menubutton/ItemsProvider.java", "license": "epl-1.0", "size": 1570 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
976,398
public void setValues(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp) { switch (lu.getLexicalUnitType()) { case LexicalUnit.SAC_INHERIT: return; case LexicalUnit.SAC_IDENT: { ...
void function(CSSEngine eng, ShorthandManager.PropertyHandler ph, LexicalUnit lu, boolean imp) { switch (lu.getLexicalUnitType()) { case LexicalUnit.SAC_INHERIT: return; case LexicalUnit.SAC_IDENT: { String s = lu.getStringValue().toLowerCase(); if (values.contains(s)) { handleSystemFont(eng, ph, s, imp); return; } } }...
/** * Implements {@link ShorthandManager#setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)}. */
Implements <code>ShorthandManager#setValues(CSSEngine,ShorthandManager.PropertyHandler,LexicalUnit,boolean)</code>
setValues
{ "repo_name": "apache/batik", "path": "batik-css/src/main/java/org/apache/batik/css/engine/value/css2/FontShorthandManager.java", "license": "apache-2.0", "size": 12514 }
[ "org.apache.batik.css.engine.CSSEngine", "org.apache.batik.css.engine.value.IdentifierManager", "org.apache.batik.css.engine.value.ShorthandManager", "org.apache.batik.css.engine.value.StringMap", "org.apache.batik.css.engine.value.ValueManager", "org.apache.batik.util.CSSConstants", "org.w3c.css.sac.Le...
import org.apache.batik.css.engine.CSSEngine; import org.apache.batik.css.engine.value.IdentifierManager; import org.apache.batik.css.engine.value.ShorthandManager; import org.apache.batik.css.engine.value.StringMap; import org.apache.batik.css.engine.value.ValueManager; import org.apache.batik.util.CSSConstants; impor...
import org.apache.batik.css.engine.*; import org.apache.batik.css.engine.value.*; import org.apache.batik.util.*; import org.w3c.css.sac.*;
[ "org.apache.batik", "org.w3c.css" ]
org.apache.batik; org.w3c.css;
2,544,540
private Node createParameters(boolean lastVarArgs, JSType... parameterTypes) { FunctionParamBuilder builder = new FunctionParamBuilder(this); int max = parameterTypes.length - 1; for (int i = 0; i <= max; i++) { if (lastVarArgs && i == max) { builder.addVarArgs(parameterTypes[i]); } el...
Node function(boolean lastVarArgs, JSType... parameterTypes) { FunctionParamBuilder builder = new FunctionParamBuilder(this); int max = parameterTypes.length - 1; for (int i = 0; i <= max; i++) { if (lastVarArgs && i == max) { builder.addVarArgs(parameterTypes[i]); } else { builder.addRequiredParams(parameterTypes[i]);...
/** * Creates a tree hierarchy representing a typed argument list. * * @param lastVarArgs whether the last type should considered as a variable length argument. * @param parameterTypes the parameter types. The last element of this array is considered a * variable length argument is {@code lastVarArgs...
Creates a tree hierarchy representing a typed argument list
createParameters
{ "repo_name": "tiobe/closure-compiler", "path": "src/com/google/javascript/rhino/jstype/JSTypeRegistry.java", "license": "apache-2.0", "size": 87814 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,120,351
@Test public void testS2SReceive() throws Exception { final TestConfiguration tc = new TestConfiguration("S2SReceive"); final ProvenanceRecords prs = tc.provenanceRecords; prs.add(pr("77919f59-533e-35a3", "Input Port", RECEIVE, "http://nifi.example.com:8080/nifi-api/data...
void function() throws Exception { final TestConfiguration tc = new TestConfiguration(STR); final ProvenanceRecords prs = tc.provenanceRecords; prs.add(pr(STR, STR, RECEIVE, STR/77919f59-533e-35a3-0000-000000000000/transactions/tx-1/flow-filesSTRnifi_flow", STR, "S2SReceive@exampleSTRnifi_flow_pathSTRinput, UpdateAttri...
/** * A remote NiFi receives FlowFiles from remote client NiFis. * This NiFi instance owns RootProcessGroup input port. */
A remote NiFi receives FlowFiles from remote client NiFis. This NiFi instance owns RootProcessGroup input port
testS2SReceive
{ "repo_name": "mcgilman/nifi", "path": "nifi-nar-bundles/nifi-atlas-bundle/nifi-atlas-reporting-task/src/test/java/org/apache/nifi/atlas/reporting/ITReportLineageToAtlas.java", "license": "apache-2.0", "size": 74806 }
[ "org.apache.nifi.atlas.emulator.Node" ]
import org.apache.nifi.atlas.emulator.Node;
import org.apache.nifi.atlas.emulator.*;
[ "org.apache.nifi" ]
org.apache.nifi;
522,301
public Timestamp getShipDate(); public static final String COLUMNNAME_TrackingInfo = "TrackingInfo";
Timestamp function(); public static final String COLUMNNAME_TrackingInfo = STR;
/** Get Ship Date. * Shipment Date/Time */
Get Ship Date. Shipment Date/Time
getShipDate
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java-gen/org/compiere/model/I_M_Package.java", "license": "gpl-2.0", "size": 6452 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,529,386
public User installUser(Entity entity, String principal, Character userState) { Identity identity = identityInstallService.installIdentity(principal); List<UserGroup> userGroups = installUserGroups(entity); User user = null; for (UserGroup userGroup: userGroups ) { if (user==null) { user = installUser...
User function(Entity entity, String principal, Character userState) { Identity identity = identityInstallService.installIdentity(principal); List<UserGroup> userGroups = installUserGroups(entity); User user = null; for (UserGroup userGroup: userGroups ) { if (user==null) { user = installUser(userGroup.getEntity(), iden...
/** * Install users. * * If user is the first one in the entity, she receives ADMIN privileges. * * @param entity * @param identity * @param userState */
Install users. If user is the first one in the entity, she receives ADMIN privileges
installUser
{ "repo_name": "eldevanjr/helianto", "path": "helianto-security/src/main/java/org/helianto/install/service/UserInstallService.java", "license": "apache-2.0", "size": 6580 }
[ "java.util.List", "org.helianto.core.domain.Entity", "org.helianto.core.domain.Identity", "org.helianto.user.domain.User", "org.helianto.user.domain.UserAssociation", "org.helianto.user.domain.UserGroup" ]
import java.util.List; import org.helianto.core.domain.Entity; import org.helianto.core.domain.Identity; import org.helianto.user.domain.User; import org.helianto.user.domain.UserAssociation; import org.helianto.user.domain.UserGroup;
import java.util.*; import org.helianto.core.domain.*; import org.helianto.user.domain.*;
[ "java.util", "org.helianto.core", "org.helianto.user" ]
java.util; org.helianto.core; org.helianto.user;
2,201,307
CompletableFuture<Map<DebugProcessId, DbgProcess>> listProcesses();
CompletableFuture<Map<DebugProcessId, DbgProcess>> listProcesses();
/** * List Dbg's processes in this session * * This is equivalent to the CLI command: {@code info processes}. * * @return a future that completes with a map of global process IDs to process handles */
List Dbg's processes in this session This is equivalent to the CLI command: info processes
listProcesses
{ "repo_name": "NationalSecurityAgency/ghidra", "path": "Ghidra/Debug/Debugger-agent-dbgeng/src/main/java/agent/dbgeng/manager/DbgSession.java", "license": "apache-2.0", "size": 2210 }
[ "java.util.Map", "java.util.concurrent.CompletableFuture" ]
import java.util.Map; import java.util.concurrent.CompletableFuture;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,713,728
int readSigned16bitLE() throws EOFException;
int readSigned16bitLE() throws EOFException;
/** * Read 16 bits Little Endian. * * @return signed 16 bit * @throws EOFException if end of file */
Read 16 bits Little Endian
readSigned16bitLE
{ "repo_name": "bubulemaster/openjill", "path": "abstractfile-api/src/main/java/org/jill/file/FileAbstractByte.java", "license": "mpl-2.0", "size": 4983 }
[ "java.io.EOFException" ]
import java.io.EOFException;
import java.io.*;
[ "java.io" ]
java.io;
589,927
protected Response replicate(final String method, final String nodeUuid) { return replicate(method, getRequestParameters(), nodeUuid); }
Response function(final String method, final String nodeUuid) { return replicate(method, getRequestParameters(), nodeUuid); }
/** * Replicates the request to the given node * * @param method the HTTP method * @param nodeUuid the UUID of the node to replicate the request to * @return the response from the node * @throws UnknownNodeException if the nodeUuid given does not map to any node in the cluster */
Replicates the request to the given node
replicate
{ "repo_name": "Xsixteen/nifi", "path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/api/ApplicationResource.java", "license": "apache-2.0", "size": 56390 }
[ "javax.ws.rs.core.Response" ]
import javax.ws.rs.core.Response;
import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
1,784,269
private String getSiteListXml(List<Site> sites) { Document dom = Xml.createDocument(); Node list = dom.createElement("list"); dom.appendChild(list); for (Site site: sites) { Node item = dom.createElement("item"); Node siteId = dom.createElement("siteId"); ...
String function(List<Site> sites) { Document dom = Xml.createDocument(); Node list = dom.createElement("list"); dom.appendChild(list); for (Site site: sites) { Node item = dom.createElement("item"); Node siteId = dom.createElement(STR); siteId.appendChild(dom.createTextNode(site.getId())); Node siteTitle = dom.createEl...
/** * Renders a list of sites as XML to ensure consistency amongst webservice requests * * @param sites List of sites * @return XML string */
Renders a list of sites as XML to ensure consistency amongst webservice requests
getSiteListXml
{ "repo_name": "pushyamig/sakai", "path": "webservices/cxf/src/java/org/sakaiproject/webservices/SakaiScript.java", "license": "apache-2.0", "size": 209455 }
[ "java.util.List", "org.sakaiproject.site.api.Site", "org.sakaiproject.util.Xml", "org.w3c.dom.Document", "org.w3c.dom.Node" ]
import java.util.List; import org.sakaiproject.site.api.Site; import org.sakaiproject.util.Xml; import org.w3c.dom.Document; import org.w3c.dom.Node;
import java.util.*; import org.sakaiproject.site.api.*; import org.sakaiproject.util.*; import org.w3c.dom.*;
[ "java.util", "org.sakaiproject.site", "org.sakaiproject.util", "org.w3c.dom" ]
java.util; org.sakaiproject.site; org.sakaiproject.util; org.w3c.dom;
1,446,629
public void treeCollapsed(TreeExpansionEvent event) { DefaultMutableTreeNode node = getTreeNode(event.getPath()); Name nodeName = getNameNode(node); Log.fine("nodeName: " + nodeName.toString()); ContentName prefixToCancel = new ContentName(); if (nodeName.path == null) { Log.fine("collapsed the ...
void function(TreeExpansionEvent event) { DefaultMutableTreeNode node = getTreeNode(event.getPath()); Name nodeName = getNameNode(node); Log.fine(STR + nodeName.toString()); ContentName prefixToCancel = new ContentName(); if (nodeName.path == null) { Log.fine(STR); } else { prefixToCancel = ContentName.fromNative(nodeN...
/** * Method to handle tree collapse events. When a tree is collapsed, all name enumerations under * the collapsed node are canceled. * * @param event TreeExpansionEvent object for the event * * @return void */
Method to handle tree collapse events. When a tree is collapsed, all name enumerations under the collapsed node are canceled
treeCollapsed
{ "repo_name": "yyhpys/ccnx-trace-interest", "path": "javasrc/src/org/ccnx/ccn/utils/explorer/ContentExplorer.java", "license": "lgpl-2.1", "size": 40065 }
[ "javax.swing.event.TreeExpansionEvent", "javax.swing.event.TreeSelectionListener", "javax.swing.tree.DefaultMutableTreeNode", "org.ccnx.ccn.impl.support.Log", "org.ccnx.ccn.protocol.ContentName" ]
import javax.swing.event.TreeExpansionEvent; import javax.swing.event.TreeSelectionListener; import javax.swing.tree.DefaultMutableTreeNode; import org.ccnx.ccn.impl.support.Log; import org.ccnx.ccn.protocol.ContentName;
import javax.swing.event.*; import javax.swing.tree.*; import org.ccnx.ccn.impl.support.*; import org.ccnx.ccn.protocol.*;
[ "javax.swing", "org.ccnx.ccn" ]
javax.swing; org.ccnx.ccn;
2,900,500
public void setContent(Object anObject) { itsNode=(jOTDBnode)anObject; //it is assumed itsNode is the Observation node. jOTDBparam aParam=null; try { //we need to get all the childs from this node. // So we get the node itself and look for its childs ...
void function(Object anObject) { itsNode=(jOTDBnode)anObject; jOTDBparam aParam=null; try { ArrayList<jOTDBnode> TBBnode = new ArrayList(OtdbRmi.getRemoteMaintenance().getItemList(itsNode.treeID(), STR,false)); if (TBBnode.isEmpty() ) { logger.error(STR); return; } itsNode=TBBnode.get(0); ArrayList <jOTDBnode> childs =...
/** * This method will attempt to fill this panel with a given jOTDBnode object. * <br><br> * <b>Important</b>: The jOTDBnode to be passed on should always be the 'BBS.Strategy' node. * @param anObject the BBS Strategy jOTDBnode to be displayed in the GUI. */
This method will attempt to fill this panel with a given jOTDBnode object. Important: The jOTDBnode to be passed on should always be the 'BBS.Strategy' node
setContent
{ "repo_name": "kernsuite-debian/lofar", "path": "SAS/OTB/OTB/src/nl/astron/lofar/sas/otbcomponents/TBBControlPanel.java", "license": "gpl-3.0", "size": 29765 }
[ "java.rmi.RemoteException", "java.util.ArrayList", "nl.astron.lofar.lofarutils.LofarUtils", "nl.astron.lofar.sas.otb.util.OtdbRmi" ]
import java.rmi.RemoteException; import java.util.ArrayList; import nl.astron.lofar.lofarutils.LofarUtils; import nl.astron.lofar.sas.otb.util.OtdbRmi;
import java.rmi.*; import java.util.*; import nl.astron.lofar.lofarutils.*; import nl.astron.lofar.sas.otb.util.*;
[ "java.rmi", "java.util", "nl.astron.lofar" ]
java.rmi; java.util; nl.astron.lofar;
889,120
final Point pointA = new Point(0d, 0d); final Point pointB = new Point(0d, 1d); final Point pointC = new Point(0d, 2d); final Triangle triangle = new Triangle(pointA, pointB, pointC); final double result = triangle.area(); assertThat(result, is(-1d)); }
final Point pointA = new Point(0d, 0d); final Point pointB = new Point(0d, 1d); final Point pointC = new Point(0d, 2d); final Triangle triangle = new Triangle(pointA, pointB, pointC); final double result = triangle.area(); assertThat(result, is(-1d)); }
/** * Create unexisted triangle. */
Create unexisted triangle
whenTriangleIsInpossibleThenShouldReturnMinusOne
{ "repo_name": "miracleman1984/vryazanov", "path": "chapter_001/src/test/java/ru/job4j/TriangleTest.java", "license": "apache-2.0", "size": 1097 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
2,402,805
private boolean arrowScrollImpl(int direction) { if (getChildCount() <= 0) { return false; } View selectedView = getSelectedView(); int nextSelectedPosition = lookForSelectablePositionOnScreen(direction); int amountToScroll = amountToScroll(direction, nextSelect...
boolean function(int direction) { if (getChildCount() <= 0) { return false; } View selectedView = getSelectedView(); int nextSelectedPosition = lookForSelectablePositionOnScreen(direction); int amountToScroll = amountToScroll(direction, nextSelectedPosition); final ArrowScrollFocusResult focusResult = mItemsCanFocus ? ...
/** * Handle an arrow scroll going up or down. Take into account whether items are selectable, * whether there are focusable items etc. * * @param direction Either {@link android.view.View#FOCUS_UP} or {@link android.view.View#FOCUS_DOWN}. * @return Whether any scrolling, selection or focus ch...
Handle an arrow scroll going up or down. Take into account whether items are selectable, whether there are focusable items etc
arrowScrollImpl
{ "repo_name": "mateor/PDroidHistory", "path": "frameworks/base/core/java/android/widget/ListView.java", "license": "gpl-3.0", "size": 141583 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,719,136
public void configureEnv(@Observes AfterBeanDiscovery abd, BeanManager bm) { Environment environment = app.getEnvironment(); Config config = environment.getConfig(); for (Map.Entry<String, ConfigValue> configEntry : config.entrySet()) { final String configKey = configEntry.getKey(); final Obj...
void function(@Observes AfterBeanDiscovery abd, BeanManager bm) { Environment environment = app.getEnvironment(); Config config = environment.getConfig(); for (Map.Entry<String, ConfigValue> configEntry : config.entrySet()) { final String configKey = configEntry.getKey(); final Object configValue = configEntry.getValue...
/** * Configure {@link Environment} and {@link Config} into a weld container. * * @param abd Bean discovery. * @param bm Bean Manager. */
Configure <code>Environment</code> and <code>Config</code> into a weld container
configureEnv
{ "repo_name": "jooby-project/jooby", "path": "modules/jooby-weld/src/main/java/io/jooby/di/JoobyExtension.java", "license": "apache-2.0", "size": 5013 }
[ "com.typesafe.config.Config", "com.typesafe.config.ConfigValue", "io.jooby.Environment", "io.jooby.Reified", "java.lang.reflect.Type", "java.util.List", "java.util.Map", "javax.enterprise.event.Observes", "javax.enterprise.inject.literal.NamedLiteral", "javax.enterprise.inject.spi.AfterBeanDiscove...
import com.typesafe.config.Config; import com.typesafe.config.ConfigValue; import io.jooby.Environment; import io.jooby.Reified; import java.lang.reflect.Type; import java.util.List; import java.util.Map; import javax.enterprise.event.Observes; import javax.enterprise.inject.literal.NamedLiteral; import javax.enterpris...
import com.typesafe.config.*; import io.jooby.*; import java.lang.reflect.*; import java.util.*; import javax.enterprise.event.*; import javax.enterprise.inject.literal.*; import javax.enterprise.inject.spi.*;
[ "com.typesafe.config", "io.jooby", "java.lang", "java.util", "javax.enterprise" ]
com.typesafe.config; io.jooby; java.lang; java.util; javax.enterprise;
2,090,904
public void testSelectionBehaviour() { FilenameSelector s; String results; try { makeBed(); s = (FilenameSelector)getInstance(); s.setName("no match possible"); results = selectionString(s); assertEquals("FFFFFFFFFFFF", results); ...
void function() { FilenameSelector s; String results; try { makeBed(); s = (FilenameSelector)getInstance(); s.setName(STR); results = selectionString(s); assertEquals(STR, results); s = (FilenameSelector)getInstance(); s.setName("*.gz"); results = selectionString(s); s = (FilenameSelector)getInstance(); s.setName(STR);...
/** * Tests to make sure that the selector is selecting files correctly. */
Tests to make sure that the selector is selecting files correctly
testSelectionBehaviour
{ "repo_name": "Mayo-WE01051879/mayosapp", "path": "Build/src/tests/junit/org/apache/tools/ant/types/selectors/FilenameSelectorTest.java", "license": "mit", "size": 4031 }
[ "org.apache.tools.ant.types.Parameter" ]
import org.apache.tools.ant.types.Parameter;
import org.apache.tools.ant.types.*;
[ "org.apache.tools" ]
org.apache.tools;
1,116,313
public static boolean containsWord(final String text, final String word) { if (text == null || word == null) { return false; } if (text.contains(word)) { Matcher matcher = matchText(text); for (; matcher.find();) { String matchedWord = matcher.group(0); if (matchedWord.e...
static boolean function(final String text, final String word) { if (text == null word == null) { return false; } if (text.contains(word)) { Matcher matcher = matchText(text); for (; matcher.find();) { String matchedWord = matcher.group(0); if (matchedWord.equals(word)) { return true; } } } return false; }
/** * Returns true if given text contains given word; false otherwise. * * @param text string text to be tested. * @param word string word to be tested. * @return true if given text contains given word; false otherwise. */
Returns true if given text contains given word; false otherwise
containsWord
{ "repo_name": "defei/codelogger-utils", "path": "src/main/java/org/codelogger/utils/StringUtils.java", "license": "apache-2.0", "size": 15424 }
[ "java.util.regex.Matcher" ]
import java.util.regex.Matcher;
import java.util.regex.*;
[ "java.util" ]
java.util;
519,081
private static boolean nodeHasAncestor(Node node, Node possibleAncestor) { // Note node is not in node.getAncestors() for (Node ancestor : node.getAncestors()) { if (ancestor == possibleAncestor) { return true; } } return false; }
static boolean function(Node node, Node possibleAncestor) { for (Node ancestor : node.getAncestors()) { if (ancestor == possibleAncestor) { return true; } } return false; }
/** * Returns true if {@code possibleAncestor} is an ancestor of{@code node}. * A node is not considered to be an ancestor of itself. */
Returns true if possibleAncestor is an ancestor ofnode. A node is not considered to be an ancestor of itself
nodeHasAncestor
{ "repo_name": "shantanusharma/closure-compiler", "path": "src/com/google/javascript/jscomp/SideEffectsAnalysis.java", "license": "apache-2.0", "size": 31947 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,699,620
public int readInt() throws IOException { final int numeric = this.dataInputStream.readInt(); incrementReadCount(); return numeric; }
int function() throws IOException { final int numeric = this.dataInputStream.readInt(); incrementReadCount(); return numeric; }
/** * Method to read the next 32-bit integer from the input stream. * * @return 32-bit integer. * @throws IOException Unable to read the next 32-bit integer from the stream. */
Method to read the next 32-bit integer from the input stream
readInt
{ "repo_name": "acampbell3000/java-mp4-reader", "path": "src/main/java/uk/co/anthonycampbell/java/mp4reader/reader/MP4InputStream.java", "license": "apache-2.0", "size": 13680 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
696,667
public static ThrottleType toThrottleType(final QuotaProtos.ThrottleType proto) { switch (proto) { case REQUEST_NUMBER: return ThrottleType.REQUEST_NUMBER; case REQUEST_SIZE: return ThrottleType.REQUEST_SIZE; case WRITE_NUMBER: return ThrottleType.WRITE_NUMBER; case WRITE_SIZE: ret...
static ThrottleType function(final QuotaProtos.ThrottleType proto) { switch (proto) { case REQUEST_NUMBER: return ThrottleType.REQUEST_NUMBER; case REQUEST_SIZE: return ThrottleType.REQUEST_SIZE; case WRITE_NUMBER: return ThrottleType.WRITE_NUMBER; case WRITE_SIZE: return ThrottleType.WRITE_SIZE; case READ_NUMBER: retu...
/** * Convert a protocol buffer ThrottleType to a client ThrottleType * * @param proto * @return the converted client ThrottleType */
Convert a protocol buffer ThrottleType to a client ThrottleType
toThrottleType
{ "repo_name": "lshmouse/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java", "license": "apache-2.0", "size": 118965 }
[ "org.apache.hadoop.hbase.protobuf.generated.QuotaProtos", "org.apache.hadoop.hbase.quotas.ThrottleType" ]
import org.apache.hadoop.hbase.protobuf.generated.QuotaProtos; import org.apache.hadoop.hbase.quotas.ThrottleType;
import org.apache.hadoop.hbase.protobuf.generated.*; import org.apache.hadoop.hbase.quotas.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
186,514
private int nextKeyValuePair(final List<Pair<byte[],byte[]>> keyValuePairs, final Random rand) { // usually we generate a new key-value pair and append it to the index if (keyValuePairs.isEmpty() || rand.nextInt(10) != 0) { final byte[] key = new byte[4]; final byte[] value = new byte[18]; ...
int function(final List<Pair<byte[],byte[]>> keyValuePairs, final Random rand) { if (keyValuePairs.isEmpty() rand.nextInt(10) != 0) { final byte[] key = new byte[4]; final byte[] value = new byte[18]; rand.nextBytes(key); rand.nextBytes(value); keyValuePairs.add(Pair.of(key, value)); return keyValuePairs.size()-1; } el...
/** * Randomly either expends the keyValuePairs list by an element and * returns the index of the last list position OR returns an index * of a known position (i.e., a duplicate). Duplicates will be returned * about every 10th call. */
Randomly either expends the keyValuePairs list by an element and returns the index of the last list position OR returns an index of a known position (i.e., a duplicate). Duplicates will be returned about every 10th call
nextKeyValuePair
{ "repo_name": "blazegraph/database", "path": "bigdata-core-test/bigdata/src/test/com/bigdata/htree/TestHTree.java", "license": "gpl-2.0", "size": 38681 }
[ "java.util.List", "java.util.Random", "org.apache.commons.lang3.tuple.Pair" ]
import java.util.List; import java.util.Random; import org.apache.commons.lang3.tuple.Pair;
import java.util.*; import org.apache.commons.lang3.tuple.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
2,504,885
private void loadSessionSummary(Cursor data) { if (data != null && data.moveToFirst()) { mCaptionsUrl = data.getString(SessionSummaryQuery.CAPTIONS_URL); final long currentTime = UIUtils.getCurrentTime(this); if (currentTime > data.getLong(SessionSummaryQuery.SESSION_END)...
void function(Cursor data) { if (data != null && data.moveToFirst()) { mCaptionsUrl = data.getString(SessionSummaryQuery.CAPTIONS_URL); final long currentTime = UIUtils.getCurrentTime(this); if (currentTime > data.getLong(SessionSummaryQuery.SESSION_END)) { getLoaderManager().restartLoader(SessionsQuery._TOKEN, null, t...
/** * Load the session summary info for the currently selected live session. */
Load the session summary info for the currently selected live session
loadSessionSummary
{ "repo_name": "ramonrabello/devfestnorte-app", "path": "android/src/main/java/br/com/devfest/norte/ui/SessionLivestreamActivity.java", "license": "apache-2.0", "size": 40778 }
[ "android.database.Cursor", "br.com.devfest.norte.util.UIUtils" ]
import android.database.Cursor; import br.com.devfest.norte.util.UIUtils;
import android.database.*; import br.com.devfest.norte.util.*;
[ "android.database", "br.com.devfest" ]
android.database; br.com.devfest;
262,667
@Override public void onSearchHint(SearchCustomActionBar searchview, CharSequence constraint) { }
void function(SearchCustomActionBar searchview, CharSequence constraint) { }
/** * This method is called when the user press the search button on the keyboard * * @param searchview the searchview iOSSearchActionBar * @param constraint the current input data */
This method is called when the user press the search button on the keyboard
onSearchHint
{ "repo_name": "mkodekar/ToolBarLib", "path": "app/src/main/java/com/hkm/toolbarlib/templates/searchactionbar/actionSupportForAppCompatActivity.java", "license": "mit", "size": 2062 }
[ "com.hkm.advancedtoolbar.iOS.SearchCustomActionBar" ]
import com.hkm.advancedtoolbar.iOS.SearchCustomActionBar;
import com.hkm.advancedtoolbar.*;
[ "com.hkm.advancedtoolbar" ]
com.hkm.advancedtoolbar;
1,838,492
public void setExpires(int expires) throws InvalidArgumentException;
void function(int expires) throws InvalidArgumentException;
/** * Sets the relative expires value of the SubscriptionStateHeader. The * expires value MUST be greater than zero and MUST be less than 2**31. * * @param expires - the new expires value of this SubscriptionStateHeader. * @throws InvalidArgumentException if supplied value is less than zero. ...
Sets the relative expires value of the SubscriptionStateHeader. The expires value MUST be greater than zero and MUST be less than 2**31
setExpires
{ "repo_name": "fhg-fokus-nubomedia/signaling-plane", "path": "modules/lib-sip/src/main/java/javax/sip/header/SubscriptionStateHeader.java", "license": "apache-2.0", "size": 8432 }
[ "javax.sip.InvalidArgumentException" ]
import javax.sip.InvalidArgumentException;
import javax.sip.*;
[ "javax.sip" ]
javax.sip;
24,454
public List<InputSplit> getSplits(JobContext job) throws IOException { long minSize = Math.max(getFormatMinSplitSize(), getMinSplitSize(job)); long maxSize = getMaxSplitSize(job); // generate splits List<InputSplit> splits = new ArrayList<InputSplit>(); List<FileStatus> files = listStatus(job); ...
List<InputSplit> function(JobContext job) throws IOException { long minSize = Math.max(getFormatMinSplitSize(), getMinSplitSize(job)); long maxSize = getMaxSplitSize(job); List<InputSplit> splits = new ArrayList<InputSplit>(); List<FileStatus> files = listStatus(job); for (FileStatus file: files) { Path path = file.get...
/** * Generate the list of files and make them into FileSplits. * @param job the job context * @throws IOException */
Generate the list of files and make them into FileSplits
getSplits
{ "repo_name": "jayantgolhar/Hadoop-0.21.0", "path": "mapred/src/java/org/apache/hadoop/mapreduce/lib/input/FileInputFormat.java", "license": "apache-2.0", "size": 16197 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.fs.BlockLocation", "org.apache.hadoop.fs.FileStatus", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.mapreduce.InputSplit", "org.apache.hadoop.mapreduce.JobContext" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.fs.BlockLocation; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.InputSplit; import org.apache.hadoop.mapreduce.Jo...
import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.mapreduce.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,566,183
public void teleopPeriodic() { Scheduler.getInstance().run(); }
void function() { Scheduler.getInstance().run(); }
/** * This function is called periodically during operator control */
This function is called periodically during operator control
teleopPeriodic
{ "repo_name": "ThinkRedstone/FLFL2014", "path": "src/edu/wpi/first/wpilibj/templates/RobotTemplate.java", "license": "bsd-3-clause", "size": 2550 }
[ "edu.wpi.first.wpilibj.command.Scheduler" ]
import edu.wpi.first.wpilibj.command.Scheduler;
import edu.wpi.first.wpilibj.command.*;
[ "edu.wpi.first" ]
edu.wpi.first;
519,223
@ChecksSdkIntAtLeast(parameter = 0) public static boolean isAtLeastVersion(final int version) { return Build.VERSION.SDK_INT >= version; }
@ChecksSdkIntAtLeast(parameter = 0) static boolean function(final int version) { return Build.VERSION.SDK_INT >= version; }
/** * Check if Android version is at least the given version. * * @param version The version * @return true if Android version is at least the given version */
Check if Android version is at least the given version
isAtLeastVersion
{ "repo_name": "jeisfeld/RandomImage", "path": "RandomImageIdea/randomImageLib/src/main/java/de/jeisfeld/randomimage/util/SystemUtil.java", "license": "gpl-2.0", "size": 10323 }
[ "android.os.Build", "androidx.annotation.ChecksSdkIntAtLeast" ]
import android.os.Build; import androidx.annotation.ChecksSdkIntAtLeast;
import android.os.*; import androidx.annotation.*;
[ "android.os", "androidx.annotation" ]
android.os; androidx.annotation;
2,591,432
public RSocketConnector setupPayload(Mono<Payload> setupPayloadMono) { this.setupPayloadMono = setupPayloadMono; return this; }
RSocketConnector function(Mono<Payload> setupPayloadMono) { this.setupPayloadMono = setupPayloadMono; return this; }
/** * Provide a {@code Mono} from which to obtain the {@code Payload} for the initial SETUP frame. * Data and metadata should be formatted according to the MIME types specified via {@link * #dataMimeType(String)} and {@link #metadataMimeType(String)}. * * @param setupPayloadMono the payload with data and...
Provide a Mono from which to obtain the Payload for the initial SETUP frame. Data and metadata should be formatted according to the MIME types specified via <code>#dataMimeType(String)</code> and <code>#metadataMimeType(String)</code>
setupPayload
{ "repo_name": "rsocket/rsocket-java", "path": "rsocket-core/src/main/java/io/rsocket/core/RSocketConnector.java", "license": "apache-2.0", "size": 32272 }
[ "io.rsocket.Payload" ]
import io.rsocket.Payload;
import io.rsocket.*;
[ "io.rsocket" ]
io.rsocket;
1,655,121
@Test public void updateArtistTest() throws ApiException { Long id = null; ArtistResource artistResource = null; api.updateArtist(id, artistResource); // TODO: test validations }
void function() throws ApiException { Long id = null; ArtistResource artistResource = null; api.updateArtist(id, artistResource); }
/** * Modifies an artist details * * &lt;b&gt;Permissions Needed:&lt;/b&gt; ARTISTS_ADMIN * * @throws ApiException * if the Api call fails */
Modifies an artist details &lt;b&gt;Permissions Needed:&lt;/b&gt; ARTISTS_ADMIN
updateArtistTest
{ "repo_name": "knetikmedia/knetikcloud-java-client", "path": "src/test/java/com/knetikcloud/api/MediaArtistsApiTest.java", "license": "apache-2.0", "size": 5829 }
[ "com.knetikcloud.client.ApiException", "com.knetikcloud.model.ArtistResource" ]
import com.knetikcloud.client.ApiException; import com.knetikcloud.model.ArtistResource;
import com.knetikcloud.client.*; import com.knetikcloud.model.*;
[ "com.knetikcloud.client", "com.knetikcloud.model" ]
com.knetikcloud.client; com.knetikcloud.model;
2,210,748
@Override public Xid []recover(int flags) throws XAException { return _xaResource.recover(flags); }
public Xid []recover(int flags) throws XAException { return _xaResource.recover(flags); }
/** * Rolls the resource back */
Rolls the resource back
recover
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/sql/DisjointXAResource.java", "license": "gpl-2.0", "size": 3386 }
[ "javax.transaction.xa.XAException", "javax.transaction.xa.Xid" ]
import javax.transaction.xa.XAException; import javax.transaction.xa.Xid;
import javax.transaction.xa.*;
[ "javax.transaction" ]
javax.transaction;
236,675
private boolean checkLink() { boolean ret1 = knowledgeLinkTemp != null && knowledgeLinkTemp.getID() != null && !knowledgeLinkTemp.getID().equals(""); return (ret1 && knowledgeLinkTemp.getRepositoryName().equals(GlobalConstants.PROWIM_DMS) && getDocumentContentProperties() != null); } ...
boolean function() { boolean ret1 = knowledgeLinkTemp != null && knowledgeLinkTemp.getID() != null && !knowledgeLinkTemp.getID().equals(""); return (ret1 && knowledgeLinkTemp.getRepositoryName().equals(GlobalConstants.PROWIM_DMS) && getDocumentContentProperties() != null); }
/** * Checks if the knowledge link is already created and saved in the ontology and the attributes are set correctly. * * @return true if the link is created and saved, false otherwise (newly created links) */
Checks if the knowledge link is already created and saved in the ontology and the attributes are set correctly
checkLink
{ "repo_name": "prowim/prowim", "path": "prowim-portal/src/org/prowim/portal/dialogs/DocumentDialog.java", "license": "gpl-3.0", "size": 22783 }
[ "org.prowim.portal.utils.GlobalConstants" ]
import org.prowim.portal.utils.GlobalConstants;
import org.prowim.portal.utils.*;
[ "org.prowim.portal" ]
org.prowim.portal;
633,374
public BibDatabaseContext getStudyResultEntries() throws IOException { return OpenDatabase.loadDatabase(getPathToStudyResultFile(), importFormatPreferences, timestampPreferences, fileUpdateMonitor).getDatabaseContext(); }
BibDatabaseContext function() throws IOException { return OpenDatabase.loadDatabase(getPathToStudyResultFile(), importFormatPreferences, timestampPreferences, fileUpdateMonitor).getDatabaseContext(); }
/** * Returns the merged entries stored in the repository for all queries */
Returns the merged entries stored in the repository for all queries
getStudyResultEntries
{ "repo_name": "sauliusg/jabref", "path": "src/main/java/org/jabref/logic/crawler/StudyRepository.java", "license": "mit", "size": 15360 }
[ "java.io.IOException", "org.jabref.logic.importer.OpenDatabase", "org.jabref.model.database.BibDatabaseContext" ]
import java.io.IOException; import org.jabref.logic.importer.OpenDatabase; import org.jabref.model.database.BibDatabaseContext;
import java.io.*; import org.jabref.logic.importer.*; import org.jabref.model.database.*;
[ "java.io", "org.jabref.logic", "org.jabref.model" ]
java.io; org.jabref.logic; org.jabref.model;
1,861,021
public static Server create(Configuration configuration, Element elem) throws SAXException { String type = elem.getAttribute("type"); String className = elem.getAttribute("className"); // Replace with a factory some day... if ("product".equals(type)) { return new ProductServer(configurat...
static Server function(Configuration configuration, Element elem) throws SAXException { String type = elem.getAttribute("type"); String className = elem.getAttribute(STR); if (STR.equals(type)) { return new ProductServer(configuration, className); } else if (STR.equals(type)) { return new ProfileServer(configuration, c...
/** * Create a server from an XML element. * * @param elem * XML element, presumed to be a &lt;server&gt; element. * @return a <code>Server</code> subclass. * @throws SAXException * if the element can't be properly parsed. */
Create a server from an XML element
create
{ "repo_name": "lewismc/oodt", "path": "grid/src/main/java/org/apache/oodt/grid/Server.java", "license": "apache-2.0", "size": 4725 }
[ "org.w3c.dom.Element", "org.xml.sax.SAXException" ]
import org.w3c.dom.Element; import org.xml.sax.SAXException;
import org.w3c.dom.*; import org.xml.sax.*;
[ "org.w3c.dom", "org.xml.sax" ]
org.w3c.dom; org.xml.sax;
2,697,194
public static void putLogoutRequests(final RequestContext context, final List<SingleLogoutRequestContext> requests) { context.getFlowScope().put(PARAMETER_LOGOUT_REQUESTS, requests); }
static void function(final RequestContext context, final List<SingleLogoutRequestContext> requests) { context.getFlowScope().put(PARAMETER_LOGOUT_REQUESTS, requests); }
/** * Put logout requests into flow scope. * * @param context the context * @param requests the requests */
Put logout requests into flow scope
putLogoutRequests
{ "repo_name": "fogbeam/cas_mirror", "path": "core/cas-server-core-web-api/src/main/java/org/apereo/cas/web/support/WebUtils.java", "license": "apache-2.0", "size": 67337 }
[ "java.util.List", "org.apereo.cas.logout.slo.SingleLogoutRequestContext", "org.springframework.webflow.execution.RequestContext" ]
import java.util.List; import org.apereo.cas.logout.slo.SingleLogoutRequestContext; import org.springframework.webflow.execution.RequestContext;
import java.util.*; import org.apereo.cas.logout.slo.*; import org.springframework.webflow.execution.*;
[ "java.util", "org.apereo.cas", "org.springframework.webflow" ]
java.util; org.apereo.cas; org.springframework.webflow;
825,804
public CacheableBitmapDrawable get(String url, BitmapFactory.Options decodeOpts) { CacheableBitmapDrawable result; // First try Memory Cache result = getFromMemoryCache(url); if (null == result) { // Memory Cache failed, so try Disk Cache result = getFromDis...
CacheableBitmapDrawable function(String url, BitmapFactory.Options decodeOpts) { CacheableBitmapDrawable result; result = getFromMemoryCache(url); if (null == result) { result = getFromDiskCache(url, decodeOpts); } return result; }
/** * Returns the value for {@code url}. This will check all caches currently enabled. <p/> If you * have the disk cache enabled, you should not call this method from main/UI thread. * * @param url - String representing the URL of the image * @param decodeOpts - Options used for decoding...
Returns the value for url. This will check all caches currently enabled. If you have the disk cache enabled, you should not call this method from main/UI thread
get
{ "repo_name": "lisawei/youku_api_android_framework", "path": "src/uk/co/senab/bitmapcache/BitmapLruCache.java", "license": "apache-2.0", "size": 32850 }
[ "android.graphics.BitmapFactory" ]
import android.graphics.BitmapFactory;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
2,504,969
private boolean checkPlayServices() { GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance(); int resultCode = apiAvailability.isGooglePlayServicesAvailable(this); if (resultCode != ConnectionResult.SUCCESS) { if (apiAvailability.isUserResolvableError(resultC...
boolean function() { GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance(); int resultCode = apiAvailability.isGooglePlayServicesAvailable(this); if (resultCode != ConnectionResult.SUCCESS) { if (apiAvailability.isUserResolvableError(resultCode)) { apiAvailability.getErrorDialog(this, resultCode, ...
/** * Check the device to make sure it has the Google Play Services APK. If * it doesn't, display a dialog that allows users to download the APK from * the Google Play Store or enable it in the device's system settings. */
Check the device to make sure it has the Google Play Services APK. If it doesn't, display a dialog that allows users to download the APK from the Google Play Store or enable it in the device's system settings
checkPlayServices
{ "repo_name": "KamilSwojak/advanced-android-development", "path": "app/src/main/java/com/example/android/sunshine/app/MainActivity.java", "license": "apache-2.0", "size": 8250 }
[ "android.util.Log", "com.google.android.gms.common.ConnectionResult", "com.google.android.gms.common.GoogleApiAvailability" ]
import android.util.Log; import com.google.android.gms.common.ConnectionResult; import com.google.android.gms.common.GoogleApiAvailability;
import android.util.*; import com.google.android.gms.common.*;
[ "android.util", "com.google.android" ]
android.util; com.google.android;
2,136,482
interface ItemOperator { public boolean evaluate(ItemInfo info, View view, View parent); }
interface ItemOperator { boolean function(ItemInfo info, View view, View parent); }
/** * Process the next itemInfo, possibly with side-effect on {@link ItemOperator#value}. * * @param info info for the shortcut * @param view view for the shortcut * @param parent containing folder, or null * @return true if done, false to continue the map ...
Process the next itemInfo, possibly with side-effect on <code>ItemOperator#value</code>
evaluate
{ "repo_name": "trangnt57/Nhom7_CacVanDeHienDaiCNTT", "path": "BlueSkyLauncher/launcher3/src/main/java/g7/bluesky/launcher3/Workspace.java", "license": "apache-2.0", "size": 208163 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,815,235
@Nullable RunProfileState rerunTests(@NotNull final Executor executor, @NotNull final ExecutionEnvironment environment, @NotNull Collection<PsiElement> failedTests) throws ExecutionException;
RunProfileState rerunTests(@NotNull final Executor executor, @NotNull final ExecutionEnvironment environment, @NotNull Collection<PsiElement> failedTests) throws ExecutionException;
/** * Rerun failed tests * @param executor test executor * @param environment test environment * @param failedTests a pack of psi elements, indicating failed tests (to retrn) * @return state to run or null if no rerun actions found (i.e. no errors in failedTest, empty etc) * @throws ExecutionException...
Rerun failed tests
rerunTests
{ "repo_name": "asedunov/intellij-community", "path": "python/src/com/jetbrains/python/testing/TestRunConfigurationReRunResponsible.java", "license": "apache-2.0", "size": 1725 }
[ "com.intellij.execution.ExecutionException", "com.intellij.execution.Executor", "com.intellij.execution.configurations.RunProfileState", "com.intellij.execution.runners.ExecutionEnvironment", "com.intellij.psi.PsiElement", "java.util.Collection", "org.jetbrains.annotations.NotNull" ]
import com.intellij.execution.ExecutionException; import com.intellij.execution.Executor; import com.intellij.execution.configurations.RunProfileState; import com.intellij.execution.runners.ExecutionEnvironment; import com.intellij.psi.PsiElement; import java.util.Collection; import org.jetbrains.annotations.NotNull;
import com.intellij.execution.*; import com.intellij.execution.configurations.*; import com.intellij.execution.runners.*; import com.intellij.psi.*; import java.util.*; import org.jetbrains.annotations.*;
[ "com.intellij.execution", "com.intellij.psi", "java.util", "org.jetbrains.annotations" ]
com.intellij.execution; com.intellij.psi; java.util; org.jetbrains.annotations;
1,206,288
@Override public Adapter createAircraftAdapter() { if (aircraftItemProvider == null) { aircraftItemProvider = new AircraftItemProvider(this); } return aircraftItemProvider; }
Adapter function() { if (aircraftItemProvider == null) { aircraftItemProvider = new AircraftItemProvider(this); } return aircraftItemProvider; }
/** * This creates an adapter for a {@link com.sii.airline.airline.Aircraft}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This creates an adapter for a <code>com.sii.airline.airline.Aircraft</code>.
createAircraftAdapter
{ "repo_name": "7xMatthx2/E4Training", "path": "com.sii.airline.edit/src/com/sii/airline/airline/provider/AirlineItemProviderAdapterFactory.java", "license": "epl-1.0", "size": 8619 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
55,477
public boolean removeFacetQuery(String q) { boolean b = this.remove(FacetParams.FACET_QUERY, q); if (this.get(FacetParams.FACET_FIELD) == null && this.get(FacetParams.FACET_QUERY) == null) { this.setFacet(false); } return b; }
boolean function(String q) { boolean b = this.remove(FacetParams.FACET_QUERY, q); if (this.get(FacetParams.FACET_FIELD) == null && this.get(FacetParams.FACET_QUERY) == null) { this.setFacet(false); } return b; }
/** remove a facet query * * @param q the facet query to remove * @return true if the facet query was removed false otherwise */
remove a facet query
removeFacetQuery
{ "repo_name": "q474818917/solr-5.2.0", "path": "solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java", "license": "apache-2.0", "size": 31331 }
[ "org.apache.solr.common.params.FacetParams" ]
import org.apache.solr.common.params.FacetParams;
import org.apache.solr.common.params.*;
[ "org.apache.solr" ]
org.apache.solr;
909,573
public List<RouteDefinition> asRouteDefinition(CamelContext camelContext) { ObjectHelper.notNull(camelContext, "CamelContext"); // sanity check this rest definition do not have duplicates validateUniquePaths(); List<RouteDefinition> answer = new ArrayList<>(); if (camelCont...
List<RouteDefinition> function(CamelContext camelContext) { ObjectHelper.notNull(camelContext, STR); validateUniquePaths(); List<RouteDefinition> answer = new ArrayList<>(); if (camelContext.getRestConfigurations().isEmpty()) { RestConfiguration conf = CamelContextHelper.lookup(camelContext, RestConstants.DEFAULT_REST_...
/** * Transforms this REST definition into a list of {@link org.apache.camel.model.RouteDefinition} which * Camel routing engine can add and run. This allows us to define REST services using this * REST DSL and turn those into regular Camel routes. * * @param camelContext The Camel context ...
Transforms this REST definition into a list of <code>org.apache.camel.model.RouteDefinition</code> which Camel routing engine can add and run. This allows us to define REST services using this REST DSL and turn those into regular Camel routes
asRouteDefinition
{ "repo_name": "dmvolod/camel", "path": "camel-core/src/main/java/org/apache/camel/model/rest/RestDefinition.java", "license": "apache-2.0", "size": 36342 }
[ "java.util.ArrayList", "java.util.List", "org.apache.camel.CamelContext", "org.apache.camel.model.RouteDefinition", "org.apache.camel.spi.RestConfiguration", "org.apache.camel.util.CamelContextHelper", "org.apache.camel.util.ObjectHelper" ]
import java.util.ArrayList; import java.util.List; import org.apache.camel.CamelContext; import org.apache.camel.model.RouteDefinition; import org.apache.camel.spi.RestConfiguration; import org.apache.camel.util.CamelContextHelper; import org.apache.camel.util.ObjectHelper;
import java.util.*; import org.apache.camel.*; import org.apache.camel.model.*; import org.apache.camel.spi.*; import org.apache.camel.util.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
1,971,447
private static Gson getGson() { if (sGson == null) { GsonBuilder builder = new GsonBuilder(); RuntimeTypeAdapterFactory<BaseClass> adapter = RuntimeTypeAdapterFactory .of(BaseClass.class) .registerSubtype(Amazon.class) .regi...
static Gson function() { if (sGson == null) { GsonBuilder builder = new GsonBuilder(); RuntimeTypeAdapterFactory<BaseClass> adapter = RuntimeTypeAdapterFactory .of(BaseClass.class) .registerSubtype(Amazon.class) .registerSubtype(Barbarian.class) .registerSubtype(Centaur.class) .registerSubtype(Elementalist.class) .regi...
/** * Generates a gson that has all of the common features loaded in. * @return a gson object */
Generates a gson that has all of the common features loaded in
getGson
{ "repo_name": "CIS-Extra/mazes_and_minotaurs", "path": "MazesAndMinotaurs/app/src/main/java/com/example/cis/mazeminotaurs/serialization/SaveAndLoadPerformer.java", "license": "gpl-3.0", "size": 7954 }
[ "com.example.cis.mazeminotaurs.character.PlayerCharacter", "com.example.cis.mazeminotaurs.character.classes.Amazon", "com.example.cis.mazeminotaurs.character.classes.Barbarian", "com.example.cis.mazeminotaurs.character.classes.BaseClass", "com.example.cis.mazeminotaurs.character.classes.Centaur", "com.exa...
import com.example.cis.mazeminotaurs.character.PlayerCharacter; import com.example.cis.mazeminotaurs.character.classes.Amazon; import com.example.cis.mazeminotaurs.character.classes.Barbarian; import com.example.cis.mazeminotaurs.character.classes.BaseClass; import com.example.cis.mazeminotaurs.character.classes.Centau...
import com.example.cis.mazeminotaurs.character.*; import com.example.cis.mazeminotaurs.character.classes.*; import com.google.gson.*; import com.google.gson.typeadapters.*;
[ "com.example.cis", "com.google.gson" ]
com.example.cis; com.google.gson;
773,712
public int children() { if (view(0) instanceof Container) { return ((Container) view(0)).getComponentCount(); } else return 0; }
int function() { if (view(0) instanceof Container) { return ((Container) view(0)).getComponentCount(); } else return 0; }
/** * Gets the number of child views contained in the first selected view * @return the number of child views contained in the first selected view */
Gets the number of child views contained in the first selected view
children
{ "repo_name": "phil-brown/javaQuery", "path": "src/self/philbrown/javaQuery/$.java", "license": "apache-2.0", "size": 101555 }
[ "java.awt.Container" ]
import java.awt.Container;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,774,498
public static Surface createSurface( Position[] exteriorRing, Position[][] interiorRings, SurfaceInterpolation si, CoordinateSystem crs ) throws GeometryException { SurfacePatch sp = new PolygonImpl( si, exteriorRing, interiorRings, crs...
static Surface function( Position[] exteriorRing, Position[][] interiorRings, SurfaceInterpolation si, CoordinateSystem crs ) throws GeometryException { SurfacePatch sp = new PolygonImpl( si, exteriorRing, interiorRings, crs ); return createSurface( sp ); }
/** * creates a Surface composed of one SurfacePatch from array(s) of Position * * @param exteriorRing * exterior ring of the patch * @param interiorRings * interior rings of the patch * @param si * SurfaceInterpolation * @param crs...
creates a Surface composed of one SurfacePatch from array(s) of Position
createSurface
{ "repo_name": "lat-lon/deegree2-base", "path": "deegree2-core/src/main/java/org/deegree/model/spatialschema/GeometryFactory.java", "license": "lgpl-2.1", "size": 46620 }
[ "org.deegree.model.crs.CoordinateSystem" ]
import org.deegree.model.crs.CoordinateSystem;
import org.deegree.model.crs.*;
[ "org.deegree.model" ]
org.deegree.model;
1,089,280
public final Iterable<? extends TransitiveInfoCollection> getDependencies() { return targetsTreatedAsDeps(ClasspathType.BOTH); }
final Iterable<? extends TransitiveInfoCollection> function() { return targetsTreatedAsDeps(ClasspathType.BOTH); }
/** * Gets all the deps. */
Gets all the deps
getDependencies
{ "repo_name": "xindaya/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/java/JavaCommon.java", "license": "apache-2.0", "size": 28497 }
[ "com.google.devtools.build.lib.analysis.TransitiveInfoCollection", "com.google.devtools.build.lib.rules.java.JavaCompilationArgs" ]
import com.google.devtools.build.lib.analysis.TransitiveInfoCollection; import com.google.devtools.build.lib.rules.java.JavaCompilationArgs;
import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.rules.java.*;
[ "com.google.devtools" ]
com.google.devtools;
1,638,583