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
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jScrollPane1 = new BeanTreeView(); jToolBar1 = new javax.swing.JToolBar(); jPanel1 = new javax.swing.JPanel(); jToolBar1.setFloatable(false); jToolB...
void function() { jScrollPane1 = new BeanTreeView(); jToolBar1 = new javax.swing.JToolBar(); jPanel1 = new javax.swing.JPanel(); jToolBar1.setFloatable(false); jToolBar1.setRollover(true); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHo...
/** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. always regenerated by the Form Editor
initComponents
{ "repo_name": "chototsu/MikuMikuStudio", "path": "sdk/jme3-core/src/com/jme3/gde/core/filters/FilterExplorerTopComponent.java", "license": "bsd-2-clause", "size": 10622 }
[ "org.openide.explorer.view.BeanTreeView" ]
import org.openide.explorer.view.BeanTreeView;
import org.openide.explorer.view.*;
[ "org.openide.explorer" ]
org.openide.explorer;
1,061,772
protected void saveNewItemInProcess(CashManagementDocument cmDoc, CashieringTransaction trans) { if (trans.getNewItemInProcess().isPopulated()) { trans.getNewItemInProcess().setItemRemainingAmount(trans.getNewItemInProcess().getItemAmount()); trans.getNewItemInProcess().setItemReduce...
void function(CashManagementDocument cmDoc, CashieringTransaction trans) { if (trans.getNewItemInProcess().isPopulated()) { trans.getNewItemInProcess().setItemRemainingAmount(trans.getNewItemInProcess().getItemAmount()); trans.getNewItemInProcess().setItemReducedAmount(KualiDecimal.ZERO); trans.getNewItemInProcess().se...
/** * This methods checks if data was actually entered for the new item in process; if so, it saves that item in process. * * @param cmDoc The cash management doc that the new item in process will be associated with. * @param trans The cashiering transaction that created the new item in process. ...
This methods checks if data was actually entered for the new item in process; if so, it saves that item in process
saveNewItemInProcess
{ "repo_name": "bhutchinson/kfs", "path": "kfs-core/src/main/java/org/kuali/kfs/fp/document/service/impl/CashManagementServiceImpl.java", "license": "agpl-3.0", "size": 69167 }
[ "org.kuali.kfs.fp.businessobject.CashDrawer", "org.kuali.kfs.fp.businessobject.CashieringTransaction", "org.kuali.kfs.fp.document.CashManagementDocument", "org.kuali.rice.core.api.util.type.KualiDecimal" ]
import org.kuali.kfs.fp.businessobject.CashDrawer; import org.kuali.kfs.fp.businessobject.CashieringTransaction; import org.kuali.kfs.fp.document.CashManagementDocument; import org.kuali.rice.core.api.util.type.KualiDecimal;
import org.kuali.kfs.fp.businessobject.*; import org.kuali.kfs.fp.document.*; import org.kuali.rice.core.api.util.type.*;
[ "org.kuali.kfs", "org.kuali.rice" ]
org.kuali.kfs; org.kuali.rice;
2,107,470
private void initAdapter(){ IDashboardAdapter adapterInSession = Session.getAdapterUnsent(); if(adapterInSession == null){ adapterInSession = new AssessmentUnsentAdapter(this.surveys,getActivity()); }else{ adapterInSession = adapterInSession.newInstance(this.surveys,g...
void function(){ IDashboardAdapter adapterInSession = Session.getAdapterUnsent(); if(adapterInSession == null){ adapterInSession = new AssessmentUnsentAdapter(this.surveys,getActivity()); }else{ adapterInSession = adapterInSession.newInstance(this.surveys,getActivity()); } this.adapter = adapterInSession; Session.setAd...
/** * Inits adapter. * Most of times is just an AssessmentAdapter. * In a version with several adapters in dashboard (like in 'mock' branch) a new one like the one in session is created. */
Inits adapter. Most of times is just an AssessmentAdapter. In a version with several adapters in dashboard (like in 'mock' branch) a new one like the one in session is created
initAdapter
{ "repo_name": "RobbiNespu/malariapp", "path": "app/src/main/java/org/eyeseetea/malariacare/fragments/DashboardUnsentFragment.java", "license": "gpl-3.0", "size": 16276 }
[ "org.eyeseetea.malariacare.database.utils.Session", "org.eyeseetea.malariacare.layout.adapters.dashboard.AssessmentUnsentAdapter", "org.eyeseetea.malariacare.layout.adapters.dashboard.IDashboardAdapter" ]
import org.eyeseetea.malariacare.database.utils.Session; import org.eyeseetea.malariacare.layout.adapters.dashboard.AssessmentUnsentAdapter; import org.eyeseetea.malariacare.layout.adapters.dashboard.IDashboardAdapter;
import org.eyeseetea.malariacare.database.utils.*; import org.eyeseetea.malariacare.layout.adapters.dashboard.*;
[ "org.eyeseetea.malariacare" ]
org.eyeseetea.malariacare;
1,160,144
final AccessToken accessToken = accessTokenFactory.create(service, authentication); ticketRegistry.addTicket(accessToken); return accessToken; }
final AccessToken accessToken = accessTokenFactory.create(service, authentication); ticketRegistry.addTicket(accessToken); return accessToken; }
/** * Generate an access token. * * @param service the service * @param authentication the authentication * @return an access token */
Generate an access token
generateAccessToken
{ "repo_name": "joansmith/cas", "path": "cas-server-support-oauth/src/main/java/org/jasig/cas/support/oauth/web/BaseOAuthWrapperController.java", "license": "apache-2.0", "size": 5984 }
[ "org.jasig.cas.support.oauth.ticket.accesstoken.AccessToken" ]
import org.jasig.cas.support.oauth.ticket.accesstoken.AccessToken;
import org.jasig.cas.support.oauth.ticket.accesstoken.*;
[ "org.jasig.cas" ]
org.jasig.cas;
1,280,471
private void init(ProjectType type, CatalogContext cc) { assertNotNull(cc); project_catalogs.put(type, cc); catalogContext = cc; catalog = catalogContext.catalog; catalog_db = catalogContext.database; p_estimator = new PartitionEstimator(catalogContext); ...
void function(ProjectType type, CatalogContext cc) { assertNotNull(cc); project_catalogs.put(type, cc); catalogContext = cc; catalog = catalogContext.catalog; catalog_db = catalogContext.database; p_estimator = new PartitionEstimator(catalogContext); assertNotNull(p_estimator); project_p_estimators.put(type, p_estimato...
/** * Store the catalog for this ProjectType and generate the supporting classes * @param type * @param catalog */
Store the catalog for this ProjectType and generate the supporting classes
init
{ "repo_name": "s-store/sstore-soft", "path": "tests/frontend/edu/brown/BaseTestCase.java", "license": "gpl-3.0", "size": 27948 }
[ "edu.brown.utils.PartitionEstimator", "edu.brown.utils.ProjectType", "org.voltdb.CatalogContext" ]
import edu.brown.utils.PartitionEstimator; import edu.brown.utils.ProjectType; import org.voltdb.CatalogContext;
import edu.brown.utils.*; import org.voltdb.*;
[ "edu.brown.utils", "org.voltdb" ]
edu.brown.utils; org.voltdb;
1,414,283
public void messageLossAndRecovery(final String serviceURI, final CoordinationContextType coordinationContext) throws SoapFault, IOException { final String messageId = MessageId.getMessageId() ; final MAP map = AddressingHelper.createRequestContext(serviceURI, messageId) ; ...
void function(final String serviceURI, final CoordinationContextType coordinationContext) throws SoapFault, IOException { final String messageId = MessageId.getMessageId() ; final MAP map = AddressingHelper.createRequestContext(serviceURI, messageId) ; final RequestCallback callback = new RequestCallback() ; final BAIn...
/** * Send a messageLossAndRecovery request. * @param serviceURI The target service URI. * @param coordinationContext The coordination context. * @throws SoapFault For any errors. * @throws IOException for any transport errors. */
Send a messageLossAndRecovery request
messageLossAndRecovery
{ "repo_name": "nmcl/scratch", "path": "graalvm/transactions/fork/narayana/XTS/localjunit/WSTX11-interop/src/main/java/com/jboss/transaction/txinterop/webservices/bainterop/AsyncParticipantStub.java", "license": "apache-2.0", "size": 17160 }
[ "com.arjuna.webservices.SoapFault", "com.arjuna.webservices11.wsaddr.AddressingHelper", "com.arjuna.wsc11.messaging.MessageId", "com.jboss.transaction.txinterop.webservices.bainterop.client.AsyncParticipantClient", "com.jboss.transaction.txinterop.webservices.bainterop.processors.BAInitiatorProcessor", "j...
import com.arjuna.webservices.SoapFault; import com.arjuna.webservices11.wsaddr.AddressingHelper; import com.arjuna.wsc11.messaging.MessageId; import com.jboss.transaction.txinterop.webservices.bainterop.client.AsyncParticipantClient; import com.jboss.transaction.txinterop.webservices.bainterop.processors.BAInitiatorPr...
import com.arjuna.webservices.*; import com.arjuna.webservices11.wsaddr.*; import com.arjuna.wsc11.messaging.*; import com.jboss.transaction.txinterop.webservices.bainterop.client.*; import com.jboss.transaction.txinterop.webservices.bainterop.processors.*; import java.io.*; import org.oasis_open.docs.ws_tx.wscoor.*;
[ "com.arjuna.webservices", "com.arjuna.webservices11", "com.arjuna.wsc11", "com.jboss.transaction", "java.io", "org.oasis_open.docs" ]
com.arjuna.webservices; com.arjuna.webservices11; com.arjuna.wsc11; com.jboss.transaction; java.io; org.oasis_open.docs;
887,394
@Override public void exitExprWithRoles(@NotNull QueryGrammarParser.ExprWithRolesContext ctx) { }
@Override public void exitExprWithRoles(@NotNull QueryGrammarParser.ExprWithRolesContext ctx) { }
/** * {@inheritDoc} * <p/> * The default implementation does nothing. */
The default implementation does nothing
enterExprWithRoles
{ "repo_name": "pmeisen/dis-timeintervaldataanalyzer", "path": "src/net/meisen/dissertation/impl/parser/query/generated/QueryGrammarBaseListener.java", "license": "bsd-3-clause", "size": 33327 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,760,872
public static void writerGauss(IOFile f, Gaussian g) throws IOException, DiarizationException { f.writeString(ModelIO.keyGauss); int dim = g.getDim(); int kind = g.getKind(); f.writeInt(g.getName().hashCode()); // Compatibility with old models String name = g.getName(); ...
static void function(IOFile f, Gaussian g) throws IOException, DiarizationException { f.writeString(ModelIO.keyGauss); int dim = g.getDim(); int kind = g.getKind(); f.writeInt(g.getName().hashCode()); String name = g.getName(); int l = name.length(); f.writeInt(l); f.writeString(name); f.writeString(g.getGender()); f.w...
/** * Writer of Gaussian. * * @param f the file * @param g the gaussian * @throws IOException Signals that an I/O exception has occurred. * @throws DiarizationException the diarization exception */
Writer of Gaussian
writerGauss
{ "repo_name": "marcossilva/convMod", "path": "app/src/main/java/fr/lium/spkDiarization/libModel/ModelIO.java", "license": "agpl-3.0", "size": 11934 }
[ "fr.lium.spkDiarization.lib.DiarizationException", "fr.lium.spkDiarization.lib.IOFile", "java.io.IOException" ]
import fr.lium.spkDiarization.lib.DiarizationException; import fr.lium.spkDiarization.lib.IOFile; import java.io.IOException;
import fr.lium.*; import java.io.*;
[ "fr.lium", "java.io" ]
fr.lium; java.io;
964,805
public File getRootDir() { if (!this.isTransient) { return super.getRootDir(); } File standardRoot = this.getParent().getRootDir(); //Otherwise, we alter the last path segment String pathSafeJobName = this.getFullName().replaceAll("[/\\\\]", "_"); File newRoot = new File( standardRoot.getAbsoluteP...
File function() { if (!this.isTransient) { return super.getRootDir(); } File standardRoot = this.getParent().getRootDir(); String pathSafeJobName = this.getFullName().replaceAll(STR, "_"); File newRoot = new File( standardRoot.getAbsolutePath() + File.separator + STR + File.separator + pathSafeJobName ); return newRoot...
/** * This method tells this class and all its superclass's which directory * to use for storing stuff. * * For regular jobs this is the default Jenkins path for jobs ([root]/jobs). * For transient jobs; this is redirected to ([root]/transient_jobs) to * make them more invisible to Jenkins. */
This method tells this class and all its superclass's which directory to use for storing stuff. For regular jobs this is the default Jenkins path for jobs ([root]/jobs). For transient jobs; this is redirected to ([root]/transient_jobs) to make them more invisible to Jenkins
getRootDir
{ "repo_name": "rrialq/jenkins-inheritance-plugin", "path": "src/main/java/hudson/plugins/project_inheritance/projects/InheritanceProject.java", "license": "gpl-3.0", "size": 155118 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
309,129
public static void addConfToJob(final JobConf job, final Properties properties) { for (Object obj : properties.keySet()) { job.set((String) obj, (String) properties.get(obj)); } } /** * Wrapper around {@link MetaStoreUtils#getPartitionMetadata(org.apache.hadoop.hive.metastore.api.Partition, Tabl...
static void function(final JobConf job, final Properties properties) { for (Object obj : properties.keySet()) { job.set((String) obj, (String) properties.get(obj)); } } /** * Wrapper around {@link MetaStoreUtils#getPartitionMetadata(org.apache.hadoop.hive.metastore.api.Partition, Table)}
/** * Utility method which adds give configs to {@link JobConf} object. * * @param job {@link JobConf} instance. * @param properties New config properties */
Utility method which adds give configs to <code>JobConf</code> object
addConfToJob
{ "repo_name": "sohami/drill", "path": "contrib/storage-hive/core/src/main/java/org/apache/drill/exec/store/hive/HiveUtilities.java", "license": "apache-2.0", "size": 31568 }
[ "java.util.Properties", "org.apache.hadoop.hive.metastore.MetaStoreUtils", "org.apache.hadoop.hive.metastore.api.Table", "org.apache.hadoop.mapred.JobConf" ]
import java.util.Properties; import org.apache.hadoop.hive.metastore.MetaStoreUtils; import org.apache.hadoop.hive.metastore.api.Table; import org.apache.hadoop.mapred.JobConf;
import java.util.*; import org.apache.hadoop.hive.metastore.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.mapred.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,077,312
public boolean putIfAbsent(String hostname, Destination d, Properties options) { return false; }
boolean function(String hostname, Destination d, Properties options) { return false; }
/** * Fails if entry previously exists * @param options NamingService-specific, can be null * @return success * @since 0.8.7 */
Fails if entry previously exists
putIfAbsent
{ "repo_name": "NoYouShutup/CryptMeme", "path": "CryptMeme/core/java/src/net/i2p/client/naming/NamingService.java", "license": "mit", "size": 17180 }
[ "java.util.Properties", "net.i2p.data.Destination" ]
import java.util.Properties; import net.i2p.data.Destination;
import java.util.*; import net.i2p.data.*;
[ "java.util", "net.i2p.data" ]
java.util; net.i2p.data;
1,834,235
public void expireSession(ZooKeeperWatcher nodeZK, boolean checkStatus) throws Exception { Configuration c = new Configuration(this.conf); String quorumServers = ZKConfig.getZKQuorumServersString(c); ZooKeeper zk = nodeZK.getRecoverableZooKeeper().getZooKeeper(); byte[] password = zk.getSessionPas...
void function(ZooKeeperWatcher nodeZK, boolean checkStatus) throws Exception { Configuration c = new Configuration(this.conf); String quorumServers = ZKConfig.getZKQuorumServersString(c); ZooKeeper zk = nodeZK.getRecoverableZooKeeper().getZooKeeper(); byte[] password = zk.getSessionPasswd(); long sessionID = zk.getSess...
/** * Expire a ZooKeeper session as recommended in ZooKeeper documentation * http://wiki.apache.org/hadoop/ZooKeeper/FAQ#A4 * There are issues when doing this: * [1] http://www.mail-archive.com/dev@zookeeper.apache.org/msg01942.html * [2] https://issues.apache.org/jira/browse/ZOOKEEPER-1105 * * @pa...
Expire a ZooKeeper session as recommended in ZooKeeper documentation HREF There are issues when doing this: [1] HREF [2] HREF
expireSession
{ "repo_name": "joshelser/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java", "license": "apache-2.0", "size": 143118 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.zookeeper.ZKConfig", "org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher", "org.apache.zookeeper.ZooKeeper" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.zookeeper.ZKConfig; import org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher; import org.apache.zookeeper.ZooKeeper;
import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.zookeeper.*; import org.apache.zookeeper.*;
[ "org.apache.hadoop", "org.apache.zookeeper" ]
org.apache.hadoop; org.apache.zookeeper;
1,915,591
@Override public final void contextualize(Context context) throws CheckstyleException { final Collection<String> attributes = context.getAttributeNames(); for (final String key : attributes) { final Object value = context.get(key); tryCopyProperty(getClass(...
final void function(Context context) throws CheckstyleException { final Collection<String> attributes = context.getAttributeNames(); for (final String key : attributes) { final Object value = context.get(key); tryCopyProperty(getClass().getName(), key, value, false); } }
/** * Implements the Contextualizable interface using bean introspection. * @see Contextualizable */
Implements the Contextualizable interface using bean introspection
contextualize
{ "repo_name": "sirdis/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/api/AutomaticBean.java", "license": "lgpl-2.1", "size": 15396 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,663,461
@SuppressLint("PrivateApi") @WorkerThread public static synchronized boolean isSELinuxEnforcing() { if (isSELinuxEnforcing == null) { Boolean enforcing = null; // First known firmware with SELinux built-in was a 4.2 (17) // leak ...
@SuppressLint(STR) static synchronized boolean function() { if (isSELinuxEnforcing == null) { Boolean enforcing = null; if (android.os.Build.VERSION.SDK_INT >= 17) { if (android.os.Build.VERSION.SDK_INT >= 28) { enforcing = true; } if (enforcing == null) { File f = new File(STR); if (f.exists()) { try { InputStream is ...
/** * Detect if SELinux is set to enforcing, caches result * * @return true if SELinux set to enforcing, or false in the case of permissive or not present */
Detect if SELinux is set to enforcing, caches result
isSELinuxEnforcing
{ "repo_name": "Chainfire/libsuperuser", "path": "libsuperuser/src/eu/chainfire/libsuperuser/Shell.java", "license": "apache-2.0", "size": 145938 }
[ "android.annotation.SuppressLint", "android.os.Build", "java.io.File", "java.io.FileInputStream", "java.io.InputStream", "java.lang.reflect.Method" ]
import android.annotation.SuppressLint; import android.os.Build; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; import java.lang.reflect.Method;
import android.annotation.*; import android.os.*; import java.io.*; import java.lang.reflect.*;
[ "android.annotation", "android.os", "java.io", "java.lang" ]
android.annotation; android.os; java.io; java.lang;
2,264,249
public void updateEndDB(String src, String dst, String unixtime, Date start, Date end, int billsec, String disposition) { System.out.println("---------------------------"); // String startString = ""; String endString = ""; int billmin = 0; Tarifsuche such = new Tari...
void function(String src, String dst, String unixtime, Date start, Date end, int billsec, String disposition) { System.out.println(STR); String startString = STRSTRyyyy-MM-dd HH:mm:ssSTRUPDATE cdr_bill SET dest='STR', preis='STR', start_bill='STR', end_bill='STR', billsec='STR', disposition='STR', total='STR', flag='fa...
/** * Ende des Anrufs * * @param src * @param dst * @param unixtime * @param start * @param end * @param billsec * @param disposition */
Ende des Anrufs
updateEndDB
{ "repo_name": "bitkorn/AstShop", "path": "de/callshop4u/ami/CDRmanager.java", "license": "gpl-2.0", "size": 6669 }
[ "java.sql.SQLException", "java.util.Date" ]
import java.sql.SQLException; import java.util.Date;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
493,797
public long addCourseEvaluation(long courseId, long evaluationId) { long result = -1; try { ContentValues values = new ContentValues(); values.put(DBHelper.ID_COURSE_FIELD_NAME, courseId); values.put(DBHelper.ID_EVALUATION_FIELD_NAME, evaluationId); result = db.insert(DB...
long function(long courseId, long evaluationId) { long result = -1; try { ContentValues values = new ContentValues(); values.put(DBHelper.ID_COURSE_FIELD_NAME, courseId); values.put(DBHelper.ID_EVALUATION_FIELD_NAME, evaluationId); result = db.insert(DBHelper.COURSE_EVALUATION_FIELD_NAME, null, values); } catch(SQLExce...
/** * Add a new course evaluation register with course and evaluation identifies. * * @param courseId * @param evaluationId * @return */
Add a new course evaluation register with course and evaluation identifies
addCourseEvaluation
{ "repo_name": "rgmf/LTN", "path": "src/es/rgmf/ltn/db/DBAdapter.java", "license": "gpl-3.0", "size": 69648 }
[ "android.content.ContentValues", "android.database.SQLException" ]
import android.content.ContentValues; import android.database.SQLException;
import android.content.*; import android.database.*;
[ "android.content", "android.database" ]
android.content; android.database;
252,604
public static void merge(Directory srcIndexDir, Directory srcTaxDir, OrdinalMap map, IndexWriter destIndexWriter, DirectoryTaxonomyWriter destTaxWriter) throws IOException { // merge the taxonomies destTaxWriter.addTaxonomy(srcTaxDir, map); in...
static void function(Directory srcIndexDir, Directory srcTaxDir, OrdinalMap map, IndexWriter destIndexWriter, DirectoryTaxonomyWriter destTaxWriter) throws IOException { destTaxWriter.addTaxonomy(srcTaxDir, map); int ordinalMap[] = map.getMap(); FacetIndexingParams params = new DefaultFacetIndexingParams(); DirectoryRe...
/** * Merges the given taxonomy and index directories and commits the changes to * the given writers. */
Merges the given taxonomy and index directories and commits the changes to the given writers
merge
{ "repo_name": "terrancesnyder/solr-analytics", "path": "lucene/facet/src/examples/org/apache/lucene/facet/example/merge/TaxonomyMergeUtils.java", "license": "apache-2.0", "size": 4968 }
[ "java.io.IOException", "java.util.List", "org.apache.lucene.facet.index.OrdinalMappingAtomicReader", "org.apache.lucene.facet.index.params.DefaultFacetIndexingParams", "org.apache.lucene.facet.index.params.FacetIndexingParams", "org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyWriter", "org.a...
import java.io.IOException; import java.util.List; import org.apache.lucene.facet.index.OrdinalMappingAtomicReader; import org.apache.lucene.facet.index.params.DefaultFacetIndexingParams; import org.apache.lucene.facet.index.params.FacetIndexingParams; import org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomy...
import java.io.*; import java.util.*; import org.apache.lucene.facet.index.*; import org.apache.lucene.facet.index.params.*; import org.apache.lucene.facet.taxonomy.directory.*; import org.apache.lucene.index.*; import org.apache.lucene.store.*;
[ "java.io", "java.util", "org.apache.lucene" ]
java.io; java.util; org.apache.lucene;
195,764
public Iterator findMembers(IEntityGroup eg) throws GroupsException { Collection members = new ArrayList(10); Iterator it = null; for (it = findMemberGroups(eg); it.hasNext(); ) { members.add(it.next()); } for (it = findMemberEntities(eg); it.hasNext(); ) { ...
Iterator function(IEntityGroup eg) throws GroupsException { Collection members = new ArrayList(10); Iterator it = null; for (it = findMemberGroups(eg); it.hasNext(); ) { members.add(it.next()); } for (it = findMemberEntities(eg); it.hasNext(); ) { members.add(it.next()); } return members.iterator(); }
/** * Returns and members for the <code>IEntityGroup</code>. * * @param eg IEntityGroup */
Returns and members for the <code>IEntityGroup</code>
findMembers
{ "repo_name": "jl1955/uPortal5", "path": "uPortal-groups/uPortal-groups-core/src/main/java/org/apereo/portal/groups/ReferenceIndividualGroupService.java", "license": "apache-2.0", "size": 27402 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,267,089
@SuppressWarnings("null") // headerValue cannot be null private boolean parseHeader() throws IOException { // // Check for blank line // byte chr = 0; while (true) { // Read new bytes if needed if (pos >= lastValid) { if ...
@SuppressWarnings("null") boolean function() throws IOException { byte chr = 0; while (true) { if (pos >= lastValid) { if (!fill()) throw new EOFException(sm.getString(STR)); } chr = buf[pos]; if (chr == Constants.CR) { } else if (chr == Constants.LF) { pos++; return false; } else { break; } pos++; } int start = pos; b...
/** * Parse an HTTP header. * * @return false after reading a blank line (which indicates that the * HTTP header parsing is done */
Parse an HTTP header
parseHeader
{ "repo_name": "mayonghui2112/helloWorld", "path": "sourceCode/apache-tomcat-7.0.82-src/java/org/apache/coyote/http11/InternalInputBuffer.java", "license": "apache-2.0", "size": 16511 }
[ "java.io.EOFException", "java.io.IOException", "org.apache.tomcat.util.buf.MessageBytes", "org.apache.tomcat.util.http.parser.HttpParser" ]
import java.io.EOFException; import java.io.IOException; import org.apache.tomcat.util.buf.MessageBytes; import org.apache.tomcat.util.http.parser.HttpParser;
import java.io.*; import org.apache.tomcat.util.buf.*; import org.apache.tomcat.util.http.parser.*;
[ "java.io", "org.apache.tomcat" ]
java.io; org.apache.tomcat;
521,340
private NeuroEvaluation[] populateClinicalEval(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception { if(patientDIDs.size()>=1) { Criteria clinicalEvalCrit = buildClinicalEvalCriteria(clinicalQuery); if(clinicalEvalCrit== null) { clinicalEvalCrit = new Criteria(...
NeuroEvaluation[] function(ClinicalDataQuery clinicalQuery, Collection patientDIDs)throws Exception { if(patientDIDs.size()>=1) { Criteria clinicalEvalCrit = buildClinicalEvalCriteria(clinicalQuery); if(clinicalEvalCrit== null) { clinicalEvalCrit = new Criteria(); } clinicalEvalCrit.addIn(NeuroEvaluation.PATIENT_DID, p...
/** * * private method to perform clinicaleval query including Karnofsky, Lansky, Neuro Exam and MRI to retrive clinicalEval data * from NEUROLOGICAL_EVALUATION table, and have the result formatted to the NeuroEvaluation[] which impelments * ResultSet, then the result will be added to the patientData[] array...
private method to perform clinicaleval query including Karnofsky, Lansky, Neuro Exam and MRI to retrive clinicalEval data from NEUROLOGICAL_EVALUATION table, and have the result formatted to the NeuroEvaluation[] which impelments ResultSet, then the result will be added to the patientData[] array
populateClinicalEval
{ "repo_name": "NCIP/rembrandt", "path": "src/gov/nih/nci/rembrandt/queryservice/queryprocessing/clinical/ClinicalQueryHandler.java", "license": "bsd-3-clause", "size": 105681 }
[ "gov.nih.nci.rembrandt.dbbean.NeuroEvaluation", "gov.nih.nci.rembrandt.dto.query.ClinicalDataQuery", "java.util.ArrayList", "java.util.Collection", "java.util.Iterator", "org.apache.ojb.broker.PersistenceBroker", "org.apache.ojb.broker.PersistenceBrokerFactory", "org.apache.ojb.broker.query.Criteria",...
import gov.nih.nci.rembrandt.dbbean.NeuroEvaluation; import gov.nih.nci.rembrandt.dto.query.ClinicalDataQuery; import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import org.apache.ojb.broker.PersistenceBroker; import org.apache.ojb.broker.PersistenceBrokerFactory; import org.apache.ojb....
import gov.nih.nci.rembrandt.dbbean.*; import gov.nih.nci.rembrandt.dto.query.*; import java.util.*; import org.apache.ojb.broker.*; import org.apache.ojb.broker.query.*;
[ "gov.nih.nci", "java.util", "org.apache.ojb" ]
gov.nih.nci; java.util; org.apache.ojb;
2,224,292
public ServiceFuture<AssetContainerSasInner> listContainerSasAsync(String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters, final ServiceCallback<AssetContainerSasInner> serviceCallback) { return ServiceFuture.fromResponse(listContainerSasWithServiceResponseAsync(res...
ServiceFuture<AssetContainerSasInner> function(String resourceGroupName, String accountName, String assetName, ListContainerSasInput parameters, final ServiceCallback<AssetContainerSasInner> serviceCallback) { return ServiceFuture.fromResponse(listContainerSasWithServiceResponseAsync(resourceGroupName, accountName, ass...
/** * List the Asset URLs. * Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @para...
List the Asset URLs. Lists storage container URLs with shared access signatures (SAS) for uploading and downloading Asset content. The signatures are derived from the storage account keys
listContainerSasAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/mediaservices/mgmt-v2018_06_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_06_01_preview/implementation/AssetsInner.java", "license": "mit", "size": 64209 }
[ "com.microsoft.azure.management.mediaservices.v2018_06_01_preview.ListContainerSasInput", "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.azure.management.mediaservices.v2018_06_01_preview.ListContainerSasInput; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.azure.management.mediaservices.v2018_06_01_preview.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
1,685,315
public void setPermissionProvider(PermissionProvider permissionProvider) { this.permissionProvider = permissionProvider; }
void function(PermissionProvider permissionProvider) { this.permissionProvider = permissionProvider; }
/** * Sets instance of permission provider. * * @param permissionProvider instance of permission provider */
Sets instance of permission provider
setPermissionProvider
{ "repo_name": "erangatl/carbon-analytics", "path": "components/org.wso2.carbon.permissions.rest.api/src/main/java/org/wso2/carbon/permissions/rest/api/configreader/DataHolder.java", "license": "apache-2.0", "size": 1712 }
[ "org.wso2.carbon.analytics.permissions.PermissionProvider" ]
import org.wso2.carbon.analytics.permissions.PermissionProvider;
import org.wso2.carbon.analytics.permissions.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
961,835
private void fireSetsChangedEvent() { for (ChangeListener l : setsChangeListeners) { l.stateChanged(null); } }
void function() { for (ChangeListener l : setsChangeListeners) { l.stateChanged(null); } }
/** * Notify all listeners that there has been some change to the * list of sets. */
Notify all listeners that there has been some change to the list of sets
fireSetsChangedEvent
{ "repo_name": "posborne/mango-movie-manager", "path": "src/com/themangoproject/db/h2/H2SetsDAO.java", "license": "mit", "size": 9109 }
[ "javax.swing.event.ChangeListener" ]
import javax.swing.event.ChangeListener;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
2,445,742
public static String serialize(Document xomDocument) throws IOException { return serialize(xomDocument, false); }
static String function(Document xomDocument) throws IOException { return serialize(xomDocument, false); }
/** * Serialize a XOM Document. * * @param xomDocument the XOM Document to be serialized * @throws IOException */
Serialize a XOM Document
serialize
{ "repo_name": "diogo-andrade/DataHubSystem", "path": "petascope/src/main/java/petascope/util/XMLUtil.java", "license": "agpl-3.0", "size": 35634 }
[ "java.io.IOException", "nu.xom.Document" ]
import java.io.IOException; import nu.xom.Document;
import java.io.*; import nu.xom.*;
[ "java.io", "nu.xom" ]
java.io; nu.xom;
1,576,041
WithAttach<ParentT> forUser(User user);
WithAttach<ParentT> forUser(User user);
/** * Specifies the Active Directory user this access policy is for. * * @param user the AD user object * @return the next stage of access policy definition */
Specifies the Active Directory user this access policy is for
forUser
{ "repo_name": "anudeepsharma/azure-sdk-for-java", "path": "azure-mgmt-keyvault/src/main/java/com/microsoft/azure/management/keyvault/AccessPolicy.java", "license": "mit", "size": 17656 }
[ "com.microsoft.azure.management.graphrbac.User" ]
import com.microsoft.azure.management.graphrbac.User;
import com.microsoft.azure.management.graphrbac.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
1,700,729
@Nullable public static <T> Class<T> getInnerClass(Class<?> parentCls, String innerClsName) { for (Class<?> cls : parentCls.getDeclaredClasses()) if (innerClsName.equals(cls.getSimpleName())) return (Class<T>)cls; return null; }
@Nullable static <T> Class<T> function(Class<?> parentCls, String innerClsName) { for (Class<?> cls : parentCls.getDeclaredClasses()) if (innerClsName.equals(cls.getSimpleName())) return (Class<T>)cls; return null; }
/** * Get inner class by its name from the enclosing class. * * @param parentCls Parent class to resolve inner class for. * @param innerClsName Name of the inner class. * @return Inner class. */
Get inner class by its name from the enclosing class
getInnerClass
{ "repo_name": "WilliamDo/ignite", "path": "modules/core/src/test/java/org/apache/ignite/testframework/GridTestUtils.java", "license": "apache-2.0", "size": 63592 }
[ "org.jetbrains.annotations.Nullable" ]
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
442,741
void onWebsocketMessage( WebSocket conn, ByteBuffer blob );
void onWebsocketMessage( WebSocket conn, ByteBuffer blob );
/** * Called when an entire binary frame has been received. Do whatever you want * here... * * @param conn * The <tt>WebSocket</tt> instance this event is occurring on. * @param blob * The binary message that was received. */
Called when an entire binary frame has been received. Do whatever you want here..
onWebsocketMessage
{ "repo_name": "snowhow/cordova-plugin-gpstrack", "path": "src/android/org/java_websocket/WebSocketListener.java", "license": "mit", "size": 8655 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
192,279
private void addHoverHandlers(FocusPanel panel) { final CmsStyleVariable hoverVar = new CmsStyleVariable(panel); hoverVar.setValue(I_CmsLayoutBundle.INSTANCE.globalWidgetCss().openerNoHover()); panel.addMouseOverHandler(new MouseOverHandler() {
void function(FocusPanel panel) { final CmsStyleVariable hoverVar = new CmsStyleVariable(panel); hoverVar.setValue(I_CmsLayoutBundle.INSTANCE.globalWidgetCss().openerNoHover()); panel.addMouseOverHandler(new MouseOverHandler() {
/** * Helper method for adding event handlers for a 'hover' effect to the opener.<p> * * @param panel the opener */
Helper method for adding event handlers for a 'hover' effect to the opener
addHoverHandlers
{ "repo_name": "ggiudetti/opencms-core", "path": "src-gwt/org/opencms/gwt/client/ui/input/A_CmsSelectBox.java", "license": "lgpl-2.1", "size": 26851 }
[ "com.google.gwt.event.dom.client.MouseOverHandler", "com.google.gwt.user.client.ui.FocusPanel", "org.opencms.gwt.client.util.CmsStyleVariable" ]
import com.google.gwt.event.dom.client.MouseOverHandler; import com.google.gwt.user.client.ui.FocusPanel; import org.opencms.gwt.client.util.CmsStyleVariable;
import com.google.gwt.event.dom.client.*; import com.google.gwt.user.client.ui.*; import org.opencms.gwt.client.util.*;
[ "com.google.gwt", "org.opencms.gwt" ]
com.google.gwt; org.opencms.gwt;
2,874,999
public FSNamesystem getNamesystem() { checkSingleNameNode(); return NameNodeAdapter.getNamesystem(nameNodes[0].nameNode); }
FSNamesystem function() { checkSingleNameNode(); return NameNodeAdapter.getNamesystem(nameNodes[0].nameNode); }
/** * Return the {@link FSNamesystem} object. * @return {@link FSNamesystem} object. */
Return the <code>FSNamesystem</code> object
getNamesystem
{ "repo_name": "simbadzina/hadoop-fcfs", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/MiniDFSCluster.java", "license": "apache-2.0", "size": 101960 }
[ "org.apache.hadoop.hdfs.server.namenode.FSNamesystem", "org.apache.hadoop.hdfs.server.namenode.NameNodeAdapter" ]
import org.apache.hadoop.hdfs.server.namenode.FSNamesystem; import org.apache.hadoop.hdfs.server.namenode.NameNodeAdapter;
import org.apache.hadoop.hdfs.server.namenode.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,364,420
void triggerLiveInstanceNotification(boolean init) { List<LiveInstance> liveInstances = new ArrayList<>(); for (String instance : mockAdmin.getUpInstances()) { liveInstances.add(new LiveInstance(instance)); } NotificationContext notificationContext = new NotificationContext(this); if (init) ...
void triggerLiveInstanceNotification(boolean init) { List<LiveInstance> liveInstances = new ArrayList<>(); for (String instance : mockAdmin.getUpInstances()) { liveInstances.add(new LiveInstance(instance)); } NotificationContext notificationContext = new NotificationContext(this); if (init) { notificationContext.setTyp...
/** * Trigger a live instance change notification. */
Trigger a live instance change notification
triggerLiveInstanceNotification
{ "repo_name": "linkedin/ambry", "path": "ambry-clustermap/src/test/java/com/github/ambry/clustermap/MockHelixManager.java", "license": "apache-2.0", "size": 17542 }
[ "java.util.ArrayList", "java.util.List", "org.apache.helix.NotificationContext", "org.apache.helix.model.LiveInstance" ]
import java.util.ArrayList; import java.util.List; import org.apache.helix.NotificationContext; import org.apache.helix.model.LiveInstance;
import java.util.*; import org.apache.helix.*; import org.apache.helix.model.*;
[ "java.util", "org.apache.helix" ]
java.util; org.apache.helix;
2,859,699
protected static Class<?> getRawType(Type type) { return Utils.getRawType(type); } }
static Class<?> function(Type type) { return Utils.getRawType(type); } }
/** * Extract the raw class type from {@code type}. For example, the type representing * {@code List<? extends Runnable>} returns {@code List.class}. */
Extract the raw class type from type. For example, the type representing List returns List.class
getRawType
{ "repo_name": "MaTriXy/retrofit", "path": "retrofit/src/main/java/retrofit2/CallAdapter.java", "license": "apache-2.0", "size": 3225 }
[ "java.lang.reflect.Type" ]
import java.lang.reflect.Type;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,986,914
public void setDriver(Driver driver) { this.driver = driver; }
void function(Driver driver) { this.driver = driver; }
/** * Specify the JDBC Driver instance to use. * <p>This allows for passing in a shared, possibly pre-configured * Driver instance. * @see #setDriverClass */
Specify the JDBC Driver instance to use. This allows for passing in a shared, possibly pre-configured Driver instance
setDriver
{ "repo_name": "ftomassetti/effectivejava", "path": "test-resources/sample-codebases/spring-jdbc/src/main/java/org/springframework/jdbc/datasource/SimpleDriverDataSource.java", "license": "apache-2.0", "size": 4921 }
[ "java.sql.Driver" ]
import java.sql.Driver;
import java.sql.*;
[ "java.sql" ]
java.sql;
472,847
HiveDecimal getMaximum();
HiveDecimal getMaximum();
/** * Get the maximum value for the column. * @return the maximum value */
Get the maximum value for the column
getMaximum
{ "repo_name": "pudidic/orc", "path": "java/core/src/java/org/apache/orc/DecimalColumnStatistics.java", "license": "apache-2.0", "size": 1336 }
[ "org.apache.hadoop.hive.common.type.HiveDecimal" ]
import org.apache.hadoop.hive.common.type.HiveDecimal;
import org.apache.hadoop.hive.common.type.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
701,222
public BoxCollection search(String searchQuery, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException;
BoxCollection function(String searchQuery, BoxDefaultRequestObject requestObject) throws BoxRestException, BoxServerException, AuthFatalFailureException;
/** * Perform a search against the user's account. * * @param searchQuery * search query string * @param requestObject * request object * @return Items(subfolders, files, weblinks...) under the folder. * @throws BoxRestException * See {@lin...
Perform a search against the user's account
search
{ "repo_name": "shelsonjava/box-java-sdk-v2", "path": "BoxJavaLibraryV2/src/com/box/boxjavalibv2/resourcemanagers/IBoxSearchManager.java", "license": "apache-2.0", "size": 1258 }
[ "com.box.boxjavalibv2.dao.BoxCollection", "com.box.boxjavalibv2.exceptions.AuthFatalFailureException", "com.box.boxjavalibv2.exceptions.BoxServerException", "com.box.restclientv2.exceptions.BoxRestException", "com.box.restclientv2.requestsbase.BoxDefaultRequestObject" ]
import com.box.boxjavalibv2.dao.BoxCollection; import com.box.boxjavalibv2.exceptions.AuthFatalFailureException; import com.box.boxjavalibv2.exceptions.BoxServerException; import com.box.restclientv2.exceptions.BoxRestException; import com.box.restclientv2.requestsbase.BoxDefaultRequestObject;
import com.box.boxjavalibv2.dao.*; import com.box.boxjavalibv2.exceptions.*; import com.box.restclientv2.exceptions.*; import com.box.restclientv2.requestsbase.*;
[ "com.box.boxjavalibv2", "com.box.restclientv2" ]
com.box.boxjavalibv2; com.box.restclientv2;
2,183,224
public java.util.regex.Pattern getJavaPattern() { return javaPattern; }
java.util.regex.Pattern function() { return javaPattern; }
/** * Returns the java version of the regex pattern - its provided as the core requires a java * Pattern when searching for evidence. It should not be used for matching in this package, use * findInString instead for performance reasons. * * @return */
Returns the java version of the regex pattern - its provided as the core requires a java Pattern when searching for evidence. It should not be used for matching in this package, use findInString instead for performance reasons
getJavaPattern
{ "repo_name": "thc202/zap-extensions", "path": "addOns/wappalyzer/src/main/java/org/zaproxy/zap/extension/wappalyzer/AppPattern.java", "license": "apache-2.0", "size": 3731 }
[ "com.google.re2j.Pattern" ]
import com.google.re2j.Pattern;
import com.google.re2j.*;
[ "com.google.re2j" ]
com.google.re2j;
219,855
void onDestroy(); /** * This method must be called from {@link Activity#onPause()}
void onDestroy(); /** * This method must be called from {@link Activity#onPause()}
/** * This method must be called from {@link Activity#onDestroy()}}. * This method internally detaches the view from presenter */
This method must be called from <code>Activity#onDestroy()</code>}. This method internally detaches the view from presenter
onDestroy
{ "repo_name": "sockeqwe/mosby", "path": "mvp/src/main/java/com/hannesdorfmann/mosby3/mvp/delegate/ActivityMvpDelegate.java", "license": "apache-2.0", "size": 2826 }
[ "android.app.Activity" ]
import android.app.Activity;
import android.app.*;
[ "android.app" ]
android.app;
2,562,262
@Test public void testSetName() { FilterNode node = new FilterNode(); assertNull(node.getFilter()); String name = "filtername"; node.setName(name); String expected = name + " : " + Localisation.getString( ...
void function() { FilterNode node = new FilterNode(); assertNull(node.getFilter()); String name = STR; node.setName(name); String expected = name + STR + Localisation.getString( ExpressionPanelv2.class, STR); assertTrue(node.toString().compareTo(expected) == 0); }
/** * Test method for {@link * com.sldeditor.filter.v2.expression.FilterNode#setName(java.lang.String)}. */
Test method for <code>com.sldeditor.filter.v2.expression.FilterNode#setName(java.lang.String)</code>
testSetName
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/test/java/com/sldeditor/test/unit/filter/v2/expression/FilterNodeTest.java", "license": "gpl-3.0", "size": 8576 }
[ "com.sldeditor.common.localisation.Localisation", "com.sldeditor.filter.v2.expression.ExpressionPanelv2", "com.sldeditor.filter.v2.expression.FilterNode", "org.junit.jupiter.api.Assertions" ]
import com.sldeditor.common.localisation.Localisation; import com.sldeditor.filter.v2.expression.ExpressionPanelv2; import com.sldeditor.filter.v2.expression.FilterNode; import org.junit.jupiter.api.Assertions;
import com.sldeditor.common.localisation.*; import com.sldeditor.filter.v2.expression.*; import org.junit.jupiter.api.*;
[ "com.sldeditor.common", "com.sldeditor.filter", "org.junit.jupiter" ]
com.sldeditor.common; com.sldeditor.filter; org.junit.jupiter;
1,353,173
protected boolean doesTableExist(Schema schema) { return doesTableExist(getTableName(schema)); }
boolean function(Schema schema) { return doesTableExist(getTableName(schema)); }
/** * Checks whether a table for the given schema exists in the database. * * @param schema * @return */
Checks whether a table for the given schema exists in the database
doesTableExist
{ "repo_name": "dave-cassettari/sapelli", "path": "Library/src/uk/ac/ucl/excites/sapelli/storage/db/sql/SQLRecordStore.java", "license": "unlicense", "size": 62149 }
[ "uk.ac.ucl.excites.sapelli.storage.model.Schema" ]
import uk.ac.ucl.excites.sapelli.storage.model.Schema;
import uk.ac.ucl.excites.sapelli.storage.model.*;
[ "uk.ac.ucl" ]
uk.ac.ucl;
1,077,323
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<ExpressRouteConnectionInner>> getWithResponseAsync( String resourceGroupName, String expressRouteGatewayName, String connectionName) { if (this.client.getEndpoint() == null) { return Mono .error( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<ExpressRouteConnectionInner>> function( String resourceGroupName, String expressRouteGatewayName, String connectionName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return...
/** * Gets the specified ExpressRouteConnection. * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @param connectionName The name of the ExpressRoute connection. * @throws IllegalArgumentException thrown if...
Gets the specified ExpressRouteConnection
getWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteConnectionsClientImpl.java", "license": "mit", "size": 54456 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.network.fluent.models.ExpressRouteConnectionInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.models.ExpressRouteConnectionInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,709,911
public void startupMessageFailed(DistributedMember mbr, String failureMessage);
void function(DistributedMember mbr, String failureMessage);
/** if a StartupMessage is going to reject a new member, this should be used * to make sure we don't keep that member on as a "surprise member" * @param mbr the failed member * @param failureMessage the reason for the failure (e.g., license limitation) */
if a StartupMessage is going to reject a new member, this should be used to make sure we don't keep that member on as a "surprise member"
startupMessageFailed
{ "repo_name": "robertgeiger/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/membership/MembershipManager.java", "license": "apache-2.0", "size": 11824 }
[ "com.gemstone.gemfire.distributed.DistributedMember" ]
import com.gemstone.gemfire.distributed.DistributedMember;
import com.gemstone.gemfire.distributed.*;
[ "com.gemstone.gemfire" ]
com.gemstone.gemfire;
2,469,694
@ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable<ExpressRoutePortInner> listByResourceGroup(String resourceGroupName, Context context) { return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); }
@ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<ExpressRoutePortInner> function(String resourceGroupName, Context context) { return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); }
/** * List all the ExpressRoutePort resources in the specified resource group. * * @param resourceGroupName The name of the resource group. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ...
List all the ExpressRoutePort resources in the specified resource group
listByResourceGroup
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRoutePortsClientImpl.java", "license": "mit", "size": 68799 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedIterable", "com.azure.core.util.Context", "com.azure.resourcemanager.network.fluent.models.ExpressRoutePortInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; import com.azure.resourcemanager.network.fluent.models.ExpressRoutePortInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,344,731
public void setCanSort(int SORT) { ScriptBuffer script = new ScriptBuffer(); script.appendCall(getContextPath() + "setCanSort", SORT); ScriptSessions.addScript(script); }
void function(int SORT) { ScriptBuffer script = new ScriptBuffer(); script.appendCall(getContextPath() + STR, SORT); ScriptSessions.addScript(script); }
/** * Sets whether the table is sortable. * @param SORT one of <code>jsx3.Boolean.TRUE</code> or <code>jsx3.Boolean.FALSE</code> */
Sets whether the table is sortable
setCanSort
{ "repo_name": "burris/dwr", "path": "ui/gi/generated/java/jsx3/gui/Table.java", "license": "apache-2.0", "size": 111945 }
[ "org.directwebremoting.ScriptBuffer", "org.directwebremoting.ScriptSessions" ]
import org.directwebremoting.ScriptBuffer; import org.directwebremoting.ScriptSessions;
import org.directwebremoting.*;
[ "org.directwebremoting" ]
org.directwebremoting;
258,348
public OrderedCollection<PortChangeEvent> handlePortStatusMessage(OFPortStatus ps) { if (ps == null) { throw new NullPointerException("OFPortStatus message must " + "not be null"); } lock.writeLock().lock(); try { ...
OrderedCollection<PortChangeEvent> function(OFPortStatus ps) { if (ps == null) { throw new NullPointerException(STR + STR); } lock.writeLock().lock(); try { OFPortReason reason = ps.getReason(); if (reason == null) { throw new IllegalArgumentException(STR + STR + ps.getReason()); } if (log.isDebugEnabled()) { log.debug...
/** * Handle a OFPortStatus message, update the internal data structures * that store ports and return the list of OFChangeEvents. * * This method will increment error/warn counters and log * * @param ps * @return */
Handle a OFPortStatus message, update the internal data structures that store ports and return the list of OFChangeEvents. This method will increment error/warn counters and log
handlePortStatusMessage
{ "repo_name": "opennetworkinglab/spring-open", "path": "src/main/java/net/floodlightcontroller/core/internal/OFSwitchImplBase.java", "license": "apache-2.0", "size": 55524 }
[ "java.util.HashMap", "java.util.Map", "net.floodlightcontroller.util.OrderedCollection", "org.projectfloodlight.openflow.protocol.OFPortDesc", "org.projectfloodlight.openflow.protocol.OFPortReason", "org.projectfloodlight.openflow.protocol.OFPortStatus" ]
import java.util.HashMap; import java.util.Map; import net.floodlightcontroller.util.OrderedCollection; import org.projectfloodlight.openflow.protocol.OFPortDesc; import org.projectfloodlight.openflow.protocol.OFPortReason; import org.projectfloodlight.openflow.protocol.OFPortStatus;
import java.util.*; import net.floodlightcontroller.util.*; import org.projectfloodlight.openflow.protocol.*;
[ "java.util", "net.floodlightcontroller.util", "org.projectfloodlight.openflow" ]
java.util; net.floodlightcontroller.util; org.projectfloodlight.openflow;
1,730,092
public @Nullable Set<RexNode> getExpressionLineage(Aggregate rel, RelMetadataQuery mq, RexNode outputExpression) { final RelNode input = rel.getInput(); final RexBuilder rexBuilder = rel.getCluster().getRexBuilder(); // Extract input fields referenced by expression final ImmutableBitSet inputFi...
@Nullable Set<RexNode> function(Aggregate rel, RelMetadataQuery mq, RexNode outputExpression) { final RelNode input = rel.getInput(); final RexBuilder rexBuilder = rel.getCluster().getRexBuilder(); final ImmutableBitSet inputFieldsUsed = extractInputRefs(outputExpression); for (int idx : inputFieldsUsed) { if (idx >= r...
/** * Expression lineage from {@link Aggregate}. * * <p>If the expression references grouping sets or aggregate function * results, we cannot extract the lineage and we return null. */
Expression lineage from <code>Aggregate</code>. If the expression references grouping sets or aggregate function results, we cannot extract the lineage and we return null
getExpressionLineage
{ "repo_name": "datametica/calcite", "path": "core/src/main/java/org/apache/calcite/rel/metadata/RelMdExpressionLineage.java", "license": "apache-2.0", "size": 20861 }
[ "java.util.LinkedHashMap", "java.util.Map", "java.util.Set", "org.apache.calcite.rel.RelNode", "org.apache.calcite.rel.core.Aggregate", "org.apache.calcite.rex.RexBuilder", "org.apache.calcite.rex.RexInputRef", "org.apache.calcite.rex.RexNode", "org.apache.calcite.util.ImmutableBitSet", "org.check...
import java.util.LinkedHashMap; import java.util.Map; import java.util.Set; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.core.Aggregate; import org.apache.calcite.rex.RexBuilder; import org.apache.calcite.rex.RexInputRef; import org.apache.calcite.rex.RexNode; import org.apache.calcite.util.Immu...
import java.util.*; import org.apache.calcite.rel.*; import org.apache.calcite.rel.core.*; import org.apache.calcite.rex.*; import org.apache.calcite.util.*; import org.checkerframework.checker.nullness.qual.*;
[ "java.util", "org.apache.calcite", "org.checkerframework.checker" ]
java.util; org.apache.calcite; org.checkerframework.checker;
1,854,506
public static Map<String, Object> cdyneReturnCityState(DispatchContext dctx, Map<String, ?> context) { String zipcode = (String) context.get("zipcode"); Locale locale = (Locale) context.get("locale"); String serviceUrl = "http://ws.cdyne.com/psaddress/addresslookup.asmx/ReturnCityState?zipco...
static Map<String, Object> function(DispatchContext dctx, Map<String, ?> context) { String zipcode = (String) context.get(STR); Locale locale = (Locale) context.get(STR); String serviceUrl = STRtrueSTRServiceErrorSTRCommonCDyneServiceError", UtilMisc.toMap(STR, zipcode), locale)); } if ("trueSTRAddressErrorSTRCommonCDy...
/** * CDyne ReturnCityState Service *@param dctx The DispatchContext that this service is operating in *@param context Map containing the input parameters *@return Map with the result of the service, the output parameters */
CDyne ReturnCityState Service
cdyneReturnCityState
{ "repo_name": "yuri0x7c1/ofbiz-explorer", "path": "src/test/resources/apache-ofbiz-17.12.04/framework/common/src/main/java/org/apache/ofbiz/common/CdyneServices.java", "license": "apache-2.0", "size": 9310 }
[ "java.util.Locale", "java.util.Map", "org.apache.ofbiz.base.util.Debug", "org.apache.ofbiz.base.util.HttpClientException", "org.apache.ofbiz.base.util.UtilMisc", "org.apache.ofbiz.service.DispatchContext" ]
import java.util.Locale; import java.util.Map; import org.apache.ofbiz.base.util.Debug; import org.apache.ofbiz.base.util.HttpClientException; import org.apache.ofbiz.base.util.UtilMisc; import org.apache.ofbiz.service.DispatchContext;
import java.util.*; import org.apache.ofbiz.base.util.*; import org.apache.ofbiz.service.*;
[ "java.util", "org.apache.ofbiz" ]
java.util; org.apache.ofbiz;
24,365
public boolean isGlobMatchedNumeric(String globPattern, String targetText) throws InvalidPatternException { List<String> patterns = expand(globPattern); for (String p : patterns) { if (isNoBraceGlobMatched(p, targetText)) return true; ...
boolean function(String globPattern, String targetText) throws InvalidPatternException { List<String> patterns = expand(globPattern); for (String p : patterns) { if (isNoBraceGlobMatched(p, targetText)) return true; } return false; }
/** returns true iff the target matches the given pattern, * under simplified bash rules -- viz permitting * and ? and comma delimited patterns inside curly braces, * as well as things like {1,2,5-10} (and also {01,02,05-10} to keep leading 0) * @throws InvalidPatternException */
returns true iff the target matches the given pattern, under simplified bash rules -- viz permitting * and ? and comma delimited patterns inside curly braces, as well as things like {1,2,5-10} (and also {01,02,05-10} to keep leading 0)
isGlobMatchedNumeric
{ "repo_name": "azharhashmi/brooklyn", "path": "utils/common/src/main/java/brooklyn/util/text/WildcardGlobs.java", "license": "apache-2.0", "size": 18229 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,036,332
public static Expression typeConverterExpression() { return new ExpressionAdapter() { private TypeConverter typeConverter;
static Expression function() { return new ExpressionAdapter() { private TypeConverter typeConverter;
/** * Returns an expression for the type converter * * @return an expression object which will return the type converter */
Returns an expression for the type converter
typeConverterExpression
{ "repo_name": "christophd/camel", "path": "core/camel-support/src/main/java/org/apache/camel/support/builder/ExpressionBuilder.java", "license": "apache-2.0", "size": 65509 }
[ "org.apache.camel.Expression", "org.apache.camel.TypeConverter", "org.apache.camel.support.ExpressionAdapter" ]
import org.apache.camel.Expression; import org.apache.camel.TypeConverter; import org.apache.camel.support.ExpressionAdapter;
import org.apache.camel.*; import org.apache.camel.support.*;
[ "org.apache.camel" ]
org.apache.camel;
1,015,003
private void exitProgram() throws IOException { // // Remember the current window position and size unless the window // is minimized // if (!windowMinimized) { Point p = getLocation(); Dimension d = getSize(); Main.properties.setProperty(...
void function() throws IOException { Point p = getLocation(); Dimension d = getSize(); Main.properties.setProperty(STR, p.x+","+p.y); Main.properties.setProperty(STR, d.width+","+d.height); } }
/** * Exit the application * * @exception IOException Unable to save application data */
Exit the application
exitProgram
{ "repo_name": "Toporin/BitcoinWallet", "path": "src/main/java/org/ScripterRon/BitcoinWallet/MainWindow.java", "license": "apache-2.0", "size": 24382 }
[ "java.awt.Dimension", "java.awt.Point", "java.io.IOException" ]
import java.awt.Dimension; import java.awt.Point; import java.io.IOException;
import java.awt.*; import java.io.*;
[ "java.awt", "java.io" ]
java.awt; java.io;
2,504,340
public boolean findWifiConfigurationBySsid(String ssid) { List<WifiConfiguration> configuredNetworks = wifiManager.getConfiguredNetworks(); boolean isAvailable = false; for (WifiConfiguration configuration : configuredNetworks) { if (configuration.SSID.equals(ssid)) { isAvailable = true; break; }...
boolean function(String ssid) { List<WifiConfiguration> configuredNetworks = wifiManager.getConfiguredNetworks(); boolean isAvailable = false; for (WifiConfiguration configuration : configuredNetworks) { if (configuration.SSID.equals(ssid)) { isAvailable = true; break; } } return isAvailable; }
/** * Find WIFI Configuration By SSID. * @param ssid - SSID of the WIFI profile which needs to be found. */
Find WIFI Configuration By SSID
findWifiConfigurationBySsid
{ "repo_name": "zhengbangpeng/product-mdm-zh", "path": "modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent/api/WiFiConfig.java", "license": "apache-2.0", "size": 4866 }
[ "android.net.wifi.WifiConfiguration", "java.util.List" ]
import android.net.wifi.WifiConfiguration; import java.util.List;
import android.net.wifi.*; import java.util.*;
[ "android.net", "java.util" ]
android.net; java.util;
1,499,708
public void disposeData(int from, int to) { Arrays.fill( tempStringData, Math.max(0, from), Math.min(tempStringData.length, to), (char) 0 ); }
void function(int from, int to) { Arrays.fill( tempStringData, Math.max(0, from), Math.min(tempStringData.length, to), (char) 0 ); }
/** * Used to wipe tempStringData (following Java recommendations) * @param from start * @param to end */
Used to wipe tempStringData (following Java recommendations)
disposeData
{ "repo_name": "PGMacDesign/PGMacUtilities", "path": "library/src/main/java/com/pgmacdesign/pgmactips/misc/TempString.java", "license": "apache-2.0", "size": 6261 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,002,268
public void setEncoding(Charset encoding) { this.encoding = encoding; }
void function(Charset encoding) { this.encoding = encoding; }
/** * Sets the source encoding. * * @param encoding The source encoding. */
Sets the source encoding
setEncoding
{ "repo_name": "Abnaxos/pegdown-doclet", "path": "doclet/jdk8/src/main/java/ch/raffael/mddoclet/Options.java", "license": "gpl-3.0", "size": 20529 }
[ "java.nio.charset.Charset" ]
import java.nio.charset.Charset;
import java.nio.charset.*;
[ "java.nio" ]
java.nio;
95,770
void traceMessage(String opsName, Map<String, Object> message, String... ignoredFields);
void traceMessage(String opsName, Map<String, Object> message, String... ignoredFields);
/** * Trace a message * @param opsName the operation name (basically the class and method where this method is called) * @param message the message to trace * @param ignoredFields the list of message fields to ignore in the trace */
Trace a message
traceMessage
{ "repo_name": "echinopsii/net.echinopsii.ariane.community.messaging", "path": "api/src/main/java/net/echinopsii/ariane/community/messaging/api/MomLogger.java", "license": "agpl-3.0", "size": 1942 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,380,967
final StringWriter sw = new StringWriter(); final ClassWriter verifyWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES); classNode.accept(verifyWriter); final ClassReader ver = new ClassReader(verifyWriter.toByteArray()); try { DrillCheckClassAdapter.verify(ver, false, new PrintWriter(sw)); }...
final StringWriter sw = new StringWriter(); final ClassWriter verifyWriter = new ClassWriter(ClassWriter.COMPUTE_FRAMES); classNode.accept(verifyWriter); final ClassReader ver = new ClassReader(verifyWriter.toByteArray()); try { DrillCheckClassAdapter.verify(ver, false, new PrintWriter(sw)); } catch(final Exception e) ...
/** * Check to see if a class is well-formed. * * @param logger the logger to write to if a problem is found * @param logTag a tag to print to the log if a problem is found * @param classNode the class to check * @return true if the class is ok, false otherwise */
Check to see if a class is well-formed
isClassOk
{ "repo_name": "pwong-mapr/incubator-drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/compile/AsmUtil.java", "license": "apache-2.0", "size": 5861 }
[ "java.io.PrintWriter", "java.io.StringWriter", "org.objectweb.asm.ClassReader", "org.objectweb.asm.ClassWriter" ]
import java.io.PrintWriter; import java.io.StringWriter; import org.objectweb.asm.ClassReader; import org.objectweb.asm.ClassWriter;
import java.io.*; import org.objectweb.asm.*;
[ "java.io", "org.objectweb.asm" ]
java.io; org.objectweb.asm;
1,592,164
public void testValueIterator() { System.out.println("Testing Value iterator"); LongArrayMap<Long> lam = populateLAM(); int idx = 0; for (Long l : lam.values()) { assertEquals("Iterator did not return the correct values for idx=" + idx, entries[idx++], l.longValue()); } assertEquals("Iterator did not ...
void function() { System.out.println(STR); LongArrayMap<Long> lam = populateLAM(); int idx = 0; for (Long l : lam.values()) { assertEquals(STR + idx, entries[idx++], l.longValue()); } assertEquals(STR, entries.length, idx); idx = 0; for (Long l : lam.values()) { assertEquals(STR + idx, entries[idx++], l.longValue()); }...
/** * Test method for {@link de.ueller.osmToGpsMid.LongArrayMap#values()}. */
Test method for <code>de.ueller.osmToGpsMid.LongArrayMap#values()</code>
testValueIterator
{ "repo_name": "martints/gpsmid", "path": "Osm2GpsMid/test/de/ueller/osmToGpsMid/LongArrayMapTest.java", "license": "gpl-2.0", "size": 8557 }
[ "de.ueller.osmToGpsMid.LongArrayMap" ]
import de.ueller.osmToGpsMid.LongArrayMap;
import de.ueller.*;
[ "de.ueller" ]
de.ueller;
621,552
public static Object readObject(java.sql.ResultSet resultSet, int index) throws Exception { ObjectInputStream objIn = new ObjectInputStream(resultSet.getBinaryStream(index)); Object obj = objIn.readObject(); objIn.close(); return obj; }
static Object function(java.sql.ResultSet resultSet, int index) throws Exception { ObjectInputStream objIn = new ObjectInputStream(resultSet.getBinaryStream(index)); Object obj = objIn.readObject(); objIn.close(); return obj; }
/** * Given a ResultSet and an index into the columns of that ResultSet, read * binary data from the column which represents a serialized object, and * re-create the object. * * @param resultSet * the ResultSet to use. * @param index * an index into the Res...
Given a ResultSet and an index into the columns of that ResultSet, read binary data from the column which represents a serialized object, and re-create the object
readObject
{ "repo_name": "mwaylabs/mysql-connector-j", "path": "src/com/mysql/jdbc/Util.java", "license": "gpl-2.0", "size": 23762 }
[ "java.io.ObjectInputStream" ]
import java.io.ObjectInputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,441,799
public Set<OGraphEdge> getInEdges() { return getInEdges(null); }
Set<OGraphEdge> function() { return getInEdges(null); }
/** * Returns the incoming edges of current node. If there are no edged, then an empty set is returned. */
Returns the incoming edges of current node. If there are no edged, then an empty set is returned
getInEdges
{ "repo_name": "fedgehog/Orient", "path": "core/src/main/java/com/orientechnologies/orient/core/db/graph/OGraphVertex.java", "license": "apache-2.0", "size": 14566 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
230,766
public void init(CommsErrorListener CEL, RoutingManager RM) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "init", new Object[] { CEL, RM}); // Lock exclusively for start operations mpioLockManager.lockExclusive(); _commsErrorListener = C...
void function(CommsErrorListener CEL, RoutingManager RM) { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "init", new Object[] { CEL, RM}); mpioLockManager.lockExclusive(); _commsErrorListener = CEL; _routingManager = RM; synchronized(_mpConnectionsByMEConnection) { _mpConnectionsByMEU...
/** * Initialize the MP I/O component. * * @param CEL TRM's implementation of the CommsErrorListener interface. * @param RM TRM's implementation of the RoutingManager interface. */
Initialize the MP I/O component
init
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/io/MPIO.java", "license": "epl-1.0", "size": 22454 }
[ "com.ibm.websphere.ras.TraceComponent", "com.ibm.ws.sib.trm.contact.CommsErrorListener", "com.ibm.ws.sib.trm.topology.RoutingManager", "com.ibm.ws.sib.utils.ras.SibTr" ]
import com.ibm.websphere.ras.TraceComponent; import com.ibm.ws.sib.trm.contact.CommsErrorListener; import com.ibm.ws.sib.trm.topology.RoutingManager; import com.ibm.ws.sib.utils.ras.SibTr;
import com.ibm.websphere.ras.*; import com.ibm.ws.sib.trm.contact.*; import com.ibm.ws.sib.trm.topology.*; import com.ibm.ws.sib.utils.ras.*;
[ "com.ibm.websphere", "com.ibm.ws" ]
com.ibm.websphere; com.ibm.ws;
2,861,404
public void addToLogging(Connection c, String key, String value) throws Types.BadServerResponse, XmlRpcException { String method_call = "host.add_to_logging"; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC...
void function(Connection c, String key, String value) throws Types.BadServerResponse, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(value)}; Ma...
/** * Add the given key-value pair to the logging field of the given host. * * @param key Key to add * @param value Value to add */
Add the given key-value pair to the logging field of the given host
addToLogging
{ "repo_name": "cc14514/hq6", "path": "hq-plugin/xen-plugin/src/main/java/com/xensource/xenapi/Host.java", "license": "unlicense", "size": 71202 }
[ "java.util.Map", "org.apache.xmlrpc.XmlRpcException" ]
import java.util.Map; import org.apache.xmlrpc.XmlRpcException;
import java.util.*; import org.apache.xmlrpc.*;
[ "java.util", "org.apache.xmlrpc" ]
java.util; org.apache.xmlrpc;
1,299,838
public Map<String, Object> getXmlOptions(boolean streaming, Object inputData){ return getXmlOptions(null, ComplexType.n_ary, streaming, new PsiXmlParserLogger(), inputData, null, null); }
Map<String, Object> function(boolean streaming, Object inputData){ return getXmlOptions(null, ComplexType.n_ary, streaming, new PsiXmlParserLogger(), inputData, null, null); }
/** * Create the options for the PSI-XML datasource and specify if we want a Streaming MIFileDatasource. * It will read InteractionEvidence elements. * It will use the PsiXmlParserLogger to listen to the PSI-XML parsing events * It will keep the parsed objects having an id in memory. * * ...
Create the options for the PSI-XML datasource and specify if we want a Streaming MIFileDatasource. It will read InteractionEvidence elements. It will use the PsiXmlParserLogger to listen to the PSI-XML parsing events It will keep the parsed objects having an id in memory
getXmlOptions
{ "repo_name": "MICommunity/psi-jami", "path": "jami-commons/src/main/java/psidev/psi/mi/jami/commons/MIDataSourceOptionFactory.java", "license": "apache-2.0", "size": 14278 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
300,116
@Test public void testSameClass() { final Consumer<Foo> c1 = h1.with(Foo::hashTo); final Consumer<Foo> c2 = h2.with(Foo::hashTo); final Consumer<Bar> c3 = h3.with(Bar::hashTo); c1.accept(new Foo(42)); c2.accept(new Foo(42)); c3.accept(new Bar(42)); asser...
void function() { final Consumer<Foo> c1 = h1.with(Foo::hashTo); final Consumer<Foo> c2 = h2.with(Foo::hashTo); final Consumer<Bar> c3 = h3.with(Bar::hashTo); c1.accept(new Foo(42)); c2.accept(new Foo(42)); c3.accept(new Bar(42)); assertEquals(h1.result(), h2.result()); assertNotEquals(h1.result(), h3.result()); }
/** * Test that classes with the same name and topology matches. * And classes with the same topology, but different name does not. */
Test that classes with the same name and topology matches. And classes with the same topology, but different name does not
testSameClass
{ "repo_name": "spotify/heroic", "path": "heroic-component/src/test/java/com/spotify/heroic/ObjectHasherTest.java", "license": "apache-2.0", "size": 4037 }
[ "java.util.function.Consumer", "org.junit.Assert" ]
import java.util.function.Consumer; import org.junit.Assert;
import java.util.function.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
525,976
public PDAction getWP() { COSDictionary wp = (COSDictionary)actions.getDictionaryObject( "WP" ); PDAction retval = null; if( wp != null ) { retval = PDActionFactory.createAction( wp ); } return retval; }
PDAction function() { COSDictionary wp = (COSDictionary)actions.getDictionaryObject( "WP" ); PDAction retval = null; if( wp != null ) { retval = PDActionFactory.createAction( wp ); } return retval; }
/** * This will get a JavaScript action to be performed * before printing a document. * The name WP stands for "will print". * * @return The WP entry of document catalog's additional actions dictionary. */
This will get a JavaScript action to be performed before printing a document. The name WP stands for "will print"
getWP
{ "repo_name": "mdamt/PdfBox-Android", "path": "library/src/main/java/org/apache/pdfbox/pdmodel/interactive/action/PDDocumentCatalogAdditionalActions.java", "license": "apache-2.0", "size": 5477 }
[ "org.apache.pdfbox.cos.COSDictionary" ]
import org.apache.pdfbox.cos.COSDictionary;
import org.apache.pdfbox.cos.*;
[ "org.apache.pdfbox" ]
org.apache.pdfbox;
1,010,220
public SerializingLongReceiver createReceiver() throws Exception { TaskManagerLocation senderLocation = new TaskManagerLocation( ResourceID.generate(), LOCAL_ADDRESS, dataPort); InputGate receiverGate = createInputGate(senderLocation); SerializingLongReceiver receiver = new SerializingLongReceiver(r...
SerializingLongReceiver function() throws Exception { TaskManagerLocation senderLocation = new TaskManagerLocation( ResourceID.generate(), LOCAL_ADDRESS, dataPort); InputGate receiverGate = createInputGate(senderLocation); SerializingLongReceiver receiver = new SerializingLongReceiver(receiverGate, channels * partition...
/** * Note: It should be guaranteed that {@link #createResultPartitionWriter(int)} has been * called before creating the receiver. Otherwise it might cause unexpected behaviors when * {@link org.apache.flink.runtime.io.network.partition.PartitionNotFoundException} happens * in {@link SingleInputGateBenchmarkFac...
Note: It should be guaranteed that <code>#createResultPartitionWriter(int)</code> has been called before creating the receiver. Otherwise it might cause unexpected behaviors when <code>org.apache.flink.runtime.io.network.partition.PartitionNotFoundException</code> happens in <code>SingleInputGateBenchmarkFactory.TestRe...
createReceiver
{ "repo_name": "jinglining/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/io/benchmark/StreamNetworkBenchmarkEnvironment.java", "license": "apache-2.0", "size": 10655 }
[ "org.apache.flink.runtime.clusterframework.types.ResourceID", "org.apache.flink.runtime.io.network.partition.consumer.InputGate", "org.apache.flink.runtime.taskmanager.TaskManagerLocation" ]
import org.apache.flink.runtime.clusterframework.types.ResourceID; import org.apache.flink.runtime.io.network.partition.consumer.InputGate; import org.apache.flink.runtime.taskmanager.TaskManagerLocation;
import org.apache.flink.runtime.clusterframework.types.*; import org.apache.flink.runtime.io.network.partition.consumer.*; import org.apache.flink.runtime.taskmanager.*;
[ "org.apache.flink" ]
org.apache.flink;
1,800,369
public BoundCodeDt<IdentifierUseEnum> getUse() { if (myUse == null) { myUse = new BoundCodeDt<IdentifierUseEnum>(IdentifierUseEnum.VALUESET_BINDER); } return myUse; }
BoundCodeDt<IdentifierUseEnum> function() { if (myUse == null) { myUse = new BoundCodeDt<IdentifierUseEnum>(IdentifierUseEnum.VALUESET_BINDER); } return myUse; }
/** * Gets the value(s) for <b>use</b> (usual | official | temp | secondary (If known)). * creating it if it does * not exist. Will not return <code>null</code>. * * <p> * <b>Definition:</b> * The purpose of this identifier * </p> */
Gets the value(s) for use (usual | official | temp | secondary (If known)). creating it if it does not exist. Will not return <code>null</code>. Definition: The purpose of this identifier
getUse
{ "repo_name": "gajen0981/FHIR-Server", "path": "hapi-fhir-structures-dstu/src/test/java/ca/uhn/fhir/testmodel/IdentifierDt.java", "license": "apache-2.0", "size": 10501 }
[ "ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum", "ca.uhn.fhir.model.primitive.BoundCodeDt" ]
import ca.uhn.fhir.model.dstu.valueset.IdentifierUseEnum; import ca.uhn.fhir.model.primitive.BoundCodeDt;
import ca.uhn.fhir.model.dstu.valueset.*; import ca.uhn.fhir.model.primitive.*;
[ "ca.uhn.fhir" ]
ca.uhn.fhir;
734,019
public Map<String, List<Chunk>> getFolderChunks(String folderID) throws IOException, RestException;
Map<String, List<Chunk>> function(String folderID) throws IOException, RestException;
/** * Get a map with all chunks for all the files in the remote folder with ID * <i>folderID</i> * * @param folderID * ID of the folder to scan * @return Map with < File hash, List of Chunks > * @throws IOException * @throws RestException */
Get a map with all chunks for all the files in the remote folder with ID folderID
getFolderChunks
{ "repo_name": "dagix5/backbox", "path": "BackBox/src/it/backbox/IBoxManager.java", "license": "apache-2.0", "size": 5120 }
[ "it.backbox.bean.Chunk", "it.backbox.exception.RestException", "java.io.IOException", "java.util.List", "java.util.Map" ]
import it.backbox.bean.Chunk; import it.backbox.exception.RestException; import java.io.IOException; import java.util.List; import java.util.Map;
import it.backbox.bean.*; import it.backbox.exception.*; import java.io.*; import java.util.*;
[ "it.backbox.bean", "it.backbox.exception", "java.io", "java.util" ]
it.backbox.bean; it.backbox.exception; java.io; java.util;
2,474,001
@Nullable public SchedulingGroup post(@Nonnull final SchedulingGroup newSchedulingGroup) throws ClientException { return send(HttpMethod.POST, newSchedulingGroup); }
SchedulingGroup function(@Nonnull final SchedulingGroup newSchedulingGroup) throws ClientException { return send(HttpMethod.POST, newSchedulingGroup); }
/** * Creates a SchedulingGroup with a new object * * @param newSchedulingGroup the new object to create * @return the created SchedulingGroup * @throws ClientException this exception occurs if the request was unable to complete for any reason */
Creates a SchedulingGroup with a new object
post
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/SchedulingGroupRequest.java", "license": "mit", "size": 5937 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.SchedulingGroup", "javax.annotation.Nonnull" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.SchedulingGroup; import javax.annotation.Nonnull;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
2,743,342
public void testValidObjectCheck() { Object collaboration = Model.getCollaborationsFactory().createCollaboration(); Object interaction = Model.getCollaborationsFactory().buildInteraction(collaboration); try { new MessageNotationUml(interaction); ...
void function() { Object collaboration = Model.getCollaborationsFactory().createCollaboration(); Object interaction = Model.getCollaborationsFactory().buildInteraction(collaboration); try { new MessageNotationUml(interaction); fail(STR); } catch (IllegalArgumentException e) { } }
/** * Test if the notationProvider refuses to instantiate * without showing it the right UML element. */
Test if the notationProvider refuses to instantiate without showing it the right UML element
testValidObjectCheck
{ "repo_name": "ckaestne/LEADT", "path": "workspace/argouml_critics/argouml-app/tests/org/argouml/notation/providers/uml/TestMessageNotationUml.java", "license": "gpl-3.0", "size": 26777 }
[ "org.argouml.model.Model" ]
import org.argouml.model.Model;
import org.argouml.model.*;
[ "org.argouml.model" ]
org.argouml.model;
1,256,936
public void stop() throws DBusException, InterruptedException { if(adapterPath == null) { return; } GattManager1 gattManager = (GattManager1) dbusConnection.getRemoteObject(BLUEZ_DBUS_BUSNAME, adapterPath, GattManager1.class); LEAdvertisingManager1 advManager = (LEAdvertisingManager1) dbusConnection.getRemoteO...
void function() throws DBusException, InterruptedException { if(adapterPath == null) { return; } GattManager1 gattManager = (GattManager1) dbusConnection.getRemoteObject(BLUEZ_DBUS_BUSNAME, adapterPath, GattManager1.class); LEAdvertisingManager1 advManager = (LEAdvertisingManager1) dbusConnection.getRemoteObject(BLUEZ_...
/** * Stop the advertisement and unpublish the service. * @throws DBusException * @throws InterruptedException */
Stop the advertisement and unpublish the service
stop
{ "repo_name": "tongo/ble-java", "path": "src/main/java/it/tangodev/ble/BleApplication.java", "license": "mit", "size": 9590 }
[ "org.bluez.GattManager1", "org.bluez.LEAdvertisingManager1", "org.dbus.InterfacesAddedSignal", "org.dbus.InterfacesRomovedSignal", "org.freedesktop.dbus.exceptions.DBusException" ]
import org.bluez.GattManager1; import org.bluez.LEAdvertisingManager1; import org.dbus.InterfacesAddedSignal; import org.dbus.InterfacesRomovedSignal; import org.freedesktop.dbus.exceptions.DBusException;
import org.bluez.*; import org.dbus.*; import org.freedesktop.dbus.exceptions.*;
[ "org.bluez", "org.dbus", "org.freedesktop.dbus" ]
org.bluez; org.dbus; org.freedesktop.dbus;
1,723,948
@Nonnull public static <T> Observable<T> timeout( @Nonnull final Observable<? extends T> source, final long time, @Nonnull final TimeUnit unit) { return timeout(source, time, unit, scheduler()); }
static <T> Observable<T> function( @Nonnull final Observable<? extends T> source, final long time, @Nonnull final TimeUnit unit) { return timeout(source, time, unit, scheduler()); }
/** * Creates an observable which relays events if they arrive * from the source observable within the specified amount of time * or it singlals a java.util.concurrent.TimeoutException. * @param <T> the element type to observe * @param source the source observable * @param time the maximum...
Creates an observable which relays events if they arrive from the source observable within the specified amount of time or it singlals a java.util.concurrent.TimeoutException
timeout
{ "repo_name": "akarnokd/reactive4java", "path": "src/main/java/hu/akarnokd/reactive4java/reactive/Reactive.java", "license": "apache-2.0", "size": 367224 }
[ "hu.akarnokd.reactive4java.base.Observable", "java.util.concurrent.TimeUnit", "javax.annotation.Nonnull" ]
import hu.akarnokd.reactive4java.base.Observable; import java.util.concurrent.TimeUnit; import javax.annotation.Nonnull;
import hu.akarnokd.reactive4java.base.*; import java.util.concurrent.*; import javax.annotation.*;
[ "hu.akarnokd.reactive4java", "java.util", "javax.annotation" ]
hu.akarnokd.reactive4java; java.util; javax.annotation;
1,803,530
IndexShardState state();
IndexShardState state();
/** * Returns the latest internal shard state. */
Returns the latest internal shard state
state
{ "repo_name": "nezirus/elasticsearch", "path": "core/src/main/java/org/elasticsearch/indices/cluster/IndicesClusterStateService.java", "license": "apache-2.0", "size": 45344 }
[ "org.elasticsearch.index.shard.IndexShardState" ]
import org.elasticsearch.index.shard.IndexShardState;
import org.elasticsearch.index.shard.*;
[ "org.elasticsearch.index" ]
org.elasticsearch.index;
2,219,328
public static Object getValue(int docId, @Nonnull FieldSpec fieldSpec, @Nonnull DataFileReader forwardIndex, @Nullable Dictionary dictionary, int maxNumMultiValues) { if (dictionary != null) { // Dictionary based if (fieldSpec.isSingleValueField()) { int dictId = ((SingleColumnSingleValu...
static Object function(int docId, @Nonnull FieldSpec fieldSpec, @Nonnull DataFileReader forwardIndex, @Nullable Dictionary dictionary, int maxNumMultiValues) { if (dictionary != null) { if (fieldSpec.isSingleValueField()) { int dictId = ((SingleColumnSingleValueReader) forwardIndex).getInt(docId); return dictionary.get...
/** * Returns the value for the given document Id. * * @param docId Document Id * @param fieldSpec Field spec for the column * @param forwardIndex Forward index * @param dictionary Dictionary (apply to column with dictionary) * @param maxNumMultiValues Max number of multi-values for the column (app...
Returns the value for the given document Id
getValue
{ "repo_name": "apucher/pinot", "path": "pinot-core/src/main/java/com/linkedin/pinot/core/indexsegment/IndexSegmentUtils.java", "license": "apache-2.0", "size": 2948 }
[ "com.linkedin.pinot.common.data.FieldSpec", "com.linkedin.pinot.core.io.reader.DataFileReader", "com.linkedin.pinot.core.io.reader.SingleColumnMultiValueReader", "com.linkedin.pinot.core.io.reader.SingleColumnSingleValueReader", "com.linkedin.pinot.core.segment.index.readers.Dictionary", "javax.annotation...
import com.linkedin.pinot.common.data.FieldSpec; import com.linkedin.pinot.core.io.reader.DataFileReader; import com.linkedin.pinot.core.io.reader.SingleColumnMultiValueReader; import com.linkedin.pinot.core.io.reader.SingleColumnSingleValueReader; import com.linkedin.pinot.core.segment.index.readers.Dictionary; import...
import com.linkedin.pinot.common.data.*; import com.linkedin.pinot.core.io.reader.*; import com.linkedin.pinot.core.segment.index.readers.*; import javax.annotation.*;
[ "com.linkedin.pinot", "javax.annotation" ]
com.linkedin.pinot; javax.annotation;
821,040
protected void _format(SarlBehavior behavior, IFormattableDocument document) { formatAnnotations(behavior, document, XbaseFormatterPreferenceKeys.newLineAfterClassAnnotations); formatModifiers(behavior, document); final ISemanticRegionsFinder regionFor = this.textRegionExtensions.regionFor(behavior); docume...
void function(SarlBehavior behavior, IFormattableDocument document) { formatAnnotations(behavior, document, XbaseFormatterPreferenceKeys.newLineAfterClassAnnotations); formatModifiers(behavior, document); final ISemanticRegionsFinder regionFor = this.textRegionExtensions.regionFor(behavior); document.append(regionFor.k...
/** Format the given SARL behavior. * * @param behavior the SARL component. * @param document the document. */
Format the given SARL behavior
_format
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang/src/io/sarl/lang/formatting2/SARLFormatter.java", "license": "apache-2.0", "size": 28278 }
[ "io.sarl.lang.sarl.SarlBehavior", "org.eclipse.xtext.formatting2.IFormattableDocument", "org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder", "org.eclipse.xtext.xbase.formatting2.XbaseFormatterPreferenceKeys" ]
import io.sarl.lang.sarl.SarlBehavior; import org.eclipse.xtext.formatting2.IFormattableDocument; import org.eclipse.xtext.formatting2.regionaccess.ISemanticRegionsFinder; import org.eclipse.xtext.xbase.formatting2.XbaseFormatterPreferenceKeys;
import io.sarl.lang.sarl.*; import org.eclipse.xtext.formatting2.*; import org.eclipse.xtext.formatting2.regionaccess.*; import org.eclipse.xtext.xbase.formatting2.*;
[ "io.sarl.lang", "org.eclipse.xtext" ]
io.sarl.lang; org.eclipse.xtext;
1,126,698
ClassificationHistoryQuery customAttributeLike( ClassificationCustomField customField, String... searchArguments);
ClassificationHistoryQuery customAttributeLike( ClassificationCustomField customField, String... searchArguments);
/** * Add the values of custom attributes for pattern matching to your query. They will be compared * in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you * specify multiple arguments they are combined with the OR keyword. * * @param customField identifies which cus...
Add the values of custom attributes for pattern matching to your query. They will be compared in SQL with the LIKE operator. You may use a wildcard like % to specify the pattern. If you specify multiple arguments they are combined with the OR keyword
customAttributeLike
{ "repo_name": "Taskana/taskana", "path": "history/taskana-simplehistory-provider/src/main/java/pro/taskana/simplehistory/impl/classification/ClassificationHistoryQuery.java", "license": "apache-2.0", "size": 13108 }
[ "pro.taskana.classification.api.ClassificationCustomField" ]
import pro.taskana.classification.api.ClassificationCustomField;
import pro.taskana.classification.api.*;
[ "pro.taskana.classification" ]
pro.taskana.classification;
2,371,533
private void onTrackPointElementStart(Attributes attributes) throws SAXException { String latitude = attributes.getValue(ATT_LAT); String longitude = attributes.getValue(ATT_LON); if (latitude == null || longitude == null) { throw new SAXException( createErrorMessage("Point with no longitude or lat...
void function(Attributes attributes) throws SAXException { String latitude = attributes.getValue(ATT_LAT); String longitude = attributes.getValue(ATT_LON); if (latitude == null longitude == null) { throw new SAXException( createErrorMessage(STR)); } try { latitudeValue = Double.parseDouble(latitude); longitudeValue = D...
/** * On track point element start. * * @param attributes * the attributes */
On track point element start
onTrackPointElementStart
{ "repo_name": "redfish64/TinyTravelTracker", "path": "app/src/main/java/com/rareventure/gps2/gpx/GpxReader.java", "license": "gpl-3.0", "size": 10248 }
[ "org.xml.sax.Attributes", "org.xml.sax.SAXException" ]
import org.xml.sax.Attributes; import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
1,794,334
public void setLeftComponent(JComponent c) { if (c == null) throw new IllegalArgumentException("No component to set."); add(c, "0, 0"); }
void function(JComponent c) { if (c == null) throw new IllegalArgumentException(STR); add(c, STR); }
/** * Sets the left component. * * @param c The component to add. Mustn't be <code>null</code>. */
Sets the left component
setLeftComponent
{ "repo_name": "knabar/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/imviewer/util/SplitPanel.java", "license": "gpl-2.0", "size": 4377 }
[ "javax.swing.JComponent" ]
import javax.swing.JComponent;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,501,071
@Test public void testMaxParallelismWithConnectedKeyedStream() { int maxParallelism = 42; StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); DataStream<Integer> input1 = env.fromElements(1, 2, 3, 4).setMaxParallelism(128); DataStream<Integer> input2 = env.fromElements(1,...
void function() { int maxParallelism = 42; StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(); DataStream<Integer> input1 = env.fromElements(1, 2, 3, 4).setMaxParallelism(128); DataStream<Integer> input2 = env.fromElements(1, 2, 3, 4).setMaxParallelism(129); env.setParallelism(12); en...
/** * Tests that the max parallelism is properly set for connected * streams. */
Tests that the max parallelism is properly set for connected streams
testMaxParallelismWithConnectedKeyedStream
{ "repo_name": "DieBauer/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/api/graph/StreamGraphGeneratorTest.java", "license": "apache-2.0", "size": 18680 }
[ "org.apache.flink.api.java.functions.KeySelector", "org.apache.flink.streaming.api.datastream.DataStream", "org.apache.flink.streaming.api.environment.StreamExecutionEnvironment" ]
import org.apache.flink.api.java.functions.KeySelector; import org.apache.flink.streaming.api.datastream.DataStream; import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.api.java.functions.*; import org.apache.flink.streaming.api.datastream.*; import org.apache.flink.streaming.api.environment.*;
[ "org.apache.flink" ]
org.apache.flink;
545,107
public static void writeUuids(DataOutput out, @Nullable Collection<UUID> col) throws IOException { if (col != null) { out.writeInt(col.size()); for (UUID id : col) writeUuid(out, id); } else out.writeInt(-1); }
static void function(DataOutput out, @Nullable Collection<UUID> col) throws IOException { if (col != null) { out.writeInt(col.size()); for (UUID id : col) writeUuid(out, id); } else out.writeInt(-1); }
/** * Writes UUIDs to output stream. This method is meant to be used by * implementations of {@link Externalizable} interface. * * @param out Output stream. * @param col UUIDs to write. * @throws IOException If write failed. */
Writes UUIDs to output stream. This method is meant to be used by implementations of <code>Externalizable</code> interface
writeUuids
{ "repo_name": "pperalta/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 314980 }
[ "java.io.DataOutput", "java.io.IOException", "java.util.Collection", "org.jetbrains.annotations.Nullable" ]
import java.io.DataOutput; import java.io.IOException; import java.util.Collection; import org.jetbrains.annotations.Nullable;
import java.io.*; import java.util.*; import org.jetbrains.annotations.*;
[ "java.io", "java.util", "org.jetbrains.annotations" ]
java.io; java.util; org.jetbrains.annotations;
1,151,800
public static List<Baz> findByUuid_C(String uuid, long companyId) { return getPersistence().findByUuid_C(uuid, companyId); }
static List<Baz> function(String uuid, long companyId) { return getPersistence().findByUuid_C(uuid, companyId); }
/** * Returns all the bazs where uuid = &#63; and companyId = &#63;. * * @param uuid the uuid * @param companyId the company ID * @return the matching bazs */
Returns all the bazs where uuid = &#63; and companyId = &#63;
findByUuid_C
{ "repo_name": "gamerson/liferay-blade-samples", "path": "maven/apps/workflow/basic/basic-api/src/main/java/com/liferay/blade/workflow/basic/service/persistence/BazUtil.java", "license": "apache-2.0", "size": 30245 }
[ "com.liferay.blade.workflow.basic.model.Baz", "java.util.List" ]
import com.liferay.blade.workflow.basic.model.Baz; import java.util.List;
import com.liferay.blade.workflow.basic.model.*; import java.util.*;
[ "com.liferay.blade", "java.util" ]
com.liferay.blade; java.util;
1,930,199
public SortedSet<String> wordsStartingWith(String prefix) { return this.words.subSet(prefix, prefix + Character.MAX_VALUE); }
SortedSet<String> function(String prefix) { return this.words.subSet(prefix, prefix + Character.MAX_VALUE); }
/** * Returns a new sorted set of all of the words that are in the dictionary * beginning with the specified prefix. The case of the prefix is not important; * <code>wordsStartingWith("a")</code> returns the same result as * <code>wordsStartingWith("A")</code>. * * @param prefix * a string tha...
Returns a new sorted set of all of the words that are in the dictionary beginning with the specified prefix. The case of the prefix is not important; <code>wordsStartingWith("a")</code> returns the same result as <code>wordsStartingWith("A")</code>
wordsStartingWith
{ "repo_name": "SanjayP9/eecs-2030", "path": "Lab4/src/eecs2030/lab4/Dictionary.java", "license": "mit", "size": 2440 }
[ "java.util.SortedSet" ]
import java.util.SortedSet;
import java.util.*;
[ "java.util" ]
java.util;
1,843,919
public static Future<?> updateFeedDownloadURLs(final Map<String, String> urls) { return dbExec.submit(() -> { PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); for (String key : urls.keySet()) { if (BuildConfig.DEBUG) L...
static Future<?> function(final Map<String, String> urls) { return dbExec.submit(() -> { PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); for (String key : urls.keySet()) { if (BuildConfig.DEBUG) Log.d(TAG, STR + key + STR + urls.get(key)); adapter.setFeedDownloadUrl(key, urls.get(key)); } adapter.clo...
/** * Updates download URLs of feeds from a given Map. The key of the Map is the original URL of the feed * and the value is the updated URL */
Updates download URLs of feeds from a given Map. The key of the Map is the original URL of the feed and the value is the updated URL
updateFeedDownloadURLs
{ "repo_name": "TomHennen/AntennaPod", "path": "core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java", "license": "mit", "size": 42715 }
[ "android.util.Log", "de.danoeh.antennapod.core.BuildConfig", "java.util.Map", "java.util.concurrent.Future" ]
import android.util.Log; import de.danoeh.antennapod.core.BuildConfig; import java.util.Map; import java.util.concurrent.Future;
import android.util.*; import de.danoeh.antennapod.core.*; import java.util.*; import java.util.concurrent.*;
[ "android.util", "de.danoeh.antennapod", "java.util" ]
android.util; de.danoeh.antennapod; java.util;
1,775,943
protected void addItemView(View itemView, int childIndex) { final ViewGroup currentParent = (ViewGroup) itemView.getParent(); if (currentParent != null) { currentParent.removeView(itemView); } ((ViewGroup) mMenuView).addView(itemView, childIndex); }
void function(View itemView, int childIndex) { final ViewGroup currentParent = (ViewGroup) itemView.getParent(); if (currentParent != null) { currentParent.removeView(itemView); } ((ViewGroup) mMenuView).addView(itemView, childIndex); }
/** * Add an item view at the given index. * * @param itemView View to add * @param childIndex Index within the parent to insert at */
Add an item view at the given index
addItemView
{ "repo_name": "yesterdaylike/DailyLady", "path": "src/com/yesterday/like/ActionBar/internal/view/menu/BaseMenuPresenter.java", "license": "apache-2.0", "size": 7734 }
[ "android.view.View", "android.view.ViewGroup" ]
import android.view.View; import android.view.ViewGroup;
import android.view.*;
[ "android.view" ]
android.view;
2,369,288
public GameObject[] getObjects() { List<GameObject> actualObjects = new ArrayList(); for (int c = 0; c < objects.size(); c++) { boolean add = true; for(int index: spriteIndexes){ if (c == index) { add = false; } ...
GameObject[] function() { List<GameObject> actualObjects = new ArrayList(); for (int c = 0; c < objects.size(); c++) { boolean add = true; for(int index: spriteIndexes){ if (c == index) { add = false; } } if (add) { actualObjects.add(objects.get(c)); } } GameObject[] ret = new GameObject[actualObjects.size()]; for(int ...
/** * Get an array of all the GameObjects in the layer. * @return A GameObject[] containing all of the GameObjects in the layer. */
Get an array of all the GameObjects in the layer
getObjects
{ "repo_name": "YellowLineSoftworks/VIPER-Engine", "path": "src/game/Layer.java", "license": "bsd-3-clause", "size": 16158 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,599,152
@SuppressWarnings("unchecked") public Type attribute(QName name, Object value) { if (otherAttributes == null) { otherAttributes = new HashMap<QName, Object>(); } otherAttributes.put(name, value); return (Type) this; }
@SuppressWarnings(STR) Type function(QName name, Object value) { if (otherAttributes == null) { otherAttributes = new HashMap<QName, Object>(); } otherAttributes.put(name, value); return (Type) this; }
/** * Adds an optional attribute * * @param name the name of the attribute * @param value the value * @return the builder */
Adds an optional attribute
attribute
{ "repo_name": "dsimansk/camel", "path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java", "license": "apache-2.0", "size": 153469 }
[ "java.util.HashMap", "javax.xml.namespace.QName" ]
import java.util.HashMap; import javax.xml.namespace.QName;
import java.util.*; import javax.xml.namespace.*;
[ "java.util", "javax.xml" ]
java.util; javax.xml;
2,276,164
public String startGateway() { UriReplacer uriReplacer = new UriReplacer(config.getGatewayConfig().uri); String nodeName = uriReplacer.getHostId(); Node node = getNamedNode(nodeName); try { gatewayUri = node.startGateway(uriReplacer); return gatewayUri; } catch (IOException e) { e.printStackTrace(...
String function() { UriReplacer uriReplacer = new UriReplacer(config.getGatewayConfig().uri); String nodeName = uriReplacer.getHostId(); Node node = getNamedNode(nodeName); try { gatewayUri = node.startGateway(uriReplacer); return gatewayUri; } catch (IOException e) { e.printStackTrace(); } return null; }
/** * Starts Gateway on the configured host * @return returns the gatewayUri */
Starts Gateway on the configured host
startGateway
{ "repo_name": "whummer/WS-Aggregation", "path": "code/wsaggr-testbed/src/main/java/at/ac/tuwien/infosys/aggr/testbed/RoundRobin.java", "license": "apache-2.0", "size": 7717 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,656,935
public Date getDateOfConstruction() { return dateOfConstruction; }
Date function() { return dateOfConstruction; }
/** * date on which the house construction started */
date on which the house construction started
getDateOfConstruction
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "foundation/eclipselink.core.test/src/org/eclipse/persistence/testing/models/insurance/HousePolicy.java", "license": "epl-1.0", "size": 3187 }
[ "java.sql.Date" ]
import java.sql.Date;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,324,966
public void testIndexedSetter() throws Exception { Bean bean = new Bean("hello"); Statement s = new Statement(bean, "setChar", new Object[] { new Integer(1), new Character('a') }); s.execute(); assertEquals("hallo", bean.getText()); }
void function() throws Exception { Bean bean = new Bean("hello"); Statement s = new Statement(bean, STR, new Object[] { new Integer(1), new Character('a') }); s.execute(); assertEquals("hallo", bean.getText()); }
/** * The test checks the method execute() for indexed setter */
The test checks the method execute() for indexed setter
testIndexedSetter
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/java6/modules/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/StatementTest.java", "license": "apache-2.0", "size": 33575 }
[ "java.beans.Statement" ]
import java.beans.Statement;
import java.beans.*;
[ "java.beans" ]
java.beans;
1,278,619
public Class<?> getClassForName(String className) { if (StringUtils.isBlank(className)) { return null; } for (Class<?> c : allClasses) { if (c.getName().equals(className)) { return c; } } return null; }
Class<?> function(String className) { if (StringUtils.isBlank(className)) { return null; } for (Class<?> c : allClasses) { if (c.getName().equals(className)) { return c; } } return null; }
/** * Retrieves a class from the GrailsApplication for the given name. * * @param className The class name * @return Either the Class instance or null if it doesn't exist */
Retrieves a class from the GrailsApplication for the given name
getClassForName
{ "repo_name": "jeffbrown/grailsnolib", "path": "grails-core/src/main/groovy/org/codehaus/groovy/grails/commons/DefaultGrailsApplication.java", "license": "apache-2.0", "size": 36241 }
[ "org.apache.commons.lang.StringUtils" ]
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
2,750,959
@Test public void testSelectorDefault() throws Exception { ImmutableMap<String, String> input = ImmutableMap.of( "//conditions:a", "//a:a", "//conditions:b", "//b:b", BuildType.Selector.DEFAULT_CONDITION_KEY, "//d:d"); assertEquals( Label.create("@//d", "d"), new Sele...
void function() throws Exception { ImmutableMap<String, String> input = ImmutableMap.of( " " BuildType.Selector.DEFAULT_CONDITION_KEY, STR@ new Selector<>(input, null, currentRule, BuildType.LABEL).getDefault()); }
/** * Tests that {@link Selector} correctly references its default value. */
Tests that <code>Selector</code> correctly references its default value
testSelectorDefault
{ "repo_name": "Asana/bazel", "path": "src/test/java/com/google/devtools/build/lib/packages/BuildTypeTest.java", "license": "apache-2.0", "size": 24769 }
[ "com.google.common.collect.ImmutableMap", "com.google.devtools.build.lib.packages.BuildType" ]
import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.packages.BuildType;
import com.google.common.collect.*; import com.google.devtools.build.lib.packages.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
332,372
protected PropertyState checkProperty(String propertyId) throws XMLConfigurationException { // // Xerces Properties // if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) { final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length()...
PropertyState function(String propertyId) throws XMLConfigurationException { if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) { final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length(); if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() && propertyId.endsWith(Constan...
/** * Check a property. If the property is know and supported, this method * simply returns. Otherwise, the appropriate exception is thrown. * * @param propertyId The unique identifier (URI) of the property * being set. * * @throws XMLConfigurationException Thrown fo...
Check a property. If the property is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown
checkProperty
{ "repo_name": "shun634501730/java_source_cn", "path": "src_en/com/sun/org/apache/xerces/internal/parsers/XML11NonValidatingConfiguration.java", "license": "apache-2.0", "size": 48061 }
[ "com.sun.org.apache.xerces.internal.impl.Constants", "com.sun.org.apache.xerces.internal.util.PropertyState", "com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException" ]
import com.sun.org.apache.xerces.internal.impl.Constants; import com.sun.org.apache.xerces.internal.util.PropertyState; import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException;
import com.sun.org.apache.xerces.internal.impl.*; import com.sun.org.apache.xerces.internal.util.*; import com.sun.org.apache.xerces.internal.xni.parser.*;
[ "com.sun.org" ]
com.sun.org;
1,584,415
public static <K, V, W extends BoundedWindow> PCollectionView<Map<K, Iterable<V>>> multimapView( PCollection<KV<Void, KV<K, V>>> pCollection, WindowingStrategy<?, W> windowingStrategy) { return new SimplePCollectionView<>( pCollection, new MultimapViewFn<K, V>(), windowingStrat...
static <K, V, W extends BoundedWindow> PCollectionView<Map<K, Iterable<V>>> function( PCollection<KV<Void, KV<K, V>>> pCollection, WindowingStrategy<?, W> windowingStrategy) { return new SimplePCollectionView<>( pCollection, new MultimapViewFn<K, V>(), windowingStrategy.getWindowFn().getDefaultWindowMappingFn(), window...
/** * Returns a {@code PCollectionView<Map<K, Iterable<V>>>} capable of processing elements windowed * using the provided {@link WindowingStrategy}. */
Returns a PCollectionView>> capable of processing elements windowed using the provided <code>WindowingStrategy</code>
multimapView
{ "repo_name": "tgroh/incubator-beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/values/PCollectionViews.java", "license": "apache-2.0", "size": 16111 }
[ "java.util.Map", "org.apache.beam.sdk.transforms.windowing.BoundedWindow" ]
import java.util.Map; import org.apache.beam.sdk.transforms.windowing.BoundedWindow;
import java.util.*; import org.apache.beam.sdk.transforms.windowing.*;
[ "java.util", "org.apache.beam" ]
java.util; org.apache.beam;
1,953,069
public XmlProtoAttributeBuilder getOrCreateAndroidAttribute(String name, int resourceId) { return getOrCreateAttributeInternal( attr -> attr.getName().equals(name) && attr.getNamespaceUri().equals(ANDROID_NAMESPACE_URI) && attr.getResourceId() == resourceId, ...
XmlProtoAttributeBuilder function(String name, int resourceId) { return getOrCreateAttributeInternal( attr -> attr.getName().equals(name) && attr.getNamespaceUri().equals(ANDROID_NAMESPACE_URI) && attr.getResourceId() == resourceId, () -> XmlAttribute.newBuilder() .setName(name) .setNamespaceUri(ANDROID_NAMESPACE_URI) ...
/** * Returns the Android attribute with the given name and resource ID, or create it if not found. */
Returns the Android attribute with the given name and resource ID, or create it if not found
getOrCreateAndroidAttribute
{ "repo_name": "google/bundletool", "path": "src/main/java/com/android/tools/build/bundletool/model/utils/xmlproto/XmlProtoElementBuilder.java", "license": "apache-2.0", "size": 9013 }
[ "com.android.aapt.Resources" ]
import com.android.aapt.Resources;
import com.android.aapt.*;
[ "com.android.aapt" ]
com.android.aapt;
738,635
private boolean check() { if (model != null && model.getInputConfig() != null && model.getSelectedAttribute() != null) { if (model.getInputConfig().getHierarchyBuilder(model.getSelectedAttribute()) != null) { return controller.actionShowQuestionDialog(Resources.getMessage("Hie...
boolean function() { if (model != null && model.getInputConfig() != null && model.getSelectedAttribute() != null) { if (model.getInputConfig().getHierarchyBuilder(model.getSelectedAttribute()) != null) { return controller.actionShowQuestionDialog(Resources.getMessage(STR), Resources.getMessage(STR)); } else { return tr...
/** * Checks and asks users whether functional hierarchies should be removed * @return */
Checks and asks users whether functional hierarchies should be removed
check
{ "repo_name": "bitraten/arx", "path": "src/gui/org/deidentifier/arx/gui/view/impl/common/ComponentHierarchyMenu.java", "license": "apache-2.0", "size": 11765 }
[ "org.deidentifier.arx.gui.resources.Resources" ]
import org.deidentifier.arx.gui.resources.Resources;
import org.deidentifier.arx.gui.resources.*;
[ "org.deidentifier.arx" ]
org.deidentifier.arx;
1,471,332
@Override public void analyzeTree(JCTree tree, TreeMaker make) { // Do not do anything here for now. F3 doesn't need assignment/unassignment, reachability and checked exceptions analysis }
void function(JCTree tree, TreeMaker make) { }
/** Perform definite assignment/unassignment analysis on a tree. */
Perform definite assignment/unassignment analysis on a tree
analyzeTree
{ "repo_name": "unktomi/form-follows-function", "path": "src/share/classes/org/f3/tools/comp/F3Flow.java", "license": "gpl-2.0", "size": 2194 }
[ "com.sun.tools.mjavac.tree.JCTree", "com.sun.tools.mjavac.tree.TreeMaker" ]
import com.sun.tools.mjavac.tree.JCTree; import com.sun.tools.mjavac.tree.TreeMaker;
import com.sun.tools.mjavac.tree.*;
[ "com.sun.tools" ]
com.sun.tools;
2,889,224
public ServiceSubscription<PlayStateListener> subscribePlayState(PlayStateListener listener); public static interface PlayStateListener extends ResponseListener<PlayStateStatus> { } public static interface PositionListener extends ResponseListener<Long> { } public static interface Dura...
ServiceSubscription<PlayStateListener> function(PlayStateListener listener); public static interface PlayStateListener extends ResponseListener<PlayStateStatus> { } public static interface PositionListener extends ResponseListener<Long> { } public static interface DurationListener extends ResponseListener<Long> { }
/** * Subscribe for playback state changes * @param listener receives play state notifications * @return ServiceSubscription<PlayStateListener> */
Subscribe for playback state changes
subscribePlayState
{ "repo_name": "ConnectSDK/Connect-SDK-Android-Core", "path": "src/com/connectsdk/service/capability/MediaControl.java", "license": "apache-2.0", "size": 7976 }
[ "com.connectsdk.service.capability.listeners.ResponseListener", "com.connectsdk.service.command.ServiceSubscription" ]
import com.connectsdk.service.capability.listeners.ResponseListener; import com.connectsdk.service.command.ServiceSubscription;
import com.connectsdk.service.capability.listeners.*; import com.connectsdk.service.command.*;
[ "com.connectsdk.service" ]
com.connectsdk.service;
1,408,708
public void removeUser() throws Exception { XulConfirmBox confirmBox = (XulConfirmBox) document.createElement( "confirmbox" ); confirmBox.setTitle( BaseMessages.getString( PKG, "ConfirmDialog.Title" ) ); confirmBox.setMessage( BaseMessages.getString( PKG, "RemoveUserConfirmDialog.Message" ) ); confirm...
void function() throws Exception { XulConfirmBox confirmBox = (XulConfirmBox) document.createElement( STR ); confirmBox.setTitle( BaseMessages.getString( PKG, STR ) ); confirmBox.setMessage( BaseMessages.getString( PKG, STR ) ); confirmBox.setAcceptLabel( BaseMessages.getString( PKG, STR ) ); confirmBox.setCancelLabel(...
/** * removeUser method is called when user has click on a remove button in a user deck. It first displays a confirmation * message to the user and once the user selects ok, it remove the user * * @throws Exception */
removeUser method is called when user has click on a remove button in a user deck. It first displays a confirmation message to the user and once the user selects ok, it remove the user
removeUser
{ "repo_name": "yshakhau/pentaho-kettle", "path": "ui/src/org/pentaho/di/ui/repository/repositoryexplorer/controllers/SecurityController.java", "license": "apache-2.0", "size": 14480 }
[ "org.pentaho.di.i18n.BaseMessages", "org.pentaho.ui.xul.components.XulConfirmBox", "org.pentaho.ui.xul.util.XulDialogCallback" ]
import org.pentaho.di.i18n.BaseMessages; import org.pentaho.ui.xul.components.XulConfirmBox; import org.pentaho.ui.xul.util.XulDialogCallback;
import org.pentaho.di.i18n.*; import org.pentaho.ui.xul.components.*; import org.pentaho.ui.xul.util.*;
[ "org.pentaho.di", "org.pentaho.ui" ]
org.pentaho.di; org.pentaho.ui;
2,868,870
void forEachOrdered(DoubleConsumer action);
void forEachOrdered(DoubleConsumer action);
/** * Performs an action for each element of this stream, guaranteeing that * each element is processed in encounter order for streams that have a * defined encounter order. * * <p>This is a <a href="package-summary.html#StreamOps">terminal * operation</a>. * * @param action a <a...
Performs an action for each element of this stream, guaranteeing that each element is processed in encounter order for streams that have a defined encounter order. This is a terminal operation
forEachOrdered
{ "repo_name": "evanman/Java-Source", "path": "util/stream/DoubleStream.java", "license": "lgpl-2.1", "size": 36818 }
[ "java.util.function.DoubleConsumer" ]
import java.util.function.DoubleConsumer;
import java.util.function.*;
[ "java.util" ]
java.util;
1,413,819
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(SingleOperationRefType.class)) { case GmlPackage.SINGLE_OPERATION_REF_TYPE__ACTUATE: case GmlPackage.SINGLE_OPERATION_REF_TYPE__ARCROLE: case GmlPackage.SINGLE_OPERATION_REF...
void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(SingleOperationRefType.class)) { case GmlPackage.SINGLE_OPERATION_REF_TYPE__ACTUATE: case GmlPackage.SINGLE_OPERATION_REF_TYPE__ARCROLE: case GmlPackage.SINGLE_OPERATION_REF_TYPE__HREF: case GmlPackage.SINGLE_OPER...
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/SingleOperationRefTypeItemProvider.java", "license": "apache-2.0", "size": 12926 }
[ "net.opengis.gml.GmlPackage", "net.opengis.gml.SingleOperationRefType", "org.eclipse.emf.common.notify.Notification", "org.eclipse.emf.edit.provider.ViewerNotification" ]
import net.opengis.gml.GmlPackage; import net.opengis.gml.SingleOperationRefType; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ViewerNotification;
import net.opengis.gml.*; import org.eclipse.emf.common.notify.*; import org.eclipse.emf.edit.provider.*;
[ "net.opengis.gml", "org.eclipse.emf" ]
net.opengis.gml; org.eclipse.emf;
398,485
@Nonnull ProcessGroupDTO create(@Nonnull String parentProcessGroupId, @Nonnull String name);
ProcessGroupDTO create(@Nonnull String parentProcessGroupId, @Nonnull String name);
/** * Creates a process group. * * @param parentProcessGroupId the parent process group id * @param name the name for the new process group * @return the new process group * @throws NifiComponentNotFoundException if the parent process group does not exist */
Creates a process group
create
{ "repo_name": "claudiu-stanciu/kylo", "path": "integrations/nifi/nifi-rest/nifi-rest-client/nifi-rest-client-api/src/main/java/com/thinkbiganalytics/nifi/rest/client/NiFiProcessGroupsRestClient.java", "license": "apache-2.0", "size": 9155 }
[ "javax.annotation.Nonnull", "org.apache.nifi.web.api.dto.ProcessGroupDTO" ]
import javax.annotation.Nonnull; import org.apache.nifi.web.api.dto.ProcessGroupDTO;
import javax.annotation.*; import org.apache.nifi.web.api.dto.*;
[ "javax.annotation", "org.apache.nifi" ]
javax.annotation; org.apache.nifi;
115,680
@Test public void testRouterQuotaUpdateService() throws Exception { Router router = routerContext.getRouter(); StateStoreDriver driver = router.getStateStore().getDriver(); RouterQuotaUpdateService updateService = router.getQuotaCacheUpdateService(); RouterQuotaManager quotaManager = router....
void function() throws Exception { Router router = routerContext.getRouter(); StateStoreDriver driver = router.getStateStore().getDriver(); RouterQuotaUpdateService updateService = router.getQuotaCacheUpdateService(); RouterQuotaManager quotaManager = router.getQuotaManager(); long nsQuota = 5; long ssQuota = 3 * BLOCK...
/** * RouterQuotaUpdateService.periodicInvoke() should only update usage in * cache. The mount table in state store shouldn't be updated. */
RouterQuotaUpdateService.periodicInvoke() should only update usage in cache. The mount table in state store shouldn't be updated
testRouterQuotaUpdateService
{ "repo_name": "steveloughran/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestRouterQuota.java", "license": "apache-2.0", "size": 52724 }
[ "java.util.Collections", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.server.federation.store.driver.StateStoreDriver", "org.apache.hadoop.hdfs.server.federation.store.records.MountTable", "org.apache.hadoop.hdfs.server.federation.store.records.QueryResult", "o...
import java.util.Collections; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.server.federation.store.driver.StateStoreDriver; import org.apache.hadoop.hdfs.server.federation.store.records.MountTable; import org.apache.hadoop.hdfs.server.federation.store.records.Q...
import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.server.federation.store.driver.*; import org.apache.hadoop.hdfs.server.federation.store.records.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
115,321
View getRootView();
View getRootView();
/** * this method returns the pure View. */
this method returns the pure View
getRootView
{ "repo_name": "bblue000/AndroidSampleFramework", "path": "AndroidFramework/src/com/frameworkexample/android/activity/base/ILocalActivity.java", "license": "mit", "size": 2221 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,873,738
public final void setOrder(List<Path> l) { this.order = l; this.clearGraph(); }
final void function(List<Path> l) { this.order = l; this.clearGraph(); }
/** * Change the ordering of this combo. By default this is ordered by ancestors. * * @param l the list of tables, <code>null</code> to restore the default. */
Change the ordering of this combo. By default this is ordered by ancestors
setOrder
{ "repo_name": "mbshopM/openconcerto", "path": "OpenConcerto/src/org/openconcerto/sql/request/ComboSQLRequest.java", "license": "gpl-3.0", "size": 14650 }
[ "java.util.List", "org.openconcerto.sql.model.graph.Path" ]
import java.util.List; import org.openconcerto.sql.model.graph.Path;
import java.util.*; import org.openconcerto.sql.model.graph.*;
[ "java.util", "org.openconcerto.sql" ]
java.util; org.openconcerto.sql;
1,015,911