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 ArrayList<OvhOperation> project_serviceName_operation_GET(String serviceName) throws IOException {
String qPath = "/cloud/project/{serviceName}/operation";
StringBuilder sb = path(qPath, serviceName);
String resp = exec(qPath, "GET", sb.toString(), null);
return convertTo(resp, t9);
}
private static... | ArrayList<OvhOperation> function(String serviceName) throws IOException { String qPath = STR; StringBuilder sb = path(qPath, serviceName); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, t9); } private static TypeReference<ArrayList<OvhOperation>> t9 = new TypeReference<ArrayList<OvhOperat... | /**
* List your operations
*
* REST: GET /cloud/project/{serviceName}/operation
* @param serviceName [required] Public Cloud project
*
* API beta
*/ | List your operations | project_serviceName_operation_GET | {
"repo_name": "UrielCh/ovh-java-sdk",
"path": "ovh-java-sdk-cloud/src/main/java/net/minidev/ovh/api/ApiOvhCloud.java",
"license": "bsd-3-clause",
"size": 111796
} | [
"com.fasterxml.jackson.core.type.TypeReference",
"java.io.IOException",
"java.util.ArrayList",
"net.minidev.ovh.api.cloud.OvhOperation"
] | import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; import java.util.ArrayList; import net.minidev.ovh.api.cloud.OvhOperation; | import com.fasterxml.jackson.core.type.*; import java.io.*; import java.util.*; import net.minidev.ovh.api.cloud.*; | [
"com.fasterxml.jackson",
"java.io",
"java.util",
"net.minidev.ovh"
] | com.fasterxml.jackson; java.io; java.util; net.minidev.ovh; | 1,370,411 |
public DataNode setVelocityScalar(Number velocity); | DataNode function(Number velocity); | /**
* velocity of the positioner (distance moved per unit time)
* <p>
* <b>Type:</b> NX_NUMBER
* <b>Units:</b> NX_ANY
* </p>
*
* @param velocity the velocity
*/ | velocity of the positioner (distance moved per unit time) Type: NX_NUMBER Units: NX_ANY | setVelocityScalar | {
"repo_name": "colinpalmer/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXpositioner.java",
"license": "epl-1.0",
"size": 11066
} | [
"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; | 1,754,543 |
EAttribute getAbstractAxis_Scale(); | EAttribute getAbstractAxis_Scale(); | /**
* Returns the meta object for the attribute '{@link info.limpet.stackedcharts.model.AbstractAxis#getScale <em>Scale</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Scale</em>'.
* @see info.limpet.stackedcharts.model.AbstractAxis#getScale()
... | Returns the meta object for the attribute '<code>info.limpet.stackedcharts.model.AbstractAxis#getScale Scale</code>'. | getAbstractAxis_Scale | {
"repo_name": "pecko/limpet",
"path": "info.limpet.stackedcharts.model/src/info/limpet/stackedcharts/model/StackedchartsPackage.java",
"license": "epl-1.0",
"size": 92511
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,004,336 |
@Override
public long skip(long n) throws IOException {
long nr = in.skip(n);
if (nr > 0)
monitor.setProgress(nread += nr);
return nr;
} | long function(long n) throws IOException { long nr = in.skip(n); if (nr > 0) monitor.setProgress(nread += nr); return nr; } | /**
* Overrides <code>FilterInputStream.skip</code>
* to update the progress monitor after the skip.
*/ | Overrides <code>FilterInputStream.skip</code> to update the progress monitor after the skip | skip | {
"repo_name": "joebowen/landing_zone_project",
"path": "openrocket-release-15.03/swing/src/net/sf/openrocket/gui/util/ConcurrentProgressMonitorInputStream.java",
"license": "gpl-2.0",
"size": 3567
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,528,983 |
public void setMeasuredDimension(int widthSize, int heightSize) {
mRecyclerView.setMeasuredDimension(widthSize, heightSize);
}
/**
* @return The host RecyclerView's {@link View#getMinimumWidth()} | void function(int widthSize, int heightSize) { mRecyclerView.setMeasuredDimension(widthSize, heightSize); } /** * @return The host RecyclerView's {@link View#getMinimumWidth()} | /**
* {@link View#setMeasuredDimension(int, int) Set the measured dimensions} of the
* host RecyclerView.
*
* @param widthSize Measured width
* @param heightSize Measured height
*/ | <code>View#setMeasuredDimension(int, int) Set the measured dimensions</code> of the host RecyclerView | setMeasuredDimension | {
"repo_name": "xlee00/Telegram",
"path": "TMessagesProj/src/main/java/org/telegram/messenger/support/widget/RecyclerView.java",
"license": "gpl-2.0",
"size": 482269
} | [
"android.view.View"
] | import android.view.View; | import android.view.*; | [
"android.view"
] | android.view; | 2,718,549 |
public NounSynset[] getInstanceHypernyms() throws WordNetException;
| NounSynset[] function() throws WordNetException; | /**
* Returns the instance hypernyms of this synset. An instance hyponym is
* a specific instance of something and the instance hypernym represents
* the reflexive type.
* <br><p>
* For example, the instance hypernym of "Mississippi River" is "river".
*
* @return Instance hypernyms of this synset... | Returns the instance hypernyms of this synset. An instance hyponym is a specific instance of something and the instance hypernym represents the reflexive type. For example, the instance hypernym of "Mississippi River" is "river" | getInstanceHypernyms | {
"repo_name": "agra-uni-bremen/lips",
"path": "edu.smu.tspell.wordnet/src/edu/smu/tspell/wordnet/NounSynset.java",
"license": "gpl-3.0",
"size": 8024
} | [
"edu.smu.tspell.wordnet.WordNetException"
] | import edu.smu.tspell.wordnet.WordNetException; | import edu.smu.tspell.wordnet.*; | [
"edu.smu.tspell"
] | edu.smu.tspell; | 1,561,424 |
ImmutableList<SchemaOrgType> getMemberList(); | ImmutableList<SchemaOrgType> getMemberList(); | /**
* Returns the value list of property member. Empty list is returned if the property not set in
* current object.
*/ | Returns the value list of property member. Empty list is returned if the property not set in current object | getMemberList | {
"repo_name": "google/schemaorg-java",
"path": "src/main/java/com/google/schemaorg/core/ProgramMembership.java",
"license": "apache-2.0",
"size": 7754
} | [
"com.google.common.collect.ImmutableList",
"com.google.schemaorg.SchemaOrgType"
] | import com.google.common.collect.ImmutableList; import com.google.schemaorg.SchemaOrgType; | import com.google.common.collect.*; import com.google.schemaorg.*; | [
"com.google.common",
"com.google.schemaorg"
] | com.google.common; com.google.schemaorg; | 1,007,336 |
@Test(timeout=300000)
public void testConcurrentSnapshottingAttempts() throws IOException, InterruptedException {
final TableName TABLE2_NAME = TableName.valueOf(TABLE_NAME + "2");
int ssNum = 20;
Admin admin = UTIL.getHBaseAdmin();
// make sure we don't fail on listing snapshots
SnapshotTestin... | @Test(timeout=300000) void function() throws IOException, InterruptedException { final TableName TABLE2_NAME = TableName.valueOf(TABLE_NAME + "2"); int ssNum = 20; Admin admin = UTIL.getHBaseAdmin(); SnapshotTestingUtils.assertNoSnapshots(admin); SnapshotTestingUtils.createTable(UTIL, TABLE2_NAME, TEST_FAM); SnapshotTe... | /**
* Demonstrate that we reject snapshot requests if there is a snapshot already running on the
* same table currently running and that concurrent snapshots on different tables can both
* succeed concurretly.
*/ | Demonstrate that we reject snapshot requests if there is a snapshot already running on the same table currently running and that concurrent snapshots on different tables can both succeed concurretly | testConcurrentSnapshottingAttempts | {
"repo_name": "grokcoder/pbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/snapshot/TestFlushSnapshotFromClient.java",
"license": "apache-2.0",
"size": 21349
} | [
"java.io.IOException",
"java.util.concurrent.CountDownLatch",
"org.apache.hadoop.hbase.TableName",
"org.apache.hadoop.hbase.client.Admin",
"org.apache.hadoop.hbase.protobuf.generated.HBaseProtos",
"org.junit.Test"
] | import java.io.IOException; import java.util.concurrent.CountDownLatch; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Admin; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos; import org.junit.Test; | import java.io.*; import java.util.concurrent.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.protobuf.generated.*; import org.junit.*; | [
"java.io",
"java.util",
"org.apache.hadoop",
"org.junit"
] | java.io; java.util; org.apache.hadoop; org.junit; | 732,788 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<SecurityAssessmentMetadataInner> createInSubscriptionAsync(
String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata) {
return createInSubscriptionWithResponseAsync(assessmentMetadataName, assessmentMetadata)
... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<SecurityAssessmentMetadataInner> function( String assessmentMetadataName, SecurityAssessmentMetadataInner assessmentMetadata) { return createInSubscriptionWithResponseAsync(assessmentMetadataName, assessmentMetadata) .flatMap( (Response<SecurityAssessmentMetadataInner> r... | /**
* Create metadata information on an assessment type in a specific subscription.
*
* @param assessmentMetadataName The Assessment Key - Unique key for the assessment type.
* @param assessmentMetadata AssessmentMetadata object.
* @throws IllegalArgumentException thrown if parameters fail the ... | Create metadata information on an assessment type in a specific subscription | createInSubscriptionAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/implementation/AssessmentsMetadatasClientImpl.java",
"license": "mit",
"size": 53428
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.security.fluent.models.SecurityAssessmentMetadataInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.security.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,171,163 |
protected boolean isEmpty(Criteria q) {
Criteria criteria = q.setProjection(Projections.rowCount());
LOGGER.debug("QUERY isEmpty(criteria): {}", HibernateHelper.getSqlString(criteria));
return ((Number) criteria.uniqueResult()).longValue() == 0L;
} | boolean function(Criteria q) { Criteria criteria = q.setProjection(Projections.rowCount()); LOGGER.debug(STR, HibernateHelper.getSqlString(criteria)); return ((Number) criteria.uniqueResult()).longValue() == 0L; } | /**
* Checks if the specified query has no results.
*
* @param q
* the query
*
* @return if it has no results
*/ | Checks if the specified query has no results | isEmpty | {
"repo_name": "ahuarte47/SOS",
"path": "extensions/do/hibernate/src/main/java/org/n52/sos/ext/deleteobservation/HibernateDeleteObservationCacheFeederDAO.java",
"license": "gpl-2.0",
"size": 5891
} | [
"org.hibernate.Criteria",
"org.hibernate.criterion.Projections",
"org.n52.sos.ds.hibernate.util.HibernateHelper"
] | import org.hibernate.Criteria; import org.hibernate.criterion.Projections; import org.n52.sos.ds.hibernate.util.HibernateHelper; | import org.hibernate.*; import org.hibernate.criterion.*; import org.n52.sos.ds.hibernate.util.*; | [
"org.hibernate",
"org.hibernate.criterion",
"org.n52.sos"
] | org.hibernate; org.hibernate.criterion; org.n52.sos; | 2,493,806 |
public RouteFilterInner withPeerings(List<ExpressRouteCircuitPeeringInner> peerings) {
this.peerings = peerings;
return this;
} | RouteFilterInner function(List<ExpressRouteCircuitPeeringInner> peerings) { this.peerings = peerings; return this; } | /**
* Set a collection of references to express route circuit peerings.
*
* @param peerings the peerings value to set
* @return the RouteFilterInner object itself.
*/ | Set a collection of references to express route circuit peerings | withPeerings | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2018_04_01/src/main/java/com/microsoft/azure/management/network/v2018_04_01/implementation/RouteFilterInner.java",
"license": "mit",
"size": 3547
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,548,281 |
private Pair<Map<Artifact, FileArtifactValue>, Map<Artifact, Collection<Artifact>>>
checkInputs(Environment env, Action action,
Map<SkyKey, ValueOrException2<MissingInputFileException, ActionExecutionException>> inputDeps)
throws ActionExecutionException {
int missingCount = 0;
int actionFailure... | Pair<Map<Artifact, FileArtifactValue>, Map<Artifact, Collection<Artifact>>> function(Environment env, Action action, Map<SkyKey, ValueOrException2<MissingInputFileException, ActionExecutionException>> inputDeps) throws ActionExecutionException { int missingCount = 0; int actionFailures = 0; boolean catastrophe = false;... | /**
* Declare dependency on all known inputs of action. Throws exception if any are known to be
* missing. Some inputs may not yet be in the graph, in which case the builder should abort.
*/ | Declare dependency on all known inputs of action. Throws exception if any are known to be missing. Some inputs may not yet be in the graph, in which case the builder should abort | checkInputs | {
"repo_name": "variac/bazel",
"path": "src/main/java/com/google/devtools/build/lib/skyframe/ActionExecutionFunction.java",
"license": "apache-2.0",
"size": 35383
} | [
"com.google.common.collect.ImmutableList",
"com.google.common.collect.ImmutableSet",
"com.google.devtools.build.lib.actions.Action",
"com.google.devtools.build.lib.actions.ActionExecutionException",
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.actions.MissingInputFileEx... | import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableSet; import com.google.devtools.build.lib.actions.Action; import com.google.devtools.build.lib.actions.ActionExecutionException; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.actions.M... | import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.causes.*; import com.google.devtools.build.lib.collect.nestedset.*; import com.google.devtools.build.lib.events.*; import com.google.devtools.build.lib.util.*; import com.google.devtools.build.skyfra... | [
"com.google.common",
"com.google.devtools",
"java.util"
] | com.google.common; com.google.devtools; java.util; | 1,295,887 |
@Override
public void shutdown(Thread mainSiteThread) throws InterruptedException {
synchronized(m_startAndStopLock) {
m_mode = OperationMode.SHUTTINGDOWN;
m_executionSitesRecovered = false;
m_agreementSiteRecovered = false;
m_snapshotCompletionMonitor.shu... | void function(Thread mainSiteThread) throws InterruptedException { synchronized(m_startAndStopLock) { m_mode = OperationMode.SHUTTINGDOWN; m_executionSitesRecovered = false; m_agreementSiteRecovered = false; m_snapshotCompletionMonitor.shutdown(); m_periodicWorkThread.shutdown(); heartbeatThread.interrupt(); heartbeatT... | /**
* Try to shut everything down so they system is ready to call
* initialize again.
* @param mainSiteThread The thread that m_inititalized the VoltDB or
* null if called from that thread.
*/ | Try to shut everything down so they system is ready to call initialize again | shutdown | {
"repo_name": "ifcharming/voltdb2.1",
"path": "src/frontend/org/voltdb/RealVoltDB.java",
"license": "gpl-3.0",
"size": 70941
} | [
"org.voltdb.export.ExportManager"
] | import org.voltdb.export.ExportManager; | import org.voltdb.export.*; | [
"org.voltdb.export"
] | org.voltdb.export; | 1,460,449 |
public ServiceFuture<VirtualMachineInner> getByResourceGroupAsync(String resourceGroupName, String vmName, final ServiceCallback<VirtualMachineInner> serviceCallback) {
return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, vmName), serviceCallback);
} | ServiceFuture<VirtualMachineInner> function(String resourceGroupName, String vmName, final ServiceCallback<VirtualMachineInner> serviceCallback) { return ServiceFuture.fromResponse(getByResourceGroupWithServiceResponseAsync(resourceGroupName, vmName), serviceCallback); } | /**
* Retrieves information about the model view or the instance view of a virtual machine.
*
* @param resourceGroupName The name of the resource group.
* @param vmName The name of the virtual machine.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.... | Retrieves information about the model view or the instance view of a virtual machine | getByResourceGroupAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/compute/mgmt-v2017_03_30/src/main/java/com/microsoft/azure/management/compute/v2017_03_30/implementation/VirtualMachinesInner.java",
"license": "mit",
"size": 186385
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,307,559 |
void addArtificialLinks(Network network); | void addArtificialLinks(Network network); | /**
* Adds the necessary artificial links to the network.
*/ | Adds the necessary artificial links to the network | addArtificialLinks | {
"repo_name": "matsim-org/pt2matsim",
"path": "src/main/java/org/matsim/pt2matsim/mapping/PseudoRouting.java",
"license": "gpl-2.0",
"size": 1319
} | [
"org.matsim.api.core.v01.network.Network"
] | import org.matsim.api.core.v01.network.Network; | import org.matsim.api.core.v01.network.*; | [
"org.matsim.api"
] | org.matsim.api; | 2,371,084 |
void insertGroup(Group group, int position) throws ObjectAlreadyHasException, IndexOutOfBoundsException; | void insertGroup(Group group, int position) throws ObjectAlreadyHasException, IndexOutOfBoundsException; | /**
* Inserts a group at a certain position on this track
* @param group the group to be inserted
* @param position the index position (a value of 0 inserts at the start)
* @throws ObjectAlreadyHasException if the group is already on this track somewhere
* @throws IndexOutOfBoundsException if t... | Inserts a group at a certain position on this track | insertGroup | {
"repo_name": "Boomclaw/LuckPerms",
"path": "api/src/main/java/me/lucko/luckperms/api/Track.java",
"license": "mit",
"size": 5359
} | [
"me.lucko.luckperms.exceptions.ObjectAlreadyHasException"
] | import me.lucko.luckperms.exceptions.ObjectAlreadyHasException; | import me.lucko.luckperms.exceptions.*; | [
"me.lucko.luckperms"
] | me.lucko.luckperms; | 1,129,834 |
protected boolean getIsOrganizationAdmin() {
User user = getUserFromSession();
return user != null && user.isOrganizationAdmin();
} | boolean function() { User user = getUserFromSession(); return user != null && user.isOrganizationAdmin(); } | /**
* Check if the current user is a OrganizationAdmin
*
* @return true if the current user is a OrganizationAdmin
*/ | Check if the current user is a OrganizationAdmin | getIsOrganizationAdmin | {
"repo_name": "opetrovski/development",
"path": "oscm-portal/javasrc/org/oscm/ui/beans/BaseBean.java",
"license": "apache-2.0",
"size": 67842
} | [
"org.oscm.ui.model.User"
] | import org.oscm.ui.model.User; | import org.oscm.ui.model.*; | [
"org.oscm.ui"
] | org.oscm.ui; | 1,108,953 |
private int getNumIterations(HashMap<String,VarStats> stats, String[] pred)
{
int N = DEFAULT_NUMITER;
if( pred != null && pred[1]!=null && pred[2]!=null && pred[3]!=null )
{
try
{
int from = Integer.parseInt(pred[1]);
int to = Integer.parseInt(pred[2]);
int increment = Integer.parseInt(pre... | int function(HashMap<String,VarStats> stats, String[] pred) { int N = DEFAULT_NUMITER; if( pred != null && pred[1]!=null && pred[2]!=null && pred[3]!=null ) { try { int from = Integer.parseInt(pred[1]); int to = Integer.parseInt(pred[2]); int increment = Integer.parseInt(pred[3]); N = (int)Math.ceil(((double)(to-from+1... | /**
* TODO use of vars - needed for recompilation
* TODO w/o exception
*
* @param vars
* @param stats
* @param pred
* @return
*/ | TODO use of vars - needed for recompilation TODO w/o exception | getNumIterations | {
"repo_name": "wjuncdl/systemml",
"path": "system-ml/src/main/java/com/ibm/bi/dml/hops/cost/CostEstimator.java",
"license": "apache-2.0",
"size": 24752
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 1,399,027 |
public void makeRecord(String name) {
StringBuffer stringBuffer = null;
String string_temp = "";
BufferedReader br = null;
BufferedWriter bw = null;
boolean isFind = false;
try {
if (!Global.isWriteNew) {
isr = new InputStreamReader(Global.getFileInputStream());
br = new BufferedReader(... | void function(String name) { StringBuffer stringBuffer = null; String string_temp = STR STR STR\r\nSTR 1\r\nSTRuser.dirSTR\\record.txt"); bw = new BufferedWriter(fw); bw.write(stringBuffer.toString()); Global.isWriteNew = true; } catch (FileNotFoundException e) { e.printStackTrace(); } catch (IOException e) { e.printSt... | /**
* record.text 0:name 1:win
*
*
* @param name
* @param result
*/ | record.text 0:name 1:win | makeRecord | {
"repo_name": "MasteringJava/Sudoku",
"path": "MySudoku5.0/SourceCode/MySudokuServer/src/MySudoku/showPanel/WinInformation.java",
"license": "agpl-3.0",
"size": 6906
} | [
"java.io.BufferedWriter",
"java.io.FileNotFoundException",
"java.io.IOException"
] | import java.io.BufferedWriter; import java.io.FileNotFoundException; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,070,169 |
public Class<? extends AbstractInvokable> getInvokableClass(ClassLoader cl) {
if (cl == null) {
throw new NullPointerException("The classloader must not be null.");
}
if (invokableClassName == null) {
return null;
}
try {
return Class.forName(invokableClassName, true, cl).asSubclass(AbstractInvok... | Class<? extends AbstractInvokable> function(ClassLoader cl) { if (cl == null) { throw new NullPointerException(STR); } if (invokableClassName == null) { return null; } try { return Class.forName(invokableClassName, true, cl).asSubclass(AbstractInvokable.class); } catch (ClassNotFoundException e) { throw new RuntimeExce... | /**
* Returns the invokable class which represents the task of this vertex
*
* @param cl The classloader used to resolve user-defined classes
* @return The invokable class, <code>null</code> if it is not set
*/ | Returns the invokable class which represents the task of this vertex | getInvokableClass | {
"repo_name": "ueshin/apache-flink",
"path": "flink-runtime/src/main/java/org/apache/flink/runtime/jobgraph/JobVertex.java",
"license": "apache-2.0",
"size": 18391
} | [
"org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable"
] | import org.apache.flink.runtime.jobgraph.tasks.AbstractInvokable; | import org.apache.flink.runtime.jobgraph.tasks.*; | [
"org.apache.flink"
] | org.apache.flink; | 1,358,768 |
private Set<String> parseQuerySets(NodeList querySetNodeList) {
Set<String> querySets = Sets.newHashSet();
for (int count = 0; count < querySetNodeList.getLength(); count++) {
Node querySetNode = querySetNodeList.item(count);
if (QUERY_SET_TAG.equals(querySetNode.getNodeName(... | Set<String> function(NodeList querySetNodeList) { Set<String> querySets = Sets.newHashSet(); for (int count = 0; count < querySetNodeList.getLength(); count++) { Node querySetNode = querySetNodeList.item(count); if (QUERY_SET_TAG.equals(querySetNode.getNodeName())) { querySets.add(getAttributeString(querySetNode, QUERY... | /**
* Parse <querySet/> tag.
*
* @param querySetNodeList list of 'querySet' tag nodes. root element must be <querySetConfig/> tag
* @return set of paths queries definitions
*/ | Parse tag | parseQuerySets | {
"repo_name": "jmingo-projects/jmingo",
"path": "jmingo-core/src/main/java/org/jmingo/parser/xml/dom/ContextDefinitionParser.java",
"license": "gpl-3.0",
"size": 9349
} | [
"com.google.common.collect.Sets",
"java.util.Set",
"org.jmingo.exceptions.JMingoParserException",
"org.w3c.dom.Node",
"org.w3c.dom.NodeList"
] | import com.google.common.collect.Sets; import java.util.Set; import org.jmingo.exceptions.JMingoParserException; import org.w3c.dom.Node; import org.w3c.dom.NodeList; | import com.google.common.collect.*; import java.util.*; import org.jmingo.exceptions.*; import org.w3c.dom.*; | [
"com.google.common",
"java.util",
"org.jmingo.exceptions",
"org.w3c.dom"
] | com.google.common; java.util; org.jmingo.exceptions; org.w3c.dom; | 900,432 |
private void getNthLastOfType() {
for (Branch node : nodes) {
int count = 1;
Branch n = DOMHelper.getNextSiblingElement(node);
while (n != null) {
if (n.getName().equals(node.getName())) {
count++;
}
... | void function() { for (Branch node : nodes) { int count = 1; Branch n = DOMHelper.getNextSiblingElement(node); while (n != null) { if (n.getName().equals(node.getName())) { count++; } n = DOMHelper.getNextSiblingElement(n); } if (specifier.isMatch(count)) { result.add(node); } } } | /**
* Get {@code nth-last-of-type} elements.
*
* @see <a href="http://www.w3.org/TR/css3-selectors/#nth-last-of-type-pseudo"><code>:nth-last-of-type</code> pseudo-class</a>
*/ | Get nth-last-of-type elements | getNthLastOfType | {
"repo_name": "SeanTAllen/nate",
"path": "java/src/main/java/org/nate/internal/dom4j/cssselectors/internal/PseudoNthSpecifierChecker.java",
"license": "mit",
"size": 4323
} | [
"org.dom4j.Branch",
"org.nate.internal.dom4j.cssselectors.DOMHelper"
] | import org.dom4j.Branch; import org.nate.internal.dom4j.cssselectors.DOMHelper; | import org.dom4j.*; import org.nate.internal.dom4j.cssselectors.*; | [
"org.dom4j",
"org.nate.internal"
] | org.dom4j; org.nate.internal; | 660,958 |
public HttpClient getHttpClient() {
return this.httpClient;
} | HttpClient function() { return this.httpClient; } | /**
* Get the underlying HttpClient instance. This is useful for setting
* additional fine-grained settings for requests by accessing the
* client's ConnectionManager, HttpParams and SchemeRegistry.
*/ | Get the underlying HttpClient instance. This is useful for setting additional fine-grained settings for requests by accessing the client's ConnectionManager, HttpParams and SchemeRegistry | getHttpClient | {
"repo_name": "xiaopengs/iBooks",
"path": "src/com/loopj/android/http/AsyncHttpClient.java",
"license": "mit",
"size": 25822
} | [
"org.apache.http.client.HttpClient"
] | import org.apache.http.client.HttpClient; | import org.apache.http.client.*; | [
"org.apache.http"
] | org.apache.http; | 2,853,698 |
@Override
public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions,
@NonNull int[] grantResults) {
if (requestCode == REQUEST_READ_CONTACTS) {
if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_... | void function(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) { if (requestCode == REQUEST_READ_CONTACTS) { if (grantResults.length == 1 && grantResults[0] == PackageManager.PERMISSION_GRANTED) { } } } | /**
* Callback received when a permissions request has been completed.
*/ | Callback received when a permissions request has been completed | onRequestPermissionsResult | {
"repo_name": "43081438/IMDemo",
"path": "Wow-master/app/src/main/java/com/dikaros/wow/LoginActivity.java",
"license": "apache-2.0",
"size": 12733
} | [
"android.content.pm.PackageManager",
"android.support.annotation.NonNull"
] | import android.content.pm.PackageManager; import android.support.annotation.NonNull; | import android.content.pm.*; import android.support.annotation.*; | [
"android.content",
"android.support"
] | android.content; android.support; | 733,858 |
public CertificateContractInner createOrUpdate(String resourceGroupName, String serviceName, String certificateId, CertificateCreateOrUpdateParameters parameters) {
return createOrUpdateWithServiceResponseAsync(resourceGroupName, serviceName, certificateId, parameters).toBlocking().single().body();
} | CertificateContractInner function(String resourceGroupName, String serviceName, String certificateId, CertificateCreateOrUpdateParameters parameters) { return createOrUpdateWithServiceResponseAsync(resourceGroupName, serviceName, certificateId, parameters).toBlocking().single().body(); } | /**
* Creates or updates the certificate being used for authentication with the backend.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the API Management service.
* @param certificateId Identifier of the certificate entity. Must be unique in the c... | Creates or updates the certificate being used for authentication with the backend | createOrUpdate | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/apimanagement/mgmt-v2018_06_01_preview/src/main/java/com/microsoft/azure/management/apimanagement/v2018_06_01_preview/implementation/CertificatesInner.java",
"license": "mit",
"size": 62036
} | [
"com.microsoft.azure.management.apimanagement.v2018_06_01_preview.CertificateCreateOrUpdateParameters"
] | import com.microsoft.azure.management.apimanagement.v2018_06_01_preview.CertificateCreateOrUpdateParameters; | import com.microsoft.azure.management.apimanagement.v2018_06_01_preview.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 1,598,187 |
@TargetApi(Build.VERSION_CODES.KITKAT)
public static void setExactAlarm(AlarmManager alarmManager, int alarmType, long firstTime,
PendingIntent pendingIntent) {
if(isCompatible(Build.VERSION_CODES.KITKAT)) {
alarmManager.setExact(alarmType, firstTime, pendingIntent);
}els... | @TargetApi(Build.VERSION_CODES.KITKAT) static void function(AlarmManager alarmManager, int alarmType, long firstTime, PendingIntent pendingIntent) { if(isCompatible(Build.VERSION_CODES.KITKAT)) { alarmManager.setExact(alarmType, firstTime, pendingIntent); }else { alarmManager.set(alarmType, firstTime, pendingIntent); }... | /**
* Wrapper to set alarm at exact time
* @see android.app.AlarmManager#setExact(int, long, PendingIntent)
*/ | Wrapper to set alarm at exact time | setExactAlarm | {
"repo_name": "voxofon/CSipSimple",
"path": "src/com/csipsimple/utils/Compatibility.java",
"license": "lgpl-3.0",
"size": 51093
} | [
"android.annotation.TargetApi",
"android.app.AlarmManager",
"android.app.PendingIntent",
"android.os.Build"
] | import android.annotation.TargetApi; import android.app.AlarmManager; import android.app.PendingIntent; import android.os.Build; | import android.annotation.*; import android.app.*; import android.os.*; | [
"android.annotation",
"android.app",
"android.os"
] | android.annotation; android.app; android.os; | 564,132 |
@Test(expectedExceptions = IllegalStateException.class)
public void testResetApp() throws Exception {
mainControllerGUI.resetApp();
} | @Test(expectedExceptions = IllegalStateException.class) void function() throws Exception { mainControllerGUI.resetApp(); } | /**
* Impossible to test in another Thread than the application.
*/ | Impossible to test in another Thread than the application | testResetApp | {
"repo_name": "vsegouin/mow-it-now",
"path": "src/test/java/com/vsegouin/mowitnow/ui/gui/controllers/MainControllerGUITest.java",
"license": "gpl-3.0",
"size": 4044
} | [
"org.testng.annotations.Test"
] | import org.testng.annotations.Test; | import org.testng.annotations.*; | [
"org.testng.annotations"
] | org.testng.annotations; | 1,524,797 |
public List<PathElement> pathElements() {
return Collections.unmodifiableList(pathElements);
} | List<PathElement> function() { return Collections.unmodifiableList(pathElements); } | /**
* Returns the list of path elements.
*
* @return list of path elements
*/ | Returns the list of path elements | pathElements | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "apps/tetopology/api/src/main/java/org/onosproject/tetopology/management/api/link/UnderlayAbstractPath.java",
"license": "apache-2.0",
"size": 2571
} | [
"java.util.Collections",
"java.util.List"
] | import java.util.Collections; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,547,174 |
protected JmsMessageEntity createJmsMessageEntity(String jmsQueueName, String messageText)
{
JmsMessageEntity jmsMessageEntity = new JmsMessageEntity();
jmsMessageEntity.setJmsQueueName(jmsQueueName);
jmsMessageEntity.setMessageText(messageText);
return herdDao.saveAndRefresh(jms... | JmsMessageEntity function(String jmsQueueName, String messageText) { JmsMessageEntity jmsMessageEntity = new JmsMessageEntity(); jmsMessageEntity.setJmsQueueName(jmsQueueName); jmsMessageEntity.setMessageText(messageText); return herdDao.saveAndRefresh(jmsMessageEntity); } | /**
* Creates and persists a new JMS message entity.
*
* @param jmsQueueName the JMS queue name
* @param messageText the message text
*
* @return the newly created JMS message entity
*/ | Creates and persists a new JMS message entity | createJmsMessageEntity | {
"repo_name": "seoj/herd",
"path": "herd-code/herd-dao/src/test/java/org/finra/herd/dao/AbstractDaoTest.java",
"license": "apache-2.0",
"size": 127305
} | [
"org.finra.herd.model.jpa.JmsMessageEntity"
] | import org.finra.herd.model.jpa.JmsMessageEntity; | import org.finra.herd.model.jpa.*; | [
"org.finra.herd"
] | org.finra.herd; | 1,538,522 |
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(
String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context) {
deleteAsync(resourceGroupName, scopeName, privateEndpointConnectionName, context).block();
} | @ServiceMethod(returns = ReturnType.SINGLE) void function( String resourceGroupName, String scopeName, String privateEndpointConnectionName, Context context) { deleteAsync(resourceGroupName, scopeName, privateEndpointConnectionName, context).block(); } | /**
* Deletes a private endpoint connection with a given name.
*
* @param resourceGroupName The name of the resource group.
* @param scopeName The name of the Azure Monitor PrivateLinkScope resource.
* @param privateEndpointConnectionName The name of the private endpoint connection.
* @par... | Deletes a private endpoint connection with a given name | delete | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-monitor/src/main/java/com/azure/resourcemanager/monitor/implementation/PrivateEndpointConnectionsClientImpl.java",
"license": "mit",
"size": 58144
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.util.Context"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; | import com.azure.core.annotation.*; import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 1,346,109 |
// TODO: solve the TODO and then remove the TruffleBoundary, this might even need to go
// into a node
@TruffleBoundary
protected static void resolveChainedPromisesUnsync(final Resolution type,
final SPromise promise, final Object result, final Actor current,
final ForkJoinPool actorPool... | static void function(final Resolution type, final SPromise promise, final Object result, final Actor current, final ForkJoinPool actorPool, final boolean haltOnResolution, final ValueProfile whenResolvedProfile) { if (promise.chainedPromise != null) { SPromise chainedPromise = promise.chainedPromise; promise.chainedPro... | /**
* Handles the case when a promise is resolved with a proper value
* and previously has been chained with other promises.
*/ | Handles the case when a promise is resolved with a proper value and previously has been chained with other promises | resolveChainedPromisesUnsync | {
"repo_name": "smarr/SOMns",
"path": "src/som/interpreter/actors/SPromise.java",
"license": "mit",
"size": 19969
} | [
"com.oracle.truffle.api.profiles.ValueProfile",
"java.util.concurrent.ForkJoinPool"
] | import com.oracle.truffle.api.profiles.ValueProfile; import java.util.concurrent.ForkJoinPool; | import com.oracle.truffle.api.profiles.*; import java.util.concurrent.*; | [
"com.oracle.truffle",
"java.util"
] | com.oracle.truffle; java.util; | 1,444,656 |
public ChainSkills getChainSkills() {
if (this.chainSkills == null) {
this.chainSkills = new ChainSkills();
}
return this.chainSkills;
} | ChainSkills function() { if (this.chainSkills == null) { this.chainSkills = new ChainSkills(); } return this.chainSkills; } | /**
* chain skills
*/ | chain skills | getChainSkills | {
"repo_name": "f14shm4n/aion-event-engine",
"path": "EventEngine/src/com/aionemu/gameserver/model/gameobjects/player/Player.java",
"license": "gpl-2.0",
"size": 68792
} | [
"com.aionemu.gameserver.skillengine.model.ChainSkills"
] | import com.aionemu.gameserver.skillengine.model.ChainSkills; | import com.aionemu.gameserver.skillengine.model.*; | [
"com.aionemu.gameserver"
] | com.aionemu.gameserver; | 147,992 |
protected static InternalAggregation unrollAgg(InternalAggregation rolled, InternalAggregation originalAgg,
InternalAggregation currentTree, long count) {
if (rolled instanceof InternalMultiBucketAggregation) {
return unrollMultiBucket((Interna... | static InternalAggregation function(InternalAggregation rolled, InternalAggregation originalAgg, InternalAggregation currentTree, long count) { if (rolled instanceof InternalMultiBucketAggregation) { return unrollMultiBucket((InternalMultiBucketAggregation) rolled, (InternalMultiBucketAggregation) originalAgg, (Interna... | /**
* Takes an aggregation with rollup conventions and unrolls into a "normal" agg tree
*
* @param rolled The rollup aggregation that we wish to unroll
* @param originalAgg The unrolled, "live" aggregation (if it exists) that matches the current rolled aggregation
* @param count The ... | Takes an aggregation with rollup conventions and unrolls into a "normal" agg tree | unrollAgg | {
"repo_name": "HonzaKral/elasticsearch",
"path": "x-pack/plugin/rollup/src/main/java/org/elasticsearch/xpack/rollup/RollupResponseTranslator.java",
"license": "apache-2.0",
"size": 28704
} | [
"org.elasticsearch.search.aggregations.InternalAggregation",
"org.elasticsearch.search.aggregations.InternalMultiBucketAggregation",
"org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation"
] | import org.elasticsearch.search.aggregations.InternalAggregation; import org.elasticsearch.search.aggregations.InternalMultiBucketAggregation; import org.elasticsearch.search.aggregations.metrics.InternalNumericMetricsAggregation; | import org.elasticsearch.search.aggregations.*; import org.elasticsearch.search.aggregations.metrics.*; | [
"org.elasticsearch.search"
] | org.elasticsearch.search; | 1,893,515 |
private void executeShowHarvested(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception {
StringSet uuids = actionCriteria.getSelectedRecordIdSet();
String[] aUuids = uuids.toArray(new String[uuids.size()]);
if (aUuids.length>0) {
getCriteria().getQueryCriteria().rese... | void function(ActionEvent event, RequestContext context, MmdActionCriteria actionCriteria) throws Exception { StringSet uuids = actionCriteria.getSelectedRecordIdSet(); String[] aUuids = uuids.toArray(new String[uuids.size()]); if (aUuids.length>0) { getCriteria().getQueryCriteria().reset(); getCriteria().getQueryCrite... | /**
* Executes canceling of the synchronization.
* @param event the associated JSF action event
* @param context the context associated with the active request
* @param actionCriteria the criteria for the action
* @throws Exception if an exception occurs
*/ | Executes canceling of the synchronization | executeShowHarvested | {
"repo_name": "Esri/geoportal-server",
"path": "geoportal/src/com/esri/gpt/control/publication/ManageMetadataController.java",
"license": "apache-2.0",
"size": 24444
} | [
"com.esri.gpt.catalog.management.MmdActionCriteria",
"com.esri.gpt.framework.collection.StringSet",
"com.esri.gpt.framework.context.RequestContext",
"javax.faces.event.ActionEvent"
] | import com.esri.gpt.catalog.management.MmdActionCriteria; import com.esri.gpt.framework.collection.StringSet; import com.esri.gpt.framework.context.RequestContext; import javax.faces.event.ActionEvent; | import com.esri.gpt.catalog.management.*; import com.esri.gpt.framework.collection.*; import com.esri.gpt.framework.context.*; import javax.faces.event.*; | [
"com.esri.gpt",
"javax.faces"
] | com.esri.gpt; javax.faces; | 1,830,092 |
public CharSequence getText() {
if (hasSpans()) {
List<Integer> starts = extrasIntList(SPANS_START_KEY);
List<Integer> ends = extrasIntList(SPANS_END_KEY);
List<Integer> flags = extrasIntList(SPANS_FLAGS_KEY);
List<Integer> ids = extrasIntList(SPANS_ID_KEY);
... | CharSequence function() { if (hasSpans()) { List<Integer> starts = extrasIntList(SPANS_START_KEY); List<Integer> ends = extrasIntList(SPANS_END_KEY); List<Integer> flags = extrasIntList(SPANS_FLAGS_KEY); List<Integer> ids = extrasIntList(SPANS_ID_KEY); Spannable spannable = new SpannableString(TextUtils.substring(mInfo... | /**
* Gets the text of this node.
*
* @return The text.
*/ | Gets the text of this node | getText | {
"repo_name": "AndroidX/androidx",
"path": "core/core/src/main/java/androidx/core/view/accessibility/AccessibilityNodeInfoCompat.java",
"license": "apache-2.0",
"size": 160272
} | [
"android.text.Spannable",
"android.text.SpannableString",
"android.text.TextUtils",
"java.util.List"
] | import android.text.Spannable; import android.text.SpannableString; import android.text.TextUtils; import java.util.List; | import android.text.*; import java.util.*; | [
"android.text",
"java.util"
] | android.text; java.util; | 10,944 |
boolean matches(final Event<K, V> event, final Sequence<K, V> sequence, final States states); | boolean matches(final Event<K, V> event, final Sequence<K, V> sequence, final States states); | /**
* The function that evaluates an input record stream.
*
* @param event the current event in the stream.
* @param sequence the previous accepted events.
* @param states the states store for this pattern.
*
* @return <code>true</code> if the event should be selec... | The function that evaluates an input record stream | matches | {
"repo_name": "fhussonnois/kafkastreams-cep",
"path": "core/src/main/java/com/github/fhuss/kafka/streams/cep/core/pattern/SequenceMatcher.java",
"license": "apache-2.0",
"size": 2366
} | [
"com.github.fhuss.kafka.streams.cep.core.Event",
"com.github.fhuss.kafka.streams.cep.core.Sequence",
"com.github.fhuss.kafka.streams.cep.core.state.States"
] | import com.github.fhuss.kafka.streams.cep.core.Event; import com.github.fhuss.kafka.streams.cep.core.Sequence; import com.github.fhuss.kafka.streams.cep.core.state.States; | import com.github.fhuss.kafka.streams.cep.core.*; import com.github.fhuss.kafka.streams.cep.core.state.*; | [
"com.github.fhuss"
] | com.github.fhuss; | 1,588,880 |
@Override
public Response policiesMediationMediationPolicyIdDelete(String mediationPolicyId,
String ifMatch, String ifUnmodifiedSince) {
try {
APIProvider apiProvider = RestApiUtil.getLoggedInUserProvider();
//Delete gi... | Response function(String mediationPolicyId, String ifMatch, String ifUnmodifiedSince) { try { APIProvider apiProvider = RestApiUtil.getLoggedInUserProvider(); boolean deleteState = apiProvider.deleteGlobalMediationPolicy(mediationPolicyId); if (deleteState) { return Response.ok().build(); } else { RestApiUtil.handleRes... | /**
* Deletes an existing global mediation policy
*
* @param mediationPolicyId Uuid of mediation policy resource
* @param ifMatch If-match header value
* @param ifUnmodifiedSince If-Unmodified-Since header value
* @return 200 response if deleted successfully
*/ | Deletes an existing global mediation policy | policiesMediationMediationPolicyIdDelete | {
"repo_name": "nuwand/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.admin/src/main/java/org/wso2/carbon/apimgt/rest/api/admin/impl/PoliciesApiServiceImpl.java",
"license": "apache-2.0",
"size": 15710
} | [
"javax.ws.rs.core.Response",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.api.APIProvider",
"org.wso2.carbon.apimgt.rest.api.util.RestApiConstants",
"org.wso2.carbon.apimgt.rest.api.util.utils.RestApiUtil"
] | import javax.ws.rs.core.Response; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.APIProvider; import org.wso2.carbon.apimgt.rest.api.util.RestApiConstants; import org.wso2.carbon.apimgt.rest.api.util.utils.RestApiUtil; | import javax.ws.rs.core.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.rest.api.util.*; import org.wso2.carbon.apimgt.rest.api.util.utils.*; | [
"javax.ws",
"org.wso2.carbon"
] | javax.ws; org.wso2.carbon; | 2,528,366 |
void configure(HttpSecurity http) throws Exception; | void configure(HttpSecurity http) throws Exception; | /**
* Extension hook to configure the resource server.
*
* @param http
* @throws Exception
*/ | Extension hook to configure the resource server | configure | {
"repo_name": "iservport/helianto-material-skin",
"path": "src/main/scala/org.helianto.root/HeliantoResourceServerConfigurer.java",
"license": "apache-2.0",
"size": 346
} | [
"org.springframework.security.config.annotation.web.builders.HttpSecurity"
] | import org.springframework.security.config.annotation.web.builders.HttpSecurity; | import org.springframework.security.config.annotation.web.builders.*; | [
"org.springframework.security"
] | org.springframework.security; | 209,298 |
@Override
public synchronized void doBuild() throws TorqueException
{
if ( isBuilt() ) {
return;
}
dbMap = Torque.getDatabaseMap("track");
dbMap.addTable("TSUMMARYMAIL");
TableMap tMap = dbMap.getTable("TSUMMARYMAIL");
tMap.setJavaName("TSummaryMa... | synchronized void function() throws TorqueException { if ( isBuilt() ) { return; } dbMap = Torque.getDatabaseMap("track"); dbMap.addTable(STR); TableMap tMap = dbMap.getTable(STR); tMap.setJavaName(STR); tMap.setOMClass( com.aurel.track.persist.TSummaryMail.class ); tMap.setPeerClass( com.aurel.track.persist.TSummaryMa... | /**
* The doBuild() method builds the DatabaseMap
*
* @throws TorqueException
*/ | The doBuild() method builds the DatabaseMap | doBuild | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/map/TSummaryMailMapBuilder.java",
"license": "gpl-3.0",
"size": 7656
} | [
"org.apache.torque.Torque",
"org.apache.torque.TorqueException",
"org.apache.torque.map.ColumnMap",
"org.apache.torque.map.TableMap"
] | import org.apache.torque.Torque; import org.apache.torque.TorqueException; import org.apache.torque.map.ColumnMap; import org.apache.torque.map.TableMap; | import org.apache.torque.*; import org.apache.torque.map.*; | [
"org.apache.torque"
] | org.apache.torque; | 1,218,645 |
public static Integer createServerCache() throws Exception {
ConflationDUnitTest test = new ConflationDUnitTest();
cache = test.createCache(new Properties());
AttributesFactory factory = new AttributesFactory();
factory.setScope(Scope.DISTRIBUTED_ACK);
factory.setEnableConflation(true);
Region... | static Integer function() throws Exception { ConflationDUnitTest test = new ConflationDUnitTest(); cache = test.createCache(new Properties()); AttributesFactory factory = new AttributesFactory(); factory.setScope(Scope.DISTRIBUTED_ACK); factory.setEnableConflation(true); RegionAttributes attrs = factory.create(); cache... | /**
* create a server cache and start the server
*
*/ | create a server cache and start the server | createServerCache | {
"repo_name": "deepakddixit/incubator-geode",
"path": "geode-core/src/distributedTest/java/org/apache/geode/internal/cache/tier/sockets/ConflationDUnitTest.java",
"license": "apache-2.0",
"size": 24494
} | [
"java.util.Properties",
"org.apache.geode.cache.AttributesFactory",
"org.apache.geode.cache.RegionAttributes",
"org.apache.geode.cache.Scope",
"org.apache.geode.cache.server.CacheServer",
"org.apache.geode.internal.AvailablePort"
] | import java.util.Properties; import org.apache.geode.cache.AttributesFactory; import org.apache.geode.cache.RegionAttributes; import org.apache.geode.cache.Scope; import org.apache.geode.cache.server.CacheServer; import org.apache.geode.internal.AvailablePort; | import java.util.*; import org.apache.geode.cache.*; import org.apache.geode.cache.server.*; import org.apache.geode.internal.*; | [
"java.util",
"org.apache.geode"
] | java.util; org.apache.geode; | 2,231,365 |
public List<CoreLabel> lemmatize(List<? extends HasWord> tokens) {
List<TaggedWord> tagged;
if (getOp().testOptions.preTag) {
Function<List<? extends HasWord>, List<TaggedWord>> tagger = loadTagger();
tagged = tagger.apply(tokens);
} else {
Tree tree = parse(tokens);
tagged = tree.... | List<CoreLabel> function(List<? extends HasWord> tokens) { List<TaggedWord> tagged; if (getOp().testOptions.preTag) { Function<List<? extends HasWord>, List<TaggedWord>> tagger = loadTagger(); tagged = tagger.apply(tokens); } else { Tree tree = parse(tokens); tagged = tree.taggedYield(); } Morphology morpha = new Morph... | /**
* Only works on English, as it is hard coded for using the
* Morphology class, which is English-only
*/ | Only works on English, as it is hard coded for using the Morphology class, which is English-only | lemmatize | {
"repo_name": "hbbpb/stanford-corenlp-gv",
"path": "src/edu/stanford/nlp/parser/common/ParserGrammar.java",
"license": "gpl-2.0",
"size": 6674
} | [
"edu.stanford.nlp.ling.CoreLabel",
"edu.stanford.nlp.ling.HasWord",
"edu.stanford.nlp.ling.TaggedWord",
"edu.stanford.nlp.process.Morphology",
"edu.stanford.nlp.trees.Tree",
"edu.stanford.nlp.util.Generics",
"java.util.List",
"java.util.function.Function"
] | import edu.stanford.nlp.ling.CoreLabel; import edu.stanford.nlp.ling.HasWord; import edu.stanford.nlp.ling.TaggedWord; import edu.stanford.nlp.process.Morphology; import edu.stanford.nlp.trees.Tree; import edu.stanford.nlp.util.Generics; import java.util.List; import java.util.function.Function; | import edu.stanford.nlp.ling.*; import edu.stanford.nlp.process.*; import edu.stanford.nlp.trees.*; import edu.stanford.nlp.util.*; import java.util.*; import java.util.function.*; | [
"edu.stanford.nlp",
"java.util"
] | edu.stanford.nlp; java.util; | 676,631 |
public void setOnItemSelectedListener(AdapterView.OnItemSelectedListener selectedListener) {
mOnItemSelectedListener = selectedListener;
}
| void function(AdapterView.OnItemSelectedListener selectedListener) { mOnItemSelectedListener = selectedListener; } | /**
* Sets a listener to receive events when a list item is selected.
*
* @param selectedListener Listener to register.
* @see ListView#setOnItemSelectedListener(AdapterView.OnItemSelectedListener)
*/ | Sets a listener to receive events when a list item is selected | setOnItemSelectedListener | {
"repo_name": "LSPOoO/com.lspooo.example",
"path": "plugin_common/src/main/java/com/lspooo/plugin/common/view/CCPListPopupWindow.java",
"license": "mit",
"size": 44273
} | [
"android.widget.AdapterView"
] | import android.widget.AdapterView; | import android.widget.*; | [
"android.widget"
] | android.widget; | 1,201,827 |
private static String mapIPConditionTypeFromModelToDTO(String ipConditionTypeInModel)
throws UnsupportedThrottleConditionTypeException {
switch (ipConditionTypeInModel) {
case PolicyConstants.IP_RANGE_TYPE:
return PolicyConstants.IP_RANGE_TYPE;
case PolicyConstants.IP... | static String function(String ipConditionTypeInModel) throws UnsupportedThrottleConditionTypeException { switch (ipConditionTypeInModel) { case PolicyConstants.IP_RANGE_TYPE: return PolicyConstants.IP_RANGE_TYPE; case PolicyConstants.IP_SPECIFIC_TYPE: return PolicyConstants.IP_SPECIFIC_TYPE; default: throw new Unsuppor... | /**
* Map IP Condition model type into DTO's type
*
* @param ipConditionTypeInModel IP Condition model type
* @return Mapped IP Condition DTO type
* @throws UnsupportedThrottleConditionTypeException if the IP condition type is unsupported
*/ | Map IP Condition model type into DTO's type | mapIPConditionTypeFromModelToDTO | {
"repo_name": "sambaheerathan/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.admin/src/main/java/org/wso2/carbon/apimgt/rest/api/admin/mappings/CommonThrottleMappingUtil.java",
"license": "apache-2.0",
"size": 30435
} | [
"org.wso2.carbon.apimgt.core.models.policy.PolicyConstants",
"org.wso2.carbon.apimgt.rest.api.admin.exceptions.UnsupportedThrottleConditionTypeException"
] | import org.wso2.carbon.apimgt.core.models.policy.PolicyConstants; import org.wso2.carbon.apimgt.rest.api.admin.exceptions.UnsupportedThrottleConditionTypeException; | import org.wso2.carbon.apimgt.core.models.policy.*; import org.wso2.carbon.apimgt.rest.api.admin.exceptions.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,182,684 |
private void makeTunnel(TunnelRequest tunnelRequest) throws IOException {
RawHeaders requestHeaders = tunnelRequest.getRequestHeaders();
while (true) {
out.write(requestHeaders.toBytes());
RawHeaders responseHeaders = RawHeaders.fromBytes(in);
switch (responseHeaders.getResponseCode()) {
... | void function(TunnelRequest tunnelRequest) throws IOException { RawHeaders requestHeaders = tunnelRequest.getRequestHeaders(); while (true) { out.write(requestHeaders.toBytes()); RawHeaders responseHeaders = RawHeaders.fromBytes(in); switch (responseHeaders.getResponseCode()) { case HTTP_OK: return; case HTTP_PROXY_AUT... | /**
* To make an HTTPS connection over an HTTP proxy, send an unencrypted
* CONNECT request to create the proxy connection. This may need to be
* retried if the proxy requires authorization.
*/ | To make an HTTPS connection over an HTTP proxy, send an unencrypted CONNECT request to create the proxy connection. This may need to be retried if the proxy requires authorization | makeTunnel | {
"repo_name": "frangucc/gamify",
"path": "www/sandbox/pals/platforms/android/CordovaLib/src/com/squareup/okhttp/Connection.java",
"license": "mit",
"size": 11924
} | [
"com.squareup.okhttp.internal.http.HttpAuthenticator",
"com.squareup.okhttp.internal.http.RawHeaders",
"java.io.IOException"
] | import com.squareup.okhttp.internal.http.HttpAuthenticator; import com.squareup.okhttp.internal.http.RawHeaders; import java.io.IOException; | import com.squareup.okhttp.internal.http.*; import java.io.*; | [
"com.squareup.okhttp",
"java.io"
] | com.squareup.okhttp; java.io; | 1,389,644 |
public int quantityDropped(Random random)
{
return 0;
}
| int function(Random random) { return 0; } | /**
* Returns the quantity of items to drop on block destruction.
*/ | Returns the quantity of items to drop on block destruction | quantityDropped | {
"repo_name": "lucemans/ShapeClient-SRC",
"path": "net/minecraft/block/BlockCommandBlock.java",
"license": "mpl-2.0",
"size": 13103
} | [
"java.util.Random"
] | import java.util.Random; | import java.util.*; | [
"java.util"
] | java.util; | 2,518,978 |
public static String buildQueryString(ArrayList<ColumnDef> cdList,
String tableName, String whereClause) {
StringBuilder result = new StringBuilder();
boolean firstRow = true;
boolean orderByFirst = true;
StringBuilder selectCols = new StringBuilder();
StringBuilder orderByClause = new StringBuilder();
... | static String function(ArrayList<ColumnDef> cdList, String tableName, String whereClause) { StringBuilder result = new StringBuilder(); boolean firstRow = true; boolean orderByFirst = true; StringBuilder selectCols = new StringBuilder(); StringBuilder orderByClause = new StringBuilder(); for (ColumnDef cd : cdList) { i... | /**
* Builds a query for use in a prepared statement
*
* @param groupBy
* - Fields to order by
* @param listAggCols
* - Fields to be aggregated
* @param tableName
* - Table to query...note: multiple tables not supported
* @param whereClause
* - where clau... | Builds a query for use in a prepared statement | buildQueryString | {
"repo_name": "papicella/snappy-store",
"path": "tests/sql/src/main/java/sql/poc/useCase2/oldListAgg/ListAggProcedure.java",
"license": "apache-2.0",
"size": 10113
} | [
"java.util.ArrayList",
"java.util.logging.Level"
] | import java.util.ArrayList; import java.util.logging.Level; | import java.util.*; import java.util.logging.*; | [
"java.util"
] | java.util; | 2,319,735 |
public static NabuccoPropertyDescriptor getPropertyDescriptor(String propertyName) {
return PropertyCache.getInstance().retrieve(SkillMsg.class).getProperty(propertyName);
}
| static NabuccoPropertyDescriptor function(String propertyName) { return PropertyCache.getInstance().retrieve(SkillMsg.class).getProperty(propertyName); } | /**
* Getter for the PropertyDescriptor.
*
* @param propertyName the String.
* @return the NabuccoPropertyDescriptor.
*/ | Getter for the PropertyDescriptor | getPropertyDescriptor | {
"repo_name": "NABUCCO/org.nabucco.business.provision",
"path": "org.nabucco.business.provision.facade.message/src/main/gen/org/nabucco/business/provision/facade/message/SkillMsg.java",
"license": "epl-1.0",
"size": 5396
} | [
"org.nabucco.framework.base.facade.datatype.property.NabuccoPropertyDescriptor",
"org.nabucco.framework.base.facade.datatype.property.PropertyCache"
] | import org.nabucco.framework.base.facade.datatype.property.NabuccoPropertyDescriptor; import org.nabucco.framework.base.facade.datatype.property.PropertyCache; | import org.nabucco.framework.base.facade.datatype.property.*; | [
"org.nabucco.framework"
] | org.nabucco.framework; | 1,297,106 |
protected void logError(IOFSwitch sw, OFError error) {
int etint = 0xffff & error.getErrorType();
if (etint < 0 || etint >= OFErrorType.values().length) {
log.error("Unknown error code {} from sw {}", etint, sw);
}
OFErrorType et = OFErrorType.values()[etint];
swi... | void function(IOFSwitch sw, OFError error) { int etint = 0xffff & error.getErrorType(); if (etint < 0 etint >= OFErrorType.values().length) { log.error(STR, etint, sw); } OFErrorType et = OFErrorType.values()[etint]; switch (et) { case OFPET_HELLO_FAILED: OFHelloFailedCode hfc = OFHelloFailedCode.values()[0xffff & erro... | /**
* Log an OpenFlow error message from a switch
* @param sw The switch that sent the error
* @param error The error message
*/ | Log an OpenFlow error message from a switch | logError | {
"repo_name": "achanda/cachecontroller",
"path": "src/main/java/net/floodlightcontroller/core/internal/Controller.java",
"license": "apache-2.0",
"size": 92483
} | [
"net.floodlightcontroller.core.IOFSwitch",
"org.openflow.protocol.OFError"
] | import net.floodlightcontroller.core.IOFSwitch; import org.openflow.protocol.OFError; | import net.floodlightcontroller.core.*; import org.openflow.protocol.*; | [
"net.floodlightcontroller.core",
"org.openflow.protocol"
] | net.floodlightcontroller.core; org.openflow.protocol; | 428,566 |
public static <R> void scheduleWithFixedDelay(CoreAction<R> action, long initialDelay, long delay, TimeUnit timeUnit)
{
component.core().scheduleWithFixedDelay(action, initialDelay, delay, timeUnit);
}
| static <R> void function(CoreAction<R> action, long initialDelay, long delay, TimeUnit timeUnit) { component.core().scheduleWithFixedDelay(action, initialDelay, delay, timeUnit); } | /**
* Schedule a periodic action that runs for the first time after the given initial delay,
* and subsequently with the given delay between the termination of one execution and the commencement of the next.
* No result will be returned.
* @param action the action to execute.
* @param initialDelay the delay ... | Schedule a periodic action that runs for the first time after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next. No result will be returned | scheduleWithFixedDelay | {
"repo_name": "mrgroen/qzIndustryPrinting",
"path": "test/javasource/com/mendix/core/Core.java",
"license": "apache-2.0",
"size": 71337
} | [
"com.mendix.core.actionmanagement.CoreAction",
"java.util.concurrent.TimeUnit"
] | import com.mendix.core.actionmanagement.CoreAction; import java.util.concurrent.TimeUnit; | import com.mendix.core.actionmanagement.*; import java.util.concurrent.*; | [
"com.mendix.core",
"java.util"
] | com.mendix.core; java.util; | 1,871,600 |
protected void addExpirationTimePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_DestinationData_expirationTime_feature"),
getString("_UI_Pro... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), RfcPackage.Literals.DESTINATION_DATA__EXPIRATION_TIME, true, false, false, ItemPropertyDescriptor... | /**
* This adds a property descriptor for the Expiration Time feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds a property descriptor for the Expiration Time feature. | addExpirationTimePropertyDescriptor | {
"repo_name": "janstey/fuse-1",
"path": "components/camel-sap/org.fusesource.camel.component.sap.model.edit/src/org/fusesource/camel/component/sap/model/rfc/provider/DestinationDataItemProvider.java",
"license": "apache-2.0",
"size": 44078
} | [
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor",
"org.fusesource.camel.component.sap.model.rfc.RfcPackage"
] | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.fusesource.camel.component.sap.model.rfc.RfcPackage; | import org.eclipse.emf.edit.provider.*; import org.fusesource.camel.component.sap.model.rfc.*; | [
"org.eclipse.emf",
"org.fusesource.camel"
] | org.eclipse.emf; org.fusesource.camel; | 2,764,035 |
public static boolean isFileTypeSupported(AudioFileFormat.Type fileType) {
List providers = getAudioFileWriters();
for(int i=0; i < providers.size(); i++) {
AudioFileWriter writer = (AudioFileWriter) providers.get(i);
if (writer.isFileTypeSupported(fileType)) {
... | static boolean function(AudioFileFormat.Type fileType) { List providers = getAudioFileWriters(); for(int i=0; i < providers.size(); i++) { AudioFileWriter writer = (AudioFileWriter) providers.get(i); if (writer.isFileTypeSupported(fileType)) { return true; } } return false; } | /**
* Indicates whether file writing support for the specified file type is provided
* by the system.
* @param fileType the file type for which write capabilities are queried
* @return <code>true</code> if the file type is supported,
* otherwise <code>false</code>
*/ | Indicates whether file writing support for the specified file type is provided by the system | isFileTypeSupported | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk2/jdk/src/share/classes/javax/sound/sampled/AudioSystem.java",
"license": "mit",
"size": 64713
} | [
"java.util.List",
"javax.sound.sampled.spi.AudioFileWriter"
] | import java.util.List; import javax.sound.sampled.spi.AudioFileWriter; | import java.util.*; import javax.sound.sampled.spi.*; | [
"java.util",
"javax.sound"
] | java.util; javax.sound; | 2,705,395 |
public static void setPropertyDASAnalyticsConfigured(String processName, String processVersion)
throws ProcessCenterException {
String processContent = null;
ProcessStore ps = new ProcessStore();
try {
RegistryService registryService = PCAnalyticsServerHolder.getInsta... | static void function(String processName, String processVersion) throws ProcessCenterException { String processContent = null; ProcessStore ps = new ProcessStore(); try { RegistryService registryService = PCAnalyticsServerHolder.getInstance().getRegistryService(); if (registryService != null) { UserRegistry reg = regist... | /**
* Set the Property isDasConfigedForAnalytics in the process related .rxt to flag that analytics configurations
* (with DAS) is made for the respective process
*
* @param processName Name of the process
* @param processVersion Version of the process
* @throws ProcessCenterException T... | Set the Property isDasConfigedForAnalytics in the process related .rxt to flag that analytics configurations (with DAS) is made for the respective process | setPropertyDASAnalyticsConfigured | {
"repo_name": "wso2/product-pc",
"path": "modules/components/analytics/core/kpi/org.wso2.carbon.pc.analytics.core.kpi/src/main/java/org/wso2/carbon/pc/analytics/core/kpi/utils/DASConfigurationUtils.java",
"license": "apache-2.0",
"size": 8516
} | [
"java.io.File",
"org.w3c.dom.Document",
"org.w3c.dom.Element",
"org.wso2.carbon.pc.analytics.core.kpi.AnalyticsConfigConstants",
"org.wso2.carbon.pc.analytics.core.kpi.internal.PCAnalyticsServerHolder",
"org.wso2.carbon.pc.core.ProcessCenterConstants",
"org.wso2.carbon.pc.core.ProcessCenterException",
... | import java.io.File; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.wso2.carbon.pc.analytics.core.kpi.AnalyticsConfigConstants; import org.wso2.carbon.pc.analytics.core.kpi.internal.PCAnalyticsServerHolder; import org.wso2.carbon.pc.core.ProcessCenterConstants; import org.wso2.carbon.pc.core.Proces... | import java.io.*; import org.w3c.dom.*; import org.wso2.carbon.pc.analytics.core.kpi.*; import org.wso2.carbon.pc.analytics.core.kpi.internal.*; import org.wso2.carbon.pc.core.*; import org.wso2.carbon.pc.core.util.*; import org.wso2.carbon.registry.core.service.*; import org.wso2.carbon.registry.core.session.*; | [
"java.io",
"org.w3c.dom",
"org.wso2.carbon"
] | java.io; org.w3c.dom; org.wso2.carbon; | 2,121,660 |
public Object clone() throws CloneNotSupportedException {
Title duplicate = (Title) super.clone();
duplicate.listenerList = new EventListenerList();
// RectangleInsets is immutable => same reference in clone OK
return duplicate;
}
| Object function() throws CloneNotSupportedException { Title duplicate = (Title) super.clone(); duplicate.listenerList = new EventListenerList(); return duplicate; } | /**
* Returns a clone of the title.
* <P>
* One situation when this is useful is when editing the title properties -
* you can edit a clone, and then it is easier to cancel the changes if
* necessary.
*
* @return A clone of the title.
*
* @throws CloneNotSupportedEx... | Returns a clone of the title. One situation when this is useful is when editing the title properties - you can edit a clone, and then it is easier to cancel the changes if necessary | clone | {
"repo_name": "nologic/nabs",
"path": "client/trunk/shared/libraries/jfreechart-1.0.5/source/org/jfree/chart/title/Title.java",
"license": "gpl-2.0",
"size": 15663
} | [
"javax.swing.event.EventListenerList"
] | import javax.swing.event.EventListenerList; | import javax.swing.event.*; | [
"javax.swing"
] | javax.swing; | 1,048,429 |
private void doQueryFirstScoring(Collector collector, DocIdSetIterator[] disis, Collector[] sidewaysCollectors,
Bits[] bits, Collector[] bitsSidewaysCollectors) throws IOException {
//if (DEBUG) {
// System.out.println(" doQueryFirstScoring");
//}
int docID = baseS... | void function(Collector collector, DocIdSetIterator[] disis, Collector[] sidewaysCollectors, Bits[] bits, Collector[] bitsSidewaysCollectors) throws IOException { int docID = baseScorer.docID(); nextDoc: while (docID != DocsEnum.NO_MORE_DOCS) { Collector failedCollector = null; for (int i=0;i<disis.length;i++) { DocIdS... | /** Used when base query is highly constraining vs the
* drilldowns, or when the docs must be scored at once
* (i.e., like BooleanScorer2, not BooleanScorer). In
* this case we just .next() on base and .advance() on
* the dim filters. */ | Used when base query is highly constraining vs the drilldowns, or when the docs must be scored at once (i.e., like BooleanScorer2, not BooleanScorer). In this case we just .next() on base and .advance() on | doQueryFirstScoring | {
"repo_name": "smartan/lucene",
"path": "src/main/java/org/apache/lucene/facet/DrillSidewaysScorer.java",
"license": "apache-2.0",
"size": 22723
} | [
"java.io.IOException",
"org.apache.lucene.index.DocsEnum",
"org.apache.lucene.search.Collector",
"org.apache.lucene.search.DocIdSetIterator",
"org.apache.lucene.util.Bits"
] | import java.io.IOException; import org.apache.lucene.index.DocsEnum; import org.apache.lucene.search.Collector; import org.apache.lucene.search.DocIdSetIterator; import org.apache.lucene.util.Bits; | import java.io.*; import org.apache.lucene.index.*; import org.apache.lucene.search.*; import org.apache.lucene.util.*; | [
"java.io",
"org.apache.lucene"
] | java.io; org.apache.lucene; | 2,077,380 |
@Message(id = 52, value = "Failed to install component %s")
DeploymentUnitProcessingException failedToInstallComponent(@Cause Throwable cause, String name); | @Message(id = 52, value = STR) DeploymentUnitProcessingException failedToInstallComponent(@Cause Throwable cause, String name); | /**
* Creates an exception indicating a failure to install the component.
*
* @param cause the cause of the error.
* @param name the name of the component.
*
* @return a {@link DeploymentUnitProcessingException} for the error.
*/ | Creates an exception indicating a failure to install the component | failedToInstallComponent | {
"repo_name": "tomazzupan/wildfly",
"path": "ee/src/main/java/org/jboss/as/ee/logging/EeLogger.java",
"license": "lgpl-2.1",
"size": 48634
} | [
"org.jboss.as.server.deployment.DeploymentUnitProcessingException",
"org.jboss.logging.annotations.Cause",
"org.jboss.logging.annotations.Message"
] | import org.jboss.as.server.deployment.DeploymentUnitProcessingException; import org.jboss.logging.annotations.Cause; import org.jboss.logging.annotations.Message; | import org.jboss.as.server.deployment.*; import org.jboss.logging.annotations.*; | [
"org.jboss.as",
"org.jboss.logging"
] | org.jboss.as; org.jboss.logging; | 638,278 |
@Generated
@Selector("setTierIdentifiers:")
public native void setTierIdentifiers(NSArray<String> value); | @Selector(STR) native void function(NSArray<String> value); | /**
* Identifies a subset of content from your catalog that subscriber can play.
* <p>
* Only provide values that are used in your availability feed's tier restrictions.
*/ | Identifies a subset of content from your catalog that subscriber can play. Only provide values that are used in your availability feed's tier restrictions | setTierIdentifiers | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/videosubscriberaccount/VSSubscription.java",
"license": "apache-2.0",
"size": 8341
} | [
"org.moe.natj.objc.ann.Selector"
] | import org.moe.natj.objc.ann.Selector; | import org.moe.natj.objc.ann.*; | [
"org.moe.natj"
] | org.moe.natj; | 2,476,192 |
public void testFindFirstElementWithParent() {
Assert.assertEquals(DriverTestPage.multiElementFirstTextWithParent.getValue(), "0 text field");
}
| void function() { Assert.assertEquals(DriverTestPage.multiElementFirstTextWithParent.getValue(), STR); } | /**
* Check that if no index is specified, first element is get
*/ | Check that if no index is specified, first element is get | testFindFirstElementWithParent | {
"repo_name": "bhecquet/seleniumRobot",
"path": "core/src/test/java/com/seleniumtests/it/driver/TestDriver.java",
"license": "apache-2.0",
"size": 28638
} | [
"com.seleniumtests.it.driver.support.pages.DriverTestPage",
"org.testng.Assert"
] | import com.seleniumtests.it.driver.support.pages.DriverTestPage; import org.testng.Assert; | import com.seleniumtests.it.driver.support.pages.*; import org.testng.*; | [
"com.seleniumtests.it",
"org.testng"
] | com.seleniumtests.it; org.testng; | 2,732,304 |
public NamingEnumeration list(Name name) throws NamingException
{
// Flat namespace; no federation; just call string version
return list(name.toString());
} | NamingEnumeration function(Name name) throws NamingException { return list(name.toString()); } | /**
* Enumerates the names bound in the named context, along with the class names of objects bound to them. The
* contents of any subcontexts are not included. If a binding is added to or removed from this context, its effect
* on an enumeration previously returned is undefined.
*
* @param nam... | Enumerates the names bound in the named context, along with the class names of objects bound to them. The contents of any subcontexts are not included. If a binding is added to or removed from this context, its effect on an enumeration previously returned is undefined | list | {
"repo_name": "rupertlssmith/lojix",
"path": "base/common/src/main/com/thesett/common/jndi/SimpleContext.java",
"license": "apache-2.0",
"size": 29986
} | [
"javax.naming.Name",
"javax.naming.NamingEnumeration",
"javax.naming.NamingException"
] | import javax.naming.Name; import javax.naming.NamingEnumeration; import javax.naming.NamingException; | import javax.naming.*; | [
"javax.naming"
] | javax.naming; | 680,400 |
static ParseTreeNode parseModuleDefnIntoParseTreeNode(String moduleDefnStr, Collection<SourceEmbellishment> embellishments) {
CALCompiler compiler = new CALCompiler();
// Use a compiler-specific logger, so that fatal errors abort compilation.
CompilerMessageLogger comp... | static ParseTreeNode parseModuleDefnIntoParseTreeNode(String moduleDefnStr, Collection<SourceEmbellishment> embellishments) { CALCompiler compiler = new CALCompiler(); CompilerMessageLogger compileLogger = new MessageLogger(true); compiler.setCompilerMessageLogger(compileLogger); CALParser parser = freshParser(compiler... | /**
* Helper method to convert a string containing a CAL module definition
* into the corresponding parse tree. Exceptions thrown by the
* compiler are caught by this method, and it returns null when the
* parsing fails.
*
* @param moduleDefnStr
* the string contain... | Helper method to convert a string containing a CAL module definition into the corresponding parse tree. Exceptions thrown by the compiler are caught by this method, and it returns null when the parsing fails | parseModuleDefnIntoParseTreeNode | {
"repo_name": "levans/Open-Quark",
"path": "src/CAL_Platform/test/org/openquark/cal/compiler/CompilerTestUtilities.java",
"license": "bsd-3-clause",
"size": 19477
} | [
"java.io.StringReader",
"java.util.Collection",
"org.openquark.cal.compiler.CompilerMessage"
] | import java.io.StringReader; import java.util.Collection; import org.openquark.cal.compiler.CompilerMessage; | import java.io.*; import java.util.*; import org.openquark.cal.compiler.*; | [
"java.io",
"java.util",
"org.openquark.cal"
] | java.io; java.util; org.openquark.cal; | 1,586,610 |
private void initAtpTab(int m_M_Warehouse_ID)
{
// Header
Vector<String> columnNames = new Vector<String>();
columnNames.add(Msg.translate(Env.getCtx(), "Date"));
columnNames.add(Msg.translate(Env.getCtx(), "QtyOnHand"));
columnNames.add(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
columnNames.add(Ms... | void function(int m_M_Warehouse_ID) { Vector<String> columnNames = new Vector<String>(); columnNames.add(Msg.translate(Env.getCtx(), "Date")); columnNames.add(Msg.translate(Env.getCtx(), STR)); columnNames.add(Msg.translate(Env.getCtx(), STR)); columnNames.add(Msg.translate(Env.getCtx(), STR)); columnNames.add(Msg.tran... | /**
* Query ATP
*/ | Query ATP | initAtpTab | {
"repo_name": "klst-com/metasfresh",
"path": "de.metas.adempiere.adempiere/client/src/main/java-legacy/org/compiere/apps/search/InfoProduct.java",
"license": "gpl-2.0",
"size": 47785
} | [
"de.metas.i18n.Msg",
"de.metas.logging.LogManager",
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"java.util.Vector",
"javax.swing.table.DefaultTableModel",
"org.compiere.minigrid.MiniTable",
"org.compiere.model.MDocType",
"org.compiere.util.DB",
"org.compiere.util... | import de.metas.i18n.Msg; import de.metas.logging.LogManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.Vector; import javax.swing.table.DefaultTableModel; import org.compiere.minigrid.MiniTable; import org.compiere.model.MDocType; import org.compiere.u... | import de.metas.i18n.*; import de.metas.logging.*; import java.sql.*; import java.util.*; import javax.swing.table.*; import org.compiere.minigrid.*; import org.compiere.model.*; import org.compiere.util.*; | [
"de.metas.i18n",
"de.metas.logging",
"java.sql",
"java.util",
"javax.swing",
"org.compiere.minigrid",
"org.compiere.model",
"org.compiere.util"
] | de.metas.i18n; de.metas.logging; java.sql; java.util; javax.swing; org.compiere.minigrid; org.compiere.model; org.compiere.util; | 2,083,473 |
public void getApplicationList(org.wso2.emm.agent.beans.Operation operation) throws AndroidAgentException {
ArrayList<DeviceAppInfo> apps = new ArrayList<>(appList.getInstalledApps().values());
JSONArray result = new JSONArray();
RuntimeInfo runtimeInfo = new RuntimeInfo(context);
Ma... | void function(org.wso2.emm.agent.beans.Operation operation) throws AndroidAgentException { ArrayList<DeviceAppInfo> apps = new ArrayList<>(appList.getInstalledApps().values()); JSONArray result = new JSONArray(); RuntimeInfo runtimeInfo = new RuntimeInfo(context); Map<String, Application> applications = runtimeInfo.get... | /**
* Retrieve device application information.
*
* @param operation - Operation object.
*/ | Retrieve device application information | getApplicationList | {
"repo_name": "dilee/product-mdm",
"path": "modules/mobile-agents/android/client/client/src/main/java/org/wso2/emm/agent/services/operation/OperationManager.java",
"license": "apache-2.0",
"size": 47065
} | [
"android.net.Uri",
"android.util.Log",
"java.util.ArrayList",
"java.util.Map",
"org.json.JSONArray",
"org.json.JSONException",
"org.json.JSONObject",
"org.wso2.emm.agent.AndroidAgentException",
"org.wso2.emm.agent.api.RuntimeInfo",
"org.wso2.emm.agent.beans.Application",
"org.wso2.emm.agent.bean... | import android.net.Uri; import android.util.Log; import java.util.ArrayList; import java.util.Map; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject; import org.wso2.emm.agent.AndroidAgentException; import org.wso2.emm.agent.api.RuntimeInfo; import org.wso2.emm.agent.beans.Application... | import android.net.*; import android.util.*; import java.util.*; import org.json.*; import org.wso2.emm.agent.*; import org.wso2.emm.agent.api.*; import org.wso2.emm.agent.beans.*; import org.wso2.emm.agent.utils.*; | [
"android.net",
"android.util",
"java.util",
"org.json",
"org.wso2.emm"
] | android.net; android.util; java.util; org.json; org.wso2.emm; | 1,399,051 |
protected URL loadLicence()
{
try
{
return licenceLoader.asURL();
}
catch (ResourceException e)
{
logger.warning(e.getMessage());
return null;
}
} | URL function() { try { return licenceLoader.asURL(); } catch (ResourceException e) { logger.warning(e.getMessage()); return null; } } | /**
* Loads the license document URL.
*
* @return The license text URL.
*/ | Loads the license document URL | loadLicence | {
"repo_name": "Murdock01/izpack",
"path": "izpack-panel/src/main/java/com/izforge/izpack/panels/licence/AbstractLicenceConsolePanel.java",
"license": "apache-2.0",
"size": 4127
} | [
"com.izforge.izpack.api.exception.ResourceException"
] | import com.izforge.izpack.api.exception.ResourceException; | import com.izforge.izpack.api.exception.*; | [
"com.izforge.izpack"
] | com.izforge.izpack; | 1,301,208 |
@EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true)
public void onCleanstoneGen(BlockFromToEvent e) {
// Only do this in ASkyBlock world
if (!e.getBlock().getWorld().getName().equalsIgnoreCase(Settings.worldName)) {
return;
} | @EventHandler(priority = EventPriority.LOWEST, ignoreCancelled = true) void function(BlockFromToEvent e) { if (!e.getBlock().getWorld().getName().equalsIgnoreCase(Settings.worldName)) { return; } | /**
* Removes stone generated by lava pouring onto water
*
* @param e
*/ | Removes stone generated by lava pouring onto water | onCleanstoneGen | {
"repo_name": "jaxzin/askyblock",
"path": "src/com/wasteofplastic/askyblock/listeners/LavaCheck.java",
"license": "gpl-2.0",
"size": 7672
} | [
"com.wasteofplastic.askyblock.Settings",
"org.bukkit.event.EventHandler",
"org.bukkit.event.EventPriority",
"org.bukkit.event.block.BlockFromToEvent"
] | import com.wasteofplastic.askyblock.Settings; import org.bukkit.event.EventHandler; import org.bukkit.event.EventPriority; import org.bukkit.event.block.BlockFromToEvent; | import com.wasteofplastic.askyblock.*; import org.bukkit.event.*; import org.bukkit.event.block.*; | [
"com.wasteofplastic.askyblock",
"org.bukkit.event"
] | com.wasteofplastic.askyblock; org.bukkit.event; | 2,790,420 |
void init(@Nonnull TableDataManagerConfig tableDataManagerConfig, @Nonnull String instanceId,
@Nonnull ZkHelixPropertyStore<ZNRecord> propertyStore, @Nonnull ServerMetrics serverMetrics); | void init(@Nonnull TableDataManagerConfig tableDataManagerConfig, @Nonnull String instanceId, @Nonnull ZkHelixPropertyStore<ZNRecord> propertyStore, @Nonnull ServerMetrics serverMetrics); | /**
* Initializes the table data manager. Should be called only once and before calling any other method.
*/ | Initializes the table data manager. Should be called only once and before calling any other method | init | {
"repo_name": "fx19880617/pinot-1",
"path": "pinot-core/src/main/java/com/linkedin/pinot/core/data/manager/TableDataManager.java",
"license": "apache-2.0",
"size": 4099
} | [
"com.linkedin.pinot.common.metrics.ServerMetrics",
"com.linkedin.pinot.core.data.manager.config.TableDataManagerConfig",
"javax.annotation.Nonnull",
"org.apache.helix.ZNRecord",
"org.apache.helix.store.zk.ZkHelixPropertyStore"
] | import com.linkedin.pinot.common.metrics.ServerMetrics; import com.linkedin.pinot.core.data.manager.config.TableDataManagerConfig; import javax.annotation.Nonnull; import org.apache.helix.ZNRecord; import org.apache.helix.store.zk.ZkHelixPropertyStore; | import com.linkedin.pinot.common.metrics.*; import com.linkedin.pinot.core.data.manager.config.*; import javax.annotation.*; import org.apache.helix.*; import org.apache.helix.store.zk.*; | [
"com.linkedin.pinot",
"javax.annotation",
"org.apache.helix"
] | com.linkedin.pinot; javax.annotation; org.apache.helix; | 1,664,583 |
public static String nameForDefaultVendor(String charsetName) {
return nameForVendor(charsetName, getDefaultVendor());
}
/**
* Returns the vendor-specific character set corresponding to the
* given original character set name and vendor. If there is no
* vendor-specific character set... | static String function(String charsetName) { return nameForVendor(charsetName, getDefaultVendor()); } /** * Returns the vendor-specific character set corresponding to the * given original character set name and vendor. If there is no * vendor-specific character set for the given name/vendor pair, * this returns the cha... | /**
* Returns the name of the vendor-specific character set
* corresponding to the given original character set name and the
* default vendor (that is, the targeted vendor of the device this
* code is running on). This method merely calls through to
* {@link #nameForVendor(String,String)}, pass... | Returns the name of the vendor-specific character set corresponding to the given original character set name and the default vendor (that is, the targeted vendor of the device this code is running on). This method merely calls through to <code>#nameForVendor(String,String)</code>, passing the default vendor as the seco... | nameForDefaultVendor | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/android/util/CharsetUtils.java",
"license": "apache-2.0",
"size": 7520
} | [
"java.nio.charset.Charset",
"java.nio.charset.IllegalCharsetNameException",
"java.nio.charset.UnsupportedCharsetException"
] | import java.nio.charset.Charset; import java.nio.charset.IllegalCharsetNameException; import java.nio.charset.UnsupportedCharsetException; | import java.nio.charset.*; | [
"java.nio"
] | java.nio; | 1,394,061 |
@Test
public void testCalculationConcurrency() throws Exception {
for (HashFunction hf : Arrays.asList(HashFunction.MD5, HashFunction.SHA1)) {
assertDigestCalculationConcurrency(true, true, 4096, 4096, hf);
assertDigestCalculationConcurrency(true, true, 4097, 4097, hf);
assertDigestCalculation... | void function() throws Exception { for (HashFunction hf : Arrays.asList(HashFunction.MD5, HashFunction.SHA1)) { assertDigestCalculationConcurrency(true, true, 4096, 4096, hf); assertDigestCalculationConcurrency(true, true, 4097, 4097, hf); assertDigestCalculationConcurrency(true, false, 4096, 4096, hf); assertDigestCal... | /**
* Ensures that digest calculation is synchronized for files
* greater than 4096 bytes if the digest is not available cheaply,
* so machines with rotating drives don't become unusable.
*/ | Ensures that digest calculation is synchronized for files greater than 4096 bytes if the digest is not available cheaply, so machines with rotating drives don't become unusable | testCalculationConcurrency | {
"repo_name": "variac/bazel",
"path": "src/test/java/com/google/devtools/build/lib/actions/DigestUtilsTest.java",
"license": "apache-2.0",
"size": 10508
} | [
"com.google.devtools.build.lib.vfs.FileSystem",
"java.util.Arrays"
] | import com.google.devtools.build.lib.vfs.FileSystem; import java.util.Arrays; | import com.google.devtools.build.lib.vfs.*; import java.util.*; | [
"com.google.devtools",
"java.util"
] | com.google.devtools; java.util; | 1,414,741 |
private String getRow() throws IOException
{
StringBuffer row = new StringBuffer();
char c;
while (true)
{
try
{
c = getChar();
// searches for the first character of the record delimiter
if (c == recordDelimiter.charAt(0) || c == Character.MIN_VALUE) {
int i;
char[] temp = n... | String function() throws IOException { StringBuffer row = new StringBuffer(); char c; while (true) { try { c = getChar(); if (c == recordDelimiter.charAt(0) c == Character.MIN_VALUE) { int i; char[] temp = new char[recordDelimiter.length()]; temp[0] = c; boolean isDelimiter = true; for (i = 1; i < recordDelimiter.lengt... | /**
* Reads a row from the stream. A row is a sequence of characters separated by the record delimiter.
*/ | Reads a row from the stream. A row is a sequence of characters separated by the record delimiter | getRow | {
"repo_name": "juniormesquitadandao/report4all",
"path": "lib/src/net/sf/jasperreports/engine/data/JRCsvDataSource.java",
"license": "mit",
"size": 20062
} | [
"java.io.IOException",
"net.sf.jasperreports.engine.JRException"
] | import java.io.IOException; import net.sf.jasperreports.engine.JRException; | import java.io.*; import net.sf.jasperreports.engine.*; | [
"java.io",
"net.sf.jasperreports"
] | java.io; net.sf.jasperreports; | 2,129,037 |
static void printList(final PrintWriter pw, final List<?> l) {
for (int i = 0; i < l.size(); ++i) {
Object o = l.get(i);
if (o instanceof List) {
printList(pw, (List<?>) o);
} else {
pw.print(o.toString());
}
}
} | static void printList(final PrintWriter pw, final List<?> l) { for (int i = 0; i < l.size(); ++i) { Object o = l.get(i); if (o instanceof List) { printList(pw, (List<?>) o); } else { pw.print(o.toString()); } } } | /**
* Prints the given string tree.
*
* @param pw
* the writer to be used to print the tree.
* @param l
* a string tree, i.e., a string list that can contain other
* string lists, and so on recursively.
*/ | Prints the given string tree | printList | {
"repo_name": "trivium-io/trivium-core",
"path": "src/io/trivium/dep/org/objectweb/asm/util/Printer.java",
"license": "apache-2.0",
"size": 20837
} | [
"java.io.PrintWriter",
"java.util.List"
] | import java.io.PrintWriter; import java.util.List; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 970,847 |
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
} | String function() { return ToStringBuilder.reflectionToString(this); } | /**
* Generates a String representation of the contents of this type.
* This is an extension method, produced by the 'ts' xjc plugin
*
*/ | Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin | toString | {
"repo_name": "arnost-starosta/midpoint",
"path": "infra/prism/src/main/java/com/evolveum/prism/xml/ns/_public/query_3/PropertyComplexValueFilterType.java",
"license": "apache-2.0",
"size": 25855
} | [
"org.apache.commons.lang.builder.ToStringBuilder"
] | import org.apache.commons.lang.builder.ToStringBuilder; | import org.apache.commons.lang.builder.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,064,248 |
public static Image getInstance(PdfTemplate template)
throws BadElementException {
return new ImgTemplate(template);
} | static Image function(PdfTemplate template) throws BadElementException { return new ImgTemplate(template); } | /**
* gets an instance of an Image
*
* @param template
* a PdfTemplate that has to be wrapped in an Image object
* @return an Image object
* @throws BadElementException
*/ | gets an instance of an Image | getInstance | {
"repo_name": "MesquiteProject/MesquiteArchive",
"path": "trunk/Mesquite Project/LibrarySource/com/lowagie/text/Image.java",
"license": "lgpl-3.0",
"size": 46598
} | [
"com.lowagie.text.pdf.PdfTemplate"
] | import com.lowagie.text.pdf.PdfTemplate; | import com.lowagie.text.pdf.*; | [
"com.lowagie.text"
] | com.lowagie.text; | 374,310 |
@DELETE
public Response deleteFlows(InputStream stream) {
ListMultimap<DeviceId, Long> deviceMap = ArrayListMultimap.create();
List<FlowEntry> rulesToRemove = new ArrayList<>();
try {
ObjectNode jsonTree = (ObjectNode) mapper().readTree(stream);
JsonNode jsonFlo... | Response function(InputStream stream) { ListMultimap<DeviceId, Long> deviceMap = ArrayListMultimap.create(); List<FlowEntry> rulesToRemove = new ArrayList<>(); try { ObjectNode jsonTree = (ObjectNode) mapper().readTree(stream); JsonNode jsonFlows = jsonTree.get("flows"); jsonFlows.forEach(node -> { DeviceId deviceId = ... | /**
* Removes a batch of flow rules.
*
* @param stream stream for posted JSON
* @return 204 NO CONTENT
*/ | Removes a batch of flow rules | deleteFlows | {
"repo_name": "donNewtonAlpha/onos",
"path": "web/api/src/main/java/org/onosproject/rest/resources/FlowsWebResource.java",
"license": "apache-2.0",
"size": 13075
} | [
"com.fasterxml.jackson.databind.JsonNode",
"com.fasterxml.jackson.databind.node.ObjectNode",
"com.google.common.collect.ArrayListMultimap",
"com.google.common.collect.ListMultimap",
"java.io.IOException",
"java.io.InputStream",
"java.util.ArrayList",
"java.util.List",
"java.util.stream.StreamSupport... | import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ListMultimap; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import java... | import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.node.*; import com.google.common.collect.*; import java.io.*; import java.util.*; import java.util.stream.*; import javax.ws.rs.core.*; import org.onlab.util.*; import org.onosproject.net.*; import org.onosproject.net.flow.*; | [
"com.fasterxml.jackson",
"com.google.common",
"java.io",
"java.util",
"javax.ws",
"org.onlab.util",
"org.onosproject.net"
] | com.fasterxml.jackson; com.google.common; java.io; java.util; javax.ws; org.onlab.util; org.onosproject.net; | 2,250,793 |
@Override // Binder call
public void reboot(boolean confirm, String reason, boolean wait) {
mContext.enforceCallingOrSelfPermission(android.Manifest.permission.REBOOT, null);
if (PowerManager.REBOOT_RECOVERY.equals(reason)) {
mContext.enforceCallingOrSelfPermissio... | @Override void function(boolean confirm, String reason, boolean wait) { mContext.enforceCallingOrSelfPermission(android.Manifest.permission.REBOOT, null); if (PowerManager.REBOOT_RECOVERY.equals(reason)) { mContext.enforceCallingOrSelfPermission(android.Manifest.permission.RECOVERY, null); } final long ident = Binder.c... | /**
* Reboots the device.
*
* @param confirm If true, shows a reboot confirmation dialog.
* @param reason The reason for the reboot, or null if none.
* @param wait If true, this call waits for the reboot to complete and does not return.
*/ | Reboots the device | reboot | {
"repo_name": "Ant-Droid/android_frameworks_base_OLD",
"path": "services/core/java/com/android/server/power/PowerManagerService.java",
"license": "apache-2.0",
"size": 150529
} | [
"android.os.Binder",
"android.os.PowerManager"
] | import android.os.Binder; import android.os.PowerManager; | import android.os.*; | [
"android.os"
] | android.os; | 1,191,818 |
public static TimeZoneGenericNames getInstance(ULocale locale) {
String key = locale.getBaseName();
return GENERIC_NAMES_CACHE.getInstance(key, locale);
}
/**
* Returns the display name of the time zone for the given name type
* at the given date, or null if the display name is no... | static TimeZoneGenericNames function(ULocale locale) { String key = locale.getBaseName(); return GENERIC_NAMES_CACHE.getInstance(key, locale); } /** * Returns the display name of the time zone for the given name type * at the given date, or null if the display name is not available. * * @param tz the time zone * @param... | /**
* The factory method of <code>TimeZoneGenericNames</code>. This static method
* returns a frozen instance of cached <code>TimeZoneGenericNames</code>.
* @param locale the locale
* @return A frozen <code>TimeZoneGenericNames</code>.
*/ | The factory method of <code>TimeZoneGenericNames</code>. This static method returns a frozen instance of cached <code>TimeZoneGenericNames</code> | getInstance | {
"repo_name": "lukhnos/j2objc",
"path": "jre_emul/android/platform/external/icu/android_icu4j/src/main/java/android/icu/impl/TimeZoneGenericNames.java",
"license": "apache-2.0",
"size": 37167
} | [
"android.icu.util.ULocale"
] | import android.icu.util.ULocale; | import android.icu.util.*; | [
"android.icu"
] | android.icu; | 712,427 |
protected static void checkTable(final Connection connection) throws SQLException {
tableLock.writeLock().lock();
try {
if (tableExists(connection, TABLE_NAME)) {
Integer version = getTableVersion(connection, TABLE_NAME);
if (version != null) {
if (version < TABLE_VERSION) {
upgradeTable(co... | static void function(final Connection connection) throws SQLException { tableLock.writeLock().lock(); try { if (tableExists(connection, TABLE_NAME)) { Integer version = getTableVersion(connection, TABLE_NAME); if (version != null) { if (version < TABLE_VERSION) { upgradeTable(connection, version); } else if (version > ... | /**
* Checks and creates or upgrades the table as needed.
*
* @param connection the {@link Connection} to use
*
* @throws SQLException
*/ | Checks and creates or upgrades the table as needed | checkTable | {
"repo_name": "taconaut/ums-mlx",
"path": "core/src/main/java/net/pms/database/TableCoverArtArchive.java",
"license": "gpl-2.0",
"size": 9312
} | [
"java.sql.Connection",
"java.sql.SQLException"
] | import java.sql.Connection; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 991,743 |
@Override
public void render(Context context, T value, SafeHtmlBuilder sb) {
displayActionList = column.getActions(value);
// Flag used to indicate the first item
boolean firstItem = true;
for (String action : displayActionList) {
if (!actionList.contains(act... | void function(Context context, T value, SafeHtmlBuilder sb) { displayActionList = column.getActions(value); boolean firstItem = true; for (String action : displayActionList) { if (!actionList.contains(action)) { actionList.add(action); } if (firstItem) { sb.append(template.firstAction(action)); firstItem = false; } els... | /**
* This will create a image with the url passed in by the constructor
*
* @author Alec Erasmus <alec.erasmus@a24group.com>
* @since 03 June 2013
*
* @param context -The context the cell is in
* @param value - The value to be added in the cell but not the image thats going to be dis... | This will create a image with the url passed in by the constructor | render | {
"repo_name": "A24Group/ssGWT-lib",
"path": "src/org/ssgwt/client/ui/datagrid/column/ActionColumn/SSActionCell.java",
"license": "apache-2.0",
"size": 8283
} | [
"com.google.gwt.safehtml.shared.SafeHtmlBuilder"
] | import com.google.gwt.safehtml.shared.SafeHtmlBuilder; | import com.google.gwt.safehtml.shared.*; | [
"com.google.gwt"
] | com.google.gwt; | 1,947,787 |
public void run() {
try {
final String oldName = loginData.getOption( "lastDrillFilename" );
final String selectedReport = selectFileFromRepositoryTask.selectFile( loginData, oldName );
if ( selectedReport == null ) {
return;
}
loginData.setOption( "lastDrillFilename", select... | void function() { try { final String oldName = loginData.getOption( STR ); final String selectedReport = selectFileFromRepositoryTask.selectFile( loginData, oldName ); if ( selectedReport == null ) { return; } loginData.setOption( STR, selectedReport ); if ( storeUpdates ) { if ( activeContext != null ) { activeContext... | /**
* When an object implementing interface <code>Runnable</code> is used to create a thread, starting the thread causes
* the object's <code>run</code> method to be called in that separately executing thread.
* <p/>
* The general contract of the method <code>run</code> is that it may take any action whatso... | When an object implementing interface <code>Runnable</code> is used to create a thread, starting the thread causes the object's <code>run</code> method to be called in that separately executing thread. The general contract of the method <code>run</code> is that it may take any action whatsoever | run | {
"repo_name": "mbatchelor/pentaho-reporting",
"path": "designer/report-designer-extension-pentaho/src/main/java/org/pentaho/reporting/designer/extensions/pentaho/drilldown/SelectDrillTargetTask.java",
"license": "lgpl-2.1",
"size": 4287
} | [
"javax.swing.SwingUtilities",
"org.pentaho.reporting.designer.core.util.exceptions.UncaughtExceptionsModel",
"org.pentaho.reporting.designer.extensions.pentaho.repository.Messages",
"org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ExceptionDialog"
] | import javax.swing.SwingUtilities; import org.pentaho.reporting.designer.core.util.exceptions.UncaughtExceptionsModel; import org.pentaho.reporting.designer.extensions.pentaho.repository.Messages; import org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.ExceptionDialog; | import javax.swing.*; import org.pentaho.reporting.designer.core.util.exceptions.*; import org.pentaho.reporting.designer.extensions.pentaho.repository.*; import org.pentaho.reporting.engine.classic.core.modules.gui.commonswing.*; | [
"javax.swing",
"org.pentaho.reporting"
] | javax.swing; org.pentaho.reporting; | 1,583,226 |
public XPathMatcher activateField(Field field, int initialDepth) {
ValueStore valueStore =
fValueStoreCache.getValueStoreFor(field.getIdentityConstraint(), initialDepth);
setMayMatch(field, Boolean.TRUE);
XPathMatcher matcher = field.createMatcher(this, valueStore);
fMatc... | XPathMatcher function(Field field, int initialDepth) { ValueStore valueStore = fValueStoreCache.getValueStoreFor(field.getIdentityConstraint(), initialDepth); setMayMatch(field, Boolean.TRUE); XPathMatcher matcher = field.createMatcher(this, valueStore); fMatcherStack.addMatcher(matcher); matcher.startDocumentFragment(... | /**
* Request to activate the specified field. This method returns the
* matcher for the field.
*
* @param field The field to activate.
*/ | Request to activate the specified field. This method returns the matcher for the field | activateField | {
"repo_name": "PrincetonUniversity/NVJVM",
"path": "build/linux-amd64/jaxp/drop/jaxp_src/src/com/sun/org/apache/xerces/internal/impl/xs/XMLSchemaValidator.java",
"license": "gpl-2.0",
"size": 177439
} | [
"com.sun.org.apache.xerces.internal.impl.xs.identity.Field",
"com.sun.org.apache.xerces.internal.impl.xs.identity.ValueStore",
"com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher"
] | import com.sun.org.apache.xerces.internal.impl.xs.identity.Field; import com.sun.org.apache.xerces.internal.impl.xs.identity.ValueStore; import com.sun.org.apache.xerces.internal.impl.xs.identity.XPathMatcher; | import com.sun.org.apache.xerces.internal.impl.xs.identity.*; | [
"com.sun.org"
] | com.sun.org; | 2,722,004 |
private final TypeName getVariableType() {
return ClassName.get(dataType.getRuntimeType());
} | final TypeName function() { return ClassName.get(dataType.getRuntimeType()); } | /**
* Returns the type to use to parametrize the Variable objects when generating code.
*/ | Returns the type to use to parametrize the Variable objects when generating code | getVariableType | {
"repo_name": "material-foundation/material-remixer-android",
"path": "remixer_annotation/src/main/java/com/google/android/libraries/remixer/annotation/processor/MethodAnnotation.java",
"license": "apache-2.0",
"size": 10732
} | [
"com.squareup.javapoet.ClassName",
"com.squareup.javapoet.TypeName"
] | import com.squareup.javapoet.ClassName; import com.squareup.javapoet.TypeName; | import com.squareup.javapoet.*; | [
"com.squareup.javapoet"
] | com.squareup.javapoet; | 2,031,305 |
EAttribute getAssign_Var(); | EAttribute getAssign_Var(); | /**
* Returns the meta object for the attribute '{@link org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Assign#getVar <em>Var</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Var</em>'.
* @see org.eclipse.xtext.parsetree.formatter.form... | Returns the meta object for the attribute '<code>org.eclipse.xtext.parsetree.formatter.formattertestlanguage.Assign#getVar Var</code>'. | getAssign_Var | {
"repo_name": "miklossy/xtext-core",
"path": "org.eclipse.xtext.tests/src-gen/org/eclipse/xtext/parsetree/formatter/formattertestlanguage/FormattertestlanguagePackage.java",
"license": "epl-1.0",
"size": 56203
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 37,237 |
CommandLineConfig setWarningGuardSpec(WarningGuardSpec spec) {
this.warningGuards = spec;
return this;
}
private final List<String> define = new ArrayList<>(); | CommandLineConfig setWarningGuardSpec(WarningGuardSpec spec) { this.warningGuards = spec; return this; } private final List<String> define = new ArrayList<>(); | /**
* Add warning guards.
*/ | Add warning guards | setWarningGuardSpec | {
"repo_name": "fvigotti/closure-compiler",
"path": "src/com/google/javascript/jscomp/AbstractCommandLineRunner.java",
"license": "apache-2.0",
"size": 69434
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,271,307 |
boolean result = false;
Intent browserIntent = new Intent( Intent.ACTION_VIEW, Uri.parse( url ) );
if( browserIntent.resolveActivity( activity.getPackageManager() ) != null ) {
activity.startActivity( browserIntent );
result = true;
}
return result;
... | boolean result = false; Intent browserIntent = new Intent( Intent.ACTION_VIEW, Uri.parse( url ) ); if( browserIntent.resolveActivity( activity.getPackageManager() ) != null ) { activity.startActivity( browserIntent ); result = true; } return result; } | /**
* Show web browser for given URL.
*
* @param activity required for starting another application
* @param url for web browser
* @return {@code true} if all is OK, {@code false} in case no application can handle this intent
*/ | Show web browser for given URL | webBrowser | {
"repo_name": "outlying/awesome",
"path": "app/src/main/java/com/antyzero/awesome/tools/IntentUtils.java",
"license": "gpl-2.0",
"size": 983
} | [
"android.content.Intent",
"android.net.Uri"
] | import android.content.Intent; import android.net.Uri; | import android.content.*; import android.net.*; | [
"android.content",
"android.net"
] | android.content; android.net; | 64,684 |
public Date getServiceStartTime() {
return mStartTime;
} | Date function() { return mStartTime; } | /**
* Get the time at which this instance of the service was started.
*
* @return A Date representing the time at which the service was started.
*/ | Get the time at which this instance of the service was started | getServiceStartTime | {
"repo_name": "casific/murmur",
"path": "benchmark/RangzenService.java",
"license": "apache-2.0",
"size": 23981
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 2,421,883 |
public static FastDateFormat getDateInstance(int style, TimeZone timeZone) {
return getDateInstance(style, timeZone, null);
} | static FastDateFormat function(int style, TimeZone timeZone) { return getDateInstance(style, timeZone, null); } | /**
* <p>Gets a date formatter instance using the specified style and
* time zone in the default locale.</p>
*
* @param style date style: FULL, LONG, MEDIUM, or SHORT
* @param timeZone optional time zone, overrides time zone of
* formatted date
* @return a localized standard date ... | Gets a date formatter instance using the specified style and time zone in the default locale | getDateInstance | {
"repo_name": "mtwain/Easychad",
"path": "EasychadProj/src/main/java/ml/easychad/lax/android/FastDateFormat.java",
"license": "gpl-2.0",
"size": 55985
} | [
"java.util.TimeZone"
] | import java.util.TimeZone; | import java.util.*; | [
"java.util"
] | java.util; | 2,726,574 |
@Nonnull
public Position multiply(@Nonnull Vector o) {
Preconditions.checkNotNull(o, "o cannot be null.");
return ONE.equals(o) ? this : new Position(this.x * o.x, this.y * o.y, this.z * o.z, this.yaw, this.pitch);
} | Position function(@Nonnull Vector o) { Preconditions.checkNotNull(o, STR); return ONE.equals(o) ? this : new Position(this.x * o.x, this.y * o.y, this.z * o.z, this.yaw, this.pitch); } | /**
* Creates a new {@link Vector} of this vector multiplied by another {@link
* Vector}. If the given vector is equals to {@link #ONE} this same Point
* instance is returned.
*
* @param o the other vector to multiply by
*
* @return a new {@link Vector} or the same instance if no modification was m... | Creates a new <code>Vector</code> of this vector multiplied by another <code>Vector</code>. If the given vector is equals to <code>#ONE</code> this same Point instance is returned | multiply | {
"repo_name": "SupaHam/SupaCommons",
"path": "commons-minecraft/src/main/java/com/supaham/commons/minecraft/world/space/Position.java",
"license": "gpl-3.0",
"size": 15592
} | [
"com.google.common.base.Preconditions",
"javax.annotation.Nonnull"
] | import com.google.common.base.Preconditions; import javax.annotation.Nonnull; | import com.google.common.base.*; import javax.annotation.*; | [
"com.google.common",
"javax.annotation"
] | com.google.common; javax.annotation; | 44,235 |
public Observable<ServiceResponse<RouteTableInner>> beginCreateOrUpdateWithServiceResponseAsync(String resourceGroupName, String routeTableName, RouteTableInner parameters) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot b... | Observable<ServiceResponse<RouteTableInner>> function(String resourceGroupName, String routeTableName, RouteTableInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (routeTableName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == nu... | /**
* Create or updates a route table in a specified resource group.
*
* @param resourceGroupName The name of the resource group.
* @param routeTableName The name of the route table.
* @param parameters Parameters supplied to the create or update route table operation.
* @throws IllegalArg... | Create or updates a route table in a specified resource group | beginCreateOrUpdateWithServiceResponseAsync | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/implementation/RouteTablesInner.java",
"license": "mit",
"size": 75681
} | [
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.rest.ServiceResponse; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 2,830,092 |
@Override
public void setInspector(Inspector inspector) {
this.inspector = inspector;
}
| void function(Inspector inspector) { this.inspector = inspector; } | /**
* Set the inspector the contained entity should use.
*
* @param inspector used inspector
*/ | Set the inspector the contained entity should use | setInspector | {
"repo_name": "acsid/stendhal",
"path": "src/games/stendhal/client/gui/ItemPanel.java",
"license": "gpl-2.0",
"size": 14893
} | [
"games.stendhal.client.entity.Inspector"
] | import games.stendhal.client.entity.Inspector; | import games.stendhal.client.entity.*; | [
"games.stendhal.client"
] | games.stendhal.client; | 1,091,175 |
@Override
public Adapter createClotheswasherAdapter() {
if (clotheswasherItemProvider == null) {
clotheswasherItemProvider = new ClotheswasherItemProvider(this);
}
return clotheswasherItemProvider;
}
protected DishwasherItemProvider dishwasherItemProvider; | Adapter function() { if (clotheswasherItemProvider == null) { clotheswasherItemProvider = new ClotheswasherItemProvider(this); } return clotheswasherItemProvider; } protected DishwasherItemProvider dishwasherItemProvider; | /**
* This creates an adapter for a {@link visGrid.Clotheswasher}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This creates an adapter for a <code>visGrid.Clotheswasher</code>. | createClotheswasherAdapter | {
"repo_name": "mikesligo/visGrid",
"path": "ie.tcd.gmf.visGrid.edit/src/visGrid/provider/VisGridItemProviderAdapterFactory.java",
"license": "gpl-3.0",
"size": 57143
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 241,077 |
@Test
public void testFileParsing2() {
Gpr.debug("Test");
FIS fis = FIS.load("./tests/junit2.fcl", true);
if (verbose) System.out.println(fis);
separator();
} | void function() { Gpr.debug("Test"); FIS fis = FIS.load(STR, true); if (verbose) System.out.println(fis); separator(); } | /**
* Test method for {@link net.sourceforge.jFuzzyLogic.FIS#load(java.lang.String)}.
*/ | Test method for <code>net.sourceforge.jFuzzyLogic.FIS#load(java.lang.String)</code> | testFileParsing2 | {
"repo_name": "pcingola/jFuzzyLogic",
"path": "src/net/sourceforge/jFuzzyLogic/testCases/TestCaseJfuzzy.java",
"license": "lgpl-3.0",
"size": 14684
} | [
"net.sourceforge.jFuzzyLogic.FIS",
"net.sourceforge.jFuzzyLogic.Gpr",
"org.junit.Test"
] | import net.sourceforge.jFuzzyLogic.FIS; import net.sourceforge.jFuzzyLogic.Gpr; import org.junit.Test; | import net.sourceforge.*; import org.junit.*; | [
"net.sourceforge",
"org.junit"
] | net.sourceforge; org.junit; | 1,960,714 |
UpdateRequest createUpdateRequest(
String index,
String docType,
String key,
XContentType contentType,
byte[] document); | UpdateRequest createUpdateRequest( String index, String docType, String key, XContentType contentType, byte[] document); | /**
* Creates an update request to be added to a {@link RequestIndexer}.
*/ | Creates an update request to be added to a <code>RequestIndexer</code> | createUpdateRequest | {
"repo_name": "ueshin/apache-flink",
"path": "flink-connectors/flink-connector-elasticsearch-base/src/main/java/org/apache/flink/streaming/connectors/elasticsearch/ElasticsearchUpsertTableSinkBase.java",
"license": "apache-2.0",
"size": 15958
} | [
"org.elasticsearch.action.update.UpdateRequest",
"org.elasticsearch.common.xcontent.XContentType"
] | import org.elasticsearch.action.update.UpdateRequest; import org.elasticsearch.common.xcontent.XContentType; | import org.elasticsearch.action.update.*; import org.elasticsearch.common.xcontent.*; | [
"org.elasticsearch.action",
"org.elasticsearch.common"
] | org.elasticsearch.action; org.elasticsearch.common; | 811,045 |
public void addProblemMethod(
AbstractMethodDeclaration method,
MethodBinding methodBinding,
CategorizedProblem[] problems,
int savedOffset) {
// we need to move back the contentsOffset to the value at the beginning of the method
this.contentsOffset = savedOffset;
this.methodCount--; // we need to remo... | void function( AbstractMethodDeclaration method, MethodBinding methodBinding, CategorizedProblem[] problems, int savedOffset) { this.contentsOffset = savedOffset; this.methodCount--; addProblemMethod(method, methodBinding, problems); } | /**
* INTERNAL USE-ONLY
* Generate the byte for a problem method info that correspond to a boggus method.
* Reset the position inside the contents byte array to the savedOffset.
*
* @param method org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration
* @param methodBinding org.eclipse.jdt.internal.... | INTERNAL USE-ONLY Generate the byte for a problem method info that correspond to a boggus method. Reset the position inside the contents byte array to the savedOffset | addProblemMethod | {
"repo_name": "trylimits/Eclipse-Postfix-Code-Completion",
"path": "luna/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ClassFile.java",
"license": "epl-1.0",
"size": 278846
} | [
"org.eclipse.jdt.core.compiler.CategorizedProblem",
"org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration",
"org.eclipse.jdt.internal.compiler.lookup.MethodBinding"
] | import org.eclipse.jdt.core.compiler.CategorizedProblem; import org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration; import org.eclipse.jdt.internal.compiler.lookup.MethodBinding; | import org.eclipse.jdt.core.compiler.*; import org.eclipse.jdt.internal.compiler.ast.*; import org.eclipse.jdt.internal.compiler.lookup.*; | [
"org.eclipse.jdt"
] | org.eclipse.jdt; | 39,377 |
public void init(IServiceLocator locator, BindingManager manager, ContextModel model) {
Set cmdsForBindings = new HashSet();
bindingToElement = new HashMap();
commandToElement = new HashMap();
bindingElements = new HashSet();
bindingManager = manager;
Iterator i = manager.getActiveBindingsDisregardingC... | void function(IServiceLocator locator, BindingManager manager, ContextModel model) { Set cmdsForBindings = new HashSet(); bindingToElement = new HashMap(); commandToElement = new HashMap(); bindingElements = new HashSet(); bindingManager = manager; Iterator i = manager.getActiveBindingsDisregardingContextFlat().iterato... | /**
* The initialization only.
* @param locator
* @param manager
* @param model
*/ | The initialization only | init | {
"repo_name": "heartsome/tmxeditor8",
"path": "te/net.heartsome.cat.te.ui/src/net/heartsome/cat/te/ui/preferencepage/key/BindingModel2.java",
"license": "gpl-2.0",
"size": 14836
} | [
"java.util.Collection",
"java.util.HashMap",
"java.util.HashSet",
"java.util.Iterator",
"java.util.Set",
"org.eclipse.core.commands.Command",
"org.eclipse.core.commands.ParameterizedCommand",
"org.eclipse.core.commands.common.NotDefinedException",
"org.eclipse.jface.bindings.Binding",
"org.eclipse... | import java.util.Collection; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.Set; import org.eclipse.core.commands.Command; import org.eclipse.core.commands.ParameterizedCommand; import org.eclipse.core.commands.common.NotDefinedException; import org.eclipse.jface.binding... | import java.util.*; import org.eclipse.core.commands.*; import org.eclipse.core.commands.common.*; import org.eclipse.jface.bindings.*; import org.eclipse.ui.commands.*; import org.eclipse.ui.internal.keys.model.*; import org.eclipse.ui.services.*; | [
"java.util",
"org.eclipse.core",
"org.eclipse.jface",
"org.eclipse.ui"
] | java.util; org.eclipse.core; org.eclipse.jface; org.eclipse.ui; | 2,652,958 |
public VariableReference getReturnValue(int position); | VariableReference function(int position); | /**
* Get return value (variable) of statement at position
*
* @param position a int.
* @return a {@link org.evosuite.testcase.variable.VariableReference} object.
*/ | Get return value (variable) of statement at position | getReturnValue | {
"repo_name": "sefaakca/EvoSuite-Sefa",
"path": "client/src/main/java/org/evosuite/testcase/TestCase.java",
"license": "lgpl-3.0",
"size": 13289
} | [
"org.evosuite.testcase.variable.VariableReference"
] | import org.evosuite.testcase.variable.VariableReference; | import org.evosuite.testcase.variable.*; | [
"org.evosuite.testcase"
] | org.evosuite.testcase; | 1,214,084 |
@Override
public ResetableIterator GetEnumerator() throws OperationFailedException, LockingException, GeneralFailureException, CacheException {
_statusLatch.WaitForAny(NodeStatus.Running);
if (_internalCache == null) {
throw new UnsupportedOperationException();
}
... | ResetableIterator function() throws OperationFailedException, LockingException, GeneralFailureException, CacheException { _statusLatch.WaitForAny(NodeStatus.Running); if (_internalCache == null) { throw new UnsupportedOperationException(); } ResetableIterator localEnumerator = new LazyPartitionedKeysetEnumerator(this, ... | /**
* Returns a .NET IEnumerator interface so that a client should be able to
* iterate over the elements of the cache store.
*
* @return Iterator enumerator.
*/ | Returns a .NET IEnumerator interface so that a client should be able to iterate over the elements of the cache store | GetEnumerator | {
"repo_name": "Alachisoft/TayzGrid",
"path": "src/tgcache/src/com/alachisoft/tayzgrid/caching/topologies/clustered/PartitionedServerCache.java",
"license": "apache-2.0",
"size": 225795
} | [
"com.alachisoft.tayzgrid.caching.statistics.NodeStatus",
"com.alachisoft.tayzgrid.common.ResetableIterator",
"com.alachisoft.tayzgrid.runtime.exceptions.CacheException",
"com.alachisoft.tayzgrid.runtime.exceptions.GeneralFailureException",
"com.alachisoft.tayzgrid.runtime.exceptions.LockingException",
"co... | import com.alachisoft.tayzgrid.caching.statistics.NodeStatus; import com.alachisoft.tayzgrid.common.ResetableIterator; import com.alachisoft.tayzgrid.runtime.exceptions.CacheException; import com.alachisoft.tayzgrid.runtime.exceptions.GeneralFailureException; import com.alachisoft.tayzgrid.runtime.exceptions.LockingExc... | import com.alachisoft.tayzgrid.caching.statistics.*; import com.alachisoft.tayzgrid.common.*; import com.alachisoft.tayzgrid.runtime.exceptions.*; | [
"com.alachisoft.tayzgrid"
] | com.alachisoft.tayzgrid; | 1,650,991 |
public void onPersist(PersistEvent event) throws HibernateException; | void function(PersistEvent event) throws HibernateException; | /**
* Handle the given create event.
*
* @param event The create event to be handled.
* @throws HibernateException
*/ | Handle the given create event | onPersist | {
"repo_name": "kevin-chen-hw/LDAE",
"path": "com.huawei.soa.ldae/src/main/java/org/hibernate/event/spi/PersistEventListener.java",
"license": "lgpl-2.1",
"size": 1810
} | [
"org.hibernate.HibernateException"
] | import org.hibernate.HibernateException; | import org.hibernate.*; | [
"org.hibernate"
] | org.hibernate; | 335,183 |
public void attachScene(Spatial scene){
if (scene == null) {
throw new IllegalArgumentException( "Scene cannot be null." );
}
sceneList.add(scene);
if (scene instanceof Geometry) {
scene.forceRefresh(true, false, true);
}
} | void function(Spatial scene){ if (scene == null) { throw new IllegalArgumentException( STR ); } sceneList.add(scene); if (scene instanceof Geometry) { scene.forceRefresh(true, false, true); } } | /**
* Attaches a new scene to render in this ViewPort.
*
* @param scene The scene to attach
*
* see Spatial
*/ | Attaches a new scene to render in this ViewPort | attachScene | {
"repo_name": "PlanetWaves/clockworkengine",
"path": "branches/3.0/engine/src/core/com/clockwork/renderer/ViewPort.java",
"license": "apache-2.0",
"size": 10537
} | [
"com.clockwork.scene.Geometry",
"com.clockwork.scene.Spatial"
] | import com.clockwork.scene.Geometry; import com.clockwork.scene.Spatial; | import com.clockwork.scene.*; | [
"com.clockwork.scene"
] | com.clockwork.scene; | 1,236,870 |
public Request request() {
return request;
} | Request function() { return request; } | /**
* <p>Returns the {@link Request} that was denied.</p>
*
* @return The Request that was denied.
*/ | Returns the <code>Request</code> that was denied | request | {
"repo_name": "vespa-engine/vespa",
"path": "jdisc_core/src/main/java/com/yahoo/jdisc/handler/RequestDeniedException.java",
"license": "apache-2.0",
"size": 1255
} | [
"com.yahoo.jdisc.Request"
] | import com.yahoo.jdisc.Request; | import com.yahoo.jdisc.*; | [
"com.yahoo.jdisc"
] | com.yahoo.jdisc; | 2,492,183 |
@Nullable
public TransitiveInfoCollection findDirectPrerequisite(
Label label, Optional<BuildConfiguration> config) {
if (directPrerequisites.containsKey(label)) {
List<ConfiguredTargetAndData> prerequisites = directPrerequisites.get(label);
// If the config is present, find the prereq with th... | TransitiveInfoCollection function( Label label, Optional<BuildConfiguration> config) { if (directPrerequisites.containsKey(label)) { List<ConfiguredTargetAndData> prerequisites = directPrerequisites.get(label); if (!config.isPresent()) { if (prerequisites.isEmpty()) { return null; } return Iterables.getFirst(prerequisi... | /**
* Returns the prerequisite with the given label and configuration, or null if no such
* prerequisite exists. If configuration is absent, return the first prerequisite with the given
* label.
*/ | Returns the prerequisite with the given label and configuration, or null if no such prerequisite exists. If configuration is absent, return the first prerequisite with the given label | findDirectPrerequisite | {
"repo_name": "dslomov/bazel",
"path": "src/main/java/com/google/devtools/build/lib/analysis/TargetContext.java",
"license": "apache-2.0",
"size": 5078
} | [
"com.google.common.base.Objects",
"com.google.common.collect.Iterables",
"com.google.devtools.build.lib.analysis.config.BuildConfiguration",
"com.google.devtools.build.lib.cmdline.Label",
"com.google.devtools.build.lib.skyframe.ConfiguredTargetAndData",
"java.util.List",
"java.util.Optional"
] | import com.google.common.base.Objects; import com.google.common.collect.Iterables; import com.google.devtools.build.lib.analysis.config.BuildConfiguration; import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.skyframe.ConfiguredTargetAndData; import java.util.List; import java.util.O... | import com.google.common.base.*; import com.google.common.collect.*; import com.google.devtools.build.lib.analysis.config.*; import com.google.devtools.build.lib.cmdline.*; import com.google.devtools.build.lib.skyframe.*; import java.util.*; | [
"com.google.common",
"com.google.devtools",
"java.util"
] | com.google.common; com.google.devtools; java.util; | 339,661 |
void buildCNodeFormulas(IContext context) throws ContextClassifierException;
| void buildCNodeFormulas(IContext context) throws ContextClassifierException; | /**
* Constructs concept@node formulas for all the nodes in the context.
*
* @param context the context with concept at label formulas
* @throws ContextClassifierException ContextClassifierException
*/ | Constructs concept@node formulas for all the nodes in the context | buildCNodeFormulas | {
"repo_name": "opendatatrentino/s-match",
"path": "src/main/java/it/unitn/disi/smatch/classifiers/IContextClassifier.java",
"license": "lgpl-2.1",
"size": 726
} | [
"it.unitn.disi.smatch.data.trees.IContext"
] | import it.unitn.disi.smatch.data.trees.IContext; | import it.unitn.disi.smatch.data.trees.*; | [
"it.unitn.disi"
] | it.unitn.disi; | 334,360 |
public boolean testIsRecoveredAndClear(RegionEntry re) {
DiskEntry de = (DiskEntry) re;
return testIsRecoveredAndClear(de.getDiskId());
} | boolean function(RegionEntry re) { DiskEntry de = (DiskEntry) re; return testIsRecoveredAndClear(de.getDiskId()); } | /**
* Returns true if the state of the specified entry was recovered from disk. If so it will also
* set it to no longer be recovered.
*
* @since GemFire prPersistSprint1
*/ | Returns true if the state of the specified entry was recovered from disk. If so it will also set it to no longer be recovered | testIsRecoveredAndClear | {
"repo_name": "davinash/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/DiskRegion.java",
"license": "apache-2.0",
"size": 29238
} | [
"org.apache.geode.internal.cache.entries.DiskEntry"
] | import org.apache.geode.internal.cache.entries.DiskEntry; | import org.apache.geode.internal.cache.entries.*; | [
"org.apache.geode"
] | org.apache.geode; | 294,145 |
public static ConstraintSet basicConstraintSetFromEnvelope(final Envelope env) {
// Create a NumericRange object using the x axis
final NumericRange rangeLongitude = new NumericRange(env.getMinX(), env.getMaxX());
// Create a NumericRange object using the y axis
final NumericRange rangeLatitude = new... | static ConstraintSet function(final Envelope env) { final NumericRange rangeLongitude = new NumericRange(env.getMinX(), env.getMaxX()); final NumericRange rangeLatitude = new NumericRange(env.getMinY(), env.getMaxY()); final Map<Class<? extends NumericDimensionDefinition>, ConstraintData> constraintsPerDimension = new ... | /**
* This utility method will convert a JTS envelope to contraints that can be used in a GeoWave
* query.
*
* @return Constraints as a mapping of NumericData objects representing ranges for a latitude
* dimension and a longitude dimension
*/ | This utility method will convert a JTS envelope to contraints that can be used in a GeoWave query | basicConstraintSetFromEnvelope | {
"repo_name": "spohnan/geowave",
"path": "core/geotime/src/main/java/org/locationtech/geowave/core/geotime/util/GeometryUtils.java",
"license": "apache-2.0",
"size": 33870
} | [
"java.util.HashMap",
"java.util.Map",
"org.locationtech.geowave.core.geotime.index.dimension.LatitudeDefinition",
"org.locationtech.geowave.core.geotime.index.dimension.LongitudeDefinition",
"org.locationtech.geowave.core.geotime.store.dimension.CustomCRSUnboundedSpatialDimensionX",
"org.locationtech.geow... | import java.util.HashMap; import java.util.Map; import org.locationtech.geowave.core.geotime.index.dimension.LatitudeDefinition; import org.locationtech.geowave.core.geotime.index.dimension.LongitudeDefinition; import org.locationtech.geowave.core.geotime.store.dimension.CustomCRSUnboundedSpatialDimensionX; import org.... | import java.util.*; import org.locationtech.geowave.core.geotime.index.dimension.*; import org.locationtech.geowave.core.geotime.store.dimension.*; import org.locationtech.geowave.core.index.dimension.*; import org.locationtech.geowave.core.index.sfc.data.*; import org.locationtech.geowave.core.store.query.constraints.... | [
"java.util",
"org.locationtech.geowave",
"org.locationtech.jts"
] | java.util; org.locationtech.geowave; org.locationtech.jts; | 1,804,119 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.