method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public List<Port> getPorts() { return ports; }
List<Port> function() { return ports; }
/** * Return ports list * * @return */
Return ports list
getPorts
{ "repo_name": "exalt-tech/trex-stateless-gui", "path": "src/main/java/com/exalttech/trex/ui/models/SystemInfo.java", "license": "apache-2.0", "size": 3073 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,011,700
private void bindPreferenceSummaryToValue(Preference preference) { // Set the listener to watch for value changes. preference.setOnPreferenceChangeListener(this); // Trigger the listener immediately with the preference's // current value. onPreferenceChange(preference, ...
void function(Preference preference) { preference.setOnPreferenceChangeListener(this); onPreferenceChange(preference, PreferenceManager .getDefaultSharedPreferences(preference.getContext()) .getString(preference.getKey(), "")); }
/** * Attaches a listener so the summary is always updated with the preference value. * Also fires the listener once, to initialize the summary (so it shows up before the value * is changed.) */
Attaches a listener so the summary is always updated with the preference value. Also fires the listener once, to initialize the summary (so it shows up before the value is changed.)
bindPreferenceSummaryToValue
{ "repo_name": "BrotherlyBoiler/Sunshine", "path": "app/src/main/java/com/example/android/sunshine/app/SettingsActivity.java", "license": "apache-2.0", "size": 3210 }
[ "android.preference.Preference", "android.preference.PreferenceManager" ]
import android.preference.Preference; import android.preference.PreferenceManager;
import android.preference.*;
[ "android.preference" ]
android.preference;
209,321
@Nonnull public VersionDelegate getVersion(@Nonnull String versionName) throws VersionException, RepositoryException { checkNotNull(versionName); Tree version = getTree().getChild(versionName); if (!version.exists()) { throw new VersionException("No such Version: ...
VersionDelegate function(@Nonnull String versionName) throws VersionException, RepositoryException { checkNotNull(versionName); Tree version = getTree().getChild(versionName); if (!version.exists()) { throw new VersionException(STR + versionName); } return VersionDelegate.create(sessionDelegate, version); }
/** * Gets the version with the given name. * * @param versionName a version name. * @return the version delegate. * @throws VersionException if there is no version with the given name. * @throws RepositoryException if another error occurs. */
Gets the version with the given name
getVersion
{ "repo_name": "FlakyTestDetection/jackrabbit-oak", "path": "oak-jcr/src/main/java/org/apache/jackrabbit/oak/jcr/delegate/VersionHistoryDelegate.java", "license": "apache-2.0", "size": 9395 }
[ "com.google.common.base.Preconditions", "javax.annotation.Nonnull", "javax.jcr.RepositoryException", "javax.jcr.version.VersionException", "org.apache.jackrabbit.oak.api.Tree" ]
import com.google.common.base.Preconditions; import javax.annotation.Nonnull; import javax.jcr.RepositoryException; import javax.jcr.version.VersionException; import org.apache.jackrabbit.oak.api.Tree;
import com.google.common.base.*; import javax.annotation.*; import javax.jcr.*; import javax.jcr.version.*; import org.apache.jackrabbit.oak.api.*;
[ "com.google.common", "javax.annotation", "javax.jcr", "org.apache.jackrabbit" ]
com.google.common; javax.annotation; javax.jcr; org.apache.jackrabbit;
2,811,990
public double value(double x, double y) throws FunctionEvaluationException;
double function(double x, double y) throws FunctionEvaluationException;
/** * Compute the value for the function. * * @param x Abscissa for which the function value should be computed. * @param y Ordinate for which the function value should be computed. * @return the value. * @throws FunctionEvaluationException if the function evaluation fails. */
Compute the value for the function
value
{ "repo_name": "SpoonLabs/astor", "path": "examples/math_70_modified/src/main/java/org/apache/commons/math/analysis/BivariateRealFunction.java", "license": "gpl-2.0", "size": 1468 }
[ "org.apache.commons.math.FunctionEvaluationException" ]
import org.apache.commons.math.FunctionEvaluationException;
import org.apache.commons.math.*;
[ "org.apache.commons" ]
org.apache.commons;
842,385
public ItemDefinition findByDescription(String pDesc) { ItemDefinition returnVal = null; Criteria c = getSession().createCriteria(ItemDefinition.class).add( Expression.eq("description", pDesc).ignoreCase()); List results = c.list(); if (!results.isEmpty()) { returnVal = (ItemDefinition) c.lis...
ItemDefinition function(String pDesc) { ItemDefinition returnVal = null; Criteria c = getSession().createCriteria(ItemDefinition.class).add( Expression.eq(STR, pDesc).ignoreCase()); List results = c.list(); if (!results.isEmpty()) { returnVal = (ItemDefinition) c.list().get(0); } return returnVal; }
/** * Find by description. * * Creation date: Apr 20, 2006 2:34:56 PM */
Find by description. Creation date: Apr 20, 2006 2:34:56 PM
findByDescription
{ "repo_name": "TreeBASE/treebasetest", "path": "treebase-core/src/main/java/org/cipres/treebase/dao/matrix/ItemDefinitionDAO.java", "license": "bsd-3-clause", "size": 1974 }
[ "java.util.List", "org.cipres.treebase.domain.matrix.ItemDefinition", "org.hibernate.Criteria", "org.hibernate.criterion.Expression" ]
import java.util.List; import org.cipres.treebase.domain.matrix.ItemDefinition; import org.hibernate.Criteria; import org.hibernate.criterion.Expression;
import java.util.*; import org.cipres.treebase.domain.matrix.*; import org.hibernate.*; import org.hibernate.criterion.*;
[ "java.util", "org.cipres.treebase", "org.hibernate", "org.hibernate.criterion" ]
java.util; org.cipres.treebase; org.hibernate; org.hibernate.criterion;
2,913,277
private ImmutableOpenMap<ShardId, SnapshotsInProgress.ShardSnapshotStatus> shards(ClusterState clusterState, List<IndexId> indices) { ImmutableOpenMap.Builder<ShardId, SnapshotsInProgress.ShardSnapshotStatus> builder = ImmutableOpenMap.builder(); MetaData metaData = clusterState.metaData(); ...
ImmutableOpenMap<ShardId, SnapshotsInProgress.ShardSnapshotStatus> function(ClusterState clusterState, List<IndexId> indices) { ImmutableOpenMap.Builder<ShardId, SnapshotsInProgress.ShardSnapshotStatus> builder = ImmutableOpenMap.builder(); MetaData metaData = clusterState.metaData(); for (IndexId index : indices) { fi...
/** * Calculates the list of shards that should be included into the current snapshot * * @param clusterState cluster state * @param indices list of indices to be snapshotted * @return list of shard to be included into current snapshot */
Calculates the list of shards that should be included into the current snapshot
shards
{ "repo_name": "ThiagoGarciaAlves/elasticsearch", "path": "core/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java", "license": "apache-2.0", "size": 86443 }
[ "java.util.List", "org.elasticsearch.cluster.ClusterState", "org.elasticsearch.cluster.SnapshotsInProgress", "org.elasticsearch.cluster.metadata.IndexMetaData", "org.elasticsearch.cluster.metadata.MetaData", "org.elasticsearch.cluster.routing.IndexRoutingTable", "org.elasticsearch.cluster.routing.ShardR...
import java.util.List; import org.elasticsearch.cluster.ClusterState; import org.elasticsearch.cluster.SnapshotsInProgress; import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.cluster.metadata.MetaData; import org.elasticsearch.cluster.routing.IndexRoutingTable; import org.elasticsearch.cl...
import java.util.*; import org.elasticsearch.cluster.*; import org.elasticsearch.cluster.metadata.*; import org.elasticsearch.cluster.routing.*; import org.elasticsearch.common.collect.*; import org.elasticsearch.index.shard.*; import org.elasticsearch.repositories.*;
[ "java.util", "org.elasticsearch.cluster", "org.elasticsearch.common", "org.elasticsearch.index", "org.elasticsearch.repositories" ]
java.util; org.elasticsearch.cluster; org.elasticsearch.common; org.elasticsearch.index; org.elasticsearch.repositories;
1,666,038
@Test(timeout=120000) public void testRandomDouble() throws Exception { OsSecureRandom random = getOsSecureRandom(); double rand1 = random.nextDouble(); double rand2 = random.nextDouble(); while (rand1 == rand2) { rand2 = random.nextDouble(); } random.close(); }
@Test(timeout=120000) void function() throws Exception { OsSecureRandom random = getOsSecureRandom(); double rand1 = random.nextDouble(); double rand2 = random.nextDouble(); while (rand1 == rand2) { rand2 = random.nextDouble(); } random.close(); }
/** * Test will timeout if secure random implementation always returns a * constant value. */
Test will timeout if secure random implementation always returns a constant value
testRandomDouble
{ "repo_name": "cnfire/hadoop", "path": "hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/crypto/random/TestOsSecureRandom.java", "license": "apache-2.0", "size": 3955 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,661,486
@Transactional void convertRolePrincipals() { LOG.info("Converting pseudo principle types to role principals"); PermissionDAO permissionDAO = injector.getInstance(PermissionDAO.class); PrivilegeDAO privilegeDAO = injector.getInstance(PrivilegeDAO.class); PrincipalDAO principalDAO = injector.getInst...
void convertRolePrincipals() { LOG.info(STR); PermissionDAO permissionDAO = injector.getInstance(PermissionDAO.class); PrivilegeDAO privilegeDAO = injector.getInstance(PrivilegeDAO.class); PrincipalDAO principalDAO = injector.getInstance(PrincipalDAO.class); PrincipalTypeDAO principalTypeDAO = injector.getInstance(Prin...
/** * Convert the previously set inherited privileges to the more generic inherited privileges model * based on role-based principals rather than specialized principal types. */
Convert the previously set inherited privileges to the more generic inherited privileges model based on role-based principals rather than specialized principal types
convertRolePrincipals
{ "repo_name": "arenadata/ambari", "path": "ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog242.java", "license": "apache-2.0", "size": 11189 }
[ "java.util.HashMap", "java.util.List", "java.util.Map", "java.util.Set", "org.apache.ambari.server.orm.dao.PermissionDAO", "org.apache.ambari.server.orm.dao.PrincipalDAO", "org.apache.ambari.server.orm.dao.PrincipalTypeDAO", "org.apache.ambari.server.orm.dao.PrivilegeDAO", "org.apache.ambari.server....
import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.ambari.server.orm.dao.PermissionDAO; import org.apache.ambari.server.orm.dao.PrincipalDAO; import org.apache.ambari.server.orm.dao.PrincipalTypeDAO; import org.apache.ambari.server.orm.dao.PrivilegeDAO; import...
import java.util.*; import org.apache.ambari.server.orm.dao.*; import org.apache.ambari.server.orm.entities.*;
[ "java.util", "org.apache.ambari" ]
java.util; org.apache.ambari;
975,835
EOperation getproductionschema2petrinetConjunctiveNodeIn_r5__TransformForward__TGGNode_boolean_boolean();
EOperation getproductionschema2petrinetConjunctiveNodeIn_r5__TransformForward__TGGNode_boolean_boolean();
/** * Returns the meta object for the '{@link de.mdelab.mltgg.productionschema2petrinet.generated.productionschema2petrinetConjunctiveNodeIn_r5#transformForward(de.mdelab.mltgg.mote2.TGGNode, boolean, boolean) <em>Transform Forward</em>}' operation. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return th...
Returns the meta object for the '<code>de.mdelab.mltgg.productionschema2petrinet.generated.productionschema2petrinetConjunctiveNodeIn_r5#transformForward(de.mdelab.mltgg.mote2.TGGNode, boolean, boolean) Transform Forward</code>' operation.
getproductionschema2petrinetConjunctiveNodeIn_r5__TransformForward__TGGNode_boolean_boolean
{ "repo_name": "Somae/mdsd-factory-project", "path": "transformation/de.mdelab.languages.productionschema2petrinet/src-gen/de/mdelab/mltgg/productionschema2petrinet/generated/GeneratedPackage.java", "license": "gpl-3.0", "size": 283384 }
[ "org.eclipse.emf.ecore.EOperation" ]
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,551,852
@Nested public Property<NativePlatform> getTargetPlatform() { return targetPlatform; }
Property<NativePlatform> function() { return targetPlatform; }
/** * The platform being compiled for. * * @since 4.7 */
The platform being compiled for
getTargetPlatform
{ "repo_name": "robinverduijn/gradle", "path": "subprojects/language-native/src/main/java/org/gradle/language/swift/tasks/SwiftCompile.java", "license": "apache-2.0", "size": 11890 }
[ "org.gradle.api.provider.Property", "org.gradle.nativeplatform.platform.NativePlatform" ]
import org.gradle.api.provider.Property; import org.gradle.nativeplatform.platform.NativePlatform;
import org.gradle.api.provider.*; import org.gradle.nativeplatform.platform.*;
[ "org.gradle.api", "org.gradle.nativeplatform" ]
org.gradle.api; org.gradle.nativeplatform;
970,041
String getGaParametersString() { return MessageFormat.format( "schema-base={0}, populations={1}, generations={2}, mutation-ratio={3}, " //$NON-NLS-1$ + "initial-locality={4}, non-local-penalty={5}, average-time-weight={6}", //$NON-NLS-1$ sl...
String getGaParametersString() { return MessageFormat.format( STR + STR, slotsPerInput, populations, generations, mutations, initialLocalityRatio, nonLocalPenaltyRatio, averageTimeWeight); } } private static final class Environment { final Random random = new Random(1234567L); final String[] locations; final SplitDef[]...
/** * Returns the GA parameters as string. * @return the GA parameters */
Returns the GA parameters as string
getGaParametersString
{ "repo_name": "cocoatomo/asakusafw", "path": "core-project/asakusa-runtime/src/main/java/com/asakusafw/runtime/stage/input/DefaultSplitCombiner.java", "license": "apache-2.0", "size": 30419 }
[ "java.text.MessageFormat", "java.util.Random" ]
import java.text.MessageFormat; import java.util.Random;
import java.text.*; import java.util.*;
[ "java.text", "java.util" ]
java.text; java.util;
1,335,341
// how to obtain a connection SAPConnection sc = SAPConnectionFactoryMock.create(); // how to open a connection // @Matt: // please show us how to retrieve the connection params from the // pentaho environment DatabaseMeta cp = new DatabaseMeta( "SAP", "SAPR3", "Plugin", "192.168.9.50", nul...
SAPConnection sc = SAPConnectionFactoryMock.create(); DatabaseMeta cp = new DatabaseMeta( "SAPSTRSAPR3", STR, STR, null, null, "USER", STR ); cp.getAttributes().setProperty( SAPR3DatabaseMeta.ATTRIBUTE_SAP_SYSTEM_NUMBER, "00" ); cp.getAttributes().setProperty( SAPR3DatabaseMeta.ATTRIBUTE_SAP_CLIENT, "100" ); cp.getAttr...
/** * How to use a SAPConnection * * @throws SAPException */
How to use a SAPConnection
main
{ "repo_name": "TatsianaKasiankova/pentaho-kettle", "path": "plugins/sap/core/src/main/java/org/pentaho/di/trans/steps/sapinput/mock/SAPConnectionMockTest.java", "license": "apache-2.0", "size": 4361 }
[ "java.util.Collection", "org.pentaho.di.core.database.DatabaseMeta", "org.pentaho.di.core.database.sap.SAPR3DatabaseMeta", "org.pentaho.di.trans.steps.sapinput.sap.SAPConnection", "org.pentaho.di.trans.steps.sapinput.sap.SAPFunction", "org.pentaho.di.trans.steps.sapinput.sap.SAPResultSet", "org.pentaho....
import java.util.Collection; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.database.sap.SAPR3DatabaseMeta; import org.pentaho.di.trans.steps.sapinput.sap.SAPConnection; import org.pentaho.di.trans.steps.sapinput.sap.SAPFunction; import org.pentaho.di.trans.steps.sapinput.sap.SAPResultSet;...
import java.util.*; import org.pentaho.di.core.database.*; import org.pentaho.di.core.database.sap.*; import org.pentaho.di.trans.steps.sapinput.sap.*;
[ "java.util", "org.pentaho.di" ]
java.util; org.pentaho.di;
1,875,354
List<LoggingEvent> parse(InputStream is) throws ParseException;
List<LoggingEvent> parse(InputStream is) throws ParseException;
/** * Parses the given input stream for XML to extract the parameter and assign * them to the members. * * @param is * XML Content * @return List of logging events * @throws ParseException * if fails to parse */
Parses the given input stream for XML to extract the parameter and assign them to the members
parse
{ "repo_name": "stritti/log4js", "path": "log4js-servlet/src/main/java/de/log4js/parser/EventParser.java", "license": "apache-2.0", "size": 1862 }
[ "de.log4js.LoggingEvent", "java.io.InputStream", "java.util.List" ]
import de.log4js.LoggingEvent; import java.io.InputStream; import java.util.List;
import de.log4js.*; import java.io.*; import java.util.*;
[ "de.log4js", "java.io", "java.util" ]
de.log4js; java.io; java.util;
345,692
return new VertexTypeDefinitionImpl.VertexTypeDefinitionBuilder(clazz, superClazz); }
return new VertexTypeDefinitionImpl.VertexTypeDefinitionBuilder(clazz, superClazz); }
/** * Create a new vertex type definition builder for the given vertex class type. * * @param clazz * @param superClazz * Super vertex type. If null "V" will be used. */
Create a new vertex type definition builder for the given vertex class type
vertexType
{ "repo_name": "gentics/mesh", "path": "madl/api/src/main/java/com/gentics/mesh/madl/type/VertexTypeDefinition.java", "license": "apache-2.0", "size": 779 }
[ "com.gentics.mesh.madl.type.impl.VertexTypeDefinitionImpl" ]
import com.gentics.mesh.madl.type.impl.VertexTypeDefinitionImpl;
import com.gentics.mesh.madl.type.impl.*;
[ "com.gentics.mesh" ]
com.gentics.mesh;
1,498,214
private SqlParser.Config getSqlParserConfig() { return JavaScalaConversionUtil.toJava(getCalciteConfig(tableConfig).getSqlParserConfig()).orElseGet( // we use Java lex because back ticks are easier than double quotes in programming // and cases are preserved () -> SqlParser .configBuilder() ...
SqlParser.Config function() { return JavaScalaConversionUtil.toJava(getCalciteConfig(tableConfig).getSqlParserConfig()).orElseGet( () -> SqlParser .configBuilder() .setParserFactory(FlinkSqlParserImpl.FACTORY) .setConformance(getSqlConformance()) .setLex(Lex.JAVA) .setIdentifierMaxLength(256) .build()); }
/** * Returns the SQL parser config for this environment including a custom Calcite configuration. */
Returns the SQL parser config for this environment including a custom Calcite configuration
getSqlParserConfig
{ "repo_name": "fhueske/flink", "path": "flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/delegation/PlannerContext.java", "license": "apache-2.0", "size": 10324 }
[ "org.apache.calcite.config.Lex", "org.apache.calcite.sql.parser.SqlParser", "org.apache.flink.sql.parser.impl.FlinkSqlParserImpl", "org.apache.flink.table.planner.utils.JavaScalaConversionUtil" ]
import org.apache.calcite.config.Lex; import org.apache.calcite.sql.parser.SqlParser; import org.apache.flink.sql.parser.impl.FlinkSqlParserImpl; import org.apache.flink.table.planner.utils.JavaScalaConversionUtil;
import org.apache.calcite.config.*; import org.apache.calcite.sql.parser.*; import org.apache.flink.sql.parser.impl.*; import org.apache.flink.table.planner.utils.*;
[ "org.apache.calcite", "org.apache.flink" ]
org.apache.calcite; org.apache.flink;
70,831
public void waitUntilFinished() { try { boolean wait = true; while ( wait ) { wait = transFinishedBlockingQueue.poll( 1, TimeUnit.DAYS ) == null; } } catch ( InterruptedException e ) { throw new RuntimeException( "Waiting for transformation to be finished interrupted!", e ); ...
void function() { try { boolean wait = true; while ( wait ) { wait = transFinishedBlockingQueue.poll( 1, TimeUnit.DAYS ) == null; } } catch ( InterruptedException e ) { throw new RuntimeException( STR, e ); } }
/** * Waits until all RunThreads have finished. */
Waits until all RunThreads have finished
waitUntilFinished
{ "repo_name": "AndreyBurikhin/pentaho-kettle", "path": "engine/src/org/pentaho/di/trans/Trans.java", "license": "apache-2.0", "size": 190705 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,358,850
@Override public void fill(ByteBuffer buffer, long id) { buffer.put(EVENTID_INT); buffer.putInt((int) id); }
void function(ByteBuffer buffer, long id) { buffer.put(EVENTID_INT); buffer.putInt((int) id); }
/** * Writes the given 'id' to the given buffer as 'int' preceeded by a token indicating that it is * written as 'int' type. * * @param buffer - the buffer in which id is to be written * @param id - the threadId or sequenceId to be written */
Writes the given 'id' to the given buffer as 'int' preceeded by a token indicating that it is written as 'int' type
fill
{ "repo_name": "pivotal-amurmann/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/EventID.java", "license": "apache-2.0", "size": 28487 }
[ "java.nio.ByteBuffer" ]
import java.nio.ByteBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
142,433
public Collection<CombinerParameter> getPolicySetCombinerParam(String policySetId, String name){ Multimap<String, CombinerParameter> p = policySetCombinerParameters.get(policySetId); return (p == null)?ImmutableList.<CombinerParameter>of():p.get(name); }
Collection<CombinerParameter> function(String policySetId, String name){ Multimap<String, CombinerParameter> p = policySetCombinerParameters.get(policySetId); return (p == null)?ImmutableList.<CombinerParameter>of():p.get(name); }
/** * Gets policy set combiner parameter with a given name * * @param policySetId a policy set identifier * @param name a parameter name * @return a collection of combiner parameters */
Gets policy set combiner parameter with a given name
getPolicySetCombinerParam
{ "repo_name": "snmaher/xacml4j", "path": "xacml-core/src/main/java/org/xacml4j/v30/pdp/PolicySet.java", "license": "lgpl-3.0", "size": 12104 }
[ "com.google.common.collect.ImmutableList", "com.google.common.collect.Multimap", "java.util.Collection" ]
import com.google.common.collect.ImmutableList; import com.google.common.collect.Multimap; import java.util.Collection;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,747,374
public List<ExtensionElement> getExtendedInfoAsList() { List<ExtensionElement> res = null; if (extendedInfo != null) { res = new ArrayList<ExtensionElement>(1); res.add(extendedInfo); } return res; }
List<ExtensionElement> function() { List<ExtensionElement> res = null; if (extendedInfo != null) { res = new ArrayList<ExtensionElement>(1); res.add(extendedInfo); } return res; }
/** * Returns the data form as List of PacketExtensions, or null if no data form is set. * This representation is needed by some classes (e.g. EntityCapsManager, NodeInformationProvider) * * @return the data form as List of PacketExtensions */
Returns the data form as List of PacketExtensions, or null if no data form is set. This representation is needed by some classes (e.g. EntityCapsManager, NodeInformationProvider)
getExtendedInfoAsList
{ "repo_name": "esl/Smack", "path": "smack-extensions/src/main/java/org/jivesoftware/smackx/disco/ServiceDiscoveryManager.java", "license": "apache-2.0", "size": 37216 }
[ "java.util.ArrayList", "java.util.List", "org.jivesoftware.smack.packet.ExtensionElement" ]
import java.util.ArrayList; import java.util.List; import org.jivesoftware.smack.packet.ExtensionElement;
import java.util.*; import org.jivesoftware.smack.packet.*;
[ "java.util", "org.jivesoftware.smack" ]
java.util; org.jivesoftware.smack;
2,000,208
@Override public TopFieldDocs search(Weight weight, Filter filter, int nDocs, Sort sort) throws IOException { if (sort == null) throw new NullPointerException(); final FieldDocSortedHitQueue hq = new FieldDocSortedHitQueue(nDocs); final Lock lock = new ReentrantLock(); final ExecutionHelper<TopFiel...
TopFieldDocs function(Weight weight, Filter filter, int nDocs, Sort sort) throws IOException { if (sort == null) throw new NullPointerException(); final FieldDocSortedHitQueue hq = new FieldDocSortedHitQueue(nDocs); final Lock lock = new ReentrantLock(); final ExecutionHelper<TopFieldDocs> runner = new ExecutionHelper<...
/** * A search implementation allowing sorting which spans a new thread for each * Searchable, waits for each search to complete and merges * the results back together. */
A search implementation allowing sorting which spans a new thread for each Searchable, waits for each search to complete and merges the results back together
search
{ "repo_name": "chrishumphreys/provocateur", "path": "provocateur-thirdparty/src/main/java/org/targettest/org/apache/lucene/search/ParallelMultiSearcher.java", "license": "apache-2.0", "size": 8323 }
[ "java.io.IOException", "java.util.concurrent.locks.Lock", "java.util.concurrent.locks.ReentrantLock" ]
import java.io.IOException; import java.util.concurrent.locks.Lock; import java.util.concurrent.locks.ReentrantLock;
import java.io.*; import java.util.concurrent.locks.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,033,383
public static void setLoggingLevel(Level level) { logger.setLevel(level); }
static void function(Level level) { logger.setLevel(level); }
/** * Sets the logging level for the com.google.javascript.jscomp package. */
Sets the logging level for the com.google.javascript.jscomp package
setLoggingLevel
{ "repo_name": "martinrosstmc/closure-compiler", "path": "src/com/google/javascript/jscomp/Compiler.java", "license": "apache-2.0", "size": 78462 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
2,101,407
public synchronized void update() { queuedToRemove.addAll(treeGraphModel.getRemovedCells()); queuedToRemove.addAll(treeGraphModel.getRemovedEdges()); queuedToAdd.addAll(treeGraphModel.getAddedCells()); queuedToAdd.addAll(treeGraphModel.getAddedEdges()); // merge added & rem...
synchronized void function() { queuedToRemove.addAll(treeGraphModel.getRemovedCells()); queuedToRemove.addAll(treeGraphModel.getRemovedEdges()); queuedToAdd.addAll(treeGraphModel.getAddedCells()); queuedToAdd.addAll(treeGraphModel.getAddedEdges()); treeGraphModel.merge(); Platform.runLater(() -> { LinkedList<Node> more...
/** * Must be called after modifying the underlying model to add and * remove the appropriate cells and edges and keep the view up to * date */
Must be called after modifying the underlying model to add and remove the appropriate cells and edges and keep the view up to date
update
{ "repo_name": "dmusican/Elegit", "path": "src/main/java/elegit/treefx/TreeGraph.java", "license": "mit", "size": 3520 }
[ "java.util.LinkedList" ]
import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
1,624,437
public void testBlosumAlighment() { LocalAlignment la = new LocalAlignment(); AlignmentResult result = la.align(new BlosumCostMatrix(),sequenceA, sequenceB); System.out.println(result); assertEquals("local:blosum",result.getMethodName()); assertEquals(14,result.getSco...
void function() { LocalAlignment la = new LocalAlignment(); AlignmentResult result = la.align(new BlosumCostMatrix(),sequenceA, sequenceB); System.out.println(result); assertEquals(STR,result.getMethodName()); assertEquals(14,result.getScore()); assertEquals(STR,result.getAlignedSequenceA()); assertEquals(STR,result.ge...
/** * Test alignment with BLOSUM cost matrix */
Test alignment with BLOSUM cost matrix
testBlosumAlighment
{ "repo_name": "arianpasquali/dna-sequence-alignment", "path": "src/test/java/pt/fcup/bioinformatics/LocalAlignmentTest.java", "license": "apache-2.0", "size": 3240 }
[ "pt.fcup.bioinformatics.sequencealignment.AlignmentResult", "pt.fcup.bioinformatics.sequencealignment.LocalAlignment", "pt.fcup.bioinformatics.sequencealignment.costmatrix.BlosumCostMatrix" ]
import pt.fcup.bioinformatics.sequencealignment.AlignmentResult; import pt.fcup.bioinformatics.sequencealignment.LocalAlignment; import pt.fcup.bioinformatics.sequencealignment.costmatrix.BlosumCostMatrix;
import pt.fcup.bioinformatics.sequencealignment.*; import pt.fcup.bioinformatics.sequencealignment.costmatrix.*;
[ "pt.fcup.bioinformatics" ]
pt.fcup.bioinformatics;
517,053
private boolean readBatchFromSource(FormatHolder formatHolder, BatchBuffer batchBuffer) { while (!batchBuffer.isFull() && !batchBuffer.isEndOfStream()) { @SampleStream.ReadDataResult int result = readSource( formatHolder, batchBuffer.getNextAccessUnitBuffer(), false); sw...
boolean function(FormatHolder formatHolder, BatchBuffer batchBuffer) { while (!batchBuffer.isFull() && !batchBuffer.isEndOfStream()) { @SampleStream.ReadDataResult int result = readSource( formatHolder, batchBuffer.getNextAccessUnitBuffer(), false); switch (result) { case C.RESULT_FORMAT_READ: return true; case C.RESUL...
/** * Fills the buffer with multiple access unit from the source. Has otherwise the same semantic as * {@link #readSource(FormatHolder, DecoderInputBuffer, boolean)}. Will stop early on format * change, EOS or source starvation. * * @return If the format has changed. */
Fills the buffer with multiple access unit from the source. Has otherwise the same semantic as <code>#readSource(FormatHolder, DecoderInputBuffer, boolean)</code>. Will stop early on format change, EOS or source starvation
readBatchFromSource
{ "repo_name": "stari4ek/ExoPlayer", "path": "library/core/src/main/java/com/google/android/exoplayer2/mediacodec/MediaCodecRenderer.java", "license": "apache-2.0", "size": 92573 }
[ "com.google.android.exoplayer2.FormatHolder", "com.google.android.exoplayer2.source.SampleStream" ]
import com.google.android.exoplayer2.FormatHolder; import com.google.android.exoplayer2.source.SampleStream;
import com.google.android.exoplayer2.*; import com.google.android.exoplayer2.source.*;
[ "com.google.android" ]
com.google.android;
1,051,502
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<NamespaceProperties>> getNamespacePropertiesWithResponse() { return withContext(this::getNamespacePropertiesWithResponse); }
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<NamespaceProperties>> function() { return withContext(this::getNamespacePropertiesWithResponse); }
/** * Gets information about the Service Bus namespace along with its HTTP response. * * @return A Mono that completes with information about the namespace and the associated HTTP response. * @throws ClientAuthenticationException if the client's credentials do not have access to modify the * ...
Gets information about the Service Bus namespace along with its HTTP response
getNamespacePropertiesWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/servicebus/azure-messaging-servicebus/src/main/java/com/azure/messaging/servicebus/administration/ServiceBusAdministrationAsyncClient.java", "license": "mit", "size": 144140 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.messaging.servicebus.administration.models.NamespaceProperties" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.messaging.servicebus.administration.models.NamespaceProperties;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.messaging.servicebus.administration.models.*;
[ "com.azure.core", "com.azure.messaging" ]
com.azure.core; com.azure.messaging;
2,726,335
@SuppressWarnings("unchecked") private static JAXBElement<EventHandlerType> copyOfEventHandlerTypeElement(final JAXBElement<EventHandlerType> e) { // CC-XJC Version 2.0 Build 2011-09-16T18:27:24+0000 if (e!= null) { final JAXBElement<EventHandlerType> copy = new JAXBElement<>(e.getNa...
@SuppressWarnings(STR) static JAXBElement<EventHandlerType> function(final JAXBElement<EventHandlerType> e) { if (e!= null) { final JAXBElement<EventHandlerType> copy = new JAXBElement<>(e.getName(), e.getDeclaredType(), e.getScope(), e.getValue()); copy.setNil(e.isNil()); copy.setValue(((((EventHandlerType) copy.getVa...
/** * Creates and returns a deep copy of a given {@code javax.xml.bind.JAXBElement<com.evolveum.midpoint.xml.ns._public.common.common_3.EventHandlerType>} instance. * * @param e * The instance to copy or {@code null}. * @return * A deep copy of {@code e} or {@code null} if {@code e...
Creates and returns a deep copy of a given javax.xml.bind.JAXBElement instance
copyOfEventHandlerTypeElement
{ "repo_name": "arnost-starosta/midpoint", "path": "infra/prism/src/test/java/com/evolveum/midpoint/prism/foo/EventHandlerChainType.java", "license": "apache-2.0", "size": 16388 }
[ "javax.xml.bind.JAXBElement" ]
import javax.xml.bind.JAXBElement;
import javax.xml.bind.*;
[ "javax.xml" ]
javax.xml;
345,869
@Nullable public static UUID readUuid(DataInput in) throws IOException { // If UUID is not null. if (!in.readBoolean()) { long most = in.readLong(); long least = in.readLong(); return IgniteUuidCache.onIgniteUuidRead(new UUID(most, least)); } ret...
@Nullable static UUID function(DataInput in) throws IOException { if (!in.readBoolean()) { long most = in.readLong(); long least = in.readLong(); return IgniteUuidCache.onIgniteUuidRead(new UUID(most, least)); } return null; }
/** * Reads UUID from input stream. This method is meant to be used by * implementations of {@link Externalizable} interface. * * @param in Input stream. * @return Read UUID. * @throws IOException If read failed. */
Reads UUID from input stream. This method is meant to be used by implementations of <code>Externalizable</code> interface
readUuid
{ "repo_name": "SomeFire/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 374177 }
[ "java.io.DataInput", "java.io.IOException", "org.jetbrains.annotations.Nullable" ]
import java.io.DataInput; import java.io.IOException; import org.jetbrains.annotations.Nullable;
import java.io.*; import org.jetbrains.annotations.*;
[ "java.io", "org.jetbrains.annotations" ]
java.io; org.jetbrains.annotations;
211,352
public static Server getServer(final Object instance, final String bindAddress, final int port, final int numHandlers, final boolean verbose, Configuration conf) throws IOException { return getServer(instance, bindAddress, port, numHandlers, v...
static Server function(final Object instance, final String bindAddress, final int port, final int numHandlers, final boolean verbose, Configuration conf) throws IOException { return getServer(instance, bindAddress, port, numHandlers, verbose, conf, null); }
/** Construct a server for a protocol implementation instance listening on a * port and address. */
Construct a server for a protocol implementation instance listening on a
getServer
{ "repo_name": "gndpig/hadoop", "path": "src/core/org/apache/hadoop/ipc/RPC.java", "license": "apache-2.0", "size": 23034 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration;
import java.io.*; import org.apache.hadoop.conf.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,877,642
public Builder initializeAsFromCloseToOpen(IndexMetaData indexMetaData) { return initializeEmpty(indexMetaData, new UnassignedInfo(UnassignedInfo.Reason.INDEX_REOPENED, null)); }
Builder function(IndexMetaData indexMetaData) { return initializeEmpty(indexMetaData, new UnassignedInfo(UnassignedInfo.Reason.INDEX_REOPENED, null)); }
/** * Initializes a new empty index, as as a result of opening a closed index. */
Initializes a new empty index, as as a result of opening a closed index
initializeAsFromCloseToOpen
{ "repo_name": "nezirus/elasticsearch", "path": "core/src/main/java/org/elasticsearch/cluster/routing/IndexRoutingTable.java", "license": "apache-2.0", "size": 23401 }
[ "org.elasticsearch.cluster.metadata.IndexMetaData" ]
import org.elasticsearch.cluster.metadata.IndexMetaData;
import org.elasticsearch.cluster.metadata.*;
[ "org.elasticsearch.cluster" ]
org.elasticsearch.cluster;
701,339
void setJamoppElement(Commentable value);
void setJamoppElement(Commentable value);
/** * Sets the value of the ' * {@link org.splevo.jamopp.vpm.software.JaMoPPSoftwareElement#getJamoppElement * <em>Jamopp Element</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc --> * * @param value * the new value of the '<em>Jamopp Element</em>' reference. * ...
Sets the value of the ' <code>org.splevo.jamopp.vpm.software.JaMoPPSoftwareElement#getJamoppElement Jamopp Element</code>' reference.
setJamoppElement
{ "repo_name": "kopl/SPLevo", "path": "JaMoPPCartridge/org.splevo.jamopp.vpm/src-gen/org/splevo/jamopp/vpm/software/JaMoPPSoftwareElement.java", "license": "epl-1.0", "size": 2290 }
[ "org.emftext.language.java.commons.Commentable" ]
import org.emftext.language.java.commons.Commentable;
import org.emftext.language.java.commons.*;
[ "org.emftext.language" ]
org.emftext.language;
1,110,398
public void setAccessLog(AbstractAccessLog log) { _accessLog = log; Environment.setAttribute("caucho.server.access-log", log); }
void function(AbstractAccessLog log) { _accessLog = log; Environment.setAttribute(STR, log); }
/** * Sets the access log. */
Sets the access log
setAccessLog
{ "repo_name": "mdaniel/svn-caucho-com-resin", "path": "modules/resin/src/com/caucho/server/webapp/WebAppContainer.java", "license": "gpl-2.0", "size": 32116 }
[ "com.caucho.loader.Environment", "com.caucho.server.log.AbstractAccessLog" ]
import com.caucho.loader.Environment; import com.caucho.server.log.AbstractAccessLog;
import com.caucho.loader.*; import com.caucho.server.log.*;
[ "com.caucho.loader", "com.caucho.server" ]
com.caucho.loader; com.caucho.server;
2,027,512
@Override public void unregisterNodeType(String name) throws RepositoryException { throw new UnsupportedRepositoryOperationException(); }
void function(String name) throws RepositoryException { throw new UnsupportedRepositoryOperationException(); }
/** * This implementation always throws a {@link UnsupportedRepositoryOperationException}. */
This implementation always throws a <code>UnsupportedRepositoryOperationException</code>
unregisterNodeType
{ "repo_name": "davidegiannella/jackrabbit-oak", "path": "oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/nodetype/ReadOnlyNodeTypeManager.java", "license": "apache-2.0", "size": 15790 }
[ "javax.jcr.RepositoryException", "javax.jcr.UnsupportedRepositoryOperationException" ]
import javax.jcr.RepositoryException; import javax.jcr.UnsupportedRepositoryOperationException;
import javax.jcr.*;
[ "javax.jcr" ]
javax.jcr;
2,467,501
void removeProcess(@Nonnull String clientId);
void removeProcess(@Nonnull String clientId);
/** * Removes the local copy of the specified process. * * @param clientId the client identifier */
Removes the local copy of the specified process
removeProcess
{ "repo_name": "peter-gergely-horvath/kylo", "path": "services/spark-shell-service/spark-shell-core/src/main/java/com/thinkbiganalytics/spark/shell/cluster/SparkShellClusterDelegate.java", "license": "apache-2.0", "size": 1433 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
2,005,087
TableSchema getTableSchema(SessionContext session, String name) throws SqlExecutionException;
TableSchema getTableSchema(SessionContext session, String name) throws SqlExecutionException;
/** * Returns the schema of a table. Throws an exception if the table could not be found. The * schema might contain time attribute types for helping the user during debugging a query. */
Returns the schema of a table. Throws an exception if the table could not be found. The schema might contain time attribute types for helping the user during debugging a query
getTableSchema
{ "repo_name": "zhangminglei/flink", "path": "flink-libraries/flink-sql-client/src/main/java/org/apache/flink/table/client/gateway/Executor.java", "license": "apache-2.0", "size": 3772 }
[ "org.apache.flink.table.api.TableSchema" ]
import org.apache.flink.table.api.TableSchema;
import org.apache.flink.table.api.*;
[ "org.apache.flink" ]
org.apache.flink;
1,527,206
public static List<Name> christened(int number, Name name) { return IntStream.range(0, number).mapToObj(i -> Name.of(name.toString() + "_" + i)).collect(Collectors.toList()); }
static List<Name> function(int number, Name name) { return IntStream.range(0, number).mapToObj(i -> Name.of(name.toString() + "_" + i)).collect(Collectors.toList()); }
/** * Creates a collection of names, which follow the format {@code name-i}, where {@code i} is the * range {@code 0 -> number - 1}. * * @param number the number of names to generate. * @param name * @return a new list of {@link Name}. */
Creates a collection of names, which follow the format name-i, where i is the range 0 -> number - 1
christened
{ "repo_name": "Qorr/Hvalspik", "path": "api/src/main/java/hvalspik/naming/Names.java", "license": "apache-2.0", "size": 2574 }
[ "java.util.List", "java.util.stream.Collectors", "java.util.stream.IntStream" ]
import java.util.List; import java.util.stream.Collectors; import java.util.stream.IntStream;
import java.util.*; import java.util.stream.*;
[ "java.util" ]
java.util;
1,516,551
@Override public InputConnection onCreateInputConnection(EditorInfo outAttrs) { if (isTextFilterEnabled()) { if (mPublicInputConnection == null) { mDefInputConnection = new BaseInputConnection(this, false); mPublicInputConnection = new InputConnectionWrapper(o...
InputConnection function(EditorInfo outAttrs) { if (isTextFilterEnabled()) { if (mPublicInputConnection == null) { mDefInputConnection = new BaseInputConnection(this, false); mPublicInputConnection = new InputConnectionWrapper(outAttrs); } outAttrs.inputType = EditorInfo.TYPE_CLASS_TEXT EditorInfo.TYPE_TEXT_VARIATION_F...
/** * Return an InputConnection for editing of the filter text. */
Return an InputConnection for editing of the filter text
onCreateInputConnection
{ "repo_name": "daiqiquan/framework-base", "path": "core/java/android/widget/AbsListView.java", "license": "apache-2.0", "size": 279110 }
[ "android.view.inputmethod.BaseInputConnection", "android.view.inputmethod.EditorInfo", "android.view.inputmethod.InputConnection" ]
import android.view.inputmethod.BaseInputConnection; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection;
import android.view.inputmethod.*;
[ "android.view" ]
android.view;
193,648
public Set<V> getDominatingFrontiers(V v) { if (v == null) throw new IllegalStateException("null given"); return dominatingFrontiers.get(v); } // computation
Set<V> function(V v) { if (v == null) throw new IllegalStateException(STR); return dominatingFrontiers.get(v); }
/** * <p>Getter for the field <code>dominatingFrontiers</code>.</p> * * @param v a V object. * @return a {@link java.util.Set} object. */
Getter for the field <code>dominatingFrontiers</code>
getDominatingFrontiers
{ "repo_name": "claudejin/evosuite", "path": "client/src/main/java/org/evosuite/graphs/cdg/DominatorTree.java", "license": "lgpl-3.0", "size": 9205 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,432,723
@Generated @Selector("handleIdentifier") public native String handleIdentifier();
@Selector(STR) native String function();
/** * A CNContactPropertyKey to identify the type of of handle, e.g. CNContactPhoneNumbersKey */
A CNContactPropertyKey to identify the type of of handle, e.g. CNContactPhoneNumbersKey
handleIdentifier
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/corespotlight/CSPerson.java", "license": "apache-2.0", "size": 6794 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
803,052
public void testNewSingleThreadExecutor1() { ExecutorService e = Executors.newSingleThreadExecutor(); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); joinPool(e); }
void function() { ExecutorService e = Executors.newSingleThreadExecutor(); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); e.execute(new NoOpRunnable()); joinPool(e); }
/** * A new SingleThreadExecutor can execute runnables */
A new SingleThreadExecutor can execute runnables
testNewSingleThreadExecutor1
{ "repo_name": "AdmireTheDistance/android_libcore", "path": "jsr166-tests/src/test/java/jsr166/ExecutorsTest.java", "license": "gpl-2.0", "size": 22307 }
[ "java.util.concurrent.ExecutorService", "java.util.concurrent.Executors" ]
import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,340,099
void topicVanished(ThingUID thingUID, MqttBrokerConnection connection, String topic);
void topicVanished(ThingUID thingUID, MqttBrokerConnection connection, String topic);
/** * A MQTT topic vanished. * * @param thingUID The MQTT thing UID of the Thing that established/created the given broker connection. * @param connection The broker connection * @param topic The topic */
A MQTT topic vanished
topicVanished
{ "repo_name": "openhab/openhab2", "path": "bundles/org.openhab.binding.mqtt/src/main/java/org/openhab/binding/mqtt/discovery/MQTTTopicDiscoveryParticipant.java", "license": "epl-1.0", "size": 1588 }
[ "org.openhab.core.io.transport.mqtt.MqttBrokerConnection", "org.openhab.core.thing.ThingUID" ]
import org.openhab.core.io.transport.mqtt.MqttBrokerConnection; import org.openhab.core.thing.ThingUID;
import org.openhab.core.io.transport.mqtt.*; import org.openhab.core.thing.*;
[ "org.openhab.core" ]
org.openhab.core;
154,084
@Override protected double[] getParameterEstimates(double[] utilizationHistoryReversed) { return MathUtil.getRobustLoessParameterEstimates(utilizationHistoryReversed); }
double[] function(double[] utilizationHistoryReversed) { return MathUtil.getRobustLoessParameterEstimates(utilizationHistoryReversed); }
/** * Gets the utilization estimates. * * @param utilizationHistoryReversed the utilization history reversed * @return the utilization estimates */
Gets the utilization estimates
getParameterEstimates
{ "repo_name": "mhe504/MigSim", "path": "src/org/cloudbus/cloudsim/power/PowerVmAllocationPolicyMigrationLocalRegressionRobust.java", "license": "mit", "size": 3203 }
[ "org.cloudbus.cloudsim.util.MathUtil" ]
import org.cloudbus.cloudsim.util.MathUtil;
import org.cloudbus.cloudsim.util.*;
[ "org.cloudbus.cloudsim" ]
org.cloudbus.cloudsim;
344,929
public List<Concept> getSetMembers() { List<Concept> conceptMembers = new Vector<Concept>(); Collection<ConceptSet> sortedConceptSet = getSortedConceptSets(); for (ConceptSet conceptSet : sortedConceptSet) { conceptMembers.add(conceptSet.getConcept()); } return Collections.unmodifiableList(concept...
List<Concept> function() { List<Concept> conceptMembers = new Vector<Concept>(); Collection<ConceptSet> sortedConceptSet = getSortedConceptSets(); for (ConceptSet conceptSet : sortedConceptSet) { conceptMembers.add(conceptSet.getConcept()); } return Collections.unmodifiableList(conceptMembers); }
/** * Get all the concept members of current concept * * @since 1.7 * @return List<Concept> the Concepts that are members of this Concept's set * @should return concept set members sorted according to the sort weight * @should return all the conceptMembers of current Concept * @should return unmodifiable...
Get all the concept members of current concept
getSetMembers
{ "repo_name": "jembi/openmrs-core", "path": "api/src/main/java/org/openmrs/Concept.java", "license": "mpl-2.0", "size": 56456 }
[ "java.util.Collection", "java.util.Collections", "java.util.List", "java.util.Vector" ]
import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
1,674,994
Observable<Map<String, List<String>>> getArrayItemNullAsync();
Observable<Map<String, List<String>>> getArrayItemNullAsync();
/** * Get an dictionary of array of strings {"0": ["1", "2", "3"], "1": null, "2": ["7", "8", "9"]}. * * @return the observable to the Map&lt;String, List&lt;String&gt;&gt; object */
Get an dictionary of array of strings {"0": ["1", "2", "3"], "1": null, "2": ["7", "8", "9"]}
getArrayItemNullAsync
{ "repo_name": "anudeepsharma/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/Dictionarys.java", "license": "mit", "size": 79030 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
788,893
public WebResponse template(String templateFile, Object templateValues) { result = Optional.ofNullable(templateValues); templatePath = Optional.ofNullable(templateFile); contentType = "text/html"; return this; }
WebResponse function(String templateFile, Object templateValues) { result = Optional.ofNullable(templateValues); templatePath = Optional.ofNullable(templateFile); contentType = STR; return this; }
/** * This will return a templated file (for example a mustache enabled html file) that will * use the supplied 'templateValues' to populate the template. The leola-web framework will * return the resulting templated file as the HTTP response. * * @param templateValues * @param te...
This will return a templated file (for example a mustache enabled html file) that will use the supplied 'templateValues' to populate the template. The leola-web framework will return the resulting templated file as the HTTP response
template
{ "repo_name": "tonysparks/leola-web", "path": "src/main/java/leola/web/WebResponse.java", "license": "mit", "size": 12535 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
598,597
private void initReaderFromURL(final Object source, final Hints hints) throws Exception { this.sourceURL = Utils.checkSource(source, hints); // Preliminary check on source if (this.sourceURL == null) { throw new DataSourceException( "This plugin accepts File,...
void function(final Object source, final Hints hints) throws Exception { this.sourceURL = Utils.checkSource(source, hints); if (this.sourceURL == null) { throw new DataSourceException( STR); } MosaicConfigurationBean configuration = null; try { if (sourceURL.getProtocol().equals("file")) { final File sourceFile = URLs....
/** * Init this {@link ImageMosaicReader} using the provided object as a source referring to an * {@link URL}. */
Init this <code>ImageMosaicReader</code> using the provided object as a source referring to an <code>URL</code>
initReaderFromURL
{ "repo_name": "geotools/geotools", "path": "modules/plugin/imagemosaic/src/main/java/org/geotools/gce/imagemosaic/ImageMosaicReader.java", "license": "lgpl-2.1", "size": 56184 }
[ "java.io.File", "java.util.ArrayList", "java.util.List", "java.util.Properties", "java.util.logging.Level", "org.apache.commons.io.FilenameUtils", "org.geotools.coverage.grid.io.footprint.MultiLevelROIProvider", "org.geotools.data.DataSourceException", "org.geotools.gce.imagemosaic.catalog.CatalogCo...
import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.Properties; import java.util.logging.Level; import org.apache.commons.io.FilenameUtils; import org.geotools.coverage.grid.io.footprint.MultiLevelROIProvider; import org.geotools.data.DataSourceException; import org.geotools.gce.ima...
import java.io.*; import java.util.*; import java.util.logging.*; import org.apache.commons.io.*; import org.geotools.coverage.grid.io.footprint.*; import org.geotools.data.*; import org.geotools.gce.imagemosaic.catalog.*; import org.geotools.util.*; import org.geotools.util.factory.*;
[ "java.io", "java.util", "org.apache.commons", "org.geotools.coverage", "org.geotools.data", "org.geotools.gce", "org.geotools.util" ]
java.io; java.util; org.apache.commons; org.geotools.coverage; org.geotools.data; org.geotools.gce; org.geotools.util;
1,704,035
public static ObjectNode json(PropertyPanel pp) { ObjectNode result = objectNode() .put(TITLE, pp.title()) .put(TYPE, pp.typeId()) .put(ID, pp.id()); ObjectNode pnode = objectNode(); ArrayNode porder = arrayNode(); for (PropertyPanel.P...
static ObjectNode function(PropertyPanel pp) { ObjectNode result = objectNode() .put(TITLE, pp.title()) .put(TYPE, pp.typeId()) .put(ID, pp.id()); ObjectNode pnode = objectNode(); ArrayNode porder = arrayNode(); for (PropertyPanel.Prop p : pp.properties()) { porder.add(p.key()); pnode.put(p.key(), p.value()); } result....
/** * Translates the given property panel into JSON, for returning * to the client. * * @param pp the property panel model * @return JSON payload */
Translates the given property panel into JSON, for returning to the client
json
{ "repo_name": "jinlongliu/onos", "path": "web/gui/src/main/java/org/onosproject/ui/impl/topo/TopoJson.java", "license": "apache-2.0", "size": 4589 }
[ "com.fasterxml.jackson.databind.node.ArrayNode", "com.fasterxml.jackson.databind.node.ObjectNode", "org.onosproject.ui.topo.ButtonId", "org.onosproject.ui.topo.PropertyPanel" ]
import com.fasterxml.jackson.databind.node.ArrayNode; import com.fasterxml.jackson.databind.node.ObjectNode; import org.onosproject.ui.topo.ButtonId; import org.onosproject.ui.topo.PropertyPanel;
import com.fasterxml.jackson.databind.node.*; import org.onosproject.ui.topo.*;
[ "com.fasterxml.jackson", "org.onosproject.ui" ]
com.fasterxml.jackson; org.onosproject.ui;
2,012,898
public GetRequestBuilder setFetchSource(@Nullable String include, @Nullable String exclude) { return setFetchSource( include == null ? Strings.EMPTY_ARRAY : new String[]{include}, exclude == null ? Strings.EMPTY_ARRAY : new String[]{exclude}); }
GetRequestBuilder function(@Nullable String include, @Nullable String exclude) { return setFetchSource( include == null ? Strings.EMPTY_ARRAY : new String[]{include}, exclude == null ? Strings.EMPTY_ARRAY : new String[]{exclude}); }
/** * Indicate that _source should be returned, with an "include" and/or "exclude" set which can include simple wildcard * elements. * * @param include An optional include (optionally wildcarded) pattern to filter the returned _source * @param exclude An optional exclude (optionally wildcarded)...
Indicate that _source should be returned, with an "include" and/or "exclude" set which can include simple wildcard elements
setFetchSource
{ "repo_name": "strapdata/elassandra", "path": "server/src/main/java/org/elasticsearch/action/get/GetRequestBuilder.java", "license": "apache-2.0", "size": 6230 }
[ "org.elasticsearch.common.Nullable", "org.elasticsearch.common.Strings" ]
import org.elasticsearch.common.Nullable; import org.elasticsearch.common.Strings;
import org.elasticsearch.common.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
1,177,893
void init(HelixManager helixManager, TableConfig tableConfig);
void init(HelixManager helixManager, TableConfig tableConfig);
/** * Initializes the segment assignment. * * @param helixManager Helix manager * @param tableConfig Table config */
Initializes the segment assignment
init
{ "repo_name": "linkedin/pinot", "path": "pinot-controller/src/main/java/org/apache/pinot/controller/helix/core/assignment/segment/SegmentAssignment.java", "license": "apache-2.0", "size": 3338 }
[ "org.apache.helix.HelixManager", "org.apache.pinot.spi.config.table.TableConfig" ]
import org.apache.helix.HelixManager; import org.apache.pinot.spi.config.table.TableConfig;
import org.apache.helix.*; import org.apache.pinot.spi.config.table.*;
[ "org.apache.helix", "org.apache.pinot" ]
org.apache.helix; org.apache.pinot;
200,073
public void createSnapshot(final SnapshotRequest request, final CreateSnapshotListener listener) { final String repositoryName = request.repositoryName; final String snapshotName = request.snapshotName; validate(repositoryName, snapshotName); final SnapshotId snapshotId = new Snapsho...
void function(final SnapshotRequest request, final CreateSnapshotListener listener) { final String repositoryName = request.repositoryName; final String snapshotName = request.snapshotName; validate(repositoryName, snapshotName); final SnapshotId snapshotId = new SnapshotId(snapshotName, UUIDs.randomBase64UUID()); clus...
/** * Initializes the snapshotting process. * <p> * This method is used by clients to start snapshot. It makes sure that there is no snapshots are currently running and * creates a snapshot record in cluster state metadata. * * @param request snapshot request * @param listener snapsh...
Initializes the snapshotting process. This method is used by clients to start snapshot. It makes sure that there is no snapshots are currently running and creates a snapshot record in cluster state metadata
createSnapshot
{ "repo_name": "cwurm/elasticsearch", "path": "core/src/main/java/org/elasticsearch/snapshots/SnapshotsService.java", "license": "apache-2.0", "size": 71477 }
[ "org.elasticsearch.cluster.ClusterStateUpdateTask", "org.elasticsearch.cluster.SnapshotsInProgress", "org.elasticsearch.common.UUIDs" ]
import org.elasticsearch.cluster.ClusterStateUpdateTask; import org.elasticsearch.cluster.SnapshotsInProgress; import org.elasticsearch.common.UUIDs;
import org.elasticsearch.cluster.*; import org.elasticsearch.common.*;
[ "org.elasticsearch.cluster", "org.elasticsearch.common" ]
org.elasticsearch.cluster; org.elasticsearch.common;
2,186,640
private void startAnimation() { initAnimation(); sAnimations.get().add(this); if (mStartDelay > 0 && mListeners != null) { // Listeners were already notified in start() if startDelay is 0; this is // just for delayed animations ArrayList<AnimatorListener> ...
void function() { initAnimation(); sAnimations.get().add(this); if (mStartDelay > 0 && mListeners != null) { ArrayList<AnimatorListener> tmpListeners = (ArrayList<AnimatorListener>) mListeners.clone(); int numListeners = tmpListeners.size(); for (int i = 0; i < numListeners; ++i) { tmpListeners.get(i).onAnimationStart(...
/** * Called internally to start an animation by adding it to the active animations list. Must be * called on the UI thread. */
Called internally to start an animation by adding it to the active animations list. Must be called on the UI thread
startAnimation
{ "repo_name": "Codetail/Mover", "path": "uicomponents/src/main/java/com/nineoldandroids/animation/ValueAnimator.java", "license": "apache-2.0", "size": 53433 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
1,428,209
public String getIntent() { return annot.getNameAsString(COSName.IT); }
String function() { return annot.getNameAsString(COSName.IT); }
/** * Get the intent of the annotation. * * @return The intent of the annotation. */
Get the intent of the annotation
getIntent
{ "repo_name": "mathieufortin01/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/fdf/FDFAnnotation.java", "license": "apache-2.0", "size": 27582 }
[ "org.apache.pdfbox.cos.COSName" ]
import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.cos.*;
[ "org.apache.pdfbox" ]
org.apache.pdfbox;
523,517
public void setMessage(Message msg) { this.message = msg; }
void function(Message msg) { this.message = msg; }
/** * Set the parameter for a given endpoint invocation * * @param msg */
Set the parameter for a given endpoint invocation
setMessage
{ "repo_name": "apache/axis2-java", "path": "modules/jaxws/src/org/apache/axis2/jaxws/server/dispatcher/ProviderDispatcher.java", "license": "apache-2.0", "size": 29127 }
[ "org.apache.axis2.jaxws.message.Message" ]
import org.apache.axis2.jaxws.message.Message;
import org.apache.axis2.jaxws.message.*;
[ "org.apache.axis2" ]
org.apache.axis2;
815,259
public static void writeTo(RoutingExplanations explanations, StreamOutput out) throws IOException { out.writeVInt(explanations.explanations.size()); for (RerouteExplanation explanation : explanations.explanations) { RerouteExplanation.writeTo(explanation, out); } }
static void function(RoutingExplanations explanations, StreamOutput out) throws IOException { out.writeVInt(explanations.explanations.size()); for (RerouteExplanation explanation : explanations.explanations) { RerouteExplanation.writeTo(explanation, out); } }
/** * Write the RoutingExplanations object */
Write the RoutingExplanations object
writeTo
{ "repo_name": "crate/crate", "path": "server/src/main/java/org/elasticsearch/cluster/routing/allocation/RoutingExplanations.java", "license": "apache-2.0", "size": 3498 }
[ "java.io.IOException", "org.elasticsearch.common.io.stream.StreamOutput" ]
import java.io.IOException; import org.elasticsearch.common.io.stream.StreamOutput;
import java.io.*; import org.elasticsearch.common.io.stream.*;
[ "java.io", "org.elasticsearch.common" ]
java.io; org.elasticsearch.common;
1,827,915
public void clear() { oredCriteria.clear(); orderByClause = null; distinct = false; } @SuppressWarnings("ucd") protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); ...
void function() { oredCriteria.clear(); orderByClause = null; distinct = false; } @SuppressWarnings("ucd") protected abstract static class GeneratedCriteria { protected List<Criterion> criteria; protected GeneratedCriteria() { super(); criteria = new ArrayList<Criterion>(); }
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table s_activitystream * * @mbggenerated Thu Jul 16 10:50:11 ICT 2015 */
This method was generated by MyBatis Generator. This method corresponds to the database table s_activitystream
clear
{ "repo_name": "uniteddiversity/mycollab", "path": "mycollab-services/src/main/java/com/esofthead/mycollab/common/domain/ActivityStreamExample.java", "license": "agpl-3.0", "size": 27004 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
353,278
private void _delete(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, String languageId){ Language language = languageAPI.getLanguage(languageId); try{ languageAPI.deleteLanguage(language); SessionMessages.add(req,"message", "message.language.deleted"); Logger.debug(this...
void function(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, String languageId){ Language language = languageAPI.getLanguage(languageId); try{ languageAPI.deleteLanguage(language); SessionMessages.add(req,STR, STR); Logger.debug(this, STR); }catch (Exception e){ SessionMessages.add(req,ST...
/** * Deletes the specified language. * * @param req - The HTTP Request wrapper. * @param res - The HTTP Response wrapper. * @param config - The configuration parameters for this portlet. * @param form - The form containing the information selected by the user in the UI. * @param languageId...
Deletes the specified language
_delete
{ "repo_name": "dotCMS/core", "path": "dotCMS/src/main/java/com/dotmarketing/portlets/languagesmanager/action/EditLanguageAction.java", "license": "gpl-3.0", "size": 7901 }
[ "com.dotcms.repackage.javax.portlet.ActionRequest", "com.dotcms.repackage.javax.portlet.ActionResponse", "com.dotcms.repackage.javax.portlet.PortletConfig", "com.dotcms.repackage.org.apache.struts.action.ActionForm", "com.dotmarketing.portlets.languagesmanager.model.Language", "com.dotmarketing.util.Logge...
import com.dotcms.repackage.javax.portlet.ActionRequest; import com.dotcms.repackage.javax.portlet.ActionResponse; import com.dotcms.repackage.javax.portlet.PortletConfig; import com.dotcms.repackage.org.apache.struts.action.ActionForm; import com.dotmarketing.portlets.languagesmanager.model.Language; import com.dotmar...
import com.dotcms.repackage.javax.portlet.*; import com.dotcms.repackage.org.apache.struts.action.*; import com.dotmarketing.portlets.languagesmanager.model.*; import com.dotmarketing.util.*; import com.liferay.util.servlet.*;
[ "com.dotcms.repackage", "com.dotmarketing.portlets", "com.dotmarketing.util", "com.liferay.util" ]
com.dotcms.repackage; com.dotmarketing.portlets; com.dotmarketing.util; com.liferay.util;
2,731,601
LOG.info("Test testBlockMissingException started."); long blockSize = 1024L; int numBlocks = 4; conf = new HdfsConfiguration(); try { dfs = new MiniDFSCluster(conf, NUM_DATANODES, true, null); dfs.waitActive(); fileSys = (DistributedFileSystem)dfs.getFileSystem(); Path file1 = ne...
LOG.info(STR); long blockSize = 1024L; int numBlocks = 4; conf = new HdfsConfiguration(); try { dfs = new MiniDFSCluster(conf, NUM_DATANODES, true, null); dfs.waitActive(); fileSys = (DistributedFileSystem)dfs.getFileSystem(); Path file1 = new Path(STR); createOldFile(fileSys, file1, 1, numBlocks, blockSize); LocatedBl...
/** * Test DFS Raid */
Test DFS Raid
testBlockMissingException
{ "repo_name": "sdecoder/CMDS-HDFS", "path": "hdfs/src/test/hdfs/org/apache/hadoop/hdfs/TestBlockMissingException.java", "license": "apache-2.0", "size": 5645 }
[ "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.DistributedFileSystem", "org.apache.hadoop.hdfs.MiniDFSCluster", "org.apache.hadoop.hdfs.protocol.LocatedBlocks" ]
import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.protocol.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
906,009
public Map<String, Object> getStatus(Node node) { Map<String, Object> result = new HashMap<String, Object>(); result.put("urnStatus", urnStatus(node)); result.put("doiStatus", doiStatus(node)); result.put("oaiStatus", getOaiStatus(node)); result.put("links", getLinks(node)); result.put("title", getTitle(...
Map<String, Object> function(Node node) { Map<String, Object> result = new HashMap<String, Object>(); result.put(STR, urnStatus(node)); result.put(STR, doiStatus(node)); result.put(STR, getOaiStatus(node)); result.put("links", getLinks(node)); result.put("title", getTitle(node)); result.put(STR, node.getPublishScheme()...
/** * The status contains information about the object with regard to thirdparty * system * * @param node * @return a Map with status information */
The status contains information about the object with regard to thirdparty system
getStatus
{ "repo_name": "edoweb/regal-api", "path": "app/actions/Read.java", "license": "apache-2.0", "size": 28212 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
266,866
public static SAXParserFactory newSaxParserFactory( QName name ) { return getSaxParserFactoryFactory( name ).newInstance(); }
static SAXParserFactory function( QName name ) { return getSaxParserFactoryFactory( name ).newInstance(); }
/** * Returns a new SAXParserFactory from the SAXParserFactory factory bound to the specified name. */
Returns a new SAXParserFactory from the SAXParserFactory factory bound to the specified name
newSaxParserFactory
{ "repo_name": "ctrimble/xchain", "path": "core/src/main/java/org/xchain/framework/lifecycle/XmlFactoryLifecycle.java", "license": "apache-2.0", "size": 16254 }
[ "javax.xml.namespace.QName", "javax.xml.parsers.SAXParserFactory" ]
import javax.xml.namespace.QName; import javax.xml.parsers.SAXParserFactory;
import javax.xml.namespace.*; import javax.xml.parsers.*;
[ "javax.xml" ]
javax.xml;
2,148,134
public static boolean isLandscape( Context context ) { int currentOrientation = context.getResources().getConfiguration().orientation; return currentOrientation == Configuration.ORIENTATION_LANDSCAPE; }
static boolean function( Context context ) { int currentOrientation = context.getResources().getConfiguration().orientation; return currentOrientation == Configuration.ORIENTATION_LANDSCAPE; }
/** * Determine the if the current screen orientation is landscape or not. * * @return True if current orientation is Landscape, false if not. */
Determine the if the current screen orientation is landscape or not
isLandscape
{ "repo_name": "Mithrandir21/Flickster", "path": "app/src/main/java/pm/bam/flickster/logistical/Utils.java", "license": "gpl-3.0", "size": 3981 }
[ "android.content.Context", "android.content.res.Configuration" ]
import android.content.Context; import android.content.res.Configuration;
import android.content.*; import android.content.res.*;
[ "android.content" ]
android.content;
2,836,158
public synchronized NodeType getAllowedLocalityLevelByTime(Priority priority, long nodeLocalityDelayMs, long rackLocalityDelayMs, long currentTimeMs) { // if not being used, can schedule anywhere if (nodeLocalityDelayMs < 0 || rackLocalityDelayMs < 0) { return NodeType.OFF_SWITCH; ...
synchronized NodeType function(Priority priority, long nodeLocalityDelayMs, long rackLocalityDelayMs, long currentTimeMs) { if (nodeLocalityDelayMs < 0 rackLocalityDelayMs < 0) { return NodeType.OFF_SWITCH; } if (! allowedLocalityLevel.containsKey(priority)) { allowedLocalityLevel.put(priority, NodeType.NODE_LOCAL); re...
/** * Return the level at which we are allowed to schedule containers. * Given the thresholds indicating how much time passed before relaxing * scheduling constraints. */
Return the level at which we are allowed to schedule containers. Given the thresholds indicating how much time passed before relaxing scheduling constraints
getAllowedLocalityLevelByTime
{ "repo_name": "tecknowledgeable/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/scheduler/fair/FSAppAttempt.java", "license": "apache-2.0", "size": 29188 }
[ "org.apache.hadoop.yarn.api.records.Priority", "org.apache.hadoop.yarn.server.resourcemanager.scheduler.NodeType" ]
import org.apache.hadoop.yarn.api.records.Priority; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.NodeType;
import org.apache.hadoop.yarn.api.records.*; import org.apache.hadoop.yarn.server.resourcemanager.scheduler.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
350,400
private static List<Object> obtainValues(List<List<Object>> values, int index) { List<Object> aux = new ArrayList<Object>(); for (Object value : values.get(index)) { // If there are a NaN or other String value present in the // measurements... try { aux.add(Double.valueOf(FunctionConstants.replac...
static List<Object> function(List<List<Object>> values, int index) { List<Object> aux = new ArrayList<Object>(); for (Object value : values.get(index)) { try { aux.add(Double.valueOf(FunctionConstants.replaceCommas(value .toString()))); } catch (NumberFormatException e) { aux.add(Double.NaN); } } return aux; }
/** * Gets the measurements of a Method. Values with String will be change for * NaN to do the plot. * * @param values * Values in the Method. * @param index * Index to get the values. * @return List with the real values for the Plot. */
Gets the measurements of a Method. Values with String will be change for NaN to do the plot
obtainValues
{ "repo_name": "sing-group/BEW", "path": "plugins_src/bew/es/uvigo/ei/sing/bew/constants/PlotFunctions.java", "license": "gpl-3.0", "size": 11838 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,411,637
public AbstractTrade getTradeWithKey(Long key) { return tradesMap.get(key); }
AbstractTrade function(Long key) { return tradesMap.get(key); }
/** * Returns the AbstractTrade for the given key. * * @param key * @return */
Returns the AbstractTrade for the given key
getTradeWithKey
{ "repo_name": "lucaslouca/database-comparison", "path": "RegressionToolJDBC/src/main/java/com/lucaslouca/reader/AbstractTradeReader.java", "license": "mit", "size": 1995 }
[ "com.lucaslouca.model.AbstractTrade" ]
import com.lucaslouca.model.AbstractTrade;
import com.lucaslouca.model.*;
[ "com.lucaslouca.model" ]
com.lucaslouca.model;
2,663,704
public int prepare(Xid xid) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, "prepare", new Object[] { ivManagedConnection, AdapterUtil.toString(xid) }); // if the MC mark...
int function(Xid xid) throws XAException { if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) Tr.entry(this, tc, STR, new Object[] { ivManagedConnection, AdapterUtil.toString(xid) }); if (ivManagedConnection._mcStale) { Tr.error(tc, STR); XAException x = new XAException(XAException.XAER_RMFAIL); if (Trace...
/** * Ask the resource manager to prepare for a transaction commit of the transaction specified in xid. * * @param Xid xid - A global transaction identifier * @return int -A value indicating the resource manager's vote on the outcome of the transaction. The possible values are: * XA_RD...
Ask the resource manager to prepare for a transaction commit of the transaction specified in xid
prepare
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/WSRdbXaResourceImpl.java", "license": "epl-1.0", "size": 62331 }
[ "com.ibm.websphere.ras.Tr", "com.ibm.websphere.ras.TraceComponent", "com.ibm.ws.ffdc.FFDCFilter", "com.ibm.ws.rsadapter.AdapterUtil", "com.ibm.ws.rsadapter.exceptions.TransactionException", "javax.transaction.xa.XAException", "javax.transaction.xa.Xid" ]
import com.ibm.websphere.ras.Tr; import com.ibm.websphere.ras.TraceComponent; import com.ibm.ws.ffdc.FFDCFilter; import com.ibm.ws.rsadapter.AdapterUtil; import com.ibm.ws.rsadapter.exceptions.TransactionException; import javax.transaction.xa.XAException; import javax.transaction.xa.Xid;
import com.ibm.websphere.ras.*; import com.ibm.ws.ffdc.*; import com.ibm.ws.rsadapter.*; import com.ibm.ws.rsadapter.exceptions.*; import javax.transaction.xa.*;
[ "com.ibm.websphere", "com.ibm.ws", "javax.transaction" ]
com.ibm.websphere; com.ibm.ws; javax.transaction;
1,793,141
public Set<Path> getAllPaths(boolean[][] adjacencyMatrix, Map<Integer, Set<Integer>> replicationNodes, Connection conn, int maxLength) { logger.info("Entered GraphPathFinder..."); if (maxLength < 2) { throw new IllegalArgumentException("maxLength shou...
Set<Path> function(boolean[][] adjacencyMatrix, Map<Integer, Set<Integer>> replicationNodes, Connection conn, int maxLength) { logger.info(STR); if (maxLength < 2) { throw new IllegalArgumentException(STR); } long startTime = System.currentTimeMillis(); this.inputGraph = new Graph(adjacencyMatrix); if (MEM_CACHE) { thi...
/** * Returns all paths * @param adjacencyMatrix * @param replicationNodes * @param conn * @param maxLength * @return * @throws IllegalArgumentException if <tt>maxLength < 2</tt> */
Returns all paths
getAllPaths
{ "repo_name": "NCIP/cab2b", "path": "software/cab2b/src/java/server/edu/wustl/cab2b/server/path/pathgen/GraphPathFinder.java", "license": "bsd-3-clause", "size": 7873 }
[ "java.sql.Connection", "java.util.HashSet", "java.util.Map", "java.util.Set" ]
import java.sql.Connection; import java.util.HashSet; import java.util.Map; import java.util.Set;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
2,660,621
public static X509TrustManager createTrustManager( String trustStoreLocation, String trustStorePassword, String trustStoreTypeProp, boolean crlEnabled, boolean ocspEnabled, final boolean serverHostnameVerificationEnabled, final boolean clientHostnameVerificati...
static X509TrustManager function( String trustStoreLocation, String trustStorePassword, String trustStoreTypeProp, boolean crlEnabled, boolean ocspEnabled, final boolean serverHostnameVerificationEnabled, final boolean clientHostnameVerificationEnabled) throws TrustManagerException { if (trustStorePassword == null) { t...
/** * Creates a trust manager by loading the trust store from the given file * of the given type, optionally decrypting it using the given password. * @param trustStoreLocation the location of the trust store file. * @param trustStorePassword optional password to decrypt the trust store * ...
Creates a trust manager by loading the trust store from the given file of the given type, optionally decrypting it using the given password
createTrustManager
{ "repo_name": "maoling/zookeeper", "path": "zookeeper-server/src/main/java/org/apache/zookeeper/common/X509Util.java", "license": "apache-2.0", "size": 31075 }
[ "java.io.IOException", "java.security.GeneralSecurityException", "javax.net.ssl.X509TrustManager", "org.apache.zookeeper.common.X509Exception" ]
import java.io.IOException; import java.security.GeneralSecurityException; import javax.net.ssl.X509TrustManager; import org.apache.zookeeper.common.X509Exception;
import java.io.*; import java.security.*; import javax.net.ssl.*; import org.apache.zookeeper.common.*;
[ "java.io", "java.security", "javax.net", "org.apache.zookeeper" ]
java.io; java.security; javax.net; org.apache.zookeeper;
846,521
public ArrayList<Node> getStoreageNodes() { return storeageNodes; }
ArrayList<Node> function() { return storeageNodes; }
/** * returns storage Nodes * @return storage Nodes */
returns storage Nodes
getStoreageNodes
{ "repo_name": "osianSmith/ADT-Viewer", "path": "ADT-Viwer/src/data/root.java", "license": "mit", "size": 1991 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
379,043
private static void doHandShake(int localPort) throws IOException, GSSException { ServerSocket ss = new ServerSocket(localPort); GSSManager manager = GSSManager.getInstance(); GSSCredential serverCreds = manager.createCredential(manager .createName(SERVI...
static void function(int localPort) throws IOException, GSSException { ServerSocket ss = new ServerSocket(localPort); GSSManager manager = GSSManager.getInstance(); GSSCredential serverCreds = manager.createCredential(manager .createName(SERVICE_NAME, null), GSSCredential.DEFAULT_LIFETIME, new Oid( SocksProxyConstants....
/** * Simulates a Socks v5 server using only Kerberos V authentication. * * @param localPort the local port used to bind the server * @throws IOException * @throws GSSException */
Simulates a Socks v5 server using only Kerberos V authentication
doHandShake
{ "repo_name": "sardine/mina-ja", "path": "src/mina-example/src/test/java/org/apache/mina/example/proxy/Socks5GSSAPITestServer.java", "license": "apache-2.0", "size": 8276 }
[ "java.io.DataInputStream", "java.io.DataOutputStream", "java.io.IOException", "java.net.ServerSocket", "java.net.Socket", "org.apache.mina.proxy.handlers.socks.SocksProxyConstants", "org.apache.mina.proxy.utils.ByteUtilities", "org.ietf.jgss.GSSContext", "org.ietf.jgss.GSSCredential", "org.ietf.jg...
import java.io.DataInputStream; import java.io.DataOutputStream; import java.io.IOException; import java.net.ServerSocket; import java.net.Socket; import org.apache.mina.proxy.handlers.socks.SocksProxyConstants; import org.apache.mina.proxy.utils.ByteUtilities; import org.ietf.jgss.GSSContext; import org.ietf.jgss.GSSC...
import java.io.*; import java.net.*; import org.apache.mina.proxy.handlers.socks.*; import org.apache.mina.proxy.utils.*; import org.ietf.jgss.*;
[ "java.io", "java.net", "org.apache.mina", "org.ietf.jgss" ]
java.io; java.net; org.apache.mina; org.ietf.jgss;
1,594,216
public static <Source, Result> ImmutableArrayList<Result> createAll(ImmutableArrayList<Source> items, int fromIndex, int toIndex, Function<? super Source, Result> selector) { Requires.notNull(items, "items"); Requires.range(fromIndex >= 0 && fromIndex <= items.size(), "fromIndex"); Requires....
static <Source, Result> ImmutableArrayList<Result> function(ImmutableArrayList<Source> items, int fromIndex, int toIndex, Function<? super Source, Result> selector) { Requires.notNull(items, "items"); Requires.range(fromIndex >= 0 && fromIndex <= items.size(), STR); Requires.range(toIndex >= 0 && toIndex <= items.size(...
/** * Creates an immutable array by applying a transformation function to the elements of an existing array. * * @param <Source> The type of elements stored in the source array. * @param <Result> The type of elements stored in the target array. * @param items The existing immutable array. ...
Creates an immutable array by applying a transformation function to the elements of an existing array
createAll
{ "repo_name": "sharwell/java-immutable", "path": "src/com/tvl/util/ImmutableArrayList.java", "license": "mit", "size": 67574 }
[ "com.tvl.util.function.Function" ]
import com.tvl.util.function.Function;
import com.tvl.util.function.*;
[ "com.tvl.util" ]
com.tvl.util;
1,846,513
private static String generateCrudSelect(Table table, Column partitioncolumn, Constraint pkey) { StringBuilder sb = new StringBuilder(); sb.append("SELECT * FROM " + table.getTypeName()); generateCrudPKeyWhereClause(partitioncolumn, pkey, sb); sb.append(';'); return sb....
static String function(Table table, Column partitioncolumn, Constraint pkey) { StringBuilder sb = new StringBuilder(); sb.append(STR + table.getTypeName()); generateCrudPKeyWhereClause(partitioncolumn, pkey, sb); sb.append(';'); return sb.toString(); }
/** * Create a statement like: * "select * from <table> where pkey_col1 = ?, pkey_col2 = ? ... ;" */
Create a statement like: "select * from where pkey_col1 = ?, pkey_col2 = ? ... ;"
generateCrudSelect
{ "repo_name": "deerwalk/voltdb", "path": "src/frontend/org/voltdb/DefaultProcedureManager.java", "license": "agpl-3.0", "size": 18589 }
[ "org.voltdb.catalog.Column", "org.voltdb.catalog.Constraint", "org.voltdb.catalog.Table" ]
import org.voltdb.catalog.Column; import org.voltdb.catalog.Constraint; import org.voltdb.catalog.Table;
import org.voltdb.catalog.*;
[ "org.voltdb.catalog" ]
org.voltdb.catalog;
409,875
public boolean showInfoMessage(String message){ TextView infoMessageTv = (TextView) findViewById(R.id.downloadMessage); if(infoMessageTv!=null) { infoMessageTv.setText(message); animateLayouts(infoMessageTv); return true; } else { logger.warn("...
boolean function(String message){ TextView infoMessageTv = (TextView) findViewById(R.id.downloadMessage); if(infoMessageTv!=null) { infoMessageTv.setText(message); animateLayouts(infoMessageTv); return true; } else { logger.warn(STR); } return false; }
/** * Animate / show the download started message * @param message - Message to display on the Download Panel * @return boolean - Returns true if message shown, false otherwise. */
Animate / show the download started message
showInfoMessage
{ "repo_name": "ariestiyansyah/indonesiax-android", "path": "VideoLocker/src/main/java/org/edx/indonesiax/base/BaseFragmentActivity.java", "license": "apache-2.0", "size": 27995 }
[ "android.widget.TextView" ]
import android.widget.TextView;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,075,287
public List<String> getReadableProperties() { List<String> result = new ArrayList<String>(_propertyAdaptorMap.size()); for ( final PropertyAdaptor propertyAdaptor : _propertyAdaptorMap.values() ) { if ( propertyAdaptor.isReadable() ) { result.add...
List<String> function() { List<String> result = new ArrayList<String>(_propertyAdaptorMap.size()); for ( final PropertyAdaptor propertyAdaptor : _propertyAdaptorMap.values() ) { if ( propertyAdaptor.isReadable() ) { result.add( propertyAdaptor.getPropertyName() ); } } return result; }
/** * Returns a List of the names of readable properties (properties with a non-null getter). */
Returns a List of the names of readable properties (properties with a non-null getter)
getReadableProperties
{ "repo_name": "Abnaxos/gaderian", "path": "core/src/main/java/org/ops4j/gaderian/util/ClassAdaptor.java", "license": "apache-2.0", "size": 6509 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,525,696
public static void waitForTaskCompletion(TaskType task, String version, String token, int retryCount) { int retry = 0; TaskType statusTask = task; while ((!statusTask.getStatus().equalsIgnoreCase("success") && !statusTask.getStatus() .equalsIgnoreCase("error")) ...
static void function(TaskType task, String version, String token, int retryCount) { int retry = 0; TaskType statusTask = task; while ((!statusTask.getStatus().equalsIgnoreCase(STR) && !statusTask.getStatus() .equalsIgnoreCase("error")) && retry++ < retryCount) { HttpGet get = new HttpGet(statusTask.getHref()); get.setH...
/** * Continually makes a GET request to the passed in Taks's Href with a 10 second delay between * each request to avoid sending too many requests to the API too fast. * * @param task * the TaskType instnace to query and wait for completion */
Continually makes a GET request to the passed in Taks's Href with a 10 second delay between each request to avoid sending too many requests to the API too fast
waitForTaskCompletion
{ "repo_name": "vmware/vchs", "path": "src/main/java/com/vmware/vchs/api/samples/services/Compute.java", "license": "apache-2.0", "size": 35471 }
[ "com.vmware.vchs.api.samples.SampleConstants", "com.vmware.vchs.api.samples.services.helper.HttpUtils", "com.vmware.vcloud.api.rest.schema_v1_5.TaskType", "java.util.concurrent.TimeUnit", "org.apache.http.HttpHeaders", "org.apache.http.HttpResponse", "org.apache.http.client.methods.HttpGet" ]
import com.vmware.vchs.api.samples.SampleConstants; import com.vmware.vchs.api.samples.services.helper.HttpUtils; import com.vmware.vcloud.api.rest.schema_v1_5.TaskType; import java.util.concurrent.TimeUnit; import org.apache.http.HttpHeaders; import org.apache.http.HttpResponse; import org.apache.http.client.methods.H...
import com.vmware.vchs.api.samples.*; import com.vmware.vchs.api.samples.services.helper.*; import com.vmware.vcloud.api.rest.schema_v1_5.*; import java.util.concurrent.*; import org.apache.http.*; import org.apache.http.client.methods.*;
[ "com.vmware.vchs", "com.vmware.vcloud", "java.util", "org.apache.http" ]
com.vmware.vchs; com.vmware.vcloud; java.util; org.apache.http;
626,718
public static <I, O, K> void write(Automaton<TLabel<I, O>, K> transducer, Writer writer, Format<I> inputLabelFormat, Format<O> outputLabelFormat) throws FileNotFoundException { ReverselyAccessibleAutomaton<TLabel<I, O>, K> a = new ArrayAutomaton<TLabel<I, O>, K>(transducer.initialStates().size() > 1 ? Operations.si...
static <I, O, K> void function(Automaton<TLabel<I, O>, K> transducer, Writer writer, Format<I> inputLabelFormat, Format<O> outputLabelFormat) throws FileNotFoundException { ReverselyAccessibleAutomaton<TLabel<I, O>, K> a = new ArrayAutomaton<TLabel<I, O>, K>(transducer.initialStates().size() > 1 ? Operations.singleInit...
/** * Writes the specified transducer to the specified writer. * The input and output label formats are specified by the arguments. */
Writes the specified transducer to the specified writer. The input and output label formats are specified by the arguments
write
{ "repo_name": "jasperhoogland/jautomata", "path": "jautomata/src/main/java/net/jhoogland/jautomata/io/TransducerIO.java", "license": "apache-2.0", "size": 6138 }
[ "java.io.FileNotFoundException", "java.io.PrintWriter", "java.io.Writer", "net.jhoogland.jautomata.ArrayAutomaton", "net.jhoogland.jautomata.Automata", "net.jhoogland.jautomata.Automaton", "net.jhoogland.jautomata.ReverselyAccessibleAutomaton", "net.jhoogland.jautomata.TLabel", "net.jhoogland.jautom...
import java.io.FileNotFoundException; import java.io.PrintWriter; import java.io.Writer; import net.jhoogland.jautomata.ArrayAutomaton; import net.jhoogland.jautomata.Automata; import net.jhoogland.jautomata.Automaton; import net.jhoogland.jautomata.ReverselyAccessibleAutomaton; import net.jhoogland.jautomata.TLabel; i...
import java.io.*; import net.jhoogland.jautomata.*; import net.jhoogland.jautomata.operations.*;
[ "java.io", "net.jhoogland.jautomata" ]
java.io; net.jhoogland.jautomata;
1,762,835
public File getMetricsFolder() { return this.metricsFolder; }
File function() { return this.metricsFolder; }
/** * Informs the location of the folder where the metrics will be stored * * @return A {@link File} object correspondent to the metrics folder */
Informs the location of the folder where the metrics will be stored
getMetricsFolder
{ "repo_name": "spgroup/groundhog", "path": "src/java/main/br/ufpe/cin/groundhog/main/CmdOptions.java", "license": "gpl-2.0", "size": 4878 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,294,142
public DatabaseMeta[] getUsedDatabaseConnections() { return new DatabaseMeta[] {}; }
DatabaseMeta[] function() { return new DatabaseMeta[] {}; }
/** * This method returns all the database connections that are used by the step. * * @return an array of database connections meta-data. Return an empty array if no connections are used. */
This method returns all the database connections that are used by the step
getUsedDatabaseConnections
{ "repo_name": "alina-ipatina/pentaho-kettle", "path": "engine/src/org/pentaho/di/trans/step/BaseStepMeta.java", "license": "apache-2.0", "size": 36587 }
[ "org.pentaho.di.core.database.DatabaseMeta" ]
import org.pentaho.di.core.database.DatabaseMeta;
import org.pentaho.di.core.database.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,700,552
protected void addSocketTimeoutMsPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_InboundEndpoint_socketTimeoutMs_feature"), getString("_UI_P...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.INBOUND_ENDPOINT__SOCKET_TIMEOUT_MS, true, false, false, ItemPropertyDescript...
/** * This adds a property descriptor for the Socket Timeout Ms feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated NOT */
This adds a property descriptor for the Socket Timeout Ms feature.
addSocketTimeoutMsPropertyDescriptor
{ "repo_name": "nwnpallewela/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/InboundEndpointItemProvider.java", "license": "apache-2.0", "size": 165854 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage;
import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.gmf.esb.*;
[ "org.eclipse.emf", "org.wso2.developerstudio" ]
org.eclipse.emf; org.wso2.developerstudio;
2,530,643
private boolean addChunkToList(PngChunk chunk, List<PngChunk> list, boolean includedata) { boolean overflow = false; // procesamiento extra para ciertos chunks if( chunk.id.equals(PngHelper.IPHYS_TEXT)) { ByteArrayInputStream b= chunk.getAsByteStream(); int resx= PngHelper.readInt4(b); int resy=...
boolean function(PngChunk chunk, List<PngChunk> list, boolean includedata) { boolean overflow = false; if( chunk.id.equals(PngHelper.IPHYS_TEXT)) { ByteArrayInputStream b= chunk.getAsByteStream(); int resx= PngHelper.readInt4(b); int resy= PngHelper.readInt4(b); int mode = PngHelper.readByte(b); if(mode==1 & resx==resy...
/** * devuelve flag overflow ( true si no lo agregamos con datos porque se * excedio capacidad en memoria) */
devuelve flag overflow ( true si no lo agregamos con datos porque se excedio capacidad en memoria)
addChunkToList
{ "repo_name": "jakeri/pngj-for-Google-App-Engine", "path": "src/ar/com/hjg/pngj/PngReader.java", "license": "apache-2.0", "size": 12179 }
[ "java.io.ByteArrayInputStream", "java.util.List" ]
import java.io.ByteArrayInputStream; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,599,057
final XLValue xlValue = PROCESSOR.invoke("JConstruct", XLString.of("java.lang.Object")); assertTrue(xlValue instanceof XLObject); final Object object = HEAP.getObject(((XLObject) xlValue).getHandle()); assertEquals(object.getClass(), Object.class); }
final XLValue xlValue = PROCESSOR.invoke(STR, XLString.of(STR)); assertTrue(xlValue instanceof XLObject); final Object object = HEAP.getObject(((XLObject) xlValue).getHandle()); assertEquals(object.getClass(), Object.class); }
/** * Tests construction of an object using new Object(). */
Tests construction of an object using new Object()
testJConstructObject
{ "repo_name": "McLeodMoores/xl4j", "path": "xll-java/src/test/java/com/mcleodmoores/xl4j/v1/javacode/ObjectConstructionTest.java", "license": "gpl-3.0", "size": 4029 }
[ "com.mcleodmoores.xl4j.v1.api.values.XLObject", "com.mcleodmoores.xl4j.v1.api.values.XLString", "com.mcleodmoores.xl4j.v1.api.values.XLValue", "org.testng.Assert" ]
import com.mcleodmoores.xl4j.v1.api.values.XLObject; import com.mcleodmoores.xl4j.v1.api.values.XLString; import com.mcleodmoores.xl4j.v1.api.values.XLValue; import org.testng.Assert;
import com.mcleodmoores.xl4j.v1.api.values.*; import org.testng.*;
[ "com.mcleodmoores.xl4j", "org.testng" ]
com.mcleodmoores.xl4j; org.testng;
2,807,789
public void startScanNode(SiteNode node) { Target target = new Target(node); target.setRecurse(true); this.startScan(target, null, null); }
void function(SiteNode node) { Target target = new Target(node); target.setRecurse(true); this.startScan(target, null, null); }
/** * Start scan node. * * @param node the node */
Start scan node
startScanNode
{ "repo_name": "gmaran23/zaproxy", "path": "zap/src/main/java/org/zaproxy/zap/extension/spider/ExtensionSpider.java", "license": "apache-2.0", "size": 28833 }
[ "org.parosproxy.paros.model.SiteNode", "org.zaproxy.zap.model.Target" ]
import org.parosproxy.paros.model.SiteNode; import org.zaproxy.zap.model.Target;
import org.parosproxy.paros.model.*; import org.zaproxy.zap.model.*;
[ "org.parosproxy.paros", "org.zaproxy.zap" ]
org.parosproxy.paros; org.zaproxy.zap;
540,436
void refresh(PersistentObject object);
void refresh(PersistentObject object);
/** * Refresh the state of the given persistent object from the data store. * * @param object the object to refresh. */
Refresh the state of the given persistent object from the data store
refresh
{ "repo_name": "NCIP/caarray", "path": "software/caarray-ejb.jar/src/main/java/gov/nih/nci/caarray/application/GenericDataService.java", "license": "bsd-3-clause", "size": 8505 }
[ "com.fiveamsolutions.nci.commons.data.persistent.PersistentObject" ]
import com.fiveamsolutions.nci.commons.data.persistent.PersistentObject;
import com.fiveamsolutions.nci.commons.data.persistent.*;
[ "com.fiveamsolutions.nci" ]
com.fiveamsolutions.nci;
1,737,212
public String getIdentifier() { return ID3v24Frames.FRAME_ID_CONDUCTOR; }
String function() { return ID3v24Frames.FRAME_ID_CONDUCTOR; }
/** * The ID3v2 frame identifier * * @return the ID3v2 frame identifier for this frame type */
The ID3v2 frame identifier
getIdentifier
{ "repo_name": "Talckrer/BlocksForUse", "path": "org/jaudiotagger/tag/id3/framebody/FrameBodyTPE3.java", "license": "gpl-2.0", "size": 2479 }
[ "org.jaudiotagger.tag.id3.ID3v24Frames" ]
import org.jaudiotagger.tag.id3.ID3v24Frames;
import org.jaudiotagger.tag.id3.*;
[ "org.jaudiotagger.tag" ]
org.jaudiotagger.tag;
2,058,812
public ServiceCall getComplexItemEmptyAsync(final ServiceCallback<Map<String, Widget>> serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException("ServiceCallback is required for async calls."); }
ServiceCall function(final ServiceCallback<Map<String, Widget>> serviceCallback) throws IllegalArgumentException { if (serviceCallback == null) { throw new IllegalArgumentException(STR); }
/** * Get dictionary of complex type with empty item {"0": {"integer": 1, "string": "2"}, "1:" {}, "2": {"integer": 5, "string": "6"}}. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if callback is null *...
Get dictionary of complex type with empty item {"0": {"integer": 1, "string": "2"}, "1:" {}, "2": {"integer": 5, "string": "6"}}
getComplexItemEmptyAsync
{ "repo_name": "John-Hart/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/implementation/DictionarysImpl.java", "license": "mit", "size": 172079 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback", "java.util.Map" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; import java.util.Map;
import com.microsoft.rest.*; import java.util.*;
[ "com.microsoft.rest", "java.util" ]
com.microsoft.rest; java.util;
2,322,916
public void init( MappedTrackInfo mappedTrackInfo, int rendererIndex, boolean isDisabled, List<SelectionOverride> overrides, @Nullable Comparator<Format> trackFormatComparator, @Nullable TrackSelectionListener listener) { this.mappedTrackInfo = mappedTrackInfo; this.rendere...
void function( MappedTrackInfo mappedTrackInfo, int rendererIndex, boolean isDisabled, List<SelectionOverride> overrides, @Nullable Comparator<Format> trackFormatComparator, @Nullable TrackSelectionListener listener) { this.mappedTrackInfo = mappedTrackInfo; this.rendererIndex = rendererIndex; this.isDisabled = isDisab...
/** * Initialize the view to select tracks for a specified renderer using {@link MappedTrackInfo} and * a set of {@link DefaultTrackSelector.Parameters}. * * @param mappedTrackInfo The {@link MappedTrackInfo}. * @param rendererIndex The index of the renderer. * @param isDisabled Whether the renderer s...
Initialize the view to select tracks for a specified renderer using <code>MappedTrackInfo</code> and a set of <code>DefaultTrackSelector.Parameters</code>
init
{ "repo_name": "google/ExoPlayer", "path": "library/ui/src/main/java/com/google/android/exoplayer2/ui/TrackSelectionView.java", "license": "apache-2.0", "size": 16786 }
[ "androidx.annotation.Nullable", "com.google.android.exoplayer2.Format", "com.google.android.exoplayer2.trackselection.DefaultTrackSelector", "com.google.android.exoplayer2.trackselection.MappingTrackSelector", "java.util.Comparator", "java.util.List" ]
import androidx.annotation.Nullable; import com.google.android.exoplayer2.Format; import com.google.android.exoplayer2.trackselection.DefaultTrackSelector; import com.google.android.exoplayer2.trackselection.MappingTrackSelector; import java.util.Comparator; import java.util.List;
import androidx.annotation.*; import com.google.android.exoplayer2.*; import com.google.android.exoplayer2.trackselection.*; import java.util.*;
[ "androidx.annotation", "com.google.android", "java.util" ]
androidx.annotation; com.google.android; java.util;
867,484
public String getC12() { return getDecimal(5 + 50, 6); } // getC12 //---------------- protected static final Field C13 = new Field(5 + 56, 3, "C13");
String function() { return getDecimal(5 + 50, 6); } protected static final Field C13 = new Field(5 + 56, 3, "C13");
/** Gets C12 - Betrag EUR * @return Betrag EUR */
Gets C12 - Betrag EUR
getC12
{ "repo_name": "gfis/xtrans", "path": "src/main/java/org/teherba/xtrans/finance/DTA2RecordBase.java", "license": "apache-2.0", "size": 30931 }
[ "org.teherba.xtrans.Field" ]
import org.teherba.xtrans.Field;
import org.teherba.xtrans.*;
[ "org.teherba.xtrans" ]
org.teherba.xtrans;
2,078,862
public Object[] readData(DataInputStream inputStream) throws KettleFileException, SocketTimeoutException;
Object[] function(DataInputStream inputStream) throws KettleFileException, SocketTimeoutException;
/** * De-serialize a row of data (no metadata is read) from an input stream. * * @param inputStream the inputstream to read from * @return a new row of data * @throws KettleFileException in case a I/O error occurs * @throws SocketTimeoutException In case there is a timeout during reading. ...
De-serialize a row of data (no metadata is read) from an input stream
readData
{ "repo_name": "bsspirit/kettle-4.4.0-stable", "path": "src-core/org/pentaho/di/core/row/RowMetaInterface.java", "license": "apache-2.0", "size": 21111 }
[ "java.io.DataInputStream", "java.net.SocketTimeoutException", "org.pentaho.di.core.exception.KettleFileException" ]
import java.io.DataInputStream; import java.net.SocketTimeoutException; import org.pentaho.di.core.exception.KettleFileException;
import java.io.*; import java.net.*; import org.pentaho.di.core.exception.*;
[ "java.io", "java.net", "org.pentaho.di" ]
java.io; java.net; org.pentaho.di;
481,714
protected Iterator<Map.Entry<K, V>> createEntrySetIterator() { if (size() == 0) { return EmptyIterator.INSTANCE; } return new EntrySetIterator<K, V>(this); } protected static class EntrySet <K,V> extends AbstractSet<Map.Entry<K, V>> { protected fina...
Iterator<Map.Entry<K, V>> function() { if (size() == 0) { return EmptyIterator.INSTANCE; } return new EntrySetIterator<K, V>(this); } protected static class EntrySet <K,V> extends AbstractSet<Map.Entry<K, V>> { protected final AbstractHashedMap<K, V> parent; protected EntrySet(AbstractHashedMap<K, V> parent) { super();...
/** * Creates an entry set iterator. * Subclasses can override this to return iterators with different properties. * * @return the entrySet iterator */
Creates an entry set iterator. Subclasses can override this to return iterators with different properties
createEntrySetIterator
{ "repo_name": "samuelhehe/androidpn_enhanced_client", "path": "asmack/org/jivesoftware/smack/util/collections/AbstractHashedMap.java", "license": "apache-2.0", "size": 44000 }
[ "java.util.AbstractSet", "java.util.Iterator", "java.util.Map" ]
import java.util.AbstractSet; import java.util.Iterator; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,847,771
public void layoutContainer(Container target) { checkContainer(target); int nChildren = target.getComponentCount(); int[] xOffsets = new int[nChildren]; int[] xSpans = new int[nChildren]; int[] yOffsets = new int[nChildren]; int[] ySpans = new int[nChildren]; ...
void function(Container target) { checkContainer(target); int nChildren = target.getComponentCount(); int[] xOffsets = new int[nChildren]; int[] xSpans = new int[nChildren]; int[] yOffsets = new int[nChildren]; int[] ySpans = new int[nChildren]; Dimension alloc = target.getSize(); Insets in = target.getInsets(); alloc....
/** * Called by the AWT <!-- XXX CHECK! --> when the specified container * needs to be laid out. * * @param target the container to lay out * * @exception AWTError if the target isn't the container specified to the * BoxLayout constructor */
Called by the AWT when the specified container needs to be laid out
layoutContainer
{ "repo_name": "NCIP/catrip", "path": "codebase/projects/gui/src/java/edu/duke/cabig/catrip/gui/components/PreferredHeightBoxLayout.java", "license": "bsd-3-clause", "size": 15913 }
[ "java.awt.Component", "java.awt.ComponentOrientation", "java.awt.Container", "java.awt.Dimension", "java.awt.Insets", "javax.swing.SizeRequirements" ]
import java.awt.Component; import java.awt.ComponentOrientation; import java.awt.Container; import java.awt.Dimension; import java.awt.Insets; import javax.swing.SizeRequirements;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,166,115
@Override public Iterator<BlueRun> iterator(int start, int limit) { List<BlueRun> c = new ArrayList<>(); List<BluePipeline> branches; // Check for branch filter StaplerRequest req = Stapler.getCurrentRequest(); String branchFilter = null; if (req != null) { ...
Iterator<BlueRun> function(int start, int limit) { List<BlueRun> c = new ArrayList<>(); List<BluePipeline> branches; StaplerRequest req = Stapler.getCurrentRequest(); String branchFilter = null; if (req != null) { branchFilter = req.getParameter(STR); } if (!StringUtils.isEmpty(branchFilter)) { BluePipeline pipeline = ...
/** * Fetches maximum up to MAX_MBP_RUNS_ROWS rows from each branch and does pagination on that. * * JVM property MAX_MBP_RUNS_ROWS can be used to tune this value to optimize performance for given setup */
Fetches maximum up to MAX_MBP_RUNS_ROWS rows from each branch and does pagination on that. JVM property MAX_MBP_RUNS_ROWS can be used to tune this value to optimize performance for given setup
iterator
{ "repo_name": "jenkinsci/blueocean-plugin", "path": "blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/MultibranchPipelineRunContainer.java", "license": "mit", "size": 4156 }
[ "io.jenkins.blueocean.rest.Utils", "io.jenkins.blueocean.rest.model.BluePipeline", "io.jenkins.blueocean.rest.model.BlueRun", "io.jenkins.blueocean.rest.model.BlueRunContainer", "java.util.ArrayList", "java.util.Collections", "java.util.Iterator", "java.util.List", "java.util.stream.Collectors", "...
import io.jenkins.blueocean.rest.Utils; import io.jenkins.blueocean.rest.model.BluePipeline; import io.jenkins.blueocean.rest.model.BlueRun; import io.jenkins.blueocean.rest.model.BlueRunContainer; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import java.ut...
import io.jenkins.blueocean.rest.*; import io.jenkins.blueocean.rest.model.*; import java.util.*; import java.util.stream.*; import org.apache.commons.lang.*; import org.kohsuke.stapler.*;
[ "io.jenkins.blueocean", "java.util", "org.apache.commons", "org.kohsuke.stapler" ]
io.jenkins.blueocean; java.util; org.apache.commons; org.kohsuke.stapler;
2,712,278
public float getSourcePixelUnitToMillimeter() { return UnitConv.IN2MM / getSourceResolution(); }
float function() { return UnitConv.IN2MM / getSourceResolution(); }
/** * Returns the conversion factor from pixel units to millimeters. This * depends on the desired source resolution. * @return float conversion factor * @see #getSourceResolution() */
Returns the conversion factor from pixel units to millimeters. This depends on the desired source resolution
getSourcePixelUnitToMillimeter
{ "repo_name": "apache/fop", "path": "fop-core/src/main/java/org/apache/fop/apps/FopFactory.java", "license": "apache-2.0", "size": 17647 }
[ "org.apache.xmlgraphics.util.UnitConv" ]
import org.apache.xmlgraphics.util.UnitConv;
import org.apache.xmlgraphics.util.*;
[ "org.apache.xmlgraphics" ]
org.apache.xmlgraphics;
1,680,945
@Override public Result check(Object object) { Result result = Result.SUCCESS; if (!(object instanceof Serializable) && (!Proxy.isProxyClass(object.getClass()))) { result = new Result(Result.Status.FAILURE, "The object type is not Serializable!", cause); } return result; }
Result function(Object object) { Result result = Result.SUCCESS; if (!(object instanceof Serializable) && (!Proxy.isProxyClass(object.getClass()))) { result = new Result(Result.Status.FAILURE, STR, cause); } return result; }
/** * Makes the check for all objects. Exclusions by type is not supported. * @param object * the object to check * @return the {@link org.apache.wicket.core.util.objects.checker.IObjectChecker.Result#SUCCESS} if the object can be serialized. */
Makes the check for all objects. Exclusions by type is not supported
check
{ "repo_name": "dashorst/wicket", "path": "wicket-core/src/main/java/org/apache/wicket/core/util/objects/checker/ObjectSerializationChecker.java", "license": "apache-2.0", "size": 2501 }
[ "java.io.Serializable", "java.lang.reflect.Proxy" ]
import java.io.Serializable; import java.lang.reflect.Proxy;
import java.io.*; import java.lang.reflect.*;
[ "java.io", "java.lang" ]
java.io; java.lang;
2,472,330
public static void registerRender(Item item) { ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(new ResourceLocation(LibValues.MOD_ID, item.getUnlocalizedName().substring(5)), "inventory")); Utils.getLogger().info("Registered render for " + item.getUnlocalizedName().substring(5)); ...
static void function(Item item) { ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation(new ResourceLocation(LibValues.MOD_ID, item.getUnlocalizedName().substring(5)), STR)); Utils.getLogger().info(STR + item.getUnlocalizedName().substring(5)); }
/** * Registers an item render. * NOTE: This method must be called in the pre-init method. * @param item */
Registers an item render
registerRender
{ "repo_name": "Azaler/MagusTechnica", "path": "src/main/java/magustechnica/common/registry/ItemRegistry.java", "license": "lgpl-2.1", "size": 1939 }
[ "net.minecraft.client.renderer.block.model.ModelResourceLocation", "net.minecraft.item.Item", "net.minecraft.util.ResourceLocation", "net.minecraftforge.client.model.ModelLoader" ]
import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.item.Item; import net.minecraft.util.ResourceLocation; import net.minecraftforge.client.model.ModelLoader;
import net.minecraft.client.renderer.block.model.*; import net.minecraft.item.*; import net.minecraft.util.*; import net.minecraftforge.client.model.*;
[ "net.minecraft.client", "net.minecraft.item", "net.minecraft.util", "net.minecraftforge.client" ]
net.minecraft.client; net.minecraft.item; net.minecraft.util; net.minecraftforge.client;
2,783,160
public boolean write(DataOutputStream daOut, boolean bFixedLength) { try { Boolean boData = (Boolean)this.getData(); boolean bData; if (boData == null) bData = Boolean.FALSE.booleanValue(); // HACK else bData = boData.bool...
boolean function(DataOutputStream daOut, boolean bFixedLength) { try { Boolean boData = (Boolean)this.getData(); boolean bData; if (boData == null) bData = Boolean.FALSE.booleanValue(); else bData = boData.booleanValue(); daOut.writeBoolean(bData); return true; } catch (IOException ex) { ex.printStackTrace(); return fa...
/** * Write the physical data in this field to a stream file. * @param daOut Output stream to add this field to. * @param bFixedLength If false (default) be sure to get the length from the stream. * @return boolean Success? */
Write the physical data in this field to a stream file
write
{ "repo_name": "jbundle/jbundle", "path": "base/base/src/main/java/org/jbundle/base/field/BooleanField.java", "license": "gpl-3.0", "size": 13818 }
[ "java.io.DataOutputStream", "java.io.IOException" ]
import java.io.DataOutputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
165,910
public void setCostStandard (BigDecimal CostStandard) { set_ValueNoCheck (COLUMNNAME_CostStandard, CostStandard); }
void function (BigDecimal CostStandard) { set_ValueNoCheck (COLUMNNAME_CostStandard, CostStandard); }
/** Set Standard Cost. @param CostStandard Standard Costs */
Set Standard Cost
setCostStandard
{ "repo_name": "pplatek/adempiere", "path": "base/src/org/compiere/model/X_M_Product_Costing.java", "license": "gpl-2.0", "size": 11513 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
1,405,813
protected void init(final ControllerServiceInitializationContext context) throws InitializationException { }
void function(final ControllerServiceInitializationContext context) throws InitializationException { }
/** * Provides a mechanism by which subclasses can perform initialization of * the Controller Service before it is scheduled to be run * * @param context of initialization context * @throws InitializationException if unable to init */
Provides a mechanism by which subclasses can perform initialization of the Controller Service before it is scheduled to be run
init
{ "repo_name": "MiniPlayer/log-island", "path": "logisland-api/src/main/java/com/hurence/logisland/controller/AbstractControllerService.java", "license": "apache-2.0", "size": 1612 }
[ "com.hurence.logisland.component.InitializationException" ]
import com.hurence.logisland.component.InitializationException;
import com.hurence.logisland.component.*;
[ "com.hurence.logisland" ]
com.hurence.logisland;
1,539,009
public int fillXZ(BlockVector3 origin, Pattern pattern, double radius, int depth, boolean recursive) throws MaxChangedBlocksException { checkNotNull(origin); checkNotNull(pattern); checkArgument(radius >= 0, "radius >= 0"); checkArgument(depth >= 1, "depth >= 1"); MaskInters...
int function(BlockVector3 origin, Pattern pattern, double radius, int depth, boolean recursive) throws MaxChangedBlocksException { checkNotNull(origin); checkNotNull(pattern); checkArgument(radius >= 0, STR); checkArgument(depth >= 1, STR); MaskIntersection mask = new MaskIntersection( new RegionMask(new EllipsoidRegio...
/** * Fills an area recursively in the X/Z directions. * * @param origin the origin to start the fill from * @param pattern the pattern to fill with * @param radius the radius of the spherical area to fill, with 0 as the smallest radius * @param depth the maximum depth, starting from the o...
Fills an area recursively in the X/Z directions
fillXZ
{ "repo_name": "HolodeckOne-Minecraft/WorldEdit", "path": "worldedit-core/src/main/java/com/sk89q/worldedit/EditSession.java", "license": "gpl-3.0", "size": 107454 }
[ "com.google.common.base.Preconditions", "com.sk89q.worldedit.function.block.BlockReplace", "com.sk89q.worldedit.function.mask.BoundedHeightMask", "com.sk89q.worldedit.function.mask.ExistingBlockMask", "com.sk89q.worldedit.function.mask.MaskIntersection", "com.sk89q.worldedit.function.mask.Masks", "com.s...
import com.google.common.base.Preconditions; import com.sk89q.worldedit.function.block.BlockReplace; import com.sk89q.worldedit.function.mask.BoundedHeightMask; import com.sk89q.worldedit.function.mask.ExistingBlockMask; import com.sk89q.worldedit.function.mask.MaskIntersection; import com.sk89q.worldedit.function.mask...
import com.google.common.base.*; import com.sk89q.worldedit.function.block.*; import com.sk89q.worldedit.function.mask.*; import com.sk89q.worldedit.function.operation.*; import com.sk89q.worldedit.function.pattern.*; import com.sk89q.worldedit.function.visitor.*; import com.sk89q.worldedit.math.*; import com.sk89q.wor...
[ "com.google.common", "com.sk89q.worldedit" ]
com.google.common; com.sk89q.worldedit;
1,306,275
void remove(Guid vm);
void remove(Guid vm);
/** * Removes the VM with the specified id. * * @param vm * the VM id */
Removes the VM with the specified id
remove
{ "repo_name": "raksha-rao/gluster-ovirt", "path": "backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmDAO.java", "license": "apache-2.0", "size": 3896 }
[ "org.ovirt.engine.core.compat.Guid" ]
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.compat.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
2,906,195
static TemporaryRowHolderResultSet getNewRSOnCurrentRow ( Activation activation, CursorResultSet rs ) throws StandardException { TemporaryRowHolderImpl singleRow = new TemporaryRowHolderImpl(activation, null); singleRow.insert(rs.getCurrentRow()); return (TemporaryRowHolderResultSet) singleRow.g...
static TemporaryRowHolderResultSet getNewRSOnCurrentRow ( Activation activation, CursorResultSet rs ) throws StandardException { TemporaryRowHolderImpl singleRow = new TemporaryRowHolderImpl(activation, null); singleRow.insert(rs.getCurrentRow()); return (TemporaryRowHolderResultSet) singleRow.getResultSet(); }
/** * Whip up a new Temp ResultSet that has a single * row, the current row of this result set. * * @param activation the activation * @param rs the result set * * @return a single row result set * * @exception StandardException on error */
Whip up a new Temp ResultSet that has a single row, the current row of this result set
getNewRSOnCurrentRow
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/sql/execute/TemporaryRowHolderResultSet.java", "license": "apache-2.0", "size": 38283 }
[ "com.pivotal.gemfirexd.internal.iapi.error.StandardException", "com.pivotal.gemfirexd.internal.iapi.sql.Activation", "com.pivotal.gemfirexd.internal.iapi.sql.execute.CursorResultSet" ]
import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.sql.Activation; import com.pivotal.gemfirexd.internal.iapi.sql.execute.CursorResultSet;
import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.sql.*; import com.pivotal.gemfirexd.internal.iapi.sql.execute.*;
[ "com.pivotal.gemfirexd" ]
com.pivotal.gemfirexd;
2,102,391
public ParameterService getParameterService() { return parameterService; }
ParameterService function() { return parameterService; }
/** * Gets the parameterService attribute. * @return Returns the parameterService. */
Gets the parameterService attribute
getParameterService
{ "repo_name": "Ariah-Group/Finance", "path": "af_webapp/src/main/java/org/kuali/kfs/fp/document/validation/impl/GeneralErrorCorrectionObjectTypeValidation.java", "license": "apache-2.0", "size": 4202 }
[ "org.kuali.rice.coreservice.framework.parameter.ParameterService" ]
import org.kuali.rice.coreservice.framework.parameter.ParameterService;
import org.kuali.rice.coreservice.framework.parameter.*;
[ "org.kuali.rice" ]
org.kuali.rice;
1,518,720
public void setFetchSize(int fetchSize) throws SQLException { resultSet.setFetchSize(fetchSize); }
void function(int fetchSize) throws SQLException { resultSet.setFetchSize(fetchSize); }
/** * Sets the result set's fetch size. * * @param fetchSize * The result set's fetch size. * * @throws SQLException * If an error occurs while setting the fetch size. */
Sets the result set's fetch size
setFetchSize
{ "repo_name": "gk-brown/HTTP-RPC", "path": "httprpc-client/src/main/java/org/httprpc/sql/ResultSetAdapter.java", "license": "apache-2.0", "size": 3972 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,026,201
public List<JavaToken> getTokens() { return getTokenSource().getTokens(); }
List<JavaToken> function() { return getTokenSource().getTokens(); }
/** * Return the list of JavaParser specific tokens that have been encountered while parsing code using this parser. * * @return a list of tokens */
Return the list of JavaParser specific tokens that have been encountered while parsing code using this parser
getTokens
{ "repo_name": "droolsjbpm/drools", "path": "drools-model/drools-mvel-parser/src/main/javacc-support/org/drools/mvel/parser/GeneratedMvelParserBase.java", "license": "apache-2.0", "size": 13515 }
[ "com.github.javaparser.JavaToken", "java.util.List" ]
import com.github.javaparser.JavaToken; import java.util.List;
import com.github.javaparser.*; import java.util.*;
[ "com.github.javaparser", "java.util" ]
com.github.javaparser; java.util;
937,248