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
public static boolean contains(Collection stringCollection, String value) { if (stringCollection == null || value == null) return false; if (value.length() == 0) return false; for (Iterator i = stringCollection.iterator(); i.hasNext();) { Object o = i.next(); if (!(o instanceof String)) continue; i...
static boolean function(Collection stringCollection, String value) { if (stringCollection == null value == null) return false; if (value.length() == 0) return false; for (Iterator i = stringCollection.iterator(); i.hasNext();) { Object o = i.next(); if (!(o instanceof String)) continue; if (value.equals((String) o)) re...
/** * Determine if a String is contained in a String Collection * * @param stringCollection * The collection of (String) to scan * @param value * The value to look for * @return true if the string was found */
Determine if a String is contained in a String Collection
contains
{ "repo_name": "marktriggs/nyu-sakai-10.4", "path": "kernel/kernel-util/src/main/java/org/sakaiproject/util/StringUtil.java", "license": "apache-2.0", "size": 13828 }
[ "java.util.Collection", "java.util.Iterator" ]
import java.util.Collection; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,331,775
public void setTimestamp(Date timestamp) { this.timestamp = timestamp; }
void function(Date timestamp) { this.timestamp = timestamp; }
/** * The metric timestamp */
The metric timestamp
setTimestamp
{ "repo_name": "punkhorn/camel-upstream", "path": "components/camel-aws-cw/src/main/java/org/apache/camel/component/aws/cw/CwConfiguration.java", "license": "apache-2.0", "size": 4403 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
962,817
public TResultSet getColumnStats(String dbName, String tableName) throws ImpalaException { Table table = impaladCatalog_.getTable(dbName, tableName); TResultSet result = new TResultSet(); TResultSetMetadata resultSchema = new TResultSetMetadata(); result.setSchema(resultSchema); resultSchema...
TResultSet function(String dbName, String tableName) throws ImpalaException { Table table = impaladCatalog_.getTable(dbName, tableName); TResultSet result = new TResultSet(); TResultSetMetadata resultSchema = new TResultSetMetadata(); result.setSchema(resultSchema); resultSchema.addToColumns(new TColumn(STR, Type.STRIN...
/** * Generate result set and schema for a SHOW COLUMN STATS command. */
Generate result set and schema for a SHOW COLUMN STATS command
getColumnStats
{ "repo_name": "924060929/impala-frontend", "path": "fe/src/main/java/org/apache/impala/service/Frontend.java", "license": "apache-2.0", "size": 55472 }
[ "org.apache.impala.catalog.Column", "org.apache.impala.catalog.Table", "org.apache.impala.catalog.Type", "org.apache.impala.common.ImpalaException", "org.apache.impala.thrift.TColumn", "org.apache.impala.thrift.TResultSet", "org.apache.impala.thrift.TResultSetMetadata", "org.apache.impala.util.TResult...
import org.apache.impala.catalog.Column; import org.apache.impala.catalog.Table; import org.apache.impala.catalog.Type; import org.apache.impala.common.ImpalaException; import org.apache.impala.thrift.TColumn; import org.apache.impala.thrift.TResultSet; import org.apache.impala.thrift.TResultSetMetadata; import org.apa...
import org.apache.impala.catalog.*; import org.apache.impala.common.*; import org.apache.impala.thrift.*; import org.apache.impala.util.*;
[ "org.apache.impala" ]
org.apache.impala;
1,457,193
private void dumpConfig() { if (log.isInfoEnabled()) { Set<String> keys = values.keySet(); List<String> list = new ArrayList<String>(keys.size()); List<String> sensitiveKeys = Arrays.asList(getSensitiveKeys()); list.addAll(keys); Collections.sort(l...
void function() { if (log.isInfoEnabled()) { Set<String> keys = values.keySet(); List<String> list = new ArrayList<String>(keys.size()); List<String> sensitiveKeys = Arrays.asList(getSensitiveKeys()); list.addAll(keys); Collections.sort(list); for (String key : list) { String value = "***"; if (!sensitiveKeys.contains(...
/** * Dump all configuration to the log. * this should probably be DEBUG, but as it will usually happen only once, * during the startup, is not that a roblem to use INFO. */
Dump all configuration to the log. this should probably be DEBUG, but as it will usually happen only once, during the startup, is not that a roblem to use INFO
dumpConfig
{ "repo_name": "jtux270/translate", "path": "ovirt/3.6_source/backend/manager/modules/uutils/src/main/java/org/ovirt/engine/core/uutils/config/ShellLikeConfd.java", "license": "gpl-3.0", "size": 18756 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.Collections", "java.util.List", "java.util.Set" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
318,885
public int error(String tag, Object message) { return Log.e(tag, String.valueOf(message)); }
int function(String tag, Object message) { return Log.e(tag, String.valueOf(message)); }
/** * Sends an error log message * @param tag * The tag used to identify the log message * @param message * The message to display * @return * The number of bytes written */
Sends an error log message
error
{ "repo_name": "tmalahie/aQuery", "path": "main/java/aquery/com/aquery/$Utils.java", "license": "lgpl-3.0", "size": 65615 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
2,280,481
public BindableStatement parseStatement() throws SQLException { try { BindableStatement statement = parser.statement(); return statement; } catch (RecognitionException e) { throw PhoenixParserException.newException(e, parser.getTokenNames()); } catch (Unsu...
BindableStatement function() throws SQLException { try { BindableStatement statement = parser.statement(); return statement; } catch (RecognitionException e) { throw PhoenixParserException.newException(e, parser.getTokenNames()); } catch (UnsupportedOperationException e) { throw new SQLFeatureNotSupportedException(e); ...
/** * Parses the input as a SQL select or upsert statement. * @throws SQLException */
Parses the input as a SQL select or upsert statement
parseStatement
{ "repo_name": "elilevine/apache-phoenix", "path": "phoenix-core/src/main/java/org/apache/phoenix/parse/SQLParser.java", "license": "apache-2.0", "size": 7097 }
[ "java.sql.SQLException", "java.sql.SQLFeatureNotSupportedException", "org.antlr.runtime.RecognitionException", "org.apache.phoenix.exception.PhoenixParserException" ]
import java.sql.SQLException; import java.sql.SQLFeatureNotSupportedException; import org.antlr.runtime.RecognitionException; import org.apache.phoenix.exception.PhoenixParserException;
import java.sql.*; import org.antlr.runtime.*; import org.apache.phoenix.exception.*;
[ "java.sql", "org.antlr.runtime", "org.apache.phoenix" ]
java.sql; org.antlr.runtime; org.apache.phoenix;
220,024
public static <T> void addAll(Collection<T> coll, Iterable<T> src) { addAll(coll, src.iterator()); }
static <T> void function(Collection<T> coll, Iterable<T> src) { addAll(coll, src.iterator()); }
/** * Appends the contents of an iterable object to the passed collection. */
Appends the contents of an iterable object to the passed collection
addAll
{ "repo_name": "sirinath/kdgcommons", "path": "src/main/java/net/sf/kdgcommons/collections/CollectionUtil.java", "license": "apache-2.0", "size": 25454 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,461,077
@Nullable public DeviceCompliancePolicyDeviceStateSummary patch(@Nonnull final DeviceCompliancePolicyDeviceStateSummary sourceDeviceCompliancePolicyDeviceStateSummary) throws ClientException { return send(HttpMethod.PATCH, sourceDeviceCompliancePolicyDeviceStateSummary); }
DeviceCompliancePolicyDeviceStateSummary function(@Nonnull final DeviceCompliancePolicyDeviceStateSummary sourceDeviceCompliancePolicyDeviceStateSummary) throws ClientException { return send(HttpMethod.PATCH, sourceDeviceCompliancePolicyDeviceStateSummary); }
/** * Patches this DeviceCompliancePolicyDeviceStateSummary with a source * * @param sourceDeviceCompliancePolicyDeviceStateSummary the source object with updates * @return the updated DeviceCompliancePolicyDeviceStateSummary * @throws ClientException this exception occurs if the request was un...
Patches this DeviceCompliancePolicyDeviceStateSummary with a source
patch
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/DeviceCompliancePolicyDeviceStateSummaryRequest.java", "license": "mit", "size": 7316 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.DeviceCompliancePolicyDeviceStateSummary", "javax.annotation.Nonnull" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.DeviceCompliancePolicyDeviceStateSummary; import javax.annotation.Nonnull;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
721,941
public List<ParameterContract> queryParameters() { return this.queryParameters; }
List<ParameterContract> function() { return this.queryParameters; }
/** * Get the queryParameters property: Collection of operation request query parameters. * * @return the queryParameters value. */
Get the queryParameters property: Collection of operation request query parameters
queryParameters
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/models/RequestContract.java", "license": "mit", "size": 4087 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,062,732
public void add(ReservoirSampleWorkspace workspace, double d) { if (this.empty()) { this.min = d; this.max = d; } else { this.min = Math.min(this.min, d); this.max = Math.max(this.max, d); } this.count++; int index = workspace.s...
void function(ReservoirSampleWorkspace workspace, double d) { if (this.empty()) { this.min = d; this.max = d; } else { this.min = Math.min(this.min, d); this.max = Math.max(this.max, d); } this.count++; int index = workspace.sampleIndex(); if (index >= 0) this.samples[index] = d; }
/** * Here is a number from the distribution; sample it. */
Here is a number from the distribution; sample it
add
{ "repo_name": "mbudiu-vmw/hiero", "path": "platform/src/main/java/org/hillview/sketches/results/SampleSet.java", "license": "apache-2.0", "size": 6897 }
[ "org.hillview.sketches.ReservoirSampleWorkspace" ]
import org.hillview.sketches.ReservoirSampleWorkspace;
import org.hillview.sketches.*;
[ "org.hillview.sketches" ]
org.hillview.sketches;
1,214,744
protected String getCOMMENT_CLOSEToken(EObject semanticObject, RuleCall ruleCall, INode node) { if (node != null) return getTokenText(node); return "-->"; }
String function(EObject semanticObject, RuleCall ruleCall, INode node) { if (node != null) return getTokenText(node); return "-->"; }
/** * terminal COMMENT_CLOSE returns ecore::EString:'-->'; */
terminal COMMENT_CLOSE returns ecore::EString:'-->'
getCOMMENT_CLOSEToken
{ "repo_name": "virenerus/freemarker-editor", "path": "org.github.freemarker.editor/src-gen/org/github/serializer/FreemarkerEditorSyntacticSequencer.java", "license": "gpl-2.0", "size": 3961 }
[ "org.eclipse.emf.ecore.EObject", "org.eclipse.xtext.RuleCall", "org.eclipse.xtext.nodemodel.INode" ]
import org.eclipse.emf.ecore.EObject; import org.eclipse.xtext.RuleCall; import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.emf.ecore.*; import org.eclipse.xtext.*; import org.eclipse.xtext.nodemodel.*;
[ "org.eclipse.emf", "org.eclipse.xtext" ]
org.eclipse.emf; org.eclipse.xtext;
2,856,348
private Graph<String> requiresPublicGraph(Configuration cf) { Graph.Builder<String> builder = new Graph.Builder<>(); for (ResolvedModule resolvedModule : cf.modules()) { ModuleDescriptor descriptor = resolvedModule.reference().descriptor(); String mn = descriptor.name(); ...
Graph<String> function(Configuration cf) { Graph.Builder<String> builder = new Graph.Builder<>(); for (ResolvedModule resolvedModule : cf.modules()) { ModuleDescriptor descriptor = resolvedModule.reference().descriptor(); String mn = descriptor.name(); descriptor.requires().stream() .filter(d -> d.modifiers().contains(...
/** * Returns a Graph containing only requires public edges * with transitive reduction. */
Returns a Graph containing only requires public edges with transitive reduction
requiresPublicGraph
{ "repo_name": "FauxFaux/jdk9-jdk", "path": "make/src/classes/build/tools/jigsaw/GenGraphs.java", "license": "gpl-2.0", "size": 9512 }
[ "java.lang.module.Configuration", "java.lang.module.ModuleDescriptor", "java.lang.module.ResolvedModule" ]
import java.lang.module.Configuration; import java.lang.module.ModuleDescriptor; import java.lang.module.ResolvedModule;
import java.lang.module.*;
[ "java.lang" ]
java.lang;
331,381
public void play2(Map<String, ?> playOptions) { log.debug("play2 options: {}", playOptions.toString()); // get the transition type String transition = (String) playOptions.get("transition"); String streamName = (String) playOptions.get("streamName"); String oldStreamName = (String) playOptions.get(...
void function(Map<String, ?> playOptions) { log.debug(STR, playOptions.toString()); String transition = (String) playOptions.get(STR); String streamName = (String) playOptions.get(STR); String oldStreamName = (String) playOptions.get(STR); int start = (Integer) playOptions.get("start"); int length = (Integer) playOptio...
/** * Dynamic streaming play method. * * The following properties are supported on the play options: * <pre> streamName: String. The name of the stream to play or the new stream to switch to. oldStreamName: String. The name of the initial stream that needs to be switched out. This is not needed and i...
Dynamic streaming play method. The following properties are supported on the play options: <code>
play2
{ "repo_name": "cwpenhale/red5-mobileconsole", "path": "red5_server/src/main/java/org/red5/server/stream/StreamService.java", "license": "apache-2.0", "size": 30312 }
[ "java.util.Map", "org.red5.server.api.IConnection", "org.red5.server.api.Red5", "org.red5.server.api.stream.IPlayItem", "org.red5.server.api.stream.IPlaylistSubscriberStream", "org.red5.server.api.stream.IStreamCapableConnection", "org.red5.server.api.stream.support.SimplePlayItem", "org.red5.server.n...
import java.util.Map; import org.red5.server.api.IConnection; import org.red5.server.api.Red5; import org.red5.server.api.stream.IPlayItem; import org.red5.server.api.stream.IPlaylistSubscriberStream; import org.red5.server.api.stream.IStreamCapableConnection; import org.red5.server.api.stream.support.SimplePlayItem; i...
import java.util.*; import org.red5.server.api.*; import org.red5.server.api.stream.*; import org.red5.server.api.stream.support.*; import org.red5.server.net.rtmp.status.*;
[ "java.util", "org.red5.server" ]
java.util; org.red5.server;
1,297,836
public static DnsServerAddresses sequential(Iterable<? extends InetSocketAddress> addresses) { return sequential0(sanitize(addresses)); }
static DnsServerAddresses function(Iterable<? extends InetSocketAddress> addresses) { return sequential0(sanitize(addresses)); }
/** * Returns the {@link DnsServerAddresses} that yields the specified {@code addresses} sequentially. Once the * last address is yielded, it will start again from the first address. */
Returns the <code>DnsServerAddresses</code> that yields the specified addresses sequentially. Once the last address is yielded, it will start again from the first address
sequential
{ "repo_name": "jongyeol/netty", "path": "resolver-dns/src/main/java/io/netty/resolver/dns/DnsServerAddresses.java", "license": "apache-2.0", "size": 10580 }
[ "java.net.InetSocketAddress" ]
import java.net.InetSocketAddress;
import java.net.*;
[ "java.net" ]
java.net;
2,596,960
@Override protected void setStandardBounds(final int x, final int y, final int w, final int h) { Rectangle oldBounds = getBounds(); // set bounds of big box getBigPort().setBounds(x, y, w, h); getBorderFig().setBounds(x, y, w, h); int currentHeight ...
void function(final int x, final int y, final int w, final int h) { Rectangle oldBounds = getBounds(); getBigPort().setBounds(x, y, w, h); getBorderFig().setBounds(x, y, w, h); int currentHeight = 0; if (getStereotypeFig().isVisible()) { int stereotypeHeight = getStereotypeFig().getMinimumSize().height; getStereotypeFi...
/** * Sets the bounds, but the size will be at least the one returned by * {@link #getMinimumSize()}, unless checking of size is disabled.<p> * * @param x Desired X coordinate of upper left corner * * @param y Desired Y coordinate of upper left corner * * @param w Desi...
Sets the bounds, but the size will be at least the one returned by <code>#getMinimumSize()</code>, unless checking of size is disabled
setStandardBounds
{ "repo_name": "ckaestne/LEADT", "path": "workspace/argouml_diagrams/argouml-app/src/org/argouml/uml/diagram/static_structure/ui/FigStereotypeDeclaration.java", "license": "gpl-3.0", "size": 10879 }
[ "java.awt.Rectangle" ]
import java.awt.Rectangle;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,040,076
public static Iterator<DoublePointRectangle> createRandomSFCBasedSample(Cursor<DoublePointRectangle> rectangles, int sampleSize, int samplerType){ // read data ReservoirSampler sampler = new ReservoirSampler( new Mapper<DoublePointRectangle, Long>( toSFC, rectangles) , sampleSize , sam...
static Iterator<DoublePointRectangle> function(Cursor<DoublePointRectangle> rectangles, int sampleSize, int samplerType){ ReservoirSampler sampler = new ReservoirSampler( new Mapper<DoublePointRectangle, Long>( toSFC, rectangles) , sampleSize , samplerType); Number[] pairs = null; final Set<Long> filter = new HashSet<L...
/** * cursor should implement reset method! * @param rectangles * @param sampleSize * @param samplerType * @return */
cursor should implement reset method
createRandomSFCBasedSample
{ "repo_name": "hannoman/xxl", "path": "test/xxl/core/spatial/HistogramUtils.java", "license": "lgpl-3.0", "size": 3057 }
[ "java.util.HashSet", "java.util.Iterator", "java.util.Set", "xxl.core.cursors.Cursor", "xxl.core.cursors.mappers.Mapper", "xxl.core.cursors.mappers.ReservoirSampler", "xxl.core.spatial.rectangles.DoublePointRectangle" ]
import java.util.HashSet; import java.util.Iterator; import java.util.Set; import xxl.core.cursors.Cursor; import xxl.core.cursors.mappers.Mapper; import xxl.core.cursors.mappers.ReservoirSampler; import xxl.core.spatial.rectangles.DoublePointRectangle;
import java.util.*; import xxl.core.cursors.*; import xxl.core.cursors.mappers.*; import xxl.core.spatial.rectangles.*;
[ "java.util", "xxl.core.cursors", "xxl.core.spatial" ]
java.util; xxl.core.cursors; xxl.core.spatial;
1,549,173
@Metadata(description = "To use a http proxy to configure the port number.", label = "proxy") public void setProxyPort(Integer proxyPort) { this.proxyPort = proxyPort; }
@Metadata(description = STR, label = "proxy") void function(Integer proxyPort) { this.proxyPort = proxyPort; }
/** * To use a http proxy to configure the port number. */
To use a http proxy to configure the port number
setProxyPort
{ "repo_name": "jamesnetherton/camel", "path": "components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java", "license": "apache-2.0", "size": 67091 }
[ "org.apache.camel.spi.Metadata" ]
import org.apache.camel.spi.Metadata;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
1,711,601
public List<String> buildOrderByList() { List<String> returnList = new ArrayList(); returnList.add(KFSPropertyConstants.SELECTED_ORGANIZATION_CHART_OF_ACCOUNTS_CODE); returnList.add(KFSPropertyConstants.SELECTED_ORGANIZATION_CODE); returnList.add(KFSPropertyConstants.PERSON_NAME)...
List<String> function() { List<String> returnList = new ArrayList(); returnList.add(KFSPropertyConstants.SELECTED_ORGANIZATION_CHART_OF_ACCOUNTS_CODE); returnList.add(KFSPropertyConstants.SELECTED_ORGANIZATION_CODE); returnList.add(KFSPropertyConstants.PERSON_NAME); returnList.add(KFSPropertyConstants.EMPLID); returnLi...
/** * builds orderByList for sort order. * * @return List<String> returnList */
builds orderByList for sort order
buildOrderByList
{ "repo_name": "ua-eas/ua-kfs-5.3", "path": "work/src/org/kuali/kfs/module/bc/document/service/impl/BudgetConstructionPositionFundingDetailReportServiceImpl.java", "license": "agpl-3.0", "size": 32579 }
[ "java.util.ArrayList", "java.util.List", "org.kuali.kfs.sys.KFSPropertyConstants" ]
import java.util.ArrayList; import java.util.List; import org.kuali.kfs.sys.KFSPropertyConstants;
import java.util.*; import org.kuali.kfs.sys.*;
[ "java.util", "org.kuali.kfs" ]
java.util; org.kuali.kfs;
2,838,455
public int setUp(int initialCapacity) { int capacity; capacity = super.setUp(initialCapacity); _set = new Object[capacity]; Arrays.fill(_set, FREE); return capacity; }
int function(int initialCapacity) { int capacity; capacity = super.setUp(initialCapacity); _set = new Object[capacity]; Arrays.fill(_set, FREE); return capacity; }
/** * initializes the Object set of this hash table. * * @param initialCapacity an <code>int</code> value * @return an <code>int</code> value */
initializes the Object set of this hash table
setUp
{ "repo_name": "collectivemedia/trove", "path": "src/gnu/trove/impl/hash/TObjectHash.java", "license": "lgpl-2.1", "size": 20561 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,809,428
public void delete(String fileID) throws IOException, RestException;
void function(String fileID) throws IOException, RestException;
/** * Delete a file from Box.com * * @param fileID * ID of the file to delete * @throws IOException * @throws RestException */
Delete a file from Box.com
delete
{ "repo_name": "dagix5/backbox", "path": "BackBox/src/it/backbox/IBoxManager.java", "license": "apache-2.0", "size": 5120 }
[ "it.backbox.exception.RestException", "java.io.IOException" ]
import it.backbox.exception.RestException; import java.io.IOException;
import it.backbox.exception.*; import java.io.*;
[ "it.backbox.exception", "java.io" ]
it.backbox.exception; java.io;
2,473,996
@Test public void testCloneable() { assertCloneable(CreatorImplFactory.createBrusselNieuws()); assertCloneable(CreatorImplFactory.createNewBrusselNieuws()); }
void function() { assertCloneable(CreatorImplFactory.createBrusselNieuws()); assertCloneable(CreatorImplFactory.createNewBrusselNieuws()); }
/** * Tests if cloning a {@link CreatorImpl} works as expected. */
Tests if cloning a <code>CreatorImpl</code> works as expected
testCloneable
{ "repo_name": "seriousbusinessbe/java-brusselnieuws-rss", "path": "java/brusselnieuws-rss/brusselnieuws-rss-reader-model/src/test/java/be/seriousbusiness/brusselnieuws/rss/reader/model/impl/CreatorImplTest.java", "license": "mit", "size": 1204 }
[ "be.seriousbusiness.brusselnieuws.rss.reader.model.impl.factory.CreatorImplFactory" ]
import be.seriousbusiness.brusselnieuws.rss.reader.model.impl.factory.CreatorImplFactory;
import be.seriousbusiness.brusselnieuws.rss.reader.model.impl.factory.*;
[ "be.seriousbusiness.brusselnieuws" ]
be.seriousbusiness.brusselnieuws;
96,532
public VirtualMachineAgentInstanceView vmAgent() { return this.vmAgent; }
VirtualMachineAgentInstanceView function() { return this.vmAgent; }
/** * Get the vmAgent property: The VM Agent running on the virtual machine. * * @return the vmAgent value. */
Get the vmAgent property: The VM Agent running on the virtual machine
vmAgent
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetVMInstanceViewInner.java", "license": "mit", "size": 11466 }
[ "com.azure.resourcemanager.compute.models.VirtualMachineAgentInstanceView" ]
import com.azure.resourcemanager.compute.models.VirtualMachineAgentInstanceView;
import com.azure.resourcemanager.compute.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
201,324
@Indexable(type = IndexableType.REINDEX) public whp_sites_external_documents updatewhp_sites_external_documents( whp_sites_external_documents whp_sites_external_documents, boolean merge) throws SystemException { whp_sites_external_documents.setNew(false); return whp_sites_external_documentsPersistence.upda...
@Indexable(type = IndexableType.REINDEX) whp_sites_external_documents function( whp_sites_external_documents whp_sites_external_documents, boolean merge) throws SystemException { whp_sites_external_documents.setNew(false); return whp_sites_external_documentsPersistence.update(whp_sites_external_documents, merge); }
/** * Updates the whp_sites_external_documents in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners. * * @param whp_sites_external_documents the whp_sites_external_documents * @param merge whether to merge the whp_sites_external_documents with the current session. S...
Updates the whp_sites_external_documents in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners
updatewhp_sites_external_documents
{ "repo_name": "iucn-whp/world-heritage-outlook", "path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/src/com/iucn/whp/dbservice/service/base/whp_sites_external_documentsLocalServiceBaseImpl.java", "license": "gpl-2.0", "size": 177106 }
[ "com.liferay.portal.kernel.exception.SystemException", "com.liferay.portal.kernel.search.Indexable", "com.liferay.portal.kernel.search.IndexableType" ]
import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.search.Indexable; import com.liferay.portal.kernel.search.IndexableType;
import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.search.*;
[ "com.liferay.portal" ]
com.liferay.portal;
2,543,175
EClass getMultExp();
EClass getMultExp();
/** * Returns the meta object for class '{@link uk.ac.kcl.inf.robotics.rigidBodies.MultExp <em>Mult Exp</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Mult Exp</em>'. * @see uk.ac.kcl.inf.robotics.rigidBodies.MultExp * @generated */
Returns the meta object for class '<code>uk.ac.kcl.inf.robotics.rigidBodies.MultExp Mult Exp</code>'.
getMultExp
{ "repo_name": "szschaler/RigidBodies", "path": "uk.ac.kcl.inf.robotics.rigid_bodies/src-gen/uk/ac/kcl/inf/robotics/rigidBodies/RigidBodiesPackage.java", "license": "mit", "size": 163741 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
842,764
public static void compile(Collection sourceFiles) throws IOException, InterruptedException { compile(sourceFiles.iterator()); }
static void function(Collection sourceFiles) throws IOException, InterruptedException { compile(sourceFiles.iterator()); }
/** * Compile all the specified source files (must be of type File), * using the current system classpath. */
Compile all the specified source files (must be of type File), using the current system classpath
compile
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "utils/eclipselink.utils.workbench.test/utility/source/org/eclipse/persistence/tools/workbench/test/utility/JavaTools.java", "license": "epl-1.0", "size": 12099 }
[ "java.io.IOException", "java.util.Collection" ]
import java.io.IOException; import java.util.Collection;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,343,675
protected Image getImage(Plot plot, int series, int item, double x, double y) { // this method must be overridden if you want to display images return null; }
Image function(Plot plot, int series, int item, double x, double y) { return null; }
/** * Returns the image used to draw a single data item. * * @param plot the plot (can be used to obtain standard color information * etc). * @param series the series index. * @param item the item index. * @param x the x value of the item. * @param y the...
Returns the image used to draw a single data item
getImage
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/main/java/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java", "license": "lgpl-2.1", "size": 39151 }
[ "java.awt.Image", "org.jfree.chart.plot.Plot" ]
import java.awt.Image; import org.jfree.chart.plot.Plot;
import java.awt.*; import org.jfree.chart.plot.*;
[ "java.awt", "org.jfree.chart" ]
java.awt; org.jfree.chart;
2,238,393
public Collection getSOPInstanceRefMacros( Collection instanceUIDs ) throws FinderException { HashMap result = new HashMap(); HashMap mapRefSopSQ = new HashMap(); InstanceLocal instance; SeriesLocal series; StudyLocal study; Object o; for ( Iterator iter = instanceUIDs.iterator(...
Collection function( Collection instanceUIDs ) throws FinderException { HashMap result = new HashMap(); HashMap mapRefSopSQ = new HashMap(); InstanceLocal instance; SeriesLocal series; StudyLocal study; Object o; for ( Iterator iter = instanceUIDs.iterator() ; iter.hasNext() ; ) { o = iter.next(); instance = ( o instan...
/** * Get a collection of SOP Instance Reference Macro Datasets. * <p> * The parameter <code>instanceUIDs</code> can either use SOP Instance UIDs (String) or * Instance.pk values (Long). * * @throws FinderException * @ejb.interface-method * @ejb.transaction type="Required" */
Get a collection of SOP Instance Reference Macro Datasets. The parameter <code>instanceUIDs</code> can either use SOP Instance UIDs (String) or Instance.pk values (Long)
getSOPInstanceRefMacros
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4jboss-all/tags/DCM4CHEE_2_11_0_BRANCHA_TAG2/dcm4jboss-ejb/src/java/org/dcm4chex/archive/ejb/session/ContentManagerBean.java", "license": "apache-2.0", "size": 29659 }
[ "java.util.Collection", "java.util.HashMap", "java.util.Iterator", "javax.ejb.FinderException", "org.dcm4che.data.Dataset", "org.dcm4che.data.DcmElement", "org.dcm4che.dict.Tags", "org.dcm4chex.archive.ejb.interfaces.InstanceLocal", "org.dcm4chex.archive.ejb.interfaces.SeriesLocal", "org.dcm4chex....
import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import javax.ejb.FinderException; import org.dcm4che.data.Dataset; import org.dcm4che.data.DcmElement; import org.dcm4che.dict.Tags; import org.dcm4chex.archive.ejb.interfaces.InstanceLocal; import org.dcm4chex.archive.ejb.interfaces.Seri...
import java.util.*; import javax.ejb.*; import org.dcm4che.data.*; import org.dcm4che.dict.*; import org.dcm4chex.archive.ejb.interfaces.*;
[ "java.util", "javax.ejb", "org.dcm4che.data", "org.dcm4che.dict", "org.dcm4chex.archive" ]
java.util; javax.ejb; org.dcm4che.data; org.dcm4che.dict; org.dcm4chex.archive;
1,095,137
public Map<String, Object> getAccumulators(JobID jobID, ClassLoader loader) throws Exception { ActorGateway jobManagerGateway = getJobManagerGateway(); Future<Object> response; try { response = jobManagerGateway.ask(new RequestAccumulatorResults(jobID), timeout); } catch (Exception e) { throw new Exce...
Map<String, Object> function(JobID jobID, ClassLoader loader) throws Exception { ActorGateway jobManagerGateway = getJobManagerGateway(); Future<Object> response; try { response = jobManagerGateway.ask(new RequestAccumulatorResults(jobID), timeout); } catch (Exception e) { throw new Exception(STR, e); } Object result =...
/** * Requests and returns the accumulators for the given job identifier. Accumulators can be * requested while a is running or after it has finished. * @param jobID The job identifier of a job. * @param loader The class loader for deserializing the accumulator results. * @return A Map containing the accumula...
Requests and returns the accumulators for the given job identifier. Accumulators can be requested while a is running or after it has finished
getAccumulators
{ "repo_name": "DieBauer/flink", "path": "flink-clients/src/main/java/org/apache/flink/client/program/ClusterClient.java", "license": "apache-2.0", "size": 30098 }
[ "java.util.Map", "org.apache.flink.api.common.JobID", "org.apache.flink.api.common.accumulators.AccumulatorHelper", "org.apache.flink.runtime.instance.ActorGateway", "org.apache.flink.runtime.messages.accumulators.AccumulatorResultsErroneous", "org.apache.flink.runtime.messages.accumulators.AccumulatorRes...
import java.util.Map; import org.apache.flink.api.common.JobID; import org.apache.flink.api.common.accumulators.AccumulatorHelper; import org.apache.flink.runtime.instance.ActorGateway; import org.apache.flink.runtime.messages.accumulators.AccumulatorResultsErroneous; import org.apache.flink.runtime.messages.accumulato...
import java.util.*; import org.apache.flink.api.common.*; import org.apache.flink.api.common.accumulators.*; import org.apache.flink.runtime.instance.*; import org.apache.flink.runtime.messages.accumulators.*; import org.apache.flink.util.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
945,857
private SecureRandom getSecRan() { if (secRand == null) { secRand = new SecureRandom(); secRand.setSeed(System.currentTimeMillis()); } return secRand; }
SecureRandom function() { if (secRand == null) { secRand = new SecureRandom(); secRand.setSeed(System.currentTimeMillis()); } return secRand; }
/** * Returns the SecureRandom used to generate secure random data. * <p> * Creates and initializes if null. * </p> * * @return the SecureRandom used to generate secure random data */
Returns the SecureRandom used to generate secure random data. Creates and initializes if null.
getSecRan
{ "repo_name": "martingwhite/astor", "path": "examples/math_63/src/main/java/org/apache/commons/math/random/RandomDataImpl.java", "license": "gpl-2.0", "size": 37556 }
[ "java.security.SecureRandom" ]
import java.security.SecureRandom;
import java.security.*;
[ "java.security" ]
java.security;
2,168,289
public static Matrix euclidean(Matrix A, Matrix B) { return l2Distance(A, B); }
static Matrix function(Matrix A, Matrix B) { return l2Distance(A, B); }
/** * Compute the Euclidean distance matrix between row vectors in matrix A * and row vectors in matrix B. * * @param A data matrix with each row being a feature vector * * @param B data matrix with each row being a feature vector * * @return an n_A X n_B matrix with its (i, j) entry being Euclidean ...
Compute the Euclidean distance matrix between row vectors in matrix A and row vectors in matrix B
euclidean
{ "repo_name": "MingjieQian/LAML", "path": "src/ml/manifold/Manifold.java", "license": "apache-2.0", "size": 15540 }
[ "la.matrix.Matrix", "ml.utils.Matlab" ]
import la.matrix.Matrix; import ml.utils.Matlab;
import la.matrix.*; import ml.utils.*;
[ "la.matrix", "ml.utils" ]
la.matrix; ml.utils;
2,257,237
// saved instance PKCE manger key private static final String SIS_KEY_PKCE_CODE_VERIFIER = "SIS_KEY_PKCE_CODE_VERIFIER"; public interface SecurityProvider { SecureRandom getSecureRandom(); }
static final String SIS_KEY_PKCE_CODE_VERIFIER = STR; public interface SecurityProvider { SecureRandom function(); }
/** * Gets a SecureRandom implementation for use during authentication. */
Gets a SecureRandom implementation for use during authentication
getSecureRandom
{ "repo_name": "dropbox/dropbox-sdk-java", "path": "src/main/java/com/dropbox/core/android/AuthActivity.java", "license": "mit", "size": 31706 }
[ "java.security.SecureRandom" ]
import java.security.SecureRandom;
import java.security.*;
[ "java.security" ]
java.security;
1,546,822
public static Collection<Descriptor> getSortedDescriptorsForGlobalConfigByDescriptor() { return getSortedDescriptorsForGlobalConfigByDescriptor(descriptor -> true); }
static Collection<Descriptor> function() { return getSortedDescriptorsForGlobalConfigByDescriptor(descriptor -> true); }
/** * Like {@link #getSortedDescriptorsForGlobalConfigByDescriptor(Predicate)} but with a constant truth predicate, to include all descriptors. */
Like <code>#getSortedDescriptorsForGlobalConfigByDescriptor(Predicate)</code> but with a constant truth predicate, to include all descriptors
getSortedDescriptorsForGlobalConfigByDescriptor
{ "repo_name": "rsandell/jenkins", "path": "core/src/main/java/hudson/Functions.java", "license": "mit", "size": 84169 }
[ "hudson.model.Descriptor", "java.util.Collection" ]
import hudson.model.Descriptor; import java.util.Collection;
import hudson.model.*; import java.util.*;
[ "hudson.model", "java.util" ]
hudson.model; java.util;
2,576,180
protected void sequence_ProvidedInterfaceDefinition(EObject context, ProvidedInterfaceDefinition semanticObject) { genericSequencer.createSequence(context, semanticObject); }
void function(EObject context, ProvidedInterfaceDefinition semanticObject) { genericSequencer.createSequence(context, semanticObject); }
/** * Constraint: * (annotationsList=AnnotationsList? role='provides' signature=[InterfaceDefinition|QualifiedName] name=ID (collection?='[' collectionsize=INT?)?) */
Constraint: (annotationsList=AnnotationsList? role='provides' signature=[InterfaceDefinition|QualifiedName] name=ID (collection?='[' collectionsize=INT?)?)
sequence_ProvidedInterfaceDefinition
{ "repo_name": "StephaneSeyvoz/mindEd", "path": "org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/serializer/FractalSemanticSequencer.java", "license": "lgpl-3.0", "size": 23719 }
[ "org.eclipse.emf.ecore.EObject", "org.ow2.mindEd.adl.textual.fractal.ProvidedInterfaceDefinition" ]
import org.eclipse.emf.ecore.EObject; import org.ow2.mindEd.adl.textual.fractal.ProvidedInterfaceDefinition;
import org.eclipse.emf.ecore.*; import org.ow2.*;
[ "org.eclipse.emf", "org.ow2" ]
org.eclipse.emf; org.ow2;
62,403
@Test @Verifies(value = "should create program workflows", method = "saveProgram(Program)") public void saveProgram_shouldCreateProgramWorkflows() throws Exception { int numBefore = Context.getProgramWorkflowService().getAllPrograms().size(); Program program = new Program(); program.setName("TEST PROGR...
@Verifies(value = STR, method = STR) void function() throws Exception { int numBefore = Context.getProgramWorkflowService().getAllPrograms().size(); Program program = new Program(); program.setName(STR); program.setDescription(STR); program.setConcept(cs.getConcept(3)); ProgramWorkflow workflow = new ProgramWorkflow();...
/** * Tests creating a new program containing workflows and states * * @see ProgramWorkflowService#saveProgram(Program) */
Tests creating a new program containing workflows and states
saveProgram_shouldCreateProgramWorkflows
{ "repo_name": "dcmul/openmrs-core", "path": "api/src/test/java/org/openmrs/api/ProgramWorkflowServiceTest.java", "license": "mpl-2.0", "size": 19089 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.junit.Assert", "org.openmrs.Program", "org.openmrs.ProgramWorkflow", "org.openmrs.ProgramWorkflowState", "org.openmrs.api.context.Context", "org.openmrs.test.TestUtil", "org.openmrs.test.Verifies" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.junit.Assert; import org.openmrs.Program; import org.openmrs.ProgramWorkflow; import org.openmrs.ProgramWorkflowState; import org.openmrs.api.context.Context; import org.openmrs.test.TestUtil; import org.openmrs.test.Verifies;
import java.util.*; import org.junit.*; import org.openmrs.*; import org.openmrs.api.context.*; import org.openmrs.test.*;
[ "java.util", "org.junit", "org.openmrs", "org.openmrs.api", "org.openmrs.test" ]
java.util; org.junit; org.openmrs; org.openmrs.api; org.openmrs.test;
113,887
public SpdyStream pushStream(int associatedStreamId, List<Header> requestHeaders, boolean out) throws IOException { if (client) throw new IllegalStateException("Client cannot push requests."); if (protocol != Protocol.HTTP_2) throw new IllegalStateException("protocol != HTTP_2"); return newStream(as...
SpdyStream function(int associatedStreamId, List<Header> requestHeaders, boolean out) throws IOException { if (client) throw new IllegalStateException(STR); if (protocol != Protocol.HTTP_2) throw new IllegalStateException(STR); return newStream(associatedStreamId, requestHeaders, out, false); }
/** * Returns a new server-initiated stream. * * @param associatedStreamId the stream that triggered the sender to create * this stream. * @param out true to create an output stream that we can use to send data * to the remote peer. Corresponds to {@code FLAG_FIN}. */
Returns a new server-initiated stream
pushStream
{ "repo_name": "10045125/okhttp", "path": "okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java", "license": "apache-2.0", "size": 29987 }
[ "com.squareup.okhttp.Protocol", "java.io.IOException", "java.util.List" ]
import com.squareup.okhttp.Protocol; import java.io.IOException; import java.util.List;
import com.squareup.okhttp.*; import java.io.*; import java.util.*;
[ "com.squareup.okhttp", "java.io", "java.util" ]
com.squareup.okhttp; java.io; java.util;
2,035,661
private boolean DoInit() { this.recognizerPresent = SpeechRecognizer.isRecognitionAvailable(this.cordova.getActivity().getBaseContext()); return this.recognizerPresent; }
boolean function() { this.recognizerPresent = SpeechRecognizer.isRecognitionAvailable(this.cordova.getActivity().getBaseContext()); return this.recognizerPresent; }
/** * Initialize the speech recognizer by checking if one exists. */
Initialize the speech recognizer by checking if one exists
DoInit
{ "repo_name": "OJDevelopers/SpeechRecognitionPhonegap", "path": "src/android/SpeechRecognition.java", "license": "mit", "size": 8613 }
[ "android.speech.SpeechRecognizer" ]
import android.speech.SpeechRecognizer;
import android.speech.*;
[ "android.speech" ]
android.speech;
746,594
public Observable<ServiceResponse<ApiManagementServiceResourceInner>> beginRestoreWithServiceResponseAsync(String resourceGroupName, String serviceName, ApiManagementServiceBackupRestoreParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resour...
Observable<ServiceResponse<ApiManagementServiceResourceInner>> function(String resourceGroupName, String serviceName, ApiManagementServiceBackupRestoreParameters parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (serviceName == null) { throw new IllegalArgumentException(STR); ...
/** * Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete. * * @param resourceGroupName The name of the resource group. * @param serviceName The name...
Restores a backup of an API Management service created using the ApiManagementService_Backup operation on the current service. This is a long running operation and could take several minutes to complete
beginRestoreWithServiceResponseAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/apimanagement/mgmt-v2019_01_01/src/main/java/com/microsoft/azure/management/apimanagement/v2019_01_01/implementation/ApiManagementServicesInner.java", "license": "mit", "size": 134209 }
[ "com.microsoft.azure.management.apimanagement.v2019_01_01.ApiManagementServiceBackupRestoreParameters", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.management.apimanagement.v2019_01_01.ApiManagementServiceBackupRestoreParameters; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.management.apimanagement.v2019_01_01.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
399,114
@ThreadSafe Set<SkyKey> getTemporaryDirectDeps();
Set<SkyKey> getTemporaryDirectDeps();
/** * Returns the set of direct dependencies. This may only be called while the node is being * evaluated, that is, before {@link #setValue} and after {@link #markDirty}. */
Returns the set of direct dependencies. This may only be called while the node is being evaluated, that is, before <code>#setValue</code> and after <code>#markDirty</code>
getTemporaryDirectDeps
{ "repo_name": "charlieaustin/bazel", "path": "src/main/java/com/google/devtools/build/skyframe/NodeEntry.java", "license": "apache-2.0", "size": 12897 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
826,188
public void setProvider(ActionProvider provider) { mProvider = provider; }
void function(ActionProvider provider) { mProvider = provider; }
/** * Set the provider hosting this view, if applicable. * @hide Internal use only */
Set the provider hosting this view, if applicable
setProvider
{ "repo_name": "mateor/pdroid", "path": "android-4.0.3_r1/trunk/frameworks/base/core/java/android/widget/ActivityChooserView.java", "license": "gpl-3.0", "size": 29580 }
[ "android.view.ActionProvider" ]
import android.view.ActionProvider;
import android.view.*;
[ "android.view" ]
android.view;
165,911
public final void writeFloat(float val) throws IOException { writeInt(Float.floatToIntBits(val)); }
final void function(float val) throws IOException { writeInt(Float.floatToIntBits(val)); }
/** * Writes a 32-bit float to this output stream. The resulting output is the * 4 bytes resulting from calling Float.floatToIntBits(). * * @param val the float to be written. * @throws IOException If an error occurs attempting to write to this * DataOutputStream. ...
Writes a 32-bit float to this output stream. The resulting output is the 4 bytes resulting from calling Float.floatToIntBits()
writeFloat
{ "repo_name": "lynchlee/play-jmx", "path": "src/main/java/org/apache/cassandra/io/util/UnbufferedDataOutputStreamPlus.java", "license": "apache-2.0", "size": 13396 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,500,872
public static void privateCloudsListStretched(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().listByResourceGroup("group1", Context.NONE); }
static void function(com.azure.resourcemanager.avs.AvsManager manager) { manager.privateClouds().listByResourceGroup(STR, Context.NONE); }
/** * Sample code: PrivateClouds_List_Stretched. * * @param manager Entry point to AvsManager. */
Sample code: PrivateClouds_List_Stretched
privateCloudsListStretched
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/avs/azure-resourcemanager-avs/src/samples/java/com/azure/resourcemanager/avs/generated/PrivateCloudsListByResourceGroupSamples.java", "license": "mit", "size": 1257 }
[ "com.azure.core.util.Context" ]
import com.azure.core.util.Context;
import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
69,028
public void testInvalidTransactionDate() throws Exception { String[] inputTransactions = {testingYear + "BL1031497-----4100---ACEX07DI LGINVALDATE 00000Rite Quality Office Supplies Inc. 43.42D2096-02-11 ---------- ...
void function() throws Exception { String[] inputTransactions = {testingYear + STR, testingYear + STR}; DateFormat df = new SimpleDateFormat(DATE_FORMAT); String strToday = df.format(dateTimeService.getCurrentDate()); String[] fixedTransactionDatesAndAmounts = {testingYear + STR + strToday + STR, testingYear + STR + st...
/** * Tests that the scrubber considers invalid transaction dates to be errors. * * @throws Exception thrown if any exception is encountered for any reason */
Tests that the scrubber considers invalid transaction dates to be errors
testInvalidTransactionDate
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-core/src/test/java/org/kuali/kfs/gl/service/ScrubberServiceTest.java", "license": "agpl-3.0", "size": 285144 }
[ "java.text.DateFormat", "java.text.SimpleDateFormat", "org.kuali.kfs.gl.GeneralLedgerConstants" ]
import java.text.DateFormat; import java.text.SimpleDateFormat; import org.kuali.kfs.gl.GeneralLedgerConstants;
import java.text.*; import org.kuali.kfs.gl.*;
[ "java.text", "org.kuali.kfs" ]
java.text; org.kuali.kfs;
2,506,283
protected Queue createQueue(String name) { return ActiveMQJMSClient.createQueue(name); }
Queue function(String name) { return ActiveMQJMSClient.createQueue(name); }
/** * Factory method to create new Queue instances */
Factory method to create new Queue instances
createQueue
{ "repo_name": "franz1981/activemq-artemis", "path": "tests/joram-tests/src/test/java/org/apache/activemq/artemis/common/testjndi/TestContextFactory.java", "license": "apache-2.0", "size": 5832 }
[ "javax.jms.Queue", "org.apache.activemq.artemis.api.jms.ActiveMQJMSClient" ]
import javax.jms.Queue; import org.apache.activemq.artemis.api.jms.ActiveMQJMSClient;
import javax.jms.*; import org.apache.activemq.artemis.api.jms.*;
[ "javax.jms", "org.apache.activemq" ]
javax.jms; org.apache.activemq;
1,712,789
@Override public void onSynchronized(Synchronizer synchronizer) { stageCompleteTimestamp = System.currentTimeMillis(); Logger.debug(LOG_TAG, "onSynchronized."); SynchronizerConfiguration newConfig = synchronizer.save(); if (newConfig != null) { persistConfig(newConfig); } else { Log...
void function(Synchronizer synchronizer) { stageCompleteTimestamp = System.currentTimeMillis(); Logger.debug(LOG_TAG, STR); SynchronizerConfiguration newConfig = synchronizer.save(); if (newConfig != null) { persistConfig(newConfig); } else { Logger.warn(LOG_TAG, STR); } final SynchronizerSession synchronizerSession = ...
/** * We synced this engine! Persist timestamps and advance the session. * * @param synchronizer the <code>Synchronizer</code> that succeeded. */
We synced this engine! Persist timestamps and advance the session
onSynchronized
{ "repo_name": "Yukarumya/Yukarum-Redfoxes", "path": "mobile/android/services/src/main/java/org/mozilla/gecko/sync/stage/ServerSyncStage.java", "license": "mpl-2.0", "size": 23414 }
[ "org.mozilla.gecko.background.common.log.Logger", "org.mozilla.gecko.sync.SynchronizerConfiguration", "org.mozilla.gecko.sync.synchronizer.Synchronizer", "org.mozilla.gecko.sync.synchronizer.SynchronizerSession" ]
import org.mozilla.gecko.background.common.log.Logger; import org.mozilla.gecko.sync.SynchronizerConfiguration; import org.mozilla.gecko.sync.synchronizer.Synchronizer; import org.mozilla.gecko.sync.synchronizer.SynchronizerSession;
import org.mozilla.gecko.background.common.log.*; import org.mozilla.gecko.sync.*; import org.mozilla.gecko.sync.synchronizer.*;
[ "org.mozilla.gecko" ]
org.mozilla.gecko;
2,048,106
public void updateUI() { setUI((SliderUI)UIManager.getUI(this)); // The labels preferred size may be derived from the font // of the slider, so we must update the UI of the slider first, then // that of labels. This way when setSize is called the right // font is used. ...
void function() { setUI((SliderUI)UIManager.getUI(this)); updateLabelUIs(); }
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */
Resets the UI property to a value from the current look and feel
updateUI
{ "repo_name": "mirkosertic/Bytecoder", "path": "classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/javax/swing/JSlider.java", "license": "apache-2.0", "size": 55707 }
[ "javax.swing.plaf.SliderUI" ]
import javax.swing.plaf.SliderUI;
import javax.swing.plaf.*;
[ "javax.swing" ]
javax.swing;
1,026,262
private ScopeSubject assertScopeEnclosing(String label) { return assertScope(getLabeledStatement(label).enclosingScope); }
ScopeSubject function(String label) { return assertScope(getLabeledStatement(label).enclosingScope); }
/** * Returns a ScopeSubject for the scope containing the labeled statement. * * <p>Asserts that a statement with the given label existed in the code last passed to * parseAndRunTypeInference(). */
Returns a ScopeSubject for the scope containing the labeled statement. Asserts that a statement with the given label existed in the code last passed to parseAndRunTypeInference()
assertScopeEnclosing
{ "repo_name": "tiobe/closure-compiler", "path": "test/com/google/javascript/jscomp/TypeInferenceTest.java", "license": "apache-2.0", "size": 72060 }
[ "com.google.javascript.jscomp.ScopeSubject" ]
import com.google.javascript.jscomp.ScopeSubject;
import com.google.javascript.jscomp.*;
[ "com.google.javascript" ]
com.google.javascript;
1,427,784
protected static synchronized String generateAttachmentName() { Date now = new Date(); counter++; return new String (now.getTime() + counter + DEFAULT_EXTENSION); }
static synchronized String function() { Date now = new Date(); counter++; return new String (now.getTime() + counter + DEFAULT_EXTENSION); }
/** * Generate a unique attachment name. * * @return The name. */
Generate a unique attachment name
generateAttachmentName
{ "repo_name": "bmc/javautil", "path": "src/main/java/org/clapper/util/mail/AttachmentUtils.java", "license": "bsd-3-clause", "size": 1564 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
417,541
protected boolean bindAsUser(DirContext context, User user, String credentials) throws NamingException { if (credentials == null || user == null) return false; String dn = user.getDN(); if (dn == ...
boolean function(DirContext context, User user, String credentials) throws NamingException { if (credentials == null user == null) return false; String dn = user.getDN(); if (dn == null) return false; if (containerLog.isTraceEnabled()) { containerLog.trace(STR); } userCredentialsAdd(context, dn, credentials); boolean v...
/** * Check credentials by binding to the directory as the user * * @param context The directory context * @param user The User to be authenticated * @param credentials Authentication credentials * @return <code>true</code> if the credentials are validated * @exception NamingException...
Check credentials by binding to the directory as the user
bindAsUser
{ "repo_name": "Nickname0806/Test_Q4", "path": "java/org/apache/catalina/realm/JNDIRealm.java", "license": "apache-2.0", "size": 90063 }
[ "javax.naming.NamingException", "javax.naming.directory.DirContext" ]
import javax.naming.NamingException; import javax.naming.directory.DirContext;
import javax.naming.*; import javax.naming.directory.*;
[ "javax.naming" ]
javax.naming;
633,918
public Triple asTriple() { // Should we keep the triple around esp from the Quad(n,triple) constructor. // Still have s,p,o for quads. // Cost : one slot. // Saving - (re)creating triples. return Triple.create(subject, predicate, object); }
Triple function() { return Triple.create(subject, predicate, object); }
/** * Get as a triple - useful because quads often come in blocks for the same graph */
Get as a triple - useful because quads often come in blocks for the same graph
asTriple
{ "repo_name": "apache/jena", "path": "jena-arq/src/main/java/org/apache/jena/sparql/core/Quad.java", "license": "apache-2.0", "size": 8628 }
[ "org.apache.jena.graph.Triple" ]
import org.apache.jena.graph.Triple;
import org.apache.jena.graph.*;
[ "org.apache.jena" ]
org.apache.jena;
2,623,788
@Pure double getMaxLinearDeceleration(SpeedUnit unit);
double getMaxLinearDeceleration(SpeedUnit unit);
/** Returns the maximal linear deceleration of this object the given unit. * * @param unit the unit in which the deceleration will be given * @return the maximal linear deceleration of this object in the given unit, * always &gt;= 0. */
Returns the maximal linear deceleration of this object the given unit
getMaxLinearDeceleration
{ "repo_name": "gallandarakhneorg/afc", "path": "core/maths/mathphysics/src/main/java/org/arakhne/afc/math/physics/kinematic/linear/LinearAccelerationKinematic.java", "license": "apache-2.0", "size": 2923 }
[ "org.arakhne.afc.math.physics.SpeedUnit" ]
import org.arakhne.afc.math.physics.SpeedUnit;
import org.arakhne.afc.math.physics.*;
[ "org.arakhne.afc" ]
org.arakhne.afc;
2,854,648
public void setStoryboard(AomList<Storyboard> _value) { if (_value == null) throw new IllegalArgumentException(ModelMessages.getString( ErrorMessages.ARGUMENT_NOT_NULL, "storyboard")); storyboard = _value; for (Storyboard _element : _value) { if (_element != null) _element.setWebGallery_storyboa...
void function(AomList<Storyboard> _value) { if (_value == null) throw new IllegalArgumentException(ModelMessages.getString( ErrorMessages.ARGUMENT_NOT_NULL, STR)); storyboard = _value; for (Storyboard _element : _value) { if (_element != null) _element.setWebGallery_storyboard_parent(this); } }
/** * Set value of property storyboard * * @param _value - new element value */
Set value of property storyboard
setStoryboard
{ "repo_name": "bdaum/zoraPD", "path": "com.bdaum.zoom.model/src/com/bdaum/zoom/cat/model/group/webGallery/WebGalleryImpl.java", "license": "gpl-2.0", "size": 13348 }
[ "com.bdaum.aoModeling.runtime.AomList", "com.bdaum.aoModeling.runtime.ErrorMessages", "com.bdaum.aoModeling.runtime.ModelMessages" ]
import com.bdaum.aoModeling.runtime.AomList; import com.bdaum.aoModeling.runtime.ErrorMessages; import com.bdaum.aoModeling.runtime.ModelMessages;
import com.bdaum.*;
[ "com.bdaum" ]
com.bdaum;
1,509,017
public Long getCountOfDirectories(DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException { return DataSourceInfoUtilities.getCountOfTskFiles(provider.get(), currentDataSource, "meta_type=" + TskData.TSK_FS_META_T...
Long function(DataSource currentDataSource) throws SleuthkitCaseProvider.SleuthkitCaseProviderException, TskCoreException, SQLException { return DataSourceInfoUtilities.getCountOfTskFiles(provider.get(), currentDataSource, STR + TskData.TSK_FS_META_TYPE_ENUM.TSK_FS_META_TYPE_DIR.getValue() + STR + TskData.TSK_DB_FILES_...
/** * Get count of directories in a data source. * * @param currentDataSource The data source. * * @return The count. * * @throws SleuthkitCaseProviderException * @throws TskCoreException * @throws SQLException */
Get count of directories in a data source
getCountOfDirectories
{ "repo_name": "eugene7646/autopsy", "path": "Core/src/org/sleuthkit/autopsy/datasourcesummary/datamodel/TypesSummary.java", "license": "apache-2.0", "size": 5857 }
[ "java.sql.SQLException", "org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider", "org.sleuthkit.datamodel.DataSource", "org.sleuthkit.datamodel.TskCoreException", "org.sleuthkit.datamodel.TskData" ]
import java.sql.SQLException; import org.sleuthkit.autopsy.datasourcesummary.datamodel.SleuthkitCaseProvider; import org.sleuthkit.datamodel.DataSource; import org.sleuthkit.datamodel.TskCoreException; import org.sleuthkit.datamodel.TskData;
import java.sql.*; import org.sleuthkit.autopsy.datasourcesummary.datamodel.*; import org.sleuthkit.datamodel.*;
[ "java.sql", "org.sleuthkit.autopsy", "org.sleuthkit.datamodel" ]
java.sql; org.sleuthkit.autopsy; org.sleuthkit.datamodel;
2,849,946
private void animateHide(final View v, boolean animate) { v.animate().cancel(); if (!animate) { v.setAlpha(0f); v.setVisibility(View.INVISIBLE); return; }
void function(final View v, boolean animate) { v.animate().cancel(); if (!animate) { v.setAlpha(0f); v.setVisibility(View.INVISIBLE); return; }
/** * Hides a view. */
Hides a view
animateHide
{ "repo_name": "syslover33/ctank", "path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/com/android/systemui/statusbar/phone/StatusBarIconController.java", "license": "gpl-3.0", "size": 17903 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,764,589
public void setType(FormatterType type) { final String val = type.getValue(); if (!E_XML.equals(val) && !E_PLAIN.equals(val)) { throw new BuildException("Invalid formatter type: " + val); } formatterType = type; }
void function(FormatterType type) { final String val = type.getValue(); if (!E_XML.equals(val) && !E_PLAIN.equals(val)) { throw new BuildException(STR + val); } formatterType = type; }
/** * Set the type of the formatter. * @param type the type */
Set the type of the formatter
setType
{ "repo_name": "StetsiukRoman/checkstyle", "path": "src/main/java/com/puppycrawl/tools/checkstyle/ant/CheckstyleAntTask.java", "license": "lgpl-2.1", "size": 20906 }
[ "org.apache.tools.ant.BuildException" ]
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.*;
[ "org.apache.tools" ]
org.apache.tools;
166,179
@ResponseBody @PostMapping(value = "/adorationSecure/registerOneTimeMiss") public ResponseEntity<String> registerOneTimeMiss(@RequestBody final String body, final HttpSession session) { String resultString; ResponseEntity<String> result; try { CurrentUserInformationJson c...
@PostMapping(value = STR) ResponseEntity<String> function(@RequestBody final String body, final HttpSession session) { String resultString; ResponseEntity<String> result; try { CurrentUserInformationJson currentUserInformationJson = currentUserProvider.getUserInformation(session); if (!currentUserInformationJson.isRegi...
/** * Add a One-Time Missing Link. * * @param session is the actual HTTP session * @return list of hits as a JSON response */
Add a One-Time Missing Link
registerOneTimeMiss
{ "repo_name": "tkohegyi/adoration", "path": "adoration-application/modules/adoration-webapp/src/main/java/org/rockhill/adoration/web/controller/LinksController.java", "license": "gpl-3.0", "size": 12381 }
[ "com.google.gson.Gson", "javax.servlet.http.HttpSession", "org.rockhill.adoration.exception.SystemException", "org.rockhill.adoration.web.json.CurrentUserInformationJson", "org.rockhill.adoration.web.json.DeleteEntityJson", "org.springframework.http.HttpStatus", "org.springframework.http.ResponseEntity"...
import com.google.gson.Gson; import javax.servlet.http.HttpSession; import org.rockhill.adoration.exception.SystemException; import org.rockhill.adoration.web.json.CurrentUserInformationJson; import org.rockhill.adoration.web.json.DeleteEntityJson; import org.springframework.http.HttpStatus; import org.springframework....
import com.google.gson.*; import javax.servlet.http.*; import org.rockhill.adoration.exception.*; import org.rockhill.adoration.web.json.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*;
[ "com.google.gson", "javax.servlet", "org.rockhill.adoration", "org.springframework.http", "org.springframework.web" ]
com.google.gson; javax.servlet; org.rockhill.adoration; org.springframework.http; org.springframework.web;
2,421,327
public ResourcePattern prefixPattern() { return prefixPattern; }
ResourcePattern function() { return prefixPattern; }
/** * Gets the prefix pattern. * * @return the prefixPattern */
Gets the prefix pattern
prefixPattern
{ "repo_name": "mnlipp/jgrapes", "path": "org.jgrapes.http.freemarker/src/org/jgrapes/http/freemarker/FreeMarkerRequestHandler.java", "license": "agpl-3.0", "size": 14500 }
[ "org.jgrapes.http.ResourcePattern" ]
import org.jgrapes.http.ResourcePattern;
import org.jgrapes.http.*;
[ "org.jgrapes.http" ]
org.jgrapes.http;
1,706,172
List<Integer> getCounts(SearchQuery... conditions); @Deprecated public static class LegacyFindByCondition { private SearchQuery condition; private int pageSize = 5000; private int limit = Integer.MAX_VALUE; private int offset = 0; private final List<SearchFieldSorting> sort = new ArrayList...
List<Integer> getCounts(SearchQuery... conditions); public static class LegacyFindByCondition { private SearchQuery condition; private int pageSize = 5000; private int limit = Integer.MAX_VALUE; private int offset = 0; private final List<SearchFieldSorting> sort = new ArrayList<>(); public LegacyFindByCondition() { }
/** * Provide a count of the number of documents that match each of the requested * conditions. * * @param conditions * @return */
Provide a count of the number of documents that match each of the requested conditions
getCounts
{ "repo_name": "dremio/dremio-oss", "path": "services/datastore/src/main/java/com/dremio/datastore/api/LegacyIndexedStore.java", "license": "apache-2.0", "size": 4885 }
[ "com.dremio.datastore.SearchTypes", "java.util.ArrayList", "java.util.List" ]
import com.dremio.datastore.SearchTypes; import java.util.ArrayList; import java.util.List;
import com.dremio.datastore.*; import java.util.*;
[ "com.dremio.datastore", "java.util" ]
com.dremio.datastore; java.util;
638,984
void onMeasureEnd(); } //============================================== // CONSTRUCTOR & SETUP //============================================== BaseWaveformRenderer(@NonNull BaseFragment fragment) { super(fragment); processingBuffer = ProcessingBuffer.get(); signa...
void onMeasureEnd(); } BaseWaveformRenderer(@NonNull BaseFragment fragment) { super(fragment); processingBuffer = ProcessingBuffer.get(); signalConfiguration = SignalConfiguration.get(); signalConfiguration.addOnSignalPropertyChangeListener(this); resetWaveformScaleFactorsAndPositions(signalConfiguration.getVisibleChan...
/** * Listener that is invoked when signal measurement ends. */
Listener that is invoked when signal measurement ends
onMeasureEnd
{ "repo_name": "BackyardBrains/Backyard-Brains-Android-App", "path": "app/src/main/java/com/backyardbrains/drawing/BaseWaveformRenderer.java", "license": "gpl-3.0", "size": 38467 }
[ "androidx.annotation.NonNull", "com.backyardbrains.dsp.ProcessingBuffer", "com.backyardbrains.dsp.SignalConfiguration", "com.backyardbrains.ui.BaseFragment" ]
import androidx.annotation.NonNull; import com.backyardbrains.dsp.ProcessingBuffer; import com.backyardbrains.dsp.SignalConfiguration; import com.backyardbrains.ui.BaseFragment;
import androidx.annotation.*; import com.backyardbrains.dsp.*; import com.backyardbrains.ui.*;
[ "androidx.annotation", "com.backyardbrains.dsp", "com.backyardbrains.ui" ]
androidx.annotation; com.backyardbrains.dsp; com.backyardbrains.ui;
2,600,446
@Internal Logger getLogger();
Logger getLogger();
/** * <p>Returns the logger for this task. You can use this in your build file to write log messages.</p> * * @return The logger. Never returns null. */
Returns the logger for this task. You can use this in your build file to write log messages
getLogger
{ "repo_name": "lsmaira/gradle", "path": "subprojects/core-api/src/main/java/org/gradle/api/Task.java", "license": "apache-2.0", "size": 27985 }
[ "org.gradle.api.logging.Logger" ]
import org.gradle.api.logging.Logger;
import org.gradle.api.logging.*;
[ "org.gradle.api" ]
org.gradle.api;
124,604
private void validateRequiredParams() { if (activity == null) { throw new IllegalArgumentException("TurbolinksSession.activity(activity) must be called with a non-null object."); } if (turbolinksAdapter == null) { throw new IllegalArgumentException("TurbolinksSession...
void function() { if (activity == null) { throw new IllegalArgumentException(STR); } if (turbolinksAdapter == null) { throw new IllegalArgumentException(STR); } if (turbolinksView == null) { throw new IllegalArgumentException(STR); } if (TextUtils.isEmpty(location)) { throw new IllegalArgumentException(STR); } }
/** * <p>Ensures all required chained calls/parameters ({@link #activity}, {@link #turbolinksView}, * and location}) are set before calling {@link #visit(String)}.</p> */
Ensures all required chained calls/parameters (<code>#activity</code>, <code>#turbolinksView</code>, and location}) are set before calling <code>#visit(String)</code>
validateRequiredParams
{ "repo_name": "hgani/androlib", "path": "turbolinks/src/main/java/com/basecamp/turbolinks/TurbolinksSession.java", "license": "apache-2.0", "size": 33301 }
[ "android.text.TextUtils" ]
import android.text.TextUtils;
import android.text.*;
[ "android.text" ]
android.text;
1,400,687
public List<Item> findAll() { //return this.items.toArray(new Item[this.items.size()]); return this.items; }
List<Item> function() { return this.items; }
/** * Find all items. * @return Items array without nulls */
Find all items
findAll
{ "repo_name": "ShiginAV/ashigin", "path": "chapter_002/src/main/java/ru/job4j/tracker/Tracker.java", "license": "apache-2.0", "size": 2082 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,074,719
public Map<String, String> getPathParams() { return pathParams; }
Map<String, String> function() { return pathParams; }
/** * Get route path parameters * * @return return path params */
Get route path parameters
getPathParams
{ "repo_name": "biezhi/blade", "path": "src/main/java/com/blade/mvc/route/Route.java", "license": "apache-2.0", "size": 3907 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
393,958
private Result pFormalParameter(final int yyStart) throws IOException { Result yyResult; int yyOption1; Node yyOpValue1; Node yyValue; ParseError yyError = ParseError.DUMMY; // Alternative <Parameter>. yyResult = pVariableModifiers(yyStart); yyError = yyResult...
Result function(final int yyStart) throws IOException { Result yyResult; int yyOption1; Node yyOpValue1; Node yyValue; ParseError yyError = ParseError.DUMMY; yyResult = pVariableModifiers(yyStart); yyError = yyResult.select(yyError); if (yyResult.hasValue()) { final Node v$g$1 = yyResult.semanticValue(); yyResult = pTy...
/** * Parse nonterminal xtc.lang.jeannie.JeannieJava.FormalParameter. * * @param yyStart The index. * @return The result. * @throws IOException Signals an I/O error. */
Parse nonterminal xtc.lang.jeannie.JeannieJava.FormalParameter
pFormalParameter
{ "repo_name": "wandoulabs/xtc-rats", "path": "xtc-core/src/main/java/xtc/lang/jeannie/JeannieParser.java", "license": "lgpl-2.1", "size": 647687 }
[ "java.io.IOException", "xtc.parser.ParseError", "xtc.parser.Result", "xtc.parser.SemanticValue", "xtc.tree.GNode", "xtc.tree.Node" ]
import java.io.IOException; import xtc.parser.ParseError; import xtc.parser.Result; import xtc.parser.SemanticValue; import xtc.tree.GNode; import xtc.tree.Node;
import java.io.*; import xtc.parser.*; import xtc.tree.*;
[ "java.io", "xtc.parser", "xtc.tree" ]
java.io; xtc.parser; xtc.tree;
2,001,541
void enterElementValue(@NotNull JavaParser.ElementValueContext ctx); void exitElementValue(@NotNull JavaParser.ElementValueContext ctx);
void enterElementValue(@NotNull JavaParser.ElementValueContext ctx); void exitElementValue(@NotNull JavaParser.ElementValueContext ctx);
/** * Exit a parse tree produced by {@link JavaParser#elementValue}. * @param ctx the parse tree */
Exit a parse tree produced by <code>JavaParser#elementValue</code>
exitElementValue
{ "repo_name": "code4craft/daogen", "path": "daogen-core/src/main/java/com/dianping/daogen/antlr/JavaListener.java", "license": "mit", "size": 38983 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
2,470,319
public void invoke(Request request, Response response) throws IOException, ServletException { getNext().invoke(request, response); log (request, response, 0); }
void function(Request request, Response response) throws IOException, ServletException { getNext().invoke(request, response); log (request, response, 0); }
/** * This method is invoked by Tomcat on each query. * * @param request The Request object. * @param response The Response object. * * @exception IOException Should not be thrown. * @exception ServletException Database SQLException is wrapped * in a ServletException. */
This method is invoked by Tomcat on each query
invoke
{ "repo_name": "plumer/codana", "path": "tomcat_files/6.0.43/JDBCAccessLogValve.java", "license": "mit", "size": 20867 }
[ "java.io.IOException", "javax.servlet.ServletException", "org.apache.catalina.connector.Request", "org.apache.catalina.connector.Response" ]
import java.io.IOException; import javax.servlet.ServletException; import org.apache.catalina.connector.Request; import org.apache.catalina.connector.Response;
import java.io.*; import javax.servlet.*; import org.apache.catalina.connector.*;
[ "java.io", "javax.servlet", "org.apache.catalina" ]
java.io; javax.servlet; org.apache.catalina;
270,018
private void checkAndCreateTestUsers() { Identity identity; Authentication auth; identity = baseSecurity.findIdentityByName("author"); auth = baseSecurity.findAuthentication(identity, ClientManager.PROVIDER_INSTANT_MESSAGING); if (auth == null) { // create new authentication...
void function() { Identity identity; Authentication auth; identity = baseSecurity.findIdentityByName(STR); auth = baseSecurity.findAuthentication(identity, ClientManager.PROVIDER_INSTANT_MESSAGING); if (auth == null) { baseSecurity.createAndPersistAuthentication(identity, ClientManager.PROVIDER_INSTANT_MESSAGING, ident...
/** * if enabled in the configuration some testusers for IM are created in the database. It has nothing to do with accounts on the jabber server itself. */
if enabled in the configuration some testusers for IM are created in the database. It has nothing to do with accounts on the jabber server itself
checkAndCreateTestUsers
{ "repo_name": "huihoo/olat", "path": "olat7.8/src/main/java/org/olat/lms/instantmessaging/InstantMessagingModule.java", "license": "apache-2.0", "size": 10791 }
[ "org.olat.data.basesecurity.Authentication", "org.olat.data.basesecurity.Identity" ]
import org.olat.data.basesecurity.Authentication; import org.olat.data.basesecurity.Identity;
import org.olat.data.basesecurity.*;
[ "org.olat.data" ]
org.olat.data;
528,984
private void btConnect(String address){ Toast.makeText(this, R.string.bt_connecting, Toast.LENGTH_LONG).show(); new ConnectBT().execute(address); //save MAC for next connection SharedPreferences settings = getPreferences(android.content.Context.MODE_PRIVATE); SharedPreferenc...
void function(String address){ Toast.makeText(this, R.string.bt_connecting, Toast.LENGTH_LONG).show(); new ConnectBT().execute(address); SharedPreferences settings = getPreferences(android.content.Context.MODE_PRIVATE); SharedPreferences.Editor editor = settings.edit(); editor.putString("MAC", address); editor.commit()...
/** * Connects to the BT device with the given address and saves the mac for future use * * @param address BT MAC Address */
Connects to the BT device with the given address and saves the mac for future use
btConnect
{ "repo_name": "fivef/KorselControl", "path": "src/sp/KorselControl/KorselControl.java", "license": "mit", "size": 27462 }
[ "android.content.Context", "android.content.SharedPreferences", "android.widget.Toast" ]
import android.content.Context; import android.content.SharedPreferences; import android.widget.Toast;
import android.content.*; import android.widget.*;
[ "android.content", "android.widget" ]
android.content; android.widget;
2,191,191
List<CmsUrlNameMappingEntry> readUrlNameMappingEntries( CmsDbContext dbc, boolean online, CmsUrlNameMappingFilter filter) throws CmsDataAccessException; /** * Reads a resource version numbers.<p> * * @param dbc the current database context * @param projectId the proj...
List<CmsUrlNameMappingEntry> readUrlNameMappingEntries( CmsDbContext dbc, boolean online, CmsUrlNameMappingFilter filter) throws CmsDataAccessException; /** * Reads a resource version numbers.<p> * * @param dbc the current database context * @param projectId the project to read the versions from * @param resourceId the...
/** * Reads the URL name mapping entries which match a given filter.<p> * * @param dbc the database context * @param online if true, reads from the online mapping, else from the offline mapping * @param filter the filter which the entries to be read should match * * @return the mappin...
Reads the URL name mapping entries which match a given filter
readUrlNameMappingEntries
{ "repo_name": "victos/opencms-core", "path": "src/org/opencms/db/I_CmsVfsDriver.java", "license": "lgpl-2.1", "size": 41952 }
[ "java.util.List", "org.opencms.db.urlname.CmsUrlNameMappingEntry", "org.opencms.db.urlname.CmsUrlNameMappingFilter", "org.opencms.file.CmsDataAccessException" ]
import java.util.List; import org.opencms.db.urlname.CmsUrlNameMappingEntry; import org.opencms.db.urlname.CmsUrlNameMappingFilter; import org.opencms.file.CmsDataAccessException;
import java.util.*; import org.opencms.db.urlname.*; import org.opencms.file.*;
[ "java.util", "org.opencms.db", "org.opencms.file" ]
java.util; org.opencms.db; org.opencms.file;
1,173,393
public String getPathTemplateName( Interface apiInterface, SingleResourceNameConfig resourceNameConfig) { return inittedConstantName(Name.from(resourceNameConfig.getEntityName(), "path", "template")); }
String function( Interface apiInterface, SingleResourceNameConfig resourceNameConfig) { return inittedConstantName(Name.from(resourceNameConfig.getEntityName(), "path", STR)); }
/** * The name of a path template constant for the given collection, to be held in an API wrapper * class. */
The name of a path template constant for the given collection, to be held in an API wrapper class
getPathTemplateName
{ "repo_name": "shinfan/toolkit", "path": "src/main/java/com/google/api/codegen/transformer/SurfaceNamer.java", "license": "apache-2.0", "size": 58588 }
[ "com.google.api.codegen.config.SingleResourceNameConfig", "com.google.api.codegen.util.Name", "com.google.api.tools.framework.model.Interface" ]
import com.google.api.codegen.config.SingleResourceNameConfig; import com.google.api.codegen.util.Name; import com.google.api.tools.framework.model.Interface;
import com.google.api.codegen.config.*; import com.google.api.codegen.util.*; import com.google.api.tools.framework.model.*;
[ "com.google.api" ]
com.google.api;
1,574,180
public void deleteRow() throws SQLException { throw new NotUpdatable(); }
void function() throws SQLException { throw new NotUpdatable(); }
/** * JDBC 2.0 Delete the current row from the result set and the underlying * database. Cannot be called when on the insert row. * * @exception SQLException * if a database-access error occurs, or if called when on * the insert row. * @throws NotUpdatable * DO...
JDBC 2.0 Delete the current row from the result set and the underlying database. Cannot be called when on the insert row
deleteRow
{ "repo_name": "shubhanshu-gupta/Apache-Solr", "path": "example/solr/collection1/lib/mysql-connector-java-5.1.32/src/com/mysql/jdbc/ResultSetImpl.java", "license": "apache-2.0", "size": 247329 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
545,675
public Adapter createEObjectAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for the default case. * <!-- begin-user-doc --> * This default implementation returns null. * <!-- end-user-doc --> * @return the new adapter. * @generated */
Creates a new adapter for the default case. This default implementation returns null.
createEObjectAdapter
{ "repo_name": "pedromateo/tug_qt_unit_testing_fw", "path": "qt48_model/src/org/casa/dsltesting/Qt48Xmlschema/util/Qt48XmlschemaAdapterFactory.java", "license": "gpl-3.0", "size": 46616 }
[ "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;
33,143
//@author A0115384H private boolean sameHour(Calendar taskTimeCal, Calendar searchTimeStartCal, Calendar searchTimeEndCal) { return (taskTimeCal.get(Calendar.HOUR_OF_DAY) >= searchTimeStartCal.get(Calendar.HOUR_OF_DAY) && taskTimeCal.get(Calendar.HOUR_OF_DAY) <= sea...
boolean function(Calendar taskTimeCal, Calendar searchTimeStartCal, Calendar searchTimeEndCal) { return (taskTimeCal.get(Calendar.HOUR_OF_DAY) >= searchTimeStartCal.get(Calendar.HOUR_OF_DAY) && taskTimeCal.get(Calendar.HOUR_OF_DAY) <= searchTimeEndCal.get(Calendar.HOUR_OF_DAY)); }
/** * This method checks if the time of the task is between the times of the two calendars * * @param taskTimeCal Calendar representing the time of the task * @param searchTimeStartCal Calendar representing the start time being searched * @param searchTimeEndCal Calendar representing the end t...
This method checks if the time of the task is between the times of the two calendars
sameHour
{ "repo_name": "CS2103TAug2014-W15-4J/main", "path": "src/model/TaskList.java", "license": "mit", "size": 62475 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
758,629
@Deprecated public List<PoolArenaMetric> heapArenas() { return heapArenaMetrics; }
List<PoolArenaMetric> function() { return heapArenaMetrics; }
/** * Return a {@link List} of all heap {@link PoolArenaMetric}s that are provided by this pool. * * @deprecated use {@link PooledByteBufAllocatorMetric#heapArenas()}. */
Return a <code>List</code> of all heap <code>PoolArenaMetric</code>s that are provided by this pool
heapArenas
{ "repo_name": "blucas/netty", "path": "buffer/src/main/java/io/netty/buffer/PooledByteBufAllocator.java", "license": "apache-2.0", "size": 23616 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
797,183
@Override public TileEntity createNewTileEntity(World world, int par2) { return new TECalefactor7(); }
TileEntity function(World world, int par2) { return new TECalefactor7(); }
/** * Returns a new instance of a block's tile entity class. Called on placing the block. */
Returns a new instance of a block's tile entity class. Called on placing the block
createNewTileEntity
{ "repo_name": "CuriousSkeptic/ElementalEssences", "path": "src/main/java/com/elementalessence/common/blocks/machine/BlockCalefactor7.java", "license": "cc0-1.0", "size": 7425 }
[ "com.elementalessence.common.blocks.tile.machine.TECalefactor7", "net.minecraft.tileentity.TileEntity", "net.minecraft.world.World" ]
import com.elementalessence.common.blocks.tile.machine.TECalefactor7; import net.minecraft.tileentity.TileEntity; import net.minecraft.world.World;
import com.elementalessence.common.blocks.tile.machine.*; import net.minecraft.tileentity.*; import net.minecraft.world.*;
[ "com.elementalessence.common", "net.minecraft.tileentity", "net.minecraft.world" ]
com.elementalessence.common; net.minecraft.tileentity; net.minecraft.world;
1,924,020
public FormDataBuilder top(final Control control) { return this.top(control, this.defaultOffset); }
FormDataBuilder function(final Control control) { return this.top(control, this.defaultOffset); }
/** * Specifies the top side attachment of the control. Spaced with default * offset * * @param control * the control the side is attached to * @return this */
Specifies the top side attachment of the control. Spaced with default offset
top
{ "repo_name": "awltech/eclipse-ast-refactor", "path": "net.atos.jdt.ast.refactor.engine/src/main/java/net/atos/jdt/ast/refactor/engine/internal/extpt/ui/FormDataBuilder.java", "license": "epl-1.0", "size": 11408 }
[ "org.eclipse.swt.widgets.Control" ]
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
13,802
public static ims.core.clinical.domain.objects.TreatmentIntervention extractTreatmentIntervention(ims.domain.ILightweightDomainFactory domainFactory, ims.emergency.vo.TreatmentInterventionForAdviceLeafletVo valueObject) { return extractTreatmentIntervention(domainFactory, valueObject, new HashMap()); }
static ims.core.clinical.domain.objects.TreatmentIntervention function(ims.domain.ILightweightDomainFactory domainFactory, ims.emergency.vo.TreatmentInterventionForAdviceLeafletVo valueObject) { return extractTreatmentIntervention(domainFactory, valueObject, new HashMap()); }
/** * Create the domain object from the value object. * @param domainFactory - used to create existing (persistent) domain objects. * @param valueObject - extract the domain object fields from this. */
Create the domain object from the value object
extractTreatmentIntervention
{ "repo_name": "open-health-hub/openmaxims-linux", "path": "openmaxims_workspace/ValueObjects/src/ims/emergency/vo/domain/TreatmentInterventionForAdviceLeafletVoAssembler.java", "license": "agpl-3.0", "size": 24269 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,486,133
public BigInteger getAsBigInteger() { throw new UnsupportedOperationException(getClass().getSimpleName()); }
BigInteger function() { throw new UnsupportedOperationException(getClass().getSimpleName()); }
/** * convenience method to get this element as a {@link BigInteger}. * * @return get this element as a {@link BigInteger}. * @throws ClassCastException if the element is of not a {@link JsonPrimitive}. * @throws NumberFormatException if the element is not a valid {@link BigInteger}. * @throws Illegal...
convenience method to get this element as a <code>BigInteger</code>
getAsBigInteger
{ "repo_name": "adamdubiel/jason", "path": "src/main/java/org/jasonjson/core/JsonElement.java", "license": "apache-2.0", "size": 11838 }
[ "java.math.BigInteger" ]
import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
2,769,779
void setSource(SourceAspect value);
void setSource(SourceAspect value);
/** * Sets the value of the '{@link net.mlanoe.language.vhdl.declaration.SourceQuantityDeclaration#getSource <em>Source</em>}' containment reference. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Source</em>' containment reference. * @see #getSource() * @generate...
Sets the value of the '<code>net.mlanoe.language.vhdl.declaration.SourceQuantityDeclaration#getSource Source</code>' containment reference.
setSource
{ "repo_name": "mlanoe/x-vhdl", "path": "plugins/net.mlanoe.language.vhdl/src-gen/net/mlanoe/language/vhdl/declaration/SourceQuantityDeclaration.java", "license": "gpl-3.0", "size": 1861 }
[ "net.mlanoe.language.vhdl.ams.SourceAspect" ]
import net.mlanoe.language.vhdl.ams.SourceAspect;
import net.mlanoe.language.vhdl.ams.*;
[ "net.mlanoe.language" ]
net.mlanoe.language;
1,792,045
protected void throwMessage(int number, String message, ILexToken token) throws ParserException { throw new ParserException(number, message, token.getLocation(), reader.getTokensRead()); }
void function(int number, String message, ILexToken token) throws ParserException { throw new ParserException(number, message, token.getLocation(), reader.getTokensRead()); }
/** * Raise a {@link ParserException} at the location of the token passed in. * * @param number * The error number. * @param message * The error message. * @param token * The location of the error. * @throws ParserException */
Raise a <code>ParserException</code> at the location of the token passed in
throwMessage
{ "repo_name": "overturetool/overture", "path": "core/parser/src/main/java/org/overture/parser/syntax/SyntaxReader.java", "license": "gpl-3.0", "size": 22335 }
[ "org.overture.ast.intf.lex.ILexToken" ]
import org.overture.ast.intf.lex.ILexToken;
import org.overture.ast.intf.lex.*;
[ "org.overture.ast" ]
org.overture.ast;
2,191,597
@Test public void testFromClientSideWhileSplitting() throws Throwable { LOG.info("Starting testFromClientSideWhileSplitting"); final TableName tableName = TableName.valueOf(name.getMethodName()); final byte[] FAMILY = Bytes.toBytes("family"); //SplitTransaction will update the meta table by offlini...
void function() throws Throwable { LOG.info(STR); final TableName tableName = TableName.valueOf(name.getMethodName()); final byte[] FAMILY = Bytes.toBytes(STR); Table table = TEST_UTIL.createTable(tableName, FAMILY); Stoppable stopper = new StoppableImplementation(); RegionSplitter regionSplitter = new RegionSplitter(t...
/** * Tests that the client sees meta table changes as atomic during splits */
Tests that the client sees meta table changes as atomic during splits
testFromClientSideWhileSplitting
{ "repo_name": "JingchengDu/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestEndToEndSplitTransaction.java", "license": "apache-2.0", "size": 15523 }
[ "java.io.IOException", "org.apache.hadoop.hbase.ChoreService", "org.apache.hadoop.hbase.Stoppable", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.client.Admin", "org.apache.hadoop.hbase.client.Connection", "org.apache.hadoop.hbase.client.Table", "org.apache.hadoop.hbase.util.Bytes", ...
import java.io.IOException; import org.apache.hadoop.hbase.ChoreService; import org.apache.hadoop.hbase.Stoppable; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Admin; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoo...
import java.io.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,140,219
public void testSavingLastUpdateServerTime() { Channel chan = new Channel(); chan.setLastUpdateServerTime(-1); chan.addItem(new Item("1")); DummyDataFeed feed = new DummyDataFeed(); feed.setChannel(chan); feed.update(); assertEquals("Wrong last...
void function() { Channel chan = new Channel(); chan.setLastUpdateServerTime(-1); chan.addItem(new Item("1")); DummyDataFeed feed = new DummyDataFeed(); feed.setChannel(chan); feed.update(); assertEquals(STR, -1, feed.getLastUpdateServerTime()); chan.setLastUpdateServerTime(1); chan.addItem(new Item("2")); feed.update(...
/** * Tests how the last update server time field is populated during updates. */
Tests how the last update server time field is populated during updates
testSavingLastUpdateServerTime
{ "repo_name": "pitosalas/blogbridge", "path": "test/com/salas/bb/domain/TestDataFeed.java", "license": "gpl-2.0", "size": 44207 }
[ "com.salas.bb.utils.parser.Channel", "com.salas.bb.utils.parser.Item" ]
import com.salas.bb.utils.parser.Channel; import com.salas.bb.utils.parser.Item;
import com.salas.bb.utils.parser.*;
[ "com.salas.bb" ]
com.salas.bb;
369,683
checkArgument(original != null && original.length > 0, "Cannot copy from an empty or null array"); return new ImmutableByteSequence( ByteBuffer.allocate(original.length).put(original)); }
checkArgument(original != null && original.length > 0, STR); return new ImmutableByteSequence( ByteBuffer.allocate(original.length).put(original)); }
/** * Creates a new immutable byte sequence with the same content and order of * the passed byte array. * * @param original a byte array value * @return a new immutable byte sequence */
Creates a new immutable byte sequence with the same content and order of the passed byte array
copyFrom
{ "repo_name": "maheshraju-Huawei/actn", "path": "utils/misc/src/main/java/org/onlab/util/ImmutableByteSequence.java", "license": "apache-2.0", "size": 8109 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,666,981
@Nullable public java.io.InputStream post() throws ClientException { return send(HttpMethod.POST, body); }
java.io.InputStream function() throws ClientException { return send(HttpMethod.POST, body); }
/** * Invokes the method and returns the result * @return result of the method invocation * @throws ClientException an exception occurs if there was an error while the request was sent */
Invokes the method and returns the result
post
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/DeviceManagementReportsGetConfigurationPolicyNonComplianceSummaryReportRequest.java", "license": "mit", "size": 3349 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*;
[ "com.microsoft.graph" ]
com.microsoft.graph;
605,861
protected List<String> listClassResources(JarInputStream jar, String path) throws IOException { // Include the leading and trailing slash when matching names if (!path.startsWith("/")) path = "/" + path; if (!path.endsWith("/")) path = path + "/"; // Iterate over the entries and collect those that beg...
List<String> function(JarInputStream jar, String path) throws IOException { if (!path.startsWith("/")) path = "/" + path; if (!path.endsWith("/")) path = path + "/"; List<String> resources = new ArrayList<String>(); for (JarEntry entry; (entry = jar.getNextJarEntry()) != null;) { if (!entry.isDirectory()) { String name...
/** * List the names of the entries in the given {@link JarInputStream} that begin with the * specified {@code path}. Entries will match with or without a leading slash. * * @param jar The JAR input stream * @param path The leading path to match * @return The names of all the matching entries * @throws I...
List the names of the entries in the given <code>JarInputStream</code> that begin with the specified path. Entries will match with or without a leading slash
listClassResources
{ "repo_name": "mrjabba/mybatis", "path": "src/main/java/org/apache/ibatis/io/ResolverUtil.java", "license": "apache-2.0", "size": 18962 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "java.util.jar.JarEntry", "java.util.jar.JarInputStream" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.jar.JarEntry; import java.util.jar.JarInputStream;
import java.io.*; import java.util.*; import java.util.jar.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,835,106
public void setToAddresses(List<String> toAddresses) { this.toAddresses = toAddresses; } /** * Determines whether the alert would send it when job fails, succeeds, none, * or both (fail and success) * * @return one of {@link ReportJobAlert.JobState}
void function(List<String> toAddresses) { this.toAddresses = toAddresses; } /** * Determines whether the alert would send it when job fails, succeeds, none, * or both (fail and success) * * @return one of {@link ReportJobAlert.JobState}
/** * Sets the email addresses that should be used as additional direct recipients for * the email alert. * * @param toAddresses the list of recipients as * <code>java.lang.String</code> email addresses */
Sets the email addresses that should be used as additional direct recipients for the email alert
setToAddresses
{ "repo_name": "leocockroach/JasperServer5.6", "path": "jasperserver-api/engine/src/main/java/com/jaspersoft/jasperserver/api/engine/scheduling/domain/ReportJobAlert.java", "license": "gpl-2.0", "size": 9126 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
395,554
AccountDto modify(AccountModifyDto account) throws ValidationException;
AccountDto modify(AccountModifyDto account) throws ValidationException;
/** * modify account. * @param account modified account dto * @return modified account. * @throws ValidationException object validate exception */
modify account
modify
{ "repo_name": "anicloud/octopus-object-client", "path": "object-agent/java/service-agent/src/main/java/com/ani/octopus/service/agent/service/account/AccountService.java", "license": "gpl-2.0", "size": 2112 }
[ "com.ani.octopus.commons.accout.dto.AccountDto", "com.ani.octopus.commons.accout.dto.AccountModifyDto", "javax.xml.bind.ValidationException" ]
import com.ani.octopus.commons.accout.dto.AccountDto; import com.ani.octopus.commons.accout.dto.AccountModifyDto; import javax.xml.bind.ValidationException;
import com.ani.octopus.commons.accout.dto.*; import javax.xml.bind.*;
[ "com.ani.octopus", "javax.xml" ]
com.ani.octopus; javax.xml;
1,341,642
public void addBreakpoint(BreakPoint breakpoint) throws InvalidBreakPointException, DebuggerException { final String className = breakpoint.getLocation().getClassName(); final int lineNumber = breakpoint.getLocation().getLineNumber(); List<ReferenceType> classes = vm.classesByName(className)...
void function(BreakPoint breakpoint) throws InvalidBreakPointException, DebuggerException { final String className = breakpoint.getLocation().getClassName(); final int lineNumber = breakpoint.getLocation().getLineNumber(); List<ReferenceType> classes = vm.classesByName(className); if (classes.isEmpty()) { deferBreakpoi...
/** * Add new breakpoint. * * @param breakpoint * break point description * @throws InvalidBreakPointException * if description of break point is invalid (specified line number or class name is invalid) * @throws DebuggerException * when other JDI error oc...
Add new breakpoint
addBreakpoint
{ "repo_name": "sunix/che-plugins", "path": "plugin-java/che-plugin-java-ext-debugger-java/src/main/java/org/eclipse/che/ide/ext/java/jdi/server/Debugger.java", "license": "epl-1.0", "size": 35664 }
[ "com.sun.jdi.AbsentInformationException", "com.sun.jdi.ClassNotPreparedException", "com.sun.jdi.NativeMethodException", "com.sun.jdi.ReferenceType", "com.sun.jdi.request.BreakpointRequest", "com.sun.jdi.request.EventRequest", "com.sun.jdi.request.EventRequestManager", "com.sun.jdi.request.InvalidReque...
import com.sun.jdi.AbsentInformationException; import com.sun.jdi.ClassNotPreparedException; import com.sun.jdi.NativeMethodException; import com.sun.jdi.ReferenceType; import com.sun.jdi.request.BreakpointRequest; import com.sun.jdi.request.EventRequest; import com.sun.jdi.request.EventRequestManager; import com.sun.j...
import com.sun.jdi.*; import com.sun.jdi.request.*; import java.util.*; import org.eclipse.che.ide.ext.java.jdi.server.expression.*; import org.eclipse.che.ide.ext.java.jdi.shared.*;
[ "com.sun.jdi", "java.util", "org.eclipse.che" ]
com.sun.jdi; java.util; org.eclipse.che;
2,520,864
public static ValueNode parseDefault ( String defaultText, LanguageConnectionContext lcc, CompilerContext cc ) throws StandardException { Parser p; ValueNode defaultTr...
static ValueNode function ( String defaultText, LanguageConnectionContext lcc, CompilerContext cc ) throws StandardException { Parser p; ValueNode defaultTree; String values = STR + defaultText; CompilerContext newCC = lcc.pushCompilerContext(); p = newCC.getParser(); Visitable qt = p.parseStatement(values); if (Sanity...
/** * Parse a default and turn it into a query tree. * * @param defaultText Text of Default. * @param lcc LanguageConnectionContext * @param cc CompilerContext * * @return The parsed default as a query tree. ...
Parse a default and turn it into a query tree
parseDefault
{ "repo_name": "splicemachine/spliceengine", "path": "db-engine/src/main/java/com/splicemachine/db/impl/sql/compile/DefaultNode.java", "license": "agpl-3.0", "size": 11039 }
[ "com.splicemachine.db.iapi.error.StandardException", "com.splicemachine.db.iapi.services.sanity.SanityManager", "com.splicemachine.db.iapi.sql.compile.CompilerContext", "com.splicemachine.db.iapi.sql.compile.Parser", "com.splicemachine.db.iapi.sql.compile.Visitable", "com.splicemachine.db.iapi.sql.conn.La...
import com.splicemachine.db.iapi.error.StandardException; import com.splicemachine.db.iapi.services.sanity.SanityManager; import com.splicemachine.db.iapi.sql.compile.CompilerContext; import com.splicemachine.db.iapi.sql.compile.Parser; import com.splicemachine.db.iapi.sql.compile.Visitable; import com.splicemachine.db...
import com.splicemachine.db.iapi.error.*; import com.splicemachine.db.iapi.services.sanity.*; import com.splicemachine.db.iapi.sql.compile.*; import com.splicemachine.db.iapi.sql.conn.*;
[ "com.splicemachine.db" ]
com.splicemachine.db;
381,867
public static void addImportStylePatterns(Map<String, Object> patterns, String str) { if ( str == null || "".equals( str.trim() ) ) { return; } String[] items = str.split( " " ); for (String item : items) { String...
static void function(Map<String, Object> patterns, String str) { if ( str == null STR " ); for (String item : items) { String qualifiedNamespace = item.substring(0, item.lastIndexOf('.')).trim(); String name = item.substring(item.lastIndexOf('.') + 1).trim(); Object object = patterns.get(qualifiedNamespace); if (object...
/** * Populates the import style pattern map from give comma delimited string * @param patterns * @param str */
Populates the import style pattern map from give comma delimited string
addImportStylePatterns
{ "repo_name": "mswiderski/drools", "path": "drools-core/src/main/java/org/drools/core/util/ClassUtils.java", "license": "apache-2.0", "size": 15262 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import java.util.ArrayList; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,320,850
@HeaderLength public static int headerLength(final JBuffer buffer, final int offset) { return (buffer.getUShort(2) * 4) + STATIC_HEADER_LENGTH; }
static int function(final JBuffer buffer, final int offset) { return (buffer.getUShort(2) * 4) + STATIC_HEADER_LENGTH; }
/** * Determines the length of the header in octets. The value is calculated by * use of a 16-bit length field that counts the number of 32-bit words in * the extension. * * @param buffer * buffer containing the header data * @param offset * offset within the buffer of the sta...
Determines the length of the header in octets. The value is calculated by use of a 16-bit length field that counts the number of 32-bit words in the extension
headerLength
{ "repo_name": "universsky/diddler", "path": "src/org/jnetpcap/protocol/voip/Rtp.java", "license": "lgpl-3.0", "size": 26381 }
[ "org.jnetpcap.nio.JBuffer" ]
import org.jnetpcap.nio.JBuffer;
import org.jnetpcap.nio.*;
[ "org.jnetpcap.nio" ]
org.jnetpcap.nio;
11,136
public static BigDecimal getInvoiceNotApplied(GenericValue invoice, Timestamp asOfDateTime) { return InvoiceWorker.getInvoiceTotal(invoice, Boolean.TRUE).subtract(getInvoiceApplied(invoice, asOfDateTime)); }
static BigDecimal function(GenericValue invoice, Timestamp asOfDateTime) { return InvoiceWorker.getInvoiceTotal(invoice, Boolean.TRUE).subtract(getInvoiceApplied(invoice, asOfDateTime)); }
/** * Returns amount not applied (i.e., still outstanding) of an invoice at an asOfDate, based on Payment.effectiveDate <= asOfDateTime * * @param invoice GenericValue object of the invoice * @param asOfDateTime the date to use * @return Returns amount not applied of the invoice */
Returns amount not applied (i.e., still outstanding) of an invoice at an asOfDate, based on Payment.effectiveDate <= asOfDateTime
getInvoiceNotApplied
{ "repo_name": "yuri0x7c1/ofbiz-explorer", "path": "src/test/resources/apache-ofbiz-16.11.03/applications/accounting/src/main/java/org/apache/ofbiz/accounting/invoice/InvoiceWorker.java", "license": "apache-2.0", "size": 38888 }
[ "java.math.BigDecimal", "java.sql.Timestamp", "org.apache.ofbiz.entity.GenericValue" ]
import java.math.BigDecimal; import java.sql.Timestamp; import org.apache.ofbiz.entity.GenericValue;
import java.math.*; import java.sql.*; import org.apache.ofbiz.entity.*;
[ "java.math", "java.sql", "org.apache.ofbiz" ]
java.math; java.sql; org.apache.ofbiz;
1,396,344
public interface ThrottleOnAcceptBranch extends MediatorBranch { ThrottleSequenceType getSequenceType();
interface ThrottleOnAcceptBranch extends MediatorBranch { ThrottleSequenceType function();
/** * Returns the value of the '<em><b>Sequence Type</b></em>' attribute. * The default value is <code>"ANONYMOUS"</code>. * The literals are from the enumeration {@link org.wso2.developerstudio.eclipse.esb.mediators.ThrottleSequenceType}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Sequenc...
Returns the value of the 'Sequence Type' attribute. The default value is <code>"ANONYMOUS"</code>. The literals are from the enumeration <code>org.wso2.developerstudio.eclipse.esb.mediators.ThrottleSequenceType</code>. If the meaning of the 'Sequence Type' attribute isn't clear, there really should be more of a descrip...
getSequenceType
{ "repo_name": "thiliniish/developer-studio", "path": "esb/org.wso2.developerstudio.eclipse.esb/src/org/wso2/developerstudio/eclipse/esb/mediators/ThrottleOnAcceptBranch.java", "license": "apache-2.0", "size": 3842 }
[ "org.wso2.developerstudio.eclipse.esb.MediatorBranch" ]
import org.wso2.developerstudio.eclipse.esb.MediatorBranch;
import org.wso2.developerstudio.eclipse.esb.*;
[ "org.wso2.developerstudio" ]
org.wso2.developerstudio;
1,821,752
@Test @Ignore public void testRemoveTagForCommand() throws GenieException { }
void function() throws GenieException { }
/** * Test remove tag for command. * * @throws GenieException For any problem */
Test remove tag for command
testRemoveTagForCommand
{ "repo_name": "sensaid/genie", "path": "genie-core/src/test/java/com/netflix/genie/core/services/impl/jpa/TestCommandConfigServiceJPAImpl.java", "license": "apache-2.0", "size": 16163 }
[ "com.netflix.genie.common.exceptions.GenieException" ]
import com.netflix.genie.common.exceptions.GenieException;
import com.netflix.genie.common.exceptions.*;
[ "com.netflix.genie" ]
com.netflix.genie;
2,757,944
private void initTheorem() { try { double bandwidth = Double.parseDouble(JOptionPane .showInputDialog("Enter Bandwidth: ")); double signalToNoise = Double.parseDouble(JOptionPane .showInputDialog("Enter SignalToNoise: ")); ShannonsTheorem theorem = new ShannonsTheorem(); theorem.setBandwidth...
void function() { try { double bandwidth = Double.parseDouble(JOptionPane .showInputDialog(STR)); double signalToNoise = Double.parseDouble(JOptionPane .showInputDialog(STR)); ShannonsTheorem theorem = new ShannonsTheorem(); theorem.setBandwidth(bandwidth); theorem.setSignalToNoise(signalToNoise); JOptionPane.showMessa...
/** * Collects user input for bandwidth and signalToNoise values, and then * passes them to the ShannonsTheorem object for data processing. * Outputs the processed data. */
Collects user input for bandwidth and signalToNoise values, and then passes them to the ShannonsTheorem object for data processing. Outputs the processed data
initTheorem
{ "repo_name": "Josh-Larabie/AlgonquinCollege_CST8288-Lab1PartB", "path": "Lab1PartB/src/DisplayShannonsTheorem.java", "license": "mit", "size": 1198 }
[ "javax.swing.JOptionPane" ]
import javax.swing.JOptionPane;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,737,992
public ComponentActionMap getComponentActionMap( String caller, String componentName ) throws NoSuchComponentException { return getComponentPerCaller(caller, componentName).getActionMap(); }
ComponentActionMap function( String caller, String componentName ) throws NoSuchComponentException { return getComponentPerCaller(caller, componentName).getActionMap(); }
/** * Helper method for getting the action map associated with a given component for a give caller * * @param caller the remote caller * @param componentName the name of the component * @return the action map * @throws NoS...
Helper method for getting the action map associated with a given component for a give caller
getComponentActionMap
{ "repo_name": "Axway/ats-framework", "path": "agent/core/src/main/java/com/axway/ats/agent/core/ComponentRepository.java", "license": "apache-2.0", "size": 13950 }
[ "com.axway.ats.agent.core.exceptions.NoSuchComponentException" ]
import com.axway.ats.agent.core.exceptions.NoSuchComponentException;
import com.axway.ats.agent.core.exceptions.*;
[ "com.axway.ats" ]
com.axway.ats;
2,228,928
NodesHotThreadsRequestBuilder prepareNodesHotThreads(String... nodesIds);
NodesHotThreadsRequestBuilder prepareNodesHotThreads(String... nodesIds);
/** * Returns a request builder to fetch top N hot-threads samples per node. The hot-threads are only sampled * for the node ids provided. Note: Use {@code *} to fetch samples for all nodes */
Returns a request builder to fetch top N hot-threads samples per node. The hot-threads are only sampled for the node ids provided. Note: Use * to fetch samples for all nodes
prepareNodesHotThreads
{ "repo_name": "strapdata/elassandra", "path": "server/src/main/java/org/elasticsearch/client/ClusterAdminClient.java", "license": "apache-2.0", "size": 26657 }
[ "org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequestBuilder" ]
import org.elasticsearch.action.admin.cluster.node.hotthreads.NodesHotThreadsRequestBuilder;
import org.elasticsearch.action.admin.cluster.node.hotthreads.*;
[ "org.elasticsearch.action" ]
org.elasticsearch.action;
463,157
public void propagatedModification(final SecurityContext securityContext);
void function(final SecurityContext securityContext);
/** * Called when a non-local modification occurred in the neighbourhood of this node. * * @param securityContext */
Called when a non-local modification occurred in the neighbourhood of this node
propagatedModification
{ "repo_name": "joansmith/structr", "path": "structr-core/src/main/java/org/structr/core/GraphObject.java", "license": "gpl-3.0", "size": 12748 }
[ "org.structr.common.SecurityContext" ]
import org.structr.common.SecurityContext;
import org.structr.common.*;
[ "org.structr.common" ]
org.structr.common;
169,164
@Override public void delete(DataSource dataSource) throws JDOException { Bucket oTbl = ((S3DataSource) dataSource).openBucket(tdef.getTable()); try { oTbl.delete(getKey()); } finally { if (oTbl!=null) oTbl.close(); } }
void function(DataSource dataSource) throws JDOException { Bucket oTbl = ((S3DataSource) dataSource).openBucket(tdef.getTable()); try { oTbl.delete(getKey()); } finally { if (oTbl!=null) oTbl.close(); } }
/** * <p>Delete this S3Record using the given S3DataSource.</p> * @param dataSource TableDataSource * @throws JDOException * @throws ClassCastException If dataSource is not an instance of class S3DataSource. */
Delete this S3Record using the given S3DataSource
delete
{ "repo_name": "sergiomt/judal", "path": "s3/src/main/java/org/judal/s3/S3Record.java", "license": "apache-2.0", "size": 16852 }
[ "javax.jdo.JDOException", "org.judal.storage.DataSource", "org.judal.storage.keyvalue.Bucket" ]
import javax.jdo.JDOException; import org.judal.storage.DataSource; import org.judal.storage.keyvalue.Bucket;
import javax.jdo.*; import org.judal.storage.*; import org.judal.storage.keyvalue.*;
[ "javax.jdo", "org.judal.storage" ]
javax.jdo; org.judal.storage;
2,042,701
PsiElement getPsi();
PsiElement getPsi();
/** * Returns the PSI element for this node. * * @return the PSI element. */
Returns the PSI element for this node
getPsi
{ "repo_name": "ThiagoGarciaAlves/intellij-community", "path": "platform/core-api/src/com/intellij/lang/ASTNode.java", "license": "apache-2.0", "size": 8986 }
[ "com.intellij.psi.PsiElement" ]
import com.intellij.psi.PsiElement;
import com.intellij.psi.*;
[ "com.intellij.psi" ]
com.intellij.psi;
338,033
public static ArrayList<Player> loadPlayer(NodeList playerlist) { ArrayList<Player> playerArray = new ArrayList<>(); for (int i = 0; i < playerlist.getLength(); i++) { Node playernode = playerlist.item(i); Element playerElement = (Element) playernode; int intXpos = Integer.parseInt(playerEl...
static ArrayList<Player> function(NodeList playerlist) { ArrayList<Player> playerArray = new ArrayList<>(); for (int i = 0; i < playerlist.getLength(); i++) { Node playernode = playerlist.item(i); Element playerElement = (Element) playernode; int intXpos = Integer.parseInt(playerElement.getElementsByTagName("x") .item(...
/** * Method that reads the players from the XML-file and parses them into Player objects. * Simular to the loadBalls method * * @param playerlist - NodeList of the players that should be parsed. * @return - ArrayList of Player objects. */
Method that reads the players from the XML-file and parses them into Player objects. Simular to the loadBalls method
loadPlayer
{ "repo_name": "Fastjur/SEM-Project", "path": "src/main/java/net/liquidpineapple/pang/XmlHandler.java", "license": "mit", "size": 10002 }
[ "java.util.ArrayList", "net.liquidpineapple.pang.objects.Player", "net.liquidpineapple.pang.objects.playerschemes.Player1", "net.liquidpineapple.pang.objects.playerschemes.Player2", "org.w3c.dom.Document", "org.w3c.dom.Element", "org.w3c.dom.Node", "org.w3c.dom.NodeList" ]
import java.util.ArrayList; import net.liquidpineapple.pang.objects.Player; import net.liquidpineapple.pang.objects.playerschemes.Player1; import net.liquidpineapple.pang.objects.playerschemes.Player2; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList;
import java.util.*; import net.liquidpineapple.pang.objects.*; import net.liquidpineapple.pang.objects.playerschemes.*; import org.w3c.dom.*;
[ "java.util", "net.liquidpineapple.pang", "org.w3c.dom" ]
java.util; net.liquidpineapple.pang; org.w3c.dom;
2,858,224