method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public static SAMLSSOServiceProviderDO getServiceProviderConfig(String issuer) throws IdentityException { try { SSOServiceProviderConfigManager idPConfigManager = SSOServiceProviderConfigManager.getInstance(); SAMLSSOServiceProviderDO ssoIdpConfigs = i...
static SAMLSSOServiceProviderDO function(String issuer) throws IdentityException { try { SSOServiceProviderConfigManager idPConfigManager = SSOServiceProviderConfigManager.getInstance(); SAMLSSOServiceProviderDO ssoIdpConfigs = idPConfigManager.getServiceProvider(issuer); if (ssoIdpConfigs == null) { IdentityPersistenc...
/** * Load Service Provider Configurations * * @param issuer * @return SAMLSSOServiceProviderDO * @throws IdentityException */
Load Service Provider Configurations
getServiceProviderConfig
{ "repo_name": "wso2-incubator/identity-connectors", "path": "components/tools/samlsso-validator/org.wso2.carbon.identity.tools.saml.validator/src/main/java/org/wso2/carbon/identity/tools/saml/validator/util/SAMLValidatorUtil.java", "license": "apache-2.0", "size": 6817 }
[ "org.wso2.carbon.context.CarbonContext", "org.wso2.carbon.identity.base.IdentityException", "org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO", "org.wso2.carbon.identity.core.persistence.IdentityPersistenceManager", "org.wso2.carbon.identity.sso.saml.SSOServiceProviderConfigManager", "org.wso2...
import org.wso2.carbon.context.CarbonContext; import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO; import org.wso2.carbon.identity.core.persistence.IdentityPersistenceManager; import org.wso2.carbon.identity.sso.saml.SSOServiceProviderConfigManager...
import org.wso2.carbon.context.*; import org.wso2.carbon.identity.base.*; import org.wso2.carbon.identity.core.model.*; import org.wso2.carbon.identity.core.persistence.*; import org.wso2.carbon.identity.sso.saml.*; import org.wso2.carbon.identity.sso.saml.util.*; import org.wso2.carbon.registry.core.session.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
2,009,423
public void setElevation(double elevation) { if (elevation < 0) { throw new IllegalArgumentException("Elevation cannot be negative"); } this.elevation = elevation; } public GeoLocation(String name, double latitude, double longitude, TimeZone timeZone) { this(name, latitude, longitude, 0, timeZone); ...
void function(double elevation) { if (elevation < 0) { throw new IllegalArgumentException(STR); } this.elevation = elevation; } GeoLocation(String name, double latitude, double longitude, TimeZone timeZone) { this(name, latitude, longitude, 0, timeZone); } public GeoLocation(String name, double latitude, double longitu...
/** * Method to set the elevation in Meters <b>above </b> sea level. * * @param elevation * The elevation to set in Meters. An IllegalArgumentException will be thrown if the value is a negative. */
Method to set the elevation in Meters above sea level
setElevation
{ "repo_name": "mini-john/mini-john", "path": "zmanim/src/main/java/net/sourceforge/zmanim/util/GeoLocation.java", "license": "agpl-3.0", "size": 24060 }
[ "java.util.TimeZone" ]
import java.util.TimeZone;
import java.util.*;
[ "java.util" ]
java.util;
738,352
@Override public void createControl(Composite parent) { final Composite container = new Composite(parent, SWT.NULL); final FieldDecoration errorFieldDecoration = FieldDecorationRegistry .getDefault().getFieldDecoration( FieldDecorationRegistry.DEC_ERROR); final Image errorImage = errorFieldDecoration....
void function(Composite parent) { final Composite container = new Composite(parent, SWT.NULL); final FieldDecoration errorFieldDecoration = FieldDecorationRegistry .getDefault().getFieldDecoration( FieldDecorationRegistry.DEC_ERROR); final Image errorImage = errorFieldDecoration.getImage(); setControl(container); conta...
/** * Create contents of the wizard. * * @param parent */
Create contents of the wizard
createControl
{ "repo_name": "sdirix/emf2web", "path": "org.eclipse.emf.ecp.emf2web/src/org/eclipse/emf/ecp/emf2web/wizard/pages/ModelPathsPage.java", "license": "epl-1.0", "size": 21809 }
[ "org.eclipse.jface.fieldassist.ControlDecoration", "org.eclipse.jface.fieldassist.FieldDecoration", "org.eclipse.jface.fieldassist.FieldDecorationRegistry", "org.eclipse.swt.graphics.Image", "org.eclipse.swt.layout.GridData", "org.eclipse.swt.layout.GridLayout", "org.eclipse.swt.widgets.Button", "org....
import org.eclipse.jface.fieldassist.ControlDecoration; import org.eclipse.jface.fieldassist.FieldDecoration; import org.eclipse.jface.fieldassist.FieldDecorationRegistry; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widg...
import org.eclipse.jface.fieldassist.*; import org.eclipse.swt.graphics.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.jface", "org.eclipse.swt" ]
org.eclipse.jface; org.eclipse.swt;
2,637,891
private int findProductRow(int M_Product_ID) { //DefaultTableModel model = (DefaultTableModel)dialog.getMiniTable().getModel(); ListModelTable model = (ListModelTable) window.getWListbox().getModel(); KeyNamePair kp; for (int i=0; i<model.getRowCount(); i++) { kp = (KeyNamePair)model.getValueAt(i, ...
int function(int M_Product_ID) { ListModelTable model = (ListModelTable) window.getWListbox().getModel(); KeyNamePair kp; for (int i=0; i<model.getRowCount(); i++) { kp = (KeyNamePair)model.getValueAt(i, 4); if (kp.getKey()==M_Product_ID) { return(i); } } return(-1); }
/** * Finds the row where a given product is. If the product is not found * in the table -1 is returned. * @param M_Product_ID * @return Row of the product or -1 if non existing. * */
Finds the row where a given product is. If the product is not found in the table -1 is returned
findProductRow
{ "repo_name": "erpcya/adempierePOS", "path": "zkwebui/WEB-INF/src/org/adempiere/webui/apps/form/WCreateFromShipmentUI.java", "license": "gpl-2.0", "size": 17851 }
[ "org.adempiere.webui.component.ListModelTable", "org.compiere.util.KeyNamePair" ]
import org.adempiere.webui.component.ListModelTable; import org.compiere.util.KeyNamePair;
import org.adempiere.webui.component.*; import org.compiere.util.*;
[ "org.adempiere.webui", "org.compiere.util" ]
org.adempiere.webui; org.compiere.util;
1,376,238
public void applyPartitionsUpdatesCounters(Iterable<PartitionUpdateCountersMessage> counters) throws IgniteCheckedException { applyPartitionsUpdatesCounters(counters, false, false); }
void function(Iterable<PartitionUpdateCountersMessage> counters) throws IgniteCheckedException { applyPartitionsUpdatesCounters(counters, false, false); }
/** * Applies partition counter updates for transactions. * <p> * Called after entries are written to WAL on commit or during rollback to close gaps in update counter sequence. * * @param counters Counters. */
Applies partition counter updates for transactions. Called after entries are written to WAL on commit or during rollback to close gaps in update counter sequence
applyPartitionsUpdatesCounters
{ "repo_name": "ascherbakoff/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/transactions/IgniteTxHandler.java", "license": "apache-2.0", "size": 94423 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.internal.processors.cache.distributed.dht.PartitionUpdateCountersMessage" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.internal.processors.cache.distributed.dht.PartitionUpdateCountersMessage;
import org.apache.ignite.*; import org.apache.ignite.internal.processors.cache.distributed.dht.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,890,304
@Override protected final Collection makeCollection() { return makeEmptyList(); }
final Collection function() { return makeEmptyList(); }
/** * Returns {@link makeEmptyList()}. * * @return an empty list to be used for testing */
Returns <code>makeEmptyList()</code>
makeCollection
{ "repo_name": "google/j2cl", "path": "jre/javatests/com/google/gwt/emultest/java/util/TestList.java", "license": "apache-2.0", "size": 18125 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
565,197
Application find(Resource resource);
Application find(Resource resource);
/** * Find application that is associated with this resource. * All implementors of {@link io.wcm.config.spi.ApplicationProvider} are enquired in order of service ranking, * the first that accepts the resource as matching wins. * @param resource Resource * @return Application instance if a match was foun...
Find application that is associated with this resource. All implementors of <code>io.wcm.config.spi.ApplicationProvider</code> are enquired in order of service ranking, the first that accepts the resource as matching wins
find
{ "repo_name": "wcm-io/wcm-io-config", "path": "core/src/main/java/io/wcm/config/core/management/ApplicationFinder.java", "license": "apache-2.0", "size": 1431 }
[ "org.apache.sling.api.resource.Resource" ]
import org.apache.sling.api.resource.Resource;
import org.apache.sling.api.resource.*;
[ "org.apache.sling" ]
org.apache.sling;
1,151,230
List<ConstraintGraphNode> getChildNodes();
List<ConstraintGraphNode> getChildNodes();
/** * Retrieves an unmodifiable collection of unique nodes which follow this one. * * @return never null, may be empty when {@link #getConsequences()} is not or when the model is not yet fully built. */
Retrieves an unmodifiable collection of unique nodes which follow this one
getChildNodes
{ "repo_name": "droolsjbpm/optaplanner", "path": "optaplanner-core/src/main/java/org/optaplanner/core/impl/score/stream/drools/common/nodes/ConstraintGraphNode.java", "license": "apache-2.0", "size": 12599 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
168,906
public static int generateNormalsVBO(PApplet pa, FloatBuffer normalsBuffer, int normalsCount){ int[] vboNormals = new int[1]; // GL gl = Tools3D.getGL(pa); GL11 gl = PlatformUtil.getGL11(); gl.glGenBuffers(1, vboNormals, 0); // Get A Valid Name gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, vboNormals[0]); // B...
static int function(PApplet pa, FloatBuffer normalsBuffer, int normalsCount){ int[] vboNormals = new int[1]; GL11 gl = PlatformUtil.getGL11(); gl.glGenBuffers(1, vboNormals, 0); gl.glBindBuffer(GL11.GL_ARRAY_BUFFER, vboNormals[0]); gl.glBufferData(GL11.GL_ARRAY_BUFFER, normalsCount * 3 * (int)GL11Plus.SIZEOF_FLOAT, nor...
/** * Generate normals vbo. * * @param pa the pa * @param normalsBuffer the normals buffer * @param normalsCount the normals count * * @return the int */
Generate normals vbo
generateNormalsVBO
{ "repo_name": "rogiermars/mt4j-core", "path": "src/org/mt4j/util/math/ToolsVBO.java", "license": "gpl-2.0", "size": 9040 }
[ "java.nio.FloatBuffer", "org.mt4j.util.PlatformUtil", "org.mt4j.util.opengl.GL11Plus" ]
import java.nio.FloatBuffer; import org.mt4j.util.PlatformUtil; import org.mt4j.util.opengl.GL11Plus;
import java.nio.*; import org.mt4j.util.*; import org.mt4j.util.opengl.*;
[ "java.nio", "org.mt4j.util" ]
java.nio; org.mt4j.util;
2,225,660
private boolean isPageOfSpecimenCPQuery(String pageOf) { return pageOf != null && pageOf.equals(Constants.PAGE_OF_CREATE_SPECIMEN_CP_QUERY); }
boolean function(String pageOf) { return pageOf != null && pageOf.equals(Constants.PAGE_OF_CREATE_SPECIMEN_CP_QUERY); }
/** * Checks if is page of specimen cp query. * * @param pageOf the page of * * @return true, if checks if is page of specimen cp query */
Checks if is page of specimen cp query
isPageOfSpecimenCPQuery
{ "repo_name": "NCIP/catissue-core", "path": "software/caTissue/modules/core/src/main/java/edu/wustl/catissuecore/action/CreateSpecimenAction.java", "license": "bsd-3-clause", "size": 35800 }
[ "edu.wustl.catissuecore.util.global.Constants" ]
import edu.wustl.catissuecore.util.global.Constants;
import edu.wustl.catissuecore.util.global.*;
[ "edu.wustl.catissuecore" ]
edu.wustl.catissuecore;
1,253,170
public ChangeListener[] getChangeListeners() { return (ChangeListener[])listenerList.getListeners( ChangeListener.class); }
ChangeListener[] function() { return (ChangeListener[])listenerList.getListeners( ChangeListener.class); }
/** * Returns an array of all the change listeners * registered on this <code>DefaultButtonModel</code>. * * @return all of this model's <code>ChangeListener</code>s * or an empty * array if no change listeners are currently registered * * @see #addChangeListener * @see #removeChangeLi...
Returns an array of all the change listeners registered on this <code>DefaultButtonModel</code>
getChangeListeners
{ "repo_name": "xylo/idea-sql-query-plugin", "path": "src/com/kiwisoft/utils/gui/TristateModel.java", "license": "gpl-2.0", "size": 11207 }
[ "javax.swing.event.ChangeListener" ]
import javax.swing.event.ChangeListener;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
471,048
void flush() throws IOException;
void flush() throws IOException;
/** * Request a flush of all pending writes to the underlying connection. * * @throws IOException if an error occurs during the flush operation. */
Request a flush of all pending writes to the underlying connection
flush
{ "repo_name": "apache/qpid-jms", "path": "qpid-jms-client/src/main/java/org/apache/qpid/jms/transports/Transport.java", "license": "apache-2.0", "size": 5936 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,127,545
@VisibleForTesting MinidumpUploadCallable createMinidumpUploadCallable(File minidumpFile, File logfile) { return new MinidumpUploadCallable(minidumpFile, logfile, getApplicationContext()); }
MinidumpUploadCallable createMinidumpUploadCallable(File minidumpFile, File logfile) { return new MinidumpUploadCallable(minidumpFile, logfile, getApplicationContext()); }
/** * Factory method for creating minidump callables. * * This may be overridden for tests. * * @param minidumpFile the File to upload. * @param logfile the Log file to write to upon successful uploads. * @return a new MinidumpUploadCallable. */
Factory method for creating minidump callables. This may be overridden for tests
createMinidumpUploadCallable
{ "repo_name": "SaschaMester/delicium", "path": "chrome/android/java/src/org/chromium/chrome/browser/crash/MinidumpUploadService.java", "license": "bsd-3-clause", "size": 10697 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
325,352
@Test public void whenMoveDownThenDoIt() { Board board = new Board(); Cell[] expect = new Cell[] {new Cell(1, 2), new Cell(1, 3), new Cell(1, 4), new Cell(1, 5)}; board.init(); Figure victim = null; for (Figure f : board.getFigures()) { if (f.getPosition().getX() == 1 && f.getPosition().getY() =...
void function() { Board board = new Board(); Cell[] expect = new Cell[] {new Cell(1, 2), new Cell(1, 3), new Cell(1, 4), new Cell(1, 5)}; board.init(); Figure victim = null; for (Figure f : board.getFigures()) { if (f.getPosition().getX() == 1 && f.getPosition().getY() == 2) { f = new NullFigure(new Cell(1, 2), Side.EM...
/** * Making route. * Moving down. * from 1, 1, to 1, 5 * expect array 1,2; 1,3; 1,4; 1,5. */
Making route. Moving down. from 1, 1, to 1, 5 expect array 1,2; 1,3; 1,4; 1,5
whenMoveDownThenDoIt
{ "repo_name": "wamdue/agorbunov", "path": "chapter_002/src/test/java/ru/job4j/chess/TestRook.java", "license": "apache-2.0", "size": 2598 }
[ "org.hamcrest.core.Is", "org.junit.Assert", "ru.job4j.chess.exceptions.ImpossibleMoveException", "ru.job4j.chess.figures.Figure", "ru.job4j.chess.figures.NullFigure", "ru.job4j.chess.figures.Side" ]
import org.hamcrest.core.Is; import org.junit.Assert; import ru.job4j.chess.exceptions.ImpossibleMoveException; import ru.job4j.chess.figures.Figure; import ru.job4j.chess.figures.NullFigure; import ru.job4j.chess.figures.Side;
import org.hamcrest.core.*; import org.junit.*; import ru.job4j.chess.exceptions.*; import ru.job4j.chess.figures.*;
[ "org.hamcrest.core", "org.junit", "ru.job4j.chess" ]
org.hamcrest.core; org.junit; ru.job4j.chess;
1,070,734
@Test public void test_update() throws Exception { entityManager.getTransaction().begin(); instance.create(user1); entityManager.getTransaction().commit(); user1.setOrganizationName("new"); user1.setUpdatedBy("2"); entityManager.getTransaction().begin(); ...
void function() throws Exception { entityManager.getTransaction().begin(); instance.create(user1); entityManager.getTransaction().commit(); user1.setOrganizationName("new"); user1.setUpdatedBy("2"); entityManager.getTransaction().begin(); instance.update(user1); entityManager.getTransaction().commit(); User retrievedUs...
/** * <p> * Accuracy test for the method <code>update(User user)</code>.<br> * The result should be correct. * </p> * * @throws Exception * to JUnit. */
Accuracy test for the method <code>update(User user)</code>. The result should be correct.
test_update
{ "repo_name": "NASA-Tournament-Lab/CoECI-CMS-Healthcare-Fraud-Prevention", "path": "hub/src/java/tests/com/hfpp/network/hub/services/impl/UserServiceImplUnitTests.java", "license": "apache-2.0", "size": 23393 }
[ "com.hfpp.network.models.User", "org.junit.Assert" ]
import com.hfpp.network.models.User; import org.junit.Assert;
import com.hfpp.network.models.*; import org.junit.*;
[ "com.hfpp.network", "org.junit" ]
com.hfpp.network; org.junit;
1,112,195
public Builder metadata(String key, String value) { if (this.metadata == null) { this.metadata = new HashMap<String, String>(); } this.metadata.put(key, value); return this; } } private String collectionId; private File imageFile; private Map<String, String> metadata; ...
Builder function(String key, String value) { if (this.metadata == null) { this.metadata = new HashMap<String, String>(); } this.metadata.put(key, value); return this; } } String collectionId; private File imageFile; private Map<String, String> function; AddImageToCollectionOptions(Builder builder) { imageFile = builder...
/** * Add key,value par to the metadata. * * @param key the key * @param value the value * @return the builder */
Add key,value par to the metadata
metadata
{ "repo_name": "JoshSharpe/java-sdk", "path": "visual-recognition/src/main/java/com/ibm/watson/developer_cloud/visual_recognition/v3/model/AddImageToCollectionOptions.java", "license": "apache-2.0", "size": 3643 }
[ "java.io.File", "java.util.HashMap", "java.util.Map" ]
import java.io.File; import java.util.HashMap; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,839,147
public void changeARCylindricalVerticalRange(float range) { if (mRenderingMode != SmartEyeglassControl.Intents.MODE_AR) { // error, not in AR mode so operation not possible throw new IllegalStateException("Not in AR mode"); } if (range > VERTICAL_RANGE_MAX || range <...
void function(float range) { if (mRenderingMode != SmartEyeglassControl.Intents.MODE_AR) { throw new IllegalStateException(STR); } if (range > VERTICAL_RANGE_MAX range < VERTICAL_RANGE_MIN) { throw new IllegalStateException(STR + range); } Intent intent = new Intent(SmartEyeglassControl.Intents.CONTROL_AR_CHANGE_CYLIND...
/** * Limits the vertical range of cylindrical coordinate system. * Objects positioned outside of limit will stick to the edge of range. * Resulting field of view will be -range..range degrees. * @param range The new range value, must be between 0 and 60 degrees. */
Limits the vertical range of cylindrical coordinate system. Objects positioned outside of limit will stick to the edge of range. Resulting field of view will be -range..range degrees
changeARCylindricalVerticalRange
{ "repo_name": "jphacks/HK_08", "path": "SmartEyeglassAPI/src/main/java/com/sony/smarteyeglass/extension/util/SmartEyeglassControlUtils.java", "license": "mit", "size": 71971 }
[ "android.content.Intent", "com.sony.smarteyeglass.SmartEyeglassControl" ]
import android.content.Intent; import com.sony.smarteyeglass.SmartEyeglassControl;
import android.content.*; import com.sony.smarteyeglass.*;
[ "android.content", "com.sony.smarteyeglass" ]
android.content; com.sony.smarteyeglass;
1,378,377
@Override public Collection<E> makeFullCollection() { final CompositeCollection<E> compositeCollection = new CompositeCollection<E>(); final E[] elements = getFullElements(); for (final E element : elements) { final Collection<E> summand = new HashSet<E>(); summan...
Collection<E> function() { final CompositeCollection<E> compositeCollection = new CompositeCollection<E>(); final E[] elements = getFullElements(); for (final E element : elements) { final Collection<E> summand = new HashSet<E>(); summand.add(element); compositeCollection.addComposited(summand); } return compositeColle...
/** * Full collection consists of 4 collections, each with one element */
Full collection consists of 4 collections, each with one element
makeFullCollection
{ "repo_name": "krivachy/compgs03_mutation_testing", "path": "src/test/java/org/apache/commons/collections4/collection/CompositeCollectionTest.java", "license": "apache-2.0", "size": 12198 }
[ "java.util.Collection", "java.util.HashSet" ]
import java.util.Collection; import java.util.HashSet;
import java.util.*;
[ "java.util" ]
java.util;
2,825,703
ClientSession session = sessionManager.getSession(packet.getFrom()); try { Presence presence = (Presence) packet; Presence.Type type = presence.getType(); if (type == null) { // null == available if (session != null && session.getStat...
ClientSession session = sessionManager.getSession(packet.getFrom()); try { Presence presence = (Presence) packet; Presence.Type type = presence.getType(); if (type == null) { if (session != null && session.getStatus() == Session.STATUS_CLOSED) { log.warn(STR + presence + STR + session); return; } if (session != null) {...
/** * Processes the presence packet. * * @param packet the packet */
Processes the presence packet
process
{ "repo_name": "elphinkuo/Androidpn", "path": "androidpn-code/androidpn-server/tags/androidpn-server-0.4.5/server/src/main/java/org/androidpn/server/xmpp/handler/PresenceUpdateHandler.java", "license": "gpl-3.0", "size": 3523 }
[ "org.androidpn.server.xmpp.router.PacketDeliverer", "org.androidpn.server.xmpp.session.ClientSession", "org.androidpn.server.xmpp.session.Session", "org.xmpp.packet.PacketError", "org.xmpp.packet.Presence" ]
import org.androidpn.server.xmpp.router.PacketDeliverer; import org.androidpn.server.xmpp.session.ClientSession; import org.androidpn.server.xmpp.session.Session; import org.xmpp.packet.PacketError; import org.xmpp.packet.Presence;
import org.androidpn.server.xmpp.router.*; import org.androidpn.server.xmpp.session.*; import org.xmpp.packet.*;
[ "org.androidpn.server", "org.xmpp.packet" ]
org.androidpn.server; org.xmpp.packet;
314,882
public void replace(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
void function(T item) throws IOException { removeAll((Class)item.getClass()); data.add(item); onModified(); }
/** * Removes all instances of the same type, then add the new one. */
Removes all instances of the same type, then add the new one
replace
{ "repo_name": "vivek/hudson", "path": "core/src/main/java/hudson/util/DescribableList.java", "license": "mit", "size": 8429 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,630,972
private static boolean containsWirkung(final Collection<CidsBean> collection, final CidsBean wirkung) { final Object art = wirkung.getProperty("art"); final Object id = wirkung.getProperty("wk_id"); for (final CidsBean tmp : collection) { if (tmp.getProperty("wk_id").equals(id) ...
static boolean function(final Collection<CidsBean> collection, final CidsBean wirkung) { final Object art = wirkung.getProperty("art"); final Object id = wirkung.getProperty("wk_id"); for (final CidsBean tmp : collection) { if (tmp.getProperty("wk_id").equals(id) && tmp.getProperty("art").equals(art)) { return true; } ...
/** * DOCUMENT ME! * * @param collection DOCUMENT ME! * @param wirkung DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
containsWirkung
{ "repo_name": "cismet/cids-custom-wrrl-db-mv", "path": "src/main/java/de/cismet/cids/custom/objecteditors/wrrl_db_mv/WirkungPan.java", "license": "lgpl-3.0", "size": 17245 }
[ "de.cismet.cids.dynamics.CidsBean", "java.util.Collection" ]
import de.cismet.cids.dynamics.CidsBean; import java.util.Collection;
import de.cismet.cids.dynamics.*; import java.util.*;
[ "de.cismet.cids", "java.util" ]
de.cismet.cids; java.util;
814,416
private static Node getQualifiedMemberAccess(AbstractCompiler compiler, Node member, Node staticAccess, Node instanceAccess) { Node context = member.isStaticMember() ? staticAccess : instanceAccess; context = context.cloneTree(); if (member.isComputedProp()) { return IR.getelem(context, member...
static Node function(AbstractCompiler compiler, Node member, Node staticAccess, Node instanceAccess) { Node context = member.isStaticMember() ? staticAccess : instanceAccess; context = context.cloneTree(); if (member.isComputedProp()) { return IR.getelem(context, member.removeFirstChild()); } else { return NodeUtil.new...
/** * Constructs a Node that represents an access to the given class member, qualified by either the * static or the instance access context, depending on whether the member is static. * * <p><b>WARNING:</b> {@code member} may be modified/destroyed by this method, do not use it * afterwards. */
Constructs a Node that represents an access to the given class member, qualified by either the static or the instance access context, depending on whether the member is static. afterwards
getQualifiedMemberAccess
{ "repo_name": "shantanusharma/closure-compiler", "path": "src/com/google/javascript/jscomp/Es6TypedToEs6Converter.java", "license": "apache-2.0", "size": 34807 }
[ "com.google.javascript.rhino.IR", "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.IR; import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,382,550
public void setProfile(Mp4EsdsBox.AudioProfile profile) { content.put(FIELD_PROFILE, profile); }
void function(Mp4EsdsBox.AudioProfile profile) { content.put(FIELD_PROFILE, profile); }
/** * The key for the profile * * @param profile */
The key for the profile
setProfile
{ "repo_name": "dubenju/javay", "path": "src/java/org/jaudiotagger/audio/mp4/Mp4AudioHeader.java", "license": "apache-2.0", "size": 1542 }
[ "org.jaudiotagger.audio.mp4.atom.Mp4EsdsBox" ]
import org.jaudiotagger.audio.mp4.atom.Mp4EsdsBox;
import org.jaudiotagger.audio.mp4.atom.*;
[ "org.jaudiotagger.audio" ]
org.jaudiotagger.audio;
1,285,670
public Result run(JavaLibraryBuildRequest build, PrintWriter err) throws Exception { Result result = Result.ERROR; try { result = compileJavaLibrary(build, err); if (result.isOK()) { buildJar(build); if (!build.getProcessors().isEmpty()) { if (build.getGeneratedSourcesOut...
Result function(JavaLibraryBuildRequest build, PrintWriter err) throws Exception { Result result = Result.ERROR; try { result = compileJavaLibrary(build, err); if (result.isOK()) { buildJar(build); if (!build.getProcessors().isEmpty()) { if (build.getGeneratedSourcesOutputJar() != null) { buildGensrcJar(build); } } } }...
/** * Perform the build. */
Perform the build
run
{ "repo_name": "anupcshan/bazel", "path": "src/java_tools/buildjar/java/com/google/devtools/build/buildjar/AbstractJavaBuilder.java", "license": "apache-2.0", "size": 6190 }
[ "com.sun.tools.javac.main.Main", "java.io.ByteArrayOutputStream", "java.io.PrintWriter" ]
import com.sun.tools.javac.main.Main; import java.io.ByteArrayOutputStream; import java.io.PrintWriter;
import com.sun.tools.javac.main.*; import java.io.*;
[ "com.sun.tools", "java.io" ]
com.sun.tools; java.io;
1,460,990
@Override public void enterLambdef(@NotNull Python3Parser.LambdefContext ctx) { }
@Override public void enterLambdef(@NotNull Python3Parser.LambdefContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitShift_expr
{ "repo_name": "IsThisThePayneResidence/intellidots", "path": "src/main/java/ua/edu/hneu/ast/parsers/Python3BaseListener.java", "license": "gpl-3.0", "size": 30027 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
985,859
// Completed ? final CheckColumnConfig completedColumn = new CheckColumnConfig() { @Override protected String getCheckState(ModelData model, String property, int rowIndex, int colIndex) { ReminderDTO reminder = (ReminderDTO) model; boolean creator = false; for (ReminderHistoryDTO hist ...
final CheckColumnConfig completedColumn = new CheckColumnConfig() { String function(ModelData model, String property, int rowIndex, int colIndex) { ReminderDTO reminder = (ReminderDTO) model; boolean creator = false; for (ReminderHistoryDTO hist : reminder.getHistory()) { if (hist.getType() == ReminderChangeType.CREATE...
/** * Returns the css style name which contains a background image * representing the checkbox. This implementation returns "-on" or * "" based on a boolean model property. "-disabled" can be returned * to render a disabled checkbox. * * @param model * the model * @pa...
Returns the css style name which contains a background image representing the checkbox. This implementation returns "-on" or "" based on a boolean model property. "-disabled" can be returned to render a disabled checkbox
getCheckState
{ "repo_name": "spMohanty/sigmah_svn_to_git_migration_test", "path": "sigmah/src/main/java/org/sigmah/client/page/project/dashboard/ProjectDashboardView.java", "license": "gpl-3.0", "size": 50126 }
[ "com.extjs.gxt.ui.client.data.ModelData", "com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig", "com.extjs.gxt.ui.client.widget.grid.GridCellRenderer", "org.sigmah.shared.domain.profile.GlobalPermissionEnum", "org.sigmah.shared.domain.reminder.ReminderChangeType", "org.sigmah.shared.dto.profile.Profile...
import com.extjs.gxt.ui.client.data.ModelData; import com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig; import com.extjs.gxt.ui.client.widget.grid.GridCellRenderer; import org.sigmah.shared.domain.profile.GlobalPermissionEnum; import org.sigmah.shared.domain.reminder.ReminderChangeType; import org.sigmah.shared.dt...
import com.extjs.gxt.ui.client.data.*; import com.extjs.gxt.ui.client.widget.grid.*; import org.sigmah.shared.domain.profile.*; import org.sigmah.shared.domain.reminder.*; import org.sigmah.shared.dto.profile.*; import org.sigmah.shared.dto.reminder.*;
[ "com.extjs.gxt", "org.sigmah.shared" ]
com.extjs.gxt; org.sigmah.shared;
997,122
public void setOutlineStroke(Stroke s) { if (s != null) { this.outlineStroke = s; } }
void function(Stroke s) { if (s != null) { this.outlineStroke = s; } }
/** * Sets the outline stroke. * * @param s the new stroke. */
Sets the outline stroke
setOutlineStroke
{ "repo_name": "sebkur/JFreeChart", "path": "src/main/java/org/jfree/chart/needle/MeterNeedle.java", "license": "lgpl-3.0", "size": 12284 }
[ "java.awt.Stroke" ]
import java.awt.Stroke;
import java.awt.*;
[ "java.awt" ]
java.awt;
948,207
public void setConverter(Object propertyId, Converter<String, ?> converter) { if (!getContainerPropertyIds().contains(propertyId)) { throw new IllegalArgumentException("PropertyId " + propertyId + " must be in the container"); } if (!typeIsCompatible(converte...
void function(Object propertyId, Converter<String, ?> converter) { if (!getContainerPropertyIds().contains(propertyId)) { throw new IllegalArgumentException(STR + propertyId + STR); } if (!typeIsCompatible(converter.getModelType(), getType(propertyId))) { throw new IllegalArgumentException(STR + getType(propertyId) + S...
/** * Sets a converter for a property id. * <p> * The converter is used to format the the data for the given property id * before displaying it in the table. * </p> * * @param propertyId * The propertyId to format using the converter * @param converter * ...
Sets a converter for a property id. The converter is used to format the the data for the given property id before displaying it in the table.
setConverter
{ "repo_name": "udayinfy/vaadin", "path": "server/src/com/vaadin/ui/Table.java", "license": "apache-2.0", "size": 220826 }
[ "com.vaadin.data.util.converter.Converter" ]
import com.vaadin.data.util.converter.Converter;
import com.vaadin.data.util.converter.*;
[ "com.vaadin.data" ]
com.vaadin.data;
683,081
SetupProvider setupPayload(Payload setupPayload);
SetupProvider setupPayload(Payload setupPayload);
/** * Creates a new {@code SetupProvider} that uses the passed {@code setupPayload} as the payload for the setup frame. * Default instances, do not have any payload. * * @return A new {@code SetupProvider} instance. */
Creates a new SetupProvider that uses the passed setupPayload as the payload for the setup frame. Default instances, do not have any payload
setupPayload
{ "repo_name": "somasun/reactivesocket-java", "path": "rsocket-core/src/main/java/io/rsocket/client/SetupProvider.java", "license": "apache-2.0", "size": 4731 }
[ "io.rsocket.Payload" ]
import io.rsocket.Payload;
import io.rsocket.*;
[ "io.rsocket" ]
io.rsocket;
906,238
public static Reader createReader(FileSystem fs, Path path, FSDataInputStreamWrapper fsdis, long size, CacheConfig cacheConf, boolean primaryReplicaReader, Configuration conf) throws IOException { HFileSystem hfs = null; // If the fs is not an instance of HFileSystem, then create an // instan...
static Reader function(FileSystem fs, Path path, FSDataInputStreamWrapper fsdis, long size, CacheConfig cacheConf, boolean primaryReplicaReader, Configuration conf) throws IOException { HFileSystem hfs = null; if (!(fs instanceof HFileSystem)) { hfs = new HFileSystem(fs); } else { hfs = (HFileSystem) fs; } return openR...
/** * The sockets and the file descriptors held by the method parameter * {@code FSDataInputStreamWrapper} passed will be freed after its usage so caller needs to ensure * that no other threads have access to the same passed reference. * @param fs A file system * @param path Path to HFile * @param fsd...
The sockets and the file descriptors held by the method parameter FSDataInputStreamWrapper passed will be freed after its usage so caller needs to ensure that no other threads have access to the same passed reference
createReader
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java", "license": "apache-2.0", "size": 37141 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hbase.fs.HFileSystem", "org.apache.hadoop.hbase.io.FSDataInputStreamWrapper" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.fs.HFileSystem; import org.apache.hadoop.hbase.io.FSDataInputStreamWrapper;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.fs.*; import org.apache.hadoop.hbase.io.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
509,983
public IgniteCountDownLatch countDownLatch(final String name, @Nullable AtomicConfiguration cfg, final int cnt, final boolean autoDel, final boolean create) throws IgniteCheckedException { if (create) A.ensure(cnt >= 0, "count can not be negative");
IgniteCountDownLatch function(final String name, @Nullable AtomicConfiguration cfg, final int cnt, final boolean autoDel, final boolean create) throws IgniteCheckedException { if (create) A.ensure(cnt >= 0, STR);
/** * Gets or creates count down latch. If count down latch is not found in cache, * it is created using provided name and count parameter. * * @param name Name of the latch. * @param cfg Configuration. * @param cnt Initial count. * @param autoDel {@code True} to automatically delete ...
Gets or creates count down latch. If count down latch is not found in cache, it is created using provided name and count parameter
countDownLatch
{ "repo_name": "ntikhonov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/datastructures/DataStructuresProcessor.java", "license": "apache-2.0", "size": 61621 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.IgniteCountDownLatch", "org.apache.ignite.configuration.AtomicConfiguration", "org.apache.ignite.internal.util.typedef.internal.A", "org.jetbrains.annotations.Nullable" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.IgniteCountDownLatch; import org.apache.ignite.configuration.AtomicConfiguration; import org.apache.ignite.internal.util.typedef.internal.A; import org.jetbrains.annotations.Nullable;
import org.apache.ignite.*; import org.apache.ignite.configuration.*; import org.apache.ignite.internal.util.typedef.internal.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
2,309,850
@Test public void testHelp() throws CmdLineException, IOException, ModelVerifyException { System.out.println("testHelp"); ByteArrayOutputStream os = new ByteArrayOutputStream(); PrintStream st = new PrintStream(os); ConfigurationClientBuilder subject = new ConfigurationClientBuilder(st); ConfigurationClie...
void function() throws CmdLineException, IOException, ModelVerifyException { System.out.println(STR); ByteArrayOutputStream os = new ByteArrayOutputStream(); PrintStream st = new PrintStream(os); ConfigurationClientBuilder subject = new ConfigurationClientBuilder(st); ConfigurationClient buildClient = subject.buildClie...
/** * Test of buildClient method, of class ConfigurationClientBuilder. */
Test of buildClient method, of class ConfigurationClientBuilder
testHelp
{ "repo_name": "isuftin/geoserver-configuration-manager", "path": "src/test/java/gov/usgs/cida/manager/geoserver/ConfigurationClientBuilderTest.java", "license": "unlicense", "size": 5525 }
[ "gov.usgs.cida.manager.geoserver.model.ModelVerifyException", "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.PrintStream", "org.junit.Assert", "org.kohsuke.args4j.CmdLineException" ]
import gov.usgs.cida.manager.geoserver.model.ModelVerifyException; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.PrintStream; import org.junit.Assert; import org.kohsuke.args4j.CmdLineException;
import gov.usgs.cida.manager.geoserver.model.*; import java.io.*; import org.junit.*; import org.kohsuke.args4j.*;
[ "gov.usgs.cida", "java.io", "org.junit", "org.kohsuke.args4j" ]
gov.usgs.cida; java.io; org.junit; org.kohsuke.args4j;
1,620,623
@Override protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object oDBSource = null; Object newQuery = null; XStorable store = null; try { Param.getMSF() .crea...
TestEnvironment function(TestParameters Param, PrintWriter log) { XInterface oObj = null; Object oDBSource = null; Object newQuery = null; XStorable store = null; try { Param.getMSF() .createInstance(STR); oDBSource = Param.getMSF() .createInstance(STR); newQuery = Param.getMSF() .createInstance(STR); Param.getMSF() .c...
/** * Creates a new DataSource and stores it. * Creates a connection and using it * creates two tables in database. * Creates a new query and adds it to DefinitionContainer. * Opens the QueryComponent.with loadComponentFromURL * and gets the object with the role UNKNOWN and the Impplementa...
Creates a new DataSource and stores it. Creates a connection and using it creates two tables in database. Creates a new query and adds it to DefinitionContainer. Opens the QueryComponent.with loadComponentFromURL and gets the object with the role UNKNOWN and the Impplementation name that contains ConnectionLine
createTestEnvironment
{ "repo_name": "Limezero/libreoffice", "path": "qadevOOo/tests/java/mod/_dbaccess/ConnectionLineAccessibility.java", "license": "gpl-3.0", "size": 13905 }
[ "com.sun.star.accessibility.AccessibleRole", "com.sun.star.accessibility.XAccessible", "com.sun.star.awt.XWindow", "com.sun.star.beans.PropertyValue", "com.sun.star.beans.XPropertySet", "com.sun.star.container.XNameAccess", "com.sun.star.container.XNameContainer", "com.sun.star.frame.XModel", "com.s...
import com.sun.star.accessibility.AccessibleRole; import com.sun.star.accessibility.XAccessible; import com.sun.star.awt.XWindow; import com.sun.star.beans.PropertyValue; import com.sun.star.beans.XPropertySet; import com.sun.star.container.XNameAccess; import com.sun.star.container.XNameContainer; import com.sun.star....
import com.sun.star.accessibility.*; import com.sun.star.awt.*; import com.sun.star.beans.*; import com.sun.star.container.*; import com.sun.star.frame.*; import com.sun.star.sdb.*; import com.sun.star.sdbc.*; import com.sun.star.uno.*; import java.io.*;
[ "com.sun.star", "java.io" ]
com.sun.star; java.io;
337,426
public INDArray loadFeaturesFromFile(File file, int maxLength) throws IOException { String review = FileUtils.readFileToString(file); return loadFeaturesFromString(review, maxLength); }
INDArray function(File file, int maxLength) throws IOException { String review = FileUtils.readFileToString(file); return loadFeaturesFromString(review, maxLength); }
/** * Used post training to load a review from a file to a features INDArray that can be passed to the network output method * * @param file File to load the review from * @param maxLength Maximum length (if review is longer than this: truncate to maxLength). Use Integer.MAX_VALUE to not nrunca...
Used post training to load a review from a file to a features INDArray that can be passed to the network output method
loadFeaturesFromFile
{ "repo_name": "batermj/Deep-Learning-with-Apache-Spark", "path": "platform/dl4j-cuda-specific-examples/src/main/java/org/deeplearning4j/examples/multigpu/w2vsentiment/SentimentExampleIterator.java", "license": "gpl-3.0", "size": 10531 }
[ "java.io.File", "java.io.IOException", "org.apache.commons.io.FileUtils", "org.nd4j.linalg.api.ndarray.INDArray" ]
import java.io.File; import java.io.IOException; import org.apache.commons.io.FileUtils; import org.nd4j.linalg.api.ndarray.INDArray;
import java.io.*; import org.apache.commons.io.*; import org.nd4j.linalg.api.ndarray.*;
[ "java.io", "org.apache.commons", "org.nd4j.linalg" ]
java.io; org.apache.commons; org.nd4j.linalg;
2,133,924
public static ObjectView Create ( ObjectViewContainer aContainer, XAccessibleContext xContext) { XAccessibleText xText = UnoRuntime.queryInterface( XAccessibleText.class, xContext); if (xText != null) return new TextView (aContainer); else ...
static ObjectView function ( ObjectViewContainer aContainer, XAccessibleContext xContext) { XAccessibleText xText = UnoRuntime.queryInterface( XAccessibleText.class, xContext); if (xText != null) return new TextView (aContainer); else return null; } private TextView (ObjectViewContainer aContainer) { super (aContainer)...
/** Create a TextView when the given object supports the XAccessibleText interface. */
Create a TextView when the given object supports the
Create
{ "repo_name": "beppec56/core", "path": "toolkit/test/accessibility/ov/TextView.java", "license": "gpl-3.0", "size": 4031 }
[ "com.sun.star.accessibility.XAccessibleContext", "com.sun.star.accessibility.XAccessibleText", "com.sun.star.uno.UnoRuntime", "java.awt.GridBagConstraints", "java.awt.GridBagLayout", "javax.swing.JLabel" ]
import com.sun.star.accessibility.XAccessibleContext; import com.sun.star.accessibility.XAccessibleText; import com.sun.star.uno.UnoRuntime; import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import javax.swing.JLabel;
import com.sun.star.accessibility.*; import com.sun.star.uno.*; import java.awt.*; import javax.swing.*;
[ "com.sun.star", "java.awt", "javax.swing" ]
com.sun.star; java.awt; javax.swing;
1,333,849
private boolean addBindingAttrIfStatement(String key, Object value) { for(String exclude : EXCLUDES_BINDING){ if(key.equals(exclude)){ return false; } } if(ELUtils.isBinding(value)){ if(mBindingAttrs == null){ mBindingAttrs = new ArrayMap<String, Object>(); } ...
boolean function(String key, Object value) { for(String exclude : EXCLUDES_BINDING){ if(key.equals(exclude)){ return false; } } if(ELUtils.isBinding(value)){ if(mBindingAttrs == null){ mBindingAttrs = new ArrayMap<String, Object>(); } value = ELUtils.bindingBlock(value); mBindingAttrs.put(key, value); return true; } if...
/** * filter dynamic attrs and statements * */
filter dynamic attrs and statements
addBindingAttrIfStatement
{ "repo_name": "acton393/incubator-weex", "path": "android/sdk/src/main/java/com/taobao/weex/dom/WXAttr.java", "license": "apache-2.0", "size": 14559 }
[ "android.support.v4.util.ArrayMap", "com.taobao.weex.dom.binding.ELUtils", "com.taobao.weex.dom.binding.WXStatement", "com.taobao.weex.el.parse.Parser" ]
import android.support.v4.util.ArrayMap; import com.taobao.weex.dom.binding.ELUtils; import com.taobao.weex.dom.binding.WXStatement; import com.taobao.weex.el.parse.Parser;
import android.support.v4.util.*; import com.taobao.weex.dom.binding.*; import com.taobao.weex.el.parse.*;
[ "android.support", "com.taobao.weex" ]
android.support; com.taobao.weex;
2,816,969
@Override public void lock(Map<String, String> optProperties) throws MonitorException { String lockFile = ""; try { lockFile = getFilePath(optProperties) + ".lock"; File lkf = new File(lockFile); for (int i = 0; i < 10; i++) { if (lkf.exist...
void function(Map<String, String> optProperties) throws MonitorException { String lockFile = STR.lockSTRError obtaining file lock on [STR]STRError obtaining file lock on [STR]", exc); } }
/** * Waith max 5 s. to obtain the lock. */
Waith max 5 s. to obtain the lock
lock
{ "repo_name": "green-vulcano/gv-legacy", "path": "gvlegacy/gvvcl-file/src/main/java/it/greenvulcano/util/file/monitor/status/FileMonitorStatus.java", "license": "lgpl-3.0", "size": 10135 }
[ "it.greenvulcano.util.file.monitor.MonitorException", "java.util.Map" ]
import it.greenvulcano.util.file.monitor.MonitorException; import java.util.Map;
import it.greenvulcano.util.file.monitor.*; import java.util.*;
[ "it.greenvulcano.util", "java.util" ]
it.greenvulcano.util; java.util;
2,229,463
public void setGravity(float[] val) { if ( gravity == null ) { gravity = (SFVec3f)getField( "gravity" ); } gravity.setValue( val ); }
void function(float[] val) { if ( gravity == null ) { gravity = (SFVec3f)getField( STR ); } gravity.setValue( val ); }
/** Set the gravity field. * @param val The float[] to set. */
Set the gravity field
setGravity
{ "repo_name": "Norkart/NK-VirtualGlobe", "path": "Xj3D/src/java/org/xj3d/sai/external/node/rigidbodyphysics/SAIRigidBodyCollection.java", "license": "gpl-2.0", "size": 11401 }
[ "org.web3d.x3d.sai.SFVec3f" ]
import org.web3d.x3d.sai.SFVec3f;
import org.web3d.x3d.sai.*;
[ "org.web3d.x3d" ]
org.web3d.x3d;
1,310,924
public KeyRange subRange(DatabaseEntry beginKey, boolean beginInclusive, DatabaseEntry endKey, boolean endInclusive) throws KeyRangeException { if (beginKey == null) { beginKey = this.beginKey; beginInclusive = this.beginInclusive; } else...
KeyRange function(DatabaseEntry beginKey, boolean beginInclusive, DatabaseEntry endKey, boolean endInclusive) throws KeyRangeException { if (beginKey == null) { beginKey = this.beginKey; beginInclusive = this.beginInclusive; } else if (!check(beginKey, beginInclusive)) { throw new KeyRangeException(STR); } if (endKey =...
/** * Creates a range that is the intersection of this range and the given * range parameters. */
Creates a range that is the intersection of this range and the given range parameters
subRange
{ "repo_name": "hyc/BerkeleyDB", "path": "lang/java/src/com/sleepycat/util/keyrange/KeyRange.java", "license": "agpl-3.0", "size": 9946 }
[ "com.sleepycat.db.DatabaseEntry" ]
import com.sleepycat.db.DatabaseEntry;
import com.sleepycat.db.*;
[ "com.sleepycat.db" ]
com.sleepycat.db;
198,396
public ParseResult readPacket(Debugger debugger) throws ArtemisPacketException { objectType = null; objectId = 0; bitField = null; unknownProps = new TreeMap<String, byte[]>(); unknownObjectProps = new TreeMap<String, byte[]>(); // header (0xdeadbeef) final int header = readIntFromStream(); if (h...
ParseResult function(Debugger debugger) throws ArtemisPacketException { objectType = null; objectId = 0; bitField = null; unknownProps = new TreeMap<String, byte[]>(); unknownObjectProps = new TreeMap<String, byte[]>(); final int header = readIntFromStream(); if (header != ArtemisPacket.HEADER) throw new ArtemisPacketE...
/** * Reads a single packet and returns it. The given Debugger will also be * notified. */
Reads a single packet and returns it. The given Debugger will also be notified
readPacket
{ "repo_name": "JordanLongstaff/Artemis-Messenger", "path": "src/com/walkertribe/ian/iface/PacketReader.java", "license": "mit", "size": 16466 }
[ "com.walkertribe.ian.enums.ObjectType", "com.walkertribe.ian.enums.Origin", "com.walkertribe.ian.protocol.ArtemisPacket", "com.walkertribe.ian.protocol.ArtemisPacketException", "com.walkertribe.ian.protocol.UnknownPacket", "com.walkertribe.ian.protocol.UnparsedPacket", "com.walkertribe.ian.protocol.core...
import com.walkertribe.ian.enums.ObjectType; import com.walkertribe.ian.enums.Origin; import com.walkertribe.ian.protocol.ArtemisPacket; import com.walkertribe.ian.protocol.ArtemisPacketException; import com.walkertribe.ian.protocol.UnknownPacket; import com.walkertribe.ian.protocol.UnparsedPacket; import com.walkertri...
import com.walkertribe.ian.enums.*; import com.walkertribe.ian.protocol.*; import com.walkertribe.ian.protocol.core.setup.*; import com.walkertribe.ian.protocol.core.world.*; import com.walkertribe.ian.util.*; import java.io.*; import java.util.*;
[ "com.walkertribe.ian", "java.io", "java.util" ]
com.walkertribe.ian; java.io; java.util;
1,312,939
public void setup(QAConfig sysConfig) throws Exception { super.setup(sysConfig); parse(); }
void function(QAConfig sysConfig) throws Exception { super.setup(sysConfig); parse(); }
/** * Invoke parent's setup and parser * @exception TestException will usually indicate an "unresolved" * condition because at this point the test has not yet begun. */
Invoke parent's setup and parser
setup
{ "repo_name": "cdegroot/river", "path": "qa/src/com/sun/jini/test/impl/mercury/UnknownEventRecoveryShutdownTest.java", "license": "apache-2.0", "size": 8598 }
[ "com.sun.jini.qa.harness.QAConfig" ]
import com.sun.jini.qa.harness.QAConfig;
import com.sun.jini.qa.harness.*;
[ "com.sun.jini" ]
com.sun.jini;
144,716
@Test void fromAnnotation() { KeyExtractor extractor = KeyExtractor.fromAnnotation(MyAnnotation.class).create(WithAnnotation.class); check(extractor.metadata().keys()).hasSize(1); Member member = (Member) Visitors.toPath(extractor.metadata().keys().get(0)).element(); check(member.getName()).is("id1...
void fromAnnotation() { KeyExtractor extractor = KeyExtractor.fromAnnotation(MyAnnotation.class).create(WithAnnotation.class); check(extractor.metadata().keys()).hasSize(1); Member member = (Member) Visitors.toPath(extractor.metadata().keys().get(0)).element(); check(member.getName()).is("id123"); check(extractor.extra...
/** * Check that annotation name is exposed in error message */
Check that annotation name is exposed in error message
fromAnnotation
{ "repo_name": "immutables/immutables", "path": "criteria/common/test/org/immutables/criteria/backend/KeyExtractorTest.java", "license": "apache-2.0", "size": 5613 }
[ "java.lang.reflect.Member", "org.immutables.check.Checkers", "org.immutables.criteria.expression.Visitors" ]
import java.lang.reflect.Member; import org.immutables.check.Checkers; import org.immutables.criteria.expression.Visitors;
import java.lang.reflect.*; import org.immutables.check.*; import org.immutables.criteria.expression.*;
[ "java.lang", "org.immutables.check", "org.immutables.criteria" ]
java.lang; org.immutables.check; org.immutables.criteria;
960,645
public void fireNotifyChanged(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
void function(Notification notification) { changeNotifier.fireNotifyChanged(notification); if (parentAdapterFactory != null) { parentAdapterFactory.fireNotifyChanged(notification); } }
/** * This delegates to {@link #changeNotifier} and to {@link #parentAdapterFactory}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This delegates to <code>#changeNotifier</code> and to <code>#parentAdapterFactory</code>.
fireNotifyChanged
{ "repo_name": "awortmann/xmontiarc", "path": "ur1.diverse.cd.model.edit/src/cd/provider/CdItemProviderAdapterFactory.java", "license": "epl-1.0", "size": 8272 }
[ "org.eclipse.emf.common.notify.Notification" ]
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,563,297
public void updateStatePatientMedication(String userName, Long patientId, Long medicationId, boolean sate) { logger.info("Calling updateStatePatientMedication for userName:" + userName+ "and patientId:"+patientId+" and medicationId:"+medicationId); //load doctor from database for security reasons ...
void function(String userName, Long patientId, Long medicationId, boolean sate) { logger.info(STR + userName+ STR+patientId+STR+medicationId); Doctor doctor = getDoctor(userName); logger.debug(STR+medicationId); PatientMedication pm = patientMedicationRepository.findOne(medicationId); if (pm == null){ throw new NotFoun...
/** * This method activate or deactivate a patient medication from patient's medication list. * * @param userName a String that represents userName of logged user * @param patientId a Long with database patient Id * @param medicationId a Long with the database medication Id to be activated again ...
This method activate or deactivate a patient medication from patient's medication list
updateStatePatientMedication
{ "repo_name": "estebanluengo/symptommanagment", "path": "SymptomsServer/src/main/java/org/coursera/symptomserver/services/DoctorService.java", "license": "apache-2.0", "size": 12969 }
[ "org.coursera.symptomserver.beans.jpa.Doctor", "org.coursera.symptomserver.beans.jpa.PatientMedication", "org.coursera.symptomserver.exceptions.NotFoundException" ]
import org.coursera.symptomserver.beans.jpa.Doctor; import org.coursera.symptomserver.beans.jpa.PatientMedication; import org.coursera.symptomserver.exceptions.NotFoundException;
import org.coursera.symptomserver.beans.jpa.*; import org.coursera.symptomserver.exceptions.*;
[ "org.coursera.symptomserver" ]
org.coursera.symptomserver;
1,420,507
@Nullable @Override public IRequestResolver<?> getResolverForRequest(@NotNull final IToken<?> requestToken) throws IllegalArgumentException { return wrappedManager.getResolverForRequest(requestToken); }
IRequestResolver<?> function(@NotNull final IToken<?> requestToken) throws IllegalArgumentException { return wrappedManager.getResolverForRequest(requestToken); }
/** * Method to get a resolver for a given request. * * @param requestToken The token of the request to get resolver for. * @return Null if the request is not yet resolved, or else the assigned resolver. * @throws IllegalArgumentException Thrown when the token is unknown. */
Method to get a resolver for a given request
getResolverForRequest
{ "repo_name": "Minecolonies/minecolonies", "path": "src/main/java/com/minecolonies/coremod/colony/requestsystem/management/manager/wrapped/AbstractWrappedRequestManager.java", "license": "gpl-3.0", "size": 9408 }
[ "com.minecolonies.api.colony.requestsystem.resolver.IRequestResolver", "com.minecolonies.api.colony.requestsystem.token.IToken", "org.jetbrains.annotations.NotNull" ]
import com.minecolonies.api.colony.requestsystem.resolver.IRequestResolver; import com.minecolonies.api.colony.requestsystem.token.IToken; import org.jetbrains.annotations.NotNull;
import com.minecolonies.api.colony.requestsystem.resolver.*; import com.minecolonies.api.colony.requestsystem.token.*; import org.jetbrains.annotations.*;
[ "com.minecolonies.api", "org.jetbrains.annotations" ]
com.minecolonies.api; org.jetbrains.annotations;
654,307
@Override public boolean onCreateOptionsMenu(Menu menu) { // Inflate the menu; this adds items to the action bar if it // is present. getMenuInflater().inflate(R.menu.video_list, menu); return true; }
boolean function(Menu menu) { getMenuInflater().inflate(R.menu.video_list, menu); return true; }
/** * Hook method called to initialize the contents of the Activity's * standard options menu. * * @param menu */
Hook method called to initialize the contents of the Activity's standard options menu
onCreateOptionsMenu
{ "repo_name": "dexter-at-git/coursera-android-spring", "path": "assignments/assignment3/client/src/vandy/mooc/view/VideoListActivity.java", "license": "apache-2.0", "size": 11074 }
[ "android.view.Menu" ]
import android.view.Menu;
import android.view.*;
[ "android.view" ]
android.view;
514,670
public void free(WorkerSlot ws, Cluster cluster, boolean forceFree) { if (_freeSlots.contains(ws)) return; boolean wasFound = false; for (Entry<String, Set<WorkerSlot>> entry : _topIdToUsedSlots.entrySet()) { Set<WorkerSlot> slots = entry.getValue(); if (s...
void function(WorkerSlot ws, Cluster cluster, boolean forceFree) { if (_freeSlots.contains(ws)) return; boolean wasFound = false; for (Entry<String, Set<WorkerSlot>> entry : _topIdToUsedSlots.entrySet()) { Set<WorkerSlot> slots = entry.getValue(); if (slots.remove(ws)) { cluster.freeSlot(ws); if (_isAlive) { _freeSlots...
/** * Frees a single slot in this node * * @param ws the slot to free * @param cluster the cluster to update */
Frees a single slot in this node
free
{ "repo_name": "kenchen1101/jstorm", "path": "jstorm-core/src/main/java/backtype/storm/scheduler/multitenant/Node.java", "license": "apache-2.0", "size": 11487 }
[ "java.util.Map", "java.util.Set" ]
import java.util.Map; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,391,872
protected boolean doMatch(MethodPattern methodPattern, Method method, Class<?> clazz) { String namePattern = methodPattern.getNamePattern(); if (namePattern == null || namePattern.isEmpty()) return false; String fullMethodName = method.getDeclaringClass().getName() + "." + method.getName(); if ...
boolean function(MethodPattern methodPattern, Method method, Class<?> clazz) { String namePattern = methodPattern.getNamePattern(); if (namePattern == null namePattern.isEmpty()) return false; String fullMethodName = method.getDeclaringClass().getName() + "." + method.getName(); if (!fullMethodName.endsWith(namePattern...
/** * Do match check. * * @param methodPattern * @param method * @param clazz * @return */
Do match check
doMatch
{ "repo_name": "ximplementation/ximplementation", "path": "src/main/java/org/ximplementation/support/DefaultMethodMatcher.java", "license": "apache-2.0", "size": 5644 }
[ "java.lang.reflect.Method" ]
import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
748,075
void search( ObjectClass objectClass, Filter filter, ResultsHandler handler, OperationOptions options);
void search( ObjectClass objectClass, Filter filter, ResultsHandler handler, OperationOptions options);
/** * Search for remote objects. * * @param objectClass ConnId's object class * @param filter search filter * @param handler class responsible for working with the objects returned from the search; may be null. * @param options ConnId's OperationOptions */
Search for remote objects
search
{ "repo_name": "tmess567/syncope", "path": "core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/Connector.java", "license": "apache-2.0", "size": 7689 }
[ "org.identityconnectors.framework.common.objects.ObjectClass", "org.identityconnectors.framework.common.objects.OperationOptions", "org.identityconnectors.framework.common.objects.ResultsHandler", "org.identityconnectors.framework.common.objects.filter.Filter" ]
import org.identityconnectors.framework.common.objects.ObjectClass; import org.identityconnectors.framework.common.objects.OperationOptions; import org.identityconnectors.framework.common.objects.ResultsHandler; import org.identityconnectors.framework.common.objects.filter.Filter;
import org.identityconnectors.framework.common.objects.*; import org.identityconnectors.framework.common.objects.filter.*;
[ "org.identityconnectors.framework" ]
org.identityconnectors.framework;
839,958
public void register(DrillOperatorTable operatorTable) { // Register Drill functions first and move to pluggable function registries. localFunctionRegistry.register(operatorTable); for(PluggableFunctionRegistry registry : pluggableFuncRegistries) { registry.register(operatorTable); } }
void function(DrillOperatorTable operatorTable) { localFunctionRegistry.register(operatorTable); for(PluggableFunctionRegistry registry : pluggableFuncRegistries) { registry.register(operatorTable); } }
/** * Register functions in given operator table. * @param operatorTable operator table */
Register functions in given operator table
register
{ "repo_name": "sohami/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/expr/fn/FunctionImplementationRegistry.java", "license": "apache-2.0", "size": 25937 }
[ "org.apache.drill.exec.planner.sql.DrillOperatorTable" ]
import org.apache.drill.exec.planner.sql.DrillOperatorTable;
import org.apache.drill.exec.planner.sql.*;
[ "org.apache.drill" ]
org.apache.drill;
2,106,446
@Override public Map<String, HandlerResult> getSuccesses() { return this.successes; }
Map<String, HandlerResult> function() { return this.successes; }
/** * Gets the authentication success map. * * @return Non-null map of handler names to successful handler authentication results. */
Gets the authentication success map
getSuccesses
{ "repo_name": "doodelicious/cas", "path": "core/cas-server-core-authentication/src/main/java/org/apereo/cas/authentication/DefaultAuthenticationBuilder.java", "license": "apache-2.0", "size": 10330 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,888,789
public Map<String, String> getPropsWithPrefix(String confPrefix) { Properties props = getProps(); Map<String, String> configMap = new HashMap<>(); for (String name : props.stringPropertyNames()) { if (name.startsWith(confPrefix)) { String value = get(name); String keyName = name.subs...
Map<String, String> function(String confPrefix) { Properties props = getProps(); Map<String, String> configMap = new HashMap<>(); for (String name : props.stringPropertyNames()) { if (name.startsWith(confPrefix)) { String value = get(name); String keyName = name.substring(confPrefix.length()); configMap.put(keyName, va...
/** * Constructs a mapping of configuration and includes all properties that * start with the specified configuration prefix. Property names in the * mapping are trimmed to remove the configuration prefix. * * @param confPrefix configuration prefix * @return mapping of configuration properties with p...
Constructs a mapping of configuration and includes all properties that start with the specified configuration prefix. Property names in the mapping are trimmed to remove the configuration prefix
getPropsWithPrefix
{ "repo_name": "szegedim/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/conf/Configuration.java", "license": "apache-2.0", "size": 128054 }
[ "java.util.HashMap", "java.util.Map", "java.util.Properties" ]
import java.util.HashMap; import java.util.Map; import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
1,996,888
public static ImageDescriptor getImageDescriptor(String key) { if (imageRegistry == null) initializeImageRegistry(); ImageDescriptor id = imageDescriptors.get(key); if (id != null) return id; return ImageDescriptor.getMissingImageDescriptor(); }
static ImageDescriptor function(String key) { if (imageRegistry == null) initializeImageRegistry(); ImageDescriptor id = imageDescriptors.get(key); if (id != null) return id; return ImageDescriptor.getMissingImageDescriptor(); }
/** * Return the image descriptor with the given key. * * @param key * java.lang.String * @return org.eclipse.jface.resource.ImageDescriptor */
Return the image descriptor with the given key
getImageDescriptor
{ "repo_name": "angelozerr/jsbuild-eclipse", "path": "grunt/fr.opensagres.eclipse.jsbuild.grunt.ui/src/fr/opensagres/eclipse/jsbuild/grunt/internal/ui/ImageResource.java", "license": "epl-1.0", "size": 4291 }
[ "org.eclipse.jface.resource.ImageDescriptor" ]
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.jface.resource.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
1,303,519
public static <T> Set<T> listOf(String input, char delimiter, Function<String, T> factory) { return listOf(input, (str) -> str.split("[" + delimiter + "]"), factory); }
static <T> Set<T> function(String input, char delimiter, Function<String, T> factory) { return listOf(input, (str) -> str.split("[" + delimiter + "]"), factory); }
/** * Generate the set of values that are included in the list delimited by the given delimiter. * * @param input the input string * @param delimiter the character used to delimit the items in the input * @param factory the factory for creating string items into filter matches; may not be null...
Generate the set of values that are included in the list delimited by the given delimiter
listOf
{ "repo_name": "DuncanSands/debezium", "path": "debezium-core/src/main/java/io/debezium/util/Strings.java", "license": "apache-2.0", "size": 33093 }
[ "java.util.Set", "java.util.function.Function" ]
import java.util.Set; import java.util.function.Function;
import java.util.*; import java.util.function.*;
[ "java.util" ]
java.util;
2,051,324
public VariableDescriptor getToReview() { return toReview; }
VariableDescriptor function() { return toReview; }
/** * Return the variable that will be reviewed * * @return the variable that will be reviewed */
Return the variable that will be reviewed
getToReview
{ "repo_name": "Heigvd/Wegas", "path": "wegas-core/src/main/java/com/wegas/reviewing/persistence/PeerReviewDescriptor.java", "license": "mit", "size": 11349 }
[ "com.wegas.core.persistence.variable.VariableDescriptor" ]
import com.wegas.core.persistence.variable.VariableDescriptor;
import com.wegas.core.persistence.variable.*;
[ "com.wegas.core" ]
com.wegas.core;
2,193,680
public void setStyleClass(java.lang.String styleClass) { getStateHelper().put(PropertyKeys.styleClass, styleClass); } private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList("click","dblclick","keydown","keypress","keyup","mousedown","mousemove","mous...
void function(java.lang.String styleClass) { getStateHelper().put(PropertyKeys.styleClass, styleClass); } private static final Collection<String> EVENT_NAMES = Collections.unmodifiableCollection(Arrays.asList("click",STR,STR,STR,"keyup",STR,STR,STR,STR,STR));
/** * <p>Set the value of the <code>styleClass</code> property.</p> */
Set the value of the <code>styleClass</code> property
setStyleClass
{ "repo_name": "jboss/jboss-jsf-api_spec", "path": "src/main/java/javax/faces/component/html/HtmlPanelGroup.java", "license": "gpl-2.0", "size": 12877 }
[ "java.util.Arrays", "java.util.Collection", "java.util.Collections" ]
import java.util.Arrays; import java.util.Collection; import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
1,470,057
public HB order(String order) { return order(Order.fromString(order)); }
HB function(String order) { return order(Order.fromString(order)); }
/** * The order of fragments per field. By default, ordered by the order in the * highlighted text. Can be <tt>score</tt>, which then it will be ordered * by score of the fragments, or <tt>none</TT>. */
The order of fragments per field. By default, ordered by the order in the highlighted text. Can be score, which then it will be ordered by score of the fragments, or none
order
{ "repo_name": "henakamaMSFT/elasticsearch", "path": "core/src/main/java/org/elasticsearch/search/fetch/subphase/highlight/AbstractHighlighterBuilder.java", "license": "apache-2.0", "size": 22299 }
[ "org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder" ]
import org.elasticsearch.search.fetch.subphase.highlight.HighlightBuilder;
import org.elasticsearch.search.fetch.subphase.highlight.*;
[ "org.elasticsearch.search" ]
org.elasticsearch.search;
1,877,571
public BlockSet releaseNextBlocks() throws BlockCreateException { if (factory == null) { throw new BlockCreateException(); } else { addLast(factory.create()); updatePosition(); return pop(); } }
BlockSet function() throws BlockCreateException { if (factory == null) { throw new BlockCreateException(); } else { addLast(factory.create()); updatePosition(); return pop(); } }
/** * Push new block set, update positions of them and pop first block set. <br> * * @return First stuck element of next block set * @throws BlockCreateException Can not create block */
Push new block set, update positions of them and pop first block set.
releaseNextBlocks
{ "repo_name": "aratakokubun/new_words", "path": "src/com/kkbnart/wordis/game/board/NextBlocks.java", "license": "mit", "size": 3032 }
[ "com.kkbnart.wordis.exception.BlockCreateException", "com.kkbnart.wordis.game.object.BlockSet" ]
import com.kkbnart.wordis.exception.BlockCreateException; import com.kkbnart.wordis.game.object.BlockSet;
import com.kkbnart.wordis.exception.*; import com.kkbnart.wordis.game.object.*;
[ "com.kkbnart.wordis" ]
com.kkbnart.wordis;
1,599,093
public List<AuditTsBean> getAuditBeanFromSearch(SearchAuditTsBean searchAuditTsBean, boolean isDeleteAction, Locale locale) throws ParseException;
List<AuditTsBean> function(SearchAuditTsBean searchAuditTsBean, boolean isDeleteAction, Locale locale) throws ParseException;
/** * Searches for TS audit events using the criterion from searchAuditTsBean * * @author coni * @return A list of audit beans */
Searches for TS audit events using the criterion from searchAuditTsBean
getAuditBeanFromSearch
{ "repo_name": "CodeSphere/termitaria", "path": "TermitariaAudit/JavaSource/ro/cs/logaudit/dao/IDaoAuditTs.java", "license": "agpl-3.0", "size": 2263 }
[ "java.text.ParseException", "java.util.List", "java.util.Locale", "ro.cs.logaudit.entity.AuditTsBean", "ro.cs.logaudit.entity.SearchAuditTsBean" ]
import java.text.ParseException; import java.util.List; import java.util.Locale; import ro.cs.logaudit.entity.AuditTsBean; import ro.cs.logaudit.entity.SearchAuditTsBean;
import java.text.*; import java.util.*; import ro.cs.logaudit.entity.*;
[ "java.text", "java.util", "ro.cs.logaudit" ]
java.text; java.util; ro.cs.logaudit;
500,420
public void setSortOrder(ExchangeSearchSortOrder sortOrder) { JodaBeanUtils.notNull(sortOrder, "sortOrder"); this._sortOrder = sortOrder; }
void function(ExchangeSearchSortOrder sortOrder) { JodaBeanUtils.notNull(sortOrder, STR); this._sortOrder = sortOrder; }
/** * Sets the sort order to use. * @param sortOrder the new value of the property, not null */
Sets the sort order to use
setSortOrder
{ "repo_name": "ChinaQuants/OG-Platform", "path": "projects/OG-Master/src/main/java/com/opengamma/master/exchange/ExchangeSearchRequest.java", "license": "apache-2.0", "size": 17411 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
1,387,213
@RequestMapping( value = "", method = RequestMethod.GET, produces = "application/json" ) public @ResponseBody List<String> getNamespaces( HttpServletResponse response ) throws IOException { return userKeyJsonValueService.getNamespacesByUser( currentUserService.getCurrentUser() ); }
@RequestMapping( value = STRapplication/json" ) @ResponseBody List<String> function( HttpServletResponse response ) throws IOException { return userKeyJsonValueService.getNamespacesByUser( currentUserService.getCurrentUser() ); }
/** * Returns a JSON array of strings representing the different namespaces used. * If no namespaces exist, an empty array is returned. */
Returns a JSON array of strings representing the different namespaces used. If no namespaces exist, an empty array is returned
getNamespaces
{ "repo_name": "minagri-rwanda/DHIS2-Agriculture", "path": "dhis-web/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/UserKeyJsonValueController.java", "license": "bsd-3-clause", "size": 9253 }
[ "java.io.IOException", "java.util.List", "javax.servlet.http.HttpServletResponse", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.ResponseBody" ]
import java.io.IOException; import java.util.List; import javax.servlet.http.HttpServletResponse; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody;
import java.io.*; import java.util.*; import javax.servlet.http.*; import org.springframework.web.bind.annotation.*;
[ "java.io", "java.util", "javax.servlet", "org.springframework.web" ]
java.io; java.util; javax.servlet; org.springframework.web;
749,725
public synchronized void collect(K key, V value, final int partition ) throws IOException { reporter.progress(); if (key.getClass() != keyClass) { throw new IOException("Type mismatch in key from map: expected " + keyClass.getNam...
synchronized void function(K key, V value, final int partition ) throws IOException { reporter.progress(); if (key.getClass() != keyClass) { throw new IOException(STR + keyClass.getName() + STR + key.getClass().getName()); } if (value.getClass() != valClass) { throw new IOException(STR + valClass.getName() + STR + valu...
/** * Serialize the key, value to intermediate storage. * When this method returns, kvindex must refer to sufficient unused * storage to store one METADATA. */
Serialize the key, value to intermediate storage. When this method returns, kvindex must refer to sufficient unused storage to store one METADATA
collect
{ "repo_name": "cnfire/hadoop", "path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/MapTask.java", "license": "apache-2.0", "size": 76111 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
190,065
@ObjectiveCName("sendPhotoWithPeer:withName:withW:withH:withThumb:withDescriptor:") public void sendPhoto(@NotNull Peer peer, @NotNull String fileName, int w, int h, @Nullable FastThumb fastThumb, @NotNull String descriptor) { modules.getMessagesModule...
@ObjectiveCName(STR) void function(@NotNull Peer peer, @NotNull String fileName, int w, int h, @Nullable FastThumb fastThumb, @NotNull String descriptor) { modules.getMessagesModule().sendPhoto(peer, fileName, w, h, fastThumb, descriptor); }
/** * Send Photo message * * @param peer destination peer * @param fileName File name (without path) * @param w photo width * @param h photo height * @param fastThumb Fast thumb of photo * @param descriptor File Descriptor */
Send Photo message
sendPhoto
{ "repo_name": "boneyao/actor-platform", "path": "actor-apps/core/src/main/java/im/actor/model/Messenger.java", "license": "mit", "size": 50580 }
[ "com.google.j2objc.annotations.ObjectiveCName", "im.actor.model.entity.Peer", "im.actor.model.entity.content.FastThumb", "org.jetbrains.annotations.NotNull", "org.jetbrains.annotations.Nullable" ]
import com.google.j2objc.annotations.ObjectiveCName; import im.actor.model.entity.Peer; import im.actor.model.entity.content.FastThumb; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;
import com.google.j2objc.annotations.*; import im.actor.model.entity.*; import im.actor.model.entity.content.*; import org.jetbrains.annotations.*;
[ "com.google.j2objc", "im.actor.model", "org.jetbrains.annotations" ]
com.google.j2objc; im.actor.model; org.jetbrains.annotations;
851,406
@Override public void close() throws IOException { final boolean closed = finished.getAndSet(true); if (closed) { return; } // Close the stream IOException exc = null; try { super.close(); } catch (final IOException ioe) { ...
void function() throws IOException { final boolean closed = finished.getAndSet(true); if (closed) { return; } IOException exc = null; try { super.close(); } catch (final IOException ioe) { exc = ioe; } try { onClose(); } catch (final IOException ioe) { exc = ioe; } if (exc != null) { throw exc; } }
/** * Closes this input stream and releases any system resources associated with the stream. * * @throws IOException if an error occurs. */
Closes this input stream and releases any system resources associated with the stream
close
{ "repo_name": "seeburger-ag/commons-vfs", "path": "commons-vfs2/src/main/java/org/apache/commons/vfs2/util/MonitorInputStream.java", "license": "apache-2.0", "size": 4702 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
119,039
@Bean(name = CacheConstants.DOWNLOAD_ID_CACHE) public Cache downloadIdCache() { return cacheManager().getDirectCache(CacheConstants.DOWNLOAD_ID_CACHE); }
@Bean(name = CacheConstants.DOWNLOAD_ID_CACHE) Cache function() { return cacheManager().getDirectCache(CacheConstants.DOWNLOAD_ID_CACHE); }
/** * Bean for the download id cache. * * @return the cache */
Bean for the download id cache
downloadIdCache
{ "repo_name": "StBurcher/hawkbit", "path": "hawkbit-repository/hawkbit-repository-test/src/main/java/org/eclipse/hawkbit/TestConfiguration.java", "license": "epl-1.0", "size": 4714 }
[ "org.eclipse.hawkbit.cache.CacheConstants", "org.springframework.cache.Cache", "org.springframework.context.annotation.Bean" ]
import org.eclipse.hawkbit.cache.CacheConstants; import org.springframework.cache.Cache; import org.springframework.context.annotation.Bean;
import org.eclipse.hawkbit.cache.*; import org.springframework.cache.*; import org.springframework.context.annotation.*;
[ "org.eclipse.hawkbit", "org.springframework.cache", "org.springframework.context" ]
org.eclipse.hawkbit; org.springframework.cache; org.springframework.context;
2,107,907
private void populateBuffers(Reader inReader) throws IOException { HTMLLexer lexer = new HTMLLexer(inReader); FastStringBuffer matchedText = new FastStringBuffer(); FastStringBuffer currentBuffer = generalText; boolean noIndex = false; DONE: while...
void function(Reader inReader) throws IOException { HTMLLexer lexer = new HTMLLexer(inReader); FastStringBuffer matchedText = new FastStringBuffer(); FastStringBuffer currentBuffer = generalText; boolean noIndex = false; DONE: while (true) { int lexResult = lexer.lex(matchedText); switch (lexResult) { case HTMLLexer.EO...
/** * Using the input stream, populate all the data structured defined * at the top of this class. * @throws IOException */
Using the input stream, populate all the data structured defined at the top of this class
populateBuffers
{ "repo_name": "Spantree/openpipeline", "path": "src/main/java/org/openpipeline/pipeline/docfilter/HTMLFilter.java", "license": "apache-2.0", "size": 18806 }
[ "java.io.IOException", "java.io.Reader", "java.net.MalformedURLException", "org.openpipeline.util.FastStringBuffer" ]
import java.io.IOException; import java.io.Reader; import java.net.MalformedURLException; import org.openpipeline.util.FastStringBuffer;
import java.io.*; import java.net.*; import org.openpipeline.util.*;
[ "java.io", "java.net", "org.openpipeline.util" ]
java.io; java.net; org.openpipeline.util;
3,657
private Hashtable<String, ContactFieldDTO> initializeFields() { // now go over the entity specific fields Hashtable<String, ContactFieldDTO> fields = new Hashtable<String, ContactFieldDTO>(); EntityBL entity = new EntityBL(entityId); for (ContactFieldTypeDTO field: entity.getEnti...
Hashtable<String, ContactFieldDTO> function() { Hashtable<String, ContactFieldDTO> fields = new Hashtable<String, ContactFieldDTO>(); EntityBL entity = new EntityBL(entityId); for (ContactFieldTypeDTO field: entity.getEntity().getContactFieldTypes()) { ContactFieldDTO fieldDto = new ContactFieldDTO(); fieldDto.setType(...
/** * Create a Hashtable with the key beign the field type for the * entity * @return */
Create a Hashtable with the key beign the field type for the entity
initializeFields
{ "repo_name": "tarique313/nBilling", "path": "src/java/com/sapienter/jbilling/server/user/ContactBL.java", "license": "agpl-3.0", "size": 17893 }
[ "com.sapienter.jbilling.server.user.contact.db.ContactFieldDTO", "com.sapienter.jbilling.server.user.contact.db.ContactFieldTypeDTO", "java.util.Hashtable" ]
import com.sapienter.jbilling.server.user.contact.db.ContactFieldDTO; import com.sapienter.jbilling.server.user.contact.db.ContactFieldTypeDTO; import java.util.Hashtable;
import com.sapienter.jbilling.server.user.contact.db.*; import java.util.*;
[ "com.sapienter.jbilling", "java.util" ]
com.sapienter.jbilling; java.util;
161,787
@Schema(description = "Syslog server (IP or FQDN)") public String getHost() { return host; }
@Schema(description = STR) String function() { return host; }
/** * Syslog server (IP or FQDN) * @return host **/
Syslog server (IP or FQDN)
getHost
{ "repo_name": "iterate-ch/cyberduck", "path": "dracoon/src/main/java/ch/cyberduck/core/sds/io/swagger/client/model/UpdateSyslogConfig.java", "license": "gpl-3.0", "size": 5748 }
[ "io.swagger.v3.oas.annotations.media.Schema" ]
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.*;
[ "io.swagger.v3" ]
io.swagger.v3;
868,195
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() ); try { log.println( "creating a Spreadsheet document" ); xSheetDoc = SOF.createCalcDoc(null); } catch ( com.sun.star.uno.Exception e ) { // Some exception occurs.FAILED ...
SOfficeFactory SOF = SOfficeFactory.getFactory( (XMultiServiceFactory)tParam.getMSF() ); try { log.println( STR ); xSheetDoc = SOF.createCalcDoc(null); } catch ( com.sun.star.uno.Exception e ) { e.printStackTrace( log ); throw new StatusException( STR, e ); } }
/** * Creates Spreadsheet document. */
Creates Spreadsheet document
initialize
{ "repo_name": "qt-haiku/LibreOffice", "path": "qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_CellAreaLinksEnumeration.java", "license": "gpl-3.0", "size": 4412 }
[ "com.sun.star.lang.XMultiServiceFactory" ]
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.*;
[ "com.sun.star" ]
com.sun.star;
1,039,560
public static final int TOP_LEFT = 1; public static final int TOP_RIGHT = 2; public static final int BOTTOM_LEFT = 3; public static final int BOTTOM_RIGHT = 4; protected static final int LAST_CORNER_KEY = 5; @SuppressWarnings("unchecked") private static Map<Image, Map<Image, Image>>[] m_decoratedImag...
static final int TOP_LEFT = 1; public static final int TOP_RIGHT = 2; public static final int BOTTOM_LEFT = 3; public static final int BOTTOM_RIGHT = 4; protected static final int LAST_CORNER_KEY = 5; @SuppressWarnings(STR) private static Map<Image, Map<Image, Image>>[] m_decoratedImageMap = new Map[LAST_CORNER_KEY]; p...
/** * Returns an {@link Image} composed of a base image decorated by another image. * * @param baseImage * the base {@link Image} that should be decorated * @param decorator * the {@link Image} to decorate the base image * @return {@link Image} The resulting decorated image */
Returns an <code>Image</code> composed of a base image decorated by another image
decorateImage
{ "repo_name": "capitalone/Hydrograph", "path": "hydrograph.ui/hydrograph.ui.parametergrid/src/main/java/hydrograph/ui/parametergrid/utils/SWTResourceManager.java", "license": "apache-2.0", "size": 15622 }
[ "java.util.Map", "org.eclipse.swt.graphics.Image" ]
import java.util.Map; import org.eclipse.swt.graphics.Image;
import java.util.*; import org.eclipse.swt.graphics.*;
[ "java.util", "org.eclipse.swt" ]
java.util; org.eclipse.swt;
566,991
public ServiceFuture<PolicyStatesQueryResultsInner> listQueryResultsForPolicySetDefinitionAsync(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName, QueryOptions queryOptions, final ServiceCallback<PolicyStatesQueryResultsInner> serviceCallback) { return ServiceF...
ServiceFuture<PolicyStatesQueryResultsInner> function(PolicyStatesResource policyStatesResource, String subscriptionId, String policySetDefinitionName, QueryOptions queryOptions, final ServiceCallback<PolicyStatesQueryResultsInner> serviceCallback) { return ServiceFuture.fromResponse(listQueryResultsForPolicySetDefinit...
/** * Queries policy states for the subscription level policy set definition. * * @param policyStatesResource The virtual resource under PolicyStates resource type. In a given time range, 'latest' represents the latest policy state(s), whereas 'default' represents all policy state(s). Possible values inc...
Queries policy states for the subscription level policy set definition
listQueryResultsForPolicySetDefinitionAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/policyinsights/mgmt-v2018_04_04/src/main/java/com/microsoft/azure/management/policyinsights/v2018_04_04/implementation/PolicyStatesInner.java", "license": "mit", "size": 215800 }
[ "com.microsoft.azure.management.policyinsights.v2018_04_04.PolicyStatesResource", "com.microsoft.azure.management.policyinsights.v2018_04_04.QueryOptions", "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.azure.management.policyinsights.v2018_04_04.PolicyStatesResource; import com.microsoft.azure.management.policyinsights.v2018_04_04.QueryOptions; import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.azure.management.policyinsights.v2018_04_04.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
1,702,739
public static MozuUrl removeShippingAdjustmentUrl(String orderId, String updateMode, String version) { UrlFormatter formatter = new UrlFormatter("/api/commerce/orders/{orderId}/adjustment/shipping?updatemode={updateMode}&version={version}"); formatter.formatUrl("orderId", orderId); formatter.formatUrl("up...
static MozuUrl function(String orderId, String updateMode, String version) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl(STR, orderId); formatter.formatUrl(STR, updateMode); formatter.formatUrl(STR, version); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; }
/** * Get Resource Url for RemoveShippingAdjustment * @param orderId Unique identifier of the order. * @param updateMode Specifies whether to update the original order, update the order in draft mode, or update the order in draft mode and then commit the changes to the original. Draft mode enables users to mak...
Get Resource Url for RemoveShippingAdjustment
removeShippingAdjustmentUrl
{ "repo_name": "johngatti/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/commerce/orders/AdjustmentUrl.java", "license": "mit", "size": 6385 }
[ "com.mozu.api.MozuUrl", "com.mozu.api.utils.UrlFormatter" ]
import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter;
import com.mozu.api.*; import com.mozu.api.utils.*;
[ "com.mozu.api" ]
com.mozu.api;
196,679
protected void initTReportPersonSettingss() { if (collTReportPersonSettingss == null) { collTReportPersonSettingss = new ArrayList<TReportPersonSettings>(); } }
void function() { if (collTReportPersonSettingss == null) { collTReportPersonSettingss = new ArrayList<TReportPersonSettings>(); } }
/** * Temporary storage of collTReportPersonSettingss to save a possible db hit in * the event objects are add to the collection, but the * complete collection is never requested. */
Temporary storage of collTReportPersonSettingss to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested
initTReportPersonSettingss
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTPerson.java", "license": "gpl-3.0", "size": 1013508 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,206,981
public synchronized void openDriver(SurfaceHolder holder) throws IOException, InterruptedException { Camera theCamera = camera; if (theCamera == null) { theCamera = OpenCameraInterface.open(); if (theCamera == null) { throw new IOException(); ...
synchronized void function(SurfaceHolder holder) throws IOException, InterruptedException { Camera theCamera = camera; if (theCamera == null) { theCamera = OpenCameraInterface.open(); if (theCamera == null) { throw new IOException(); } camera = theCamera; } theCamera.setPreviewDisplay(holder); if (!initialized) { initi...
/** * Opens the camera driver and initializes the hardware parameters. * * @param holder * The surface object which the camera will draw preview frames * into. * @throws IOException * Indicates the camera driver failed to open. * @throws Interrup...
Opens the camera driver and initializes the hardware parameters
openDriver
{ "repo_name": "chenkel/kontextSmartWatch", "path": "glass/src/main/java/google/zxing/client/android/camera/CameraManager.java", "license": "gpl-3.0", "size": 12616 }
[ "android.hardware.Camera", "android.util.Log", "android.view.SurfaceHolder", "com.google.zxing.client.android.camera.open.OpenCameraInterface", "java.io.IOException" ]
import android.hardware.Camera; import android.util.Log; import android.view.SurfaceHolder; import com.google.zxing.client.android.camera.open.OpenCameraInterface; import java.io.IOException;
import android.hardware.*; import android.util.*; import android.view.*; import com.google.zxing.client.android.camera.open.*; import java.io.*;
[ "android.hardware", "android.util", "android.view", "com.google.zxing", "java.io" ]
android.hardware; android.util; android.view; com.google.zxing; java.io;
1,010,076
@Override public Preferences getNode(String nodeName) { return PREFNODE.node(nodeName); } //////////////////
Preferences function(String nodeName) { return PREFNODE.node(nodeName); }
/** * Return a preferences object for the specified node name. * * @param nodeName the node name * @return the preferences object for that node */
Return a preferences object for the specified node name
getNode
{ "repo_name": "joebowen/landing_zone_project", "path": "openrocket-release-15.03/swing/src/net/sf/openrocket/gui/util/SwingPreferences.java", "license": "gpl-2.0", "size": 16552 }
[ "java.util.prefs.Preferences" ]
import java.util.prefs.Preferences;
import java.util.prefs.*;
[ "java.util" ]
java.util;
1,446,966
public Element getFirstElementChild() { Node n = getFirstChild(); while (n != null) { if (n.getNodeType() == Node.ELEMENT_NODE) { return (Element) n; } n = n.getNextSibling(); } return null; }
Element function() { Node n = getFirstChild(); while (n != null) { if (n.getNodeType() == Node.ELEMENT_NODE) { return (Element) n; } n = n.getNextSibling(); } return null; }
/** * <b>DOM</b>: Implements {@link ElementTraversal#getFirstElementChild()}. */
DOM: Implements <code>ElementTraversal#getFirstElementChild()</code>
getFirstElementChild
{ "repo_name": "sflyphotobooks/crp-batik", "path": "sources/org/apache/batik/dom/AbstractElement.java", "license": "apache-2.0", "size": 35349 }
[ "org.w3c.dom.Element", "org.w3c.dom.Node" ]
import org.w3c.dom.Element; import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,854,460
@Test(expected = RequestException.class) public void testGetFilesOptRequestException() throws P4JavaException { List<IFileSpec> specs = FileSpecBuilder.makeFileSpecList(DEPOT_DEV_PATH); when(server.execMapCmdList(eq(FILES.toString()), argThat(DEV_FS_MATCHER), eq(null))) .thenThro...
@Test(expected = RequestException.class) void function() throws P4JavaException { List<IFileSpec> specs = FileSpecBuilder.makeFileSpecList(DEPOT_DEV_PATH); when(server.execMapCmdList(eq(FILES.toString()), argThat(DEV_FS_MATCHER), eq(null))) .thenThrow(RequestException.class); filesDelegator.getDepotFiles(specs, new Get...
/** * Test get files Request exception. * * @throws P4JavaException * the p4 java exception */
Test get files Request exception
testGetFilesOptRequestException
{ "repo_name": "groboclown/p4ic4idea", "path": "p4java/r18-1/src/test/java/com/perforce/p4java/impl/mapbased/server/cmd/FilesDelegatorTest.java", "license": "apache-2.0", "size": 10724 }
[ "com.perforce.p4java.core.file.FileSpecBuilder", "com.perforce.p4java.core.file.IFileSpec", "com.perforce.p4java.exception.P4JavaException", "com.perforce.p4java.exception.RequestException", "com.perforce.p4java.option.server.GetDepotFilesOptions", "com.perforce.p4java.server.CmdSpec", "java.util.List",...
import com.perforce.p4java.core.file.FileSpecBuilder; import com.perforce.p4java.core.file.IFileSpec; import com.perforce.p4java.exception.P4JavaException; import com.perforce.p4java.exception.RequestException; import com.perforce.p4java.option.server.GetDepotFilesOptions; import com.perforce.p4java.server.CmdSpec; imp...
import com.perforce.p4java.core.file.*; import com.perforce.p4java.exception.*; import com.perforce.p4java.option.server.*; import com.perforce.p4java.server.*; import java.util.*; import org.junit.*; import org.mockito.*;
[ "com.perforce.p4java", "java.util", "org.junit", "org.mockito" ]
com.perforce.p4java; java.util; org.junit; org.mockito;
2,082,297
public String getAverage(List<Double> values) { double sum = 0; if (values.size() == 0) { return NAN; } for (double dValue : values) { sum += dValue; } return format(sum / values.size()); }
String function(List<Double> values) { double sum = 0; if (values.size() == 0) { return NAN; } for (double dValue : values) { sum += dValue; } return format(sum / values.size()); }
/** * Returns the average of double values stored in a List or "NaN" for * empty lists. * @param values The list of double values * @return average of double values stored in the List in a formatted String */
Returns the average of double values stored in a List or "NaN" for empty lists
getAverage
{ "repo_name": "BOBtheBuildr/ONE-simulator", "path": "report/Report.java", "license": "gpl-3.0", "size": 12100 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,844,413
public java.util.List<fr.lip6.move.pnml.hlpn.finiteIntRanges.hlapi.FiniteIntRangeHLAPI> getInput_finiteIntRanges_FiniteIntRangeHLAPI(){ java.util.List<fr.lip6.move.pnml.hlpn.finiteIntRanges.hlapi.FiniteIntRangeHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.finiteIntRanges.hlapi.FiniteIntRangeHLAPI>(); ...
java.util.List<fr.lip6.move.pnml.hlpn.finiteIntRanges.hlapi.FiniteIntRangeHLAPI> function(){ java.util.List<fr.lip6.move.pnml.hlpn.finiteIntRanges.hlapi.FiniteIntRangeHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.finiteIntRanges.hlapi.FiniteIntRangeHLAPI>(); for (Sort elemnt : getInput()) { if(elemnt.getClass()....
/** * This accessor return a list of encapsulated subelement, only of FiniteIntRangeHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of FiniteIntRangeHLAPI kind. WARNING : this method can creates a lot of new object in memory
getInput_finiteIntRanges_FiniteIntRangeHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/lists/hlapi/LengthHLAPI.java", "license": "epl-1.0", "size": 108262 }
[ "fr.lip6.move.pnml.hlpn.terms.Sort", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.hlpn.terms.Sort; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.hlpn.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
379,285
protected String getManualDir(ServletConfig config) { EngineLocalConfig engineLocalConfig = EngineLocalConfig.getInstance(); String manualDir = ServletUtils.getAsAbsoluteContext(getServletContext().getContextPath(), engineLocalConfig.expandString( config.getIn...
String function(ServletConfig config) { EngineLocalConfig engineLocalConfig = EngineLocalConfig.getInstance(); String manualDir = ServletUtils.getAsAbsoluteContext(getServletContext().getContextPath(), engineLocalConfig.expandString( config.getInitParameter(MANUAL_DIR_KEY).replaceAll("%\\{", "\\${")) ); return manualDi...
/** * Get the configured manual directory from the servlet config. */
Get the configured manual directory from the servlet config
getManualDir
{ "repo_name": "OpenUniversity/ovirt-engine", "path": "backend/manager/modules/docs/src/main/java/org/ovirt/engine/docs/utils/servlet/ContextSensitiveHelpMappingServlet.java", "license": "apache-2.0", "size": 9456 }
[ "javax.servlet.ServletConfig", "org.ovirt.engine.core.utils.EngineLocalConfig", "org.ovirt.engine.core.utils.servlet.ServletUtils" ]
import javax.servlet.ServletConfig; import org.ovirt.engine.core.utils.EngineLocalConfig; import org.ovirt.engine.core.utils.servlet.ServletUtils;
import javax.servlet.*; import org.ovirt.engine.core.utils.*; import org.ovirt.engine.core.utils.servlet.*;
[ "javax.servlet", "org.ovirt.engine" ]
javax.servlet; org.ovirt.engine;
1,184,899
public void init(Context context, String uniqueName, int cacheSize, CompressFormat compressFormat, int quality, CacheType type) { switch (type) { case DISK: mImageCache = new DiskLruImageCache(context, uniqueName, cacheSize, compressFormat, quality); break; ...
void function(Context context, String uniqueName, int cacheSize, CompressFormat compressFormat, int quality, CacheType type) { switch (type) { case DISK: mImageCache = new DiskLruImageCache(context, uniqueName, cacheSize, compressFormat, quality); break; case MEMORY: mImageCache = new BitmapLruImageCache(cacheSize); de...
/** * Initializer for the manager. Must be called prior to use. * * @param context application context * @param uniqueName name for the cache location * @param cacheSize max size for the cache * @param compressFormat file type compression format. * @param quality ...
Initializer for the manager. Must be called prior to use
init
{ "repo_name": "luni66/Arpav", "path": "app/src/main/java/eu/lucazanini/arpav/network/ImageCacheManager.java", "license": "gpl-3.0", "size": 3493 }
[ "android.content.Context", "android.graphics.Bitmap", "com.android.volley.toolbox.ImageLoader" ]
import android.content.Context; import android.graphics.Bitmap; import com.android.volley.toolbox.ImageLoader;
import android.content.*; import android.graphics.*; import com.android.volley.toolbox.*;
[ "android.content", "android.graphics", "com.android.volley" ]
android.content; android.graphics; com.android.volley;
185,994
public static InputStream needInputStream(Source src) { InputStream in = getInputStream(src); if (in != null) { return in; } else { throw new IllegalArgumentException("Source must be a StreamSource with an InputStream" + " or an ImageSource"); ...
static InputStream function(Source src) { InputStream in = getInputStream(src); if (in != null) { return in; } else { throw new IllegalArgumentException(STR + STR); } }
/** * Returns the InputStream of a Source object. This method throws an IllegalArgumentException * if there's no InputStream instance available from the Source object. * @param src the Source object * @return the InputStream */
Returns the InputStream of a Source object. This method throws an IllegalArgumentException if there's no InputStream instance available from the Source object
needInputStream
{ "repo_name": "apache/xml-graphics-commons", "path": "src/main/java/org/apache/xmlgraphics/io/XmlSourceUtil.java", "license": "apache-2.0", "size": 6257 }
[ "java.io.InputStream", "javax.xml.transform.Source" ]
import java.io.InputStream; import javax.xml.transform.Source;
import java.io.*; import javax.xml.transform.*;
[ "java.io", "javax.xml" ]
java.io; javax.xml;
1,577,429
public void setScript(final List<Script> vScriptList) { // copy vector _scriptList.clear(); _scriptList.addAll(vScriptList); }
void function(final List<Script> vScriptList) { _scriptList.clear(); _scriptList.addAll(vScriptList); }
/** * Sets the value of '_scriptList' by copying the given Vector. All elements * will be checked for type safety. * * @param vScriptList * the Vector to copy. */
Sets the value of '_scriptList' by copying the given Vector. All elements will be checked for type safety
setScript
{ "repo_name": "bugcy013/opennms-tmp-tools", "path": "opennms-model/src/main/java/org/opennms/netmgt/xml/event/Event.java", "license": "gpl-2.0", "size": 46220 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,033,672
protected KeycloakPrincipal<RefreshableKeycloakSecurityContext> checkPrincipalFromCookie() { KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal = CookieTokenStore.getPrincipalFromCookie(deployment, facade, this); if (principal == null) { log.fine("Account was not in cookie o...
KeycloakPrincipal<RefreshableKeycloakSecurityContext> function() { KeycloakPrincipal<RefreshableKeycloakSecurityContext> principal = CookieTokenStore.getPrincipalFromCookie(deployment, facade, this); if (principal == null) { log.fine(STR); return null; } RefreshableKeycloakSecurityContext session = principal.getKeycloa...
/** * Verify if we already have authenticated and active principal in cookie. Perform refresh if it's not active * * @return valid principal */
Verify if we already have authenticated and active principal in cookie. Perform refresh if it's not active
checkPrincipalFromCookie
{ "repo_name": "eugene-chow/keycloak", "path": "integration/tomcat/tomcat-core/src/main/java/org/keycloak/adapters/tomcat/CatalinaCookieTokenStore.java", "license": "apache-2.0", "size": 4625 }
[ "org.keycloak.KeycloakPrincipal", "org.keycloak.adapters.CookieTokenStore", "org.keycloak.adapters.RefreshableKeycloakSecurityContext" ]
import org.keycloak.KeycloakPrincipal; import org.keycloak.adapters.CookieTokenStore; import org.keycloak.adapters.RefreshableKeycloakSecurityContext;
import org.keycloak.*; import org.keycloak.adapters.*;
[ "org.keycloak", "org.keycloak.adapters" ]
org.keycloak; org.keycloak.adapters;
822,392
@Override public boolean onPreparePanel(int featureId, View view, Menu menu) { if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) { if (mOptionsMenuInvalidated) { mOptionsMenuInvalidated = false; menu.clear(); onCreatePanelMenu(feat...
boolean function(int featureId, View view, Menu menu) { if (featureId == Window.FEATURE_OPTIONS_PANEL && menu != null) { if (mOptionsMenuInvalidated) { mOptionsMenuInvalidated = false; menu.clear(); onCreatePanelMenu(featureId, menu); } boolean goforit = onPrepareOptionsPanel(view, menu); goforit = mFragments.dispatchP...
/** * Dispatch onPrepareOptionsMenu() to fragments. */
Dispatch onPrepareOptionsMenu() to fragments
onPreparePanel
{ "repo_name": "rytina/dukecon_appsgenerator", "path": "org.applause.lang.generator.android/sdk/extras/android/support/v4/src/java/android/support/v4/app/FragmentActivity.java", "license": "epl-1.0", "size": 33619 }
[ "android.view.Menu", "android.view.View", "android.view.Window" ]
import android.view.Menu; import android.view.View; import android.view.Window;
import android.view.*;
[ "android.view" ]
android.view;
2,041,502
public AccessibleSelection getAccessibleSelection() { return this; }
AccessibleSelection function() { return this; }
/** * Get the AccessibleSelection associated with this object if one exists. * * @return the accessible selection for this. */
Get the AccessibleSelection associated with this object if one exists
getAccessibleSelection
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/javax/swing/JTree.java", "license": "gpl-2.0", "size": 83318 }
[ "javax.accessibility.AccessibleSelection" ]
import javax.accessibility.AccessibleSelection;
import javax.accessibility.*;
[ "javax.accessibility" ]
javax.accessibility;
2,075,599
public static ClientFactoryOptions of(ClientFactoryOptionValue<?>... values) { requireNonNull(values, "values"); if (values.length == 0) { return EMPTY; } return of(Arrays.asList(values)); }
static ClientFactoryOptions function(ClientFactoryOptionValue<?>... values) { requireNonNull(values, STR); if (values.length == 0) { return EMPTY; } return of(Arrays.asList(values)); }
/** * Returns the {@link ClientFactoryOptions} with the specified {@link ClientFactoryOptionValue}s. */
Returns the <code>ClientFactoryOptions</code> with the specified <code>ClientFactoryOptionValue</code>s
of
{ "repo_name": "trustin/armeria", "path": "core/src/main/java/com/linecorp/armeria/client/ClientFactoryOptions.java", "license": "apache-2.0", "size": 22118 }
[ "java.util.Arrays", "java.util.Objects" ]
import java.util.Arrays; import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
391,836
return ruleContext.getExecutablePrerequisite("$xcrunwrapper", Mode.HOST); } private static final InstrumentationSpec INSTRUMENTATION_SPEC = new InstrumentationSpec( FileTypeSet.of( ObjcRuleClasses.NON_CPP_SOURCES, ObjcRuleClasses.CPP_SOURCES, ...
return ruleContext.getExecutablePrerequisite(STR, Mode.HOST); } private static final InstrumentationSpec INSTRUMENTATION_SPEC = new InstrumentationSpec( FileTypeSet.of( ObjcRuleClasses.NON_CPP_SOURCES, ObjcRuleClasses.CPP_SOURCES, ObjcRuleClasses.SWIFT_SOURCES, HEADERS)) .withSourceAttributes("srcs", STR, "hdrs") .with...
/** * Returns the location of the xcrunwrapper tool. */
Returns the location of the xcrunwrapper tool
xcrunwrapper
{ "repo_name": "whuwxl/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java", "license": "apache-2.0", "size": 63192 }
[ "com.google.devtools.build.lib.analysis.RuleConfiguredTarget", "com.google.devtools.build.lib.rules.test.InstrumentedFilesCollector", "com.google.devtools.build.lib.util.FileTypeSet" ]
import com.google.devtools.build.lib.analysis.RuleConfiguredTarget; import com.google.devtools.build.lib.rules.test.InstrumentedFilesCollector; import com.google.devtools.build.lib.util.FileTypeSet;
import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.rules.test.*; import com.google.devtools.build.lib.util.*;
[ "com.google.devtools" ]
com.google.devtools;
962,751
public AttributeStatement newAttributeStatement(final Map<String, Object> attributes, final Map<String, String> attributeFriendlyNames, final Map<String, String> attributeValueTypes, ...
AttributeStatement function(final Map<String, Object> attributes, final Map<String, String> attributeFriendlyNames, final Map<String, String> attributeValueTypes, final Map<String, String> configuredNameFormats, final String defaultNameFormat, final Saml20AttributeBuilder builder) { val attrStatement = newSamlObject(At...
/** * New attribute statement. * * @param attributes the attributes * @param attributeFriendlyNames the attribute friendly names * @param attributeValueTypes the attribute value types * @param configuredNameFormats the configured name formats * @param defaultNameFormat...
New attribute statement
newAttributeStatement
{ "repo_name": "rrenomeron/cas", "path": "support/cas-server-support-saml-core-api/src/main/java/org/apereo/cas/support/saml/util/AbstractSaml20ObjectBuilder.java", "license": "apache-2.0", "size": 20781 }
[ "java.util.Collection", "java.util.Map", "org.opensaml.saml.saml2.core.AttributeStatement" ]
import java.util.Collection; import java.util.Map; import org.opensaml.saml.saml2.core.AttributeStatement;
import java.util.*; import org.opensaml.saml.saml2.core.*;
[ "java.util", "org.opensaml.saml" ]
java.util; org.opensaml.saml;
2,137,250
protected float getHeightXYGlobal() { if (this.hasBounds()){ return this.getBounds().getHeightXY(TransformSpace.GLOBAL); }else{ OrientedBoundingBox tempBounds = new OrientedBoundingBox(this); return tempBounds.getHeightXY(TransformSpace.GLOBAL); } }
float function() { if (this.hasBounds()){ return this.getBounds().getHeightXY(TransformSpace.GLOBAL); }else{ OrientedBoundingBox tempBounds = new OrientedBoundingBox(this); return tempBounds.getHeightXY(TransformSpace.GLOBAL); } }
/** * Gets the "height vector" and transforms it to world space, then calculates * its length. * * @return the height xy global * * the height relative to the world space */
Gets the "height vector" and transforms it to world space, then calculates its length
getHeightXYGlobal
{ "repo_name": "rogiermars/mt4j-core", "path": "src/org/mt4j/components/visibleComponents/shapes/AbstractShape.java", "license": "gpl-2.0", "size": 50363 }
[ "org.mt4j.components.TransformSpace", "org.mt4j.components.bounds.OrientedBoundingBox" ]
import org.mt4j.components.TransformSpace; import org.mt4j.components.bounds.OrientedBoundingBox;
import org.mt4j.components.*; import org.mt4j.components.bounds.*;
[ "org.mt4j.components" ]
org.mt4j.components;
74,074
public void deleteObsThatReference(Order order) { if (order != null) { sessionFactory.getCurrentSession().createQuery("delete Obs where order = :order").setParameter("order", order) .executeUpdate(); } }
void function(Order order) { if (order != null) { sessionFactory.getCurrentSession().createQuery(STR).setParameter("order", order) .executeUpdate(); } }
/** * Delete Obs that references (deleted) Order */
Delete Obs that references (deleted) Order
deleteObsThatReference
{ "repo_name": "jembi/openmrs-core", "path": "api/src/main/java/org/openmrs/api/db/hibernate/HibernateOrderDAO.java", "license": "mpl-2.0", "size": 19060 }
[ "org.openmrs.Order" ]
import org.openmrs.Order;
import org.openmrs.*;
[ "org.openmrs" ]
org.openmrs;
2,212,248
public static void encrypt(byte[] ivBytes, byte[] keyBytes, String path) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException { Path filePath = Paths.get(path); byte[] data = Files.r...
static void function(byte[] ivBytes, byte[] keyBytes, String path) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, InvalidAlgorithmParameterException, IllegalBlockSizeException, BadPaddingException, IOException { Path filePath = Paths.get(path); byte[] data = Files.readAllBytes(filePath); ...
/** * Encrypts a file. * * @param ivBytes * Variable to do the encryption. * @param keyBytes * Variable to do the encryption. * @param path * String with the path of the file. * @throws NoSuchAlgorithmException * @throws NoSuchPaddingException * @throws InvalidKey...
Encrypts a file
encrypt
{ "repo_name": "sing-group/BEW", "path": "plugins_src/bew/es/uvigo/ei/sing/bew/constants/FunctionConstants.java", "license": "gpl-3.0", "size": 60653 }
[ "java.io.File", "java.io.IOException", "java.nio.file.Files", "java.nio.file.Path", "java.nio.file.Paths", "java.security.InvalidAlgorithmParameterException", "java.security.InvalidKeyException", "java.security.NoSuchAlgorithmException", "java.security.spec.AlgorithmParameterSpec", "javax.crypto.B...
import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.security.InvalidAlgorithmParameterException; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; import java.security.spec.AlgorithmParamet...
import java.io.*; import java.nio.file.*; import java.security.*; import java.security.spec.*; import javax.crypto.*; import javax.crypto.spec.*;
[ "java.io", "java.nio", "java.security", "javax.crypto" ]
java.io; java.nio; java.security; javax.crypto;
2,358,745
public void initialize() throws Exception { logger.info("Attempting to initialize resource."); Resource resource = find(null); if (resource == null) { logger.error("Unable to initialize resource!"); } else { logger.info("Successfully initialized resource."); } }
void function() throws Exception { logger.info(STR); Resource resource = find(null); if (resource == null) { logger.error(STR); } else { logger.info(STR); } }
/** * Initialze the singleton resource, when the home is initialized. */
Initialze the singleton resource, when the home is initialized
initialize
{ "repo_name": "NCIP/cagrid-grid-incubation", "path": "grid-incubation/test/projects/workflowHelper/resources/Service3/src/org/cagrid/introduce/service3/service/globus/resource/Service3ResourceHome.java", "license": "bsd-3-clause", "size": 3676 }
[ "org.globus.wsrf.Resource" ]
import org.globus.wsrf.Resource;
import org.globus.wsrf.*;
[ "org.globus.wsrf" ]
org.globus.wsrf;
1,311,904
public OneResponse monitoring(int filter) { return monitoring(client, filter); }
OneResponse function(int filter) { return monitoring(client, filter); }
/** * Retrieves the monitoring data for all or part of the Virtual * Machines in the pool. * * @param filter Filter flag to use. Possible values: * <ul> * <li>{@link Pool#ALL}: All Virtual Machines</li> * <li>{@link Pool#MINE}: Connected user's Virtual Machines</li> * <li>{@link ...
Retrieves the monitoring data for all or part of the Virtual Machines in the pool
monitoring
{ "repo_name": "unistra/one", "path": "src/oca/java/src/org/opennebula/client/vm/VirtualMachinePool.java", "license": "apache-2.0", "size": 11465 }
[ "org.opennebula.client.OneResponse" ]
import org.opennebula.client.OneResponse;
import org.opennebula.client.*;
[ "org.opennebula.client" ]
org.opennebula.client;
1,453,135
T invoke(Jedis jedis); }
T invoke(Jedis jedis); }
/** * Invoke the operation * * @param jedis the {@link Jedis} instance to use * @return the return value of the operation */
Invoke the operation
invoke
{ "repo_name": "ccheetham/session-managers", "path": "redis-store/src/main/java/com/gopivotal/manager/redis/JedisTemplate.java", "license": "apache-2.0", "size": 1436 }
[ "redis.clients.jedis.Jedis" ]
import redis.clients.jedis.Jedis;
import redis.clients.jedis.*;
[ "redis.clients.jedis" ]
redis.clients.jedis;
2,426,170
public DrawerBuilder withDrawerLayout(@LayoutRes int resLayout) { if (mActivity == null) { throw new RuntimeException("please pass an activity first to use this call"); } if (resLayout != -1) { this.mDrawerLayout = (DrawerLayout) mActivity.getLayoutInflater().inflate...
DrawerBuilder function(@LayoutRes int resLayout) { if (mActivity == null) { throw new RuntimeException(STR); } if (resLayout != -1) { this.mDrawerLayout = (DrawerLayout) mActivity.getLayoutInflater().inflate(resLayout, mRootView, false); } else { this.mDrawerLayout = (DrawerLayout) mActivity.getLayoutInflater().inflate...
/** * Pass a custom DrawerLayout Resource which will be used. * NOTE: This requires the same structure as the drawer.xml * * @param resLayout * @return */
Pass a custom DrawerLayout Resource which will be used
withDrawerLayout
{ "repo_name": "hanhailong/MaterialDrawer", "path": "library/src/main/java/com/mikepenz/materialdrawer/DrawerBuilder.java", "license": "apache-2.0", "size": 55591 }
[ "android.support.annotation.LayoutRes", "android.support.v4.widget.DrawerLayout" ]
import android.support.annotation.LayoutRes; import android.support.v4.widget.DrawerLayout;
import android.support.annotation.*; import android.support.v4.widget.*;
[ "android.support" ]
android.support;
1,188,358
T visitWait(@NotNull BigDataScriptParser.WaitContext ctx);
T visitWait(@NotNull BigDataScriptParser.WaitContext ctx);
/** * Visit a parse tree produced by {@link BigDataScriptParser#wait}. * @param ctx the parse tree * @return the visitor result */
Visit a parse tree produced by <code>BigDataScriptParser#wait</code>
visitWait
{ "repo_name": "leepc12/BigDataScript", "path": "src/org/bds/antlr/BigDataScriptVisitor.java", "license": "apache-2.0", "size": 22181 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,315,951
protected void refreshPolicy() { try { // The policy file may have been modified to adjust // permissions, so we're reloading it when loading or // reloading a Context Policy policy = Policy.getPolicy(); policy.refresh(); } catch (AccessCo...
void function() { try { Policy policy = Policy.getPolicy(); policy.refresh(); } catch (AccessControlException e) { } }
/** * Refresh the system policy file, to pick up eventual changes. */
Refresh the system policy file, to pick up eventual changes
refreshPolicy
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.0/WebappClassLoader.java", "license": "mit", "size": 98710 }
[ "java.security.AccessControlException", "java.security.Policy" ]
import java.security.AccessControlException; import java.security.Policy;
import java.security.*;
[ "java.security" ]
java.security;
395,330
public void onItemRemoved(int position) { Snackbar snackbar = Snackbar.make( findViewById(R.id.container), R.string.snack_bar_text_item_removed, Snackbar.LENGTH_LONG);
void function(int position) { Snackbar snackbar = Snackbar.make( findViewById(R.id.container), R.string.snack_bar_text_item_removed, Snackbar.LENGTH_LONG);
/** * This method will be called when a list item is removed * * @param position The position of the item within data set */
This method will be called when a list item is removed
onItemRemoved
{ "repo_name": "first087/android-advancedrecyclerview", "path": "example/src/main/java/com/h6ah4i/android/example/advrecyclerview/demo_s/SwipeableExampleActivity.java", "license": "apache-2.0", "size": 4994 }
[ "android.support.design.widget.Snackbar" ]
import android.support.design.widget.Snackbar;
import android.support.design.widget.*;
[ "android.support" ]
android.support;
11,358
public AroundInvokeType<InterceptorType<T>> createAroundInvoke() { return new AroundInvokeTypeImpl<InterceptorType<T>>(this, "around-invoke", childNode); }
AroundInvokeType<InterceptorType<T>> function() { return new AroundInvokeTypeImpl<InterceptorType<T>>(this, STR, childNode); }
/** * Creates a new <code>around-invoke</code> element * @return the new created instance of <code>AroundInvokeType<InterceptorType<T>></code> */
Creates a new <code>around-invoke</code> element
createAroundInvoke
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/ejbjar30/InterceptorTypeImpl.java", "license": "epl-1.0", "size": 39854 }
[ "org.jboss.shrinkwrap.descriptor.api.ejbjar30.AroundInvokeType", "org.jboss.shrinkwrap.descriptor.api.ejbjar30.InterceptorType" ]
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.AroundInvokeType; import org.jboss.shrinkwrap.descriptor.api.ejbjar30.InterceptorType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
2,516,231