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 static void checkFileSystemAvailable(final FileSystem fs) throws IOException { if (!(fs instanceof DistributedFileSystem)) { return; } IOException exception = null; DistributedFileSystem dfs = (DistributedFileSystem) fs; try { if (dfs.exists(new Path("/"))) { return; ...
static void function(final FileSystem fs) throws IOException { if (!(fs instanceof DistributedFileSystem)) { return; } IOException exception = null; DistributedFileSystem dfs = (DistributedFileSystem) fs; try { if (dfs.exists(new Path("/"))) { return; } } catch (IOException e) { exception = RemoteExceptionHandler.check...
/** * Checks to see if the specified file system is available * * @param fs filesystem * @throws IOException e */
Checks to see if the specified file system is available
checkFileSystemAvailable
{ "repo_name": "lilonglai/hbase-0.96.2", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java", "license": "apache-2.0", "size": 69154 }
[ "java.io.IOException", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hbase.RemoteExceptionHandler", "org.apache.hadoop.hdfs.DistributedFileSystem" ]
import java.io.IOException; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.RemoteExceptionHandler; import org.apache.hadoop.hdfs.DistributedFileSystem;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hdfs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,545,171
DataHandler getAttachment(String id);
DataHandler getAttachment(String id);
/** * Returns the attachment specified by the id * * @param id the id under which the attachment is stored * @return the data handler for this attachment or <tt>null</tt> */
Returns the attachment specified by the id
getAttachment
{ "repo_name": "nikhilvibhav/camel", "path": "components/camel-attachments/src/main/java/org/apache/camel/attachment/AttachmentMessage.java", "license": "apache-2.0", "size": 3304 }
[ "javax.activation.DataHandler" ]
import javax.activation.DataHandler;
import javax.activation.*;
[ "javax.activation" ]
javax.activation;
1,057,898
public static List<Vertex[]> createVertexArrFromBezierVertexArrays(List<Vertex[]> vertexArrays, int resolution){ ArrayList<Vertex[]> partialPathsListCurves = new ArrayList<Vertex[]>() ; for (int i = 0; i < vertexArrays.size(); i++) { Vertex[] partArray = vertexArrays.get(i); partArray = Tools3D.createV...
static List<Vertex[]> function(List<Vertex[]> vertexArrays, int resolution){ ArrayList<Vertex[]> partialPathsListCurves = new ArrayList<Vertex[]>() ; for (int i = 0; i < vertexArrays.size(); i++) { Vertex[] partArray = vertexArrays.get(i); partArray = Tools3D.createVertexArrFromBezierArr(partArray, resolution); partial...
/** * Changes the BezierVertex' in the Vertex array lists into regular vertices, * and approximates the bezier curve this way. * * @param vertexArrays the vertex arrays * @param resolution the resolution * * @return the list< vertex[]> */
Changes the BezierVertex' in the Vertex array lists into regular vertices, and approximates the bezier curve this way
createVertexArrFromBezierVertexArrays
{ "repo_name": "rjmarsan/GestureSound", "path": "src/org/mt4j/util/math/Tools3D.java", "license": "gpl-2.0", "size": 75224 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,590,441
public String contentToString(NormalizedMessage message) throws MessagingException, TransformerException, ParserConfigurationException, IOException, SAXException { return toString(message.getContent()); }
String function(NormalizedMessage message) throws MessagingException, TransformerException, ParserConfigurationException, IOException, SAXException { return toString(message.getContent()); }
/** * Converts the content of the given message to a String * * @throws SAXException * @throws IOException * @throws ParserConfigurationException */
Converts the content of the given message to a String
contentToString
{ "repo_name": "apache/servicemix-utils", "path": "src/main/java/org/apache/servicemix/jbi/jaxp/SourceTransformer.java", "license": "apache-2.0", "size": 24189 }
[ "java.io.IOException", "javax.jbi.messaging.MessagingException", "javax.jbi.messaging.NormalizedMessage", "javax.xml.parsers.ParserConfigurationException", "javax.xml.transform.TransformerException", "org.xml.sax.SAXException" ]
import java.io.IOException; import javax.jbi.messaging.MessagingException; import javax.jbi.messaging.NormalizedMessage; import javax.xml.parsers.ParserConfigurationException; import javax.xml.transform.TransformerException; import org.xml.sax.SAXException;
import java.io.*; import javax.jbi.messaging.*; import javax.xml.parsers.*; import javax.xml.transform.*; import org.xml.sax.*;
[ "java.io", "javax.jbi", "javax.xml", "org.xml.sax" ]
java.io; javax.jbi; javax.xml; org.xml.sax;
134,461
public JobHopMeta findJobHopTo( JobEntryCopy jge ) { for ( JobHopMeta hi : jobhops ) { if ( hi != null && hi.getToEntry() != null && hi.getToEntry().equals( jge ) ) { // Return the first! return hi; } } return null; }
JobHopMeta function( JobEntryCopy jge ) { for ( JobHopMeta hi : jobhops ) { if ( hi != null && hi.getToEntry() != null && hi.getToEntry().equals( jge ) ) { return hi; } } return null; }
/** * Find job hop to. * * @param jge * the jge * @return the job hop meta */
Find job hop to
findJobHopTo
{ "repo_name": "ma459006574/pentaho-kettle", "path": "engine/src/org/pentaho/di/job/JobMeta.java", "license": "apache-2.0", "size": 85011 }
[ "org.pentaho.di.job.entry.JobEntryCopy" ]
import org.pentaho.di.job.entry.JobEntryCopy;
import org.pentaho.di.job.entry.*;
[ "org.pentaho.di" ]
org.pentaho.di;
6,032
public void testCandidate() { EntityManager em = getEM(); EntityTransaction tx = em.getTransaction(); try { tx.begin(); CriteriaBuilder cb = emf.getCriteriaBuilder(); CriteriaQuery<Team> crit = cb.createQuery(Team.class); ...
void function() { EntityManager em = getEM(); EntityTransaction tx = em.getTransaction(); try { tx.begin(); CriteriaBuilder cb = emf.getCriteriaBuilder(); CriteriaQuery<Team> crit = cb.createQuery(Team.class); Root<Team> candidate = crit.from(Team.class); candidate.alias("t"); crit.select(candidate); assertEquals(STR, ...
/** * Test basic generation of query with candidate and alias. */
Test basic generation of query with candidate and alias
testCandidate
{ "repo_name": "datanucleus/tests", "path": "jakarta/criteria/src/test/org/datanucleus/tests/CriteriaMetaModelTest.java", "license": "apache-2.0", "size": 58749 }
[ "jakarta.persistence.EntityManager", "jakarta.persistence.EntityTransaction", "jakarta.persistence.Query", "jakarta.persistence.criteria.CriteriaBuilder", "jakarta.persistence.criteria.CriteriaQuery", "jakarta.persistence.criteria.Root", "java.util.Iterator", "java.util.List", "org.datanucleus.sampl...
import jakarta.persistence.EntityManager; import jakarta.persistence.EntityTransaction; import jakarta.persistence.Query; import jakarta.persistence.criteria.CriteriaBuilder; import jakarta.persistence.criteria.CriteriaQuery; import jakarta.persistence.criteria.Root; import java.util.Iterator; import java.util.List; im...
import jakarta.persistence.*; import jakarta.persistence.criteria.*; import java.util.*; import org.datanucleus.samples.jpa.query.*;
[ "jakarta.persistence", "jakarta.persistence.criteria", "java.util", "org.datanucleus.samples" ]
jakarta.persistence; jakarta.persistence.criteria; java.util; org.datanucleus.samples;
1,077,452
public void measureChild(View child, int widthUsed, int heightUsed) { final LayoutParams lp = (LayoutParams) child.getLayoutParams(); final Rect insets = mRecyclerView.getItemDecorInsetsForChild(child); widthUsed += insets.left + insets.right; heightUsed += inset...
void function(View child, int widthUsed, int heightUsed) { final LayoutParams lp = (LayoutParams) child.getLayoutParams(); final Rect insets = mRecyclerView.getItemDecorInsetsForChild(child); widthUsed += insets.left + insets.right; heightUsed += insets.top + insets.bottom; final int widthSpec = getChildMeasureSpec(get...
/** * Measure a child view using standard measurement policy, taking the padding * of the parent RecyclerView and any added item decorations into account. * * <p>If the RecyclerView can be scrolled in either dimension the caller may * pass 0 as the widthUsed or heightUsed pa...
Measure a child view using standard measurement policy, taking the padding of the parent RecyclerView and any added item decorations into account. If the RecyclerView can be scrolled in either dimension the caller may pass 0 as the widthUsed or heightUsed parameters as they will be irrelevant
measureChild
{ "repo_name": "devDavide/Decisiongram", "path": "TMessagesProj/src/main/java/org/telegram/messenger/support/widget/RecyclerView.java", "license": "gpl-2.0", "size": 438498 }
[ "android.graphics.Rect", "android.view.View" ]
import android.graphics.Rect; import android.view.View;
import android.graphics.*; import android.view.*;
[ "android.graphics", "android.view" ]
android.graphics; android.view;
659,846
public static void transferFile(InputStream uploadedInputStream, String newFileName, String storageLocation) throws APIImportException { FileOutputStream outFileStream = null; try { outFileStream = new FileOutputStream(new File(storageLocation, newFileName)); int...
static void function(InputStream uploadedInputStream, String newFileName, String storageLocation) throws APIImportException { FileOutputStream outFileStream = null; try { outFileStream = new FileOutputStream(new File(storageLocation, newFileName)); int read = 0; byte[] bytes = new byte[1024]; while ((read = uploadedInp...
/** * This method uploads a given file to specified location * * @param uploadedInputStream input stream of the file * @param newFileName name of the file to be created * @param storageLocation destination of the new file * @throws APIImportException if the file transfer fails ...
This method uploads a given file to specified location
transferFile
{ "repo_name": "amalkasubasinghe/product-apim", "path": "modules/api-import-export/src/main/java/org.wso2.carbon.apimgt/importexport/utils/APIImportUtil.java", "license": "apache-2.0", "size": 26967 }
[ "java.io.File", "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStream", "org.apache.commons.io.IOUtils", "org.wso2.carbon.apimgt.importexport.APIImportException" ]
import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import org.apache.commons.io.IOUtils; import org.wso2.carbon.apimgt.importexport.APIImportException;
import java.io.*; import org.apache.commons.io.*; import org.wso2.carbon.apimgt.importexport.*;
[ "java.io", "org.apache.commons", "org.wso2.carbon" ]
java.io; org.apache.commons; org.wso2.carbon;
949,379
@Query( value = "{'sTeamID' : ?0 , 'isDeleted' : 'False', $or : [{'sSprintID' : {$eq : null}}, {'sSprintID' : {$eq : \"\"}}] }, $orderby: { 'sStatus' :-1 }") List<Feature> findByNullSprints(String sSteamId);
@Query( value = STR\STR) List<Feature> findByNullSprints(String sSteamId);
/** * Find all features without sprints set * * @param sTeamId * @return */
Find all features without sprints set
findByNullSprints
{ "repo_name": "harish961/Hygieia-WFN", "path": "core/src/main/java/com/capitalone/dashboard/repository/FeatureRepository.java", "license": "apache-2.0", "size": 5425 }
[ "com.capitalone.dashboard.model.Feature", "java.util.List", "org.springframework.data.mongodb.repository.Query" ]
import com.capitalone.dashboard.model.Feature; import java.util.List; import org.springframework.data.mongodb.repository.Query;
import com.capitalone.dashboard.model.*; import java.util.*; import org.springframework.data.mongodb.repository.*;
[ "com.capitalone.dashboard", "java.util", "org.springframework.data" ]
com.capitalone.dashboard; java.util; org.springframework.data;
2,246,087
public java.util.List<fr.lip6.move.pnml.hlpn.terms.hlapi.UserSortHLAPI> getInput_terms_UserSortHLAPI(){ java.util.List<fr.lip6.move.pnml.hlpn.terms.hlapi.UserSortHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.terms.hlapi.UserSortHLAPI>(); for (Sort elemnt : getInput()) { if(elemnt.getClass().equals...
java.util.List<fr.lip6.move.pnml.hlpn.terms.hlapi.UserSortHLAPI> function(){ java.util.List<fr.lip6.move.pnml.hlpn.terms.hlapi.UserSortHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.terms.hlapi.UserSortHLAPI>(); for (Sort elemnt : getInput()) { if(elemnt.getClass().equals(fr.lip6.move.pnml.hlpn.terms.impl.UserSor...
/** * This accessor return a list of encapsulated subelement, only of UserSortHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of UserSortHLAPI kind. WARNING : this method can creates a lot of new object in memory
getInput_terms_UserSortHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/lists/hlapi/LengthHLAPI.java", "license": "epl-1.0", "size": 108262 }
[ "fr.lip6.move.pnml.hlpn.terms.Sort", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.hlpn.terms.Sort; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.hlpn.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
379,292
public SharedObjects getSharedObjects() { if ( sharedObjects == null ) { try { String soFile = environmentSubstitute( sharedObjectsFile ); sharedObjects = new SharedObjects( soFile ); } catch ( KettleException e ) { LogChannel.GENERAL.logDebug( e.getMessage(), e ); } ...
SharedObjects function() { if ( sharedObjects == null ) { try { String soFile = environmentSubstitute( sharedObjectsFile ); sharedObjects = new SharedObjects( soFile ); } catch ( KettleException e ) { LogChannel.GENERAL.logDebug( e.getMessage(), e ); } } return sharedObjects; }
/** * Gets the shared objects. * * @return the sharedObjects */
Gets the shared objects
getSharedObjects
{ "repo_name": "denisprotopopov/pentaho-kettle", "path": "engine/src/org/pentaho/di/base/AbstractMeta.java", "license": "apache-2.0", "size": 46252 }
[ "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.core.logging.LogChannel", "org.pentaho.di.shared.SharedObjects" ]
import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.logging.LogChannel; import org.pentaho.di.shared.SharedObjects;
import org.pentaho.di.core.exception.*; import org.pentaho.di.core.logging.*; import org.pentaho.di.shared.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,174,406
private static Object invokeMatsLambdaMethod(Annotation matsAnnotation, Method method, Object bean, Object[] templateDefaultArgsArray, int processContextParamIdx, ProcessContext<?> processContext, int dtoParamIdx, Object dto, int stoParamIdx, Object sto) t...
static Object function(Annotation matsAnnotation, Method method, Object bean, Object[] templateDefaultArgsArray, int processContextParamIdx, ProcessContext<?> processContext, int dtoParamIdx, Object dto, int stoParamIdx, Object sto) throws MatsRefuseMessageException { Object[] args = templateDefaultArgsArray.clone(); i...
/** * Helper for invoking the Method that constitute the Mats process-lambdas for @MatsMapping and @MatsClassMapping. */
Helper for invoking the Method that constitute the Mats process-lambdas for @MatsMapping and @MatsClassMapping
invokeMatsLambdaMethod
{ "repo_name": "stolsvik/mats", "path": "mats-spring/src/main/java/io/mats3/spring/MatsSpringAnnotationRegistration.java", "license": "apache-2.0", "size": 83942 }
[ "io.mats3.MatsEndpoint", "java.lang.annotation.Annotation", "java.lang.reflect.InvocationTargetException", "java.lang.reflect.Method" ]
import io.mats3.MatsEndpoint; import java.lang.annotation.Annotation; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method;
import io.mats3.*; import java.lang.annotation.*; import java.lang.reflect.*;
[ "io.mats3", "java.lang" ]
io.mats3; java.lang;
1,792,740
public SubscriptionPolicy[] getSubscriptionPolicies(String[] subscriptionTiers, int tenantID) throws APIManagementException { List<SubscriptionPolicy> policies = new ArrayList<SubscriptionPolicy>(); Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; Li...
SubscriptionPolicy[] function(String[] subscriptionTiers, int tenantID) throws APIManagementException { List<SubscriptionPolicy> policies = new ArrayList<SubscriptionPolicy>(); Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; List<String> questionMarks = new ArrayList<>(Collections.nCopies(subs...
/** * Get subscription level policies specified by tier names belonging to a specific tenant * * @param subscriptionTiers subscription tiers * @param tenantID tenantID filters the polices belongs to specific tenant * @return subscriptionPolicy array list */
Get subscription level policies specified by tier names belonging to a specific tenant
getSubscriptionPolicies
{ "repo_name": "Rajith90/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java", "license": "apache-2.0", "size": 811404 }
[ "java.io.IOException", "java.io.InputStream", "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.ArrayList", "java.util.Collections", "java.util.List", "java.util.Map", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.ca...
import java.io.IOException; import java.io.InputStream; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.wso2.carbon.apimgt.api.APIMana...
import java.io.*; import java.sql.*; import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.policy.*; import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.apimgt.impl.dao.constants.*; import org.wso2.carbon.apimgt.impl.utils.*;
[ "java.io", "java.sql", "java.util", "org.wso2.carbon" ]
java.io; java.sql; java.util; org.wso2.carbon;
1,773,037
public Optional<FieldChange> generateAndSetKey(BibEntry entry) { String newKey = generateKey(entry); return entry.setCitationKey(newKey); }
Optional<FieldChange> function(BibEntry entry) { String newKey = generateKey(entry); return entry.setCitationKey(newKey); }
/** * Generates a citation key for the given entry, and sets the key. * * @param entry the entry to generate the key for * @return the change to the key (or an empty optional if the key was not changed) */
Generates a citation key for the given entry, and sets the key
generateAndSetKey
{ "repo_name": "JabRef/jabref", "path": "src/main/java/org/jabref/logic/citationkeypattern/CitationKeyGenerator.java", "license": "mit", "size": 9777 }
[ "java.util.Optional", "org.jabref.model.FieldChange", "org.jabref.model.entry.BibEntry" ]
import java.util.Optional; import org.jabref.model.FieldChange; import org.jabref.model.entry.BibEntry;
import java.util.*; import org.jabref.model.*; import org.jabref.model.entry.*;
[ "java.util", "org.jabref.model" ]
java.util; org.jabref.model;
1,893,956
public Stroke getSeriesStroke(int series);
Stroke function(int series);
/** * Returns the stroke used to draw the items in a series. * * @param series the series (zero-based index). * * @return The stroke (never <code>null</code>). * * @see #setSeriesStroke(int, Stroke) */
Returns the stroke used to draw the items in a series
getSeriesStroke
{ "repo_name": "simeshev/parabuild-ci", "path": "3rdparty/jfreechart-1.0.5/source/org/jfree/chart/renderer/category/CategoryItemRenderer.java", "license": "lgpl-3.0", "size": 56033 }
[ "java.awt.Stroke" ]
import java.awt.Stroke;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,711,417
public PersistentMemberDetails[] listMissingDiskStores() { PersistentMemberDetails[] missingDiskStores = null; Set<PersistentID> persitentMemberSet = MissingPersistentIDsRequest.send(dm); if (persitentMemberSet != null && persitentMemberSet.size() > 0) { missingDiskStores = new PersistentMemberDeta...
PersistentMemberDetails[] function() { PersistentMemberDetails[] missingDiskStores = null; Set<PersistentID> persitentMemberSet = MissingPersistentIDsRequest.send(dm); if (persitentMemberSet != null && persitentMemberSet.size() > 0) { missingDiskStores = new PersistentMemberDetails[persitentMemberSet.size()]; int j = 0...
/** * In case of replicated region during recovery all region recovery will wait * till all the replicated region member are up and running so that the * recovered data from the disk will be in sync; * * @return Array of PeristentMemberDetails (which contains host, directory and disk store id) */
In case of replicated region during recovery all region recovery will wait till all the replicated region member are up and running so that the recovered data from the disk will be in sync
listMissingDiskStores
{ "repo_name": "gemxd/gemfirexd-oss", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/management/internal/beans/DistributedSystemBridge.java", "license": "apache-2.0", "size": 56052 }
[ "com.gemstone.gemfire.cache.persistence.PersistentID", "com.gemstone.gemfire.internal.admin.remote.MissingPersistentIDsRequest", "com.gemstone.gemfire.management.PersistentMemberDetails", "java.util.Set" ]
import com.gemstone.gemfire.cache.persistence.PersistentID; import com.gemstone.gemfire.internal.admin.remote.MissingPersistentIDsRequest; import com.gemstone.gemfire.management.PersistentMemberDetails; import java.util.Set;
import com.gemstone.gemfire.cache.persistence.*; import com.gemstone.gemfire.internal.admin.remote.*; import com.gemstone.gemfire.management.*; import java.util.*;
[ "com.gemstone.gemfire", "java.util" ]
com.gemstone.gemfire; java.util;
2,410,574
public int getNumberOfColors() throws DOMException { return count; }
int function() throws DOMException { return count; }
/** * Returns the number of colors. */
Returns the number of colors
getNumberOfColors
{ "repo_name": "Squeegee/batik", "path": "sources/org/apache/batik/css/engine/value/svg/ICCColor.java", "license": "apache-2.0", "size": 2822 }
[ "org.w3c.dom.DOMException" ]
import org.w3c.dom.DOMException;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
307,989
EReference getModelingAuthoritySet_IdentifiedObjects();
EReference getModelingAuthoritySet_IdentifiedObjects();
/** * Returns the meta object for the reference list '{@link gluemodel.CIM.IEC61970.Informative.InfCore.ModelingAuthoritySet#getIdentifiedObjects <em>Identified Objects</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference list '<em>Identified Objects</em>'. * @...
Returns the meta object for the reference list '<code>gluemodel.CIM.IEC61970.Informative.InfCore.ModelingAuthoritySet#getIdentifiedObjects Identified Objects</code>'.
getModelingAuthoritySet_IdentifiedObjects
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/Informative/InfCore/InfCorePackage.java", "license": "mit", "size": 12892 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,023,693
public static StringLessThanOrEqualCondition.Builder lte(String variable, String expectedValue) { return StringLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue); }
static StringLessThanOrEqualCondition.Builder function(String variable, String expectedValue) { return StringLessThanOrEqualCondition.builder().variable(variable).expectedValue(expectedValue); }
/** * Binary condition for String less than or equal to comparison. * * @param variable The JSONPath expression that determines which piece of the input document is used for the comparison. * @param expectedValue The expected value for this condition. * @see <a href="https://states-languag...
Binary condition for String less than or equal to comparison
lte
{ "repo_name": "jentfoo/aws-sdk-java", "path": "aws-java-sdk-stepfunctions/src/main/java/com/amazonaws/services/stepfunctions/builder/StepFunctionBuilder.java", "license": "apache-2.0", "size": 30378 }
[ "com.amazonaws.services.stepfunctions.builder.conditions.StringLessThanOrEqualCondition" ]
import com.amazonaws.services.stepfunctions.builder.conditions.StringLessThanOrEqualCondition;
import com.amazonaws.services.stepfunctions.builder.conditions.*;
[ "com.amazonaws.services" ]
com.amazonaws.services;
2,038,500
public InternalTriggerExecutionContext getTriggerExecutionContext ( LanguageConnectionContext lcc, ConnectionContext cc, String statementText, int dmlType, int[] changedColIds, String[] changedColNames, UUID targetTableId, String targetTableName, Vector aiCoun...
InternalTriggerExecutionContext function ( LanguageConnectionContext lcc, ConnectionContext cc, String statementText, int dmlType, int[] changedColIds, String[] changedColNames, UUID targetTableId, String targetTableName, Vector aiCounters ) throws StandardException { return new InternalTriggerExecutionContext(lcc, cc,...
/** * Get a trigger execution context * * @exception StandardException Thrown on error */
Get a trigger execution context
getTriggerExecutionContext
{ "repo_name": "kavin256/Derby", "path": "java/engine/org/apache/derby/impl/sql/execute/GenericExecutionFactory.java", "license": "apache-2.0", "size": 12091 }
[ "java.util.Vector", "org.apache.derby.iapi.error.StandardException", "org.apache.derby.iapi.jdbc.ConnectionContext", "org.apache.derby.iapi.sql.conn.LanguageConnectionContext" ]
import java.util.Vector; import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.jdbc.ConnectionContext; import org.apache.derby.iapi.sql.conn.LanguageConnectionContext;
import java.util.*; import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.jdbc.*; import org.apache.derby.iapi.sql.conn.*;
[ "java.util", "org.apache.derby" ]
java.util; org.apache.derby;
2,216,386
@Test public void testCreateProcessingTimeClock() { // the profiler uses processing time by default ProfilerConfig config = new ProfilerConfig(); // the factory should return a clock that handles 'processing time' Clock clock = clockFactory.createClock(config); assertTrue(clock instanceof Wall...
void function() { ProfilerConfig config = new ProfilerConfig(); Clock clock = clockFactory.createClock(config); assertTrue(clock instanceof WallClock); }
/** * When a 'timestampField' is defined the factory should return a clock * that deals with processing time. */
When a 'timestampField' is defined the factory should return a clock that deals with processing time
testCreateProcessingTimeClock
{ "repo_name": "justinleet/incubator-metron", "path": "metron-analytics/metron-profiler-common/src/test/java/org/apache/metron/profiler/clock/DefaultClockFactoryTest.java", "license": "apache-2.0", "size": 2269 }
[ "org.apache.metron.common.configuration.profiler.ProfilerConfig", "org.junit.Assert" ]
import org.apache.metron.common.configuration.profiler.ProfilerConfig; import org.junit.Assert;
import org.apache.metron.common.configuration.profiler.*; import org.junit.*;
[ "org.apache.metron", "org.junit" ]
org.apache.metron; org.junit;
763,324
public static List<Class<?>> getAllsuperClasses(Class<?> aClass){ List<Class<?>> result = new ArrayList<Class<?>>(); result.add(aClass); Class<?> superclass = aClass.getSuperclass(); while(!isNull(superclass) && superclass != Object.class){ result.add(superclass); superclass = superclass.getSuper...
static List<Class<?>> function(Class<?> aClass){ List<Class<?>> result = new ArrayList<Class<?>>(); result.add(aClass); Class<?> superclass = aClass.getSuperclass(); while(!isNull(superclass) && superclass != Object.class){ result.add(superclass); superclass = superclass.getSuperclass(); } return result; }
/** * Returns a list with the class passed in input plus his superclasses. * @param aClass class to check * @return a classes list */
Returns a list with the class passed in input plus his superclasses
getAllsuperClasses
{ "repo_name": "jmapper-framework/jmapper-core", "path": "JMapper Framework/src/main/java/com/googlecode/jmapper/util/ClassesManager.java", "license": "apache-2.0", "size": 29365 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,845,024
public void set(Object key, E value, Location loc, Environment env) throws EvalException { checkMutable(loc, env); List list = getContentsUnsafe(); int index = EvalUtils.getSequenceIndex(key, list.size(), loc); list.set(index, value); }
void function(Object key, E value, Location loc, Environment env) throws EvalException { checkMutable(loc, env); List list = getContentsUnsafe(); int index = EvalUtils.getSequenceIndex(key, list.size(), loc); list.set(index, value); }
/** * Put an entry into a SkylarkList. * @param key the index * @param value the associated value * @param loc a {@link Location} in case of error * @param env an {@link Environment}, to check Mutability * @throws EvalException if the key is invalid */
Put an entry into a SkylarkList
set
{ "repo_name": "juhalindfors/bazel-patches", "path": "src/main/java/com/google/devtools/build/lib/syntax/SkylarkList.java", "license": "apache-2.0", "size": 20739 }
[ "com.google.devtools.build.lib.events.Location", "java.util.List" ]
import com.google.devtools.build.lib.events.Location; import java.util.List;
import com.google.devtools.build.lib.events.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
352,421
Item getItem(ItemState state);
Item getItem(ItemState state);
/** * Returns the cached <code>Item</code> that belongs to the given * <code>ItemState</code> or <code>null</code> if the cache does not * contain that <code>Item</code>. * * @param state State of the item that should be retrieved. * @return The item reference stored in the corresponding c...
Returns the cached <code>Item</code> that belongs to the given <code>ItemState</code> or <code>null</code> if the cache does not contain that <code>Item</code>
getItem
{ "repo_name": "sdmcraft/jackrabbit", "path": "jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/ItemCache.java", "license": "apache-2.0", "size": 1564 }
[ "javax.jcr.Item", "org.apache.jackrabbit.jcr2spi.state.ItemState" ]
import javax.jcr.Item; import org.apache.jackrabbit.jcr2spi.state.ItemState;
import javax.jcr.*; import org.apache.jackrabbit.jcr2spi.state.*;
[ "javax.jcr", "org.apache.jackrabbit" ]
javax.jcr; org.apache.jackrabbit;
1,303,220
private JComponent getTextComponent(String text) { final JTextArea ta = OurUtil.textarea(text, 10, 10, false, true); final JScrollPane ans = new JScrollPane(ta, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED) { private static final l...
JComponent function(String text) { final JTextArea ta = OurUtil.textarea(text, 10, 10, false, true); final JScrollPane ans = new JScrollPane(ta, ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED, ScrollPaneConstants.HORIZONTAL_SCROLLBAR_AS_NEEDED) { private static final long serialVersionUID = 0;
/** * Helper method returns a JTextArea containing the given text. */
Helper method returns a JTextArea containing the given text
getTextComponent
{ "repo_name": "AlloyTools/org.alloytools.alloy", "path": "org.alloytools.alloy.application/src/main/java/edu/mit/csail/sdg/alloy4viz/VizGUI.java", "license": "apache-2.0", "size": 84556 }
[ "edu.mit.csail.sdg.alloy4.OurUtil", "javax.swing.JComponent", "javax.swing.JScrollPane", "javax.swing.JTextArea", "javax.swing.ScrollPaneConstants" ]
import edu.mit.csail.sdg.alloy4.OurUtil; import javax.swing.JComponent; import javax.swing.JScrollPane; import javax.swing.JTextArea; import javax.swing.ScrollPaneConstants;
import edu.mit.csail.sdg.alloy4.*; import javax.swing.*;
[ "edu.mit.csail", "javax.swing" ]
edu.mit.csail; javax.swing;
2,708,504
@Parameterized.Parameters public static Collection<Object[]> data() { Collection<Object[]> parameters = new ArrayList<Object[]>(); parameters.add(new Object[] { "bb", "ab", new Rule("a", "b") }); parameters.add(new Object[] { "bba", "aba", new Rule("a", "b") }); return paramet...
@Parameterized.Parameters static Collection<Object[]> function() { Collection<Object[]> parameters = new ArrayList<Object[]>(); parameters.add(new Object[] { "bb", "ab", new Rule("a", "b") }); parameters.add(new Object[] { "bba", "aba", new Rule("a", "b") }); return parameters; }
/** * Returns a matrix of input data. * * @return a matrix of input data */
Returns a matrix of input data
data
{ "repo_name": "gammalgris/jmul", "path": "Utilities/Math-Tests/src/test/jmul/math/markov/RuleValidApplicationTest.java", "license": "gpl-3.0", "size": 3000 }
[ "java.util.ArrayList", "java.util.Collection", "org.junit.runners.Parameterized" ]
import java.util.ArrayList; import java.util.Collection; import org.junit.runners.Parameterized;
import java.util.*; import org.junit.runners.*;
[ "java.util", "org.junit.runners" ]
java.util; org.junit.runners;
2,631,282
public void testFormat() { Date now = new Date(); String regularFormatted = simpleDateFormat.format( now ); String threadSafeFormatted = threadSafeSimpleDateFormat.format( now ); assertEquals( "Two formatted strings should be equal", regularFormatted, threadSafeFormatted )...
void function() { Date now = new Date(); String regularFormatted = simpleDateFormat.format( now ); String threadSafeFormatted = threadSafeSimpleDateFormat.format( now ); assertEquals( STR, regularFormatted, threadSafeFormatted ); }
/** * Tests to make sure that format produces the same string on the thread-safe implementation as * it does on the regular one. */
Tests to make sure that format produces the same string on the thread-safe implementation as it does on the regular one
testFormat
{ "repo_name": "tikue/jcs2-snapshot", "path": "src/test/org/apache/commons/jcs/utils/date/ThreadSafeSimpleDateFormatUnitTest.java", "license": "apache-2.0", "size": 4594 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,747,463
@Override protected void onDestroy() { super.onDestroy(); Log.d("onDestroy", "about to run"); // Unregister receivers & listeners unregisterReceiver(updateTextReceiver); unregisterReceiver(SMSCallback); // Unbind from our server Service if (boundToServer) { unbindService(serverServiceConnection); ...
void function() { super.onDestroy(); Log.d(STR, STR); unregisterReceiver(updateTextReceiver); unregisterReceiver(SMSCallback); if (boundToServer) { unbindService(serverServiceConnection); boundToServer = false; } }
/** * Run when Android quits our Activity. * Treated like a destructor. */
Run when Android quits our Activity. Treated like a destructor
onDestroy
{ "repo_name": "jugonz/smsplus", "path": "GPSLocation/src/edu/mit/jugonz97/gpslocation/ServerTest.java", "license": "mit", "size": 5258 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
5,254
private TriggerType createLocalizedTriggerType(TriggerType tt, Bundle bundle, String moduleTypeUID, Locale locale, List<ConfigDescriptionParameter> lconfigDescriptions, String llabel, String ldescription) { List<Output> outputs = ModuleTypeI18nUtil.getLocalizedOutputs(i18nProvider, tt.getOutputs...
TriggerType function(TriggerType tt, Bundle bundle, String moduleTypeUID, Locale locale, List<ConfigDescriptionParameter> lconfigDescriptions, String llabel, String ldescription) { List<Output> outputs = ModuleTypeI18nUtil.getLocalizedOutputs(i18nProvider, tt.getOutputs(), bundle, moduleTypeUID, locale); TriggerType lt...
/** * Utility method for localization of TriggerTypes. * * @param ct is a TriggerType for localization. * @param bundle the bundle providing localization resources. * @param moduleTypeUID is a TriggerType uid. * @param locale represents a specific geographical, political, or cultural regio...
Utility method for localization of TriggerTypes
createLocalizedTriggerType
{ "repo_name": "marinmitev/smarthome", "path": "bundles/automation/org.eclipse.smarthome.automation.providers/src/main/java/org/eclipse/smarthome/automation/internal/core/provider/ModuleTypeResourceBundleProvider.java", "license": "epl-1.0", "size": 17848 }
[ "java.util.List", "java.util.Locale", "org.eclipse.smarthome.automation.Trigger", "org.eclipse.smarthome.automation.internal.core.provider.i18n.ModuleI18nUtil", "org.eclipse.smarthome.automation.internal.core.provider.i18n.ModuleTypeI18nUtil", "org.eclipse.smarthome.automation.type.CompositeTriggerType", ...
import java.util.List; import java.util.Locale; import org.eclipse.smarthome.automation.Trigger; import org.eclipse.smarthome.automation.internal.core.provider.i18n.ModuleI18nUtil; import org.eclipse.smarthome.automation.internal.core.provider.i18n.ModuleTypeI18nUtil; import org.eclipse.smarthome.automation.type.Compos...
import java.util.*; import org.eclipse.smarthome.automation.*; import org.eclipse.smarthome.automation.internal.core.provider.i18n.*; import org.eclipse.smarthome.automation.type.*; import org.eclipse.smarthome.config.core.*; import org.osgi.framework.*;
[ "java.util", "org.eclipse.smarthome", "org.osgi.framework" ]
java.util; org.eclipse.smarthome; org.osgi.framework;
1,402,039
private OKUser getCurrentUser(Context ctx) { if(currentUser != null) { return currentUser; } else { return getOKUserInSharedPrefs(ctx); } }
OKUser function(Context ctx) { if(currentUser != null) { return currentUser; } else { return getOKUserInSharedPrefs(ctx); } }
/** * Get current user from shared preferences if stored * @param Context, required to pull current user stored in SharedPreferences * @return Current user, or null if user is not logged in */
Get current user from shared preferences if stored
getCurrentUser
{ "repo_name": "oyatsukai/openkit-android-beta", "path": "OpenKitSDK/src/io/openkit/OpenKitSingleton.java", "license": "apache-2.0", "size": 4239 }
[ "android.content.Context" ]
import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
2,855,172
public void testRemoveAll() { Set full = populatedSet(3); assertTrue(full.removeAll(Arrays.asList(one, two))); assertEquals(1, full.size()); assertFalse(full.removeAll(Arrays.asList(one, two))); assertEquals(1, full.size()); }
void function() { Set full = populatedSet(3); assertTrue(full.removeAll(Arrays.asList(one, two))); assertEquals(1, full.size()); assertFalse(full.removeAll(Arrays.asList(one, two))); assertEquals(1, full.size()); }
/** * removeAll removes all elements from the given collection */
removeAll removes all elements from the given collection
testRemoveAll
{ "repo_name": "FauxFaux/jdk9-jdk", "path": "test/java/util/concurrent/tck/CopyOnWriteArraySetTest.java", "license": "gpl-2.0", "size": 13665 }
[ "java.util.Arrays", "java.util.Set" ]
import java.util.Arrays; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,960,391
public void generateIncrementVersion(JavaWriter out) throws IOException { int dirtyGroup = getIndex() / 64; String dirtyVar = "__caucho_dirtyMask_" + dirtyGroup; long dirtyMask = 1L << (getIndex() % 64); String getter = generateSuperGetter("this"); AmberType type = getColumn().getType(); ...
void function(JavaWriter out) throws IOException { int dirtyGroup = getIndex() / 64; String dirtyVar = STR + dirtyGroup; long dirtyMask = 1L << (getIndex() % 64); String getter = generateSuperGetter("this"); AmberType type = getColumn().getType(); out.println(); out.println(STR + generateIsNull() + ")"); if (type.getJa...
/** * Generates the increment version. */
Generates the increment version
generateIncrementVersion
{ "repo_name": "christianchristensen/resin", "path": "modules/resin/src/com/caucho/amber/field/VersionField.java", "license": "gpl-2.0", "size": 4885 }
[ "com.caucho.amber.type.AmberType", "com.caucho.java.JavaWriter", "java.io.IOException", "java.sql.Timestamp" ]
import com.caucho.amber.type.AmberType; import com.caucho.java.JavaWriter; import java.io.IOException; import java.sql.Timestamp;
import com.caucho.amber.type.*; import com.caucho.java.*; import java.io.*; import java.sql.*;
[ "com.caucho.amber", "com.caucho.java", "java.io", "java.sql" ]
com.caucho.amber; com.caucho.java; java.io; java.sql;
331,402
private void print(PrintWriter output, int w, int d) { DecimalFormat format = new DecimalFormat(); format.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.US)); format.setMinimumIntegerDigits(1); format.setMaximumFractionDigits(d); format.setMinimumFractionDigits(d); format...
void function(PrintWriter output, int w, int d) { DecimalFormat format = new DecimalFormat(); format.setDecimalFormatSymbols(new DecimalFormatSymbols(Locale.US)); format.setMinimumIntegerDigits(1); format.setMaximumFractionDigits(d); format.setMinimumFractionDigits(d); format.setGroupingUsed(false); print(output,format...
/** Print the matrix to the output stream. Line the elements up in * columns with a Fortran-like 'Fw.d' style format. @param output Output stream. @param w Column width. @param d Number of digits after the decimal. */
Print the matrix to the output stream. Line the elements up in columns with a Fortran-like 'Fw.d' style format
print
{ "repo_name": "DanDits/WhatsThat", "path": "app/src/main/java/dan/dit/whatsthat/util/jama/Matrix.java", "license": "apache-2.0", "size": 30080 }
[ "java.io.PrintWriter", "java.text.DecimalFormat", "java.text.DecimalFormatSymbols", "java.util.Locale" ]
import java.io.PrintWriter; import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import java.util.Locale;
import java.io.*; import java.text.*; import java.util.*;
[ "java.io", "java.text", "java.util" ]
java.io; java.text; java.util;
2,788,478
static DotName create(String name) { int lastDot = name.lastIndexOf('.'); if (lastDot < 0) { return DotName.createComponentized(null, name); } String prefix = name.substring(0, lastDot); DotName prefixName = NAMES.getValue(prefix); String local = name.subs...
static DotName create(String name) { int lastDot = name.lastIndexOf('.'); if (lastDot < 0) { return DotName.createComponentized(null, name); } String prefix = name.substring(0, lastDot); DotName prefixName = NAMES.getValue(prefix); String local = name.substring(lastDot + 1); return DotName.createComponentized(prefixNam...
/** * Note that the dollar sign is a valid character for class names so we cannot detect a nested class here. Therefore, this * method returns a dot name for which {@link DotName#local()} returns {@code Foo$Bar} for the parameter * "com.foo.Foo$Bar". * * @param name * @return the computed ...
Note that the dollar sign is a valid character for class names so we cannot detect a nested class here. Therefore, this method returns a dot name for which <code>DotName#local()</code> returns Foo$Bar for the parameter "com.foo.Foo$Bar"
create
{ "repo_name": "quarkusio/quarkus", "path": "independent-projects/arc/processor/src/main/java/io/quarkus/arc/processor/DotNames.java", "license": "apache-2.0", "size": 11047 }
[ "org.jboss.jandex.DotName" ]
import org.jboss.jandex.DotName;
import org.jboss.jandex.*;
[ "org.jboss.jandex" ]
org.jboss.jandex;
1,808,838
@Override public void publish(LogRecord record) { if (!isLoggable(record)) { return; } AlertThreadGroup.publishCurrent(record); }
void function(LogRecord record) { if (!isLoggable(record)) { return; } AlertThreadGroup.publishCurrent(record); }
/** * Pass record to AlertThreadGroup. * * @see java.util.logging.Handler#publish(java.util.logging.LogRecord) */
Pass record to AlertThreadGroup
publish
{ "repo_name": "searchtechnologies/heritrix-connector", "path": "engine-3.1.1/engine/src/main/java/org/archive/crawler/reporting/AlertHandler.java", "license": "apache-2.0", "size": 2009 }
[ "java.util.logging.LogRecord" ]
import java.util.logging.LogRecord;
import java.util.logging.*;
[ "java.util" ]
java.util;
42,438
@VisibleForTesting @Override public void initialize() { UiThreadUtil.assertOnUiThread(); Assertions.assertCondition( !mInitialized, "This catalyst instance has already been initialized"); mInitialized = true; mJavaRegistry.notifyCatalystInstanceInitialized(); }
void function() { UiThreadUtil.assertOnUiThread(); Assertions.assertCondition( !mInitialized, STR); mInitialized = true; mJavaRegistry.notifyCatalystInstanceInitialized(); }
/** * Initialize all the native modules */
Initialize all the native modules
initialize
{ "repo_name": "bohanapp/PropertyFinder", "path": "node_modules/react-native/ReactAndroid/src/main/java/com/facebook/react/bridge/CatalystInstanceImpl.java", "license": "mit", "size": 19638 }
[ "com.facebook.infer.annotation.Assertions" ]
import com.facebook.infer.annotation.Assertions;
import com.facebook.infer.annotation.*;
[ "com.facebook.infer" ]
com.facebook.infer;
1,024,411
public Map<String, String> readTileData(int index) { if (tileData.containsKey(String.valueOf(index))) { return tileData.get(String.valueOf(index)); } return Map.of(); }
Map<String, String> function(int index) { if (tileData.containsKey(String.valueOf(index))) { return tileData.get(String.valueOf(index)); } return Map.of(); }
/** * Read the tile metadata for the specific index, if any. * * @param index * @return */
Read the tile metadata for the specific index, if any
readTileData
{ "repo_name": "swordmaster2k/rpgwizard", "path": "core/src/main/java/org/rpgwizard/common/assets/TileSet.java", "license": "mpl-2.0", "size": 4998 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,427,849
public Builder withLanguages(@Nullable final List<LanguageType> languages) { this.bLanguages = languages; return this; }
Builder function(@Nullable final List<LanguageType> languages) { this.bLanguages = languages; return this; }
/** * Set the movie's languages. * * @param languages List of languages * @return The builder */
Set the movie's languages
withLanguages
{ "repo_name": "JonkiPro/REST-Web-Services", "path": "common/src/main/java/com/common/dto/Movie.java", "license": "mit", "size": 7190 }
[ "com.common.dto.movie.type.LanguageType", "java.util.List", "javax.annotation.Nullable" ]
import com.common.dto.movie.type.LanguageType; import java.util.List; import javax.annotation.Nullable;
import com.common.dto.movie.type.*; import java.util.*; import javax.annotation.*;
[ "com.common.dto", "java.util", "javax.annotation" ]
com.common.dto; java.util; javax.annotation;
1,717,133
public ReportGeneratorBuilder addPlugin(final String classNameOrPluginName) { Objects.requireNonNull("classNameOrPluginName", classNameOrPluginName); registerPlugin(classNameOrPluginName); _plugins.add(classNameOrPluginName); return this; }
ReportGeneratorBuilder function(final String classNameOrPluginName) { Objects.requireNonNull(STR, classNameOrPluginName); registerPlugin(classNameOrPluginName); _plugins.add(classNameOrPluginName); return this; }
/** * Add a plugin to be used as default plugins for custom configuration or in * addition to plugins defined by the processor. * * @param classNameOrPluginName a class name or the short name of a plugin. * @return the builder */
Add a plugin to be used as default plugins for custom configuration or in addition to plugins defined by the processor
addPlugin
{ "repo_name": "psoreide/bnd", "path": "biz.aQute.bnd.reporter/src/biz/aQute/bnd/reporter/generator/ReportGeneratorBuilder.java", "license": "apache-2.0", "size": 10385 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
455,399
public String getStateToolTip(int state) { switch (state) { case WrappedProcess.STATE_RUNNING: return "Running"; case WrappedProcess.STATE_IDLE: return "Idle"; case WrappedProcess.STATE_RESTART: case WrappedProcess.STATE_RESTART_START: case WrappedProcess.STATE_RESTART_STOP: case Wr...
String function(int state) { switch (state) { case WrappedProcess.STATE_RUNNING: return STR; case WrappedProcess.STATE_IDLE: return "Idle"; case WrappedProcess.STATE_RESTART: case WrappedProcess.STATE_RESTART_START: case WrappedProcess.STATE_RESTART_STOP: case WrappedProcess.STATE_RESTART_WAIT: return STR; case Wrapped...
/** * Gets the state tool tip. * * @param state * the state * * @return the state tool tip */
Gets the state tool tip
getStateToolTip
{ "repo_name": "mv2a/yajsw", "path": "src/yajsw/src/main/java/org/rzo/yajsw/tray/WrapperTrayIconImpl.java", "license": "apache-2.0", "size": 34694 }
[ "org.rzo.yajsw.wrapper.WrappedProcess" ]
import org.rzo.yajsw.wrapper.WrappedProcess;
import org.rzo.yajsw.wrapper.*;
[ "org.rzo.yajsw" ]
org.rzo.yajsw;
313,720
boolean shouldVisitTable(String schemaName, String tableName, Schema.TableType tableType);
boolean shouldVisitTable(String schemaName, String tableName, Schema.TableType tableType);
/** * Visit the tables in the given schema. * * @param schemaName name of the schema * @param tableName name of the table * @param tableType type of the table * @return whether to continue exploring the contents of the table or not. * Contents are tables attributes and columns. */
Visit the tables in the given schema
shouldVisitTable
{ "repo_name": "apache/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/store/ischema/FilterEvaluator.java", "license": "apache-2.0", "size": 8464 }
[ "org.apache.calcite.schema.Schema" ]
import org.apache.calcite.schema.Schema;
import org.apache.calcite.schema.*;
[ "org.apache.calcite" ]
org.apache.calcite;
2,807,027
public Writer write(Writer writer) throws JSONException { try { boolean b = false; Iterator keys = keys(); writer.write('{'); while (keys.hasNext()) { if (b) { writer.write(','); } ...
Writer function(Writer writer) throws JSONException { try { boolean b = false; Iterator keys = keys(); writer.write('{'); while (keys.hasNext()) { if (b) { writer.write(','); } Object k = keys.next(); writer.write(quote(k.toString())); writer.write(':'); Object v = this.map.get(k); if (v instanceof JSONObject) { ((JSON...
/** * Write the contents of the JSONObject as JSON text to a writer. * For compactness, no whitespace is added. * <p> * Warning: This method assumes that the data structure is acyclical. * * @return The writer. * @throws JSONException */
Write the contents of the JSONObject as JSON text to a writer. For compactness, no whitespace is added. Warning: This method assumes that the data structure is acyclical
write
{ "repo_name": "logginghub/core", "path": "logginghub-swingutils/src/org/json/JSONObject.java", "license": "apache-2.0", "size": 54324 }
[ "java.io.IOException", "java.io.Writer", "java.util.Iterator" ]
import java.io.IOException; import java.io.Writer; import java.util.Iterator;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,334,576
public static boolean portIsExist(final String portString) { StringTokenizer st = new StringTokenizer(portString, ","); String port = st.nextToken(); String[] ports = RXTXConnection.getPortNames(); for (String p : ports) { if (p.equalsIgnoreCase(port)) { ...
static boolean function(final String portString) { StringTokenizer st = new StringTokenizer(portString, ","); String port = st.nextToken(); String[] ports = RXTXConnection.getPortNames(); for (String p : ports) { if (p.equalsIgnoreCase(port)) { return true; } } return false; }
/** * check serial port for existing and could be opened. * @param portString a string with only a port-name or * a port-name followed by "," * @return true if the port is in the list of all ports */
check serial port for existing and could be opened
portIsExist
{ "repo_name": "xafero/travelingsales", "path": "osmnavigation/src/main/java/org/openstreetmap/travelingsalesman/gps/jgps/GPSChecker.java", "license": "gpl-3.0", "size": 13104 }
[ "java.util.StringTokenizer" ]
import java.util.StringTokenizer;
import java.util.*;
[ "java.util" ]
java.util;
2,612,467
public InterceptorType<T> removeAllAroundConstruct() { childNode.removeChildren("around-construct"); return this; } // --------------------------------------------------------------------------------------------------------|| // ClassName: InterceptorType ElementName: javaee:lifecycle-call...
InterceptorType<T> function() { childNode.removeChildren(STR); return this; }
/** * Removes all <code>around-construct</code> elements * @return the current instance of <code>LifecycleCallbackType<InterceptorType<T>></code> */
Removes all <code>around-construct</code> elements
removeAllAroundConstruct
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/ejbjar32/InterceptorTypeImpl.java", "license": "epl-1.0", "size": 60039 }
[ "org.jboss.shrinkwrap.descriptor.api.ejbjar32.InterceptorType" ]
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.InterceptorType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
2,413,945
private static long[] deleteDimension(final ImgPlus img, final int dimension) { final long[] returnValue = new long[img.numDimensions() - 1]; int i = 0; for (int j = 0; j < img.numDimensions(); ++j) { if (j != dimension) { returnValue[i++] = img.dimension(j); } } return returnValue; }
static long[] function(final ImgPlus img, final int dimension) { final long[] returnValue = new long[img.numDimensions() - 1]; int i = 0; for (int j = 0; j < img.numDimensions(); ++j) { if (j != dimension) { returnValue[i++] = img.dimension(j); } } return returnValue; }
/** * Deletes a dimension at given dimensional index. * */
Deletes a dimension at given dimensional index
deleteDimension
{ "repo_name": "slim-curve/slim-plugin", "path": "src/main/java/loci/slim2/decay/DecayDatasetUtility.java", "license": "gpl-3.0", "size": 4851 }
[ "net.imagej.ImgPlus" ]
import net.imagej.ImgPlus;
import net.imagej.*;
[ "net.imagej" ]
net.imagej;
1,601,805
return new CustomBatchExecutor() {
return new CustomBatchExecutor() {
/** * Overridden to run the scrubber demerger process. * * @see org.kuali.kfs.batch.Step#execute(java.lang.String) */
Overridden to run the scrubber demerger process
getCustomBatchExecutor
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-core/src/main/java/org/kuali/kfs/gl/batch/DemergerStep.java", "license": "agpl-3.0", "size": 2620 }
[ "org.kuali.kfs.sys.batch.service.WrappedBatchExecutorService" ]
import org.kuali.kfs.sys.batch.service.WrappedBatchExecutorService;
import org.kuali.kfs.sys.batch.service.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
802,834
@Path("attack-detection") public AttackDetectionResource getAttackDetection() { AttackDetectionResource resource = new AttackDetectionResource(auth, realm, adminEvent); ResteasyProviderFactory.getInstance().injectProperties(resource); return resource; }
@Path(STR) AttackDetectionResource function() { AttackDetectionResource resource = new AttackDetectionResource(auth, realm, adminEvent); ResteasyProviderFactory.getInstance().injectProperties(resource); return resource; }
/** * Base path for managing attack detection. * * @return */
Base path for managing attack detection
getAttackDetection
{ "repo_name": "jean-merelis/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java", "license": "apache-2.0", "size": 26697 }
[ "javax.ws.rs.Path", "org.jboss.resteasy.spi.ResteasyProviderFactory" ]
import javax.ws.rs.Path; import org.jboss.resteasy.spi.ResteasyProviderFactory;
import javax.ws.rs.*; import org.jboss.resteasy.spi.*;
[ "javax.ws", "org.jboss.resteasy" ]
javax.ws; org.jboss.resteasy;
1,711,350
@Test public void getInodeByNonexistingPath() throws Exception { mThrown.expect(FileDoesNotExistException.class); mThrown.expectMessage("Path /test does not exist"); assertFalse(mTree.inodePathExists(TEST_URI)); getInodeByPath(mTree, TEST_URI); }
void function() throws Exception { mThrown.expect(FileDoesNotExistException.class); mThrown.expectMessage(STR); assertFalse(mTree.inodePathExists(TEST_URI)); getInodeByPath(mTree, TEST_URI); }
/** * Tests that an exception is thrown when trying to get an Inode by a non-existing path. */
Tests that an exception is thrown when trying to get an Inode by a non-existing path
getInodeByNonexistingPath
{ "repo_name": "maboelhassan/alluxio", "path": "core/server/master/src/test/java/alluxio/master/file/meta/InodeTreeTest.java", "license": "apache-2.0", "size": 31757 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,879,351
private void sendNonCached(Message message, String destinationName) throws JMSException, JMSConnectorException { Connection connection = null; Session session = null; Destination destination; MessageProducer messageProducer = null; try { connection = jmsConnection...
void function(Message message, String destinationName) throws JMSException, JMSConnectorException { Connection connection = null; Session session = null; Destination destination; MessageProducer messageProducer = null; try { connection = jmsConnectionFactory.createConnection(); session = jmsConnectionFactory.createSess...
/** * Send the JMS Message by bypassing the Caching pool. This is used when the connector is created using caching * disabled. * * @param message JMS Message. * @param destinationName Name of the JMS queue/topic. * @throws JMSException Thrown when creating connection, session, messageProdu...
Send the JMS Message by bypassing the Caching pool. This is used when the connector is created using caching disabled
sendNonCached
{ "repo_name": "wggihan/carbon-transports", "path": "jms/org.wso2.carbon.transport.jms/src/main/java/org/wso2/carbon/transport/jms/sender/JMSClientConnectorImpl.java", "license": "apache-2.0", "size": 10108 }
[ "javax.jms.Connection", "javax.jms.Destination", "javax.jms.JMSException", "javax.jms.Message", "javax.jms.MessageProducer", "javax.jms.Session", "org.wso2.carbon.transport.jms.exception.JMSConnectorException" ]
import javax.jms.Connection; import javax.jms.Destination; import javax.jms.JMSException; import javax.jms.Message; import javax.jms.MessageProducer; import javax.jms.Session; import org.wso2.carbon.transport.jms.exception.JMSConnectorException;
import javax.jms.*; import org.wso2.carbon.transport.jms.exception.*;
[ "javax.jms", "org.wso2.carbon" ]
javax.jms; org.wso2.carbon;
2,121,491
public void testConvertObjectToSearchResult_MatchInDescriptionLongSuffix() throws Exception { SearchResult searchResult = helper.convertObjectToSearchResult( new FakeNameable(0, "The title", "The word search is in the description"), "SEARCH"); assertEquals("The word ", search...
void function() throws Exception { SearchResult searchResult = helper.convertObjectToSearchResult( new FakeNameable(0, STR, STR), STR); assertEquals(STR, searchResult.getMatchPrefix()); assertEquals(STR, searchResult.getMatchingText()); assertEquals(STR, searchResult.getMatchSuffix()); }
/** Test convert object to search result_ match in description long * suffix. * * @throws Exception * the exception */
Test convert object to search result_ match in description long suffix
testConvertObjectToSearchResult_MatchInDescriptionLongSuffix
{ "repo_name": "alarulrajan/CodeFest", "path": "test/com/technoetic/xplanner/db/TestSearchResultFactory.java", "license": "gpl-2.0", "size": 6196 }
[ "com.technoetic.xplanner.domain.SearchResult" ]
import com.technoetic.xplanner.domain.SearchResult;
import com.technoetic.xplanner.domain.*;
[ "com.technoetic.xplanner" ]
com.technoetic.xplanner;
1,029,849
public void attemptFontSelection() { FontChooserPanel panel = new FontChooserPanel(this.titleFont); int result = JOptionPane.showConfirmDialog( this, panel, localizationResources.getString("Font_Selection"), JOptionPane.OK_CANCEL_OPTION, JOptionPane...
void function() { FontChooserPanel panel = new FontChooserPanel(this.titleFont); int result = JOptionPane.showConfirmDialog( this, panel, localizationResources.getString(STR), JOptionPane.OK_CANCEL_OPTION, JOptionPane.PLAIN_MESSAGE ); if (result == JOptionPane.OK_OPTION) { this.titleFont = panel.getSelectedFont(); this...
/** * Presents a font selection dialog to the user. */
Presents a font selection dialog to the user
attemptFontSelection
{ "repo_name": "jfree/jfreechart", "path": "src/main/java/org/jfree/chart/swing/editor/DefaultTitleEditor.java", "license": "lgpl-2.1", "size": 9988 }
[ "javax.swing.JOptionPane" ]
import javax.swing.JOptionPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
802,885
public static DataRecordMetadata createUIInputParametersMetadata() { DataRecordMetadata metadata = new DataRecordMetadata(ATTRIBUTES_RECORD_NAME); metadata.addField(new DataFieldMetadata(IP_URL_NAME, DataFieldType.STRING, null)); metadata.addField(new DataFieldMetadata(IP_REQUEST_METHOD_NAME, DataFieldTyp...
static DataRecordMetadata function() { DataRecordMetadata metadata = new DataRecordMetadata(ATTRIBUTES_RECORD_NAME); metadata.addField(new DataFieldMetadata(IP_URL_NAME, DataFieldType.STRING, null)); metadata.addField(new DataFieldMetadata(IP_REQUEST_METHOD_NAME, DataFieldType.STRING, null)); metadata.addField(new Data...
/** * Creates input parameters metadata for mapping dialogs. * * @return input parameter metadata used by the component's mapping dialogs */
Creates input parameters metadata for mapping dialogs
createUIInputParametersMetadata
{ "repo_name": "CloverETL/CloverETL-Engine", "path": "cloveretl.component/src/org/jetel/component/HttpConnector.java", "license": "lgpl-2.1", "size": 154063 }
[ "org.jetel.metadata.DataFieldMetadata", "org.jetel.metadata.DataFieldType", "org.jetel.metadata.DataRecordMetadata" ]
import org.jetel.metadata.DataFieldMetadata; import org.jetel.metadata.DataFieldType; import org.jetel.metadata.DataRecordMetadata;
import org.jetel.metadata.*;
[ "org.jetel.metadata" ]
org.jetel.metadata;
319,875
public GetStorageReport reportsGetStorage() throws ReportsGetStorageException, DbxException { DateRange arg = new DateRange(null, null); return reportsGetStorage(arg); } public final class ReportsGetStorageBuilder { private java.util.Date startDate; pri...
GetStorageReport function() throws ReportsGetStorageException, DbxException { DateRange arg = new DateRange(null, null); return reportsGetStorage(arg); } public final class ReportsGetStorageBuilder { private java.util.Date startDate; private java.util.Date endDate; private ReportsGetStorageBuilder() { }
/** * Retrieves reporting data about a team's storage usage. */
Retrieves reporting data about a team's storage usage
reportsGetStorage
{ "repo_name": "hunchee/dropbox-sdk-java", "path": "src/com/dropbox/core/v2/DbxTeam.java", "license": "mit", "size": 1014346 }
[ "com.dropbox.core.DbxException" ]
import com.dropbox.core.DbxException;
import com.dropbox.core.*;
[ "com.dropbox.core" ]
com.dropbox.core;
987,646
protected void loadValue(String sValue) { value = new File(sValue); absolutePath = value.getAbsolutePath(); }
void function(String sValue) { value = new File(sValue); absolutePath = value.getAbsolutePath(); }
/** * Load value from property string value * @param sValue property string value */
Load value from property string value
loadValue
{ "repo_name": "alejandroarturom/frostwire-desktop", "path": "src/org/limewire/setting/FileSetting.java", "license": "gpl-3.0", "size": 1678 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,190,917
@Test public void basicClientServerIntegrationTest() throws Exception { // Create & start a server. File serverCertFile = TestUtils.loadCert("server1.pem"); File serverPrivateKeyFile = TestUtils.loadCert("server1.key"); X509Certificate[] serverTrustedCaCerts = { TestUtils.loadX509Cert("ca.pem"...
void function() throws Exception { File serverCertFile = TestUtils.loadCert(STR); File serverPrivateKeyFile = TestUtils.loadCert(STR); X509Certificate[] serverTrustedCaCerts = { TestUtils.loadX509Cert(STR) }; server = serverBuilder(port, serverCertFile, serverPrivateKeyFile, serverTrustedCaCerts) .addService(TestServic...
/** * Tests that a client and a server configured using GrpcSslContexts can successfully * communicate with each other. */
Tests that a client and a server configured using GrpcSslContexts can successfully communicate with each other
basicClientServerIntegrationTest
{ "repo_name": "LuminateWireless/grpc-java", "path": "interop-testing/src/test/java/io/grpc/testing/integration/TlsTest.java", "license": "bsd-3-clause", "size": 12128 }
[ "com.google.protobuf.EmptyProtos", "io.grpc.testing.TestUtils", "java.io.File", "java.security.cert.X509Certificate" ]
import com.google.protobuf.EmptyProtos; import io.grpc.testing.TestUtils; import java.io.File; import java.security.cert.X509Certificate;
import com.google.protobuf.*; import io.grpc.testing.*; import java.io.*; import java.security.cert.*;
[ "com.google.protobuf", "io.grpc.testing", "java.io", "java.security" ]
com.google.protobuf; io.grpc.testing; java.io; java.security;
1,038,039
public RectangleEdge getDomainAxisEdge() { return Plot.resolveDomainAxisLocation(getDomainAxisLocation(), this.orientation); }
RectangleEdge function() { return Plot.resolveDomainAxisLocation(getDomainAxisLocation(), this.orientation); }
/** * Returns the edge for the primary domain axis (taking into account the * plot's orientation). * * @return The edge. * * @see #getDomainAxisLocation() * @see #getOrientation() */
Returns the edge for the primary domain axis (taking into account the plot's orientation)
getDomainAxisEdge
{ "repo_name": "Epsilon2/Memetic-Algorithm-for-TSP", "path": "jfreechart-1.0.16/source/org/jfree/chart/plot/XYPlot.java", "license": "mit", "size": 199979 }
[ "org.jfree.ui.RectangleEdge" ]
import org.jfree.ui.RectangleEdge;
import org.jfree.ui.*;
[ "org.jfree.ui" ]
org.jfree.ui;
2,198,031
@Override protected void createButtonsForButtonBar(Composite parent) { createButton(parent, IDialogConstants.OK_ID, I18n.DIALOG_OK, true); createButton(parent, IDialogConstants.CANCEL_ID, I18n.DIALOG_CANCEL, false); }
void function(Composite parent) { createButton(parent, IDialogConstants.OK_ID, I18n.DIALOG_OK, true); createButton(parent, IDialogConstants.CANCEL_ID, I18n.DIALOG_CANCEL, false); }
/** * Create contents of the button bar. * * @param parent */
Create contents of the button bar
createButtonsForButtonBar
{ "repo_name": "nilsschmidt1337/ldparteditor", "path": "src/org/nschmidt/ldparteditor/dialog/ytruder/YTruderDesign.java", "license": "mit", "size": 7126 }
[ "org.eclipse.jface.dialogs.IDialogConstants", "org.eclipse.swt.widgets.Composite", "org.nschmidt.ldparteditor.i18n.I18n" ]
import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.swt.widgets.Composite; import org.nschmidt.ldparteditor.i18n.I18n;
import org.eclipse.jface.dialogs.*; import org.eclipse.swt.widgets.*; import org.nschmidt.ldparteditor.i18n.*;
[ "org.eclipse.jface", "org.eclipse.swt", "org.nschmidt.ldparteditor" ]
org.eclipse.jface; org.eclipse.swt; org.nschmidt.ldparteditor;
59,448
public void setRestConfiguration(RestConfigurationDefinition restConfiguration) { this.restConfiguration = restConfiguration; }
void function(RestConfigurationDefinition restConfiguration) { this.restConfiguration = restConfiguration; }
/** * Configuration for rest-dsl */
Configuration for rest-dsl
setRestConfiguration
{ "repo_name": "anoordover/camel", "path": "components/camel-spring/src/main/java/org/apache/camel/spring/CamelContextFactoryBean.java", "license": "apache-2.0", "size": 42988 }
[ "org.apache.camel.model.rest.RestConfigurationDefinition" ]
import org.apache.camel.model.rest.RestConfigurationDefinition;
import org.apache.camel.model.rest.*;
[ "org.apache.camel" ]
org.apache.camel;
1,306,785
public void addGlueRules(ArrayList<FeatureFunction> featureFunctions) { HieroFormatReader reader = new HieroFormatReader(); String goalNT = FormatUtils.cleanNonTerminal(joshuaConfiguration.goal_symbol); String defaultNT = FormatUtils.cleanNonTerminal(joshuaConfiguration.default_non_terminal); String...
void function(ArrayList<FeatureFunction> featureFunctions) { HieroFormatReader reader = new HieroFormatReader(); String goalNT = FormatUtils.cleanNonTerminal(joshuaConfiguration.goal_symbol); String defaultNT = FormatUtils.cleanNonTerminal(joshuaConfiguration.default_non_terminal); String[] ruleStrings = new String[] {...
/** * Adds a default set of glue rules. * * @param featureFunctions an {@link java.util.ArrayList} of {@link org.apache.joshua.decoder.ff.FeatureFunction}'s */
Adds a default set of glue rules
addGlueRules
{ "repo_name": "fhieber/incubator-joshua", "path": "src/main/java/org/apache/joshua/decoder/ff/tm/hash_based/MemoryBasedBatchGrammar.java", "license": "apache-2.0", "size": 9849 }
[ "java.util.ArrayList", "org.apache.joshua.corpus.Vocabulary", "org.apache.joshua.decoder.ff.FeatureFunction", "org.apache.joshua.decoder.ff.tm.Rule", "org.apache.joshua.decoder.ff.tm.format.HieroFormatReader", "org.apache.joshua.util.FormatUtils" ]
import java.util.ArrayList; import org.apache.joshua.corpus.Vocabulary; import org.apache.joshua.decoder.ff.FeatureFunction; import org.apache.joshua.decoder.ff.tm.Rule; import org.apache.joshua.decoder.ff.tm.format.HieroFormatReader; import org.apache.joshua.util.FormatUtils;
import java.util.*; import org.apache.joshua.corpus.*; import org.apache.joshua.decoder.ff.*; import org.apache.joshua.decoder.ff.tm.*; import org.apache.joshua.decoder.ff.tm.format.*; import org.apache.joshua.util.*;
[ "java.util", "org.apache.joshua" ]
java.util; org.apache.joshua;
1,441,059
public static void deleteNodeFailSilent(ZooKeeperWatcher zkw, String node) throws KeeperException { try { zkw.getRecoverableZooKeeper().delete(node, -1); } catch(KeeperException.NoNodeException nne) { } catch(InterruptedException ie) { zkw.interruptedException(ie); } }
static void function(ZooKeeperWatcher zkw, String node) throws KeeperException { try { zkw.getRecoverableZooKeeper().delete(node, -1); } catch(KeeperException.NoNodeException nne) { } catch(InterruptedException ie) { zkw.interruptedException(ie); } }
/** * Deletes the specified node. Fails silent if the node does not exist. * @param zkw * @param node * @throws KeeperException */
Deletes the specified node. Fails silent if the node does not exist
deleteNodeFailSilent
{ "repo_name": "ay65535/hbase-0.94.0", "path": "src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java", "license": "apache-2.0", "size": 41402 }
[ "org.apache.zookeeper.KeeperException" ]
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.*;
[ "org.apache.zookeeper" ]
org.apache.zookeeper;
498,987
private void readBasicClassInfo() throws IOException, ClassfileFormatException, SkipClassException { // Modifier flags classModifiers = reader.readUnsignedShort(); isInterface = (classModifiers & 0x0200) != 0; isAnnotation = (classModifiers & 0x2000) != 0; // The fully-qual...
void function() throws IOException, ClassfileFormatException, SkipClassException { classModifiers = reader.readUnsignedShort(); isInterface = (classModifiers & 0x0200) != 0; isAnnotation = (classModifiers & 0x2000) != 0; final String classNamePath = getConstantPoolString(reader.readUnsignedShort()); if (classNamePath =...
/** * Read basic class information. * * @throws IOException * if an I/O exception occurs. * @throws ClassfileFormatException * if the classfile is incorrectly formatted. * @throws SkipClassException * if the classfile needs to be skipped (e.g....
Read basic class information
readBasicClassInfo
{ "repo_name": "lukehutch/fast-classpath-scanner", "path": "src/main/java/io/github/classgraph/Classfile.java", "license": "mit", "size": 83707 }
[ "java.io.IOException", "java.lang.reflect.Modifier" ]
import java.io.IOException; import java.lang.reflect.Modifier;
import java.io.*; import java.lang.reflect.*;
[ "java.io", "java.lang" ]
java.io; java.lang;
96,626
@Deprecated List<RichUser> getDirectRichAdmins(PerunSession sess, Facility facility) throws InternalErrorException, UserNotExistsException;
List<RichUser> getDirectRichAdmins(PerunSession sess, Facility facility) throws InternalErrorException, UserNotExistsException;
/** * Get all Facility admins, which are assigned directly (not by group membership) without attributes. * * @param sess * @param facility * @return return list of RichUsers without attributes. * @throws InternalErrorException * @throws UserNotExistsException */
Get all Facility admins, which are assigned directly (not by group membership) without attributes
getDirectRichAdmins
{ "repo_name": "Simcsa/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/FacilitiesManagerBl.java", "license": "bsd-2-clause", "size": 39157 }
[ "cz.metacentrum.perun.core.api.Facility", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.RichUser", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "cz.metacentrum.perun.core.api.exceptions.UserNotExistsException", "java.util.List" ]
import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.RichUser; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum.perun.core.api.exceptions.UserNotExistsException; import java.util.List;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
2,848,445
public Priority getDefaultPriorityForQueue(String queueName) { Queue queue = getQueue(queueName); if (null == queue || null == queue.getDefaultApplicationPriority()) { // Return with default application priority return Priority.newInstance(CapacitySchedulerConfiguration .DEFAULT_CONFIGUR...
Priority function(String queueName) { Queue queue = getQueue(queueName); if (null == queue null == queue.getDefaultApplicationPriority()) { return Priority.newInstance(CapacitySchedulerConfiguration .DEFAULT_CONFIGURATION_APPLICATION_PRIORITY); } return Priority.newInstance(queue.getDefaultApplicationPriority() .getPri...
/** * Get the default priority of the queue. * @param queueName the queue name * @return the default priority of the queue */
Get the default priority of the queue
getDefaultPriorityForQueue
{ "repo_name": "WIgor/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/capacity/CapacitySchedulerQueueManager.java", "license": "apache-2.0", "size": 14601 }
[ "org.apache.hadoop.yarn.api.records.Priority", "org.apache.hadoop.yarn.server.resourcemanager.scheduler.Queue" ]
import org.apache.hadoop.yarn.api.records.Priority; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.Queue;
import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,438,947
public void setupCrosstool(MockToolsConfig config, CToolchain toolchain) throws IOException { createCrosstoolPackage( config, false, true, null, null, toolchain); }
void function(MockToolsConfig config, CToolchain toolchain) throws IOException { createCrosstoolPackage( config, false, true, null, null, toolchain); }
/** * Creates a crosstool package by merging {@code toolchain} with the default mock CROSSTOOL file. */
Creates a crosstool package by merging toolchain with the default mock CROSSTOOL file
setupCrosstool
{ "repo_name": "hermione521/bazel", "path": "src/test/java/com/google/devtools/build/lib/packages/util/MockCcSupport.java", "license": "apache-2.0", "size": 23717 }
[ "com.google.devtools.build.lib.view.config.crosstool.CrosstoolConfig", "java.io.IOException" ]
import com.google.devtools.build.lib.view.config.crosstool.CrosstoolConfig; import java.io.IOException;
import com.google.devtools.build.lib.view.config.crosstool.*; import java.io.*;
[ "com.google.devtools", "java.io" ]
com.google.devtools; java.io;
1,371,098
public Output<V> z() { return z; }
Output<V> function() { return z; }
/** * Gets z. * * @return z. */
Gets z
z
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/math/QuantizedAdd.java", "license": "apache-2.0", "size": 5964 }
[ "org.tensorflow.Output" ]
import org.tensorflow.Output;
import org.tensorflow.*;
[ "org.tensorflow" ]
org.tensorflow;
483,100
public void loadDocument(final String scoID) { final File pathToNavFile = settings.getScoDataModelFile(scoID); // Make sure its there if (pathToNavFile.exists()) { try { super.loadDocument(pathToNavFile); final Element root = getDocument(...
void function(final String scoID) { final File pathToNavFile = settings.getScoDataModelFile(scoID); if (pathToNavFile.exists()) { try { super.loadDocument(pathToNavFile); final Element root = getDocument().getRootElement(); _userId = getElement(root, STR).getText(); _userName = getElement(root, STR).getText(); _lesson_...
/** * A method to load into JDOM, a particular sco model given the item identifier. * * @param scoID * - the Item identifier for a sco */
A method to load into JDOM, a particular sco model given the item identifier
loadDocument
{ "repo_name": "huihoo/olat", "path": "olat7.8/src/main/java/org/olat/lms/scorm/server/servermodels/ScoDocument.java", "license": "apache-2.0", "size": 39919 }
[ "java.io.File", "org.jdom.Element", "org.olat.system.exception.OLATRuntimeException" ]
import java.io.File; import org.jdom.Element; import org.olat.system.exception.OLATRuntimeException;
import java.io.*; import org.jdom.*; import org.olat.system.exception.*;
[ "java.io", "org.jdom", "org.olat.system" ]
java.io; org.jdom; org.olat.system;
1,735,381
public static String escapeHtml( String content ) { if ( Utils.isEmpty( content ) ) { return content; } return StringEscapeUtils.escapeHtml( content ); }
static String function( String content ) { if ( Utils.isEmpty( content ) ) { return content; } return StringEscapeUtils.escapeHtml( content ); }
/** * Escape HTML content. i.e. replace characters with &values; * * @param content * content * @return escaped content */
Escape HTML content. i.e. replace characters with &values
escapeHtml
{ "repo_name": "pedrofvteixeira/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/Const.java", "license": "apache-2.0", "size": 131745 }
[ "org.apache.commons.lang.StringEscapeUtils", "org.pentaho.di.core.util.Utils" ]
import org.apache.commons.lang.StringEscapeUtils; import org.pentaho.di.core.util.Utils;
import org.apache.commons.lang.*; import org.pentaho.di.core.util.*;
[ "org.apache.commons", "org.pentaho.di" ]
org.apache.commons; org.pentaho.di;
1,890,486
@Path("roles-by-id") public RoleByIdResource rolesById() { RoleByIdResource resource = new RoleByIdResource(realm, auth, adminEvent); ResteasyProviderFactory.getInstance().injectProperties(resource); //resourceContext.initResource(resource); return resource; }
@Path(STR) RoleByIdResource function() { RoleByIdResource resource = new RoleByIdResource(realm, auth, adminEvent); ResteasyProviderFactory.getInstance().injectProperties(resource); return resource; }
/** * Path for managing all realm-level or client-level roles defined in this realm by its id. * * @return */
Path for managing all realm-level or client-level roles defined in this realm by its id
rolesById
{ "repo_name": "keycloak/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java", "license": "apache-2.0", "size": 45553 }
[ "javax.ws.rs.Path", "org.jboss.resteasy.spi.ResteasyProviderFactory" ]
import javax.ws.rs.Path; import org.jboss.resteasy.spi.ResteasyProviderFactory;
import javax.ws.rs.*; import org.jboss.resteasy.spi.*;
[ "javax.ws", "org.jboss.resteasy" ]
javax.ws; org.jboss.resteasy;
2,235,115
private S3KeyPrefixInformation getS3KeyPrefixInformation(CloseableHttpResponse httpResponse) { return (S3KeyPrefixInformation) processXmlHttpResponse(httpResponse, "retrieve S3 key prefix from the registration server", S3KeyPrefixInformation.class); }
S3KeyPrefixInformation function(CloseableHttpResponse httpResponse) { return (S3KeyPrefixInformation) processXmlHttpResponse(httpResponse, STR, S3KeyPrefixInformation.class); }
/** * Extracts S3KeyPrefixInformation object from the registration server HTTP response. * * @param httpResponse the response received from the supported options. * * @return the S3KeyPrefixInformation object extracted from the registration server response. */
Extracts S3KeyPrefixInformation object from the registration server HTTP response
getS3KeyPrefixInformation
{ "repo_name": "kusid/herd", "path": "herd-code/herd-tools/herd-tools-common/src/main/java/org/finra/herd/tools/common/databridge/DataBridgeWebClient.java", "license": "apache-2.0", "size": 33085 }
[ "org.apache.http.client.methods.CloseableHttpResponse", "org.finra.herd.model.api.xml.S3KeyPrefixInformation" ]
import org.apache.http.client.methods.CloseableHttpResponse; import org.finra.herd.model.api.xml.S3KeyPrefixInformation;
import org.apache.http.client.methods.*; import org.finra.herd.model.api.xml.*;
[ "org.apache.http", "org.finra.herd" ]
org.apache.http; org.finra.herd;
2,359,763
@Override public void onLoaderReset(@NonNull final Loader<SortedList<T>> loader) { isLoading = false; }
void function(@NonNull final Loader<SortedList<T>> loader) { isLoading = false; }
/** * Called when a previously created loader is being reset, and thus * making its data unavailable. The application should at this point * remove any references it has to the Loader's data. * * @param loader The Loader that is being reset. */
Called when a previously created loader is being reset, and thus making its data unavailable. The application should at this point remove any references it has to the Loader's data
onLoaderReset
{ "repo_name": "mpv-android/mpv-android", "path": "app/src/main/java/is/xyz/filepicker/AbstractFilePickerFragment.java", "license": "mit", "size": 16120 }
[ "androidx.annotation.NonNull", "androidx.loader.content.Loader", "androidx.recyclerview.widget.SortedList" ]
import androidx.annotation.NonNull; import androidx.loader.content.Loader; import androidx.recyclerview.widget.SortedList;
import androidx.annotation.*; import androidx.loader.content.*; import androidx.recyclerview.widget.*;
[ "androidx.annotation", "androidx.loader", "androidx.recyclerview" ]
androidx.annotation; androidx.loader; androidx.recyclerview;
2,831,362
private boolean isFunctionThatShouldHaveJsDoc(NodeTraversal t, Node function) { if (!(t.inGlobalHoistScope() || t.inModuleScope())) { return false; } if (NodeUtil.isFunctionDeclaration(function)) { return true; } if (NodeUtil.isNameDeclaration(function.getGrandparent()) || function.get...
boolean function(NodeTraversal t, Node function) { if (!(t.inGlobalHoistScope() t.inModuleScope())) { return false; } if (NodeUtil.isFunctionDeclaration(function)) { return true; } if (NodeUtil.isNameDeclaration(function.getGrandparent()) function.getParent().isAssign()) { return true; } if (function.getParent().isExpo...
/** * Whether the given function should have JSDoc. True if it's a function declared * in the global scope, or a method on a class which is declared in the global scope. */
Whether the given function should have JSDoc. True if it's a function declared in the global scope, or a method on a class which is declared in the global scope
isFunctionThatShouldHaveJsDoc
{ "repo_name": "shantanusharma/closure-compiler", "path": "src/com/google/javascript/jscomp/lint/CheckJSDocStyle.java", "license": "apache-2.0", "size": 15324 }
[ "com.google.javascript.jscomp.NodeTraversal", "com.google.javascript.jscomp.NodeUtil", "com.google.javascript.rhino.Node" ]
import com.google.javascript.jscomp.NodeTraversal; import com.google.javascript.jscomp.NodeUtil; import com.google.javascript.rhino.Node;
import com.google.javascript.jscomp.*; import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,264,847
public static void SQLFUNCTIONS(String catalogName, String schemaName, String funcName, String options, ResultSet[] rs) throws SQLException { rs[0] = ((EmbedDatabaseMetaData)getDMD()). getFunctions(catalogName, schemaName, funcName); }
static void function(String catalogName, String schemaName, String funcName, String options, ResultSet[] rs) throws SQLException { rs[0] = ((EmbedDatabaseMetaData)getDMD()). getFunctions(catalogName, schemaName, funcName); }
/** * Map SQLFunctions to EmbedDatabaseMetaData.getFunctions * * @param catalogName SYSIBM.SQLFunctions CatalogName varchar(128), * @param schemaName SYSIBM.SQLFunctions SchemaName varchar(128), * @param funcName SYSIBM.SQLFunctions ProcName varchar(128), * @param options SYSIBM.SQLFunction...
Map SQLFunctions to EmbedDatabaseMetaData.getFunctions
SQLFUNCTIONS
{ "repo_name": "apache/derby", "path": "java/org.apache.derby.engine/org/apache/derby/catalog/SystemProcedures.java", "license": "apache-2.0", "size": 101496 }
[ "java.sql.ResultSet", "java.sql.SQLException", "org.apache.derby.impl.jdbc.EmbedDatabaseMetaData" ]
import java.sql.ResultSet; import java.sql.SQLException; import org.apache.derby.impl.jdbc.EmbedDatabaseMetaData;
import java.sql.*; import org.apache.derby.impl.jdbc.*;
[ "java.sql", "org.apache.derby" ]
java.sql; org.apache.derby;
1,521,624
public HashMap<String, String> getTags() { return this.tags; }
HashMap<String, String> function() { return this.tags; }
/** * Optional. Gets or sets the tags attached to the resource group. * @return The Tags value. */
Optional. Gets or sets the tags attached to the resource group
getTags
{ "repo_name": "southworkscom/azure-sdk-for-java", "path": "resource-management/azure-mgmt-resources/src/main/java/com/microsoft/azure/management/resources/models/ResourceGroup.java", "license": "apache-2.0", "size": 4070 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,357,143
public static Action createConfigUploadAction(User user, Set filenames, Server server, ConfigChannel channel, Date earliest) { //TODO: right now, our general rule is that upload actions will //always upload into the sandbox for a system. If we ever wish to //make that a strict bu...
static Action function(User user, Set filenames, Server server, ConfigChannel channel, Date earliest) { ConfigUploadAction a = (ConfigUploadAction)ActionFactory.createAction( ActionFactory.TYPE_CONFIGFILES_UPLOAD, earliest); a.setOrg(user.getOrg()); a.setSchedulerUser(user); a.setName(a.getActionType().getName()); a.ad...
/** * Create a Config Upload action. This is a much different action from the * other config actions (doesn't involve revisions). * @param user The scheduler for this config action. * @param filenames A set of config file name ids as Longs * @param server The server for which to schedule this a...
Create a Config Upload action. This is a much different action from the other config actions (doesn't involve revisions)
createConfigUploadAction
{ "repo_name": "colloquium/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/action/ActionManager.java", "license": "gpl-2.0", "size": 73734 }
[ "com.redhat.rhn.domain.action.Action", "com.redhat.rhn.domain.action.ActionFactory", "com.redhat.rhn.domain.action.config.ConfigUploadAction", "com.redhat.rhn.domain.config.ConfigChannel", "com.redhat.rhn.domain.config.ConfigFileName", "com.redhat.rhn.domain.config.ConfigurationFactory", "com.redhat.rhn...
import com.redhat.rhn.domain.action.Action; import com.redhat.rhn.domain.action.ActionFactory; import com.redhat.rhn.domain.action.config.ConfigUploadAction; import com.redhat.rhn.domain.config.ConfigChannel; import com.redhat.rhn.domain.config.ConfigFileName; import com.redhat.rhn.domain.config.ConfigurationFactory; i...
import com.redhat.rhn.domain.action.*; import com.redhat.rhn.domain.action.config.*; import com.redhat.rhn.domain.config.*; import com.redhat.rhn.domain.server.*; import com.redhat.rhn.domain.user.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
2,616,874
public void setDescriptionTextSize(float size) { if (size > 16f) size = 16f; if (size < 6f) size = 6f; mDescPaint.setTextSize(Utils.convertDpToPixel(size)); }
void function(float size) { if (size > 16f) size = 16f; if (size < 6f) size = 6f; mDescPaint.setTextSize(Utils.convertDpToPixel(size)); }
/** * sets the size of the description text in pixels, min 6f, max 16f * * @param size */
sets the size of the description text in pixels, min 6f, max 16f
setDescriptionTextSize
{ "repo_name": "jokeog/ProjectCalendae", "path": "library/src/main/java/com/mikephil/charting/charts/Chart.java", "license": "apache-2.0", "size": 51546 }
[ "com.mikephil.charting.utils.Utils" ]
import com.mikephil.charting.utils.Utils;
import com.mikephil.charting.utils.*;
[ "com.mikephil.charting" ]
com.mikephil.charting;
56,102
public Dimension minimumLayoutSize(Container parent) { Insets insets = parent.getInsets(); int height = yInset + insets.top; int width = 0 + insets.left + insets.right; Component[] children = parent.getComponents(); Dimension compSize = null; for (int i = 0; i < chil...
Dimension function(Container parent) { Insets insets = parent.getInsets(); int height = yInset + insets.top; int width = 0 + insets.left + insets.right; Component[] children = parent.getComponents(); Dimension compSize = null; for (int i = 0; i < children.length; i++) { compSize = children[i].getPreferredSize(); height...
/** * Calculates the minimum size dimensions for the specified * panel given the components in the specified parent container. * @param parent the component to be laid out * @see #preferredLayoutSize */
Calculates the minimum size dimensions for the specified panel given the components in the specified parent container
minimumLayoutSize
{ "repo_name": "randysecrist/GEdit", "path": "src/main/java/com/reformation/graph/gui/ColumnLayout.java", "license": "gpl-3.0", "size": 2581 }
[ "java.awt.Component", "java.awt.Container", "java.awt.Dimension", "java.awt.Insets" ]
import java.awt.Component; import java.awt.Container; import java.awt.Dimension; import java.awt.Insets;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,840,592
public void set() { if(time < 0) { time = currentTimeMillis(); } }
void function() { if(time < 0) { time = currentTimeMillis(); } }
/** * This is used to set the time for a specific event. Invoking * this method multiple times will have no effect as the time * is set for the first invocation only. Setting the time in * this manner enables start times to be recorded effectively. */
This is used to set the time for a specific event. Invoking this method multiple times will have no effect as the time is set for the first invocation only. Setting the time in this manner enables start times to be recorded effectively
set
{ "repo_name": "ael-code/preston", "path": "src/org/simpleframework/http/core/Timer.java", "license": "gpl-2.0", "size": 2893 }
[ "java.lang.System" ]
import java.lang.System;
import java.lang.*;
[ "java.lang" ]
java.lang;
2,728,408
public Set<String> getStringKeySet() { return bibtexStrings.keySet(); }
Set<String> function() { return bibtexStrings.keySet(); }
/** * Returns a Set of keys to all BibtexString objects in the database. * These are in no sorted order. */
Returns a Set of keys to all BibtexString objects in the database. These are in no sorted order
getStringKeySet
{ "repo_name": "grimes2/jabref", "path": "src/main/java/net/sf/jabref/model/database/BibDatabase.java", "license": "mit", "size": 19429 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
448,775
public final List<Method> getDeclaredMethodsIncludingSuperClasses(@NotNull final Class<?> clasz, @NotNull final Class<?>... stopParents) { Contract.requireArgNotNull("clasz", clasz); Contract.requireArgNotNull("stopParents", stopParents); final List<Class<?>> stopList = new Arra...
final List<Method> function(@NotNull final Class<?> clasz, @NotNull final Class<?>... stopParents) { Contract.requireArgNotNull("clasz", clasz); Contract.requireArgNotNull(STR, stopParents); final List<Class<?>> stopList = new ArrayList<>(Arrays.asList(stopParents)); if (!stopList.contains(Object.class)) { stopList.add...
/** * Returns a list of declared methods from classes and super classes. The given stop classes will not be inspected. * * @param clasz * Class to inspect. * @param stopParents * Parent classes to stop inspection or {@literal null} to stop at {@link Object}. * ...
Returns a list of declared methods from classes and super classes. The given stop classes will not be inspected
getDeclaredMethodsIncludingSuperClasses
{ "repo_name": "fuinorg/ddd-4-java", "path": "src/main/java/org/fuin/ddd4j/ddd/MethodExecutor.java", "license": "lgpl-3.0", "size": 8338 }
[ "jakarta.validation.constraints.NotNull", "java.lang.reflect.Method", "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.fuin.objects4j.common.Contract" ]
import jakarta.validation.constraints.NotNull; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.fuin.objects4j.common.Contract;
import jakarta.validation.constraints.*; import java.lang.reflect.*; import java.util.*; import org.fuin.objects4j.common.*;
[ "jakarta.validation.constraints", "java.lang", "java.util", "org.fuin.objects4j" ]
jakarta.validation.constraints; java.lang; java.util; org.fuin.objects4j;
1,277,930
public void addAppliedRouteConfigurationId(String routeConfigurationId) { if (appliedRouteConfigurationIds == null) { appliedRouteConfigurationIds = new LinkedHashSet<>(); } appliedRouteConfigurationIds.add(routeConfigurationId); }
void function(String routeConfigurationId) { if (appliedRouteConfigurationIds == null) { appliedRouteConfigurationIds = new LinkedHashSet<>(); } appliedRouteConfigurationIds.add(routeConfigurationId); }
/** * This is used internally by Camel to keep track which route configurations is applied when creating a route from * this model. * * This method is not intended for Camel end users. */
This is used internally by Camel to keep track which route configurations is applied when creating a route from this model. This method is not intended for Camel end users
addAppliedRouteConfigurationId
{ "repo_name": "pax95/camel", "path": "core/camel-core-model/src/main/java/org/apache/camel/model/RouteDefinition.java", "license": "apache-2.0", "size": 34164 }
[ "java.util.LinkedHashSet" ]
import java.util.LinkedHashSet;
import java.util.*;
[ "java.util" ]
java.util;
1,874,294
public Map<String, ViJsonAny> getData() { return data; }
Map<String, ViJsonAny> function() { return data; }
/** * Wrapped data for Map fields with different Typed values * * @return data * * @see ViJsonAny */
Wrapped data for Map fields with different Typed values
getData
{ "repo_name": "visenze/visearch-sdk-java", "path": "src/main/java/com/visenze/productsearch/response/Product.java", "license": "mit", "size": 3603 }
[ "com.visenze.common.util.ViJsonAny", "java.util.Map" ]
import com.visenze.common.util.ViJsonAny; import java.util.Map;
import com.visenze.common.util.*; import java.util.*;
[ "com.visenze.common", "java.util" ]
com.visenze.common; java.util;
1,841,525
public static void setQueryExecutionOptions( final Map<Integer, SubQueryPlan> plans, final FTMode ftMode, @Nonnull final Set<ProfilingMode> profilingMode) { for (SubQueryPlan plan : plans.values()) { plan.setFTMode(ftMode); plan.setProfilingMode(profilingMode); } }
static void function( final Map<Integer, SubQueryPlan> plans, final FTMode ftMode, @Nonnull final Set<ProfilingMode> profilingMode) { for (SubQueryPlan plan : plans.values()) { plan.setFTMode(ftMode); plan.setProfilingMode(profilingMode); } }
/** * Set the query execution options for the specified plans. * * @param plans the physical query plan * @param ftMode the fault tolerance mode under which the query will be executed * @param profilingMode how the query should be profiled */
Set the query execution options for the specified plans
setQueryExecutionOptions
{ "repo_name": "uwescience/myria", "path": "src/edu/washington/escience/myria/api/encoding/QueryConstruct.java", "license": "bsd-3-clause", "size": 32597 }
[ "edu.washington.escience.myria.MyriaConstants", "edu.washington.escience.myria.parallel.SubQueryPlan", "java.util.Map", "java.util.Set", "javax.annotation.Nonnull" ]
import edu.washington.escience.myria.MyriaConstants; import edu.washington.escience.myria.parallel.SubQueryPlan; import java.util.Map; import java.util.Set; import javax.annotation.Nonnull;
import edu.washington.escience.myria.*; import edu.washington.escience.myria.parallel.*; import java.util.*; import javax.annotation.*;
[ "edu.washington.escience", "java.util", "javax.annotation" ]
edu.washington.escience; java.util; javax.annotation;
1,890,838
public static HttpContent buildMultipartFormDataContent( Collection<KeyValuePair<String, Object>> nameValueCollection) throws IOException { String boundary = UUID.randomUUID().toString(); return buildMultipartFormDataContent(nameValueCollection, boundary); }
static HttpContent function( Collection<KeyValuePair<String, Object>> nameValueCollection) throws IOException { String boundary = UUID.randomUUID().toString(); return buildMultipartFormDataContent(nameValueCollection, boundary); }
/** * Builds a new HttpContent for name/value tuples encoded using {@code multipart/form-data} MIME * type. * * @param nameValueCollection the collection of name/value tuples to encode * @return the encoded HttpContent instance * @throws IllegalArgumentException if nameValueCollection is null */
Builds a new HttpContent for name/value tuples encoded using multipart/form-data MIME type
buildMultipartFormDataContent
{ "repo_name": "stripe/stripe-java", "path": "src/main/java/com/stripe/net/HttpContent.java", "license": "mit", "size": 3968 }
[ "java.io.IOException", "java.util.Collection", "java.util.UUID" ]
import java.io.IOException; import java.util.Collection; import java.util.UUID;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,177,634
public boolean isJoined(InetAddress groupAddress) { return sockets.containsKey(groupAddress); }
boolean function(InetAddress groupAddress) { return sockets.containsKey(groupAddress); }
/** * Check joining the multicast group or not. * * @param groupAddress * @return True if joined */
Check joining the multicast group or not
isJoined
{ "repo_name": "yokamaru/IPv6MulticastChat", "path": "src/jp/naist/inet_lab/android/ipv6multicast/MulticastManager.java", "license": "mit", "size": 14269 }
[ "java.net.InetAddress" ]
import java.net.InetAddress;
import java.net.*;
[ "java.net" ]
java.net;
2,087,908
public AttributeSet parseVAttributeSet(InputStream xmlStream) throws XMLDataParseException { try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); Document do...
AttributeSet function(InputStream xmlStream) throws XMLDataParseException { try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); Document domDoc = docBuilder.parse(xmlStream); domDoc.getDocumentElement().normalize(); ...
/** * VAtttributeSet factory method. Reads the whole xml text from the InputStream. Assumes one XML document containing * one VAttribute Set. */
VAtttributeSet factory method. Reads the whole xml text from the InputStream. Assumes one XML document containing one VAttribute Set
parseVAttributeSet
{ "repo_name": "NLeSC/vbrowser", "path": "source/nl.esciencecenter.vlet.vrs.core/src/nl/esciencecenter/vlet/vrs/data/xml/XMLData.java", "license": "apache-2.0", "size": 28682 }
[ "java.io.InputStream", "java.util.Vector", "javax.xml.parsers.DocumentBuilder", "javax.xml.parsers.DocumentBuilderFactory", "nl.esciencecenter.vbrowser.vrs.data.AttributeSet", "nl.esciencecenter.vlet.exception.XMLDataParseException", "org.w3c.dom.Document", "org.w3c.dom.Element" ]
import java.io.InputStream; import java.util.Vector; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import nl.esciencecenter.vbrowser.vrs.data.AttributeSet; import nl.esciencecenter.vlet.exception.XMLDataParseException; import org.w3c.dom.Document; import org.w3c.dom.Element;
import java.io.*; import java.util.*; import javax.xml.parsers.*; import nl.esciencecenter.vbrowser.vrs.data.*; import nl.esciencecenter.vlet.exception.*; import org.w3c.dom.*;
[ "java.io", "java.util", "javax.xml", "nl.esciencecenter.vbrowser", "nl.esciencecenter.vlet", "org.w3c.dom" ]
java.io; java.util; javax.xml; nl.esciencecenter.vbrowser; nl.esciencecenter.vlet; org.w3c.dom;
304,760
public List<Observable<NewsHeadlines>> getProviderObservable() { return mProviderObservableList; }
List<Observable<NewsHeadlines>> function() { return mProviderObservableList; }
/** * Get list of overservables for each {@link NewsProvider} available via {@link NewsProvider#getNewsObservable()}. * * @return List of observable for news provider. */
Get list of overservables for each <code>NewsProvider</code> available via <code>NewsProvider#getNewsObservable()</code>
getProviderObservable
{ "repo_name": "amardeshbd/android-daily-headlines", "path": "core-lib/src/main/java/info/hossainkhan/android/core/newsprovider/NewsProviderManager.java", "license": "mit", "size": 4365 }
[ "info.hossainkhan.android.core.model.NewsHeadlines", "java.util.List" ]
import info.hossainkhan.android.core.model.NewsHeadlines; import java.util.List;
import info.hossainkhan.android.core.model.*; import java.util.*;
[ "info.hossainkhan.android", "java.util" ]
info.hossainkhan.android; java.util;
1,647,299
public void clearSelection() { Iterator<Integer> iterator = selectedItems.iterator(); while (iterator.hasNext()) { //The notification is done only on items that are currently selected. int i = iterator.next(); iterator.remove(); Log.v(TAG, "clearSelection notifyItemChanged on position " + i); noti...
void function() { Iterator<Integer> iterator = selectedItems.iterator(); while (iterator.hasNext()) { int i = iterator.next(); iterator.remove(); Log.v(TAG, STR + i); notifyItemChanged(i); } }
/** * Clear the selection status for all items one by one and it doesn't stop animations in the items. * <p/> * <b>Note 1:</b> Items are invalidated and rebound!<br/> * <b>Note 2:</b> This method use java.util.Iterator to avoid java.util.ConcurrentModificationException. */
Clear the selection status for all items one by one and it doesn't stop animations in the items. Note 1: Items are invalidated and rebound! Note 2: This method use java.util.Iterator to avoid java.util.ConcurrentModificationException
clearSelection
{ "repo_name": "mobvoi/ticdesign", "path": "ticDesign/src/main/java/ticwear/design/widget/SelectableAdapter.java", "license": "apache-2.0", "size": 7278 }
[ "android.util.Log", "java.util.Iterator" ]
import android.util.Log; import java.util.Iterator;
import android.util.*; import java.util.*;
[ "android.util", "java.util" ]
android.util; java.util;
2,372,020
public Object get(int index) { try { return getValue(index); } catch (JMFUninitializedAccessException ex) { // No FFDC code needed // This is an expected exception which just means the field is unset, so we return null. } catch (JMFException ex) { FFDCFilter.processException(ex, "c...
Object function(int index) { try { return getValue(index); } catch (JMFUninitializedAccessException ex) { } catch (JMFException ex) { FFDCFilter.processException(ex, STR, "215", this); } return null; }
/** * Implement the List.get() method. This is semantically identical to * JMFMessageData.getValue(). */
Implement the List.get() method. This is semantically identical to JMFMessageData.getValue()
get
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.messaging.common/src/com/ibm/ws/sib/mfp/jmf/impl/JSListImpl.java", "license": "epl-1.0", "size": 16036 }
[ "com.ibm.ws.ffdc.FFDCFilter", "com.ibm.ws.sib.mfp.jmf.JMFException", "com.ibm.ws.sib.mfp.jmf.JMFUninitializedAccessException" ]
import com.ibm.ws.ffdc.FFDCFilter; import com.ibm.ws.sib.mfp.jmf.JMFException; import com.ibm.ws.sib.mfp.jmf.JMFUninitializedAccessException;
import com.ibm.ws.ffdc.*; import com.ibm.ws.sib.mfp.jmf.*;
[ "com.ibm.ws" ]
com.ibm.ws;
816,080
EList<FailureType> getFailure();
EList<FailureType> getFailure();
/** * Returns the value of the '<em><b>Failure</b></em>' containment reference list. * The list contents are of type {@link org.ebxml.business.process.FailureType}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Failure</em>' containment reference list isn't clear, * there really should be mor...
Returns the value of the 'Failure' containment reference list. The list contents are of type <code>org.ebxml.business.process.FailureType</code>. If the meaning of the 'Failure' containment reference list isn't clear, there really should be more of a description here...
getFailure
{ "repo_name": "GRA-UML/tool", "path": "plugins/org.ijis.gra.ebxml.ebBPSS/src/main/java/org/ebxml/business/process/BinaryCollaborationType.java", "license": "epl-1.0", "size": 21856 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,577,130
public Reference getAsReference() { if (asReference != null) { return asReference; } asReference = new Reference(null); asReference.addSubReference(new FieldSubReference(identifier)); asReference.setLocation(getLocation()); asReference.setFullNameParent(this); asReference.setMyScope(myScope); retu...
Reference function() { if (asReference != null) { return asReference; } asReference = new Reference(null); asReference.addSubReference(new FieldSubReference(identifier)); asReference.setLocation(getLocation()); asReference.setFullNameParent(this); asReference.setMyScope(myScope); return asReference; }
/** * Returns the reference form of the lower identifier value. * <p> * Almost the same as steel_ttcn_ref_base. * * @return the reference created from the identifier. * */
Returns the reference form of the lower identifier value. Almost the same as steel_ttcn_ref_base
getAsReference
{ "repo_name": "eroslevi/titan.EclipsePlug-ins", "path": "org.eclipse.titan.designer/src/org/eclipse/titan/designer/AST/TTCN3/values/Undefined_LowerIdentifier_Value.java", "license": "epl-1.0", "size": 8645 }
[ "org.eclipse.titan.designer.AST" ]
import org.eclipse.titan.designer.AST;
import org.eclipse.titan.designer.*;
[ "org.eclipse.titan" ]
org.eclipse.titan;
163,503
public static Constructor<?> getConstructor(Class<?> type, Class<?>... parameterTypes) { Class<?> unmockedType = WhiteboxImpl.getUnmockedType(type); try { final Constructor<?> constructor = unmockedType.getDeclaredConstructor(parameterTypes); constructor.setAccessible(true); ...
static Constructor<?> function(Class<?> type, Class<?>... parameterTypes) { Class<?> unmockedType = WhiteboxImpl.getUnmockedType(type); try { final Constructor<?> constructor = unmockedType.getDeclaredConstructor(parameterTypes); constructor.setAccessible(true); return constructor; } catch (RuntimeException e) { throw ...
/** * Convenience method to get a (declared) constructor from a class type * without having to catch the checked exceptions otherwise required. These * exceptions are wrapped as runtime exceptions. The constructor is also set * to accessible. * * @param type The type of the class...
Convenience method to get a (declared) constructor from a class type without having to catch the checked exceptions otherwise required. These exceptions are wrapped as runtime exceptions. The constructor is also set to accessible
getConstructor
{ "repo_name": "thekingnothing/powermock", "path": "reflect/src/main/java/org/powermock/reflect/internal/WhiteboxImpl.java", "license": "apache-2.0", "size": 113110 }
[ "java.lang.reflect.Constructor", "org.powermock.reflect.exceptions.ConstructorNotFoundException" ]
import java.lang.reflect.Constructor; import org.powermock.reflect.exceptions.ConstructorNotFoundException;
import java.lang.reflect.*; import org.powermock.reflect.exceptions.*;
[ "java.lang", "org.powermock.reflect" ]
java.lang; org.powermock.reflect;
2,502,399
void apply(Set<S> states, long timeout, TimeUnit unit);
void apply(Set<S> states, long timeout, TimeUnit unit);
/** * Applies the back-pressure algorithm, based and acting on the given {@link BackPressureState}s, and up to the given * timeout. */
Applies the back-pressure algorithm, based and acting on the given <code>BackPressureState</code>s, and up to the given timeout
apply
{ "repo_name": "sharvanath/cassandra", "path": "src/java/org/apache/cassandra/net/BackPressureStrategy.java", "license": "apache-2.0", "size": 1630 }
[ "java.util.Set", "java.util.concurrent.TimeUnit" ]
import java.util.Set; import java.util.concurrent.TimeUnit;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,672,394
public boolean findSaveButton() { try { (new WebDriverWait(BrowserManager.getDriver(), 15)) .until(ExpectedConditions.visibilityOf(saveButton)); LogManager.info("Save Button has been found"); return true; } catch (Exception e) { LogManager.info("Save Button has not been found"); return false...
boolean function() { try { (new WebDriverWait(BrowserManager.getDriver(), 15)) .until(ExpectedConditions.visibilityOf(saveButton)); LogManager.info(STR); return true; } catch (Exception e) { LogManager.info(STR); return false; } }
/** * Find Save Button method * This method try to find Save Button * * @return a boolean that indicates if Save Button is present */
Find Save Button method This method try to find Save Button
findSaveButton
{ "repo_name": "hcoca/RMAutomationUIFramework", "path": "Projects/RMAutomationUIFramework/src/main/java/org/fundacionjala/automation/framework/pages/admin/impersonation/ImpersonationPage.java", "license": "cc0-1.0", "size": 6072 }
[ "org.fundacionjala.automation.framework.utils.common.BrowserManager", "org.fundacionjala.automation.framework.utils.common.LogManager", "org.openqa.selenium.support.ui.ExpectedConditions", "org.openqa.selenium.support.ui.WebDriverWait" ]
import org.fundacionjala.automation.framework.utils.common.BrowserManager; import org.fundacionjala.automation.framework.utils.common.LogManager; import org.openqa.selenium.support.ui.ExpectedConditions; import org.openqa.selenium.support.ui.WebDriverWait;
import org.fundacionjala.automation.framework.utils.common.*; import org.openqa.selenium.support.ui.*;
[ "org.fundacionjala.automation", "org.openqa.selenium" ]
org.fundacionjala.automation; org.openqa.selenium;
1,714,357
private static QueueFile createQueueFile(File folder, String name) throws IOException { createDirectory(folder); File file = new File(folder, name); try { return new QueueFile(file); } catch (IOException e) { //noinspection ResultOfMethodCallIgnored if (file.delete()) { retur...
static QueueFile function(File folder, String name) throws IOException { createDirectory(folder); File file = new File(folder, name); try { return new QueueFile(file); } catch (IOException e) { if (file.delete()) { return new QueueFile(file); } else { throw new IOException(STR + name + STR + folder + "."); } } }
/** * Create a {@link QueueFile} in the given folder with the given name. If the underlying file is * somehow corrupted, we'll delete it, and try to recreate the file. This method will throw an * {@link IOException} if the directory doesn't exist and could not be created. */
Create a <code>QueueFile</code> in the given folder with the given name. If the underlying file is somehow corrupted, we'll delete it, and try to recreate the file. This method will throw an <code>IOException</code> if the directory doesn't exist and could not be created
createQueueFile
{ "repo_name": "rayleeriver/analytics-android", "path": "analytics-core/src/main/java/com/segment/analytics/SegmentDispatcher.java", "license": "mit", "size": 16329 }
[ "com.segment.analytics.internal.Utils", "java.io.File", "java.io.IOException" ]
import com.segment.analytics.internal.Utils; import java.io.File; import java.io.IOException;
import com.segment.analytics.internal.*; import java.io.*;
[ "com.segment.analytics", "java.io" ]
com.segment.analytics; java.io;
2,118,918
private native <T> int dispatch(int cnt, int id, PcapPacketHandler<T> handler, T user, JPacket packet, JPacket.State state, PcapHeader header, JScanner scanner);
native <T> int function(int cnt, int id, PcapPacketHandler<T> handler, T user, JPacket packet, JPacket.State state, PcapHeader header, JScanner scanner);
/** * Private native implementation. * * @param <T> * the generic type * @param cnt * the cnt * @param id * the id * @param handler * the handler * @param user * the user * @param packet * the packet * @param state * the sta...
Private native implementation
dispatch
{ "repo_name": "universsky/diddler", "path": "src/org/jnetpcap/Pcap.java", "license": "lgpl-3.0", "size": 123716 }
[ "org.jnetpcap.packet.JPacket", "org.jnetpcap.packet.JScanner", "org.jnetpcap.packet.PcapPacketHandler" ]
import org.jnetpcap.packet.JPacket; import org.jnetpcap.packet.JScanner; import org.jnetpcap.packet.PcapPacketHandler;
import org.jnetpcap.packet.*;
[ "org.jnetpcap.packet" ]
org.jnetpcap.packet;
455,614
public static <I> I generate(final Class<I> klazz, final ExecutorService es, final MailMerge mm, final String senderEmail, final Map<String, String> constantVars) { return generate(klazz, es, mm, senderEmail, constantVars, defaultTemplates(klazz)); }
static <I> I function(final Class<I> klazz, final ExecutorService es, final MailMerge mm, final String senderEmail, final Map<String, String> constantVars) { return generate(klazz, es, mm, senderEmail, constantVars, defaultTemplates(klazz)); }
/** Generate an instance of the mailing interface that merges templates via the mail merge implementation with the method parameters and queue's the email. @param <I> The type of the mailer interface. @param klazz The mailer interface to generate an implementation against. @param es An executor service to su...
Generate an instance of the mailing interface that merges templates via the mail merge implementation with the
generate
{ "repo_name": "emily-e/webframework", "path": "src/main/java/net/metanotion/email/MailerProxy.java", "license": "apache-2.0", "size": 11431 }
[ "java.util.Map", "java.util.concurrent.ExecutorService" ]
import java.util.Map; import java.util.concurrent.ExecutorService;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
507,128
public int getPrecision(int column) throws SQLException { Field f = getField(column); // if (f.getMysqlType() == MysqlDefs.FIELD_TYPE_NEW_DECIMAL) { // return f.getLength(); // } if (isDecimalType(f.getSQLType())) { if (f.getDecimals() > 0) { return clampedGetLength(f) - 1 + f.getPrecisionAdjustFa...
int function(int column) throws SQLException { Field f = getField(column); if (isDecimalType(f.getSQLType())) { if (f.getDecimals() > 0) { return clampedGetLength(f) - 1 + f.getPrecisionAdjustFactor(); } return clampedGetLength(f) + f.getPrecisionAdjustFactor(); } switch (f.getMysqlType()) { case MysqlDefs.FIELD_TYPE_T...
/** * What is a column's number of decimal digits. * * @param column * the first column is 1, the second is 2... * * @return the precision * * @throws SQLException * if a database access error occurs */
What is a column's number of decimal digits
getPrecision
{ "repo_name": "namdp06/mysql-connector-java-1", "path": "src/com/mysql/jdbc/ResultSetMetaData.java", "license": "gpl-2.0", "size": 22986 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,948,998
public List<String> getDbrefs() { return dbrefs; } }
List<String> function() { return dbrefs; } }
/** * Return the db refs read from the Reader. * @return the List of db refs */
Return the db refs read from the Reader
getDbrefs
{ "repo_name": "drhee/toxoMine", "path": "bio/sources/pdb/main/src/org/intermine/bio/dataconversion/PdbConverter.java", "license": "lgpl-2.1", "size": 7897 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
44,336
public synchronized Enumeration enumerateInstances(CIMObjectPath pClassPath, boolean pDeepInheritance, boolean pLocalOnly) throws CIMException { return enumerateInstances(pClassPath, pDeepInheritance, pLocalOnly, false, false, null); }
synchronized Enumeration function(CIMObjectPath pClassPath, boolean pDeepInheritance, boolean pLocalOnly) throws CIMException { return enumerateInstances(pClassPath, pDeepInheritance, pLocalOnly, false, false, null); }
/** * Enumerates the CIM instances on the target CIM server that are of the * specified class or its subclasses and returns copies of these instances. * * <p> * This method produces the same results as * <code>enumerateInstances(pClassPath, pDeepInheritance, localOnly, false, false, null)</code> *...
Enumerates the CIM instances on the target CIM server that are of the specified class or its subclasses and returns copies of these instances. This method produces the same results as <code>enumerateInstances(pClassPath, pDeepInheritance, localOnly, false, false, null)</code>
enumerateInstances
{ "repo_name": "acleasby/sblim-cim-client", "path": "cim-client-java/src/main/java/org/sblim/wbem/client/CIMClient.java", "license": "epl-1.0", "size": 203192 }
[ "java.util.Enumeration", "org.sblim.wbem.cim.CIMException", "org.sblim.wbem.cim.CIMObjectPath" ]
import java.util.Enumeration; import org.sblim.wbem.cim.CIMException; import org.sblim.wbem.cim.CIMObjectPath;
import java.util.*; import org.sblim.wbem.cim.*;
[ "java.util", "org.sblim.wbem" ]
java.util; org.sblim.wbem;
268,011
public String reverseLookup(T namedEnum) { String name = namedEnum.getName(); for (Entry<String, String> entry : externalNames.entrySet()) { if (entry.getValue().equals(name)) { return entry.getKey(); } } throw new IllegalArgumentException(Messages.format( ...
String function(T namedEnum) { String name = namedEnum.getName(); for (Entry<String, String> entry : externalNames.entrySet()) { if (entry.getValue().equals(name)) { return entry.getKey(); } } throw new IllegalArgumentException(Messages.format( STR, extendedEnum.type.getSimpleName(), group, name)); }
/** * Looks up the external name given a standard enum instance. * <p> * This searches the map of external names and returns the first matching entry * that maps to the given standard name. * * @param namedEnum the named enum to find an external name for * @return the external name ...
Looks up the external name given a standard enum instance. This searches the map of external names and returns the first matching entry that maps to the given standard name
reverseLookup
{ "repo_name": "jmptrader/Strata", "path": "modules/collect/src/main/java/com/opengamma/strata/collect/named/ExtendedEnum.java", "license": "apache-2.0", "size": 20732 }
[ "com.opengamma.strata.collect.Messages", "java.util.Map" ]
import com.opengamma.strata.collect.Messages; import java.util.Map;
import com.opengamma.strata.collect.*; import java.util.*;
[ "com.opengamma.strata", "java.util" ]
com.opengamma.strata; java.util;
1,820,419