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 void execute(long initialDelay, long period, TimeUnit unit, Callable runnable) {
if (runnable != null) {
ScheduledFuture<?> future = this.scheduledExecutor.get().scheduleAtFixedRate(() -> runnable.call(), initialDelay, period, unit);
this.scheduledTasks.add(future);
}
... | void function(long initialDelay, long period, TimeUnit unit, Callable runnable) { if (runnable != null) { ScheduledFuture<?> future = this.scheduledExecutor.get().scheduleAtFixedRate(() -> runnable.call(), initialDelay, period, unit); this.scheduledTasks.add(future); } } | /**
* Periodically call the supplied runnable using this node's {@link Executor executor}. The thread will terminate
* automatically when this service is stopped.
*
* @param initialDelay the initial delay before the function is first called
* @param period the time between calls
* @param ... | Periodically call the supplied runnable using this node's <code>Executor executor</code>. The thread will terminate automatically when this service is stopped | execute | {
"repo_name": "rhauch/debezium-proto",
"path": "debezium/src/main/java/org/debezium/driver/DbzNode.java",
"license": "apache-2.0",
"size": 21353
} | [
"java.util.concurrent.ScheduledFuture",
"java.util.concurrent.TimeUnit",
"org.debezium.function.Callable"
] | import java.util.concurrent.ScheduledFuture; import java.util.concurrent.TimeUnit; import org.debezium.function.Callable; | import java.util.concurrent.*; import org.debezium.function.*; | [
"java.util",
"org.debezium.function"
] | java.util; org.debezium.function; | 843,940 |
public Metadata.Builder clear() {
Metadata_Builder _template = new Metadata.Builder();
builderFactory = _template.builderFactory;
generatedBuilder = _template.generatedBuilder;
optionalBuilder = _template.optionalBuilder;
partialType = _template.partialType;
properties.clear();
propertyEnu... | Metadata.Builder function() { Metadata_Builder _template = new Metadata.Builder(); builderFactory = _template.builderFactory; generatedBuilder = _template.generatedBuilder; optionalBuilder = _template.optionalBuilder; partialType = _template.partialType; properties.clear(); propertyEnum = _template.propertyEnum; standa... | /**
* Resets the state of this builder.
*/ | Resets the state of this builder | clear | {
"repo_name": "sposam/FreeBuilder",
"path": "src/main/java/org/inferred/freebuilder/processor/Metadata_Builder.java",
"license": "apache-2.0",
"size": 38537
} | [
"com.google.common.collect.ImmutableList",
"com.google.common.collect.ImmutableMap",
"com.google.common.collect.ImmutableSet",
"java.util.EnumSet",
"javax.lang.model.element.TypeElement",
"org.inferred.freebuilder.processor.BuilderFactory",
"org.inferred.freebuilder.processor.Metadata",
"org.inferred.... | import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; import com.google.common.collect.ImmutableSet; import java.util.EnumSet; import javax.lang.model.element.TypeElement; import org.inferred.freebuilder.processor.BuilderFactory; import org.inferred.freebuilder.processor.Metadat... | import com.google.common.collect.*; import java.util.*; import javax.lang.model.element.*; import org.inferred.freebuilder.processor.*; import org.inferred.freebuilder.processor.util.*; | [
"com.google.common",
"java.util",
"javax.lang",
"org.inferred.freebuilder"
] | com.google.common; java.util; javax.lang; org.inferred.freebuilder; | 1,511,836 |
protected void addService(Service s)
{
List services = (List) xFireServices.get(s.getName());
if (services == null)
{
services = new ArrayList();
xFireServices.put(s.getName(), services);
}
services.add(s);
allServices.add(s);
} | void function(Service s) { List services = (List) xFireServices.get(s.getName()); if (services == null) { services = new ArrayList(); xFireServices.put(s.getName(), services); } services.add(s); allServices.add(s); } | /**
* Adds a service to the map of services and also to the list of all services.
* @param s
*/ | Adds a service to the map of services and also to the list of all services | addService | {
"repo_name": "eduardodaluz/xfire",
"path": "xfire-core/src/main/org/codehaus/xfire/wsdl11/parser/WSDLServiceBuilder.java",
"license": "mit",
"size": 25642
} | [
"java.util.ArrayList",
"java.util.List",
"org.codehaus.xfire.service.Service"
] | import java.util.ArrayList; import java.util.List; import org.codehaus.xfire.service.Service; | import java.util.*; import org.codehaus.xfire.service.*; | [
"java.util",
"org.codehaus.xfire"
] | java.util; org.codehaus.xfire; | 649,162 |
public Node<?> getNodeForComponent(Split<?> split, Component comp) {
return getNodeForName(split, getNameForComponent(comp));
} | Node<?> function(Split<?> split, Component comp) { return getNodeForName(split, getNameForComponent(comp)); } | /**
* Get the MultiSplitLayout.Node associated with a component
*
* @param split
* the layout split that owns the requested node
* @param comp
* the component being positioned by the layout
* @return the node associated with the component
*/ | Get the MultiSplitLayout.Node associated with a component | getNodeForComponent | {
"repo_name": "openflexo-team/gina",
"path": "flexographicutils/src/main/java/org/openflexo/swing/layout/MultiSplitLayout.java",
"license": "gpl-3.0",
"size": 80916
} | [
"java.awt.Component"
] | import java.awt.Component; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,452,992 |
public final void testSetDataByteArrayInt()
{
t.setData(dataMin, 0);
try {
t.setData(new byte[] {}, 0);
fail("should throw");
}
catch (final KNXIllegalArgumentException e) {}
assertTrue(Arrays.equals(dataMin, t.getData()));
t.setData(dataMax, 0);
assertTrue(Arrays.equals(dataMax, t.getData()));... | final void function() { t.setData(dataMin, 0); try { t.setData(new byte[] {}, 0); fail(STR); } catch (final KNXIllegalArgumentException e) {} assertTrue(Arrays.equals(dataMin, t.getData())); t.setData(dataMax, 0); assertTrue(Arrays.equals(dataMax, t.getData())); t.setData(dataValue2, 2); byte[] d = t.getData(); assertE... | /**
* Test method for
* {@link tuwien.auto.calimero.dptxlator.DPTXlator4ByteUnsigned#setData(byte[], int)}.
*/ | Test method for <code>tuwien.auto.calimero.dptxlator.DPTXlator4ByteUnsigned#setData(byte[], int)</code> | testSetDataByteArrayInt | {
"repo_name": "CumpsD/calimero",
"path": "test/tuwien/auto/calimero/dptxlator/DPTXlator4ByteUnsignedTest.java",
"license": "gpl-2.0",
"size": 9287
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 347,681 |
@Override
public Representation represent(Variant variant) throws ResourceException {
// Generate the right representation according to its media type.
if (MediaType.TEXT_XML.equals(variant.getMediaType())) {
try {
DeploymentDriver actualDriver= (DeploymentDriver) getCon... | Representation function(Variant variant) throws ResourceException { if (MediaType.TEXT_XML.equals(variant.getMediaType())) { try { DeploymentDriver actualDriver= (DeploymentDriver) getContext().getAttributes().get(DeploymentApplication.ATTR_PLUGIN_DEPLOYMENT); StringRepresentation representation = new StringRepresentat... | /**
* Returns a listing of all registered items.
*/ | Returns a listing of all registered items | represent | {
"repo_name": "StratusLab/claudia",
"path": "tcloud-server/src/main/java/com/telefonica/claudia/smi/deployment/ServiceItemCollectionResource.java",
"license": "agpl-3.0",
"size": 12161
} | [
"com.telefonica.claudia.smi.URICreation",
"java.io.IOException",
"org.restlet.data.MediaType",
"org.restlet.resource.Representation",
"org.restlet.resource.ResourceException",
"org.restlet.resource.StringRepresentation",
"org.restlet.resource.Variant"
] | import com.telefonica.claudia.smi.URICreation; import java.io.IOException; import org.restlet.data.MediaType; import org.restlet.resource.Representation; import org.restlet.resource.ResourceException; import org.restlet.resource.StringRepresentation; import org.restlet.resource.Variant; | import com.telefonica.claudia.smi.*; import java.io.*; import org.restlet.data.*; import org.restlet.resource.*; | [
"com.telefonica.claudia",
"java.io",
"org.restlet.data",
"org.restlet.resource"
] | com.telefonica.claudia; java.io; org.restlet.data; org.restlet.resource; | 569,132 |
protected void addHrefPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_TemporalCSRefType_href_feature"),
getString("_UI_PropertyDescriptor_de... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), GmlPackage.eINSTANCE.getTemporalCSRefType_Href(), true, false, false, ItemPropertyDescriptor.GENE... | /**
* This adds a property descriptor for the Href feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds a property descriptor for the Href feature. | addHrefPropertyDescriptor | {
"repo_name": "markus1978/citygml4emf",
"path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/TemporalCSRefTypeItemProvider.java",
"license": "apache-2.0",
"size": 11918
} | [
"net.opengis.gml.GmlPackage",
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor"
] | import net.opengis.gml.GmlPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; | import net.opengis.gml.*; import org.eclipse.emf.edit.provider.*; | [
"net.opengis.gml",
"org.eclipse.emf"
] | net.opengis.gml; org.eclipse.emf; | 1,207,806 |
@Override
public String getElementId() {
return this.elementId;
}
private class StreamPublishProcessor implements Processor {
private final boolean allowCurrentEvents;
private final boolean allowExpiredEvents;
private final OutputStream.... | String function() { return this.elementId; } private class StreamPublishProcessor implements Processor { private final boolean allowCurrentEvents; private final boolean allowExpiredEvents; private final OutputStream.OutputEventType outputEventType; public StreamPublishProcessor(OutputStream.OutputEventType outputEventT... | /**
* Return the elementId which may be used for snapshot creation.
*
* @return the element id of this {@link Snapshotable} object
*/ | Return the elementId which may be used for snapshot creation | getElementId | {
"repo_name": "sajithshn/siddhi",
"path": "modules/siddhi-core/src/main/java/org/wso2/siddhi/core/window/Window.java",
"license": "apache-2.0",
"size": 14266
} | [
"org.wso2.siddhi.core.query.processor.Processor",
"org.wso2.siddhi.query.api.execution.query.output.stream.OutputStream"
] | import org.wso2.siddhi.core.query.processor.Processor; import org.wso2.siddhi.query.api.execution.query.output.stream.OutputStream; | import org.wso2.siddhi.core.query.processor.*; import org.wso2.siddhi.query.api.execution.query.output.stream.*; | [
"org.wso2.siddhi"
] | org.wso2.siddhi; | 2,137,308 |
public BioType getBioType() {
return bioType;
}
| BioType function() { return bioType; } | /**
* Gets the {@link BioType} of this token.
*
* @return The BIO type of this token.
*/ | Gets the <code>BioType</code> of this token | getBioType | {
"repo_name": "chriserikbarnes/oscar4",
"path": "oscar4-core/src/main/java/uk/ac/cam/ch/wwmm/oscar/document/Token.java",
"license": "artistic-2.0",
"size": 3791
} | [
"uk.ac.cam.ch.wwmm.oscar.types.BioType"
] | import uk.ac.cam.ch.wwmm.oscar.types.BioType; | import uk.ac.cam.ch.wwmm.oscar.types.*; | [
"uk.ac.cam"
] | uk.ac.cam; | 1,033,560 |
@Public
public static YarnClient createYarnClient() {
YarnClient client = new YarnClientImpl();
return client;
}
@Private
protected YarnClient(String name) {
super(name);
}
/**
* <p>
* Obtain a {@link YarnClientApplication} for a new application,
* which in turn contains the {@link ... | static YarnClient function() { YarnClient client = new YarnClientImpl(); return client; } protected YarnClient(String name) { super(name); } /** * <p> * Obtain a {@link YarnClientApplication} for a new application, * which in turn contains the {@link ApplicationSubmissionContext} and * {@link org.apache.hadoop.yarn.api... | /**
* Create a new instance of YarnClient.
*/ | Create a new instance of YarnClient | createYarnClient | {
"repo_name": "vlajos/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/api/YarnClient.java",
"license": "apache-2.0",
"size": 23724
} | [
"org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext",
"org.apache.hadoop.yarn.client.api.impl.YarnClientImpl"
] | import org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext; import org.apache.hadoop.yarn.client.api.impl.YarnClientImpl; | import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.client.api.impl.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,809,520 |
public ResolutionBuilder requireVersion(Name moduleId, Version version) {
validVersions.put(moduleId, Optional.of(new VersionRange(version, version.getNextPatchVersion())));
return this;
} | ResolutionBuilder function(Name moduleId, Version version) { validVersions.put(moduleId, Optional.of(new VersionRange(version, version.getNextPatchVersion()))); return this; } | /**
* Adds a module to the set of requirements.
* Previously defined requirements on a module are overwritten.
* @param moduleId the id of the module that must be resolved. Only the specified version matches.
* @param version the version of the module that must be matched
* ... | Adds a module to the set of requirements. Previously defined requirements on a module are overwritten | requireVersion | {
"repo_name": "msteiger/gestalt",
"path": "gestalt-module/src/main/java/org/terasology/module/DependencyResolver.java",
"license": "apache-2.0",
"size": 6765
} | [
"java.util.Optional",
"org.terasology.naming.Name",
"org.terasology.naming.Version",
"org.terasology.naming.VersionRange"
] | import java.util.Optional; import org.terasology.naming.Name; import org.terasology.naming.Version; import org.terasology.naming.VersionRange; | import java.util.*; import org.terasology.naming.*; | [
"java.util",
"org.terasology.naming"
] | java.util; org.terasology.naming; | 1,395,316 |
@Override
public File getById(int id) throws NoSuchElementException {
Connection conn = ConnectionManager.getConnection();
PreparedStatement pst = null;
ResultSet rs = null;
try {
UserDao udao = new UserDao();
pst = conn.prepareStatement(GET_BY_ID);
... | File function(int id) throws NoSuchElementException { Connection conn = ConnectionManager.getConnection(); PreparedStatement pst = null; ResultSet rs = null; try { UserDao udao = new UserDao(); pst = conn.prepareStatement(GET_BY_ID); pst.setInt(1, id); rs = pst.executeQuery(); if (rs.next()) { return new File( rs.getIn... | /**
* Returns file by id.
* @param id id of file in bd.
* @return file model.
* @throws NoSuchElementException if no file with such id in bd.
*/ | Returns file by id | getById | {
"repo_name": "helycopternicht/elazarev",
"path": "chapter_006/db_tracker/src/main/java/ru/elazarev/model/dao/FileDao.java",
"license": "apache-2.0",
"size": 4635
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"ru.elazarev.model.File",
"ru.elazarev.model.database.ConnectionManager",
"ru.elazarev.model.exceptions.NoSuchElementException"
] | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import ru.elazarev.model.File; import ru.elazarev.model.database.ConnectionManager; import ru.elazarev.model.exceptions.NoSuchElementException; | import java.sql.*; import ru.elazarev.model.*; import ru.elazarev.model.database.*; import ru.elazarev.model.exceptions.*; | [
"java.sql",
"ru.elazarev.model"
] | java.sql; ru.elazarev.model; | 2,492,152 |
public static ConfigUpdateRequest updateConfig(String baseUrl,
Map<String, String> requestProperties,
ConfigUpdateRequest configUpdateRequest,
String subject)
throws... | static ConfigUpdateRequest function(String baseUrl, Map<String, String> requestProperties, ConfigUpdateRequest configUpdateRequest, String subject) throws IOException, RestClientException { return updateConfig(new UrlList(baseUrl), requestProperties, configUpdateRequest, subject); } | /**
* On success, this api simply echoes the request in the response.
*/ | On success, this api simply echoes the request in the response | updateConfig | {
"repo_name": "ragnard/schema-registry",
"path": "client/src/main/java/io/confluent/kafka/schemaregistry/client/rest/utils/RestUtils.java",
"license": "apache-2.0",
"size": 14879
} | [
"io.confluent.kafka.schemaregistry.client.rest.entities.requests.ConfigUpdateRequest",
"io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException",
"java.io.IOException",
"java.util.Map"
] | import io.confluent.kafka.schemaregistry.client.rest.entities.requests.ConfigUpdateRequest; import io.confluent.kafka.schemaregistry.client.rest.exceptions.RestClientException; import java.io.IOException; import java.util.Map; | import io.confluent.kafka.schemaregistry.client.rest.entities.requests.*; import io.confluent.kafka.schemaregistry.client.rest.exceptions.*; import java.io.*; import java.util.*; | [
"io.confluent.kafka",
"java.io",
"java.util"
] | io.confluent.kafka; java.io; java.util; | 1,906,596 |
void doUSimAuthentication (String strRand, String strAutn, Message result); | void doUSimAuthentication (String strRand, String strAutn, Message result); | /**
* Request 3G context authentication for USIM
*/ | Request 3G context authentication for USIM | doUSimAuthentication | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "frameworks/opt/telephony/src/java/com/android/internal/telephony/Phone.java",
"license": "gpl-2.0",
"size": 87022
} | [
"android.os.Message"
] | import android.os.Message; | import android.os.*; | [
"android.os"
] | android.os; | 1,806,017 |
private Set<String> filterResourceNames(Set<String> resourceNames, String prefix, String suffix) {
Set<String> filteredResourceNames = new TreeSet<String>();
for (String resourceName : resourceNames) {
String fileName = resourceName.substring(resourceName.lastIndexOf("/") + 1);
... | Set<String> function(Set<String> resourceNames, String prefix, String suffix) { Set<String> filteredResourceNames = new TreeSet<String>(); for (String resourceName : resourceNames) { String fileName = resourceName.substring(resourceName.lastIndexOf("/") + 1); if (fileName.startsWith(prefix) && fileName.endsWith(suffix)... | /**
* Filters this list of resource names to only include the ones whose filename matches this prefix and this suffix.
*
* @param resourceNames The names to filter.
* @param prefix The prefix to match.
* @param suffix The suffix to match.
* @return The filtered names set.
... | Filters this list of resource names to only include the ones whose filename matches this prefix and this suffix | filterResourceNames | {
"repo_name": "fdefalco/flyway",
"path": "flyway-core/src/main/java/org/flywaydb/core/internal/util/scanner/classpath/ClassPathScanner.java",
"license": "apache-2.0",
"size": 12352
} | [
"java.util.Set",
"java.util.TreeSet"
] | import java.util.Set; import java.util.TreeSet; | import java.util.*; | [
"java.util"
] | java.util; | 2,870,820 |
public synchronized Rect getFramingRectInPreview() {
if (framingRectInPreview == null) {
Rect framingRect = getFramingRect();
if (framingRect == null) {
return null;
}
Rect rect = new Rect(framingRect);
Point cameraResolution = configManager.getCameraResolution();
Point screenResolution = con... | synchronized Rect function() { if (framingRectInPreview == null) { Rect framingRect = getFramingRect(); if (framingRect == null) { return null; } Rect rect = new Rect(framingRect); Point cameraResolution = configManager.getCameraResolution(); Point screenResolution = configManager.getScreenResolution(); if (cameraResol... | /**
* Like {@link #getFramingRect} but coordinates are in terms of the preview frame, not UI / screen.
*
* @return {@link Rect} expressing barcode scan area in terms of the preview size
*/ | Like <code>#getFramingRect</code> but coordinates are in terms of the preview frame, not UI / screen | getFramingRectInPreview | {
"repo_name": "talent518/zxing",
"path": "src/com/google/zxing/client/android/camera/CameraManager.java",
"license": "apache-2.0",
"size": 10749
} | [
"android.graphics.Point",
"android.graphics.Rect"
] | import android.graphics.Point; import android.graphics.Rect; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 1,722,468 |
@Test
public void testRestPortSpecified() throws IOException {
final Configuration initialConfiguration = new Configuration();
final int port = 1337;
initialConfiguration.setInteger(RestOptions.PORT, port);
final Configuration configuration = loadConfiguration(initialConfiguration);
// if the bind port ... | void function() throws IOException { final Configuration initialConfiguration = new Configuration(); final int port = 1337; initialConfiguration.setInteger(RestOptions.PORT, port); final Configuration configuration = loadConfiguration(initialConfiguration); assertThat(configuration.getString(RestOptions.BIND_PORT), is(... | /**
* Tests that the binding REST port is set to the REST port if set.
*/ | Tests that the binding REST port is set to the REST port if set | testRestPortSpecified | {
"repo_name": "gyfora/flink",
"path": "flink-yarn/src/test/java/org/apache/flink/yarn/entrypoint/YarnEntrypointUtilsTest.java",
"license": "apache-2.0",
"size": 3917
} | [
"java.io.IOException",
"org.apache.flink.configuration.Configuration",
"org.apache.flink.configuration.RestOptions",
"org.hamcrest.Matchers",
"org.junit.Assert"
] | import java.io.IOException; import org.apache.flink.configuration.Configuration; import org.apache.flink.configuration.RestOptions; import org.hamcrest.Matchers; import org.junit.Assert; | import java.io.*; import org.apache.flink.configuration.*; import org.hamcrest.*; import org.junit.*; | [
"java.io",
"org.apache.flink",
"org.hamcrest",
"org.junit"
] | java.io; org.apache.flink; org.hamcrest; org.junit; | 223,478 |
public Array getArray (int i) throws SQLException {
throw Util.notImplemented();
}
| Array function (int i) throws SQLException { throw Util.notImplemented(); } | /**
* JDBC 2.0
*
* Get an Array OUT parameter.
*
* @param i the first parameter is 1, the second is 2, ...
* @return an object representing an SQL array
* @exception SQLException if a database-access error occurs.
*/ | JDBC 2.0 Get an Array OUT parameter | getArray | {
"repo_name": "splicemachine/spliceengine",
"path": "db-engine/src/main/java/com/splicemachine/db/impl/jdbc/EmbedCallableStatement20.java",
"license": "agpl-3.0",
"size": 37363
} | [
"java.sql.Array",
"java.sql.SQLException"
] | import java.sql.Array; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,798,969 |
public void setStyles(final List<WordStyle> styles) {
this.styles = styles;
} | void function(final List<WordStyle> styles) { this.styles = styles; } | /**
* Sets the styles.
*
* @param styles the new styles
*/ | Sets the styles | setStyles | {
"repo_name": "supunucsc/java-sdk",
"path": "discovery/src/main/java/com/ibm/watson/developer_cloud/discovery/v1/model/WordHeadingDetection.java",
"license": "apache-2.0",
"size": 1479
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 489,885 |
public static LocationExpander withExecPaths(
RuleContext ruleContext, ImmutableMap<Label, ImmutableCollection<Artifact>> labelMap) {
return new LocationExpander(ruleContext, labelMap, true, false);
} | static LocationExpander function( RuleContext ruleContext, ImmutableMap<Label, ImmutableCollection<Artifact>> labelMap) { return new LocationExpander(ruleContext, labelMap, true, false); } | /**
* Creates an expander that expands $(location)/$(locations) using Artifact.getExecPath().
*
* <p>The expander expands $(rootpath)/$(rootpaths) using Artifact.getLocationPath(), and
* $(execpath)/$(execpaths) using Artifact.getExecPath().
*
* @param ruleContext BUILD rule
* @param labelMap A map... | Creates an expander that expands $(location)/$(locations) using Artifact.getExecPath(). The expander expands $(rootpath)/$(rootpaths) using Artifact.getLocationPath(), and $(execpath)/$(execpaths) using Artifact.getExecPath() | withExecPaths | {
"repo_name": "twitter-forks/bazel",
"path": "src/main/java/com/google/devtools/build/lib/analysis/LocationExpander.java",
"license": "apache-2.0",
"size": 18370
} | [
"com.google.common.collect.ImmutableCollection",
"com.google.common.collect.ImmutableMap",
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.cmdline.Label"
] | import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.cmdline.Label; | import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.cmdline.*; | [
"com.google.common",
"com.google.devtools"
] | com.google.common; com.google.devtools; | 990,945 |
default KeyValueIterator<Windowed<K>, AGG> backwardFetch(final K key) {
throw new UnsupportedOperationException(
"This API is not supported by this implementation of ReadOnlySessionStore.");
} | default KeyValueIterator<Windowed<K>, AGG> backwardFetch(final K key) { throw new UnsupportedOperationException( STR); } | /**
* Retrieve all aggregated sessions for the provided key. This iterator must be closed after
* use.
* <p>
* For each key, the iterator guarantees ordering of sessions, starting from the newest/latest
* available session to the oldest/earliest session.
*
* @param key record key to f... | Retrieve all aggregated sessions for the provided key. This iterator must be closed after use. For each key, the iterator guarantees ordering of sessions, starting from the newest/latest available session to the oldest/earliest session | backwardFetch | {
"repo_name": "TiVo/kafka",
"path": "streams/src/main/java/org/apache/kafka/streams/state/ReadOnlySessionStore.java",
"license": "apache-2.0",
"size": 22245
} | [
"org.apache.kafka.streams.kstream.Windowed"
] | import org.apache.kafka.streams.kstream.Windowed; | import org.apache.kafka.streams.kstream.*; | [
"org.apache.kafka"
] | org.apache.kafka; | 113,374 |
private void findNextExpireTime()
{
if (objects.size() == 0)
{
nextTimeSomeExpired = NO_OBJECTS;
}
else
{
nextTimeSomeExpired = NO_OBJECTS;
Collection<Long> longs = null;
synchronized (objects)
{
... | void function() { if (objects.size() == 0) { nextTimeSomeExpired = NO_OBJECTS; } else { nextTimeSomeExpired = NO_OBJECTS; Collection<Long> longs = null; synchronized (objects) { longs = new ArrayList(objectTimeStamps.values()); } for (Iterator<Long> iterator = longs.iterator(); iterator.hasNext(); ) { Long next = itera... | /**
* Internal-use method, finds out when next object will expire and store this as nextTimeSomeExpired.
* If there's no items in cache - let's store NO_OBJECTS
*/ | Internal-use method, finds out when next object will expire and store this as nextTimeSomeExpired. If there's no items in cache - let's store NO_OBJECTS | findNextExpireTime | {
"repo_name": "yerenkow/javaz",
"path": "cache/src/main/java/org/javaz/cache/CacheImpl.java",
"license": "bsd-2-clause",
"size": 6577
} | [
"java.util.ArrayList",
"java.util.Collection",
"java.util.Iterator"
] | import java.util.ArrayList; import java.util.Collection; import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,142,052 |
EClass getBoundingBoxDataType(); | EClass getBoundingBoxDataType(); | /**
* Returns the meta object for class '{@link net.opengis.wps20.BoundingBoxDataType <em>Bounding Box Data Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Bounding Box Data Type</em>'.
* @see net.opengis.wps20.BoundingBoxDataType
* @generated
*/ | Returns the meta object for class '<code>net.opengis.wps20.BoundingBoxDataType Bounding Box Data Type</code>'. | getBoundingBoxDataType | {
"repo_name": "geotools/geotools",
"path": "modules/ogc/net.opengis.wps/src/net/opengis/wps20/Wps20Package.java",
"license": "lgpl-2.1",
"size": 228745
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 173,129 |
@BeanProperty(hidden = true, visualUpdate = true, description
= "The UI object that implements the Component's LookAndFeel.")
public void setUI(PopupMenuUI ui) {
super.setUI(ui);
} | @BeanProperty(hidden = true, visualUpdate = true, description = STR) void function(PopupMenuUI ui) { super.setUI(ui); } | /**
* Sets the L&F object that renders this component.
*
* @param ui the new <code>PopupMenuUI</code> L&F object
* @see UIDefaults#getUI
*/ | Sets the L&F object that renders this component | setUI | {
"repo_name": "mirkosertic/Bytecoder",
"path": "classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/javax/swing/JPopupMenu.java",
"license": "apache-2.0",
"size": 53892
} | [
"java.beans.BeanProperty",
"javax.swing.plaf.PopupMenuUI"
] | import java.beans.BeanProperty; import javax.swing.plaf.PopupMenuUI; | import java.beans.*; import javax.swing.plaf.*; | [
"java.beans",
"javax.swing"
] | java.beans; javax.swing; | 2,135,124 |
public void setCreate(long millis) {
this.create = new GregorianCalendar();
this.create.setTimeInMillis(millis);
} | void function(long millis) { this.create = new GregorianCalendar(); this.create.setTimeInMillis(millis); } | /**
* Date and time setter.
*
* @param millis - time in milliseconds
*/ | Date and time setter | setCreate | {
"repo_name": "dinar92/java_training",
"path": "chapter_002/src/main/java/ru/job4j/model/Item.java",
"license": "apache-2.0",
"size": 3628
} | [
"java.util.GregorianCalendar"
] | import java.util.GregorianCalendar; | import java.util.*; | [
"java.util"
] | java.util; | 1,650,375 |
private Object[][] createRandomWords(final String dictFile, final int size)
throws IOException
{
final FileWordList fwl = new FileWordList(
new RandomAccessFile(dictFile, "r"));
final Object[][] allWords = new Object[size][1];
final Random r = new Random();
for (int i = 0; i < size; i++) {... | Object[][] function(final String dictFile, final int size) throws IOException { final FileWordList fwl = new FileWordList( new RandomAccessFile(dictFile, "r")); final Object[][] allWords = new Object[size][1]; final Random r = new Random(); for (int i = 0; i < size; i++) { allWords[i] = new Object[] {fwl.get(r.nextInt(... | /**
* Returns an array of random words from the supplied file of the supplied
* size.
*
* @param dictFile <code>String</code> to read
* @param size <code>int</code> of array to return
*
* @return <code>Object[][]</code> containing words
*
* @throws IOException if an error occurs readin... | Returns an array of random words from the supplied file of the supplied size | createRandomWords | {
"repo_name": "dfish3r/vt-dictionary",
"path": "src/test/java/edu/vt/middleware/dictionary/AbstractDictionaryPerfTest.java",
"license": "apache-2.0",
"size": 4923
} | [
"java.io.IOException",
"java.io.RandomAccessFile",
"java.util.Random"
] | import java.io.IOException; import java.io.RandomAccessFile; import java.util.Random; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,302,161 |
public static void unstar(final JFrame parent, final INaviModule[] modules) {
for (final INaviModule module : modules) {
try {
module.getConfiguration().setStared(false);
} catch (final CouldntSaveDataException e) {
CUtilityFunctions.logException(e);
final String innerMessage ... | static void function(final JFrame parent, final INaviModule[] modules) { for (final INaviModule module : modules) { try { module.getConfiguration().setStared(false); } catch (final CouldntSaveDataException e) { CUtilityFunctions.logException(e); final String innerMessage = STR + STR; final String innerDescription = CUt... | /**
* Unstars modules.
*
* @param parent Parent window used for dialogs.
* @param modules The modules to unstar.
*/ | Unstars modules | unstar | {
"repo_name": "guiquanz/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/Gui/MainWindow/Implementations/CModuleStaringFunctions.java",
"license": "apache-2.0",
"size": 4142
} | [
"com.google.security.zynamics.binnavi.CUtilityFunctions",
"com.google.security.zynamics.binnavi.Database",
"com.google.security.zynamics.binnavi.Gui",
"com.google.security.zynamics.binnavi.disassembly.INaviModule",
"javax.swing.JFrame"
] | import com.google.security.zynamics.binnavi.CUtilityFunctions; import com.google.security.zynamics.binnavi.Database; import com.google.security.zynamics.binnavi.Gui; import com.google.security.zynamics.binnavi.disassembly.INaviModule; import javax.swing.JFrame; | import com.google.security.zynamics.binnavi.*; import com.google.security.zynamics.binnavi.disassembly.*; import javax.swing.*; | [
"com.google.security",
"javax.swing"
] | com.google.security; javax.swing; | 2,659,471 |
public static void locatorNotNull(Locator loc) {
if (loc == null) {
throw new IllegalArgumentException("The locator must not be null");
}
} | static void function(Locator loc) { if (loc == null) { throw new IllegalArgumentException(STR); } } | /**
* Throws a IllegalArgumentException if the locator is <code>null</code>
*
* @param loc
* the locator to check
*/ | Throws a IllegalArgumentException if the locator is <code>null</code> | locatorNotNull | {
"repo_name": "ontopia/ontopia",
"path": "ontopia-engine/src/main/java/net/ontopia/topicmaps/impl/tmapi2/Check.java",
"license": "apache-2.0",
"size": 10007
} | [
"org.tmapi.core.Locator"
] | import org.tmapi.core.Locator; | import org.tmapi.core.*; | [
"org.tmapi.core"
] | org.tmapi.core; | 264,542 |
protected String id(InternalContextAdapter context)
{
StrBuilder str = new StrBuilder(100)
.append("block $").append(key);
if (!context.getCurrentTemplateName().equals(getTemplateName()))
{
str.append(" used in ").append(context.getCurrentTemplateName());
... | String function(InternalContextAdapter context) { StrBuilder str = new StrBuilder(100) .append(STR).append(key); if (!context.getCurrentTemplateName().equals(getTemplateName())) { str.append(STR).append(context.getCurrentTemplateName()); } return str.toString(); } public static class Reference implements Renderable { p... | /**
* Creates a string identifying the source and location of the block
* definition, and the current template being rendered if that is
* different.
*/ | Creates a string identifying the source and location of the block definition, and the current template being rendered if that is different | id | {
"repo_name": "austindlawless/dotCMS",
"path": "src/org/apache/velocity/runtime/directive/Block.java",
"license": "gpl-3.0",
"size": 5520
} | [
"com.dotcms.repackage.commons_lang_2_4.org.apache.commons.lang.text.StrBuilder",
"org.apache.velocity.context.InternalContextAdapter",
"org.apache.velocity.runtime.Renderable"
] | import com.dotcms.repackage.commons_lang_2_4.org.apache.commons.lang.text.StrBuilder; import org.apache.velocity.context.InternalContextAdapter; import org.apache.velocity.runtime.Renderable; | import com.dotcms.repackage.commons_lang_2_4.org.apache.commons.lang.text.*; import org.apache.velocity.context.*; import org.apache.velocity.runtime.*; | [
"com.dotcms.repackage",
"org.apache.velocity"
] | com.dotcms.repackage; org.apache.velocity; | 786,043 |
protected final void generate(Set<String> literals, Set<String> expressionKeywords,
Set<String> modifiers, Set<String> primitiveTypes, Set<String> punctuation,
Set<String> ignored, Set<String> specialKeywords, Set<String> typeDeclarationKeywords) {
final T appendable = newStyleAppendable();
generate(append... | final void function(Set<String> literals, Set<String> expressionKeywords, Set<String> modifiers, Set<String> primitiveTypes, Set<String> punctuation, Set<String> ignored, Set<String> specialKeywords, Set<String> typeDeclarationKeywords) { final T appendable = newStyleAppendable(); generate(appendable, literals, express... | /** Generate the external specification.
*
* @param literals - the SARL literals.
* @param expressionKeywords - the SARL keywords, usually within expressions.
* @param modifiers - the modifier keywords.
* @param primitiveTypes - the primitive types.
* @param punctuation - the SARL punctuation symbols.
* @... | Generate the external specification | generate | {
"repo_name": "jgfoster/sarl",
"path": "main/coreplugins/io.sarl.lang.mwe2/src/io/sarl/lang/mwe2/externalspec/AbstractExternalHighlightingFragment2.java",
"license": "apache-2.0",
"size": 19163
} | [
"java.text.MessageFormat",
"java.util.Set"
] | import java.text.MessageFormat; import java.util.Set; | import java.text.*; import java.util.*; | [
"java.text",
"java.util"
] | java.text; java.util; | 664,431 |
protected void scanAttributeValue(XMLString value,
XMLString nonNormalizedValue,
String atName,
XMLAttributes attributes, int attrIndex,
boolean checkEntities)
throws IOException, XNIException {
XMLStringBuffer stringBuffer = null;
// quote... | void function(XMLString value, XMLString nonNormalizedValue, String atName, XMLAttributes attributes, int attrIndex, boolean checkEntities) throws IOException, XNIException { XMLStringBuffer stringBuffer = null; int quote = fEntityScanner.peekChar(); if (quote != '\'' && quote != 'STROpenQuoteExpectedSTR** scanLiteral ... | /**
* Scans an attribute value and normalizes whitespace converting all
* whitespace characters to space characters.
*
* [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'"
*
* @param value The XMLString to fill in with the value.
* @param nonNormalizedValu... | Scans an attribute value and normalizes whitespace converting all whitespace characters to space characters. [10] AttValue ::= '"' ([^<&"] | Reference)* '"' | "'" ([^<&'] | Reference)* "'" | scanAttributeValue | {
"repo_name": "PrincetonUniversity/NVJVM",
"path": "build/linux-amd64/jaxp/drop/jaxp_src/src/com/sun/org/apache/xerces/internal/impl/XMLScanner.java",
"license": "gpl-2.0",
"size": 56304
} | [
"com.sun.org.apache.xerces.internal.util.XMLStringBuffer",
"com.sun.org.apache.xerces.internal.xni.XMLAttributes",
"com.sun.org.apache.xerces.internal.xni.XMLString",
"com.sun.org.apache.xerces.internal.xni.XNIException",
"java.io.IOException"
] | import com.sun.org.apache.xerces.internal.util.XMLStringBuffer; import com.sun.org.apache.xerces.internal.xni.XMLAttributes; import com.sun.org.apache.xerces.internal.xni.XMLString; import com.sun.org.apache.xerces.internal.xni.XNIException; import java.io.IOException; | import com.sun.org.apache.xerces.internal.util.*; import com.sun.org.apache.xerces.internal.xni.*; import java.io.*; | [
"com.sun.org",
"java.io"
] | com.sun.org; java.io; | 217,997 |
public BigInteger getBigInteger(String key) throws JSONException {
Object object = this.get(key);
try {
return new BigInteger(object.toString());
} catch (Exception e) {
throw new JSONException("JSONObject[" + quote(key)
+ "] could not be converted to BigInteger.");
}
} | BigInteger function(String key) throws JSONException { Object object = this.get(key); try { return new BigInteger(object.toString()); } catch (Exception e) { throw new JSONException(STR + quote(key) + STR); } } | /**
* Get the BigInteger value associated with a key.
*
* @param key
* A key string.
* @return The numeric value.
* @throws JSONException
* if the key is not found or if the value cannot be converted
* to BigInteger.
*/ | Get the BigInteger value associated with a key | getBigInteger | {
"repo_name": "raghu-bhandi/simplity",
"path": "java/org/simplity/json/JSONObject.java",
"license": "mit",
"size": 55374
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 196,183 |
public void updateProcessorIdNames(String templateName, Collection<ProcessorDTO> processors) {
updateProcessorIdNames(processors, true);
} | void function(String templateName, Collection<ProcessorDTO> processors) { updateProcessorIdNames(processors, true); } | /**
* add processors to the cache
*
* @param templateName a template name
* @param processors processors to add to the cache
*/ | add processors to the cache | updateProcessorIdNames | {
"repo_name": "claudiu-stanciu/kylo",
"path": "services/feed-manager-service/feed-manager-controller/src/main/java/com/thinkbiganalytics/feedmgr/nifi/cache/NifiFlowCacheImpl.java",
"license": "apache-2.0",
"size": 38026
} | [
"java.util.Collection",
"org.apache.nifi.web.api.dto.ProcessorDTO"
] | import java.util.Collection; import org.apache.nifi.web.api.dto.ProcessorDTO; | import java.util.*; import org.apache.nifi.web.api.dto.*; | [
"java.util",
"org.apache.nifi"
] | java.util; org.apache.nifi; | 2,865,482 |
@Override
public void loginAnonymously() {
UsernamePasswordHandler uph = getLoginCallbackHandler();
uph.setUsername(SecurityHelper.ANONYMOUS_USER_NAME);
uph.setPassword("");
login();
} | void function() { UsernamePasswordHandler uph = getLoginCallbackHandler(); uph.setUsername(SecurityHelper.ANONYMOUS_USER_NAME); uph.setPassword(""); login(); } | /**
* Request anonymous login to tha application.
*/ | Request anonymous login to tha application | loginAnonymously | {
"repo_name": "maximehamm/jspresso-ce",
"path": "application/src/main/java/org/jspresso/framework/application/frontend/controller/AbstractFrontendController.java",
"license": "lgpl-3.0",
"size": 82212
} | [
"org.jspresso.framework.security.SecurityHelper",
"org.jspresso.framework.security.UsernamePasswordHandler"
] | import org.jspresso.framework.security.SecurityHelper; import org.jspresso.framework.security.UsernamePasswordHandler; | import org.jspresso.framework.security.*; | [
"org.jspresso.framework"
] | org.jspresso.framework; | 1,374,777 |
@Override
public String getType(final Uri uri) {
int match = sURIMatcher.match(uri);
switch (match) {
case MY_DOWNLOADS:
case ALL_DOWNLOADS: {
return DOWNLOAD_LIST_TYPE;
}
case MY_DOWNLOADS_ID:
case ALL_DOWNLOADS_ID:
... | String function(final Uri uri) { int match = sURIMatcher.match(uri); switch (match) { case MY_DOWNLOADS: case ALL_DOWNLOADS: { return DOWNLOAD_LIST_TYPE; } case MY_DOWNLOADS_ID: case ALL_DOWNLOADS_ID: case PUBLIC_DOWNLOAD_ID: { final String id = getDownloadIdFromUri(uri); final SQLiteDatabase db = mOpenHelper.getReadab... | /**
* Returns the content-provider-style MIME types of the various
* types accessible through this content provider.
*/ | Returns the content-provider-style MIME types of the various types accessible through this content provider | getType | {
"repo_name": "s20121035/rk3288_android5.1_repo",
"path": "packages/providers/DownloadProvider/src/com/android/providers/downloads/DownloadProvider.java",
"license": "gpl-3.0",
"size": 59233
} | [
"android.database.DatabaseUtils",
"android.database.sqlite.SQLiteDatabase",
"android.net.Uri",
"android.provider.Downloads",
"android.text.TextUtils",
"android.util.Log"
] | import android.database.DatabaseUtils; import android.database.sqlite.SQLiteDatabase; import android.net.Uri; import android.provider.Downloads; import android.text.TextUtils; import android.util.Log; | import android.database.*; import android.database.sqlite.*; import android.net.*; import android.provider.*; import android.text.*; import android.util.*; | [
"android.database",
"android.net",
"android.provider",
"android.text",
"android.util"
] | android.database; android.net; android.provider; android.text; android.util; | 1,668,285 |
@Test
public void testGet03() {
// given
String url = getDefaultHostAndPort() + API_USER_GET
+ "?email=" + getDefaultEmail();
// when
ResponseEntity<String> entity = exchangeRest(HttpMethod.GET, url);
// then
assertEquals(SC_UNAUTHORIZED, entity... | void function() { String url = getDefaultHostAndPort() + API_USER_GET + STR + getDefaultEmail(); ResponseEntity<String> entity = exchangeRest(HttpMethod.GET, url); assertEquals(SC_UNAUTHORIZED, entity.getStatusCode().value()); } | /**
* testGet03().
* missing access token
*/ | testGet03(). missing access token | testGet03 | {
"repo_name": "formkiq/formkiq-server",
"path": "web/src/test/java/com/formkiq/web/UsersControllerIntegrationTest.java",
"license": "apache-2.0",
"size": 38086
} | [
"org.junit.Assert",
"org.springframework.http.HttpMethod",
"org.springframework.http.ResponseEntity"
] | import org.junit.Assert; import org.springframework.http.HttpMethod; import org.springframework.http.ResponseEntity; | import org.junit.*; import org.springframework.http.*; | [
"org.junit",
"org.springframework.http"
] | org.junit; org.springframework.http; | 898,642 |
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
@SuppressWarnings("ucd")
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
... | void function() { oredCriteria.clear(); orderByClause = null; distinct = false; } @SuppressWarnings("ucd") protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<Criterion>(); } | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table s_table_customize_view
*
* @mbggenerated Tue Sep 08 09:15:20 ICT 2015
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table s_table_customize_view | clear | {
"repo_name": "onlylin/mycollab",
"path": "mycollab-services/src/main/java/com/esofthead/mycollab/common/domain/CustomViewStoreExample.java",
"license": "agpl-3.0",
"size": 20401
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,421,395 |
public NumberFormat getRealFormat() {
return realFormat;
} | NumberFormat function() { return realFormat; } | /**
* Access the realFormat.
* @return the realFormat.
*/ | Access the realFormat | getRealFormat | {
"repo_name": "sdinot/hipparchus",
"path": "hipparchus-core/src/main/java/org/hipparchus/complex/ComplexFormat.java",
"license": "apache-2.0",
"size": 16109
} | [
"java.text.NumberFormat"
] | import java.text.NumberFormat; | import java.text.*; | [
"java.text"
] | java.text; | 2,270,944 |
public void testVideoInfoLeechers() throws RemoteException,
UiObjectNotFoundException {
openVideoInfoScreen();
UiObject infoView = new UiObject(
new UiSelector().className("android.widget.RelativeLayout"));
UiObject parent = infoView.getChild(new UiSelector().index(2));
UiObject leechers = parent.get... | void function() throws RemoteException, UiObjectNotFoundException { openVideoInfoScreen(); UiObject infoView = new UiObject( new UiSelector().className(STR)); UiObject parent = infoView.getChild(new UiSelector().index(2)); UiObject leechers = parent.getChild(new UiSelector().index(3)); assertTrue(STR, leechers.exists()... | /**
* Tests whether the video info screen contains the leechers info TextView
*
* @throws RemoteException
* @throws UiObjectNotFoundException
*/ | Tests whether the video info screen contains the leechers info TextView | testVideoInfoLeechers | {
"repo_name": "Tribler/tribler-android",
"path": "tsap-UItests/src/org/tribler/tsap/UItests/VideoInfoUiTest.java",
"license": "gpl-3.0",
"size": 13885
} | [
"android.os.RemoteException",
"com.android.uiautomator.core.UiObject",
"com.android.uiautomator.core.UiObjectNotFoundException",
"com.android.uiautomator.core.UiSelector"
] | import android.os.RemoteException; import com.android.uiautomator.core.UiObject; import com.android.uiautomator.core.UiObjectNotFoundException; import com.android.uiautomator.core.UiSelector; | import android.os.*; import com.android.uiautomator.core.*; | [
"android.os",
"com.android.uiautomator"
] | android.os; com.android.uiautomator; | 1,104,022 |
public static Handle getPressedHandle(float x,
float y,
float left,
float top,
float right,
float bottom,
... | static Handle function(float x, float y, float left, float top, float right, float bottom, float targetRadius) { Handle pressedHandle = null; if (HandleUtil.isInCornerTargetZone(x, y, left, top, targetRadius)) { pressedHandle = Handle.TOP_LEFT; } else if (HandleUtil.isInCornerTargetZone(x, y, right, top, targetRadius))... | /**
* Determines which, if any, of the handles are pressed given the touch
* coordinates, the bounding box, and the touch radius.
*
* @param x the x-coordinate of the touch point
* @param y the y-coordinate of the touch point
* @param left the x-coordinate of the left bound
* @param ... | Determines which, if any, of the handles are pressed given the touch coordinates, the bounding box, and the touch radius | getPressedHandle | {
"repo_name": "Palleiro/HCTControl",
"path": "app/src/main/java/com/hctrom/romcontrol/cropper/util/HandleUtil.java",
"license": "apache-2.0",
"size": 11909
} | [
"com.hctrom.romcontrol.cropper.cropwindow.handle.Handle"
] | import com.hctrom.romcontrol.cropper.cropwindow.handle.Handle; | import com.hctrom.romcontrol.cropper.cropwindow.handle.*; | [
"com.hctrom.romcontrol"
] | com.hctrom.romcontrol; | 854,689 |
public void test_shutdown_waitsForReadOnlyTx_aborts()
throws InterruptedException {
final MockTransactionService service = newFixture();
try {
final long tx = service.newTx(ITx.UNISOLATED);
final TxState txState = service.getTxState(tx);
... | void function() throws InterruptedException { final MockTransactionService service = newFixture(); try { final long tx = service.newTx(ITx.UNISOLATED); final TxState txState = service.getTxState(tx); assertFalse(txState.isReadOnly()); assertTrue(txState.isActive()); final Thread t = new Thread() { | /**
* Test that the service will wait for a read-only tx to abort.
*/ | Test that the service will wait for a read-only tx to abort | test_shutdown_waitsForReadOnlyTx_aborts | {
"repo_name": "smalyshev/blazegraph",
"path": "bigdata/src/test/com/bigdata/journal/TestTransactionService.java",
"license": "gpl-2.0",
"size": 73673
} | [
"com.bigdata.service.AbstractTransactionService"
] | import com.bigdata.service.AbstractTransactionService; | import com.bigdata.service.*; | [
"com.bigdata.service"
] | com.bigdata.service; | 2,253,075 |
public static Double getAverage( List<Double> values )
{
Double sum = getSum( values );
return sum / values.size();
}
| static Double function( List<Double> values ) { Double sum = getSum( values ); return sum / values.size(); } | /**
* Returns the average of the given values.
*
* @param values the values.
* @return the average.
*/ | Returns the average of the given values | getAverage | {
"repo_name": "vietnguyen/dhis2-core",
"path": "dhis-2/dhis-support/dhis-support-system/src/main/java/org/hisp/dhis/system/util/MathUtils.java",
"license": "bsd-3-clause",
"size": 24287
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,623,870 |
@XmlElement
@XmlJavaTypeAdapter(Decimal5Mapper.class)
public void setDecimal53(Decimal5 decimal53) {
preset(decimal53PropertyName, decimal53);
this.decimal53 = decimal53;
} | @XmlJavaTypeAdapter(Decimal5Mapper.class) void function(Decimal5 decimal53) { preset(decimal53PropertyName, decimal53); this.decimal53 = decimal53; } | /**
* {@link #decimal53} mutator.
* @param decimal53 The new value.
**/ | <code>#decimal53</code> mutator | setDecimal53 | {
"repo_name": "skyvers/skyve",
"path": "skyve-ejb/src/generated/java/modules/admin/domain/Generic.java",
"license": "lgpl-2.1",
"size": 24963
} | [
"javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter",
"org.skyve.domain.types.Decimal5",
"org.skyve.impl.domain.types.jaxb.Decimal5Mapper"
] | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; import org.skyve.domain.types.Decimal5; import org.skyve.impl.domain.types.jaxb.Decimal5Mapper; | import javax.xml.bind.annotation.adapters.*; import org.skyve.domain.types.*; import org.skyve.impl.domain.types.jaxb.*; | [
"javax.xml",
"org.skyve.domain",
"org.skyve.impl"
] | javax.xml; org.skyve.domain; org.skyve.impl; | 298,370 |
@InterfaceAudience.LimitedPrivate("Test")
List<Connection> getConnectionListCopy() {
synchronized (connsByAddress) {
return ImmutableList.copyOf(connsByAddress.values());
}
} | @InterfaceAudience.LimitedPrivate("Test") List<Connection> getConnectionListCopy() { synchronized (connsByAddress) { return ImmutableList.copyOf(connsByAddress.values()); } } | /**
* Return a copy of the all-connections-list. This method is exposed only to allow
* {@link AsyncKuduClient} to forward it, so tests could get access to the underlying elements
* of the cache.
*
* @return a copy of the list of all connections in the connection cache
*/ | Return a copy of the all-connections-list. This method is exposed only to allow <code>AsyncKuduClient</code> to forward it, so tests could get access to the underlying elements of the cache | getConnectionListCopy | {
"repo_name": "EvilMcJerkface/kudu",
"path": "java/kudu-client/src/main/java/org/apache/kudu/client/ConnectionCache.java",
"license": "apache-2.0",
"size": 7693
} | [
"com.google.common.collect.ImmutableList",
"java.util.List",
"org.apache.yetus.audience.InterfaceAudience"
] | import com.google.common.collect.ImmutableList; import java.util.List; import org.apache.yetus.audience.InterfaceAudience; | import com.google.common.collect.*; import java.util.*; import org.apache.yetus.audience.*; | [
"com.google.common",
"java.util",
"org.apache.yetus"
] | com.google.common; java.util; org.apache.yetus; | 1,850,190 |
protected final Activity getCurrentActivity() {
Assert.state(this.currentActivity != null, "No current activity injected");
return this.currentActivity;
} | final Activity function() { Assert.state(this.currentActivity != null, STR); return this.currentActivity; } | /**
* Return the current Activity.
*/ | Return the current Activity | getCurrentActivity | {
"repo_name": "aspectran/aspectran",
"path": "web/src/main/java/com/aspectran/web/support/tags/CurrentActivityAwareTag.java",
"license": "apache-2.0",
"size": 3162
} | [
"com.aspectran.core.activity.Activity",
"com.aspectran.core.util.Assert"
] | import com.aspectran.core.activity.Activity; import com.aspectran.core.util.Assert; | import com.aspectran.core.activity.*; import com.aspectran.core.util.*; | [
"com.aspectran.core"
] | com.aspectran.core; | 850,180 |
protected void applyNamedParameterToQuery(Query queryObject, String paramName, Object value, Type type)
throws HibernateException {
if (value instanceof Collection) {
if (type != null) {
queryObject.setParameterList(paramName, (Collection) value, type);
}
else {
queryObject.setParameterList(pa... | void function(Query queryObject, String paramName, Object value, Type type) throws HibernateException { if (value instanceof Collection) { if (type != null) { queryObject.setParameterList(paramName, (Collection) value, type); } else { queryObject.setParameterList(paramName, (Collection) value); } } else if (value insta... | /**
* Apply the given name parameter to the given Query object.
* @param queryObject the Query object
* @param paramName the name of the parameter
* @param value the value of the parameter
* @param type Hibernate type of the parameter (or <code>null</code> if none specified)
* @throws HibernateException if ... | Apply the given name parameter to the given Query object | applyNamedParameterToQuery | {
"repo_name": "raedle/univis",
"path": "lib/springframework-1.2.8/src/org/springframework/orm/hibernate/HibernateTemplate.java",
"license": "lgpl-2.1",
"size": 39292
} | [
"java.lang.reflect.InvocationHandler",
"java.util.Collection",
"net.sf.hibernate.HibernateException",
"net.sf.hibernate.Query",
"net.sf.hibernate.Session",
"net.sf.hibernate.type.Type"
] | import java.lang.reflect.InvocationHandler; import java.util.Collection; import net.sf.hibernate.HibernateException; import net.sf.hibernate.Query; import net.sf.hibernate.Session; import net.sf.hibernate.type.Type; | import java.lang.reflect.*; import java.util.*; import net.sf.hibernate.*; import net.sf.hibernate.type.*; | [
"java.lang",
"java.util",
"net.sf.hibernate"
] | java.lang; java.util; net.sf.hibernate; | 2,648,206 |
private Node findSibling(BodyComponent body)
{
// Public methods should only call this if tree's non-empty
assert (!isEmpty());
// Find encompassing AABB
final Rect2D bodyRect = body.getBounds();
Node cursor = mRoot;
while (cursor != null) {
// Findi... | Node function(BodyComponent body) { assert (!isEmpty()); final Rect2D bodyRect = body.getBounds(); Node cursor = mRoot; while (cursor != null) { if (isLeaf(cursor)) { break; } final Node left = cursor.mLeft; final Node right = cursor.mRight; final float leftArea = computeArea(left.getRect(), bodyRect); final float righ... | /**
* <p>Finds the {@link Node} holding the {@link Rect2D} that should be the sibling of a given Rect2D to be added
* .</p>
*
* @param body to be added.
* @return sibling Node.
*/ | Finds the <code>Node</code> holding the <code>Rect2D</code> that should be the sibling of a given Rect2D to be added | findSibling | {
"repo_name": "joltix/Cinnamon",
"path": "com/cinnamon/object/BoundingTree.java",
"license": "mit",
"size": 20383
} | [
"com.cinnamon.utils.Rect2D"
] | import com.cinnamon.utils.Rect2D; | import com.cinnamon.utils.*; | [
"com.cinnamon.utils"
] | com.cinnamon.utils; | 1,880,173 |
public static void main(String[] argv) {
String version = null;
try {
final Properties pomProperties = new Properties();
pomProperties.load(JmDNSImpl.class.getResourceAsStream("/META-INF/maven/javax.jmdns/jmdns/pom.properties"));
version = pomProperties.getPropert... | static void function(String[] argv) { String version = null; try { final Properties pomProperties = new Properties(); pomProperties.load(JmDNSImpl.class.getResourceAsStream(STR)); version = pomProperties.getProperty(STR); } catch (Exception e) { version = STR; } Log.i("jmdns", STRSTR\STRjmdnsSTR STRjmdnsSTRRunning on j... | /**
* Main method to display API information if run from java -jar
*
* @param argv
* the command line arguments
*/ | Main method to display API information if run from java -jar | main | {
"repo_name": "BinChengfei/vavi-apps-shairport",
"path": "src/javax/jmdns/impl/JmDNSImpl.java",
"license": "gpl-2.0",
"size": 78867
} | [
"android.util.Log",
"java.io.IOException",
"java.net.InetAddress",
"java.util.ArrayList",
"java.util.Collections",
"java.util.HashSet",
"java.util.List",
"java.util.Properties",
"java.util.concurrent.ConcurrentHashMap",
"javax.jmdns.JmDNS",
"javax.jmdns.ServiceInfo",
"javax.jmdns.impl.Listener... | import android.util.Log; import java.io.IOException; import java.net.InetAddress; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; import java.util.List; import java.util.Properties; import java.util.concurrent.ConcurrentHashMap; import javax.jmdns.JmDNS; import javax.jmdns.ServiceInf... | import android.util.*; import java.io.*; import java.net.*; import java.util.*; import java.util.concurrent.*; import javax.jmdns.*; import javax.jmdns.impl.*; | [
"android.util",
"java.io",
"java.net",
"java.util",
"javax.jmdns"
] | android.util; java.io; java.net; java.util; javax.jmdns; | 2,581,781 |
private void handleParentPostFilter(ResourceBundleManager resourcesManager,
DateFormat dateFormatter, Locale locale, List filters,
TaggingCoreItemUTPExtension utpExt) throws NoteNotFoundException,
AuthorizationException {
if (utpExt.getParentPostId() == null) {
... | void function(ResourceBundleManager resourcesManager, DateFormat dateFormatter, Locale locale, List filters, TaggingCoreItemUTPExtension utpExt) throws NoteNotFoundException, AuthorizationException { if (utpExt.getParentPostId() == null) { return; } NoteData noteData = ServiceLocator.instance().getService(NoteService.c... | /**
* This method handles the parent post.
*
* @param resourcesManager
* {@link ResourceBundleManager}.
* @param dateFormatter
* Date formatter.
* @param locale
* The local.
* @param filters
* Filters as {@link List}... | This method handles the parent post | handleParentPostFilter | {
"repo_name": "Communote/communote-server",
"path": "communote/core/src/main/java/com/communote/server/core/blog/export/impl/RtfNoteWriter.java",
"license": "apache-2.0",
"size": 38921
} | [
"com.communote.server.api.ServiceLocator",
"com.communote.server.api.core.note.NoteData",
"com.communote.server.api.core.note.NoteRenderContext",
"com.communote.server.api.core.security.AuthorizationException",
"com.communote.server.core.blog.NoteNotFoundException",
"com.communote.server.core.user.helper.... | import com.communote.server.api.ServiceLocator; import com.communote.server.api.core.note.NoteData; import com.communote.server.api.core.note.NoteRenderContext; import com.communote.server.api.core.security.AuthorizationException; import com.communote.server.core.blog.NoteNotFoundException; import com.communote.server.... | import com.communote.server.api.*; import com.communote.server.api.core.note.*; import com.communote.server.api.core.security.*; import com.communote.server.core.blog.*; import com.communote.server.core.user.helper.*; import com.communote.server.core.vo.query.*; import com.communote.server.persistence.common.messages.*... | [
"com.communote.server",
"com.lowagie.text",
"java.text",
"java.util"
] | com.communote.server; com.lowagie.text; java.text; java.util; | 2,238,833 |
String matrixName = "PRLA000101";
SubstitutionMatrix<AminoAcidCompound> sdm = SubstitutionMatrixHelper.getMatrixFromAAINDEX(matrixName);
int scale = 1;
if ( sdm instanceof ScaledSubstitutionMatrix) {
ScaledSubstitutionMatrix scaledSDM = (ScaledSubstitutionMatrix)sdm;
scale = scaledSDM.getScale();
... | String matrixName = STR; SubstitutionMatrix<AminoAcidCompound> sdm = SubstitutionMatrixHelper.getMatrixFromAAINDEX(matrixName); int scale = 1; if ( sdm instanceof ScaledSubstitutionMatrix) { ScaledSubstitutionMatrix scaledSDM = (ScaledSubstitutionMatrix)sdm; scale = scaledSDM.getScale(); assertEquals(100,scale); } Amin... | /**
*
* M rows = ARNDCQEGHILKMFPSTWYV, cols = ARNDCQEGHILKMFPSTWYV
*
* A R N D C Q E G H I L K M F P S T W Y V
A 2.09
R -0.50 2.87
N -0.57 0.60 3.60
D -0.73 0.13 1.78 4.02
C 0.33 -1.30 -2.08 -2.51 6.99
Q -0.75 0.13 0.33 0.34 -0.83 2.60
E ... | M rows = ARNDCQEGHILKMFPSTWYV, cols = ARNDCQEGHILKMFPSTWYV A R N D C Q E G H I L K M F P S T W Y V | testSDMmatrix | {
"repo_name": "JolantaWojcik/biojavaOwn",
"path": "biojava3-alignment/src/test/java/org/biojava3/alignment/aaindex/TestAAINDEXLoading.java",
"license": "lgpl-2.1",
"size": 8173
} | [
"org.biojava3.alignment.SubstitutionMatrixHelper",
"org.biojava3.alignment.template.SubstitutionMatrix",
"org.biojava3.core.sequence.compound.AminoAcidCompound",
"org.biojava3.core.sequence.compound.AminoAcidCompoundSet"
] | import org.biojava3.alignment.SubstitutionMatrixHelper; import org.biojava3.alignment.template.SubstitutionMatrix; import org.biojava3.core.sequence.compound.AminoAcidCompound; import org.biojava3.core.sequence.compound.AminoAcidCompoundSet; | import org.biojava3.alignment.*; import org.biojava3.alignment.template.*; import org.biojava3.core.sequence.compound.*; | [
"org.biojava3.alignment",
"org.biojava3.core"
] | org.biojava3.alignment; org.biojava3.core; | 1,622,066 |
public static void setConferenceMuted(String callId, boolean isMuted) {
if (callId == null) {
return;
}
synchronized(activeCalls) {
for (int i = 0; i < activeCalls.size(); i++) {
CallHandler call = (CallHandler)activeCalls.elementAt(i);
... | static void function(String callId, boolean isMuted) { if (callId == null) { return; } synchronized(activeCalls) { for (int i = 0; i < activeCalls.size(); i++) { CallHandler call = (CallHandler)activeCalls.elementAt(i); CallParticipant cp = call.getCallParticipant(); if (match(cp, callId)) { if (Logger.logLevel >= Logg... | /**
* Mute or unmute a conference from a particular call.
*/ | Mute or unmute a conference from a particular call | setConferenceMuted | {
"repo_name": "damirkusar/jvoicebridge",
"path": "voip/src/com/sun/voip/server/CallHandler.java",
"license": "gpl-2.0",
"size": 30871
} | [
"com.sun.voip.CallParticipant",
"com.sun.voip.Logger"
] | import com.sun.voip.CallParticipant; import com.sun.voip.Logger; | import com.sun.voip.*; | [
"com.sun.voip"
] | com.sun.voip; | 691,335 |
public boolean hasbiboAnnotates() {
return Base.has(this.model, this.getResource(), ANNOTATES);
} | boolean function() { return Base.has(this.model, this.getResource(), ANNOTATES); } | /**
* Check if org.ontoware.rdfreactor.generator.java.JProperty@1f39f0e has at least one value set
* @return true if this property has at least one value
*
* [Generated from RDFReactor template rule #get0has-dynamic]
*/ | Check if org.ontoware.rdfreactor.generator.java.JProperty@1f39f0e has at least one value set | hasbiboAnnotates | {
"repo_name": "alexgarciac/testbiotea",
"path": "src/ws/biotea/ld2rdf/rdf/model/bibo/Note.java",
"license": "apache-2.0",
"size": 20098
} | [
"org.ontoware.rdfreactor.runtime.Base"
] | import org.ontoware.rdfreactor.runtime.Base; | import org.ontoware.rdfreactor.runtime.*; | [
"org.ontoware.rdfreactor"
] | org.ontoware.rdfreactor; | 162,812 |
public InternalDistributedMember createBucket(int bucketId, int size,
final RetryTimeKeeper snoozer) {
InternalDistributedMember ret = getNodeForBucketWrite(bucketId, snoozer);
if (ret != null) {
return ret;
}
// In the current co-location scheme, we have to create the bucket for the
... | InternalDistributedMember function(int bucketId, int size, final RetryTimeKeeper snoozer) { InternalDistributedMember ret = getNodeForBucketWrite(bucketId, snoozer); if (ret != null) { return ret; } final PartitionedRegion colocatedWith = ColocationHelper .getColocatedRegion(this); if (colocatedWith != null) { colocate... | /**
* Create a bucket for the provided bucket identifier in an atomic fashion.
*
* @param bucketId
* the bucket identifier for the bucket that needs creation
* @param snoozer
* tracking object used to determine length of time t for
* bucket creation
... | Create a bucket for the provided bucket identifier in an atomic fashion | createBucket | {
"repo_name": "ameybarve15/incubator-geode",
"path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java",
"license": "apache-2.0",
"size": 403335
} | [
"com.gemstone.gemfire.cache.partition.PartitionNotAvailableException",
"com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember",
"com.gemstone.gemfire.internal.i18n.LocalizedStrings"
] | import com.gemstone.gemfire.cache.partition.PartitionNotAvailableException; import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember; import com.gemstone.gemfire.internal.i18n.LocalizedStrings; | import com.gemstone.gemfire.cache.partition.*; import com.gemstone.gemfire.distributed.internal.membership.*; import com.gemstone.gemfire.internal.i18n.*; | [
"com.gemstone.gemfire"
] | com.gemstone.gemfire; | 172,095 |
List<TypeDefinitionWrapper> getBaseTypes(); | List<TypeDefinitionWrapper> getBaseTypes(); | /**
* Get Base Types
*/ | Get Base Types | getBaseTypes | {
"repo_name": "fxcebx/community-edition",
"path": "projects/data-model/source/java/org/alfresco/opencmis/dictionary/CMISDictionaryService.java",
"license": "lgpl-3.0",
"size": 2700
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 15,499 |
public static Predicate[] getPredicates() {
return predicates;
}
| static Predicate[] function() { return predicates; } | /**
* Returns the predicates.
*
* @return the predicates
*/ | Returns the predicates | getPredicates | {
"repo_name": "ffund/sirius",
"path": "sirius-application/question-answer/src/info/ephyra/questionanalysis/QuestionAnalysis.java",
"license": "bsd-3-clause",
"size": 7511
} | [
"info.ephyra.nlp.semantics.Predicate"
] | import info.ephyra.nlp.semantics.Predicate; | import info.ephyra.nlp.semantics.*; | [
"info.ephyra.nlp"
] | info.ephyra.nlp; | 108,562 |
EAttribute getSheet_Name(); | EAttribute getSheet_Name(); | /**
* Returns the meta object for the attribute '{@link fr.obeo.dsl.game.Sheet#getName <em>Name</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see fr.obeo.dsl.game.Sheet#getName()
* @see #getSheet()
* @generated
*/ | Returns the meta object for the attribute '<code>fr.obeo.dsl.game.Sheet#getName Name</code>'. | getSheet_Name | {
"repo_name": "Obeo/Game-Designer",
"path": "plugins/fr.obeo.dsl.game/src-gen/fr/obeo/dsl/game/GamePackage.java",
"license": "epl-1.0",
"size": 149639
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,371,630 |
public static ShoppingCartItem makeItem(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice,
Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons,String accommodationMapId,String accommodationSpotId, Timestamp shipBeforeDate, T... | static ShoppingCartItem function(Integer cartLocation, String productId, BigDecimal selectedAmount, BigDecimal quantity, BigDecimal unitPrice, Timestamp reservStart, BigDecimal reservLength, BigDecimal reservPersons,String accommodationMapId,String accommodationSpotId, Timestamp shipBeforeDate, Timestamp shipAfterDate,... | /**
* Makes a ShoppingCartItem and adds it to the cart.
* @param accommodationMapId Optional. reservations add into workeffort
* @param accommodationSpotId Optional. reservations add into workeffort
*/ | Makes a ShoppingCartItem and adds it to the cart | makeItem | {
"repo_name": "yuri0x7c1/ofbiz-explorer",
"path": "src/test/resources/apache-ofbiz-16.11.03/applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartItem.java",
"license": "apache-2.0",
"size": 125426
} | [
"java.math.BigDecimal",
"java.sql.Timestamp",
"java.util.Map",
"org.apache.ofbiz.base.util.Debug",
"org.apache.ofbiz.entity.Delegator",
"org.apache.ofbiz.entity.GenericEntityException",
"org.apache.ofbiz.entity.GenericValue",
"org.apache.ofbiz.entity.util.EntityQuery",
"org.apache.ofbiz.product.conf... | import java.math.BigDecimal; import java.sql.Timestamp; import java.util.Map; import org.apache.ofbiz.base.util.Debug; import org.apache.ofbiz.entity.Delegator; import org.apache.ofbiz.entity.GenericEntityException; import org.apache.ofbiz.entity.GenericValue; import org.apache.ofbiz.entity.util.EntityQuery; import org... | import java.math.*; import java.sql.*; import java.util.*; import org.apache.ofbiz.base.util.*; import org.apache.ofbiz.entity.*; import org.apache.ofbiz.entity.util.*; import org.apache.ofbiz.product.config.*; import org.apache.ofbiz.service.*; | [
"java.math",
"java.sql",
"java.util",
"org.apache.ofbiz"
] | java.math; java.sql; java.util; org.apache.ofbiz; | 2,520,082 |
public static FastDateFormat getDateInstance(final int style, final TimeZone timeZone, final Locale locale) {
return cache.getDateInstance(style, timeZone, locale);
} | static FastDateFormat function(final int style, final TimeZone timeZone, final Locale locale) { return cache.getDateInstance(style, timeZone, locale); } | /**
* <p>Gets a date formatter instance using the specified style, time
* zone and locale.</p>
*
* @param style date style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @param locale optional locale, overrides system ... | Gets a date formatter instance using the specified style, time zone and locale | getDateInstance | {
"repo_name": "weston100721/commons-lang",
"path": "src/main/java/org/apache/commons/lang3/time/FastDateFormat.java",
"license": "apache-2.0",
"size": 24198
} | [
"java.util.Locale",
"java.util.TimeZone"
] | import java.util.Locale; import java.util.TimeZone; | import java.util.*; | [
"java.util"
] | java.util; | 857,875 |
public void timeCountReset() {
for (DiffusionActivity da : das) {
da.timeCountReset();
}
timeAtReset = System.currentTimeMillis();
}
| void function() { for (DiffusionActivity da : das) { da.timeCountReset(); } timeAtReset = System.currentTimeMillis(); } | /**
* Resets the time count of all the DAs and records the current time
*/ | Resets the time count of all the DAs and records the current time | timeCountReset | {
"repo_name": "Xapagy/Xapagy",
"path": "src/main/java/org/xapagy/agents/PerformanceMeter.java",
"license": "agpl-3.0",
"size": 3365
} | [
"org.xapagy.activity.DiffusionActivity"
] | import org.xapagy.activity.DiffusionActivity; | import org.xapagy.activity.*; | [
"org.xapagy.activity"
] | org.xapagy.activity; | 2,329,975 |
public String resolveCommandAndExpandLabels(
Boolean supportLegacyExpansion, Boolean allowDataInLabel) {
return resolveCommandAndExpandLabels(
ruleContext.attributes().get("cmd", Type.STRING),
"cmd",
supportLegacyExpansion,
allowDataInLabel);
} | String function( Boolean supportLegacyExpansion, Boolean allowDataInLabel) { return resolveCommandAndExpandLabels( ruleContext.attributes().get("cmd", Type.STRING), "cmd", supportLegacyExpansion, allowDataInLabel); } | /**
* Resolves the 'cmd' attribute, and expands known locations for $(location)
* variables.
*/ | Resolves the 'cmd' attribute, and expands known locations for $(location) variables | resolveCommandAndExpandLabels | {
"repo_name": "abergmeier-dsfishlabs/bazel",
"path": "src/main/java/com/google/devtools/build/lib/analysis/CommandHelper.java",
"license": "apache-2.0",
"size": 12882
} | [
"com.google.devtools.build.lib.syntax.Type"
] | import com.google.devtools.build.lib.syntax.Type; | import com.google.devtools.build.lib.syntax.*; | [
"com.google.devtools"
] | com.google.devtools; | 1,923,384 |
public Collection<String> getScopes() {
return scopes;
} | Collection<String> function() { return scopes; } | /**
* Returns the scopes defining the user consent.
*
* @return The collection of scopes defining the user consent.
*/ | Returns the scopes defining the user consent | getScopes | {
"repo_name": "googleapis/google-auth-library-java",
"path": "oauth2_http/java/com/google/auth/oauth2/UserAuthorizer.java",
"license": "bsd-3-clause",
"size": 18150
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 1,811,020 |
protected boolean isValidUser(String principalId) {
PersonService personService = SpringContext.getBean(PersonService.class);
try {
Person user = personService.getPerson(principalId);
DocumentAuthorizer documentAuthorizer = new MaintenanceDocumentAuthorizerBase();
... | boolean function(String principalId) { PersonService personService = SpringContext.getBean(PersonService.class); try { Person user = personService.getPerson(principalId); DocumentAuthorizer documentAuthorizer = new MaintenanceDocumentAuthorizerBase(); if (documentAuthorizer.canInitiate(SpringContext.getBean(Maintenance... | /**
* This method check to see if the user can create the account maintenance document and set the user session
*
* @param String principalId
* @return boolean
*/ | This method check to see if the user can create the account maintenance document and set the user session | isValidUser | {
"repo_name": "Ariah-Group/Finance",
"path": "af_webapp/src/main/java/org/kuali/kfs/module/external/kc/service/impl/BudgetAdjustmentServiceImpl.java",
"license": "apache-2.0",
"size": 29173
} | [
"org.kuali.kfs.coa.businessobject.Account",
"org.kuali.kfs.module.external.kc.KcConstants",
"org.kuali.kfs.module.external.kc.service.BudgetAdjustmentService",
"org.kuali.kfs.module.external.kc.util.KcUtils",
"org.kuali.kfs.sys.context.SpringContext",
"org.kuali.rice.kim.api.identity.Person",
"org.kuali... | import org.kuali.kfs.coa.businessobject.Account; import org.kuali.kfs.module.external.kc.KcConstants; import org.kuali.kfs.module.external.kc.service.BudgetAdjustmentService; import org.kuali.kfs.module.external.kc.util.KcUtils; import org.kuali.kfs.sys.context.SpringContext; import org.kuali.rice.kim.api.identity.Pers... | import org.kuali.kfs.coa.businessobject.*; import org.kuali.kfs.module.external.kc.*; import org.kuali.kfs.module.external.kc.service.*; import org.kuali.kfs.module.external.kc.util.*; import org.kuali.kfs.sys.context.*; import org.kuali.rice.kim.api.identity.*; import org.kuali.rice.kns.service.*; import org.kuali.ric... | [
"org.kuali.kfs",
"org.kuali.rice"
] | org.kuali.kfs; org.kuali.rice; | 433,192 |
public T get (long address) throws MemoryException;
| T function (long address) throws MemoryException; | /**
* Returns a memory value.
* @param address The address.
* @return The value.
* @throws MemoryException Occurs if an address is out of memory bounds or protected.
*/ | Returns a memory value | get | {
"repo_name": "Evil-Co-Legacy/CyborgEmulator",
"path": "core/src/main/java/org/evilco/emulator/core/memory/IMemory.java",
"license": "apache-2.0",
"size": 2673
} | [
"org.evilco.emulator.core.memory.error.MemoryException"
] | import org.evilco.emulator.core.memory.error.MemoryException; | import org.evilco.emulator.core.memory.error.*; | [
"org.evilco.emulator"
] | org.evilco.emulator; | 208,894 |
public List<DataResource> getData() {
return data;
} | List<DataResource> function() { return data; } | /**
* Returns the list of Data Resources held by this response object
*
* @return The list
*/ | Returns the list of Data Resources held by this response object | getData | {
"repo_name": "venicegeo/pz-jobcommon",
"path": "src/main/java/model/response/DataResourceListResponse.java",
"license": "apache-2.0",
"size": 1953
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,157,742 |
public void seekToPlaying(int milliseconds) {
if (this.readyPlayer(this.audioFile)) {
this.player.seekTo(milliseconds);
Log.d(LOG_TAG, "Send a onStatus update for the new seek");
sendStatusChange(MEDIA_POSITION, null, (milliseconds / 1000.0f));
}
else {
... | void function(int milliseconds) { if (this.readyPlayer(this.audioFile)) { this.player.seekTo(milliseconds); Log.d(LOG_TAG, STR); sendStatusChange(MEDIA_POSITION, null, (milliseconds / 1000.0f)); } else { this.seekOnPrepared = milliseconds; } } | /**
* Seek or jump to a new time in the track.
*/ | Seek or jump to a new time in the track | seekToPlaying | {
"repo_name": "readbeyond/minstrel",
"path": "cordova/src_plugins/readbeyond-plugin-media/src/android/AudioPlayer.java",
"license": "mit",
"size": 15584
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 2,349,388 |
public StandardIndustryCode getStandardIndustryCode() {
if (standardIndustryCode != null && standardIndustryCode.eIsProxy()) {
InternalEObject oldStandardIndustryCode = (InternalEObject)standardIndustryCode;
standardIndustryCode = (StandardIndustryCode)eResolveProxy(oldStandardIndustryCode);
if (standardI... | StandardIndustryCode function() { if (standardIndustryCode != null && standardIndustryCode.eIsProxy()) { InternalEObject oldStandardIndustryCode = (InternalEObject)standardIndustryCode; standardIndustryCode = (StandardIndustryCode)eResolveProxy(oldStandardIndustryCode); if (standardIndustryCode != oldStandardIndustryCo... | /**
* Returns the value of the '<em><b>Standard Industry Code</b></em>' reference.
* It is bidirectional and its opposite is '{@link CIM15.IEC61970.Informative.InfCustomers.StandardIndustryCode#getCustomerAgreements <em>Customer Agreements</em>}'.
* <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>S... | Returns the value of the 'Standard Industry Code' reference. It is bidirectional and its opposite is '<code>CIM15.IEC61970.Informative.InfCustomers.StandardIndustryCode#getCustomerAgreements Customer Agreements</code>'. If the meaning of the 'Standard Industry Code' reference isn't clear, there really should be more of... | getStandardIndustryCode | {
"repo_name": "SES-fortiss/SmartGridCoSimulation",
"path": "core/cim15/src/CIM15/IEC61968/Customers/CustomerAgreement.java",
"license": "apache-2.0",
"size": 46703
} | [
"org.eclipse.emf.ecore.InternalEObject"
] | import org.eclipse.emf.ecore.InternalEObject; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,167,784 |
if (StringUtils.isNoneBlank(TENANT.get())) {
return TENANT.get();
}
try {
return KeycloakHolder.getUsername();
} catch (Exception ex) {
return "";
}
} | if (StringUtils.isNoneBlank(TENANT.get())) { return TENANT.get(); } try { return KeycloakHolder.getUsername(); } catch (Exception ex) { return ""; } } | /**
* Get the current tenant, per thread.
*
* @return Current tenant id
*/ | Get the current tenant, per thread | get | {
"repo_name": "bomrastreio/bomrastreio",
"path": "api/src/main/java/br/com/bomrastreio/api/tenant/TenantHolder.java",
"license": "mit",
"size": 1024
} | [
"br.com.bomrastreio.api.security.KeycloakHolder",
"org.apache.commons.lang3.StringUtils"
] | import br.com.bomrastreio.api.security.KeycloakHolder; import org.apache.commons.lang3.StringUtils; | import br.com.bomrastreio.api.security.*; import org.apache.commons.lang3.*; | [
"br.com.bomrastreio",
"org.apache.commons"
] | br.com.bomrastreio; org.apache.commons; | 2,489,195 |
public DataNode setPath_lengthScalar(double path_length); | DataNode function(double path_length); | /**
* Path length through sample/can for simple case when
* it does not vary with scattering direction
* <p>
* <b>Type:</b> NX_FLOAT
* <b>Units:</b> NX_LENGTH
* </p>
*
* @param path_length the path_length
*/ | Path length through sample/can for simple case when it does not vary with scattering direction Type: NX_FLOAT Units: NX_LENGTH | setPath_lengthScalar | {
"repo_name": "colinpalmer/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXsample.java",
"license": "epl-1.0",
"size": 48949
} | [
"org.eclipse.dawnsci.analysis.api.tree.DataNode"
] | import org.eclipse.dawnsci.analysis.api.tree.DataNode; | import org.eclipse.dawnsci.analysis.api.tree.*; | [
"org.eclipse.dawnsci"
] | org.eclipse.dawnsci; | 2,633,380 |
protected CmsTreeItem searchTreeItem(CmsList<? extends I_CmsListItem> list, String categoryPath) {
CmsTreeItem resultItem = (CmsTreeItem)list.getItem(categoryPath);
// item is not in this tree level
if (resultItem == null) {
// if list is not empty
for (int i = 0; i ... | CmsTreeItem function(CmsList<? extends I_CmsListItem> list, String categoryPath) { CmsTreeItem resultItem = (CmsTreeItem)list.getItem(categoryPath); if (resultItem == null) { for (int i = 0; i < list.getWidgetCount(); i++) { CmsTreeItem listItem = (CmsTreeItem)list.getWidget(i); if (listItem.getChildCount() == 0) { con... | /**
* Searches in the categories tree or list the item and returns it.<p>
*
* @param list the list of items to start from
* @param categoryPath the category id to search
* @return the category item widget
*/ | Searches in the categories tree or list the item and returns it | searchTreeItem | {
"repo_name": "serrapos/opencms-core",
"path": "src-gwt/org/opencms/ade/galleries/client/ui/A_CmsListTab.java",
"license": "lgpl-2.1",
"size": 12364
} | [
"org.opencms.gwt.client.ui.CmsList",
"org.opencms.gwt.client.ui.tree.CmsTreeItem"
] | import org.opencms.gwt.client.ui.CmsList; import org.opencms.gwt.client.ui.tree.CmsTreeItem; | import org.opencms.gwt.client.ui.*; import org.opencms.gwt.client.ui.tree.*; | [
"org.opencms.gwt"
] | org.opencms.gwt; | 2,827,056 |
public final void setCombinerClass(
Class<? extends Combiner> vertexCombinerClass) {
VERTEX_COMBINER_CLASS.set(this, vertexCombinerClass);
} | final void function( Class<? extends Combiner> vertexCombinerClass) { VERTEX_COMBINER_CLASS.set(this, vertexCombinerClass); } | /**
* Set the vertex combiner class (optional)
*
* @param vertexCombinerClass Determines how vertex messages are combined
*/ | Set the vertex combiner class (optional) | setCombinerClass | {
"repo_name": "zfighter/giraph-research",
"path": "giraph-core/target/munged/munged/main/org/apache/giraph/conf/GiraphConfiguration.java",
"license": "apache-2.0",
"size": 27397
} | [
"org.apache.giraph.combiner.Combiner"
] | import org.apache.giraph.combiner.Combiner; | import org.apache.giraph.combiner.*; | [
"org.apache.giraph"
] | org.apache.giraph; | 2,258,340 |
protected EvaluationContext getEvaluationContext(PortletRequest request) {
Map<String, String> userInfo =
(Map<String, String>) request.getAttribute(PortletRequest.USER_INFO);
final SpELEnvironmentRoot root =
new SpELEnvironmentRoot(new PortletWebRequest(request), use... | EvaluationContext function(PortletRequest request) { Map<String, String> userInfo = (Map<String, String>) request.getAttribute(PortletRequest.USER_INFO); final SpELEnvironmentRoot root = new SpELEnvironmentRoot(new PortletWebRequest(request), userInfo); final StandardEvaluationContext context = new StandardEvaluationCo... | /**
* Return a SpEL evaluation context for the supplied portlet request.
*
* @param request PortletRequest
* @return SpEL evaluation context for the supplied portlet request
*/ | Return a SpEL evaluation context for the supplied portlet request | getEvaluationContext | {
"repo_name": "ChristianMurphy/uPortal",
"path": "uPortal-utils/uPortal-utils-core/src/main/java/org/apereo/portal/portlet/PortletSpELServiceImpl.java",
"license": "apache-2.0",
"size": 6947
} | [
"java.util.Map",
"javax.portlet.PortletRequest",
"org.springframework.expression.EvaluationContext",
"org.springframework.expression.spel.support.StandardEvaluationContext",
"org.springframework.web.context.request.WebRequest",
"org.springframework.web.portlet.context.PortletWebRequest"
] | import java.util.Map; import javax.portlet.PortletRequest; import org.springframework.expression.EvaluationContext; import org.springframework.expression.spel.support.StandardEvaluationContext; import org.springframework.web.context.request.WebRequest; import org.springframework.web.portlet.context.PortletWebRequest; | import java.util.*; import javax.portlet.*; import org.springframework.expression.*; import org.springframework.expression.spel.support.*; import org.springframework.web.context.request.*; import org.springframework.web.portlet.context.*; | [
"java.util",
"javax.portlet",
"org.springframework.expression",
"org.springframework.web"
] | java.util; javax.portlet; org.springframework.expression; org.springframework.web; | 333,496 |
ManagedApiInner innerModel(); | ManagedApiInner innerModel(); | /**
* Gets the inner com.azure.resourcemanager.logic.fluent.models.ManagedApiInner object.
*
* @return the inner object.
*/ | Gets the inner com.azure.resourcemanager.logic.fluent.models.ManagedApiInner object | innerModel | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/models/ManagedApi.java",
"license": "mit",
"size": 1442
} | [
"com.azure.resourcemanager.logic.fluent.models.ManagedApiInner"
] | import com.azure.resourcemanager.logic.fluent.models.ManagedApiInner; | import com.azure.resourcemanager.logic.fluent.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 2,493,519 |
@Test
public void checkSetValueDiscreteMulti() {
// Set up the expected values for the property under test.
String initialValue = "4";
String value = "Yellow Calx";
String invalidValue = "Digeridoo";
List<String> valueArray = new ArrayList<String>();
| void function() { String initialValue = "4"; String value = STR; String invalidValue = STR; List<String> valueArray = new ArrayList<String>(); | /**
* Checks that the property's value can be set to multiple allowed values
* when its type is discrete (with multi-select).
*/ | Checks that the property's value can be set to multiple allowed values when its type is discrete (with multi-select) | checkSetValueDiscreteMulti | {
"repo_name": "jarrah42/eavp",
"path": "org.eclipse.eavp.viz.service.paraview.test/src/org/eclipse/eavp/viz/service/paraview/proxy/test/ProxyPropertyTester.java",
"license": "epl-1.0",
"size": 12886
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 430,296 |
public ClusterConnection getDefaultConnection(TransportConfiguration acceptorConfig) {
if (acceptorConfig == null) {
// if the parameter is null, we just return whatever is defined on defaultClusterConnection
return defaultClusterConnection;
} else if (defaultClusterConnection != null &... | ClusterConnection function(TransportConfiguration acceptorConfig) { if (acceptorConfig == null) { return defaultClusterConnection; } else if (defaultClusterConnection != null && defaultClusterConnection.getConnector().isEquivalent(acceptorConfig)) { return defaultClusterConnection; } else { for (ClusterConnection conn ... | /**
* Return the default ClusterConnection to be used case it's not defined by the acceptor
*
* @return default connection
*/ | Return the default ClusterConnection to be used case it's not defined by the acceptor | getDefaultConnection | {
"repo_name": "kjniemi/activemq-artemis",
"path": "artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/ClusterManager.java",
"license": "apache-2.0",
"size": 26932
} | [
"org.apache.activemq.artemis.api.core.TransportConfiguration"
] | import org.apache.activemq.artemis.api.core.TransportConfiguration; | import org.apache.activemq.artemis.api.core.*; | [
"org.apache.activemq"
] | org.apache.activemq; | 1,639,311 |
public void checkCreation4()
throws Exception
{
//
// set up the keys
//
PrivateKey privKey;
PublicKey pubKey;
KeyPairGenerator g = KeyPairGenerator.getInstance("GOST3410", "BC");
GOST3410ParameterSpec gost3410P = new GOST341... | void function() throws Exception { PublicKey pubKey; KeyPairGenerator g = KeyPairGenerator.getInstance(STR, "BC"); GOST3410ParameterSpec gost3410P = new GOST3410ParameterSpec(STR); g.initialize(gost3410P, new SecureRandom()); KeyPair p = g.generateKeyPair(); privKey = p.getPrivate(); pubKey = p.getPublic(); attrs.put(X... | /**
* we generate a self signed certificate for the sake of testing - GOST3410
*/ | we generate a self signed certificate for the sake of testing - GOST3410 | checkCreation4 | {
"repo_name": "partheinstein/bc-java",
"path": "prov/src/test/jdk1.3/org/bouncycastle/jce/provider/test/CertTest.java",
"license": "mit",
"size": 123720
} | [
"java.io.ByteArrayInputStream",
"java.math.BigInteger",
"java.security.KeyPair",
"java.security.KeyPairGenerator",
"java.security.PublicKey",
"java.security.SecureRandom",
"java.security.cert.CertificateFactory",
"java.security.cert.X509Certificate",
"java.util.Date",
"org.bouncycastle.jce.X509Pri... | import java.io.ByteArrayInputStream; import java.math.BigInteger; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.PublicKey; import java.security.SecureRandom; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; import java.util.Date; import... | import java.io.*; import java.math.*; import java.security.*; import java.security.cert.*; import java.util.*; import org.bouncycastle.jce.*; import org.bouncycastle.jce.spec.*; | [
"java.io",
"java.math",
"java.security",
"java.util",
"org.bouncycastle.jce"
] | java.io; java.math; java.security; java.util; org.bouncycastle.jce; | 579,422 |
public void wait(Integer duration) throws RemoteException; | void function(Integer duration) throws RemoteException; | /**
* Wait for a specified time and then return.
*
* @param duration period of time for waiting in milliseconds
*/ | Wait for a specified time and then return | wait | {
"repo_name": "pfirmstone/JGDMS",
"path": "qa/src/org/apache/river/test/spec/iiop/util/TestRemoteInterface.java",
"license": "apache-2.0",
"size": 1483
} | [
"java.rmi.RemoteException"
] | import java.rmi.RemoteException; | import java.rmi.*; | [
"java.rmi"
] | java.rmi; | 1,305,121 |
private String makeQueryFilterString(String dbName, MTable mtable, String filter,
Map<String, Object> params) throws MetaException {
ExpressionTree tree = (filter != null && !filter.isEmpty())
? getFilterParser(filter).tree : ExpressionTree.EMPTY_TREE;
return makeQueryFilterString(dbName, conver... | String function(String dbName, MTable mtable, String filter, Map<String, Object> params) throws MetaException { ExpressionTree tree = (filter != null && !filter.isEmpty()) ? getFilterParser(filter).tree : ExpressionTree.EMPTY_TREE; return makeQueryFilterString(dbName, convertToTable(mtable), tree, params, true); } | /**
* Makes a JDO query filter string.
* Makes a JDO query filter string for tables or partitions.
* @param dbName Database name.
* @param mtable Table. If null, the query returned is over tables in a database.
* If not null, the query returned is over partitions in a table.
* @param filter The filt... | Makes a JDO query filter string. Makes a JDO query filter string for tables or partitions | makeQueryFilterString | {
"repo_name": "wisgood/hive",
"path": "metastore/src/java/org/apache/hadoop/hive/metastore/ObjectStore.java",
"license": "apache-2.0",
"size": 265747
} | [
"java.util.Map",
"org.apache.hadoop.hive.metastore.api.MetaException",
"org.apache.hadoop.hive.metastore.model.MTable",
"org.apache.hadoop.hive.metastore.parser.ExpressionTree"
] | import java.util.Map; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.metastore.model.MTable; import org.apache.hadoop.hive.metastore.parser.ExpressionTree; | import java.util.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.metastore.model.*; import org.apache.hadoop.hive.metastore.parser.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 1,114,298 |
public int getLineNumber() {
Node cur = curNode;
while (cur != null) {
int line = cur.getLineno();
if (line >= 0) {
return line;
}
cur = cur.getParent();
}
return 0;
} | int function() { Node cur = curNode; while (cur != null) { int line = cur.getLineno(); if (line >= 0) { return line; } cur = cur.getParent(); } return 0; } | /**
* Gets the current line number, or zero if it cannot be determined. The line
* number is retrieved lazily as a running time optimization.
*/ | Gets the current line number, or zero if it cannot be determined. The line number is retrieved lazily as a running time optimization | getLineNumber | {
"repo_name": "anneupsc/closure-compiler",
"path": "src/com/google/javascript/jscomp/NodeTraversal.java",
"license": "apache-2.0",
"size": 25372
} | [
"com.google.javascript.rhino.Node"
] | import com.google.javascript.rhino.Node; | import com.google.javascript.rhino.*; | [
"com.google.javascript"
] | com.google.javascript; | 768,828 |
protected void invalidMigrationScript(FieldSchemaCreator creator, DataProvider dataProvider, String script) throws Throwable {
try (Tx tx = tx()) {
try {
if (getClass().isAnnotationPresent(MicroschemaTest.class)) {
invalidMicroschemaMigrationScript(creator, dataProvider, script);
} else {
inva... | void function(FieldSchemaCreator creator, DataProvider dataProvider, String script) throws Throwable { try (Tx tx = tx()) { try { if (getClass().isAnnotationPresent(MicroschemaTest.class)) { invalidMicroschemaMigrationScript(creator, dataProvider, script); } else { invalidSchemaMigrationScript(creator, dataProvider, sc... | /**
* Generic method to test migration failure when using an invalid migration script
*
* @param creator
* creator implementation
* @param dataProvider
* data provider implementation
* @param script
* migration script
* @throws Throwable
*/ | Generic method to test migration failure when using an invalid migration script | invalidMigrationScript | {
"repo_name": "gentics/mesh",
"path": "tests/tests-core/src/main/java/com/gentics/mesh/core/schema/field/AbstractFieldMigrationTest.java",
"license": "apache-2.0",
"size": 49586
} | [
"com.gentics.mesh.core.db.Tx",
"com.gentics.mesh.core.field.DataProvider",
"com.gentics.mesh.core.field.FieldSchemaCreator",
"io.reactivex.exceptions.CompositeException"
] | import com.gentics.mesh.core.db.Tx; import com.gentics.mesh.core.field.DataProvider; import com.gentics.mesh.core.field.FieldSchemaCreator; import io.reactivex.exceptions.CompositeException; | import com.gentics.mesh.core.db.*; import com.gentics.mesh.core.field.*; import io.reactivex.exceptions.*; | [
"com.gentics.mesh",
"io.reactivex.exceptions"
] | com.gentics.mesh; io.reactivex.exceptions; | 2,914,959 |
public T caseIBeXAttribute(IBeXAttribute object) {
return null;
}
| T function(IBeXAttribute object) { return null; } | /**
* Returns the result of interpreting the object as an instance of '<em>IBe XAttribute</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the res... | Returns the result of interpreting the object as an instance of 'IBe XAttribute'. This implementation returns null; returning a non-null result will terminate the switch. | caseIBeXAttribute | {
"repo_name": "eMoflon/emoflon-ibex",
"path": "org.emoflon.ibex.patternmodel/src-gen/org/emoflon/ibex/patternmodel/IBeXPatternModel/util/IBeXPatternModelSwitch.java",
"license": "gpl-3.0",
"size": 43736
} | [
"org.emoflon.ibex.patternmodel.IBeXPatternModel"
] | import org.emoflon.ibex.patternmodel.IBeXPatternModel; | import org.emoflon.ibex.patternmodel.*; | [
"org.emoflon.ibex"
] | org.emoflon.ibex; | 81,171 |
public void channelExtendedData(Buffer buffer) throws IOException {
Channel channel = getChannel(buffer);
channel.handleExtendedData(buffer);
} | void function(Buffer buffer) throws IOException { Channel channel = getChannel(buffer); channel.handleExtendedData(buffer); } | /**
* Process incoming extended data on a channel
*
* @param buffer the buffer containing the data
* @throws IOException if an error occurs
*/ | Process incoming extended data on a channel | channelExtendedData | {
"repo_name": "landro/mina-sshd",
"path": "sshd-core/src/main/java/org/apache/sshd/common/session/AbstractConnectionService.java",
"license": "apache-2.0",
"size": 18672
} | [
"java.io.IOException",
"org.apache.sshd.common.channel.Channel",
"org.apache.sshd.common.util.buffer.Buffer"
] | import java.io.IOException; import org.apache.sshd.common.channel.Channel; import org.apache.sshd.common.util.buffer.Buffer; | import java.io.*; import org.apache.sshd.common.channel.*; import org.apache.sshd.common.util.buffer.*; | [
"java.io",
"org.apache.sshd"
] | java.io; org.apache.sshd; | 716,727 |
public static Reader getReadEncoding(InputStream is, String encoding)
throws UnsupportedEncodingException
{
return getReadFactory(encoding).create(is);
} | static Reader function(InputStream is, String encoding) throws UnsupportedEncodingException { return getReadFactory(encoding).create(is); } | /**
* Returns a Reader to translate bytes to characters. If a specialized
* reader exists in com.caucho.vfs.i18n, use it.
*
* @param is the input stream.
* @param encoding the encoding name.
*
* @return a reader for the translation
*/ | Returns a Reader to translate bytes to characters. If a specialized reader exists in com.caucho.vfs.i18n, use it | getReadEncoding | {
"repo_name": "christianchristensen/resin",
"path": "modules/kernel/src/com/caucho/vfs/Encoding.java",
"license": "gpl-2.0",
"size": 18714
} | [
"java.io.InputStream",
"java.io.Reader",
"java.io.UnsupportedEncodingException"
] | import java.io.InputStream; import java.io.Reader; import java.io.UnsupportedEncodingException; | import java.io.*; | [
"java.io"
] | java.io; | 2,361,086 |
List<User> findAllUsers(); | List<User> findAllUsers(); | /**
* Finds all {@link User}s.
*
* @return list of users.
*/ | Finds all <code>User</code>s | findAllUsers | {
"repo_name": "zhanhongbo1112/trunk",
"path": "yqboots-security/yqboots-security-core/src/main/java/com/yqboots/security/core/UserManager.java",
"license": "apache-2.0",
"size": 5697
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,774,534 |
public boolean removeContainerReplica(ContainerID containerID,
DatanodeDetails dn) throws SCMException {
return containers.removeContainerReplica(containerID, dn);
} | boolean function(ContainerID containerID, DatanodeDetails dn) throws SCMException { return containers.removeContainerReplica(containerID, dn); } | /**
* Remove a container Replica for given DataNode.
*
* @param containerID
* @param dn
* @return True of dataNode is removed successfully else false.
*/ | Remove a container Replica for given DataNode | removeContainerReplica | {
"repo_name": "dierobotsdie/hadoop",
"path": "hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/ContainerStateManager.java",
"license": "apache-2.0",
"size": 20429
} | [
"org.apache.hadoop.hdds.protocol.DatanodeDetails",
"org.apache.hadoop.hdds.scm.exceptions.SCMException"
] | import org.apache.hadoop.hdds.protocol.DatanodeDetails; import org.apache.hadoop.hdds.scm.exceptions.SCMException; | import org.apache.hadoop.hdds.protocol.*; import org.apache.hadoop.hdds.scm.exceptions.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,666,618 |
public List removeQueuedFilterProfileMsgs(InternalDistributedMember member){
synchronized (this.filterProfileMsgQueue){
if (this.filterProfileMsgQueue.containsKey(member)) {
return new LinkedList(this.filterProfileMsgQueue.remove(member));
}
}
return Collections.EMPTY_LIST;
} | List function(InternalDistributedMember member){ synchronized (this.filterProfileMsgQueue){ if (this.filterProfileMsgQueue.containsKey(member)) { return new LinkedList(this.filterProfileMsgQueue.remove(member)); } } return Collections.EMPTY_LIST; } | /**
* Removes the filter profile messages from the queue that are received
* while the members cache profile exchange was in progress.
* @param member whose messages are returned.
* @return filter profile messages that are queued for the member.
*/ | Removes the filter profile messages from the queue that are received while the members cache profile exchange was in progress | removeQueuedFilterProfileMsgs | {
"repo_name": "upthewaterspout/incubator-geode",
"path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/FilterProfile.java",
"license": "apache-2.0",
"size": 89511
} | [
"com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember",
"java.util.Collections",
"java.util.LinkedList",
"java.util.List"
] | import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember; import java.util.Collections; import java.util.LinkedList; import java.util.List; | import com.gemstone.gemfire.distributed.internal.membership.*; import java.util.*; | [
"com.gemstone.gemfire",
"java.util"
] | com.gemstone.gemfire; java.util; | 2,274,752 |
@Authorized(PrivilegeConstants.VIEW_DATABASE_CHANGES)
public static List<OpenMRSChangeSet> getDatabaseChanges() throws Exception {
Database database = null;
try {
Liquibase liquibase = getLiquibase(CHANGE_LOG_FILE, null);
database = liquibase.getDatabase();
DatabaseChangeLog changeLog = new XMLChang... | @Authorized(PrivilegeConstants.VIEW_DATABASE_CHANGES) static List<OpenMRSChangeSet> function() throws Exception { Database database = null; try { Liquibase liquibase = getLiquibase(CHANGE_LOG_FILE, null); database = liquibase.getDatabase(); DatabaseChangeLog changeLog = new XMLChangeLogSAXParser().parse(CHANGE_LOG_FILE... | /**
* Looks at the current liquibase-update-to-latest.xml file and then checks the database to see
* if they have been run.
*
* @return list of changesets that both have and haven't been run
*/ | Looks at the current liquibase-update-to-latest.xml file and then checks the database to see if they have been run | getDatabaseChanges | {
"repo_name": "Winbobob/openmrs-core",
"path": "api/src/main/java/org/openmrs/util/DatabaseUpdater.java",
"license": "mpl-2.0",
"size": 25399
} | [
"java.util.ArrayList",
"java.util.List",
"org.openmrs.annotation.Authorized"
] | import java.util.ArrayList; import java.util.List; import org.openmrs.annotation.Authorized; | import java.util.*; import org.openmrs.annotation.*; | [
"java.util",
"org.openmrs.annotation"
] | java.util; org.openmrs.annotation; | 804,853 |
public void displayTree(Graphics g, Tree.Node root,
int x, int y, int hGap) {
// Display the root
g.drawOval(x - radius, y - radius, 2 * radius, 2 * radius);
g.drawString(root.weight + "", x - 6, y + 4);
if (root.left == null) // Display the character for leaf node
{
g.drawString(root.element + "", ... | void function(Graphics g, Tree.Node root, int x, int y, int hGap) { g.drawOval(x - radius, y - radius, 2 * radius, 2 * radius); g.drawString(root.weight + STR", x - 6, y + 34); } if (root.left != null) { connectLeftChild(g, x - hGap, y + vGap, x, y); displayTree(g, root.left, x - hGap, y + vGap, hGap / 2); } if (root.r... | /**
* Display a subtree rooted at position (x, y)
*
* @param g
* @param root
* @param x
* @param y
* @param hGap
*/ | Display a subtree rooted at position (x, y) | displayTree | {
"repo_name": "AlgorithmsJHU/Lender",
"path": "src/Huffman/TreeView.java",
"license": "mit",
"size": 3722
} | [
"java.awt.Graphics"
] | import java.awt.Graphics; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,558,886 |
public Attribute getAttributeEx (String name)
{
Vector attributes;
int size;
Attribute attribute;
String string;
Attribute ret;
ret = null;
attributes = getAttributesEx ();
if (null != attributes)
{
size = attribu... | Attribute function (String name) { Vector attributes; int size; Attribute attribute; String string; Attribute ret; ret = null; attributes = getAttributesEx (); if (null != attributes) { size = attributes.size (); for (int i = 0; i < size; i++) { attribute = (Attribute)attributes.elementAt (i); string = attribute.getNam... | /**
* Returns the attribute with the given name.
* @param name Name of attribute, case insensitive.
* @return The attribute or null if it does
* not exist.
*/ | Returns the attribute with the given name | getAttributeEx | {
"repo_name": "socialwareinc/html-parser",
"path": "lexer/src/main/java/org/htmlparser/nodes/TagNode.java",
"license": "lgpl-3.0",
"size": 29166
} | [
"java.util.Vector",
"org.htmlparser.Attribute"
] | import java.util.Vector; import org.htmlparser.Attribute; | import java.util.*; import org.htmlparser.*; | [
"java.util",
"org.htmlparser"
] | java.util; org.htmlparser; | 72,240 |
public double distance(Vector v) {
return Geo.distance(this, v);
}
| double function(Vector v) { return Geo.distance(this, v); } | /**
* Returns distance in meters between location and the
* closest match to the specified Vector.
*
* @param v
* @return
*/ | Returns distance in meters between location and the closest match to the specified Vector | distance | {
"repo_name": "edsfocci/Transitime_core",
"path": "transitime/src/main/java/org/transitime/db/structs/Location.java",
"license": "gpl-3.0",
"size": 3741
} | [
"org.transitime.utils.Geo"
] | import org.transitime.utils.Geo; | import org.transitime.utils.*; | [
"org.transitime.utils"
] | org.transitime.utils; | 2,370,427 |
@Test
public void testCommandCriteriaToString() {
Assert.assertNull(this.job.commandCriteriaToString(null));
Assert.assertNull(this.job.commandCriteriaToString(new HashSet<>()));
Assert.assertEquals(EXPECTED_COMMAND_CRITERIA_STRING,
this.job.commandCriteriaToString(COMMA... | void function() { Assert.assertNull(this.job.commandCriteriaToString(null)); Assert.assertNull(this.job.commandCriteriaToString(new HashSet<>())); Assert.assertEquals(EXPECTED_COMMAND_CRITERIA_STRING, this.job.commandCriteriaToString(COMMAND_CRITERIA)); } | /**
* Test the helper method to convert command criteria to a string.
*/ | Test the helper method to convert command criteria to a string | testCommandCriteriaToString | {
"repo_name": "chen0031/genie",
"path": "genie-common/src/test/java/com/netflix/genie/common/model/TestJob.java",
"license": "apache-2.0",
"size": 32284
} | [
"java.util.HashSet",
"org.junit.Assert"
] | import java.util.HashSet; import org.junit.Assert; | import java.util.*; import org.junit.*; | [
"java.util",
"org.junit"
] | java.util; org.junit; | 220,916 |
public RosterEntry getEntry(String user) {
if (user == null) {
return null;
}
// Roster entries never include a resource so remove the resource
// if it's a part of the XMPP address.
user = StringUtils.parseBareAddress(user);
String userLowerCase = user.to... | RosterEntry function(String user) { if (user == null) { return null; } user = StringUtils.parseBareAddress(user); String userLowerCase = user.toLowerCase(); synchronized (entries) { for (RosterEntry entry : entries) { if (entry.getUser().equals(userLowerCase)) { return entry; } } } return null; } | /**
* Returns the roster entry associated with the given XMPP address or
* <tt>null</tt> if the user is not an entry in the group.
*
* @param user the XMPP address of the user (eg "jsmith@example.com").
* @return the roster entry or <tt>null</tt> if it does not exist in the group.
*/ | Returns the roster entry associated with the given XMPP address or null if the user is not an entry in the group | getEntry | {
"repo_name": "ice-coffee/EIM",
"path": "src/org/jivesoftware/smack/RosterGroup.java",
"license": "apache-2.0",
"size": 9072
} | [
"org.jivesoftware.smack.util.StringUtils"
] | import org.jivesoftware.smack.util.StringUtils; | import org.jivesoftware.smack.util.*; | [
"org.jivesoftware.smack"
] | org.jivesoftware.smack; | 2,910,967 |
public void setRecording(Recording r) {
recording = r;
if (r != null) {
apply(getTitleTextField(), r.getTitle());
apply(getSubtitleTextField(), r.getSubtitle());
apply(getDescriptionTextArea(), r.getDescription());
Date d = r.getDate();
... | void function(Recording r) { recording = r; if (r != null) { apply(getTitleTextField(), r.getTitle()); apply(getSubtitleTextField(), r.getSubtitle()); apply(getDescriptionTextArea(), r.getDescription()); Date d = r.getDate(); if (d != null) { apply(getDateTextField(), d.toString()); } else { apply(getDateTextField(), n... | /**
* All UI components show data from a Recording instance.
*
* @param r A Recording object.
*/ | All UI components show data from a Recording instance | setRecording | {
"repo_name": "djb61230/jflicks",
"path": "src/org/jflicks/ui/view/metadata/RecordingDisplayPanel.java",
"license": "gpl-3.0",
"size": 8058
} | [
"java.util.Date",
"org.jflicks.tv.Recording"
] | import java.util.Date; import org.jflicks.tv.Recording; | import java.util.*; import org.jflicks.tv.*; | [
"java.util",
"org.jflicks.tv"
] | java.util; org.jflicks.tv; | 1,006,698 |
private DataFrame<R,String> createFrame(Iterable<R> rowKeys, List<ColumnInfo> columnList) {
return DataFrame.of(rowKeys, String.class, columns -> {
for (ColumnInfo colInfo : columnList) {
final String colName = colInfo.name;
final Array<?> values = colInfo.array.t... | DataFrame<R,String> function(Iterable<R> rowKeys, List<ColumnInfo> columnList) { return DataFrame.of(rowKeys, String.class, columns -> { for (ColumnInfo colInfo : columnList) { final String colName = colInfo.name; final Array<?> values = colInfo.array.toArray(); columns.add(colName, values); } }); } | /**
* Returns a newly created DataFrame from the arguments specified
* @param rowKeys the row keys
* @param columnList the column list
* @return the newly created DataFrame
*/ | Returns a newly created DataFrame from the arguments specified | createFrame | {
"repo_name": "zavtech/morpheus-core",
"path": "src/main/java/com/zavtech/morpheus/source/DbSource.java",
"license": "apache-2.0",
"size": 9805
} | [
"com.zavtech.morpheus.array.Array",
"com.zavtech.morpheus.frame.DataFrame",
"java.util.List"
] | import com.zavtech.morpheus.array.Array; import com.zavtech.morpheus.frame.DataFrame; import java.util.List; | import com.zavtech.morpheus.array.*; import com.zavtech.morpheus.frame.*; import java.util.*; | [
"com.zavtech.morpheus",
"java.util"
] | com.zavtech.morpheus; java.util; | 2,076,824 |
public static Type getArrayComponentType(final Type type) {
if (type instanceof Class<?>) {
final Class<?> clazz = (Class<?>) type;
return clazz.isArray() ? clazz.getComponentType() : null;
}
if (type instanceof GenericArrayType) {
return ((GenericArrayTyp... | static Type function(final Type type) { if (type instanceof Class<?>) { final Class<?> clazz = (Class<?>) type; return clazz.isArray() ? clazz.getComponentType() : null; } if (type instanceof GenericArrayType) { return ((GenericArrayType) type).getGenericComponentType(); } return null; } /** * Get a type representing {... | /**
* Get the array component type of {@code type}.
* @param type the type to be checked
* @return component type or null if type is not an array type
*/ | Get the array component type of type | getArrayComponentType | {
"repo_name": "nhchanh/apache-commons-lang3-3.2",
"path": "src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java",
"license": "apache-2.0",
"size": 69597
} | [
"java.lang.reflect.GenericArrayType",
"java.lang.reflect.Type"
] | import java.lang.reflect.GenericArrayType; import java.lang.reflect.Type; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 664,408 |
public static <T> InstanceResolver<T> createSingleton(T singleton) {
assert singleton!=null;
InstanceResolver ir = createFromInstanceResolverAnnotation(singleton.getClass());
if(ir==null)
ir = new SingletonResolver<T>(singleton);
return ir;
} | static <T> InstanceResolver<T> function(T singleton) { assert singleton!=null; InstanceResolver ir = createFromInstanceResolverAnnotation(singleton.getClass()); if(ir==null) ir = new SingletonResolver<T>(singleton); return ir; } | /**
* Creates a {@link InstanceResolver} implementation that always
* returns the specified singleton instance.
*/ | Creates a <code>InstanceResolver</code> implementation that always returns the specified singleton instance | createSingleton | {
"repo_name": "axDev-JDK/jaxws",
"path": "src/share/jaxws_classes/com/sun/xml/internal/ws/api/server/InstanceResolver.java",
"license": "gpl-2.0",
"size": 9657
} | [
"com.sun.xml.internal.ws.server.SingletonResolver"
] | import com.sun.xml.internal.ws.server.SingletonResolver; | import com.sun.xml.internal.ws.server.*; | [
"com.sun.xml"
] | com.sun.xml; | 2,882,398 |
EReference getlibrary_PBlock(); | EReference getlibrary_PBlock(); | /**
* Returns the meta object for the containment reference '{@link org.xtext.example.delphi.delphi.library#getPBlock <em>PBlock</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference '<em>PBlock</em>'.
* @see org.xtext.example.delphi.delphi.library#... | Returns the meta object for the containment reference '<code>org.xtext.example.delphi.delphi.library#getPBlock PBlock</code>'. | getlibrary_PBlock | {
"repo_name": "adolfosbh/cs2as",
"path": "org.xtext.example.delphi/src-gen/org/xtext/example/delphi/delphi/DelphiPackage.java",
"license": "epl-1.0",
"size": 434880
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 416,094 |
protected Enumeration findResources(String name,
boolean parentHasBeenSearched)
throws IOException {
Enumeration mine = new ResourceEnumeration(name);
Enumeration base;
if (parent != null && (!parentHasBeenSearched || parent != getPare... | Enumeration function(String name, boolean parentHasBeenSearched) throws IOException { Enumeration mine = new ResourceEnumeration(name); Enumeration base; if (parent != null && (!parentHasBeenSearched parent != getParent())) { base = parent.getResources(name); } else { base = new CollectionUtils.EmptyEnumeration(); } if... | /**
* Returns an enumeration of URLs representing all the resources with the
* given name by searching the class loader's classpath.
*
* @param name The resource name to search for.
* Must not be <code>null</code>.
* @param parentHasBeenSearched whether ClassLoader.this.parent
... | Returns an enumeration of URLs representing all the resources with the given name by searching the class loader's classpath | findResources | {
"repo_name": "elkingtonmcb/jenkins",
"path": "core/src/main/java/jenkins/util/AntClassLoader.java",
"license": "mit",
"size": 58794
} | [
"java.io.IOException",
"java.util.Enumeration",
"org.apache.tools.ant.util.CollectionUtils"
] | import java.io.IOException; import java.util.Enumeration; import org.apache.tools.ant.util.CollectionUtils; | import java.io.*; import java.util.*; import org.apache.tools.ant.util.*; | [
"java.io",
"java.util",
"org.apache.tools"
] | java.io; java.util; org.apache.tools; | 2,411,202 |
public Builder blacklistRepositories(Collection<String> repositories) {
this.blacklistedRepositoryURIs.addAll(repositories);
return this;
} | Builder function(Collection<String> repositories) { this.blacklistedRepositoryURIs.addAll(repositories); return this; } | /**
* Configure a list of blacklisted features XML repository URIs (see {@link LocationPattern})
* @param repositories
* @return
*/ | Configure a list of blacklisted features XML repository URIs (see <code>LocationPattern</code>) | blacklistRepositories | {
"repo_name": "grgrzybek/karaf",
"path": "profile/src/main/java/org/apache/karaf/profile/assembly/Builder.java",
"license": "apache-2.0",
"size": 88666
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 309,931 |
@NonNull
public Restaurant setAction(@StringRes int resId, View.OnClickListener listener) {
this.snackbar.setAction(resId, listener);
return this;
} | Restaurant function(@StringRes int resId, View.OnClickListener listener) { this.snackbar.setAction(resId, listener); return this; } | /**
* Set the action to be displayed in this {@link Snackbar}.
*
* @param resId String resource to display
* @param listener callback to be invoked when the action is clicked
*/ | Set the action to be displayed in this <code>Snackbar</code> | setAction | {
"repo_name": "SandroMachado/restaurant",
"path": "app/src/main/java/com/sandro/restaurant/Restaurant.java",
"license": "mit",
"size": 7012
} | [
"android.support.annotation.StringRes",
"android.view.View"
] | import android.support.annotation.StringRes; import android.view.View; | import android.support.annotation.*; import android.view.*; | [
"android.support",
"android.view"
] | android.support; android.view; | 1,736,045 |
EClass getunlabelledStatement(); | EClass getunlabelledStatement(); | /**
* Returns the meta object for class '{@link org.xtext.example.delphi.delphi.unlabelledStatement <em>unlabelled Statement</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>unlabelled Statement</em>'.
* @see org.xtext.example.delphi.delphi.unlabelledStatemen... | Returns the meta object for class '<code>org.xtext.example.delphi.delphi.unlabelledStatement unlabelled Statement</code>'. | getunlabelledStatement | {
"repo_name": "adolfosbh/cs2as",
"path": "org.xtext.example.delphi/src-gen/org/xtext/example/delphi/delphi/DelphiPackage.java",
"license": "epl-1.0",
"size": 434880
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 416,246 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.