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
@Test() public void testCreateHostOrderedUpgradeThrowsExceptions() throws Exception { Map<String, Object> requestProps = new HashMap<>(); requestProps.put(UpgradeResourceProvider.UPGRADE_CLUSTER_NAME, "c1"); requestProps.put(UpgradeResourceProvider.UPGRADE_REPO_VERSION_ID, String.valueOf(repoVersionEnt...
@Test() void function() throws Exception { Map<String, Object> requestProps = new HashMap<>(); requestProps.put(UpgradeResourceProvider.UPGRADE_CLUSTER_NAME, "c1"); requestProps.put(UpgradeResourceProvider.UPGRADE_REPO_VERSION_ID, String.valueOf(repoVersionEntity2200.getId())); requestProps.put(UpgradeResourceProvider....
/** * Tests that a {@link UpgradeType#HOST_ORDERED} upgrade throws an exception * on missing hosts. * * @throws Exception */
Tests that a <code>UpgradeType#HOST_ORDERED</code> upgrade throws an exception on missing hosts
testCreateHostOrderedUpgradeThrowsExceptions
{ "repo_name": "radicalbit/ambari", "path": "ambari-server/src/test/java/org/apache/ambari/server/controller/internal/UpgradeResourceProviderTest.java", "license": "apache-2.0", "size": 80750 }
[ "com.google.common.collect.Lists", "java.util.Collections", "java.util.HashMap", "java.util.LinkedHashSet", "java.util.List", "java.util.Map", "java.util.Set", "org.apache.ambari.server.controller.spi.Request", "org.apache.ambari.server.controller.spi.ResourceProvider", "org.apache.ambari.server.c...
import com.google.common.collect.Lists; import java.util.Collections; import java.util.HashMap; import java.util.LinkedHashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.ambari.server.controller.spi.Request; import org.apache.ambari.server.controller.spi.ResourceProvider; impo...
import com.google.common.collect.*; import java.util.*; import org.apache.ambari.server.controller.spi.*; import org.apache.ambari.server.controller.utilities.*; import org.apache.ambari.server.state.*; import org.apache.ambari.server.state.stack.upgrade.*; import org.junit.*;
[ "com.google.common", "java.util", "org.apache.ambari", "org.junit" ]
com.google.common; java.util; org.apache.ambari; org.junit;
1,151,209
public void memorizzaFiches() { SQL sql = new SQL(); try { sql.setFiches(nome, fiches); } catch (SqlOccupato ex) { try { sleep(20); } catch (InterruptedException ex1) { Logger.getLogger(Giocatore.class.getName()).log(Level.S...
void function() { SQL sql = new SQL(); try { sql.setFiches(nome, fiches); } catch (SqlOccupato ex) { try { sleep(20); } catch (InterruptedException ex1) { Logger.getLogger(Giocatore.class.getName()).log(Level.SEVERE, null, ex1); } memorizzaFiches(); } }
/** * salva le fiches nel database */
salva le fiches nel database
memorizzaFiches
{ "repo_name": "IngSW-unipv/Progetto-A", "path": "Sette_e_Mezzo_Server/src/dominio/giocatori/Giocatore.java", "license": "mit", "size": 17001 }
[ "java.lang.Thread", "java.util.logging.Level", "java.util.logging.Logger" ]
import java.lang.Thread; import java.util.logging.Level; import java.util.logging.Logger;
import java.lang.*; import java.util.logging.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
1,183,636
protected Executor getNotifierExecutor() { return IoUtils.directExecutor(); } static class NotifierRunnable<T, A> implements Runnable { private final Notifier<? super T, A> notifier; private final IoFuture<T> future; private final A attachment; NotifierRunnable(fin...
Executor function() { return IoUtils.directExecutor(); } static class NotifierRunnable<T, A> implements Runnable { private final Notifier<? super T, A> notifier; private final IoFuture<T> future; private final A attachment; NotifierRunnable(final Notifier<? super T, A> notifier, final IoFuture<T> future, final A attach...
/** * Get the executor used to run asynchronous notifiers. By default, this implementation simply returns the direct * executor. * * @return the executor to use */
Get the executor used to run asynchronous notifiers. By default, this implementation simply returns the direct executor
getNotifierExecutor
{ "repo_name": "stuartwdouglas/xnio", "path": "api/src/main/java/org/xnio/AbstractIoFuture.java", "license": "apache-2.0", "size": 22500 }
[ "java.util.concurrent.Executor" ]
import java.util.concurrent.Executor;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,012,656
public static JLabel addLabel(Container component, String text, Icon icon, int horizontalAlignment, Font font) { JLabel label = new JLabel(text, icon, horizontalAlignment); if (component != null) component.add(label); if (font != null) label.setFont(font); return label; }
static JLabel function(Container component, String text, Icon icon, int horizontalAlignment, Font font) { JLabel label = new JLabel(text, icon, horizontalAlignment); if (component != null) component.add(label); if (font != null) label.setFont(font); return label; }
/** * Add a new label to a given component * * @param component * Component to add the label to * @param text * Label's text * @param icon * Label's icon * @param horizontalAlignment * Label's horizontal alignment (e.g. JLabe...
Add a new label to a given component
addLabel
{ "repo_name": "DrewG/mzmine2", "path": "src/main/java/net/sf/mzmine/util/GUIUtils.java", "license": "gpl-2.0", "size": 17574 }
[ "java.awt.Container", "java.awt.Font", "javax.swing.Icon", "javax.swing.JLabel" ]
import java.awt.Container; import java.awt.Font; import javax.swing.Icon; import javax.swing.JLabel;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,892,084
Observable<ServiceResponse<Void>> putOptionalHeaderWithServiceResponseAsync(); void putOptionalHeader(String queryParameter) throws ErrorException, IOException;
Observable<ServiceResponse<Void>> putOptionalHeaderWithServiceResponseAsync(); void putOptionalHeader(String queryParameter) throws ErrorException, IOException;
/** * Test implicitly optional header parameter. * * @param queryParameter the String value * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization */
Test implicitly optional header parameter
putOptionalHeader
{ "repo_name": "tbombach/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/requiredoptional/Implicits.java", "license": "mit", "size": 12192 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException;
import com.microsoft.rest.*; import java.io.*;
[ "com.microsoft.rest", "java.io" ]
com.microsoft.rest; java.io;
880,668
public static Set<String> getBeanTagsByClass(Class<?> clazz) { Set<String> beanTags = null; if (beanTagsByClass != null && beanTagsByClass.containsKey(clazz)) { beanTags = beanTagsByClass.get(clazz); } if (beanTags == null) { loadBeanTags(); }...
static Set<String> function(Class<?> clazz) { Set<String> beanTags = null; if (beanTagsByClass != null && beanTagsByClass.containsKey(clazz)) { beanTags = beanTagsByClass.get(clazz); } if (beanTags == null) { loadBeanTags(); } return beanTags; }
/** * Retrieves the set of tag names that are valid beans for the given class. * * @param clazz class to retrieve tag names for * @return set of tag names as string, or null if none are found */
Retrieves the set of tag names that are valid beans for the given class
getBeanTagsByClass
{ "repo_name": "geothomasp/kualico-rice-kc", "path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/datadictionary/parse/CustomTagAnnotations.java", "license": "apache-2.0", "size": 23257 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
385,654
private void parseProductOptionalContentsParameter() throws IOException { // nadir only present int value = parseAndAddAttributeToSPH(NADIR_ONLY_PRESENT_NAME, NADIR_ONLY_DESCRIPTION); _nadirOnly = value > 0; // thermal bands present value = parseAndAddAttributeToSPH(THERMAL...
void function() throws IOException { int value = parseAndAddAttributeToSPH(NADIR_ONLY_PRESENT_NAME, NADIR_ONLY_DESCRIPTION); _nadirOnly = value > 0; value = parseAndAddAttributeToSPH(THERMAL_PRESENT_NAME, THERMAL_PRESENT_DESCRIPTION); _thermalPresent = value > 0; value = parseAndAddAttributeToSPH(VISIBLE_PRESENT_NAME, ...
/** * Parses the product optional content parameter <ul> <li>nadir only records present</li> <li>Thermal infra red * detector records present</li> <li>Visible/near infra-red records present</li> <li>lat/lon records present</li> * <li>X/Y coordinates records present</li> <li>Cloudclearing/land flagging r...
Parses the product optional content parameter nadir only records present Thermal infra red detector records present Visible/near infra-red records present lat/lon records present X/Y coordinates records present Cloudclearing/land flagging records present
parseProductOptionalContentsParameter
{ "repo_name": "seadas/beam", "path": "beam-atsr-reader/src/main/java/org/esa/beam/dataio/atsr/AtsrHeader.java", "license": "gpl-3.0", "size": 33082 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
975,537
public DocumentFilter getDocumentFilter() { return documentFilter; }
DocumentFilter function() { return documentFilter; }
/** * Returns the currently installed {@link DocumentFilter} for this * <code>Document</code>. * * @return the currently installed {@link DocumentFilter} for this * <code>Document</code> * * @since 1.4 */
Returns the currently installed <code>DocumentFilter</code> for this <code>Document</code>
getDocumentFilter
{ "repo_name": "taciano-perez/JamVM-PH", "path": "src/classpath/javax/swing/text/AbstractDocument.java", "license": "gpl-2.0", "size": 88095 }
[ "javax.swing.text.DocumentFilter" ]
import javax.swing.text.DocumentFilter;
import javax.swing.text.*;
[ "javax.swing" ]
javax.swing;
1,050,284
public void testSnmpEventInfoClassWithRangeSuperSettingDefRanges() throws UnknownHostException { final String addr1 = "192.168.99.1"; final String addr2 = "192.168.108.254"; SnmpAgentConfig agent = SnmpPeerFactory.getInstance().getAgentConfig(InetAddressUtils.addr(addr1)); a...
void function() throws UnknownHostException { final String addr1 = STR; final String addr2 = STR; SnmpAgentConfig agent = SnmpPeerFactory.getInstance().getAgentConfig(InetAddressUtils.addr(addr1)); assertEquals(SnmpAgentConfig.VERSION1, agent.getVersion()); EventBuilder bldr = createConfigureSnmpEventBuilder(addr1, add...
/** * Tests getting the correct SNMP Peer after merging a new range that super sets a current range. * * @throws UnknownHostException */
Tests getting the correct SNMP Peer after merging a new range that super sets a current range
testSnmpEventInfoClassWithRangeSuperSettingDefRanges
{ "repo_name": "jeffgdotorg/opennms", "path": "opennms-config/src/test/java/org/opennms/netmgt/config/ConfigureSnmpTest.java", "license": "gpl-2.0", "size": 10467 }
[ "java.net.UnknownHostException", "org.opennms.core.utils.InetAddressUtils", "org.opennms.netmgt.events.api.model.ImmutableMapper", "org.opennms.netmgt.model.events.EventBuilder", "org.opennms.netmgt.snmp.SnmpAgentConfig" ]
import java.net.UnknownHostException; import org.opennms.core.utils.InetAddressUtils; import org.opennms.netmgt.events.api.model.ImmutableMapper; import org.opennms.netmgt.model.events.EventBuilder; import org.opennms.netmgt.snmp.SnmpAgentConfig;
import java.net.*; import org.opennms.core.utils.*; import org.opennms.netmgt.events.api.model.*; import org.opennms.netmgt.model.events.*; import org.opennms.netmgt.snmp.*;
[ "java.net", "org.opennms.core", "org.opennms.netmgt" ]
java.net; org.opennms.core; org.opennms.netmgt;
978,648
public Map<?, ?> getAttributes();
Map<?, ?> function();
/** * Gets all attributes present in this job context. * * @return All attributes. */
Gets all attributes present in this job context
getAttributes
{ "repo_name": "samaitra/ignite", "path": "modules/core/src/main/java/org/apache/ignite/compute/ComputeJobContext.java", "license": "apache-2.0", "size": 4100 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,775,781
List<DataElement> getDataElementsByZeroIsSignificant( boolean zeroIsSignificant );
List<DataElement> getDataElementsByZeroIsSignificant( boolean zeroIsSignificant );
/** * Returns all DataElement which zeroIsSignificant property is true or false * * @param list is zeroIsSignificant property * @return a collection of all DataElement */
Returns all DataElement which zeroIsSignificant property is true or false
getDataElementsByZeroIsSignificant
{ "repo_name": "steffeli/inf5750-tracker-capture", "path": "dhis-api/src/main/java/org/hisp/dhis/dataelement/DataElementService.java", "license": "bsd-3-clause", "size": 17413 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
50,159
static InetAddress compareAndSelectPrimary(InetAddress currentIf, InetAddress oldPrimary) { InetAddress newPrimary = null; if (oldPrimary == null) { if (!CapsdConfigFactory.getInstance().isAddressUnmanaged(currentIf)) { return currentIf; } else { ...
static InetAddress compareAndSelectPrimary(InetAddress currentIf, InetAddress oldPrimary) { InetAddress newPrimary = null; if (oldPrimary == null) { if (!CapsdConfigFactory.getInstance().isAddressUnmanaged(currentIf)) { return currentIf; } else { return oldPrimary; } } byte[] current = currentIf.getAddress(); byte[] pr...
/** * Utility method which compares two InetAddress objects based on the * provided method (MIN/MAX) and returns the InetAddress which is to be * considered the primary interface. NOTE: In order for an interface to be * considered primary it must be managed. This method will return null if * th...
Utility method which compares two InetAddress objects based on the provided method (MIN/MAX) and returns the InetAddress which is to be considered primary it must be managed. This method will return null if the 'oldPrimary' address is null and the 'currentIf' address is unmanaged
compareAndSelectPrimary
{ "repo_name": "qoswork/opennmszh", "path": "opennms-services/src/main/java/org/opennms/netmgt/capsd/SuspectEventProcessor.java", "license": "gpl-2.0", "size": 81579 }
[ "java.net.InetAddress", "org.opennms.core.utils.ByteArrayComparator", "org.opennms.netmgt.config.CapsdConfigFactory" ]
import java.net.InetAddress; import org.opennms.core.utils.ByteArrayComparator; import org.opennms.netmgt.config.CapsdConfigFactory;
import java.net.*; import org.opennms.core.utils.*; import org.opennms.netmgt.config.*;
[ "java.net", "org.opennms.core", "org.opennms.netmgt" ]
java.net; org.opennms.core; org.opennms.netmgt;
595,850
private Entity chooseEntity(Coords pos) { // Assume that we have *no* choice. Entity choice = null; // Get the available choices. List<Entity> entities = game.getEntitiesVector(pos); // Do we have a single choice? if (entities.size() == 1) { // Return ...
Entity function(Coords pos) { Entity choice = null; List<Entity> entities = game.getEntitiesVector(pos); if (entities.size() == 1) { choice = entities.get(0); } else if (entities.size() > 1) { String input = (String) JOptionPane .showInputDialog( null, Messages.getString( STR, new Object[]{pos.getBoardNum()}), Messages...
/** * Have the player select an Entity from the entities at the given coords. * * @param pos - the <code>Coords</code> containing targets. */
Have the player select an Entity from the entities at the given coords
chooseEntity
{ "repo_name": "chvink/kilomek", "path": "megamek/src/megamek/client/ui/swing/boardview/BoardView1.java", "license": "gpl-3.0", "size": 216888 }
[ "java.util.List", "javax.swing.JOptionPane" ]
import java.util.List; import javax.swing.JOptionPane;
import java.util.*; import javax.swing.*;
[ "java.util", "javax.swing" ]
java.util; javax.swing;
2,162,939
public Channel wrapProcessor(RouteContext routeContext, Processor processor) throws Exception { // don't double wrap if (processor instanceof Channel) { return (Channel) processor; } return wrapChannel(routeContext, processor, null); }
Channel function(RouteContext routeContext, Processor processor) throws Exception { if (processor instanceof Channel) { return (Channel) processor; } return wrapChannel(routeContext, processor, null); }
/** * Wraps the child processor in whatever necessary interceptors and error handlers */
Wraps the child processor in whatever necessary interceptors and error handlers
wrapProcessor
{ "repo_name": "Fabryprog/camel", "path": "core/camel-core/src/main/java/org/apache/camel/reifier/ProcessorReifier.java", "license": "apache-2.0", "size": 29950 }
[ "org.apache.camel.Channel", "org.apache.camel.Processor", "org.apache.camel.spi.RouteContext" ]
import org.apache.camel.Channel; import org.apache.camel.Processor; import org.apache.camel.spi.RouteContext;
import org.apache.camel.*; import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
2,912,608
protected final void registerExtensionOperation(String localName, Class<? extends ExtensionOperation> operation) { extensionsByName.put(localName, operation); }
final void function(String localName, Class<? extends ExtensionOperation> operation) { extensionsByName.put(localName, operation); }
/** * Register an {@link org.apache.ode.bpel.extension.ExtensionOperation} implementation as <code>&lt;extensionActivity&gt;</code>. * * @param localName * @param activity */
Register an <code>org.apache.ode.bpel.extension.ExtensionOperation</code> implementation as <code>&lt;extensionActivity&gt;</code>
registerExtensionOperation
{ "repo_name": "matthieu/apache-ode", "path": "runtimes/src/main/java/org/apache/ode/bpel/rtrep/common/extension/AbstractExtensionBundle.java", "license": "apache-2.0", "size": 3656 }
[ "org.apache.ode.bpel.extension.ExtensionOperation" ]
import org.apache.ode.bpel.extension.ExtensionOperation;
import org.apache.ode.bpel.extension.*;
[ "org.apache.ode" ]
org.apache.ode;
1,248,511
public void validateKey() { Validate.notNull(this.field_148760_d); }
void function() { Validate.notNull(this.field_148760_d); }
/** * validates that this registry's key is non-null */
validates that this registry's key is non-null
validateKey
{ "repo_name": "trixmot/mod1", "path": "build/tmp/recompileMc/sources/net/minecraft/util/RegistryNamespacedDefaultedByKey.java", "license": "lgpl-2.1", "size": 1267 }
[ "org.apache.commons.lang3.Validate" ]
import org.apache.commons.lang3.Validate;
import org.apache.commons.lang3.*;
[ "org.apache.commons" ]
org.apache.commons;
862,707
public void eliminarAutor(TbPrdAutor autor)throws ProduccionDAOException;
void function(TbPrdAutor autor)throws ProduccionDAOException;
/** * Eliminar un autor de la base de datos. * @param autor */
Eliminar un autor de la base de datos
eliminarAutor
{ "repo_name": "pacadudea/pacad", "path": "Produccion/src/com/proint1/udea/produccion/dao/AutorDAO.java", "license": "gpl-3.0", "size": 1269 }
[ "com.proint1.udea.produccion.entidades.TbPrdAutor", "com.proint1.udea.produccion.util.ProduccionDAOException" ]
import com.proint1.udea.produccion.entidades.TbPrdAutor; import com.proint1.udea.produccion.util.ProduccionDAOException;
import com.proint1.udea.produccion.entidades.*; import com.proint1.udea.produccion.util.*;
[ "com.proint1.udea" ]
com.proint1.udea;
2,042,387
public Configuration createEnvConfigWithSingleTestResourceWithSingleProperty() { // create configuration Configuration configuration = createEmptyEnvironmentConfiguration(); // create environments configuration.setEnvironments(envConfigurationfactory.createEnvironments()); List<Environment> environm...
Configuration function() { Configuration configuration = createEmptyEnvironmentConfiguration(); configuration.setEnvironments(envConfigurationfactory.createEnvironments()); List<Environment> environments = configuration.getEnvironments().getEnvironment(); Environment environment = addEnvironment(environments); HashMap<...
/** * Create environment configuration with a single resource. The resource is * named "test-resource-resource-id" in environment "environment-1" and have a * single property. * * @return environment configuration with a single credential. */
Create environment configuration with a single resource. The resource is named "test-resource-resource-id" in environment "environment-1" and have a single property
createEnvConfigWithSingleTestResourceWithSingleProperty
{ "repo_name": "athrane/pineapple", "path": "testing/pineapple-test-utils/src/main/java/com/alpha/testutils/ObjectMotherEnvironmentConfiguration.java", "license": "gpl-3.0", "size": 28704 }
[ "com.alpha.pineapple.model.configuration.Configuration", "com.alpha.pineapple.model.configuration.Environment", "com.alpha.pineapple.model.configuration.Resource", "java.util.HashMap", "java.util.List" ]
import com.alpha.pineapple.model.configuration.Configuration; import com.alpha.pineapple.model.configuration.Environment; import com.alpha.pineapple.model.configuration.Resource; import java.util.HashMap; import java.util.List;
import com.alpha.pineapple.model.configuration.*; import java.util.*;
[ "com.alpha.pineapple", "java.util" ]
com.alpha.pineapple; java.util;
192,758
public static FileDescriptor buildFrom( final FileDescriptorProto proto, final FileDescriptor[] dependencies) throws DescriptorValidationException { return buildFrom(proto, dependencies, false); }
static FileDescriptor function( final FileDescriptorProto proto, final FileDescriptor[] dependencies) throws DescriptorValidationException { return buildFrom(proto, dependencies, false); }
/** * Construct a {@code FileDescriptor}. * * @param proto The protocol message form of the FileDescriptor. * @param dependencies {@code FileDescriptor}s corresponding to all of the file's dependencies. * @throws DescriptorValidationException {@code proto} is not a valid descriptor. This can oc...
Construct a FileDescriptor
buildFrom
{ "repo_name": "scheib/chromium", "path": "third_party/protobuf/java/core/src/main/java/com/google/protobuf/Descriptors.java", "license": "bsd-3-clause", "size": 95651 }
[ "com.google.protobuf.DescriptorProtos" ]
import com.google.protobuf.DescriptorProtos;
import com.google.protobuf.*;
[ "com.google.protobuf" ]
com.google.protobuf;
27,727
@OperationMeta(returnGenerics = FileArtifact.class) public static Set<FileArtifact> aspectJ(Path source, Path target, Map<String, Object> other) throws VilException { Set<FileArtifact> result; if (source.getAbsolutePath().isDirectory()) { result = aspectJ(null, source.getAbs...
@OperationMeta(returnGenerics = FileArtifact.class) static Set<FileArtifact> function(Path source, Path target, Map<String, Object> other) throws VilException { Set<FileArtifact> result; if (source.getAbsolutePath().isDirectory()) { result = aspectJ(null, source.getAbsolutePath(), target, other); } else { result = aspe...
/** * Compiles a source path to a target path. * * @param source the source path * @param target the target path * @param other the other parameter for the Java compiler, without leading "-" * @return the created artifacts * @throws VilException in case that artifact creation fails ...
Compiles a source path to a target path
aspectJ
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/Instantiation/Instantiator.AspectJ/src/net/ssehub/easy/instantiation/aspectj/instantiators/AspectJ.java", "license": "apache-2.0", "size": 11363 }
[ "java.util.Map", "net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact", "net.ssehub.easy.instantiation.core.model.artifactModel.Path", "net.ssehub.easy.instantiation.core.model.common.VilException", "net.ssehub.easy.instantiation.core.model.vilTypes.OperationMeta", "net.ssehub.easy.instant...
import java.util.Map; import net.ssehub.easy.instantiation.core.model.artifactModel.FileArtifact; import net.ssehub.easy.instantiation.core.model.artifactModel.Path; import net.ssehub.easy.instantiation.core.model.common.VilException; import net.ssehub.easy.instantiation.core.model.vilTypes.OperationMeta; import net.ss...
import java.util.*; import net.ssehub.easy.instantiation.core.model.*; import net.ssehub.easy.instantiation.core.model.common.*;
[ "java.util", "net.ssehub.easy" ]
java.util; net.ssehub.easy;
836,252
SAXBuilder builder = new SAXBuilder(); Document doc = null; try { doc = builder.build(new FileInputStream(this.properties .getProperty("flowPath"))); } catch (FileNotFoundException e) { e.printStackTrace(); throw new FileNotFoundException("Flow file not found"); } catch (JDO...
SAXBuilder builder = new SAXBuilder(); Document doc = null; try { doc = builder.build(new FileInputStream(this.properties .getProperty(STR))); } catch (FileNotFoundException e) { e.printStackTrace(); throw new FileNotFoundException(STR); } catch (JDOMException e) { e.printStackTrace(); } catch (IOException e) { e.print...
/** * Parsing flow file. * @return {@link Element} of main flow data-file. * @throws FileNotFoundException when flow file not found. */
Parsing flow file
parseFlow
{ "repo_name": "industral/WFW", "path": "src/java/com/siegerstein/wfw/framework/Flow.java", "license": "mit", "size": 2023 }
[ "java.com.siegerstein.wfw.framework.util.Util", "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.IOException", "java.util.Properties", "java.util.logging.Logger", "org.jdom.Document", "org.jdom.JDOMException", "org.jdom.input.SAXBuilder" ]
import java.com.siegerstein.wfw.framework.util.Util; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.util.Properties; import java.util.logging.Logger; import org.jdom.Document; import org.jdom.JDOMException; import org.jdom.input.SAXBuilder;
import java.com.siegerstein.wfw.framework.util.*; import java.io.*; import java.util.*; import java.util.logging.*; import org.jdom.*; import org.jdom.input.*;
[ "java.com", "java.io", "java.util", "org.jdom", "org.jdom.input" ]
java.com; java.io; java.util; org.jdom; org.jdom.input;
2,071,121
private void startMediaFoldersSelection() { mIsEditingDirectories = true; startActivity(new Intent(getActivity(), MediaFoldersSelectionActivity.class)); }
void function() { mIsEditingDirectories = true; startActivity(new Intent(getActivity(), MediaFoldersSelectionActivity.class)); }
/** * Launches the edit dialog */
Launches the edit dialog
startMediaFoldersSelection
{ "repo_name": "xbao/vanilla", "path": "src/ch/blinkenlights/android/vanilla/PreferencesMediaLibrary.java", "license": "gpl-3.0", "size": 11543 }
[ "android.content.Intent" ]
import android.content.Intent;
import android.content.*;
[ "android.content" ]
android.content;
369,976
@Test public void testContainsNone_CharArrayWithBadSupplementaryChars() { // Test edge case: 1/2 of a (broken) supplementary char assertTrue(StringUtils.containsNone(CharUSuppCharHigh, CharU20001.toCharArray())); assertEquals(-1, CharUSuppCharLow.indexOf(CharU20001)); assertTrue(...
void function() { assertTrue(StringUtils.containsNone(CharUSuppCharHigh, CharU20001.toCharArray())); assertEquals(-1, CharUSuppCharLow.indexOf(CharU20001)); assertTrue(StringUtils.containsNone(CharUSuppCharLow, CharU20001.toCharArray())); assertEquals(-1, CharU20001.indexOf(CharUSuppCharHigh)); assertTrue(StringUtils.c...
/** * See http://www.oracle.com/technetwork/articles/javase/supplementary-142654.html */
See HREF
testContainsNone_CharArrayWithBadSupplementaryChars
{ "repo_name": "longestname1/commonslang", "path": "src/test/java/org/apache/commons/lang3/StringUtilsEqualsIndexOfTest.java", "license": "apache-2.0", "size": 58724 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,458,069
default String getServiceGroup(String key) { key = PREFIX_SERVICE_ROOT + CONFIG_SPLIT_CHAR + PREFIX_SERVICE_MAPPING + key; if (!SERVICE_GROUP_NAME.contains(key)) { ConfigurationCache.addConfigListener(key); SERVICE_GROUP_NAME.add(key); } return ConfigurationFa...
default String getServiceGroup(String key) { key = PREFIX_SERVICE_ROOT + CONFIG_SPLIT_CHAR + PREFIX_SERVICE_MAPPING + key; if (!SERVICE_GROUP_NAME.contains(key)) { ConfigurationCache.addConfigListener(key); SERVICE_GROUP_NAME.add(key); } return ConfigurationFactory.getInstance().getConfig(key); }
/** * Get current service group name * * @param key service group * @return the service group name */
Get current service group name
getServiceGroup
{ "repo_name": "seata/seata", "path": "discovery/seata-discovery-core/src/main/java/io/seata/discovery/registry/RegistryService.java", "license": "apache-2.0", "size": 3575 }
[ "io.seata.config.ConfigurationCache", "io.seata.config.ConfigurationFactory" ]
import io.seata.config.ConfigurationCache; import io.seata.config.ConfigurationFactory;
import io.seata.config.*;
[ "io.seata.config" ]
io.seata.config;
1,999,431
public HttpTester POSTData(String url, String data, ServletTester jetty) throws IOException, Exception{ HttpTester out = jettyDo(jetty,"POST","/tenant/"+defaulttenant+url,data); assertEquals(out.getMethod(),null); Integer status = getStatus(out.getContent(), out.getStatus()); assertTrue("Status "+Integer.to...
HttpTester function(String url, String data, ServletTester jetty) throws IOException, Exception{ HttpTester out = jettyDo(jetty,"POST",STR+defaulttenant+url,data); assertEquals(out.getMethod(),null); Integer status = getStatus(out.getContent(), out.getStatus()); assertTrue(STR+Integer.toString(status)+STR+defaulttenant...
/** * package with default status tests for success * @param url * @param data * @param jetty * @return * @throws IOException * @throws Exception */
package with default status tests for success
POSTData
{ "repo_name": "cherryhill/collectionspace-application", "path": "tomcat-main/src/test/java/org/collectionspace/chain/csp/persistence/TestBase.java", "license": "apache-2.0", "size": 24901 }
[ "java.io.IOException", "org.junit.Assert", "org.mortbay.jetty.testing.HttpTester", "org.mortbay.jetty.testing.ServletTester" ]
import java.io.IOException; import org.junit.Assert; import org.mortbay.jetty.testing.HttpTester; import org.mortbay.jetty.testing.ServletTester;
import java.io.*; import org.junit.*; import org.mortbay.jetty.testing.*;
[ "java.io", "org.junit", "org.mortbay.jetty" ]
java.io; org.junit; org.mortbay.jetty;
1,054,189
protected static boolean compareConstraints(Set<AbstractConstraint> set1, Set<AbstractConstraint> set2, Set<AbstractConstraint> equalsSet, Map<AbstractTable, AbstractTable> tableMap, Map<AbstractTable, AbstractTable> reverseTableMap) { for (AbstractConstraint constraint1 ...
static boolean function(Set<AbstractConstraint> set1, Set<AbstractConstraint> set2, Set<AbstractConstraint> equalsSet, Map<AbstractTable, AbstractTable> tableMap, Map<AbstractTable, AbstractTable> reverseTableMap) { for (AbstractConstraint constraint1 : set1) { boolean match = false; for (AbstractConstraint constraint2...
/** * Compares 2 sets of AbstractConstraints * * @param set1 the first set * @param set2 the second set * @param equalsSet a Set that should be passed in empty - it will be populated with those * AbstractConstraints that have an equal in the other set. Note that if the return value is ...
Compares 2 sets of AbstractConstraints
compareConstraints
{ "repo_name": "JoeCarlson/intermine", "path": "intermine/objectstore/main/src/org/intermine/sql/precompute/QueryOptimiser.java", "license": "lgpl-2.1", "size": 67813 }
[ "java.util.Map", "java.util.Set", "org.intermine.sql.query.AbstractConstraint", "org.intermine.sql.query.AbstractTable" ]
import java.util.Map; import java.util.Set; import org.intermine.sql.query.AbstractConstraint; import org.intermine.sql.query.AbstractTable;
import java.util.*; import org.intermine.sql.query.*;
[ "java.util", "org.intermine.sql" ]
java.util; org.intermine.sql;
2,051,600
public List<org.openforis.collect.persistence.jooq.tables.pojos.OfcTaxon> fetchByInfo12(String... values) { return fetch(OfcTaxon.OFC_TAXON.INFO12, values); }
List<org.openforis.collect.persistence.jooq.tables.pojos.OfcTaxon> function(String... values) { return fetch(OfcTaxon.OFC_TAXON.INFO12, values); }
/** * Fetch records that have <code>info12 IN (values)</code> */
Fetch records that have <code>info12 IN (values)</code>
fetchByInfo12
{ "repo_name": "openforis/collect", "path": "collect-core/src/generated/java/org/openforis/collect/persistence/jooq/tables/daos/OfcTaxonDao.java", "license": "mit", "size": 7956 }
[ "java.util.List", "org.openforis.collect.persistence.jooq.tables.OfcTaxon" ]
import java.util.List; import org.openforis.collect.persistence.jooq.tables.OfcTaxon;
import java.util.*; import org.openforis.collect.persistence.jooq.tables.*;
[ "java.util", "org.openforis.collect" ]
java.util; org.openforis.collect;
1,086,532
@Override public void setFormatsByArgumentIndex(final Format[] newFormats) { throw new UnsupportedOperationException(); }
void function(final Format[] newFormats) { throw new UnsupportedOperationException(); }
/** * Throws UnsupportedOperationException - see class Javadoc for details. * * @param newFormats new formats * @throws UnsupportedOperationException always thrown since this isn't supported by ExtendMessageFormat */
Throws UnsupportedOperationException - see class Javadoc for details
setFormatsByArgumentIndex
{ "repo_name": "MarkDacek/commons-lang", "path": "src/main/java/org/apache/commons/lang3/text/ExtendedMessageFormat.java", "license": "apache-2.0", "size": 19294 }
[ "java.text.Format" ]
import java.text.Format;
import java.text.*;
[ "java.text" ]
java.text;
2,013,256
public void setScan(Scan scan) { this.recordReaderImpl.setScan(scan); }
void function(Scan scan) { this.recordReaderImpl.setScan(scan); }
/** * Sets the scan defining the actual details like columns etc. * * @param scan The scan to set. */
Sets the scan defining the actual details like columns etc
setScan
{ "repo_name": "matteobertozzi/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/TableRecordReader.java", "license": "apache-2.0", "size": 4713 }
[ "org.apache.hadoop.hbase.client.Scan" ]
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,419,034
static void init(LogManager logManager) { reloadLoggingProperties(logManager); for (Handler handler : ROOT_LOGGER.getHandlers()) { if (handler instanceof VmRuntimeLogHandler) { return; // Already installed. } } ROOT_LOGGER.addHandler(new VmRuntimeLogHandler()); }
static void init(LogManager logManager) { reloadLoggingProperties(logManager); for (Handler handler : ROOT_LOGGER.getHandlers()) { if (handler instanceof VmRuntimeLogHandler) { return; } } ROOT_LOGGER.addHandler(new VmRuntimeLogHandler()); }
/** * Test-only init method to allow unit test to use a custom logManager. * * @param logManager */
Test-only init method to allow unit test to use a custom logManager
init
{ "repo_name": "aglne/appengine-java-vm-runtime", "path": "appengine-managed-runtime/src/main/java/com/google/apphosting/vmruntime/VmRuntimeLogHandler.java", "license": "apache-2.0", "size": 7603 }
[ "java.util.logging.Handler", "java.util.logging.LogManager" ]
import java.util.logging.Handler; import java.util.logging.LogManager;
import java.util.logging.*;
[ "java.util" ]
java.util;
667,421
ResourceIdentity getIdentity();
ResourceIdentity getIdentity();
/** * Get the identity of this module. */
Get the identity of this module
getIdentity
{ "repo_name": "tdiesler/gravia", "path": "runtime/api/src/main/java/org/jboss/gravia/runtime/Module.java", "license": "apache-2.0", "size": 15800 }
[ "org.jboss.gravia.resource.ResourceIdentity" ]
import org.jboss.gravia.resource.ResourceIdentity;
import org.jboss.gravia.resource.*;
[ "org.jboss.gravia" ]
org.jboss.gravia;
2,062,335
@Override public Timestamp getTimestamp(String parameterName) throws SQLException { return getTimestamp(getIndexForName(parameterName)); }
Timestamp function(String parameterName) throws SQLException { return getTimestamp(getIndexForName(parameterName)); }
/** * Returns the value of the specified column as a java.sql.Timestamp. * * @param parameterName the parameter name * @return the value * @throws SQLException if the column is not found or if this object is * closed */
Returns the value of the specified column as a java.sql.Timestamp
getTimestamp
{ "repo_name": "miloszpiglas/h2mod", "path": "src/main/org/h2/jdbc/JdbcCallableStatement.java", "license": "mpl-2.0", "size": 53201 }
[ "java.sql.SQLException", "java.sql.Timestamp" ]
import java.sql.SQLException; import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,450,876
@Nullable default IItemHandler getInventoryForSnapshot(int filterIndex, int param1) { return null; }
default IItemHandler getInventoryForSnapshot(int filterIndex, int param1) { return null; }
/** * Used by the existing item filter to get the inventory it is connected to * * @param filterIndex * The index of the filter * @param param1 * Extra param for the filter (e.g. EnumFacing.ordinal() for conduits) * @return The inventory for the snapshot */
Used by the existing item filter to get the inventory it is connected to
getInventoryForSnapshot
{ "repo_name": "SleepyTrousers/EnderIO", "path": "enderio-base/src/main/java/crazypants/enderio/base/filter/capability/IFilterHolder.java", "license": "unlicense", "size": 2277 }
[ "net.minecraftforge.items.IItemHandler" ]
import net.minecraftforge.items.IItemHandler;
import net.minecraftforge.items.*;
[ "net.minecraftforge.items" ]
net.minecraftforge.items;
2,478,247
@Override public View getHeaderView(int position, View convertView, ViewGroup parent) { HeaderViewHolder holder; if (convertView == null) { holder = new HeaderViewHolder(); convertView = mInflater.inflate(R.layout.view_key_certs_header, parent, fal...
View function(int position, View convertView, ViewGroup parent) { HeaderViewHolder holder; if (convertView == null) { holder = new HeaderViewHolder(); convertView = mInflater.inflate(R.layout.view_key_certs_header, parent, false); holder.text = (TextView) convertView.findViewById(R.id.stickylist_header_text); holder.co...
/** * Creates a new header view and binds the section headers to it. It uses the ViewHolder * pattern. Most functionality is similar to getView() from Android's CursorAdapter. * <p/> * NOTE: The variables mDataValid and mCursor are available due to the super class * CursorAd...
Creates a new header view and binds the section headers to it. It uses the ViewHolder pattern. Most functionality is similar to getView() from Android's CursorAdapter. CursorAdapter
getHeaderView
{ "repo_name": "eric-stanley/apg", "path": "OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/ViewKeyCertsFragment.java", "license": "gpl-3.0", "size": 12511 }
[ "android.view.View", "android.view.ViewGroup", "android.widget.TextView", "org.thialfihar.android.apg.Constants", "org.thialfihar.android.apg.util.Log" ]
import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import org.thialfihar.android.apg.Constants; import org.thialfihar.android.apg.util.Log;
import android.view.*; import android.widget.*; import org.thialfihar.android.apg.*; import org.thialfihar.android.apg.util.*;
[ "android.view", "android.widget", "org.thialfihar.android" ]
android.view; android.widget; org.thialfihar.android;
1,311,072
@Override List<FacetOption> apply(List<FacetOption> facetOptions);
List<FacetOption> apply(List<FacetOption> facetOptions);
/** * Transforms the given list of facet options into a different list of facet options. * @param facetOptions the initial options list * @return the transformed options list */
Transforms the given list of facet options into a different list of facet options
apply
{ "repo_name": "rfuertesp/pruebas2", "path": "move-to-sdk/app/io/sphere/sdk/facets/FacetOptionMapper.java", "license": "apache-2.0", "size": 726 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,206,239
public Ratings getMSrcRatings(List<String[]> recommenderList, long user, Long start, Long end, int size) { List<Rating> result = new ArrayList<Rating>(); for (String[] cprec : recommenderList) { final String cp = cprec[0]; final String collection = getRecommenderCollection(cp, cprec[1]); final String...
Ratings function(List<String[]> recommenderList, long user, Long start, Long end, int size) { List<Rating> result = new ArrayList<Rating>(); for (String[] cprec : recommenderList) { final String cp = cprec[0]; final String collection = getRecommenderCollection(cp, cprec[1]); final String recommender = cprec[1]; List<Ra...
/** * return ratings for multiple recommenders * @param recommenderList a list of <em>cp</em> <em>recommender</em> pairs * @param user user id * @param start start time in millis * @param end end time in millis * @param size the maximum amount of ratings to return. * @return */
return ratings for multiple recommenders
getMSrcRatings
{ "repo_name": "beeldengeluid/zieook", "path": "backend/zieook-backend/zieook-backend-data/src/main/java/nl/gridline/zieook/data/controller/DataController.java", "license": "apache-2.0", "size": 35384 }
[ "java.util.ArrayList", "java.util.List", "nl.gridline.zieook.model.Rating", "nl.gridline.zieook.model.Ratings" ]
import java.util.ArrayList; import java.util.List; import nl.gridline.zieook.model.Rating; import nl.gridline.zieook.model.Ratings;
import java.util.*; import nl.gridline.zieook.model.*;
[ "java.util", "nl.gridline.zieook" ]
java.util; nl.gridline.zieook;
2,546,017
public void move(SpooledFileImpl targetSpooledFile) throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, RequestNotSupportedException { NPDataStream sendDS = new NPDataStr...
void function(SpooledFileImpl targetSpooledFile) throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, RequestNotSupportedException { NPDataStream sendDS = new NPDataStream(NPConstants.SPOOLED_FILE); NPDataStream returnDS = new NPDataStream(NPConstants.SPOOLE...
/** * Moves the spooled file to another output queue or to another * position on the same output queue. * * @param targetSpooledFile The spooled file to move this * spooled file after. The targetSpooledFile and this spooled file * must reside on the same system. * * ...
Moves the spooled file to another output queue or to another position on the same output queue
move
{ "repo_name": "devjunix/libjt400-java", "path": "src/com/ibm/as400/access/SpooledFileImplRemote.java", "license": "epl-1.0", "size": 54680 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,653,338
@Override protected void startInternal() throws LifecycleException { // Start 'sub-realms' then this one Iterator<Realm> iter = realms.iterator(); while (iter.hasNext()) { Realm realm = iter.next(); if (realm instanceof Lifecycle) { try { ...
void function() throws LifecycleException { Iterator<Realm> iter = realms.iterator(); while (iter.hasNext()) { Realm realm = iter.next(); if (realm instanceof Lifecycle) { try { ((Lifecycle) realm).start(); } catch (LifecycleException e) { iter.remove(); log.error(sm.getString(STR, realm.getClass().getName()), e); } } ...
/** * Prepare for the beginning of active use of the public methods of this * component and implement the requirements of * {@link org.apache.catalina.util.LifecycleBase#startInternal()}. * * @exception LifecycleException if this component detects a fatal error * that prevents this ...
Prepare for the beginning of active use of the public methods of this component and implement the requirements of <code>org.apache.catalina.util.LifecycleBase#startInternal()</code>
startInternal
{ "repo_name": "IAMTJW/Tomcat-8.5.20", "path": "tomcat-8.5.20/java/org/apache/catalina/realm/CombinedRealm.java", "license": "apache-2.0", "size": 14985 }
[ "java.util.Iterator", "org.apache.catalina.Lifecycle", "org.apache.catalina.LifecycleException", "org.apache.catalina.Realm" ]
import java.util.Iterator; import org.apache.catalina.Lifecycle; import org.apache.catalina.LifecycleException; import org.apache.catalina.Realm;
import java.util.*; import org.apache.catalina.*;
[ "java.util", "org.apache.catalina" ]
java.util; org.apache.catalina;
2,660,338
public static byte[] serialize(Serializable msg) throws IOException { ByteArrayOutputStream outs = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(outs); out.writeObject(msg); out.flush(); byte[] data = outs.toByteArray(); return data; ...
static byte[] function(Serializable msg) throws IOException { ByteArrayOutputStream outs = new ByteArrayOutputStream(); ObjectOutputStream out = new ObjectOutputStream(outs); out.writeObject(msg); out.flush(); byte[] data = outs.toByteArray(); return data; }
/** * Serializes a message into cluster data * @param msg ClusterMessage * @return serialized content as byte[] array * @throws IOException */
Serializes a message into cluster data
serialize
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.22/XByteBuffer.java", "license": "mit", "size": 19471 }
[ "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.ObjectOutputStream", "java.io.Serializable" ]
import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.ObjectOutputStream; import java.io.Serializable;
import java.io.*;
[ "java.io" ]
java.io;
947,941
public RowMetaInterface getPrevInfoFields(StepMeta stepMeta) throws KettleStepException { RowMetaInterface row = new RowMeta(); for (int i = 0; i < nrTransHops(); i++) // Look at all the hops; { TransHopMeta hi = getTransHop(i); if (hi.isEnabled() && hi.getToStep...
RowMetaInterface function(StepMeta stepMeta) throws KettleStepException { RowMetaInterface row = new RowMeta(); for (int i = 0; i < nrTransHops(); i++) { TransHopMeta hi = getTransHop(i); if (hi.isEnabled() && hi.getToStep().equals(stepMeta)) { StepMeta infoStep = hi.getFromStep(); if (isStepInformative(stepMeta, infoS...
/** * Find the informational fields coming from an informational step into the step specified. * * @param stepMeta The receiving step * @return A row containing fields with origin. */
Find the informational fields coming from an informational step into the step specified
getPrevInfoFields
{ "repo_name": "soluvas/pdi-ce", "path": "src/org/pentaho/di/trans/TransMeta.java", "license": "apache-2.0", "size": 203052 }
[ "org.pentaho.di.core.exception.KettleStepException", "org.pentaho.di.core.row.RowMeta", "org.pentaho.di.core.row.RowMetaInterface", "org.pentaho.di.trans.step.StepMeta" ]
import org.pentaho.di.core.exception.KettleStepException; import org.pentaho.di.core.row.RowMeta; import org.pentaho.di.core.row.RowMetaInterface; import org.pentaho.di.trans.step.StepMeta;
import org.pentaho.di.core.exception.*; import org.pentaho.di.core.row.*; import org.pentaho.di.trans.step.*;
[ "org.pentaho.di" ]
org.pentaho.di;
2,767,880
long getDeliveryCandidate(long fileMetaId) throws UnauthorizedException;
long getDeliveryCandidate(long fileMetaId) throws UnauthorizedException;
/** * Get id of parent deliveryCandidate * @param fileMetaId * @return */
Get id of parent deliveryCandidate
getDeliveryCandidate
{ "repo_name": "devilry/devilry-prototype1", "path": "source/coreapi/src/main/java/org/devilry/core/daointerfaces/FileMetaCommon.java", "license": "bsd-3-clause", "size": 1352 }
[ "org.devilry.core.UnauthorizedException" ]
import org.devilry.core.UnauthorizedException;
import org.devilry.core.*;
[ "org.devilry.core" ]
org.devilry.core;
100,104
public void fatalError (Exception e) { // Force the scanner status to ERROR. scannerStatus = fr.gael.dhus.database.object.FileScanner.STATUS_ERROR; processingsDone(e.getMessage ()); }
void function (Exception e) { scannerStatus = fr.gael.dhus.database.object.FileScanner.STATUS_ERROR; processingsDone(e.getMessage ()); }
/** * Called on fatal error: the scanner crashed and no processing * are expected passed this event. scanner status forced to ERROR, * and error message is reported. * @param event */
Called on fatal error: the scanner crashed and no processing are expected passed this event. scanner status forced to ERROR, and error message is reported
fatalError
{ "repo_name": "diogo-andrade/DataHubSystem", "path": "core/src/main/java/fr/gael/dhus/datastore/scanner/FileScannerWrapper.java", "license": "agpl-3.0", "size": 6481 }
[ "fr.gael.dhus.database.object.FileScanner" ]
import fr.gael.dhus.database.object.FileScanner;
import fr.gael.dhus.database.object.*;
[ "fr.gael.dhus" ]
fr.gael.dhus;
75,462
public void becomeFriend(String login) { User friend = userService.getUserByLogin(login); if(!entityManager.contains(currentUser)) { currentUser = entityManager.find(User.class, currentUser.getId()); entityManager.refresh(currentUser); } if(friend != null && currentUser.getId()!=friend.getId()) { cu...
void function(String login) { User friend = userService.getUserByLogin(login); if(!entityManager.contains(currentUser)) { currentUser = entityManager.find(User.class, currentUser.getId()); entityManager.refresh(currentUser); } if(friend != null && currentUser.getId()!=friend.getId()) { currentUser.getFriends().add(frie...
/** * Add a friend to the list of friends of the current user */
Add a friend to the list of friends of the current user
becomeFriend
{ "repo_name": "StexX/KiWi-OSE", "path": "extensions/dashboard/src/kiwi/dashboard/action/ContactsAction.java", "license": "bsd-3-clause", "size": 6337 }
[ "kiwi.model.user.User", "org.jboss.seam.core.Events" ]
import kiwi.model.user.User; import org.jboss.seam.core.Events;
import kiwi.model.user.*; import org.jboss.seam.core.*;
[ "kiwi.model.user", "org.jboss.seam" ]
kiwi.model.user; org.jboss.seam;
448,304
@Test public void testWellFormed002() { Document doc = null; try { doc = loadDocument(null, test2_xml); } catch (Exception e) { Assert.fail(e.getMessage()); } DOMConfiguration config = doc.getDomConfig(); if (!config.canSetParameter("well-...
void function() { Document doc = null; try { doc = loadDocument(null, test2_xml); } catch (Exception e) { Assert.fail(e.getMessage()); } DOMConfiguration config = doc.getDomConfig(); if (!config.canSetParameter(STR, Boolean.FALSE)) { System.out.println(STR); return; } config.setParameter(STR, Boolean.FALSE); Element ro...
/** * Equivalence class partitioning with state and input values orientation * for public void setParameter(String name, Object value) throws * DOMException, <br> * <b>pre-conditions</b>: the attribute has EntityReference to '&lt;', <br> * <b>name</b>: well-formed <br> * <b>value</b>: fals...
Equivalence class partitioning with state and input values orientation for public void setParameter(String name, Object value) throws DOMException, pre-conditions: the attribute has EntityReference to '&lt;', name: well-formed value: false. Expected results: No error is reported
testWellFormed002
{ "repo_name": "34benma/openjdk", "path": "jaxp/test/javax/xml/jaxp/unittest/dom/DOMConfigurationTest.java", "license": "gpl-2.0", "size": 63088 }
[ "org.testng.Assert", "org.w3c.dom.Attr", "org.w3c.dom.DOMConfiguration", "org.w3c.dom.Document", "org.w3c.dom.Element" ]
import org.testng.Assert; import org.w3c.dom.Attr; import org.w3c.dom.DOMConfiguration; import org.w3c.dom.Document; import org.w3c.dom.Element;
import org.testng.*; import org.w3c.dom.*;
[ "org.testng", "org.w3c.dom" ]
org.testng; org.w3c.dom;
386,107
@Override public boolean canPlaceBlockAt(World world, int x, int y, int z) { if (y >= 255) return false; return World.doesBlockHaveSolidTopSurface(world, x, y - 1, z) && super.canPlaceBlockAt(world, x, y, z) && super.canPlaceBlockAt(world, x, y + 1, z); }
boolean function(World world, int x, int y, int z) { if (y >= 255) return false; return World.doesBlockHaveSolidTopSurface(world, x, y - 1, z) && super.canPlaceBlockAt(world, x, y, z) && super.canPlaceBlockAt(world, x, y + 1, z); }
/** * Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z */
Checks to see if its valid to put this block at the specified coordinates. Args: world, x, y, z
canPlaceBlockAt
{ "repo_name": "olee/SecretRoomsMod-forge", "path": "src/main/java/com/github/abrarsyed/secretroomsmod/blocks/BlockCamoDoor.java", "license": "lgpl-3.0", "size": 14174 }
[ "net.minecraft.world.World" ]
import net.minecraft.world.World;
import net.minecraft.world.*;
[ "net.minecraft.world" ]
net.minecraft.world;
1,746,631
boolean updateServiceSchemaContext(String serviceId, SchemaInfo schemaInfo);
boolean updateServiceSchemaContext(String serviceId, SchemaInfo schemaInfo);
/** * update schema context of service * * @return if update is successful * @throws OperationException If some problems happened to contact service center or non http 200 returned. */
update schema context of service
updateServiceSchemaContext
{ "repo_name": "ServiceComb/java-chassis", "path": "clients/service-center-client/src/main/java/org/apache/servicecomb/service/center/client/ServiceCenterOperation.java", "license": "apache-2.0", "size": 6758 }
[ "org.apache.servicecomb.service.center.client.model.SchemaInfo" ]
import org.apache.servicecomb.service.center.client.model.SchemaInfo;
import org.apache.servicecomb.service.center.client.model.*;
[ "org.apache.servicecomb" ]
org.apache.servicecomb;
2,198,981
public final MetaProperty<ExternalIdBundle> externalIdBundle() { return _externalIdBundle; }
final MetaProperty<ExternalIdBundle> function() { return _externalIdBundle; }
/** * The meta-property for the {@code externalIdBundle} property. * @return the meta-property, not null */
The meta-property for the externalIdBundle property
externalIdBundle
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-Core/src/main/java/com/opengamma/core/security/impl/SimpleSecurity.java", "license": "apache-2.0", "size": 16263 }
[ "com.opengamma.id.ExternalIdBundle", "org.joda.beans.MetaProperty" ]
import com.opengamma.id.ExternalIdBundle; import org.joda.beans.MetaProperty;
import com.opengamma.id.*; import org.joda.beans.*;
[ "com.opengamma.id", "org.joda.beans" ]
com.opengamma.id; org.joda.beans;
2,438,277
@Override public void notifyChanged(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
void function(Notification notification) { updateChildren(notification); super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "FTSRG/massif", "path": "plugins/hu.bme.mit.massif.simulink.edit/src/hu/bme/mit/massif/simulink/provider/EnableBlockItemProvider.java", "license": "epl-1.0", "size": 3373 }
[ "org.eclipse.emf.common.notify.Notification" ]
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,485,435
public SiteInner withSiteConfig(SiteConfig siteConfig) { this.siteConfig = siteConfig; return this; }
SiteInner function(SiteConfig siteConfig) { this.siteConfig = siteConfig; return this; }
/** * Set configuration of the app. * * @param siteConfig the siteConfig value to set * @return the SiteInner object itself. */
Set configuration of the app
withSiteConfig
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/appservice/mgmt-v2019_08_01/src/main/java/com/microsoft/azure/management/appservice/v2019_08_01/implementation/SiteInner.java", "license": "mit", "size": 27088 }
[ "com.microsoft.azure.management.appservice.v2019_08_01.SiteConfig" ]
import com.microsoft.azure.management.appservice.v2019_08_01.SiteConfig;
import com.microsoft.azure.management.appservice.v2019_08_01.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
94,132
public static BigInteger hexToBI(final String hexString) { return new BigInteger(HexString.hexToBuffer(hexString)); }
static BigInteger function(final String hexString) { return new BigInteger(HexString.hexToBuffer(hexString)); }
/** * converts a hexadecimal representation of a BigInteger back to it's original form (BigInteger) * * @param hexString : String = hex form of BigInteger * @return : BigInteger : original form */
converts a hexadecimal representation of a BigInteger back to it's original form (BigInteger)
hexToBI
{ "repo_name": "jurgendl/jhaws", "path": "jhaws/media/src/main/java/org/jhaws/common/io/media/images/HexString.java", "license": "mit", "size": 15635 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
1,438,136
public void sortByScreen( AjaxBehaviorEvent event ) { clearSortingByScreen(); if( event instanceof SortEvent ) { SortEvent sortEvent = (SortEvent) event; Column column = (Column) sortEvent.getSortColumn(); String id = column.getId().replaceAll( "3", "2" ); if( sortEvent.isAscend...
void function( AjaxBehaviorEvent event ) { clearSortingByScreen(); if( event instanceof SortEvent ) { SortEvent sortEvent = (SortEvent) event; Column column = (Column) sortEvent.getSortColumn(); String id = column.getId().replaceAll( "3", "2" ); if( sortEvent.isAscending() ) { ReflectionHelper.set( ASCENDING_ORDER, id,...
/** * Sorter method for the collection incomeTableByScreen * * @param event */
Sorter method for the collection incomeTableByScreen
sortByScreen
{ "repo_name": "sidlors/digital-booking", "path": "digital-booking-web/src/main/java/mx/com/cinepolis/digital/booking/web/beans/income/IncomeBean.java", "license": "epl-1.0", "size": 31593 }
[ "javax.faces.event.AjaxBehaviorEvent", "mx.com.cinepolis.digital.booking.commons.utils.ReflectionHelper", "org.primefaces.component.column.Column", "org.primefaces.event.data.SortEvent" ]
import javax.faces.event.AjaxBehaviorEvent; import mx.com.cinepolis.digital.booking.commons.utils.ReflectionHelper; import org.primefaces.component.column.Column; import org.primefaces.event.data.SortEvent;
import javax.faces.event.*; import mx.com.cinepolis.digital.booking.commons.utils.*; import org.primefaces.component.column.*; import org.primefaces.event.data.*;
[ "javax.faces", "mx.com.cinepolis", "org.primefaces.component", "org.primefaces.event" ]
javax.faces; mx.com.cinepolis; org.primefaces.component; org.primefaces.event;
213,155
public IToken nextToken() { super.fTokenOffset = super.fOffset; super.fColumn = -1; IToken token; if (super.fRules != null) { for (int i = 0; i < super.fRules.length; i++) { token = super.fRules[i].evaluate(this); ...
IToken function() { super.fTokenOffset = super.fOffset; super.fColumn = -1; IToken token; if (super.fRules != null) { for (int i = 0; i < super.fRules.length; i++) { token = super.fRules[i].evaluate(this); if (!token.isUndefined()) { return token; } } } token = fElementRule.evaluate(this); if (!token.isUndefined()) { i...
/** * DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
nextToken
{ "repo_name": "ninneko/velocity-edit", "path": "src/com/googlecode/veloeclipse/scanner/HTMLTagScanner.java", "license": "gpl-2.0", "size": 5620 }
[ "org.eclipse.jface.text.rules.IToken", "org.eclipse.jface.text.rules.Token" ]
import org.eclipse.jface.text.rules.IToken; import org.eclipse.jface.text.rules.Token;
import org.eclipse.jface.text.rules.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
27,663
public static InputStream openGzippedClasspathResource(String resource) throws UtilUncheckedException { try { return new GZIPInputStream(openClasspathResource(resource, false)); } catch (IOException e) { throw new UtilUncheckedException("Could not unzip resource " + resource); } }
static InputStream function(String resource) throws UtilUncheckedException { try { return new GZIPInputStream(openClasspathResource(resource, false)); } catch (IOException e) { throw new UtilUncheckedException(STR + resource); } }
/** * Attempts to return a gzipped classpath resource. It is the responsibility * of the calling class to correctly close this input stream. Use * {@link #closeQuietly(InputStream)} for an easy implementation of closing * input streams. * * @param resource * The resource to find. Must be '/pack...
Attempts to return a gzipped classpath resource. It is the responsibility of the calling class to correctly close this input stream. Use <code>#closeQuietly(InputStream)</code> for an easy implementation of closing input streams
openGzippedClasspathResource
{ "repo_name": "thomasmaurel/ensj-healthcheck", "path": "src/org/ensembl/healthcheck/util/InputOutputUtils.java", "license": "apache-2.0", "size": 9464 }
[ "java.io.IOException", "java.io.InputStream", "java.util.zip.GZIPInputStream" ]
import java.io.IOException; import java.io.InputStream; import java.util.zip.GZIPInputStream;
import java.io.*; import java.util.zip.*;
[ "java.io", "java.util" ]
java.io; java.util;
566,902
public void setCurrentItemOrArmor(int slotIn, ItemStack itemStackIn) { super.setCurrentItemOrArmor(slotIn, itemStackIn); if (!this.worldObj.isRemote && slotIn == 0) { this.setCombatTask(); } }
void function(int slotIn, ItemStack itemStackIn) { super.setCurrentItemOrArmor(slotIn, itemStackIn); if (!this.worldObj.isRemote && slotIn == 0) { this.setCombatTask(); } }
/** * Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot */
Sets the held item, or an armor slot. Slot 0 is held item. Slot 1-4 is armor. Params: Item, slot
setCurrentItemOrArmor
{ "repo_name": "Hexeption/Youtube-Hacked-Client-1.8", "path": "minecraft/net/minecraft/entity/monster/EntitySkeleton.java", "license": "mit", "size": 14173 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
1,076,814
public RexNode makeCall( RelDataType returnType, SqlOperator op, List<RexNode> exprs) { return new RexCall(returnType, op, exprs); } /** * Creates a call with an array of arguments. * * <p>If you already know the return type of the call, then * {@link #makeCall(org.apache.calcit...
RexNode function( RelDataType returnType, SqlOperator op, List<RexNode> exprs) { return new RexCall(returnType, op, exprs); } /** * Creates a call with an array of arguments. * * <p>If you already know the return type of the call, then * {@link #makeCall(org.apache.calcite.rel.type.RelDataType, org.apache.calcite.sql.S...
/** * Creates a call with a list of arguments and a predetermined type. */
Creates a call with a list of arguments and a predetermined type
makeCall
{ "repo_name": "b-slim/calcite", "path": "core/src/main/java/org/apache/calcite/rex/RexBuilder.java", "license": "apache-2.0", "size": 51633 }
[ "java.util.List", "org.apache.calcite.rel.type.RelDataType", "org.apache.calcite.sql.SqlOperator" ]
import java.util.List; import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.sql.SqlOperator;
import java.util.*; import org.apache.calcite.rel.type.*; import org.apache.calcite.sql.*;
[ "java.util", "org.apache.calcite" ]
java.util; org.apache.calcite;
1,209,822
private InternalDistributedMember getColocatedDataStore( Collection<InternalDistributedMember> candidates, Collection<InternalDistributedMember> alreadyUsed, int bucketId, String prName) { Assert.assertTrue(prName != null); // precondition1 PartitionedRegion colocatedRegion = ColocationHelpe...
InternalDistributedMember function( Collection<InternalDistributedMember> candidates, Collection<InternalDistributedMember> alreadyUsed, int bucketId, String prName) { Assert.assertTrue(prName != null); PartitionedRegion colocatedRegion = ColocationHelper.getColocatedRegion(this.prRegion); Region prRoot = PartitionedRe...
/** * Select the member with which is hosting the same bucketid for the PR it is * colocated with In case of primary it returns the same node whereas in case * of secondary it will return the least loaded datastore which is hosting the * bucketid. * * @param alreadyUsed * @param bucketId * @par...
Select the member with which is hosting the same bucketid for the PR it is colocated with In case of primary it returns the same node whereas in case of secondary it will return the least loaded datastore which is hosting the bucketid
getColocatedDataStore
{ "repo_name": "ameybarve15/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/PRHARedundancyProvider.java", "license": "apache-2.0", "size": 92812 }
[ "com.gemstone.gemfire.cache.Region", "com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember", "com.gemstone.gemfire.internal.Assert", "com.gemstone.gemfire.internal.cache.partitioned.RegionAdvisor", "java.util.ArrayList", "java.util.Collection", "java.util.Set" ]
import com.gemstone.gemfire.cache.Region; import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember; import com.gemstone.gemfire.internal.Assert; import com.gemstone.gemfire.internal.cache.partitioned.RegionAdvisor; import java.util.ArrayList; import java.util.Collection; import java.util.Se...
import com.gemstone.gemfire.cache.*; import com.gemstone.gemfire.distributed.internal.membership.*; import com.gemstone.gemfire.internal.*; import com.gemstone.gemfire.internal.cache.partitioned.*; import java.util.*;
[ "com.gemstone.gemfire", "java.util" ]
com.gemstone.gemfire; java.util;
344,823
synchronized void updateLoad(ServerLocation location, ServerLoad newLoad, List<ClientProxyMembershipID> clientIds) { String[] groups = serverGroupMap.get(location); // the server was asynchronously removed, so don't do anything. if (groups == null) { return; } if (clientIds != null) {...
synchronized void updateLoad(ServerLocation location, ServerLoad newLoad, List<ClientProxyMembershipID> clientIds) { String[] groups = serverGroupMap.get(location); if (groups == null) { return; } if (clientIds != null) { for (ClientProxyMembershipID clientId : clientIds) { cancelClientEstimate(clientId, location); } }...
/** * Update the load information for a server that was previously added. */
Update the load information for a server that was previously added
updateLoad
{ "repo_name": "davebarnes97/geode", "path": "geode-core/src/main/java/org/apache/geode/distributed/internal/LocatorLoadSnapshot.java", "license": "apache-2.0", "size": 22975 }
[ "java.util.List", "org.apache.geode.cache.server.ServerLoad", "org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID" ]
import java.util.List; import org.apache.geode.cache.server.ServerLoad; import org.apache.geode.internal.cache.tier.sockets.ClientProxyMembershipID;
import java.util.*; import org.apache.geode.cache.server.*; import org.apache.geode.internal.cache.tier.sockets.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
1,255,248
public AscendingTimestampExtractor<T> withViolationHandler(MonotonyViolationHandler handler) { this.violationHandler = requireNonNull(handler); return this; } // ------------------------------------------------------------------------
AscendingTimestampExtractor<T> function(MonotonyViolationHandler handler) { this.violationHandler = requireNonNull(handler); return this; }
/** * Sets the handler for violations to the ascending timestamp order. * * @param handler The violation handler to use. * @return This extractor. */
Sets the handler for violations to the ascending timestamp order
withViolationHandler
{ "repo_name": "hongyuhong/flink", "path": "flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/timestamps/AscendingTimestampExtractor.java", "license": "apache-2.0", "size": 5123 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
2,177,364
public static String urlEncode(Object value) { try { return URLEncoder.encode(value.toString(), "utf-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } }
static String function(Object value) { try { return URLEncoder.encode(value.toString(), "utf-8"); } catch (UnsupportedEncodingException e) { throw new RuntimeException(e); } }
/** * An interface to URLEncoder.encode() that isn't inane */
An interface to URLEncoder.encode() that isn't inane
urlEncode
{ "repo_name": "karma-exchange-org/karma-exchange", "path": "src/main/java/org/karmaexchange/util/URLUtil.java", "license": "apache-2.0", "size": 1520 }
[ "java.io.UnsupportedEncodingException", "java.net.URLEncoder" ]
import java.io.UnsupportedEncodingException; import java.net.URLEncoder;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
1,495,828
byte[] convert(byte[] indefData) throws IOException { data = indefData; dataPos=0; index=0; dataSize = data.length; int len=0; // parse and set up the vectors of all the indefinite-lengths while (dataPos < dataSize) { parseTag(); len = parseLe...
byte[] convert(byte[] indefData) throws IOException { data = indefData; dataPos=0; index=0; dataSize = data.length; int len=0; while (dataPos < dataSize) { parseTag(); len = parseLength(); parseValue(len); } newData = new byte[dataSize + numOfTotalLenBytes]; dataPos=0; newDataPos=0; index=0; while (dataPos < dataSize) ...
/** * Converts a indefinite length DER encoded byte array to * a definte length DER encoding. * * @param indefData the byte array holding the indefinite * length encoding. * @return the byte array containing the definite length * DER encoding. * @exception IOExcept...
Converts a indefinite length DER encoded byte array to a definte length DER encoding
convert
{ "repo_name": "Doctor-Andonuts/taskwarriorandroid", "path": "app/src/main/java/kvj/taskw/sync/der/DerIndefLenConverter.java", "license": "mit", "size": 11309 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
856,213
protected final Object getNormalizedAttribute(String key) { for (int i = 0; i < normalizedAttributes.size(); i++) { Pair<String, Object> pair = normalizedAttributes.get(i); if (pair.first.equals(key)) { return pair.second; } } return parent == null ? null : parent...
final Object function(String key) { for (int i = 0; i < normalizedAttributes.size(); i++) { Pair<String, Object> pair = normalizedAttributes.get(i); if (pair.first.equals(key)) { return pair.second; } } return parent == null ? null : parent.getNormalizedAttribute(key); }
/** * Attempt to retrieve a stashed normalized attribute. If there is no stashed attribute with * the provided name, the parent element parser will be queried, and so on up the chain. * * @param key The name of the attribute. * @return The stashed value, or null if the attribute was not be foun...
Attempt to retrieve a stashed normalized attribute. If there is no stashed attribute with the provided name, the parent element parser will be queried, and so on up the chain
getNormalizedAttribute
{ "repo_name": "malizadehq/MyTelegram", "path": "TMessagesProj/src/main/java/org/telegram/messenger/exoplayer/smoothstreaming/SmoothStreamingManifestParser.java", "license": "gpl-2.0", "size": 24894 }
[ "android.util.Pair" ]
import android.util.Pair;
import android.util.*;
[ "android.util" ]
android.util;
477,370
@GET("buckets/{id}") Observable<Bucket> getBucket(@Path("id") long bucketId);
@GET(STR) Observable<Bucket> getBucket(@Path("id") long bucketId);
/** * Get a bucket * * @param bucketId Bucket ID * * @return Network operation result */
Get a bucket
getBucket
{ "repo_name": "tangshiba/dribbble", "path": "sdk-library/src/main/java/com/agilie/dribbblesdk/service/retrofit/services/DribbbleBucketsService.java", "license": "mit", "size": 3188 }
[ "com.agilie.dribbblesdk.domain.Bucket" ]
import com.agilie.dribbblesdk.domain.Bucket;
import com.agilie.dribbblesdk.domain.*;
[ "com.agilie.dribbblesdk" ]
com.agilie.dribbblesdk;
551,309
@Override @SuppressWarnings("boxing") public Relation<Boolean> addRelation( Relatable rParent, Relation<Boolean> rNewRelation) { if (rNewRelation.getTarget() != Boolean.TRUE) { throw new IllegalArgumentException( getName() + " must always be set to TRUE"); } super.addRelat...
@SuppressWarnings(STR) Relation<Boolean> function( Relatable rParent, Relation<Boolean> rNewRelation) { if (rNewRelation.getTarget() != Boolean.TRUE) { throw new IllegalArgumentException( getName() + STR); } super.addRelation(rParent, rNewRelation); for (Relation<?> rRelation : rParent.getRelations( r -> r.getType() !=...
/*************************************** * Overridden to add this type as a listener for relation events on the * parent object when a relation with this type is set. * * @see RelationType#addRelation(Relatable, Relation) */
Overridden to add this type as a listener for relation events on the parent object when a relation with this type is set
addRelation
{ "repo_name": "esoco/objectrelations", "path": "src/main/java/org/obrel/type/MetaTypes.java", "license": "apache-2.0", "size": 15616 }
[ "de.esoco.lib.event.EventDispatcher", "de.esoco.lib.property.Immutability", "org.obrel.core.Relatable", "org.obrel.core.Relation", "org.obrel.core.RelationEvent" ]
import de.esoco.lib.event.EventDispatcher; import de.esoco.lib.property.Immutability; import org.obrel.core.Relatable; import org.obrel.core.Relation; import org.obrel.core.RelationEvent;
import de.esoco.lib.event.*; import de.esoco.lib.property.*; import org.obrel.core.*;
[ "de.esoco.lib", "org.obrel.core" ]
de.esoco.lib; org.obrel.core;
1,657,251
public static void setBookmark( HTMLWriter writer, String tagName, String htmlIDNamespace, String bookmark ) { String htmlBookmark; if ( null != htmlIDNamespace && null != bookmark && bookmark.length( ) > 0 ) { htmlBookmark = htmlIDNamespace + bookmark; } else { htmlBookmark = bookmark; } ...
static void function( HTMLWriter writer, String tagName, String htmlIDNamespace, String bookmark ) { String htmlBookmark; if ( null != htmlIDNamespace && null != bookmark && bookmark.length( ) > 0 ) { htmlBookmark = htmlIDNamespace + bookmark; } else { htmlBookmark = bookmark; } writer.attribute( HTMLTags.ATTR_ID, html...
/** * Outputs the 'bookmark' property. Destination anchors in HTML documents * may be specified either by the A element (naming it with the 'name' * attribute), or by any other elements (naming with the 'id' attribute). * * @param tagName * The tag's name. * @param bookmark * The ...
Outputs the 'bookmark' property. Destination anchors in HTML documents may be specified either by the A element (naming it with the 'name' attribute), or by any other elements (naming with the 'id' attribute)
setBookmark
{ "repo_name": "rrimmana/birt-1", "path": "engine/org.eclipse.birt.report.engine.emitter.html/src/org/eclipse/birt/report/engine/emitter/html/util/HTMLEmitterUtil.java", "license": "epl-1.0", "size": 7885 }
[ "org.eclipse.birt.report.engine.emitter.HTMLTags", "org.eclipse.birt.report.engine.emitter.HTMLWriter" ]
import org.eclipse.birt.report.engine.emitter.HTMLTags; import org.eclipse.birt.report.engine.emitter.HTMLWriter;
import org.eclipse.birt.report.engine.emitter.*;
[ "org.eclipse.birt" ]
org.eclipse.birt;
982,406
public List<ConstrainedParameter> getAllParameterMetaData() { return parameterMetaData; }
List<ConstrainedParameter> function() { return parameterMetaData; }
/** * Returns meta data for all parameters of the represented method. * * @return A list with parameter meta data. The length corresponds to the * number of parameters of the method represented by this meta data * object, so an empty list may be returned (in case of a * parameterless...
Returns meta data for all parameters of the represented method
getAllParameterMetaData
{ "repo_name": "gastaldi/hibernate-validator", "path": "hibernate-validator/src/main/java/org/hibernate/validator/metadata/raw/ConstrainedMethod.java", "license": "apache-2.0", "size": 6836 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,765,532
protected void sendDataAsync(XBee64BitAddress address, byte[] data) throws XBeeException { // Verify the parameters are not null, if they are null, throw an exception. if (address == null) throw new NullPointerException("Address cannot be null"); if (data == null) throw new NullPointerException("Data can...
void function(XBee64BitAddress address, byte[] data) throws XBeeException { if (address == null) throw new NullPointerException(STR); if (data == null) throw new NullPointerException(STR); if (isRemote()) throw new OperationNotSupportedException(STR); logger.debug(toString() + STR, address, HexUtils.prettyHexString(dat...
/** * Sends asynchronously the provided data to the XBee device of the network * corresponding to the given 64-bit address. * * <p>Asynchronous transmissions do not wait for answer from the remote * device or for transmit status packet.</p> * * @param address The 64-bit address of the XBee that will r...
Sends asynchronously the provided data to the XBee device of the network corresponding to the given 64-bit address. Asynchronous transmissions do not wait for answer from the remote device or for transmit status packet
sendDataAsync
{ "repo_name": "GUBotDev/XBeeJavaLibrary", "path": "library/src/main/java/com/digi/xbee/api/XBeeDevice.java", "license": "mpl-2.0", "size": 83870 }
[ "com.digi.xbee.api.exceptions.OperationNotSupportedException", "com.digi.xbee.api.exceptions.XBeeException", "com.digi.xbee.api.models.XBee16BitAddress", "com.digi.xbee.api.models.XBee64BitAddress", "com.digi.xbee.api.models.XBeeTransmitOptions", "com.digi.xbee.api.packet.XBeePacket", "com.digi.xbee.api...
import com.digi.xbee.api.exceptions.OperationNotSupportedException; import com.digi.xbee.api.exceptions.XBeeException; import com.digi.xbee.api.models.XBee16BitAddress; import com.digi.xbee.api.models.XBee64BitAddress; import com.digi.xbee.api.models.XBeeTransmitOptions; import com.digi.xbee.api.packet.XBeePacket; impo...
import com.digi.xbee.api.exceptions.*; import com.digi.xbee.api.models.*; import com.digi.xbee.api.packet.*; import com.digi.xbee.api.packet.common.*; import com.digi.xbee.api.packet.raw.*; import com.digi.xbee.api.utils.*;
[ "com.digi.xbee" ]
com.digi.xbee;
2,789,124
@Test public void whenGetCallThenReturnsElementByKey() { catalog.insert("one", "1"); catalog.insert("two", "2"); assertThat(catalog.get("two"), is("2")); }
void function() { catalog.insert("one", "1"); catalog.insert("two", "2"); assertThat(catalog.get("two"), is("2")); }
/** * Test get method. */
Test get method
whenGetCallThenReturnsElementByKey
{ "repo_name": "roman-sd/java-a-to-z", "path": "chapter_005/src/test/java/ru/sdroman/pro/map/CatalogTest.java", "license": "apache-2.0", "size": 3052 }
[ "org.hamcrest.core.Is", "org.junit.Assert" ]
import org.hamcrest.core.Is; import org.junit.Assert;
import org.hamcrest.core.*; import org.junit.*;
[ "org.hamcrest.core", "org.junit" ]
org.hamcrest.core; org.junit;
1,189,430
Algorithm algorithm ; Selection selection ; HashMap parameters ; // Operator parameters algorithm = new NSGAIIRandom(problem_) ; // Algorithm parameters algorithm.setInputParameter("populationSize",populationSize_); algorithm.setInputParameter("maxEvaluations",maxEvaluations_); Offspri...
Algorithm algorithm ; Selection selection ; HashMap parameters ; algorithm = new NSGAIIRandom(problem_) ; algorithm.setInputParameter(STR,populationSize_); algorithm.setInputParameter(STR,maxEvaluations_); Offspring[] getOffspring = new Offspring[3]; double CR, F; getOffspring[0] = new DifferentialEvolutionOffspring(CR...
/** * Configure NSGAII with user-defined parameter settings * @return A NSGAII algorithm object * @throws jmetal.util.JMException */
Configure NSGAII with user-defined parameter settings
configure
{ "repo_name": "dkatsios/JSOptimizer", "path": "JSOptimizer/JMETALHOME/jmetal/experiments/settings/NSGAIIRandom_Settings.java", "license": "gpl-3.0", "size": 6459 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,787,878
static Set<String> getCommands() { final String functions[] = new String[] { // Scripting Commands "break", "cmake_host_system_information", "cmake_minimum_required", "cmake_parse_arguments", "cmake_policy", "con...
static Set<String> getCommands() { final String functions[] = new String[] { "break", STR, STR, STR, STR, STR, STR, STR, "else", STR, STR, "endif", STR, STR, STR, "file", STR, STR, STR, STR, STR, STR, STR, STR, STR, STR, STR, "if", STR, STR, "list", "macro", STR, "math", STR, STR, STR, STR, STR, STR, "set", STR, STR, "...
/** * Returns a set of all CMake commands. * * @return Set of commands */
Returns a set of all CMake commands
getCommands
{ "repo_name": "offa/NB-CMake-Completion", "path": "src/main/java/bv/offa/netbeans/cmake/completion/CMakeCompletionProvider.java", "license": "gpl-3.0", "size": 11865 }
[ "java.util.Collections", "java.util.HashSet", "java.util.Set" ]
import java.util.Collections; import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,392,586
public void setParams(final HttpConnectionParams params) { if (params == null) { throw new IllegalArgumentException("Parameters may not be null"); } this.params = params; }
void function(final HttpConnectionParams params) { if (params == null) { throw new IllegalArgumentException(STR); } this.params = params; }
/** * Assigns {@link HttpConnectionParams HTTP protocol parameters} for this method. * * @since 3.0 * * @see HttpConnectionParams */
Assigns <code>HttpConnectionParams HTTP protocol parameters</code> for this method
setParams
{ "repo_name": "meitar/zaproxy", "path": "zap/src/main/java/org/apache/commons/httpclient/HttpConnection.java", "license": "apache-2.0", "size": 48146 }
[ "org.apache.commons.httpclient.params.HttpConnectionParams" ]
import org.apache.commons.httpclient.params.HttpConnectionParams;
import org.apache.commons.httpclient.params.*;
[ "org.apache.commons" ]
org.apache.commons;
1,234,280
@Test public void testProcess() { final String testValueToSendThru = " some value "; try { when(mockBufferedReader.readLine()).thenReturn(testValueToSendThru + "\n").thenReturn(null); } catch (final IOException e) { throw new IllegalStateException(e); } testObj.start(); // conso...
void function() { final String testValueToSendThru = STR; try { when(mockBufferedReader.readLine()).thenReturn(testValueToSendThru + "\n").thenReturn(null); } catch (final IOException e) { throw new IllegalStateException(e); } testObj.start(); ThreadUtil.sleep(HeadlessGameServerConsole.LOOP_SLEEP_MS * 5); verify(mockHe...
/** * Start the test object processing, it will read from the mock output and should * send to the mock controller. The mock controller then just needs to check * that it gets the input we send. */
Start the test object processing, it will read from the mock output and should send to the mock controller. The mock controller then just needs to check that it gets the input we send
testProcess
{ "repo_name": "simon33-2/triplea", "path": "test/games/strategy/engine/framework/headlessGameServer/HeadlessGameServerConsoleTest.java", "license": "gpl-2.0", "size": 1700 }
[ "games.strategy.util.ThreadUtil", "java.io.IOException", "org.mockito.Mockito" ]
import games.strategy.util.ThreadUtil; import java.io.IOException; import org.mockito.Mockito;
import games.strategy.util.*; import java.io.*; import org.mockito.*;
[ "games.strategy.util", "java.io", "org.mockito" ]
games.strategy.util; java.io; org.mockito;
234,096
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Facility facility) throws InternalErrorException;
List<Attribute> getRequiredAttributes(PerunSession sess, Service service, Facility facility) throws InternalErrorException;
/** * Get facility attributes which are required by the service. * * @param sess perun session * @param facility you get attributes for this facility * @param service attribute required by this service you'll get * @return list of facility attributes which are required by the service * * @throws Interna...
Get facility attributes which are required by the service
getRequiredAttributes
{ "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.Facility", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.Service", "cz.metacentrum.perun.core.api.exceptions.InternalErrorException", "java.util.List" ]
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Facility; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.Service; 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,641
public MessageDeliveryInfo getMessageDeliveryInfo(String destination, ProtocolType protocolType, DestinationType destinationType) throws AndesException { Map<String, MessageDeliveryInfo> infoMap = subscriptionCursar4QueueMap.get(destinationType); ...
MessageDeliveryInfo function(String destination, ProtocolType protocolType, DestinationType destinationType) throws AndesException { Map<String, MessageDeliveryInfo> infoMap = subscriptionCursar4QueueMap.get(destinationType); if (null == infoMap) { infoMap = new HashMap<>(); } MessageDeliveryInfo messageDeliveryInfo = ...
/** * Will allow retrieval of information related to delivery of the message * * @param destination where the message should be delivered to * @param protocolType The protocol which the destination belongs to * @param destinationType The type of the destination * @return the information wh...
Will allow retrieval of information related to delivery of the message
getMessageDeliveryInfo
{ "repo_name": "hemikak/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/MessageFlusher.java", "license": "apache-2.0", "size": 16061 }
[ "java.util.Collection", "java.util.HashMap", "java.util.Map", "org.wso2.andes.subscription.LocalSubscription" ]
import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.wso2.andes.subscription.LocalSubscription;
import java.util.*; import org.wso2.andes.subscription.*;
[ "java.util", "org.wso2.andes" ]
java.util; org.wso2.andes;
1,518,905
// JMX getters for the o.a.c.metrics API below. public Object getCacheMetric(String cacheType, String metricName) { try { switch(metricName) { case "Capacity": case "Entries": case "HitRate": case "Size"...
Object function(String cacheType, String metricName) { try { switch(metricName) { case STR: case STR: case STR: case "Size": return JMX.newMBeanProxy(mbeanServerConn, new ObjectName(STR + cacheType + STR + metricName), CassandraMetricsRegistry.JmxGaugeMBean.class).getValue(); case STR: case "Hits": case STR: return JMX...
/** * Retrieve cache metrics based on the cache type (KeyCache, RowCache, or CounterCache) * @param cacheType KeyCach, RowCache, or CounterCache * @param metricName Capacity, Entries, HitRate, Size, Requests or Hits. */
Retrieve cache metrics based on the cache type (KeyCache, RowCache, or CounterCache)
getCacheMetric
{ "repo_name": "hhorii/cassandra", "path": "src/java/org/apache/cassandra/tools/NodeProbe.java", "license": "apache-2.0", "size": 52572 }
[ "javax.management.JMX", "javax.management.MalformedObjectNameException", "javax.management.ObjectName", "org.apache.cassandra.metrics.CassandraMetricsRegistry" ]
import javax.management.JMX; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import org.apache.cassandra.metrics.CassandraMetricsRegistry;
import javax.management.*; import org.apache.cassandra.metrics.*;
[ "javax.management", "org.apache.cassandra" ]
javax.management; org.apache.cassandra;
249,129
@ApiMethod(name = "getProfile", path = "profile", httpMethod = HttpMethod.GET) public Profile getProfile(final User user) throws UnauthorizedException { if (user == null) { throw new UnauthorizedException("Authorization required"); } // TODO // load the Profile Entit...
@ApiMethod(name = STR, path = STR, httpMethod = HttpMethod.GET) Profile function(final User user) throws UnauthorizedException { if (user == null) { throw new UnauthorizedException(STR); } String userId = user.getUserId(); Key key = Key.create(Profile.class, userId); Profile profile = (Profile) ofy().load().key(key).no...
/** * Returns a Profile object associated with the given user object. The cloud * endpoints system automatically inject the User object. * * @param user * A User object injected by the cloud endpoints. * @return Profile object. * @throws UnauthorizedException * ...
Returns a Profile object associated with the given user object. The cloud endpoints system automatically inject the User object
getProfile
{ "repo_name": "pytlyk/homework4", "path": "src/main/java/com/google/devrel/training/conference/spi/ConferenceApi.java", "license": "apache-2.0", "size": 4755 }
[ "com.google.api.server.spi.config.ApiMethod", "com.google.api.server.spi.response.UnauthorizedException", "com.google.appengine.api.users.User", "com.google.devrel.training.conference.domain.Profile", "com.google.devrel.training.conference.service.OfyService", "com.googlecode.objectify.Key" ]
import com.google.api.server.spi.config.ApiMethod; import com.google.api.server.spi.response.UnauthorizedException; import com.google.appengine.api.users.User; import com.google.devrel.training.conference.domain.Profile; import com.google.devrel.training.conference.service.OfyService; import com.googlecode.objectify.Ke...
import com.google.api.server.spi.config.*; import com.google.api.server.spi.response.*; import com.google.appengine.api.users.*; import com.google.devrel.training.conference.domain.*; import com.google.devrel.training.conference.service.*; import com.googlecode.objectify.*;
[ "com.google.api", "com.google.appengine", "com.google.devrel", "com.googlecode.objectify" ]
com.google.api; com.google.appengine; com.google.devrel; com.googlecode.objectify;
2,716,887
public static void copyTableJobPropertiesToConf(TableDesc tbl, JobConf job) { Properties tblProperties = tbl.getProperties(); for(String name: tblProperties.stringPropertyNames()) { if (job.get(name) == null) { String val = (String) tblProperties.get(name); if (val != null) { j...
static void function(TableDesc tbl, JobConf job) { Properties tblProperties = tbl.getProperties(); for(String name: tblProperties.stringPropertyNames()) { if (job.get(name) == null) { String val = (String) tblProperties.get(name); if (val != null) { job.set(name, StringEscapeUtils.escapeJava(val)); } } } Map<String, St...
/** * Copies the storage handler properties configured for a table descriptor to a runtime job * configuration. * * @param tbl * table descriptor from which to read * * @param job * configuration which receives configured properties */
Copies the storage handler properties configured for a table descriptor to a runtime job configuration
copyTableJobPropertiesToConf
{ "repo_name": "WANdisco/amplab-hive", "path": "ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java", "license": "apache-2.0", "size": 137553 }
[ "java.util.Map", "java.util.Properties", "org.apache.commons.lang3.StringEscapeUtils", "org.apache.hadoop.hive.ql.plan.TableDesc", "org.apache.hadoop.mapred.JobConf" ]
import java.util.Map; import java.util.Properties; import org.apache.commons.lang3.StringEscapeUtils; import org.apache.hadoop.hive.ql.plan.TableDesc; import org.apache.hadoop.mapred.JobConf;
import java.util.*; import org.apache.commons.lang3.*; import org.apache.hadoop.hive.ql.plan.*; import org.apache.hadoop.mapred.*;
[ "java.util", "org.apache.commons", "org.apache.hadoop" ]
java.util; org.apache.commons; org.apache.hadoop;
2,089,256
public void datasetChanged(DatasetChangeEvent event) { PlotChangeEvent newEvent = new PlotChangeEvent(this); newEvent.setType(ChartChangeEventType.DATASET_UPDATED); notifyListeners(newEvent); }
void function(DatasetChangeEvent event) { PlotChangeEvent newEvent = new PlotChangeEvent(this); newEvent.setType(ChartChangeEventType.DATASET_UPDATED); notifyListeners(newEvent); }
/** * Receives notification of a change to the plot's dataset. * <P> * The plot reacts by passing on a plot change event to all registered * listeners. * * @param event information about the event (not used here). */
Receives notification of a change to the plot's dataset. The plot reacts by passing on a plot change event to all registered listeners
datasetChanged
{ "repo_name": "Epsilon2/Memetic-Algorithm-for-TSP", "path": "jfreechart-1.0.16/source/org/jfree/chart/plot/Plot.java", "license": "mit", "size": 51815 }
[ "org.jfree.chart.event.ChartChangeEventType", "org.jfree.chart.event.PlotChangeEvent", "org.jfree.data.general.DatasetChangeEvent" ]
import org.jfree.chart.event.ChartChangeEventType; import org.jfree.chart.event.PlotChangeEvent; import org.jfree.data.general.DatasetChangeEvent;
import org.jfree.chart.event.*; import org.jfree.data.general.*;
[ "org.jfree.chart", "org.jfree.data" ]
org.jfree.chart; org.jfree.data;
2,124,879
public void createOrUpdateSpeciesScheme(String speciesID, ArrayList<String> allSpecies) { if (allSpecies != null) this.allSpecies = allSpecies; if (speciesSchemes.get(speciesID) == null) speciesSchemes.put(speciesID, new Scheme()); }
void function(String speciesID, ArrayList<String> allSpecies) { if (allSpecies != null) this.allSpecies = allSpecies; if (speciesSchemes.get(speciesID) == null) speciesSchemes.put(speciesID, new Scheme()); }
/** * creates a new scheme if one doesn't exist * * @param speciesID */
creates a new scheme if one doesn't exist
createOrUpdateSpeciesScheme
{ "repo_name": "MyersResearchGroup/iBioSim", "path": "gui/src/main/java/edu/utah/ece/async/ibiosim/gui/modelEditor/movie/MovieScheme.java", "license": "apache-2.0", "size": 23409 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,534,677
public MotionEvent getMotionEvent() { return this.mMotionEvent; } // =========================================================== // Methods for/from SuperClass/Interfaces // =========================================================== // =========================================================== // Methods...
MotionEvent function() { return this.mMotionEvent; } private static final class TouchEventPool extends GenericPool<TouchEvent> {
/** * Provides the raw {@link MotionEvent} that originally caused this {@link TouchEvent}. * The coordinates of this {@link MotionEvent} are in surface-coordinates! * @return */
Provides the raw <code>MotionEvent</code> that originally caused this <code>TouchEvent</code>. The coordinates of this <code>MotionEvent</code> are in surface-coordinates
getMotionEvent
{ "repo_name": "caoanhhao/AndEngine", "path": "src/org/andengine/input/touch/TouchEvent.java", "license": "apache-2.0", "size": 4193 }
[ "android.view.MotionEvent", "org.andengine.util.adt.pool.GenericPool" ]
import android.view.MotionEvent; import org.andengine.util.adt.pool.GenericPool;
import android.view.*; import org.andengine.util.adt.pool.*;
[ "android.view", "org.andengine.util" ]
android.view; org.andengine.util;
1,834,059
@Deployment(resources = { "org/camunda/bpm/engine/test/bpmn/callactivity/CallActivity.testSubProcessAllDataInputOutput.bpmn20.xml", "org/camunda/bpm/engine/test/bpmn/callactivity/simpleSubProcess.bpmn20.xml"}) public void testSubProcessAllDataOutput() { ProcessInstance processInstance = runtimeService....
@Deployment(resources = { STR, STR}) void function() { ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(STR); TaskQuery taskQuery = taskService.createTaskQuery(); Task taskBeforeSubProcess = taskQuery.singleResult(); assertEquals(STR, taskBeforeSubProcess.getName()); taskService.complete(taskB...
/** * This testcase verifies that <camunda:out variables="all" /> works also in * case super process has no variables * * https://app.camunda.com/jira/browse/CAM-1617 * */
This testcase verifies that works also in case super process has no variables HREF
testSubProcessAllDataOutput
{ "repo_name": "falko/camunda-bpm-platform", "path": "engine/src/test/java/org/camunda/bpm/engine/test/bpmn/callactivity/CallActivityTest.java", "license": "apache-2.0", "size": 84504 }
[ "org.camunda.bpm.engine.runtime.ProcessInstance", "org.camunda.bpm.engine.task.Task", "org.camunda.bpm.engine.task.TaskQuery", "org.camunda.bpm.engine.test.Deployment" ]
import org.camunda.bpm.engine.runtime.ProcessInstance; import org.camunda.bpm.engine.task.Task; import org.camunda.bpm.engine.task.TaskQuery; import org.camunda.bpm.engine.test.Deployment;
import org.camunda.bpm.engine.runtime.*; import org.camunda.bpm.engine.task.*; import org.camunda.bpm.engine.test.*;
[ "org.camunda.bpm" ]
org.camunda.bpm;
1,150,948
public void setDefaultSelected(boolean defaultSelected) { this.defaultSelected = defaultSelected; } class EntryTable extends JTable { private final GeneralRenderer renderer = new GeneralRenderer(Color.white); public EntryTable(TableModel model) { super(model); ...
void function(boolean defaultSelected) { this.defaultSelected = defaultSelected; } class EntryTable extends JTable { private final GeneralRenderer renderer = new GeneralRenderer(Color.white); public EntryTable(TableModel model) { super(model); getTableHeader().setReorderingAllowed(false); }
/** * The "defaultSelected" boolean value determines if new entries added are * selected for import or not. This value is true by default. * * @param defaultSelected The desired value. */
The "defaultSelected" boolean value determines if new entries added are selected for import or not. This value is true by default
setDefaultSelected
{ "repo_name": "motokito/jabref", "path": "src/main/java/net/sf/jabref/gui/importer/ImportInspectionDialog.java", "license": "mit", "size": 60279 }
[ "java.awt.Color", "javax.swing.JTable", "javax.swing.table.TableModel", "net.sf.jabref.gui.renderer.GeneralRenderer" ]
import java.awt.Color; import javax.swing.JTable; import javax.swing.table.TableModel; import net.sf.jabref.gui.renderer.GeneralRenderer;
import java.awt.*; import javax.swing.*; import javax.swing.table.*; import net.sf.jabref.gui.renderer.*;
[ "java.awt", "javax.swing", "net.sf.jabref" ]
java.awt; javax.swing; net.sf.jabref;
2,179,793
default AdvancedPgReplicationSlotEndpointBuilder slotOptions(Map values) { doSetMultiValueProperties("slotOptions", "slotOptions.", values); return this; }
default AdvancedPgReplicationSlotEndpointBuilder slotOptions(Map values) { doSetMultiValueProperties(STR, STR, values); return this; }
/** * Slot options to be passed to the output plugin. * * The option is a: <code>java.util.Map&lt;java.lang.String, * java.lang.Object&gt;</code> type. * The option is multivalued, and you can use the slotOptions(String, * Object) method to add a value (call the me...
Slot options to be passed to the output plugin. The option is a: <code>java.util.Map&lt;java.lang.String, java.lang.Object&gt;</code> type. The option is multivalued, and you can use the slotOptions(String, Object) method to add a value (call the method multiple times to set more values). Group: advanced
slotOptions
{ "repo_name": "adessaigne/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/PgReplicationSlotEndpointBuilderFactory.java", "license": "apache-2.0", "size": 32526 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,073,500
public void executeRequestNoResponseBody(HttpUriRequest request, ServerConfig serverConfig, int expectedStatusCode) { FlowableServiceException exception = null; CloseableHttpClient client = getHttpClient(serverConfig); try { CloseableHttpResponse response = client.execute(reque...
void function(HttpUriRequest request, ServerConfig serverConfig, int expectedStatusCode) { FlowableServiceException exception = null; CloseableHttpClient client = getHttpClient(serverConfig); try { CloseableHttpResponse response = client.execute(request); boolean success = response.getStatusLine() != null && response.g...
/** * Execute the given request, without using the response body. In case the response returns a different status-code than expected, an {@link FlowableServiceException} is thrown with the error * message received from the client, if possible. */
Execute the given request, without using the response body. In case the response returns a different status-code than expected, an <code>FlowableServiceException</code> is thrown with the error message received from the client, if possible
executeRequestNoResponseBody
{ "repo_name": "sibok666/flowable-engine", "path": "modules/flowable-ui-admin/src/main/java/org/flowable/admin/service/engine/FlowableClientService.java", "license": "apache-2.0", "size": 27949 }
[ "com.fasterxml.jackson.databind.JsonNode", "java.io.InputStream", "org.apache.http.client.methods.CloseableHttpResponse", "org.apache.http.client.methods.HttpUriRequest", "org.apache.http.impl.client.CloseableHttpClient", "org.flowable.admin.domain.ServerConfig", "org.flowable.admin.service.engine.excep...
import com.fasterxml.jackson.databind.JsonNode; import java.io.InputStream; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpUriRequest; import org.apache.http.impl.client.CloseableHttpClient; import org.flowable.admin.domain.ServerConfig; import org.flowable.admin....
import com.fasterxml.jackson.databind.*; import java.io.*; import org.apache.http.client.methods.*; import org.apache.http.impl.client.*; import org.flowable.admin.domain.*; import org.flowable.admin.service.engine.exception.*;
[ "com.fasterxml.jackson", "java.io", "org.apache.http", "org.flowable.admin" ]
com.fasterxml.jackson; java.io; org.apache.http; org.flowable.admin;
1,767,715
void sendMessage(String key, CommandSender sender, Object... params);
void sendMessage(String key, CommandSender sender, Object... params);
/** * Send a translated key to the sender * * @param key the key to lookup * @param sender the sender whose locale will be used * @param params the values to use in String.format */
Send a translated key to the sender
sendMessage
{ "repo_name": "Eluinhost/pluginframework", "path": "src/main/java/com/publicuhc/pluginframework/translate/Translate.java", "license": "mit", "size": 2792 }
[ "org.bukkit.command.CommandSender" ]
import org.bukkit.command.CommandSender;
import org.bukkit.command.*;
[ "org.bukkit.command" ]
org.bukkit.command;
2,356,204
public static ITypeBinding getExplicitCast(Expression initializer, Expression reference) { ITypeBinding initializerType= initializer.resolveTypeBinding(); ITypeBinding referenceType= reference.resolveTypeBinding(); if (initializerType == null || referenceType == null) return null; if (initializerType.i...
static ITypeBinding function(Expression initializer, Expression reference) { ITypeBinding initializerType= initializer.resolveTypeBinding(); ITypeBinding referenceType= reference.resolveTypeBinding(); if (initializerType == null referenceType == null) return null; if (initializerType.isPrimitive() && referenceType.isPr...
/** * Returns the type to which an inlined variable initializer should be cast, or * <code>null</code> if no cast is necessary. * * @param initializer the initializer expression of the variable to inline * @param reference the reference to the variable (which is to be inlined) * @return a type binding to w...
Returns the type to which an inlined variable initializer should be cast, or <code>null</code> if no cast is necessary
getExplicitCast
{ "repo_name": "trylimits/Eclipse-Postfix-Code-Completion-Juno38", "path": "juno38/org.eclipse.jdt.ui/core extension/org/eclipse/jdt/internal/corext/dom/ASTNodes.java", "license": "epl-1.0", "size": 35121 }
[ "org.eclipse.jdt.core.dom.Expression", "org.eclipse.jdt.core.dom.ITypeBinding" ]
import org.eclipse.jdt.core.dom.Expression; import org.eclipse.jdt.core.dom.ITypeBinding;
import org.eclipse.jdt.core.dom.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
2,242,562
@Override public void read(JmeImporter im) throws IOException { InputCapsule ic = im.getCapsule(this); name = ic.readString("name", ""); type = ic.readString("type", ""); prefix = ic.readString("pefix", ""); nameSpace = ic.readString("nameSpace", ""); condi...
void function(JmeImporter im) throws IOException { InputCapsule ic = im.getCapsule(this); name = ic.readString("name", STRtypeSTRSTRpefixSTRSTRnameSpaceSTRSTRconditionSTRshaderOutputSTRmultiplicitySTRdefaultValue", null); }
/** * jme serialization (not used) * * @param im the importer * @throws IOException */
jme serialization (not used)
read
{ "repo_name": "atomixnmc/jmonkeyengine", "path": "jme3-core/src/main/java/com/jme3/shader/ShaderNodeVariable.java", "license": "bsd-3-clause", "size": 10673 }
[ "com.jme3.export.InputCapsule", "com.jme3.export.JmeImporter", "java.io.IOException" ]
import com.jme3.export.InputCapsule; import com.jme3.export.JmeImporter; import java.io.IOException;
import com.jme3.export.*; import java.io.*;
[ "com.jme3.export", "java.io" ]
com.jme3.export; java.io;
1,270,722
protected boolean forceCloseStreamsOnDetach() { return true; } private class CaptionModel extends AbstractReadOnlyModel<String> { private static final long serialVersionUID = 1L;
boolean function() { return true; } private class CaptionModel extends AbstractReadOnlyModel<String> { private static final long serialVersionUID = 1L;
/** * The FileUploadField will close any input streams you have opened in its FileUpload by * default. If you wish to manage the stream yourself (e.g. you want to use it in another * thread) then you can override this method to prevent this behavior. * * @return <code>true</code> if stream should be closed at...
The FileUploadField will close any input streams you have opened in its FileUpload by default. If you wish to manage the stream yourself (e.g. you want to use it in another thread) then you can override this method to prevent this behavior
forceCloseStreamsOnDetach
{ "repo_name": "mafulafunk/wicket", "path": "wicket-core/src/main/java/org/apache/wicket/markup/html/form/upload/MultiFileUploadField.java", "license": "apache-2.0", "size": 11059 }
[ "org.apache.wicket.model.AbstractReadOnlyModel" ]
import org.apache.wicket.model.AbstractReadOnlyModel;
import org.apache.wicket.model.*;
[ "org.apache.wicket" ]
org.apache.wicket;
1,356,738
public static SmileDeltaParameters of(double expiry, Tenor expiryTenor, DoubleArray delta, DoubleArray volatility) { return of(expiry, delta, volatility, createParameterMetadata(expiry, expiryTenor, delta)); }
static SmileDeltaParameters function(double expiry, Tenor expiryTenor, DoubleArray delta, DoubleArray volatility) { return of(expiry, delta, volatility, createParameterMetadata(expiry, expiryTenor, delta)); }
/** * Obtains an instance from volatility. * <p> * {@code GenericVolatilitySurfaceYearFractionParameterMetadata} is used for parameter metadata. * * @param expiry the time to expiry associated to the data * @param expiryTenor the tenor associated with the expiry * @param delta the delta of the ...
Obtains an instance from volatility. GenericVolatilitySurfaceYearFractionParameterMetadata is used for parameter metadata
of
{ "repo_name": "OpenGamma/Strata", "path": "modules/pricer/src/main/java/com/opengamma/strata/pricer/fxopt/SmileDeltaParameters.java", "license": "apache-2.0", "size": 27328 }
[ "com.opengamma.strata.basics.date.Tenor", "com.opengamma.strata.collect.array.DoubleArray" ]
import com.opengamma.strata.basics.date.Tenor; import com.opengamma.strata.collect.array.DoubleArray;
import com.opengamma.strata.basics.date.*; import com.opengamma.strata.collect.array.*;
[ "com.opengamma.strata" ]
com.opengamma.strata;
270,942
@Override public Object visitNameTok(NameTok nameTok) throws Exception { unhandled_node(nameTok); if (nameTok.ctx == NameTok.VarArg || nameTok.ctx == NameTok.KwArg) { SourceToken token = AbstractVisitor.makeToken(nameTok, moduleName, nature); scope.addToken(token, token,...
Object function(NameTok nameTok) throws Exception { unhandled_node(nameTok); if (nameTok.ctx == NameTok.VarArg nameTok.ctx == NameTok.KwArg) { SourceToken token = AbstractVisitor.makeToken(nameTok, moduleName, nature); scope.addToken(token, token, (nameTok).id); if (checkCurrentScopeForAssignmentsToBuiltins()) { if (bu...
/** * We want to make the name tok a regular name for interpreting purposes. */
We want to make the name tok a regular name for interpreting purposes
visitNameTok
{ "repo_name": "RandallDW/Aruba_plugin", "path": "plugins/com.python.pydev.analysis/src/com/python/pydev/analysis/scopeanalysis/AbstractScopeAnalyzerVisitor.java", "license": "epl-1.0", "size": 53216 }
[ "org.python.pydev.editor.codecompletion.revisited.modules.SourceToken", "org.python.pydev.editor.codecompletion.revisited.visitors.AbstractVisitor", "org.python.pydev.parser.jython.ast.NameTok" ]
import org.python.pydev.editor.codecompletion.revisited.modules.SourceToken; import org.python.pydev.editor.codecompletion.revisited.visitors.AbstractVisitor; import org.python.pydev.parser.jython.ast.NameTok;
import org.python.pydev.editor.codecompletion.revisited.modules.*; import org.python.pydev.editor.codecompletion.revisited.visitors.*; import org.python.pydev.parser.jython.ast.*;
[ "org.python.pydev" ]
org.python.pydev;
28,101
public Pointer malloc(String opcode, long size) throws DMLRuntimeException { if(size < 0) { throw new DMLRuntimeException("Cannot allocate memory of size " + size); } long t0 = DMLScript.STATISTICS ? System.nanoTime() : 0; // Step 1: First try reusing exact match in rmvarGPUPointers to avoid holes in the ...
Pointer function(String opcode, long size) throws DMLRuntimeException { if(size < 0) { throw new DMLRuntimeException(STR + size); } long t0 = DMLScript.STATISTICS ? System.nanoTime() : 0; Pointer A = getRmvarPointer(opcode, size); if(A == null && size <= getAvailableMemory()) { A = cudaMallocWarnIfFails(new Pointer(), ...
/** * Allocate pointer of the given size in bytes. * * @param opcode instruction name * @param size size in bytes * @return allocated pointer * @throws DMLRuntimeException if error */
Allocate pointer of the given size in bytes
malloc
{ "repo_name": "dusenberrymw/systemml", "path": "src/main/java/org/apache/sysml/runtime/instructions/gpu/context/GPUMemoryManager.java", "license": "apache-2.0", "size": 19831 }
[ "java.util.Collections", "java.util.HashSet", "java.util.Set", "org.apache.sysml.api.DMLScript", "org.apache.sysml.runtime.DMLRuntimeException", "org.apache.sysml.runtime.instructions.gpu.GPUInstruction", "org.apache.sysml.utils.GPUStatistics" ]
import java.util.Collections; import java.util.HashSet; import java.util.Set; import org.apache.sysml.api.DMLScript; import org.apache.sysml.runtime.DMLRuntimeException; import org.apache.sysml.runtime.instructions.gpu.GPUInstruction; import org.apache.sysml.utils.GPUStatistics;
import java.util.*; import org.apache.sysml.api.*; import org.apache.sysml.runtime.*; import org.apache.sysml.runtime.instructions.gpu.*; import org.apache.sysml.utils.*;
[ "java.util", "org.apache.sysml" ]
java.util; org.apache.sysml;
2,597,324
@Exported(visibility=2) public final String getName() { return getDisplayName(); }
@Exported(visibility=2) final String function() { return getDisplayName(); }
/** * Alias for {@link #getDisplayName()}. */
Alias for <code>#getDisplayName()</code>
getName
{ "repo_name": "bkmeneguello/jenkins", "path": "core/src/main/java/hudson/model/Label.java", "license": "mit", "size": 21490 }
[ "org.kohsuke.stapler.export.Exported" ]
import org.kohsuke.stapler.export.Exported;
import org.kohsuke.stapler.export.*;
[ "org.kohsuke.stapler" ]
org.kohsuke.stapler;
488,233
@Test public void testOrElse() { Versioned<String> vv = new Versioned<>("foo", 1); Versioned<String> nullVV = null; assertThat(Versioned.valueOrElse(vv, "bar"), is("foo")); assertThat(Versioned.valueOrElse(nullVV, "bar"), is("bar")); }
void function() { Versioned<String> vv = new Versioned<>("foo", 1); Versioned<String> nullVV = null; assertThat(Versioned.valueOrElse(vv, "bar"), is("foo")); assertThat(Versioned.valueOrElse(nullVV, "bar"), is("bar")); }
/** * Tests the valueOrElse method. */
Tests the valueOrElse method
testOrElse
{ "repo_name": "kuujo/onos", "path": "core/api/src/test/java/org/onosproject/store/service/VersionedTest.java", "license": "apache-2.0", "size": 2398 }
[ "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import org.hamcrest.*;
[ "org.hamcrest" ]
org.hamcrest;
281,279
@Test public void paginationForPage46() { List<Pagination.Page> pagination = Pagination.create(FIRST_PAGE, LAST_PAGE, RANGE_OF_2, 46); assertThat(pagination, Matchers.contains( page(1, ACTIVE), ELLIPSIS, page(44, ACTIVE), page(45, A...
void function() { List<Pagination.Page> pagination = Pagination.create(FIRST_PAGE, LAST_PAGE, RANGE_OF_2, 46); assertThat(pagination, Matchers.contains( page(1, ACTIVE), ELLIPSIS, page(44, ACTIVE), page(45, ACTIVE), page(46, INACTIVE), page(47, ACTIVE), page(48, ACTIVE), ELLIPSIS, page(50, ACTIVE))); }
/** * Pagination should be: * 1 ... 44 45 [46] 47 48 ... 50 */
Pagination should be: 1 ... 44 45 [46] 47 48 ... 50
paginationForPage46
{ "repo_name": "ishubin/blogix", "path": "src/test/java/net/mindengine/blogix/tests/PaginationTest.java", "license": "apache-2.0", "size": 7380 }
[ "java.util.List", "net.mindengine.blogix.model.Pagination", "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import java.util.List; import net.mindengine.blogix.model.Pagination; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import java.util.*; import net.mindengine.blogix.model.*; import org.hamcrest.*;
[ "java.util", "net.mindengine.blogix", "org.hamcrest" ]
java.util; net.mindengine.blogix; org.hamcrest;
2,605,031
public void setDossierFolder2RolePersistence( DossierFolder2RolePersistence dossierFolder2RolePersistence) { this.dossierFolder2RolePersistence = dossierFolder2RolePersistence; }
void function( DossierFolder2RolePersistence dossierFolder2RolePersistence) { this.dossierFolder2RolePersistence = dossierFolder2RolePersistence; }
/** * Sets the dossier folder2 role persistence. * * @param dossierFolder2RolePersistence the dossier folder2 role persistence */
Sets the dossier folder2 role persistence
setDossierFolder2RolePersistence
{ "repo_name": "openegovplatform/OEPv2", "path": "oep-dossier-portlet/docroot/WEB-INF/src/org/oep/dossiermgt/service/base/PaymentConfigServiceBaseImpl.java", "license": "apache-2.0", "size": 49358 }
[ "org.oep.dossiermgt.service.persistence.DossierFolder2RolePersistence" ]
import org.oep.dossiermgt.service.persistence.DossierFolder2RolePersistence;
import org.oep.dossiermgt.service.persistence.*;
[ "org.oep.dossiermgt" ]
org.oep.dossiermgt;
2,043,526
public synchronized void addChangeListener(ChangeListener l) { Vector v = changeListeners == null ? new Vector(2) : (Vector) changeListeners.clone(); if (!v.contains(l)) { v.addElement(l); changeListeners = v; } }
synchronized void function(ChangeListener l) { Vector v = changeListeners == null ? new Vector(2) : (Vector) changeListeners.clone(); if (!v.contains(l)) { v.addElement(l); changeListeners = v; } }
/** * Add changelistener * @param l changelistener */
Add changelistener
addChangeListener
{ "repo_name": "MaxwellM/ncBrowse-revamp-CAPSTONE", "path": "src/ncBrowse/sgt/beans/DataGroup.java", "license": "gpl-3.0", "size": 12405 }
[ "java.util.Vector", "javax.swing.event.ChangeListener" ]
import java.util.Vector; import javax.swing.event.ChangeListener;
import java.util.*; import javax.swing.event.*;
[ "java.util", "javax.swing" ]
java.util; javax.swing;
2,683,997
final ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); final ClipData clipData = clipboard.getPrimaryClip(); if(clipData != null && clipData.getItemCount() > 0) { final CharSequence clipboardText = clipData.getItemAt(0).getText(); ...
final ClipboardManager clipboard = (ClipboardManager) context.getSystemService(Context.CLIPBOARD_SERVICE); final ClipData clipData = clipboard.getPrimaryClip(); if(clipData != null && clipData.getItemCount() > 0) { final CharSequence clipboardText = clipData.getItemAt(0).getText(); if(clipboardText != null) { return cl...
/** * Get the current text from the clipboard. * * @return Clipboard text or {@code null} if clipboard is empty or unavailable. */
Get the current text from the clipboard
getClipboardText
{ "repo_name": "percolate/caffeine", "path": "caffeine/src/main/java/com/percolate/caffeine/ClipboardUtils.java", "license": "bsd-3-clause", "size": 1384 }
[ "android.content.ClipData", "android.content.ClipboardManager", "android.content.Context" ]
import android.content.ClipData; import android.content.ClipboardManager; import android.content.Context;
import android.content.*;
[ "android.content" ]
android.content;
1,927,791
private String findControlField(Record record, String tag) { String tagstart = tag.substring(0,3); List<VariableField> fields = record.getVariableFields(tagstart); for (VariableField field : fields) { if (field instanceof ControlField) { ...
String function(Record record, String tag) { String tagstart = tag.substring(0,3); List<VariableField> fields = record.getVariableFields(tagstart); for (VariableField field : fields) { if (field instanceof ControlField) { ControlField cf = (ControlField) field; if (cf.getTag().matches(tagstart)) { return((String)cf.get...
/** * Support method to find a specific control field within a record and return * its contents as a string. * @param record - record to search * @param tag - tag number to search for */
Support method to find a specific control field within a record and return its contents as a string
findControlField
{ "repo_name": "jasonzou/marc4j", "path": "src/org/marc4j/MarcCombiningReader.java", "license": "lgpl-2.1", "size": 11393 }
[ "java.util.List", "org.marc4j.marc.ControlField", "org.marc4j.marc.DataField", "org.marc4j.marc.Record", "org.marc4j.marc.Subfield", "org.marc4j.marc.VariableField" ]
import java.util.List; import org.marc4j.marc.ControlField; import org.marc4j.marc.DataField; import org.marc4j.marc.Record; import org.marc4j.marc.Subfield; import org.marc4j.marc.VariableField;
import java.util.*; import org.marc4j.marc.*;
[ "java.util", "org.marc4j.marc" ]
java.util; org.marc4j.marc;
1,249,861
@Override public Map<String, Object> toMap(int maxCols) { // start with the fingerpring map and build on top of it Map<String, Object> map = getFingerprint(); // map from families to column list replaces fingerprint's list of families Map<String, List<String>> familyColumns = new HashMap<Strin...
Map<String, Object> function(int maxCols) { Map<String, Object> map = getFingerprint(); Map<String, List<String>> familyColumns = new HashMap<String, List<String>>(); map.put(STR, familyColumns); map.put(STR, Bytes.toStringBinary(this.startRow)); map.put(STR, Bytes.toStringBinary(this.stopRow)); map.put(STR, this.maxVe...
/** * Compile the details beyond the scope of getFingerprint (row, columns, * timestamps, etc.) into a Map along with the fingerprinted information. * Useful for debugging, logging, and administration tools. * @param maxCols a limit on the number of columns output prior to truncation * @return Map */
Compile the details beyond the scope of getFingerprint (row, columns, timestamps, etc.) into a Map along with the fingerprinted information. Useful for debugging, logging, and administration tools
toMap
{ "repo_name": "juwi/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Scan.java", "license": "apache-2.0", "size": 31842 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "java.util.NavigableSet", "org.apache.hadoop.hbase.util.Bytes" ]
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.NavigableSet; import org.apache.hadoop.hbase.util.Bytes;
import java.util.*; import org.apache.hadoop.hbase.util.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,327,732
@Override public void exitRbraceRule(@NotNull PJParser.RbraceRuleContext ctx) { }
@Override public void exitRbraceRule(@NotNull PJParser.RbraceRuleContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
enterRbraceRule
{ "repo_name": "Diolor/PJ", "path": "src/main/java/com/lorentzos/pj/PJBaseListener.java", "license": "mit", "size": 73292 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
782,485
public void addListener(final XInputDeviceListener listener) { listeners.add(listener); }
void function(final XInputDeviceListener listener) { listeners.add(listener); }
/** * Adds an event listener that will react to changes in the input. * * @param listener the listener */
Adds an event listener that will react to changes in the input
addListener
{ "repo_name": "StrikerX3/JXInput", "path": "src/main/java/com/github/strikerx3/jxinput/XInputDevice.java", "license": "mit", "size": 16130 }
[ "com.github.strikerx3.jxinput.listener.XInputDeviceListener" ]
import com.github.strikerx3.jxinput.listener.XInputDeviceListener;
import com.github.strikerx3.jxinput.listener.*;
[ "com.github.strikerx3" ]
com.github.strikerx3;
1,380,767