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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
protected static void writeSize(int size, StreamOutput out) throws IOException {
if (size == Integer.MAX_VALUE) {
size = 0;
}
out.writeVInt(size);
} | static void function(int size, StreamOutput out) throws IOException { if (size == Integer.MAX_VALUE) { size = 0; } out.writeVInt(size); } | /**
* Write a size under the assumption that a value of 0 means unlimited.
*/ | Write a size under the assumption that a value of 0 means unlimited | writeSize | {
"repo_name": "danielmitterdorfer/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/search/aggregations/InternalAggregation.java",
"license": "apache-2.0",
"size": 11962
} | [
"java.io.IOException",
"org.elasticsearch.common.io.stream.StreamOutput"
] | import java.io.IOException; import org.elasticsearch.common.io.stream.StreamOutput; | import java.io.*; import org.elasticsearch.common.io.stream.*; | [
"java.io",
"org.elasticsearch.common"
] | java.io; org.elasticsearch.common; | 1,175,485 |
void checkAttributeSyntax(PerunSessionImpl perunSession, Facility facility, Attribute attribute) throws InternalErrorException, WrongAttributeValueException; | void checkAttributeSyntax(PerunSessionImpl perunSession, Facility facility, Attribute attribute) throws InternalErrorException, WrongAttributeValueException; | /**
* Checks if value of this facility attribute has valid syntax.
*
* @param perunSession perun session
* @param facility string for which you want to check validity of attribute
* @param attribute attribute to check
* @throws InternalErrorException if an exception is raised in particular
* imple... | Checks if value of this facility attribute has valid syntax | checkAttributeSyntax | {
"repo_name": "stavamichal/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/modules/attributes/FacilityAttributesModuleImplApi.java",
"license": "bsd-2-clause",
"size": 2999
} | [
"cz.metacentrum.perun.core.api.Attribute",
"cz.metacentrum.perun.core.api.Facility",
"cz.metacentrum.perun.core.api.exceptions.InternalErrorException",
"cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException",
"cz.metacentrum.perun.core.impl.PerunSessionImpl"
] | import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum.perun.core.api.exceptions.WrongAttributeValueException; import cz.metacentrum.perun.core.impl.PerunSessionImpl; | import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import cz.metacentrum.perun.core.impl.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 1,092,168 |
public synchronized void elementRendered(String requestUniqueId, BaseUpdateableElement element) {
if(logMINOR){
Logger.minor(this, "Element is rendered in page:"+requestUniqueId+" element:"+element);
}
// Add to the pages
if (pages.containsKey(requestUniqueId) == false) {
pages.put(requestUniqueId, new... | synchronized void function(String requestUniqueId, BaseUpdateableElement element) { if(logMINOR){ Logger.minor(this, STR+requestUniqueId+STR+element); } if (pages.containsKey(requestUniqueId) == false) { pages.put(requestUniqueId, new ArrayList<BaseUpdateableElement>()); } pages.get(requestUniqueId).add(element); Strin... | /**
* A pushed element is rendered and needs to be tracked.
*
* @param requestUniqueId
* - The requestId that rendered the element
* @param element
* - The element that is rendered
*/ | A pushed element is rendered and needs to be tracked | elementRendered | {
"repo_name": "saces/fred",
"path": "src/freenet/clients/http/updateableelements/PushDataManager.java",
"license": "gpl-2.0",
"size": 12114
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 2,270,443 |
@NotNull
public static <IN, OUT> InvocationFactory<IN, OUT> thenGet(
@NotNull final Supplier<? extends OUT> outputSupplier) {
return thenGet(1, outputSupplier);
} | static <IN, OUT> InvocationFactory<IN, OUT> function( @NotNull final Supplier<? extends OUT> outputSupplier) { return thenGet(1, outputSupplier); } | /**
* Returns a factory of invocations generating the outputs returned by the specified supplier
* after the invocation completes.
* <br>
* The invocation inputs will be ignored.
*
* @param outputSupplier the supplier instance.
* @param <IN> the input data type.
* @param <OUT> ... | Returns a factory of invocations generating the outputs returned by the specified supplier after the invocation completes. The invocation inputs will be ignored | thenGet | {
"repo_name": "davide-maestroni/jroutine",
"path": "operator/src/main/java/com/github/dm/jrt/operator/Operators.java",
"license": "apache-2.0",
"size": 67942
} | [
"com.github.dm.jrt.core.invocation.InvocationFactory",
"com.github.dm.jrt.function.Supplier",
"org.jetbrains.annotations.NotNull"
] | import com.github.dm.jrt.core.invocation.InvocationFactory; import com.github.dm.jrt.function.Supplier; import org.jetbrains.annotations.NotNull; | import com.github.dm.jrt.core.invocation.*; import com.github.dm.jrt.function.*; import org.jetbrains.annotations.*; | [
"com.github.dm",
"org.jetbrains.annotations"
] | com.github.dm; org.jetbrains.annotations; | 146,795 |
public static String getTableName(ModelDeclaration model) {
ParquetFileTrait trait = model.getTrait(ParquetFileTrait.class);
if (trait == null || trait.getTableName() == null) {
return model.getName().identifier;
}
return trait.getTableName();
} | static String function(ModelDeclaration model) { ParquetFileTrait trait = model.getTrait(ParquetFileTrait.class); if (trait == null trait.getTableName() == null) { return model.getName().identifier; } return trait.getTableName(); } | /**
* Returns the explicit/inferred table name.
* @param model the target data model
* @return the explicit/inferred table name
*/ | Returns the explicit/inferred table name | getTableName | {
"repo_name": "cocoatomo/asakusafw",
"path": "hive-project/asakusa-hive-dmdl/src/main/java/com/asakusafw/dmdl/directio/hive/parquet/ParquetFileTrait.java",
"license": "apache-2.0",
"size": 2116
} | [
"com.asakusafw.dmdl.semantics.ModelDeclaration"
] | import com.asakusafw.dmdl.semantics.ModelDeclaration; | import com.asakusafw.dmdl.semantics.*; | [
"com.asakusafw.dmdl"
] | com.asakusafw.dmdl; | 1,441,308 |
int getDefinitionClassAncestryLevel(Class<? extends RuleDefinition> usingClass,
ConfiguredRuleClassProvider ruleClassProvider) {
if (usingClass.equals(definitionClass)) {
return 0;
}
// Storing nodes (rule class definitions) with the length of the shortest path from usingClass
Map<Class<? ... | int getDefinitionClassAncestryLevel(Class<? extends RuleDefinition> usingClass, ConfiguredRuleClassProvider ruleClassProvider) { if (usingClass.equals(definitionClass)) { return 0; } Map<Class<? extends RuleDefinition>, Integer> visited = new HashMap<>(); LinkedList<Class<? extends RuleDefinition>> toVisit = new Linked... | /**
* Returns the length of a shortest path from usingClass to the definitionClass of this
* RuleDocumentationAttribute in the rule definition ancestry graph. Returns -1
* if definitionClass is not the ancestor (transitively) of usingClass.
*/ | Returns the length of a shortest path from usingClass to the definitionClass of this RuleDocumentationAttribute in the rule definition ancestry graph. Returns -1 if definitionClass is not the ancestor (transitively) of usingClass | getDefinitionClassAncestryLevel | {
"repo_name": "damienmg/bazel",
"path": "src/main/java/com/google/devtools/build/docgen/RuleDocumentationAttribute.java",
"license": "apache-2.0",
"size": 11410
} | [
"com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider",
"com.google.devtools.build.lib.analysis.RuleDefinition",
"java.util.HashMap",
"java.util.LinkedList",
"java.util.Map"
] | import com.google.devtools.build.lib.analysis.ConfiguredRuleClassProvider; import com.google.devtools.build.lib.analysis.RuleDefinition; import java.util.HashMap; import java.util.LinkedList; import java.util.Map; | import com.google.devtools.build.lib.analysis.*; import java.util.*; | [
"com.google.devtools",
"java.util"
] | com.google.devtools; java.util; | 1,494,657 |
@ApiModelProperty(example = "null", value = "")
public TaxByTypeSummaryForService getInssRf() {
return inssRf;
} | @ApiModelProperty(example = "null", value = "") TaxByTypeSummaryForService function() { return inssRf; } | /**
* Get inssRf
* @return inssRf
**/ | Get inssRf | getInssRf | {
"repo_name": "Avalara/avataxbr-clients",
"path": "java-client/src/main/java/io/swagger/client/model/SalesCalculatedTaxSummaryForServiceTaxByType.java",
"license": "gpl-3.0",
"size": 11338
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 2,731,518 |
public static ClassLoader getClassLoader(Object o)
{
if (System.getSecurityManager() != null)
{
return AccessController.doPrivileged(new GetClassLoaderAction(o));
}
else
{
return getClassLoaderInternal(o);
}
}
static class GetClass... | static ClassLoader function(Object o) { if (System.getSecurityManager() != null) { return AccessController.doPrivileged(new GetClassLoaderAction(o)); } else { return getClassLoaderInternal(o); } } static class GetClassLoaderAction implements PrivilegedAction<ClassLoader> { private Object object; GetClassLoaderAction(Ob... | /**
* Detect the right ClassLoader.
* The lookup order is determined by:
* <ol>
* <li>ContextClassLoader of the current Thread</li>
* <li>ClassLoader of the given Object 'o'</li>
* <li>ClassLoader of this very ClassUtils class</li>
* </ol>
*
* @param o if not <code>null</cod... | Detect the right ClassLoader. The lookup order is determined by: ContextClassLoader of the current Thread ClassLoader of the given Object 'o' ClassLoader of this very ClassUtils class | getClassLoader | {
"repo_name": "os890/deltaspike-vote",
"path": "deltaspike/core/api/src/main/java/org/apache/deltaspike/core/util/ClassUtils.java",
"license": "apache-2.0",
"size": 11356
} | [
"java.security.AccessController",
"java.security.PrivilegedAction"
] | import java.security.AccessController; import java.security.PrivilegedAction; | import java.security.*; | [
"java.security"
] | java.security; | 1,965,814 |
private String populateRangeQuery(String from, String until, String set, int offset, int count)
throws OAIInternalServerError {
StringBuffer sb = new StringBuffer();
StringTokenizer tokenizer;
if (set == null || set.length() == 0)
tokenizer = new StringTokenizer(rangeQuery, "... | String function(String from, String until, String set, int offset, int count) throws OAIInternalServerError { StringBuffer sb = new StringBuffer(); StringTokenizer tokenizer; if (set == null set.length() == 0) tokenizer = new StringTokenizer(rangeQuery, "\\"); else tokenizer = new StringTokenizer(rangeSetQuery, "\\"); ... | /**
* insert actual from, until, and set parameters into the rangeQuery String
* NOTE! This retrieves an extra record so we can decide if EOF has been reached.
*
* @param from the OAI from parameter
* @param until the OAI until paramter
* @param set the OAI set parameter
* @return a S... | insert actual from, until, and set parameters into the rangeQuery String NOTE! This retrieves an extra record so we can decide if EOF has been reached | populateRangeQuery | {
"repo_name": "openpreserve/oaicat",
"path": "src/main/java/ORG/oclc/oai/server/catalog/JDBCLimitedOAICatalog.java",
"license": "apache-2.0",
"size": 59816
} | [
"java.util.StringTokenizer"
] | import java.util.StringTokenizer; | import java.util.*; | [
"java.util"
] | java.util; | 664,460 |
private void enqueueEvpnType3Routes(
@Nonnull EdgeId edgeId, @Nonnull Stream<RouteAdvertisement<EvpnType3Route>> routes) {
Queue<RouteAdvertisement<EvpnType3Route>> q = _evpnType3IncomingRoutes.get(edgeId);
assert q != null; // Invariant of the session being up
routes.forEach(q::add);
} | void function( @Nonnull EdgeId edgeId, @Nonnull Stream<RouteAdvertisement<EvpnType3Route>> routes) { Queue<RouteAdvertisement<EvpnType3Route>> q = _evpnType3IncomingRoutes.get(edgeId); assert q != null; routes.forEach(q::add); } | /**
* Message passing method between BGP processes. Take a collection of EVPN type 3 {@link
* RouteAdvertisement}s and puts them onto a local queue corresponding to the session between
* given neighbors.
*/ | Message passing method between BGP processes. Take a collection of EVPN type 3 <code>RouteAdvertisement</code>s and puts them onto a local queue corresponding to the session between given neighbors | enqueueEvpnType3Routes | {
"repo_name": "batfish/batfish",
"path": "projects/batfish/src/main/java/org/batfish/dataplane/ibdp/BgpRoutingProcess.java",
"license": "apache-2.0",
"size": 110274
} | [
"java.util.Queue",
"java.util.stream.Stream",
"javax.annotation.Nonnull",
"org.batfish.datamodel.EvpnType3Route",
"org.batfish.datamodel.bgp.BgpTopology",
"org.batfish.dataplane.rib.RouteAdvertisement"
] | import java.util.Queue; import java.util.stream.Stream; import javax.annotation.Nonnull; import org.batfish.datamodel.EvpnType3Route; import org.batfish.datamodel.bgp.BgpTopology; import org.batfish.dataplane.rib.RouteAdvertisement; | import java.util.*; import java.util.stream.*; import javax.annotation.*; import org.batfish.datamodel.*; import org.batfish.datamodel.bgp.*; import org.batfish.dataplane.rib.*; | [
"java.util",
"javax.annotation",
"org.batfish.datamodel",
"org.batfish.dataplane"
] | java.util; javax.annotation; org.batfish.datamodel; org.batfish.dataplane; | 1,423,740 |
public static MutableSymbolTable readStringMap(ObjectInput in)
throws IOException, ClassNotFoundException {
int mapSize = in.readInt();
MutableSymbolTable syms = new MutableSymbolTable();
for (int i = 0; i < mapSize; i++) {
String sym = in.readUTF();
int index = in.readInt();
syms... | static MutableSymbolTable function(ObjectInput in) throws IOException, ClassNotFoundException { int mapSize = in.readInt(); MutableSymbolTable syms = new MutableSymbolTable(); for (int i = 0; i < mapSize; i++) { String sym = in.readUTF(); int index = in.readInt(); syms.put(sym, index); } return syms; } | /**
* Deserializes a symbol map from an java.io.ObjectInput
*
* @param in the java.io.ObjectInput. It should be already be initialized by the caller.
* @return the deserialized symbol map
*/ | Deserializes a symbol map from an java.io.ObjectInput | readStringMap | {
"repo_name": "steveash/jopenfst",
"path": "src/main/java/com/github/steveash/jopenfst/FstInputOutput.java",
"license": "mit",
"size": 8462
} | [
"java.io.IOException",
"java.io.ObjectInput"
] | import java.io.IOException; import java.io.ObjectInput; | import java.io.*; | [
"java.io"
] | java.io; | 2,193,311 |
public MonetaryFormat positiveSign(char positiveSign) {
checkArgument(!Character.isDigit(positiveSign));
if (positiveSign == this.positiveSign)
return this;
else
return new MonetaryFormat(negativeSign, positiveSign, zeroDigit, decimalMark, minDecimals, decimalGroups,
... | MonetaryFormat function(char positiveSign) { checkArgument(!Character.isDigit(positiveSign)); if (positiveSign == this.positiveSign) return this; else return new MonetaryFormat(negativeSign, positiveSign, zeroDigit, decimalMark, minDecimals, decimalGroups, shift, roundingMode, codes, codeSeparator, codePrefixed); } | /**
* Set character to prefix positive values. A zero value means no sign is used in this case. For parsing, a missing
* sign will always be interpreted as if the positive sign was used.
*/ | Set character to prefix positive values. A zero value means no sign is used in this case. For parsing, a missing sign will always be interpreted as if the positive sign was used | positiveSign | {
"repo_name": "oscarguindzberg/bitcoinj",
"path": "core/src/main/java/org/bitcoinj/utils/MonetaryFormat.java",
"license": "apache-2.0",
"size": 20273
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 1,512,033 |
public String getDescription() {
if (fullDescription == null) {
if (description == null || isExtensionListInDescription()) {
if (description != null) {
fullDescription = description;
}
fullDescription += " (";
//... | String function() { if (fullDescription == null) { if (description == null isExtensionListInDescription()) { if (description != null) { fullDescription = description; } fullDescription += STR; Iterator<String> extensions = filters.keySet().iterator(); if (extensions != null) { fullDescription += "." + extensions.next()... | /**
* Returns the human readable description of this filter. For
* example: "JPEG and GIF Image Files (*.jpg, *.gif)"
*
* @see #setDescription
* @see #setExtensionListInDescription
* @see #isExtensionListInDescription
* @see FileFilter#getDescription
*/ | Returns the human readable description of this filter. For example: "JPEG and GIF Image Files (*.jpg, *.gif)" | getDescription | {
"repo_name": "classicwuhao/maxuse",
"path": "src/gui/org/tzi/use/gui/util/ExtFileFilter.java",
"license": "gpl-2.0",
"size": 9756
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,177,822 |
public SoyExprForPhpSubject with(Map<String, PhpExpr> localVarFrame) {
localVarExprs.pushFrame();
for (Map.Entry<String, PhpExpr> entry : localVarFrame.entrySet()) {
localVarExprs.addVariable(entry.getKey(), entry.getValue());
}
return this;
} | SoyExprForPhpSubject function(Map<String, PhpExpr> localVarFrame) { localVarExprs.pushFrame(); for (Map.Entry<String, PhpExpr> entry : localVarFrame.entrySet()) { localVarExprs.addVariable(entry.getKey(), entry.getValue()); } return this; } | /**
* Adds a frame of local variables to the top of the {@link LocalVariableStack}.
*
* @param localVarFrame one frame of local variables
* @return the current subject for chaining
*/ | Adds a frame of local variables to the top of the <code>LocalVariableStack</code> | with | {
"repo_name": "oujesky/closure-templates",
"path": "java/tests/com/google/template/soy/phpsrc/internal/SoyExprForPhpSubject.java",
"license": "apache-2.0",
"size": 7651
} | [
"com.google.template.soy.phpsrc.restricted.PhpExpr",
"java.util.Map"
] | import com.google.template.soy.phpsrc.restricted.PhpExpr; import java.util.Map; | import com.google.template.soy.phpsrc.restricted.*; import java.util.*; | [
"com.google.template",
"java.util"
] | com.google.template; java.util; | 1,952,489 |
byte[][] next() throws SQLException; | byte[][] next() throws SQLException; | /**
* Returns the next row.
*
* @return the next row value
* @throws SQLException if a database error occurs
*/ | Returns the next row | next | {
"repo_name": "GunioRobot/ntnu-prosjekt1",
"path": "mysql-connector-java-3.0.17-ga/com/mysql/jdbc/RowData.java",
"license": "gpl-2.0",
"size": 5677
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 22,659 |
private void executeAdvertiserPublisherStatisticsWithError(Object[] params,
String errorMsg) throws MalformedURLException {
try {
execute(ADVERTISER_PUBLISHER_STATISTICS_METHOD, params);
fail(ErrorMessage.METHOD_EXECUTED_SUCCESSFULLY_BUT_SHOULD_NOT_HAVE);
} catch (XmlRpcException e) {
assertEquals(Er... | void function(Object[] params, String errorMsg) throws MalformedURLException { try { execute(ADVERTISER_PUBLISHER_STATISTICS_METHOD, params); fail(ErrorMessage.METHOD_EXECUTED_SUCCESSFULLY_BUT_SHOULD_NOT_HAVE); } catch (XmlRpcException e) { assertEquals(ErrorMessage.WRONG_ERROR_MESSAGE, errorMsg, e .getMessage()); } } | /**
* Execute test method with error
*
* @param params -
* parameters for test method
* @param errorMsg -
* true error messages
* @throws MalformedURLException
*/ | Execute test method with error | executeAdvertiserPublisherStatisticsWithError | {
"repo_name": "Mordred/revive-adserver",
"path": "www/api/v1/xmlrpc/tests/unit/src/test/java/org/openx/advertiser/TestAdvertiserPublisherStatistics.java",
"license": "gpl-2.0",
"size": 7724
} | [
"java.net.MalformedURLException",
"org.apache.xmlrpc.XmlRpcException",
"org.openx.utils.ErrorMessage"
] | import java.net.MalformedURLException; import org.apache.xmlrpc.XmlRpcException; import org.openx.utils.ErrorMessage; | import java.net.*; import org.apache.xmlrpc.*; import org.openx.utils.*; | [
"java.net",
"org.apache.xmlrpc",
"org.openx.utils"
] | java.net; org.apache.xmlrpc; org.openx.utils; | 2,385,088 |
public static BinaryCPDeviceInfo processDeviceAnnouncement(BinaryMessageObject message)
{
try
{
byte[] messageData = message.getBody();
int offset = 0;
int loops = 0;
// address used to access the device
InetAddress accessAddress = message.getSourceAddress().getAddress();
... | static BinaryCPDeviceInfo function(BinaryMessageObject message) { try { byte[] messageData = message.getBody(); int offset = 0; int loops = 0; InetAddress accessAddress = message.getSourceAddress().getAddress(); long deviceID = -1; int deviceType = -1; long deviceDescriptionDate = -1; int descriptionPort = BinaryUPnPCo... | /**
* Processes a received device discovery message.
*
* @param message
* The device message
*
* @return The parsed device info or null
*/ | Processes a received device discovery message | processDeviceAnnouncement | {
"repo_name": "fraunhoferfokus/fokus-upnp",
"path": "upnp-core/src/main/java/de/fraunhofer/fokus/lsf/core/control_point/BinaryCPMessageParser.java",
"license": "gpl-3.0",
"size": 28009
} | [
"de.fraunhofer.fokus.lsf.core.BinaryUPnPConstants",
"de.fraunhofer.fokus.lsf.core.base.GatewayData",
"de.fraunhofer.fokus.upnp.util.ByteArrayHelper",
"de.fraunhofer.fokus.upnp.util.Portable",
"de.fraunhofer.fokus.upnp.util.network.BinaryMessageObject",
"java.net.InetAddress",
"java.util.Vector"
] | import de.fraunhofer.fokus.lsf.core.BinaryUPnPConstants; import de.fraunhofer.fokus.lsf.core.base.GatewayData; import de.fraunhofer.fokus.upnp.util.ByteArrayHelper; import de.fraunhofer.fokus.upnp.util.Portable; import de.fraunhofer.fokus.upnp.util.network.BinaryMessageObject; import java.net.InetAddress; import java.u... | import de.fraunhofer.fokus.lsf.core.*; import de.fraunhofer.fokus.lsf.core.base.*; import de.fraunhofer.fokus.upnp.util.*; import de.fraunhofer.fokus.upnp.util.network.*; import java.net.*; import java.util.*; | [
"de.fraunhofer.fokus",
"java.net",
"java.util"
] | de.fraunhofer.fokus; java.net; java.util; | 1,684,161 |
public int parseIntOr( Element elt, int dflt ) {
return parseIntOrWarn( elt, dflt, false );
} | int function( Element elt, int dflt ) { return parseIntOrWarn( elt, dflt, false ); } | /** Parses the text in the given element, or returns dflt if this could not be done.
* The element may be null. No warning messages are printed.
* @param elt the element whose text will be parsed
* @param dflt the value if the element is null, has no text, or if the text is un-parsable.
* @return the int value ... | Parses the text in the given element, or returns dflt if this could not be done. The element may be null. No warning messages are printed | parseIntOr | {
"repo_name": "bejayoharen/SJWidgets",
"path": "src/main/java/com/xowave/util/XMLUtil.java",
"license": "bsd-3-clause",
"size": 6135
} | [
"org.jdom.Element"
] | import org.jdom.Element; | import org.jdom.*; | [
"org.jdom"
] | org.jdom; | 1,405,201 |
return getHomesSize(uuid) == ConfigManager.getMaxHomes();
} | return getHomesSize(uuid) == ConfigManager.getMaxHomes(); } | /**
* Check whether a player has reached their maximum amount of homes
*
* @param uuid UUID of the player
* @return Whether a player has reached the maximum amount of homes
*/ | Check whether a player has reached their maximum amount of homes | reachedMaxHomes | {
"repo_name": "LankyLord/SimpleHomes",
"path": "src/main/java/net/lankylord/simplehomes/homes/HomeManager.java",
"license": "bsd-3-clause",
"size": 7944
} | [
"net.lankylord.simplehomes.configuration.ConfigManager"
] | import net.lankylord.simplehomes.configuration.ConfigManager; | import net.lankylord.simplehomes.configuration.*; | [
"net.lankylord.simplehomes"
] | net.lankylord.simplehomes; | 1,801,762 |
protected void fireSpaceAfterPrimaryEvent() {
if (applicationContext != null) {
Map<String, SpaceAfterPrimaryListener> beans = applicationContext.getBeansOfType(SpaceAfterPrimaryListener.class);
for (SpaceAfterPrimaryListener listener : beans.values()) {
listener.onAf... | void function() { if (applicationContext != null) { Map<String, SpaceAfterPrimaryListener> beans = applicationContext.getBeansOfType(SpaceAfterPrimaryListener.class); for (SpaceAfterPrimaryListener listener : beans.values()) { listener.onAfterPrimary(new AfterSpaceModeChangeEvent(space, SpaceMode.PRIMARY)); } } } | /**
* Sends {@link AfterSpaceModeChangeEvent} events with space mode {@link SpaceMode#PRIMARY} to all beans in the application context
* that implement the {@link SpaceAfterPrimaryListener} interface.
*/ | Sends <code>AfterSpaceModeChangeEvent</code> events with space mode <code>SpaceMode#PRIMARY</code> to all beans in the application context that implement the <code>SpaceAfterPrimaryListener</code> interface | fireSpaceAfterPrimaryEvent | {
"repo_name": "Gigaspaces/xap-openspaces",
"path": "src/main/java/org/openspaces/core/space/AbstractSpaceFactoryBean.java",
"license": "apache-2.0",
"size": 19775
} | [
"com.gigaspaces.cluster.activeelection.SpaceMode",
"java.util.Map",
"org.openspaces.core.space.mode.AfterSpaceModeChangeEvent",
"org.openspaces.core.space.mode.SpaceAfterPrimaryListener"
] | import com.gigaspaces.cluster.activeelection.SpaceMode; import java.util.Map; import org.openspaces.core.space.mode.AfterSpaceModeChangeEvent; import org.openspaces.core.space.mode.SpaceAfterPrimaryListener; | import com.gigaspaces.cluster.activeelection.*; import java.util.*; import org.openspaces.core.space.mode.*; | [
"com.gigaspaces.cluster",
"java.util",
"org.openspaces.core"
] | com.gigaspaces.cluster; java.util; org.openspaces.core; | 2,024,084 |
public void onOOBControlMessage(IMessageComponent source, IPipe pipe, OOBControlMessage oobCtrlMsg) {
} | void function(IMessageComponent source, IPipe pipe, OOBControlMessage oobCtrlMsg) { } | /**
* Out-of-band control message handler
*
* @param source
* Source of message
* @param pipe
* Pipe that is used to transmit OOB message
* @param oobCtrlMsg
* OOB control message
*/ | Out-of-band control message handler | onOOBControlMessage | {
"repo_name": "Red5/red5-server-common",
"path": "src/main/java/org/red5/server/stream/consumer/FileConsumer.java",
"license": "apache-2.0",
"size": 22657
} | [
"org.red5.server.messaging.IMessageComponent",
"org.red5.server.messaging.IPipe",
"org.red5.server.messaging.OOBControlMessage"
] | import org.red5.server.messaging.IMessageComponent; import org.red5.server.messaging.IPipe; import org.red5.server.messaging.OOBControlMessage; | import org.red5.server.messaging.*; | [
"org.red5.server"
] | org.red5.server; | 93,035 |
public K ignoreUnavailable(boolean ignore) {
setParameter(Parameters.IGNORE_UNAVAILABLE, String.valueOf(ignore));
return (K) this;
} | K function(boolean ignore) { setParameter(Parameters.IGNORE_UNAVAILABLE, String.valueOf(ignore)); return (K) this; } | /**
* Ignore unavailable indices, this includes indices that not exists or closed indices.
* @param ignore whether to ignore unavailable indices
*/ | Ignore unavailable indices, this includes indices that not exists or closed indices | ignoreUnavailable | {
"repo_name": "joerivanruth/Jest",
"path": "jest-common/src/main/java/io/searchbox/action/AbstractMultiIndexActionBuilder.java",
"license": "apache-2.0",
"size": 1542
} | [
"io.searchbox.params.Parameters"
] | import io.searchbox.params.Parameters; | import io.searchbox.params.*; | [
"io.searchbox.params"
] | io.searchbox.params; | 570,459 |
public Object[] getRow( ResultSet rs ) throws KettleDatabaseException {
return getRow( rs, false );
} | Object[] function( ResultSet rs ) throws KettleDatabaseException { return getRow( rs, false ); } | /**
* Get a row from the resultset. Do not use lazy conversion
*
* @param rs The resultset to get the row from
* @return one row or null if no row was found on the resultset or if an error occurred.
*/ | Get a row from the resultset. Do not use lazy conversion | getRow | {
"repo_name": "pedrofvteixeira/pentaho-kettle",
"path": "core/src/main/java/org/pentaho/di/core/database/Database.java",
"license": "apache-2.0",
"size": 180346
} | [
"java.sql.ResultSet",
"org.pentaho.di.core.exception.KettleDatabaseException"
] | import java.sql.ResultSet; import org.pentaho.di.core.exception.KettleDatabaseException; | import java.sql.*; import org.pentaho.di.core.exception.*; | [
"java.sql",
"org.pentaho.di"
] | java.sql; org.pentaho.di; | 2,648,550 |
public void createNewFile(String filename) {
File file = new File(DIR + "/" + filename + EXT);
if (file.exists())
System.err.println("Warning: File \"" + file.getName() + "\" is overwritten.");
file.getParentFile().mkdirs();
writeHeaderAndDataTo(file);
} | void function(String filename) { File file = new File(DIR + "/" + filename + EXT); if (file.exists()) System.err.println(STRSTR\STR); file.getParentFile().mkdirs(); writeHeaderAndDataTo(file); } | /**
* This method creates a new file. If the file already exists, the program
* will terminate.
*
* @param filename
* the name under which the file should be saved.
*/ | This method creates a new file. If the file already exists, the program will terminate | createNewFile | {
"repo_name": "fg-netzwerksicherheit/jdemandmodel",
"path": "src/de/frauas/jdemandmodel/util/JDMFileCreator.java",
"license": "gpl-3.0",
"size": 4488
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 1,668,394 |
Iterable<PortPairGroup> portPairGroups = get(PortPairGroupService.class).getPortPairGroups();
ObjectNode result = mapper().createObjectNode();
ArrayNode portPairGroupEntry = result.putArray("port_pair_groups");
if (portPairGroups != null) {
for (final PortPairGroup portPairGroup : po... | Iterable<PortPairGroup> portPairGroups = get(PortPairGroupService.class).getPortPairGroups(); ObjectNode result = mapper().createObjectNode(); ArrayNode portPairGroupEntry = result.putArray(STR); if (portPairGroups != null) { for (final PortPairGroup portPairGroup : portPairGroups) { portPairGroupEntry.add(codec(PortPa... | /**
* Get details of all port pair groups created.
*
* @return 200 OK
*/ | Get details of all port pair groups created | getPortPairGroups | {
"repo_name": "sonu283304/onos",
"path": "apps/vtn/vtnweb/src/main/java/org/onosproject/vtnweb/resources/PortPairGroupWebResource.java",
"license": "apache-2.0",
"size": 6635
} | [
"com.fasterxml.jackson.databind.node.ArrayNode",
"com.fasterxml.jackson.databind.node.ObjectNode",
"org.onosproject.vtnrsc.PortPairGroup",
"org.onosproject.vtnrsc.portpairgroup.PortPairGroupService"
] | import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import org.onosproject.vtnrsc.PortPairGroup; import org.onosproject.vtnrsc.portpairgroup.PortPairGroupService; | import com.fasterxml.jackson.databind.node.*; import org.onosproject.vtnrsc.*; import org.onosproject.vtnrsc.portpairgroup.*; | [
"com.fasterxml.jackson",
"org.onosproject.vtnrsc"
] | com.fasterxml.jackson; org.onosproject.vtnrsc; | 1,692,632 |
public Photoset create(String title, String description,
String primaryPhotoId) throws IOException, FlickrException,
JSONException {
List<Parameter> parameters = new ArrayList<Parameter>();
parameters.add(new Parameter("method", METHOD_CREATE));
parameters.add(new Parameter(OAuthInterface.PARAM_OAUTH_CON... | Photoset function(String title, String description, String primaryPhotoId) throws IOException, FlickrException, JSONException { List<Parameter> parameters = new ArrayList<Parameter>(); parameters.add(new Parameter(STR, METHOD_CREATE)); parameters.add(new Parameter(OAuthInterface.PARAM_OAUTH_CONSUMER_KEY, apiKey)); para... | /**
* Create a new photoset.
*
* @param title
* The photoset title
* @param description
* The photoset description
* @param primaryPhotoId
* The primary photo id
* @return The new Photset
* @throws IOException
* @throws FlickrException
* @throws JSONException
... | Create a new photoset | create | {
"repo_name": "0570dev/flickr-glass",
"path": "src/com/googlecode/flickrjandroid/photosets/PhotosetsInterface.java",
"license": "apache-2.0",
"size": 21412
} | [
"com.googlecode.flickrjandroid.FlickrException",
"com.googlecode.flickrjandroid.Parameter",
"com.googlecode.flickrjandroid.Response",
"com.googlecode.flickrjandroid.oauth.OAuthInterface",
"com.googlecode.flickrjandroid.oauth.OAuthUtils",
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
... | import com.googlecode.flickrjandroid.FlickrException; import com.googlecode.flickrjandroid.Parameter; import com.googlecode.flickrjandroid.Response; import com.googlecode.flickrjandroid.oauth.OAuthInterface; import com.googlecode.flickrjandroid.oauth.OAuthUtils; import java.io.IOException; import java.util.ArrayList; i... | import com.googlecode.flickrjandroid.*; import com.googlecode.flickrjandroid.oauth.*; import java.io.*; import java.util.*; import org.json.*; | [
"com.googlecode.flickrjandroid",
"java.io",
"java.util",
"org.json"
] | com.googlecode.flickrjandroid; java.io; java.util; org.json; | 754,015 |
protected void createCapitalAssetInformationDetail(CapitalAssetInformation capitalAsset) {
CapitalAssetInformationDetail assetDetail = new CapitalAssetInformationDetail();
assetDetail.setDocumentNumber(capitalAsset.getDocumentNumber());
assetDetail.setCapitalAssetLineNumber(capitalAsset.getC... | void function(CapitalAssetInformation capitalAsset) { CapitalAssetInformationDetail assetDetail = new CapitalAssetInformationDetail(); assetDetail.setDocumentNumber(capitalAsset.getDocumentNumber()); assetDetail.setCapitalAssetLineNumber(capitalAsset.getCapitalAssetLineNumber()); assetDetail.setItemLineNumber(getNextLi... | /**
* creates a new tag/location details record and adds to the collection for capital asset
* @param capitalAsset
*/ | creates a new tag/location details record and adds to the collection for capital asset | createCapitalAssetInformationDetail | {
"repo_name": "Ariah-Group/Finance",
"path": "af_webapp/src/main/java/org/kuali/kfs/fp/document/web/struts/CapitalAssetInformationActionBase.java",
"license": "apache-2.0",
"size": 117732
} | [
"org.kuali.kfs.fp.businessobject.CapitalAssetInformation",
"org.kuali.kfs.fp.businessobject.CapitalAssetInformationDetail"
] | import org.kuali.kfs.fp.businessobject.CapitalAssetInformation; import org.kuali.kfs.fp.businessobject.CapitalAssetInformationDetail; | import org.kuali.kfs.fp.businessobject.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 128,954 |
public List<Relationship> getRelationships()
{
return this.relationships;
} | List<Relationship> function() { return this.relationships; } | /**
* Used by {@link org.apache.directory.fortress.core.ant.FortressAntTask#deleteAdminRoles()} to retrieve list of
* Relationships as defined in input xml file.
*
* @return collection containing {@link Relationship}s targeted for removal.
*/ | Used by <code>org.apache.directory.fortress.core.ant.FortressAntTask#deleteAdminRoles()</code> to retrieve list of Relationships as defined in input xml file | getRelationships | {
"repo_name": "PennState/directory-fortress-core-1",
"path": "src/main/java/org/apache/directory/fortress/core/ant/Deladminroleinheritance.java",
"license": "apache-2.0",
"size": 3040
} | [
"java.util.List",
"org.apache.directory.fortress.core.model.Relationship"
] | import java.util.List; import org.apache.directory.fortress.core.model.Relationship; | import java.util.*; import org.apache.directory.fortress.core.model.*; | [
"java.util",
"org.apache.directory"
] | java.util; org.apache.directory; | 2,464,684 |
@ServiceMethod(returns = ReturnType.SINGLE)
Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync(
String resourceGroupName,
String expressRouteGatewayName,
String connectionName,
ExpressRouteConnectionInner putExpressRouteConnectionParameters); | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Flux<ByteBuffer>>> createOrUpdateWithResponseAsync( String resourceGroupName, String expressRouteGatewayName, String connectionName, ExpressRouteConnectionInner putExpressRouteConnectionParameters); | /**
* Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit.
*
* @param resourceGroupName The name of the resource group.
* @param expressRouteGatewayName The name of the ExpressRoute gateway.
* @param connectionName The name of the connection subresource.
* @par... | Creates a connection between an ExpressRoute gateway and an ExpressRoute circuit | createOrUpdateWithResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/ExpressRouteConnectionsClient.java",
"license": "mit",
"size": 20556
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.resourcemanager.network.fluent.models.ExpressRouteConnectionInner",
"java.nio.ByteBuffer"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.network.fluent.models.ExpressRouteConnectionInner; import java.nio.ByteBuffer; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.network.fluent.models.*; import java.nio.*; | [
"com.azure.core",
"com.azure.resourcemanager",
"java.nio"
] | com.azure.core; com.azure.resourcemanager; java.nio; | 1,571,016 |
public static File adjustExtension(File file,
String preferredExtension,
String[] acceptableExtensions) {
return adjustExtension(file, preferredExtension, acceptableExtensions, "");
} | static File function(File file, String preferredExtension, String[] acceptableExtensions) { return adjustExtension(file, preferredExtension, acceptableExtensions, ""); } | /**
* Change the extension of a file if it is not of the appropriate
* type.
*
* @deprecated use adjustExtension(File, String, String[], String)
*/ | Change the extension of a file if it is not of the appropriate type | adjustExtension | {
"repo_name": "phuseman/r2cat",
"path": "org/freehep/util/export/ExportFileType.java",
"license": "gpl-3.0",
"size": 8829
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 549,466 |
if (chunks.size() > 0) {
PreparedStatement preparedStatement = getStatement(connection, "chunk.insert.all.writeChunks.sql");
for (ChunkEntry chunk : chunks) {
preparedStatement.setString(1, chunk.getChecksum().toString());
preparedStatement.setLong(2, databaseVersionId);
preparedStatement.setInt(3,... | if (chunks.size() > 0) { PreparedStatement preparedStatement = getStatement(connection, STR); for (ChunkEntry chunk : chunks) { preparedStatement.setString(1, chunk.getChecksum().toString()); preparedStatement.setLong(2, databaseVersionId); preparedStatement.setInt(3, chunk.getSize()); preparedStatement.addBatch(); } p... | /**
* Writes a list of {@link ChunkEntry}s to the database using <code>INSERT</code>s and the given connection.
*
* <p><b>Note:</b> This method executes, but <b>does not commit</b> the query.
*
* @param connection The connection used to execute the statements
* @param databaseVersionId
* @param chunks ... | Writes a list of <code>ChunkEntry</code>s to the database using <code>INSERT</code>s and the given connection. Note: This method executes, but does not commit the query | writeChunks | {
"repo_name": "syncany/syncany-plugin-sftp",
"path": "core/syncany-lib/src/main/java/org/syncany/database/dao/ChunkSqlDao.java",
"license": "gpl-3.0",
"size": 6640
} | [
"java.sql.PreparedStatement",
"org.syncany.database.ChunkEntry"
] | import java.sql.PreparedStatement; import org.syncany.database.ChunkEntry; | import java.sql.*; import org.syncany.database.*; | [
"java.sql",
"org.syncany.database"
] | java.sql; org.syncany.database; | 2,482,761 |
public int getLength() {
if (this.part == null) {
return 0;
} else if (this.part instanceof byte[]) {
return ((byte[]) this.part).length;
} else if (this.part instanceof StoredObject) {
return ((StoredObject) this.part).getDataSize();
} else {
return ((HeapDataOutputStream) thi... | int function() { if (this.part == null) { return 0; } else if (this.part instanceof byte[]) { return ((byte[]) this.part).length; } else if (this.part instanceof StoredObject) { return ((StoredObject) this.part).getDataSize(); } else { return ((HeapDataOutputStream) this.part).size(); } } | /**
* Return the length of the part. The length is the number of bytes needed for its serialized
* form.
*/ | Return the length of the part. The length is the number of bytes needed for its serialized form | getLength | {
"repo_name": "pivotal-amurmann/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/Part.java",
"license": "apache-2.0",
"size": 14020
} | [
"org.apache.geode.internal.HeapDataOutputStream",
"org.apache.geode.internal.offheap.StoredObject"
] | import org.apache.geode.internal.HeapDataOutputStream; import org.apache.geode.internal.offheap.StoredObject; | import org.apache.geode.internal.*; import org.apache.geode.internal.offheap.*; | [
"org.apache.geode"
] | org.apache.geode; | 2,634,913 |
public void setFromNone(@NonNull ID id) {
setFromInternal(id, null, null);
} | void function(@NonNull ID id) { setFromInternal(id, null, null); } | /**
* Notifies that 'from' view is ready even if there is no such view. Can be used in cases when
* we know that there will be no 'from' view, but animation should be started anyway.
*
* @param id Item ID for related 'to' view
*/ | Notifies that 'from' view is ready even if there is no such view. Can be used in cases when we know that there will be no 'from' view, but animation should be started anyway | setFromNone | {
"repo_name": "alexvasilkov/GestureViews",
"path": "library/src/main/java/com/alexvasilkov/gestures/transition/ViewsCoordinator.java",
"license": "apache-2.0",
"size": 8060
} | [
"androidx.annotation.NonNull"
] | import androidx.annotation.NonNull; | import androidx.annotation.*; | [
"androidx.annotation"
] | androidx.annotation; | 1,810,785 |
private static boolean isSignatureRelevantAfterErasure(Type t) {
while ( t instanceof GenericArrayType ) {
t = ((GenericArrayType)t).getGenericComponentType();
}
return t instanceof TypeVariable;
} | static boolean function(Type t) { while ( t instanceof GenericArrayType ) { t = ((GenericArrayType)t).getGenericComponentType(); } return t instanceof TypeVariable; } | /**
* Returns `true`, if a generic parameter type may change a method signature after erasure.
* Signature relevant after erasure means, the type has a type variable at it's 'top level',
* e.g. `T`, `T[]`, `T[][]`, but no parametrized types (`List<T>`) or arrays thereof (`List<T>[]`).
* @param t
... | Returns `true`, if a generic parameter type may change a method signature after erasure. Signature relevant after erasure means, the type has a type variable at it's 'top level', e.g. `T`, `T[]`, `T[][]`, but no parametrized types (`List`) or arrays thereof (`List[]`) | isSignatureRelevantAfterErasure | {
"repo_name": "Abnaxos/sangria",
"path": "dynamic/src/main/java/ch/raffael/sangria/dynamic/Reflection.java",
"license": "mit",
"size": 20379
} | [
"java.lang.reflect.GenericArrayType",
"java.lang.reflect.Type",
"java.lang.reflect.TypeVariable"
] | import java.lang.reflect.GenericArrayType; import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 2,552,029 |
public Builder setScreenshotUri(@Nullable Uri screenshotUri) {
mScreenshotUri = screenshotUri;
return this;
} | Builder function(@Nullable Uri screenshotUri) { mScreenshotUri = screenshotUri; return this; } | /**
* Sets the Uri of the screenshot of the page to be shared.
*/ | Sets the Uri of the screenshot of the page to be shared | setScreenshotUri | {
"repo_name": "endlessm/chromium-browser",
"path": "chrome/android/java/src/org/chromium/chrome/browser/share/ShareParams.java",
"license": "bsd-3-clause",
"size": 7547
} | [
"android.net.Uri",
"androidx.annotation.Nullable"
] | import android.net.Uri; import androidx.annotation.Nullable; | import android.net.*; import androidx.annotation.*; | [
"android.net",
"androidx.annotation"
] | android.net; androidx.annotation; | 643,071 |
public static RelNode createProject(
RelNode child,
List<? extends RexNode> exprs,
List<String> fieldNames,
boolean optimize) {
return createProject(child, exprs, fieldNames, optimize,
RelFactories.DEFAULT_PROJECT_FACTORY);
} | static RelNode function( RelNode child, List<? extends RexNode> exprs, List<String> fieldNames, boolean optimize) { return createProject(child, exprs, fieldNames, optimize, RelFactories.DEFAULT_PROJECT_FACTORY); } | /**
* Creates a relational expression which projects an array of expressions,
* and optionally optimizes.
*
* <p>The result may not be a
* {@link org.apache.calcite.rel.logical.LogicalProject}. If the
* projection is trivial, <code>child</code> is returned directly; and future
* versions may return... | Creates a relational expression which projects an array of expressions, and optionally optimizes. The result may not be a <code>org.apache.calcite.rel.logical.LogicalProject</code>. If the projection is trivial, <code>child</code> is returned directly; and future versions may return other formulations of expressions, s... | createProject | {
"repo_name": "YrAuYong/incubator-calcite",
"path": "core/src/main/java/org/apache/calcite/plan/RelOptUtil.java",
"license": "apache-2.0",
"size": 119673
} | [
"java.util.List",
"org.apache.calcite.rel.RelNode",
"org.apache.calcite.rel.core.RelFactories",
"org.apache.calcite.rex.RexNode"
] | import java.util.List; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.core.RelFactories; import org.apache.calcite.rex.RexNode; | import java.util.*; import org.apache.calcite.rel.*; import org.apache.calcite.rel.core.*; import org.apache.calcite.rex.*; | [
"java.util",
"org.apache.calcite"
] | java.util; org.apache.calcite; | 1,007,832 |
public void cancelDeletion() {
// Removes all entities from the trash and cancel their deletion.
logger.log(Level.INFO, "Deletion has been cancelled. Clearing trash can");
trashCan.clear();
// Clears the selection.
selectedEntity = null;
}
| void function() { logger.log(Level.INFO, STR); trashCan.clear(); selectedEntity = null; } | /**
* Cancel deletion and cleans the trash can.
*
* This method is intended to be used with AJAX.
*/ | Cancel deletion and cleans the trash can. This method is intended to be used with AJAX | cancelDeletion | {
"repo_name": "manzoli2122/Vip",
"path": "src/br/ufes/inf/nemo/jbutler/ejb/controller/CrudController.java",
"license": "apache-2.0",
"size": 13968
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 1,427,856 |
public void testFilterWithOrder()
{
EntityManager em = getEM();
EntityTransaction tx = em.getTransaction();
try
{
tx.begin();
CriteriaBuilder cb = emf.getCriteriaBuilder();
CriteriaQuery<Manager> crit = cb.createQuery(Manager.class)... | void function() { EntityManager em = getEM(); EntityTransaction tx = em.getTransaction(); try { tx.begin(); CriteriaBuilder cb = emf.getCriteriaBuilder(); CriteriaQuery<Manager> crit = cb.createQuery(Manager.class); Root<Manager> candidate = crit.from(Manager.class); candidate.alias("m"); crit.select(candidate); Predic... | /**
* Test basic querying for a candidate with an order.
*/ | Test basic querying for a candidate with an order | testFilterWithOrder | {
"repo_name": "datanucleus/tests",
"path": "jakarta/criteria/src/test/org/datanucleus/tests/CriteriaMetaModelTest.java",
"license": "apache-2.0",
"size": 58749
} | [
"jakarta.persistence.EntityManager",
"jakarta.persistence.EntityTransaction",
"jakarta.persistence.Query",
"jakarta.persistence.criteria.CriteriaBuilder",
"jakarta.persistence.criteria.CriteriaQuery",
"jakarta.persistence.criteria.Predicate",
"jakarta.persistence.criteria.Root",
"java.util.List",
"o... | import jakarta.persistence.EntityManager; import jakarta.persistence.EntityTransaction; import jakarta.persistence.Query; import jakarta.persistence.criteria.CriteriaBuilder; import jakarta.persistence.criteria.CriteriaQuery; import jakarta.persistence.criteria.Predicate; import jakarta.persistence.criteria.Root; impor... | import jakarta.persistence.*; import jakarta.persistence.criteria.*; import java.util.*; import org.datanucleus.samples.jpa.query.*; | [
"jakarta.persistence",
"jakarta.persistence.criteria",
"java.util",
"org.datanucleus.samples"
] | jakarta.persistence; jakarta.persistence.criteria; java.util; org.datanucleus.samples; | 1,077,463 |
@Nonnull
public static ProcessorMetaSupplier metaSupplier(
@Nonnull String watchedDirectory,
@Nonnull String charset,
@Nonnull String glob,
boolean sharedFileSystem,
@Nonnull BiFunctionEx<? super String, ? super String, ?> mapOutputFn
) {
c... | static ProcessorMetaSupplier function( @Nonnull String watchedDirectory, @Nonnull String charset, @Nonnull String glob, boolean sharedFileSystem, @Nonnull BiFunctionEx<? super String, ? super String, ?> mapOutputFn ) { checkSerializable(mapOutputFn, STR); return ProcessorMetaSupplier.of(2, () -> new StreamFilesP<>(watc... | /**
* Private API. Use {@link
* com.hazelcast.jet.core.processor.SourceProcessors#streamFilesP} instead.
*/ | Private API. Use <code>com.hazelcast.jet.core.processor.SourceProcessors#streamFilesP</code> instead | metaSupplier | {
"repo_name": "gurbuzali/hazelcast-jet",
"path": "hazelcast-jet-core/src/main/java/com/hazelcast/jet/impl/connector/StreamFilesP.java",
"license": "apache-2.0",
"size": 15581
} | [
"com.hazelcast.function.BiFunctionEx",
"com.hazelcast.jet.core.ProcessorMetaSupplier",
"com.hazelcast.jet.impl.util.Util",
"java.nio.charset.Charset",
"javax.annotation.Nonnull"
] | import com.hazelcast.function.BiFunctionEx; import com.hazelcast.jet.core.ProcessorMetaSupplier; import com.hazelcast.jet.impl.util.Util; import java.nio.charset.Charset; import javax.annotation.Nonnull; | import com.hazelcast.function.*; import com.hazelcast.jet.core.*; import com.hazelcast.jet.impl.util.*; import java.nio.charset.*; import javax.annotation.*; | [
"com.hazelcast.function",
"com.hazelcast.jet",
"java.nio",
"javax.annotation"
] | com.hazelcast.function; com.hazelcast.jet; java.nio; javax.annotation; | 1,707,550 |
void openDialog(Component parent) throws PropertyVetoException; | void openDialog(Component parent) throws PropertyVetoException; | /**
* Opens the dialog under the parent component for the user to select the
* file.
* <p>
* <h2>AWT Thread</h2>
* Should be called in the AWT thread.
* </p>
*
* @param parent
* the parent component or {@code null}.
*
* @throws PropertyVetoException
... | Opens the dialog under the parent component for the user to select the file. AWT Thread Should be called in the AWT thread. | openDialog | {
"repo_name": "devent/prefdialog",
"path": "prefdialog-misc-swing/src/main/java/com/anrisoftware/prefdialog/miscswing/filechoosers/FileChooserModel.java",
"license": "gpl-3.0",
"size": 5236
} | [
"java.awt.Component",
"java.beans.PropertyVetoException"
] | import java.awt.Component; import java.beans.PropertyVetoException; | import java.awt.*; import java.beans.*; | [
"java.awt",
"java.beans"
] | java.awt; java.beans; | 854,508 |
EAttribute getMedium_ClockPeriodOut(); | EAttribute getMedium_ClockPeriodOut(); | /**
* Returns the meta object for the attribute '{@link turnus.model.architecture.Medium#getClockPeriodOut <em>Clock Period Out</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Clock Period Out</em>'.
* @see turnus.model.architecture.Medium#getClockPer... | Returns the meta object for the attribute '<code>turnus.model.architecture.Medium#getClockPeriodOut Clock Period Out</code>'. | getMedium_ClockPeriodOut | {
"repo_name": "turnus/turnus",
"path": "turnus.model/src/turnus/model/architecture/ArchitecturePackage.java",
"license": "gpl-3.0",
"size": 44474
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,873,958 |
List<RichMember> getRichMembers(PerunSession sess, Group group) throws InternalErrorException, PrivilegeException, GroupNotExistsException; | List<RichMember> getRichMembers(PerunSession sess, Group group) throws InternalErrorException, PrivilegeException, GroupNotExistsException; | /**
* Get all rich members of Group. Rich member object contains user, member, userExtSources.
*
* @param sess
* @param group
* @return list of rich members, empty list if there are no members in Group
* @throws InternalErrorException
* @throws PrivilegeException
* @throws GroupNotExistsException
*/ | Get all rich members of Group. Rich member object contains user, member, userExtSources | getRichMembers | {
"repo_name": "stavamichal/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/MembersManager.java",
"license": "bsd-2-clause",
"size": 57708
} | [
"cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException",
"cz.metacentrum.perun.core.api.exceptions.InternalErrorException",
"cz.metacentrum.perun.core.api.exceptions.PrivilegeException",
"java.util.List"
] | import cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import java.util.List; | import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*; | [
"cz.metacentrum.perun",
"java.util"
] | cz.metacentrum.perun; java.util; | 490,504 |
Object translateToFhir(T input, Map<String, Object> parameters); | Object translateToFhir(T input, Map<String, Object> parameters); | /**
* Translates something into a FHIR object
*
* @param input input data
* @return FHIR data
*/ | Translates something into a FHIR object | translateToFhir | {
"repo_name": "oehf/ipf",
"path": "commons/ihe/fhir/core/src/main/java/org/openehealth/ipf/commons/ihe/fhir/translation/ToFhirTranslator.java",
"license": "apache-2.0",
"size": 352
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,638,759 |
int add_partitions(List<Partition> partitions)
throws InvalidObjectException, AlreadyExistsException, MetaException, TException; | int add_partitions(List<Partition> partitions) throws InvalidObjectException, AlreadyExistsException, MetaException, TException; | /**
* Add partitions to the table.
*
* @param partitions
* The partitions to add
* @throws InvalidObjectException
* Could not find table to add to
* @throws AlreadyExistsException
* Partition already exists
* @throws MetaException
* Could not add part... | Add partitions to the table | add_partitions | {
"repo_name": "vergilchiu/hive",
"path": "metastore/src/java/org/apache/hadoop/hive/metastore/IMetaStoreClient.java",
"license": "apache-2.0",
"size": 64398
} | [
"java.util.List",
"org.apache.hadoop.hive.metastore.api.AlreadyExistsException",
"org.apache.hadoop.hive.metastore.api.InvalidObjectException",
"org.apache.hadoop.hive.metastore.api.MetaException",
"org.apache.hadoop.hive.metastore.api.Partition",
"org.apache.thrift.TException"
] | import java.util.List; import org.apache.hadoop.hive.metastore.api.AlreadyExistsException; import org.apache.hadoop.hive.metastore.api.InvalidObjectException; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.api.Partition; import org.apache.thrift.TException; | import java.util.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.thrift.*; | [
"java.util",
"org.apache.hadoop",
"org.apache.thrift"
] | java.util; org.apache.hadoop; org.apache.thrift; | 930,474 |
private WebResource getEwayWebResource() {
ClientConfig clientConfig = new DefaultClientConfig();
clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE);
Client client = Client.create(clientConfig);
client.addFilter(new HTTPBasicAuthFilter(APIKey, passwo... | WebResource function() { ClientConfig clientConfig = new DefaultClientConfig(); clientConfig.getFeatures().put(JSONConfiguration.FEATURE_POJO_MAPPING, Boolean.TRUE); Client client = Client.create(clientConfig); client.addFilter(new HTTPBasicAuthFilter(APIKey, password)); if (this.debug) { client.addFilter(new LoggingFi... | /**
* Fetches and configures a Web Resource to connect to eWAY
*
* @return A WebResource
*/ | Fetches and configures a Web Resource to connect to eWAY | getEwayWebResource | {
"repo_name": "eWAYPayment/eway-rapid-java",
"path": "src/main/java/com/eway/payment/rapid/sdk/RapidClientImpl.java",
"license": "mit",
"size": 19852
} | [
"com.eway.payment.rapid.sdk.util.RapidClientFilter",
"com.sun.jersey.api.client.Client",
"com.sun.jersey.api.client.WebResource",
"com.sun.jersey.api.client.config.ClientConfig",
"com.sun.jersey.api.client.config.DefaultClientConfig",
"com.sun.jersey.api.client.filter.HTTPBasicAuthFilter",
"com.sun.jers... | import com.eway.payment.rapid.sdk.util.RapidClientFilter; import com.sun.jersey.api.client.Client; import com.sun.jersey.api.client.WebResource; import com.sun.jersey.api.client.config.ClientConfig; import com.sun.jersey.api.client.config.DefaultClientConfig; import com.sun.jersey.api.client.filter.HTTPBasicAuthFilter;... | import com.eway.payment.rapid.sdk.util.*; import com.sun.jersey.api.client.*; import com.sun.jersey.api.client.config.*; import com.sun.jersey.api.client.filter.*; import com.sun.jersey.api.json.*; | [
"com.eway.payment",
"com.sun.jersey"
] | com.eway.payment; com.sun.jersey; | 835,290 |
public final int size()
{
if (tc.isEntryEnabled())
SibTr.entry(tc, "size");
int result = (m_tail >= m_head) ? (m_tail - m_head) : (m_array.length - m_head + m_tail);
if (tc.isEntryEnabled())
SibTr.exit(tc, "size", new Integer(result));
return result;
} | final int function() { if (tc.isEntryEnabled()) SibTr.entry(tc, "size"); int result = (m_tail >= m_head) ? (m_tail - m_head) : (m_array.length - m_head + m_tail); if (tc.isEntryEnabled()) SibTr.exit(tc, "size", new Integer(result)); return result; } | /**
* Return the number of elements in the queue.
*
* @return the number of elements in the queue.
*/ | Return the number of elements in the queue | size | {
"repo_name": "kgibm/open-liberty",
"path": "dev/com.ibm.ws.messaging.runtime/src/com/ibm/ws/sib/processor/utils/Queue.java",
"license": "epl-1.0",
"size": 5114
} | [
"com.ibm.ws.sib.utils.ras.SibTr"
] | import com.ibm.ws.sib.utils.ras.SibTr; | import com.ibm.ws.sib.utils.ras.*; | [
"com.ibm.ws"
] | com.ibm.ws; | 1,732,677 |
public static <E> HashSet<E> newHashSetWithCapacity(int capacity) {
return new HashSet<E>(capacity);
} | static <E> HashSet<E> function(int capacity) { return new HashSet<E>(capacity); } | /**
* Creates a {@code HashSet} instance, with a high enough "initial capacity"
* that it <i>should</i> hold {@code expectedSize} elements without growth.
* This behavior cannot be broadly guaranteed, but it is observed to be true
* for OpenJDK 1.6. It also can't be guaranteed that the method isn't
* ina... | Creates a HashSet instance, with a high enough "initial capacity" that it should hold expectedSize elements without growth. This behavior cannot be broadly guaranteed, but it is observed to be true for OpenJDK 1.6. It also can't be guaranteed that the method isn't inadvertently oversizing the returned set | newHashSetWithCapacity | {
"repo_name": "wswenyue/fresco",
"path": "fbcore/src/main/java/com/facebook/common/internal/Sets.java",
"license": "bsd-3-clause",
"size": 6346
} | [
"java.util.HashSet"
] | import java.util.HashSet; | import java.util.*; | [
"java.util"
] | java.util; | 1,046,301 |
protected Properties getReturnUrlParameters(LookupView lookupView, LookupForm lookupForm, Object dataObject) {
Properties props = new Properties();
props.put(KRADConstants.DISPATCH_REQUEST_PARAMETER, KRADConstants.RETURN_METHOD_TO_CALL);
if (StringUtils.isNotBlank(lookupForm.getReturnFo... | Properties function(LookupView lookupView, LookupForm lookupForm, Object dataObject) { Properties props = new Properties(); props.put(KRADConstants.DISPATCH_REQUEST_PARAMETER, KRADConstants.RETURN_METHOD_TO_CALL); if (StringUtils.isNotBlank(lookupForm.getReturnFormKey())) { props.put(UifParameters.FORM_KEY, lookupForm.... | /**
* Builds up a <code>Properties</code> object that will be used to provide the request parameters for the
* return URL link
*
* @param lookupView - lookup view instance containing lookup configuration
* @param lookupForm - lookup form instance containing the data
* @param dataObje... | Builds up a <code>Properties</code> object that will be used to provide the request parameters for the return URL link | getReturnUrlParameters | {
"repo_name": "ua-eas/ksd-kc5.2.1-rice2.3.6-ua",
"path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/lookup/LookupableImpl.java",
"license": "apache-2.0",
"size": 55401
} | [
"java.util.List",
"java.util.Map",
"java.util.Properties",
"org.apache.commons.lang.StringUtils",
"org.kuali.rice.krad.uif.UifParameters",
"org.kuali.rice.krad.uif.view.LookupView",
"org.kuali.rice.krad.util.KRADConstants",
"org.kuali.rice.krad.util.KRADUtils",
"org.kuali.rice.krad.web.form.LookupFo... | import java.util.List; import java.util.Map; import java.util.Properties; import org.apache.commons.lang.StringUtils; import org.kuali.rice.krad.uif.UifParameters; import org.kuali.rice.krad.uif.view.LookupView; import org.kuali.rice.krad.util.KRADConstants; import org.kuali.rice.krad.util.KRADUtils; import org.kuali.r... | import java.util.*; import org.apache.commons.lang.*; import org.kuali.rice.krad.uif.*; import org.kuali.rice.krad.uif.view.*; import org.kuali.rice.krad.util.*; import org.kuali.rice.krad.web.form.*; | [
"java.util",
"org.apache.commons",
"org.kuali.rice"
] | java.util; org.apache.commons; org.kuali.rice; | 2,748,354 |
@Generated
@CVariable()
@MappedReturn(ObjCStringMapper.class)
public static native String NSLinguisticTagSchemeTokenType(); | @CVariable() @MappedReturn(ObjCStringMapper.class) static native String function(); | /**
* This tag scheme classifies tokens according to their broad general type: word, punctuation, whitespace, etc.
*/ | This tag scheme classifies tokens according to their broad general type: word, punctuation, whitespace, etc | NSLinguisticTagSchemeTokenType | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/foundation/c/Foundation.java",
"license": "apache-2.0",
"size": 156135
} | [
"org.moe.natj.c.ann.CVariable",
"org.moe.natj.general.ann.MappedReturn",
"org.moe.natj.objc.map.ObjCStringMapper"
] | import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper; | import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*; | [
"org.moe.natj"
] | org.moe.natj; | 2,658,115 |
@Nonnull
protected final String getOakName(String jcrName) throws RepositoryException {
return getNamePathMapper().getOakName(jcrName);
} | final String function(String jcrName) throws RepositoryException { return getNamePathMapper().getOakName(jcrName); } | /**
* Returns the internal name for the specified JCR name.
*
* @param jcrName JCR node type name.
* @return the internal representation of the given JCR name.
* @throws javax.jcr.RepositoryException If there is no valid internal representation
* of the specified JCR name.
*/ | Returns the internal name for the specified JCR name | getOakName | {
"repo_name": "davidegiannella/jackrabbit-oak",
"path": "oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadOnlyNodeTypeManager.java",
"license": "apache-2.0",
"size": 15790
} | [
"javax.jcr.RepositoryException"
] | import javax.jcr.RepositoryException; | import javax.jcr.*; | [
"javax.jcr"
] | javax.jcr; | 2,467,496 |
@GET
@Path("{subjectKey}/{subject}/{configKey}")
@Produces(MediaType.APPLICATION_JSON)
@SuppressWarnings("unchecked")
public Response download(@PathParam("subjectKey") String subjectKey,
@PathParam("subject") String subject,
@PathParam("confi... | @Path(STR) @Produces(MediaType.APPLICATION_JSON) @SuppressWarnings(STR) Response function(@PathParam(STR) String subjectKey, @PathParam(STR) String subject, @PathParam(STR) String configKey) { NetworkConfigService service = get(NetworkConfigService.class); return ok(service.getConfig(service.getSubjectFactory(subjectKe... | /**
* Returns the network configuration for the specified subject and given
* configuration class.
*
* @param subjectKey subject class key
* @param subject subject key
* @param configKey configuration class key
* @return network configuration JSON
*/ | Returns the network configuration for the specified subject and given configuration class | download | {
"repo_name": "kuangrewawa/OnosFw",
"path": "web/api/src/main/java/org/onosproject/rest/resources/NetworkConfigWebResource.java",
"license": "apache-2.0",
"size": 10882
} | [
"javax.ws.rs.Path",
"javax.ws.rs.PathParam",
"javax.ws.rs.Produces",
"javax.ws.rs.core.MediaType",
"javax.ws.rs.core.Response",
"org.onosproject.incubator.net.config.NetworkConfigService"
] | import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.onosproject.incubator.net.config.NetworkConfigService; | import javax.ws.rs.*; import javax.ws.rs.core.*; import org.onosproject.incubator.net.config.*; | [
"javax.ws",
"org.onosproject.incubator"
] | javax.ws; org.onosproject.incubator; | 386,763 |
public int copyRecursiveTo(String fileMask, FilePath target) throws IOException, InterruptedException {
return copyRecursiveTo(fileMask,null,target);
} | int function(String fileMask, FilePath target) throws IOException, InterruptedException { return copyRecursiveTo(fileMask,null,target); } | /**
* Copies the files that match the given file mask to the specified target node.
*
* @param fileMask
* Ant GLOB pattern.
* String like "foo/bar/*.xml" Multiple patterns can be separated
* by ',', and whitespace can surround ',' (so that you can write
* "abc, def... | Copies the files that match the given file mask to the specified target node | copyRecursiveTo | {
"repo_name": "recena/jenkins",
"path": "core/src/main/java/hudson/FilePath.java",
"license": "mit",
"size": 134702
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 556,360 |
public static RuleAddedEvent createRuleAddedEvent(Rule rule, String source) {
String topic = buildTopic(RULE_ADDED_EVENT_TOPIC, rule);
String payload = serializePayload(rule);
return new RuleAddedEvent(topic, payload, source, rule);
} | static RuleAddedEvent function(Rule rule, String source) { String topic = buildTopic(RULE_ADDED_EVENT_TOPIC, rule); String payload = serializePayload(rule); return new RuleAddedEvent(topic, payload, source, rule); } | /**
* creates a rule added event
*
* @param rule
* @param source
* @return
*/ | creates a rule added event | createRuleAddedEvent | {
"repo_name": "marinmitev/smarthome",
"path": "bundles/automation/org.eclipse.smarthome.automation.api/src/main/java/org/eclipse/smarthome/automation/events/RuleEventFactory.java",
"license": "epl-1.0",
"size": 6072
} | [
"org.eclipse.smarthome.automation.Rule"
] | import org.eclipse.smarthome.automation.Rule; | import org.eclipse.smarthome.automation.*; | [
"org.eclipse.smarthome"
] | org.eclipse.smarthome; | 1,771,098 |
@ServiceMethod(returns = ReturnType.SINGLE)
SyncPoller<PollResult<VpnConnectionInner>, VpnConnectionInner> beginCreateOrUpdate(
String resourceGroupName,
String gatewayName,
String connectionName,
VpnConnectionInner vpnConnectionParameters); | @ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<VpnConnectionInner>, VpnConnectionInner> beginCreateOrUpdate( String resourceGroupName, String gatewayName, String connectionName, VpnConnectionInner vpnConnectionParameters); | /**
* Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection.
*
* @param resourceGroupName The resource group name of the VpnGateway.
* @param gatewayName The name of the gateway.
* @param connectionName The name of the connection.
* @pa... | Creates a vpn connection to a scalable vpn gateway if it doesn't exist else updates the existing connection | beginCreateOrUpdate | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/VpnConnectionsClient.java",
"license": "mit",
"size": 18821
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.polling.SyncPoller",
"com.azure.resourcemanager.network.fluent.models.VpnConnectionInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.models.VpnConnectionInner; | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.network.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 71,625 |
@Override
public void notifyChangeInHistory(UndoHistory history) {
((JMeterToolBar)toolbar).updateUndoRedoIcons(history.canUndo(), history.canRedo());
} | void function(UndoHistory history) { ((JMeterToolBar)toolbar).updateUndoRedoIcons(history.canUndo(), history.canRedo()); } | /**
* Called when history changes, it updates toolbar
*/ | Called when history changes, it updates toolbar | notifyChangeInHistory | {
"repo_name": "d0k1/jmeter",
"path": "src/core/org/apache/jmeter/gui/GuiPackage.java",
"license": "apache-2.0",
"size": 29206
} | [
"org.apache.jmeter.gui.util.JMeterToolBar"
] | import org.apache.jmeter.gui.util.JMeterToolBar; | import org.apache.jmeter.gui.util.*; | [
"org.apache.jmeter"
] | org.apache.jmeter; | 364,709 |
ToolbarDataProvider getToolbarDataProvider(); | ToolbarDataProvider getToolbarDataProvider(); | /**
* Grabs a reference to the toolbar data provider from the location bar.
* @return The {@link ToolbarDataProvider} currently in use by the
* {@link LocationBarLayout}.
*/ | Grabs a reference to the toolbar data provider from the location bar | getToolbarDataProvider | {
"repo_name": "endlessm/chromium-browser",
"path": "chrome/android/java/src/org/chromium/chrome/browser/omnibox/voice/VoiceRecognitionHandler.java",
"license": "bsd-3-clause",
"size": 20825
} | [
"org.chromium.chrome.browser.toolbar.ToolbarDataProvider"
] | import org.chromium.chrome.browser.toolbar.ToolbarDataProvider; | import org.chromium.chrome.browser.toolbar.*; | [
"org.chromium.chrome"
] | org.chromium.chrome; | 2,206,342 |
@Test
public void testSearchExistingNoReferral() throws Exception
{
SearchControls sCtrls = new SearchControls();
sCtrls.setReturningAttributes( new String[]{ "*" } );
sCtrls.setSearchScope( SearchControls.OBJECT_SCOPE );
NamingEnumeration<SearchResult> result = MNNC... | void function() throws Exception { SearchControls sCtrls = new SearchControls(); sCtrls.setReturningAttributes( new String[]{ "*" } ); sCtrls.setSearchScope( SearchControls.OBJECT_SCOPE ); NamingEnumeration<SearchResult> result = MNNCtx.search( STR, STR, sCtrls ); assertNotNull( result ); int nbRes = 0; while ( result.... | /**
* Test a search of an existing entry (not a referral).
*/ | Test a search of an existing entry (not a referral) | testSearchExistingNoReferral | {
"repo_name": "apache/directory-server",
"path": "core-integ/src/test/java/org/apache/directory/server/core/jndi/referral/SearchReferralIT.java",
"license": "apache-2.0",
"size": 14205
} | [
"javax.naming.NamingEnumeration",
"javax.naming.directory.SearchControls",
"javax.naming.directory.SearchResult",
"org.junit.jupiter.api.Assertions"
] | import javax.naming.NamingEnumeration; import javax.naming.directory.SearchControls; import javax.naming.directory.SearchResult; import org.junit.jupiter.api.Assertions; | import javax.naming.*; import javax.naming.directory.*; import org.junit.jupiter.api.*; | [
"javax.naming",
"org.junit.jupiter"
] | javax.naming; org.junit.jupiter; | 2,535,071 |
void unkeep() {
if (SanityManager.DEBUG) {
SanityManager.ASSERT(isKept());
}
keepCount--;
if (forRemove != null && keepCount == 1) {
// This entry is only kept by the thread waiting in
// unkeepForRemove(). Signal that the entry can be removed.
... | void unkeep() { if (SanityManager.DEBUG) { SanityManager.ASSERT(isKept()); } keepCount--; if (forRemove != null && keepCount == 1) { forRemove.signal(); } } | /**
* Decrement the keep count for this entry. An entry cannot be removed from
* the cache until its keep count is zero.
*/ | Decrement the keep count for this entry. An entry cannot be removed from the cache until its keep count is zero | unkeep | {
"repo_name": "papicella/snappy-store",
"path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/services/cache/CacheEntry.java",
"license": "apache-2.0",
"size": 12331
} | [
"com.pivotal.gemfirexd.internal.iapi.services.sanity.SanityManager"
] | import com.pivotal.gemfirexd.internal.iapi.services.sanity.SanityManager; | import com.pivotal.gemfirexd.internal.iapi.services.sanity.*; | [
"com.pivotal.gemfirexd"
] | com.pivotal.gemfirexd; | 2,377,575 |
private static Pair<ActionGraph, SortedMap<PathFragment, Artifact>>
constructActionGraphAndPathMap(
Iterable<ActionLookupValue> values,
ConcurrentMap<Action, ConflictException> badActionMap) throws InterruptedException {
MutableActionGraph actionGraph = new MapBasedActionGraph();
Con... | static Pair<ActionGraph, SortedMap<PathFragment, Artifact>> function( Iterable<ActionLookupValue> values, ConcurrentMap<Action, ConflictException> badActionMap) throws InterruptedException { MutableActionGraph actionGraph = new MapBasedActionGraph(); ConcurrentNavigableMap<PathFragment, Artifact> artifactPathMap = new ... | /**
* Simultaneously construct an action graph for all the actions in Skyframe and a map from
* {@link PathFragment}s to their respective {@link Artifact}s. We do this in a threadpool to save
* around 1.5 seconds on a mid-sized build versus a single-threaded operation.
*/ | Simultaneously construct an action graph for all the actions in Skyframe and a map from <code>PathFragment</code>s to their respective <code>Artifact</code>s. We do this in a threadpool to save around 1.5 seconds on a mid-sized build versus a single-threaded operation | constructActionGraphAndPathMap | {
"repo_name": "vt09/bazel",
"path": "src/main/java/com/google/devtools/build/lib/skyframe/SkyframeActionExecutor.java",
"license": "apache-2.0",
"size": 49890
} | [
"com.google.common.base.Throwables",
"com.google.common.util.concurrent.ThreadFactoryBuilder",
"com.google.devtools.build.lib.actions.Action",
"com.google.devtools.build.lib.actions.ActionGraph",
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.actions.MapBasedActionGraph",... | import com.google.common.base.Throwables; import com.google.common.util.concurrent.ThreadFactoryBuilder; import com.google.devtools.build.lib.actions.Action; import com.google.devtools.build.lib.actions.ActionGraph; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.actions.MapB... | import com.google.common.base.*; import com.google.common.util.concurrent.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.concurrent.*; import com.google.devtools.build.lib.util.*; import com.google.devtools.build.lib.vfs.*; import java.util.*; import java.util.concurrent.*; | [
"com.google.common",
"com.google.devtools",
"java.util"
] | com.google.common; com.google.devtools; java.util; | 2,732,989 |
protected List<String> getSmtpAddresses() {
return smtpAddresses;
} | List<String> function() { return smtpAddresses; } | /**
* Gets the SMTP addresses.
* @return the SMTP addresses
*/ | Gets the SMTP addresses | getSmtpAddresses | {
"repo_name": "Sealinune/ews-java-api",
"path": "src/main/java/microsoft/exchange/webservices/data/autodiscover/request/GetUserSettingsRequest.java",
"license": "mit",
"size": 10864
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 338,080 |
public void setHealthCategory(final HealthStatusHealthCategoryEnum healthCategory) {
this.healthCategory = healthCategory;
} | void function(final HealthStatusHealthCategoryEnum healthCategory) { this.healthCategory = healthCategory; } | /**
* Set the value related to the column: healthCategory.
* @param healthCategory the healthCategory value you wish to set
*/ | Set the value related to the column: healthCategory | setHealthCategory | {
"repo_name": "servinglynk/servinglynk-hmis",
"path": "hmis-model-v2015/src/main/java/com/servinglynk/hmis/warehouse/model/v2015/HealthStatus.java",
"license": "mpl-2.0",
"size": 13318
} | [
"com.servinglynk.hmis.warehouse.enums.HealthStatusHealthCategoryEnum"
] | import com.servinglynk.hmis.warehouse.enums.HealthStatusHealthCategoryEnum; | import com.servinglynk.hmis.warehouse.enums.*; | [
"com.servinglynk.hmis"
] | com.servinglynk.hmis; | 2,516,636 |
void endHandler(Handler<Void> completedHandler); | void endHandler(Handler<Void> completedHandler); | /**
* When completed.
*
* @param completedHandler
*/ | When completed | endHandler | {
"repo_name": "wangmb/apiman",
"path": "gateway/platforms/vertx/src/main/java/io/apiman/gateway/vertx/worker/Registrant.java",
"license": "apache-2.0",
"size": 1147
} | [
"org.vertx.java.core.Handler"
] | import org.vertx.java.core.Handler; | import org.vertx.java.core.*; | [
"org.vertx.java"
] | org.vertx.java; | 1,436,886 |
public void testTwoTransactionsShouldSucceed() throws Exception {
TransactionAttribute txatt = new DefaultTransactionAttribute();
MapTransactionAttributeSource tas1 = new MapTransactionAttributeSource();
tas1.register(getNameMethod, txatt);
MapTransactionAttributeSource tas2 = new MapTransactionAttribu... | void function() throws Exception { TransactionAttribute txatt = new DefaultTransactionAttribute(); MapTransactionAttributeSource tas1 = new MapTransactionAttributeSource(); tas1.register(getNameMethod, txatt); MapTransactionAttributeSource tas2 = new MapTransactionAttributeSource(); tas2.register(setNameMethod, txatt);... | /**
* Check that two transactions are created and committed.
*/ | Check that two transactions are created and committed | testTwoTransactionsShouldSucceed | {
"repo_name": "codeApeFromChina/resource",
"path": "frame_packages/java_libs/spring-2.5.6-src/test/org/springframework/transaction/interceptor/AbstractTransactionAspectTests.java",
"license": "unlicense",
"size": 20641
} | [
"org.easymock.MockControl",
"org.springframework.beans.ITestBean",
"org.springframework.beans.TestBean",
"org.springframework.transaction.PlatformTransactionManager",
"org.springframework.transaction.TransactionStatus"
] | import org.easymock.MockControl; import org.springframework.beans.ITestBean; import org.springframework.beans.TestBean; import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.TransactionStatus; | import org.easymock.*; import org.springframework.beans.*; import org.springframework.transaction.*; | [
"org.easymock",
"org.springframework.beans",
"org.springframework.transaction"
] | org.easymock; org.springframework.beans; org.springframework.transaction; | 779,014 |
public OutputFormat getOutputFormat() {
return ReflectionUtils.newInstance(getClass("mapred.output.format.class",
TextOutputFormat.class,
OutputFormat.class),
... | OutputFormat function() { return ReflectionUtils.newInstance(getClass(STR, TextOutputFormat.class, OutputFormat.class), this); } | /**
* Get the {@link OutputFormat} implementation for the map-reduce job,
* defaults to {@link TextOutputFormat} if not specified explicity.
*
* @return the {@link OutputFormat} implementation for the map-reduce job.
*/ | Get the <code>OutputFormat</code> implementation for the map-reduce job, defaults to <code>TextOutputFormat</code> if not specified explicity | getOutputFormat | {
"repo_name": "Microsoft-CISL/hadoop-prototype",
"path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/JobConf.java",
"license": "apache-2.0",
"size": 69457
} | [
"org.apache.hadoop.util.ReflectionUtils"
] | import org.apache.hadoop.util.ReflectionUtils; | import org.apache.hadoop.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 775,485 |
public void setRelatedPlace(Place location) {
relatedPlace = location;
} | void function(Place location) { relatedPlace = location; } | /**
* Sets the related place.
*
* @param location the new related place
*/ | Sets the related place | setRelatedPlace | {
"repo_name": "OpenSextant/Xponents",
"path": "Core/src/main/java/org/opensextant/extractors/xcoord/GeocoordMatch.java",
"license": "apache-2.0",
"size": 24808
} | [
"org.opensextant.data.Place"
] | import org.opensextant.data.Place; | import org.opensextant.data.*; | [
"org.opensextant.data"
] | org.opensextant.data; | 85,847 |
public String createToken(TokenCategory tokenCategory, String type,
AuthPrincipalInfo principal, Map<String, Object> state, long duration)
throws Exception; | String function(TokenCategory tokenCategory, String type, AuthPrincipalInfo principal, Map<String, Object> state, long duration) throws Exception; | /**
* Create the token with the given duration. A duration value of 0 equals the default value specified in the properties
* It is not possible to specify a duration greater than the maximum system allowed duration.
*/ | Create the token with the given duration. A duration value of 0 equals the default value specified in the properties It is not possible to specify a duration greater than the maximum system allowed duration | createToken | {
"repo_name": "pgorla/usergrid",
"path": "services/src/main/java/org/usergrid/security/tokens/TokenService.java",
"license": "apache-2.0",
"size": 1523
} | [
"java.util.Map",
"org.usergrid.security.AuthPrincipalInfo"
] | import java.util.Map; import org.usergrid.security.AuthPrincipalInfo; | import java.util.*; import org.usergrid.security.*; | [
"java.util",
"org.usergrid.security"
] | java.util; org.usergrid.security; | 641,567 |
public AnkiDb getDb() {
return mDb;
} | AnkiDb function() { return mDb; } | /**
* Getters/Setters ********************************************************** *************************************
*/ | Getters/Setters ********************************************************** | getDb | {
"repo_name": "patrick91/Anki-Android",
"path": "AnkiDroid/src/main/java/com/ichi2/libanki/Collection.java",
"license": "gpl-3.0",
"size": 57915
} | [
"com.ichi2.anki.AnkiDb"
] | import com.ichi2.anki.AnkiDb; | import com.ichi2.anki.*; | [
"com.ichi2.anki"
] | com.ichi2.anki; | 853,876 |
public final MetaProperty<List<D>> documents() {
return _documents;
} | final MetaProperty<List<D>> function() { return _documents; } | /**
* The meta-property for the {@code documents} property.
* @return the meta-property, not null
*/ | The meta-property for the documents property | documents | {
"repo_name": "McLeodMoores/starling",
"path": "projects/master/src/main/java/com/opengamma/master/AbstractDocumentsResult.java",
"license": "apache-2.0",
"size": 9351
} | [
"java.util.List",
"org.joda.beans.MetaProperty"
] | import java.util.List; import org.joda.beans.MetaProperty; | import java.util.*; import org.joda.beans.*; | [
"java.util",
"org.joda.beans"
] | java.util; org.joda.beans; | 2,425,959 |
@Multipart
@POST("product/mark")
Call<MarkDetail> markProduct(@Part("userID") RequestBody userID, @Part("scanID") RequestBody scanID, @Part("name") RequestBody name, @Part("currency") RequestBody currency, @Part("price") RequestBody price,
@Part("quantity") RequestBody quant... | @POST(STR) Call<MarkDetail> markProduct(@Part(STR) RequestBody userID, @Part(STR) RequestBody scanID, @Part("name") RequestBody name, @Part(STR) RequestBody currency, @Part("price") RequestBody price, @Part(STR) RequestBody quantity, @Part(STR) RequestBody photoURL, @Part(STR) RequestBody description, @Part(STR) Reques... | /**
* Multipart rendition of callback http://stackoverflow.com/questions/34562950/post-multipart-form-data-using-retrofit-2-0-including-image
* @Header("Authorization") String authorization,
* @param userID
* @param scanID
* @param name
* @param currency
* @param price
* @param q... | Multipart rendition of callback HREF | markProduct | {
"repo_name": "Aeonitis/GW-Android",
"path": "app/src/main/java/com/gw/ctrl/rest/ApiInterface.java",
"license": "apache-2.0",
"size": 3106
} | [
"com.gw.model.rest.MarkDetail"
] | import com.gw.model.rest.MarkDetail; | import com.gw.model.rest.*; | [
"com.gw.model"
] | com.gw.model; | 1,156,481 |
private void onDataRead(int streamId, ByteBuf data, int padding, boolean endOfStream) {
flowControlPing().onDataRead(data.readableBytes(), padding);
NettyClientStream.TransportState stream = clientStream(requireHttp2Stream(streamId));
stream.transportDataReceived(data, endOfStream);
} | void function(int streamId, ByteBuf data, int padding, boolean endOfStream) { flowControlPing().onDataRead(data.readableBytes(), padding); NettyClientStream.TransportState stream = clientStream(requireHttp2Stream(streamId)); stream.transportDataReceived(data, endOfStream); } | /**
* Handler for an inbound HTTP/2 DATA frame.
*/ | Handler for an inbound HTTP/2 DATA frame | onDataRead | {
"repo_name": "anuraaga/grpc-java",
"path": "netty/src/main/java/io/grpc/netty/NettyClientHandler.java",
"license": "bsd-3-clause",
"size": 26101
} | [
"io.netty.buffer.ByteBuf"
] | import io.netty.buffer.ByteBuf; | import io.netty.buffer.*; | [
"io.netty.buffer"
] | io.netty.buffer; | 1,720,706 |
public Where<ModelClass> groupBy(QueryBuilder groupBy) {
this.groupBy = groupBy.getQuery();
return this;
} | Where<ModelClass> function(QueryBuilder groupBy) { this.groupBy = groupBy.getQuery(); return this; } | /**
* Defines a SQL GROUP BY statement without the GROUP BY.
*
* @param groupBy
* @return
*/ | Defines a SQL GROUP BY statement without the GROUP BY | groupBy | {
"repo_name": "dantman/DBFlow",
"path": "DBFlow/src/main/java/com/raizlabs/android/dbflow/sql/language/Where.java",
"license": "mit",
"size": 11810
} | [
"com.raizlabs.android.dbflow.sql.QueryBuilder"
] | import com.raizlabs.android.dbflow.sql.QueryBuilder; | import com.raizlabs.android.dbflow.sql.*; | [
"com.raizlabs.android"
] | com.raizlabs.android; | 274,943 |
private Document checkingParsingItem(ItemFull item) {
String messageGen = "";
String messageCont = "";
boolean isError = false;
// check universe exists
String universeID = item.getUniverse();
if(!DBH.getInstance().universeStillExists(universeID)) {
messageGen = "The universe does not exist";
m... | Document function(ItemFull item) { String messageGen = STRSTRThe universe does not existSTRThe universe is not validSTRThe name of the item is already takenSTRThe name of the item is already takenSTRcheckingParsingItemSTRnameSTRuniverseSTRdescriptionSTRimageSTRcriterionModelSTRvalueSTRcategoryModelSTRcriteriaSTRcategor... | /**
* Checking and parsing item before add/update.
*
* @param item The item
*
* @return The document parsed/checked
*/ | Checking and parsing item before add/update | checkingParsingItem | {
"repo_name": "gaelfoppolo/locomotor",
"path": "src/locomotor/core/DBH.java",
"license": "gpl-3.0",
"size": 42395
} | [
"org.bson.Document"
] | import org.bson.Document; | import org.bson.*; | [
"org.bson"
] | org.bson; | 405,434 |
public static CollectionInfoCompat obtain(int rowCount, int columnCount,
boolean hierarchical) {
if (Build.VERSION.SDK_INT >= 19) {
return new CollectionInfoCompat(AccessibilityNodeInfo.CollectionInfo.obtain(
rowCount, columnCount, hierarchical... | static CollectionInfoCompat function(int rowCount, int columnCount, boolean hierarchical) { if (Build.VERSION.SDK_INT >= 19) { return new CollectionInfoCompat(AccessibilityNodeInfo.CollectionInfo.obtain( rowCount, columnCount, hierarchical)); } else { return new CollectionInfoCompat(null); } } CollectionInfoCompat(Obje... | /**
* Returns a cached instance if such is available otherwise a new one.
*
* @param rowCount The number of rows, or -1 if count is unknown.
* @param columnCount The number of columns , or -1 if count is unknown.
* @param hierarchical Whether the collection is hierarchical.
... | Returns a cached instance if such is available otherwise a new one | obtain | {
"repo_name": "AndroidX/androidx",
"path": "core/core/src/main/java/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.java",
"license": "apache-2.0",
"size": 160272
} | [
"android.os.Build",
"android.view.accessibility.AccessibilityNodeInfo"
] | import android.os.Build; import android.view.accessibility.AccessibilityNodeInfo; | import android.os.*; import android.view.accessibility.*; | [
"android.os",
"android.view"
] | android.os; android.view; | 10,899 |
protected TechSet techSetWithout(Tech... techs) {
TechSet techSet = new TechSet(TechSet.getAllTech());
if (techs == null || techs.length == 0) {
return techSet;
}
for (Tech tech : techs) {
techSet.exclude(tech);
}
return techSet;
} | TechSet function(Tech... techs) { TechSet techSet = new TechSet(TechSet.getAllTech()); if (techs == null techs.length == 0) { return techSet; } for (Tech tech : techs) { techSet.exclude(tech); } return techSet; } | /**
* Returns a {@code TechSet} with all technologies except the given ones.
*
* @param techs the technologies to be excluded from the {@code TechSet}.
* @return a {@code TechSet} without the given technologies.
*/ | Returns a TechSet with all technologies except the given ones | techSetWithout | {
"repo_name": "secdec/zap-extensions",
"path": "testutils/src/main/java/org/zaproxy/zap/testutils/TestUtils.java",
"license": "apache-2.0",
"size": 23982
} | [
"org.zaproxy.zap.model.Tech",
"org.zaproxy.zap.model.TechSet"
] | import org.zaproxy.zap.model.Tech; import org.zaproxy.zap.model.TechSet; | import org.zaproxy.zap.model.*; | [
"org.zaproxy.zap"
] | org.zaproxy.zap; | 2,620,077 |
public InitParamType<PortletType<T>> getOrCreateInitParam()
{
List<Node> nodeList = childNode.get("init-param");
if (nodeList != null && nodeList.size() > 0)
{
return new InitParamTypeImpl<PortletType<T>>(this, "init-param", childNode, nodeList.get(0));
}
return createInitP... | InitParamType<PortletType<T>> function() { List<Node> nodeList = childNode.get(STR); if (nodeList != null && nodeList.size() > 0) { return new InitParamTypeImpl<PortletType<T>>(this, STR, childNode, nodeList.get(0)); } return createInitParam(); } | /**
* If not already created, a new <code>init-param</code> element will be created and returned.
* Otherwise, the first existing <code>init-param</code> element will be returned.
* @return the instance defined for the element <code>init-param</code>
*/ | If not already created, a new <code>init-param</code> element will be created and returned. Otherwise, the first existing <code>init-param</code> element will be returned | getOrCreateInitParam | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/portletapp20/PortletTypeImpl.java",
"license": "epl-1.0",
"size": 33279
} | [
"java.util.List",
"org.jboss.shrinkwrap.descriptor.api.portletapp20.InitParamType",
"org.jboss.shrinkwrap.descriptor.api.portletapp20.PortletType",
"org.jboss.shrinkwrap.descriptor.spi.node.Node"
] | import java.util.List; import org.jboss.shrinkwrap.descriptor.api.portletapp20.InitParamType; import org.jboss.shrinkwrap.descriptor.api.portletapp20.PortletType; import org.jboss.shrinkwrap.descriptor.spi.node.Node; | import java.util.*; import org.jboss.shrinkwrap.descriptor.api.portletapp20.*; import org.jboss.shrinkwrap.descriptor.spi.node.*; | [
"java.util",
"org.jboss.shrinkwrap"
] | java.util; org.jboss.shrinkwrap; | 1,580,421 |
public static Bitmap byteToBitmap(byte[] bytes) {
Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, null);
return bitmap;
}
| static Bitmap function(byte[] bytes) { Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, null); return bitmap; } | /**
* byte[] -> Bitmap
*
* @param bytes
* @return
*/ | byte[] -> Bitmap | byteToBitmap | {
"repo_name": "54cgt/weixin",
"path": "微信/src/net/cgt/weixin/utils/AppUtil.java",
"license": "apache-2.0",
"size": 15847
} | [
"android.graphics.Bitmap",
"android.graphics.BitmapFactory"
] | import android.graphics.Bitmap; import android.graphics.BitmapFactory; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 1,458,922 |
@SuppressWarnings("unchecked")
public PutIndexTemplateRequest source(Map<String, Object> templateSource) {
Map<String, Object> source = templateSource;
for (Map.Entry<String, Object> entry : source.entrySet()) {
String name = entry.getKey();
if (name.equals("index_pattern... | @SuppressWarnings(STR) PutIndexTemplateRequest function(Map<String, Object> templateSource) { Map<String, Object> source = templateSource; for (Map.Entry<String, Object> entry : source.entrySet()) { String name = entry.getKey(); if (name.equals(STR)) { if(entry.getValue() instanceof String) { patterns(Collections.singl... | /**
* The template source definition.
*/ | The template source definition | source | {
"repo_name": "nknize/elasticsearch",
"path": "client/rest-high-level/src/main/java/org/elasticsearch/client/indices/PutIndexTemplateRequest.java",
"license": "apache-2.0",
"size": 15082
} | [
"java.util.Collections",
"java.util.List",
"java.util.Map",
"java.util.stream.Collectors",
"org.elasticsearch.ElasticsearchParseException",
"org.elasticsearch.common.xcontent.support.XContentMapValues"
] | import java.util.Collections; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import org.elasticsearch.ElasticsearchParseException; import org.elasticsearch.common.xcontent.support.XContentMapValues; | import java.util.*; import java.util.stream.*; import org.elasticsearch.*; import org.elasticsearch.common.xcontent.support.*; | [
"java.util",
"org.elasticsearch",
"org.elasticsearch.common"
] | java.util; org.elasticsearch; org.elasticsearch.common; | 1,149,503 |
@Override
public Mediation getApiSpecificMediationPolicy(String apiResourcePath, String mediationPolicyId)
throws APIManagementException {
//Get registry resource correspond to given policy identifier
Resource mediationResource = getApiSpecificMediationResourceFromUuid(mediationPolic... | Mediation function(String apiResourcePath, String mediationPolicyId) throws APIManagementException { Resource mediationResource = getApiSpecificMediationResourceFromUuid(mediationPolicyId, apiResourcePath); Mediation mediation = null; if (mediationResource != null) { try { String contentString = IOUtils.toString(mediat... | /**
* Returns Mediation policy specify by given identifier
*
* @param apiResourcePath registry path to the API resource
* @param mediationPolicyId mediation policy identifier
* @return Mediation object contains details of the mediation policy or null
*/ | Returns Mediation policy specify by given identifier | getApiSpecificMediationPolicy | {
"repo_name": "pubudu538/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/AbstractAPIManager.java",
"license": "apache-2.0",
"size": 165292
} | [
"java.io.IOException",
"javax.xml.namespace.QName",
"javax.xml.stream.XMLStreamException",
"org.apache.axiom.om.OMAttribute",
"org.apache.axiom.om.OMElement",
"org.apache.axiom.om.util.AXIOMUtil",
"org.apache.commons.io.IOUtils",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.... | import java.io.IOException; import javax.xml.namespace.QName; import javax.xml.stream.XMLStreamException; import org.apache.axiom.om.OMAttribute; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.util.AXIOMUtil; import org.apache.commons.io.IOUtils; import org.wso2.carbon.apimgt.api.APIManagementExceptio... | import java.io.*; import javax.xml.namespace.*; import javax.xml.stream.*; import org.apache.axiom.om.*; import org.apache.axiom.om.util.*; import org.apache.commons.io.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.registry.core.*; import org.wso2.carbon.regis... | [
"java.io",
"javax.xml",
"org.apache.axiom",
"org.apache.commons",
"org.wso2.carbon"
] | java.io; javax.xml; org.apache.axiom; org.apache.commons; org.wso2.carbon; | 223,693 |
public static MimeType findByPk(long mtId) throws DatabaseException {
log.debug("findByPk({})", mtId);
Session session = null;
Transaction tx = null;
try {
session = HibernateUtil.getSessionFactory().openSession();
tx = session.beginTransaction();
MimeType ret = (MimeType) session.load(MimeType.c... | static MimeType function(long mtId) throws DatabaseException { log.debug(STR, mtId); Session session = null; Transaction tx = null; try { session = HibernateUtil.getSessionFactory().openSession(); tx = session.beginTransaction(); MimeType ret = (MimeType) session.load(MimeType.class, mtId); Hibernate.initialize(ret); H... | /**
* Find by pk
*/ | Find by pk | findByPk | {
"repo_name": "papamas/DMS-KANGREG-XI-MANADO",
"path": "src/main/java/com/openkm/dao/MimeTypeDAO.java",
"license": "gpl-3.0",
"size": 7269
} | [
"com.openkm.core.DatabaseException",
"com.openkm.dao.bean.MimeType",
"org.hibernate.Hibernate",
"org.hibernate.HibernateException",
"org.hibernate.Session",
"org.hibernate.Transaction"
] | import com.openkm.core.DatabaseException; import com.openkm.dao.bean.MimeType; import org.hibernate.Hibernate; import org.hibernate.HibernateException; import org.hibernate.Session; import org.hibernate.Transaction; | import com.openkm.core.*; import com.openkm.dao.bean.*; import org.hibernate.*; | [
"com.openkm.core",
"com.openkm.dao",
"org.hibernate"
] | com.openkm.core; com.openkm.dao; org.hibernate; | 1,209,238 |
public void setPriority(ObjectPriority priority)
{
this.priority = priority;
} | void function(ObjectPriority priority) { this.priority = priority; } | /**
* Set the priority of the communication object.
*
* @param priority the priority to set
*/ | Set the priority of the communication object | setPriority | {
"repo_name": "Paolo-Maffei/freebus-fts",
"path": "freebus-fts-persistence/src/main/java/org/freebus/fts/products/CommunicationObject.java",
"license": "gpl-3.0",
"size": 8719
} | [
"org.freebus.fts.common.types.ObjectPriority"
] | import org.freebus.fts.common.types.ObjectPriority; | import org.freebus.fts.common.types.*; | [
"org.freebus.fts"
] | org.freebus.fts; | 1,673,714 |
public static ImmutableEnvelope castOrCopy(final Envelope envelope) {
if (envelope == null || envelope instanceof ImmutableEnvelope) {
return (ImmutableEnvelope) envelope;
}
return new ImmutableEnvelope(envelope);
} | static ImmutableEnvelope function(final Envelope envelope) { if (envelope == null envelope instanceof ImmutableEnvelope) { return (ImmutableEnvelope) envelope; } return new ImmutableEnvelope(envelope); } | /**
* Returns the given envelope as an {@code ImmutableEnvelope} instance. If the given envelope
* is already an instance of {@code ImmutableEnvelope}, then it is returned unchanged.
* Otherwise the coordinate values and the CRS of the given envelope are copied in a
* new envelope.
*
* @pa... | Returns the given envelope as an ImmutableEnvelope instance. If the given envelope is already an instance of ImmutableEnvelope, then it is returned unchanged. Otherwise the coordinate values and the CRS of the given envelope are copied in a new envelope | castOrCopy | {
"repo_name": "Geomatys/sis",
"path": "core/sis-referencing/src/main/java/org/apache/sis/geometry/ImmutableEnvelope.java",
"license": "apache-2.0",
"size": 8153
} | [
"org.opengis.geometry.Envelope"
] | import org.opengis.geometry.Envelope; | import org.opengis.geometry.*; | [
"org.opengis.geometry"
] | org.opengis.geometry; | 2,296,857 |
@ApiModelProperty(value = "")
public KeyTypeEnum getKeyType() {
return keyType;
} | @ApiModelProperty(value = "") KeyTypeEnum function() { return keyType; } | /**
* Get keyType
* @return keyType
**/ | Get keyType | getKeyType | {
"repo_name": "Minoli/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.store/src/gen/java/org/wso2/carbon/apimgt/rest/api/store/dto/ApplicationKeyMappingRequestDTO.java",
"license": "apache-2.0",
"size": 3789
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 2,041,344 |
public void setInetAddress(final String key, final InetAddress val) {
setProperty(key, val.getHostAddress());
} | void function(final String key, final InetAddress val) { setProperty(key, val.getHostAddress()); } | /**
* Set <code>InetAddress</code>.
*/ | Set <code>InetAddress</code> | setInetAddress | {
"repo_name": "xuse/ef-others",
"path": "common-net/src/main/java/jef/net/ftpserver/util/BaseProperties.java",
"license": "apache-2.0",
"size": 10435
} | [
"java.net.InetAddress"
] | import java.net.InetAddress; | import java.net.*; | [
"java.net"
] | java.net; | 2,093,376 |
List<ReportTable> getReportTablesByUid( List<String> uids );
| List<ReportTable> getReportTablesByUid( List<String> uids ); | /**
* Retrieves ReportTables with the given uids.
*
* @param uids the list of uids.
* @return a list of ReportTables.
*/ | Retrieves ReportTables with the given uids | getReportTablesByUid | {
"repo_name": "steffeli/inf5750-tracker-capture",
"path": "dhis-api/src/main/java/org/hisp/dhis/reporttable/ReportTableService.java",
"license": "bsd-3-clause",
"size": 5386
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,465 |
protected void killProcessTree(@NotNull final Process process) {
if (ApplicationManager.getApplication().isUnitTestMode()) {
killProcessTreeSync(process);
}
else {
executeTask(() -> killProcessTreeSync(process));
}
} | void function(@NotNull final Process process) { if (ApplicationManager.getApplication().isUnitTestMode()) { killProcessTreeSync(process); } else { executeTask(() -> killProcessTreeSync(process)); } } | /**
* Kills the whole process tree asynchronously.
* As a potentially time-consuming operation, it's executed asynchronously on a pooled thread.
*
* @param process Process
*/ | Kills the whole process tree asynchronously. As a potentially time-consuming operation, it's executed asynchronously on a pooled thread | killProcessTree | {
"repo_name": "paplorinc/intellij-community",
"path": "platform/platform-api/src/com/intellij/execution/process/OSProcessHandler.java",
"license": "apache-2.0",
"size": 8043
} | [
"com.intellij.openapi.application.ApplicationManager",
"org.jetbrains.annotations.NotNull"
] | import com.intellij.openapi.application.ApplicationManager; import org.jetbrains.annotations.NotNull; | import com.intellij.openapi.application.*; import org.jetbrains.annotations.*; | [
"com.intellij.openapi",
"org.jetbrains.annotations"
] | com.intellij.openapi; org.jetbrains.annotations; | 2,667,001 |
private interface FileNameBasedDecompressingChannelFactory
extends DecompressingChannelFactory {
ReadableByteChannel createDecompressingChannel(String fileName, ReadableByteChannel channel)
throws IOException; | interface FileNameBasedDecompressingChannelFactory extends DecompressingChannelFactory { ReadableByteChannel function(String fileName, ReadableByteChannel channel) throws IOException; | /**
* Given a channel, create a channel that decompresses the content read from the channel.
*/ | Given a channel, create a channel that decompresses the content read from the channel | createDecompressingChannel | {
"repo_name": "amitsela/incubator-beam",
"path": "sdks/java/core/src/main/java/org/apache/beam/sdk/io/CompressedSource.java",
"license": "apache-2.0",
"size": 21672
} | [
"java.io.IOException",
"java.nio.channels.ReadableByteChannel"
] | import java.io.IOException; import java.nio.channels.ReadableByteChannel; | import java.io.*; import java.nio.channels.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 1,612,673 |
@Nonnull
public PsiQuery siblings(@Nonnull final String name)
{
return siblings(PsiNamedElement.class, name);
} | PsiQuery function(@Nonnull final String name) { return siblings(PsiNamedElement.class, name); } | /**
* Filter siblings by name
*/ | Filter siblings by name | siblings | {
"repo_name": "consulo/consulo-python",
"path": "python-impl/src/main/java/com/jetbrains/python/psi/PsiQuery.java",
"license": "apache-2.0",
"size": 12033
} | [
"com.intellij.psi.PsiNamedElement",
"javax.annotation.Nonnull"
] | import com.intellij.psi.PsiNamedElement; import javax.annotation.Nonnull; | import com.intellij.psi.*; import javax.annotation.*; | [
"com.intellij.psi",
"javax.annotation"
] | com.intellij.psi; javax.annotation; | 2,644,041 |
public static void generate(InterchangeWriter<InterchangeStudentDiscipline> iWriter) {
long startTime = System.currentTimeMillis();
int total = writeEntitiesToInterchange(iWriter);
System.out.println("generated " + total + " InterchangeStudentDiscipline entries in: "
+ (Sys... | static void function(InterchangeWriter<InterchangeStudentDiscipline> iWriter) { long startTime = System.currentTimeMillis(); int total = writeEntitiesToInterchange(iWriter); System.out.println(STR + total + STR + (System.currentTimeMillis() - startTime)); } | /**
* Sets up a new Student Discipline Interchange and populates it.
*
* @return
*/ | Sets up a new Student Discipline Interchange and populates it | generate | {
"repo_name": "inbloom/secure-data-service",
"path": "tools/data-tools/src/org/slc/sli/test/generators/interchange/InterchangeStudentDisciplineGenerator.java",
"license": "apache-2.0",
"size": 5529
} | [
"org.slc.sli.test.edfi.entities.InterchangeStudentDiscipline",
"org.slc.sli.test.utils.InterchangeWriter"
] | import org.slc.sli.test.edfi.entities.InterchangeStudentDiscipline; import org.slc.sli.test.utils.InterchangeWriter; | import org.slc.sli.test.edfi.entities.*; import org.slc.sli.test.utils.*; | [
"org.slc.sli"
] | org.slc.sli; | 2,499,976 |
public void setMavenProject( Object thisProject )
{
this.project = (MavenProject) thisProject;
} | void function( Object thisProject ) { this.project = (MavenProject) thisProject; } | /**
* Sets the project.
*
* @param thisProject The project to set
*/ | Sets the project | setMavenProject | {
"repo_name": "mcculls/maven-plugins",
"path": "maven-changes-plugin/src/main/java/org/apache/maven/plugins/jira/AbstractJiraDownloader.java",
"license": "apache-2.0",
"size": 11730
} | [
"org.apache.maven.project.MavenProject"
] | import org.apache.maven.project.MavenProject; | import org.apache.maven.project.*; | [
"org.apache.maven"
] | org.apache.maven; | 1,225,028 |
public void reportCB()
{
Set<String> theErrorTypes = theErrors.keySet();
if(theErrorTypes.size() < 1)
{
log.debug("No Errors parsing file ");
}
else
{
Iterator<String> iter = theErrorTypes.iterator();
while(iter.hasNext())
{
String error = iter.next();
Integer count = theErrors.get(e... | void function() { Set<String> theErrorTypes = theErrors.keySet(); if(theErrorTypes.size() < 1) { log.debug(STR); } else { Iterator<String> iter = theErrorTypes.iterator(); while(iter.hasNext()) { String error = iter.next(); Integer count = theErrors.get(error); log.debug(STR + error + STR + count + STR); } } } | /**
* Service Method to output the Errors. Might be used as a Template for
* futher methods
*/ | Service Method to output the Errors. Might be used as a Template for futher methods | reportCB | {
"repo_name": "lexml/lexml-swing-editorhtml",
"path": "src/main/java/com/hexidec/ekit/component/EkitStandardParserCallback.java",
"license": "lgpl-2.1",
"size": 1672
} | [
"java.util.Iterator",
"java.util.Set"
] | import java.util.Iterator; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,506,348 |
private void setAnimationParams(AnimationParams params) {
if (params == null) { throw new IllegalArgumentException(
"params can't be null"); }
if (animateTimer != null) {
animateTimer.stop();
}
animationParams = params;
animateTimer = new Timer(ani... | void function(AnimationParams params) { if (params == null) { throw new IllegalArgumentException( STR); } if (animateTimer != null) { animateTimer.stop(); } animationParams = params; animateTimer = new Timer(animationParams.waitTime, animator); animateTimer.setInitialDelay(0); } | /**
* Sets the parameters controlling the animation
*
* @param params
* @throws IllegalArgumentException
* if params is null
*/ | Sets the parameters controlling the animation | setAnimationParams | {
"repo_name": "sing-group/aibench-project",
"path": "aibench-pluginmanager/src/main/java/org/jdesktop/swingx/JXCollapsiblePane.java",
"license": "lgpl-3.0",
"size": 36137
} | [
"javax.swing.Timer"
] | import javax.swing.Timer; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 905,906 |
@ApiModelProperty(example = "null", value = "average_price number")
public Float getAveragePrice() {
return averagePrice;
} | @ApiModelProperty(example = "null", value = STR) Float function() { return averagePrice; } | /**
* average_price number
* @return averagePrice
**/ | average_price number | getAveragePrice | {
"repo_name": "Tmin10/EVE-Security-Service",
"path": "server-api/src/main/java/ru/tmin10/EVESecurityService/serverApi/model/GetMarketsPrices200Ok.java",
"license": "gpl-3.0",
"size": 3492
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 1,148,057 |
public int newTask(Long appId, TaskMonitor monitor, Lang lang, String signature, boolean isPrioritary, int numNodes,
boolean isReplicated, boolean isDistributed, boolean hasTarget, int numReturns, List<Parameter> parameters,
OnFailure onFailure, long timeOut) {
Task currentTask = new Task(a... | int function(Long appId, TaskMonitor monitor, Lang lang, String signature, boolean isPrioritary, int numNodes, boolean isReplicated, boolean isDistributed, boolean hasTarget, int numReturns, List<Parameter> parameters, OnFailure onFailure, long timeOut) { Task currentTask = new Task(appId, lang, signature, isPrioritary... | /**
* Application: new Method Task.
*
* @param appId Application Id.
* @param monitor Task monitor.
* @param lang Application language.
* @param signature Task signature.
* @param isPrioritary Whether the task has priority or not.
* @param numNodes Number of nodes.
* @param ... | Application: new Method Task | newTask | {
"repo_name": "mF2C/COMPSs",
"path": "compss/runtime/engine/src/main/java/es/bsc/compss/components/impl/AccessProcessor.java",
"license": "apache-2.0",
"size": 38284
} | [
"es.bsc.compss.COMPSsConstants",
"es.bsc.compss.api.TaskMonitor",
"es.bsc.compss.types.Task",
"es.bsc.compss.types.annotations.parameter.OnFailure",
"es.bsc.compss.types.parameter.Parameter",
"es.bsc.compss.types.request.ap.TaskAnalysisRequest",
"es.bsc.compss.util.ErrorManager",
"java.util.List"
] | import es.bsc.compss.COMPSsConstants; import es.bsc.compss.api.TaskMonitor; import es.bsc.compss.types.Task; import es.bsc.compss.types.annotations.parameter.OnFailure; import es.bsc.compss.types.parameter.Parameter; import es.bsc.compss.types.request.ap.TaskAnalysisRequest; import es.bsc.compss.util.ErrorManager; impo... | import es.bsc.compss.*; import es.bsc.compss.api.*; import es.bsc.compss.types.*; import es.bsc.compss.types.annotations.parameter.*; import es.bsc.compss.types.parameter.*; import es.bsc.compss.types.request.ap.*; import es.bsc.compss.util.*; import java.util.*; | [
"es.bsc.compss",
"java.util"
] | es.bsc.compss; java.util; | 1,056,796 |
public static IndexOfStringNode getUncached() {
return TruffleStringFactory.IndexOfStringNodeGen.getUncached();
}
}
@ImportStatic(TStringGuards.class)
@GeneratePackagePrivate
@GenerateUncached
public abstract static class ByteIndexOfStringNode extends Node {
... | static IndexOfStringNode function() { return TruffleStringFactory.IndexOfStringNodeGen.getUncached(); } } @ImportStatic(TStringGuards.class) public abstract static class ByteIndexOfStringNode extends Node { ByteIndexOfStringNode() { } | /**
* Get the uncached version of {@link IndexOfStringNode}.
*
* @since 22.1
*/ | Get the uncached version of <code>IndexOfStringNode</code> | getUncached | {
"repo_name": "smarr/Truffle",
"path": "truffle/src/com.oracle.truffle.api.strings/src/com/oracle/truffle/api/strings/TruffleString.java",
"license": "gpl-2.0",
"size": 210753
} | [
"com.oracle.truffle.api.dsl.ImportStatic",
"com.oracle.truffle.api.nodes.Node"
] | import com.oracle.truffle.api.dsl.ImportStatic; import com.oracle.truffle.api.nodes.Node; | import com.oracle.truffle.api.dsl.*; import com.oracle.truffle.api.nodes.*; | [
"com.oracle.truffle"
] | com.oracle.truffle; | 582,834 |
boolean willChromeHandleIntent(Intent intent); | boolean willChromeHandleIntent(Intent intent); | /**
* Determine if Chrome is the default or only handler for a given intent. If true, Chrome
* will handle the intent when started.
*/ | Determine if Chrome is the default or only handler for a given intent. If true, Chrome will handle the intent when started | willChromeHandleIntent | {
"repo_name": "ds-hwang/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java",
"license": "bsd-3-clause",
"size": 3852
} | [
"android.content.Intent"
] | import android.content.Intent; | import android.content.*; | [
"android.content"
] | android.content; | 2,192,880 |
public static Setting<ByteSizeValue> memorySizeSetting(String key, ByteSizeValue defaultValue, Property... properties) {
return memorySizeSetting(key, (s) -> defaultValue.toString(), properties);
} | static Setting<ByteSizeValue> function(String key, ByteSizeValue defaultValue, Property... properties) { return memorySizeSetting(key, (s) -> defaultValue.toString(), properties); } | /**
* Creates a setting which specifies a memory size. This can either be
* specified as an absolute bytes value or as a percentage of the heap
* memory.
*
* @param key the key for the setting
* @param defaultValue the default value for this setting
* @param properties properties prop... | Creates a setting which specifies a memory size. This can either be specified as an absolute bytes value or as a percentage of the heap memory | memorySizeSetting | {
"repo_name": "gingerwizard/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/common/settings/Setting.java",
"license": "apache-2.0",
"size": 83142
} | [
"org.elasticsearch.common.unit.ByteSizeValue"
] | import org.elasticsearch.common.unit.ByteSizeValue; | import org.elasticsearch.common.unit.*; | [
"org.elasticsearch.common"
] | org.elasticsearch.common; | 2,087,178 |
DemandConfig createDemandConfig(DemandConfig demandConfig, String projectId)
throws WifInvalidInputException, WifInvalidConfigException,
ParsingException, IncompleteDemandConfigException; | DemandConfig createDemandConfig(DemandConfig demandConfig, String projectId) throws WifInvalidInputException, WifInvalidConfigException, ParsingException, IncompleteDemandConfigException; | /**
* Adds the demandConfig.
*
* @param demandConfig
* the demandConfig
* @param projectId
* the project id
* @return the demandConfig
* @throws WifInvalidInputException
* the wif invalid input exception
* @throws WifInvalidConfigException
* the wi... | Adds the demandConfig | createDemandConfig | {
"repo_name": "tosseto/online-whatif",
"path": "src/main/java/au/org/aurin/wif/svc/suitability/DemandConfigService.java",
"license": "mit",
"size": 2591
} | [
"au.org.aurin.wif.exception.config.ParsingException",
"au.org.aurin.wif.exception.config.WifInvalidConfigException",
"au.org.aurin.wif.exception.validate.IncompleteDemandConfigException",
"au.org.aurin.wif.exception.validate.WifInvalidInputException",
"au.org.aurin.wif.model.demand.DemandConfig"
] | import au.org.aurin.wif.exception.config.ParsingException; import au.org.aurin.wif.exception.config.WifInvalidConfigException; import au.org.aurin.wif.exception.validate.IncompleteDemandConfigException; import au.org.aurin.wif.exception.validate.WifInvalidInputException; import au.org.aurin.wif.model.demand.DemandConfi... | import au.org.aurin.wif.exception.config.*; import au.org.aurin.wif.exception.validate.*; import au.org.aurin.wif.model.demand.*; | [
"au.org.aurin"
] | au.org.aurin; | 954,649 |
EventObject createCamelContextStartedEvent(CamelContext context); | EventObject createCamelContextStartedEvent(CamelContext context); | /**
* Creates an {@link EventObject} for Camel has been started successfully.
*
* @param context camel context
* @return the created event
*/ | Creates an <code>EventObject</code> for Camel has been started successfully | createCamelContextStartedEvent | {
"repo_name": "cexbrayat/camel",
"path": "camel-core/src/main/java/org/apache/camel/spi/EventFactory.java",
"license": "apache-2.0",
"size": 7320
} | [
"java.util.EventObject",
"org.apache.camel.CamelContext"
] | import java.util.EventObject; import org.apache.camel.CamelContext; | import java.util.*; import org.apache.camel.*; | [
"java.util",
"org.apache.camel"
] | java.util; org.apache.camel; | 1,354,414 |
@Test
public void testDynamicMetadataIsRestoredOnRestart() throws Exception {
clientMode = false;
//1: start two nodes, add single BinaryObject
startGrids(2);
Ignite ignite0 = grid(0);
ignite0.active(true);
IgniteCache<Object, Object> cache0 = ignite0.cache(CAC... | void function() throws Exception { clientMode = false; startGrids(2); Ignite ignite0 = grid(0); ignite0.active(true); IgniteCache<Object, Object> cache0 = ignite0.cache(CACHE_NAME); BinaryObject bo = ignite0 .binary() .builder(DYNAMIC_TYPE_NAME) .setField(DYNAMIC_INT_FIELD_NAME, 10) .build(); cache0.put(2, bo); stopAll... | /**
* Test verifies that metadata for binary types built with BinaryObjectBuilder is saved and updated correctly
* on cluster restart.
*/ | Test verifies that metadata for binary types built with BinaryObjectBuilder is saved and updated correctly on cluster restart | testDynamicMetadataIsRestoredOnRestart | {
"repo_name": "ptupitsyn/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/persistence/IgnitePdsBinaryMetadataOnClusterRestartTest.java",
"license": "apache-2.0",
"size": 23839
} | [
"org.apache.ignite.Ignite",
"org.apache.ignite.IgniteCache",
"org.apache.ignite.binary.BinaryObject"
] | import org.apache.ignite.Ignite; import org.apache.ignite.IgniteCache; import org.apache.ignite.binary.BinaryObject; | import org.apache.ignite.*; import org.apache.ignite.binary.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,723,243 |
private void replay() {
for (Map.Entry<Bundle, WebEvent> entry : webEvents.entrySet()) {
webEvent(entry.getValue());
}
for (Map.Entry<Bundle, Map<String, ServletEvent>> entry : servletEvents.entrySet()) {
Map<String, ServletEvent> servletEventMap = entry.getValue();
... | void function() { for (Map.Entry<Bundle, WebEvent> entry : webEvents.entrySet()) { webEvent(entry.getValue()); } for (Map.Entry<Bundle, Map<String, ServletEvent>> entry : servletEvents.entrySet()) { Map<String, ServletEvent> servletEventMap = entry.getValue(); for (Map.Entry<String, ServletEvent> sentry : servletEventM... | /**
* Replays again all events.
*/ | Replays again all events | replay | {
"repo_name": "jludvice/fabric8",
"path": "fabric/fabric-web/src/main/java/io/fabric8/web/FabricWebRegistrationHandler.java",
"license": "apache-2.0",
"size": 12619
} | [
"java.util.Map",
"org.ops4j.pax.web.service.spi.ServletEvent",
"org.ops4j.pax.web.service.spi.WebEvent",
"org.osgi.framework.Bundle"
] | import java.util.Map; import org.ops4j.pax.web.service.spi.ServletEvent; import org.ops4j.pax.web.service.spi.WebEvent; import org.osgi.framework.Bundle; | import java.util.*; import org.ops4j.pax.web.service.spi.*; import org.osgi.framework.*; | [
"java.util",
"org.ops4j.pax",
"org.osgi.framework"
] | java.util; org.ops4j.pax; org.osgi.framework; | 1,395,913 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.