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
@ServiceMethod(returns = ReturnType.SINGLE) public Response<DatabaseVulnerabilityAssessmentRuleBaselineInner> getWithResponse( String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId...
@ServiceMethod(returns = ReturnType.SINGLE) Response<DatabaseVulnerabilityAssessmentRuleBaselineInner> function( String resourceGroupName, String managedInstanceName, String databaseName, VulnerabilityAssessmentName vulnerabilityAssessmentName, String ruleId, VulnerabilityAssessmentPolicyBaselineName baselineName, Cont...
/** * Gets a database's vulnerability assessment rule baseline. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instanc...
Gets a database's vulnerability assessment rule baseline
getWithResponse
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/ManagedDatabaseVulnerabilityAssessmentRuleBaselinesClientImpl.java", "license": "mit", "size": 50000 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.sql.fluent.models.DatabaseVulnerabilityAssessmentRuleBaselineInner", "com.azure.resourcemanager.sql.models.VulnerabilityAssessme...
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.sql.fluent.models.DatabaseVulnerabilityAssessmentRuleBaselineInner; import com.azure.resourcemanager.sql.models.Vuln...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.sql.fluent.models.*; import com.azure.resourcemanager.sql.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,547,963
private String toString(Node obj) { String ret; try { ret = obj.toString(); } catch (RuntimeException e) { // including ClassFormatException, trying to convert the "signature" of a ReturnaddressType LocalVariable (shouldn't occur, but people do crazy things) S...
String function(Node obj) { String ret; try { ret = obj.toString(); } catch (RuntimeException e) { String s = obj.getClass().getName(); s = s.substring(s.lastIndexOf(".") + 1); ret = "<<" + s + ">>"; } return ret; }
/** * Returns the String representation of the Node object obj; * this is obj.toString() if it does not throw any RuntimeException, * or else it is a string derived only from obj's class name. */
Returns the String representation of the Node object obj; this is obj.toString() if it does not throw any RuntimeException, or else it is a string derived only from obj's class name
toString
{ "repo_name": "treejames/JMD", "path": "src/org/apache/bcel/verifier/statics/StringRepresentation.java", "license": "mit", "size": 8445 }
[ "org.apache.bcel.classfile.Node" ]
import org.apache.bcel.classfile.Node;
import org.apache.bcel.classfile.*;
[ "org.apache.bcel" ]
org.apache.bcel;
1,214,814
public void removeAllProperties(String itemId) throws DAOException { // use this method to remove all properties associated to the item }
void function(String itemId) throws DAOException { }
/** * Removes all properties for the given item identifier. * * @param itemId the identifier for which remove all properties * @throws DAOException if an error occurs during deletion */
Removes all properties for the given item identifier
removeAllProperties
{ "repo_name": "accesstest3/cfunambol", "path": "modules/foundation/foundation-core/src/main/java/com/funambol/foundation/items/dao/EntityDAO.java", "license": "agpl-3.0", "size": 16061 }
[ "com.funambol.foundation.exception.DAOException" ]
import com.funambol.foundation.exception.DAOException;
import com.funambol.foundation.exception.*;
[ "com.funambol.foundation" ]
com.funambol.foundation;
2,469,536
public static ims.ocs_if.vo.IfLocParentVo insert(DomainObjectMap map, ims.ocs_if.vo.IfLocParentVo valueObject, ims.core.resource.place.domain.objects.Location domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map = new DomainObjectMap(); } ...
static ims.ocs_if.vo.IfLocParentVo function(DomainObjectMap map, ims.ocs_if.vo.IfLocParentVo valueObject, ims.core.resource.place.domain.objects.Location domainObject) { if (null == domainObject) { return valueObject; } if (null == map) { map = new DomainObjectMap(); } valueObject.setID_Location(domainObject.getId()); ...
/** * Update the ValueObject with the Domain Object. * @param map DomainObjectMap of DomainObjects to already created ValueObjects. * @param valueObject to be updated * @param domainObject ims.core.resource.place.domain.objects.Location */
Update the ValueObject with the Domain Object
insert
{ "repo_name": "IMS-MAXIMS/openMAXIMS", "path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/ocs_if/vo/domain/IfLocParentVoAssembler.java", "license": "agpl-3.0", "size": 21942 }
[ "org.hibernate.proxy.HibernateProxy" ]
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.*;
[ "org.hibernate.proxy" ]
org.hibernate.proxy;
2,041,151
@Nonnull public NamedLocationCollectionRequest filter(@Nonnull final String value) { addFilterOption(value); return this; }
NamedLocationCollectionRequest function(@Nonnull final String value) { addFilterOption(value); return this; }
/** * Sets the filter clause for the request * * @param value the filter clause * @return the updated request */
Sets the filter clause for the request
filter
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/NamedLocationCollectionRequest.java", "license": "mit", "size": 5803 }
[ "com.microsoft.graph.requests.NamedLocationCollectionRequest", "javax.annotation.Nonnull" ]
import com.microsoft.graph.requests.NamedLocationCollectionRequest; import javax.annotation.Nonnull;
import com.microsoft.graph.requests.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
598,548
private void runAkkaStats() { List<Scanner> scanners = null; try { SourceType sourceType = modelConfig.getDataSet().getSource(); // the bug is caused when merging code? please take care scanners = ShifuFileUtils.getDataScanners( ShifuFileUtils...
void function() { List<Scanner> scanners = null; try { SourceType sourceType = modelConfig.getDataSet().getSource(); scanners = ShifuFileUtils.getDataScanners( ShifuFileUtils.expandPath(modelConfig.getDataSetRawPath(), sourceType), sourceType); } catch (IOException e) { throw new ShifuException(ShifuErrorCode.ERROR_INP...
/** * run akka stats */
run akka stats
runAkkaStats
{ "repo_name": "aglne/shifu", "path": "src/main/java/ml/shifu/shifu/core/processor/StatsModelProcessor.java", "license": "apache-2.0", "size": 18165 }
[ "java.io.IOException", "java.util.List", "java.util.Scanner", "ml.shifu.shifu.actor.AkkaSystemExecutor", "ml.shifu.shifu.container.obj.RawSourceData", "ml.shifu.shifu.exception.ShifuErrorCode", "ml.shifu.shifu.exception.ShifuException", "ml.shifu.shifu.fs.ShifuFileUtils", "org.apache.commons.collect...
import java.io.IOException; import java.util.List; import java.util.Scanner; import ml.shifu.shifu.actor.AkkaSystemExecutor; import ml.shifu.shifu.container.obj.RawSourceData; import ml.shifu.shifu.exception.ShifuErrorCode; import ml.shifu.shifu.exception.ShifuException; import ml.shifu.shifu.fs.ShifuFileUtils; import ...
import java.io.*; import java.util.*; import ml.shifu.shifu.actor.*; import ml.shifu.shifu.container.obj.*; import ml.shifu.shifu.exception.*; import ml.shifu.shifu.fs.*; import org.apache.commons.collections.*;
[ "java.io", "java.util", "ml.shifu.shifu", "org.apache.commons" ]
java.io; java.util; ml.shifu.shifu; org.apache.commons;
1,443,600
ServicesPackage getServicesPackageById(PerunSession perunSession, int servicesPackageId) throws ServicesPackageNotExistsException, PrivilegeException;
ServicesPackage getServicesPackageById(PerunSession perunSession, int servicesPackageId) throws ServicesPackageNotExistsException, PrivilegeException;
/** * Get package by Id * * @param servicesPackageId id of the package we want to retrieve * @param perunSession * * @return package * * @throws InternalErrorException * @throws PrivilegeException * @throws ServicesPackageNotExistsException */
Get package by Id
getServicesPackageById
{ "repo_name": "martin-kuba/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/ServicesManager.java", "license": "bsd-2-clause", "size": 46186 }
[ "cz.metacentrum.perun.core.api.exceptions.PrivilegeException", "cz.metacentrum.perun.core.api.exceptions.ServicesPackageNotExistsException" ]
import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import cz.metacentrum.perun.core.api.exceptions.ServicesPackageNotExistsException;
import cz.metacentrum.perun.core.api.exceptions.*;
[ "cz.metacentrum.perun" ]
cz.metacentrum.perun;
1,327,185
private void handleStateEvent(Item item, boolean onlyChanges) { synchronized (persistenceServiceConfigs) { for (Entry<String, PersistenceServiceConfiguration> entry : persistenceServiceConfigs.entrySet()) { final String serviceName = entry.getKey(); final Persiste...
void function(Item item, boolean onlyChanges) { synchronized (persistenceServiceConfigs) { for (Entry<String, PersistenceServiceConfiguration> entry : persistenceServiceConfigs.entrySet()) { final String serviceName = entry.getKey(); final PersistenceServiceConfiguration config = entry.getValue(); if (persistenceServic...
/** * Calls all persistence services which use change or update policy for the given item * * @param item the item to persist * @param onlyChanges true, if it has the change strategy, false otherwise */
Calls all persistence services which use change or update policy for the given item
handleStateEvent
{ "repo_name": "philomatic/smarthome", "path": "bundles/core/org.eclipse.smarthome.core.persistence/src/main/java/org/eclipse/smarthome/core/persistence/internal/PersistenceManagerImpl.java", "license": "epl-1.0", "size": 17816 }
[ "java.util.Map", "org.eclipse.smarthome.core.items.Item", "org.eclipse.smarthome.core.persistence.PersistenceServiceConfiguration", "org.eclipse.smarthome.core.persistence.SimpleItemConfiguration", "org.eclipse.smarthome.core.persistence.strategy.SimpleStrategy" ]
import java.util.Map; import org.eclipse.smarthome.core.items.Item; import org.eclipse.smarthome.core.persistence.PersistenceServiceConfiguration; import org.eclipse.smarthome.core.persistence.SimpleItemConfiguration; import org.eclipse.smarthome.core.persistence.strategy.SimpleStrategy;
import java.util.*; import org.eclipse.smarthome.core.items.*; import org.eclipse.smarthome.core.persistence.*; import org.eclipse.smarthome.core.persistence.strategy.*;
[ "java.util", "org.eclipse.smarthome" ]
java.util; org.eclipse.smarthome;
2,639,886
@XmlAttribute @Metadata(description = "The id of this node") public void setId(String value) { this.id = value; customId = true; }
@Metadata(description = STR) void function(String value) { this.id = value; customId = true; }
/** * Sets the id of this node */
Sets the id of this node
setId
{ "repo_name": "DariusX/camel", "path": "core/camel-core-engine/src/main/java/org/apache/camel/model/OptionalIdentifiedDefinition.java", "license": "apache-2.0", "size": 5300 }
[ "org.apache.camel.spi.Metadata" ]
import org.apache.camel.spi.Metadata;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
1,570,574
public Restlet getRestlet(Context context) { Router router = new Router(context); router.attach("/discover/send_packet/{src_switch}/{src_port}", PathDiscover.class); Filter filter = new RequestCorrelationFilter(); filter.setNext(router); return router; }
Restlet function(Context context) { Router router = new Router(context); router.attach(STR, PathDiscover.class); Filter filter = new RequestCorrelationFilter(); filter.setNext(router); return router; }
/** * Gets Restlet from the context. * * @param context the context. * @return the Restlet object. */
Gets Restlet from the context
getRestlet
{ "repo_name": "jonvestal/open-kilda", "path": "src-java/floodlight-service/floodlight-modules/src/main/java/org/openkilda/floodlight/pathverification/web/PathVerificationServiceWebRoutable.java", "license": "apache-2.0", "size": 1520 }
[ "org.openkilda.floodlight.utils.RequestCorrelationFilter", "org.restlet.Context", "org.restlet.Restlet", "org.restlet.routing.Filter", "org.restlet.routing.Router" ]
import org.openkilda.floodlight.utils.RequestCorrelationFilter; import org.restlet.Context; import org.restlet.Restlet; import org.restlet.routing.Filter; import org.restlet.routing.Router;
import org.openkilda.floodlight.utils.*; import org.restlet.*; import org.restlet.routing.*;
[ "org.openkilda.floodlight", "org.restlet", "org.restlet.routing" ]
org.openkilda.floodlight; org.restlet; org.restlet.routing;
2,324,128
protected void traverseScriptConstTrait (Trait trait, ScriptInfo scriptInfo) { writeSlotTrait("const", trait, false); }
void function (Trait trait, ScriptInfo scriptInfo) { writeSlotTrait("const", trait, false); }
/** * Traverse a const trait of a script */
Traverse a const trait of a script
traverseScriptConstTrait
{ "repo_name": "adufilie/flex-falcon", "path": "compiler/src/org/apache/flex/abc/print/ABCDumpVisitor.java", "license": "apache-2.0", "size": 36770 }
[ "org.apache.flex.abc.semantics.ScriptInfo", "org.apache.flex.abc.semantics.Trait" ]
import org.apache.flex.abc.semantics.ScriptInfo; import org.apache.flex.abc.semantics.Trait;
import org.apache.flex.abc.semantics.*;
[ "org.apache.flex" ]
org.apache.flex;
1,897,386
int updateByExample(@Param("record") AdministrativeDivision record, @Param("example") AdministrativeDivisionExample example);
int updateByExample(@Param(STR) AdministrativeDivision record, @Param(STR) AdministrativeDivisionExample example);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table administrative_division * * @mbg.generated Mon Jun 05 17:51:45 CST 2017 */
This method was generated by MyBatis Generator. This method corresponds to the database table administrative_division
updateByExample
{ "repo_name": "apo-soft/administrative-division", "path": "administrative-division-parent/aposoft-administrative-division-management/src/main/java/cn/aposoft/administrativedivision/db/mappers/AdministrativeDivisionMapper.java", "license": "apache-2.0", "size": 3560 }
[ "cn.aposoft.administrativedivision.db.AdministrativeDivision", "cn.aposoft.administrativedivision.db.AdministrativeDivisionExample", "org.apache.ibatis.annotations.Param" ]
import cn.aposoft.administrativedivision.db.AdministrativeDivision; import cn.aposoft.administrativedivision.db.AdministrativeDivisionExample; import org.apache.ibatis.annotations.Param;
import cn.aposoft.administrativedivision.db.*; import org.apache.ibatis.annotations.*;
[ "cn.aposoft.administrativedivision", "org.apache.ibatis" ]
cn.aposoft.administrativedivision; org.apache.ibatis;
1,616,682
public DataSheet getProcedureParams(String schemaName, String procedureName) { Connection con = getConnection(DbAccessType.READ_ONLY, schemaName); try { return getMetaSheet(con, schemaName, procedureName, PARAM_IDX); } finally { closeConnection(con, DbAccessType.READ_ONLY, true); } }
DataSheet function(String schemaName, String procedureName) { Connection con = getConnection(DbAccessType.READ_ONLY, schemaName); try { return getMetaSheet(con, schemaName, procedureName, PARAM_IDX); } finally { closeConnection(con, DbAccessType.READ_ONLY, true); } }
/** * get parameters of procedure * * @param schemaName * null, pattern or name * @param procedureName * null, pattern or name * @return sheet with one row per column. Null if this table does not exist, * or something went wrong!! */
get parameters of procedure
getProcedureParams
{ "repo_name": "raghu-bhandi/simplity-kernel", "path": "java/org/simplity/kernel/db/DbDriver.java", "license": "mit", "size": 52656 }
[ "java.sql.Connection", "org.simplity.kernel.data.DataSheet" ]
import java.sql.Connection; import org.simplity.kernel.data.DataSheet;
import java.sql.*; import org.simplity.kernel.data.*;
[ "java.sql", "org.simplity.kernel" ]
java.sql; org.simplity.kernel;
1,574,592
public void writeBlock(BlockWritable bw, FSDataOutputStream out) throws IOException { bw.writeToBlock(startWriting(bw.getBlockType())); writeHeaderAndData(out); }
void function(BlockWritable bw, FSDataOutputStream out) throws IOException { bw.writeToBlock(startWriting(bw.getBlockType())); writeHeaderAndData(out); }
/** * Takes the given {@link BlockWritable} instance, creates a new block of * its appropriate type, writes the writable into this block, and flushes * the block into the output stream. The writer is instructed not to buffer * uncompressed bytes for cache-on-write. * * @param bw the block-...
Takes the given <code>BlockWritable</code> instance, creates a new block of its appropriate type, writes the writable into this block, and flushes the block into the output stream. The writer is instructed not to buffer uncompressed bytes for cache-on-write
writeBlock
{ "repo_name": "intel-hadoop/hbase-rhino", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/io/hfile/TestHFileBlockCompatibility.java", "license": "apache-2.0", "size": 29270 }
[ "java.io.IOException", "org.apache.hadoop.fs.FSDataOutputStream", "org.apache.hadoop.hbase.io.hfile.HFileBlock" ]
import java.io.IOException; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.hbase.io.hfile.HFileBlock;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.io.hfile.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,507,652
@Override protected void shutdownApplication(ApplicationStatus finalStatus, String optionalDiagnostics) { for (ActorRef listener : waitForShutdown) { listener.tell(new TestingMessages.ComponentShutdown(self()), self()); } waitForShutdown.clear(); }
void function(ApplicationStatus finalStatus, String optionalDiagnostics) { for (ActorRef listener : waitForShutdown) { listener.tell(new TestingMessages.ComponentShutdown(self()), self()); } waitForShutdown.clear(); }
/** * Inform registered listeners about a shutdown of the application. */
Inform registered listeners about a shutdown of the application
shutdownApplication
{ "repo_name": "WangTaoTheTonic/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/testutils/TestingResourceManager.java", "license": "apache-2.0", "size": 4416 }
[ "org.apache.flink.runtime.clusterframework.ApplicationStatus", "org.apache.flink.runtime.testingUtils.TestingMessages" ]
import org.apache.flink.runtime.clusterframework.ApplicationStatus; import org.apache.flink.runtime.testingUtils.TestingMessages;
import org.apache.flink.runtime.*; import org.apache.flink.runtime.clusterframework.*;
[ "org.apache.flink" ]
org.apache.flink;
2,547,451
@Generated("This method was generated using jOOQ-tools") static <T1, T2, T3, T4, T5, T6, T7, T8> Seq<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> zip(Iterable<T1> i1, Iterable<T2> i2, Iterable<T3> i3, Iterable<T4> i4, Iterable<T5> i5, Iterable<T6> i6, Iterable<T7> i7, Iterable<T8> i8) { return zip(seq(i1), s...
@Generated(STR) static <T1, T2, T3, T4, T5, T6, T7, T8> Seq<Tuple8<T1, T2, T3, T4, T5, T6, T7, T8>> zip(Iterable<T1> i1, Iterable<T2> i2, Iterable<T3> i3, Iterable<T4> i4, Iterable<T5> i5, Iterable<T6> i6, Iterable<T7> i7, Iterable<T8> i8) { return zip(seq(i1), seq(i2), seq(i3), seq(i4), seq(i5), seq(i6), seq(i7), seq(...
/** * Zip 8 streams into one. * <p> * <code><pre> * // (tuple(1, "a"), tuple(2, "b"), tuple(3, "c")) * Seq.of(1, 2, 3).zip(Seq.of("a", "b", "c")) * </pre></code> */
Zip 8 streams into one. <code><code> (tuple(1, "a"), tuple(2, "b"), tuple(3, "c")) Seq.of(1, 2, 3).zip(Seq.of("a", "b", "c")) </code></code>
zip
{ "repo_name": "stephenh/jOOL", "path": "src/main/java/org/jooq/lambda/Seq.java", "license": "apache-2.0", "size": 198501 }
[ "javax.annotation.Generated", "org.jooq.lambda.tuple.Tuple8" ]
import javax.annotation.Generated; import org.jooq.lambda.tuple.Tuple8;
import javax.annotation.*; import org.jooq.lambda.tuple.*;
[ "javax.annotation", "org.jooq.lambda" ]
javax.annotation; org.jooq.lambda;
424,182
EList<TieFlow> getTieFlow();
EList<TieFlow> getTieFlow();
/** * Returns the value of the '<em><b>Tie Flow</b></em>' reference list. * The list contents are of type {@link gluemodel.CIM.IEC61970.ControlArea.TieFlow}. * It is bidirectional and its opposite is '{@link gluemodel.CIM.IEC61970.ControlArea.TieFlow#getTerminal <em>Terminal</em>}'. * <!-- begin-user-doc --> ...
Returns the value of the 'Tie Flow' reference list. The list contents are of type <code>gluemodel.CIM.IEC61970.ControlArea.TieFlow</code>. It is bidirectional and its opposite is '<code>gluemodel.CIM.IEC61970.ControlArea.TieFlow#getTerminal Terminal</code>'. If the meaning of the 'Tie Flow' reference list isn't clear, ...
getTieFlow
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/eMoflon/rgse.ttc17.metamodels.src/src/gluemodel/CIM/IEC61970/Core/Terminal.java", "license": "mit", "size": 25154 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,305,059
public static IPatternSequence $ps(final ISymbol symbol, final IExpr check, final boolean def, boolean zeroArgsAllowed) { return PatternSequence.valueOf(symbol, check, def, zeroArgsAllowed); }
public static IPatternSequence $ps(final ISymbol symbol, final IExpr check, final boolean def, boolean zeroArgsAllowed) { return PatternSequence.valueOf(symbol, check, def, zeroArgsAllowed); }
/** * Create a new PatternSequence <code>BlankSequence</code> or <code>BlankNullSequence</code>. * * @param symbol * @param check additional condition which should be checked in pattern-matching * @param def if <code>true</code>, the pattern can match to a default value associated with the * AS...
Create a new PatternSequence <code>BlankSequence</code> or <code>BlankNullSequence</code>
$ps
{ "repo_name": "axkr/symja_android_library", "path": "symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/expression/F.java", "license": "gpl-3.0", "size": 283472 }
[ "org.matheclipse.core.interfaces.IExpr", "org.matheclipse.core.interfaces.IPatternSequence", "org.matheclipse.core.interfaces.ISymbol" ]
import org.matheclipse.core.interfaces.IExpr; import org.matheclipse.core.interfaces.IPatternSequence; import org.matheclipse.core.interfaces.ISymbol;
import org.matheclipse.core.interfaces.*;
[ "org.matheclipse.core" ]
org.matheclipse.core;
140,701
public void process(WatchedEvent event) { lastEvent = event; latch.countDown(); LOG.info("Latch got event :: " + event); }
void function(WatchedEvent event) { lastEvent = event; latch.countDown(); LOG.info(STR + event); }
/** * Implementation of watcher interface. */
Implementation of watcher interface
process
{ "repo_name": "zhushuchen/Ocean", "path": "组件/zookeeper-3.3.6/src/java/test/org/apache/zookeeper/test/ObserverTest.java", "license": "agpl-3.0", "size": 9036 }
[ "org.apache.zookeeper.WatchedEvent" ]
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.*;
[ "org.apache.zookeeper" ]
org.apache.zookeeper;
357,077
List getPossibleCommands(ICommandSender p_71557_1_);
List getPossibleCommands(ICommandSender p_71557_1_);
/** * returns all commands that the commandSender can use */
returns all commands that the commandSender can use
getPossibleCommands
{ "repo_name": "CheeseL0ver/Ore-TTM", "path": "build/tmp/recompSrc/net/minecraft/command/ICommandManager.java", "license": "lgpl-2.1", "size": 680 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
388,505
public static MozuUrl authenticateAppUrl(String responseFields) { UrlFormatter formatter = new UrlFormatter("/api/platform/applications/authtickets/?responseFields={responseFields}"); formatter.formatUrl("responseFields", responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation....
static MozuUrl function(String responseFields) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl(STR, responseFields); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.HOME_POD) ; }
/** * Get Resource Url for AuthenticateApp * @param responseFields Filtering syntax appended to an API call to increase or decrease the amount of data returned inside a JSON object. This parameter should only be used to retrieve data. Attempting to update data using this parameter may cause data loss. * @retur...
Get Resource Url for AuthenticateApp
authenticateAppUrl
{ "repo_name": "Mozu/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/urls/platform/applications/AuthTicketUrl.java", "license": "mit", "size": 2403 }
[ "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;
67,895
int updateByPrimaryKey(Milestone record);
int updateByPrimaryKey(Milestone record);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table m_prj_milestone * * @mbggenerated Tue Sep 08 09:15:22 ICT 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table m_prj_milestone
updateByPrimaryKey
{ "repo_name": "onlylin/mycollab", "path": "mycollab-services/src/main/java/com/esofthead/mycollab/module/project/dao/MilestoneMapper.java", "license": "agpl-3.0", "size": 5589 }
[ "com.esofthead.mycollab.module.project.domain.Milestone" ]
import com.esofthead.mycollab.module.project.domain.Milestone;
import com.esofthead.mycollab.module.project.domain.*;
[ "com.esofthead.mycollab" ]
com.esofthead.mycollab;
322,271
protected boolean shouldExpectPermissionPrompt(String sessionType, WebContents webContents) { return runJavaScriptOrFail("sessionTypeWouldTriggerConsent(" + sessionType + ")", POLL_TIMEOUT_SHORT_MS, webContents) .equals("true"); }
boolean function(String sessionType, WebContents webContents) { return runJavaScriptOrFail(STR + sessionType + ")", POLL_TIMEOUT_SHORT_MS, webContents) .equals("true"); }
/** * Checks whether a session request of the given type is expected to trigger the consent * dialog. * * @param sessionType The session type to pass to JavaScript defined in webxr_boilerplate.js, * e.g. sessionTypes.AR * @param webContents The WebContents to check in. * @return T...
Checks whether a session request of the given type is expected to trigger the consent dialog
shouldExpectPermissionPrompt
{ "repo_name": "ric2b/Vivaldi-browser", "path": "chromium/chrome/android/javatests/src/org/chromium/chrome/browser/vr/WebXrTestFramework.java", "license": "bsd-3-clause", "size": 8659 }
[ "org.chromium.content_public.browser.WebContents" ]
import org.chromium.content_public.browser.WebContents;
import org.chromium.content_public.browser.*;
[ "org.chromium.content_public" ]
org.chromium.content_public;
2,839,945
public void setUserId(final int id) { userId = id; if (record) { write("Assigns the Cloudlet to " + CloudSim.getEntityName(id) + " (ID #" + id + ")"); } }
void function(final int id) { userId = id; if (record) { write(STR + CloudSim.getEntityName(id) + STR + id + ")"); } }
/** * Sets the user or owner ID of this Cloudlet. It is <tt>VERY</tt> important to set the user ID, * otherwise this Cloudlet will not be executed in a CloudResource. * * @param id the user ID * @pre id >= 0 * @post $none */
Sets the user or owner ID of this Cloudlet. It is VERY important to set the user ID, otherwise this Cloudlet will not be executed in a CloudResource
setUserId
{ "repo_name": "demiaowu/annotation-of-cloudsim3.0.3", "path": "sources/org/cloudbus/cloudsim/Cloudlet.java", "license": "lgpl-3.0", "size": 40823 }
[ "org.cloudbus.cloudsim.core.CloudSim" ]
import org.cloudbus.cloudsim.core.CloudSim;
import org.cloudbus.cloudsim.core.*;
[ "org.cloudbus.cloudsim" ]
org.cloudbus.cloudsim;
2,499,288
private void showGlobalContextActionBar() { ActionBar actionBar = getActionBar(); actionBar.setDisplayShowTitleEnabled(true); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); actionBar.setTitle(R.string.app_name); }
void function() { ActionBar actionBar = getActionBar(); actionBar.setDisplayShowTitleEnabled(true); actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_STANDARD); actionBar.setTitle(R.string.app_name); }
/** * Per the navigation drawer design guidelines, updates the action bar to show the global app * 'context', rather than just what's in the current screen. */
Per the navigation drawer design guidelines, updates the action bar to show the global app 'context', rather than just what's in the current screen
showGlobalContextActionBar
{ "repo_name": "devmil/android_nanodegree_super_duo", "path": "alexandria/app/src/main/java/it/jaschke/alexandria/NavigationDrawerFragment.java", "license": "apache-2.0", "size": 10627 }
[ "android.support.v7.app.ActionBar" ]
import android.support.v7.app.ActionBar;
import android.support.v7.app.*;
[ "android.support" ]
android.support;
910,925
private TreeImageDisplay checkContainer(TreeImageDisplay container) { if (container == null) return null; Object ho = container.getUserObject(); if (ho instanceof DatasetData || ho instanceof ProjectData || ho instanceof ScreenData) return container; return null; } public ImportDialog(JFrame o...
TreeImageDisplay function(TreeImageDisplay container) { if (container == null) return null; Object ho = container.getUserObject(); if (ho instanceof DatasetData ho instanceof ProjectData ho instanceof ScreenData) return container; return null; } ImportDialog(JFrame owner, FileFilter[] filters, TreeImageDisplay selected...
/** * Checks if the passed container is hosting the desired object. * * @param container * The container to handle. * @return See above. */
Checks if the passed container is hosting the desired object
checkContainer
{ "repo_name": "emilroz/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/chooser/ImportDialog.java", "license": "gpl-2.0", "size": 46691 }
[ "java.util.Collection", "javax.swing.JFrame", "javax.swing.filechooser.FileFilter", "org.openmicroscopy.shoola.agents.fsimporter.actions.ImporterAction", "org.openmicroscopy.shoola.agents.fsimporter.view.Importer", "org.openmicroscopy.shoola.agents.util.browser.TreeImageDisplay" ]
import java.util.Collection; import javax.swing.JFrame; import javax.swing.filechooser.FileFilter; import org.openmicroscopy.shoola.agents.fsimporter.actions.ImporterAction; import org.openmicroscopy.shoola.agents.fsimporter.view.Importer; import org.openmicroscopy.shoola.agents.util.browser.TreeImageDisplay;
import java.util.*; import javax.swing.*; import javax.swing.filechooser.*; import org.openmicroscopy.shoola.agents.fsimporter.actions.*; import org.openmicroscopy.shoola.agents.fsimporter.view.*; import org.openmicroscopy.shoola.agents.util.browser.*;
[ "java.util", "javax.swing", "org.openmicroscopy.shoola" ]
java.util; javax.swing; org.openmicroscopy.shoola;
217,980
private String readUrl(URL in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in.openStream())); StringBuffer buf = new StringBuffer(); String s; while (null != (s = br.readLine())) { buf.append(s); buf.append('\n');...
String function(URL in) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(in.openStream())); StringBuffer buf = new StringBuffer(); String s; while (null != (s = br.readLine())) { buf.append(s); buf.append('\n'); } return buf.toString(); }
/** * Read the contents of a URL into a String * @param in * @return * @throws IOException */
Read the contents of a URL into a String
readUrl
{ "repo_name": "objectiser/camel", "path": "components/camel-ldif/src/test/java/org/apache/camel/component/ldif/LdifRouteTest.java", "license": "apache-2.0", "size": 14157 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.InputStreamReader" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader;
import java.io.*;
[ "java.io" ]
java.io;
2,272,334
public Serializable get_val() throws TypeMismatch, InvalidValue { throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE); }
Serializable function() throws TypeMismatch, InvalidValue { throw new MARSHAL(_DynAnyStub.NOT_APPLICABLE); }
/** * The remote call of DynAny methods is not possible. * * @throws MARSHAL, always. */
The remote call of DynAny methods is not possible
get_val
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/org/omg/DynamicAny/_DynUnionStub.java", "license": "gpl-2.0", "size": 16960 }
[ "java.io.Serializable", "org.omg.DynamicAny" ]
import java.io.Serializable; import org.omg.DynamicAny;
import java.io.*; import org.omg.*;
[ "java.io", "org.omg" ]
java.io; org.omg;
1,584,961
public static void addSegmentToIdealState(HelixManager helixManager, final String tableName, final String segmentName, final Callable<List<String>> getInstancesForSegment) {
static void function(HelixManager helixManager, final String tableName, final String segmentName, final Callable<List<String>> getInstancesForSegment) {
/** * Add the new specified segment to the idealState of the specified table in the specified cluster. * * @param helixManager The HelixManager object to access the helix cluster. * @param tableName Name of the table to which the new segment is to be added. * @param segmentName Name of the new segment to...
Add the new specified segment to the idealState of the specified table in the specified cluster
addSegmentToIdealState
{ "repo_name": "tkao1000/pinot", "path": "pinot-common/src/main/java/com/linkedin/pinot/common/utils/helix/HelixHelper.java", "license": "apache-2.0", "size": 15108 }
[ "java.util.List", "java.util.concurrent.Callable", "org.apache.helix.HelixManager" ]
import java.util.List; import java.util.concurrent.Callable; import org.apache.helix.HelixManager;
import java.util.*; import java.util.concurrent.*; import org.apache.helix.*;
[ "java.util", "org.apache.helix" ]
java.util; org.apache.helix;
1,842,304
public Keep getKeepWithNext() { return keepWithNext; }
Keep function() { return keepWithNext; }
/** * Returns the strength of the keep constraint if the last child block (or its descendants) of * this cell has keep-with-next. * * @return the keep-with-next strength */
Returns the strength of the keep constraint if the last child block (or its descendants) of this cell has keep-with-next
getKeepWithNext
{ "repo_name": "StrategyObject/fop", "path": "src/java/org/apache/fop/fo/flow/table/PrimaryGridUnit.java", "license": "apache-2.0", "size": 14330 }
[ "org.apache.fop.layoutmgr.Keep" ]
import org.apache.fop.layoutmgr.Keep;
import org.apache.fop.layoutmgr.*;
[ "org.apache.fop" ]
org.apache.fop;
1,324,574
public static Dialect getDialect() throws HibernateException { String dialectName = Environment.getProperties().getProperty( Environment.DIALECT ); if ( dialectName == null ) throw new HibernateException( "The dialect was not set. Set the property hibernate.dialect." ); try { return ( Dialect ) ReflectHelpe...
static Dialect function() throws HibernateException { String dialectName = Environment.getProperties().getProperty( Environment.DIALECT ); if ( dialectName == null ) throw new HibernateException( STR ); try { return ( Dialect ) ReflectHelper.classForName( dialectName ).newInstance(); } catch ( ClassNotFoundException cn...
/** * Get the <tt>Dialect</tt> specified by the current <tt>System</tt> properties. * * @return Dialect * @throws HibernateException */
Get the Dialect specified by the current System properties
getDialect
{ "repo_name": "renmeng8875/projects", "path": "Hibernate-source/源代码及重要说明/Hibernate相关资料/hibernate-3.2.0.ga/hibernate-3.2/src/org/hibernate/dialect/Dialect.java", "license": "apache-2.0", "size": 31955 }
[ "org.hibernate.HibernateException", "org.hibernate.cfg.Environment", "org.hibernate.util.ReflectHelper" ]
import org.hibernate.HibernateException; import org.hibernate.cfg.Environment; import org.hibernate.util.ReflectHelper;
import org.hibernate.*; import org.hibernate.cfg.*; import org.hibernate.util.*;
[ "org.hibernate", "org.hibernate.cfg", "org.hibernate.util" ]
org.hibernate; org.hibernate.cfg; org.hibernate.util;
722,899
public List<Artifact> getBuiltArtifacts() { return builtArtifacts; }
List<Artifact> function() { return builtArtifacts; }
/** * Gets the built artifacts. * * @return the built artifacts */
Gets the built artifacts
getBuiltArtifacts
{ "repo_name": "ahmedlawi92/pnc", "path": "model/src/main/java/org/jboss/pnc/model/BuildRecord.java", "license": "apache-2.0", "size": 17044 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,049,441
private Operator getOperator(Kind kind) { Operator result = operatorMap.get(kind); if (result == null) { result = Operator.UNKNOWN; } return result; }
Operator function(Kind kind) { Operator result = operatorMap.get(kind); if (result == null) { result = Operator.UNKNOWN; } return result; }
/** * Converts Java abstract operator kinds to GOOL abstract operators. */
Converts Java abstract operator kinds to GOOL abstract operators
getOperator
{ "repo_name": "darrivau/GOOL", "path": "src/main/java/gool/recognizer/java/JavaRecognizer.java", "license": "gpl-3.0", "size": 80584 }
[ "com.sun.source.tree.Tree" ]
import com.sun.source.tree.Tree;
import com.sun.source.tree.*;
[ "com.sun.source" ]
com.sun.source;
1,894,306
void setCompletedDateTime(Date value);
void setCompletedDateTime(Date value);
/** * Sets the value of the '{@link CIM.IEC61970.Informative.InfAssets.ProcedureDataSet#getCompletedDateTime <em>Completed Date Time</em>}' attribute. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @param value the new value of the '<em>Completed Date Time</em>' attribute. * @see #getCompletedDateTime() ...
Sets the value of the '<code>CIM.IEC61970.Informative.InfAssets.ProcedureDataSet#getCompletedDateTime Completed Date Time</code>' attribute.
setCompletedDateTime
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Informative/InfAssets/ProcedureDataSet.java", "license": "mit", "size": 7773 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,601,336
@Test public void getProcessInstanceVariablesTest() throws ApiException { String id = null; Boolean deserializeValue = null; Map<String, VariableValueDto> response = api.getProcessInstanceVariables(id, deserializeValue); // TODO: test validations }
void function() throws ApiException { String id = null; Boolean deserializeValue = null; Map<String, VariableValueDto> response = api.getProcessInstanceVariables(id, deserializeValue); }
/** * * * Retrieves all variables of a given process instance by id. * * @throws ApiException * if the Api call fails */
Retrieves all variables of a given process instance by id
getProcessInstanceVariablesTest
{ "repo_name": "camunda/camunda-consulting", "path": "snippets/camunda-openapi-client/camunda-openapi-client/src/test/java/com/camunda/consulting/openapi/client/handler/ProcessInstanceApiTest.java", "license": "apache-2.0", "size": 18545 }
[ "com.camunda.consulting.openapi.client.handler.ApiException", "com.camunda.consulting.openapi.client.model.VariableValueDto", "java.util.Map" ]
import com.camunda.consulting.openapi.client.handler.ApiException; import com.camunda.consulting.openapi.client.model.VariableValueDto; import java.util.Map;
import com.camunda.consulting.openapi.client.handler.*; import com.camunda.consulting.openapi.client.model.*; import java.util.*;
[ "com.camunda.consulting", "java.util" ]
com.camunda.consulting; java.util;
1,205,103
private boolean mustDeserializeBinary(Class cls) { if (cls != null && ctx.config().getMarshaller() instanceof BinaryMarshaller) { CacheObjectBinaryProcessorImpl proc0 = (CacheObjectBinaryProcessorImpl)ctx.cacheObjects(); return proc0.binaryContext().mustDeserialize(cls); } ...
boolean function(Class cls) { if (cls != null && ctx.config().getMarshaller() instanceof BinaryMarshaller) { CacheObjectBinaryProcessorImpl proc0 = (CacheObjectBinaryProcessorImpl)ctx.cacheObjects(); return proc0.binaryContext().mustDeserialize(cls); } else return false; }
/** * Check whether type still must be deserialized when binary marshaller is set. * * @param cls Class. * @return {@code True} if will be deserialized. */
Check whether type still must be deserialized when binary marshaller is set
mustDeserializeBinary
{ "repo_name": "agura/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/query/GridQueryProcessor.java", "license": "apache-2.0", "size": 80741 }
[ "org.apache.ignite.internal.binary.BinaryMarshaller", "org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl" ]
import org.apache.ignite.internal.binary.BinaryMarshaller; import org.apache.ignite.internal.processors.cache.binary.CacheObjectBinaryProcessorImpl;
import org.apache.ignite.internal.binary.*; import org.apache.ignite.internal.processors.cache.binary.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,646,333
public void addToPonds(final BlockPos pond) { this.ponds.add(pond); }
void function(final BlockPos pond) { this.ponds.add(pond); }
/** * Add one pond to our list of ponds. * * @param pond the pond to add. */
Add one pond to our list of ponds
addToPonds
{ "repo_name": "xavierh/minecolonies", "path": "src/main/java/com/minecolonies/coremod/colony/jobs/JobFisherman.java", "license": "gpl-3.0", "size": 5806 }
[ "net.minecraft.util.math.BlockPos" ]
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.*;
[ "net.minecraft.util" ]
net.minecraft.util;
666,091
public static Set<String> gatherAllEndpointUris(CamelContext camelContext, RouteDefinition route, boolean includeInputs, boolean includeOutputs, boolean includeDynamic) { Set<String> answer = new LinkedHashSet<String>(); if (includeInputs) { for (FromDefinition from : route.getInputs())...
static Set<String> function(CamelContext camelContext, RouteDefinition route, boolean includeInputs, boolean includeOutputs, boolean includeDynamic) { Set<String> answer = new LinkedHashSet<String>(); if (includeInputs) { for (FromDefinition from : route.getInputs()) { String uri = normalizeUri(from.getEndpointUri()); ...
/** * Gather all the endpoint uri's the route is using from the EIPs that has a static or dynamic endpoint defined. * * @param route the route * @param includeInputs whether to include inputs * @param includeOutputs whether to include outputs * @param includeDynamic whether to in...
Gather all the endpoint uri's the route is using from the EIPs that has a static or dynamic endpoint defined
gatherAllEndpointUris
{ "repo_name": "jmandawg/camel", "path": "camel-core/src/main/java/org/apache/camel/model/RouteDefinitionHelper.java", "license": "apache-2.0", "size": 28794 }
[ "java.util.Iterator", "java.util.LinkedHashSet", "java.util.List", "java.util.Set", "org.apache.camel.CamelContext", "org.apache.camel.model.ProcessorDefinitionHelper" ]
import java.util.Iterator; import java.util.LinkedHashSet; import java.util.List; import java.util.Set; import org.apache.camel.CamelContext; import org.apache.camel.model.ProcessorDefinitionHelper;
import java.util.*; import org.apache.camel.*; import org.apache.camel.model.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
2,173,113
public static void deleteNode(ZooKeeperWatcher zkw, String node) throws KeeperException { deleteNode(zkw, node, -1); }
static void function(ZooKeeperWatcher zkw, String node) throws KeeperException { deleteNode(zkw, node, -1); }
/** * Delete the specified node. Sets no watches. Throws all exceptions. */
Delete the specified node. Sets no watches. Throws all exceptions
deleteNode
{ "repo_name": "lilonglai/hbase-0.96.2", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/zookeeper/ZKUtil.java", "license": "apache-2.0", "size": 72004 }
[ "org.apache.zookeeper.KeeperException" ]
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.*;
[ "org.apache.zookeeper" ]
org.apache.zookeeper;
875,111
@Test public void testPersistenceProviderNamedQueryRepeatableAnnotation() throws Exception { EntityManager em1 = (EntityManager) InitialContext.doLookup("java:comp/env/em1"); Assert.assertNotNull(em1); tx.begin(); em1.joinTransaction(); InjectEntityA entA1 = new InjectEn...
void function() throws Exception { EntityManager em1 = (EntityManager) InitialContext.doLookup(STR); Assert.assertNotNull(em1); tx.begin(); em1.joinTransaction(); InjectEntityA entA1 = new InjectEntityA(); entA1.setStrData(STR); em1.persist(entA1); tx.commit(); Query q = em1.createNamedQuery(STR); Assert.assertNotNull(...
/** * JPA 2.2 Providers are also responsible for handling a host of JPA annotations that have been marked as @Repetable. * This test case verifies @NamedQuery is properly repeatable */
JPA 2.2 Providers are also responsible for handling a host of JPA annotations that have been marked as @Repetable. This test case verifies @NamedQuery is properly repeatable
testPersistenceProviderNamedQueryRepeatableAnnotation
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.jpa_22_fat/test-applications/jpa22/jpa22injection/src/jpa22injection/web/JPAInjectionTestServlet.java", "license": "epl-1.0", "size": 6231 }
[ "java.util.List", "javax.naming.InitialContext", "javax.persistence.EntityManager", "javax.persistence.Query", "junit.framework.Assert" ]
import java.util.List; import javax.naming.InitialContext; import javax.persistence.EntityManager; import javax.persistence.Query; import junit.framework.Assert;
import java.util.*; import javax.naming.*; import javax.persistence.*; import junit.framework.*;
[ "java.util", "javax.naming", "javax.persistence", "junit.framework" ]
java.util; javax.naming; javax.persistence; junit.framework;
674,255
public static FSize calcTextSize(Paint paint, String demoText) { Rect r = new Rect(); paint.getTextBounds(demoText, 0, demoText.length(), r); return new FSize(r.width(), r.height()); } // // public static int getFormatDigits(float delta) { // // if (delta < 0.1) { ...
static FSize function(Paint paint, String demoText) { Rect r = new Rect(); paint.getTextBounds(demoText, 0, demoText.length(), r); return new FSize(r.width(), r.height()); }
/** * calculates the approximate size of a text, depending on a demo text * avoid repeated calls (e.g. inside drawing methods) * * @param paint * @param demoText * @return */
calculates the approximate size of a text, depending on a demo text avoid repeated calls (e.g. inside drawing methods)
calcTextSize
{ "repo_name": "fernando-napier/FarmProfitCalculator", "path": "MPChartLib/src/com/github/mikephil/charting/utils/Utils.java", "license": "mit", "size": 16656 }
[ "android.graphics.Paint", "android.graphics.Rect" ]
import android.graphics.Paint; import android.graphics.Rect;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
2,626,811
List<E> findAll( );
List<E> findAll( );
/** * Find all entities * * @return A list of entities */
Find all entities
findAll
{ "repo_name": "rzara/lutece-core", "path": "src/java/fr/paris/lutece/util/jpa/IGenericDAO.java", "license": "bsd-3-clause", "size": 2833 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,278,753
public static List<RowItem> getCoverageSummaryRow(AbstractTestResultAction testResultAction) { TestResult testResult; ArrayList<RowItem> row = new ArrayList<RowItem>(); RowItem emptyCell = new RowItem("--"); RowItem nestedCell= new RowItem("..."); row.add(new CoverageUtil.Row...
static List<RowItem> function(AbstractTestResultAction testResultAction) { TestResult testResult; ArrayList<RowItem> row = new ArrayList<RowItem>(); RowItem emptyCell = new RowItem("--"); RowItem nestedCell= new RowItem("..."); row.add(new CoverageUtil.RowItem(testResultAction.run.getDurationString())); int defaultFail...
/** * This method returns the coverage summary rows from a testresultAction if * it exists; The order of the rows are:Duration, Passed, Failed, Skipped, Total, CPU * Time, Total Coverage, Testplan Coverage (id, Passed, Failed, Skipped, * Total, CPU Time, Total Coverage, Testplan Coverage)* * ...
This method returns the coverage summary rows from a testresultAction if it exists; The order of the rows are:Duration, Passed, Failed, Skipped, Total, CPU Time, Total Coverage, Testplan Coverage (id, Passed, Failed, Skipped, Total, CPU Time, Total Coverage, Testplan Coverage)
getCoverageSummaryRow
{ "repo_name": "MentorQuesta/questa-vrm", "path": "src/main/java/com/mentor/questa/ucdb/jenkins/CoverageUtil.java", "license": "mit", "size": 13264 }
[ "hudson.tasks.junit.TestAction", "hudson.tasks.test.AbstractTestResultAction", "hudson.tasks.test.TestResult", "java.text.DecimalFormat", "java.util.ArrayList", "java.util.List" ]
import hudson.tasks.junit.TestAction; import hudson.tasks.test.AbstractTestResultAction; import hudson.tasks.test.TestResult; import java.text.DecimalFormat; import java.util.ArrayList; import java.util.List;
import hudson.tasks.junit.*; import hudson.tasks.test.*; import java.text.*; import java.util.*;
[ "hudson.tasks.junit", "hudson.tasks.test", "java.text", "java.util" ]
hudson.tasks.junit; hudson.tasks.test; java.text; java.util;
1,081,512
String createTicketGrantingTicket(Credentials credentials) throws TicketException;
String createTicketGrantingTicket(Credentials credentials) throws TicketException;
/** * Create a TicketGrantingTicket based on opaque credentials supplied by the * caller. * * @param credentials The credentials to create the ticket for * @return The String identifier of the ticket (may not be null). * @throws TicketException if ticket cannot be created */
Create a TicketGrantingTicket based on opaque credentials supplied by the caller
createTicketGrantingTicket
{ "repo_name": "briandwyer/cas-hudson", "path": "cas-server-core/src/main/java/org/jasig/cas/CentralAuthenticationService.java", "license": "apache-2.0", "size": 4870 }
[ "org.jasig.cas.authentication.principal.Credentials", "org.jasig.cas.ticket.TicketException" ]
import org.jasig.cas.authentication.principal.Credentials; import org.jasig.cas.ticket.TicketException;
import org.jasig.cas.authentication.principal.*; import org.jasig.cas.ticket.*;
[ "org.jasig.cas" ]
org.jasig.cas;
2,826,263
private static void indexColumn(GeoPackageConnection db, String tableName, FeatureColumn column) { if (!column.isPrimaryKey() && !column.isGeometry()) { StringBuilder index = new StringBuilder( "CREATE INDEX IF NOT EXISTS "); index.append(CoreSQLUtils .quoteWrap("idx_" + tableName + "_" + column...
static void function(GeoPackageConnection db, String tableName, FeatureColumn column) { if (!column.isPrimaryKey() && !column.isGeometry()) { StringBuilder index = new StringBuilder( STR); index.append(CoreSQLUtils .quoteWrap("idx_" + tableName + "_" + column.getName())); index.append(STR); index.append(CoreSQLUtils.qu...
/** * Index the column * * @param db * connection * @param tableName * table name * @param column * feature column */
Index the column
indexColumn
{ "repo_name": "ngageoint/geopackage-java", "path": "src/test/java/mil/nga/geopackage/db/AlterTableUtils.java", "license": "mit", "size": 53881 }
[ "mil.nga.geopackage.features.user.FeatureColumn" ]
import mil.nga.geopackage.features.user.FeatureColumn;
import mil.nga.geopackage.features.user.*;
[ "mil.nga.geopackage" ]
mil.nga.geopackage;
1,367,375
public void setRecordings(List<Recording> recordings) { this.clear(); this.addAll(recordings); this.recordings = new ArrayList<Recording>(recordings); }
void function(List<Recording> recordings) { this.clear(); this.addAll(recordings); this.recordings = new ArrayList<Recording>(recordings); }
/** * Change the underlying data * * @param recordings The underlying data */
Change the underlying data
setRecordings
{ "repo_name": "lisaslyis/aikuma", "path": "Aikuma/src/org/lp20/aikuma/ui/RecordingArrayAdapter.java", "license": "agpl-3.0", "size": 9840 }
[ "java.util.ArrayList", "java.util.List", "org.lp20.aikuma.model.Recording" ]
import java.util.ArrayList; import java.util.List; import org.lp20.aikuma.model.Recording;
import java.util.*; import org.lp20.aikuma.model.*;
[ "java.util", "org.lp20.aikuma" ]
java.util; org.lp20.aikuma;
963,610
public Writer write(Writer writer) throws JSONException { try { boolean b = false; int len = length(); writer.write('['); for (int i = 0; i < len; i += 1) { if (b) { writer.write(','); } ...
Writer function(Writer writer) throws JSONException { try { boolean b = false; int len = length(); writer.write('['); for (int i = 0; i < len; i += 1) { if (b) { writer.write(','); } Object v = this.myArrayList.get(i); if (v instanceof JSONObject) { ((JSONObject)v).write(writer); } else if (v instanceof JSONArray) { ((...
/** * Write the contents of the JSONArray as JSON text to a writer. * For compactness, no whitespace is added. * <p> * Warning: This method assumes that the data structure is acyclical. * * @return The writer. * @throws JSONException */
Write the contents of the JSONArray as JSON text to a writer. For compactness, no whitespace is added. Warning: This method assumes that the data structure is acyclical
write
{ "repo_name": "ifcharming/voltdb2.1", "path": "third_party/java/src/org/json_voltpatches/JSONArray.java", "license": "gpl-3.0", "size": 29589 }
[ "java.io.IOException", "java.io.Writer" ]
import java.io.IOException; import java.io.Writer;
import java.io.*;
[ "java.io" ]
java.io;
1,667,782
@Override protected void onProviderChanged(int appWidgetId, AppWidgetProviderInfo appWidget) { LauncherAppWidgetProviderInfo info = LauncherAppWidgetProviderInfo.fromProviderInfo( mLauncher, appWidget); super.onProviderChanged(appWidgetId, info); // The super method updat...
void function(int appWidgetId, AppWidgetProviderInfo appWidget) { LauncherAppWidgetProviderInfo info = LauncherAppWidgetProviderInfo.fromProviderInfo( mLauncher, appWidget); super.onProviderChanged(appWidgetId, info); info.initSpans(mLauncher); }
/** * Called when the AppWidget provider for a AppWidget has been upgraded to a new apk. */
Called when the AppWidget provider for a AppWidget has been upgraded to a new apk
onProviderChanged
{ "repo_name": "enricocid/LaunchEnr", "path": "Launcher3-O-r12/src/main/java/com/enrico/launcher3/LauncherAppWidgetHost.java", "license": "gpl-3.0", "size": 5263 }
[ "android.appwidget.AppWidgetProviderInfo" ]
import android.appwidget.AppWidgetProviderInfo;
import android.appwidget.*;
[ "android.appwidget" ]
android.appwidget;
2,443,869
@RequestMapping(params = "formForUpdate") public ModelAndView formForUpdate(Model model,@RequestParam("groupId") Long groupId ) { log("Action 'formForUpdate'"); TbCfcChecklistMstDto cfcChecklistMstDto = new TbCfcChecklistMstDto(); TbDocumentGroup docGroup=new TbDocumentGroup(); try { tbDocGrouptL...
@RequestMapping(params = STR) ModelAndView function(Model model,@RequestParam(STR) Long groupId ) { log(STR); TbCfcChecklistMstDto cfcChecklistMstDto = new TbCfcChecklistMstDto(); TbDocumentGroup docGroup=new TbDocumentGroup(); try { tbDocGrouptList = tbDocumentGroupMstService.findAllByGroupIdIdOrgId(Long.valueOf(UserS...
/** * Shows a form page in order to update an existing TbCfcChecklistMst * @param model Spring MVC model * @param clmId primary key element * @return */
Shows a form page in order to update an existing TbCfcChecklistMst
formForUpdate
{ "repo_name": "abmindiarepomanager/ABMOpenMainet", "path": "Mainet1.0/MainetServiceParent/MainetServiceCommon/src/main/java/com/abm/mainet/cfc/checklist/ui/controller/TbDocumentMstController.java", "license": "gpl-3.0", "size": 10068 }
[ "com.abm.mainet.cfc.checklist.dto.TbCfcChecklistMstDto", "com.abm.mainet.cfc.checklist.dto.TbDocumentGroup", "com.abm.mainet.common.constant.FormMode", "com.abm.mainet.common.utility.UserSession", "org.springframework.ui.Model", "org.springframework.web.bind.annotation.RequestMapping", "org.springframew...
import com.abm.mainet.cfc.checklist.dto.TbCfcChecklistMstDto; import com.abm.mainet.cfc.checklist.dto.TbDocumentGroup; import com.abm.mainet.common.constant.FormMode; import com.abm.mainet.common.utility.UserSession; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; imp...
import com.abm.mainet.cfc.checklist.dto.*; import com.abm.mainet.common.constant.*; import com.abm.mainet.common.utility.*; import org.springframework.ui.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.*;
[ "com.abm.mainet", "org.springframework.ui", "org.springframework.web" ]
com.abm.mainet; org.springframework.ui; org.springframework.web;
563,803
@Test public void testKafkaPutOneMessagePassedAsString() { // use a unique topic name for this test final String topicName = testName.getMethodName(); variables.put("topic", topicName); // put a message onto the topic - the message is just a string, not a list run("KAFKA_PUT(topic, message1)")...
void function() { final String topicName = testName.getMethodName(); variables.put("topic", topicName); run(STR); Object actual = run(STR); assertEquals(Collections.singletonList(message1), actual); }
/** * KAFKA_PUT should be able to write a message passed as a String, rather than a List. */
KAFKA_PUT should be able to write a message passed as a String, rather than a List
testKafkaPutOneMessagePassedAsString
{ "repo_name": "kylerichardson/incubator-metron", "path": "metron-platform/metron-management/src/test/java/org/apache/metron/management/KafkaFunctionsIntegrationTest.java", "license": "apache-2.0", "size": 25069 }
[ "java.util.Collections", "org.junit.Assert" ]
import java.util.Collections; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
560,851
public void dump(Printer pw, String prefix) { pw.println(prefix + "durationMillis: " + durationMillis); pw.println(prefix + "serviceDetails: " + serviceDetails); } }
void function(Printer pw, String prefix) { pw.println(prefix + STR + durationMillis); pw.println(prefix + STR + serviceDetails); } }
/** * Dump a BatteryInfo instance to a Printer. */
Dump a BatteryInfo instance to a Printer
dump
{ "repo_name": "haikuowuya/android_system_code", "path": "src/android/app/ApplicationErrorReport.java", "license": "apache-2.0", "size": 18893 }
[ "android.util.Printer" ]
import android.util.Printer;
import android.util.*;
[ "android.util" ]
android.util;
240,151
public static void formatNameNode(Configuration conf) throws IOException { String clusterId = StartupOption.FORMAT.getClusterId(); if(clusterId == null || clusterId.isEmpty()) StartupOption.FORMAT.setClusterId("testClusterID"); // Use a copy of conf as it can be altered by namenode during format. ...
static void function(Configuration conf) throws IOException { String clusterId = StartupOption.FORMAT.getClusterId(); if(clusterId == null clusterId.isEmpty()) StartupOption.FORMAT.setClusterId(STR); NameNode.format(new Configuration(conf)); }
/** * when formatting a namenode - we must provide clusterid. * @param conf * @throws IOException */
when formatting a namenode - we must provide clusterid
formatNameNode
{ "repo_name": "soumabrata-chakraborty/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/DFSTestUtil.java", "license": "apache-2.0", "size": 87855 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hdfs.server.common.HdfsServerConstants", "org.apache.hadoop.hdfs.server.namenode.NameNode" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hdfs.server.common.HdfsServerConstants; import org.apache.hadoop.hdfs.server.namenode.NameNode;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hdfs.server.common.*; import org.apache.hadoop.hdfs.server.namenode.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,522,409
public static void injectEntries( DirectoryService service, String ldif ) throws Exception { LdifReader reader = new LdifReader(); List<LdifEntry> entries = reader.parseLdif( ldif ); for ( LdifEntry entry : entries ) { if ( entry.isEntry() ) { ...
static void function( DirectoryService service, String ldif ) throws Exception { LdifReader reader = new LdifReader(); List<LdifEntry> entries = reader.parseLdif( ldif ); for ( LdifEntry entry : entries ) { if ( entry.isEntry() ) { service.getAdminSession().add( new DefaultEntry( service.getSchemaManager(), entry.getEn...
/** * Inject an ldif String into the server. Dn must be relative to the * root. * * @param service the directory service to use * @param ldif the ldif containing entries to add to the server. * @throws NamingException if there is a problem adding the entries from the LDIF */
Inject an ldif String into the server. Dn must be relative to the root
injectEntries
{ "repo_name": "drankye/directory-server", "path": "core-integ/src/main/java/org/apache/directory/server/core/integ/IntegrationUtils.java", "license": "apache-2.0", "size": 18206 }
[ "java.util.List", "javax.naming.NamingException", "org.apache.directory.api.ldap.model.entry.DefaultEntry", "org.apache.directory.api.ldap.model.ldif.LdifEntry", "org.apache.directory.api.ldap.model.ldif.LdifReader", "org.apache.directory.server.core.api.DirectoryService", "org.apache.directory.server.i...
import java.util.List; import javax.naming.NamingException; import org.apache.directory.api.ldap.model.entry.DefaultEntry; import org.apache.directory.api.ldap.model.ldif.LdifEntry; import org.apache.directory.api.ldap.model.ldif.LdifReader; import org.apache.directory.server.core.api.DirectoryService; import org.apach...
import java.util.*; import javax.naming.*; import org.apache.directory.api.ldap.model.entry.*; import org.apache.directory.api.ldap.model.ldif.*; import org.apache.directory.server.core.api.*; import org.apache.directory.server.i18n.*;
[ "java.util", "javax.naming", "org.apache.directory" ]
java.util; javax.naming; org.apache.directory;
949,484
public T caseNamedElement(NamedElement object) { return null; }
T function(NamedElement object) { return null; }
/** * Returns the result of interpreting the object as an instance of '<em>Named Element</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the resu...
Returns the result of interpreting the object as an instance of 'Named Element'. This implementation returns null; returning a non-null result will terminate the switch.
caseNamedElement
{ "repo_name": "uppaal-emf/uppaal", "path": "metamodel/org.muml.uppaal/src/org/muml/uppaal/templates/util/TemplatesSwitch.java", "license": "epl-1.0", "size": 13182 }
[ "org.muml.uppaal.core.NamedElement" ]
import org.muml.uppaal.core.NamedElement;
import org.muml.uppaal.core.*;
[ "org.muml.uppaal" ]
org.muml.uppaal;
816,061
@Transactional(readOnly = true) public Repository findOne(Long id) { log.debug("Request to get Repository : {}", id); Repository repository = repositoryRepository.findOne(id); if(repository!=null) repository.setPassword(PASSWORD_PLACEHOLDER); return repository; }
@Transactional(readOnly = true) Repository function(Long id) { log.debug(STR, id); Repository repository = repositoryRepository.findOne(id); if(repository!=null) repository.setPassword(PASSWORD_PLACEHOLDER); return repository; }
/** * Get one repository by id. * * @param id the id of the entity * @return the entity */
Get one repository by id
findOne
{ "repo_name": "klask-io/klask-io", "path": "src/main/java/io/klask/service/RepositoryService.java", "license": "gpl-3.0", "size": 4165 }
[ "io.klask.domain.Repository", "org.springframework.transaction.annotation.Transactional" ]
import io.klask.domain.Repository; import org.springframework.transaction.annotation.Transactional;
import io.klask.domain.*; import org.springframework.transaction.annotation.*;
[ "io.klask.domain", "org.springframework.transaction" ]
io.klask.domain; org.springframework.transaction;
1,717,420
@Override public void onConnectionSuspended(int cause) { Log.d(LOGTAG, "onConnectionSuspended: googleApiClient suspended: " + cause); }
void function(int cause) { Log.d(LOGTAG, STR + cause); }
/** * (ConnectionCallbacks) * Gets called after googleApiClient.connect() was executed successfully and the api connection is suspended again */
(ConnectionCallbacks) Gets called after googleApiClient.connect() was executed successfully and the api connection is suspended again
onConnectionSuspended
{ "repo_name": "demantz/WearGuitarTuner", "path": "mobile/src/main/java/com/mantz_it/wearguitartuner/MainActivity.java", "license": "gpl-2.0", "size": 18595 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
2,895,579
public AudioPlayer loadFile(String filename, int bufferSize) { AudioPlayer player = null; AudioRecordingStream rec = mimp.getAudioRecordingStream( filename, bufferSize, false ); if ( rec != null ) { AudioFormat format = rec.getFormat(); AudioOut out = mimp.getAudioOutput( format.getChannels(), ...
AudioPlayer function(String filename, int bufferSize) { AudioPlayer player = null; AudioRecordingStream rec = mimp.getAudioRecordingStream( filename, bufferSize, false ); if ( rec != null ) { AudioFormat format = rec.getFormat(); AudioOut out = mimp.getAudioOutput( format.getChannels(), bufferSize, format.getSampleRate...
/** * Loads the requested file into an {@link AudioPlayer} with the request * buffer size. * * @param filename * the file or URL you want to load * @param bufferSize * int: the sample buffer size you want, which determines the * size of the left, right, and mix AudioBu...
Loads the requested file into an <code>AudioPlayer</code> with the request buffer size
loadFile
{ "repo_name": "ddf/Minim", "path": "src/main/java/ddf/minim/Minim.java", "license": "lgpl-3.0", "size": 33573 }
[ "javax.sound.sampled.AudioFormat" ]
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.*;
[ "javax.sound" ]
javax.sound;
2,529,643
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<VpnGatewayInner>> listByResourceGroupNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<VpnGatewayInner>> function(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final String accept = STR; retu...
/** * Get the next page of items. * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked excepti...
Get the next page of items
listByResourceGroupNextSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/VpnGatewaysClientImpl.java", "license": "mit", "size": 124002 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.network.fluent.models.VpnGatewayInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.models.VpnGatewayInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
682,153
private double getLength(final Object gemNr, final String gu, final GerinneGeschlFlaechenReportDialog.Art art) { final List<GmdPartObjGeschl> gemList = gemPartMap.get(gemNr); double length = 0; for (final GmdPartObjGeschl tmp : gemList) { if (tmp.getOwner().equals(gu) && tmp.get...
double function(final Object gemNr, final String gu, final GerinneGeschlFlaechenReportDialog.Art art) { final List<GmdPartObjGeschl> gemList = gemPartMap.get(gemNr); double length = 0; for (final GmdPartObjGeschl tmp : gemList) { if (tmp.getOwner().equals(gu) && tmp.getArt().equals(art.name())) { length += tmp.getLengt...
/** * DOCUMENT ME! * * @param gemNr DOCUMENT ME! * @param gu gew DOCUMENT ME! * @param art DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
getLength
{ "repo_name": "cismet/watergis-client", "path": "src/main/java/de/cismet/watergis/reports/GerinneGFlReport.java", "license": "lgpl-3.0", "size": 159735 }
[ "de.cismet.watergis.gui.dialog.GerinneGeschlFlaechenReportDialog", "de.cismet.watergis.reports.types.GmdPartObjGeschl", "java.util.List" ]
import de.cismet.watergis.gui.dialog.GerinneGeschlFlaechenReportDialog; import de.cismet.watergis.reports.types.GmdPartObjGeschl; import java.util.List;
import de.cismet.watergis.gui.dialog.*; import de.cismet.watergis.reports.types.*; import java.util.*;
[ "de.cismet.watergis", "java.util" ]
de.cismet.watergis; java.util;
489,830
private void removeFile() { ConfirmationDialogFragment confDialog = ConfirmationDialogFragment.newInstance( R.string.confirmation_remove_alert, new String[]{getFile().getFileName()}, R.string.confirmation_remove_remote_and_local, R.string.confi...
void function() { ConfirmationDialogFragment confDialog = ConfirmationDialogFragment.newInstance( R.string.confirmation_remove_alert, new String[]{getFile().getFileName()}, R.string.confirmation_remove_remote_and_local, R.string.confirmation_remove_local, R.string.common_cancel); confDialog.setOnConfirmationListener(th...
/** * Starts a the removal of the previewed file. * * Shows a confirmation dialog. The action continues in {@link #onConfirmation(String)} , {@link #onNeutral(String)} or {@link #onCancel(String)}, * depending upon the user selection in the dialog. */
Starts a the removal of the previewed file. Shows a confirmation dialog. The action continues in <code>#onConfirmation(String)</code> , <code>#onNeutral(String)</code> or <code>#onCancel(String)</code>, depending upon the user selection in the dialog
removeFile
{ "repo_name": "posbit/android", "path": "src/com/owncloud/android/ui/preview/PreviewMediaFragment.java", "license": "gpl-2.0", "size": 27949 }
[ "com.owncloud.android.ui.fragment.ConfirmationDialogFragment" ]
import com.owncloud.android.ui.fragment.ConfirmationDialogFragment;
import com.owncloud.android.ui.fragment.*;
[ "com.owncloud.android" ]
com.owncloud.android;
1,776,301
public static byte[] demo_nop(int repeats) { // nop's StringBuilder sb = new StringBuilder(); for(int i=0; i<repeats; i++) { sb.append("90"); } //return shellcode return DatatypeConverter.parseHexBinary(sb.toString()); }
static byte[] function(int repeats) { StringBuilder sb = new StringBuilder(); for(int i=0; i<repeats; i++) { sb.append("90"); } return DatatypeConverter.parseHexBinary(sb.toString()); }
/** * Injects a NOP (Debugging purposes) * (for 32bit and 64bit OS) * * @param repeats number of nop's */
Injects a NOP (Debugging purposes) (for 32bit and 64bit OS)
demo_nop
{ "repo_name": "3L3N4/peinjector", "path": "peinjector/connectors/java/eu/peinjector/libpe/LibPeShellcodeFactory.java", "license": "unlicense", "size": 26746 }
[ "javax.xml.bind.DatatypeConverter" ]
import javax.xml.bind.DatatypeConverter;
import javax.xml.bind.*;
[ "javax.xml" ]
javax.xml;
2,030,006
@Test public void testDayOfYearNow() { Object result = run("DAY_OF_YEAR()"); assertEquals(calendar.get(Calendar.DAY_OF_YEAR), result); }
void function() { Object result = run(STR); assertEquals(calendar.get(Calendar.DAY_OF_YEAR), result); }
/** * If no argument, then return the current day of year. */
If no argument, then return the current day of year
testDayOfYearNow
{ "repo_name": "cestella/incubator-metron", "path": "metron-stellar/stellar-common/src/test/java/org/apache/metron/stellar/dsl/functions/DateFunctionsTest.java", "license": "apache-2.0", "size": 6058 }
[ "java.util.Calendar", "org.junit.Assert" ]
import java.util.Calendar; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
2,661,084
public void read_boolean_array(boolean[] x, int offs, int len) { try { for (int i = offs; i < offs + len; i++) { x[i] = b.read() == 0 ? false : true; } } catch (EOFException ex) { MARSHAL t = new MARSHAL(UNEXP_EOF); t.minor = Minor.EO...
void function(boolean[] x, int offs, int len) { try { for (int i = offs; i < offs + len; i++) { x[i] = b.read() == 0 ? false : true; } } catch (EOFException ex) { MARSHAL t = new MARSHAL(UNEXP_EOF); t.minor = Minor.EOF; t.initCause(ex); throw t; } catch (IOException ex) { throw new Unexpected(ex); } }
/** * Read the array of boolean. */
Read the array of boolean
read_boolean_array
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/gnu/CORBA/CDR/AbstractCdrInput.java", "license": "gpl-2.0", "size": 45659 }
[ "java.io.EOFException", "java.io.IOException" ]
import java.io.EOFException; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
899,898
private void emptyTestDirectory() { // Delete the files in the /tmp/QVCSTestFiles directory. File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY)); File[] files = tempDirectory.listFiles(); if (files != null) { for (File file : files) { ...
void function() { File tempDirectory = new File(TestHelper.buildTestDirectoryName(TEST_SUBDIRECTORY)); File[] files = tempDirectory.listFiles(); if (files != null) { for (File file : files) { if (file.isDirectory()) { File[] subFiles = file.listFiles(); for (File subFile : subFiles) { if (subFile.isDirectory()) { File[...
/** * Clean out the test directory. This is not fully recursive, since we don't want a run-away delete to wipe out all the contents of the disk by mistake. */
Clean out the test directory. This is not fully recursive, since we don't want a run-away delete to wipe out all the contents of the disk by mistake
emptyTestDirectory
{ "repo_name": "jimv39/qvcsos", "path": "qvcse-server/src/test/java/com/qumasoft/qvcslib/QVCSAntTaskBServerTest.java", "license": "apache-2.0", "size": 6824 }
[ "com.qumasoft.TestHelper", "java.io.File" ]
import com.qumasoft.TestHelper; import java.io.File;
import com.qumasoft.*; import java.io.*;
[ "com.qumasoft", "java.io" ]
com.qumasoft; java.io;
60,599
public Observable<ServiceResponse<Void>> beginDeleteWithServiceResponseAsync(String resourceGroupName, String galleryName, String galleryImageName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be n...
Observable<ServiceResponse<Void>> function(String resourceGroupName, String galleryName, String galleryImageName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (galleryName == null) { throw new Ille...
/** * Delete a gallery image. * * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery in which the Image Definition is to be deleted. * @param galleryImageName The name of the gallery Image Definition to be deleted. * @throws I...
Delete a gallery image
beginDeleteWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/compute/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/compute/v2019_11_01/implementation/GalleryImagesInner.java", "license": "mit", "size": 61699 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
541,516
public Resource getStateValue() { return stateValue; } } public static class Continuous { private final OffsetDateTime timestamp; private final List<Literal> stateValues; public Continuous(final String timestamp, final List<RDFNode> stateValue...
Resource function() { return stateValue; } } public static class Continuous { private final OffsetDateTime timestamp; private final List<Literal> stateValues; public Continuous(final String timestamp, final List<RDFNode> stateValues) throws MultiException { final MultiException.ExceptionStack exceptionStack = Precondit...
/** * Method returns the state value of the state change. * * @return the state value as rdf resource. */
Method returns the state value of the state change
getStateValue
{ "repo_name": "openbase/bco.ontology.lib", "path": "src/main/java/org/openbase/bco/ontology/lib/manager/aggregation/datatype/OntStateChangeTypes.java", "license": "lgpl-3.0", "size": 16106 }
[ "java.time.OffsetDateTime", "java.util.ArrayList", "java.util.List", "org.apache.jena.rdf.model.Literal", "org.apache.jena.rdf.model.RDFNode", "org.apache.jena.rdf.model.Resource", "org.openbase.bco.ontology.lib.utility.Preconditions", "org.openbase.jul.exception.MultiException" ]
import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; import org.apache.jena.rdf.model.Literal; import org.apache.jena.rdf.model.RDFNode; import org.apache.jena.rdf.model.Resource; import org.openbase.bco.ontology.lib.utility.Preconditions; import org.openbase.jul.exception.MultiException;
import java.time.*; import java.util.*; import org.apache.jena.rdf.model.*; import org.openbase.bco.ontology.lib.utility.*; import org.openbase.jul.exception.*;
[ "java.time", "java.util", "org.apache.jena", "org.openbase.bco", "org.openbase.jul" ]
java.time; java.util; org.apache.jena; org.openbase.bco; org.openbase.jul;
33,388
public List<IClass> getAllSubclasses();
List<IClass> function();
/** * Returns all sub-classes including sub-classes of its sub-classes. */
Returns all sub-classes including sub-classes of its sub-classes
getAllSubclasses
{ "repo_name": "ritterliu/AutoMemoryAnalysis", "path": "src/org/eclipse/mat/snapshot/model/IClass.java", "license": "apache-2.0", "size": 2942 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
803,237
protected List<ModelOperation> createInstanceOperations_GetElementByCriteria(Element element, boolean interfaceOnly) { List<ModelOperation> modelOperations = new ArrayList<ModelOperation>(); ModelOperation modelOperation = createInstanceOperation_GetElementByCriteria(element, interfaceOnly); modelOperations.ad...
List<ModelOperation> function(Element element, boolean interfaceOnly) { List<ModelOperation> modelOperations = new ArrayList<ModelOperation>(); ModelOperation modelOperation = createInstanceOperation_GetElementByCriteria(element, interfaceOnly); modelOperations.add(modelOperation); return modelOperations; }
/** * GetElementByCriteria operations * ----------------------------------- */
GetElementByCriteria operations -----------------------------------
createInstanceOperations_GetElementByCriteria
{ "repo_name": "tfisher1226/ARIES", "path": "nam/nam-engine/src/main/java/aries/codegen/AbstractManagementBeanBuilder.java", "license": "apache-2.0", "size": 61221 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
196,020
public IChoiceRenderer<? super T> getChoiceRenderer() { return this.choiceRenderer; }
IChoiceRenderer<? super T> function() { return this.choiceRenderer; }
/** * Returns the IChoiceRenderer that was passed to the constructor. */
Returns the IChoiceRenderer that was passed to the constructor
getChoiceRenderer
{ "repo_name": "55minutes/fiftyfive-wicket", "path": "fiftyfive-wicket-core/src/main/java/fiftyfive/wicket/form/ChoicesListView.java", "license": "apache-2.0", "size": 3365 }
[ "org.apache.wicket.markup.html.form.IChoiceRenderer" ]
import org.apache.wicket.markup.html.form.IChoiceRenderer;
import org.apache.wicket.markup.html.form.*;
[ "org.apache.wicket" ]
org.apache.wicket;
1,449,948
public boolean delete(E e) { // Locate the node to be deleted TreeNode<E> current = root; while (current != null) { if (e.compareTo(current.element) < 0) { current = current.left; } else if (e.compareTo(current.element) > 0) { cu...
boolean function(E e) { TreeNode<E> current = root; while (current != null) { if (e.compareTo(current.element) < 0) { current = current.left; } else if (e.compareTo(current.element) > 0) { current = current.right; } else { break; } } if (current == null) { return false; } ArrayList<TreeNode<E>> path; if (current.left !...
/** * Delete an element from the RBTree. * Return true if the element is deleted successfully * Return false if the element is not in the tree */
Delete an element from the RBTree. Return true if the element is deleted successfully Return false if the element is not in the tree
delete
{ "repo_name": "jengowong/java_program_design_10", "path": "src/main/java/com/github/jengo/java/program/design10/ch25/RBTree.java", "license": "apache-2.0", "size": 13291 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
223,656
protected void updatePeerEurekaNodes(List<String> newPeerUrls) { if (newPeerUrls.isEmpty()) { logger.warn("The replica size seems to be empty. Check the route 53 DNS Registry"); return; } Set<String> toShutdown = new HashSet<>(peerEurekaNodeUrls); toShutdown....
void function(List<String> newPeerUrls) { if (newPeerUrls.isEmpty()) { logger.warn(STR); return; } Set<String> toShutdown = new HashSet<>(peerEurekaNodeUrls); toShutdown.removeAll(newPeerUrls); Set<String> toAdd = new HashSet<>(newPeerUrls); toAdd.removeAll(peerEurekaNodeUrls); if (toShutdown.isEmpty() && toAdd.isEmpty...
/** * Given new set of replica URLs, destroy {@link PeerEurekaNode}s no longer available, and * create new ones. * * @param newPeerUrls peer node URLs; this collection should have local node's URL filtered out */
Given new set of replica URLs, destroy <code>PeerEurekaNode</code>s no longer available, and create new ones
updatePeerEurekaNodes
{ "repo_name": "jkschneider/eureka", "path": "eureka-core/src/main/java/com/netflix/eureka/cluster/PeerEurekaNodes.java", "license": "apache-2.0", "size": 8170 }
[ "java.util.ArrayList", "java.util.HashSet", "java.util.List", "java.util.Set" ]
import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
70,383
public void updateRequestByAddingReplaceVarPairNodeSpecific( ParallelTask task, Map<String, StrStrMap> replacementVarMapNodeSpecific ) { Map<String, NodeReqResponse> taskResult = task.getParallelTaskResult(); for (Entry<String, NodeReqResponse> entry : taskResult.entry...
void function( ParallelTask task, Map<String, StrStrMap> replacementVarMapNodeSpecific ) { Map<String, NodeReqResponse> taskResult = task.getParallelTaskResult(); for (Entry<String, NodeReqResponse> entry : taskResult.entrySet()) { String fqdn = entry.getKey(); StrStrMap replacementVarMapForThisNode = replacementVarMap...
/** * * Will change replacementVarMapNodeSpecific according to each node * specifically * * With KEY set as NA; will not run the command ONLY if the NA is * the last replacement; note in this logic; when it is not NA; will set AS * True. * * @param task * t...
Will change replacementVarMapNodeSpecific according to each node specifically With KEY set as NA; will not run the command ONLY if the NA is the last replacement; note in this logic; when it is not NA; will set AS True
updateRequestByAddingReplaceVarPairNodeSpecific
{ "repo_name": "eBay/parallec", "path": "src/main/java/io/parallec/core/commander/workflow/VarReplacementProvider.java", "license": "apache-2.0", "size": 9114 }
[ "io.parallec.core.ParallelTask", "io.parallec.core.actor.message.NodeReqResponse", "io.parallec.core.bean.StrStrMap", "io.parallec.core.util.PcConstants", "io.parallec.core.util.PcDateUtils", "java.util.Map" ]
import io.parallec.core.ParallelTask; import io.parallec.core.actor.message.NodeReqResponse; import io.parallec.core.bean.StrStrMap; import io.parallec.core.util.PcConstants; import io.parallec.core.util.PcDateUtils; import java.util.Map;
import io.parallec.core.*; import io.parallec.core.actor.message.*; import io.parallec.core.bean.*; import io.parallec.core.util.*; import java.util.*;
[ "io.parallec.core", "java.util" ]
io.parallec.core; java.util;
444,138
public File index() { return new File(file.getParentFile(), file.getName().substring(0, file.getName().lastIndexOf('.') + 1) + "index"); }
File function() { return new File(file.getParentFile(), file.getName().substring(0, file.getName().lastIndexOf('.') + 1) + "index"); }
/** * Returns the segment index file. * * @return The segment index file. */
Returns the segment index file
index
{ "repo_name": "arnonmoscona/copycat", "path": "storage/src/main/java/net/kuujo/copycat/io/storage/SegmentFile.java", "license": "apache-2.0", "size": 3008 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
913,327
public void handleUpdateTileEntity(SPacketUpdateTileEntity packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); if (this.gameController.world.isBlockLoaded(packetIn.getPos())) { TileEntity tileentity = this.gameController.world.getTileEnti...
void function(SPacketUpdateTileEntity packetIn) { PacketThreadUtil.checkThreadAndEnqueue(packetIn, this, this.gameController); if (this.gameController.world.isBlockLoaded(packetIn.getPos())) { TileEntity tileentity = this.gameController.world.getTileEntity(packetIn.getPos()); int i = packetIn.getTileEntityType(); boole...
/** * Updates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks, * beacons, skulls, flowerpot */
Updates the NBTTagCompound metadata of instances of the following entitytypes: Mob spawners, command blocks, beacons, skulls, flowerpot
handleUpdateTileEntity
{ "repo_name": "ThePantsThief/Zombe-Modpack", "path": "source/net/minecraft/client/network/NetHandlerPlayClient.java", "license": "gpl-3.0", "size": 98980 }
[ "net.minecraft.client.gui.GuiCommandBlock", "net.minecraft.network.PacketThreadUtil", "net.minecraft.network.play.server.SPacketUpdateTileEntity", "net.minecraft.tileentity.TileEntity", "net.minecraft.tileentity.TileEntityBanner", "net.minecraft.tileentity.TileEntityBeacon", "net.minecraft.tileentity.Ti...
import net.minecraft.client.gui.GuiCommandBlock; import net.minecraft.network.PacketThreadUtil; import net.minecraft.network.play.server.SPacketUpdateTileEntity; import net.minecraft.tileentity.TileEntity; import net.minecraft.tileentity.TileEntityBanner; import net.minecraft.tileentity.TileEntityBeacon; import net.min...
import net.minecraft.client.gui.*; import net.minecraft.network.*; import net.minecraft.network.play.server.*; import net.minecraft.tileentity.*;
[ "net.minecraft.client", "net.minecraft.network", "net.minecraft.tileentity" ]
net.minecraft.client; net.minecraft.network; net.minecraft.tileentity;
1,748,434
@ThreadConfined(type = ThreadConfined.ThreadType.JFX) private void showInListView(ViewInTimelineRequestedEvent requestEvent) { synchronized (filteredEvents) { setViewMode(ViewMode.LIST); selectEventIDs(requestEvent.getEventIDs()); if (pushTimeRange(requestEvent.getInt...
@ThreadConfined(type = ThreadConfined.ThreadType.JFX) void function(ViewInTimelineRequestedEvent requestEvent) { synchronized (filteredEvents) { setViewMode(ViewMode.LIST); selectEventIDs(requestEvent.getEventIDs()); if (pushTimeRange(requestEvent.getInterval()) == false) { eventbus.post(requestEvent); } } }
/** * Show the events and the amount of time indicated in the given * ViewInTimelineRequestedEvent in the List View. * * @param requestEvent Contains the ID of the requested events and the * timerange to show. */
Show the events and the amount of time indicated in the given ViewInTimelineRequestedEvent in the List View
showInListView
{ "repo_name": "millmanorama/autopsy", "path": "Core/src/org/sleuthkit/autopsy/timeline/TimeLineController.java", "license": "apache-2.0", "size": 43142 }
[ "org.sleuthkit.autopsy.coreutils.ThreadConfined", "org.sleuthkit.autopsy.timeline.events.ViewInTimelineRequestedEvent" ]
import org.sleuthkit.autopsy.coreutils.ThreadConfined; import org.sleuthkit.autopsy.timeline.events.ViewInTimelineRequestedEvent;
import org.sleuthkit.autopsy.coreutils.*; import org.sleuthkit.autopsy.timeline.events.*;
[ "org.sleuthkit.autopsy" ]
org.sleuthkit.autopsy;
562,631
final String SCHEMA_VERSION = "1.3.0"; directory = temporaryFolder.newFolder("pxMessage"); submissionFile = new File("src/test/resources/submission.px"); MessageWriter messageWriter = Util.getSchemaStrategy(SCHEMA_VERSION); File file = messageWriter.createIntialPxXml(submissionFile, dire...
final String SCHEMA_VERSION = "1.3.0"; directory = temporaryFolder.newFolder(STR); submissionFile = new File(STR); MessageWriter messageWriter = Util.getSchemaStrategy(SCHEMA_VERSION); File file = messageWriter.createIntialPxXml(submissionFile, directory, STR, STR, SCHEMA_VERSION); errorOutput = ValidateMessage.validat...
/** * Sets up unit test * @throws Exception */
Sets up unit test
setUp
{ "repo_name": "PRIDE-Archive/archive-px-xml-generator", "path": "src/test/java/uk/ac/ebi/pride/archive/px/ValidateMessageOnePointThreeTest.java", "license": "apache-2.0", "size": 1525 }
[ "java.io.File", "uk.ac.ebi.pride.archive.px.writer.MessageWriter" ]
import java.io.File; import uk.ac.ebi.pride.archive.px.writer.MessageWriter;
import java.io.*; import uk.ac.ebi.pride.archive.px.writer.*;
[ "java.io", "uk.ac.ebi" ]
java.io; uk.ac.ebi;
1,379,359
public static SSLSocketFactory getDefault(int handshakeTimeoutMillis, SSLSessionCache cache) { return new SSLCertificateSocketFactory(handshakeTimeoutMillis, cache, true); }
static SSLSocketFactory function(int handshakeTimeoutMillis, SSLSessionCache cache) { return new SSLCertificateSocketFactory(handshakeTimeoutMillis, cache, true); }
/** * Returns a new socket factory instance with an optional handshake timeout * and SSL session cache. * * @param handshakeTimeoutMillis to use for SSL connection handshake, or 0 * for none. The socket timeout is reset to 0 after the handshake. * @param cache The {@link SSLSessio...
Returns a new socket factory instance with an optional handshake timeout and SSL session cache
getDefault
{ "repo_name": "haikuowuya/android_system_code", "path": "src/android/net/SSLCertificateSocketFactory.java", "license": "apache-2.0", "size": 19572 }
[ "javax.net.ssl.SSLSocketFactory" ]
import javax.net.ssl.SSLSocketFactory;
import javax.net.ssl.*;
[ "javax.net" ]
javax.net;
787,842
@Override public ArrayList<String> getSurrogates() { //System.out.println(this.term); ArrayList<String> surros; surros=getSurrogates("wide"); surros.addAll(this.getSurrogates("narrowed")); //System.out.println(surros); return surros; }
ArrayList<String> function() { ArrayList<String> surros; surros=getSurrogates("wide"); surros.addAll(this.getSurrogates(STR)); return surros; }
/** * Retrieve the terms related to the surrogate.term in the model. * @return An array of terms related to this.term in all modes */
Retrieve the terms related to the surrogate.term in the model
getSurrogates
{ "repo_name": "guillem72/jSentVar", "path": "src/jsentvar/Surrogate.java", "license": "gpl-3.0", "size": 4697 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
388,284
protected Object populate(final Object obj) throws Exception { // loop through all the beans methods and set its properties from its .properties file Map<String, String> map = new HashMap<String, String>(); for (Enumeration<String> keys = rb.getKeys(); keys.hasMoreElements();) { ...
Object function(final Object obj) throws Exception { Map<String, String> map = new HashMap<String, String>(); for (Enumeration<String> keys = rb.getKeys(); keys.hasMoreElements();) { String key = keys.nextElement(); map.put(key, rb.getString(key)); } BeanUtils.copyProperties(obj, map); return obj; }
/** * Utility method to populate a javabean-style object with values * from a Properties file * * @param obj the model object to populate * @return Object populated object * @throws Exception if BeanUtils fails to copy properly */
Utility method to populate a javabean-style object with values from a Properties file
populate
{ "repo_name": "dlwhitehurst/MusicRecital", "path": "src/test/java/org/musicrecital/dao/BaseDaoTestCase.java", "license": "apache-2.0", "size": 3825 }
[ "java.util.Enumeration", "java.util.HashMap", "java.util.Map", "org.apache.commons.beanutils.BeanUtils" ]
import java.util.Enumeration; import java.util.HashMap; import java.util.Map; import org.apache.commons.beanutils.BeanUtils;
import java.util.*; import org.apache.commons.beanutils.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
2,309,126
public ServiceFuture<String> stopPacketCaptureAsync(String resourceGroupName, String virtualNetworkGatewayConnectionName, String sasUrl, final ServiceCallback<String> serviceCallback) { return ServiceFuture.fromResponse(stopPacketCaptureWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnec...
ServiceFuture<String> function(String resourceGroupName, String virtualNetworkGatewayConnectionName, String sasUrl, final ServiceCallback<String> serviceCallback) { return ServiceFuture.fromResponse(stopPacketCaptureWithServiceResponseAsync(resourceGroupName, virtualNetworkGatewayConnectionName, sasUrl), serviceCallbac...
/** * Stops packet capture on virtual network gateway connection in the specified resource group. * * @param resourceGroupName The name of the resource group. * @param virtualNetworkGatewayConnectionName The name of the virtual network gateway Connection. * @param sasUrl SAS url for packet capt...
Stops packet capture on virtual network gateway connection in the specified resource group
stopPacketCaptureAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/network/v2019_07_01/implementation/VirtualNetworkGatewayConnectionsInner.java", "license": "mit", "size": 146427 }
[ "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;
508,015
public final MetaProperty<CurrencyBean> paymentCurrency() { return _paymentCurrency; }
final MetaProperty<CurrencyBean> function() { return _paymentCurrency; }
/** * The meta-property for the {@code paymentCurrency} property. * @return the meta-property, not null */
The meta-property for the paymentCurrency property
paymentCurrency
{ "repo_name": "codeaudit/OG-Platform", "path": "projects/OG-MasterDB/src/main/java/com/opengamma/masterdb/security/hibernate/option/NonDeliverableFXDigitalOptionSecurityBean.java", "license": "apache-2.0", "size": 19705 }
[ "com.opengamma.masterdb.security.hibernate.CurrencyBean", "org.joda.beans.MetaProperty" ]
import com.opengamma.masterdb.security.hibernate.CurrencyBean; import org.joda.beans.MetaProperty;
import com.opengamma.masterdb.security.hibernate.*; import org.joda.beans.*;
[ "com.opengamma.masterdb", "org.joda.beans" ]
com.opengamma.masterdb; org.joda.beans;
127,885
private void readName(StringTokenizer line){ StringTokenizer data = new StringTokenizer(line.nextToken(), " = \" "); data.nextToken(); algorithmName = new String(data.nextToken()); while(data.hasMoreTokens()){ algorithmName += " "+data.nextToken(); //We read the algorithm...
void function(StringTokenizer line){ StringTokenizer data = new StringTokenizer(line.nextToken(), STR STR "+data.nextToken(); } }
/** * It reads the name of the algorithm from the configuration file * @param line StringTokenizer It is the line containing the algorithm name. */
It reads the name of the algorithm from the configuration file
readName
{ "repo_name": "adofsauron/KEEL", "path": "src/keel/Algorithms/Genetic_Rule_Learning/GIL/parseParameters.java", "license": "gpl-3.0", "size": 6604 }
[ "java.util.StringTokenizer" ]
import java.util.StringTokenizer;
import java.util.*;
[ "java.util" ]
java.util;
324,309
void endSnapshot(SnapshotsInProgress.Entry entry) { endSnapshot(entry, null); }
void endSnapshot(SnapshotsInProgress.Entry entry) { endSnapshot(entry, null); }
/** * Finalizes the shard in repository and then removes it from cluster state * <p> * This is non-blocking method that runs on a thread from SNAPSHOT thread pool * * @param entry snapshot */
Finalizes the shard in repository and then removes it from cluster state This is non-blocking method that runs on a thread from SNAPSHOT thread pool
endSnapshot
{ "repo_name": "henakamaMSFT/elasticsearch", "path": "core/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java", "license": "apache-2.0", "size": 81209 }
[ "org.elasticsearch.cluster.SnapshotsInProgress" ]
import org.elasticsearch.cluster.SnapshotsInProgress;
import org.elasticsearch.cluster.*;
[ "org.elasticsearch.cluster" ]
org.elasticsearch.cluster;
2,299,541
public void initializeJobLogDir(JobID jobId) { File jobUserLogDir = TaskLog.getJobDir(jobId); if (!jobUserLogDir.exists()) { boolean ret = jobUserLogDir.mkdirs(); if (!ret) { LOG.warn("Could not create job user log directory: " + jobUserLogDir); return; } } Localizer....
void function(JobID jobId) { File jobUserLogDir = TaskLog.getJobDir(jobId); if (!jobUserLogDir.exists()) { boolean ret = jobUserLogDir.mkdirs(); if (!ret) { LOG.warn(STR + jobUserLogDir); return; } } Localizer.PermissionsHandler.setPermissions(jobUserLogDir, Localizer.PermissionsHandler.sevenZeroZero); }
/** * Create job log directory and set appropriate permissions for the directory. * * @param jobId */
Create job log directory and set appropriate permissions for the directory
initializeJobLogDir
{ "repo_name": "jayantgolhar/Hadoop-0.21.0", "path": "mapred/src/java/org/apache/hadoop/mapreduce/server/tasktracker/Localizer.java", "license": "apache-2.0", "size": 13598 }
[ "java.io.File", "org.apache.hadoop.mapred.TaskLog", "org.apache.hadoop.mapreduce.JobID" ]
import java.io.File; import org.apache.hadoop.mapred.TaskLog; import org.apache.hadoop.mapreduce.JobID;
import java.io.*; import org.apache.hadoop.mapred.*; import org.apache.hadoop.mapreduce.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,119,204
EClass getPseudostate();
EClass getPseudostate();
/** * Returns the meta object for class '{@link org.yakindu.sct.model.sgraph.Pseudostate <em>Pseudostate</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Pseudostate</em>'. * @see org.yakindu.sct.model.sgraph.Pseudostate * @generated */
Returns the meta object for class '<code>org.yakindu.sct.model.sgraph.Pseudostate Pseudostate</code>'.
getPseudostate
{ "repo_name": "Yakindu/statecharts", "path": "plugins/org.yakindu.sct.model.sgraph/src/org/yakindu/sct/model/sgraph/SGraphPackage.java", "license": "epl-1.0", "size": 72772 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,162,621
pointerId = event.getPointerId(0); if (velocityTracker == null) { velocityTracker = VelocityTracker.obtain(); } else { velocityTracker.clear(); } velocityTracker.addMovement(event); onDown(event); }
pointerId = event.getPointerId(0); if (velocityTracker == null) { velocityTracker = VelocityTracker.obtain(); } else { velocityTracker.clear(); } velocityTracker.addMovement(event); onDown(event); }
/** * Handles, when a drag gesture has been started. * * @param event * The motion event, which started the drag gesture, as an instance of the class {@link * MotionEvent}. The motion event may not be null */
Handles, when a drag gesture has been started
handleDown
{ "repo_name": "michael-rapp/ChromeLikeTabSwitcher", "path": "library/src/main/java/de/mrapp/android/tabswitcher/gesture/AbstractTouchEventHandler.java", "license": "apache-2.0", "size": 12594 }
[ "android.view.VelocityTracker" ]
import android.view.VelocityTracker;
import android.view.*;
[ "android.view" ]
android.view;
1,219,324
public static void checkEnabled(Context context, AppWidgetManager manager) { sEnabled = manager.getAppWidgetIds(new ComponentName(context, FourWhiteWidget.class)).length != 0; }
static void function(Context context, AppWidgetManager manager) { sEnabled = manager.getAppWidgetIds(new ComponentName(context, FourWhiteWidget.class)).length != 0; }
/** * Check if there are any instances of this widget placed. */
Check if there are any instances of this widget placed
checkEnabled
{ "repo_name": "BlackSynergy/titan-source", "path": "src/com/nachiket/titan/FourWhiteWidget.java", "license": "gpl-2.0", "size": 5686 }
[ "android.appwidget.AppWidgetManager", "android.content.ComponentName", "android.content.Context" ]
import android.appwidget.AppWidgetManager; import android.content.ComponentName; import android.content.Context;
import android.appwidget.*; import android.content.*;
[ "android.appwidget", "android.content" ]
android.appwidget; android.content;
2,711,335
public Map<String, Class> getLoadedClasses() { return Collections.unmodifiableMap( classes ); }
Map<String, Class> function() { return Collections.unmodifiableMap( classes ); }
/** * Returns all JCL-loaded classes as an immutable Map * * @return Map */
Returns all JCL-loaded classes as an immutable Map
getLoadedClasses
{ "repo_name": "agilesites/agilesites2-lib", "path": "core/src/main/java/org/xeustechnologies/jcl/JarClassLoader.java", "license": "mit", "size": 9418 }
[ "java.util.Collections", "java.util.Map" ]
import java.util.Collections; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,764,278
private static boolean validateJSONObjKey(String key, org.json.JSONObject endpointObj) { return endpointObj.has(key) && endpointObj.get(key) instanceof String && StringUtils.isNotEmpty(endpointObj.getString(key)); }
static boolean function(String key, org.json.JSONObject endpointObj) { return endpointObj.has(key) && endpointObj.get(key) instanceof String && StringUtils.isNotEmpty(endpointObj.getString(key)); }
/** * Checks if a given key is available in the endpoint config and if it's value is a valid String. * * @param key Key that needs to be validated * @param endpointObj Endpoint config JSON object * @return True if the given key is available with a valid String value */
Checks if a given key is available in the endpoint config and if it's value is a valid String
validateJSONObjKey
{ "repo_name": "isharac/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/TemplateBuilderUtil.java", "license": "apache-2.0", "size": 79685 }
[ "org.apache.commons.lang3.StringUtils", "org.json.simple.JSONObject" ]
import org.apache.commons.lang3.StringUtils; import org.json.simple.JSONObject;
import org.apache.commons.lang3.*; import org.json.simple.*;
[ "org.apache.commons", "org.json.simple" ]
org.apache.commons; org.json.simple;
367,622
@Test public void testCustomEntryIdleReset() { final String name = this.getUniqueName(); final int timeout = 200 * 1000; // ms final String key1 = "KEY1"; final String value = "VALUE"; RegionFactory<Object, Object> factory = getCache().createRegionFactory(getRegionAttributes()); Expiration...
void function() { final String name = this.getUniqueName(); final int timeout = 200 * 1000; final String key1 = "KEY1"; final String value = "VALUE"; RegionFactory<Object, Object> factory = getCache().createRegionFactory(getRegionAttributes()); ExpirationAttributes expire = new ExpirationAttributes(timeout, ExpirationA...
/** * Verify that a get or put resets the idle time on an entry */
Verify that a get or put resets the idle time on an entry
testCustomEntryIdleReset
{ "repo_name": "smgoller/geode", "path": "geode-dunit/src/main/java/org/apache/geode/cache30/RegionTestCase.java", "license": "apache-2.0", "size": 114817 }
[ "java.lang.System", "org.apache.geode.cache.ExpirationAction", "org.apache.geode.cache.ExpirationAttributes", "org.apache.geode.cache.Region", "org.apache.geode.cache.RegionFactory", "org.apache.geode.internal.cache.EntryExpiryTask", "org.apache.geode.internal.cache.ExpiryTask", "org.apache.geode.inte...
import java.lang.System; import org.apache.geode.cache.ExpirationAction; import org.apache.geode.cache.ExpirationAttributes; import org.apache.geode.cache.Region; import org.apache.geode.cache.RegionFactory; import org.apache.geode.internal.cache.EntryExpiryTask; import org.apache.geode.internal.cache.ExpiryTask; impor...
import java.lang.*; import org.apache.geode.cache.*; import org.apache.geode.internal.cache.*; import org.apache.geode.test.dunit.*; import org.junit.*;
[ "java.lang", "org.apache.geode", "org.junit" ]
java.lang; org.apache.geode; org.junit;
1,099,412
private static String generateRandomDeviceId() { // Mark random IDs to be able to identify them. String randomId = UUID.randomUUID().toString() + "-LP"; Log.d("Using generated device id: " + randomId); return randomId; }
static String function() { String randomId = UUID.randomUUID().toString() + "-LP"; Log.d(STR + randomId); return randomId; }
/** * Final fallback device id -- generate a random device id. */
Final fallback device id -- generate a random device id
generateRandomDeviceId
{ "repo_name": "Leanplum/Leanplum-Android-SDK", "path": "AndroidSDKCore/src/main/java/com/leanplum/internal/Util.java", "license": "apache-2.0", "size": 23436 }
[ "java.util.UUID" ]
import java.util.UUID;
import java.util.*;
[ "java.util" ]
java.util;
814,642
@Override public String[] list() { String[] list =_file.list(); if (list==null) return null; for (int i=list.length;i-->0;) { if (new File(_file,list[i]).isDirectory() && !list[i].endsWith("/")) list[i]+="/"; ...
String[] function() { String[] list =_file.list(); if (list==null) return null; for (int i=list.length;i-->0;) { if (new File(_file,list[i]).isDirectory() && !list[i].endsWith("/")) list[i]+="/"; } return list; }
/** * Returns a list of resources contained in the given resource */
Returns a list of resources contained in the given resource
list
{ "repo_name": "mabrek/jetty", "path": "jetty-util/src/main/java/org/eclipse/jetty/util/resource/FileResource.java", "license": "apache-2.0", "size": 11526 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,420,559
public final Property<ZonedDateTimeBean> tradeDate() { return metaBean().tradeDate().createProperty(this); }
final Property<ZonedDateTimeBean> function() { return metaBean().tradeDate().createProperty(this); }
/** * Gets the the {@code tradeDate} property. * @return the property, not null */
Gets the the tradeDate property
tradeDate
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-MasterDB/src/main/java/com/opengamma/masterdb/security/hibernate/swap/SwapSecurityBean.java", "license": "apache-2.0", "size": 24017 }
[ "com.opengamma.masterdb.security.hibernate.ZonedDateTimeBean", "org.joda.beans.Property" ]
import com.opengamma.masterdb.security.hibernate.ZonedDateTimeBean; import org.joda.beans.Property;
import com.opengamma.masterdb.security.hibernate.*; import org.joda.beans.*;
[ "com.opengamma.masterdb", "org.joda.beans" ]
com.opengamma.masterdb; org.joda.beans;
703,299
boolean checkable = !(drawerItem != null && drawerItem instanceof Selectable && !((Selectable) drawerItem).isSelectable()); if (checkable) { drawer.resetStickyFooterSelection(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { v.setActivated(true); ...
boolean checkable = !(drawerItem != null && drawerItem instanceof Selectable && !((Selectable) drawerItem).isSelectable()); if (checkable) { drawer.resetStickyFooterSelection(); if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { v.setActivated(true); } v.setSelected(true); drawer.getAdapter().handleSelection...
/** * helper method to handle the onClick of the footer * * @param drawer * @param drawerItem * @param v * @param fireOnClick true if we should call the listener, false if not, null to not call the listener and not close the drawer */
helper method to handle the onClick of the footer
onFooterDrawerItemClick
{ "repo_name": "FWest98/MaterialDrawer", "path": "library/src/main/java/com/mikepenz/materialdrawer/DrawerUtils.java", "license": "apache-2.0", "size": 19309 }
[ "android.os.Build", "android.widget.LinearLayout", "com.mikepenz.materialdrawer.model.interfaces.Selectable" ]
import android.os.Build; import android.widget.LinearLayout; import com.mikepenz.materialdrawer.model.interfaces.Selectable;
import android.os.*; import android.widget.*; import com.mikepenz.materialdrawer.model.interfaces.*;
[ "android.os", "android.widget", "com.mikepenz.materialdrawer" ]
android.os; android.widget; com.mikepenz.materialdrawer;
407,900
@ServiceMethod(returns = ReturnType.SINGLE) CheckNameAvailabilityResultInner checkNameAvailability(String resourceGroupName, String namespaceName, String name);
@ServiceMethod(returns = ReturnType.SINGLE) CheckNameAvailabilityResultInner checkNameAvailability(String resourceGroupName, String namespaceName, String name);
/** * Check the give namespace name availability. * * @param resourceGroupName Name of the Resource group within the Azure subscription. * @param namespaceName The namespace name. * @param name The Name to check the namespace name availability and The namespace name can contain only letters, ...
Check the give namespace name availability
checkNameAvailability
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-servicebus/src/main/java/com/azure/resourcemanager/servicebus/fluent/DisasterRecoveryConfigsClient.java", "license": "mit", "size": 35020 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.resourcemanager.servicebus.fluent.models.CheckNameAvailabilityResultInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.servicebus.fluent.models.CheckNameAvailabilityResultInner;
import com.azure.core.annotation.*; import com.azure.resourcemanager.servicebus.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,117,509
private void checkIfButtonsEnabled() { removeCategoryColorButton.setEnabled(nominalColorListModel.getSize() > 2); boolean enableSchemeRemove = !((ColorScheme) colorSchemeComboBox.getSelectedItem()).getName() .equals(I18N.getGUILabel("plotter.default_color_scheme_name.label")); removeSchemeButton.setEna...
void function() { removeCategoryColorButton.setEnabled(nominalColorListModel.getSize() > 2); boolean enableSchemeRemove = !((ColorScheme) colorSchemeComboBox.getSelectedItem()).getName() .equals(I18N.getGUILabel(STR)); removeSchemeButton.setEnabled(colorSchemeComboBoxModel.getSize() > 2 && enableSchemeRemove); renameSc...
/** * check if category or scheme button have to be enabled */
check if category or scheme button have to be enabled
checkIfButtonsEnabled
{ "repo_name": "rapidminer/rapidminer-studio", "path": "src/main/java/com/rapidminer/gui/new_plotter/gui/ColorSchemeDialog.java", "license": "agpl-3.0", "size": 53126 }
[ "com.rapidminer.gui.new_plotter.templates.style.ColorScheme" ]
import com.rapidminer.gui.new_plotter.templates.style.ColorScheme;
import com.rapidminer.gui.new_plotter.templates.style.*;
[ "com.rapidminer.gui" ]
com.rapidminer.gui;
72,178
public String getProgressSizeText(Resources r, boolean withAvailability) { switch (t.getStatusCode()) { case Waiting: case Error: // Not downloading yet return r.getString(R.string.status_waitingtodl, FileSizeConverter.getSize(t.getTotalSize())); ...
String function(Resources r, boolean withAvailability) { switch (t.getStatusCode()) { case Waiting: case Error: return r.getString(R.string.status_waitingtodl, FileSizeConverter.getSize(t.getTotalSize())); case Checking: return r.getString(R.string.status_checking); case Downloading: return r.getString( R.string.status...
/** * Returns a formatted string indicating the current progress in terms of transferred bytes * * @param r The context resources, to access translations * @param withAvailability Whether to show file availability in-line * @return A nicely formatted string indicating torrent sta...
Returns a formatted string indicating the current progress in terms of transferred bytes
getProgressSizeText
{ "repo_name": "erickok/transdroid", "path": "app/src/main/java/org/transdroid/core/gui/lists/LocalTorrent.java", "license": "gpl-3.0", "size": 10346 }
[ "android.content.res.Resources", "org.transdroid.daemon.util.FileSizeConverter" ]
import android.content.res.Resources; import org.transdroid.daemon.util.FileSizeConverter;
import android.content.res.*; import org.transdroid.daemon.util.*;
[ "android.content", "org.transdroid.daemon" ]
android.content; org.transdroid.daemon;
1,303,809
ColumnsBuilder addNamedColumns( ColumnReferenceInfo... namedColumns );
ColumnsBuilder addNamedColumns( ColumnReferenceInfo... namedColumns );
/** * Add columns with aliases to this {@code SELECT} statement. * * @param namedColumns Columns with aliases to add to this {@code SELECT} statement. */
Add columns with aliases to this SELECT statement
addNamedColumns
{ "repo_name": "Qi4j/qi4j-sdk", "path": "libraries/sql-generator/src/main/java/org/apache/polygene/library/sql/generator/grammar/builders/query/ColumnsBuilder.java", "license": "apache-2.0", "size": 3236 }
[ "org.apache.polygene.library.sql.generator.grammar.query.ColumnReferences" ]
import org.apache.polygene.library.sql.generator.grammar.query.ColumnReferences;
import org.apache.polygene.library.sql.generator.grammar.query.*;
[ "org.apache.polygene" ]
org.apache.polygene;
99,923
public static List<File> getChildenRecursively(File root, FileFilter filter) { List<File> list = new ArrayList<File>(); populateChildenRecursively(root, filter, list); return list; }
static List<File> function(File root, FileFilter filter) { List<File> list = new ArrayList<File>(); populateChildenRecursively(root, filter, list); return list; }
/** * Return a list of child files that pass the filter provided * * @param root * @param filter * @return */
Return a list of child files that pass the filter provided
getChildenRecursively
{ "repo_name": "logginghub/core", "path": "logginghub-utils/src/main/java/com/logginghub/utils/FileUtils.java", "license": "apache-2.0", "size": 63519 }
[ "java.io.File", "java.io.FileFilter", "java.util.ArrayList", "java.util.List" ]
import java.io.File; import java.io.FileFilter; import java.util.ArrayList; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,527,215
public void addToPlatform(Connection c, String key, String value) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = "VM.add_to_platform"; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Ma...
void function(Connection c, String key, String value) throws BadServerResponse, XenAPIException, XmlRpcException { String method_call = STR; String session = c.getSessionReference(); Object[] method_params = {Marshalling.toXMLRPC(session), Marshalling.toXMLRPC(this.ref), Marshalling.toXMLRPC(key), Marshalling.toXMLRPC(...
/** * Add the given key-value pair to the platform field of the given VM. * * @param key Key to add * @param value Value to add */
Add the given key-value pair to the platform field of the given VM
addToPlatform
{ "repo_name": "cinderella/incubator-cloudstack", "path": "deps/XenServerJava/com/xensource/xenapi/VM.java", "license": "apache-2.0", "size": 169722 }
[ "com.xensource.xenapi.Types", "java.util.Map", "org.apache.xmlrpc.XmlRpcException" ]
import com.xensource.xenapi.Types; import java.util.Map; import org.apache.xmlrpc.XmlRpcException;
import com.xensource.xenapi.*; import java.util.*; import org.apache.xmlrpc.*;
[ "com.xensource.xenapi", "java.util", "org.apache.xmlrpc" ]
com.xensource.xenapi; java.util; org.apache.xmlrpc;
1,830,764