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
protected void copyDefaultCheckProperties(Check destCheck, Annotation annotation) { Integer severity = (Integer) ReflectUtil.readAnnotationValue(annotation, ANN_SEVERITY); destCheck.setSeverity(severity.intValue()); String[] profiles = (String[]) ReflectUtil.readAnnotationValue(annotation, ANN_PROFILES); ...
void function(Check destCheck, Annotation annotation) { Integer severity = (Integer) ReflectUtil.readAnnotationValue(annotation, ANN_SEVERITY); destCheck.setSeverity(severity.intValue()); String[] profiles = (String[]) ReflectUtil.readAnnotationValue(annotation, ANN_PROFILES); destCheck.setProfiles(profiles); }
/** * Copies default properties from annotation to the check. */
Copies default properties from annotation to the check
copyDefaultCheckProperties
{ "repo_name": "007slm/jodd", "path": "jodd-vtor/src/main/java/jodd/vtor/ValidationContext.java", "license": "bsd-3-clause", "size": 4594 }
[ "java.lang.annotation.Annotation" ]
import java.lang.annotation.Annotation;
import java.lang.annotation.*;
[ "java.lang" ]
java.lang;
1,173,015
public ResultMirror getOutput(FlowElementPortDescription port) { Precondition.checkMustNotBeNull(port, "port"); //$NON-NLS-1$ Expression result = outputs.get(port); if (result == null) { throw new IllegalArgumentException(); } return ne...
ResultMirror function(FlowElementPortDescription port) { Precondition.checkMustNotBeNull(port, "port"); Expression result = outputs.get(port); if (result == null) { throw new IllegalArgumentException(); } return new ResultMirror(factory, result); } }
/** * Returns the mirror of {@link Result} object for the target output port. * @param port the target output port * @return the corresponded output port * @throws IllegalArgumentException if there is no such a corresponding a {@link Result} mirror */
Returns the mirror of <code>Result</code> object for the target output port
getOutput
{ "repo_name": "asakusafw/asakusafw-mapreduce", "path": "compiler/core/src/main/java/com/asakusafw/compiler/flow/LineEndProcessor.java", "license": "apache-2.0", "size": 4151 }
[ "com.asakusafw.compiler.common.Precondition", "com.asakusafw.utils.java.model.syntax.Expression", "com.asakusafw.vocabulary.flow.graph.FlowElementPortDescription" ]
import com.asakusafw.compiler.common.Precondition; import com.asakusafw.utils.java.model.syntax.Expression; import com.asakusafw.vocabulary.flow.graph.FlowElementPortDescription;
import com.asakusafw.compiler.common.*; import com.asakusafw.utils.java.model.syntax.*; import com.asakusafw.vocabulary.flow.graph.*;
[ "com.asakusafw.compiler", "com.asakusafw.utils", "com.asakusafw.vocabulary" ]
com.asakusafw.compiler; com.asakusafw.utils; com.asakusafw.vocabulary;
2,176,531
public ReservationDescription runInstances(String imageId, int minCount, int maxCount, List<String> groupSet, String userData, String keyName, boolean publicAddr) throws EC2Exception { return runInstances(imageId, minCount, maxCount, groupSet, userData, keyName, publicAddr, InstanceType.DEFAULT); }
ReservationDescription function(String imageId, int minCount, int maxCount, List<String> groupSet, String userData, String keyName, boolean publicAddr) throws EC2Exception { return runInstances(imageId, minCount, maxCount, groupSet, userData, keyName, publicAddr, InstanceType.DEFAULT); }
/** * Requests reservation of a number of instances. * <p> * This will begin launching those instances for which a reservation was * successfully obtained. * <p> * If less than <code>minCount</code> instances are available no instances * will be reserved. * NOTE: this method defaults to the small(tradit...
Requests reservation of a number of instances. This will begin launching those instances for which a reservation was successfully obtained. If less than <code>minCount</code> instances are available no instances will be reserved
runInstances
{ "repo_name": "jonnyzzz/maragogype", "path": "tags/v1.7.1/java/com/xerox/amazonws/ec2/Jec2.java", "license": "apache-2.0", "size": 97555 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,364,585
@GET @Path("/2.0/repositories/{owner}/{repo_slug}/pullrequests/{id}/comments") @Produces(MediaType.APPLICATION_JSON) public Response getPullRequestComments( @PathParam("owner") String owner, @PathParam("repo_slug") String repoSlug, @PathParam("id") Long id);
@Path(STR) @Produces(MediaType.APPLICATION_JSON) Response function( @PathParam("owner") String owner, @PathParam(STR) String repoSlug, @PathParam("id") Long id);
/** * GET https://api.bitbucket.org/2.0/repositories/{owner}/{repo_slug}/pullrequests/{1}/commits * @return com.wirelust.bitbucket.client.representations.CommentList */
GET HREF{owner}/{repo_slug}/pullrequests/{1}/commits
getPullRequestComments
{ "repo_name": "teacurran/wirelust-bitbucket-api", "path": "client/src/main/java/com/wirelust/bitbucket/client/BitbucketV2Client.java", "license": "mit", "size": 12941 }
[ "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response" ]
import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response;
import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
800,080
public static void execute(ActionRedirect anAction, SieveMailAdapter aMail, MailetContext aMailetContext) throws MessagingException { try { detectAndHandleLocalLooping(aMail, anAction.getAddress()); aMailetContext.sendMail(aMail.getSoleRecipient(), new String[] { anAction.getAddress() }, aMail.get...
static void function(ActionRedirect anAction, SieveMailAdapter aMail, MailetContext aMailetContext) throws MessagingException { try { detectAndHandleLocalLooping(aMail, anAction.getAddress()); aMailetContext.sendMail(aMail.getSoleRecipient(), new String[] { anAction.getAddress() }, aMail.getMessage()); } catch (IOExcep...
/** * Method execute executes the passed ActionRedirect. * * @param anAction * @param aMail * @param aMailetContext * @throws MessagingException */
Method execute executes the passed ActionRedirect
execute
{ "repo_name": "svn2github/hwmail-mirror", "path": "hedwig-server/src/main/java/com/hs/mail/sieve/Actions.java", "license": "apache-2.0", "size": 5783 }
[ "com.hs.mail.mailet.MailetContext", "java.io.IOException", "javax.mail.MessagingException", "org.apache.jsieve.mail.ActionRedirect" ]
import com.hs.mail.mailet.MailetContext; import java.io.IOException; import javax.mail.MessagingException; import org.apache.jsieve.mail.ActionRedirect;
import com.hs.mail.mailet.*; import java.io.*; import javax.mail.*; import org.apache.jsieve.mail.*;
[ "com.hs.mail", "java.io", "javax.mail", "org.apache.jsieve" ]
com.hs.mail; java.io; javax.mail; org.apache.jsieve;
1,840,970
@CheckReturnValue public UnsignedLong minus(UnsignedLong val) { return fromLongBits(this.value - checkNotNull(val).value); }
UnsignedLong function(UnsignedLong val) { return fromLongBits(this.value - checkNotNull(val).value); }
/** * Returns the result of subtracting this and {@code val}. If the result would have more than 64 * bits, returns the low 64 bits of the result. * * @since 14.0 */
Returns the result of subtracting this and val. If the result would have more than 64 bits, returns the low 64 bits of the result
minus
{ "repo_name": "ben-manes/guava", "path": "guava/src/com/google/common/primitives/UnsignedLong.java", "license": "apache-2.0", "size": 8497 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,723,704
public Path resolveBaseCustomLocation(IndexSettings indexSettings) { String customDataDir = indexSettings.customDataPath(); if (customDataDir != null) { // This assert is because this should be caught by MetaDataCreateIndexService assert sharedDataPath != null; if...
Path function(IndexSettings indexSettings) { String customDataDir = indexSettings.customDataPath(); if (customDataDir != null) { assert sharedDataPath != null; if (addNodeId) { return sharedDataPath.resolve(customDataDir).resolve(Integer.toString(this.localNodeId)); } else { return sharedDataPath.resolve(customDataDir)...
/** * Resolve the custom path for a index's shard. * Uses the {@code IndexMetaData.SETTING_DATA_PATH} setting to determine * the root path for the index. * * @param indexSettings settings for the index */
Resolve the custom path for a index's shard. Uses the IndexMetaData.SETTING_DATA_PATH setting to determine the root path for the index
resolveBaseCustomLocation
{ "repo_name": "camilojd/elasticsearch", "path": "core/src/main/java/org/elasticsearch/env/NodeEnvironment.java", "license": "apache-2.0", "size": 41607 }
[ "java.nio.file.Path", "org.elasticsearch.cluster.metadata.IndexMetaData", "org.elasticsearch.index.IndexSettings" ]
import java.nio.file.Path; import org.elasticsearch.cluster.metadata.IndexMetaData; import org.elasticsearch.index.IndexSettings;
import java.nio.file.*; import org.elasticsearch.cluster.metadata.*; import org.elasticsearch.index.*;
[ "java.nio", "org.elasticsearch.cluster", "org.elasticsearch.index" ]
java.nio; org.elasticsearch.cluster; org.elasticsearch.index;
1,332,848
private List<CassiniObservation> loadInventoryTable(String tableFilePath) throws DataSetProcessingException { List<CassiniObservation> rows = new ArrayList<CassiniObservation>(); try { List<String> lines = Helper.readFileLines(new FileInputStream(tableFilePath)); int rowCount...
List<CassiniObservation> function(String tableFilePath) throws DataSetProcessingException { List<CassiniObservation> rows = new ArrayList<CassiniObservation>(); try { List<String> lines = Helper.readFileLines(new FileInputStream(tableFilePath)); int rowCount = 0; for (String line : lines) { List<String> values = Helper...
/** * Loads inventory table data. * * @param tableFilePath * the absolute path to inventory table * @return the list of {@code InventoryTableRow} instances * * @throws DataSetProcessingException * if failed to load table data */
Loads inventory table data
loadInventoryTable
{ "repo_name": "Small-Bodies-Node/ntl_archive_db_demo", "path": "import_and_persistence/src/java/main/gov/nasa/pds/processors/impl/profile/cassini/CassiniProfile.java", "license": "bsd-3-clause", "size": 26337 }
[ "gov.nasa.pds.processors.impl.Helper", "gov.nasa.pds.services.DataSetProcessingException", "java.io.FileInputStream", "java.io.IOException", "java.util.ArrayList", "java.util.List" ]
import gov.nasa.pds.processors.impl.Helper; import gov.nasa.pds.services.DataSetProcessingException; import java.io.FileInputStream; import java.io.IOException; import java.util.ArrayList; import java.util.List;
import gov.nasa.pds.processors.impl.*; import gov.nasa.pds.services.*; import java.io.*; import java.util.*;
[ "gov.nasa.pds", "java.io", "java.util" ]
gov.nasa.pds; java.io; java.util;
396,636
private Cell reckonIncrement(final Cell delta, final long deltaAmount, final Cell currentValue, byte [] columnFamily, final long now, Mutation mutation) throws IOException { // Forward any tags found on the delta. List<Tag> tags = TagUtil.carryForwardTags(delta); long newValue = deltaAmount; l...
Cell function(final Cell delta, final long deltaAmount, final Cell currentValue, byte [] columnFamily, final long now, Mutation mutation) throws IOException { List<Tag> tags = TagUtil.carryForwardTags(delta); long newValue = deltaAmount; long ts = now; if (currentValue != null) { tags = TagUtil.carryForwardTags(tags, c...
/** * Calculate new Increment Cell. * @return New Increment Cell with delta applied to currentValue if currentValue is not null; * otherwise, a new Cell with the delta set as its value. */
Calculate new Increment Cell
reckonIncrement
{ "repo_name": "gustavoanatoly/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegion.java", "license": "apache-2.0", "size": 328407 }
[ "java.io.IOException", "java.util.List", "org.apache.hadoop.hbase.Cell", "org.apache.hadoop.hbase.KeyValue", "org.apache.hadoop.hbase.Tag", "org.apache.hadoop.hbase.TagUtil", "org.apache.hadoop.hbase.client.Mutation", "org.apache.hadoop.hbase.client.Put", "org.apache.hadoop.hbase.util.Bytes" ]
import java.io.IOException; import java.util.List; import org.apache.hadoop.hbase.Cell; import org.apache.hadoop.hbase.KeyValue; import org.apache.hadoop.hbase.Tag; import org.apache.hadoop.hbase.TagUtil; import org.apache.hadoop.hbase.client.Mutation; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop...
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,503,291
public static List<DecoratedConference> getConferences() throws ConferenceException, IOException { if (null == sApiServiceHandler) { Log.e(TAG, "getConferences(): no service handler was built"); throw new ConferenceException(); } com.appspot.booming_order...
static List<DecoratedConference> function() throws ConferenceException, IOException { if (null == sApiServiceHandler) { Log.e(TAG, STR); throw new ConferenceException(); } com.appspot.booming_order_708.conference.Conference.QueryConferences queryConferences = sApiServiceHandler.queryConferences(null); ConferenceCollect...
/** * Returns a list of {@link com.udacity.devrel.training.conference.android.utils.DecoratedConference}s. * This list includes information about what {@link com.appspot.booming_order_708.conference.model.Conference}s * user has registered for. * * @return * @throws ConferenceException ...
Returns a list of <code>com.udacity.devrel.training.conference.android.utils.DecoratedConference</code>s. This list includes information about what <code>com.appspot.booming_order_708.conference.model.Conference</code>s user has registered for
getConferences
{ "repo_name": "Winghin2517/ConferenceCentralAndroidApp", "path": "app/src/main/java/com/udacity/devrel/training/conference/android/utils/ConferenceUtils.java", "license": "apache-2.0", "size": 7785 }
[ "android.util.Log", "com.appspot.booming_order_708.conference.model.Conference", "com.appspot.booming_order_708.conference.model.ConferenceCollection", "com.appspot.booming_order_708.conference.model.Profile", "java.io.IOException", "java.util.ArrayList", "java.util.List" ]
import android.util.Log; import com.appspot.booming_order_708.conference.model.Conference; import com.appspot.booming_order_708.conference.model.ConferenceCollection; import com.appspot.booming_order_708.conference.model.Profile; import java.io.IOException; import java.util.ArrayList; import java.util.List;
import android.util.*; import com.appspot.booming_order_708.conference.model.*; import java.io.*; import java.util.*;
[ "android.util", "com.appspot.booming_order_708", "java.io", "java.util" ]
android.util; com.appspot.booming_order_708; java.io; java.util;
464,320
private void scanForAnnotatedFragmentClasses(RoundEnvironment env, Class<? extends Annotation> annotationClass, Set<TypeElement> fragmentClasses, Element element) throws ProcessingException { if (e...
void function(RoundEnvironment env, Class<? extends Annotation> annotationClass, Set<TypeElement> fragmentClasses, Element element) throws ProcessingException { if (element.getKind() != ElementKind.CLASS) { throw new ProcessingException(element, STR, annotationClass.getSimpleName()); } TypeElement classElement = (TypeE...
/** * Scans a fragment for a given {@link FragmentWithArgs} annotation * * @param env The round environment * @param annotationClass The annotation (.class) to scan for * @param fragmentClasses The set of classes already scanned (containing annotations) * @throws ProcessingExce...
Scans a fragment for a given <code>FragmentWithArgs</code> annotation
scanForAnnotatedFragmentClasses
{ "repo_name": "sockeqwe/fragmentargs", "path": "processor/src/main/java/com/hannesdorfmann/fragmentargs/processor/ArgProcessor.java", "license": "apache-2.0", "size": 43479 }
[ "java.lang.annotation.Annotation", "java.util.Set", "javax.annotation.processing.RoundEnvironment", "javax.lang.model.element.Element", "javax.lang.model.element.ElementKind", "javax.lang.model.element.Modifier", "javax.lang.model.element.TypeElement" ]
import java.lang.annotation.Annotation; import java.util.Set; import javax.annotation.processing.RoundEnvironment; import javax.lang.model.element.Element; import javax.lang.model.element.ElementKind; import javax.lang.model.element.Modifier; import javax.lang.model.element.TypeElement;
import java.lang.annotation.*; import java.util.*; import javax.annotation.processing.*; import javax.lang.model.element.*;
[ "java.lang", "java.util", "javax.annotation", "javax.lang" ]
java.lang; java.util; javax.annotation; javax.lang;
2,402,498
public EClass getRuleMetaclass();
EClass function();
/** * Returns the metaclass of the rule that contains the expected element. */
Returns the metaclass of the rule that contains the expected element
getRuleMetaclass
{ "repo_name": "HyVar/DarwinSPL", "path": "plugins/eu.hyvar.feature.constraint.resource.hyconstraints/src-gen/eu/hyvar/feature/constraint/resource/hyconstraints/IHyconstraintsExpectedElement.java", "license": "apache-2.0", "size": 1531 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,835,014
public Event toEntity() { Event entity = new Event(); entity.id = id; entity.name = name.getText().toString(); entity.date = date.getText().toString(); entity.memo = memo.getText().toString(); entity.textColor = textColor; entity.backgroundColor = background...
Event function() { Event entity = new Event(); entity.id = id; entity.name = name.getText().toString(); entity.date = date.getText().toString(); entity.memo = memo.getText().toString(); entity.textColor = textColor; entity.backgroundColor = backgroundColor; return entity; }
/** * * To Entity * * <p> * Overview:<br> * Convert DTO to entity object. * </p> * * @return {@link Event} Object */
To Entity Overview: Convert DTO to entity object.
toEntity
{ "repo_name": "manavista/LessonManager", "path": "app/src/main/java/jp/manavista/lessonmanager/model/dto/EventDto.java", "license": "apache-2.0", "size": 2987 }
[ "jp.manavista.lessonmanager.model.entity.Event" ]
import jp.manavista.lessonmanager.model.entity.Event;
import jp.manavista.lessonmanager.model.entity.*;
[ "jp.manavista.lessonmanager" ]
jp.manavista.lessonmanager;
1,505,350
public static ThreadFactory getNamedThreadFactory(final String prefix) { SecurityManager s = System.getSecurityManager(); final ThreadGroup threadGroup = (s != null) ? s.getThreadGroup() : Thread.currentThread() .getThreadGroup(); return new ThreadFactory() { final AtomicInteger threadNumbe...
static ThreadFactory function(final String prefix) { SecurityManager s = System.getSecurityManager(); final ThreadGroup threadGroup = (s != null) ? s.getThreadGroup() : Thread.currentThread() .getThreadGroup(); return new ThreadFactory() { final AtomicInteger threadNumber = new AtomicInteger(1); private final int poolN...
/** * Returns a {@link java.util.concurrent.ThreadFactory} that names each created thread uniquely, * with a common prefix. * @param prefix The prefix of every created Thread's name * @return a {@link java.util.concurrent.ThreadFactory} that names threads */
Returns a <code>java.util.concurrent.ThreadFactory</code> that names each created thread uniquely, with a common prefix
getNamedThreadFactory
{ "repo_name": "juwi/hbase", "path": "hbase-common/src/main/java/org/apache/hadoop/hbase/util/Threads.java", "license": "apache-2.0", "size": 11589 }
[ "java.util.concurrent.ThreadFactory", "java.util.concurrent.atomic.AtomicInteger" ]
import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.*; import java.util.concurrent.atomic.*;
[ "java.util" ]
java.util;
732,704
public Map<String,List<String>> getRequestProperties() { return jarFileURLConnection.getRequestProperties(); }
Map<String,List<String>> function() { return jarFileURLConnection.getRequestProperties(); }
/** * Returns an unmodifiable Map of general request * properties for this connection. The Map keys * are Strings that represent the request-header * field names. Each Map value is a unmodifiable List * of Strings that represents the corresponding * field values. * * @return a M...
Returns an unmodifiable Map of general request properties for this connection. The Map keys are Strings that represent the request-header field names. Each Map value is a unmodifiable List of Strings that represents the corresponding field values
getRequestProperties
{ "repo_name": "google/desugar_jdk_libs", "path": "jdk11/src/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/JarURLConnection.java", "license": "gpl-2.0", "size": 12744 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,051,176
@Element( name = "CLOSINGAVAIL", required = true, order = 20) public Boolean getClosingAvail() { return closingAvail; }
@Element( name = STR, required = true, order = 20) Boolean function() { return closingAvail; }
/** * Closing statement information available * @return Boolean */
Closing statement information available
getClosingAvail
{ "repo_name": "stoicflame/ofx4j", "path": "src/main/java/com/webcohesion/ofx4j/domain/data/profile/info/CreditCardV1MessageSetInfo.java", "license": "apache-2.0", "size": 2008 }
[ "com.webcohesion.ofx4j.meta.Element" ]
import com.webcohesion.ofx4j.meta.Element;
import com.webcohesion.ofx4j.meta.*;
[ "com.webcohesion.ofx4j" ]
com.webcohesion.ofx4j;
1,663,771
@ServiceMethod(returns = ReturnType.SINGLE) Response<PrivateEndpointConnectionInner> putWithResponse( String resourceGroupName, String accountName, String privateEndpointConnectionName, PrivateEndpointConnectionInner properties, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<PrivateEndpointConnectionInner> putWithResponse( String resourceGroupName, String accountName, String privateEndpointConnectionName, PrivateEndpointConnectionInner properties, Context context);
/** * Update the state of specified private endpoint connection associated with the storage account. * * @param resourceGroupName The name of the resource group within the user's subscription. The name is case * insensitive. * @param accountName The name of the storage account within the sp...
Update the state of specified private endpoint connection associated with the storage account
putWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-storage/src/main/java/com/azure/resourcemanager/storage/fluent/PrivateEndpointConnectionsClient.java", "license": "mit", "size": 19182 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.storage.fluent.models.PrivateEndpointConnectionInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.storage.fluent.models.PrivateEndpointConnectionInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.storage.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,440,240
public static GraknTxOperationException invalidResourceValue(Object object, AttributeType.DataType dataType){ return new GraknTxOperationException(ErrorMessage.INVALID_DATATYPE.getMessage(object, dataType.getVertexProperty().getDataType().getName())); }
static GraknTxOperationException function(Object object, AttributeType.DataType dataType){ return new GraknTxOperationException(ErrorMessage.INVALID_DATATYPE.getMessage(object, dataType.getVertexProperty().getDataType().getName())); }
/** * Thrown when creating a resource whose value {@code object} does not match it's resource's {@code dataType}. */
Thrown when creating a resource whose value object does not match it's resource's dataType
invalidResourceValue
{ "repo_name": "burukuru/grakn", "path": "grakn-core/src/main/java/ai/grakn/exception/GraknTxOperationException.java", "license": "gpl-3.0", "size": 13833 }
[ "ai.grakn.concept.AttributeType", "ai.grakn.util.ErrorMessage" ]
import ai.grakn.concept.AttributeType; import ai.grakn.util.ErrorMessage;
import ai.grakn.concept.*; import ai.grakn.util.*;
[ "ai.grakn.concept", "ai.grakn.util" ]
ai.grakn.concept; ai.grakn.util;
140,621
public static void init() throws IOException { Charset charset = Charset.forName("UTF-8"); ObjectStream<String> lineStream = new PlainTextByLineStream(new FileInputStream(trainingDataFilePath), charset); ObjectStream<NameSample> sampleStream = new NameSampleDataStream(lineStream); Ou...
static void function() throws IOException { Charset charset = Charset.forName("UTF-8"); ObjectStream<String> lineStream = new PlainTextByLineStream(new FileInputStream(trainingDataFilePath), charset); ObjectStream<NameSample> sampleStream = new NameSampleDataStream(lineStream); OutputStream modelOut = null; TokenNameFi...
/** * We are storing all training data in a single text file and training data * should be in the following format. * * category_of_data1 data1 category_of_data2 data2 category_of_dataN dataN * * @throws java.io.IOException */
We are storing all training data in a single text file and training data should be in the following format. category_of_data1 data1 category_of_data2 data2 category_of_dataN dataN
init
{ "repo_name": "kislayverma/jest-tube", "path": "text-classifier/src/main/java/com/github/kislayverma/textclassifier/model/OrderIdExtractionModel.java", "license": "mit", "size": 4784 }
[ "java.io.BufferedOutputStream", "java.io.FileInputStream", "java.io.FileOutputStream", "java.io.IOException", "java.io.OutputStream", "java.nio.charset.Charset" ]
import java.io.BufferedOutputStream; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; import java.nio.charset.Charset;
import java.io.*; import java.nio.charset.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,159,583
public static boolean isText(ByteBuf buf, Charset charset) { return isText(buf, buf.readerIndex(), buf.readableBytes(), charset); } /** * Returns {@code true} if the specified {@link ByteBuf} starting at {@code index} with {@code length} is valid * text using the given {@link Charset}, ot...
static boolean function(ByteBuf buf, Charset charset) { return isText(buf, buf.readerIndex(), buf.readableBytes(), charset); } /** * Returns {@code true} if the specified {@link ByteBuf} starting at {@code index} with {@code length} is valid * text using the given {@link Charset}, otherwise return {@code false}. * * @p...
/** * Returns {@code true} if the given {@link ByteBuf} is valid text using the given {@link Charset}, * otherwise return {@code false}. * * @param buf The given {@link ByteBuf}. * @param charset The specified {@link Charset}. */
Returns true if the given <code>ByteBuf</code> is valid text using the given <code>Charset</code>, otherwise return false
isText
{ "repo_name": "fenik17/netty", "path": "buffer/src/main/java/io/netty/buffer/ByteBufUtil.java", "license": "apache-2.0", "size": 70306 }
[ "java.nio.charset.Charset" ]
import java.nio.charset.Charset;
import java.nio.charset.*;
[ "java.nio" ]
java.nio;
1,262,902
public gr.open.marketplace.model.AdminIPValidationData deleteAdminIPValidationData( gr.open.marketplace.model.AdminIPValidationData adminIPValidationData) throws com.liferay.portal.kernel.exception.SystemException;
gr.open.marketplace.model.AdminIPValidationData function( gr.open.marketplace.model.AdminIPValidationData adminIPValidationData) throws com.liferay.portal.kernel.exception.SystemException;
/** * Deletes the admin i p validation data from the database. Also notifies the appropriate model listeners. * * @param adminIPValidationData the admin i p validation data * @return the admin i p validation data that was removed * @throws SystemException if a system exception occurred */
Deletes the admin i p validation data from the database. Also notifies the appropriate model listeners
deleteAdminIPValidationData
{ "repo_name": "technopolis/role-access-lists", "path": "portlet/docroot/WEB-INF/service/gr/open/marketplace/service/AdminIPValidationDataLocalService.java", "license": "lgpl-3.0", "size": 13272 }
[ "com.liferay.portal.kernel.exception.SystemException" ]
import com.liferay.portal.kernel.exception.SystemException;
import com.liferay.portal.kernel.exception.*;
[ "com.liferay.portal" ]
com.liferay.portal;
1,404,708
public static void getXKCDForToday(final XKCDListener listener) { new AsyncTask<Void, Void, XKCDResponse>() {
static void function(final XKCDListener listener) { new AsyncTask<Void, Void, XKCDResponse>() {
/** * The getXKCDForToday method fetches the the latest XKCD comic * @param listener XKCD listener object */
The getXKCDForToday method fetches the the latest XKCD comic
getXKCDForToday
{ "repo_name": "lilyheart/HomeMirror", "path": "app/src/main/java/com/morristaedt/mirror/modules/XKCDModule.java", "license": "apache-2.0", "size": 2445 }
[ "android.os.AsyncTask", "com.morristaedt.mirror.requests.XKCDResponse" ]
import android.os.AsyncTask; import com.morristaedt.mirror.requests.XKCDResponse;
import android.os.*; import com.morristaedt.mirror.requests.*;
[ "android.os", "com.morristaedt.mirror" ]
android.os; com.morristaedt.mirror;
1,255,444
void removeStatisticsForVds(Guid id);
void removeStatisticsForVds(Guid id);
/** * Removes the specified statistics. * * @param id * the statistics */
Removes the specified statistics
removeStatisticsForVds
{ "repo_name": "jtux270/translate", "path": "ovirt/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/network/InterfaceDao.java", "license": "gpl-3.0", "size": 6209 }
[ "org.ovirt.engine.core.compat.Guid" ]
import org.ovirt.engine.core.compat.Guid;
import org.ovirt.engine.core.compat.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
2,319,359
public IndexCommit acquireIndexCommit(boolean flushFirst) throws EngineException { IndexShardState state = this.state; // one time volatile read // we allow snapshot on closed index shard, since we want to do one after we close the shard and before we close the engine if (state == IndexShard...
IndexCommit function(boolean flushFirst) throws EngineException { IndexShardState state = this.state; if (state == IndexShardState.STARTED state == IndexShardState.RELOCATED state == IndexShardState.CLOSED) { return getEngine().acquireIndexCommit(flushFirst); } else { throw new IllegalIndexShardStateException(shardId, ...
/** * Creates a new {@link IndexCommit} snapshot form the currently running engine. All resources referenced by this * commit won't be freed until the commit / snapshot is released via {@link #releaseIndexCommit(IndexCommit)}. * * @param flushFirst <code>true</code> if the index should first be flus...
Creates a new <code>IndexCommit</code> snapshot form the currently running engine. All resources referenced by this commit won't be freed until the commit / snapshot is released via <code>#releaseIndexCommit(IndexCommit)</code>
acquireIndexCommit
{ "repo_name": "JervyShi/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "license": "apache-2.0", "size": 86664 }
[ "org.apache.lucene.index.IndexCommit", "org.elasticsearch.index.engine.EngineException" ]
import org.apache.lucene.index.IndexCommit; import org.elasticsearch.index.engine.EngineException;
import org.apache.lucene.index.*; import org.elasticsearch.index.engine.*;
[ "org.apache.lucene", "org.elasticsearch.index" ]
org.apache.lucene; org.elasticsearch.index;
975,165
public ServiceResponse<Void> getSwaggerLocalValid() throws ErrorException, IOException { final String apiVersion = "2.0"; Call<ResponseBody> call = service.getSwaggerLocalValid(apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return getSwaggerLocalValidDelegate(call.execut...
ServiceResponse<Void> function() throws ErrorException, IOException { final String apiVersion = "2.0"; Call<ResponseBody> call = service.getSwaggerLocalValid(apiVersion, this.client.acceptLanguage(), this.client.userAgent()); return getSwaggerLocalValidDelegate(call.execute()); }
/** * Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the {@link ServiceResponse} object if successful. ...
Get method with api-version modeled in the method. pass in api-version = '2.0' to succeed
getSwaggerLocalValid
{ "repo_name": "John-Hart/autorest", "path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/azurespecials/implementation/ApiVersionLocalsImpl.java", "license": "mit", "size": 15046 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException;
import com.microsoft.rest.*; import java.io.*;
[ "com.microsoft.rest", "java.io" ]
com.microsoft.rest; java.io;
1,887,206
public Enumeration getAttributeNames() { return pageContext.getAttributeNamesInScope(PageContext.PAGE_SCOPE); }
Enumeration function() { return pageContext.getAttributeNamesInScope(PageContext.PAGE_SCOPE); }
/** * Returns attributes of the pageContext declared in the "page" scope. * @return Enumeration of attribute names */
Returns attributes of the pageContext declared in the "page" scope
getAttributeNames
{ "repo_name": "SoffidIAM/jxpath", "path": "src/java/es/caib/zkib/jxpath/servlet/PageScopeContext.java", "license": "apache-2.0", "size": 2298 }
[ "java.util.Enumeration", "javax.servlet.jsp.PageContext" ]
import java.util.Enumeration; import javax.servlet.jsp.PageContext;
import java.util.*; import javax.servlet.jsp.*;
[ "java.util", "javax.servlet" ]
java.util; javax.servlet;
56,139
FragmentStatus getStatus(final FragmentState state) { return getStatus(state, null); }
FragmentStatus getStatus(final FragmentState state) { return getStatus(state, null); }
/** * Returns a {@link FragmentStatus} with the given state. {@link FragmentStatus} has additional information like * metrics, etc. that is gathered from the {@link ExecutorFragmentContext}. * * @param state the state to include in the status * @return the status */
Returns a <code>FragmentStatus</code> with the given state. <code>FragmentStatus</code> has additional information like metrics, etc. that is gathered from the <code>ExecutorFragmentContext</code>
getStatus
{ "repo_name": "pwong-mapr/incubator-drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/work/fragment/FragmentStatusReporter.java", "license": "apache-2.0", "size": 5823 }
[ "org.apache.drill.exec.proto.BitControl", "org.apache.drill.exec.proto.UserBitShared" ]
import org.apache.drill.exec.proto.BitControl; import org.apache.drill.exec.proto.UserBitShared;
import org.apache.drill.exec.proto.*;
[ "org.apache.drill" ]
org.apache.drill;
2,622,054
Optional<GoalExecutor<O>> executor();
Optional<GoalExecutor<O>> executor();
/** * Gets the {@link GoalExecutor} that is updating this goal, if any. * * @return The goal or {@link Optional#empty()} if not present */
Gets the <code>GoalExecutor</code> that is updating this goal, if any
executor
{ "repo_name": "SpongePowered/SpongeAPI", "path": "src/main/java/org/spongepowered/api/entity/ai/goal/Goal.java", "license": "mit", "size": 4002 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
2,525,112
@Init(State.RESOURCES) public static void init() { ResourceBundle.clearCache(); try { fallback = ResourceBundle.getBundle("projektkurs.resources.lang.lang", SupportedLocales.DEFAULT.getLocale()); } catch (Throwable t) { Logger.logThrowable("Unable to load fallba...
@Init(State.RESOURCES) static void function() { ResourceBundle.clearCache(); try { fallback = ResourceBundle.getBundle(STR, SupportedLocales.DEFAULT.getLocale()); } catch (Throwable t) { Logger.logThrowable(STR, t); } try { resource = ResourceBundle.getBundle(STR, currentLocale.getLocale()); Logger.info(STR + currentLo...
/** * Initialisiert die gesetze Sprache und laedt die Lokalisierung. */
Initialisiert die gesetze Sprache und laedt die Lokalisierung
init
{ "repo_name": "iTitus/ProjektkursInformatik", "path": "src/projektkurs/util/I18n.java", "license": "mit", "size": 5671 }
[ "java.util.ArrayList", "java.util.Enumeration", "java.util.ResourceBundle" ]
import java.util.ArrayList; import java.util.Enumeration; import java.util.ResourceBundle;
import java.util.*;
[ "java.util" ]
java.util;
588,688
public void install(DownloadJob job, File src, File dst) throws IOException { job.replace(dst, src); }
void function(DownloadJob job, File src, File dst) throws IOException { job.replace(dst, src); }
/** * Called after a plugin has been downloaded to move it into its final * location. The default implementation is a file rename. * * @param job The install job that is invoking this strategy. * @param src The temporary location of the plugin. * @param dst The fina...
Called after a plugin has been downloaded to move it into its final location. The default implementation is a file rename
install
{ "repo_name": "stephenc/jenkins", "path": "core/src/main/java/hudson/model/UpdateCenter.java", "license": "mit", "size": 92950 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,901,652
void addUserAuthzGroup(Collection<String> rv, String id);
void addUserAuthzGroup(Collection<String> rv, String id);
/** * Add the AuthzGroup for this user id, or for the user's type template, or for the general template. * * @param rv * The list of references. * @param id * The user id. */
Add the AuthzGroup for this user id, or for the user's type template, or for the general template
addUserAuthzGroup
{ "repo_name": "OpenCollabZA/sakai", "path": "kernel/api/src/main/java/org/sakaiproject/entity/api/Reference.java", "license": "apache-2.0", "size": 4719 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
11,395
public void setLogWriter(final PrintWriter logWriter) { this.logWriter = logWriter; } private boolean useUsageTracking = false;
void function(final PrintWriter logWriter) { this.logWriter = logWriter; } private boolean useUsageTracking = false;
/** * Sets the log writer to be used by this configuration to log * information on abandoned objects. * * @param logWriter The new log writer */
Sets the log writer to be used by this configuration to log information on abandoned objects
setLogWriter
{ "repo_name": "bbossgroups/bbossgroups-3.5", "path": "bboss-persistent/src-jdk8/com/frameworkset/commons/pool2/impl/AbandonedConfig.java", "license": "apache-2.0", "size": 10293 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
2,611,089
protected Response create400Response(String message, final HttpServletRequest request) { return appendAllowOriginHeader( Response.status(Status.UNAUTHORIZED) .header("WWW-Authenticate", "Basic realm=\"AeroBase UnifiedPush Server\"") .entity(quote(...
Response function(String message, final HttpServletRequest request) { return appendAllowOriginHeader( Response.status(Status.UNAUTHORIZED) .header(STR, STRAeroBase UnifiedPush Server\"") .entity(quote(message)), request); }
/** * Helper function to create a 400 Bad Request response, containing a JSON giving details about the response. * * @param message response error message * @return 400 Bad Request response, containing details on the violations */
Helper function to create a 400 Bad Request response, containing a JSON giving details about the response
create400Response
{ "repo_name": "aerobase/unifiedpush-server", "path": "jaxrs/src/main/java/org/jboss/aerogear/unifiedpush/rest/AbstractEndpoint.java", "license": "apache-2.0", "size": 3477 }
[ "javax.servlet.http.HttpServletRequest", "javax.ws.rs.core.Response" ]
import javax.servlet.http.HttpServletRequest; import javax.ws.rs.core.Response;
import javax.servlet.http.*; import javax.ws.rs.core.*;
[ "javax.servlet", "javax.ws" ]
javax.servlet; javax.ws;
2,808,093
Set fetchContainers(SecurityContext ctx, Class type, long userID) throws DSOutOfServiceException, DSAccessException { try { IQueryPrx service = gw.getQueryService(ctx); Parameters p = new ParametersI(); p.map = new HashMap<String, RType>(); p.map.put("id", omero.rtypes.rlong(userID)); Str...
Set fetchContainers(SecurityContext ctx, Class type, long userID) throws DSOutOfServiceException, DSAccessException { try { IQueryPrx service = gw.getQueryService(ctx); Parameters p = new ParametersI(); p.map = new HashMap<String, RType>(); p.map.put("id", omero.rtypes.rlong(userID)); String table = getTableForClass(ty...
/** * Retrieves all containers of a given type. * The containers are not linked to any of their children. * * @param ctx The security context. * @param type The type of container to retrieve. * @param userID The id of the owner of the container. * @return See above. * @throws DSOutOfServiceException I...
Retrieves all containers of a given type. The containers are not linked to any of their children
fetchContainers
{ "repo_name": "dominikl/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 262766 }
[ "java.util.HashMap", "java.util.HashSet", "java.util.Set" ]
import java.util.HashMap; import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
165,090
return getResource(type, servletContext, type.getName()); } /** * Tries to retrieve a Resource with the parsed type from the {@link ServletContext} * by using the parsed attribute name * @param type the expected type of the resource * @param servletContext the servlet context. MUST NOT be <c...
return getResource(type, servletContext, type.getName()); } /** * Tries to retrieve a Resource with the parsed type from the {@link ServletContext} * by using the parsed attribute name * @param type the expected type of the resource * @param servletContext the servlet context. MUST NOT be <code>null</code> * @param att...
/** * Tries to retrieve a Resource with the parsed type from the {@link ServletContext} * by using {@link Class#getName()} as attribute name * @param type the expected type of the resource * @param servletContext the servlet context. MUST NOT be <code>null</code> * @return the resource (guarant...
Tries to retrieve a Resource with the parsed type from the <code>ServletContext</code> by using <code>Class#getName()</code> as attribute name
getResource
{ "repo_name": "westei/stanbol-talismane", "path": "talismane-web/src/main/java/at/salzburgresearch/stanbol/enhancer/nlp/talismane/web/util/Utils.java", "license": "agpl-3.0", "size": 8595 }
[ "javax.servlet.ServletContext" ]
import javax.servlet.ServletContext;
import javax.servlet.*;
[ "javax.servlet" ]
javax.servlet;
55,774
boolean isStringType(DataType type) { return Arrays.asList(DataType.VARCHAR, DataType.BPCHAR, DataType.TEXT, DataType.NUMERIC, DataType.TIMESTAMP, DataType.DATE).contains( type); }
boolean isStringType(DataType type) { return Arrays.asList(DataType.VARCHAR, DataType.BPCHAR, DataType.TEXT, DataType.NUMERIC, DataType.TIMESTAMP, DataType.DATE).contains( type); }
/** * Tests if data type is a string type. String type is a type that can be * serialized as string, such as varchar, bpchar, text, numeric, timestamp, * date. * * @param type data type * @return whether data type is string type */
Tests if data type is a string type. String type is a type that can be serialized as string, such as varchar, bpchar, text, numeric, timestamp, date
isStringType
{ "repo_name": "cwelton/incubator-hawq", "path": "pxf/pxf-service/src/main/java/org/apache/hawq/pxf/service/BridgeOutputBuilder.java", "license": "apache-2.0", "size": 14495 }
[ "java.util.Arrays", "org.apache.hawq.pxf.api.io.DataType" ]
import java.util.Arrays; import org.apache.hawq.pxf.api.io.DataType;
import java.util.*; import org.apache.hawq.pxf.api.io.*;
[ "java.util", "org.apache.hawq" ]
java.util; org.apache.hawq;
1,566,291
private void formatDateValue(KeyUpEvent event,String availableDateId) { int keyCode = event.getNativeKeyCode(); if(!event.isAnyModifierKeyDown()) { int curCursPos = dateBox.getCursorPos(); String value = dateBox.getValue(); String newValue = ""; for(int i = 0; (i < value.length()) && (newValue.le...
void function(KeyUpEvent event,String availableDateId) { int keyCode = event.getNativeKeyCode(); if(!event.isAnyModifierKeyDown()) { int curCursPos = dateBox.getCursorPos(); String value = dateBox.getValue(); String newValue = STRSTR/STR STR:STRAMSTRPM"; } } } } if(((curCursPos == 2) (curCursPos == 5) (curCursPos == 10...
/** * Format date value. * * @param event * the event * @param availableDateId * the available date id */
Format date value
formatDateValue
{ "repo_name": "JaLandry/MeasureAuthoringTool_LatestSprint", "path": "mat/src/mat/client/shared/DateBoxWithCalendar.java", "license": "apache-2.0", "size": 14927 }
[ "com.google.gwt.event.dom.client.KeyCodes", "com.google.gwt.event.dom.client.KeyUpEvent" ]
import com.google.gwt.event.dom.client.KeyCodes; import com.google.gwt.event.dom.client.KeyUpEvent;
import com.google.gwt.event.dom.client.*;
[ "com.google.gwt" ]
com.google.gwt;
2,187,770
private static long upperBound( long from, final long mid, final long secondCut, final LongComparator comp ) { long len = mid - from; while ( len > 0 ) { long half = len / 2; long middle = from + half; if ( comp.compare( secondCut, middle ) < 0 ) { len = half; } else { from = middle + 1; ...
static long function( long from, final long mid, final long secondCut, final LongComparator comp ) { long len = mid - from; while ( len > 0 ) { long half = len / 2; long middle = from + half; if ( comp.compare( secondCut, middle ) < 0 ) { len = half; } else { from = middle + 1; len -= half + 1; } } return from; }
/** * Performs a binary search on an already-sorted range: finds the last position where an element * can be inserted without violating the ordering. Sorting is by a user-supplied comparison * function. * * @param from Beginning of the range. * @param mid One past the end of the range. * @param secondCut...
Performs a binary search on an already-sorted range: finds the last position where an element can be inserted without violating the ordering. Sorting is by a user-supplied comparison function
upperBound
{ "repo_name": "romix/fastutil-maven", "path": "src/it/unimi/dsi/fastutil/BigArrays.java", "license": "apache-2.0", "size": 20236 }
[ "it.unimi.dsi.fastutil.longs.LongComparator" ]
import it.unimi.dsi.fastutil.longs.LongComparator;
import it.unimi.dsi.fastutil.longs.*;
[ "it.unimi.dsi" ]
it.unimi.dsi;
2,846,070
IFeature getFeature();
IFeature getFeature();
/** * Returns the value of the '<em><b>Feature</b></em>' reference. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Feature</em>' reference isn't clear, * there really should be more of a description here... * </p> * <!-- end-user-doc --> * @return the value of the '<em>Feature</em>' refere...
Returns the value of the 'Feature' reference. If the meaning of the 'Feature' reference isn't clear, there really should be more of a description here...
getFeature
{ "repo_name": "paetti1988/qmate", "path": "MATE/org.tud.inf.st.mbt.emf/src-gen/org/tud/inf/st/mbt/actions/GetFeatureStateAction.java", "license": "apache-2.0", "size": 1471 }
[ "org.tud.inf.st.mbt.features.IFeature" ]
import org.tud.inf.st.mbt.features.IFeature;
import org.tud.inf.st.mbt.features.*;
[ "org.tud.inf" ]
org.tud.inf;
1,675,180
@Override public void writeGraph(Graph graph) throws IOException { int nNodes = graph.getNNodes(); String[][] labels = new String[nNodes][nNodes]; for (Edge edge : graph.getEdges()) { labels[edge.source][edge.target] = edge.label; } writer.println(graph.id); for (Node node : graph.getNodes()) { ...
void function(Graph graph) throws IOException { int nNodes = graph.getNNodes(); String[][] labels = new String[nNodes][nNodes]; for (Edge edge : graph.getEdges()) { labels[edge.source][edge.target] = edge.label; } writer.println(graph.id); for (Node node : graph.getNodes()) { if (node.id > 0) { StringBuilder sb = new S...
/** * Writes a single graph. * * @param graph the graph to be written * @throws IOException if an I/O error occurs */
Writes a single graph
writeGraph
{ "repo_name": "semantic-dependency-parsing/toolkit", "path": "src/main/java/se/liu/ida/nlp/sdp/toolkit/io/GraphWriter2015.java", "license": "isc", "size": 3593 }
[ "java.io.IOException", "se.liu.ida.nlp.sdp.toolkit.graph.Edge", "se.liu.ida.nlp.sdp.toolkit.graph.Graph", "se.liu.ida.nlp.sdp.toolkit.graph.Node" ]
import java.io.IOException; import se.liu.ida.nlp.sdp.toolkit.graph.Edge; import se.liu.ida.nlp.sdp.toolkit.graph.Graph; import se.liu.ida.nlp.sdp.toolkit.graph.Node;
import java.io.*; import se.liu.ida.nlp.sdp.toolkit.graph.*;
[ "java.io", "se.liu.ida" ]
java.io; se.liu.ida;
96,447
protected ResourceLocation getEntityTexture(EntityBat p_110775_1_) { return batTextures; }
ResourceLocation function(EntityBat p_110775_1_) { return batTextures; }
/** * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture. */
Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture
getEntityTexture
{ "repo_name": "mviitanen/marsmod", "path": "mcp/src/minecraft/net/minecraft/client/renderer/entity/RenderBat.java", "license": "gpl-2.0", "size": 6345 }
[ "net.minecraft.entity.passive.EntityBat", "net.minecraft.util.ResourceLocation" ]
import net.minecraft.entity.passive.EntityBat; import net.minecraft.util.ResourceLocation;
import net.minecraft.entity.passive.*; import net.minecraft.util.*;
[ "net.minecraft.entity", "net.minecraft.util" ]
net.minecraft.entity; net.minecraft.util;
824,048
@Test public void canRemoveKey() throws Exception { final MkContainer container = new MkGrizzlyContainer().next( new MkAnswer.Simple( HttpURLConnection.HTTP_NO_CONTENT, "" ) ).start(); final RtPublicKeys keys = new RtPublicKeys( ...
void function() throws Exception { final MkContainer container = new MkGrizzlyContainer().next( new MkAnswer.Simple( HttpURLConnection.HTTP_NO_CONTENT, STR/user/keys/1") ); MatcherAssert.assertThat( query.method(), Matchers.equalTo(Request.DELETE) ); } finally { container.stop(); } }
/** * RtPublicKeys should be able to remove a key. * * @throws Exception if a problem occurs. */
RtPublicKeys should be able to remove a key
canRemoveKey
{ "repo_name": "cvrebert/typed-github", "path": "src/test/java/com/jcabi/github/RtPublicKeysTest.java", "license": "bsd-3-clause", "size": 6218 }
[ "com.jcabi.http.Request", "com.jcabi.http.mock.MkAnswer", "com.jcabi.http.mock.MkContainer", "com.jcabi.http.mock.MkGrizzlyContainer", "java.net.HttpURLConnection", "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import com.jcabi.http.Request; import com.jcabi.http.mock.MkAnswer; import com.jcabi.http.mock.MkContainer; import com.jcabi.http.mock.MkGrizzlyContainer; import java.net.HttpURLConnection; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import com.jcabi.http.*; import com.jcabi.http.mock.*; import java.net.*; import org.hamcrest.*;
[ "com.jcabi.http", "java.net", "org.hamcrest" ]
com.jcabi.http; java.net; org.hamcrest;
957,538
@Override // NameNodeMXBean public String getDecomNodes() { final Map<String, Map<String, Object>> info = new HashMap<String, Map<String, Object>>(); final List<DatanodeDescriptor> decomNodeList = blockManager.getDatanodeManager( ).getDecommissioningNodes(); for (DatanodeDescriptor node :...
@Override String function() { final Map<String, Map<String, Object>> info = new HashMap<String, Map<String, Object>>(); final List<DatanodeDescriptor> decomNodeList = blockManager.getDatanodeManager( ).getDecommissioningNodes(); for (DatanodeDescriptor node : decomNodeList) { Map<String, Object> innerinfo = ImmutableMa...
/** * Returned information is a JSON representation of map with host name as the * key and value is a map of decommissioning node attribute keys to its * values */
Returned information is a JSON representation of map with host name as the key and value is a map of decommissioning node attribute keys to its values
getDecomNodes
{ "repo_name": "jiayuhan-it/yarn-jyhtest", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java", "license": "apache-2.0", "size": 298813 }
[ "com.google.common.collect.ImmutableMap", "java.util.HashMap", "java.util.List", "java.util.Map", "org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor", "org.mortbay.util.ajax.JSON" ]
import com.google.common.collect.ImmutableMap; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor; import org.mortbay.util.ajax.JSON;
import com.google.common.collect.*; import java.util.*; import org.apache.hadoop.hdfs.server.blockmanagement.*; import org.mortbay.util.ajax.*;
[ "com.google.common", "java.util", "org.apache.hadoop", "org.mortbay.util" ]
com.google.common; java.util; org.apache.hadoop; org.mortbay.util;
1,455,232
@Test public void whenUserShowItemThenTrackerGetAll() { Tracker tracker = new Tracker(); // create Tracker String lineSeparator = System.getProperty("line.separator"); ByteArrayOutputStream out = new ByteArrayOutputStream(); Item itemFirst = new Item("test1", "testDescriptio...
void function() { Tracker tracker = new Tracker(); String lineSeparator = System.getProperty(STR); ByteArrayOutputStream out = new ByteArrayOutputStream(); Item itemFirst = new Item("test1", STR, 123L); tracker.add(itemFirst); Item itemSecond = new Item("test2", STR, 223L); tracker.add(itemSecond); Input input = new St...
/** * Test item 1. Show all items. */
Test item 1. Show all items
whenUserShowItemThenTrackerGetAll
{ "repo_name": "rvkhaustov/rkhaustov", "path": "chapter_002/src/test/java/ru/rkhaustov/models/StubInpitTest.java", "license": "apache-2.0", "size": 5889 }
[ "java.io.ByteArrayOutputStream", "java.io.PrintStream", "org.hamcrest.core.Is", "org.junit.Assert" ]
import java.io.ByteArrayOutputStream; import java.io.PrintStream; import org.hamcrest.core.Is; import org.junit.Assert;
import java.io.*; import org.hamcrest.core.*; import org.junit.*;
[ "java.io", "org.hamcrest.core", "org.junit" ]
java.io; org.hamcrest.core; org.junit;
507,025
EList<II> getTemplateIds();
EList<II> getTemplateIds();
/** * Returns the value of the '<em><b>Template Id</b></em>' containment reference list. * The list contents are of type {@link org.openhealthtools.mdht.uml.hl7.datatypes.II}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Template Id</em>' containment reference list isn't clear, * there...
Returns the value of the 'Template Id' containment reference list. The list contents are of type <code>org.openhealthtools.mdht.uml.hl7.datatypes.II</code>. If the meaning of the 'Template Id' containment reference list isn't clear, there really should be more of a description here...
getTemplateIds
{ "repo_name": "drbgfc/mdht", "path": "cda/plugins/org.openhealthtools.mdht.uml.cda/src/org/openhealthtools/mdht/uml/cda/Component2.java", "license": "epl-1.0", "size": 14832 }
[ "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,279,461
public static void saveMovies() throws IOException { fileOut = ioaContext.openFileOutput(MFILE, Context.MODE_PRIVATE); objectOut = new ObjectOutputStream(fileOut); objectOut.writeObject(movies); objectOut.close(); Log.println(Log.INFO, "GTMovies", MFILE + " saved....
static void function() throws IOException { fileOut = ioaContext.openFileOutput(MFILE, Context.MODE_PRIVATE); objectOut = new ObjectOutputStream(fileOut); objectOut.writeObject(movies); objectOut.close(); Log.println(Log.INFO, STR, MFILE + STR); }
/** * serializes and writes HashSet movies object * @throws IOException if fails to write out */
serializes and writes HashSet movies object
saveMovies
{ "repo_name": "mmccoy37/GTMovies", "path": "app/src/main/java/com/team19/gtmovies/data/IOActions.java", "license": "gpl-3.0", "size": 13231 }
[ "android.content.Context", "android.util.Log", "java.io.IOException", "java.io.ObjectOutputStream" ]
import android.content.Context; import android.util.Log; import java.io.IOException; import java.io.ObjectOutputStream;
import android.content.*; import android.util.*; import java.io.*;
[ "android.content", "android.util", "java.io" ]
android.content; android.util; java.io;
1,573,862
protected DoublyIndexedTable getTraitInformationTable() { return xmlTraitInformation; } // SVGLocatable support /////////////////////////////////////////////
DoublyIndexedTable function() { return xmlTraitInformation; }
/** * Returns the table of TraitInformation objects for this element. */
Returns the table of TraitInformation objects for this element
getTraitInformationTable
{ "repo_name": "adufilie/flex-sdk", "path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/dom/svg/SVGGraphicsElement.java", "license": "apache-2.0", "size": 9369 }
[ "org.apache.flex.forks.batik.util.DoublyIndexedTable" ]
import org.apache.flex.forks.batik.util.DoublyIndexedTable;
import org.apache.flex.forks.batik.util.*;
[ "org.apache.flex" ]
org.apache.flex;
501,879
public static void zero(Address start, Extent len) { SysCall.sysCall.sysZero(start, len); }
static void function(Address start, Extent len) { SysCall.sysCall.sysZero(start, len); }
/** * Zero a region of memory. * @param start of address range (inclusive) * @param len extent to zero. */
Zero a region of memory
zero
{ "repo_name": "ut-osa/laminar", "path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/runtime/Memory.java", "license": "bsd-3-clause", "size": 21606 }
[ "org.vmmagic.unboxed.Address", "org.vmmagic.unboxed.Extent" ]
import org.vmmagic.unboxed.Address; import org.vmmagic.unboxed.Extent;
import org.vmmagic.unboxed.*;
[ "org.vmmagic.unboxed" ]
org.vmmagic.unboxed;
1,560,112
return Status.CANCELED; } /** * Returns default message (using in {@link ru.yandex.qatools.allure.events.TestCaseStatusChangeEvent}
return Status.CANCELED; } /** * Returns default message (using in {@link ru.yandex.qatools.allure.events.TestCaseStatusChangeEvent}
/** * Returns the status {@link ru.yandex.qatools.allure.model.Status#CANCELED} * * @return the status {@link ru.yandex.qatools.allure.model.Status#CANCELED} */
Returns the status <code>ru.yandex.qatools.allure.model.Status#CANCELED</code>
getStatus
{ "repo_name": "allure-framework/allure1", "path": "allure-java-adaptor-api/src/main/java/ru/yandex/qatools/allure/events/TestCaseCanceledEvent.java", "license": "apache-2.0", "size": 1282 }
[ "ru.yandex.qatools.allure.model.Status" ]
import ru.yandex.qatools.allure.model.Status;
import ru.yandex.qatools.allure.model.*;
[ "ru.yandex.qatools" ]
ru.yandex.qatools;
2,513,001
public static JmsComponent jmsComponentClientAcknowledge(ConnectionFactory connectionFactory) { JmsConfiguration template = new JmsConfiguration(connectionFactory); template.setAcknowledgementMode(Session.CLIENT_ACKNOWLEDGE); return jmsComponent(template); }
static JmsComponent function(ConnectionFactory connectionFactory) { JmsConfiguration template = new JmsConfiguration(connectionFactory); template.setAcknowledgementMode(Session.CLIENT_ACKNOWLEDGE); return jmsComponent(template); }
/** * Static builder method */
Static builder method
jmsComponentClientAcknowledge
{ "repo_name": "logzio/camel", "path": "components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java", "license": "apache-2.0", "size": 24612 }
[ "javax.jms.ConnectionFactory", "javax.jms.Session" ]
import javax.jms.ConnectionFactory; import javax.jms.Session;
import javax.jms.*;
[ "javax.jms" ]
javax.jms;
557,291
protected void addJustificationTextByBudgetPeriod(BudgetPeriod budgetPeriod, StringBuilder sb) { Map<String, CostElement> costElementsMappedToCostElementCode = loadCostElements(); boolean periodHeaderAdded = false; for(BudgetLineItem lineItem: budgetPeriod.getBudgetLineItems()) { ...
void function(BudgetPeriod budgetPeriod, StringBuilder sb) { Map<String, CostElement> costElementsMappedToCostElementCode = loadCostElements(); boolean periodHeaderAdded = false; for(BudgetLineItem lineItem: budgetPeriod.getBudgetLineItems()) { periodHeaderAdded = addLineItemJustificationText(costElementsMappedToCostEl...
/** * * This method aggregates Justification text by BudgetPeriod * @param budgetPeriod * @param sb */
This method aggregates Justification text by BudgetPeriod
addJustificationTextByBudgetPeriod
{ "repo_name": "sanjupolus/KC6.oLatest", "path": "coeus-impl/src/main/java/org/kuali/coeus/common/budget/impl/nonpersonnel/BudgetJustificationServiceImpl.java", "license": "agpl-3.0", "size": 9088 }
[ "java.util.Map", "org.kuali.coeus.common.budget.framework.core.CostElement", "org.kuali.coeus.common.budget.framework.nonpersonnel.BudgetLineItem", "org.kuali.coeus.common.budget.framework.period.BudgetPeriod" ]
import java.util.Map; import org.kuali.coeus.common.budget.framework.core.CostElement; import org.kuali.coeus.common.budget.framework.nonpersonnel.BudgetLineItem; import org.kuali.coeus.common.budget.framework.period.BudgetPeriod;
import java.util.*; import org.kuali.coeus.common.budget.framework.core.*; import org.kuali.coeus.common.budget.framework.nonpersonnel.*; import org.kuali.coeus.common.budget.framework.period.*;
[ "java.util", "org.kuali.coeus" ]
java.util; org.kuali.coeus;
1,598,706
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<DeploymentExportResultInner>> exportTemplateAtScopeWithResponseAsync( String scope, String deploymentName);
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<DeploymentExportResultInner>> exportTemplateAtScopeWithResponseAsync( String scope, String deploymentName);
/** * Exports the template used for specified deployment. * * @param scope The resource scope. * @param deploymentName The name of the deployment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException ...
Exports the template used for specified deployment
exportTemplateAtScopeWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/DeploymentsClient.java", "license": "mit", "size": 218889 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.resourcemanager.resources.fluent.models.DeploymentExportResultInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.resources.fluent.models.DeploymentExportResultInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.resources.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
217,425
public boolean isTableExist(Connection conn, String query) { try { try (PreparedStatement tableCheckstmt = conn.prepareStatement(query)) { try (ResultSet rs = tableCheckstmt.executeQuery()) { return true; } } } catch (SQLExc...
boolean function(Connection conn, String query) { try { try (PreparedStatement tableCheckstmt = conn.prepareStatement(query)) { try (ResultSet rs = tableCheckstmt.executeQuery()) { return true; } } } catch (SQLException e) { if (logger.isDebugEnabled()) { logger.debug(STR + STR, e); } return false; } }
/** * Method for checking whether or not the given table (which reflects the current event table instance) exists. * * @return true/false based on the table existence. */
Method for checking whether or not the given table (which reflects the current event table instance) exists
isTableExist
{ "repo_name": "Anoukh/carbon-analytics", "path": "components/org.wso2.carbon.status.dashboard.core/src/main/java/org/wso2/carbon/status/dashboard/core/dbhandler/DBHandler.java", "license": "apache-2.0", "size": 4687 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
751,301
public static <T> T splitEachLine(InputStream stream, Pattern pattern, @ClosureParams(value=FromString.class,options={"List<String>","String[]"},conflictResolutionStrategy=PickFirstResolver.class) Closure<T> closure) throws IOException { return splitEachLine(new BufferedReader(new InputStreamReader(stream))...
static <T> T function(InputStream stream, Pattern pattern, @ClosureParams(value=FromString.class,options={STR,STR},conflictResolutionStrategy=PickFirstResolver.class) Closure<T> closure) throws IOException { return splitEachLine(new BufferedReader(new InputStreamReader(stream)), pattern, closure); }
/** * Iterates through the given InputStream line by line, splitting each line using * the given separator Pattern. The list of tokens for each line is then passed to * the given closure. The stream is closed before the method returns. * * @param stream an InputStream * @param pattern th...
Iterates through the given InputStream line by line, splitting each line using the given separator Pattern. The list of tokens for each line is then passed to the given closure. The stream is closed before the method returns
splitEachLine
{ "repo_name": "graemerocher/incubator-groovy", "path": "src/main/org/codehaus/groovy/runtime/IOGroovyMethods.java", "license": "apache-2.0", "size": 64289 }
[ "groovy.lang.Closure", "groovy.transform.stc.ClosureParams", "groovy.transform.stc.FromString", "groovy.transform.stc.PickFirstResolver", "java.io.BufferedReader", "java.io.IOException", "java.io.InputStream", "java.io.InputStreamReader", "java.util.regex.Pattern" ]
import groovy.lang.Closure; import groovy.transform.stc.ClosureParams; import groovy.transform.stc.FromString; import groovy.transform.stc.PickFirstResolver; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.regex.Pattern;
import groovy.lang.*; import groovy.transform.stc.*; import java.io.*; import java.util.regex.*;
[ "groovy.lang", "groovy.transform.stc", "java.io", "java.util" ]
groovy.lang; groovy.transform.stc; java.io; java.util;
2,618,842
public void testCursorStateAfterCommit4() throws SQLException { testCursorStateAfterCommit(true, ResultSet.TYPE_SCROLL_INSENSITIVE); }
void function() throws SQLException { testCursorStateAfterCommit(true, ResultSet.TYPE_SCROLL_INSENSITIVE); }
/** * Test that when doing an update immediately after * a commit, the update fails, because the cursor has been * postioned between the current row and the next row. * The test uses a SCROLL_INSENSITIVE resultset and positioned updates. */
Test that when doing an update immediately after a commit, the update fails, because the cursor has been postioned between the current row and the next row. The test uses a SCROLL_INSENSITIVE resultset and positioned updates
testCursorStateAfterCommit4
{ "repo_name": "splicemachine/spliceengine", "path": "db-testing/src/test/java/com/splicemachine/dbTesting/functionTests/tests/jdbcapi/SURTest.java", "license": "agpl-3.0", "size": 64499 }
[ "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,069,016
public void add(X509Certificate x509certificate) { this.add(new SingleCertificateResolver(x509certificate)); }
void function(X509Certificate x509certificate) { this.add(new SingleCertificateResolver(x509certificate)); }
/** * Method addCertificate * * @param x509certificate */
Method addCertificate
add
{ "repo_name": "apache/santuario-java", "path": "src/main/java/org/apache/xml/security/keys/storage/StorageResolver.java", "license": "apache-2.0", "size": 5017 }
[ "java.security.cert.X509Certificate", "org.apache.xml.security.keys.storage.implementations.SingleCertificateResolver" ]
import java.security.cert.X509Certificate; import org.apache.xml.security.keys.storage.implementations.SingleCertificateResolver;
import java.security.cert.*; import org.apache.xml.security.keys.storage.implementations.*;
[ "java.security", "org.apache.xml" ]
java.security; org.apache.xml;
2,551,333
@Test(expectedExceptions = { LDAPException.class }) public void testDecodeNoValue() throws Exception { new DeliverSingleUseTokenExtendedRequest(new ExtendedRequest( "1.3.6.1.4.1.30221.2.6.49", (ASN1OctetString) null)); }
@Test(expectedExceptions = { LDAPException.class }) void function() throws Exception { new DeliverSingleUseTokenExtendedRequest(new ExtendedRequest( STR, (ASN1OctetString) null)); }
/** * Tests the behavior when trying to decode a request that does not have a * value. * * @throws Exception If an unexpected problem occurs. */
Tests the behavior when trying to decode a request that does not have a value
testDecodeNoValue
{ "repo_name": "UnboundID/ldapsdk", "path": "tests/unit/src/com/unboundid/ldap/sdk/unboundidds/extensions/DeliverSingleUseTokenExtendedRequestTestCase.java", "license": "gpl-2.0", "size": 11257 }
[ "com.unboundid.asn1.ASN1OctetString", "com.unboundid.ldap.sdk.ExtendedRequest", "com.unboundid.ldap.sdk.LDAPException", "org.testng.annotations.Test" ]
import com.unboundid.asn1.ASN1OctetString; import com.unboundid.ldap.sdk.ExtendedRequest; import com.unboundid.ldap.sdk.LDAPException; import org.testng.annotations.Test;
import com.unboundid.asn1.*; import com.unboundid.ldap.sdk.*; import org.testng.annotations.*;
[ "com.unboundid.asn1", "com.unboundid.ldap", "org.testng.annotations" ]
com.unboundid.asn1; com.unboundid.ldap; org.testng.annotations;
930,140
private static void uaRowSumLtGe(MatrixBlock in, MatrixBlock out, double[] bv, BinaryOperator bOp) throws DMLRuntimeException { int agg0 = sumRowSumLtGeColSumGtLe(0.0, bv, bOp); int m = in.rlen; for( int i=0; i<m; i++ ) { double ai = in.quickGetValue(i, 0); int cnt = (ai == 0) ? agg0: sumRowSum...
static void function(MatrixBlock in, MatrixBlock out, double[] bv, BinaryOperator bOp) throws DMLRuntimeException { int agg0 = sumRowSumLtGeColSumGtLe(0.0, bv, bOp); int m = in.rlen; for( int i=0; i<m; i++ ) { double ai = in.quickGetValue(i, 0); int cnt = (ai == 0) ? agg0: sumRowSumLtGeColSumGtLe(ai, bv, bOp); out.quic...
/** * UAgg rowSums for LessThan and GreaterThanEqual operator * * @param in * @param out * @param bv * @param bOp * @throws DMLRuntimeException */
UAgg rowSums for LessThan and GreaterThanEqual operator
uaRowSumLtGe
{ "repo_name": "Myasuka/systemml", "path": "system-ml/src/main/java/com/ibm/bi/dml/runtime/matrix/data/LibMatrixOuterAgg.java", "license": "apache-2.0", "size": 43884 }
[ "com.ibm.bi.dml.runtime.DMLRuntimeException", "com.ibm.bi.dml.runtime.matrix.operators.BinaryOperator" ]
import com.ibm.bi.dml.runtime.DMLRuntimeException; import com.ibm.bi.dml.runtime.matrix.operators.BinaryOperator;
import com.ibm.bi.dml.runtime.*; import com.ibm.bi.dml.runtime.matrix.operators.*;
[ "com.ibm.bi" ]
com.ibm.bi;
1,702,466
private void addToQueue(Collection<SerialMessage> msgs) { if (msgs == null) { return; } for (SerialMessage serialMessage : msgs) { addToQueue(serialMessage); } }
void function(Collection<SerialMessage> msgs) { if (msgs == null) { return; } for (SerialMessage serialMessage : msgs) { addToQueue(serialMessage); } }
/** * Move all the messages in a collection to the queue * * @param msgs * the message collection */
Move all the messages in a collection to the queue
addToQueue
{ "repo_name": "Greblys/openhab", "path": "bundles/binding/org.openhab.binding.zwave/src/main/java/org/openhab/binding/zwave/internal/protocol/initialization/ZWaveNodeStageAdvancer.java", "license": "epl-1.0", "size": 44129 }
[ "java.util.Collection", "org.openhab.binding.zwave.internal.protocol.SerialMessage" ]
import java.util.Collection; import org.openhab.binding.zwave.internal.protocol.SerialMessage;
import java.util.*; import org.openhab.binding.zwave.internal.protocol.*;
[ "java.util", "org.openhab.binding" ]
java.util; org.openhab.binding;
1,712,030
if (context instanceof RegionFunctionContext) { RegionFunctionContext prContext = (RegionFunctionContext) context; final Set allKeysSet = prContext.getFilter(); ArrayList vals = new ArrayList(); Region fcd = PartitionRegionHelper.getLocalDataForContext(prContext); for (Iterator i = allKey...
if (context instanceof RegionFunctionContext) { RegionFunctionContext prContext = (RegionFunctionContext) context; final Set allKeysSet = prContext.getFilter(); ArrayList vals = new ArrayList(); Region fcd = PartitionRegionHelper.getLocalDataForContext(prContext); for (Iterator i = allKeysSet.iterator(); i.hasNext();) ...
/** * Application execution implementation * * @since GemFire 5.8Beta */
Application execution implementation
execute
{ "repo_name": "pdxrunner/geode", "path": "geode-core/src/test/java/org/apache/geode/internal/cache/execute/PerformanceTestFunction.java", "license": "apache-2.0", "size": 2392 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.Set", "org.apache.geode.cache.Region", "org.apache.geode.cache.execute.RegionFunctionContext", "org.apache.geode.cache.partition.PartitionRegionHelper", "org.junit.Assert" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.Set; import org.apache.geode.cache.Region; import org.apache.geode.cache.execute.RegionFunctionContext; import org.apache.geode.cache.partition.PartitionRegionHelper; import org.junit.Assert;
import java.util.*; import org.apache.geode.cache.*; import org.apache.geode.cache.execute.*; import org.apache.geode.cache.partition.*; import org.junit.*;
[ "java.util", "org.apache.geode", "org.junit" ]
java.util; org.apache.geode; org.junit;
1,934,011
public void write(byte[] b, int off, int len) { if (len <= 0) { return; } if (writing) { DbException.throwInternalError("writing while still writing"); } try { reserve(len); writing = true; while (len > 0) { ...
void function(byte[] b, int off, int len) { if (len <= 0) { return; } if (writing) { DbException.throwInternalError(STR); } try { reserve(len); writing = true; while (len > 0) { int l = data.write(b, off, len); if (l < len) { storePage(); initNextData(); } reserved -= l; off += l; len -= l; } needFlush = true; } finall...
/** * Write the data. * * @param b the buffer * @param off the offset * @param len the length */
Write the data
write
{ "repo_name": "ferquies/2dam", "path": "AD/Tema 2/h2/src/main/org/h2/store/PageOutputStream.java", "license": "gpl-3.0", "size": 6299 }
[ "org.h2.message.DbException" ]
import org.h2.message.DbException;
import org.h2.message.*;
[ "org.h2.message" ]
org.h2.message;
2,838,354
@Override public void initialize(URL location, ResourceBundle resources) { }
void function(URL location, ResourceBundle resources) { }
/** * Initializes the controller class. * * This method initialises the controller class, and runs any methods, sets any objects * which need to be set upon the opening of the application/re-loading of the page. * * @param location URL location * @param resources ResourceBundle properties file */
Initializes the controller class. This method initialises the controller class, and runs any methods, sets any objects which need to be set upon the opening of the application/re-loading of the page
initialize
{ "repo_name": "mm08ao/GEOG5160_Assignment2", "path": "SimpleAnalytics/src/application/ControllerScreen2.java", "license": "apache-2.0", "size": 4034 }
[ "java.util.ResourceBundle" ]
import java.util.ResourceBundle;
import java.util.*;
[ "java.util" ]
java.util;
492,946
static HashedEntityId getEntityId(byte[] kijiRowKey, RowKeyFormat format) { Preconditions.checkNotNull(format); final byte[] hbaseRowKey = hashKijiRowKey(format, kijiRowKey); return new HashedEntityId(kijiRowKey, hbaseRowKey, format); }
static HashedEntityId getEntityId(byte[] kijiRowKey, RowKeyFormat format) { Preconditions.checkNotNull(format); final byte[] hbaseRowKey = hashKijiRowKey(format, kijiRowKey); return new HashedEntityId(kijiRowKey, hbaseRowKey, format); }
/** * Creates a HashedEntityId from the specified Kiji row key. * * @param kijiRowKey Kiji row key. * @param format Row key hashing specification. * @return a new HashedEntityId with the specified Kiji row key. */
Creates a HashedEntityId from the specified Kiji row key
getEntityId
{ "repo_name": "rpinzon/kiji-schema", "path": "kiji-schema/src/main/java/org/kiji/schema/HashedEntityId.java", "license": "apache-2.0", "size": 4909 }
[ "com.google.common.base.Preconditions", "org.kiji.schema.avro.RowKeyFormat" ]
import com.google.common.base.Preconditions; import org.kiji.schema.avro.RowKeyFormat;
import com.google.common.base.*; import org.kiji.schema.avro.*;
[ "com.google.common", "org.kiji.schema" ]
com.google.common; org.kiji.schema;
2,877,798
//----------------------------------------------------------------------- public static Seconds secondsBetween(ReadableInstant start, ReadableInstant end) { int amount = BaseSingleFieldPeriod.between(start, end, DurationFieldType.seconds()); return Seconds.seconds(amount); }
static Seconds function(ReadableInstant start, ReadableInstant end) { int amount = BaseSingleFieldPeriod.between(start, end, DurationFieldType.seconds()); return Seconds.seconds(amount); }
/** * Creates a <code>Seconds</code> representing the number of whole seconds * between the two specified datetimes. * * @param start the start instant, must not be null * @param end the end instant, must not be null * @return the period in seconds * @throws IllegalArgumentException...
Creates a <code>Seconds</code> representing the number of whole seconds between the two specified datetimes
secondsBetween
{ "repo_name": "Guardiola31337/joda-time", "path": "src/main/java/org/joda/time/Seconds.java", "license": "apache-2.0", "size": 18243 }
[ "org.joda.time.base.BaseSingleFieldPeriod" ]
import org.joda.time.base.BaseSingleFieldPeriod;
import org.joda.time.base.*;
[ "org.joda.time" ]
org.joda.time;
2,059,837
protected boolean matchWord() { IDocument doc = fText.getDocument(); try { int pos = curPos; char c; // Scan backwards for the start of the word. while (pos >= 0) { c = doc.getChar(pos); // Yes we know this isn't Java ...
boolean function() { IDocument doc = fText.getDocument(); try { int pos = curPos; char c; while (pos >= 0) { c = doc.getChar(pos); if (!Character.isJavaIdentifierPart(c)) break; --pos; } startPos = pos; pos = curPos; int length = doc.getLength(); while (pos < length) { c = doc.getChar(pos); if (!Character.isJavaIdentif...
/** * Attempts to determine and set the start (fStartPos) and end (fEndPos) of the word * that was double-clicked. * * @return true if the bounds of the word were successfully determined, otherwise false. */
Attempts to determine and set the start (fStartPos) and end (fEndPos) of the word that was double-clicked
matchWord
{ "repo_name": "dbeaver/dbeaver", "path": "plugins/org.jkiss.dbeaver.ui.editors.sql/src/org/jkiss/dbeaver/ui/editors/sql/syntax/SQLDoubleClickStrategy.java", "license": "apache-2.0", "size": 8558 }
[ "org.eclipse.jface.text.BadLocationException", "org.eclipse.jface.text.IDocument" ]
import org.eclipse.jface.text.BadLocationException; import org.eclipse.jface.text.IDocument;
import org.eclipse.jface.text.*;
[ "org.eclipse.jface" ]
org.eclipse.jface;
958,356
public static JSONObject getParsedJSON(String response) throws ParseException { JSONParser parser; JSONObject json; parser = new JSONParser(); json = (JSONObject) parser.parse(response); return json; }
static JSONObject function(String response) throws ParseException { JSONParser parser; JSONObject json; parser = new JSONParser(); json = (JSONObject) parser.parse(response); return json; }
/** * Parses a string containing the String JSON response and returns a JSONObject * @param response String containing the json object * @return JSONObject containing the JSON response * @throws ParseException */
Parses a string containing the String JSON response and returns a JSONObject
getParsedJSON
{ "repo_name": "rupakc/Flickr", "path": "Flickr/src/main/java/org/flickr/photos/CameraBrandModel.java", "license": "mit", "size": 4834 }
[ "org.json.simple.JSONObject", "org.json.simple.parser.JSONParser", "org.json.simple.parser.ParseException" ]
import org.json.simple.JSONObject; import org.json.simple.parser.JSONParser; import org.json.simple.parser.ParseException;
import org.json.simple.*; import org.json.simple.parser.*;
[ "org.json.simple" ]
org.json.simple;
292,592
public MeasureComputerContextImpl setDefinition(MeasureComputerDefinition definition) { this.definition = definition; this.allowedMetrics = allowedMetric(definition); return this; }
MeasureComputerContextImpl function(MeasureComputerDefinition definition) { this.definition = definition; this.allowedMetrics = allowedMetric(definition); return this; }
/** * Definition needs to be reset each time a new computer is processed. * Defining it by a setter allows to reduce the number of this class to be created (one per component instead of one per component and per computer). */
Definition needs to be reset each time a new computer is processed. Defining it by a setter allows to reduce the number of this class to be created (one per component instead of one per component and per computer)
setDefinition
{ "repo_name": "lbndev/sonarqube", "path": "server/sonar-server/src/main/java/org/sonar/server/computation/task/projectanalysis/api/measurecomputer/MeasureComputerContextImpl.java", "license": "lgpl-3.0", "size": 8863 }
[ "org.sonar.api.ce.measure.MeasureComputer" ]
import org.sonar.api.ce.measure.MeasureComputer;
import org.sonar.api.ce.measure.*;
[ "org.sonar.api" ]
org.sonar.api;
1,264,642
public static void writeAddress(DataOutput out, InetSocketAddress addr) throws IOException { WritableUtils.writeString(out, addr.getHostName()); WritableUtils.writeVInt(out, addr.getPort()); }
static void function(DataOutput out, InetSocketAddress addr) throws IOException { WritableUtils.writeString(out, addr.getHostName()); WritableUtils.writeVInt(out, addr.getPort()); }
/** * Writes InetSocketAddress to data out * @param out data output * @param addr InetSocketAddress * @throws IOException */
Writes InetSocketAddress to data out
writeAddress
{ "repo_name": "shakamunyi/hadoop-20", "path": "src/contrib/corona/src/java/org/apache/hadoop/mapred/CoronaSessionInfo.java", "license": "apache-2.0", "size": 5736 }
[ "java.io.DataOutput", "java.io.IOException", "java.net.InetSocketAddress", "org.apache.hadoop.io.WritableUtils" ]
import java.io.DataOutput; import java.io.IOException; import java.net.InetSocketAddress; import org.apache.hadoop.io.WritableUtils;
import java.io.*; import java.net.*; import org.apache.hadoop.io.*;
[ "java.io", "java.net", "org.apache.hadoop" ]
java.io; java.net; org.apache.hadoop;
1,615,077
@Endpoint( describeByClass = true ) public static StatelessTruncatedNormal<TFloat32> create(Scope scope, Operand<? extends TNumber> shape, Operand<? extends TNumber> seed) { return create(scope, shape, seed, TFloat32.class); }
@Endpoint( describeByClass = true ) static StatelessTruncatedNormal<TFloat32> function(Scope scope, Operand<? extends TNumber> shape, Operand<? extends TNumber> seed) { return create(scope, shape, seed, TFloat32.class); }
/** * Factory method to create a class wrapping a new StatelessTruncatedNormal operation, with the default output types. * * @param scope current scope * @param shape The shape of the output tensor. * @param seed 2 seeds (shape [2]). * @return a new instance of StatelessTruncatedNormal, with default o...
Factory method to create a class wrapping a new StatelessTruncatedNormal operation, with the default output types
create
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/random/StatelessTruncatedNormal.java", "license": "apache-2.0", "size": 5188 }
[ "org.tensorflow.Operand", "org.tensorflow.op.Scope", "org.tensorflow.op.annotation.Endpoint", "org.tensorflow.types.TFloat32", "org.tensorflow.types.family.TNumber" ]
import org.tensorflow.Operand; import org.tensorflow.op.Scope; import org.tensorflow.op.annotation.Endpoint; import org.tensorflow.types.TFloat32; import org.tensorflow.types.family.TNumber;
import org.tensorflow.*; import org.tensorflow.op.*; import org.tensorflow.op.annotation.*; import org.tensorflow.types.*; import org.tensorflow.types.family.*;
[ "org.tensorflow", "org.tensorflow.op", "org.tensorflow.types" ]
org.tensorflow; org.tensorflow.op; org.tensorflow.types;
898,148
List<String> findUsernamesWhereUsernameStarts(String startsWith);
List<String> findUsernamesWhereUsernameStarts(String startsWith);
/** * Find users by their username */
Find users by their username
findUsernamesWhereUsernameStarts
{ "repo_name": "jensopetersen/exist", "path": "src/org/exist/security/SecurityManager.java", "license": "lgpl-2.1", "size": 6005 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,439,090
public Map<byte [], NavigableSet<byte []>> getFamilyMap() { return this.familyMap; }
Map<byte [], NavigableSet<byte []>> function() { return this.familyMap; }
/** * Getting the familyMap * @return familyMap */
Getting the familyMap
getFamilyMap
{ "repo_name": "lichongxin/hbase-snapshot", "path": "src/main/java/org/apache/hadoop/hbase/client/Scan.java", "license": "apache-2.0", "size": 19621 }
[ "java.util.Map", "java.util.NavigableSet" ]
import java.util.Map; import java.util.NavigableSet;
import java.util.*;
[ "java.util" ]
java.util;
695,007
public Invitation getInvitation() { if (!mGoogleApiClient.isConnected()) { Log.w(TAG, "Warning: getInvitation() should only be called when signed in, " + "that is, after getting onSignInSuceeded()"); } return mInvitation; }
Invitation function() { if (!mGoogleApiClient.isConnected()) { Log.w(TAG, STR + STR); } return mInvitation; }
/** * Returns the invitation received through an invitation notification. This * should be called from your GameHelperListener's * * @return The invitation, or null if none was received. * @link{GameHelperListener#onSignInSucceeded method, to check if there's an * invitation available. In ...
Returns the invitation received through an invitation notification. This should be called from your GameHelperListener's
getInvitation
{ "repo_name": "ldm2468/gravity-brick-breaker", "path": "BaseGameUtils/src/main/java/com/google/example/games/basegameutils/GameHelper.java", "license": "apache-2.0", "size": 39206 }
[ "android.util.Log", "com.google.android.gms.games.multiplayer.Invitation" ]
import android.util.Log; import com.google.android.gms.games.multiplayer.Invitation;
import android.util.*; import com.google.android.gms.games.multiplayer.*;
[ "android.util", "com.google.android" ]
android.util; com.google.android;
1,210,083
public static TextAreaDefaults getDefaults() { if(DEFAULTS == null) { DEFAULTS = new TextAreaDefaults(); DEFAULTS.inputHandler = new ConsoleInputHandler(); DEFAULTS.inputHandler.addDefaultKeyBindings(); DEFAULTS.document = new SyntaxDocument(); DEFAULTS.editable = true; DEFAULTS.caretVisible...
static TextAreaDefaults function() { if(DEFAULTS == null) { DEFAULTS = new TextAreaDefaults(); DEFAULTS.inputHandler = new ConsoleInputHandler(); DEFAULTS.inputHandler.addDefaultKeyBindings(); DEFAULTS.document = new SyntaxDocument(); DEFAULTS.editable = true; DEFAULTS.caretVisible = true; DEFAULTS.caretBlinks = true; ...
/** * Returns a new TextAreaDefaults object with the default values filled * in. */
Returns a new TextAreaDefaults object with the default values filled in
getDefaults
{ "repo_name": "iCarto/siga", "path": "libIverUtiles/src/com/iver/utiles/console/jedit/TextAreaDefaults.java", "license": "gpl-3.0", "size": 2358 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,885,135
@VisibleForTesting BlockReceiver getBlockReceiver( final ExtendedBlock block, final StorageType storageType, final DataInputStream in, final String inAddr, final String myAddr, final BlockConstructionStage stage, final long newGs, final long minBytesRcvd, final long maxBytesRcvd, ...
BlockReceiver getBlockReceiver( final ExtendedBlock block, final StorageType storageType, final DataInputStream in, final String inAddr, final String myAddr, final BlockConstructionStage stage, final long newGs, final long minBytesRcvd, final long maxBytesRcvd, final String clientname, final DatanodeInfo srcDataNode, f...
/** * Separated for testing. */
Separated for testing
getBlockReceiver
{ "repo_name": "NJUJYB/disYarn", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiver.java", "license": "apache-2.0", "size": 53904 }
[ "java.io.DataInputStream", "java.io.IOException", "org.apache.hadoop.fs.StorageType", "org.apache.hadoop.hdfs.protocol.DatanodeInfo", "org.apache.hadoop.hdfs.protocol.ExtendedBlock", "org.apache.hadoop.hdfs.protocol.datatransfer.BlockConstructionStage", "org.apache.hadoop.util.DataChecksum" ]
import java.io.DataInputStream; import java.io.IOException; import org.apache.hadoop.fs.StorageType; import org.apache.hadoop.hdfs.protocol.DatanodeInfo; import org.apache.hadoop.hdfs.protocol.ExtendedBlock; import org.apache.hadoop.hdfs.protocol.datatransfer.BlockConstructionStage; import org.apache.hadoop.util.DataCh...
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.protocol.datatransfer.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,340,781
public void doOnResume() { if (mOnResumeMethod != null) { try { mOnResumeMethod.invoke(this); } catch (IllegalArgumentException e) { Log.e("CustomWebView", "doOnResume(): " + e.getMessage()); } catch (IllegalAccessException e) { Log.e("CustomWebView", "doOnResume(): " + e.getMessage()); }...
void function() { if (mOnResumeMethod != null) { try { mOnResumeMethod.invoke(this); } catch (IllegalArgumentException e) { Log.e(STR, STR + e.getMessage()); } catch (IllegalAccessException e) { Log.e(STR, STR + e.getMessage()); } catch (InvocationTargetException e) { Log.e(STR, STR + e.getMessage()); } } }
/** * Perform an 'onResume' on this WebView through reflexion. */
Perform an 'onResume' on this WebView through reflexion
doOnResume
{ "repo_name": "intrepidkarthi/gaeproxymod", "path": "src/org/gaeproxy/zirco/ui/components/CustomWebView.java", "license": "gpl-3.0", "size": 10983 }
[ "android.util.Log", "java.lang.reflect.InvocationTargetException" ]
import android.util.Log; import java.lang.reflect.InvocationTargetException;
import android.util.*; import java.lang.reflect.*;
[ "android.util", "java.lang" ]
android.util; java.lang;
208,588
public static OchSignal toOchSignal(int channel) { checkArgument(1 <= channel); checkArgument(channel <= 96); return new OchSignal(GridType.DWDM, ChannelSpacing.CHL_50GHZ, channel - LumentumSnmpDevice.MULTIPLIER_SHIFT, 4); }
static OchSignal function(int channel) { checkArgument(1 <= channel); checkArgument(channel <= 96); return new OchSignal(GridType.DWDM, ChannelSpacing.CHL_50GHZ, channel - LumentumSnmpDevice.MULTIPLIER_SHIFT, 4); }
/** * Convert Lumentum channel ID to OCh signal. * * @param channel Lumentum channel ID * @return OCh signal */
Convert Lumentum channel ID to OCh signal
toOchSignal
{ "repo_name": "Shashikanth-Huawei/bmp", "path": "drivers/lumentum/src/main/java/org/onosproject/drivers/lumentum/LumentumFlowRuleProgrammable.java", "license": "apache-2.0", "size": 17102 }
[ "com.google.common.base.Preconditions", "org.onosproject.net.ChannelSpacing", "org.onosproject.net.GridType", "org.onosproject.net.OchSignal" ]
import com.google.common.base.Preconditions; import org.onosproject.net.ChannelSpacing; import org.onosproject.net.GridType; import org.onosproject.net.OchSignal;
import com.google.common.base.*; import org.onosproject.net.*;
[ "com.google.common", "org.onosproject.net" ]
com.google.common; org.onosproject.net;
1,466,845
public void setValue(PreferenceValue value) { this.value = value; }
void function(PreferenceValue value) { this.value = value; }
/** * The value of the preference element as String representation. * * @param value the PreferenceValue. */
The value of the preference element as String representation
setValue
{ "repo_name": "NABUCCO/org.nabucco.framework.base", "path": "org.nabucco.framework.base.facade.datatype/src/main/gen/org/nabucco/framework/base/facade/datatype/preferences/PreferenceEntry.java", "license": "epl-1.0", "size": 9666 }
[ "org.nabucco.framework.base.facade.datatype.preferences.PreferenceValue" ]
import org.nabucco.framework.base.facade.datatype.preferences.PreferenceValue;
import org.nabucco.framework.base.facade.datatype.preferences.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
319,413
public void setDue31_Plus (BigDecimal Due31_Plus) { set_Value (COLUMNNAME_Due31_Plus, Due31_Plus); }
void function (BigDecimal Due31_Plus) { set_Value (COLUMNNAME_Due31_Plus, Due31_Plus); }
/** Set Due > 31. @param Due31_Plus Due > 31 */
Set Due > 31
setDue31_Plus
{ "repo_name": "armenrz/adempiere", "path": "base/src/org/compiere/model/X_T_Aging.java", "license": "gpl-2.0", "size": 23515 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
427,234
public void configure(Properties props) { this.refreshCount.set(0); this.overrideProps.clear(); this.originalAsyncAppenderNameMap.clear(); // First try to load the log4j configuration file from the classpath String log4jConfigurationFile = System.getProperty(PROP_LOG4...
void function(Properties props) { this.refreshCount.set(0); this.overrideProps.clear(); this.originalAsyncAppenderNameMap.clear(); String log4jConfigurationFile = System.getProperty(PROP_LOG4J_CONFIGURATION); NFHierarchy nfHierarchy = null; if ((!NFHierarchy.class.equals(LogManager.getLoggerRepository().getClass()))) {...
/** * Kick start the blitz4j implementation. * * @param props * - The overriding <em>log4j</em> properties if any. */
Kick start the blitz4j implementation
configure
{ "repo_name": "Netflix/blitz4j", "path": "src/main/java/com/netflix/blitz4j/LoggingConfiguration.java", "license": "apache-2.0", "size": 22683 }
[ "com.netflix.config.ConfigurationManager", "com.netflix.config.ExpandedConfigurationListenerAdapter", "java.io.InputStream", "java.util.Enumeration", "java.util.Properties", "org.apache.log4j.LogManager", "org.apache.log4j.PropertyConfigurator", "org.apache.log4j.helpers.Loader", "org.apache.log4j.s...
import com.netflix.config.ConfigurationManager; import com.netflix.config.ExpandedConfigurationListenerAdapter; import java.io.InputStream; import java.util.Enumeration; import java.util.Properties; import org.apache.log4j.LogManager; import org.apache.log4j.PropertyConfigurator; import org.apache.log4j.helpers.Loader;...
import com.netflix.config.*; import java.io.*; import java.util.*; import org.apache.log4j.*; import org.apache.log4j.helpers.*; import org.apache.log4j.spi.*;
[ "com.netflix.config", "java.io", "java.util", "org.apache.log4j" ]
com.netflix.config; java.io; java.util; org.apache.log4j;
895,803
@ApiModelProperty(example = "null", required = true, value = "description string") public String getDescription() { return description; }
@ApiModelProperty(example = "null", required = true, value = STR) String function() { return description; }
/** * description string * @return description **/
description string
getDescription
{ "repo_name": "Tmin10/EVE-Security-Service", "path": "server-api/src/main/java/ru/tmin10/EVESecurityService/serverApi/model/GetUniverseBloodlines200Ok.java", "license": "gpl-3.0", "size": 8751 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
814,077
@Override public File getContainerFile() { return new File(containerData.getMetadataPath(), containerData .getContainerID() + OzoneConsts.CONTAINER_EXTENSION); }
File function() { return new File(containerData.getMetadataPath(), containerData .getContainerID() + OzoneConsts.CONTAINER_EXTENSION); }
/** * Returns containerFile. * @return .container File name */
Returns containerFile
getContainerFile
{ "repo_name": "dierobotsdie/hadoop", "path": "hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/keyvalue/KeyValueContainer.java", "license": "apache-2.0", "size": 20552 }
[ "java.io.File", "org.apache.hadoop.ozone.OzoneConsts" ]
import java.io.File; import org.apache.hadoop.ozone.OzoneConsts;
import java.io.*; import org.apache.hadoop.ozone.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,390,700
public List<OffsetPosition> inOrganisationNames(String s) { if (organisationPattern == null) { initOrganisations(); } List<OffsetPosition> results = organisationPattern.matcher(s); return results; }
List<OffsetPosition> function(String s) { if (organisationPattern == null) { initOrganisations(); } List<OffsetPosition> results = organisationPattern.matcher(s); return results; }
/** * Soft look-up in organisation name gazetteer for a given string */
Soft look-up in organisation name gazetteer for a given string
inOrganisationNames
{ "repo_name": "Lilykos/grobid", "path": "grobid-core/src/main/java/org/grobid/core/lexicon/Lexicon.java", "license": "apache-2.0", "size": 26136 }
[ "java.util.List", "org.grobid.core.utilities.OffsetPosition" ]
import java.util.List; import org.grobid.core.utilities.OffsetPosition;
import java.util.*; import org.grobid.core.utilities.*;
[ "java.util", "org.grobid.core" ]
java.util; org.grobid.core;
356,871
public Expander withExecLocations(ImmutableMap<Label, ImmutableCollection<Artifact>> locations) { TemplateContext newTemplateContext = new LocationTemplateContext(templateContext, ruleContext, locations, Options.EXEC_PATHS); return new Expander(ruleContext, newTemplateContext); }
Expander function(ImmutableMap<Label, ImmutableCollection<Artifact>> locations) { TemplateContext newTemplateContext = new LocationTemplateContext(templateContext, ruleContext, locations, Options.EXEC_PATHS); return new Expander(ruleContext, newTemplateContext); }
/** * Returns a new instance that also expands locations, passing the given location map, as well as * {@link Options#EXEC_PATHS} to the underlying {@link LocationTemplateContext}. */
Returns a new instance that also expands locations, passing the given location map, as well as <code>Options#EXEC_PATHS</code> to the underlying <code>LocationTemplateContext</code>
withExecLocations
{ "repo_name": "damienmg/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/Expander.java", "license": "apache-2.0", "size": 7984 }
[ "com.google.common.collect.ImmutableCollection", "com.google.common.collect.ImmutableMap", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.analysis.LocationExpander", "com.google.devtools.build.lib.analysis.stringtemplate.TemplateContext", "com.google.devtools.build.lib.cm...
import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.LocationExpander; import com.google.devtools.build.lib.analysis.stringtemplate.TemplateContext; import com.google.devt...
import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.analysis.stringtemplate.*; import com.google.devtools.build.lib.cmdline.*;
[ "com.google.common", "com.google.devtools" ]
com.google.common; com.google.devtools;
1,683,363
private static void checkItemStack(ItemStack stack) { if (stack == null) throw new IllegalArgumentException("Stack cannot be NULL."); if (!get().CRAFT_STACK.isAssignableFrom(stack.getClass())) throw new IllegalArgumentException("Stack must be a CraftItemStack."); if (...
static void function(ItemStack stack) { if (stack == null) throw new IllegalArgumentException(STR); if (!get().CRAFT_STACK.isAssignableFrom(stack.getClass())) throw new IllegalArgumentException(STR); if (stack.getType() == Material.AIR) throw new IllegalArgumentException(STR); }
/** * Ensure that the given stack can store arbitrary NBT information. * @param stack - the stack to check. */
Ensure that the given stack can store arbitrary NBT information
checkItemStack
{ "repo_name": "Tommsy64/Satchels", "path": "src/main/java/io/github/tommsy64/satchels/item/storage/NbtFactory.java", "license": "gpl-3.0", "size": 36487 }
[ "org.bukkit.Material", "org.bukkit.inventory.ItemStack" ]
import org.bukkit.Material; import org.bukkit.inventory.ItemStack;
import org.bukkit.*; import org.bukkit.inventory.*;
[ "org.bukkit", "org.bukkit.inventory" ]
org.bukkit; org.bukkit.inventory;
921,614
private static String isValidLabel(Integer objectID, String name, boolean add, boolean addAsSubdepartment, Locale locale) { Integer parentID = null; if (addAsSubdepartment) { parentID = objectID; } List<TDepartmentBean> departmentBeans = departmentDAO.loadByName(name, parentID); if (departmentBeans==...
static String function(Integer objectID, String name, boolean add, boolean addAsSubdepartment, Locale locale) { Integer parentID = null; if (addAsSubdepartment) { parentID = objectID; } List<TDepartmentBean> departmentBeans = departmentDAO.loadByName(name, parentID); if (departmentBeans==null departmentBeans.isEmpty())...
/** * Whether the label is valid (typically not duplicated) * @param objectID * @param add * @return */
Whether the label is valid (typically not duplicated)
isValidLabel
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/admin/user/department/DepartmentBL.java", "license": "gpl-3.0", "size": 21789 }
[ "com.aurel.track.beans.TDepartmentBean", "com.aurel.track.resources.LocalizeUtil", "java.util.List", "java.util.Locale" ]
import com.aurel.track.beans.TDepartmentBean; import com.aurel.track.resources.LocalizeUtil; import java.util.List; import java.util.Locale;
import com.aurel.track.beans.*; import com.aurel.track.resources.*; import java.util.*;
[ "com.aurel.track", "java.util" ]
com.aurel.track; java.util;
637,929
@Deprecated public FormatType getFormatType() { return formatType; }
FormatType function() { return formatType; }
/** * {@link #formatType} accessor. * @return The value. **/
<code>#formatType</code> accessor
getFormatType
{ "repo_name": "skyvers/skyve", "path": "skyve-ejb/src/generated/java/modules/admin/domain/Subscription.java", "license": "lgpl-2.1", "size": 5844 }
[ "org.skyve.domain.app.admin.Communication" ]
import org.skyve.domain.app.admin.Communication;
import org.skyve.domain.app.admin.*;
[ "org.skyve.domain" ]
org.skyve.domain;
2,701,747
private TableDescriptor getTableDescriptorIndex1Scan( String tableName, String schemaUUID) throws StandardException { DataValueDescriptor schemaIDOrderable; DataValueDescriptor tableNameOrderable; TableDescriptor td; TabInfoImpl ti = coreInfo[SYSTABLES_CORE_NUM]; ...
TableDescriptor function( String tableName, String schemaUUID) throws StandardException { DataValueDescriptor schemaIDOrderable; DataValueDescriptor tableNameOrderable; TableDescriptor td; TabInfoImpl ti = coreInfo[SYSTABLES_CORE_NUM]; tableNameOrderable = new SQLVarchar(tableName); schemaIDOrderable = new SQLChar(sche...
/** * Scan systables_index1 (tablename, schemaid) for a match. * * @return TableDescriptor The matching descriptor, if any. * * @exception StandardException Thrown on failure */
Scan systables_index1 (tablename, schemaid) for a match
getTableDescriptorIndex1Scan
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/sql/catalog/DataDictionaryImpl.java", "license": "apache-2.0", "size": 403048 }
[ "com.pivotal.gemfirexd.internal.iapi.error.StandardException", "com.pivotal.gemfirexd.internal.iapi.sql.dictionary.TableDescriptor", "com.pivotal.gemfirexd.internal.iapi.sql.dictionary.TupleDescriptor", "com.pivotal.gemfirexd.internal.iapi.sql.execute.ExecIndexRow", "com.pivotal.gemfirexd.internal.iapi.sql....
import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.sql.dictionary.TableDescriptor; import com.pivotal.gemfirexd.internal.iapi.sql.dictionary.TupleDescriptor; import com.pivotal.gemfirexd.internal.iapi.sql.execute.ExecIndexRow; import com.pivotal.gemfirexd.inte...
import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.sql.dictionary.*; import com.pivotal.gemfirexd.internal.iapi.sql.execute.*; import com.pivotal.gemfirexd.internal.iapi.types.*; import java.util.*;
[ "com.pivotal.gemfirexd", "java.util" ]
com.pivotal.gemfirexd; java.util;
1,057,316
public static String format(String pattern, Object... arguments) { return MessageFormat.format(pattern, arguments); } public static final String IGNORE_INTERCEPTORS = "ignoreInterCeptors";
static String function(String pattern, Object... arguments) { return MessageFormat.format(pattern, arguments); } public static final String IGNORE_INTERCEPTORS = STR;
/** * Creates a MessageFormat with the given pattern and uses it to format the given arguments. * * @param pattern * the pattern to be substituted with given arguments * @param arguments * an array of objects to be formatted and substituted * @return formatted string * @throws ...
Creates a MessageFormat with the given pattern and uses it to format the given arguments
format
{ "repo_name": "kidaa/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/management/internal/cli/i18n/CliStrings.java", "license": "apache-2.0", "size": 231950 }
[ "java.text.MessageFormat" ]
import java.text.MessageFormat;
import java.text.*;
[ "java.text" ]
java.text;
2,088,452
void setParent(Datasource datasource);
void setParent(Datasource datasource);
/** * Sets parent datasource. * <p> * If a parent datasource is set, it will receive changed data from the current datasource on commit. * Otherwise, the datasource commits to the database. */
Sets parent datasource. If a parent datasource is set, it will receive changed data from the current datasource on commit. Otherwise, the datasource commits to the database
setParent
{ "repo_name": "cuba-platform/cuba", "path": "modules/gui/src/com/haulmont/cuba/gui/data/impl/DatasourceImplementation.java", "license": "apache-2.0", "size": 2954 }
[ "com.haulmont.cuba.gui.data.Datasource" ]
import com.haulmont.cuba.gui.data.Datasource;
import com.haulmont.cuba.gui.data.*;
[ "com.haulmont.cuba" ]
com.haulmont.cuba;
444,110
protected void closeStartTag() throws SAXException { m_elemContext.m_startTagOpen = false; final String localName = getLocalName(m_elemContext.m_elementName); final String uri = getNamespaceURI(m_elemContext.m_elementName, true); // Now is time to send the startElement event ...
void function() throws SAXException { m_elemContext.m_startTagOpen = false; final String localName = getLocalName(m_elemContext.m_elementName); final String uri = getNamespaceURI(m_elemContext.m_elementName, true); if (m_needToCallStartDocument) { startDocumentInternal(); } m_saxHandler.startElement(uri, localName, m_e...
/** * This method is called when all the data needed for a call to the * SAX handler's startElement() method has been gathered. */
This method is called when all the data needed for a call to the SAX handler's startElement() method has been gathered
closeStartTag
{ "repo_name": "md-5/jdk10", "path": "src/java.xml/share/classes/com/sun/org/apache/xml/internal/serializer/ToXMLSAXHandler.java", "license": "gpl-2.0", "size": 22952 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
2,840,027
public void playAuxSFX(int p_72926_1_, int p_72926_2_, int p_72926_3_, int p_72926_4_, int p_72926_5_) { this.playAuxSFXAtEntity((EntityPlayer)null, p_72926_1_, p_72926_2_, p_72926_3_, p_72926_4_, p_72926_5_); }
void function(int p_72926_1_, int p_72926_2_, int p_72926_3_, int p_72926_4_, int p_72926_5_) { this.playAuxSFXAtEntity((EntityPlayer)null, p_72926_1_, p_72926_2_, p_72926_3_, p_72926_4_, p_72926_5_); }
/** * See description for playAuxSFX. */
See description for playAuxSFX
playAuxSFX
{ "repo_name": "mviitanen/marsmod", "path": "mcp/src/minecraft/net/minecraft/world/World.java", "license": "gpl-2.0", "size": 144852 }
[ "net.minecraft.entity.player.EntityPlayer" ]
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
1,159,814
public Observable<ServiceResponse<ExpressRouteGatewayInner>> getByResourceGroupWithServiceResponseAsync(String resourceGroupName, String expressRouteGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); ...
Observable<ServiceResponse<ExpressRouteGatewayInner>> function(String resourceGroupName, String expressRouteGatewayName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (expressRouteGatewayName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == nul...
/** * Fetches the details of a ExpressRoute gateway in a resource group. * * @param resourceGroupName The name of the resource group. * @param expressRouteGatewayName The name of the ExpressRoute gateway. * @throws IllegalArgumentException thrown if parameters fail the validation * @return...
Fetches the details of a ExpressRoute gateway in a resource group
getByResourceGroupWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/network/v2019_11_01/implementation/ExpressRouteGatewaysInner.java", "license": "mit", "size": 41072 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
11,604
NSArray imagePasteboardTypes();
NSArray imagePasteboardTypes();
/** * Original signature : <code>NSArray* imagePasteboardTypes()</code><br> * <i>native declaration : :141</i> */
Original signature : <code>NSArray* imagePasteboardTypes()</code> native declaration : :141
imagePasteboardTypes
{ "repo_name": "iterate-ch/cyberduck", "path": "binding/src/main/java/ch/cyberduck/binding/application/NSImage.java", "license": "gpl-3.0", "size": 16533 }
[ "ch.cyberduck.binding.foundation.NSArray" ]
import ch.cyberduck.binding.foundation.NSArray;
import ch.cyberduck.binding.foundation.*;
[ "ch.cyberduck.binding" ]
ch.cyberduck.binding;
2,867,141
EDataType getTinkerBrickletTemperatureIR();
EDataType getTinkerBrickletTemperatureIR();
/** * Returns the meta object for data type '{@link com.tinkerforge.BrickletTemperatureIR <em>Tinker Bricklet Temperature IR</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for data type '<em>Tinker Bricklet Temperature IR</em>'. * @see com.tinkerforge.BrickletTemperat...
Returns the meta object for data type '<code>com.tinkerforge.BrickletTemperatureIR Tinker Bricklet Temperature IR</code>'.
getTinkerBrickletTemperatureIR
{ "repo_name": "gregfinley/openhab", "path": "bundles/binding/org.openhab.binding.tinkerforge/src/main/java/org/openhab/binding/tinkerforge/internal/model/ModelPackage.java", "license": "epl-1.0", "size": 665067 }
[ "org.eclipse.emf.ecore.EDataType" ]
import org.eclipse.emf.ecore.EDataType;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
64,200
void detach(Component component);
void detach(Component component);
/** * Allows the behavior to detach any state it has attached during request processing. * * @param component * the component that initiates the detachment of this behavior */
Allows the behavior to detach any state it has attached during request processing
detach
{ "repo_name": "Servoy/wicket", "path": "wicket/src/main/java/org/apache/wicket/behavior/IBehavior.java", "license": "apache-2.0", "size": 5340 }
[ "org.apache.wicket.Component" ]
import org.apache.wicket.Component;
import org.apache.wicket.*;
[ "org.apache.wicket" ]
org.apache.wicket;
218,977
public long getNonDfsUsed() throws IOException { long actualNonDfsUsed = getActualNonDfsUsed(); if (actualNonDfsUsed < reserved) { return 0L; } return actualNonDfsUsed - reserved; }
long function() throws IOException { long actualNonDfsUsed = getActualNonDfsUsed(); if (actualNonDfsUsed < reserved) { return 0L; } return actualNonDfsUsed - reserved; }
/** * Unplanned Non-DFS usage, i.e. Extra usage beyond reserved. * * @return * @throws IOException */
Unplanned Non-DFS usage, i.e. Extra usage beyond reserved
getNonDfsUsed
{ "repo_name": "jaypatil/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeImpl.java", "license": "gpl-3.0", "size": 46757 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
553,820
@Nullable public SMTestProxy popSuite(final String suiteName) throws EmptyStackException { if (myStack.isEmpty()) { if (SMTestRunnerConnectionUtil.isInDebugMode()) { LOG.error( "Pop error: Tests/suites stack is empty. Test runner tried to close test suite " + "which has been al...
SMTestProxy function(final String suiteName) throws EmptyStackException { if (myStack.isEmpty()) { if (SMTestRunnerConnectionUtil.isInDebugMode()) { LOG.error( STR + STR + suiteName + "]"); } return null; } final SMTestProxy topSuite = myStack.peek(); if (suiteName == null) { String msg = STR + getSuitePathPresentation...
/** * Pop element form stack and checks consistency * @param suiteName Predictable name of top suite in stack. May be null if */
Pop element form stack and checks consistency
popSuite
{ "repo_name": "MichaelNedzelsky/intellij-community", "path": "platform/smRunner/src/com/intellij/execution/testframework/sm/runner/TestSuiteStack.java", "license": "apache-2.0", "size": 4761 }
[ "com.intellij.execution.testframework.sm.SMTestRunnerConnectionUtil", "java.util.EmptyStackException" ]
import com.intellij.execution.testframework.sm.SMTestRunnerConnectionUtil; import java.util.EmptyStackException;
import com.intellij.execution.testframework.sm.*; import java.util.*;
[ "com.intellij.execution", "java.util" ]
com.intellij.execution; java.util;
795,427
private void createGame() { mGameRef = mDatabase.getReference("games").push(); Log.d(TAG, "Created game key: " + mGameRef.getKey()); mGame = new Game(); mGame.setKey(mGameRef.getKey()); mGame.setBackground("#bbbbbb"); mGameRef.setValue(mGame); mParticipantsRef...
void function() { mGameRef = mDatabase.getReference("games").push(); Log.d(TAG, STR + mGameRef.getKey()); mGame = new Game(); mGame.setKey(mGameRef.getKey()); mGame.setBackground(STR); mGameRef.setValue(mGame); mParticipantsRef = mDatabase.getReference(STR).child(mGameRef.getKey()); mParticipantsRef.child(mUser.getKey(...
/** * Create a new game and add current user as participant, start on button press */
Create a new game and add current user as participant, start on button press
createGame
{ "repo_name": "dylan8902/sgwares-android", "path": "app/src/main/java/com/sgwares/android/GameActivity.java", "license": "mit", "size": 13560 }
[ "android.util.Log", "com.sgwares.android.models.Game" ]
import android.util.Log; import com.sgwares.android.models.Game;
import android.util.*; import com.sgwares.android.models.*;
[ "android.util", "com.sgwares.android" ]
android.util; com.sgwares.android;
2,916,168
private static void checkPermission() throws SecurityException { PermissionAccessor.checkPermissions(PermissionAccessor.PERMISSION_VIDEO_SNAPSHOT); }
static void function() throws SecurityException { PermissionAccessor.checkPermissions(PermissionAccessor.PERMISSION_VIDEO_SNAPSHOT); }
/** * Check for the image snapshot permission. * * @exception SecurityException if the permission is not * allowed by this token */
Check for the image snapshot permission
checkPermission
{ "repo_name": "tommythorn/yari", "path": "shared/cacao-related/phoneme_feature/jsr135/src/components/video-renderer/classes/com/sun/mmedia/MIDPVideoRenderer.java", "license": "gpl-2.0", "size": 21467 }
[ "com.sun.mmedia.PermissionAccessor" ]
import com.sun.mmedia.PermissionAccessor;
import com.sun.mmedia.*;
[ "com.sun.mmedia" ]
com.sun.mmedia;
679,865
public final PrefixResolver getPrefixResolver() { if(null == m_prefixResolver) { m_prefixResolver = (PrefixResolver)getExpressionOwner(); } return m_prefixResolver; } // // int getAnalysis() // { // return m_analysis; // } // // void setAnalysis(int a) // { // ...
final PrefixResolver function() { if(null == m_prefixResolver) { m_prefixResolver = (PrefixResolver)getExpressionOwner(); } return m_prefixResolver; }
/** * Return the saved reference to the prefix resolver that * was in effect when this iterator was created. * * @return The prefix resolver or this iterator, which may be null. */
Return the saved reference to the prefix resolver that was in effect when this iterator was created
getPrefixResolver
{ "repo_name": "YouDiSN/OpenJDK-Research", "path": "jdk9/jaxp/src/java.xml/share/classes/com/sun/org/apache/xpath/internal/axes/LocPathIterator.java", "license": "gpl-2.0", "size": 28909 }
[ "com.sun.org.apache.xml.internal.utils.PrefixResolver" ]
import com.sun.org.apache.xml.internal.utils.PrefixResolver;
import com.sun.org.apache.xml.internal.utils.*;
[ "com.sun.org" ]
com.sun.org;
2,440,948