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 void setResolution(Resolution res) { this.resolutionScale = setResolution(this.getHostControl(), res.getDimension()); }
void function(Resolution res) { this.resolutionScale = setResolution(this.getHostControl(), res.getDimension()); }
/** * Sets the resolution for the GameWindow. * * @param res * The desired Resolution to set for the GameWindow. * @see Resolution */
Sets the resolution for the GameWindow
setResolution
{ "repo_name": "gurkenlabs/litiengine", "path": "core/src/main/java/de/gurkenlabs/litiengine/GameWindow.java", "license": "mit", "size": 12869 }
[ "de.gurkenlabs.litiengine.gui.screens.Resolution" ]
import de.gurkenlabs.litiengine.gui.screens.Resolution;
import de.gurkenlabs.litiengine.gui.screens.*;
[ "de.gurkenlabs.litiengine" ]
de.gurkenlabs.litiengine;
404,993
public boolean stop(INotifiableManager manager);
boolean function(INotifiableManager manager);
/** * Stops the currently playing media. * @param manager Manager reference * @return true on success, false otherwise. */
Stops the currently playing media
stop
{ "repo_name": "murat8505/android-xbmcremote-1", "path": "src/org/xbmc/api/data/IControlClient.java", "license": "gpl-2.0", "size": 10126 }
[ "org.xbmc.api.business.INotifiableManager" ]
import org.xbmc.api.business.INotifiableManager;
import org.xbmc.api.business.*;
[ "org.xbmc.api" ]
org.xbmc.api;
2,498,404
void fireWrite(Dimse dimse) { if (log.isInfoEnabled()) { log.info("sending " + dimse); } if (assocListener != null) { assocListener.write(assoc, dimse); } }
void fireWrite(Dimse dimse) { if (log.isInfoEnabled()) { log.info(STR + dimse); } if (assocListener != null) { assocListener.write(assoc, dimse); } }
/** * Description of the Method * *@param dimse Description of the Parameter */
Description of the Method
fireWrite
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4che14/trunk/src/java/org/dcm4cheri/net/FsmImpl.java", "license": "apache-2.0", "size": 43871 }
[ "org.dcm4che.net.Dimse" ]
import org.dcm4che.net.Dimse;
import org.dcm4che.net.*;
[ "org.dcm4che.net" ]
org.dcm4che.net;
1,517,315
public void setErrorDistribution(int factor, Distribution distribution) { this.polynomialFunction.setErrorDistribution(factor, distribution); }
void function(int factor, Distribution distribution) { this.polynomialFunction.setErrorDistribution(factor, distribution); }
/** * Method setIntenalNoiseModel * * @param factor * @param distribution */
Method setIntenalNoiseModel
setErrorDistribution
{ "repo_name": "amurrayw/tetrad", "path": "tetrad-lib/src/main/java/edu/cmu/tetrad/gene/tetrad/gene/history/LinearFunction.java", "license": "gpl-2.0", "size": 8307 }
[ "edu.cmu.tetrad.util.dist.Distribution" ]
import edu.cmu.tetrad.util.dist.Distribution;
import edu.cmu.tetrad.util.dist.*;
[ "edu.cmu.tetrad" ]
edu.cmu.tetrad;
1,116,871
public void messageReceived(AndesMessage message, AndesChannel andesChannel, PubAckHandler pubAckHandler);
void function(AndesMessage message, AndesChannel andesChannel, PubAckHandler pubAckHandler);
/** * When a message is received from a transport it is handed over to MessagingEngine through the implementation of * inbound event manager. (e.g: through a disruptor ring buffer) Eventually the message will be stored * @param message AndesMessage * @param andesChannel AndesChannel * @param pu...
When a message is received from a transport it is handed over to MessagingEngine through the implementation of inbound event manager. (e.g: through a disruptor ring buffer) Eventually the message will be stored
messageReceived
{ "repo_name": "hemikak/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/InboundEventManager.java", "license": "apache-2.0", "size": 4513 }
[ "org.wso2.andes.kernel.disruptor.inbound.PubAckHandler" ]
import org.wso2.andes.kernel.disruptor.inbound.PubAckHandler;
import org.wso2.andes.kernel.disruptor.inbound.*;
[ "org.wso2.andes" ]
org.wso2.andes;
1,836,038
@Override protected void setObjectProperty(SimpleJsonValue object, String propertyName, SimpleJsonValue propertyValue) { object.getMap().put(propertyName, propertyValue); }
void function(SimpleJsonValue object, String propertyName, SimpleJsonValue propertyValue) { object.getMap().put(propertyName, propertyValue); }
/** * Set the property with the given name in the given underlying JSON object * to the given object value. * * @param object The underlying JSON object. * @param propertyName The name of the property. * @param propertyValue The object value of the property. * @see #getObjectProperty(SimpleJsonValu...
Set the property with the given name in the given underlying JSON object to the given object value
setObjectProperty
{ "repo_name": "kjots/json-toolkit", "path": "json-object.simple/src/test/java/org/kjots/json/object/simple/impl/SimpleJsonObjectImplTest.java", "license": "apache-2.0", "size": 6196 }
[ "org.kjots.json.object.simple.SimpleJsonValue" ]
import org.kjots.json.object.simple.SimpleJsonValue;
import org.kjots.json.object.simple.*;
[ "org.kjots.json" ]
org.kjots.json;
944,878
private WorkflowEffect createConstraintEffect() { DynamicConstraintEffect effect = new DynamicConstraintEffect(); effect.setEditable(new Flag()); effect.setVisible(new Flag()); effect.setMinLength(new Number()); effect.setMaxLength(new Number()); effect.setMinMultipli...
WorkflowEffect function() { DynamicConstraintEffect effect = new DynamicConstraintEffect(); effect.setEditable(new Flag()); effect.setVisible(new Flag()); effect.setMinLength(new Number()); effect.setMaxLength(new Number()); effect.setMinMultiplicity(new Number()); effect.setMaxMultiplicity(new Number()); return effect...
/** * Create a new {@link DynamicConstraintEffect} instance. * * @return the new effect */
Create a new <code>DynamicConstraintEffect</code> instance
createConstraintEffect
{ "repo_name": "NABUCCO/org.nabucco.framework.workflow", "path": "org.nabucco.framework.workflow.impl.service/src/main/man/org/nabucco/framework/workflow/impl/service/definition/produce/ProduceWorkflowEffectServiceHandlerImpl.java", "license": "epl-1.0", "size": 5118 }
[ "org.nabucco.framework.base.facade.datatype.Flag", "org.nabucco.framework.base.facade.datatype.Number", "org.nabucco.framework.workflow.facade.datatype.definition.effect.WorkflowEffect", "org.nabucco.framework.workflow.facade.datatype.definition.effect.constraint.DynamicConstraintEffect" ]
import org.nabucco.framework.base.facade.datatype.Flag; import org.nabucco.framework.base.facade.datatype.Number; import org.nabucco.framework.workflow.facade.datatype.definition.effect.WorkflowEffect; import org.nabucco.framework.workflow.facade.datatype.definition.effect.constraint.DynamicConstraintEffect;
import org.nabucco.framework.base.facade.datatype.*; import org.nabucco.framework.workflow.facade.datatype.definition.effect.*; import org.nabucco.framework.workflow.facade.datatype.definition.effect.constraint.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
1,681,887
@Override protected Repository<StudySubject, Integer> getRepository() { return null; }
Repository<StudySubject, Integer> function() { return null; }
/** * Get Repository * * @return repository */
Get Repository
getRepository
{ "repo_name": "ddRPB/rpb", "path": "radplanbio-portal/src/main/java/de/dktk/dd/rpb/portal/web/mb/edc/OCEnrolmentCallbackBean.java", "license": "gpl-3.0", "size": 20022 }
[ "de.dktk.dd.rpb.core.domain.edc.StudySubject", "de.dktk.dd.rpb.core.repository.support.Repository" ]
import de.dktk.dd.rpb.core.domain.edc.StudySubject; import de.dktk.dd.rpb.core.repository.support.Repository;
import de.dktk.dd.rpb.core.domain.edc.*; import de.dktk.dd.rpb.core.repository.support.*;
[ "de.dktk.dd" ]
de.dktk.dd;
2,858,524
public ParticleSystem setParentViewGroup(ViewGroup viewGroup) { mParentView = viewGroup; if (mParentView != null) { mParentView.getLocationInWindow(mParentLocation); } return this; }
ParticleSystem function(ViewGroup viewGroup) { mParentView = viewGroup; if (mParentView != null) { mParentView.getLocationInWindow(mParentLocation); } return this; }
/** * Initializes the parent view group. This needs to be done before any other configuration or * emitting is done. Drawing will be done to a child that is added to this view. So this view * needs to allow displaying an arbitrary sized view on top of its other content. * @param viewGroup The view g...
Initializes the parent view group. This needs to be done before any other configuration or emitting is done. Drawing will be done to a child that is added to this view. So this view needs to allow displaying an arbitrary sized view on top of its other content
setParentViewGroup
{ "repo_name": "plattysoft/Leonids", "path": "LeonidsLib/src/main/java/com/plattysoft/leonids/ParticleSystem.java", "license": "apache-2.0", "size": 27405 }
[ "android.view.ViewGroup" ]
import android.view.ViewGroup;
import android.view.*;
[ "android.view" ]
android.view;
2,519,481
public Vector getDataVector() { return dataVector; }
Vector function() { return dataVector; }
/** * Returns the vector containing the row data for the table. * * @return The data vector. */
Returns the vector containing the row data for the table
getDataVector
{ "repo_name": "taciano-perez/JamVM-PH", "path": "src/classpath/javax/swing/table/DefaultTableModel.java", "license": "gpl-2.0", "size": 18390 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
1,206,232
private void toXML( XMLEventWriter writer, SPFrame frame ) throws XMLStreamException { // Create a EventFactory XMLEventFactory eventFactory = XMLEventFactory.newInstance( ); XMLEvent lineBreak = eventFactory.createDTD( "\n" ); SPSubFrame subFrame = frame.getSubFrame( ); if ( subFrame != null ) ...
void function( XMLEventWriter writer, SPFrame frame ) throws XMLStreamException { XMLEventFactory eventFactory = XMLEventFactory.newInstance( ); XMLEvent lineBreak = eventFactory.createDTD( "\n" ); SPSubFrame subFrame = frame.getSubFrame( ); if ( subFrame != null ) { writer.add( eventFactory.createStartElement( STR", T...
/** * This method writes the {@link SplitPanel} hierarchy using the given instance of {@link XMLEventWriter}. This method is called * recursively on its way down the tree of {@link SPFrame}'s * @param writer * @param frame * @throws XMLStreamException */
This method writes the <code>SplitPanel</code> hierarchy using the given instance of <code>XMLEventWriter</code>. This method is called recursively on its way down the tree of <code>SPFrame</code>'s
toXML
{ "repo_name": "ThomasObenaus/JCWidgets", "path": "src/thobe/widgets/splitPanel/SplitPanel.java", "license": "bsd-3-clause", "size": 37686 }
[ "javax.xml.stream.XMLEventFactory", "javax.xml.stream.XMLEventWriter", "javax.xml.stream.XMLStreamException", "javax.xml.stream.events.XMLEvent" ]
import javax.xml.stream.XMLEventFactory; import javax.xml.stream.XMLEventWriter; import javax.xml.stream.XMLStreamException; import javax.xml.stream.events.XMLEvent;
import javax.xml.stream.*; import javax.xml.stream.events.*;
[ "javax.xml" ]
javax.xml;
2,571,346
public void setRotationAngles(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn) { }
void function(float limbSwing, float limbSwingAmount, float ageInTicks, float netHeadYaw, float headPitch, float scaleFactor, Entity entityIn) { }
/** * Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms * and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how * "far" arms and legs can swing at most. */
Sets the model's various rotation angles. For bipeds, par1 and par2 are used for animating the movement of arms and legs, where par1 represents the time(so that arms and legs swing back and forth) and par2 represents how "far" arms and legs can swing at most
setRotationAngles
{ "repo_name": "danielyc/test-1.9.4", "path": "build/tmp/recompileMc/sources/net/minecraft/client/model/ModelBase.java", "license": "gpl-3.0", "size": 3001 }
[ "net.minecraft.entity.Entity" ]
import net.minecraft.entity.Entity;
import net.minecraft.entity.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
621,621
public static void removeAll() throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeAll(); }
static void function() throws com.liferay.portal.kernel.exception.SystemException { getPersistence().removeAll(); }
/** * Removes all the key_conservation_issueses from the database. * * @throws SystemException if a system exception occurred */
Removes all the key_conservation_issueses from the database
removeAll
{ "repo_name": "iucn-whp/world-heritage-outlook", "path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/service/persistence/key_conservation_issuesUtil.java", "license": "gpl-2.0", "size": 20686 }
[ "com.liferay.portal.kernel.exception.SystemException" ]
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.exception.*;
[ "com.liferay.portal" ]
com.liferay.portal;
425,920
public void setSize(long size) throws FileNotFoundException { getInode().setSize(size); getInode().commit(); }
void function(long size) throws FileNotFoundException { getInode().setSize(size); getInode().commit(); }
/** * Changes the size of the file. * @param size * @throws FileNotFoundException */
Changes the size of the file
setSize
{ "repo_name": "d-fens/drftpd", "path": "src/master/src/org/drftpd/vfs/FileHandle.java", "license": "gpl-2.0", "size": 7393 }
[ "java.io.FileNotFoundException" ]
import java.io.FileNotFoundException;
import java.io.*;
[ "java.io" ]
java.io;
551,500
private void setDirtyState(boolean dirty) { if (dirty != isDirty()) { this.needsSave = dirty; firePropertyChange(IEditorPart.PROP_DIRTY); } }
void function(boolean dirty) { if (dirty != isDirty()) { this.needsSave = dirty; firePropertyChange(IEditorPart.PROP_DIRTY); } }
/** * Set the dirtyState for <code>this</code> editor. */
Set the dirtyState for <code>this</code> editor
setDirtyState
{ "repo_name": "google/depan", "path": "DepanGraphDocUI/prod/src/com/google/devtools/depan/nodelist_doc/eclipse/ui/editor/NodeListEditor.java", "license": "apache-2.0", "size": 9663 }
[ "org.eclipse.ui.IEditorPart" ]
import org.eclipse.ui.IEditorPart;
import org.eclipse.ui.*;
[ "org.eclipse.ui" ]
org.eclipse.ui;
1,438,862
Attribute fillAttribute(PerunSession sess, User user, Attribute attribute) throws InternalErrorException;
Attribute fillAttribute(PerunSession sess, User user, Attribute attribute) throws InternalErrorException;
/** * This method try to fill value of the user attribute. This value is automatically generated, but not all atrributes can be filled this way. * * @param sess perun session * @param user attribute of this user (and facility) and you want to fill * @param attribute attribute to fill. If attributes already ha...
This method try to fill value of the user attribute. This value is automatically generated, but not all atrributes can be filled this way
fillAttribute
{ "repo_name": "Natrezim/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/AttributesManagerImplApi.java", "license": "bsd-2-clause", "size": 104335 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.User", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.User; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
961,722
public Collection<String> getServletNames() { return this.servletNames; }
Collection<String> function() { return this.servletNames; }
/** * Return a mutable collection of servlet names that the filter will be registered * against. * @return the servlet names */
Return a mutable collection of servlet names that the filter will be registered against
getServletNames
{ "repo_name": "gregturn/spring-boot", "path": "spring-boot/src/main/java/org/springframework/boot/context/embedded/FilterRegistrationBean.java", "license": "apache-2.0", "size": 10448 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,576,565
public List<RowLevelSecurityProvider> getProviders();
List<RowLevelSecurityProvider> function();
/** * Gets all of the registered providers * @return the providers configured for this service */
Gets all of the registered providers
getProviders
{ "repo_name": "cengizhanozcan/BroadleafCommerce", "path": "admin/broadleaf-open-admin-platform/src/main/java/org/broadleafcommerce/openadmin/server/security/service/RowLevelSecurityService.java", "license": "apache-2.0", "size": 1996 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,285,968
protected void writeFeatureLocation(Writer writer) throws IOException { new FeatureLocationWriter(entry, feature, wrapType, featureHeader, qualifierHeader).write(writer); }
void function(Writer writer) throws IOException { new FeatureLocationWriter(entry, feature, wrapType, featureHeader, qualifierHeader).write(writer); }
/** * overridden in HTMLFeatureWriter * @param writer * @throws IOException */
overridden in HTMLFeatureWriter
writeFeatureLocation
{ "repo_name": "enasequence/sequencetools", "path": "src/main/java/uk/ac/ebi/embl/flatfile/writer/FeatureWriter.java", "license": "apache-2.0", "size": 5990 }
[ "java.io.IOException", "java.io.Writer" ]
import java.io.IOException; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
2,643,801
@Override public final void onTrigger(final ProcessContext context, final ProcessSession session) throws ProcessException { AMQPResource<T> resource = resourceQueue.poll(); if (resource == null) { resource = createResource(context); } try { processResourc...
final void function(final ProcessContext context, final ProcessSession session) throws ProcessException { AMQPResource<T> resource = resourceQueue.poll(); if (resource == null) { resource = createResource(context); } try { processResource(resource.getConnection(), resource.getWorker(), context, session); resourceQueue....
/** * Will builds target resource ({@link AMQPPublisher} or {@link AMQPConsumer}) upon first invocation and will delegate to the * implementation of {@link #processResource} method for further processing. */
Will builds target resource (<code>AMQPPublisher</code> or <code>AMQPConsumer</code>) upon first invocation and will delegate to the implementation of <code>#processResource</code> method for further processing
onTrigger
{ "repo_name": "mcgilman/nifi", "path": "nifi-nar-bundles/nifi-amqp-bundle/nifi-amqp-processors/src/main/java/org/apache/nifi/amqp/processors/AbstractAMQPProcessor.java", "license": "apache-2.0", "size": 11745 }
[ "org.apache.nifi.processor.ProcessContext", "org.apache.nifi.processor.ProcessSession", "org.apache.nifi.processor.exception.ProcessException" ]
import org.apache.nifi.processor.ProcessContext; import org.apache.nifi.processor.ProcessSession; import org.apache.nifi.processor.exception.ProcessException;
import org.apache.nifi.processor.*; import org.apache.nifi.processor.exception.*;
[ "org.apache.nifi" ]
org.apache.nifi;
1,647,104
private void checkChildBounds() { if (!isLeaf()) { Rectangle2D bounds = GraphConstants.getBounds(getAllAttributes()); if (bounds == null) { bounds = new Rectangle2D.Double(); } CellView[] childViewArray = (CellView[]) childViews .toArray(new CellView[0]); Rectangle2D childBounds = AbstractC...
void function() { if (!isLeaf()) { Rectangle2D bounds = GraphConstants.getBounds(getAllAttributes()); if (bounds == null) { bounds = new Rectangle2D.Double(); } CellView[] childViewArray = (CellView[]) childViews .toArray(new CellView[0]); Rectangle2D childBounds = AbstractCellView .getBounds(childViewArray); if (!boun...
/** * If this view's current bounds do not completely enclose all child vertex * views, sets this view's bounds to the union of the current bounds and the * childrens' bounds. */
If this view's current bounds do not completely enclose all child vertex views, sets this view's bounds to the union of the current bounds and the childrens' bounds
checkChildBounds
{ "repo_name": "Baltasarq/Gia", "path": "src/JGraph/examples/org/jgraph/example/CompoundVertexView.java", "license": "mit", "size": 4043 }
[ "java.awt.geom.Rectangle2D", "org.jgraph.graph.AbstractCellView", "org.jgraph.graph.CellView", "org.jgraph.graph.GraphConstants" ]
import java.awt.geom.Rectangle2D; import org.jgraph.graph.AbstractCellView; import org.jgraph.graph.CellView; import org.jgraph.graph.GraphConstants;
import java.awt.geom.*; import org.jgraph.graph.*;
[ "java.awt", "org.jgraph.graph" ]
java.awt; org.jgraph.graph;
2,474,082
@Override public StringItemStyle getDayPeriod() { return getValue(Property.CALENDAR, StringItemStyle.values(), getDefaultValues().getDayPeriod()); }
StringItemStyle function() { return getValue(Property.CALENDAR, StringItemStyle.values(), getDefaultValues().getDayPeriod()); }
/** * Returns the way day periods should be expressed. * * @return the way day periods should be expressed */
Returns the way day periods should be expressed
getDayPeriod
{ "repo_name": "pepstock-org/Charba", "path": "src/org/pepstock/charba/client/intl/DateTimeFormatOptions.java", "license": "apache-2.0", "size": 13119 }
[ "org.pepstock.charba.client.intl.enums.StringItemStyle" ]
import org.pepstock.charba.client.intl.enums.StringItemStyle;
import org.pepstock.charba.client.intl.enums.*;
[ "org.pepstock.charba" ]
org.pepstock.charba;
2,905,299
@Override public Session login(Credentials credentials) throws RepositoryException { return login(credentials, null, null); }
Session function(Credentials credentials) throws RepositoryException { return login(credentials, null, null); }
/** * Calls {@link Repository#login(Credentials, String)} with * the given credentials and a {@code null} workspace name. * * @param credentials login credentials * @return logged in session * @throws RepositoryException if an error occurs */
Calls <code>Repository#login(Credentials, String)</code> with the given credentials and a null workspace name
login
{ "repo_name": "AndreasAbdi/jackrabbit-oak", "path": "oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/repository/RepositoryImpl.java", "license": "apache-2.0", "size": 20844 }
[ "javax.jcr.Credentials", "javax.jcr.RepositoryException", "javax.jcr.Session" ]
import javax.jcr.Credentials; import javax.jcr.RepositoryException; import javax.jcr.Session;
import javax.jcr.*;
[ "javax.jcr" ]
javax.jcr;
2,806,575
PendingIntent getGpodnetSyncServiceErrorNotificationPendingIntent(Context context);
PendingIntent getGpodnetSyncServiceErrorNotificationPendingIntent(Context context);
/** * Returns a PendingIntent for the error notification of the GpodnetSyncService. * <p/> * What the PendingIntent does may be implementation-specific. * * @return A PendingIntent for the notification or null if gpodder.net integration * has been disabled (i.e. gpodnetEnabled() == false)....
Returns a PendingIntent for the error notification of the GpodnetSyncService. What the PendingIntent does may be implementation-specific
getGpodnetSyncServiceErrorNotificationPendingIntent
{ "repo_name": "domingos86/AntennaPod", "path": "core/src/main/java/de/danoeh/antennapod/core/GpodnetCallbacks.java", "license": "mit", "size": 789 }
[ "android.app.PendingIntent", "android.content.Context" ]
import android.app.PendingIntent; import android.content.Context;
import android.app.*; import android.content.*;
[ "android.app", "android.content" ]
android.app; android.content;
2,535,598
@Generated @Selector("isActive") public native boolean isActive();
@Selector(STR) native boolean function();
/** * Whether the feedback command is in an "active" state. An example of when a * feedback command would be active is if the user already "liked" a particular * content item. */
Whether the feedback command is in an "active" state. An example of when a feedback command would be active is if the user already "liked" a particular content item
isActive
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/mediaplayer/MPFeedbackCommand.java", "license": "apache-2.0", "size": 6441 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
1,346,768
private String readLine() throws IOException { String line = reader.readLine(); if (DEBUG) { System.out.println("< " + line); } return line; }
String function() throws IOException { String line = reader.readLine(); if (DEBUG) { System.out.println(STR + line); } return line; }
/** * Reads a line from the server socket * @return the read line * @throws IOException if something goes wrong */
Reads a line from the server socket
readLine
{ "repo_name": "paolodongilli/SASAbus", "path": "src/it/sasabz/android/sasabus/classes/network/SasabusFTP.java", "license": "gpl-3.0", "size": 18702 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,855,539
void checkStatus(@NonNull CheckEvent event);
void checkStatus(@NonNull CheckEvent event);
/** * Status of the check has been updated. * * @param event */
Status of the check has been updated
checkStatus
{ "repo_name": "LevelFourAB/vibe", "path": "vibe-api/src/main/java/se/l4/vibe/checks/CheckListener.java", "license": "apache-2.0", "size": 299 }
[ "edu.umd.cs.findbugs.annotations.NonNull" ]
import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.*;
[ "edu.umd.cs" ]
edu.umd.cs;
44,771
RepositoryURL getURL();
RepositoryURL getURL();
/** * <p> * Convenience method to get the repository url. * </p> * * <p> * Equivalent to calling <code>new RepositoryURL( this.getRepository().getUrl() )</code> * </p> * * @return the repository url. */
Convenience method to get the repository url. Equivalent to calling <code>new RepositoryURL( this.getRepository().getUrl() )</code>
getURL
{ "repo_name": "Altiscale/archiva", "path": "archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/RemoteRepositoryContent.java", "license": "apache-2.0", "size": 3413 }
[ "org.apache.archiva.model.RepositoryURL" ]
import org.apache.archiva.model.RepositoryURL;
import org.apache.archiva.model.*;
[ "org.apache.archiva" ]
org.apache.archiva;
550,872
protected void getCurrentFolderParam(final HttpServletRequest request) { String currFolder = getParameter(request, "currentFolder"); if (currFolder == null || currFolder.equals("")) { this.currentFolder = "/"; } else { this.currentFolder = PathUtils.addSlashToBeginning(PathUtils .addSlashToEnd...
void function(final HttpServletRequest request) { String currFolder = getParameter(request, STR); if (currFolder == null currFolder.equals(STR/"; } else { this.currentFolder = PathUtils.addSlashToBeginning(PathUtils .addSlashToEnd(currFolder)); } }
/** * gets current folder request param * or sets default value if it's not set. * @param request request */
gets current folder request param or sets default value if it's not set
getCurrentFolderParam
{ "repo_name": "ahwxl/cms", "path": "icms/src/main/java/com/ckfinder/connector/handlers/command/Command.java", "license": "apache-2.0", "size": 7437 }
[ "com.ckfinder.connector.utils.PathUtils", "javax.servlet.http.HttpServletRequest" ]
import com.ckfinder.connector.utils.PathUtils; import javax.servlet.http.HttpServletRequest;
import com.ckfinder.connector.utils.*; import javax.servlet.http.*;
[ "com.ckfinder.connector", "javax.servlet" ]
com.ckfinder.connector; javax.servlet;
2,330,285
public JsonFactory putUnique(Map<String, Object> obj) throws IOException { JsonFactory json = indexDump.write(obj, 'I'); for (Map.Entry<String, Boolean> column: this.columns.entrySet()) { //for (Map.Entry<String, JsonFactoryIndex> idxo: this.index.entrySet()) { String searchK...
JsonFactory function(Map<String, Object> obj) throws IOException { JsonFactory json = indexDump.write(obj, 'I'); for (Map.Entry<String, Boolean> column: this.columns.entrySet()) { String searchKey = column.getKey(); boolean case_insensitive = column.getValue(); Object value = obj.get(searchKey); if (value != null && va...
/** * put an object into the index, but do not overwrite existing pairs * @param key * @param value * @throws IOException */
put an object into the index, but do not overwrite existing pairs
putUnique
{ "repo_name": "gopalmeena/loklak_server", "path": "src/org/loklak/tools/storage/JsonDataset.java", "license": "lgpl-2.1", "size": 12727 }
[ "java.io.IOException", "java.util.Map" ]
import java.io.IOException; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,374,651
protected void validateTilingPattern(PreflightContext context, PDResources resources) throws ValidationException { try { for (COSName name : resources.getPatternNames()) { PDAbstractPattern pattern = resources.getPattern(name); if (pattern ...
void function(PreflightContext context, PDResources resources) throws ValidationException { try { for (COSName name : resources.getPatternNames()) { PDAbstractPattern pattern = resources.getPattern(name); if (pattern instanceof PDTilingPattern) { ContextHelper.validateElement(context, pattern, TILING_PATTERN_PROCESS); ...
/** * This method check the Shading entry of the resource dictionary if exists. * * @param context * @param resources * @throws ValidationException */
This method check the Shading entry of the resource dictionary if exists
validateTilingPattern
{ "repo_name": "kalaspuffar/pdfbox", "path": "preflight/src/main/java/org/apache/pdfbox/preflight/process/reflect/ResourcesValidationProcess.java", "license": "apache-2.0", "size": 8809 }
[ "java.io.IOException", "org.apache.pdfbox.cos.COSName", "org.apache.pdfbox.pdmodel.PDResources", "org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern", "org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPattern", "org.apache.pdfbox.preflight.PreflightContext", "org.apache.pdfbox.preflight.Vali...
import java.io.IOException; import org.apache.pdfbox.cos.COSName; import org.apache.pdfbox.pdmodel.PDResources; import org.apache.pdfbox.pdmodel.graphics.pattern.PDAbstractPattern; import org.apache.pdfbox.pdmodel.graphics.pattern.PDTilingPattern; import org.apache.pdfbox.preflight.PreflightContext; import org.apache.p...
import java.io.*; import org.apache.pdfbox.cos.*; import org.apache.pdfbox.pdmodel.*; import org.apache.pdfbox.pdmodel.graphics.pattern.*; import org.apache.pdfbox.preflight.*; import org.apache.pdfbox.preflight.exception.*; import org.apache.pdfbox.preflight.utils.*;
[ "java.io", "org.apache.pdfbox" ]
java.io; org.apache.pdfbox;
1,102,215
RealMatrix getMeasurementMatrix();
RealMatrix getMeasurementMatrix();
/** * Returns the measurement matrix. * * @return the measurement matrix */
Returns the measurement matrix
getMeasurementMatrix
{ "repo_name": "SpoonLabs/astor", "path": "examples/math_50v2/src/main/java/org/apache/commons/math/filter/MeasurementModel.java", "license": "gpl-2.0", "size": 1649 }
[ "org.apache.commons.math.linear.RealMatrix" ]
import org.apache.commons.math.linear.RealMatrix;
import org.apache.commons.math.linear.*;
[ "org.apache.commons" ]
org.apache.commons;
359,043
public void setCountryCode(String newCountryCode) throws InvalidParameterException { if (newCountryCode.length() > Mrz.LENGTH_COUNTRYCODE) throw new InvalidParameterException( "Length of country code may not exceed " + Mrz.LENGTH_COUNTRYCODE + " characters."); if (!newCountryCode.matches("^[a-zA-Z...
void function(String newCountryCode) throws InvalidParameterException { if (newCountryCode.length() > Mrz.LENGTH_COUNTRYCODE) throw new InvalidParameterException( STR + Mrz.LENGTH_COUNTRYCODE + STR); if (!newCountryCode.matches(STR)) throw new InvalidParameterException( STR); countryCode = newCountryCode.toUpperCase();...
/** * Sets the country code according to param. * * @param newCountryCode * new country code * @throws InvalidParameterException */
Sets the country code according to param
setCountryCode
{ "repo_name": "JGoeke/de.persosim.simulator", "path": "de.persosim.simulator/src/de/persosim/simulator/documents/Mrz.java", "license": "gpl-3.0", "size": 31210 }
[ "java.security.InvalidParameterException" ]
import java.security.InvalidParameterException;
import java.security.*;
[ "java.security" ]
java.security;
2,716,420
public void addRole(String rolename) { User user = (User) this.resource; if (user == null) { return; } Role role = user.getUserDatabase().findRole(rolename); if (role == null) { throw new IllegalArgumentException ("Invalid role name '"...
void function(String rolename) { User user = (User) this.resource; if (user == null) { return; } Role role = user.getUserDatabase().findRole(rolename); if (role == null) { throw new IllegalArgumentException (STR + rolename + "'"); } user.addRole(role); }
/** * Add a new {@link Role} to those this user belongs to. * * @param rolename Role name of the new role */
Add a new <code>Role</code> to those this user belongs to
addRole
{ "repo_name": "devjin24/howtomcatworks", "path": "bookrefer/jakarta-tomcat-4.1.12-src/catalina/src/share/org/apache/catalina/mbeans/UserMBean.java", "license": "apache-2.0", "size": 8753 }
[ "org.apache.catalina.Role", "org.apache.catalina.User" ]
import org.apache.catalina.Role; import org.apache.catalina.User;
import org.apache.catalina.*;
[ "org.apache.catalina" ]
org.apache.catalina;
1,494,114
protected Object getAuthenticationCacheKey(PrincipalCollection principals) { return getAvailablePrincipal(principals); }
Object function(PrincipalCollection principals) { return getAvailablePrincipal(principals); }
/** * Returns the key under which {@link AuthenticationInfo} instances are cached if authentication caching is enabled. * This implementation delegates to * {@link #getAvailablePrincipal(org.apache.shiro.subject.PrincipalCollection)}, which returns the primary principal * associated with this partic...
Returns the key under which <code>AuthenticationInfo</code> instances are cached if authentication caching is enabled. This implementation delegates to <code>#getAvailablePrincipal(org.apache.shiro.subject.PrincipalCollection)</code>, which returns the primary principal associated with this particular Realm. Cache Inva...
getAuthenticationCacheKey
{ "repo_name": "apache/shiro", "path": "core/src/main/java/org/apache/shiro/realm/AuthenticatingRealm.java", "license": "apache-2.0", "size": 36574 }
[ "org.apache.shiro.subject.PrincipalCollection" ]
import org.apache.shiro.subject.PrincipalCollection;
import org.apache.shiro.subject.*;
[ "org.apache.shiro" ]
org.apache.shiro;
2,104,703
@Override public Node parse(Node root, Link rootLink) throws ParseException { Link link; String[] t_read; Node source; Node target; int indexSource; int indexTarget; LinkedList<Node> listChild; try { reader.readNext(); // pass...
Node function(Node root, Link rootLink) throws ParseException { Link link; String[] t_read; Node source; Node target; int indexSource; int indexTarget; LinkedList<Node> listChild; try { reader.readNext(); while ((t_read = reader.readNext()) != null) { if (root.getByChildName(t_read[0]) == null) { source = new Node(t_re...
/** * This function parse a CSV file in to a graph */
This function parse a CSV file in to a graph
parse
{ "repo_name": "freaxmind/miage-m1", "path": "genie-logiciel/Sprint 2/src/components/CVSParser.java", "license": "gpl-3.0", "size": 4664 }
[ "java.io.IOException", "java.util.LinkedList" ]
import java.io.IOException; import java.util.LinkedList;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,487,770
public static byte[] getReport(String printUrl, String json, int timeout) throws IOException, PrintException { RequestConfig config = RequestConfig.custom(). setConnectTimeout(timeout).build(); CloseableHttpClient client = HttpClients.custom(). setDefaultRequestConf...
static byte[] function(String printUrl, String json, int timeout) throws IOException, PrintException { RequestConfig config = RequestConfig.custom(). setConnectTimeout(timeout).build(); CloseableHttpClient client = HttpClients.custom(). setDefaultRequestConfig(config).build(); HttpEntity entity = new StringEntity(json,...
/** Obtains a Report from mapfish-print service. * * @param printUrl The url to send the request to. * @param json The json spec for the print request. * @param timeout the timeout for the httpconnection. * * @return byte[] with the report. * * @throws IOException if communicatio...
Obtains a Report from mapfish-print service
getReport
{ "repo_name": "OpenBfS/irix-client", "path": "src/main/java/de/intevation/irix/PrintClient.java", "license": "gpl-3.0", "size": 6745 }
[ "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.InputStream", "java.net.HttpURLConnection", "java.nio.charset.Charset", "org.apache.http.HttpEntity", "org.apache.http.StatusLine", "org.apache.http.client.config.RequestConfig", "org.apache.http.client.methods.CloseableHttpResponse", ...
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.net.HttpURLConnection; import java.nio.charset.Charset; import org.apache.http.HttpEntity; import org.apache.http.StatusLine; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.method...
import java.io.*; import java.net.*; import java.nio.charset.*; import org.apache.http.*; import org.apache.http.client.config.*; import org.apache.http.client.methods.*; import org.apache.http.entity.*; import org.apache.http.impl.client.*; import org.apache.http.util.*;
[ "java.io", "java.net", "java.nio", "org.apache.http" ]
java.io; java.net; java.nio; org.apache.http;
1,259,550
@NotNull default DfaValue createValue(@NotNull DfaValueFactory factory, @Nullable DfaValue qualifier) { return createValue(factory, qualifier, false); }
default DfaValue createValue(@NotNull DfaValueFactory factory, @Nullable DfaValue qualifier) { return createValue(factory, qualifier, false); }
/** * Returns a value which describes the field qualified by given qualifier and described by this descriptor * @param factory factory to use * @param qualifier qualifier to use * @return a field value */
Returns a value which describes the field qualified by given qualifier and described by this descriptor
createValue
{ "repo_name": "leafclick/intellij-community", "path": "java/java-analysis-impl/src/com/intellij/codeInspection/dataFlow/value/VariableDescriptor.java", "license": "apache-2.0", "size": 3360 }
[ "org.jetbrains.annotations.NotNull", "org.jetbrains.annotations.Nullable" ]
import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
600,530
private KieRemoteHttpRequest closeOutput() throws IOException { if( connection == null ) { throw new KieRemoteHttpRequestException("Please execute a HTTP method first on the request."); } if( output == null ) { return this; } if( ignoreCloseExceptions ...
KieRemoteHttpRequest function() throws IOException { if( connection == null ) { throw new KieRemoteHttpRequestException(STR); } if( output == null ) { return this; } if( ignoreCloseExceptions ) { try { output.close(); } catch( IOException ignored ) { } } else { output.close(); } output = null; return this; } /** * Call...
/** * Close output stream * * @return this request * @throws KieRemoteHttpRequestException * @throws IOException */
Close output stream
closeOutput
{ "repo_name": "hxf0801/droolsjbpm-integration", "path": "kie-remote/kie-remote-common/src/main/java/org/kie/remote/common/rest/KieRemoteHttpRequest.java", "license": "apache-2.0", "size": 62341 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,314,547
void commit() { blockUCState = BlockUCState.COMMITTED; }
void commit() { blockUCState = BlockUCState.COMMITTED; }
/** * Set {@link #blockUCState} to {@link BlockUCState#COMMITTED}. */
Set <code>#blockUCState</code> to <code>BlockUCState#COMMITTED</code>
commit
{ "repo_name": "NJUJYB/disYarn", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockUnderConstructionFeature.java", "license": "apache-2.0", "size": 10861 }
[ "org.apache.hadoop.hdfs.server.common.HdfsServerConstants" ]
import org.apache.hadoop.hdfs.server.common.HdfsServerConstants;
import org.apache.hadoop.hdfs.server.common.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,556,571
public Settings onNodeStopped(String nodeName) throws Exception { return Settings.EMPTY; }
Settings function(String nodeName) throws Exception { return Settings.EMPTY; }
/** * Executed once the give node name has been stopped. */
Executed once the give node name has been stopped
onNodeStopped
{ "repo_name": "davidvgalbraith/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/test/InternalTestCluster.java", "license": "apache-2.0", "size": 80723 }
[ "org.elasticsearch.common.settings.Settings" ]
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.settings.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
1,666,490
@Override public void comment(char ch[], int start, int length) throws SAXException { String thisComment = new String(ch, start, length); String entityName = null; LTLicense thisFileLicense; Pattern p; Matcher m; int lineNumber = lineCount++; // Have...
void function(char ch[], int start, int length) throws SAXException { String thisComment = new String(ch, start, length); String entityName = null; LTLicense thisFileLicense; Pattern p; Matcher m; int lineNumber = lineCount++; if (thisComment.contains(STR) thisComment.contains(STRLTLicenseHeaderSTRLOCALIZATION NOTESTRL...
/** * Processes a comment, that may be a regular comment or a license header * @param ch The collection of chars parsed as a comment * @param start The start position of the comment * @param length The length * @throws SAXException if something goes wrong while parsing */
Processes a comment, that may be a regular comment or a license header
comment
{ "repo_name": "RickieES/localizethat", "path": "src/net/localizethat/io/parsers/DTDReadHelper.java", "license": "mpl-2.0", "size": 8716 }
[ "java.util.Date", "java.util.regex.Matcher", "java.util.regex.Pattern", "net.localizethat.model.CommentType", "net.localizethat.model.LTLicense", "org.xml.sax.SAXException" ]
import java.util.Date; import java.util.regex.Matcher; import java.util.regex.Pattern; import net.localizethat.model.CommentType; import net.localizethat.model.LTLicense; import org.xml.sax.SAXException;
import java.util.*; import java.util.regex.*; import net.localizethat.model.*; import org.xml.sax.*;
[ "java.util", "net.localizethat.model", "org.xml.sax" ]
java.util; net.localizethat.model; org.xml.sax;
407,785
@Nonnull @CanIgnoreReturnValue File uploadFromClasspath(String... fileName);
File uploadFromClasspath(String... fileName);
/** * <p>Upload file into file upload field. File is searched from classpath.</p> * * <p>Multiple file upload is also supported. Just pass as many file names as you wish.</p> * * @param fileName name of the file or the relative path in classpath e.g. "files/1.pfd" * @return the object of the first fil...
Upload file into file upload field. File is searched from classpath. Multiple file upload is also supported. Just pass as many file names as you wish
uploadFromClasspath
{ "repo_name": "simple-elf/selenide", "path": "src/main/java/com/codeborne/selenide/SelenideElement.java", "license": "mit", "size": 36923 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,144,820
int size = 0; if (item == null) { return size; } for (Map.Entry<String, AttributeValue> entry : item.entrySet()) { String name = entry.getKey(); AttributeValue value = entry.getValue(); size += name.getBytes(BootstrapConstants.UTF8).length; ...
int size = 0; if (item == null) { return size; } for (Map.Entry<String, AttributeValue> entry : item.entrySet()) { String name = entry.getKey(); AttributeValue value = entry.getValue(); size += name.getBytes(BootstrapConstants.UTF8).length; size += calculateAttributeSizeInBytes(value); } return size; }
/** * Calculate DynamoDB item size. */
Calculate DynamoDB item size
calculateItemSizeInBytes
{ "repo_name": "awslabs/dynamodb-import-export-tool", "path": "src/main/java/com/amazonaws/dynamodb/bootstrap/ItemSizeCalculator.java", "license": "apache-2.0", "size": 3953 }
[ "com.amazonaws.dynamodb.bootstrap.constants.BootstrapConstants", "com.amazonaws.services.dynamodbv2.model.AttributeValue", "java.util.Map" ]
import com.amazonaws.dynamodb.bootstrap.constants.BootstrapConstants; import com.amazonaws.services.dynamodbv2.model.AttributeValue; import java.util.Map;
import com.amazonaws.dynamodb.bootstrap.constants.*; import com.amazonaws.services.dynamodbv2.model.*; import java.util.*;
[ "com.amazonaws.dynamodb", "com.amazonaws.services", "java.util" ]
com.amazonaws.dynamodb; com.amazonaws.services; java.util;
1,035,815
private void saveFile(String file) { final File folder = this.updateFolder; deleteOldFiles(); if (!folder.exists()) { this.fileIOOrError(folder, folder.mkdir(), true); } downloadFile(); // Check to see if it's a zip file, if it is, unzip it. ...
void function(String file) { final File folder = this.updateFolder; deleteOldFiles(); if (!folder.exists()) { this.fileIOOrError(folder, folder.mkdir(), true); } downloadFile(); final File dFile = new File(folder.getAbsolutePath(), file); if (dFile.getName().endsWith(".zip")) { this.unzip(dFile.getAbsolutePath()); } if...
/** * Save an update from dev.bukkit.org into the server's update folder. * * @param file the name of the file to save it as. */
Save an update from dev.bukkit.org into the server's update folder
saveFile
{ "repo_name": "bog500/CustomMarkers", "path": "CustomMarkers/src/mc/bog500/CustomMarkers/Updater.java", "license": "gpl-2.0", "size": 30617 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
923,585
@Override public String getModifyColumnStatement( String tablename, ValueMetaInterface v, String tk, boolean use_autoinc, String pk, boolean semicolon ) { if ( databaseDialect != null ) { return databaseDialect.getModifyColumnStatement( tablename, v, tk, use_autoinc, pk, semicolon ); } return ...
String function( String tablename, ValueMetaInterface v, String tk, boolean use_autoinc, String pk, boolean semicolon ) { if ( databaseDialect != null ) { return databaseDialect.getModifyColumnStatement( tablename, v, tk, use_autoinc, pk, semicolon ); } return STR + tablename + STR + getFieldDefinition( v, tk, pk, use_...
/** * Generates the SQL statement to modify a column in the specified table * * @param tablename * The table to add * @param v * The column defined as a value * @param tk * the name of the technical key field * @param use_autoinc * whether or not this fi...
Generates the SQL statement to modify a column in the specified table
getModifyColumnStatement
{ "repo_name": "dkincade/pentaho-kettle", "path": "core/src/main/java/org/pentaho/di/core/database/GenericDatabaseMeta.java", "license": "apache-2.0", "size": 26693 }
[ "org.pentaho.di.core.row.ValueMetaInterface" ]
import org.pentaho.di.core.row.ValueMetaInterface;
import org.pentaho.di.core.row.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,793,686
public LogTrace getLogTrace() { return this.logTrace; }
LogTrace function() { return this.logTrace; }
/** * Missing description at method getLogTrace. * * @return the LogTrace. */
Missing description at method getLogTrace
getLogTrace
{ "repo_name": "NABUCCO/org.nabucco.framework.importing", "path": "org.nabucco.framework.importing.facade.message/src/main/gen/org/nabucco/framework/importing/facade/message/search/ImportJobSearchRq.java", "license": "epl-1.0", "size": 16782 }
[ "org.nabucco.framework.base.facade.datatype.log.LogTrace" ]
import org.nabucco.framework.base.facade.datatype.log.LogTrace;
import org.nabucco.framework.base.facade.datatype.log.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
795,738
public void clustergraph() throws Exception { // checking existence of start time. if (!parameterMap .containsKey(com.impetus.ankush2.constant.Constant.Keys.STARTTIME) || !parameterMap .containsKey(com.impetus.ankush2.constant.Constant.Keys.TYPE)) { throw new Exception("Either start time or typ...
void function() throws Exception { if (!parameterMap .containsKey(com.impetus.ankush2.constant.Constant.Keys.STARTTIME) !parameterMap .containsKey(com.impetus.ankush2.constant.Constant.Keys.TYPE)) { throw new Exception(STR); } StartTime startTime = StartTime.valueOf(((String) parameterMap .get(com.impetus.ankush2.const...
/** * Return cluster level summarized graph. * * @throws Exception */
Return cluster level summarized graph
clustergraph
{ "repo_name": "zengzhaozheng/ankush", "path": "ankush/src/main/java/com/impetus/ankush2/framework/monitor/AbstractMonitor.java", "license": "lgpl-3.0", "size": 63629 }
[ "com.impetus.ankush2.constant.Constant", "com.impetus.ankush2.framework.monitor.Graph" ]
import com.impetus.ankush2.constant.Constant; import com.impetus.ankush2.framework.monitor.Graph;
import com.impetus.ankush2.constant.*; import com.impetus.ankush2.framework.monitor.*;
[ "com.impetus.ankush2" ]
com.impetus.ankush2;
1,111,755
@SuppressWarnings("unchecked") private <T> Type<T> componentTypeOf(final T[] object) { return object == null ? null : TypeFactory.valueOf((Class<T>) object.getClass().getComponentType()); }
@SuppressWarnings(STR) <T> Type<T> function(final T[] object) { return object == null ? null : TypeFactory.valueOf((Class<T>) object.getClass().getComponentType()); }
/** * Resolve the (element) component type for the given array. * * @param object * @return the resolved Type instance */
Resolve the (element) component type for the given array
componentTypeOf
{ "repo_name": "orika-mapper/orika", "path": "core/src/main/java/ma/glasnost/orika/impl/MapperFacadeImpl.java", "license": "apache-2.0", "size": 47146 }
[ "ma.glasnost.orika.metadata.Type", "ma.glasnost.orika.metadata.TypeFactory" ]
import ma.glasnost.orika.metadata.Type; import ma.glasnost.orika.metadata.TypeFactory;
import ma.glasnost.orika.metadata.*;
[ "ma.glasnost.orika" ]
ma.glasnost.orika;
2,654,267
@Override public void exitCompLowMeasure(@NotNull QueryGrammarParser.CompLowMeasureContext ctx) { }
@Override public void exitCompLowMeasure(@NotNull QueryGrammarParser.CompLowMeasureContext ctx) { }
/** * {@inheritDoc} * <p/> * The default implementation does nothing. */
The default implementation does nothing
enterCompLowMeasure
{ "repo_name": "pmeisen/dis-timeintervaldataanalyzer", "path": "src/net/meisen/dissertation/impl/parser/query/generated/QueryGrammarBaseListener.java", "license": "bsd-3-clause", "size": 33327 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,760,986
private void filterByEntityDate(Date startDate, Date endDate) { logger.log("Removing articles not fitting the entity date constraints: "+startDate+"->"+endDate); logger.increaseOffset(); fr.univavignon.transpolosearch.tools.time.Date start = new fr.univavignon.transpolosearch.tools.time.Date(startDate); ...
void function(Date startDate, Date endDate) { logger.log(STR+startDate+"->"+endDate); logger.increaseOffset(); fr.univavignon.transpolosearch.tools.time.Date start = new fr.univavignon.transpolosearch.tools.time.Date(startDate); fr.univavignon.transpolosearch.tools.time.Date end = new fr.univavignon.transpolosearch.too...
/** * Discards results describing only events not contained * in the specified date range. * * @param startDate * Start of the time period. * @param endDate * End of the time period. */
Discards results describing only events not contained in the specified date range
filterByEntityDate
{ "repo_name": "CompNet/TranspoloSearch", "path": "src/fr/univavignon/transpolosearch/data/search/AbstractSpecificSearchResults.java", "license": "gpl-2.0", "size": 12367 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,686,478
public String getRedirectUrlForSiteAuth(String forwardUrl, List<String> rolesToContrib);
String function(String forwardUrl, List<String> rolesToContrib);
/** * Composes a full URL that can be returned from a controller to redirect the user to the cross app authentication * controller endpoint on the site application. * * @param forwardUrl (not URL encoded) * @param rolesToContrib * @return the redirect url */
Composes a full URL that can be returned from a controller to redirect the user to the cross app authentication controller endpoint on the site application
getRedirectUrlForSiteAuth
{ "repo_name": "akdasari/SparkCommon", "path": "src/main/java/org/sparkcommerce/common/crossapp/service/CrossAppAdminAuthService.java", "license": "apache-2.0", "size": 1783 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,603,187
public synchronized void commit(SegmentInfos infos) throws IOException { for (SegmentCommitInfo info : infos) { final ReadersAndUpdates rld = readerMap.get(info); if (rld != null) { assert rld.info == info; if (rld.writeLiveDocs(directory)) { // Make sure we onl...
synchronized void function(SegmentInfos infos) throws IOException { for (SegmentCommitInfo info : infos) { final ReadersAndUpdates rld = readerMap.get(info); if (rld != null) { assert rld.info == info; if (rld.writeLiveDocs(directory)) { assert infoIsLive(info); checkpointNoSIS(); } } } }
/** * Commit live docs changes for the segment readers for * the provided infos. * * @throws IOException If there is a low-level I/O error */
Commit live docs changes for the segment readers for the provided infos
commit
{ "repo_name": "pengzong1111/solr4", "path": "lucene/core/src/java/org/apache/lucene/index/IndexWriter.java", "license": "apache-2.0", "size": 176670 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,852,449
JsonObject getPendingBookieOpsStats() throws PulsarAdminException;
JsonObject getPendingBookieOpsStats() throws PulsarAdminException;
/** * Get pending bookie client op stats by namespace. * <p/> * Notes: since we don't plan to introspect the response we avoid converting the response into POJO. * * @return * @throws PulsarAdminException */
Get pending bookie client op stats by namespace. Notes: since we don't plan to introspect the response we avoid converting the response into POJO
getPendingBookieOpsStats
{ "repo_name": "yahoo/pulsar", "path": "pulsar-client-admin-api/src/main/java/org/apache/pulsar/client/admin/BrokerStats.java", "license": "apache-2.0", "size": 3988 }
[ "com.google.gson.JsonObject" ]
import com.google.gson.JsonObject;
import com.google.gson.*;
[ "com.google.gson" ]
com.google.gson;
2,914,782
@Override public void sendChunk(String world, Collection<ChunkLoc> locations) { World worldObj = BukkitUtil.getWorld(world); for (ChunkLoc loc : locations) { worldObj.refreshChunk(loc.x, loc.z); } }
void function(String world, Collection<ChunkLoc> locations) { World worldObj = BukkitUtil.getWorld(world); for (ChunkLoc loc : locations) { worldObj.refreshChunk(loc.x, loc.z); } }
/** * This should be overridden by any specialized queues * @param world * @param locations */
This should be overridden by any specialized queues
sendChunk
{ "repo_name": "SynergyMC/PlotSquared", "path": "Bukkit/src/main/java/com/plotsquared/bukkit/util/block/FastQueue_1_9.java", "license": "gpl-3.0", "size": 16726 }
[ "com.intellectualcrafters.plot.object.ChunkLoc", "com.plotsquared.bukkit.util.BukkitUtil", "java.util.Collection", "org.bukkit.World" ]
import com.intellectualcrafters.plot.object.ChunkLoc; import com.plotsquared.bukkit.util.BukkitUtil; import java.util.Collection; import org.bukkit.World;
import com.intellectualcrafters.plot.object.*; import com.plotsquared.bukkit.util.*; import java.util.*; import org.bukkit.*;
[ "com.intellectualcrafters.plot", "com.plotsquared.bukkit", "java.util", "org.bukkit" ]
com.intellectualcrafters.plot; com.plotsquared.bukkit; java.util; org.bukkit;
606,114
private JButton getBtnFastForward() { if (btnFastForward == null) { btnFastForward = new JButton(); if (orientation==VERTICAL){ btnFastForward.setBounds(7, 91, 20, 24); }else{ btnFastForward.setBounds(208, 1, 20, 24); }
JButton function() { if (btnFastForward == null) { btnFastForward = new JButton(); if (orientation==VERTICAL){ btnFastForward.setBounds(7, 91, 20, 24); }else{ btnFastForward.setBounds(208, 1, 20, 24); }
/** * This method initializes btnFastForward * * @return javax.swing.JButton */
This method initializes btnFastForward
getBtnFastForward
{ "repo_name": "iCarto/siga", "path": "libUIComponent/src/org/gvsig/gui/beans/Pager.java", "license": "gpl-3.0", "size": 13759 }
[ "javax.swing.JButton" ]
import javax.swing.JButton;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,452,926
@Override protected boolean validatePage() { if (super.validatePage()) { String extension = new Path(getFileName()).getFileExtension(); if (extension == null || !FILE_EXTENSIONS.contains(extension)) { String key = FILE_EXTENSIONS.size() > 1 ? "_WARN_FilenameExtensions" : "_WARN_FilenameExtension"...
boolean function() { if (super.validatePage()) { String extension = new Path(getFileName()).getFileExtension(); if (extension == null !FILE_EXTENSIONS.contains(extension)) { String key = FILE_EXTENSIONS.size() > 1 ? STR : STR; setErrorMessage(ApplicationEditorPlugin.INSTANCE.getString(key, new Object [] { FORMATTED_FIL...
/** * The framework calls this to see if the file is correct. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
The framework calls this to see if the file is correct.
validatePage
{ "repo_name": "CsabaSzabo/iOS-Test-Generator", "path": "hu.bme.mit.mobilegen.iostestgenerator.model.editor/src/hu/bme/mit/mobilegen/iostestgenerator/model/application/presentation/ApplicationModelWizard.java", "license": "mit", "size": 18048 }
[ "org.eclipse.core.runtime.Path" ]
import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.*;
[ "org.eclipse.core" ]
org.eclipse.core;
1,151,442
public Date getStartDate() { return startDate; }
Date function() { return startDate; }
/** * Gets the start date. * * @return Returns the startDate */
Gets the start date
getStartDate
{ "repo_name": "gretchiemoran/pentaho-kettle", "path": "engine/src/org/pentaho/di/job/Job.java", "license": "apache-2.0", "size": 71804 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
356,809
public void setDrawColor(Color color) { bufferG.setColor(color); }
void function(Color color) { bufferG.setColor(color); }
/** * Sets the color to used by the Graphics2D for drawing on the buffer * * @param color * - Color to be used for drawing graphics * * @see java.awt.Color * @see java.awt.Graphics2D */
Sets the color to used by the Graphics2D for drawing on the buffer
setDrawColor
{ "repo_name": "mzijlstra/java-games", "path": "pong/GraphicsWindow.java", "license": "apache-2.0", "size": 18603 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
195,875
private String getDeploymentUrl(HttpServletRequest request) { String requestUrl = request.getRequestURL().toString(); String servletPath = request.getServletPath(); return requestUrl.substring(0, requestUrl.length() - servletPath.length()); }
String function(HttpServletRequest request) { String requestUrl = request.getRequestURL().toString(); String servletPath = request.getServletPath(); return requestUrl.substring(0, requestUrl.length() - servletPath.length()); }
/** * Finds the root URL of the current deployment based on the user's request. * * @param request request from the user * @return the deployment root, including scheme, server, port, and path */
Finds the root URL of the current deployment based on the user's request
getDeploymentUrl
{ "repo_name": "BellaDati/belladati-sdk-tutorial", "path": "src/com/belladati/tutorial/TutorialController.java", "license": "apache-2.0", "size": 13060 }
[ "javax.servlet.http.HttpServletRequest" ]
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
81,871
public static String[] addExplicitOptimisticTypes(final String[] args) { if (hasOptimisticOverride()) { final List<String> newList = new ArrayList<>(Arrays.asList(args)); newList.add("--optimistic-types=" + Boolean.valueOf(OPTIMISTIC_OVERRIDE)); return newList.toArray(new...
static String[] function(final String[] args) { if (hasOptimisticOverride()) { final List<String> newList = new ArrayList<>(Arrays.asList(args)); newList.add(STR + Boolean.valueOf(OPTIMISTIC_OVERRIDE)); return newList.toArray(new String[0]); } return args; }
/** * Add an optimistic-types=true option to an argument list if this * is set to override the default false. Add an optimistic-types=true * options to an argument list if this is set to override the default * true * * @args new argument list array */
Add an optimistic-types=true option to an argument list if this is set to override the default false. Add an optimistic-types=true options to an argument list if this is set to override the default true
addExplicitOptimisticTypes
{ "repo_name": "shelan/jdk9-mirror", "path": "nashorn/test/src/jdk/nashorn/internal/test/framework/TestFinder.java", "license": "gpl-2.0", "size": 19542 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,123,754
public final Iterable<java.lang.String> queryKeysByBillingStreet(java.lang.String billingStreet) { final Filter filter = createEqualsFilter(COLUMN_NAME_BILLINGSTREET, billingStreet); return queryIterableKeys(0, -1, null, null, null, false, null, false, filter); }
final Iterable<java.lang.String> function(java.lang.String billingStreet) { final Filter filter = createEqualsFilter(COLUMN_NAME_BILLINGSTREET, billingStreet); return queryIterableKeys(0, -1, null, null, null, false, null, false, filter); }
/** * query-key-by method for attribute field billingStreet * @param billingStreet the specified attribute * @return an Iterable of keys to the DmAccounts with the specified attribute */
query-key-by method for attribute field billingStreet
queryKeysByBillingStreet
{ "repo_name": "goldengekko/Meetr-Backend", "path": "src/main/java/com/goldengekko/meetr/dao/GeneratedDmAccountDaoImpl.java", "license": "gpl-3.0", "size": 38969 }
[ "net.sf.mardao.core.Filter" ]
import net.sf.mardao.core.Filter;
import net.sf.mardao.core.*;
[ "net.sf.mardao" ]
net.sf.mardao;
357,688
private void cancelArpPackets() { packetService.cancelPackets(ARP_SELECTOR, PacketPriority.CONTROL, appId); }
void function() { packetService.cancelPackets(ARP_SELECTOR, PacketPriority.CONTROL, appId); }
/** * Cancel requested ARP packets in via packet service. */
Cancel requested ARP packets in via packet service
cancelArpPackets
{ "repo_name": "kuujo/onos", "path": "apps/dhcprelay/app/src/main/java/org/onosproject/dhcprelay/DhcpRelayManager.java", "license": "apache-2.0", "size": 26079 }
[ "org.onosproject.net.packet.PacketPriority" ]
import org.onosproject.net.packet.PacketPriority;
import org.onosproject.net.packet.*;
[ "org.onosproject.net" ]
org.onosproject.net;
1,527,576
public Color getColor() { return g.getColor(); }
Color function() { return g.getColor(); }
/** * Gets this graphics context's current color. * @return this graphics context's current color. * @see java.awt.Color * @see java.awt.Graphics#setColor */
Gets this graphics context's current color
getColor
{ "repo_name": "YouDiSN/OpenJDK-Research", "path": "jdk9/jdk/src/java.desktop/share/classes/sun/print/ProxyGraphics.java", "license": "gpl-2.0", "size": 52753 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,854,990
void reset(boolean resetProperties) { if (!fReuse) { throw new java.lang.IllegalStateException( "close() Must be called before calling reset()"); } fReuse = false; fNamespaceDecls.clear(); fAttributeCache.clear(); // reset Element/Namespa...
void reset(boolean resetProperties) { if (!fReuse) { throw new java.lang.IllegalStateException( STR); } fReuse = false; fNamespaceDecls.clear(); fAttributeCache.clear(); fElementStack.clear(); fInternalNamespaceContext.reset(); fStartTagOpened = false; fNamespaceContext.userContext = null; if (resetProperties) { Boolea...
/** * Reset this instance so that it can be re-used. Clears but does not * re-allocate internal data structures. * * @param resetProperties Indicates if properties should be read again */
Reset this instance so that it can be re-used. Clears but does not re-allocate internal data structures
reset
{ "repo_name": "md-5/jdk10", "path": "src/java.xml/share/classes/com/sun/xml/internal/stream/writers/XMLStreamWriterImpl.java", "license": "gpl-2.0", "size": 72232 }
[ "com.sun.org.apache.xerces.internal.impl.Constants", "javax.xml.stream.XMLOutputFactory" ]
import com.sun.org.apache.xerces.internal.impl.Constants; import javax.xml.stream.XMLOutputFactory;
import com.sun.org.apache.xerces.internal.impl.*; import javax.xml.stream.*;
[ "com.sun.org", "javax.xml" ]
com.sun.org; javax.xml;
2,520,457
//----------------------------------------------------------------------- public static Date addWeeks(Date date, int amount) { return add(date, Calendar.WEEK_OF_YEAR, amount); }
static Date function(Date date, int amount) { return add(date, Calendar.WEEK_OF_YEAR, amount); }
/** * Adds a number of weeks to a date returning a new object. * The original date object is unchanged. * * @param date the date, not null * @param amount the amount to add, may be negative * @return the new date object with the amount added * @throws IllegalArgumentException if the...
Adds a number of weeks to a date returning a new object. The original date object is unchanged
addWeeks
{ "repo_name": "SpoonLabs/astor", "path": "examples/lang_39/src/java/org/apache/commons/lang3/time/DateUtils.java", "license": "gpl-2.0", "size": 73011 }
[ "java.util.Calendar", "java.util.Date" ]
import java.util.Calendar; import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
151,546
public Date getDateModified() { return (Date)getAttributeInternal(DATEMODIFIED); }
Date function() { return (Date)getAttributeInternal(DATEMODIFIED); }
/** * * Gets the attribute value for DateModified, using the alias name DateModified */
Gets the attribute value for DateModified, using the alias name DateModified
getDateModified
{ "repo_name": "NCIP/cadsr-util", "path": "cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/persistence/bc4j/ConDerivationRulesExtImpl.java", "license": "bsd-3-clause", "size": 8586 }
[ "oracle.jbo.domain.Date" ]
import oracle.jbo.domain.Date;
import oracle.jbo.domain.*;
[ "oracle.jbo.domain" ]
oracle.jbo.domain;
6,813
boolean prove(Query query);
boolean prove(Query query);
/** * Verify if pre-constructed query is provable * @param query Query to prove * @return True if provable, false otherwise */
Verify if pre-constructed query is provable
prove
{ "repo_name": "mochalog/mochalog", "path": "subprojects/mochalog-bridge/java-api/src/main/java/io/mochalog/bridge/prolog/PrologContext.java", "license": "apache-2.0", "size": 6006 }
[ "io.mochalog.bridge.prolog.query.Query" ]
import io.mochalog.bridge.prolog.query.Query;
import io.mochalog.bridge.prolog.query.*;
[ "io.mochalog.bridge" ]
io.mochalog.bridge;
569,774
void notifyChange(final String table) { //TODO Optimize this later, Maybe a sorted list of loaders by table name? for (final SQLiteLoaderObserver entry : mActiveLoaders) { Logger.d(TAG, "Notify change: %s", entry.table); if (entry.table.contains(table)) { ...
void notifyChange(final String table) { for (final SQLiteLoaderObserver entry : mActiveLoaders) { Logger.d(TAG, STR, entry.table); if (entry.table.contains(table)) { entry.loader.onContentChanged(); } } }
/** * Notify loaders whenever a table is modified * * @param table The table that was modified */
Notify loaders whenever a table is modified
notifyChange
{ "repo_name": "barterli/barterli_android", "path": "barterli/src/main/java/li/barter/data/BarterLiSQLiteOpenHelper.java", "license": "apache-2.0", "size": 14058 }
[ "li.barter.utils.Logger" ]
import li.barter.utils.Logger;
import li.barter.utils.*;
[ "li.barter.utils" ]
li.barter.utils;
2,458,550
public int update(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException { checkState(); return OpensslNative.updateByteArray(context, input, inputOffset, inputLen, output, outputOffset, output.length - outputOffset); }
int function(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException { checkState(); return OpensslNative.updateByteArray(context, input, inputOffset, inputLen, output, outputOffset, output.length - outputOffset); }
/** * Continues a multiple-part encryption/decryption operation. The data * is encrypted or decrypted, depending on how this cipher was initialized. * * @param input the input byte array * @param inputOffset the offset in input where the input starts * @param inputLen the input length * @param outp...
Continues a multiple-part encryption/decryption operation. The data is encrypted or decrypted, depending on how this cipher was initialized
update
{ "repo_name": "intel-hadoop/chimera", "path": "src/main/java/com/intel/chimera/cipher/Openssl.java", "license": "apache-2.0", "size": 11176 }
[ "javax.crypto.ShortBufferException" ]
import javax.crypto.ShortBufferException;
import javax.crypto.*;
[ "javax.crypto" ]
javax.crypto;
1,874,386
ExecutionResult tryExecute(Path workingDirectory, String... cmd) throws IOException;
ExecutionResult tryExecute(Path workingDirectory, String... cmd) throws IOException;
/** * Executes a command waits until it has ended * * @param cmd the command and its arguments * @param workingDirectory the cwd for the program, or null * @return the result containing exit code, stdout and stderr * @throws IOException Failed to start the program or read the outputs */
Executes a command waits until it has ended
tryExecute
{ "repo_name": "bugminer/bugminer", "path": "bugminer-server/src/main/java/de/unistuttgart/iste/rss/bugminer/computing/CommandExecutor.java", "license": "mit", "size": 2300 }
[ "de.unistuttgart.iste.rss.bugminer.utils.ExecutionResult", "java.io.IOException", "java.nio.file.Path" ]
import de.unistuttgart.iste.rss.bugminer.utils.ExecutionResult; import java.io.IOException; import java.nio.file.Path;
import de.unistuttgart.iste.rss.bugminer.utils.*; import java.io.*; import java.nio.file.*;
[ "de.unistuttgart.iste", "java.io", "java.nio" ]
de.unistuttgart.iste; java.io; java.nio;
317,000
public static String encodeString(String string,String charset) { if (charset==null) charset=ENCODING; byte[] bytes=null; try { bytes=string.getBytes(charset); } catch(UnsupportedEncodingException e) { // Log.warn(L...
static String function(String string,String charset) { if (charset==null) charset=ENCODING; byte[] bytes=null; try { bytes=string.getBytes(charset); } catch(UnsupportedEncodingException e) { bytes=string.getBytes(); } int len=bytes.length; byte[] encoded= new byte[bytes.length*3]; int n=0; boolean noEncode=true; for (i...
/** Perform URL encoding. * @param string * @return encoded string. */
Perform URL encoding
encodeString
{ "repo_name": "ifcharming/original2.0", "path": "src/jetty716/org/eclipse/jetty_voltpatches/util/UrlEncoded.java", "license": "gpl-3.0", "size": 29790 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
1,669,395
@PluginFactory public static ZebraRolloverStrategy createStrategy( @PluginAttribute("max") final String max, @PluginAttribute("min") final String min, @PluginAttribute("fileIndex") final String fileIndex, @PluginAttribute("compressionLevel") final String compressi...
static ZebraRolloverStrategy function( @PluginAttribute("max") final String max, @PluginAttribute("min") final String min, @PluginAttribute(STR) final String fileIndex, @PluginAttribute(STR) final String compressionLevelStr, @PluginConfiguration final Configuration config) { final boolean useMax = fileIndex == null ? t...
/** * Create the DefaultRolloverStrategy. * @param max The maximum number of files to keep. * @param min The minimum number of files to keep. * @param fileIndex If set to "max" (the default), files with a higher index will be newer than files with a * smaller index. If set to "min", file renami...
Create the DefaultRolloverStrategy
createStrategy
{ "repo_name": "dianping/zebra", "path": "zebra-client/src/main/java/com/dianping/zebra/log/ZebraRolloverStrategy.java", "license": "apache-2.0", "size": 17497 }
[ "java.util.zip.Deflater", "org.apache.logging.log4j.core.config.Configuration", "org.apache.logging.log4j.core.config.plugins.PluginAttribute", "org.apache.logging.log4j.core.config.plugins.PluginConfiguration", "org.apache.logging.log4j.core.lookup.StrSubstitutor", "org.apache.logging.log4j.core.util.Int...
import java.util.zip.Deflater; import org.apache.logging.log4j.core.config.Configuration; import org.apache.logging.log4j.core.config.plugins.PluginAttribute; import org.apache.logging.log4j.core.config.plugins.PluginConfiguration; import org.apache.logging.log4j.core.lookup.StrSubstitutor; import org.apache.logging.lo...
import java.util.zip.*; import org.apache.logging.log4j.core.config.*; import org.apache.logging.log4j.core.config.plugins.*; import org.apache.logging.log4j.core.lookup.*; import org.apache.logging.log4j.core.util.*;
[ "java.util", "org.apache.logging" ]
java.util; org.apache.logging;
1,883,625
public static void mkdirs(File dirs) throws IOException { if (dirs.exists()) { if (dirs.isDirectory() == false) { throw new IOException("Directory '" + "' is not a directory."); } return; } if (dirs.mkdirs() == false) { throw new IOException("Unable to create directory '" + dirs + "'."); } }
static void function(File dirs) throws IOException { if (dirs.exists()) { if (dirs.isDirectory() == false) { throw new IOException(STR + STR); } return; } if (dirs.mkdirs() == false) { throw new IOException(STR + dirs + "'."); } }
/** * CreatingUtils all folders at once. */
CreatingUtils all folders at once
mkdirs
{ "repo_name": "allanfish/facetime-demo", "path": "oatos_project/oatos_dto/src/main/java/com/conlect/oatos/utils/FileUtils.java", "license": "mit", "size": 35545 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,415,187
public static ims.clinical.configuration.domain.objects.ProblemHotlist extractProblemHotlist(ims.domain.ILightweightDomainFactory domainFactory, ims.clinicaladmin.vo.ProblemHotlistShortVo valueObject) { return extractProblemHotlist(domainFactory, valueObject, new HashMap()); }
static ims.clinical.configuration.domain.objects.ProblemHotlist function(ims.domain.ILightweightDomainFactory domainFactory, ims.clinicaladmin.vo.ProblemHotlistShortVo valueObject) { return extractProblemHotlist(domainFactory, valueObject, new HashMap()); }
/** * Create the domain object from the value object. * @param domainFactory - used to create existing (persistent) domain objects. * @param valueObject - extract the domain object fields from this. */
Create the domain object from the value object
extractProblemHotlist
{ "repo_name": "open-health-hub/openMAXIMS", "path": "openmaxims_workspace/ValueObjects/src/ims/clinicaladmin/vo/domain/ProblemHotlistShortVoAssembler.java", "license": "agpl-3.0", "size": 19189 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,279,581
public void push(final float value) { int bits = Float.floatToIntBits(value); if (bits == 0L || bits == 0x3f800000 || bits == 0x40000000) { // 0..2 mv.visitInsn(Opcodes.FCONST_0 + (int) value); } else { mv.visitLdcInsn(new Float(value)); } }
void function(final float value) { int bits = Float.floatToIntBits(value); if (bits == 0L bits == 0x3f800000 bits == 0x40000000) { mv.visitInsn(Opcodes.FCONST_0 + (int) value); } else { mv.visitLdcInsn(new Float(value)); } }
/** * Generates the instruction to push the given value on the stack. * * @param value * the value to be pushed on the stack. */
Generates the instruction to push the given value on the stack
push
{ "repo_name": "Fantast/mvel", "path": "src/main/java/org/mvel2/asm/commons/GeneratorAdapter.java", "license": "apache-2.0", "size": 50816 }
[ "org.mvel2.asm.Opcodes" ]
import org.mvel2.asm.Opcodes;
import org.mvel2.asm.*;
[ "org.mvel2.asm" ]
org.mvel2.asm;
2,360,437
public MaxSize difference (BitSet set) { return (MaxSize) super.difference (set); }
MaxSize function (BitSet set) { return (MaxSize) super.difference (set); }
/** * Change this set to be the difference of itself and the given set. The * difference consists of all elements that appear in this set and not * in the given set. * * @param set Set. * * @return This set. */
Change this set to be the difference of itself and the given set. The difference consists of all elements that appear in this set and not in the given set
difference
{ "repo_name": "JimiHFord/pj2", "path": "lib/edu/rit/pj2/vbl/BitSetVbl.java", "license": "lgpl-3.0", "size": 36732 }
[ "edu.rit.util.BitSet" ]
import edu.rit.util.BitSet;
import edu.rit.util.*;
[ "edu.rit.util" ]
edu.rit.util;
2,409,326
public boolean formatValue() { String dc = getNullText(); try { setValue( createBigDecimal( dc ) ); return true; } catch (NumberFormatException e) { return false; } catch (ParseException e) { return false; } }
boolean function() { String dc = getNullText(); try { setValue( createBigDecimal( dc ) ); return true; } catch (NumberFormatException e) { return false; } catch (ParseException e) { return false; } }
/** * Format the Value (automatically called on lostFocus, manually called on getValue/Date()). * @return false, if formating fails due to an illegal Value * (results in keeping the Focus, if requested by setKeepFocusOnIllegalValue). */
Format the Value (automatically called on lostFocus, manually called on getValue/Date())
formatValue
{ "repo_name": "iCarto/siga", "path": "libUIComponent/src/de/ios/framework/swing/JDecimalField.java", "license": "gpl-3.0", "size": 8057 }
[ "java.text.ParseException" ]
import java.text.ParseException;
import java.text.*;
[ "java.text" ]
java.text;
309,250
public void saveGreenhouses() { logger(2,"Saving greenhouses..."); ConfigurationSection greenhouseSection = greenhouseConfig.createSection("greenhouses"); // Get a list of all the greenhouses int greenhouseNum = 0; for (Greenhouse g: greenhouses) { try { ...
void function() { logger(2,STR); ConfigurationSection greenhouseSection = greenhouseConfig.createSection(STR); int greenhouseNum = 0; for (Greenhouse g: greenhouses) { try { greenhouseSection.set(greenhouseNum + STR, g.getOwner().toString()); greenhouseSection.set(greenhouseNum + STR, g.getPlayerName()); greenhouseSect...
/** * Saves all the greenhouses to greenhouse.yml */
Saves all the greenhouses to greenhouse.yml
saveGreenhouses
{ "repo_name": "tastybento/greenhouses", "path": "src/com/wasteofplastic/greenhouses/Greenhouses.java", "license": "gpl-2.0", "size": 77422 }
[ "java.io.IOException", "org.bukkit.configuration.ConfigurationSection" ]
import java.io.IOException; import org.bukkit.configuration.ConfigurationSection;
import java.io.*; import org.bukkit.configuration.*;
[ "java.io", "org.bukkit.configuration" ]
java.io; org.bukkit.configuration;
2,450,555
public static int hashCode(QuantityValue o) { int result; result = o.getNumericValue().hashCode(); result = prime * result + o.getLowerBound().hashCode(); result = prime * result + o.getUpperBound().hashCode(); return result; }
static int function(QuantityValue o) { int result; result = o.getNumericValue().hashCode(); result = prime * result + o.getLowerBound().hashCode(); result = prime * result + o.getUpperBound().hashCode(); return result; }
/** * Returns a hash code for the given object. * * @see java.lang.Object#hashCode() * @param o * the object to create a hash for * @return the hash code of the object */
Returns a hash code for the given object
hashCode
{ "repo_name": "GlorimarCastro/glorimar-wikidata-toolkit", "path": "wdtk-datamodel/src/main/java/org/wikidata/wdtk/datamodel/helpers/Hash.java", "license": "apache-2.0", "size": 10121 }
[ "org.wikidata.wdtk.datamodel.interfaces.QuantityValue" ]
import org.wikidata.wdtk.datamodel.interfaces.QuantityValue;
import org.wikidata.wdtk.datamodel.interfaces.*;
[ "org.wikidata.wdtk" ]
org.wikidata.wdtk;
2,135,295
void setListItem(BoxItem item) { mItem = item; }
void setListItem(BoxItem item) { mItem = item; }
/** * Sets list item. * * @param item the item */
Sets list item
setListItem
{ "repo_name": "box/box-android-browse-sdk", "path": "box-browse-sdk/src/main/java/com/box/androidsdk/browse/adapters/BoxItemAdapter.java", "license": "apache-2.0", "size": 25731 }
[ "com.box.androidsdk.content.models.BoxItem" ]
import com.box.androidsdk.content.models.BoxItem;
import com.box.androidsdk.content.models.*;
[ "com.box.androidsdk" ]
com.box.androidsdk;
1,091,672
@Override public boolean equals(Object other) { if (!(other instanceof Sha512Hash)) return false; return Arrays.equals(bytes, ((Sha512Hash) other).bytes); }
boolean function(Object other) { if (!(other instanceof Sha512Hash)) return false; return Arrays.equals(bytes, ((Sha512Hash) other).bytes); }
/** * Returns true if the hashes are equal. */
Returns true if the hashes are equal
equals
{ "repo_name": "habibmasuro/smileycoinj", "path": "core/src/main/java/com/hashengineering/crypto/Sha512Hash.java", "license": "apache-2.0", "size": 4982 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,318,551
protected void showLayoutTargetFeedback(Request request) { }
void function(Request request) { }
/** * Shows target layout feedback. During <i>moves</i>, <i>reparents</i>, and * <i>creation</i>, this method is called to allow the LayoutEditPolicy to * temporarily show features of its layout that will help the User * understand what will happen if the operation is performed in the current * location. * ...
Shows target layout feedback. During moves, reparents, and creation, this method is called to allow the LayoutEditPolicy to temporarily show features of its layout that will help the User understand what will happen if the operation is performed in the current location. By default, no feedback is shown
showLayoutTargetFeedback
{ "repo_name": "ghillairet/gef-gwt", "path": "src/main/java/org/eclipse/gef/editpolicies/LayoutEditPolicy.java", "license": "epl-1.0", "size": 15300 }
[ "org.eclipse.gef.Request" ]
import org.eclipse.gef.Request;
import org.eclipse.gef.*;
[ "org.eclipse.gef" ]
org.eclipse.gef;
2,308,331
public Object toJSON(JSONObject parent, String key){ if (parent == null){ return getValue(); } parent.put(key, getValue()); return getValue(); }
Object function(JSONObject parent, String key){ if (parent == null){ return getValue(); } parent.put(key, getValue()); return getValue(); }
/** * Serializes to JSON. * @param parent * @param key * @return JSONObject */
Serializes to JSON
toJSON
{ "repo_name": "EnigmaBridge/client.java", "path": "client/src/main/java/com/enigmabridge/UserObjectType.java", "license": "mit", "size": 13576 }
[ "org.json.JSONObject" ]
import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,880,319
public KickstartData deepCopy(User user, String newLabel) { KickstartData cloned = new KickstartData(); updateCloneDetails(cloned, user, newLabel); return cloned; }
KickstartData function(User user, String newLabel) { KickstartData cloned = new KickstartData(); updateCloneDetails(cloned, user, newLabel); return cloned; }
/** * Copy this KickstartData into a new one. NOTE: We don't clone * the following sub-objects: * * KickstartIpRange * * NOTE: We also don't clone isOrgDefault. * * @param user who is doing the cloning * @param newLabel to set on the cloned object * @return KickstartD...
the following sub-objects: KickstartIpRange
deepCopy
{ "repo_name": "lhellebr/spacewalk", "path": "java/code/src/com/redhat/rhn/domain/kickstart/KickstartData.java", "license": "gpl-2.0", "size": 48289 }
[ "com.redhat.rhn.domain.user.User" ]
import com.redhat.rhn.domain.user.User;
import com.redhat.rhn.domain.user.*;
[ "com.redhat.rhn" ]
com.redhat.rhn;
151,599
static Set<Pair<IDKey, IDKey>> getRegistry() { return REGISTRY.get(); }
static Set<Pair<IDKey, IDKey>> getRegistry() { return REGISTRY.get(); }
/** * <p> * Returns the registry of object pairs being traversed by the reflection * methods in the current thread. * </p> * * @return Set the registry of objects being traversed * @since 3.0 */
Returns the registry of object pairs being traversed by the reflection methods in the current thread.
getRegistry
{ "repo_name": "FrancescoJo/MediaMonkeyPluginSdk", "path": "src/main/java/com/mediamonkey/android/lib/internal/EqualsBuilder.java", "license": "apache-2.0", "size": 33784 }
[ "android.util.Pair", "java.util.Set" ]
import android.util.Pair; import java.util.Set;
import android.util.*; import java.util.*;
[ "android.util", "java.util" ]
android.util; java.util;
663,815
Intent intent = new Intent(c, SettingsActivity.class); c.startActivity(intent); }
Intent intent = new Intent(c, SettingsActivity.class); c.startActivity(intent); }
/** * Launch this Activity from the outside * * @param c context from which Activity should be started */
Launch this Activity from the outside
launch
{ "repo_name": "simceChina/welfare", "path": "src/com/teleca/jamendo/activity/SettingsActivity.java", "license": "apache-2.0", "size": 1728 }
[ "android.content.Intent" ]
import android.content.Intent;
import android.content.*;
[ "android.content" ]
android.content;
549,671
public void cancelDelegationToken(URL url, Token token, String doAsUser) throws IOException { Preconditions.checkNotNull(url, "url"); Preconditions.checkNotNull(token, "token"); Preconditions.checkNotNull(token.delegationToken, "No delegation token available"); try { ((KerberosDele...
void function(URL url, Token token, String doAsUser) throws IOException { Preconditions.checkNotNull(url, "url"); Preconditions.checkNotNull(token, "token"); Preconditions.checkNotNull(token.delegationToken, STR); try { ((KerberosDelegationTokenAuthenticator) getAuthenticator()). cancelDelegationToken(url, token, token...
/** * Cancels a delegation token from the server end-point. It does not require * being authenticated by the configured <code>Authenticator</code>. * * @param url the URL to cancel the delegation token from. Only HTTP/S URLs * are supported. * @param token the authentication token with the Delegation ...
Cancels a delegation token from the server end-point. It does not require being authenticated by the configured <code>Authenticator</code>
cancelDelegationToken
{ "repo_name": "JingchengDu/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/token/delegation/web/DelegationTokenAuthenticatedURL.java", "license": "apache-2.0", "size": 19167 }
[ "java.io.IOException", "org.apache.hadoop.util.Preconditions" ]
import java.io.IOException; import org.apache.hadoop.util.Preconditions;
import java.io.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,272,958
public static void requireAnyName(@NonNull final XmlPullParser parser, @NonNull final String... names) throws XmlPullParserException { final String nodeName = parser.getName(); if (nodeName != null) { for (final String name : names) { if (name != null && name....
static void function(@NonNull final XmlPullParser parser, @NonNull final String... names) throws XmlPullParserException { final String nodeName = parser.getName(); if (nodeName != null) { for (final String name : names) { if (name != null && name.equals(nodeName)) { return; } } } throw new XmlPullParserException(STR + ...
/** * Similar to {@link XmlPullParser#require(int, String, String)}, but tests to see if the current node name matches * any of the provided names. * * @param parser * @param names * @throws XmlPullParserException */
Similar to <code>XmlPullParser#require(int, String, String)</code>, but tests to see if the current node name matches any of the provided names
requireAnyName
{ "repo_name": "GlobalTechnology/android-gto-support", "path": "gto-support-core/src/main/java/org/ccci/gto/android/common/util/XmlPullParserUtils.java", "license": "mit", "size": 2699 }
[ "android.text.TextUtils", "androidx.annotation.NonNull", "org.xmlpull.v1.XmlPullParser", "org.xmlpull.v1.XmlPullParserException" ]
import android.text.TextUtils; import androidx.annotation.NonNull; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException;
import android.text.*; import androidx.annotation.*; import org.xmlpull.v1.*;
[ "android.text", "androidx.annotation", "org.xmlpull.v1" ]
android.text; androidx.annotation; org.xmlpull.v1;
231,680
@Override public ResourceLocator getResourceLocator() { return East_adlEditPlugin.INSTANCE; }
ResourceLocator function() { return East_adlEditPlugin.INSTANCE; }
/** * Return the resource locator for this item provider's resources. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Return the resource locator for this item provider's resources.
getResourceLocator
{ "repo_name": "ObeoNetwork/EAST-ADL-Designer", "path": "plugins/org.obeonetwork.dsl.eastadl.edit/src/org/obeonetwork/dsl/east_adl/support/provider/ArchivedEntityItemProvider.java", "license": "epl-1.0", "size": 5544 }
[ "org.eclipse.emf.common.util.ResourceLocator" ]
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,308,307
private static List<Arguments> getNumberTypeArguments() { return Arrays.asList( Arguments.of(Byte.class, byte.class, (byte) 3, (byte) -5), Arguments.of(Short.class, short.class, (short) 3, (short) -5), Arguments.of(Integer.class, int.class, 3, -5), Arguments.o...
static List<Arguments> function() { return Arrays.asList( Arguments.of(Byte.class, byte.class, (byte) 3, (byte) -5), Arguments.of(Short.class, short.class, (short) 3, (short) -5), Arguments.of(Integer.class, int.class, 3, -5), Arguments.of(Long.class, long.class, 3L, -5L), Arguments.of(Float.class, float.class, 3f, -5....
/** * Returns a list of arguments to test with: reference class, equivalent primitive class, * expected value for input1, expected value for input4. */
Returns a list of arguments to test with: reference class, equivalent primitive class, expected value for input1, expected value for input4
getNumberTypeArguments
{ "repo_name": "AuthMe/ConfigMe", "path": "src/test/java/ch/jalu/configme/beanmapper/leafvaluehandler/NumberLeafValueHandlerTest.java", "license": "mit", "size": 3637 }
[ "java.util.Arrays", "java.util.List", "org.junit.jupiter.params.provider.Arguments" ]
import java.util.Arrays; import java.util.List; import org.junit.jupiter.params.provider.Arguments;
import java.util.*; import org.junit.jupiter.params.provider.*;
[ "java.util", "org.junit.jupiter" ]
java.util; org.junit.jupiter;
2,913,842
public void testListEnum() { List<CharacterSet> enumValueList = Arrays.asList(CharacterSet.values()); List<CharacterSet> enumTestList = new ArrayList<CharacterSet>(); enumTestList.add(CharacterSet.TYPE2SET); enumTestList.add(CharacterSet.TYPE5SET); enumTestList.add(CharacterSet.CID1SET); enumTestList.a...
void function() { List<CharacterSet> enumValueList = Arrays.asList(CharacterSet.values()); List<CharacterSet> enumTestList = new ArrayList<CharacterSet>(); enumTestList.add(CharacterSet.TYPE2SET); enumTestList.add(CharacterSet.TYPE5SET); enumTestList.add(CharacterSet.CID1SET); enumTestList.add(CharacterSet.CID2SET); as...
/** * Verifies the possible enum values of CharacterSet. */
Verifies the possible enum values of CharacterSet
testListEnum
{ "repo_name": "anildahiya/sdl_android", "path": "android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/enums/CharacterSetTests.java", "license": "bsd-3-clause", "size": 2463 }
[ "com.smartdevicelink.proxy.rpc.enums.CharacterSet", "java.util.ArrayList", "java.util.Arrays", "java.util.List" ]
import com.smartdevicelink.proxy.rpc.enums.CharacterSet; import java.util.ArrayList; import java.util.Arrays; import java.util.List;
import com.smartdevicelink.proxy.rpc.enums.*; import java.util.*;
[ "com.smartdevicelink.proxy", "java.util" ]
com.smartdevicelink.proxy; java.util;
540,870
public static Map<String, String[]> readParameterMapFromMultiPart(String encoding, List<FileItem> multiPartFileItems) { Map<String, String[]> parameterMap = new HashMap<String, String[]>(); Iterator<FileItem> i = multiPartFileItems.iterator(); while (i.hasNext()) { FileItem item...
static Map<String, String[]> function(String encoding, List<FileItem> multiPartFileItems) { Map<String, String[]> parameterMap = new HashMap<String, String[]>(); Iterator<FileItem> i = multiPartFileItems.iterator(); while (i.hasNext()) { FileItem item = i.next(); String name = item.getFieldName(); String value = null; ...
/** * Creates a "standard" request parameter map from the values of a * <code>multipart/form-data</code> request.<p> * * @param encoding the encoding to use when creating the values * @param multiPartFileItems the list of parsed multi part file items * * @return a map containing al...
Creates a "standard" request parameter map from the values of a <code>multipart/form-data</code> request
readParameterMapFromMultiPart
{ "repo_name": "it-tavis/opencms-core", "path": "src/org/opencms/util/CmsRequestUtil.java", "license": "lgpl-2.1", "size": 33513 }
[ "java.io.UnsupportedEncodingException", "java.util.HashMap", "java.util.Iterator", "java.util.List", "java.util.Map", "org.apache.commons.fileupload.FileItem" ]
import java.io.UnsupportedEncodingException; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.commons.fileupload.FileItem;
import java.io.*; import java.util.*; import org.apache.commons.fileupload.*;
[ "java.io", "java.util", "org.apache.commons" ]
java.io; java.util; org.apache.commons;
43,059
protected void onPostExecute(String result) { JSONArray resultJsonArray = null; try { JSONObject json = new JSONObject(result); int success = json.getInt("success"); if (success == 1) { resultJsonArray = json.getJSONArray("detail"); for (int i = 0; i < resultJsonArray.length(); ...
void function(String result) { JSONArray resultJsonArray = null; try { JSONObject json = new JSONObject(result); int success = json.getInt(STR); if (success == 1) { resultJsonArray = json.getJSONArray(STR); for (int i = 0; i < resultJsonArray.length(); i++) { JSONObject c = resultJsonArray.getJSONObject(i); name = c.ge...
/** * After completing background task Dismiss the progress dialog * @return * @return * **/
After completing background task Dismiss the progress dialog
onPostExecute
{ "repo_name": "AungWinnHtut/phdyzm", "path": "com.engineer4myanmar.json.MainActivity/src/com/engineer4myanmar/json/DetailActivity.java", "license": "mit", "size": 9260 }
[ "android.util.Log", "java.util.HashMap", "org.json.JSONArray", "org.json.JSONException", "org.json.JSONObject" ]
import android.util.Log; import java.util.HashMap; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;
import android.util.*; import java.util.*; import org.json.*;
[ "android.util", "java.util", "org.json" ]
android.util; java.util; org.json;
2,147,228
public java.lang.String getAttachmentType() { AttachmentViewerOutDto outputDto = ((AttachmentViewerComponent) getComponent()).getAttachmentViewerOutDto(); return outputDto != null ? outputDto.getAttachmentType() : null; }
java.lang.String function() { AttachmentViewerOutDto outputDto = ((AttachmentViewerComponent) getComponent()).getAttachmentViewerOutDto(); return outputDto != null ? outputDto.getAttachmentType() : null; }
/** Getter for property attachmentType. * @return Value of property attachmentType. */
Getter for property attachmentType
getAttachmentType
{ "repo_name": "snavaneethan1/jaffa-framework", "path": "jaffa-components/source/java/org/jaffa/components/attachment/components/attachmentviewer/ui/AttachmentViewerForm.java", "license": "gpl-3.0", "size": 5647 }
[ "org.jaffa.components.attachment.components.attachmentviewer.dto.AttachmentViewerOutDto" ]
import org.jaffa.components.attachment.components.attachmentviewer.dto.AttachmentViewerOutDto;
import org.jaffa.components.attachment.components.attachmentviewer.dto.*;
[ "org.jaffa.components" ]
org.jaffa.components;
1,064,308
public void setMimeTypes(Set<String> mimeTypes) { _mimeTypes = mimeTypes; }
void function(Set<String> mimeTypes) { _mimeTypes = mimeTypes; }
/** * Sets the mime types. * * @param mimeTypes the new mime types */
Sets the mime types
setMimeTypes
{ "repo_name": "leoleegit/jetty-8.0.4.v20111024", "path": "jetty-http/src/main/java/org/eclipse/jetty/http/gzip/GzipResponseWrapper.java", "license": "apache-2.0", "size": 12852 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
871,177
protected void dispatchMousePressed(MouseEvent e) { eventDispatcher.mousePressed(e); }
void function(MouseEvent e) { eventDispatcher.mousePressed(e); }
/** * Dispatches the event to the GVT tree. */
Dispatches the event to the GVT tree
dispatchMousePressed
{ "repo_name": "Groostav/CMPT880-term-project", "path": "intruder/benchs/batik/batik-1.7/sources/org/apache/batik/swing/gvt/AbstractJGVTComponent.java", "license": "apache-2.0", "size": 38043 }
[ "java.awt.event.MouseEvent" ]
import java.awt.event.MouseEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
850,082
public void print(PrintStream out) { for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { out.print('\t'); out.print((float)value[i][j]); } out.println(); } }
void function(PrintStream out) { for (int i = 0; i < rows; i++) { for (int j = 0; j < columns; j++) { out.print('\t'); out.print((float)value[i][j]); } out.println(); } }
/** * Prints a matrix onto a print stream. * * @param out Print stream */
Prints a matrix onto a print stream
print
{ "repo_name": "deepjava/runtime-library", "path": "src/org/deepjava/runtime/util/Matrix.java", "license": "apache-2.0", "size": 7498 }
[ "java.io.PrintStream" ]
import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
1,837,926
public void select(final List list, final String item) { Display.syncExec(new Runnable() {
void function(final List list, final String item) { Display.syncExec(new Runnable() {
/** * Gets item specified by text from specified {@link List}. * Previously selected item(s) is/are deselected. * * @param list list to handle * @param item item to select */
Gets item specified by text from specified <code>List</code>. Previously selected item(s) is/are deselected
select
{ "repo_name": "jboss-reddeer/reddeer", "path": "plugins/org.eclipse.reddeer.core/src/org/eclipse/reddeer/core/handler/ListHandler.java", "license": "epl-1.0", "size": 6549 }
[ "org.eclipse.reddeer.common.util.Display", "org.eclipse.swt.widgets.List" ]
import org.eclipse.reddeer.common.util.Display; import org.eclipse.swt.widgets.List;
import org.eclipse.reddeer.common.util.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.reddeer", "org.eclipse.swt" ]
org.eclipse.reddeer; org.eclipse.swt;
2,352,977
public ServiceFuture<ConnectionMonitorQueryResultInner> queryAsync(String resourceGroupName, String networkWatcherName, String connectionMonitorName, final ServiceCallback<ConnectionMonitorQueryResultInner> serviceCallback) { return ServiceFuture.fromResponse(queryWithServiceResponseAsync(resourceGroupName,...
ServiceFuture<ConnectionMonitorQueryResultInner> function(String resourceGroupName, String networkWatcherName, String connectionMonitorName, final ServiceCallback<ConnectionMonitorQueryResultInner> serviceCallback) { return ServiceFuture.fromResponse(queryWithServiceResponseAsync(resourceGroupName, networkWatcherName, ...
/** * Query a snapshot of the most recent connection states. * * @param resourceGroupName The name of the resource group containing Network Watcher. * @param networkWatcherName The name of the Network Watcher resource. * @param connectionMonitorName The name given to the connection monitor. ...
Query a snapshot of the most recent connection states
queryAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/network/v2019_08_01/implementation/ConnectionMonitorsInner.java", "license": "mit", "size": 85637 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
572,236