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
MapReduceJobBuilder createJobBuilder( LogChannelInterface log, VariableSpace variableSpace );
MapReduceJobBuilder createJobBuilder( LogChannelInterface log, VariableSpace variableSpace );
/** * Returns a MapReduceJobBuilder for configuring and launching a more complex MapReduce job * * @param log the log * @param variableSpace the variable space * @return a MapReduceJobBuilder */
Returns a MapReduceJobBuilder for configuring and launching a more complex MapReduce job
createJobBuilder
{ "repo_name": "bytekast/big-data-plugin", "path": "api/mapreduce/src/main/java/org/pentaho/bigdata/api/mapreduce/MapReduceService.java", "license": "apache-2.0", "size": 2647 }
[ "org.pentaho.di.core.logging.LogChannelInterface", "org.pentaho.di.core.variables.VariableSpace" ]
import org.pentaho.di.core.logging.LogChannelInterface; import org.pentaho.di.core.variables.VariableSpace;
import org.pentaho.di.core.logging.*; import org.pentaho.di.core.variables.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,379,252
public Pattern getJarUnpackPattern() { return getPattern(JobContext.JAR_UNPACK_PATTERN, UNPACK_JAR_PATTERN_DEFAULT); }
Pattern function() { return getPattern(JobContext.JAR_UNPACK_PATTERN, UNPACK_JAR_PATTERN_DEFAULT); }
/** * Get the pattern for jar contents to unpack on the tasktracker */
Get the pattern for jar contents to unpack on the tasktracker
getJarUnpackPattern
{ "repo_name": "Microsoft-CISL/hadoop-prototype", "path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobConf.java", "license": "apache-2.0", "size": 69457 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
775,478
private void refreshLoadedPlugins() { try { List<PluginExecInfo> plugins = server.getExecPluginsInfo(); java.util.Collections.sort(plugins, getPluginExecInfoComparatorId()); loadedPluginsPanel.removeAll();
void function() { try { List<PluginExecInfo> plugins = server.getExecPluginsInfo(); java.util.Collections.sort(plugins, getPluginExecInfoComparatorId()); loadedPluginsPanel.removeAll();
/** * Refresh the list of loaded plugins * * @throws RemoteException */
Refresh the list of loaded plugins
refreshLoadedPlugins
{ "repo_name": "santiagorp/bitcointrader", "path": "src/swingClient/src/main/java/com/srp/trading/client/gui/SwingClient.java", "license": "gpl-2.0", "size": 22500 }
[ "com.srp.trading.core.PluginExecInfo", "java.util.List" ]
import com.srp.trading.core.PluginExecInfo; import java.util.List;
import com.srp.trading.core.*; import java.util.*;
[ "com.srp.trading", "java.util" ]
com.srp.trading; java.util;
114,178
public RdfStream bodyToInternalStream(final String extResourceId, final InputStream stream, final MediaType contentType, final HttpIdentifierConverter idTranslator) throws RepositoryRuntimeException, BadRequestException { fi...
RdfStream function(final String extResourceId, final InputStream stream, final MediaType contentType, final HttpIdentifierConverter idTranslator) throws RepositoryRuntimeException, BadRequestException { final Model model = bodyToInternalModel(extResourceId, stream, contentType, idTranslator); return fromModel(model.get...
/** * Parse the request body to a RdfStream, with the URI to Fedora ID translations done. * * @param extResourceId the external ID of the Fedora resource * @param stream the input stream containing the RDF * @param contentType the media type of the RDF * @param idTranslator the identifier ...
Parse the request body to a RdfStream, with the URI to Fedora ID translations done
bodyToInternalStream
{ "repo_name": "fcrepo4/fcrepo4", "path": "fcrepo-http-api/src/main/java/org/fcrepo/http/api/services/HttpRdfService.java", "license": "apache-2.0", "size": 10403 }
[ "java.io.InputStream", "javax.ws.rs.BadRequestException", "javax.ws.rs.core.MediaType", "org.apache.jena.rdf.model.Model", "org.fcrepo.http.commons.api.rdf.HttpIdentifierConverter", "org.fcrepo.kernel.api.RdfStream", "org.fcrepo.kernel.api.exception.RepositoryRuntimeException", "org.fcrepo.kernel.api....
import java.io.InputStream; import javax.ws.rs.BadRequestException; import javax.ws.rs.core.MediaType; import org.apache.jena.rdf.model.Model; import org.fcrepo.http.commons.api.rdf.HttpIdentifierConverter; import org.fcrepo.kernel.api.RdfStream; import org.fcrepo.kernel.api.exception.RepositoryRuntimeException; import...
import java.io.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.apache.jena.rdf.model.*; import org.fcrepo.http.commons.api.rdf.*; import org.fcrepo.kernel.api.*; import org.fcrepo.kernel.api.exception.*; import org.fcrepo.kernel.api.rdf.*;
[ "java.io", "javax.ws", "org.apache.jena", "org.fcrepo.http", "org.fcrepo.kernel" ]
java.io; javax.ws; org.apache.jena; org.fcrepo.http; org.fcrepo.kernel;
953,882
private void setScale() { Vector3f scaleRef = new Vector3f(); float scaling; //iterate over the range, go over by one step to accommodate mathematical error for(float timeElp=0;timeElp<(this.time+(this.time/this.timeDivision));timeElp+=(this.time/this.timeDivisi...
void function() { Vector3f scaleRef = new Vector3f(); float scaling; for(float timeElp=0;timeElp<(this.time+(this.time/this.timeDivision));timeElp+=(this.time/this.timeDivision)) { if(timeElp<(this.time/2)) scaling = (timeElp/this.time)*10; else scaling = ((1-timeElp/this.time)*10); scaleRef.x = scaling; scaleRef.y = s...
/** * Sets the test scale, a scaling from 0 to 5 and back again. */
Sets the test scale, a scaling from 0 to 5 and back again
setScale
{ "repo_name": "tectronics/xenogeddon", "path": "src/jmetest/renderer/TestSpatialTransform.java", "license": "gpl-2.0", "size": 8831 }
[ "com.jme.math.Vector3f" ]
import com.jme.math.Vector3f;
import com.jme.math.*;
[ "com.jme.math" ]
com.jme.math;
2,627,076
public static AWTKeyStroke getAWTKeyStroke(char keyChar) { return getCachedStroke(keyChar, KeyEvent.VK_UNDEFINED, 0, false); } /** * Returns a shared instance of an {@code AWTKeyStroke}
static AWTKeyStroke function(char keyChar) { return getCachedStroke(keyChar, KeyEvent.VK_UNDEFINED, 0, false); } /** * Returns a shared instance of an {@code AWTKeyStroke}
/** * Returns a shared instance of an <code>AWTKeyStroke</code> * that represents a <code>KEY_TYPED</code> event for the * specified character. * * @param keyChar the character value for a keyboard key * @return an <code>AWTKeyStroke</code> object for that key */
Returns a shared instance of an <code>AWTKeyStroke</code> that represents a <code>KEY_TYPED</code> event for the specified character
getAWTKeyStroke
{ "repo_name": "Taichi-SHINDO/jdk9-jdk", "path": "src/java.desktop/share/classes/java/awt/AWTKeyStroke.java", "license": "gpl-2.0", "size": 34616 }
[ "java.awt.event.KeyEvent" ]
import java.awt.event.KeyEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
1,371,181
public Font getFont() { return tree.getFont(); }
Font function() { return tree.getFont(); }
/** * Gets the Font of this object. * * @return the font for the current node */
Gets the Font of this object
getFont
{ "repo_name": "shaotuanchen/sunflower_exp", "path": "tools/source/gcc-4.2.4/libjava/classpath/javax/swing/JTree.java", "license": "bsd-3-clause", "size": 80712 }
[ "java.awt.Font" ]
import java.awt.Font;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,667,656
public void removeNumber() { Map<String, String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); String value = params.get(PARAM_VALUE); LOGGER.trace("Removing Number: " + value); for (PhonenumberDto number : bean.getPerson().getPhonenumbers(...
void function() { Map<String, String> params = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap(); String value = params.get(PARAM_VALUE); LOGGER.trace(STR + value); for (PhonenumberDto number : bean.getPerson().getPhonenumbers()) { if (value.equals(number.getValue())) { bean.getPerson().ge...
/** * Removes the given number (GET/POST Parameter "value") from the person */
Removes the given number (GET/POST Parameter "value") from the person
removeNumber
{ "repo_name": "chr-krenn/chr-krenn-fhj-ws2016-sd14-pse", "path": "frontend/frontend-impl/src/main/java/at/fhj/swd14/pse/person/tools/LoggedInPersonPageHandler.java", "license": "mit", "size": 13778 }
[ "at.fhj.swd14.pse.person.PhonenumberDto", "java.util.Map", "javax.faces.context.FacesContext" ]
import at.fhj.swd14.pse.person.PhonenumberDto; import java.util.Map; import javax.faces.context.FacesContext;
import at.fhj.swd14.pse.person.*; import java.util.*; import javax.faces.context.*;
[ "at.fhj.swd14", "java.util", "javax.faces" ]
at.fhj.swd14; java.util; javax.faces;
907,675
public PrimaryAudioSource getPrimaryAudioSource() { Object obj = store.get(KEY_PRIMARY_AUDIO_SOURCE); if (obj instanceof PrimaryAudioSource) { return (PrimaryAudioSource) obj; } else if (obj instanceof String) { return PrimaryAudioSource.valueForString((String) obj)...
PrimaryAudioSource function() { Object obj = store.get(KEY_PRIMARY_AUDIO_SOURCE); if (obj instanceof PrimaryAudioSource) { return (PrimaryAudioSource) obj; } else if (obj instanceof String) { return PrimaryAudioSource.valueForString((String) obj); } return null; }
/** * get the current primary audio source of SDL (if selected). * @return the current primary audio source of SDL (if selected). */
get the current primary audio source of SDL (if selected)
getPrimaryAudioSource
{ "repo_name": "mrapitis/sdl_android", "path": "sdl_android_lib/src/com/smartdevicelink/proxy/rpc/DeviceStatus.java", "license": "bsd-3-clause", "size": 10830 }
[ "com.smartdevicelink.proxy.rpc.enums.PrimaryAudioSource" ]
import com.smartdevicelink.proxy.rpc.enums.PrimaryAudioSource;
import com.smartdevicelink.proxy.rpc.enums.*;
[ "com.smartdevicelink.proxy" ]
com.smartdevicelink.proxy;
56,730
public AuthResult loginToResource(String name, String password, String resourceName) throws DatabaseCommunicationException;
AuthResult function(String name, String password, String resourceName) throws DatabaseCommunicationException;
/** * <p> * A method used for authentication to a specific relying party * selected by a subject during login process. * </p> * * @param name * The name of the account a subject is trying to log to * (The account is present on one of the relying parties ...
A method used for authentication to a specific relying party selected by a subject during login process.
loginToResource
{ "repo_name": "eriksuta/fidm", "path": "fidm/src/main/java/com/esuta/fidm/model/auth/IAuthService.java", "license": "apache-2.0", "size": 2211 }
[ "com.esuta.fidm.infra.exception.DatabaseCommunicationException" ]
import com.esuta.fidm.infra.exception.DatabaseCommunicationException;
import com.esuta.fidm.infra.exception.*;
[ "com.esuta.fidm" ]
com.esuta.fidm;
2,865,274
public @Nullable WSBindingProvider getBindingProvider() { return bindingProvider; }
@Nullable WSBindingProvider function() { return bindingProvider; }
/** * The pipeline is created for this {@link WSBindingProvider}. * Nullable incase of backwards compatible usages of this class. */
The pipeline is created for this <code>WSBindingProvider</code>. Nullable incase of backwards compatible usages of this class
getBindingProvider
{ "repo_name": "FauxFaux/jdk9-jaxws", "path": "src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/pipe/ClientTubeAssemblerContext.java", "license": "gpl-2.0", "size": 14309 }
[ "com.sun.istack.internal.Nullable", "com.sun.xml.internal.ws.developer.WSBindingProvider" ]
import com.sun.istack.internal.Nullable; import com.sun.xml.internal.ws.developer.WSBindingProvider;
import com.sun.istack.internal.*; import com.sun.xml.internal.ws.developer.*;
[ "com.sun.istack", "com.sun.xml" ]
com.sun.istack; com.sun.xml;
2,429,232
public TypeCode get_typecode() throws TypeMismatch, InvalidValue { throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE); }
TypeCode 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_typecode
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/org/omg/DynamicAny/_DynUnionStub.java", "license": "gpl-2.0", "size": 16960 }
[ "org.omg.CORBA", "org.omg.DynamicAny" ]
import org.omg.CORBA; import org.omg.DynamicAny;
import org.omg.*;
[ "org.omg" ]
org.omg;
1,584,957
public static boolean equals(final PageParameters p1, final PageParameters p2) { if (Objects.equal(p1, p2)) { return true; } if ((p1 == null) && (p2.getIndexedCount() == 0) && p2.getNamedKeys().isEmpty()) { return true; } if ((p2 == null) && (p1.getIndexedCount() == 0) && p1.getNamedKeys().isEmp...
static boolean function(final PageParameters p1, final PageParameters p2) { if (Objects.equal(p1, p2)) { return true; } if ((p1 == null) && (p2.getIndexedCount() == 0) && p2.getNamedKeys().isEmpty()) { return true; } if ((p2 == null) && (p1.getIndexedCount() == 0) && p1.getNamedKeys().isEmpty()) { return true; } return...
/** * Compares two {@link PageParameters} objects. * * @param p1 * @param p2 * @return <code>true</code> if the objects are equal, <code>false</code> otherwise. */
Compares two <code>PageParameters</code> objects
equals
{ "repo_name": "afiantara/apache-wicket-1.5.7", "path": "src/wicket-request/src/main/java/org/apache/wicket/request/mapper/parameter/PageParameters.java", "license": "apache-2.0", "size": 15672 }
[ "org.apache.wicket.util.lang.Objects" ]
import org.apache.wicket.util.lang.Objects;
import org.apache.wicket.util.lang.*;
[ "org.apache.wicket" ]
org.apache.wicket;
1,927,493
@Override public void enterEveryRule(@NotNull ParserRuleContext ctx) { }
@Override public void enterEveryRule(@NotNull ParserRuleContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitCell
{ "repo_name": "tcoenraad/compiler-construction", "path": "block-3/pp/block3/cc/tabular/TabularBaseListener.java", "license": "mit", "size": 2170 }
[ "org.antlr.v4.runtime.ParserRuleContext", "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.ParserRuleContext; import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.*; import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
2,436,452
public boolean supports(AuthenticationToken token) { return token != null && getAuthenticationTokenClass().isAssignableFrom(token.getClass()); }
boolean function(AuthenticationToken token) { return token != null && getAuthenticationTokenClass().isAssignableFrom(token.getClass()); }
/** * Convenience implementation that returns * <tt>getAuthenticationTokenClass().isAssignableFrom( token.getClass() );</tt>. Can be overridden * by subclasses for more complex token checking. * <p>Most configurations will only need to set a different class via * {@link #setAuthenticationToken...
Convenience implementation that returns getAuthenticationTokenClass().isAssignableFrom( token.getClass() );. Can be overridden by subclasses for more complex token checking. Most configurations will only need to set a different class via <code>#setAuthenticationTokenClass</code>, as opposed to overriding this method
supports
{ "repo_name": "Kevin2030/shiro", "path": "core/src/main/java/org/apache/shiro/realm/AuthenticatingRealm.java", "license": "apache-2.0", "size": 11856 }
[ "org.apache.shiro.authc.AuthenticationToken" ]
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.*;
[ "org.apache.shiro" ]
org.apache.shiro;
1,985,045
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public com.iucn.whp.dbservice.model.iucn_region getiucn_region( int iucn_region_id) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) com.iucn.whp.dbservice.model.iucn_region function( int iucn_region_id) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException;
/** * Returns the iucn_region with the primary key. * * @param iucn_region_id the primary key of the iucn_region * @return the iucn_region * @throws PortalException if a iucn_region with the primary key could not be found * @throws SystemException if a system exception occurred */
Returns the iucn_region with the primary key
getiucn_region
{ "repo_name": "iucn-whp/world-heritage-outlook", "path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/service/iucn_regionLocalService.java", "license": "gpl-2.0", "size": 11169 }
[ "com.liferay.portal.kernel.exception.PortalException", "com.liferay.portal.kernel.exception.SystemException", "com.liferay.portal.kernel.transaction.Propagation", "com.liferay.portal.kernel.transaction.Transactional" ]
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.transaction.Propagation; import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.transaction.*;
[ "com.liferay.portal" ]
com.liferay.portal;
933,318
public static long idFromFilename(String filename) { Matcher matcher = COMMIT_LOG_FILE_PATTERN.matcher(filename); try { if (matcher.matches()) return Long.valueOf(matcher.group(1)); else return -1L; } catch (NumberFo...
static long function(String filename) { Matcher matcher = COMMIT_LOG_FILE_PATTERN.matcher(filename); try { if (matcher.matches()) return Long.valueOf(matcher.group(1)); else return -1L; } catch (NumberFormatException e) { return -1L; } }
/** * Extracts the commit log ID from filename * * @param filename the filename of the commit log file * @return the extracted commit log ID */
Extracts the commit log ID from filename
idFromFilename
{ "repo_name": "gmargari/apache-cassandra-1.1.0-src", "path": "src/java/org/apache/cassandra/db/commitlog/CommitLogSegment.java", "license": "apache-2.0", "size": 12002 }
[ "java.util.regex.Matcher" ]
import java.util.regex.Matcher;
import java.util.regex.*;
[ "java.util" ]
java.util;
656,820
private void removePath( InternalWorkingMemory[] wms, RuleRemovalContext context, Map<Integer, BaseNode> stillInUse, Collection<ObjectSource> alphas, PathEndNode endNode ) { LeftTupleNode[] nodes = endNode.getPathNodes(); for (int i = endNode.getPositionInPath(); i >= 0; i--) { BaseNode ...
void function( InternalWorkingMemory[] wms, RuleRemovalContext context, Map<Integer, BaseNode> stillInUse, Collection<ObjectSource> alphas, PathEndNode endNode ) { LeftTupleNode[] nodes = endNode.getPathNodes(); for (int i = endNode.getPositionInPath(); i >= 0; i--) { BaseNode node = (BaseNode) nodes[i]; boolean remove...
/** * Path's must be removed starting from the outer most path, iterating towards the inner most path. * Each time it reaches a subnetwork beta node, the current path evaluation ends, and instead the subnetwork * path continues. */
Path's must be removed starting from the outer most path, iterating towards the inner most path. Each time it reaches a subnetwork beta node, the current path evaluation ends, and instead the subnetwork path continues
removePath
{ "repo_name": "ngs-mtech/drools", "path": "drools-core/src/main/java/org/drools/core/reteoo/ReteooBuilder.java", "license": "apache-2.0", "size": 19134 }
[ "java.util.Collection", "java.util.Map", "org.drools.core.common.BaseNode", "org.drools.core.common.InternalWorkingMemory" ]
import java.util.Collection; import java.util.Map; import org.drools.core.common.BaseNode; import org.drools.core.common.InternalWorkingMemory;
import java.util.*; import org.drools.core.common.*;
[ "java.util", "org.drools.core" ]
java.util; org.drools.core;
1,129,125
public Map<String, ICounter> getAll();
Map<String, ICounter> function();
/** * Returns an immutable map of title:counter with all of the counters in the store. * * (Note - this method may be slow - primarily for debugging/UI) */
Returns an immutable map of title:counter with all of the counters in the store. (Note - this method may be slow - primarily for debugging/UI)
getAll
{ "repo_name": "phisolani/floodlight", "path": "src/main/java/net/floodlightcontroller/counter/ICounterStoreService.java", "license": "apache-2.0", "size": 2966 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,498,062
public ISipService getConnectedService() { return service; }
ISipService function() { return service; }
/** * Get connected sip service. * @return connected sip service from the activity if already connected. Null else. */
Get connected sip service
getConnectedService
{ "repo_name": "caihongwang/ChatMe", "path": "src/com/csipsimple/ui/outgoingcall/OutgoingCallChooser.java", "license": "lgpl-3.0", "size": 8304 }
[ "com.csipsimple.api.ISipService" ]
import com.csipsimple.api.ISipService;
import com.csipsimple.api.*;
[ "com.csipsimple.api" ]
com.csipsimple.api;
925,991
public boolean registerNewProfileCredentialsFallback(RegisterNewUserCredentialsRequestCommand requestMessage) { log.error("registerNewProfileCredentialsFallback called, something went wrong with security profile registration"); return false; }
boolean function(RegisterNewUserCredentialsRequestCommand requestMessage) { log.error(STR); return false; }
/** * Fallback method called by Hystrix when registration of the security profile fails * @param requestMessage * @return */
Fallback method called by Hystrix when registration of the security profile fails
registerNewProfileCredentialsFallback
{ "repo_name": "tjazi-com/security", "path": "core/src/main/java/com/tjazi/security/core/service/controller/SecurityProfilePersisterController.java", "license": "apache-2.0", "size": 2075 }
[ "com.tjazi.security.messages.RegisterNewUserCredentialsRequestCommand" ]
import com.tjazi.security.messages.RegisterNewUserCredentialsRequestCommand;
import com.tjazi.security.messages.*;
[ "com.tjazi.security" ]
com.tjazi.security;
2,706,595
public static void waitUntilElementIsInvisible(final MobileElement element) { waitUntilElementIsInvisible(element.getLocator()); }
static void function(final MobileElement element) { waitUntilElementIsInvisible(element.getLocator()); }
/** * Waits until element is either invisible or not present on the DOM. * * @param element * element to be found */
Waits until element is either invisible or not present on the DOM
waitUntilElementIsInvisible
{ "repo_name": "paypal/SeLion", "path": "client/src/main/java/com/paypal/selion/platform/utilities/WebDriverWaitUtils.java", "license": "apache-2.0", "size": 11432 }
[ "com.paypal.selion.platform.mobile.elements.MobileElement" ]
import com.paypal.selion.platform.mobile.elements.MobileElement;
import com.paypal.selion.platform.mobile.elements.*;
[ "com.paypal.selion" ]
com.paypal.selion;
2,873,329
ISteamflakeTmIfDirective addIfDirective( Optional<IFileOrigin> origin, String boolCondition );
ISteamflakeTmIfDirective addIfDirective( Optional<IFileOrigin> origin, String boolCondition );
/** * Creates a new if directive within this rule. * * @param origin the source file location of the new directive. * @param boolCondition the condition to test for the directive. * * @return the newly created directive. */
Creates a new if directive within this rule
addIfDirective
{ "repo_name": "martin-nordberg/steamflake", "path": "steamflake-templates/domain/steamflake-template-model/src/main/java/org/steamflake/templates/domain/model/api/elements/ISteamflakeTmDirectiveSequence.java", "license": "apache-2.0", "size": 3457 }
[ "java.util.Optional", "org.steamflake.core.domain.base.model.api.utilities.IFileOrigin", "org.steamflake.templates.domain.model.api.directives.logic.ISteamflakeTmIfDirective" ]
import java.util.Optional; import org.steamflake.core.domain.base.model.api.utilities.IFileOrigin; import org.steamflake.templates.domain.model.api.directives.logic.ISteamflakeTmIfDirective;
import java.util.*; import org.steamflake.core.domain.base.model.api.utilities.*; import org.steamflake.templates.domain.model.api.directives.logic.*;
[ "java.util", "org.steamflake.core", "org.steamflake.templates" ]
java.util; org.steamflake.core; org.steamflake.templates;
2,881,658
@Override public void onPartitionsAssigned(final Collection<TopicPartition> partitions) { logger.debug("Rebalance Alert: Paritions '{}' assigned for lease '{}' with consumer '{}'", new Object[]{partitions, this, kafkaConsumer}); }
void function(final Collection<TopicPartition> partitions) { logger.debug(STR, new Object[]{partitions, this, kafkaConsumer}); }
/** * This will be called by Kafka when the rebalance has completed. We don't * need to do anything with this information other than optionally log it as * by this point we've committed what we've got and moved on. * * @param partitions topic partition set being reassigned */
This will be called by Kafka when the rebalance has completed. We don't need to do anything with this information other than optionally log it as by this point we've committed what we've got and moved on
onPartitionsAssigned
{ "repo_name": "apsaltis/nifi", "path": "nifi-nar-bundles/nifi-kafka-bundle/nifi-kafka-1-0-processors/src/main/java/org/apache/nifi/processors/kafka/pubsub/ConsumerLease.java", "license": "apache-2.0", "size": 31919 }
[ "java.util.Collection", "org.apache.kafka.common.TopicPartition" ]
import java.util.Collection; import org.apache.kafka.common.TopicPartition;
import java.util.*; import org.apache.kafka.common.*;
[ "java.util", "org.apache.kafka" ]
java.util; org.apache.kafka;
999,387
private static void setLoader(LoaderCallbacks<Cursor> loader) { MainFactory.loader = loader; }
static void function(LoaderCallbacks<Cursor> loader) { MainFactory.loader = loader; }
/** * Set the current Loader. * @param loader * The loader to set. */
Set the current Loader
setLoader
{ "repo_name": "marcusfelipetm/jemf", "path": "src/br/ufrj/ppgi/jemf/mobile/factory/MainFactory.java", "license": "gpl-3.0", "size": 4555 }
[ "android.app.LoaderManager", "android.database.Cursor" ]
import android.app.LoaderManager; import android.database.Cursor;
import android.app.*; import android.database.*;
[ "android.app", "android.database" ]
android.app; android.database;
793,781
public static void saveFactoryPathFile(IJavaProject jproj, Map<FactoryContainer, FactoryPath.Attributes> containers) throws CoreException { IFile projFile; File wkspFile; if (jproj != null) { projFile = getIFileForProject(jproj); wkspFile = null; } else { wkspFile = getFileForWorkspace(); ...
static void function(IJavaProject jproj, Map<FactoryContainer, FactoryPath.Attributes> containers) throws CoreException { IFile projFile; File wkspFile; if (jproj != null) { projFile = getIFileForProject(jproj); wkspFile = null; } else { wkspFile = getFileForWorkspace(); projFile = null; } try { if (containers != null)...
/** * Stores a map of factory containers to the factorypath file * for a given project. If null is passed in, the factorypath file * is deleted. */
Stores a map of factory containers to the factorypath file for a given project. If null is passed in, the factorypath file is deleted
saveFactoryPathFile
{ "repo_name": "maxeler/eclipse", "path": "eclipse.jdt.core/org.eclipse.jdt.apt.core/src/org/eclipse/jdt/apt/core/internal/util/FactoryPathUtil.java", "license": "epl-1.0", "size": 16174 }
[ "java.io.File", "java.io.IOException", "java.util.Map", "org.eclipse.core.resources.IFile", "org.eclipse.core.runtime.CoreException", "org.eclipse.core.runtime.IStatus", "org.eclipse.core.runtime.Status", "org.eclipse.jdt.apt.core.internal.AptPlugin", "org.eclipse.jdt.core.IJavaProject" ]
import java.io.File; import java.io.IOException; import java.util.Map; import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IStatus; import org.eclipse.core.runtime.Status; import org.eclipse.jdt.apt.core.internal.AptPlugin; import org.eclipse.jdt.core....
import java.io.*; import java.util.*; import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*; import org.eclipse.jdt.apt.core.internal.*; import org.eclipse.jdt.core.*;
[ "java.io", "java.util", "org.eclipse.core", "org.eclipse.jdt" ]
java.io; java.util; org.eclipse.core; org.eclipse.jdt;
701,545
boolean deleteLibrary(LibraryResource library) throws StoreException;
boolean deleteLibrary(LibraryResource library) throws StoreException;
/** * Deletes the library (all versions will be deleted!!) use with caution!! * * @return <code>true</code> if it was deleted, <code>false</code> if it did not exist * @throws StoreException if there is a problem deleting the library */
Deletes the library (all versions will be deleted!!) use with caution!
deleteLibrary
{ "repo_name": "pongasoft/kiwidoc", "path": "kiwidoc/com.pongasoft.kiwidoc.builder/src/main/java/com/pongasoft/kiwidoc/builder/KiwidocLibraryStore.java", "license": "apache-2.0", "size": 5071 }
[ "com.pongasoft.kiwidoc.model.resource.LibraryResource" ]
import com.pongasoft.kiwidoc.model.resource.LibraryResource;
import com.pongasoft.kiwidoc.model.resource.*;
[ "com.pongasoft.kiwidoc" ]
com.pongasoft.kiwidoc;
1,872,059
public void registerInvokerClass(final String type, final Class<? extends Invoker> invokerClass) { exctx.registerInvokerClass(type, invokerClass); }
void function(final String type, final Class<? extends Invoker> invokerClass) { exctx.registerInvokerClass(type, invokerClass); }
/** * Register an Invoker for this target type. * * @param type The target type (specified by "type" attribute of the invoke element). * @param invokerClass The Invoker class. */
Register an Invoker for this target type
registerInvokerClass
{ "repo_name": "apache/commons-scxml", "path": "src/main/java/org/apache/commons/scxml2/SCXMLExecutor.java", "license": "apache-2.0", "size": 19725 }
[ "org.apache.commons.scxml2.invoke.Invoker" ]
import org.apache.commons.scxml2.invoke.Invoker;
import org.apache.commons.scxml2.invoke.*;
[ "org.apache.commons" ]
org.apache.commons;
2,000,153
public static Fraction getReducedFraction(int numerator, int denominator) { if (denominator == 0) { throw new ArithmeticException("The denominator must not be zero"); } if (numerator==0) { return ZERO; // normalize zero. } // allow 2^k/-2^31 as ...
static Fraction function(int numerator, int denominator) { if (denominator == 0) { throw new ArithmeticException(STR); } if (numerator==0) { return ZERO; } if (denominator==Integer.MIN_VALUE && (numerator&1)==0) { numerator/=2; denominator/=2; } if (denominator < 0) { if (numerator==Integer.MIN_VALUE denominator==Integ...
/** * <p>Creates a <code>Fraction</code> instance with the 2 parts * of a fraction Y/Z.</p> * * <p>Any negative signs are resolved to be on the numerator.</p> * * @param numerator the numerator, for example the three in 'three sevenths' * @param denominator the denominator, f...
Creates a <code>Fraction</code> instance with the 2 parts of a fraction Y/Z. Any negative signs are resolved to be on the numerator
getReducedFraction
{ "repo_name": "SpoonLabs/astor", "path": "examples/math_106/src/java/org/apache/commons/math/fraction/Fraction.java", "license": "gpl-2.0", "size": 17296 }
[ "org.apache.commons.math.util.MathUtils" ]
import org.apache.commons.math.util.MathUtils;
import org.apache.commons.math.util.*;
[ "org.apache.commons" ]
org.apache.commons;
431,809
public static void traceMemoryUsage(String label) { if (isEnabled()) { String message = createMemoryUsageMessage(label); PrintWriter w = getWriter(); w.print(_tracePrefix); w.println(message); log(message); } }
static void function(String label) { if (isEnabled()) { String message = createMemoryUsageMessage(label); PrintWriter w = getWriter(); w.print(_tracePrefix); w.println(message); log(message); } }
/** * Prints the ammount of free memory using the given label string to the current writer if and only if the debugging * class functionality is enabled. * * @param label an optional label, can be null */
Prints the ammount of free memory using the given label string to the current writer if and only if the debugging class functionality is enabled
traceMemoryUsage
{ "repo_name": "seadas/beam", "path": "beam-core/src/main/java/org/esa/beam/util/Debug.java", "license": "gpl-3.0", "size": 16428 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
2,560,337
private void appendRawTextPart(SoyMsgRawTextPart rawTextPart) { RenderVisitor.append(master.getCurrOutputBufForUseByAssistants(), rawTextPart.getRawText()); } } // ----------------------------------------------------------------------------------------------- // Fallback implementation.
void function(SoyMsgRawTextPart rawTextPart) { RenderVisitor.append(master.getCurrOutputBufForUseByAssistants(), rawTextPart.getRawText()); } }
/** * Processes a {@code SoyMsgRawTextPart} and appends the contained text to * the {@code StringBuilder} object in {@code RenderVisitor}. * @param rawTextPart The raw text part. */
Processes a SoyMsgRawTextPart and appends the contained text to the StringBuilder object in RenderVisitor
appendRawTextPart
{ "repo_name": "viqueen/closure-templates", "path": "java/src/com/google/template/soy/sharedpasses/render/RenderVisitorAssistantForMsgs.java", "license": "apache-2.0", "size": 13946 }
[ "com.google.template.soy.msgs.restricted.SoyMsgRawTextPart" ]
import com.google.template.soy.msgs.restricted.SoyMsgRawTextPart;
import com.google.template.soy.msgs.restricted.*;
[ "com.google.template" ]
com.google.template;
2,886,495
public BigDecimal getPlannedAmt () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedAmt); if (bd == null) return Env.ZERO; return bd; }
BigDecimal function () { BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PlannedAmt); if (bd == null) return Env.ZERO; return bd; }
/** Get Planned Amount. @return Planned amount for this project */
Get Planned Amount
getPlannedAmt
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiere_360/base/src/org/compiere/model/X_C_Project.java", "license": "gpl-2.0", "size": 24242 }
[ "java.math.BigDecimal", "org.compiere.util.Env" ]
import java.math.BigDecimal; import org.compiere.util.Env;
import java.math.*; import org.compiere.util.*;
[ "java.math", "org.compiere.util" ]
java.math; org.compiere.util;
1,602,680
@SuppressWarnings("rawtypes") public void evaluateRadius(double radius) { // System.out.println(radius); // if (radius ==2) // System.out.println(radius); final int offset = (int) Math.round((radius - minRadius) / step); // the // ordered // id // of // this run among all ...
@SuppressWarnings(STR) void function(double radius) { final int offset = (int) Math.round((radius - minRadius) / step); distNum[offset] = 0; minDistNum[offset] = Integer.MAX_VALUE; maxDistNum[offset] = Integer.MIN_VALUE; centerDistNum[offset] = 0; minCenterDistNum[offset] = Integer.MAX_VALUE; maxCenterDistNum[offset] =...
/** * evaluate the index with one fixed range query radius and all the queries. * each query is run with the given radius, search statistics are collect, * and compute average and min, max values. the average, min and max values * are store in the corresponding data fields * * @param radi...
evaluate the index with one fixed range query radius and all the queries. each query is run with the given radius, search statistics are collect, and compute average and min, max values. the average, min and max values are store in the corresponding data fields
evaluateRadius
{ "repo_name": "marknv/GeDBIT", "path": "src/GeDBIT/app/QueryVPIndex.java", "license": "gpl-2.0", "size": 36092 }
[ "java.io.BufferedWriter", "java.io.FileWriter", "java.io.IOException", "java.io.PrintWriter", "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import java.io.BufferedWriter; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,228,168
default <R2> TriFunction8E<T, U, V, R2, E1, E2, E3, E4, E5, E6, E7, E8> andThen(final Function2E<? super R, ? extends R2, ? extends E1, ? extends E2> after) { Objects.requireNonNull(after); return (T t, U u, V v) -> after.apply(apply(t, u, v)); }
default <R2> TriFunction8E<T, U, V, R2, E1, E2, E3, E4, E5, E6, E7, E8> andThen(final Function2E<? super R, ? extends R2, ? extends E1, ? extends E2> after) { Objects.requireNonNull(after); return (T t, U u, V v) -> after.apply(apply(t, u, v)); }
/** * Returns a composed function that first applies this function to * its input, and then applies the {@code after} function to the result. * If evaluation of either function throws an exception, it is relayed to * the caller of the composed function. * * @param <R2> the type of output o...
Returns a composed function that first applies this function to its input, and then applies the after function to the result. If evaluation of either function throws an exception, it is relayed to the caller of the composed function
andThen
{ "repo_name": "adamretter/j8fu", "path": "src/main/java/com/evolvedbinary/j8fu/function/TriFunction8E.java", "license": "bsd-3-clause", "size": 15171 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
2,845,754
public VdcOptionDAO getVdcOptionDao() { return getDao(VdcOptionDAO.class); }
VdcOptionDAO function() { return getDao(VdcOptionDAO.class); }
/** * Returns the singleton instance of {@link VdcOptionDAO}. * * @return the dao */
Returns the singleton instance of <code>VdcOptionDAO</code>
getVdcOptionDao
{ "repo_name": "jtux270/translate", "path": "ovirt/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/DbFacade.java", "license": "gpl-3.0", "size": 35845 }
[ "org.ovirt.engine.core.dao.VdcOptionDAO" ]
import org.ovirt.engine.core.dao.VdcOptionDAO;
import org.ovirt.engine.core.dao.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
1,906
public Builder setCpuStatistics(Collection<CpuStatistics> cpuStatistics) { this.cpuStatistics = cpuStatistics; return this; }
Builder function(Collection<CpuStatistics> cpuStatistics) { this.cpuStatistics = cpuStatistics; return this; }
/** * Sets CPU statistics. * * @param cpuStatistics CPU statistics * @return builder object */
Sets CPU statistics
setCpuStatistics
{ "repo_name": "kuujo/onos", "path": "drivers/server/src/main/java/org/onosproject/drivers/server/impl/stats/DefaultMonitoringStatistics.java", "license": "apache-2.0", "size": 6343 }
[ "java.util.Collection", "org.onosproject.drivers.server.stats.CpuStatistics" ]
import java.util.Collection; import org.onosproject.drivers.server.stats.CpuStatistics;
import java.util.*; import org.onosproject.drivers.server.stats.*;
[ "java.util", "org.onosproject.drivers" ]
java.util; org.onosproject.drivers;
2,367,069
public URI getDeviceVerificationUriComplete() { return deviceVerificationUriComplete; } /** * Set the verification URI for the device flow with a placeholder for a * user code. This URI is used to build the value of the * {@code verification_uri_complete} parameter in responses ...
URI function() { return deviceVerificationUriComplete; } /** * Set the verification URI for the device flow with a placeholder for a * user code. This URI is used to build the value of the * {@code verification_uri_complete} parameter in responses from the device * authorization endpoint. * * <p> * It is expected that ...
/** * Get the verification URI for the device flow with a placeholder for a * user code. This URI is used to build the value of the * {@code verification_uri_complete} parameter in responses from the device * authorization endpoint. * * @return * The verification URI with a pl...
Get the verification URI for the device flow with a placeholder for a user code. This URI is used to build the value of the verification_uri_complete parameter in responses from the device authorization endpoint
getDeviceVerificationUriComplete
{ "repo_name": "authlete/authlete-java-common", "path": "src/main/java/com/authlete/common/dto/Service.java", "license": "apache-2.0", "size": 222386 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,505,221
public final synchronized void createCheckpoint() { boolean result = TransferHelper.createCheckpoint(transferContainer); LOGGER.debug("Checkpoint {}", (result) ? "created" : "not created"); }
final synchronized void function() { boolean result = TransferHelper.createCheckpoint(transferContainer); LOGGER.debug(STR, (result) ? STR : STR); }
/** * Create a new checkpoint. This method is called frequently by a * CheckpoinTask. */
Create a new checkpoint. This method is called frequently by a CheckpoinTask
createCheckpoint
{ "repo_name": "kit-data-manager/base", "path": "Staging/DataTransferClient/src/main/java/edu/kit/dama/transfer/client/impl/AbstractTransferClient.java", "license": "apache-2.0", "size": 44750 }
[ "edu.kit.dama.transfer.client.util.TransferHelper" ]
import edu.kit.dama.transfer.client.util.TransferHelper;
import edu.kit.dama.transfer.client.util.*;
[ "edu.kit.dama" ]
edu.kit.dama;
2,783,327
protected Collection<Class<? extends Plugin>> transportClientPlugins() { return Collections.emptyList(); }
Collection<Class<? extends Plugin>> function() { return Collections.emptyList(); }
/** * Returns a collection of plugins that should be loaded when creating a transport client. */
Returns a collection of plugins that should be loaded when creating a transport client
transportClientPlugins
{ "repo_name": "fernandozhu/elasticsearch", "path": "test/framework/src/main/java/org/elasticsearch/test/ESIntegTestCase.java", "license": "apache-2.0", "size": 103624 }
[ "java.util.Collection", "java.util.Collections", "org.elasticsearch.plugins.Plugin" ]
import java.util.Collection; import java.util.Collections; import org.elasticsearch.plugins.Plugin;
import java.util.*; import org.elasticsearch.plugins.*;
[ "java.util", "org.elasticsearch.plugins" ]
java.util; org.elasticsearch.plugins;
2,569,807
@Nullable public static List<IgniteUuid> readGridUuids(DataInput in) throws IOException { List<IgniteUuid> col = null; // Check null flag. if (in.readBoolean()) { int size = in.readInt(); col = new ArrayList<>(size); for (int i = 0; i < size; i++) ...
@Nullable static List<IgniteUuid> function(DataInput in) throws IOException { List<IgniteUuid> col = null; if (in.readBoolean()) { int size = in.readInt(); col = new ArrayList<>(size); for (int i = 0; i < size; i++) col.add(readGridUuid(in)); } return col; }
/** * Reads Grid UUIDs from input stream. This method is meant to be used by * implementations of {@link Externalizable} interface. * * @param in Input stream. * @return Read Grid UUIDs. * @throws IOException If read failed. */
Reads Grid UUIDs from input stream. This method is meant to be used by implementations of <code>Externalizable</code> interface
readGridUuids
{ "repo_name": "agoncharuk/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 289549 }
[ "java.io.DataInput", "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.ignite.lang.IgniteUuid", "org.jetbrains.annotations.Nullable" ]
import java.io.DataInput; import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.ignite.lang.IgniteUuid; import org.jetbrains.annotations.Nullable;
import java.io.*; import java.util.*; import org.apache.ignite.lang.*; import org.jetbrains.annotations.*;
[ "java.io", "java.util", "org.apache.ignite", "org.jetbrains.annotations" ]
java.io; java.util; org.apache.ignite; org.jetbrains.annotations;
1,222,273
private List<NameValuePair> createParamsList( String firstParamName, String secondParamName, String firstParamValue, String secondParamValue) { List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair(firstParamName, firstParamValue)); params.a...
List<NameValuePair> function( String firstParamName, String secondParamName, String firstParamValue, String secondParamValue) { List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new BasicNameValuePair(firstParamName, firstParamValue)); params.add(new BasicNameValuePair(secondParamName, secondParam...
/** * Creates a list of NameValuePair objects. * * @param firstParamName The first parameter name. * @param firstParamValue The first parameter value. * @param secondParamName The second parameter name. * @param secondParamValue The second parameter value. * @return A list of NameValuePair objects....
Creates a list of NameValuePair objects
createParamsList
{ "repo_name": "google/certificate-transparency-java", "path": "src/main/java/org/certificatetransparency/ctlog/comm/HttpLogClient.java", "license": "apache-2.0", "size": 15577 }
[ "java.util.ArrayList", "java.util.List", "org.apache.http.NameValuePair", "org.apache.http.message.BasicNameValuePair" ]
import java.util.ArrayList; import java.util.List; import org.apache.http.NameValuePair; import org.apache.http.message.BasicNameValuePair;
import java.util.*; import org.apache.http.*; import org.apache.http.message.*;
[ "java.util", "org.apache.http" ]
java.util; org.apache.http;
1,574,105
@Test(expected = ValidationException.class) public void failValidationWithNoSchemaLocationAttr() throws Exception { final Environment env = new Environment.Mock() .withFile( "src/main/resources/valid3.xml", // @checkstyle LineLength (1 line) "<...
@Test(expected = ValidationException.class) void function() throws Exception { final Environment env = new Environment.Mock() .withFile( STR, STR1.0\STRUTF-8\STRhttp: ); final Validator validator = new XmlValidator(); validator.validate(env); }
/** * Should fail validation in case of noNamespaceSchemaLocation attribute. * specified on xml instance, while targetNamespace attribute exists in * schema * @throws Exception If something wrong happens inside. */
Should fail validation in case of noNamespaceSchemaLocation attribute. specified on xml instance, while targetNamespace attribute exists in schema
failValidationWithNoSchemaLocationAttr
{ "repo_name": "vkuchyn/qulice", "path": "qulice-xml/src/test/java/com/qulice/xml/XmlValidatorTest.java", "license": "bsd-3-clause", "size": 13925 }
[ "com.qulice.spi.Environment", "com.qulice.spi.ValidationException", "com.qulice.spi.Validator", "org.junit.Test" ]
import com.qulice.spi.Environment; import com.qulice.spi.ValidationException; import com.qulice.spi.Validator; import org.junit.Test;
import com.qulice.spi.*; import org.junit.*;
[ "com.qulice.spi", "org.junit" ]
com.qulice.spi; org.junit;
1,964,186
public Collection<OriginEntryFull> getMatchingEntriesByCollection(Map searchCriteria) { LOG.debug("getMatchingEntries() started"); Criteria criteria = new Criteria(); for (Iterator iter = searchCriteria.keySet().iterator(); iter.hasNext();) { String element = (String) iter....
Collection<OriginEntryFull> function(Map searchCriteria) { LOG.debug(STR); Criteria criteria = new Criteria(); for (Iterator iter = searchCriteria.keySet().iterator(); iter.hasNext();) { String element = (String) iter.next(); criteria.addEqualTo(element, searchCriteria.get(element)); } QueryByCriteria qbc = QueryFactor...
/** * Collection of entries that match criteria * * @param searchCriteria Map of field, value pairs * @return collection of entries * @see org.kuali.kfs.gl.dataaccess.OriginEntryDao#getMatchingEntriesByCollection(java.util.Map) */
Collection of entries that match criteria
getMatchingEntriesByCollection
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/gl/dataaccess/impl/OriginEntryDaoOjb.java", "license": "agpl-3.0", "size": 25843 }
[ "java.util.Collection", "java.util.Iterator", "java.util.Map", "org.apache.ojb.broker.query.Criteria", "org.apache.ojb.broker.query.QueryByCriteria", "org.apache.ojb.broker.query.QueryFactory", "org.kuali.kfs.gl.businessobject.OriginEntryFull" ]
import java.util.Collection; import java.util.Iterator; import java.util.Map; import org.apache.ojb.broker.query.Criteria; import org.apache.ojb.broker.query.QueryByCriteria; import org.apache.ojb.broker.query.QueryFactory; import org.kuali.kfs.gl.businessobject.OriginEntryFull;
import java.util.*; import org.apache.ojb.broker.query.*; import org.kuali.kfs.gl.businessobject.*;
[ "java.util", "org.apache.ojb", "org.kuali.kfs" ]
java.util; org.apache.ojb; org.kuali.kfs;
1,960,650
public void save() { if (LOG.isLoggable(Level.FINE)) { LOG.fine("Saving I/O state"); } ioStack.push((InputOutputState) ioStack.peek().clone()); }
void function() { if (LOG.isLoggable(Level.FINE)) { LOG.fine(STR); } ioStack.push((InputOutputState) ioStack.peek().clone()); }
/** * Saves away the state of the current I/O handles */
Saves away the state of the current I/O handles
save
{ "repo_name": "scgray/jsqsh", "path": "jsqsh-core/src/main/java/org/sqsh/InputOutputManager.java", "license": "apache-2.0", "size": 9062 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
713,988
public List getSiteTools(String toolId, Site site);
List function(String toolId, Site site);
/** * get all the tools for a site that have a type of "toolId" * if tool id is null, get all tools for a site * * @param toolId * @param site * @return */
get all the tools for a site that have a type of "toolId" if tool id is null, get all tools for a site
getSiteTools
{ "repo_name": "harfalm/Sakai-10.1", "path": "metaobj/metaobj-api/api/src/java/org/sakaiproject/metaobj/worksite/mgt/WorksiteManager.java", "license": "apache-2.0", "size": 2231 }
[ "java.util.List", "org.sakaiproject.site.api.Site" ]
import java.util.List; import org.sakaiproject.site.api.Site;
import java.util.*; import org.sakaiproject.site.api.*;
[ "java.util", "org.sakaiproject.site" ]
java.util; org.sakaiproject.site;
1,091,862
public Column getLinkStateColumn() { ColumnDescription columndesc = new ColumnDescription( InterfaceColumn.LINKSTATE .columnName(), ...
Column function() { ColumnDescription columndesc = new ColumnDescription( InterfaceColumn.LINKSTATE .columnName(), STR, VersionNum.VERSION106); return (Column) super.getColumnHandler(columndesc); }
/** * Get the Column entity which column name is "link_state" from the Row * entity of attributes. * @return the Column entity which column name is "link_state" */
Get the Column entity which column name is "link_state" from the Row entity of attributes
getLinkStateColumn
{ "repo_name": "harikrushna-Huawei/hackathon", "path": "protocols/ovsdb/rfc/src/main/java/org/onosproject/ovsdb/rfc/table/Interface.java", "license": "apache-2.0", "size": 50192 }
[ "org.onosproject.ovsdb.rfc.notation.Column", "org.onosproject.ovsdb.rfc.tableservice.ColumnDescription" ]
import org.onosproject.ovsdb.rfc.notation.Column; import org.onosproject.ovsdb.rfc.tableservice.ColumnDescription;
import org.onosproject.ovsdb.rfc.notation.*; import org.onosproject.ovsdb.rfc.tableservice.*;
[ "org.onosproject.ovsdb" ]
org.onosproject.ovsdb;
263,471
@Generated(value = "com.sun.tools.xjc.Driver", date = "2015-10-25T05:29:34+06:00", comments = "JAXB RI v2.2.11") public long getRet() { return ret; }
@Generated(value = STR, date = STR, comments = STR) long function() { return ret; }
/** * Gets the value of the ret property. * */
Gets the value of the ret property
getRet
{ "repo_name": "kanonirov/lanb-client", "path": "src/main/java/ru/lanbilling/webservice/wsdl/DelSmartCardResponse.java", "license": "mit", "size": 1715 }
[ "javax.annotation.Generated" ]
import javax.annotation.Generated;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,880,800
public static String getSpringContextHeader(Dictionary headers) { Object header = null; if (headers != null) header = headers.get(SPRING_CONTEXT_HEADER); return (header != null ? header.toString().trim() : null); }
static String function(Dictionary headers) { Object header = null; if (headers != null) header = headers.get(SPRING_CONTEXT_HEADER); return (header != null ? header.toString().trim() : null); }
/** * Return the {@value #SPRING_CONTEXT_HEADER} if present from the given * dictionary. * * @param headers * @return */
Return the #SPRING_CONTEXT_HEADER if present from the given dictionary
getSpringContextHeader
{ "repo_name": "eclipse/gemini.blueprint", "path": "extender/src/main/java/org/eclipse/gemini/blueprint/extender/support/internal/ConfigUtils.java", "license": "apache-2.0", "size": 11494 }
[ "java.util.Dictionary" ]
import java.util.Dictionary;
import java.util.*;
[ "java.util" ]
java.util;
1,980,038
@Test public void testSetOrderingKeyAsKey() throws Exception { String orderingKey = "my-key"; props.put(CloudPubSubSourceConnector.KAFKA_MESSAGE_KEY_CONFIG, ConnectorUtils.CPS_ORDERING_KEY_ATTRIBUTE); task.start(props); Map<String, String> attributes = new HashMap<>(); ReceivedMessage rm = creat...
void function() throws Exception { String orderingKey = STR; props.put(CloudPubSubSourceConnector.KAFKA_MESSAGE_KEY_CONFIG, ConnectorUtils.CPS_ORDERING_KEY_ATTRIBUTE); task.start(props); Map<String, String> attributes = new HashMap<>(); ReceivedMessage rm = createReceivedMessage(ACK_ID1, CPS_MESSAGE, attributes, orderi...
/** * Tests when the message retrieved from Cloud Pub/Sub has an ordering key set and * {@link #KAFKA_MESSAGE_KEY_ATTRIBUTE} is set to "orderingKey". */
Tests when the message retrieved from Cloud Pub/Sub has an ordering key set and <code>#KAFKA_MESSAGE_KEY_ATTRIBUTE</code> is set to "orderingKey"
testSetOrderingKeyAsKey
{ "repo_name": "GoogleCloudPlatform/pubsub", "path": "kafka-connector/src/test/java/com/google/pubsub/kafka/source/CloudPubSubSourceTaskTest.java", "license": "apache-2.0", "size": 24370 }
[ "com.google.common.collect.ImmutableList", "com.google.pubsub.kafka.common.ConnectorUtils", "com.google.pubsub.v1.ReceivedMessage", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.kafka.connect.data.Schema", "org.apache.kafka.connect.source.SourceRecord", "org.junit.Assert", "o...
import com.google.common.collect.ImmutableList; import com.google.pubsub.kafka.common.ConnectorUtils; import com.google.pubsub.v1.ReceivedMessage; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.kafka.connect.data.Schema; import org.apache.kafka.connect.source.SourceRecord; impo...
import com.google.common.collect.*; import com.google.pubsub.kafka.common.*; import com.google.pubsub.v1.*; import java.util.*; import org.apache.kafka.connect.data.*; import org.apache.kafka.connect.source.*; import org.junit.*; import org.mockito.*;
[ "com.google.common", "com.google.pubsub", "java.util", "org.apache.kafka", "org.junit", "org.mockito" ]
com.google.common; com.google.pubsub; java.util; org.apache.kafka; org.junit; org.mockito;
1,478,146
public FloatMatrix[] getPrevMatricesUpdates() { FloatMatrix[] matrices = new FloatMatrix[this.getSizeOfWeightmatrix()]; int matrixIdx = 0; for (List<FloatMatrix> aWeightMatrixList: this.prevWeightUpdatesLists) { for (FloatMatrix aWeightMatrix : aWeightMatrixList) { matrices[matrixIdx++] = aW...
FloatMatrix[] function() { FloatMatrix[] matrices = new FloatMatrix[this.getSizeOfWeightmatrix()]; int matrixIdx = 0; for (List<FloatMatrix> aWeightMatrixList: this.prevWeightUpdatesLists) { for (FloatMatrix aWeightMatrix : aWeightMatrixList) { matrices[matrixIdx++] = aWeightMatrix; } } return matrices; }
/** * Get the previous matrices updates in form of array. * * @return The matrices in form of matrix array. */
Get the previous matrices updates in form of array
getPrevMatricesUpdates
{ "repo_name": "edwardyoon/incubator-horn", "path": "src/main/java/org/apache/horn/core/RecurrentLayeredNeuralNetwork.java", "license": "apache-2.0", "size": 39066 }
[ "java.util.List", "org.apache.hama.commons.math.FloatMatrix" ]
import java.util.List; import org.apache.hama.commons.math.FloatMatrix;
import java.util.*; import org.apache.hama.commons.math.*;
[ "java.util", "org.apache.hama" ]
java.util; org.apache.hama;
177,484
public WrappedDataWatcher getMetadata() { return handle.getDataWatcherModifier().read(0); }
WrappedDataWatcher function() { return handle.getDataWatcherModifier().read(0); }
/** * Retrieve the data watcher. * <p> * Content varies by mob, see Entities. * @return The current Metadata */
Retrieve the data watcher. Content varies by mob, see Entities
getMetadata
{ "repo_name": "pekomiya/AirRide", "path": "src/main/java/com/comphenix/packetwrapper/WrapperPlayServerSpawnEntityLiving.java", "license": "lgpl-3.0", "size": 7609 }
[ "com.comphenix.protocol.wrappers.WrappedDataWatcher" ]
import com.comphenix.protocol.wrappers.WrappedDataWatcher;
import com.comphenix.protocol.wrappers.*;
[ "com.comphenix.protocol" ]
com.comphenix.protocol;
2,527,629
protected String getCookieValue(Cookie[] cookies, int numCookies, String token) { for (int i = 0; i < numCookies; i++) { Cookie cookie = cookies[i]; log.trace("Matching cookieToken:" + token + " with cookie name=" + cookie.getName()); if (t...
String function(Cookie[] cookies, int numCookies, String token) { for (int i = 0; i < numCookies; i++) { Cookie cookie = cookies[i]; log.trace(STR + token + STR + cookie.getName()); if (token.equals(cookie.getName())) { log.trace(STR + token + STR + cookie.getValue()); return cookie.getValue(); } } return null; }
/** * Get the value of a cookie if the name matches the token * * @param cookies * array of cookies * @param numCookies * number of cookies in the array * @param token * Key * @return value of cookie */
Get the value of a cookie if the name matches the token
getCookieValue
{ "repo_name": "rcernich/jboss-eap-quickstarts", "path": "servlet-security-genericheader-auth/src/main/java/org/jboss/web/tomcat/security/GenericHeaderAuthenticator.java", "license": "apache-2.0", "size": 9984 }
[ "javax.servlet.http.Cookie" ]
import javax.servlet.http.Cookie;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
2,855,771
public boolean isCollectable(ItemStack item, World world, int x, int y, int z);
boolean function(ItemStack item, World world, int x, int y, int z);
/** * Checks if the object is currently collectable * Example: Sheep return false when they have no wool * * @param item The itemstack that is being used, Possible to be null * @param world The current world * @param x The X Position * @param y The Y Position * @param z The Z Pos...
Checks if the object is currently collectable Example: Sheep return false when they have no wool
isCollectable
{ "repo_name": "OwnAgePau/Soul-Forest", "path": "src/main/java/com/Mod_Ores/IScollectable.java", "license": "lgpl-2.1", "size": 1815 }
[ "net.minecraft.item.ItemStack", "net.minecraft.world.World" ]
import net.minecraft.item.ItemStack; import net.minecraft.world.World;
import net.minecraft.item.*; import net.minecraft.world.*;
[ "net.minecraft.item", "net.minecraft.world" ]
net.minecraft.item; net.minecraft.world;
2,752,732
public Pattern getValidationPattern();
Pattern function();
/** * [Property] Gets a Pattern object used in String property input validation. */
[Property] Gets a Pattern object used in String property input validation
getValidationPattern
{ "repo_name": "dmf444/MinecraftForge", "path": "src/main/java/net/minecraftforge/fml/client/config/IConfigElement.java", "license": "lgpl-2.1", "size": 5897 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
2,500,702
@ServiceMethod(returns = ReturnType.SINGLE) private PollerFlux<PollResult<AppServiceCertificateResourceInner>, AppServiceCertificateResourceInner> beginCreateOrUpdateCertificateAsync( String resourceGroupName, String certificateOrderName, String name, AppS...
@ServiceMethod(returns = ReturnType.SINGLE) PollerFlux<PollResult<AppServiceCertificateResourceInner>, AppServiceCertificateResourceInner> function( String resourceGroupName, String certificateOrderName, String name, AppServiceCertificateResourceInner keyVaultCertificate, Context context) { context = this.client.mergeC...
/** * Creates or updates a certificate and associates with key vault secret. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param certificateOrderName Name of the certificate order. * @param name Name of the certificate. * @param keyVaultCertifica...
Creates or updates a certificate and associates with key vault secret
beginCreateOrUpdateCertificateAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceCertificateOrdersClientImpl.java", "license": "mit", "size": 205075 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.management.polling.PollResult", "com.azure.core.util.Context", "com.azure.core.util.polling.PollerFlux", "com.azure.resourcemanager.appservice.fluent.models.AppServiceC...
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import com.azure.resourcemanager.appservice.fluen...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.management.polling.*; import com.azure.core.util.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.appservice.fluent.models.*; import java.nio.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.nio" ]
com.azure.core; com.azure.resourcemanager; java.nio;
1,360,416
public static void rethrowIOException(Throwable t) throws IOException { if (t instanceof IOException) { throw (IOException) t; } else if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IOException(t.getMessag...
static void function(Throwable t) throws IOException { if (t instanceof IOException) { throw (IOException) t; } else if (t instanceof RuntimeException) { throw (RuntimeException) t; } else if (t instanceof Error) { throw (Error) t; } else { throw new IOException(t.getMessage(), t); } }
/** * Re-throws the given {@code Throwable} in scenarios where the signatures allows only IOExceptions * (and RuntimeException and Error). * * Throws this exception directly, if it is an IOException, a RuntimeException, or an Error. Otherwise it * wraps it in an IOException and throws it. * * @param t ...
Re-throws the given Throwable in scenarios where the signatures allows only IOExceptions (and RuntimeException and Error). Throws this exception directly, if it is an IOException, a RuntimeException, or an Error. Otherwise it wraps it in an IOException and throws it
rethrowIOException
{ "repo_name": "zohar-mizrahi/flink", "path": "flink-core/src/main/java/org/apache/flink/util/ExceptionUtils.java", "license": "apache-2.0", "size": 11242 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,738,557
protected void renderSelectTag(ResponseWriter rw, SelectOneMenu menu) throws IOException { rw.write("\n"); rw.startElement("select", menu); }
void function(ResponseWriter rw, SelectOneMenu menu) throws IOException { rw.write("\n"); rw.startElement(STR, menu); }
/** * Renders the start of the input tag. This method is protected in order to * allow third-party frameworks to derive from it. * * @param rw * the response writer * @throws IOException * may be thrown by the response writer */
Renders the start of the input tag. This method is protected in order to allow third-party frameworks to derive from it
renderSelectTag
{ "repo_name": "chongma/BootsFaces-OSP", "path": "src/main/java/net/bootsfaces/component/selectOneMenu/SelectOneMenuRenderer.java", "license": "apache-2.0", "size": 21473 }
[ "java.io.IOException", "javax.faces.context.ResponseWriter" ]
import java.io.IOException; import javax.faces.context.ResponseWriter;
import java.io.*; import javax.faces.context.*;
[ "java.io", "javax.faces" ]
java.io; javax.faces;
805,740
private static int parseInt(final CharSequence date, final int beginIndex, final int endIndex) { int num = 0; for (int i = beginIndex; i < endIndex; i++) { final char c = date.charAt(i); if (c < '0' || c > '9') { throw LOGGER.logExceptionAsError(new DateTimeEx...
static int function(final CharSequence date, final int beginIndex, final int endIndex) { int num = 0; for (int i = beginIndex; i < endIndex; i++) { final char c = date.charAt(i); if (c < '0' c > '9') { throw LOGGER.logExceptionAsError(new DateTimeException(STR + date)); } num = num * 10 + (c - '0'); } return num; }
/** * Parses the specified substring of datetime to a 'int' value. * * @param date The datetime string in RFC1123 format. * @param beginIndex The beginning index, inclusive. * @param endIndex The ending index, exclusive. * @return The specified substring. * * @throws DateTimeExce...
Parses the specified substring of datetime to a 'int' value
parseInt
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/core/azure-core/src/main/java/com/azure/core/util/DateTimeRfc1123.java", "license": "mit", "size": 8907 }
[ "java.time.DateTimeException" ]
import java.time.DateTimeException;
import java.time.*;
[ "java.time" ]
java.time;
1,705,656
@NotNull @ObjectiveCName("setEnableFilesLogging:") public ConfigurationBuilder setEnableFilesLogging(boolean enableFilesLogging) { this.enableFilesLogging = enableFilesLogging; return this; }
@ObjectiveCName(STR) ConfigurationBuilder function(boolean enableFilesLogging) { this.enableFilesLogging = enableFilesLogging; return this; }
/** * Set Enable file operations loggging * * @param enableFilesLogging Enable files logging * @return this */
Set Enable file operations loggging
setEnableFilesLogging
{ "repo_name": "EaglesoftZJ/actor-platform", "path": "actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/ConfigurationBuilder.java", "license": "agpl-3.0", "size": 13074 }
[ "com.google.j2objc.annotations.ObjectiveCName" ]
import com.google.j2objc.annotations.ObjectiveCName;
import com.google.j2objc.annotations.*;
[ "com.google.j2objc" ]
com.google.j2objc;
234,373
public final SMBSrvPacket allocatePacket( int reqSiz, SMBSrvPacket reqPkt, int copyLen) throws NoPooledMemoryException { // Allocate the response packet SMBSrvPacket respPkt = allocatePacket( reqSiz); // Copy the header from the request to the response System.arraycopy( reqPkt.getBuffer(), 4, respP...
final SMBSrvPacket function( int reqSiz, SMBSrvPacket reqPkt, int copyLen) throws NoPooledMemoryException { SMBSrvPacket respPkt = allocatePacket( reqSiz); System.arraycopy( reqPkt.getBuffer(), 4, respPkt.getBuffer(), 4, copyLen == -1 ? SMBSrvPacket.HeaderLength : copyLen); reqPkt.setAssociatedPacket( respPkt); if ( re...
/** * Allocate a CIFS packet with the specified buffer size, copy the header from the * request packet * * @param reqSiz int * @param reqPkt SMBSrvPacket * @param copyLen int * @return SMBSrvPacket * @exception NoPooledMemoryException */
Allocate a CIFS packet with the specified buffer size, copy the header from the request packet
allocatePacket
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/alfresco-jlan/source/java/org/alfresco/jlan/smb/server/CIFSPacketPool.java", "license": "lgpl-3.0", "size": 11335 }
[ "org.alfresco.jlan.debug.Debug", "org.alfresco.jlan.server.core.NoPooledMemoryException" ]
import org.alfresco.jlan.debug.Debug; import org.alfresco.jlan.server.core.NoPooledMemoryException;
import org.alfresco.jlan.debug.*; import org.alfresco.jlan.server.core.*;
[ "org.alfresco.jlan" ]
org.alfresco.jlan;
2,363,891
public void testCallCrawlerService() { System.out.println("callCrawlerService"); mockInitialisationCalls(false, AuditStatus.CRAWLING); EasyMock.expect(mockCrawlerService.getUrlListByCrawlingFromUrlList(mockAudit, urlList)). andReturn(EasyMock.createMock(List.class)).once();...
void function() { System.out.println(STR); mockInitialisationCalls(false, AuditStatus.CRAWLING); EasyMock.expect(mockCrawlerService.getUrlListByCrawlingFromUrlList(mockAudit, urlList)). andReturn(EasyMock.createMock(List.class)).once(); setReplayMode(); GroupOfPagesCrawlerAuditCommandImpl groupOfPagesAuditCommand = get...
/** * Test of callCrawlerService method, of class PageAuditCommandImpl. */
Test of callCrawlerService method, of class PageAuditCommandImpl
testCallCrawlerService
{ "repo_name": "Tanaguru/Tanaguru", "path": "engine/tanaguru-engine/src/test/java/org/tanaguru/service/command/GroupOfPagesCrawlerAuditCommandImplTest.java", "license": "agpl-3.0", "size": 4445 }
[ "java.util.List", "org.easymock.EasyMock", "org.tanaguru.entity.audit.AuditStatus" ]
import java.util.List; import org.easymock.EasyMock; import org.tanaguru.entity.audit.AuditStatus;
import java.util.*; import org.easymock.*; import org.tanaguru.entity.audit.*;
[ "java.util", "org.easymock", "org.tanaguru.entity" ]
java.util; org.easymock; org.tanaguru.entity;
2,912,082
public Future<CommandResult> storeSceneCommand(Integer groupId, Integer sceneId) { StoreSceneCommand command = new StoreSceneCommand(); // Set the fields command.setGroupId(groupId); command.setSceneId(sceneId); return send(command); }
Future<CommandResult> function(Integer groupId, Integer sceneId) { StoreSceneCommand command = new StoreSceneCommand(); command.setGroupId(groupId); command.setSceneId(sceneId); return send(command); }
/** * The Store Scene Command * <p> * The Store Scene command may be addressed to a single device or to a group. * * @param groupId {@link Integer} Group ID * @param sceneId {@link Integer} Scene ID * @return the {@link Future<CommandResult>} command result future */
The Store Scene Command The Store Scene command may be addressed to a single device or to a group
storeSceneCommand
{ "repo_name": "cschwer/com.zsmartsystems.zigbee", "path": "com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclScenesCluster.java", "license": "epl-1.0", "size": 30312 }
[ "com.zsmartsystems.zigbee.CommandResult", "com.zsmartsystems.zigbee.zcl.clusters.scenes.StoreSceneCommand", "java.util.concurrent.Future" ]
import com.zsmartsystems.zigbee.CommandResult; import com.zsmartsystems.zigbee.zcl.clusters.scenes.StoreSceneCommand; import java.util.concurrent.Future;
import com.zsmartsystems.zigbee.*; import com.zsmartsystems.zigbee.zcl.clusters.scenes.*; import java.util.concurrent.*;
[ "com.zsmartsystems.zigbee", "java.util" ]
com.zsmartsystems.zigbee; java.util;
2,675,095
public void setInvestigatorCreditType(InvestigatorCreditType investigatorCreditType) { this.investigatorCreditType = investigatorCreditType; this.invCreditTypeCode = investigatorCreditType != null ? investigatorCreditType.getCode() : null; }
void function(InvestigatorCreditType investigatorCreditType) { this.investigatorCreditType = investigatorCreditType; this.invCreditTypeCode = investigatorCreditType != null ? investigatorCreditType.getCode() : null; }
/** * Sets the investigatorCreditType attribute value. * @param investigatorCreditType The investigatorCreditType to set. */
Sets the investigatorCreditType attribute value
setInvestigatorCreditType
{ "repo_name": "sanjupolus/KC6.oLatest", "path": "coeus-impl/src/main/java/org/kuali/kra/institutionalproposal/contacts/InstitutionalProposalPersonUnitCreditSplit.java", "license": "agpl-3.0", "size": 7713 }
[ "org.kuali.coeus.common.framework.type.InvestigatorCreditType" ]
import org.kuali.coeus.common.framework.type.InvestigatorCreditType;
import org.kuali.coeus.common.framework.type.*;
[ "org.kuali.coeus" ]
org.kuali.coeus;
1,575,235
public static List<Row> transformAndPopulateAttributeRows(List<Row> attributeRows, RuleTemplateAttributeBo ruleTemplateAttribute, RuleBaseValues rule, Map<String, String> fieldNameMap, boolean delegateRule) { for (Row row : attributeRows) { for (Field field : row.getFields()) { String fieldName = field.get...
static List<Row> function(List<Row> attributeRows, RuleTemplateAttributeBo ruleTemplateAttribute, RuleBaseValues rule, Map<String, String> fieldNameMap, boolean delegateRule) { for (Row row : attributeRows) { for (Field field : row.getFields()) { String fieldName = field.getPropertyName(); if (!StringUtils.isBlank(fiel...
/** * Processes the Fields on the various attributes Rows to assign an appropriate field name to them so that the * field name rendered in the maintenance HTML will properly assign the value to RuleBaseValues.fieldValues. */
Processes the Fields on the various attributes Rows to assign an appropriate field name to them so that the field name rendered in the maintenance HTML will properly assign the value to RuleBaseValues.fieldValues
transformAndPopulateAttributeRows
{ "repo_name": "ua-eas/ksd-kc5.2.1-rice2.3.6-ua", "path": "rice-middleware/impl/src/main/java/org/kuali/rice/kew/rule/web/WebRuleUtils.java", "license": "apache-2.0", "size": 29824 }
[ "java.util.List", "java.util.Map", "org.apache.commons.lang.StringUtils", "org.kuali.rice.kew.rule.RuleBaseValues", "org.kuali.rice.kew.rule.bo.RuleTemplateAttributeBo", "org.kuali.rice.kns.web.ui.Field", "org.kuali.rice.kns.web.ui.Row" ]
import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.kuali.rice.kew.rule.RuleBaseValues; import org.kuali.rice.kew.rule.bo.RuleTemplateAttributeBo; import org.kuali.rice.kns.web.ui.Field; import org.kuali.rice.kns.web.ui.Row;
import java.util.*; import org.apache.commons.lang.*; import org.kuali.rice.kew.rule.*; import org.kuali.rice.kew.rule.bo.*; import org.kuali.rice.kns.web.ui.*;
[ "java.util", "org.apache.commons", "org.kuali.rice" ]
java.util; org.apache.commons; org.kuali.rice;
1,598,350
EAttribute getWheelSystem_WheelSteeringPIDkd();
EAttribute getWheelSystem_WheelSteeringPIDkd();
/** * Returns the meta object for the attribute '{@link org.eclipse.papyrus.RobotML.WheelSystem#getWheelSteeringPIDkd <em>Wheel Steering PI Dkd</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Wheel Steering PI Dkd</em>'. * @see org.eclipse.papyrus.Rob...
Returns the meta object for the attribute '<code>org.eclipse.papyrus.RobotML.WheelSystem#getWheelSteeringPIDkd Wheel Steering PI Dkd</code>'.
getWheelSystem_WheelSteeringPIDkd
{ "repo_name": "RobotML/RobotML-SDK-Juno", "path": "plugins/robotml/org.eclipse.papyrus.robotml/src/org/eclipse/papyrus/RobotML/RobotMLPackage.java", "license": "epl-1.0", "size": 231818 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
539,165
public void unsubscribeFromChannel(final String channelId, final StmCallback<Void> callback) { if (channelId == null) { String validationErrorMessage = "channelId cannot be null"; if (callback != null) { StmError error = new StmError(validationErrorMessage, false, St...
void function(final String channelId, final StmCallback<Void> callback) { if (channelId == null) { String validationErrorMessage = STR; if (callback != null) { StmError error = new StmError(validationErrorMessage, false, StmError.SEVERITY_MINOR); callback.onError(error); return; } else { throw new IllegalArgumentExcept...
/** * Unsubscribes the user from receiving notifications from the specified channel. * @param channelId The channel ID to unsubscribed from. * @param callback The callback to be executed or null. */
Unsubscribes the user from receiving notifications from the specified channel
unsubscribeFromChannel
{ "repo_name": "ShoutToMe/stm-sdk-android", "path": "shout-to-me-sdk/src/main/java/me/shoutto/sdk/StmService.java", "license": "mit", "size": 29666 }
[ "me.shoutto.sdk.internal.http.ChannelSubscriptionUrlProvider", "me.shoutto.sdk.internal.http.DefaultEntityRequestProcessorAsync", "me.shoutto.sdk.internal.http.GsonRequestAdapter", "me.shoutto.sdk.internal.http.NullResponseAdapter", "me.shoutto.sdk.internal.http.StmRequestQueue", "me.shoutto.sdk.internal....
import me.shoutto.sdk.internal.http.ChannelSubscriptionUrlProvider; import me.shoutto.sdk.internal.http.DefaultEntityRequestProcessorAsync; import me.shoutto.sdk.internal.http.GsonRequestAdapter; import me.shoutto.sdk.internal.http.NullResponseAdapter; import me.shoutto.sdk.internal.http.StmRequestQueue; import me.shou...
import me.shoutto.sdk.internal.http.*; import me.shoutto.sdk.internal.usecases.*;
[ "me.shoutto.sdk" ]
me.shoutto.sdk;
1,923,909
@Path("/auth/{issuer_id}") @POST @Consumes(MediaType.APPLICATION_FORM_URLENCODED) public Response auth(@FormParam("state") final String state, @PathParam("issuer_id") final String issuerId, @HeaderParam(HttpHeaders.AUTHORIZATION) final String authorization) { return Response.see...
@Path(STR) @Consumes(MediaType.APPLICATION_FORM_URLENCODED) Response function(@FormParam("state") final String state, @PathParam(STR) final String issuerId, @HeaderParam(HttpHeaders.AUTHORIZATION) final String authorization) { return Response.seeOther(authUri(state, issuerId, authorization)).build(); }
/** * The state that is passed here is transformed to a JWT before passing to the * OIDC IP. * * @param state * this is a client level state * @param issuerId * issuer * @return a redirect */
The state that is passed here is transformed to a JWT before passing to the OIDC IP
auth
{ "repo_name": "trajano/app-ms", "path": "ms-oidc/src/main/java/net/trajano/ms/oidc/OpenIdConnectResource.java", "license": "epl-1.0", "size": 9248 }
[ "javax.ws.rs.Consumes", "javax.ws.rs.FormParam", "javax.ws.rs.HeaderParam", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.core.HttpHeaders", "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response" ]
import javax.ws.rs.Consumes; import javax.ws.rs.FormParam; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.HttpHeaders; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response;
import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
752,804
public PluginConfig getConfig(String name){ return configs.get(name); } private static class PluginRepositoryHolder{ private static final PluginRepository instance = new PluginRepository(); static{ instance.setup(); } }
PluginConfig function(String name){ return configs.get(name); } private static class PluginRepositoryHolder{ private static final PluginRepository instance = new PluginRepository(); static{ instance.setup(); } }
/** * Returns pluginconfig for the loaded plugin. * @param name nane of the plugin. * @return PluginConfig for specified plugin. */
Returns pluginconfig for the loaded plugin
getConfig
{ "repo_name": "esmakula/moskito", "path": "moskito-core/src/main/java/net/anotheria/moskito/core/plugins/PluginRepository.java", "license": "mit", "size": 4059 }
[ "net.anotheria.moskito.core.config.plugins.PluginConfig" ]
import net.anotheria.moskito.core.config.plugins.PluginConfig;
import net.anotheria.moskito.core.config.plugins.*;
[ "net.anotheria.moskito" ]
net.anotheria.moskito;
1,895,280
public static java.util.List extractPropertyItemList(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.PropertyItemVoCollection voCollection) { return extractPropertyItemList(domainFactory, voCollection, null, new HashMap()); }
static java.util.List function(ims.domain.ILightweightDomainFactory domainFactory, ims.nursing.vo.PropertyItemVoCollection voCollection) { return extractPropertyItemList(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.nursing.domain.objects.PropertyItem list from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.nursing.domain.objects.PropertyItem list from the value object collection
extractPropertyItemList
{ "repo_name": "open-health-hub/openmaxims-linux", "path": "openmaxims_workspace/ValueObjects/src/ims/nursing/vo/domain/PropertyItemVoAssembler.java", "license": "agpl-3.0", "size": 18749 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,368,623
public static DataDisplayTable listFontMetrics(Font font) { String[] header = { "Name", "Value" }; Align[] displayAlignment = { Align.Left, Align.Left }; DataDisplayTable table = new DataDisplayTable(Arrays.asList(header)); table.setAlignment(Arrays.asList(displayAlignment)); // Retrieve necessar...
static DataDisplayTable function(Font font) { String[] header = { "Name", "Value" }; Align[] displayAlignment = { Align.Left, Align.Left }; DataDisplayTable table = new DataDisplayTable(Arrays.asList(header)); table.setAlignment(Arrays.asList(displayAlignment)); FontHeaderTable headTable = (FontHeaderTable) FontUtils.g...
/** * Gets a list of information regarding various dimensions about the given * font from the head, hhea, and OS/2 font tables * * @param font * the source font * @return a list of dimensional information about the font */
Gets a list of information regarding various dimensions about the given font from the head, hhea, and OS/2 font tables
listFontMetrics
{ "repo_name": "hoangchunghien/sfntwari", "path": "src/com/google/typography/font/tools/fontinfo/FontInfo.java", "license": "apache-2.0", "size": 24681 }
[ "com.google.typography.font.sfntly.Font", "com.google.typography.font.sfntly.Tag", "com.google.typography.font.sfntly.table.Table", "com.google.typography.font.sfntly.table.core.FontHeaderTable", "com.google.typography.font.sfntly.table.core.HorizontalHeaderTable", "com.google.typography.font.sfntly.table...
import com.google.typography.font.sfntly.Font; import com.google.typography.font.sfntly.Tag; import com.google.typography.font.sfntly.table.Table; import com.google.typography.font.sfntly.table.core.FontHeaderTable; import com.google.typography.font.sfntly.table.core.HorizontalHeaderTable; import com.google.typography....
import com.google.typography.font.sfntly.*; import com.google.typography.font.sfntly.table.*; import com.google.typography.font.sfntly.table.core.*; import com.google.typography.font.tools.fontinfo.*; import java.util.*;
[ "com.google.typography", "java.util" ]
com.google.typography; java.util;
1,197,387
public static List<ACL> fixupACL(String path, List<Id> authInfo, List<ACL> acls) throws KeeperException.InvalidACLException { // check for well formed ACLs // This resolves https://issues.apache.org/jira/browse/ZOOKEEPER-1877 List<ACL> uniqacls = removeDuplicates(acls); if (uniqacls ...
static List<ACL> function(String path, List<Id> authInfo, List<ACL> acls) throws KeeperException.InvalidACLException { List<ACL> uniqacls = removeDuplicates(acls); if (uniqacls == null uniqacls.size() == 0) { throw new KeeperException.InvalidACLException(path); } List<ACL> rv = new ArrayList<>(); for (ACL a : uniqacls)...
/** * This method checks out the acl making sure it isn't null or empty, * it has valid schemes and ids, and expanding any relative ids that * depend on the requestor's authentication information. * * @param authInfo list of ACL IDs associated with the client connection * @param acls list ...
This method checks out the acl making sure it isn't null or empty, it has valid schemes and ids, and expanding any relative ids that depend on the requestor's authentication information
fixupACL
{ "repo_name": "hanm/zookeeper", "path": "zookeeper-server/src/main/java/org/apache/zookeeper/server/PrepRequestProcessor.java", "license": "apache-2.0", "size": 52891 }
[ "java.util.ArrayList", "java.util.List", "org.apache.zookeeper.KeeperException", "org.apache.zookeeper.data.Id", "org.apache.zookeeper.server.auth.ProviderRegistry", "org.apache.zookeeper.server.auth.ServerAuthenticationProvider" ]
import java.util.ArrayList; import java.util.List; import org.apache.zookeeper.KeeperException; import org.apache.zookeeper.data.Id; import org.apache.zookeeper.server.auth.ProviderRegistry; import org.apache.zookeeper.server.auth.ServerAuthenticationProvider;
import java.util.*; import org.apache.zookeeper.*; import org.apache.zookeeper.data.*; import org.apache.zookeeper.server.auth.*;
[ "java.util", "org.apache.zookeeper" ]
java.util; org.apache.zookeeper;
722,916
if (v.length != sums.length) { throw new DimensionMismatchException(v.length, sums.length); } int k = 0; for (int i = 0; i < v.length; ++i) { sums[i] += v[i]; for (int j = 0; j <= i; ++j) { productsSums[k++] += v[i] * v[j]; } ...
if (v.length != sums.length) { throw new DimensionMismatchException(v.length, sums.length); } int k = 0; for (int i = 0; i < v.length; ++i) { sums[i] += v[i]; for (int j = 0; j <= i; ++j) { productsSums[k++] += v[i] * v[j]; } } n++; }
/** * Add a new vector to the sample. * @param v vector to add * @exception DimensionMismatchException if the vector does not have the right dimension */
Add a new vector to the sample
increment
{ "repo_name": "SpoonLabs/astor", "path": "examples/math_76/src/main/java/org/apache/commons/math/stat/descriptive/moment/VectorialCovariance.java", "license": "gpl-2.0", "size": 4839 }
[ "org.apache.commons.math.DimensionMismatchException" ]
import org.apache.commons.math.DimensionMismatchException;
import org.apache.commons.math.*;
[ "org.apache.commons" ]
org.apache.commons;
397,410
public Action getAction();
Action function();
/** Get an action to display the quick fix in a menu. The actions actionPerformed() method * must call {@link #apply()} on this object. */
Get an action to display the quick fix in a menu. The actions actionPerformed() method
getAction
{ "repo_name": "aborg0/rapidminer-vega", "path": "src/com/rapidminer/operator/ports/quickfix/QuickFix.java", "license": "agpl-3.0", "size": 2031 }
[ "javax.swing.Action" ]
import javax.swing.Action;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,186,941
@Override public List<TransportAddress> getSeedAddresses(HostsResolver hostsResolver) { if (refreshInterval.millis() != 0) { if (dynamicHosts != null && (refreshInterval.millis() < 0 || (System.currentTimeMillis() - lastRefresh) < refreshInterval.millis())) { ...
List<TransportAddress> function(HostsResolver hostsResolver) { if (refreshInterval.millis() != 0) { if (dynamicHosts != null && (refreshInterval.millis() < 0 (System.currentTimeMillis() - lastRefresh) < refreshInterval.millis())) { logger.trace(STR); return dynamicHosts; } lastRefresh = System.currentTimeMillis(); } lo...
/** * We build the list of Nodes from Azure Management API * Information can be cached using `cloud.azure.refresh_interval` property if needed. * Setting `cloud.azure.refresh_interval` to `-1` will cause infinite caching. * Setting `cloud.azure.refresh_interval` to `0` will disable caching (default)...
We build the list of Nodes from Azure Management API Information can be cached using `cloud.azure.refresh_interval` property if needed. Setting `cloud.azure.refresh_interval` to `-1` will cause infinite caching. Setting `cloud.azure.refresh_interval` to `0` will disable caching (default)
getSeedAddresses
{ "repo_name": "gingerwizard/elasticsearch", "path": "plugins/discovery-azure-classic/src/main/java/org/elasticsearch/discovery/azure/classic/AzureSeedHostsProvider.java", "license": "apache-2.0", "size": 10741 }
[ "com.microsoft.windowsazure.management.compute.models.DeploymentStatus", "com.microsoft.windowsazure.management.compute.models.HostedServiceGetDetailedResponse", "com.microsoft.windowsazure.management.compute.models.RoleInstance", "java.io.IOException", "java.net.InetAddress", "java.util.ArrayList", "ja...
import com.microsoft.windowsazure.management.compute.models.DeploymentStatus; import com.microsoft.windowsazure.management.compute.models.HostedServiceGetDetailedResponse; import com.microsoft.windowsazure.management.compute.models.RoleInstance; import java.io.IOException; import java.net.InetAddress; import java.util....
import com.microsoft.windowsazure.management.compute.models.*; import java.io.*; import java.net.*; import java.util.*; import org.elasticsearch.cloud.azure.classic.*; import org.elasticsearch.common.*; import org.elasticsearch.common.network.*; import org.elasticsearch.common.transport.*;
[ "com.microsoft.windowsazure", "java.io", "java.net", "java.util", "org.elasticsearch.cloud", "org.elasticsearch.common" ]
com.microsoft.windowsazure; java.io; java.net; java.util; org.elasticsearch.cloud; org.elasticsearch.common;
735,158
private void getListColumns() { if ( !Utils.isEmpty( wTablename.getText() ) ) { DatabaseMeta databaseMeta = jobMeta.findDatabase( wConnection.getText() ); if ( databaseMeta != null ) { Database database = new Database( loggingObject, databaseMeta ); database.shareVariablesWith( jobMeta...
void function() { if ( !Utils.isEmpty( wTablename.getText() ) ) { DatabaseMeta databaseMeta = jobMeta.findDatabase( wConnection.getText() ); if ( databaseMeta != null ) { Database database = new Database( loggingObject, databaseMeta ); database.shareVariablesWith( jobMeta ); try { database.connect(); String schemaTable...
/** * Get a list of columns, comma separated, allow the user to select from it. */
Get a list of columns, comma separated, allow the user to select from it
getListColumns
{ "repo_name": "nicoben/pentaho-kettle", "path": "ui/src/org/pentaho/di/ui/job/entries/mssqlbulkload/JobEntryMssqlBulkLoadDialog.java", "license": "apache-2.0", "size": 57236 }
[ "org.pentaho.di.core.Const", "org.pentaho.di.core.database.Database", "org.pentaho.di.core.database.DatabaseMeta", "org.pentaho.di.core.row.RowMetaInterface", "org.pentaho.di.core.util.Utils", "org.pentaho.di.i18n.BaseMessages", "org.pentaho.di.ui.core.dialog.EnterSelectionDialog" ]
import org.pentaho.di.core.Const; import org.pentaho.di.core.database.Database; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.core.util.Utils; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.di.ui.core.dialog.EnterSelectionDialog;
import org.pentaho.di.core.*; import org.pentaho.di.core.database.*; import org.pentaho.di.core.row.*; import org.pentaho.di.core.util.*; import org.pentaho.di.i18n.*; import org.pentaho.di.ui.core.dialog.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,470,078
public static String toString(JSONObject jo) throws JSONException { boolean b = false; Iterator keys = jo.keys(); String string; StringBuffer sb = new StringBuffer(); while (keys.hasNext()) { string = keys.next().toString(); if (!jo.isNull(strin...
static String function(JSONObject jo) throws JSONException { boolean b = false; Iterator keys = jo.keys(); String string; StringBuffer sb = new StringBuffer(); while (keys.hasNext()) { string = keys.next().toString(); if (!jo.isNull(string)) { if (b) { sb.append(';'); } sb.append(Cookie.escape(string)); sb.append("=");...
/** * Convert a JSONObject into a cookie list. A cookie list is a sequence * of name/value pairs. The names are separated from the values by '='. * The pairs are separated by ';'. The characters '%', '+', '=', and ';' * in the names and values are replaced by "%hh". * * @param jo A J...
Convert a JSONObject into a cookie list. A cookie list is a sequence of name/value pairs. The names are separated from the values by '='. The pairs are separated by ';'. The characters '%', '+', '=', and ';' in the names and values are replaced by "%hh"
toString
{ "repo_name": "RoyalDev/PlayerMetrics", "path": "src/org/royaldev/playermetrics/json/CookieList.java", "license": "gpl-3.0", "size": 3422 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,064,040
protected synchronized void startContext() { try { ac.start(); // job log file covering just this launch getJobLogger().removeHandler(currentLaunchJobLogHandler); File f = new File(ac.getCurrentLaunchDir(), "job.log"); currentLaunchJo...
synchronized void function() { try { ac.start(); getJobLogger().removeHandler(currentLaunchJobLogHandler); File f = new File(ac.getCurrentLaunchDir(), STR); currentLaunchJobLogHandler = new FileHandler(f.getAbsolutePath(), true); currentLaunchJobLogHandler.setFormatter(new JobLogFormatter()); getJobLogger().addHandler(...
/** * Start the context, catching and reporting any BeansExceptions. */
Start the context, catching and reporting any BeansExceptions
startContext
{ "repo_name": "searchtechnologies/heritrix-connector", "path": "engine-3.1.1/engine/src/main/java/org/archive/crawler/framework/CrawlJob.java", "license": "apache-2.0", "size": 32081 }
[ "java.io.File", "java.util.logging.FileHandler", "java.util.logging.Level", "org.springframework.beans.BeansException" ]
import java.io.File; import java.util.logging.FileHandler; import java.util.logging.Level; import org.springframework.beans.BeansException;
import java.io.*; import java.util.logging.*; import org.springframework.beans.*;
[ "java.io", "java.util", "org.springframework.beans" ]
java.io; java.util; org.springframework.beans;
685,626
@Test public void testNonDuplicated() { repository.save(study1); repository.save(study2); assertEquals(2, repository.count()); }
void function() { repository.save(study1); repository.save(study2); assertEquals(2, repository.count()); }
/** * Two different studies are both inserted into the database. */
Two different studies are both inserted into the database
testNonDuplicated
{ "repo_name": "EBIvariation/variation-commons", "path": "variation-commons-jpa/src/test/java/uk/ac/ebi/eva/commons/jpa/models/metadata/database/StudyDatabaseTest.java", "license": "apache-2.0", "size": 13080 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,160,725
Collection<DiskRegion> getDiskRegions() { return Collections.unmodifiableCollection(this.drMap.values()); }
Collection<DiskRegion> getDiskRegions() { return Collections.unmodifiableCollection(this.drMap.values()); }
/** * Returns a set of the disk regions that are using this disk store. Note that this set is read * only and live (its contents may change if the regions using this disk store changes). */
Returns a set of the disk regions that are using this disk store. Note that this set is read only and live (its contents may change if the regions using this disk store changes)
getDiskRegions
{ "repo_name": "PurelyApplied/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/DiskStoreImpl.java", "license": "apache-2.0", "size": 152619 }
[ "java.util.Collection", "java.util.Collections" ]
import java.util.Collection; import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
2,081,520
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(MDriverSLibInstance.class)) { case mclevmcadPackage.MDRIVER_SLIB_INSTANCE__DEVICE_DRIVER_MAPPINGS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotif...
void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(MDriverSLibInstance.class)) { case mclevmcadPackage.MDRIVER_SLIB_INSTANCE__DEVICE_DRIVER_MAPPINGS: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), true, false)); return; } super....
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>
notifyChanged
{ "repo_name": "parraman/micobs", "path": "mclev/es.uah.aut.srg.micobs.mclev/src/es/uah/aut/srg/micobs/mclev/mclevmcad/provider/MDriverSLibInstanceItemProvider.java", "license": "epl-1.0", "size": 4786 }
[ "es.uah.aut.srg.micobs.mclev.mclevmcad.MDriverSLibInstance", "org.eclipse.emf.common.notify.Notification", "org.eclipse.emf.edit.provider.ViewerNotification" ]
import es.uah.aut.srg.micobs.mclev.mclevmcad.MDriverSLibInstance; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ViewerNotification;
import es.uah.aut.srg.micobs.mclev.mclevmcad.*; import org.eclipse.emf.common.notify.*; import org.eclipse.emf.edit.provider.*;
[ "es.uah.aut", "org.eclipse.emf" ]
es.uah.aut; org.eclipse.emf;
303,795
Iterable<Tag> getTags(String urlTemplate, HttpRequest request, ClientHttpResponse response);
Iterable<Tag> getTags(String urlTemplate, HttpRequest request, ClientHttpResponse response);
/** * Provides the tags to be associated with metrics that are recorded for the given * {@code request} and {@code response} exchange. * @param urlTemplate the source URl template, if available * @param request the request * @param response the response (may be {@code null} if the exchange failed) * @return...
Provides the tags to be associated with metrics that are recorded for the given request and response exchange
getTags
{ "repo_name": "bclozel/spring-boot", "path": "spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/client/RestTemplateExchangeTagsProvider.java", "license": "apache-2.0", "size": 1554 }
[ "io.micrometer.core.instrument.Tag", "org.springframework.http.HttpRequest", "org.springframework.http.client.ClientHttpResponse" ]
import io.micrometer.core.instrument.Tag; import org.springframework.http.HttpRequest; import org.springframework.http.client.ClientHttpResponse;
import io.micrometer.core.instrument.*; import org.springframework.http.*; import org.springframework.http.client.*;
[ "io.micrometer.core", "org.springframework.http" ]
io.micrometer.core; org.springframework.http;
321,559
public Model getXMLFileMetadata(String internalPath) { Model rdfModel = null; try { ByteArrayOutputStream out = new ByteArrayOutputStream(); OdfXMLHelper helper = new OdfXMLHelper(); if (mRdfFileExtractionTemplate == null) { String filePath = "file:" + OdfPackageDocument.class.getClassLoader().getRe...
Model function(String internalPath) { Model rdfModel = null; try { ByteArrayOutputStream out = new ByteArrayOutputStream(); OdfXMLHelper helper = new OdfXMLHelper(); if (mRdfFileExtractionTemplate == null) { String filePath = "file:" + OdfPackageDocument.class.getClassLoader().getResource(STR).getPath(); URI uri = new ...
/** * Extracts RDF Metadata triple from XML files * * @param internalPath path to the XML file relative to package root * @return RDF Metadata through GRDDL XSLT of given XML file */
Extracts RDF Metadata triple from XML files
getXMLFileMetadata
{ "repo_name": "jbjonesjr/geoproponis", "path": "external/odfdom-java-0.8.10-incubating-sources/org/odftoolkit/odfdom/pkg/OdfPackageDocument.java", "license": "gpl-2.0", "size": 13866 }
[ "com.hp.hpl.jena.rdf.model.Model", "com.hp.hpl.jena.rdf.model.ModelFactory", "com.hp.hpl.jena.util.ResourceUtils", "java.io.ByteArrayInputStream", "java.io.ByteArrayOutputStream", "java.io.InputStreamReader", "java.util.logging.Level", "java.util.logging.Logger", "javax.xml.transform.TransformerFact...
import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory; import com.hp.hpl.jena.util.ResourceUtils; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.InputStreamReader; import java.util.logging.Level; import java.util.logging.Logger; import javax.xml...
import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.util.*; import java.io.*; import java.util.logging.*; import javax.xml.transform.*; import javax.xml.transform.sax.*; import javax.xml.transform.stream.*; import org.odftoolkit.odfdom.pkg.rdfa.*; import org.xml.sax.*;
[ "com.hp.hpl", "java.io", "java.util", "javax.xml", "org.odftoolkit.odfdom", "org.xml.sax" ]
com.hp.hpl; java.io; java.util; javax.xml; org.odftoolkit.odfdom; org.xml.sax;
2,670,618
public String[] getEnvironments() { ContextEnvironment[] envs = getNamingResources().findEnvironments(); ArrayList results = new ArrayList(); for (int i = 0; i < envs.length; i++) { try { ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), envs[i]); result...
String[] function() { ContextEnvironment[] envs = getNamingResources().findEnvironments(); ArrayList results = new ArrayList(); for (int i = 0; i < envs.length; i++) { try { ObjectName oname = MBeanUtils.createObjectName(managed.getDomain(), envs[i]); results.add(oname.toString()); } catch (MalformedObjectNameException...
/** * Return the MBean Names of the set of defined environment entries for * this web application */
Return the MBean Names of the set of defined environment entries for this web application
getEnvironments
{ "repo_name": "NorthFacing/step-by-Java", "path": "fra-tomcat/fra-tomcat-analysis/source/book01/HowTomcatWorks/src/org/apache/catalina/mbeans/StandardContextMBean.java", "license": "gpl-2.0", "size": 12094 }
[ "java.util.ArrayList", "javax.management.MalformedObjectNameException", "javax.management.ObjectName", "org.apache.catalina.deploy.ContextEnvironment" ]
import java.util.ArrayList; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import org.apache.catalina.deploy.ContextEnvironment;
import java.util.*; import javax.management.*; import org.apache.catalina.deploy.*;
[ "java.util", "javax.management", "org.apache.catalina" ]
java.util; javax.management; org.apache.catalina;
1,691,302
private void PrintBindingTemplates(BindingTemplates bindingTemplates) { if (bindingTemplates == null) { return; } for (int i = 0; i < bindingTemplates.getBindingTemplate().size(); i++) { System.out.println("Binding K...
void function(BindingTemplates bindingTemplates) { if (bindingTemplates == null) { return; } for (int i = 0; i < bindingTemplates.getBindingTemplate().size(); i++) { System.out.println(STR + bindingTemplates.getBindingTemplate().get(i).getBindingKey()); if (bindingTemplates.getBindingTemplate().get(i).getAccessPoint() ...
/** * This function is useful for translating UDDI's somewhat complex data * format to something that is more useful. * * @param bindingTemplates */
This function is useful for translating UDDI's somewhat complex data format to something that is more useful
PrintBindingTemplates
{ "repo_name": "st609877063/juddi", "path": "simple-browse/src/main/java/org/apache/juddi/example/browse/SimpleBrowse.java", "license": "apache-2.0", "size": 19060 }
[ "org.apache.juddi.api_v3.AccessPointType", "org.uddi.api_v3.BindingTemplates" ]
import org.apache.juddi.api_v3.AccessPointType; import org.uddi.api_v3.BindingTemplates;
import org.apache.juddi.api_v3.*; import org.uddi.api_v3.*;
[ "org.apache.juddi", "org.uddi.api_v3" ]
org.apache.juddi; org.uddi.api_v3;
2,611,372
public void setGenAlert(boolean genAlert) { Calendar calendar = Calendar.getInstance(); long timestamp = System.currentTimeMillis(); calendar.setTimeInMillis(timestamp); DateFormat minuteDateFormat = new SimpleDateFormat("HHmm"); Date date = calendar.getTime(); String timeKey = minuteDateFor...
void function(boolean genAlert) { Calendar calendar = Calendar.getInstance(); long timestamp = System.currentTimeMillis(); calendar.setTimeInMillis(timestamp); DateFormat minuteDateFormat = new SimpleDateFormat("HHmm"); Date date = calendar.getTime(); String timeKey = minuteDateFormat.format(date); DateFormat dayDateFo...
/** * This method is used to artificially generate alerts * * @param genAlert */
This method is used to artificially generate alerts
setGenAlert
{ "repo_name": "siyuanh/incubator-apex-malhar", "path": "demos/machinedata/src/main/java/com/datatorrent/demos/machinedata/operator/MachineInfoAveragingOperator.java", "license": "apache-2.0", "size": 7218 }
[ "com.datatorrent.demos.machinedata.data.MachineInfo", "com.datatorrent.demos.machinedata.data.MachineKey", "java.text.DateFormat", "java.text.SimpleDateFormat", "java.util.Calendar", "java.util.Date" ]
import com.datatorrent.demos.machinedata.data.MachineInfo; import com.datatorrent.demos.machinedata.data.MachineKey; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date;
import com.datatorrent.demos.machinedata.data.*; import java.text.*; import java.util.*;
[ "com.datatorrent.demos", "java.text", "java.util" ]
com.datatorrent.demos; java.text; java.util;
242,770
synchronized (ConnectionLimiter.LOCK) { this.connectioncount--; } this.eventSender.fireEvent(new BasicEvent<Long>(this, ConnectionLimiter.CONNECTION_CLOSED, null, null)); }
synchronized (ConnectionLimiter.LOCK) { this.connectioncount--; } this.eventSender.fireEvent(new BasicEvent<Long>(this, ConnectionLimiter.CONNECTION_CLOSED, null, null)); }
/** * DON'T forget to call this after connection is closed */
DON'T forget to call this after connection is closed
closedConnection
{ "repo_name": "Horstman/AppWorkUtils", "path": "src/org/appwork/utils/net/ConnectionLimiter.java", "license": "artistic-2.0", "size": 6481 }
[ "org.appwork.utils.event.BasicEvent" ]
import org.appwork.utils.event.BasicEvent;
import org.appwork.utils.event.*;
[ "org.appwork.utils" ]
org.appwork.utils;
1,707,146
public GenerateDefaultLayoutMethod_ onVisibilityChanged( OnModelVisibilityChangedListener<GenerateDefaultLayoutMethod_, Object> listener) { onMutation(); this.onModelVisibilityChangedListener_epoxyGeneratedModel = listener; return this; }
GenerateDefaultLayoutMethod_ function( OnModelVisibilityChangedListener<GenerateDefaultLayoutMethod_, Object> listener) { onMutation(); this.onModelVisibilityChangedListener_epoxyGeneratedModel = listener; return this; }
/** * Register a listener that will be called when this model visibility has changed. * <p> * The listener will contribute to this model's hashCode state per the {@link * com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash} rules. */
Register a listener that will be called when this model visibility has changed. The listener will contribute to this model's hashCode state per the <code>com.airbnb.epoxy.EpoxyAttribute.Option#DoNotHash</code> rules
onVisibilityChanged
{ "repo_name": "airbnb/epoxy", "path": "epoxy-processortest/src/test/resources/ksp/GenerateDefaultLayoutMethod_.java", "license": "apache-2.0", "size": 8714 }
[ "java.lang.Object" ]
import java.lang.Object;
import java.lang.*;
[ "java.lang" ]
java.lang;
702,423
public Robustness getRobustness(int index);
Robustness function(int index);
/** * Returns robustness of specified trajectory. * @param index Index of a trajectory. * @return Robustness of trajectory with given index. */
Returns robustness of specified trajectory
getRobustness
{ "repo_name": "VojtechBruza/parasim", "path": "extensions/computation-verification-api/src/main/java/org/sybila/parasim/computation/verification/api/VerifiedDataBlock.java", "license": "gpl-3.0", "size": 1501 }
[ "org.sybila.parasim.model.verification.Robustness" ]
import org.sybila.parasim.model.verification.Robustness;
import org.sybila.parasim.model.verification.*;
[ "org.sybila.parasim" ]
org.sybila.parasim;
1,506,956
DBVolumeBackups selectByPrimaryKey(Integer id);
DBVolumeBackups selectByPrimaryKey(Integer id);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table volume_backups * * @mbggenerated Tue May 26 15:53:09 CST 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table volume_backups
selectByPrimaryKey
{ "repo_name": "wolabs/womano", "path": "main/java/com/culabs/unicomportal/dao/DBVolumeBackupsMapper.java", "license": "apache-2.0", "size": 1871 }
[ "com.culabs.unicomportal.model.db.DBVolumeBackups" ]
import com.culabs.unicomportal.model.db.DBVolumeBackups;
import com.culabs.unicomportal.model.db.*;
[ "com.culabs.unicomportal" ]
com.culabs.unicomportal;
334,769
public void setArrayElementTib(TIB arrayElementTIB) { if (VM.VerifyAssertions) VM._assert(getType().isArrayType()); set(TIB_ARRAY_ELEMENT_TIB_INDEX, Magic.tibAsObject(arrayElementTIB)); }
void function(TIB arrayElementTIB) { if (VM.VerifyAssertions) VM._assert(getType().isArrayType()); set(TIB_ARRAY_ELEMENT_TIB_INDEX, Magic.tibAsObject(arrayElementTIB)); }
/** * Set the TIB of the elements of this array (null if not an array). */
Set the TIB of the elements of this array (null if not an array)
setArrayElementTib
{ "repo_name": "CodeOffloading/JikesRVM-CCO", "path": "jikesrvm-3.1.3/rvm/src/org/jikesrvm/objectmodel/TIB.java", "license": "epl-1.0", "size": 12330 }
[ "org.jikesrvm.runtime.Magic" ]
import org.jikesrvm.runtime.Magic;
import org.jikesrvm.runtime.*;
[ "org.jikesrvm.runtime" ]
org.jikesrvm.runtime;
2,563,477
public static ImmutableMap.Builder<String, Object> propertiesBuilder() { return new ImmutableMap.Builder<String, Object>(); }
static ImmutableMap.Builder<String, Object> function() { return new ImmutableMap.Builder<String, Object>(); }
/** * Helper for building Datacore maps * ex. resourceService.propertiesBuilder().put("name", "John").put("age", 18).build() * @return */
Helper for building Datacore maps ex. resourceService.propertiesBuilder().put("name", "John").put("age", 18).build()
propertiesBuilder
{ "repo_name": "ozwillo/ozwillo-datacore", "path": "ozwillo-datacore-rest-api/src/main/java/org/oasis/datacore/rest/api/DCResource.java", "license": "agpl-3.0", "size": 14385 }
[ "com.google.common.collect.ImmutableMap" ]
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
1,726,940
@Test public void testCountFolders1FileSize1() throws IOException { final PathCounters visitor = PathUtils .countDirectory(Paths.get("src/test/resources/org/apache/commons/io/dirs-1-file-size-1")); assertCounts(1, 1, 1, visitor); }
void function() throws IOException { final PathCounters visitor = PathUtils .countDirectory(Paths.get(STR)); assertCounts(1, 1, 1, visitor); }
/** * Tests a directory with one file of size 1. */
Tests a directory with one file of size 1
testCountFolders1FileSize1
{ "repo_name": "apache/commons-io", "path": "src/test/java/org/apache/commons/io/file/PathUtilsCountingTest.java", "license": "apache-2.0", "size": 3080 }
[ "java.io.IOException", "java.nio.file.Paths", "org.apache.commons.io.file.CounterAssertions", "org.apache.commons.io.file.Counters" ]
import java.io.IOException; import java.nio.file.Paths; import org.apache.commons.io.file.CounterAssertions; import org.apache.commons.io.file.Counters;
import java.io.*; import java.nio.file.*; import org.apache.commons.io.file.*;
[ "java.io", "java.nio", "org.apache.commons" ]
java.io; java.nio; org.apache.commons;
2,367,671
public void setM(double m) { setAttribute(Semantics.M, 0, m); }
void function(double m) { setAttribute(Semantics.M, 0, m); }
/** * Sets the M coordinate of this point. * * @param m * The M coordinate to be set for this point. */
Sets the M coordinate of this point
setM
{ "repo_name": "davidraleigh/geometry-api-java", "path": "src/main/java/com/esri/core/geometry/Point.java", "license": "apache-2.0", "size": 14264 }
[ "com.esri.core.geometry.VertexDescription" ]
import com.esri.core.geometry.VertexDescription;
import com.esri.core.geometry.*;
[ "com.esri.core" ]
com.esri.core;
139,343
public String[] getValueMetrics() throws RemoteException; public String[] getDurationMetrics() throws RemoteException;
String[] getValueMetrics() throws RemoteException; public String[] function() throws RemoteException;
/** * Gets names of available duration metrics. * * @return * @throws RemoteException */
Gets names of available duration metrics
getDurationMetrics
{ "repo_name": "okulikov/modeshape", "path": "web/modeshape-web-explorer/src/main/java/org/modeshape/web/client/JcrService.java", "license": "apache-2.0", "size": 11507 }
[ "org.modeshape.web.shared.RemoteException" ]
import org.modeshape.web.shared.RemoteException;
import org.modeshape.web.shared.*;
[ "org.modeshape.web" ]
org.modeshape.web;
2,844,229
long position() throws IOException;
long position() throws IOException;
/** * Returns this channel's position. * * @return This channel's position, a non-negative integer counting the number of bytes from the * beginning of the entity to the current position * @throws ClosedChannelException If this channel is closed * @throws IOException If some other I/O ...
Returns this channel's position
position
{ "repo_name": "scheib/chromium", "path": "third_party/tflite_support/src/tensorflow_lite_support/metadata/java/src/java/org/tensorflow/lite/support/metadata/SeekableByteChannelCompat.java", "license": "bsd-3-clause", "size": 4839 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,007,383
public void setPrimaryKey(ObjectKey key) { setObjectID(new Integer(((NumberKey) key).intValue())); }
void function(ObjectKey key) { setObjectID(new Integer(((NumberKey) key).intValue())); }
/** * Set the PrimaryKey using ObjectKey. * * @param key objectID ObjectKey */
Set the PrimaryKey using ObjectKey
setPrimaryKey
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTWorkFlowCategory.java", "license": "gpl-3.0", "size": 27582 }
[ "org.apache.torque.om.NumberKey", "org.apache.torque.om.ObjectKey" ]
import org.apache.torque.om.NumberKey; import org.apache.torque.om.ObjectKey;
import org.apache.torque.om.*;
[ "org.apache.torque" ]
org.apache.torque;
1,195,898
boolean offerInternal(Data data, long timeout) { TxnReserveOfferOperation operation = new TxnReserveOfferOperation(name, timeout, offeredQueue.size(), tx.getTxnId()); operation.setCallerUuid(tx.getOwnerUuid()); try { Future<Long> future = invoke(operation); ...
boolean offerInternal(Data data, long timeout) { TxnReserveOfferOperation operation = new TxnReserveOfferOperation(name, timeout, offeredQueue.size(), tx.getTxnId()); operation.setCallerUuid(tx.getOwnerUuid()); try { Future<Long> future = invoke(operation); Long itemId = future.get(); if (itemId != null) { if (!itemIdS...
/** * Tries to accomodate one more item in the queue in addition to the * already offered items. If it succeeds by getting an item ID, it will * add the item to the * Makes a reservation for a {@link TransactionalQueue#offer} operation * and adds the commit operation to the transaction log. ...
Tries to accomodate one more item in the queue in addition to the already offered items. If it succeeds by getting an item ID, it will add the item to the Makes a reservation for a <code>TransactionalQueue#offer</code> operation and adds the commit operation to the transaction log
offerInternal
{ "repo_name": "dbrimley/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/collection/impl/txnqueue/TransactionalQueueProxySupport.java", "license": "apache-2.0", "size": 8181 }
[ "com.hazelcast.collection.impl.queue.QueueItem", "com.hazelcast.collection.impl.txnqueue.operations.TxnOfferOperation", "com.hazelcast.collection.impl.txnqueue.operations.TxnReserveOfferOperation", "com.hazelcast.nio.serialization.Data", "com.hazelcast.transaction.TransactionException", "com.hazelcast.uti...
import com.hazelcast.collection.impl.queue.QueueItem; import com.hazelcast.collection.impl.txnqueue.operations.TxnOfferOperation; import com.hazelcast.collection.impl.txnqueue.operations.TxnReserveOfferOperation; import com.hazelcast.nio.serialization.Data; import com.hazelcast.transaction.TransactionException; import ...
import com.hazelcast.collection.impl.queue.*; import com.hazelcast.collection.impl.txnqueue.operations.*; import com.hazelcast.nio.serialization.*; import com.hazelcast.transaction.*; import com.hazelcast.util.*; import java.util.concurrent.*;
[ "com.hazelcast.collection", "com.hazelcast.nio", "com.hazelcast.transaction", "com.hazelcast.util", "java.util" ]
com.hazelcast.collection; com.hazelcast.nio; com.hazelcast.transaction; com.hazelcast.util; java.util;
2,013,611
public ControlType getControlType() { if (controlType != null && controlType.eIsProxy()) { InternalEObject oldControlType = (InternalEObject)controlType; controlType = (ControlType)eResolveProxy(oldControlType); if (controlType != oldControlType) { } } return controlType; }
ControlType function() { if (controlType != null && controlType.eIsProxy()) { InternalEObject oldControlType = (InternalEObject)controlType; controlType = (ControlType)eResolveProxy(oldControlType); if (controlType != oldControlType) { } } return controlType; }
/** * Returns the value of the '<em><b>Control Type</b></em>' reference. * It is bidirectional and its opposite is '{@link CIM15.IEC61970.Meas.ControlType#getControls <em>Controls</em>}'. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Control Type</em>' reference isn't clear, * there really sh...
Returns the value of the 'Control Type' reference. It is bidirectional and its opposite is '<code>CIM15.IEC61970.Meas.ControlType#getControls Controls</code>'. If the meaning of the 'Control Type' reference isn't clear, there really should be more of a description here...
getControlType
{ "repo_name": "SES-fortiss/SmartGridCoSimulation", "path": "core/cim15/src/CIM15/IEC61970/Meas/Control.java", "license": "apache-2.0", "size": 26112 }
[ "org.eclipse.emf.ecore.InternalEObject" ]
import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,493,251
public Task getTask(String taskid) { Task task = taskManager.getLocalTask(taskid); if (task == null) { task = taskManager.getRemoteTask(taskid); } return task; }
Task function(String taskid) { Task task = taskManager.getLocalTask(taskid); if (task == null) { task = taskManager.getRemoteTask(taskid); } return task; }
/** * Get a task with the given task id from the database. * * @param taskid * @return */
Get a task with the given task id from the database
getTask
{ "repo_name": "CMPUT301F12T04/CMPUT301F12T04", "path": "src/com/example/cmput301/controller/PhotoResponseController.java", "license": "gpl-3.0", "size": 4446 }
[ "com.example.cmput301.model.Task" ]
import com.example.cmput301.model.Task;
import com.example.cmput301.model.*;
[ "com.example.cmput301" ]
com.example.cmput301;
1,633,609
public static void remove() { localMap.remove(); } private final Map<String, Promise<Object>> context; private DynamicContext() { this.context = new HashMap<String, Promise<Object>>(); }
static void function() { localMap.remove(); } private final Map<String, Promise<Object>> context; private DynamicContext() { this.context = new HashMap<String, Promise<Object>>(); }
/** * Removes the value from this thread. * This does not clear the values saved in the context, but makes the context inaccessible for further invocations * of the {@link #getInstance()} method. * * @see ThreadLocal#remove() */
Removes the value from this thread. This does not clear the values saved in the context, but makes the context inaccessible for further invocations of the <code>#getInstance()</code> method
remove
{ "repo_name": "adelapie/open-ecard-IRMA", "path": "common/src/main/java/org/openecard/common/DynamicContext.java", "license": "apache-2.0", "size": 5669 }
[ "java.util.HashMap", "java.util.Map", "org.openecard.common.util.Promise" ]
import java.util.HashMap; import java.util.Map; import org.openecard.common.util.Promise;
import java.util.*; import org.openecard.common.util.*;
[ "java.util", "org.openecard.common" ]
java.util; org.openecard.common;
846,351