method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public OperationsPolicy getAllowedOperationsReport(String methodName){ return (OperationsPolicy) allowedOperationsTable.get(methodName); } // // Remote interface methods //=============================
OperationsPolicy function(String methodName){ return (OperationsPolicy) allowedOperationsTable.get(methodName); }
/** * Maps to BasicStatefulObject.getAllowedOperationsReport * * Returns a report of the allowed opperations * for one of the bean's methods. * * @param methodName The method for which to get the allowed opperations report * @return * @see BasicStatefulObject#getAllowedOperati...
Maps to BasicStatefulObject.getAllowedOperationsReport Returns a report of the allowed opperations for one of the bean's methods
getAllowedOperationsReport
{ "repo_name": "apache/openejb", "path": "itests/openejb-itests-beans/src/main/java/org/apache/openejb/test/stateful/BasicStatefulBean.java", "license": "apache-2.0", "size": 8775 }
[ "org.apache.openejb.test.object.OperationsPolicy" ]
import org.apache.openejb.test.object.OperationsPolicy;
import org.apache.openejb.test.object.*;
[ "org.apache.openejb" ]
org.apache.openejb;
2,494,569
public void readWMF(PdfTemplate template) throws IOException, DocumentException { setTemplateData(template); template.setWidth(getWidth()); template.setHeight(getHeight()); InputStream is = null; try { if (rawData == null){ is = url.openStream(); ...
void function(PdfTemplate template) throws IOException, DocumentException { setTemplateData(template); template.setWidth(getWidth()); template.setHeight(getHeight()); InputStream is = null; try { if (rawData == null){ is = url.openStream(); } else{ is = new java.io.ByteArrayInputStream(rawData); } MetaDo meta = new Met...
/** Reads the WMF into a template. * @param template the template to read to * @throws IOException on error * @throws DocumentException on error */
Reads the WMF into a template
readWMF
{ "repo_name": "bullda/DroidText", "path": "src/core/com/lowagie/text/ImgWMF.java", "license": "lgpl-3.0", "size": 6635 }
[ "com.lowagie.text.pdf.PdfTemplate", "com.lowagie.text.pdf.codec.wmf.MetaDo", "java.io.IOException", "java.io.InputStream" ]
import com.lowagie.text.pdf.PdfTemplate; import com.lowagie.text.pdf.codec.wmf.MetaDo; import java.io.IOException; import java.io.InputStream;
import com.lowagie.text.pdf.*; import com.lowagie.text.pdf.codec.wmf.*; import java.io.*;
[ "com.lowagie.text", "java.io" ]
com.lowagie.text; java.io;
1,212,724
@NotNull PsiImportStatement createImportStatement(@NotNull PsiClass aClass) throws IncorrectOperationException;
@NotNull PsiImportStatement createImportStatement(@NotNull PsiClass aClass) throws IncorrectOperationException;
/** * Creates an import statement for importing the specified class. * * @param aClass the class to create the import statement for. * @return the import statement instance. * @throws IncorrectOperationException if <code>aClass</code> is an anonymous or local class. */
Creates an import statement for importing the specified class
createImportStatement
{ "repo_name": "joewalnes/idea-community", "path": "java/openapi/src/com/intellij/psi/PsiElementFactory.java", "license": "apache-2.0", "size": 23064 }
[ "com.intellij.util.IncorrectOperationException", "org.jetbrains.annotations.NotNull" ]
import com.intellij.util.IncorrectOperationException; import org.jetbrains.annotations.NotNull;
import com.intellij.util.*; import org.jetbrains.annotations.*;
[ "com.intellij.util", "org.jetbrains.annotations" ]
com.intellij.util; org.jetbrains.annotations;
1,765,467
@Action public String direct() throws IOException { servletResponse.getWriter().print("Direct stream output"); return "none:"; } @In(scope = ScopeType.SERVLET) Map<String, String> requestParamMap; @In(scope = ScopeType.SERVLET) @Out String requestMethod; static class ReqReqOut { @Out public String...
String function() throws IOException { servletResponse.getWriter().print(STR); return "none:"; } @In(scope = ScopeType.SERVLET) Map<String, String> requestParamMap; @In(scope = ScopeType.SERVLET) String requestMethod; static class ReqReqOut { public String name; } @In(scope = ScopeType.SERVLET) String requestBody;
/** * Action mapped to '/hello.again.html' * No result. */
Action mapped to '/hello.again.html' No result
direct
{ "repo_name": "wjw465150/jodd", "path": "jodd-madvoc/src/testInt/java/jodd/madvoc/action/HelloAction.java", "license": "bsd-2-clause", "size": 4963 }
[ "java.io.IOException", "java.util.Map" ]
import java.io.IOException; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,394,204
public Emitter.Listener metadataListener() { return metadataLsnr; }
Emitter.Listener function() { return metadataLsnr; }
/** * Listener for tables. * * @return Collection of tables. */
Listener for tables
metadataListener
{ "repo_name": "nivanov/ignite", "path": "modules/web-console/web-agent/src/main/java/org/apache/ignite/console/agent/handlers/DatabaseListener.java", "license": "apache-2.0", "size": 11469 }
[ "io.socket.emitter.Emitter" ]
import io.socket.emitter.Emitter;
import io.socket.emitter.*;
[ "io.socket.emitter" ]
io.socket.emitter;
984,253
public static <E extends Comparable> TreeMultiset<E> create(Iterable<? extends E> elements) { TreeMultiset<E> multiset = create(); Iterables.addAll(multiset, elements); return multiset; } private final transient Reference<AvlNode<E>> rootReference; private final transient GeneralRange<E> range; p...
static <E extends Comparable> TreeMultiset<E> function(Iterable<? extends E> elements) { TreeMultiset<E> multiset = create(); Iterables.addAll(multiset, elements); return multiset; } private final transient Reference<AvlNode<E>> rootReference; private final transient GeneralRange<E> range; private final transient AvlNo...
/** * Creates an empty multiset containing the given initial elements, sorted according to the * elements' natural order. * * <p>This implementation is highly efficient when {@code elements} is itself a {@link Multiset}. * * <p>The type specification is {@code <E extends Comparable>}, instead of the m...
Creates an empty multiset containing the given initial elements, sorted according to the elements' natural order. This implementation is highly efficient when elements is itself a <code>Multiset</code>. The type specification is , instead of the more specific >, to support classes defined without generics
create
{ "repo_name": "user234/setyon-guava-libraries-clone", "path": "guava/src/com/google/common/collect/TreeMultiset.java", "license": "apache-2.0", "size": 30614 }
[ "java.util.Comparator" ]
import java.util.Comparator;
import java.util.*;
[ "java.util" ]
java.util;
2,479,156
private void addFields(PanelBuilder builder) { modelProtocols = new SimpleComboBoxModel<String>( < IDatabaseService > getBean("databaseService").getAvailableDatabases()) ; builder.addComboBox(modelProtocols, builder.gbcSet(1, 0, GridBagUtils.HORIZONTAL)); fieldURL = builder.add(new ...
void function(PanelBuilder builder) { modelProtocols = new SimpleComboBoxModel<String>( < IDatabaseService > getBean(STR).getAvailableDatabases()) ; builder.addComboBox(modelProtocols, builder.gbcSet(1, 0, GridBagUtils.HORIZONTAL)); fieldURL = builder.add(new JTextField(DEFAULT_COLUMNS), builder.gbcSet(1, 1)); fieldLog...
/** * Add the fields for database informations. * * @param builder The panel builder. */
Add the fields for database informations
addFields
{ "repo_name": "wichtounet/jtheque-tools-module", "path": "src/main/java/org/jtheque/collections/tools/view/impl/frame/ImportFromDBView.java", "license": "apache-2.0", "size": 6056 }
[ "javax.swing.JPasswordField", "javax.swing.JTextField", "org.jtheque.collections.tools.services.able.IDatabaseService", "org.jtheque.core.managers.view.impl.components.model.SimpleComboBoxModel", "org.jtheque.core.utils.ui.PanelBuilder", "org.jtheque.utils.ui.GridBagUtils" ]
import javax.swing.JPasswordField; import javax.swing.JTextField; import org.jtheque.collections.tools.services.able.IDatabaseService; import org.jtheque.core.managers.view.impl.components.model.SimpleComboBoxModel; import org.jtheque.core.utils.ui.PanelBuilder; import org.jtheque.utils.ui.GridBagUtils;
import javax.swing.*; import org.jtheque.collections.tools.services.able.*; import org.jtheque.core.managers.view.impl.components.model.*; import org.jtheque.core.utils.ui.*; import org.jtheque.utils.ui.*;
[ "javax.swing", "org.jtheque.collections", "org.jtheque.core", "org.jtheque.utils" ]
javax.swing; org.jtheque.collections; org.jtheque.core; org.jtheque.utils;
2,229,006
public void initLayout(Integer layout) { Log.i(TAG, "initLayout - Beginning"); setContentView(layout); mCard = (WebView) findViewById(R.id.flashcard); mButtonReviewEarly = (Button) findViewById(R.id.review_early); mEase0 = (Button) findViewById(R.id.ease1); mEase1 = (Button) findViewById(R.id.ease2); ...
void function(Integer layout) { Log.i(TAG, STR); setContentView(layout); mCard = (WebView) findViewById(R.id.flashcard); mButtonReviewEarly = (Button) findViewById(R.id.review_early); mEase0 = (Button) findViewById(R.id.ease1); mEase1 = (Button) findViewById(R.id.ease2); mEase2 = (Button) findViewById(R.id.ease3); mEas...
/** * Set the content view to the one provided and initialize accessors. */
Set the content view to the one provided and initialize accessors
initLayout
{ "repo_name": "makiaea/Anki-Android", "path": "src/com/ichi2/anki/AnkiDroid.java", "license": "gpl-3.0", "size": 42565 }
[ "android.util.Log", "android.webkit.WebView", "android.widget.Button", "android.widget.Chronometer", "android.widget.EditText", "android.widget.ToggleButton" ]
import android.util.Log; import android.webkit.WebView; import android.widget.Button; import android.widget.Chronometer; import android.widget.EditText; import android.widget.ToggleButton;
import android.util.*; import android.webkit.*; import android.widget.*;
[ "android.util", "android.webkit", "android.widget" ]
android.util; android.webkit; android.widget;
1,796,426
default <U> Seq<Tuple2<T, U>> rightOuterJoin(Seq<U> other, BiPredicate<? super T, ? super U> predicate) { return other .leftOuterJoin(this, (u, t) -> predicate.test(t, u)) .map(t -> tuple(t.v2, t.v1)); }
default <U> Seq<Tuple2<T, U>> rightOuterJoin(Seq<U> other, BiPredicate<? super T, ? super U> predicate) { return other .leftOuterJoin(this, (u, t) -> predicate.test(t, u)) .map(t -> tuple(t.v2, t.v1)); }
/** * Right outer join 2 streams into one. * <p> * <code><pre> * // (tuple(1, 1), tuple(2, 2), tuple(null, 3)) * Seq.of(1, 2).rightOuterJoin(Seq.of(1, 2, 3), t -> Objects.equals(t.v1, t.v2)) * </pre></code> */
Right outer join 2 streams into one. <code><code> (tuple(1, 1), tuple(2, 2), tuple(null, 3)) Seq.of(1, 2).rightOuterJoin(Seq.of(1, 2, 3), t -> Objects.equals(t.v1, t.v2)) </code></code>
rightOuterJoin
{ "repo_name": "stephenh/jOOL", "path": "src/main/java/org/jooq/lambda/Seq.java", "license": "apache-2.0", "size": 198501 }
[ "java.util.function.BiPredicate", "org.jooq.lambda.tuple.Tuple", "org.jooq.lambda.tuple.Tuple2" ]
import java.util.function.BiPredicate; import org.jooq.lambda.tuple.Tuple; import org.jooq.lambda.tuple.Tuple2;
import java.util.function.*; import org.jooq.lambda.tuple.*;
[ "java.util", "org.jooq.lambda" ]
java.util; org.jooq.lambda;
424,081
protected void writeSphinx(String filename) throws IOException { // logger.finer("sphinx dim = " + getFeatureSize() + " staticDim = " + getStaticFeatureSize()); String mode = "wb"; IOFile file = new IOFile(filename, mode, swap); file.open(); int dim = currentFileDesc.getFeatureSize(); // int baseDim = cu...
void function(String filename) throws IOException { String mode = "wb"; IOFile file = new IOFile(filename, mode, swap); file.open(); int dim = currentFileDesc.getFeatureSize(); file.writeInt(currentFeatureList.size() * dim); for (int i = 0; i < currentFeatureList.size(); i++) { float frame[] = currentFeatureList.get(i)...
/** * Write sphinx format. * * @param filename the filename * * @throws IOException Signals that an I/O exception has occurred. */
Write sphinx format
writeSphinx
{ "repo_name": "Adirockzz95/GenderDetect", "path": "src/src/fr/lium/spkDiarization/libFeature/AudioFeatureSet.java", "license": "gpl-3.0", "size": 51489 }
[ "fr.lium.spkDiarization.lib.IOFile", "java.io.IOException" ]
import fr.lium.spkDiarization.lib.IOFile; import java.io.IOException;
import fr.lium.*; import java.io.*;
[ "fr.lium", "java.io" ]
fr.lium; java.io;
800,362
public void initKeys() { inputManager.addMapping("Shoot", new MouseButtonTrigger(MouseInput.BUTTON_LEFT)); inputManager.addMapping("Back", new MouseButtonTrigger(MouseInput.BUTTON_RIGHT)); inputManager.addMapping("Delete", new KeyTrigger(KeyInput.KEY_SPACE)); inputManager.addListener(shootLi...
void function() { inputManager.addMapping("Shoot", new MouseButtonTrigger(MouseInput.BUTTON_LEFT)); inputManager.addMapping("Back", new MouseButtonTrigger(MouseInput.BUTTON_RIGHT)); inputManager.addMapping(STR, new KeyTrigger(KeyInput.KEY_SPACE)); inputManager.addListener(shootListener, "Shoot"); inputManager.addListen...
/** * Listeners for key values. Handles picking dirs, deleting files, going to parent dir * * @param * */
Listeners for key values. Handles picking dirs, deleting files, going to parent dir
initKeys
{ "repo_name": "rsmitty/3D-File-Browser", "path": "src/mygame/Main.java", "license": "mit", "size": 12804 }
[ "com.jme3.input.KeyInput", "com.jme3.input.MouseInput", "com.jme3.input.controls.KeyTrigger", "com.jme3.input.controls.MouseButtonTrigger" ]
import com.jme3.input.KeyInput; import com.jme3.input.MouseInput; import com.jme3.input.controls.KeyTrigger; import com.jme3.input.controls.MouseButtonTrigger;
import com.jme3.input.*; import com.jme3.input.controls.*;
[ "com.jme3.input" ]
com.jme3.input;
2,495,864
public IPortletUrlBuilder getPortletUrlBuilder(IPortletWindowId portletWindowId); /** * If {@link #getTargetPortletWindowId()} does not return null this will return the {@link IPortletUrlBuilder}
IPortletUrlBuilder function(IPortletWindowId portletWindowId); /** * If {@link #getTargetPortletWindowId()} does not return null this will return the {@link IPortletUrlBuilder}
/** * Get the {@link IPortletUrlBuilder} for the specified {@link IPortletWindowId}. Multiple calls to * this method with the same id will likely return the same object * * @param portletWindowId The id of the portlet window to get the url builder for, not null. * @return The url builder for t...
Get the <code>IPortletUrlBuilder</code> for the specified <code>IPortletWindowId</code>. Multiple calls to this method with the same id will likely return the same object
getPortletUrlBuilder
{ "repo_name": "Jasig/SSP-Platform", "path": "uportal-war/src/main/java/org/jasig/portal/url/IPortalUrlBuilder.java", "license": "apache-2.0", "size": 2743 }
[ "org.jasig.portal.portlet.om.IPortletWindowId" ]
import org.jasig.portal.portlet.om.IPortletWindowId;
import org.jasig.portal.portlet.om.*;
[ "org.jasig.portal" ]
org.jasig.portal;
57,514
static void verifyQuery(QueryBuilder queryBuilder) { if (queryBuilder.getName().equals("has_child")) { throw new IllegalArgumentException("the [has_child] query is unsupported inside a percolator query"); } else if (queryBuilder.getName().equals("has_parent")) { throw new Ill...
static void verifyQuery(QueryBuilder queryBuilder) { if (queryBuilder.getName().equals(STR)) { throw new IllegalArgumentException(STR); } else if (queryBuilder.getName().equals(STR)) { throw new IllegalArgumentException(STR); } else if (queryBuilder instanceof BoolQueryBuilder) { BoolQueryBuilder boolQueryBuilder = (Bo...
/** * Fails if a percolator contains an unsupported query. The following queries are not supported: * 1) a has_child query * 2) a has_parent query */
Fails if a percolator contains an unsupported query. The following queries are not supported: 1) a has_child query 2) a has_parent query
verifyQuery
{ "repo_name": "sneivandt/elasticsearch", "path": "modules/percolator/src/main/java/org/elasticsearch/percolator/PercolatorFieldMapper.java", "license": "apache-2.0", "size": 25628 }
[ "java.util.ArrayList", "java.util.List", "org.elasticsearch.index.query.BoolQueryBuilder", "org.elasticsearch.index.query.BoostingQueryBuilder", "org.elasticsearch.index.query.ConstantScoreQueryBuilder", "org.elasticsearch.index.query.DisMaxQueryBuilder", "org.elasticsearch.index.query.QueryBuilder", ...
import java.util.ArrayList; import java.util.List; import org.elasticsearch.index.query.BoolQueryBuilder; import org.elasticsearch.index.query.BoostingQueryBuilder; import org.elasticsearch.index.query.ConstantScoreQueryBuilder; import org.elasticsearch.index.query.DisMaxQueryBuilder; import org.elasticsearch.index.que...
import java.util.*; import org.elasticsearch.index.query.*; import org.elasticsearch.index.query.functionscore.*;
[ "java.util", "org.elasticsearch.index" ]
java.util; org.elasticsearch.index;
1,600,657
private XmlRpcClient getClient(String url) { XmlRpcClient client = null; try { client = new XmlRpcClient(); XmlRpcClientConfigImpl conf = new XmlRpcClientConfigImpl(); conf.setServerURL(new URL(url)); conf.setEncoding("UTF-8"); ...
XmlRpcClient function(String url) { XmlRpcClient client = null; try { client = new XmlRpcClient(); XmlRpcClientConfigImpl conf = new XmlRpcClientConfigImpl(); conf.setServerURL(new URL(url)); conf.setEncoding("UTF-8"); client.setConfig(conf); } catch (MalformedURLException exception) { throw new BlogIntegrationRuntimeE...
/** * Helper method to get the XML RPC client * * @param url * @return */
Helper method to get the XML RPC client
getClient
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/repo/blog/DefaultBlogIntegrationImplementation.java", "license": "lgpl-3.0", "size": 7580 }
[ "java.net.MalformedURLException", "org.apache.xmlrpc.client.XmlRpcClient", "org.apache.xmlrpc.client.XmlRpcClientConfigImpl" ]
import java.net.MalformedURLException; import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
import java.net.*; import org.apache.xmlrpc.client.*;
[ "java.net", "org.apache.xmlrpc" ]
java.net; org.apache.xmlrpc;
1,738,833
@Override public void onDestroy() { Log.v(this.getClass().getName(), "onDestroy"); try { worker.stop(); router.unregisterWorker(worker.getPid()); router = null; } catch (RemoteException e) { Log.e(this.getClass().getName(), "onDestroy", e...
void function() { Log.v(this.getClass().getName(), STR); try { worker.stop(); router.unregisterWorker(worker.getPid()); router = null; } catch (RemoteException e) { Log.e(this.getClass().getName(), STR, e); Assert.fail(); } super.onDestroy(); }
/** * When destroy service, stop vm and unregister this worker from the router service. */
When destroy service, stop vm and unregister this worker from the router service
onDestroy
{ "repo_name": "processwarp/processwarp", "path": "src/android/app/src/main/java/org/processwarp/android/WorkerService.java", "license": "mit", "size": 4281 }
[ "android.os.RemoteException", "android.util.Log", "junit.framework.Assert" ]
import android.os.RemoteException; import android.util.Log; import junit.framework.Assert;
import android.os.*; import android.util.*; import junit.framework.*;
[ "android.os", "android.util", "junit.framework" ]
android.os; android.util; junit.framework;
815,852
public static <SuccessT, PromiseT> BiConsumer<SuccessT, ? super Throwable> promiseNotifyingBiConsumer( Function<SuccessT, PromiseT> successFunction, Promise<PromiseT> promise) { return (success, fail) -> { if (fail != null) { promise.setFailure(fail); } else { try { pro...
static <SuccessT, PromiseT> BiConsumer<SuccessT, ? super Throwable> function( Function<SuccessT, PromiseT> successFunction, Promise<PromiseT> promise) { return (success, fail) -> { if (fail != null) { promise.setFailure(fail); } else { try { promise.setSuccess(successFunction.apply(success)); } catch (Throwable e) { pr...
/** * Creates a {@link BiConsumer} that notifies the promise of any failures either via the {@link Throwable} passed into the * BiConsumer of as a result of running the successFunction. * * @param successFunction Function called to process the successful result and map it into the result to notify the promi...
Creates a <code>BiConsumer</code> that notifies the promise of any failures either via the <code>Throwable</code> passed into the BiConsumer of as a result of running the successFunction
promiseNotifyingBiConsumer
{ "repo_name": "cgtz/ambry", "path": "ambry-commons/src/main/java/com/github/ambry/commons/NettyUtils.java", "license": "apache-2.0", "size": 5979 }
[ "io.netty.util.concurrent.Promise", "java.util.function.BiConsumer", "java.util.function.Function" ]
import io.netty.util.concurrent.Promise; import java.util.function.BiConsumer; import java.util.function.Function;
import io.netty.util.concurrent.*; import java.util.function.*;
[ "io.netty.util", "java.util" ]
io.netty.util; java.util;
2,751,501
private void processDeleteResponse(ClientResponse response) { //Continue snapshotting even if a delete fails. setState(State.WAITING); if (response.getStatus() != ClientResponse.SUCCESS){ logFailureResponse("Delete of snapshots failed", response); return; } ...
void function(ClientResponse response) { setState(State.WAITING); if (response.getStatus() != ClientResponse.SUCCESS){ logFailureResponse(STR, response); return; } final VoltTable results[] = response.getResults(); final String err = SnapshotUtil.didSnapshotRequestFailWithErr(results); if (err != null) { SNAP_LOG.warn(...
/** * Process a response to a request to delete snapshots. * Always transitions to the waiting state even if the delete * fails. This ensures the system will continue to snapshot * until the disk is full in the event that there is an administration * error or a bug. * @param response ...
Process a response to a request to delete snapshots. Always transitions to the waiting state even if the delete fails. This ensures the system will continue to snapshot until the disk is full in the event that there is an administration error or a bug
processDeleteResponse
{ "repo_name": "paulmartel/voltdb", "path": "src/frontend/org/voltdb/SnapshotDaemon.java", "license": "agpl-3.0", "size": 83589 }
[ "org.voltdb.client.ClientResponse", "org.voltdb.sysprocs.saverestore.SnapshotUtil" ]
import org.voltdb.client.ClientResponse; import org.voltdb.sysprocs.saverestore.SnapshotUtil;
import org.voltdb.client.*; import org.voltdb.sysprocs.saverestore.*;
[ "org.voltdb.client", "org.voltdb.sysprocs" ]
org.voltdb.client; org.voltdb.sysprocs;
1,629,147
List<RichMember> findCompleteRichMembers(PerunSession sess, List<String> attrsNames, List<String> allowedStatuses, String searchString) throws InternalErrorException, AttributeNotExistsException; /** * Return list of richMembers for specific group by the searchString with attributes specific for list of attrsNam...
List<RichMember> findCompleteRichMembers(PerunSession sess, List<String> attrsNames, List<String> allowedStatuses, String searchString) throws InternalErrorException, AttributeNotExistsException; /** * Return list of richMembers for specific group by the searchString with attributes specific for list of attrsNames. * I...
/** * Return list of richMembers by the searchString with attributes specific for list of attrsNames * and who have only status which is contain in list of statuses. * If attrsNames is empty or null return all attributes for specific richMembers. * If listOfStatuses is empty or null, return all possible statuse...
Return list of richMembers by the searchString with attributes specific for list of attrsNames and who have only status which is contain in list of statuses. If attrsNames is empty or null return all attributes for specific richMembers. If listOfStatuses is empty or null, return all possible statuses
findCompleteRichMembers
{ "repo_name": "ondrocks/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/MembersManagerBl.java", "license": "bsd-2-clause", "size": 49250 }
[ "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.RichMember", "cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "java.util.List" ]
import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.RichMember; import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import java.util.List;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,304,766
public boolean connect() throws ConnectionException;
boolean function() throws ConnectionException;
/** * Connect to the database if possible * @return true if the connection holds, false otherwise * @throws ConnectionException if an error happens */
Connect to the database if possible
connect
{ "repo_name": "mutandon/IQR", "path": "src/main/java/it/unitn/disi/db/queryrelaxation/model/data/DatabaseConnector.java", "license": "gpl-2.0", "size": 5953 }
[ "it.unitn.disi.db.queryrelaxation.exceptions.ConnectionException" ]
import it.unitn.disi.db.queryrelaxation.exceptions.ConnectionException;
import it.unitn.disi.db.queryrelaxation.exceptions.*;
[ "it.unitn.disi" ]
it.unitn.disi;
957,868
int resolve(HttpHost host) throws UnsupportedSchemeException;
int resolve(HttpHost host) throws UnsupportedSchemeException;
/** * Returns the actual port for the host based on the protocol scheme. */
Returns the actual port for the host based on the protocol scheme
resolve
{ "repo_name": "SxdsF/Visit", "path": "src/org/apache/http/conn/SchemePortResolver.java", "license": "apache-2.0", "size": 1534 }
[ "org.apache.http.HttpHost" ]
import org.apache.http.HttpHost;
import org.apache.http.*;
[ "org.apache.http" ]
org.apache.http;
1,510,872
public static int computeTotalDefectsEstimate() { int total = 0; JTable summaryTable = SummaryPanel.getSummaryTable(); for(int i = 0; i<summaryTable.getRowCount()-1; i++){ total += Integer.parseInt(summaryTable.getValueAt(i, 3).toString()); } return total; }
static int function() { int total = 0; JTable summaryTable = SummaryPanel.getSummaryTable(); for(int i = 0; i<summaryTable.getRowCount()-1; i++){ total += Integer.parseInt(summaryTable.getValueAt(i, 3).toString()); } return total; }
/** * This method calculates the total defects estimate of how * many defects will be injected in this project. * @param * @return The integer value of the Total Estimated defects. */
This method calculates the total defects estimate of how many defects will be injected in this project
computeTotalDefectsEstimate
{ "repo_name": "ser316asu/Pankow_SER316", "path": "src/net/sf/memoranda/SummaryManager.java", "license": "gpl-2.0", "size": 26367 }
[ "javax.swing.JTable", "net.sf.memoranda.ui.SummaryPanel" ]
import javax.swing.JTable; import net.sf.memoranda.ui.SummaryPanel;
import javax.swing.*; import net.sf.memoranda.ui.*;
[ "javax.swing", "net.sf.memoranda" ]
javax.swing; net.sf.memoranda;
2,619,629
protected Entity delete(String feedUri) throws BlueviaException, IOException { return delete(feedUri, null); }
Entity function(String feedUri) throws BlueviaException, IOException { return delete(feedUri, null); }
/** * Creates a request using REST to the server in order to retrieve an entity * from the server * * @param feedUri the REST URI of the entity to get * @return the response entity object * @throws BlueviaException * @throws IOException */
Creates a request using REST to the server in order to retrieve an entity from the server
delete
{ "repo_name": "BlueVia/Official-Library-Android", "path": "library/src/com/bluevia/android/commons/client/BVBaseClient.java", "license": "lgpl-3.0", "size": 15272 }
[ "com.bluevia.android.commons.Entity", "com.bluevia.android.commons.exception.BlueviaException", "java.io.IOException" ]
import com.bluevia.android.commons.Entity; import com.bluevia.android.commons.exception.BlueviaException; import java.io.IOException;
import com.bluevia.android.commons.*; import com.bluevia.android.commons.exception.*; import java.io.*;
[ "com.bluevia.android", "java.io" ]
com.bluevia.android; java.io;
1,047,053
public SchemeData get(int index) { return schemeDatas[index]; }
SchemeData function(int index) { return schemeDatas[index]; }
/** * Retrieves the {@link SchemeData} at a given index. * * @param index index of the scheme to return. * @return The {@link SchemeData} at the index. */
Retrieves the <code>SchemeData</code> at a given index
get
{ "repo_name": "antoniodiraff/ExoPlayer_Library_0.1", "path": "library/core/src/main/java/com/google/android/exoplayer2/drm/DrmInitData.java", "license": "apache-2.0", "size": 10125 }
[ "com.google.android.exoplayer2.drm.DrmInitData" ]
import com.google.android.exoplayer2.drm.DrmInitData;
import com.google.android.exoplayer2.drm.*;
[ "com.google.android" ]
com.google.android;
2,503,118
private void assertFDS7_1TableTree(String generatedXml) throws UnsupportedEncodingException, XpathException, SAXException, IOException { String subtree = extractFirstSubtree( "/xsp:page[1]/xgui:module[1]/nav:managerequest[1]/xgui:vbox[1]/udp:udp[1]/udp:render-list[1]/xgui:table[1]/udp:for-each-row[1]/xgui:row[...
void function(String generatedXml) throws UnsupportedEncodingException, XpathException, SAXException, IOException { String subtree = extractFirstSubtree( STR, generatedXml); Assert.assertFalse(STR, subtree.isEmpty()); assertFDS7_1TableTreeSubtree(subtree); }
/** * Extract the relevant subtree from the generated xml and run an Assert.assert against it */
Extract the relevant subtree from the generated xml and run an Assert.assert against it
assertFDS7_1TableTree
{ "repo_name": "debabratahazra/DS", "path": "designstudio/components/page/tests/com.odcgroup.page.transformmodel.tests/src/test/java/com/odcgroup/page/transformmodel/tests/widget/tabletree/TableTreeOnlineCellModification.java", "license": "epl-1.0", "size": 37299 }
[ "java.io.IOException", "java.io.UnsupportedEncodingException", "org.custommonkey.xmlunit.exceptions.XpathException", "org.junit.Assert", "org.xml.sax.SAXException" ]
import java.io.IOException; import java.io.UnsupportedEncodingException; import org.custommonkey.xmlunit.exceptions.XpathException; import org.junit.Assert; import org.xml.sax.SAXException;
import java.io.*; import org.custommonkey.xmlunit.exceptions.*; import org.junit.*; import org.xml.sax.*;
[ "java.io", "org.custommonkey.xmlunit", "org.junit", "org.xml.sax" ]
java.io; org.custommonkey.xmlunit; org.junit; org.xml.sax;
1,951,800
@Test public void testEnvoiMailNoSpam(){ // Préparation MessagingBusinessService service = new MessagingBusinessService(); addToQueue(service.getEmailsSendingQueue(), "test", "message de test1"); addToQueue(service.getEmailsSendingQueue(), "test", "message de test2"); addToQueue(service.getEmailsSen...
void function(){ MessagingBusinessService service = new MessagingBusinessService(); addToQueue(service.getEmailsSendingQueue(), "test", STR); addToQueue(service.getEmailsSendingQueue(), "test", STR); addToQueue(service.getEmailsSendingQueue(), "test2", STR); SendEmailTaskRunnable runnable = spy( new SendEmailTaskRunnab...
/** * Test d'envoi */
Test d'envoi
testEnvoiMailNoSpam
{ "repo_name": "vzwingma/automationManager", "path": "messagingBundle/src/test/java/com/terrier/utilities/automation/bundles/messaging/runnable/TestEmailAPI.java", "license": "gpl-2.0", "size": 8668 }
[ "com.terrier.utilities.automation.bundles.messaging.MessagingBusinessService", "javax.ws.rs.client.Entity", "org.junit.Assert", "org.mockito.Mockito" ]
import com.terrier.utilities.automation.bundles.messaging.MessagingBusinessService; import javax.ws.rs.client.Entity; import org.junit.Assert; import org.mockito.Mockito;
import com.terrier.utilities.automation.bundles.messaging.*; import javax.ws.rs.client.*; import org.junit.*; import org.mockito.*;
[ "com.terrier.utilities", "javax.ws", "org.junit", "org.mockito" ]
com.terrier.utilities; javax.ws; org.junit; org.mockito;
69,350
Class<? extends DbEntity> getEntityType();
Class<? extends DbEntity> getEntityType();
/** * The type of the entity for which this listener should be notified. * If the implementation returns 'null', the listener is notified for all * entity types. * * @return the entity type for which the listener should be notified. */
The type of the entity for which this listener should be notified. If the implementation returns 'null', the listener is notified for all entity types
getEntityType
{ "repo_name": "xasx/camunda-bpm-platform", "path": "engine/src/main/java/org/camunda/bpm/engine/impl/db/entitymanager/OptimisticLockingListener.java", "license": "apache-2.0", "size": 1628 }
[ "org.camunda.bpm.engine.impl.db.DbEntity" ]
import org.camunda.bpm.engine.impl.db.DbEntity;
import org.camunda.bpm.engine.impl.db.*;
[ "org.camunda.bpm" ]
org.camunda.bpm;
2,820,654
@Generated @CVariable() @MappedReturn(ObjCStringMapper.class) public static native String UIMenuSpellingPanel();
@CVariable() @MappedReturn(ObjCStringMapper.class) static native String function();
/** * Show Spelling, Check Document Now menu */
Show Spelling, Check Document Now menu
UIMenuSpellingPanel
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/uikit/c/UIKit.java", "license": "apache-2.0", "size": 134869 }
[ "org.moe.natj.c.ann.CVariable", "org.moe.natj.general.ann.MappedReturn", "org.moe.natj.objc.map.ObjCStringMapper" ]
import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper;
import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*;
[ "org.moe.natj" ]
org.moe.natj;
1,741,769
Statement compileToBuffer(MsgHtmlTagNode htmlTagNode, AppendableExpression appendable); } private final Expression thisVar; private final DetachState detachState; private final VariableSet variables; private final VariableLookup variableLookup; private final AppendableExpression appendableExpression; ...
Statement compileToBuffer(MsgHtmlTagNode htmlTagNode, AppendableExpression appendable); } private final Expression thisVar; private final DetachState detachState; private final VariableSet variables; private final VariableLookup variableLookup; private final AppendableExpression appendableExpression; private final SoyN...
/** * Compiles the given MsgHtmlTagNode to a statement that writes the result into the given * appendable. * * <p>The statement is guaranteed to be written to a location with a stack depth of zero. */
Compiles the given MsgHtmlTagNode to a statement that writes the result into the given appendable. The statement is guaranteed to be written to a location with a stack depth of zero
compileToBuffer
{ "repo_name": "atul-bhouraskar/closure-templates", "path": "java/src/com/google/template/soy/jbcsrc/MsgCompiler.java", "license": "apache-2.0", "size": 16444 }
[ "com.google.common.base.Preconditions", "com.google.template.soy.soytree.MsgHtmlTagNode" ]
import com.google.common.base.Preconditions; import com.google.template.soy.soytree.MsgHtmlTagNode;
import com.google.common.base.*; import com.google.template.soy.soytree.*;
[ "com.google.common", "com.google.template" ]
com.google.common; com.google.template;
2,554,331
EClass getMoreCode_();
EClass getMoreCode_();
/** * Returns the meta object for class '{@link cruise.umple.umple.MoreCode_ <em>More Code </em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>More Code </em>'. * @see cruise.umple.umple.MoreCode_ * @generated */
Returns the meta object for class '<code>cruise.umple.umple.MoreCode_ More Code </code>'.
getMoreCode_
{ "repo_name": "ahmedvc/umple", "path": "cruise.umple.xtext/src-gen/cruise/umple/umple/UmplePackage.java", "license": "mit", "size": 485842 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
392,054
public static native void unregisterEvent(EventRequest request) throws JdwpException;
static native void function(EventRequest request) throws JdwpException;
/** * Unregisters the given request * * @param request the request to unregister */
Unregisters the given request
unregisterEvent
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/vm/reference/gnu/classpath/jdwp/VMVirtualMachine.java", "license": "gpl-2.0", "size": 13990 }
[ "gnu.classpath.jdwp.event.EventRequest", "gnu.classpath.jdwp.exception.JdwpException" ]
import gnu.classpath.jdwp.event.EventRequest; import gnu.classpath.jdwp.exception.JdwpException;
import gnu.classpath.jdwp.event.*; import gnu.classpath.jdwp.exception.*;
[ "gnu.classpath.jdwp" ]
gnu.classpath.jdwp;
2,565,469
public LoadBalanceDefinition loadBalance(LoadBalancer loadBalancer) { LoadBalanceDefinition answer = new LoadBalanceDefinition(); addOutput(answer); return answer.loadBalance(loadBalancer); }
LoadBalanceDefinition function(LoadBalancer loadBalancer) { LoadBalanceDefinition answer = new LoadBalanceDefinition(); addOutput(answer); return answer.loadBalance(loadBalancer); }
/** * <a href="http://camel.apache.org/load-balancer.html">Load Balancer EIP:</a> * Creates a loadbalance * * @param loadBalancer a custom load balancer to use * @return the builder */
Creates a loadbalance
loadBalance
{ "repo_name": "oscerd/camel", "path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java", "license": "apache-2.0", "size": 144870 }
[ "org.apache.camel.processor.loadbalancer.LoadBalancer" ]
import org.apache.camel.processor.loadbalancer.LoadBalancer;
import org.apache.camel.processor.loadbalancer.*;
[ "org.apache.camel" ]
org.apache.camel;
945,640
public KeyNamePair getKeyNamePair() { return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); }
KeyNamePair function() { return new KeyNamePair(get_ID(), String.valueOf(getAD_User_ID())); }
/** Get Record ID/ColumnName @return ID/ColumnName pair */
Get Record ID/ColumnName
getKeyNamePair
{ "repo_name": "adempiere/adempiere", "path": "base/src/org/compiere/model/X_C_UserRemuneration.java", "license": "gpl-2.0", "size": 8136 }
[ "org.compiere.util.KeyNamePair" ]
import org.compiere.util.KeyNamePair;
import org.compiere.util.*;
[ "org.compiere.util" ]
org.compiere.util;
2,260,803
protected boolean incPattern(String text) { this.USEFILE = false; for (Pattern includePattern : this.INCPATTERNS) { if (JMeterUtils.getMatcher().contains(text, includePattern)) { this.USEFILE = true; break; } } return this.USEFI...
boolean function(String text) { this.USEFILE = false; for (Pattern includePattern : this.INCPATTERNS) { if (JMeterUtils.getMatcher().contains(text, includePattern)) { this.USEFILE = true; break; } } return this.USEFILE; }
/** * By default, the method assumes the entry is not included, unless it * matches. In that case, it will return true. * * @param text text to be checked * @return <code>true</code> if text is included */
By default, the method assumes the entry is not included, unless it matches. In that case, it will return true
incPattern
{ "repo_name": "etnetera/jmeter", "path": "src/protocol/http/src/main/java/org/apache/jmeter/protocol/http/util/accesslog/LogFilter.java", "license": "apache-2.0", "size": 15003 }
[ "org.apache.jmeter.util.JMeterUtils", "org.apache.oro.text.regex.Pattern" ]
import org.apache.jmeter.util.JMeterUtils; import org.apache.oro.text.regex.Pattern;
import org.apache.jmeter.util.*; import org.apache.oro.text.regex.*;
[ "org.apache.jmeter", "org.apache.oro" ]
org.apache.jmeter; org.apache.oro;
1,263,552
public Message makeJmsMessage(Exchange exchange, org.apache.camel.Message camelMessage, Session session, Exception cause) throws JMSException { Message answer = null; boolean alwaysCopy = endpoint != null && endpoint.getConfiguration().isAlwaysCopyMessage(); boolean force = endpoint != null...
Message function(Exchange exchange, org.apache.camel.Message camelMessage, Session session, Exception cause) throws JMSException { Message answer = null; boolean alwaysCopy = endpoint != null && endpoint.getConfiguration().isAlwaysCopyMessage(); boolean force = endpoint != null && endpoint.getConfiguration().isForceSen...
/** * Creates a JMS message from the Camel exchange and message * * @param exchange the current exchange * @param camelMessage the body to make a javax.jms.Message as * @param session the JMS session used to create the message * @param cause optional exception occurred that should be sent ...
Creates a JMS message from the Camel exchange and message
makeJmsMessage
{ "repo_name": "lburgazzoli/apache-camel", "path": "components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsBinding.java", "license": "apache-2.0", "size": 29840 }
[ "java.util.Map", "javax.jms.BytesMessage", "javax.jms.JMSException", "javax.jms.MapMessage", "javax.jms.Message", "javax.jms.ObjectMessage", "javax.jms.Session", "javax.jms.StreamMessage", "javax.jms.TextMessage", "org.apache.camel.Exchange", "org.apache.camel.component.jms.JmsMessageType", "o...
import java.util.Map; import javax.jms.BytesMessage; import javax.jms.JMSException; import javax.jms.MapMessage; import javax.jms.Message; import javax.jms.ObjectMessage; import javax.jms.Session; import javax.jms.StreamMessage; import javax.jms.TextMessage; import org.apache.camel.Exchange; import org.apache.camel.com...
import java.util.*; import javax.jms.*; import org.apache.camel.*; import org.apache.camel.component.jms.*; import org.apache.camel.util.*;
[ "java.util", "javax.jms", "org.apache.camel" ]
java.util; javax.jms; org.apache.camel;
1,662,668
@Override public void bindView(final View view, Context context, Cursor cursor) { ViewHolder viewHolder = (ViewHolder) view.getTag(); // Find the columns of game attributes that we're interested in int idColumnIndex = cursor.getColumnIndex(GameEntry._ID); int nameColumnIndex = ...
void function(final View view, Context context, Cursor cursor) { ViewHolder viewHolder = (ViewHolder) view.getTag(); int idColumnIndex = cursor.getColumnIndex(GameEntry._ID); int nameColumnIndex = cursor.getColumnIndex(GameEntry.COLUMN_GAME_NAME); int priceColumnIndex = cursor.getColumnIndex(GameEntry.COLUMN_GAME_PRICE...
/** * This method binds the game data (in the current row pointed to by cursor) to the given * list item layout. For example, the name for the current game can be set on the name TextView * in the list item layout. * * @param view Existing view, returned earlier by newView() method * @p...
This method binds the game data (in the current row pointed to by cursor) to the given list item layout. For example, the name for the current game can be set on the name TextView in the list item layout
bindView
{ "repo_name": "kalexito31/InventoryApp", "path": "app/src/main/java/com/example/android/gameInventory/GameCursorAdapter.java", "license": "apache-2.0", "size": 7826 }
[ "android.content.Context", "android.database.Cursor", "android.view.View", "com.example.android.gameInventory.data.GameContract" ]
import android.content.Context; import android.database.Cursor; import android.view.View; import com.example.android.gameInventory.data.GameContract;
import android.content.*; import android.database.*; import android.view.*; import com.example.android.*;
[ "android.content", "android.database", "android.view", "com.example.android" ]
android.content; android.database; android.view; com.example.android;
2,603,353
public String[] getTaskDiagnostics(TaskAttemptID taskId) throws IOException;
String[] function(TaskAttemptID taskId) throws IOException;
/** * Get the diagnostics for a given task in a given job * @param taskId the id of the task * @return an array of the diagnostic messages */
Get the diagnostics for a given task in a given job
getTaskDiagnostics
{ "repo_name": "ghelmling/hadoop-common", "path": "src/mapred/org/apache/hadoop/mapred/JobSubmissionProtocol.java", "license": "apache-2.0", "size": 8192 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,224,808
protected Label processSpriteLabel(Node node) throws Exception { Label l = null; Sprite s = null; Vertex v = null; NamedNodeMap nodeMap = node.getAttributes(); // Check if it is a reference if (node.getNodeName().equals("sprite-label-ref")) { if (nodeMap.getNamedItem("ref") != null) { String re...
Label function(Node node) throws Exception { Label l = null; Sprite s = null; Vertex v = null; NamedNodeMap nodeMap = node.getAttributes(); if (node.getNodeName().equals(STR)) { if (nodeMap.getNamedItem("ref") != null) { String ref = nodeMap.getNamedItem("ref").getNodeValue(); if (!labels.containsKey(ref)) throw new Ex...
/** * This method process and <sprite-label> tag, check the wiki to know the * format * * @param node * Sprite-label node * @return Generated SpriteLabel * @throws Exception */
This method process and tag, check the wiki to know the format
processSpriteLabel
{ "repo_name": "HarZe/java-danmaku-engine", "path": "JDE/src/com/jde/model/utils/Parser.java", "license": "gpl-3.0", "size": 61158 }
[ "com.jde.model.physics.Vertex", "com.jde.view.hud.Label", "com.jde.view.hud.SpriteLabel", "com.jde.view.sprites.Sprite", "org.w3c.dom.NamedNodeMap", "org.w3c.dom.Node" ]
import com.jde.model.physics.Vertex; import com.jde.view.hud.Label; import com.jde.view.hud.SpriteLabel; import com.jde.view.sprites.Sprite; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node;
import com.jde.model.physics.*; import com.jde.view.hud.*; import com.jde.view.sprites.*; import org.w3c.dom.*;
[ "com.jde.model", "com.jde.view", "org.w3c.dom" ]
com.jde.model; com.jde.view; org.w3c.dom;
2,205,512
@Override public ResourceLocator getResourceLocator() { return ApsEditPlugin.INSTANCE; }
ResourceLocator function() { return ApsEditPlugin.INSTANCE; }
/** * Return the resource locator for this item provider's resources. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Return the resource locator for this item provider's resources.
getResourceLocator
{ "repo_name": "KAMP-Research/KAMP4APS", "path": "edu.kit.ipd.sdq.kamp4aps.aps.edit/src/edu/kit/ipd/sdq/kamp4aps/model/aPS/ComponentRepository/provider/CylinderPartItemProvider.java", "license": "apache-2.0", "size": 3279 }
[ "edu.kit.ipd.sdq.kamp4aps.aps.aPS.provider.ApsEditPlugin", "org.eclipse.emf.common.util.ResourceLocator" ]
import edu.kit.ipd.sdq.kamp4aps.aps.aPS.provider.ApsEditPlugin; import org.eclipse.emf.common.util.ResourceLocator;
import edu.kit.ipd.sdq.kamp4aps.aps.*; import org.eclipse.emf.common.util.*;
[ "edu.kit.ipd", "org.eclipse.emf" ]
edu.kit.ipd; org.eclipse.emf;
2,708,383
protected boolean loadResourceUsingParentFirst(String name) { for (Pattern resourcePattern : RESOURCE_LOAD_PARENT_FIRST_PATTERNS) { if (resourcePattern.matcher(name).matches()) { return true; } } return false; }
boolean function(String name) { for (Pattern resourcePattern : RESOURCE_LOAD_PARENT_FIRST_PATTERNS) { if (resourcePattern.matcher(name).matches()) { return true; } } return false; }
/** * Determines whether we should attempt to load the given resource using the * parent first before attempting to load the resource using this ClassLoader. * @param name the name of the resource to test. * @return true if we should attempt to load the resource using the parent * first; false if we shou...
Determines whether we should attempt to load the given resource using the parent first before attempting to load the resource using this ClassLoader
loadResourceUsingParentFirst
{ "repo_name": "throughsky/lywebank", "path": "hbase-common/src/main/java/org/apache/hadoop/hbase/util/CoprocessorClassLoader.java", "license": "apache-2.0", "size": 13394 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
880,367
public StepMeta getLookupFromStep() { return getStepIOMeta().getInfoStreams().get( 0 ).getStepMeta(); }
StepMeta function() { return getStepIOMeta().getInfoStreams().get( 0 ).getStepMeta(); }
/** * For compatibility, wraps around the standard step IO metadata * * @return The step where you read lookup data from */
For compatibility, wraps around the standard step IO metadata
getLookupFromStep
{ "repo_name": "rfellows/pentaho-kettle", "path": "engine/src/org/pentaho/di/trans/steps/tableinput/TableInputMeta.java", "license": "apache-2.0", "size": 19079 }
[ "org.pentaho.di.trans.step.StepMeta" ]
import org.pentaho.di.trans.step.StepMeta;
import org.pentaho.di.trans.step.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,883,404
@JsonProperty("fullName") public String getFullName(){ return this.fullName; }
@JsonProperty(STR) String function(){ return this.fullName; }
/** * User's full name. */
User's full name
getFullName
{ "repo_name": "NidhiShekar/AmdocsEmulator", "path": "src/main/java/canvas/CanvasUserContext.java", "license": "bsd-3-clause", "size": 7557 }
[ "org.codehaus.jackson.annotate.JsonProperty" ]
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.*;
[ "org.codehaus.jackson" ]
org.codehaus.jackson;
2,847,953
public ErrorReporter withSpecificErrorMsg(String specificErrorMsg) { if (Objects.equal(this.specificErrorMsg, specificErrorMsg)) { return this; } return new ErrorReporter(this.code, this.specificErrorCode, specificErrorMsg, this.cause); }
ErrorReporter function(String specificErrorMsg) { if (Objects.equal(this.specificErrorMsg, specificErrorMsg)) { return this; } return new ErrorReporter(this.code, this.specificErrorCode, specificErrorMsg, this.cause); }
/** * Create a derived instance of {@link ErrorReporter} with the given specific error massage. * @param specificErrorMsg the cause of throwable * @return the instance of ErrorReporter */
Create a derived instance of <code>ErrorReporter</code> with the given specific error massage
withSpecificErrorMsg
{ "repo_name": "benson-git/ibole-infrastructure", "path": "infrastructure-common/src/main/java/com/github/ibole/infrastructure/common/exception/ErrorReporter.java", "license": "apache-2.0", "size": 9556 }
[ "com.google.common.base.Objects" ]
import com.google.common.base.Objects;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,059,368
public static Builder measurementByPOJO(final Class<?> clazz) { Objects.requireNonNull(clazz, "clazz"); throwExceptionIfMissingAnnotation(clazz, Measurement.class); String measurementName = findMeasurementName(clazz); return new Builder(measurementName); }
static Builder function(final Class<?> clazz) { Objects.requireNonNull(clazz, "clazz"); throwExceptionIfMissingAnnotation(clazz, Measurement.class); String measurementName = findMeasurementName(clazz); return new Builder(measurementName); }
/** * Create a new Point Build build to create a new Point in a fluent manner from a POJO. * * @param clazz Class of the POJO * @return the Builder instance */
Create a new Point Build build to create a new Point in a fluent manner from a POJO
measurementByPOJO
{ "repo_name": "influxdata/influxdb-java", "path": "src/main/java/org/influxdb/dto/Point.java", "license": "mit", "size": 18596 }
[ "java.util.Objects", "org.influxdb.annotation.Measurement" ]
import java.util.Objects; import org.influxdb.annotation.Measurement;
import java.util.*; import org.influxdb.annotation.*;
[ "java.util", "org.influxdb.annotation" ]
java.util; org.influxdb.annotation;
909,920
public List<List<Component>> getRows() { return rows; }
List<List<Component>> function() { return rows; }
/** * Get the rows (which are a list of components each) * * @return the List of Lists of Components which represents rows for this layout */
Get the rows (which are a list of components each)
getRows
{ "repo_name": "ua-eas/ksd-kc5.2.1-rice2.3.6-ua", "path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/uif/layout/CssGridLayoutManager.java", "license": "apache-2.0", "size": 11448 }
[ "java.util.List", "org.kuali.rice.krad.uif.component.Component" ]
import java.util.List; import org.kuali.rice.krad.uif.component.Component;
import java.util.*; import org.kuali.rice.krad.uif.component.*;
[ "java.util", "org.kuali.rice" ]
java.util; org.kuali.rice;
753,735
private void notifyListeners(IdentitySet<ConversationThread> threads) { for (Listener listener : listeners) { listener.onReadStateChanged(threads); } } // // Helpers. //
void function(IdentitySet<ConversationThread> threads) { for (Listener listener : listeners) { listener.onReadStateChanged(threads); } } //
/** * Notifies listeners of a change to a collection of threads. Should only be * called from {@link #countDownEvent} apart from on initialisation. */
Notifies listeners of a change to a collection of threads. Should only be called from <code>#countDownEvent</code> apart from on initialisation
notifyListeners
{ "repo_name": "vega113/WaveInCloud", "path": "src/org/waveprotocol/box/server/rpc/render/state/ThreadReadStateMonitorImpl.java", "license": "apache-2.0", "size": 22261 }
[ "org.waveprotocol.wave.model.conversation.ConversationThread", "org.waveprotocol.wave.model.util.IdentitySet" ]
import org.waveprotocol.wave.model.conversation.ConversationThread; import org.waveprotocol.wave.model.util.IdentitySet;
import org.waveprotocol.wave.model.conversation.*; import org.waveprotocol.wave.model.util.*;
[ "org.waveprotocol.wave" ]
org.waveprotocol.wave;
370,247
private void writePoseToNBT(NBTTagCompound tagCompound) { NBTTagList nbttaglist = tagCompound.getTagList("Head", 5); this.setHeadRotation(nbttaglist.hasNoTags() ? DEFAULT_HEAD_ROTATION : new Rotations(nbttaglist)); NBTTagList nbttaglist1 = tagCompound.getTagList("Body", 5); this....
void function(NBTTagCompound tagCompound) { NBTTagList nbttaglist = tagCompound.getTagList("Head", 5); this.setHeadRotation(nbttaglist.hasNoTags() ? DEFAULT_HEAD_ROTATION : new Rotations(nbttaglist)); NBTTagList nbttaglist1 = tagCompound.getTagList("Body", 5); this.setBodyRotation(nbttaglist1.hasNoTags() ? DEFAULT_BODY...
/** * Saves the pose to an NBTTagCompound. */
Saves the pose to an NBTTagCompound
writePoseToNBT
{ "repo_name": "danielyc/test-1.9.4", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/item/EntityArmorStand.java", "license": "gpl-3.0", "size": 33727 }
[ "net.minecraft.nbt.NBTTagCompound", "net.minecraft.nbt.NBTTagList", "net.minecraft.util.math.Rotations" ]
import net.minecraft.nbt.NBTTagCompound; import net.minecraft.nbt.NBTTagList; import net.minecraft.util.math.Rotations;
import net.minecraft.nbt.*; import net.minecraft.util.math.*;
[ "net.minecraft.nbt", "net.minecraft.util" ]
net.minecraft.nbt; net.minecraft.util;
1,694,969
Position findNewestMatching(FindPositionConstraint constraint, Predicate<Entry> condition) throws InterruptedException, ManagedLedgerException;
Position findNewestMatching(FindPositionConstraint constraint, Predicate<Entry> condition) throws InterruptedException, ManagedLedgerException;
/** * Find the newest entry that matches the given predicate. * * @param constraint * search only active entries or all entries * @param condition * predicate that reads an entry an applies a condition * @return Position of the newest entry that matches the given...
Find the newest entry that matches the given predicate
findNewestMatching
{ "repo_name": "yahoo/pulsar", "path": "managed-ledger/src/main/java/org/apache/bookkeeper/mledger/ManagedCursor.java", "license": "apache-2.0", "size": 23481 }
[ "com.google.common.base.Predicate" ]
import com.google.common.base.Predicate;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,025,300
public int getExternalSheet() { return externalSheet; } } private ArrayList ranges; NameRecord(Record t, WorkbookSettings ws, int ind) { super(t); index = ind; isbiff8 = true; try { ranges = new ArrayList(); byte[] data = getRecord().getData(); int option = IntegerHelper.getIn...
int function() { return externalSheet; } } private ArrayList ranges; NameRecord(Record t, WorkbookSettings ws, int ind) { super(t); index = ind; isbiff8 = true; try { ranges = new ArrayList(); byte[] data = getRecord().getData(); int option = IntegerHelper.getInt(data[0], data[1]); int length = data[3]; sheetRef = Inte...
/** * Accessor for the first sheet * * @return the index of the external sheet */
Accessor for the first sheet
getExternalSheet
{ "repo_name": "stefandmn/AREasy", "path": "src/java/org/areasy/common/parser/excel/read/biff/NameRecord.java", "license": "lgpl-3.0", "size": 12626 }
[ "java.util.ArrayList", "org.areasy.common.parser.excel.WorkbookSettings", "org.areasy.common.parser.excel.biff.BuiltInName", "org.areasy.common.parser.excel.biff.IntegerHelper", "org.areasy.common.parser.excel.biff.StringHelper", "org.areasy.common.parser.excel.common.Assert" ]
import java.util.ArrayList; import org.areasy.common.parser.excel.WorkbookSettings; import org.areasy.common.parser.excel.biff.BuiltInName; import org.areasy.common.parser.excel.biff.IntegerHelper; import org.areasy.common.parser.excel.biff.StringHelper; import org.areasy.common.parser.excel.common.Assert;
import java.util.*; import org.areasy.common.parser.excel.*; import org.areasy.common.parser.excel.biff.*; import org.areasy.common.parser.excel.common.*;
[ "java.util", "org.areasy.common" ]
java.util; org.areasy.common;
1,618,322
public static <K, V> MapChangeListener<K, V> uiThreadAwareMapChangeListener(@Nonnull final ObservableMap<K, V> observable, @Nonnull final Consumer<MapChangeListener.Change<? extends K, ? extends V>> consumer) { requireNonNull(observable, ERROR_OBSERVABLE_NULL); MapChangeListener<K, V> listener = uiT...
static <K, V> MapChangeListener<K, V> function(@Nonnull final ObservableMap<K, V> observable, @Nonnull final Consumer<MapChangeListener.Change<? extends K, ? extends V>> consumer) { requireNonNull(observable, ERROR_OBSERVABLE_NULL); MapChangeListener<K, V> listener = uiThreadAwareMapChangeListener(consumer); observable...
/** * Registers a {@code MapChangeListener} that always handles notifications inside the UI thread. * * @param observable the observable on which the listener will be registered. * @param consumer the consumer of the {@code newValue} argument. * * @return a {@code MapChangeListener}. ...
Registers a MapChangeListener that always handles notifications inside the UI thread
uiThreadAwareMapChangeListener
{ "repo_name": "griffon/griffon", "path": "subprojects/griffon-javafx/src/main/java/griffon/javafx/beans/binding/UIThreadAwareBindings.java", "license": "apache-2.0", "size": 50390 }
[ "java.util.Objects", "java.util.function.Consumer" ]
import java.util.Objects; import java.util.function.Consumer;
import java.util.*; import java.util.function.*;
[ "java.util" ]
java.util;
2,741,038
public static void setCheckMarkTintList(@NonNull CheckedTextView textView, @Nullable ColorStateList tint) { if (SDK_INT >= 21) { Api21Impl.setCheckMarkTintList(textView, tint); } else if (textView instanceof TintableCheckedTextView) { ((TintableCheckedTextView) te...
static void function(@NonNull CheckedTextView textView, @Nullable ColorStateList tint) { if (SDK_INT >= 21) { Api21Impl.setCheckMarkTintList(textView, tint); } else if (textView instanceof TintableCheckedTextView) { ((TintableCheckedTextView) textView).setSupportCheckMarkTintList(tint); } }
/** * Applies a tint to the check mark drawable. Does not modify the current tint * mode, which is {@link PorterDuff.Mode#SRC_IN} by default. * <p> * Subsequent calls to {@link CheckedTextView#setCheckMarkDrawable(Drawable)} should * automatically mutate the drawable and apply the specified tin...
Applies a tint to the check mark drawable. Does not modify the current tint mode, which is <code>PorterDuff.Mode#SRC_IN</code> by default. Subsequent calls to <code>CheckedTextView#setCheckMarkDrawable(Drawable)</code> should automatically mutate the drawable and apply the specified tint and tint mode using <code>Drawa...
setCheckMarkTintList
{ "repo_name": "AndroidX/androidx", "path": "core/core/src/main/java/androidx/core/widget/CheckedTextViewCompat.java", "license": "apache-2.0", "size": 6933 }
[ "android.content.res.ColorStateList", "android.widget.CheckedTextView", "androidx.annotation.NonNull", "androidx.annotation.Nullable" ]
import android.content.res.ColorStateList; import android.widget.CheckedTextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable;
import android.content.res.*; import android.widget.*; import androidx.annotation.*;
[ "android.content", "android.widget", "androidx.annotation" ]
android.content; android.widget; androidx.annotation;
2,581,487
public void init(CmsImagePreviewHandler handler) { m_handler = handler; m_propertiesTab = new CmsPropertiesTab(m_galleryMode, m_dialogHeight, m_dialogWidth, m_handler); m_tabbedPanel.add(m_propertiesTab, Messages.get().key(Messages.GUI_PREVIEW_TAB_PROPERTIES_0)); if ((m_galleryMode ...
void function(CmsImagePreviewHandler handler) { m_handler = handler; m_propertiesTab = new CmsPropertiesTab(m_galleryMode, m_dialogHeight, m_dialogWidth, m_handler); m_tabbedPanel.add(m_propertiesTab, Messages.get().key(Messages.GUI_PREVIEW_TAB_PROPERTIES_0)); if ((m_galleryMode == GalleryMode.editor) (m_galleryMode ==...
/** * Initializes the preview.<p> * * @param handler the preview handler */
Initializes the preview
init
{ "repo_name": "sbonoc/opencms-core", "path": "src-gwt/org/opencms/ade/galleries/client/preview/ui/CmsImagePreviewDialog.java", "license": "lgpl-2.1", "size": 8677 }
[ "com.google.gwt.user.client.Window", "org.opencms.ade.galleries.client.Messages", "org.opencms.ade.galleries.client.preview.CmsImagePreviewHandler", "org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants" ]
import com.google.gwt.user.client.Window; import org.opencms.ade.galleries.client.Messages; import org.opencms.ade.galleries.client.preview.CmsImagePreviewHandler; import org.opencms.ade.galleries.shared.I_CmsGalleryProviderConstants;
import com.google.gwt.user.client.*; import org.opencms.ade.galleries.client.*; import org.opencms.ade.galleries.client.preview.*; import org.opencms.ade.galleries.shared.*;
[ "com.google.gwt", "org.opencms.ade" ]
com.google.gwt; org.opencms.ade;
1,223,545
protected boolean hasCssClass(WebElement element, String className) { String classes = element.getAttribute("class"); if (classes == null || classes.isEmpty()) { return (className == null || className.isEmpty()); } for (String cls : classes.split(" ")) { if (...
boolean function(WebElement element, String className) { String classes = element.getAttribute("class"); if (classes == null classes.isEmpty()) { return (className == null className.isEmpty()); } for (String cls : classes.split(" ")) { if (className.equals(cls)) { return true; } } return false; }
/** * Checks if the given element has the given class name. * * Matches only full class names, i.e. has ("foo") does not match * class="foobar" * * @param element * @param className * @return */
Checks if the given element has the given class name. Matches only full class names, i.e. has ("foo") does not match class="foobar"
hasCssClass
{ "repo_name": "synes/vaadin", "path": "uitest/src/com/vaadin/tests/tb3/AbstractTB3Test.java", "license": "apache-2.0", "size": 39764 }
[ "org.openqa.selenium.WebElement" ]
import org.openqa.selenium.WebElement;
import org.openqa.selenium.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
471,980
@Deprecated public void writeImage(OutputStream[] out) throws IOException { Dimension buffer = map.getEdgeBuffer(); int totalWidth = (int) ((map.mapSize().width - 2 * buffer.width) * map.getZoom()); int totalHeight = (int) ((map.mapSize().height - 2 * buffer.height) * map.getZoom()); for...
void function(OutputStream[] out) throws IOException { Dimension buffer = map.getEdgeBuffer(); int totalWidth = (int) ((map.mapSize().width - 2 * buffer.width) * map.getZoom()); int totalHeight = (int) ((map.mapSize().height - 2 * buffer.height) * map.getZoom()); for (int i = 0; i < out.length; ++i) { int height = tota...
/** * Write a PNG-encoded snapshot of the map to the given OutputStreams, * dividing the map into vertical sections, one per stream * * @deprecated */
Write a PNG-encoded snapshot of the map to the given OutputStreams, dividing the map into vertical sections, one per stream
writeImage
{ "repo_name": "fifa0329/vassal", "path": "src/VASSAL/build/module/map/ImageSaver.java", "license": "lgpl-2.1", "size": 16139 }
[ "java.awt.Dimension", "java.awt.Graphics2D", "java.awt.Image", "java.awt.MediaTracker", "java.awt.Rectangle", "java.io.IOException", "java.io.OutputStream" ]
import java.awt.Dimension; import java.awt.Graphics2D; import java.awt.Image; import java.awt.MediaTracker; import java.awt.Rectangle; import java.io.IOException; import java.io.OutputStream;
import java.awt.*; import java.io.*;
[ "java.awt", "java.io" ]
java.awt; java.io;
1,268,219
public void setBlockAir(int x, int y, int z, int deltaPos, boolean matSp) { // How far should the player be able to 'reach'. boolean xCheck = false, yCheck = false, zCheck = false; if ((x - deltaPos) < player.posX && player.posX < (x + deltaPos)) xCheck = true; if ((y - deltaPos) < player.posY && player...
void function(int x, int y, int z, int deltaPos, boolean matSp) { boolean xCheck = false, yCheck = false, zCheck = false; if ((x - deltaPos) < player.posX && player.posX < (x + deltaPos)) xCheck = true; if ((y - deltaPos) < player.posY && player.posY < (y + deltaPos)) yCheck = true; if ((z - deltaPos) < player.posZ && ...
/** Setting material to null disregards check for like material block. * NOTE: Benefit of using this over BlockHelper's method is the additional * checks for whether the block looking at is allowed to be interacted with. * Example of this might be when "trying" to break bedrock which should clearly * not be all...
Setting material to null disregards check for like material block. checks for whether the block looking at is allowed to be interacted with. Example of this might be when "trying" to break bedrock which should clearly not be allowed
setBlockAir
{ "repo_name": "hockeyhurd/HCoreLib", "path": "com/hockeyhurd/hcorelib/api/util/Waila.java", "license": "mit", "size": 12127 }
[ "net.minecraft.block.material.Material" ]
import net.minecraft.block.material.Material;
import net.minecraft.block.material.*;
[ "net.minecraft.block" ]
net.minecraft.block;
1,912,176
private List<SourceFile> createExternInputs(List<String> files) throws FlagUsageException, IOException { if (files.isEmpty()) { return ImmutableList.of(SourceFile.fromCode("/dev/null", "")); } try { return createInputs(files, false); } catch (FlagUsageException e) { throw new F...
List<SourceFile> function(List<String> files) throws FlagUsageException, IOException { if (files.isEmpty()) { return ImmutableList.of(SourceFile.fromCode(STR, STRBad --externs flag. " + e.getMessage()); } }
/** * Creates JS extern inputs from a list of files. */
Creates JS extern inputs from a list of files
createExternInputs
{ "repo_name": "h4ck3rm1k3/javascript-closure-compiler-git", "path": "src/com/google/javascript/jscomp/AbstractCommandLineRunner.java", "license": "apache-2.0", "size": 67882 }
[ "com.google.common.collect.ImmutableList", "java.io.IOException", "java.util.List" ]
import com.google.common.collect.ImmutableList; import java.io.IOException; import java.util.List;
import com.google.common.collect.*; import java.io.*; import java.util.*;
[ "com.google.common", "java.io", "java.util" ]
com.google.common; java.io; java.util;
1,564,618
Document post() throws IOException;
Document post() throws IOException;
/** * Execute the request as a POST, and parse the result. * @return parsed Document * @throws java.net.MalformedURLException if the request URL is not a HTTP or HTTPS URL, or is otherwise malformed * @throws HttpStatusException if the response is not OK and HTTP response errors are not ignored ...
Execute the request as a POST, and parse the result
post
{ "repo_name": "Enoro/jsoup", "path": "src/main/java/org/jsoup/Connection.java", "license": "mit", "size": 20689 }
[ "java.io.IOException", "org.jsoup.nodes.Document" ]
import java.io.IOException; import org.jsoup.nodes.Document;
import java.io.*; import org.jsoup.nodes.*;
[ "java.io", "org.jsoup.nodes" ]
java.io; org.jsoup.nodes;
2,441,174
public Uri getPhotoUri() { if (mCurrentCallerInfo != null) { return ContentUris.withAppendedId(People.CONTENT_URI, mCurrentCallerInfo.person_id); } return null; }
Uri function() { if (mCurrentCallerInfo != null) { return ContentUris.withAppendedId(People.CONTENT_URI, mCurrentCallerInfo.person_id); } return null; }
/** * Convenience method used to retrieve the URI * representing the Photo file recorded in the attached * CallerInfo Object. */
Convenience method used to retrieve the URI representing the Photo file recorded in the attached CallerInfo Object
getPhotoUri
{ "repo_name": "tojames/PiPhone-Android-Client", "path": "src/com/magnesiumbeta/piphone/phone/ContactsAsyncHelper.java", "license": "gpl-3.0", "size": 12713 }
[ "android.content.ContentUris", "android.net.Uri", "android.provider.Contacts" ]
import android.content.ContentUris; import android.net.Uri; import android.provider.Contacts;
import android.content.*; import android.net.*; import android.provider.*;
[ "android.content", "android.net", "android.provider" ]
android.content; android.net; android.provider;
2,009,941
void onSafeBrowsingModeDetailsRequested(@SafeBrowsingState int safeBrowsingState); } private @Nullable RadioButtonWithDescriptionAndAuxButton mEnhancedProtection; private RadioButtonWithDescriptionAndAuxButton mStandardProtection; private RadioButtonWithDescription mNoProtection; private @S...
void onSafeBrowsingModeDetailsRequested(@SafeBrowsingState int safeBrowsingState); } private @Nullable RadioButtonWithDescriptionAndAuxButton mEnhancedProtection; private RadioButtonWithDescriptionAndAuxButton mStandardProtection; private RadioButtonWithDescription mNoProtection; private @SafeBrowsingState int mSafeBro...
/** * Notify that details of a Safe Browsing mode are requested. * @param safeBrowsingState The Safe Browsing mode that is requested for more details. */
Notify that details of a Safe Browsing mode are requested
onSafeBrowsingModeDetailsRequested
{ "repo_name": "ric2b/Vivaldi-browser", "path": "chromium/chrome/browser/safe_browsing/android/java/src/org/chromium/chrome/browser/safe_browsing/settings/RadioButtonGroupSafeBrowsingPreference.java", "license": "bsd-3-clause", "size": 8248 }
[ "android.content.Context", "android.util.AttributeSet", "androidx.annotation.Nullable", "org.chromium.chrome.browser.safe_browsing.SafeBrowsingState", "org.chromium.chrome.browser.safe_browsing.metrics.SettingsAccessPoint", "org.chromium.components.browser_ui.settings.ManagedPreferenceDelegate", "org.ch...
import android.content.Context; import android.util.AttributeSet; import androidx.annotation.Nullable; import org.chromium.chrome.browser.safe_browsing.SafeBrowsingState; import org.chromium.chrome.browser.safe_browsing.metrics.SettingsAccessPoint; import org.chromium.components.browser_ui.settings.ManagedPreferenceDel...
import android.content.*; import android.util.*; import androidx.annotation.*; import org.chromium.chrome.browser.safe_browsing.*; import org.chromium.chrome.browser.safe_browsing.metrics.*; import org.chromium.components.browser_ui.settings.*; import org.chromium.components.browser_ui.widget.*;
[ "android.content", "android.util", "androidx.annotation", "org.chromium.chrome", "org.chromium.components" ]
android.content; android.util; androidx.annotation; org.chromium.chrome; org.chromium.components;
726,226
public XMLEvent allocate(XMLStreamReader streamReader) throws XMLStreamException { if(streamReader == null ) throw new XMLStreamException(CommonResourceBundle.getInstance().getString("message.nullReader")); return getXMLEvent(streamReader); }
XMLEvent function(XMLStreamReader streamReader) throws XMLStreamException { if(streamReader == null ) throw new XMLStreamException(CommonResourceBundle.getInstance().getString(STR)); return getXMLEvent(streamReader); }
/** * This method allocates an event given the current state of the XMLStreamReader. * If this XMLEventAllocator does not have a one-to-one mapping between reader state * and events this method will return null. * @param streamReader The XMLStreamReader to allocate from * @return the event corresponding ...
This method allocates an event given the current state of the XMLStreamReader. If this XMLEventAllocator does not have a one-to-one mapping between reader state and events this method will return null
allocate
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxws/src/share/jaxws_classes/com/sun/xml/internal/fastinfoset/stax/events/StAXEventAllocatorBase.java", "license": "mit", "size": 9323 }
[ "com.sun.xml.internal.fastinfoset.CommonResourceBundle", "javax.xml.stream.XMLStreamException", "javax.xml.stream.XMLStreamReader", "javax.xml.stream.events.XMLEvent" ]
import com.sun.xml.internal.fastinfoset.CommonResourceBundle; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamReader; import javax.xml.stream.events.XMLEvent;
import com.sun.xml.internal.fastinfoset.*; import javax.xml.stream.*; import javax.xml.stream.events.*;
[ "com.sun.xml", "javax.xml" ]
com.sun.xml; javax.xml;
425,528
public void tableCell(String attr, String value, Tags.Generator body) { tag(_tableCell, attr, value, null, null, body); }
void function(String attr, String value, Tags.Generator body) { tag(_tableCell, attr, value, null, null, body); }
/** * Create a @code{fo:table-cell} tag with one attribute * @param attr name of the attribute. * @param value value of the attribute. * @param body the body generator for the tag. */
Create a @code{fo:table-cell} tag with one attribute
tableCell
{ "repo_name": "bckfnn/taggersty", "path": "xslfo/src/main/java/io/github/bckfnn/xslfo/XslfoTags.java", "license": "apache-2.0", "size": 171836 }
[ "io.github.bckfnn.taggersty.Tags" ]
import io.github.bckfnn.taggersty.Tags;
import io.github.bckfnn.taggersty.*;
[ "io.github.bckfnn" ]
io.github.bckfnn;
1,749,387
protected void validateStartDate() throws IllegalValueException { if (!task.getStartDate().value.isEmpty() && !task.getEndDate().value.isEmpty()) { DateTimeFormatter formatter = DateTimeFormatter.ofPattern("E MMM d HH:mm:ss zzz yyyy"); LocalDateTime startDate = LocalDateTime.parse(task.getStartDate().value,...
void function() throws IllegalValueException { if (!task.getStartDate().value.isEmpty() && !task.getEndDate().value.isEmpty()) { DateTimeFormatter formatter = DateTimeFormatter.ofPattern(STR); LocalDateTime startDate = LocalDateTime.parse(task.getStartDate().value, formatter); LocalDateTime endDate = LocalDateTime.pars...
/** * checks if the entered start date is valid (falls before end date) * @throws IllegalValueException if start date is found to be invalid */
checks if the entered start date is valid (falls before end date)
validateStartDate
{ "repo_name": "CS2103AUG2016-T17-C2/main", "path": "src/main/java/seedu/task/logic/parser/TaskParser.java", "license": "mit", "size": 10705 }
[ "java.time.LocalDateTime", "java.time.format.DateTimeFormatter" ]
import java.time.LocalDateTime; import java.time.format.DateTimeFormatter;
import java.time.*; import java.time.format.*;
[ "java.time" ]
java.time;
1,489,889
public String getKeyStorePW(FileSystemOptions opts) { return getString(opts, KS_PASSWD, ""); }
String function(FileSystemOptions opts) { return getString(opts, KS_PASSWD, ""); }
/** * get the keyStore password. * * @param opts The FileSystemOptions. * @return the key store password. */
get the keyStore password
getKeyStorePW
{ "repo_name": "virajsenevirathne/wso2-commons-vfs", "path": "core/src/main/java/org/apache/commons/vfs2/provider/ftps/FtpsFileSystemConfigBuilder.java", "license": "apache-2.0", "size": 15470 }
[ "org.apache.commons.vfs2.FileSystemOptions" ]
import org.apache.commons.vfs2.FileSystemOptions;
import org.apache.commons.vfs2.*;
[ "org.apache.commons" ]
org.apache.commons;
2,348,152
EClass getConfigurationDef();
EClass getConfigurationDef();
/** * Returns the meta object for class '{@link uk.ac.kcl.inf.robotics.rigidBodies.ConfigurationDef <em>Configuration Def</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Configuration Def</em>'. * @see uk.ac.kcl.inf.robotics.rigidBodies.ConfigurationDef ...
Returns the meta object for class '<code>uk.ac.kcl.inf.robotics.rigidBodies.ConfigurationDef Configuration Def</code>'.
getConfigurationDef
{ "repo_name": "szschaler/RigidBodies", "path": "uk.ac.kcl.inf.robotics.rigid_bodies/src-gen/uk/ac/kcl/inf/robotics/rigidBodies/RigidBodiesPackage.java", "license": "mit", "size": 163741 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
842,644
public void notifyPrivateCards(int playerId, List<Card> cards);
void function(int playerId, List<Card> cards);
/** * Sends the private cards to the given player and notify * all other players with hidden cards. * * @param playerId * @param cards */
Sends the private cards to the given player and notify all other players with hidden cards
notifyPrivateCards
{ "repo_name": "StarFlight/Poker-Galore", "path": "server/poker-logic/src/main/java/com/cubeia/poker/adapter/ServerAdapter.java", "license": "agpl-3.0", "size": 3050 }
[ "ca.ualberta.cs.poker.Card", "java.util.List" ]
import ca.ualberta.cs.poker.Card; import java.util.List;
import ca.ualberta.cs.poker.*; import java.util.*;
[ "ca.ualberta.cs", "java.util" ]
ca.ualberta.cs; java.util;
104,854
private Promise<Void> chainActionsRecursively(Promise<Void> promise, ListIterator<Pair<Action, ActionEvent>> iterator, boolean breakOnFail) { if (!iterator.hasNext()) { return promise; } ...
Promise<Void> function(Promise<Void> promise, ListIterator<Pair<Action, ActionEvent>> iterator, boolean breakOnFail) { if (!iterator.hasNext()) { return promise; } final Pair<Action, ActionEvent> actionWithEvent = iterator.next();
/** * Recursively chains the given promise with the promise that performs the next action from the given iterator. */
Recursively chains the given promise with the promise that performs the next action from the given iterator
chainActionsRecursively
{ "repo_name": "dhuebner/che", "path": "core/ide/che-core-ide-app/src/main/java/org/eclipse/che/ide/actions/ActionManagerImpl.java", "license": "epl-1.0", "size": 14795 }
[ "java.util.ListIterator", "org.eclipse.che.api.promises.client.Promise", "org.eclipse.che.ide.api.action.Action", "org.eclipse.che.ide.api.action.ActionEvent", "org.eclipse.che.ide.util.Pair" ]
import java.util.ListIterator; import org.eclipse.che.api.promises.client.Promise; import org.eclipse.che.ide.api.action.Action; import org.eclipse.che.ide.api.action.ActionEvent; import org.eclipse.che.ide.util.Pair;
import java.util.*; import org.eclipse.che.api.promises.client.*; import org.eclipse.che.ide.api.action.*; import org.eclipse.che.ide.util.*;
[ "java.util", "org.eclipse.che" ]
java.util; org.eclipse.che;
748,697
private void analyzeFeedKey(Node aNode) { NodeIterator iterator = XMLUtils.getNodeIterator(getXhtmlDoc(), aNode); int feedKeyPositionState = FEED_KEY_POS_UNDEFINDED; String keywordValue = ""; Node n; while ((n = iterator.nextNode()) != null) { if (XMLUtils....
void function(Node aNode) { NodeIterator iterator = XMLUtils.getNodeIterator(getXhtmlDoc(), aNode); int feedKeyPositionState = FEED_KEY_POS_UNDEFINDED; String keywordValue = STRSTR keyword is already present for this hfeedSTRSTRMandatory hfeed child keyword STR is missing", aNode); engine = ValidatorCache.getInstance()...
/** * Performs validation of feed-key mandatory keyword, contained inside a class attribute value. <br> * * @param aNode an hfeed node. */
Performs validation of feed-key mandatory keyword, contained inside a class attribute value.
analyzeFeedKey
{ "repo_name": "andreacastello/netbeans-hatom-plugin", "path": "src/it/pronetics/madstore/hatom/netbeans/validator/engine/HfeedAnalyzer.java", "license": "apache-2.0", "size": 10096 }
[ "org.w3c.dom.Node", "org.w3c.dom.traversal.NodeIterator" ]
import org.w3c.dom.Node; import org.w3c.dom.traversal.NodeIterator;
import org.w3c.dom.*; import org.w3c.dom.traversal.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,741,920
public ServiceFuture<Void> rotateClusterCertificatesAsync(String resourceGroupName, String resourceName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(rotateClusterCertificatesWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback); }
ServiceFuture<Void> function(String resourceGroupName, String resourceName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(rotateClusterCertificatesWithServiceResponseAsync(resourceGroupName, resourceName), serviceCallback); }
/** * Rotate certificates of a managed cluster. * Rotate certificates of a managed cluster. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the managed cluster resource. * @param serviceCallback the async ServiceCallback to handle successful a...
Rotate certificates of a managed cluster. Rotate certificates of a managed cluster
rotateClusterCertificatesAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/containerservice/mgmt-v2020_07_01/src/main/java/com/microsoft/azure/management/containerservice/v2020_07_01/implementation/ManagedClustersInner.java", "license": "mit", "size": 155942 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,050,531
@Override public boolean needsTaskCommit(TaskAttemptContext context ) throws IOException { return workPath != null && outputFileSystem.exists(workPath); }
boolean function(TaskAttemptContext context ) throws IOException { return workPath != null && outputFileSystem.exists(workPath); }
/** * Did this task write any files in the work directory? * @param context the task's context */
Did this task write any files in the work directory
needsTaskCommit
{ "repo_name": "karahiyo/hanoi-hadoop-2.0.0-cdh", "path": "src/mapred/org/apache/hadoop/mapreduce/lib/output/FileOutputCommitter.java", "license": "apache-2.0", "size": 9820 }
[ "java.io.IOException", "org.apache.hadoop.mapreduce.TaskAttemptContext" ]
import java.io.IOException; import org.apache.hadoop.mapreduce.TaskAttemptContext;
import java.io.*; import org.apache.hadoop.mapreduce.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
980,206
protected void logEnd(String url, String request, String response) { m_endTime = System.currentTimeMillis(); if (Environment.debug) { StringBuilder sb = new StringBuilder(1024); if (m_startTime == -1) { sb.append("No start t...
void function(String url, String request, String response) { m_endTime = System.currentTimeMillis(); if (Environment.debug) { StringBuilder sb = new StringBuilder(1024); if (m_startTime == -1) { sb.append(STR); } else { sb.append(STR).append((m_endTime - m_startTime)).append(STR); } sb.append(STR).append(url).append("....
/** * This method should be called to record the end time of a request. It will log the time the request took and the request * itself * * @param url The URL to with the call was posted. * @param request The request that was executed. */
This method should be called to record the end time of a request. It will log the time the request took and the request itself
logEnd
{ "repo_name": "MarkHooijkaas/caas-cordys-svn", "path": "src/java/org/kisst/cordys/caas/soap/BaseCaller.java", "license": "gpl-3.0", "size": 18161 }
[ "org.kisst.cordys.caas.main.Environment" ]
import org.kisst.cordys.caas.main.Environment;
import org.kisst.cordys.caas.main.*;
[ "org.kisst.cordys" ]
org.kisst.cordys;
2,826,902
default Consumer13<T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> acceptPartially(Tuple3<? extends T1, ? extends T2, ? extends T3> args) { return (v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> accept(args.v1, args.v2, args.v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15,...
default Consumer13<T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16> acceptPartially(Tuple3<? extends T1, ? extends T2, ? extends T3> args) { return (v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> accept(args.v1, args.v2, args.v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16); }
/** * Let this consumer partially accept the arguments. */
Let this consumer partially accept the arguments
acceptPartially
{ "repo_name": "jOOQ/jOOL", "path": "jOOL/src/main/java/org/jooq/lambda/function/Consumer16.java", "license": "apache-2.0", "size": 15316 }
[ "org.jooq.lambda.tuple.Tuple3" ]
import org.jooq.lambda.tuple.Tuple3;
import org.jooq.lambda.tuple.*;
[ "org.jooq.lambda" ]
org.jooq.lambda;
13,084
protected Node exitBy(Token node) throws ParseException { return node; }
Node function(Token node) throws ParseException { return node; }
/** * Called when exiting a parse tree node. * * @param node the node being exited * * @return the node to add to the parse tree, or * null if no parse tree should be created * * @throws ParseException if the node analysis discovered errors */
Called when exiting a parse tree node
exitBy
{ "repo_name": "richb-hanover/mibble-2.9.2", "path": "src/java/net/percederberg/mibble/asn1/Asn1Analyzer.java", "license": "gpl-2.0", "size": 275483 }
[ "net.percederberg.grammatica.parser.Node", "net.percederberg.grammatica.parser.ParseException", "net.percederberg.grammatica.parser.Token" ]
import net.percederberg.grammatica.parser.Node; import net.percederberg.grammatica.parser.ParseException; import net.percederberg.grammatica.parser.Token;
import net.percederberg.grammatica.parser.*;
[ "net.percederberg.grammatica" ]
net.percederberg.grammatica;
447,388
void addEpsgCodes(Collection<Integer> epsgCodes);
void addEpsgCodes(Collection<Integer> epsgCodes);
/** * Add the specified epsg codes. * * @param epsgCodes * the new epsg codes */
Add the specified epsg codes
addEpsgCodes
{ "repo_name": "nuest/SOS", "path": "core/api/src/main/java/org/n52/sos/cache/WritableContentCache.java", "license": "gpl-2.0", "size": 46330 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,630,671
if (filterRange == null || filterRange.isEmpty()) { return Maps.newTreeMap(); } else if (filterRange.equals(Range.all())) { return values; } if (filterRange.hasUpperBound() && !filterRange.hasLowerBound()) { return values.headMap(filterRange.upperEndpoint(), ...
if (filterRange == null filterRange.isEmpty()) { return Maps.newTreeMap(); } else if (filterRange.equals(Range.all())) { return values; } if (filterRange.hasUpperBound() && !filterRange.hasLowerBound()) { return values.headMap(filterRange.upperEndpoint(), upperBoundInclusive(filterRange)); } else if (filterRange.hasLow...
/** * for NavigableMap sorted by C, given a range of C, return the sub map whose key falls in the range */
for NavigableMap sorted by C, given a range of C, return the sub map whose key falls in the range
filter
{ "repo_name": "apache/kylin", "path": "core-common/src/main/java/org/apache/kylin/common/util/RangeUtil.java", "license": "apache-2.0", "size": 8619 }
[ "org.apache.kylin.shaded.com.google.common.collect.Maps", "org.apache.kylin.shaded.com.google.common.collect.Range" ]
import org.apache.kylin.shaded.com.google.common.collect.Maps; import org.apache.kylin.shaded.com.google.common.collect.Range;
import org.apache.kylin.shaded.com.google.common.collect.*;
[ "org.apache.kylin" ]
org.apache.kylin;
1,085,668
public Address getAddress(String addressId) { LOG.debug("enter: addressId: {}", addressId); String url = serviceLocator.getCustomer() + CustomerRouter.getAddressWithId(addressId); Address address = restTemplate.getForObject(url, Address.class); LOG.debug("exit: Address: {}", address); return addre...
Address function(String addressId) { LOG.debug(STR, addressId); String url = serviceLocator.getCustomer() + CustomerRouter.getAddressWithId(addressId); Address address = restTemplate.getForObject(url, Address.class); LOG.debug(STR, address); return address; }
/** * Gets Address from customer service. * * @param addressId the address id * @return the Address */
Gets Address from customer service
getAddress
{ "repo_name": "reactivesw/customer_server", "path": "src/main/java/io/reactivesw/order/cart/application/service/CartRestClient.java", "license": "mit", "size": 3583 }
[ "io.reactivesw.customer.customer.application.model.Address", "io.reactivesw.route.CustomerRouter" ]
import io.reactivesw.customer.customer.application.model.Address; import io.reactivesw.route.CustomerRouter;
import io.reactivesw.customer.customer.application.model.*; import io.reactivesw.route.*;
[ "io.reactivesw.customer", "io.reactivesw.route" ]
io.reactivesw.customer; io.reactivesw.route;
2,498,746
public static int advance(Iterator<?> iterator, int numberToAdvance) { checkNotNull(iterator); checkArgument(numberToAdvance >= 0, "number to advance cannot be negative"); int i; for (i = 0; i < numberToAdvance && iterator.hasNext(); i++) { iterator.next(); } return i; }
static int function(Iterator<?> iterator, int numberToAdvance) { checkNotNull(iterator); checkArgument(numberToAdvance >= 0, STR); int i; for (i = 0; i < numberToAdvance && iterator.hasNext(); i++) { iterator.next(); } return i; }
/** * Calls {@code next()} on {@code iterator}, either {@code numberToAdvance} times * or until {@code hasNext()} returns {@code false}, whichever comes first. * * @return the number of elements the iterator was advanced * @since 13.0 (since 3.0 as {@code Iterators.skip}) */
Calls next() on iterator, either numberToAdvance times or until hasNext() returns false, whichever comes first
advance
{ "repo_name": "10xEngineer/My-Wallet-Android", "path": "src/com/google/common/collect/Iterators.java", "license": "gpl-3.0", "size": 48447 }
[ "com.google.common.base.Preconditions", "java.util.Iterator" ]
import com.google.common.base.Preconditions; import java.util.Iterator;
import com.google.common.base.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,201,218
protected static List<Class<?>> findClasses(final File directory, final String packageName) throws ClassNotFoundException { final List<Class<?>> classes = new ArrayList<Class<?>>(); if (!directory.exists()) { return classes; } final File[] files = directory.listFiles(); for (final...
static List<Class<?>> function(final File directory, final String packageName) throws ClassNotFoundException { final List<Class<?>> classes = new ArrayList<Class<?>>(); if (!directory.exists()) { return classes; } final File[] files = directory.listFiles(); for (final File file : files) { if (file.isDirectory()) { asse...
/** * Recursively find Classes from a given directory * * @param directory * directory to look at * @param packageName * package to look into * @return list of classes in the package * @throws ClassNotFoundException */
Recursively find Classes from a given directory
findClasses
{ "repo_name": "bradh/mrgeo", "path": "mrgeo-core/src/main/java/org/mrgeo/data/tile/MrsTileReader.java", "license": "apache-2.0", "size": 4792 }
[ "java.io.File", "java.util.ArrayList", "java.util.List" ]
import java.io.File; import java.util.ArrayList; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,572,036
@Override protected void onDraw(Canvas canvas) { drawBackground(canvas); float scale = (float) getWidth(); canvas.save(Canvas.MATRIX_SAVE_FLAG); canvas.scale(scale, scale); drawNeedle(canvas); canvas.restore(); if (needleNeedsToMove()) { mo...
void function(Canvas canvas) { drawBackground(canvas); float scale = (float) getWidth(); canvas.save(Canvas.MATRIX_SAVE_FLAG); canvas.scale(scale, scale); drawNeedle(canvas); canvas.restore(); if (needleNeedsToMove()) { moveNeedle(); } }
/** * Draw background bitmap and move needle if needed * * @param canvas */
Draw background bitmap and move needle if needed
onDraw
{ "repo_name": "szeidner/movement-gauge", "path": "app/src/main/java/com/stevezeidner/movementgauge/ui/view/GaugeView.java", "license": "apache-2.0", "size": 12773 }
[ "android.graphics.Canvas" ]
import android.graphics.Canvas;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
2,460,571
Bishop bishop1 = new Bishop(4, 4); Bishop bishop2 = new Bishop(3, 3); Board board = new Board(); board.figureTouch(bishop1); board.figureTouch(bishop2); Figure[] result = board.getFigures(); assertThat(8, is(result[0].getPosition().getHorizontal() + result[0].getPosition(...
Bishop bishop1 = new Bishop(4, 4); Bishop bishop2 = new Bishop(3, 3); Board board = new Board(); board.figureTouch(bishop1); board.figureTouch(bishop2); Figure[] result = board.getFigures(); assertThat(8, is(result[0].getPosition().getHorizontal() + result[0].getPosition().getHorizontal())); assertThat(6, is(result[1]....
/** * Test create Board class and add figures in massif figures. */
Test create Board class and add figures in massif figures
whenThenTestedBoardClassAddFigures
{ "repo_name": "Zorg905/job4j", "path": "chapter_002/src/test/java/ru/batov/chess/BoardTest.java", "license": "apache-2.0", "size": 4171 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
1,616,801
@Override public void doSave(IProgressMonitor progressMonitor) { // Save only resources that have actually changed. // final Map<Object, Object> saveOptions = new HashMap<Object, Object>(); saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); saveOptio...
void function(IProgressMonitor progressMonitor) { saveOptions.put(Resource.OPTION_SAVE_ONLY_IF_CHANGED, Resource.OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER); saveOptions.put(Resource.OPTION_LINE_DELIMITER, Resource.OPTION_LINE_DELIMITER_UNSPECIFIED);
/** * This is for implementing {@link IEditorPart} and simply saves the model file. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This is for implementing <code>IEditorPart</code> and simply saves the model file.
doSave
{ "repo_name": "CarlAtComputer/tracker", "path": "playground/other_gef/Model.editor/src/model/presentation/ModelEditor.java", "license": "gpl-2.0", "size": 53935 }
[ "org.eclipse.core.runtime.IProgressMonitor", "org.eclipse.emf.ecore.resource.Resource" ]
import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.emf.ecore.resource.Resource;
import org.eclipse.core.runtime.*; import org.eclipse.emf.ecore.resource.*;
[ "org.eclipse.core", "org.eclipse.emf" ]
org.eclipse.core; org.eclipse.emf;
2,529,414
public void setUser(CmsUser user) { m_user = user; }
void function(CmsUser user) { m_user = user; }
/** * Sets the current workplace user.<p> * * @param user the current workplace user */
Sets the current workplace user
setUser
{ "repo_name": "comundus/opencms-comundus", "path": "src/main/java/org/opencms/workplace/CmsWorkplaceSettings.java", "license": "lgpl-2.1", "size": 20043 }
[ "org.opencms.file.CmsUser" ]
import org.opencms.file.CmsUser;
import org.opencms.file.*;
[ "org.opencms.file" ]
org.opencms.file;
2,771,288
public CreationData creationData() { return this.creationData; }
CreationData function() { return this.creationData; }
/** * Get the creationData property: Disk source information. CreationData information cannot be changed after the disk * has been created. * * @return the creationData value. */
Get the creationData property: Disk source information. CreationData information cannot be changed after the disk has been created
creationData
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/DiskInner.java", "license": "mit", "size": 18861 }
[ "com.azure.resourcemanager.compute.models.CreationData" ]
import com.azure.resourcemanager.compute.models.CreationData;
import com.azure.resourcemanager.compute.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
2,911,733
public static boolean applyFileExistsValidation(Set<File> fileDetails, String fileName) { Iterator<File> iterator = fileDetails.iterator(); while (iterator.hasNext()) { File file = (File) iterator.next(); if(file.getName().equalsIgnoreCase(fileName)) return false; } return true; ...
static boolean function(Set<File> fileDetails, String fileName) { Iterator<File> iterator = fileDetails.iterator(); while (iterator.hasNext()) { File file = (File) iterator.next(); if(file.getName().equalsIgnoreCase(fileName)) return false; } return true; }
/** * Used to check file exists in current fileUpload tag * @param fileDetails : set of file details * @param fileName : newly added file name * @return true if validation error didn't arise alse false */
Used to check file exists in current fileUpload tag
applyFileExistsValidation
{ "repo_name": "abmindiarepomanager/ABMOpenMainet", "path": "Mainet1.0/MainetServiceParent/MainetServiceCommon/src/main/java/com/abm/mainet/common/integration/dms/mapper/FileUploadValidator.java", "license": "gpl-3.0", "size": 5855 }
[ "java.io.File", "java.util.Iterator", "java.util.Set" ]
import java.io.File; import java.util.Iterator; import java.util.Set;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,176,440
public static CharsRef analyze(Analyzer analyzer, String text, CharsRef reuse) throws IOException { TokenStream ts = analyzer.tokenStream("", new StringReader(text)); CharTermAttribute termAtt = ts.addAttribute(CharTermAttribute.class); PositionIncrementAttribute posIncAtt = ts.addAttribute(Positi...
static CharsRef function(Analyzer analyzer, String text, CharsRef reuse) throws IOException { TokenStream ts = analyzer.tokenStream(STRterm: STR analyzed to a zero-length tokenSTRterm: STR analyzed to a token with posinc != 1STRterm: STR was completely eliminated by analyzer"); } return reuse; }
/** Sugar: analyzes the text with the analyzer and * separates by {@link SynonymMap#WORD_SEPARATOR}. * reuse and its chars must not be null. */
Sugar: analyzes the text with the analyzer and separates by <code>SynonymMap#WORD_SEPARATOR</code>
analyze
{ "repo_name": "pkarmstr/NYBC", "path": "solr-4.2.1/lucene/analysis/common/src/java/org/apache/lucene/analysis/synonym/SynonymMap.java", "license": "apache-2.0", "size": 12075 }
[ "java.io.IOException", "org.apache.lucene.analysis.Analyzer", "org.apache.lucene.analysis.TokenStream", "org.apache.lucene.util.CharsRef" ]
import java.io.IOException; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.TokenStream; import org.apache.lucene.util.CharsRef;
import java.io.*; import org.apache.lucene.analysis.*; import org.apache.lucene.util.*;
[ "java.io", "org.apache.lucene" ]
java.io; org.apache.lucene;
1,993,517
@Unstable public long backlinksCount(AttachmentReference attachmentReference) throws AttachmentException { XWikiContext xcontext = this.xWikiContextProvider.get(); try { return xcontext.getWiki().getStore().loadBacklinks(attachmentReference, true, xcontext).size(); } cat...
long function(AttachmentReference attachmentReference) throws AttachmentException { XWikiContext xcontext = this.xWikiContextProvider.get(); try { return xcontext.getWiki().getStore().loadBacklinks(attachmentReference, true, xcontext).size(); } catch (XWikiException e) { throw new AttachmentException( String.format(STR...
/** * Count the number of backlinks toward a given attachment. * * @param attachmentReference an attachment reference * @return the number of backlinks to the attachment * @since 14.2RC1 */
Count the number of backlinks toward a given attachment
backlinksCount
{ "repo_name": "xwiki/xwiki-platform", "path": "xwiki-platform-core/xwiki-platform-attachment/xwiki-platform-attachment-api/src/main/java/org/xwiki/attachment/script/AttachmentScriptService.java", "license": "lgpl-2.1", "size": 6561 }
[ "com.xpn.xwiki.XWikiContext", "com.xpn.xwiki.XWikiException", "org.xwiki.attachment.AttachmentException", "org.xwiki.model.reference.AttachmentReference" ]
import com.xpn.xwiki.XWikiContext; import com.xpn.xwiki.XWikiException; import org.xwiki.attachment.AttachmentException; import org.xwiki.model.reference.AttachmentReference;
import com.xpn.xwiki.*; import org.xwiki.attachment.*; import org.xwiki.model.reference.*;
[ "com.xpn.xwiki", "org.xwiki.attachment", "org.xwiki.model" ]
com.xpn.xwiki; org.xwiki.attachment; org.xwiki.model;
1,958,459
protected void handleWritable() { int oldState; oldState = clearFlags(READ_REQUIRES_WRITE); if (allAreSet(oldState, READ_REQUIRES_WRITE)) { unparkReadWaiters(); if (allAreSet(oldState, READ_REQUESTED)) { channel.wakeupReads(); } } ...
void function() { int oldState; oldState = clearFlags(READ_REQUIRES_WRITE); if (allAreSet(oldState, READ_REQUIRES_WRITE)) { unparkReadWaiters(); if (allAreSet(oldState, READ_REQUESTED)) { channel.wakeupReads(); } } if (allAreClear(oldState, WRITE_READY) && anyAreSet(oldState, WRITE_REQUIRES_READ WRITE_REQUIRES_EXT)) { ...
/** * Called when the underlying channel is writable. */
Called when the underlying channel is writable
handleWritable
{ "repo_name": "dmlloyd/xnio", "path": "api/src/main/java/org/xnio/channels/TranslatingSuspendableChannel.java", "license": "apache-2.0", "size": 33973 }
[ "org.xnio.Bits", "org.xnio.ChannelListener", "org.xnio.ChannelListeners" ]
import org.xnio.Bits; import org.xnio.ChannelListener; import org.xnio.ChannelListeners;
import org.xnio.*;
[ "org.xnio" ]
org.xnio;
875,005
float layerSize(int p_76490_1_) { if ((float) p_76490_1_ < (float) this.heightLimit * 0.3F) { return -1.0F; } else { float f = (float) this.heightLimit / 2.0F; float f1 = f - (float) p_76490_1_; float f2 = MathHelper.sqrt(f * f - f1 * f1); ...
float layerSize(int p_76490_1_) { if ((float) p_76490_1_ < (float) this.heightLimit * 0.3F) { return -1.0F; } else { float f = (float) this.heightLimit / 2.0F; float f1 = f - (float) p_76490_1_; float f2 = MathHelper.sqrt(f * f - f1 * f1); if (f1 == 0.0F) { f2 = f; } else if (Math.abs(f1) >= f) { return 0.0F; } return ...
/** * Gets the rough size of a layer of the tree. */
Gets the rough size of a layer of the tree
layerSize
{ "repo_name": "Team-RTG/Realistic-Terrain-Generation", "path": "src/main/java/rtg/api/world/gen/feature/tree/rtg/TreeRTGQuercusRobur.java", "license": "gpl-3.0", "size": 14317 }
[ "net.minecraft.util.math.MathHelper" ]
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.*;
[ "net.minecraft.util" ]
net.minecraft.util;
266,252
public List<Facet> getAllPermutations() { List<Facet> result = new ArrayList<>(MAX_PERMUTATIONS); boolean[][] copy = deepCopy(sides); for (int i = 0; i < MAX_PERMUTATIONS; i++) { if (i == SIDES_COUNT) { mirror(copy); } result.add(new Fac...
List<Facet> function() { List<Facet> result = new ArrayList<>(MAX_PERMUTATIONS); boolean[][] copy = deepCopy(sides); for (int i = 0; i < MAX_PERMUTATIONS; i++) { if (i == SIDES_COUNT) { mirror(copy); } result.add(new Facet(copy)); turnRight(copy); } return result; }
/** * Return all possible permutation of current facet */
Return all possible permutation of current facet
getAllPermutations
{ "repo_name": "dmironenko/cubes", "path": "src/main/java/com/cubes/Facet.java", "license": "gpl-2.0", "size": 3548 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,467,635
private static NlsString padRight(NlsString s, int length) { if (s.getValue().length() >= length) { return s; } return s.copy(padRight(s.getValue(), length)); }
static NlsString function(NlsString s, int length) { if (s.getValue().length() >= length) { return s; } return s.copy(padRight(s.getValue(), length)); }
/** Returns an {@link NlsString} with spaces to make it at least a given * length. */
Returns an <code>NlsString</code> with spaces to make it at least a given
padRight
{ "repo_name": "wanglan/calcite", "path": "core/src/main/java/org/apache/calcite/rex/RexBuilder.java", "license": "apache-2.0", "size": 45773 }
[ "org.apache.calcite.util.NlsString" ]
import org.apache.calcite.util.NlsString;
import org.apache.calcite.util.*;
[ "org.apache.calcite" ]
org.apache.calcite;
2,034,322
public static Date parseHttpDateFormat(String httpDateFormat) throws IllegalArgumentException { return parseHttpDateFormatToDateTime(httpDateFormat).toDate(); }
static Date function(String httpDateFormat) throws IllegalArgumentException { return parseHttpDateFormatToDateTime(httpDateFormat).toDate(); }
/** * Can be used to parse http times. For instance something like a http header * Date: Tue, 26 Mar 2013 13:47:13 GMT * <p/> * INFO: consider the JodaTime based DateUtil.parseHttpDateFormatToDateTime(...) version * * @param httpDateFormat in http format: Date: Tue, 26 Mar 2013 13:47:13 GM...
Can be used to parse http times. For instance something like a http header Date: Tue, 26 Mar 2013 13:47:13 GMT
parseHttpDateFormat
{ "repo_name": "shootboss/goja", "path": "goja-core/src/main/java/goja/kits/base/DateKit.java", "license": "mit", "size": 6459 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,016,898
public List<Evidence> getEvidences() { return evidences; }
List<Evidence> function() { return evidences; }
/** * Returns the list of evidences. * * @return evidences the list of evidences. */
Returns the list of evidences
getEvidences
{ "repo_name": "PathVisio/libGPML", "path": "org.pathvisio.lib/src/main/java/org/pathvisio/model/PathwayModel.java", "license": "apache-2.0", "size": 39949 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,185,024
private Transform matchMath(Class type) throws Exception { if(type == BigDecimal.class) { return new BigDecimalTransform(); } if(type == BigInteger.class) { return new BigIntegerTransform(); } return null; }
Transform function(Class type) throws Exception { if(type == BigDecimal.class) { return new BigDecimalTransform(); } if(type == BigInteger.class) { return new BigIntegerTransform(); } return null; }
/** * This is used to resolve <code>Transform</code> implementations * that relate to the <code>java.math</code> package. If the type * does not resolve to a valid transform then this method will * throw an exception to indicate that no stock transform exists * for the specified type. * * ...
This is used to resolve <code>Transform</code> implementations that relate to the <code>java.math</code> package. If the type does not resolve to a valid transform then this method will throw an exception to indicate that no stock transform exists for the specified type
matchMath
{ "repo_name": "unisx/simplexml", "path": "src/org/simpleframework/xml/transform/PackageMatcher.java", "license": "apache-2.0", "size": 9154 }
[ "java.math.BigDecimal", "java.math.BigInteger" ]
import java.math.BigDecimal; import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
931,830
public void setInput(Map<String, Object> input) { this.input = input; }
void function(Map<String, Object> input) { this.input = input; }
/** * Sets the input. * * @param input the input */
Sets the input
setInput
{ "repo_name": "JoshSharpe/java-sdk", "path": "conversation/src/main/java/com/ibm/watson/developer_cloud/conversation/v1/model/MessageResponse.java", "license": "apache-2.0", "size": 5133 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,931,523
private static int getNationalMaxspeed(final Country aCountry, final WayClasses aWayClass, final Way aWay, final IDataSet aMap) { if (aCountry != null) { try { int maxspeed = aCountry.getMaxspeed(aWayClass, aWay, aMap); if (maxspeed > -1) { ...
static int function(final Country aCountry, final WayClasses aWayClass, final Way aWay, final IDataSet aMap) { if (aCountry != null) { try { int maxspeed = aCountry.getMaxspeed(aWayClass, aWay, aMap); if (maxspeed > -1) { return maxspeed; } } catch (Exception e) { LOG.log(Level.SEVERE, STR + aCountry.getName(), e); } }...
/** * Return the maxspeed for a given highway-type * in a given cfountry. * If unknown Integer.MAX_VALUE is returned. * @param aCountry the country * @param aWayClass the highway-type * @param aWay the specific way. (required for some national rules) * @param aMap the map we op...
Return the maxspeed for a given highway-type in a given cfountry. If unknown Integer.MAX_VALUE is returned
getNationalMaxspeed
{ "repo_name": "xafero/travelingsales", "path": "osmnavigation/src/main/java/org/openstreetmap/travelingsalesman/navigation/traffic/TrafficRuleManager.java", "license": "gpl-3.0", "size": 17277 }
[ "java.util.logging.Level", "org.openstreetmap.osm.data.IDataSet", "org.openstreetmap.osmosis.core.domain.v0_6.Way" ]
import java.util.logging.Level; import org.openstreetmap.osm.data.IDataSet; import org.openstreetmap.osmosis.core.domain.v0_6.Way;
import java.util.logging.*; import org.openstreetmap.osm.data.*; import org.openstreetmap.osmosis.core.domain.v0_6.*;
[ "java.util", "org.openstreetmap.osm", "org.openstreetmap.osmosis" ]
java.util; org.openstreetmap.osm; org.openstreetmap.osmosis;
2,876,231
String asEndpointUri(String scheme, Map<String, String> properties) throws URISyntaxException;
String asEndpointUri(String scheme, Map<String, String> properties) throws URISyntaxException;
/** * Creates an endpoint uri in XML style from the information from the properties * * @param scheme the endpoint schema * @param properties the properties as key value pairs * @return the constructed endpoint uri * @throws java.net.URISyntaxException is thrown if there is encoding error ...
Creates an endpoint uri in XML style from the information from the properties
asEndpointUri
{ "repo_name": "grgrzybek/camel", "path": "platforms/catalog/src/main/java/org/apache/camel/catalog/CamelCatalog.java", "license": "apache-2.0", "size": 6355 }
[ "java.net.URISyntaxException", "java.util.Map" ]
import java.net.URISyntaxException; import java.util.Map;
import java.net.*; import java.util.*;
[ "java.net", "java.util" ]
java.net; java.util;
2,642,735
private void refreshContent() { // check for a cached dining list to use final String cachedDiningList = mPreferences.getString(DINING_LIST_KEY, null); final long cachedDiningListDate = mPreferences.getLong(DINING_LIST_DATE_KEY, 0); if (cachedDiningList == null || cachedDiningListDat...
void function() { final String cachedDiningList = mPreferences.getString(DINING_LIST_KEY, null); final long cachedDiningListDate = mPreferences.getLong(DINING_LIST_DATE_KEY, 0); if (cachedDiningList == null cachedDiningListDate == 0 System.currentTimeMillis() - cachedDiningListDate >= MS_IN_2_WEEKS) { mDiningList = new...
/** * Refreshes the content, for initialization and swipe-refresh */
Refreshes the content, for initialization and swipe-refresh
refreshContent
{ "repo_name": "hanli1/bigredapp-android", "path": "app/src/main/java/is/genki/bigredapp/android/DiningListFragment.java", "license": "mit", "size": 22275 }
[ "org.json.JSONArray", "org.json.JSONException" ]
import org.json.JSONArray; import org.json.JSONException;
import org.json.*;
[ "org.json" ]
org.json;
321,788
public boolean addProduct(final Product product) { if (product != null) { if (productList == null) { productList = new ArrayList<Product>(); } return productList.add(product); } return false; }
boolean function(final Product product) { if (product != null) { if (productList == null) { productList = new ArrayList<Product>(); } return productList.add(product); } return false; }
/** * Add a product to the actual product list. * * @param product * a Product object * @return true if it has been added to the list, false if it is not */
Add a product to the actual product list
addProduct
{ "repo_name": "VictorPurMar/PizzaNowAR", "path": "ARcowabungaproject-model/src/org/escoladeltreball/arcowabungaproject/model/ShoppingCart.java", "license": "gpl-3.0", "size": 6185 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,424,749
@Test public void testFulfillingSlotRequestsWithUnusedOfferedSlots() throws Exception { try (SlotPoolImpl slotPool = createAndSetUpSlotPool(resourceManagerGateway)) { final ArrayBlockingQueue<AllocationID> allocationIds = new ArrayBlockingQueue<>(2); resourceManagerGateway.setRe...
void function() throws Exception { try (SlotPoolImpl slotPool = createAndSetUpSlotPool(resourceManagerGateway)) { final ArrayBlockingQueue<AllocationID> allocationIds = new ArrayBlockingQueue<>(2); resourceManagerGateway.setRequestSlotConsumer( (SlotRequest slotRequest) -> allocationIds.offer(slotRequest.getAllocationI...
/** * Tests that unused offered slots are directly used to fulfill pending slot requests. * * <p>Moreover it tests that the old slot request is canceled * * <p>See FLINK-8089, FLINK-8934 */
Tests that unused offered slots are directly used to fulfill pending slot requests. Moreover it tests that the old slot request is canceled See FLINK-8089, FLINK-8934
testFulfillingSlotRequestsWithUnusedOfferedSlots
{ "repo_name": "tillrohrmann/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/jobmaster/slotpool/SlotPoolImplTest.java", "license": "apache-2.0", "size": 39137 }
[ "java.util.concurrent.ArrayBlockingQueue", "java.util.concurrent.CompletableFuture", "java.util.concurrent.ExecutionException", "org.apache.flink.runtime.clusterframework.types.AllocationID", "org.apache.flink.runtime.jobmaster.SlotRequestId", "org.apache.flink.runtime.jobmaster.slotpool.SlotPoolUtils", ...
import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.CompletableFuture; import java.util.concurrent.ExecutionException; import org.apache.flink.runtime.clusterframework.types.AllocationID; import org.apache.flink.runtime.jobmaster.SlotRequestId; import org.apache.flink.runtime.jobmaster.slotpool....
import java.util.concurrent.*; import org.apache.flink.runtime.clusterframework.types.*; import org.apache.flink.runtime.jobmaster.*; import org.apache.flink.runtime.jobmaster.slotpool.*; import org.apache.flink.runtime.resourcemanager.*; import org.apache.flink.util.*; import org.junit.*;
[ "java.util", "org.apache.flink", "org.junit" ]
java.util; org.apache.flink; org.junit;
2,546,126
public void handle(Callback callback, Authentication authentication) throws IOException, UnsupportedCallbackException { if (callback instanceof NameCallback) { NameCallback ncb = (NameCallback) callback; String username; Object principal = authentication.getPrincipal(); if (principal instanceof Us...
void function(Callback callback, Authentication authentication) throws IOException, UnsupportedCallbackException { if (callback instanceof NameCallback) { NameCallback ncb = (NameCallback) callback; String username; Object principal = authentication.getPrincipal(); if (principal instanceof UserDetails) { username = ((U...
/** * If the callback passed to the 'handle' method is an instance of NameCallback, the * JaasNameCallbackHandler will call, * callback.setName(authentication.getPrincipal().toString()). * * @param callback * @param authentication * * @throws IOException * @throws UnsupportedCallbackException */
If the callback passed to the 'handle' method is an instance of NameCallback, the JaasNameCallbackHandler will call, callback.setName(authentication.getPrincipal().toString())
handle
{ "repo_name": "panchenko/spring-security", "path": "core/src/main/java/org/springframework/security/authentication/jaas/JaasNameCallbackHandler.java", "license": "apache-2.0", "size": 2520 }
[ "java.io.IOException", "javax.security.auth.callback.Callback", "javax.security.auth.callback.NameCallback", "javax.security.auth.callback.UnsupportedCallbackException", "org.springframework.security.core.Authentication", "org.springframework.security.core.userdetails.UserDetails" ]
import java.io.IOException; import javax.security.auth.callback.Callback; import javax.security.auth.callback.NameCallback; import javax.security.auth.callback.UnsupportedCallbackException; import org.springframework.security.core.Authentication; import org.springframework.security.core.userdetails.UserDetails;
import java.io.*; import javax.security.auth.callback.*; import org.springframework.security.core.*; import org.springframework.security.core.userdetails.*;
[ "java.io", "javax.security", "org.springframework.security" ]
java.io; javax.security; org.springframework.security;
813,729
public List<Column> getLiteralColumns();
List<Column> function();
/** * Gets all of this table's columns that are of literal (String/text) type. * * @return an array of columns. * @see ColumnType */
Gets all of this table's columns that are of literal (String/text) type
getLiteralColumns
{ "repo_name": "apache/metamodel", "path": "core/src/main/java/org/apache/metamodel/schema/Table.java", "license": "apache-2.0", "size": 6346 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
84,487
@Override public void addTableModelListener(TableModelListener l) { }
void function(TableModelListener l) { }
/** * Adds a listener to the list that is notified each time a change to the * data model occurs. * * @param l the TableModelListener */
Adds a listener to the list that is notified each time a change to the data model occurs
addTableModelListener
{ "repo_name": "Jackkal/jpexs-decompiler", "path": "src/com/jpexs/decompiler/flash/gui/abc/tablemodels/MultinameTableModel.java", "license": "gpl-3.0", "size": 6291 }
[ "javax.swing.event.TableModelListener" ]
import javax.swing.event.TableModelListener;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
1,364,327