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 void setAmtSourceCr (BigDecimal AmtSourceCr); | void function (BigDecimal AmtSourceCr); | /** Set Source Credit.
* Source Credit Amount
*/ | Set Source Credit. Source Credit Amount | setAmtSourceCr | {
"repo_name": "itzamnamx/AdempiereFS",
"path": "base/src/org/compiere/model/I_GL_JournalLine.java",
"license": "gpl-2.0",
"size": 16503
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 1,903,083 |
@SuppressWarnings({ "unchecked", "rawtypes" })
public static int typeCoerceCompare(TypeConverter converter, Object leftValue, Object rightValue) {
// optimize for common combinations of comparing numbers
if (leftValue instanceof String && rightValue instanceof String) {
String leftN... | @SuppressWarnings({ STR, STR }) static int function(TypeConverter converter, Object leftValue, Object rightValue) { if (leftValue instanceof String && rightValue instanceof String) { String leftNum = (String) leftValue; String rightNum = (String) rightValue; if (isNumber(leftNum) && isNumber(rightNum)) { Long num1 = Lo... | /**
* A helper method for comparing objects ordering in which it uses type coercion to coerce types between the left
* and right values. This allows you test for ordering for example with a String and Integer type as Camel will be
* able to coerce the types.
*/ | A helper method for comparing objects ordering in which it uses type coercion to coerce types between the left and right values. This allows you test for ordering for example with a String and Integer type as Camel will be able to coerce the types | typeCoerceCompare | {
"repo_name": "mcollovati/camel",
"path": "core/camel-support/src/main/java/org/apache/camel/support/ObjectHelper.java",
"license": "apache-2.0",
"size": 36645
} | [
"org.apache.camel.TypeConverter"
] | import org.apache.camel.TypeConverter; | import org.apache.camel.*; | [
"org.apache.camel"
] | org.apache.camel; | 669,006 |
protected static boolean canAttachNonPrestartedVmToUser(Guid vm_guid) {
return isVmFree(vm_guid, new java.util.ArrayList<String>());
} | static boolean function(Guid vm_guid) { return isVmFree(vm_guid, new java.util.ArrayList<String>()); } | /**
* Checks if a VM can be attached to a user.
* @param vm_guid
* the VM GUID to check.
* @return True if can be attached, false otherwise.
*/ | Checks if a VM can be attached to a user | canAttachNonPrestartedVmToUser | {
"repo_name": "jbeecham/ovirt-engine",
"path": "backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/VmPoolCommandBase.java",
"license": "apache-2.0",
"size": 10859
} | [
"java.util.ArrayList",
"org.ovirt.engine.core.compat.Guid"
] | import java.util.ArrayList; import org.ovirt.engine.core.compat.Guid; | import java.util.*; import org.ovirt.engine.core.compat.*; | [
"java.util",
"org.ovirt.engine"
] | java.util; org.ovirt.engine; | 1,262,688 |
public static boolean hasAncestorOfType(Tag tag, Class ancestorTagClass) {
Assert.notNull(tag, "Tag cannot be null");
Assert.notNull(ancestorTagClass, "Ancestor tag class cannot be null");
if (!Tag.class.isAssignableFrom(ancestorTagClass)) {
throw new IllegalArgumentException(
"Class '" + ancestorTagCl... | static boolean function(Tag tag, Class ancestorTagClass) { Assert.notNull(tag, STR); Assert.notNull(ancestorTagClass, STR); if (!Tag.class.isAssignableFrom(ancestorTagClass)) { throw new IllegalArgumentException( STR + ancestorTagClass.getName() + STR); } Tag ancestor = tag.getParent(); while (ancestor != null) { if (a... | /**
* Determine whether the supplied {@link Tag} has any ancestor tag
* of the supplied type.
* @param tag the tag whose ancestors are to be checked
* @param ancestorTagClass the ancestor {@link Class} being searched for
* @return {@code true} if the supplied {@link Tag} has any ancestor tag
* of the suppli... | Determine whether the supplied <code>Tag</code> has any ancestor tag of the supplied type | hasAncestorOfType | {
"repo_name": "kingtang/spring-learn",
"path": "spring-web/src/main/java/org/springframework/web/util/TagUtils.java",
"license": "gpl-3.0",
"size": 5341
} | [
"javax.servlet.jsp.tagext.Tag",
"org.springframework.util.Assert"
] | import javax.servlet.jsp.tagext.Tag; import org.springframework.util.Assert; | import javax.servlet.jsp.tagext.*; import org.springframework.util.*; | [
"javax.servlet",
"org.springframework.util"
] | javax.servlet; org.springframework.util; | 2,231,900 |
ServiceResponse<Void> putNonAscii(byte[] byteBody) throws ErrorException, IOException, IllegalArgumentException; | ServiceResponse<Void> putNonAscii(byte[] byteBody) throws ErrorException, IOException, IllegalArgumentException; | /**
* Put non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6).
*
* @param byteBody Base64-encoded non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6)
* @throws ErrorException exception thrown from REST call
* @throws IOException exception thrown from serialization/deserialization
... | Put non-ascii byte string hex(FF FE FD FC FB FA F9 F8 F7 F6) | putNonAscii | {
"repo_name": "haocs/autorest",
"path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodybyte/Bytes.java",
"license": "mit",
"size": 5431
} | [
"com.microsoft.rest.ServiceResponse",
"java.io.IOException"
] | import com.microsoft.rest.ServiceResponse; import java.io.IOException; | import com.microsoft.rest.*; import java.io.*; | [
"com.microsoft.rest",
"java.io"
] | com.microsoft.rest; java.io; | 2,310,473 |
@Bean
@Qualifier("metadata")
@Conditional(InsightsSAMLBeanInitializationCondition.class)
public CachingMetadataManager metadata() throws MetadataProviderException {
List<MetadataProvider> providers = new ArrayList<>();
providers.add(idpMetadata());
return new CachingMetadataManager(providers);
} | @Qualifier(STR) @Conditional(InsightsSAMLBeanInitializationCondition.class) CachingMetadataManager function() throws MetadataProviderException { List<MetadataProvider> providers = new ArrayList<>(); providers.add(idpMetadata()); return new CachingMetadataManager(providers); } | /**
* used to provide Metadata Manager
*
* @return
* @throws MetadataProviderException
*/ | used to provide Metadata Manager | metadata | {
"repo_name": "CognizantOneDevOps/Insights",
"path": "PlatformService/src/main/java/com/cognizant/devops/platformservice/security/config/saml/InsightsSecurityConfigurationAdapterSAML.java",
"license": "apache-2.0",
"size": 26210
} | [
"java.util.ArrayList",
"java.util.List",
"org.opensaml.saml2.metadata.provider.MetadataProvider",
"org.opensaml.saml2.metadata.provider.MetadataProviderException",
"org.springframework.beans.factory.annotation.Qualifier",
"org.springframework.context.annotation.Conditional",
"org.springframework.securit... | import java.util.ArrayList; import java.util.List; import org.opensaml.saml2.metadata.provider.MetadataProvider; import org.opensaml.saml2.metadata.provider.MetadataProviderException; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.context.annotation.Conditional; import org.spr... | import java.util.*; import org.opensaml.saml2.metadata.provider.*; import org.springframework.beans.factory.annotation.*; import org.springframework.context.annotation.*; import org.springframework.security.saml.metadata.*; | [
"java.util",
"org.opensaml.saml2",
"org.springframework.beans",
"org.springframework.context",
"org.springframework.security"
] | java.util; org.opensaml.saml2; org.springframework.beans; org.springframework.context; org.springframework.security; | 2,607,898 |
@Test
public void testCloneAggregate()
{
agg = new AggregateSum(Double.class);
assertEquals(Double.class, agg.cloneAggregate().getValueType());
assertEquals(true, agg.cloneAggregate() instanceof AggregateSum);
} | void function() { agg = new AggregateSum(Double.class); assertEquals(Double.class, agg.cloneAggregate().getValueType()); assertEquals(true, agg.cloneAggregate() instanceof AggregateSum); } | /**
* Test cloneAggregate().
*/ | Test cloneAggregate() | testCloneAggregate | {
"repo_name": "jack6215/StreamCQL",
"path": "streaming/src/test/java/com/huawei/streaming/process/agg/aggregator/sum/AggregateSumTest.java",
"license": "apache-2.0",
"size": 4800
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 1,482,608 |
private void writeOutUpdatedRowCount(Statement stmt, XMLStreamWriter xmlWriter, InternalParamCollection params,
int queryLevel) throws DataServiceFault, SQLException {
int updateCount = stmt.getUpdateCount();
DataEntry dataEntry = new DataEntry();
Par... | void function(Statement stmt, XMLStreamWriter xmlWriter, InternalParamCollection params, int queryLevel) throws DataServiceFault, SQLException { int updateCount = stmt.getUpdateCount(); DataEntry dataEntry = new DataEntry(); ParamValue param = new ParamValue(ParamValue.PARAM_VALUE_SCALAR); param.setScalarValue(Integer.... | /**
* This method writes the return update row count to the response
*
* @param stmt SQL Statement
* @param xmlWriter XMLStreamWriter
* @param params input params
* @param queryLevel Query Level
* @throws DataServiceFault
* @throws SQLException
*/ | This method writes the return update row count to the response | writeOutUpdatedRowCount | {
"repo_name": "anupama-pathirage/carbon-data",
"path": "components/data-services/org.wso2.carbon.dataservices.core/src/main/java/org/wso2/carbon/dataservices/core/description/query/SQLQuery.java",
"license": "apache-2.0",
"size": 99078
} | [
"java.sql.SQLException",
"java.sql.Statement",
"javax.xml.stream.XMLStreamWriter",
"org.wso2.carbon.dataservices.core.DataServiceFault",
"org.wso2.carbon.dataservices.core.engine.DataEntry",
"org.wso2.carbon.dataservices.core.engine.InternalParamCollection",
"org.wso2.carbon.dataservices.core.engine.Par... | import java.sql.SQLException; import java.sql.Statement; import javax.xml.stream.XMLStreamWriter; import org.wso2.carbon.dataservices.core.DataServiceFault; import org.wso2.carbon.dataservices.core.engine.DataEntry; import org.wso2.carbon.dataservices.core.engine.InternalParamCollection; import org.wso2.carbon.dataserv... | import java.sql.*; import javax.xml.stream.*; import org.wso2.carbon.dataservices.core.*; import org.wso2.carbon.dataservices.core.engine.*; | [
"java.sql",
"javax.xml",
"org.wso2.carbon"
] | java.sql; javax.xml; org.wso2.carbon; | 295,743 |
public void setWeight(GaussianKernel<T> k, Double d)
{
synchronized(kernels)
{
kernels.put(k, d);
}
}
| void function(GaussianKernel<T> k, Double d) { synchronized(kernels) { kernels.put(k, d); } } | /**
* Sets the weight of kernel k
* @param k kernel
* @param d weight
*/ | Sets the weight of kernel k | setWeight | {
"repo_name": "davidpicard/jkernelmachines",
"path": "src/main/java/net/jkernelmachines/kernel/adaptative/GaussianProductKernel.java",
"license": "bsd-3-clause",
"size": 5450
} | [
"net.jkernelmachines.kernel.GaussianKernel"
] | import net.jkernelmachines.kernel.GaussianKernel; | import net.jkernelmachines.kernel.*; | [
"net.jkernelmachines.kernel"
] | net.jkernelmachines.kernel; | 2,093,629 |
public static String[] toStringArray(Enumeration<String> enumeration) {
if (enumeration == null) {
return null;
}
List<String> list = Collections.list(enumeration);
return list.toArray(new String[list.size()]);
} | static String[] function(Enumeration<String> enumeration) { if (enumeration == null) { return null; } List<String> list = Collections.list(enumeration); return list.toArray(new String[list.size()]); } | /**
* Copy the given Enumeration into a String array. The Enumeration must
* contain String elements only.
*
* @param enumeration the Enumeration to copy
* @return the String array (<code>null</code> if the passed-in Enumeration
* was <code>null</code>)
*/ | Copy the given Enumeration into a String array. The Enumeration must contain String elements only | toStringArray | {
"repo_name": "flylzd/RelaxedReader",
"path": "kocore/src/main/java/com/lemon/library/kocore/utils/StringUtils.java",
"license": "apache-2.0",
"size": 55163
} | [
"java.util.Collections",
"java.util.Enumeration",
"java.util.List"
] | import java.util.Collections; import java.util.Enumeration; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,793,249 |
public void setPreferredSize(Vector2f preferredSize) {
this.preferredSize = preferredSize;
}
| void function(Vector2f preferredSize) { this.preferredSize = preferredSize; } | /**
* Sets the Menu's preferredSize which is used to set maximum width and height, forcing the menu to use Scrolling
* @param preferredSize Vector2f
*/ | Sets the Menu's preferredSize which is used to set maximum width and height, forcing the menu to use Scrolling | setPreferredSize | {
"repo_name": "thecastawaydev/tonegodgui-1",
"path": "src/tonegod/gui/controls/menuing/Menu.java",
"license": "bsd-2-clause",
"size": 27060
} | [
"com.jme3.math.Vector2f"
] | import com.jme3.math.Vector2f; | import com.jme3.math.*; | [
"com.jme3.math"
] | com.jme3.math; | 483,689 |
@Test
public void testGetMetadata_UnhappyPath_EventHasNoMetadata()
throws Exception
{
LOG.info("starting testGetMetadata_UnhappyPath_EventHasNoMetadata()");
// build the event without any metadata
DbusEvent event = createEvent(null);
// create a metadata schema set, just because we like to
... | void function() throws Exception { LOG.info(STR); DbusEvent event = createEvent(null); VersionedSchemaSet metadataSchemaSet = new VersionedSchemaSet(); metadataSchemaSet.add(SchemaRegistryService.DEFAULT_METADATA_SCHEMA_SOURCE, METADATA_SCHEMA_VERSION, new SchemaId(METADATA_SCHEMA_CHECKSUM), CORRECT_METADATA_SCHEMA, tr... | /**
* Verifies that getMetadata() returns null if event has no metadata.
*/ | Verifies that getMetadata() returns null if event has no metadata | testGetMetadata_UnhappyPath_EventHasNoMetadata | {
"repo_name": "tinkujohn/databus",
"path": "databus-client/databus-client-common/src/test/java/com/linkedin/databus/client/consumer/TestInternalMetadata.java",
"license": "apache-2.0",
"size": 12504
} | [
"com.linkedin.databus.client.DbusEventAvroDecoder",
"com.linkedin.databus.core.DbusEvent",
"com.linkedin.databus2.schemas.SchemaId",
"com.linkedin.databus2.schemas.SchemaRegistryService",
"com.linkedin.databus2.schemas.VersionedSchemaSet",
"org.apache.avro.generic.GenericRecord",
"org.testng.Assert"
] | import com.linkedin.databus.client.DbusEventAvroDecoder; import com.linkedin.databus.core.DbusEvent; import com.linkedin.databus2.schemas.SchemaId; import com.linkedin.databus2.schemas.SchemaRegistryService; import com.linkedin.databus2.schemas.VersionedSchemaSet; import org.apache.avro.generic.GenericRecord; import or... | import com.linkedin.databus.client.*; import com.linkedin.databus.core.*; import com.linkedin.databus2.schemas.*; import org.apache.avro.generic.*; import org.testng.*; | [
"com.linkedin.databus",
"com.linkedin.databus2",
"org.apache.avro",
"org.testng"
] | com.linkedin.databus; com.linkedin.databus2; org.apache.avro; org.testng; | 2,488,899 |
List<DataSegment> getUsedSegmentsForIntervals(String dataSource, List<Interval> intervals)
throws IOException; | List<DataSegment> getUsedSegmentsForIntervals(String dataSource, List<Interval> intervals) throws IOException; | /**
* Get all segments which may include any data in the interval and are flagged as used.
*
* @param dataSource The datasource to query
* @param intervals The intervals for which all applicable and used datasources are requested.
*
* @return The DataSegments which include data in the requested inter... | Get all segments which may include any data in the interval and are flagged as used | getUsedSegmentsForIntervals | {
"repo_name": "andy256/druid",
"path": "server/src/main/java/io/druid/indexing/overlord/IndexerMetadataStorageCoordinator.java",
"license": "apache-2.0",
"size": 6836
} | [
"io.druid.timeline.DataSegment",
"java.io.IOException",
"java.util.List",
"org.joda.time.Interval"
] | import io.druid.timeline.DataSegment; import java.io.IOException; import java.util.List; import org.joda.time.Interval; | import io.druid.timeline.*; import java.io.*; import java.util.*; import org.joda.time.*; | [
"io.druid.timeline",
"java.io",
"java.util",
"org.joda.time"
] | io.druid.timeline; java.io; java.util; org.joda.time; | 2,859,212 |
protected Node exitUnits(Token node) throws ParseException {
return node;
} | Node function(Token node) throws ParseException { return node; } | /**
* Called when exiting a parse tree node.
*
* @param node the node being exited
*
* @return the node to add to the parse tree, or
* null if no parse tree should be created
*
* @throws ParseException if the node analysis discovered errors
*/ | Called when exiting a parse tree node | exitUnits | {
"repo_name": "richb-hanover/mibble-2.9.2",
"path": "src/java/net/percederberg/mibble/asn1/Asn1Analyzer.java",
"license": "gpl-2.0",
"size": 275483
} | [
"net.percederberg.grammatica.parser.Node",
"net.percederberg.grammatica.parser.ParseException",
"net.percederberg.grammatica.parser.Token"
] | import net.percederberg.grammatica.parser.Node; import net.percederberg.grammatica.parser.ParseException; import net.percederberg.grammatica.parser.Token; | import net.percederberg.grammatica.parser.*; | [
"net.percederberg.grammatica"
] | net.percederberg.grammatica; | 447,462 |
@Test
public void combinedScopeNonTransitiveFilter3() {
final MavenDependency dependency = MavenDependencies.createDependency(
"org.jboss.shrinkwrap.test:test-dependency-test:1.0.0", ScopeType.TEST, false);
final MavenDependency dependency2 = MavenDependencies.createDependency(
... | void function() { final MavenDependency dependency = MavenDependencies.createDependency( STR, ScopeType.TEST, false); final MavenDependency dependency2 = MavenDependencies.createDependency( STR, ScopeType.PROVIDED, false); File file = Maven.resolver().loadPomFromFile(STR) .addDependencies(dependency, dependency2).resol... | /**
* Tests limiting of the scope and strict artifacts
*
*
*/ | Tests limiting of the scope and strict artifacts | combinedScopeNonTransitiveFilter3 | {
"repo_name": "shrinkwrap/resolver",
"path": "maven/impl-maven/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/integration/MavenResolutionFilterUnitTestCase.java",
"license": "apache-2.0",
"size": 7120
} | [
"java.io.File",
"org.jboss.shrinkwrap.resolver.api.maven.Maven",
"org.jboss.shrinkwrap.resolver.api.maven.ScopeType",
"org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies",
"org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency",
"org.jboss.shrinkwrap.resolver.api.maven.strat... | import java.io.File; import org.jboss.shrinkwrap.resolver.api.maven.Maven; import org.jboss.shrinkwrap.resolver.api.maven.ScopeType; import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependencies; import org.jboss.shrinkwrap.resolver.api.maven.coordinate.MavenDependency; import org.jboss.shrinkwrap.resolve... | import java.io.*; import org.jboss.shrinkwrap.resolver.api.maven.*; import org.jboss.shrinkwrap.resolver.api.maven.coordinate.*; import org.jboss.shrinkwrap.resolver.api.maven.strategy.*; import org.jboss.shrinkwrap.resolver.impl.maven.util.*; | [
"java.io",
"org.jboss.shrinkwrap"
] | java.io; org.jboss.shrinkwrap; | 911,901 |
private void processConstraints(List<ITypeConstraint2> usedIn) {
Iterator<ITypeConstraint2> iter = usedIn.iterator();
while (iter.hasNext()) {
ITypeConstraint2 tc = iter.next();
maintainSimpleConstraint(tc);
//TODO: prune tcs which cannot cause further changes
// Maybe these should be... | void function(List<ITypeConstraint2> usedIn) { Iterator<ITypeConstraint2> iter = usedIn.iterator(); while (iter.hasNext()) { ITypeConstraint2 tc = iter.next(); maintainSimpleConstraint(tc); } } | /**
* Given a list of <code>ITypeConstraint2</code>s that all refer to a given <code>
* ConstraintVariable2</code> (whose type bound has presumably just changed), process each <code>
* ITypeConstraint</code>, propagating the type bound across the constraint as needed.
*
* @param usedIn the <code>List</co... | Given a list of <code>ITypeConstraint2</code>s that all refer to a given <code> ConstraintVariable2</code> (whose type bound has presumably just changed), process each <code> ITypeConstraint</code>, propagating the type bound across the constraint as needed | processConstraints | {
"repo_name": "TypeFox/che",
"path": "plugins/plugin-java/che-plugin-java-ext-jdt/org-eclipse-jdt-ui/src/main/java/org/eclipse/jdt/internal/corext/refactoring/generics/InferTypeArgumentsConstraintsSolver.java",
"license": "epl-1.0",
"size": 18696
} | [
"java.util.Iterator",
"java.util.List",
"org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ITypeConstraint2"
] | import java.util.Iterator; import java.util.List; import org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.ITypeConstraint2; | import java.util.*; import org.eclipse.jdt.internal.corext.refactoring.typeconstraints2.*; | [
"java.util",
"org.eclipse.jdt"
] | java.util; org.eclipse.jdt; | 2,041,622 |
static Query makeAncestorKindQuery(Options options) {
Query.Builder q = Query.newBuilder();
q.addKindBuilder().setName(options.getKind());
q.setFilter(makeFilter(
"__key__",
PropertyFilter.Operator.HAS_ANCESTOR,
makeValue(makeAncestorKey(options.getNamespace(), options.getKind())))... | static Query makeAncestorKindQuery(Options options) { Query.Builder q = Query.newBuilder(); q.addKindBuilder().setName(options.getKind()); q.setFilter(makeFilter( STR, PropertyFilter.Operator.HAS_ANCESTOR, makeValue(makeAncestorKey(options.getNamespace(), options.getKind())))); return q.build(); } | /**
* Build a Cloud Datastore ancestor query for the specified {@link Options#getNamespace} and
* {@link Options#getKind}.
*
* <p>We use ancestor keys and ancestor queries for strong consistency. See
* {@link DatastoreWordCount} javadoc for more information.
*
* @see <a href="https://cloud.google.c... | Build a Cloud Datastore ancestor query for the specified <code>Options#getNamespace</code> and <code>Options#getKind</code>. We use ancestor keys and ancestor queries for strong consistency. See <code>DatastoreWordCount</code> javadoc for more information | makeAncestorKindQuery | {
"repo_name": "tweise/beam",
"path": "examples/java/src/main/java/org/apache/beam/examples/cookbook/DatastoreWordCount.java",
"license": "apache-2.0",
"size": 10258
} | [
"com.google.datastore.v1beta3.PropertyFilter",
"com.google.datastore.v1beta3.Query",
"com.google.datastore.v1beta3.client.DatastoreHelper"
] | import com.google.datastore.v1beta3.PropertyFilter; import com.google.datastore.v1beta3.Query; import com.google.datastore.v1beta3.client.DatastoreHelper; | import com.google.datastore.v1beta3.*; import com.google.datastore.v1beta3.client.*; | [
"com.google.datastore"
] | com.google.datastore; | 853,532 |
@Test(expected = IllegalArgumentException.class)
public void testInvalidValueOfIntegerNegativePrefixLengthIPv4() {
IpPrefix ipPrefix;
ipPrefix = IpPrefix.valueOf(0x01020304, -1);
} | @Test(expected = IllegalArgumentException.class) void function() { IpPrefix ipPrefix; ipPrefix = IpPrefix.valueOf(0x01020304, -1); } | /**
* Tests invalid valueOf() converter for IPv4 integer value and
* negative prefix length.
*/ | Tests invalid valueOf() converter for IPv4 integer value and negative prefix length | testInvalidValueOfIntegerNegativePrefixLengthIPv4 | {
"repo_name": "kuangrewawa/onos",
"path": "utils/misc/src/test/java/org/onlab/packet/IpPrefixTest.java",
"license": "apache-2.0",
"size": 40625
} | [
"org.junit.Test"
] | import org.junit.Test; | import org.junit.*; | [
"org.junit"
] | org.junit; | 911,745 |
@SuppressWarnings("unchecked")
default C[] newArray(int length) {
if (length < 0) throw new IllegalArgumentException("array length less than zero: "+length);
return (C[]) Array.newInstance(getContentClass(), length);
} | @SuppressWarnings(STR) default C[] newArray(int length) { if (length < 0) throw new IllegalArgumentException(STR+length); return (C[]) Array.newInstance(getContentClass(), length); } | /**
* Constructs an array for the handled content representation
* @param length the size of the array (zero or more)
* @return the constructed array
*/ | Constructs an array for the handled content representation | newArray | {
"repo_name": "marklogic/java-client-api",
"path": "marklogic-client-api/src/main/java/com/marklogic/client/io/marker/ContentHandle.java",
"license": "apache-2.0",
"size": 3884
} | [
"java.lang.reflect.Array"
] | import java.lang.reflect.Array; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,680,278 |
List<IdentitySource> identitySources(); | List<IdentitySource> identitySources(); | /**
* Gets the identitySources property: vCenter Single Sign On Identity Sources.
*
* @return the identitySources value.
*/ | Gets the identitySources property: vCenter Single Sign On Identity Sources | identitySources | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/avs/azure-resourcemanager-avs/src/main/java/com/azure/resourcemanager/avs/models/PrivateCloud.java",
"license": "mit",
"size": 22797
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,235,667 |
public static RenderState valueOf(COSName state)
{
if (state == null)
{
return null;
}
return RenderState.valueOf(state.getName().toUpperCase());
} | static RenderState function(COSName state) { if (state == null) { return null; } return RenderState.valueOf(state.getName().toUpperCase()); } | /**
* Returns the base state represented by the given {@link COSName}.
*
* @param state the state name
* @return the state enum value
*/ | Returns the base state represented by the given <code>COSName</code> | valueOf | {
"repo_name": "TomRoush/PdfBox-Android",
"path": "library/src/main/java/com/tom_roush/pdfbox/pdmodel/graphics/optionalcontent/PDOptionalContentGroup.java",
"license": "apache-2.0",
"size": 4685
} | [
"com.tom_roush.pdfbox.cos.COSName"
] | import com.tom_roush.pdfbox.cos.COSName; | import com.tom_roush.pdfbox.cos.*; | [
"com.tom_roush.pdfbox"
] | com.tom_roush.pdfbox; | 615,701 |
@Test
public void testImportUuidCollisionRemoveExisting2() throws Exception {
String xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<sv:node sv:name=\"r\" xmlns:mix=\"http://www.jcp.org/jcr/mix/1.0\" xmlns:nt=\"http://www.jcp.org/jcr/nt/1.0\" xmlns:fn_old=\"http://www.w3.org/200... | void function() throws Exception { String xml = STR1.0\STRUTF-8\"?>\n" + STRr\STRhttp: STRjcr:primaryType\STRName\STR + STRjcr:uuid\STRString\STR + STRrep:principalName\STRString\STR + STR; doImport(getTargetPath(), xml); getImportSession().save(); doImport(getTargetPath(), xml, ImportUUIDBehavior.IMPORT_UUID_COLLISION... | /**
* Same as {@link #testImportUuidCollisionRemoveExisting} with the single
* difference that the initial import is saved before being overwritten.
*
* @throws Exception
*/ | Same as <code>#testImportUuidCollisionRemoveExisting</code> with the single difference that the initial import is saved before being overwritten | testImportUuidCollisionRemoveExisting2 | {
"repo_name": "apache/jackrabbit-oak",
"path": "oak-jcr/src/test/java/org/apache/jackrabbit/oak/jcr/security/user/SystemUserImportTest.java",
"license": "apache-2.0",
"size": 37665
} | [
"javax.jcr.ImportUUIDBehavior"
] | import javax.jcr.ImportUUIDBehavior; | import javax.jcr.*; | [
"javax.jcr"
] | javax.jcr; | 2,031,723 |
public void setConfig(File configurationFile) {
this.configurationFile = configurationFile;
} | void function(File configurationFile) { this.configurationFile = configurationFile; } | /**
* Set a <literal>.cfg.xml</literal> file
* @param configurationFile the file name
*/ | Set a .cfg.xml file | setConfig | {
"repo_name": "HerrB92/obp",
"path": "OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-core/src/main/java/org/hibernate/tool/hbm2ddl/SchemaValidatorTask.java",
"license": "mit",
"size": 5336
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 842,490 |
public KeyNamePair getKeyNamePair()
{
return new KeyNamePair(get_ID(), String.valueOf(getA_Depreciation_Forecast_ID()));
} | KeyNamePair function() { return new KeyNamePair(get_ID(), String.valueOf(getA_Depreciation_Forecast_ID())); } | /** Get Record ID/ColumnName
@return ID/ColumnName pair
*/ | Get Record ID/ColumnName | getKeyNamePair | {
"repo_name": "geneos/adempiere",
"path": "base/src/org/compiere/model/X_A_Depreciation_Forecast.java",
"license": "gpl-2.0",
"size": 7375
} | [
"org.compiere.util.KeyNamePair"
] | import org.compiere.util.KeyNamePair; | import org.compiere.util.*; | [
"org.compiere.util"
] | org.compiere.util; | 453,187 |
public int nextIndex() {
return ((ListIterator<cfData>)iter).nextIndex();
} | int function() { return ((ListIterator<cfData>)iter).nextIndex(); } | /**
* Returns the index of the element that would be returned by a subsequent
* call to <tt>next</tt>. (Returns list size if the list iterator is at the
* end of the list.)
*
* @return the index of the element that would be returned by a subsequent
* call to <tt>next</tt>, or list ... | Returns the index of the element that would be returned by a subsequent call to next. (Returns list size if the list iterator is at the end of the list.) | nextIndex | {
"repo_name": "OpenBD/openbd-core",
"path": "src/com/naryx/tagfusion/cfm/engine/cfArrayListData.java",
"license": "gpl-3.0",
"size": 25754
} | [
"java.util.ListIterator"
] | import java.util.ListIterator; | import java.util.*; | [
"java.util"
] | java.util; | 539,537 |
@Test( enabled = true, groups = GROUP_WITHOUT_NODE_ID )
public void testTomcatFailoverWithSingleNodeWithoutConfiguredNodeId() throws IOException, InterruptedException, HttpException {
// with this group (GROUP_WITHOUT_NODE_ID) the setup method does no set the memcached node id
// in the memcache... | @Test( enabled = true, groups = GROUP_WITHOUT_NODE_ID ) void function() throws IOException, InterruptedException, HttpException { testTomcatFailover(); } | /**
* Related to issue/feature 105 (single memcached node without node id): tomcat failover must work with this configuration.
*/ | Related to issue/feature 105 (single memcached node without node id): tomcat failover must work with this configuration | testTomcatFailoverWithSingleNodeWithoutConfiguredNodeId | {
"repo_name": "magro/memcached-session-manager",
"path": "core/src/test/java/de/javakaffee/web/msm/integration/TomcatFailoverIntegrationTest.java",
"license": "apache-2.0",
"size": 21105
} | [
"java.io.IOException",
"org.apache.http.HttpException",
"org.testng.annotations.Test"
] | import java.io.IOException; import org.apache.http.HttpException; import org.testng.annotations.Test; | import java.io.*; import org.apache.http.*; import org.testng.annotations.*; | [
"java.io",
"org.apache.http",
"org.testng.annotations"
] | java.io; org.apache.http; org.testng.annotations; | 2,814,580 |
public static byte[] getBytes(ByteBuffer buf) {
return readBytes(buf.duplicate());
} | static byte[] function(ByteBuffer buf) { return readBytes(buf.duplicate()); } | /**
* Returns a new byte array, copied from the given {@code buf},
* from the position (inclusive) to the limit (exclusive).
* The position and the other index parameters are not changed.
*
* @param buf a byte buffer
* @return the byte array
* @see #toBytes(ByteBuffer)
*/ | Returns a new byte array, copied from the given buf, from the position (inclusive) to the limit (exclusive). The position and the other index parameters are not changed | getBytes | {
"repo_name": "xydu/carve",
"path": "carve-core/src/main/java/com/qiyi/usercloud/carve/util/Bytes.java",
"license": "apache-2.0",
"size": 53413
} | [
"java.nio.ByteBuffer"
] | import java.nio.ByteBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 839,289 |
protected void preRenderCallback(EntityVillager p_77041_1_, float p_77041_2_)
{
float var3 = 0.9375F;
if (p_77041_1_.getGrowingAge() < 0)
{
var3 = (float)((double)var3 * 0.5D);
this.shadowSize = 0.25F;
}
else
{
this.shadowSize ... | void function(EntityVillager p_77041_1_, float p_77041_2_) { float var3 = 0.9375F; if (p_77041_1_.getGrowingAge() < 0) { var3 = (float)((double)var3 * 0.5D); this.shadowSize = 0.25F; } else { this.shadowSize = 0.5F; } GlStateManager.scale(var3, var3, var3); } | /**
* Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args:
* entityLiving, partialTickTime
*/ | Allows the render to do any OpenGL state modifications necessary before the model is rendered. Args: entityLiving, partialTickTime | preRenderCallback | {
"repo_name": "Hexeption/Youtube-Hacked-Client-1.8",
"path": "minecraft/net/minecraft/client/renderer/entity/RenderVillager.java",
"license": "mit",
"size": 3581
} | [
"net.minecraft.client.renderer.GlStateManager",
"net.minecraft.entity.passive.EntityVillager"
] | import net.minecraft.client.renderer.GlStateManager; import net.minecraft.entity.passive.EntityVillager; | import net.minecraft.client.renderer.*; import net.minecraft.entity.passive.*; | [
"net.minecraft.client",
"net.minecraft.entity"
] | net.minecraft.client; net.minecraft.entity; | 439,029 |
protected void executeSqoop(HadoopShim hadoopShim, SqoopShim shim, S config, Configuration hadoopConfig,
Result jobResult) {
// Make sure Sqoop throws exceptions instead of returning a status of 1
System.setProperty("sqoop.throwOnError", "true");
attachLoggingAppenders();
try {
configure(... | void function(HadoopShim hadoopShim, SqoopShim shim, S config, Configuration hadoopConfig, Result jobResult) { System.setProperty(STR, "true"); attachLoggingAppenders(); try { configure(hadoopShim, config, hadoopConfig); List<String> args = SqoopUtils.getCommandLineArgs(config, getVariables()); args.add(0, getToolName(... | /**
* Executes Sqoop using the provided configuration objects. The {@code jobResult} will accurately reflect the completed
* execution state when finished.
*
* @param hadoopShim Hadoop Shim to use
* @param sqoopShim Sqoop Shim to use
* @param config Sqoop configuration settings
* @param hadoo... | Executes Sqoop using the provided configuration objects. The jobResult will accurately reflect the completed execution state when finished | executeSqoop | {
"repo_name": "akhayrutdinov/big-data-plugin",
"path": "src/org/pentaho/di/job/entries/sqoop/AbstractSqoopJobEntry.java",
"license": "apache-2.0",
"size": 12792
} | [
"java.util.List",
"org.pentaho.di.core.Result",
"org.pentaho.di.i18n.BaseMessages",
"org.pentaho.hadoop.shim.api.Configuration",
"org.pentaho.hadoop.shim.spi.HadoopShim",
"org.pentaho.hadoop.shim.spi.SqoopShim"
] | import java.util.List; import org.pentaho.di.core.Result; import org.pentaho.di.i18n.BaseMessages; import org.pentaho.hadoop.shim.api.Configuration; import org.pentaho.hadoop.shim.spi.HadoopShim; import org.pentaho.hadoop.shim.spi.SqoopShim; | import java.util.*; import org.pentaho.di.core.*; import org.pentaho.di.i18n.*; import org.pentaho.hadoop.shim.api.*; import org.pentaho.hadoop.shim.spi.*; | [
"java.util",
"org.pentaho.di",
"org.pentaho.hadoop"
] | java.util; org.pentaho.di; org.pentaho.hadoop; | 1,621,367 |
public static void updateTableCountryName(Locale aLocale) throws SQLException {
Connection conn = null;
PreparedStatement pstmt = null;
try {
long timeStart = System.currentTimeMillis();
conn = getDBConnection();
conn.setAutoCommit(false);
pstm... | static void function(Locale aLocale) throws SQLException { Connection conn = null; PreparedStatement pstmt = null; try { long timeStart = System.currentTimeMillis(); conn = getDBConnection(); conn.setAutoCommit(false); pstmt = conn.prepareStatement(SQL_UPDATE_COUNTRY_NAME); Map<String, String> countries = CommonUtils.g... | /**
* Update the country names entries of the database using the specified {@link Locale}.
*
* @param aLocale The <code>Locale</code> to use.
* @throws SQLException
*
*/ | Update the country names entries of the database using the specified <code>Locale</code> | updateTableCountryName | {
"repo_name": "paissad/waqtsalat-eclipse-plugin",
"path": "plugins/net.paissad.waqtsalat.maxmindlocationsprovider/src/net/paissad/waqtsalat/maxmindlocationsprovider/internal/util/GeoIPUtil.java",
"license": "gpl-3.0",
"size": 18288
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.SQLException",
"java.util.Iterator",
"java.util.Locale",
"java.util.Map",
"org.h2.util.JdbcUtils"
] | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Iterator; import java.util.Locale; import java.util.Map; import org.h2.util.JdbcUtils; | import java.sql.*; import java.util.*; import org.h2.util.*; | [
"java.sql",
"java.util",
"org.h2.util"
] | java.sql; java.util; org.h2.util; | 2,640,596 |
protected static String convertStringPropertyValue(CmsObject cms, String propValue, String type, boolean toClient) {
if (propValue == null) {
return null;
}
if (toClient) {
return CmsXmlContentPropertyHelper.getPropValuePaths(cms, type, propValue);
} else {
... | static String function(CmsObject cms, String propValue, String type, boolean toClient) { if (propValue == null) { return null; } if (toClient) { return CmsXmlContentPropertyHelper.getPropValuePaths(cms, type, propValue); } else { return CmsXmlContentPropertyHelper.getPropValueIds(cms, type, propValue); } } | /**
* Converts a property value given as a string between server format and client format.<p>
*
* @param cms the current CMS context
* @param propValue the property value to convert
* @param type the type of the property
* @param toClient if true, convert to client format, else convert to ... | Converts a property value given as a string between server format and client format | convertStringPropertyValue | {
"repo_name": "ggiudetti/opencms-core",
"path": "src/org/opencms/xml/content/CmsXmlContentPropertyHelper.java",
"license": "lgpl-2.1",
"size": 37502
} | [
"org.opencms.file.CmsObject"
] | import org.opencms.file.CmsObject; | import org.opencms.file.*; | [
"org.opencms.file"
] | org.opencms.file; | 1,158,646 |
@Test
@Ignore
public void testPartialInJoin() throws Exception {
String processId = "test";
deploy(new ProcessDefinition(processId, Arrays.asList(
new StartEvent("start"),
new SequenceFlow("f1", "start", "gw1"),
new ExclusiveGateway("gw1"),
... | void function() throws Exception { String processId = "test"; deploy(new ProcessDefinition(processId, Arrays.asList( new StartEvent("start"), new SequenceFlow("f1", "start", "gw1"), new ExclusiveGateway("gw1"), new SequenceFlow("f2", "gw1", "gw2", "true"), new SequenceFlow("f3", "gw1", "gw2", "false"), new ParallelGate... | /**
* start --> gw1 --> gw2 --> end
* \ /
* --
*/ | start --> gw1 --> gw2 --> end \ -- | testPartialInJoin | {
"repo_name": "takari/bpm",
"path": "bpm-engine-impl/src/test/java/io/takari/bpm/ParallelGatewayTest.java",
"license": "apache-2.0",
"size": 3847
} | [
"io.takari.bpm.model.EndEvent",
"io.takari.bpm.model.ExclusiveGateway",
"io.takari.bpm.model.ParallelGateway",
"io.takari.bpm.model.ProcessDefinition",
"io.takari.bpm.model.SequenceFlow",
"io.takari.bpm.model.StartEvent",
"java.util.Arrays",
"java.util.UUID"
] | import io.takari.bpm.model.EndEvent; import io.takari.bpm.model.ExclusiveGateway; import io.takari.bpm.model.ParallelGateway; import io.takari.bpm.model.ProcessDefinition; import io.takari.bpm.model.SequenceFlow; import io.takari.bpm.model.StartEvent; import java.util.Arrays; import java.util.UUID; | import io.takari.bpm.model.*; import java.util.*; | [
"io.takari.bpm",
"java.util"
] | io.takari.bpm; java.util; | 854,849 |
void enterLoadStatement(@NotNull CQLParser.LoadStatementContext ctx);
void exitLoadStatement(@NotNull CQLParser.LoadStatementContext ctx); | void enterLoadStatement(@NotNull CQLParser.LoadStatementContext ctx); void exitLoadStatement(@NotNull CQLParser.LoadStatementContext ctx); | /**
* Exit a parse tree produced by {@link CQLParser#loadStatement}.
*/ | Exit a parse tree produced by <code>CQLParser#loadStatement</code> | exitLoadStatement | {
"repo_name": "HuaweiBigData/StreamCQL",
"path": "cql/src/main/java/com/huawei/streaming/cql/semanticanalyzer/parser/CQLParserListener.java",
"license": "apache-2.0",
"size": 58667
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 2,798,847 |
public Properties getDefaultProperties(); | Properties function(); | /**
* Get the default runtime properties for this runner. Return an empty
* property list if there are no default properties.
* @return the default properties for this runner.
*/ | Get the default runtime properties for this runner. Return an empty property list if there are no default properties | getDefaultProperties | {
"repo_name": "AsherBond/MondocosmOS",
"path": "wonderland/web/runner/src/java/org/jdesktop/wonderland/runner/Runner.java",
"license": "agpl-3.0",
"size": 5053
} | [
"java.util.Properties"
] | import java.util.Properties; | import java.util.*; | [
"java.util"
] | java.util; | 1,867,696 |
ProcessedRequestMessage requestMessage = new ProcessedRequestMessage();
requestMessage.setId(processedRequest.getId());
return requestMessage;
} | ProcessedRequestMessage requestMessage = new ProcessedRequestMessage(); requestMessage.setId(processedRequest.getId()); return requestMessage; } | /**
*
* Create a ProcessedRequestMessage JMS message to be sent
* @param processedRequest processed request
* @return ProcessedRequestMessage
*/ | Create a ProcessedRequestMessage JMS message to be sent | createRequestMessage | {
"repo_name": "dimipapadeas/openwis",
"path": "openwis-dataservice/openwis-dataservice-server/openwis-dataservice-server-ejb/src/main/java/org/openwis/datasource/server/utils/QueueUtils.java",
"license": "gpl-3.0",
"size": 3614
} | [
"org.openwis.datasource.server.jaxb.serializer.incomingds.ProcessedRequestMessage"
] | import org.openwis.datasource.server.jaxb.serializer.incomingds.ProcessedRequestMessage; | import org.openwis.datasource.server.jaxb.serializer.incomingds.*; | [
"org.openwis.datasource"
] | org.openwis.datasource; | 320,794 |
@Test
public void blockedStreamShouldSpreadDataToChildren() throws Http2Exception {
// Block the connection
controller.updateOutboundWindowSize(CONNECTION_STREAM_ID,
-DEFAULT_FLOW_CONTROL_WINDOW_SIZE);
// Block stream A
controller.updateOutboundWindowSize(STREAM_... | void function() throws Http2Exception { controller.updateOutboundWindowSize(CONNECTION_STREAM_ID, -DEFAULT_FLOW_CONTROL_WINDOW_SIZE); controller.updateOutboundWindowSize(STREAM_A, -DEFAULT_FLOW_CONTROL_WINDOW_SIZE); send(STREAM_A, dummyData(10)); send(STREAM_B, dummyData(10)); send(STREAM_C, dummyData(10)); send(STREAM... | /**
* In this test, we block A which allows bytes to be written by C and D. Here's a view of the
* tree (stream A is blocked).
*
* <pre>
* 0
* / \
* [A] B
* / \
* C D
* </pre>
*/ | In this test, we block A which allows bytes to be written by C and D. Here's a view of the tree (stream A is blocked). <code> 0 \ [A] B \ C D </code> | blockedStreamShouldSpreadDataToChildren | {
"repo_name": "daschl/netty",
"path": "codec-http2/src/test/java/io/netty/handler/codec/http2/DefaultHttp2OutboundFlowControllerTest.java",
"license": "apache-2.0",
"size": 20979
} | [
"io.netty.buffer.ByteBuf",
"org.junit.Assert",
"org.mockito.ArgumentCaptor"
] | import io.netty.buffer.ByteBuf; import org.junit.Assert; import org.mockito.ArgumentCaptor; | import io.netty.buffer.*; import org.junit.*; import org.mockito.*; | [
"io.netty.buffer",
"org.junit",
"org.mockito"
] | io.netty.buffer; org.junit; org.mockito; | 2,150,793 |
public static TransformerFactory getSecureTransformerFactory() {
TransformerFactory transformerFactory = TransformerFactory.newInstance();
try {
transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, "");
transformer... | static TransformerFactory function() { TransformerFactory transformerFactory = TransformerFactory.newInstance(); try { transformerFactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true); transformerFactory.setAttribute(XMLConstants.ACCESS_EXTERNAL_DTD, STR"); } catch (TransformerConfigurationException e) { thr... | /**
* This method returns a new instance of TransformerFactory with secured features enabled
*
* @return an instance of TransformerFactory with enabled secure features
*/ | This method returns a new instance of TransformerFactory with secured features enabled | getSecureTransformerFactory | {
"repo_name": "zsoltii/dss",
"path": "dss-spi/src/main/java/eu/europa/esig/dss/DomUtils.java",
"license": "lgpl-2.1",
"size": 17953
} | [
"javax.xml.XMLConstants",
"javax.xml.transform.TransformerConfigurationException",
"javax.xml.transform.TransformerFactory"
] | import javax.xml.XMLConstants; import javax.xml.transform.TransformerConfigurationException; import javax.xml.transform.TransformerFactory; | import javax.xml.*; import javax.xml.transform.*; | [
"javax.xml"
] | javax.xml; | 1,534,047 |
public void setInitialBilling(BigDecimal initialBilling) {
this.initialBilling = initialBilling;
} | void function(BigDecimal initialBilling) { this.initialBilling = initialBilling; } | /**
* Sets the initial billing amount of single billing item.
*
* @param initialBilling
* the initial billing amount of single billing item.
*/ | Sets the initial billing amount of single billing item | setInitialBilling | {
"repo_name": "NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application",
"path": "Code/FACES/src/java/core/gov/opm/scrd/entities/application/Billing.java",
"license": "apache-2.0",
"size": 6323
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 846,398 |
public static Screen createScreen(Config config)
{
return factoryGraphic.createScreen(config);
}
| static Screen function(Config config) { return factoryGraphic.createScreen(config); } | /**
* Create a screen.
*
* @param config The config reference (must not be <code>null</code>).
* @return The screen instance.
* @throws LionEngineException If invalid argument.
*/ | Create a screen | createScreen | {
"repo_name": "b3dgs/lionengine",
"path": "lionengine-core/src/main/java/com/b3dgs/lionengine/graphic/Graphics.java",
"license": "gpl-3.0",
"size": 12591
} | [
"com.b3dgs.lionengine.Config"
] | import com.b3dgs.lionengine.Config; | import com.b3dgs.lionengine.*; | [
"com.b3dgs.lionengine"
] | com.b3dgs.lionengine; | 1,922,103 |
private IntegerFormattedTextField makeCoordinateTextField(int value) {
IntegerFormattedTextField coordinate = new IntegerFormattedTextField(value, 3, onChange);
coordinate.setHorizontalAlignment(SwingConstants.CENTER);
return coordinate;
}
| IntegerFormattedTextField function(int value) { IntegerFormattedTextField coordinate = new IntegerFormattedTextField(value, 3, onChange); coordinate.setHorizontalAlignment(SwingConstants.CENTER); return coordinate; } | /**
* Makes a coordinate field to be assigned to both x and y, since they
* are basically the same
* @return JTextField with proper formatting
*/ | Makes a coordinate field to be assigned to both x and y, since they are basically the same | makeCoordinateTextField | {
"repo_name": "AvatarHurden/Tribal-Wars-Engine",
"path": "src/io/github/avatarhurden/tribalwarsengine/components/CoordenadaPanel.java",
"license": "mit",
"size": 4309
} | [
"javax.swing.SwingConstants"
] | import javax.swing.SwingConstants; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 247,634 |
public Date getDateValue() {
return dateValue;
}
| Date function() { return dateValue; } | /**
* Gets the date value.
* @return - date value.
*/ | Gets the date value | getDateValue | {
"repo_name": "NCIP/caintegrator",
"path": "caintegrator-war/src/gov/nih/nci/caintegrator/web/action/query/DisplayableResultValue.java",
"license": "bsd-3-clause",
"size": 3007
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,604,997 |
protected int drawUnselectedText(Graphics g, int x, int y, int p0, int p1)
throws BadLocationException
{
// Update font metrics.
updateMetrics();
// Get echo character.
char ch = getEchoChar();
// Set color for unselected text.
g.setColor(unselectedColor);
g.setColor(Color.BLACK);
... | int function(Graphics g, int x, int y, int p0, int p1) throws BadLocationException { updateMetrics(); char ch = getEchoChar(); g.setColor(unselectedColor); g.setColor(Color.BLACK); for (int index = p0; index < p1; ++index) x = drawEchoCharacter(g, x, y, ch); return x; } | /**
* Draws unselected text at a given position.
*
* @param g the <code>Graphics</code> object to draw to
* @param x the x-position of the start of the baseline
* @param y the y-position of the start of the baseline
* @param p0 the position of the first character to draw
* @param p1 the position of... | Draws unselected text at a given position | drawUnselectedText | {
"repo_name": "SanDisk-Open-Source/SSD_Dashboard",
"path": "uefi/gcc/gcc-4.6.3/libjava/classpath/javax/swing/text/PasswordView.java",
"license": "gpl-2.0",
"size": 7844
} | [
"java.awt.Color",
"java.awt.Graphics"
] | import java.awt.Color; import java.awt.Graphics; | import java.awt.*; | [
"java.awt"
] | java.awt; | 695,513 |
public Date getEndDate() {
return endDate;
} | Date function() { return endDate; } | /**
* Method declaration
* @return
* @see
*/ | Method declaration | getEndDate | {
"repo_name": "stephaneperry/Silverpeas-Core",
"path": "web-core/src/main/java/com/stratelia/webactiv/util/viewGenerator/html/monthCalendar/Week.java",
"license": "agpl-3.0",
"size": 8847
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,169,893 |
public void fillPolygon(int[] xPoints, int[] yPoints, int npoints)
{
ShapeCache sc = shapeCache;
if (sc.polygon == null)
sc.polygon = new Polygon();
sc.polygon.reset();
sc.polygon.xpoints = xPoints;
sc.polygon.ypoints = yPoints;
sc.polygon.npoints = npoints;
fill(sc.polygon);
} | void function(int[] xPoints, int[] yPoints, int npoints) { ShapeCache sc = shapeCache; if (sc.polygon == null) sc.polygon = new Polygon(); sc.polygon.reset(); sc.polygon.xpoints = xPoints; sc.polygon.ypoints = yPoints; sc.polygon.npoints = npoints; fill(sc.polygon); } | /**
* Fills the outline of a polygon.
*/ | Fills the outline of a polygon | fillPolygon | {
"repo_name": "SanDisk-Open-Source/SSD_Dashboard",
"path": "uefi/gcc/gcc-4.6.3/libjava/classpath/gnu/java/awt/java2d/AbstractGraphics2D.java",
"license": "gpl-2.0",
"size": 64351
} | [
"java.awt.Polygon"
] | import java.awt.Polygon; | import java.awt.*; | [
"java.awt"
] | java.awt; | 15,803 |
public boolean RotateRight(double speed) throws CANTimeoutException
{
front.RotateLeft(speed);
rear.RotateLeft(speed);
return true;
} | boolean function(double speed) throws CANTimeoutException { front.RotateLeft(speed); rear.RotateLeft(speed); return true; } | /**
* *
* RotateLeft()
*
* Turns the wheels 90 degrees and allows the whole robot to rotate about
* it's center axis at a speed specified by the parameter 'speed'.
*
* @param speed The speed to power the wheels while rotating in the range of
* -1.0 ... 0.0 ... 1.0
*
* @... | RotateLeft() Turns the wheels 90 degrees and allows the whole robot to rotate about it's center axis at a speed specified by the parameter 'speed' | RotateRight | {
"repo_name": "FIRST-FRC-Team-2028/2012",
"path": "src/com/phoebushighschool/phoebusrobotics/telepath/CrabDrive.java",
"license": "bsd-3-clause",
"size": 14707
} | [
"edu.wpi.first.wpilibj.can.CANTimeoutException"
] | import edu.wpi.first.wpilibj.can.CANTimeoutException; | import edu.wpi.first.wpilibj.can.*; | [
"edu.wpi.first"
] | edu.wpi.first; | 151,209 |
public void ensureIndexes(final String documentName, final List<View> views) {
this.designDocument = documentName;
this.views = views;
} | void function(final String documentName, final List<View> views) { this.designDocument = documentName; this.views = views; } | /**
* Register indexes to ensure in the bucket when the client is initialized.
*
* @param documentName name of the Couchbase design document.
* @param views the list of Couchbase views (i.e. indexes) to create in the document.
*/ | Register indexes to ensure in the bucket when the client is initialized | ensureIndexes | {
"repo_name": "creamer/cas",
"path": "support/cas-server-support-couchbase-core/src/main/java/org/apereo/cas/couchbase/core/CouchbaseClientFactory.java",
"license": "apache-2.0",
"size": 4740
} | [
"com.couchbase.client.java.view.View",
"java.util.List"
] | import com.couchbase.client.java.view.View; import java.util.List; | import com.couchbase.client.java.view.*; import java.util.*; | [
"com.couchbase.client",
"java.util"
] | com.couchbase.client; java.util; | 1,312,550 |
void removeKeysWithSession(List primaryKeys); | void removeKeysWithSession(List primaryKeys); | /**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table m_crm_campaigns_leads
*
* @mbggenerated Thu Jul 16 10:50:10 ICT 2015
*/ | This method was generated by MyBatis Generator. This method corresponds to the database table m_crm_campaigns_leads | removeKeysWithSession | {
"repo_name": "uniteddiversity/mycollab",
"path": "mycollab-services/src/main/java/com/esofthead/mycollab/module/crm/dao/CampaignLeadMapper.java",
"license": "agpl-3.0",
"size": 4881
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,684,029 |
void setState(EngineState newState)
throws IllegalArgumentException, IllegalStateException {
// Check preconditions
MandatoryArgumentChecker.check("newState", newState);
synchronized (_stateLock) {
// Remember the current state
EngineState oldState = _state;
// Det... | void setState(EngineState newState) throws IllegalArgumentException, IllegalStateException { MandatoryArgumentChecker.check(STR, newState); synchronized (_stateLock) { EngineState oldState = _state; String oldStateName = (oldState == null) ? null : oldState.getName(); String newStateName = newState.getName(); if (oldSt... | /**
* Changes the current state.
*
* <p>If the state change is considered invalid, then an
* {@link IllegalStateException} is thrown.
*
* @param newState
* the new state, cannot be <code>null</code>.
*
* @throws IllegalArgumentException
* if <code>newState == null</code>.
... | Changes the current state. If the state change is considered invalid, then an <code>IllegalStateException</code> is thrown | setState | {
"repo_name": "muloem/xins",
"path": "src/java-server-framework/org/xins/server/EngineStateMachine.java",
"license": "bsd-3-clause",
"size": 6187
} | [
"org.xins.common.MandatoryArgumentChecker"
] | import org.xins.common.MandatoryArgumentChecker; | import org.xins.common.*; | [
"org.xins.common"
] | org.xins.common; | 2,723,042 |
public final Map<String, Map<String, Object>> getAdditionalLinks() {
return additionalLinks;
} | final Map<String, Map<String, Object>> function() { return additionalLinks; } | /**
* Gets the additional links that should be in the payload.
* @return the additional links as Map where the navigation-property name is the key and
* a key predicate is the value -
* a key predicate is a Map from key-property names to their values
*/ | Gets the additional links that should be in the payload | getAdditionalLinks | {
"repo_name": "apache/olingo-odata2",
"path": "odata2-lib/odata-api/src/main/java/org/apache/olingo/odata2/api/ep/EntityProviderWriteProperties.java",
"license": "apache-2.0",
"size": 11819
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,698,007 |
private void startUp() throws Exception {
TcpDiscoveryIpFinder ipFinder = new TcpDiscoveryVmIpFinder(true);
Ignite node1 = G.start(dataNode(ipFinder, "node1"));
Ignite node2 = G.start(dataNode(ipFinder, "node2"));
Ignite node3 = G.start(dataNode(ipFinder, "node3"));
info("N... | void function() throws Exception { TcpDiscoveryIpFinder ipFinder = new TcpDiscoveryVmIpFinder(true); Ignite node1 = G.start(dataNode(ipFinder, "node1")); Ignite node2 = G.start(dataNode(ipFinder, "node2")); Ignite node3 = G.start(dataNode(ipFinder, "node3")); info(STR + node1.cluster().localNode().id()); info(STR + nod... | /**
* Startup routine.
*
* @throws Exception If failed.
*/ | Startup routine | startUp | {
"repo_name": "pperalta/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/distributed/near/GridCacheNearReaderPreloadSelfTest.java",
"license": "apache-2.0",
"size": 6883
} | [
"org.apache.ignite.Ignite",
"org.apache.ignite.internal.util.typedef.G",
"org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder",
"org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"
] | import org.apache.ignite.Ignite; import org.apache.ignite.internal.util.typedef.G; import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder; import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder; | import org.apache.ignite.*; import org.apache.ignite.internal.util.typedef.*; import org.apache.ignite.spi.discovery.tcp.ipfinder.*; import org.apache.ignite.spi.discovery.tcp.ipfinder.vm.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 2,440,639 |
public void fillToFile(
JasperReport jasperReport,
String destFileName,
Map<String,Object> parameters,
Connection connection
) throws JRException
{
JasperPrint jasperPrint = fill(jasperReport, parameters, connection);
JRSaver.saveObject(jasperPrint, destFileName);
}
| void function( JasperReport jasperReport, String destFileName, Map<String,Object> parameters, Connection connection ) throws JRException { JasperPrint jasperPrint = fill(jasperReport, parameters, connection); JRSaver.saveObject(jasperPrint, destFileName); } | /**
* Fills the compiled report design received as the first parameter
* and places the result in the file specified by the second parameter.
*
* @param jasperReport compiled report design object to use for filling
* @param destFileName file name to place the generated report into
* @param parameters rep... | Fills the compiled report design received as the first parameter and places the result in the file specified by the second parameter | fillToFile | {
"repo_name": "sikachu/jasperreports",
"path": "src/net/sf/jasperreports/engine/JasperFillManager.java",
"license": "lgpl-3.0",
"size": 30087
} | [
"java.sql.Connection",
"java.util.Map",
"net.sf.jasperreports.engine.util.JRSaver"
] | import java.sql.Connection; import java.util.Map; import net.sf.jasperreports.engine.util.JRSaver; | import java.sql.*; import java.util.*; import net.sf.jasperreports.engine.util.*; | [
"java.sql",
"java.util",
"net.sf.jasperreports"
] | java.sql; java.util; net.sf.jasperreports; | 92,633 |
public static <T> Entity<T> entity(final T entity, final String mediaType) {
return new Entity<T>(entity, MediaType.valueOf(mediaType));
} | static <T> Entity<T> function(final T entity, final String mediaType) { return new Entity<T>(entity, MediaType.valueOf(mediaType)); } | /**
* Create an entity using a supplied content media type.
*
* @param <T> entity Java type.
* @param entity entity data.
* @param mediaType entity content type.
* @return entity instance.
* @throws IllegalArgumentException if the supplied string cannot be parsed
* ... | Create an entity using a supplied content media type | entity | {
"repo_name": "raphaelning/resteasy-client-android",
"path": "jaxrs/jaxrs-api/src/main/java/javax/ws/rs/client/Entity.java",
"license": "apache-2.0",
"size": 9420
} | [
"javax.ws.rs.core.MediaType"
] | import javax.ws.rs.core.MediaType; | import javax.ws.rs.core.*; | [
"javax.ws"
] | javax.ws; | 2,334,855 |
@Override
public Drawable asImage() {
Drawable image = null;
try {
image = Drawable.createFromStream( openInputStream(), getName() );
}
catch(FileNotFoundException fnfe) {
Log.e(LogTag, String.format("Asset not found: %s", g... | Drawable function() { Drawable image = null; try { image = Drawable.createFromStream( openInputStream(), getName() ); } catch(FileNotFoundException fnfe) { Log.e(LogTag, String.format(STR, getName() )); } catch(IOException ioe) { Log.e(LogTag, String.format(STR, getName() ), ioe ); } return image; } } | /**
* Fetch this resource's image representation.
* Assumes that the resource's string representation is the name of an image to be found in the
* app's resource bundle.
*/ | Fetch this resource's image representation. Assumes that the resource's string representation is the name of an image to be found in the app's resource bundle | asImage | {
"repo_name": "innerfunction/semo-core-and",
"path": "src/com/innerfunction/uri/AnRResource.java",
"license": "apache-2.0",
"size": 4903
} | [
"android.graphics.drawable.Drawable",
"android.util.Log",
"java.io.FileNotFoundException",
"java.io.IOException"
] | import android.graphics.drawable.Drawable; import android.util.Log; import java.io.FileNotFoundException; import java.io.IOException; | import android.graphics.drawable.*; import android.util.*; import java.io.*; | [
"android.graphics",
"android.util",
"java.io"
] | android.graphics; android.util; java.io; | 898,273 |
public Fail<Decision<T>> createFail()
{
return new FailImpl<Decision<T>>(this, "fail", childNode);
} | Fail<Decision<T>> function() { return new FailImpl<Decision<T>>(this, "fail", childNode); } | /**
* Creates a new <code>fail</code> element
* @return the new created instance of <code>Fail<Decision<T>></code>
*/ | Creates a new <code>fail</code> element | createFail | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/jobXML10/DecisionImpl.java",
"license": "epl-1.0",
"size": 12564
} | [
"org.jboss.shrinkwrap.descriptor.api.jobXML10.Decision",
"org.jboss.shrinkwrap.descriptor.api.jobXML10.Fail"
] | import org.jboss.shrinkwrap.descriptor.api.jobXML10.Decision; import org.jboss.shrinkwrap.descriptor.api.jobXML10.Fail; | import org.jboss.shrinkwrap.descriptor.api.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 1,973,234 |
public void setPagingEnabled(boolean value)
{
if (value && !target.getGateA20State())
LOGGING.log(Level.WARNING, "Paging enabled with A20 masked");
pagingDisabled = !value;
tlb.flush();
} | void function(boolean value) { if (value && !target.getGateA20State()) LOGGING.log(Level.WARNING, STR); pagingDisabled = !value; tlb.flush(); } | /**
* Enables or disables paging.
* @param value <code>true</code> to enable paging.
*/ | Enables or disables paging | setPagingEnabled | {
"repo_name": "smeny/JPC",
"path": "src/main/java/com/github/smeny/jpc/emulator/memory/LinearAddressSpace.java",
"license": "gpl-2.0",
"size": 31299
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 1,141,138 |
// TODO: Remove the id's from all of the delete methods. The Revision now contains
// the component ID. We can't do this yet though because we have to wait for the
// Revisions to be properly formed on the client/UI side
ConnectionEntity deleteConnection(Revision revision, String connectionId); | ConnectionEntity deleteConnection(Revision revision, String connectionId); | /**
* Deletes the specified relationship target.
*
* @param revision Revision to compare with current base revision
* @param connectionId The ID of the connection
* @return snapshot
*/ | Deletes the specified relationship target | deleteConnection | {
"repo_name": "zhengsg/nifi",
"path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/NiFiServiceFacade.java",
"license": "apache-2.0",
"size": 73433
} | [
"org.apache.nifi.web.api.entity.ConnectionEntity"
] | import org.apache.nifi.web.api.entity.ConnectionEntity; | import org.apache.nifi.web.api.entity.*; | [
"org.apache.nifi"
] | org.apache.nifi; | 1,845,489 |
OutputStream create(String path) throws IOException; | OutputStream create(String path) throws IOException; | /**
* Creates a file in the under file system with the indicated name. Parents directories will be
* created recursively.
*
* @param path the file name
* @return A {@code OutputStream} object
*/ | Creates a file in the under file system with the indicated name. Parents directories will be created recursively | create | {
"repo_name": "apc999/alluxio",
"path": "core/common/src/main/java/alluxio/underfs/UnderFileSystem.java",
"license": "apache-2.0",
"size": 20838
} | [
"java.io.IOException",
"java.io.OutputStream"
] | import java.io.IOException; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,480,915 |
public boolean contains(float x, float y)
{
if (this.rotation == 0 && origin.x == 0.0f && origin.y == 0.0f)
{
return rect().contains(x, y);
} else
{
float localX = x - this.x;
float localY = y - this.y;
Vector2 rot = VectorMath.rot... | boolean function(float x, float y) { if (this.rotation == 0 && origin.x == 0.0f && origin.y == 0.0f) { return rect().contains(x, y); } else { float localX = x - this.x; float localY = y - this.y; Vector2 rot = VectorMath.rotatePointByDegreesAroundZero(localX, localY, -this.rotation); return rect().contains(rot.x + this... | /**
* Checks if a point (x, y) is contained in the rectangle
*
* @param x
* @param y
* @return
*/ | Checks if a point (x, y) is contained in the rectangle | contains | {
"repo_name": "bitDecayGames/LudumDare38",
"path": "src/main/java/com/bitdecay/game/util/RectangleExt.java",
"license": "mit",
"size": 12335
} | [
"com.badlogic.gdx.math.Vector2"
] | import com.badlogic.gdx.math.Vector2; | import com.badlogic.gdx.math.*; | [
"com.badlogic.gdx"
] | com.badlogic.gdx; | 677,543 |
public Timestamp getCreated();
public static final String COLUMNNAME_CreatedBy = "CreatedBy"; | Timestamp function(); public static final String COLUMNNAME_CreatedBy = STR; | /** Get Created.
* Date this record was created
*/ | Get Created. Date this record was created | getCreated | {
"repo_name": "geneos/adempiere",
"path": "base/src/org/compiere/model/I_R_RequestType.java",
"license": "gpl-2.0",
"size": 8996
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,553,315 |
public static String getLastColorAsHexa(Context context){
return Stools.loadLastColor(context);
} | static String function(Context context){ return Stools.loadLastColor(context); } | /**
* Gets the last picked color as a String in hexadecimal form (Eg: #ff000000)
*
* @param context Context
* @return Returns the last picked color as a hexadecimal String(Eg: #ff000000) or null if the last picked color doesn't exist
*/ | Gets the last picked color as a String in hexadecimal form (Eg: #ff000000) | getLastColorAsHexa | {
"repo_name": "AzeeSoft/AndroidPhotoshopColorPicker",
"path": "src/main/java/com/azeesoft/lib/colorpicker/ColorPickerDialog.java",
"license": "artistic-2.0",
"size": 25212
} | [
"android.content.Context"
] | import android.content.Context; | import android.content.*; | [
"android.content"
] | android.content; | 2,578,282 |
@Override
public Action getAction(Etat e)
{
List<Action> actions = getPolitique(e);
if(actions.isEmpty())
{
System.out.println("***********************************");
System.out.println("EMPTY");
System.out.prin... | Action function(Etat e) { List<Action> actions = getPolitique(e); if(actions.isEmpty()) { System.out.println(STR); System.out.println("EMPTY"); System.out.println(STR); return ActionGridworld.NONE; } else return actions.get(0); } | /**
* renvoi l'action donnee par la politique
*/ | renvoi l'action donnee par la politique | getAction | {
"repo_name": "Polytech-AdrienCastex/Planification-stochastique-et-MDP",
"path": "Planification stochastique et MDP/src/agent/planningagent/ValueIterationAgent.java",
"license": "gpl-2.0",
"size": 5189
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 729,168 |
private void packetCredentials(List packetHeaders)
{
if (packetHeaders.size() > 0)
{
for (Iterator iter = packetHeaders.iterator(); iter.hasNext();)
{
MessageHeader header = (MessageHeader)iter.next();
if (header.getName().equals(LEG... | void function(List packetHeaders) { if (packetHeaders.size() > 0) { for (Iterator iter = packetHeaders.iterator(); iter.hasNext();) { MessageHeader header = (MessageHeader)iter.next(); if (header.getName().equals(LEGACY_SECURITY_HEADER_NAME)) { Map loginInfo = (Map)header.getData(); String principal = loginInfo.get(LEG... | /**
* Process legacy AMF packet-level security.
*/ | Process legacy AMF packet-level security | packetCredentials | {
"repo_name": "SOASTA/BlazeDS",
"path": "modules/core/src/java/flex/messaging/endpoints/amf/SuspendableLegacyFilter.java",
"license": "lgpl-3.0",
"size": 14641
} | [
"java.util.Iterator",
"java.util.List",
"java.util.Map"
] | import java.util.Iterator; import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,010,204 |
@GET
@Produces("application/json")
@Consumes("application/json")
@Path("Recommendation/{UserID}")
public List<Recommendation> RetrieveRecommendationByUserID(@PathParam ("UserID") String UserID) {
Recommendation objOuterRecommendation = new Recommendation();
List<Recommendation> objLi... | @Produces(STR) @Consumes(STR) @Path(STR) List<Recommendation> function(@PathParam (STR) String UserID) { Recommendation objOuterRecommendation = new Recommendation(); List<Recommendation> objListRecommendation = new ArrayList<Recommendation>(); try { objOuterRecommendation.setUserID(Long.parseLong(UserID)); objOuterRec... | /**
* This function is using to Retrieves Recommendation by UserID
* @param UserID
* @return an instance of list of Recommendation
*/ | This function is using to Retrieves Recommendation by UserID | RetrieveRecommendationByUserID | {
"repo_name": "ubiquitous-computing-lab/Mining-Minds",
"path": "data-curation-layer/lifelog-mapping-and-representation/MMDataCurationRestfulService/src/main/java/org/uclab/mm/rs/servicecuration/ServiceCurationResource.java",
"license": "apache-2.0",
"size": 55302
} | [
"java.util.ArrayList",
"java.util.List",
"javax.ws.rs.Consumes",
"javax.ws.rs.Path",
"javax.ws.rs.PathParam",
"javax.ws.rs.Produces",
"org.uclab.mm.datamodel.AbstractDataBridge",
"org.uclab.mm.datamodel.DataAccessInterface",
"org.uclab.mm.datamodel.DatabaseStorage",
"org.uclab.mm.datamodel.sc.Reco... | import java.util.ArrayList; import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import org.uclab.mm.datamodel.AbstractDataBridge; import org.uclab.mm.datamodel.DataAccessInterface; import org.uclab.mm.datamodel.DatabaseStorage; import o... | import java.util.*; import javax.ws.rs.*; import org.uclab.mm.datamodel.*; import org.uclab.mm.datamodel.sc.*; import org.uclab.mm.datamodel.sc.dataadapter.*; | [
"java.util",
"javax.ws",
"org.uclab.mm"
] | java.util; javax.ws; org.uclab.mm; | 970,183 |
@Test
public void testGetNodesWithTokens() {
Set<String> nodeIds;
Map<String, Set<String>> tokenNodes;
// get nodes for tokens
tokenNodes = hierarchyService.getNodesWithTokens(TestDataPreload.HIERARCHYA,
new String[] {TestDataPreload.PERM_TOKEN_1, TestDat... | void function() { Set<String> nodeIds; Map<String, Set<String>> tokenNodes; tokenNodes = hierarchyService.getNodesWithTokens(TestDataPreload.HIERARCHYA, new String[] {TestDataPreload.PERM_TOKEN_1, TestDataPreload.PERM_TOKEN_2}); assertNotNull(tokenNodes); assertEquals(2, tokenNodes.size()); nodeIds = tokenNodes.get(Tes... | /**
* Test method for {@link org.sakaiproject.hierarchy.impl.HierarchyServiceImpl#getNodesWithTokens(java.lang.String[])}.
*/ | Test method for <code>org.sakaiproject.hierarchy.impl.HierarchyServiceImpl#getNodesWithTokens(java.lang.String[])</code> | testGetNodesWithTokens | {
"repo_name": "OpenCollabZA/sakai",
"path": "hierarchy/impl/src/test/org/sakaiproject/hierarchy/impl/test/HierarchyServiceImplTest.java",
"license": "apache-2.0",
"size": 69721
} | [
"java.util.Map",
"java.util.Set",
"org.junit.Assert",
"org.sakaiproject.hierarchy.impl.test.data.TestDataPreload"
] | import java.util.Map; import java.util.Set; import org.junit.Assert; import org.sakaiproject.hierarchy.impl.test.data.TestDataPreload; | import java.util.*; import org.junit.*; import org.sakaiproject.hierarchy.impl.test.data.*; | [
"java.util",
"org.junit",
"org.sakaiproject.hierarchy"
] | java.util; org.junit; org.sakaiproject.hierarchy; | 39,207 |
public FeedConnections createFeedConnections(
String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException {
try {
TypeReference<FeedConnections> typeRef = new TypeReference<FeedConnections>() {};
HttpResponse response =
createFeedConnectionsForHttpRespo... | FeedConnections function( String accessToken, String xeroTenantId, FeedConnections feedConnections) throws IOException { try { TypeReference<FeedConnections> typeRef = new TypeReference<FeedConnections>() {}; HttpResponse response = createFeedConnectionsForHttpResponse(accessToken, xeroTenantId, feedConnections); retur... | /**
* Create one or more new feed connection By passing in the FeedConnections array object in the
* body, you can create one or more new feed connections
*
* <p><b>202</b> - success new feed connection(s)response
*
* <p><b>400</b> - failed to create new feed connection(s)response
*
* @param xer... | Create one or more new feed connection By passing in the FeedConnections array object in the body, you can create one or more new feed connections 202 - success new feed connection(s)response 400 - failed to create new feed connection(s)response | createFeedConnections | {
"repo_name": "XeroAPI/Xero-Java",
"path": "src/main/java/com/xero/api/client/BankFeedsApi.java",
"license": "mit",
"size": 35862
} | [
"com.fasterxml.jackson.core.type.TypeReference",
"com.google.api.client.http.HttpResponse",
"com.google.api.client.http.HttpResponseException",
"com.xero.api.XeroApiExceptionHandler",
"com.xero.models.bankfeeds.FeedConnections",
"java.io.IOException"
] | import com.fasterxml.jackson.core.type.TypeReference; import com.google.api.client.http.HttpResponse; import com.google.api.client.http.HttpResponseException; import com.xero.api.XeroApiExceptionHandler; import com.xero.models.bankfeeds.FeedConnections; import java.io.IOException; | import com.fasterxml.jackson.core.type.*; import com.google.api.client.http.*; import com.xero.api.*; import com.xero.models.bankfeeds.*; import java.io.*; | [
"com.fasterxml.jackson",
"com.google.api",
"com.xero.api",
"com.xero.models",
"java.io"
] | com.fasterxml.jackson; com.google.api; com.xero.api; com.xero.models; java.io; | 1,159,558 |
public static void checkState(
boolean b, @NullableDecl String errorMessageTemplate, char p1, int p2) {
if (!b) {
throw new IllegalStateException(lenientFormat(errorMessageTemplate, p1, p2));
}
} | static void function( boolean b, @NullableDecl String errorMessageTemplate, char p1, int p2) { if (!b) { throw new IllegalStateException(lenientFormat(errorMessageTemplate, p1, p2)); } } | /**
* Ensures the truth of an expression involving the state of the calling instance, but not
* involving any parameters to the calling method.
*
* <p>See {@link #checkState(boolean, String, Object...)} for details.
*
* @since 20.0 (varargs overload since 2.0)
*/ | Ensures the truth of an expression involving the state of the calling instance, but not involving any parameters to the calling method. See <code>#checkState(boolean, String, Object...)</code> for details | checkState | {
"repo_name": "typetools/guava",
"path": "android/guava/src/com/google/common/base/Preconditions.java",
"license": "apache-2.0",
"size": 53950
} | [
"org.checkerframework.checker.nullness.compatqual.NullableDecl"
] | import org.checkerframework.checker.nullness.compatqual.NullableDecl; | import org.checkerframework.checker.nullness.compatqual.*; | [
"org.checkerframework.checker"
] | org.checkerframework.checker; | 1,562,468 |
public static BigInteger createBigInteger(String str) {
if (str == null) {
return null;
}
return new BigInteger(str);
} | static BigInteger function(String str) { if (str == null) { return null; } return new BigInteger(str); } | /**
* <p>Convert a <code>String</code> to a <code>BigInteger</code>.</p>
*
* <p>Returns <code>null</code> if the string is <code>null</code>.</p>
*
* @param str a <code>String</code> to convert, may be null
* @return converted <code>BigInteger</code>
* @throws NumberFormatException ... | Convert a <code>String</code> to a <code>BigInteger</code>. Returns <code>null</code> if the string is <code>null</code> | createBigInteger | {
"repo_name": "ervandew/formic",
"path": "src/java/org/apache/commons/lang/math/NumberUtils.java",
"license": "lgpl-2.1",
"size": 48768
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 1,622,202 |
public void fakeDragBy(float offset) {
if (!mFakeDragging) {
throw new IllegalStateException("No fake drag in progress. Call beginFakeDrag first.");
}
if (mOrientation == Orientation.VERTICAL) {
mLastMotionY += offset;
float oldScrollY = getScrollY();
... | void function(float offset) { if (!mFakeDragging) { throw new IllegalStateException(STR); } if (mOrientation == Orientation.VERTICAL) { mLastMotionY += offset; float oldScrollY = getScrollY(); float scrollY = oldScrollY - offset; final int height = getClientSize(); float topBound = height * mFirstOffset; float bottomBo... | /**
* Fake drag by an offset in pixels. You must have called {@link #beginFakeDrag()} first.
*
* @param offset Offset in pixels to drag by.
* @see #beginFakeDrag()
* @see #endFakeDrag()
*/ | Fake drag by an offset in pixels. You must have called <code>#beginFakeDrag()</code> first | fakeDragBy | {
"repo_name": "cemlyzone/FlippableStackView",
"path": "library/src/main/java/com/bartoszlipinski/flippablestackview/OrientedViewPager.java",
"license": "apache-2.0",
"size": 137993
} | [
"android.os.SystemClock",
"android.view.MotionEvent"
] | import android.os.SystemClock; import android.view.MotionEvent; | import android.os.*; import android.view.*; | [
"android.os",
"android.view"
] | android.os; android.view; | 1,399,377 |
private static void checkBoundaryEventCompensationHandler(Association association, Node source, Node target) {
// check that
// - event node is boundary event node
if( ! (source instanceof BoundaryEventNode) ) {
throw new IllegalArgumentException("(Compensation) activities may... | static void function(Association association, Node source, Node target) { if( ! (source instanceof BoundaryEventNode) ) { throw new IllegalArgumentException(STR + source.getClass().getSimpleName() + STR + ((String) source.getMetaData().get(STR)) + "]."); } BoundaryEventNode eventNode = (BoundaryEventNode) source; List<... | /**
* This logic belongs in {@link RuleFlowProcessValidator} -- except that {@link Association}s are a jbpm-bpmn2 class,
* and {@link RuleFlowProcessValidator} is a jbpm-flow class..
* </p>
* Maybe we should have a BPMNProcessValidator class?
*
* @param association The association to ch... | This logic belongs in <code>RuleFlowProcessValidator</code> -- except that <code>Association</code>s are a jbpm-bpmn2 class, and <code>RuleFlowProcessValidator</code> is a jbpm-flow class.. Maybe we should have a BPMNProcessValidator class | checkBoundaryEventCompensationHandler | {
"repo_name": "Multi-Support/jbpm",
"path": "jbpm-bpmn2/src/main/java/org/jbpm/bpmn2/xml/ProcessHandler.java",
"license": "apache-2.0",
"size": 50939
} | [
"java.util.List",
"java.util.Map",
"org.jbpm.bpmn2.core.Association",
"org.jbpm.process.core.event.EventFilter",
"org.jbpm.process.core.event.EventTypeFilter",
"org.jbpm.workflow.core.Connection",
"org.jbpm.workflow.core.impl.ConnectionImpl",
"org.jbpm.workflow.core.impl.NodeImpl",
"org.jbpm.workflo... | import java.util.List; import java.util.Map; import org.jbpm.bpmn2.core.Association; import org.jbpm.process.core.event.EventFilter; import org.jbpm.process.core.event.EventTypeFilter; import org.jbpm.workflow.core.Connection; import org.jbpm.workflow.core.impl.ConnectionImpl; import org.jbpm.workflow.core.impl.NodeImp... | import java.util.*; import org.jbpm.bpmn2.core.*; import org.jbpm.process.core.event.*; import org.jbpm.workflow.core.*; import org.jbpm.workflow.core.impl.*; import org.jbpm.workflow.core.node.*; import org.kie.api.definition.process.*; | [
"java.util",
"org.jbpm.bpmn2",
"org.jbpm.process",
"org.jbpm.workflow",
"org.kie.api"
] | java.util; org.jbpm.bpmn2; org.jbpm.process; org.jbpm.workflow; org.kie.api; | 550,583 |
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
String token = request.getParameter("token");
... | void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(STR); PrintWriter out = response.getWriter(); String token = request.getParameter("token"); String realToken = ConfigurationManagerHandler.getInstance().getToken(); try { if(token != nu... | /**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code>
* methods.
*
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
*/ | Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods | processRequest | {
"repo_name": "myunimol/webapp",
"path": "src/java/rocks/teammolise/myunimol/stubs/GetAddressBookStub.java",
"license": "gpl-2.0",
"size": 4112
} | [
"java.io.IOException",
"java.io.PrintWriter",
"javax.servlet.ServletException",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse",
"rocks.teammolise.myunimol.webapp.configuration.ConfigurationManagerHandler"
] | import java.io.IOException; import java.io.PrintWriter; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import rocks.teammolise.myunimol.webapp.configuration.ConfigurationManagerHandler; | import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import rocks.teammolise.myunimol.webapp.configuration.*; | [
"java.io",
"javax.servlet",
"rocks.teammolise.myunimol"
] | java.io; javax.servlet; rocks.teammolise.myunimol; | 1,844,249 |
private List<Action> filterOldActions(List<Action> actions,
List<Action> oldActions) {
if (oldActions == null) {
return actions;
}
for (Action action : actions) {
if (action == null) {
continue;
}
Iterator<Action> oldActionIter = oldActions.iterator();
while (oldActionIter.hasNe... | List<Action> function(List<Action> actions, List<Action> oldActions) { if (oldActions == null) { return actions; } for (Action action : actions) { if (action == null) { continue; } Iterator<Action> oldActionIter = oldActions.iterator(); while (oldActionIter.hasNext()) { Action oldAction = oldActionIter.next(); if (oldA... | /**
* Replace old Action from ViewFile with New Action.
*
* @param actions
* List of new Actions created
* @param oldActions
* List of old Actions extracted from file.
* @return List of updated list containing both old and new actions.
*/ | Replace old Action from ViewFile with New Action | filterOldActions | {
"repo_name": "jph-axelor/axelor-business-suite",
"path": "axelor-studio/src/main/java/com/axelor/studio/service/builder/ViewBuilderService.java",
"license": "agpl-3.0",
"size": 14401
} | [
"com.axelor.meta.schema.actions.Action",
"java.util.Iterator",
"java.util.List"
] | import com.axelor.meta.schema.actions.Action; import java.util.Iterator; import java.util.List; | import com.axelor.meta.schema.actions.*; import java.util.*; | [
"com.axelor.meta",
"java.util"
] | com.axelor.meta; java.util; | 1,764,676 |
private void checkForUnknownVariables(TokenList tokens) {
TokenList.Token t = tokens.getFirst();
while( t != null ) {
if( t.getType() == Type.WORD )
throw new RuntimeException("Unknown variable on right side. "+t.getWord());
t = t.next;
}
} | void function(TokenList tokens) { TokenList.Token t = tokens.getFirst(); while( t != null ) { if( t.getType() == Type.WORD ) throw new RuntimeException(STR+t.getWord()); t = t.next; } } | /**
* Examines the list of variables for any unknown variables and throws an exception if one is found
*/ | Examines the list of variables for any unknown variables and throws an exception if one is found | checkForUnknownVariables | {
"repo_name": "sizuest/EMod",
"path": "ch.ethz.inspire.emod/ejml-v0.26-src/main/equation/src/org/ejml/equation/Equation.java",
"license": "gpl-3.0",
"size": 46589
} | [
"org.ejml.equation.TokenList"
] | import org.ejml.equation.TokenList; | import org.ejml.equation.*; | [
"org.ejml.equation"
] | org.ejml.equation; | 2,256,670 |
default void setCenter(Point2D<?, ?> center) {
assert center != null : AssertMessages.notNullParameter();
setCenter(center.getX(), center.getY());
} | default void setCenter(Point2D<?, ?> center) { assert center != null : AssertMessages.notNullParameter(); setCenter(center.getX(), center.getY()); } | /** Set the center.
*
* @param center the center point.
*/ | Set the center | setCenter | {
"repo_name": "tpiotrow/afc",
"path": "core/math/src/main/java/org/arakhne/afc/math/geometry/d2/afp/Parallelogram2afp.java",
"license": "apache-2.0",
"size": 108116
} | [
"org.arakhne.afc.math.geometry.d2.Point2D",
"org.arakhne.afc.vmutil.asserts.AssertMessages"
] | import org.arakhne.afc.math.geometry.d2.Point2D; import org.arakhne.afc.vmutil.asserts.AssertMessages; | import org.arakhne.afc.math.geometry.d2.*; import org.arakhne.afc.vmutil.asserts.*; | [
"org.arakhne.afc"
] | org.arakhne.afc; | 2,841,484 |
public static LogWriterI18n getLogWriterI18n() {
if (dslogWriter != null) {
return dslogWriter;
} else if (purelogWriter != null) {
return purelogWriter;
} else {
purelogWriter = new PureLogWriter(InternalLogWriter.SEVERE_LEVEL);
return purelogWriter;
}
} | static LogWriterI18n function() { if (dslogWriter != null) { return dslogWriter; } else if (purelogWriter != null) { return purelogWriter; } else { purelogWriter = new PureLogWriter(InternalLogWriter.SEVERE_LEVEL); return purelogWriter; } } | /**
* Returns the logWriter associated with the existing DistributedSystem. If DS is null then the
* PureLogWriter is returned
*
* @return LogWriterI18n
*/ | Returns the logWriter associated with the existing DistributedSystem. If DS is null then the PureLogWriter is returned | getLogWriterI18n | {
"repo_name": "prasi-in/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/jta/TransactionUtils.java",
"license": "apache-2.0",
"size": 1919
} | [
"org.apache.geode.i18n.LogWriterI18n",
"org.apache.geode.internal.logging.InternalLogWriter",
"org.apache.geode.internal.logging.PureLogWriter"
] | import org.apache.geode.i18n.LogWriterI18n; import org.apache.geode.internal.logging.InternalLogWriter; import org.apache.geode.internal.logging.PureLogWriter; | import org.apache.geode.i18n.*; import org.apache.geode.internal.logging.*; | [
"org.apache.geode"
] | org.apache.geode; | 1,895,865 |
// ----------------------------------------------------------
public boolean addAll(int index, Collection<? extends E> collection)
{
return list.addAll(index, collection);
} | boolean function(int index, Collection<? extends E> collection) { return list.addAll(index, collection); } | /**
* Inserts the items in the specified collection into the text view at the
* specified index.
*
* @param index the index where the new items should be inserted
* @param collection the items to add to the text view
* @return true if the items could be added, or false if they could not
... | Inserts the items in the specified collection into the text view at the specified index | addAll | {
"repo_name": "web-cat/sofia-core",
"path": "src/sofia/widget/AutoCompleteTextView.java",
"license": "apache-2.0",
"size": 8646
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 2,417,330 |
@Override
public GenPolynomial<C> baseResultant(GenPolynomial<C> P, GenPolynomial<C> S) {
if (S == null || S.isZERO()) {
return S;
}
if (P == null || P.isZERO()) {
return P;
}
if (P.ring.nvar > 1) {
throw new IllegalArgumentException(th... | GenPolynomial<C> function(GenPolynomial<C> P, GenPolynomial<C> S) { if (S == null S.isZERO()) { return S; } if (P == null P.isZERO()) { return P; } if (P.ring.nvar > 1) { throw new IllegalArgumentException(this.getClass().getName() + STR); } long e = P.degree(0); long f = S.degree(0); GenPolynomial<C> q; GenPolynomial<... | /**
* Univariate GenPolynomial resultant. Uses pseudoRemainder for remainder.
* @param P univariate GenPolynomial.
* @param S univariate GenPolynomial.
* @return res(P,S).
*/ | Univariate GenPolynomial resultant. Uses pseudoRemainder for remainder | baseResultant | {
"repo_name": "breandan/java-algebra-system",
"path": "src/edu/jas/ufd/GreatestCommonDivisorSubres.java",
"license": "gpl-2.0",
"size": 13772
} | [
"edu.jas.poly.GenPolynomial",
"edu.jas.poly.PolyUtil",
"edu.jas.structure.RingFactory"
] | import edu.jas.poly.GenPolynomial; import edu.jas.poly.PolyUtil; import edu.jas.structure.RingFactory; | import edu.jas.poly.*; import edu.jas.structure.*; | [
"edu.jas.poly",
"edu.jas.structure"
] | edu.jas.poly; edu.jas.structure; | 783,949 |
private Module removeModuleWithNoDependencies(List<Module> candidates) {
for (Iterator<Module> i = candidates.iterator(); i.hasNext();) {
Module candidate = i.next();
boolean suitable = true;
for (Module other : candidates) {
if (candidate.getRequiredModules().contains(other.getPackageName())) {
... | Module function(List<Module> candidates) { for (Iterator<Module> i = candidates.iterator(); i.hasNext();) { Module candidate = i.next(); boolean suitable = true; for (Module other : candidates) { if (candidate.getRequiredModules().contains(other.getPackageName())) { suitable = false; break; } } if (suitable) { i.remove... | /**
* Looks for a module in the list that doesn't depend on any other modules in the list.
* If any is found, that module is removed from the list and returned.
*
* @param candidates
* @return
*/ | Looks for a module in the list that doesn't depend on any other modules in the list. If any is found, that module is removed from the list and returned | removeModuleWithNoDependencies | {
"repo_name": "Bhamni/openmrs-core",
"path": "web/src/main/java/org/openmrs/module/web/controller/ModuleListController.java",
"license": "mpl-2.0",
"size": 13431
} | [
"java.util.Iterator",
"java.util.List",
"org.openmrs.module.Module"
] | import java.util.Iterator; import java.util.List; import org.openmrs.module.Module; | import java.util.*; import org.openmrs.module.*; | [
"java.util",
"org.openmrs.module"
] | java.util; org.openmrs.module; | 2,550,425 |
public ServiceFuture<ExpressRouteCircuitInner> beginCreateOrUpdateAsync(String resourceGroupName, String circuitName, ExpressRouteCircuitInner parameters, final ServiceCallback<ExpressRouteCircuitInner> serviceCallback) {
return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resource... | ServiceFuture<ExpressRouteCircuitInner> function(String resourceGroupName, String circuitName, ExpressRouteCircuitInner parameters, final ServiceCallback<ExpressRouteCircuitInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, circuitName, parameters)... | /**
* Creates or updates an express route circuit.
*
* @param resourceGroupName The name of the resource group.
* @param circuitName The name of the circuit.
* @param parameters Parameters supplied to the create or update express route circuit operation.
* @param serviceCallback the async ... | Creates or updates an express route circuit | beginCreateOrUpdateAsync | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/ExpressRouteCircuitsInner.java",
"license": "mit",
"size": 125131
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 1,779,697 |
public static void put(Writer writer, byte value) throws IOException {
writer.write(String.valueOf(value));
} | static void function(Writer writer, byte value) throws IOException { writer.write(String.valueOf(value)); } | /**
* Writes the given value with the given writer.
* @param writer
* @param value
* @throws IOException
* @author vvakame
*/ | Writes the given value with the given writer | put | {
"repo_name": "vvakame/JsonPullParser",
"path": "jsonpullparser-core/src/main/java/net/vvakame/util/jsonpullparser/util/JsonUtil.java",
"license": "apache-2.0",
"size": 15827
} | [
"java.io.IOException",
"java.io.Writer"
] | import java.io.IOException; import java.io.Writer; | import java.io.*; | [
"java.io"
] | java.io; | 315,889 |
public void setDataSource(Expr dataSource)
{
_dataSource = dataSource;
} | void function(Expr dataSource) { _dataSource = dataSource; } | /**
* Sets the data source.
*/ | Sets the data source | setDataSource | {
"repo_name": "christianchristensen/resin",
"path": "modules/resin/src/com/caucho/jstl/el/SqlQueryTag.java",
"license": "gpl-2.0",
"size": 5920
} | [
"com.caucho.el.Expr"
] | import com.caucho.el.Expr; | import com.caucho.el.*; | [
"com.caucho.el"
] | com.caucho.el; | 2,840,512 |
public void readProjectNatureImages(IExtensionRegistry in,
ProjectImageRegistry out) {
registry = out;
readRegistry(in, IDEWorkbenchPlugin.IDE_WORKBENCH,
IDEWorkbenchPlugin.PL_PROJECT_NATURE_IMAGES);
} | void function(IExtensionRegistry in, ProjectImageRegistry out) { registry = out; readRegistry(in, IDEWorkbenchPlugin.IDE_WORKBENCH, IDEWorkbenchPlugin.PL_PROJECT_NATURE_IMAGES); } | /**
* Read the project nature images within a registry.
*/ | Read the project nature images within a registry | readProjectNatureImages | {
"repo_name": "elucash/eclipse-oxygen",
"path": "org.eclipse.ui.ide/src/org/eclipse/ui/internal/ide/registry/ProjectImageRegistryReader.java",
"license": "epl-1.0",
"size": 2628
} | [
"org.eclipse.core.runtime.IExtensionRegistry",
"org.eclipse.ui.internal.ide.IDEWorkbenchPlugin"
] | import org.eclipse.core.runtime.IExtensionRegistry; import org.eclipse.ui.internal.ide.IDEWorkbenchPlugin; | import org.eclipse.core.runtime.*; import org.eclipse.ui.internal.ide.*; | [
"org.eclipse.core",
"org.eclipse.ui"
] | org.eclipse.core; org.eclipse.ui; | 1,195,510 |
public void startLogSegment(RequestInfo reqInfo,
long txid, int layoutVersion) throws IOException; | void function(RequestInfo reqInfo, long txid, int layoutVersion) throws IOException; | /**
* Start writing to a new log segment on the JournalNode.
* Before calling this, one should finalize the previous segment
* using {@link #finalizeLogSegment(RequestInfo, long, long)}.
*
* @param txid the first txid in the new log
* @param layoutVersion the LayoutVersion of the new log
*/ | Start writing to a new log segment on the JournalNode. Before calling this, one should finalize the previous segment using <code>#finalizeLogSegment(RequestInfo, long, long)</code> | startLogSegment | {
"repo_name": "dennishuo/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/qjournal/protocol/QJournalProtocol.java",
"license": "apache-2.0",
"size": 7089
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 296,657 |
private void writeAttribute(java.lang.String namespace,java.lang.String attName,
java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{
if (namespace.equals(""))
{
x... | void function(java.lang.String namespace,java.lang.String attName, java.lang.String attValue,javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException{ if (namespace.equals("")) { xmlWriter.writeAttribute(attName,attValue); } else { registerPrefix(xmlWriter, namespace); xmlWriter.writeAttri... | /**
* Util method to write an attribute without the ns prefix
*/ | Util method to write an attribute without the ns prefix | writeAttribute | {
"repo_name": "arunasujith/wso2-axis2",
"path": "modules/adb/src/org/apache/axis2/databinding/types/soapencoding/UnsignedLong.java",
"license": "apache-2.0",
"size": 21292
} | [
"javax.xml.stream.XMLStreamWriter"
] | import javax.xml.stream.XMLStreamWriter; | import javax.xml.stream.*; | [
"javax.xml"
] | javax.xml; | 497,767 |
public void testRebuildValidatorExtensionIsApplicableTrueFalse()
throws IOException, InterruptedException, ExecutionException {
hudson.getExtensionList(RebuildValidator.class).add(0,
new ValidatorAlwaysApplicable());
hudson.getExtensionList(RebuildValidator.class).add(0,
new ValidatorNeverApplicable()... | void function() throws IOException, InterruptedException, ExecutionException { hudson.getExtensionList(RebuildValidator.class).add(0, new ValidatorAlwaysApplicable()); hudson.getExtensionList(RebuildValidator.class).add(0, new ValidatorNeverApplicable()); Project projectA = createFreeStyleProject(STR); Build buildA = (... | /**
* Tests with two extensions returning isApplicable true AND false.
*
* @throws IOException
* IOException
* @throws InterruptedException
* InterruptedException
* @throws ExecutionException
* ExecutionException
*/ | Tests with two extensions returning isApplicable true AND false | testRebuildValidatorExtensionIsApplicableTrueFalse | {
"repo_name": "rashmikanta-1984/rebuild-plugin",
"path": "src/test/java/com/sonyericsson/rebuild/RebuildValidatorTest.java",
"license": "mit",
"size": 16345
} | [
"hudson.model.Build",
"hudson.model.Cause",
"hudson.model.ParametersAction",
"hudson.model.Project",
"hudson.model.StringParameterValue",
"java.io.IOException",
"java.util.concurrent.ExecutionException"
] | import hudson.model.Build; import hudson.model.Cause; import hudson.model.ParametersAction; import hudson.model.Project; import hudson.model.StringParameterValue; import java.io.IOException; import java.util.concurrent.ExecutionException; | import hudson.model.*; import java.io.*; import java.util.concurrent.*; | [
"hudson.model",
"java.io",
"java.util"
] | hudson.model; java.io; java.util; | 219,222 |
public final Object get_ValueDifference (int index)
{
if (index < 0 || index >= get_ColumnCount())
{
log.log(Level.WARNING, "Index invalid - " + index);
return null;
}
Object nValue = m_newValues[index];
// No new Value or NULL
if (nValue == null || nValue == Null.NULL)
return null;
//
Obje... | final Object function (int index) { if (index < 0 index >= get_ColumnCount()) { log.log(Level.WARNING, STR + index); return null; } Object nValue = m_newValues[index]; if (nValue == null nValue == Null.NULL) return null; if (oValue == null oValue == Null.NULL) return nValue; if (nValue instanceof BigDecimal) { BigDecim... | /**
* Return new - old.
* - New Value if Old Value is null
* - New Value - Old Value if Number
* - otherwise null
* @param index index
* @return new - old or null if not appropriate or not changed
*/ | Return new - old. - New Value if Old Value is null - New Value - Old Value if Number - otherwise null | get_ValueDifference | {
"repo_name": "erpcya/adempierePOS",
"path": "base/src/org/compiere/model/PO.java",
"license": "gpl-2.0",
"size": 109913
} | [
"java.math.BigDecimal",
"java.util.logging.Level"
] | import java.math.BigDecimal; import java.util.logging.Level; | import java.math.*; import java.util.logging.*; | [
"java.math",
"java.util"
] | java.math; java.util; | 1,298,706 |
return creationTime;
}
/**
* Sets the value of the creationTime property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar } | return creationTime; } /** * Sets the value of the creationTime property. * * @param value * allowed object is * {@link XMLGregorianCalendar } | /**
* Gets the value of the creationTime property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/ | Gets the value of the creationTime property | getCreationTime | {
"repo_name": "aborg0/RapidMiner-Unuk",
"path": "src_generated/com/rapidminer/deployment/client/wsimport/PackageDescriptor.java",
"license": "agpl-3.0",
"size": 9344
} | [
"javax.xml.datatype.XMLGregorianCalendar"
] | import javax.xml.datatype.XMLGregorianCalendar; | import javax.xml.datatype.*; | [
"javax.xml"
] | javax.xml; | 2,556,548 |
public void testGetWriteMethodUnknown() {
final BeanIntrospectionData data = setUpData();
final PropertyDescriptor pd = data.getDescriptor("class");
assertNull("Got a write method", data.getWriteMethod(BEAN_CLASS, pd));
} | void function() { final BeanIntrospectionData data = setUpData(); final PropertyDescriptor pd = data.getDescriptor("class"); assertNull(STR, data.getWriteMethod(BEAN_CLASS, pd)); } | /**
* Tests getWriteMethod() for a property for which no write method is known.
*/ | Tests getWriteMethod() for a property for which no write method is known | testGetWriteMethodUnknown | {
"repo_name": "mohanaraosv/commons-beanutils",
"path": "src/test/java/org/apache/commons/beanutils/BeanIntrospectionDataTestCase.java",
"license": "apache-2.0",
"size": 4601
} | [
"java.beans.PropertyDescriptor"
] | import java.beans.PropertyDescriptor; | import java.beans.*; | [
"java.beans"
] | java.beans; | 1,561,966 |
public Intent getInstantAppIntentForUrl(String url) {
return null;
} | Intent function(String url) { return null; } | /**
* Gets the instant app intent for the given URL if one exists.
*/ | Gets the instant app intent for the given URL if one exists | getInstantAppIntentForUrl | {
"repo_name": "chromium/chromium",
"path": "components/page_info/android/java/src/org/chromium/components/page_info/PageInfoControllerDelegate.java",
"license": "bsd-3-clause",
"size": 7125
} | [
"android.content.Intent"
] | import android.content.Intent; | import android.content.*; | [
"android.content"
] | android.content; | 2,522,741 |
public static void writeProbesToFile(List<Probe> probes, File outputProbeInfoFile, int extensionUidLenght, int ligationUidLength, FileOsFlavor fileOsFlavor) throws IOException {
String newLine = null;
if (fileOsFlavor == FileOsFlavor.CURRENT_SYSTEM) {
newLine = StringUtil.NEWLINE;
} else if (fileOsFla... | static void function(List<Probe> probes, File outputProbeInfoFile, int extensionUidLenght, int ligationUidLength, FileOsFlavor fileOsFlavor) throws IOException { String newLine = null; if (fileOsFlavor == FileOsFlavor.CURRENT_SYSTEM) { newLine = StringUtil.NEWLINE; } else if (fileOsFlavor == FileOsFlavor.LINUX) { newLi... | /**
* write all the provided probes to the provided outputProbeInfoFile
*
* @param probes
* @param outputProbeInfoFile
* @param fileOsFlavor
* @throws IOException
*/ | write all the provided probes to the provided outputProbeInfoFile | writeProbesToFile | {
"repo_name": "NimbleGen/bioinformatics",
"path": "bioinformatics_common/src/main/java/com/roche/sequencing/bioinformatics/common/utils/probeinfo/ProbeFileUtil.java",
"license": "apache-2.0",
"size": 18115
} | [
"com.roche.sequencing.bioinformatics.common.utils.StringUtil",
"java.io.BufferedWriter",
"java.io.File",
"java.io.FileWriter",
"java.io.IOException",
"java.util.List"
] | import com.roche.sequencing.bioinformatics.common.utils.StringUtil; import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.util.List; | import com.roche.sequencing.bioinformatics.common.utils.*; import java.io.*; import java.util.*; | [
"com.roche.sequencing",
"java.io",
"java.util"
] | com.roche.sequencing; java.io; java.util; | 606,367 |
public static Test suite() {
return new TestSuite(DownSampleTest.class);
} | static Test function() { return new TestSuite(DownSampleTest.class); } | /**
* Returns the test suite.
*
* @return the suite
*/ | Returns the test suite | suite | {
"repo_name": "waikato-datamining/adams-base",
"path": "adams-spreadsheet/src/test/java/adams/data/spreadsheet/rowfinder/DownSampleTest.java",
"license": "gpl-3.0",
"size": 2331
} | [
"junit.framework.Test",
"junit.framework.TestSuite"
] | import junit.framework.Test; import junit.framework.TestSuite; | import junit.framework.*; | [
"junit.framework"
] | junit.framework; | 1,822,513 |
public final Date getDate0() {
return date0;
} | final Date function() { return date0; } | /**
* Getter method for date0.
*
* @return the date0
*/ | Getter method for date0 | getDate0 | {
"repo_name": "Letractively/open-tides",
"path": "src/org/opentides/bean/UserDefinedRecord.java",
"license": "apache-2.0",
"size": 38150
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 570,208 |
protected K standardLowerKey(K key) {
return keyOrNull(lowerEntry(key));
} | K function(K key) { return keyOrNull(lowerEntry(key)); } | /**
* A sensible definition of {@link #lowerKey} in terms of {@code lowerEntry}. If you override
* {@link #lowerEntry}, you may wish to override {@code lowerKey} to forward to this
* implementation.
*/ | A sensible definition of <code>#lowerKey</code> in terms of lowerEntry. If you override <code>#lowerEntry</code>, you may wish to override lowerKey to forward to this implementation | standardLowerKey | {
"repo_name": "wspeirs/sop4j-base",
"path": "src/main/java/com/sop4j/base/google/common/collect/ForwardingNavigableMap.java",
"license": "apache-2.0",
"size": 13250
} | [
"com.sop4j.base.google.common.collect.Maps"
] | import com.sop4j.base.google.common.collect.Maps; | import com.sop4j.base.google.common.collect.*; | [
"com.sop4j.base"
] | com.sop4j.base; | 764,290 |
protected void log(String message, Throwable throwable) {
Logger logger = container.getLogger();
if (logger != null)
logger.log(this.toString() + ": " + message, throwable);
else {
System.out.println(this.toString() + ": " + message);
throwable.printStack... | void function(String message, Throwable throwable) { Logger logger = container.getLogger(); if (logger != null) logger.log(this.toString() + STR + message, throwable); else { System.out.println(this.toString() + STR + message); throwable.printStackTrace(System.out); } } | /**
* Log a message on the Logger associated with our Container (if any).
*
* @param message Message to be logged
* @param throwable Associated exception
*/ | Log a message on the Logger associated with our Container (if any) | log | {
"repo_name": "devjin24/howtomcatworks",
"path": "bookrefer/jakarta-tomcat-5.0.18-src/jakarta-tomcat-catalina/catalina/src/share/org/apache/catalina/valves/ErrorReportValve.java",
"license": "apache-2.0",
"size": 13724
} | [
"org.apache.catalina.Logger"
] | import org.apache.catalina.Logger; | import org.apache.catalina.*; | [
"org.apache.catalina"
] | org.apache.catalina; | 1,099,595 |
@Nonnull
public ManagedAndroidStoreAppRequest buildRequest(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) {
return new com.microsoft.graph.requests.ManagedAndroidStoreAppRequest(getRequestUrl(), getClient(), requestOptions);
} | ManagedAndroidStoreAppRequest function(@Nonnull final java.util.List<? extends com.microsoft.graph.options.Option> requestOptions) { return new com.microsoft.graph.requests.ManagedAndroidStoreAppRequest(getRequestUrl(), getClient(), requestOptions); } | /**
* Creates the request with specific requestOptions instead of the existing requestOptions
*
* @param requestOptions the options for this request
* @return the ManagedAndroidStoreAppRequest instance
*/ | Creates the request with specific requestOptions instead of the existing requestOptions | buildRequest | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/ManagedAndroidStoreAppRequestBuilder.java",
"license": "mit",
"size": 4550
} | [
"javax.annotation.Nonnull"
] | import javax.annotation.Nonnull; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 1,780,457 |
public static void e(String tag, String msg) {
if (sIsLogEnabled) {
Log.e(tag, getContent(getCurrentStackTraceElement()) + ">" + msg);
}
} | static void function(String tag, String msg) { if (sIsLogEnabled) { Log.e(tag, getContent(getCurrentStackTraceElement()) + ">" + msg); } } | /**
* Send an ERROR log message.
*
* @param tag
* @param msg
*/ | Send an ERROR log message | e | {
"repo_name": "shuhonglin/LostAndFound",
"path": "ultimaterecyclerview/src/main/java/com/marshalchen/ultimaterecyclerview/URLogs.java",
"license": "apache-2.0",
"size": 7011
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 1,891,653 |
ApplicationConfig applicationConfig = new ApplicationConfig();
applicationConfig.setName("dubbo-demo-application");
return applicationConfig;
} | ApplicationConfig applicationConfig = new ApplicationConfig(); applicationConfig.setName(STR); return applicationConfig; } | /**
* Current application configuration, to replace XML config:
* <prev>
* <dubbo:application name="dubbo-demo-application"/>
* </prev>
*
* @return {@link ApplicationConfig} Bean
*/ | Current application configuration, to replace XML config: <dubbo:application name="dubbo-demo-application"/> | applicationConfig | {
"repo_name": "yuyijq/dubbo",
"path": "dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/context/annotation/consumer/ConsumerConfiguration.java",
"license": "apache-2.0",
"size": 4424
} | [
"org.apache.dubbo.config.ApplicationConfig"
] | import org.apache.dubbo.config.ApplicationConfig; | import org.apache.dubbo.config.*; | [
"org.apache.dubbo"
] | org.apache.dubbo; | 318,703 |
private Locale getLocale( String locale )
{
int index = locale.indexOf( '_' );
if ( index != -1 )
{
// e.g, zh_CN (language_country)
String language = locale.substring( 0, index );
String country = locale.substring( index + 1 );
return new Locale( language, country );
}
// e.g, en (language)
... | Locale function( String locale ) { int index = locale.indexOf( '_' ); if ( index != -1 ) { String language = locale.substring( 0, index ); String country = locale.substring( index + 1 ); return new Locale( language, country ); } return new Locale( locale ); } CommandLine results; | /**
* Private function to convert a locale name string to a locale object
*
* @param locale -
* locale name string
* @return A locale object
*/ | Private function to convert a locale name string to a locale object | getLocale | {
"repo_name": "sguan-actuate/birt",
"path": "engine/org.eclipse.birt.report.engine/src/org/eclipse/birt/report/engine/api/ReportRunner.java",
"license": "epl-1.0",
"size": 33195
} | [
"java.util.Locale",
"org.apache.commons.cli.CommandLine"
] | import java.util.Locale; import org.apache.commons.cli.CommandLine; | import java.util.*; import org.apache.commons.cli.*; | [
"java.util",
"org.apache.commons"
] | java.util; org.apache.commons; | 2,114,017 |
protected void init() throws Exception
{
log.info("init()");
try {
// register functions
if(functionManager.getRegisteredFunctions(ChatFunctions.CHAT_FUNCTION_PREFIX).size() == 0) {
functionManager.registerFunction(ChatFunctions.CHAT_FUNCTION_READ);
... | void function() throws Exception { log.info(STR); try { if(functionManager.getRegisteredFunctions(ChatFunctions.CHAT_FUNCTION_PREFIX).size() == 0) { functionManager.registerFunction(ChatFunctions.CHAT_FUNCTION_READ); functionManager.registerFunction(ChatFunctions.CHAT_FUNCTION_NEW); functionManager.registerFunction(Cha... | /**
* Called on after the startup of the singleton. This sets the global
* list of functions which will have permission managed by sakai
* @throws Exception
*/ | Called on after the startup of the singleton. This sets the global list of functions which will have permission managed by sakai | init | {
"repo_name": "OpenCollabZA/sakai",
"path": "chat/chat-impl/impl/src/java/org/sakaiproject/chat2/model/impl/ChatManagerImpl.java",
"license": "apache-2.0",
"size": 52696
} | [
"com.google.common.cache.CacheBuilder",
"java.util.concurrent.TimeUnit",
"org.sakaiproject.chat2.model.ChatFunctions",
"org.sakaiproject.chat2.model.ChatManager"
] | import com.google.common.cache.CacheBuilder; import java.util.concurrent.TimeUnit; import org.sakaiproject.chat2.model.ChatFunctions; import org.sakaiproject.chat2.model.ChatManager; | import com.google.common.cache.*; import java.util.concurrent.*; import org.sakaiproject.chat2.model.*; | [
"com.google.common",
"java.util",
"org.sakaiproject.chat2"
] | com.google.common; java.util; org.sakaiproject.chat2; | 2,510,194 |
private static Set<String> getFlatSipConnectorReferenceProperties(Dictionary<String, Object> rtcommConnectorProperties){
Set<String> allowFromProperties = new HashSet<String>();
Enumeration<String> iter = rtcommConnectorProperties.keys();
while(iter.hasMoreElements()){
String property = iter.nextElement(... | static Set<String> function(Dictionary<String, Object> rtcommConnectorProperties){ Set<String> allowFromProperties = new HashSet<String>(); Enumeration<String> iter = rtcommConnectorProperties.keys(); while(iter.hasMoreElements()){ String property = iter.nextElement(); if(property.startsWith(SIP_CONNECTOR_PREFIX) && pr... | /**
* Gets flat sipConnector reference properties.
* @param rtcommConnectorProperties rtcommConnector flat configuration properties
* @return flat sipConnector reference properties.
*/ | Gets flat sipConnector reference properties | getFlatSipConnectorReferenceProperties | {
"repo_name": "kgibm/open-liberty",
"path": "dev/com.ibm.ws.sipcontainer/src/com/ibm/ws/sip/stack/transport/virtualhost/SipVirtualHostAdapter.java",
"license": "epl-1.0",
"size": 31382
} | [
"java.util.Dictionary",
"java.util.Enumeration",
"java.util.HashSet",
"java.util.Set"
] | import java.util.Dictionary; import java.util.Enumeration; import java.util.HashSet; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 1,625,799 |
private Result pOctalNumeral(final int yyStart) throws IOException {
int yyC;
int yyIndex;
Result yyResult;
Void yyValue;
ParseError yyError = ParseError.DUMMY;
// Alternative 1.
yyC = character(yyStart);
if ('0' == yyC) {
yyIndex = yyStart + 1;
y... | Result function(final int yyStart) throws IOException { int yyC; int yyIndex; Result yyResult; Void yyValue; ParseError yyError = ParseError.DUMMY; yyC = character(yyStart); if ('0' == yyC) { yyIndex = yyStart + 1; yyResult = pOctalDigits(yyIndex); yyError = yyResult.select(yyError); if (yyResult.hasValue()) { yyValue ... | /**
* Parse nonterminal xtc.lang.JavaConstant.OctalNumeral.
*
* @param yyStart The index.
* @return The result.
* @throws IOException Signals an I/O error.
*/ | Parse nonterminal xtc.lang.JavaConstant.OctalNumeral | pOctalNumeral | {
"repo_name": "wandoulabs/xtc-rats",
"path": "xtc-core/src/main/java/xtc/lang/JavaFiveParser.java",
"license": "lgpl-2.1",
"size": 313913
} | [
"java.io.IOException",
"xtc.parser.ParseError",
"xtc.parser.Result"
] | import java.io.IOException; import xtc.parser.ParseError; import xtc.parser.Result; | import java.io.*; import xtc.parser.*; | [
"java.io",
"xtc.parser"
] | java.io; xtc.parser; | 2,746,335 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.