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 void get(URL fullUrl) { try { getWebClient().getPage(fullUrl); // A "get" works over the entire page currentWindow = getCurrentWindow().getTopWindow(); } catch (UnknownHostException e) { getCurrentWindow().getTopWindow().setEnclosedPage(new UnexpectedPage( new Strin...
void function(URL fullUrl) { try { getWebClient().getPage(fullUrl); currentWindow = getCurrentWindow().getTopWindow(); } catch (UnknownHostException e) { getCurrentWindow().getTopWindow().setEnclosedPage(new UnexpectedPage( new StringWebResponse(STR, fullUrl), getCurrentWindow().getTopWindow() )); } catch (ConnectExcep...
/** * Allows HtmlUnit's about:blank to be loaded in the constructor, and may be useful for other * tests? * * @param fullUrl The URL to visit */
Allows HtmlUnit's about:blank to be loaded in the constructor, and may be useful for other tests
get
{ "repo_name": "stupidnetizen/selenium", "path": "java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java", "license": "apache-2.0", "size": 55502 }
[ "com.gargoylesoftware.htmlunit.StringWebResponse", "com.gargoylesoftware.htmlunit.UnexpectedPage", "java.net.ConnectException", "java.net.SocketTimeoutException", "java.net.UnknownHostException", "org.openqa.selenium.TimeoutException", "org.openqa.selenium.WebDriverException" ]
import com.gargoylesoftware.htmlunit.StringWebResponse; import com.gargoylesoftware.htmlunit.UnexpectedPage; import java.net.ConnectException; import java.net.SocketTimeoutException; import java.net.UnknownHostException; import org.openqa.selenium.TimeoutException; import org.openqa.selenium.WebDriverException;
import com.gargoylesoftware.htmlunit.*; import java.net.*; import org.openqa.selenium.*;
[ "com.gargoylesoftware.htmlunit", "java.net", "org.openqa.selenium" ]
com.gargoylesoftware.htmlunit; java.net; org.openqa.selenium;
1,816,701
public String getKeywordsList(){ LOGGER.info("Chiamata al metodo: getKeywordsList()"); return getTaxonomyList(TaxonomyType.KEYWORDS); }
String function(){ LOGGER.info(STR); return getTaxonomyList(TaxonomyType.KEYWORDS); }
/** * Recupera la lista di keyword del portale di destinazione * @return la lista di keyword */
Recupera la lista di keyword del portale di destinazione
getKeywordsList
{ "repo_name": "sistemi-territoriali/StatPortalOpenData", "path": "FederationWS/src/it/sister/statportal/odata/federation/FederationWS.java", "license": "gpl-3.0", "size": 28047 }
[ "it.sister.statportal.odata.federation.exchange.TaxonomyType" ]
import it.sister.statportal.odata.federation.exchange.TaxonomyType;
import it.sister.statportal.odata.federation.exchange.*;
[ "it.sister.statportal" ]
it.sister.statportal;
76,748
UserTable deleteLastCheckpointRowWithId(String appName, DbHandle dbHandleName, String tableId, OrderedColumns orderedColumns, String rowId) throws ActionNotAuthorizedException, ServicesAvailabilityException;
UserTable deleteLastCheckpointRowWithId(String appName, DbHandle dbHandleName, String tableId, OrderedColumns orderedColumns, String rowId) throws ActionNotAuthorizedException, ServicesAvailabilityException;
/** * Delete any checkpoint rows for the given rowId in the tableId. Checkpoint * rows are created by ODK Survey to hold intermediate values during the * filling-in of the form. They act as restore points in the Survey, should * the application die. * * @param appName * @param dbHandleName * @pa...
Delete any checkpoint rows for the given rowId in the tableId. Checkpoint rows are created by ODK Survey to hold intermediate values during the filling-in of the form. They act as restore points in the Survey, should the application die
deleteLastCheckpointRowWithId
{ "repo_name": "opendatakit/androidlibrary", "path": "androidlibrary_lib/src/main/java/org/opendatakit/database/service/UserDbInterface.java", "license": "apache-2.0", "size": 50250 }
[ "org.opendatakit.database.data.OrderedColumns", "org.opendatakit.database.data.UserTable", "org.opendatakit.exception.ActionNotAuthorizedException", "org.opendatakit.exception.ServicesAvailabilityException" ]
import org.opendatakit.database.data.OrderedColumns; import org.opendatakit.database.data.UserTable; import org.opendatakit.exception.ActionNotAuthorizedException; import org.opendatakit.exception.ServicesAvailabilityException;
import org.opendatakit.database.data.*; import org.opendatakit.exception.*;
[ "org.opendatakit.database", "org.opendatakit.exception" ]
org.opendatakit.database; org.opendatakit.exception;
2,673,361
public List<String> getSupportedAntibanding() { String str = get(KEY_ANTIBANDING + SUPPORTED_VALUES_SUFFIX); return split(str); }
List<String> function() { String str = get(KEY_ANTIBANDING + SUPPORTED_VALUES_SUFFIX); return split(str); }
/** * Gets the supported antibanding values. * * @return a list of supported antibanding values. null if antibanding * setting is not supported. * @see #getAntibanding() */
Gets the supported antibanding values
getSupportedAntibanding
{ "repo_name": "OmniEvo/android_frameworks_base", "path": "core/java/android/hardware/Camera.java", "license": "gpl-3.0", "size": 224245 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,223,254
public void setFloat(String parameterName, float x) throws SQLException { throw Util.notImplemented(); }
void function(String parameterName, float x) throws SQLException { throw Util.notImplemented(); }
/** * JDBC 3.0 * * Sets the designated parameter to the given Java float value. The driver * converts this to an SQL FLOAT value when it sends it to the database. * * @param parameterName - the name of the parameter * @param x - the parameter value * @exception SQLException Feature not i...
JDBC 3.0 Sets the designated parameter to the given Java float value. The driver converts this to an SQL FLOAT value when it sends it to the database
setFloat
{ "repo_name": "gemxd/gemfirexd-oss", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/jdbc/EmbedCallableStatement20.java", "license": "apache-2.0", "size": 40659 }
[ "com.pivotal.gemfirexd.internal.impl.jdbc.Util", "java.sql.SQLException" ]
import com.pivotal.gemfirexd.internal.impl.jdbc.Util; import java.sql.SQLException;
import com.pivotal.gemfirexd.internal.impl.jdbc.*; import java.sql.*;
[ "com.pivotal.gemfirexd", "java.sql" ]
com.pivotal.gemfirexd; java.sql;
685,431
public boolean combineItems(EntityItem p_70289_1_) { if (p_70289_1_ == this) { return false; } else if (p_70289_1_.isEntityAlive() && this.isEntityAlive()) { ItemStack itemstack = this.getEntityItem(); ItemStack itemstack1 = p_70289_1_....
boolean function(EntityItem p_70289_1_) { if (p_70289_1_ == this) { return false; } else if (p_70289_1_.isEntityAlive() && this.isEntityAlive()) { ItemStack itemstack = this.getEntityItem(); ItemStack itemstack1 = p_70289_1_.getEntityItem(); if (itemstack1.getItem() != itemstack.getItem()) { return false; } else if (it...
/** * Tries to merge this item with the item passed as the parameter. Returns true if successful. Either this item or * the other item will be removed from the world. */
Tries to merge this item with the item passed as the parameter. Returns true if successful. Either this item or the other item will be removed from the world
combineItems
{ "repo_name": "CheeseL0ver/Ore-TTM", "path": "build/tmp/recompSrc/net/minecraft/entity/item/EntityItem.java", "license": "lgpl-2.1", "size": 16811 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
126,544
private void getInitialProperties() { decodeParameters = SessionUtil.getBooleanProperty(MIME_DECODEPARAMETERS, false); decodeParametersStrict = SessionUtil.getBooleanProperty(MIME_DECODEPARAMETERS_STRICT, false); encodeParameters = SessionUtil.getBooleanProperty(MIME_ENCODEPARAMETERS, true);...
void function() { decodeParameters = SessionUtil.getBooleanProperty(MIME_DECODEPARAMETERS, false); decodeParametersStrict = SessionUtil.getBooleanProperty(MIME_DECODEPARAMETERS_STRICT, false); encodeParameters = SessionUtil.getBooleanProperty(MIME_ENCODEPARAMETERS, true); }
/** * Get the initial parameters that control parsing and values. * These parameters are controlled by System properties. */
Get the initial parameters that control parsing and values. These parameters are controlled by System properties
getInitialProperties
{ "repo_name": "salyh/geronimo-specs", "path": "geronimo-javamail_1.4_spec/src/main/java/javax/mail/internet/ParameterList.java", "license": "apache-2.0", "size": 11799 }
[ "org.apache.geronimo.mail.util.SessionUtil" ]
import org.apache.geronimo.mail.util.SessionUtil;
import org.apache.geronimo.mail.util.*;
[ "org.apache.geronimo" ]
org.apache.geronimo;
2,601,577
private int getOffset() { if (CollectionsUtil.isEmpty(this.cursorOffsets)) { throw new IllegalStateException("Must have cursor offsets parsed out already!"); } return this.cursorOffsets.get(0); }
int function() { if (CollectionsUtil.isEmpty(this.cursorOffsets)) { throw new IllegalStateException(STR); } return this.cursorOffsets.get(0); }
/** * Returns the first offset. * * @return */
Returns the first offset
getOffset
{ "repo_name": "shakaran/studio3", "path": "tests/com.aptana.editor.html.tests/src/com/aptana/editor/html/contentassist/HTMLContentAssistProcessorTest.java", "license": "gpl-3.0", "size": 24283 }
[ "com.aptana.core.util.CollectionsUtil" ]
import com.aptana.core.util.CollectionsUtil;
import com.aptana.core.util.*;
[ "com.aptana.core" ]
com.aptana.core;
1,672,115
@Override public void addInterestOps(int ops) { if (!key.isValid()) throw new CancelledKeyException(); else if (!handshakeComplete) throw new IllegalStateException("handshake is not completed"); key.interestOps(key.interestOps() | ops); }
void function(int ops) { if (!key.isValid()) throw new CancelledKeyException(); else if (!handshakeComplete) throw new IllegalStateException(STR); key.interestOps(key.interestOps() ops); }
/** * Adds interestOps to SelectionKey of the TransportLayer * @param ops SelectionKey interestOps */
Adds interestOps to SelectionKey of the TransportLayer
addInterestOps
{ "repo_name": "samaitra/kafka", "path": "clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java", "license": "apache-2.0", "size": 31627 }
[ "java.nio.channels.CancelledKeyException" ]
import java.nio.channels.CancelledKeyException;
import java.nio.channels.*;
[ "java.nio" ]
java.nio;
1,537,295
default AdvancedNatsEndpointConsumerBuilder exchangePattern( ExchangePattern exchangePattern) { doSetProperty("exchangePattern", exchangePattern); return this; }
default AdvancedNatsEndpointConsumerBuilder exchangePattern( ExchangePattern exchangePattern) { doSetProperty(STR, exchangePattern); return this; }
/** * Sets the exchange pattern when the consumer creates an exchange. * * The option is a: <code>org.apache.camel.ExchangePattern</code> type. * * Group: consumer (advanced) */
Sets the exchange pattern when the consumer creates an exchange. The option is a: <code>org.apache.camel.ExchangePattern</code> type. Group: consumer (advanced)
exchangePattern
{ "repo_name": "ullgren/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/NatsEndpointBuilderFactory.java", "license": "apache-2.0", "size": 61610 }
[ "org.apache.camel.ExchangePattern" ]
import org.apache.camel.ExchangePattern;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
1,211,987
public ArrayList<MegaTransfer> getTransfers() { return transferListToArray(megaApi.getTransfers()); }
ArrayList<MegaTransfer> function() { return transferListToArray(megaApi.getTransfers()); }
/** * Get all active transfers * * @return List with all active transfers */
Get all active transfers
getTransfers
{ "repo_name": "Novo1987/sdk", "path": "bindings/java/nz/mega/sdk/MegaApiJava.java", "license": "bsd-2-clause", "size": 127481 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
196,096
@Test public void testSavepointRestoreSettings() throws Exception { Map<String, String> pathParams = new HashMap<>(); pathParams.put("jarid", "required"); // required // the following should be ignored, because they are parsed from the query params pathParams.put("savepointPath", "ignored"); pathParams.p...
void function() throws Exception { Map<String, String> pathParams = new HashMap<>(); pathParams.put("jarid", STR); pathParams.put(STR, STR); pathParams.put(STR, STR); Map<String, String> queryParams = new HashMap<>(); JarActionHandler.JarActionHandlerConfig config = JarActionHandler.JarActionHandlerConfig.fromParams(pa...
/** * Test that the savepoint settings are correctly parsed. */
Test that the savepoint settings are correctly parsed
testSavepointRestoreSettings
{ "repo_name": "haohui/flink", "path": "flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarActionHandlerTest.java", "license": "apache-2.0", "size": 3453 }
[ "java.util.HashMap", "java.util.Map", "org.apache.flink.runtime.jobgraph.SavepointRestoreSettings", "org.junit.Assert" ]
import java.util.HashMap; import java.util.Map; import org.apache.flink.runtime.jobgraph.SavepointRestoreSettings; import org.junit.Assert;
import java.util.*; import org.apache.flink.runtime.jobgraph.*; import org.junit.*;
[ "java.util", "org.apache.flink", "org.junit" ]
java.util; org.apache.flink; org.junit;
660,239
public void setupUserAuthenticationAccount(LoginToken token, String userId, AbstractCredential cred) throws Exception { log.info("Setting user authentication account called by user {} for user {} with credentials {}", new Object[]{token.getUser(), userId, cred}); if (token != null) { isA...
void function(LoginToken token, String userId, AbstractCredential cred) throws Exception { log.info(STR, new Object[]{token.getUser(), userId, cred}); if (token != null) { isAllowed(token, new PolicyRequest(getUserProfile(token, userId), PolicyRequest.CommandType.EDIT)); UserDetails userDetails = getUserDetails(token);...
/** * Called to change password */
Called to change password
setupUserAuthenticationAccount
{ "repo_name": "jmacauley/OpenDRAC", "path": "Web/RequestHandler/src/main/java/com/nortel/appcore/app/drac/server/requesthandler/RequestHandler.java", "license": "gpl-3.0", "size": 65106 }
[ "com.nortel.appcore.app.drac.common.errorhandling.DracErrorConstants", "com.nortel.appcore.app.drac.common.security.authentication.types.AbstractCredential", "com.nortel.appcore.app.drac.common.security.authentication.types.LocalAccountCredential", "com.nortel.appcore.app.drac.common.security.authentication.t...
import com.nortel.appcore.app.drac.common.errorhandling.DracErrorConstants; import com.nortel.appcore.app.drac.common.security.authentication.types.AbstractCredential; import com.nortel.appcore.app.drac.common.security.authentication.types.LocalAccountCredential; import com.nortel.appcore.app.drac.common.security.authe...
import com.nortel.appcore.app.drac.common.errorhandling.*; import com.nortel.appcore.app.drac.common.security.authentication.types.*; import com.nortel.appcore.app.drac.common.security.policy.*; import com.nortel.appcore.app.drac.security.*; import java.util.*;
[ "com.nortel.appcore", "java.util" ]
com.nortel.appcore; java.util;
566,444
public static final class Reader implements NamedObjectReader { public final SignedNamedObject read(final SignedNamedCore core, final Element elem) throws InvalidNamedObjectException { if (!elem.getNamespace().equals(ExchangeOrderGlobals.NS_EXCHANGE)) throw new InvalidNamedO...
static final class Reader implements NamedObjectReader { public final SignedNamedObject function(final SignedNamedCore core, final Element elem) throws InvalidNamedObjectException { if (!elem.getNamespace().equals(ExchangeOrderGlobals.NS_EXCHANGE)) throw new InvalidNamedObjectException(core.getName(), STR + ExchangeOrd...
/** * Read object from Element and fill in its details * * @param elem * @return */
Read object from Element and fill in its details
read
{ "repo_name": "pelle/neuclear-pay", "path": "src/java/org/neuclear/exchange/orders/CancelExchangeReceipt.java", "license": "lgpl-2.1", "size": 2298 }
[ "java.util.Date", "org.dom4j.DocumentHelper", "org.dom4j.Element", "org.neuclear.asset.orders.TransferGlobals", "org.neuclear.id.InvalidNamedObjectException", "org.neuclear.id.NamedObjectReader", "org.neuclear.id.SignedNamedCore", "org.neuclear.id.SignedNamedObject", "org.neuclear.id.verifier.Verify...
import java.util.Date; import org.dom4j.DocumentHelper; import org.dom4j.Element; import org.neuclear.asset.orders.TransferGlobals; import org.neuclear.id.InvalidNamedObjectException; import org.neuclear.id.NamedObjectReader; import org.neuclear.id.SignedNamedCore; import org.neuclear.id.SignedNamedObject; import org.n...
import java.util.*; import org.dom4j.*; import org.neuclear.asset.orders.*; import org.neuclear.id.*; import org.neuclear.id.verifier.*;
[ "java.util", "org.dom4j", "org.neuclear.asset", "org.neuclear.id" ]
java.util; org.dom4j; org.neuclear.asset; org.neuclear.id;
659,003
public Response syncSendPacket(Command command, int timeout) throws JMSException { if (isClosed() || closing.get()) { throw new ConnectionClosedException(); } else { return doSyncSendPacket(command, timeout); } }
Response function(Command command, int timeout) throws JMSException { if (isClosed() closing.get()) { throw new ConnectionClosedException(); } else { return doSyncSendPacket(command, timeout); } }
/** * Send a packet through a Connection - for internal use only * * @param command * @return * @throws JMSException */
Send a packet through a Connection - for internal use only
syncSendPacket
{ "repo_name": "Mark-Booth/daq-eclipse", "path": "uk.ac.diamond.org.apache.activemq/org/apache/activemq/ActiveMQConnection.java", "license": "epl-1.0", "size": 107413 }
[ "javax.jms.JMSException", "org.apache.activemq.command.Command", "org.apache.activemq.command.Response" ]
import javax.jms.JMSException; import org.apache.activemq.command.Command; import org.apache.activemq.command.Response;
import javax.jms.*; import org.apache.activemq.command.*;
[ "javax.jms", "org.apache.activemq" ]
javax.jms; org.apache.activemq;
261,491
@Test public void testGetClustersOrderBysCollectionField() { final Set<String> orderBys = new HashSet<>(); orderBys.add("tags"); final List<Application> applications = this.appService.getApplications(null, null, null, null, 0, 10, true, orderBys); Assert.assertEqu...
void function() { final Set<String> orderBys = new HashSet<>(); orderBys.add("tags"); final List<Application> applications = this.appService.getApplications(null, null, null, null, 0, 10, true, orderBys); Assert.assertEquals(3, applications.size()); Assert.assertEquals(APP_3_ID, applications.get(0).getId()); Assert.ass...
/** * Test the get applications method order by a collection field should return the order by default value (updated). */
Test the get applications method order by a collection field should return the order by default value (updated)
testGetClustersOrderBysCollectionField
{ "repo_name": "sensaid/genie", "path": "genie-core/src/integration-test/java/com/netflix/genie/core/services/impl/jpa/IntTestApplicationConfigServiceJPAImpl.java", "license": "apache-2.0", "size": 35923 }
[ "com.netflix.genie.common.model.Application", "java.util.HashSet", "java.util.List", "java.util.Set", "org.junit.Assert" ]
import com.netflix.genie.common.model.Application; import java.util.HashSet; import java.util.List; import java.util.Set; import org.junit.Assert;
import com.netflix.genie.common.model.*; import java.util.*; import org.junit.*;
[ "com.netflix.genie", "java.util", "org.junit" ]
com.netflix.genie; java.util; org.junit;
461,580
@Override void draw(Graphics2D g2d, float xOffset, float yOffset) { if (decoration == null) { g2d.drawGlyphVector(getGlyphVector(), xOffset + x, yOffset + y); } else { TextDecorator.prepareGraphics(this, g2d, xOffset, yOffset); ...
void draw(Graphics2D g2d, float xOffset, float yOffset) { if (decoration == null) { g2d.drawGlyphVector(getGlyphVector(), xOffset + x, yOffset + y); } else { TextDecorator.prepareGraphics(this, g2d, xOffset, yOffset); g2d.drawGlyphVector(getGlyphVector(), xOffset + x, yOffset + y); TextDecorator.drawTextDecorations(thi...
/** * Renders this text run segment * @param g2d - graphics to render to * @param xOffset - X offset from the graphics origin to the * origin of the text layout * @param yOffset - Y offset from the graphics origin to the * origin of the text layout *...
Renders this text run segment
draw
{ "repo_name": "windwardadmin/android-awt", "path": "src/main/java/org/apache/harmony/awt/gl/font/TextRunSegmentImpl.java", "license": "apache-2.0", "size": 36598 }
[ "net.windward.android.awt.Graphics2D" ]
import net.windward.android.awt.Graphics2D;
import net.windward.android.awt.*;
[ "net.windward.android" ]
net.windward.android;
2,697,297
public static List<String> getProperties(Object o) { checkNotNull(o, "The given object cannot be null."); Class c = o.getClass(); try { PropertyDescriptor[] descriptors = Introspector.getBeanInfo(c).getPropertyDescriptors(); ImmutableList.Builder<String> b = Immutable...
static List<String> function(Object o) { checkNotNull(o, STR); Class c = o.getClass(); try { PropertyDescriptor[] descriptors = Introspector.getBeanInfo(c).getPropertyDescriptors(); ImmutableList.Builder<String> b = ImmutableList.builder(); for (PropertyDescriptor descriptor : descriptors) { b.add(descriptor.getName())...
/** * Get the list of public properties for the object, that is, those that can be retrieved using getter methods. * @param o The object to lookup. Cannot be null. * @return A list of properties */
Get the list of public properties for the object, that is, those that can be retrieved using getter methods
getProperties
{ "repo_name": "joansmith/nodebox", "path": "src/main/java/nodebox/util/ReflectionUtils.java", "license": "gpl-2.0", "size": 2656 }
[ "com.google.common.base.Preconditions", "com.google.common.collect.ImmutableList", "java.beans.IntrospectionException", "java.beans.Introspector", "java.beans.PropertyDescriptor", "java.util.List" ]
import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import java.beans.IntrospectionException; import java.beans.Introspector; import java.beans.PropertyDescriptor; import java.util.List;
import com.google.common.base.*; import com.google.common.collect.*; import java.beans.*; import java.util.*;
[ "com.google.common", "java.beans", "java.util" ]
com.google.common; java.beans; java.util;
2,697,847
protected List<ClassInfo> readTargetClasses(MixinClassNode classNode, boolean suppressPlugin) { if (classNode == null) { return Collections.<ClassInfo>emptyList(); } AnnotationNode mixin = ASMHelper.getInvisibleAnnotation(classNode, Mixin.class); if (mixin == nul...
List<ClassInfo> function(MixinClassNode classNode, boolean suppressPlugin) { if (classNode == null) { return Collections.<ClassInfo>emptyList(); } AnnotationNode mixin = ASMHelper.getInvisibleAnnotation(classNode, Mixin.class); if (mixin == null) { throw new InvalidMixinException(this, String.format(STR, this.className...
/** * Read the target class names from the {@link Mixin} annotation * * @param classNode * @param suppressPlugin * @return target class list read from classNode */
Read the target class names from the <code>Mixin</code> annotation
readTargetClasses
{ "repo_name": "simon816/Mixin", "path": "src/main/java/org/spongepowered/asm/mixin/transformer/MixinInfo.java", "license": "mit", "size": 40239 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List", "org.spongepowered.asm.lib.tree.AnnotationNode", "org.spongepowered.asm.mixin.Mixin", "org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException", "org.spongepowered.asm.util.ASMHelper" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.spongepowered.asm.lib.tree.AnnotationNode; import org.spongepowered.asm.mixin.Mixin; import org.spongepowered.asm.mixin.transformer.throwables.InvalidMixinException; import org.spongepowered.asm.util.ASMHelper;
import java.util.*; import org.spongepowered.asm.lib.tree.*; import org.spongepowered.asm.mixin.*; import org.spongepowered.asm.mixin.transformer.throwables.*; import org.spongepowered.asm.util.*;
[ "java.util", "org.spongepowered.asm" ]
java.util; org.spongepowered.asm;
2,516,156
protected int run(String[] args) { try { LOG.debug("All environment variables: {}", ENV); final String yarnClientUsername = ENV.get(YarnConfigKeys.ENV_HADOOP_USER_NAME); final String localDirs = ENV.get(Environment.LOCAL_DIRS.key()); LOG.info("Current working/local Directory: {}", localDirs); fina...
int function(String[] args) { try { LOG.debug(STR, ENV); final String yarnClientUsername = ENV.get(YarnConfigKeys.ENV_HADOOP_USER_NAME); final String localDirs = ENV.get(Environment.LOCAL_DIRS.key()); LOG.info(STR, localDirs); final String currDir = ENV.get(Environment.PWD.key()); LOG.info(STR, currDir); final String r...
/** * The instance entry point for the YARN task executor. Obtains user group * information and calls the main work method {@link #runTaskExecutor(org.apache.flink.configuration.Configuration)} as a * privileged action. * * @param args The command line arguments. * @return The process exit code. */
The instance entry point for the YARN task executor. Obtains user group information and calls the main work method <code>#runTaskExecutor(org.apache.flink.configuration.Configuration)</code> as a privileged action
run
{ "repo_name": "Xpray/flink", "path": "flink-yarn/src/main/java/org/apache/flink/yarn/YarnTaskExecutorRunner.java", "license": "apache-2.0", "size": 10366 }
[ "java.io.File", "org.apache.flink.configuration.AkkaOptions", "org.apache.flink.configuration.ConfigConstants", "org.apache.flink.configuration.Configuration", "org.apache.flink.configuration.GlobalConfiguration", "org.apache.flink.configuration.SecurityOptions", "org.apache.flink.core.fs.FileSystem", ...
import java.io.File; import org.apache.flink.configuration.AkkaOptions; import org.apache.flink.configuration.ConfigConstants; import org.apache.flink.configuration.Configuration; import org.apache.flink.configuration.GlobalConfiguration; import org.apache.flink.configuration.SecurityOptions; import org.apache.flink.co...
import java.io.*; import org.apache.flink.configuration.*; import org.apache.flink.core.fs.*; import org.apache.flink.runtime.security.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.security.*; import org.apache.hadoop.yarn.api.*;
[ "java.io", "org.apache.flink", "org.apache.hadoop" ]
java.io; org.apache.flink; org.apache.hadoop;
2,688,678
AlgorithmParameterSpec getParameterSpec();
AlgorithmParameterSpec getParameterSpec();
/** * Returns the algorithm-specific input parameters associated with this * <code>CanonicalizationMethod</code>. * * <p>The returned parameters can be typecast to a * {@link C14NMethodParameterSpec} object. * * @return the algorithm-specific input parameters (may be * <code>n...
Returns the algorithm-specific input parameters associated with this <code>CanonicalizationMethod</code>. The returned parameters can be typecast to a <code>C14NMethodParameterSpec</code> object
getParameterSpec
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jdk/src/share/classes/javax/xml/crypto/dsig/CanonicalizationMethod.java", "license": "mit", "size": 4173 }
[ "java.security.spec.AlgorithmParameterSpec" ]
import java.security.spec.AlgorithmParameterSpec;
import java.security.spec.*;
[ "java.security" ]
java.security;
1,487,304
private Collection<AdministeredComponentClassSchemeItem> administeredComponentClassSchemeItemCollection; public Collection<AdministeredComponentClassSchemeItem> getAdministeredComponentClassSchemeItemCollection(){ return administeredComponentClassSchemeItemCollection; }
Collection<AdministeredComponentClassSchemeItem> administeredComponentClassSchemeItemCollection; public Collection<AdministeredComponentClassSchemeItem> function(){ return administeredComponentClassSchemeItemCollection; }
/** * Retreives the value of administeredComponentClassSchemeItemCollection attribue * @return administeredComponentClassSchemeItemCollection **/
Retreives the value of administeredComponentClassSchemeItemCollection attribue
getAdministeredComponentClassSchemeItemCollection
{ "repo_name": "NCIP/cagrid2", "path": "cagrid-mms/cagrid-mms-cadsr-impl/src/main/java/gov/nih/nci/cadsr/domain/TriggerAction.java", "license": "bsd-3-clause", "size": 8253 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
521,547
public static java.util.List extractPendingTransfersList(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.ifPendingTransferVoCollection voCollection) { return extractPendingTransfersList(domainFactory, voCollection, null, new HashMap()); }
static java.util.List function(ims.domain.ILightweightDomainFactory domainFactory, ims.core.vo.ifPendingTransferVoCollection voCollection) { return extractPendingTransfersList(domainFactory, voCollection, null, new HashMap()); }
/** * Create the ims.core.admin.pas.domain.objects.PendingTransfers list from the value object collection. * @param domainFactory - used to create existing (persistent) domain objects. * @param voCollection - the collection of value objects */
Create the ims.core.admin.pas.domain.objects.PendingTransfers list from the value object collection
extractPendingTransfersList
{ "repo_name": "FreudianNM/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/core/vo/domain/ifPendingTransferVoAssembler.java", "license": "agpl-3.0", "size": 25826 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,255,605
public void setScaling(TileScaling scaling) { this.scaling = scaling; }
void function(TileScaling scaling) { this.scaling = scaling; }
/** * Set the tile scaling settings * * @param scaling * tile scaling * @since 2.0.2 */
Set the tile scaling settings
setScaling
{ "repo_name": "ngageoint/geopackage-java", "path": "src/main/java/mil/nga/geopackage/tiles/TileGenerator.java", "license": "mit", "size": 32040 }
[ "mil.nga.geopackage.extension.nga.scale.TileScaling" ]
import mil.nga.geopackage.extension.nga.scale.TileScaling;
import mil.nga.geopackage.extension.nga.scale.*;
[ "mil.nga.geopackage" ]
mil.nga.geopackage;
705,871
public Optional<Offer> getOfferById(final int offerId) { return getById(RESOURCE, Offer.class, offerId); } /** * Gets a offer by its offer number. * * @param offerNumber the offer number, must not be empty / {@code null}
Optional<Offer> function(final int offerId) { return getById(RESOURCE, Offer.class, offerId); } /** * Gets a offer by its offer number. * * @param offerNumber the offer number, must not be empty / {@code null}
/** * Gets a offer by its id. * * @param offerId the offer's id * @return the offer * @throws ServiceException if an error occurred while accessing the web service */
Gets a offer by its id
getOfferById
{ "repo_name": "osiegmar/billomat4j", "path": "src/main/java/de/siegmar/billomat4j/service/OfferService.java", "license": "lgpl-3.0", "size": 10098 }
[ "de.siegmar.billomat4j.domain.offer.Offer", "java.util.Optional" ]
import de.siegmar.billomat4j.domain.offer.Offer; import java.util.Optional;
import de.siegmar.billomat4j.domain.offer.*; import java.util.*;
[ "de.siegmar.billomat4j", "java.util" ]
de.siegmar.billomat4j; java.util;
1,249,908
@Column(name = "execution_count", nullable = false, precision = 19) @Override public Long getExecutionCount() { return (Long) get(13); }
@Column(name = STR, nullable = false, precision = 19) Long function() { return (Long) get(13); }
/** * Getter for <code>cattle.process_instance.execution_count</code>. */
Getter for <code>cattle.process_instance.execution_count</code>
getExecutionCount
{ "repo_name": "rancherio/cattle", "path": "modules/model/src/main/java/io/cattle/platform/core/model/tables/records/ProcessInstanceRecord.java", "license": "apache-2.0", "size": 20077 }
[ "javax.persistence.Column" ]
import javax.persistence.Column;
import javax.persistence.*;
[ "javax.persistence" ]
javax.persistence;
1,773,259
private boolean isDenied(AccessControlEntry ace, Set<String> authorisations, Set<Pair<String, PermissionReference>> allowed, PermissionContext context) { // If the permission entry denies then we just deny if (ace.getAccessStatus() == AccessStatus.ALLOWED) { ...
boolean function(AccessControlEntry ace, Set<String> authorisations, Set<Pair<String, PermissionReference>> allowed, PermissionContext context) { if (ace.getAccessStatus() == AccessStatus.ALLOWED) { allowed.add(new Pair<String, PermissionReference>(ace.getAuthority(), ace.getPermission())); Set<PermissionReference> gra...
/** * Is a permission granted * * @param ace AccessControlEntry * @param authorisations - * the set of authorities * @param allowed - * the set of denied permissions/authority pais * @param context PermissionContext ...
Is a permission granted
isDenied
{ "repo_name": "loftuxab/alfresco-community-loftux", "path": "projects/repository/source/java/org/alfresco/repo/security/permissions/impl/PermissionServiceImpl.java", "license": "lgpl-3.0", "size": 108452 }
[ "java.util.Set", "org.alfresco.repo.security.permissions.AccessControlEntry", "org.alfresco.repo.security.permissions.PermissionReference", "org.alfresco.service.cmr.security.AccessStatus", "org.alfresco.service.cmr.security.PermissionContext", "org.alfresco.util.Pair" ]
import java.util.Set; import org.alfresco.repo.security.permissions.AccessControlEntry; import org.alfresco.repo.security.permissions.PermissionReference; import org.alfresco.service.cmr.security.AccessStatus; import org.alfresco.service.cmr.security.PermissionContext; import org.alfresco.util.Pair;
import java.util.*; import org.alfresco.repo.security.permissions.*; import org.alfresco.service.cmr.security.*; import org.alfresco.util.*;
[ "java.util", "org.alfresco.repo", "org.alfresco.service", "org.alfresco.util" ]
java.util; org.alfresco.repo; org.alfresco.service; org.alfresco.util;
157,505
public static void setLogFileLevel(int nLogLevelFile) { LOG_LEVEL_FILE = nLogLevelFile; if((LOG_LEVEL_FILE == android.util.Log.ASSERT) && (m_oFile != null)) { try { m_oFile.close(); } catch(IOException ioe) { ...
static void function(int nLogLevelFile) { LOG_LEVEL_FILE = nLogLevelFile; if((LOG_LEVEL_FILE == android.util.Log.ASSERT) && (m_oFile != null)) { try { m_oFile.close(); } catch(IOException ioe) { android.util.Log.e("Log", STR, ioe); } m_oFile = null; } }
/**Set enable state to log event into file. * @param bEnable [in] Set true to enable log into file, set false to disable it.*/
Set enable state to log event into file
setLogFileLevel
{ "repo_name": "WiAnnBot/annbot", "path": "app/src/main/java/com/wistronits/wh/annbot/utils/Log.java", "license": "apache-2.0", "size": 18844 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,219,677
public void setUriDereferencer(URIDereferencer uriDereferencer) { this.uriDereferencer = uriDereferencer; }
void function(URIDereferencer uriDereferencer) { this.uriDereferencer = uriDereferencer; }
/** * If you want to restrict the remote access via reference URIs, you can set * an own dereferencer. Optional parameter. If not set the provider default * dereferencer is used which can resolve URI fragments, HTTP, file and * XPpointer URIs. * <p> * Attention: The implementation is provi...
If you want to restrict the remote access via reference URIs, you can set an own dereferencer. Optional parameter. If not set the provider default dereferencer is used which can resolve URI fragments, HTTP, file and XPpointer URIs. Attention: The implementation is provider dependent
setUriDereferencer
{ "repo_name": "objectiser/camel", "path": "components/camel-xmlsecurity/src/main/java/org/apache/camel/component/xmlsecurity/processor/XmlSignatureConfiguration.java", "license": "apache-2.0", "size": 6806 }
[ "javax.xml.crypto.URIDereferencer" ]
import javax.xml.crypto.URIDereferencer;
import javax.xml.crypto.*;
[ "javax.xml" ]
javax.xml;
1,062,011
private IEntityGroup getUportalGroupByDistinguishedName(final String groupName) throws UportalServiceErrorException, UportalServiceGroupNotFoundException { IEntityGroup group; try { group = GroupService.getDistinguishedGroup(groupName); } catch (GroupsException e) { throw UportalServiceErrorExcept...
IEntityGroup function(final String groupName) throws UportalServiceErrorException, UportalServiceGroupNotFoundException { IEntityGroup group; try { group = GroupService.getDistinguishedGroup(groupName); } catch (GroupsException e) { throw UportalServiceErrorException.error(e); } if (group == null) { throw UportalServic...
/** * The result of this method is a 2-array: * 0: the id of the group. * 1: the name of the group. * @param groupName * @return the group with distinguished name groupName. * @throws UportalServiceErrorException * @throws UportalServiceGroupNotFoundException */
The result of this method is a 2-array: 0: the id of the group. 1: the name of the group
getUportalGroupByDistinguishedName
{ "repo_name": "Mines-Albi/esup-uportal", "path": "uportal-war/src/main/java/org/esupportail/portal/ws/server/UportalService.java", "license": "apache-2.0", "size": 21789 }
[ "org.jasig.portal.groups.GroupsException", "org.jasig.portal.groups.IEntityGroup", "org.jasig.portal.services.GroupService" ]
import org.jasig.portal.groups.GroupsException; import org.jasig.portal.groups.IEntityGroup; import org.jasig.portal.services.GroupService;
import org.jasig.portal.groups.*; import org.jasig.portal.services.*;
[ "org.jasig.portal" ]
org.jasig.portal;
1,737,466
User userDetails = new User(username, "", new ArrayList<GrantedAuthority>(0)); loginAs(userDetails); }
User userDetails = new User(username, "", new ArrayList<GrantedAuthority>(0)); loginAs(userDetails); }
/** * Unit test only CLIENT SIDE ONLY TODO. Requires org.oasis.datacore.rest.server.security.mock.MockLoginServerInInterceptor * to be configured among server interceptors, which only ever happens in unit test setup. * @param username */
Unit test only CLIENT SIDE ONLY TODO. Requires org.oasis.datacore.rest.server.security.mock.MockLoginServerInInterceptor to be configured among server interceptors, which only ever happens in unit test setup
loginAs
{ "repo_name": "ozwillo/ozwillo-datacore", "path": "ozwillo-datacore-common/src/main/java/org/oasis/datacore/rest/client/cxf/mock/AuthenticationHelper.java", "license": "agpl-3.0", "size": 3806 }
[ "java.util.ArrayList", "org.springframework.security.core.GrantedAuthority", "org.springframework.security.core.userdetails.User" ]
import java.util.ArrayList; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.core.userdetails.User;
import java.util.*; import org.springframework.security.core.*; import org.springframework.security.core.userdetails.*;
[ "java.util", "org.springframework.security" ]
java.util; org.springframework.security;
2,659,945
public Observable<ServiceResponse<VpnClientConnectionHealthDetailListResultInner>> beginGetVpnclientConnectionHealthWithServiceResponseAsync(String resourceGroupName, String virtualNetworkGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupN...
Observable<ServiceResponse<VpnClientConnectionHealthDetailListResultInner>> function(String resourceGroupName, String virtualNetworkGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (virtualNetworkGatewayName == null) { throw new IllegalArgumentException(STR); } if (this.clie...
/** * Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group. * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayName The name of the virtual network gateway. * @throws IllegalArgum...
Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group
beginGetVpnclientConnectionHealthWithServiceResponseAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/network/v2019_08_01/implementation/VirtualNetworkGatewaysInner.java", "license": "mit", "size": 283551 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,140,040
public void invokeStatic(final Type owner, final Method method) { invokeInsn(Opcodes.INVOKESTATIC, owner, method); }
void function(final Type owner, final Method method) { invokeInsn(Opcodes.INVOKESTATIC, owner, method); }
/** * Generates the instruction to invoke a static method. * * @param owner * the class in which the method is defined. * @param method * the method to be invoked. */
Generates the instruction to invoke a static method
invokeStatic
{ "repo_name": "llbit/ow2-asm", "path": "src/org/objectweb/asm/commons/GeneratorAdapter.java", "license": "bsd-3-clause", "size": 50594 }
[ "org.objectweb.asm.Opcodes", "org.objectweb.asm.Type" ]
import org.objectweb.asm.Opcodes; import org.objectweb.asm.Type;
import org.objectweb.asm.*;
[ "org.objectweb.asm" ]
org.objectweb.asm;
929,304
public StepInterface getStepInterface(String stepname, int copy) { if (steps==null) return null; // Now start all the threads... for (int i=0;i<steps.size();i++) { StepMetaDataCombi sid = steps.get(i); if (sid.stepname.equalsIgnoreCase(stepname) && si...
StepInterface function(String stepname, int copy) { if (steps==null) return null; for (int i=0;i<steps.size();i++) { StepMetaDataCombi sid = steps.get(i); if (sid.stepname.equalsIgnoreCase(stepname) && sid.copy==copy) { return sid.step; } } return null; }
/** * Find the StepInterface (thread) by looking it up using the name * @param stepname The name of the step to look for * @param copy the copy number of the step to look for * @return the StepInterface or null if nothing was found. */
Find the StepInterface (thread) by looking it up using the name
getStepInterface
{ "repo_name": "dianhu/Kettle-Research", "path": "src/org/pentaho/di/trans/Trans.java", "license": "lgpl-2.1", "size": 128383 }
[ "org.pentaho.di.trans.step.StepInterface", "org.pentaho.di.trans.step.StepMetaDataCombi" ]
import org.pentaho.di.trans.step.StepInterface; import org.pentaho.di.trans.step.StepMetaDataCombi;
import org.pentaho.di.trans.step.*;
[ "org.pentaho.di" ]
org.pentaho.di;
812,000
@Nonnull public DirectoryObjectGetMemberGroupsCollectionRequestBuilder getMemberGroups(@Nonnull final DirectoryObjectGetMemberGroupsParameterSet parameters) { return new DirectoryObjectGetMemberGroupsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getMemberGroups"), getClien...
DirectoryObjectGetMemberGroupsCollectionRequestBuilder function(@Nonnull final DirectoryObjectGetMemberGroupsParameterSet parameters) { return new DirectoryObjectGetMemberGroupsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment(STR), getClient(), null, parameters); }
/** * Gets a builder to execute the method * @return the request builder collection * @param parameters the parameters for the service method */
Gets a builder to execute the method
getMemberGroups
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/TokenIssuancePolicyRequestBuilder.java", "license": "mit", "size": 6041 }
[ "com.microsoft.graph.models.DirectoryObjectGetMemberGroupsParameterSet", "javax.annotation.Nonnull" ]
import com.microsoft.graph.models.DirectoryObjectGetMemberGroupsParameterSet; import javax.annotation.Nonnull;
import com.microsoft.graph.models.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
1,723,837
public static String extractFileNameFromCacheName(@NonNull final String path) { String result = FileHelper.getFileNameWithoutExtension(path); int folderSeparatorIndex = result.lastIndexOf(ArchiveHelper.CACHE_SEPARATOR); if (-1 == folderSeparatorIndex) return result; else return res...
static String function(@NonNull final String path) { String result = FileHelper.getFileNameWithoutExtension(path); int folderSeparatorIndex = result.lastIndexOf(ArchiveHelper.CACHE_SEPARATOR); if (-1 == folderSeparatorIndex) return result; else return result.substring(folderSeparatorIndex + 1); } @SuppressWarnings(STR)...
/** * Extracts the original file name from the filename of the cached file * * @param path Path of the cached file * @return Original filename of the given cached file */
Extracts the original file name from the filename of the cached file
extractFileNameFromCacheName
{ "repo_name": "AVnetWS/Hentoid", "path": "app/src/main/java/me/devsaki/hentoid/util/ArchiveHelper.java", "license": "apache-2.0", "size": 23976 }
[ "androidx.annotation.NonNull" ]
import androidx.annotation.NonNull;
import androidx.annotation.*;
[ "androidx.annotation" ]
androidx.annotation;
2,212,698
public void saveToNodeSettings(NodeSettingsWO settings) { SettingsHelper.addInt("numMiscs", numMiscs, settings); for (int i = 0; i < numMiscs; i++) { miscs[i].saveToNodeSettings(settings.addNodeSettings("miscs" + i)); } }
void function(NodeSettingsWO settings) { SettingsHelper.addInt(STR, numMiscs, settings); for (int i = 0; i < numMiscs; i++) { miscs[i].saveToNodeSettings(settings.addNodeSettings("miscs" + i)); } }
/** * Saves the list of miscs into a {@link NodeSettingsWO} with properties: * <ul> * <li>Integer "numMiscs" * <li>Variable number of settings with key "miscs" and a suffix. E.g. "miscs0", * "miscs1", etc. * </ul> * * @param settings * settings where to save the {@link MiscList} p...
Saves the list of miscs into a <code>NodeSettingsWO</code> with properties: Integer "numMiscs" Variable number of settings with key "miscs" and a suffix. E.g. "miscs0", "miscs1", etc.
saveToNodeSettings
{ "repo_name": "SiLeBAT/FSK-Lab", "path": "de.bund.bfr.knime.pmm.nodes/src/de/bund/bfr/knime/pmm/js/common/MiscList.java", "license": "gpl-3.0", "size": 3243 }
[ "org.knime.core.node.NodeSettingsWO" ]
import org.knime.core.node.NodeSettingsWO;
import org.knime.core.node.*;
[ "org.knime.core" ]
org.knime.core;
1,483,534
@Test public void testFsckForSnapshotFiles() throws Exception { File builderBaseDir = new File(GenericTestUtils.getRandomizedTempPath()); cluster = new MiniDFSCluster.Builder(conf, builderBaseDir).numDataNodes(1) .build(); String runFsck = runFsck(conf, 0, true, "/", "-includeSnapshots", ...
void function() throws Exception { File builderBaseDir = new File(GenericTestUtils.getRandomizedTempPath()); cluster = new MiniDFSCluster.Builder(conf, builderBaseDir).numDataNodes(1) .build(); String runFsck = runFsck(conf, 0, true, "/", STR, STR); assertTrue(runFsck.contains(STR)); final String fileName = STR; Distri...
/** * Test for including the snapshot files in fsck report. */
Test for including the snapshot files in fsck report
testFsckForSnapshotFiles
{ "repo_name": "GeLiXin/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java", "license": "apache-2.0", "size": 98800 }
[ "java.io.File", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.DFSTestUtil", "org.apache.hadoop.hdfs.DistributedFileSystem", "org.apache.hadoop.hdfs.MiniDFSCluster", "org.apache.hadoop.test.GenericTestUtils", "org.junit.Assert" ]
import java.io.File; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DFSTestUtil; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.test.GenericTestUtils; import org.junit.Assert;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.test.*; import org.junit.*;
[ "java.io", "org.apache.hadoop", "org.junit" ]
java.io; org.apache.hadoop; org.junit;
1,491,524
public void setConfigurationElement(OMElement configElement);
void function(OMElement configElement);
/** * Set the configuration element of TokenRenewer. * * This is the &lt;configuration&gt; element of the * token-dispatcher-configuration * * @param configElement * <code>OMElement</code> representing the configuration */
Set the configuration element of TokenRenewer. This is the &lt;configuration&gt; element of the token-dispatcher-configuration
setConfigurationElement
{ "repo_name": "maheshika/wso2-rampart", "path": "modules/rampart-trust/src/main/java/org/apache/rahas/TokenRenewer.java", "license": "apache-2.0", "size": 2141 }
[ "org.apache.axiom.om.OMElement" ]
import org.apache.axiom.om.OMElement;
import org.apache.axiom.om.*;
[ "org.apache.axiom" ]
org.apache.axiom;
1,928,308
public synchronized Session openSession() throws IOException { if (tm == null) throw new IllegalStateException("Cannot open session, you need to establish a connection first."); if (!authenticated) throw new IllegalStateException("Cannot open session, connection is not authenticated."); return new Ses...
synchronized Session function() throws IOException { if (tm == null) throw new IllegalStateException(STR); if (!authenticated) throw new IllegalStateException(STR); return new Session(cm, getOrCreateSecureRND()); }
/** * Open a new {@link Session} on this connection. Works only after one has * passed successfully the authentication step. There is no limit on the * number of concurrent sessions. * * @return A {@link Session} object. * @throws IOException */
Open a new <code>Session</code> on this connection. Works only after one has passed successfully the authentication step. There is no limit on the number of concurrent sessions
openSession
{ "repo_name": "getconsole/serialbot", "path": "src/com/trilead/ssh2/Connection.java", "license": "apache-2.0", "size": 55105 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,195,674
protected void start() throws ConfigurationException, MalformedContentNameStringException, IOException { _thd.start(); _chat.setLogging(Level.WARNING); _chat.listen(); }
void function() throws ConfigurationException, MalformedContentNameStringException, IOException { _thd.start(); _chat.setLogging(Level.WARNING); _chat.listen(); }
/** * This blocks until _chat.shutdown() called. * * This is run in the main() thread. * * @throws IOException * @throws MalformedContentNameStringException * @throws ConfigurationException */
This blocks until _chat.shutdown() called. This is run in the main() thread
start
{ "repo_name": "gujianxiao/gatewayForMulticom", "path": "apps/ndnChat/src/org/ndnx/ndn/apps/ndnchat/NDNChatText.java", "license": "lgpl-2.1", "size": 5253 }
[ "java.io.IOException", "java.util.logging.Level", "org.ndnx.ndn.config.ConfigurationException", "org.ndnx.ndn.protocol.MalformedContentNameStringException" ]
import java.io.IOException; import java.util.logging.Level; import org.ndnx.ndn.config.ConfigurationException; import org.ndnx.ndn.protocol.MalformedContentNameStringException;
import java.io.*; import java.util.logging.*; import org.ndnx.ndn.config.*; import org.ndnx.ndn.protocol.*;
[ "java.io", "java.util", "org.ndnx.ndn" ]
java.io; java.util; org.ndnx.ndn;
2,287,257
@Override public void visitCode(Code obj) { if (Values.STATIC_INITIALIZER.equals(getMethod().getName())) { state = State.SAW_NOTHING; super.visitCode(obj); } }
void function(Code obj) { if (Values.STATIC_INITIALIZER.equals(getMethod().getName())) { state = State.SAW_NOTHING; super.visitCode(obj); } }
/** * implements the visitor to look for static initializers to find enum generation * * @param obj * the context object of the currently parsed code block */
implements the visitor to look for static initializers to find enum generation
visitCode
{ "repo_name": "rblasch/fb-contrib", "path": "src/main/java/com/mebigfatguy/fbcontrib/detect/DeprecatedTypesafeEnumPattern.java", "license": "lgpl-2.1", "size": 5905 }
[ "com.mebigfatguy.fbcontrib.utils.Values", "org.apache.bcel.classfile.Code" ]
import com.mebigfatguy.fbcontrib.utils.Values; import org.apache.bcel.classfile.Code;
import com.mebigfatguy.fbcontrib.utils.*; import org.apache.bcel.classfile.*;
[ "com.mebigfatguy.fbcontrib", "org.apache.bcel" ]
com.mebigfatguy.fbcontrib; org.apache.bcel;
1,192,149
public QName getSimpleSchemaTypeName(String typeName) { QName qName = (QName) simpleTypetoxsd.get(typeName); if(qName == null){ if((typeName.startsWith("java.lang")||typeName.startsWith("javax.")) && !Exception.class.getName().equals(typeName)){ return...
QName function(String typeName) { QName qName = (QName) simpleTypetoxsd.get(typeName); if(qName == null){ if((typeName.startsWith(STR) typeName.startsWith(STR)) && !Exception.class.getName().equals(typeName)){ return ANY_TYPE; } } return qName; }
/** * Return the schema type QName given the type class name * @param typeName the name of the type * @return the name of the simple type or null if it is not a simple type */
Return the schema type QName given the type class name
getSimpleSchemaTypeName
{ "repo_name": "intalio/axis2", "path": "modules/kernel/src/org/apache/axis2/description/java2wsdl/TypeTable.java", "license": "apache-2.0", "size": 8746 }
[ "javax.xml.namespace.QName" ]
import javax.xml.namespace.QName;
import javax.xml.namespace.*;
[ "javax.xml" ]
javax.xml;
1,357,213
public PropertyOwner retrieveUserProperties(String strRegistrationKey) { if (this.getTask() != null) return this.getTask().retrieveUserProperties(strRegistrationKey); return null; // Not found }
PropertyOwner function(String strRegistrationKey) { if (this.getTask() != null) return this.getTask().retrieveUserProperties(strRegistrationKey); return null; }
/** * Retrieve/Create a user properties record with this lookup key. * @param strRegistrationKey The key I'm looking up. * @return The UserProperties for this registration key. */
Retrieve/Create a user properties record with this lookup key
retrieveUserProperties
{ "repo_name": "jbundle/jbundle", "path": "base/screen/model/src/main/java/org/jbundle/base/screen/model/BasePanel.java", "license": "gpl-3.0", "size": 67866 }
[ "org.jbundle.model.PropertyOwner" ]
import org.jbundle.model.PropertyOwner;
import org.jbundle.model.*;
[ "org.jbundle.model" ]
org.jbundle.model;
1,672,708
@SuppressWarnings(value = "unchecked") private List<String> getDataItemValues(Long itemValueDefinitionId, Collection<Long> dataItemIds) { // Check arguments. if ((itemValueDefinitionId == null) || (dataItemIds == null)) { throw new IllegalArgumentException("A required argument is mi...
@SuppressWarnings(value = STR) List<String> function(Long itemValueDefinitionId, Collection<Long> dataItemIds) { if ((itemValueDefinitionId == null) (dataItemIds == null)) { throw new IllegalArgumentException(STR); } dataItemIds.add(0L); StringBuilder sql = new StringBuilder(); sql.append(STR); sql.append(STR); sql.app...
/** * Get a list of distinct values for a given item value definition ID and collection of data item IDs. * * @param itemValueDefinitionId * @param dataItemIds * @return a case-insensitive sorted List of values. */
Get a list of distinct values for a given item value definition ID and collection of data item IDs
getDataItemValues
{ "repo_name": "OpenAMEE/amee.platform.api", "path": "amee-platform-service/src/main/java/com/amee/service/data/DrillDownDAO.java", "license": "mit", "size": 20728 }
[ "com.amee.domain.AMEEStatus", "java.util.Collection", "java.util.Collections", "java.util.List", "org.hibernate.HibernateException", "org.hibernate.SQLQuery", "org.hibernate.Session" ]
import com.amee.domain.AMEEStatus; import java.util.Collection; import java.util.Collections; import java.util.List; import org.hibernate.HibernateException; import org.hibernate.SQLQuery; import org.hibernate.Session;
import com.amee.domain.*; import java.util.*; import org.hibernate.*;
[ "com.amee.domain", "java.util", "org.hibernate" ]
com.amee.domain; java.util; org.hibernate;
1,912,090
protected void destroyFileSystem(FileSystem fileSystem) throws IOException { Preconditions.checkArgument(fileSystem.equals(workingDir.getFileSystem())); cleanUpWorkingDirectory(workingDir); }
void function(FileSystem fileSystem) throws IOException { Preconditions.checkArgument(fileSystem.equals(workingDir.getFileSystem())); cleanUpWorkingDirectory(workingDir); }
/** * Removes all stuff from the test filesystem. */
Removes all stuff from the test filesystem
destroyFileSystem
{ "repo_name": "vt09/bazel", "path": "src/test/java/com/google/devtools/build/lib/vfs/FileSystemTest.java", "license": "apache-2.0", "size": 42013 }
[ "com.google.common.base.Preconditions", "java.io.IOException" ]
import com.google.common.base.Preconditions; import java.io.IOException;
import com.google.common.base.*; import java.io.*;
[ "com.google.common", "java.io" ]
com.google.common; java.io;
2,146,999
public final MetaProperty<LocalDate> expirationDate() { return _expirationDate; }
final MetaProperty<LocalDate> function() { return _expirationDate; }
/** * The meta-property for the {@code expirationDate} property. * @return the meta-property, not null */
The meta-property for the expirationDate property
expirationDate
{ "repo_name": "McLeodMoores/starling", "path": "projects/integration/src/main/java/com/opengamma/integration/tool/portfolio/xml/v1_0/jaxb/SwaptionTrade.java", "license": "apache-2.0", "size": 27209 }
[ "org.joda.beans.MetaProperty", "org.threeten.bp.LocalDate" ]
import org.joda.beans.MetaProperty; import org.threeten.bp.LocalDate;
import org.joda.beans.*; import org.threeten.bp.*;
[ "org.joda.beans", "org.threeten.bp" ]
org.joda.beans; org.threeten.bp;
1,780,073
public List<Path> getAllPaths() { return paths; }
List<Path> function() { return paths; }
/** * Get all graph paths. * @return all graph paths. */
Get all graph paths
getAllPaths
{ "repo_name": "StarshiStrelok/sonya", "path": "sonya-transport/src/main/java/ss/sonya/transport/search/Graph.java", "license": "gpl-3.0", "size": 10073 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,455,098
public static JSONArray getJSONArray(String jsonData, String key, JSONArray defaultValue) { if (StringUtils.isEmpty(jsonData)) { return defaultValue; } try { JSONObject jsonObject = new JSONObject(jsonData); return getJSONArray(jsonObject, key, def...
static JSONArray function(String jsonData, String key, JSONArray defaultValue) { if (StringUtils.isEmpty(jsonData)) { return defaultValue; } try { JSONObject jsonObject = new JSONObject(jsonData); return getJSONArray(jsonObject, key, defaultValue); } catch (JSONException e) { if (isPrintException) { e.printStackTrace()...
/** * get JSONArray from jsonData * * @param jsonData * @param key * @param defaultValue * @return <ul> * <li>if jsonObject is null, return defaultValue</li> * <li>if jsonData {@link JSONObject#JSONObject(String)} exception, * return defaultValue</li> * <li>return * {@link JSONUtils#get...
get JSONArray from jsonData
getJSONArray
{ "repo_name": "TechshinoEyeKey/android_sdk", "path": "app/src/main/java/com/techshino/eyekeydemo/utils/JSONUtils.java", "license": "apache-2.0", "size": 19673 }
[ "org.json.JSONArray", "org.json.JSONException", "org.json.JSONObject" ]
import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,402,565
//ODE_API public static void dWorldSetCFM (DWorld w, double cfm) { w.setCFM(cfm); }
static void function (DWorld w, double cfm) { w.setCFM(cfm); }
/** * Set the global CFM (constraint force mixing) value. * @param cfm Typical values are in the range @m{10^{-9}} -- 1. * The default is 10^-5 if single precision is being used, or 10^-10 * if double precision is being used. */
Set the global CFM (constraint force mixing) value
dWorldSetCFM
{ "repo_name": "billhj/Etoile-java", "path": "Ode4j/src/org/ode4j/cpp/internal/ApiCppWorld.java", "license": "mit", "size": 19846 }
[ "org.ode4j.ode.DWorld" ]
import org.ode4j.ode.DWorld;
import org.ode4j.ode.*;
[ "org.ode4j.ode" ]
org.ode4j.ode;
2,438,677
private static <K, V> long computeCount(IgniteCache<K, V> cache, ScanQuery<K, V> qry) { try (QueryCursor<UpstreamEntry<K, V>> cursor = cache.query(qry, e -> new UpstreamEntry<>(e.getKey(), e.getValue()))) { return computeCount(cursor.iterator()); } }
static <K, V> long function(IgniteCache<K, V> cache, ScanQuery<K, V> qry) { try (QueryCursor<UpstreamEntry<K, V>> cursor = cache.query(qry, e -> new UpstreamEntry<>(e.getKey(), e.getValue()))) { return computeCount(cursor.iterator()); } }
/** * Computes number of entries selected from the cache by the query. * * @param cache Ignite cache with upstream data. * @param qry Cache query. * @param <K> Type of a key in {@code upstream} data. * @param <V> Type of a value in {@code upstream} data. * @return Number of entries su...
Computes number of entries selected from the cache by the query
computeCount
{ "repo_name": "alexzaitzev/ignite", "path": "modules/ml/src/main/java/org/apache/ignite/ml/dataset/impl/cache/util/ComputeUtils.java", "license": "apache-2.0", "size": 13552 }
[ "org.apache.ignite.IgniteCache", "org.apache.ignite.cache.query.QueryCursor", "org.apache.ignite.cache.query.ScanQuery", "org.apache.ignite.ml.dataset.UpstreamEntry" ]
import org.apache.ignite.IgniteCache; import org.apache.ignite.cache.query.QueryCursor; import org.apache.ignite.cache.query.ScanQuery; import org.apache.ignite.ml.dataset.UpstreamEntry;
import org.apache.ignite.*; import org.apache.ignite.cache.query.*; import org.apache.ignite.ml.dataset.*;
[ "org.apache.ignite" ]
org.apache.ignite;
185,098
private static void assertDouble(double a, double b) { long bitsA = Double.doubleToLongBits(a); long bitsB = Double.doubleToLongBits(b); if (bitsA != bitsB) { throw new ComparisonFailure("value different to expected", new String(HexDump.longToHex(bitsA)), new String(HexDump.longToHex(bitsB))); } }
static void function(double a, double b) { long bitsA = Double.doubleToLongBits(a); long bitsB = Double.doubleToLongBits(b); if (bitsA != bitsB) { throw new ComparisonFailure(STR, new String(HexDump.longToHex(bitsA)), new String(HexDump.longToHex(bitsB))); } }
/** * Just so there is no ambiguity. The two double values have to be exactly equal */
Just so there is no ambiguity. The two double values have to be exactly equal
assertDouble
{ "repo_name": "tobyclemson/msci-project", "path": "vendor/poi-3.6/src/testcases/org/apache/poi/hssf/record/formula/eval/TestMinusZeroResult.java", "license": "mit", "size": 5780 }
[ "junit.framework.ComparisonFailure", "org.apache.poi.util.HexDump" ]
import junit.framework.ComparisonFailure; import org.apache.poi.util.HexDump;
import junit.framework.*; import org.apache.poi.util.*;
[ "junit.framework", "org.apache.poi" ]
junit.framework; org.apache.poi;
617,148
public Geometry parse(String text) throws ParseException { return read(new StringReader(text)); }
Geometry function(String text) throws ParseException { return read(new StringReader(text)); }
/** * Takes a string containing well known text geometry description and wraps it in a Reader which * is then passed on to parseWKT for handling. * * @param text A string containing the well known text to be parsed. * @return Geometry indicated by text (as created with current factories) *...
Takes a string containing well known text geometry description and wraps it in a Reader which is then passed on to parseWKT for handling
parse
{ "repo_name": "geotools/geotools", "path": "modules/library/main/src/main/java/org/geotools/geometry/iso/text/WKTParser.java", "license": "lgpl-2.1", "size": 26026 }
[ "java.io.StringReader", "java.text.ParseException", "org.opengis.geometry.Geometry" ]
import java.io.StringReader; import java.text.ParseException; import org.opengis.geometry.Geometry;
import java.io.*; import java.text.*; import org.opengis.geometry.*;
[ "java.io", "java.text", "org.opengis.geometry" ]
java.io; java.text; org.opengis.geometry;
1,760,088
public FTPFile[] getFiles() throws IOException // TODO remove; not actually thrown { return getFiles(FTPFileFilters.NON_NULL); }
FTPFile[] function() throws IOException { return getFiles(FTPFileFilters.NON_NULL); }
/** * Returns an array of FTPFile objects containing the whole list of * files returned by the server as read by this object's parser. * * @return an array of FTPFile objects containing the whole list of * files returned by the server as read by this object's parser. * None of the entries will be null...
Returns an array of FTPFile objects containing the whole list of files returned by the server as read by this object's parser
getFiles
{ "repo_name": "AriaLyy/Aria", "path": "FtpComponent/src/main/java/aria/apache/commons/net/ftp/FTPListParseEngine.java", "license": "apache-2.0", "size": 12183 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
780,092
private void sendChangeNotification() { if (mBound) { log("send change notif request"); Message msg = Message.obtain(null, CbService.MSG_CHANGE_NOTIFICATION, 0, 0); try { msg.replyTo = mMessenger; mService.send(msg); } catch (RemoteException e) { // e.printStackTrace(); ...
void function() { if (mBound) { log(STR); Message msg = Message.obtain(null, CbService.MSG_CHANGE_NOTIFICATION, 0, 0); try { msg.replyTo = mMessenger; mService.send(msg); } catch (RemoteException e) { } } else { } }
/** * Send a message with a good replyTo for the Service to send * notifications through. */
Send a message with a good replyTo for the Service to send notifications through
sendChangeNotification
{ "repo_name": "eric-stanley/pressureNET", "path": "src/ca/cumulonimbus/barometernetwork/BarometerNetworkActivity.java", "license": "gpl-3.0", "size": 117914 }
[ "android.os.Message", "android.os.RemoteException", "ca.cumulonimbus.pressurenetsdk.CbService" ]
import android.os.Message; import android.os.RemoteException; import ca.cumulonimbus.pressurenetsdk.CbService;
import android.os.*; import ca.cumulonimbus.pressurenetsdk.*;
[ "android.os", "ca.cumulonimbus.pressurenetsdk" ]
android.os; ca.cumulonimbus.pressurenetsdk;
220,504
public Builder purgeInterval(final int n, final TimeUnit u) { return new Builder(base, targets, Optional.of(u.toMillis(n)), resetIntervalMs); }
Builder function(final int n, final TimeUnit u) { return new Builder(base, targets, Optional.of(u.toMillis(n)), resetIntervalMs); }
/** * <p> * Set the frequency at which the {@link Summary}'s children are evicted * to prevent staleness. * </p> * * @return A <em>copy</em> of the original {@link Builder} with the new * target value. */
Set the frequency at which the <code>Summary</code>'s children are evicted to prevent staleness.
purgeInterval
{ "repo_name": "kevinyien/client_java", "path": "client/src/main/java/io/prometheus/client/metrics/Summary.java", "license": "apache-2.0", "size": 21093 }
[ "com.google.common.base.Optional", "java.util.concurrent.TimeUnit" ]
import com.google.common.base.Optional; import java.util.concurrent.TimeUnit;
import com.google.common.base.*; import java.util.concurrent.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,059,917
private List<String> writeDictionary(CarbonDictionaryWriter dictionaryWriter, Boolean isDictExists) throws IOException { List<String> distinctValues = new ArrayList<>(); try { if (!isDictExists) { dictionaryWriter.write(CarbonCommonConstants.MEMBER_DEFAULT_...
List<String> function(CarbonDictionaryWriter dictionaryWriter, Boolean isDictExists) throws IOException { List<String> distinctValues = new ArrayList<>(); try { if (!isDictExists) { dictionaryWriter.write(CarbonCommonConstants.MEMBER_DEFAULT_VAL); distinctValues.add(CarbonCommonConstants.MEMBER_DEFAULT_VAL); } if (reve...
/** * write dictionary to file * * @param dictionaryWriter * @param isDictExists * @return * @throws IOException */
write dictionary to file
writeDictionary
{ "repo_name": "sgururajshetty/carbondata", "path": "core/src/main/java/org/apache/carbondata/core/dictionary/generator/IncrementalColumnDictionaryGenerator.java", "license": "apache-2.0", "size": 10058 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.carbondata.core.constants.CarbonCommonConstants", "org.apache.carbondata.core.util.DataTypeUtil", "org.apache.carbondata.core.writer.CarbonDictionaryWriter" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.carbondata.core.constants.CarbonCommonConstants; import org.apache.carbondata.core.util.DataTypeUtil; import org.apache.carbondata.core.writer.CarbonDictionaryWriter;
import java.io.*; import java.util.*; import org.apache.carbondata.core.constants.*; import org.apache.carbondata.core.util.*; import org.apache.carbondata.core.writer.*;
[ "java.io", "java.util", "org.apache.carbondata" ]
java.io; java.util; org.apache.carbondata;
1,338,003
public void setQuery(String query) { _query = safeString(query); if (_query != null) { // turn com/caucho/vfs/Path.html#method() style submissions // into appropriate ones CharBuffer cb = new CharBuffer(_query); // take .html out int di = cb.indexOf(".html"); if (di > ...
void function(String query) { _query = safeString(query); if (_query != null) { CharBuffer cb = new CharBuffer(_query); int di = cb.indexOf(".html"); if (di > -1) cb.delete(di,di+5); while ( (di = cb.indexOf('(')) > -1) { int di2 = cb.indexOf(')',di); if (di2 > di) cb.delete(di,di2+1); } for (int i = 0; i < cb.length()...
/** * The query string submitted by the user. */
The query string submitted by the user
setQuery
{ "repo_name": "dlitz/resin", "path": "modules/javadoc/src/com/caucho/doc/javadoc/Query.java", "license": "gpl-2.0", "size": 5776 }
[ "com.caucho.util.CharBuffer" ]
import com.caucho.util.CharBuffer;
import com.caucho.util.*;
[ "com.caucho.util" ]
com.caucho.util;
2,306,187
public Source getSource(String location, Map parameters) throws IOException { Map objectModel = ContextHelper.getObjectModel(this.context); return new XModuleSource(objectModel, location, this.manager); }
Source function(String location, Map parameters) throws IOException { Map objectModel = ContextHelper.getObjectModel(this.context); return new XModuleSource(objectModel, location, this.manager); }
/** * Get a {@link XModuleSource} object. * * @param location The URI to resolve - this URI includes the scheme. * @param parameters this is optional and not used here */
Get a <code>XModuleSource</code> object
getSource
{ "repo_name": "apache/cocoon", "path": "core/cocoon-sitemap/cocoon-sitemap-components/src/main/java/org/apache/cocoon/components/source/impl/XModuleSourceFactory.java", "license": "apache-2.0", "size": 2827 }
[ "java.io.IOException", "java.util.Map", "org.apache.cocoon.components.ContextHelper", "org.apache.excalibur.source.Source" ]
import java.io.IOException; import java.util.Map; import org.apache.cocoon.components.ContextHelper; import org.apache.excalibur.source.Source;
import java.io.*; import java.util.*; import org.apache.cocoon.components.*; import org.apache.excalibur.source.*;
[ "java.io", "java.util", "org.apache.cocoon", "org.apache.excalibur" ]
java.io; java.util; org.apache.cocoon; org.apache.excalibur;
103,441
public Script parse(File file) throws CompilationFailedException, IOException { return parse(new GroovyCodeSource(file, config.getSourceEncoding())); }
Script function(File file) throws CompilationFailedException, IOException { return parse(new GroovyCodeSource(file, config.getSourceEncoding())); }
/** * Parses the given script and returns it ready to be run * * @param file is the file of the script (which is used to create the class name of the script) */
Parses the given script and returns it ready to be run
parse
{ "repo_name": "uchoice/exf", "path": "exf-core/src/main/java/net/uchoice/exf/core/expression/groovy/GroovyShell.java", "license": "apache-2.0", "size": 30485 }
[ "groovy.lang.GroovyCodeSource", "groovy.lang.Script", "java.io.File", "java.io.IOException", "org.codehaus.groovy.control.CompilationFailedException" ]
import groovy.lang.GroovyCodeSource; import groovy.lang.Script; import java.io.File; import java.io.IOException; import org.codehaus.groovy.control.CompilationFailedException;
import groovy.lang.*; import java.io.*; import org.codehaus.groovy.control.*;
[ "groovy.lang", "java.io", "org.codehaus.groovy" ]
groovy.lang; java.io; org.codehaus.groovy;
2,743,288
private void postRunQuery(LibraryAdapter adapter) { mRequeryNeeded[adapter.getMediaType()] = false; Handler handler = mWorkerHandler; handler.removeMessages(MSG_RUN_QUERY, adapter); handler.sendMessage(handler.obtainMessage(MSG_RUN_QUERY, adapter)); }
void function(LibraryAdapter adapter) { mRequeryNeeded[adapter.getMediaType()] = false; Handler handler = mWorkerHandler; handler.removeMessages(MSG_RUN_QUERY, adapter); handler.sendMessage(handler.obtainMessage(MSG_RUN_QUERY, adapter)); }
/** * Schedule a query to be run for the given adapter on the worker thread. * * @param adapter The adapter to run the query for. */
Schedule a query to be run for the given adapter on the worker thread
postRunQuery
{ "repo_name": "vanilla-music/vanilla", "path": "app/src/main/java/ch/blinkenlights/android/vanilla/LibraryPagerAdapter.java", "license": "gpl-3.0", "size": 28824 }
[ "android.os.Handler" ]
import android.os.Handler;
import android.os.*;
[ "android.os" ]
android.os;
2,858,610
ImmutableList<ChildNumber> path = key.getPath(); // Update our tracking of what the next child in each branch of the tree should be. Just assume that keys are // inserted in order here. final DeterministicEd25519Key parent = key.getParent(); if (parent != null) lastChildNumbe...
ImmutableList<ChildNumber> path = key.getPath(); final DeterministicEd25519Key parent = key.getParent(); if (parent != null) lastChildNumbers.put(parent.getPath(), key.getChildNumber()); keys.put(path, key); }
/** * Inserts a key into the heirarchy. Used during deserialization: you normally don't need this. Keys must be * inserted in order. */
Inserts a key into the heirarchy. Used during deserialization: you normally don't need this. Keys must be inserted in order
putKey
{ "repo_name": "kryptohash/kryptohash-android", "path": "app/src/main/java/com/github/kryptohash/kryptohashj/crypto/DeterministicHierarchy.java", "license": "gpl-3.0", "size": 8347 }
[ "com.google.common.collect.ImmutableList" ]
import com.google.common.collect.ImmutableList;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
379,533
public void explain(String alias, PrintStream stream) throws IOException { explain(alias, "text", true, false, stream, stream, stream); }
void function(String alias, PrintStream stream) throws IOException { explain(alias, "text", true, false, stream, stream, stream); }
/** * Provide information on how a pig query will be executed. For now * this information is very developer focussed, and probably not very * useful to the average user. * @param alias Name of alias to explain. * @param stream PrintStream to write explanation to. * @throws IOException if ...
Provide information on how a pig query will be executed. For now this information is very developer focussed, and probably not very useful to the average user
explain
{ "repo_name": "d601/pig", "path": "src/org/apache/pig/PigServer.java", "license": "apache-2.0", "size": 66737 }
[ "java.io.IOException", "java.io.PrintStream" ]
import java.io.IOException; import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
2,186,230
@Test public void testT1RV6D4_T1LV2D4() { test_id = getTestId("T1RV6D4", "T1LV2D4", "172"); String src = selectTRVD("T1RV6D4"); String dest = selectTLVD("T1LV2D4"); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace()...
void function() { test_id = getTestId(STR, STR, "172"); String src = selectTRVD(STR); String dest = selectTLVD(STR); String result = "."; try { result = TRVD_TLVD_Action(src, dest); } catch (RecognitionException e) { e.printStackTrace(); } catch (TokenStreamException e) { e.printStackTrace(); } assertTrue(Failure3, che...
/** * Perform the test for the given matrix column (T1RV6D4) and row (T1LV2D4). * */
Perform the test for the given matrix column (T1RV6D4) and row (T1LV2D4)
testT1RV6D4_T1LV2D4
{ "repo_name": "jason-rhodes/bridgepoint", "path": "src/org.xtuml.bp.als.oal.test/src/org/xtuml/bp/als/oal/test/SingleDimensionFixedArrayAssigmentTest_12_Generics.java", "license": "apache-2.0", "size": 155634 }
[ "org.xtuml.bp.ui.graphics.editor.GraphicalEditor" ]
import org.xtuml.bp.ui.graphics.editor.GraphicalEditor;
import org.xtuml.bp.ui.graphics.editor.*;
[ "org.xtuml.bp" ]
org.xtuml.bp;
1,489,468
DocumentLock getLock(DocumentReference document);
DocumentLock getLock(DocumentReference document);
/** * Checks if the specified document is locked. * * @param document the target document * @return {@link DocumentLock} if lock exists, {@code null} if this module cannot find a lock */
Checks if the specified document is locked
getLock
{ "repo_name": "teyden/phenotips", "path": "components/xwiki-locks/src/main/java/org/xwiki/locks/LockModule.java", "license": "agpl-3.0", "size": 1377 }
[ "org.xwiki.model.reference.DocumentReference" ]
import org.xwiki.model.reference.DocumentReference;
import org.xwiki.model.reference.*;
[ "org.xwiki.model" ]
org.xwiki.model;
882,537
public void handleQuery() throws Exception { if (this.statement.hasException()) { this.handleError(this.statement.getException()); } else { if (this.statement.getCommand().equalsIgnoreCase(COPY)) { CopyStatement copyStatement = (CopyStatement) this.statement; new CopyInResponse( ...
void function() throws Exception { if (this.statement.hasException()) { this.handleError(this.statement.getException()); } else { if (this.statement.getCommand().equalsIgnoreCase(COPY)) { CopyStatement copyStatement = (CopyStatement) this.statement; new CopyInResponse( this.outputStream, copyStatement.getTableColumns()...
/** * Simple Query handler, which examined the state of the statement and processes accordingly (if * error, handle error, otherwise sends the result and if contains result set, send row * description) * * @throws Exception */
Simple Query handler, which examined the state of the statement and processes accordingly (if error, handle error, otherwise sends the result and if contains result set, send row description)
handleQuery
{ "repo_name": "GoogleCloudPlatform/pgadapter", "path": "src/main/java/com/google/cloud/spanner/pgadapter/wireprotocol/QueryMessage.java", "license": "apache-2.0", "size": 4614 }
[ "com.google.cloud.spanner.pgadapter.ConnectionHandler", "com.google.cloud.spanner.pgadapter.statements.CopyStatement", "com.google.cloud.spanner.pgadapter.wireoutput.CopyInResponse", "com.google.cloud.spanner.pgadapter.wireoutput.ReadyResponse", "com.google.cloud.spanner.pgadapter.wireoutput.RowDescriptionR...
import com.google.cloud.spanner.pgadapter.ConnectionHandler; import com.google.cloud.spanner.pgadapter.statements.CopyStatement; import com.google.cloud.spanner.pgadapter.wireoutput.CopyInResponse; import com.google.cloud.spanner.pgadapter.wireoutput.ReadyResponse; import com.google.cloud.spanner.pgadapter.wireoutput.R...
import com.google.cloud.spanner.pgadapter.*; import com.google.cloud.spanner.pgadapter.statements.*; import com.google.cloud.spanner.pgadapter.wireoutput.*;
[ "com.google.cloud" ]
com.google.cloud;
2,405,308
public Cluster getCluster(ViewInstanceDefinition viewInstance) { if (viewInstance != null) { Long clusterId = viewInstance.getClusterHandle(); if (clusterId != null && viewInstance.getClusterType() == ClusterType.LOCAL_AMBARI) { try { return new ClusterImpl(clustersProvider.get().ge...
Cluster function(ViewInstanceDefinition viewInstance) { if (viewInstance != null) { Long clusterId = viewInstance.getClusterHandle(); if (clusterId != null && viewInstance.getClusterType() == ClusterType.LOCAL_AMBARI) { try { return new ClusterImpl(clustersProvider.get().getCluster(clusterId)); } catch (AmbariException...
/** * Get the cluster associated with the given view instance. * * @param viewInstance the view instance * @return the cluster */
Get the cluster associated with the given view instance
getCluster
{ "repo_name": "alexryndin/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java", "license": "apache-2.0", "size": 89041 }
[ "java.net.MalformedURLException", "org.apache.ambari.server.AmbariException", "org.apache.ambari.server.ClusterNotFoundException", "org.apache.ambari.view.ClusterType", "org.apache.ambari.view.ViewInstanceDefinition", "org.apache.ambari.view.cluster.Cluster" ]
import java.net.MalformedURLException; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.ClusterNotFoundException; import org.apache.ambari.view.ClusterType; import org.apache.ambari.view.ViewInstanceDefinition; import org.apache.ambari.view.cluster.Cluster;
import java.net.*; import org.apache.ambari.server.*; import org.apache.ambari.view.*; import org.apache.ambari.view.cluster.*;
[ "java.net", "org.apache.ambari" ]
java.net; org.apache.ambari;
2,507,266
public void neighborChanged(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { if (!worldIn.isRemote) { if (this.isOn && !worldIn.isBlockPowered(pos)) { worldIn.scheduleUpdate(pos, this, 4); } else if...
void function(IBlockState state, World worldIn, BlockPos pos, Block blockIn, BlockPos fromPos) { if (!worldIn.isRemote) { if (this.isOn && !worldIn.isBlockPowered(pos)) { worldIn.scheduleUpdate(pos, this, 4); } else if (!this.isOn && worldIn.isBlockPowered(pos)) { worldIn.setBlockState(pos, Blocks.LIT_REDSTONE_LAMP.get...
/** * Called when a neighboring block was changed and marks that this state should perform any checks during a neighbor * change. Cases may include when redstone power is updated, cactus blocks popping off due to a neighboring solid * block, etc. */
Called when a neighboring block was changed and marks that this state should perform any checks during a neighbor change. Cases may include when redstone power is updated, cactus blocks popping off due to a neighboring solid block, etc
neighborChanged
{ "repo_name": "TheGreatAndPowerfulWeegee/wipunknown", "path": "build/tmp/recompileMc/sources/net/minecraft/block/BlockRedstoneLight.java", "license": "gpl-3.0", "size": 2808 }
[ "net.minecraft.block.state.IBlockState", "net.minecraft.init.Blocks", "net.minecraft.util.math.BlockPos", "net.minecraft.world.World" ]
import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.util.math.BlockPos; import net.minecraft.world.World;
import net.minecraft.block.state.*; import net.minecraft.init.*; import net.minecraft.util.math.*; import net.minecraft.world.*;
[ "net.minecraft.block", "net.minecraft.init", "net.minecraft.util", "net.minecraft.world" ]
net.minecraft.block; net.minecraft.init; net.minecraft.util; net.minecraft.world;
2,851,058
@SuppressWarnings("unchecked") protected <QB extends QueryBuilder> QB assertSerialization(QB testQuery) throws IOException { try (BytesStreamOutput output = new BytesStreamOutput()) { output.writeQuery(testQuery); try (StreamInput in = new NamedWriteableAwareStreamInput(StreamInp...
@SuppressWarnings(STR) <QB extends QueryBuilder> QB function(QB testQuery) throws IOException { try (BytesStreamOutput output = new BytesStreamOutput()) { output.writeQuery(testQuery); try (StreamInput in = new NamedWriteableAwareStreamInput(StreamInput.wrap(output.bytes()), namedWriteableRegistry)) { QueryBuilder<?> d...
/** * Serialize the given query builder and asserts that both are equal */
Serialize the given query builder and asserts that both are equal
assertSerialization
{ "repo_name": "xuzha/elasticsearch", "path": "core/src/test/java/org/elasticsearch/index/query/AbstractQueryTestCase.java", "license": "apache-2.0", "size": 48139 }
[ "java.io.IOException", "org.elasticsearch.common.io.stream.BytesStreamOutput", "org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput", "org.elasticsearch.common.io.stream.StreamInput" ]
import java.io.IOException; import org.elasticsearch.common.io.stream.BytesStreamOutput; import org.elasticsearch.common.io.stream.NamedWriteableAwareStreamInput; import org.elasticsearch.common.io.stream.StreamInput;
import java.io.*; import org.elasticsearch.common.io.stream.*;
[ "java.io", "org.elasticsearch.common" ]
java.io; org.elasticsearch.common;
1,732,389
public void addNickname(org.ontoware.rdf2go.model.node.Node value) { Base.add(this.model, this.getResource(), NICKNAME, value); }
void function(org.ontoware.rdf2go.model.node.Node value) { Base.add(this.model, this.getResource(), NICKNAME, value); }
/** * Adds a value to property Nickname as an RDF2Go node * * @param value the value to be added [Generated from RDFReactor template * rule #add1dynamic] */
Adds a value to property Nickname as an RDF2Go node
addNickname
{ "repo_name": "m0ep/master-thesis", "path": "source/apis/rdf2go/rdf2go-foaf/src/main/java/com/xmlns/foaf/Thing.java", "license": "mit", "size": 274766 }
[ "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.rdfreactor" ]
org.ontoware.rdfreactor;
2,810,009
private void emit_header() throws java.io.IOException { if (CUtility.DEBUG) { CUtility.jassert(null != m_spec); CUtility.jassert(null != m_outstr); } m_outstr.append("\n"); // m_outstr.append("import mg.egg.eggc.runtime.libjava.lex.*;"); if (true == m_spec.m_public) { m_outstr.append("public "); ...
void function() throws java.io.IOException { if (CUtility.DEBUG) { CUtility.jassert(null != m_spec); CUtility.jassert(null != m_outstr); } m_outstr.append("\n"); if (true == m_spec.m_public) { m_outstr.append(STR); } m_outstr.append(STR); m_outstr.append(new String(m_spec.m_class_name, 0, m_spec.m_class_name.length)); ...
/*************************************************************************** * Function: emit_header Description: Emits class header. **************************************************************************/
Function: emit_header Description: Emits class header
emit_header
{ "repo_name": "arthaud/egg", "path": "src/mg/egg/eggc/compiler/libegg/jlex/Main.java", "license": "gpl-2.0", "size": 229330 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,902,667
@Test public void TestScientific() { DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); // Test pattern round-trip final String PAT[] = { "#E0", "0.####E0", "00.000E00", "##0.####E000", "0.###E0;[0.###E0]" }; int PAT_length = PAT.length; int DIGITS[] = { ...
void function() { DecimalFormatSymbols US = new DecimalFormatSymbols(Locale.US); final String PAT[] = { "#E0", STR, STR, STR, STR }; int PAT_length = PAT.length; int DIGITS[] = { 0, 1, 0, 0, 1, 1, 0, 4, 2, 2, 3, 3, 1, 3, 0, 4, 1, 1, 0, 3, }; for (int i = 0; i < PAT_length; ++i) { String pat = PAT[i]; DecimalFormat df =...
/** * Upgrade to alphaWorks */
Upgrade to alphaWorks
TestScientific
{ "repo_name": "life-beam/j2objc", "path": "jre_emul/android/platform/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/format/NumberFormatTest.java", "license": "apache-2.0", "size": 222669 }
[ "android.icu.text.DecimalFormat", "android.icu.text.DecimalFormatSymbols", "android.icu.text.NumberFormat", "android.icu.util.ULocale", "java.util.Locale" ]
import android.icu.text.DecimalFormat; import android.icu.text.DecimalFormatSymbols; import android.icu.text.NumberFormat; import android.icu.util.ULocale; import java.util.Locale;
import android.icu.text.*; import android.icu.util.*; import java.util.*;
[ "android.icu", "java.util" ]
android.icu; java.util;
2,644,140
CompletableFuture<Boolean> deleteNode(ResourceId path);
CompletableFuture<Boolean> deleteNode(ResourceId path);
/** * Removes a node from the dynamic config store. * This would fail if the requested node or any of the parent nodes in the * path were not present or the specified node is the root node or has one * or more children. * * @param path data structure with absolute path to the intended nod...
Removes a node from the dynamic config store. This would fail if the requested node or any of the parent nodes in the path were not present or the specified node is the root node or has one or more children
deleteNode
{ "repo_name": "LorenzReinhart/ONOSnew", "path": "apps/config/src/main/java/org/onosproject/config/DynamicConfigStore.java", "license": "apache-2.0", "size": 5457 }
[ "java.util.concurrent.CompletableFuture", "org.onosproject.yang.model.ResourceId" ]
import java.util.concurrent.CompletableFuture; import org.onosproject.yang.model.ResourceId;
import java.util.concurrent.*; import org.onosproject.yang.model.*;
[ "java.util", "org.onosproject.yang" ]
java.util; org.onosproject.yang;
1,438,855
public void setMessageBoxType(MessageBoxType type) throws RemoteException;
void function(MessageBoxType type) throws RemoteException;
/** * Sets the {@link MessageBoxType type} of this message box. * * @param type * the message box type * * @throws RemoteException * remote communication problem */
Sets the <code>MessageBoxType type</code> of this message box
setMessageBoxType
{ "repo_name": "jenkinsci/piketec-tpt-plugin", "path": "src/main/java/com/piketec/tpt/api/steplist/MessageBoxStep.java", "license": "mit", "size": 3939 }
[ "java.rmi.RemoteException" ]
import java.rmi.RemoteException;
import java.rmi.*;
[ "java.rmi" ]
java.rmi;
448,935
public static Condition newEqualsCondition(@Nullable Object value) { return new Condition(Type.EQUALS, value); }
static Condition function(@Nullable Object value) { return new Condition(Type.EQUALS, value); }
/** * Creates a new equals condition with the given value. * * @param value the value to compare to. * @return the equals condition. */
Creates a new equals condition with the given value
newEqualsCondition
{ "repo_name": "stillalex/jackrabbit-oak", "path": "oak-store-document/src/main/java/org/apache/jackrabbit/oak/plugins/document/UpdateOp.java", "license": "apache-2.0", "size": 18178 }
[ "org.jetbrains.annotations.Nullable" ]
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
312,532
public static String normalizeColumnValueForItsDataType(String value, ColumnSchema columnSchema) { try { Object parsedValue = null; switch (columnSchema.getDataType()) { case DECIMAL: return parseStringToBigDecimal(value, columnSchema); case SHORT: case INT: c...
static String function(String value, ColumnSchema columnSchema) { try { Object parsedValue = null; switch (columnSchema.getDataType()) { case DECIMAL: return parseStringToBigDecimal(value, columnSchema); case SHORT: case INT: case LONG: parsedValue = normalizeIntAndLongValues(value, columnSchema.getDataType()); break; ...
/** * This method will parse a given string value corresponding to its data type * * @param value value to parse * @param columnSchema dimension to get data type and precision and scale in case of decimal * data type * @return */
This method will parse a given string value corresponding to its data type
normalizeColumnValueForItsDataType
{ "repo_name": "Sephiroth-Lin/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/core/util/DataTypeUtil.java", "license": "apache-2.0", "size": 22305 }
[ "org.apache.carbondata.core.metadata.schema.table.column.ColumnSchema" ]
import org.apache.carbondata.core.metadata.schema.table.column.ColumnSchema;
import org.apache.carbondata.core.metadata.schema.table.column.*;
[ "org.apache.carbondata" ]
org.apache.carbondata;
645,257
public void each(@ClosureParams(value=SimpleType.class, options="groovy.sql.GroovyResultSet") Closure closure) throws SQLException { eachRow(getSql(), getParameters(), closure); }
void function(@ClosureParams(value=SimpleType.class, options=STR) Closure closure) throws SQLException { eachRow(getSql(), getParameters(), closure); }
/** * Calls the provided closure for each of the rows of the table represented by this DataSet. * * @param closure called for each row with a GroovyResultSet * @throws SQLException if a database access error occurs * @see groovy.sql.Sql#eachRow(String, java.util.List, groovy.lang.Closure) ...
Calls the provided closure for each of the rows of the table represented by this DataSet
each
{ "repo_name": "avafanasiev/groovy", "path": "subprojects/groovy-sql/src/main/java/groovy/sql/DataSet.java", "license": "apache-2.0", "size": 17977 }
[ "groovy.lang.Closure", "groovy.transform.stc.ClosureParams", "groovy.transform.stc.SimpleType", "java.sql.SQLException" ]
import groovy.lang.Closure; import groovy.transform.stc.ClosureParams; import groovy.transform.stc.SimpleType; import java.sql.SQLException;
import groovy.lang.*; import groovy.transform.stc.*; import java.sql.*;
[ "groovy.lang", "groovy.transform.stc", "java.sql" ]
groovy.lang; groovy.transform.stc; java.sql;
1,057,704
public void addPackages( final Collection<InternalKnowledgePackage> newPkgs ) { final List<InternalKnowledgePackage> clonedPkgs = new ArrayList<InternalKnowledgePackage>(); for (InternalKnowledgePackage newPkg : newPkgs) { clonedPkgs.add(newPkg.deepCloneIfAlreadyInUse(rootClassLoader)); ...
void function( final Collection<InternalKnowledgePackage> newPkgs ) { final List<InternalKnowledgePackage> clonedPkgs = new ArrayList<InternalKnowledgePackage>(); for (InternalKnowledgePackage newPkg : newPkgs) { clonedPkgs.add(newPkg.deepCloneIfAlreadyInUse(rootClassLoader)); } if (lock.writeLock().tryLock()) { try { ...
/** * Add a <code>Package</code> to the network. Iterates through the * <code>Package</code> adding Each individual <code>Rule</code> to the * network. Before update network each referenced <code>WorkingMemory</code> * is locked. * * @param newPkgs The package to add. */
Add a <code>Package</code> to the network. Iterates through the <code>Package</code> adding Each individual <code>Rule</code> to the network. Before update network each referenced <code>WorkingMemory</code> is locked
addPackages
{ "repo_name": "ThiagoGarciaAlves/drools", "path": "drools-core/src/main/java/org/drools/core/impl/KnowledgeBaseImpl.java", "license": "apache-2.0", "size": 75900 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.List", "org.drools.core.definitions.InternalKnowledgePackage" ]
import java.util.ArrayList; import java.util.Collection; import java.util.List; import org.drools.core.definitions.InternalKnowledgePackage;
import java.util.*; import org.drools.core.definitions.*;
[ "java.util", "org.drools.core" ]
java.util; org.drools.core;
2,210,477
public Dimension minimumLayoutSize(Container parent) { return parent.getMinimumSize(); }
Dimension function(Container parent) { return parent.getMinimumSize(); }
/** * Returns the minimum layout size. * * @param parent the container. * * @return The minimum size. */
Returns the minimum layout size
minimumLayoutSize
{ "repo_name": "taciano-perez/JamVM-PH", "path": "src/classpath/javax/swing/plaf/basic/BasicComboBoxUI.java", "license": "gpl-2.0", "size": 40740 }
[ "java.awt.Container", "java.awt.Dimension" ]
import java.awt.Container; import java.awt.Dimension;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,670,220
public ExpressionClause<RecipientListDefinition<Type>> recipientList() { RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>(); addOutput(answer); return ExpressionClause.createAndSetExpression(answer); } /** * <a href="http://camel.apache.org/routing-slip....
ExpressionClause<RecipientListDefinition<Type>> function() { RecipientListDefinition<Type> answer = new RecipientListDefinition<Type>(); addOutput(answer); return ExpressionClause.createAndSetExpression(answer); } /** * <a href="http: * Creates a routing slip allowing you to route a message consecutively through a seri...
/** * <a href="http://camel.apache.org/recipient-list.html">Recipient List EIP:</a> * Creates a dynamic recipient list allowing you to route messages to a number of dynamically specified recipients * * @return the expression clause to configure the expression to decide the destinations */
Creates a dynamic recipient list allowing you to route messages to a number of dynamically specified recipients
recipientList
{ "repo_name": "gilfernandes/camel", "path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java", "license": "apache-2.0", "size": 165071 }
[ "org.apache.camel.builder.ExpressionClause" ]
import org.apache.camel.builder.ExpressionClause;
import org.apache.camel.builder.*;
[ "org.apache.camel" ]
org.apache.camel;
2,369,445
void removeSenderFromAdvisor(InternalDistributedMember sender, int serial, boolean regionDestroyed) { // nothing needs to be done here since LocalRegion does not have an advisor. }
void removeSenderFromAdvisor(InternalDistributedMember sender, int serial, boolean regionDestroyed) { }
/** * Remove the specified sender from this regions advisor. * * @since GemFire 5.0 */
Remove the specified sender from this regions advisor
removeSenderFromAdvisor
{ "repo_name": "smgoller/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java", "license": "apache-2.0", "size": 395944 }
[ "org.apache.geode.distributed.internal.membership.InternalDistributedMember" ]
import org.apache.geode.distributed.internal.membership.InternalDistributedMember;
import org.apache.geode.distributed.internal.membership.*;
[ "org.apache.geode" ]
org.apache.geode;
970,423
public static void main(String[] args) throws Exception { SimpleCLIPanel panel = new SimpleCLIPanel(); JFrame f = new JFrame(); f.setTitle(Messages.getInstance().getString("SimpleCLIPanel_Main_JFrame_SetText_Text")); f.getContentPane().add(panel); f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE...
static void function(String[] args) throws Exception { SimpleCLIPanel panel = new SimpleCLIPanel(); JFrame f = new JFrame(); f.setTitle(Messages.getInstance().getString(STR)); f.getContentPane().add(panel); f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE); f.pack(); f.setSize(600, 500); f.setVisible(true); }
/** * Main method for testing this class. * * @param args commandline arguments - ignored * @throws Exception if initialization fails */
Main method for testing this class
main
{ "repo_name": "goddesss/DataModeling", "path": "src/weka/gui/SimpleCLIPanel.java", "license": "gpl-2.0", "size": 32051 }
[ "javax.swing.JFrame" ]
import javax.swing.JFrame;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
803,906
public static void startLifecycleAware(Iterable<?> objs) throws IgniteCheckedException { try { for (Object obj : objs) { if (obj instanceof LifecycleAware) ((LifecycleAware)obj).start(); } } catch (Exception e) { throw n...
static void function(Iterable<?> objs) throws IgniteCheckedException { try { for (Object obj : objs) { if (obj instanceof LifecycleAware) ((LifecycleAware)obj).start(); } } catch (Exception e) { throw new IgniteCheckedException(STR + e, e); } } /** * For each object provided by the given {@link Iterable} checks if it i...
/** * For each object provided by the given {@link Iterable} checks if it implements * {@link LifecycleAware} interface and executes {@link LifecycleAware#start} method. * * @param objs Objects. * @throws IgniteCheckedException If {@link LifecycleAware#start} fails. */
For each object provided by the given <code>Iterable</code> checks if it implements <code>LifecycleAware</code> interface and executes <code>LifecycleAware#start</code> method
startLifecycleAware
{ "repo_name": "NSAmelchev/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 388551 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.lifecycle.LifecycleAware" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.lifecycle.LifecycleAware;
import org.apache.ignite.*; import org.apache.ignite.lifecycle.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,549,784
public static int[] getReferencedAttributes(int[][] usageM, int[] queries){ TIntArrayList attrsList = new TIntArrayList(); for(int i=0;i<usageM[0].length;i++){ for(int q: queries){ if(usageM[q][i] > 0){ attrsList.add(i); break; } } } return attrsList.toArray...
static int[] function(int[][] usageM, int[] queries){ TIntArrayList attrsList = new TIntArrayList(); for(int i=0;i<usageM[0].length;i++){ for(int q: queries){ if(usageM[q][i] > 0){ attrsList.add(i); break; } } } return attrsList.toArray(); }
/** * Method for creating a list of attributes that are referenced by a given set of queries. * @param usageM The usage matrix for the whole workload. * @param queries The list of queries to check to referenced attributes for. * @return The array referenced attributes in ascending order. */
Method for creating a list of attributes that are referenced by a given set of queries
getReferencedAttributes
{ "repo_name": "palatinuse/database-vertical-partitioning", "path": "src/db/schema/utils/WorkloadUtils.java", "license": "mit", "size": 3829 }
[ "gnu.trove.list.array.TIntArrayList" ]
import gnu.trove.list.array.TIntArrayList;
import gnu.trove.list.array.*;
[ "gnu.trove.list" ]
gnu.trove.list;
2,770,833
@Test(expected = NullPointerException.class) public void testNullString() throws Exception { // Yep, this will blow up. new PatternFileSelector((String) null); }
@Test(expected = NullPointerException.class) void function() throws Exception { new PatternFileSelector((String) null); }
/** * Tests a null selector. * * @throws Exception */
Tests a null selector
testNullString
{ "repo_name": "wso2/wso2-commons-vfs", "path": "commons-vfs2/src/test/java/org/apache/commons/vfs2/PatternFileSelectorTest.java", "license": "apache-2.0", "size": 4627 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,193,868
public Map<String, FileArtifactValue> getArtifactValues() { return artifactValues; }
Map<String, FileArtifactValue> function() { return artifactValues; }
/** * Returns a mapping of target path to {@link FileArtifactValue}. * * <p>The keyset of this map is a subset of the values in the map returned by {@link #getEntries}. */
Returns a mapping of target path to <code>FileArtifactValue</code>. The keyset of this map is a subset of the values in the map returned by <code>#getEntries</code>
getArtifactValues
{ "repo_name": "twitter-forks/bazel", "path": "src/main/java/com/google/devtools/build/lib/actions/FilesetManifest.java", "license": "apache-2.0", "size": 10927 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
204,425
public void drawRadialGridLines(Graphics2D g2, PolarPlot plot, ValueAxis radialAxis, List ticks, Rectangle2D dataArea) { g2.setFont(radialAxis.getTickLabelFo...
void function(Graphics2D g2, PolarPlot plot, ValueAxis radialAxis, List ticks, Rectangle2D dataArea) { g2.setFont(radialAxis.getTickLabelFont()); g2.setPaint(plot.getRadiusGridlinePaint()); g2.setStroke(plot.getRadiusGridlineStroke()); double axisMin = radialAxis.getLowerBound(); Point center = plot.translateValueTheta...
/** * Draw the radial gridlines - the rings. * * @param g2 the drawing surface. * @param plot the plot. * @param radialAxis the radial axis. * @param ticks the ticks. * @param dataArea the data area. */
Draw the radial gridlines - the rings
drawRadialGridLines
{ "repo_name": "apetresc/JFreeChart", "path": "src/main/java/org/jfree/chart/renderer/DefaultPolarItemRenderer.java", "license": "lgpl-2.1", "size": 11976 }
[ "java.awt.Graphics2D", "java.awt.Point", "java.awt.geom.Ellipse2D", "java.awt.geom.Rectangle2D", "java.util.Iterator", "java.util.List", "org.jfree.chart.axis.NumberTick", "org.jfree.chart.axis.ValueAxis", "org.jfree.chart.plot.PolarPlot" ]
import java.awt.Graphics2D; import java.awt.Point; import java.awt.geom.Ellipse2D; import java.awt.geom.Rectangle2D; import java.util.Iterator; import java.util.List; import org.jfree.chart.axis.NumberTick; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.plot.PolarPlot;
import java.awt.*; import java.awt.geom.*; import java.util.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*;
[ "java.awt", "java.util", "org.jfree.chart" ]
java.awt; java.util; org.jfree.chart;
312,620
public void propertyChange(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(WizardModel.CURRENT_PANEL_DESCRIPTOR_PROPERTY)) { wizardController.resetButtonsToPanelRules(); } else if (evt.getPropertyName().equals(WizardModel.NEXT_FINISH_BUTTON_TEXT_PROPERTY)) { ...
void function(PropertyChangeEvent evt) { if (evt.getPropertyName().equals(WizardModel.CURRENT_PANEL_DESCRIPTOR_PROPERTY)) { wizardController.resetButtonsToPanelRules(); } else if (evt.getPropertyName().equals(WizardModel.NEXT_FINISH_BUTTON_TEXT_PROPERTY)) { nextButton.setText(evt.getNewValue().toString()); } else if (e...
/** * Method used to listen for property change events from the model and update the * dialog's graphical components as necessary. * @param evt PropertyChangeEvent passed from the model to signal that one of its properties has changed value. */
Method used to listen for property change events from the model and update the dialog's graphical components as necessary
propertyChange
{ "repo_name": "SarutaSan72/Yass", "path": "src/com/nexes/wizard/Wizard.java", "license": "gpl-3.0", "size": 15843 }
[ "java.beans.PropertyChangeEvent", "javax.swing.Icon" ]
import java.beans.PropertyChangeEvent; import javax.swing.Icon;
import java.beans.*; import javax.swing.*;
[ "java.beans", "javax.swing" ]
java.beans; javax.swing;
615,326
public void setChildrenAssociationWhitelist(List<String> whitelist) { addField(ConfigureNodeFields.children_association_whitelist, FormField.TYPE_JID_MULTI); setAnswer( ConfigureNodeFields.children_association_whitelist .getFieldName(), whitelist); }
void function(List<String> whitelist) { addField(ConfigureNodeFields.children_association_whitelist, FormField.TYPE_JID_MULTI); setAnswer( ConfigureNodeFields.children_association_whitelist .getFieldName(), whitelist); }
/** * Set the JID's in the whitelist of users that can associate child nodes with the collection * node. This is only relevant if {@link #getChildrenAssociationPolicy()} is set to * {@link ChildrenAssociationPolicy#whitelist}. * @param whitelist The list of JID's */
Set the JID's in the whitelist of users that can associate child nodes with the collection node. This is only relevant if <code>#getChildrenAssociationPolicy()</code> is set to <code>ChildrenAssociationPolicy#whitelist</code>
setChildrenAssociationWhitelist
{ "repo_name": "zoozooll/MyExercise", "path": "VV/asmackbeem/org/jivesoftware/smackx/pubsub/ConfigureForm.java", "license": "apache-2.0", "size": 19365 }
[ "java.util.List", "org.jivesoftware.smackx.FormField" ]
import java.util.List; import org.jivesoftware.smackx.FormField;
import java.util.*; import org.jivesoftware.smackx.*;
[ "java.util", "org.jivesoftware.smackx" ]
java.util; org.jivesoftware.smackx;
2,885,535
Region getRegion() { return region_; }
Region getRegion() { return region_; }
/** * Return the region of this graphic object. The region is a union of * all children objects and the geometry of this object. * * @return The region of this graphic object. */
Return the region of this graphic object. The region is a union of all children objects and the geometry of this object
getRegion
{ "repo_name": "ys880526/Test", "path": "Simulators/GateBar/src/main/java/no/geosoft/cc/graphics/GObject.java", "license": "lgpl-3.0", "size": 50218 }
[ "no.geosoft.cc.geometry.Region" ]
import no.geosoft.cc.geometry.Region;
import no.geosoft.cc.geometry.*;
[ "no.geosoft.cc" ]
no.geosoft.cc;
830,018
public static void SerializeInt8(ByteBuffer block, int offset, int value) { SerializeInt8(block, offset, value, IS_LITTLE_ENDIAN); }
static void function(ByteBuffer block, int offset, int value) { SerializeInt8(block, offset, value, IS_LITTLE_ENDIAN); }
/** * SerializeInt( descriptor )( block, offset, n, isLittleEndian ), descriptor = Int8x16 * * @param block * the data block * @param offset * the data block offset * @param value * the number value */
SerializeInt( descriptor )( block, offset, n, isLittleEndian ), descriptor = Int8x16
SerializeInt8
{ "repo_name": "jugglinmike/es6draft", "path": "src/main/java/com/github/anba/es6draft/runtime/objects/simd/SIMDType.java", "license": "mit", "size": 24396 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
222,597
private Criterion getCriterion(Criterion.Type type) { Criterion criterion = criteria.get(type.name()); assertThat(criterion.type(), is(type)); return criterion; }
Criterion function(Criterion.Type type) { Criterion criterion = criteria.get(type.name()); assertThat(criterion.type(), is(type)); return criterion; }
/** * Looks up a criterion in the instruction map based on type and subtype. * * @param type type string * @return criterion that matches */
Looks up a criterion in the instruction map based on type and subtype
getCriterion
{ "repo_name": "jinlongliu/onos", "path": "core/common/src/test/java/org/onosproject/codec/impl/FlowRuleCodecTest.java", "license": "apache-2.0", "size": 24427 }
[ "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers", "org.onosproject.net.flow.criteria.Criterion" ]
import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.onosproject.net.flow.criteria.Criterion;
import org.hamcrest.*; import org.onosproject.net.flow.criteria.*;
[ "org.hamcrest", "org.onosproject.net" ]
org.hamcrest; org.onosproject.net;
317,686
public static void createAScaleSetWithSshAuthentication(com.azure.resourcemanager.AzureResourceManager azure) { azure .virtualMachines() .manager() .serviceClient() .getVirtualMachineScaleSets() .createOrUpdate( "myResourceGrou...
static void function(com.azure.resourcemanager.AzureResourceManager azure) { azure .virtualMachines() .manager() .serviceClient() .getVirtualMachineScaleSets() .createOrUpdate( STR, STR, new VirtualMachineScaleSetInner() .withLocation(STR) .withSku(new Sku().withName(STR).withTier(STR).withCapacity(3L)) .withUpgradePol...
/** * Sample code: Create a scale set with ssh authentication. * * @param azure The entry point for accessing resource management APIs in Azure. */
Sample code: Create a scale set with ssh authentication
createAScaleSetWithSshAuthentication
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/compute/generated/VirtualMachineScaleSetsCreateOrUpdateSamples.java", "license": "mit", "size": 165298 }
[ "com.azure.core.util.Context", "com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetInner", "com.azure.resourcemanager.compute.models.ApiEntityReference", "com.azure.resourcemanager.compute.models.CachingTypes", "com.azure.resourcemanager.compute.models.DiskCreateOptionTypes", "com.azure...
import com.azure.core.util.Context; import com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetInner; import com.azure.resourcemanager.compute.models.ApiEntityReference; import com.azure.resourcemanager.compute.models.CachingTypes; import com.azure.resourcemanager.compute.models.DiskCreateOptionTypes;...
import com.azure.core.util.*; import com.azure.resourcemanager.compute.fluent.models.*; import com.azure.resourcemanager.compute.models.*; import java.util.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.util" ]
com.azure.core; com.azure.resourcemanager; java.util;
772,983
private boolean isClassDefiningCall(Node callNode) { SubclassRelationship classes = compiler.getCodingConvention().getClassesDefinedByCall(callNode); return classes != null; }
boolean function(Node callNode) { SubclassRelationship classes = compiler.getCodingConvention().getClassesDefinedByCall(callNode); return classes != null; }
/** * Determines if a call defines a class inheritance or mixing * relation, according to the current coding convention. */
Determines if a call defines a class inheritance or mixing relation, according to the current coding convention
isClassDefiningCall
{ "repo_name": "JonathanWalsh/Granule-Closure-Compiler", "path": "src/com/google/javascript/jscomp/GatherSideEffectSubexpressionsCallback.java", "license": "apache-2.0", "size": 11780 }
[ "com.google.javascript.jscomp.CodingConvention", "com.google.javascript.rhino.Node" ]
import com.google.javascript.jscomp.CodingConvention; import com.google.javascript.rhino.Node;
import com.google.javascript.jscomp.*; import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,862,557
public void addLocationListener(LocationListener listener) { locationListeners.add(listener); }
void function(LocationListener listener) { locationListeners.add(listener); }
/** * Add a listener for on-device based location updates * @param listener */
Add a listener for on-device based location updates
addLocationListener
{ "repo_name": "pavkriz/SmartCampusUHK", "path": "Android/SmartCampusAppUHK/lib/src/main/java/com/smartcampus/android/location/LocationService.java", "license": "bsd-3-clause", "size": 50149 }
[ "android.location.LocationListener" ]
import android.location.LocationListener;
import android.location.*;
[ "android.location" ]
android.location;
375,723
public JsonJavaObject parse(String data) { JsonJavaObject jsonData = null; try { jsonData = (JsonJavaObject) JsonParser.fromJson(JsonJavaFactory.instanceEx, data); } catch (JsonException e) { Platform.getInstance().log(e); } return jsonData; }
JsonJavaObject function(String data) { JsonJavaObject jsonData = null; try { jsonData = (JsonJavaObject) JsonParser.fromJson(JsonJavaFactory.instanceEx, data); } catch (JsonException e) { Platform.getInstance().log(e); } return jsonData; }
/** * Convert a JSON String into a JsonJavaObject * @param data - The JSON data in String format * @return JsonJavaObject containing the JSON data */
Convert a JSON String into a JsonJavaObject
parse
{ "repo_name": "briangleeson/XPages-Fusion-Application", "path": "xpages-fusion-ondisk/Code/Java/com/ibm/xsp/bluemix/util/RestUtil.java", "license": "apache-2.0", "size": 5628 }
[ "com.ibm.commons.Platform", "com.ibm.commons.util.io.json.JsonException", "com.ibm.commons.util.io.json.JsonJavaFactory", "com.ibm.commons.util.io.json.JsonJavaObject", "com.ibm.commons.util.io.json.JsonParser" ]
import com.ibm.commons.Platform; import com.ibm.commons.util.io.json.JsonException; import com.ibm.commons.util.io.json.JsonJavaFactory; import com.ibm.commons.util.io.json.JsonJavaObject; import com.ibm.commons.util.io.json.JsonParser;
import com.ibm.commons.*; import com.ibm.commons.util.io.json.*;
[ "com.ibm.commons" ]
com.ibm.commons;
411,060
public boolean canPlaceTorchOnTop(IBlockState state, IBlockAccess world, BlockPos pos) { if (state.getBlockFaceShape(world, pos, EnumFacing.UP) == BlockFaceShape.SOLID) { return this != Blocks.END_GATEWAY && this != Blocks.LIT_PUMPKIN; } else { ret...
boolean function(IBlockState state, IBlockAccess world, BlockPos pos) { if (state.getBlockFaceShape(world, pos, EnumFacing.UP) == BlockFaceShape.SOLID) { return this != Blocks.END_GATEWAY && this != Blocks.LIT_PUMPKIN; } else { return this instanceof BlockFence this == Blocks.GLASS this == Blocks.COBBLESTONE_WALL this ...
/** * Determines if a torch can be placed on the top surface of this block. * Useful for creating your own block that torches can be on, such as fences. * * @param state The current state * @param world The current world * @param pos Block position in world * @return True to allow the...
Determines if a torch can be placed on the top surface of this block. Useful for creating your own block that torches can be on, such as fences
canPlaceTorchOnTop
{ "repo_name": "TheGreatAndPowerfulWeegee/wipunknown", "path": "build/tmp/recompileMc/sources/net/minecraft/block/Block.java", "license": "gpl-3.0", "size": 129758 }
[ "net.minecraft.block.state.BlockFaceShape", "net.minecraft.block.state.IBlockState", "net.minecraft.init.Blocks", "net.minecraft.util.EnumFacing", "net.minecraft.util.math.BlockPos", "net.minecraft.world.IBlockAccess" ]
import net.minecraft.block.state.BlockFaceShape; import net.minecraft.block.state.IBlockState; import net.minecraft.init.Blocks; import net.minecraft.util.EnumFacing; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess;
import net.minecraft.block.state.*; import net.minecraft.init.*; import net.minecraft.util.*; import net.minecraft.util.math.*; import net.minecraft.world.*;
[ "net.minecraft.block", "net.minecraft.init", "net.minecraft.util", "net.minecraft.world" ]
net.minecraft.block; net.minecraft.init; net.minecraft.util; net.minecraft.world;
1,160,033
List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) throws InternalErrorException;
List<Attribute> getAllAttributesStartWithNameWithoutNullValue(PerunSession sess, Group group, String startPartOfName) throws InternalErrorException;
/** * Get all <b>non-empty</b> attributes associated with the group starts with name startPartOfName. * Get only nonvirtual attributes with NotNull value. * * PRIVILEGE: Get only those attributes the principal has access to. * * @param sess perun session * @param group to get the attributes from * @para...
Get all non-empty attributes associated with the group starts with name startPartOfName. Get only nonvirtual attributes with NotNull value
getAllAttributesStartWithNameWithoutNullValue
{ "repo_name": "Simcsa/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/AttributesManagerImplApi.java", "license": "bsd-2-clause", "size": 98325 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.Group", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "java.util.List" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Group; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import java.util.List;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
2,424,576
public List<? extends VariableInstanceLog> findVariableInstancesByName(String variableId, boolean onlyActiveProcesses);
List<? extends VariableInstanceLog> function(String variableId, boolean onlyActiveProcesses);
/** * Returns all variable logs that are identified by variable id regardless of what process instance they belong to * @param variableId variable name * @param onlyActiveProcesses indicates if only active process instances should be considered or both active and completed * @return all variable log...
Returns all variable logs that are identified by variable id regardless of what process instance they belong to
findVariableInstancesByName
{ "repo_name": "sotty/droolsjbpm-knowledge", "path": "kie-api/src/main/java/org/kie/api/runtime/manager/audit/AuditService.java", "license": "apache-2.0", "size": 5711 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
217,130
public static Session doGetTransactionalSession( ConnectionFactory connectionFactory, ResourceFactory resourceFactory, boolean startConnection) throws JMSException { Assert.notNull(connectionFactory, "ConnectionFactory must not be null"); Assert.notNull(resourceFactory, "ResourceFactory must not be null")...
static Session function( ConnectionFactory connectionFactory, ResourceFactory resourceFactory, boolean startConnection) throws JMSException { Assert.notNull(connectionFactory, STR); Assert.notNull(resourceFactory, STR); JmsResourceHolder resourceHolder = (JmsResourceHolder) TransactionSynchronizationManager.getResource...
/** * Obtain a JMS Session that is synchronized with the current transaction, if any. * @param connectionFactory the JMS ConnectionFactory to bind for * (used as TransactionSynchronizationManager key) * @param resourceFactory the ResourceFactory to use for extracting or creating * JMS resources * @param sta...
Obtain a JMS Session that is synchronized with the current transaction, if any
doGetTransactionalSession
{ "repo_name": "mattxia/spring-2.5-analysis", "path": "src/org/springframework/jms/connection/ConnectionFactoryUtils.java", "license": "apache-2.0", "size": 16171 }
[ "javax.jms.Connection", "javax.jms.ConnectionFactory", "javax.jms.JMSException", "javax.jms.Session", "org.springframework.transaction.support.TransactionSynchronizationManager", "org.springframework.util.Assert" ]
import javax.jms.Connection; import javax.jms.ConnectionFactory; import javax.jms.JMSException; import javax.jms.Session; import org.springframework.transaction.support.TransactionSynchronizationManager; import org.springframework.util.Assert;
import javax.jms.*; import org.springframework.transaction.support.*; import org.springframework.util.*;
[ "javax.jms", "org.springframework.transaction", "org.springframework.util" ]
javax.jms; org.springframework.transaction; org.springframework.util;
1,956,596