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<String> getNodeFeatures(); | List<String> getNodeFeatures(); | /**
* Returns a list of the features defined in the node. For
* example, the entity caps protocol specifies that an XMPP client
* should answer with each feature supported by the client version
* or extension.
*
* @return a list of the feature strings defined in the node.
*/ | Returns a list of the features defined in the node. For example, the entity caps protocol specifies that an XMPP client should answer with each feature supported by the client version or extension | getNodeFeatures | {
"repo_name": "yiyiboy2010/androidpn-client",
"path": "smack/org/jivesoftware/smackx/NodeInformationProvider.java",
"license": "apache-2.0",
"size": 2655
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 312,744 |
public CountDownLatch getAvailableActionsAsync(String orderId, AsyncCallback<List<String>> callback) throws Exception
{
MozuClient<List<String>> client = com.mozu.api.clients.commerce.OrderClient.getAvailableActionsClient( orderId);
client.setContext(_apiContext);
return client.executeRequest(callback);
} | CountDownLatch function(String orderId, AsyncCallback<List<String>> callback) throws Exception { MozuClient<List<String>> client = com.mozu.api.clients.commerce.OrderClient.getAvailableActionsClient( orderId); client.setContext(_apiContext); return client.executeRequest(callback); } | /**
* Retrieves the actions available to perform for an order based on its current status.
* <p><pre><code>
* Order order = new Order();
* CountDownLatch latch = order.getAvailableActions( orderId, callback );
* latch.await() * </code></pre></p>
* @param orderId Unique identifier of the order.
* @param ... | Retrieves the actions available to perform for an order based on its current status. <code><code> Order order = new Order(); CountDownLatch latch = order.getAvailableActions( orderId, callback ); latch.await() * </code></code> | getAvailableActionsAsync | {
"repo_name": "sanjaymandadi/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/OrderResource.java",
"license": "mit",
"size": 45185
} | [
"com.mozu.api.AsyncCallback",
"com.mozu.api.MozuClient",
"java.util.List",
"java.util.concurrent.CountDownLatch"
] | import com.mozu.api.AsyncCallback; import com.mozu.api.MozuClient; import java.util.List; import java.util.concurrent.CountDownLatch; | import com.mozu.api.*; import java.util.*; import java.util.concurrent.*; | [
"com.mozu.api",
"java.util"
] | com.mozu.api; java.util; | 411,580 |
private int findEndOfReturnsClause(String procedureDefn, String quoteChar,
int positionOfReturnKeyword) throws SQLException {
String[] tokens = new String[] { "LANGUAGE", "NOT", "DETERMINISTIC",
"CONTAINS", "NO", "READ", "MODIFIES", "SQL", "COMMENT", "BEGIN",
"RETURN" };
int startLookingAt = posi... | int function(String procedureDefn, String quoteChar, int positionOfReturnKeyword) throws SQLException { String[] tokens = new String[] { STR, "NOT", STR, STR, "NO", "READ", STR, "SQL", STR, "BEGIN", STR }; int startLookingAt = positionOfReturnKeyword + STR.length() + 1; int endOfReturn = -1; for (int i = 0; i < tokens.... | /**
* Finds the end of the RETURNS clause for SQL Functions by using any of the
* keywords allowed after the RETURNS clause, or a label.
*
* @param procedureDefn
* the function body containing the definition of the function
* @param quoteChar
* the identifier quote string in use
*... | Finds the end of the RETURNS clause for SQL Functions by using any of the keywords allowed after the RETURNS clause, or a label | findEndOfReturnsClause | {
"repo_name": "shubhanshu-gupta/Apache-Solr",
"path": "example/solr/collection1/lib/mysql-connector-java-5.1.32/src/com/mysql/jdbc/DatabaseMetaData.java",
"license": "apache-2.0",
"size": 287958
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 370,996 |
public static void initSafariDriver() {
ReporterNGExt.logTechnical("Initialization Safari Driver");
setWebDriver(new SafariDriver());
setTimeout(TIMEOUT);
getDriver().manage().window().maximize();
}
| static void function() { ReporterNGExt.logTechnical(STR); setWebDriver(new SafariDriver()); setTimeout(TIMEOUT); getDriver().manage().window().maximize(); } | /**
* initialization SafariDriver
*/ | initialization SafariDriver | initSafariDriver | {
"repo_name": "ggasoftware/gga-selenium-framework",
"path": "gga-selenium-framework-core/src/main/java/com/ggasoftware/uitest/utils/WebDriverWrapper.java",
"license": "gpl-3.0",
"size": 40067
} | [
"org.openqa.selenium.safari.SafariDriver"
] | import org.openqa.selenium.safari.SafariDriver; | import org.openqa.selenium.safari.*; | [
"org.openqa.selenium"
] | org.openqa.selenium; | 2,173,758 |
public static int[] safeGetIntArrayExtra(Intent intent, String name) {
try {
return intent.getIntArrayExtra(name);
} catch (Throwable t) {
// Catches un-parceling exceptions.
Log.e(TAG, "getIntArrayExtra failed on intent " + intent);
return null;
... | static int[] function(Intent intent, String name) { try { return intent.getIntArrayExtra(name); } catch (Throwable t) { Log.e(TAG, STR + intent); return null; } } | /**
* Just like {@link Intent#getIntArrayExtra(String)} but doesn't throw exceptions.
*/ | Just like <code>Intent#getIntArrayExtra(String)</code> but doesn't throw exceptions | safeGetIntArrayExtra | {
"repo_name": "endlessm/chromium-browser",
"path": "base/android/java/src/org/chromium/base/IntentUtils.java",
"license": "bsd-3-clause",
"size": 16738
} | [
"android.content.Intent"
] | import android.content.Intent; | import android.content.*; | [
"android.content"
] | android.content; | 2,245,807 |
public void free() {
if (leaseFreed) {
return;
}
try {
LOG.debug("Freeing lease: path {}, lease id {}", path, leaseID);
if (future != null && !future.isDone()) {
future.cancel(true);
}
TracingContext tracingContext = new TracingContext(this.tracingContext);
trac... | void function() { if (leaseFreed) { return; } try { LOG.debug(STR, path, leaseID); if (future != null && !future.isDone()) { future.cancel(true); } TracingContext tracingContext = new TracingContext(this.tracingContext); tracingContext.setOperation(FSOperationType.RELEASE_LEASE); client.releaseLease(path, leaseID, trac... | /**
* Cancel future and free the lease. If an exception occurs while releasing the lease, the error
* will be logged. If the lease cannot be released, AzureBlobFileSystem breakLease will need to
* be called before another client will be able to write to the file.
*/ | Cancel future and free the lease. If an exception occurs while releasing the lease, the error will be logged. If the lease cannot be released, AzureBlobFileSystem breakLease will need to be called before another client will be able to write to the file | free | {
"repo_name": "JingchengDu/hadoop",
"path": "hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/services/AbfsLease.java",
"license": "apache-2.0",
"size": 7943
} | [
"java.io.IOException",
"org.apache.hadoop.fs.azurebfs.constants.FSOperationType",
"org.apache.hadoop.fs.azurebfs.utils.TracingContext"
] | import java.io.IOException; import org.apache.hadoop.fs.azurebfs.constants.FSOperationType; import org.apache.hadoop.fs.azurebfs.utils.TracingContext; | import java.io.*; import org.apache.hadoop.fs.azurebfs.constants.*; import org.apache.hadoop.fs.azurebfs.utils.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 918,729 |
private KieRemoteHttpRequest openOutput() throws IOException {
if( output != null ) {
return this;
}
getConnection().setDoOutput(true);
final String charset = getHeaderParam(getConnection().getRequestProperty(CONTENT_TYPE), PARAM_CHARSET);
output = new RequestOutp... | KieRemoteHttpRequest function() throws IOException { if( output != null ) { return this; } getConnection().setDoOutput(true); final String charset = getHeaderParam(getConnection().getRequestProperty(CONTENT_TYPE), PARAM_CHARSET); output = new RequestOutputStream(getConnection().getOutputStream(), charset, bufferSize); ... | /**
* Open output stream
*
* @return this request
* @throws IOException
*/ | Open output stream | openOutput | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/droolsjbpm-integration-master/kie-remote/kie-remote-common/src/main/java/org/kie/remote/common/rest/KieRemoteHttpRequest.java",
"license": "mit",
"size": 63006
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 52,606 |
public @NotNull String getName() {
return name;
} | @NotNull String function() { return name; } | /**
* Returns the name of this column.
*/ | Returns the name of this column | getName | {
"repo_name": "EvidentSolutions/dalesbred",
"path": "dalesbred/src/main/java/org/dalesbred/result/ResultTable.java",
"license": "mit",
"size": 9287
} | [
"org.jetbrains.annotations.NotNull"
] | import org.jetbrains.annotations.NotNull; | import org.jetbrains.annotations.*; | [
"org.jetbrains.annotations"
] | org.jetbrains.annotations; | 2,390,043 |
public void setDistribution(TDistribution value) {
distribution = value;
} | void function(TDistribution value) { distribution = value; } | /**
* Modify the distribution used to compute inference statistics.
* @param value the new distribution
* @since 1.2
*/ | Modify the distribution used to compute inference statistics | setDistribution | {
"repo_name": "SpoonLabs/astor",
"path": "examples/math_63/src/main/java/org/apache/commons/math/stat/inference/TTestImpl.java",
"license": "gpl-2.0",
"size": 46803
} | [
"org.apache.commons.math.distribution.TDistribution"
] | import org.apache.commons.math.distribution.TDistribution; | import org.apache.commons.math.distribution.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,412,772 |
public void displayReport(String ingestReport) {
Object[] options = {NbBundle.getMessage(this.getClass(), "IngestMessageTopComponent.displayReport.option.OK"),
NbBundle.getMessage(this.getClass(),
"IngestMessageTopComponent.displayReport.option.GenRpt")};
final int choice = ... | void function(String ingestReport) { Object[] options = {NbBundle.getMessage(this.getClass(), STR), NbBundle.getMessage(this.getClass(), STR)}; final int choice = JOptionPane.showOptionDialog(null, ingestReport, NbBundle.getMessage(this.getClass(), STR), JOptionPane.YES_NO_OPTION, JOptionPane.INFORMATION_MESSAGE, null,... | /**
* Display ingest summary report in some dialog
*/ | Display ingest summary report in some dialog | displayReport | {
"repo_name": "mhmdfy/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/ingest/IngestMessageTopComponent.java",
"license": "apache-2.0",
"size": 10579
} | [
"java.util.List",
"java.util.logging.Level",
"javax.swing.Action",
"javax.swing.JOptionPane",
"org.openide.util.NbBundle",
"org.openide.util.Utilities"
] | import java.util.List; import java.util.logging.Level; import javax.swing.Action; import javax.swing.JOptionPane; import org.openide.util.NbBundle; import org.openide.util.Utilities; | import java.util.*; import java.util.logging.*; import javax.swing.*; import org.openide.util.*; | [
"java.util",
"javax.swing",
"org.openide.util"
] | java.util; javax.swing; org.openide.util; | 775,111 |
public void delete(final String path) {
Preconditions.checkNotNull(path, "path is required");
final String target = PathUtils.join(root, path);
try {
curator.delete().forPath(target);
getCache().rebuildNode(target);
} catch (final Exception e) {
throw new DrillRuntimeException(Strin... | void function(final String path) { Preconditions.checkNotNull(path, STR); final String target = PathUtils.join(root, path); try { curator.delete().forPath(target); getCache().rebuildNode(target); } catch (final Exception e) { throw new DrillRuntimeException(String.format(STR, target), e); } } | /**
* Deletes the given node residing at the given path
*
* @param path target path to delete
*/ | Deletes the given node residing at the given path | delete | {
"repo_name": "nagix/drill",
"path": "exec/java-exec/src/main/java/org/apache/drill/exec/coord/zk/ZookeeperClient.java",
"license": "apache-2.0",
"size": 13372
} | [
"com.google.common.base.Preconditions",
"org.apache.drill.common.exceptions.DrillRuntimeException"
] | import com.google.common.base.Preconditions; import org.apache.drill.common.exceptions.DrillRuntimeException; | import com.google.common.base.*; import org.apache.drill.common.exceptions.*; | [
"com.google.common",
"org.apache.drill"
] | com.google.common; org.apache.drill; | 672,511 |
String cleanedPath = StringUtils.cleanPath(originalPath);
if (!cleanedPath.equals(originalPath)) {
try {
return new URL(cleanedPath);
}
catch (MalformedURLException ex) {
// Cleaned URL path cannot be converted to URL -> take original URL.
}
}
return originalUrl;
} | String cleanedPath = StringUtils.cleanPath(originalPath); if (!cleanedPath.equals(originalPath)) { try { return new URL(cleanedPath); } catch (MalformedURLException ex) { } } return originalUrl; } | /**
* Determine a cleaned URL for the given original URL.
* @param originalUrl the original URL
* @param originalPath the original URL path
* @return the cleaned URL (possibly the original URL as-is)
* @see org.springframework.util.StringUtils#cleanPath
*/ | Determine a cleaned URL for the given original URL | getCleanedUrl | {
"repo_name": "spring-projects/spring-framework",
"path": "spring-core/src/main/java/org/springframework/core/io/UrlResource.java",
"license": "apache-2.0",
"size": 8961
} | [
"java.net.MalformedURLException",
"org.springframework.util.StringUtils"
] | import java.net.MalformedURLException; import org.springframework.util.StringUtils; | import java.net.*; import org.springframework.util.*; | [
"java.net",
"org.springframework.util"
] | java.net; org.springframework.util; | 1,437,080 |
public int compare(long pageAddr, int off, int maxSize, IndexKey v); | int function(long pageAddr, int off, int maxSize, IndexKey v); | /**
* Compares inlined and given value.
*
* @param pageAddr Page address.
* @param off Offset.
* @param maxSize Max size.
* @param v Value that should be compare.
*
* @return -1, 0 or 1 if inlined value less, equal or greater
* than given respectively, or -2 if inlined part ... | Compares inlined and given value | compare | {
"repo_name": "ascherbakoff/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/cache/query/index/sorted/inline/InlineIndexKeyType.java",
"license": "apache-2.0",
"size": 2927
} | [
"org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey"
] | import org.apache.ignite.internal.cache.query.index.sorted.keys.IndexKey; | import org.apache.ignite.internal.cache.query.index.sorted.keys.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,828,434 |
public synchronized void delete(EnvVars environment, @Nullable PrintStream logger)
throws CloudManagementException {
try {
// Set up the logging facilities
this.logger = logger;
ResolvedPath path = new ResolvedPath(getDeploymentName(), environment);
theLogger.log(FINE, Messages.Abst... | synchronized void function(EnvVars environment, @Nullable PrintStream logger) throws CloudManagementException { try { this.logger = logger; ResolvedPath path = new ResolvedPath(getDeploymentName(), environment); theLogger.log(FINE, Messages.AbstractCloudDeployment_LogDelete(path)); DeploymentManager manager = module.ne... | /**
* <p>
* NOTE: This should be treated as final, but is not to allow mocking.
* </p>
*
* Deletes user's deployment.
*
* @param environment The environment under which to execute the deletion
* @param logger The logger through which to surface messaging
* @throws CloudManagementException if ... | Deletes user's deployment | delete | {
"repo_name": "GoogleCloudPlatform/jenkins-deployment-manager-plugin",
"path": "src/main/java/com/google/jenkins/plugins/manage/AbstractCloudDeployment.java",
"license": "apache-2.0",
"size": 18451
} | [
"com.google.api.services.deploymentmanager.DeploymentManager",
"com.google.api.services.deploymentmanager.model.Operation",
"java.io.PrintStream",
"javax.annotation.Nullable"
] | import com.google.api.services.deploymentmanager.DeploymentManager; import com.google.api.services.deploymentmanager.model.Operation; import java.io.PrintStream; import javax.annotation.Nullable; | import com.google.api.services.deploymentmanager.*; import com.google.api.services.deploymentmanager.model.*; import java.io.*; import javax.annotation.*; | [
"com.google.api",
"java.io",
"javax.annotation"
] | com.google.api; java.io; javax.annotation; | 972,579 |
Server getServer(String migrationName, Path baseDir, MigrationEnvironment migrationEnvironment) throws ServerMigrationFailureException; | Server getServer(String migrationName, Path baseDir, MigrationEnvironment migrationEnvironment) throws ServerMigrationFailureException; | /**
* Retrieves a server from its base directory.
* @param migrationName the migration server's name
* @param baseDir the server's base directory.
* @param migrationEnvironment
* @return null if the specified base directory is not the base directory of the provider's server.
* @throws Serv... | Retrieves a server from its base directory | getServer | {
"repo_name": "emmartins/wildfly-server-migration",
"path": "core/src/main/java/org/jboss/migration/core/ServerProvider.java",
"license": "apache-2.0",
"size": 1478
} | [
"java.nio.file.Path",
"org.jboss.migration.core.env.MigrationEnvironment"
] | import java.nio.file.Path; import org.jboss.migration.core.env.MigrationEnvironment; | import java.nio.file.*; import org.jboss.migration.core.env.*; | [
"java.nio",
"org.jboss.migration"
] | java.nio; org.jboss.migration; | 769,228 |
public static String correctRepDate(String template) {
String year = ParseUtils.getTemplateParam(template, 3);
if (year != null && year.contains("an "))
return template.replace("{{date", "{{Date").replace("{{Date",
"{{Date républicaine");
return template;
} | static String function(String template) { String year = ParseUtils.getTemplateParam(template, 3); if (year != null && year.contains(STR)) return template.replace(STR, STR).replace(STR, STR); return template; } | /**
* Correct rep date.
*
* @param template
* the template
* @return the string
*/ | Correct rep date | correctRepDate | {
"repo_name": "Hunsu/WikiBot",
"path": "WikiBot/src/main/java/org/wikipedia/maintenance/Date.java",
"license": "gpl-3.0",
"size": 15504
} | [
"org.wikiutils.ParseUtils"
] | import org.wikiutils.ParseUtils; | import org.wikiutils.*; | [
"org.wikiutils"
] | org.wikiutils; | 1,322,710 |
public Timestamp getInstalledOn() {
return (Timestamp) get(7);
} | Timestamp function() { return (Timestamp) get(7); } | /**
* Getter for <code>lifetime.schema_version.installed_on</code>.
*/ | Getter for <code>lifetime.schema_version.installed_on</code> | getInstalledOn | {
"repo_name": "zuacaldeira/lifetime",
"path": "lifetime-ejb/src/resources/java/org/jooq/generated/tables/records/SchemaVersionRecord.java",
"license": "unlicense",
"size": 10720
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,620,625 |
public void installUI(JComponent a) {
for (int i = 0; i < uis.size(); i++) {
((ComponentUI) (uis.elementAt(i))).installUI(a);
}
} | void function(JComponent a) { for (int i = 0; i < uis.size(); i++) { ((ComponentUI) (uis.elementAt(i))).installUI(a); } } | /**
* Invokes the <code>installUI</code> method on each UI handled by this object.
*/ | Invokes the <code>installUI</code> method on each UI handled by this object | installUI | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk2/jdk/src/share/classes/javax/swing/plaf/multi/MultiLabelUI.java",
"license": "mit",
"size": 7408
} | [
"javax.swing.JComponent",
"javax.swing.plaf.ComponentUI"
] | import javax.swing.JComponent; import javax.swing.plaf.ComponentUI; | import javax.swing.*; import javax.swing.plaf.*; | [
"javax.swing"
] | javax.swing; | 1,222,992 |
private AliasedDiscoveryConfig deserializeAliasedDiscoveryConfig(
JsonObject json, String tag) {
JsonValue configJson = json.get(tag);
if (configJson != null && !configJson.isNull()) {
AliasedDiscoveryConfigDTO dto = new AliasedDiscoveryConfigDTO(tag);
dto.fromJso... | AliasedDiscoveryConfig function( JsonObject json, String tag) { JsonValue configJson = json.get(tag); if (configJson != null && !configJson.isNull()) { AliasedDiscoveryConfigDTO dto = new AliasedDiscoveryConfigDTO(tag); dto.fromJson(configJson.asObject()); return dto.getConfig(); } return null; } | /**
* Deserializes the aliased discovery config nested under the {@code tag} in the provided JSON.
*
* @param json the JSON object containing the serialized config
* @param tag the tag under which the config is nested
* @return the deserialized config or {@code null} if the serialized config
... | Deserializes the aliased discovery config nested under the tag in the provided JSON | deserializeAliasedDiscoveryConfig | {
"repo_name": "emre-aydin/hazelcast",
"path": "hazelcast/src/main/java/com/hazelcast/internal/management/dto/WanBatchPublisherConfigDTO.java",
"license": "apache-2.0",
"size": 10231
} | [
"com.hazelcast.config.AliasedDiscoveryConfig",
"com.hazelcast.internal.json.JsonObject",
"com.hazelcast.internal.json.JsonValue"
] | import com.hazelcast.config.AliasedDiscoveryConfig; import com.hazelcast.internal.json.JsonObject; import com.hazelcast.internal.json.JsonValue; | import com.hazelcast.config.*; import com.hazelcast.internal.json.*; | [
"com.hazelcast.config",
"com.hazelcast.internal"
] | com.hazelcast.config; com.hazelcast.internal; | 2,725,885 |
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_place_sample);
ButterKnife.inject(this);
initializeFragments();
initializeListView();
initializeDraggablePanel();
} | void function(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_place_sample); ButterKnife.inject(this); initializeFragments(); initializeListView(); initializeDraggablePanel(); } | /**
* Initialize the Activity with some injected data.
*
* @param savedInstanceState
*/ | Initialize the Activity with some injected data | onCreate | {
"repo_name": "MaTriXy/DraggablePanel",
"path": "sample/src/main/java/com/github/pedrovgs/sample/activity/PlacesSampleActivity.java",
"license": "apache-2.0",
"size": 10429
} | [
"android.os.Bundle"
] | import android.os.Bundle; | import android.os.*; | [
"android.os"
] | android.os; | 1,938,771 |
public static PlaceholderFragment newInstance(int sectionNumber) {
PlaceholderFragment fragment = new PlaceholderFragment();
Bundle args = new Bundle();
args.putInt(ARG_SECTION_NUMBER, sectionNumber);
fragment.setArguments(args);
return fragment;
... | static PlaceholderFragment function(int sectionNumber) { PlaceholderFragment fragment = new PlaceholderFragment(); Bundle args = new Bundle(); args.putInt(ARG_SECTION_NUMBER, sectionNumber); fragment.setArguments(args); return fragment; } public PlaceholderFragment() { } | /**
* Returns a new instance of this fragment for the given section
* number.
*/ | Returns a new instance of this fragment for the given section number | newInstance | {
"repo_name": "kleiren/Back",
"path": "workspace/EjerciciosdeEspalda/Ejercicios de Espalda/src/main/java/com/ejerciciosdeespalda/MainActivity.java",
"license": "gpl-2.0",
"size": 11545
} | [
"android.os.Bundle"
] | import android.os.Bundle; | import android.os.*; | [
"android.os"
] | android.os; | 923,594 |
public List<String> getBCC(); | List<String> function(); | /**
* Gets the recipients the email is being blind copied to
*
* @return List<String> value for the BlindCopyTo field of the email
* @since org.openntf.domino 4.5.0
*/ | Gets the recipients the email is being blind copied to | getBCC | {
"repo_name": "rPraml/org.openntf.domino",
"path": "domino/deprecated/src/main/java/org/openntf/domino/email/IEmail.java",
"license": "apache-2.0",
"size": 9473
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 454,934 |
public List retrieveIdentificationsForPhoto(Photo photo)
throws DatabaseDownException, SQLException {
logger.debug("PhotoId " + photo.getId());
PhotoIdentificationDAO dao = new PhotoIdentificationDAO();
List list = dao.retrieveIdentifications(photo);
return list;
... | List function(Photo photo) throws DatabaseDownException, SQLException { logger.debug(STR + photo.getId()); PhotoIdentificationDAO dao = new PhotoIdentificationDAO(); List list = dao.retrieveIdentifications(photo); return list; } | /**
* This method retrieves all identifications for the given photo
*
* @param photo
* The photo to have its identifications retrieved
*
* @return An ArrayList object with Comment objects
*
* @throws DatabaseDownException
* If the database ... | This method retrieves all identifications for the given photo | retrieveIdentificationsForPhoto | {
"repo_name": "BackupTheBerlios/arara-svn",
"path": "core/tags/arara-1.1/src/main/java/net/indrix/arara/model/PhotoModel.java",
"license": "gpl-2.0",
"size": 27468
} | [
"java.sql.SQLException",
"java.util.List",
"net.indrix.arara.dao.DatabaseDownException",
"net.indrix.arara.dao.PhotoIdentificationDAO",
"net.indrix.arara.vo.Photo"
] | import java.sql.SQLException; import java.util.List; import net.indrix.arara.dao.DatabaseDownException; import net.indrix.arara.dao.PhotoIdentificationDAO; import net.indrix.arara.vo.Photo; | import java.sql.*; import java.util.*; import net.indrix.arara.dao.*; import net.indrix.arara.vo.*; | [
"java.sql",
"java.util",
"net.indrix.arara"
] | java.sql; java.util; net.indrix.arara; | 654,003 |
@Override
protected boolean preUpdate(MutableSegment currentActive, Cell cell,
MemStoreSizing memstoreSizing) {
if (currentActive.sharedLock()) {
if (checkAndAddToActiveSize(currentActive, cell, memstoreSizing)) {
return true;
}
currentActive.sharedUnlock();
}
return fals... | boolean function(MutableSegment currentActive, Cell cell, MemStoreSizing memstoreSizing) { if (currentActive.sharedLock()) { if (checkAndAddToActiveSize(currentActive, cell, memstoreSizing)) { return true; } currentActive.sharedUnlock(); } return false; } | /**
* Issue any synchronization and test needed before applying the update
* For compacting memstore this means checking the update can increase the size without
* overflow
* @param currentActive the segment to be updated
* @param cell the cell to be added
* @param memstoreSizing object to accumulate ... | Issue any synchronization and test needed before applying the update For compacting memstore this means checking the update can increase the size without overflow | preUpdate | {
"repo_name": "ultratendency/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/CompactingMemStore.java",
"license": "apache-2.0",
"size": 23687
} | [
"org.apache.hadoop.hbase.Cell"
] | import org.apache.hadoop.hbase.Cell; | import org.apache.hadoop.hbase.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 346,759 |
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException, MBeanException,
ReflectionException {
super.setAttribute(attribute);
ContextEnvironment ce = null;
try {
ce = (ContextEnvironment) getManagedResource();
} catch (In... | void function(Attribute attribute) throws AttributeNotFoundException, MBeanException, ReflectionException { super.setAttribute(attribute); ContextEnvironment ce = null; try { ce = (ContextEnvironment) getManagedResource(); } catch (InstanceNotFoundException e) { throw new MBeanException(e); } catch (InvalidTargetObject... | /**
* Set the value of a specific attribute of this MBean.
*
* @param attribute The identification of the attribute to be set
* and the new value
*
* @exception AttributeNotFoundException if this attribute is not
* supported by this MBean
* @exception MBeanException if the init... | Set the value of a specific attribute of this MBean | setAttribute | {
"repo_name": "devjin24/howtomcatworks",
"path": "bookrefer/jakarta-tomcat-5.0.18-src/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/mbeans/ContextEnvironmentMBean.java",
"license": "apache-2.0",
"size": 5712
} | [
"javax.management.Attribute",
"javax.management.AttributeNotFoundException",
"javax.management.InstanceNotFoundException",
"javax.management.MBeanException",
"javax.management.ReflectionException",
"javax.management.modelmbean.InvalidTargetObjectTypeException",
"org.apache.catalina.deploy.ContextEnviron... | import javax.management.Attribute; import javax.management.AttributeNotFoundException; import javax.management.InstanceNotFoundException; import javax.management.MBeanException; import javax.management.ReflectionException; import javax.management.modelmbean.InvalidTargetObjectTypeException; import org.apache.catalina.d... | import javax.management.*; import javax.management.modelmbean.*; import org.apache.catalina.deploy.*; | [
"javax.management",
"org.apache.catalina"
] | javax.management; org.apache.catalina; | 1,695,070 |
InetAddress addr;
try {
addr = InetAddress.getLocalHost();
} catch (ArrayIndexOutOfBoundsException e) { //this is workaround for mac osx bug see AS7-3223 and JGRP-1404
addr = InetAddress.getByName(null);
}
return addr;
} | InetAddress addr; try { addr = InetAddress.getLocalHost(); } catch (ArrayIndexOutOfBoundsException e) { addr = InetAddress.getByName(null); } return addr; } | /**
* Methods returns InetAddress for localhost
*
* @return InetAddress of the localhost
* @throws UnknownHostException if localhost could not be resolved
*/ | Methods returns InetAddress for localhost | getLocalHost | {
"repo_name": "jamezp/wildfly-core",
"path": "controller/src/main/java/org/jboss/as/controller/interfaces/InetAddressUtil.java",
"license": "lgpl-2.1",
"size": 10514
} | [
"java.net.InetAddress"
] | import java.net.InetAddress; | import java.net.*; | [
"java.net"
] | java.net; | 955,306 |
public BigDecimal getAvailable() {
return available;
} | BigDecimal function() { return available; } | /**
* Available amount of balance
*
* @return
*/ | Available amount of balance | getAvailable | {
"repo_name": "timmolter/XChange",
"path": "xchange-latoken/src/main/java/org/knowm/xchange/latoken/dto/account/LatokenBalance.java",
"license": "mit",
"size": 2352
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 1,601,030 |
public DTMAxisIterator setStartNode(int node) {
//%HZ%: Added reference to DTMDefaultBase.ROOTNODE back in, temporarily
if (node == DTMDefaultBase.ROOTNODE)
node = getDocument();
if (_isRestartable) {
_startNode = node;
_currentNode = (node == DTM.NULL) ? DTM.NULL :
... | DTMAxisIterator function(int node) { if (node == DTMDefaultBase.ROOTNODE) node = getDocument(); if (_isRestartable) { _startNode = node; _currentNode = (node == DTM.NULL) ? DTM.NULL : _firstch2(makeNodeIdentity(_startNode)); return resetPosition(); } return this; } | /**
* Set start to END should 'close' the iterator,
* i.e. subsequent call to next() should return END.
*
* @param node Sets the root of the iteration.
*
* @return A DTMAxisIterator set to the start of the iteration.
*/ | Set start to END should 'close' the iterator, i.e. subsequent call to next() should return END | setStartNode | {
"repo_name": "md-5/jdk10",
"path": "src/java.xml/share/classes/com/sun/org/apache/xml/internal/dtm/ref/sax2dtm/SAX2DTM2.java",
"license": "gpl-2.0",
"size": 95669
} | [
"com.sun.org.apache.xml.internal.dtm.DTMAxisIterator",
"com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase"
] | import com.sun.org.apache.xml.internal.dtm.DTMAxisIterator; import com.sun.org.apache.xml.internal.dtm.ref.DTMDefaultBase; | import com.sun.org.apache.xml.internal.dtm.*; import com.sun.org.apache.xml.internal.dtm.ref.*; | [
"com.sun.org"
] | com.sun.org; | 2,047,301 |
// TODO: Deprecate.
public static <T> boolean xmlIsValid(DOMSource xmlfile, Class<T> clazz, String schemaFile) {
try {
PlatformUtil.extractResourceToUserConfigDir(clazz, schemaFile, false);
File schemaLoc = new File(PlatformUtil.getUserConfigDirectory() + File.separator + schemaF... | static <T> boolean function(DOMSource xmlfile, Class<T> clazz, String schemaFile) { try { PlatformUtil.extractResourceToUserConfigDir(clazz, schemaFile, false); File schemaLoc = new File(PlatformUtil.getUserConfigDirectory() + File.separator + schemaFile); SchemaFactory schm = SchemaFactory.newInstance(XMLConstants.W3C... | /**
* Utility to validate XML files against pre-defined schema files.
*
* The schema files are extracted automatically when this function is
* called, the XML being validated is not. Be sure the XML file is already
* extracted otherwise it will return false.
*
* @param xmlfile The ... | Utility to validate XML files against pre-defined schema files. The schema files are extracted automatically when this function is called, the XML being validated is not. Be sure the XML file is already extracted otherwise it will return false | xmlIsValid | {
"repo_name": "dgrove727/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/coreutils/XMLUtil.java",
"license": "apache-2.0",
"size": 13126
} | [
"java.io.File",
"java.io.IOException",
"java.util.logging.Level",
"javax.xml.XMLConstants",
"javax.xml.transform.dom.DOMResult",
"javax.xml.transform.dom.DOMSource",
"javax.xml.validation.Schema",
"javax.xml.validation.SchemaFactory",
"javax.xml.validation.Validator",
"org.xml.sax.SAXException"
] | import java.io.File; import java.io.IOException; import java.util.logging.Level; import javax.xml.XMLConstants; import javax.xml.transform.dom.DOMResult; import javax.xml.transform.dom.DOMSource; import javax.xml.validation.Schema; import javax.xml.validation.SchemaFactory; import javax.xml.validation.Validator; import... | import java.io.*; import java.util.logging.*; import javax.xml.*; import javax.xml.transform.dom.*; import javax.xml.validation.*; import org.xml.sax.*; | [
"java.io",
"java.util",
"javax.xml",
"org.xml.sax"
] | java.io; java.util; javax.xml; org.xml.sax; | 623,254 |
public void saveAll(final ListResult<T> listResult, final AsyncCallback<Void> callback) {
if (listResult != null && listResult.getList() != null) {
saveAll(listResult.getList(), callback);
}
}
/**
* {@inheritDoc} | void function(final ListResult<T> listResult, final AsyncCallback<Void> callback) { if (listResult != null && listResult.getList() != null) { saveAll(listResult.getList(), callback); } } /** * {@inheritDoc} | /**
* Open a new transaction and save or replace the given objects.
*
* @param listResult
* <code>ListResult</code> containing the objects to save or update.
* @param callback
* Called when the object is saved or in case of failure (not always supported).
*/ | Open a new transaction and save or replace the given objects | saveAll | {
"repo_name": "Raphcal/sigmah",
"path": "src/main/java/org/sigmah/offline/dao/AbstractUserDatabaseAsyncDAO.java",
"license": "gpl-3.0",
"size": 5128
} | [
"com.google.gwt.user.client.rpc.AsyncCallback",
"org.sigmah.shared.command.result.ListResult"
] | import com.google.gwt.user.client.rpc.AsyncCallback; import org.sigmah.shared.command.result.ListResult; | import com.google.gwt.user.client.rpc.*; import org.sigmah.shared.command.result.*; | [
"com.google.gwt",
"org.sigmah.shared"
] | com.google.gwt; org.sigmah.shared; | 323,189 |
private PolicyCustodianInfoType createCustodian(POCDMT000040Custodian oHL7Custodian) {
PolicyCustodianInfoType oCustodian = new PolicyCustodianInfoType();
boolean bHaveData = false;
if (oHL7Custodian != null) {
if ((oHL7Custodian.getAssignedCustodian() != null)
... | PolicyCustodianInfoType function(POCDMT000040Custodian oHL7Custodian) { PolicyCustodianInfoType oCustodian = new PolicyCustodianInfoType(); boolean bHaveData = false; if (oHL7Custodian != null) { if ((oHL7Custodian.getAssignedCustodian() != null) && (oHL7Custodian.getAssignedCustodian().getRepresentedCustodianOrganizat... | /**
* This creates a PolicyCustodianInfo based on the information in the HL7 object of the same type.
*
* @param oHL7Custodian The HL7 object for custodian.
* @return The internal representation of the custodian information.
*/ | This creates a PolicyCustodianInfo based on the information in the HL7 object of the same type | createCustodian | {
"repo_name": "AurionProject/Aurion",
"path": "Product/Production/Services/PolicyEngineCore/src/main/java/gov/hhs/fha/nhinc/policyengine/adapter/pip/CdaPdfExtractor.java",
"license": "bsd-3-clause",
"size": 61531
} | [
"gov.hhs.fha.nhinc.common.nhinccommon.AddressType",
"gov.hhs.fha.nhinc.common.nhinccommonadapter.PolicyCustodianInfoType",
"org.hl7.v3.POCDMT000040Custodian"
] | import gov.hhs.fha.nhinc.common.nhinccommon.AddressType; import gov.hhs.fha.nhinc.common.nhinccommonadapter.PolicyCustodianInfoType; import org.hl7.v3.POCDMT000040Custodian; | import gov.hhs.fha.nhinc.common.nhinccommon.*; import gov.hhs.fha.nhinc.common.nhinccommonadapter.*; import org.hl7.v3.*; | [
"gov.hhs.fha",
"org.hl7.v3"
] | gov.hhs.fha; org.hl7.v3; | 2,021,084 |
protected void flushBuffer()
throws IOException {
int res = 0;
// If there are still leftover bytes here, this means the user did a direct flush:
// - If the call is asynchronous, throw an exception
// - If the call is synchronous, make regular blocking writes to fl... | void function() throws IOException { int res = 0; if (leftover.getLength() > 0) { if (Http11AbstractProcessor.containerThread.get() == Boolean.TRUE) { Socket.timeoutSet(socket, endpoint.getSoTimeout() * 1000); res = Socket.send(socket, leftover.getBuffer(), leftover.getOffset(), leftover.getEnd()); leftover.recycle(); ... | /**
* Callback to write data from the buffer.
*/ | Callback to write data from the buffer | flushBuffer | {
"repo_name": "kabir/jbw-play",
"path": "src/main/java/org/apache/coyote/http11/InternalAprOutputBuffer.java",
"license": "apache-2.0",
"size": 24362
} | [
"java.io.IOException",
"org.apache.coyote.ActionCode",
"org.apache.coyote.OutputBuffer",
"org.apache.tomcat.jni.Socket",
"org.jboss.web.CoyoteMessages"
] | import java.io.IOException; import org.apache.coyote.ActionCode; import org.apache.coyote.OutputBuffer; import org.apache.tomcat.jni.Socket; import org.jboss.web.CoyoteMessages; | import java.io.*; import org.apache.coyote.*; import org.apache.tomcat.jni.*; import org.jboss.web.*; | [
"java.io",
"org.apache.coyote",
"org.apache.tomcat",
"org.jboss.web"
] | java.io; org.apache.coyote; org.apache.tomcat; org.jboss.web; | 1,950,508 |
public Iterator getInvalidReferenceEventHandlers()
{
return invalidReferenceHandlers.iterator();
} | Iterator function() { return invalidReferenceHandlers.iterator(); } | /**
* Iterate through all the stored InvalidReferenceEventHandlers objects
*
* @return iterator of handler objects
* @since 1.5
*/ | Iterate through all the stored InvalidReferenceEventHandlers objects | getInvalidReferenceEventHandlers | {
"repo_name": "diydyq/velocity-engine",
"path": "velocity-engine-core/src/main/java/org/apache/velocity/app/event/EventCartridge.java",
"license": "apache-2.0",
"size": 10130
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,610,003 |
public MoreLikeThisRequestBuilder setSearchSource(Map searchSource) {
request.searchSource(searchSource);
return this;
} | MoreLikeThisRequestBuilder function(Map searchSource) { request.searchSource(searchSource); return this; } | /**
* An optional search source request allowing to control the search request for the
* more like this documents.
*/ | An optional search source request allowing to control the search request for the more like this documents | setSearchSource | {
"repo_name": "chanil1218/elasticsearch",
"path": "src/main/java/org/elasticsearch/action/mlt/MoreLikeThisRequestBuilder.java",
"license": "apache-2.0",
"size": 7976
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,257,649 |
public int getImageWidth() {
PlanarImage image = getImage();
if (image != null) {
if (_prescaled) // return original image size before prescaling
return (int) (image.getWidth() / _scale);
return image.getWidth();
}
return 0;
} | int function() { PlanarImage image = getImage(); if (image != null) { if (_prescaled) return (int) (image.getWidth() / _scale); return image.getWidth(); } return 0; } | /**
* Return the width of the source image in pixels
*/ | Return the width of the source image in pixels | getImageWidth | {
"repo_name": "arturog8m/ocs",
"path": "bundle/jsky.app.ot/src/main/java/jsky/image/gui/ImageDisplay.java",
"license": "bsd-3-clause",
"size": 24746
} | [
"javax.media.jai.PlanarImage"
] | import javax.media.jai.PlanarImage; | import javax.media.jai.*; | [
"javax.media"
] | javax.media; | 2,858,055 |
void synch(PageIo node) throws IOException {
ByteBuffer data = node.getData();
if (data != null) {
if(cipherIn!=null)
storage.write(node.getPageId(), ByteBuffer.wrap(Utils.encrypt(cipherIn, data)));
else
storage.write(node.getPageId(), data);
... | void synch(PageIo node) throws IOException { ByteBuffer data = node.getData(); if (data != null) { if(cipherIn!=null) storage.write(node.getPageId(), ByteBuffer.wrap(Utils.encrypt(cipherIn, data))); else storage.write(node.getPageId(), data); } } | /**
* Synchs a node to disk. This is called by the transaction manager's
* synchronization code.
*/ | Synchs a node to disk. This is called by the transaction manager's synchronization code | synch | {
"repo_name": "jankotek/JDBM3",
"path": "src/main/java/org/apache/jdbm/PageFile.java",
"license": "apache-2.0",
"size": 12136
} | [
"java.io.IOException",
"java.nio.ByteBuffer"
] | import java.io.IOException; import java.nio.ByteBuffer; | import java.io.*; import java.nio.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,343,737 |
private static boolean skip(Pair cur, Pair next) {
return ((int)next.x == (int)cur.x);
} | static boolean function(Pair cur, Pair next) { return ((int)next.x == (int)cur.x); } | /**
* Returns true if the next Pair should be skipped. Change this function to the desired criteria.
* @param cur the current Pair
* @param next the next Pair
* @return true to skip the next pair
*/ | Returns true if the next Pair should be skipped. Change this function to the desired criteria | skip | {
"repo_name": "himanshug/sketches-core",
"path": "src/test/java/com/yahoo/sketches/PowerLawGeneratorTest.java",
"license": "apache-2.0",
"size": 5064
} | [
"com.yahoo.sketches.PowerLawGenerator"
] | import com.yahoo.sketches.PowerLawGenerator; | import com.yahoo.sketches.*; | [
"com.yahoo.sketches"
] | com.yahoo.sketches; | 1,823,745 |
public void findSubviewIn(int reactTag, float targetX, float targetY, Callback callback) {
mOperationsQueue.enqueueFindTargetForTouch(reactTag, targetX, targetY, callback);
} | void function(int reactTag, float targetX, float targetY, Callback callback) { mOperationsQueue.enqueueFindTargetForTouch(reactTag, targetX, targetY, callback); } | /**
* Find the touch target child native view in the supplied root view hierarchy, given a react
* target location.
*
* This method is currently used only by Element Inspector DevTool.
*
* @param reactTag the tag of the root view to traverse
* @param targetX target X location
* @param targetY t... | Find the touch target child native view in the supplied root view hierarchy, given a react target location. This method is currently used only by Element Inspector DevTool | findSubviewIn | {
"repo_name": "xiayz/react-native",
"path": "ReactAndroid/src/main/java/com/facebook/react/uimanager/UIImplementation.java",
"license": "bsd-3-clause",
"size": 31339
} | [
"com.facebook.react.bridge.Callback"
] | import com.facebook.react.bridge.Callback; | import com.facebook.react.bridge.*; | [
"com.facebook.react"
] | com.facebook.react; | 472,541 |
IBookFormBean fillBookFormBean(); | IBookFormBean fillBookFormBean(); | /**
* Fill a <code>BookFormBean</code> with the infos in the interface.
*
* @return The filled <code>BookFormBean</code>.
*/ | Fill a <code>BookFormBean</code> with the infos in the interface | fillBookFormBean | {
"repo_name": "wichtounet/jtheque-books-module",
"path": "src/main/java/org/jtheque/books/view/able/IBookView.java",
"license": "apache-2.0",
"size": 1423
} | [
"org.jtheque.books.view.able.fb.IBookFormBean"
] | import org.jtheque.books.view.able.fb.IBookFormBean; | import org.jtheque.books.view.able.fb.*; | [
"org.jtheque.books"
] | org.jtheque.books; | 1,818,538 |
public boolean solveCholesky(DenseMatrix64F A, DenseMatrix64F b) {
createSolver(A.numCols);
return solveEquation(getCholeskySolver(), A, b);
} | boolean function(DenseMatrix64F A, DenseMatrix64F b) { createSolver(A.numCols); return solveEquation(getCholeskySolver(), A, b); } | /**
* Solves (one) linear equation, A x = b.
*
* <p>On output b replaced by x. Matrix a may be modified.
*
* @param A the matrix A
* @param b the vector b
* @return False if the equation is singular (no solution)
*/ | Solves (one) linear equation, A x = b. On output b replaced by x. Matrix a may be modified | solveCholesky | {
"repo_name": "aherbert/GDSC-SMLM",
"path": "src/main/java/uk/ac/sussex/gdsc/smlm/fitting/linear/EjmlLinearSolver.java",
"license": "gpl-3.0",
"size": 40872
} | [
"org.ejml.data.DenseMatrix64F"
] | import org.ejml.data.DenseMatrix64F; | import org.ejml.data.*; | [
"org.ejml.data"
] | org.ejml.data; | 2,223,312 |
public Timer.Context startCallableStatementExecuteTimer(Query query) {
ensureSqlId(query);
String name = metricNamingStrategy.getCallableStatementExecuteTimer(query.getSql(), query.getSqlId());
return startTimer(name);
} | Timer.Context function(Query query) { ensureSqlId(query); String name = metricNamingStrategy.getCallableStatementExecuteTimer(query.getSql(), query.getSqlId()); return startTimer(name); } | /**
* Start Timer when prepared statement is created
*
* @return Started timer context or null
*/ | Start Timer when prepared statement is created | startCallableStatementExecuteTimer | {
"repo_name": "gquintana/metrics-sql",
"path": "src/main/java/com/github/gquintana/metrics/sql/MetricHelper.java",
"license": "apache-2.0",
"size": 4984
} | [
"com.codahale.metrics.Timer"
] | import com.codahale.metrics.Timer; | import com.codahale.metrics.*; | [
"com.codahale.metrics"
] | com.codahale.metrics; | 293,316 |
@TargetApi(19)
public static CaptionStyleCompat createFromCaptionStyle(
CaptioningManager.CaptionStyle captionStyle) {
if (Util.SDK_INT >= 21) {
return createFromCaptionStyleV21(captionStyle);
} else {
// Note - Any caller must be on at least API level 19 or greater (because CaptionStyle d... | @TargetApi(19) static CaptionStyleCompat function( CaptioningManager.CaptionStyle captionStyle) { if (Util.SDK_INT >= 21) { return createFromCaptionStyleV21(captionStyle); } else { return createFromCaptionStyleV19(captionStyle); } } public CaptionStyleCompat(int foregroundColor, int backgroundColor, int windowColor, in... | /**
* Creates a {@link CaptionStyleCompat} equivalent to a provided {@link CaptionStyle}.
*
* @param captionStyle A {@link CaptionStyle}.
* @return The equivalent {@link CaptionStyleCompat}.
*/ | Creates a <code>CaptionStyleCompat</code> equivalent to a provided <code>CaptionStyle</code> | createFromCaptionStyle | {
"repo_name": "Puja-Mishra/Android_FreeChat",
"path": "Telegram-master/TMessagesProj/src/main/java/org/telegram/messenger/exoplayer/text/CaptionStyleCompat.java",
"license": "gpl-2.0",
"size": 5086
} | [
"android.annotation.TargetApi",
"android.graphics.Typeface",
"android.view.accessibility.CaptioningManager",
"org.telegram.messenger.exoplayer.util.Util"
] | import android.annotation.TargetApi; import android.graphics.Typeface; import android.view.accessibility.CaptioningManager; import org.telegram.messenger.exoplayer.util.Util; | import android.annotation.*; import android.graphics.*; import android.view.accessibility.*; import org.telegram.messenger.exoplayer.util.*; | [
"android.annotation",
"android.graphics",
"android.view",
"org.telegram.messenger"
] | android.annotation; android.graphics; android.view; org.telegram.messenger; | 1,294,198 |
public static BigDecimal toBigDecimal(CharSequence self) {
return new BigDecimal(self.toString().trim());
} | static BigDecimal function(CharSequence self) { return new BigDecimal(self.toString().trim()); } | /**
* Parse a CharSequence into a BigDecimal
*
* @param self a CharSequence
* @return a BigDecimal
* @see #toBigDecimal(String)
* @since 1.8.2
*/ | Parse a CharSequence into a BigDecimal | toBigDecimal | {
"repo_name": "bsideup/incubator-groovy",
"path": "src/main/org/codehaus/groovy/runtime/StringGroovyMethods.java",
"license": "apache-2.0",
"size": 141076
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 2,264,747 |
public final String getName()
{
return glfwGetMonitorName(id);
}
| final String function() { return glfwGetMonitorName(id); } | /**
* <p>
* Get the name of the display.
* </p>
*
* @return The name.
*/ | Get the name of the display. | getName | {
"repo_name": "Snakybo/SEngine2",
"path": "src/main/java/com/snakybo/torch/graphics/display/Display.java",
"license": "mit",
"size": 4732
} | [
"org.lwjgl.glfw.GLFW"
] | import org.lwjgl.glfw.GLFW; | import org.lwjgl.glfw.*; | [
"org.lwjgl.glfw"
] | org.lwjgl.glfw; | 2,760,467 |
private void sendMessageToHandler(Integer what) {
Message msg = Message.obtain();
msg.what = what;
try {
mMessenger.send(msg);
} catch (RemoteException e) {
Log.w(Constants.TAG, "Exception sending message, Is handler present?", e);
} catch (NullPointe... | void function(Integer what) { Message msg = Message.obtain(); msg.what = what; try { mMessenger.send(msg); } catch (RemoteException e) { Log.w(Constants.TAG, STR, e); } catch (NullPointerException e) { Log.w(Constants.TAG, STR, e); } } | /**
* Send message back to handler which is initialized in a activity
*
* @param what Message integer you want to send
*/ | Send message back to handler which is initialized in a activity | sendMessageToHandler | {
"repo_name": "bresalio/open-keychain",
"path": "OpenKeychain/src/main/java/org/sufficientlysecure/keychain/ui/dialog/AddUserIdDialogFragment.java",
"license": "gpl-3.0",
"size": 8125
} | [
"android.os.Message",
"android.os.RemoteException",
"org.sufficientlysecure.keychain.Constants",
"org.sufficientlysecure.keychain.util.Log"
] | import android.os.Message; import android.os.RemoteException; import org.sufficientlysecure.keychain.Constants; import org.sufficientlysecure.keychain.util.Log; | import android.os.*; import org.sufficientlysecure.keychain.*; import org.sufficientlysecure.keychain.util.*; | [
"android.os",
"org.sufficientlysecure.keychain"
] | android.os; org.sufficientlysecure.keychain; | 2,678,847 |
public Set<String> getKnownVariables();
| Set<String> function(); | /**
* Return a list of known variables inside the factory. This method should not recurse into other factories.
* But rather return only the variables living inside this factory.
*
* @return
*/ | Return a list of known variables inside the factory. This method should not recurse into other factories. But rather return only the variables living inside this factory | getKnownVariables | {
"repo_name": "codehaus/mvel",
"path": "src/main/java/org/mvel2/integration/VariableResolverFactory.java",
"license": "apache-2.0",
"size": 4535
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 928,671 |
public Integer runWithCheckForSystemExit(Runnable runnable) {
SecurityManager oldSecurityManager = System.getSecurityManager();
System.setSecurityManager(new NoExitSecurityManager(oldSecurityManager));
PrintStream oldPrintStream = System.out;
System.setOut(new PrintStream(new B... | Integer function(Runnable runnable) { SecurityManager oldSecurityManager = System.getSecurityManager(); System.setSecurityManager(new NoExitSecurityManager(oldSecurityManager)); PrintStream oldPrintStream = System.out; System.setOut(new PrintStream(new ByteArrayOutputStream())); try { runnable.run(); System.out.println... | /**
* Execute runnable.run(), preventing System.exit(). If System.exit() is called
* in runnable.run(), the value is returned. If System.exit()
* is not called, null is returned.
*
* @return null if System.exit() is not called, Integer.valueof(status) if not
*/ | Execute runnable.run(), preventing System.exit(). If System.exit() is called in runnable.run(), the value is returned. If System.exit() is not called, null is returned | runWithCheckForSystemExit | {
"repo_name": "MattiasBuelens/junit",
"path": "src/test/java/org/junit/tests/running/core/MainRunner.java",
"license": "epl-1.0",
"size": 9476
} | [
"java.io.ByteArrayOutputStream",
"java.io.PrintStream"
] | import java.io.ByteArrayOutputStream; import java.io.PrintStream; | import java.io.*; | [
"java.io"
] | java.io; | 374,651 |
static void putViewstates(final Parameters params, final String[] viewstates) {
if (ArrayUtils.isEmpty(viewstates)) {
return;
}
params.put("__VIEWSTATE", viewstates[0]);
if (viewstates.length > 1) {
for (int i = 1; i < viewstates.length; i++) {
... | static void putViewstates(final Parameters params, final String[] viewstates) { if (ArrayUtils.isEmpty(viewstates)) { return; } params.put(STR, viewstates[0]); if (viewstates.length > 1) { for (int i = 1; i < viewstates.length; i++) { params.put(STR + i, viewstates[i]); } params.put(STR, String.valueOf(viewstates.lengt... | /**
* put viewstates into request parameters
*/ | put viewstates into request parameters | putViewstates | {
"repo_name": "xiaoyanit/cgeo",
"path": "main/src/cgeo/geocaching/connector/gc/GCLogin.java",
"license": "apache-2.0",
"size": 18924
} | [
"org.apache.commons.lang3.ArrayUtils"
] | import org.apache.commons.lang3.ArrayUtils; | import org.apache.commons.lang3.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,657,905 |
public void drawAngularGridLines(Graphics2D g2,
PolarPlot plot,
List ticks,
Rectangle2D dataArea) {
g2.setFont(plot.getAngleLabelFont());
g2.setStroke(plot.getAngleGridlineStroke());... | void function(Graphics2D g2, PolarPlot plot, List ticks, Rectangle2D dataArea) { g2.setFont(plot.getAngleLabelFont()); g2.setStroke(plot.getAngleGridlineStroke()); g2.setPaint(plot.getAngleGridlinePaint()); double axisMin = plot.getAxis().getLowerBound(); double maxRadius = plot.getMaxRadius(); Point center = plot.tran... | /**
* Draw the angular gridlines - the spokes.
*
* @param g2 the drawing surface.
* @param plot the plot.
* @param ticks the ticks.
* @param dataArea the data area.
*/ | Draw the angular gridlines - the spokes | drawAngularGridLines | {
"repo_name": "apetresc/JFreeChart",
"path": "src/main/java/org/jfree/chart/renderer/DefaultPolarItemRenderer.java",
"license": "lgpl-2.1",
"size": 11976
} | [
"java.awt.Graphics2D",
"java.awt.Point",
"java.awt.geom.Rectangle2D",
"java.util.Iterator",
"java.util.List",
"org.jfree.chart.axis.NumberTick",
"org.jfree.chart.plot.PolarPlot",
"org.jfree.text.TextUtilities",
"org.jfree.ui.TextAnchor"
] | import java.awt.Graphics2D; import java.awt.Point; import java.awt.geom.Rectangle2D; import java.util.Iterator; import java.util.List; import org.jfree.chart.axis.NumberTick; import org.jfree.chart.plot.PolarPlot; import org.jfree.text.TextUtilities; import org.jfree.ui.TextAnchor; | import java.awt.*; import java.awt.geom.*; import java.util.*; import org.jfree.chart.axis.*; import org.jfree.chart.plot.*; import org.jfree.text.*; import org.jfree.ui.*; | [
"java.awt",
"java.util",
"org.jfree.chart",
"org.jfree.text",
"org.jfree.ui"
] | java.awt; java.util; org.jfree.chart; org.jfree.text; org.jfree.ui; | 312,619 |
private String writeContent(OdtFile file) throws TemplateException {
String path = TEMP + NabuccoSystem.createUUID() + "/Profile.odt";
try {
ContentEntryPrototypeRq produceMessage = new ContentEntryPrototypeRq();
produceMessage.setType(ContentEntryType.INTERNAL_DATA);
... | String function(OdtFile file) throws TemplateException { String path = TEMP + NabuccoSystem.createUUID() + STR; try { ContentEntryPrototypeRq produceMessage = new ContentEntryPrototypeRq(); produceMessage.setType(ContentEntryType.INTERNAL_DATA); ServiceRequest<ContentEntryPrototypeRq> rq = new ServiceRequest<ContentEnt... | /**
* Write the odt file to content component.
*
* @param file
* the odt file to write
*
* @return the url to the created file
*
* @throws TemplateException
* when the template cannot be written
*/ | Write the odt file to content component | writeContent | {
"repo_name": "NABUCCO/org.nabucco.framework.template",
"path": "org.nabucco.framework.template.impl.service/src/main/man/org/nabucco/framework/template/impl/service/odf/text/CreateTextFileServiceHandlerImpl.java",
"license": "epl-1.0",
"size": 16483
} | [
"org.nabucco.framework.base.facade.datatype.DatatypeState",
"org.nabucco.framework.base.facade.datatype.NabuccoSystem",
"org.nabucco.framework.base.facade.datatype.content.ContentEntryType",
"org.nabucco.framework.base.facade.message.ServiceRequest",
"org.nabucco.framework.base.facade.message.ServiceRespons... | import org.nabucco.framework.base.facade.datatype.DatatypeState; import org.nabucco.framework.base.facade.datatype.NabuccoSystem; import org.nabucco.framework.base.facade.datatype.content.ContentEntryType; import org.nabucco.framework.base.facade.message.ServiceRequest; import org.nabucco.framework.base.facade.message.... | import org.nabucco.framework.base.facade.datatype.*; import org.nabucco.framework.base.facade.datatype.content.*; import org.nabucco.framework.base.facade.message.*; import org.nabucco.framework.content.facade.component.*; import org.nabucco.framework.content.facade.datatype.*; import org.nabucco.framework.content.faca... | [
"org.nabucco.framework"
] | org.nabucco.framework; | 1,544,661 |
@Nullable
default D readRecord(@Deprecated D reuse) throws DataRecordException, IOException {
throw new UnsupportedOperationException();
} | default D readRecord(@Deprecated D reuse) throws DataRecordException, IOException { throw new UnsupportedOperationException(); } | /**
* Read the next data record from the data source.
*
* <p>
* Reuse of data records has been deprecated and is not executed internally.
* </p>
*
* @param reuse the data record object to be reused
* @return the next data record extracted from the data source
* @throws DataRecordException i... | Read the next data record from the data source. Reuse of data records has been deprecated and is not executed internally. | readRecord | {
"repo_name": "jinhyukchang/gobblin",
"path": "gobblin-api/src/main/java/org/apache/gobblin/source/extractor/Extractor.java",
"license": "apache-2.0",
"size": 4991
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,118,545 |
protected void addActuatePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_CoordinateOperationRefType_actuate_feature"),
getString("_UI_Proper... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), GmlPackage.eINSTANCE.getCoordinateOperationRefType_Actuate(), true, false, false, ItemPropertyDes... | /**
* This adds a property descriptor for the Actuate feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds a property descriptor for the Actuate feature. | addActuatePropertyDescriptor | {
"repo_name": "markus1978/citygml4emf",
"path": "de.hub.citygml.emf.ecore.edit/src/net/opengis/gml/provider/CoordinateOperationRefTypeItemProvider.java",
"license": "apache-2.0",
"size": 13467
} | [
"net.opengis.gml.GmlPackage",
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor"
] | import net.opengis.gml.GmlPackage; import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; | import net.opengis.gml.*; import org.eclipse.emf.edit.provider.*; | [
"net.opengis.gml",
"org.eclipse.emf"
] | net.opengis.gml; org.eclipse.emf; | 452,258 |
public final T masterNodeTimeout(String timeout) {
return masterNodeTimeout(TimeValue.parseTimeValue(timeout, null));
} | final T function(String timeout) { return masterNodeTimeout(TimeValue.parseTimeValue(timeout, null)); } | /**
* A timeout value in case the master has not been discovered yet or disconnected.
*/ | A timeout value in case the master has not been discovered yet or disconnected | masterNodeTimeout | {
"repo_name": "abhijitiitr/es",
"path": "src/main/java/org/elasticsearch/action/support/master/MasterNodeOperationRequest.java",
"license": "apache-2.0",
"size": 2343
} | [
"org.elasticsearch.common.unit.TimeValue"
] | import org.elasticsearch.common.unit.TimeValue; | import org.elasticsearch.common.unit.*; | [
"org.elasticsearch.common"
] | org.elasticsearch.common; | 1,733,557 |
public void copyAllDocumentation(APIIdentifier apiId, String toVersion) throws APIManagementException {
String oldVersion = APIUtil.getAPIDocPath(apiId);
String newVersion = APIConstants.API_ROOT_LOCATION + RegistryConstants.PATH_SEPARATOR +
apiId.getProviderName() + RegistryConstan... | void function(APIIdentifier apiId, String toVersion) throws APIManagementException { String oldVersion = APIUtil.getAPIDocPath(apiId); String newVersion = APIConstants.API_ROOT_LOCATION + RegistryConstants.PATH_SEPARATOR + apiId.getProviderName() + RegistryConstants.PATH_SEPARATOR + apiId.getApiName() + RegistryConstan... | /**
* Copies current Documentation into another version of the same API.
*
* @param toVersion Version to which Documentation should be copied.
* @param apiId id of the APIIdentifier
* @throws org.wso2.carbon.apimgt.api.APIManagementException if failed to copy docs
*/ | Copies current Documentation into another version of the same API | copyAllDocumentation | {
"repo_name": "Rajith90/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/APIProviderImpl.java",
"license": "apache-2.0",
"size": 520854
} | [
"java.util.Collection",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.api.model.APIIdentifier",
"org.wso2.carbon.apimgt.impl.utils.APIUtil",
"org.wso2.carbon.registry.core.RegistryConstants",
"org.wso2.carbon.registry.core.Resource",
"org.wso2.carbon.registry.core.exceptio... | import java.util.Collection; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.APIIdentifier; import org.wso2.carbon.apimgt.impl.utils.APIUtil; import org.wso2.carbon.registry.core.RegistryConstants; import org.wso2.carbon.registry.core.Resource; import org.wso2.carbon.re... | import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.utils.*; import org.wso2.carbon.registry.core.*; import org.wso2.carbon.registry.core.exceptions.*; | [
"java.util",
"org.wso2.carbon"
] | java.util; org.wso2.carbon; | 707,884 |
public static String wrap (String string, String lineSeparator, int wrapLength)
{
// Null or blank string should return an empty ("") string
if (nullOrEmptyOrBlankString(string)) {
return "";
}
int stringLength = string.length();
if (stringLength > wrapLeng... | static String function (String string, String lineSeparator, int wrapLength) { if (nullOrEmptyOrBlankString(string)) { return STRInvalid use of wrap, wrap length must be more than 1STR<br>"; } StringBuffer sb = new StringBuffer(stringLength + ((stringLength / wrapLength) * 2 * lineSeparator.length())); BreakIterator li... | /**
* Return the string argument with the lineSeparator inserted every wrapLength- characters.
* Doesn't break a word, correctly handles punctuation and hyphenated words.
* <pre>
* StringUtil.wrap("Hello World!, null, 9) = Hello<br>World!
* StringUtil.wrap("1234512345", "<br>", 5) = 1234512345
*... | Return the string argument with the lineSeparator inserted every wrapLength- characters. Doesn't break a word, correctly handles punctuation and hyphenated words. <code> StringUtil.wrap("Hello World!, null, 9) = HelloWorld! StringUtil.wrap("1234512345", "", 5) = 1234512345 StringUtil.wrap("12345", 10) = 12345 </code> | wrap | {
"repo_name": "google-code/aribaweb",
"path": "src/util/ariba/util/core/StringUtil.java",
"license": "apache-2.0",
"size": 60423
} | [
"java.text.BreakIterator"
] | import java.text.BreakIterator; | import java.text.*; | [
"java.text"
] | java.text; | 408,957 |
public void setTimestamp(String filename) {
File file = new File(filename);
this.timestamp = file.lastModified();
} | void function(String filename) { File file = new File(filename); this.timestamp = file.lastModified(); } | /**
* Sets the timestamp.
*
* @param filename the file from which the timestamp should be gathered.
*/ | Sets the timestamp | setTimestamp | {
"repo_name": "mannyrivera2010/encryption-gnu",
"path": "src/hash/AbstractChecksum.java",
"license": "gpl-2.0",
"size": 17193
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,343,595 |
@FIXVersion(introduced = "5.0SP1")
@TagNumRef(tagNum = TagNum.DerivativeFloorPrice)
public void setDerivativeFloorPrice(Double derivativeFloorPrice) {
this.derivativeFloorPrice = derivativeFloorPrice;
} | @FIXVersion(introduced = STR) @TagNumRef(tagNum = TagNum.DerivativeFloorPrice) void function(Double derivativeFloorPrice) { this.derivativeFloorPrice = derivativeFloorPrice; } | /**
* Message field setter.
* @param derivativeFloorPrice field value
*/ | Message field setter | setDerivativeFloorPrice | {
"repo_name": "marvisan/HadesFIX",
"path": "Model/src/main/java/net/hades/fix/message/comp/DerivativeInstrument.java",
"license": "gpl-3.0",
"size": 83551
} | [
"net.hades.fix.message.anno.FIXVersion",
"net.hades.fix.message.anno.TagNumRef",
"net.hades.fix.message.type.TagNum"
] | import net.hades.fix.message.anno.FIXVersion; import net.hades.fix.message.anno.TagNumRef; import net.hades.fix.message.type.TagNum; | import net.hades.fix.message.anno.*; import net.hades.fix.message.type.*; | [
"net.hades.fix"
] | net.hades.fix; | 2,057,214 |
@Test public void connectViaHttpProxyToHttpsUsingProxySystemProperty() throws Exception {
testConnectViaHttpProxyToHttps(ProxyConfig.PROXY_SYSTEM_PROPERTY);
} | @Test void function() throws Exception { testConnectViaHttpProxyToHttps(ProxyConfig.PROXY_SYSTEM_PROPERTY); } | /**
* We weren't honoring all of the appropriate proxy system properties when
* connecting via HTTPS. http://b/3097518
*/ | We weren't honoring all of the appropriate proxy system properties when connecting via HTTPS. HREF | connectViaHttpProxyToHttpsUsingProxySystemProperty | {
"repo_name": "koush/okhttp",
"path": "okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/URLConnectionTest.java",
"license": "apache-2.0",
"size": 126678
} | [
"org.junit.Test"
] | import org.junit.Test; | import org.junit.*; | [
"org.junit"
] | org.junit; | 875,145 |
public FeatureCursor queryFeaturesForChunk(GeometryEnvelope envelope,
Map<String, Object> fieldValues, int limit, long offset) {
return queryFeaturesForChunk(envelope, fieldValues, getPkColumnName(),
limit, offset);
} | FeatureCursor function(GeometryEnvelope envelope, Map<String, Object> fieldValues, int limit, long offset) { return queryFeaturesForChunk(envelope, fieldValues, getPkColumnName(), limit, offset); } | /**
* Query for features within the geometry envelope ordered by id, starting
* at the offset and returning no more than the limit
*
* @param envelope geometry envelope
* @param fieldValues field values
* @param limit chunk limit
* @param offset chunk query offset
*... | Query for features within the geometry envelope ordered by id, starting at the offset and returning no more than the limit | queryFeaturesForChunk | {
"repo_name": "ngageoint/geopackage-android",
"path": "geopackage-sdk/src/main/java/mil/nga/geopackage/extension/nga/index/FeatureTableIndex.java",
"license": "mit",
"size": 276322
} | [
"java.util.Map",
"mil.nga.geopackage.features.user.FeatureCursor",
"mil.nga.sf.GeometryEnvelope"
] | import java.util.Map; import mil.nga.geopackage.features.user.FeatureCursor; import mil.nga.sf.GeometryEnvelope; | import java.util.*; import mil.nga.geopackage.features.user.*; import mil.nga.sf.*; | [
"java.util",
"mil.nga.geopackage",
"mil.nga.sf"
] | java.util; mil.nga.geopackage; mil.nga.sf; | 347,373 |
@Override
public void discover(DiscoveryRequest discoveryRequest, Holder<DiscoveryResponse> response)
throws WindowsDeviceEnrolmentException {
String emailId = discoveryRequest.getEmailId();
String[] userDomains = emailId.split(DELIMITER);
String domain = userDomains[DOMAIN_... | void function(DiscoveryRequest discoveryRequest, Holder<DiscoveryResponse> response) throws WindowsDeviceEnrolmentException { String emailId = discoveryRequest.getEmailId(); String[] userDomains = emailId.split(DELIMITER); String domain = userDomains[DOMAIN_SEGMENT]; DiscoveryResponse discoveryResponse = new DiscoveryR... | /**
* This method returns the OnPremise AuthPolicy and next two endpoint the mobile device should
* call if this response to received successfully at the device end. This method is called by
* device immediately after the first GET method calling for the same endpoint.
*
* @param discoveryReque... | This method returns the OnPremise AuthPolicy and next two endpoint the mobile device should call if this response to received successfully at the device end. This method is called by device immediately after the first GET method calling for the same endpoint | discover | {
"repo_name": "Shabirmean/carbon-device-mgt-plugins",
"path": "components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/api/services/discovery/impl/DiscoveryServiceImpl.java",
"license": "apache-2.0",
"size": 6332
} | [
"javax.xml.ws.Holder",
"org.wso2.carbon.device.mgt.mobile.windows.api.common.PluginConstants",
"org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsDeviceEnrolmentException",
"org.wso2.carbon.device.mgt.mobile.windows.api.services.discovery.beans.DiscoveryRequest",
"org.wso2.carbon.device... | import javax.xml.ws.Holder; import org.wso2.carbon.device.mgt.mobile.windows.api.common.PluginConstants; import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.WindowsDeviceEnrolmentException; import org.wso2.carbon.device.mgt.mobile.windows.api.services.discovery.beans.DiscoveryRequest; import org.wso2... | import javax.xml.ws.*; import org.wso2.carbon.device.mgt.mobile.windows.api.common.*; import org.wso2.carbon.device.mgt.mobile.windows.api.common.exceptions.*; import org.wso2.carbon.device.mgt.mobile.windows.api.services.discovery.beans.*; | [
"javax.xml",
"org.wso2.carbon"
] | javax.xml; org.wso2.carbon; | 1,080,878 |
protected CompilationProblem[] collectCompilerProblems() {
if (this.errors.isEmpty()) {
return null;
} else {
final CompilationProblem[] list = new CompilationProblem[this.errors.size()];
this.errors.toArray(list);
return list;
}
} | CompilationProblem[] function() { if (this.errors.isEmpty()) { return null; } else { final CompilationProblem[] list = new CompilationProblem[this.errors.size()]; this.errors.toArray(list); return list; } } | /**
* We must use an error of JCI problem objects. If there are no
* problems, null is returned. These errors are placed in the
* DroolsError instances. Its not 1 to 1 with reported errors.
*/ | We must use an error of JCI problem objects. If there are no problems, null is returned. These errors are placed in the DroolsError instances. Its not 1 to 1 with reported errors | collectCompilerProblems | {
"repo_name": "bxf12315/drools",
"path": "drools-compiler/src/main/java/org/drools/compiler/builder/impl/errors/ErrorHandler.java",
"license": "apache-2.0",
"size": 1946
} | [
"org.drools.compiler.commons.jci.problems.CompilationProblem"
] | import org.drools.compiler.commons.jci.problems.CompilationProblem; | import org.drools.compiler.commons.jci.problems.*; | [
"org.drools.compiler"
] | org.drools.compiler; | 1,248,610 |
public void translateTo(ClassGenerator classGen, MethodGenerator methodGen,
Type type) {
if (type == Type.String) {
translateTo(classGen, methodGen, (StringType) type);
}
else if (type == Type.Boolean) {
translateTo(classGen, methodGen, (Bo... | void function(ClassGenerator classGen, MethodGenerator methodGen, Type type) { if (type == Type.String) { translateTo(classGen, methodGen, (StringType) type); } else if (type == Type.Boolean) { translateTo(classGen, methodGen, (BooleanType) type); } else if (type == Type.Reference) { translateTo(classGen, methodGen, (R... | /**
* Translates a real into an object of internal type <code>type</code>. The
* translation to int is undefined since reals are never converted to ints.
*
* @see com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type#translateTo
*/ | Translates a real into an object of internal type <code>type</code>. The translation to int is undefined since reals are never converted to ints | translateTo | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/com/sun/org/apache/xalan/internal/xsltc/compiler/util/RealType.java",
"license": "apache-2.0",
"size": 12468
} | [
"com.sun.org.apache.xalan.internal.xsltc.compiler.Constants"
] | import com.sun.org.apache.xalan.internal.xsltc.compiler.Constants; | import com.sun.org.apache.xalan.internal.xsltc.compiler.*; | [
"com.sun.org"
] | com.sun.org; | 1,986,039 |
EList<IfcRelDefinesByTemplate> getDefines(); | EList<IfcRelDefinesByTemplate> getDefines(); | /**
* Returns the value of the '<em><b>Defines</b></em>' reference list.
* The list contents are of type {@link cn.dlb.bim.models.ifc4.IfcRelDefinesByTemplate}.
* It is bidirectional and its opposite is '{@link cn.dlb.bim.models.ifc4.IfcRelDefinesByTemplate#getRelatingTemplate <em>Relating Template</em>}'.
* <!... | Returns the value of the 'Defines' reference list. The list contents are of type <code>cn.dlb.bim.models.ifc4.IfcRelDefinesByTemplate</code>. It is bidirectional and its opposite is '<code>cn.dlb.bim.models.ifc4.IfcRelDefinesByTemplate#getRelatingTemplate Relating Template</code>'. If the meaning of the 'Defines' refer... | getDefines | {
"repo_name": "shenan4321/BIMplatform",
"path": "generated/cn/dlb/bim/models/ifc4/IfcPropertySetTemplate.java",
"license": "agpl-3.0",
"size": 8153
} | [
"org.eclipse.emf.common.util.EList"
] | import org.eclipse.emf.common.util.EList; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,082,051 |
public void setFillPattern(TexturePaint texture) {
drawingAttributes.setFillPaint(texture);
drawingAttributes.setTo(geometry);
} | void function(TexturePaint texture) { drawingAttributes.setFillPaint(texture); drawingAttributes.setTo(geometry); } | /**
* Set the fill pattern of all the graphics in the List. This will override
* the fill paint, if you've set that as well. There are sections of code in
* this method that need to be commented out if you are not using jdk 1.2.x.
*
* @param texture TexturePaint object to use as fill.
*/ | Set the fill pattern of all the graphics in the List. This will override the fill paint, if you've set that as well. There are sections of code in this method that need to be commented out if you are not using jdk 1.2.x | setFillPattern | {
"repo_name": "d2fn/passage",
"path": "src/main/java/com/bbn/openmap/layer/shape/areas/PoliticalArea.java",
"license": "mit",
"size": 6466
} | [
"java.awt.TexturePaint"
] | import java.awt.TexturePaint; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,717,005 |
public Set<Integer> getPendingSubscriptionsByApplicationId(int applicationId) throws APIManagementException {
Set<Integer> pendingSubscriptions = new HashSet<Integer>();
Connection conn = null;
PreparedStatement ps = null;
ResultSet rs = null;
String sqlQuery = SQLConstants.... | Set<Integer> function(int applicationId) throws APIManagementException { Set<Integer> pendingSubscriptions = new HashSet<Integer>(); Connection conn = null; PreparedStatement ps = null; ResultSet rs = null; String sqlQuery = SQLConstants.GET_PAGINATED_SUBSCRIPTIONS_BY_APPLICATION_SQL; try { conn = APIMgtDBUtil.getConne... | /**
* Retrieves IDs of pending subscriptions for a given application
*
* @param applicationId application id of the application
* @return Set containing subscription id list
* @throws APIManagementException
*/ | Retrieves IDs of pending subscriptions for a given application | getPendingSubscriptionsByApplicationId | {
"repo_name": "dhanuka84/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java",
"license": "apache-2.0",
"size": 461690
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"java.util.HashSet",
"java.util.Set",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.impl.APIConstants",
"org.wso2.carbon.apimgt.impl.dao.constants.SQLConstants",
"org.... | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashSet; import java.util.Set; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.impl.APIConstants; import org.wso2.carbon.apimgt.impl.dao.consta... | import java.sql.*; import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.apimgt.impl.dao.constants.*; import org.wso2.carbon.apimgt.impl.utils.*; | [
"java.sql",
"java.util",
"org.wso2.carbon"
] | java.sql; java.util; org.wso2.carbon; | 2,822,707 |
public void Initialize2(float xx, float yx, float xy, float yy, float x0,
float y0) {
setObject(new Matrix(xx, yx, xy, yy, x0, y0));
}
| void function(float xx, float yx, float xy, float yy, float x0, float y0) { setObject(new Matrix(xx, yx, xy, yy, x0, y0)); } | /**
* Initializes the PDF Matrix constructor for full values.
*/ | Initializes the PDF Matrix constructor for full values | Initialize2 | {
"repo_name": "gearit/RadaeePDF-B4A",
"path": "Source/Wrapper/RSPDFViewer/src/com/rootsoft/rspdfviewer/pdf/RSPDFMatrix.java",
"license": "apache-2.0",
"size": 1251
} | [
"com.radaee.pdf.Matrix"
] | import com.radaee.pdf.Matrix; | import com.radaee.pdf.*; | [
"com.radaee.pdf"
] | com.radaee.pdf; | 1,525,307 |
private void writeZooKeeper(TableLayoutDesc update) throws IOException, KeeperException {
LOG.info("Updating layout for table {} from layout ID {} to layout ID {} in ZooKeeper.",
mTableURI, update.getReferenceLayout(), update.getLayoutId());
ZooKeeperUtils.setTableLayout(mZKClient, mTableURI, update.g... | void function(TableLayoutDesc update) throws IOException, KeeperException { LOG.info(STR, mTableURI, update.getReferenceLayout(), update.getLayoutId()); ZooKeeperUtils.setTableLayout(mZKClient, mTableURI, update.getLayoutId()); } | /**
* Writes the new layout to ZooKeeper.
*
* <p> This pushes a layout update to all table users. </p>
*
* @param update Layout update to push to ZooKeeper.
*
* @throws java.io.IOException on I/O error.
* @throws org.apache.zookeeper.KeeperException on ZooKeeper error.
*/ | Writes the new layout to ZooKeeper. This pushes a layout update to all table users. | writeZooKeeper | {
"repo_name": "rpinzon/kiji-schema",
"path": "kiji-schema-cassandra/src/main/java/org/kiji/schema/impl/cassandra/CassandraTableLayoutUpdater.java",
"license": "apache-2.0",
"size": 16201
} | [
"java.io.IOException",
"org.apache.zookeeper.KeeperException",
"org.kiji.schema.avro.TableLayoutDesc",
"org.kiji.schema.zookeeper.ZooKeeperUtils"
] | import java.io.IOException; import org.apache.zookeeper.KeeperException; import org.kiji.schema.avro.TableLayoutDesc; import org.kiji.schema.zookeeper.ZooKeeperUtils; | import java.io.*; import org.apache.zookeeper.*; import org.kiji.schema.avro.*; import org.kiji.schema.zookeeper.*; | [
"java.io",
"org.apache.zookeeper",
"org.kiji.schema"
] | java.io; org.apache.zookeeper; org.kiji.schema; | 481,773 |
void exportCircuit(Element circuitElement, Circuit circuit) {
// export elements of the circuit. At first just export non wires
// because of the xml sequence
for (de.sep2011.funckit.model.graphmodel.Element element : circuit
.getElements()) {
// gl().debug("Curre... | void exportCircuit(Element circuitElement, Circuit circuit) { for (de.sep2011.funckit.model.graphmodel.Element element : circuit .getElements()) { if (!(element instanceof Wire)) { exportElement(circuitElement, element); } } for (de.sep2011.funckit.model.graphmodel.Element element : circuit .getElements()) { if (elemen... | /**
* Exports the given {@link Circuit} by exporting all {@link Element}s. Here
* the {@link Brick}s are exported first, then the {@link Wire}s.
*
* @param circuitElement
* the circuit tag to export to
* @param circuit
* the {@link Circuit} to export.
*/ | Exports the given <code>Circuit</code> by exporting all <code>Element</code>s. Here the <code>Brick</code>s are exported first, then the <code>Wire</code>s | exportCircuit | {
"repo_name": "mindrunner/funCKit",
"path": "workspace/funCKit/src/main/java/de/sep2011/funckit/converter/sepformat/SEPFormatConverter.java",
"license": "gpl-3.0",
"size": 36092
} | [
"de.sep2011.funckit.model.graphmodel.Circuit",
"de.sep2011.funckit.model.graphmodel.Wire",
"org.w3c.dom.Element"
] | import de.sep2011.funckit.model.graphmodel.Circuit; import de.sep2011.funckit.model.graphmodel.Wire; import org.w3c.dom.Element; | import de.sep2011.funckit.model.graphmodel.*; import org.w3c.dom.*; | [
"de.sep2011.funckit",
"org.w3c.dom"
] | de.sep2011.funckit; org.w3c.dom; | 386,240 |
public Supplier<? extends FieldAdapter<? super T>> getAdapterSupplier() {
return adapterSupplier;
}
/**
* Returns whether or not leading/trailing white-space characters are trimmed.
* @return {@code true} if this trims input, otherwise {@code false} | Supplier<? extends FieldAdapter<? super T>> function() { return adapterSupplier; } /** * Returns whether or not leading/trailing white-space characters are trimmed. * @return {@code true} if this trims input, otherwise {@code false} | /**
* Returns a supplier of the field adapter.
* @return the adapter supplier
*/ | Returns a supplier of the field adapter | getAdapterSupplier | {
"repo_name": "cocoatomo/asakusafw",
"path": "core-project/asakusa-runtime/src/main/java/com/asakusafw/runtime/io/text/driver/FieldDefinition.java",
"license": "apache-2.0",
"size": 7293
} | [
"java.util.function.Supplier"
] | import java.util.function.Supplier; | import java.util.function.*; | [
"java.util"
] | java.util; | 2,160,827 |
public void disallowSnapshot(Path path) throws IOException {
dfs.disallowSnapshot(path);
} | void function(Path path) throws IOException { dfs.disallowSnapshot(path); } | /**
* Disallow snapshot on a directory.
* @param path The path of the snapshottable directory.
*/ | Disallow snapshot on a directory | disallowSnapshot | {
"repo_name": "soumabrata-chakraborty/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/client/HdfsAdmin.java",
"license": "apache-2.0",
"size": 23787
} | [
"java.io.IOException",
"org.apache.hadoop.fs.Path"
] | import java.io.IOException; import org.apache.hadoop.fs.Path; | import java.io.*; import org.apache.hadoop.fs.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 959,033 |
public long getCreationTime() throws CoreException; | long function() throws CoreException; | /**
* Returns the time at which this marker was created.
*
* @return the difference, measured in milliseconds, between the time at which this marker was
* created and midnight, January 1, 1970 UTC, or <code>0L</code> if the creation time is not
* known (this can occur in workspaces created using ... | Returns the time at which this marker was created | getCreationTime | {
"repo_name": "TypeFox/che",
"path": "plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-core-resources/src/main/java/org/eclipse/core/resources/IMarker.java",
"license": "epl-1.0",
"size": 21337
} | [
"org.eclipse.core.runtime.CoreException"
] | import org.eclipse.core.runtime.CoreException; | import org.eclipse.core.runtime.*; | [
"org.eclipse.core"
] | org.eclipse.core; | 2,214,102 |
public BytesReference templateSource() {
return templateSource;
} | BytesReference function() { return templateSource; } | /**
* The search source template to execute.
*/ | The search source template to execute | templateSource | {
"repo_name": "fabiofumarola/elasticsearch",
"path": "src/main/java/org/elasticsearch/action/search/SearchRequest.java",
"license": "apache-2.0",
"size": 17168
} | [
"org.elasticsearch.common.bytes.BytesReference"
] | import org.elasticsearch.common.bytes.BytesReference; | import org.elasticsearch.common.bytes.*; | [
"org.elasticsearch.common"
] | org.elasticsearch.common; | 318,948 |
public Map<String, UpgradePack> getUpgradePacks(String stackName, String stackVersion) {
try {
StackInfo stack = getStack(stackName, stackVersion);
return stack.getUpgradePacks() == null ?
Collections.<String, UpgradePack>emptyMap() : stack.getUpgradePacks();
} catch (AmbariException e)... | Map<String, UpgradePack> function(String stackName, String stackVersion) { try { StackInfo stack = getStack(stackName, stackVersion); return stack.getUpgradePacks() == null ? Collections.<String, UpgradePack>emptyMap() : stack.getUpgradePacks(); } catch (AmbariException e) { LOG.debug(STR, stackName, stackVersion, e); ... | /**
* Get all upgrade packs available for a stack.
*
* @param stackName the stack name
* @param stackVersion the stack version
* @return a map of upgrade packs, keyed by the name of the upgrade pack
*/ | Get all upgrade packs available for a stack | getUpgradePacks | {
"repo_name": "arenadata/ambari",
"path": "ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java",
"license": "apache-2.0",
"size": 54962
} | [
"java.util.Collections",
"java.util.Map",
"org.apache.ambari.server.AmbariException",
"org.apache.ambari.server.state.StackInfo",
"org.apache.ambari.server.state.stack.UpgradePack"
] | import java.util.Collections; import java.util.Map; import org.apache.ambari.server.AmbariException; import org.apache.ambari.server.state.StackInfo; import org.apache.ambari.server.state.stack.UpgradePack; | import java.util.*; import org.apache.ambari.server.*; import org.apache.ambari.server.state.*; import org.apache.ambari.server.state.stack.*; | [
"java.util",
"org.apache.ambari"
] | java.util; org.apache.ambari; | 685,486 |
@Override
protected Object[] handleRow(ResultSet rs) throws SQLException {
return this.convert.toArray(rs);
} | Object[] function(ResultSet rs) throws SQLException { return this.convert.toArray(rs); } | /**
* Convert row's columns into an <code>Object[]</code>.
*
* @param rs <code>ResultSet</code> to process.
* @return <code>Object[]</code>, never <code>null</code>.
* @throws SQLException if a database access error occurs
* @see com.charles.robin.jdbc.handlers.AbstractListHandler#handle(R... | Convert row's columns into an <code>Object[]</code> | handleRow | {
"repo_name": "Lotusun/Robin",
"path": "src/main/java/com/charles/robin/jdbc/handlers/ArrayListHandler.java",
"license": "apache-2.0",
"size": 2400
} | [
"java.sql.ResultSet",
"java.sql.SQLException"
] | import java.sql.ResultSet; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,180,809 |
public void removeRoute(IpPrefix spfx, IpPrefix gpfx) {
McastRouteGroup group = findMcastGroup(gpfx);
if (group == null) {
// The group does not exist, we can't remove it.
return;
}
if (spfx.prefixLength() > 0) {
group.removeSou... | void function(IpPrefix spfx, IpPrefix gpfx) { McastRouteGroup group = findMcastGroup(gpfx); if (group == null) { return; } if (spfx.prefixLength() > 0) { group.removeSource(spfx); if (group.getSources().size() == 0 && group.getEgressPoints().size() == 0) { removeGroup(group); } } else { group.removeSources(); group.wit... | /**
* Remove a multicast route.
*
* @param spfx the source prefix
* @param gpfx the group prefix
*/ | Remove a multicast route | removeRoute | {
"repo_name": "kkkane/ONOS",
"path": "apps/mfwd/src/main/java/org/onosproject/mfwd/impl/McastRouteTable.java",
"license": "apache-2.0",
"size": 10683
} | [
"org.onlab.packet.IpPrefix"
] | import org.onlab.packet.IpPrefix; | import org.onlab.packet.*; | [
"org.onlab.packet"
] | org.onlab.packet; | 834,303 |
public SolrQuery setTimeAllowed(Integer milliseconds) {
if (milliseconds == null) {
this.remove(CommonParams.TIME_ALLOWED);
} else {
this.set(CommonParams.TIME_ALLOWED, milliseconds);
}
return this;
} | SolrQuery function(Integer milliseconds) { if (milliseconds == null) { this.remove(CommonParams.TIME_ALLOWED); } else { this.set(CommonParams.TIME_ALLOWED, milliseconds); } return this; } | /**
* Set the maximum time allowed for this query. If the query takes more time than the specified
* milliseconds, a timeout occurs and partial (or no) results may be returned.
*
* <p>If given Integer is null, then this parameter is removed from the request
*
* @param milliseconds the time in millisec... | Set the maximum time allowed for this query. If the query takes more time than the specified milliseconds, a timeout occurs and partial (or no) results may be returned. If given Integer is null, then this parameter is removed from the request | setTimeAllowed | {
"repo_name": "apache/solr",
"path": "solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java",
"license": "apache-2.0",
"size": 38572
} | [
"org.apache.solr.common.params.CommonParams"
] | import org.apache.solr.common.params.CommonParams; | import org.apache.solr.common.params.*; | [
"org.apache.solr"
] | org.apache.solr; | 1,552,996 |
public void publishEvent(final EventTranslator<T> eventTranslator)
{
ringBuffer.publishEvent(eventTranslator);
} | void function(final EventTranslator<T> eventTranslator) { ringBuffer.publishEvent(eventTranslator); } | /**
* Publish an event to the ring buffer.
*
* @param eventTranslator the translator that will load data into the event.
*/ | Publish an event to the ring buffer | publishEvent | {
"repo_name": "simmeryson/MyDisruptor",
"path": "src/main/java/com/lmax/disruptor/dsl/Disruptor.java",
"license": "apache-2.0",
"size": 18749
} | [
"com.lmax.disruptor.EventTranslator"
] | import com.lmax.disruptor.EventTranslator; | import com.lmax.disruptor.*; | [
"com.lmax.disruptor"
] | com.lmax.disruptor; | 1,054,310 |
@Operation(desc = "Destroy a JMS Topic", impact = MBeanOperationInfo.ACTION)
boolean destroyTopic(@Parameter(name = "name", desc = "Name of the topic to destroy") String name,
@Parameter(name = "removeConsumers", desc = "disconnect any consumers connected to this queue") boolean removeCons... | @Operation(desc = STR, impact = MBeanOperationInfo.ACTION) boolean destroyTopic(@Parameter(name = "name", desc = STR) String name, @Parameter(name = STR, desc = STR) boolean removeConsumers) throws Exception; | /**
* Destroys a JMS Topic with the specified name.
*
* @return {@code true} if the topic was destroyed, {@code false} else
*/ | Destroys a JMS Topic with the specified name | destroyTopic | {
"repo_name": "paulgallagher75/activemq-artemis",
"path": "artemis-jms-client/src/main/java/org/apache/activemq/artemis/api/jms/management/JMSServerControl.java",
"license": "apache-2.0",
"size": 24627
} | [
"javax.management.MBeanOperationInfo",
"org.apache.activemq.artemis.api.core.management.Operation",
"org.apache.activemq.artemis.api.core.management.Parameter"
] | import javax.management.MBeanOperationInfo; import org.apache.activemq.artemis.api.core.management.Operation; import org.apache.activemq.artemis.api.core.management.Parameter; | import javax.management.*; import org.apache.activemq.artemis.api.core.management.*; | [
"javax.management",
"org.apache.activemq"
] | javax.management; org.apache.activemq; | 2,482,078 |
private static <T> void getHierarchy(Class<? super T> clazz, List<Class<? super T>> classes, Iterable<Filter> filters) {
for ( Class<? super T> current = clazz; current != null; current = current.getSuperclass() ) {
if ( classes.contains( current ) ) {
return;
}
if ( acceptedByAllFilters( current, fi... | static <T> void function(Class<? super T> clazz, List<Class<? super T>> classes, Iterable<Filter> filters) { for ( Class<? super T> current = clazz; current != null; current = current.getSuperclass() ) { if ( classes.contains( current ) ) { return; } if ( acceptedByAllFilters( current, filters ) ) { classes.add( curren... | /**
* Retrieves all superclasses and interfaces recursively.
*
* @param clazz the class to start the search with
* @param classes list of classes to which to add all found super types matching
* the given filters
* @param filters filters applying for the search
*/ | Retrieves all superclasses and interfaces recursively | getHierarchy | {
"repo_name": "mxrenkin/hibernate-validator",
"path": "engine/src/main/java/org/hibernate/validator/internal/util/classhierarchy/ClassHierarchyHelper.java",
"license": "apache-2.0",
"size": 4208
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,286,285 |
boolean logout() throws LoginException; | boolean logout() throws LoginException; | /**
* Logs a subject out. This is primarily used for modules that must
* destroy or remove the authentication state associated with a
* logged-in subject.
*
* @return True if the logout succeeds, or false if this module
* should be ignored.
* @throws LoginException If this method fails.
*/ | Logs a subject out. This is primarily used for modules that must destroy or remove the authentication state associated with a logged-in subject | logout | {
"repo_name": "shaotuanchen/sunflower_exp",
"path": "tools/source/gcc-4.2.4/libjava/classpath/javax/security/auth/spi/LoginModule.java",
"license": "bsd-3-clause",
"size": 4808
} | [
"javax.security.auth.login.LoginException"
] | import javax.security.auth.login.LoginException; | import javax.security.auth.login.*; | [
"javax.security"
] | javax.security; | 732,952 |
public WSResourceValue resourceQuery(int resoureId) throws IhcExecption {
return resourceInteractionService.resourceQuery(resoureId);
} | WSResourceValue function(int resoureId) throws IhcExecption { return resourceInteractionService.resourceQuery(resoureId); } | /**
* Query resource value from controller.
*
*
* @param resoureId Resource Identifier.
* @return Resource value.
*/ | Query resource value from controller | resourceQuery | {
"repo_name": "paulianttila/openhab2",
"path": "bundles/org.openhab.binding.ihc/src/main/java/org/openhab/binding/ihc/internal/ws/IhcClient.java",
"license": "epl-1.0",
"size": 21653
} | [
"org.openhab.binding.ihc.internal.ws.exeptions.IhcExecption",
"org.openhab.binding.ihc.internal.ws.resourcevalues.WSResourceValue"
] | import org.openhab.binding.ihc.internal.ws.exeptions.IhcExecption; import org.openhab.binding.ihc.internal.ws.resourcevalues.WSResourceValue; | import org.openhab.binding.ihc.internal.ws.exeptions.*; import org.openhab.binding.ihc.internal.ws.resourcevalues.*; | [
"org.openhab.binding"
] | org.openhab.binding; | 1,651,868 |
public long connectGood() {
return SSLContext.sessionConnectGood(context);
} | long function() { return SSLContext.sessionConnectGood(context); } | /**
* Returns the number of successfully established SSL/TLS sessions in client mode.
*/ | Returns the number of successfully established SSL/TLS sessions in client mode | connectGood | {
"repo_name": "iloveyou416068/CookNIOServer",
"path": "netty_source_4_0_25/handler/src/main/java/io/netty/handler/ssl/OpenSslSessionStats.java",
"license": "apache-2.0",
"size": 3706
} | [
"org.apache.tomcat.jni.SSLContext"
] | import org.apache.tomcat.jni.SSLContext; | import org.apache.tomcat.jni.*; | [
"org.apache.tomcat"
] | org.apache.tomcat; | 1,796,006 |
Site refresh(Context context); | Site refresh(Context context); | /**
* Refreshes the resource to sync with Azure.
*
* @param context The context to associate with this operation.
* @return the refreshed resource.
*/ | Refreshes the resource to sync with Azure | refresh | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/mobilenetwork/azure-resourcemanager-mobilenetwork/src/main/java/com/azure/resourcemanager/mobilenetwork/models/Site.java",
"license": "mit",
"size": 7016
} | [
"com.azure.core.util.Context"
] | import com.azure.core.util.Context; | import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 64,423 |
public static void animateTextColor(final TextView view, final long duration,
@ColorInt final int colorStart,
@ColorInt final int colorEnd) {
if (DEBUG) {
Log.d(TAG, "animateTextColor() called with: "
... | static void function(final TextView view, final long duration, @ColorInt final int colorStart, @ColorInt final int colorEnd) { if (DEBUG) { Log.d(TAG, STR + STR + view + STR + duration + STR + STR + colorStart + STR + colorEnd + "]"); } | /**
* Animate the text color of any view that extends {@link TextView} (Buttons, EditText...).
*
* @param view the text view to animate
* @param duration the duration of the animation
* @param colorStart the text color to start with
* @param colorEnd the text color to end with
... | Animate the text color of any view that extends <code>TextView</code> (Buttons, EditText...) | animateTextColor | {
"repo_name": "theScrabi/NewPipe",
"path": "app/src/main/java/org/schabi/newpipe/util/AnimationUtils.java",
"license": "gpl-3.0",
"size": 20120
} | [
"android.util.Log",
"android.widget.TextView",
"androidx.annotation.ColorInt"
] | import android.util.Log; import android.widget.TextView; import androidx.annotation.ColorInt; | import android.util.*; import android.widget.*; import androidx.annotation.*; | [
"android.util",
"android.widget",
"androidx.annotation"
] | android.util; android.widget; androidx.annotation; | 1,284,410 |
public Observable<ServiceResponse<PrivateEndpointConnectionInner>> updatePrivateEndpointConnectionWithServiceResponseAsync(String resourceGroupName, String serviceName, String peConnectionName, PrivateEndpointConnectionInner parameters) {
if (resourceGroupName == null) {
throw new IllegalArgumen... | Observable<ServiceResponse<PrivateEndpointConnectionInner>> function(String resourceGroupName, String serviceName, String peConnectionName, PrivateEndpointConnectionInner parameters) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (serviceName == null) { throw new IllegalArgumentExcepti... | /**
* Approve or reject private end point connection for a private link service in a subscription.
*
* @param resourceGroupName The name of the resource group.
* @param serviceName The name of the private link service.
* @param peConnectionName The name of the private end point connection.
... | Approve or reject private end point connection for a private link service in a subscription | updatePrivateEndpointConnectionWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2020_06_01/src/main/java/com/microsoft/azure/management/network/v2020_06_01/implementation/PrivateLinkServicesInner.java",
"license": "mit",
"size": 181881
} | [
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.rest.ServiceResponse; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,392,231 |
public void stop() {
try {
safeClose(this.myServerSocket);
this.asyncRunner.closeAll();
if (this.myThread != null) {
this.myThread.join();
}
} catch (Exception e) {
NanoHTTPD.LOG.log(Level.SEVERE, "Could not stop all connect... | void function() { try { safeClose(this.myServerSocket); this.asyncRunner.closeAll(); if (this.myThread != null) { this.myThread.join(); } } catch (Exception e) { NanoHTTPD.LOG.log(Level.SEVERE, STR, e); } } | /**
* Stop the server.
*/ | Stop the server | stop | {
"repo_name": "kivensolo/UiUsingListView",
"path": "library/server/src/main/java/org/nanohttpd/protocols/http/NanoHTTPD.java",
"license": "gpl-2.0",
"size": 21731
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 2,158,880 |
public boolean isSimplePath() {
PathSegment seg = rootSegment;
while (seg != null) {
if (seg.isArray() && !seg.isLastPath()) {
return false;
}
seg = seg.getChild();
}
return true;
}
public SchemaPath(SchemaPath path) {
super(path.getPosition());
this.rootSegment... | boolean function() { PathSegment seg = rootSegment; while (seg != null) { if (seg.isArray() && !seg.isLastPath()) { return false; } seg = seg.getChild(); } return true; } public SchemaPath(SchemaPath path) { super(path.getPosition()); this.rootSegment = path.rootSegment; } public SchemaPath(NameSegment rootSegment) { s... | /**
* A simple is a path where there are no repeated elements outside the lowest level of the path.
* @return Whether this path is a simple path.
*/ | A simple is a path where there are no repeated elements outside the lowest level of the path | isSimplePath | {
"repo_name": "yssharma/pig-on-drill",
"path": "common/src/main/java/org/apache/drill/common/expression/SchemaPath.java",
"license": "apache-2.0",
"size": 8885
} | [
"org.apache.drill.common.expression.PathSegment"
] | import org.apache.drill.common.expression.PathSegment; | import org.apache.drill.common.expression.*; | [
"org.apache.drill"
] | org.apache.drill; | 922,835 |
protected TScheduler copyInto(TScheduler copyObj, Connection con) throws TorqueException
{
return copyInto(copyObj, true, con);
} | TScheduler function(TScheduler copyObj, Connection con) throws TorqueException { return copyInto(copyObj, true, con); } | /**
* Fills the copyObj with the contents of this object using connection.
* The associated objects are also copied and treated as new objects.
*
* @param copyObj the object to fill.
* @param con the database connection to read associated objects.
*/ | Fills the copyObj with the contents of this object using connection. The associated objects are also copied and treated as new objects | copyInto | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/persist/BaseTScheduler.java",
"license": "gpl-3.0",
"size": 27698
} | [
"java.sql.Connection",
"org.apache.torque.TorqueException"
] | import java.sql.Connection; import org.apache.torque.TorqueException; | import java.sql.*; import org.apache.torque.*; | [
"java.sql",
"org.apache.torque"
] | java.sql; org.apache.torque; | 1,417,053 |
public IDataset getRadius();
| IDataset function(); | /**
* radius of chopper
* <p>
* <b>Type:</b> NX_FLOAT
* <b>Units:</b> NX_LENGTH
* </p>
*
* @return the value.
*/ | radius of chopper Type: NX_FLOAT Units: NX_LENGTH | getRadius | {
"repo_name": "colinpalmer/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXfermi_chopper.java",
"license": "epl-1.0",
"size": 11633
} | [
"org.eclipse.dawnsci.analysis.api.dataset.IDataset"
] | import org.eclipse.dawnsci.analysis.api.dataset.IDataset; | import org.eclipse.dawnsci.analysis.api.dataset.*; | [
"org.eclipse.dawnsci"
] | org.eclipse.dawnsci; | 989,992 |
public void setValue(SPOTReal val) {
if (!OPTIMIZE_RUNTIME) {
checkReadOnly();
}
_sValue = null;
SNumber num = val._numValue;
if (num == null) {
num = val._numDefValue;
}
if (num == null) {
_numValue = null;
return;
}
if (_numValue =... | void function(SPOTReal val) { if (!OPTIMIZE_RUNTIME) { checkReadOnly(); } _sValue = null; SNumber num = val._numValue; if (num == null) { num = val._numDefValue; } if (num == null) { _numValue = null; return; } if (_numValue == null) { _numValue = new SNumber(num); } else { _numValue.setValue(num); } } | /**
* Sets the value
*
* @param val the value
*
*/ | Sets the value | setValue | {
"repo_name": "appnativa/rare",
"path": "source/spot/src/com/appnativa/spot/SPOTReal.java",
"license": "gpl-3.0",
"size": 18032
} | [
"com.appnativa.util.SNumber"
] | import com.appnativa.util.SNumber; | import com.appnativa.util.*; | [
"com.appnativa.util"
] | com.appnativa.util; | 1,121,252 |
public ArrayList<GeoLocation> deserializeLog() {
ArrayList<GeoLocation> list = new ArrayList<GeoLocation>();
try {
FileInputStream f = context.openFileInput(FILENAME);
BufferedReader r = new BufferedReader(new InputStreamReader(f));
String json = "";
String temp = "";
temp = r.readLine();
... | ArrayList<GeoLocation> function() { ArrayList<GeoLocation> list = new ArrayList<GeoLocation>(); try { FileInputStream f = context.openFileInput(FILENAME); BufferedReader r = new BufferedReader(new InputStreamReader(f)); String json = STR"; temp = r.readLine(); while (temp != null) { json = json + temp; temp = r.readLin... | /**
* Deserializes and returns the GeoLocations stored in our app.
* @return An ArrayList of the stored GeoLocations.
*/ | Deserializes and returns the GeoLocations stored in our app | deserializeLog | {
"repo_name": "CMPUT301W14T08/GeoChan",
"path": "GeoChan/src/ca/ualberta/cmput301w14t08/geochan/managers/GeoLocationLogIOManager.java",
"license": "apache-2.0",
"size": 3653
} | [
"ca.ualberta.cmput301w14t08.geochan.models.GeoLocation",
"com.google.gson.reflect.TypeToken",
"java.io.BufferedReader",
"java.io.FileInputStream",
"java.io.FileNotFoundException",
"java.io.IOException",
"java.io.InputStreamReader",
"java.lang.reflect.Type",
"java.util.ArrayList"
] | import ca.ualberta.cmput301w14t08.geochan.models.GeoLocation; import com.google.gson.reflect.TypeToken; import java.io.BufferedReader; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStreamReader; import java.lang.reflect.Type; import java.util.Array... | import ca.ualberta.cmput301w14t08.geochan.models.*; import com.google.gson.reflect.*; import java.io.*; import java.lang.reflect.*; import java.util.*; | [
"ca.ualberta.cmput301w14t08",
"com.google.gson",
"java.io",
"java.lang",
"java.util"
] | ca.ualberta.cmput301w14t08; com.google.gson; java.io; java.lang; java.util; | 1,369,924 |
public List<BlazeTestStatus> addShardStatus(int shardNumber, BlazeTestStatus status) {
Preconditions.checkState(summary.shardRunStatuses.put(shardNumber, status),
"shardRunStatuses must allow duplicate statuses");
return ImmutableList.copyOf(summary.shardRunStatuses.get(shardNumber));
} | List<BlazeTestStatus> function(int shardNumber, BlazeTestStatus status) { Preconditions.checkState(summary.shardRunStatuses.put(shardNumber, status), STR); return ImmutableList.copyOf(summary.shardRunStatuses.get(shardNumber)); } | /**
* Records a new result for the given shard of the test.
*
* @return an immutable view of the statuses associated with the shard, with the new element.
*/ | Records a new result for the given shard of the test | addShardStatus | {
"repo_name": "dropbox/bazel",
"path": "src/main/java/com/google/devtools/build/lib/runtime/TestSummary.java",
"license": "apache-2.0",
"size": 17603
} | [
"com.google.common.base.Preconditions",
"com.google.common.collect.ImmutableList",
"com.google.devtools.build.lib.view.test.TestStatus",
"java.util.List"
] | import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.view.test.TestStatus; import java.util.List; | import com.google.common.base.*; import com.google.common.collect.*; import com.google.devtools.build.lib.view.test.*; import java.util.*; | [
"com.google.common",
"com.google.devtools",
"java.util"
] | com.google.common; com.google.devtools; java.util; | 1,550,057 |
TypeParameterElementImpl getTypeParameter(SimpleNameReference reference) throws LinkerException {
@Nullable FinishContext currentContext = this;
do {
@Nullable AbstractFreezable currentFreezable = currentContext.freezable;
if (currentFreezable instanceof IParameterizableImpl)... | TypeParameterElementImpl getTypeParameter(SimpleNameReference reference) throws LinkerException { @Nullable FinishContext currentContext = this; do { @Nullable AbstractFreezable currentFreezable = currentContext.freezable; if (currentFreezable instanceof IParameterizableImpl) { IParameterizableImpl currentParameterizab... | /**
* Returns the type parameter corresponding to the given simple name.
*
* <p>This method checks iterates through all parent contexts, starting from the current context. It stops when a
* context corresponds to a {@link IParameterizableImpl} instance that contains a type parameter with the
* ... | Returns the type parameter corresponding to the given simple name. This method checks iterates through all parent contexts, starting from the current context. It stops when a context corresponds to a <code>IParameterizableImpl</code> instance that contains a type parameter with the given name | getTypeParameter | {
"repo_name": "fschopp/cloudkeeper",
"path": "cloudkeeper-core/cloudkeeper-linker/src/main/java/xyz/cloudkeeper/linker/FinishContext.java",
"license": "apache-2.0",
"size": 15521
} | [
"javax.annotation.Nullable",
"xyz.cloudkeeper.model.LinkerException"
] | import javax.annotation.Nullable; import xyz.cloudkeeper.model.LinkerException; | import javax.annotation.*; import xyz.cloudkeeper.model.*; | [
"javax.annotation",
"xyz.cloudkeeper.model"
] | javax.annotation; xyz.cloudkeeper.model; | 167,369 |
public Column<T> removeNullable()
{
childNode.removeAttribute("nullable");
return this;
}
// --------------------------------------------------------------------------------------------------------||
// ClassName: Column ElementName: xsd:boolean ElementType : insertable
// MaxOccurs: - ... | Column<T> function() { childNode.removeAttribute(STR); return this; } | /**
* Removes the <code>nullable</code> attribute
* @return the current instance of <code>Column<T></code>
*/ | Removes the <code>nullable</code> attribute | removeNullable | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/orm21/ColumnImpl.java",
"license": "epl-1.0",
"size": 13605
} | [
"org.jboss.shrinkwrap.descriptor.api.orm21.Column"
] | import org.jboss.shrinkwrap.descriptor.api.orm21.Column; | import org.jboss.shrinkwrap.descriptor.api.orm21.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 2,622,362 |
private static <T> void autoCopyfields(Class<T> klass, T from, T to)
throws IllegalArgumentException, IllegalAccessException {
for (Field f : klass.getDeclaredFields()) {
if (!Modifier.isStatic(f.getModifiers())) {
f.setAccessible(true);
Object newValu... | static <T> void function(Class<T> klass, T from, T to) throws IllegalArgumentException, IllegalAccessException { for (Field f : klass.getDeclaredFields()) { if (!Modifier.isStatic(f.getModifiers())) { f.setAccessible(true); Object newValue = f.get(from); if (newValue != null f.get(to) == null) { f.set(to, newValue); } ... | /**
* Copy fields belonging to 'cFrom' from 'from' to 'to'.
* Will only iterate on non-private field.
* Private fields in 'cFrom' won't be set in 'to'.
*
* @param <T> check type given as argument is equals or under this type.
* @param klass the klass in which to find the fields
* @p... | Copy fields belonging to 'cFrom' from 'from' to 'to'. Will only iterate on non-private field. Private fields in 'cFrom' won't be set in 'to' | autoCopyfields | {
"repo_name": "zeineb/scheduling",
"path": "scheduler/scheduler-api/src/main/java/org/ow2/proactive/scheduler/common/job/factories/StaxJobFactory.java",
"license": "agpl-3.0",
"size": 91261
} | [
"java.lang.reflect.Field",
"java.lang.reflect.Modifier"
] | import java.lang.reflect.Field; import java.lang.reflect.Modifier; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 2,534,189 |
return readRecords().map(this::createProteinFeature).collect(toImmutableMap(ProteinFeature::getHitName));
} | return readRecords().map(this::createProteinFeature).collect(toImmutableMap(ProteinFeature::getHitName)); } | /**
* Returns a map of protein features
*/ | Returns a map of protein features | read | {
"repo_name": "icgc-dcc/dcc-import",
"path": "dcc-import-gene/src/main/java/org/icgc/dcc/imports/gene/reader/InterproReader.java",
"license": "gpl-3.0",
"size": 2943
} | [
"org.icgc.dcc.imports.gene.model.ProteinFeature"
] | import org.icgc.dcc.imports.gene.model.ProteinFeature; | import org.icgc.dcc.imports.gene.model.*; | [
"org.icgc.dcc"
] | org.icgc.dcc; | 2,066,340 |
public ContentItem setLabels(Map<String,List<Label>> labels) {
this.labels = labels;
return this;
} | ContentItem function(Map<String,List<Label>> labels) { this.labels = labels; return this; } | /**
* sets of annotations
*/ | sets of annotations | setLabels | {
"repo_name": "shriphani/kba-clj",
"path": "src/java/src/streamcorpus/ContentItem.java",
"license": "epl-1.0",
"size": 96958
} | [
"java.util.List",
"java.util.Map"
] | import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,849,252 |
List<INaviView> getTaggedViews(CTag tag); | List<INaviView> getTaggedViews(CTag tag); | /**
* Returns a list of views tagged with a given tag.
*
* @param tag The tag in question.
*
* @return List of views tagged with the given tag.
*/ | Returns a list of views tagged with a given tag | getTaggedViews | {
"repo_name": "google/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/disassembly/views/IViewContainer.java",
"license": "apache-2.0",
"size": 6097
} | [
"com.google.security.zynamics.binnavi.Tagging",
"java.util.List"
] | import com.google.security.zynamics.binnavi.Tagging; import java.util.List; | import com.google.security.zynamics.binnavi.*; import java.util.*; | [
"com.google.security",
"java.util"
] | com.google.security; java.util; | 818,758 |
public void stornieren(Integer iIdBestellungI) throws ExceptionLP {
try {
bestellungFac.stornieren(iIdBestellungI, LPMain.getTheClient());
} catch (Throwable t) {
handleThrowable(t);
}
}
| void function(Integer iIdBestellungI) throws ExceptionLP { try { bestellungFac.stornieren(iIdBestellungI, LPMain.getTheClient()); } catch (Throwable t) { handleThrowable(t); } } | /**
* Eine Bestellung stornieren. <br>
* Das bedeutet: - Den Status der Bestellung anpassen und die Stornodaten
* vermerken. - Die Bestellpositionen loeschen.
*
* @param iIdBestellungI
* PK des Lieferscheins
* @throws ExceptionLP
* Ausnahme
*/ | Eine Bestellung stornieren. Das bedeutet: - Den Status der Bestellung anpassen und die Stornodaten vermerken. - Die Bestellpositionen loeschen | stornieren | {
"repo_name": "erdincay/lpclientpc",
"path": "src/com/lp/client/frame/delegate/BestellungDelegate.java",
"license": "agpl-3.0",
"size": 43582
} | [
"com.lp.client.frame.ExceptionLP",
"com.lp.client.pc.LPMain"
] | import com.lp.client.frame.ExceptionLP; import com.lp.client.pc.LPMain; | import com.lp.client.frame.*; import com.lp.client.pc.*; | [
"com.lp.client"
] | com.lp.client; | 2,583,379 |
public static CandidateEntry findByUuid_C_Last(java.lang.String uuid,
long companyId, OrderByComparator<CandidateEntry> orderByComparator)
throws com.liferay.micro.maintainance.candidate.exception.NoSuchEntryException {
return getPersistence()
.findByUuid_C_Last(uuid, companyId, orderByComparator);
} | static CandidateEntry function(java.lang.String uuid, long companyId, OrderByComparator<CandidateEntry> orderByComparator) throws com.liferay.micro.maintainance.candidate.exception.NoSuchEntryException { return getPersistence() .findByUuid_C_Last(uuid, companyId, orderByComparator); } | /**
* Returns the last candidate entry in the ordered set where uuid = ? and companyId = ?.
*
* @param uuid the uuid
* @param companyId the company ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching candidate entry
* @throws NoSuchE... | Returns the last candidate entry in the ordered set where uuid = ? and companyId = ? | findByUuid_C_Last | {
"repo_name": "moltam89/OWXP",
"path": "modules/micro-maintainance-candidate/micro-maintainance-candidate-api/src/main/java/com/liferay/micro/maintainance/candidate/service/persistence/CandidateEntryUtil.java",
"license": "gpl-3.0",
"size": 103522
} | [
"com.liferay.micro.maintainance.candidate.model.CandidateEntry",
"com.liferay.portal.kernel.util.OrderByComparator"
] | import com.liferay.micro.maintainance.candidate.model.CandidateEntry; import com.liferay.portal.kernel.util.OrderByComparator; | import com.liferay.micro.maintainance.candidate.model.*; import com.liferay.portal.kernel.util.*; | [
"com.liferay.micro",
"com.liferay.portal"
] | com.liferay.micro; com.liferay.portal; | 1,684,253 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.