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
List<LegendSet> getLegendSets();
List<LegendSet> getLegendSets();
/** * Gets the legend sets. */
Gets the legend sets
getLegendSets
{ "repo_name": "vmluan/dhis2-core", "path": "dhis-2/dhis-api/src/main/java/org/hisp/dhis/common/DimensionalItemObject.java", "license": "bsd-3-clause", "size": 2888 }
[ "java.util.List", "org.hisp.dhis.legend.LegendSet" ]
import java.util.List; import org.hisp.dhis.legend.LegendSet;
import java.util.*; import org.hisp.dhis.legend.*;
[ "java.util", "org.hisp.dhis" ]
java.util; org.hisp.dhis;
1,323,956
public ElasticSearchClient getLocalClient(String clientType, ElasticSearchEventSerializer serializer, ElasticSearchIndexRequestBuilderFactory indexBuilder) throws NoSuchClientTypeException { if (clientType.equalsIgnoreCa...
ElasticSearchClient function(String clientType, ElasticSearchEventSerializer serializer, ElasticSearchIndexRequestBuilderFactory indexBuilder) throws NoSuchClientTypeException { if (clientType.equalsIgnoreCase(TransportClient) && serializer != null) { return new ElasticSearchTransportClient(serializer); } else if (clie...
/** * Used for tests only. Creates local elasticsearch instance client. * * @param clientType Name of client to use * @param serializer Serializer for the event * @param indexBuilder Index builder factory * * @return Local elastic search instance client */
Used for tests only. Creates local elasticsearch instance client
getLocalClient
{ "repo_name": "addozhang/flume-ng-elasticsearch-sink", "path": "src/main/java/org/apache/flume/sink/elasticsearch/client/ElasticSearchClientFactory.java", "license": "apache-2.0", "size": 3397 }
[ "org.apache.flume.sink.elasticsearch.ElasticSearchEventSerializer", "org.apache.flume.sink.elasticsearch.ElasticSearchIndexRequestBuilderFactory" ]
import org.apache.flume.sink.elasticsearch.ElasticSearchEventSerializer; import org.apache.flume.sink.elasticsearch.ElasticSearchIndexRequestBuilderFactory;
import org.apache.flume.sink.elasticsearch.*;
[ "org.apache.flume" ]
org.apache.flume;
210,240
public static DoNotMockEnforcer getDoNotMockEnforcer() { return registry.getDoNotMockEnforcer(); } private Plugins() {}
static DoNotMockEnforcer function() { return registry.getDoNotMockEnforcer(); } private Plugins() {}
/** * Returns the {@link DoNotMock} enforcer available for the current runtime. * * <p> Returns {@link org.mockito.internal.configuration.DefaultDoNotMockEnforcer} if no * {@link DoNotMockEnforcer} extension exists or is visible in the current classpath.</p> */
Returns the <code>DoNotMock</code> enforcer available for the current runtime. Returns <code>org.mockito.internal.configuration.DefaultDoNotMockEnforcer</code> if no <code>DoNotMockEnforcer</code> extension exists or is visible in the current classpath
getDoNotMockEnforcer
{ "repo_name": "mockito/mockito", "path": "src/main/java/org/mockito/internal/configuration/plugins/Plugins.java", "license": "mit", "size": 3862 }
[ "org.mockito.plugins.DoNotMockEnforcer" ]
import org.mockito.plugins.DoNotMockEnforcer;
import org.mockito.plugins.*;
[ "org.mockito.plugins" ]
org.mockito.plugins;
2,410,663
public static void unJar(String src, File desDir) throws IOException{ JarInputStream jarIn = new JarInputStream(new BufferedInputStream(new FileInputStream(src))); if(!desDir.exists())desDir.mkdirs(); byte[] bytes = new byte[1024]; while(true){ ZipEntry entry = jarIn.getNextJarEntry(); if(entry...
static void function(String src, File desDir) throws IOException{ JarInputStream jarIn = new JarInputStream(new BufferedInputStream(new FileInputStream(src))); if(!desDir.exists())desDir.mkdirs(); byte[] bytes = new byte[1024]; while(true){ ZipEntry entry = jarIn.getNextJarEntry(); if(entry == null)break; File desTemp ...
/** * from Internet * @param src * @param desDir * @throws IOException */
from Internet
unJar
{ "repo_name": "lgnlgn/feluca", "path": "feluca-core/src/main/java/org/shanbo/feluca/util/FileUtil.java", "license": "apache-2.0", "size": 5678 }
[ "java.io.BufferedInputStream", "java.io.BufferedOutputStream", "java.io.File", "java.io.FileInputStream", "java.io.FileOutputStream", "java.io.IOException", "java.util.jar.JarFile", "java.util.jar.JarInputStream", "java.util.jar.Manifest", "java.util.zip.ZipEntry" ]
import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.util.jar.JarFile; import java.util.jar.JarInputStream; import java.util.jar.Manifest; import java.util.zip.ZipEntry;
import java.io.*; import java.util.jar.*; import java.util.zip.*;
[ "java.io", "java.util" ]
java.io; java.util;
545,006
public void setConstraintDeferred( final Activation a, final long indexCID, final boolean deferred) throws StandardException { if (!deferred) { // Moving to immediate, check what's done in this transaction first validateDeferredConstraint(indexCID...
void function( final Activation a, final long indexCID, final boolean deferred) throws StandardException { if (!deferred) { validateDeferredConstraint(indexCID, null); } getCurrentSQLSessionContext(a).setDeferred(indexCID, deferred); }
/** * For unique and primary key constraints * * @param a activation * @param indexCID the conglomerate id of the supporting index * @param deferred constraint mode * @throws StandardException standard error policy */
For unique and primary key constraints
setConstraintDeferred
{ "repo_name": "scnakandala/derby", "path": "java/engine/org/apache/derby/impl/sql/conn/GenericLanguageConnectionContext.java", "license": "apache-2.0", "size": 144173 }
[ "org.apache.derby.iapi.error.StandardException", "org.apache.derby.iapi.sql.Activation" ]
import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.sql.Activation;
import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.sql.*;
[ "org.apache.derby" ]
org.apache.derby;
2,528,204
public String getDefaultRunAs() { return defaultRunAs; } /** * Returns the custom {@link ServletAuthenticatorFactory} which is injected into * an {@link TestWebScriptServer} instances that are returned, if any. * Default is not to alter the {@link ServletAuthenticatorFac...
String function() { return defaultRunAs; } /** * Returns the custom {@link ServletAuthenticatorFactory} which is injected into * an {@link TestWebScriptServer} instances that are returned, if any. * Default is not to alter the {@link ServletAuthenticatorFactory}
/** * Get Default Local Run As User * * @return localRunAs */
Get Default Local Run As User
getDefaultRunAs
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/test-java/org/alfresco/repo/web/scripts/BaseWebScriptTest.java", "license": "lgpl-3.0", "size": 18121 }
[ "org.springframework.extensions.webscripts.TestWebScriptServer", "org.springframework.extensions.webscripts.servlet.ServletAuthenticatorFactory" ]
import org.springframework.extensions.webscripts.TestWebScriptServer; import org.springframework.extensions.webscripts.servlet.ServletAuthenticatorFactory;
import org.springframework.extensions.webscripts.*; import org.springframework.extensions.webscripts.servlet.*;
[ "org.springframework.extensions" ]
org.springframework.extensions;
2,869,554
static <T> Reference<T> getWeakReference(T object) { return (object != null) ? new WeakReference<T>(object) : null; }
static <T> Reference<T> getWeakReference(T object) { return (object != null) ? new WeakReference<T>(object) : null; }
/** * Creates a new weak reference that refers to the given object. * * @return a new weak reference or <code>null</code> if object is <code>null</code> * * @see WeakReference */
Creates a new weak reference that refers to the given object
getWeakReference
{ "repo_name": "demidenko05/a-javabeans", "path": "src/main/java/ajava/beans/FeatureDescriptor.java", "license": "gpl-2.0", "size": 13992 }
[ "java.lang.ref.Reference", "java.lang.ref.WeakReference" ]
import java.lang.ref.Reference; import java.lang.ref.WeakReference;
import java.lang.ref.*;
[ "java.lang" ]
java.lang;
1,656,548
protected void closeConnection(DatabaseConnection connection) throws SQLException { // this can return null if we are closing the pool ConnectionMetaData meta = connectionMap.remove(connection); IOUtils.closeThrowSqlException(connection, "SQL connection"); logger.debug("closed connection {}", meta); closeC...
void function(DatabaseConnection connection) throws SQLException { ConnectionMetaData meta = connectionMap.remove(connection); IOUtils.closeThrowSqlException(connection, STR); logger.debug(STR, meta); closeCount++; }
/** * This should be inside of synchronized (lock) stanza. */
This should be inside of synchronized (lock) stanza
closeConnection
{ "repo_name": "j256/ormlite-jdbc", "path": "src/main/java/com/j256/ormlite/jdbc/JdbcPooledConnectionSource.java", "license": "isc", "size": 15665 }
[ "com.j256.ormlite.misc.IOUtils", "com.j256.ormlite.support.DatabaseConnection", "java.sql.SQLException" ]
import com.j256.ormlite.misc.IOUtils; import com.j256.ormlite.support.DatabaseConnection; import java.sql.SQLException;
import com.j256.ormlite.misc.*; import com.j256.ormlite.support.*; import java.sql.*;
[ "com.j256.ormlite", "java.sql" ]
com.j256.ormlite; java.sql;
2,075,678
public void setUserService(UserService userService) { this.userService = userService; }
void function(UserService userService) { this.userService = userService; }
/** * Sets the user remote service. * * @param userService the user remote service */
Sets the user remote service
setUserService
{ "repo_name": "iucn-whp/world-heritage-outlook", "path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/src/com/iucn/whp/dbservice/service/base/effective_prot_mgmt_iothreatsLocalServiceBaseImpl.java", "license": "gpl-2.0", "size": 176884 }
[ "com.liferay.portal.service.UserService" ]
import com.liferay.portal.service.UserService;
import com.liferay.portal.service.*;
[ "com.liferay.portal" ]
com.liferay.portal;
2,813,397
public static Document read( DataInput input ) throws IOException { return SHARED_READER.read(input); }
static Document function( DataInput input ) throws IOException { return SHARED_READER.read(input); }
/** * Read the binary BSON representation from supplied data input and construct the {@link Document} representation. * * @param input the data input; may not be null * @return the in-memory {@link Document} representation * @throws IOException if there was a problem reading from the stream ...
Read the binary BSON representation from supplied data input and construct the <code>Document</code> representation
read
{ "repo_name": "weebl2000/modeshape", "path": "modeshape-schematic/src/main/java/org/modeshape/schematic/document/Bson.java", "license": "apache-2.0", "size": 9337 }
[ "java.io.DataInput", "java.io.IOException" ]
import java.io.DataInput; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
646,294
public int[] getTree(int[][] data, int index, int[][] hierarchy) { final int totalElementsP = subset == null ? data.length : subsetSize; final int height = hierarchy[0].length - 1; final int numLeafs = hierarchy.length; // TODO: Siz...
int[] function(int[][] data, int index, int[][] hierarchy) { final int totalElementsP = subset == null ? data.length : subsetSize; final int height = hierarchy[0].length - 1; final int numLeafs = hierarchy.length; final ArrayList<Integer> treeList = new ArrayList<Integer>(); treeList.add(totalElementsP); treeList.add(n...
/** * Returns a tree for the given attribute at the index within the given data array, using the given hierarchy. * The resulting tree can be used to calculate the earth mover's distance with hierarchical ground-distance. * @param data * @param index * @param hierarchy * @return tree ...
Returns a tree for the given attribute at the index within the given data array, using the given hierarchy. The resulting tree can be used to calculate the earth mover's distance with hierarchical ground-distance
getTree
{ "repo_name": "kentoa/arx", "path": "src/main/org/deidentifier/arx/framework/data/DataManager.java", "license": "apache-2.0", "size": 28742 }
[ "com.carrotsearch.hppc.IntObjectOpenHashMap", "com.carrotsearch.hppc.IntOpenHashSet", "java.util.ArrayList" ]
import com.carrotsearch.hppc.IntObjectOpenHashMap; import com.carrotsearch.hppc.IntOpenHashSet; import java.util.ArrayList;
import com.carrotsearch.hppc.*; import java.util.*;
[ "com.carrotsearch.hppc", "java.util" ]
com.carrotsearch.hppc; java.util;
84,444
public static String getEntryNameFromJson(String fmJson) throws IOException{ MappingJsonFactory f = new MappingJsonFactory(); JsonParser jp; try { jp = f.createJsonParser(fmJson); } catch (JsonParseException e) { throw new IOException(e); } jp.nextToken(); if (jp.getCurrentToken() != JsonToken....
static String function(String fmJson) throws IOException{ MappingJsonFactory f = new MappingJsonFactory(); JsonParser jp; try { jp = f.createJsonParser(fmJson); } catch (JsonParseException e) { throw new IOException(e); } jp.nextToken(); if (jp.getCurrentToken() != JsonToken.START_OBJECT) { throw new IOException(STR); ...
/** * Gets the entry name of a flow mod * @param fmJson The OFFlowMod in a JSON representation * @return The name of the OFFlowMod, null if not found * @throws IOException If there was an error parsing the JSON */
Gets the entry name of a flow mod
getEntryNameFromJson
{ "repo_name": "netgroup/floodlight", "path": "src/main/java/net/floodlightcontroller/staticflowentry/StaticFlowEntries.java", "license": "apache-2.0", "size": 43375 }
[ "com.fasterxml.jackson.core.JsonParseException", "com.fasterxml.jackson.core.JsonParser", "com.fasterxml.jackson.core.JsonToken", "com.fasterxml.jackson.databind.MappingJsonFactory", "java.io.IOException" ]
import com.fasterxml.jackson.core.JsonParseException; import com.fasterxml.jackson.core.JsonParser; import com.fasterxml.jackson.core.JsonToken; import com.fasterxml.jackson.databind.MappingJsonFactory; import java.io.IOException;
import com.fasterxml.jackson.core.*; import com.fasterxml.jackson.databind.*; import java.io.*;
[ "com.fasterxml.jackson", "java.io" ]
com.fasterxml.jackson; java.io;
670,155
public Object getCompactionMetric(String metricName) { try { switch(metricName) { case "BytesCompacted": return JMX.newMBeanProxy(mbeanServerConn, new ObjectName("org.apache.cassandra.metrics:type=Compaction,...
Object function(String metricName) { try { switch(metricName) { case STR: return JMX.newMBeanProxy(mbeanServerConn, new ObjectName(STR + metricName), CassandraMetricsRegistry.JmxCounterMBean.class); case STR: case STR: case STR: return JMX.newMBeanProxy(mbeanServerConn, new ObjectName(STR + metricName), CassandraMetric...
/** * Retrieve Proxy metrics * @param metricName CompletedTasks, PendingTasks, BytesCompacted or TotalCompactionsCompleted. */
Retrieve Proxy metrics
getCompactionMetric
{ "repo_name": "exoscale/cassandra", "path": "src/java/org/apache/cassandra/tools/NodeProbe.java", "license": "apache-2.0", "size": 55385 }
[ "javax.management.JMX", "javax.management.MalformedObjectNameException", "javax.management.ObjectName", "org.apache.cassandra.metrics.CassandraMetricsRegistry" ]
import javax.management.JMX; import javax.management.MalformedObjectNameException; import javax.management.ObjectName; import org.apache.cassandra.metrics.CassandraMetricsRegistry;
import javax.management.*; import org.apache.cassandra.metrics.*;
[ "javax.management", "org.apache.cassandra" ]
javax.management; org.apache.cassandra;
2,488,353
CompletableFuture<RegistrationResponse> registerTaskManager( final JobID jobId, final TaskManagerRegistrationInformation taskManagerRegistrationInformation, @RpcTimeout final Time timeout);
CompletableFuture<RegistrationResponse> registerTaskManager( final JobID jobId, final TaskManagerRegistrationInformation taskManagerRegistrationInformation, @RpcTimeout final Time timeout);
/** * Registers the task manager at the job manager. * * @param jobId jobId specifying the job for which the JobMaster should be responsible * @param taskManagerRegistrationInformation the information for registering a task manager at * the job manager * @param timeout for the rpc call...
Registers the task manager at the job manager
registerTaskManager
{ "repo_name": "apache/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/jobmaster/JobMasterGateway.java", "license": "apache-2.0", "size": 13442 }
[ "java.util.concurrent.CompletableFuture", "org.apache.flink.api.common.JobID", "org.apache.flink.api.common.time.Time", "org.apache.flink.runtime.registration.RegistrationResponse", "org.apache.flink.runtime.rpc.RpcTimeout" ]
import java.util.concurrent.CompletableFuture; import org.apache.flink.api.common.JobID; import org.apache.flink.api.common.time.Time; import org.apache.flink.runtime.registration.RegistrationResponse; import org.apache.flink.runtime.rpc.RpcTimeout;
import java.util.concurrent.*; import org.apache.flink.api.common.*; import org.apache.flink.api.common.time.*; import org.apache.flink.runtime.registration.*; import org.apache.flink.runtime.rpc.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
2,482,225
private JComboBox getWsdlServiceServicesComboBox() { if (wsdlServiceServicesComboBox == null) { wsdlServiceServicesComboBox = new JComboBox(); if (method.isIsImported()) { wsdlServiceServicesComboBox.addItem(method.getImportInformation().getPortTypeName()); ...
JComboBox function() { if (wsdlServiceServicesComboBox == null) { wsdlServiceServicesComboBox = new JComboBox(); if (method.isIsImported()) { wsdlServiceServicesComboBox.addItem(method.getImportInformation().getPortTypeName()); } } return wsdlServiceServicesComboBox; }
/** * This method initializes wsdlServiceServicesComboBox * * @return javax.swing.JComboBox */
This method initializes wsdlServiceServicesComboBox
getWsdlServiceServicesComboBox
{ "repo_name": "NCIP/cagrid-core", "path": "caGrid/projects/introduce/src/java/Portal/gov/nih/nci/cagrid/introduce/portal/modification/services/methods/MethodViewer.java", "license": "bsd-3-clause", "size": 133307 }
[ "javax.swing.JComboBox" ]
import javax.swing.JComboBox;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,692,437
public static String getUsernameFromResponse(Response response) { List<Assertion> assertions = response.getAssertions(); Assertion assertion = null; if (assertions != null && assertions.size() > 0) { // There can be only one assertion in a SAML Response, so get the /...
static String function(Response response) { List<Assertion> assertions = response.getAssertions(); Assertion assertion = null; if (assertions != null && assertions.size() > 0) { assertion = assertions.get(0); return getUsernameFromAssertion(assertion); } return null; }
/** * Get the username from the SAML2 Response * * @param response SAML2 Response * @return username username contained in the SAML Response */
Get the username from the SAML2 Response
getUsernameFromResponse
{ "repo_name": "wso2-incubator/identity-connectors", "path": "components/carbon-authenticators/saml2-sso-authenticator/org.wso2.carbon.identity.authenticator.saml2.sso.common/src/main/java/org/wso2/carbon/identity/authenticator/saml2/sso/common/Util.java", "license": "apache-2.0", "size": 23288 }
[ "java.util.List", "org.opensaml.saml2.core.Assertion", "org.opensaml.saml2.core.Response" ]
import java.util.List; import org.opensaml.saml2.core.Assertion; import org.opensaml.saml2.core.Response;
import java.util.*; import org.opensaml.saml2.core.*;
[ "java.util", "org.opensaml.saml2" ]
java.util; org.opensaml.saml2;
1,728,873
public HttpHeaders headForHeaders(String url, Object... urlVariables) throws RestClientException { return this.restTemplate.headForHeaders(url, urlVariables); }
HttpHeaders function(String url, Object... urlVariables) throws RestClientException { return this.restTemplate.headForHeaders(url, urlVariables); }
/** * Retrieve all headers of the resource specified by the URI template. * <p> * URI Template variables are expanded using the given URI variables, if any. * @param url the URL * @param urlVariables the variables to expand the template * @return all HTTP headers of that resource * @throws RestClientExcep...
Retrieve all headers of the resource specified by the URI template. URI Template variables are expanded using the given URI variables, if any
headForHeaders
{ "repo_name": "mbogoevici/spring-boot", "path": "spring-boot-test/src/main/java/org/springframework/boot/test/web/client/TestRestTemplate.java", "license": "apache-2.0", "size": 45881 }
[ "org.springframework.http.HttpHeaders", "org.springframework.web.client.RestClientException" ]
import org.springframework.http.HttpHeaders; import org.springframework.web.client.RestClientException;
import org.springframework.http.*; import org.springframework.web.client.*;
[ "org.springframework.http", "org.springframework.web" ]
org.springframework.http; org.springframework.web;
2,690,882
@Override protected Date makeDate(String dateStr) { // Try our formats first, in order try { return this.tikaUTCDateFormater.parseDateTime(dateStr).toDate(); } catch (IllegalArgumentException e) {} try { return thi...
Date function(String dateStr) { try { return this.tikaUTCDateFormater.parseDateTime(dateStr).toDate(); } catch (IllegalArgumentException e) {} try { return this.tikaUTCDateFormater.withLocale(Locale.US).parseDateTime(dateStr).toDate(); } catch (IllegalArgumentException e) {} try { return this.tikaDateFormater.parseDate...
/** * Version which also tries the ISO-8601 formats (in order..), * and similar formats, which Tika makes use of */
Version which also tries the ISO-8601 formats (in order..), and similar formats, which Tika makes use of
makeDate
{ "repo_name": "loftuxab/alfresco-community-loftux", "path": "projects/repository/source/java/org/alfresco/repo/content/metadata/TikaPoweredMetadataExtracter.java", "license": "lgpl-3.0", "size": 25216 }
[ "java.util.Date", "java.util.Locale", "org.apache.tika.parser.Parser" ]
import java.util.Date; import java.util.Locale; import org.apache.tika.parser.Parser;
import java.util.*; import org.apache.tika.parser.*;
[ "java.util", "org.apache.tika" ]
java.util; org.apache.tika;
2,173,957
@Override public void onRemove(Authorizable authorizable, Root root, NamePathMapper namePathMapper) throws RepositoryException { // nothing to do }
void function(Authorizable authorizable, Root root, NamePathMapper namePathMapper) throws RepositoryException { }
/** * Doesn't perform any action. * * @see AuthorizableAction#onRemove(org.apache.jackrabbit.api.security.user.Authorizable, org.apache.jackrabbit.oak.api.Root, org.apache.jackrabbit.oak.namepath.NamePathMapper) */
Doesn't perform any action
onRemove
{ "repo_name": "tteofili/jackrabbit-oak", "path": "oak-core/src/main/java/org/apache/jackrabbit/oak/spi/security/user/action/AbstractAuthorizableAction.java", "license": "apache-2.0", "size": 3469 }
[ "javax.jcr.RepositoryException", "org.apache.jackrabbit.api.security.user.Authorizable", "org.apache.jackrabbit.oak.api.Root", "org.apache.jackrabbit.oak.namepath.NamePathMapper" ]
import javax.jcr.RepositoryException; import org.apache.jackrabbit.api.security.user.Authorizable; import org.apache.jackrabbit.oak.api.Root; import org.apache.jackrabbit.oak.namepath.NamePathMapper;
import javax.jcr.*; import org.apache.jackrabbit.api.security.user.*; import org.apache.jackrabbit.oak.api.*; import org.apache.jackrabbit.oak.namepath.*;
[ "javax.jcr", "org.apache.jackrabbit" ]
javax.jcr; org.apache.jackrabbit;
2,722,533
@Test public void testIsSPNegoPostAuthorizationHeader() { final SimpleHttpRequest request = new SimpleHttpRequest(); request.setContentLength(0); request.addHeader("Authorization", "Negotiate YHYGBisGAQUFAqBsMGqgMDAuBgorBgEEAYI3AgIKBgkqhkiC9xIBAgIGCSqGSIb3EgECAgYKKwYBBAGC...
void function() { final SimpleHttpRequest request = new SimpleHttpRequest(); request.setContentLength(0); request.addHeader(STR, STR); request.setMethod("GET"); final AuthorizationHeader header = new AuthorizationHeader(request); Assert.assertFalse(header.isNtlmType1PostAuthorizationHeader()); request.setMethod("POST")...
/** * Test is sp nego post authorization header. */
Test is sp nego post authorization header
testIsSPNegoPostAuthorizationHeader
{ "repo_name": "AriSuutariST/waffle", "path": "Source/JNA/waffle-tests/src/test/java/waffle/util/AuthorizationHeaderTests.java", "license": "epl-1.0", "size": 6267 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
635,539
public HttpResponse execute(List<HttpHost> targets, HttpRequest request) throws IOException, ClientProtocolException { return execute(targets, request, (HttpContext) null); }
HttpResponse function(List<HttpHost> targets, HttpRequest request) throws IOException, ClientProtocolException { return execute(targets, request, (HttpContext) null); }
/** * Tries to execute the request on all targets. * Each target failure is evaluated using the multiTargetRetryHandler. * * In case of non-retriable failure, the last exception is thrown. * * @param targets the candidate target hosts for the request. * The request ...
Tries to execute the request on all targets. Each target failure is evaluated using the multiTargetRetryHandler. In case of non-retriable failure, the last exception is thrown
execute
{ "repo_name": "mcaprari/httpclient-failover", "path": "src/main/java/httpfailover/FailoverHttpClient.java", "license": "apache-2.0", "size": 9528 }
[ "java.io.IOException", "java.util.List", "org.apache.http.HttpHost", "org.apache.http.HttpRequest", "org.apache.http.HttpResponse", "org.apache.http.client.ClientProtocolException", "org.apache.http.protocol.HttpContext" ]
import java.io.IOException; import java.util.List; import org.apache.http.HttpHost; import org.apache.http.HttpRequest; import org.apache.http.HttpResponse; import org.apache.http.client.ClientProtocolException; import org.apache.http.protocol.HttpContext;
import java.io.*; import java.util.*; import org.apache.http.*; import org.apache.http.client.*; import org.apache.http.protocol.*;
[ "java.io", "java.util", "org.apache.http" ]
java.io; java.util; org.apache.http;
1,935,862
protected BinaryMarshaller createStandaloneBinaryMarshaller() throws IgniteCheckedException { return createStandaloneBinaryMarshaller(new IgniteConfiguration()); }
BinaryMarshaller function() throws IgniteCheckedException { return createStandaloneBinaryMarshaller(new IgniteConfiguration()); }
/** * Create instance of {@link BinaryMarshaller} suitable for use * without starting a grid upon an empty {@link IgniteConfiguration}. * * @return Binary marshaller. * @throws IgniteCheckedException if failed. */
Create instance of <code>BinaryMarshaller</code> suitable for use without starting a grid upon an empty <code>IgniteConfiguration</code>
createStandaloneBinaryMarshaller
{ "repo_name": "ilantukh/ignite", "path": "modules/core/src/test/java/org/apache/ignite/testframework/junits/GridAbstractTest.java", "license": "apache-2.0", "size": 84789 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.configuration.IgniteConfiguration", "org.apache.ignite.internal.binary.BinaryMarshaller" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.configuration.IgniteConfiguration; import org.apache.ignite.internal.binary.BinaryMarshaller;
import org.apache.ignite.*; import org.apache.ignite.configuration.*; import org.apache.ignite.internal.binary.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,309,806
public static short getShort(Field field) { checkStatic(field); try { return field.getShort(null); } catch (Exception exp) { throw translate(exp); } }
static short function(Field field) { checkStatic(field); try { return field.getShort(null); } catch (Exception exp) { throw translate(exp); } }
/** * Gets the value of a static <code>short</code> field. * * @param field Field object whose value is returned. * @return the value of the <code>short</code> field */
Gets the value of a static <code>short</code> field
getShort
{ "repo_name": "haitaoyao/btrace", "path": "src/share/classes/com/sun/btrace/BTraceUtils.java", "license": "gpl-2.0", "size": 234341 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,734,007
private void doCommit(Map<TopicPartition, OffsetAndMetadata> offsets, boolean closing, int seqno) { if (closing) { doCommitSync(offsets, seqno); } else { doCommitAsync(offsets, seqno); } }
void function(Map<TopicPartition, OffsetAndMetadata> offsets, boolean closing, int seqno) { if (closing) { doCommitSync(offsets, seqno); } else { doCommitAsync(offsets, seqno); } }
/** * Starts an offset commit by flushing outstanding messages from the task and then starting * the write commit. **/
Starts an offset commit by flushing outstanding messages from the task and then starting the write commit
doCommit
{ "repo_name": "guozhangwang/kafka", "path": "connect/runtime/src/main/java/org/apache/kafka/connect/runtime/WorkerSinkTask.java", "license": "apache-2.0", "size": 37525 }
[ "java.util.Map", "org.apache.kafka.clients.consumer.OffsetAndMetadata", "org.apache.kafka.common.TopicPartition" ]
import java.util.Map; import org.apache.kafka.clients.consumer.OffsetAndMetadata; import org.apache.kafka.common.TopicPartition;
import java.util.*; import org.apache.kafka.clients.consumer.*; import org.apache.kafka.common.*;
[ "java.util", "org.apache.kafka" ]
java.util; org.apache.kafka;
1,546,001
private void parseFnType(String group, String value, VCardImpl vcard) throws VCardBuildException { try { FormattedNameFeature formattedNameFeature = new FormattedNameType(); if(VCardUtils.needsUnEscaping(value)) { formattedNameFeature.setFormattedName(VCardUtils.unescapeString(value)); } else...
void function(String group, String value, VCardImpl vcard) throws VCardBuildException { try { FormattedNameFeature formattedNameFeature = new FormattedNameType(); if(VCardUtils.needsUnEscaping(value)) { formattedNameFeature.setFormattedName(VCardUtils.unescapeString(value)); } else { formattedNameFeature.setFormattedNa...
/** * <p>Parses the FN type.</p> * * @param group * @param value * @param vcard * @throws VCardBuildException */
Parses the FN type
parseFnType
{ "repo_name": "FullMetal210/milton2", "path": "external/cardme/src/main/java/info/ineighborhood/cardme/engine/VCardEngine.java", "license": "agpl-3.0", "size": 85305 }
[ "info.ineighborhood.cardme.util.VCardUtils", "info.ineighborhood.cardme.vcard.VCardImpl", "info.ineighborhood.cardme.vcard.VCardType", "info.ineighborhood.cardme.vcard.errors.VCardBuildException", "info.ineighborhood.cardme.vcard.features.FormattedNameFeature", "info.ineighborhood.cardme.vcard.types.Forma...
import info.ineighborhood.cardme.util.VCardUtils; import info.ineighborhood.cardme.vcard.VCardImpl; import info.ineighborhood.cardme.vcard.VCardType; import info.ineighborhood.cardme.vcard.errors.VCardBuildException; import info.ineighborhood.cardme.vcard.features.FormattedNameFeature; import info.ineighborhood.cardme....
import info.ineighborhood.cardme.util.*; import info.ineighborhood.cardme.vcard.*; import info.ineighborhood.cardme.vcard.errors.*; import info.ineighborhood.cardme.vcard.features.*; import info.ineighborhood.cardme.vcard.types.*;
[ "info.ineighborhood.cardme" ]
info.ineighborhood.cardme;
654,352
final void updateStatsBorrow(PooledObject<T> p, long waitTime) { borrowedCount.incrementAndGet(); idleTimes.add(p.getIdleTimeMillis()); waitTimes.add(waitTime); // lock-free optimistic-locking maximum long currentMax; do { currentMax = maxBorrowWaitTimeMi...
final void updateStatsBorrow(PooledObject<T> p, long waitTime) { borrowedCount.incrementAndGet(); idleTimes.add(p.getIdleTimeMillis()); waitTimes.add(waitTime); long currentMax; do { currentMax = maxBorrowWaitTimeMillis.get(); if (currentMax >= waitTime) { break; } } while (!maxBorrowWaitTimeMillis.compareAndSet(curren...
/** * Updates statistics after an object is borrowed from the pool. * @param p object borrowed from the pool * @param waitTime time (in milliseconds) that the borrowing thread had to wait */
Updates statistics after an object is borrowed from the pool
updateStatsBorrow
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.22/BaseGenericObjectPool.java", "license": "mit", "size": 41932 }
[ "org.apache.tomcat.dbcp.pool2.PooledObject" ]
import org.apache.tomcat.dbcp.pool2.PooledObject;
import org.apache.tomcat.dbcp.pool2.*;
[ "org.apache.tomcat" ]
org.apache.tomcat;
1,657,949
@WebMethod List<RequestCrawlResult> requestCrawlByIdList( @WebParam(name = "auIds") List<String> auIds, @WebParam(name = "priority") Integer priority, @WebParam(name = "force") boolean force) throws LockssWebServicesFault;
List<RequestCrawlResult> requestCrawlByIdList( @WebParam(name = "auIds") List<String> auIds, @WebParam(name = STR) Integer priority, @WebParam(name = "force") boolean force) throws LockssWebServicesFault;
/** * Requests the crawl of the archival units defined by a list with their * identifiers. * * @param auIds * A List<String> with the identifiers (auids) of the archival units. * @param priority * An Integer with the priority of the crawl request. * @param force * ...
Requests the crawl of the archival units defined by a list with their identifiers
requestCrawlByIdList
{ "repo_name": "edina/lockss-daemon", "path": "src/org/lockss/ws/control/AuControlService.java", "license": "bsd-3-clause", "size": 10312 }
[ "java.util.List", "javax.jws.WebParam", "org.lockss.ws.entities.LockssWebServicesFault", "org.lockss.ws.entities.RequestCrawlResult" ]
import java.util.List; import javax.jws.WebParam; import org.lockss.ws.entities.LockssWebServicesFault; import org.lockss.ws.entities.RequestCrawlResult;
import java.util.*; import javax.jws.*; import org.lockss.ws.entities.*;
[ "java.util", "javax.jws", "org.lockss.ws" ]
java.util; javax.jws; org.lockss.ws;
2,841,342
void setStartState(Flow flow, TransitionableState state);
void setStartState(Flow flow, TransitionableState state);
/** * Sets start state. * * @param flow the flow * @param state the state */
Sets start state
setStartState
{ "repo_name": "zawn/cas", "path": "cas-server-core-webflow/src/main/java/org/apereo/cas/web/flow/CasWebflowConfigurer.java", "license": "apache-2.0", "size": 6314 }
[ "org.springframework.webflow.engine.Flow", "org.springframework.webflow.engine.TransitionableState" ]
import org.springframework.webflow.engine.Flow; import org.springframework.webflow.engine.TransitionableState;
import org.springframework.webflow.engine.*;
[ "org.springframework.webflow" ]
org.springframework.webflow;
1,562,245
private void abortConnection(StreamingConnection connection) { if (connection != null) { try { connection.abortTransaction(); } catch (Exception e) { getLogger().error("Failed to abort Hive Streaming transaction " + connection + " due to exception ", e...
void function(StreamingConnection connection) { if (connection != null) { try { connection.abortTransaction(); } catch (Exception e) { getLogger().error(STR + connection + STR, e); } } }
/** * Abort current Txn on the connection */
Abort current Txn on the connection
abortConnection
{ "repo_name": "joewitt/incubator-nifi", "path": "nifi-nar-bundles/nifi-hive-bundle/nifi-hive3-processors/src/main/java/org/apache/nifi/processors/hive/PutHive3Streaming.java", "license": "apache-2.0", "size": 30517 }
[ "org.apache.hive.streaming.StreamingConnection" ]
import org.apache.hive.streaming.StreamingConnection;
import org.apache.hive.streaming.*;
[ "org.apache.hive" ]
org.apache.hive;
977,385
public Boolean isValid() throws XMLEntityException { error = null; try { if (this.logoutRequestString == null || logoutRequestString.isEmpty()) { throw new Exception("SAML Logout Request is not loaded"); } if (this.request == null) { throw new Exception("The HttpRequest of the current host wa...
Boolean function() throws XMLEntityException { error = null; try { if (this.logoutRequestString == null logoutRequestString.isEmpty()) { throw new Exception(STR); } if (this.request == null) { throw new Exception(STR); } if (this.currentUrl == null this.currentUrl.isEmpty()) { throw new Exception(STR); } String signatu...
/** * Determines if the SAML LogoutRequest is valid or not * * @return true if the SAML LogoutRequest is valid * * @throws XMLEntityException */
Determines if the SAML LogoutRequest is valid or not
isValid
{ "repo_name": "jacklotusho/java-saml", "path": "core/src/main/java/com/onelogin/saml2/logout/LogoutRequest.java", "license": "mit", "size": 19285 }
[ "com.onelogin.saml2.exception.XMLEntityException", "com.onelogin.saml2.util.Constants", "com.onelogin.saml2.util.SchemaFactory", "com.onelogin.saml2.util.Util", "java.security.cert.X509Certificate", "org.joda.time.DateTime", "org.w3c.dom.Document", "org.w3c.dom.Element" ]
import com.onelogin.saml2.exception.XMLEntityException; import com.onelogin.saml2.util.Constants; import com.onelogin.saml2.util.SchemaFactory; import com.onelogin.saml2.util.Util; import java.security.cert.X509Certificate; import org.joda.time.DateTime; import org.w3c.dom.Document; import org.w3c.dom.Element;
import com.onelogin.saml2.exception.*; import com.onelogin.saml2.util.*; import java.security.cert.*; import org.joda.time.*; import org.w3c.dom.*;
[ "com.onelogin.saml2", "java.security", "org.joda.time", "org.w3c.dom" ]
com.onelogin.saml2; java.security; org.joda.time; org.w3c.dom;
1,731,262
public void perf() throws Exception { int maxTests = 50000; String storedSiteRoot = m_cms.getRequestContext().getSiteRoot(); try { m_cms.getRequestContext().setSiteRoot("/"); Random random = new Random(); // create a resource filter to get the reso...
void function() throws Exception { int maxTests = 50000; String storedSiteRoot = m_cms.getRequestContext().getSiteRoot(); try { m_cms.getRequestContext().setSiteRoot("/"); Random random = new Random(); List testResources = m_cms.readResources("/", CmsResourceFilter.ALL); int resourceCount = testResources.size(); System...
/** * Does performance measurements of the OpenCms core.<p> * * @throws Exception if something goes wrong */
Does performance measurements of the OpenCms core
perf
{ "repo_name": "comundus/opencms-comundus", "path": "src/main/java/org/opencms/main/CmsShellCommands.java", "license": "lgpl-2.1", "size": 43138 }
[ "java.util.List", "java.util.Random", "org.opencms.file.CmsResource", "org.opencms.file.CmsResourceFilter" ]
import java.util.List; import java.util.Random; import org.opencms.file.CmsResource; import org.opencms.file.CmsResourceFilter;
import java.util.*; import org.opencms.file.*;
[ "java.util", "org.opencms.file" ]
java.util; org.opencms.file;
1,696,426
public static PackageAction schedulePackageRemoval(User scheduler, Server srvr, List<Map<String, Long>> pkgs, Date earliestAction) { return (PackageAction) schedulePackageAction(scheduler, pkgs, ActionFactory.TYPE_PACKAGES_REMOVE, earliestAction, srvr); }
static PackageAction function(User scheduler, Server srvr, List<Map<String, Long>> pkgs, Date earliestAction) { return (PackageAction) schedulePackageAction(scheduler, pkgs, ActionFactory.TYPE_PACKAGES_REMOVE, earliestAction, srvr); }
/** * Schedules one or more package removal actions for the given server. * @param scheduler User scheduling the action. * @param srvr Server for which the action affects. * @param pkgs The list of packages to be removed. * @param earliestAction Date of earliest action to be executed * @re...
Schedules one or more package removal actions for the given server
schedulePackageRemoval
{ "repo_name": "ogajduse/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/action/ActionManager.java", "license": "gpl-2.0", "size": 71516 }
[ "com.redhat.rhn.domain.action.ActionFactory", "com.redhat.rhn.domain.action.rhnpackage.PackageAction", "com.redhat.rhn.domain.server.Server", "com.redhat.rhn.domain.user.User", "java.util.Date", "java.util.List", "java.util.Map" ]
import com.redhat.rhn.domain.action.ActionFactory; import com.redhat.rhn.domain.action.rhnpackage.PackageAction; import com.redhat.rhn.domain.server.Server; import com.redhat.rhn.domain.user.User; import java.util.Date; import java.util.List; import java.util.Map;
import com.redhat.rhn.domain.action.*; import com.redhat.rhn.domain.action.rhnpackage.*; import com.redhat.rhn.domain.server.*; import com.redhat.rhn.domain.user.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
1,822,300
@ServiceMethod(returns = ReturnType.SINGLE) public LabInner createOrUpdate(String resourceGroupName, String labName, LabInner body) { return createOrUpdateAsync(resourceGroupName, labName, body).block(); }
@ServiceMethod(returns = ReturnType.SINGLE) LabInner function(String resourceGroupName, String labName, LabInner body) { return createOrUpdateAsync(resourceGroupName, labName, body).block(); }
/** * Operation to create or update a lab resource. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param labName The name of the lab that uniquely identifies it within containing lab account. Used in resource * URIs. * @param body The requ...
Operation to create or update a lab resource
createOrUpdate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/labservices/azure-resourcemanager-labservices/src/main/java/com/azure/resourcemanager/labservices/implementation/LabsClientImpl.java", "license": "mit", "size": 103945 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.labservices.fluent.models.LabInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.labservices.fluent.models.LabInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.labservices.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,882,394
protected void copyFrom(Message m) { if(m.multicast_address.size()>0){ this.path = new ArrayList<DTNHost>(m.path); this.timeCreated = m.timeCreated; this.responseSize = m.responseSize; this.requestMsg = m.requestMsg; this.initTtl = m.initTtl; this.appID = m.appID; if (m.prope...
void function(Message m) { if(m.multicast_address.size()>0){ this.path = new ArrayList<DTNHost>(m.path); this.timeCreated = m.timeCreated; this.responseSize = m.responseSize; this.requestMsg = m.requestMsg; this.initTtl = m.initTtl; this.appID = m.appID; if (m.properties != null) { Set<String> keys = m.properties.keySe...
/** * Deep copies message data from other message. If new fields are * introduced to this class, most likely they should be copied here too * (unless done in constructor). * @param m The message where the data is copied */
Deep copies message data from other message. If new fields are introduced to this class, most likely they should be copied here too (unless done in constructor)
copyFrom
{ "repo_name": "smitbose/CommMDM", "path": "core/Message.java", "license": "gpl-3.0", "size": 11630 }
[ "java.util.ArrayList", "java.util.Set" ]
import java.util.ArrayList; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
838,395
@SuppressLint("NewApi") public static void tryAccessibilityAnnounce(View view, CharSequence text) { if (isJellybeanOrLater() && view != null && text != null) { view.announceForAccessibility(text); } }
@SuppressLint(STR) static void function(View view, CharSequence text) { if (isJellybeanOrLater() && view != null && text != null) { view.announceForAccessibility(text); } }
/** * Try to speak the specified text, for accessibility. Only available on JB or later. * @param text Text to announce. */
Try to speak the specified text, for accessibility. Only available on JB or later
tryAccessibilityAnnounce
{ "repo_name": "SequencingDOTcom/Weather-My-Way-RTP-App", "path": "Android/app/src/main/java/com/sequencing/weather/time/Utils.java", "license": "mit", "size": 5171 }
[ "android.annotation.SuppressLint", "android.view.View" ]
import android.annotation.SuppressLint; import android.view.View;
import android.annotation.*; import android.view.*;
[ "android.annotation", "android.view" ]
android.annotation; android.view;
1,672,319
public static void insert(XMLStreamWriter writer, Origin origin) throws XMLStreamException { XMLUtil.writeTextElement(writer, "id", origin.get_id()); XMLUtil.writeTextElement(writer, "catalog", origin.getCatalog()); XMLUtil.writeTextElement(writer, "contributor", origin.getContri...
static void function(XMLStreamWriter writer, Origin origin) throws XMLStreamException { XMLUtil.writeTextElement(writer, "id", origin.get_id()); XMLUtil.writeTextElement(writer, STR, origin.getCatalog()); XMLUtil.writeTextElement(writer, STR, origin.getContributor()); writer.writeStartElement(STR); XMLTime.insert(write...
/** * StAX insert */
StAX insert
insert
{ "repo_name": "crotwell/fissuresUtil", "path": "src/main/java/edu/sc/seis/fissuresUtil/xml/XMLOrigin.java", "license": "gpl-2.0", "size": 5733 }
[ "edu.iris.Fissures", "javax.xml.stream.XMLStreamException", "javax.xml.stream.XMLStreamWriter" ]
import edu.iris.Fissures; import javax.xml.stream.XMLStreamException; import javax.xml.stream.XMLStreamWriter;
import edu.iris.*; import javax.xml.stream.*;
[ "edu.iris", "javax.xml" ]
edu.iris; javax.xml;
2,724,160
public Builder putList(String setting, List<String> values) { remove(setting); map.put(setting, new ArrayList<>(values)); return this; }
Builder function(String setting, List<String> values) { remove(setting); map.put(setting, new ArrayList<>(values)); return this; }
/** * Sets the setting with the provided setting key and a list of values. * * @param setting The setting key * @param values The values * @return The builder */
Sets the setting with the provided setting key and a list of values
putList
{ "repo_name": "fred84/elasticsearch", "path": "server/src/main/java/org/elasticsearch/common/settings/Settings.java", "license": "apache-2.0", "size": 58320 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,012,017
public static AssertionType createAssertion(String id, NameIDType issuer) { XMLGregorianCalendar issueInstant = null; try { issueInstant = XMLTimeUtil.getIssueInstant(); } catch (ConfigurationException e) { throw new RuntimeException(e); } AssertionTyp...
static AssertionType function(String id, NameIDType issuer) { XMLGregorianCalendar issueInstant = null; try { issueInstant = XMLTimeUtil.getIssueInstant(); } catch (ConfigurationException e) { throw new RuntimeException(e); } AssertionType assertion = new AssertionType(id, issueInstant); assertion.setIssuer(issuer); re...
/** * Create an assertion * * @param id * @param issuer * * @return */
Create an assertion
createAssertion
{ "repo_name": "chameleon82/keycloak", "path": "saml-core/src/main/java/org/keycloak/saml/processing/core/saml/v2/util/AssertionUtil.java", "license": "apache-2.0", "size": 22336 }
[ "javax.xml.datatype.XMLGregorianCalendar", "org.keycloak.dom.saml.v2.assertion.AssertionType", "org.keycloak.dom.saml.v2.assertion.NameIDType", "org.keycloak.saml.common.exceptions.ConfigurationException" ]
import javax.xml.datatype.XMLGregorianCalendar; import org.keycloak.dom.saml.v2.assertion.AssertionType; import org.keycloak.dom.saml.v2.assertion.NameIDType; import org.keycloak.saml.common.exceptions.ConfigurationException;
import javax.xml.datatype.*; import org.keycloak.dom.saml.v2.assertion.*; import org.keycloak.saml.common.exceptions.*;
[ "javax.xml", "org.keycloak.dom", "org.keycloak.saml" ]
javax.xml; org.keycloak.dom; org.keycloak.saml;
1,842,662
private static void sanitize(JPopupMenu menu) { boolean hasSeparator = false; for (int i = 0; i < menu.getComponentCount(); i++) { var comp = menu.getComponent(i); if (comp instanceof JSeparator) { // Already has one separator? So hide this one. // Also hide if it's the first or last compone...
static void function(JPopupMenu menu) { boolean hasSeparator = false; for (int i = 0; i < menu.getComponentCount(); i++) { var comp = menu.getComponent(i); if (comp instanceof JSeparator) { if (hasSeparator i == 0 i == menu.getComponentCount() - 1) comp.setVisible(false); else hasSeparator = true; } else if (comp.isVis...
/** * Hides duplicate separators. */
Hides duplicate separators
sanitize
{ "repo_name": "cytoscape/cytoscape-impl", "path": "table-presentation-impl/src/main/java/org/cytoscape/view/table/internal/impl/PopupMenuHelper.java", "license": "lgpl-2.1", "size": 15712 }
[ "javax.swing.AbstractAction", "javax.swing.JPopupMenu", "javax.swing.JSeparator", "org.cytoscape.work.TaskFactory" ]
import javax.swing.AbstractAction; import javax.swing.JPopupMenu; import javax.swing.JSeparator; import org.cytoscape.work.TaskFactory;
import javax.swing.*; import org.cytoscape.work.*;
[ "javax.swing", "org.cytoscape.work" ]
javax.swing; org.cytoscape.work;
551,811
@RequestMapping("/start") public String start(@ModelAttribute("assessmentForm") AssessmentForm assessmentForm, HttpServletRequest request) throws ServletException { ToolAccessMode mode = WebUtil.readToolAccessModeAuthorDefaulted(request); return readDatabaseData(assessmentForm, request, mode); }
@RequestMapping(STR) String function(@ModelAttribute(STR) AssessmentForm assessmentForm, HttpServletRequest request) throws ServletException { ToolAccessMode mode = WebUtil.readToolAccessModeAuthorDefaulted(request); return readDatabaseData(assessmentForm, request, mode); }
/** * Read assessment data from database and put them into HttpSession. It will redirect to init.do directly after this * method run successfully. * * This method will avoid read database again and lost un-saved resouce question lost when user "refresh page", */
Read assessment data from database and put them into HttpSession. It will redirect to init.do directly after this method run successfully. This method will avoid read database again and lost un-saved resouce question lost when user "refresh page"
start
{ "repo_name": "lamsfoundation/lams", "path": "lams_tool_assessment/src/java/org/lamsfoundation/lams/tool/assessment/web/controller/AuthoringController.java", "license": "gpl-2.0", "size": 44143 }
[ "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "org.lamsfoundation.lams.tool.ToolAccessMode", "org.lamsfoundation.lams.tool.assessment.web.form.AssessmentForm", "org.lamsfoundation.lams.util.WebUtil", "org.springframework.web.bind.annotation.ModelAttribute", "org.springframew...
import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import org.lamsfoundation.lams.tool.ToolAccessMode; import org.lamsfoundation.lams.tool.assessment.web.form.AssessmentForm; import org.lamsfoundation.lams.util.WebUtil; import org.springframework.web.bind.annotation.ModelAttribute; imp...
import javax.servlet.*; import javax.servlet.http.*; import org.lamsfoundation.lams.tool.*; import org.lamsfoundation.lams.tool.assessment.web.form.*; import org.lamsfoundation.lams.util.*; import org.springframework.web.bind.annotation.*;
[ "javax.servlet", "org.lamsfoundation.lams", "org.springframework.web" ]
javax.servlet; org.lamsfoundation.lams; org.springframework.web;
793,689
public List<ExtentTypeSubFieldMapper> getByExtentTypeId(Long id);
List<ExtentTypeSubFieldMapper> function(Long id);
/** * Get by the extent type id. * * @param id - extent type id. * @return the list of mappers */
Get by the extent type id
getByExtentTypeId
{ "repo_name": "nate-rcl/irplus", "path": "ir_dao/src/edu/ur/ir/item/metadata/marc/ExtentTypeSubFieldMapperDAO.java", "license": "apache-2.0", "size": 1550 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,072,036
void decorateIntygWithValidActionLinks(ListIntygEntry listIntygEntry, Personnummer patient);
void decorateIntygWithValidActionLinks(ListIntygEntry listIntygEntry, Personnummer patient);
/** * Add available action links to a ListIntygEntry. * * @param listIntygEntry Entry to decorate. * @param patient Patient to consider. */
Add available action links to a ListIntygEntry
decorateIntygWithValidActionLinks
{ "repo_name": "sklintyg/webcert", "path": "web/src/main/java/se/inera/intyg/webcert/web/web/util/resourcelinks/ResourceLinkHelper.java", "license": "gpl-3.0", "size": 3824 }
[ "se.inera.intyg.schemas.contract.Personnummer", "se.inera.intyg.webcert.web.web.controller.api.dto.ListIntygEntry" ]
import se.inera.intyg.schemas.contract.Personnummer; import se.inera.intyg.webcert.web.web.controller.api.dto.ListIntygEntry;
import se.inera.intyg.schemas.contract.*; import se.inera.intyg.webcert.web.web.controller.api.dto.*;
[ "se.inera.intyg" ]
se.inera.intyg;
1,130,146
@Test public void testCreateJobDefinitionWithS3PropertiesLocationValidateBucketNameRequired() throws Exception { S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation(); s3PropertiesLocation.setBucketName(null); testCreateJobDefinitionWithS3PropertiesLocationValidate(s3...
void function() throws Exception { S3PropertiesLocation s3PropertiesLocation = getS3PropertiesLocation(); s3PropertiesLocation.setBucketName(null); testCreateJobDefinitionWithS3PropertiesLocationValidate(s3PropertiesLocation, IllegalArgumentException.class, STR); }
/** * Asserts that if {@link S3PropertiesLocation} is given, bucket name is required. * * @throws Exception */
Asserts that if <code>S3PropertiesLocation</code> is given, bucket name is required
testCreateJobDefinitionWithS3PropertiesLocationValidateBucketNameRequired
{ "repo_name": "seoj/herd", "path": "herd-code/herd-service/src/test/java/org/finra/herd/service/JobDefinitionServiceTest.java", "license": "apache-2.0", "size": 22153 }
[ "org.finra.herd.model.api.xml.S3PropertiesLocation" ]
import org.finra.herd.model.api.xml.S3PropertiesLocation;
import org.finra.herd.model.api.xml.*;
[ "org.finra.herd" ]
org.finra.herd;
1,696,580
public void setName(String name) { this.name = name; putProperty(KEY_NAME, this.name); setInitials(StringUtil.getInitials(name)); }
void function(String name) { this.name = name; putProperty(KEY_NAME, this.name); setInitials(StringUtil.getInitials(name)); }
/** * Setting the name also sets some default initials, so if you wish to set * some specific initials then it should be done after setting the name. * * @see DefaultBookMetaData#setInitials(String) * @param name * The name to set. */
Setting the name also sets some default initials, so if you wish to set some specific initials then it should be done after setting the name
setName
{ "repo_name": "truhanen/JSana", "path": "JSana/src_others/org/crosswire/jsword/book/basic/DefaultBookMetaData.java", "license": "gpl-2.0", "size": 7179 }
[ "org.crosswire.common.util.StringUtil" ]
import org.crosswire.common.util.StringUtil;
import org.crosswire.common.util.*;
[ "org.crosswire.common" ]
org.crosswire.common;
81,075
int computeInvalidateWork(int nodesToProcess) { final List<DatanodeInfo> nodes = invalidateBlocks.getDatanodes(); Collections.shuffle(nodes); nodesToProcess = Math.min(nodes.size(), nodesToProcess); int blockCnt = 0; for (DatanodeInfo dnInfo : nodes) { int blocks = invalidateWorkForOneNode...
int computeInvalidateWork(int nodesToProcess) { final List<DatanodeInfo> nodes = invalidateBlocks.getDatanodes(); Collections.shuffle(nodes); nodesToProcess = Math.min(nodes.size(), nodesToProcess); int blockCnt = 0; for (DatanodeInfo dnInfo : nodes) { int blocks = invalidateWorkForOneNode(dnInfo); if (blocks > 0) { bl...
/** * Schedule blocks for deletion at datanodes * @param nodesToProcess number of datanodes to schedule deletion work * @return total number of block for deletion */
Schedule blocks for deletion at datanodes
computeInvalidateWork
{ "repo_name": "Wajihulhassan/Hadoop-2.7.0", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/blockmanagement/BlockManager.java", "license": "apache-2.0", "size": 146618 }
[ "java.util.Collections", "java.util.List", "org.apache.hadoop.hdfs.protocol.DatanodeInfo" ]
import java.util.Collections; import java.util.List; import org.apache.hadoop.hdfs.protocol.DatanodeInfo;
import java.util.*; import org.apache.hadoop.hdfs.protocol.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
384,539
@ObjectiveCName("changeNotificationVibrationEnabledWithValue:") public void changeNotificationVibrationEnabled(boolean val) { modules.getSettingsModule().changeNotificationVibrationEnabled(val); }
@ObjectiveCName(STR) void function(boolean val) { modules.getSettingsModule().changeNotificationVibrationEnabled(val); }
/** * Change notification vibration enabled * * @param val is notification vibration enabled */
Change notification vibration enabled
changeNotificationVibrationEnabled
{ "repo_name": "EaglesoftZJ/actor-platform", "path": "actor-sdk/sdk-core/core/core-shared/src/main/java/im/actor/core/Messenger.java", "license": "agpl-3.0", "size": 86315 }
[ "com.google.j2objc.annotations.ObjectiveCName" ]
import com.google.j2objc.annotations.ObjectiveCName;
import com.google.j2objc.annotations.*;
[ "com.google.j2objc" ]
com.google.j2objc;
1,247,381
Collection<? extends U2FDeviceRegistration> getRegisteredDevices(String username);
Collection<? extends U2FDeviceRegistration> getRegisteredDevices(String username);
/** * Gets registrations. * * @param username the username * @return the registrations */
Gets registrations
getRegisteredDevices
{ "repo_name": "apereo/cas", "path": "support/cas-server-support-u2f-core/src/main/java/org/apereo/cas/adaptors/u2f/storage/U2FDeviceRepository.java", "license": "apache-2.0", "size": 3459 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
127,806
@GET @Path("status") String schedulerStatus(@HeaderParam("sessionid") String sessionId);
@Path(STR) String schedulerStatus(@HeaderParam(STR) String sessionId);
/** * Returns the Scheduler status as a String, * ie org.ow2.proactive.scheduler.common.SchedulerStatus.toString() * @param sessionId a valid session id * @return a String describing the current scheduler status */
Returns the Scheduler status as a String, ie org.ow2.proactive.scheduler.common.SchedulerStatus.toString()
schedulerStatus
{ "repo_name": "lpellegr/scheduling-portal", "path": "scheduler-portal/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/server/RestClient.java", "license": "agpl-3.0", "size": 32783 }
[ "javax.ws.rs.HeaderParam", "javax.ws.rs.Path" ]
import javax.ws.rs.HeaderParam; import javax.ws.rs.Path;
import javax.ws.rs.*;
[ "javax.ws" ]
javax.ws;
2,122,737
public Charset getCharset() { return charset; }
Charset function() { return charset; }
/** * Returns the current character encoding used for reading the data values. * The default encoding is UTF-8. * * @return the current character encoding. */
Returns the current character encoding used for reading the data values. The default encoding is UTF-8
getCharset
{ "repo_name": "metafacture/metafacture-core", "path": "metafacture-biblio/src/main/java/org/metafacture/biblio/iso2709/Record.java", "license": "apache-2.0", "size": 8987 }
[ "java.nio.charset.Charset" ]
import java.nio.charset.Charset;
import java.nio.charset.*;
[ "java.nio" ]
java.nio;
2,018,223
private static String sslContextAlgorithm(List<String> supportedProtocols) { if (supportedProtocols.isEmpty()) { throw new IllegalArgumentException("no SSL/TLS protocols have been configured"); } for (Entry<String, String> entry : ORDERED_PROTOCOL_ALGORITHM_MAP.entrySet()) { ...
static String function(List<String> supportedProtocols) { if (supportedProtocols.isEmpty()) { throw new IllegalArgumentException(STR); } for (Entry<String, String> entry : ORDERED_PROTOCOL_ALGORITHM_MAP.entrySet()) { if (supportedProtocols.contains(entry.getKey())) { return entry.getValue(); } } throw new IllegalArgume...
/** * Maps the supported protocols to an appropriate ssl context algorithm. We make an attempt to use the "best" algorithm when * possible. The names in this method are taken from the * <a href="https://docs.oracle.com/en/java/javase/11/docs/specs/security/standard-names.html#sslcontext-algorithms">Java ...
Maps the supported protocols to an appropriate ssl context algorithm. We make an attempt to use the "best" algorithm when possible. The names in this method are taken from the Java Security Standard Algorithm Names Documentation for Java 11
sslContextAlgorithm
{ "repo_name": "HonzaKral/elasticsearch", "path": "x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ssl/SSLService.java", "license": "apache-2.0", "size": 40850 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,431,146
protected void addTopicsNamePropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_InboundEndpoint_topicsName_feature"), getString("_UI_PropertyDes...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.INBOUND_ENDPOINT__TOPICS_NAME, true, false, false, ItemPropertyDescriptor.GEN...
/** * This adds a property descriptor for the Topics Name feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Topics Name feature.
addTopicsNamePropertyDescriptor
{ "repo_name": "nwnpallewela/developer-studio", "path": "esb/plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/InboundEndpointItemProvider.java", "license": "apache-2.0", "size": 156993 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage;
import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.gmf.esb.*;
[ "org.eclipse.emf", "org.wso2.developerstudio" ]
org.eclipse.emf; org.wso2.developerstudio;
7,167
private void addUdpClLink(String[] words) { // add udpcl link <lName> <ifName> {ipv6} // 0 1 2 3 4 5 if (words.length == 4 || words.length == 5) { String linkName = words[3]; if (LinksList.getInstance().findLinkByName(linkName) != null) { System.err.println("Already a Link named...
void function(String[] words) { if (words.length == 4 words.length == 5) { String linkName = words[3]; if (LinksList.getInstance().findLinkByName(linkName) != null) { System.err.println(STR + linkName + "'"); return; } String ifName = words[4]; boolean wantIpv6 = false; if (words.length == 6) { if (words[5].equalsIgnor...
/** * Execute the 'add udpcl link' command. * @param words arguments */
Execute the 'add udpcl link' command
addUdpClLink
{ "repo_name": "KritikalFabric/corefabric.io", "path": "src/contrib/java/com/cisco/qte/jdtn/Shell.java", "license": "apache-2.0", "size": 123060 }
[ "com.cisco.qte.jdtn.general.JDtnException", "com.cisco.qte.jdtn.general.LinksList", "com.cisco.qte.jdtn.udpcl.UdpClManagement" ]
import com.cisco.qte.jdtn.general.JDtnException; import com.cisco.qte.jdtn.general.LinksList; import com.cisco.qte.jdtn.udpcl.UdpClManagement;
import com.cisco.qte.jdtn.general.*; import com.cisco.qte.jdtn.udpcl.*;
[ "com.cisco.qte" ]
com.cisco.qte;
225,909
@GET @Path("{userId}") @Produces({ "application/xml", "application/json" }) @PreAuthorize("@rangerPreAuthSecurityHandler.isAPIAccessible(\"" + RangerAPIList.GET_USER_PROFILE_FOR_USER + "\")") public VXPortalUser getUserProfileForUser(@PathParam("userId") Long userId) { try { VXPortalUser userProfile = userM...
@Path(STR) @Produces({ STR, STR }) @PreAuthorize(STRSTR\")") VXPortalUser function(@PathParam(STR) Long userId) { try { VXPortalUser userProfile = userManager.getUserProfile(userId); if (userProfile != null) { if (logger.isDebugEnabled()) { logger.debug(STR + userId); } } else { logger.debug(STR + userId); } return use...
/** * Return the VUserProfile for the given userId * * @param userId * @return */
Return the VUserProfile for the given userId
getUserProfileForUser
{ "repo_name": "gzsombor/ranger", "path": "security-admin/src/main/java/org/apache/ranger/rest/UserREST.java", "license": "apache-2.0", "size": 12303 }
[ "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "org.apache.ranger.view.VXPortalUser", "org.springframework.security.access.prepost.PreAuthorize" ]
import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import org.apache.ranger.view.VXPortalUser; import org.springframework.security.access.prepost.PreAuthorize;
import javax.ws.rs.*; import org.apache.ranger.view.*; import org.springframework.security.access.prepost.*;
[ "javax.ws", "org.apache.ranger", "org.springframework.security" ]
javax.ws; org.apache.ranger; org.springframework.security;
1,463,735
public static ServerSpace newGCspyServerSpace( ServerInterpreter serverInterpreter, String serverName, String driverName, String title, String blockInfo, int tileNum, String unused, boolean mainSpace) { return factory.newGCspyServerSpace(serverInterpreter, serverNam...
static ServerSpace function( ServerInterpreter serverInterpreter, String serverName, String driverName, String title, String blockInfo, int tileNum, String unused, boolean mainSpace) { return factory.newGCspyServerSpace(serverInterpreter, serverName, driverName, title, blockInfo, tileNum, unused, mainSpace); }
/** * Create a new ServerInterpreter instance using the appropriate * VM-specific concrete ServerInterpreter sub-class. * * @see ServerInterpreter * * @return A concrete VM-specific ServerInterpreter instance. */
Create a new ServerInterpreter instance using the appropriate VM-specific concrete ServerInterpreter sub-class
newGCspyServerSpace
{ "repo_name": "rmcilroy/HeraJVM", "path": "MMTk/src/org/mmtk/vm/VM.java", "license": "epl-1.0", "size": 14612 }
[ "org.mmtk.vm.gcspy.ServerInterpreter", "org.mmtk.vm.gcspy.ServerSpace" ]
import org.mmtk.vm.gcspy.ServerInterpreter; import org.mmtk.vm.gcspy.ServerSpace;
import org.mmtk.vm.gcspy.*;
[ "org.mmtk.vm" ]
org.mmtk.vm;
2,707,739
public void send (ISOMsg msg) { send (msg, null, 0L, false); }
void function (ISOMsg msg) { send (msg, null, 0L, false); }
/** * queue message for transmission * @param msg message to send */
queue message for transmission
send
{ "repo_name": "napramirez/jPOS-EE", "path": "modules/saf/src/main/java/org/jpos/saf/SAF.java", "license": "agpl-3.0", "size": 11852 }
[ "org.jpos.iso.ISOMsg" ]
import org.jpos.iso.ISOMsg;
import org.jpos.iso.*;
[ "org.jpos.iso" ]
org.jpos.iso;
2,550,444
public List<Path> getSrcPathExpanded() throws IOException { FileSystem fs = srcPath.getFileSystem(conf); // globbing on srcPath FileStatus[] gpaths = fs.globStatus(srcPath); if (gpaths == null) { return Collections.emptyList(); } List<Path> results = new ArrayList<Path>(gpaths.length); ...
List<Path> function() throws IOException { FileSystem fs = srcPath.getFileSystem(conf); FileStatus[] gpaths = fs.globStatus(srcPath); if (gpaths == null) { return Collections.emptyList(); } List<Path> results = new ArrayList<Path>(gpaths.length); for (FileStatus f : gpaths) { results.add(f.getPath().makeQualified(fs));...
/** * Get the expanded (unglobbed) forms of the srcPaths */
Get the expanded (unglobbed) forms of the srcPaths
getSrcPathExpanded
{ "repo_name": "jchen123/hadoop-20-warehouse-fix", "path": "src/contrib/raid/src/java/org/apache/hadoop/raid/protocol/PolicyInfo.java", "license": "apache-2.0", "size": 8167 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.Collections", "java.util.List", "org.apache.hadoop.fs.FileStatus", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path" ]
import java.io.IOException; import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path;
import java.io.*; import java.util.*; import org.apache.hadoop.fs.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,216,576
@Override public void fromPNML(OMElement subRoot, IdRefLinker idr) throws InnerBuildException, InvalidIDException, VoidRepositoryException;
void function(OMElement subRoot, IdRefLinker idr) throws InnerBuildException, InvalidIDException, VoidRepositoryException;
/** * set values to conform PNML document */
set values to conform PNML document
fromPNML
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/booleans/BooleanConstant.java", "license": "epl-1.0", "size": 3715 }
[ "fr.lip6.move.pnml.framework.utils.IdRefLinker", "fr.lip6.move.pnml.framework.utils.exception.InnerBuildException", "fr.lip6.move.pnml.framework.utils.exception.InvalidIDException", "fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException", "org.apache.axiom.om.OMElement" ]
import fr.lip6.move.pnml.framework.utils.IdRefLinker; import fr.lip6.move.pnml.framework.utils.exception.InnerBuildException; import fr.lip6.move.pnml.framework.utils.exception.InvalidIDException; import fr.lip6.move.pnml.framework.utils.exception.VoidRepositoryException; import org.apache.axiom.om.OMElement;
import fr.lip6.move.pnml.framework.utils.*; import fr.lip6.move.pnml.framework.utils.exception.*; import org.apache.axiom.om.*;
[ "fr.lip6.move", "org.apache.axiom" ]
fr.lip6.move; org.apache.axiom;
737,961
public void execute(String url, ActionListener response){ impl.execute(url, response); }
void function(String url, ActionListener response){ impl.execute(url, response); }
/** * Executes the given URL on the native platform, this method is useful if * the platform has the ability to send an event to the app when the execution * has ended, currently this works only for Android platform to invoke other * intents. * * @param url the url to execute * @para...
Executes the given URL on the native platform, this method is useful if the platform has the ability to send an event to the app when the execution has ended, currently this works only for Android platform to invoke other intents
execute
{ "repo_name": "diamonddevgroup/CodenameOne", "path": "CodenameOne/src/com/codename1/ui/Display.java", "license": "gpl-2.0", "size": 187718 }
[ "com.codename1.ui.events.ActionListener" ]
import com.codename1.ui.events.ActionListener;
import com.codename1.ui.events.*;
[ "com.codename1.ui" ]
com.codename1.ui;
2,145,058
public static boolean lookaheadEquivForApproxAndFullAnalysis(Lookahead[] bset, int k) { // first k-1 sets degree 1? for (int i=1; i<=k-1; i++) { BitSet look = bset[i].fset; if ( look.degree()>1 ) { return false; } } return true; }
static boolean function(Lookahead[] bset, int k) { for (int i=1; i<=k-1; i++) { BitSet look = bset[i].fset; if ( look.degree()>1 ) { return false; } } return true; }
/** If the first k-1 sets are singleton sets, the appoximate * lookahead analysis is equivalent to full lookahead analysis. */
If the first k-1 sets are singleton sets, the appoximate lookahead analysis is equivalent to full lookahead analysis
lookaheadEquivForApproxAndFullAnalysis
{ "repo_name": "dbenn/cgp", "path": "lib/antlr-2.7.0/antlr/LLkAnalyzer.java", "license": "gpl-2.0", "size": 36852 }
[ "antlr.collections.impl.BitSet" ]
import antlr.collections.impl.BitSet;
import antlr.collections.impl.*;
[ "antlr.collections.impl" ]
antlr.collections.impl;
1,266,554
public ServiceResponse<Void> putComplexValid(List<Product> arrayBody) throws ErrorException, IOException, IllegalArgumentException { if (arrayBody == null) { throw new IllegalArgumentException("Parameter arrayBody is required and cannot be null."); } Validator.validate(arrayB...
ServiceResponse<Void> function(List<Product> arrayBody) throws ErrorException, IOException, IllegalArgumentException { if (arrayBody == null) { throw new IllegalArgumentException(STR); } Validator.validate(arrayBody); Call<ResponseBody> call = service.putComplexValid(arrayBody); return putComplexValidDelegate(call.exec...
/** * Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]. * * @param arrayBody the List&lt;Product&gt; value * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown fr...
Put an array of complex type with values [{'integer': 1 'string': '2'}, {'integer': 3, 'string': '4'}, {'integer': 5, 'string': '6'}]
putComplexValid
{ "repo_name": "stankovski/AutoRest", "path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/bodyarray/ArrayOperationsImpl.java", "license": "mit", "size": 167174 }
[ "com.microsoft.rest.ServiceResponse", "com.microsoft.rest.Validator", "java.io.IOException", "java.util.List" ]
import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; import java.io.IOException; import java.util.List;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
2,041,998
@Deprecated @RequiresPermissions("objects:read") private static EnvObjectLogic getObjectByUUID(String uuid) { for (Iterator<EnvObjectLogic> it = iterator(); it.hasNext();) { EnvObjectLogic object = it.next(); if (object.getPojo().getUUID().equalsIgnoreCase(uuid)) { ...
@RequiresPermissions(STR) static EnvObjectLogic function(String uuid) { for (Iterator<EnvObjectLogic> it = iterator(); it.hasNext();) { EnvObjectLogic object = it.next(); if (object.getPojo().getUUID().equalsIgnoreCase(uuid)) { return object; } } return null; }
/** * Gets the object by name * * @param uuid * @return */
Gets the object by name
getObjectByUUID
{ "repo_name": "bgarrels/freedomotic", "path": "framework/freedomotic-core/src/main/java/com/freedomotic/things/impl/ThingRepositoryImpl.java", "license": "gpl-2.0", "size": 21123 }
[ "com.freedomotic.things.EnvObjectLogic", "java.util.Iterator", "org.apache.shiro.authz.annotation.RequiresPermissions" ]
import com.freedomotic.things.EnvObjectLogic; import java.util.Iterator; import org.apache.shiro.authz.annotation.RequiresPermissions;
import com.freedomotic.things.*; import java.util.*; import org.apache.shiro.authz.annotation.*;
[ "com.freedomotic.things", "java.util", "org.apache.shiro" ]
com.freedomotic.things; java.util; org.apache.shiro;
430,388
public void setExtensions(IoSession session, ActiveWsExtensions extensions);
void function(IoSession session, ActiveWsExtensions extensions);
/** * A filter that can accept extensions to participate in its tasks of encoding/decoding. * @param session the session * @param extensions the extensions to associate with this filter * */
A filter that can accept extensions to participate in its tasks of encoding/decoding
setExtensions
{ "repo_name": "jitsni/gateway.distribution", "path": "gateway.transport.ws/src/main/java/org/kaazing/gateway/transport/ws/bridge/filter/ExtensionAwareCodecFilter.java", "license": "apache-2.0", "size": 1492 }
[ "org.apache.mina.core.session.IoSession", "org.kaazing.gateway.transport.ws.extension.ActiveWsExtensions" ]
import org.apache.mina.core.session.IoSession; import org.kaazing.gateway.transport.ws.extension.ActiveWsExtensions;
import org.apache.mina.core.session.*; import org.kaazing.gateway.transport.ws.extension.*;
[ "org.apache.mina", "org.kaazing.gateway" ]
org.apache.mina; org.kaazing.gateway;
906,502
private static void checkForDuplicateLabels(Rule rule, EventHandler eventHandler) { for (Attribute attribute : rule.getAttributes()) { if (attribute.getType() == Type.LABEL_LIST) { checkForDuplicateLabels(rule, attribute, eventHandler); } } }
static void function(Rule rule, EventHandler eventHandler) { for (Attribute attribute : rule.getAttributes()) { if (attribute.getType() == Type.LABEL_LIST) { checkForDuplicateLabels(rule, attribute, eventHandler); } } }
/** * Report an error for each label that appears more than once in a LABEL_LIST attribute * of the given rule. * * @param rule The rule. * @param eventHandler The eventHandler to use to report the duplicated deps. */
Report an error for each label that appears more than once in a LABEL_LIST attribute of the given rule
checkForDuplicateLabels
{ "repo_name": "rzagabe/bazel", "path": "src/main/java/com/google/devtools/build/lib/packages/RuleClass.java", "license": "apache-2.0", "size": 60830 }
[ "com.google.devtools.build.lib.events.EventHandler" ]
import com.google.devtools.build.lib.events.EventHandler;
import com.google.devtools.build.lib.events.*;
[ "com.google.devtools" ]
com.google.devtools;
309,958
@Test public void createSuccess() { // test the two creation methods World w = new World(); w = new World(new AxisAlignedBounds(1.0, 1.0)); // make sure all the other junk is not null TestCase.assertNotNull(w.settings); TestCase.assertNotNull(w.bodies); TestCase.assertNotNull(w.bounds); Tes...
void function() { World w = new World(); w = new World(new AxisAlignedBounds(1.0, 1.0)); TestCase.assertNotNull(w.settings); TestCase.assertNotNull(w.bodies); TestCase.assertNotNull(w.bounds); TestCase.assertNotNull(w.broadphaseDetector); TestCase.assertNotNull(w.coefficientMixer); TestCase.assertNotNull(w.contactManag...
/** * Tests the successful creation of a world object. */
Tests the successful creation of a world object
createSuccess
{ "repo_name": "satishbabusee/dyn4j", "path": "junit/org/dyn4j/dynamics/WorldTest.java", "license": "bsd-3-clause", "size": 27828 }
[ "junit.framework.TestCase", "org.dyn4j.collision.AxisAlignedBounds" ]
import junit.framework.TestCase; import org.dyn4j.collision.AxisAlignedBounds;
import junit.framework.*; import org.dyn4j.collision.*;
[ "junit.framework", "org.dyn4j.collision" ]
junit.framework; org.dyn4j.collision;
690,669
private String decryptInternal(SecretKeySpec key, byte[] encryptedBytes) { try { Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM + ENCRYPTION_ALGORITHM_MODIFIER); cipher.init(Cipher.DECRYPT_MODE, key); byte[] decryptedBytes = cipher.doFinal(encryptedBytes); ...
String function(SecretKeySpec key, byte[] encryptedBytes) { try { Cipher cipher = Cipher.getInstance(ENCRYPTION_ALGORITHM + ENCRYPTION_ALGORITHM_MODIFIER); cipher.init(Cipher.DECRYPT_MODE, key); byte[] decryptedBytes = cipher.doFinal(encryptedBytes); return new String(decryptedBytes, ENCODING); } catch (GeneralSecurity...
/** * Internal decryption method. * * @param key - the SecretKeySpec used to decrypt * @param encryptedBytes - the byte[] to decrypt * @return the decrypted plaintext String. */
Internal decryption method
decryptInternal
{ "repo_name": "TNG/property-loader", "path": "src/main/java/com/tngtech/propertyloader/Obfuscator.java", "license": "apache-2.0", "size": 3784 }
[ "java.io.UnsupportedEncodingException", "java.security.GeneralSecurityException", "javax.crypto.Cipher", "javax.crypto.spec.SecretKeySpec" ]
import java.io.UnsupportedEncodingException; import java.security.GeneralSecurityException; import javax.crypto.Cipher; import javax.crypto.spec.SecretKeySpec;
import java.io.*; import java.security.*; import javax.crypto.*; import javax.crypto.spec.*;
[ "java.io", "java.security", "javax.crypto" ]
java.io; java.security; javax.crypto;
2,857,336
public String getArtifactManagementKey( Artifact artifact ) { return artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getType() + ( ( artifact.getClassifier() != null ) ? ":" + artifact.getClassifier() : "" ); }
String function( Artifact artifact ) { return artifact.getGroupId() + ":" + artifact.getArtifactId() + ":" + artifact.getType() + ( ( artifact.getClassifier() != null ) ? ":" + artifact.getClassifier() : "" ); }
/** * This function returns a string comparable with Dependency.GetManagementKey. * * @param artifact to gen the key for * @return a string in the form: groupId:ArtifactId:Type[:Classifier] */
This function returns a string comparable with Dependency.GetManagementKey
getArtifactManagementKey
{ "repo_name": "khmarbaise/maven-plugins", "path": "maven-dependency-plugin/src/main/java/org/apache/maven/plugin/dependency/analyze/AnalyzeDepMgt.java", "license": "apache-2.0", "size": 12725 }
[ "org.apache.maven.artifact.Artifact" ]
import org.apache.maven.artifact.Artifact;
import org.apache.maven.artifact.*;
[ "org.apache.maven" ]
org.apache.maven;
221,920
protected int getByCriteriaQueryCount(Predicate wherePredicate) { EntityManager em = EntityManagerInstancesCreator.getEntityManagerInstance(); CriteriaQuery<Long> query = getCriteriaBuilder().createQuery(Long.class); return em.createQuery(query.select(getCriteriaBuilder().count(getRoot())).where(wherePredicat...
int function(Predicate wherePredicate) { EntityManager em = EntityManagerInstancesCreator.getEntityManagerInstance(); CriteriaQuery<Long> query = getCriteriaBuilder().createQuery(Long.class); return em.createQuery(query.select(getCriteriaBuilder().count(getRoot())).where(wherePredicate)).getSingleResult().intValue(); }
/** * Performs a criteria query that returns the number of entities satisfying the given predicate. * @param wherePredicate predicate that must be satisfied by the returned entities * @return number of entities satisfying the predicate */
Performs a criteria query that returns the number of entities satisfying the given predicate
getByCriteriaQueryCount
{ "repo_name": "tomkren/pikater", "path": "src/org/pikater/shared/database/jpa/daos/AbstractDAO.java", "license": "apache-2.0", "size": 16877 }
[ "javax.persistence.EntityManager", "javax.persistence.criteria.CriteriaQuery", "javax.persistence.criteria.Predicate", "org.pikater.shared.database.jpa.EntityManagerInstancesCreator" ]
import javax.persistence.EntityManager; import javax.persistence.criteria.CriteriaQuery; import javax.persistence.criteria.Predicate; import org.pikater.shared.database.jpa.EntityManagerInstancesCreator;
import javax.persistence.*; import javax.persistence.criteria.*; import org.pikater.shared.database.jpa.*;
[ "javax.persistence", "org.pikater.shared" ]
javax.persistence; org.pikater.shared;
2,226,634
public static void convert(final File pdfFile, final File destination) { File out = new File(destination.getParentFile(), destination.getName() + "_%." + JSON_DOCUMENT_EXTENSION); try { if (exec(buildJsonPdfCommandLine(pdfFile, out)).isEmpty()) { throw new ViewerException("pdf2json conve...
static void function(final File pdfFile, final File destination) { File out = new File(destination.getParentFile(), destination.getName() + "_%." + JSON_DOCUMENT_EXTENSION); try { if (exec(buildJsonPdfCommandLine(pdfFile, out)).isEmpty()) { throw new ViewerException(STR); } } catch (ExternalExecutionException e) { thro...
/** * Converts a PDF file into a SWF file. * @param pdfFile the pdf file * @param destination the destination file without include some path parts in relation to the * mechanism of conversion. */
Converts a PDF file into a SWF file
convert
{ "repo_name": "SilverDav/Silverpeas-Core", "path": "core-services/viewer/src/main/java/org/silverpeas/core/viewer/util/JsonPdfUtil.java", "license": "agpl-3.0", "size": 3203 }
[ "java.io.File", "org.silverpeas.core.util.exec.ExternalExecutionException", "org.silverpeas.core.viewer.service.ViewerException" ]
import java.io.File; import org.silverpeas.core.util.exec.ExternalExecutionException; import org.silverpeas.core.viewer.service.ViewerException;
import java.io.*; import org.silverpeas.core.util.exec.*; import org.silverpeas.core.viewer.service.*;
[ "java.io", "org.silverpeas.core" ]
java.io; org.silverpeas.core;
1,703,927
public void setDuration(long duration) { setBase(SystemClock.elapsedRealtime() + (isCountDown() ? duration : -duration)); }
void function(long duration) { setBase(SystemClock.elapsedRealtime() + (isCountDown() ? duration : -duration)); }
/** * If {@link #isCountDown()}, equivalent to {@link #setBase(long) * setBase(SystemClock.elapsedRealtime() + duration)}. * <p> * Otherwise, equivalent to {@link #setBase(long) * setBase(SystemClock.elapsedRealtime() - duration)}. */
If <code>#isCountDown()</code>, equivalent to <code>#setBase(long) setBase(SystemClock.elapsedRealtime() + duration)</code>. Otherwise, equivalent to <code>#setBase(long) setBase(SystemClock.elapsedRealtime() - duration)</code>
setDuration
{ "repo_name": "genericjohndoe/Capstone-Project", "path": "app/src/main/java/com/philliphsu/clock2/chronometer/BaseChronometer.java", "license": "gpl-3.0", "size": 13498 }
[ "android.os.SystemClock" ]
import android.os.SystemClock;
import android.os.*;
[ "android.os" ]
android.os;
1,629,072
@Override public String getText(Object object) { String label = ((ReportSet)object).getId(); return label == null || label.length() == 0 ? getString("_UI_ReportSet_type") : getString("_UI_ReportSet_type") + " " + label; }
String function(Object object) { String label = ((ReportSet)object).getId(); return label == null label.length() == 0 ? getString(STR) : getString(STR) + " " + label; }
/** * This returns the label text for the adapted class. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This returns the label text for the adapted class.
getText
{ "repo_name": "Treehopper/EclipseAugments", "path": "pom-editor/eu.hohenegger.xsd.pom.ui/src-gen/eu/hohenegger/xsd/pom/provider/ReportSetItemProvider.java", "license": "epl-1.0", "size": 7197 }
[ "eu.hohenegger.xsd.pom.ReportSet" ]
import eu.hohenegger.xsd.pom.ReportSet;
import eu.hohenegger.xsd.pom.*;
[ "eu.hohenegger.xsd" ]
eu.hohenegger.xsd;
213,140
private void recv(byte[] buffer, int length) throws IOException { int bytes = 0; while (bytes < length) { int res = socket.getInputStream().read(buffer, bytes, length - bytes); if (res > 0) { bytes += res; } else { return; } } }
void function(byte[] buffer, int length) throws IOException { int bytes = 0; while (bytes < length) { int res = socket.getInputStream().read(buffer, bytes, length - bytes); if (res > 0) { bytes += res; } else { return; } } }
/** * Receive and block until *all* length bytes are placed in buffer. * * @param buffer Target buffer to fill * @param length Desired length * @throws IOException if socket read error or protocol parse error */
Receive and block until *all* length bytes are placed in buffer
recv
{ "repo_name": "operasoftware/operaprestodriver", "path": "src/com/opera/core/systems/runner/launcher/OperaLauncherProtocol.java", "license": "apache-2.0", "size": 7929 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,051,053
try { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(fileName); doc.getDocumentElement().normalize(); NodeList nodeList = doc.getElementsByTagNam...
try { DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance(); DocumentBuilder dBuilder = dbFactory.newDocumentBuilder(); Document doc = dBuilder.parse(fileName); doc.getDocumentElement().normalize(); NodeList nodeList = doc.getElementsByTagName("color"); Node node = nodeList.item(0); return node.getAtt...
/** * Function to read the variant's prioritized (themer's FIRST in file) color * * @param fileName File name * @return Returns the first line of the XML file for the color */
Function to read the variant's prioritized (themer's FIRST in file) color
read
{ "repo_name": "iskandar1023/substratum", "path": "app/src/main/java/projekt/substratum/util/readers/ReadVariantPrioritizedColor.java", "license": "gpl-3.0", "size": 1860 }
[ "javax.xml.parsers.DocumentBuilder", "javax.xml.parsers.DocumentBuilderFactory", "org.w3c.dom.Document", "org.w3c.dom.Node", "org.w3c.dom.NodeList" ]
import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList;
import javax.xml.parsers.*; import org.w3c.dom.*;
[ "javax.xml", "org.w3c.dom" ]
javax.xml; org.w3c.dom;
923,713
public static String read(String path, String filename) throws FileNotFoundException, IOException, URISyntaxException { if (path != null && path.length() > 0) { if (!(filename.contains(path))) { filename = path + filename; } } return read(filename); }
static String function(String path, String filename) throws FileNotFoundException, IOException, URISyntaxException { if (path != null && path.length() > 0) { if (!(filename.contains(path))) { filename = path + filename; } } return read(filename); }
/** * Reads the data from a file in disk. * * @param path Path of the file to be read * @param filename Name of the file * @return Data from the file * @throws FileNotFoundException Error when the file has not been found * @throws IOException Error while reading the file */
Reads the data from a file in disk
read
{ "repo_name": "rovemonteux/automation_engine", "path": "src/main/java/cf/monteux/automation/engine/io/FileIO.java", "license": "gpl-3.0", "size": 12852 }
[ "java.io.FileNotFoundException", "java.io.IOException", "java.net.URISyntaxException" ]
import java.io.FileNotFoundException; import java.io.IOException; import java.net.URISyntaxException;
import java.io.*; import java.net.*;
[ "java.io", "java.net" ]
java.io; java.net;
551,670
public static void append(File file, WriterCallback callback) { withCallback(file, callback, true); }
static void function(File file, WriterCallback callback) { withCallback(file, callback, true); }
/** * Open a file and pass a writer to the callback which appends to that file. * * @throws RuntimeException if there is an exception during execution, flushing, or closing the file */
Open a file and pass a writer to the callback which appends to that file
append
{ "repo_name": "technicalguru/csv", "path": "src/test/java/org/skife/csv/SimpleWriter.java", "license": "gpl-3.0", "size": 4665 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,502,706
public EmbeddedGobblin setLaunchTimeout(long timeout, TimeUnit timeUnit) { this.launchTimeout = new FullTimeout(timeout, timeUnit); return this; }
EmbeddedGobblin function(long timeout, TimeUnit timeUnit) { this.launchTimeout = new FullTimeout(timeout, timeUnit); return this; }
/** * Set the timeout for launching the Gobblin job. */
Set the timeout for launching the Gobblin job
setLaunchTimeout
{ "repo_name": "ydai1124/gobblin-1", "path": "gobblin-runtime/src/main/java/gobblin/runtime/embedded/EmbeddedGobblin.java", "license": "apache-2.0", "size": 23634 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,814,799
@Override public void writeChronicleData(ByteArrayDataBuffer data) { super.writeChronicleData(data); }
void function(ByteArrayDataBuffer data) { super.writeChronicleData(data); }
/** * Write chronicle data. * * @param data the data */
Write chronicle data
writeChronicleData
{ "repo_name": "OSEHRA/ISAAC", "path": "core/model/src/main/java/sh/isaac/model/semantic/SemanticChronologyImpl.java", "license": "apache-2.0", "size": 17437 }
[ "sh.isaac.api.externalizable.ByteArrayDataBuffer" ]
import sh.isaac.api.externalizable.ByteArrayDataBuffer;
import sh.isaac.api.externalizable.*;
[ "sh.isaac.api" ]
sh.isaac.api;
2,152,322
private static boolean putInt(final String keyId, final int valueToSave) { SharedPreferences.Editor prefs = PreferenceManager.getDefaultSharedPreferences(App.getAppContext()).edit(); prefs.putInt(keyId, valueToSave); return prefs.commit(); }
static boolean function(final String keyId, final int valueToSave) { SharedPreferences.Editor prefs = PreferenceManager.getDefaultSharedPreferences(App.getAppContext()).edit(); prefs.putInt(keyId, valueToSave); return prefs.commit(); }
/** * Writes Integer valueToSave into shared preferences * * @param keyId the key id * @param valueToSave the Integer value to be saved * @return Returns true if the new value is successfully written to persistent storage. */
Writes Integer valueToSave into shared preferences
putInt
{ "repo_name": "lidox/reaction-test", "path": "ReactionTest/app/src/main/java/com/artursworld/reactiontest/controller/util/Global.java", "license": "mit", "size": 7649 }
[ "android.content.SharedPreferences", "android.preference.PreferenceManager" ]
import android.content.SharedPreferences; import android.preference.PreferenceManager;
import android.content.*; import android.preference.*;
[ "android.content", "android.preference" ]
android.content; android.preference;
1,599,135
public Paint getErrorIndicatorPaint() { return errorIndicatorPaint; }
Paint function() { return errorIndicatorPaint; }
/** * Returns the paint used for the error indicators. * * @return The paint used for the error indicators (possibly <code>null</code>). */
Returns the paint used for the error indicators
getErrorIndicatorPaint
{ "repo_name": "robertoandrade/cyclos", "path": "src/nl/strohalm/cyclos/utils/jfreeAsymmetric/AsymmetricStatisticalLineAndShapeRenderer.java", "license": "gpl-2.0", "size": 12834 }
[ "java.awt.Paint" ]
import java.awt.Paint;
import java.awt.*;
[ "java.awt" ]
java.awt;
376,538
@Override public void startConnection(final BigdataSailConnection conn) { // final Properties properties = conn.getProperties(); final AbstractTripleStore tripleStore = conn.getTripleStore(); if (Boolean.valueOf(tripleStore.getProperty( BigdataSail.Options.HISTORY_SERVIC...
void function(final BigdataSailConnection conn) { final AbstractTripleStore tripleStore = conn.getTripleStore(); if (Boolean.valueOf(tripleStore.getProperty( BigdataSail.Options.HISTORY_SERVICE, BigdataSail.Options.DEFAULT_HISTORY_SERVICE))) { conn.addChangeLog(new HistoryChangeLogListener(conn)); } } static private cl...
/** * Register an {@link IChangeLog} listener that will manage the maintenance * of the describe cache. */
Register an <code>IChangeLog</code> listener that will manage the maintenance of the describe cache
startConnection
{ "repo_name": "blazegraph/database", "path": "bigdata-core/bigdata-rdf/src/java/com/bigdata/rdf/sparql/ast/service/history/HistoryServiceFactory.java", "license": "gpl-2.0", "size": 13799 }
[ "com.bigdata.btree.IIndex", "com.bigdata.rdf.changesets.IChangeLog", "com.bigdata.rdf.changesets.IChangeRecord", "com.bigdata.rdf.sail.BigdataSail", "com.bigdata.rdf.store.AbstractTripleStore", "java.util.Map" ]
import com.bigdata.btree.IIndex; import com.bigdata.rdf.changesets.IChangeLog; import com.bigdata.rdf.changesets.IChangeRecord; import com.bigdata.rdf.sail.BigdataSail; import com.bigdata.rdf.store.AbstractTripleStore; import java.util.Map;
import com.bigdata.btree.*; import com.bigdata.rdf.changesets.*; import com.bigdata.rdf.sail.*; import com.bigdata.rdf.store.*; import java.util.*;
[ "com.bigdata.btree", "com.bigdata.rdf", "java.util" ]
com.bigdata.btree; com.bigdata.rdf; java.util;
2,033,893
public static void insert(String tableName, String rowKey, String columnFamily, String column, String value) { try { HConnection connection = HConnectionManager.createConnection(conf); HTableInterface table = connection.getTable(tableName); try { if (connection.isTableAvailable(TableName.valueOf(t...
static void function(String tableName, String rowKey, String columnFamily, String column, String value) { try { HConnection connection = HConnectionManager.createConnection(conf); HTableInterface table = connection.getTable(tableName); try { if (connection.isTableAvailable(TableName.valueOf(tableName))) { Put put = new...
/** * insert into single data * * @param tableName * @param rowKey * @param columnFamily * @param column * @param value */
insert into single data
insert
{ "repo_name": "smartdengjie/stats-hdfs", "path": "src/main/java/cn/jpush/hdfs/utils/HBaseFactory.java", "license": "apache-2.0", "size": 15299 }
[ "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.client.HConnection", "org.apache.hadoop.hbase.client.HConnectionManager", "org.apache.hadoop.hbase.client.HTableInterface", "org.apache.hadoop.hbase.client.Put", "org.apache.hadoop.hbase.util.Bytes" ]
import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.HConnection; import org.apache.hadoop.hbase.client.HConnectionManager; import org.apache.hadoop.hbase.client.HTableInterface; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,815,896
boolean isTableIncluded(TableName table) { return (tablesIncluded.isEmpty()) || tablesIncluded.contains(table); }
boolean isTableIncluded(TableName table) { return (tablesIncluded.isEmpty()) tablesIncluded.contains(table); }
/** * Only check/fix tables specified by the list, * Empty list means all tables are included. */
Only check/fix tables specified by the list, Empty list means all tables are included
isTableIncluded
{ "repo_name": "JingchengDu/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/util/HBaseFsck.java", "license": "apache-2.0", "size": 196025 }
[ "org.apache.hadoop.hbase.TableName" ]
import org.apache.hadoop.hbase.TableName;
import org.apache.hadoop.hbase.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,280,967
@Test (expected = OcuppiedCellException.class) public void whenPlayerMoveAndCellIsOccupiedThenThrowsOccupiedCellException() throws Exception { this.moveController.playerMove(this.coordinateX, this.coordinateY); this.moveController.playerMove(this.coordinateX, this.coordinateY); }
@Test (expected = OcuppiedCellException.class) void function() throws Exception { this.moveController.playerMove(this.coordinateX, this.coordinateY); this.moveController.playerMove(this.coordinateX, this.coordinateY); }
/** * Tests if OcuppiedCellException throws when user try to mark occupied cell. */
Tests if OcuppiedCellException throws when user try to mark occupied cell
whenPlayerMoveAndCellIsOccupiedThenThrowsOccupiedCellException
{ "repo_name": "dionisius1976/java-a-to-z", "path": "chapter_004/7_TestTask/src/test/java/ru/dionisius/MoveControllerTest.java", "license": "apache-2.0", "size": 8059 }
[ "org.junit.Test", "ru.dionisius.controls.OcuppiedCellException" ]
import org.junit.Test; import ru.dionisius.controls.OcuppiedCellException;
import org.junit.*; import ru.dionisius.controls.*;
[ "org.junit", "ru.dionisius.controls" ]
org.junit; ru.dionisius.controls;
42,267
//@Test public void constructAndSign() throws Exception { SAML2Response samlResponse = new SAML2Response(); String ID = IDGenerator.create("ID_"); IssuerInfoHolder issuerInfo = new IssuerInfoHolder("picketlink"); IDPInfoHolder idp = new IDPInfoHolder(); idp.setNameIDFor...
SAML2Response samlResponse = new SAML2Response(); String ID = IDGenerator.create("ID_"); IssuerInfoHolder issuerInfo = new IssuerInfoHolder(STR); IDPInfoHolder idp = new IDPInfoHolder(); idp.setNameIDFormatValue("anil"); SPInfoHolder sp = new SPInfoHolder(); sp.setResponseDestinationURI(STRTOKEN_USER_IDSTRTOKEN_ORGANIZ...
/** * This test constructs the {@link ResponseType}. An {@link AssertionType} is locally constructed and then passed to the * construct method * * @throws Exception */
This test constructs the <code>ResponseType</code>. An <code>AssertionType</code> is locally constructed and then passed to the construct method
constructAndSign
{ "repo_name": "taylor-project/taylor-picketlink-2.0.3", "path": "federation/picketlink-fed-api/src/test/java/org/picketlink/test/identity/federation/api/saml/v2/SAML2ResponseUnitTestCase.java", "license": "gpl-2.0", "size": 7052 }
[ "java.io.ByteArrayInputStream", "java.io.ByteArrayOutputStream", "org.junit.Assert", "org.picketlink.identity.federation.api.saml.v2.response.SAML2Response", "org.picketlink.identity.federation.core.saml.v2.common.IDGenerator", "org.picketlink.identity.federation.core.saml.v2.holders.IDPInfoHolder", "or...
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import org.junit.Assert; import org.picketlink.identity.federation.api.saml.v2.response.SAML2Response; import org.picketlink.identity.federation.core.saml.v2.common.IDGenerator; import org.picketlink.identity.federation.core.saml.v2.holders.IDPI...
import java.io.*; import org.junit.*; import org.picketlink.identity.federation.api.saml.v2.response.*; import org.picketlink.identity.federation.core.saml.v2.common.*; import org.picketlink.identity.federation.core.saml.v2.holders.*; import org.picketlink.identity.federation.core.saml.v2.util.*; import org.picketlink....
[ "java.io", "org.junit", "org.picketlink.identity", "org.picketlink.test", "org.w3c.dom" ]
java.io; org.junit; org.picketlink.identity; org.picketlink.test; org.w3c.dom;
441,288
void initialize(ServiceConfiguration config) throws IOException;
void initialize(ServiceConfiguration config) throws IOException;
/** * Perform initialization for the authentication provider * * @param config * broker config object * @throws IOException * if the initialization fails */
Perform initialization for the authentication provider
initialize
{ "repo_name": "rdhabalia/pulsar", "path": "pulsar-broker-common/src/main/java/com/yahoo/pulsar/broker/authentication/AuthenticationProvider.java", "license": "apache-2.0", "size": 1811 }
[ "com.yahoo.pulsar.broker.ServiceConfiguration", "java.io.IOException" ]
import com.yahoo.pulsar.broker.ServiceConfiguration; import java.io.IOException;
import com.yahoo.pulsar.broker.*; import java.io.*;
[ "com.yahoo.pulsar", "java.io" ]
com.yahoo.pulsar; java.io;
1,676,328
public static void setImplementation(CodenameOneImplementation impl) { implInstance = impl; }
static void function(CodenameOneImplementation impl) { implInstance = impl; }
/** * Invoked internally from Display, this method is for internal use only * * @param impl implementation instance */
Invoked internally from Display, this method is for internal use only
setImplementation
{ "repo_name": "shannah/cn1", "path": "CodenameOne/src/com/codename1/io/Util.java", "license": "gpl-2.0", "size": 39881 }
[ "com.codename1.impl.CodenameOneImplementation" ]
import com.codename1.impl.CodenameOneImplementation;
import com.codename1.impl.*;
[ "com.codename1.impl" ]
com.codename1.impl;
1,555,555
public List<Notification> getPages() { return mPages; }
List<Notification> function() { return mPages; }
/** * Get the array of additional pages of content for displaying this notification. The * current notification forms the first page, and elements within this array form * subsequent pages. This field can be used to separate a notification into multiple * sections. * @return...
Get the array of additional pages of content for displaying this notification. The current notification forms the first page, and elements within this array form subsequent pages. This field can be used to separate a notification into multiple sections
getPages
{ "repo_name": "daiqiquan/framework-base", "path": "core/java/android/app/Notification.java", "license": "apache-2.0", "size": 264892 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,576,841
public void put(String name, PathImpl path) { _pathMap.put(name, path); }
void function(String name, PathImpl path) { _pathMap.put(name, path); }
/** * Adds a new path. */
Adds a new path
put
{ "repo_name": "baratine/baratine", "path": "framework/src/main/java/com/caucho/v5/loader/PathLoader.java", "license": "gpl-2.0", "size": 3088 }
[ "com.caucho.v5.vfs.PathImpl" ]
import com.caucho.v5.vfs.PathImpl;
import com.caucho.v5.vfs.*;
[ "com.caucho.v5" ]
com.caucho.v5;
1,719,792
void deleteAttributeValues(@Param("host") String host);
void deleteAttributeValues(@Param("host") String host);
/** * Deletes all attributes and attribute values associated with a slave. * * @param host Host to delete associated values from. */
Deletes all attributes and attribute values associated with a slave
deleteAttributeValues
{ "repo_name": "shahankhatch/aurora", "path": "src/main/java/org/apache/aurora/scheduler/storage/db/AttributeMapper.java", "license": "apache-2.0", "size": 2460 }
[ "org.apache.ibatis.annotations.Param" ]
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.*;
[ "org.apache.ibatis" ]
org.apache.ibatis;
71,231
public void setRotateAngle(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.rotateAngleX = x; modelRenderer.rotateAngleY = y; modelRenderer.rotateAngleZ = z; }
void function(ModelRenderer modelRenderer, float x, float y, float z) { modelRenderer.rotateAngleX = x; modelRenderer.rotateAngleY = y; modelRenderer.rotateAngleZ = z; }
/** * This is a helper function from Tabula to set the rotation of model parts */
This is a helper function from Tabula to set the rotation of model parts
setRotateAngle
{ "repo_name": "Suatae/MechinasMagickOld", "path": "src/main/java/com/suatae/mechinasmagick/client/models/AncientDoorB.java", "license": "gpl-2.0", "size": 7184 }
[ "net.minecraft.client.model.ModelRenderer" ]
import net.minecraft.client.model.ModelRenderer;
import net.minecraft.client.model.*;
[ "net.minecraft.client" ]
net.minecraft.client;
563,593
public int size(Map<String, Predicate> filters) { if (filters == null || filters.isEmpty()) { return size(); } long start = System.currentTimeMillis(); EWAHCompressedBitmap filter = getFilter(filters); long filterOp = System.currentTimeMillis() - start; ...
int function(Map<String, Predicate> filters) { if (filters == null filters.isEmpty()) { return size(); } long start = System.currentTimeMillis(); EWAHCompressedBitmap filter = getFilter(filters); long filterOp = System.currentTimeMillis() - start; LOG.info(String.format(Locale.ENGLISH, STR, filterOp)); return filter.ca...
/** * Will return the size after applying the supplied filters. E.g. the number * of rows in the collection satisfying all filter conditions at once. * * @param filters * @return */
Will return the size after applying the supplied filters. E.g. the number of rows in the collection satisfying all filter conditions at once
size
{ "repo_name": "gotcount/core", "path": "src/main/java/de/comci/bitmap/BitMapCollection.java", "license": "mit", "size": 11470 }
[ "com.googlecode.javaewah.EWAHCompressedBitmap", "java.util.Locale", "java.util.Map", "java.util.function.Predicate" ]
import com.googlecode.javaewah.EWAHCompressedBitmap; import java.util.Locale; import java.util.Map; import java.util.function.Predicate;
import com.googlecode.javaewah.*; import java.util.*; import java.util.function.*;
[ "com.googlecode.javaewah", "java.util" ]
com.googlecode.javaewah; java.util;
55,181
public List<com.mozu.api.contracts.commerceruntime.commerce.ExtendedProperty> updateExtendedProperties(List<com.mozu.api.contracts.commerceruntime.commerce.ExtendedProperty> extendedProperties, String orderId) throws Exception { return updateExtendedProperties( extendedProperties, orderId, null, null, null); ...
List<com.mozu.api.contracts.commerceruntime.commerce.ExtendedProperty> function(List<com.mozu.api.contracts.commerceruntime.commerce.ExtendedProperty> extendedProperties, String orderId) throws Exception { return updateExtendedProperties( extendedProperties, orderId, null, null, null); } /** * Updates one or more exten...
/** * Updates one or more extended properties. * <p><pre><code> * ExtendedProperty extendedproperty = new ExtendedProperty(); * ExtendedProperty extendedProperty = extendedproperty.updateExtendedProperties( extendedProperties, orderId); * </code></pre></p> * @param orderId Unique identifier of the order. ...
Updates one or more extended properties. <code><code> ExtendedProperty extendedproperty = new ExtendedProperty(); ExtendedProperty extendedProperty = extendedproperty.updateExtendedProperties( extendedProperties, orderId); </code></code>
updateExtendedProperties
{ "repo_name": "bhewett/mozu-java", "path": "mozu-java-core/src/main/java/com/mozu/api/resources/commerce/orders/ExtendedPropertyResource.java", "license": "mit", "size": 14903 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,700,779
void syncExistingDiagram(ModelerFile modelerFile);
void syncExistingDiagram(ModelerFile modelerFile);
/** * Update the complete existing diagram with existing class * * @param modelerFile */
Update the complete existing diagram with existing class
syncExistingDiagram
{ "repo_name": "jGauravGupta/jpamodeler", "path": "jpa-modeler/src/main/java/io/github/jeddict/reveng/JCREProcessor.java", "license": "apache-2.0", "size": 1939 }
[ "org.netbeans.modeler.core.ModelerFile" ]
import org.netbeans.modeler.core.ModelerFile;
import org.netbeans.modeler.core.*;
[ "org.netbeans.modeler" ]
org.netbeans.modeler;
391,619
void killTaskJVM(TaskController.TaskControllerContext context) { ShellCommandExecutor shexec = context.shExec; if (shexec != null) { Process process = shexec.getProcess(); if (Shell.WINDOWS) { // Currently we don't use setsid on WINDOWS. So kill the process alone. if (process != n...
void killTaskJVM(TaskController.TaskControllerContext context) { ShellCommandExecutor shexec = context.shExec; if (shexec != null) { Process process = shexec.getProcess(); if (Shell.WINDOWS) { if (process != null) { process.destroy(); } } else { String pid = context.pid; if (pid != null) { ProcessTree.destroy(pid, cont...
/** * Kills the JVM running the task stored in the context. * * @param context the context storing the task running within the JVM * that needs to be killed. */
Kills the JVM running the task stored in the context
killTaskJVM
{ "repo_name": "toddlipcon/hadoop", "path": "src/mapred/org/apache/hadoop/mapred/DefaultTaskController.java", "license": "apache-2.0", "size": 4166 }
[ "org.apache.hadoop.util.ProcessTree", "org.apache.hadoop.util.Shell" ]
import org.apache.hadoop.util.ProcessTree; import org.apache.hadoop.util.Shell;
import org.apache.hadoop.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
796,746
public static String addToCartBulk(HttpServletRequest request, HttpServletResponse response) { String categoryId = request.getParameter("category_id"); ShoppingCart cart = getCartObject(request); Delegator delegator = (Delegator) request.getAttribute("delegator"); LocalDispatcher dis...
static String function(HttpServletRequest request, HttpServletResponse response) { String categoryId = request.getParameter(STR); ShoppingCart cart = getCartObject(request); Delegator delegator = (Delegator) request.getAttribute(STR); LocalDispatcher dispatcher = (LocalDispatcher) request.getAttribute(STR); ShoppingCar...
/** Adds all products in a category according to quantity request parameter * for each; if no parameter for a certain product in the category, or if * quantity is 0, do not add */
Adds all products in a category according to quantity request parameter for each; if no parameter for a certain product in the category, or if quantity is 0, do not add
addToCartBulk
{ "repo_name": "rohankarthik/Ofbiz", "path": "applications/order/src/main/java/org/apache/ofbiz/order/shoppingcart/ShoppingCartEvents.java", "license": "apache-2.0", "size": 104142 }
[ "java.util.Map", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.ofbiz.base.util.UtilHttp", "org.apache.ofbiz.entity.Delegator", "org.apache.ofbiz.product.catalog.CatalogWorker", "org.apache.ofbiz.service.LocalDispatcher" ]
import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.ofbiz.base.util.UtilHttp; import org.apache.ofbiz.entity.Delegator; import org.apache.ofbiz.product.catalog.CatalogWorker; import org.apache.ofbiz.service.LocalDispatcher;
import java.util.*; import javax.servlet.http.*; import org.apache.ofbiz.base.util.*; import org.apache.ofbiz.entity.*; import org.apache.ofbiz.product.catalog.*; import org.apache.ofbiz.service.*;
[ "java.util", "javax.servlet", "org.apache.ofbiz" ]
java.util; javax.servlet; org.apache.ofbiz;
90,574
public Cohort getPatientSet() { return patientSet; }
Cohort function() { return patientSet; }
/** * Gets the default patient set. * * @return the default patient set for this report */
Gets the default patient set
getPatientSet
{ "repo_name": "Bhamni/openmrs-core", "path": "api/src/main/java/org/openmrs/reporting/report/ReportDefinition.java", "license": "mpl-2.0", "size": 5281 }
[ "org.openmrs.Cohort" ]
import org.openmrs.Cohort;
import org.openmrs.*;
[ "org.openmrs" ]
org.openmrs;
1,254,849
@Test public void literal() { EventFilter rootFilter = new GlobbingPathFilter("a/b/c"); NodeState a = tree.getChild("a").getNodeState(); assertFalse(rootFilter.includeAdd("a", a)); EventFilter aFilter = rootFilter.create("a", a, a); assertNotNull(aFilter); NodeSt...
void function() { EventFilter rootFilter = new GlobbingPathFilter("a/b/c"); NodeState a = tree.getChild("a").getNodeState(); assertFalse(rootFilter.includeAdd("a", a)); EventFilter aFilter = rootFilter.create("a", a, a); assertNotNull(aFilter); NodeState b = a.getChildNode("b"); assertFalse(aFilter.includeAdd("b", b));...
/** * a/b/c should match a/b/c */
a/b/c should match a/b/c
literal
{ "repo_name": "mduerig/jackrabbit-oak", "path": "oak-core/src/test/java/org/apache/jackrabbit/oak/plugins/observation/filter/GlobbingPathFilterTest.java", "license": "apache-2.0", "size": 11605 }
[ "org.apache.jackrabbit.oak.spi.state.NodeState", "org.junit.Assert" ]
import org.apache.jackrabbit.oak.spi.state.NodeState; import org.junit.Assert;
import org.apache.jackrabbit.oak.spi.state.*; import org.junit.*;
[ "org.apache.jackrabbit", "org.junit" ]
org.apache.jackrabbit; org.junit;
1,584,862
public int[] toArray() { int[] array = new int[types.size()]; int n = 0; for (Iterator it = types.iterator(); it.hasNext();) array[n++] = ((Integer) it.next()).intValue(); return array; }
int[] function() { int[] array = new int[types.size()]; int n = 0; for (Iterator it = types.iterator(); it.hasNext();) array[n++] = ((Integer) it.next()).intValue(); return array; }
/** * To array. * * @return the int[] */
To array
toArray
{ "repo_name": "confluxtoo/finflux_automation_test", "path": "browsermob-proxy/src/main/java/org/xbill/DNS/TypeBitmap.java", "license": "mpl-2.0", "size": 4445 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,977,186
Vertx vertx = Vertx.vertx(new VertxOptions().setWorkerPoolSize(40)); vertx.deployVerticle(MainVerticle.class.getName()); }
Vertx vertx = Vertx.vertx(new VertxOptions().setWorkerPoolSize(40)); vertx.deployVerticle(MainVerticle.class.getName()); }
/** * The entry point of application. * * @param args the input arguments */
The entry point of application
main
{ "repo_name": "Giwi/geoTracker", "path": "src/main/java/org/giwi/geotracker/Main.java", "license": "apache-2.0", "size": 501 }
[ "io.vertx.core.Vertx", "io.vertx.core.VertxOptions", "org.giwi.geotracker.verticles.MainVerticle" ]
import io.vertx.core.Vertx; import io.vertx.core.VertxOptions; import org.giwi.geotracker.verticles.MainVerticle;
import io.vertx.core.*; import org.giwi.geotracker.verticles.*;
[ "io.vertx.core", "org.giwi.geotracker" ]
io.vertx.core; org.giwi.geotracker;
155,478
public void testLastDouble() { m_List.addAll(Arrays.asList(new Double[]{2.0, 4.0, 2.0, 3.0, 1.0, 4.0})); assertEquals("last element differs", 4.0, m_List.get(m_List.size()- 1)); }
void function() { m_List.addAll(Arrays.asList(new Double[]{2.0, 4.0, 2.0, 3.0, 1.0, 4.0})); assertEquals(STR, 4.0, m_List.get(m_List.size()- 1)); }
/** * Tests accessing the last string element. */
Tests accessing the last string element
testLastDouble
{ "repo_name": "automenta/adams-core", "path": "src/test/java/adams/data/SortedListTest.java", "license": "gpl-3.0", "size": 6271 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,860,642
public java.util.List<fr.lip6.move.pnml.hlpn.multisets.hlapi.AddHLAPI> getSubterm_multisets_AddHLAPI(){ java.util.List<fr.lip6.move.pnml.hlpn.multisets.hlapi.AddHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.multisets.hlapi.AddHLAPI>(); for (Term elemnt : getSubterm()) { if(elemnt.getClass().equals...
java.util.List<fr.lip6.move.pnml.hlpn.multisets.hlapi.AddHLAPI> function(){ java.util.List<fr.lip6.move.pnml.hlpn.multisets.hlapi.AddHLAPI> retour = new ArrayList<fr.lip6.move.pnml.hlpn.multisets.hlapi.AddHLAPI>(); for (Term elemnt : getSubterm()) { if(elemnt.getClass().equals(fr.lip6.move.pnml.hlpn.multisets.impl.AddI...
/** * This accessor return a list of encapsulated subelement, only of AddHLAPI kind. * WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of AddHLAPI kind. WARNING : this method can creates a lot of new object in memory
getSubterm_multisets_AddHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/strings/hlapi/GreaterThanHLAPI.java", "license": "epl-1.0", "size": 108533 }
[ "fr.lip6.move.pnml.hlpn.terms.Term", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.hlpn.terms.Term; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.hlpn.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
1,394,600