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 float get_float() throws TypeMismatch, InvalidValue { throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE); }
float function() throws TypeMismatch, InvalidValue { throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE); }
/** * The remote call of DynAny methods is not possible. * * @throws MARSHAL, always. */
The remote call of DynAny methods is not possible
get_float
{ "repo_name": "selmentdev/selment-toolchain", "path": "source/gcc-latest/libjava/classpath/org/omg/DynamicAny/_DynEnumStub.java", "license": "gpl-3.0", "size": 15592 }
[ "org.omg.DynamicAny" ]
import org.omg.DynamicAny;
import org.omg.*;
[ "org.omg" ]
org.omg;
899,847
public Collection<JID> getOwners();
Collection<JID> function();
/** * Returns a collection with the current list of owners. The collection contains the bareJID of * the users with owner affiliation. * * @return a collection with the current list of owners. */
Returns a collection with the current list of owners. The collection contains the bareJID of the users with owner affiliation
getOwners
{ "repo_name": "qyj415/openfire", "path": "src/java/org/jivesoftware/openfire/muc/MUCRoom.java", "license": "apache-2.0", "size": 42794 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,459,150
public static ResourceLocator ofClasspathUrl(URL url) { ArgChecker.notNull(url, "url"); String locator = CLASSPATH_URL_PREFIX + url.toString(); return new ResourceLocator(locator, UriByteSource.of(url)); }
static ResourceLocator function(URL url) { ArgChecker.notNull(url, "url"); String locator = CLASSPATH_URL_PREFIX + url.toString(); return new ResourceLocator(locator, UriByteSource.of(url)); }
/** * Creates a resource from a {@code URL}. * * @param url the URL to wrap * @return the resource locator */
Creates a resource from a URL
ofClasspathUrl
{ "repo_name": "OpenGamma/Strata", "path": "modules/collect/src/main/java/com/opengamma/strata/collect/io/ResourceLocator.java", "license": "apache-2.0", "size": 9302 }
[ "com.opengamma.strata.collect.ArgChecker" ]
import com.opengamma.strata.collect.ArgChecker;
import com.opengamma.strata.collect.*;
[ "com.opengamma.strata" ]
com.opengamma.strata;
336,844
public void startCallRecording(final String filenameOrUrl, final String format, final String publicKey, final String publicKeyUri) { LOG.info(this + "->startCallRecording(\"" + filenameOrUrl + "\",\"" + format + "\",\"" + publicKey + "\",\"" + publicKeyUri + "\")"); assertReady("startCallRecordi...
void function(final String filenameOrUrl, final String format, final String publicKey, final String publicKeyUri) { LOG.info(this + STRSTR\",\"STR\",\"STR\",\"STR\")"); assertReady(STR, State.ANSWERED); if (notEmpty(filenameOrUrl)) { final Properties props = buildCallRecordingProperties(format, publicKey, publicKeyUri)...
/** * format: audio/wav, audio/gsm, audio/au */
format: audio/wav, audio/gsm, audio/au
startCallRecording
{ "repo_name": "tropo/tropo-servlet", "path": "core/SimpleCall.java", "license": "lgpl-2.1", "size": 25058 }
[ "com.mot.mrcp.MrcpException", "java.util.Properties" ]
import com.mot.mrcp.MrcpException; import java.util.Properties;
import com.mot.mrcp.*; import java.util.*;
[ "com.mot.mrcp", "java.util" ]
com.mot.mrcp; java.util;
1,202,451
public void zoomRange(double lowerPercent, double upperPercent) { double start = this.timeline.toTimelineValue( (long) getRange().getLowerBound() ); double length = (this.timeline.toTimelineValue( (long) getRange().getUpperBound()) - this.tim...
void function(double lowerPercent, double upperPercent) { double start = this.timeline.toTimelineValue( (long) getRange().getLowerBound() ); double length = (this.timeline.toTimelineValue( (long) getRange().getUpperBound()) - this.timeline.toTimelineValue( (long) getRange().getLowerBound())); Range adjusted = null; if ...
/** * Zooms in on the current range. * * @param lowerPercent the new lower bound. * @param upperPercent the new upper bound. */
Zooms in on the current range
zoomRange
{ "repo_name": "integrated/jfreechart", "path": "source/org/jfree/chart/axis/DateAxis.java", "license": "lgpl-2.1", "size": 74495 }
[ "org.jfree.data.Range", "org.jfree.data.time.DateRange" ]
import org.jfree.data.Range; import org.jfree.data.time.DateRange;
import org.jfree.data.*; import org.jfree.data.time.*;
[ "org.jfree.data" ]
org.jfree.data;
1,184,386
public TPHandles identifyTPHandles(PetrinetGraph net) { // result TPHandles result = new TPHandles(); // temp variables Set<Transition> transitionToBeCheckedAsStart = new HashSet<Transition>(); Set<Place> placesToBeCheckedAsSink = new HashSet<Place>(); // identify all transitions which has outg...
TPHandles function(PetrinetGraph net) { TPHandles result = new TPHandles(); Set<Transition> transitionToBeCheckedAsStart = new HashSet<Transition>(); Set<Place> placesToBeCheckedAsSink = new HashSet<Place>(); for (Transition trans : net.getTransitions()) { Collection<PetrinetEdge<? extends PetrinetNode, ? extends Petri...
/** * Main method to identify T-P Handles in a net. TPHandles are in form of * pair of Transition-Place * * * net to be analyzed * @return TPHandles T-P Handle in the net */
Main method to identify T-P Handles in a net. TPHandles are in form of pair of Transition-Place net to be analyzed
identifyTPHandles
{ "repo_name": "imatesiu/ReaderBpmn", "path": "src/main/java/petrinet/structuralanalysis/TPHandlesGenerator.java", "license": "gpl-3.0", "size": 7405 }
[ "java.util.Collection", "java.util.HashSet", "java.util.Set" ]
import java.util.Collection; import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,613,639
public String openStatFileDialog(int type) { Shell shell = new Shell(); FileDialog dialog = new FileDialog(shell, type); dialog.setFilterPath(DirectoryService.getUserHomeDir()); dialog.setFilterExtensions(new String[] { "*.bin" }); //limits the eligible files to *.bin files ...
String function(int type) { Shell shell = new Shell(); FileDialog dialog = new FileDialog(shell, type); dialog.setFilterPath(DirectoryService.getUserHomeDir()); dialog.setFilterExtensions(new String[] { "*.bin" }); dialog.setFilterNames(new String[] { STR }); dialog.setOverwrite(true); return dialog.open(); }
/** * opening file for input statistics * @param type * @return the choosen statistics .bin file path */
opening file for input statistics
openStatFileDialog
{ "repo_name": "jcryptool/crypto", "path": "org.jcryptool.analysis.fleissner/src/org/jcryptool/analysis/fleissner/UI/LoadFiles.java", "license": "epl-1.0", "size": 8315 }
[ "org.eclipse.swt.widgets.FileDialog", "org.eclipse.swt.widgets.Shell", "org.jcryptool.core.util.directories.DirectoryService" ]
import org.eclipse.swt.widgets.FileDialog; import org.eclipse.swt.widgets.Shell; import org.jcryptool.core.util.directories.DirectoryService;
import org.eclipse.swt.widgets.*; import org.jcryptool.core.util.directories.*;
[ "org.eclipse.swt", "org.jcryptool.core" ]
org.eclipse.swt; org.jcryptool.core;
997,099
public SqlContainerGetResultsInner withResource(SqlContainerGetPropertiesResource resource) { this.resource = resource; return this; }
SqlContainerGetResultsInner function(SqlContainerGetPropertiesResource resource) { this.resource = resource; return this; }
/** * Set the resource value. * * @param resource the resource value to set * @return the SqlContainerGetResultsInner object itself. */
Set the resource value
withResource
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_03_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_03_01/implementation/SqlContainerGetResultsInner.java", "license": "mit", "size": 2115 }
[ "com.microsoft.azure.management.cosmosdb.v2020_03_01.SqlContainerGetPropertiesResource" ]
import com.microsoft.azure.management.cosmosdb.v2020_03_01.SqlContainerGetPropertiesResource;
import com.microsoft.azure.management.cosmosdb.v2020_03_01.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
2,527,055
public QueueBrowser createQueueBrowser(ChannelID queueID) throws JMSException { ArgumentNotValid.checkNotNull(queueID, "ChannelID queueID"); Queue queue = getQueueSession().createQueue(queueID.getName()); return getQueueSession().createBrowser(queue); }
QueueBrowser function(ChannelID queueID) throws JMSException { ArgumentNotValid.checkNotNull(queueID, STR); Queue queue = getQueueSession().createQueue(queueID.getName()); return getQueueSession().createBrowser(queue); }
/** * Creates a QueueBrowser object to peek at the messages on the specified * queue. * @param queueID The ChannelID for a specified queue. * @return A new QueueBrowser instance with access to the specified queue * @throws JMSException * If unable to create the specified queue ...
Creates a QueueBrowser object to peek at the messages on the specified queue
createQueueBrowser
{ "repo_name": "netarchivesuite/netarchivesuite-svngit-migration", "path": "src/dk/netarkivet/common/distribute/JMSConnection.java", "license": "lgpl-2.1", "size": 28319 }
[ "dk.netarkivet.common.exceptions.ArgumentNotValid", "javax.jms.JMSException", "javax.jms.Queue", "javax.jms.QueueBrowser" ]
import dk.netarkivet.common.exceptions.ArgumentNotValid; import javax.jms.JMSException; import javax.jms.Queue; import javax.jms.QueueBrowser;
import dk.netarkivet.common.exceptions.*; import javax.jms.*;
[ "dk.netarkivet.common", "javax.jms" ]
dk.netarkivet.common; javax.jms;
2,771,257
@Override public T visitIfcondition(@NotNull Form2Parser.IfconditionContext ctx) { return visitChildren(ctx); }
@Override public T visitIfcondition(@NotNull Form2Parser.IfconditionContext ctx) { return visitChildren(ctx); }
/** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */
The default implementation returns the result of calling <code>#visitChildren</code> on ctx
visitPlusExpr
{ "repo_name": "software-engineering-amsterdam/poly-ql", "path": "skatt/QL/gen/Form2/Form2BaseVisitor.java", "license": "apache-2.0", "size": 5103 }
[ "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;
2,692,995
@Deployment public void testVariableUpdateOrderHistoricTaskInstance() throws Exception { ProcessInstance processInstance = runtimeService.startProcessInstanceByKey("historicTask"); org.flowable.task.api.Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleRe...
void function() throws Exception { ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(STR); org.flowable.task.api.Task task = taskService.createTaskQuery().processInstanceId(processInstance.getId()).singleResult(); assertNotNull(task); for (int i = 0; i < 10; i++) { taskService.setVariableLocal(...
/** * Test to validate fix for ACT-1939: HistoryService loads invalid task local variables for completed task */
Test to validate fix for ACT-1939: HistoryService loads invalid task local variables for completed task
testVariableUpdateOrderHistoricTaskInstance
{ "repo_name": "lsmall/flowable-engine", "path": "modules/flowable5-test/src/test/java/org/activiti/engine/test/history/HistoricTaskInstanceTest.java", "license": "apache-2.0", "size": 40418 }
[ "org.flowable.engine.runtime.ProcessInstance", "org.flowable.task.api.history.HistoricTaskInstance" ]
import org.flowable.engine.runtime.ProcessInstance; import org.flowable.task.api.history.HistoricTaskInstance;
import org.flowable.engine.runtime.*; import org.flowable.task.api.history.*;
[ "org.flowable.engine", "org.flowable.task" ]
org.flowable.engine; org.flowable.task;
1,256,044
public void setBuilder(final OperationInvocationBuilder<E> builder) { this.builder = builder; }
void function(final OperationInvocationBuilder<E> builder) { this.builder = builder; }
/** * Sets a new value for the builder field. * * @param builder * The new value for the builder field. */
Sets a new value for the builder field
setBuilder
{ "repo_name": "lunarray-org/model-gen-swing", "path": "src/main/java/org/lunarray/model/generation/swing/render/factories/form/swing/components/OperationOutputStrategy.java", "license": "lgpl-3.0", "size": 7358 }
[ "org.lunarray.model.descriptor.util.OperationInvocationBuilder" ]
import org.lunarray.model.descriptor.util.OperationInvocationBuilder;
import org.lunarray.model.descriptor.util.*;
[ "org.lunarray.model" ]
org.lunarray.model;
1,242,937
private void validateDateTimeFormat(String dateTimeLoadFormat, String dateTimeLoadOption) throws InvalidLoadOptionException { // allowing empty value to be configured for dateformat option. if (dateTimeLoadFormat != null && !dateTimeLoadFormat.trim().equalsIgnoreCase("")) { try { new Simpl...
void function(String dateTimeLoadFormat, String dateTimeLoadOption) throws InvalidLoadOptionException { if (dateTimeLoadFormat != null && !dateTimeLoadFormat.trim().equalsIgnoreCase(STRError: Wrong option: STR is provided for option " + dateTimeLoadOption); } } }
/** * validates both timestamp and date for illegal values */
validates both timestamp and date for illegal values
validateDateTimeFormat
{ "repo_name": "jatin9896/incubator-carbondata", "path": "processing/src/main/java/org/apache/carbondata/processing/loading/model/CarbonLoadModelBuilder.java", "license": "apache-2.0", "size": 16915 }
[ "org.apache.carbondata.common.exceptions.sql.InvalidLoadOptionException" ]
import org.apache.carbondata.common.exceptions.sql.InvalidLoadOptionException;
import org.apache.carbondata.common.exceptions.sql.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
396,374
private Collection<String> normalize(final Collection<String> rackNames, final boolean validateEnd) { final List<String> normalizedRackNames = new ArrayList<>(rackNames.size()); final Iterator<String> it = rackNames.iterator(); while (it.hasNext()) { String rackName = it.next().trim(); V...
Collection<String> function(final Collection<String> rackNames, final boolean validateEnd) { final List<String> normalizedRackNames = new ArrayList<>(rackNames.size()); final Iterator<String> it = rackNames.iterator(); while (it.hasNext()) { String rackName = it.next().trim(); Validate.notEmpty(rackName, STR); if (!rac...
/** * Normalizes the rack names. * * @param rackNames * the rack names to normalize * @param validateEnd * if true, throws an exception if the name ends with ANY (*) * @return a normalized collection */
Normalizes the rack names
normalize
{ "repo_name": "taegeonum/incubator-reef", "path": "lang/java/reef-runtime-local/src/main/java/org/apache/reef/runtime/local/driver/ContainerManager.java", "license": "apache-2.0", "size": 16500 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Iterator", "java.util.List", "org.apache.commons.lang.Validate" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; import java.util.List; import org.apache.commons.lang.Validate;
import java.util.*; import org.apache.commons.lang.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
768,997
public boolean renewToken(String tokenId, String issuerAddress, Policy issuerPolicy, TokenStorage store) throws TrustException { try { QName rstQn = new QName("requestSecurityToken"); ServiceClient client = getServiceClien...
boolean function(String tokenId, String issuerAddress, Policy issuerPolicy, TokenStorage store) throws TrustException { try { QName rstQn = new QName(STR); ServiceClient client = getServiceClient(rstQn, issuerAddress); client.getServiceContext().setProperty(RAMPART_POLICY, issuerPolicy); client.getOptions().setSoapVers...
/** * Renews the token referenced by the token id, updates the token store * @param tokenId * @param issuerAddress * @param issuerPolicy * @param store * @return status * @throws TrustException */
Renews the token referenced by the token id, updates the token store
renewToken
{ "repo_name": "pulasthi7/wso2-rampart", "path": "modules/rampart-trust/src/main/java/org/apache/rahas/client/STSClient.java", "license": "apache-2.0", "size": 39953 }
[ "javax.xml.namespace.QName", "org.apache.axiom.om.OMElement", "org.apache.axis2.AxisFault", "org.apache.axis2.addressing.AddressingConstants", "org.apache.axis2.client.ServiceClient", "org.apache.neethi.Policy", "org.apache.rahas.RahasConstants", "org.apache.rahas.TokenStorage", "org.apache.rahas.Tr...
import javax.xml.namespace.QName; import org.apache.axiom.om.OMElement; import org.apache.axis2.AxisFault; import org.apache.axis2.addressing.AddressingConstants; import org.apache.axis2.client.ServiceClient; import org.apache.neethi.Policy; import org.apache.rahas.RahasConstants; import org.apache.rahas.TokenStorage; ...
import javax.xml.namespace.*; import org.apache.axiom.om.*; import org.apache.axis2.*; import org.apache.axis2.addressing.*; import org.apache.axis2.client.*; import org.apache.neethi.*; import org.apache.rahas.*;
[ "javax.xml", "org.apache.axiom", "org.apache.axis2", "org.apache.neethi", "org.apache.rahas" ]
javax.xml; org.apache.axiom; org.apache.axis2; org.apache.neethi; org.apache.rahas;
2,515,255
public Checkbox findCheckbox(By by) { try { return new CheckboxImpl(this, by); } catch (NoSuchElementException nse) { TestReporter.logFailure("No such Checkbox with context: " + by.toString()); throw new NoSuchElementException(nse.getMessage()); } }
Checkbox function(By by) { try { return new CheckboxImpl(this, by); } catch (NoSuchElementException nse) { TestReporter.logFailure(STR + by.toString()); throw new NoSuchElementException(nse.getMessage()); } }
/** * Method to find a single Checkbox for a given page, using a Selenium <b><i>By</i></b> locator * @param by - Selenium <b><i>By</i></b> locator with which to locate the Checkbox * @return Checkbox, if any, found by using the Selenium <b><i>By</i></b> locator * @see ://selenium.googlecode.com/svn/trunk/docs/a...
Method to find a single Checkbox for a given page, using a Selenium By locator
findCheckbox
{ "repo_name": "Orasi/java-automation-bs", "path": "src/main/java/com/orasi/utils/OrasiDriver.java", "license": "bsd-3-clause", "size": 42190 }
[ "com.orasi.core.interfaces.Checkbox", "com.orasi.core.interfaces.impl.CheckboxImpl", "org.openqa.selenium.By", "org.openqa.selenium.NoSuchElementException" ]
import com.orasi.core.interfaces.Checkbox; import com.orasi.core.interfaces.impl.CheckboxImpl; import org.openqa.selenium.By; import org.openqa.selenium.NoSuchElementException;
import com.orasi.core.interfaces.*; import com.orasi.core.interfaces.impl.*; import org.openqa.selenium.*;
[ "com.orasi.core", "org.openqa.selenium" ]
com.orasi.core; org.openqa.selenium;
2,816,878
public void setNavigationBarTintEnabled(boolean enabled) { mNavBarTintEnabled = enabled; if (mNavBarAvailable) { mNavBarTintView.setVisibility(enabled ? View.VISIBLE : View.GONE); } }
void function(boolean enabled) { mNavBarTintEnabled = enabled; if (mNavBarAvailable) { mNavBarTintView.setVisibility(enabled ? View.VISIBLE : View.GONE); } }
/** * Enable tinting of the system navigation bar. * * @param enabled * True to enable tinting, false to disable it (default). */
Enable tinting of the system navigation bar
setNavigationBarTintEnabled
{ "repo_name": "sosoyiyi/ucan", "path": "src/com/ucan/app/common/view/SystemBarTintManager.java", "license": "gpl-2.0", "size": 18086 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,071,290
@NonNull @CheckResult @Override public Completable asRxCompletable() { return RxJavaUtils.createCompletable(storIOContentResolver, this); }
Completable function() { return RxJavaUtils.createCompletable(storIOContentResolver, this); }
/** * Creates {@link Completable} which will perform Put Operation lazily when somebody subscribes to it. * <dl> * <dt><b>Scheduler:</b></dt> * <dd>Operates on {@link StorIOContentResolver#defaultRxScheduler()} if not {@code null}.</dd> * </dl> * * @return non-null {@link Completable}...
Creates <code>Completable</code> which will perform Put Operation lazily when somebody subscribes to it. Scheduler: Operates on <code>StorIOContentResolver#defaultRxScheduler()</code> if not null.
asRxCompletable
{ "repo_name": "pushtorefresh/storio", "path": "storio-content-resolver/src/main/java/com/pushtorefresh/storio3/contentresolver/operations/put/PreparedPutObject.java", "license": "apache-2.0", "size": 6564 }
[ "com.pushtorefresh.storio3.contentresolver.operations.internal.RxJavaUtils", "io.reactivex.Completable" ]
import com.pushtorefresh.storio3.contentresolver.operations.internal.RxJavaUtils; import io.reactivex.Completable;
import com.pushtorefresh.storio3.contentresolver.operations.internal.*; import io.reactivex.*;
[ "com.pushtorefresh.storio3", "io.reactivex" ]
com.pushtorefresh.storio3; io.reactivex;
2,013,786
public static void extractEndpoints(String key, Properties endpoints, AbstractEndpoint endpoint) { // Wrapper processing if (endpoints.containsKey(key + "." + Constants.ENDPOINT_PROPS_WRAPPERS)) { String value = endpoints.getProperty(key + "." + Constants.ENDPOINT_PROPS_WRAPPERS); ...
static void function(String key, Properties endpoints, AbstractEndpoint endpoint) { if (endpoints.containsKey(key + "." + Constants.ENDPOINT_PROPS_WRAPPERS)) { String value = endpoints.getProperty(key + "." + Constants.ENDPOINT_PROPS_WRAPPERS); endpoint.setProcessingWrappers(MessageHelper.strToBool(value)); log.info(Co...
/** * Extracts properties common for both consumer and provider endpoints from * the given properties. * * @param key property key * @param endpoints list of configured endpoints read from properties * @param endpoint the endpoint object that's being initialized */
Extracts properties common for both consumer and provider endpoints from the given properties
extractEndpoints
{ "repo_name": "vrk-kpa/REST-adapter-service", "path": "src/src/main/java/fi/vrk/xroad/restadapterservice/util/RESTGatewayUtil.java", "license": "mit", "size": 17304 }
[ "fi.vrk.xrd4j.common.util.MessageHelper", "fi.vrk.xroad.restadapterservice.endpoint.AbstractEndpoint", "java.util.Properties" ]
import fi.vrk.xrd4j.common.util.MessageHelper; import fi.vrk.xroad.restadapterservice.endpoint.AbstractEndpoint; import java.util.Properties;
import fi.vrk.xrd4j.common.util.*; import fi.vrk.xroad.restadapterservice.endpoint.*; import java.util.*;
[ "fi.vrk.xrd4j", "fi.vrk.xroad", "java.util" ]
fi.vrk.xrd4j; fi.vrk.xroad; java.util;
610,316
public void setFees(List<AssetAmount> fees){ for(int i = 0; i < operations.size(); i++) operations.get(i).setFee(fees.get(i)); }
void function(List<AssetAmount> fees){ for(int i = 0; i < operations.size(); i++) operations.get(i).setFee(fees.get(i)); }
/** * Updates the fees for all operations in this transaction. * @param fees: New fees to apply */
Updates the fees for all operations in this transaction
setFees
{ "repo_name": "hvarona/smartcoins-wallet", "path": "app/src/main/java/de/bitsharesmunich/graphenej/Transaction.java", "license": "mit", "size": 8896 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,893,888
static public ClaimList getClaimList() { if(claimList == null){ claimList = FileManager.getSaver().loadClaimLFromFile(); claimList.sort(); claimList.setListeners(); claimList.addListener(new Listener() {
static ClaimList function() { if(claimList == null){ claimList = FileManager.getSaver().loadClaimLFromFile(); claimList.sort(); claimList.setListeners(); claimList.addListener(new Listener() {
/** * Returns the global application claimList * * If claimList is null it will load the claimList from the android file system * and returns claimList * * @return the application claimList */
Returns the global application claimList If claimList is null it will load the claimList from the android file system and returns claimList
getClaimList
{ "repo_name": "CMPUT301W15T15/TravelClaimsApp", "path": "TravelClaimsApp/src/com/cmput301w15t15/travelclaimsapp/ClaimListController.java", "license": "gpl-3.0", "size": 9704 }
[ "com.cmput301w15t15.travelclaimsapp.model.ClaimList", "com.cmput301w15t15.travelclaimsapp.model.Listener" ]
import com.cmput301w15t15.travelclaimsapp.model.ClaimList; import com.cmput301w15t15.travelclaimsapp.model.Listener;
import com.cmput301w15t15.travelclaimsapp.model.*;
[ "com.cmput301w15t15.travelclaimsapp" ]
com.cmput301w15t15.travelclaimsapp;
1,072,236
public static void updateRoomLock(LocalMUCRoom room) { if (!room.isPersistent() || !room.wasSavedToDB()) { return; } Connection con = null; PreparedStatement pstmt = null; try { con = DbConnectionManager.getConnection(); pstmt = c...
static void function(LocalMUCRoom room) { if (!room.isPersistent() !room.wasSavedToDB()) { return; } Connection con = null; PreparedStatement pstmt = null; try { con = DbConnectionManager.getConnection(); pstmt = con.prepareStatement(UPDATE_LOCK); pstmt.setString(1, StringUtils.dateToMillis(room.getLockedDate())); pstm...
/** * Updates the room's lock status in the database. * * @param room the room to update its lock status in the database. */
Updates the room's lock status in the database
updateRoomLock
{ "repo_name": "eraserx99/OF", "path": "src/java/org/jivesoftware/openfire/muc/spi/MUCPersistenceManager.java", "license": "apache-2.0", "size": 56913 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.SQLException", "org.jivesoftware.database.DbConnectionManager", "org.jivesoftware.util.StringUtils" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import org.jivesoftware.database.DbConnectionManager; import org.jivesoftware.util.StringUtils;
import java.sql.*; import org.jivesoftware.database.*; import org.jivesoftware.util.*;
[ "java.sql", "org.jivesoftware.database", "org.jivesoftware.util" ]
java.sql; org.jivesoftware.database; org.jivesoftware.util;
662,370
private void buildResponseOnAuthenticateFailure(RequestContext context, AbstractResponse response) { authenticationFailureSend = context.buildResponse(response); }
void function(RequestContext context, AbstractResponse response) { authenticationFailureSend = context.buildResponse(response); }
/** * Build a {@link Send} response on {@link #authenticate()} failure. The actual response is sent out when * {@link #sendAuthenticationFailureResponse()} is called. */
Build a <code>Send</code> response on <code>#authenticate()</code> failure. The actual response is sent out when <code>#sendAuthenticationFailureResponse()</code> is called
buildResponseOnAuthenticateFailure
{ "repo_name": "mihbor/kafka", "path": "clients/src/main/java/org/apache/kafka/common/security/authenticator/SaslServerAuthenticator.java", "license": "apache-2.0", "size": 26991 }
[ "org.apache.kafka.common.requests.AbstractResponse", "org.apache.kafka.common.requests.RequestContext" ]
import org.apache.kafka.common.requests.AbstractResponse; import org.apache.kafka.common.requests.RequestContext;
import org.apache.kafka.common.requests.*;
[ "org.apache.kafka" ]
org.apache.kafka;
1,033,558
public DoublesPair[] getExpiryStrikeArray() { DoublesPair[] res = new DoublesPair[_nCaplets]; for (int i = 0; i < _nCaplets; i++) { SimpleOptionData option = _capletsArray[i]; res[i] = DoublesPair.of(option.getTimeToExpiry(), option.getStrike()); } return res; }
DoublesPair[] function() { DoublesPair[] res = new DoublesPair[_nCaplets]; for (int i = 0; i < _nCaplets; i++) { SimpleOptionData option = _capletsArray[i]; res[i] = DoublesPair.of(option.getTimeToExpiry(), option.getStrike()); } return res; }
/** * get an array of expiry-strike values (as a {@link DoublesPair} of the underlying caplets. These are order by * (ascending) order of fixing time, then by (ascending) order of strike. * @return DoublesPair of caplet expiry and strike */
get an array of expiry-strike values (as a <code>DoublesPair</code> of the underlying caplets. These are order by (ascending) order of fixing time, then by (ascending) order of strike
getExpiryStrikeArray
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/interestrate/capletstripping/MultiCapFloorPricer.java", "license": "apache-2.0", "size": 17653 }
[ "com.opengamma.analytics.financial.model.volatility.SimpleOptionData", "com.opengamma.util.tuple.DoublesPair" ]
import com.opengamma.analytics.financial.model.volatility.SimpleOptionData; import com.opengamma.util.tuple.DoublesPair;
import com.opengamma.analytics.financial.model.volatility.*; import com.opengamma.util.tuple.*;
[ "com.opengamma.analytics", "com.opengamma.util" ]
com.opengamma.analytics; com.opengamma.util;
2,871,029
public JspPropertyGroupType<T> removeIsXml() { childNode.removeChildren("is-xml"); return this; } // --------------------------------------------------------------------------------------------------------|| // ClassName: JspPropertyGroupType ElementName: xsd:token ElementType : include-pr...
JspPropertyGroupType<T> function() { childNode.removeChildren(STR); return this; }
/** * Removes the <code>is-xml</code> element * @return the current instance of <code>JspPropertyGroupType<T></code> */
Removes the <code>is-xml</code> element
removeIsXml
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/jsp21/JspPropertyGroupTypeImpl.java", "license": "epl-1.0", "size": 21354 }
[ "org.jboss.shrinkwrap.descriptor.api.jsp21.JspPropertyGroupType" ]
import org.jboss.shrinkwrap.descriptor.api.jsp21.JspPropertyGroupType;
import org.jboss.shrinkwrap.descriptor.api.jsp21.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
2,538,461
@Override public final EnterCallback getEnterCallback() { return ENTER_PROPERTY_HANDLER.getCallback(this, defaultValues.getEnterCallback()); }
final EnterCallback function() { return ENTER_PROPERTY_HANDLER.getCallback(this, defaultValues.getEnterCallback()); }
/** * Returns the callback called when a "enter" event is occurring. * * @return the callback called when a "enter" event is occurring */
Returns the callback called when a "enter" event is occurring
getEnterCallback
{ "repo_name": "pepstock-org/Charba", "path": "src/org/pepstock/charba/client/annotation/AbstractAnnotation.java", "license": "apache-2.0", "size": 41191 }
[ "org.pepstock.charba.client.annotation.listeners.EnterCallback" ]
import org.pepstock.charba.client.annotation.listeners.EnterCallback;
import org.pepstock.charba.client.annotation.listeners.*;
[ "org.pepstock.charba" ]
org.pepstock.charba;
1,030,179
public static String formatDateTime(Date date) { StringBuilder b = new StringBuilder(24); GregorianCalendar cal = XSD_CALENDAR.get(); cal.setTime(date); int value; // Year-Month-Day value = cal.get(GregorianCalendar.YEAR); b.append(value); ...
static String function(Date date) { StringBuilder b = new StringBuilder(24); GregorianCalendar cal = XSD_CALENDAR.get(); cal.setTime(date); int value; value = cal.get(GregorianCalendar.YEAR); b.append(value); b.append('-'); value = cal.get(GregorianCalendar.MONTH) + 1; if (value < 10) { b.append('0'); } b.append(value)...
/** * Convert the given date to string. * Always contains the milliseconds and timezone. * @param date the date, not null * @return the formatted date */
Convert the given date to string. Always contains the milliseconds and timezone
formatDateTime
{ "repo_name": "akarnokd/open-ig", "path": "src/hu/openig/utils/XElement.java", "license": "lgpl-3.0", "size": 39601 }
[ "java.util.Date", "java.util.GregorianCalendar" ]
import java.util.Date; import java.util.GregorianCalendar;
import java.util.*;
[ "java.util" ]
java.util;
1,956,249
public char skipTo(char to) throws JSONException { char c; try { long startIndex = this.index; long startCharacter = this.character; long startLine = this.line; this.reader.mark(1000000); do { c = this.next(); ...
char function(char to) throws JSONException { char c; try { long startIndex = this.index; long startCharacter = this.character; long startLine = this.line; this.reader.mark(1000000); do { c = this.next(); if (c == 0) { this.reader.reset(); this.index = startIndex; this.character = startCharacter; this.line = startLine;...
/** * Skip characters until the next character is the requested character. * If the requested character is not found, no characters are skipped. * @param to A character to skip to. * @return The requested character, or zero if the requested character * is not found. */
Skip characters until the next character is the requested character. If the requested character is not found, no characters are skipped
skipTo
{ "repo_name": "aRandomDecoy/MMSS-Module", "path": "org/json/JSONTokener.java", "license": "lgpl-3.0", "size": 14032 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
585,563
public void pad(int width) throws IOException { int gap = (int)this.nrBits % width; if (gap < 0) { gap += width; } if (gap != 0) { int padding = width - gap; while (padding > 0) { this.zero(); padding -= 1; ...
void function(int width) throws IOException { int gap = (int)this.nrBits % width; if (gap < 0) { gap += width; } if (gap != 0) { int padding = width - gap; while (padding > 0) { this.zero(); padding -= 1; } } this.out.flush(); }
/** * Pad the rest of the block with zeros and flush. pad(8) flushes the last * unfinished byte. The underlying OutputStream will be flushed. * * @param width * The size of the block to pad in bits. * This will typically be 8, 16, 32, 64, 128, 256, etc. * @throws...
Pad the rest of the block with zeros and flush. pad(8) flushes the last unfinished byte. The underlying OutputStream will be flushed
pad
{ "repo_name": "klamborowski/JacksonGenerator", "path": "src/org/json/zip/BitOutputStream.java", "license": "mit", "size": 4344 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,461,508
final TestProcessor testProcessor = new TestProcessor(); testProcessor.getInputMapperBiMap().put("pqr", "prop"); Configuration configuration = new Configuration(); List<Throwable> errors = Lists.newArrayList(); testProcessor.validate(errors, configuration); assertTrue(errors....
final TestProcessor testProcessor = new TestProcessor(); testProcessor.getInputMapperBiMap().put("pqr", "prop"); Configuration configuration = new Configuration(); List<Throwable> errors = Lists.newArrayList(); testProcessor.validate(errors, configuration); assertTrue(errors.isEmpty()); testProcessor.getInputMapperBiMa...
/** * This test checks that all the inputMapper mappings have an associated property in the params object. * * @throws Exception */
This test checks that all the inputMapper mappings have an associated property in the params object
testExtraInputMapperMapping
{ "repo_name": "Galigeo/mapfish-print", "path": "core/src/test/java/org/mapfish/print/processor/AbstractProcessorTest.java", "license": "bsd-2-clause", "size": 2517 }
[ "com.google.common.collect.Lists", "java.util.List", "org.junit.Assert", "org.mapfish.print.config.Configuration" ]
import com.google.common.collect.Lists; import java.util.List; import org.junit.Assert; import org.mapfish.print.config.Configuration;
import com.google.common.collect.*; import java.util.*; import org.junit.*; import org.mapfish.print.config.*;
[ "com.google.common", "java.util", "org.junit", "org.mapfish.print" ]
com.google.common; java.util; org.junit; org.mapfish.print;
1,704,679
public void collapseAllParents() { for (ParentListItem parentObject : mParentItemList) { collapseParent(parentObject); } } /** * Calls through to the {@link ParentViewHolder} to expand views for each * {@link RecyclerView} a specified parent is a child of. These calls ...
void function() { for (ParentListItem parentObject : mParentItemList) { collapseParent(parentObject); } } /** * Calls through to the {@link ParentViewHolder} to expand views for each * {@link RecyclerView} a specified parent is a child of. These calls to * the {@code ParentViewHolder} are made so that animations can be...
/** * Collapses all parents in the list. */
Collapses all parents in the list
collapseAllParents
{ "repo_name": "captain-miao/bleYan", "path": "example/src/main/java/com/github/captain_miao/android/bluetoothletutorial/expandablerecyclerview/ExpandableRecyclerAdapter2.java", "license": "gpl-2.0", "size": 22915 }
[ "android.support.v7.widget.RecyclerView", "com.bignerdranch.expandablerecyclerview.Model", "com.bignerdranch.expandablerecyclerview.ViewHolder" ]
import android.support.v7.widget.RecyclerView; import com.bignerdranch.expandablerecyclerview.Model; import com.bignerdranch.expandablerecyclerview.ViewHolder;
import android.support.v7.widget.*; import com.bignerdranch.expandablerecyclerview.*;
[ "android.support", "com.bignerdranch.expandablerecyclerview" ]
android.support; com.bignerdranch.expandablerecyclerview;
1,399,830
@Test public void bookmarkablePageDecrypt2() { String encryptedExtraSegments = "/i87b7/i87b7"; Request request = getRequest(Url.parse(ENCRYPTED_BOOKMARKABLE_URL + encryptedExtraSegments)); IRequestHandler requestHandler = mapper.mapRequest(request); assertNotNull(requestHandler); requestHandler = unwrap...
void function() { String encryptedExtraSegments = STR; Request request = getRequest(Url.parse(ENCRYPTED_BOOKMARKABLE_URL + encryptedExtraSegments)); IRequestHandler requestHandler = mapper.mapRequest(request); assertNotNull(requestHandler); requestHandler = unwrapRequestHandlerDelegate(requestHandler); assertTrue(reque...
/** * https://issues.apache.org/jira/browse/WICKET-6131 * * Tests that encrypted URLs for bookmarkable pages are decrypted and passed to the wrapped mapper. * Extra segments should be ignored. */
HREF Tests that encrypted URLs for bookmarkable pages are decrypted and passed to the wrapped mapper. Extra segments should be ignored
bookmarkablePageDecrypt2
{ "repo_name": "dashorst/wicket", "path": "wicket-core/src/test/java/org/apache/wicket/core/request/mapper/CryptoMapperTest.java", "license": "apache-2.0", "size": 24885 }
[ "org.apache.wicket.core.request.handler.RenderPageRequestHandler", "org.apache.wicket.request.IRequestHandler", "org.apache.wicket.request.Request", "org.apache.wicket.request.Url" ]
import org.apache.wicket.core.request.handler.RenderPageRequestHandler; import org.apache.wicket.request.IRequestHandler; import org.apache.wicket.request.Request; import org.apache.wicket.request.Url;
import org.apache.wicket.core.request.handler.*; import org.apache.wicket.request.*;
[ "org.apache.wicket" ]
org.apache.wicket;
2,267,622
public void createXmlFiles(MdaModel<XmlModel> model, String rootDir) throws NabuccoTransformationException { try { XmlFileCreator fileCreator = new XmlFileCreator(model, rootDir); fileCreator.createFiles(); } catch (ModelException e) { throw new NabuccoTransformat...
void function(MdaModel<XmlModel> model, String rootDir) throws NabuccoTransformationException { try { XmlFileCreator fileCreator = new XmlFileCreator(model, rootDir); fileCreator.createFiles(); } catch (ModelException e) { throw new NabuccoTransformationException(STR, e); } }
/** * Creates .xml files for an XML model. * * @param model * the XML model * @param rootDir * the root directory */
Creates .xml files for an XML model
createXmlFiles
{ "repo_name": "NABUCCO/org.nabucco.framework.generator", "path": "org.nabucco.framework.generator.compiler/src/main/org/nabucco/framework/generator/compiler/transformation/util/file/NabuccoTargetFileCreator.java", "license": "epl-1.0", "size": 4378 }
[ "org.nabucco.framework.generator.compiler.transformation.NabuccoTransformationException", "org.nabucco.framework.mda.model.MdaModel", "org.nabucco.framework.mda.model.ModelException", "org.nabucco.framework.mda.model.xml.XmlModel", "org.nabucco.framework.mda.model.xml.file.XmlFileCreator" ]
import org.nabucco.framework.generator.compiler.transformation.NabuccoTransformationException; import org.nabucco.framework.mda.model.MdaModel; import org.nabucco.framework.mda.model.ModelException; import org.nabucco.framework.mda.model.xml.XmlModel; import org.nabucco.framework.mda.model.xml.file.XmlFileCreator;
import org.nabucco.framework.generator.compiler.transformation.*; import org.nabucco.framework.mda.model.*; import org.nabucco.framework.mda.model.xml.*; import org.nabucco.framework.mda.model.xml.file.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
1,691,056
public Snapshot addSnapshot(Guid snapshotId, String description, SnapshotType snapshotType, VM vm, String memoryVolume, List<DiskImage> disks, ...
Snapshot function(Guid snapshotId, String description, SnapshotType snapshotType, VM vm, String memoryVolume, List<DiskImage> disks, final CompensationContext compensationContext) { return addSnapshot(snapshotId, description, SnapshotStatus.LOCKED, snapshotType, vm, true, memoryVolume, disks, compensationContext); }
/** * Add a new snapshot, saving it to the DB (with compensation). The VM's current configuration (including Disks & * NICs) will be saved in the snapshot.<br> * The snapshot is created in status {@link SnapshotStatus#LOCKED} by default. * * @param snapshotId * The ID for the sn...
Add a new snapshot, saving it to the DB (with compensation). The VM's current configuration (including Disks & NICs) will be saved in the snapshot. The snapshot is created in status <code>SnapshotStatus#LOCKED</code> by default
addSnapshot
{ "repo_name": "eayun/ovirt-engine", "path": "backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/snapshots/SnapshotsManager.java", "license": "apache-2.0", "size": 30572 }
[ "java.util.List", "org.ovirt.engine.core.bll.context.CompensationContext", "org.ovirt.engine.core.common.businessentities.Snapshot", "org.ovirt.engine.core.common.businessentities.storage.DiskImage", "org.ovirt.engine.core.compat.Guid" ]
import java.util.List; import org.ovirt.engine.core.bll.context.CompensationContext; import org.ovirt.engine.core.common.businessentities.Snapshot; import org.ovirt.engine.core.common.businessentities.storage.DiskImage; import org.ovirt.engine.core.compat.Guid;
import java.util.*; import org.ovirt.engine.core.bll.context.*; import org.ovirt.engine.core.common.businessentities.*; import org.ovirt.engine.core.common.businessentities.storage.*; import org.ovirt.engine.core.compat.*;
[ "java.util", "org.ovirt.engine" ]
java.util; org.ovirt.engine;
2,590,626
Device getDevice(DeviceIdentifier deviceId) throws DeviceManagementException;
Device getDevice(DeviceIdentifier deviceId) throws DeviceManagementException;
/** * Returns the device of specified id. * * @param deviceId device Id * @return Device returns null when device is not avaialble. * @throws DeviceManagementException */
Returns the device of specified id
getDevice
{ "repo_name": "milanperera/carbon-device-mgt", "path": "components/device-mgt/org.wso2.carbon.device.mgt.core/src/main/java/org/wso2/carbon/device/mgt/core/service/DeviceManagementProviderService.java", "license": "apache-2.0", "size": 15305 }
[ "org.wso2.carbon.device.mgt.common.Device", "org.wso2.carbon.device.mgt.common.DeviceIdentifier", "org.wso2.carbon.device.mgt.common.DeviceManagementException" ]
import org.wso2.carbon.device.mgt.common.Device; import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceManagementException;
import org.wso2.carbon.device.mgt.common.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
1,849,609
public static void main(String[] args) { // Set English as the default locale. CodeChickenLib(?) has some issues when not using this on some systems. Locale.setDefault(Locale.ENGLISH); // Prefer to use IPv4 System.setProperty("java.net.preferIPv4Stack", "true"); if (args !=...
static void function(String[] args) { Locale.setDefault(Locale.ENGLISH); System.setProperty(STR, "true"); if (args != null) { for (String arg : args) { String[] parts = arg.split("="); if (parts[0].equalsIgnoreCase(STR)) { autoLaunch = parts[1]; } else if (parts[0].equalsIgnoreCase(STR)) { wasUpdated = true; } else if ...
/** * Where the magic happens. * * @param args all the arguments passed in from the command line */
Where the magic happens
main
{ "repo_name": "iarspider/JULauncher", "path": "src/main/java/com/julauncher/App.java", "license": "gpl-3.0", "size": 19207 }
[ "com.julauncher.data.Constants", "com.julauncher.data.Settings", "com.julauncher.gui.SplashScreen", "com.julauncher.utils.HTMLUtils", "com.julauncher.utils.Utils", "java.io.File", "java.util.Locale", "javax.swing.JOptionPane" ]
import com.julauncher.data.Constants; import com.julauncher.data.Settings; import com.julauncher.gui.SplashScreen; import com.julauncher.utils.HTMLUtils; import com.julauncher.utils.Utils; import java.io.File; import java.util.Locale; import javax.swing.JOptionPane;
import com.julauncher.data.*; import com.julauncher.gui.*; import com.julauncher.utils.*; import java.io.*; import java.util.*; import javax.swing.*;
[ "com.julauncher.data", "com.julauncher.gui", "com.julauncher.utils", "java.io", "java.util", "javax.swing" ]
com.julauncher.data; com.julauncher.gui; com.julauncher.utils; java.io; java.util; javax.swing;
720,383
public void deleteAlternates(String idseq_) throws SQLException { String delete; PreparedStatement pstmt = null; try { delete = "delete from sbr.designations_view where ac_idseq = ?"; pstmt = _conn.prepareStatement(delete); pstmt.setSt...
void function(String idseq_) throws SQLException { String delete; PreparedStatement pstmt = null; try { delete = STR; pstmt = _conn.prepareStatement(delete); pstmt.setString(1, idseq_); pstmt.executeUpdate(); pstmt = SQLHelper.closePreparedStatement(pstmt); delete = STR; pstmt = _conn.prepareStatement(delete); pstmt.se...
/** * Delete all Alternates for the AC. * * @param idseq_ the AC database id * @throws SQLException */
Delete all Alternates for the AC
deleteAlternates
{ "repo_name": "NCIP/cadsr-cdecurate", "path": "src/gov/nih/nci/cadsr/cdecurate/database/DBAccess.java", "license": "bsd-3-clause", "size": 56715 }
[ "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,164,006
public static long getNodeId(Event e) { // convert the node id long nodeID = -1; if (e.hasNodeid()) nodeID = e.getNodeid(); return nodeID; }
static long function(Event e) { long nodeID = -1; if (e.hasNodeid()) nodeID = e.getNodeid(); return nodeID; }
/** * Return the nodeId of the node associated with and event, or -1 of no node * is associated. * * @param e * the event * @return the nodeId or -1 if no nodeId is set */
Return the nodeId of the node associated with and event, or -1 of no node is associated
getNodeId
{ "repo_name": "tharindum/opennms_dashboard", "path": "opennms-services/src/main/java/org/opennms/netmgt/capsd/EventUtils.java", "license": "gpl-2.0", "size": 34880 }
[ "org.opennms.netmgt.xml.event.Event" ]
import org.opennms.netmgt.xml.event.Event;
import org.opennms.netmgt.xml.event.*;
[ "org.opennms.netmgt" ]
org.opennms.netmgt;
1,722,097
public Stroke getStroke() { return this.stroke; }
Stroke function() { return this.stroke; }
/** * Returns the stroke. * * @return The stroke (never <code>null</code>). */
Returns the stroke
getStroke
{ "repo_name": "martingwhite/astor", "path": "examples/chart_11/source/org/jfree/chart/block/LineBorder.java", "license": "gpl-2.0", "size": 7337 }
[ "java.awt.Stroke" ]
import java.awt.Stroke;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,579,452
private Dispatcher setupDispatcher() { Dispatcher dispatcher = createDispatcher(); dispatcher.register(RMFatalEventType.class, new ResourceManager.RMFatalEventDispatcher()); return dispatcher; }
Dispatcher function() { Dispatcher dispatcher = createDispatcher(); dispatcher.register(RMFatalEventType.class, new ResourceManager.RMFatalEventDispatcher()); return dispatcher; }
/** * Register the handlers for alwaysOn services */
Register the handlers for alwaysOn services
setupDispatcher
{ "repo_name": "tecknowledgeable/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java", "license": "apache-2.0", "size": 46666 }
[ "org.apache.hadoop.yarn.event.Dispatcher" ]
import org.apache.hadoop.yarn.event.Dispatcher;
import org.apache.hadoop.yarn.event.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
648,432
private void setThemeFont(){ try{ themeFonts = new HashMap<String, Font>(); if(Platform.isWindows){ Class lnfClass = Class.forName(UIManager.getSystemLookAndFeelClassName(), true, Thread.currentThread().getContextClassLoader()); LookAndFeel laf = (LookAndFeel)(lnfCla...
void function(){ try{ themeFonts = new HashMap<String, Font>(); if(Platform.isWindows){ Class lnfClass = Class.forName(UIManager.getSystemLookAndFeelClassName(), true, Thread.currentThread().getContextClassLoader()); LookAndFeel laf = (LookAndFeel)(lnfClass.newInstance()); UIDefaults defaults = laf.getDefaults(); Font ...
/** * Set fonts for this theme */
Set fonts for this theme
setThemeFont
{ "repo_name": "rob-work/iwbcff", "path": "src/becta/viewer/accessibility/SystemTheme.java", "license": "bsd-2-clause", "size": 14522 }
[ "java.awt.Font", "java.util.HashMap", "javax.swing.LookAndFeel", "javax.swing.UIDefaults", "javax.swing.UIManager", "javax.swing.plaf.metal.MetalLookAndFeel" ]
import java.awt.Font; import java.util.HashMap; import javax.swing.LookAndFeel; import javax.swing.UIDefaults; import javax.swing.UIManager; import javax.swing.plaf.metal.MetalLookAndFeel;
import java.awt.*; import java.util.*; import javax.swing.*; import javax.swing.plaf.metal.*;
[ "java.awt", "java.util", "javax.swing" ]
java.awt; java.util; javax.swing;
1,614,517
ProcessInstanceBuilder createProcessInstanceBuilder();
ProcessInstanceBuilder createProcessInstanceBuilder();
/** * Create a {@link ProcessInstanceBuilder}, that allows to set various options for starting a process instance, as an alternative to the various startProcessInstanceByXX methods. */
Create a <code>ProcessInstanceBuilder</code>, that allows to set various options for starting a process instance, as an alternative to the various startProcessInstanceByXX methods
createProcessInstanceBuilder
{ "repo_name": "paulstapleton/flowable-engine", "path": "modules/flowable-engine/src/main/java/org/flowable/engine/RuntimeService.java", "license": "apache-2.0", "size": 63251 }
[ "org.flowable.engine.runtime.ProcessInstanceBuilder" ]
import org.flowable.engine.runtime.ProcessInstanceBuilder;
import org.flowable.engine.runtime.*;
[ "org.flowable.engine" ]
org.flowable.engine;
177,202
@Override public Adapter createTestCaseAdapter() { if (testCaseItemProvider == null) { testCaseItemProvider = new TestCaseItemProvider(this); } return testCaseItemProvider; } protected RequirementItemProvider requirementItemProvider;
Adapter function() { if (testCaseItemProvider == null) { testCaseItemProvider = new TestCaseItemProvider(this); } return testCaseItemProvider; } protected RequirementItemProvider requirementItemProvider;
/** * This creates an adapter for a {@link org.eclipse.papyrus.sysml.requirements.TestCase}. <!-- * begin-user-doc --> <!-- end-user-doc --> * * @generated */
This creates an adapter for a <code>org.eclipse.papyrus.sysml.requirements.TestCase</code>.
createTestCaseAdapter
{ "repo_name": "bmaggi/Papyrus-SysML11", "path": "plugins/org.eclipse.papyrus.sysml.edit/src/org/eclipse/papyrus/sysml/requirements/provider/RequirementsItemProviderAdapterFactory.java", "license": "epl-1.0", "size": 10727 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,054,775
private boolean applyRole(DeviceId deviceId, MastershipRole newRole) { if (newRole.equals(MastershipRole.NONE)) { //no-op return true; } DeviceProvider provider = provider(); if (provider == null) { log.warn("Provi...
boolean function(DeviceId deviceId, MastershipRole newRole) { if (newRole.equals(MastershipRole.NONE)) { return true; } DeviceProvider provider = provider(); if (provider == null) { log.warn(STR, deviceId, newRole); return false; } provider.roleChanged(deviceId, newRole); return true; }
/** * Apply role in reaction to provider event. * * @param deviceId device identifier * @param newRole new role to apply to the device * @return true if the request was sent to provider */
Apply role in reaction to provider event
applyRole
{ "repo_name": "planoAccess/clonedONOS", "path": "core/net/src/main/java/org/onosproject/net/device/impl/DeviceManager.java", "license": "apache-2.0", "size": 31533 }
[ "org.onosproject.net.DeviceId", "org.onosproject.net.MastershipRole", "org.onosproject.net.device.DeviceProvider" ]
import org.onosproject.net.DeviceId; import org.onosproject.net.MastershipRole; import org.onosproject.net.device.DeviceProvider;
import org.onosproject.net.*; import org.onosproject.net.device.*;
[ "org.onosproject.net" ]
org.onosproject.net;
2,783,363
@Test public void testBadGet() { expect(flowClassifierService.getFlowClassifier(anyObject())) .andReturn(null).anyTimes(); replay(flowClassifierService); WebTarget wt = target(); try { wt.path("flow_classifiers/78dcd363-fc23-aeb6-f44b-56dc5aafb3ae") ...
void function() { expect(flowClassifierService.getFlowClassifier(anyObject())) .andReturn(null).anyTimes(); replay(flowClassifierService); WebTarget wt = target(); try { wt.path(STR) .request().get(String.class); fail(STR); } catch (NotFoundException ex) { assertThat(ex.getMessage(), containsString(STR)); } }
/** * Tests that a fetch of a non-existent flow classifier object throws an exception. */
Tests that a fetch of a non-existent flow classifier object throws an exception
testBadGet
{ "repo_name": "oplinkoms/onos", "path": "apps/vtn/vtnweb/src/test/java/org/onosproject/vtnweb/resources/FlowClassifierResourceTest.java", "license": "apache-2.0", "size": 10719 }
[ "javax.ws.rs.NotFoundException", "javax.ws.rs.client.WebTarget", "org.easymock.EasyMock", "org.hamcrest.Matchers", "org.junit.Assert" ]
import javax.ws.rs.NotFoundException; import javax.ws.rs.client.WebTarget; import org.easymock.EasyMock; import org.hamcrest.Matchers; import org.junit.Assert;
import javax.ws.rs.*; import javax.ws.rs.client.*; import org.easymock.*; import org.hamcrest.*; import org.junit.*;
[ "javax.ws", "org.easymock", "org.hamcrest", "org.junit" ]
javax.ws; org.easymock; org.hamcrest; org.junit;
2,581,276
@Override protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { setOrientation(LinearLayout.HORIZONTAL); mSpace.setVisibility(View.GONE); super.onMeasure(widthMeasureSpec, heightMeasureSpec); final int contentWidth = getMeasuredWidth() - getPaddingLeft() - getP...
void function(int widthMeasureSpec, int heightMeasureSpec) { setOrientation(LinearLayout.HORIZONTAL); mSpace.setVisibility(View.GONE); super.onMeasure(widthMeasureSpec, heightMeasureSpec); final int contentWidth = getMeasuredWidth() - getPaddingLeft() - getPaddingRight(); final int count = getChildCount(); int totalChi...
/** * Ask all children to measure themselves and compute the measurement of this * layout based on the children. */
Ask all children to measure themselves and compute the measurement of this layout based on the children
onMeasure
{ "repo_name": "AdeebNqo/Thula", "path": "Thula/src/main/java/com/adeebnqo/Thula/ui/view/WrapLayout.java", "license": "gpl-3.0", "size": 1971 }
[ "android.view.View", "android.widget.LinearLayout" ]
import android.view.View; import android.widget.LinearLayout;
import android.view.*; import android.widget.*;
[ "android.view", "android.widget" ]
android.view; android.widget;
1,573,819
@SuppressWarnings("deprecation") @Test(dataProvider = "partitionedTopic") public void testReplicatorOnPartitionedTopic(boolean isPartitionedTopic) throws Exception { log.info("--- Starting V1_ReplicatorTest::{} --- ", methodName); final String namespace = "pulsar/global/partitionedNs-" + i...
@SuppressWarnings(STR) @Test(dataProvider = STR) void function(boolean isPartitionedTopic) throws Exception { log.info(STR, methodName); final String namespace = STR + isPartitionedTopic; final String persistentTopicName = STRnon-persistent: BrokerService brokerService = pulsar1.getBrokerService(); admin1.namespaces()....
/** * It verifies that broker should not start replicator for partitioned-topic (topic without -partition postfix) * * @param isPartitionedTopic * @throws Exception */
It verifies that broker should not start replicator for partitioned-topic (topic without -partition postfix)
testReplicatorOnPartitionedTopic
{ "repo_name": "ArvinDevel/incubator-pulsar", "path": "pulsar-broker/src/test/java/org/apache/pulsar/broker/service/v1/V1_ReplicatorTest.java", "license": "apache-2.0", "size": 39558 }
[ "com.google.common.collect.Sets", "org.apache.pulsar.broker.service.BrokerService", "org.apache.pulsar.broker.service.BrokerServiceException", "org.apache.pulsar.client.api.PulsarClient", "org.slf4j.Logger", "org.slf4j.LoggerFactory", "org.testng.Assert", "org.testng.annotations.Test" ]
import com.google.common.collect.Sets; import org.apache.pulsar.broker.service.BrokerService; import org.apache.pulsar.broker.service.BrokerServiceException; import org.apache.pulsar.client.api.PulsarClient; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.testng.Assert; import org.testng.annotations...
import com.google.common.collect.*; import org.apache.pulsar.broker.service.*; import org.apache.pulsar.client.api.*; import org.slf4j.*; import org.testng.*; import org.testng.annotations.*;
[ "com.google.common", "org.apache.pulsar", "org.slf4j", "org.testng", "org.testng.annotations" ]
com.google.common; org.apache.pulsar; org.slf4j; org.testng; org.testng.annotations;
1,033,730
protected void addRolePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_GeocentricCRSRefType_role_feature"), getString("_UI_PropertyDescriptor...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), GmlPackage.eINSTANCE.getGeocentricCRSRefType_Role(), true, false, false, ItemPropertyDescriptor.G...
/** * This adds a property descriptor for the Role feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Role feature.
addRolePropertyDescriptor
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/GeocentricCRSRefTypeItemProvider.java", "license": "apache-2.0", "size": 12089 }
[ "net.opengis.gml.GmlPackage", "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor" ]
import net.opengis.gml.GmlPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor;
import net.opengis.gml.*; import org.eclipse.emf.edit.provider.*;
[ "net.opengis.gml", "org.eclipse.emf" ]
net.opengis.gml; org.eclipse.emf;
2,523,954
public Pipe getPipe () { return pipe; }
Pipe function () { return pipe; }
/** Returns the pipe through which each added <code>Instance</code> is passed, * which may be <code>null</code>. */
Returns the pipe through which each added <code>Instance</code> is passed
getPipe
{ "repo_name": "shalomeir/tctm", "path": "src/cc/mallet/types/InstanceList.java", "license": "epl-1.0", "size": 34181 }
[ "cc.mallet.pipe.Pipe" ]
import cc.mallet.pipe.Pipe;
import cc.mallet.pipe.*;
[ "cc.mallet.pipe" ]
cc.mallet.pipe;
2,406,644
public void showWarningDialog(String warningMessage) { showMessageDialog(warningMessage, JOptionPane.WARNING_MESSAGE); }
void function(String warningMessage) { showMessageDialog(warningMessage, JOptionPane.WARNING_MESSAGE); }
/** * Shows a warning dialog on top of this dialog. * * @param warningMessage The message. */
Shows a warning dialog on top of this dialog
showWarningDialog
{ "repo_name": "seadas/beam", "path": "beam-ui/src/main/java/org/esa/beam/framework/ui/AbstractDialog.java", "license": "gpl-3.0", "size": 20707 }
[ "javax.swing.JOptionPane" ]
import javax.swing.JOptionPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
212,143
protected void initTQueryRepositorys() { if (collTQueryRepositorys == null) { collTQueryRepositorys = new ArrayList<TQueryRepository>(); } }
void function() { if (collTQueryRepositorys == null) { collTQueryRepositorys = new ArrayList<TQueryRepository>(); } }
/** * Temporary storage of collTQueryRepositorys to save a possible db hit in * the event objects are add to the collection, but the * complete collection is never requested. */
Temporary storage of collTQueryRepositorys to save a possible db hit in the event objects are add to the collection, but the complete collection is never requested
initTQueryRepositorys
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTPerson.java", "license": "gpl-3.0", "size": 1013508 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,206,931
private boolean checkL2Instructions(L2ModificationInstruction l2instruction) { switch (l2instruction.subtype()) { case ETH_SRC: case ETH_DST: case VLAN_ID: case VLAN_PCP: case MPLS_LABEL: case MPLS_BOS: case TUN...
boolean function(L2ModificationInstruction l2instruction) { switch (l2instruction.subtype()) { case ETH_SRC: case ETH_DST: case VLAN_ID: case VLAN_PCP: case MPLS_LABEL: case MPLS_BOS: case TUNNEL_ID: case VLAN_PUSH: case VLAN_POP: case MPLS_PUSH: case MPLS_POP: return true; case DEC_MPLS_TTL: return false; default: thr...
/** * Verifies if the given L2 instruction can be optimized. * * @param l2instruction the l2 instruction to verify * @return true if the instruction cannot be optimized. False otherwise */
Verifies if the given L2 instruction can be optimized
checkL2Instructions
{ "repo_name": "oplinkoms/onos", "path": "core/net/src/main/java/org/onosproject/net/intent/impl/compiler/LinkCollectionIntentCompiler.java", "license": "apache-2.0", "size": 14318 }
[ "org.onosproject.net.flow.instructions.L2ModificationInstruction", "org.onosproject.net.intent.IntentCompilationException" ]
import org.onosproject.net.flow.instructions.L2ModificationInstruction; import org.onosproject.net.intent.IntentCompilationException;
import org.onosproject.net.flow.instructions.*; import org.onosproject.net.intent.*;
[ "org.onosproject.net" ]
org.onosproject.net;
93,499
private static RandomAccessFile openInputFile(String fileName) throws IOException { RandomAccessFile raf; raf = openInputFileAsZip(fileName); if (raf == null) { File inputFile = new File(fileName); raf = new RandomAccessFile(inputFile, "r"); } return raf; }
static RandomAccessFile function(String fileName) throws IOException { RandomAccessFile raf; raf = openInputFileAsZip(fileName); if (raf == null) { File inputFile = new File(fileName); raf = new RandomAccessFile(inputFile, "r"); } return raf; }
/** * Opens an input file, which could be a .dex or a .jar/.apk with a * classes.dex inside. If the latter, we extract the contents to a * temporary file. * * @param fileName the name of the file to open */
Opens an input file, which could be a .dex or a .jar/.apk with a classes.dex inside. If the latter, we extract the contents to a temporary file
openInputFile
{ "repo_name": "wskplho/jdroid", "path": "jdroid-gradle-plugin/src/main/java/com/jdroid/android/dex/DexMethodCounts.java", "license": "apache-2.0", "size": 9875 }
[ "java.io.File", "java.io.IOException", "java.io.RandomAccessFile" ]
import java.io.File; import java.io.IOException; import java.io.RandomAccessFile;
import java.io.*;
[ "java.io" ]
java.io;
416,996
public void testAlerColumnLength() throws SQLException { Statement s = createStatement(); s.executeUpdate("CREATE TABLE TestAlterTable( " + "element_id INTEGER NOT NULL, "+ "altered_id VARCHAR(30) NOT NULL, "+ "counter SMALLINT NOT NULL DEFAULT 0, "+ "time...
void function() throws SQLException { Statement s = createStatement(); s.executeUpdate(STR + STR+ STR+ STR+ STR); s.executeUpdate(STR+ STR+ STR+ STR+ STR+ STR+ STR+ STR+ STR + STR+ STR); s.executeUpdate(STR+ STR); s.executeUpdate(STR+ STR+ STR); ResultSet rs = s.executeQuery(STR+ STR); JDBC.assertFullResultSet(rs, new ...
/** * Altering the column length should regenerate the trigger * action plan which is saved in SYSSTATEMENTS. DERBY-4874 * * @throws SQLException * */
Altering the column length should regenerate the trigger action plan which is saved in SYSSTATEMENTS. DERBY-4874
testAlerColumnLength
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/testing/org/apache/derbyTesting/functionTests/tests/lang/TriggerTest.java", "license": "apache-2.0", "size": 85154 }
[ "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Statement", "org.apache.derbyTesting.junit.JDBC" ]
import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement; import org.apache.derbyTesting.junit.JDBC;
import java.sql.*; import org.apache.*;
[ "java.sql", "org.apache" ]
java.sql; org.apache;
1,993,176
private void updatePyPath() { // Quit if no source folder was deleted. if (remFolders.size() == 0 || remFolders.get(0).exists()) { return; } PythonPathHelper.updatePyPath(remFolders.toArray(new IResource[0]), null, PythonPathHelper.OPERATION_DELETE); }
void function() { if (remFolders.size() == 0 remFolders.get(0).exists()) { return; } PythonPathHelper.updatePyPath(remFolders.toArray(new IResource[0]), null, PythonPathHelper.OPERATION_DELETE); }
/** * Update the PYTHONPATH of projects that have had source folders removed from them by * removing the folders' paths from it. */
Update the PYTHONPATH of projects that have had source folders removed from them by removing the folders' paths from it
updatePyPath
{ "repo_name": "akurtakov/Pydev", "path": "plugins/org.python.pydev/src_navigator/org/python/pydev/navigator/actions/PyDeleteResourceAction.java", "license": "epl-1.0", "size": 4217 }
[ "org.eclipse.core.resources.IResource", "org.python.pydev.ast.codecompletion.revisited.PythonPathHelper" ]
import org.eclipse.core.resources.IResource; import org.python.pydev.ast.codecompletion.revisited.PythonPathHelper;
import org.eclipse.core.resources.*; import org.python.pydev.ast.codecompletion.revisited.*;
[ "org.eclipse.core", "org.python.pydev" ]
org.eclipse.core; org.python.pydev;
1,482,462
public static String normalizeEndpointUri(String uri) { try { uri = URISupport.normalizeUri(uri); } catch (Exception e) { throw new ResolveEndpointFailedException(uri, e); } return uri; }
static String function(String uri) { try { uri = URISupport.normalizeUri(uri); } catch (Exception e) { throw new ResolveEndpointFailedException(uri, e); } return uri; }
/** * Normalize uri so we can do endpoint hits with minor mistakes and parameters is not in the same order. * * @param uri the uri * @return normalized uri * @throws ResolveEndpointFailedException if uri cannot be normalized */
Normalize uri so we can do endpoint hits with minor mistakes and parameters is not in the same order
normalizeEndpointUri
{ "repo_name": "nicolaferraro/camel", "path": "core/camel-support/src/main/java/org/apache/camel/support/EndpointHelper.java", "license": "apache-2.0", "size": 18417 }
[ "org.apache.camel.ResolveEndpointFailedException", "org.apache.camel.util.URISupport" ]
import org.apache.camel.ResolveEndpointFailedException; import org.apache.camel.util.URISupport;
import org.apache.camel.*; import org.apache.camel.util.*;
[ "org.apache.camel" ]
org.apache.camel;
2,348,676
for ( final PrintStream delegate : delegates ) { delegate.flush(); } }
for ( final PrintStream delegate : delegates ) { delegate.flush(); } }
/** * Delegates the call to the wrapped print streams. */
Delegates the call to the wrapped print streams
flush
{ "repo_name": "fossnova/io", "path": "src/main/java/org/fossnova/io/TeePrintStream.java", "license": "lgpl-2.1", "size": 10838 }
[ "java.io.PrintStream" ]
import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
1,787,846
public OneResponse chown(int uid, int gid) { return chown(client, id, uid, gid); }
OneResponse function(int uid, int gid) { return chown(client, id, uid, gid); }
/** * Changes the owner/group * * @param uid The new owner user ID. Set it to -1 to leave the current one. * @param gid The new group ID. Set it to -1 to leave the current one. * @return If an error occurs the error message contains the reason. */
Changes the owner/group
chown
{ "repo_name": "spirit03/one", "path": "src/oca/java/src/org/opennebula/client/secgroup/SecurityGroup.java", "license": "apache-2.0", "size": 12000 }
[ "org.opennebula.client.OneResponse" ]
import org.opennebula.client.OneResponse;
import org.opennebula.client.*;
[ "org.opennebula.client" ]
org.opennebula.client;
2,263,095
static Node makeIterator(AbstractCompiler compiler, Node iterable) { return callEs6RuntimeFunction(compiler, iterable, "makeIterator"); }
static Node makeIterator(AbstractCompiler compiler, Node iterable) { return callEs6RuntimeFunction(compiler, iterable, STR); }
/** * Returns a call to {@code $jscomp.makeIterator} with {@code iterable} as its argument. */
Returns a call to $jscomp.makeIterator with iterable as its argument
makeIterator
{ "repo_name": "Medium/closure-compiler", "path": "src/com/google/javascript/jscomp/Es6ToEs3Converter.java", "license": "apache-2.0", "size": 41565 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
2,556,199
private static TestKey keyD() throws Exception { return new TestKey("-----BEGIN PGP PUBLIC KEY BLOCK-----\n" + "Version: GnuPG v1\n" + "\n" + "mQENBEx6nwkBCADuztv2tGhjPljwW46qEhth7ZnkdhYXuctZ6lNQuy5LMaEECE3C\n" + "jvVKY+nBrgsLY2Trts+q+mdooBWvxy/qe5PAQTcPR83KjVS4fYwNMBgeRxBEZAZg\n" ...
static TestKey function() throws Exception { return new TestKey(STR + STR + "\n" + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR + STR=YDhQ\nSTR-----END PGP PUBLIC KEY BLOCK-----\nSTR-----BEGIN PGP PRIVATE KEY BLOCK-----\n" ...
/** * pub 2048R/0FDD3677 2010-08-29 * Key fingerprint = C96C 5E9D 669C 448A D1B9 BEB5 A991 E2D5 0FDD 3677 * uid Testuser D &lt;testd@example.com&gt; * sub 2048R/CAB81AE0 2010-08-29 */
pub 2048R/0FDD3677 2010-08-29 Key fingerprint = C96C 5E9D 669C 448A D1B9 BEB5 A991 E2D5 0FDD 3677 uid Testuser D &lt;testd@example.com&gt; sub 2048R/CAB81AE0 2010-08-29
keyD
{ "repo_name": "supriyantomaftuh/gerrit", "path": "gerrit-gpg/src/test/java/com/google/gerrit/gpg/PublicKeyCheckerTest.java", "license": "apache-2.0", "size": 76587 }
[ "com.google.gerrit.gpg.testutil.TestKey" ]
import com.google.gerrit.gpg.testutil.TestKey;
import com.google.gerrit.gpg.testutil.*;
[ "com.google.gerrit" ]
com.google.gerrit;
636,913
public static final Uri buildChannelUriForPassthroughInput(String inputId) { return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY) .appendPath(PATH_PASSTHROUGH).appendPath(inputId).build(); }
static final Uri function(String inputId) { return new Uri.Builder().scheme(ContentResolver.SCHEME_CONTENT).authority(AUTHORITY) .appendPath(PATH_PASSTHROUGH).appendPath(inputId).build(); }
/** * Build a special channel URI intended to be used with pass-through inputs. (e.g. HDMI) * * @param inputId The ID of the pass-through input to build a channels URI for. * @see TvInputInfo#isPassthroughInput() */
Build a special channel URI intended to be used with pass-through inputs. (e.g. HDMI)
buildChannelUriForPassthroughInput
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "frameworks/base/media/java/android/media/tv/TvContract.java", "license": "gpl-3.0", "size": 50270 }
[ "android.content.ContentResolver", "android.net.Uri" ]
import android.content.ContentResolver; import android.net.Uri;
import android.content.*; import android.net.*;
[ "android.content", "android.net" ]
android.content; android.net;
838,508
static <T> List<T> cast(Iterable<T> iterable) { return (List<T>) iterable; }
static <T> List<T> cast(Iterable<T> iterable) { return (List<T>) iterable; }
/** * Used to avoid http://bugs.sun.com/view_bug.do?bug_id=6558557 */
Used to avoid HREF
cast
{ "repo_name": "oneliang/third-party-lib", "path": "google/com/google/common/collect/Lists.java", "license": "apache-2.0", "size": 35800 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,664,062
public DcmElement putDS(int tag, float value) { return put(StringElement.createDS(tag, value)); }
DcmElement function(int tag, float value) { return put(StringElement.createDS(tag, value)); }
/** * Description of the Method * * @param tag Description of the Parameter * @param value Description of the Parameter * @return Description of the Return Value */
Description of the Method
putDS
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4che14/tags/DCM4CHE_1_4_14/src/java/org/dcm4cheri/data/DcmObjectImpl.java", "license": "apache-2.0", "size": 84001 }
[ "org.dcm4che.data.DcmElement" ]
import org.dcm4che.data.DcmElement;
import org.dcm4che.data.*;
[ "org.dcm4che.data" ]
org.dcm4che.data;
1,078,881
@Nullable public String inputCharsetName() { return inputCharsetName; }
@Nullable String function() { return inputCharsetName; }
/** * Returns the input file charset name, null if not specified. * * @return The input file charset name, null if not specified. */
Returns the input file charset name, null if not specified
inputCharsetName
{ "repo_name": "samaitra/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/bulkload/BulkLoadCsvFormat.java", "license": "apache-2.0", "size": 5023 }
[ "org.jetbrains.annotations.Nullable" ]
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
2,191,069
public UpdateRequestBuilder setUpsert(byte[] source, int offset, int length, XContentType xContentType) { request.upsert(source, offset, length, xContentType); return this; }
UpdateRequestBuilder function(byte[] source, int offset, int length, XContentType xContentType) { request.upsert(source, offset, length, xContentType); return this; }
/** * Sets the doc source of the update request to be used when the document does not exists. */
Sets the doc source of the update request to be used when the document does not exists
setUpsert
{ "repo_name": "robin13/elasticsearch", "path": "server/src/main/java/org/elasticsearch/action/update/UpdateRequestBuilder.java", "license": "apache-2.0", "size": 12166 }
[ "org.elasticsearch.common.xcontent.XContentType" ]
import org.elasticsearch.common.xcontent.XContentType;
import org.elasticsearch.common.xcontent.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
477,612
public void testPositionAfterEOFRead() throws IOException, StandardException { InputStream in = new LoopingAlphabetStream(10); PositionedStoreStream pss = new PositionedStoreStream(in); assertEquals(0, pss.getPosition()); for (int i=0; i < 10; i++) { pss.read(...
void function() throws IOException, StandardException { InputStream in = new LoopingAlphabetStream(10); PositionedStoreStream pss = new PositionedStoreStream(in); assertEquals(0, pss.getPosition()); for (int i=0; i < 10; i++) { pss.read(); assertEquals(i +1, pss.getPosition()); } assertEquals(10, pss.getPosition()); as...
/** * Verifies that reading after EOF doesn't change the position. */
Verifies that reading after EOF doesn't change the position
testPositionAfterEOFRead
{ "repo_name": "trejkaz/derby", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/store/PositionedStoreStreamTest.java", "license": "apache-2.0", "size": 9323 }
[ "java.io.IOException", "java.io.InputStream", "org.apache.derby.iapi.error.StandardException", "org.apache.derby.impl.jdbc.PositionedStoreStream", "org.apache.derbyTesting.functionTests.util.streams.LoopingAlphabetStream" ]
import java.io.IOException; import java.io.InputStream; import org.apache.derby.iapi.error.StandardException; import org.apache.derby.impl.jdbc.PositionedStoreStream; import org.apache.derbyTesting.functionTests.util.streams.LoopingAlphabetStream;
import java.io.*; import org.apache.*; import org.apache.derby.iapi.error.*; import org.apache.derby.impl.jdbc.*;
[ "java.io", "org.apache", "org.apache.derby" ]
java.io; org.apache; org.apache.derby;
1,135,481
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); response.setContentType("text/html;charset=utf-8"); response.setHeader("Content-type", "text/html;charset=UTF-8"); response.setCharacterEncoding("UTF-...
void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { request.setCharacterEncoding("UTF-8"); response.setContentType(STR); response.setHeader(STR, STR); response.setCharacterEncoding("UTF-8"); InputStream isForParentPath = request.getServletContext().getResourceA...
/** * The doPost method of the servlet. <br> * * This method is called when a form has its tag value method equals to post. * * @param request the request send by the client to the server * @param response the response send by the server to the client * @throws ServletException if an error occurred * @...
The doPost method of the servlet. This method is called when a form has its tag value method equals to post
doPost
{ "repo_name": "RisingWonderland/J2EE_Servlet_Demo", "path": "src/org/crow/demo/servlet/Upload4H5Servlet.java", "license": "mit", "size": 4581 }
[ "java.io.BufferedInputStream", "java.io.BufferedOutputStream", "java.io.File", "java.io.FileOutputStream", "java.io.IOException", "java.io.InputStream", "java.io.PrintWriter", "java.util.HashMap", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.Http...
import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.HashMap; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest...
import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import net.sf.json.*;
[ "java.io", "java.util", "javax.servlet", "net.sf.json" ]
java.io; java.util; javax.servlet; net.sf.json;
2,840,244
@Generated @Selector("objectForKeyedSubscript:") public native MLFeatureValue objectForKeyedSubscript(String featureName);
@Selector(STR) native MLFeatureValue function(String featureName);
/** * Get the value for specified feature */
Get the value for specified feature
objectForKeyedSubscript
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/coreml/MLDictionaryFeatureProvider.java", "license": "apache-2.0", "size": 6709 }
[ "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;
2,125,627
public int sendMessages(Collection<OutboundMessage> msgList, String gatewayId) throws TimeoutException, GatewayException, IOException, InterruptedException { if (getServiceStatus() != ServiceStatus.STARTED) return 0; int counter = 0; for (OutboundMessage msg : msgList) { msg.setGatewayId(gatewayId); i...
int function(Collection<OutboundMessage> msgList, String gatewayId) throws TimeoutException, GatewayException, IOException, InterruptedException { if (getServiceStatus() != ServiceStatus.STARTED) return 0; int counter = 0; for (OutboundMessage msg : msgList) { msg.setGatewayId(gatewayId); if (sendMessage(msg)) counter+...
/** * Sends a list of messages from the specified gateway. * * @param msgList * A list of OutboundMessage objects. * @param gatewayId * The id of the gateway that will be used for sending. * @return The number of messages sent. * @throws TimeoutException * The gatewa...
Sends a list of messages from the specified gateway
sendMessages
{ "repo_name": "shamim8888/SMSlib-ParallelPort", "path": "smslib-v3.5.3-MyBuild/src/java/org/smslib/Service.java", "license": "apache-2.0", "size": 48811 }
[ "java.io.IOException", "java.util.Collection" ]
import java.io.IOException; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,143,625
DataInput getDeleteBloomFilterMetadata() throws IOException;
DataInput getDeleteBloomFilterMetadata() throws IOException;
/** * Retrieves delete family Bloom filter metadata as appropriate for each * {@link HFile} version. * Knows nothing about how that metadata is structured. */
Retrieves delete family Bloom filter metadata as appropriate for each <code>HFile</code> version. Knows nothing about how that metadata is structured
getDeleteBloomFilterMetadata
{ "repo_name": "SeekerResource/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFile.java", "license": "apache-2.0", "size": 33563 }
[ "java.io.DataInput", "java.io.IOException" ]
import java.io.DataInput; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,902,225
@JavascriptInterface public String process(String phrase) { try { root = dataBase.get("@"); Stack<Result> results = new Stack<Result>(); tokens = phrase.toLowerCase().split(separators); boolean a = match(root, tokens, results); JSONObject shell = new JSONObject(); try { shell.put("goal", a...
String function(String phrase) { try { root = dataBase.get("@"); Stack<Result> results = new Stack<Result>(); tokens = phrase.toLowerCase().split(separators); boolean a = match(root, tokens, results); JSONObject shell = new JSONObject(); try { shell.put("goal", a); if (a) { JSONObject json = new JSONObject(); for (Resu...
/** * Process a phrase * @param phrase * the phrase usually understood by the recognizer * @return * The resulting logical analysis */
Process a phrase
process
{ "repo_name": "theing/Loquitur", "path": "app/src/main/java/it/ms/theing/loquitur/functions/Brain.java", "license": "gpl-3.0", "size": 14825 }
[ "it.ms.theing.loquitur.Utils", "java.util.Stack", "org.json.JSONException", "org.json.JSONObject" ]
import it.ms.theing.loquitur.Utils; import java.util.Stack; import org.json.JSONException; import org.json.JSONObject;
import it.ms.theing.loquitur.*; import java.util.*; import org.json.*;
[ "it.ms.theing", "java.util", "org.json" ]
it.ms.theing; java.util; org.json;
511,633
public WorldSavedData loadData(Class p_75742_1_, String p_75742_2_) { WorldSavedData worldsaveddata = (WorldSavedData)this.loadedDataMap.get(p_75742_2_); if (worldsaveddata != null) { return worldsaveddata; } else { if (this.saveHandler !=...
WorldSavedData function(Class p_75742_1_, String p_75742_2_) { WorldSavedData worldsaveddata = (WorldSavedData)this.loadedDataMap.get(p_75742_2_); if (worldsaveddata != null) { return worldsaveddata; } else { if (this.saveHandler != null) { try { File file1 = this.saveHandler.getMapFileFromName(p_75742_2_); if (file1 !...
/** * Loads an existing MapDataBase corresponding to the given String id from disk, instantiating the given Class, or * returns null if none such file exists. args: Class to instantiate, String dataid */
Loads an existing MapDataBase corresponding to the given String id from disk, instantiating the given Class, or returns null if none such file exists. args: Class to instantiate, String dataid
loadData
{ "repo_name": "trixmot/mod1", "path": "build/tmp/recompileMc/sources/net/minecraft/world/storage/MapStorage.java", "license": "lgpl-2.1", "size": 8050 }
[ "java.io.File", "java.io.FileInputStream", "net.minecraft.nbt.CompressedStreamTools", "net.minecraft.nbt.NBTTagCompound", "net.minecraft.world.WorldSavedData" ]
import java.io.File; import java.io.FileInputStream; import net.minecraft.nbt.CompressedStreamTools; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.world.WorldSavedData;
import java.io.*; import net.minecraft.nbt.*; import net.minecraft.world.*;
[ "java.io", "net.minecraft.nbt", "net.minecraft.world" ]
java.io; net.minecraft.nbt; net.minecraft.world;
1,662,117
private static String trimEnd(String s) { int trimCount = 0; while (trimCount < s.length()) { char ch = s.charAt(s.length() - trimCount - 1); if (TokenUtil.isWhitespace(ch)) { trimCount++; } else { break; } } if (trimCount == 0) { return s; } retu...
static String function(String s) { int trimCount = 0; while (trimCount < s.length()) { char ch = s.charAt(s.length() - trimCount - 1); if (TokenUtil.isWhitespace(ch)) { trimCount++; } else { break; } } if (trimCount == 0) { return s; } return s.substring(0, s.length() - trimCount); }
/** * Trim characters from only the end of a string. * This method will remove all whitespace characters * (defined by TokenUtil.isWhitespace(char), in addition to the characters * provided, from the end of the provided string. * * @param s String to be trimmed * @return String with whitespace and ...
Trim characters from only the end of a string. This method will remove all whitespace characters (defined by TokenUtil.isWhitespace(char), in addition to the characters provided, from the end of the provided string
trimEnd
{ "repo_name": "LorenzoDV/closure-compiler", "path": "src/com/google/javascript/jscomp/parsing/JsDocInfoParser.java", "license": "apache-2.0", "size": 85162 }
[ "com.google.javascript.rhino.TokenUtil" ]
import com.google.javascript.rhino.TokenUtil;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,632,264
public void setTxTemplate(TransactionTemplate txTemplate) { this.txTemplate = txTemplate; }
void function(TransactionTemplate txTemplate) { this.txTemplate = txTemplate; }
/** * Set the template. * @param txTemplate The txTemplate to set. */
Set the template
setTxTemplate
{ "repo_name": "DIA-NZ/webcurator", "path": "wct-core/src/main/java/org/webcurator/core/permissionmapping/HierPermMappingDAOImpl.java", "license": "apache-2.0", "size": 7505 }
[ "org.springframework.transaction.support.TransactionTemplate" ]
import org.springframework.transaction.support.TransactionTemplate;
import org.springframework.transaction.support.*;
[ "org.springframework.transaction" ]
org.springframework.transaction;
129,417
public static long encodeAsLong(double latitude, double longitude, int precision) { if((precision>12)||(precision<1)) { throw new ElasticsearchIllegalArgumentException("Illegal precision length of "+precision+ ". Long-based geohashes only support precisions between 1 ...
static long function(double latitude, double longitude, int precision) { if((precision>12) (precision<1)) { throw new ElasticsearchIllegalArgumentException(STR+precision+ STR); } double latInterval0 = -90.0; double latInterval1 = 90.0; double lngInterval0 = -180.0; double lngInterval1 = 180.0; long geohash = 0l; boolea...
/** * Encodes latitude and longitude information into a single long with variable precision. * Up to 12 levels of precision are supported which should offer sub-metre resolution. * * @param latitude * @param longitude * @param precision The required precision between 1 and 12 * @retur...
Encodes latitude and longitude information into a single long with variable precision. Up to 12 levels of precision are supported which should offer sub-metre resolution
encodeAsLong
{ "repo_name": "corochoone/elasticsearch", "path": "src/main/java/org/elasticsearch/common/geo/GeoHashUtils.java", "license": "apache-2.0", "size": 17291 }
[ "org.elasticsearch.ElasticsearchIllegalArgumentException" ]
import org.elasticsearch.ElasticsearchIllegalArgumentException;
import org.elasticsearch.*;
[ "org.elasticsearch" ]
org.elasticsearch;
2,137,976
List<AssociationEnd> getAssociationEnds(Identifier type);
List<AssociationEnd> getAssociationEnds(Identifier type);
/** * Returns a list of association ends for the type reference. * * @param type * The type reference. * @return The type associations. */
Returns a list of association ends for the type reference
getAssociationEnds
{ "repo_name": "inbloom/secure-data-service", "path": "sli/modeling/uml/src/main/java/org/slc/sli/modeling/uml/index/ModelIndex.java", "license": "apache-2.0", "size": 3409 }
[ "java.util.List", "org.slc.sli.modeling.uml.AssociationEnd", "org.slc.sli.modeling.uml.Identifier" ]
import java.util.List; import org.slc.sli.modeling.uml.AssociationEnd; import org.slc.sli.modeling.uml.Identifier;
import java.util.*; import org.slc.sli.modeling.uml.*;
[ "java.util", "org.slc.sli" ]
java.util; org.slc.sli;
2,062,066
GenomeComparator getSelectionComparator();
GenomeComparator getSelectionComparator();
/** * Get the comparator that is used to choose the "best" genome for * selection, as opposed to the "true best". This uses the adjusted score, * and not the score. * <p/> * @return The selection comparator. */
Get the comparator that is used to choose the "best" genome for selection, as opposed to the "true best". This uses the adjusted score, and not the score.
getSelectionComparator
{ "repo_name": "ladygagapowerbot/bachelor-thesis-implementation", "path": "lib/Encog/src/main/java/org/encog/ml/ea/train/EvolutionaryAlgorithm.java", "license": "mit", "size": 7203 }
[ "org.encog.ml.ea.sort.GenomeComparator" ]
import org.encog.ml.ea.sort.GenomeComparator;
import org.encog.ml.ea.sort.*;
[ "org.encog.ml" ]
org.encog.ml;
2,006,644
private void commandLineReport(String reportName, String command) { System.err.println(reportName + ":"); Runtime rt = Runtime.getRuntime(); Writer logOutput = null; try { // Process must be fully qualified here because android.os.Process // is used elsewhere...
void function(String reportName, String command) { System.err.println(reportName + ":"); Runtime rt = Runtime.getRuntime(); Writer logOutput = null; try { java.lang.Process p = Runtime.getRuntime().exec(command); if (mRequestBugreport) { logOutput = new BufferedWriter(new FileWriter(new File(Environment .getLegacyExter...
/** * Print report from a single command line. * <p> * TODO: Use ProcessBuilder & redirectErrorStream(true) to capture both * streams (might be important for some command lines) * * @param reportName Simple tag that will print before the report and in * various annotations....
Print report from a single command line. streams (might be important for some command lines)
commandLineReport
{ "repo_name": "indashnet/InDashNet.Open.UN2000", "path": "android/development/cmds/monkey/src/com/android/commands/monkey/Monkey.java", "license": "apache-2.0", "size": 51180 }
[ "android.os.Environment", "android.os.Process", "java.io.BufferedReader", "java.io.BufferedWriter", "java.io.File", "java.io.FileWriter", "java.io.InputStream", "java.io.InputStreamReader", "java.io.Writer" ]
import android.os.Environment; import android.os.Process; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.InputStream; import java.io.InputStreamReader; import java.io.Writer;
import android.os.*; import java.io.*;
[ "android.os", "java.io" ]
android.os; java.io;
1,682,873
public static Collection<Sink> parseSinks(String raw, PulseaudioClient client) { Hashtable<String, Sink> sinks = new Hashtable<>(); String[] parts = raw.split("index: "); if (parts.length <= 1) { return sinks.values(); } // skip first part List<Sink> combi...
static Collection<Sink> function(String raw, PulseaudioClient client) { Hashtable<String, Sink> sinks = new Hashtable<>(); String[] parts = raw.split(STR); if (parts.length <= 1) { return sinks.values(); } List<Sink> combinedSinks = new ArrayList<>(); for (int i = 1; i < parts.length; i++) { String[] lines = parts[i].s...
/** * parses the pulseaudio servers answer to the list-sinks command and returns a list of * {@link Sink} objects * * @param raw the given string from the pulseaudio server * @return list of sinks */
parses the pulseaudio servers answer to the list-sinks command and returns a list of <code>Sink</code> objects
parseSinks
{ "repo_name": "theoweiss/openhab2", "path": "bundles/org.openhab.binding.pulseaudio/src/main/java/org/openhab/binding/pulseaudio/internal/cli/Parser.java", "license": "epl-1.0", "size": 16466 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Hashtable", "java.util.List", "java.util.regex.Matcher", "org.openhab.binding.pulseaudio.internal.PulseaudioClient", "org.openhab.binding.pulseaudio.internal.items.AbstractAudioDeviceConfig", "org.openhab.binding.pulseaudio.internal.items.Sink"...
import java.util.ArrayList; import java.util.Collection; import java.util.Hashtable; import java.util.List; import java.util.regex.Matcher; import org.openhab.binding.pulseaudio.internal.PulseaudioClient; import org.openhab.binding.pulseaudio.internal.items.AbstractAudioDeviceConfig; import org.openhab.binding.pulseaud...
import java.util.*; import java.util.regex.*; import org.openhab.binding.pulseaudio.internal.*; import org.openhab.binding.pulseaudio.internal.items.*;
[ "java.util", "org.openhab.binding" ]
java.util; org.openhab.binding;
744,209
protected void writeCallBackHandlers() throws Exception { if (codeGenConfiguration.isAsyncOn()) { Document interfaceModel = createDOMDocumentForCallbackHandler(); debugLogDocument("Document for callback handler:", interfaceModel); CallbackHandlerWriter callbackWriter = ...
void function() throws Exception { if (codeGenConfiguration.isAsyncOn()) { Document interfaceModel = createDOMDocumentForCallbackHandler(); debugLogDocument(STR, interfaceModel); CallbackHandlerWriter callbackWriter = new CallbackHandlerWriter( codeGenConfiguration.isFlattenFiles() ? getOutputDirectory(codeGenConfigura...
/** * Writes the callback handlers. */
Writes the callback handlers
writeCallBackHandlers
{ "repo_name": "apache/axis2-java", "path": "modules/codegen/src/org/apache/axis2/wsdl/codegen/emitter/AxisServiceBasedMultiLanguageEmitter.java", "license": "apache-2.0", "size": 144506 }
[ "org.apache.axis2.wsdl.codegen.writer.CallbackHandlerWriter", "org.w3c.dom.Document" ]
import org.apache.axis2.wsdl.codegen.writer.CallbackHandlerWriter; import org.w3c.dom.Document;
import org.apache.axis2.wsdl.codegen.writer.*; import org.w3c.dom.*;
[ "org.apache.axis2", "org.w3c.dom" ]
org.apache.axis2; org.w3c.dom;
1,151,657
protected Optional<ExpirationPolicy> getExpirationPolicyFor(final TicketState ticketState) { val name = getExpirationPolicyNameFor(ticketState); LOGGER.debug("Received expiration policy name [{}] to activate", name); if (StringUtils.isNotBlank(name) && policies.containsKey(name)) { ...
Optional<ExpirationPolicy> function(final TicketState ticketState) { val name = getExpirationPolicyNameFor(ticketState); LOGGER.debug(STR, name); if (StringUtils.isNotBlank(name) && policies.containsKey(name)) { val policy = policies.get(name); LOGGER.debug(STR, policy, name); return Optional.of(policy); } LOGGER.warn(...
/** * Gets expiration policy by its name. * * @param ticketState the ticket state * @return the expiration policy for */
Gets expiration policy by its name
getExpirationPolicyFor
{ "repo_name": "robertoschwald/cas", "path": "core/cas-server-core-tickets-api/src/main/java/org/apereo/cas/ticket/support/BaseDelegatingExpirationPolicy.java", "license": "apache-2.0", "size": 5468 }
[ "java.util.Optional", "org.apache.commons.lang3.StringUtils", "org.apereo.cas.ticket.ExpirationPolicy", "org.apereo.cas.ticket.TicketState" ]
import java.util.Optional; import org.apache.commons.lang3.StringUtils; import org.apereo.cas.ticket.ExpirationPolicy; import org.apereo.cas.ticket.TicketState;
import java.util.*; import org.apache.commons.lang3.*; import org.apereo.cas.ticket.*;
[ "java.util", "org.apache.commons", "org.apereo.cas" ]
java.util; org.apache.commons; org.apereo.cas;
2,896,902
private Object resolveInnerBean(Object argName, String innerBeanName, BeanDefinition innerBd) { RootBeanDefinition mbd = null; try { mbd = this.beanFactory.getMergedBeanDefinition(innerBeanName, innerBd, this.beanDefinition); // Check given bean name whether it is unique. If not already unique, // add c...
Object function(Object argName, String innerBeanName, BeanDefinition innerBd) { RootBeanDefinition mbd = null; try { mbd = this.beanFactory.getMergedBeanDefinition(innerBeanName, innerBd, this.beanDefinition); String actualInnerBeanName = innerBeanName; if (mbd.isSingleton()) { actualInnerBeanName = adaptInnerBeanName(...
/** * Resolve an inner bean definition. * @param argName the name of the argument that the inner bean is defined for * @param innerBeanName the name of the inner bean * @param innerBd the bean definition for the inner bean * @return the resolved inner bean instance */
Resolve an inner bean definition
resolveInnerBean
{ "repo_name": "deathspeeder/class-guard", "path": "spring-framework-3.2.x/spring-beans/src/main/java/org/springframework/beans/factory/support/BeanDefinitionValueResolver.java", "license": "gpl-2.0", "size": 15199 }
[ "org.springframework.beans.BeansException", "org.springframework.beans.factory.BeanCreationException", "org.springframework.beans.factory.FactoryBean", "org.springframework.beans.factory.config.BeanDefinition" ]
import org.springframework.beans.BeansException; import org.springframework.beans.factory.BeanCreationException; import org.springframework.beans.factory.FactoryBean; import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.*; import org.springframework.beans.factory.*; import org.springframework.beans.factory.config.*;
[ "org.springframework.beans" ]
org.springframework.beans;
1,308,644
protected void handleListenerException(Throwable ex) { if (ex instanceof MessageRejectedWhileStoppingException) { // Internal exception - has been handled before. return; } if (ex instanceof JMSException) { invokeExceptionListener((JMSException) ex); } if (isActive()) { // Regular case: failed ...
void function(Throwable ex) { if (ex instanceof MessageRejectedWhileStoppingException) { return; } if (ex instanceof JMSException) { invokeExceptionListener((JMSException) ex); } if (isActive()) { invokeErrorHandler(ex); } else { logger.debug(STR, ex); } }
/** * Handle the given exception that arose during listener execution. * <p>The default implementation logs the exception at warn level, * not propagating it to the JMS provider &mdash; assuming that all handling of * acknowledgement and/or transactions is done by this listener container. * This can be overri...
Handle the given exception that arose during listener execution. The default implementation logs the exception at warn level, not propagating it to the JMS provider &mdash; assuming that all handling of acknowledgement and/or transactions is done by this listener container. This can be overridden in subclasses
handleListenerException
{ "repo_name": "kingtang/spring-learn", "path": "spring-jms/src/main/java/org/springframework/jms/listener/AbstractMessageListenerContainer.java", "license": "gpl-3.0", "size": 29429 }
[ "javax.jms.JMSException" ]
import javax.jms.JMSException;
import javax.jms.*;
[ "javax.jms" ]
javax.jms;
1,409,273
//------------------------------------------------------------------------- public static Set<String> getAvailableZoneIds() { return new HashSet<>(ZONES.keySet()); } /** * Gets the rules for the zone ID. * <p> * This returns the latest available rules for the zone ID. * <p>...
static Set<String> function() { return new HashSet<>(ZONES.keySet()); } /** * Gets the rules for the zone ID. * <p> * This returns the latest available rules for the zone ID. * <p> * This method relies on time-zone data provider files that are configured. * These are loaded using a {@code ServiceLoader}. * <p> * The ca...
/** * Gets the set of available zone IDs. * <p> * These IDs are the string form of a {@link ZoneId}. * * @return a modifiable copy of the set of zone IDs, not null */
Gets the set of available zone IDs. These IDs are the string form of a <code>ZoneId</code>
getAvailableZoneIds
{ "repo_name": "flyzsd/java-code-snippets", "path": "ibm.jdk8/src/java/time/zone/ZoneRulesProvider.java", "license": "mit", "size": 19301 }
[ "java.time.ZoneId", "java.util.HashSet", "java.util.ServiceLoader", "java.util.Set" ]
import java.time.ZoneId; import java.util.HashSet; import java.util.ServiceLoader; import java.util.Set;
import java.time.*; import java.util.*;
[ "java.time", "java.util" ]
java.time; java.util;
2,218,382
public void setObservedDate(Date value) { try { entity.setObservedDate(value); } catch(Exception ex) { hasError = true; } }
void function(Date value) { try { entity.setObservedDate(value); } catch(Exception ex) { hasError = true; } }
/** * Setter for observedDate. * * @param value the value to set */
Setter for observedDate
setObservedDate
{ "repo_name": "OSEHRA/HealtheMe", "path": "src/main/java/com/krminc/phr/api/converter/MedicalEventConverter.java", "license": "apache-2.0", "size": 10715 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
447,033
public synchronized NodeType getAllowedLocalityLevel(Priority priority, int numNodes, double nodeLocalityThreshold, double rackLocalityThreshold) { // upper limit on threshold if (nodeLocalityThreshold > 1.0) { nodeLocalityThreshold = 1.0; } if (rackLocalityThreshold > 1.0) { rackLocalityThreshold =...
synchronized NodeType function(Priority priority, int numNodes, double nodeLocalityThreshold, double rackLocalityThreshold) { if (nodeLocalityThreshold > 1.0) { nodeLocalityThreshold = 1.0; } if (rackLocalityThreshold > 1.0) { rackLocalityThreshold = 1.0; } if (nodeLocalityThreshold < 0.0 rackLocalityThreshold < 0.0) {...
/** * Return the level at which we are allowed to schedule containers, given the * current size of the cluster and thresholds indicating how many nodes to * fail at (as a fraction of cluster size) before relaxing scheduling * constraints. */
Return the level at which we are allowed to schedule containers, given the current size of the cluster and thresholds indicating how many nodes to fail at (as a fraction of cluster size) before relaxing scheduling constraints
getAllowedLocalityLevel
{ "repo_name": "tecknowledgeable/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSAppAttempt.java", "license": "apache-2.0", "size": 29188 }
[ "org.apache.hadoop.yarn.api.records.Priority", "org.apache.hadoop.yarn.server.resourcemanager.scheduler.NodeType" ]
import org.apache.hadoop.yarn.api.records.Priority; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.NodeType;
import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
350,399
public void populateActionGraphBuilderWithCachedRules( BuckEventBus eventBus, TargetGraph targetGraph, ActionGraphBuilder graphBuilder) { int reusedRuleCount = 0; if (lastActionGraphBuilder != null) { Objects.requireNonNull(lastTargetGraph); // We first walk the new target graph to find new...
void function( BuckEventBus eventBus, TargetGraph targetGraph, ActionGraphBuilder graphBuilder) { int reusedRuleCount = 0; if (lastActionGraphBuilder != null) { Objects.requireNonNull(lastTargetGraph); Set<UnflavoredBuildTarget> unflavoredTargetsForNewNodes = findUnflavoredTargetsForNewNodes(targetGraph); Set<Unflavore...
/** * Populates the given {@link ActionGraphBuilder} with the rules from the previously used {@link * ActionGraphBuilder} that are deemed usable after checking for invalidations with a target graph * walk. */
Populates the given <code>ActionGraphBuilder</code> with the rules from the previously used <code>ActionGraphBuilder</code> that are deemed usable after checking for invalidations with a target graph walk
populateActionGraphBuilderWithCachedRules
{ "repo_name": "rmaz/buck", "path": "src/com/facebook/buck/core/model/actiongraph/computation/IncrementalActionGraphGenerator.java", "license": "apache-2.0", "size": 11508 }
[ "com.facebook.buck.core.model.UnflavoredBuildTarget", "com.facebook.buck.core.model.targetgraph.TargetGraph", "com.facebook.buck.core.rules.ActionGraphBuilder", "com.facebook.buck.event.ActionGraphEvent", "com.facebook.buck.event.BuckEventBus", "java.util.HashSet", "java.util.Objects", "java.util.Set"...
import com.facebook.buck.core.model.UnflavoredBuildTarget; import com.facebook.buck.core.model.targetgraph.TargetGraph; import com.facebook.buck.core.rules.ActionGraphBuilder; import com.facebook.buck.event.ActionGraphEvent; import com.facebook.buck.event.BuckEventBus; import java.util.HashSet; import java.util.Objects...
import com.facebook.buck.core.model.*; import com.facebook.buck.core.model.targetgraph.*; import com.facebook.buck.core.rules.*; import com.facebook.buck.event.*; import java.util.*;
[ "com.facebook.buck", "java.util" ]
com.facebook.buck; java.util;
2,853,444
@Test public void testBug41367() { VM client = replicate1; VM server = replicate2; server.invoke(() -> DistributedRegionFunctionExecutionDUnitTest.createCacheInVm_41367()); client.invoke(() -> DistributedRegionFunctionExecutionDUnitTest.createCacheInClientVm_41367()); Integer port1 = (Integer...
void function() { VM client = replicate1; VM server = replicate2; server.invoke(() -> DistributedRegionFunctionExecutionDUnitTest.createCacheInVm_41367()); client.invoke(() -> DistributedRegionFunctionExecutionDUnitTest.createCacheInClientVm_41367()); Integer port1 = (Integer) server.invoke( () -> DistributedRegionFunc...
/** * Test for bug41367: This test is to verify that * the"org.apache.geode.security.AuthenticationRequiredException: No security-* properties are * provided" is not thrown. We have to grep for this exception in logs for any occerence. */
Test for bug41367: This test is to verify that the"org.apache.geode.security.AuthenticationRequiredException: No security-* properties are provided" is not thrown. We have to grep for this exception in logs for any occerence
testBug41367
{ "repo_name": "pdxrunner/geode", "path": "geode-core/src/distributedTest/java/org/apache/geode/internal/cache/execute/DistributedRegionFunctionExecutionDUnitTest.java", "license": "apache-2.0", "size": 61533 }
[ "org.apache.geode.cache.DataPolicy", "org.junit.Assert" ]
import org.apache.geode.cache.DataPolicy; import org.junit.Assert;
import org.apache.geode.cache.*; import org.junit.*;
[ "org.apache.geode", "org.junit" ]
org.apache.geode; org.junit;
2,857,115
public SeleniumControlBuilder loginAction(BiConsumer<User, WebDriver> loginAction) { this.appLoginAction = loginAction; return this; }
SeleniumControlBuilder function(BiConsumer<User, WebDriver> loginAction) { this.appLoginAction = loginAction; return this; }
/** * Specify an action that should be executed to perform a login to the target application. * * @param loginAction * the login action to perform * * @return this builder */
Specify an action that should be executed to perform a login to the target application
loginAction
{ "repo_name": "tourniquet-io/tourniquet-junit", "path": "tourniquet-selenium/src/main/java/io/tourniquet/selenium/SeleniumControl.java", "license": "apache-2.0", "size": 10017 }
[ "java.util.function.BiConsumer", "org.openqa.selenium.WebDriver" ]
import java.util.function.BiConsumer; import org.openqa.selenium.WebDriver;
import java.util.function.*; import org.openqa.selenium.*;
[ "java.util", "org.openqa.selenium" ]
java.util; org.openqa.selenium;
446,696
@CheckResult public static TextViewDrawableMatcher withNoTextViewDrawableTop() { return new TextViewDrawableMatcher(NO_DRAWABLE, DRAWABLE_TOP); }
@CheckResult static TextViewDrawableMatcher function() { return new TextViewDrawableMatcher(NO_DRAWABLE, DRAWABLE_TOP); }
/** * Matches that there is no top drawable. * * <p>Example usage:</p> * <code>onView(withId(R.id.view)).check(matches(withNoTextViewDrawableTop()));</code> */
Matches that there is no top drawable. Example usage: <code>onView(withId(R.id.view)).check(matches(withNoTextViewDrawableTop()));</code>
withNoTextViewDrawableTop
{ "repo_name": "vanniktech/espresso-utils", "path": "espresso-core-utils/src/main/java/com/vanniktech/espresso/core/utils/TextViewDrawableMatcher.java", "license": "apache-2.0", "size": 9922 }
[ "androidx.annotation.CheckResult" ]
import androidx.annotation.CheckResult;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
698,793
static final Long getUserLong(Map<byte[], byte[]> map) { return getLong(map.get(USER), null); }
static final Long getUserLong(Map<byte[], byte[]> map) { return getLong(map.get(USER), null); }
/** * return the USER from the map * @param map * @return */
return the USER from the map
getUserLong
{ "repo_name": "beeldengeluid/zieook", "path": "backend/zieook-api/zieook-api-data/src/main/java/nl/gridline/zieook/model/ModelConstants.java", "license": "apache-2.0", "size": 18942 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,965,913
public static void drawPicture2(Graphics2D g2) { // Draw some stickmen. Stickman large = new Stickman(100,50,225,150); Stickman smallCC = new Stickman(20,50,40,30); Stickman tallSkinny = new Stickman(20,150,20,40); Stickman shortFat = new Stickman(20,250,40,20); g2.setColor(Color.RED); g2.dr...
static void function(Graphics2D g2) { Stickman large = new Stickman(100,50,225,150); Stickman smallCC = new Stickman(20,50,40,30); Stickman tallSkinny = new Stickman(20,150,20,40); Stickman shortFat = new Stickman(20,250,40,20); g2.setColor(Color.RED); g2.draw(large); g2.setColor(Color.GREEN); g2.draw(smallCC); g2.setC...
/** Draw a picture with a few faces and coffee cups */
Draw a picture with a few faces and coffee cups
drawPicture2
{ "repo_name": "UCSB-CS56-W15/W15-lab04", "path": "src/edu/ucsb/cs56/w15/drawings/calebnelson/advanced/AllMyDrawings.java", "license": "mit", "size": 4935 }
[ "edu.ucsb.cs56.w15.drawings.utilities.ShapeTransforms", "java.awt.BasicStroke", "java.awt.Graphics2D", "java.awt.Stroke" ]
import edu.ucsb.cs56.w15.drawings.utilities.ShapeTransforms; import java.awt.BasicStroke; import java.awt.Graphics2D; import java.awt.Stroke;
import edu.ucsb.cs56.w15.drawings.utilities.*; import java.awt.*;
[ "edu.ucsb.cs56", "java.awt" ]
edu.ucsb.cs56; java.awt;
2,114,862
void onJobExecuted(@Nullable JobExecutionResult jobExecutionResult, @Nullable Throwable throwable);
void onJobExecuted(@Nullable JobExecutionResult jobExecutionResult, @Nullable Throwable throwable);
/** * Callback on job execution finished, successfully or unsuccessfully. It is only called * back when you call {@code execute()} instead of {@code executeAsync()} methods of execution * environments. * * <p>Exactly one of the passed parameters is null, respectively for failure or success. */
Callback on job execution finished, successfully or unsuccessfully. It is only called back when you call execute() instead of executeAsync() methods of execution environments. Exactly one of the passed parameters is null, respectively for failure or success
onJobExecuted
{ "repo_name": "hequn8128/flink", "path": "flink-core/src/main/java/org/apache/flink/core/execution/JobListener.java", "license": "apache-2.0", "size": 2232 }
[ "javax.annotation.Nullable", "org.apache.flink.api.common.JobExecutionResult" ]
import javax.annotation.Nullable; import org.apache.flink.api.common.JobExecutionResult;
import javax.annotation.*; import org.apache.flink.api.common.*;
[ "javax.annotation", "org.apache.flink" ]
javax.annotation; org.apache.flink;
1,580,100
@Override protected Point getInitialSize() { return new Point(550, 350); }
Point function() { return new Point(550, 350); }
/** * Return the initial size of the dialog. */
Return the initial size of the dialog
getInitialSize
{ "repo_name": "JKatzwinkel/bts", "path": "org.bbaw.bts.ui.corpus.egy/src/org/bbaw/bts/ui/egy/dialogs/CheckTextDialog.java", "license": "lgpl-3.0", "size": 5162 }
[ "org.eclipse.swt.graphics.Point" ]
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,954,979
public void insert(Connection con) throws SQLException { String sql = "select * from T_Articles where F_ArticleID=?"; PreparedStatement stmt = null; ResultSet rs = null; try { stmt = con.prepareStatement(sql,ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_UPDATABLE); stmt.setInt(1, articleid_); stmt...
void function(Connection con) throws SQLException { String sql = STR; PreparedStatement stmt = null; ResultSet rs = null; try { stmt = con.prepareStatement(sql,ResultSet.TYPE_FORWARD_ONLY,ResultSet.CONCUR_UPDATABLE); stmt.setInt(1, articleid_); stmt.setFetchSize(1); rs = stmt.executeQuery(); rs.moveToInsertRow(); if (s...
/** * Insert record in table with current data object. * */
Insert record in table with current data object
insert
{ "repo_name": "tedwen/transmem", "path": "src/com/transmem/data/db/Articles.java", "license": "apache-2.0", "size": 15798 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,557,709
private ColorSpaceConverter getConverter(ICC_Profile profile) { ColorSpaceConverter converter; switch (profile.isPredefined()) { case CS_sRGB: converter = new SrgbConverter(); break; case CS_CIEXYZ: converter = new CieXyzConverter(); break; case CS_GRAY: converter = new GrayScal...
ColorSpaceConverter function(ICC_Profile profile) { ColorSpaceConverter converter; switch (profile.isPredefined()) { case CS_sRGB: converter = new SrgbConverter(); break; case CS_CIEXYZ: converter = new CieXyzConverter(); break; case CS_GRAY: converter = new GrayScaleConverter(); break; case CS_LINEAR_RGB: converter = ...
/** * Returns a colorspace converter suitable for a given profile */
Returns a colorspace converter suitable for a given profile
getConverter
{ "repo_name": "unofficial-opensource-apple/gcc_40", "path": "libjava/java/awt/color/ICC_ColorSpace.java", "license": "gpl-2.0", "size": 9009 }
[ "gnu.java.awt.color.CieXyzConverter", "gnu.java.awt.color.ClutProfileConverter", "gnu.java.awt.color.ColorSpaceConverter", "gnu.java.awt.color.GrayProfileConverter", "gnu.java.awt.color.GrayScaleConverter", "gnu.java.awt.color.LinearRGBConverter", "gnu.java.awt.color.PyccConverter", "gnu.java.awt.colo...
import gnu.java.awt.color.CieXyzConverter; import gnu.java.awt.color.ClutProfileConverter; import gnu.java.awt.color.ColorSpaceConverter; import gnu.java.awt.color.GrayProfileConverter; import gnu.java.awt.color.GrayScaleConverter; import gnu.java.awt.color.LinearRGBConverter; import gnu.java.awt.color.PyccConverter; i...
import gnu.java.awt.color.*;
[ "gnu.java.awt" ]
gnu.java.awt;
796,930
void stateChanged(MPDStatus mpdStatus, String oldState);
void stateChanged(MPDStatus mpdStatus, String oldState);
/** * Called when MPD state changes on server. * * @param mpdStatus * MPDStatus after event. * * @param oldState * previous state. */
Called when MPD state changes on server
stateChanged
{ "repo_name": "eisnerd/mupeace", "path": "JMPDComm/src/org/a0z/mpd/event/StatusChangeListener.java", "license": "apache-2.0", "size": 2205 }
[ "org.a0z.mpd.MPDStatus" ]
import org.a0z.mpd.MPDStatus;
import org.a0z.mpd.*;
[ "org.a0z.mpd" ]
org.a0z.mpd;
2,274,647
public static CleanupSnapshotTaskParameters deserialize(String taskParameters) { JaxbJsonSerializer<CleanupSnapshotTaskParameters> serializer = new JaxbJsonSerializer<>(CleanupSnapshotTaskParameters.class); try { CleanupSnapshotTaskParameters params = serializ...
static CleanupSnapshotTaskParameters function(String taskParameters) { JaxbJsonSerializer<CleanupSnapshotTaskParameters> serializer = new JaxbJsonSerializer<>(CleanupSnapshotTaskParameters.class); try { CleanupSnapshotTaskParameters params = serializer.deserialize(taskParameters); if (null == params.getSpaceId() params...
/** * Parses properties from task parameter string * * @param taskParameters - JSON formatted set of parameters */
Parses properties from task parameter string
deserialize
{ "repo_name": "duracloud/duracloud", "path": "snapshotdata/src/main/java/org/duracloud/snapshot/dto/task/CleanupSnapshotTaskParameters.java", "license": "apache-2.0", "size": 2431 }
[ "java.io.IOException", "org.duracloud.common.json.JaxbJsonSerializer", "org.duracloud.snapshot.error.SnapshotDataException" ]
import java.io.IOException; import org.duracloud.common.json.JaxbJsonSerializer; import org.duracloud.snapshot.error.SnapshotDataException;
import java.io.*; import org.duracloud.common.json.*; import org.duracloud.snapshot.error.*;
[ "java.io", "org.duracloud.common", "org.duracloud.snapshot" ]
java.io; org.duracloud.common; org.duracloud.snapshot;
1,685,624
protected Object convertFromMessage(Message message, JavaType targetJavaType) throws JMSException, IOException { throw new IllegalArgumentException("Unsupported message type [" + message.getClass() + "]. MappingJacksonMessageConverter by default only supports TextMessages and BytesMessages."); }
Object function(Message message, JavaType targetJavaType) throws JMSException, IOException { throw new IllegalArgumentException(STR + message.getClass() + STR); }
/** * Template method that allows for custom message mapping. * Invoked when {@link #setTargetType} is not {@link MessageType#TEXT} or * {@link MessageType#BYTES}. * <p>The default implementation throws an {@link IllegalArgumentException}. * @param message the input message * @param targetJavaType the targe...
Template method that allows for custom message mapping. Invoked when <code>#setTargetType</code> is not <code>MessageType#TEXT</code> or <code>MessageType#BYTES</code>. The default implementation throws an <code>IllegalArgumentException</code>
convertFromMessage
{ "repo_name": "kingtang/spring-learn", "path": "spring-jms/src/main/java/org/springframework/jms/support/converter/MappingJacksonMessageConverter.java", "license": "gpl-3.0", "size": 13824 }
[ "java.io.IOException", "javax.jms.JMSException", "javax.jms.Message", "org.codehaus.jackson.type.JavaType" ]
import java.io.IOException; import javax.jms.JMSException; import javax.jms.Message; import org.codehaus.jackson.type.JavaType;
import java.io.*; import javax.jms.*; import org.codehaus.jackson.type.*;
[ "java.io", "javax.jms", "org.codehaus.jackson" ]
java.io; javax.jms; org.codehaus.jackson;
1,709,801
Integer changePasswordsAtLogonAndSendEmails(List<UUID> userIds);
Integer changePasswordsAtLogonAndSendEmails(List<UUID> userIds);
/** * Update passwords for specified users, send them emails with new generated passwords and make them change * passwords at next logon. * * @param userIds User ids * @return Count of users */
Update passwords for specified users, send them emails with new generated passwords and make them change passwords at next logon
changePasswordsAtLogonAndSendEmails
{ "repo_name": "dimone-kun/cuba", "path": "modules/global/src/com/haulmont/cuba/security/app/UserManagementService.java", "license": "apache-2.0", "size": 4590 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,552,438