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
EAttribute getTransmissionReliabilityMargin_ValueUnit();
EAttribute getTransmissionReliabilityMargin_ValueUnit();
/** * Returns the meta object for the attribute '{@link CIM.IEC61970.Informative.MarketOperations.TransmissionReliabilityMargin#getValueUnit <em>Value Unit</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Value Unit</em>'. * @see CIM.IEC61970.Informati...
Returns the meta object for the attribute '<code>CIM.IEC61970.Informative.MarketOperations.TransmissionReliabilityMargin#getValueUnit Value Unit</code>'.
getTransmissionReliabilityMargin_ValueUnit
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Informative/MarketOperations/MarketOperationsPackage.java", "license": "mit", "size": 688294 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,432,016
public long usedSpaceSize() throws IgniteException;
long function() throws IgniteException;
/** * Gets used space in bytes. * * @return Used space in bytes. * @throws IgniteException In case of error. */
Gets used space in bytes
usedSpaceSize
{ "repo_name": "dlnufox/ignite", "path": "modules/core/src/main/java/org/apache/ignite/igfs/secondary/IgfsSecondaryFileSystem.java", "license": "apache-2.0", "size": 8438 }
[ "org.apache.ignite.IgniteException" ]
import org.apache.ignite.IgniteException;
import org.apache.ignite.*;
[ "org.apache.ignite" ]
org.apache.ignite;
308,569
public List<Template> getTemplatesForType(String string);
List<Template> function(String string);
/** * Returns a list of templates * * @param string * @return list, never <code>null</code> */
Returns a list of templates
getTemplatesForType
{ "repo_name": "de-jcup/egradle", "path": "egradle-plugin-main/src/main/java/de/jcup/egradle/codeassist/TypeTemplatesProvider.java", "license": "apache-2.0", "size": 890 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,157,051
private void undoLogTransformPathLength(ArrayList<PathWay> paths) { // weighted probabilities option sets the weight to 2 ^ (-weight) if (edgeWeightType == EdgeWeightType.PROBABILITIES) { for (PathWay p : paths) { p.weight = Math.pow(10, -1 * p.weight); } } // don't have to do anything for unweigh...
void function(ArrayList<PathWay> paths) { if (edgeWeightType == EdgeWeightType.PROBABILITIES) { for (PathWay p : paths) { p.weight = Math.pow(10, -1 * p.weight); } } }
/** * "un log-transforms" the path scores in the weighted options to undo the * log transformations and leave the path scores in terms of the original * edge weights * * @param paths * the list of paths from the ksp algorithm */
"un log-transforms" the path scores in the weighted options to undo the log transformations and leave the path scores in terms of the original edge weights
undoLogTransformPathLength
{ "repo_name": "Murali-group/PathLinker-Cytoscape", "path": "src/main/java/com/dpgil/pathlinker/path_linker/internal/model/PathLinkerModel.java", "license": "gpl-3.0", "size": 21684 }
[ "com.dpgil.pathlinker.path_linker.internal.util.Algorithms", "com.dpgil.pathlinker.path_linker.internal.util.EdgeWeightType", "java.util.ArrayList" ]
import com.dpgil.pathlinker.path_linker.internal.util.Algorithms; import com.dpgil.pathlinker.path_linker.internal.util.EdgeWeightType; import java.util.ArrayList;
import com.dpgil.pathlinker.path_linker.internal.util.*; import java.util.*;
[ "com.dpgil.pathlinker", "java.util" ]
com.dpgil.pathlinker; java.util;
2,023,843
public String getDocumentLabel() throws WorkflowException { return SpringContext.getBean(DataDictionaryService.class).getDocumentLabelByTypeName(getDocumentTypeName()); }
String function() throws WorkflowException { return SpringContext.getBean(DataDictionaryService.class).getDocumentLabelByTypeName(getDocumentTypeName()); }
/** * Returns the document label according to the label specified in the data dictionary. * * @return * @throws WorkflowException */
Returns the document label according to the label specified in the data dictionary
getDocumentLabel
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-purap/src/main/java/org/kuali/kfs/module/purap/businessobject/AbstractRelatedView.java", "license": "agpl-3.0", "size": 8018 }
[ "org.kuali.kfs.kns.service.DataDictionaryService", "org.kuali.kfs.sys.context.SpringContext", "org.kuali.rice.kew.api.exception.WorkflowException" ]
import org.kuali.kfs.kns.service.DataDictionaryService; import org.kuali.kfs.sys.context.SpringContext; import org.kuali.rice.kew.api.exception.WorkflowException;
import org.kuali.kfs.kns.service.*; import org.kuali.kfs.sys.context.*; import org.kuali.rice.kew.api.exception.*;
[ "org.kuali.kfs", "org.kuali.rice" ]
org.kuali.kfs; org.kuali.rice;
2,083,820
public void setMenuResource(int menuRes) { removeAllViews(); this.menu = new MenuBuilder(getContext()); MenuInflater inflater = new MenuInflater(getContext()); inflater.inflate(menuRes, menu); loadChildViews(); }
void function(int menuRes) { removeAllViews(); this.menu = new MenuBuilder(getContext()); MenuInflater inflater = new MenuInflater(getContext()); inflater.inflate(menuRes, menu); loadChildViews(); }
/** * Set the menu resource which contains the actions this view will display. * * @param menuRes The menu resource id. */
Set the menu resource which contains the actions this view will display
setMenuResource
{ "repo_name": "msafin/wmc", "path": "src/org/openintents/filemanager/view/LegacyActionContainer.java", "license": "gpl-2.0", "size": 2911 }
[ "android.view.MenuInflater" ]
import android.view.MenuInflater;
import android.view.*;
[ "android.view" ]
android.view;
2,754,546
public Color getTitleColor() { return titleColor; }
Color function() { return titleColor; }
/** * Returns the color for title. */
Returns the color for title
getTitleColor
{ "repo_name": "dublinio/smile", "path": "SmilePlot/src/main/java/smile/plot/PlotCanvas.java", "license": "apache-2.0", "size": 71375 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,116,894
ArrayList<Callable<Long>> ret = new ArrayList<>(); // Try to create twice as many tasks as threads for improved load balance // (due to constant-sized intermediates, GC works well, so the overhead per task is small) int k = OptimizerUtils.getConstrainedNumThreads(params.numThreads); int taskSize = (int)(Ma...
ArrayList<Callable<Long>> ret = new ArrayList<>(); int k = OptimizerUtils.getConstrainedNumThreads(params.numThreads); int taskSize = (int)(Math.ceil((double)params.N / k / 2)); MatrixBlock in1 = params.input1; boolean isEmptyDenseInput = !in1.isInSparseFormat() && in1.denseBlock == null; boolean isTransPref = in1.spar...
/** * Factory method that returns list of callable tasks for performing conv2d * * @param params convolution parameters * @return list of callable tasks for performing conv2d */
Factory method that returns list of callable tasks for performing conv2d
getConv2dWorkers
{ "repo_name": "apache/incubator-systemml", "path": "src/main/java/org/apache/sysds/runtime/matrix/data/LibMatrixDNNConv2d.java", "license": "apache-2.0", "size": 24866 }
[ "java.util.ArrayList", "java.util.concurrent.Callable", "org.apache.sysds.hops.OptimizerUtils", "org.apache.sysds.runtime.DMLRuntimeException", "org.apache.sysds.utils.Statistics" ]
import java.util.ArrayList; import java.util.concurrent.Callable; import org.apache.sysds.hops.OptimizerUtils; import org.apache.sysds.runtime.DMLRuntimeException; import org.apache.sysds.utils.Statistics;
import java.util.*; import java.util.concurrent.*; import org.apache.sysds.hops.*; import org.apache.sysds.runtime.*; import org.apache.sysds.utils.*;
[ "java.util", "org.apache.sysds" ]
java.util; org.apache.sysds;
2,872,409
List<Expression> getRight() { return null; }
List<Expression> getRight() { return null; }
/** * Get the list of the right hand side of an expression. * * @return the list */
Get the list of the right hand side of an expression
getRight
{ "repo_name": "AndreasAbdi/jackrabbit-oak", "path": "oak-core/src/main/java/org/apache/jackrabbit/oak/query/xpath/Expression.java", "license": "apache-2.0", "size": 21211 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,709,568
public static Predicate<File> isDirectory() { return FilePredicate.IS_DIRECTORY; }
static Predicate<File> function() { return FilePredicate.IS_DIRECTORY; }
/** * Returns a predicate that returns the result of {@link File#isDirectory} on input files. * * @since 15.0 */
Returns a predicate that returns the result of <code>File#isDirectory</code> on input files
isDirectory
{ "repo_name": "mariusj/org.openntf.domino", "path": "domino/externals/guava/src/main/java/com/google/common/io/Files.java", "license": "apache-2.0", "size": 29456 }
[ "com.google.common.base.Predicate", "java.io.File" ]
import com.google.common.base.Predicate; import java.io.File;
import com.google.common.base.*; import java.io.*;
[ "com.google.common", "java.io" ]
com.google.common; java.io;
2,666,780
protected void addTypePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_SubPremiseNumberPrefixType_type_feature"), getString("_UI_PropertyDesc...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), XALPackage.eINSTANCE.getSubPremiseNumberPrefixType_Type(), true, false, false, ItemPropertyDescri...
/** * This adds a property descriptor for the Type feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Type feature.
addTypePropertyDescriptor
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/org/oasis/xAL/provider/SubPremiseNumberPrefixTypeItemProvider.java", "license": "apache-2.0", "size": 9254 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.oasis.xAL.XALPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.oasis.xAL.XALPackage;
import org.eclipse.emf.edit.provider.*; import org.oasis.*;
[ "org.eclipse.emf", "org.oasis" ]
org.eclipse.emf; org.oasis;
293,550
protected void click(Action action) { this.getButtonFor(action).doClick(); }
void function(Action action) { this.getButtonFor(action).doClick(); }
/** * Programmatically press a button for a particular action on this dialog. */
Programmatically press a button for a particular action on this dialog
click
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "utils/eclipselink.utils.workbench/framework/source/org/eclipse/persistence/tools/workbench/framework/ui/dialog/AbstractDialog.java", "license": "epl-1.0", "size": 124348 }
[ "javax.swing.Action" ]
import javax.swing.Action;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,938,987
public int size() { Iterator<E> iter = iterator(); int size = 0; while (iter.hasNext()) { size++; iter.next(); } return size; }
int function() { Iterator<E> iter = iterator(); int size = 0; while (iter.hasNext()) { size++; iter.next(); } return size; }
/** * Can be slow. Usage not recommended. */
Can be slow. Usage not recommended
size
{ "repo_name": "bulters/stanford-stemming-server", "path": "src/edu/stanford/nlp/objectbank/ObjectBank.java", "license": "gpl-2.0", "size": 13641 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,182,522
public static Map<String, List<String>> describeSchemaVersions(boolean withPort) { final String myVersion = Schema.instance.getVersion().toString(); final Map<InetAddressAndPort, UUID> versions = new ConcurrentHashMap<>(); final Set<InetAddressAndPort> liveHosts = Gossiper.instance.getLi...
static Map<String, List<String>> function(boolean withPort) { final String myVersion = Schema.instance.getVersion().toString(); final Map<InetAddressAndPort, UUID> versions = new ConcurrentHashMap<>(); final Set<InetAddressAndPort> liveHosts = Gossiper.instance.getLiveMembers(); final CountDownLatch latch = new CountDo...
/** * initiate a request/response session with each live node to check whether or not everybody is using the same * migration id. This is useful for determining if a schema change has propagated through the cluster. Disagreement * is assumed if any node fails to respond. */
initiate a request/response session with each live node to check whether or not everybody is using the same migration id. This is useful for determining if a schema change has propagated through the cluster. Disagreement is assumed if any node fails to respond
describeSchemaVersions
{ "repo_name": "blerer/cassandra", "path": "src/java/org/apache/cassandra/service/StorageProxy.java", "license": "apache-2.0", "size": 147732 }
[ "com.google.common.collect.Iterables", "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "java.util.Set", "java.util.concurrent.ConcurrentHashMap", "java.util.concurrent.CountDownLatch", "org.apache.cassandra.config.DatabaseDescriptor", "org.apache.cassandra.gms.Gossip...
import com.google.common.collect.Iterables; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CountDownLatch; import org.apache.cassandra.config.DatabaseDescriptor; import or...
import com.google.common.collect.*; import java.util.*; import java.util.concurrent.*; import org.apache.cassandra.config.*; import org.apache.cassandra.gms.*; import org.apache.cassandra.locator.*; import org.apache.cassandra.net.*; import org.apache.cassandra.schema.*; import org.apache.commons.lang3.*;
[ "com.google.common", "java.util", "org.apache.cassandra", "org.apache.commons" ]
com.google.common; java.util; org.apache.cassandra; org.apache.commons;
889,792
public void testFooter( ) { IGroupContent content = new ReportContent( ).createTableGroupContent( ); IBandContent footer = new ReportContent( ).createTableBandContent( ); footer.setBandType( IBandContent.BAND_GROUP_FOOTER ); content.getChildren( ).add( footer ); assertEquals( footer, content.getFooter( ) ...
void function( ) { IGroupContent content = new ReportContent( ).createTableGroupContent( ); IBandContent footer = new ReportContent( ).createTableBandContent( ); footer.setBandType( IBandContent.BAND_GROUP_FOOTER ); content.getChildren( ).add( footer ); assertEquals( footer, content.getFooter( ) ); footer.setBandType( ...
/** * Test getFooter() method. */
Test getFooter() method
testFooter
{ "repo_name": "Charling-Huang/birt", "path": "testsuites/org.eclipse.birt.report.tests.engine/src/org/eclipse/birt/report/tests/engine/api/IGroupContentTest.java", "license": "epl-1.0", "size": 1913 }
[ "org.eclipse.birt.report.engine.content.IBandContent", "org.eclipse.birt.report.engine.content.IGroupContent", "org.eclipse.birt.report.engine.content.impl.ReportContent" ]
import org.eclipse.birt.report.engine.content.IBandContent; import org.eclipse.birt.report.engine.content.IGroupContent; import org.eclipse.birt.report.engine.content.impl.ReportContent;
import org.eclipse.birt.report.engine.content.*; import org.eclipse.birt.report.engine.content.impl.*;
[ "org.eclipse.birt" ]
org.eclipse.birt;
1,835,802
@Nonnull public static Graph<UUID> parseHeadGraph( @Nonnull SegmentReader reader, @Nonnull RecordId root) { final Graph<UUID> graph = new Graph<UUID>();
static Graph<UUID> function( @Nonnull SegmentReader reader, @Nonnull RecordId root) { final Graph<UUID> graph = new Graph<UUID>();
/** * Parser the head graph of segment store. The head graph is the sub graph of the segment * graph containing the {@code root}. * @param reader segment reader for the store to parse * @param root * @return the head graph of {@code root}. */
Parser the head graph of segment store. The head graph is the sub graph of the segment graph containing the root
parseHeadGraph
{ "repo_name": "tripodsan/jackrabbit-oak", "path": "oak-segment-tar/src/main/java/org/apache/jackrabbit/oak/segment/SegmentGraph.java", "license": "apache-2.0", "size": 20873 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
879,468
public void logInfo(String line) { log(Level.INFO, line); }
void function(String line) { log(Level.INFO, line); }
/** * Add a line to the logger. * @param line */
Add a line to the logger
logInfo
{ "repo_name": "Choco31415/JavaMediawikiBot", "path": "src/main/java/WikiBot/Core/NetworkingBase.java", "license": "gpl-3.0", "size": 10234 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
2,009,986
public void appendText(PrintStreamListenerOutput pslOutput) { try { // --- Writing to a new log file? ----------------- long timeStamp = System.currentTimeMillis(); if (timeStamp>=this.nextMidnightTimeStamp) { // --- Next day, new log file! ---------------- String newLogFile = this.getLoggingF...
void function(PrintStreamListenerOutput pslOutput) { try { long timeStamp = System.currentTimeMillis(); if (timeStamp>=this.nextMidnightTimeStamp) { String newLogFile = this.getLoggingFileName(timeStamp); File logDirectory = new File(newLogFile).getParentFile(); LogFileWriter.deleteOldLogFiles(timeStamp, logDirectory);...
/** * This method can be used in order to append the console output from a remote container * @param pslOutput the PrintStreamListenerOutput */
This method can be used in order to append the console output from a remote container
appendText
{ "repo_name": "EnFlexIT/AgentWorkbench", "path": "eclipseProjects/org.agentgui/bundles/org.agentgui.core/src/agentgui/logging/logfile/LogFileWriter.java", "license": "lgpl-2.1", "size": 8989 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
135,790
private void updateProperties() { System.out.println("Update properties"); Date date = new Date(); DateFormat df = DateFormat.getDateTimeInstance(); m_property1 = m_property1 + " - " + df.format(date); m_property2 = m_property2 + " - " + df.format(date); }
void function() { System.out.println(STR); Date date = new Date(); DateFormat df = DateFormat.getDateTimeInstance(); m_property1 = m_property1 + STR + df.format(date); m_property2 = m_property2 + STR + df.format(date); }
/** * Update property value. */
Update property value
updateProperties
{ "repo_name": "boneman1231/org.apache.felix", "path": "trunk/ipojo/examples/property-handler/PropertyHandlerTest/src/main/java/org/apache/felix/ipojo/handler/properties/example/AnnotationPropertiesTester.java", "license": "apache-2.0", "size": 2683 }
[ "java.text.DateFormat", "java.util.Date" ]
import java.text.DateFormat; import java.util.Date;
import java.text.*; import java.util.*;
[ "java.text", "java.util" ]
java.text; java.util;
682,924
private void checkExtensionAttributes(final CompilationTimeStamp timestamp) { if (attributeGainedDefinitions == null || attributeGainedDefinitions.isEmpty()) { return; } for (Definition originalDefinition : definitions) { Definition inheritedDefinition = attributeGainedDefinitions.get(originalDefinition...
void function(final CompilationTimeStamp timestamp) { if (attributeGainedDefinitions == null attributeGainedDefinitions.isEmpty()) { return; } for (Definition originalDefinition : definitions) { Definition inheritedDefinition = attributeGainedDefinitions.get(originalDefinition.getIdentifier().getName()); if (inheritedD...
/** * Checks that the definitions inherited via extends attributes * are identical to ones contained in the component, or inherited via extends clause. * * @param timestamp the timestamp of the actual semantic check cycle * */
Checks that the definitions inherited via extends attributes are identical to ones contained in the component, or inherited via extends clause
checkExtensionAttributes
{ "repo_name": "alovassy/titan.EclipsePlug-ins", "path": "org.eclipse.titan.designer/src/org/eclipse/titan/designer/AST/TTCN3/types/ComponentTypeBody.java", "license": "epl-1.0", "size": 32047 }
[ "org.eclipse.titan.designer.AST", "org.eclipse.titan.designer.parsers.CompilationTimeStamp" ]
import org.eclipse.titan.designer.AST; import org.eclipse.titan.designer.parsers.CompilationTimeStamp;
import org.eclipse.titan.designer.*; import org.eclipse.titan.designer.parsers.*;
[ "org.eclipse.titan" ]
org.eclipse.titan;
1,079,356
private void convertAfterReadObjects() { if (sessionCache == null) { sessionCache = new ArrayList<>(); } final IPageStore pageStore = getPageStore(); if (pageStore != null) { for (Object o : afterReadObject) { IManageablePage page = pageStore.convertToPage(o); addPage(pag...
void function() { if (sessionCache == null) { sessionCache = new ArrayList<>(); } final IPageStore pageStore = getPageStore(); if (pageStore != null) { for (Object o : afterReadObject) { IManageablePage page = pageStore.convertToPage(o); addPage(page); } } afterReadObject = null; }
/** * If the pages are stored in temporary state (after deserialization) this method convert * them to list of "real" pages */
If the pages are stored in temporary state (after deserialization) this method convert them to list of "real" pages
convertAfterReadObjects
{ "repo_name": "klopfdreh/wicket", "path": "wicket-core/src/main/java/org/apache/wicket/page/PageStoreManager.java", "license": "apache-2.0", "size": 10630 }
[ "java.util.ArrayList", "org.apache.wicket.pageStore.IPageStore" ]
import java.util.ArrayList; import org.apache.wicket.pageStore.IPageStore;
import java.util.*; import org.apache.wicket.*;
[ "java.util", "org.apache.wicket" ]
java.util; org.apache.wicket;
2,152,263
@SuppressWarnings("unchecked") @Override public <T> T deserialize(byte[] data, Class<T> clazz) { try { JAXBContext context = JAXBContext.newInstance(clazz); Unmarshaller m = context.createUnmarshaller(); Object o = m.unmarshal(new ByteArrayInputStream(data)); ...
@SuppressWarnings(STR) <T> T function(byte[] data, Class<T> clazz) { try { JAXBContext context = JAXBContext.newInstance(clazz); Unmarshaller m = context.createUnmarshaller(); Object o = m.unmarshal(new ByteArrayInputStream(data)); return (T) o; } catch (JAXBException e) { e.printStackTrace(); } return null; }
/** * Deserializes binary data representing a xml-fragment to an object of * given class. * @param data the binary data, representing a xml-fragment * @param clazz the class of the resulting object * @return the deserialized object */
Deserializes binary data representing a xml-fragment to an object of given class
deserialize
{ "repo_name": "FelixHoer/Jerberos", "path": "src/kerberos/serialize/ObjectSerializer.java", "license": "mit", "size": 2162 }
[ "java.io.ByteArrayInputStream", "javax.xml.bind.JAXBContext", "javax.xml.bind.JAXBException", "javax.xml.bind.Unmarshaller" ]
import java.io.ByteArrayInputStream; import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException; import javax.xml.bind.Unmarshaller;
import java.io.*; import javax.xml.bind.*;
[ "java.io", "javax.xml" ]
java.io; javax.xml;
728,979
public List<OperableTrigger> acquireNextTriggers(long noLaterThan, int maxCount, long timeWindow) { synchronized (lock) { List<OperableTrigger> result = new ArrayList<OperableTrigger>(); Set<JobKey> acquiredJobKeysForNoConcurrentExec = new HashSet<JobKey>(); Set<TriggerWr...
List<OperableTrigger> function(long noLaterThan, int maxCount, long timeWindow) { synchronized (lock) { List<OperableTrigger> result = new ArrayList<OperableTrigger>(); Set<JobKey> acquiredJobKeysForNoConcurrentExec = new HashSet<JobKey>(); Set<TriggerWrapper> excludedTriggers = new HashSet<TriggerWrapper>(); long firs...
/** * <p> * Get a handle to the next trigger to be fired, and mark it as 'reserved' * by the calling scheduler. * </p> * * @see #releaseAcquiredTrigger(OperableTrigger) */
Get a handle to the next trigger to be fired, and mark it as 'reserved' by the calling scheduler.
acquireNextTriggers
{ "repo_name": "suthat/signal", "path": "vendor/quartz-2.2.0/src/org/quartz/simpl/RAMJobStore.java", "license": "apache-2.0", "size": 60289 }
[ "java.util.ArrayList", "java.util.HashSet", "java.util.List", "java.util.Set", "org.quartz.JobDetail", "org.quartz.JobKey", "org.quartz.spi.OperableTrigger" ]
import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.quartz.JobDetail; import org.quartz.JobKey; import org.quartz.spi.OperableTrigger;
import java.util.*; import org.quartz.*; import org.quartz.spi.*;
[ "java.util", "org.quartz", "org.quartz.spi" ]
java.util; org.quartz; org.quartz.spi;
1,300,895
private static RestTemplate create(ClientHttpRequestFactory requestFactory) { Assert.notNull(requestFactory, "ClientHttpRequestFactory must not be null!"); return VaultClients.createRestTemplate(TEST_VAULT_ENDPOINT, requestFactory); }
static RestTemplate function(ClientHttpRequestFactory requestFactory) { Assert.notNull(requestFactory, STR); return VaultClients.createRestTemplate(TEST_VAULT_ENDPOINT, requestFactory); }
/** * Create a new {@link RestTemplate} using the {@link ClientHttpRequestFactory}. The * {@link RestTemplate} will throw * {@link org.springframework.web.client.HttpStatusCodeException exceptions} in error * cases and behave in that aspect like the regular * {@link org.springframework.web.client.RestTemplate...
Create a new <code>RestTemplate</code> using the <code>ClientHttpRequestFactory</code>. The <code>RestTemplate</code> will throw <code>org.springframework.web.client.HttpStatusCodeException exceptions</code> in error cases and behave in that aspect like the regular <code>org.springframework.web.client.RestTemplate</cod...
create
{ "repo_name": "mp911de/spring-vault", "path": "spring-vault-core/src/test/java/org/springframework/vault/util/TestRestTemplateFactory.java", "license": "apache-2.0", "size": 4075 }
[ "org.springframework.http.client.ClientHttpRequestFactory", "org.springframework.util.Assert", "org.springframework.vault.client.VaultClients", "org.springframework.web.client.RestTemplate" ]
import org.springframework.http.client.ClientHttpRequestFactory; import org.springframework.util.Assert; import org.springframework.vault.client.VaultClients; import org.springframework.web.client.RestTemplate;
import org.springframework.http.client.*; import org.springframework.util.*; import org.springframework.vault.client.*; import org.springframework.web.client.*;
[ "org.springframework.http", "org.springframework.util", "org.springframework.vault", "org.springframework.web" ]
org.springframework.http; org.springframework.util; org.springframework.vault; org.springframework.web;
394,071
boolean existInMemory(Data key);
boolean existInMemory(Data key);
/** * Checks if the key exist in memory without trying to load data from map-loader */
Checks if the key exist in memory without trying to load data from map-loader
existInMemory
{ "repo_name": "tufangorel/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/map/impl/recordstore/RecordStore.java", "license": "apache-2.0", "size": 18784 }
[ "com.hazelcast.nio.serialization.Data" ]
import com.hazelcast.nio.serialization.Data;
import com.hazelcast.nio.serialization.*;
[ "com.hazelcast.nio" ]
com.hazelcast.nio;
1,231,449
public Announcement getAnnouncement (String key);
Announcement function (String key);
/** * Get the announcement for the given key. Does not contain * the markdown. */
Get the announcement for the given key. Does not contain the markdown
getAnnouncement
{ "repo_name": "kcoolsae/Degage", "path": "db/src/main/java/be/ugent/degage/db/dao/AnnouncementDAO.java", "license": "agpl-3.0", "size": 2049 }
[ "be.ugent.degage.db.models.Announcement" ]
import be.ugent.degage.db.models.Announcement;
import be.ugent.degage.db.models.*;
[ "be.ugent.degage" ]
be.ugent.degage;
2,895,811
public String encodeBuffer(byte aBuffer[]) { ByteArrayOutputStream outStream = new ByteArrayOutputStream(); ByteArrayInputStream inStream = new ByteArrayInputStream(aBuffer); try { encodeBuffer(inStream, outStream); } catch (Exception IOException) { // Th...
String function(byte aBuffer[]) { ByteArrayOutputStream outStream = new ByteArrayOutputStream(); ByteArrayInputStream inStream = new ByteArrayInputStream(aBuffer); try { encodeBuffer(inStream, outStream); } catch (Exception IOException) { throw new Error(STR); } return (outStream.toString()); }
/** * A 'streamless' version of encode that simply takes a buffer of * bytes and returns a string containing the encoded buffer. */
A 'streamless' version of encode that simply takes a buffer of bytes and returns a string containing the encoded buffer
encodeBuffer
{ "repo_name": "GITNE/icedtea-web", "path": "netx/net/sourceforge/jnlp/util/replacements/CharacterEncoder.java", "license": "gpl-2.0", "size": 12248 }
[ "java.io.ByteArrayInputStream", "java.io.ByteArrayOutputStream", "java.io.IOException" ]
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,492,572
public String requestPost(final String id) throws SDKException { CloseableHttpResponse response = null; HttpPost httpPost = null; checkToken(); try { log.debug("pathUrl: " + pathUrl); log.debug("id: " + pathUrl + "/" + id); // call the api here log.debug("Executing post on: "...
String function(final String id) throws SDKException { CloseableHttpResponse response = null; HttpPost httpPost = null; checkToken(); try { log.debug(STR + pathUrl); log.debug(STR + pathUrl + "/" + id); log.debug(STR + this.pathUrl + "/" + id); httpPost = new HttpPost(this.pathUrl + "/" + id); preparePostHeader(httpPos...
/** * Does the POST Request * * @param id specifies the entity on which to perform the post request * @return a String containing the response content * @throws SDKException if the request fails */
Does the POST Request
requestPost
{ "repo_name": "openbaton/openbaton-client", "path": "sdk/src/main/java/org/openbaton/sdk/api/util/RestRequest.java", "license": "apache-2.0", "size": 42378 }
[ "java.net.HttpURLConnection", "org.apache.http.client.methods.CloseableHttpResponse", "org.apache.http.client.methods.HttpPost", "org.openbaton.sdk.api.exception.SDKException" ]
import java.net.HttpURLConnection; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPost; import org.openbaton.sdk.api.exception.SDKException;
import java.net.*; import org.apache.http.client.methods.*; import org.openbaton.sdk.api.exception.*;
[ "java.net", "org.apache.http", "org.openbaton.sdk" ]
java.net; org.apache.http; org.openbaton.sdk;
1,704,322
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(GmlPackage.eINSTANCE.getOperationParameterGroupType_GroupID()); childrenFeatures.add(GmlPackage.eINSTANCE.getOperationPara...
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(GmlPackage.eINSTANCE.getOperationParameterGroupType_GroupID()); childrenFeatures.add(GmlPackage.eINSTANCE.getOperationParameterGroupType_Remarks()); childrenFeatures...
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/OperationParameterGroupTypeItemProvider.java", "license": "apache-2.0", "size": 8573 }
[ "java.util.Collection", "net.opengis.gml.GmlPackage", "org.eclipse.emf.ecore.EStructuralFeature" ]
import java.util.Collection; import net.opengis.gml.GmlPackage; import org.eclipse.emf.ecore.EStructuralFeature;
import java.util.*; import net.opengis.gml.*; import org.eclipse.emf.ecore.*;
[ "java.util", "net.opengis.gml", "org.eclipse.emf" ]
java.util; net.opengis.gml; org.eclipse.emf;
1,663,962
int size = selectOne ? entities.size() + 1 : entities.size(); SelectItem[] selectItems = new SelectItem[size]; int i = 0; // Insert null value if select one. if (selectOne) { selectItems[0] = new SelectItem("", "---"); i++; } for (Object x : ent...
int size = selectOne ? entities.size() + 1 : entities.size(); SelectItem[] selectItems = new SelectItem[size]; int i = 0; if (selectOne) { selectItems[0] = new SelectItem(STR---"); i++; } for (Object x : entities) { selectItems[i++] = new SelectItem(x, x.toString()); } return selectItems; }
/** * Build array selectItem form list of object * * @param entities * @param selectOne * @return */
Build array selectItem form list of object
getSelectItems
{ "repo_name": "nms-htc/mlove", "path": "src/main/java/com/nms/mlove/util/JsfUtil.java", "license": "apache-2.0", "size": 5581 }
[ "javax.faces.model.SelectItem" ]
import javax.faces.model.SelectItem;
import javax.faces.model.*;
[ "javax.faces" ]
javax.faces;
1,402,708
public Date getModified() { return modified; }
Date function() { return modified; }
/** * Getter for modified * @return Date to get */
Getter for modified
getModified
{ "repo_name": "colloquium/spacewalk", "path": "java/code/src/com/redhat/rhn/domain/server/PushDispatcher.java", "license": "gpl-2.0", "size": 3133 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,392,446
final Preview preview = new Preview(previewConfig); preview.setOnPreviewOutputUpdateListener(this); return preview; }
final Preview preview = new Preview(previewConfig); preview.setOnPreviewOutputUpdateListener(this); return preview; }
/** * Sets {@link OnPreviewOutputUpdateListener} and returns created {@link Preview} object. */
Sets <code>OnPreviewOutputUpdateListener</code> and returns created <code>Preview</code> object
getUseCase
{ "repo_name": "googlesamples/glass-enterprise-samples", "path": "QRCodeScannerSample/app/src/main/java/com/example/glass/qrcodescannersample/QRCodePreview.java", "license": "apache-2.0", "size": 2317 }
[ "androidx.camera.core.Preview" ]
import androidx.camera.core.Preview;
import androidx.camera.core.*;
[ "androidx.camera" ]
androidx.camera;
388,912
public ServiceFuture<NetworkInterfaceTapConfigurationInner> beginCreateOrUpdateAsync(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, NetworkInterfaceTapConfigurationInner tapConfigurationParameters, final ServiceCallback<NetworkInterfaceTapConfigurationInner> serviceCallback) { ...
ServiceFuture<NetworkInterfaceTapConfigurationInner> function(String resourceGroupName, String networkInterfaceName, String tapConfigurationName, NetworkInterfaceTapConfigurationInner tapConfigurationParameters, final ServiceCallback<NetworkInterfaceTapConfigurationInner> serviceCallback) { return ServiceFuture.fromRes...
/** * Creates or updates a Tap configuration in the specified NetworkInterface. * * @param resourceGroupName The name of the resource group. * @param networkInterfaceName The name of the network interface. * @param tapConfigurationName The name of the tap configuration. * @param tapConfigu...
Creates or updates a Tap configuration in the specified NetworkInterface
beginCreateOrUpdateAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_09_01/src/main/java/com/microsoft/azure/management/network/v2019_09_01/implementation/NetworkInterfaceTapConfigurationsInner.java", "license": "mit", "size": 49754 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,144,411
public String getTimestampString2() { return Util.XS_DATETIME_FORMATTER.format(new Date(timestamp)); }
String function() { return Util.XS_DATETIME_FORMATTER.format(new Date(timestamp)); }
/** * Returns the timestamp formatted in xs:dateTime. */
Returns the timestamp formatted in xs:dateTime
getTimestampString2
{ "repo_name": "cnopens/hudson", "path": "hudson-core/src/main/java/hudson/model/Run.java", "license": "mit", "size": 67851 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,603,068
public void reset( Reader input ) throws IOException { if ( input != null ) reader = new IPushbackReader(new BufferedReader(input)); idx = -1; }
void function( Reader input ) throws IOException { if ( input != null ) reader = new IPushbackReader(new BufferedReader(input)); idx = -1; }
/** * stream/reader reset. * * @param input * @throws IOException */
stream/reader reset
reset
{ "repo_name": "c9n/jcseg", "path": "jcseg-core/src/main/java/org/lionsoul/jcseg/ASegment.java", "license": "apache-2.0", "size": 40560 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.Reader", "org.lionsoul.jcseg.util.IPushbackReader" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import org.lionsoul.jcseg.util.IPushbackReader;
import java.io.*; import org.lionsoul.jcseg.util.*;
[ "java.io", "org.lionsoul.jcseg" ]
java.io; org.lionsoul.jcseg;
2,717,682
public void addCauses(List c) { if (c != null) { for (Iterator t = c.iterator(); t.hasNext(); ) { addCause((Throwable)t.next()); } } }
void function(List c) { if (c != null) { for (Iterator t = c.iterator(); t.hasNext(); ) { addCause((Throwable)t.next()); } } }
/** * Adds a feature to the Causes attribute of the ConfiguratorException * object * * @param c The feature to be added to the Causes attribute */
Adds a feature to the Causes attribute of the ConfiguratorException object
addCauses
{ "repo_name": "idega/net.jxta", "path": "src/java/net/jxta/ext/config/ConfiguratorException.java", "license": "gpl-3.0", "size": 5093 }
[ "java.util.Iterator", "java.util.List" ]
import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,910,461
public MessageResponse rereadConfiguration() { return connection.executeMethod(MethodNames.REREADCFG); }
MessageResponse function() { return connection.executeMethod(MethodNames.REREADCFG); }
/** * This only works if you altered the THE OPEN TRANSPORTER API as it does not support this operation * natively. Please download a new version of THE OPEN TRANSPORTER from the google project of this java API. * It should support this operation. * */
This only works if you altered the THE OPEN TRANSPORTER API as it does not support this operation natively. Please download a new version of THE OPEN TRANSPORTER from the google project of this java API. It should support this operation
rereadConfiguration
{ "repo_name": "ThomasHangstoerfer/HomeControl", "path": "app/src/main/java/de/fzi/fhemapi/server/FHEMServer.java", "license": "apache-2.0", "size": 18053 }
[ "de.fzi.fhemapi.model.server.MessageResponse", "de.fzi.fhemapi.server.constants.MethodNames" ]
import de.fzi.fhemapi.model.server.MessageResponse; import de.fzi.fhemapi.server.constants.MethodNames;
import de.fzi.fhemapi.model.server.*; import de.fzi.fhemapi.server.constants.*;
[ "de.fzi.fhemapi" ]
de.fzi.fhemapi;
771,681
public ApplicationState getState();
ApplicationState function();
/** * The factory knows about the current initialization state of building up the * application * * @return */
The factory knows about the current initialization state of building up the application
getState
{ "repo_name": "mwilbers/mw-repo", "path": "modules/ofdb-impl/src/main/java/de/mw/mwdata/ofdb/test/impl/ConfigurableApplicationFactory.java", "license": "gpl-3.0", "size": 414 }
[ "de.mw.mwdata.core.ApplicationState" ]
import de.mw.mwdata.core.ApplicationState;
import de.mw.mwdata.core.*;
[ "de.mw.mwdata" ]
de.mw.mwdata;
1,339,041
public Vector3f getMin() { return (!boxes.isEmpty() ? new Vector3f(getMinX(), getMinY(), getMinZ()) : null); }
Vector3f function() { return (!boxes.isEmpty() ? new Vector3f(getMinX(), getMinY(), getMinZ()) : null); }
/** * Gets the minimum X, Y, and Z values in this {@link BoundingBoxMap}. * * @return A {@link Vector3f} containing the minimum X, Y, and Z values of * all stored {@link BoundingBox}es, or null if there are no boxes. */
Gets the minimum X, Y, and Z values in this <code>BoundingBoxMap</code>
getMin
{ "repo_name": "gorindn/ice", "path": "src/org.eclipse.ice.client.widgets.rcp/src/org/eclipse/ice/client/widgets/reactoreditor/plant/BoundingBoxMap.java", "license": "epl-1.0", "size": 15589 }
[ "com.jme3.math.Vector3f" ]
import com.jme3.math.Vector3f;
import com.jme3.math.*;
[ "com.jme3.math" ]
com.jme3.math;
2,424,907
TimelineEvent getEvent() { return event; }
TimelineEvent getEvent() { return event; }
/** * Get the representative TimeLineEvent for this cell. * * @return The representative TimeLineEvent for this cell. */
Get the representative TimeLineEvent for this cell
getEvent
{ "repo_name": "esaunders/autopsy", "path": "Core/src/org/sleuthkit/autopsy/timeline/ui/listvew/ListTimeline.java", "license": "apache-2.0", "size": 36120 }
[ "org.sleuthkit.datamodel.TimelineEvent" ]
import org.sleuthkit.datamodel.TimelineEvent;
import org.sleuthkit.datamodel.*;
[ "org.sleuthkit.datamodel" ]
org.sleuthkit.datamodel;
556,027
public static void log(Object msg, Level level) { synchronized (logger) { logger.log(level, String.valueOf(msg)); } }
static void function(Object msg, Level level) { synchronized (logger) { logger.log(level, String.valueOf(msg)); } }
/** * Takes an Object as a message and obtains its String Value <br /> * via {@link String#valueOf(Object)} which is null-safe. <br /> * <br /> * The String Message and Level are passed to * {@link Logger#log(org.apache.log4j.Priority, Object)} <br /> * to be printed to the Console and Log File (If created)...
Takes an Object as a message and obtains its String Value via <code>String#valueOf(Object)</code> which is null-safe. The String Message and Level are passed to <code>Logger#log(org.apache.log4j.Priority, Object)</code> to be printed to the Console and Log File (If created)
log
{ "repo_name": "Matt529/Argus-Installer2", "path": "src/com/mattc/argus2/util/Console.java", "license": "gpl-3.0", "size": 14327 }
[ "org.apache.log4j.Level" ]
import org.apache.log4j.Level;
import org.apache.log4j.*;
[ "org.apache.log4j" ]
org.apache.log4j;
1,029,920
public Collection<FileAnnotation> getNewWarnings(final Set<FileAnnotation> annotations) { if (hasReferenceResult()) { return AnnotationDifferencer.getNewAnnotations(annotations, getReferenceAnnotations().getAnnotations()); } else { return annotations; } }
Collection<FileAnnotation> function(final Set<FileAnnotation> annotations) { if (hasReferenceResult()) { return AnnotationDifferencer.getNewAnnotations(annotations, getReferenceAnnotations().getAnnotations()); } else { return annotations; } }
/** * Returns the new warnings as a difference between the specified collection * of warnings and the warnings of the reference build. * * @param annotations * the warnings in the current build * @return the difference "current build" - "reference build" */
Returns the new warnings as a difference between the specified collection of warnings and the warnings of the reference build
getNewWarnings
{ "repo_name": "kohsuke/analysis-core-plugin", "path": "src/main/java/hudson/plugins/analysis/core/BuildHistory.java", "license": "mit", "size": 7932 }
[ "hudson.plugins.analysis.util.model.FileAnnotation", "java.util.Collection", "java.util.Set" ]
import hudson.plugins.analysis.util.model.FileAnnotation; import java.util.Collection; import java.util.Set;
import hudson.plugins.analysis.util.model.*; import java.util.*;
[ "hudson.plugins.analysis", "java.util" ]
hudson.plugins.analysis; java.util;
1,672,369
public byte getErrorSource() { return PigException.REMOTE_ENVIRONMENT; }
byte function() { return PigException.REMOTE_ENVIRONMENT; }
/** * Check the execution mode and return the appropriate error source * * @return error source */
Check the execution mode and return the appropriate error source
getErrorSource
{ "repo_name": "ljl1988com/pig", "path": "src/org/apache/pig/impl/PigContext.java", "license": "apache-2.0", "size": 30508 }
[ "org.apache.pig.PigException" ]
import org.apache.pig.PigException;
import org.apache.pig.*;
[ "org.apache.pig" ]
org.apache.pig;
1,741,533
void checkLoadScript(String scriptType, ParsedURL scriptURL, ParsedURL docURL) throws SecurityException;
void checkLoadScript(String scriptType, ParsedURL scriptURL, ParsedURL docURL) throws SecurityException;
/** * This method throws a SecurityException if the script * of given type, found at url and referenced from docURL * should not be loaded. * * This is a convenience method to call checkLoadScript * on the ScriptSecurity strategy returned by * getScriptSecurity. * * @param...
This method throws a SecurityException if the script of given type, found at url and referenced from docURL should not be loaded. This is a convenience method to call checkLoadScript on the ScriptSecurity strategy returned by getScriptSecurity
checkLoadScript
{ "repo_name": "apache/batik", "path": "batik-bridge/src/main/java/org/apache/batik/bridge/UserAgent.java", "license": "apache-2.0", "size": 9206 }
[ "org.apache.batik.util.ParsedURL" ]
import org.apache.batik.util.ParsedURL;
import org.apache.batik.util.*;
[ "org.apache.batik" ]
org.apache.batik;
1,610,039
@ServiceMethod(returns = ReturnType.SINGLE) Response<ForwardingRuleInner> getWithResponse( String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<ForwardingRuleInner> getWithResponse( String resourceGroupName, String dnsForwardingRulesetName, String forwardingRuleName, Context context);
/** * Gets properties of a forwarding rule in a DNS forwarding ruleset. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param dnsForwardingRulesetName The name of the DNS forwarding ruleset. * @param forwardingRuleName The name of the forwarding rul...
Gets properties of a forwarding rule in a DNS forwarding ruleset
getWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/dnsresolver/azure-resourcemanager-dnsresolver/src/main/java/com/azure/resourcemanager/dnsresolver/fluent/ForwardingRulesClient.java", "license": "mit", "size": 11640 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.dnsresolver.fluent.models.ForwardingRuleInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.dnsresolver.fluent.models.ForwardingRuleInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.dnsresolver.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
672,744
public static void putSpanContextAttachments(MeasureMap measureMap, SpanContext spanContext) { checkNotNull(measureMap, "measureMap"); checkNotNull(spanContext, "spanContext"); measureMap.putAttachment( ATTACHMENT_KEY_SPAN_CONTEXT, AttachmentValueSpanContext.create(spanContext)); }
static void function(MeasureMap measureMap, SpanContext spanContext) { checkNotNull(measureMap, STR); checkNotNull(spanContext, STR); measureMap.putAttachment( ATTACHMENT_KEY_SPAN_CONTEXT, AttachmentValueSpanContext.create(spanContext)); }
/** * Puts a {@link SpanContext} into the attachments of the given {@link MeasureMap}. * * @param measureMap the {@code MeasureMap}. * @param spanContext the {@code SpanContext} to be put as attachments. * @since 0.16 */
Puts a <code>SpanContext</code> into the attachments of the given <code>MeasureMap</code>
putSpanContextAttachments
{ "repo_name": "sebright/opencensus-java", "path": "contrib/exemplar_util/src/main/java/io/opencensus/contrib/exemplar/util/ExemplarUtils.java", "license": "apache-2.0", "size": 1972 }
[ "io.opencensus.stats.MeasureMap", "io.opencensus.trace.SpanContext" ]
import io.opencensus.stats.MeasureMap; import io.opencensus.trace.SpanContext;
import io.opencensus.stats.*; import io.opencensus.trace.*;
[ "io.opencensus.stats", "io.opencensus.trace" ]
io.opencensus.stats; io.opencensus.trace;
134,876
@Nullable public static SchemaUserTypeCreator getBuilderCreator( Class<?> clazz, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier) { Class<?> builderClass = getAutoValueGeneratedBuilder(clazz); if (builderClass == null) { return null; } Map<String, FieldValueTypeInformation>...
static SchemaUserTypeCreator function( Class<?> clazz, Schema schema, FieldValueTypeSupplier fieldValueTypeSupplier) { Class<?> builderClass = getAutoValueGeneratedBuilder(clazz); if (builderClass == null) { return null; } Map<String, FieldValueTypeInformation> setterTypes = ReflectUtils.getMethods(builderClass).stream...
/** * Try to find an accessible builder class for creating an AutoValue class. Otherwise return null. */
Try to find an accessible builder class for creating an AutoValue class. Otherwise return null
getBuilderCreator
{ "repo_name": "RyanSkraba/beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/AutoValueUtils.java", "license": "apache-2.0", "size": 13350 }
[ "java.lang.reflect.Method", "java.util.List", "java.util.Map", "java.util.function.Function", "java.util.stream.Collectors", "org.apache.beam.sdk.schemas.FieldValueTypeInformation", "org.apache.beam.sdk.schemas.Schema", "org.apache.beam.sdk.schemas.SchemaUserTypeCreator", "org.apache.beam.vendor.byt...
import java.lang.reflect.Method; import java.util.List; import java.util.Map; import java.util.function.Function; import java.util.stream.Collectors; import org.apache.beam.sdk.schemas.FieldValueTypeInformation; import org.apache.beam.sdk.schemas.Schema; import org.apache.beam.sdk.schemas.SchemaUserTypeCreator; import ...
import java.lang.reflect.*; import java.util.*; import java.util.function.*; import java.util.stream.*; import org.apache.beam.sdk.schemas.*; import org.apache.beam.vendor.bytebuddy.v1_9_3.net.bytebuddy.*; import org.apache.beam.vendor.guava.v26_0_jre.com.google.common.collect.*;
[ "java.lang", "java.util", "org.apache.beam" ]
java.lang; java.util; org.apache.beam;
1,739,024
private String getXMLFormat(Vector list) { StringBuffer xml = new StringBuffer(); for ( int i=0; i<list.size(); i++ ) { LabelValueBean lvb = (LabelValueBean)list.elementAt(i); xml.append( "<" ).append( lvb.getLabel() ).append( ">" ); xml.append( lvb.getValue() ); xml.appen...
String function(Vector list) { StringBuffer xml = new StringBuffer(); for ( int i=0; i<list.size(); i++ ) { LabelValueBean lvb = (LabelValueBean)list.elementAt(i); xml.append( "<" ).append( lvb.getLabel() ).append( ">" ); xml.append( lvb.getValue() ); xml.append( "</" ).append( lvb.getLabel() ).append( ">\n" ); } retur...
/** * Convert to xml format * @param list the list to be converted * @return xml string */
Convert to xml format
getXMLFormat
{ "repo_name": "pfschwartz/openelisglobal-core", "path": "app/src/us/mn/state/health/lims/audittrail/daoimpl/AuditTrailDAOImpl.java", "license": "mpl-2.0", "size": 52081 }
[ "java.util.Vector", "org.apache.struts.util.LabelValueBean" ]
import java.util.Vector; import org.apache.struts.util.LabelValueBean;
import java.util.*; import org.apache.struts.util.*;
[ "java.util", "org.apache.struts" ]
java.util; org.apache.struts;
385,051
public T hl7() { return dataFormat(new HL7DataFormat()); }
T function() { return dataFormat(new HL7DataFormat()); }
/** * Uses the HL7 data format */
Uses the HL7 data format
hl7
{ "repo_name": "rmarting/camel", "path": "camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java", "license": "apache-2.0", "size": 42614 }
[ "org.apache.camel.model.dataformat.HL7DataFormat" ]
import org.apache.camel.model.dataformat.HL7DataFormat;
import org.apache.camel.model.dataformat.*;
[ "org.apache.camel" ]
org.apache.camel;
2,066,833
public Collection<Tuple2<W, TriggerResult>> advanceProcessingTime(long time) throws Exception { Collection<TestInternalTimerService.Timer<Integer, W>> firedTimers = internalTimerService.advanceProcessingTime(time); Collection<Tuple2<W, TriggerResult>> result = new ArrayList<>(); for (TestInternalTimerSer...
Collection<Tuple2<W, TriggerResult>> function(long time) throws Exception { Collection<TestInternalTimerService.Timer<Integer, W>> firedTimers = internalTimerService.advanceProcessingTime(time); Collection<Tuple2<W, TriggerResult>> result = new ArrayList<>(); for (TestInternalTimerService.Timer<Integer, W> timer : fire...
/** * Advanced processing time and processes any timers that fire because of this. The * window and {@link TriggerResult} for each firing are returned. */
Advanced processing time and processes any timers that fire because of this. The window and <code>TriggerResult</code> for each firing are returned
advanceProcessingTime
{ "repo_name": "fanzhidongyzby/flink", "path": "flink-streaming-java/src/test/java/org/apache/flink/streaming/runtime/operators/windowing/TriggerTestHarness.java", "license": "apache-2.0", "size": 13298 }
[ "java.util.ArrayList", "java.util.Collection", "org.apache.flink.api.java.tuple.Tuple2", "org.apache.flink.streaming.api.operators.TestInternalTimerService", "org.apache.flink.streaming.api.windowing.triggers.TriggerResult" ]
import java.util.ArrayList; import java.util.Collection; import org.apache.flink.api.java.tuple.Tuple2; import org.apache.flink.streaming.api.operators.TestInternalTimerService; import org.apache.flink.streaming.api.windowing.triggers.TriggerResult;
import java.util.*; import org.apache.flink.api.java.tuple.*; import org.apache.flink.streaming.api.operators.*; import org.apache.flink.streaming.api.windowing.triggers.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
2,535,549
List<Profile> getProfiles();
List<Profile> getProfiles();
/** * Gets the external profiles that should be considered for model building. * * @return The external profiles that should be considered for model building, never {@code null}. */
Gets the external profiles that should be considered for model building
getProfiles
{ "repo_name": "olamy/maven", "path": "maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuildingRequest.java", "license": "apache-2.0", "size": 13450 }
[ "java.util.List", "org.apache.maven.model.Profile" ]
import java.util.List; import org.apache.maven.model.Profile;
import java.util.*; import org.apache.maven.model.*;
[ "java.util", "org.apache.maven" ]
java.util; org.apache.maven;
2,638,335
public static final CertificateFactory getInstance(String type) throws CertificateException { if (type == null) { throw new NullPointerException(Messages.getString("security.07")); //$NON-NLS-1$ } try { synchronized (engine) { engine.getIns...
static final CertificateFactory function(String type) throws CertificateException { if (type == null) { throw new NullPointerException(Messages.getString(STR)); } try { synchronized (engine) { engine.getInstance(type, null); return new CertificateFactory((CertificateFactorySpi) engine.spi, engine.provider, type); } } c...
/** * Answers a new CertificateFactory of the given type. * * @param type * java.lang.String Type of certificate desired * @return CertificateFactory a concrete implementation for the certificate * type desired. * * @exception CertificateException * ...
Answers a new CertificateFactory of the given type
getInstance
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/java6/modules/security/src/main/java/common/java/security/cert/CertificateFactory.java", "license": "apache-2.0", "size": 10871 }
[ "java.security.NoSuchAlgorithmException", "org.apache.harmony.security.internal.nls.Messages" ]
import java.security.NoSuchAlgorithmException; import org.apache.harmony.security.internal.nls.Messages;
import java.security.*; import org.apache.harmony.security.internal.nls.*;
[ "java.security", "org.apache.harmony" ]
java.security; org.apache.harmony;
2,033,199
public static InputStream getStream(File primaryFile, File defaultFile) { try { if ((primaryFile != null) && primaryFile.exists()) { return new FileInputStream(primaryFile); } else if ((defaultFile != null) && defaultFile.exists()) { return new FileInputStream(defaultFile); } } catch (Excep...
static InputStream function(File primaryFile, File defaultFile) { try { if ((primaryFile != null) && primaryFile.exists()) { return new FileInputStream(primaryFile); } else if ((defaultFile != null) && defaultFile.exists()) { return new FileInputStream(defaultFile); } } catch (Exception ex) { } return null; }
/** * Get an InputStream for a file if it exists or a default file if the primary * file doesn't exist. This method does not copy the default file to the primary * file if the primary file does not exist. * @param primaryFile the file to get if it exists. * @param defaultFile the file to get if the primaryFil...
Get an InputStream for a file if it exists or a default file if the primary file doesn't exist. This method does not copy the default file to the primary file if the primary file does not exist
getStream
{ "repo_name": "blezek/Notion", "path": "src/main/java/org/rsna/util/FileUtil.java", "license": "bsd-3-clause", "size": 30010 }
[ "java.io.File", "java.io.FileInputStream", "java.io.InputStream" ]
import java.io.File; import java.io.FileInputStream; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
954,988
try { int idx = trace.indexOf(MetadataConstants.SEPARATOR); return Long.parseLong(trace.substring(0, idx)); } catch (RuntimeException e) { processException(trace, e); throw e; } }
try { int idx = trace.indexOf(MetadataConstants.SEPARATOR); return Long.parseLong(trace.substring(0, idx)); } catch (RuntimeException e) { processException(trace, e); throw e; } }
/** * Parses the entry's trace and extract its size. */
Parses the entry's trace and extract its size
extractFileSizeFromTrace
{ "repo_name": "chfoo/areca-backup-release-mirror", "path": "src/com/application/areca/metadata/trace/ArchiveTraceParser.java", "license": "gpl-2.0", "size": 12057 }
[ "com.application.areca.metadata.MetadataConstants" ]
import com.application.areca.metadata.MetadataConstants;
import com.application.areca.metadata.*;
[ "com.application.areca" ]
com.application.areca;
1,887,485
protected void drawImageImpl(Image image, int x, int y) { g.drawImage(image, x, y, null); }
void function(Image image, int x, int y) { g.drawImage(image, x, y, null); }
/** * Implements the actual graphics call. */
Implements the actual graphics call
drawImageImpl
{ "repo_name": "jgraph/mxgraph", "path": "java/src/com/mxgraph/canvas/mxGraphics2DCanvas.java", "license": "apache-2.0", "size": 15139 }
[ "java.awt.Image" ]
import java.awt.Image;
import java.awt.*;
[ "java.awt" ]
java.awt;
214,397
public DiskInstanceView withStatuses(List<InstanceViewStatus> statuses) { this.statuses = statuses; return this; }
DiskInstanceView function(List<InstanceViewStatus> statuses) { this.statuses = statuses; return this; }
/** * Set the resource status information. * * @param statuses the statuses value to set * @return the DiskInstanceView object itself. */
Set the resource status information
withStatuses
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/compute/mgmt-v2019_03_01/src/main/java/com/microsoft/azure/management/compute/v2019_03_01/DiskInstanceView.java", "license": "mit", "size": 2548 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,053,256
public static short getShort(String name, Object instance) { Field f = getField(instance.getClass(), name, true); return getShort(f, instance); }
static short function(String name, Object instance) { Field f = getField(instance.getClass(), name, true); return getShort(f, instance); }
/** * Gets the value of an instance <code>short</code> field. * * @param name name of the field whose value is returned. * @param instance the object to extract the <code>short</code> value from * @return the value of the <code>short</code> field * @since 1.3.5 */
Gets the value of an instance <code>short</code> field
getShort
{ "repo_name": "jbachorik/btrace", "path": "btrace-core/src/main/java/org/openjdk/btrace/core/BTraceUtils.java", "license": "gpl-2.0", "size": 226306 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,052,456
public String sanitizeStream(StreamDefinition streamDefinition) { List<StreamAppDefinition> sanitizedAppDefinitions = streamDefinition.getAppDefinitions().stream() .map(app -> StreamAppDefinition.Builder .from(app) .setProperties(this.sanitizeProperties(app.getProperties())) .build(streamDefi...
String function(StreamDefinition streamDefinition) { List<StreamAppDefinition> sanitizedAppDefinitions = streamDefinition.getAppDefinitions().stream() .map(app -> StreamAppDefinition.Builder .from(app) .setProperties(this.sanitizeProperties(app.getProperties())) .build(streamDefinition.getName()) ).collect(Collectors.t...
/** * Redacts sensitive property values in a stream. * * @param streamDefinition the stream definition to sanitize * @return Stream definition text that has sensitive data redacted. */
Redacts sensitive property values in a stream
sanitizeStream
{ "repo_name": "markfisher/spring-cloud-dataflow", "path": "spring-cloud-dataflow-server-core/src/main/java/org/springframework/cloud/dataflow/server/controller/support/ArgumentSanitizer.java", "license": "apache-2.0", "size": 3943 }
[ "java.util.List", "java.util.stream.Collectors", "org.springframework.cloud.dataflow.core.StreamAppDefinition", "org.springframework.cloud.dataflow.core.StreamDefinition" ]
import java.util.List; import java.util.stream.Collectors; import org.springframework.cloud.dataflow.core.StreamAppDefinition; import org.springframework.cloud.dataflow.core.StreamDefinition;
import java.util.*; import java.util.stream.*; import org.springframework.cloud.dataflow.core.*;
[ "java.util", "org.springframework.cloud" ]
java.util; org.springframework.cloud;
2,038,923
@Deprecated public OperationCallSettings.Builder<BatchEnableServicesRequest, Empty, OperationMetadata> batchEnableServicesOperationSettings() { return getStubSettingsBuilder().batchEnableServicesOperationSettings(); }
OperationCallSettings.Builder<BatchEnableServicesRequest, Empty, OperationMetadata> function() { return getStubSettingsBuilder().batchEnableServicesOperationSettings(); }
/** * Returns the builder for the settings used for calls to batchEnableServices. * * @deprecated This method is deprecated and will be removed in the next major version update. */
Returns the builder for the settings used for calls to batchEnableServices
batchEnableServicesOperationSettings
{ "repo_name": "googleapis/java-service-usage", "path": "google-cloud-service-usage/src/main/java/com/google/api/serviceusage/v1beta1/ServiceUsageSettings.java", "license": "apache-2.0", "size": 28328 }
[ "com.google.api.gax.rpc.OperationCallSettings", "com.google.protobuf.Empty" ]
import com.google.api.gax.rpc.OperationCallSettings; import com.google.protobuf.Empty;
import com.google.api.gax.rpc.*; import com.google.protobuf.*;
[ "com.google.api", "com.google.protobuf" ]
com.google.api; com.google.protobuf;
1,976,600
public NamedOperator getContainerNamedOperator() { return item.getContainerNamedOperator(); }
NamedOperator function() { return item.getContainerNamedOperator(); }
/** * Return the encapsulate Low Level API object. */
Return the encapsulate Low Level API object
getContainerNamedOperator
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-PT-HLPNG/src/fr/lip6/move/pnml/pthlpng/booleans/hlapi/ImplyHLAPI.java", "license": "epl-1.0", "size": 69671 }
[ "fr.lip6.move.pnml.pthlpng.terms.NamedOperator" ]
import fr.lip6.move.pnml.pthlpng.terms.NamedOperator;
import fr.lip6.move.pnml.pthlpng.terms.*;
[ "fr.lip6.move" ]
fr.lip6.move;
1,901,093
public ServiceCall getDateTimeValidAsync(final ServiceCallback<Map<String, DateTime>> serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); }
ServiceCall function(final ServiceCallback<Map<String, DateTime>> serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException(STR); }
/** * Get date-time dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"}. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null *...
Get date-time dictionary value {"0": "2000-12-01t00:00:01z", "1": "1980-01-02T00:11:35+01:00", "2": "1492-10-12T10:15:01-08:00"}
getDateTimeValidAsync
{ "repo_name": "John-Hart/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/implementation/DictionarysImpl.java", "license": "mit", "size": 172079 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback", "java.util.Map", "org.joda.time.DateTime" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; import java.util.Map; import org.joda.time.DateTime;
import com.microsoft.rest.*; import java.util.*; import org.joda.time.*;
[ "com.microsoft.rest", "java.util", "org.joda.time" ]
com.microsoft.rest; java.util; org.joda.time;
2,322,886
public Command add(Command command) throws IOException { if (close) throw new IOException("Unable to add commands to a closed shell"); synchronized (commands) { commands.add(command); // set shell on the command object, to know where the command is running on ...
Command function(Command command) throws IOException { if (close) throw new IOException(STR); synchronized (commands) { commands.add(command); command.addedToShell(this, (commands.size() - 1)); commands.notifyAll(); } return command; }
/** * Add command to shell queue * * @param command * @return * @throws java.io.IOException */
Add command to shell queue
add
{ "repo_name": "0359xiaodong/turbo-editor", "path": "libraries/RootCommands/src/main/java/org/sufficientlysecure/rootcommands/Shell.java", "license": "gpl-3.0", "size": 10541 }
[ "java.io.IOException", "org.sufficientlysecure.rootcommands.command.Command" ]
import java.io.IOException; import org.sufficientlysecure.rootcommands.command.Command;
import java.io.*; import org.sufficientlysecure.rootcommands.command.*;
[ "java.io", "org.sufficientlysecure.rootcommands" ]
java.io; org.sufficientlysecure.rootcommands;
520,568
static void removeReference(Reference reference) { synchronized (cache) { cache.remove(reference); } }
static void removeReference(Reference reference) { synchronized (cache) { cache.remove(reference); } }
/** * Invalidates the given reference in this factory's cache. Called by * {@link BindableRepository#shutdown()} to remove the old reference. * * @param reference repository reference */
Invalidates the given reference in this factory's cache. Called by <code>BindableRepository#shutdown()</code> to remove the old reference
removeReference
{ "repo_name": "tripodsan/jackrabbit", "path": "jackrabbit-core/src/main/java/org/apache/jackrabbit/core/jndi/BindableRepositoryFactory.java", "license": "apache-2.0", "size": 2498 }
[ "javax.naming.Reference" ]
import javax.naming.Reference;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
754,809
@ApiModelProperty(example = "null", value = "Name. Required. Unique.") public String getName() { return name; }
@ApiModelProperty(example = "null", value = STR) String function() { return name; }
/** * Name. Required. Unique. * @return name **/
Name. Required. Unique
getName
{ "repo_name": "vladutbutnaru/java-phonecom-sdk", "path": "src/main/java/io/swagger/client/model/MenuSummary.java", "license": "apache-2.0", "size": 2767 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
1,058,906
EffectInstance createEffect() { return new EffectInstance(Effects.SATURATION, duration); }
EffectInstance createEffect() { return new EffectInstance(Effects.SATURATION, duration); }
/** * Create potion effect. * * @return potion effect */
Create potion effect
createEffect
{ "repo_name": "athrane/bassebombecraft", "path": "src/main/java/bassebombecraft/item/action/inventory/AddSaturationEffect.java", "license": "gpl-3.0", "size": 1581 }
[ "net.minecraft.potion.EffectInstance", "net.minecraft.potion.Effects" ]
import net.minecraft.potion.EffectInstance; import net.minecraft.potion.Effects;
import net.minecraft.potion.*;
[ "net.minecraft.potion" ]
net.minecraft.potion;
2,911,956
public List<Comments> getAllByStateForPerson(String inState, Person inPerson) throws Exception { log.trace("In CommentsManagerImpl.getAllByStateForPerson"); return QueryManagerSingleton.instance().getCommentsByStateForPerson(inState, inPerson); ...
List<Comments> function(String inState, Person inPerson) throws Exception { log.trace(STR); return QueryManagerSingleton.instance().getCommentsByStateForPerson(inState, inPerson); }
/** * Get all of the comments of a specific state * * @param inState * the state to query for * * @return the list of comments * * @exception Exception * if an error occurred */
Get all of the comments of a specific state
getAllByStateForPerson
{ "repo_name": "NCIP/camod", "path": "software/camod/src/gov/nih/nci/camod/service/impl/CommentsManagerImpl.java", "license": "bsd-3-clause", "size": 5846 }
[ "gov.nih.nci.camod.domain.Comments", "gov.nih.nci.camod.domain.Person", "java.util.List" ]
import gov.nih.nci.camod.domain.Comments; import gov.nih.nci.camod.domain.Person; import java.util.List;
import gov.nih.nci.camod.domain.*; import java.util.*;
[ "gov.nih.nci", "java.util" ]
gov.nih.nci; java.util;
401,624
@Override @Transactional(readOnly = false) public void setTaskRolePermissionsTIScope(final Role role, final Long taskInstanceId, final boolean setSameForAttachments, final String variableIdentifier) { // TODO: check permissions if rights can be changed final String roleName = role.getRoleNam...
@Transactional(readOnly = false) void function(final Role role, final Long taskInstanceId, final boolean setSameForAttachments, final String variableIdentifier) { final String roleName = role.getRoleName(); if (roleName != null && taskInstanceId != null && roleName.length() != 0) { List<Actor> actorsToSetPermissionsTo ...
/** * creates or updates task instance scope permissions for role. * * @param role * - role object, containing role name, and accesses to set * @param taskInstanceId * @param setSameForAttachments * - set the same access rights for binary variables of the task instance * @param var...
creates or updates task instance scope permissions for role
setTaskRolePermissionsTIScope
{ "repo_name": "idega/org.jboss.jbpm", "path": "src/java/com/idega/jbpm/identity/RolesManagerImpl.java", "license": "gpl-3.0", "size": 68599 }
[ "com.idega.jbpm.JbpmCallback", "com.idega.jbpm.data.Actor", "java.util.List", "org.springframework.transaction.annotation.Transactional" ]
import com.idega.jbpm.JbpmCallback; import com.idega.jbpm.data.Actor; import java.util.List; import org.springframework.transaction.annotation.Transactional;
import com.idega.jbpm.*; import com.idega.jbpm.data.*; import java.util.*; import org.springframework.transaction.annotation.*;
[ "com.idega.jbpm", "java.util", "org.springframework.transaction" ]
com.idega.jbpm; java.util; org.springframework.transaction;
1,618,149
public void open() { Display display = Display.getDefault(); createContents(); shell.open(); shell.layout(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } }
void function() { Display display = Display.getDefault(); createContents(); shell.open(); shell.layout(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } }
/** * Open the window. */
Open the window
open
{ "repo_name": "diltonm/NetWSTester", "path": "srcjava/SWTNumberTester.java", "license": "epl-1.0", "size": 1912 }
[ "org.eclipse.swt.widgets.Display" ]
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,635,670
public void setEbPartnerShipPersistence( EbPartnerShipPersistence ebPartnerShipPersistence) { this.ebPartnerShipPersistence = ebPartnerShipPersistence; }
void function( EbPartnerShipPersistence ebPartnerShipPersistence) { this.ebPartnerShipPersistence = ebPartnerShipPersistence; }
/** * Sets the eb partner ship persistence. * * @param ebPartnerShipPersistence the eb partner ship persistence */
Sets the eb partner ship persistence
setEbPartnerShipPersistence
{ "repo_name": "openegovplatform/OEPv2", "path": "oep-dossier-portlet/docroot/WEB-INF/src/org/oep/dossiermgt/service/base/DossierFolderServiceBaseImpl.java", "license": "apache-2.0", "size": 49358 }
[ "org.oep.dossiermgt.service.persistence.EbPartnerShipPersistence" ]
import org.oep.dossiermgt.service.persistence.EbPartnerShipPersistence;
import org.oep.dossiermgt.service.persistence.*;
[ "org.oep.dossiermgt" ]
org.oep.dossiermgt;
915,701
public static<T> List<T> BronKerbosch(final Map<T,Set<T>> adjacencyMap, List<T> R, List<T> P, List<T> X) { checkReflexivity(adjacencyMap); List<T> outcome = null; if (!P.isEmpty() || !X.isEmpty()) { int maxLabelNeighbours = -1;T maxLabel = null; for(T l: P) if (adjacencyMap.get(l).size() > maxLa...
static<T> List<T> function(final Map<T,Set<T>> adjacencyMap, List<T> R, List<T> P, List<T> X) { checkReflexivity(adjacencyMap); List<T> outcome = null; if (!P.isEmpty() !X.isEmpty()) { int maxLabelNeighbours = -1;T maxLabel = null; for(T l: P) if (adjacencyMap.get(l).size() > maxLabelNeighbours) { maxLabelNeighbours = ...
/** Computes a set of partitions based on compatibility provided with the supplied map. Based on https://en.wikipedia.org/wiki/Bron%E2%80%93Kerbosch_algorithm */
Computes a set of partitions based on compatibility provided with the supplied map. Based on HREF
BronKerbosch
{ "repo_name": "kirilluk/statechum", "path": "src/statechum/analysis/learning/LearnerWithLabelRefinementViaPta.java", "license": "gpl-3.0", "size": 41911 }
[ "java.util.LinkedList", "java.util.List", "java.util.Map", "java.util.Set", "java.util.TreeSet" ]
import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet;
import java.util.*;
[ "java.util" ]
java.util;
85,385
@Test public void testTrivialCycle() throws IOException { Multimap<String, String> graph = LinkedListMultimap.create(); graph.put("A", "A"); AbstractAcyclicDepthFirstPostOrderTraversal<String> dfs = new TestDagDepthFirstSearch(graph); try { dfs.traverse(ImmutableList.of("A")); } catch (Cy...
void function() throws IOException { Multimap<String, String> graph = LinkedListMultimap.create(); graph.put("A", "A"); AbstractAcyclicDepthFirstPostOrderTraversal<String> dfs = new TestDagDepthFirstSearch(graph); try { dfs.traverse(ImmutableList.of("A")); } catch (CycleException e) { assertEquals(STR, e.getMessage());...
/** * Ensures that a cycle is detected in a trivial graph of a single node that points to itself. */
Ensures that a cycle is detected in a trivial graph of a single node that points to itself
testTrivialCycle
{ "repo_name": "GerritCodeReview/buck", "path": "test/com/facebook/buck/graph/AbstractAcyclicDepthFirstPostOrderTraversalTest.java", "license": "apache-2.0", "size": 6218 }
[ "com.facebook.buck.graph.AbstractAcyclicDepthFirstPostOrderTraversal", "com.google.common.collect.ImmutableList", "com.google.common.collect.LinkedListMultimap", "com.google.common.collect.Multimap", "java.io.IOException", "org.junit.Assert" ]
import com.facebook.buck.graph.AbstractAcyclicDepthFirstPostOrderTraversal; import com.google.common.collect.ImmutableList; import com.google.common.collect.LinkedListMultimap; import com.google.common.collect.Multimap; import java.io.IOException; import org.junit.Assert;
import com.facebook.buck.graph.*; import com.google.common.collect.*; import java.io.*; import org.junit.*;
[ "com.facebook.buck", "com.google.common", "java.io", "org.junit" ]
com.facebook.buck; com.google.common; java.io; org.junit;
1,263,828
public void closeJARs(boolean force) { if (jarFiles.length > 0) { synchronized (jarFiles) { if (force || (System.currentTimeMillis() > (lastJarAccessed + 90000))) { for (int i = 0; i < jarFiles.length; i++) { ...
void function(boolean force) { if (jarFiles.length > 0) { synchronized (jarFiles) { if (force (System.currentTimeMillis() > (lastJarAccessed + 90000))) { for (int i = 0; i < jarFiles.length; i++) { try { if (jarFiles[i] != null) { jarFiles[i].close(); jarFiles[i] = null; } } catch (IOException e) { if (log.isDebugEnabl...
/** * Used to periodically signal to the classloader to release * JAR resources. */
Used to periodically signal to the classloader to release JAR resources
closeJARs
{ "repo_name": "wenzhucjy/tomcat_source", "path": "tomcat-7.0.63-sourcecode/target/classes/org/apache/catalina/loader/WebappClassLoader.java", "license": "apache-2.0", "size": 125620 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
690,389
public static DomainFullJid domainFullFrom(CharSequence jid) throws XmppStringprepException { return domainFullFrom(jid.toString()); }
static DomainFullJid function(CharSequence jid) throws XmppStringprepException { return domainFullFrom(jid.toString()); }
/** * Get a domain full JID from the given CharSequence. * * @param jid the JID. * @return a domain full JID. * @throws XmppStringprepException if an error happens. */
Get a domain full JID from the given CharSequence
domainFullFrom
{ "repo_name": "ishan1604/jxmpp", "path": "jxmpp-jid/src/main/java/org/jxmpp/jid/impl/JidCreate.java", "license": "apache-2.0", "size": 20619 }
[ "org.jxmpp.jid.DomainFullJid", "org.jxmpp.stringprep.XmppStringprepException" ]
import org.jxmpp.jid.DomainFullJid; import org.jxmpp.stringprep.XmppStringprepException;
import org.jxmpp.jid.*; import org.jxmpp.stringprep.*;
[ "org.jxmpp.jid", "org.jxmpp.stringprep" ]
org.jxmpp.jid; org.jxmpp.stringprep;
2,444,011
public void setClassifier(String classifier) { JodaBeanUtils.notNull(classifier, "classifier"); this._classifier = classifier; }
void function(String classifier) { JodaBeanUtils.notNull(classifier, STR); this._classifier = classifier; }
/** * Sets the classifier that the factory should publish under. The Spring config must create this. * @param classifier the new value of the property, not null */
Sets the classifier that the factory should publish under. The Spring config must create this
setClassifier
{ "repo_name": "McLeodMoores/starling", "path": "projects/component/src/main/java/com/opengamma/component/factory/engine/SpringViewProcessorComponentFactory.java", "license": "apache-2.0", "size": 39839 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
2,084,086
Resource getImage(Attachment attachment);
Resource getImage(Attachment attachment);
/** * Get the image to display in the list of related content for * the given attachment. * * @param attachment the attachment to get the image for. When null is * passed, the image for a new attachment (of the type this class is capable of * rendering) is expected to be returned. */
Get the image to display in the list of related content for the given attachment
getImage
{ "repo_name": "adbrucker/SecureBPMN", "path": "runtime/src/modules/activiti-webapp-explorer2/src/main/java/org/activiti/explorer/ui/content/AttachmentRenderer.java", "license": "apache-2.0", "size": 2128 }
[ "com.vaadin.terminal.Resource", "org.activiti.engine.task.Attachment" ]
import com.vaadin.terminal.Resource; import org.activiti.engine.task.Attachment;
import com.vaadin.terminal.*; import org.activiti.engine.task.*;
[ "com.vaadin.terminal", "org.activiti.engine" ]
com.vaadin.terminal; org.activiti.engine;
1,957,151
public static boolean isLayoutRtl(View view) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return view.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; } else { // All layouts are LTR before JB MR1. return false; } }
static boolean function(View view) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR1) { return view.getLayoutDirection() == View.LAYOUT_DIRECTION_RTL; } else { return false; } }
/** * Returns true if view's layout direction is right-to-left. * * @param view the View whose layout is being considered */
Returns true if view's layout direction is right-to-left
isLayoutRtl
{ "repo_name": "Passw/gn_GFW", "path": "base/android/java/src/org/chromium/base/ApiCompatibilityUtils.java", "license": "gpl-3.0", "size": 26133 }
[ "android.os.Build", "android.view.View" ]
import android.os.Build; import android.view.View;
import android.os.*; import android.view.*;
[ "android.os", "android.view" ]
android.os; android.view;
1,495,297
@Test public void testGetDeviceByIDEmptyNetwork() { // Call the method under test. RemoteXBeeDevice found = network.getDevice(NODE_ID); // Verify the result. assertNull(found); }
void function() { RemoteXBeeDevice found = network.getDevice(NODE_ID); assertNull(found); }
/** * Test method for {@link com.digi.xbee.api.XBeeNetwork#getDevice(String)}. * * <p>Verify that we get a null object if the network is empty.</p> */
Test method for <code>com.digi.xbee.api.XBeeNetwork#getDevice(String)</code>. Verify that we get a null object if the network is empty
testGetDeviceByIDEmptyNetwork
{ "repo_name": "digidotcom/XBeeJavaLibrary", "path": "library/src/test/java/com/digi/xbee/api/XBeeNetworkGetTest.java", "license": "mpl-2.0", "size": 24654 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
23,728
public static String processObservedZnodeDataToString(byte[] data) { return new String(data, Charset.forName("UTF-8")); }
static String function(byte[] data) { return new String(data, Charset.forName("UTF-8")); }
/** * Method to encode data from znode to signal CMWs to deploy processes, as * String. * @param data byte array containing data to be encoded as String. * @return String representation of data. */
Method to encode data from znode to signal CMWs to deploy processes, as String
processObservedZnodeDataToString
{ "repo_name": "jsoft88/DistributedProcessWatcher", "path": "src/org/jc/zk/util/Utils.java", "license": "mit", "size": 21392 }
[ "java.nio.charset.Charset" ]
import java.nio.charset.Charset;
import java.nio.charset.*;
[ "java.nio" ]
java.nio;
2,117,372
private boolean isPureProjection(LogicalExpressionPlan expr) { if (expr.size()!=1) return false; if (!(expr.getSinks().get(0) instanceof ProjectExpression)) return false; return true; }
boolean function(LogicalExpressionPlan expr) { if (expr.size()!=1) return false; if (!(expr.getSinks().get(0) instanceof ProjectExpression)) return false; return true; }
/** * Check if the given expression contains only a pure projection. * For instance $0 is legal, f1 is legal, but 5 + $2 is not legal. * (int)f1 is not legal either. */
Check if the given expression contains only a pure projection. For instance $0 is legal, f1 is legal, but 5 + $2 is not legal. (int)f1 is not legal either
isPureProjection
{ "repo_name": "piaozhexiu/apache-pig", "path": "src/org/apache/pig/newplan/logical/rules/PushDownForEachFlatten.java", "license": "apache-2.0", "size": 15444 }
[ "org.apache.pig.newplan.logical.expression.LogicalExpressionPlan", "org.apache.pig.newplan.logical.expression.ProjectExpression" ]
import org.apache.pig.newplan.logical.expression.LogicalExpressionPlan; import org.apache.pig.newplan.logical.expression.ProjectExpression;
import org.apache.pig.newplan.logical.expression.*;
[ "org.apache.pig" ]
org.apache.pig;
2,775,227
public OneResponse chgrp(int gid) { return chown(-1, gid); }
OneResponse function(int gid) { return chown(-1, gid); }
/** * Changes the group * * @param gid The new group ID. * @return If an error occurs the error message contains the reason. */
Changes the group
chgrp
{ "repo_name": "fasrc/one", "path": "src/oca/java/src/org/opennebula/client/vnet/VirtualNetwork.java", "license": "apache-2.0", "size": 21150 }
[ "org.opennebula.client.OneResponse" ]
import org.opennebula.client.OneResponse;
import org.opennebula.client.*;
[ "org.opennebula.client" ]
org.opennebula.client;
2,631,642
public void setAssetMarketValueAmt (BigDecimal AssetMarketValueAmt);
void function (BigDecimal AssetMarketValueAmt);
/** Set Market value Amount. * Market value of the asset */
Set Market value Amount. Market value of the asset
setAssetMarketValueAmt
{ "repo_name": "erpcya/adempierePOS", "path": "base/src/org/compiere/model/I_A_Asset_Retirement.java", "license": "gpl-2.0", "size": 5446 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,725
@Nonnull public EducationCategoryRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { return new com.microsoft.graph.requests.EducationCategoryRequest(getRequestUrl(), getClient(), requestOptions); }
EducationCategoryRequest function(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { return new com.microsoft.graph.requests.EducationCategoryRequest(getRequestUrl(), getClient(), requestOptions); }
/** * Creates the request with specific requestOptions instead of the existing requestOptions * * @param requestOptions the options for this request * @return the EducationCategoryRequest instance */
Creates the request with specific requestOptions instead of the existing requestOptions
buildRequest
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/EducationCategoryRequestBuilder.java", "license": "mit", "size": 2389 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
710,599
@Override public ImmutableList<Variable> toClassVariableArguments(final Ds3Request ds3Request) { final ImmutableList.Builder<Variable> builder = ImmutableList.builder(); for (final Arguments arg : toConstructorArgumentsList(ds3Request)) { if (!arg.getName().equals("NotificationEndPo...
ImmutableList<Variable> function(final Ds3Request ds3Request) { final ImmutableList.Builder<Variable> builder = ImmutableList.builder(); for (final Arguments arg : toConstructorArgumentsList(ds3Request)) { if (!arg.getName().equals(STR)) { builder.add(new Variable(arg.getName(), arg.getType(), true)); } } for (final Ar...
/** * Gets all the class variables to properly generate the variables and their * getter functions, excluding the NotificationEndPoint variable */
Gets all the class variables to properly generate the variables and their getter functions, excluding the NotificationEndPoint variable
toClassVariableArguments
{ "repo_name": "rpmoore/ds3_autogen", "path": "ds3-autogen-java/src/main/java/com/spectralogic/ds3autogen/java/generators/requestmodels/CreateNotificationRequestGenerator.java", "license": "apache-2.0", "size": 5142 }
[ "com.google.common.collect.ImmutableList", "com.spectralogic.ds3autogen.api.models.Arguments", "com.spectralogic.ds3autogen.api.models.Ds3Request", "com.spectralogic.ds3autogen.java.models.Variable" ]
import com.google.common.collect.ImmutableList; import com.spectralogic.ds3autogen.api.models.Arguments; import com.spectralogic.ds3autogen.api.models.Ds3Request; import com.spectralogic.ds3autogen.java.models.Variable;
import com.google.common.collect.*; import com.spectralogic.ds3autogen.api.models.*; import com.spectralogic.ds3autogen.java.models.*;
[ "com.google.common", "com.spectralogic.ds3autogen" ]
com.google.common; com.spectralogic.ds3autogen;
2,113,483
public synchronized Rect getFramingRectInPreview() { if (framingRectInPreview == null) { Rect framingRect = getFramingRect(); if (framingRect == null) { return null; } Rect rect = new Rect(framingRect); Point cameraResolution = configManager.getCameraResolution(); Point screenResolution = con...
synchronized Rect function() { if (framingRectInPreview == null) { Rect framingRect = getFramingRect(); if (framingRect == null) { return null; } Rect rect = new Rect(framingRect); Point cameraResolution = configManager.getCameraResolution(); Point screenResolution = configManager.getScreenResolution(); if (cameraResol...
/** * Like {@link #getFramingRect} but coordinates are in terms of the preview * frame, not UI / screen. * * @return {@link Rect} expressing barcode scan area in terms of the preview * size */
Like <code>#getFramingRect</code> but coordinates are in terms of the preview frame, not UI / screen
getFramingRectInPreview
{ "repo_name": "xiong-it/PortraitZXing", "path": "Eclipse/PortraitZXing/src/com/google/zxing/client/android/camera/CameraManager.java", "license": "apache-2.0", "size": 12052 }
[ "android.graphics.Point", "android.graphics.Rect" ]
import android.graphics.Point; import android.graphics.Rect;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
1,156,429
public IDataset getSpwidth();
IDataset function();
/** * spoke width at beam centre * <p> * <b>Type:</b> NX_FLOAT * <b>Units:</b> NX_LENGTH * </p> * * @return the value. */
spoke width at beam centre Type: NX_FLOAT Units: NX_LENGTH
getSpwidth
{ "repo_name": "willrogers/dawnsci", "path": "org.eclipse.dawnsci.nexus/src/org/eclipse/dawnsci/nexus/NXvelocity_selector.java", "license": "epl-1.0", "size": 2914 }
[ "org.eclipse.dawnsci.analysis.api.dataset.IDataset" ]
import org.eclipse.dawnsci.analysis.api.dataset.IDataset;
import org.eclipse.dawnsci.analysis.api.dataset.*;
[ "org.eclipse.dawnsci" ]
org.eclipse.dawnsci;
974,145
public final <T extends EvaluatedPresentationNodeBehaviour> T getEPNBehaviourOrNull(Class<T> pClass) { if(pClass.isAssignableFrom(mEvaluatedPresentationNode.getClass())) { return pClass.cast(mEvaluatedPresentationNode); } else { return null; } }
final <T extends EvaluatedPresentationNodeBehaviour> T function(Class<T> pClass) { if(pClass.isAssignableFrom(mEvaluatedPresentationNode.getClass())) { return pClass.cast(mEvaluatedPresentationNode); } else { return null; } }
/** * Same as {@link #getEPNBehaviour} except this returns null instead of erroring if the EPN does not perform the * desired behaviour. * @param <T> * @param pClass * @return The EPN cast to the desired behaviour, or null. */
Same as <code>#getEPNBehaviour</code> except this returns null instead of erroring if the EPN does not perform the desired behaviour
getEPNBehaviourOrNull
{ "repo_name": "Fivium/FOXopen", "path": "src/main/java/net/foxopen/fox/module/datanode/EvaluatedNode.java", "license": "gpl-3.0", "size": 32537 }
[ "net.foxopen.fox.module.parsetree.evaluatedpresentationnode.behaviour.EvaluatedPresentationNodeBehaviour" ]
import net.foxopen.fox.module.parsetree.evaluatedpresentationnode.behaviour.EvaluatedPresentationNodeBehaviour;
import net.foxopen.fox.module.parsetree.evaluatedpresentationnode.behaviour.*;
[ "net.foxopen.fox" ]
net.foxopen.fox;
885,704
protected void handleListeners(int state) { // synchronized(_listeners) { Collection<ControllerListener> listeners = (Collection<ControllerListener>) _listeners.get(state); if (listeners != null) synchronized (_listeners) { for (ControllerListener listener : listeners) try ...
void function(int state) { { Collection<ControllerListener> listeners = (Collection<ControllerListener>) _listeners.get(state); if (listeners != null) synchronized (_listeners) { for (ControllerListener listener : listeners) try { listener.fire(); } catch (Exception ex) { ex.printStackTrace(); } } } }
/** * Handle listeners. * * @param state * the state */
Handle listeners
handleListeners
{ "repo_name": "neo4j-attic/yajsw", "path": "src/main/java/org/rzo/yajsw/controller/AbstractController.java", "license": "lgpl-2.1", "size": 3354 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,614,914
public Map<Integer, List<Encounter>> getAllEncounters(Cohort patients);
Map<Integer, List<Encounter>> function(Cohort patients);
/** * Get all encounters for a cohort of patients * * @param patients Cohort of patients to search * @return Map of all encounters for specified patients. * @should get all encounters for a cohort of patients * @since 1.8 */
Get all encounters for a cohort of patients
getAllEncounters
{ "repo_name": "MitchellBot/openmrs-core", "path": "api/src/main/java/org/openmrs/api/EncounterService.java", "license": "mpl-2.0", "size": 28818 }
[ "java.util.List", "java.util.Map", "org.openmrs.Cohort", "org.openmrs.Encounter" ]
import java.util.List; import java.util.Map; import org.openmrs.Cohort; import org.openmrs.Encounter;
import java.util.*; import org.openmrs.*;
[ "java.util", "org.openmrs" ]
java.util; org.openmrs;
1,967,216
public final DOMAdapter makeDOMAdapter(DOM dom) throws TransletException { setRootForKeys(dom.getDocument()); return new DOMAdapter(dom, namesArray, urisArray, typesArray, namespaceArray); } // Parameter's stack: <tt>pbase</tt> and <tt>pframe</tt> are used // to denote the curren...
final DOMAdapter function(DOM dom) throws TransletException { setRootForKeys(dom.getDocument()); return new DOMAdapter(dom, namesArray, urisArray, typesArray, namespaceArray); } protected int pbase = 0, pframe = 0; protected ArrayList paramsStack = new ArrayList();
/** * Wrap the initial input DOM in a dom adapter. This adapter is wrapped in * a DOM multiplexer if the document() function is used (handled by compiled * code in the translet - see compiler/Stylesheet.compileTransform()). */
Wrap the initial input DOM in a dom adapter. This adapter is wrapped in a DOM multiplexer if the document() function is used (handled by compiled code in the translet - see compiler/Stylesheet.compileTransform())
makeDOMAdapter
{ "repo_name": "apache/servicemix4-bundles", "path": "xalan-2.7.2/src/main/java/org/apache/xalan/xsltc/runtime/AbstractTranslet.java", "license": "apache-2.0", "size": 25987 }
[ "java.util.ArrayList", "org.apache.xalan.xsltc.TransletException", "org.apache.xalan.xsltc.dom.DOMAdapter" ]
import java.util.ArrayList; import org.apache.xalan.xsltc.TransletException; import org.apache.xalan.xsltc.dom.DOMAdapter;
import java.util.*; import org.apache.xalan.xsltc.*; import org.apache.xalan.xsltc.dom.*;
[ "java.util", "org.apache.xalan" ]
java.util; org.apache.xalan;
2,626,653
public ArrayList<TaskAgentJobRequest> getAgentRequestsForAgents( final int poolId, final List<Integer> agentIds, final Integer completedRequestCount) { final UUID locationId = UUID.fromString("fc825784-c92a-4299-9221-998a02d1b54f"); //$NON-NLS-1$ final ApiResourceVersion ...
ArrayList<TaskAgentJobRequest> function( final int poolId, final List<Integer> agentIds, final Integer completedRequestCount) { final UUID locationId = UUID.fromString(STR); final ApiResourceVersion apiVersion = new ApiResourceVersion(STR); final Map<String, Object> routeValues = new HashMap<String, Object>(); routeVal...
/** * [Preview API 3.1-preview.1] * * @param poolId * * @param agentIds * * @param completedRequestCount * * @return ArrayList&lt;TaskAgentJobRequest&gt; */
[Preview API 3.1-preview.1]
getAgentRequestsForAgents
{ "repo_name": "Microsoft/vso-httpclient-java", "path": "Rest/alm-distributedtask-client/src/main/generated/com/microsoft/alm/teamfoundation/distributedtask/webapi/TaskAgentHttpClientBase.java", "license": "mit", "size": 129237 }
[ "com.fasterxml.jackson.core.type.TypeReference", "com.microsoft.alm.client.HttpMethod", "com.microsoft.alm.client.VssMediaTypes", "com.microsoft.alm.client.VssRestRequest", "com.microsoft.alm.client.model.NameValueCollection", "com.microsoft.alm.teamfoundation.distributedtask.webapi.TaskAgentJobRequest", ...
import com.fasterxml.jackson.core.type.TypeReference; import com.microsoft.alm.client.HttpMethod; import com.microsoft.alm.client.VssMediaTypes; import com.microsoft.alm.client.VssRestRequest; import com.microsoft.alm.client.model.NameValueCollection; import com.microsoft.alm.teamfoundation.distributedtask.webapi.TaskA...
import com.fasterxml.jackson.core.type.*; import com.microsoft.alm.client.*; import com.microsoft.alm.client.model.*; import com.microsoft.alm.teamfoundation.distributedtask.webapi.*; import com.microsoft.alm.visualstudio.services.webapi.*; import java.util.*;
[ "com.fasterxml.jackson", "com.microsoft.alm", "java.util" ]
com.fasterxml.jackson; com.microsoft.alm; java.util;
593
public final IType getSuperType() { return fSuperType; } /** * {@inheritDoc}
final IType function() { return fSuperType; } /** * {@inheritDoc}
/** * Returns the supertype as replacement. * * @return The supertype as replacement */
Returns the supertype as replacement
getSuperType
{ "repo_name": "boniatillo-com/PhaserEditor", "path": "source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/UseSuperTypeProcessor.java", "license": "epl-1.0", "size": 20890 }
[ "org.eclipse.wst.jsdt.core.IType" ]
import org.eclipse.wst.jsdt.core.IType;
import org.eclipse.wst.jsdt.core.*;
[ "org.eclipse.wst" ]
org.eclipse.wst;
378,356
public Write withBigtableOptions(BigtableOptions options) { return withBigtableOptions(options.toBuilder()); }
Write function(BigtableOptions options) { return withBigtableOptions(options.toBuilder()); }
/** * Returns a new {@link BigtableIO.Write} that will write to the Cloud Bigtable instance * indicated by the given options, and using any other specified customizations. * * <p>Does not modify this object. */
Returns a new <code>BigtableIO.Write</code> that will write to the Cloud Bigtable instance indicated by the given options, and using any other specified customizations. Does not modify this object
withBigtableOptions
{ "repo_name": "eljefe6a/incubator-beam", "path": "sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java", "license": "apache-2.0", "size": 40281 }
[ "com.google.cloud.bigtable.config.BigtableOptions" ]
import com.google.cloud.bigtable.config.BigtableOptions;
import com.google.cloud.bigtable.config.*;
[ "com.google.cloud" ]
com.google.cloud;
492,668
private Integer parseResponseCode(String statusLine) { if (!StringUtil.isEmpty(statusLine)) { String[] results = statusLine.split(" "); if (results.length >= 1) { try { return Integer.valueOf(results[1]); } catch (Exception e) { ...
Integer function(String statusLine) { if (!StringUtil.isEmpty(statusLine)) { String[] results = statusLine.split(" "); if (results.length >= 1) { try { return Integer.valueOf(results[1]); } catch (Exception e) { } } } return -1; }
/** * <PRE> * HTTP/1.0 200 OK HTTP/1.0 401 Unauthorized * </PRE> * It will return 200 and 401 respectively. Returns -1 if no code can be discerned */
HTTP/1.0 200 OK HTTP/1.0 401 Unauthorized It will return 200 and 401 respectively. Returns -1 if no code can be discerned
parseResponseCode
{ "repo_name": "wu-sheng/sky-walking", "path": "apm-sniffer/bootstrap-plugins/jdk-http-plugin/src/main/java/org/apache/skywalking/apm/plugin/jdk/http/HttpClientParseHttpInterceptor.java", "license": "apache-2.0", "size": 3211 }
[ "org.apache.skywalking.apm.util.StringUtil" ]
import org.apache.skywalking.apm.util.StringUtil;
import org.apache.skywalking.apm.util.*;
[ "org.apache.skywalking" ]
org.apache.skywalking;
964,954
private Criteria buildOnStudySurgeryCriteria (ClinicalDataQuery clinicalQuery) { OnStudySurgeryOutcomeCriteria crit = clinicalQuery.getOnStudySurgeryOutcomeCriteria(); OnStudySurgeryTitleCriteria crit2 = clinicalQuery.getOnStudySurgeryTitleCriteria(); Criteria c = new Criteria(); if ...
Criteria function (ClinicalDataQuery clinicalQuery) { OnStudySurgeryOutcomeCriteria crit = clinicalQuery.getOnStudySurgeryOutcomeCriteria(); OnStudySurgeryTitleCriteria crit2 = clinicalQuery.getOnStudySurgeryTitleCriteria(); Criteria c = new Criteria(); if (crit != null crit2 != null ) { if(crit != null) { ArrayList ou...
/** * * private method used to add onstudy therapy surgery title and outcome query to OJB criteria * */
private method used to add onstudy therapy surgery title and outcome query to OJB criteria
buildOnStudySurgeryCriteria
{ "repo_name": "NCIP/rembrandt", "path": "src/gov/nih/nci/rembrandt/queryservice/queryprocessing/clinical/ClinicalQueryHandler.java", "license": "bsd-3-clause", "size": 105681 }
[ "gov.nih.nci.caintegrator.dto.critieria.OnStudySurgeryOutcomeCriteria", "gov.nih.nci.caintegrator.dto.critieria.OnStudySurgeryTitleCriteria", "gov.nih.nci.caintegrator.dto.de.OnStudySurgeryOutcomeDE", "gov.nih.nci.caintegrator.dto.de.OnStudySurgeryTitleDE", "gov.nih.nci.rembrandt.dbbean.OnStudySurgery", "...
import gov.nih.nci.caintegrator.dto.critieria.OnStudySurgeryOutcomeCriteria; import gov.nih.nci.caintegrator.dto.critieria.OnStudySurgeryTitleCriteria; import gov.nih.nci.caintegrator.dto.de.OnStudySurgeryOutcomeDE; import gov.nih.nci.caintegrator.dto.de.OnStudySurgeryTitleDE; import gov.nih.nci.rembrandt.dbbean.OnStud...
import gov.nih.nci.caintegrator.dto.critieria.*; import gov.nih.nci.caintegrator.dto.de.*; import gov.nih.nci.rembrandt.dbbean.*; import gov.nih.nci.rembrandt.dto.query.*; import java.util.*; import org.apache.ojb.broker.query.*;
[ "gov.nih.nci", "java.util", "org.apache.ojb" ]
gov.nih.nci; java.util; org.apache.ojb;
2,224,326
public static boolean isNumericType(ColumnType columnType){ ValidateArgument.required(columnType, "columnType"); switch(columnType){ case INTEGER: case DOUBLE: case DATE: case FILEHANDLEID: case USERID: case SUBMISSIONID: case EVALUATIONID: return true; default: return false; ...
static boolean function(ColumnType columnType){ ValidateArgument.required(columnType, STR); switch(columnType){ case INTEGER: case DOUBLE: case DATE: case FILEHANDLEID: case USERID: case SUBMISSIONID: case EVALUATIONID: return true; default: return false; } }
/** * Is the given ColumnType numeric? * @param columnType * @return */
Is the given ColumnType numeric
isNumericType
{ "repo_name": "Sage-Bionetworks/Synapse-Repository-Services", "path": "lib/lib-table-cluster/src/main/java/org/sagebionetworks/table/cluster/SQLTranslatorUtils.java", "license": "apache-2.0", "size": 44697 }
[ "org.sagebionetworks.repo.model.table.ColumnType", "org.sagebionetworks.util.ValidateArgument" ]
import org.sagebionetworks.repo.model.table.ColumnType; import org.sagebionetworks.util.ValidateArgument;
import org.sagebionetworks.repo.model.table.*; import org.sagebionetworks.util.*;
[ "org.sagebionetworks.repo", "org.sagebionetworks.util" ]
org.sagebionetworks.repo; org.sagebionetworks.util;
1,056,905
void addProgramDataElementAttributeIndicatorValues( DataQueryParams params, Grid grid ) { if ( (!params.getAllProgramDataElementsAndAttributes().isEmpty() || !params.getProgramIndicators().isEmpty()) && !params.isSkipData() ) { DataQueryParams dataSourceParams = newBuilde...
void addProgramDataElementAttributeIndicatorValues( DataQueryParams params, Grid grid ) { if ( (!params.getAllProgramDataElementsAndAttributes().isEmpty() !params.getProgramIndicators().isEmpty()) && !params.isSkipData() ) { DataQueryParams dataSourceParams = newBuilder( params ) .retainDataDimensions( PROGRAM_DATA_ELE...
/** * Adds program data element values to the given grid based on the given * data query parameters. * * @param params the {@link DataQueryParams}. * @param grid the grid. */
Adds program data element values to the given grid based on the given data query parameters
addProgramDataElementAttributeIndicatorValues
{ "repo_name": "dhis2/dhis2-core", "path": "dhis-2/dhis-services/dhis-service-analytics/src/main/java/org/hisp/dhis/analytics/data/handler/DataHandler.java", "license": "bsd-3-clause", "size": 50048 }
[ "org.apache.commons.collections4.CollectionUtils", "org.hisp.dhis.analytics.DataQueryParams", "org.hisp.dhis.analytics.event.EventQueryParams", "org.hisp.dhis.common.Grid" ]
import org.apache.commons.collections4.CollectionUtils; import org.hisp.dhis.analytics.DataQueryParams; import org.hisp.dhis.analytics.event.EventQueryParams; import org.hisp.dhis.common.Grid;
import org.apache.commons.collections4.*; import org.hisp.dhis.analytics.*; import org.hisp.dhis.analytics.event.*; import org.hisp.dhis.common.*;
[ "org.apache.commons", "org.hisp.dhis" ]
org.apache.commons; org.hisp.dhis;
139,402
public static final void addLinks(@NonNull TextView text, @NonNull Pattern pattern, @Nullable String scheme, @Nullable MatchFilter matchFilter, @Nullable TransformFilter transformFilter) { addLinks(text, pattern, scheme, null, matchFilter, transformFilter); }
static final void function(@NonNull TextView text, @NonNull Pattern pattern, @Nullable String scheme, @Nullable MatchFilter matchFilter, @Nullable TransformFilter transformFilter) { addLinks(text, pattern, scheme, null, matchFilter, transformFilter); }
/** * Applies a regex to the text of a TextView turning the matches into * links. If links are found then UrlSpans are applied to the link * text match areas, and the movement method for the text is changed * to LinkMovementMethod. * * @param text TextView whose text is to be...
Applies a regex to the text of a TextView turning the matches into links. If links are found then UrlSpans are applied to the link text match areas, and the movement method for the text is changed to LinkMovementMethod
addLinks
{ "repo_name": "xorware/android_frameworks_base", "path": "core/java/android/text/util/Linkify.java", "license": "apache-2.0", "size": 24052 }
[ "android.annotation.NonNull", "android.annotation.Nullable", "android.widget.TextView", "java.util.regex.Pattern" ]
import android.annotation.NonNull; import android.annotation.Nullable; import android.widget.TextView; import java.util.regex.Pattern;
import android.annotation.*; import android.widget.*; import java.util.regex.*;
[ "android.annotation", "android.widget", "java.util" ]
android.annotation; android.widget; java.util;
2,018,431
public Builder setResetBillingCycleAnchor(Boolean resetBillingCycleAnchor) { this.resetBillingCycleAnchor = resetBillingCycleAnchor; return this; } } } @Getter public static class InvoiceSettings { @SerializedName("days_until_due") Long daysUntil...
Builder function(Boolean resetBillingCycleAnchor) { this.resetBillingCycleAnchor = resetBillingCycleAnchor; return this; } } } public static class InvoiceSettings { @SerializedName(STR) Long daysUntilDue; @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map<String, Object> extraParams; private InvoiceSettings(Long da...
/** * Indicates if the {@code billing_cycle_anchor} should be reset when a threshold is * reached. If true, {@code billing_cycle_anchor} will be updated to the date/time the * threshold was last reached; otherwise, the value will remain unchanged. */
Indicates if the billing_cycle_anchor should be reset when a threshold is reached. If true, billing_cycle_anchor will be updated to the date/time the threshold was last reached; otherwise, the value will remain unchanged
setResetBillingCycleAnchor
{ "repo_name": "stripe/stripe-java", "path": "src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java", "license": "mit", "size": 111931 }
[ "com.google.gson.annotations.SerializedName", "com.stripe.net.ApiRequestParams", "java.util.Map" ]
import com.google.gson.annotations.SerializedName; import com.stripe.net.ApiRequestParams; import java.util.Map;
import com.google.gson.annotations.*; import com.stripe.net.*; import java.util.*;
[ "com.google.gson", "com.stripe.net", "java.util" ]
com.google.gson; com.stripe.net; java.util;
2,310,560
public void runAlgorithm(String input, String output, double minsupp) throws FileNotFoundException, IOException { // record the start time startTimestamp = System.currentTimeMillis(); // reinitialize the number of itemsets found to 0 itemsetCount =0; // Prepare the output file writer = new Buffered...
void function(String input, String output, double minsupp) throws FileNotFoundException, IOException { startTimestamp = System.currentTimeMillis(); itemsetCount =0; writer = new BufferedWriter(new FileWriter(output)); final Map<String, Integer> mapSupport = new HashMap<String, Integer>(); scanDatabaseToDetermineFrequen...
/** * Run the algorithm. * @param input the file path of an input transaction database. * @param output the path of the desired output file * @param minsupp minimum support threshold as a percentage (double) * @throws IOException exception if error while writing the file */
Run the algorithm
runAlgorithm
{ "repo_name": "pommedeterresautee/spmf", "path": "ca/pfv/spmf/algorithms/frequentpatterns/fpgrowth_with_strings/AlgoFPGrowth_Strings.java", "license": "gpl-3.0", "size": 14587 }
[ "java.io.BufferedReader", "java.io.BufferedWriter", "java.io.FileNotFoundException", "java.io.FileReader", "java.io.FileWriter", "java.io.IOException", "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map" ]
import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.FileWriter; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
277,603
public void setAndSaveDistributionDirectory(Directory distributionDirectory) throws ConsoleException { m_distributionDirectory.set(distributionDirectory); m_distributionDirectory.save(); }
void function(Directory distributionDirectory) throws ConsoleException { m_distributionDirectory.set(distributionDirectory); m_distributionDirectory.save(); }
/** * Set and save the script distribution directory. * * @param distributionDirectory The directory. * @throws ConsoleException If the property could not be saved. */
Set and save the script distribution directory
setAndSaveDistributionDirectory
{ "repo_name": "slantview/DrupalLoadTest", "path": "lib/grinder/grinder-core/src/main/java/net/grinder/console/model/ConsoleProperties.java", "license": "gpl-2.0", "size": 32341 }
[ "net.grinder.console.common.ConsoleException", "net.grinder.util.Directory" ]
import net.grinder.console.common.ConsoleException; import net.grinder.util.Directory;
import net.grinder.console.common.*; import net.grinder.util.*;
[ "net.grinder.console", "net.grinder.util" ]
net.grinder.console; net.grinder.util;
1,032,543