method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public YangEnumeration getLocalBreakoutValue() throws JNCException {
YangEnumeration localBreakout = (YangEnumeration)getValue("local-breakout");
if (localBreakout == null) {
localBreakout = new YangEnumeration("allow", new String[] { // default
"allow",
... | YangEnumeration function() throws JNCException { YangEnumeration localBreakout = (YangEnumeration)getValue(STR); if (localBreakout == null) { localBreakout = new YangEnumeration("allow", new String[] { "allow", STR, }); } return localBreakout; } | /**
* Gets the value for child leaf "local-breakout".
* @return The value of the leaf.
*/ | Gets the value for child leaf "local-breakout" | getLocalBreakoutValue | {
"repo_name": "jnpr-shinma/yangfile",
"path": "hitel/src/hctaEpc/mmeSgsn/subscriber/MmeSubscriberPlmn.java",
"license": "apache-2.0",
"size": 40584
} | [
"com.tailf.jnc.YangEnumeration"
] | import com.tailf.jnc.YangEnumeration; | import com.tailf.jnc.*; | [
"com.tailf.jnc"
] | com.tailf.jnc; | 2,525,661 |
byte[] getRawFilters(List<Filter<K, C>> filters); | byte[] getRawFilters(List<Filter<K, C>> filters); | /**
* Returns a raw representation of the filter. For internal use only.
*
* @param filters the filters
* @return the raw representation of the filter
*/ | Returns a raw representation of the filter. For internal use only | getRawFilters | {
"repo_name": "rayokota/hentitydb",
"path": "src/main/java/io/hentitydb/store/Table.java",
"license": "apache-2.0",
"size": 5938
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,043,843 |
public Set<RoleMapping> getMappedIdPRoles(String idPName, String tenantDomain,
LocalRole[] localRoles) throws IdentityProviderManagementException {
int tenantId = IdentityTenantUtil.getTenantId(tenantDomain);
if (StringUtils.isEmpty(idPName)) {
... | Set<RoleMapping> function(String idPName, String tenantDomain, LocalRole[] localRoles) throws IdentityProviderManagementException { int tenantId = IdentityTenantUtil.getTenantId(tenantDomain); if (StringUtils.isEmpty(idPName)) { String msg = STR; log.error(msg); throw new IdentityProviderManagementException(msg); } Ide... | /**
* Retrieves Identity provider information about a given tenant
*
* @param idPName Unique name of the IdP to which the given local roles need to be mapped
* @param tenantDomain The tenant domain of whose local roles need to be mapped
* @param localRoles Local roles which need to be ma... | Retrieves Identity provider information about a given tenant | getMappedIdPRoles | {
"repo_name": "kasungayan/carbon-identity",
"path": "components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManager.java",
"license": "apache-2.0",
"size": 73185
} | [
"java.util.HashSet",
"java.util.Set",
"org.apache.commons.lang.StringUtils",
"org.wso2.carbon.identity.application.common.model.IdentityProvider",
"org.wso2.carbon.identity.application.common.model.LocalRole",
"org.wso2.carbon.identity.application.common.model.PermissionsAndRoleConfig",
"org.wso2.carbon... | import java.util.HashSet; import java.util.Set; import org.apache.commons.lang.StringUtils; import org.wso2.carbon.identity.application.common.model.IdentityProvider; import org.wso2.carbon.identity.application.common.model.LocalRole; import org.wso2.carbon.identity.application.common.model.PermissionsAndRoleConfig; im... | import java.util.*; import org.apache.commons.lang.*; import org.wso2.carbon.identity.application.common.model.*; import org.wso2.carbon.identity.application.common.util.*; import org.wso2.carbon.identity.core.util.*; import org.wso2.carbon.idp.mgt.*; import org.wso2.carbon.idp.mgt.dao.*; import org.wso2.carbon.idp.mgt... | [
"java.util",
"org.apache.commons",
"org.wso2.carbon"
] | java.util; org.apache.commons; org.wso2.carbon; | 1,194,428 |
public byte[] toByteArray() {
return BigDecimalUtil.toByteArray(this.data);
} | byte[] function() { return BigDecimalUtil.toByteArray(this.data); } | /**
* Returns the well data set as an array of bytes. Overflow results in an
* arithmetic exception.
* @return the data set
*/ | Returns the well data set as an array of bytes. Overflow results in an arithmetic exception | toByteArray | {
"repo_name": "jessemull/MicroFlex",
"path": "src/main/java/com/github/jessemull/microflex/bigdecimalflex/plate/WellBigDecimal.java",
"license": "apache-2.0",
"size": 25559
} | [
"com.github.jessemull.microflex.util.BigDecimalUtil"
] | import com.github.jessemull.microflex.util.BigDecimalUtil; | import com.github.jessemull.microflex.util.*; | [
"com.github.jessemull"
] | com.github.jessemull; | 1,538,324 |
public void refreshKeywords() {
Set<Keyword> allKeywords = getAllKeywords();
keywordField.getSelectionModel().clearSelection();
Set<Keyword> setDifference = new LinkedHashSet<>(allKeywords);
setDifference.removeAll(this.keywords);
keywordField.getItems().setAll(setDifference)... | void function() { Set<Keyword> allKeywords = getAllKeywords(); keywordField.getSelectionModel().clearSelection(); Set<Keyword> setDifference = new LinkedHashSet<>(allKeywords); setDifference.removeAll(this.keywords); keywordField.getItems().setAll(setDifference); } | /**
* Reloads keywords which are persisted and sets them to combo box options.
*/ | Reloads keywords which are persisted and sets them to combo box options | refreshKeywords | {
"repo_name": "TomasRejent/WhatToEat",
"path": "src/main/java/cz/afrosoft/whattoeat/core/gui/component/KeywordField.java",
"license": "mit",
"size": 8801
} | [
"cz.afrosoft.whattoeat.core.logic.model.Keyword",
"java.util.LinkedHashSet",
"java.util.Set"
] | import cz.afrosoft.whattoeat.core.logic.model.Keyword; import java.util.LinkedHashSet; import java.util.Set; | import cz.afrosoft.whattoeat.core.logic.model.*; import java.util.*; | [
"cz.afrosoft.whattoeat",
"java.util"
] | cz.afrosoft.whattoeat; java.util; | 2,034,613 |
protected final void addDefaultHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters) {
StringHttpMessageConverter stringConverter = new StringHttpMessageConverter();
stringConverter.setWriteAcceptCharset(false);
messageConverters.add(new ByteArrayHttpMessageConverter());
messageConverters.a... | final void function(List<HttpMessageConverter<?>> messageConverters) { StringHttpMessageConverter stringConverter = new StringHttpMessageConverter(); stringConverter.setWriteAcceptCharset(false); messageConverters.add(new ByteArrayHttpMessageConverter()); messageConverters.add(stringConverter); messageConverters.add(ne... | /**
* Adds a set of default HttpMessageConverter instances to the given list.
* Subclasses can call this method from {@link #configureMessageConverters(List)}.
* @param messageConverters the list to add the default message converters to
*/ | Adds a set of default HttpMessageConverter instances to the given list. Subclasses can call this method from <code>#configureMessageConverters(List)</code> | addDefaultHttpMessageConverters | {
"repo_name": "deathspeeder/class-guard",
"path": "spring-framework-3.2.x/spring-webmvc/src/main/java/org/springframework/web/servlet/config/annotation/WebMvcConfigurationSupport.java",
"license": "gpl-2.0",
"size": 26270
} | [
"java.util.List",
"javax.xml.transform.Source",
"org.springframework.http.converter.ByteArrayHttpMessageConverter",
"org.springframework.http.converter.HttpMessageConverter",
"org.springframework.http.converter.ResourceHttpMessageConverter",
"org.springframework.http.converter.StringHttpMessageConverter",... | import java.util.List; import javax.xml.transform.Source; import org.springframework.http.converter.ByteArrayHttpMessageConverter; import org.springframework.http.converter.HttpMessageConverter; import org.springframework.http.converter.ResourceHttpMessageConverter; import org.springframework.http.converter.StringHttpM... | import java.util.*; import javax.xml.transform.*; import org.springframework.http.converter.*; import org.springframework.http.converter.feed.*; import org.springframework.http.converter.json.*; import org.springframework.http.converter.support.*; import org.springframework.http.converter.xml.*; | [
"java.util",
"javax.xml",
"org.springframework.http"
] | java.util; javax.xml; org.springframework.http; | 927,866 |
public void addMetadataToQueue(final String queueName, List<AndesMessageMetadata> metadata)
throws AndesException; | void function(final String queueName, List<AndesMessageMetadata> metadata) throws AndesException; | /**
* store metadata list specifically under a queue
*
* @param queueName name of the queue to store metadata
* @param metadata metadata list to store
* @throws AndesException
*/ | store metadata list specifically under a queue | addMetadataToQueue | {
"repo_name": "abeykoon/andes",
"path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/MessageStore.java",
"license": "apache-2.0",
"size": 15563
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,179,617 |
void adjustApp(CCIApplication app, CCIProject project)
throws CodeCenterImportException; | void adjustApp(CCIApplication app, CCIProject project) throws CodeCenterImportException; | /**
* Make changes to the given application. The corresponding Protex project
* is also provided in case it is the source of some of the metadata.
*
* @param app
* @param project
* @throws CodeCenterImportException
*/ | Make changes to the given application. The corresponding Protex project is also provided in case it is the source of some of the metadata | adjustApp | {
"repo_name": "blackducksoftware/cc-importer",
"path": "src/main/java/com/blackducksoftware/tools/ccimport/appadjuster/AppAdjuster.java",
"license": "gpl-2.0",
"size": 2462
} | [
"com.blackducksoftware.tools.ccimport.exception.CodeCenterImportException",
"com.blackducksoftware.tools.ccimporter.model.CCIApplication",
"com.blackducksoftware.tools.ccimporter.model.CCIProject"
] | import com.blackducksoftware.tools.ccimport.exception.CodeCenterImportException; import com.blackducksoftware.tools.ccimporter.model.CCIApplication; import com.blackducksoftware.tools.ccimporter.model.CCIProject; | import com.blackducksoftware.tools.ccimport.exception.*; import com.blackducksoftware.tools.ccimporter.model.*; | [
"com.blackducksoftware.tools"
] | com.blackducksoftware.tools; | 2,000,937 |
public static void main(String[] args) throws Exception{
component = new Component();
component.getServers().add(Protocol.HTTP, Config.getInstance().getServerPort());
component.getClients().add(Protocol.FILE);
rsp_service_server csparqlServer = new rsp_service_server();
component.getDefaultHost().att... | static void function(String[] args) throws Exception{ component = new Component(); component.getServers().add(Protocol.HTTP, Config.getInstance().getServerPort()); component.getClients().add(Protocol.FILE); rsp_service_server csparqlServer = new rsp_service_server(); component.getDefaultHost().attach("", csparqlServer)... | /**
* The implementation of this main method needs to call the method initialize
* of a class that implements RDF_Stream_Processor_Interface interface
*/ | The implementation of this main method needs to call the method initialize of a class that implements RDF_Stream_Processor_Interface interface | main | {
"repo_name": "streamreasoning/rsp-services",
"path": "src/main/java/org/streamreasoning/rsp_services/server/rsp_service_server.java",
"license": "apache-2.0",
"size": 2724
} | [
"org.restlet.Component",
"org.restlet.data.Protocol",
"org.streamreasoning.rsp_services.configuration.Config"
] | import org.restlet.Component; import org.restlet.data.Protocol; import org.streamreasoning.rsp_services.configuration.Config; | import org.restlet.*; import org.restlet.data.*; import org.streamreasoning.rsp_services.configuration.*; | [
"org.restlet",
"org.restlet.data",
"org.streamreasoning.rsp_services"
] | org.restlet; org.restlet.data; org.streamreasoning.rsp_services; | 1,645,770 |
protected void sequence_ConfigSpecification(ISerializationContext context, ConfigSpecification semanticObject) {
genericSequencer.createSequence(context, semanticObject);
}
| void function(ISerializationContext context, ConfigSpecification semanticObject) { genericSequencer.createSequence(context, semanticObject); } | /**
* Contexts:
* ConfigSpecification returns ConfigSpecification
* Config returns ConfigSpecification
*
* Constraint:
* (entries+=ConfigEntry entries+=ConfigEntry*)?
*/ | Contexts: ConfigSpecification returns ConfigSpecification Config returns ConfigSpecification Constraint: (entries+=ConfigEntry entries+=ConfigEntry*) | sequence_ConfigSpecification | {
"repo_name": "viatra/VIATRA-Generator",
"path": "Application/hu.bme.mit.inf.dslreasoner.application/src-gen/hu/bme/mit/inf/dslreasoner/application/serializer/ApplicationConfigurationSemanticSequencer.java",
"license": "epl-1.0",
"size": 55568
} | [
"hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification",
"org.eclipse.xtext.serializer.ISerializationContext"
] | import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ConfigSpecification; import org.eclipse.xtext.serializer.ISerializationContext; | import hu.bme.mit.inf.dslreasoner.application.*; import org.eclipse.xtext.serializer.*; | [
"hu.bme.mit",
"org.eclipse.xtext"
] | hu.bme.mit; org.eclipse.xtext; | 374,607 |
public SessionName createSessionName(final String name) {
final SessionNameField sessionNameImpl = new SessionNameField();
try {
sessionNameImpl.setValue(name);
}
catch (final SdpException e) {
LOG.warn("Could not set value", e);
}
... | SessionName function(final String name) { final SessionNameField sessionNameImpl = new SessionNameField(); try { sessionNameImpl.setValue(name); } catch (final SdpException e) { LOG.warn(STR, e); } return sessionNameImpl; } | /** Returns SessionName object with the specified name.
* @param name the string containing the name of the session.
* @return SessionName
*/ | Returns SessionName object with the specified name | createSessionName | {
"repo_name": "adamfisk/littleshoot-client",
"path": "common/sdp/src/main/java/org/lastbamboo/common/sdp/api/SdpFactory.java",
"license": "gpl-2.0",
"size": 26574
} | [
"org.lastbamboo.common.sdp.fields.SessionNameField"
] | import org.lastbamboo.common.sdp.fields.SessionNameField; | import org.lastbamboo.common.sdp.fields.*; | [
"org.lastbamboo.common"
] | org.lastbamboo.common; | 7,791 |
private int getIntParameter(String[] valueList, int currentValue, String parameter, String parameterName) {
int idx = ArrayUtils.indexOf(valueList, parameter);
if (idx != -1) {
if (currentValue == 0) {
logger.debug("{} Parameter {} found at index {} for remote control {}"... | int function(String[] valueList, int currentValue, String parameter, String parameterName) { int idx = ArrayUtils.indexOf(valueList, parameter); if (idx != -1) { if (currentValue == 0) { logger.debug(STR, parameterName, parameter, idx + 1, remoteControlAddress); return idx + 1; } else { logger.warn(STR, parameterName, ... | /**
* Returns the first found parameter index of the valueList.
*/ | Returns the first found parameter index of the valueList | getIntParameter | {
"repo_name": "lewie/openhab",
"path": "bundles/binding/org.openhab.binding.homematic/src/main/java/org/openhab/binding/homematic/internal/communicator/RemoteControlOptionParser.java",
"license": "epl-1.0",
"size": 5773
} | [
"org.apache.commons.lang.ArrayUtils"
] | import org.apache.commons.lang.ArrayUtils; | import org.apache.commons.lang.*; | [
"org.apache.commons"
] | org.apache.commons; | 964,175 |
public BufferedImage waitNextVisualizedImage(){
aliveCheck();
try{
synchronized (frameMonitor) {
frameMonitor.wait(5000);
}
}catch(InterruptedException ex){}
return visualized;
} | BufferedImage function(){ aliveCheck(); try{ synchronized (frameMonitor) { frameMonitor.wait(5000); } }catch(InterruptedException ex){} return visualized; } | /**
* Waits for the next compuvision 2000 visualization image.<br>
* Also starts the thread if not already running.
* @return A BufferedImage containing debug data.
*/ | Waits for the next compuvision 2000 visualization image. Also starts the thread if not already running | waitNextVisualizedImage | {
"repo_name": "J00nzu/Sekku-Bot",
"path": "desktop/src/desktop/CompVisionAlgo.java",
"license": "mit",
"size": 14278
} | [
"java.awt.image.BufferedImage"
] | import java.awt.image.BufferedImage; | import java.awt.image.*; | [
"java.awt"
] | java.awt; | 646,474 |
L0ModificationInstruction instruction =
(L0ModificationInstruction) this.instruction;
result.put(InstructionCodec.SUBTYPE, instruction.subtype().name());
switch (instruction.subtype()) {
case LAMBDA:
final L0ModificationInstruction.ModLambdaInstruction modLam... | L0ModificationInstruction instruction = (L0ModificationInstruction) this.instruction; result.put(InstructionCodec.SUBTYPE, instruction.subtype().name()); switch (instruction.subtype()) { case LAMBDA: final L0ModificationInstruction.ModLambdaInstruction modLambdaInstruction = (L0ModificationInstruction.ModLambdaInstruct... | /**
* Encode an L0 modification instruction.
*
* @param result json node that the instruction attributes are added to
*/ | Encode an L0 modification instruction | encodeL0 | {
"repo_name": "packet-tracker/onos-1.4.0-custom-build",
"path": "core/common/src/main/java/org/onosproject/codec/impl/EncodeInstructionCodecHelper.java",
"license": "apache-2.0",
"size": 9806
} | [
"org.onosproject.net.OchSignal",
"org.onosproject.net.flow.instructions.L0ModificationInstruction"
] | import org.onosproject.net.OchSignal; import org.onosproject.net.flow.instructions.L0ModificationInstruction; | import org.onosproject.net.*; import org.onosproject.net.flow.instructions.*; | [
"org.onosproject.net"
] | org.onosproject.net; | 1,274,746 |
messager.printMessage(Diagnostic.Kind.WARNING, msg, e);
} | messager.printMessage(Diagnostic.Kind.WARNING, msg, e); } | /**
* Issue a compilation warning.
*
* @param msg the text of the warning
* @param e the element to which it pertains
*/ | Issue a compilation warning | reportWarning | {
"repo_name": "wuman/auto-parcel",
"path": "auto-parcel-processor/src/main/java/auto/parcel/processor/ErrorReporter.java",
"license": "apache-2.0",
"size": 2242
} | [
"javax.tools.Diagnostic"
] | import javax.tools.Diagnostic; | import javax.tools.*; | [
"javax.tools"
] | javax.tools; | 2,355,559 |
private boolean compare( MavenProject project, Dependency dep )
{
if ( !StringUtils.equals( project.getGroupId(), dep.getGroupId() ) )
{
return false;
}
if ( !StringUtils.equals( project.getArtifactId(), dep.getArtifactId() ) )
{
return false;
... | boolean function( MavenProject project, Dependency dep ) { if ( !StringUtils.equals( project.getGroupId(), dep.getGroupId() ) ) { return false; } if ( !StringUtils.equals( project.getArtifactId(), dep.getArtifactId() ) ) { return false; } return true; } | /**
* Compare a project to a dependency. Returns true only if the groupId and artifactId are all
* equal.
*
* @param project the project
* @param dep the dependency
* @return true if project and dep refer to the same artifact
*/ | Compare a project to a dependency. Returns true only if the groupId and artifactId are all equal | compare | {
"repo_name": "lcorneliussen/apache-versions",
"path": "src/main/java/org/codehaus/mojo/versions/AbstractVersionsDependencyUpdaterMojo.java",
"license": "apache-2.0",
"size": 14630
} | [
"org.apache.commons.lang.StringUtils",
"org.apache.maven.model.Dependency",
"org.apache.maven.project.MavenProject"
] | import org.apache.commons.lang.StringUtils; import org.apache.maven.model.Dependency; import org.apache.maven.project.MavenProject; | import org.apache.commons.lang.*; import org.apache.maven.model.*; import org.apache.maven.project.*; | [
"org.apache.commons",
"org.apache.maven"
] | org.apache.commons; org.apache.maven; | 466,431 |
Event addEvent(Event event, String sessionId) throws ServiceException; | Event addEvent(Event event, String sessionId) throws ServiceException; | /**
* Add Event
* @param event Event to create
* @return created Event
* @throws ServiceException on error
*/ | Add Event | addEvent | {
"repo_name": "PloughingAByteField/tiatus",
"path": "service/src/main/java/org/tiatus/service/EventService.java",
"license": "mit",
"size": 2066
} | [
"org.tiatus.entity.Event"
] | import org.tiatus.entity.Event; | import org.tiatus.entity.*; | [
"org.tiatus.entity"
] | org.tiatus.entity; | 1,834,175 |
public Configuration getFlinkConfiguration() {
return flinkConfig.clone();
} | Configuration function() { return flinkConfig.clone(); } | /**
* Return the Flink configuration object.
* @return The Flink configuration object
*/ | Return the Flink configuration object | getFlinkConfiguration | {
"repo_name": "xiaokuangkuang/kuangjingxiangmu",
"path": "flink-clients/src/main/java/org/apache/flink/client/program/ClusterClient.java",
"license": "apache-2.0",
"size": 41250
} | [
"org.apache.flink.configuration.Configuration"
] | import org.apache.flink.configuration.Configuration; | import org.apache.flink.configuration.*; | [
"org.apache.flink"
] | org.apache.flink; | 150,849 |
public int storeByCondition(Delegator delegator, ModelEntity modelEntity, Map<String, ? extends Object> fieldsToSet, EntityCondition condition) throws GenericEntityException {
if (modelEntity == null || condition == null) {
return 0;
}
return genericDAO.updateByCondition(delegato... | int function(Delegator delegator, ModelEntity modelEntity, Map<String, ? extends Object> fieldsToSet, EntityCondition condition) throws GenericEntityException { if (modelEntity == null condition == null) { return 0; } return genericDAO.updateByCondition(delegator, modelEntity, fieldsToSet, condition); } | /** Updates a group of values in a single pass.
*@param modelEntity The ModelEntity of the Entity as defined in the entity XML file
*@param fieldsToSet The fields of the named entity to set in the database
*@param condition The condition that restricts the list of removed values
*@return int represe... | Updates a group of values in a single pass | storeByCondition | {
"repo_name": "yuri0x7c1/ofbiz-explorer",
"path": "src/test/resources/apache-ofbiz-16.11.03/framework/entity/src/main/java/org/apache/ofbiz/entity/datasource/GenericHelperDAO.java",
"license": "apache-2.0",
"size": 10032
} | [
"java.util.Map",
"org.apache.ofbiz.entity.Delegator",
"org.apache.ofbiz.entity.GenericEntityException",
"org.apache.ofbiz.entity.condition.EntityCondition",
"org.apache.ofbiz.entity.model.ModelEntity"
] | import java.util.Map; import org.apache.ofbiz.entity.Delegator; import org.apache.ofbiz.entity.GenericEntityException; import org.apache.ofbiz.entity.condition.EntityCondition; import org.apache.ofbiz.entity.model.ModelEntity; | import java.util.*; import org.apache.ofbiz.entity.*; import org.apache.ofbiz.entity.condition.*; import org.apache.ofbiz.entity.model.*; | [
"java.util",
"org.apache.ofbiz"
] | java.util; org.apache.ofbiz; | 1,782,255 |
public final List<Dependency> getDependencies() {
return dependencies;
} | final List<Dependency> function() { return dependencies; } | /**
* Gets the list of dependencies in the class definition.
* @return
* The list of dependencies in the class definition.
*/ | Gets the list of dependencies in the class definition | getDependencies | {
"repo_name": "darrivau/GOOL",
"path": "src/main/java/gool/ast/core/ClassDef.java",
"license": "gpl-3.0",
"size": 14814
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,911,922 |
public void assertContainsOnly(AssertionInfo info, float[] actual, float[] values) {
arrays.assertContainsOnly(info, failures, actual, values);
} | void function(AssertionInfo info, float[] actual, float[] values) { arrays.assertContainsOnly(info, failures, actual, values); } | /**
* Asserts that the given array contains only the given values and nothing else, in any order.
* @param info contains information about the assertion.
* @param actual the given array.
* @param values the values that are expected to be in the given array.
* @throws NullPointerException if the array of ... | Asserts that the given array contains only the given values and nothing else, in any order | assertContainsOnly | {
"repo_name": "yurloc/assertj-core",
"path": "src/main/java/org/assertj/core/internal/FloatArrays.java",
"license": "apache-2.0",
"size": 14074
} | [
"org.assertj.core.api.AssertionInfo"
] | import org.assertj.core.api.AssertionInfo; | import org.assertj.core.api.*; | [
"org.assertj.core"
] | org.assertj.core; | 2,309,244 |
private void evaluateExpressions()
throws JspException {
String string = null;
Boolean bool = null;
if ((string =
EvalHelper.evalString("accesskey", getAccesskeyExpr(), this,
pageContext)) != null) {
setAccesskey(string);
}
... | void function() throws JspException { String string = null; Boolean bool = null; if ((string = EvalHelper.evalString(STR, getAccesskeyExpr(), this, pageContext)) != null) { setAccesskey(string); } if ((string = EvalHelper.evalString("alt", getAltExpr(), this, pageContext)) != null) { setAlt(string); } if ((string = Eva... | /**
* Processes all attribute values which use the JSTL expression evaluation
* engine to determine their values.
*
* @throws JspException if a JSP exception has occurred
*/ | Processes all attribute values which use the JSTL expression evaluation engine to determine their values | evaluateExpressions | {
"repo_name": "shuliangtao/struts-1.3.10",
"path": "src/el/src/main/java/org/apache/strutsel/taglib/html/ELCancelTag.java",
"license": "apache-2.0",
"size": 24173
} | [
"javax.servlet.jsp.JspException",
"org.apache.strutsel.taglib.utils.EvalHelper"
] | import javax.servlet.jsp.JspException; import org.apache.strutsel.taglib.utils.EvalHelper; | import javax.servlet.jsp.*; import org.apache.strutsel.taglib.utils.*; | [
"javax.servlet",
"org.apache.strutsel"
] | javax.servlet; org.apache.strutsel; | 2,391,477 |
public static final XAException traceXAException(XAException xae, Class callerClass) {
svLogger.info("THROW_XAEXCEPTION: " + AdapterUtil.getXAExceptionCodeString(xae.errorCode) + " - " + xae.getMessage());
return xae;
} | static final XAException function(XAException xae, Class callerClass) { svLogger.info(STR + AdapterUtil.getXAExceptionCodeString(xae.errorCode) + STR + xae.getMessage()); return xae; } | /**
* Method to translate the XAResource stuff, including the error code.
*/ | Method to translate the XAResource stuff, including the error code | traceXAException | {
"repo_name": "kgibm/open-liberty",
"path": "dev/com.ibm.ws.ejbcontainer.fat_tools_rar/src/com/ibm/ws/ejbcontainer/fat/rar/spi/OnePhaseXAResourceImpl.java",
"license": "epl-1.0",
"size": 17170
} | [
"com.ibm.ws.ejbcontainer.fat.rar.core.AdapterUtil",
"javax.transaction.xa.XAException"
] | import com.ibm.ws.ejbcontainer.fat.rar.core.AdapterUtil; import javax.transaction.xa.XAException; | import com.ibm.ws.ejbcontainer.fat.rar.core.*; import javax.transaction.xa.*; | [
"com.ibm.ws",
"javax.transaction"
] | com.ibm.ws; javax.transaction; | 2,732,558 |
private void setMsgTransactionId() {
if (participateInTransaction() && getMessage().getTransactionId() == TXManagerImpl.NOTX) {
getMessage().setTransactionId(TXManagerImpl.getCurrentTXUniqueId());
}
} | void function() { if (participateInTransaction() && getMessage().getTransactionId() == TXManagerImpl.NOTX) { getMessage().setTransactionId(TXManagerImpl.getCurrentTXUniqueId()); } } | /**
* Sets the transaction id on the message
*/ | Sets the transaction id on the message | setMsgTransactionId | {
"repo_name": "masaki-yamakawa/geode",
"path": "geode-core/src/main/java/org/apache/geode/cache/client/internal/AbstractOp.java",
"license": "apache-2.0",
"size": 14650
} | [
"org.apache.geode.internal.cache.TXManagerImpl"
] | import org.apache.geode.internal.cache.TXManagerImpl; | import org.apache.geode.internal.cache.*; | [
"org.apache.geode"
] | org.apache.geode; | 1,872,428 |
@Override
protected String makeStringLiteral(String literalValue) {
if (StringUtils.isEmpty(literalValue)) {
return "NULL";
}
return String.format("'%s'", StringUtils.replace(StringEscapeUtils.escapeSql(literalValue), "\\", "\\\\"));
}
| String function(String literalValue) { if (StringUtils.isEmpty(literalValue)) { return "NULL"; } return String.format("'%s'", StringUtils.replace(StringEscapeUtils.escapeSql(literalValue), "\\", "\\\\")); } | /**
* Backslashes in MySQL denote escape sequences and have to themselves be escaped.
*
* @see http://dev.mysql.com/doc/refman/5.0/en/string-literals.html
* @see org.alfasoftware.morf.jdbc.SqlDialect#makeStringLiteral(java.lang.String)
*/ | Backslashes in MySQL denote escape sequences and have to themselves be escaped | makeStringLiteral | {
"repo_name": "badgerwithagun/morf",
"path": "morf-mysql/src/main/java/org/alfasoftware/morf/jdbc/mysql/MySqlDialect.java",
"license": "apache-2.0",
"size": 33781
} | [
"org.apache.commons.lang.StringEscapeUtils",
"org.apache.commons.lang.StringUtils"
] | import org.apache.commons.lang.StringEscapeUtils; import org.apache.commons.lang.StringUtils; | import org.apache.commons.lang.*; | [
"org.apache.commons"
] | org.apache.commons; | 831,576 |
public synchronized void start() throws LifecycleException {
try {
StandardServer server = (StandardServer) ServerFactory.getServer();
Context context = server.getGlobalNamingContext();
database = (UserDatabase) context.lookup(resourceName);
} catch (Throwable e)... | synchronized void function() throws LifecycleException { try { StandardServer server = (StandardServer) ServerFactory.getServer(); Context context = server.getGlobalNamingContext(); database = (UserDatabase) context.lookup(resourceName); } catch (Throwable e) { e.printStackTrace(); log(sm.getString(STR, resourceName), ... | /**
* Prepare for active use of the public methods of this Component.
*
* @exception LifecycleException if this component detects a fatal error
* that prevents it from being started
*/ | Prepare for active use of the public methods of this Component | start | {
"repo_name": "eclipsky/HowTomcatWorks",
"path": "src/org/apache/catalina/realm/UserDatabaseRealm.java",
"license": "apache-2.0",
"size": 10169
} | [
"javax.naming.Context",
"org.apache.catalina.LifecycleException",
"org.apache.catalina.ServerFactory",
"org.apache.catalina.UserDatabase",
"org.apache.catalina.core.StandardServer"
] | import javax.naming.Context; import org.apache.catalina.LifecycleException; import org.apache.catalina.ServerFactory; import org.apache.catalina.UserDatabase; import org.apache.catalina.core.StandardServer; | import javax.naming.*; import org.apache.catalina.*; import org.apache.catalina.core.*; | [
"javax.naming",
"org.apache.catalina"
] | javax.naming; org.apache.catalina; | 1,123,212 |
public static StationOutput[] createCompleteStationOutput(Station[] stations) {
List<StationOutput> stationOutput = new ArrayList<StationOutput>();
for (Station station : stations) {
stationOutput.add(createCompleteStationOutput(station));
}
return stationOutput.toArray(n... | static StationOutput[] function(Station[] stations) { List<StationOutput> stationOutput = new ArrayList<StationOutput>(); for (Station station : stations) { stationOutput.add(createCompleteStationOutput(station)); } return stationOutput.toArray(new StationOutput[0]); } | /**
* Creates a full view on the given stations.
*
* @param stations
* the stations to create an output for.
* @return the output data.
*/ | Creates a full view on the given stations | createCompleteStationOutput | {
"repo_name": "52North/SensorWebClient",
"path": "sensorwebclient-sos-rest/src/main/java/org/n52/series/api/proxy/v0/out/StationOutput.java",
"license": "gpl-2.0",
"size": 5348
} | [
"java.util.ArrayList",
"java.util.List",
"org.n52.shared.serializable.pojos.sos.Station"
] | import java.util.ArrayList; import java.util.List; import org.n52.shared.serializable.pojos.sos.Station; | import java.util.*; import org.n52.shared.serializable.pojos.sos.*; | [
"java.util",
"org.n52.shared"
] | java.util; org.n52.shared; | 314,325 |
public Map<String, String> getCustomMetadataMap() {
return customMetadataMap;
} | Map<String, String> function() { return customMetadataMap; } | /**
* Get the custom configured metadata (which are not related to system environments)
*
* @return customMetadataMap custom metadata
*/ | Get the custom configured metadata (which are not related to system environments) | getCustomMetadataMap | {
"repo_name": "Rajith90/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.hybrid.gateway/org.wso2.carbon.apimgt.hybrid.gateway.configurator/src/main/java/org/wso2/carbon/apimgt/hybrid/gateway/configurator/dto/MicroGatewayInitializationDTO.java",
"license": "apache-2.0",
"size": 3820
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 504,030 |
public ActivitiSpec thenProcessIsComplete() {
ProcessAssert.assertProcessEnded(processInstance);
writeBddPhrase("THEN: The process is complete");
return this;
} | ActivitiSpec function() { ProcessAssert.assertProcessEnded(processInstance); writeBddPhrase(STR); return this; } | /**
* Verify that the outcome of the scenario is that the process is complete.
*
* @return The updated specification.
*/ | Verify that the outcome of the scenario is that the process is complete | thenProcessIsComplete | {
"repo_name": "tstephen/activiti-bdd",
"path": "src/main/java/org/activiti/bdd/ActivitiSpec.java",
"license": "apache-2.0",
"size": 28984
} | [
"org.toxos.activiti.assertion.ProcessAssert"
] | import org.toxos.activiti.assertion.ProcessAssert; | import org.toxos.activiti.assertion.*; | [
"org.toxos.activiti"
] | org.toxos.activiti; | 1,853,981 |
public void setParameters(@NonNull final Parameters parameters) {
this.parameters = parameters;
invalidateSelf();
} | void function(@NonNull final Parameters parameters) { this.parameters = parameters; invalidateSelf(); } | /**
* Sets magic parameters of spinning.
*
* @param parameters Parameters of spinning.
*/ | Sets magic parameters of spinning | setParameters | {
"repo_name": "RoboSwag/components",
"path": "src/main/java/ru/touchin/roboswag/components/views/MaterialProgressDrawable.java",
"license": "apache-2.0",
"size": 8042
} | [
"android.support.annotation.NonNull"
] | import android.support.annotation.NonNull; | import android.support.annotation.*; | [
"android.support"
] | android.support; | 743,718 |
public Stream partition(CustomStreamGrouping partitioner) {
return partition(Grouping.custom_serialized(Utils.javaSerialize(partitioner)));
} | Stream function(CustomStreamGrouping partitioner) { return partition(Grouping.custom_serialized(Utils.javaSerialize(partitioner))); } | /**
* ## Repartitioning Operation
*
* @param partitioner
* @return
*/ | ## Repartitioning Operation | partition | {
"repo_name": "srdo/storm",
"path": "storm-client/src/jvm/org/apache/storm/trident/Stream.java",
"license": "apache-2.0",
"size": 40942
} | [
"org.apache.storm.generated.Grouping",
"org.apache.storm.grouping.CustomStreamGrouping",
"org.apache.storm.utils.Utils"
] | import org.apache.storm.generated.Grouping; import org.apache.storm.grouping.CustomStreamGrouping; import org.apache.storm.utils.Utils; | import org.apache.storm.generated.*; import org.apache.storm.grouping.*; import org.apache.storm.utils.*; | [
"org.apache.storm"
] | org.apache.storm; | 894,217 |
public static ArrayList<String> sessionGet(Context context){
final ArrayList<String> sessionList = new ArrayList<String>();
String sessionTypes = WriteRead.read(SESSIONTYPEFILE, context);
try {
JSONArray jsonarray = new JSONArray(sessionTypes);
for (int i = 0; i < jso... | static ArrayList<String> function(Context context){ final ArrayList<String> sessionList = new ArrayList<String>(); String sessionTypes = WriteRead.read(SESSIONTYPEFILE, context); try { JSONArray jsonarray = new JSONArray(sessionTypes); for (int i = 0; i < jsonarray.length(); i++) { JSONObject jsonobject = jsonarray.get... | /**
* reads counselling session information from file saved on device
* @param context
* @return
*/ | reads counselling session information from file saved on device | sessionGet | {
"repo_name": "thandile/msf_communique",
"path": "app/src/main/java/com/example/msf/msf/Utils/DataAdapter.java",
"license": "mit",
"size": 18193
} | [
"android.content.Context",
"com.example.msf.msf.Utils",
"java.util.ArrayList",
"org.json.JSONArray",
"org.json.JSONException",
"org.json.JSONObject"
] | import android.content.Context; import com.example.msf.msf.Utils; import java.util.ArrayList; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; | import android.content.*; import com.example.msf.msf.*; import java.util.*; import org.json.*; | [
"android.content",
"com.example.msf",
"java.util",
"org.json"
] | android.content; com.example.msf; java.util; org.json; | 735,305 |
@Override
@ViewDebug.ExportedProperty(category = "layout")
public int getBaseline() {
if (mBaselineAlignBottom) {
return getMeasuredHeight();
} else {
return mBaseline;
}
}
/**
* <p>Set the offset of the widget's text baseline from the widget's t... | @ViewDebug.ExportedProperty(category = STR) int function() { if (mBaselineAlignBottom) { return getMeasuredHeight(); } else { return mBaseline; } } /** * <p>Set the offset of the widget's text baseline from the widget's top * boundary. This value is overridden by the {@link #setBaselineAlignBottom(boolean)} | /**
* <p>Return the offset of the widget's text baseline from the widget's top
* boundary. </p>
*
* @return the offset of the baseline within the widget's bounds or -1
* if baseline alignment is not supported.
*/ | Return the offset of the widget's text baseline from the widget's top boundary. | getBaseline | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "frameworks/base/core/java/android/widget/ImageView.java",
"license": "gpl-2.0",
"size": 39877
} | [
"android.view.ViewDebug"
] | import android.view.ViewDebug; | import android.view.*; | [
"android.view"
] | android.view; | 797,995 |
public static ChainableStatement parents(String expression) {
return new DefaultChainableStatement("parents", JsUtils.quotes(expression));
}
| static ChainableStatement function(String expression) { return new DefaultChainableStatement(STR, JsUtils.quotes(expression)); } | /**
* Binds the <code>parents</code> statement.
*/ | Binds the <code>parents</code> statement | parents | {
"repo_name": "openengsb-attic/forks-org.odlabs.wiquery",
"path": "src/main/java/org/odlabs/wiquery/core/javascript/helper/TraversingHelper.java",
"license": "mit",
"size": 4757
} | [
"org.odlabs.wiquery.core.javascript.ChainableStatement",
"org.odlabs.wiquery.core.javascript.DefaultChainableStatement",
"org.odlabs.wiquery.core.javascript.JsUtils"
] | import org.odlabs.wiquery.core.javascript.ChainableStatement; import org.odlabs.wiquery.core.javascript.DefaultChainableStatement; import org.odlabs.wiquery.core.javascript.JsUtils; | import org.odlabs.wiquery.core.javascript.*; | [
"org.odlabs.wiquery"
] | org.odlabs.wiquery; | 651,265 |
MultivaluedMap<String, String> getHeaders(); | MultivaluedMap<String, String> getHeaders(); | /**
* Returns the HTTP headers of this response.
*
* @return HTTP headers of this response.
*/ | Returns the HTTP headers of this response | getHeaders | {
"repo_name": "this/carbon-uuf",
"path": "components/uuf-core/src/main/java/org/wso2/carbon/uuf/spi/HttpResponse.java",
"license": "apache-2.0",
"size": 6825
} | [
"javax.ws.rs.core.MultivaluedMap"
] | import javax.ws.rs.core.MultivaluedMap; | import javax.ws.rs.core.*; | [
"javax.ws"
] | javax.ws; | 294,284 |
@Override
public void undeployAPIRevisionDeployment(String apiId, String apiRevisionId,
List<APIRevisionDeployment> apiRevisionDeployments)
throws APIManagementException {
APIIdentifier apiIdentifier = APIUtil.getAPIIdentifierFromUUID(apiId);
... | void function(String apiId, String apiRevisionId, List<APIRevisionDeployment> apiRevisionDeployments) throws APIManagementException { APIIdentifier apiIdentifier = APIUtil.getAPIIdentifierFromUUID(apiId); if (apiIdentifier == null) { throw new APIMgtResourceNotFoundException(STR + apiId, ExceptionCodes.from(ExceptionCo... | /**
* Remove a new APIRevisionDeployment to an existing API
*
* @param apiId API UUID
* @param apiRevisionId API Revision UUID
* @param apiRevisionDeployments List of APIRevisionDeployment objects
* @throws APIManagementException if failed to add APIRevision
*/ | Remove a new APIRevisionDeployment to an existing API | undeployAPIRevisionDeployment | {
"repo_name": "tharikaGitHub/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java",
"license": "apache-2.0",
"size": 497958
} | [
"java.util.Collections",
"java.util.HashSet",
"java.util.List",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.api.APIMgtResourceNotFoundException",
"org.wso2.carbon.apimgt.api.ExceptionCodes",
"org.wso2.carbon.apimgt.api.model.APIIdentifier",
"org.wso2.carbon.apimgt.api.... | import java.util.Collections; import java.util.HashSet; import java.util.List; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.APIMgtResourceNotFoundException; import org.wso2.carbon.apimgt.api.ExceptionCodes; import org.wso2.carbon.apimgt.api.model.APIIdentifier; import org.... | import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.dao.*; import org.wso2.carbon.apimgt.impl.utils.*; | [
"java.util",
"org.wso2.carbon"
] | java.util; org.wso2.carbon; | 2,403,432 |
@Deprecated
public void setAllParentCategories(List<Category> allParentCategories); | void function(List<Category> allParentCategories); | /**
* Sets all parent {@link Category}s this product is associated with.
*
* @deprecated Use setAllParentCategoryXrefs() instead.
* @param allParentCategories - a List of all parent {@link Category}(s) to associate this product with
*/ | Sets all parent <code>Category</code>s this product is associated with | setAllParentCategories | {
"repo_name": "cloudbearings/BroadleafCommerce",
"path": "core/broadleaf-framework/src/main/java/org/broadleafcommerce/core/catalog/domain/Product.java",
"license": "apache-2.0",
"size": 26608
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 504,209 |
@Override
public boolean isExecutable() throws FileSystemException {
try {
return exists() ? doIsExecutable() : false;
} catch (final Exception exc) {
throw new FileSystemException("vfs.provider/check-is-executable.error", fileName, exc);
}
} | boolean function() throws FileSystemException { try { return exists() ? doIsExecutable() : false; } catch (final Exception exc) { throw new FileSystemException(STR, fileName, exc); } } | /**
* Determines if this file is executable.
*
* @return {@code true} if this file is executable, {@code false} if not.
* @throws FileSystemException On error determining if this file exists.
*/ | Determines if this file is executable | isExecutable | {
"repo_name": "wso2/wso2-commons-vfs",
"path": "commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java",
"license": "apache-2.0",
"size": 61998
} | [
"org.apache.commons.vfs2.FileSystemException"
] | import org.apache.commons.vfs2.FileSystemException; | import org.apache.commons.vfs2.*; | [
"org.apache.commons"
] | org.apache.commons; | 1,153,653 |
private PluginDescriptor lookupPluginDescriptor( PluginInfo pi )
throws MojoExecutionException, MojoFailureException
{
PluginDescriptor descriptor = null;
Plugin forLookup = null;
if ( StringUtils.isNotEmpty( pi.getPrefix() ) )
{
descriptor = pluginManager.g... | PluginDescriptor function( PluginInfo pi ) throws MojoExecutionException, MojoFailureException { PluginDescriptor descriptor = null; Plugin forLookup = null; if ( StringUtils.isNotEmpty( pi.getPrefix() ) ) { descriptor = pluginManager.getPluginDescriptorForPrefix( pi.getPrefix() ); if ( descriptor == null ) { forLookup... | /**
* Method for retrieving the description of the plugin
*
* @param pi holds information of the plugin whose description is to be retrieved
* @return a PluginDescriptor where the plugin description is to be retrieved
* @throws MojoExecutionException if the plugin could not be verify
* @th... | Method for retrieving the description of the plugin | lookupPluginDescriptor | {
"repo_name": "khmarbaise/maven-plugins",
"path": "maven-help-plugin/src/main/java/org/apache/maven/plugins/help/DescribeMojo.java",
"license": "apache-2.0",
"size": 43419
} | [
"org.apache.maven.artifact.resolver.ArtifactNotFoundException",
"org.apache.maven.artifact.resolver.ArtifactResolutionException",
"org.apache.maven.artifact.versioning.InvalidVersionSpecificationException",
"org.apache.maven.model.Plugin",
"org.apache.maven.plugin.InvalidPluginException",
"org.apache.mave... | import org.apache.maven.artifact.resolver.ArtifactNotFoundException; import org.apache.maven.artifact.resolver.ArtifactResolutionException; import org.apache.maven.artifact.versioning.InvalidVersionSpecificationException; import org.apache.maven.model.Plugin; import org.apache.maven.plugin.InvalidPluginException; impor... | import org.apache.maven.artifact.resolver.*; import org.apache.maven.artifact.versioning.*; import org.apache.maven.model.*; import org.apache.maven.plugin.*; import org.apache.maven.plugin.descriptor.*; import org.apache.maven.plugin.version.*; import org.codehaus.plexus.util.*; | [
"org.apache.maven",
"org.codehaus.plexus"
] | org.apache.maven; org.codehaus.plexus; | 283,014 |
@Override public void exitSelectorMathAggrFunctionName(@NotNull QueryGrammarParser.SelectorMathAggrFunctionNameContext ctx) { } | @Override public void exitSelectorMathAggrFunctionName(@NotNull QueryGrammarParser.SelectorMathAggrFunctionNameContext ctx) { } | /**
* {@inheritDoc}
* <p/>
* The default implementation does nothing.
*/ | The default implementation does nothing | enterSelectorMathAggrFunctionName | {
"repo_name": "pmeisen/dis-timeintervaldataanalyzer",
"path": "src/net/meisen/dissertation/impl/parser/query/generated/QueryGrammarBaseListener.java",
"license": "bsd-3-clause",
"size": 33327
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 1,760,974 |
@Test(dataProvider="testName")
public void verifyIllegalItemDisplayName(String testName) throws Exception {
// Perform setup for read.
setupRead();
// Submit the request to the service and store the response.
WorkAuthorityClient client = new WorkAuthorityClient();
Response res = client.readItem(knownRes... | @Test(dataProvider=STR) void function(String testName) throws Exception { setupRead(); WorkAuthorityClient client = new WorkAuthorityClient(); Response res = client.readItem(knownResourceId, knownItemResourceId); WorksCommon work = null; try { assertStatusCode(res, testName); PoxPayloadIn input = new PoxPayloadIn(res.r... | /**
* Verify illegal item display name.
*
* @param testName the test name
* @throws Exception the exception
*/ | Verify illegal item display name | verifyIllegalItemDisplayName | {
"repo_name": "cherryhill/collectionspace-services",
"path": "services/work/client/src/test/java/org/collectionspace/services/client/test/WorkAuthorityServiceTest.java",
"license": "apache-2.0",
"size": 20790
} | [
"java.util.List",
"javax.ws.rs.core.Response",
"org.collectionspace.services.client.PayloadOutputPart",
"org.collectionspace.services.client.PoxPayloadIn",
"org.collectionspace.services.client.PoxPayloadOut",
"org.collectionspace.services.client.WorkAuthorityClient",
"org.collectionspace.services.work.W... | import java.util.List; import javax.ws.rs.core.Response; import org.collectionspace.services.client.PayloadOutputPart; import org.collectionspace.services.client.PoxPayloadIn; import org.collectionspace.services.client.PoxPayloadOut; import org.collectionspace.services.client.WorkAuthorityClient; import org.collections... | import java.util.*; import javax.ws.rs.core.*; import org.collectionspace.services.client.*; import org.collectionspace.services.work.*; import org.testng.*; import org.testng.annotations.*; | [
"java.util",
"javax.ws",
"org.collectionspace.services",
"org.testng",
"org.testng.annotations"
] | java.util; javax.ws; org.collectionspace.services; org.testng; org.testng.annotations; | 2,471,334 |
public void endPrefixMapping(String prefix) throws SAXException {
} | void function(String prefix) throws SAXException { } | /**
* Not implemented.
*/ | Not implemented | endPrefixMapping | {
"repo_name": "manjeetk09/GoogleScrapper",
"path": "opennlp/tools/dictionary/serializer/DictionaryEntryPersistor.java",
"license": "gpl-2.0",
"size": 9968
} | [
"org.xml.sax.SAXException"
] | import org.xml.sax.SAXException; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 110,885 |
public SmbFile getSmbFile(FileHandler fileHandler) throws JSONException, MalformedURLException {
FolderHandler fh = fileHandler.getFolderHandler();
NtlmPasswordAuthentication smbAuth = new NtlmPasswordAuthentication(null, fh.getUsername(), fh.getPassword());
try {
return new SmbFile(FilenameUtils.se... | SmbFile function(FileHandler fileHandler) throws JSONException, MalformedURLException { FolderHandler fh = fileHandler.getFolderHandler(); NtlmPasswordAuthentication smbAuth = new NtlmPasswordAuthentication(null, fh.getUsername(), fh.getPassword()); try { return new SmbFile(FilenameUtils.separatorsToUnix(STRCould not c... | /**
* Constructs an SmbFile representing a resource on an SMB network such as a file or directory.
* @param fileHandler - An object representing a resource in a SMB network
* @return a SmbFile representing a resource on a SMB network
* @throws JSONException - Error when parsing the FileHandler's folder h... | Constructs an SmbFile representing a resource on an SMB network such as a file or directory | getSmbFile | {
"repo_name": "canchito-dev/activiti-workflow-manager",
"path": "back-end/src/main/java/com/canchitodev/awm/utils/FileHandlerClient.java",
"license": "mit",
"size": 9130
} | [
"com.canchitodev.awm.domain.FileHandler",
"com.canchitodev.awm.domain.FolderHandler",
"java.net.MalformedURLException",
"jcifs.smb.NtlmPasswordAuthentication",
"jcifs.smb.SmbFile",
"org.apache.commons.io.FilenameUtils",
"org.json.JSONException"
] | import com.canchitodev.awm.domain.FileHandler; import com.canchitodev.awm.domain.FolderHandler; import java.net.MalformedURLException; import jcifs.smb.NtlmPasswordAuthentication; import jcifs.smb.SmbFile; import org.apache.commons.io.FilenameUtils; import org.json.JSONException; | import com.canchitodev.awm.domain.*; import java.net.*; import jcifs.smb.*; import org.apache.commons.io.*; import org.json.*; | [
"com.canchitodev.awm",
"java.net",
"jcifs.smb",
"org.apache.commons",
"org.json"
] | com.canchitodev.awm; java.net; jcifs.smb; org.apache.commons; org.json; | 973,940 |
public T secureXML(String secureTag, boolean secureTagContents) {
XMLSecurityDataFormat xsdf = new XMLSecurityDataFormat();
xsdf.setSecureTag(secureTag);
xsdf.setSecureTagContents(secureTagContents);
return dataFormat(xsdf);
} | T function(String secureTag, boolean secureTagContents) { XMLSecurityDataFormat xsdf = new XMLSecurityDataFormat(); xsdf.setSecureTag(secureTag); xsdf.setSecureTagContents(secureTagContents); return dataFormat(xsdf); } | /**
* Uses the XML Security data format
*/ | Uses the XML Security data format | secureXML | {
"repo_name": "punkhorn/camel-upstream",
"path": "core/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java",
"license": "apache-2.0",
"size": 46443
} | [
"org.apache.camel.model.dataformat.XMLSecurityDataFormat"
] | import org.apache.camel.model.dataformat.XMLSecurityDataFormat; | import org.apache.camel.model.dataformat.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,128,477 |
public static CustomRunAutomaton load(InputStream stream) throws IOException, OptionalDataException, ClassCastException,
ClassNotFoundException, InvalidClassException {
ObjectInputStream s = new ObjectInputStream(stream);
return (CustomRunAutomaton) s.readObject();
}
public static final c... | static CustomRunAutomaton function(InputStream stream) throws IOException, OptionalDataException, ClassCastException, ClassNotFoundException, InvalidClassException { ObjectInputStream s = new ObjectInputStream(stream); return (CustomRunAutomaton) s.readObject(); } public static final char delimiter = '\u25B2'; | /**
* Retrieves a serialized <code>RunAutomaton</code> from a stream.
* @param stream input stream with serialized automaton
* @exception IOException if input/output related exception occurs
* @exception OptionalDataException if the data is not a serialized object
* @exception InvalidClassException if the cla... | Retrieves a serialized <code>RunAutomaton</code> from a stream | load | {
"repo_name": "biotextmining/processes",
"path": "src/main/java/com/silicolife/textmining/processes/ie/ner/linnaeus/adapt/dk/brics/automaton/CustomRunAutomaton.java",
"license": "lgpl-3.0",
"size": 5683
} | [
"java.io.IOException",
"java.io.InputStream",
"java.io.InvalidClassException",
"java.io.ObjectInputStream",
"java.io.OptionalDataException"
] | import java.io.IOException; import java.io.InputStream; import java.io.InvalidClassException; import java.io.ObjectInputStream; import java.io.OptionalDataException; | import java.io.*; | [
"java.io"
] | java.io; | 2,566,094 |
public static List<LimitOrder> adaptOrders(
CryptonitOrders cryptonitOrders, CurrencyPair currencyPair, String orderType, String id) {
List<LimitOrder> limitOrders = new ArrayList<>();
Map<String, CryptonitOrder> orders = cryptonitOrders.getOrders();
for (Map.Entry<String, CryptonitOrder> trade : ... | static List<LimitOrder> function( CryptonitOrders cryptonitOrders, CurrencyPair currencyPair, String orderType, String id) { List<LimitOrder> limitOrders = new ArrayList<>(); Map<String, CryptonitOrder> orders = cryptonitOrders.getOrders(); for (Map.Entry<String, CryptonitOrder> trade : orders.entrySet()) { if (orderTy... | /**
* Adapts CryptonitOrders to a List of LimitOrders
*
* @param cryptonitOrders
* @param orderType
* @param id
* @return
*/ | Adapts CryptonitOrders to a List of LimitOrders | adaptOrders | {
"repo_name": "npomfret/XChange",
"path": "xchange-cryptonit/src/main/java/org/knowm/xchange/cryptonit/v2/CryptonitAdapters.java",
"license": "mit",
"size": 5456
} | [
"java.util.ArrayList",
"java.util.Collections",
"java.util.List",
"java.util.Map",
"org.knowm.xchange.cryptonit.v2.dto.marketdata.CryptonitOrder",
"org.knowm.xchange.cryptonit.v2.dto.marketdata.CryptonitOrders",
"org.knowm.xchange.currency.CurrencyPair",
"org.knowm.xchange.dto.trade.LimitOrder",
"or... | import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Map; import org.knowm.xchange.cryptonit.v2.dto.marketdata.CryptonitOrder; import org.knowm.xchange.cryptonit.v2.dto.marketdata.CryptonitOrders; import org.knowm.xchange.currency.CurrencyPair; import org.knowm.xchange.dto.t... | import java.util.*; import org.knowm.xchange.cryptonit.v2.dto.marketdata.*; import org.knowm.xchange.currency.*; import org.knowm.xchange.dto.trade.*; import org.knowm.xchange.utils.*; | [
"java.util",
"org.knowm.xchange"
] | java.util; org.knowm.xchange; | 2,751,361 |
public void setUpdated_at(Date updated_at) {
this.updated_at = updated_at;
} | void function(Date updated_at) { this.updated_at = updated_at; } | /**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column nats.updated_at
*
* @param updated_at the value for nats.updated_at
*
* @mbggenerated Tue May 26 15:53:09 CST 2015
*/ | This method was generated by MyBatis Generator. This method sets the value of the database column nats.updated_at | setUpdated_at | {
"repo_name": "wolabs/womano",
"path": "main/java/com/culabs/unicomportal/model/db/DBNats.java",
"license": "apache-2.0",
"size": 15306
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 2,278,483 |
protected AbstractShape createDisplayComponent(PApplet applet, Vector3D position){
MTEllipse displayShape = new CursorEllipse(applet, position, 15, 15);
displayShape.setPickable(false);
displayShape.setNoFill(true);
displayShape.setDrawSmooth(true);
displayShape.setStrokeWeight(2);
displayShape.set... | AbstractShape function(PApplet applet, Vector3D position){ MTEllipse displayShape = new CursorEllipse(applet, position, 15, 15); displayShape.setPickable(false); displayShape.setNoFill(true); displayShape.setDrawSmooth(true); displayShape.setStrokeWeight(2); displayShape.setStrokeColor(new MTColor(100, 130, 220, 255));... | /**
* Creates the display component.
*
* @param applet the applet
* @param position the position
*
* @return the abstract shape
*/ | Creates the display component | createDisplayComponent | {
"repo_name": "nppotdar/touchtable-menu",
"path": "src/org/mt4j/input/inputProcessors/globalProcessors/CursorTracer.java",
"license": "gpl-2.0",
"size": 7216
} | [
"org.mt4j.components.visibleComponents.shapes.AbstractShape",
"org.mt4j.components.visibleComponents.shapes.MTEllipse",
"org.mt4j.util.MTColor",
"org.mt4j.util.math.Vector3D"
] | import org.mt4j.components.visibleComponents.shapes.AbstractShape; import org.mt4j.components.visibleComponents.shapes.MTEllipse; import org.mt4j.util.MTColor; import org.mt4j.util.math.Vector3D; | import org.mt4j.components.*; import org.mt4j.util.*; import org.mt4j.util.math.*; | [
"org.mt4j.components",
"org.mt4j.util"
] | org.mt4j.components; org.mt4j.util; | 1,080,931 |
public final double getAndSet(int i, double newValue) {
long next = doubleToRawLongBits(newValue);
return longBitsToDouble(longs.getAndSet(i, next));
} | final double function(int i, double newValue) { long next = doubleToRawLongBits(newValue); return longBitsToDouble(longs.getAndSet(i, next)); } | /**
* Atomically sets the element at position {@code i} to the given value and returns the old value.
*
* @param i the index
* @param newValue the new value
* @return the previous value
*/ | Atomically sets the element at position i to the given value and returns the old value | getAndSet | {
"repo_name": "mosoft521/guava",
"path": "guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java",
"license": "apache-2.0",
"size": 10302
} | [
"java.lang.Double"
] | import java.lang.Double; | import java.lang.*; | [
"java.lang"
] | java.lang; | 1,276,307 |
void getAutofillableLogins(Callback<byte[]> loginsReply, Callback<Exception> failureCallback); | void getAutofillableLogins(Callback<byte[]> loginsReply, Callback<Exception> failureCallback); | /**
* Triggers an async list call to retrieve autofillable logins.
*
* @param loginsReply Callback that is called on success with serialized {@link
* org.chromium.components.sync.protocol.ListPasswordsResult} data.
* @param failureCallback A callback that is called on failure for any re... | Triggers an async list call to retrieve autofillable logins | getAutofillableLogins | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/chrome/browser/password_manager/android/java/src/org/chromium/chrome/browser/password_manager/PasswordStoreAndroidBackend.java",
"license": "bsd-3-clause",
"size": 3868
} | [
"org.chromium.base.Callback"
] | import org.chromium.base.Callback; | import org.chromium.base.*; | [
"org.chromium.base"
] | org.chromium.base; | 1,888,512 |
public DepartmentContract getDepartment();
| DepartmentContract function(); | /**
* The Department object associated with the ClockLocationRule
*
* <p>
* If a department is defined, only entries associated with a job in this department will be subject to IP address validation.
* <p>
*
* @return department for ClockLocationRule
*/ | The Department object associated with the ClockLocationRule If a department is defined, only entries associated with a job in this department will be subject to IP address validation. | getDepartment | {
"repo_name": "kuali/kpme",
"path": "tk-lm/api/src/main/java/org/kuali/kpme/tklm/api/time/rules/clocklocation/ClockLocationRuleContract.java",
"license": "apache-2.0",
"size": 5464
} | [
"org.kuali.kpme.core.api.department.DepartmentContract"
] | import org.kuali.kpme.core.api.department.DepartmentContract; | import org.kuali.kpme.core.api.department.*; | [
"org.kuali.kpme"
] | org.kuali.kpme; | 417,217 |
public long getGaugeLong(String name, BaseSource source); | long function(String name, BaseSource source); | /**
* Get the value of a gauge as a long.
*
* @param name name of the gauge.
* @param source The BaseSource{@link BaseSource} that will provide the tags,
* gauges, and counters.
* @return long value of the gauge.
*/ | Get the value of a gauge as a long | getGaugeLong | {
"repo_name": "daidong/DominoHBase",
"path": "hbase-hadoop-compat/src/test/java/org/apache/hadoop/hbase/test/MetricsAssertHelper.java",
"license": "apache-2.0",
"size": 5992
} | [
"org.apache.hadoop.hbase.metrics.BaseSource"
] | import org.apache.hadoop.hbase.metrics.BaseSource; | import org.apache.hadoop.hbase.metrics.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 648,619 |
@Override
public void addAssociations(final Object[] inAssociations) {
for (int i = 0; i < inAssociations.length; i++) {
final LightWeightAdapter lItem = new LightWeightAdapter(
(ILightWeightModel) inAssociations[i]);
final UniqueID lID = lItem.getUniqueID();
related.add(new ItemAdapter(... | void function(final Object[] inAssociations) { for (int i = 0; i < inAssociations.length; i++) { final LightWeightAdapter lItem = new LightWeightAdapter( (ILightWeightModel) inAssociations[i]); final UniqueID lID = lItem.getUniqueID(); related.add(new ItemAdapter(lItem, context)); handleUniqueAdd(lID); } } | /**
* Add new associations.
*
* @param inAssociations
* Object[] Array of <code>ILightWeightItem</code>s.
*/ | Add new associations | addAssociations | {
"repo_name": "aktion-hip/relations",
"path": "org.elbe.relations/src/org/elbe/relations/models/AbstractAssociationsModel.java",
"license": "gpl-3.0",
"size": 12774
} | [
"org.elbe.relations.data.utility.UniqueID"
] | import org.elbe.relations.data.utility.UniqueID; | import org.elbe.relations.data.utility.*; | [
"org.elbe.relations"
] | org.elbe.relations; | 2,607,344 |
public void testIsDebit_income_zeroAmount() throws Exception {
AccountingDocument accountingDocument = IsDebitTestUtils.getDocument(SpringContext.getBean(DocumentService.class), DisbursementVoucherDocument.class);
AccountingLine accountingLine = IsDebitTestUtils.getIncomeLine(accountingDocument, Sou... | void function() throws Exception { AccountingDocument accountingDocument = IsDebitTestUtils.getDocument(SpringContext.getBean(DocumentService.class), DisbursementVoucherDocument.class); AccountingLine accountingLine = IsDebitTestUtils.getIncomeLine(accountingDocument, SourceAccountingLine.class, KualiDecimal.ZERO); ass... | /**
* tests an <code>IllegalStateException</code> is thrown for a zero income
*
* @throws Exception
*/ | tests an <code>IllegalStateException</code> is thrown for a zero income | testIsDebit_income_zeroAmount | {
"repo_name": "quikkian-ua-devops/will-financials",
"path": "kfs-core/src/test/java/org/kuali/kfs/fp/document/validation/impl/DisbursementVoucherDocumentRuleTest.java",
"license": "agpl-3.0",
"size": 11065
} | [
"org.kuali.kfs.fp.document.DisbursementVoucherDocument",
"org.kuali.kfs.kns.service.DataDictionaryService",
"org.kuali.kfs.krad.service.DocumentService",
"org.kuali.kfs.sys.businessobject.AccountingLine",
"org.kuali.kfs.sys.businessobject.SourceAccountingLine",
"org.kuali.kfs.sys.context.SpringContext",
... | import org.kuali.kfs.fp.document.DisbursementVoucherDocument; import org.kuali.kfs.kns.service.DataDictionaryService; import org.kuali.kfs.krad.service.DocumentService; import org.kuali.kfs.sys.businessobject.AccountingLine; import org.kuali.kfs.sys.businessobject.SourceAccountingLine; import org.kuali.kfs.sys.context.... | import org.kuali.kfs.fp.document.*; import org.kuali.kfs.kns.service.*; import org.kuali.kfs.krad.service.*; import org.kuali.kfs.sys.businessobject.*; import org.kuali.kfs.sys.context.*; import org.kuali.kfs.sys.document.*; import org.kuali.kfs.sys.service.*; import org.kuali.rice.core.api.util.type.*; | [
"org.kuali.kfs",
"org.kuali.rice"
] | org.kuali.kfs; org.kuali.rice; | 1,806,241 |
public void popup(String text) {
setTitle(I18n.getMsg("gui.failure"));
setContentText(text);
ButtonType confirm = new ButtonType(I18n.getMsg("gui.ok"),
ButtonBar.ButtonData.CANCEL_CLOSE);
getButtonTypes().setAll(confirm);
showAndWait();
} | void function(String text) { setTitle(I18n.getMsg(STR)); setContentText(text); ButtonType confirm = new ButtonType(I18n.getMsg(STR), ButtonBar.ButtonData.CANCEL_CLOSE); getButtonTypes().setAll(confirm); showAndWait(); } | /**
* Opens the Popup-Window with the given text.
* @param text the text
*/ | Opens the Popup-Window with the given text | popup | {
"repo_name": "Intevation/downloadclient",
"path": "src/main/java/de/bayern/gdi/gui/WarningPopup.java",
"license": "apache-2.0",
"size": 1860
} | [
"de.bayern.gdi.utils.I18n"
] | import de.bayern.gdi.utils.I18n; | import de.bayern.gdi.utils.*; | [
"de.bayern.gdi"
] | de.bayern.gdi; | 1,678,635 |
@Nonnull public MockValue put(@Nonnull String path, @Nonnull Context context) {
return call(Router.PUT, path, context);
} | @Nonnull MockValue function(@Nonnull String path, @Nonnull Context context) { return call(Router.PUT, path, context); } | /**
* Execute a PUT request to the target application.
*
* @param path Path to match. Might includes the queryString.
* @param context Context to use.
* @return Route response.
*/ | Execute a PUT request to the target application | put | {
"repo_name": "jooby-project/jooby",
"path": "modules/jooby-test/src/main/java/io/jooby/MockRouter.java",
"license": "apache-2.0",
"size": 14724
} | [
"javax.annotation.Nonnull"
] | import javax.annotation.Nonnull; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 734,116 |
@Override
public OutputStream getOutputStream(String permission) throws IOException {
return getOutputStream();
} | OutputStream function(String permission) throws IOException { return getOutputStream(); } | /**
* Local location doesn't supports permission. It's the same as calling {@link #getOutputStream()}.
*/ | Local location doesn't supports permission. It's the same as calling <code>#getOutputStream()</code> | getOutputStream | {
"repo_name": "chtyim/cdap",
"path": "cdap-common/src/main/java/co/cask/cdap/common/twill/LocalLocation.java",
"license": "apache-2.0",
"size": 7197
} | [
"java.io.IOException",
"java.io.OutputStream"
] | import java.io.IOException; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,748,570 |
public void setEntityResolver(XMLEntityResolver resolver) {
fProperties.put(ENTITY_RESOLVER, resolver);
} // setEntityResolver(XMLEntityResolver) | void function(XMLEntityResolver resolver) { fProperties.put(ENTITY_RESOLVER, resolver); } | /**
* Sets the resolver used to resolve external entities. The EntityResolver
* interface supports resolution of public and system identifiers.
*
* @param resolver The new entity resolver. Passing a null value will
* uninstall the currently installed resolver... | Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers | setEntityResolver | {
"repo_name": "zarue/jdk7u-hotspot",
"path": "jaxp/src/com/sun/org/apache/xerces/internal/parsers/XML11Configuration.java",
"license": "gpl-2.0",
"size": 64664
} | [
"com.sun.org.apache.xerces.internal.xni.parser.XMLEntityResolver"
] | import com.sun.org.apache.xerces.internal.xni.parser.XMLEntityResolver; | import com.sun.org.apache.xerces.internal.xni.parser.*; | [
"com.sun.org"
] | com.sun.org; | 2,676,432 |
private static void attemptRetryOnException(String logPrefix, Request<?> request,
VolleyError exception) throws VolleyError {
RetryPolicy retryPolicy = request.getRetryPolicy();
int oldTimeout = request.getTimeoutMs();
try {
retryP... | static void function(String logPrefix, Request<?> request, VolleyError exception) throws VolleyError { RetryPolicy retryPolicy = request.getRetryPolicy(); int oldTimeout = request.getTimeoutMs(); try { retryPolicy.retry(exception); } catch (VolleyError e) { request.addMarker( String.format(STR, logPrefix, oldTimeout));... | /**
* Attempts to prepare the request for a retry. If there are no more attempts remaining in the
* request's retry policy, a timeout exception is thrown.
*
* @param request The request to use.
*/ | Attempts to prepare the request for a retry. If there are no more attempts remaining in the request's retry policy, a timeout exception is thrown | attemptRetryOnException | {
"repo_name": "feimeizhan/PicS",
"path": "android-volley-1.0.19/src/main/java/com/android/volley/toolbox/BasicNetwork.java",
"license": "apache-2.0",
"size": 11977
} | [
"com.android.volley.Request",
"com.android.volley.RetryPolicy",
"com.android.volley.VolleyError"
] | import com.android.volley.Request; import com.android.volley.RetryPolicy; import com.android.volley.VolleyError; | import com.android.volley.*; | [
"com.android.volley"
] | com.android.volley; | 166,291 |
@Override
protected Message getMessage(CacheClientProxy proxy, byte[] latestValue)
throws IOException {
if (proxy.getVersion().compareTo(Version.GFE_6516) >= 0) {
return getGFE6516Message(proxy.getVersion());
} else if (proxy.getVersion().compareTo(Version.GFE_57) >= 0) {
return getGFEMessag... | Message function(CacheClientProxy proxy, byte[] latestValue) throws IOException { if (proxy.getVersion().compareTo(Version.GFE_6516) >= 0) { return getGFE6516Message(proxy.getVersion()); } else if (proxy.getVersion().compareTo(Version.GFE_57) >= 0) { return getGFEMessage(proxy.getVersion()); } else { throw new IOExcept... | /**
* Returns a <code>Message</code> generated from the fields of this
* <code>ClientDataSerializerMessage</code>.
*
* @param latestValue
* byte[] containing the latest value to use. This could be the
* original value if conflation is not enabled, or it could be
* ... | Returns a <code>Message</code> generated from the fields of this <code>ClientDataSerializerMessage</code> | getMessage | {
"repo_name": "papicella/snappy-store",
"path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/tier/sockets/ClientDataSerializerMessage.java",
"license": "apache-2.0",
"size": 8927
} | [
"com.gemstone.gemfire.internal.shared.Version",
"java.io.IOException"
] | import com.gemstone.gemfire.internal.shared.Version; import java.io.IOException; | import com.gemstone.gemfire.internal.shared.*; import java.io.*; | [
"com.gemstone.gemfire",
"java.io"
] | com.gemstone.gemfire; java.io; | 620,896 |
byte[] testPayload = CommandClassSensorMultilevelV7.getSensorMultilevelSupportedSensorReport(bitMask);
Map<String, Object> response = CommandClassSensorMultilevelV7.handleSensorMultilevelSupportedSensorReport(testPayload);
assertEquals(bitMask, (List<String>) response.get("BIT_MASK"));
}
/**
... | byte[] testPayload = CommandClassSensorMultilevelV7.getSensorMultilevelSupportedSensorReport(bitMask); Map<String, Object> response = CommandClassSensorMultilevelV7.handleSensorMultilevelSupportedSensorReport(testPayload); assertEquals(bitMask, (List<String>) response.get(STR)); } /** * Performs an in/out test of the S... | /**
* Performs an in/out test of the SENSOR_MULTILEVEL_SUPPORTED_SENSOR_REPORT command.
* <p>
* Test is designed to ensure that the command generates the same data
* as the handler processes and is mainly a check of the code generator.
*
* @param bitMask {@link List<String>}
*/ | Performs an in/out test of the SENSOR_MULTILEVEL_SUPPORTED_SENSOR_REPORT command. Test is designed to ensure that the command generates the same data as the handler processes and is mainly a check of the code generator | testSensorMultilevelSupportedSensorReportLoopback | {
"repo_name": "zsmartsystems/com.zsmartsystems.zwave",
"path": "com.zsmartsystems.zwave/src/test/java/com/zsmartsystems/zwave/commandclass/impl/loopback/CommandClassSensorMultilevelV7LoopbackTest.java",
"license": "epl-1.0",
"size": 5123
} | [
"com.zsmartsystems.zwave.commandclass.impl.CommandClassSensorMultilevelV7",
"java.util.List",
"java.util.Map",
"org.junit.Assert"
] | import com.zsmartsystems.zwave.commandclass.impl.CommandClassSensorMultilevelV7; import java.util.List; import java.util.Map; import org.junit.Assert; | import com.zsmartsystems.zwave.commandclass.impl.*; import java.util.*; import org.junit.*; | [
"com.zsmartsystems.zwave",
"java.util",
"org.junit"
] | com.zsmartsystems.zwave; java.util; org.junit; | 2,860,438 |
public static final SourceModel.Expr bundleStrings(SourceModel.Expr bundle) {
return
SourceModel.Expr.Application.make(
new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.bundleStrings), bundle});
}
public static final QualifiedName bundleStrings =
QualifiedName.make(
... | static final SourceModel.Expr function(SourceModel.Expr bundle) { return SourceModel.Expr.Application.make( new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.bundleStrings), bundle}); } static final QualifiedName function = QualifiedName.make( CAL_StringProperties.MODULE_NAME, STR); | /**
* Returns the <code>Cal.Utilities.StringProperties.StringProperties</code> associated with the bundle.
* @param bundle (CAL type: <code>Cal.Utilities.StringProperties.StringResourceBundle</code>)
* the string resource bundle.
* @return (CAL type: <code>Cal.Utilities.StringProperties.StringP... | Returns the <code>Cal.Utilities.StringProperties.StringProperties</code> associated with the bundle | bundleStrings | {
"repo_name": "levans/Open-Quark",
"path": "src/CAL_Platform/src/org/openquark/cal/module/Cal/Utilities/CAL_StringProperties.java",
"license": "bsd-3-clause",
"size": 22743
} | [
"org.openquark.cal.compiler.QualifiedName",
"org.openquark.cal.compiler.SourceModel"
] | import org.openquark.cal.compiler.QualifiedName; import org.openquark.cal.compiler.SourceModel; | import org.openquark.cal.compiler.*; | [
"org.openquark.cal"
] | org.openquark.cal; | 2,196,997 |
private void updateWaterCount() {
int waterCount = PreferenceUtilities.getWaterCount(this);
mWaterCountDisplay.setText(waterCount+"");
} | void function() { int waterCount = PreferenceUtilities.getWaterCount(this); mWaterCountDisplay.setText(waterCount+""); } | /**
* Updates the TextView to display the new water count from SharedPreferences
*/ | Updates the TextView to display the new water count from SharedPreferences | updateWaterCount | {
"repo_name": "MalcolmScruggs/ud851-Exercises",
"path": "Lesson10-Hydration-Reminder/T10.01-Exercise-IntentServices/app/src/main/java/com/example/android/background/MainActivity.java",
"license": "apache-2.0",
"size": 4481
} | [
"com.example.android.background.utilities.PreferenceUtilities"
] | import com.example.android.background.utilities.PreferenceUtilities; | import com.example.android.background.utilities.*; | [
"com.example.android"
] | com.example.android; | 2,684,366 |
public static boolean getBoolean(String key, boolean def) {
String value = get(key);
if (value == null) {
return def;
}
value = value.trim().toLowerCase();
if (value.isEmpty()) {
return true;
}
if ("true".equals(value) || "yes".equals... | static boolean function(String key, boolean def) { String value = get(key); if (value == null) { return def; } value = value.trim().toLowerCase(); if (value.isEmpty()) { return true; } if ("true".equals(value) "yes".equals(value) "1".equals(value)) { return true; } if ("false".equals(value) "no".equals(value) "0".equal... | /**
* Returns the value of the Java system property with the specified
* {@code key}, while falling back to the specified default value if
* the property access fails.
*
* @return the property value.
* {@code def} if there's no such property or if an access to the
* sp... | Returns the value of the Java system property with the specified key, while falling back to the specified default value if the property access fails | getBoolean | {
"repo_name": "golovnin/netty",
"path": "common/src/main/java/io/netty/util/internal/SystemPropertyUtil.java",
"license": "apache-2.0",
"size": 6121
} | [
"java.util.regex.Pattern"
] | import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 1,022,102 |
@Override
public void comment(char[] ch, int start, int length)
throws SAXException
{
if (_lexHandler != null) {
_lexHandler.comment(ch, start, length);
}
} | void function(char[] ch, int start, int length) throws SAXException { if (_lexHandler != null) { _lexHandler.comment(ch, start, length); } } | /**
* Implements org.xml.sax.ext.LexicalHandler.comment()
* Receieve notification of a comment
*/ | Implements org.xml.sax.ext.LexicalHandler.comment() Receieve notification of a comment | comment | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk2/jaxp/src/com/sun/org/apache/xalan/internal/xsltc/trax/TransformerHandlerImpl.java",
"license": "mit",
"size": 15737
} | [
"org.xml.sax.SAXException"
] | import org.xml.sax.SAXException; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 82,671 |
public List<PlateXMLBigInteger> getPlates() {
return this.plates;
}
| List<PlateXMLBigInteger> function() { return this.plates; } | /**
* Returns the xml plate list.
* @return List<PlateXMLBigInteger> the list of plates
*/ | Returns the xml plate list | getPlates | {
"repo_name": "jessemull/MicroFlex",
"path": "src/main/java/com/github/jessemull/microflex/bigintegerflex/io/PlateListXMLBigInteger.java",
"license": "apache-2.0",
"size": 4386
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,627,273 |
@Named("cdn:list")
@GET
@QueryParams(keys = {"format", "enabled_only"}, values = {"json", "true"})
@Fallback(EmptyFluentIterableOnNotFoundOr404.class)
@Path("/")
FluentIterable<CDNContainer> list(); | @Named(STR) @QueryParams(keys = {STR, STR}, values = {"json", "true"}) @Fallback(EmptyFluentIterableOnNotFoundOr404.class) @Path("/") FluentIterable<CDNContainer> list(); | /**
* Lists up to 10,000 CDN containers.
*
* @return a list of CDN enabled containers ordered by name.
*/ | Lists up to 10,000 CDN containers | list | {
"repo_name": "yanzhijun/jclouds-aliyun",
"path": "apis/rackspace-cloudfiles/src/main/java/org/jclouds/rackspace/cloudfiles/v1/features/CDNApi.java",
"license": "apache-2.0",
"size": 7413
} | [
"com.google.common.collect.FluentIterable",
"javax.inject.Named",
"javax.ws.rs.Path",
"org.jclouds.Fallbacks",
"org.jclouds.rackspace.cloudfiles.v1.domain.CDNContainer",
"org.jclouds.rest.annotations.Fallback",
"org.jclouds.rest.annotations.QueryParams"
] | import com.google.common.collect.FluentIterable; import javax.inject.Named; import javax.ws.rs.Path; import org.jclouds.Fallbacks; import org.jclouds.rackspace.cloudfiles.v1.domain.CDNContainer; import org.jclouds.rest.annotations.Fallback; import org.jclouds.rest.annotations.QueryParams; | import com.google.common.collect.*; import javax.inject.*; import javax.ws.rs.*; import org.jclouds.*; import org.jclouds.rackspace.cloudfiles.v1.domain.*; import org.jclouds.rest.annotations.*; | [
"com.google.common",
"javax.inject",
"javax.ws",
"org.jclouds",
"org.jclouds.rackspace",
"org.jclouds.rest"
] | com.google.common; javax.inject; javax.ws; org.jclouds; org.jclouds.rackspace; org.jclouds.rest; | 604,488 |
public CareUnitInterface getCareUnitFullInfo(String careUnitHsaId) throws Exception ; | CareUnitInterface function(String careUnitHsaId) throws Exception ; | /**
* Return information about a careunit.
* @param careunitHsaId
* @return CareUnit
*/ | Return information about a careunit | getCareUnitFullInfo | {
"repo_name": "mrarbi/netcare-commons.auth",
"path": "src/main/java/org/callistasoftware/netcare/commons/auth/spi/OrganisationInfoService.java",
"license": "apache-2.0",
"size": 1884
} | [
"org.callistasoftware.netcare.commons.auth.api.CareUnitInterface"
] | import org.callistasoftware.netcare.commons.auth.api.CareUnitInterface; | import org.callistasoftware.netcare.commons.auth.api.*; | [
"org.callistasoftware.netcare"
] | org.callistasoftware.netcare; | 611,880 |
public void clearStatistics(Collection<String> cacheNames) throws IgniteCheckedException {
Collection<IgniteInternalCache> caches = manageStatisticsCaches(cacheNames);
Collection<String> globalCaches = new HashSet<>(U.capacity(caches.size()));
for (IgniteInternalCache cache : caches) {
... | void function(Collection<String> cacheNames) throws IgniteCheckedException { Collection<IgniteInternalCache> caches = manageStatisticsCaches(cacheNames); Collection<String> globalCaches = new HashSet<>(U.capacity(caches.size())); for (IgniteInternalCache cache : caches) { if (!cache.context().isLocal()) globalCaches.ad... | /**
* Clear statistics globally for the caches
*
* @param cacheNames Collection of cache names.
*/ | Clear statistics globally for the caches | clearStatistics | {
"repo_name": "nizhikov/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java",
"license": "apache-2.0",
"size": 211894
} | [
"java.util.Collection",
"java.util.HashSet",
"java.util.UUID",
"org.apache.ignite.IgniteCheckedException",
"org.apache.ignite.internal.util.typedef.internal.U"
] | import java.util.Collection; import java.util.HashSet; import java.util.UUID; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.internal.util.typedef.internal.U; | import java.util.*; import org.apache.ignite.*; import org.apache.ignite.internal.util.typedef.internal.*; | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 2,760,726 |
protected boolean defaultRecursiveDeleteDirContents(ITaskMonitor monitor,VDir dir, boolean force) throws VrsException
{
int len=0;
VFSNode nodes[]=dir.list();
if ((nodes==null) || (nodes.length<=0))
return true;
len=nodes.length;
if (monitor==null)
... | boolean function(ITaskMonitor monitor,VDir dir, boolean force) throws VrsException { int len=0; VFSNode nodes[]=dir.list(); if ((nodes==null) (nodes.length<=0)) return true; len=nodes.length; if (monitor==null) monitor =vrsContext.getTaskWatcher().getCurrentThreadTaskMonitor(STR+dir,len); monitor.logPrintf(STR,len,dir.... | /**
* Default Recursive delete: lists children and performs delete() on child list.
* This method does NOT delete the parent node itself !
* @throws VrsException
*/ | Default Recursive delete: lists children and performs delete() on child list. This method does NOT delete the parent node itself | defaultRecursiveDeleteDirContents | {
"repo_name": "NLeSC/vbrowser",
"path": "source/nl.esciencecenter.vlet.vrs.core/src/nl/esciencecenter/vlet/vrs/vfs/VRSTransferManager.java",
"license": "apache-2.0",
"size": 53013
} | [
"nl.esciencecenter.ptk.task.ITaskMonitor",
"nl.esciencecenter.vbrowser.vrs.exceptions.VrsException",
"nl.esciencecenter.vlet.vrs.events.ResourceEvent"
] | import nl.esciencecenter.ptk.task.ITaskMonitor; import nl.esciencecenter.vbrowser.vrs.exceptions.VrsException; import nl.esciencecenter.vlet.vrs.events.ResourceEvent; | import nl.esciencecenter.ptk.task.*; import nl.esciencecenter.vbrowser.vrs.exceptions.*; import nl.esciencecenter.vlet.vrs.events.*; | [
"nl.esciencecenter.ptk",
"nl.esciencecenter.vbrowser",
"nl.esciencecenter.vlet"
] | nl.esciencecenter.ptk; nl.esciencecenter.vbrowser; nl.esciencecenter.vlet; | 1,432,052 |
public void appendAASTORE() {
verifyStackDepth(3);
String vtype = m_stackState.pop();
verifyStack("int");
m_stackState.pop();
String atype = verifyArray();
verifyCompatible(vtype, atype);
m_stackState.pop();
append(InstructionConstants.AASTORE);
} | void function() { verifyStackDepth(3); String vtype = m_stackState.pop(); verifyStack("int"); m_stackState.pop(); String atype = verifyArray(); verifyCompatible(vtype, atype); m_stackState.pop(); append(InstructionConstants.AASTORE); } | /**
* Append an AASTORE to the instruction list. Doesn't actually check the
* types, just the count of items present.
*/ | Append an AASTORE to the instruction list. Doesn't actually check the types, just the count of items present | appendAASTORE | {
"repo_name": "vkorbut/jibx",
"path": "jibx/build/src/org/jibx/binding/classes/MethodBuilder.java",
"license": "bsd-3-clause",
"size": 60081
} | [
"org.apache.bcel.generic.InstructionConstants"
] | import org.apache.bcel.generic.InstructionConstants; | import org.apache.bcel.generic.*; | [
"org.apache.bcel"
] | org.apache.bcel; | 2,503,163 |
public void setInactivityInterval(TimeInterval inactivityInterval) {
this.inactivityInterval = inactivityInterval;
} | void function(TimeInterval inactivityInterval) { this.inactivityInterval = inactivityInterval; } | /**
* Set the inactivity interval before a new session is created.
*
* @param inactivityInterval the interval, if not specified, the default is 2 hours.
*/ | Set the inactivity interval before a new session is created | setInactivityInterval | {
"repo_name": "adaptris/interlok",
"path": "interlok-core/src/main/java/com/adaptris/core/jms/TimedInactivityProducerSessionFactory.java",
"license": "apache-2.0",
"size": 3291
} | [
"com.adaptris.util.TimeInterval"
] | import com.adaptris.util.TimeInterval; | import com.adaptris.util.*; | [
"com.adaptris.util"
] | com.adaptris.util; | 1,233,357 |
public void bindVariables(Map<String, String> mapVarVal){
if(func_ == Function.VariableBinding){
String attr = mapVarVal.get(val);
if(attr == null){
ExceptionMan.die("Encountered a dangling variable: " + val);
}else{
valBinding = attr;
}
}else{
for(Expression e : args_){
e.bi... | void function(Map<String, String> mapVarVal){ if(func_ == Function.VariableBinding){ String attr = mapVarVal.get(val); if(attr == null){ ExceptionMan.die(STR + val); }else{ valBinding = attr; } }else{ for(Expression e : args_){ e.bindVariables(mapVarVal); } } } | /**
* Bind variable references to their values in the symbol table.
* Variable name in the clause -> attribute name in SQL representing
* the value column of the symbol table.
*
* @param mapVarVal
*/ | Bind variable references to their values in the symbol table. Variable name in the clause -> attribute name in SQL representing the value column of the symbol table | bindVariables | {
"repo_name": "gaapt/deepdive",
"path": "mln/src/tuffy/ra/Expression.java",
"license": "apache-2.0",
"size": 10630
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,502,144 |
private NamingEnumeration<SearchResult> searchLDAP(String searchFilter, DirContext ctx) throws NamingException {
String baseDN = _ldapBaseDN;
SearchControls controls = new SearchControls();
controls.setSearchScope(SearchControls.SUBTREE_SCOPE);
return ctx.search(baseDN, searchFilter, controls);
} | NamingEnumeration<SearchResult> function(String searchFilter, DirContext ctx) throws NamingException { String baseDN = _ldapBaseDN; SearchControls controls = new SearchControls(); controls.setSearchScope(SearchControls.SUBTREE_SCOPE); return ctx.search(baseDN, searchFilter, controls); } | /**
* Returns LDAP SearchResult for given filter and ctx
*
* @param searchFilter The LDAP filter
* @param ctx The DirContext for LDAP
* @throws NamingException
*/ | Returns LDAP SearchResult for given filter and ctx | searchLDAP | {
"repo_name": "jack-moseley/gobblin",
"path": "gobblin-utility/src/main/java/org/apache/gobblin/util/LdapUtils.java",
"license": "apache-2.0",
"size": 6050
} | [
"javax.naming.NamingEnumeration",
"javax.naming.NamingException",
"javax.naming.directory.DirContext",
"javax.naming.directory.SearchControls",
"javax.naming.directory.SearchResult"
] | import javax.naming.NamingEnumeration; import javax.naming.NamingException; import javax.naming.directory.DirContext; import javax.naming.directory.SearchControls; import javax.naming.directory.SearchResult; | import javax.naming.*; import javax.naming.directory.*; | [
"javax.naming"
] | javax.naming; | 83,972 |
@Test
public void testExcludesAllPositive08() throws Exception {
TestPerformer testPerformer;
String modelFileName;
String oclFileName;
oclFileName = "standardlibrary/collection/excludesAllPositive08.ocl";
modelFileName = "testmodel.uml";
testPerformer =
TestPerformer.getInstance(AllStandardL... | void function() throws Exception { TestPerformer testPerformer; String modelFileName; String oclFileName; oclFileName = STR; modelFileName = STR; testPerformer = TestPerformer.getInstance(AllStandardLibraryTests.META_MODEL_ID, AllStandardLibraryTests.MODEL_BUNDLE, AllStandardLibraryTests.MODEL_DIRECTORY); testPerformer... | /**
* <p>
* A test case testing the method
* <code>Collection->excludesAll(Collection(T))</code>.
* </p>
*/ | A test case testing the method <code>Collection->excludesAll(Collection(T))</code>. | testExcludesAllPositive08 | {
"repo_name": "dresden-ocl/dresdenocl",
"path": "tests/org.dresdenocl.ocl2parser.test/src/org/dresdenocl/ocl2parser/test/standardlibrary/TestCollection.java",
"license": "lgpl-3.0",
"size": 77031
} | [
"org.dresdenocl.ocl2parser.test.TestPerformer"
] | import org.dresdenocl.ocl2parser.test.TestPerformer; | import org.dresdenocl.ocl2parser.test.*; | [
"org.dresdenocl.ocl2parser"
] | org.dresdenocl.ocl2parser; | 2,058,312 |
protected int[] readColorTable(final int ncolors) {
final int nbytes = 3 * ncolors;
int[] tab = null;
final byte[] c = new byte[nbytes];
try {
rawData.get(c);
tab = new int[256]; // max size to avoid bounds checks
int i = 0;
int j = 0... | int[] function(final int ncolors) { final int nbytes = 3 * ncolors; int[] tab = null; final byte[] c = new byte[nbytes]; try { rawData.get(c); tab = new int[256]; int i = 0; int j = 0; while (i < ncolors) { final int r = (c[j++]) & 0xff; final int g = (c[j++]) & 0xff; final int b = (c[j++]) & 0xff; tab[i++] = 0xff00000... | /**
* Reads color table as 256 RGB integer values
*
* @param ncolors int number of colors to read
* @return int array containing 256 colors (packed ARGB with full alpha)
*/ | Reads color table as 256 RGB integer values | readColorTable | {
"repo_name": "0359xiaodong/GifImageView",
"path": "library/src/main/java/com/felipecsl/gifimageview/library/GifDecoder.java",
"license": "mit",
"size": 26851
} | [
"android.util.Log",
"java.nio.BufferUnderflowException"
] | import android.util.Log; import java.nio.BufferUnderflowException; | import android.util.*; import java.nio.*; | [
"android.util",
"java.nio"
] | android.util; java.nio; | 470,735 |
public void setLimit(int start, int limit) {
this.start = start;
this.limit = limit;
}
public InvitationExample(InvitationObject sample) {
oredCriteria = new ArrayList<Criteria>();
Criteria criteria = this.or();
if (sample.getUserId() != null) {
crit... | void function(int start, int limit) { this.start = start; this.limit = limit; } public InvitationExample(InvitationObject sample) { oredCriteria = new ArrayList<Criteria>(); Criteria criteria = this.or(); if (sample.getUserId() != null) { criteria.andUserIdEqualTo(sample.getUserId()); } if (sample.getToken() != null) {... | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table invitation
*
* @mbggenerated Wed Aug 26 19:51:19 CST 2015
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table invitation | setLimit | {
"repo_name": "idear1203/onboard",
"path": "kernel/com.onboard.domain.mapper.model/src/main/java/com/onboard/domain/mapper/model/InvitationExample.java",
"license": "apache-2.0",
"size": 21387
} | [
"com.onboard.domain.mapper.model.common.BaseCriteria",
"java.util.ArrayList"
] | import com.onboard.domain.mapper.model.common.BaseCriteria; import java.util.ArrayList; | import com.onboard.domain.mapper.model.common.*; import java.util.*; | [
"com.onboard.domain",
"java.util"
] | com.onboard.domain; java.util; | 2,606,305 |
CT filter(URIFilter filter); | CT filter(URIFilter filter); | /**
* Sets the filter generating the <tt>$filter</tt> expression.
*
* @param filter filter instance (to be obtained via factory): note that <tt>build()</tt> method will be immediately
* invoked.
* @return the same query instance.
*/ | Sets the filter generating the $filter expression | filter | {
"repo_name": "apache/olingo-odata4",
"path": "ext/client-proxy/src/main/java/org/apache/olingo/ext/proxy/api/StructuredCollectionQuery.java",
"license": "apache-2.0",
"size": 1933
} | [
"org.apache.olingo.client.api.uri.URIFilter"
] | import org.apache.olingo.client.api.uri.URIFilter; | import org.apache.olingo.client.api.uri.*; | [
"org.apache.olingo"
] | org.apache.olingo; | 2,240,006 |
TestSolution testSolution = TestSolution.NOT_TESTED;
Collection<ProcessRemark> remarkList = new ArrayList<ProcessRemark>();
DefiniteResult result = definiteResultFactory.create(
test,
sspHandler.getSSP().getPage(),
testSolution,
remarkList)... | TestSolution testSolution = TestSolution.NOT_TESTED; Collection<ProcessRemark> remarkList = new ArrayList<ProcessRemark>(); DefiniteResult result = definiteResultFactory.create( test, sspHandler.getSSP().getPage(), testSolution, remarkList); return result; } | /**
* Concrete implementation of the 4.12.2 rule.
* @param sspHandler
* @return
* the processResult of the test
*/ | Concrete implementation of the 4.12.2 rule | processImpl | {
"repo_name": "medsob/Tanaguru",
"path": "rules/accessiweb2.1/src/main/java/org/tanaguru/rules/accessiweb21/Aw21Rule04122.java",
"license": "agpl-3.0",
"size": 2382
} | [
"java.util.ArrayList",
"java.util.Collection",
"org.tanaguru.entity.audit.DefiniteResult",
"org.tanaguru.entity.audit.ProcessRemark",
"org.tanaguru.entity.audit.TestSolution"
] | import java.util.ArrayList; import java.util.Collection; import org.tanaguru.entity.audit.DefiniteResult; import org.tanaguru.entity.audit.ProcessRemark; import org.tanaguru.entity.audit.TestSolution; | import java.util.*; import org.tanaguru.entity.audit.*; | [
"java.util",
"org.tanaguru.entity"
] | java.util; org.tanaguru.entity; | 1,871,432 |
@Test
@DirtiesContext
public void testWriteRevisionShouldSucceed() {
final Answer<Query> answer = createQueryAnswer();
final HibernateTemplate mockHibernateTemplate = buildMockHibernateTemplate(answer);
doNothing().when(mockArticleCrudService).refreshArticleRelationships(expectedArticleRevision);
... | void function() { final Answer<Query> answer = createQueryAnswer(); final HibernateTemplate mockHibernateTemplate = buildMockHibernateTemplate(answer); doNothing().when(mockArticleCrudService).refreshArticleRelationships(expectedArticleRevision); final ArticleRevision actualRevision = mockArticleRevisionWriteService.wr... | /**
* Test successful update of an article revision.
*/ | Test successful update of an article revision | testWriteRevisionShouldSucceed | {
"repo_name": "PLOS/rhino",
"path": "src/test/java/org/ambraproject/rhino/service/impl/ArticleRevisionWriteServiceTest.java",
"license": "mit",
"size": 10244
} | [
"com.google.common.truth.Truth",
"org.ambraproject.rhino.model.ArticleRevision",
"org.hibernate.Query",
"org.mockito.Mockito",
"org.mockito.stubbing.Answer",
"org.springframework.orm.hibernate3.HibernateTemplate"
] | import com.google.common.truth.Truth; import org.ambraproject.rhino.model.ArticleRevision; import org.hibernate.Query; import org.mockito.Mockito; import org.mockito.stubbing.Answer; import org.springframework.orm.hibernate3.HibernateTemplate; | import com.google.common.truth.*; import org.ambraproject.rhino.model.*; import org.hibernate.*; import org.mockito.*; import org.mockito.stubbing.*; import org.springframework.orm.hibernate3.*; | [
"com.google.common",
"org.ambraproject.rhino",
"org.hibernate",
"org.mockito",
"org.mockito.stubbing",
"org.springframework.orm"
] | com.google.common; org.ambraproject.rhino; org.hibernate; org.mockito; org.mockito.stubbing; org.springframework.orm; | 1,034,652 |
public Date getLastModifiedDate()
{
checkOpen();
return header.getLastModifiedDate();
} | Date function() { checkOpen(); return header.getLastModifiedDate(); } | /**
* Returns the date on which this table was last modified. Note that the hours, minutes, seconds
* and milliseconds fields are always set to zero. Also, the date time is not normalized to UTC.
*
* @return the last modified date of the table
*/ | Returns the date on which this table was last modified. Note that the hours, minutes, seconds and milliseconds fields are always set to zero. Also, the date time is not normalized to UTC | getLastModifiedDate | {
"repo_name": "kwaxi/dans-dbf-lib",
"path": "src/main/java/nl/knaw/dans/common/dbflib/Table.java",
"license": "gpl-3.0",
"size": 30267
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,141,303 |
public TADDateTime getUTCTime() {
return _UTCTime;
} | TADDateTime function() { return _UTCTime; } | /**
* UTC time at which the event is happening. The time does not include the
* seconds.
*/ | UTC time at which the event is happening. The time does not include the seconds | getUTCTime | {
"repo_name": "timeanddate/libtad-jvm",
"path": "TimeAndDate/main/com/timeanddate/services/dataTypes/astro/AstronomyDayEvent.java",
"license": "mit",
"size": 3355
} | [
"com.timeanddate.services.dataTypes.time.TADDateTime"
] | import com.timeanddate.services.dataTypes.time.TADDateTime; | import com.timeanddate.services.*; | [
"com.timeanddate.services"
] | com.timeanddate.services; | 2,270,037 |
private boolean stopTimer(final Context context, int id) {
Intent timerIntent = new Intent(context, Receiver.class).putExtra("timer", id)
.setAction(id == TIMER_SCREEN_OFF ? "SCREEN_OFF_TIMER" : "NO_NETWORK_TIMER");
PendingIntent pendingIntent =
PendingIntent.getBroad... | boolean function(final Context context, int id) { Intent timerIntent = new Intent(context, Receiver.class).putExtra("timer", id) .setAction(id == TIMER_SCREEN_OFF ? STR : STR); PendingIntent pendingIntent = PendingIntent.getBroadcast(context, id, timerIntent, PendingIntent.FLAG_NO_CREATE); if (pendingIntent != null) { ... | /**
* Stops the timer
*
* @param context the context
* @param id TIMER_SCREEN_OFF or TIMER_NO_NETWORK
* @return true, if timer was actually active
*/ | Stops the timer | stopTimer | {
"repo_name": "j4velin/WiFi-Automatic",
"path": "src/main/java/de/j4velin/wifiAutoOff/Receiver.java",
"license": "apache-2.0",
"size": 20165
} | [
"android.app.AlarmManager",
"android.app.PendingIntent",
"android.content.Context",
"android.content.Intent"
] | import android.app.AlarmManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; | import android.app.*; import android.content.*; | [
"android.app",
"android.content"
] | android.app; android.content; | 2,451,164 |
public ActionCache getPersistentActionCache() throws IOException {
if (actionCache == null) {
if (OS.getCurrent() == OS.WINDOWS) {
// TODO(bazel-team): Add support for a persistent action cache on Windows.
actionCache = new NullActionCache();
return actionCache;
}
long st... | ActionCache function() throws IOException { if (actionCache == null) { if (OS.getCurrent() == OS.WINDOWS) { actionCache = new NullActionCache(); return actionCache; } long startTime = Profiler.nanoTimeMaybe(); try { actionCache = new CompactPersistentActionCache(getCacheDirectory(), clock); } catch (IOException e) { LO... | /**
* Returns reference to the lazily instantiated persistent action cache
* instance. Note, that method may recreate instance between different build
* requests, so return value should not be cached.
*/ | Returns reference to the lazily instantiated persistent action cache instance. Note, that method may recreate instance between different build requests, so return value should not be cached | getPersistentActionCache | {
"repo_name": "Krasnyanskiy/bazel",
"path": "src/main/java/com/google/devtools/build/lib/runtime/BlazeRuntime.java",
"license": "apache-2.0",
"size": 68285
} | [
"com.google.devtools.build.lib.actions.cache.ActionCache",
"com.google.devtools.build.lib.actions.cache.CompactPersistentActionCache",
"com.google.devtools.build.lib.actions.cache.NullActionCache",
"com.google.devtools.build.lib.events.Event",
"com.google.devtools.build.lib.profiler.Profiler",
"com.google... | import com.google.devtools.build.lib.actions.cache.ActionCache; import com.google.devtools.build.lib.actions.cache.CompactPersistentActionCache; import com.google.devtools.build.lib.actions.cache.NullActionCache; import com.google.devtools.build.lib.events.Event; import com.google.devtools.build.lib.profiler.Profiler; ... | import com.google.devtools.build.lib.actions.cache.*; import com.google.devtools.build.lib.events.*; import com.google.devtools.build.lib.profiler.*; import com.google.devtools.build.lib.util.*; import java.io.*; import java.util.logging.*; | [
"com.google.devtools",
"java.io",
"java.util"
] | com.google.devtools; java.io; java.util; | 1,257,496 |
public void setDate(List<String> date) {
this.date = date;
} | void function(List<String> date) { this.date = date; } | /**
* Sets the date.
*
* @param date
* the new date
*/ | Sets the date | setDate | {
"repo_name": "moravianlibrary/MEditor",
"path": "editor-common/editor-common-client/src/main/java/cz/mzk/editor/shared/rpc/DublinCore.java",
"license": "gpl-2.0",
"size": 12139
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 475,772 |
private static boolean isIn(Set<String> datanodes, DatanodeInfo dn) {
return isIn(datanodes, dn.getPeerHostName(), dn.getXferPort())
|| isIn(datanodes, dn.getIpAddr(), dn.getXferPort())
|| isIn(datanodes, dn.getHostName(), dn.getXferPort());
} | static boolean function(Set<String> datanodes, DatanodeInfo dn) { return isIn(datanodes, dn.getPeerHostName(), dn.getXferPort()) isIn(datanodes, dn.getIpAddr(), dn.getXferPort()) isIn(datanodes, dn.getHostName(), dn.getXferPort()); } | /**
* Match is checked using host name , ip address with and without port
* number.
*
* @return true if the datanode's transfer address matches the set of nodes.
*/ | Match is checked using host name , ip address with and without port number | isIn | {
"repo_name": "WIgor/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/balancer/Dispatcher.java",
"license": "apache-2.0",
"size": 46117
} | [
"java.util.Set",
"org.apache.hadoop.hdfs.protocol.DatanodeInfo"
] | import java.util.Set; import org.apache.hadoop.hdfs.protocol.DatanodeInfo; | import java.util.*; import org.apache.hadoop.hdfs.protocol.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 2,133,047 |
public BgpSettings bgpProperties() {
return this.bgpProperties;
} | BgpSettings function() { return this.bgpProperties; } | /**
* Get the set of bgp properties.
*
* @return the bgpProperties value
*/ | Get the set of bgp properties | bgpProperties | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/network/v2019_07_01/implementation/VpnSiteInner.java",
"license": "mit",
"size": 8016
} | [
"com.microsoft.azure.management.network.v2019_07_01.BgpSettings"
] | import com.microsoft.azure.management.network.v2019_07_01.BgpSettings; | import com.microsoft.azure.management.network.v2019_07_01.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 1,151,465 |
public String project_serviceName_terminate_POST(String serviceName) throws IOException {
String qPath = "/cloud/project/{serviceName}/terminate";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "POST", sb.toString(), null);
return convertTo(resp, String.class);
} | String function(String serviceName) throws IOException { String qPath = STR; StringBuilder sb = path(qPath, serviceName); String resp = exec(qPath, "POST", sb.toString(), null); return convertTo(resp, String.class); } | /**
* Terminate your service
*
* REST: POST /cloud/project/{serviceName}/terminate
* @param serviceName [required] The project id
*/ | Terminate your service | project_serviceName_terminate_POST | {
"repo_name": "UrielCh/ovh-java-sdk",
"path": "ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java",
"license": "bsd-3-clause",
"size": 111796
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,370,395 |
public static Segment getSegment() {
final int size = cache.segments.size();
if (size > 0) {
return cache.segments.remove(size - 1);
}
return new Segment();
} | static Segment function() { final int size = cache.segments.size(); if (size > 0) { return cache.segments.remove(size - 1); } return new Segment(); } | /**
* Returns a <code>Segment</code>. When done, the <code>Segment</code>
* should be recycled by invoking {@link #releaseSegment(Segment)}.
*
* @return a <code>Segment</code>.
*/ | Returns a <code>Segment</code>. When done, the <code>Segment</code> should be recycled by invoking <code>#releaseSegment(Segment)</code> | getSegment | {
"repo_name": "SilicoSciences/net.sf.kerner.utils",
"path": "src/main/java/net/sf/kerner/utils/swing/MultiLineLabelUI.java",
"license": "apache-2.0",
"size": 21308
} | [
"javax.swing.text.Segment"
] | import javax.swing.text.Segment; | import javax.swing.text.*; | [
"javax.swing"
] | javax.swing; | 1,165,425 |
public String refreshToken(String token) {
String refreshedToken;
try {
Claims claims = getClaimsFromToken(token);
claims.put(CLAIM_KEY_CREATED, new Date());
refreshedToken = gerarToken(claims);
} catch (Exception e) {
refreshedToken = null;
}
return refreshedToken;
} | String function(String token) { String refreshedToken; try { Claims claims = getClaimsFromToken(token); claims.put(CLAIM_KEY_CREATED, new Date()); refreshedToken = gerarToken(claims); } catch (Exception e) { refreshedToken = null; } return refreshedToken; } | /**
* Cria um novo token (refresh).
*
* @param token
* @return String
*/ | Cria um novo token (refresh) | refreshToken | {
"repo_name": "ErickPeiker/PontoInteligente-API",
"path": "src/main/java/com/udemy/api/security/utils/JwtTokenUtil.java",
"license": "mit",
"size": 3640
} | [
"io.jsonwebtoken.Claims",
"java.util.Date"
] | import io.jsonwebtoken.Claims; import java.util.Date; | import io.jsonwebtoken.*; import java.util.*; | [
"io.jsonwebtoken",
"java.util"
] | io.jsonwebtoken; java.util; | 395,173 |
List<PluginInfo<Processor>> getAnnotationProcessors(); | List<PluginInfo<Processor>> getAnnotationProcessors(); | /**Returns the annotation Processors that should be enabled in the current javac run.
*
* @return annotation Processors
*/ | Returns the annotation Processors that should be enabled in the current javac run | getAnnotationProcessors | {
"repo_name": "google/error-prone-javac",
"path": "src/jdk.compiler/share/classes/com/sun/tools/javac/platform/PlatformDescription.java",
"license": "gpl-2.0",
"size": 4181
} | [
"java.util.List",
"javax.annotation.processing.Processor"
] | import java.util.List; import javax.annotation.processing.Processor; | import java.util.*; import javax.annotation.processing.*; | [
"java.util",
"javax.annotation"
] | java.util; javax.annotation; | 1,693,240 |
public int handleBuffer(ByteBuffer buffer, int offset, int size, long presentationTimeUs)
throws WriteException {
if (size == 0) {
return RESULT_BUFFER_CONSUMED;
}
if (needsPassthroughWorkarounds()) {
// An AC-3 audio track continues to play data written while it is paused. Stop writing... | int function(ByteBuffer buffer, int offset, int size, long presentationTimeUs) throws WriteException { if (size == 0) { return RESULT_BUFFER_CONSUMED; } if (needsPassthroughWorkarounds()) { if (audioTrack.getPlayState() == android.media.AudioTrack.PLAYSTATE_PAUSED) { return 0; } if (audioTrack.getPlayState() == android... | /**
* Attempts to write {@code size} bytes from {@code buffer} at {@code offset} to the audio track.
* Returns a bit field containing {@link #RESULT_BUFFER_CONSUMED} if the buffer can be released
* (due to having been written), and {@link #RESULT_POSITION_DISCONTINUITY} if the buffer was
* discontinuous wit... | Attempts to write size bytes from buffer at offset to the audio track. Returns a bit field containing <code>#RESULT_BUFFER_CONSUMED</code> if the buffer can be released (due to having been written), and <code>#RESULT_POSITION_DISCONTINUITY</code> if the buffer was discontinuous with previously written data | handleBuffer | {
"repo_name": "castlabs/ExoPlayer",
"path": "library/src/main/java/com/google/android/exoplayer/audio/AudioTrack.java",
"license": "apache-2.0",
"size": 50911
} | [
"android.util.Log",
"com.google.android.exoplayer.util.Assertions",
"com.google.android.exoplayer.util.Util",
"java.nio.ByteBuffer"
] | import android.util.Log; import com.google.android.exoplayer.util.Assertions; import com.google.android.exoplayer.util.Util; import java.nio.ByteBuffer; | import android.util.*; import com.google.android.exoplayer.util.*; import java.nio.*; | [
"android.util",
"com.google.android",
"java.nio"
] | android.util; com.google.android; java.nio; | 1,967,107 |
void setListeners(Collection<TrainingListener> listeners); | void setListeners(Collection<TrainingListener> listeners); | /**
* Set the {@link TrainingListener}s for this model. If any listeners have previously been set, they will be
* replaced by this method
*/ | Set the <code>TrainingListener</code>s for this model. If any listeners have previously been set, they will be replaced by this method | setListeners | {
"repo_name": "RobAltena/deeplearning4j",
"path": "deeplearning4j/deeplearning4j-nn/src/main/java/org/deeplearning4j/nn/api/Layer.java",
"license": "apache-2.0",
"size": 8729
} | [
"java.util.Collection",
"org.deeplearning4j.optimize.api.TrainingListener"
] | import java.util.Collection; import org.deeplearning4j.optimize.api.TrainingListener; | import java.util.*; import org.deeplearning4j.optimize.api.*; | [
"java.util",
"org.deeplearning4j.optimize"
] | java.util; org.deeplearning4j.optimize; | 124,505 |
private TypesPieChartData getMimeTypeCategoriesModel(DataSource dataSource)
throws SQLException, TskCoreException, SleuthkitCaseProvider.SleuthkitCaseProviderException {
if (dataSource == null) {
return null;
}
// for each category of file types, get the counts of f... | TypesPieChartData function(DataSource dataSource) throws SQLException, TskCoreException, SleuthkitCaseProvider.SleuthkitCaseProviderException { if (dataSource == null) { return null; } List<PieChartItem> fileCategoryItems = new ArrayList<>(); long categoryTotalCount = 0; for (FileTypeCategoryData cat : FILE_MIME_TYPE_C... | /**
* Gets all the data for the file type pie chart.
*
* @param mimeTypeData The means of acquiring data.
* @param dataSource The datasource.
*
* @return The pie chart items.
*/ | Gets all the data for the file type pie chart | getMimeTypeCategoriesModel | {
"repo_name": "sleuthkit/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/report/modules/datasourcesummaryexport/ExportTypes.java",
"license": "apache-2.0",
"size": 13028
} | [
"java.sql.SQLException",
"java.util.ArrayList",
"java.util.List",
"java.util.stream.Collectors",
"java.util.stream.Stream",
"org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities",
"org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider",
"org.sleuthkit.autopsy.dat... | import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import java.util.stream.Stream; import org.sleuthkit.autopsy.datasourcesummary.datamodel.DataSourceInfoUtilities; import org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider; import or... | import java.sql.*; import java.util.*; import java.util.stream.*; import org.sleuthkit.autopsy.datasourcesummary.datamodel.*; import org.sleuthkit.autopsy.datasourcesummary.uiutils.*; import org.sleuthkit.datamodel.*; | [
"java.sql",
"java.util",
"org.sleuthkit.autopsy",
"org.sleuthkit.datamodel"
] | java.sql; java.util; org.sleuthkit.autopsy; org.sleuthkit.datamodel; | 1,548,253 |
private void visitPubapi(TypeElement e) {
Name n = ((ClassSymbol)e).fullname;
assert(publicApiPerClass.get(n) == null);
PubapiVisitor v = new PubapiVisitor();
v.construct(e);
publicApiPerClass.put(n, v.api);
} | void function(TypeElement e) { Name n = ((ClassSymbol)e).fullname; assert(publicApiPerClass.get(n) == null); PubapiVisitor v = new PubapiVisitor(); v.construct(e); publicApiPerClass.put(n, v.api); } | /**
* Visit the api of a class and construct a list of api strings and
* store it into the pubapi_perclass map.
*/ | Visit the api of a class and construct a list of api strings and store it into the pubapi_perclass map | visitPubapi | {
"repo_name": "Techcable/sjavac",
"path": "src/main/java/com/sun/tools/sjavac/comp/Dependencies.java",
"license": "gpl-2.0",
"size": 10012
} | [
"com.sun.tools.javac.code.Symbol",
"com.sun.tools.javac.util.Name",
"javax.lang.model.element.TypeElement"
] | import com.sun.tools.javac.code.Symbol; import com.sun.tools.javac.util.Name; import javax.lang.model.element.TypeElement; | import com.sun.tools.javac.code.*; import com.sun.tools.javac.util.*; import javax.lang.model.element.*; | [
"com.sun.tools",
"javax.lang"
] | com.sun.tools; javax.lang; | 710,829 |
private ItemBand createItemBand()
{
final ItemBand items = new ItemBand();
items.setName("Items");
items.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(10));
items.getStyle().setStyleProperty(TextStyleKeys.FONT, "Monospaced");
items.getStyle().setStyleProperty(TextStyleKeys.F... | ItemBand function() { final ItemBand items = new ItemBand(); items.setName("Items"); items.getStyle().setStyleProperty(ElementStyleKeys.MIN_HEIGHT, new Float(10)); items.getStyle().setStyleProperty(TextStyleKeys.FONT, STR); items.getStyle().setStyleProperty(TextStyleKeys.FONTSIZE, new Integer(10)); items.getStyle().set... | /**
* Creates the itemBand.
*
* @return the item band.
*/ | Creates the itemBand | createItemBand | {
"repo_name": "EgorZhuk/pentaho-reporting",
"path": "engine/demo/src/main/java/org/pentaho/reporting/engine/classic/demo/ancient/demo/world/CountryReportAPIDemoHandler.java",
"license": "lgpl-2.1",
"size": 19064
} | [
"java.awt.BasicStroke",
"java.awt.Color",
"java.awt.geom.Point2D",
"org.pentaho.reporting.engine.classic.core.ElementAlignment",
"org.pentaho.reporting.engine.classic.core.ItemBand",
"org.pentaho.reporting.engine.classic.core.elementfactory.HorizontalLineElementFactory",
"org.pentaho.reporting.engine.cl... | import java.awt.BasicStroke; import java.awt.Color; import java.awt.geom.Point2D; import org.pentaho.reporting.engine.classic.core.ElementAlignment; import org.pentaho.reporting.engine.classic.core.ItemBand; import org.pentaho.reporting.engine.classic.core.elementfactory.HorizontalLineElementFactory; import org.pentaho... | import java.awt.*; import java.awt.geom.*; import org.pentaho.reporting.engine.classic.core.*; import org.pentaho.reporting.engine.classic.core.elementfactory.*; import org.pentaho.reporting.engine.classic.core.style.*; import org.pentaho.reporting.libraries.base.util.*; | [
"java.awt",
"org.pentaho.reporting"
] | java.awt; org.pentaho.reporting; | 48,819 |
public Outage getOutage(final String name) {
getReadLock().lock();
try {
return getConfig().getOutage(name);
} finally {
getReadLock().unlock();
}
} | Outage function(final String name) { getReadLock().lock(); try { return getConfig().getOutage(name); } finally { getReadLock().unlock(); } } | /**
* Return the specified outage.
*
* @param name
* the outage that is to be looked up
* @return the specified outage, null if not found
*/ | Return the specified outage | getOutage | {
"repo_name": "tdefilip/opennms",
"path": "opennms-config/src/main/java/org/opennms/netmgt/config/PollOutagesConfigManager.java",
"license": "agpl-3.0",
"size": 12477
} | [
"org.opennms.netmgt.config.poller.outages.Outage"
] | import org.opennms.netmgt.config.poller.outages.Outage; | import org.opennms.netmgt.config.poller.outages.*; | [
"org.opennms.netmgt"
] | org.opennms.netmgt; | 1,019,865 |
private void buildWallPoint(World world, int x, int z, int wallHeight, int diameter) {
WallPosition positionOriginal = null;
WallPosition positionSymmetricX = null;
WallPosition positionSymmetricZ = null;
WallPosition positionOpposite = null;
Integer xSpawn = world.getSpawnLocation().getBlockX();
I... | void function(World world, int x, int z, int wallHeight, int diameter) { WallPosition positionOriginal = null; WallPosition positionSymmetricX = null; WallPosition positionSymmetricZ = null; WallPosition positionOpposite = null; Integer xSpawn = world.getSpawnLocation().getBlockX(); Integer zSpawn = world.getSpawnLocat... | /**
* Builds 4 "towers" of the wall, from y=0 to y=wallHeight, at the given coordinates and
* the symmetric points.
*
* @param world
* @param x
* @param z
* @param wallHeight
* @param diameter
*/ | Builds 4 "towers" of the wall, from y=0 to y=wallHeight, at the given coordinates and the symmetric points | buildWallPoint | {
"repo_name": "kyriog/UHPlugin",
"path": "src/main/java/me/azenet/UHPlugin/UHWallGenerator.java",
"license": "gpl-3.0",
"size": 11951
} | [
"org.bukkit.Material",
"org.bukkit.World"
] | import org.bukkit.Material; import org.bukkit.World; | import org.bukkit.*; | [
"org.bukkit"
] | org.bukkit; | 802,738 |
ClassMapping<T> mapSetter(String fieldName, Class<?>... parameterTypes) throws MethodNotFoundException; | ClassMapping<T> mapSetter(String fieldName, Class<?>... parameterTypes) throws MethodNotFoundException; | /**
* Map the named setter with the parametric signature
*
* @param fieldName the name of the field used by the setter
* @param parameterTypes the parametric signature
* @return the current class mapping
*/ | Map the named setter with the parametric signature | mapSetter | {
"repo_name": "mrenou/jacksonatic",
"path": "src/main/java/com/github/mrenou/jacksonatic/mapping/ClassMapping.java",
"license": "apache-2.0",
"size": 10275
} | [
"com.github.mrenou.jacksonatic.exception.MethodNotFoundException"
] | import com.github.mrenou.jacksonatic.exception.MethodNotFoundException; | import com.github.mrenou.jacksonatic.exception.*; | [
"com.github.mrenou"
] | com.github.mrenou; | 727,860 |
public Observable<ServiceResponse<Page<DataLakeAnalyticsAccount>>> listNextSinglePageAsync(final String nextPageLink) {
if (nextPageLink == null) {
throw new IllegalArgumentException("Parameter nextPageLink is required and cannot be null.");
} | Observable<ServiceResponse<Page<DataLakeAnalyticsAccount>>> function(final String nextPageLink) { if (nextPageLink == null) { throw new IllegalArgumentException(STR); } | /**
* Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
*
ServiceResponse<PageImpl<DataLakeAnalyticsAccount>> * @param nextPageLink The NextLink from the previous successful call to List operation.
* @return th... | Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any | listNextSinglePageAsync | {
"repo_name": "anudeepsharma/azure-sdk-for-java",
"path": "azure-mgmt-datalake-analytics/src/main/java/com/microsoft/azure/management/datalake/analytics/implementation/AccountsImpl.java",
"license": "mit",
"size": 97950
} | [
"com.microsoft.azure.Page",
"com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccount",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.Page; import com.microsoft.azure.management.datalake.analytics.models.DataLakeAnalyticsAccount; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.*; import com.microsoft.azure.management.datalake.analytics.models.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 183,282 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.