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 int countRealData() {
int count = 0;
for (Object item : data) {
if (dataClass.isInstance(item)) {
count++;
}
}
return count;
}
public static class FooterViewHolder extends RecyclerView.ViewHolder {
@BindView(R.id.footer)
ProgressBar progressBar;
public ... | int function() { int count = 0; for (Object item : data) { if (dataClass.isInstance(item)) { count++; } } return count; } public static class FooterViewHolder extends RecyclerView.ViewHolder { @BindView(R.id.footer) ProgressBar progressBar; public FooterViewHolder(View itemView) { super(itemView); ButterKnife.bind(this... | /**
* Counts the instances of the main class.
*/ | Counts the instances of the main class | countRealData | {
"repo_name": "danielme-com/Muspy-for-Android",
"path": "app/src/main/java/com/danielme/muspyforandroid/ui/recyclerview/Adapter.java",
"license": "gpl-3.0",
"size": 2203
} | [
"android.support.v7.widget.RecyclerView",
"android.view.View",
"android.widget.ProgressBar"
] | import android.support.v7.widget.RecyclerView; import android.view.View; import android.widget.ProgressBar; | import android.support.v7.widget.*; import android.view.*; import android.widget.*; | [
"android.support",
"android.view",
"android.widget"
] | android.support; android.view; android.widget; | 983,429 |
private void updateSharedObjectCache( final RepositoryElementInterface element, final RepositoryObjectType type,
final ObjectId id ) throws KettleException {
if ( element != null && ( element.getObjectId() == null || element.getObjectId().getId() == null ) ) {
throw n... | void function( final RepositoryElementInterface element, final RepositoryObjectType type, final ObjectId id ) throws KettleException { if ( element != null && ( element.getObjectId() == null element.getObjectId().getId() == null ) ) { throw new IllegalArgumentException( element.getName() + STR ); } loadAndCacheSharedOb... | /**
* Do not call this method directly. Instead call updateSharedObjectCache or removeFromSharedObjectCache.
*/ | Do not call this method directly. Instead call updateSharedObjectCache or removeFromSharedObjectCache | updateSharedObjectCache | {
"repo_name": "tkafalas/pentaho-kettle",
"path": "plugins/pur/core/src/main/java/org/pentaho/di/repository/pur/PurRepository.java",
"license": "apache-2.0",
"size": 144741
} | [
"java.util.ArrayList",
"java.util.List",
"org.pentaho.di.cluster.ClusterSchema",
"org.pentaho.di.cluster.SlaveServer",
"org.pentaho.di.core.database.DatabaseMeta",
"org.pentaho.di.core.exception.KettleException",
"org.pentaho.di.partition.PartitionSchema",
"org.pentaho.di.repository.ObjectId",
"org.... | import java.util.ArrayList; import java.util.List; import org.pentaho.di.cluster.ClusterSchema; import org.pentaho.di.cluster.SlaveServer; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.partition.PartitionSchema; import org.pentaho.di.reposi... | import java.util.*; import org.pentaho.di.cluster.*; import org.pentaho.di.core.database.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.partition.*; import org.pentaho.di.repository.*; import org.pentaho.di.shared.*; | [
"java.util",
"org.pentaho.di"
] | java.util; org.pentaho.di; | 2,181,966 |
public static MockEndpoint resolve(CamelContext context, String uri) {
return CamelContextHelper.getMandatoryEndpoint(context, uri, MockEndpoint.class);
} | static MockEndpoint function(CamelContext context, String uri) { return CamelContextHelper.getMandatoryEndpoint(context, uri, MockEndpoint.class); } | /**
* A helper method to resolve the mock endpoint of the given URI on the given context
*
* @param context the camel context to try resolve the mock endpoint from
* @param uri the uri of the endpoint to resolve
* @return the endpoint
*/ | A helper method to resolve the mock endpoint of the given URI on the given context | resolve | {
"repo_name": "logzio/camel",
"path": "camel-core/src/main/java/org/apache/camel/component/mock/MockEndpoint.java",
"license": "apache-2.0",
"size": 55338
} | [
"org.apache.camel.CamelContext",
"org.apache.camel.util.CamelContextHelper"
] | import org.apache.camel.CamelContext; import org.apache.camel.util.CamelContextHelper; | import org.apache.camel.*; import org.apache.camel.util.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,739,108 |
protected Closure createClosure(String rootMethodName, final Object closureObj) throws CommandActionExecutionException {
try {
if (!isClosureCommand(closureObj)) {
throw new RuntimeException(format(ERROR_TYPE_MESSAGE, rootMethodName, getClosureCommandType().getName()).getMessage(... | Closure function(String rootMethodName, final Object closureObj) throws CommandActionExecutionException { try { if (!isClosureCommand(closureObj)) { throw new RuntimeException(format(ERROR_TYPE_MESSAGE, rootMethodName, getClosureCommandType().getName()).getMessage()); } Method closureMethod = closureObj.getClass().getM... | /**
* Creates closure.
*
* @param rootMethodName
* the name of external method within which closure is created.
* @param closureObj
* the instance of specific anonymous class
* @return new {@link Closure} instance
* @throws Exception
*/ | Creates closure | createClosure | {
"repo_name": "justinjose28/Hystrix",
"path": "hystrix-contrib/hystrix-javanica/hystrix-javanica-core/src/main/java/com/netflix/hystrix/contrib/javanica/command/AbstractMethodExecutionAction.java",
"license": "apache-2.0",
"size": 4026
} | [
"com.google.common.base.Throwables",
"com.netflix.hystrix.contrib.javanica.command.closure.Closure",
"com.netflix.hystrix.contrib.javanica.exception.CommandActionExecutionException",
"java.lang.reflect.Method"
] | import com.google.common.base.Throwables; import com.netflix.hystrix.contrib.javanica.command.closure.Closure; import com.netflix.hystrix.contrib.javanica.exception.CommandActionExecutionException; import java.lang.reflect.Method; | import com.google.common.base.*; import com.netflix.hystrix.contrib.javanica.command.closure.*; import com.netflix.hystrix.contrib.javanica.exception.*; import java.lang.reflect.*; | [
"com.google.common",
"com.netflix.hystrix",
"java.lang"
] | com.google.common; com.netflix.hystrix; java.lang; | 1,576,278 |
@Generated
@StructureField(order = 6, isGetter = false)
public native void setMps_srights(int value); | @StructureField(order = 6, isGetter = false) native void function(int value); | /**
* do send rights exist?
*/ | do send rights exist | setMps_srights | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/struct/mach_port_status.java",
"license": "apache-2.0",
"size": 4187
} | [
"org.moe.natj.c.ann.StructureField"
] | import org.moe.natj.c.ann.StructureField; | import org.moe.natj.c.ann.*; | [
"org.moe.natj"
] | org.moe.natj; | 917,977 |
public OperatingSystemTypes supportedOSType() {
return this.supportedOSType;
} | OperatingSystemTypes function() { return this.supportedOSType; } | /**
* Get the supportedOSType property: This property allows you to specify the supported type of the OS that
* application is built for. <br><br> Possible values are: <br><br> **Windows**
* <br><br> **Linux**.
*
* @return the supportedOSType value.
*/ | Get the supportedOSType property: This property allows you to specify the supported type of the OS that application is built for. <br><br> Possible values are: <br><br> **Windows <br><br> **Linux** | supportedOSType | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/GalleryApplicationInner.java",
"license": "mit",
"size": 6514
} | [
"com.azure.resourcemanager.compute.models.OperatingSystemTypes"
] | import com.azure.resourcemanager.compute.models.OperatingSystemTypes; | import com.azure.resourcemanager.compute.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 2,401,613 |
private boolean setDefaultPassword(ClusterTopology topology, String configType, String property) {
boolean setDefaultPassword = false;
if (defaultPassword != null && ! defaultPassword.trim().isEmpty()) {
topology.getConfiguration().setProperty(configType, property, defaultPassword);
setDefaultPass... | boolean function(ClusterTopology topology, String configType, String property) { boolean setDefaultPassword = false; if (defaultPassword != null && ! defaultPassword.trim().isEmpty()) { topology.getConfiguration().setProperty(configType, property, defaultPassword); setDefaultPassword = true; } return setDefaultPassword... | /**
* Attempt to set the default password in cluster configuration for missing password property.
*
* @param configType configuration type
* @param property password property name
*
* @return true if password was set, otherwise false. Currently the password will always be set
* ... | Attempt to set the default password in cluster configuration for missing password property | setDefaultPassword | {
"repo_name": "radicalbit/ambari",
"path": "ambari-server/src/main/java/org/apache/ambari/server/topology/validators/RequiredPasswordValidator.java",
"license": "apache-2.0",
"size": 6767
} | [
"org.apache.ambari.server.topology.ClusterTopology"
] | import org.apache.ambari.server.topology.ClusterTopology; | import org.apache.ambari.server.topology.*; | [
"org.apache.ambari"
] | org.apache.ambari; | 1,179,753 |
public Method getMethod() {
return this.method;
} | Method function() { return this.method; } | /**
* Returns the method for this handler method.
*/ | Returns the method for this handler method | getMethod | {
"repo_name": "boggad/jdk9-sample",
"path": "sample-catalog/spring-jdk9/src/spring.messaging/org/springframework/messaging/handler/HandlerMethod.java",
"license": "mit",
"size": 11002
} | [
"java.lang.reflect.Method"
] | import java.lang.reflect.Method; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,989,612 |
public static Text sanitizeForRichText(Text text) {
if (text == null || text.getValue() == null) {
return null;
}
return new Text(sanitizeForRichText(text.getValue()));
} | static Text function(Text text) { if (text == null text.getValue() == null) { return null; } return new Text(sanitizeForRichText(text.getValue())); } | /**
* Sanitizes the {@link Text} with rich-text.
* Removes disallowed elements based on defined policy.
* @return A new sanitized {@link Text} or null if the input was null.
*/ | Sanitizes the <code>Text</code> with rich-text. Removes disallowed elements based on defined policy | sanitizeForRichText | {
"repo_name": "karthikaacharya/teammates",
"path": "src/main/java/teammates/common/util/SanitizationHelper.java",
"license": "gpl-2.0",
"size": 13632
} | [
"com.google.appengine.api.datastore.Text"
] | import com.google.appengine.api.datastore.Text; | import com.google.appengine.api.datastore.*; | [
"com.google.appengine"
] | com.google.appengine; | 307,863 |
public static SCIMObject constructSCIMObjectFromAttributes(Map<String, String> attributes,
int scimObjectType)
throws CharonException, NotFoundException {
SCIMObject scimObject = null;
switch (scimObjectType) {
ca... | static SCIMObject function(Map<String, String> attributes, int scimObjectType) throws CharonException, NotFoundException { SCIMObject scimObject = null; switch (scimObjectType) { case SCIMConstants.GROUP_INT: scimObject = new Group(); log.debug(STR); break; case SCIMConstants.USER_INT: scimObject = new User(); log.debu... | /**
* Construct the SCIM Object given the attribute URIs and attribute values of the object.
*
* @param attributes
* @param scimObjectType
* @return
*/ | Construct the SCIM Object given the attribute URIs and attribute values of the object | constructSCIMObjectFromAttributes | {
"repo_name": "Niranjan-K/carbon-identity",
"path": "components/scim/org.wso2.carbon.identity.scim.common/src/main/java/org/wso2/carbon/identity/scim/common/utils/AttributeMapper.java",
"license": "apache-2.0",
"size": 29562
} | [
"java.util.Arrays",
"java.util.HashMap",
"java.util.Map",
"org.wso2.charon.core.attributes.ComplexAttribute",
"org.wso2.charon.core.attributes.DefaultAttributeFactory",
"org.wso2.charon.core.attributes.MultiValuedAttribute",
"org.wso2.charon.core.attributes.SimpleAttribute",
"org.wso2.charon.core.exce... | import java.util.Arrays; import java.util.HashMap; import java.util.Map; import org.wso2.charon.core.attributes.ComplexAttribute; import org.wso2.charon.core.attributes.DefaultAttributeFactory; import org.wso2.charon.core.attributes.MultiValuedAttribute; import org.wso2.charon.core.attributes.SimpleAttribute; import or... | import java.util.*; import org.wso2.charon.core.attributes.*; import org.wso2.charon.core.exceptions.*; import org.wso2.charon.core.objects.*; import org.wso2.charon.core.schema.*; import org.wso2.charon.core.util.*; | [
"java.util",
"org.wso2.charon"
] | java.util; org.wso2.charon; | 205,762 |
public void initKeyboardEventNS(String namespaceURIArg,
String typeArg,
boolean canBubbleArg,
boolean cancelableArg,
AbstractView viewArg,
... | void function(String namespaceURIArg, String typeArg, boolean canBubbleArg, boolean cancelableArg, AbstractView viewArg, String keyIdentifierArg, int keyLocationArg, String modifiersList) { initUIEventNS(namespaceURIArg, typeArg, canBubbleArg, cancelableArg, viewArg, 0); keyIdentifier = keyIdentifierArg; keyLocation = ... | /**
* <b>DOM</b>: Initializes this KeyboardEvent object.
* @param namespaceURIArg Specifies the event namespace URI.
* @param typeArg Specifies the event type.
* @param canBubbleArg Specifies whether or not the event can bubble.
* @param cancelableArg Specifies whether or not the event's defaul... | DOM: Initializes this KeyboardEvent object | initKeyboardEventNS | {
"repo_name": "apache/batik",
"path": "batik-dom/src/main/java/org/apache/batik/dom/events/DOMKeyboardEvent.java",
"license": "apache-2.0",
"size": 16942
} | [
"org.w3c.dom.views.AbstractView"
] | import org.w3c.dom.views.AbstractView; | import org.w3c.dom.views.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 2,908,729 |
private Project buildProject() {
Project topLinkProject = new Project();
topLinkProject.setName("MW project");
// handles
topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWClassHandle.buildDescriptor());
topLinkProject.addDescriptor(org.eclipse.persistenc... | Project function() { Project topLinkProject = new Project(); topLinkProject.setName(STR); topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWClassHandle.buildDescriptor()); topLinkProject.addDescriptor(org.eclipse.persistence.tools.workbench.mappingsmodel.handles.MWAttributeHan... | /**
* Build and return a TopLink project for reading and
* writing MWProjects from and to XML files.
*/ | Build and return a TopLink project for reading and writing MWProjects from and to XML files | buildProject | {
"repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs",
"path": "utils/eclipselink.utils.workbench/mappingsio/source/org/eclipse/persistence/tools/workbench/mappingsio/ProjectIOManager.java",
"license": "epl-1.0",
"size": 39323
} | [
"org.eclipse.persistence.sessions.Project",
"org.eclipse.persistence.tools.workbench.mappingsmodel.project.MWProject"
] | import org.eclipse.persistence.sessions.Project; import org.eclipse.persistence.tools.workbench.mappingsmodel.project.MWProject; | import org.eclipse.persistence.sessions.*; import org.eclipse.persistence.tools.workbench.mappingsmodel.project.*; | [
"org.eclipse.persistence"
] | org.eclipse.persistence; | 1,465,057 |
protected synchronized void notifySelectionFailed( String sClass )
{
Intent sig = new Intent( m_api.getFormattedRelayAction(
RELAY_NOTIFY_SELECT_FAILED ) ) ;
if( sClass != null )
{
sig.putExtra(m_api.getFormattedExtraTag(EXTRA_SCHEMA_CLASS_NAME),
sClass);
}
m_ctx.sendBroadcast( sig ) ;
}
///... | synchronized void function( String sClass ) { Intent sig = new Intent( m_api.getFormattedRelayAction( RELAY_NOTIFY_SELECT_FAILED ) ) ; if( sClass != null ) { sig.putExtra(m_api.getFormattedExtraTag(EXTRA_SCHEMA_CLASS_NAME), sClass); } m_ctx.sendBroadcast( sig ) ; } | /**
* Notifies the relay that a selection failed.
* @param sClass the name of the class that would have had rows selected
*/ | Notifies the relay that a selection failed | notifySelectionFailed | {
"repo_name": "zerobandwidth-net/android",
"path": "libZeroAndroid/src/main/java/net/zer0bandwidth/android/lib/database/sqlitehouse/content/SQLiteHouseKeeper.java",
"license": "mit",
"size": 19731
} | [
"android.content.Intent"
] | import android.content.Intent; | import android.content.*; | [
"android.content"
] | android.content; | 1,910,022 |
void drawCircle(Graphics2D graphics)
{
// Compute random size for circle
final Random random = new Random();
int dx = Math.abs(10 + random.nextInt(80));
int dy = Math.abs(10 + random.nextInt(80));
int x = Math.abs(random.nextInt(100 - dx));
int y = Math.abs(random.nextInt(100 - dy));
// Draw circle w... | void drawCircle(Graphics2D graphics) { final Random random = new Random(); int dx = Math.abs(10 + random.nextInt(80)); int dy = Math.abs(10 + random.nextInt(80)); int x = Math.abs(random.nextInt(100 - dx)); int y = Math.abs(random.nextInt(100 - dy)); graphics.setStroke(new BasicStroke(5)); graphics.drawOval(x, y, dx, d... | /**
* Draws a random circle on a graphics
*
* @param graphics
* The graphics to draw on
*/ | Draws a random circle on a graphics | drawCircle | {
"repo_name": "mafulafunk/wicket",
"path": "wicket-examples/src/main/java/org/apache/wicket/examples/images/Home.java",
"license": "apache-2.0",
"size": 4551
} | [
"java.awt.BasicStroke",
"java.awt.Graphics2D",
"java.util.Random"
] | import java.awt.BasicStroke; import java.awt.Graphics2D; import java.util.Random; | import java.awt.*; import java.util.*; | [
"java.awt",
"java.util"
] | java.awt; java.util; | 625,458 |
private void runSimpleArrayTest(EndpointReferenceType manager_epr, WorkflowHelperClient wf_helper, ProxyLifetime issuedCredentialLifetime, GlobusCredential myCredential, ProxyLifetime delegationLifetime, int issuedCredentialPath, int delegationPath) throws RemoteException{
System.out.println("BEGIN runSimpleArr... | void function(EndpointReferenceType manager_epr, WorkflowHelperClient wf_helper, ProxyLifetime issuedCredentialLifetime, GlobusCredential myCredential, ProxyLifetime delegationLifetime, int issuedCredentialPath, int delegationPath) throws RemoteException{ System.out.println(STR); org.cagrid.workflow.helper.descriptor.W... | /**
* Instantiate the workflow that will test simple array usual handling
*
* @param manager_epr EndpointReference of the manager so each workflow stage can invoke 'setParameter' on it (not used)
* @param wf_helper Client of a running WorkflowHelper service
* @param myCredential Credential delegated by t... | Instantiate the workflow that will test simple array usual handling | runSimpleArrayTest | {
"repo_name": "NCIP/cagrid-grid-incubation",
"path": "grid-incubation/test/projects/workflowHelper/src/org/cagrid/workflow/helper/tests/system/steps/CreateTestSecureWorkflowsStep.java",
"license": "bsd-3-clause",
"size": 81098
} | [
"java.rmi.RemoteException",
"javax.xml.namespace.QName",
"javax.xml.rpc.NamespaceConstants",
"org.apache.axis.message.addressing.EndpointReferenceType",
"org.apache.axis.types.URI",
"org.cagrid.gaards.cds.common.ProxyLifetime",
"org.cagrid.workflow.helper.client.WorkflowHelperClient",
"org.cagrid.work... | import java.rmi.RemoteException; import javax.xml.namespace.QName; import javax.xml.rpc.NamespaceConstants; import org.apache.axis.message.addressing.EndpointReferenceType; import org.apache.axis.types.URI; import org.cagrid.gaards.cds.common.ProxyLifetime; import org.cagrid.workflow.helper.client.WorkflowHelperClient;... | import java.rmi.*; import javax.xml.namespace.*; import javax.xml.rpc.*; import org.apache.axis.message.addressing.*; import org.apache.axis.types.*; import org.cagrid.gaards.cds.common.*; import org.cagrid.workflow.helper.client.*; import org.cagrid.workflow.helper.descriptor.*; import org.cagrid.workflow.helper.insta... | [
"java.rmi",
"javax.xml",
"org.apache.axis",
"org.cagrid.gaards",
"org.cagrid.workflow",
"org.globus.gsi"
] | java.rmi; javax.xml; org.apache.axis; org.cagrid.gaards; org.cagrid.workflow; org.globus.gsi; | 228,946 |
@Test
public void testAddFilterAndArguments() throws IOException {
Configuration configuration = new Configuration();
List<String> args = new ArrayList<>();
args.add("param1");
args.add("param2");
Import.addFilterAndArguments(configuration, FilterBase.class, args);
assertEquals("org.apache... | void function() throws IOException { Configuration configuration = new Configuration(); List<String> args = new ArrayList<>(); args.add(STR); args.add(STR); Import.addFilterAndArguments(configuration, FilterBase.class, args); assertEquals(STR, configuration.get(Import.FILTER_CLASS_CONF_KEY)); assertEquals(STR, configur... | /**
* Test addFilterAndArguments method of Import This method set couple
* parameters into Configuration
*/ | Test addFilterAndArguments method of Import This method set couple parameters into Configuration | testAddFilterAndArguments | {
"repo_name": "HubSpot/hbase",
"path": "hbase-mapreduce/src/test/java/org/apache/hadoop/hbase/mapreduce/TestCellBasedImportExport2.java",
"license": "apache-2.0",
"size": 30508
} | [
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.hbase.filter.FilterBase",
"org.junit.Assert"
] | import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.filter.FilterBase; import org.junit.Assert; | import java.io.*; import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.filter.*; import org.junit.*; | [
"java.io",
"java.util",
"org.apache.hadoop",
"org.junit"
] | java.io; java.util; org.apache.hadoop; org.junit; | 766,832 |
public Ensayo getEntityById(int id) {
return ensayoDAO.getById(id);
} | Ensayo function(int id) { return ensayoDAO.getById(id); } | /**
* Get ensayo by primary key.
*
* @return ensayo selected by id.
*/ | Get ensayo by primary key | getEntityById | {
"repo_name": "terrex/tntconcept-materials-testing",
"path": "src/main/java/com/autentia/intra/manager/contacts/EnsayoManager.java",
"license": "gpl-2.0",
"size": 3210
} | [
"com.autentia.intra.businessobject.Ensayo"
] | import com.autentia.intra.businessobject.Ensayo; | import com.autentia.intra.businessobject.*; | [
"com.autentia.intra"
] | com.autentia.intra; | 1,841,782 |
public Metadata.Builder putAllStandardMethodUnderrides(Map<? extends Metadata.StandardMethod, ? extends Metadata.UnderrideLevel> map) {
for (Metadata.StandardMethod key : map.keySet()) {
putStandardMethodUnderrides(key, map.get(key));
}
return (Metadata.Builder) this;
} | Metadata.Builder function(Map<? extends Metadata.StandardMethod, ? extends Metadata.UnderrideLevel> map) { for (Metadata.StandardMethod key : map.keySet()) { putStandardMethodUnderrides(key, map.get(key)); } return (Metadata.Builder) this; } | /**
* Associates all of {@code map}'s keys and values in the map to be returned
* from {@link Metadata#getStandardMethodUnderrides()}.
* Duplicate keys are not allowed.
*
* @return this {@code Builder} object
* @throws NullPointerException if {@code map} is null or contains a
* null key or valu... | Associates all of map's keys and values in the map to be returned from <code>Metadata#getStandardMethodUnderrides()</code>. Duplicate keys are not allowed | putAllStandardMethodUnderrides | {
"repo_name": "sposam/FreeBuilder",
"path": "src/main/java/org/inferred/freebuilder/processor/Metadata_Builder.java",
"license": "apache-2.0",
"size": 38537
} | [
"java.util.Map",
"org.inferred.freebuilder.processor.Metadata"
] | import java.util.Map; import org.inferred.freebuilder.processor.Metadata; | import java.util.*; import org.inferred.freebuilder.processor.*; | [
"java.util",
"org.inferred.freebuilder"
] | java.util; org.inferred.freebuilder; | 1,511,815 |
public Date toDate(Config config,Element el,String attributeName) {
DateTime dt = toDateTime(config,el,attributeName);
if(dt==null) return null;
return new DateImpl(dt);
} | Date function(Config config,Element el,String attributeName) { DateTime dt = toDateTime(config,el,attributeName); if(dt==null) return null; return new DateImpl(dt); } | /**
* reads a XML Element Attribute ans cast it to a Date Object
* @param el XML Element to read Attribute from it
* @param attributeName Name of the Attribute to read
* @return Attribute Value
*/ | reads a XML Element Attribute ans cast it to a Date Object | toDate | {
"repo_name": "paulklinkenberg/Lucee4",
"path": "lucee-java/lucee-core/src/lucee/runtime/schedule/StorageUtil.java",
"license": "lgpl-2.1",
"size": 14914
} | [
"org.w3c.dom.Element"
] | import org.w3c.dom.Element; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 2,070,824 |
public Rule withNoncurrentVersionTransitions(
List<NoncurrentVersionTransition> noncurrentVersionTransitions) {
setNoncurrentVersionTransitions(noncurrentVersionTransitions);
return this;
}
| Rule function( List<NoncurrentVersionTransition> noncurrentVersionTransitions) { setNoncurrentVersionTransitions(noncurrentVersionTransitions); return this; } | /**
* Sets the Amazon S3 non current object transition rules for the given bucket.
* Returns an updated version of this object.
*/ | Sets the Amazon S3 non current object transition rules for the given bucket. Returns an updated version of this object | withNoncurrentVersionTransitions | {
"repo_name": "trasa/aws-sdk-java",
"path": "aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/BucketLifecycleConfiguration.java",
"license": "apache-2.0",
"size": 23005
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,068,341 |
private Context newContext(RuleUpdate change) {
DbSession dbSession = dbClient.openSession(false);
try {
Context context = new Context();
context.rule = dbClient.ruleDao().getByKey(dbSession, change.getRuleKey());
if (RuleStatus.REMOVED == context.rule.getStatus()) {
throw new Illega... | Context function(RuleUpdate change) { DbSession dbSession = dbClient.openSession(false); try { Context context = new Context(); context.rule = dbClient.ruleDao().getByKey(dbSession, change.getRuleKey()); if (RuleStatus.REMOVED == context.rule.getStatus()) { throw new IllegalArgumentException(STR + change.getRuleKey());... | /**
* Load all the DTOs required for validating changes and updating rule
*/ | Load all the DTOs required for validating changes and updating rule | newContext | {
"repo_name": "ayondeep/sonarqube",
"path": "server/sonar-server/src/main/java/org/sonar/server/rule/RuleUpdater.java",
"license": "lgpl-3.0",
"size": 13212
} | [
"org.sonar.api.rule.RuleStatus",
"org.sonar.db.DbSession",
"org.sonar.db.debt.CharacteristicDto"
] | import org.sonar.api.rule.RuleStatus; import org.sonar.db.DbSession; import org.sonar.db.debt.CharacteristicDto; | import org.sonar.api.rule.*; import org.sonar.db.*; import org.sonar.db.debt.*; | [
"org.sonar.api",
"org.sonar.db"
] | org.sonar.api; org.sonar.db; | 1,895,371 |
LaunchPermissionVO findByTemplateAndAccount(long templateId, long accountId); | LaunchPermissionVO findByTemplateAndAccount(long templateId, long accountId); | /**
* Find a launch permission by templateId, accountName, and domainId
*
* @param templateId
* the id of the template to search for
* @param accountId
* the id of the account for which permission is being searched
* @return launch permission if found, null othe... | Find a launch permission by templateId, accountName, and domainId | findByTemplateAndAccount | {
"repo_name": "mufaddalq/cloudstack-datera-driver",
"path": "engine/schema/src/com/cloud/storage/dao/LaunchPermissionDao.java",
"license": "apache-2.0",
"size": 2581
} | [
"com.cloud.storage.LaunchPermissionVO"
] | import com.cloud.storage.LaunchPermissionVO; | import com.cloud.storage.*; | [
"com.cloud.storage"
] | com.cloud.storage; | 898,237 |
@Override
public javax.xml.stream.XMLStreamReader getPullParser(final javax.xml.namespace.QName qName) throws org.apache.axis2.databinding.ADBException {
final java.util.ArrayList elementList = new java.util.ArrayList();
final java.util.ArrayList attribList = new java.util.Arr... | javax.xml.stream.XMLStreamReader function(final javax.xml.namespace.QName qName) throws org.apache.axis2.databinding.ADBException { final java.util.ArrayList elementList = new java.util.ArrayList(); final java.util.ArrayList attribList = new java.util.ArrayList(); if (this.localExtraElement != null) { elementList.add(o... | /**
* databinding method to get an XML representation of this object
*/ | databinding method to get an XML representation of this object | getPullParser | {
"repo_name": "jefperito/nfe",
"path": "src/main/java/com/fincatto/documentofiscal/cte300/webservices/recepcao/CteRecepcaoStub.java",
"license": "apache-2.0",
"size": 93543
} | [
"javax.xml.namespace.QName"
] | import javax.xml.namespace.QName; | import javax.xml.namespace.*; | [
"javax.xml"
] | javax.xml; | 2,841,207 |
@Override
public void event(final UserRequest ureq, final Controller source, final Event event) {
// at this time, we do not have any other controllers we'd like to listen for
// events to...
// If you have a formular or a table component in your velocity file the
// events (like clicking an element in the... | void function(final UserRequest ureq, final Controller source, final Event event) { } | /**
* This dispatches controller events...
*
* @see org.olat.core.gui.control.DefaultController#event(org.olat.core.gui.UserRequest, org.olat.core.gui.control.Controller, org.olat.core.gui.control.Event)
*/ | This dispatches controller events.. | event | {
"repo_name": "RLDevOps/Demo",
"path": "src/main/java/org/olat/test/TransactionTestController.java",
"license": "apache-2.0",
"size": 10452
} | [
"org.olat.core.gui.UserRequest",
"org.olat.core.gui.control.Controller",
"org.olat.core.gui.control.Event"
] | import org.olat.core.gui.UserRequest; import org.olat.core.gui.control.Controller; import org.olat.core.gui.control.Event; | import org.olat.core.gui.*; import org.olat.core.gui.control.*; | [
"org.olat.core"
] | org.olat.core; | 873,546 |
private boolean validateCredentials() {
try {
return (client.login(getUsername(), getPassword(), getTenant()));
} catch (CloudDeploymentException | HttpClientException e) {
log.error(CloudDeploymentWizardConstants.ErrorMessages.AUTHENTICATION_EXCEPTION_MESSAGE, e);
... | boolean function() { try { return (client.login(getUsername(), getPassword(), getTenant())); } catch (CloudDeploymentException HttpClientException e) { log.error(CloudDeploymentWizardConstants.ErrorMessages.AUTHENTICATION_EXCEPTION_MESSAGE, e); MessageDialog.openError(getShell(), TITLE, e.getMessage()); } catch (Networ... | /**
* Validates user credentials
*
* @return
*/ | Validates user credentials | validateCredentials | {
"repo_name": "prabushi/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.esb.cloud/src/org/wso2/developerstudio/eclipse/esb/cloud/wizard/LoginWizardPage.java",
"license": "apache-2.0",
"size": 14109
} | [
"org.eclipse.jface.dialogs.MessageDialog",
"org.wso2.developerstudio.eclipse.esb.cloud.exceptions.CloudDeploymentException",
"org.wso2.developerstudio.eclipse.esb.cloud.exceptions.HttpClientException",
"org.wso2.developerstudio.eclipse.esb.cloud.exceptions.NetworkUnavailableException",
"org.wso2.developerst... | import org.eclipse.jface.dialogs.MessageDialog; import org.wso2.developerstudio.eclipse.esb.cloud.exceptions.CloudDeploymentException; import org.wso2.developerstudio.eclipse.esb.cloud.exceptions.HttpClientException; import org.wso2.developerstudio.eclipse.esb.cloud.exceptions.NetworkUnavailableException; import org.ws... | import org.eclipse.jface.dialogs.*; import org.wso2.developerstudio.eclipse.esb.cloud.exceptions.*; import org.wso2.developerstudio.eclipse.esb.cloud.resources.*; | [
"org.eclipse.jface",
"org.wso2.developerstudio"
] | org.eclipse.jface; org.wso2.developerstudio; | 737,196 |
@Override
public boolean equals(Object other) {
if (!(other instanceof Sha256Hash)) return false;
return Arrays.equals(bytes, ((Sha256Hash) other).bytes);
} | boolean function(Object other) { if (!(other instanceof Sha256Hash)) return false; return Arrays.equals(bytes, ((Sha256Hash) other).bytes); } | /**
* Returns true if the hashes are equal.
*/ | Returns true if the hashes are equal | equals | {
"repo_name": "Ergzay/multibit",
"path": "src/main/java/com/google/bitcoin/core/Sha256Hash.java",
"license": "mit",
"size": 4269
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 2,891,173 |
private Javancss getJavaNcss(List fileList)
{
if (javancss == null)
{
log("Checking metrics on " + fileList.size() + " files");
javancss = new Javancss(fileList);
}
return javancss;
} | Javancss function(List fileList) { if (javancss == null) { log(STR + fileList.size() + STR); javancss = new Javancss(fileList); } return javancss; } | /**
* Gets the JavaNCSS object containing details of the code whose metrics are
* to be checked.
* @param fileList the files to be analysed.
* @return the JavaNCSS object containing details of the code whose metrics
* are to be checked.
*/ | Gets the JavaNCSS object containing details of the code whose metrics are to be checked | getJavaNcss | {
"repo_name": "kauffmj/razza",
"path": "tools/javancss-32.53/src/main/java/javancss/JavancssAntTask.java",
"license": "gpl-2.0",
"size": 29488
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 180,183 |
private static Mesh reorderLists(List<Vector3f> posList, List<Vector2f> textCoordList,
List<Vector3f> normList, List<Face> facesList)
{
List<Integer> indices = new ArrayList<>();
// Create position array in the order it has been declared
float[] posArr = new ... | static Mesh function(List<Vector3f> posList, List<Vector2f> textCoordList, List<Vector3f> normList, List<Face> facesList) { List<Integer> indices = new ArrayList<>(); float[] posArr = new float[posList.size() * 3]; int i = 0; for (Vector3f pos : posList) { posArr[i * 3] = pos.x; posArr[i * 3 + 1] = pos.y; posArr[i * 3 ... | /**
* Reorders all of the data lists of one Mesh.
*
* @param posList
* @param textCoordList
* @param normList
* @param facesList
* @return The Mesh with reordered data lists.
*/ | Reorders all of the data lists of one Mesh | reorderLists | {
"repo_name": "I-am-the-doctor/CubeShooter",
"path": "CubeShooter/src/kgr/engine/graph/ObjImporter.java",
"license": "lgpl-3.0",
"size": 7110
} | [
"java.util.ArrayList",
"java.util.List",
"org.joml.Vector2f",
"org.joml.Vector3f"
] | import java.util.ArrayList; import java.util.List; import org.joml.Vector2f; import org.joml.Vector3f; | import java.util.*; import org.joml.*; | [
"java.util",
"org.joml"
] | java.util; org.joml; | 257,256 |
public static String join(List<String> strings, String separator, boolean skipEmpty) {
return join(strings, separator, skipEmpty, false);
} | static String function(List<String> strings, String separator, boolean skipEmpty) { return join(strings, separator, skipEmpty, false); } | /**
* Join all strings into a new concatenated string.
* @param strings
* @param separator
* @param skipEmpty
* @return concatenated string with separator in between elements.
*/ | Join all strings into a new concatenated string | join | {
"repo_name": "vtkio/vtk",
"path": "src/main/java/vtk/util/text/TextUtils.java",
"license": "bsd-3-clause",
"size": 26605
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,274,253 |
public static Set<PortNumber> getPortNumbers(DriverHandler handler) {
BridgeConfig bridgeConfig = handler.behaviour(BridgeConfig.class);
return bridgeConfig.getPortNumbers();
} | static Set<PortNumber> function(DriverHandler handler) { BridgeConfig bridgeConfig = handler.behaviour(BridgeConfig.class); return bridgeConfig.getPortNumbers(); } | /**
* Gets ports in the controller device.
*
* @param handler DriverHandler
* @return set of port numbers
*/ | Gets ports in the controller device | getPortNumbers | {
"repo_name": "lsinfo3/onos",
"path": "apps/vtn/vtnmgr/src/main/java/org/onosproject/vtn/util/VtnConfig.java",
"license": "apache-2.0",
"size": 5186
} | [
"java.util.Set",
"org.onosproject.net.PortNumber",
"org.onosproject.net.behaviour.BridgeConfig",
"org.onosproject.net.driver.DriverHandler"
] | import java.util.Set; import org.onosproject.net.PortNumber; import org.onosproject.net.behaviour.BridgeConfig; import org.onosproject.net.driver.DriverHandler; | import java.util.*; import org.onosproject.net.*; import org.onosproject.net.behaviour.*; import org.onosproject.net.driver.*; | [
"java.util",
"org.onosproject.net"
] | java.util; org.onosproject.net; | 2,524,506 |
public static Object readRequestBodyFromServletRequest(HttpServletRequest request, Exchange exchange) throws IOException {
InputStream is = HttpConverter.toInputStream(request, exchange);
return readRequestBodyFromInputStream(is, exchange);
} | static Object function(HttpServletRequest request, Exchange exchange) throws IOException { InputStream is = HttpConverter.toInputStream(request, exchange); return readRequestBodyFromInputStream(is, exchange); } | /**
* Reads the request body from the given http servlet request.
*
* @param request http servlet request
* @param exchange the exchange
* @return the request body, can be <tt>null</tt> if no body
* @throws IOException is thrown if error reading request body
*/ | Reads the request body from the given http servlet request | readRequestBodyFromServletRequest | {
"repo_name": "grgrzybek/camel",
"path": "components/camel-http4/src/main/java/org/apache/camel/component/http4/helper/HttpHelper.java",
"license": "apache-2.0",
"size": 19629
} | [
"java.io.IOException",
"java.io.InputStream",
"javax.servlet.http.HttpServletRequest",
"org.apache.camel.Exchange",
"org.apache.camel.component.http4.HttpConverter"
] | import java.io.IOException; import java.io.InputStream; import javax.servlet.http.HttpServletRequest; import org.apache.camel.Exchange; import org.apache.camel.component.http4.HttpConverter; | import java.io.*; import javax.servlet.http.*; import org.apache.camel.*; import org.apache.camel.component.http4.*; | [
"java.io",
"javax.servlet",
"org.apache.camel"
] | java.io; javax.servlet; org.apache.camel; | 2,804,951 |
public String getTitle() {
BlogEntry blogEntry = (BlogEntry)getModel().get(Constants.BLOG_ENTRY_KEY);
return blogEntry.getTitle();
} | String function() { BlogEntry blogEntry = (BlogEntry)getModel().get(Constants.BLOG_ENTRY_KEY); return blogEntry.getTitle(); } | /**
* Gets the title of this view.
*
* @return the title as a String
*/ | Gets the title of this view | getTitle | {
"repo_name": "arshadalisoomro/pebble",
"path": "src/main/java/net/sourceforge/pebble/web/view/impl/BlogEntryView.java",
"license": "bsd-3-clause",
"size": 2757
} | [
"net.sourceforge.pebble.Constants",
"net.sourceforge.pebble.domain.BlogEntry"
] | import net.sourceforge.pebble.Constants; import net.sourceforge.pebble.domain.BlogEntry; | import net.sourceforge.pebble.*; import net.sourceforge.pebble.domain.*; | [
"net.sourceforge.pebble"
] | net.sourceforge.pebble; | 1,700,536 |
public void close() throws IOException {
eof = false;
position = 0;
mark = -1;
}
| void function() throws IOException { eof = false; position = 0; mark = -1; } | /**
* Close this input stream - resets the internal state to
* the initial values.
*
* @throws IOException If an error occurs.
*/ | Close this input stream - resets the internal state to the initial values | close | {
"repo_name": "arteam/unitils",
"path": "unitils-core/src/main/java/org/unitils/thirdparty/org/apache/commons/io/NullInputStream.java",
"license": "apache-2.0",
"size": 10944
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 675,941 |
public static void insertProductBatch(PreparedStatement stProducts,
String product_id, String product_name) throws SQLException {
stProducts.setString(1, product_id);
stProducts.setString(2, product_name);
stProducts.addBatch();
} | static void function(PreparedStatement stProducts, String product_id, String product_name) throws SQLException { stProducts.setString(1, product_id); stProducts.setString(2, product_name); stProducts.addBatch(); } | /**
* Configure insert Product PreparedStatement
* @param stProducts
* @param product_id
* @param product_name
* @throws SQLException
*/ | Configure insert Product PreparedStatement | insertProductBatch | {
"repo_name": "cedias/PIAD",
"path": "SRD/src/database/sql/ProductSQL.java",
"license": "mit",
"size": 1986
} | [
"java.sql.PreparedStatement",
"java.sql.SQLException"
] | import java.sql.PreparedStatement; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,461,640 |
@Override
public void onBackPressed() {
finish();
Intent intent = null;
if (tokenSetup && new AccessTokenManager(this).hasValidAccessToken())
intent = new Intent(this, WizNavChatActivity.class);
else if (!tokenSetup)
intent = new Intent(this, WizNavStartAc... | void function() { finish(); Intent intent = null; if (tokenSetup && new AccessTokenManager(this).hasValidAccessToken()) intent = new Intent(this, WizNavChatActivity.class); else if (!tokenSetup) intent = new Intent(this, WizNavStartActivity.class); if (intent != null) { intent.putExtra(Const.TOKEN_IS_SETUP, tokenSetup)... | /**
* If back key is pressed, open previous activity
*/ | If back key is pressed, open previous activity | onBackPressed | {
"repo_name": "DerGenaue/TumCampusApp",
"path": "app/src/main/java/de/tum/in/tumcampus/activities/wizard/WizNavExtrasActivity.java",
"license": "gpl-2.0",
"size": 3630
} | [
"android.content.Intent",
"de.tum.in.tumcampus.auxiliary.AccessTokenManager",
"de.tum.in.tumcampus.auxiliary.Const"
] | import android.content.Intent; import de.tum.in.tumcampus.auxiliary.AccessTokenManager; import de.tum.in.tumcampus.auxiliary.Const; | import android.content.*; import de.tum.in.tumcampus.auxiliary.*; | [
"android.content",
"de.tum.in"
] | android.content; de.tum.in; | 2,493,774 |
public void emptyAndCommit( PreparedStatement ps, boolean batch ) throws KettleDatabaseException {
emptyAndCommit( ps, batch, written );
} | void function( PreparedStatement ps, boolean batch ) throws KettleDatabaseException { emptyAndCommit( ps, batch, written ); } | /**
* Close the passed prepared statement. This object's "written" property is passed to the method that does the execute
* and commit.
*
* @param ps
* @param batch
* @throws KettleDatabaseException
*/ | Close the passed prepared statement. This object's "written" property is passed to the method that does the execute and commit | emptyAndCommit | {
"repo_name": "kurtwalker/pentaho-kettle",
"path": "core/src/main/java/org/pentaho/di/core/database/Database.java",
"license": "apache-2.0",
"size": 180922
} | [
"java.sql.PreparedStatement",
"org.pentaho.di.core.exception.KettleDatabaseException"
] | import java.sql.PreparedStatement; import org.pentaho.di.core.exception.KettleDatabaseException; | import java.sql.*; import org.pentaho.di.core.exception.*; | [
"java.sql",
"org.pentaho.di"
] | java.sql; org.pentaho.di; | 1,655,428 |
public void testPrimaryKeyNestedSearch() throws ApplicationException
{
NoIdKey searchObject = new NoIdKey();
searchObject.setMykey(1);
Collection results = getApplicationService().search(NoIdKey.class,searchObject );
assertNotNull(results);
assertEquals(1,results.size());
}
| void function() throws ApplicationException { NoIdKey searchObject = new NoIdKey(); searchObject.setMykey(1); Collection results = getApplicationService().search(NoIdKey.class,searchObject ); assertNotNull(results); assertEquals(1,results.size()); } | /**
* Uses Class for search
* Searches by the primary key
* Verifies size of the result set
*
* @throws ApplicationException
*/ | Uses Class for search Searches by the primary key Verifies size of the result set | testPrimaryKeyNestedSearch | {
"repo_name": "NCIP/cacore-sdk",
"path": "sdk-toolkit/example-project/junit/src/test/gov/nih/nci/cacoresdk/domain/other/primarykey/NoIdKeyTest.java",
"license": "bsd-3-clause",
"size": 2924
} | [
"gov.nih.nci.cacoresdk.domain.other.primarykey.NoIdKey",
"gov.nih.nci.system.applicationservice.ApplicationException",
"java.util.Collection"
] | import gov.nih.nci.cacoresdk.domain.other.primarykey.NoIdKey; import gov.nih.nci.system.applicationservice.ApplicationException; import java.util.Collection; | import gov.nih.nci.cacoresdk.domain.other.primarykey.*; import gov.nih.nci.system.applicationservice.*; import java.util.*; | [
"gov.nih.nci",
"java.util"
] | gov.nih.nci; java.util; | 354,120 |
private AvatarMetadataExtension.Info publishBitmap(Bitmap bmp, Bitmap.CompressFormat format, int quality) {
try {
byte[] data = getBitmapByte(bmp, format, quality);
String dataid = getAvatarId(data);
if (!publishAvatarData(data))
return null;
String mimetype = "image/png";
if (Bitmap.Com... | AvatarMetadataExtension.Info function(Bitmap bmp, Bitmap.CompressFormat format, int quality) { try { byte[] data = getBitmapByte(bmp, format, quality); String dataid = getAvatarId(data); if (!publishAvatarData(data)) return null; String mimetype = STR; if (Bitmap.CompressFormat.JPEG == format) mimetype = STR; AvatarMet... | /**
* Send this bitmap to the avatar data node of the pep server.
*
* @param bmp the avatar bitmap
* @param format the image format to publish this data
* @param quality the compression quality use for JPEG compression
* @return the resulting info associate with this bitmap. null if the op... | Send this bitmap to the avatar data node of the pep server | publishBitmap | {
"repo_name": "luozheng1985/Android-Animexxenger",
"path": "src/de/meisterfuu/animexxenger/service/BeemAvatarManager.java",
"license": "gpl-3.0",
"size": 5973
} | [
"android.graphics.Bitmap",
"de.meisterfuu.animexxenger.smack.avatar.AvatarMetadataExtension",
"java.security.NoSuchAlgorithmException"
] | import android.graphics.Bitmap; import de.meisterfuu.animexxenger.smack.avatar.AvatarMetadataExtension; import java.security.NoSuchAlgorithmException; | import android.graphics.*; import de.meisterfuu.animexxenger.smack.avatar.*; import java.security.*; | [
"android.graphics",
"de.meisterfuu.animexxenger",
"java.security"
] | android.graphics; de.meisterfuu.animexxenger; java.security; | 2,105,932 |
public String getDateFormat() {
return APConstants.DATE_FORMAT;
} | String function() { return APConstants.DATE_FORMAT; } | /**
* This method return the Date Format from APConstants class
*
* @return A dateformat (yyyy-MM-dd)
*/ | This method return the Date Format from APConstants class | getDateFormat | {
"repo_name": "CCAFS/MARLO",
"path": "marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/BaseAction.java",
"license": "gpl-3.0",
"size": 268256
} | [
"org.cgiar.ccafs.marlo.config.APConstants"
] | import org.cgiar.ccafs.marlo.config.APConstants; | import org.cgiar.ccafs.marlo.config.*; | [
"org.cgiar.ccafs"
] | org.cgiar.ccafs; | 2,570,310 |
public long getCorruptBlocksCount() throws IOException {
return namenode.getStats()[ClientProtocol.GET_STATS_CORRUPT_BLOCKS_IDX];
} | long function() throws IOException { return namenode.getStats()[ClientProtocol.GET_STATS_CORRUPT_BLOCKS_IDX]; } | /**
* Returns count of blocks with at least one replica marked corrupt.
* @throws IOException
*/ | Returns count of blocks with at least one replica marked corrupt | getCorruptBlocksCount | {
"repo_name": "tomatoKiller/Hadoop_Source_Learn",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java",
"license": "apache-2.0",
"size": 95752
} | [
"java.io.IOException",
"org.apache.hadoop.hdfs.protocol.ClientProtocol"
] | import java.io.IOException; import org.apache.hadoop.hdfs.protocol.ClientProtocol; | import java.io.*; import org.apache.hadoop.hdfs.protocol.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 1,287,723 |
@Override
public Point connectionPoint(Point anotherPt) {
double rx = _w / 2;
double ry = _h / 2;
double dx = anotherPt.x - (_x + rx);
double dy = anotherPt.y - (_y + ry);
double dd = ry * ry * dx * dx + rx * rx * dy * dy;
do... | Point function(Point anotherPt) { double rx = _w / 2; double ry = _h / 2; double dx = anotherPt.x - (_x + rx); double dy = anotherPt.y - (_y + ry); double dd = ry * ry * dx * dx + rx * rx * dy * dy; double mu = rx * ry / Math.sqrt(dd); Point res = new Point((int) (mu * dx + _x + rx), (int) (mu * dy + _y + ry)); return ... | /**
* Compute the border point of the ellipse that is on the edge
* between the stored upper left corner and the given parameter.<p>
*
* @param anotherPt The remote point to which an edge is drawn.
*
* @return The connection point on the boundary ... | Compute the border point of the ellipse that is on the edge between the stored upper left corner and the given parameter | connectionPoint | {
"repo_name": "ckaestne/LEADT",
"path": "workspace/argouml_diagrams/argouml-app/src/org/argouml/uml/diagram/use_case/ui/FigUseCase.java",
"license": "gpl-3.0",
"size": 45052
} | [
"java.awt.Point"
] | import java.awt.Point; | import java.awt.*; | [
"java.awt"
] | java.awt; | 89,873 |
protected void initializeAdbConnection() {
// Get a device bridge instance. Initialize, create and restart.
try {
AndroidDebugBridge.init(true);
} catch (IllegalStateException e) {
// When we keep the adb connection alive the AndroidDebugBridge may
// have been already
// initializ... | void function() { try { AndroidDebugBridge.init(true); } catch (IllegalStateException e) { if (!shouldKeepAdbAlive) { logger.error( STR + STR, e); throw new NestedException(STR, e); } } bridge = AndroidDebugBridge.getBridge(); if (bridge == null) { bridge = AndroidDebugBridge.createBridge(AndroidSdk.adb() .getAbsoluteP... | /**
* Initializes the AndroidDebugBridge and registers the DefaultHardwareDeviceManager with the
* AndroidDebugBridge device change listener.
*/ | Initializes the AndroidDebugBridge and registers the DefaultHardwareDeviceManager with the AndroidDebugBridge device change listener | initializeAdbConnection | {
"repo_name": "cosysoft/device",
"path": "device-api/src/main/java/com/github/cosysoft/device/android/impl/AndroidDeviceStore.java",
"license": "apache-2.0",
"size": 4455
} | [
"com.android.ddmlib.AndroidDebugBridge",
"com.android.ddmlib.IDevice",
"com.github.cosysoft.device.exception.NestedException",
"com.github.cosysoft.device.shell.AndroidSdk"
] | import com.android.ddmlib.AndroidDebugBridge; import com.android.ddmlib.IDevice; import com.github.cosysoft.device.exception.NestedException; import com.github.cosysoft.device.shell.AndroidSdk; | import com.android.ddmlib.*; import com.github.cosysoft.device.exception.*; import com.github.cosysoft.device.shell.*; | [
"com.android.ddmlib",
"com.github.cosysoft"
] | com.android.ddmlib; com.github.cosysoft; | 1,165,315 |
public EList<Term> getAllDimensionsOrdered(){
EList<Term> allTerms = new BasicEList<Term>();
EList<Term> allClasses = getMainDimensions();
for (Term t : allClasses) {
allTerms.add(t);
allTerms.addAll(getAllSubdimenions(t));
}
return allTerms;
}
| EList<Term> function(){ EList<Term> allTerms = new BasicEList<Term>(); EList<Term> allClasses = getMainDimensions(); for (Term t : allClasses) { allTerms.add(t); allTerms.addAll(getAllSubdimenions(t)); } return allTerms; } | /**
* Generates a list of all dimensions and their sub dimensions.
* Order: Every dimension has as successor - if existent - it's first child. If not present,
* it's the next dimension of the same or higher level.
* @return
*/ | Generates a list of all dimensions and their sub dimensions. Order: Every dimension has as successor - if existent - it's first child. If not present, it's the next dimension of the same or higher level | getAllDimensionsOrdered | {
"repo_name": "sebastiangoetz/slr-toolkit",
"path": "plugins/de.tudresden.slr.metainformation/src/de/tudresden/slr/metainformation/util/DataProvider.java",
"license": "epl-1.0",
"size": 2670
} | [
"de.tudresden.slr.model.taxonomy.Term",
"org.eclipse.emf.common.util.BasicEList",
"org.eclipse.emf.common.util.EList"
] | import de.tudresden.slr.model.taxonomy.Term; import org.eclipse.emf.common.util.BasicEList; import org.eclipse.emf.common.util.EList; | import de.tudresden.slr.model.taxonomy.*; import org.eclipse.emf.common.util.*; | [
"de.tudresden.slr",
"org.eclipse.emf"
] | de.tudresden.slr; org.eclipse.emf; | 1,416,732 |
public List<String> getAssociations(); | List<String> function(); | /**
* {@link Association} configured for this Server
* Anonymous associations are not present in this list
*
* @return
*/ | <code>Association</code> configured for this Server Anonymous associations are not present in this list | getAssociations | {
"repo_name": "RestComm/sctp",
"path": "sctp-api/src/main/java/org/mobicents/protocols/api/Server.java",
"license": "agpl-3.0",
"size": 2675
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,619,142 |
List<ObjectModel> getTaskEventListeners(); | List<ObjectModel> getTaskEventListeners(); | /**
* Returns list of task event listeners to be applied on <code>KieSession</code>
* @return
*/ | Returns list of task event listeners to be applied on <code>KieSession</code> | getTaskEventListeners | {
"repo_name": "etirelli/droolsjbpm-knowledge",
"path": "kie-internal/src/main/java/org/kie/internal/runtime/conf/DeploymentDescriptor.java",
"license": "apache-2.0",
"size": 5362
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,655,909 |
public int updateCostMultiplicatorRadial(double lon, double lat, double radius_m, String costMetric,
double costMultiplicatorValue) throws SQLException {
String metricColumnName = getColumnByMetric(costMetric);
// no prepared statement since layer is not a value
String sql = "UPDATE ways SET " + metricColum... | int function(double lon, double lat, double radius_m, String costMetric, double costMultiplicatorValue) throws SQLException { String metricColumnName = getColumnByMetric(costMetric); String sql = STR + metricColumnName + STR + costMultiplicatorValue + STR + lon + " " + lat + STR + radius_m + ")"; System.out.println(sql... | /**
* Update one of the costMultiplicator Layers around a certain point, e.g.
* to set higher routing cost for pollution
*
* @param lon
* WGS 84 longitude
* @param lat
* WGS 84 latitude
* @param radius_m
* radius around this point where edges of the graph will get a
... | Update one of the costMultiplicator Layers around a certain point, e.g. to set higher routing cost for pollution | updateCostMultiplicatorRadial | {
"repo_name": "GIlyass/TouristScheduler",
"path": "RequestHandler/src/eu/citypulse/uaso/gdiclient/CpGdiInterface.java",
"license": "mit",
"size": 50557
} | [
"java.sql.SQLException",
"java.sql.Statement"
] | import java.sql.SQLException; import java.sql.Statement; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,578,060 |
public boolean isSet(String param) {
return this.containsKey(param) && this.get(param) != null;
}
}
private static final Logger _log = LoggerFactory.getLogger(TasksCollector.class);
private final Configuration conf = Configuration.getInstance();
private final ArrayList<TaskH... | boolean function(String param) { return this.containsKey(param) && this.get(param) != null; } } private static final Logger _log = LoggerFactory.getLogger(TasksCollector.class); private final Configuration conf = Configuration.getInstance(); private final ArrayList<TaskHolder<Task>> _tasks = new ArrayList<TaskHolder<Ta... | /**
* Tells whether a parameter is defined and has a non-null value
*/ | Tells whether a parameter is defined and has a non-null value | isSet | {
"repo_name": "vertig/tempo",
"path": "ui-fw/src/main/java/org/intalio/tempo/uiframework/actions/TasksCollector.java",
"license": "epl-1.0",
"size": 7456
} | [
"java.util.ArrayList",
"javax.servlet.http.HttpServletRequestWrapper",
"org.intalio.tempo.uiframework.Configuration",
"org.intalio.tempo.uiframework.model.TaskHolder",
"org.intalio.tempo.workflow.task.Task",
"org.slf4j.Logger",
"org.slf4j.LoggerFactory"
] | import java.util.ArrayList; import javax.servlet.http.HttpServletRequestWrapper; import org.intalio.tempo.uiframework.Configuration; import org.intalio.tempo.uiframework.model.TaskHolder; import org.intalio.tempo.workflow.task.Task; import org.slf4j.Logger; import org.slf4j.LoggerFactory; | import java.util.*; import javax.servlet.http.*; import org.intalio.tempo.uiframework.*; import org.intalio.tempo.uiframework.model.*; import org.intalio.tempo.workflow.task.*; import org.slf4j.*; | [
"java.util",
"javax.servlet",
"org.intalio.tempo",
"org.slf4j"
] | java.util; javax.servlet; org.intalio.tempo; org.slf4j; | 2,318,105 |
private MarsClock getArrivalDate() {
MarsClock result = (MarsClock) marsClock.clone();
if (arrivalDateRB.isSelected()) {
// Determine arrival date from arrival date combo boxes.
try {
int sol = solCB.getSelectedIndex() + 1;
int month = monthCB.getSelectedIndex() + 1;
int orbit = Inte... | MarsClock function() { MarsClock result = (MarsClock) marsClock.clone(); if (arrivalDateRB.isSelected()) { try { int sol = solCB.getSelectedIndex() + 1; int month = monthCB.getSelectedIndex() + 1; int orbit = Integer.parseInt((String) orbitCB.getSelectedItem()); double millisols = 0D; if ((sol == marsClock.getSolOfMont... | /**
* Gets the arrival date from the UI values.
*
* @return arrival date as MarsClock instance.
*/ | Gets the arrival date from the UI values | getArrivalDate | {
"repo_name": "mars-sim/mars-sim",
"path": "mars-sim-ui/src/main/java/org/mars_sim/msp/ui/swing/tool/resupply/ArrivingSettlementEditingPanel.java",
"license": "gpl-3.0",
"size": 38176
} | [
"org.mars_sim.msp.core.time.MarsClock"
] | import org.mars_sim.msp.core.time.MarsClock; | import org.mars_sim.msp.core.time.*; | [
"org.mars_sim.msp"
] | org.mars_sim.msp; | 2,858,540 |
FlowFileRecord poll(Set<FlowFileRecord> expiredRecords, final PollStrategy pollStrategy); | FlowFileRecord poll(Set<FlowFileRecord> expiredRecords, final PollStrategy pollStrategy); | /**
* Returns a single FlowFile with the highest priority that is available in the partition, or <code>null</code> if no FlowFile is available
*
* @param expiredRecords a Set of FlowFileRecord's to which any expired records that are encountered should be added
* @param pollStrategy strategy of polli... | Returns a single FlowFile with the highest priority that is available in the partition, or <code>null</code> if no FlowFile is available | poll | {
"repo_name": "MikeThomsen/nifi",
"path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/queue/clustered/partition/LocalQueuePartition.java",
"license": "apache-2.0",
"size": 5538
} | [
"java.util.Set",
"org.apache.nifi.controller.queue.PollStrategy",
"org.apache.nifi.controller.repository.FlowFileRecord"
] | import java.util.Set; import org.apache.nifi.controller.queue.PollStrategy; import org.apache.nifi.controller.repository.FlowFileRecord; | import java.util.*; import org.apache.nifi.controller.queue.*; import org.apache.nifi.controller.repository.*; | [
"java.util",
"org.apache.nifi"
] | java.util; org.apache.nifi; | 450,735 |
@Override
public void close() {
for (ValueVector vector:(Iterable<ValueVector>)this) {
vector.close();
}
} | void function() { for (ValueVector vector:(Iterable<ValueVector>)this) { vector.close(); } } | /**
* Clears out all underlying child vectors.
*/ | Clears out all underlying child vectors | close | {
"repo_name": "myroch/drill",
"path": "exec/vector/src/main/java/org/apache/drill/exec/vector/complex/AbstractContainerVector.java",
"license": "apache-2.0",
"size": 5114
} | [
"org.apache.drill.exec.vector.ValueVector"
] | import org.apache.drill.exec.vector.ValueVector; | import org.apache.drill.exec.vector.*; | [
"org.apache.drill"
] | org.apache.drill; | 1,939,282 |
public static <TOuter, TInner, TKey, TResult> Enumerable<TResult> groupJoin(
Queryable<TOuter> outer, Enumerable<TInner> inner,
FunctionExpression<Function1<TOuter, TKey>> outerKeySelector,
FunctionExpression<Function1<TInner, TKey>> innerKeySelector,
FunctionExpression<Function2<TOuter, Enume... | static <TOuter, TInner, TKey, TResult> Enumerable<TResult> function( Queryable<TOuter> outer, Enumerable<TInner> inner, FunctionExpression<Function1<TOuter, TKey>> outerKeySelector, FunctionExpression<Function1<TInner, TKey>> innerKeySelector, FunctionExpression<Function2<TOuter, Enumerable<TInner>, TResult>> resultSel... | /**
* Correlates the elements of two sequences based on
* key equality and groups the results. A specified
* {@code EqualityComparer<T>} is used to compare keys.
*/ | Correlates the elements of two sequences based on key equality and groups the results. A specified EqualityComparer is used to compare keys | groupJoin | {
"repo_name": "YrAuYong/incubator-calcite",
"path": "linq4j/src/main/java/org/apache/calcite/linq4j/QueryableDefaults.java",
"license": "apache-2.0",
"size": 39863
} | [
"org.apache.calcite.linq4j.function.EqualityComparer",
"org.apache.calcite.linq4j.function.Function1",
"org.apache.calcite.linq4j.function.Function2",
"org.apache.calcite.linq4j.tree.FunctionExpression"
] | import org.apache.calcite.linq4j.function.EqualityComparer; import org.apache.calcite.linq4j.function.Function1; import org.apache.calcite.linq4j.function.Function2; import org.apache.calcite.linq4j.tree.FunctionExpression; | import org.apache.calcite.linq4j.function.*; import org.apache.calcite.linq4j.tree.*; | [
"org.apache.calcite"
] | org.apache.calcite; | 1,854,948 |
public void loadXML( Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, OverwritePrompter prompter )
throws KettleXMLException {
loadXML( jobnode, null, rep, ignoreRepositorySharedObjects, prompter );
} | void function( Node jobnode, Repository rep, boolean ignoreRepositorySharedObjects, OverwritePrompter prompter ) throws KettleXMLException { loadXML( jobnode, null, rep, ignoreRepositorySharedObjects, prompter ); } | /**
* Load a block of XML from an DOM node.
*
* @param jobnode The node to load from
* @param rep The reference to a repository to load additional information from
* @param ignoreRepositorySharedObjects Do not load shared objects, handled separately
* @p... | Load a block of XML from an DOM node | loadXML | {
"repo_name": "AlexanderBuloichik/pentaho-kettle",
"path": "engine/src/main/java/org/pentaho/di/job/JobMeta.java",
"license": "apache-2.0",
"size": 88100
} | [
"org.pentaho.di.core.exception.KettleXMLException",
"org.pentaho.di.core.gui.OverwritePrompter",
"org.pentaho.di.repository.Repository",
"org.w3c.dom.Node"
] | import org.pentaho.di.core.exception.KettleXMLException; import org.pentaho.di.core.gui.OverwritePrompter; import org.pentaho.di.repository.Repository; import org.w3c.dom.Node; | import org.pentaho.di.core.exception.*; import org.pentaho.di.core.gui.*; import org.pentaho.di.repository.*; import org.w3c.dom.*; | [
"org.pentaho.di",
"org.w3c.dom"
] | org.pentaho.di; org.w3c.dom; | 27,114 |
public Item scrollUp(int x, int y) {
return null;
} | Item function(int x, int y) { return null; } | /**
* Scrolls the viewer's control up by one item from the given
* display-relative coordinates. Returns the newly revealed Item,
* or <code>null</code> if no scrolling occurred or if the viewer
* doesn't represent an item-based widget.
*
* @param x horizontal coordinate
* @param y v... | Scrolls the viewer's control up by one item from the given display-relative coordinates. Returns the newly revealed Item, or <code>null</code> if no scrolling occurred or if the viewer doesn't represent an item-based widget | scrollUp | {
"repo_name": "ControlSystemStudio/org.csstudio.iter",
"path": "plugins/org.eclipse.jface/src/org/eclipse/jface/viewers/Viewer.java",
"license": "epl-1.0",
"size": 13139
} | [
"org.eclipse.swt.widgets.Item"
] | import org.eclipse.swt.widgets.Item; | import org.eclipse.swt.widgets.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 1,536,758 |
// mandatory call to parent
super.setup(sysConfig);
// obtain type of constructor being used
cType = sysConfig.getIntConfigVal("iiop.util.constructorType",
NOARG_FACTORY);
if ((cType != NOARG_FACTORY) && (cType != ORB_FACTORY)) {
throw new TestException("Inv... | super.setup(sysConfig); cType = sysConfig.getIntConfigVal(STR, NOARG_FACTORY); if ((cType != NOARG_FACTORY) && (cType != ORB_FACTORY)) { throw new TestException(STR + cType + STR + NOARG_FACTORY + STR + ORB_FACTORY); } if (cType == ORB_FACTORY) { useNullOrb = sysConfig.getBooleanConfigVal(STR, false); if (!useNullOrb) ... | /**
* Sets up the testing environment.
*
* @param sysConfig Configuration for setup.
*/ | Sets up the testing environment | setup | {
"repo_name": "cdegroot/river",
"path": "qa/src/com/sun/jini/test/spec/iiop/util/AbstractTestBase.java",
"license": "apache-2.0",
"size": 4702
} | [
"com.sun.jini.qa.harness.TestException",
"org.omg.CORBA"
] | import com.sun.jini.qa.harness.TestException; import org.omg.CORBA; | import com.sun.jini.qa.harness.*; import org.omg.*; | [
"com.sun.jini",
"org.omg"
] | com.sun.jini; org.omg; | 1,813,540 |
protected boolean seekCloseOfStartTag() throws IOException, XNIException {
// spaces
boolean sawSpace = fEntityScanner.skipSpaces();
// end tag?
final int c = fEntityScanner.peekChar();
if (c == '>') {
fEntityScanner.scanChar();
return true;
}... | boolean function() throws IOException, XNIException { boolean sawSpace = fEntityScanner.skipSpaces(); final int c = fEntityScanner.peekChar(); if (c == '>') { fEntityScanner.scanChar(); return true; } else if (c == '/') { fEntityScanner.scanChar(); if (!fEntityScanner.skipChar('>')) { reportFatalError(STR, new Object[]... | /**
* Looks for the close of start tag, i.e. if it finds '>' or '/>'
* Characters are consumed.
*/ | Looks for the close of start tag, i.e. if it finds '>' or '/>' Characters are consumed | seekCloseOfStartTag | {
"repo_name": "shelan/jdk9-mirror",
"path": "jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/XMLDocumentFragmentScannerImpl.java",
"license": "gpl-2.0",
"size": 134769
} | [
"com.sun.org.apache.xerces.internal.xni.XNIException",
"java.io.IOException"
] | import com.sun.org.apache.xerces.internal.xni.XNIException; import java.io.IOException; | import com.sun.org.apache.xerces.internal.xni.*; import java.io.*; | [
"com.sun.org",
"java.io"
] | com.sun.org; java.io; | 605,163 |
public void saveRoute(final DataOutputStream dos, final Route route)
throws IOException {
dos.writeDouble(route.getStartX());
dos.writeDouble(route.getStartY());
dos.writeDouble(route.getEndX());
dos.writeDouble(route.getEndY());
// @TODO: Mx and My should be removed, because they are calcul... | void function(final DataOutputStream dos, final Route route) throws IOException { dos.writeDouble(route.getStartX()); dos.writeDouble(route.getStartY()); dos.writeDouble(route.getEndX()); dos.writeDouble(route.getEndY()); dos.writeDouble(route.getMx()); dos.writeDouble(route.getMy()); dos.writeInt(route.getFtlSpeed());... | /**
* Save Route to DataOutputStream
* @param dos DataOutputStream
* @param route Route to save
* @throws IOException if there is any problem with DataOutputStream
*/ | Save Route to DataOutputStream | saveRoute | {
"repo_name": "sigee/Open-Realms-of-Stars",
"path": "src/main/java/org/openRealmOfStars/utilities/repository/RouteRepository.java",
"license": "gpl-2.0",
"size": 2456
} | [
"java.io.DataOutputStream",
"java.io.IOException"
] | import java.io.DataOutputStream; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,000,128 |
public List<com.mozu.api.contracts.productadmin.LocationInventory> addLocationInventory(List<com.mozu.api.contracts.productadmin.LocationInventory> locationInventoryList, String productCode) throws Exception
{
return addLocationInventory( locationInventoryList, productCode, null);
} | List<com.mozu.api.contracts.productadmin.LocationInventory> function(List<com.mozu.api.contracts.productadmin.LocationInventory> locationInventoryList, String productCode) throws Exception { return addLocationInventory( locationInventoryList, productCode, null); } | /**
* Creates a new location inventory definition for the product code specified in the request.
* <p><pre><code>
* LocationInventory locationinventory = new LocationInventory();
* LocationInventory locationInventory = locationinventory.addLocationInventory( locationInventoryList, productCode);
* </code></pr... | Creates a new location inventory definition for the product code specified in the request. <code><code> LocationInventory locationinventory = new LocationInventory(); LocationInventory locationInventory = locationinventory.addLocationInventory( locationInventoryList, productCode); </code></code> | addLocationInventory | {
"repo_name": "sanjaymandadi/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/catalog/admin/products/LocationInventoryResource.java",
"license": "mit",
"size": 22955
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 553,586 |
public Version getVersion() {
return version;
} | Version function() { return version; } | /**
* Gets the semantic version of this add-on.
*
* <p>Since 2.7.0, for add-ons that use just an integer as the version it's appended ".0.0", for
* example, for version {@literal 14} it returns the version {@literal 14.0.0}.
*
* @return the semantic version of the add-on, since 2.7.0, neve... | Gets the semantic version of this add-on. Since 2.7.0, for add-ons that use just an integer as the version it's appended ".0.0", for example, for version 14 it returns the version 14.0.0 | getVersion | {
"repo_name": "gmaran23/zaproxy",
"path": "zap/src/main/java/org/zaproxy/zap/control/AddOn.java",
"license": "apache-2.0",
"size": 85984
} | [
"org.zaproxy.zap.Version"
] | import org.zaproxy.zap.Version; | import org.zaproxy.zap.*; | [
"org.zaproxy.zap"
] | org.zaproxy.zap; | 490,447 |
@NonNull
public static File getStorageSec() {
return getStorageSpecific(true);
} | static File function() { return getStorageSpecific(true); } | /**
* Return the secondary storage cache root (phone if external media is mounted, external media otherwise).
*
* @return the root of the cache directory
*/ | Return the secondary storage cache root (phone if external media is mounted, external media otherwise) | getStorageSec | {
"repo_name": "mucek4/cgeo",
"path": "main/src/cgeo/geocaching/storage/LocalStorage.java",
"license": "apache-2.0",
"size": 17156
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 1,505 |
protected void drawHorizontalCrosshair(Graphics2D g2, Rectangle2D dataArea,
double y, Crosshair crosshair) {
if (y >= dataArea.getMinY() && y <= dataArea.getMaxY()) {
Line2D line = new Line2D.Double(dataArea.getMinX(), y,
dataArea.getMaxX(), y);
Paint... | void function(Graphics2D g2, Rectangle2D dataArea, double y, Crosshair crosshair) { if (y >= dataArea.getMinY() && y <= dataArea.getMaxY()) { Line2D line = new Line2D.Double(dataArea.getMinX(), y, dataArea.getMaxX(), y); Paint savedPaint = g2.getPaint(); Stroke savedStroke = g2.getStroke(); g2.setPaint(crosshair.getPai... | /**
* Draws a crosshair horizontally across the plot.
*
* @param g2 the graphics target.
* @param dataArea the data area.
* @param y the y-value in Java2D space.
* @param crosshair the crosshair.
*/ | Draws a crosshair horizontally across the plot | drawHorizontalCrosshair | {
"repo_name": "GitoMat/jfreechart",
"path": "src/main/java/org/jfree/chart/panel/CrosshairOverlay.java",
"license": "lgpl-2.1",
"size": 21505
} | [
"java.awt.Graphics2D",
"java.awt.Paint",
"java.awt.Shape",
"java.awt.Stroke",
"java.awt.geom.Line2D",
"java.awt.geom.Point2D",
"java.awt.geom.Rectangle2D",
"org.jfree.chart.plot.Crosshair",
"org.jfree.text.TextUtilities",
"org.jfree.ui.RectangleAnchor",
"org.jfree.ui.TextAnchor"
] | import java.awt.Graphics2D; import java.awt.Paint; import java.awt.Shape; import java.awt.Stroke; import java.awt.geom.Line2D; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; import org.jfree.chart.plot.Crosshair; import org.jfree.text.TextUtilities; import org.jfree.ui.RectangleAnchor; import org.jfree... | import java.awt.*; import java.awt.geom.*; import org.jfree.chart.plot.*; import org.jfree.text.*; import org.jfree.ui.*; | [
"java.awt",
"org.jfree.chart",
"org.jfree.text",
"org.jfree.ui"
] | java.awt; org.jfree.chart; org.jfree.text; org.jfree.ui; | 2,233,528 |
public static JButton getShowSydneyButton(final JXMapViewer mapViewer) {
final JButton showHagenButton = new JButton("Show Sydney");
showHagenButton.addActionListener((l) -> {
showSydney(mapViewer);
}
);
return showHagenButton;
}
| static JButton function(final JXMapViewer mapViewer) { final JButton showHagenButton = new JButton(STR); showHagenButton.addActionListener((l) -> { showSydney(mapViewer); } ); return showHagenButton; } | /**
* Get the show hagen button
* @return
*/ | Get the show hagen button | getShowSydneyButton | {
"repo_name": "jnidzwetzki/bboxdb",
"path": "bboxdb-tools/src/main/java/org/bboxdb/tools/gui/util/MapViewerFactory.java",
"license": "apache-2.0",
"size": 6839
} | [
"javax.swing.JButton",
"org.jxmapviewer.JXMapViewer"
] | import javax.swing.JButton; import org.jxmapviewer.JXMapViewer; | import javax.swing.*; import org.jxmapviewer.*; | [
"javax.swing",
"org.jxmapviewer"
] | javax.swing; org.jxmapviewer; | 496,522 |
public List<Record> rrs() {
return rrs(true);
} | List<Record> function() { return rrs(true); } | /**
* Returns a list of all data records. This cycles through the records, so that each returned list
* will start with a different record.
*/ | Returns a list of all data records. This cycles through the records, so that each returned list will start with a different record | rrs | {
"repo_name": "dnsjava/dnsjava",
"path": "src/main/java/org/xbill/DNS/RRset.java",
"license": "bsd-3-clause",
"size": 6867
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,183,529 |
public static ByteBuffer copy(ByteBuffer buffer, int count, BufferAllocator<ByteBuffer> allocator) {
final int oldRem = buffer.remaining();
if (count > oldRem || count < -oldRem) {
throw msg.bufferUnderflow();
}
final int oldPos = buffer.position();
final int oldL... | static ByteBuffer function(ByteBuffer buffer, int count, BufferAllocator<ByteBuffer> allocator) { final int oldRem = buffer.remaining(); if (count > oldRem count < -oldRem) { throw msg.bufferUnderflow(); } final int oldPos = buffer.position(); final int oldLim = buffer.limit(); if (count < 0) { final ByteBuffer target ... | /**
* Copy a portion of the buffer into a newly allocated buffer. The original buffer's position will be moved up past the copy that was taken.
*
* @param buffer the buffer to slice
* @param count the size of the copy
* @param allocator the buffer allocator to use
* @return the buffer sli... | Copy a portion of the buffer into a newly allocated buffer. The original buffer's position will be moved up past the copy that was taken | copy | {
"repo_name": "stuartwdouglas/xnio",
"path": "api/src/main/java/org/xnio/Buffers.java",
"license": "apache-2.0",
"size": 86113
} | [
"java.nio.ByteBuffer"
] | import java.nio.ByteBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 864,555 |
public static void depositBank(Player player, double amount) {
depositBank(player, player.getWorld(), amount);
}
| static void function(Player player, double amount) { depositBank(player, player.getWorld(), amount); } | /**
* Deposits the specified amount of money to the specified player's bank.
*
* @param player The player to deposit money to.
* @param amount The amount of money to deposit.
*/ | Deposits the specified amount of money to the specified player's bank | depositBank | {
"repo_name": "mastercake10/TimeIsMoney",
"path": "Plugin/src/main/java/de/Linus122/TimeIsMoney/ATM.java",
"license": "gpl-3.0",
"size": 17467
} | [
"org.bukkit.entity.Player"
] | import org.bukkit.entity.Player; | import org.bukkit.entity.*; | [
"org.bukkit.entity"
] | org.bukkit.entity; | 964,555 |
@FIXVersion(introduced = "5.0SP1")
@TagNumRef(tagNum = TagNum.DerivativeEncodedIssuerLen)
public void setDerivativeEncodedIssuerLen(Integer derivativeEncodedIssuerLen) {
this.derivativeEncodedIssuerLen = derivativeEncodedIssuerLen;
} | @FIXVersion(introduced = STR) @TagNumRef(tagNum = TagNum.DerivativeEncodedIssuerLen) void function(Integer derivativeEncodedIssuerLen) { this.derivativeEncodedIssuerLen = derivativeEncodedIssuerLen; } | /**
* Message field setter.
* @param derivativeEncodedIssuerLen field value
*/ | Message field setter | setDerivativeEncodedIssuerLen | {
"repo_name": "marvisan/HadesFIX",
"path": "Model/src/main/java/net/hades/fix/message/comp/DerivativeInstrument.java",
"license": "gpl-3.0",
"size": 83551
} | [
"net.hades.fix.message.anno.FIXVersion",
"net.hades.fix.message.anno.TagNumRef",
"net.hades.fix.message.type.TagNum"
] | import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum; | import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*; | [
"net.hades.fix"
] | net.hades.fix; | 2,057,130 |
public XYSeriesLabelGenerator getLegendItemToolTipGenerator() {
return this.legendItemToolTipGenerator;
}
| XYSeriesLabelGenerator function() { return this.legendItemToolTipGenerator; } | /**
* Returns the legend item tool tip generator.
*
* @return The tool tip generator (possibly <code>null</code>).
*
* @see #setLegendItemToolTipGenerator(XYSeriesLabelGenerator)
* @since 1.0.14
*/ | Returns the legend item tool tip generator | getLegendItemToolTipGenerator | {
"repo_name": "greearb/jfreechart-fse-ct",
"path": "src/main/java/org/jfree/chart/renderer/DefaultPolarItemRenderer.java",
"license": "lgpl-2.1",
"size": 32031
} | [
"org.jfree.chart.labels.XYSeriesLabelGenerator"
] | import org.jfree.chart.labels.XYSeriesLabelGenerator; | import org.jfree.chart.labels.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 1,827,349 |
Observable<Exercise> exerciseUpdate(final Exercise exercise); | Observable<Exercise> exerciseUpdate(final Exercise exercise); | /**
* Get an {@link rx.Observable} which will emit a {@link Exercise}.
*
* @param exercise The {@link Exercise} that is goint to be updated
*/ | Get an <code>rx.Observable</code> which will emit a <code>Exercise</code> | exerciseUpdate | {
"repo_name": "JJzcru/Luft",
"path": "app/src/main/java/com/jjzcru/luft/data/repository/datasource/exercise/ExerciseDataStore.java",
"license": "mit",
"size": 1327
} | [
"com.jjzcru.luft.domain.Exercise"
] | import com.jjzcru.luft.domain.Exercise; | import com.jjzcru.luft.domain.*; | [
"com.jjzcru.luft"
] | com.jjzcru.luft; | 85,137 |
Cache<RBIndexKey, RBNode<?, ?>> getIndexCache(); | Cache<RBIndexKey, RBNode<?, ?>> getIndexCache(); | /**
* Get cache for index-structures.
*
* @return the cache
*/ | Get cache for index-structures | getIndexCache | {
"repo_name": "sirixdb/sirix",
"path": "bundles/sirix-core/src/main/java/org/sirix/api/ResourceManager.java",
"license": "bsd-3-clause",
"size": 15075
} | [
"org.sirix.cache.Cache",
"org.sirix.cache.RBIndexKey",
"org.sirix.index.redblacktree.RBNode"
] | import org.sirix.cache.Cache; import org.sirix.cache.RBIndexKey; import org.sirix.index.redblacktree.RBNode; | import org.sirix.cache.*; import org.sirix.index.redblacktree.*; | [
"org.sirix.cache",
"org.sirix.index"
] | org.sirix.cache; org.sirix.index; | 1,127,096 |
public void setExpressionValidator( IExpressionValidator exprValidator )
{
this.exprValidator = exprValidator;
}
}
public static class ChartExpressionComboHelper extends ChartExpressionHelper
{
protected final boolean bCacheUserInput = true;
public ChartExpressionComboHelper( boolean isCube )
{
... | void function( IExpressionValidator exprValidator ) { this.exprValidator = exprValidator; } } public static class ChartExpressionComboHelper extends ChartExpressionHelper { protected final boolean bCacheUserInput = true; public ChartExpressionComboHelper( boolean isCube ) { super( isCube ); } | /**
* Sets expression validator.
*
* @param exprValidator
*/ | Sets expression validator | setExpressionValidator | {
"repo_name": "sguan-actuate/birt",
"path": "chart/org.eclipse.birt.chart.reportitem.ui/src/org/eclipse/birt/chart/reportitem/ui/ChartExpressionButtonUtil.java",
"license": "epl-1.0",
"size": 11048
} | [
"org.eclipse.birt.chart.ui.swt.interfaces.IExpressionValidator"
] | import org.eclipse.birt.chart.ui.swt.interfaces.IExpressionValidator; | import org.eclipse.birt.chart.ui.swt.interfaces.*; | [
"org.eclipse.birt"
] | org.eclipse.birt; | 2,830,120 |
public void writeEntityToNBT(NBTTagCompound compound)
{
super.writeEntityToNBT(compound);
compound.setInteger("Invul", this.getInvulTime());
} | void function(NBTTagCompound compound) { super.writeEntityToNBT(compound); compound.setInteger("Invul", this.getInvulTime()); } | /**
* (abstract) Protected helper method to write subclass entity data to NBT.
*/ | (abstract) Protected helper method to write subclass entity data to NBT | writeEntityToNBT | {
"repo_name": "Severed-Infinity/technium",
"path": "build/tmp/recompileMc/sources/net/minecraft/entity/boss/EntityWither.java",
"license": "gpl-3.0",
"size": 26927
} | [
"net.minecraft.nbt.NBTTagCompound"
] | import net.minecraft.nbt.NBTTagCompound; | import net.minecraft.nbt.*; | [
"net.minecraft.nbt"
] | net.minecraft.nbt; | 329,193 |
public void watchCacheDirs(List<Long> dirIds, TTableName tblName) {
tableLoadingMgr_.watchCacheDirs(dirIds, tblName);
} | void function(List<Long> dirIds, TTableName tblName) { tableLoadingMgr_.watchCacheDirs(dirIds, tblName); } | /**
* Adds a list of cache directive IDs for the given table name. Asynchronously
* refreshes the table metadata once all cache directives complete.
*/ | Adds a list of cache directive IDs for the given table name. Asynchronously refreshes the table metadata once all cache directives complete | watchCacheDirs | {
"repo_name": "cloudera/recordservice",
"path": "fe/src/main/java/com/cloudera/impala/catalog/CatalogServiceCatalog.java",
"license": "apache-2.0",
"size": 47559
} | [
"com.cloudera.impala.thrift.TTableName",
"java.util.List"
] | import com.cloudera.impala.thrift.TTableName; import java.util.List; | import com.cloudera.impala.thrift.*; import java.util.*; | [
"com.cloudera.impala",
"java.util"
] | com.cloudera.impala; java.util; | 2,369,595 |
private void setUpBackround() {
setBackgroundTexture(MALevelAssets.sky, Scaling.stretch, true, false);
} | void function() { setBackgroundTexture(MALevelAssets.sky, Scaling.stretch, true, false); } | /**
* Sets the up backround.
*/ | Sets the up backround | setUpBackround | {
"repo_name": "alu0100694765/MathAttack",
"path": "core/src/com/sawan/mathattack/game/layers/WorldLayerBG.java",
"license": "gpl-2.0",
"size": 5443
} | [
"com.badlogic.gdx.utils.Scaling",
"com.sawan.mathattack.asset.levels.MALevelAssets"
] | import com.badlogic.gdx.utils.Scaling; import com.sawan.mathattack.asset.levels.MALevelAssets; | import com.badlogic.gdx.utils.*; import com.sawan.mathattack.asset.levels.*; | [
"com.badlogic.gdx",
"com.sawan.mathattack"
] | com.badlogic.gdx; com.sawan.mathattack; | 66,787 |
void error(RESTException e); | void error(RESTException e); | /**
* <p>
* Called when the OAuth process ends with an error
*
* </p>
*
* @param e
* the RESTException returned from the server
*
* @see RESTException
*/ | Called when the OAuth process ends with an error | error | {
"repo_name": "spiffyui/spiffyui",
"path": "spiffyui/src/main/java/org/spiffyui/client/rest/v2/RESTOAuthProvider.java",
"license": "apache-2.0",
"size": 2910
} | [
"org.spiffyui.client.rest.RESTException"
] | import org.spiffyui.client.rest.RESTException; | import org.spiffyui.client.rest.*; | [
"org.spiffyui.client"
] | org.spiffyui.client; | 2,557,497 |
public static void parse(final PgDatabase database,
final String statement, final boolean outputIgnoredStatements) {
final Parser parser = new Parser(statement);
parser.expect("COMMENT", "ON");
if (parser.expectOptional("TABLE")) {
parseTable(parser, database);
... | static void function(final PgDatabase database, final String statement, final boolean outputIgnoredStatements) { final Parser parser = new Parser(statement); parser.expect(STR, "ON"); if (parser.expectOptional("TABLE")) { parseTable(parser, database); } else if (parser.expectOptional(STR)) { parseColumn(parser, databas... | /**
* Parses COMMENT statements.
*
* @param database database
* @param statement COMMENT statement
* @param outputIgnoredStatements whether ignored statements should be
* output into the diff
*/ | Parses COMMENT statements | parse | {
"repo_name": "divinebovine/apgdiff",
"path": "src/main/java/cz/startnet/utils/pgdiff/parsers/CommentParser.java",
"license": "mit",
"size": 12156
} | [
"cz.startnet.utils.pgdiff.schema.PgDatabase"
] | import cz.startnet.utils.pgdiff.schema.PgDatabase; | import cz.startnet.utils.pgdiff.schema.*; | [
"cz.startnet.utils"
] | cz.startnet.utils; | 1,128,952 |
EAttribute getAssociationDefinition__Name_1(); | EAttribute getAssociationDefinition__Name_1(); | /**
* Returns the meta object for the attribute '{@link cruise.umple.umple.AssociationDefinition_#getName_1 <em>Name 1</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name 1</em>'.
* @see cruise.umple.umple.AssociationDefinition_#getName_1()
*... | Returns the meta object for the attribute '<code>cruise.umple.umple.AssociationDefinition_#getName_1 Name 1</code>'. | getAssociationDefinition__Name_1 | {
"repo_name": "ahmedvc/umple",
"path": "cruise.umple.xtext/src-gen/cruise/umple/umple/UmplePackage.java",
"license": "mit",
"size": 485842
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 392,000 |
public ActionDefinition getActionDefinition()
{
if (this.actionDefinition == null)
{
this.actionDefinition = createActionDefinition(this.name);
((ActionDefinitionImpl)this.actionDefinition).setTitleKey(getTitleKey());
((ActionDefinitionImpl)this.actionD... | ActionDefinition function() { if (this.actionDefinition == null) { this.actionDefinition = createActionDefinition(this.name); ((ActionDefinitionImpl)this.actionDefinition).setTitleKey(getTitleKey()); ((ActionDefinitionImpl)this.actionDefinition).setDescriptionKey(getDescriptionKey()); ((ActionDefinitionImpl)this.action... | /**
* Get rule action definition
*
* @return the action definition object
*/ | Get rule action definition | getActionDefinition | {
"repo_name": "nguyentienlong/community-edition",
"path": "projects/repository/source/java/org/alfresco/repo/action/executer/ActionExecuterAbstractBase.java",
"license": "lgpl-3.0",
"size": 10678
} | [
"org.alfresco.repo.action.ActionDefinitionImpl",
"org.alfresco.service.cmr.action.ActionDefinition"
] | import org.alfresco.repo.action.ActionDefinitionImpl; import org.alfresco.service.cmr.action.ActionDefinition; | import org.alfresco.repo.action.*; import org.alfresco.service.cmr.action.*; | [
"org.alfresco.repo",
"org.alfresco.service"
] | org.alfresco.repo; org.alfresco.service; | 1,770,742 |
public void init( ExtendedProperties configuration)
{
log.trace("JarResourceLoader : initialization starting.");
// rest of Velocity engine still use legacy Vector
// and Hashtable classes. Classes are implicitly
// synchronized even if we don't need it.
Vector pa... | void function( ExtendedProperties configuration) { log.trace(STR); Vector paths = configuration.getVector("path"); StringUtils.trimStrings(paths); if( paths == null paths.size() == 0) { paths = configuration.getVector(STR); StringUtils.trimStrings(paths); if (paths != null && paths.size() > 0) { log.debug(STR + STR + S... | /**
* Called by Velocity to initialize the loader
* @param configuration
*/ | Called by Velocity to initialize the loader | init | {
"repo_name": "besom/bbossgroups-mvn",
"path": "bboss_velocity/src/main/java/bboss/org/apache/velocity/runtime/resource/loader/JarResourceLoader.java",
"license": "apache-2.0",
"size": 8506
} | [
"java.util.Vector",
"org.apache.commons.collections.ExtendedProperties"
] | import java.util.Vector; import org.apache.commons.collections.ExtendedProperties; | import java.util.*; import org.apache.commons.collections.*; | [
"java.util",
"org.apache.commons"
] | java.util; org.apache.commons; | 2,034,473 |
public void processNestedTag(PutTag nestedTag) throws JspException {
// Get real value and check role
// If role is set, add it in attribute definition if any.
// If no attribute definition, create untyped one and set role.
Object attributeValue = nestedTag.getRealValue();
At... | void function(PutTag nestedTag) throws JspException { Object attributeValue = nestedTag.getRealValue(); AttributeDefinition def; if (nestedTag.getRole() != null) { try { def = ((AttributeDefinition) attributeValue); } catch (ClassCastException ex) { def = new UntypedAttribute(attributeValue); } def.setRole(nestedTag.ge... | /**
* Process nested ≶put> tag.
* Method is called from nested ≶put> tags.
* Nested list is added to current list.
* If role is defined, nested attribute is wrapped into an untyped definition
* containing attribute value and role.
*/ | Process nested ≶put> tag. Method is called from nested ≶put> tags. Nested list is added to current list. If role is defined, nested attribute is wrapped into an untyped definition containing attribute value and role | processNestedTag | {
"repo_name": "mohanaraosv/sonar-maven-plugin",
"path": "its/projects/shared/struts-1.3.9-diet/tiles/src/main/java/org/apache/struts/tiles/taglib/DefinitionTag.java",
"license": "mit",
"size": 7037
} | [
"javax.servlet.jsp.JspException",
"org.apache.struts.tiles.AttributeDefinition",
"org.apache.struts.tiles.UntypedAttribute"
] | import javax.servlet.jsp.JspException; import org.apache.struts.tiles.AttributeDefinition; import org.apache.struts.tiles.UntypedAttribute; | import javax.servlet.jsp.*; import org.apache.struts.tiles.*; | [
"javax.servlet",
"org.apache.struts"
] | javax.servlet; org.apache.struts; | 1,466,891 |
EReference getTerminal_SvPowerFlow(); | EReference getTerminal_SvPowerFlow(); | /**
* Returns the meta object for the reference '{@link CIM.IEC61970.Core.Terminal#getSvPowerFlow <em>Sv Power Flow</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Sv Power Flow</em>'.
* @see CIM.IEC61970.Core.Terminal#getSvPowerFlow()
* @see #getTe... | Returns the meta object for the reference '<code>CIM.IEC61970.Core.Terminal#getSvPowerFlow Sv Power Flow</code>'. | getTerminal_SvPowerFlow | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Core/CorePackage.java",
"license": "mit",
"size": 253784
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,481,077 |
private void initConnectionData() {
try {
File arch = new File(this.connectionDataPath);
Properties prop = new Properties();
FileInputStream in = new FileInputStream(arch);
prop.load(in);
in.close();
this.url = prop.getProperty("url");
this.user = prop.getProperty("usuario");
this.password ... | void function() { try { File arch = new File(this.connectionDataPath); Properties prop = new Properties(); FileInputStream in = new FileInputStream(arch); prop.load(in); in.close(); this.url = prop.getProperty("url"); this.user = prop.getProperty(STR); this.password = prop.getProperty("clave"); this.driver = prop.getPr... | /**
* Metodo que inicializa los atributos que se usan para la conexion a la base de datos.
* <b>post: </b> Se han inicializado los atributos que se usan par la conexion a la base de datos.
*/ | Metodo que inicializa los atributos que se usan para la conexion a la base de datos. post: Se han inicializado los atributos que se usan par la conexion a la base de datos | initConnectionData | {
"repo_name": "birucan/Rotandes",
"path": "src/tm/RotondAndesTM.java",
"license": "mit",
"size": 36473
} | [
"java.io.File",
"java.io.FileInputStream",
"java.util.Properties"
] | import java.io.File; import java.io.FileInputStream; import java.util.Properties; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 851,702 |
public String getCountryCode(String ip) {
if (InternetProtocolUtils.isLocalAddress(ip)) {
return "LOCALHOST";
}
return getCountry(ip).map(Country::getIsoCode).orElse("--");
} | String function(String ip) { if (InternetProtocolUtils.isLocalAddress(ip)) { return STR; } return getCountry(ip).map(Country::getIsoCode).orElse("--"); } | /**
* Get the country code of the given IP address.
*
* @param ip textual IP address to lookup.
* @return two-character ISO 3166-1 alpha code for the country, "LOCALHOST" for local addresses
* or "--" if it cannot be fetched.
*/ | Get the country code of the given IP address | getCountryCode | {
"repo_name": "Xephi/AuthMeReloaded",
"path": "src/main/java/fr/xephi/authme/service/GeoIpService.java",
"license": "gpl-3.0",
"size": 13200
} | [
"com.maxmind.db.model.Country",
"fr.xephi.authme.util.InternetProtocolUtils"
] | import com.maxmind.db.model.Country; import fr.xephi.authme.util.InternetProtocolUtils; | import com.maxmind.db.model.*; import fr.xephi.authme.util.*; | [
"com.maxmind.db",
"fr.xephi.authme"
] | com.maxmind.db; fr.xephi.authme; | 1,075,938 |
@Test
public void testQueriesOnReplicatedRegionWithIndexOnInt() throws Exception {
Cache cache = CacheUtils.getCache();
testRegion = createReplicatedRegion(testRegionName);
populateRegion(testRegion);
assertNotNull(cache.getRegion(testRegionName));
assertEquals(numElem * 2, cache.getRegion(testR... | void function() throws Exception { Cache cache = CacheUtils.getCache(); testRegion = createReplicatedRegion(testRegionName); populateRegion(testRegion); assertNotNull(cache.getRegion(testRegionName)); assertEquals(numElem * 2, cache.getRegion(testRegionName).size()); String regionPath = "/" + testRegionName + STR; exec... | /**
* Test on Replicated Region data against an indexed Int object and non indexed Int Object
*/ | Test on Replicated Region data against an indexed Int object and non indexed Int Object | testQueriesOnReplicatedRegionWithIndexOnInt | {
"repo_name": "PurelyApplied/geode",
"path": "geode-core/src/integrationTest/java/org/apache/geode/cache/query/functional/NumericQueryJUnitTest.java",
"license": "apache-2.0",
"size": 14822
} | [
"org.apache.geode.cache.Cache",
"org.apache.geode.cache.query.CacheUtils",
"org.junit.Assert"
] | import org.apache.geode.cache.Cache; import org.apache.geode.cache.query.CacheUtils; import org.junit.Assert; | import org.apache.geode.cache.*; import org.apache.geode.cache.query.*; import org.junit.*; | [
"org.apache.geode",
"org.junit"
] | org.apache.geode; org.junit; | 2,699,995 |
public void start() {
Completor commandCompletor = new SimpleCompletor(new String[] { Global.CMD_LOAD, Global.CMD_DEPLOY,
Global.CMD_LAUNCH, Global.CMD_UPDATE, Global.CMD_RESTART, Global.CMD_STOP, Global.CMD_STATUS,
Global.CMD_HELP });
FileNameCompletor fileNameCompl... | void function() { Completor commandCompletor = new SimpleCompletor(new String[] { Global.CMD_LOAD, Global.CMD_DEPLOY, Global.CMD_LAUNCH, Global.CMD_UPDATE, Global.CMD_RESTART, Global.CMD_STOP, Global.CMD_STATUS, Global.CMD_HELP }); FileNameCompletor fileNameCompletor = new FileNameCompletor(); Completor projectCompleto... | /**
* Start the console.
*/ | Start the console | start | {
"repo_name": "onlychoice/ganger",
"path": "src/main/java/com/netease/automate/master/MasterConsole.java",
"license": "mit",
"size": 6333
} | [
"com.netease.automate.exception.AutomateException",
"com.netease.automate.meta.Global",
"java.io.IOException",
"java.util.LinkedList",
"java.util.List"
] | import com.netease.automate.exception.AutomateException; import com.netease.automate.meta.Global; import java.io.IOException; import java.util.LinkedList; import java.util.List; | import com.netease.automate.exception.*; import com.netease.automate.meta.*; import java.io.*; import java.util.*; | [
"com.netease.automate",
"java.io",
"java.util"
] | com.netease.automate; java.io; java.util; | 912,333 |
@Test
public void testSuccessPath() {
Assert.fail( "Test 'TrialService_updateEcrfTest.testSuccessPath()}' not implemented." );
}
| void function() { Assert.fail( STR ); } | /**
* Test succes path for service method <code>updateEcrf</code>
*
* Tests expected behaviour of service method.
*/ | Test succes path for service method <code>updateEcrf</code> Tests expected behaviour of service method | testSuccessPath | {
"repo_name": "phoenixctms/ctsms",
"path": "core/src/test/java/org/phoenixctms/ctsms/service/trial/test/TrialService_updateEcrfTest.java",
"license": "lgpl-2.1",
"size": 1245
} | [
"org.testng.Assert"
] | import org.testng.Assert; | import org.testng.*; | [
"org.testng"
] | org.testng; | 1,002,388 |
final INaviModule module = node.getFunction().getModule();
if (!m_cachedModuleListeners.containsKey(module)) {
m_cachedModuleListeners.put(module, 0);
module.addListener(m_internalModuleListener);
}
m_cachedModuleListeners.put(module, m_cachedModuleListeners.get(module) + 1);
} | final INaviModule module = node.getFunction().getModule(); if (!m_cachedModuleListeners.containsKey(module)) { m_cachedModuleListeners.put(module, 0); module.addListener(m_internalModuleListener); } m_cachedModuleListeners.put(module, m_cachedModuleListeners.get(module) + 1); } | /**
* Adds a new listener to a module if the given node requires it.
*
* @param node The node to check.
*/ | Adds a new listener to a module if the given node requires it | addModuleListener | {
"repo_name": "chubbymaggie/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/yfileswrap/zygraph/Synchronizers/CViewGraphSynchronizer.java",
"license": "apache-2.0",
"size": 27372
} | [
"com.google.security.zynamics.binnavi.disassembly.INaviModule"
] | import com.google.security.zynamics.binnavi.disassembly.INaviModule; | import com.google.security.zynamics.binnavi.disassembly.*; | [
"com.google.security"
] | com.google.security; | 113,236 |
public EvaluationConfig listeners(@NonNull Listener... listeners){
this.listeners.addAll(Arrays.asList(listeners));
return this;
} | EvaluationConfig function(@NonNull Listener... listeners){ this.listeners.addAll(Arrays.asList(listeners)); return this; } | /**
* Add listeners for this operation
*/ | Add listeners for this operation | listeners | {
"repo_name": "deeplearning4j/deeplearning4j",
"path": "nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/autodiff/samediff/config/EvaluationConfig.java",
"license": "apache-2.0",
"size": 6662
} | [
"java.util.Arrays",
"org.nd4j.autodiff.listeners.Listener"
] | import java.util.Arrays; import org.nd4j.autodiff.listeners.Listener; | import java.util.*; import org.nd4j.autodiff.listeners.*; | [
"java.util",
"org.nd4j.autodiff"
] | java.util; org.nd4j.autodiff; | 2,765,396 |
protected void setTabularData(FlexTable table, String[] cols, List<Widget[]> rows) {
table.removeAllRows();
if (cols != null) {
for (int i = 0; i < cols.length; i++)
table.setText(0, i, cols[i]);
}
table.getRowFormatter().addStyleName(0, "tbl-header1");
... | void function(FlexTable table, String[] cols, List<Widget[]> rows) { table.removeAllRows(); if (cols != null) { for (int i = 0; i < cols.length; i++) table.setText(0, i, cols[i]); } table.getRowFormatter().addStyleName(0, STR); if (rows != null) { int i = 0; for (Widget[] row : rows) { i++; for (int j = 0; j < row.leng... | /**
* Sets the tabular data.
*
* @param table
* the table
* @param cols
* the cols
* @param rows
* the rows
*/ | Sets the tabular data | setTabularData | {
"repo_name": "ebayopensource/turmeric-monitoring",
"path": "mgmt-console/src/main/java/org/ebayopensource/turmeric/monitoring/client/view/ConsumerView.java",
"license": "apache-2.0",
"size": 43882
} | [
"com.google.gwt.user.client.ui.FlexTable",
"com.google.gwt.user.client.ui.Widget",
"java.util.List"
] | import com.google.gwt.user.client.ui.FlexTable; import com.google.gwt.user.client.ui.Widget; import java.util.List; | import com.google.gwt.user.client.ui.*; import java.util.*; | [
"com.google.gwt",
"java.util"
] | com.google.gwt; java.util; | 601,742 |
@TargetApi(Build.VERSION_CODES.HONEYCOMB)
private void setupActionBar() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {
// Show the Up button in the action bar.
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
}
} | @TargetApi(Build.VERSION_CODES.HONEYCOMB) void function() { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { getSupportActionBar().setDisplayHomeAsUpEnabled(true); } } | /**
* Set up the {@link android.app.ActionBar}, if the API is available.
*/ | Set up the <code>android.app.ActionBar</code>, if the API is available | setupActionBar | {
"repo_name": "kylemsguy/tcas-mobile",
"path": "app/src/main/java/com/kylemsguy/tcasmobile/SettingsActivity.java",
"license": "mit",
"size": 13684
} | [
"android.annotation.TargetApi",
"android.os.Build"
] | import android.annotation.TargetApi; import android.os.Build; | import android.annotation.*; import android.os.*; | [
"android.annotation",
"android.os"
] | android.annotation; android.os; | 663,068 |
void addMicroschema(MicroschemaVersionModel microschema); | void addMicroschema(MicroschemaVersionModel microschema); | /**
* Add the given microschema to the storage
*
* @param microschema
* microschema instance
*/ | Add the given microschema to the storage | addMicroschema | {
"repo_name": "gentics/mesh",
"path": "rest-model/src/main/java/com/gentics/mesh/core/rest/schema/SchemaStorage.java",
"license": "apache-2.0",
"size": 2841
} | [
"com.gentics.mesh.core.rest.microschema.MicroschemaVersionModel"
] | import com.gentics.mesh.core.rest.microschema.MicroschemaVersionModel; | import com.gentics.mesh.core.rest.microschema.*; | [
"com.gentics.mesh"
] | com.gentics.mesh; | 2,376,452 |
@Override
public ResultSet getBestRowIdentifier(String catalog, String schema,
String table, int scope, boolean nullable) throws SQLException {
logger.debug("Function call getBestRowIdentifier(String,String,String,int,boolean)");
logger.debug("Not implem... | ResultSet function(String catalog, String schema, String table, int scope, boolean nullable) throws SQLException { logger.debug(STR); logger.debug(STR); String[] Col = new String[8]; Col[0] = "SCOPE"; Col[1] = STR; Col[2] = STR; Col[3] = STR; Col[4] = STR; Col[5] = STR; Col[6] = STR; Col[7] = STR; return new DMDResultS... | /**
* <p>
* <h1>Implementation Details:</h1><br>
* This feature is not yet impelemented.
* </p>
*
* @return an empty dataset
*/ | Implementation Details: This feature is not yet impelemented. | getBestRowIdentifier | {
"repo_name": "jonathanswenson/starschema-bigquery-jdbc",
"path": "src/main/java/net/starschema/clouddb/jdbc/BQDatabaseMetadata.java",
"license": "bsd-2-clause",
"size": 92438
} | [
"java.sql.ResultSet",
"java.sql.SQLException",
"net.starschema.clouddb.jdbc.DMDResultSet"
] | import java.sql.ResultSet; import java.sql.SQLException; import net.starschema.clouddb.jdbc.DMDResultSet; | import java.sql.*; import net.starschema.clouddb.jdbc.*; | [
"java.sql",
"net.starschema.clouddb"
] | java.sql; net.starschema.clouddb; | 1,012,144 |
@Nullable
@ObjectiveCName("getGroupAvatarVMWithGid:")
public GroupAvatarVM getGroupAvatarVM(int gid) {
return modules.getGroupsModule().getAvatarVM(gid);
}
//////////////////////////////////////
// Application events
////////////////////////////////////// | @ObjectiveCName(STR) GroupAvatarVM function(int gid) { return modules.getGroupsModule().getAvatarVM(gid); } | /**
* Get Group avatar ViewModel
* Used for displaying group avatar change progress
*
* @param gid group's ID
* @return the GroupAvatarVM
*/ | Get Group avatar ViewModel Used for displaying group avatar change progress | getGroupAvatarVM | {
"repo_name": "boneyao/actor-platform",
"path": "actor-apps/core/src/main/java/im/actor/model/Messenger.java",
"license": "mit",
"size": 50580
} | [
"com.google.j2objc.annotations.ObjectiveCName",
"im.actor.model.viewmodel.GroupAvatarVM"
] | import com.google.j2objc.annotations.ObjectiveCName; import im.actor.model.viewmodel.GroupAvatarVM; | import com.google.j2objc.annotations.*; import im.actor.model.viewmodel.*; | [
"com.google.j2objc",
"im.actor.model"
] | com.google.j2objc; im.actor.model; | 851,389 |
public synchronized void restartNameNode(int nnIndex, boolean waitActive,
String... args) throws IOException {
NameNodeInfo info = getNN(nnIndex);
StartupOption startOpt = info.startOpt;
shutdownNameNode(nnIndex);
if (args.length != 0) {
startOpt = null;
} else {
args = createAr... | synchronized void function(int nnIndex, boolean waitActive, String... args) throws IOException { NameNodeInfo info = getNN(nnIndex); StartupOption startOpt = info.startOpt; shutdownNameNode(nnIndex); if (args.length != 0) { startOpt = null; } else { args = createArgs(startOpt); } NameNode nn = NameNode.createNameNode(a... | /**
* Restart the namenode at a given index. Optionally wait for the cluster
* to become active.
*/ | Restart the namenode at a given index. Optionally wait for the cluster to become active | restartNameNode | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java",
"license": "apache-2.0",
"size": 126970
} | [
"java.io.IOException",
"org.apache.hadoop.hdfs.server.common.HdfsServerConstants",
"org.apache.hadoop.hdfs.server.namenode.ImageServlet",
"org.apache.hadoop.hdfs.server.namenode.NameNode"
] | import java.io.IOException; import org.apache.hadoop.hdfs.server.common.HdfsServerConstants; import org.apache.hadoop.hdfs.server.namenode.ImageServlet; import org.apache.hadoop.hdfs.server.namenode.NameNode; | import java.io.*; import org.apache.hadoop.hdfs.server.common.*; import org.apache.hadoop.hdfs.server.namenode.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 1,985,708 |
public Logger logger()
{
return logger;
} | Logger function() { return logger; } | /**
* Returns the Logger used by this CommCore.
*
* @return the Logger used by this CommCore
*/ | Returns the Logger used by this CommCore | logger | {
"repo_name": "jolie-projects/jolie-async",
"path": "jolie/src/jolie/net/CommCore.java",
"license": "lgpl-2.1",
"size": 17560
} | [
"java.util.logging.Logger"
] | import java.util.logging.Logger; | import java.util.logging.*; | [
"java.util"
] | java.util; | 1,262,219 |
public void mouseReleased(MouseEvent me) {} | public void mouseReleased(MouseEvent me) {} | /**
* Sets the location of the point where the <code>mousePressed</code>
* event occurred.
* @see MouseListener#mousePressed(MouseEvent)
*/ | Sets the location of the point where the <code>mousePressed</code> event occurred | mousePressed | {
"repo_name": "joshmoore/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/treeviewer/actions/SwitchUserAction.java",
"license": "gpl-2.0",
"size": 5639
} | [
"java.awt.event.MouseEvent"
] | import java.awt.event.MouseEvent; | import java.awt.event.*; | [
"java.awt"
] | java.awt; | 697 |
public MarketoObjectDataset withTableName(Object tableName) {
if (this.innerTypeProperties() == null) {
this.innerTypeProperties = new GenericDatasetTypeProperties();
}
this.innerTypeProperties().withTableName(tableName);
return this;
} | MarketoObjectDataset function(Object tableName) { if (this.innerTypeProperties() == null) { this.innerTypeProperties = new GenericDatasetTypeProperties(); } this.innerTypeProperties().withTableName(tableName); return this; } | /**
* Set the tableName property: The table name. Type: string (or Expression with resultType string).
*
* @param tableName the tableName value to set.
* @return the MarketoObjectDataset object itself.
*/ | Set the tableName property: The table name. Type: string (or Expression with resultType string) | withTableName | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/models/MarketoObjectDataset.java",
"license": "mit",
"size": 3846
} | [
"com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties"
] | import com.azure.resourcemanager.datafactory.fluent.models.GenericDatasetTypeProperties; | import com.azure.resourcemanager.datafactory.fluent.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 1,887,189 |
final void getText(TermAttribute t) {
t.setTermBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead);
}
StandardTokenizerImpl(java.io.Reader in) {
this.zzReader = in;
}
StandardTokenizerImpl(java.io.InputStream in) {
this(new java.io.InputStreamReader(in));
} | final void getText(TermAttribute t) { t.setTermBuffer(zzBuffer, zzStartRead, zzMarkedPos-zzStartRead); } StandardTokenizerImpl(java.io.Reader in) { this.zzReader = in; } StandardTokenizerImpl(java.io.InputStream in) { this(new java.io.InputStreamReader(in)); } | /**
* Fills TermAttribute with the current token text.
*/ | Fills TermAttribute with the current token text | getText | {
"repo_name": "tokee/lucene",
"path": "src/java/org/apache/lucene/analysis/standard/StandardTokenizerImpl.java",
"license": "apache-2.0",
"size": 22675
} | [
"org.apache.lucene.analysis.tokenattributes.TermAttribute"
] | import org.apache.lucene.analysis.tokenattributes.TermAttribute; | import org.apache.lucene.analysis.tokenattributes.*; | [
"org.apache.lucene"
] | org.apache.lucene; | 1,111,474 |
public static <T> java.util.function.Consumer<T>
asJavaUtil(de.unkrig.commons.lang.protocol.Consumer<T> delegate) {
return (@Nullable T subject) -> {
assert subject != null;
delegate.consume(subject);
};
}
| static <T> java.util.function.Consumer<T> function(de.unkrig.commons.lang.protocol.Consumer<T> delegate) { return (@Nullable T subject) -> { assert subject != null; delegate.consume(subject); }; } | /**
* Converts a {@link de.unkrig.commons.lang.protocol.Consumer} into a (Java 8) {@link java.util.function.Consumer}.
*/ | Converts a <code>de.unkrig.commons.lang.protocol.Consumer</code> into a (Java 8) <code>java.util.function.Consumer</code> | asJavaUtil | {
"repo_name": "aunkrig/no-template",
"path": "no-template-core/src/main/java/de/unkrig/notemplate/commons/lang/ConsumerUtil8.java",
"license": "bsd-3-clause",
"size": 2897
} | [
"de.unkrig.commons.nullanalysis.Nullable",
"java.util.function.Consumer"
] | import de.unkrig.commons.nullanalysis.Nullable; import java.util.function.Consumer; | import de.unkrig.commons.nullanalysis.*; import java.util.function.*; | [
"de.unkrig.commons",
"java.util"
] | de.unkrig.commons; java.util; | 380,484 |
public void pesquisa() {
try {
this.lista = PeriodoLetivoService.pesquisar(loginBean.getCampus(), textoPesquisa);
} catch (Exception e) {
e.printStackTrace();
addErrorMessage("Pesquisa", "Erro na pesquisa");
}
} | void function() { try { this.lista = PeriodoLetivoService.pesquisar(loginBean.getCampus(), textoPesquisa); } catch (Exception e) { e.printStackTrace(); addErrorMessage(STR, STR); } } | /**
* Realiza a pesquisa de itens
*/ | Realiza a pesquisa de itens | pesquisa | {
"repo_name": "sigeu-deseg/sigeu-deseg",
"path": "sigeu/src/br/edu/utfpr/dv/sigeu/jsfbeans/PesquisaPeriodoLetivoBean.java",
"license": "gpl-2.0",
"size": 1248
} | [
"br.edu.utfpr.dv.sigeu.service.PeriodoLetivoService"
] | import br.edu.utfpr.dv.sigeu.service.PeriodoLetivoService; | import br.edu.utfpr.dv.sigeu.service.*; | [
"br.edu.utfpr"
] | br.edu.utfpr; | 1,984,356 |
public static <T> Predicate<T> andPredicate(final Predicate<? super T> predicate1,
final Predicate<? super T> predicate2) {
if (predicate1 == null || predicate2 == null) {
throw new NullPointerException("Predicate must not be null");
}
... | static <T> Predicate<T> function(final Predicate<? super T> predicate1, final Predicate<? super T> predicate2) { if (predicate1 == null predicate2 == null) { throw new NullPointerException(STR); } return new AndPredicate<T>(predicate1, predicate2); } public AndPredicate(final Predicate<? super T> predicate1, final Pred... | /**
* Factory to create the predicate.
*
* @param <T> the type that the predicate queries
* @param predicate1 the first predicate to check, not null
* @param predicate2 the second predicate to check, not null
* @return the <code>and</code> predicate
* @throws NullPointerException if... | Factory to create the predicate | andPredicate | {
"repo_name": "AffogatoLang/Moka",
"path": "lib/Apache_Commons_Collections/src/main/java/org/apache/commons/collections4/functors/AndPredicate.java",
"license": "bsd-3-clause",
"size": 3299
} | [
"org.apache.commons.collections4.Predicate"
] | import org.apache.commons.collections4.Predicate; | import org.apache.commons.collections4.*; | [
"org.apache.commons"
] | org.apache.commons; | 65,983 |
public Map<NodeLabel, Set<NodeId>> getLabelsInfoToNodes(Set<String> labels) {
readLock.lock();
try {
Map<NodeLabel, Set<NodeId>> labelsToNodes = getLabelsToNodesMapping(
labels, NodeLabel.class);
return Collections.unmodifiableMap(labelsToNodes);
} finally {
readLock.unlock();
... | Map<NodeLabel, Set<NodeId>> function(Set<String> labels) { readLock.lock(); try { Map<NodeLabel, Set<NodeId>> labelsToNodes = getLabelsToNodesMapping( labels, NodeLabel.class); return Collections.unmodifiableMap(labelsToNodes); } finally { readLock.unlock(); } } | /**
* Get mapping of labels info to nodes for specified set of labels.
*
* @param labels
* set of nodelabels for which labels to nodes mapping will be
* returned.
* @return labels to nodes map
*/ | Get mapping of labels info to nodes for specified set of labels | getLabelsInfoToNodes | {
"repo_name": "plusplusjiajia/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/nodelabels/CommonNodeLabelsManager.java",
"license": "apache-2.0",
"size": 35460
} | [
"java.util.Collections",
"java.util.Map",
"java.util.Set",
"org.apache.hadoop.yarn.api.records.NodeId",
"org.apache.hadoop.yarn.api.records.NodeLabel"
] | import java.util.Collections; import java.util.Map; import java.util.Set; import org.apache.hadoop.yarn.api.records.NodeId; import org.apache.hadoop.yarn.api.records.NodeLabel; | import java.util.*; import org.apache.hadoop.yarn.api.records.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 1,177,830 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.