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 visit(String arg0, Object arg1) {
if (arg0.equals("name")) {
m_elem.addAttribute(new Attribute("name", arg1.toString()));
return;
}
if (arg0.equals("namespace")) {
m_elem.addAttribute(new Attribute("namespace", arg1.... | void function(String arg0, Object arg1) { if (arg0.equals("name")) { m_elem.addAttribute(new Attribute("name", arg1.toString())); return; } if (arg0.equals(STR)) { m_elem.addAttribute(new Attribute(STR, arg1.toString())); return; } if (arg0.equals("level")) { m_elem.addAttribute(new Attribute("level", arg1.toString()))... | /**
* Visit @handler annotation attributes.
* @param arg0 : annotation attribute name
* @param arg1 : annotation attribute value
* @see org.objectweb.asm.commons.EmptyVisitor#visit(java.lang.String, java.lang.Object)
*/ | Visit @handler annotation attributes | visit | {
"repo_name": "boneman1231/org.apache.felix",
"path": "trunk/ipojo/manipulator/manipulator/src/main/java/org/apache/felix/ipojo/manipulation/annotations/MetadataCollector.java",
"license": "apache-2.0",
"size": 22887
} | [
"org.apache.felix.ipojo.metadata.Attribute",
"org.objectweb.asm.AnnotationVisitor",
"org.objectweb.asm.commons.EmptyVisitor"
] | import org.apache.felix.ipojo.metadata.Attribute; import org.objectweb.asm.AnnotationVisitor; import org.objectweb.asm.commons.EmptyVisitor; | import org.apache.felix.ipojo.metadata.*; import org.objectweb.asm.*; import org.objectweb.asm.commons.*; | [
"org.apache.felix",
"org.objectweb.asm"
] | org.apache.felix; org.objectweb.asm; | 1,727,200 |
private static JSDocInfo.Marker assertAnnotationMarker(
JSDocInfo jsdoc, String annotationName, int startLineno, int startCharno, int index) {
Collection<JSDocInfo.Marker> markers = jsdoc.getMarkers();
assertThat(markers).isNotEmpty();
int counter = 0;
for (JSDocInfo.Marker marker : markers)... | static JSDocInfo.Marker function( JSDocInfo jsdoc, String annotationName, int startLineno, int startCharno, int index) { Collection<JSDocInfo.Marker> markers = jsdoc.getMarkers(); assertThat(markers).isNotEmpty(); int counter = 0; for (JSDocInfo.Marker marker : markers) { if (marker.getAnnotation() != null) { if (annot... | /**
* Asserts that the index-th annotation marker of a given annotation name is found in the given
* JSDocInfo.
*
* @param jsdoc The JSDocInfo in which to search for the annotation marker.
* @param annotationName The name/type of the annotation for which to search. Example: "author"
* for an "@aut... | Asserts that the index-th annotation marker of a given annotation name is found in the given JSDocInfo | assertAnnotationMarker | {
"repo_name": "brad4d/closure-compiler",
"path": "test/com/google/javascript/jscomp/parsing/JsDocInfoParserTest.java",
"license": "apache-2.0",
"size": 160667
} | [
"com.google.common.truth.Truth",
"com.google.javascript.rhino.JSDocInfo",
"java.util.Collection"
] | import com.google.common.truth.Truth; import com.google.javascript.rhino.JSDocInfo; import java.util.Collection; | import com.google.common.truth.*; import com.google.javascript.rhino.*; import java.util.*; | [
"com.google.common",
"com.google.javascript",
"java.util"
] | com.google.common; com.google.javascript; java.util; | 2,860,077 |
public final SwallowedExceptionListener getSwallowedExceptionListener() {
return swallowedExceptionListener;
}
| final SwallowedExceptionListener function() { return swallowedExceptionListener; } | /**
* The listener used (if any) to receive notifications of exceptions
* unavoidably swallowed by the pool.
*
* @return The listener or <code>null</code> for no listener
*/ | The listener used (if any) to receive notifications of exceptions unavoidably swallowed by the pool | getSwallowedExceptionListener | {
"repo_name": "IAMTJW/Tomcat-8.5.20",
"path": "tomcat-8.5.20/java/org/apache/tomcat/dbcp/pool2/impl/BaseGenericObjectPool.java",
"license": "apache-2.0",
"size": 50366
} | [
"org.apache.tomcat.dbcp.pool2.SwallowedExceptionListener"
] | import org.apache.tomcat.dbcp.pool2.SwallowedExceptionListener; | import org.apache.tomcat.dbcp.pool2.*; | [
"org.apache.tomcat"
] | org.apache.tomcat; | 1,652,370 |
public static java.util.Set extractProfileTheatreTCISlotSet(ims.domain.ILightweightDomainFactory domainFactory, ims.scheduling.vo.ProfileTheatreTCISlotVoCollection voCollection)
{
return extractProfileTheatreTCISlotSet(domainFactory, voCollection, null, new HashMap());
}
| static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.scheduling.vo.ProfileTheatreTCISlotVoCollection voCollection) { return extractProfileTheatreTCISlotSet(domainFactory, voCollection, null, new HashMap()); } | /**
* Create the ims.scheduling.domain.objects.ProfileTheatreTCISlot set from the value object collection.
* @param domainFactory - used to create existing (persistent) domain objects.
* @param voCollection - the collection of value objects
*/ | Create the ims.scheduling.domain.objects.ProfileTheatreTCISlot set from the value object collection | extractProfileTheatreTCISlotSet | {
"repo_name": "FreudianNM/openMAXIMS",
"path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/scheduling/vo/domain/ProfileTheatreTCISlotVoAssembler.java",
"license": "agpl-3.0",
"size": 17607
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 956,960 |
public void writeOptionalNamedWriteable(@Nullable NamedWriteable namedWriteable) throws IOException {
if (namedWriteable == null) {
writeBoolean(false);
} else {
writeBoolean(true);
writeNamedWriteable(namedWriteable);
}
} | void function(@Nullable NamedWriteable namedWriteable) throws IOException { if (namedWriteable == null) { writeBoolean(false); } else { writeBoolean(true); writeNamedWriteable(namedWriteable); } } | /**
* Write an optional {@link NamedWriteable} to the stream.
*/ | Write an optional <code>NamedWriteable</code> to the stream | writeOptionalNamedWriteable | {
"repo_name": "wuranbo/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/common/io/stream/StreamOutput.java",
"license": "apache-2.0",
"size": 32954
} | [
"java.io.IOException",
"org.elasticsearch.common.Nullable"
] | import java.io.IOException; import org.elasticsearch.common.Nullable; | import java.io.*; import org.elasticsearch.common.*; | [
"java.io",
"org.elasticsearch.common"
] | java.io; org.elasticsearch.common; | 482,420 |
@Override
public Schema getSchema() {
return schema$;
} | Schema function() { return schema$; } | /**
* This method supports the Avro framework and is not intended to be called
* directly by the user.
*
* @return the schema object describing this class.
*
*/ | This method supports the Avro framework and is not intended to be called directly by the user | getSchema | {
"repo_name": "kineticadb/kinetica-api-java",
"path": "api/src/main/java/com/gpudb/protocol/DeleteGraphRequest.java",
"license": "mit",
"size": 12081
} | [
"org.apache.avro.Schema"
] | import org.apache.avro.Schema; | import org.apache.avro.*; | [
"org.apache.avro"
] | org.apache.avro; | 2,524,218 |
public String encodeToBase64(byte[] bytes) {
String encoded = Base64.encodeBase64URLSafeString(bytes);
return encoded;
} | String function(byte[] bytes) { String encoded = Base64.encodeBase64URLSafeString(bytes); return encoded; } | /**
* <p>Converts the given bytes into a Base64 encoded string.</p>
*
* @param bytes The given bytes to encode.
*
* @return a Base64 encoded string.
*/ | Converts the given bytes into a Base64 encoded string | encodeToBase64 | {
"repo_name": "jackstraw66/web",
"path": "livescribe/lsloginservice/src/main/java/com/livescribe/framework/login/crypto/EncryptionUtils.java",
"license": "bsd-2-clause",
"size": 10368
} | [
"org.apache.commons.codec.binary.Base64"
] | import org.apache.commons.codec.binary.Base64; | import org.apache.commons.codec.binary.*; | [
"org.apache.commons"
] | org.apache.commons; | 736,895 |
public File getSourceFile() {
return sourceFile;
} | File function() { return sourceFile; } | /**
* Accessor for the sourceFile property.
*
* @return the sourceFile
*/ | Accessor for the sourceFile property | getSourceFile | {
"repo_name": "c4fcm/CLIFF",
"path": "stanford-entity-extractor/src/test/java/com/nytlabs/corpus/NYTCorpusDocument.java",
"license": "apache-2.0",
"size": 37144
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 354,714 |
public Set<Label> getSubincludeLabels() {
return subincludes;
} | Set<Label> function() { return subincludes; } | /**
* Returns the list of subincluded labels on which the validity of this package depends.
*/ | Returns the list of subincluded labels on which the validity of this package depends | getSubincludeLabels | {
"repo_name": "kamalmarhubi/bazel",
"path": "src/main/java/com/google/devtools/build/lib/packages/Package.java",
"license": "apache-2.0",
"size": 50763
} | [
"com.google.devtools.build.lib.cmdline.Label",
"java.util.Set"
] | import com.google.devtools.build.lib.cmdline.Label; import java.util.Set; | import com.google.devtools.build.lib.cmdline.*; import java.util.*; | [
"com.google.devtools",
"java.util"
] | com.google.devtools; java.util; | 2,287,563 |
public final MetaProperty<StubType> stubType() {
return _stubType;
} | final MetaProperty<StubType> function() { return _stubType; } | /**
* The meta-property for the {@code stubType} property.
* @return the meta-property, not null
*/ | The meta-property for the stubType property | stubType | {
"repo_name": "jeorme/OG-Platform",
"path": "projects/OG-FinancialTypes/src/main/java/com/opengamma/financial/security/cds/CDSSecurity.java",
"license": "apache-2.0",
"size": 35121
} | [
"com.opengamma.financial.convention.StubType",
"org.joda.beans.MetaProperty"
] | import com.opengamma.financial.convention.StubType; import org.joda.beans.MetaProperty; | import com.opengamma.financial.convention.*; import org.joda.beans.*; | [
"com.opengamma.financial",
"org.joda.beans"
] | com.opengamma.financial; org.joda.beans; | 1,568,809 |
@SuppressWarnings("unused")
protected void setTemplateDef(@NotNull final TemplateDef<String> def)
{
immutableSetTemplateDef(def);
} | @SuppressWarnings(STR) void function(@NotNull final TemplateDef<String> def) { immutableSetTemplateDef(def); } | /**
* Specifies the instance to wrap.
* @param def such instance.
*/ | Specifies the instance to wrap | setTemplateDef | {
"repo_name": "rydnr/queryj-rt",
"path": "queryj-template-packaging/src/main/java/org/acmsl/queryj/templates/packaging/placeholders/DecoratedTemplateDefWrapper.java",
"license": "gpl-2.0",
"size": 10367
} | [
"org.acmsl.queryj.templates.packaging.TemplateDef",
"org.jetbrains.annotations.NotNull"
] | import org.acmsl.queryj.templates.packaging.TemplateDef; import org.jetbrains.annotations.NotNull; | import org.acmsl.queryj.templates.packaging.*; import org.jetbrains.annotations.*; | [
"org.acmsl.queryj",
"org.jetbrains.annotations"
] | org.acmsl.queryj; org.jetbrains.annotations; | 2,330,877 |
@Override
public void addConstraint(SecurityConstraint constraint) {
// Validate the proposed constraint
SecurityCollection collections[] = constraint.findCollections();
for (int i = 0; i < collections.length; i++) {
String patterns[] = collections[i].findPatterns();
... | void function(SecurityConstraint constraint) { SecurityCollection collections[] = constraint.findCollections(); for (int i = 0; i < collections.length; i++) { String patterns[] = collections[i].findPatterns(); for (int j = 0; j < patterns.length; j++) { patterns[j] = adjustURLPattern(patterns[j]); if (!validateURLPatte... | /**
* Add a security constraint to the set for this web application.
*
* @param constraint the new security constraint
*/ | Add a security constraint to the set for this web application | addConstraint | {
"repo_name": "Nickname0806/Test_Q4",
"path": "java/org/apache/catalina/core/StandardContext.java",
"license": "apache-2.0",
"size": 209298
} | [
"org.apache.tomcat.util.descriptor.web.SecurityCollection",
"org.apache.tomcat.util.descriptor.web.SecurityConstraint"
] | import org.apache.tomcat.util.descriptor.web.SecurityCollection; import org.apache.tomcat.util.descriptor.web.SecurityConstraint; | import org.apache.tomcat.util.descriptor.web.*; | [
"org.apache.tomcat"
] | org.apache.tomcat; | 736,223 |
public static Date parseIso8601DateTimeOrDate(String datestr)
throws ParseException {
try {
return parseIso8601DateTime(datestr);
} catch (ParseException px) {
return parseIso8601Date(datestr);
}
} | static Date function(String datestr) throws ParseException { try { return parseIso8601DateTime(datestr); } catch (ParseException px) { return parseIso8601Date(datestr); } } | /**
* Parse a string as a date using the either the ISO8601_DATETIME
* or ISO8601_DATE formats.
*
* @param datestr string to be parsed
*
* @return a java.util.Date object as parsed by the formats.
* @exception ParseException if the supplied string cannot be parsed by
* either of ... | Parse a string as a date using the either the ISO8601_DATETIME or ISO8601_DATE formats | parseIso8601DateTimeOrDate | {
"repo_name": "sosilent/euca",
"path": "clc/modules/msgs/src/main/java/org/apache/tools/ant/util/DateUtils.java",
"license": "gpl-3.0",
"size": 12918
} | [
"java.text.ParseException",
"java.util.Date"
] | import java.text.ParseException; import java.util.Date; | import java.text.*; import java.util.*; | [
"java.text",
"java.util"
] | java.text; java.util; | 2,388,320 |
public boolean methodIsOverridden(final Type classType,
final NameAndType nat) {
final String methodName = nat.name();
final Type methodType = nat.type();
db("ClassHierarchy: Is " + classType + "." + methodName + methodType
+ " overridden?");
final Collection subclasses = this.subclasses(classType);... | boolean function(final Type classType, final NameAndType nat) { final String methodName = nat.name(); final Type methodType = nat.type(); db(STR + classType + "." + methodName + methodType + STR); final Collection subclasses = this.subclasses(classType); final Iterator iter = subclasses.iterator(); while (iter.hasNext(... | /**
* Determines whether or not a class's method is overriden by any of its
* subclasses.
*/ | Determines whether or not a class's method is overriden by any of its subclasses | methodIsOverridden | {
"repo_name": "AlterRS/Deobfuscator",
"path": "deps/EDU/purdue/cs/bloat/editor/ClassHierarchy.java",
"license": "mit",
"size": 32904
} | [
"java.util.Collection",
"java.util.Iterator"
] | import java.util.Collection; import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,690,914 |
public @NonNull Type getType() {
return mType;
}
| @NonNull Type function() { return mType; } | /**
* get field type
* @return field type
*/ | get field type | getType | {
"repo_name": "STMicroelectronics-CentralLabs/BlueSTSDK_Android",
"path": "BlueSTSDK/src/main/java/com/st/BlueSTSDK/Features/Field.java",
"license": "bsd-3-clause",
"size": 4433
} | [
"androidx.annotation.NonNull"
] | import androidx.annotation.NonNull; | import androidx.annotation.*; | [
"androidx.annotation"
] | androidx.annotation; | 1,750,890 |
@Override
public String getColumnClassName(int columnIndex) throws SQLException {
int type = DataType.getValueTypeFromResultSet(this, columnIndex);
return DataType.getTypeClassName(type);
} | String function(int columnIndex) throws SQLException { int type = DataType.getValueTypeFromResultSet(this, columnIndex); return DataType.getTypeClassName(type); } | /**
* Returns the Java class name if this column.
*
* @param columnIndex (1,2,...)
* @return the class name
*/ | Returns the Java class name if this column | getColumnClassName | {
"repo_name": "miloszpiglas/h2mod",
"path": "src/main/org/h2/tools/SimpleResultSet.java",
"license": "mpl-2.0",
"size": 55168
} | [
"java.sql.SQLException",
"org.h2.value.DataType"
] | import java.sql.SQLException; import org.h2.value.DataType; | import java.sql.*; import org.h2.value.*; | [
"java.sql",
"org.h2.value"
] | java.sql; org.h2.value; | 1,053,719 |
private void getReaderPrototypes() {
for (AdaptorConfiguration adaptor : adaptorConfigurations) {
if (adaptor.isLocal()) {
List<ReaderConfiguration> readerConfigurations = new LinkedList<ReaderConfiguration>();
// get the number of readers to create
int numReaders = Integer.parseInt(props... | void function() { for (AdaptorConfiguration adaptor : adaptorConfigurations) { if (adaptor.isLocal()) { List<ReaderConfiguration> readerConfigurations = new LinkedList<ReaderConfiguration>(); int numReaders = Integer.parseInt(props.getProperty(adaptor.getPrefix() + CFG_NBR_READERS)); for (int j=0; j<numReaders; j++) { ... | /**
* reads the reader configurations from the config file.
*/ | reads the reader configurations from the config file | getReaderPrototypes | {
"repo_name": "Auto-ID-Lab-Japan/fosstrak-llrp",
"path": "llrp-adaptor/src/main/java/org/fosstrak/llrp/adaptor/config/FileStoreConfiguration.java",
"license": "gpl-3.0",
"size": 11820
} | [
"java.util.LinkedList",
"java.util.List",
"org.fosstrak.llrp.adaptor.config.type.AdaptorConfiguration",
"org.fosstrak.llrp.adaptor.config.type.ReaderConfiguration"
] | import java.util.LinkedList; import java.util.List; import org.fosstrak.llrp.adaptor.config.type.AdaptorConfiguration; import org.fosstrak.llrp.adaptor.config.type.ReaderConfiguration; | import java.util.*; import org.fosstrak.llrp.adaptor.config.type.*; | [
"java.util",
"org.fosstrak.llrp"
] | java.util; org.fosstrak.llrp; | 2,062,644 |
public void setParameter(FileSystemOptions opts, String name, String value, String fullParameterName, String vfsUrl) throws IOException;
| void function(FileSystemOptions opts, String name, String value, String fullParameterName, String vfsUrl) throws IOException; | /**
* Publicly expose a generic way to set parameters
*/ | Publicly expose a generic way to set parameters | setParameter | {
"repo_name": "dianhu/Kettle-Research",
"path": "src-core/org/pentaho/di/core/vfs/configuration/IKettleFileSystemConfigBuilder.java",
"license": "lgpl-2.1",
"size": 1383
} | [
"java.io.IOException",
"org.apache.commons.vfs.FileSystemOptions"
] | import java.io.IOException; import org.apache.commons.vfs.FileSystemOptions; | import java.io.*; import org.apache.commons.vfs.*; | [
"java.io",
"org.apache.commons"
] | java.io; org.apache.commons; | 2,477,151 |
public static final HashMap readMapXml(InputStream in)
throws XmlPullParserException, java.io.IOException
{
XmlPullParser parser = Xml.newPullParser();
parser.setInput(in, null);
return (HashMap)readValueXml(parser, new String[1]);
} | static final HashMap function(InputStream in) throws XmlPullParserException, java.io.IOException { XmlPullParser parser = Xml.newPullParser(); parser.setInput(in, null); return (HashMap)readValueXml(parser, new String[1]); } | /**
* Read a HashMap from an InputStream containing XML. The stream can
* previously have been written by writeMapXml().
*
* @param in The InputStream from which to read.
*
* @return HashMap The resulting map.
*
* @see #readListXml
* @see #readValueXml
* @see #readThis... | Read a HashMap from an InputStream containing XML. The stream can previously have been written by writeMapXml() | readMapXml | {
"repo_name": "wtao901231/libMinusAndroid",
"path": "libMinusKit/src/main/java/minus/android/internal/util/XmlUtils.java",
"license": "apache-2.0",
"size": 33850
} | [
"android.util.Xml",
"java.io.IOException",
"java.io.InputStream",
"java.util.HashMap",
"org.xmlpull.v1.XmlPullParser",
"org.xmlpull.v1.XmlPullParserException"
] | import android.util.Xml; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import org.xmlpull.v1.XmlPullParser; import org.xmlpull.v1.XmlPullParserException; | import android.util.*; import java.io.*; import java.util.*; import org.xmlpull.v1.*; | [
"android.util",
"java.io",
"java.util",
"org.xmlpull.v1"
] | android.util; java.io; java.util; org.xmlpull.v1; | 1,668,833 |
@Test
public void whenThreePointAreaThen0() {
Point a = new Point(0, 0);
Point b = new Point(1, 1);
Point c = new Point(2, 2);
Triangle triangle = new Triangle(a, b, c);
double result = triangle.area();
double expected = 0D;
assertThat(result, closeTo(expected, 0.01));
} | void function() { Point a = new Point(0, 0); Point b = new Point(1, 1); Point c = new Point(2, 2); Triangle triangle = new Triangle(a, b, c); double result = triangle.area(); double expected = 0D; assertThat(result, closeTo(expected, 0.01)); } | /**
*Test area.
*/ | Test area | whenThreePointAreaThen0 | {
"repo_name": "eldar258/edzabarov",
"path": "chapter_001/src/test/java/ru/job4j/condition/TriangleTest.java",
"license": "apache-2.0",
"size": 1616
} | [
"org.hamcrest.number.IsCloseTo",
"org.junit.Assert"
] | import org.hamcrest.number.IsCloseTo; import org.junit.Assert; | import org.hamcrest.number.*; import org.junit.*; | [
"org.hamcrest.number",
"org.junit"
] | org.hamcrest.number; org.junit; | 1,061,770 |
@Override public boolean equals(Object obj) {
return this == obj
|| obj instanceof RelTraitSet
&& Arrays.equals(traits, ((RelTraitSet) obj).traits);
} | @Override boolean function(Object obj) { return this == obj obj instanceof RelTraitSet && Arrays.equals(traits, ((RelTraitSet) obj).traits); } | /**
* Compares two RelTraitSet objects for equality.
*
* @param obj another RelTraitSet
* @return true if traits are equal and in the same order, false otherwise
*/ | Compares two RelTraitSet objects for equality | equals | {
"repo_name": "mapr/incubator-calcite",
"path": "core/src/main/java/org/apache/calcite/plan/RelTraitSet.java",
"license": "apache-2.0",
"size": 12337
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 2,199,772 |
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<ApplicationGroupInner> listByResourceGroup(
String resourceGroupName, String filter, Context context) {
return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, filter, context));
} | @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<ApplicationGroupInner> function( String resourceGroupName, String filter, Context context) { return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, filter, context)); } | /**
* List applicationGroups.
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param filter OData filter expression. Valid properties for filtering are applicationGroupType.
* @param context The context to associate with this operation.
* @throw... | List applicationGroups | listByResourceGroup | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/desktopvirtualization/azure-resourcemanager-desktopvirtualization/src/main/java/com/azure/resourcemanager/desktopvirtualization/implementation/ApplicationGroupsClientImpl.java",
"license": "mit",
"size": 63975
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedIterable",
"com.azure.core.util.Context",
"com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; import com.azure.resourcemanager.desktopvirtualization.fluent.models.ApplicationGroupInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.desktopvirtualization.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,158,571 |
public static void saveDataToFile(File file, XmlSerializableTaskManager taskManager)
throws FileNotFoundException {
try {
XmlUtil.saveDataToFile(file, taskManager);
} catch (JAXBException e) {
assert false : "Unexpected exception " + e.getMessage();
}
... | static void function(File file, XmlSerializableTaskManager taskManager) throws FileNotFoundException { try { XmlUtil.saveDataToFile(file, taskManager); } catch (JAXBException e) { assert false : STR + e.getMessage(); } } | /**
* Saves the given taskmanager data to the specified file.
*/ | Saves the given taskmanager data to the specified file | saveDataToFile | {
"repo_name": "CS2103JAN2017-W13-B2/main",
"path": "src/main/java/seedu/address/storage/XmlFileStorage.java",
"license": "mit",
"size": 1214
} | [
"java.io.File",
"java.io.FileNotFoundException",
"javax.xml.bind.JAXBException"
] | import java.io.File; import java.io.FileNotFoundException; import javax.xml.bind.JAXBException; | import java.io.*; import javax.xml.bind.*; | [
"java.io",
"javax.xml"
] | java.io; javax.xml; | 292,652 |
return new Converter<ResultSetMetaData>() { | return new Converter<ResultSetMetaData>() { | /**
* Returns a converter that is able to read and write result set metadata
* using the form specified above. The converter reads or writes three rows
* of metadata definition containing the column names, the column types and
* an empty row.
*
* @param characterConverter the converter used for converting ... | Returns a converter that is able to read and write result set metadata using the form specified above. The converter reads or writes three rows of metadata definition containing the column names, the column types and an empty row | getResultSetMetaDataConverter | {
"repo_name": "hannoman/xxl",
"path": "src/xxl/core/relational/cursors/InputStreamMetaDataCursor.java",
"license": "lgpl-3.0",
"size": 30232
} | [
"java.sql.ResultSetMetaData",
"xxl.core.io.converters.Converter"
] | import java.sql.ResultSetMetaData; import xxl.core.io.converters.Converter; | import java.sql.*; import xxl.core.io.converters.*; | [
"java.sql",
"xxl.core.io"
] | java.sql; xxl.core.io; | 1,606,661 |
public void removeSectionRefs()
{
log.debug("removeSectionRefs()");
String xpath = basePath + "/" + QTIConstantStrings.SECTIONREF;
this.removeElement(xpath);
} | void function() { log.debug(STR); String xpath = basePath + "/" + QTIConstantStrings.SECTIONREF; this.removeElement(xpath); } | /**
* Remove all section refs.
*/ | Remove all section refs | removeSectionRefs | {
"repo_name": "OpenCollabZA/sakai",
"path": "samigo/samigo-qti/src/java/org/sakaiproject/tool/assessment/qti/asi/Assessment.java",
"license": "apache-2.0",
"size": 7967
} | [
"org.sakaiproject.tool.assessment.qti.constants.QTIConstantStrings"
] | import org.sakaiproject.tool.assessment.qti.constants.QTIConstantStrings; | import org.sakaiproject.tool.assessment.qti.constants.*; | [
"org.sakaiproject.tool"
] | org.sakaiproject.tool; | 873,948 |
void enterDefaultValue(@NotNull JavaParser.DefaultValueContext ctx);
void exitDefaultValue(@NotNull JavaParser.DefaultValueContext ctx); | void enterDefaultValue(@NotNull JavaParser.DefaultValueContext ctx); void exitDefaultValue(@NotNull JavaParser.DefaultValueContext ctx); | /**
* Exit a parse tree produced by {@link JavaParser#defaultValue}.
* @param ctx the parse tree
*/ | Exit a parse tree produced by <code>JavaParser#defaultValue</code> | exitDefaultValue | {
"repo_name": "zmughal/oop-analysis",
"path": "src/generated-sources/JavaListener.java",
"license": "apache-2.0",
"size": 38949
} | [
"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; | 798,730 |
public static Sources scan(
Log log, DirectoryScannerSpec spec) throws IOException {
String[] includesArray = spec.includes.toArray(new String[0]);
String[] excludesArray = spec.excludes.toArray(new String[0]);
Map<File, Source> found = Maps.newLinkedHashMap();
for (TypedFile root : spec.roots)... | static Sources function( Log log, DirectoryScannerSpec spec) throws IOException { String[] includesArray = spec.includes.toArray(new String[0]); String[] excludesArray = spec.excludes.toArray(new String[0]); Map<File, Source> found = Maps.newLinkedHashMap(); for (TypedFile root : spec.roots) { if (!root.f.exists()) { l... | /**
* Scans the file-trees under the specified directories for files matching
* the specified patterns.
*/ | Scans the file-trees under the specified directories for files matching the specified patterns | scan | {
"repo_name": "mikesamuel/closure-maven-plugin",
"path": "plugin/src/main/java/com/google/closure/plugin/common/Sources.java",
"license": "apache-2.0",
"size": 6819
} | [
"com.google.common.collect.Maps",
"com.google.common.io.Files",
"java.io.File",
"java.io.IOException",
"java.io.Serializable",
"java.util.EnumSet",
"java.util.Map",
"org.apache.commons.io.FilenameUtils",
"org.apache.maven.plugin.logging.Log",
"org.codehaus.plexus.util.DirectoryScanner"
] | import com.google.common.collect.Maps; import com.google.common.io.Files; import java.io.File; import java.io.IOException; import java.io.Serializable; import java.util.EnumSet; import java.util.Map; import org.apache.commons.io.FilenameUtils; import org.apache.maven.plugin.logging.Log; import org.codehaus.plexus.util.... | import com.google.common.collect.*; import com.google.common.io.*; import java.io.*; import java.util.*; import org.apache.commons.io.*; import org.apache.maven.plugin.logging.*; import org.codehaus.plexus.util.*; | [
"com.google.common",
"java.io",
"java.util",
"org.apache.commons",
"org.apache.maven",
"org.codehaus.plexus"
] | com.google.common; java.io; java.util; org.apache.commons; org.apache.maven; org.codehaus.plexus; | 720,951 |
@ApiModelProperty(value = "Preferably an url with more details about the error.\n")
@JsonProperty("moreInfo")
public String getMoreInfo() {
return moreInfo;
} | @ApiModelProperty(value = STR) @JsonProperty(STR) String function() { return moreInfo; } | /**
* Preferably an url with more details about the error.\n
**/ | Preferably an url with more details about the error.\n | getMoreInfo | {
"repo_name": "nuwand/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.hybrid.gateway/org.wso2.carbon.apimgt.hybrid.gateway.throttling.synchronizer/src/main/java/org/wso2/carbon/apimgt/hybrid/gateway/throttling/synchronizer/dto/ErrorDTO.java",
"license": "apache-2.0",
"size": 3298
} | [
"com.fasterxml.jackson.annotation.JsonProperty",
"io.swagger.annotations.ApiModelProperty"
] | import com.fasterxml.jackson.annotation.JsonProperty; import io.swagger.annotations.ApiModelProperty; | import com.fasterxml.jackson.annotation.*; import io.swagger.annotations.*; | [
"com.fasterxml.jackson",
"io.swagger.annotations"
] | com.fasterxml.jackson; io.swagger.annotations; | 2,770,537 |
public DataNode setEnd_timeScalar(Date end_time); | DataNode function(Date end_time); | /**
* Ending time of measurement
* <p>
* <b>Type:</b> NX_DATE_TIME
* </p>
*
* @param end_time the end_time
*/ | Ending time of measurement Type: NX_DATE_TIME | setEnd_timeScalar | {
"repo_name": "xen-0/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXsubentry.java",
"license": "epl-1.0",
"size": 30808
} | [
"java.util.Date",
"org.eclipse.dawnsci.analysis.api.tree.DataNode"
] | import java.util.Date; import org.eclipse.dawnsci.analysis.api.tree.DataNode; | import java.util.*; import org.eclipse.dawnsci.analysis.api.tree.*; | [
"java.util",
"org.eclipse.dawnsci"
] | java.util; org.eclipse.dawnsci; | 2,824,258 |
public void testHasAssetLiabilityFundBalanceBalances() {
List results;
purgeTestData();
assertFalse("no rows means no balances", SpringContext.getBean(BalanceService.class).hasAssetLiabilityFundBalanceBalances(account));
String fundBalanceObjectCode = "9899"; // TODO - get this from ... | void function() { List results; purgeTestData(); assertFalse(STR, SpringContext.getBean(BalanceService.class).hasAssetLiabilityFundBalanceBalances(account)); String fundBalanceObjectCode = "9899"; insertBalance("LI", "AC", "9899", new KualiDecimal(1.5), new KualiDecimal(2.5)); assertFalse(STR, SpringContext.getBean(Bal... | /**
* This method tests that appropriate asset object codes yield asset liability fund balances while non-asset codes do not.
*/ | This method tests that appropriate asset object codes yield asset liability fund balances while non-asset codes do not | testHasAssetLiabilityFundBalanceBalances | {
"repo_name": "quikkian-ua-devops/will-financials",
"path": "kfs-core/src/test/java/org/kuali/kfs/gl/service/BalanceServiceTest.java",
"license": "agpl-3.0",
"size": 7068
} | [
"java.util.List",
"org.kuali.kfs.sys.context.SpringContext",
"org.kuali.rice.core.api.util.type.KualiDecimal"
] | import java.util.List; import org.kuali.kfs.sys.context.SpringContext; import org.kuali.rice.core.api.util.type.KualiDecimal; | import java.util.*; import org.kuali.kfs.sys.context.*; import org.kuali.rice.core.api.util.type.*; | [
"java.util",
"org.kuali.kfs",
"org.kuali.rice"
] | java.util; org.kuali.kfs; org.kuali.rice; | 1,862,433 |
public java.sql.Statement createStatement(int resultSetType,
int resultSetConcurrency) throws SQLException {
checkClosed();
try {
return StatementWrapper.getInstance(this, this.pooledConnection, this.mc
.createStatement(resultSetType, resultSetConcurrency));
} catch (SQLException sqlException) {
... | java.sql.Statement function(int resultSetType, int resultSetConcurrency) throws SQLException { checkClosed(); try { return StatementWrapper.getInstance(this, this.pooledConnection, this.mc .createStatement(resultSetType, resultSetConcurrency)); } catch (SQLException sqlException) { checkAndFireConnectionError(sqlExcept... | /**
* Passes call to method on physical connection instance. Notifies listeners
* of any caught exceptions before re-throwing to client.
*
* @see java.sql.Connection#createStatement()
*/ | Passes call to method on physical connection instance. Notifies listeners of any caught exceptions before re-throwing to client | createStatement | {
"repo_name": "spullara/mysql-connector-java",
"path": "src/main/java/com/mysql/jdbc/jdbc2/optional/ConnectionWrapper.java",
"license": "gpl-2.0",
"size": 73716
} | [
"java.sql.SQLException",
"java.sql.Statement"
] | import java.sql.SQLException; import java.sql.Statement; | import java.sql.*; | [
"java.sql"
] | java.sql; | 874,379 |
public String getParamString() {
return Utilities.listToDelimitedString(this.params, "|");
} | String function() { return Utilities.listToDelimitedString(this.params, " "); } | /**
* Utility method for converting the params to a pipe-delimited string.
*/ | Utility method for converting the params to a pipe-delimited string | getParamString | {
"repo_name": "opendatakraken/openbiwiki",
"path": "openbiwiki-core/src/main/java/org/jamwiki/model/RecentChange.java",
"license": "mit",
"size": 11225
} | [
"org.jamwiki.utils.Utilities"
] | import org.jamwiki.utils.Utilities; | import org.jamwiki.utils.*; | [
"org.jamwiki.utils"
] | org.jamwiki.utils; | 1,941,083 |
private static byte[] createEmptyByteArray(final int rlength, int flength,
int qlength, final long timestamp, final Type type, int vlength, int tagsLength) {
if (rlength > Short.MAX_VALUE) {
throw new IllegalArgumentException("Row > " + Short.MAX_VALUE);
}
if (flength > Byte.MAX_VALUE) {
... | static byte[] function(final int rlength, int flength, int qlength, final long timestamp, final Type type, int vlength, int tagsLength) { if (rlength > Short.MAX_VALUE) { throw new IllegalArgumentException(STR + Short.MAX_VALUE); } if (flength > Byte.MAX_VALUE) { throw new IllegalArgumentException(STR + Byte.MAX_VALUE)... | /**
* Create an empty byte[] representing a KeyValue
* All lengths are preset and can be filled in later.
* @param rlength
* @param flength
* @param qlength
* @param timestamp
* @param type
* @param vlength
* @return The newly created byte array.
*/ | Create an empty byte[] representing a KeyValue All lengths are preset and can be filled in later | createEmptyByteArray | {
"repo_name": "SeekerResource/hbase",
"path": "hbase-common/src/main/java/org/apache/hadoop/hbase/KeyValue.java",
"license": "apache-2.0",
"size": 98207
} | [
"org.apache.hadoop.hbase.util.Bytes"
] | import org.apache.hadoop.hbase.util.Bytes; | import org.apache.hadoop.hbase.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,583,131 |
private void tag(String name, String text) throws IOException {
serializer.startTag("", name).text(text).endTag("", name);
}
/**
* Alias for {@link org.fdroid.fdroid.localrepo.LocalRepoManager.IndexXmlBuilder#tag(String, String)} | void function(String name, String text) throws IOException { serializer.startTag(STR", name); } /** * Alias for {@link org.fdroid.fdroid.localrepo.LocalRepoManager.IndexXmlBuilder#tag(String, String)} | /**
* Helper function to start a tag called "name", fill it with text "text", and then
* end the tag in a more concise manner.
*/ | Helper function to start a tag called "name", fill it with text "text", and then end the tag in a more concise manner | tag | {
"repo_name": "CopperheadOS/platform_packages_apps_F-Droid",
"path": "app/src/main/java/org/fdroid/fdroid/localrepo/LocalRepoManager.java",
"license": "gpl-3.0",
"size": 19216
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,769,356 |
public void paint(Graphics a, JComponent b) {
for (int i = 0; i < uis.size(); i++) {
((ComponentUI) (uis.elementAt(i))).paint(a,b);
}
} | void function(Graphics a, JComponent b) { for (int i = 0; i < uis.size(); i++) { ((ComponentUI) (uis.elementAt(i))).paint(a,b); } } | /**
* Invokes the <code>paint</code> method on each UI handled by this object.
*/ | Invokes the <code>paint</code> method on each UI handled by this object | paint | {
"repo_name": "isaacl/openjdk-jdk",
"path": "src/share/classes/javax/swing/plaf/multi/MultiTabbedPaneUI.java",
"license": "gpl-2.0",
"size": 9310
} | [
"java.awt.Graphics",
"javax.swing.JComponent",
"javax.swing.plaf.ComponentUI"
] | import java.awt.Graphics; import javax.swing.JComponent; import javax.swing.plaf.ComponentUI; | import java.awt.*; import javax.swing.*; import javax.swing.plaf.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 418,738 |
@JsonProperty("groupByResult")
public void setGroupByResult(List<GroupByResult> groupByResult) {
_groupByResults = groupByResult;
} | @JsonProperty(STR) void function(List<GroupByResult> groupByResult) { _groupByResults = groupByResult; } | /**
* Get groupByResults for the aggregation function.
* @param groupByResult
*/ | Get groupByResults for the aggregation function | setGroupByResult | {
"repo_name": "tkao1000/pinot",
"path": "pinot-common/src/main/java/com/linkedin/pinot/common/response/broker/AggregationResult.java",
"license": "apache-2.0",
"size": 3679
} | [
"java.util.List",
"org.codehaus.jackson.annotate.JsonProperty"
] | import java.util.List; import org.codehaus.jackson.annotate.JsonProperty; | import java.util.*; import org.codehaus.jackson.annotate.*; | [
"java.util",
"org.codehaus.jackson"
] | java.util; org.codehaus.jackson; | 921,839 |
public void loginWithToken(final String user, final String token, final String deviceName, final ApiCallback<Credentials> callback) {
loginWithToken(user, token, UUID.randomUUID().toString(), deviceName, callback);
} | void function(final String user, final String token, final String deviceName, final ApiCallback<Credentials> callback) { loginWithToken(user, token, UUID.randomUUID().toString(), deviceName, callback); } | /**
* Attempt a user/token log in.
*
* @param user the user name
* @param token the token
* @param deviceName the device name
* @param callback the callback success and failure callback
*/ | Attempt a user/token log in | loginWithToken | {
"repo_name": "matrix-org/matrix-android-sdk",
"path": "matrix-sdk/src/main/java/org/matrix/androidsdk/rest/client/LoginRestClient.java",
"license": "apache-2.0",
"size": 16397
} | [
"java.util.UUID",
"org.matrix.androidsdk.core.callback.ApiCallback",
"org.matrix.androidsdk.rest.model.login.Credentials"
] | import java.util.UUID; import org.matrix.androidsdk.core.callback.ApiCallback; import org.matrix.androidsdk.rest.model.login.Credentials; | import java.util.*; import org.matrix.androidsdk.core.callback.*; import org.matrix.androidsdk.rest.model.login.*; | [
"java.util",
"org.matrix.androidsdk"
] | java.util; org.matrix.androidsdk; | 2,441,858 |
public static void waitForDependentProcess(final Operator operator, final Process process, final String name, Thread... threadsToBeFinishedFirst)
throws OperatorException {
boolean allThreadsFinished = false;
while (!allThreadsFinished) {
allThreadsFinished = true;
for (Thread t : threadsToBeFinishedFir... | static void function(final Operator operator, final Process process, final String name, Thread... threadsToBeFinishedFirst) throws OperatorException { boolean allThreadsFinished = false; while (!allThreadsFinished) { allThreadsFinished = true; for (Thread t : threadsToBeFinishedFirst) { if (!t.isAlive()) { continue; } ... | /**
* Waits for the required threads to die first. Then waits for the process to die and writes log messages.
* Terminates if exit value is not 0. Terminates if the RapidMiner process execution was stopped by the user.
*
* @param operator
* The current operator that will be checked for RapidMiner process ex... | Waits for the required threads to die first. Then waits for the process to die and writes log messages. Terminates if exit value is not 0. Terminates if the RapidMiner process execution was stopped by the user | waitForDependentProcess | {
"repo_name": "aborg0/rapidminer-studio",
"path": "src/main/java/com/rapidminer/tools/Tools.java",
"license": "agpl-3.0",
"size": 76542
} | [
"com.rapidminer.operator.Operator",
"com.rapidminer.operator.OperatorException",
"com.rapidminer.operator.ProcessStoppedException",
"java.util.logging.Level"
] | import com.rapidminer.operator.Operator; import com.rapidminer.operator.OperatorException; import com.rapidminer.operator.ProcessStoppedException; import java.util.logging.Level; | import com.rapidminer.operator.*; import java.util.logging.*; | [
"com.rapidminer.operator",
"java.util"
] | com.rapidminer.operator; java.util; | 2,847,238 |
@Override
public Lock getRegionDistributedLock() throws IllegalStateException {
checkReadiness();
checkForLimitedOrNoAccess();
Scope theScope = getAttributes().getScope();
Assert.assertTrue(theScope == Scope.LOCAL);
throw new IllegalStateException(
"Only supported for GLOBAL scope, not L... | Lock function() throws IllegalStateException { checkReadiness(); checkForLimitedOrNoAccess(); Scope theScope = getAttributes().getScope(); Assert.assertTrue(theScope == Scope.LOCAL); throw new IllegalStateException( STR); } | /**
* This implementation only checks readiness and scope
*/ | This implementation only checks readiness and scope | getRegionDistributedLock | {
"repo_name": "smgoller/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java",
"license": "apache-2.0",
"size": 395944
} | [
"java.util.concurrent.locks.Lock",
"org.apache.geode.cache.Scope",
"org.apache.geode.internal.Assert"
] | import java.util.concurrent.locks.Lock; import org.apache.geode.cache.Scope; import org.apache.geode.internal.Assert; | import java.util.concurrent.locks.*; import org.apache.geode.cache.*; import org.apache.geode.internal.*; | [
"java.util",
"org.apache.geode"
] | java.util; org.apache.geode; | 970,340 |
public IntervalAnalysisState rebuildStateAfterFunctionCall(final IntervalAnalysisState callState, final FunctionExitNode functionExit) {
// we build a new state from:
// - local variables from callState,
// - global variables from THIS,
// - the local return variable from THIS.
// we copy callSta... | IntervalAnalysisState function(final IntervalAnalysisState callState, final FunctionExitNode functionExit) { final IntervalAnalysisState rebuildState = IntervalAnalysisState.copyOf(callState); for (final String trackedVar : callState.intervals.keySet()) { if (!trackedVar.contains("::")) { rebuildState.removeInterval(tr... | /** If there was a recursive function, we have wrong intervals for scoped variables in the returnState.
* This function rebuilds a new state with the correct intervals from the previous callState.
* We delete the wrong intervals and insert new intervals, if necessary. */ | If there was a recursive function, we have wrong intervals for scoped variables in the returnState. This function rebuilds a new state with the correct intervals from the previous callState | rebuildStateAfterFunctionCall | {
"repo_name": "nishanttotla/predator",
"path": "cpachecker/src/org/sosy_lab/cpachecker/cpa/interval/IntervalAnalysisState.java",
"license": "gpl-3.0",
"size": 17048
} | [
"org.sosy_lab.cpachecker.cfa.model.FunctionExitNode"
] | import org.sosy_lab.cpachecker.cfa.model.FunctionExitNode; | import org.sosy_lab.cpachecker.cfa.model.*; | [
"org.sosy_lab.cpachecker"
] | org.sosy_lab.cpachecker; | 683,636 |
T visitQuestionnaire( @NotNull QuestionnaireParser.QuestionnaireContext ctx ); | T visitQuestionnaire( @NotNull QuestionnaireParser.QuestionnaireContext ctx ); | /**
* Visit a parse tree produced by {@link QuestionnaireParser#questionnaire}.
*
* @param ctx the parse tree
* @return the visitor result
*/ | Visit a parse tree produced by <code>QuestionnaireParser#questionnaire</code> | visitQuestionnaire | {
"repo_name": "software-engineering-amsterdam/poly-ql",
"path": "SantiagoCarrillo/q-language/src/edu/uva/softwarecons/grammar/QuestionnaireVisitor.java",
"license": "apache-2.0",
"size": 5749
} | [
"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; | 322,936 |
public List<Identifier> expandColumnExprList() {
List<Identifier> el = new ArrayList<Identifier>();
for(SelectListElement e : getSelectList()) {
List<Identifier> names = e.getColumnNames();
el.addAll(names);
}
return el;
}
// public void setDistinct(boolean distinct) {
// this.distinct... | List<Identifier> function() { List<Identifier> el = new ArrayList<Identifier>(); for(SelectListElement e : getSelectList()) { List<Identifier> names = e.getColumnNames(); el.addAll(names); } return el; } | /**
* NOTE: selected list contains <code>null</code> element
* for each column for without an identifier
*
* @return
*/ | for each column for without an identifier | expandColumnExprList | {
"repo_name": "tjn/relaxe",
"path": "src/main/java/com/appspot/relaxe/expr/Select.java",
"license": "agpl-3.0",
"size": 5985
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,706,181 |
public static String runJavaScriptOrFail(String js, int timeout, WebContents webContents) {
if (DEBUG_LOGS) Log.i(TAG, "runJavaScriptOrFail " + js);
try {
String ret = JavaScriptUtils.executeJavaScriptAndWaitForResult(
webContents, js, timeout, TimeUnit.MILLISECONDS);... | static String function(String js, int timeout, WebContents webContents) { if (DEBUG_LOGS) Log.i(TAG, STR + js); try { String ret = JavaScriptUtils.executeJavaScriptAndWaitForResult( webContents, js, timeout, TimeUnit.MILLISECONDS); if (DEBUG_LOGS) Log.i(TAG, STR + ret); return ret; } catch (TimeoutException e) { Assert... | /**
* Helper function to run the given JavaScript, return the return value, and fail if a
* timeout/interrupt occurs so we don't have to catch or declare exceptions all the time.
*
* @param js The JavaScript to run.
* @param timeout The timeout in milliseconds before a failure.
* @param we... | Helper function to run the given JavaScript, return the return value, and fail if a timeout/interrupt occurs so we don't have to catch or declare exceptions all the time | runJavaScriptOrFail | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/chrome/android/javatests/src/org/chromium/chrome/browser/vr/XrTestFramework.java",
"license": "bsd-3-clause",
"size": 27148
} | [
"java.util.concurrent.TimeUnit",
"java.util.concurrent.TimeoutException",
"org.chromium.base.Log",
"org.chromium.content_public.browser.WebContents",
"org.chromium.content_public.browser.test.util.JavaScriptUtils",
"org.junit.Assert"
] | import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.chromium.base.Log; import org.chromium.content_public.browser.WebContents; import org.chromium.content_public.browser.test.util.JavaScriptUtils; import org.junit.Assert; | import java.util.concurrent.*; import org.chromium.base.*; import org.chromium.content_public.browser.*; import org.chromium.content_public.browser.test.util.*; import org.junit.*; | [
"java.util",
"org.chromium.base",
"org.chromium.content_public",
"org.junit"
] | java.util; org.chromium.base; org.chromium.content_public; org.junit; | 2,809,180 |
public void setErrorReporter(ErrorReporter reporter); | void function(ErrorReporter reporter); | /**
* Register an error reporter with the engine so that any errors generated
* by the loading of script code can be reported in a nice, pretty fashion.
* Setting a value of null will clear the currently set reporter. If one
* is already set, the new value replaces the old.
*
* @param repo... | Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. Setting a value of null will clear the currently set reporter. If one is already set, the new value replaces the old | setErrorReporter | {
"repo_name": "Norkart/NK-VirtualGlobe",
"path": "Xj3D/src/java/org/xj3d/core/loading/WorldLoaderManager.java",
"license": "gpl-2.0",
"size": 5418
} | [
"org.web3d.util.ErrorReporter"
] | import org.web3d.util.ErrorReporter; | import org.web3d.util.*; | [
"org.web3d.util"
] | org.web3d.util; | 1,994,542 |
public int writeGraphToFile(byte[] img, File to)
{
try {
FileOutputStream fos = new FileOutputStream(to);
fos.write(img);
fos.close();
} catch (java.io.IOException ioe) { return -1; }
return 1;
} | int function(byte[] img, File to) { try { FileOutputStream fos = new FileOutputStream(to); fos.write(img); fos.close(); } catch (java.io.IOException ioe) { return -1; } return 1; } | /**
* Writes the graph's image in a file.
* @param img A byte array containing the image of the graph.
* @param to A File object to where we want to write.
* @return Success: 1, Failure: -1
*/ | Writes the graph's image in a file | writeGraphToFile | {
"repo_name": "ANDI-Mckee/SE-Experiment-1",
"path": "src/org/hitbioinfo/exp1/GraphViz.java",
"license": "gpl-3.0",
"size": 11822
} | [
"java.io.File",
"java.io.FileOutputStream"
] | import java.io.File; import java.io.FileOutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,690,267 |
public List<I> waitForRequests(int expectedNumberOfRequests, long millisToWait) {
return _synchronizedInvocationList.getInvocationsWaitForCount(expectedNumberOfRequests, millisToWait);
} | List<I> function(int expectedNumberOfRequests, long millisToWait) { return _synchronizedInvocationList.getInvocationsWaitForCount(expectedNumberOfRequests, millisToWait); } | /**
* Blocks and waits for the endpoint to be invoked x number of times, then returns the x number of corresponding
* incoming message DTO's of the type (<code>I</code>). Will utilize a default timeout value of 5 seconds.
*
* @param expectedNumberOfRequests
* the number of requests b... | Blocks and waits for the endpoint to be invoked x number of times, then returns the x number of corresponding incoming message DTO's of the type (<code>I</code>). Will utilize a default timeout value of 5 seconds | waitForRequests | {
"repo_name": "stolsvik/mats",
"path": "mats-test/src/main/java/io/mats3/test/abstractunit/AbstractMatsTestEndpoint.java",
"license": "apache-2.0",
"size": 16700
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,536,536 |
private void connectAll(TreeMap<Integer, Player> updatedMap) {
for (Player p : updatedMap.values()){
final ConnectionData cd = this.connectToPlayer(p);
if (cd != null)
Peer.getInstance().addConnectedSocket(p.getId(), cd);
}
} | void function(TreeMap<Integer, Player> updatedMap) { for (Player p : updatedMap.values()){ final ConnectionData cd = this.connectToPlayer(p); if (cd != null) Peer.getInstance().addConnectedSocket(p.getId(), cd); } } | /**
* This method opens a connections to all server socket of the
* players in the map passed as argument.
*/ | This method opens a connections to all server socket of the players in the map passed as argument | connectAll | {
"repo_name": "simosini/bombRing",
"path": "src/messages/JoinRingMessage.java",
"license": "gpl-3.0",
"size": 6664
} | [
"java.util.TreeMap"
] | import java.util.TreeMap; | import java.util.*; | [
"java.util"
] | java.util; | 2,039,991 |
private SqlParser.Config getSqlParserConfig() {
return JavaScalaConversionUtil.<SqlParser.Config>toJava(getCalciteConfig(tableConfig).getSqlParserConfig()).orElseGet(
// we use Java lex because back ticks are easier than double quotes in programming
// and cases are preserved
() -> {
SqlConformanc... | SqlParser.Config function() { return JavaScalaConversionUtil.<SqlParser.Config>toJava(getCalciteConfig(tableConfig).getSqlParserConfig()).orElseGet( () -> { SqlConformance conformance = getSqlConformance(); return SqlParser .configBuilder() .setParserFactory(FlinkSqlParserFactories.create(conformance)) .setConformance(... | /**
* Returns the SQL parser config for this environment including a custom Calcite configuration.
*/ | Returns the SQL parser config for this environment including a custom Calcite configuration | getSqlParserConfig | {
"repo_name": "tzulitai/flink",
"path": "flink-table/flink-table-planner-blink/src/main/java/org/apache/flink/table/planner/delegation/PlannerContext.java",
"license": "apache-2.0",
"size": 11865
} | [
"org.apache.calcite.config.Lex",
"org.apache.calcite.sql.parser.SqlParser",
"org.apache.calcite.sql.validate.SqlConformance",
"org.apache.flink.table.planner.utils.JavaScalaConversionUtil"
] | import org.apache.calcite.config.Lex; import org.apache.calcite.sql.parser.SqlParser; import org.apache.calcite.sql.validate.SqlConformance; import org.apache.flink.table.planner.utils.JavaScalaConversionUtil; | import org.apache.calcite.config.*; import org.apache.calcite.sql.parser.*; import org.apache.calcite.sql.validate.*; import org.apache.flink.table.planner.utils.*; | [
"org.apache.calcite",
"org.apache.flink"
] | org.apache.calcite; org.apache.flink; | 2,467,358 |
@Description("The configured session cookie port sent to the browser")
public String getCookiePort(); | @Description(STR) String function(); | /**
* The session cookie port sent to the client browser.
*/ | The session cookie port sent to the client browser | getCookiePort | {
"repo_name": "dlitz/resin",
"path": "modules/resin/src/com/caucho/management/server/SessionManagerMXBean.java",
"license": "gpl-2.0",
"size": 6838
} | [
"com.caucho.jmx.Description"
] | import com.caucho.jmx.Description; | import com.caucho.jmx.*; | [
"com.caucho.jmx"
] | com.caucho.jmx; | 126,268 |
private boolean connectFmgUser(HttpServletRequest p_request, HttpServletResponse p_response,
Map<String, String> params) throws IOException
{
String login = params.get( "login" );
if( login == null || login.isEmpty() )
{
p_response.sendRedirect( "/auth.jsp?msg=login ou mot de passe inv... | boolean function(HttpServletRequest p_request, HttpServletResponse p_response, Map<String, String> params) throws IOException { String login = params.get( "login" ); if( login == null login.isEmpty() ) { p_response.sendRedirect( STR ); return false; } FmgDataStore ds = new FmgDataStore( true ); Query<EbAccount> query =... | /**
* try to connect an FMG (not google or other credential) user
*
* @param p_request
* @param p_response
* @param params
* @return false if connection failed and p_response is redirected.
* @throws IOException
*/ | try to connect an FMG (not google or other credential) user | connectFmgUser | {
"repo_name": "kroc702/fullmetalgalaxy",
"path": "src/com/fullmetalgalaxy/server/AccountServlet.java",
"license": "agpl-3.0",
"size": 15418
} | [
"com.fullmetalgalaxy.model.AuthProvider",
"com.googlecode.objectify.Query",
"java.io.IOException",
"java.util.Map",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse"
] | import com.fullmetalgalaxy.model.AuthProvider; import com.googlecode.objectify.Query; import java.io.IOException; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; | import com.fullmetalgalaxy.model.*; import com.googlecode.objectify.*; import java.io.*; import java.util.*; import javax.servlet.http.*; | [
"com.fullmetalgalaxy.model",
"com.googlecode.objectify",
"java.io",
"java.util",
"javax.servlet"
] | com.fullmetalgalaxy.model; com.googlecode.objectify; java.io; java.util; javax.servlet; | 731,319 |
private boolean isExchangeSecurityDisabled() {
int exchangeSecurityDisabled = SystemProperties.getInt("exchange.security.disabled", 0);
boolean isExchangeSecurityDisabled = (exchangeSecurityDisabled == 0 ? false : true);
return isExchangeSecurityDisabled;
} | boolean function() { int exchangeSecurityDisabled = SystemProperties.getInt(STR, 0); boolean isExchangeSecurityDisabled = (exchangeSecurityDisabled == 0 ? false : true); return isExchangeSecurityDisabled; } | /**
* Check if Exchange security policy requirements are enabled
*/ | Check if Exchange security policy requirements are enabled | isExchangeSecurityDisabled | {
"repo_name": "craigacgomez/flaming_monkey_packages_apps_Email",
"path": "emailcommon/src/com/android/emailcommon/provider/Policy.java",
"license": "apache-2.0",
"size": 24549
} | [
"android.os.SystemProperties"
] | import android.os.SystemProperties; | import android.os.*; | [
"android.os"
] | android.os; | 1,874,218 |
List<CatalogTO> getRegionsAvailable( Long userId ); | List<CatalogTO> getRegionsAvailable( Long userId ); | /**
* Method that get regions available for this user.
* @param userId
* @return List of {@link CatalogTO} with regions available for this user.
*/ | Method that get regions available for this user | getRegionsAvailable | {
"repo_name": "sidlors/digital-booking",
"path": "digital-booking-services/src/main/java/mx/com/cinepolis/digital/booking/service/configuration/AssignUserServiceEJB.java",
"license": "epl-1.0",
"size": 2002
} | [
"java.util.List",
"mx.com.cinepolis.digital.booking.commons.to.CatalogTO"
] | import java.util.List; import mx.com.cinepolis.digital.booking.commons.to.CatalogTO; | import java.util.*; import mx.com.cinepolis.digital.booking.commons.to.*; | [
"java.util",
"mx.com.cinepolis"
] | java.util; mx.com.cinepolis; | 1,206,488 |
@BeforeClass()
public void createTestEntries()
throws Exception
{
if (! isDirectoryInstanceAvailable())
{
return;
}
LDAPConnection conn = getAdminConnection();
conn.add(getTestBaseDN(), getBaseEntryAttributes());
for (int i=1; i <= 10; i++)
{
conn.add("dn: uid=use... | @BeforeClass() void function() throws Exception { if (! isDirectoryInstanceAvailable()) { return; } LDAPConnection conn = getAdminConnection(); conn.add(getTestBaseDN(), getBaseEntryAttributes()); for (int i=1; i <= 10; i++) { conn.add(STR + i + ',' + getTestBaseDN(), STR, STR, STR, STR, STR + i, STR, STR + i, STR + i,... | /**
* Populates the directory server with a set of test entries.
* <BR><BR>
* Access to a Directory Server instance is required for complete processing.
*
* @throws Exception If an unexpected problem occurs.
*/ | Populates the directory server with a set of test entries. Access to a Directory Server instance is required for complete processing | createTestEntries | {
"repo_name": "UnboundID/ldapsdk",
"path": "tests/unit/src/com/unboundid/ldap/sdk/examples/SearchRateTestCase.java",
"license": "gpl-2.0",
"size": 23762
} | [
"com.unboundid.ldap.sdk.LDAPConnection",
"org.testng.annotations.BeforeClass"
] | import com.unboundid.ldap.sdk.LDAPConnection; import org.testng.annotations.BeforeClass; | import com.unboundid.ldap.sdk.*; import org.testng.annotations.*; | [
"com.unboundid.ldap",
"org.testng.annotations"
] | com.unboundid.ldap; org.testng.annotations; | 234,035 |
public static String translate(String id) {
if (id.equals(Role.MODERATOR.toString())) {
return translate("Moderator");
} else if (id.equals(Role.AUTHOR.toString())) {
return translate("Author");
} else if (id.equals(Role.CUSTOMER.toString())) {
return translate("Customer");
} else if (id.equals(R... | static String function(String id) { if (id.equals(Role.MODERATOR.toString())) { return translate(STR); } else if (id.equals(Role.AUTHOR.toString())) { return translate(STR); } else if (id.equals(Role.CUSTOMER.toString())) { return translate(STR); } else if (id.equals(Role.REVIEWER.toString())) { return translate(STR); ... | /**
* Returns the translation of the specified string from the bundle.
*
* @param id
* the string to translate
* @return translated string or the id
*/ | Returns the translation of the specified string from the bundle | translate | {
"repo_name": "googol42/revager",
"path": "src/org/revager/app/model/Data.java",
"license": "gpl-3.0",
"size": 12835
} | [
"org.revager.app.model.schema.Role"
] | import org.revager.app.model.schema.Role; | import org.revager.app.model.schema.*; | [
"org.revager.app"
] | org.revager.app; | 1,642,787 |
public void lexWrite(ExceptionlessOutputStream out, ByteString i) {
if (i != null && encoding == i.encoding && Arrays.equals(value, i.value))
out.writeBytes(null);
else {
out.writeBytes(value);
out.writeInt(hashCode);
out.writeString(i != null && encoding == i.encoding ? null : encodin... | void function(ExceptionlessOutputStream out, ByteString i) { if (i != null && encoding == i.encoding && Arrays.equals(value, i.value)) out.writeBytes(null); else { out.writeBytes(value); out.writeInt(hashCode); out.writeString(i != null && encoding == i.encoding ? null : encoding); } } | /**
* Writes a binary representation of this byte string intended for use by
* a lexicon, omitting redundant information when possible.
*
* @param out The output stream.
* @param i The assumed identifier string. This byte strings value,
* encoding, or both may be omitted if they... | Writes a binary representation of this byte string intended for use by a lexicon, omitting redundant information when possible | lexWrite | {
"repo_name": "TeamCohen/MinorThird",
"path": "src/main/java/LBJ2/util/ByteString.java",
"license": "bsd-3-clause",
"size": 12614
} | [
"java.util.Arrays"
] | import java.util.Arrays; | import java.util.*; | [
"java.util"
] | java.util; | 1,753,292 |
public boolean prepareRevoke(PersistentMemberPattern pattern, DistributionManager dm,
InternalDistributedMember sender) {
if (logger.isDebugEnabled()) {
logger.debug("Preparing revoke if pattern {}", pattern);
}
PendingRevokeListener membershipListener = new PendingRevokeListener(pattern, se... | boolean function(PersistentMemberPattern pattern, DistributionManager dm, InternalDistributedMember sender) { if (logger.isDebugEnabled()) { logger.debug(STR, pattern); } PendingRevokeListener membershipListener = new PendingRevokeListener(pattern, sender, dm); synchronized (this) { for (MemberRevocationListener listen... | /**
* Prepare the revoke of a persistent id.
*
* @param pattern the pattern to revoke
* @param dm the distribution manager
* @param sender the originator of the prepare
* @return true if this member is not currently running the chosen disk store. false if the revoke
* should be aborted beca... | Prepare the revoke of a persistent id | prepareRevoke | {
"repo_name": "jdeppe-pivotal/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/persistence/PersistentMemberManager.java",
"license": "apache-2.0",
"size": 8657
} | [
"java.util.Set",
"org.apache.geode.distributed.internal.DistributionManager",
"org.apache.geode.distributed.internal.membership.InternalDistributedMember"
] | import java.util.Set; import org.apache.geode.distributed.internal.DistributionManager; import org.apache.geode.distributed.internal.membership.InternalDistributedMember; | import java.util.*; import org.apache.geode.distributed.internal.*; import org.apache.geode.distributed.internal.membership.*; | [
"java.util",
"org.apache.geode"
] | java.util; org.apache.geode; | 1,991,085 |
EDataType getLocalTime(); | EDataType getLocalTime(); | /**
* Returns the meta object for data type '{@link java.time.LocalTime <em>Local Time</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for data type '<em>Local Time</em>'.
* @see java.time.LocalTime
* @model instanceClass="java.time.LocalTime"
* @generated
*/ | Returns the meta object for data type '<code>java.time.LocalTime Local Time</code>'. | getLocalTime | {
"repo_name": "elexis/elexis-3-core",
"path": "bundles/ch.elexis.core/src-gen/ch/elexis/core/types/TypesPackage.java",
"license": "epl-1.0",
"size": 41282
} | [
"org.eclipse.emf.ecore.EDataType"
] | import org.eclipse.emf.ecore.EDataType; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,198,409 |
protected Query getBooleanQuery(List<BooleanClause> clauses) throws SyntaxError {
return getBooleanQuery(clauses, false);
} | Query function(List<BooleanClause> clauses) throws SyntaxError { return getBooleanQuery(clauses, false); } | /**
* Factory method for generating query, given a set of clauses.
* By default creates a boolean query composed of clauses passed in.
*
* Can be overridden by extending classes, to modify query being
* returned.
*
* @param clauses List that contains {@link org.apache.lucene.search.BooleanClause} i... | Factory method for generating query, given a set of clauses. By default creates a boolean query composed of clauses passed in. Can be overridden by extending classes, to modify query being returned | getBooleanQuery | {
"repo_name": "zhangdian/solr4.6.0",
"path": "solr/core/src/java/org/apache/solr/parser/SolrQueryParserBase.java",
"license": "apache-2.0",
"size": 28976
} | [
"java.util.List",
"org.apache.lucene.search.BooleanClause",
"org.apache.lucene.search.Query",
"org.apache.solr.search.SyntaxError"
] | import java.util.List; import org.apache.lucene.search.BooleanClause; import org.apache.lucene.search.Query; import org.apache.solr.search.SyntaxError; | import java.util.*; import org.apache.lucene.search.*; import org.apache.solr.search.*; | [
"java.util",
"org.apache.lucene",
"org.apache.solr"
] | java.util; org.apache.lucene; org.apache.solr; | 1,239,559 |
@Override
public Object clone() throws CloneNotSupportedException {
// Start with superclass impl (handles immutables and primitives)
final NotificationCategory rslt = (NotificationCategory) super.clone();
// Adjust to satisfy deep-copy strategy
List<NotificationEntry> eList = ... | Object function() throws CloneNotSupportedException { final NotificationCategory rslt = (NotificationCategory) super.clone(); List<NotificationEntry> eList = new ArrayList<>(entries.size()); for (NotificationEntry entry : entries) { eList.add((NotificationEntry) entry.clone()); } rslt.setEntries(eList); return rslt; } | /**
* Implements deep-copy clone.
*
* @throws CloneNotSupportedException Not really, but it's on the method
* signature we're overriding.
*/ | Implements deep-copy clone | clone | {
"repo_name": "Jasig/NotificationPortlet",
"path": "notification-portlet-api/src/main/java/org/jasig/portlet/notice/NotificationCategory.java",
"license": "apache-2.0",
"size": 3858
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,913,558 |
public JSONObject getFavoritePlurks(DateTime offset, int limit, boolean onlyFavorite) throws PlurkException {
try {
String _offset = (offset == null ? DateTime.now() : offset).toTimeOffset();
Args args = config.args()
.name("offset").value(_offset)
... | JSONObject function(DateTime offset, int limit, boolean onlyFavorite) throws PlurkException { try { String _offset = (offset == null ? DateTime.now() : offset).toTimeOffset(); Args args = config.args() .name(STR).value(_offset) .name("limit").value((limit <= 0 ? 20 : limit)); if (onlyFavorite) { args.name(STR).value("t... | /**
* [Non-Offical API]
* /API/Timeline/getPlurks
* Add new function: filter of Liked.
* Function getFavoritePlurks() also use getPlurks API, because onlyFavorite can NOT using with onlyUser, onlyResponsed, and onlyPrivate, so this function is split out.
* @param offset (optional) Return p... | [Non-Offical API] API/Timeline/getPlurks Add new function: filter of Liked. Function getFavoritePlurks() also use getPlurks API, because onlyFavorite can NOT using with onlyUser, onlyResponsed, and onlyPrivate, so this function is split out | getFavoritePlurks | {
"repo_name": "askeing/jplurk",
"path": "com.google.jplurk/src/main/java/com/google/jplurk/PlurkClient.java",
"license": "mit",
"size": 55159
} | [
"com.google.jplurk.action.PlurkActionSheet",
"com.google.jplurk.exception.PlurkException",
"org.apache.http.client.methods.HttpGet",
"org.json.JSONObject"
] | import com.google.jplurk.action.PlurkActionSheet; import com.google.jplurk.exception.PlurkException; import org.apache.http.client.methods.HttpGet; import org.json.JSONObject; | import com.google.jplurk.action.*; import com.google.jplurk.exception.*; import org.apache.http.client.methods.*; import org.json.*; | [
"com.google.jplurk",
"org.apache.http",
"org.json"
] | com.google.jplurk; org.apache.http; org.json; | 2,558,147 |
public InetSocketAddress[] getPeers(long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException {
try {
return allPeers();
} catch (UnknownHostException e) {
throw new PeerDiscoveryException(e);
}
} | InetSocketAddress[] function(long timeoutValue, TimeUnit timeoutUnit) throws PeerDiscoveryException { try { return allPeers(); } catch (UnknownHostException e) { throw new PeerDiscoveryException(e); } } | /**
* Returns an array containing all the Bitcoin nodes within the list.
*/ | Returns an array containing all the Bitcoin nodes within the list | getPeers | {
"repo_name": "leafcoin/leafcoinj",
"path": "core/src/main/java/com/google/leafcoin/net/discovery/SeedPeers.java",
"license": "apache-2.0",
"size": 3842
} | [
"java.net.InetSocketAddress",
"java.net.UnknownHostException",
"java.util.concurrent.TimeUnit"
] | import java.net.InetSocketAddress; import java.net.UnknownHostException; import java.util.concurrent.TimeUnit; | import java.net.*; import java.util.concurrent.*; | [
"java.net",
"java.util"
] | java.net; java.util; | 2,363,947 |
public void addListener(final INaviGraphListener listener) {
m_listeners.addListener(listener);
} | void function(final INaviGraphListener listener) { m_listeners.addListener(listener); } | /**
* Adds a listener that is notified about changes in the graph.
*
* @param listener The listener object that is notified about changes in the graph.
*/ | Adds a listener that is notified about changes in the graph | addListener | {
"repo_name": "chubbymaggie/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/yfileswrap/zygraph/Synchronizers/CViewGraphSynchronizer.java",
"license": "apache-2.0",
"size": 27372
} | [
"com.google.security.zynamics.binnavi.ZyGraph"
] | import com.google.security.zynamics.binnavi.ZyGraph; | import com.google.security.zynamics.binnavi.*; | [
"com.google.security"
] | com.google.security; | 113,246 |
PagedIterable<MonitoringTagRules> list(String resourceGroupName, String monitorName, Context context); | PagedIterable<MonitoringTagRules> list(String resourceGroupName, String monitorName, Context context); | /**
* List the tag rules for a given monitor resource.
*
* @param resourceGroupName The name of the resource group to which the Elastic resource belongs.
* @param monitorName Monitor resource name.
* @param context The context to associate with this operation.
* @throws IllegalArgumentExce... | List the tag rules for a given monitor resource | list | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/elastic/azure-resourcemanager-elastic/src/main/java/com/azure/resourcemanager/elastic/models/TagRules.java",
"license": "mit",
"size": 7243
} | [
"com.azure.core.http.rest.PagedIterable",
"com.azure.core.util.Context"
] | import com.azure.core.http.rest.PagedIterable; import com.azure.core.util.Context; | import com.azure.core.http.rest.*; import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 2,237,753 |
static <T> Seq<T> skipWhile(Stream<T> stream, Predicate<? super T> predicate) {
return skipUntil(stream, predicate.negate());
} | static <T> Seq<T> skipWhile(Stream<T> stream, Predicate<? super T> predicate) { return skipUntil(stream, predicate.negate()); } | /**
* Returns a stream with all elements skipped for which a predicate evaluates to <code>true</code>.
* <p>
* <code><pre>
* // (3, 4, 5)
* Seq.of(1, 2, 3, 4, 5).skipWhile(i -> i < 3)
* </pre></code>
*/ | Returns a stream with all elements skipped for which a predicate evaluates to <code>true</code>. <code><code> (3, 4, 5) Seq.of(1, 2, 3, 4, 5).skipWhile(i -> i < 3) </code></code> | skipWhile | {
"repo_name": "stephenh/jOOL",
"path": "src/main/java/org/jooq/lambda/Seq.java",
"license": "apache-2.0",
"size": 198501
} | [
"java.util.function.Predicate",
"java.util.stream.Stream"
] | import java.util.function.Predicate; import java.util.stream.Stream; | import java.util.function.*; import java.util.stream.*; | [
"java.util"
] | java.util; | 424,331 |
void evictEntries(Data excludedKey); | void evictEntries(Data excludedKey); | /**
* Evicts entries from this record-store.
*
* @param excludedKey this key has lowest priority to be selected for eviction
*/ | Evicts entries from this record-store | evictEntries | {
"repo_name": "dsukhoroslov/hazelcast",
"path": "hazelcast/src/main/java/com/hazelcast/map/impl/recordstore/RecordStore.java",
"license": "apache-2.0",
"size": 16744
} | [
"com.hazelcast.nio.serialization.Data"
] | import com.hazelcast.nio.serialization.Data; | import com.hazelcast.nio.serialization.*; | [
"com.hazelcast.nio"
] | com.hazelcast.nio; | 1,997,627 |
Function0<? extends String> getThisKeywordLambda(); | Function0<? extends String> getThisKeywordLambda(); | /** Replies the lambda that permits to get the keyword that is equivalent to "this".
*
* @return the lambda.
*/ | Replies the lambda that permits to get the keyword that is equivalent to "this" | getThisKeywordLambda | {
"repo_name": "sarl/sarl",
"path": "main/coreplugins/io.sarl.lang/src/io/sarl/lang/extralanguage/compiler/IExtraLanguageKeywordProvider.java",
"license": "apache-2.0",
"size": 1599
} | [
"org.eclipse.xtext.xbase.lib.Functions"
] | import org.eclipse.xtext.xbase.lib.Functions; | import org.eclipse.xtext.xbase.lib.*; | [
"org.eclipse.xtext"
] | org.eclipse.xtext; | 1,808,896 |
EList<CreateTableType> getCreateTable();
| EList<CreateTableType> getCreateTable(); | /**
* Returns the value of the '<em><b>Create Table</b></em>' containment reference list.
* The list contents are of type {@link org.liquibase.xml.ns.dbchangelog.CreateTableType}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the value of the '<em>Create Table</em>' containment reference li... | Returns the value of the 'Create Table' containment reference list. The list contents are of type <code>org.liquibase.xml.ns.dbchangelog.CreateTableType</code>. | getCreateTable | {
"repo_name": "Treehopper/EclipseAugments",
"path": "liquibase-editor/eu.hohenegger.xsd.liquibase/src-gen/org/liquibase/xml/ns/dbchangelog/ChangeSetType.java",
"license": "epl-1.0",
"size": 63387
} | [
"org.eclipse.emf.common.util.EList"
] | import org.eclipse.emf.common.util.EList; | import org.eclipse.emf.common.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,719,635 |
@Nonnull
public Word mapBounds(Function<Bounds, Bounds> f) {
return new Word(text, f.apply(bounds), isBold, isItalic);
} | Word function(Function<Bounds, Bounds> f) { return new Word(text, f.apply(bounds), isBold, isItalic); } | /**
* Creates a new word with bounds modified by the given function.
*
* @param f bounds-modifying function
* @return modified word
*/ | Creates a new word with bounds modified by the given function | mapBounds | {
"repo_name": "KarolS/hOCR4J",
"path": "src/main/java/io/github/karols/hocr4j/Word.java",
"license": "lgpl-2.1",
"size": 8754
} | [
"com.google.common.base.Function"
] | import com.google.common.base.Function; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 252,836 |
void updateMany(Bson filter, Bson update, UpdateOptions options, SingleResultCallback<UpdateResult> callback); | void updateMany(Bson filter, Bson update, UpdateOptions options, SingleResultCallback<UpdateResult> callback); | /**
* Update all documents in the collection according to the specified arguments.
*
* @param filter a document describing the query filter, which may not be null.
* @param update a document describing the update, which may not be null. The update to apply must include only update operators.
... | Update all documents in the collection according to the specified arguments | updateMany | {
"repo_name": "jsonking/mongo-java-driver",
"path": "driver-async/src/main/com/mongodb/async/client/MongoCollection.java",
"license": "apache-2.0",
"size": 31868
} | [
"com.mongodb.async.SingleResultCallback",
"com.mongodb.client.model.UpdateOptions",
"com.mongodb.client.result.UpdateResult",
"org.bson.conversions.Bson"
] | import com.mongodb.async.SingleResultCallback; import com.mongodb.client.model.UpdateOptions; import com.mongodb.client.result.UpdateResult; import org.bson.conversions.Bson; | import com.mongodb.async.*; import com.mongodb.client.model.*; import com.mongodb.client.result.*; import org.bson.conversions.*; | [
"com.mongodb.async",
"com.mongodb.client",
"org.bson.conversions"
] | com.mongodb.async; com.mongodb.client; org.bson.conversions; | 1,756,406 |
Attribute getAttribute(PerunSession sess, Facility facility, User user, String attributeName) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException; | Attribute getAttribute(PerunSession sess, Facility facility, User user, String attributeName) throws PrivilegeException, FacilityNotExistsException, AttributeNotExistsException, UserNotExistsException, WrongAttributeAssignmentException; | /**
* Get particular attribute for the user on this facility.
* <p>
* PRIVILEGE: Principal need to have access to attribute which wants to get.
*
* @param sess perun session
* @param facility to get attribute from
* @param user to get attribute from
* @param attributeName attribut... | Get particular attribute for the user on this facility. | getAttribute | {
"repo_name": "zoraseb/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/AttributesManager.java",
"license": "bsd-2-clause",
"size": 265364
} | [
"cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException",
"cz.metacentrum.perun.core.api.exceptions.FacilityNotExistsException",
"cz.metacentrum.perun.core.api.exceptions.PrivilegeException",
"cz.metacentrum.perun.core.api.exceptions.UserNotExistsException",
"cz.metacentrum.perun.core.api.exce... | import cz.metacentrum.perun.core.api.exceptions.AttributeNotExistsException; import cz.metacentrum.perun.core.api.exceptions.FacilityNotExistsException; import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import cz.metacentrum.perun.core.api.exceptions.UserNotExistsException; import cz.metacentrum.perun... | import cz.metacentrum.perun.core.api.exceptions.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 1,122,763 |
@SuppressWarnings("fallthrough")
private static void circumventBug2650internal(Node node) {
Node parent = null;
Node sibling = null;
final String namespaceNs = Constants.NamespaceSpecNS;
do {
switch (node.getNodeType()) {
case Node.ELEMENT_NODE :
... | @SuppressWarnings(STR) static void function(Node node) { Node parent = null; Node sibling = null; final String namespaceNs = Constants.NamespaceSpecNS; do { switch (node.getNodeType()) { case Node.ELEMENT_NODE : Element element = (Element) node; if (!element.hasChildNodes()) { break; } if (element.hasAttributes()) { Na... | /**
* This is the work horse for {@link #circumventBug2650}.
*
* @param node
* @see <A HREF="http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2650">
* Namespace axis resolution is not XPath compliant </A>
*/ | This is the work horse for <code>#circumventBug2650</code> | circumventBug2650internal | {
"repo_name": "isaacl/openjdk-jdk",
"path": "src/share/classes/com/sun/org/apache/xml/internal/security/utils/XMLUtils.java",
"license": "gpl-2.0",
"size": 35599
} | [
"org.w3c.dom.Attr",
"org.w3c.dom.Element",
"org.w3c.dom.NamedNodeMap",
"org.w3c.dom.Node"
] | import org.w3c.dom.Attr; import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,642,720 |
public String toString(Object obj)
{
if (obj == null)
{
return null;
}
ObjectMapper mapper = new ObjectMapper();
Writer strWriter = new StringWriter();
try
{
mapper.writeValue(strWriter, obj);
String j... | String function(Object obj) { if (obj == null) { return null; } ObjectMapper mapper = new ObjectMapper(); Writer strWriter = new StringWriter(); try { mapper.writeValue(strWriter, obj); String json = strWriter.toString(); return json; } catch (Exception exception) { return null; } } | /**
*
* To String.
*
* @param obj object to dump.
* @return String
*/ | To String | toString | {
"repo_name": "snoozesoftware/snoozenode",
"path": "src/main/java/org/inria/myriads/snoozenode/database/api/impl/cassandra/utils/JsonSerializer.java",
"license": "gpl-2.0",
"size": 2897
} | [
"java.io.StringWriter",
"java.io.Writer",
"org.codehaus.jackson.map.ObjectMapper"
] | import java.io.StringWriter; import java.io.Writer; import org.codehaus.jackson.map.ObjectMapper; | import java.io.*; import org.codehaus.jackson.map.*; | [
"java.io",
"org.codehaus.jackson"
] | java.io; org.codehaus.jackson; | 549,352 |
Constructor<T> constructor;
try {
constructor = testClass.getConstructor(String.class);
} catch (NoSuchMethodException e) {
throw new AssumptionViolatedException("No public " + testClass.getSimpleName() +"(String) constructor");
}
return constructor.newInstance(message);
} | Constructor<T> constructor; try { constructor = testClass.getConstructor(String.class); } catch (NoSuchMethodException e) { throw new AssumptionViolatedException(STR + testClass.getSimpleName() +STR); } return constructor.newInstance(message); } | /**
* Creates a new {@code <T>} exception using the message text provided.
* If {@code <T>} has no {@code T(String)} constructor, the test calling this method is
* skipped using with an assumption failure.
*
* @param message the message text to apply to the exception
*
* @return a new {@code <T>} e... | Creates a new exception using the message text provided. If has no T(String) constructor, the test calling this method is skipped using with an assumption failure | create | {
"repo_name": "anthonydahanne/ehcache3",
"path": "clustered/common/src/test/java/org/ehcache/clustered/common/internal/exceptions/BaseClusteredEhcacheExceptionTest.java",
"license": "apache-2.0",
"size": 5387
} | [
"java.lang.reflect.Constructor",
"org.junit.internal.AssumptionViolatedException"
] | import java.lang.reflect.Constructor; import org.junit.internal.AssumptionViolatedException; | import java.lang.reflect.*; import org.junit.internal.*; | [
"java.lang",
"org.junit.internal"
] | java.lang; org.junit.internal; | 1,783,638 |
private void initEzModel(Document document) throws Exception {
ClassAccessor classAccessor = new ClassAccessor();
XMLUtil xmlUtil = new XMLUtil();
// get the root model node list
NodeList modelRootNodeList = xmlUtil.getNodeListXPath(document,
XMLContract.ConfigContract.XML_ROOT_NAME + "/" +... | void function(Document document) throws Exception { ClassAccessor classAccessor = new ClassAccessor(); XMLUtil xmlUtil = new XMLUtil(); NodeList modelRootNodeList = xmlUtil.getNodeListXPath(document, XMLContract.ConfigContract.XML_ROOT_NAME + "/" + XMLContract.ConfigContract.XML_EZ_MODEL_ROOT); if (modelRootNodeList.ge... | /**
* Initialize model objects that reflect the API end points.
* @param document the config file.
* @throws Exception
*/ | Initialize model objects that reflect the API end points | initEzModel | {
"repo_name": "fn-faisal/restez",
"path": "restez/src/main/java/com/appzspot/restez/RestEz.java",
"license": "apache-2.0",
"size": 23031
} | [
"com.appzspot.restez.RestEz",
"com.appzspot.restez.util.reflection.ClassAccessor",
"com.appzspot.restez.util.xml.XMLContract",
"com.appzspot.restez.util.xml.XMLUtil",
"java.lang.reflect.Field",
"java.util.Set",
"org.w3c.dom.Document",
"org.w3c.dom.Node",
"org.w3c.dom.NodeList"
] | import com.appzspot.restez.RestEz; import com.appzspot.restez.util.reflection.ClassAccessor; import com.appzspot.restez.util.xml.XMLContract; import com.appzspot.restez.util.xml.XMLUtil; import java.lang.reflect.Field; import java.util.Set; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeLi... | import com.appzspot.restez.*; import com.appzspot.restez.util.reflection.*; import com.appzspot.restez.util.xml.*; import java.lang.reflect.*; import java.util.*; import org.w3c.dom.*; | [
"com.appzspot.restez",
"java.lang",
"java.util",
"org.w3c.dom"
] | com.appzspot.restez; java.lang; java.util; org.w3c.dom; | 836,217 |
EClass getNamedElement(); | EClass getNamedElement(); | /**
* Returns the meta object for class '{@link activitydiagram.NamedElement <em>Named Element</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Named Element</em>'.
* @see activitydiagram.NamedElement
* @generated
*/ | Returns the meta object for class '<code>activitydiagram.NamedElement Named Element</code>'. | getNamedElement | {
"repo_name": "gemoc/activitydiagram",
"path": "dev/gemoc_sequential/language_workbench/org.gemoc.activitydiagram.sequential.model/src/activitydiagram/ActivitydiagramPackage.java",
"license": "epl-1.0",
"size": 91129
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,770,894 |
@ApiModelProperty(example = "Annual Leave", value = "The name of the leave type")
public String getLeaveName() {
return leaveName;
} | @ApiModelProperty(example = STR, value = STR) String function() { return leaveName; } | /**
* The name of the leave type
*
* @return leaveName
*/ | The name of the leave type | getLeaveName | {
"repo_name": "SidneyAllen/Xero-Java",
"path": "src/main/java/com/xero/models/payrollau/LeaveBalance.java",
"license": "mit",
"size": 4167
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 2,640,172 |
public List<GarbageCollectorMXBean> getGarbageCollectorMXBeans() {
return ManagementFactory.getGarbageCollectorMXBeans();
}
| List<GarbageCollectorMXBean> function() { return ManagementFactory.getGarbageCollectorMXBeans(); } | /**
* Get the list of available {@link GarbageCollectorMXBean} MBeans in the
* running application.
*
* @return The associated garbage collection MBeans
*
* @see ManagementFactory#getGarbageCollectorMXBeans()
* @see #getGarbageCollectorMXBean(String)
* @see #getYoungCo... | Get the list of available <code>GarbageCollectorMXBean</code> MBeans in the running application | getGarbageCollectorMXBeans | {
"repo_name": "teatrove/teatrove",
"path": "teaapps/src/main/java/org/teatrove/teaapps/contexts/JMXContext.java",
"license": "apache-2.0",
"size": 33092
} | [
"java.lang.management.GarbageCollectorMXBean",
"java.lang.management.ManagementFactory",
"java.util.List"
] | import java.lang.management.GarbageCollectorMXBean; import java.lang.management.ManagementFactory; import java.util.List; | import java.lang.management.*; import java.util.*; | [
"java.lang",
"java.util"
] | java.lang; java.util; | 1,892,566 |
public synchronized void renameDirectory( ObjectId id_directory, ObjectId id_directory_parent, String newName ) throws KettleException {
if ( id_directory.equals( id_directory_parent ) ) {
// Make sure the directory cannot become its own parent
throw new KettleException( "Failed to copy directory into... | synchronized void function( ObjectId id_directory, ObjectId id_directory_parent, String newName ) throws KettleException { if ( id_directory.equals( id_directory_parent ) ) { throw new KettleException( STR ); } else { RepositoryDirectory rd = new RepositoryDirectory(); loadRepositoryDirectory( rd, id_directory ); if ( ... | /**
* Move / rename a directory in the repository
*
* @param id_directory
* Id of the directory to be moved/renamed
* @param id_directory_parent
* Id of the new parent directory (null if the parent does not change)
* @param newName
* New name for this directory (null i... | Move / rename a directory in the repository | renameDirectory | {
"repo_name": "tkafalas/pentaho-kettle",
"path": "engine/src/main/java/org/pentaho/di/repository/kdr/delegates/KettleDatabaseRepositoryDirectoryDelegate.java",
"license": "apache-2.0",
"size": 17323
} | [
"org.pentaho.di.core.RowMetaAndData",
"org.pentaho.di.core.exception.KettleException",
"org.pentaho.di.core.row.value.ValueMetaInteger",
"org.pentaho.di.core.row.value.ValueMetaString",
"org.pentaho.di.repository.ObjectId",
"org.pentaho.di.repository.RepositoryDirectory",
"org.pentaho.di.repository.kdr.... | import org.pentaho.di.core.RowMetaAndData; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.row.value.ValueMetaInteger; import org.pentaho.di.core.row.value.ValueMetaString; import org.pentaho.di.repository.ObjectId; import org.pentaho.di.repository.RepositoryDirectory; import org.pentah... | import org.pentaho.di.core.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.core.row.value.*; import org.pentaho.di.repository.*; import org.pentaho.di.repository.kdr.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 217,306 |
public ExternalFirewallDeviceVO findSuitableFirewallForNetwork(Network network) throws InsufficientCapacityException; | ExternalFirewallDeviceVO function(Network network) throws InsufficientCapacityException; | /**
* finds a suitable firewall device which can be used by this network
* @param network guest network
* @param dedicatedLb true if a dedicated load balancer is needed for this guest network
* @return ExternalLoadBalancerDeviceVO corresponding to the suitable device
* @throws InsufficientCapac... | finds a suitable firewall device which can be used by this network | findSuitableFirewallForNetwork | {
"repo_name": "GabrielBrascher/cloudstack",
"path": "server/src/main/java/com/cloud/network/ExternalFirewallDeviceManager.java",
"license": "apache-2.0",
"size": 4831
} | [
"com.cloud.exception.InsufficientCapacityException",
"com.cloud.network.dao.ExternalFirewallDeviceVO"
] | import com.cloud.exception.InsufficientCapacityException; import com.cloud.network.dao.ExternalFirewallDeviceVO; | import com.cloud.exception.*; import com.cloud.network.dao.*; | [
"com.cloud.exception",
"com.cloud.network"
] | com.cloud.exception; com.cloud.network; | 120,345 |
public static BufferedImage toBufferedImage(final Image image, final int type) {
if (image instanceof BufferedImage) {
BufferedImage bi = (BufferedImage) image;
if (bi.getType() == type) {
return bi;
}
}
int w = image.getWidth(null);
... | static BufferedImage function(final Image image, final int type) { if (image instanceof BufferedImage) { BufferedImage bi = (BufferedImage) image; if (bi.getType() == type) { return bi; } } int w = image.getWidth(null); int h = image.getHeight(null); BufferedImage result = new BufferedImage(w, h, type); Graphics2D g = ... | /**
* creates a buffered image from a normal image
*
* @param image : Image : image
* @param type : int : image type, use Image. ..., TYPE_INT_RGB, TYPE_INT_ARGB, TYPE_INT_ARGB_PRE, TYPE_INT_BGR, TYPE_3BYTE_BGR, TYPE_4BYTE_ABGR, TYPE_4BYTE_ABGR_PRE,
* TYPE_BYTE_GRAY, TYPE_USHORT_GRAY... | creates a buffered image from a normal image | toBufferedImage | {
"repo_name": "jurgendl/jhaws",
"path": "jhaws/media/src/main/java/org/jhaws/common/io/media/images/ImageTools.java",
"license": "mit",
"size": 81625
} | [
"java.awt.Graphics2D",
"java.awt.Image",
"java.awt.image.BufferedImage"
] | import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; | import java.awt.*; import java.awt.image.*; | [
"java.awt"
] | java.awt; | 470,842 |
protected void forceUnlock(long value) {
boolean unlocked = lock.compareAndSwapValue(value, UNLOCKED);
Jvm.warn().on(getClass(), "" +
"Forced unlock for the " +
"lock file:" + path + ", " +
"lockKey: " + lockKey + ", " +
... | void function(long value) { boolean unlocked = lock.compareAndSwapValue(value, UNLOCKED); Jvm.warn().on(getClass(), STRForced unlock for the STRlock file:STR, STRlockKey: STR, STRunlocked: STRForced unlock")); } | /**
* will only force unlock if you give it the correct pid
*/ | will only force unlock if you give it the correct pid | forceUnlock | {
"repo_name": "OpenHFT/Chronicle-Queue",
"path": "src/main/java/net/openhft/chronicle/queue/impl/table/AbstractTSQueueLock.java",
"license": "apache-2.0",
"size": 6350
} | [
"net.openhft.chronicle.core.Jvm"
] | import net.openhft.chronicle.core.Jvm; | import net.openhft.chronicle.core.*; | [
"net.openhft.chronicle"
] | net.openhft.chronicle; | 1,043,015 |
void setTypeValue(PreparedStatement ps, int paramIndex, int sqlType, String typeName) throws SQLException;
| void setTypeValue(PreparedStatement ps, int paramIndex, int sqlType, String typeName) throws SQLException; | /**
* Set the type value on the given PreparedStatement.
* @param ps the PreparedStatement to work on
* @param paramIndex the index of the parameter for which we need to set the value
* @param sqlType SQL type of the parameter we are setting
* @param typeName the type name of the parameter (optional)
... | Set the type value on the given PreparedStatement | setTypeValue | {
"repo_name": "codeApeFromChina/resource",
"path": "frame_packages/java_libs/spring-2.5.6-src/src/org/springframework/jdbc/core/SqlTypeValue.java",
"license": "unlicense",
"size": 2684
} | [
"java.sql.PreparedStatement",
"java.sql.SQLException"
] | import java.sql.PreparedStatement; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,914,358 |
public void setTextBounds(Rectangle rec);
| void function(Rectangle rec); | /**
* Set the position and size of the text field.
* @param rec Text Bounds (Default positions the Text at the bottom of the image)
*/ | Set the position and size of the text field | setTextBounds | {
"repo_name": "rhchen/notrace",
"path": "notrace/net.sf.notrace.application/src/net/sf/notrace/application/splash/ISplashService.java",
"license": "epl-1.0",
"size": 2000
} | [
"org.eclipse.swt.graphics.Rectangle"
] | import org.eclipse.swt.graphics.Rectangle; | import org.eclipse.swt.graphics.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 227,510 |
public void printAvailable(Match.SEASON season, String pathName) {
FileOutputStream out;
PrintStream ps = null;
try {
out = new FileOutputStream(pathName);
ps = new PrintStream(out);
} catch (Exception e) {
log.err("Error opening file");
... | void function(Match.SEASON season, String pathName) { FileOutputStream out; PrintStream ps = null; try { out = new FileOutputStream(pathName); ps = new PrintStream(out); } catch (Exception e) { log.err(STR); } for (ClubName clubName : TennisScheduler.clubNameMgr) cMap.get(clubName).printAvailable(season,ps); } | /**
* Print available time-slots for all the clubs for the specified 'season'
* They will be printed to the specified 'pathName'.
* @param season
* @param pathName
*/ | Print available time-slots for all the clubs for the specified 'season' They will be printed to the specified 'pathName' | printAvailable | {
"repo_name": "timj-pdx/tennis-scheduler",
"path": "TennisScheduler/src/tennisscheduler/ClubMgr.java",
"license": "gpl-2.0",
"size": 2154
} | [
"java.io.FileOutputStream",
"java.io.PrintStream"
] | import java.io.FileOutputStream; import java.io.PrintStream; | import java.io.*; | [
"java.io"
] | java.io; | 1,661,201 |
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
public SyncPoller<PollResult<ConnectedClusterInner>, ConnectedClusterInner> beginCreate(
String resourceGroupName, String clusterName, ConnectedClusterInner connectedCluster) {
return beginCreateAsync(resourceGroupName, clusterName, con... | @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller<PollResult<ConnectedClusterInner>, ConnectedClusterInner> function( String resourceGroupName, String clusterName, ConnectedClusterInner connectedCluster) { return beginCreateAsync(resourceGroupName, clusterName, connectedCluster).getSyncPoller(); } | /**
* API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager (ARM).
*
* @param resourceGroupName The name of the resource group. The name is case insensitive.
* @param clusterName The name of the Kubernetes cluster on which get is called.
* @param conne... | API to register a new Kubernetes cluster and create a tracked resource in Azure Resource Manager (ARM) | beginCreate | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/hybridkubernetes/azure-resourcemanager-hybridkubernetes/src/main/java/com/azure/resourcemanager/hybridkubernetes/implementation/ConnectedClustersClientImpl.java",
"license": "mit",
"size": 82942
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.polling.SyncPoller",
"com.azure.resourcemanager.hybridkubernetes.fluent.models.ConnectedClusterInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.hybridkubernetes.fluent.models.ConnectedClusterInner; | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.hybridkubernetes.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 402,684 |
public static Model readPom(String path, JarFile jar) throws AnalysisException {
final ZipEntry entry = jar.getEntry(path);
Model model = null;
if (entry != null) { //should never be null
//noinspection CaughtExceptionImmediatelyRethrown
try {
final Po... | static Model function(String path, JarFile jar) throws AnalysisException { final ZipEntry entry = jar.getEntry(path); Model model = null; if (entry != null) { try { final PomParser parser = new PomParser(); model = parser.parse(jar.getInputStream(entry)); if (model == null) { throw new AnalysisException(String.format(S... | /**
* Retrieves the specified POM from a jar file and converts it to a Model.
*
* @param path the path to the pom.xml file within the jar file
* @param jar the jar file to extract the pom from
* @return returns an object representation of the POM
* @throws AnalysisException is thrown if th... | Retrieves the specified POM from a jar file and converts it to a Model | readPom | {
"repo_name": "awhitford/DependencyCheck",
"path": "core/src/main/java/org/owasp/dependencycheck/xml/pom/PomUtils.java",
"license": "apache-2.0",
"size": 5473
} | [
"java.util.jar.JarFile",
"java.util.zip.ZipEntry",
"org.owasp.dependencycheck.analyzer.exception.AnalysisException"
] | import java.util.jar.JarFile; import java.util.zip.ZipEntry; import org.owasp.dependencycheck.analyzer.exception.AnalysisException; | import java.util.jar.*; import java.util.zip.*; import org.owasp.dependencycheck.analyzer.exception.*; | [
"java.util",
"org.owasp.dependencycheck"
] | java.util; org.owasp.dependencycheck; | 273,669 |
ByteOrder getByteOrder(); | ByteOrder getByteOrder(); | /**
* Returns the byte order with which data values will be read from
* this stream as an instance of the
* <code>java.nio.ByteOrder</code> enumeration.
*
* @return one of <code>ByteOrder.BIG_ENDIAN</code> or
* <code>ByteOrder.LITTLE_ENDIAN</code>, indicating which byte
* order is bei... | Returns the byte order with which data values will be read from this stream as an instance of the <code>java.nio.ByteOrder</code> enumeration | getByteOrder | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/javax/imageio/stream/ImageInputStream.java",
"license": "apache-2.0",
"size": 38898
} | [
"java.nio.ByteOrder"
] | import java.nio.ByteOrder; | import java.nio.*; | [
"java.nio"
] | java.nio; | 1,368,098 |
private boolean hasLight(byte specifiedLevel, int x, int y, int z) {
Block signBlock = BukkitUtil.toSign(getSign()).getBlock();
Block backBlock = signBlock.getRelative(SignUtil.getBack(signBlock));
byte lightLevel = backBlock.getRelative(x, y, z).getLightLevel();
return light... | boolean function(byte specifiedLevel, int x, int y, int z) { Block signBlock = BukkitUtil.toSign(getSign()).getBlock(); Block backBlock = signBlock.getRelative(SignUtil.getBack(signBlock)); byte lightLevel = backBlock.getRelative(x, y, z).getLightLevel(); return lightLevel >= specifiedLevel; } public static class Facto... | /**
* Returns true if the sign has a light level above the specified.
*
* @return
*/ | Returns true if the sign has a light level above the specified | hasLight | {
"repo_name": "wizjany/craftbook",
"path": "src/main/java/com/sk89q/craftbook/circuits/gates/world/sensors/LightSensor.java",
"license": "gpl-3.0",
"size": 3840
} | [
"com.sk89q.craftbook.bukkit.util.BukkitUtil",
"com.sk89q.craftbook.circuits.ic.AbstractICFactory",
"com.sk89q.craftbook.util.SignUtil",
"org.bukkit.Server",
"org.bukkit.block.Block"
] | import com.sk89q.craftbook.bukkit.util.BukkitUtil; import com.sk89q.craftbook.circuits.ic.AbstractICFactory; import com.sk89q.craftbook.util.SignUtil; import org.bukkit.Server; import org.bukkit.block.Block; | import com.sk89q.craftbook.bukkit.util.*; import com.sk89q.craftbook.circuits.ic.*; import com.sk89q.craftbook.util.*; import org.bukkit.*; import org.bukkit.block.*; | [
"com.sk89q.craftbook",
"org.bukkit",
"org.bukkit.block"
] | com.sk89q.craftbook; org.bukkit; org.bukkit.block; | 369,965 |
public void testSingleAppInfoElement() {
// create the data object
SDODataObject dataObject = (SDODataObject) dataFactory.create(sdoTypeType);
dataObject.set(NAME, MYDO);
dataObject.set(URI, MYURI);
// the following should cause an IllegalArgumentException
... | void function() { SDODataObject dataObject = (SDODataObject) dataFactory.create(sdoTypeType); dataObject.set(NAME, MYDO); dataObject.set(URI, MYURI); try { dataObject.set(SDOConstants.APPINFO_PROPERTY, aiElement); } catch (IllegalArgumentException iaex) { } catch (Exception x) { fail(STR + x.getMessage()); } } | /**
* Test error handling by setting a single Element as opposed to the
* expected List<Element>.
*
* Negative test.
*/ | Test error handling by setting a single Element as opposed to the expected List. Negative test | testSingleAppInfoElement | {
"repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs",
"path": "sdo/eclipselink.sdo.test/src/org/eclipse/persistence/testing/sdo/helper/typehelper/SDOTypeHelperAppInfoTestCases.java",
"license": "epl-1.0",
"size": 10928
} | [
"org.eclipse.persistence.sdo.SDOConstants",
"org.eclipse.persistence.sdo.SDODataObject"
] | import org.eclipse.persistence.sdo.SDOConstants; import org.eclipse.persistence.sdo.SDODataObject; | import org.eclipse.persistence.sdo.*; | [
"org.eclipse.persistence"
] | org.eclipse.persistence; | 1,968,107 |
@RequestMapping(method = RequestMethod.DELETE, value = "/{distributionSetTypeId}/"
+ MgmtRestConstants.DISTRIBUTIONSETTYPE_V1_OPTIONAL_MODULE_TYPES
+ "/{softwareModuleTypeId}", produces = { "application/hal+json", MediaType.APPLICATION_JSON_VALUE })
ResponseEntity<Void> removeOptionalMod... | @RequestMapping(method = RequestMethod.DELETE, value = STR + MgmtRestConstants.DISTRIBUTIONSETTYPE_V1_OPTIONAL_MODULE_TYPES + STR, produces = { STR, MediaType.APPLICATION_JSON_VALUE }) ResponseEntity<Void> removeOptionalModule(@PathVariable(STR) final Long distributionSetTypeId, @PathVariable(STR) final Long softwareMo... | /**
* Handles DELETE request for removing an optional module from the
* DistributionSetType.
*
* @param distributionSetTypeId
* of the DistributionSetType.
* @param softwareModuleTypeId
* of the SoftwareModuleType to remove
*
* @return OK if the request... | Handles DELETE request for removing an optional module from the DistributionSetType | removeOptionalModule | {
"repo_name": "StBurcher/hawkbit",
"path": "hawkbit-mgmt-api/src/main/java/org/eclipse/hawkbit/mgmt/rest/api/MgmtDistributionSetTypeRestApi.java",
"license": "epl-1.0",
"size": 12523
} | [
"org.springframework.http.MediaType",
"org.springframework.http.ResponseEntity",
"org.springframework.web.bind.annotation.PathVariable",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.RequestMethod"
] | import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; | import org.springframework.http.*; import org.springframework.web.bind.annotation.*; | [
"org.springframework.http",
"org.springframework.web"
] | org.springframework.http; org.springframework.web; | 959,819 |
public static com.netxforge.oss2.config.provisiond.RequisitionDef unmarshal(
final java.io.Reader reader)
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
return (com.netxforge.oss2.config.provisiond.RequisitionDef) Unmarshaller.unmarshal(com.netxfor... | static com.netxforge.oss2.config.provisiond.RequisitionDef function( final java.io.Reader reader) throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException { return (com.netxforge.oss2.config.provisiond.RequisitionDef) Unmarshaller.unmarshal(com.netxforge.oss2.config.provisiond.Requisitio... | /**
* Method unmarshal.
*
* @param reader
* @throws org.exolab.castor.xml.MarshalException if object is
* null or if any SAXException is thrown during marshaling
* @throws org.exolab.castor.xml.ValidationException if this
* object is an invalid instance according to the schema
*... | Method unmarshal | unmarshal | {
"repo_name": "dzonekl/oss2nms",
"path": "plugins/com.netxforge.oss2.config.model/src/com/netxforge/oss2/config/provisiond/RequisitionDef.java",
"license": "gpl-3.0",
"size": 7761
} | [
"org.exolab.castor.xml.Unmarshaller"
] | import org.exolab.castor.xml.Unmarshaller; | import org.exolab.castor.xml.*; | [
"org.exolab.castor"
] | org.exolab.castor; | 1,301,893 |
public static File[] listFiles(final File aDir, final FilenameFilter aFilter, final boolean aDeepListing)
throws FileNotFoundException {
return listFiles(aDir, aFilter, aDeepListing, (String[]) null);
} | static File[] function(final File aDir, final FilenameFilter aFilter, final boolean aDeepListing) throws FileNotFoundException { return listFiles(aDir, aFilter, aDeepListing, (String[]) null); } | /**
* An array of all the files in the supplied directory that match the supplied <code>FilenameFilter</code>.
*
* @param aDir A directory from which a file listing should be returned
* @param aFilter A file name filter which returned files should match
* @param aDeepListing Whether we should d... | An array of all the files in the supplied directory that match the supplied <code>FilenameFilter</code> | listFiles | {
"repo_name": "ksclarke/freelib-utils",
"path": "src/main/java/info/freelibrary/util/FileUtils.java",
"license": "lgpl-3.0",
"size": 22000
} | [
"java.io.File",
"java.io.FileNotFoundException",
"java.io.FilenameFilter"
] | import java.io.File; import java.io.FileNotFoundException; import java.io.FilenameFilter; | import java.io.*; | [
"java.io"
] | java.io; | 574,146 |
@Factory
public static Matcher<Double> closeTo(double operand, double error) {
return new IsCloseTo(operand, error);
} | static Matcher<Double> function(double operand, double error) { return new IsCloseTo(operand, error); } | /**
* Creates a matcher of {@link Double}s that matches when an examined double is equal
* to the specified <code>operand</code>, within a range of +/- <code>error</code>.
* <p/>
* For example:
* <pre>assertThat(1.03, is(closeTo(1.0, 0.03)))</pre>
*
* @param operand
* the ex... | Creates a matcher of <code>Double</code>s that matches when an examined double is equal to the specified <code>operand</code>, within a range of +/- <code>error</code>. For example: <code>assertThat(1.03, is(closeTo(1.0, 0.03)))</code> | closeTo | {
"repo_name": "jasonCarNormal0101/StockAdviser",
"path": "lib/hamcrest-1.3/hamcrest-library/src/main/java/org/hamcrest/number/IsCloseTo.java",
"license": "epl-1.0",
"size": 1841
} | [
"org.hamcrest.Matcher"
] | import org.hamcrest.Matcher; | import org.hamcrest.*; | [
"org.hamcrest"
] | org.hamcrest; | 1,238,082 |
static Map<ServerLocation, Object> submitBulkOp(List callableTasks,
ClientMetadataService cms,
LocalRegion region,
Map<ServerLocation, RuntimeException> failedServers) {
if (callableTasks != null && !callableTasks.isEmpty()) {
Map<ServerLocation, Object> resultMap = new HashMap<>();
... | static Map<ServerLocation, Object> submitBulkOp(List callableTasks, ClientMetadataService cms, LocalRegion region, Map<ServerLocation, RuntimeException> failedServers) { if (callableTasks != null && !callableTasks.isEmpty()) { Map<ServerLocation, Object> resultMap = new HashMap<>(); boolean anyPartialResults = false; L... | /**
* execute bulk op (putAll or removeAll) on multiple PR servers, returning a map of the results.
* Results are either a VersionedObjectList or a BulkOpPartialResultsException
*
* @return the per-server results
*/ | execute bulk op (putAll or removeAll) on multiple PR servers, returning a map of the results. Results are either a VersionedObjectList or a BulkOpPartialResultsException | submitBulkOp | {
"repo_name": "masaki-yamakawa/geode",
"path": "geode-core/src/main/java/org/apache/geode/cache/client/internal/SingleHopClientExecutor.java",
"license": "apache-2.0",
"size": 15839
} | [
"java.util.HashMap",
"java.util.Iterator",
"java.util.List",
"java.util.Map",
"java.util.concurrent.ExecutionException",
"java.util.concurrent.Future",
"org.apache.geode.InternalGemFireException",
"org.apache.geode.cache.client.ServerConnectivityException",
"org.apache.geode.cache.client.ServerOpera... | import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import org.apache.geode.InternalGemFireException; import org.apache.geode.cache.client.ServerConnectivityException; import org.apache.geod... | import java.util.*; import java.util.concurrent.*; import org.apache.geode.*; import org.apache.geode.cache.client.*; import org.apache.geode.distributed.internal.*; import org.apache.geode.internal.cache.*; import org.apache.geode.internal.cache.tier.sockets.*; | [
"java.util",
"org.apache.geode"
] | java.util; org.apache.geode; | 614,588 |
@Test(enabled = false)
public void forwardAnalysis() {
final MulticurveProviderInterface marketDsc = BEFORE_FIXING_1.getFirst();
final int jump = 1;
final int startIndex = 0;
final int nbDate = 2750;
ZonedDateTime startDate = ScheduleCalculator.getAdjustedDate(NOW, EUR_3M_EURIBOR_INDEX.getSpotLa... | @Test(enabled = false) void function() { final MulticurveProviderInterface marketDsc = BEFORE_FIXING_1.getFirst(); final int jump = 1; final int startIndex = 0; final int nbDate = 2750; ZonedDateTime startDate = ScheduleCalculator.getAdjustedDate(NOW, EUR_3M_EURIBOR_INDEX.getSpotLag() + startIndex * jump, TARGET); fina... | /**
* Analyzes the shape of the forward curve.
*/ | Analyzes the shape of the forward curve | forwardAnalysis | {
"repo_name": "McLeodMoores/starling",
"path": "projects/analytics/src/test/java/com/opengamma/analytics/financial/provider/curve/discounting/UsdEurDiscountingLiborXCcyTest.java",
"license": "apache-2.0",
"size": 61493
} | [
"com.opengamma.analytics.financial.provider.description.interestrate.MulticurveProviderInterface",
"com.opengamma.analytics.financial.schedule.ScheduleCalculator",
"com.opengamma.analytics.util.time.TimeCalculator",
"java.io.FileWriter",
"java.io.IOException",
"org.testng.annotations.Test",
"org.threete... | import com.opengamma.analytics.financial.provider.description.interestrate.MulticurveProviderInterface; import com.opengamma.analytics.financial.schedule.ScheduleCalculator; import com.opengamma.analytics.util.time.TimeCalculator; import java.io.FileWriter; import java.io.IOException; import org.testng.annotations.Test... | import com.opengamma.analytics.financial.provider.description.interestrate.*; import com.opengamma.analytics.financial.schedule.*; import com.opengamma.analytics.util.time.*; import java.io.*; import org.testng.annotations.*; import org.threeten.bp.*; | [
"com.opengamma.analytics",
"java.io",
"org.testng.annotations",
"org.threeten.bp"
] | com.opengamma.analytics; java.io; org.testng.annotations; org.threeten.bp; | 160,191 |
public void writeListEnd()
throws IOException
{
os.write('z');
} | void function() throws IOException { os.write('z'); } | /**
* Writes the tail of the list to the stream.
*/ | Writes the tail of the list to the stream | writeListEnd | {
"repo_name": "xien777/yajsw",
"path": "yajsw/hessian4/src/main/java/com/caucho/hessian4/io/HessianOutput.java",
"license": "lgpl-2.1",
"size": 20560
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,252,227 |
@ExceptionHandler(HttpMediaTypeNotSupportedException.class)
public ResponseEntity<?> handleHttpMediaTypeNotSupportedException(
HttpMediaTypeNotSupportedException ex) {
LOGGER.error(UNSUPPORTED_MEDIA_TYPE_MSG, ex);
return ResponseEntity.status(HttpStatus.UNSUPPORTED_MEDIA_TYPE).build(... | @ExceptionHandler(HttpMediaTypeNotSupportedException.class) ResponseEntity<?> function( HttpMediaTypeNotSupportedException ex) { LOGGER.error(UNSUPPORTED_MEDIA_TYPE_MSG, ex); return ResponseEntity.status(HttpStatus.UNSUPPORTED_MEDIA_TYPE).build(); } | /**
* Error handler for unsupported media types in REST api.
*
* @param ex exception
* @return error message
*/ | Error handler for unsupported media types in REST api | handleHttpMediaTypeNotSupportedException | {
"repo_name": "andifalk/spring-rest-docs-demo",
"path": "src/main/java/com/example/common/ErrorController.java",
"license": "mit",
"size": 3755
} | [
"org.springframework.http.HttpStatus",
"org.springframework.http.ResponseEntity",
"org.springframework.web.HttpMediaTypeNotSupportedException",
"org.springframework.web.bind.annotation.ExceptionHandler"
] | import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.HttpMediaTypeNotSupportedException; import org.springframework.web.bind.annotation.ExceptionHandler; | import org.springframework.http.*; import org.springframework.web.*; import org.springframework.web.bind.annotation.*; | [
"org.springframework.http",
"org.springframework.web"
] | org.springframework.http; org.springframework.web; | 2,764,283 |
//-----------------------------------------------------------------------
public final MetaProperty<ExternalId> indexConvention() {
return _indexConvention;
} | final MetaProperty<ExternalId> function() { return _indexConvention; } | /**
* The meta-property for the {@code indexConvention} property.
* @return the meta-property, not null
*/ | The meta-property for the indexConvention property | indexConvention | {
"repo_name": "DevStreet/FinanceAnalytics",
"path": "projects/OG-FinancialTypes/src/main/java/com/opengamma/financial/convention/InterestRateFutureConvention.java",
"license": "apache-2.0",
"size": 8343
} | [
"com.opengamma.id.ExternalId",
"org.joda.beans.MetaProperty"
] | import com.opengamma.id.ExternalId; import org.joda.beans.MetaProperty; | import com.opengamma.id.*; import org.joda.beans.*; | [
"com.opengamma.id",
"org.joda.beans"
] | com.opengamma.id; org.joda.beans; | 2,642,572 |
private void convertWhere(
final Blackboard bb,
final SqlNode where) {
if (where == null) {
return;
}
SqlNode newWhere = pushDownNotForIn(bb.scope, where);
replaceSubQueries(bb, newWhere, RelOptUtil.Logic.UNKNOWN_AS_FALSE);
final RexNode convertedWhere = bb.convertExpression(newW... | void function( final Blackboard bb, final SqlNode where) { if (where == null) { return; } SqlNode newWhere = pushDownNotForIn(bb.scope, where); replaceSubQueries(bb, newWhere, RelOptUtil.Logic.UNKNOWN_AS_FALSE); final RexNode convertedWhere = bb.convertExpression(newWhere); final RexNode convertedWhere2 = RexUtil.remov... | /**
* Converts a WHERE clause.
*
* @param bb Blackboard
* @param where WHERE clause, may be null
*/ | Converts a WHERE clause | convertWhere | {
"repo_name": "vlsi/calcite",
"path": "core/src/main/java/org/apache/calcite/sql2rel/SqlToRelConverter.java",
"license": "apache-2.0",
"size": 215926
} | [
"com.google.common.collect.ImmutableSet",
"org.apache.calcite.plan.RelOptUtil",
"org.apache.calcite.rel.RelNode",
"org.apache.calcite.rel.core.Filter",
"org.apache.calcite.rel.core.RelFactories",
"org.apache.calcite.rel.logical.LogicalFilter",
"org.apache.calcite.rex.RexNode",
"org.apache.calcite.rex.... | import com.google.common.collect.ImmutableSet; import org.apache.calcite.plan.RelOptUtil; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.core.Filter; import org.apache.calcite.rel.core.RelFactories; import org.apache.calcite.rel.logical.LogicalFilter; import org.apache.calcite.rex.RexNode; import ... | import com.google.common.collect.*; import org.apache.calcite.plan.*; import org.apache.calcite.rel.*; import org.apache.calcite.rel.core.*; import org.apache.calcite.rel.logical.*; import org.apache.calcite.rex.*; import org.apache.calcite.sql.*; | [
"com.google.common",
"org.apache.calcite"
] | com.google.common; org.apache.calcite; | 1,565,289 |
public Failure mapItems(Function<FailureItem, FailureItem> function) {
return new Failure(reason, message, items.stream().map(function).collect(toImmutableSet()));
} | Failure function(Function<FailureItem, FailureItem> function) { return new Failure(reason, message, items.stream().map(function).collect(toImmutableSet())); } | /**
* Processes the failure by applying a function that alters the items.
* <p>
* This operation allows wrapping a failure item with additional information that may have not been available
* to the code that created the original failure.
*
* @param function the function to transform the failure items... | Processes the failure by applying a function that alters the items. This operation allows wrapping a failure item with additional information that may have not been available to the code that created the original failure | mapItems | {
"repo_name": "OpenGamma/Strata",
"path": "modules/collect/src/main/java/com/opengamma/strata/collect/result/Failure.java",
"license": "apache-2.0",
"size": 16684
} | [
"java.util.function.Function"
] | import java.util.function.Function; | import java.util.function.*; | [
"java.util"
] | java.util; | 215,580 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.