method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public SecurityGroup getSelectedSecurityGroup() {
StructuredSelection selection = (StructuredSelection)viewer.getSelection();
return (SecurityGroup)selection.getFirstElement();
} | SecurityGroup function() { StructuredSelection selection = (StructuredSelection)viewer.getSelection(); return (SecurityGroup)selection.getFirstElement(); } | /**
* Returns the currently selected security group.
*
* @return The currently selected security group.
*/ | Returns the currently selected security group | getSelectedSecurityGroup | {
"repo_name": "aws/aws-toolkit-eclipse",
"path": "bundles/com.amazonaws.eclipse.ec2/src/com/amazonaws/eclipse/ec2/ui/securitygroups/SecurityGroupSelectionComposite.java",
"license": "apache-2.0",
"size": 13174
} | [
"com.amazonaws.services.ec2.model.SecurityGroup",
"org.eclipse.jface.viewers.StructuredSelection"
] | import com.amazonaws.services.ec2.model.SecurityGroup; import org.eclipse.jface.viewers.StructuredSelection; | import com.amazonaws.services.ec2.model.*; import org.eclipse.jface.viewers.*; | [
"com.amazonaws.services",
"org.eclipse.jface"
] | com.amazonaws.services; org.eclipse.jface; | 1,493,289 |
private List<TaskDef> findAllTaskDefs(Connection tx) {
final String READ_ALL_TASKDEF_QUERY = "SELECT json_data FROM meta_task_def";
return query(tx, READ_ALL_TASKDEF_QUERY, q -> q.executeAndFetch(TaskDef.class));
} | List<TaskDef> function(Connection tx) { final String READ_ALL_TASKDEF_QUERY = STR; return query(tx, READ_ALL_TASKDEF_QUERY, q -> q.executeAndFetch(TaskDef.class)); } | /**
* Query persistence for all defined {@link TaskDef} data.
*
* @param tx The {@link Connection} to use for queries.
* @return A new {@code List<TaskDef>} with all the {@code TaskDef} data that was retrieved.
*/ | Query persistence for all defined <code>TaskDef</code> data | findAllTaskDefs | {
"repo_name": "grfeng/conductor",
"path": "mysql-persistence/src/main/java/com/netflix/conductor/dao/mysql/MySQLMetadataDAO.java",
"license": "apache-2.0",
"size": 18199
} | [
"com.netflix.conductor.common.metadata.tasks.TaskDef",
"java.sql.Connection",
"java.util.List"
] | import com.netflix.conductor.common.metadata.tasks.TaskDef; import java.sql.Connection; import java.util.List; | import com.netflix.conductor.common.metadata.tasks.*; import java.sql.*; import java.util.*; | [
"com.netflix.conductor",
"java.sql",
"java.util"
] | com.netflix.conductor; java.sql; java.util; | 1,986,001 |
public static void channelIsClosing(UUID channelID) {
Andes.getInstance().clientConnectionClosed(channelID);
} | static void function(UUID channelID) { Andes.getInstance().clientConnectionClosed(channelID); } | /**
* Channel closed. Clear status
*
* @param channelID id of the closed channel
*/ | Channel closed. Clear status | channelIsClosing | {
"repo_name": "pumudu88/andes",
"path": "modules/andes-core/broker/src/main/java/org/wso2/andes/amqp/QpidAndesBridge.java",
"license": "apache-2.0",
"size": 29520
} | [
"org.wso2.andes.kernel.Andes"
] | import org.wso2.andes.kernel.Andes; | import org.wso2.andes.kernel.*; | [
"org.wso2.andes"
] | org.wso2.andes; | 1,890,737 |
private void addCORSOriginsToCache(CORSOrigin[] corsOrigins, int tenantId) {
CORSOriginCacheKey cacheKey = new CORSOriginCacheKey(tenantId);
CORSOriginCacheEntry cacheEntry = new CORSOriginCacheEntry(corsOrigins);
if (log.isDebugEnabled()) {
log.debug("Adding CORS origins to Ca... | void function(CORSOrigin[] corsOrigins, int tenantId) { CORSOriginCacheKey cacheKey = new CORSOriginCacheKey(tenantId); CORSOriginCacheEntry cacheEntry = new CORSOriginCacheEntry(corsOrigins); if (log.isDebugEnabled()) { log.debug(STR + tenantId); } CORSOriginCache.getInstance().addToCache(cacheKey, cacheEntry, tenantI... | /**
* Add CORS origins of a particular tenant to the cache.
*
* @param corsOrigins The origins that should be added to the cache.
* @param tenantId The tenant domain specific to the cache entry.
*/ | Add CORS origins of a particular tenant to the cache | addCORSOriginsToCache | {
"repo_name": "omindu/carbon-identity-framework",
"path": "components/cors-mgt/org.wso2.carbon.identity.cors.mgt.core/src/main/java/org/wso2/carbon/identity/cors/mgt/core/dao/impl/CacheBackedCORSOriginDAO.java",
"license": "apache-2.0",
"size": 9413
} | [
"org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginCache",
"org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginCacheEntry",
"org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginCacheKey",
"org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin"
] | import org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginCache; import org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginCacheEntry; import org.wso2.carbon.identity.cors.mgt.core.internal.cache.CORSOriginCacheKey; import org.wso2.carbon.identity.cors.mgt.core.model.CORSOrigin; | import org.wso2.carbon.identity.cors.mgt.core.internal.cache.*; import org.wso2.carbon.identity.cors.mgt.core.model.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,600,701 |
public static void main(String[] args) {
if (args.length >= 1) {
File tmp = new File(args[0]);
if (tmp.exists() && tmp.isDirectory()) {
CLIMain.workingDir = tmp;
}
}
CLIMain.workDir = CLIMain.workingDir.getAbsolutePath() + File.separator;
// Start interactive mode
try {
CLIMain.interactive(... | static void function(String[] args) { if (args.length >= 1) { File tmp = new File(args[0]); if (tmp.exists() && tmp.isDirectory()) { CLIMain.workingDir = tmp; } } CLIMain.workDir = CLIMain.workingDir.getAbsolutePath() + File.separator; try { CLIMain.interactive(); System.exit(0); } catch (IncompatibleApiVersionExceptio... | /**
* Creates an interactive console for CloudRAID.
*
* @param args
* The first element of the args array is interpreted as the
* working directory of the application. If no path is specified
* or the specified path does not exist, the current directory is
* us... | Creates an interactive console for CloudRAID | main | {
"repo_name": "fbausch/CloudRAID-Client",
"path": "cli/src/de/dhbw_mannheim/cloudraid/client/cli/CLIMain.java",
"license": "apache-2.0",
"size": 15298
} | [
"de.dhbw_mannheim.cloudraid.client.api.IncompatibleApiVersionException",
"java.io.File"
] | import de.dhbw_mannheim.cloudraid.client.api.IncompatibleApiVersionException; import java.io.File; | import de.dhbw_mannheim.cloudraid.client.api.*; import java.io.*; | [
"de.dhbw_mannheim.cloudraid",
"java.io"
] | de.dhbw_mannheim.cloudraid; java.io; | 1,847,140 |
public static void writeInt(OutputStream output, int value, byte[] buf) throws IOException {
writeUInt(output, value, buf, 0, GenericUtils.length(buf));
} | static void function(OutputStream output, int value, byte[] buf) throws IOException { writeUInt(output, value, buf, 0, GenericUtils.length(buf)); } | /**
* Writes a 32-bit value in network order (i.e., MSB 1st)
*
* @param output The {@link OutputStream} to write the value
* @param value The 32-bit value
* @param buf A work buffer to use - must have enough space to contain 4 bytes
* @throws IOException If failed to write the value or... | Writes a 32-bit value in network order (i.e., MSB 1st) | writeInt | {
"repo_name": "ieure/mina-sshd",
"path": "sshd-core/src/main/java/org/apache/sshd/common/util/buffer/BufferUtils.java",
"license": "apache-2.0",
"size": 14446
} | [
"java.io.IOException",
"java.io.OutputStream",
"org.apache.sshd.common.util.GenericUtils"
] | import java.io.IOException; import java.io.OutputStream; import org.apache.sshd.common.util.GenericUtils; | import java.io.*; import org.apache.sshd.common.util.*; | [
"java.io",
"org.apache.sshd"
] | java.io; org.apache.sshd; | 1,756,436 |
@Test
public void validationOfUnknownPropertyInlineNamespaceSuccess() throws Exception {
String roomWithValidNamespaces =
"<?xml version='1.0' encoding='UTF-8'?>" +
"<entry xmlns=\"http://www.w3.org/2005/Atom\" " +
" xmlns:m=\"http://schemas.microsoft.com/ado/2007/08/dataservi... | void function() throws Exception { String roomWithValidNamespaces = STR + STRhttp: STRhttp: STRhttp: STRhttp: STRW/"1"\">" + STR <id>http: STRtext\STR + STR + STRapplication/xml\">" + STR + STR + STRhttp: STR + STR + STR + STR + STR + STR; EdmEntitySet entitySet = MockFacade.getMockEdm().getDefaultEntityConta... | /**
* Add <code>unknown property</code> in own namespace which is defined directly in unknown tag.
*
* @throws Exception
*/ | Add <code>unknown property</code> in own namespace which is defined directly in unknown tag | validationOfUnknownPropertyInlineNamespaceSuccess | {
"repo_name": "SAP/cloud-odata-java",
"path": "odata-core/src/test/java/com/sap/core/odata/core/ep/consumer/XmlEntityConsumerTest.java",
"license": "apache-2.0",
"size": 102425
} | [
"com.sap.core.odata.api.edm.EdmEntitySet",
"com.sap.core.odata.api.ep.EntityProviderReadProperties",
"com.sap.core.odata.api.ep.entry.ODataEntry",
"com.sap.core.odata.testutil.mock.MockFacade",
"java.io.InputStream",
"org.junit.Assert"
] | import com.sap.core.odata.api.edm.EdmEntitySet; import com.sap.core.odata.api.ep.EntityProviderReadProperties; import com.sap.core.odata.api.ep.entry.ODataEntry; import com.sap.core.odata.testutil.mock.MockFacade; import java.io.InputStream; import org.junit.Assert; | import com.sap.core.odata.api.edm.*; import com.sap.core.odata.api.ep.*; import com.sap.core.odata.api.ep.entry.*; import com.sap.core.odata.testutil.mock.*; import java.io.*; import org.junit.*; | [
"com.sap.core",
"java.io",
"org.junit"
] | com.sap.core; java.io; org.junit; | 1,647,862 |
void start() {
long childAccountStatusStart = SystemClock.elapsedRealtime();
AccountManagerFacadeProvider.getInstance().getAccounts().then(accounts -> {
AccountUtils.checkChildAccountStatus(AccountManagerFacadeProvider.getInstance(),
accounts, (status, childAccount) -... | void start() { long childAccountStatusStart = SystemClock.elapsedRealtime(); AccountManagerFacadeProvider.getInstance().getAccounts().then(accounts -> { AccountUtils.checkChildAccountStatus(AccountManagerFacadeProvider.getInstance(), accounts, (status, childAccount) -> { RecordHistogram.recordCountHistogram( STR, Math.... | /**
* Starts determining parameters for the First Run.
* Once finished, calls onFlowIsKnown().
*/ | Starts determining parameters for the First Run. Once finished, calls onFlowIsKnown() | start | {
"repo_name": "nwjs/chromium.src",
"path": "chrome/android/java/src/org/chromium/chrome/browser/firstrun/FirstRunFlowSequencer.java",
"license": "bsd-3-clause",
"size": 15996
} | [
"android.os.SystemClock",
"org.chromium.base.metrics.RecordHistogram",
"org.chromium.components.signin.AccountManagerFacadeProvider",
"org.chromium.components.signin.AccountUtils"
] | import android.os.SystemClock; import org.chromium.base.metrics.RecordHistogram; import org.chromium.components.signin.AccountManagerFacadeProvider; import org.chromium.components.signin.AccountUtils; | import android.os.*; import org.chromium.base.metrics.*; import org.chromium.components.signin.*; | [
"android.os",
"org.chromium.base",
"org.chromium.components"
] | android.os; org.chromium.base; org.chromium.components; | 295,995 |
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Void> publishCustomEventEventsAsync(String topicHostname, List<Object> events) {
return publishCustomEventEventsWithResponseAsync(topicHostname, events)
.flatMap((Response<Void> res) -> Mono.empty());
} | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Void> function(String topicHostname, List<Object> events) { return publishCustomEventEventsWithResponseAsync(topicHostname, events) .flatMap((Response<Void> res) -> Mono.empty()); } | /**
* Publishes a batch of events to an Azure Event Grid topic.
*
* @param topicHostname The host name of the topic, e.g. topic1.westus2-1.eventgrid.azure.net.
* @param events An array of events to be published to Event Grid.
* @throws IllegalArgumentException thrown if parameters fail the vali... | Publishes a batch of events to an Azure Event Grid topic | publishCustomEventEventsAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/eventgrid/azure-messaging-eventgrid/src/main/java/com/azure/messaging/eventgrid/implementation/EventGridPublisherClientImpl.java",
"license": "mit",
"size": 16394
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"java.util.List"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import java.util.List; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import java.util.*; | [
"com.azure.core",
"java.util"
] | com.azure.core; java.util; | 1,327,560 |
public static boolean writeToFile(String filename, Object obj, boolean append, String encoding) {
boolean result;
BufferedWriter writer;
try {
if ((encoding != null) && (encoding.length() > 0))
writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filename, append), encoding));
... | static boolean function(String filename, Object obj, boolean append, String encoding) { boolean result; BufferedWriter writer; try { if ((encoding != null) && (encoding.length() > 0)) writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(filename, append), encoding)); else writer = new BufferedWriter(... | /**
* Writes the given object to the specified file. The message is either
* appended or replaces the current content of the file.
*
* @param filename the file to write to
* @param obj the object to write
* @param append whether to append the message or not
* @param encoding the encoding to use, n... | Writes the given object to the specified file. The message is either appended or replaces the current content of the file | writeToFile | {
"repo_name": "automenta/adams-core",
"path": "src/main/java/adams/core/io/FileUtils.java",
"license": "gpl-3.0",
"size": 30408
} | [
"java.io.BufferedWriter",
"java.io.FileOutputStream",
"java.io.OutputStreamWriter"
] | import java.io.BufferedWriter; import java.io.FileOutputStream; import java.io.OutputStreamWriter; | import java.io.*; | [
"java.io"
] | java.io; | 1,638,195 |
private String formatXml(String xmlToFormat) {
try {
final Document document = generateXmlDocument(xmlToFormat);
OutputFormat format = new OutputFormat(document);
format.setLineWidth(65);
format.setIndenting(true);
format.setIndent(2);
... | String function(String xmlToFormat) { try { final Document document = generateXmlDocument(xmlToFormat); OutputFormat format = new OutputFormat(document); format.setLineWidth(65); format.setIndenting(true); format.setIndent(2); format.setOmitXMLDeclaration(true); Writer out = new StringWriter(); XMLSerializer serializer... | /**
* This function will format the XML profile with intends and new lines.
*
* @param xmlToFormat the xml String you want to format
* @return the formated version of teh given XML string
*/ | This function will format the XML profile with intends and new lines | formatXml | {
"repo_name": "ferronrsmith/easyrec",
"path": "easyrec-web/src/main/java/org/easyrec/taglib/ProfileRenderer.java",
"license": "gpl-3.0",
"size": 9264
} | [
"java.io.IOException",
"java.io.StringWriter",
"java.io.Writer",
"org.apache.xml.serialize.OutputFormat",
"org.apache.xml.serialize.XMLSerializer",
"org.w3c.dom.Document"
] | import java.io.IOException; import java.io.StringWriter; import java.io.Writer; import org.apache.xml.serialize.OutputFormat; import org.apache.xml.serialize.XMLSerializer; import org.w3c.dom.Document; | import java.io.*; import org.apache.xml.serialize.*; import org.w3c.dom.*; | [
"java.io",
"org.apache.xml",
"org.w3c.dom"
] | java.io; org.apache.xml; org.w3c.dom; | 2,671,945 |
public VariableType<T> scope(String scope)
{
childNode.getOrCreate("scope").text(scope);
return this;
} | VariableType<T> function(String scope) { childNode.getOrCreate("scope").text(scope); return this; } | /**
* Sets the <code>scope</code> element
* @param scope the value for the element <code>scope</code>
* @return the current instance of <code>VariableType<T></code>
*/ | Sets the <code>scope</code> element | scope | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/jsptaglibrary20/VariableTypeImpl.java",
"license": "epl-1.0",
"size": 11738
} | [
"org.jboss.shrinkwrap.descriptor.api.jsptaglibrary20.VariableType"
] | import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary20.VariableType; | import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary20.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 2,325,021 |
@Override
public final void setData(List<Double> values) {
throw new UnsupportedOperationException(INVALID_SET_DATA_CALL);
} | final void function(List<Double> values) { throw new UnsupportedOperationException(INVALID_SET_DATA_CALL); } | /**
* Throws an exception because not available.
*
* @param values ignored because will throw an exception
*/ | Throws an exception because not available | setData | {
"repo_name": "pepstock-org/Charba",
"path": "src/org/pepstock/charba/client/impl/charts/MeterDataset.java",
"license": "apache-2.0",
"size": 18239
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,412,449 |
public QueryResult getAuthorView(Long inQuestionID, Long inAuthorID, Integer[] inState) throws VException, SQLException {
KeyObject lKey = new KeyObjectImpl();
//K1: QuestionHierarchy.ParentID = inQuestionID AND QuestionAuthorReviewer.Type = 0 (i.e. we only select questions by authors, not by reviewers)
lKe... | QueryResult function(Long inQuestionID, Long inAuthorID, Integer[] inState) throws VException, SQLException { KeyObject lKey = new KeyObjectImpl(); lKey.setValue(QuestionHierarchyHome.KEY_PARENT_ID, inQuestionID); lKey.setValue(ResponsibleHome.KEY_TYPE, ResponsibleHome.Type.AUTHOR.getValue()); KeyObject lKeyStates = BO... | /**
* <p>Returns all child questions to the specified question
* that are either authored by the specified member or in the specified states.</p>
*
* @param inQuestionID Long
* @param inAuthorID Integer
* @param inState Integer[]
* @return QueryResult
* @throws VException
* @throws SQLExcep... | Returns all child questions to the specified question that are either authored by the specified member or in the specified states | getAuthorView | {
"repo_name": "aktion-hip/vif",
"path": "org.hip.vif.core/src/org/hip/vif/core/bom/impl/JoinQuestionToChildAndAuthorHome.java",
"license": "gpl-2.0",
"size": 7689
} | [
"java.sql.SQLException",
"org.hip.kernel.bom.KeyObject",
"org.hip.kernel.bom.QueryResult",
"org.hip.kernel.bom.impl.KeyObjectImpl",
"org.hip.kernel.exc.VException",
"org.hip.vif.core.bom.BOMHelper",
"org.hip.vif.core.bom.QuestionHierarchyHome",
"org.hip.vif.core.bom.QuestionHome",
"org.hip.vif.core.... | import java.sql.SQLException; import org.hip.kernel.bom.KeyObject; import org.hip.kernel.bom.QueryResult; import org.hip.kernel.bom.impl.KeyObjectImpl; import org.hip.kernel.exc.VException; import org.hip.vif.core.bom.BOMHelper; import org.hip.vif.core.bom.QuestionHierarchyHome; import org.hip.vif.core.bom.QuestionHome... | import java.sql.*; import org.hip.kernel.bom.*; import org.hip.kernel.bom.impl.*; import org.hip.kernel.exc.*; import org.hip.vif.core.bom.*; | [
"java.sql",
"org.hip.kernel",
"org.hip.vif"
] | java.sql; org.hip.kernel; org.hip.vif; | 2,607,232 |
public BooleanDataValue lessOrEquals(DataValueDescriptor left,
DataValueDescriptor right)
throws StandardException
{
boolean leftBoolean = left.getBoolean();
boolean rightBoolean = right.getBoolean();
return truthValue(left,
right,
leftBoolean == false || rightBoolean == true);... | BooleanDataValue function(DataValueDescriptor left, DataValueDescriptor right) throws StandardException { boolean leftBoolean = left.getBoolean(); boolean rightBoolean = right.getBoolean(); return truthValue(left, right, leftBoolean == false rightBoolean == true); } | /**
* The <= operator as called from the language module, as opposed to
* the storage module.
*
* @param left The value on the left side of the operator
* @param right The value on the right side of the operator
*
* @return A SQL boolean value telling whether the left operand is
* less than or ... | The <= operator as called from the language module, as opposed to the storage module | lessOrEquals | {
"repo_name": "apache/derby",
"path": "java/org.apache.derby.engine/org/apache/derby/iapi/types/SQLBoolean.java",
"license": "apache-2.0",
"size": 27299
} | [
"org.apache.derby.shared.common.error.StandardException"
] | import org.apache.derby.shared.common.error.StandardException; | import org.apache.derby.shared.common.error.*; | [
"org.apache.derby"
] | org.apache.derby; | 2,522,354 |
public static Game addGame(GameForm gf, User user) {
Game game;
DateTime gameDate;
DateTime date;
int month = Integer.parseInt(gf.month);
int day = Integer.parseInt(gf.day);
int year = Integer.parseInt(gf.year);
int hour = Integer.parseInt(gf.hour);
int minute = Integer.parseInt(gf.m... | static Game function(GameForm gf, User user) { Game game; DateTime gameDate; DateTime date; int month = Integer.parseInt(gf.month); int day = Integer.parseInt(gf.day); int year = Integer.parseInt(gf.year); int hour = Integer.parseInt(gf.hour); int minute = Integer.parseInt(gf.minute); if (!isGame(gf.id)) { game = new G... | /**
* Adds a game to the database.
*
* @param gf the game form
* @param user the creator of the game
*/ | Adds a game to the database | addGame | {
"repo_name": "andrewpw/HawaiiHoopsFinish",
"path": "app/models/games/Game.java",
"license": "apache-2.0",
"size": 13346
} | [
"org.joda.time.DateTime"
] | import org.joda.time.DateTime; | import org.joda.time.*; | [
"org.joda.time"
] | org.joda.time; | 1,500,541 |
public void setPermissionSentDate(Date permissionSentDate) {
this.permissionSentDate = permissionSentDate;
} | void function(Date permissionSentDate) { this.permissionSentDate = permissionSentDate; } | /**
* Set the date the permission was sent.
* @param permissionSentDate The permissionSentDate to set.
*/ | Set the date the permission was sent | setPermissionSentDate | {
"repo_name": "DIA-NZ/webcurator",
"path": "wct-core/src/main/java/org/webcurator/domain/model/core/Permission.java",
"license": "apache-2.0",
"size": 23657
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,263,003 |
private static String toHex(byte[] array)
{
BigInteger bi = new BigInteger(1, array);
String hex = bi.toString(16);
int paddingLength = (array.length * 2) - hex.length();
if(paddingLength > 0)
return String.format("%0" + paddingLength + "d", 0) + hex;
else
... | static String function(byte[] array) { BigInteger bi = new BigInteger(1, array); String hex = bi.toString(16); int paddingLength = (array.length * 2) - hex.length(); if(paddingLength > 0) return String.format("%0" + paddingLength + "d", 0) + hex; else return hex; } | /**
* Converts a byte array into a hexadecimal string.
*
* @param array the byte array to convert
* @return a length*2 character string encoding the byte array
*/ | Converts a byte array into a hexadecimal string | toHex | {
"repo_name": "potray/Pacts",
"path": "Backend/src/main/java/es/potrayarrick/pacts/backend/Utils/PasswordHash.java",
"license": "gpl-2.0",
"size": 8932
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 1,892,048 |
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<FactoryInner> listByResourceGroup(String resourceGroupName, Context context) {
return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context));
} | @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<FactoryInner> function(String resourceGroupName, Context context) { return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); } | /**
* Lists factories.
*
* @param resourceGroupName The resource group name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request is rejected by server... | Lists factories | listByResourceGroup | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/implementation/FactoriesClientImpl.java",
"license": "mit",
"size": 89091
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedIterable",
"com.azure.core.util.Context",
"com.azure.resourcemanager.datafactory.fluent.models.FactoryInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; import com.azure.resourcemanager.datafactory.fluent.models.FactoryInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.datafactory.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,750,483 |
@Override
public int getDeliveryMode() throws JMSException {
if (ActiveMQRAMessageProducer.trace) {
ActiveMQRALogger.LOGGER.trace("getDeliveryMode()");
}
return producer.getDeliveryMode();
} | int function() throws JMSException { if (ActiveMQRAMessageProducer.trace) { ActiveMQRALogger.LOGGER.trace(STR); } return producer.getDeliveryMode(); } | /**
* Get the delivery mode
*
* @return The mode
* @throws JMSException Thrown if an error occurs
*/ | Get the delivery mode | getDeliveryMode | {
"repo_name": "okalmanRH/jboss-activemq-artemis",
"path": "artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRAMessageProducer.java",
"license": "apache-2.0",
"size": 13817
} | [
"javax.jms.JMSException"
] | import javax.jms.JMSException; | import javax.jms.*; | [
"javax.jms"
] | javax.jms; | 242,628 |
WithCreate withNewResourceGroup(Creatable<ResourceGroup> groupDefinition);
} | WithCreate withNewResourceGroup(Creatable<ResourceGroup> groupDefinition); } | /**
* Creates a new resource group to put the resource in, based on the definition specified.
* @param groupDefinition a creatable definition for a new resource group
* @return the next stage of the definition
*/ | Creates a new resource group to put the resource in, based on the definition specified | withNewResourceGroup | {
"repo_name": "jianghaolu/azure-sdk-for-java",
"path": "azure-mgmt-appservice/src/main/java/com/microsoft/azure/management/appservice/WebApp.java",
"license": "mit",
"size": 16445
} | [
"com.microsoft.azure.management.resources.ResourceGroup",
"com.microsoft.azure.management.resources.fluentcore.model.Creatable"
] | import com.microsoft.azure.management.resources.ResourceGroup; import com.microsoft.azure.management.resources.fluentcore.model.Creatable; | import com.microsoft.azure.management.resources.*; import com.microsoft.azure.management.resources.fluentcore.model.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 1,821,494 |
public static TimestampValue newTimestampValue(Timestamp stamp) {
return new TimestampValue(stamp);
} | static TimestampValue function(Timestamp stamp) { return new TimestampValue(stamp); } | /**
* create a time-stamp value
*
* @param stamp
* instance of a time-stamp
* @return new instance of time-stamp value
*/ | create a time-stamp value | newTimestampValue | {
"repo_name": "raghu-bhandi/simplity",
"path": "java/org/simplity/kernel/value/Value.java",
"license": "mit",
"size": 17692
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,156,267 |
@IgniteSpiConfiguration(optional = true)
public TcpCommunicationSpi setDirectSendBuffer(boolean directSndBuf) {
this.directSndBuf = directSndBuf;
return this;
} | @IgniteSpiConfiguration(optional = true) TcpCommunicationSpi function(boolean directSndBuf) { this.directSndBuf = directSndBuf; return this; } | /**
* Sets whether to use direct buffer for sending.
*
* If not provided default is {@code false}.
*
* @param directSndBuf {@code True} to use direct buffers for send.
* @return {@code this} for chaining.
*/ | Sets whether to use direct buffer for sending. If not provided default is false | setDirectSendBuffer | {
"repo_name": "SharplEr/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java",
"license": "apache-2.0",
"size": 182111
} | [
"org.apache.ignite.spi.IgniteSpiConfiguration"
] | import org.apache.ignite.spi.IgniteSpiConfiguration; | import org.apache.ignite.spi.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,577,404 |
public Iterator<String> checkIDRefID() {
return (fIdIdrefChecking) ? super.checkIDRefID() : null;
} | Iterator<String> function() { return (fIdIdrefChecking) ? super.checkIDRefID() : null; } | /**
* Checks if all IDREFs have a corresponding ID.
* @return null, if ID/IDREF checking is turned off
* otherwise, returns the value of the super implementation
*/ | Checks if all IDREFs have a corresponding ID | checkIDRefID | {
"repo_name": "md-5/jdk10",
"path": "src/java.xml/share/classes/com/sun/org/apache/xerces/internal/impl/validation/ConfigurableValidationState.java",
"license": "gpl-2.0",
"size": 4111
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,329,161 |
public void setPropertyValues(MutablePropertyValues propertyValues) {
this.propertyValues = (propertyValues != null ? propertyValues : new MutablePropertyValues());
} | void function(MutablePropertyValues propertyValues) { this.propertyValues = (propertyValues != null ? propertyValues : new MutablePropertyValues()); } | /**
* Specify property values for this bean, if any.
*/ | Specify property values for this bean, if any | setPropertyValues | {
"repo_name": "deathspeeder/class-guard",
"path": "spring-framework-3.2.x/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanDefinition.java",
"license": "gpl-2.0",
"size": 35603
} | [
"org.springframework.beans.MutablePropertyValues"
] | import org.springframework.beans.MutablePropertyValues; | import org.springframework.beans.*; | [
"org.springframework.beans"
] | org.springframework.beans; | 722,163 |
public ServiceCall delete307Async(Boolean booleanValue, final ServiceCallback<Void> serviceCallback) throws IllegalArgumentException {
if (serviceCallback == null) {
throw new IllegalArgumentException("ServiceCallback is required for async calls.");
} | ServiceCall function(Boolean booleanValue, final ServiceCallback<Void> serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException(STR); } | /**
* Delete redirected with 307, resulting in a 200 after redirect.
*
* @param booleanValue Simple boolean value true
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if callback is null
* @return the {... | Delete redirected with 307, resulting in a 200 after redirect | delete307Async | {
"repo_name": "stankovski/AutoRest",
"path": "AutoRest/Generators/Java/Java.Tests/src/main/java/fixtures/http/HttpRedirectsOperationsImpl.java",
"license": "mit",
"size": 53468
} | [
"com.microsoft.rest.ServiceCall",
"com.microsoft.rest.ServiceCallback"
] | import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 413,596 |
public static void setState(final IDialogSettings state, final String stateKey, final int[] intValues) {
final String[] stateIndices = new String[intValues.length];
for (int index = 0; index < intValues.length; index++) {
stateIndices[index] = Integer.toString(intValues[index]);
}
state.put(stateKey, s... | static void function(final IDialogSettings state, final String stateKey, final int[] intValues) { final String[] stateIndices = new String[intValues.length]; for (int index = 0; index < intValues.length; index++) { stateIndices[index] = Integer.toString(intValues[index]); } state.put(stateKey, stateIndices); } | /**
* Set the state for an integer array, integer values are converted into string value.
*
* @param state
* @param stateKey
* @param intValues
*/ | Set the state for an integer array, integer values are converted into string value | setState | {
"repo_name": "rhchen/notrace",
"path": "chart/net.tourbook.common/src/net/tourbook/common/util/Util.java",
"license": "epl-1.0",
"size": 47193
} | [
"org.eclipse.jface.dialogs.IDialogSettings"
] | import org.eclipse.jface.dialogs.IDialogSettings; | import org.eclipse.jface.dialogs.*; | [
"org.eclipse.jface"
] | org.eclipse.jface; | 1,049,570 |
private String getFeatureString(List<IN> document) {
int docSize = document.size();
if (classifier.flags.useReverse) {
Collections.reverse(document);
}
StringBuilder sb = new StringBuilder();
for (int j = 0; j < docSize; j++) {
IN token = document.get(j);
sb.append(to... | String function(List<IN> document) { int docSize = document.size(); if (classifier.flags.useReverse) { Collections.reverse(document); } StringBuilder sb = new StringBuilder(); for (int j = 0; j < docSize; j++) { IN token = document.get(j); sb.append(token.get(CoreAnnotations.TextAnnotation.class)); sb.append(delimiter)... | /**
* Constructs a big string representing the input list of CoreLabel,
* with one line per token using the following format
* word label feat1 feat2 ...
* (where each space is actually a tab)
* Assume that CoreLabel has both TextAnnotation and AnswerAnnotation
* @param document List of CoreLa... | Constructs a big string representing the input list of CoreLabel, with one line per token using the following format word label feat1 feat2 ... (where each space is actually a tab) Assume that CoreLabel has both TextAnnotation and AnswerAnnotation | getFeatureString | {
"repo_name": "PeterisP/LVTagger",
"path": "src/main/java/edu/stanford/nlp/ie/crf/CRFFeatureExporter.java",
"license": "gpl-2.0",
"size": 6418
} | [
"edu.stanford.nlp.ling.CoreAnnotations",
"java.util.Collection",
"java.util.Collections",
"java.util.List"
] | import edu.stanford.nlp.ling.CoreAnnotations; import java.util.Collection; import java.util.Collections; import java.util.List; | import edu.stanford.nlp.ling.*; import java.util.*; | [
"edu.stanford.nlp",
"java.util"
] | edu.stanford.nlp; java.util; | 596,563 |
protected void importZipResult(final BuildTaskDescriptor descriptor, final BuildFinishedCallback buildFinishedCallback, final Notification notification, final String errorMessage) {
Link downloadLink = null;
List<Link> links = descriptor.getLinks();
for (Link link : links) {
if (... | void function(final BuildTaskDescriptor descriptor, final BuildFinishedCallback buildFinishedCallback, final Notification notification, final String errorMessage) { Link downloadLink = null; List<Link> links = descriptor.getLinks(); for (Link link : links) { if (link.getRel().equalsIgnoreCase(STR)) { downloadLink = lin... | /**
* If there is a result zip, import it.
* @param descriptor the build descriptor
* @param buildFinishedCallback the callback to call
*/ | If there is a result zip, import it | importZipResult | {
"repo_name": "sunix/che-plugins",
"path": "plugin-yeoman/che-plugin-yeoman-ext-client/src/main/java/org/eclipse/che/plugin/yeoman/client/builder/BuilderAgent.java",
"license": "epl-1.0",
"size": 15381
} | [
"java.util.List",
"org.eclipse.che.api.builder.dto.BuildTaskDescriptor",
"org.eclipse.che.api.core.rest.shared.dto.Link",
"org.eclipse.che.api.project.shared.dto.ImportProject",
"org.eclipse.che.api.project.shared.dto.ImportSourceDescriptor",
"org.eclipse.che.api.project.shared.dto.Source",
"org.eclipse... | import java.util.List; import org.eclipse.che.api.builder.dto.BuildTaskDescriptor; import org.eclipse.che.api.core.rest.shared.dto.Link; import org.eclipse.che.api.project.shared.dto.ImportProject; import org.eclipse.che.api.project.shared.dto.ImportSourceDescriptor; import org.eclipse.che.api.project.shared.dto.Source... | import java.util.*; import org.eclipse.che.api.builder.dto.*; import org.eclipse.che.api.core.rest.shared.dto.*; import org.eclipse.che.api.project.shared.dto.*; import org.eclipse.che.ide.api.notification.*; | [
"java.util",
"org.eclipse.che"
] | java.util; org.eclipse.che; | 2,603,544 |
void fatal(Message msg); | void fatal(Message msg); | /**
* Logs a message with the specific Marker at the {@link Level#FATAL FATAL} level.
*
* @param msg the message string to be logged
*/ | Logs a message with the specific Marker at the <code>Level#FATAL FATAL</code> level | fatal | {
"repo_name": "ClarenceAu/log4j2",
"path": "log4j-api/src/main/java/org/apache/logging/log4j/Logger.java",
"license": "apache-2.0",
"size": 39369
} | [
"org.apache.logging.log4j.message.Message"
] | import org.apache.logging.log4j.message.Message; | import org.apache.logging.log4j.message.*; | [
"org.apache.logging"
] | org.apache.logging; | 523,796 |
@Override
public Shape getClip() {
if (this.clip == null) {
return null;
}
AffineTransform inv;
try {
inv = this.transform.createInverse();
return inv.createTransformedShape(this.clip);
} catch (NoninvertibleTransformException ex) {
... | Shape function() { if (this.clip == null) { return null; } AffineTransform inv; try { inv = this.transform.createInverse(); return inv.createTransformedShape(this.clip); } catch (NoninvertibleTransformException ex) { return null; } } | /**
* Returns the user clipping region. The initial default value is
* {@code null}.
*
* @return The user clipping region (possibly {@code null}).
*
* @see #setClip(java.awt.Shape)
*/ | Returns the user clipping region. The initial default value is null | getClip | {
"repo_name": "levigo/jadice-server-converter-client",
"path": "src/main/java/org/jfree/chart/fx/FXGraphics2D.java",
"license": "bsd-3-clause",
"size": 60303
} | [
"java.awt.Shape",
"java.awt.geom.AffineTransform",
"java.awt.geom.NoninvertibleTransformException"
] | import java.awt.Shape; import java.awt.geom.AffineTransform; import java.awt.geom.NoninvertibleTransformException; | import java.awt.*; import java.awt.geom.*; | [
"java.awt"
] | java.awt; | 1,433,405 |
private static boolean containsAllChildrenMatch(PathQueryNode path) {
LocationStepQueryNode[] steps = path.getPathSteps();
int count = 0;
for (int i = 0; i < steps.length; i++) {
if (steps[i].getNameTest() == null && !steps[i].getIncludeDescendants()) {
if (i == s... | static boolean function(PathQueryNode path) { LocationStepQueryNode[] steps = path.getPathSteps(); int count = 0; for (int i = 0; i < steps.length; i++) { if (steps[i].getNameTest() == null && !steps[i].getIncludeDescendants()) { if (i == steps.length - 1 && count == 0) { return true; } count++; } } return false; } | /**
* Returns <code>true</code> if <code>path</code> contains exactly one
* location step which matches all node names. That is, matches any children
* of a given node. That location step must be the last one in the sequence
* of location steps.
*
* @param path the path node.
* @retur... | Returns <code>true</code> if <code>path</code> contains exactly one location step which matches all node names. That is, matches any children of a given node. That location step must be the last one in the sequence of location steps | containsAllChildrenMatch | {
"repo_name": "apache/jackrabbit",
"path": "jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/sql/QueryFormat.java",
"license": "apache-2.0",
"size": 23438
} | [
"org.apache.jackrabbit.spi.commons.query.LocationStepQueryNode",
"org.apache.jackrabbit.spi.commons.query.PathQueryNode"
] | import org.apache.jackrabbit.spi.commons.query.LocationStepQueryNode; import org.apache.jackrabbit.spi.commons.query.PathQueryNode; | import org.apache.jackrabbit.spi.commons.query.*; | [
"org.apache.jackrabbit"
] | org.apache.jackrabbit; | 2,195,104 |
public void setValue(String expression) throws DebugException {
ChangeVariableCommand changeVariableCommand = getChangeVariableCommand(target, expression);
target.postCommand(changeVariableCommand);
this.value = expression;
target.fireEvent(new DebugEvent(this, DebugEvent.CONTENT | D... | void function(String expression) throws DebugException { ChangeVariableCommand changeVariableCommand = getChangeVariableCommand(target, expression); target.postCommand(changeVariableCommand); this.value = expression; target.fireEvent(new DebugEvent(this, DebugEvent.CONTENT DebugEvent.CHANGE)); } | /**
* This method is called when some value has to be changed to some other expression.
*
* Note that it will (currently) only work for changing local values that are in the topmost frame.
* -- python has no way of making it work right now (see: pydevd_vars.changeAttrExpression)
*/ | This method is called when some value has to be changed to some other expression. Note that it will (currently) only work for changing local values that are in the topmost frame. -- python has no way of making it work right now (see: pydevd_vars.changeAttrExpression) | setValue | {
"repo_name": "smkr/pyclipse",
"path": "plugins/org.python.pydev.debug/src/org/python/pydev/debug/model/PyVariable.java",
"license": "epl-1.0",
"size": 6608
} | [
"org.eclipse.debug.core.DebugEvent",
"org.eclipse.debug.core.DebugException",
"org.python.pydev.debug.model.remote.ChangeVariableCommand"
] | import org.eclipse.debug.core.DebugEvent; import org.eclipse.debug.core.DebugException; import org.python.pydev.debug.model.remote.ChangeVariableCommand; | import org.eclipse.debug.core.*; import org.python.pydev.debug.model.remote.*; | [
"org.eclipse.debug",
"org.python.pydev"
] | org.eclipse.debug; org.python.pydev; | 268,083 |
public static <T extends GUIActivity & DBActivity> void deleteDrinkEvent(History history, DrinkEvent event, T parent) {
history.deleteEvent(event.getIndex());
if (parent != null) {
JalkametriWidget.triggerRecalculate(parent.getContext(), parent.getDB());
parent.updateUI();
... | static <T extends GUIActivity & DBActivity> void function(History history, DrinkEvent event, T parent) { history.deleteEvent(event.getIndex()); if (parent != null) { JalkametriWidget.triggerRecalculate(parent.getContext(), parent.getDB()); parent.updateUI(); } } | /**
* Deletes a drink event from the drink history.
*/ | Deletes a drink event from the drink history | deleteDrinkEvent | {
"repo_name": "thaapasa/jalkametri-android",
"path": "app/src/main/java/fi/tuska/jalkametri/data/DrinkActions.java",
"license": "mit",
"size": 9831
} | [
"fi.tuska.jalkametri.DBActivity",
"fi.tuska.jalkametri.JalkametriWidget",
"fi.tuska.jalkametri.activity.GUIActivity",
"fi.tuska.jalkametri.dao.History"
] | import fi.tuska.jalkametri.DBActivity; import fi.tuska.jalkametri.JalkametriWidget; import fi.tuska.jalkametri.activity.GUIActivity; import fi.tuska.jalkametri.dao.History; | import fi.tuska.jalkametri.*; import fi.tuska.jalkametri.activity.*; import fi.tuska.jalkametri.dao.*; | [
"fi.tuska.jalkametri"
] | fi.tuska.jalkametri; | 1,084,224 |
public void setAccount(SipProfile aAccount) {
account = aAccount;
if (account == null) {
if(isInEditMode() || Compatibility.canMakeGSMCall(getContext())) {
textView.setText(getResources().getString(R.string.gsm));
imageView.setImageResource(R.drawable.ic_... | void function(SipProfile aAccount) { account = aAccount; if (account == null) { if(isInEditMode() Compatibility.canMakeGSMCall(getContext())) { textView.setText(getResources().getString(R.string.gsm)); imageView.setImageResource(R.drawable.ic_wizard_gsm); }else { textView.setText(getResources().getString(R.string.acct_... | /**
* Set the currently selected account for this widget
* It will change internal state,
* Change icon and label of the account
* @param aAccount
*/ | Set the currently selected account for this widget It will change internal state, Change icon and label of the account | setAccount | {
"repo_name": "caihongwang/ChatMe",
"path": "src/com/csipsimple/widgets/AccountChooserButton.java",
"license": "lgpl-3.0",
"size": 15795
} | [
"android.graphics.drawable.BitmapDrawable",
"com.csipsimple.api.SipProfile",
"com.csipsimple.utils.Compatibility",
"com.csipsimple.wizards.WizardUtils"
] | import android.graphics.drawable.BitmapDrawable; import com.csipsimple.api.SipProfile; import com.csipsimple.utils.Compatibility; import com.csipsimple.wizards.WizardUtils; | import android.graphics.drawable.*; import com.csipsimple.api.*; import com.csipsimple.utils.*; import com.csipsimple.wizards.*; | [
"android.graphics",
"com.csipsimple.api",
"com.csipsimple.utils",
"com.csipsimple.wizards"
] | android.graphics; com.csipsimple.api; com.csipsimple.utils; com.csipsimple.wizards; | 1,812,447 |
public long getLastMillisecond(Calendar calendar) {
int year = this.hour.getDay().getYear();
int month = this.hour.getDay().getMonth() - 1;
int day = this.hour.getDay().getDayOfMonth();
calendar.clear();
calendar.set(year, month, day, this.hour.getHour(), this.minute, 59);
... | long function(Calendar calendar) { int year = this.hour.getDay().getYear(); int month = this.hour.getDay().getMonth() - 1; int day = this.hour.getDay().getDayOfMonth(); calendar.clear(); calendar.set(year, month, day, this.hour.getHour(), this.minute, 59); calendar.set(Calendar.MILLISECOND, 999); return calendar.getTim... | /**
* Returns the last millisecond of the minute.
*
* @param calendar the calendar and timezone.
*
* @return The last millisecond.
*/ | Returns the last millisecond of the minute | getLastMillisecond | {
"repo_name": "raedle/univis",
"path": "lib/jfreechart-1.0.1/src/org/jfree/data/time/Minute.java",
"license": "lgpl-2.1",
"size": 12516
} | [
"java.util.Calendar"
] | import java.util.Calendar; | import java.util.*; | [
"java.util"
] | java.util; | 1,021,012 |
public Histogram histogram(double[] data, Color color) {
return histogram((String) null, data, color);
} | Histogram function(double[] data, Color color) { return histogram((String) null, data, color); } | /**
* Adds a histogram to this canvas.
* @param data a sample set.
*/ | Adds a histogram to this canvas | histogram | {
"repo_name": "dublinio/smile",
"path": "SmilePlot/src/main/java/smile/plot/PlotCanvas.java",
"license": "apache-2.0",
"size": 71375
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 2,116,919 |
public FileInfo get_file_info1(String file_id)
throws IOException, MyException
{
String[] parts = new String[2];
this.errno = this.split_file_id(file_id, parts);
if (this.errno != 0)
{
return null;
}
return this.get_file_info... | FileInfo function(String file_id) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(file_id, parts); if (this.errno != 0) { return null; } return this.get_file_info(parts[0], parts[1]); } | /**
* get file info decoded from filename
*
* @param file_id the file id(including group name and filename)
* @return FileInfo object for success, return null for fail
*/ | get file info decoded from filename | get_file_info1 | {
"repo_name": "youxiaxiaomage/yx-platform",
"path": "yx-platform-common/src/main/java/org/csource/fastdfs/StorageClient1.java",
"license": "apache-2.0",
"size": 29858
} | [
"java.io.IOException",
"org.csource.common.MyException"
] | import java.io.IOException; import org.csource.common.MyException; | import java.io.*; import org.csource.common.*; | [
"java.io",
"org.csource.common"
] | java.io; org.csource.common; | 2,006,154 |
public File getInitialConditionsConfig() {
if (simconfigDir != null) {
return new File(simconfigDir, "InitialConditions.txt");
} else {
return null;
}
}
| File function() { if (simconfigDir != null) { return new File(simconfigDir, STR); } else { return null; } } | /**
* Return the initial conditions configuration.
*
* @return the initial conditions configuration
*/ | Return the initial conditions configuration | getInitialConditionsConfig | {
"repo_name": "hervegirod/j6dof-flight-sim",
"path": "src/flightsim/com/chrisali/javaflightsim/conf/Configuration.java",
"license": "gpl-3.0",
"size": 12774
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 1,575,845 |
public static
Node getSignIn(
final Node clef
) {
return XML.getNodeIn(clef, SIGN);
} | static Node function( final Node clef ) { return XML.getNodeIn(clef, SIGN); } | /**
* Returns the {@code sign} element in the specified {@code clef} element.
*
* @param clef the {@code clef} element.
* @return the {@code sign} element.
*/ | Returns the sign element in the specified clef element | getSignIn | {
"repo_name": "exbuddha/Mupeli",
"path": "src/structs/MusicXML.java",
"license": "gpl-3.0",
"size": 34866
} | [
"org.w3c.dom.Node"
] | import org.w3c.dom.Node; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,431,874 |
@ApiModelProperty(example = "null", value = "")
public String getAddressNumber() {
return addressNumber;
} | @ApiModelProperty(example = "null", value = "") String function() { return addressNumber; } | /**
* Get addressNumber
* @return addressNumber
**/ | Get addressNumber | getAddressNumber | {
"repo_name": "PitneyBowes/LocationIntelligenceSDK-Java",
"path": "src/main/java/pb/locationintelligence/model/Address.java",
"license": "apache-2.0",
"size": 19873
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 1,428,097 |
public BigInteger getDifficultyTargetAsInteger() throws VerificationException {
maybeParseHeader();
BigInteger target = Utils.decodeCompactBits(difficultyTarget);
if (target.signum() <= 0 || target.compareTo(params.maxTarget) > 0)
throw new VerificationException("Difficulty targe... | BigInteger function() throws VerificationException { maybeParseHeader(); BigInteger target = Utils.decodeCompactBits(difficultyTarget); if (target.signum() <= 0 target.compareTo(params.maxTarget) > 0) throw new VerificationException(STR + target.toString()); return target; } | /**
* Returns the difficulty target as a 256 bit value that can be compared to a SHA-256 hash. Inside a block the
* target is represented using a compact form. If this form decodes to a value that is out of bounds, an exception
* is thrown.
*/ | Returns the difficulty target as a 256 bit value that can be compared to a SHA-256 hash. Inside a block the target is represented using a compact form. If this form decodes to a value that is out of bounds, an exception is thrown | getDifficultyTargetAsInteger | {
"repo_name": "troggy/bitcoinj",
"path": "core/src/main/java/com/google/bitcoin/core/Block.java",
"license": "apache-2.0",
"size": 45542
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 1,236,542 |
public static void write(OutputStream output, InvalidName value)
{
// Write the exception repository id.
output.write_string(id());
} | static void function(OutputStream output, InvalidName value) { output.write_string(id()); } | /**
* Write the exception to the CDR output stream.
*
* @param output a org.omg.CORBA.portable stream stream to write into.
* @param value a value to write.
*/ | Write the exception to the CDR output stream | write | {
"repo_name": "taciano-perez/JamVM-PH",
"path": "src/classpath/org/omg/PortableInterceptor/ORBInitInfoPackage/InvalidNameHelper.java",
"license": "gpl-2.0",
"size": 4348
} | [
"org.omg.CORBA"
] | import org.omg.CORBA; | import org.omg.*; | [
"org.omg"
] | org.omg; | 1,903,210 |
public static modeSpecificInfoType fromPerAligned(byte[] encodedBytes) {
modeSpecificInfoType result = new modeSpecificInfoType();
result.decodePerAligned(new BitStreamReader(encodedBytes));
return result;
}
| static modeSpecificInfoType function(byte[] encodedBytes) { modeSpecificInfoType result = new modeSpecificInfoType(); result.decodePerAligned(new BitStreamReader(encodedBytes)); return result; } | /**
* Creates a new modeSpecificInfoType from encoded stream.
*/ | Creates a new modeSpecificInfoType from encoded stream | fromPerAligned | {
"repo_name": "google/supl-client",
"path": "src/main/java/com/google/location/suplclient/asn1/supl2/ulp_components/FrequencyInfo.java",
"license": "apache-2.0",
"size": 14509
} | [
"com.google.location.suplclient.asn1.base.BitStreamReader"
] | import com.google.location.suplclient.asn1.base.BitStreamReader; | import com.google.location.suplclient.asn1.base.*; | [
"com.google.location"
] | com.google.location; | 1,412,614 |
public Observable<ServiceResponse<NetworkInterfaceInner>> beginUpdateTagsWithServiceResponseAsync(String resourceGroupName, String networkInterfaceName, Map<String, String> tags) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and ca... | Observable<ServiceResponse<NetworkInterfaceInner>> function(String resourceGroupName, String networkInterfaceName, Map<String, String> tags) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (networkInterfaceName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscr... | /**
* Updates a network interface tags.
*
* @param resourceGroupName The name of the resource group.
* @param networkInterfaceName The name of the network interface.
* @param tags Resource tags.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the ... | Updates a network interface tags | beginUpdateTagsWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkInterfacesInner.java",
"license": "mit",
"size": 192125
} | [
"com.microsoft.rest.ServiceResponse",
"java.util.Map"
] | import com.microsoft.rest.ServiceResponse; import java.util.Map; | import com.microsoft.rest.*; import java.util.*; | [
"com.microsoft.rest",
"java.util"
] | com.microsoft.rest; java.util; | 308,096 |
List<NetworkLinkKey> supportingLinkIds(); | List<NetworkLinkKey> supportingLinkIds(); | /**
* Returns the supporting link identifiers.
*
* @return list of the ids of the supporting links
*/ | Returns the supporting link identifiers | supportingLinkIds | {
"repo_name": "LorenzReinhart/ONOSnew",
"path": "apps/tetopology/api/src/main/java/org/onosproject/tetopology/management/api/link/NetworkLink.java",
"license": "apache-2.0",
"size": 1609
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,209,194 |
public Vector3f normalForPlaneClosestToOrigin(Vector3f pointOnAABB, Vector3f origin, boolean testX, boolean testY, boolean testZ) {
ArrayList<Vector3f> normals = new ArrayList<Vector3f>();
if (pointOnAABB.z == min.z && testZ) normals.add(new Vector3f(0, 0, -1));
if (pointOnAABB.z == max.z &... | Vector3f function(Vector3f pointOnAABB, Vector3f origin, boolean testX, boolean testY, boolean testZ) { ArrayList<Vector3f> normals = new ArrayList<Vector3f>(); if (pointOnAABB.z == min.z && testZ) normals.add(new Vector3f(0, 0, -1)); if (pointOnAABB.z == max.z && testZ) normals.add(new Vector3f(0, 0, 1)); if (pointOnA... | /**
* Returns the normal of the plane closest to the given origin.
*
* @param pointOnAABB A point on the AABB
* @param origin The origin
* @param testX True if the x-axis should be tested
* @param testY True if the y-axis should be tested
* @param testZ True if ... | Returns the normal of the plane closest to the given origin | normalForPlaneClosestToOrigin | {
"repo_name": "zoneXcoding/Mineworld",
"path": "src/main/java/org/terasology/math/AABB.java",
"license": "apache-2.0",
"size": 12140
} | [
"java.util.ArrayList",
"javax.vecmath.Vector3f"
] | import java.util.ArrayList; import javax.vecmath.Vector3f; | import java.util.*; import javax.vecmath.*; | [
"java.util",
"javax.vecmath"
] | java.util; javax.vecmath; | 1,885,779 |
public HashResource restoreRelativeRoot(HashResource previousValue) {
// This should never be called.
return null;
} | HashResource function(HashResource previousValue) { return null; } | /**
* Retrieve and clear the relative root for this context.
*
* @param previousValue
* previous value of the relative root to restore
*
* @return value of the relative root which was replaced
*/ | Retrieve and clear the relative root for this context | restoreRelativeRoot | {
"repo_name": "quattor/pan",
"path": "panc/src/main/java/org/quattor/pan/ttemplate/CompileTimeContext.java",
"license": "apache-2.0",
"size": 27104
} | [
"org.quattor.pan.dml.data.HashResource"
] | import org.quattor.pan.dml.data.HashResource; | import org.quattor.pan.dml.data.*; | [
"org.quattor.pan"
] | org.quattor.pan; | 2,821,230 |
Event[] getArray(Vector v) {
Event eva[] = new Event[v.size()];
v.copyInto(eva);
return eva;
} | Event[] getArray(Vector v) { Event eva[] = new Event[v.size()]; v.copyInto(eva); return eva; } | /**
* Returns an array of events, given a vector of events.
*/ | Returns an array of events, given a vector of events | getArray | {
"repo_name": "tommythorn/yari",
"path": "shared/cacao-related/phoneme_feature/midp/src/events/eventqueue/reference/i3test/com/sun/midp/events/InstrumentedEventListener.java",
"license": "gpl-2.0",
"size": 3810
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 1,490,066 |
public FileChooserModel getModel() {
return model;
} | FileChooserModel function() { return model; } | /**
* Returns the file chooser model.
*
* @return the {@link FileChooserModel}.
*/ | Returns the file chooser model | getModel | {
"repo_name": "devent/prefdialog",
"path": "prefdialog-corefields/src/main/java/com/anrisoftware/prefdialog/fields/filechooser/FileChooserField.java",
"license": "gpl-3.0",
"size": 19522
} | [
"com.anrisoftware.prefdialog.miscswing.filechoosers.FileChooserModel"
] | import com.anrisoftware.prefdialog.miscswing.filechoosers.FileChooserModel; | import com.anrisoftware.prefdialog.miscswing.filechoosers.*; | [
"com.anrisoftware.prefdialog"
] | com.anrisoftware.prefdialog; | 623,945 |
void gatherStats() throws IOException {
if(!ci.isMajorCompaction()) {
return;
}
if(columnList.isEmpty()) {
LOG.debug("No existing stats for " + ci.dbname + "." + ci.tableName + " found. Will not run analyze.");
return;//nothing to do
}
//e.g. analyze table page... | void gatherStats() throws IOException { if(!ci.isMajorCompaction()) { return; } if(columnList.isEmpty()) { LOG.debug(STR + ci.dbname + "." + ci.tableName + STR); return; } StringBuilder sb = new StringBuilder(STR).append(ci.dbname).append(".").append(ci.tableName); if(ci.partName != null) { try { sb.append(STR); Map<St... | /**
* todo: what should this do on failure? Should it rethrow? Invalidate stats?
*/ | todo: what should this do on failure? Should it rethrow? Invalidate stats | gatherStats | {
"repo_name": "vergilchiu/hive",
"path": "ql/src/java/org/apache/hadoop/hive/ql/txn/compactor/Worker.java",
"license": "apache-2.0",
"size": 11929
} | [
"java.io.IOException",
"java.util.Map",
"org.apache.hadoop.hive.metastore.Warehouse",
"org.apache.hadoop.hive.metastore.api.MetaException",
"org.apache.hadoop.hive.ql.CommandNeedRetryException",
"org.apache.hadoop.hive.ql.Driver",
"org.apache.hadoop.hive.ql.processors.CommandProcessorResponse",
"org.a... | import java.io.IOException; import java.util.Map; import org.apache.hadoop.hive.metastore.Warehouse; import org.apache.hadoop.hive.metastore.api.MetaException; import org.apache.hadoop.hive.ql.CommandNeedRetryException; import org.apache.hadoop.hive.ql.Driver; import org.apache.hadoop.hive.ql.processors.CommandProcesso... | import java.io.*; import java.util.*; import org.apache.hadoop.hive.metastore.*; import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.ql.*; import org.apache.hadoop.hive.ql.processors.*; import org.apache.hadoop.hive.ql.session.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,722,475 |
protected Map.Entry<String, String> exec(final String... cmd)
throws IOException, InterruptedException {
return exec(tmpDir(), cmd);
} | Map.Entry<String, String> function(final String... cmd) throws IOException, InterruptedException { return exec(tmpDir(), cmd); } | /**
* Convenience method that executes the command in a clean, temporary
* directory.
* @param cmd Command to execute.
* @return Output from the command, with STDOUT and STDERR combined.
* @throws IOException When the command cannot be executed.
* @throws InterruptedException When the thread executing... | Convenience method that executes the command in a clean, temporary directory | exec | {
"repo_name": "universal-automata/liblevenshtein-java",
"path": "src/task/java/com/github/liblevenshtein/task/Action.java",
"license": "mit",
"size": 25871
} | [
"java.io.IOException",
"java.util.Map"
] | import java.io.IOException; import java.util.Map; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,301,473 |
public Chronology withZone(DateTimeZone zone) {
if (zone == null) {
zone = DateTimeZone.getDefault();
}
if (zone == getZone()) {
return this;
}
return getInstance(zone);
} | Chronology function(DateTimeZone zone) { if (zone == null) { zone = DateTimeZone.getDefault(); } if (zone == getZone()) { return this; } return getInstance(zone); } | /**
* Gets the Chronology in a specific time zone.
*
* @param zone the zone to get the chronology in, null is default
* @return the chronology
*/ | Gets the Chronology in a specific time zone | withZone | {
"repo_name": "aparo/scalajs-joda",
"path": "src/main/scala/org/joda/time/chrono/JulianChronology.java",
"license": "apache-2.0",
"size": 9253
} | [
"org.joda.time.Chronology",
"org.joda.time.DateTimeZone"
] | import org.joda.time.Chronology; import org.joda.time.DateTimeZone; | import org.joda.time.*; | [
"org.joda.time"
] | org.joda.time; | 2,322,616 |
private boolean isWritable(File dir)
{
boolean result = true;
File test;
try
{
test = File.createTempFile("shortcut", "", dir);
FileUtils.delete(test);
}
catch (IOException exception)
{
result = false;
}
... | boolean function(File dir) { boolean result = true; File test; try { test = File.createTempFile(STR, "", dir); FileUtils.delete(test); } catch (IOException exception) { result = false; } return result; } | /**
* Determines if a directory can be written to.
*
* @param dir the directory
* @return {@code true} if the directory can be written to
*/ | Determines if a directory can be written to | isWritable | {
"repo_name": "stenix71/izpack",
"path": "izpack-panel/src/main/java/com/izforge/izpack/panels/shortcut/ShortcutPanelLogic.java",
"license": "apache-2.0",
"size": 56577
} | [
"com.izforge.izpack.util.file.FileUtils",
"java.io.File",
"java.io.IOException"
] | import com.izforge.izpack.util.file.FileUtils; import java.io.File; import java.io.IOException; | import com.izforge.izpack.util.file.*; import java.io.*; | [
"com.izforge.izpack",
"java.io"
] | com.izforge.izpack; java.io; | 1,437,434 |
private static boolean confusingSignatures(String sig1, String sig2) {
if (sig1.equals(sig2)) {
return false;
}
List<String> type1 = SignatureUtils.getParameterSignatures(sig1);
List<String> type2 = SignatureUtils.getParameterSignatures(sig2);
if (type1.size() !... | static boolean function(String sig1, String sig2) { if (sig1.equals(sig2)) { return false; } List<String> type1 = SignatureUtils.getParameterSignatures(sig1); List<String> type2 = SignatureUtils.getParameterSignatures(sig2); if (type1.size() != type2.size()) { return false; } boolean foundParmDiff = false; for (int i =... | /**
* returns if one signature is a Character and the other is a primitive
*
* @param sig1
* the first method signature
* @param sig2
* the second method signature
*
* @return if one signature is a Character and the other a primitive
*/ | returns if one signature is a Character and the other is a primitive | confusingSignatures | {
"repo_name": "rblasch/fb-contrib",
"path": "src/main/java/com/mebigfatguy/fbcontrib/detect/ConfusingAutoboxedOverloading.java",
"license": "lgpl-2.1",
"size": 7300
} | [
"com.mebigfatguy.fbcontrib.utils.SignatureUtils",
"java.util.List"
] | import com.mebigfatguy.fbcontrib.utils.SignatureUtils; import java.util.List; | import com.mebigfatguy.fbcontrib.utils.*; import java.util.*; | [
"com.mebigfatguy.fbcontrib",
"java.util"
] | com.mebigfatguy.fbcontrib; java.util; | 1,685,562 |
public ReleasableBytesReference readReleasableBytesReference() throws IOException {
return ReleasableBytesReference.wrap(readBytesReference());
} | ReleasableBytesReference function() throws IOException { return ReleasableBytesReference.wrap(readBytesReference()); } | /**
* Reads a releasable bytes reference from this stream. Unlike {@link #readBytesReference()} the returned bytes reference may reference
* bytes in a pooled buffer and must be explicitly released via {@link ReleasableBytesReference#close()} once no longer used.
* Prefer this method over {@link #readByt... | Reads a releasable bytes reference from this stream. Unlike <code>#readBytesReference()</code> the returned bytes reference may reference bytes in a pooled buffer and must be explicitly released via <code>ReleasableBytesReference#close()</code> once no longer used. Prefer this method over <code>#readBytesReference()</c... | readReleasableBytesReference | {
"repo_name": "GlenRSmith/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/common/io/stream/StreamInput.java",
"license": "apache-2.0",
"size": 51206
} | [
"java.io.IOException",
"org.elasticsearch.common.bytes.ReleasableBytesReference"
] | import java.io.IOException; import org.elasticsearch.common.bytes.ReleasableBytesReference; | import java.io.*; import org.elasticsearch.common.bytes.*; | [
"java.io",
"org.elasticsearch.common"
] | java.io; org.elasticsearch.common; | 2,209,473 |
static void rebuildMenu() {
if (menu != null) {
// Clear the old items out.
menu.removeAll();
// Go through the item list, remove any that no longer exist, add the rest to the menu.
JMenuItem item;
int j = 1;
for (int i = fileList.size() - 1; i >= 0; i--) {
final File each = fileList.get(... | static void rebuildMenu() { if (menu != null) { menu.removeAll(); JMenuItem item; int j = 1; for (int i = fileList.size() - 1; i >= 0; i--) { final File each = fileList.get(i); if (!each.exists()) { fileList.remove(i); continue; } | /**
* Rebuild the menu.
*/ | Rebuild the menu | rebuildMenu | {
"repo_name": "jpverkamp/wombat-ide",
"path": "ide/src/wombat/util/files/RecentDocumentManager.java",
"license": "bsd-3-clause",
"size": 3708
} | [
"java.io.File",
"javax.swing.JMenuItem"
] | import java.io.File; import javax.swing.JMenuItem; | import java.io.*; import javax.swing.*; | [
"java.io",
"javax.swing"
] | java.io; javax.swing; | 2,190,452 |
@Override
protected void onImpact(MovingObjectPosition par1MovingObjectPosition)
{
if (par1MovingObjectPosition.entityHit != null)
par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0);
if (!this.worldObj.isRemote)
impactAction();
for (int j =... | void function(MovingObjectPosition par1MovingObjectPosition) { if (par1MovingObjectPosition.entityHit != null) par1MovingObjectPosition.entityHit.attackEntityFrom(DamageSource.causeThrownDamage(this, this.getThrower()), 0); if (!this.worldObj.isRemote) impactAction(); for (int j = 0; j < 8; ++j) this.worldObj.spawnPart... | /**
* Called when this EntityThrowable hits a block or entity.
*/ | Called when this EntityThrowable hits a block or entity | onImpact | {
"repo_name": "aggurai/ThrowCraft",
"path": "throwcraft_common/aggurai/throwcraft/entity/eggs/EntityWitherSkeletonEgg.java",
"license": "gpl-3.0",
"size": 1568
} | [
"net.minecraft.util.DamageSource",
"net.minecraft.util.MovingObjectPosition"
] | import net.minecraft.util.DamageSource; import net.minecraft.util.MovingObjectPosition; | import net.minecraft.util.*; | [
"net.minecraft.util"
] | net.minecraft.util; | 2,712,678 |
protected final BigDecimal stepPrevInScale(BigDecimal decimal) {
BigDecimal step = BigDecimal.ONE.scaleByPowerOfTen(-getRoundingScale());
return decimal.subtract(step);
} | final BigDecimal function(BigDecimal decimal) { BigDecimal step = BigDecimal.ONE.scaleByPowerOfTen(-getRoundingScale()); return decimal.subtract(step); } | /**
* Produces a value one "step" back in this expression's rounding scale.
* For example with a scale of 2, "2.5" would be stepped back to "2.49".
*/ | Produces a value one "step" back in this expression's rounding scale. For example with a scale of 2, "2.5" would be stepped back to "2.49" | stepPrevInScale | {
"repo_name": "julianhyde/phoenix",
"path": "phoenix-core/src/main/java/org/apache/phoenix/expression/function/RoundDecimalExpression.java",
"license": "apache-2.0",
"size": 16023
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 2,512,717 |
public void getRotationMatrixLocalToECEF(final Vect3d ecefLoc, final Vect3d forwardDir, int forwardAxis, int upAxis, Mat3d rotMatrix)
{
// compute up direction
upDir.set(ecefLoc);
upDir.normalize();
// compute rot matrix
computeMatrix(upDir, forwardDir, forwardAxi... | void function(final Vect3d ecefLoc, final Vect3d forwardDir, int forwardAxis, int upAxis, Mat3d rotMatrix) { upDir.set(ecefLoc); upDir.normalize(); computeMatrix(upDir, forwardDir, forwardAxis, upAxis, rotMatrix); } | /**
* Computes the rotation matrix to transform from local geocentric oriented frame to ECEF
* @param ecefLoc location in ECEF
* @param forwardDir forward direction vector in ECEF.
* (this doesn't have to be the exact forward direction but rather form a plane with the up direction in whic... | Computes the rotation matrix to transform from local geocentric oriented frame to ECEF | getRotationMatrixLocalToECEF | {
"repo_name": "opensensorhub/osh-processing",
"path": "sensorhub-process-geoloc/src/main/java/org/sensorhub/algo/geoloc/GeocentricPointing.java",
"license": "mpl-2.0",
"size": 2062
} | [
"org.sensorhub.algo.vecmath.Mat3d",
"org.sensorhub.algo.vecmath.Vect3d"
] | import org.sensorhub.algo.vecmath.Mat3d; import org.sensorhub.algo.vecmath.Vect3d; | import org.sensorhub.algo.vecmath.*; | [
"org.sensorhub.algo"
] | org.sensorhub.algo; | 1,947,403 |
public BigInteger getB() {
return b;
} | BigInteger function() { return b; } | /**
* Returns the second coefficient {@code b} of the
* elliptic curve.
* @return the second coefficient {@code b}.
*/ | Returns the second coefficient b of the elliptic curve | getB | {
"repo_name": "flyzsd/java-code-snippets",
"path": "ibm.jdk8/src/java/security/spec/EllipticCurve.java",
"license": "mit",
"size": 6231
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 1,244,849 |
protected Object[] createItemArray(XYDataset dataset, int series,
int item) {
Object[] result = new Object[3];
result[0] = dataset.getSeriesKey(series).toString();
double x = dataset.getXValue(series, item);
if (this.xDateFormat != null) {
... | Object[] function(XYDataset dataset, int series, int item) { Object[] result = new Object[3]; result[0] = dataset.getSeriesKey(series).toString(); double x = dataset.getXValue(series, item); if (this.xDateFormat != null) { result[1] = this.xDateFormat.format(new Date((long) x)); } else { result[1] = this.xFormat.format... | /**
* Creates the array of items that can be passed to the
* {@link MessageFormat} class for creating labels.
*
* @param dataset the dataset (<code>null</code> not permitted).
* @param series the series (zero-based index).
* @param item the item (zero-based index).
*
* @return... | Creates the array of items that can be passed to the <code>MessageFormat</code> class for creating labels | createItemArray | {
"repo_name": "akardapolov/ASH-Viewer",
"path": "jfreechart-fse/src/main/java/org/jfree/chart/labels/AbstractXYItemLabelGenerator.java",
"license": "gpl-3.0",
"size": 12927
} | [
"java.util.Date",
"org.jfree.data.xy.XYDataset"
] | import java.util.Date; import org.jfree.data.xy.XYDataset; | import java.util.*; import org.jfree.data.xy.*; | [
"java.util",
"org.jfree.data"
] | java.util; org.jfree.data; | 1,100,672 |
public void addPacket(TcpPacket packet, List<byte[]> destinations) {
packetsInTransit.add(new PacketTransmissionInfo(packet, destinations));
}
| void function(TcpPacket packet, List<byte[]> destinations) { packetsInTransit.add(new PacketTransmissionInfo(packet, destinations)); } | /**
* Adds a packet to the packet list that potentially needs to be retransmitted.
* @param packet The packet to add.
* @param destinations The host addresses that are expected to send an ack.
*/ | Adds a packet to the packet list that potentially needs to be retransmitted | addPacket | {
"repo_name": "JerreS/ProjectMSN",
"path": "src/projectmsn/RetransmissionThread.java",
"license": "gpl-3.0",
"size": 4019
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,832,012 |
public HttpHeaders httpHeaders() {
return getOrElse(HTTP_HEADERS, HttpHeaders.EMPTY_HEADERS);
} | HttpHeaders function() { return getOrElse(HTTP_HEADERS, HttpHeaders.EMPTY_HEADERS); } | /**
* Returns the additional HTTP headers to send with requests. Used only when the underlying
* {@link SessionProtocol} is HTTP.
*/ | Returns the additional HTTP headers to send with requests. Used only when the underlying <code>SessionProtocol</code> is HTTP | httpHeaders | {
"repo_name": "jmostella/armeria",
"path": "core/src/main/java/com/linecorp/armeria/client/ClientOptions.java",
"license": "apache-2.0",
"size": 9386
} | [
"com.linecorp.armeria.common.HttpHeaders"
] | import com.linecorp.armeria.common.HttpHeaders; | import com.linecorp.armeria.common.*; | [
"com.linecorp.armeria"
] | com.linecorp.armeria; | 2,360,123 |
public ArrayList<String> buildGroupBy( ArrayList<String> currentGroupByList )
{
String newValue = nameValues.getValue( FormTags.TABLE_TAG )[0] + "." + nameValues.getValue( FormTags.FIELD_TAG )[0];
String orderStr = nameValues.getValue( FormTags.ORDER_TAG )[0];
String synValue = nameVal... | ArrayList<String> function( ArrayList<String> currentGroupByList ) { String newValue = nameValues.getValue( FormTags.TABLE_TAG )[0] + "." + nameValues.getValue( FormTags.FIELD_TAG )[0]; String orderStr = nameValues.getValue( FormTags.ORDER_TAG )[0]; String synValue = nameValues.getValue( FormTags.SYN_TAG )[0]; if ( !sy... | /**
* Description of the Method
*
*@param currentGroupByList List of Group By parameters
*@return Description of the Returned Value
*@since
*/ | Description of the Method | buildGroupBy | {
"repo_name": "jchoyt/mrald-lite",
"path": "src/org/mitre/mrald/query/GroupElement.java",
"license": "apache-2.0",
"size": 5832
} | [
"java.util.ArrayList",
"org.mitre.mrald.util.Config",
"org.mitre.mrald.util.FormTags"
] | import java.util.ArrayList; import org.mitre.mrald.util.Config; import org.mitre.mrald.util.FormTags; | import java.util.*; import org.mitre.mrald.util.*; | [
"java.util",
"org.mitre.mrald"
] | java.util; org.mitre.mrald; | 1,509,447 |
public String getLocalizedMessage(Locale locale) {
return "";
} | String function(Locale locale) { return ""; } | /**
* This method is used to get the localized message.
*
* @param locale - A Locale object represents a specific geographical,
* political, or cultural region.
* @return - Localized error message.
*/ | This method is used to get the localized message | getLocalizedMessage | {
"repo_name": "ashokblend/incubator-carbondata",
"path": "processing/src/main/java/org/apache/carbondata/processing/graphgenerator/GraphGeneratorException.java",
"license": "apache-2.0",
"size": 2007
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 1,258,668 |
@Override
public void accept(TrainDiagramVisitor visitor) {
visitor.visit(this);
} | void function(TrainDiagramVisitor visitor) { visitor.visit(this); } | /**
* accepts visitor.
*
* @param visitor visitor
*/ | accepts visitor | accept | {
"repo_name": "jub77/grafikon",
"path": "grafikon-model/src/main/java/net/parostroj/timetable/model/NodeTrack.java",
"license": "gpl-3.0",
"size": 1425
} | [
"net.parostroj.timetable.visitors.TrainDiagramVisitor"
] | import net.parostroj.timetable.visitors.TrainDiagramVisitor; | import net.parostroj.timetable.visitors.*; | [
"net.parostroj.timetable"
] | net.parostroj.timetable; | 496,127 |
public void initializeReferences() {
int[] fields = getFieldIndices();
for (int i = 0; i < fields.length; i++) {
DcField field = getField(fields[i]);
if (field == null) continue;
if (field.getValueType() == DcRepository.ValueTypes._DCOBJE... | void function() { int[] fields = getFieldIndices(); for (int i = 0; i < fields.length; i++) { DcField field = getField(fields[i]); if (field == null) continue; if (field.getValueType() == DcRepository.ValueTypes._DCOBJECTCOLLECTION field.getValueType() == DcRepository.ValueTypes._DCOBJECTREFERENCE) { initializeReferenc... | /**
* Loads the actual reference information. Uses the Data Manager to retrieve the
* references and stores them in this object.
*/ | Loads the actual reference information. Uses the Data Manager to retrieve the references and stores them in this object | initializeReferences | {
"repo_name": "alexeq/datacrown",
"path": "datacrow-core/_source/net/datacrow/core/objects/DcObject.java",
"license": "gpl-3.0",
"size": 55666
} | [
"net.datacrow.core.DcRepository"
] | import net.datacrow.core.DcRepository; | import net.datacrow.core.*; | [
"net.datacrow.core"
] | net.datacrow.core; | 1,042,249 |
public static MozuUrl updateOrderHandlingFeeUrl()
{
UrlFormatter formatter = new UrlFormatter("/api/commerce/settings/shipping/orderhandlingfee");
return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ;
} | static MozuUrl function() { UrlFormatter formatter = new UrlFormatter(STR); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TENANT_POD) ; } | /**
* Get Resource Url for UpdateOrderHandlingFee
* @return String Resource Url
*/ | Get Resource Url for UpdateOrderHandlingFee | updateOrderHandlingFeeUrl | {
"repo_name": "carsonreinke/mozu-java-sdk",
"path": "src/main/java/com/mozu/api/urls/commerce/settings/shipping/SiteShippingHandlingFeeUrl.java",
"license": "mit",
"size": 1328
} | [
"com.mozu.api.MozuUrl",
"com.mozu.api.utils.UrlFormatter"
] | import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter; | import com.mozu.api.*; import com.mozu.api.utils.*; | [
"com.mozu.api"
] | com.mozu.api; | 1,649,315 |
@Override
protected synchronized void startInternal() throws LifecycleException {
setState(LifecycleState.STARTING);
} | synchronized void function() throws LifecycleException { setState(LifecycleState.STARTING); } | /**
* Start this component and implement the requirements
* of {@link org.apache.catalina.util.LifecycleBase#startInternal()}.
*
* @exception LifecycleException if this component detects a fatal error
* that prevents this component from being used
*/ | Start this component and implement the requirements of <code>org.apache.catalina.util.LifecycleBase#startInternal()</code> | startInternal | {
"repo_name": "apache/tomcat",
"path": "java/org/apache/catalina/valves/ValveBase.java",
"license": "apache-2.0",
"size": 6899
} | [
"org.apache.catalina.LifecycleException",
"org.apache.catalina.LifecycleState"
] | import org.apache.catalina.LifecycleException; import org.apache.catalina.LifecycleState; | import org.apache.catalina.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 2,663,230 |
public final Path createSnapshot(Path path) throws IOException {
return createSnapshot(path, null);
} | final Path function(Path path) throws IOException { return createSnapshot(path, null); } | /**
* Create a snapshot with a default name.
* @param path The directory where snapshots will be taken.
* @return the snapshot path.
*/ | Create a snapshot with a default name | createSnapshot | {
"repo_name": "ouyangjie/hadoop",
"path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java",
"license": "apache-2.0",
"size": 116983
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,213,130 |
public Value getDefaultValue() {
return ValueConstants.LTR_VALUE;
} | Value function() { return ValueConstants.LTR_VALUE; } | /**
* Implements {@link
* org.apache.batik.css.engine.value.ValueManager#getDefaultValue()}.
*/ | Implements <code>org.apache.batik.css.engine.value.ValueManager#getDefaultValue()</code> | getDefaultValue | {
"repo_name": "Uni-Sol/batik",
"path": "sources/org/apache/batik/css/engine/value/css2/DirectionManager.java",
"license": "apache-2.0",
"size": 2708
} | [
"org.apache.batik.css.engine.value.Value",
"org.apache.batik.css.engine.value.ValueConstants"
] | import org.apache.batik.css.engine.value.Value; import org.apache.batik.css.engine.value.ValueConstants; | import org.apache.batik.css.engine.value.*; | [
"org.apache.batik"
] | org.apache.batik; | 1,366,036 |
@Override
@SuppressWarnings("unchecked")
protected void refresh()
{
log.info("Initializing TenantsCache ...");
// This method must not be synchronized because it works with a new copy of maps.
final List<TenantDO> list = (List<TenantDO>) hibernateTemplate
.find("from TenantDO as tenant left ... | @SuppressWarnings(STR) void function() { log.info(STR); final List<TenantDO> list = (List<TenantDO>) hibernateTemplate .find(STR); final Map<Integer, Set<TenantDO>> map = new HashMap<Integer, Set<TenantDO>>(); final Collection<PFUserDO> users = TenantRegistryMap.getInstance().getTenantRegistry().getUserGroupCache() .ge... | /**
* This method will be called by CacheHelper and is synchronized via getData();
*/ | This method will be called by CacheHelper and is synchronized via getData() | refresh | {
"repo_name": "FlowsenAusMonotown/projectforge",
"path": "projectforge-business/src/main/java/org/projectforge/business/multitenancy/TenantsCache.java",
"license": "gpl-3.0",
"size": 7119
} | [
"java.util.Collection",
"java.util.HashMap",
"java.util.List",
"java.util.Map",
"java.util.Set",
"java.util.TreeSet",
"org.projectforge.framework.persistence.user.entities.PFUserDO",
"org.projectforge.framework.persistence.user.entities.TenantDO"
] | import java.util.Collection; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import java.util.TreeSet; import org.projectforge.framework.persistence.user.entities.PFUserDO; import org.projectforge.framework.persistence.user.entities.TenantDO; | import java.util.*; import org.projectforge.framework.persistence.user.entities.*; | [
"java.util",
"org.projectforge.framework"
] | java.util; org.projectforge.framework; | 2,342,531 |
private static boolean isConnectionUpgrade(HttpMethod method) {
Header connectionHeader = method.getRequestHeader("connection");
if (connectionHeader == null) {
return false;
}
return connectionHeader.getValue().toLowerCase().contains("upgrade");
} | static boolean function(HttpMethod method) { Header connectionHeader = method.getRequestHeader(STR); if (connectionHeader == null) { return false; } return connectionHeader.getValue().toLowerCase().contains(STR); } | /**
* Tells whether or not the given {@code method} has a {@code Connection} request header with {@code Upgrade} value.
*
* @param method the method that will be checked
* @return {@code true} if the {@code method} has a connection upgrade, {@code false} otherwise
*/ | Tells whether or not the given method has a Connection request header with Upgrade value | isConnectionUpgrade | {
"repo_name": "GillesMoris/OSS",
"path": "src/org/parosproxy/paros/network/HttpSender.java",
"license": "apache-2.0",
"size": 39289
} | [
"org.apache.commons.httpclient.Header",
"org.apache.commons.httpclient.HttpMethod"
] | import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.HttpMethod; | import org.apache.commons.httpclient.*; | [
"org.apache.commons"
] | org.apache.commons; | 1,654,976 |
//-----------------------------------------------------------------------
public static java.sql.Timestamp now()
{
return new java.sql.Timestamp(new java.util.Date().getTime());
}
| static java.sql.Timestamp function() { return new java.sql.Timestamp(new java.util.Date().getTime()); } | /**
* Returns a java.sql.Timestamp equal to the current time
**/ | Returns a java.sql.Timestamp equal to the current time | now | {
"repo_name": "yl23250/demo",
"path": "ylpro/ylpro-vo/src/main/java/com/base/util/DateUtil.java",
"license": "epl-1.0",
"size": 79238
} | [
"java.sql.Timestamp",
"java.util.Date"
] | import java.sql.Timestamp; import java.util.Date; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 1,656,374 |
@Deprecated
public void setDefaultInteger(int newDefaultInteger) {
defaultInteger = new Integer(newDefaultInteger);
register(new IntegerConverter(defaultInteger), Integer.TYPE);
register(new IntegerConverter(defaultInteger), Integer.class);
}
@Deprecated
private Long d... | void function(int newDefaultInteger) { defaultInteger = new Integer(newDefaultInteger); register(new IntegerConverter(defaultInteger), Integer.TYPE); register(new IntegerConverter(defaultInteger), Integer.class); } private Long defaultLong = new Long(0); | /**
* Sets the default value for Integer conversions.
* @param newDefaultInteger The default Integer value
* @deprecated Register replacement converters for Integer.TYPE and
* Integer.class instead
*/ | Sets the default value for Integer conversions | setDefaultInteger | {
"repo_name": "77ilogin/training",
"path": "src/main/java/org/apache/commons/beanutils/ConvertUtilsBean.java",
"license": "apache-2.0",
"size": 37898
} | [
"org.apache.commons.beanutils.converters.IntegerConverter"
] | import org.apache.commons.beanutils.converters.IntegerConverter; | import org.apache.commons.beanutils.converters.*; | [
"org.apache.commons"
] | org.apache.commons; | 487,918 |
public void setGroupesDroits(List<CampagneGroupeDroits> groupesDroits) {
this.groupesDroits = groupesDroits;
} | void function(List<CampagneGroupeDroits> groupesDroits) { this.groupesDroits = groupesDroits; } | /**
* groupesDroits setter
*
* @param groupesDroits groupesDroits
*/ | groupesDroits setter | setGroupesDroits | {
"repo_name": "acheype/cantharella",
"path": "cantharella.data/src/main/java/nc/ird/cantharella/data/model/Campagne.java",
"license": "agpl-3.0",
"size": 10813
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,668,470 |
private IN deleteDupSubtree(byte[] idKey,
BIN bin,
int index)
throws DatabaseException,
NodeNotEmptyException,
CursorsExistException {
EnvironmentImpl envImpl = database.getDbEnvironment();
boole... | IN function(byte[] idKey, BIN bin, int index) throws DatabaseException, NodeNotEmptyException, CursorsExistException { EnvironmentImpl envImpl = database.getDbEnvironment(); boolean dupCountLNLocked = false; DupCountLN dcl = null; BasicLocker locker = new BasicLocker(envImpl); DIN duplicateRoot = (DIN) bin.fetchTarget(... | /**
* We enter and leave this method with 'bin' latched.
* @return the root of the subtree we have deleted, so it can be
* properly accounted for. May be null if nothing was deleted.
*/ | We enter and leave this method with 'bin' latched | deleteDupSubtree | {
"repo_name": "ckaestne/CIDE",
"path": "CIDE_Samples/cide_samples/Berkeley DB JE/src/com/sleepycat/je/tree/Tree.java",
"license": "gpl-3.0",
"size": 131570
} | [
"com.sleepycat.je.DatabaseException",
"com.sleepycat.je.dbi.EnvironmentImpl",
"com.sleepycat.je.log.LogManager",
"com.sleepycat.je.txn.BasicLocker",
"com.sleepycat.je.txn.LockGrantType",
"com.sleepycat.je.txn.LockResult",
"com.sleepycat.je.txn.LockType",
"java.util.ArrayList"
] | import com.sleepycat.je.DatabaseException; import com.sleepycat.je.dbi.EnvironmentImpl; import com.sleepycat.je.log.LogManager; import com.sleepycat.je.txn.BasicLocker; import com.sleepycat.je.txn.LockGrantType; import com.sleepycat.je.txn.LockResult; import com.sleepycat.je.txn.LockType; import java.util.ArrayList; | import com.sleepycat.je.*; import com.sleepycat.je.dbi.*; import com.sleepycat.je.log.*; import com.sleepycat.je.txn.*; import java.util.*; | [
"com.sleepycat.je",
"java.util"
] | com.sleepycat.je; java.util; | 2,649,215 |
@SideOnly(Side.CLIENT)
public Item getItem(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_)
{
return this.func_149866_i();
} | @SideOnly(Side.CLIENT) Item function(World p_149694_1_, int p_149694_2_, int p_149694_3_, int p_149694_4_) { return this.func_149866_i(); } | /**
* Gets an item for the block being called on. Args: world, x, y, z
*/ | Gets an item for the block being called on. Args: world, x, y, z | getItem | {
"repo_name": "cman8396/Arcane-Plantation",
"path": "src/main/java/com/cman8396/arcplant/block/crop/BlockCropEmerald.java",
"license": "gpl-3.0",
"size": 7148
} | [
"net.minecraft.item.Item",
"net.minecraft.world.World"
] | import net.minecraft.item.Item; import net.minecraft.world.World; | import net.minecraft.item.*; import net.minecraft.world.*; | [
"net.minecraft.item",
"net.minecraft.world"
] | net.minecraft.item; net.minecraft.world; | 423,461 |
public Search limitSearchScope(Scope scope) {
limitValueForKey(FIELD_SCOPE, scope.name().toLowerCase(Locale.US));
return this;
} | Search function(Scope scope) { limitValueForKey(FIELD_SCOPE, scope.name().toLowerCase(Locale.US)); return this; } | /**
* limit search scope. Please check
* https://developers.box.com/docs/#search for details.
*/ | limit search scope. Please check HREF for details | limitSearchScope | {
"repo_name": "brianytang/box-android-sdk",
"path": "box-content-sdk/src/main/java/com/box/androidsdk/content/requests/BoxRequestsSearch.java",
"license": "apache-2.0",
"size": 12504
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 886,265 |
public void clear() {
for (Iterator<BitmapItem> iter = mBitmapItems.iterator(); iter
.hasNext();) {
iter.next().bitmap.recycle();
}
mBitmapItems.clear();
Log.i(TAG, String.format("All Bitmap recycled"));
} | void function() { for (Iterator<BitmapItem> iter = mBitmapItems.iterator(); iter .hasNext();) { iter.next().bitmap.recycle(); } mBitmapItems.clear(); Log.i(TAG, String.format(STR)); } | /**
* Method clear(). It've used fo clear all of objects into the Pool of
* Images. removing all of items of the Pool.
*/ | Method clear(). It've used fo clear all of objects into the Pool of Images. removing all of items of the Pool | clear | {
"repo_name": "PhamPhi/birdy_task",
"path": "src/com/frm/bdTask/utils/BitmapUtil.java",
"license": "gpl-2.0",
"size": 6023
} | [
"android.util.Log",
"java.util.Iterator"
] | import android.util.Log; import java.util.Iterator; | import android.util.*; import java.util.*; | [
"android.util",
"java.util"
] | android.util; java.util; | 578,344 |
private void initAcceleratorTable() {
// setting up the accelerator table. we have two possibilities: either assigning
// accelerator keys directly with an action like this:
//
// javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(zettelkasten.Zettelka... | void function() { javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(de.danielluedecke.zettelkasten.ZettelkastenApp.class). getContext().getActionMap(SearchResultsFrame.class, this); for (int cnt=1; cnt<=accKeys.getCount(AcceleratorKeys.SEARCHRESULTSKEYS); cnt++) { String actionname = ac... | /**
* This method sets the accelerator table for all relevant actions which should have
* accelerator keys. We don't use the GUI designer to set the values, because the user
* should have the possibility to define own accelerator keys, which are managed
* within the CAcceleratorKeys-class and loaed/... | This method sets the accelerator table for all relevant actions which should have accelerator keys. We don't use the GUI designer to set the values, because the user should have the possibility to define own accelerator keys, which are managed within the CAcceleratorKeys-class and loaed/saved via the CSettings-class | initAcceleratorTable | {
"repo_name": "ct2034/Zettelkasten",
"path": "src/de/danielluedecke/zettelkasten/SearchResultsFrame.java",
"license": "gpl-3.0",
"size": 146891
} | [
"de.danielluedecke.zettelkasten.database.AcceleratorKeys",
"de.danielluedecke.zettelkasten.util.PlatformUtil",
"javax.swing.AbstractAction",
"javax.swing.KeyStroke"
] | import de.danielluedecke.zettelkasten.database.AcceleratorKeys; import de.danielluedecke.zettelkasten.util.PlatformUtil; import javax.swing.AbstractAction; import javax.swing.KeyStroke; | import de.danielluedecke.zettelkasten.database.*; import de.danielluedecke.zettelkasten.util.*; import javax.swing.*; | [
"de.danielluedecke.zettelkasten",
"javax.swing"
] | de.danielluedecke.zettelkasten; javax.swing; | 2,090,352 |
void markCollapsed(int numRequestsCollapsedToBatch) {
eventNotifier.markEvent(HystrixEventType.COLLAPSED, key);
counter.add(HystrixRollingNumberEvent.COLLAPSED, numRequestsCollapsedToBatch);
} | void markCollapsed(int numRequestsCollapsedToBatch) { eventNotifier.markEvent(HystrixEventType.COLLAPSED, key); counter.add(HystrixRollingNumberEvent.COLLAPSED, numRequestsCollapsedToBatch); } | /**
* When a command is fronted by an {@link HystrixCollapser} then this marks how many requests are collapsed into the single command execution.
*
* @param numRequestsCollapsedToBatch number of requests which got batched
*/ | When a command is fronted by an <code>HystrixCollapser</code> then this marks how many requests are collapsed into the single command execution | markCollapsed | {
"repo_name": "npccsb/Hystrix",
"path": "hystrix-core/src/main/java/com/netflix/hystrix/HystrixCommandMetrics.java",
"license": "apache-2.0",
"size": 21573
} | [
"com.netflix.hystrix.util.HystrixRollingNumberEvent"
] | import com.netflix.hystrix.util.HystrixRollingNumberEvent; | import com.netflix.hystrix.util.*; | [
"com.netflix.hystrix"
] | com.netflix.hystrix; | 860,816 |
final byte[] generateBytes() throws UnableToProxyException {
if(!!!done) {
for(Class<?> c : interfaces) {
adapter.setCurrentMethodDeclaringType(Type.getType(c), true);
try {
AbstractWovenProxyAdapter.readClass(c, this);
} catch (IOException e) {
throw new U... | final byte[] generateBytes() throws UnableToProxyException { if(!!!done) { for(Class<?> c : interfaces) { adapter.setCurrentMethodDeclaringType(Type.getType(c), true); try { AbstractWovenProxyAdapter.readClass(c, this); } catch (IOException e) { throw new UnableToProxyException(c, e); } } Class<?> clazz = superclass; w... | /**
* Generate the byte[] for our class
* @return
* @throws UnableToProxyException
*/ | Generate the byte[] for our class | generateBytes | {
"repo_name": "apache/aries",
"path": "proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/interfaces/InterfaceCombiningClassAdapter.java",
"license": "apache-2.0",
"size": 6805
} | [
"java.io.IOException",
"java.lang.reflect.Modifier",
"org.apache.aries.proxy.UnableToProxyException",
"org.apache.aries.proxy.impl.common.AbstractWovenProxyAdapter",
"org.objectweb.asm.Type"
] | import java.io.IOException; import java.lang.reflect.Modifier; import org.apache.aries.proxy.UnableToProxyException; import org.apache.aries.proxy.impl.common.AbstractWovenProxyAdapter; import org.objectweb.asm.Type; | import java.io.*; import java.lang.reflect.*; import org.apache.aries.proxy.*; import org.apache.aries.proxy.impl.common.*; import org.objectweb.asm.*; | [
"java.io",
"java.lang",
"org.apache.aries",
"org.objectweb.asm"
] | java.io; java.lang; org.apache.aries; org.objectweb.asm; | 1,293,883 |
public static <T> JSONObject getJsonFromObject(T t)
throws IllegalAccessException, InstantiationException, InvocationTargetException {
Field[] fields = AnnotationUtils.filterDeepFields(t.getClass());
JSONObject json = new JSONObject();
for (Field field : fields) {
M... | static <T> JSONObject function(T t) throws IllegalAccessException, InstantiationException, InvocationTargetException { Field[] fields = AnnotationUtils.filterDeepFields(t.getClass()); JSONObject json = new JSONObject(); for (Field field : fields) { Method method = Utils.findGetter(field.getName(), t.getClass()); Object... | /**
* converts from an entity class with deep's anotations to JSONObject.
*
* @param t an instance of an object of type T to convert to JSONObject.
* @param <T> the type of the object to convert.
* @return the provided object converted to JSONObject.
* @throws IllegalAccessException
... | converts from an entity class with deep's anotations to JSONObject | getJsonFromObject | {
"repo_name": "Stratio/deep-spark",
"path": "deep-elasticsearch/src/main/java/com/stratio/deep/es/utils/UtilES.java",
"license": "apache-2.0",
"size": 16729
} | [
"com.stratio.deep.commons.entity.IDeepType",
"com.stratio.deep.commons.utils.AnnotationUtils",
"com.stratio.deep.commons.utils.Utils",
"java.lang.reflect.Field",
"java.lang.reflect.InvocationTargetException",
"java.lang.reflect.Method",
"java.util.ArrayList",
"java.util.Collection",
"java.util.Itera... | import com.stratio.deep.commons.entity.IDeepType; import com.stratio.deep.commons.utils.AnnotationUtils; import com.stratio.deep.commons.utils.Utils; import java.lang.reflect.Field; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.Collecti... | import com.stratio.deep.commons.entity.*; import com.stratio.deep.commons.utils.*; import java.lang.reflect.*; import java.util.*; import org.json.simple.*; | [
"com.stratio.deep",
"java.lang",
"java.util",
"org.json.simple"
] | com.stratio.deep; java.lang; java.util; org.json.simple; | 1,961,016 |
public void testReadGrantEntry_IOException() throws Exception {
try {
scanner.readGrantEntry(getFailingST(""));
fail("IOException is intercepted");
} catch (IOException ok) {
assertEquals(IO_ERROR, ok.getMessage());
}
} | void function() throws Exception { try { scanner.readGrantEntry(getFailingST(STRIOException is intercepted"); } catch (IOException ok) { assertEquals(IO_ERROR, ok.getMessage()); } } | /**
* Tests that readGrantEntry() throws IOException if stream fails.
*/ | Tests that readGrantEntry() throws IOException if stream fails | testReadGrantEntry_IOException | {
"repo_name": "freeVM/freeVM",
"path": "enhanced/java/classlib/modules/security/src/test/impl/java.injected/org/apache/harmony/security/DefaultPolicyScannerTest.java",
"license": "apache-2.0",
"size": 21299
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 363,156 |
@ActionDoc(text = "Sends a message with an attachment to an XMPP user.")
static public boolean sendXMPP(@ParamDoc(name = "to") String to, @ParamDoc(name = "message") String message,
@ParamDoc(name = "attachmentUrl") String attachmentUrl) {
boolean success = false;
try {
... | @ActionDoc(text = STR) static boolean function(@ParamDoc(name = "to") String to, @ParamDoc(name = STR) String message, @ParamDoc(name = STR) String attachmentUrl) { boolean success = false; try { XMPPConnection conn = XMPPConnect.getConnection(); | /**
* Sends a message with an attachment to an XMPP user.
*
* @param to the XMPP address to send the message to
* @param message the message to send
* @param attachmentUrl a URL string of which the content should be send to the user
*
* @return <code>true</code>, if sending the mess... | Sends a message with an attachment to an XMPP user | sendXMPP | {
"repo_name": "idserda/openhab",
"path": "bundles/action/org.openhab.action.xmpp/src/main/java/org/openhab/action/xmpp/internal/XMPP.java",
"license": "epl-1.0",
"size": 7243
} | [
"org.jivesoftware.smack.XMPPConnection",
"org.openhab.core.scriptengine.action.ActionDoc",
"org.openhab.core.scriptengine.action.ParamDoc"
] | import org.jivesoftware.smack.XMPPConnection; import org.openhab.core.scriptengine.action.ActionDoc; import org.openhab.core.scriptengine.action.ParamDoc; | import org.jivesoftware.smack.*; import org.openhab.core.scriptengine.action.*; | [
"org.jivesoftware.smack",
"org.openhab.core"
] | org.jivesoftware.smack; org.openhab.core; | 1,296,335 |
private void setDays(BitSet bits, String field, int max) {
if (field.contains("?")) {
field = "*";
}
setNumberHits(bits, field, 0, max);
} | void function(BitSet bits, String field, int max) { if (field.contains("?")) { field = "*"; } setNumberHits(bits, field, 0, max); } | /**
* Sets the days.
*
* @param bits the bits
* @param field the field
* @param max the max
*/ | Sets the days | setDays | {
"repo_name": "BartRobeyns/audit4j-core",
"path": "src/main/java/org/audit4j/core/schedule/CronSequenceGenerator.java",
"license": "apache-2.0",
"size": 15617
} | [
"java.util.BitSet"
] | import java.util.BitSet; | import java.util.*; | [
"java.util"
] | java.util; | 1,943,431 |
private static boolean checkEndpointSecurityPasswordEnabled(String tenantDomainName) throws APIManagementException {
JSONObject apiTenantConfig;
try {
APIMRegistryServiceImpl apimRegistryService = new APIMRegistryServiceImpl();
String content = apimRegistryService.getConfigR... | static boolean function(String tenantDomainName) throws APIManagementException { JSONObject apiTenantConfig; try { APIMRegistryServiceImpl apimRegistryService = new APIMRegistryServiceImpl(); String content = apimRegistryService.getConfigRegistryResourceContent(tenantDomainName, APIConstants.API_TENANT_CONF_LOCATION); ... | /**
* This method used to check whether the config for exposing endpoint security password when getting API is enabled
* or not in tenant-config.json in registry.
*
* @return boolean as config enabled or not
* @throws APIManagementException
*/ | This method used to check whether the config for exposing endpoint security password when getting API is enabled or not in tenant-config.json in registry | checkEndpointSecurityPasswordEnabled | {
"repo_name": "Rajith90/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/APIMappingUtil.java",
"license": "apache-2.0",
"size": 148163
} | [
"org.json.simple.JSONObject",
"org.json.simple.parser.JSONParser",
"org.json.simple.parser.ParseException",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.impl.APIConstants",
"org.wso2.carbon.apimgt.impl.APIMRegistryServiceImpl",
"org.wso2.carbon.registry.core.exceptions.Re... | import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.impl.APIConstants; import org.wso2.carbon.apimgt.impl.APIMRegistryServiceImpl; import org.wso2.carbon.registr... | import org.json.simple.*; import org.json.simple.parser.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.registry.core.exceptions.*; import org.wso2.carbon.user.api.*; | [
"org.json.simple",
"org.wso2.carbon"
] | org.json.simple; org.wso2.carbon; | 1,718,707 |
public static void deleteDirectory(File file) {
if (file.isDirectory()) {
File[] files = file.listFiles();
for (int i = 0; i < files.length; i++) {
deleteDirectory(files[i]);
}
}
if (file.exists()) {
assertTrue(file.delete(), "... | static void function(File file) { if (file.isDirectory()) { File[] files = file.listFiles(); for (int i = 0; i < files.length; i++) { deleteDirectory(files[i]); } } if (file.exists()) { assertTrue(file.delete(), STR + file.getAbsolutePath() + STR); } } | /**
* Recursively delete a directory, useful to zapping test data
*
* @param file the directory to be deleted
*/ | Recursively delete a directory, useful to zapping test data | deleteDirectory | {
"repo_name": "cexbrayat/camel",
"path": "components/camel-testng/src/main/java/org/apache/camel/testng/TestSupport.java",
"license": "apache-2.0",
"size": 17582
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 401,252 |
private boolean checkNetworkAvailability(Proxy proxy) {
try {
LOGGER.debug("Test network with "+REACH_TEST_URL);
lastCheckTime = System.currentTimeMillis();
URL urlForTest = new URL(REACH_TEST_URL);
URLConnection testConnection = urlForTest.openConnection(proxy);
testConnection.connect();
... | boolean function(Proxy proxy) { try { LOGGER.debug(STR+REACH_TEST_URL); lastCheckTime = System.currentTimeMillis(); URL urlForTest = new URL(REACH_TEST_URL); URLConnection testConnection = urlForTest.openConnection(proxy); testConnection.connect(); lastCheckResult = true; } catch (Exception e) { LOGGER.error(e); lastCh... | /**
* Check availability and update private members
* @param proxy The proxy server to be used
* @return Network availability
*/ | Check availability and update private members | checkNetworkAvailability | {
"repo_name": "Marthym/jtomtom",
"path": "jtomtom/src/main/java/org/jtomtom/tools/NetworkTester.java",
"license": "gpl-3.0",
"size": 4510
} | [
"java.net.Proxy",
"java.net.URLConnection"
] | import java.net.Proxy; import java.net.URLConnection; | import java.net.*; | [
"java.net"
] | java.net; | 1,259,615 |
public Range getYRange(); | Range function(); | /**
* The range along y.
* <p>
* Effectively the first and last elements of {@link #getYBoundaries()}.
* If no cells are defined, it will return null.
*
* @return the range along y; null if 0 cells are defined
*/ | The range along y. Effectively the first and last elements of <code>#getYBoundaries()</code>. If no cells are defined, it will return null | getYRange | {
"repo_name": "diirt/diirt",
"path": "graphene/graphene/src/main/java/org/diirt/graphene/Cell2DDataset.java",
"license": "mit",
"size": 2910
} | [
"org.diirt.util.stats.Range"
] | import org.diirt.util.stats.Range; | import org.diirt.util.stats.*; | [
"org.diirt.util"
] | org.diirt.util; | 1,462,408 |
boolean thanksExist(Thanks thanks); | boolean thanksExist(Thanks thanks); | /**
* Check if same Thanks exists by ID or OwnerId,PublicationId combination.
*
* @param thanks Thanks to check by
* @return TRUE = Thanks for same Owner and Publication or with same ID exists / FALSE = Same Thanks not found
* @throws InternalErrorException When implementation fails
*/ | Check if same Thanks exists by ID or OwnerId,PublicationId combination | thanksExist | {
"repo_name": "zlamalp/perun",
"path": "perun-cabinet/src/main/java/cz/metacentrum/perun/cabinet/bl/ThanksManagerBl.java",
"license": "bsd-2-clause",
"size": 2649
} | [
"cz.metacentrum.perun.cabinet.model.Thanks"
] | import cz.metacentrum.perun.cabinet.model.Thanks; | import cz.metacentrum.perun.cabinet.model.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 1,766,445 |
//<editor-fold defaultstate="collapsed" desc=" Common updater methods ">
public void gameOver() {
level.getLeaderNest().blastUpdate();
SpecialFX rocketFire=null;
Iterator<Billboard> bit = billboards.iterator();
while(bit.hasNext()) {
Billboard b = bit.next();
if(b.getClass()==SpecialFX.class && ((Spec... | void function() { level.getLeaderNest().blastUpdate(); SpecialFX rocketFire=null; Iterator<Billboard> bit = billboards.iterator(); while(bit.hasNext()) { Billboard b = bit.next(); if(b.getClass()==SpecialFX.class && ((SpecialFX)b).isEffect(STR)) { rocketFire = (SpecialFX)b; break; } } if(rocketFire!=null) { rocketFire.... | /**
* Is called as the update method for single and client games when the game is over
*/ | Is called as the update method for single and client games when the game is over | gameOver | {
"repo_name": "davidsundelius/Muloks",
"path": "mouserunner/Game/Game.java",
"license": "gpl-2.0",
"size": 39161
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,853,124 |
private void createHeader() {
TitleAndDescriptionComposite td = new TitleAndDescriptionComposite(mainComposite);
td.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1));
td.setTitle(Messages.FleissnerWindow_title);
td.setDescription(Messages.FleissnerWindow_subtitle); //$NON-NLS-1$
// td.setDe... | void function() { TitleAndDescriptionComposite td = new TitleAndDescriptionComposite(mainComposite); td.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 2, 1)); td.setTitle(Messages.FleissnerWindow_title); td.setDescription(Messages.FleissnerWindow_subtitle); } | /**
* Creates the header and short description at the top of the plugin
*
* @param parent
*/ | Creates the header and short description at the top of the plugin | createHeader | {
"repo_name": "jcryptool/crypto",
"path": "org.jcryptool.analysis.fleissner/src/org/jcryptool/analysis/fleissner/UI/FleissnerWindow.java",
"license": "epl-1.0",
"size": 76273
} | [
"org.eclipse.swt.layout.GridData",
"org.jcryptool.core.util.ui.TitleAndDescriptionComposite"
] | import org.eclipse.swt.layout.GridData; import org.jcryptool.core.util.ui.TitleAndDescriptionComposite; | import org.eclipse.swt.layout.*; import org.jcryptool.core.util.ui.*; | [
"org.eclipse.swt",
"org.jcryptool.core"
] | org.eclipse.swt; org.jcryptool.core; | 877,685 |
EOperation getSDPLocation__Perform_FWD__IsApplicableMatch(); | EOperation getSDPLocation__Perform_FWD__IsApplicableMatch(); | /**
* Returns the meta object for the '{@link rgse.ttc17.emoflon.tgg.task2.Rules.SDPLocation#perform_FWD(org.moflon.tgg.runtime.IsApplicableMatch) <em>Perform FWD</em>}' operation.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the '<em>Perform FWD</em>' operation.
* @see rgse... | Returns the meta object for the '<code>rgse.ttc17.emoflon.tgg.task2.Rules.SDPLocation#perform_FWD(org.moflon.tgg.runtime.IsApplicableMatch) Perform FWD</code>' operation. | getSDPLocation__Perform_FWD__IsApplicableMatch | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/eMoflon/rgse.ttc17.emoflon.tgg.task2/gen/rgse/ttc17/emoflon/tgg/task2/Rules/RulesPackage.java",
"license": "mit",
"size": 437406
} | [
"org.eclipse.emf.ecore.EOperation"
] | import org.eclipse.emf.ecore.EOperation; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,727,690 |
public Webhook.Filter byCreatedAt( Date date, Date endDate ) {
this.createdAt = DateRangeBuilder.execute( date, endDate );
return this;
}
}
public final static class Order {
@SnakeCase( "url" )
private boolean url;
@SnakeCase( "email" )
private boolean email;
@SnakeCase( ... | Webhook.Filter function( Date date, Date endDate ) { this.createdAt = DateRangeBuilder.execute( date, endDate ); return this; } } public final static class Order { @SnakeCase( "url" ) private boolean url; @SnakeCase( "email" ) private boolean email; @SnakeCase( STR ) private boolean createdAt; @SnakeCase( value = "asc"... | /**
* Creates filter for createdAt date. If endDate is given the filter is set for range from date to endDate. If endDate is
* <code>null</code> the filter search for exact match.
* @param date
* Start or exact date
* @param endDate
* End date for the period or <code>null... | Creates filter for createdAt date. If endDate is given the filter is set for range from date to endDate. If endDate is <code>null</code> the filter search for exact match | byCreatedAt | {
"repo_name": "vladaspasic/paymill-java",
"path": "src/main/java/com/paymill/models/Webhook.java",
"license": "mit",
"size": 11127
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 2,041,066 |
List<? extends ProjectConfig> remote = getProjects();
// check on removed
List <ProjectConfig> removed = new ArrayList<>();
for(ProjectConfig r : remote) {
if(projectRegistry.getProject(r.getPath()) == null)
removed.add(r);
}
for(ProjectConf... | List<? extends ProjectConfig> remote = getProjects(); List <ProjectConfig> removed = new ArrayList<>(); for(ProjectConfig r : remote) { if(projectRegistry.getProject(r.getPath()) == null) removed.add(r); } for(ProjectConfig r : removed) removeProject(r); for(RegisteredProject project : projectRegistry.getProjects()) { ... | /**
* Synchronizes Project Config state on Agent and Master
* @param projectRegistry project registry
* @throws ServerException
*/ | Synchronizes Project Config state on Agent and Master | sync | {
"repo_name": "kaloyan-raev/che",
"path": "wsagent/che-core-api-project/src/main/java/org/eclipse/che/api/project/server/WorkspaceProjectsSyncer.java",
"license": "epl-1.0",
"size": 3674
} | [
"java.util.ArrayList",
"java.util.List",
"org.eclipse.che.api.core.model.project.ProjectConfig"
] | import java.util.ArrayList; import java.util.List; import org.eclipse.che.api.core.model.project.ProjectConfig; | import java.util.*; import org.eclipse.che.api.core.model.project.*; | [
"java.util",
"org.eclipse.che"
] | java.util; org.eclipse.che; | 1,628,422 |
@ServiceMethod(returns = ReturnType.SINGLE)
public void delete(String resourceGroupName, String loadBalancerName) {
deleteAsync(resourceGroupName, loadBalancerName).block();
} | @ServiceMethod(returns = ReturnType.SINGLE) void function(String resourceGroupName, String loadBalancerName) { deleteAsync(resourceGroupName, loadBalancerName).block(); } | /**
* Deletes the specified load balancer.
*
* @param resourceGroupName The name of the resource group.
* @param loadBalancerName The name of the load balancer.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws ManagementException thrown if the request ... | Deletes the specified load balancer | delete | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/LoadBalancersClientImpl.java",
"license": "mit",
"size": 67687
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; | import com.azure.core.annotation.*; | [
"com.azure.core"
] | com.azure.core; | 2,782,597 |
public ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String ddosProtectionPlanName, final ServiceCallback<Void> serviceCallback) {
return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, ddosProtectionPlanName), serviceCallback);
} | ServiceFuture<Void> function(String resourceGroupName, String ddosProtectionPlanName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, ddosProtectionPlanName), serviceCallback); } | /**
* Deletes the specified DDoS protection plan.
*
* @param resourceGroupName The name of the resource group.
* @param ddosProtectionPlanName The name of the DDoS protection plan.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws Illeg... | Deletes the specified DDoS protection plan | beginDeleteAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2018_12_01/src/main/java/com/microsoft/azure/management/network/v2018_12_01/implementation/DdosProtectionPlansInner.java",
"license": "mit",
"size": 55944
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,219,522 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.