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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ModelAndView prepareCmsPage(CmsPage page, Map<String, Object> context) throws PageNotFoundException; | ModelAndView prepareCmsPage(CmsPage page, Map<String, Object> context) throws PageNotFoundException; | /**
* Prepares a {@link ModelAndView} instance for the {@link CmsPage}. The context
* will be merged in the context generated based on the {@link CmsPage}.
*
* @param page the {@link CmsPage} to be used for rendering
* @param context custom variables for rendering
* @return the prepared {@link ModelAndV... | Prepares a <code>ModelAndView</code> instance for the <code>CmsPage</code>. The context will be merged in the context generated based on the <code>CmsPage</code> | prepareCmsPage | {
"repo_name": "mojo2012/spot-framework",
"path": "spot-cms-base/src/main/java/io/spotnext/cms/strategy/TemplateRenderStrategy.java",
"license": "apache-2.0",
"size": 1709
} | [
"io.spotnext.cms.exception.PageNotFoundException",
"io.spotnext.core.infrastructure.http.ModelAndView",
"io.spotnext.itemtype.cms.CmsPage",
"java.util.Map"
] | import io.spotnext.cms.exception.PageNotFoundException; import io.spotnext.core.infrastructure.http.ModelAndView; import io.spotnext.itemtype.cms.CmsPage; import java.util.Map; | import io.spotnext.cms.exception.*; import io.spotnext.core.infrastructure.http.*; import io.spotnext.itemtype.cms.*; import java.util.*; | [
"io.spotnext.cms",
"io.spotnext.core",
"io.spotnext.itemtype",
"java.util"
] | io.spotnext.cms; io.spotnext.core; io.spotnext.itemtype; java.util; | 1,359,511 |
@Override
public void convertInput()
{
IConverter<N> converter = getConverter(getNumberType());
try
{
setConvertedInput(converter.convertToObject(getInput(), Locale.ENGLISH));
}
catch (ConversionException e)
{
error(newValidationError(e));
}
} | void function() { IConverter<N> converter = getConverter(getNumberType()); try { setConvertedInput(converter.convertToObject(getInput(), Locale.ENGLISH)); } catch (ConversionException e) { error(newValidationError(e)); } } | /**
* Always use {@link Locale#ENGLISH} to parse the input.
*/ | Always use <code>Locale#ENGLISH</code> to parse the input | convertInput | {
"repo_name": "topicusonderwijs/wicket",
"path": "wicket-core/src/main/java/org/apache/wicket/markup/html/form/NumberTextField.java",
"license": "apache-2.0",
"size": 5849
} | [
"java.util.Locale",
"org.apache.wicket.util.convert.ConversionException",
"org.apache.wicket.util.convert.IConverter"
] | import java.util.Locale; import org.apache.wicket.util.convert.ConversionException; import org.apache.wicket.util.convert.IConverter; | import java.util.*; import org.apache.wicket.util.convert.*; | [
"java.util",
"org.apache.wicket"
] | java.util; org.apache.wicket; | 2,569,295 |
@Profile(level = CORE)
@UML(identifier = "pointOfContact", obligation = OPTIONAL, specification = ISO_19115)
Collection<? extends ResponsibleParty> getPointOfContacts(); | @Profile(level = CORE) @UML(identifier = STR, obligation = OPTIONAL, specification = ISO_19115) Collection<? extends ResponsibleParty> getPointOfContacts(); | /**
* Identification of, and means of communication with, person(s) and organizations(s) associated
* with the resource(s).
*
* @return Means of communication with person(s) and organizations(s) associated with the
* resource(s).
*/ | Identification of, and means of communication with, person(s) and organizations(s) associated with the resource(s) | getPointOfContacts | {
"repo_name": "geotools/geotools",
"path": "modules/library/opengis/src/main/java/org/opengis/metadata/identification/Identification.java",
"license": "lgpl-2.1",
"size": 5556
} | [
"java.util.Collection",
"org.opengis.annotation.Profile",
"org.opengis.metadata.citation.ResponsibleParty"
] | import java.util.Collection; import org.opengis.annotation.Profile; import org.opengis.metadata.citation.ResponsibleParty; | import java.util.*; import org.opengis.annotation.*; import org.opengis.metadata.citation.*; | [
"java.util",
"org.opengis.annotation",
"org.opengis.metadata"
] | java.util; org.opengis.annotation; org.opengis.metadata; | 2,356,775 |
public Itemset cloneItemSetMinusItems(Map<Integer, Set<Integer>> mapSequenceID, double relativeMinsup) {
Itemset itemset = new Itemset();
for(Integer item : items){
if(mapSequenceID.get(item).size() >= relativeMinsup){
itemset.addItem(item);
}
}
return itemset;
}
| Itemset function(Map<Integer, Set<Integer>> mapSequenceID, double relativeMinsup) { Itemset itemset = new Itemset(); for(Integer item : items){ if(mapSequenceID.get(item).size() >= relativeMinsup){ itemset.addItem(item); } } return itemset; } | /**
* This methods makes a copy of this itemset but without
* items having a support lower than minsup
* @param mapSequenceID a map indicating the support of each item. key: item value: support
* @param relativeMinsup the support expressed as a percentage
* @return the new itemset
*/ | This methods makes a copy of this itemset but without items having a support lower than minsup | cloneItemSetMinusItems | {
"repo_name": "YinYanfei/CadalWorkspace",
"path": "CadalRec/src/cn/cadal/rec/dm/patterns/itemset_list_integers_without_support/Itemset.java",
"license": "gpl-3.0",
"size": 4433
} | [
"java.util.Map",
"java.util.Set"
] | import java.util.Map; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,222,227 |
public final MetaProperty<Double> spread() {
return _spread;
} | final MetaProperty<Double> function() { return _spread; } | /**
* The meta-property for the {@code spread} property.
* @return the meta-property, not null
*/ | The meta-property for the spread property | spread | {
"repo_name": "jeorme/OG-Platform",
"path": "projects/OG-FinancialTypes/src/main/java/com/opengamma/financial/security/cds/CDSSecurity.java",
"license": "apache-2.0",
"size": 35121
} | [
"org.joda.beans.MetaProperty"
] | import org.joda.beans.MetaProperty; | import org.joda.beans.*; | [
"org.joda.beans"
] | org.joda.beans; | 1,568,801 |
private Flag checkFlagNoHandles(byte expFlag) {
byte flag = in.readByte();
if (flag == expFlag)
return Flag.NORMAL;
else if (flag == NULL)
return Flag.NULL;
int pos = BinaryUtils.positionForHandle(in);
throw new BinaryObjectException("Unexpected fla... | Flag function(byte expFlag) { byte flag = in.readByte(); if (flag == expFlag) return Flag.NORMAL; else if (flag == NULL) return Flag.NULL; int pos = BinaryUtils.positionForHandle(in); throw new BinaryObjectException(STR + pos + STR + expFlag + STR + flag + ']'); } | /**
* Ensure that type flag is either null or contains expected value.
*
* @param expFlag Expected value.
* @return Flag mode.
* @throws BinaryObjectException If flag is neither null, nor expected.
*/ | Ensure that type flag is either null or contains expected value | checkFlagNoHandles | {
"repo_name": "agura/incubator-ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryReaderExImpl.java",
"license": "apache-2.0",
"size": 62687
} | [
"org.apache.ignite.binary.BinaryObjectException"
] | import org.apache.ignite.binary.BinaryObjectException; | import org.apache.ignite.binary.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,219,810 |
@Extension @Symbol("myView")
public static final class DescriptorImpl extends ViewDescriptor {
@Override
public boolean isInstantiable() {
return Jenkins.getInstance().isUseSecurity();
} | @Extension @Symbol(STR) static final class DescriptorImpl extends ViewDescriptor { public boolean function() { return Jenkins.getInstance().isUseSecurity(); } | /**
* If the security is not enabled, there's no point in having
* this type of views.
*/ | If the security is not enabled, there's no point in having this type of views | isInstantiable | {
"repo_name": "andresrc/jenkins",
"path": "core/src/main/java/hudson/model/MyView.java",
"license": "mit",
"size": 3728
} | [
"org.jenkinsci.Symbol"
] | import org.jenkinsci.Symbol; | import org.jenkinsci.*; | [
"org.jenkinsci"
] | org.jenkinsci; | 76,273 |
protected void createWork() {
// Create a scanner over the replication table's order entries
Scanner s;
try {
s = ReplicationTable.getScanner(client);
} catch (ReplicationTableOfflineException e) {
// no work to do; replication is off
return;
}
OrderSection.limit(s);
Te... | void function() { Scanner s; try { s = ReplicationTable.getScanner(client); } catch (ReplicationTableOfflineException e) { return; } OrderSection.limit(s); Text buffer = new Text(); for (Entry<Key,Value> orderEntry : s) { if (getQueueSize() > maxQueueSize) { log.warn(STR + STR, maxQueueSize); return; } String file = Or... | /**
* Scan over the {@link WorkSection} of the replication table adding work for entries that have
* data to replicate and have not already been queued.
*/ | Scan over the <code>WorkSection</code> of the replication table adding work for entries that have data to replicate and have not already been queued | createWork | {
"repo_name": "lstav/accumulo",
"path": "server/master/src/main/java/org/apache/accumulo/master/replication/DistributedWorkQueueWorkAssigner.java",
"license": "apache-2.0",
"size": 9428
} | [
"com.google.protobuf.InvalidProtocolBufferException",
"java.util.Collection",
"java.util.Map",
"java.util.concurrent.TimeUnit",
"org.apache.accumulo.core.client.Scanner",
"org.apache.accumulo.core.data.Key",
"org.apache.accumulo.core.data.Range",
"org.apache.accumulo.core.data.Value",
"org.apache.ac... | import com.google.protobuf.InvalidProtocolBufferException; import java.util.Collection; import java.util.Map; import java.util.concurrent.TimeUnit; import org.apache.accumulo.core.client.Scanner; import org.apache.accumulo.core.data.Key; import org.apache.accumulo.core.data.Range; import org.apache.accumulo.core.data.V... | import com.google.protobuf.*; import java.util.*; import java.util.concurrent.*; import org.apache.accumulo.core.client.*; import org.apache.accumulo.core.data.*; import org.apache.accumulo.core.protobuf.*; import org.apache.accumulo.core.replication.*; import org.apache.accumulo.fate.util.*; import org.apache.accumulo... | [
"com.google.protobuf",
"java.util",
"org.apache.accumulo",
"org.apache.hadoop"
] | com.google.protobuf; java.util; org.apache.accumulo; org.apache.hadoop; | 775,292 |
public YangString getServiceValue() throws JNCException {
return (YangString)getValue("service");
} | YangString function() throws JNCException { return (YangString)getValue(STR); } | /**
* Gets the value for child leaf "service".
* @return The value of the leaf.
*/ | Gets the value for child leaf "service" | getServiceValue | {
"repo_name": "jnpr-shinma/yangfile",
"path": "hitel/src/hctaEpc/mmeSgsn/statistics/gtpv2/Mobility.java",
"license": "apache-2.0",
"size": 11351
} | [
"com.tailf.jnc.YangString"
] | import com.tailf.jnc.YangString; | import com.tailf.jnc.*; | [
"com.tailf.jnc"
] | com.tailf.jnc; | 1,163,256 |
private void sendValuesToScatteredJobs(JobRecord job, VariableRecord variable, InputUpdateEvent event) throws EventHandlerException {
List<LinkRecord> links = linkService.findBySourceAndDestinationType(job.getId(), event.getPortId(), LinkPortType.INPUT, event.getContextId());
List<Event> events = new ArrayLi... | void function(JobRecord job, VariableRecord variable, InputUpdateEvent event) throws EventHandlerException { List<LinkRecord> links = linkService.findBySourceAndDestinationType(job.getId(), event.getPortId(), LinkPortType.INPUT, event.getContextId()); List<Event> events = new ArrayList<>(); for (LinkRecord link : links... | /**
* Send events from scatter wrapper to scattered jobs
*/ | Send events from scatter wrapper to scattered jobs | sendValuesToScatteredJobs | {
"repo_name": "markosbg/markoBunny",
"path": "rabix-engine/src/main/java/org/rabix/engine/processor/handler/impl/InputEventHandler.java",
"license": "apache-2.0",
"size": 5146
} | [
"java.util.ArrayList",
"java.util.List",
"org.rabix.bindings.model.dag.DAGLinkPort",
"org.rabix.engine.event.Event",
"org.rabix.engine.event.impl.InputUpdateEvent",
"org.rabix.engine.model.JobRecord",
"org.rabix.engine.model.LinkRecord",
"org.rabix.engine.model.VariableRecord",
"org.rabix.engine.pro... | import java.util.ArrayList; import java.util.List; import org.rabix.bindings.model.dag.DAGLinkPort; import org.rabix.engine.event.Event; import org.rabix.engine.event.impl.InputUpdateEvent; import org.rabix.engine.model.JobRecord; import org.rabix.engine.model.LinkRecord; import org.rabix.engine.model.VariableRecord; i... | import java.util.*; import org.rabix.bindings.model.dag.*; import org.rabix.engine.event.*; import org.rabix.engine.event.impl.*; import org.rabix.engine.model.*; import org.rabix.engine.processor.handler.*; | [
"java.util",
"org.rabix.bindings",
"org.rabix.engine"
] | java.util; org.rabix.bindings; org.rabix.engine; | 1,918,093 |
private boolean forceDropNone(DropTargetEvent event) {
if (LocalSelectionTransfer.getTransfer().isSupportedType(event.currentDataType)) {
IScriptConsoleCodeGenerator codeGenerator = getSafeGenerator();
if (codeGenerator == null || codeGenerator.hasPyCo... | boolean function(DropTargetEvent event) { if (LocalSelectionTransfer.getTransfer().isSupportedType(event.currentDataType)) { IScriptConsoleCodeGenerator codeGenerator = getSafeGenerator(); if (codeGenerator == null codeGenerator.hasPyCode() == false) { return true; } } return false; } | /**
* We cancel the drop if we don't have anything to drop
*/ | We cancel the drop if we don't have anything to drop | forceDropNone | {
"repo_name": "fabioz/Pydev",
"path": "plugins/org.python.pydev.shared_interactive_console/src/org/python/pydev/shared_interactive_console/console/ui/internal/ScriptConsoleViewer.java",
"license": "epl-1.0",
"size": 36206
} | [
"org.eclipse.jface.util.LocalSelectionTransfer",
"org.eclipse.swt.dnd.DropTargetEvent",
"org.python.pydev.shared_interactive_console.console.codegen.IScriptConsoleCodeGenerator"
] | import org.eclipse.jface.util.LocalSelectionTransfer; import org.eclipse.swt.dnd.DropTargetEvent; import org.python.pydev.shared_interactive_console.console.codegen.IScriptConsoleCodeGenerator; | import org.eclipse.jface.util.*; import org.eclipse.swt.dnd.*; import org.python.pydev.shared_interactive_console.console.codegen.*; | [
"org.eclipse.jface",
"org.eclipse.swt",
"org.python.pydev"
] | org.eclipse.jface; org.eclipse.swt; org.python.pydev; | 549,247 |
public List<Object> getResult() {
return result;
}
| List<Object> function() { return result; } | /**
* Returns result.
* @return result
*/ | Returns result | getResult | {
"repo_name": "kuangrewawa/OnosFw",
"path": "ovsdb/rfc/src/main/java/org/onosproject/ovsdb/rfc/jsonrpc/JsonRpcResponse.java",
"license": "apache-2.0",
"size": 3529
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,785,707 |
public void undeleteObject( RepositoryElementMetaInterface repositoryObject ) throws KettleException; | void function( RepositoryElementMetaInterface repositoryObject ) throws KettleException; | /**
* Removes he deleted flag from a repository element in the repository. If it wasn't deleted, it remains untouched.
*
* @param element
* the repository element to restore
* @throws KettleException
* get throws in case something goes horribly wrong.
*/ | Removes he deleted flag from a repository element in the repository. If it wasn't deleted, it remains untouched | undeleteObject | {
"repo_name": "a186/pentaho-kettle",
"path": "engine/src/org/pentaho/di/repository/Repository.java",
"license": "apache-2.0",
"size": 28552
} | [
"org.pentaho.di.core.exception.KettleException"
] | import org.pentaho.di.core.exception.KettleException; | import org.pentaho.di.core.exception.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 1,566,151 |
public static Set<ObjectName> ensureOnly(String... expectedNames)
throws IOException, InterruptedException
{
LOG.info("ensureOnly:" + Arrays.toString(expectedNames));
Set<ObjectName> beans = ensureAll(expectedNames);
for (ObjectName bean : beans) {
LOG.info("unexpecte... | static Set<ObjectName> function(String... expectedNames) throws IOException, InterruptedException { LOG.info(STR + Arrays.toString(expectedNames)); Set<ObjectName> beans = ensureAll(expectedNames); for (ObjectName bean : beans) { LOG.info(STR + bean.toString()); } Assert.assertEquals(0, beans.size()); return beans; } | /**
* Ensure that only the specified names are registered.
* Note that these are components of the name, and in particular
* order matters - you want the more specific name (leafs) specified
* before their parent(s) (since names are hierarchical)
* @param expectedNames
* @return
* @th... | Ensure that only the specified names are registered. Note that these are components of the name, and in particular order matters - you want the more specific name (leafs) specified before their parent(s) (since names are hierarchical) | ensureOnly | {
"repo_name": "anchel/zookeeper",
"path": "src/java/test/org/apache/zookeeper/test/JMXEnv.java",
"license": "apache-2.0",
"size": 11352
} | [
"java.io.IOException",
"java.util.Arrays",
"java.util.Set",
"javax.management.ObjectName",
"org.junit.Assert"
] | import java.io.IOException; import java.util.Arrays; import java.util.Set; import javax.management.ObjectName; import org.junit.Assert; | import java.io.*; import java.util.*; import javax.management.*; import org.junit.*; | [
"java.io",
"java.util",
"javax.management",
"org.junit"
] | java.io; java.util; javax.management; org.junit; | 15,715 |
@Override
public RepositoryGroup putRepositoryGroup( RepositoryGroupConfiguration repositoryGroupConfiguration, Configuration configuration ) throws RepositoryException
{
rwLock.writeLock( ).lock( );
try
{
return groupHandler.put( repositoryGroupConfiguration, configurati... | RepositoryGroup function( RepositoryGroupConfiguration repositoryGroupConfiguration, Configuration configuration ) throws RepositoryException { rwLock.writeLock( ).lock( ); try { return groupHandler.put( repositoryGroupConfiguration, configuration ); } finally { rwLock.writeLock( ).unlock( ); } } | /**
* Adds a new repository group or updates the repository group with the same id. The given configuration object is updated, but
* the configuration is not saved.
*
* @param repositoryGroupConfiguration The configuration of the new or changed repository group.
* @param configuration ... | Adds a new repository group or updates the repository group with the same id. The given configuration object is updated, but the configuration is not saved | putRepositoryGroup | {
"repo_name": "apache/archiva",
"path": "archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/archiva/repository/base/ArchivaRepositoryRegistry.java",
"license": "apache-2.0",
"size": 42193
} | [
"org.apache.archiva.configuration.model.Configuration",
"org.apache.archiva.configuration.model.RepositoryGroupConfiguration",
"org.apache.archiva.repository.RepositoryException",
"org.apache.archiva.repository.RepositoryGroup"
] | import org.apache.archiva.configuration.model.Configuration; import org.apache.archiva.configuration.model.RepositoryGroupConfiguration; import org.apache.archiva.repository.RepositoryException; import org.apache.archiva.repository.RepositoryGroup; | import org.apache.archiva.configuration.model.*; import org.apache.archiva.repository.*; | [
"org.apache.archiva"
] | org.apache.archiva; | 376,304 |
public Version getCreationVersion() {
return indexCreatedVersion;
} | Version function() { return indexCreatedVersion; } | /**
* Return the {@link Version} on which this index has been created. This
* information is typically useful for backward compatibility.
*/ | Return the <code>Version</code> on which this index has been created. This information is typically useful for backward compatibility | getCreationVersion | {
"repo_name": "alexshadow007/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/cluster/metadata/IndexMetaData.java",
"license": "apache-2.0",
"size": 59687
} | [
"org.elasticsearch.Version"
] | import org.elasticsearch.Version; | import org.elasticsearch.*; | [
"org.elasticsearch"
] | org.elasticsearch; | 2,297,039 |
public String getAddColumnSQL( Column col )
{
//noinspection StringBufferReplaceableByString
StringBuilder sb = new StringBuilder() ;
sb.append( SQL_ALTER_TABLE ).append( this.getTableName() )
.append( SQL_ADD_COLUMN )
.append( col.getColumnCreationClause() )
;
Log.d( LOG_TAG, sb.toSt... | String function( Column col ) { StringBuilder sb = new StringBuilder() ; sb.append( SQL_ALTER_TABLE ).append( this.getTableName() ) .append( SQL_ADD_COLUMN ) .append( col.getColumnCreationClause() ) ; Log.d( LOG_TAG, sb.toString() ) ; return sb.toString() ; } | /**
* Generates the SQL statement which will add the specified column to
* this table.
* @param col the reflection of the column to be added
* @return an SQL statement which adds the column to this table
*/ | Generates the SQL statement which will add the specified column to this table | getAddColumnSQL | {
"repo_name": "zerobandwidth-net/android",
"path": "libZeroAndroid/src/main/java/net/zer0bandwidth/android/lib/database/sqlitehouse/SQLightable.java",
"license": "mit",
"size": 37470
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 2,011,942 |
public boolean isCellEditable(FilterTreeNode node) {
// check if node is editable
if (!node.isEditable()) {
return false;
}
// check if there is an editor installed
return editors.get(node.getClass()) != null;
} | boolean function(FilterTreeNode node) { if (!node.isEditable()) { return false; } return editors.get(node.getClass()) != null; } | /**
* check if the given node is editable by this editor
*
* @param node
* @return true if the cell is editable
*/ | check if the given node is editable by this editor | isCellEditable | {
"repo_name": "HerbertJordan/JimCat",
"path": "src/org/jimcat/gui/smartlisteditor/FilterTreeEditor.java",
"license": "gpl-2.0",
"size": 11400
} | [
"org.jimcat.gui.smartlisteditor.model.FilterTreeNode"
] | import org.jimcat.gui.smartlisteditor.model.FilterTreeNode; | import org.jimcat.gui.smartlisteditor.model.*; | [
"org.jimcat.gui"
] | org.jimcat.gui; | 2,344,966 |
public Builder addNonPropagatedHeaderSearchPaths(String root, Iterable<PathFragment> paths) {
this.nonPropagatedHeaderSearchPaths.addAll(rootEach(root, paths));
return this;
} | Builder function(String root, Iterable<PathFragment> paths) { this.nonPropagatedHeaderSearchPaths.addAll(rootEach(root, paths)); return this; } | /**
* Adds non-propagated header search paths for this target. Each relative path is interpreted
* relative to the given root, such as {@code "$(WORKSPACE_ROOT)"}.
*/ | Adds non-propagated header search paths for this target. Each relative path is interpreted relative to the given root, such as "$(WORKSPACE_ROOT)" | addNonPropagatedHeaderSearchPaths | {
"repo_name": "kamalmarhubi/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/objc/XcodeProvider.java",
"license": "apache-2.0",
"size": 31594
} | [
"com.google.devtools.build.lib.vfs.PathFragment"
] | import com.google.devtools.build.lib.vfs.PathFragment; | import com.google.devtools.build.lib.vfs.*; | [
"com.google.devtools"
] | com.google.devtools; | 2,519,492 |
public void addTab(String label, String action, boolean disabled,
boolean enabled, int nbLines) {
Vector<Collection<Tab>> tabLines = getTabLines();
Collection<Tab> tabs = null;
if (nbLines <= 0) {
tabs = tabLines.get(0);
} else {
tabs = tabLines.get(nbLines - 1);
}
tabs.add(... | void function(String label, String action, boolean disabled, boolean enabled, int nbLines) { Vector<Collection<Tab>> tabLines = getTabLines(); Collection<Tab> tabs = null; if (nbLines <= 0) { tabs = tabLines.get(0); } else { tabs = tabLines.get(nbLines - 1); } tabs.add(new Tab(label, action, disabled, enabled)); } | /**
* Method declaration
* @param label
* @param action
* @param disabled
* @param enabled
* @param nbLines
* @see
*/ | Method declaration | addTab | {
"repo_name": "ebonnet/Silverpeas-Core",
"path": "core-web/src/main/java/org/silverpeas/core/web/util/viewgenerator/html/tabs/AbstractTabbedPane.java",
"license": "agpl-3.0",
"size": 4984
} | [
"java.util.Collection",
"java.util.Vector"
] | import java.util.Collection; import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 2,651,796 |
// Have the frame call exitApp() whenever it closes
frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
frame.addWindowListener(new WindowAdapter()
{
@Override
public void windowClosing(final WindowEvent e)
{
exitApp();
}
});
// Set up t... | frame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); frame.addWindowListener(new WindowAdapter() { void function(final WindowEvent e) { exitApp(); } }); frame.setPreferredSize(windowState.getSize()); frame.setSize(windowState.getSize()); if (windowState.shouldCenter()) { frame.setLocationRelativeTo(null); } else... | /**
* Close the windows.
*
* @param e the event
*/ | Close the windows | windowClosing | {
"repo_name": "argonium/diesel",
"path": "src/io/miti/diesel/app/DieselConsole.java",
"license": "mit",
"size": 5299
} | [
"java.awt.event.WindowAdapter",
"java.awt.event.WindowEvent",
"javax.swing.JFrame"
] | import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JFrame; | import java.awt.event.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 2,687,983 |
@Path("admin-events")
@DELETE
public void clearAdminEvents() {
auth.init(RealmAuth.Resource.EVENTS).requireManage();
EventStoreProvider eventStore = session.getProvider(EventStoreProvider.class);
eventStore.clearAdmin(realm.getId());
} | @Path(STR) void function() { auth.init(RealmAuth.Resource.EVENTS).requireManage(); EventStoreProvider eventStore = session.getProvider(EventStoreProvider.class); eventStore.clearAdmin(realm.getId()); } | /**
* Delete all admin events
*
*/ | Delete all admin events | clearAdminEvents | {
"repo_name": "VihreatDeGrona/keycloak",
"path": "services/src/main/java/org/keycloak/services/resources/admin/RealmAdminResource.java",
"license": "apache-2.0",
"size": 20988
} | [
"javax.ws.rs.Path",
"org.keycloak.events.EventStoreProvider"
] | import javax.ws.rs.Path; import org.keycloak.events.EventStoreProvider; | import javax.ws.rs.*; import org.keycloak.events.*; | [
"javax.ws",
"org.keycloak.events"
] | javax.ws; org.keycloak.events; | 2,089,348 |
protected void applyToXYPlot(XYPlot plot) {
plot.setAxisOffset(this.axisOffset);
plot.setDomainZeroBaselinePaint(this.baselinePaint);
plot.setRangeZeroBaselinePaint(this.baselinePaint);
plot.setDomainGridlinePaint(this.domainGridlinePaint);
plot.setRangeGridlinePaint(thi... | void function(XYPlot plot) { plot.setAxisOffset(this.axisOffset); plot.setDomainZeroBaselinePaint(this.baselinePaint); plot.setRangeZeroBaselinePaint(this.baselinePaint); plot.setDomainGridlinePaint(this.domainGridlinePaint); plot.setRangeGridlinePaint(this.rangeGridlinePaint); plot.setDomainCrosshairPaint(this.crossha... | /**
* Applies the attributes of this theme to a {@link XYPlot}.
*
* @param plot the plot (<code>null</code> not permitted).
*/ | Applies the attributes of this theme to a <code>XYPlot</code> | applyToXYPlot | {
"repo_name": "apetresc/JFreeChart",
"path": "src/main/java/org/jfree/chart/StandardChartTheme.java",
"license": "lgpl-2.1",
"size": 61509
} | [
"java.util.Iterator",
"org.jfree.chart.annotations.XYAnnotation",
"org.jfree.chart.axis.ValueAxis",
"org.jfree.chart.plot.CombinedDomainXYPlot",
"org.jfree.chart.plot.CombinedRangeXYPlot",
"org.jfree.chart.plot.XYPlot",
"org.jfree.chart.renderer.xy.XYItemRenderer"
] | import java.util.Iterator; import org.jfree.chart.annotations.XYAnnotation; import org.jfree.chart.axis.ValueAxis; import org.jfree.chart.plot.CombinedDomainXYPlot; import org.jfree.chart.plot.CombinedRangeXYPlot; import org.jfree.chart.plot.XYPlot; import org.jfree.chart.renderer.xy.XYItemRenderer; | import java.util.*; import org.jfree.chart.annotations.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*; import org.jfree.chart.renderer.xy.*; | [
"java.util",
"org.jfree.chart"
] | java.util; org.jfree.chart; | 1,007,640 |
protected TChildIssueType copyInto(TChildIssueType copyObj, Connection con) throws TorqueException
{
return copyInto(copyObj, true, con);
} | TChildIssueType function(TChildIssueType copyObj, Connection con) throws TorqueException { return copyInto(copyObj, true, con); } | /**
* Fills the copyObj with the contents of this object using connection.
* The associated objects are also copied and treated as new objects.
*
* @param copyObj the object to fill.
* @param con the database connection to read associated objects.
*/ | Fills the copyObj with the contents of this object using connection. The associated objects are also copied and treated as new objects | copyInto | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/BaseTChildIssueType.java",
"license": "gpl-3.0",
"size": 28961
} | [
"java.sql.Connection",
"org.apache.torque.TorqueException"
] | import java.sql.Connection; import org.apache.torque.TorqueException; | import java.sql.*; import org.apache.torque.*; | [
"java.sql",
"org.apache.torque"
] | java.sql; org.apache.torque; | 2,540,891 |
protected ResourceLocation getEntityTexture(EntityMinecart entity)
{
return minecartTextures;
} | ResourceLocation function(EntityMinecart entity) { return minecartTextures; } | /**
* Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
*/ | Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture | getEntityTexture | {
"repo_name": "trixmot/mod1",
"path": "build/tmp/recompileMc/sources/net/minecraft/client/renderer/entity/RenderMinecart.java",
"license": "lgpl-2.1",
"size": 6446
} | [
"net.minecraft.entity.item.EntityMinecart",
"net.minecraft.util.ResourceLocation"
] | import net.minecraft.entity.item.EntityMinecart; import net.minecraft.util.ResourceLocation; | import net.minecraft.entity.item.*; import net.minecraft.util.*; | [
"net.minecraft.entity",
"net.minecraft.util"
] | net.minecraft.entity; net.minecraft.util; | 205,149 |
private void setupDataTestDirOnTestFS() throws IOException {
if (dataTestDirOnTestFS != null) {
LOG.warn("Data test on test fs dir already setup in "
+ dataTestDirOnTestFS.toString());
return;
}
dataTestDirOnTestFS = getNewDataTestDirOnTestFS();
} | void function() throws IOException { if (dataTestDirOnTestFS != null) { LOG.warn(STR + dataTestDirOnTestFS.toString()); return; } dataTestDirOnTestFS = getNewDataTestDirOnTestFS(); } | /**
* Sets up a path in test filesystem to be used by tests.
* Creates a new directory if not already setup.
*/ | Sets up a path in test filesystem to be used by tests. Creates a new directory if not already setup | setupDataTestDirOnTestFS | {
"repo_name": "SeekerResource/hbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtility.java",
"license": "apache-2.0",
"size": 145665
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 16,692 |
Object convertVariableObject(String pVariableName, XPathResult pXPathResult, boolean pIsXMLBind); | Object convertVariableObject(String pVariableName, XPathResult pXPathResult, boolean pIsXMLBind); | /**
* Converts the given XPathResult into an object which can be used in a template. May return null if the XPathResult
* represents a null value and the template engine supports null values.
* @param pVariableName Name of variable being converted, for debug purposes.
* @param pXPathResult Result to convert... | Converts the given XPathResult into an object which can be used in a template. May return null if the XPathResult represents a null value and the template engine supports null values | convertVariableObject | {
"repo_name": "Fivium/FOXopen",
"path": "src/main/java/net/foxopen/fox/database/sql/bind/template/TemplateVariableConverter.java",
"license": "gpl-3.0",
"size": 976
} | [
"net.foxopen.fox.dom.xpath.XPathResult"
] | import net.foxopen.fox.dom.xpath.XPathResult; | import net.foxopen.fox.dom.xpath.*; | [
"net.foxopen.fox"
] | net.foxopen.fox; | 228,084 |
public List getAddedCollectionItems() {
return addedCollectionItems;
}
| List function() { return addedCollectionItems; } | /**
* The {@code List} that contains all newly added items for the collections on the model
*
* <p>
* This list contains the new items for all the collections on the model.
* </p>
*
* @return List of the newly added item lists
*/ | The List that contains all newly added items for the collections on the model This list contains the new items for all the collections on the model. | getAddedCollectionItems | {
"repo_name": "ricepanda/rice-git3",
"path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/web/form/UifFormBase.java",
"license": "apache-2.0",
"size": 45970
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,880,506 |
@FIXVersion(introduced="5.0SP1")
@TagNumRef(tagNum=TagNum.MaturityRuleID)
public String getMaturityRuleID() {
return maturityRuleID;
} | @FIXVersion(introduced=STR) @TagNumRef(tagNum=TagNum.MaturityRuleID) String function() { return maturityRuleID; } | /**
* Message field getter.
* @return field value
*/ | Message field getter | getMaturityRuleID | {
"repo_name": "marvisan/HadesFIX",
"path": "Model/src/main/java/net/hades/fix/message/group/MaturityRuleGroup.java",
"license": "gpl-3.0",
"size": 12055
} | [
"net.hades.fix.message.anno.FIXVersion",
"net.hades.fix.message.anno.TagNumRef",
"net.hades.fix.message.type.TagNum"
] | import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum; | import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*; | [
"net.hades.fix"
] | net.hades.fix; | 1,002,294 |
public void testGetSelect0() throws Exception {
System.out.println("getSelect0");
BitMap B = new BitMap(2048);
ArrayList<Long> test = new ArrayList<Long>();
for(int i = 0; i < 2048; i++) {
if((int)(Math.random() * 2) == 1) {
B.setBit(i);
} els... | void function() throws Exception { System.out.println(STR); BitMap B = new BitMap(2048); ArrayList<Long> test = new ArrayList<Long>(); for(int i = 0; i < 2048; i++) { if((int)(Math.random() * 2) == 1) { B.setBit(i); } else { test.add(Long.valueOf(i)); } } Dictionary D = new Dictionary(B); ByteBuffer dBuf = D.getByteBuf... | /**
* Test method: getSelect0(ByteBuffer buf, int startPos, int i)
*
* @throws Exception
*/ | Test method: getSelect0(ByteBuffer buf, int startPos, int i) | testGetSelect0 | {
"repo_name": "SwathiMystery/succinct",
"path": "spark/src/test/java/edu/berkeley/cs/succinct/util/streams/DictionaryOpsTest.java",
"license": "apache-2.0",
"size": 3973
} | [
"edu.berkeley.cs.succinct.bitmap.BitMap",
"edu.berkeley.cs.succinct.dictionary.Dictionary",
"java.nio.ByteBuffer",
"java.util.ArrayList",
"org.apache.hadoop.fs.FSDataInputStream"
] | import edu.berkeley.cs.succinct.bitmap.BitMap; import edu.berkeley.cs.succinct.dictionary.Dictionary; import java.nio.ByteBuffer; import java.util.ArrayList; import org.apache.hadoop.fs.FSDataInputStream; | import edu.berkeley.cs.succinct.bitmap.*; import edu.berkeley.cs.succinct.dictionary.*; import java.nio.*; import java.util.*; import org.apache.hadoop.fs.*; | [
"edu.berkeley.cs",
"java.nio",
"java.util",
"org.apache.hadoop"
] | edu.berkeley.cs; java.nio; java.util; org.apache.hadoop; | 2,228,909 |
public RowProducer addRowProducer( String stepname, int copynr ) throws KettleException {
StepInterface stepInterface = getStepInterface( stepname, copynr );
if ( stepInterface == null ) {
throw new KettleException( "Unable to find thread with name " + stepname + " and copy number " + copynr );
}
... | RowProducer function( String stepname, int copynr ) throws KettleException { StepInterface stepInterface = getStepInterface( stepname, copynr ); if ( stepInterface == null ) { throw new KettleException( STR + stepname + STR + copynr ); } RowSet rowSet; switch ( transMeta.getTransformationType() ) { case Normal: rowSet ... | /**
* This adds a row producer to the transformation that just got set up. It is preferable to run this BEFORE execute()
* but after prepareExecution()
*
* @param stepname The step to produce rows for
* @param copynr The copynr of the step to produce row for (normally 0 unless you have multiple copies ... | This adds a row producer to the transformation that just got set up. It is preferable to run this BEFORE execute() but after prepareExecution() | addRowProducer | {
"repo_name": "flbrino/pentaho-kettle",
"path": "engine/src/main/java/org/pentaho/di/trans/Trans.java",
"license": "apache-2.0",
"size": 198588
} | [
"org.pentaho.di.core.BlockingRowSet",
"org.pentaho.di.core.QueueRowSet",
"org.pentaho.di.core.RowSet",
"org.pentaho.di.core.SingleRowRowSet",
"org.pentaho.di.core.exception.KettleException",
"org.pentaho.di.trans.step.StepInterface"
] | import org.pentaho.di.core.BlockingRowSet; import org.pentaho.di.core.QueueRowSet; import org.pentaho.di.core.RowSet; import org.pentaho.di.core.SingleRowRowSet; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.trans.step.StepInterface; | import org.pentaho.di.core.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.trans.step.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 2,439,777 |
public Observable<ServiceResponse<ImagePrediction>> classifyImageUrlWithNoStoreWithServiceResponseAsync(UUID projectId, String publishedName, String url, String application) {
if (this.client.endpoint() == null) {
throw new IllegalArgumentException("Parameter this.client.endpoint() is required a... | Observable<ServiceResponse<ImagePrediction>> function(UUID projectId, String publishedName, String url, String application) { if (this.client.endpoint() == null) { throw new IllegalArgumentException(STR); } if (projectId == null) { throw new IllegalArgumentException(STR); } if (publishedName == null) { throw new Illega... | /**
* Classify an image url without saving the result.
*
* @param projectId The project id.
* @param publishedName Specifies the name of the model to evaluate against.
* @param url Url of the image.
* @param application Optional. Specifies the name of application using the endpoint.
*... | Classify an image url without saving the result | classifyImageUrlWithNoStoreWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/cognitiveservices/ms-azure-cs-customvision-prediction/src/main/java/com/microsoft/azure/cognitiveservices/vision/customvision/prediction/implementation/PredictionsImpl.java",
"license": "mit",
"size": 89979
} | [
"com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.ImagePrediction",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.ImagePrediction; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 2,859,901 |
T cloneObject(T orig) throws IOException {
if (orig == null) {
return null;
}
T newInst = newInstance();
copy.copy(orig, newInst);
return newInst;
}
| T cloneObject(T orig) throws IOException { if (orig == null) { return null; } T newInst = newInstance(); copy.copy(orig, newInst); return newInst; } | /**
* Creates an object clone.
*
* @param orig object to clone
* @return cloned instance
*/ | Creates an object clone | cloneObject | {
"repo_name": "scaleoutsoftware/hServer",
"path": "open/src/com/scaleoutsoftware/soss/hserver/CopyEngine.java",
"license": "apache-2.0",
"size": 5396
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,059,769 |
Class<?>[] configClasses = getRootConfigClasses();
if (!ObjectUtils.isEmpty(configClasses)) {
AnnotationConfigWebApplicationContext rootAppContext = new AnnotationConfigWebApplicationContext();
rootAppContext.register(configClasses);
return rootAppContext;
}
else {
return null;
}
}
/**
* {@in... | Class<?>[] configClasses = getRootConfigClasses(); if (!ObjectUtils.isEmpty(configClasses)) { AnnotationConfigWebApplicationContext rootAppContext = new AnnotationConfigWebApplicationContext(); rootAppContext.register(configClasses); return rootAppContext; } else { return null; } } /** * {@inheritDoc} | /**
* {@inheritDoc}
* <p>This implementation creates an {@link AnnotationConfigWebApplicationContext},
* providing it the annotated classes returned by {@link #getRootConfigClasses()}.
* Returns {@code null} if {@link #getRootConfigClasses()} returns {@code null}.
*/ | This implementation creates an <code>AnnotationConfigWebApplicationContext</code>, providing it the annotated classes returned by <code>#getRootConfigClasses()</code>. Returns null if <code>#getRootConfigClasses()</code> returns null | createRootApplicationContext | {
"repo_name": "boggad/jdk9-sample",
"path": "sample-catalog/spring-jdk9/src/spring.webmvc/org/springframework/web/servlet/support/AbstractAnnotationConfigDispatcherServletInitializer.java",
"license": "mit",
"size": 4021
} | [
"org.springframework.util.ObjectUtils",
"org.springframework.web.context.support.AnnotationConfigWebApplicationContext"
] | import org.springframework.util.ObjectUtils; import org.springframework.web.context.support.AnnotationConfigWebApplicationContext; | import org.springframework.util.*; import org.springframework.web.context.support.*; | [
"org.springframework.util",
"org.springframework.web"
] | org.springframework.util; org.springframework.web; | 2,398,470 |
public Adapter createCodeSystemCatalogEntryListAdapter() {
return null;
} | Adapter function() { return null; } | /**
* Creates a new adapter for an object of class '{@link org.openhealthtools.mdht.cts2.codesystem.CodeSystemCatalogEntryList
* <em>Catalog Entry List</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritan... | Creates a new adapter for an object of class '<code>org.openhealthtools.mdht.cts2.codesystem.CodeSystemCatalogEntryList Catalog Entry List</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. | createCodeSystemCatalogEntryListAdapter | {
"repo_name": "drbgfc/mdht",
"path": "cts2/plugins/org.openhealthtools.mdht.cts2.core/src/org/openhealthtools/mdht/cts2/codesystem/util/CodeSystemAdapterFactory.java",
"license": "epl-1.0",
"size": 15061
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,601,798 |
@Field(4)
public IntValuedEnum<AVCodecID > audio_codec() {
return this.io.getEnumField(this, 4);
} | @Field(4) IntValuedEnum<AVCodecID > function() { return this.io.getEnumField(this, 4); } | /**
* < default audio codec<br>
* C type : AVCodecID
*/ | C type : AVCodecID | audio_codec | {
"repo_name": "mutars/java_libav",
"path": "wrapper/src/main/java/com/mutar/libav/bridge/avformat/AVOutputFormat.java",
"license": "gpl-2.0",
"size": 16998
} | [
"com.mutar.libav.bridge.avcodec.AvcodecLibrary",
"org.bridj.IntValuedEnum",
"org.bridj.ann.Field"
] | import com.mutar.libav.bridge.avcodec.AvcodecLibrary; import org.bridj.IntValuedEnum; import org.bridj.ann.Field; | import com.mutar.libav.bridge.avcodec.*; import org.bridj.*; import org.bridj.ann.*; | [
"com.mutar.libav",
"org.bridj",
"org.bridj.ann"
] | com.mutar.libav; org.bridj; org.bridj.ann; | 2,125,145 |
public int getMaxArguments() {
Node params = getParametersNode();
if (params != null) {
Node lastParam = params.getLastChild();
if (lastParam == null || !lastParam.isVarArgs()) {
return params.getChildCount();
}
}
return Integer.MAX_VALUE;
} | int function() { Node params = getParametersNode(); if (params != null) { Node lastParam = params.getLastChild(); if (lastParam == null !lastParam.isVarArgs()) { return params.getChildCount(); } } return Integer.MAX_VALUE; } | /**
* Gets the maximum number of arguments that this function requires,
* or Integer.MAX_VALUE if this is a variable argument function.
*/ | Gets the maximum number of arguments that this function requires, or Integer.MAX_VALUE if this is a variable argument function | getMaxArguments | {
"repo_name": "mneise/closure-compiler",
"path": "src/com/google/javascript/rhino/jstype/FunctionType.java",
"license": "apache-2.0",
"size": 48384
} | [
"com.google.javascript.rhino.Node"
] | import com.google.javascript.rhino.Node; | import com.google.javascript.rhino.*; | [
"com.google.javascript"
] | com.google.javascript; | 960,380 |
protected void placeDoorCurrentPosition(World worldIn, StructureBoundingBox boundingBoxIn, Random rand, int x, int y, int z, EnumFacing facing)
{
this.setBlockState(worldIn, Blocks.oak_door.getDefaultState().withProperty(BlockDoor.FACING, facing), x, y, z, boundingBoxIn);
this.setBlockState(worl... | void function(World worldIn, StructureBoundingBox boundingBoxIn, Random rand, int x, int y, int z, EnumFacing facing) { this.setBlockState(worldIn, Blocks.oak_door.getDefaultState().withProperty(BlockDoor.FACING, facing), x, y, z, boundingBoxIn); this.setBlockState(worldIn, Blocks.oak_door.getDefaultState().withPropert... | /**
* Places door on given position
*/ | Places door on given position | placeDoorCurrentPosition | {
"repo_name": "aebert1/BigTransport",
"path": "build/tmp/recompileMc/sources/net/minecraft/world/gen/structure/StructureComponent.java",
"license": "gpl-3.0",
"size": 21089
} | [
"java.util.Random",
"net.minecraft.block.BlockDoor",
"net.minecraft.init.Blocks",
"net.minecraft.util.EnumFacing",
"net.minecraft.world.World"
] | import java.util.Random; import net.minecraft.block.BlockDoor; import net.minecraft.init.Blocks; import net.minecraft.util.EnumFacing; import net.minecraft.world.World; | import java.util.*; import net.minecraft.block.*; import net.minecraft.init.*; import net.minecraft.util.*; import net.minecraft.world.*; | [
"java.util",
"net.minecraft.block",
"net.minecraft.init",
"net.minecraft.util",
"net.minecraft.world"
] | java.util; net.minecraft.block; net.minecraft.init; net.minecraft.util; net.minecraft.world; | 2,611,472 |
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux<SqlPoolTableInner> listBySchemaAsync(
String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String filter) {
return new PagedFlux<>(
() -> listBySchemaSinglePageAsync(resourceGroupName,... | @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<SqlPoolTableInner> function( String resourceGroupName, String workspaceName, String sqlPoolName, String schemaName, String filter) { return new PagedFlux<>( () -> listBySchemaSinglePageAsync(resourceGroupName, workspaceName, sqlPoolName, schemaName, filter), nex... | /**
* Gets tables of a given schema in a SQL pool.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param workspaceName The name of the workspace.
* @param sqlPoolName SQL pool name.
* @param schemaName The name of the schema.
* @param filt... | Gets tables of a given schema in a SQL pool | listBySchemaAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/implementation/SqlPoolTablesClientImpl.java",
"license": "mit",
"size": 30463
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedFlux",
"com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.resourcemanager.synapse.fluent.models.SqlPoolTableInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.synapse.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 236,331 |
assert ( loader != null );
assert ( col != null );
if ( col.size() == 0 )
return;
StopWatch stopWatch = new StopWatch();
stopWatch.start();
loader.persist( col );
stopWatch.stop();
long time = stopWatch.getTime();
if ( time < 1000 )
... | assert ( loader != null ); assert ( col != null ); if ( col.size() == 0 ) return; StopWatch stopWatch = new StopWatch(); stopWatch.start(); loader.persist( col ); stopWatch.stop(); long time = stopWatch.getTime(); if ( time < 1000 ) log.info( STR + time + STR ); else { log.info( STR + time / 1000 + STR ); } } | /**
* User the loader to persist the collection.
*
* @param loader loader
* @param col collection
*/ | User the loader to persist the collection | loadDatabase | {
"repo_name": "ppavlidis/Gemma",
"path": "gemma-core/src/main/java/ubic/gemma/core/loader/util/ParserAndLoaderTools.java",
"license": "apache-2.0",
"size": 3168
} | [
"org.apache.commons.lang3.time.StopWatch"
] | import org.apache.commons.lang3.time.StopWatch; | import org.apache.commons.lang3.time.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,400,408 |
public JsonObject getRawParameter(String name) {
if (jparams.has(name))
return jparams.getAsJsonObject(name);
return null;
} | JsonObject function(String name) { if (jparams.has(name)) return jparams.getAsJsonObject(name); return null; } | /**
* Get the raw value for a parameter for this operator invocation.
* @return Json representation of parameter or null if the parameter is not set.
*/ | Get the raw value for a parameter for this operator invocation | getRawParameter | {
"repo_name": "IBMStreams/streamsx.topology",
"path": "java/src/com/ibm/streamsx/topology/builder/BOperatorInvocation.java",
"license": "apache-2.0",
"size": 11550
} | [
"com.google.gson.JsonObject"
] | import com.google.gson.JsonObject; | import com.google.gson.*; | [
"com.google.gson"
] | com.google.gson; | 936,742 |
public Object invoke(Object proxy, Method method, Object[] args)
throws Throwable {
if (stopDispatching) {
return Boolean.FALSE;
} else {
return Boolean.TRUE;
}
}
}
static {
try {
conditionalClass = Class.forName("java.awt.Conditional");
pumpMethod = Class.forName("java.awt.Ev... | Object function(Object proxy, Method method, Object[] args) throws Throwable { if (stopDispatching) { return Boolean.FALSE; } else { return Boolean.TRUE; } } } static { try { conditionalClass = Class.forName(STR); pumpMethod = Class.forName(STR) .getDeclaredMethod(STR, new Class[] { conditionalClass }); pumpMethod.setA... | /**
* Invoke <code>evaluate()</code> on the wrapped
* <code>Conditional</code> instance - called by the
* EventDispatchThread to test if pumping of events should be continued.
*
* @return <code>true</code> if events still should be continued
* pumped, <code>false</code> otherwise
*/ | Invoke <code>evaluate()</code> on the wrapped <code>Conditional</code> instance - called by the EventDispatchThread to test if pumping of events should be continued | invoke | {
"repo_name": "magsilva/spin",
"path": "src/main/java/spin/off/AWTReflectDispatcherFactory.java",
"license": "lgpl-2.1",
"size": 4033
} | [
"java.lang.reflect.Method"
] | import java.lang.reflect.Method; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,910,505 |
public static JSONObject currentUser(final HttpServletRequest request) {
final HttpSession session = request.getSession(false);
if (null != session) {
return (JSONObject) session.getAttribute(User.USER);
}
return null;
} | static JSONObject function(final HttpServletRequest request) { final HttpSession session = request.getSession(false); if (null != session) { return (JSONObject) session.getAttribute(User.USER); } return null; } | /**
* Gets the current user with the specified request.
*
* @param request the specified request
* @return the current user, returns {@code null} if not logged in
*/ | Gets the current user with the specified request | currentUser | {
"repo_name": "qiangber/symphony",
"path": "src/main/java/org/b3log/symphony/util/Sessions.java",
"license": "apache-2.0",
"size": 5013
} | [
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpSession",
"org.b3log.latke.model.User",
"org.json.JSONObject"
] | import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.b3log.latke.model.User; import org.json.JSONObject; | import javax.servlet.http.*; import org.b3log.latke.model.*; import org.json.*; | [
"javax.servlet",
"org.b3log.latke",
"org.json"
] | javax.servlet; org.b3log.latke; org.json; | 2,478,510 |
public void removeInterlocutorListener(InterlocutorListener interlocutorListener) {
guiManager.removeInterlocutorListener(interlocutorListener);
}
| void function(InterlocutorListener interlocutorListener) { guiManager.removeInterlocutorListener(interlocutorListener); } | /**
* Remove InterlocutorListener
*
* @param interlocutorListener the listener
*/ | Remove InterlocutorListener | removeInterlocutorListener | {
"repo_name": "joshuairl/toothchat-client",
"path": "src/plugins/sip/src/java/net/java/sipmack/softphone/SoftPhoneManager.java",
"license": "apache-2.0",
"size": 38087
} | [
"net.java.sipmack.softphone.listeners.InterlocutorListener"
] | import net.java.sipmack.softphone.listeners.InterlocutorListener; | import net.java.sipmack.softphone.listeners.*; | [
"net.java.sipmack"
] | net.java.sipmack; | 1,139,516 |
@SuppressWarnings("unchecked")
public Type process(String ref) {
ProcessDefinition answer = new ProcessDefinition();
answer.setRef(ref);
addOutput(answer);
return (Type) this;
}
/**
* <a href="http://camel.apache.org/message-translator.html">Message Translator EIP:<... | @SuppressWarnings(STR) Type function(String ref) { ProcessDefinition answer = new ProcessDefinition(); answer.setRef(ref); addOutput(answer); return (Type) this; } /** * <a href="http: * Adds the custom processor reference to this destination which could be a final * destination, or could be a transformation in a pipel... | /**
* <a href="http://camel.apache.org/message-translator.html">Message Translator EIP:</a>
* Adds the custom processor reference to this destination which could be a final
* destination, or could be a transformation in a pipeline
*
* @param ref reference to a {@link Processor} to lookup in t... | Adds the custom processor reference to this destination which could be a final destination, or could be a transformation in a pipeline | process | {
"repo_name": "grange74/camel",
"path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java",
"license": "apache-2.0",
"size": 152533
} | [
"org.apache.camel.Processor"
] | import org.apache.camel.Processor; | import org.apache.camel.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,797,751 |
void process(FileIngestTask task) throws InterruptedException {
try {
if (!this.isCancelled()) {
FileIngestPipeline pipeline = this.fileIngestPipelinesQueue.take();
if (!pipeline.isEmpty()) {
AbstractFile file = task.getFile();
... | void process(FileIngestTask task) throws InterruptedException { try { if (!this.isCancelled()) { FileIngestPipeline pipeline = this.fileIngestPipelinesQueue.take(); if (!pipeline.isEmpty()) { AbstractFile file = task.getFile(); synchronized (this.fileIngestProgressLock) { ++this.processedFiles; if (this.runInteractivel... | /**
* Passes a file from the data source for this job through the file level
* ingest pipeline.
*
* @param task A file ingest task.
* @throws InterruptedException if the thread executing this code is
* interrupted while blocked on taking from or putting to the file ingest
* pipelines ... | Passes a file from the data source for this job through the file level ingest pipeline | process | {
"repo_name": "sidheshenator/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/ingest/DataSourceIngestJob.java",
"license": "apache-2.0",
"size": 47110
} | [
"java.util.ArrayList",
"java.util.List",
"org.sleuthkit.datamodel.AbstractFile"
] | import java.util.ArrayList; import java.util.List; import org.sleuthkit.datamodel.AbstractFile; | import java.util.*; import org.sleuthkit.datamodel.*; | [
"java.util",
"org.sleuthkit.datamodel"
] | java.util; org.sleuthkit.datamodel; | 1,223,968 |
private FilterOperator<CCSSubgraph> getCharacteristicSubgraphs(
DataSet<CCSSubgraph> frequentSubgraphs) {
return frequentSubgraphs
.filter(new IsCharacteristic());
} | FilterOperator<CCSSubgraph> function( DataSet<CCSSubgraph> frequentSubgraphs) { return frequentSubgraphs .filter(new IsCharacteristic()); } | /**
* Returns characteristic from category frequent subgraphs.
*
* @param frequentSubgraphs subgraphs, frequent in at least one category
* @return characteristic subgraphs
*/ | Returns characteristic from category frequent subgraphs | getCharacteristicSubgraphs | {
"repo_name": "smee/gradoop",
"path": "gradoop-flink/src/main/java/org/gradoop/flink/algorithms/fsm/transactional/CategoryCharacteristicSubgraphs.java",
"license": "apache-2.0",
"size": 9204
} | [
"org.apache.flink.api.java.DataSet",
"org.apache.flink.api.java.operators.FilterOperator",
"org.gradoop.flink.algorithms.fsm.transactional.tle.functions.IsCharacteristic",
"org.gradoop.flink.algorithms.fsm.transactional.tle.tuples.CCSSubgraph"
] | import org.apache.flink.api.java.DataSet; import org.apache.flink.api.java.operators.FilterOperator; import org.gradoop.flink.algorithms.fsm.transactional.tle.functions.IsCharacteristic; import org.gradoop.flink.algorithms.fsm.transactional.tle.tuples.CCSSubgraph; | import org.apache.flink.api.java.*; import org.apache.flink.api.java.operators.*; import org.gradoop.flink.algorithms.fsm.transactional.tle.functions.*; import org.gradoop.flink.algorithms.fsm.transactional.tle.tuples.*; | [
"org.apache.flink",
"org.gradoop.flink"
] | org.apache.flink; org.gradoop.flink; | 93,539 |
public void setLegendBar(Shape bar) {
ParamChecks.nullNotPermitted(bar, "bar");
this.legendBar = bar;
fireChangeEvent();
} | void function(Shape bar) { ParamChecks.nullNotPermitted(bar, "bar"); this.legendBar = bar; fireChangeEvent(); } | /**
* Sets the shape used to represent bars in each legend item and sends a
* {@link RendererChangeEvent} to all registered listeners.
*
* @param bar the bar shape (<code>null</code> not permitted).
*
* @see #getLegendBar()
*/ | Sets the shape used to represent bars in each legend item and sends a <code>RendererChangeEvent</code> to all registered listeners | setLegendBar | {
"repo_name": "hongliangpan/manydesigns.cn",
"path": "trunk/portofino-chart/jfreechat.src/org/jfree/chart/renderer/xy/XYBarRenderer.java",
"license": "lgpl-3.0",
"size": 43653
} | [
"java.awt.Shape",
"org.jfree.chart.util.ParamChecks"
] | import java.awt.Shape; import org.jfree.chart.util.ParamChecks; | import java.awt.*; import org.jfree.chart.util.*; | [
"java.awt",
"org.jfree.chart"
] | java.awt; org.jfree.chart; | 585,584 |
public void deregisterDevice(DeviceDescription devDesc)
{
Log.i(PAAndroidConstants.PA_LOGTAG, "Received device deregistration: " + devDesc.getDeviceID());
try
{
appApi.deregisterDevice(devDesc);
}
catch (RemoteException e)
{
Log.d(PAAndroidConstants.PA_LOGTAG... | void function(DeviceDescription devDesc) { Log.i(PAAndroidConstants.PA_LOGTAG, STR + devDesc.getDeviceID()); try { appApi.deregisterDevice(devDesc); } catch (RemoteException e) { Log.d(PAAndroidConstants.PA_LOGTAG, STR); } } | /**
* Deregister the given device from the SDCS
*
* @param devDesc
* The device to use
*/ | Deregister the given device from the SDCS | deregisterDevice | {
"repo_name": "bratwurzt/ProtocolAdapterManager",
"path": "app/src/main/java/eu/fistar/sdcs/pa/PAManagerService.java",
"license": "lgpl-3.0",
"size": 43173
} | [
"android.os.RemoteException",
"android.util.Log",
"eu.fistar.sdcs.pa.common.DeviceDescription",
"eu.fistar.sdcs.pa.common.PAAndroidConstants"
] | import android.os.RemoteException; import android.util.Log; import eu.fistar.sdcs.pa.common.DeviceDescription; import eu.fistar.sdcs.pa.common.PAAndroidConstants; | import android.os.*; import android.util.*; import eu.fistar.sdcs.pa.common.*; | [
"android.os",
"android.util",
"eu.fistar.sdcs"
] | android.os; android.util; eu.fistar.sdcs; | 1,189,028 |
private static String parseSelector(ParsableByteArray input, StringBuilder stringBuilder) {
skipWhitespaceAndComments(input);
if (input.bytesLeft() < 5) {
return null;
}
String cueSelector = input.readString(5);
if (!"::cue".equals(cueSelector)) {
return null;
}
int position = ... | static String function(ParsableByteArray input, StringBuilder stringBuilder) { skipWhitespaceAndComments(input); if (input.bytesLeft() < 5) { return null; } String cueSelector = input.readString(5); if (!"::cue".equals(cueSelector)) { return null; } int position = input.getPosition(); String token = parseNextToken(inpu... | /**
* Returns a string containing the selector. The input is expected to have the form
* {@code ::cue(tag#id.class1.class2[voice="someone"]}, where every element is optional.
*
* @param input From which the selector is obtained.
* @return A string containing the target, empty string if the selector is un... | Returns a string containing the selector. The input is expected to have the form ::cue(tag#id.class1.class2[voice="someone"], where every element is optional | parseSelector | {
"repo_name": "tntcrowd/ExoPlayer",
"path": "library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/CssParser.java",
"license": "apache-2.0",
"size": 11791
} | [
"com.google.android.exoplayer2.util.ParsableByteArray"
] | import com.google.android.exoplayer2.util.ParsableByteArray; | import com.google.android.exoplayer2.util.*; | [
"com.google.android"
] | com.google.android; | 2,659,199 |
public List<String> stats() {
return stats;
} | List<String> function() { return stats; } | /**
* The stats groups this request will be aggregated under.
*/ | The stats groups this request will be aggregated under | stats | {
"repo_name": "fuchao01/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java",
"license": "apache-2.0",
"size": 58416
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,751,024 |
private void writeLSD() throws IOException {
// logical screen size
writeShort(width);
writeShort(height);
// packed fields
out.write((0x80 | // 1 : global color table flag = 1 (gct used)
0x70 | // 2-4 : color resolution = 7
0x00 | // 5 : gct sort flag = 0
palSize)); // 6-8 : gct size
out.write(0)... | void function() throws IOException { writeShort(width); writeShort(height); out.write((0x80 0x70 0x00 palSize)); out.write(0); out.write(0); } | /**
* Writes Logical Screen Descriptor
*/ | Writes Logical Screen Descriptor | writeLSD | {
"repo_name": "mikljohansson/android-core",
"path": "app/src/main/java/se/embargo/core/graphic/gif/GifEncoder.java",
"license": "mit",
"size": 14039
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 966,646 |
public void replace(long containerIdx, Container freshContainer) {
int firstDimIdx = (int) (containerIdx >>> 32);
int secondDimIdx = (int) containerIdx;
containerArrays.get(firstDimIdx)[secondDimIdx] = freshContainer;
} | void function(long containerIdx, Container freshContainer) { int firstDimIdx = (int) (containerIdx >>> 32); int secondDimIdx = (int) containerIdx; containerArrays.get(firstDimIdx)[secondDimIdx] = freshContainer; } | /**
* replace the container index one with a fresh Container
*
* @param containerIdx the container index to replace
* @param freshContainer the fresh one
*/ | replace the container index one with a fresh Container | replace | {
"repo_name": "RoaringBitmap/RoaringBitmap",
"path": "RoaringBitmap/src/main/java/org/roaringbitmap/art/Containers.java",
"license": "apache-2.0",
"size": 14259
} | [
"org.roaringbitmap.Container"
] | import org.roaringbitmap.Container; | import org.roaringbitmap.*; | [
"org.roaringbitmap"
] | org.roaringbitmap; | 2,123,265 |
int countByExample(BDIHistoryHourExample example); | int countByExample(BDIHistoryHourExample example); | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table nfjd502.dbo.BDIHistoryHour
*
* @mbggenerated Thu Mar 02 11:23:21 CST 2017
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table nfjd502.dbo.BDIHistoryHour | countByExample | {
"repo_name": "xtwxy/cassandra-tests",
"path": "mstar-server-dao/src/main/java/com/wincom/mstar/dao/mapper/BDIHistoryHourMapper.java",
"license": "apache-2.0",
"size": 2218
} | [
"com.wincom.mstar.domain.BDIHistoryHourExample"
] | import com.wincom.mstar.domain.BDIHistoryHourExample; | import com.wincom.mstar.domain.*; | [
"com.wincom.mstar"
] | com.wincom.mstar; | 825,290 |
public void save(String file) throws IOException {
File credFile = new File(file);
//check to see if file exists
if(!credFile.exists()) {
//If not, check if parent dir exists
if(!credFile.getParentFile().exists()) {
//If not, make them
... | void function(String file) throws IOException { File credFile = new File(file); if(!credFile.exists()) { if(!credFile.getParentFile().exists()) { if(!credFile.getParentFile().mkdirs()) { throw new IOException(STR + credFile.getParentFile().getAbsolutePath()); } } if(!credFile.createNewFile()){ throw new IOException(STR... | /**
* Writes the Credential object to file in JSON format
*
* @param file file to save credentials to
* @throws IOException if the write fails
*/ | Writes the Credential object to file in JSON format | save | {
"repo_name": "NoahLutz/gmusic-java",
"path": "src/main/java/com/charlesnlutz/gmusic/oauth2/Credentials.java",
"license": "gpl-3.0",
"size": 6269
} | [
"com.charlesnlutz.gmusic.utils.Utils",
"java.io.File",
"java.io.IOException"
] | import com.charlesnlutz.gmusic.utils.Utils; import java.io.File; import java.io.IOException; | import com.charlesnlutz.gmusic.utils.*; import java.io.*; | [
"com.charlesnlutz.gmusic",
"java.io"
] | com.charlesnlutz.gmusic; java.io; | 2,768,965 |
@Configurable
public void setAccessedExpireTimeout(Period period)
{
setAccessedExpireTimeoutMillis(period.getPeriod());
} | void function(Period period) { setAccessedExpireTimeoutMillis(period.getPeriod()); } | /**
* The maximum idle time for an item, which is typically used for
* temporary data like sessions. For example, session
* data might be removed if idle over 30 minutes.
* <p/>
* Cached data would have infinite idle time because
* it doesn't depend on how often it's accessed.
* <p/>
* Default ... | The maximum idle time for an item, which is typically used for temporary data like sessions. For example, session data might be removed if idle over 30 minutes. Cached data would have infinite idle time because it doesn't depend on how often it's accessed. Default is infinite | setAccessedExpireTimeout | {
"repo_name": "dlitz/resin",
"path": "modules/resin/src/com/caucho/distcache/AbstractCache.java",
"license": "gpl-2.0",
"size": 23872
} | [
"com.caucho.config.types.Period"
] | import com.caucho.config.types.Period; | import com.caucho.config.types.*; | [
"com.caucho.config"
] | com.caucho.config; | 2,871,462 |
public static String encodeToString(byte[] input, int flags) {
try {
return new String(encode(input, flags), "US-ASCII");
} catch (UnsupportedEncodingException e) {
// US-ASCII is guaranteed to be available.
throw new AssertionError(e);
}
} | static String function(byte[] input, int flags) { try { return new String(encode(input, flags), STR); } catch (UnsupportedEncodingException e) { throw new AssertionError(e); } } | /**
* Base64-encode the given data and return a newly allocated
* String with the result.
*
* @param input the data to encode
* @param flags controls certain features of the encoded output.
* Passing {@code DEFAULT} results in output that
* adheres to RFC... | Base64-encode the given data and return a newly allocated String with the result | encodeToString | {
"repo_name": "Xefir/PinkiePieLive",
"path": "src/com/derpfish/pinkielive/util/Base64.java",
"license": "gpl-3.0",
"size": 28716
} | [
"java.io.UnsupportedEncodingException"
] | import java.io.UnsupportedEncodingException; | import java.io.*; | [
"java.io"
] | java.io; | 225,440 |
public DateTime lastModified() {
if (this.lastModified == null) {
return null;
}
return this.lastModified.dateTime();
} | DateTime function() { if (this.lastModified == null) { return null; } return this.lastModified.dateTime(); } | /**
* Get the time at which the resource was last modified.
*
* @return the lastModified value
*/ | Get the time at which the resource was last modified | lastModified | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/batch/microsoft-azure-batch/src/main/java/com/microsoft/azure/batch/protocol/models/PoolExistsHeaders.java",
"license": "mit",
"size": 5498
} | [
"org.joda.time.DateTime"
] | import org.joda.time.DateTime; | import org.joda.time.*; | [
"org.joda.time"
] | org.joda.time; | 1,012,734 |
public void PasteDone() throws ClipboardException; | void function() throws ClipboardException; | /**
* Method declaration
*
* @throws ClipboardException
*/ | Method declaration | PasteDone | {
"repo_name": "CecileBONIN/Silverpeas-Core",
"path": "ejb-core/clipboard/src/main/java/com/stratelia/webactiv/clipboard/control/ejb/Clipboard.java",
"license": "agpl-3.0",
"size": 3875
} | [
"com.silverpeas.util.clipboard.ClipboardException"
] | import com.silverpeas.util.clipboard.ClipboardException; | import com.silverpeas.util.clipboard.*; | [
"com.silverpeas.util"
] | com.silverpeas.util; | 62,249 |
public OAuthApplicationInfo buildFromJSON(OAuthApplicationInfo oAuthApplicationInfo, String jsonInput) throws
APIManagementException {
if (StringUtils.isEmpty(oAuthApplicationInfo.getCallBackURL()) &&
StringUtils.isNotEmpty(jsonInput) &&
(jsonInput.contains("impl... | OAuthApplicationInfo function(OAuthApplicationInfo oAuthApplicationInfo, String jsonInput) throws APIManagementException { if (StringUtils.isEmpty(oAuthApplicationInfo.getCallBackURL()) && StringUtils.isNotEmpty(jsonInput) && (jsonInput.contains(STR) jsonInput.contains(STR))) { throw new EmptyCallbackURLForCodeGrantsEx... | /**
* This method will accept json String and will do the json parse will set oAuth application properties to OAuthApplicationInfo object.
*
* @param jsonInput this jsonInput will contain set of oAuth application properties.
* @return OAuthApplicationInfo object will be return.
* @throws APIMan... | This method will accept json String and will do the json parse will set oAuth application properties to OAuthApplicationInfo object | buildFromJSON | {
"repo_name": "Rajith90/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/AbstractKeyManager.java",
"license": "apache-2.0",
"size": 14003
} | [
"java.util.Map",
"org.apache.commons.lang3.StringUtils",
"org.json.simple.JSONObject",
"org.json.simple.parser.JSONParser",
"org.json.simple.parser.ParseException",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.api.EmptyCallbackURLForCodeGrantsException",
"org.wso2.carbo... | import java.util.Map; import org.apache.commons.lang3.StringUtils; import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.EmptyCallbackURLForCodeGrantsException... | import java.util.*; import org.apache.commons.lang3.*; import org.json.simple.*; import org.json.simple.parser.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; | [
"java.util",
"org.apache.commons",
"org.json.simple",
"org.wso2.carbon"
] | java.util; org.apache.commons; org.json.simple; org.wso2.carbon; | 642,204 |
public void setPrimaryKey(String key) throws TorqueException
{
setObjectID(new Integer(key));
} | void function(String key) throws TorqueException { setObjectID(new Integer(key)); } | /**
* Set the PrimaryKey using a String.
*
* @param key
*/ | Set the PrimaryKey using a String | setPrimaryKey | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/BaseTCostCenter.java",
"license": "gpl-3.0",
"size": 46924
} | [
"org.apache.torque.TorqueException"
] | import org.apache.torque.TorqueException; | import org.apache.torque.*; | [
"org.apache.torque"
] | org.apache.torque; | 556,807 |
public void setAnchor(Point2D anchor) {
this.anchor = anchor;
} | void function(Point2D anchor) { this.anchor = anchor; } | /**
* Sets the anchor point. This is usually the mouse click point in a chart panel, and the
* crosshair point will often be the data item that is closest to the anchor point.
*
* @param anchor the anchor point.
*/ | Sets the anchor point. This is usually the mouse click point in a chart panel, and the crosshair point will often be the data item that is closest to the anchor point | setAnchor | {
"repo_name": "simeshev/parabuild-ci",
"path": "3rdparty/jfreechart0921/source/org/jfree/chart/plot/CrosshairState.java",
"license": "lgpl-3.0",
"size": 7807
} | [
"java.awt.geom.Point2D"
] | import java.awt.geom.Point2D; | import java.awt.geom.*; | [
"java.awt"
] | java.awt; | 1,972 |
public void skipOffset(int offset) throws ParseException {
if ((this.offset + offset) > length) {
throw new ParseException(message, length);
}
this.offset += offset;
} | void function(int offset) throws ParseException { if ((this.offset + offset) > length) { throw new ParseException(message, length); } this.offset += offset; } | /**
* Skip the given offset of characters.
*
* @param offset The offset of characters to skip
* @throws ParseException If the end of the String is reached
*/ | Skip the given offset of characters | skipOffset | {
"repo_name": "actility/ong",
"path": "gscl/util/src/main/java/com/actility/m2m/util/StringReader.java",
"license": "gpl-2.0",
"size": 27290
} | [
"java.text.ParseException"
] | import java.text.ParseException; | import java.text.*; | [
"java.text"
] | java.text; | 2,849,282 |
default Klass getKlass(Hotspot hotspot, Klass klass) {
long klassAddress;
if (hotspot.useCompressedKlassPointers()) {
klassAddress = hotspot.decompressKlassPointer(_metadata__compressed_klass());
} else {
klassAddress = _metadata__klass();
}
if (klass != null) {
klass.setAddress... | default Klass getKlass(Hotspot hotspot, Klass klass) { long klassAddress; if (hotspot.useCompressedKlassPointers()) { klassAddress = hotspot.decompressKlassPointer(_metadata__compressed_klass()); } else { klassAddress = _metadata__klass(); } if (klass != null) { klass.setAddress(klassAddress); return klass; } else { re... | /**
* Get the Klass of this heap object. If the <code>klass</code> is non-null, re-use it. Note that dynamic type checks
* are NOT performed, so passing an ArrayKlass or other subclass of Klass may return an invalid object.
*/ | Get the Klass of this heap object. If the <code>klass</code> is non-null, re-use it. Note that dynamic type checks are NOT performed, so passing an ArrayKlass or other subclass of Klass may return an invalid object | getKlass | {
"repo_name": "geoff-addepar/heap-dump",
"path": "src/com/addepar/heapdump/inspect/struct/oopDesc.java",
"license": "gpl-2.0",
"size": 1148
} | [
"com.addepar.heapdump.inspect.Hotspot"
] | import com.addepar.heapdump.inspect.Hotspot; | import com.addepar.heapdump.inspect.*; | [
"com.addepar.heapdump"
] | com.addepar.heapdump; | 541,701 |
public void setBinding(javax.faces.component.UIComponent _binding) {
getStateHelper().put(PropertyKeys.binding, _binding);
} | void function(javax.faces.component.UIComponent _binding) { getStateHelper().put(PropertyKeys.binding, _binding); } | /**
* An EL expression referring to a server side UIComponent instance in a backing bean. <P>
* Usually this method is called internally by the JSF engine.
*/ | An EL expression referring to a server side UIComponent instance in a backing bean. Usually this method is called internally by the JSF engine | setBinding | {
"repo_name": "mtvweb/BootsFaces-OSP",
"path": "src/main/java/net/bootsfaces/component/datepicker/Datepicker.java",
"license": "apache-2.0",
"size": 65142
} | [
"javax.faces.component.UIComponent"
] | import javax.faces.component.UIComponent; | import javax.faces.component.*; | [
"javax.faces"
] | javax.faces; | 2,546,931 |
public void add(List<List<String>> listOfLists) {
Collections.sort(listOfLists, comparator);
for (Collection<String> list : listOfLists) {
add(list);
}
}
| void function(List<List<String>> listOfLists) { Collections.sort(listOfLists, comparator); for (Collection<String> list : listOfLists) { add(list); } } | /**
* Adds the lists to the OrderedCollection. Need to add all lists at once so
* that this method can first sort them by length so that the end result is
* usually proper. Important for complicated routes like sfmta route 38
* outbound.
*
* @param listOfLists
*/ | Adds the lists to the OrderedCollection. Need to add all lists at once so that this method can first sort them by length so that the end result is usually proper. Important for complicated routes like sfmta route 38 outbound | add | {
"repo_name": "scrudden/core",
"path": "transitime/src/main/java/org/transitime/utils/OrderedCollection.java",
"license": "gpl-3.0",
"size": 5899
} | [
"java.util.Collection",
"java.util.Collections",
"java.util.List"
] | import java.util.Collection; import java.util.Collections; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 674,508 |
public Connection getConnection() throws SQLException {
if (_conn == null) {
switch (_dbId) {
case CLOUD_DB:
if (s_ds != null) {
_conn = s_ds.getConnection();
} else {
s_logger.warn("A static-initialized variable... | Connection function() throws SQLException { if (_conn == null) { switch (_dbId) { case CLOUD_DB: if (s_ds != null) { _conn = s_ds.getConnection(); } else { s_logger.warn(STR); throw new CloudRuntimeException(STR); } break; case USAGE_DB: if (s_usageDS != null) { _conn = s_usageDS.getConnection(); } else { s_logger.warn... | /**
* Returns the db connection.
*
* Note: that you can call getConnection() but beaware that
* all prepare statements from the Connection are not garbage
* collected!
*
* @return DB Connection but make sure you understand that
* you are responsible for closing the Prepar... | Returns the db connection. Note: that you can call getConnection() but beaware that all prepare statements from the Connection are not garbage collected | getConnection | {
"repo_name": "ikoula/cloudstack",
"path": "framework/db/src/com/cloud/utils/db/TransactionLegacy.java",
"license": "gpl-2.0",
"size": 47751
} | [
"com.cloud.utils.exception.CloudRuntimeException",
"java.sql.Connection",
"java.sql.SQLException"
] | import com.cloud.utils.exception.CloudRuntimeException; import java.sql.Connection; import java.sql.SQLException; | import com.cloud.utils.exception.*; import java.sql.*; | [
"com.cloud.utils",
"java.sql"
] | com.cloud.utils; java.sql; | 1,406,370 |
EList<nameGoTo> getContainsnameGoTo(); | EList<nameGoTo> getContainsnameGoTo(); | /**
* Returns the value of the '<em><b>Containsname Go To</b></em>' containment reference list.
* The list contents are of type {@link mindstorms_bdsl.nameGoTo}.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Containsname Go To</em>' containment reference list isn't clear,
* there really shoul... | Returns the value of the 'Containsname Go To' containment reference list. The list contents are of type <code>mindstorms_bdsl.nameGoTo</code>. If the meaning of the 'Containsname Go To' containment reference list isn't clear, there really should be more of a description here... | getContainsnameGoTo | {
"repo_name": "jesusc/bento",
"path": "tests/test-outputs/bento.sirius.tests.metamodels.output/src/mindstorms_bdsl/GoTo.java",
"license": "epl-1.0",
"size": 4094
} | [
"org.eclipse.emf.common.util.EList"
] | import org.eclipse.emf.common.util.EList; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,201,992 |
private void getWhereFilter(TranslateContext context, CommonTree node, Map<String, List<CommonTree>> filterMap)
throws SqlXlateException {
if (node.getType() == PantheraParser_PLSQLParser.SQL92_RESERVED_AND) {
// Transform the left child.
getWhereFilter(context, (CommonTree) node.getChild(0), fi... | void function(TranslateContext context, CommonTree node, Map<String, List<CommonTree>> filterMap) throws SqlXlateException { if (node.getType() == PantheraParser_PLSQLParser.SQL92_RESERVED_AND) { getWhereFilter(context, (CommonTree) node.getChild(0), filterMap); getWhereFilter(context, (CommonTree) node.getChild(1), fi... | /**
* finde the or branches which only has columns from one table
*
* @param context
* @param node
* @param filterMap
* @throws SqlXlateException
*/ | finde the or branches which only has columns from one table | getWhereFilter | {
"repo_name": "adrian-wang/panthera-parser",
"path": "src/main/java/com/intel/ssg/dcst/panthera/parse/sql/transformer/FilterInwardTransformer.java",
"license": "apache-2.0",
"size": 15011
} | [
"com.intel.ssg.dcst.panthera.parse.sql.SqlXlateException",
"com.intel.ssg.dcst.panthera.parse.sql.TranslateContext",
"java.util.ArrayList",
"java.util.List",
"java.util.Map",
"org.antlr.runtime.tree.CommonTree"
] | import com.intel.ssg.dcst.panthera.parse.sql.SqlXlateException; import com.intel.ssg.dcst.panthera.parse.sql.TranslateContext; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.antlr.runtime.tree.CommonTree; | import com.intel.ssg.dcst.panthera.parse.sql.*; import java.util.*; import org.antlr.runtime.tree.*; | [
"com.intel.ssg",
"java.util",
"org.antlr.runtime"
] | com.intel.ssg; java.util; org.antlr.runtime; | 1,879,526 |
@Override
protected void paintBackground(Graphics g) {
//先调用父类方法把背景刷新下(比如本UI里使用的大圆角NP图如不先刷新背景则会因上下拉动滚动条
//而致4个圆角位置得不到刷新,从而影响视觉效果(边角有前面的遗留),置于透明边角不被透明像素填
//充的问题,它有可能是Android的NinePatch技术为了性能做作出的优化——一切全透明像素即意味着不需绘制)
super.paintBackground(g);// TODO 出于节约计算资源考生虑,本行代码换成父类中默认填充背景的代码即可
... | void function(Graphics g) { super.paintBackground(g); if (!isUseParentPaint()) { JTextComponent editor = this.getComponent(); BETextFieldUI.paintBg(g, 0, 0, editor.getWidth(), editor.getHeight(), editor.isEnabled(), bg); } } | /**
* Paints a background for the view. This will only be called if isOpaque()
* on the associated component is true. The default is to paint the
* background color of the component.
*
* @param g the graphics context
*/ | Paints a background for the view. This will only be called if isOpaque() on the associated component is true. The default is to paint the background color of the component | paintBackground | {
"repo_name": "huanghongxun/beautyeye",
"path": "beautyeye/src/org/jb2011/lnf/beautyeye/textcoms/BETextAreaUI.java",
"license": "apache-2.0",
"size": 4280
} | [
"java.awt.Graphics",
"javax.swing.text.JTextComponent"
] | import java.awt.Graphics; import javax.swing.text.JTextComponent; | import java.awt.*; import javax.swing.text.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 2,426,326 |
public AzureVmWorkloadProtectionPolicy withSubProtectionPolicy(List<SubProtectionPolicy> subProtectionPolicy) {
this.subProtectionPolicy = subProtectionPolicy;
return this;
} | AzureVmWorkloadProtectionPolicy function(List<SubProtectionPolicy> subProtectionPolicy) { this.subProtectionPolicy = subProtectionPolicy; return this; } | /**
* Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention.
*
* @param subProtectionPolicy the subProtectionPolicy value to set.
* @return the AzureVmWorkloadProtectionPolicy object itself.
*/ | Set the subProtectionPolicy property: List of sub-protection policies which includes schedule and retention | withSubProtectionPolicy | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectionPolicy.java",
"license": "mit",
"size": 5097
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,556,975 |
public static String getDayName(Context context, long dateInMillis) {
// If the date is today, return the localized version of "Today" instead of the actual
// day name.
Time t = new Time();
t.setToNow();
int julianDay = Time.getJulianDay(dateInMillis, t.gmtoff);
int... | static String function(Context context, long dateInMillis) { Time t = new Time(); t.setToNow(); int julianDay = Time.getJulianDay(dateInMillis, t.gmtoff); int currentJulianDay = Time.getJulianDay(System.currentTimeMillis(), t.gmtoff); if (julianDay == currentJulianDay) { return context.getString(R.string.today); } else... | /**
* Given a day, returns just the name to use for that day.
* E.g "today", "tomorrow", "wednesday".
*
* @param context Context to use for resource localization
* @param dateInMillis The date in milliseconds
* @return
*/ | Given a day, returns just the name to use for that day. E.g "today", "tomorrow", "wednesday" | getDayName | {
"repo_name": "kronos18/cat-178556-Eye2",
"path": "app/src/main/java/com/example/android/sunshine/app/Utility.java",
"license": "apache-2.0",
"size": 14163
} | [
"android.content.Context",
"android.text.format.Time",
"java.text.SimpleDateFormat"
] | import android.content.Context; import android.text.format.Time; import java.text.SimpleDateFormat; | import android.content.*; import android.text.format.*; import java.text.*; | [
"android.content",
"android.text",
"java.text"
] | android.content; android.text; java.text; | 1,353,837 |
private boolean checkByDatasetIndex(IsChart chart, int datasetIndex) {
// gets all data sets
List<Dataset> dss = chart.getData().getDatasets();
// scans them to have the index for retrieving
// the visibility
for (int i = 0; i < dss.size(); i++) {
// if visible return can be hidden
// ignoring... | boolean function(IsChart chart, int datasetIndex) { List<Dataset> dss = chart.getData().getDatasets(); for (int i = 0; i < dss.size(); i++) { if (i != datasetIndex && chart.isDatasetVisible(i)) { return true; } } return false; } | /**
* Checks if there is at least one data set visible on top of the data set index which must be hidden.
*
* @param chart chart instance involved in this event.
* @param datasetIndex data set index related to this event.
* @return <code>true</code> if there is at least one data set visible on top of th... | Checks if there is at least one data set visible on top of the data set index which must be hidden | checkByDatasetIndex | {
"repo_name": "pepstock-org/Charba",
"path": "src/org/pepstock/charba/client/impl/callbacks/AtLeastOneDatasetHandler.java",
"license": "apache-2.0",
"size": 4633
} | [
"java.util.List",
"org.pepstock.charba.client.IsChart",
"org.pepstock.charba.client.data.Dataset"
] | import java.util.List; import org.pepstock.charba.client.IsChart; import org.pepstock.charba.client.data.Dataset; | import java.util.*; import org.pepstock.charba.client.*; import org.pepstock.charba.client.data.*; | [
"java.util",
"org.pepstock.charba"
] | java.util; org.pepstock.charba; | 2,106,230 |
public ChangeRecord compareForChange(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) {
throw DescriptorException.invalidMappingOperation(this, "compareForChange");
} | ChangeRecord function(Object clone, Object backup, ObjectChangeSet owner, AbstractSession session) { throw DescriptorException.invalidMappingOperation(this, STR); } | /**
* INTERNAL:
* This method was created in VisualAge.
* @return prototype.changeset.ChangeRecord
*/ | This method was created in VisualAge | compareForChange | {
"repo_name": "RallySoftware/eclipselink.runtime",
"path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/oxm/mappings/XMLAnyCollectionMapping.java",
"license": "epl-1.0",
"size": 41427
} | [
"org.eclipse.persistence.exceptions.DescriptorException",
"org.eclipse.persistence.internal.sessions.AbstractSession",
"org.eclipse.persistence.internal.sessions.ChangeRecord",
"org.eclipse.persistence.internal.sessions.ObjectChangeSet"
] | import org.eclipse.persistence.exceptions.DescriptorException; import org.eclipse.persistence.internal.sessions.AbstractSession; import org.eclipse.persistence.internal.sessions.ChangeRecord; import org.eclipse.persistence.internal.sessions.ObjectChangeSet; | import org.eclipse.persistence.exceptions.*; import org.eclipse.persistence.internal.sessions.*; | [
"org.eclipse.persistence"
] | org.eclipse.persistence; | 2,672,255 |
private static String replaceLinks(String content, String base,
String proxyURLPrefix) {
// create link pattern
Pattern pattern = Pattern.compile("<a(.*?)href=\"(.*?)\"(.*?)>",
Pattern.CASE_INSENSITIVE | Pattern.DOTALL);
Matcher matcher = pattern.matcher(content);
StringBuffer stringBuffer = new Str... | static String function(String content, String base, String proxyURLPrefix) { Pattern pattern = Pattern.compile(STR(.*?)\STR, Pattern.CASE_INSENSITIVE Pattern.DOTALL); Matcher matcher = pattern.matcher(content); StringBuffer stringBuffer = new StringBuffer(); while (matcher.find()) { if (!matcher.group(2).matches(STR)) ... | /**
* Replaces all relatives links with absolute links
*
* @param content A html String
* @param base A base url
* @param proxyURLPrefix The prefix of the proxy
* @return
*/ | Replaces all relatives links with absolute links | replaceLinks | {
"repo_name": "rwth-acis/ROLE-SDK",
"path": "services/gadgetProxy/src/main/java/de/imc/gadgetProxy/utils/Scraper.java",
"license": "apache-2.0",
"size": 8308
} | [
"java.util.regex.Matcher",
"java.util.regex.Pattern"
] | import java.util.regex.Matcher; import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 2,115,517 |
private void nodeEnter(EventContext context, VirtualFrame vFrame) {
try {
// Deopt if the global active/inactive flag has changed
this.breakpointsActiveAssumption.check();
} catch (InvalidAssumptionException ex) {
this.breakpointsActiveAssu... | void function(EventContext context, VirtualFrame vFrame) { try { this.breakpointsActiveAssumption.check(); } catch (InvalidAssumptionException ex) { this.breakpointsActiveAssumption = BreakpointFactory.this.breakpointsActiveUnchanged.getAssumption(); } try { this.enabledUnchangedAssumption.check(); } catch (InvalidAssu... | /**
* Receives notification from an attached listener that execution is about to enter a node
* where the breakpoint is set. Designed so that when in the fast path, there is either an
* unconditional "halt" call to the debugger or nothing.
*/ | Receives notification from an attached listener that execution is about to enter a node where the breakpoint is set. Designed so that when in the fast path, there is either an unconditional "halt" call to the debugger or nothing | nodeEnter | {
"repo_name": "mlvdv/truffle",
"path": "truffle/com.oracle.truffle.api.debug/src/com/oracle/truffle/api/debug/BreakpointFactory.java",
"license": "gpl-2.0",
"size": 23143
} | [
"com.oracle.truffle.api.Truffle",
"com.oracle.truffle.api.frame.VirtualFrame",
"com.oracle.truffle.api.instrumentation.EventContext",
"com.oracle.truffle.api.nodes.InvalidAssumptionException"
] | import com.oracle.truffle.api.Truffle; import com.oracle.truffle.api.frame.VirtualFrame; import com.oracle.truffle.api.instrumentation.EventContext; import com.oracle.truffle.api.nodes.InvalidAssumptionException; | import com.oracle.truffle.api.*; import com.oracle.truffle.api.frame.*; import com.oracle.truffle.api.instrumentation.*; import com.oracle.truffle.api.nodes.*; | [
"com.oracle.truffle"
] | com.oracle.truffle; | 792,622 |
public void setAccount(Account account) {
this.account = account;
} | void function(Account account) { this.account = account; } | /**
* Sets the account attribute.
*
* @param account The account to set.
*/ | Sets the account attribute | setAccount | {
"repo_name": "bhutchinson/kfs",
"path": "kfs-ar/src/main/java/org/kuali/kfs/module/ar/businessobject/CollectionActivityReport.java",
"license": "agpl-3.0",
"size": 10274
} | [
"org.kuali.kfs.coa.businessobject.Account"
] | import org.kuali.kfs.coa.businessobject.Account; | import org.kuali.kfs.coa.businessobject.*; | [
"org.kuali.kfs"
] | org.kuali.kfs; | 2,061,022 |
public void testGetValuesForIndexedDocument() throws Exception
{
RAMDirectory dir = new RAMDirectory();
IndexWriter writer = new IndexWriter(dir, new StandardAnalyzer(), true);
writer.addDocument(makeDocumentWithFields());
writer.close();
Searcher searcher = new IndexSea... | void function() throws Exception { RAMDirectory dir = new RAMDirectory(); IndexWriter writer = new IndexWriter(dir, new StandardAnalyzer(), true); writer.addDocument(makeDocumentWithFields()); writer.close(); Searcher searcher = new IndexSearcher(dir); Query query = new TermQuery(new Term(STR, "test1")); Hits hits = se... | /**
* Tests {@link Document#getValues(String)} method for a Document retrieved from
* an index.
*
* @throws Exception on error
*/ | Tests <code>Document#getValues(String)</code> method for a Document retrieved from an index | testGetValuesForIndexedDocument | {
"repo_name": "lpxz/grail-lucene477083",
"path": "src/test/org/apache/lucene/document/TestDocument.java",
"license": "apache-2.0",
"size": 8390
} | [
"org.apache.lucene.analysis.standard.StandardAnalyzer",
"org.apache.lucene.index.IndexWriter",
"org.apache.lucene.index.Term",
"org.apache.lucene.search.Hits",
"org.apache.lucene.search.IndexSearcher",
"org.apache.lucene.search.Query",
"org.apache.lucene.search.Searcher",
"org.apache.lucene.search.Ter... | import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.index.IndexWriter; import org.apache.lucene.index.Term; import org.apache.lucene.search.Hits; import org.apache.lucene.search.IndexSearcher; import org.apache.lucene.search.Query; import org.apache.lucene.search.Searcher; import org.a... | import org.apache.lucene.analysis.standard.*; import org.apache.lucene.index.*; import org.apache.lucene.search.*; import org.apache.lucene.store.*; | [
"org.apache.lucene"
] | org.apache.lucene; | 2,494,893 |
Collection<ProcessDefinition> getProcessDefinitions(String filter, QueryContext queryContext); | Collection<ProcessDefinition> getProcessDefinitions(String filter, QueryContext queryContext); | /**
* Returns process definitions that are not considered as case definitions and are filtered by process id or name.
* @param filter regex based filter for either name or id of the process
* @param queryContext control parameters for the result e.g. sorting, paging
*/ | Returns process definitions that are not considered as case definitions and are filtered by process id or name | getProcessDefinitions | {
"repo_name": "droolsjbpm/jbpm",
"path": "jbpm-case-mgmt/jbpm-case-mgmt-api/src/main/java/org/jbpm/casemgmt/api/CaseRuntimeDataService.java",
"license": "apache-2.0",
"size": 19580
} | [
"java.util.Collection",
"org.jbpm.services.api.model.ProcessDefinition",
"org.kie.api.runtime.query.QueryContext"
] | import java.util.Collection; import org.jbpm.services.api.model.ProcessDefinition; import org.kie.api.runtime.query.QueryContext; | import java.util.*; import org.jbpm.services.api.model.*; import org.kie.api.runtime.query.*; | [
"java.util",
"org.jbpm.services",
"org.kie.api"
] | java.util; org.jbpm.services; org.kie.api; | 1,497,165 |
public long write(ByteBuffer[] srcs) throws IOException; | long function(ByteBuffer[] srcs) throws IOException; | /**
* Writes a sequence of bytes to this channel from the given buffers.
*
* <p> An invocation of this method of the form <tt>c.write(srcs)</tt>
* behaves in exactly the same manner as the invocation
*
* <blockquote><pre>
* c.write(srcs, 0, srcs.length);</pre></blockquote>
*
... | Writes a sequence of bytes to this channel from the given buffers. An invocation of this method of the form c.write(srcs) behaves in exactly the same manner as the invocation <code> c.write(srcs, 0, srcs.length);</code> | write | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk2/jdk/src/share/classes/java/nio/channels/GatheringByteChannel.java",
"license": "mit",
"size": 6758
} | [
"java.io.IOException",
"java.nio.ByteBuffer"
] | import java.io.IOException; import java.nio.ByteBuffer; | import java.io.*; import java.nio.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,595,620 |
public void setGraphEltSet(GraphEltSet ges) {
completeEltSet = ges;
visibleLocality = new VisibleLocality(completeEltSet);
localityUtils = new LocalityUtils(visibleLocality, this);
} | void function(GraphEltSet ges) { completeEltSet = ges; visibleLocality = new VisibleLocality(completeEltSet); localityUtils = new LocalityUtils(visibleLocality, this); } | /**
* Setter for GraphEltSet.
*
* @param ges
* the GraphEltSet to set.
*/ | Setter for GraphEltSet | setGraphEltSet | {
"repo_name": "dvorka/mindraider",
"path": "mr7/src/main/java/com/touchgraph/graphlayout/TGPanel.java",
"license": "apache-2.0",
"size": 55041
} | [
"com.touchgraph.graphlayout.graphelements.GraphEltSet",
"com.touchgraph.graphlayout.graphelements.VisibleLocality"
] | import com.touchgraph.graphlayout.graphelements.GraphEltSet; import com.touchgraph.graphlayout.graphelements.VisibleLocality; | import com.touchgraph.graphlayout.graphelements.*; | [
"com.touchgraph.graphlayout"
] | com.touchgraph.graphlayout; | 2,856,975 |
protected final Instruction firstRealInstructionFollowing(Instruction s) {
for (s = s.nextInstructionInCodeOrder(); s != null; s = s.nextInstructionInCodeOrder()) {
if (s.operator() != LABEL && s.operator() != BBEND) {
return s;
}
}
return s;
} | final Instruction function(Instruction s) { for (s = s.nextInstructionInCodeOrder(); s != null; s = s.nextInstructionInCodeOrder()) { if (s.operator() != LABEL && s.operator() != BBEND) { return s; } } return s; } | /**
* Given an instruction s, return the first real (non-label) instruction
* following s
*/ | Given an instruction s, return the first real (non-label) instruction following s | firstRealInstructionFollowing | {
"repo_name": "ut-osa/laminar",
"path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/compilers/opt/controlflow/BranchOptimizationDriver.java",
"license": "bsd-3-clause",
"size": 7524
} | [
"org.jikesrvm.compilers.opt.ir.Instruction"
] | import org.jikesrvm.compilers.opt.ir.Instruction; | import org.jikesrvm.compilers.opt.ir.*; | [
"org.jikesrvm.compilers"
] | org.jikesrvm.compilers; | 1,035,946 |
public void createKinematicBox() {
PolygonShape boxPoly = new PolygonShape();
boxPoly.setAsBox(width / 2, height / 2f);
createKinematicBody(boxPoly);
boxPoly.dispose();
}
| void function() { PolygonShape boxPoly = new PolygonShape(); boxPoly.setAsBox(width / 2, height / 2f); createKinematicBody(boxPoly); boxPoly.dispose(); } | /**
* Creates and applies a kinematic rectangular Body
*/ | Creates and applies a kinematic rectangular Body | createKinematicBox | {
"repo_name": "simonkinghk/Nobuhaka",
"path": "src/com/stickycoding/rokon/PhysicalSprite.java",
"license": "bsd-3-clause",
"size": 9609
} | [
"com.badlogic.gdx.physics.box2d.PolygonShape"
] | import com.badlogic.gdx.physics.box2d.PolygonShape; | import com.badlogic.gdx.physics.box2d.*; | [
"com.badlogic.gdx"
] | com.badlogic.gdx; | 503,899 |
public static void enrollmentAccountDimensionsListExpandAndTopLegacy(
com.azure.resourcemanager.costmanagement.CostManagementManager costManagementManager) {
costManagementManager
.dimensions()
.list(
"providers/Microsoft.Billing/billingAccounts/100/enrollment... | static void function( com.azure.resourcemanager.costmanagement.CostManagementManager costManagementManager) { costManagementManager .dimensions() .list( STR, null, STR, null, 5, Context.NONE); } | /**
* Sample code: EnrollmentAccountDimensionsListExpandAndTop-Legacy.
*
* @param costManagementManager Entry point to CostManagementManager.
*/ | Sample code: EnrollmentAccountDimensionsListExpandAndTop-Legacy | enrollmentAccountDimensionsListExpandAndTopLegacy | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/costmanagement/azure-resourcemanager-costmanagement/src/samples/java/com/azure/resourcemanager/costmanagement/DimensionsListSamples.java",
"license": "mit",
"size": 16094
} | [
"com.azure.core.util.Context"
] | import com.azure.core.util.Context; | import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 591,739 |
private void decodeBitmapData(GifFrame frame) {
if (frame != null) {
// Jump to the frame start position.
rawData.position(frame.bufferFrameStart);
}
int npix = (frame == null) ? header.width * header.height : frame.iw * frame.ih;
int available, clear, codeMask, codeSize, endOfInformation... | void function(GifFrame frame) { if (frame != null) { rawData.position(frame.bufferFrameStart); } int npix = (frame == null) ? header.width * header.height : frame.iw * frame.ih; int available, clear, codeMask, codeSize, endOfInformation, inCode, oldCode, bits, code, count, i, datum, dataSize, first, top, bi, pi; if (ma... | /**
* Decodes LZW image data into pixel array. Adapted from John Cristy's BitmapMagick.
*/ | Decodes LZW image data into pixel array. Adapted from John Cristy's BitmapMagick | decodeBitmapData | {
"repo_name": "weiwenqiang/GitHub",
"path": "expert/glide/third_party/gif_decoder/src/main/java/com/bumptech/glide/gifdecoder/StandardGifDecoder.java",
"license": "apache-2.0",
"size": 26916
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 657,208 |
public void setDestinationCreationStrategy(DestinationCreationStrategy destinationCreationStrategy) {
this.destinationCreationStrategy = destinationCreationStrategy;
} | void function(DestinationCreationStrategy destinationCreationStrategy) { this.destinationCreationStrategy = destinationCreationStrategy; } | /**
* To use a custom DestinationCreationStrategy.
*/ | To use a custom DestinationCreationStrategy | setDestinationCreationStrategy | {
"repo_name": "driseley/camel",
"path": "components/camel-sjms/src/main/java/org/apache/camel/component/sjms/SjmsEndpoint.java",
"license": "apache-2.0",
"size": 30674
} | [
"org.apache.camel.component.sjms.jms.DestinationCreationStrategy"
] | import org.apache.camel.component.sjms.jms.DestinationCreationStrategy; | import org.apache.camel.component.sjms.jms.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,098,900 |
public AllocationStatus getAllocationStatus() {
return allocationStatus;
} | AllocationStatus function() { return allocationStatus; } | /**
* This method returns current AllocationStatus for this point
* @return
*/ | This method returns current AllocationStatus for this point | getAllocationStatus | {
"repo_name": "drlebedev/nd4j",
"path": "nd4j-backends/nd4j-backend-impls/nd4j-cuda-7.5/src/main/java/org/nd4j/jita/allocator/impl/AllocationPoint.java",
"license": "apache-2.0",
"size": 10533
} | [
"org.nd4j.jita.allocator.enums.AllocationStatus"
] | import org.nd4j.jita.allocator.enums.AllocationStatus; | import org.nd4j.jita.allocator.enums.*; | [
"org.nd4j.jita"
] | org.nd4j.jita; | 53,756 |
public void dctColumns(final boolean scale) {
int nthreads = ConcurrencyUtils.getNumberOfThreads();
if ((nthreads > 1) && (size() >= ConcurrencyUtils.getThreadsBeginN_2D())) {
ConcurrencyUtils.setThreadsBeginN_1D_FFT_2Threads(Integer.MAX_VALUE);
ConcurrencyUtils.setThread... | void function(final boolean scale) { int nthreads = ConcurrencyUtils.getNumberOfThreads(); if ((nthreads > 1) && (size() >= ConcurrencyUtils.getThreadsBeginN_2D())) { ConcurrencyUtils.setThreadsBeginN_1D_FFT_2Threads(Integer.MAX_VALUE); ConcurrencyUtils.setThreadsBeginN_1D_FFT_4Threads(Integer.MAX_VALUE); nthreads = Ma... | /**
* Computes the discrete cosine transform (DCT-II) of each column of this
* matrix.
*
* @param scale
* if true then scaling is performed
*
*/ | Computes the discrete cosine transform (DCT-II) of each column of this matrix | dctColumns | {
"repo_name": "Shappiro/GEOFRAME",
"path": "PROJECTS/oms3.proj.richards1d/src/JAVA/parallelcolt-code/src/cern/colt/matrix/tdouble/impl/DenseColumnDoubleMatrix2D.java",
"license": "gpl-3.0",
"size": 123607
} | [
"edu.emory.mathcs.utils.ConcurrencyUtils",
"java.util.concurrent.Future"
] | import edu.emory.mathcs.utils.ConcurrencyUtils; import java.util.concurrent.Future; | import edu.emory.mathcs.utils.*; import java.util.concurrent.*; | [
"edu.emory.mathcs",
"java.util"
] | edu.emory.mathcs; java.util; | 2,155,313 |
public void onDiscovery(SchemaAbstractDiscoveryMessage msg) {
IgniteUuid id = msg.id();
if (!dscoMsgIdHist.add(id)) {
U.warn(log, "Received duplicate schema custom discovery message (will ignore) [opId=" +
msg.operation().id() + ", msg=" + msg + ']');
return... | void function(SchemaAbstractDiscoveryMessage msg) { IgniteUuid id = msg.id(); if (!dscoMsgIdHist.add(id)) { U.warn(log, STR + msg.operation().id() + STR + msg + ']'); return; } if (msg instanceof SchemaProposeDiscoveryMessage) { SchemaProposeDiscoveryMessage msg0 = (SchemaProposeDiscoveryMessage)msg; boolean exchange =... | /**
* Handle custom discovery message.
*
* @param msg Message.
*/ | Handle custom discovery message | onDiscovery | {
"repo_name": "NSAmelchev/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java",
"license": "apache-2.0",
"size": 147807
} | [
"org.apache.ignite.internal.processors.query.schema.message.SchemaAbstractDiscoveryMessage",
"org.apache.ignite.internal.processors.query.schema.message.SchemaFinishDiscoveryMessage",
"org.apache.ignite.internal.processors.query.schema.message.SchemaProposeDiscoveryMessage",
"org.apache.ignite.internal.util.t... | import org.apache.ignite.internal.processors.query.schema.message.SchemaAbstractDiscoveryMessage; import org.apache.ignite.internal.processors.query.schema.message.SchemaFinishDiscoveryMessage; import org.apache.ignite.internal.processors.query.schema.message.SchemaProposeDiscoveryMessage; import org.apache.ignite.inte... | import org.apache.ignite.internal.processors.query.schema.message.*; import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.lang.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 831,827 |
public void close() throws IOException, InterruptedException {
closeTxnBatch();
closeConnection();
closed = true;
} | void function() throws IOException, InterruptedException { closeTxnBatch(); closeConnection(); closed = true; } | /**
* Close the Transaction Batch and connection
* @throws IOException if an error occurs during close
* @throws InterruptedException if the close operation is interrupted
*/ | Close the Transaction Batch and connection | close | {
"repo_name": "ShellyLC/nifi",
"path": "nifi-nar-bundles/nifi-hive-bundle/nifi-hive-processors/src/main/java/org/apache/nifi/util/hive/HiveWriter.java",
"license": "apache-2.0",
"size": 16976
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,452,078 |
public Collection<Location> getAreasOfInterest() {
return new HashSet<>(mAreasOfInterest);
} | Collection<Location> function() { return new HashSet<>(mAreasOfInterest); } | /**
* Getter for the areas of interest
*
* @return a collection of locations
*/ | Getter for the areas of interest | getAreasOfInterest | {
"repo_name": "furkansahin/team-heart-coders-public",
"path": "SwissAffinity/app/src/main/java/ch/epfl/sweng/swissaffinity/users/User.java",
"license": "mit",
"size": 7107
} | [
"ch.epfl.sweng.swissaffinity.utilities.Location",
"java.util.Collection",
"java.util.HashSet"
] | import ch.epfl.sweng.swissaffinity.utilities.Location; import java.util.Collection; import java.util.HashSet; | import ch.epfl.sweng.swissaffinity.utilities.*; import java.util.*; | [
"ch.epfl.sweng",
"java.util"
] | ch.epfl.sweng; java.util; | 1,348,560 |
public static boolean writeImage(BufferedImage image, String filename,
int dpi) throws IOException
{
File file = new File(filename);
FileOutputStream output = new FileOutputStream(file);
try
{
String formatName = filename.substring(filename.lastIndexOf('.'... | static boolean function(BufferedImage image, String filename, int dpi) throws IOException { File file = new File(filename); FileOutputStream output = new FileOutputStream(file); try { String formatName = filename.substring(filename.lastIndexOf('.') + 1); return writeImage(image, formatName, output, dpi); } finally { ou... | /**
* Writes a buffered image to a file using the given image format. See
* {@link #writeImage(BufferedImage image, String formatName,
* OutputStream output, int dpi, float quality)} for more details.
*
* @param image the image to be written
* @param filename used to construct the fi... | Writes a buffered image to a file using the given image format. See <code>#writeImage(BufferedImage image, String formatName, OutputStream output, int dpi, float quality)</code> for more details | writeImage | {
"repo_name": "gavanx/pdflearn",
"path": "tools/src/main/java/org/apache/pdfbox/tools/imageio/ImageIOUtil.java",
"license": "apache-2.0",
"size": 12232
} | [
"java.awt.image.BufferedImage",
"java.io.File",
"java.io.FileOutputStream",
"java.io.IOException"
] | import java.awt.image.BufferedImage; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; | import java.awt.image.*; import java.io.*; | [
"java.awt",
"java.io"
] | java.awt; java.io; | 271,805 |
public String getMountedObbPath(String rawPath) throws RemoteException {
Parcel _data = Parcel.obtain();
Parcel _reply = Parcel.obtain();
String _result;
try {
_data.writeInterfaceToken(DESCRIPTOR);
_data... | String function(String rawPath) throws RemoteException { Parcel _data = Parcel.obtain(); Parcel _reply = Parcel.obtain(); String _result; try { _data.writeInterfaceToken(DESCRIPTOR); _data.writeString(rawPath); mRemote.transact(Stub.TRANSACTION_getMountedObbPath, _data, _reply, 0); _reply.readException(); _result = _re... | /**
* Gets the path to the mounted Opaque Binary Blob (OBB).
*/ | Gets the path to the mounted Opaque Binary Blob (OBB) | getMountedObbPath | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/android/os/storage/IMountService.java",
"license": "apache-2.0",
"size": 57298
} | [
"android.os.Parcel",
"android.os.RemoteException"
] | import android.os.Parcel; import android.os.RemoteException; | import android.os.*; | [
"android.os"
] | android.os; | 1,475,867 |
public CompiledST loadTemplateFile(String prefix, String unqualifiedFileName, CharStream templateStream) {
GroupLexer lexer = new GroupLexer(templateStream);
CommonTokenStream tokens = new CommonTokenStream(lexer);
GroupParser parser = new GroupParser(tokens);
parser.group = this;
... | CompiledST function(String prefix, String unqualifiedFileName, CharStream templateStream) { GroupLexer lexer = new GroupLexer(templateStream); CommonTokenStream tokens = new CommonTokenStream(lexer); GroupParser parser = new GroupParser(tokens); parser.group = this; lexer.group = this; try { parser.templateDef(prefix);... | /** Load template stream into this group. {@code unqualifiedFileName} is
* {@code "a.st"}. The {@code prefix} is path from group root to
* {@code unqualifiedFileName} like {@code "/subdir"} if file is in
* {@code /subdir/a.st}.
*/ | Load template stream into this group. unqualifiedFileName is "a.st". The prefix is path from group root to unqualifiedFileName like "/subdir" if file is in /subdir/a.st | loadTemplateFile | {
"repo_name": "antlr/codebuff",
"path": "output/java8/1.4.19/STGroup.java",
"license": "bsd-2-clause",
"size": 34645
} | [
"org.antlr.runtime.CharStream",
"org.antlr.runtime.CommonTokenStream",
"org.antlr.runtime.RecognitionException",
"org.stringtemplate.v4.compiler.CompiledST",
"org.stringtemplate.v4.compiler.GroupLexer",
"org.stringtemplate.v4.compiler.GroupParser",
"org.stringtemplate.v4.misc.ErrorType",
"org.stringte... | import org.antlr.runtime.CharStream; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.RecognitionException; import org.stringtemplate.v4.compiler.CompiledST; import org.stringtemplate.v4.compiler.GroupLexer; import org.stringtemplate.v4.compiler.GroupParser; import org.stringtemplate.v4.misc.ErrorTy... | import org.antlr.runtime.*; import org.stringtemplate.v4.compiler.*; import org.stringtemplate.v4.misc.*; | [
"org.antlr.runtime",
"org.stringtemplate.v4"
] | org.antlr.runtime; org.stringtemplate.v4; | 1,391,718 |
public void setLineSloaps(PDNumberFormatDictionary[] lineSloaps)
{
COSArray array = new COSArray();
for (int i = 0; i < lineSloaps.length; i++)
{
array.add(lineSloaps[i]);
}
this.getDictionary().setItem("S", array);
} | void function(PDNumberFormatDictionary[] lineSloaps) { COSArray array = new COSArray(); for (int i = 0; i < lineSloaps.length; i++) { array.add(lineSloaps[i]); } this.getDictionary().setItem("S", array); } | /**
* This will set the sloaps of a line.
*
* @param lineSloaps the sloaps of a line
*/ | This will set the sloaps of a line | setLineSloaps | {
"repo_name": "myrridin/qz-print",
"path": "pdfbox_1.8.4_qz/src/org/apache/pdfbox/pdmodel/interactive/measurement/PDRectlinearMeasureDictionary.java",
"license": "lgpl-2.1",
"size": 9196
} | [
"org.apache.pdfbox.cos.COSArray"
] | import org.apache.pdfbox.cos.COSArray; | import org.apache.pdfbox.cos.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 1,390,463 |
@Test
public void processBitTypedefReferredLeafStatement() throws IOException, ParserException {
YangNode node = manager.getDataModel("src/test/resources/BitTypedefReferredLeafStatement.yang");
// Check whether the data model tree returned is of type module.
assertThat((node instanceof... | void function() throws IOException, ParserException { YangNode node = manager.getDataModel(STR); assertThat((node instanceof YangModule), is(true)); assertThat(node.getNodeType(), is(YangNodeType.MODULE_NODE)); YangModule yangNode = (YangModule) node; assertThat(yangNode.getName(), is("Test")); YangTypeDef typedef = (Y... | /**
* Checks bit statement with typedef with referred leaf.
*/ | Checks bit statement with typedef with referred leaf | processBitTypedefReferredLeafStatement | {
"repo_name": "VinodKumarS-Huawei/ietf96yang",
"path": "utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/parser/impl/listeners/BitListenerTest.java",
"license": "apache-2.0",
"size": 15919
} | [
"java.io.IOException",
"java.util.ListIterator",
"java.util.Map",
"org.hamcrest.MatcherAssert",
"org.hamcrest.core.Is",
"org.junit.Test",
"org.onosproject.yangutils.datamodel.YangBit",
"org.onosproject.yangutils.datamodel.YangBits",
"org.onosproject.yangutils.datamodel.YangDerivedInfo",
"org.onosp... | import java.io.IOException; import java.util.ListIterator; import java.util.Map; import org.hamcrest.MatcherAssert; import org.hamcrest.core.Is; import org.junit.Test; import org.onosproject.yangutils.datamodel.YangBit; import org.onosproject.yangutils.datamodel.YangBits; import org.onosproject.yangutils.datamodel.Yang... | import java.io.*; import java.util.*; import org.hamcrest.*; import org.hamcrest.core.*; import org.junit.*; import org.onosproject.yangutils.datamodel.*; import org.onosproject.yangutils.datamodel.utils.builtindatatype.*; import org.onosproject.yangutils.parser.exceptions.*; | [
"java.io",
"java.util",
"org.hamcrest",
"org.hamcrest.core",
"org.junit",
"org.onosproject.yangutils"
] | java.io; java.util; org.hamcrest; org.hamcrest.core; org.junit; org.onosproject.yangutils; | 431,075 |
public Timestamp getServiceDate ()
{
return (Timestamp)get_Value(COLUMNNAME_ServiceDate);
} | Timestamp function () { return (Timestamp)get_Value(COLUMNNAME_ServiceDate); } | /** Get Service date.
@return Date service was provided
*/ | Get Service date | getServiceDate | {
"repo_name": "pplatek/adempiere",
"path": "base/src/org/compiere/model/X_C_ServiceLevelLine.java",
"license": "gpl-2.0",
"size": 6350
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,833,239 |
public void addPopulators(DatabasePopulator... populators) {
this.populators.addAll(Arrays.asList(populators));
} | void function(DatabasePopulator... populators) { this.populators.addAll(Arrays.asList(populators)); } | /**
* Add one or more populators to the list of delegates.
*/ | Add one or more populators to the list of delegates | addPopulators | {
"repo_name": "boggad/jdk9-sample",
"path": "sample-catalog/spring-jdk9/src/spring.jdbc/org/springframework/jdbc/datasource/init/CompositeDatabasePopulator.java",
"license": "mit",
"size": 2563
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 2,805,150 |
@Override
protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) {
super.collectNewChildDescriptors(newChildDescriptors, object);
} | void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); } | /**
* This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children
* that can be created under this object.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object. | collectNewChildDescriptors | {
"repo_name": "sohaniwso2/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/OAuthMediatorOutputConnectorItemProvider.java",
"license": "apache-2.0",
"size": 2900
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 1,118,836 |
@Generated
@Selector("initWithURL:")
public native HMAccessorySetupPayload initWithURL(NSURL setupPayloadURL); | @Selector(STR) native HMAccessorySetupPayload function(NSURL setupPayloadURL); | /**
* Creates a new accessory setup payload to add an accessory to the home.
*
* @param setupPayloadURL The HomeKit setup payload for the accessory being added to the home.
* @return Returns an accessory setup payload object if successful or nil on error.
*/ | Creates a new accessory setup payload to add an accessory to the home | initWithURL | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/homekit/HMAccessorySetupPayload.java",
"license": "apache-2.0",
"size": 5294
} | [
"org.moe.natj.objc.ann.Selector"
] | import org.moe.natj.objc.ann.Selector; | import org.moe.natj.objc.ann.*; | [
"org.moe.natj"
] | org.moe.natj; | 407,912 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.