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
Map<String, Integer> getShardCounts() throws MessageQueueException;
Map<String, Integer> getShardCounts() throws MessageQueueException;
/** * Get the counts for each shard in the queue. This is an estimate. * This is an expensive operation and should be used sparingly. * @return * @throws MessageQueueException */
Get the counts for each shard in the queue. This is an estimate. This is an expensive operation and should be used sparingly
getShardCounts
{ "repo_name": "Netflix/astyanax", "path": "astyanax-queue/src/main/java/com/netflix/astyanax/recipes/queue/MessageQueue.java", "license": "apache-2.0", "size": 5615 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,124,708
@ApiModelProperty(example = "null", value = "Orientation of pages the watermark applies to.") public PageOrientationEnum getPageOrientation() { return pageOrientation; }
@ApiModelProperty(example = "null", value = STR) PageOrientationEnum function() { return pageOrientation; }
/** * Orientation of pages the watermark applies to. * @return pageOrientation **/
Orientation of pages the watermark applies to
getPageOrientation
{ "repo_name": "Muhimbi/PDF-Converter-Services-Online", "path": "clients/v1/java/client/src/main/java/com/muhimbi/online/client/model/LinearBarcodeWatermarkData.java", "license": "apache-2.0", "size": 31230 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
110,633
public static PubSubServer startServer(String bindToHostName, int bindToPort) throws IOException { PubSubServer server = new PubSubServer(bindToHostName, bindToPort); server.start(); return server; }
static PubSubServer function(String bindToHostName, int bindToPort) throws IOException { PubSubServer server = new PubSubServer(bindToHostName, bindToPort); server.start(); return server; }
/** Create a pub sub server, bind it to the specified hostname / port, and start the server thread * * @param bindToHostName hostname for the server to bind to * @param bindToPort port for the server to bind to * @return the started server * @throws IOException if the server could not bind to ...
Create a pub sub server, bind it to the specified hostname / port, and start the server thread
startServer
{ "repo_name": "brownsys/tracing-framework", "path": "tracingplane/pubsub/src/main/java/edu/brown/cs/systems/pubsub/PubSub.java", "license": "bsd-3-clause", "size": 5199 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,314,334
public static Date addMilliseconds(Date date, int amount) { return addMilliseconds(date, amount, TimeZones.DEFAULT); }
static Date function(Date date, int amount) { return addMilliseconds(date, amount, TimeZones.DEFAULT); }
/** * Adds a number of milliseconds to a date returning a new object. The * original date object is unchanged. * * @param date * the date, not null * @param amount * the amount to add, may be negative * @return the new date object with the amount added * @throws IllegalArgumentEx...
Adds a number of milliseconds to a date returning a new object. The original date object is unchanged
addMilliseconds
{ "repo_name": "aroychoudhury/fileanalytics", "path": "src/main/java/org/abhishek/fileanalytics/utils/DateUtils.java", "license": "gpl-2.0", "size": 7624 }
[ "java.util.Date", "org.abhishek.fileanalytics.constants.TimeZones" ]
import java.util.Date; import org.abhishek.fileanalytics.constants.TimeZones;
import java.util.*; import org.abhishek.fileanalytics.constants.*;
[ "java.util", "org.abhishek.fileanalytics" ]
java.util; org.abhishek.fileanalytics;
793,650
public int compareVersions(VersionedOntology o) throws OntopException { if (!base.equals(o.base) || !ontologyPath.equals(o.ontologyPath)) { throw new OntopException("Version comparison must be done with same ontology series."); } if (major > o.major) { return 1; ...
int function(VersionedOntology o) throws OntopException { if (!base.equals(o.base) !ontologyPath.equals(o.ontologyPath)) { throw new OntopException(STR); } if (major > o.major) { return 1; } else if (major == o.major) { if (minor > o.minor) { return 1; } else if (minor == o.minor) { return 0; } } return -1; }
/** * returns -1 if 'this' is lower than o returns 0 if 'this' is equal to o * returns 1 if 'this' is greater than o * * @param o * @return * @throws OntopException */
returns -1 if 'this' is lower than o returns 0 if 'this' is equal to o returns 1 if 'this' is greater than o
compareVersions
{ "repo_name": "thesmartenergy/ontop", "path": "ontop-maven-plugin/src/main/java/com/github/thesmartenergy/ontop/plugins/VersionedOntology.java", "license": "apache-2.0", "size": 3536 }
[ "com.github.thesmartenergy.ontop.OntopException" ]
import com.github.thesmartenergy.ontop.OntopException;
import com.github.thesmartenergy.ontop.*;
[ "com.github.thesmartenergy" ]
com.github.thesmartenergy;
19,475
public static SnapshotInfo readOptionalSnapshotInfo(StreamInput in) throws IOException { return in.readOptionalStreamable(new SnapshotInfo()); }
static SnapshotInfo function(StreamInput in) throws IOException { return in.readOptionalStreamable(new SnapshotInfo()); }
/** * Reads optional snapshot information from stream input * * @param in stream input * @return deserialized snapshot info or null * @throws IOException */
Reads optional snapshot information from stream input
readOptionalSnapshotInfo
{ "repo_name": "queirozfcom/elasticsearch", "path": "core/src/main/java/org/elasticsearch/snapshots/SnapshotInfo.java", "license": "apache-2.0", "size": 10855 }
[ "java.io.IOException", "org.elasticsearch.common.io.stream.StreamInput" ]
import java.io.IOException; import org.elasticsearch.common.io.stream.StreamInput;
import java.io.*; import org.elasticsearch.common.io.stream.*;
[ "java.io", "org.elasticsearch.common" ]
java.io; org.elasticsearch.common;
1,580,181
public JRDesignStyle[] getStylesFromTable(){ StandardTable jrTable = getStandardTable(getElement()); List<BaseColumn> columns = TableUtil.getAllColumns(jrTable); JRDesignStyle[] stylesArray = new JRDesignStyle[4]; if (columns.size()>0){ BaseColumn standardCol = columns.get(0); if (standardC...
JRDesignStyle[] function(){ StandardTable jrTable = getStandardTable(getElement()); List<BaseColumn> columns = TableUtil.getAllColumns(jrTable); JRDesignStyle[] stylesArray = new JRDesignStyle[4]; if (columns.size()>0){ BaseColumn standardCol = columns.get(0); if (standardCol.getColumnFooter() != null) stylesArray[2] =...
/** * Extract the list of styles actually used on the table * * @return the list of styles actually used in the cells of the table in this order * null (for retrocompatibility), Table Header, Column Header and Detail. */
Extract the list of styles actually used on the table
getStylesFromTable
{ "repo_name": "OpenSoftwareSolutions/PDFReporter-Studio", "path": "com.jaspersoft.studio.components/src/com/jaspersoft/studio/components/table/model/dialog/ApplyTableStyleAction.java", "license": "lgpl-3.0", "size": 15027 }
[ "java.util.List", "net.sf.jasperreports.components.table.BaseColumn", "net.sf.jasperreports.components.table.DesignCell", "net.sf.jasperreports.components.table.StandardColumn", "net.sf.jasperreports.components.table.StandardTable", "net.sf.jasperreports.components.table.util.TableUtil", "net.sf.jasperr...
import java.util.List; import net.sf.jasperreports.components.table.BaseColumn; import net.sf.jasperreports.components.table.DesignCell; import net.sf.jasperreports.components.table.StandardColumn; import net.sf.jasperreports.components.table.StandardTable; import net.sf.jasperreports.components.table.util.TableUtil; i...
import java.util.*; import net.sf.jasperreports.components.table.*; import net.sf.jasperreports.components.table.util.*; import net.sf.jasperreports.engine.design.*;
[ "java.util", "net.sf.jasperreports" ]
java.util; net.sf.jasperreports;
2,073,999
public List<TypeWrapper> getArguments() { return arguments; }
List<TypeWrapper> function() { return arguments; }
/** * Getter function * * @return List<TypeWrapper> arguments: Arguments of function declaration */
Getter function
getArguments
{ "repo_name": "klevinism/Brig", "path": "src/com/brig/parser/domain/expression/node/Function.java", "license": "mit", "size": 3908 }
[ "com.brig.parser.domain.wrapper.TypeWrapper", "java.util.List" ]
import com.brig.parser.domain.wrapper.TypeWrapper; import java.util.List;
import com.brig.parser.domain.wrapper.*; import java.util.*;
[ "com.brig.parser", "java.util" ]
com.brig.parser; java.util;
635,206
private static int read(InputStream is) throws IOException { int b = is.read(); if (b == -1) { throw new EOFException(); } return b; }
static int function(InputStream is) throws IOException { int b = is.read(); if (b == -1) { throw new EOFException(); } return b; }
/** * Simple wrapper around {@link InputStream#read()} that throws EOFException * instead of returning -1. */
Simple wrapper around <code>InputStream#read()</code> that throws EOFException instead of returning -1
read
{ "repo_name": "feimeizhan/PicS", "path": "android-volley-1.0.19/src/main/java/com/android/volley/toolbox/DiskBasedCache.java", "license": "apache-2.0", "size": 19014 }
[ "java.io.EOFException", "java.io.IOException", "java.io.InputStream" ]
import java.io.EOFException; import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,530,374
@Override public IMXMLNamespaceMapping[] getNamespaceMappings() { return namespaceMappings; }
IMXMLNamespaceMapping[] function() { return namespaceMappings; }
/** * Gets the mappings from MXML namespace URI to manifest files, as specified * by -namespace options. * * @return An array of {@code IMXMLNamespaceMapping} objects. */
Gets the mappings from MXML namespace URI to manifest files, as specified by -namespace options
getNamespaceMappings
{ "repo_name": "greg-dove/flex-falcon", "path": "compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java", "license": "apache-2.0", "size": 73716 }
[ "org.apache.flex.compiler.mxml.IMXMLNamespaceMapping" ]
import org.apache.flex.compiler.mxml.IMXMLNamespaceMapping;
import org.apache.flex.compiler.mxml.*;
[ "org.apache.flex" ]
org.apache.flex;
994,369
Set<URI> getArtifactUrls();
Set<URI> getArtifactUrls();
/** * Returns the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files. * * @return The additional URLs. Returns an empty list if there are no such URLs. */
Returns the additional URLs to use to find artifact files. Note that these URLs are not used to find POM files
getArtifactUrls
{ "repo_name": "lsmaira/gradle", "path": "subprojects/core-api/src/main/java/org/gradle/api/artifacts/repositories/MavenArtifactRepository.java", "license": "apache-2.0", "size": 4685 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,420,391
@SimpleFunction(description = "Gets the color of the specified point. " + "This includes the background and any drawn points, lines, or " + "circles but not sprites.") public int GetBackgroundPixelColor(int x, int y) { return view.getBackgroundPixelColor(x, y); }
@SimpleFunction(description = STR + STR + STR) int function(int x, int y) { return view.getBackgroundPixelColor(x, y); }
/** * <p>Gets the color of the given pixel, ignoring sprites.</p> * * @param x the x-coordinate * @param y the y-coordinate * @return the color at that location as an alpha-red-blue-green integer, * or {@link Component#COLOR_NONE} if that point is not on this Canvas */
Gets the color of the given pixel, ignoring sprites
GetBackgroundPixelColor
{ "repo_name": "Momoumar/appinventor-cdk-dev", "path": "appinventor/components/src/com/google/appinventor/components/runtime/Canvas.java", "license": "apache-2.0", "size": 52965 }
[ "com.google.appinventor.components.annotations.SimpleFunction" ]
import com.google.appinventor.components.annotations.SimpleFunction;
import com.google.appinventor.components.annotations.*;
[ "com.google.appinventor" ]
com.google.appinventor;
323,849
@Override public void close() throws IOException { closeRead(); closeWrite(); new File(path).delete(); }
void function() throws IOException { closeRead(); closeWrite(); new File(path).delete(); }
/** * Closes read and write, also deletes the file. */
Closes read and write, also deletes the file
close
{ "repo_name": "sourcewarehouse/thomasjungblut", "path": "src/de/jungblut/datastructure/DiskList.java", "license": "apache-2.0", "size": 5642 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,627,472
public static String[] getPowerModelNames() { String[] nativeModels = new String[]{"Linear", "Square root", "Square", "Cubic"}; List<String> extensionModels = ExtensionsLoader.getExtensionsAliasesByType("PowerModel"); extensionModels.addAll(Arrays.asList(nativeModels)); return exten...
static String[] function() { String[] nativeModels = new String[]{STR, STR, STR, "Cubic"}; List<String> extensionModels = ExtensionsLoader.getExtensionsAliasesByType(STR); extensionModels.addAll(Arrays.asList(nativeModels)); return extensionModels.toArray(new String[0]); }
/** * Gets all active power model aliases. * * @return an array of strings containing all active power model * aliases. * @since 1.0 */
Gets all active power model aliases
getPowerModelNames
{ "repo_name": "thiagotts/CloudReports", "path": "src/main/java/cloudreports/enums/PowerModel.java", "license": "gpl-3.0", "size": 5597 }
[ "java.util.Arrays", "java.util.List" ]
import java.util.Arrays; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,422,375
public Range cloneRange() throws DOMException;
Range function() throws DOMException;
/** * Produces a new Range whose boundary-points are equal to the * boundary-points of the Range. * @return The duplicated Range. * @exception DOMException * INVALID_STATE_ERR: Raised if <code>detach()</code> has already been * invoked on this object. */
Produces a new Range whose boundary-points are equal to the boundary-points of the Range
cloneRange
{ "repo_name": "shun634501730/java_source_cn", "path": "src_en/org/w3c/dom/ranges/Range.java", "license": "apache-2.0", "size": 18620 }
[ "org.w3c.dom.DOMException" ]
import org.w3c.dom.DOMException;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
667,651
@SuppressWarnings("unchecked") public <T> T deserialize(final Cursor cursor) { // Deserialize from cursor. return ((T) this.deserializeFromCursor(cursor)); }
@SuppressWarnings(STR) <T> T function(final Cursor cursor) { return ((T) this.deserializeFromCursor(cursor)); }
/** * Deserialize a row cursor. * Deserialization is the process of turning a stream of bytes or a cursor into an object in memory. * @param <T> * @param cursor * @return Object * Returns Bean Object from Cursor. */
Deserialize a row cursor. Deserialization is the process of turning a stream of bytes or a cursor into an object in memory
deserialize
{ "repo_name": "marcusfelipetm/jemf", "path": "src/br/ufrj/ppgi/jemf/mobile/manager/Manager.java", "license": "gpl-3.0", "size": 14131 }
[ "android.database.Cursor" ]
import android.database.Cursor;
import android.database.*;
[ "android.database" ]
android.database;
658,796
protected double getNewRIXMemoryEstimate( OptNode n, String varName, PartitionFormat dpf, LocalVariableMap vars ) throws DMLRuntimeException { double mem = -1; //not all intermediates need to be known on optimize Data dat = vars.get( varName ); if( dat != null ) { MatrixObject mo = (MatrixObject)...
double function( OptNode n, String varName, PartitionFormat dpf, LocalVariableMap vars ) throws DMLRuntimeException { double mem = -1; Data dat = vars.get( varName ); if( dat != null ) { MatrixObject mo = (MatrixObject) dat; switch( dpf._dpf ) { case COLUMN_WISE: mem = OptimizerUtils.estimateSize(mo.getNumRows(), 1); b...
/** * TODO consolidate mem estimation with Indexing Hop * * NOTE: Using the dimensions without sparsity is a conservative worst-case consideration. * * @param n internal representation of a plan alternative for program blocks and instructions * @param varName variable name * @param dpf data partition fo...
TODO consolidate mem estimation with Indexing Hop
getNewRIXMemoryEstimate
{ "repo_name": "dusenberrymw/systemml", "path": "src/main/java/org/apache/sysml/runtime/controlprogram/parfor/opt/OptimizerRuleBased.java", "license": "apache-2.0", "size": 100210 }
[ "org.apache.sysml.hops.OptimizerUtils", "org.apache.sysml.runtime.DMLRuntimeException", "org.apache.sysml.runtime.controlprogram.LocalVariableMap", "org.apache.sysml.runtime.controlprogram.ParForProgramBlock", "org.apache.sysml.runtime.controlprogram.caching.MatrixObject", "org.apache.sysml.runtime.instru...
import org.apache.sysml.hops.OptimizerUtils; import org.apache.sysml.runtime.DMLRuntimeException; import org.apache.sysml.runtime.controlprogram.LocalVariableMap; import org.apache.sysml.runtime.controlprogram.ParForProgramBlock; import org.apache.sysml.runtime.controlprogram.caching.MatrixObject; import org.apache.sys...
import org.apache.sysml.hops.*; import org.apache.sysml.runtime.*; import org.apache.sysml.runtime.controlprogram.*; import org.apache.sysml.runtime.controlprogram.caching.*; import org.apache.sysml.runtime.instructions.cp.*;
[ "org.apache.sysml" ]
org.apache.sysml;
1,270,350
synchronized public void sendBiasBytes(byte[] b) throws HardwareInterfaceException { // final int XFER_SIZE=64; if(gUsbIo==null){ log.warning("null gUsbIo, device must be opened before sending this vendor request"); return; } if(b==null){ log.warnin...
synchronized void function(byte[] b) throws HardwareInterfaceException { if(gUsbIo==null){ log.warning(STR); return; } if(b==null){ log.warning(STR); return; } USBIO_CLASS_OR_VENDOR_REQUEST vendorRequest=new USBIO_CLASS_OR_VENDOR_REQUEST(); int result; if(b==null b.length==0) { log.warning(STR); } int numXfers=1; int n...
/** Sends bytes with vendor request that signals these are bias (or other configuration) values. * These are sent as control transfers which have a maximum data packet size of 64 bytes. If there are more than 64 bytes worth of bias data, * then the transfer must be (and is automatically) * split...
Sends bytes with vendor request that signals these are bias (or other configuration) values. These are sent as control transfers which have a maximum data packet size of 64 bytes. then the transfer must be (and is automatically) split up into several control transfers and the
sendBiasBytes
{ "repo_name": "viktorbahr/jaer", "path": "src/net/sf/jaer/hardwareinterface/usb/cypressfx2/CypressFX2Biasgen.java", "license": "lgpl-2.1", "size": 7982 }
[ "de.thesycon.usbio.UsbIoInterface", "net.sf.jaer.hardwareinterface.HardwareInterfaceException" ]
import de.thesycon.usbio.UsbIoInterface; import net.sf.jaer.hardwareinterface.HardwareInterfaceException;
import de.thesycon.usbio.*; import net.sf.jaer.hardwareinterface.*;
[ "de.thesycon.usbio", "net.sf.jaer" ]
de.thesycon.usbio; net.sf.jaer;
739,291
@ServiceMethod(returns = ReturnType.SINGLE) Response<ContainerHostMappingInner> getContainerHostMappingWithResponse( String resourceGroupName, String location, ContainerHostMappingInner containerHostMapping, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<ContainerHostMappingInner> getContainerHostMappingWithResponse( String resourceGroupName, String location, ContainerHostMappingInner containerHostMapping, Context context);
/** * Returns container host mapping object for a container host resource ID if an associated controller exists. * * @param resourceGroupName Resource group to which the resource belongs. * @param location Location of the container host. * @param containerHostMapping Container host mapping obje...
Returns container host mapping object for a container host resource ID if an associated controller exists
getContainerHostMappingWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/devspaces/azure-resourcemanager-devspaces/src/main/java/com/azure/resourcemanager/devspaces/fluent/ContainerHostMappingsClient.java", "license": "mit", "size": 2872 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.devspaces.fluent.models.ContainerHostMappingInner" ]
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.devspaces.fluent.models.ContainerHostMappingInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.devspaces.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,751,849
private void initialize(final Reader xmlFileStream) { // Build a DOM model. final Document parsedDocument = XsdGeneratorHelper.parseXmlStream(xmlFileStream); // Process the DOM model. XsdGeneratorHelper.process(parsedDocument.getFirstChild(), true, new NamespaceAttributeNodeP...
void function(final Reader xmlFileStream) { final Document parsedDocument = XsdGeneratorHelper.parseXmlStream(xmlFileStream); XsdGeneratorHelper.process(parsedDocument.getFirstChild(), true, new NamespaceAttributeNodeProcessor()); }
/** * Initializes this SimpleNamespaceResolver to collect namespace data from the provided stream. * * @param xmlFileStream A Reader connected to the XML file from which we should read namespace data. */
Initializes this SimpleNamespaceResolver to collect namespace data from the provided stream
initialize
{ "repo_name": "mojohaus/jaxb2-maven-plugin", "path": "src/main/java/org/codehaus/mojo/jaxb2/schemageneration/postprocessing/schemaenhancement/SimpleNamespaceResolver.java", "license": "apache-2.0", "size": 8171 }
[ "java.io.Reader", "org.codehaus.mojo.jaxb2.schemageneration.XsdGeneratorHelper", "org.w3c.dom.Document" ]
import java.io.Reader; import org.codehaus.mojo.jaxb2.schemageneration.XsdGeneratorHelper; import org.w3c.dom.Document;
import java.io.*; import org.codehaus.mojo.jaxb2.schemageneration.*; import org.w3c.dom.*;
[ "java.io", "org.codehaus.mojo", "org.w3c.dom" ]
java.io; org.codehaus.mojo; org.w3c.dom;
1,207,534
public String[] getHighlightFields() { return this.getParams(HighlightParams.FIELDS); }
String[] function() { return this.getParams(HighlightParams.FIELDS); }
/** * get list of highlighted fields * * @return Array of highlight fields or null if not set/empty */
get list of highlighted fields
getHighlightFields
{ "repo_name": "apache/solr", "path": "solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java", "license": "apache-2.0", "size": 38572 }
[ "org.apache.solr.common.params.HighlightParams" ]
import org.apache.solr.common.params.HighlightParams;
import org.apache.solr.common.params.*;
[ "org.apache.solr" ]
org.apache.solr;
1,552,978
private void convertCSVToTable(String ppath) throws IOException { BufferedReader br = null; try { br = new BufferedReader(new FileReader(ppath)); String line = br.readLine(); while (null != line) { String[] fields = line.split(SEPARATOR); fields = removeTrailingQuotes(fields); loadDataInBd(f...
void function(String ppath) throws IOException { BufferedReader br = null; try { br = new BufferedReader(new FileReader(ppath)); String line = br.readLine(); while (null != line) { String[] fields = line.split(SEPARATOR); fields = removeTrailingQuotes(fields); loadDataInBd(fields, this.getTypeIndicator()); line = br.re...
/** * Convert result simulation to object * * @param ppath * @throws IOException */
Convert result simulation to object
convertCSVToTable
{ "repo_name": "MSMontenegro/SAE", "path": "Project/src/BusinessLogic/SoftwareArchitectureEvaluationManager.java", "license": "epl-1.0", "size": 19637 }
[ "java.io.BufferedReader", "java.io.FileReader", "java.io.IOException" ]
import java.io.BufferedReader; import java.io.FileReader; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,230,718
public boolean nextBlock() throws IOException { byte []buffer = _buffer; Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _blockId = _table.firstRowBlock(_blockId + Table.BLOCK_SIZE); if (_blockId < 0) { return false; }...
boolean function() throws IOException { byte []buffer = _buffer; Block block = _block; _block = null; _buffer = null; if (block != null) { block.free(); } _blockId = _table.firstRowBlock(_blockId + Table.BLOCK_SIZE); if (_blockId < 0) { return false; } block = _xa.readBlock(_table, _blockId); buffer = block.getBuffer()...
/** * Returns the following block. */
Returns the following block
nextBlock
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/db/table/TableIterator.java", "license": "gpl-2.0", "size": 11080 }
[ "com.caucho.db.block.Block", "java.io.IOException" ]
import com.caucho.db.block.Block; import java.io.IOException;
import com.caucho.db.block.*; import java.io.*;
[ "com.caucho.db", "java.io" ]
com.caucho.db; java.io;
2,468,007
public static void showSimpleErrorMessage(final String key, final Throwable e, final boolean displayExceptionMessage, final Object... arguments) { showSimpleErrorMessage(ApplicationFrame.getApplicationFrame(), key, e, displayExceptionMessage, arguments); }
static void function(final String key, final Throwable e, final boolean displayExceptionMessage, final Object... arguments) { showSimpleErrorMessage(ApplicationFrame.getApplicationFrame(), key, e, displayExceptionMessage, arguments); }
/** * This is the normal method which could be used by GUI classes for errors caused by some * exception (e.g. IO issues). Of course these error message methods should never be invoked by * operators or similar. * * @param key * the I18n-key which will be used to display the internationalized mes...
This is the normal method which could be used by GUI classes for errors caused by some exception (e.g. IO issues). Of course these error message methods should never be invoked by operators or similar
showSimpleErrorMessage
{ "repo_name": "rapidminer/rapidminer-studio", "path": "src/main/java/com/rapidminer/gui/tools/SwingTools.java", "license": "agpl-3.0", "size": 93902 }
[ "com.rapidminer.gui.ApplicationFrame" ]
import com.rapidminer.gui.ApplicationFrame;
import com.rapidminer.gui.*;
[ "com.rapidminer.gui" ]
com.rapidminer.gui;
1,249,760
public void testGetSimpleNested() { Object value = null; try { value = PropertyUtils.getSimpleProperty(bean, "nested.stringProperty"); fail("Should have thrown IllegaArgumentException"); } catch (IllegalAccessException e) { fail("Illeg...
void function() { Object value = null; try { value = PropertyUtils.getSimpleProperty(bean, STR); fail(STR); } catch (IllegalAccessException e) { fail(STR); } catch (IllegalArgumentException e) { } catch (InvocationTargetException e) { fail(STR); } catch (NoSuchMethodException e) { fail(STR); } }
/** * Negative test getSimpleProperty on a nested property. */
Negative test getSimpleProperty on a nested property
testGetSimpleNested
{ "repo_name": "vorburger/apache-commons-beanutils", "path": "src/test/java/org/apache/commons/beanutils/DynaPropertyUtilsTestCase.java", "license": "apache-2.0", "size": 91228 }
[ "java.lang.reflect.InvocationTargetException" ]
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
143,668
private void setOPFields(View convertView) { // Thread title TextView title = (TextView) convertView.findViewById(R.id.thread_view_op_threadTitle); // Special case of Viewing a Favourite Comment in ThreadView if (thread.getTitle().equals("")) { title.setVisibility(View.GON...
void function(View convertView) { TextView title = (TextView) convertView.findViewById(R.id.thread_view_op_threadTitle); if (thread.getTitle().equals(STRPosted by STR#STR STRnear: STRLatitude: STR Longitude: " + format.format(loc.getLongitude())); } } if (thread.getBodyComment().hasImage()) { ImageButton thumbnail = (I...
/** * Sets the required fields of the orignal post of the thread. * Title, creator, comment, timestamp, location. * * @param convertView * View container of a listView item. */
Sets the required fields of the orignal post of the thread. Title, creator, comment, timestamp, location
setOPFields
{ "repo_name": "teamshodan/GeoChan", "path": "GeoChan/src/main/java/com/teamshodan/geochan/adapters/ThreadViewAdapter.java", "license": "apache-2.0", "size": 24015 }
[ "android.view.View", "android.widget.ImageButton", "android.widget.TextView" ]
import android.view.View; import android.widget.ImageButton; import android.widget.TextView;
import android.view.*; import android.widget.*;
[ "android.view", "android.widget" ]
android.view; android.widget;
2,015,681
@Test public void testSelectWithConcatenationUsingFunction() { SelectStatement stmt = new SelectStatement(new ConcatenatedField(new FieldReference("assetDescriptionLine1"), Function .max(new FieldReference("scheduleStartDate"))).as("test")).from(new TableReference("schedule")); String result = t...
void function() { SelectStatement stmt = new SelectStatement(new ConcatenatedField(new FieldReference(STR), Function .max(new FieldReference(STR))).as("test")).from(new TableReference(STR)); String result = testDialect.convertStatementToSQL(stmt); assertEquals(STR, expectedConcatenationWithFunction(), result); }
/** * Tests concatenation in a select with {@linkplain Function}. */
Tests concatenation in a select with Function
testSelectWithConcatenationUsingFunction
{ "repo_name": "badgerwithagun/morf", "path": "morf-testsupport/src/main/java/org/alfasoftware/morf/jdbc/AbstractSqlDialectTest.java", "license": "apache-2.0", "size": 201465 }
[ "org.alfasoftware.morf.sql.SelectStatement", "org.alfasoftware.morf.sql.element.ConcatenatedField", "org.alfasoftware.morf.sql.element.FieldReference", "org.alfasoftware.morf.sql.element.Function", "org.alfasoftware.morf.sql.element.TableReference", "org.junit.Assert" ]
import org.alfasoftware.morf.sql.SelectStatement; import org.alfasoftware.morf.sql.element.ConcatenatedField; import org.alfasoftware.morf.sql.element.FieldReference; import org.alfasoftware.morf.sql.element.Function; import org.alfasoftware.morf.sql.element.TableReference; import org.junit.Assert;
import org.alfasoftware.morf.sql.*; import org.alfasoftware.morf.sql.element.*; import org.junit.*;
[ "org.alfasoftware.morf", "org.junit" ]
org.alfasoftware.morf; org.junit;
2,713,322
public static BufferedImage createBufferedImage(int w, int h, Color background, int type) { BufferedImage result = null; if (w > 0 && h > 0) { result = new BufferedImage(w, h, type); // Clears background if (background != null) { Graphics2D g2 = result.createGraphics(); clearRect(g2, ...
static BufferedImage function(int w, int h, Color background, int type) { BufferedImage result = null; if (w > 0 && h > 0) { result = new BufferedImage(w, h, type); if (background != null) { Graphics2D g2 = result.createGraphics(); clearRect(g2, new Rectangle(w, h), background); g2.dispose(); } } return result; }
/** * Creates a buffered image for the given parameters. If there is not enough * memory to create the image then a OutOfMemoryError is thrown. */
Creates a buffered image for the given parameters. If there is not enough memory to create the image then a OutOfMemoryError is thrown
createBufferedImage
{ "repo_name": "3w3rt0n/AmeacasInternas", "path": "src/com/mxgraph/util/mxUtils.java", "license": "apache-2.0", "size": 67056 }
[ "java.awt.Color", "java.awt.Graphics2D", "java.awt.Rectangle", "java.awt.image.BufferedImage" ]
import java.awt.Color; import java.awt.Graphics2D; import java.awt.Rectangle; import java.awt.image.BufferedImage;
import java.awt.*; import java.awt.image.*;
[ "java.awt" ]
java.awt;
2,632,703
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(MobaPackage.Literals.MOBA_REST__REQUEST_DTO); childrenFeatures.add(MobaPackage.Literals.MOBA_REST__RESPONSE_DTO); child...
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(MobaPackage.Literals.MOBA_REST__REQUEST_DTO); childrenFeatures.add(MobaPackage.Literals.MOBA_REST__RESPONSE_DTO); childrenFeatures.add(MobaPackage.Literals.MOBA_REST...
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "florianpirchner/mobadsl", "path": "org.mobadsl.semantic.model.edit/src/org/mobadsl/semantic/model/moba/provider/MobaRESTItemProvider.java", "license": "apache-2.0", "size": 9857 }
[ "java.util.Collection", "org.eclipse.emf.ecore.EStructuralFeature", "org.mobadsl.semantic.model.moba.MobaPackage" ]
import java.util.Collection; import org.eclipse.emf.ecore.EStructuralFeature; import org.mobadsl.semantic.model.moba.MobaPackage;
import java.util.*; import org.eclipse.emf.ecore.*; import org.mobadsl.semantic.model.moba.*;
[ "java.util", "org.eclipse.emf", "org.mobadsl.semantic" ]
java.util; org.eclipse.emf; org.mobadsl.semantic;
2,388,897
public String getCurrentTaskComment(IResource[] resources) { if (resources == null) { return null; } ITask task = getCurrentTask(); if (task == null) { return null; } boolean checkTaskRepository = true; String comment = ContextChangeSet.getComment(checkTaskRepository, task, resources); return c...
String function(IResource[] resources) { if (resources == null) { return null; } ITask task = getCurrentTask(); if (task == null) { return null; } boolean checkTaskRepository = true; String comment = ContextChangeSet.getComment(checkTaskRepository, task, resources); return comment; }
/** * Get comment for the current mylyn task. * @param resources * @return The comment created by mylyn from the task-template */
Get comment for the current mylyn task
getCurrentTaskComment
{ "repo_name": "tectronics/mercurialeclipse", "path": "plugin/src/com/vectrace/MercurialEclipse/mylyn/MylynFacadeImpl.java", "license": "epl-1.0", "size": 2574 }
[ "org.eclipse.core.resources.IResource", "org.eclipse.mylyn.internal.team.ui.ContextChangeSet", "org.eclipse.mylyn.tasks.core.ITask" ]
import org.eclipse.core.resources.IResource; import org.eclipse.mylyn.internal.team.ui.ContextChangeSet; import org.eclipse.mylyn.tasks.core.ITask;
import org.eclipse.core.resources.*; import org.eclipse.mylyn.internal.team.ui.*; import org.eclipse.mylyn.tasks.core.*;
[ "org.eclipse.core", "org.eclipse.mylyn" ]
org.eclipse.core; org.eclipse.mylyn;
2,719,071
default Optional<SlashCommandInteractionOption> getSecondOption() { return getOptionByIndex(1); }
default Optional<SlashCommandInteractionOption> getSecondOption() { return getOptionByIndex(1); }
/** * Get the second option, if present. Useful if you're working with a command that has two options. * * @return The option at index 0, if present; an empty Optional otherwise */
Get the second option, if present. Useful if you're working with a command that has two options
getSecondOption
{ "repo_name": "BtoBastian/Javacord", "path": "javacord-api/src/main/java/org/javacord/api/interaction/SlashCommandInteractionOptionsProvider.java", "license": "lgpl-3.0", "size": 22752 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
1,229,047
public void testParseAllCreatesRelocatableTags() { // close any open editors, as if the editor that we're going to open // for this test is already open, it will interfere with this test's // operation EditorUtil.closeAllOpenEditors(); // perform a parse-a...
void function() { EditorUtil.closeAllOpenEditors(); AllActivityModifier modifier = new AllActivityModifier( Domain_c.DomainInstance(modelRoot), new NullProgressMonitor()); modifier.processAllActivities(AllActivityModifier.PARSE); Relocatable relocatable = Relocatable.attributeAA; String newValue = relocatable.getOrigin...
/** * Tests that a parse-all on a model creates relocatables tags within * the model's activities. */
Tests that a parse-all on a model creates relocatables tags within the model's activities
testParseAllCreatesRelocatableTags
{ "repo_name": "kirisma/bridgepoint", "path": "src/org.xtuml.bp.ui.text.test/src/org/xtuml/bp/ui/text/test/activity/RelocatablesTest.java", "license": "apache-2.0", "size": 49772 }
[ "org.eclipse.core.runtime.NullProgressMonitor", "org.eclipse.jface.text.IDocument", "org.xtuml.bp.core.util.EditorUtil", "org.xtuml.bp.test.common.TextEditorUtils", "org.xtuml.bp.ui.text.activity.ActivityEditor", "org.xtuml.bp.ui.text.activity.AllActivityModifier" ]
import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.jface.text.IDocument; import org.xtuml.bp.core.util.EditorUtil; import org.xtuml.bp.test.common.TextEditorUtils; import org.xtuml.bp.ui.text.activity.ActivityEditor; import org.xtuml.bp.ui.text.activity.AllActivityModifier;
import org.eclipse.core.runtime.*; import org.eclipse.jface.text.*; import org.xtuml.bp.core.util.*; import org.xtuml.bp.test.common.*; import org.xtuml.bp.ui.text.activity.*;
[ "org.eclipse.core", "org.eclipse.jface", "org.xtuml.bp" ]
org.eclipse.core; org.eclipse.jface; org.xtuml.bp;
906,964
AbstractJcrNode node( NodeKey nodeKey, AbstractJcrNode.Type expectedType, NodeKey parentKey ) throws ItemNotFoundException { CachedNode cachedNode = cache.getNode(nodeKey); if (cachedNode == null) { // The node must not exist or must ha...
AbstractJcrNode node( NodeKey nodeKey, AbstractJcrNode.Type expectedType, NodeKey parentKey ) throws ItemNotFoundException { CachedNode cachedNode = cache.getNode(nodeKey); if (cachedNode == null) { throw new ItemNotFoundException(nodeKey.toString()); } AbstractJcrNode node = jcrNodes.get(nodeKey); if (node == null) { ...
/** * Obtain the {@link Node JCR Node} object for the node with the supplied key. * * @param nodeKey the node's key * @param expectedType the expected implementation type for the node, or null if it is not known * @param parentKey the node key for the parent node, or null if the parent is not k...
Obtain the <code>Node JCR Node</code> object for the node with the supplied key
node
{ "repo_name": "jasperstein/modeshape", "path": "modeshape-jcr/src/main/java/org/modeshape/jcr/JcrSession.java", "license": "apache-2.0", "size": 116157 }
[ "javax.jcr.ItemNotFoundException", "org.modeshape.jcr.AbstractJcrNode", "org.modeshape.jcr.cache.CachedNode", "org.modeshape.jcr.cache.NodeKey" ]
import javax.jcr.ItemNotFoundException; import org.modeshape.jcr.AbstractJcrNode; import org.modeshape.jcr.cache.CachedNode; import org.modeshape.jcr.cache.NodeKey;
import javax.jcr.*; import org.modeshape.jcr.*; import org.modeshape.jcr.cache.*;
[ "javax.jcr", "org.modeshape.jcr" ]
javax.jcr; org.modeshape.jcr;
2,693,468
public List<SymbolicPolynomial> generators(int modv) { List<? extends IExpr> cogens = coFac.generators(); List<? extends SymbolicPolynomial> univs = univariateList(modv); List<SymbolicPolynomial> gens = new ArrayList<SymbolicPolynomial>(univs.size() + cogens.size()); for (IExpr c : cogens) { gen...
List<SymbolicPolynomial> function(int modv) { List<? extends IExpr> cogens = coFac.generators(); List<? extends SymbolicPolynomial> univs = univariateList(modv); List<SymbolicPolynomial> gens = new ArrayList<SymbolicPolynomial>(univs.size() + cogens.size()); for (IExpr c : cogens) { gens.add(getOne().multiply(c)); } ge...
/** * Get a list of the generating elements excluding the module variables. * * @param modv number of module variables * @return list of generators for the polynomial ring. */
Get a list of the generating elements excluding the module variables
generators
{ "repo_name": "axkr/symja_android_library", "path": "symja_android_library/matheclipse-core/src/main/java/org/matheclipse/core/polynomials/symbolicexponent/SymbolicPolynomialRing.java", "license": "gpl-3.0", "size": 45623 }
[ "java.util.ArrayList", "java.util.List", "org.matheclipse.core.interfaces.IExpr" ]
import java.util.ArrayList; import java.util.List; import org.matheclipse.core.interfaces.IExpr;
import java.util.*; import org.matheclipse.core.interfaces.*;
[ "java.util", "org.matheclipse.core" ]
java.util; org.matheclipse.core;
1,065,789
@SuppressWarnings("unused") protected void doAccounting(TrafficCounter counter) { // NOOP by default } private static final class ReopenReadTimerTask implements Runnable { final ChannelHandlerContext ctx; ReopenReadTimerTask(ChannelHandlerContext ctx) { this.ctx...
@SuppressWarnings(STR) void function(TrafficCounter counter) { } private static final class ReopenReadTimerTask implements Runnable { final ChannelHandlerContext ctx; ReopenReadTimerTask(ChannelHandlerContext ctx) { this.ctx = ctx; }
/** * Called each time the accounting is computed from the TrafficCounters. * This method could be used for instance to implement almost real time accounting. * * @param counter * the TrafficCounter that computes its performance */
Called each time the accounting is computed from the TrafficCounters. This method could be used for instance to implement almost real time accounting
doAccounting
{ "repo_name": "menacher/netty", "path": "handler/src/main/java/io/netty/handler/traffic/AbstractTrafficShapingHandler.java", "license": "apache-2.0", "size": 11450 }
[ "io.netty.channel.ChannelHandlerContext" ]
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.*;
[ "io.netty.channel" ]
io.netty.channel;
481,297
@Transient public List<RecipientScheduledNotification> getRecipientScheduledNotification() { return lazyListHelper.getLazyList(RecipientScheduledNotification.class); }
List<RecipientScheduledNotification> function() { return lazyListHelper.getLazyList(RecipientScheduledNotification.class); }
/** * Gets the recipient scheduled notification. * * @return the recipient scheduled notification */
Gets the recipient scheduled notification
getRecipientScheduledNotification
{ "repo_name": "NCIP/c3pr", "path": "codebase/projects/core/src/java/edu/duke/cabig/c3pr/domain/ScheduledNotification.java", "license": "bsd-3-clause", "size": 5130 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
403,915
void deleteUser(String userId) throws UserException;
void deleteUser(String userId) throws UserException;
/** * Deletes a user by the given id * @param userId The id of the user to delete * @throws UserException */
Deletes a user by the given id
deleteUser
{ "repo_name": "vmatha002c/dawg", "path": "libraries/dawg-server-common/src/main/java/com/comcast/video/dawg/common/security/service/UserService.java", "license": "apache-2.0", "size": 1977 }
[ "com.comcast.video.dawg.common.exceptions.UserException" ]
import com.comcast.video.dawg.common.exceptions.UserException;
import com.comcast.video.dawg.common.exceptions.*;
[ "com.comcast.video" ]
com.comcast.video;
256,015
public String addMediaToItemGrading(String mediaLocation) { log.debug("****"+mediaLocation+" "+(new Date())); if (!mediaIsValid()) { reload = true; return "takeAssessment"; } GradingService gradingService = new GradingService(); //PublishedAssessmentService publishedServ...
String function(String mediaLocation) { log.debug("****"+mediaLocation+" "+(new Date())); if (!mediaIsValid()) { reload = true; return STR; } GradingService gradingService = new GradingService(); HashMap itemHash = getPublishedItemHash(); PersonBean person = (PersonBean) ContextUtil.lookupBean(STR); String agent = pers...
/** * This method is used by jsf/delivery/deliverAudioRecording.jsp and * is called by addMediaToItemGrading(javax.faces.event.ValueChangeEvent e) * * @param mediaLocation the media location * @return the action string */
This method is used by jsf/delivery/deliverAudioRecording.jsp and is called by addMediaToItemGrading(javax.faces.event.ValueChangeEvent e)
addMediaToItemGrading
{ "repo_name": "harfalm/Sakai-10.1", "path": "samigo/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/delivery/DeliveryBean.java", "license": "apache-2.0", "size": 109185 }
[ "java.util.Date", "java.util.HashMap", "org.sakaiproject.tool.assessment.data.dao.assessment.PublishedItemData", "org.sakaiproject.tool.assessment.data.dao.assessment.PublishedItemText", "org.sakaiproject.tool.assessment.data.dao.grading.ItemGradingData", "org.sakaiproject.tool.assessment.services.Grading...
import java.util.Date; import java.util.HashMap; import org.sakaiproject.tool.assessment.data.dao.assessment.PublishedItemData; import org.sakaiproject.tool.assessment.data.dao.assessment.PublishedItemText; import org.sakaiproject.tool.assessment.data.dao.grading.ItemGradingData; import org.sakaiproject.tool.assessment...
import java.util.*; import org.sakaiproject.tool.assessment.data.dao.assessment.*; import org.sakaiproject.tool.assessment.data.dao.grading.*; import org.sakaiproject.tool.assessment.services.*; import org.sakaiproject.tool.assessment.ui.bean.shared.*; import org.sakaiproject.tool.assessment.ui.listener.delivery.*; imp...
[ "java.util", "org.sakaiproject.tool" ]
java.util; org.sakaiproject.tool;
1,427,816
@Test public void testOnConnectionChangedAddedPre_Lower() throws Exception { createPowerSpy(); ComponentConnection curr = new ComponentConnectionLogicAndNetwork( "ObjectId", "lower", "ConnectionState", "ObjectId", "NetworkId"); ComponentConnectionChanged message = new ComponentCon...
void function() throws Exception { createPowerSpy(); ComponentConnection curr = new ComponentConnectionLogicAndNetwork( STR, "lower", STR, STR, STR); ComponentConnectionChanged message = new ComponentConnectionChanged( STR, null, curr); boolean result = target.onConnectionChangedAddedPre(message); assertThat(result, is...
/** * Test method for {@link org.o3project.odenos.component.linklayerizer.LinkLayerizer#onConnectionChangedAddedPre(org.o3project.odenos.core.manager.system.event.ComponentConnectionChanged)}. * @throws Exception */
Test method for <code>org.o3project.odenos.component.linklayerizer.LinkLayerizer#onConnectionChangedAddedPre(org.o3project.odenos.core.manager.system.event.ComponentConnectionChanged)</code>
testOnConnectionChangedAddedPre_Lower
{ "repo_name": "y-higuchi/odenos", "path": "src/test/java/org/o3project/odenos/component/linklayerizer/LinkLayerizerTest.java", "license": "apache-2.0", "size": 128002 }
[ "org.hamcrest.CoreMatchers", "org.junit.Assert", "org.o3project.odenos.core.manager.system.ComponentConnection", "org.o3project.odenos.core.manager.system.ComponentConnectionLogicAndNetwork", "org.o3project.odenos.core.manager.system.event.ComponentConnectionChanged" ]
import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.o3project.odenos.core.manager.system.ComponentConnection; import org.o3project.odenos.core.manager.system.ComponentConnectionLogicAndNetwork; import org.o3project.odenos.core.manager.system.event.ComponentConnectionChanged;
import org.hamcrest.*; import org.junit.*; import org.o3project.odenos.core.manager.system.*; import org.o3project.odenos.core.manager.system.event.*;
[ "org.hamcrest", "org.junit", "org.o3project.odenos" ]
org.hamcrest; org.junit; org.o3project.odenos;
2,141,776
public void blend(TextureBlender textureBlender, TriangulatedTexture baseTexture, BlenderContext blenderContext) { Format newFormat = null; for (TriangleTextureElement triangleTextureElement : faceTextures) { Image baseImage = baseTexture == null ? null : baseTexture.getFaceTextureElemen...
void function(TextureBlender textureBlender, TriangulatedTexture baseTexture, BlenderContext blenderContext) { Format newFormat = null; for (TriangleTextureElement triangleTextureElement : faceTextures) { Image baseImage = baseTexture == null ? null : baseTexture.getFaceTextureElement(triangleTextureElement.faceIndex)....
/** * This method blends the each image using the given blender and taking base * texture into consideration. * * @param textureBlender * the texture blender that holds the blending definition * @param baseTexture * the texture that is 'below' the current textur...
This method blends the each image using the given blender and taking base texture into consideration
blend
{ "repo_name": "PlanetWaves/clockworkengine", "path": "trunk/jme3-blender/src/main/java/com/jme3/scene/plugins/blender/textures/TriangulatedTexture.java", "license": "apache-2.0", "size": 29422 }
[ "com.jme3.scene.plugins.blender.BlenderContext", "com.jme3.scene.plugins.blender.textures.blending.TextureBlender", "com.jme3.texture.Image" ]
import com.jme3.scene.plugins.blender.BlenderContext; import com.jme3.scene.plugins.blender.textures.blending.TextureBlender; import com.jme3.texture.Image;
import com.jme3.scene.plugins.blender.*; import com.jme3.scene.plugins.blender.textures.blending.*; import com.jme3.texture.*;
[ "com.jme3.scene", "com.jme3.texture" ]
com.jme3.scene; com.jme3.texture;
1,109,202
private void updateJenkinsExeIfNeeded() { try { File baseDir = getBaseDir(); URL exe = getClass().getResource("/windows-service/jenkins.exe"); String ourCopy = Util.getDigestOf(exe.openStream()); for (String name : new String[]{"hudson.exe","jenkins.exe"}) {...
void function() { try { File baseDir = getBaseDir(); URL exe = getClass().getResource(STR); String ourCopy = Util.getDigestOf(exe.openStream()); for (String name : new String[]{STR,STR}) { try { File currentCopy = new File(baseDir,name); if(!currentCopy.exists()) continue; String curCopy = new FilePath(currentCopy).dig...
/** * If {@code jenkins.exe} is old compared to our copy, * schedule an overwrite (except that since it's currently running, * we can only do it when Jenkins restarts next time.) */
If jenkins.exe is old compared to our copy, schedule an overwrite (except that since it's currently running, we can only do it when Jenkins restarts next time.)
updateJenkinsExeIfNeeded
{ "repo_name": "bkmeneguello/jenkins", "path": "core/src/main/java/hudson/lifecycle/WindowsServiceLifecycle.java", "license": "mit", "size": 6457 }
[ "hudson.util.jna.Kernel32", "java.io.File", "java.io.IOException", "java.util.logging.Level", "org.apache.commons.io.FileUtils" ]
import hudson.util.jna.Kernel32; import java.io.File; import java.io.IOException; import java.util.logging.Level; import org.apache.commons.io.FileUtils;
import hudson.util.jna.*; import java.io.*; import java.util.logging.*; import org.apache.commons.io.*;
[ "hudson.util.jna", "java.io", "java.util", "org.apache.commons" ]
hudson.util.jna; java.io; java.util; org.apache.commons;
602,274
public Locale getLocale() { return locale; }
Locale function() { return locale; }
/** * return the current Locale */
return the current Locale
getLocale
{ "repo_name": "ptrptr/power-architect", "path": "src/main/java/ca/sqlpower/architect/LocaleChooser.java", "license": "gpl-3.0", "size": 3759 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
68,047
public void destroy() { try { if (m_projectDriver != null) { try { m_projectDriver.destroy(); } catch (Throwable t) { LOG.error(Messages.get().getBundle().key(Messages.ERR_CLOSE_PROJECT_DRIVER_0), t); } ...
void function() { try { if (m_projectDriver != null) { try { m_projectDriver.destroy(); } catch (Throwable t) { LOG.error(Messages.get().getBundle().key(Messages.ERR_CLOSE_PROJECT_DRIVER_0), t); } m_projectDriver = null; } if (m_userDriver != null) { try { m_userDriver.destroy(); } catch (Throwable t) { LOG.error(Messa...
/** * Destroys this driver manager and releases all allocated resources.<p> */
Destroys this driver manager and releases all allocated resources
destroy
{ "repo_name": "ggiudetti/opencms-core", "path": "src/org/opencms/db/CmsDriverManager.java", "license": "lgpl-2.1", "size": 494693 }
[ "org.apache.commons.dbcp.PoolingDriver", "org.opencms.main.CmsLog" ]
import org.apache.commons.dbcp.PoolingDriver; import org.opencms.main.CmsLog;
import org.apache.commons.dbcp.*; import org.opencms.main.*;
[ "org.apache.commons", "org.opencms.main" ]
org.apache.commons; org.opencms.main;
2,877,352
@Override public void sessionInvalidate(HttpSession session, boolean isTimeout) { //LoginPrincipal login = (LoginPrincipal) session.getAttribute(LOGIN_NAME); if (session != null) { SingleSignon singleSignon = getSingleSignon(); // server/12cg if (singleS...
void function(HttpSession session, boolean isTimeout) { if (session != null) { SingleSignon singleSignon = getSingleSignon(); if (singleSignon != null && (! isTimeout isLogoutOnSessionTimeout())) { singleSignon.remove(session.getId()); } } }
/** * Called when the session invalidates. */
Called when the session invalidates
sessionInvalidate
{ "repo_name": "WelcomeHUME/svn-caucho-com-resin", "path": "modules/resin/src/com/caucho/security/AbstractLogin.java", "license": "gpl-2.0", "size": 20066 }
[ "javax.servlet.http.HttpSession" ]
import javax.servlet.http.HttpSession;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
1,019,855
private CssValueNode flipPercentageValueNode(CssValueNode valueNode) { if (!isNumericAndHasPercentage(valueNode)) { return valueNode; } CssNumericNode numericNode = (CssNumericNode) valueNode; String oldPercentageValue = numericNode.getNumericPart(); double newPercentValue = 100 - Double.pa...
CssValueNode function(CssValueNode valueNode) { if (!isNumericAndHasPercentage(valueNode)) { return valueNode; } CssNumericNode numericNode = (CssNumericNode) valueNode; String oldPercentageValue = numericNode.getNumericPart(); double newPercentValue = 100 - Double.parseDouble(oldPercentageValue); CssValueNode newNumer...
/** * Sets the percentage to flipped value(100 - 'old value'), if the node is * valid numeric node with percentage. */
Sets the percentage to flipped value(100 - 'old value'), if the node is valid numeric node with percentage
flipPercentageValueNode
{ "repo_name": "StefanLiebenberg/closure-stylesheets", "path": "src/com/google/common/css/compiler/passes/BiDiFlipper.java", "license": "apache-2.0", "size": 24378 }
[ "com.google.common.css.compiler.ast.CssNumericNode", "com.google.common.css.compiler.ast.CssValueNode" ]
import com.google.common.css.compiler.ast.CssNumericNode; import com.google.common.css.compiler.ast.CssValueNode;
import com.google.common.css.compiler.ast.*;
[ "com.google.common" ]
com.google.common;
1,627,389
EndStep group(@Nullable String name);
EndStep group(@Nullable String name);
/** * Sets the group of the recipe. * * @param name the group * * @return This builder, for chaining */
Sets the group of the recipe
group
{ "repo_name": "SpongePowered/SpongeAPI", "path": "src/main/java/org/spongepowered/api/item/recipe/crafting/ShapelessCraftingRecipe.java", "license": "mit", "size": 5975 }
[ "org.checkerframework.checker.nullness.qual.Nullable" ]
import org.checkerframework.checker.nullness.qual.Nullable;
import org.checkerframework.checker.nullness.qual.*;
[ "org.checkerframework.checker" ]
org.checkerframework.checker;
1,350,623
public EClass getNameTypeAuthority() { if (nameTypeAuthorityEClass == null) { nameTypeAuthorityEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI).getEClassifiers().get(1); } return nameTypeAuthorityEClass; }
EClass function() { if (nameTypeAuthorityEClass == null) { nameTypeAuthorityEClass = (EClass)EPackage.Registry.INSTANCE.getEPackage(CorePackage.eNS_URI).getEClassifiers().get(1); } return nameTypeAuthorityEClass; }
/** * Returns the meta object for class '{@link CIM15.IEC61970.Core.NameTypeAuthority <em>Name Type Authority</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Name Type Authority</em>'. * @see CIM15.IEC61970.Core.NameTypeAuthority * @generated */
Returns the meta object for class '<code>CIM15.IEC61970.Core.NameTypeAuthority Name Type Authority</code>'.
getNameTypeAuthority
{ "repo_name": "SES-fortiss/SmartGridCoSimulation", "path": "core/cim15/src/CIM15/IEC61970/Core/CorePackage.java", "license": "apache-2.0", "size": 304427 }
[ "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EPackage" ]
import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
507,296
private String determineBuildDir() throws BuildException { // first try ant property. String dir = getProject().getProperty(FORMIC_BUILDDIR_PROPERTY); return dir != null ? AntUtils.resolve(getProject(), dir) : AntUtils.resolve(getProject(), DEFAULT_BUILDDIR); }
String function() throws BuildException { String dir = getProject().getProperty(FORMIC_BUILDDIR_PROPERTY); return dir != null ? AntUtils.resolve(getProject(), dir) : AntUtils.resolve(getProject(), DEFAULT_BUILDDIR); }
/** * Determines the build directory. * * @return The build directory. */
Determines the build directory
determineBuildDir
{ "repo_name": "ervandew/formic", "path": "src/java/org/formic/ant/PackageTask.java", "license": "lgpl-2.1", "size": 6195 }
[ "org.apache.tools.ant.BuildException", "org.formic.ant.util.AntUtils" ]
import org.apache.tools.ant.BuildException; import org.formic.ant.util.AntUtils;
import org.apache.tools.ant.*; import org.formic.ant.util.*;
[ "org.apache.tools", "org.formic.ant" ]
org.apache.tools; org.formic.ant;
2,653,189
public StepMeta getStep( int x, int y, int iconsize ) { int i, s; s = steps.size(); for ( i = s - 1; i >= 0; i-- ) // Back to front because drawing goes from start to end { StepMeta stepMeta = steps.get( i ); if ( partOfTransHop( stepMeta ) || stepMeta.isDrawn() ) // Only consider steps fr...
StepMeta function( int x, int y, int iconsize ) { int i, s; s = steps.size(); for ( i = s - 1; i >= 0; i-- ) { StepMeta stepMeta = steps.get( i ); if ( partOfTransHop( stepMeta ) stepMeta.isDrawn() ) { Point p = stepMeta.getLocation(); if ( p != null ) { if ( x >= p.x && x <= p.x + iconsize && y >= p.y && y <= p.y + ic...
/** * Find the step that is located on a certain point on the canvas, taking into account the icon size. * * @param x * the x-coordinate of the point queried * @param y * the y-coordinate of the point queried * @param iconsize * the iconsize * @return The step infor...
Find the step that is located on a certain point on the canvas, taking into account the icon size
getStep
{ "repo_name": "airy-ict/pentaho-kettle", "path": "engine/src/org/pentaho/di/trans/TransMeta.java", "license": "apache-2.0", "size": 219546 }
[ "org.pentaho.di.core.gui.Point", "org.pentaho.di.trans.step.StepMeta" ]
import org.pentaho.di.core.gui.Point; import org.pentaho.di.trans.step.StepMeta;
import org.pentaho.di.core.gui.*; import org.pentaho.di.trans.step.*;
[ "org.pentaho.di" ]
org.pentaho.di;
457,644
@Test void testAddFeatures() { final Media media = Medias.create("Features.xml"); final Xml root = new Xml(FeaturableConfig.NODE_FEATURABLE); final Xml unknown = root.createChild(FeaturableConfig.NODE_FEATURE); unknown.setText(MyFeature.class.getName()); ro...
void testAddFeatures() { final Media media = Medias.create(STR); final Xml root = new Xml(FeaturableConfig.NODE_FEATURABLE); final Xml unknown = root.createChild(FeaturableConfig.NODE_FEATURE); unknown.setText(MyFeature.class.getName()); root.save(media); Featurable featurable = new FeaturableModel(new Services(), new ...
/** * Test the add features. */
Test the add features
testAddFeatures
{ "repo_name": "b3dgs/lionengine", "path": "lionengine-game/src/test/java/com/b3dgs/lionengine/game/feature/FeaturableModelTest.java", "license": "gpl-3.0", "size": 10240 }
[ "com.b3dgs.lionengine.Media", "com.b3dgs.lionengine.Medias", "com.b3dgs.lionengine.UtilAssert", "com.b3dgs.lionengine.UtilFile", "com.b3dgs.lionengine.Xml", "com.b3dgs.lionengine.game.Feature" ]
import com.b3dgs.lionengine.Media; import com.b3dgs.lionengine.Medias; import com.b3dgs.lionengine.UtilAssert; import com.b3dgs.lionengine.UtilFile; import com.b3dgs.lionengine.Xml; import com.b3dgs.lionengine.game.Feature;
import com.b3dgs.lionengine.*; import com.b3dgs.lionengine.game.*;
[ "com.b3dgs.lionengine" ]
com.b3dgs.lionengine;
2,127,328
//------------------------- AUTOGENERATED START ------------------------- public static AddressResult.Meta meta() { return AddressResult.Meta.INSTANCE; } static { MetaBean.register(AddressResult.Meta.INSTANCE); }
static AddressResult.Meta function() { return AddressResult.Meta.INSTANCE; } static { MetaBean.register(AddressResult.Meta.INSTANCE); }
/** * The meta-bean for {@code AddressResult}. * @return the meta-bean, not null */
The meta-bean for AddressResult
meta
{ "repo_name": "JodaOrg/joda-beans", "path": "src/test/java/org/joda/beans/sample/AddressResult.java", "license": "apache-2.0", "size": 3911 }
[ "org.joda.beans.MetaBean" ]
import org.joda.beans.MetaBean;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
1,459,015
@SmallTest @Feature("MultiWindow") public void testTabbedActivityForIntentWithExtraWindowId() throws InterruptedException { ChromeTabbedActivity activity1 = getActivity(); createSecondChromeTabbedActivity(activity1); Intent intent = activity1.getIntent(); intent.putExtra(Int...
@Feature(STR) void function() throws InterruptedException { ChromeTabbedActivity activity1 = getActivity(); createSecondChromeTabbedActivity(activity1); Intent intent = activity1.getIntent(); intent.putExtra(IntentHandler.EXTRA_WINDOW_ID, 2); assertEquals(STR, ChromeTabbedActivity2.class, MultiWindowUtils.getInstance()...
/** * Tests that ChromeTabbedActivity2 is used for intents when EXTRA_WINDOW_ID is set to 2. */
Tests that ChromeTabbedActivity2 is used for intents when EXTRA_WINDOW_ID is set to 2
testTabbedActivityForIntentWithExtraWindowId
{ "repo_name": "danakj/chromium", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/multiwindow/MultiWindowUtilsTest.java", "license": "bsd-3-clause", "size": 8667 }
[ "android.content.Intent", "org.chromium.base.test.util.Feature", "org.chromium.chrome.browser.ChromeTabbedActivity", "org.chromium.chrome.browser.ChromeTabbedActivity2", "org.chromium.chrome.browser.IntentHandler" ]
import android.content.Intent; import org.chromium.base.test.util.Feature; import org.chromium.chrome.browser.ChromeTabbedActivity; import org.chromium.chrome.browser.ChromeTabbedActivity2; import org.chromium.chrome.browser.IntentHandler;
import android.content.*; import org.chromium.base.test.util.*; import org.chromium.chrome.browser.*;
[ "android.content", "org.chromium.base", "org.chromium.chrome" ]
android.content; org.chromium.base; org.chromium.chrome;
2,528,706
public void writeData(Path filePath, FileType type) throws IOException;
void function(Path filePath, FileType type) throws IOException;
/** * Writes the data to a file * * @param filePath the path of the file to be written * @param type the type of the file * @throws IOException if the file can not be written */
Writes the data to a file
writeData
{ "repo_name": "unoinformatics/informatics-common", "path": "informatics-data/informatics-data-api/src/main/java/uno/informatics/data/dataset/FeatureData.java", "license": "apache-2.0", "size": 3666 }
[ "java.io.IOException", "java.nio.file.Path", "uno.informatics.data.io.FileType" ]
import java.io.IOException; import java.nio.file.Path; import uno.informatics.data.io.FileType;
import java.io.*; import java.nio.file.*; import uno.informatics.data.io.*;
[ "java.io", "java.nio", "uno.informatics.data" ]
java.io; java.nio; uno.informatics.data;
908,672
public static Class<?> getClass(Type type) { if (type instanceof Class) { return (Class) type; } else if (type instanceof ParameterizedType) { return getClass(((ParameterizedType) type).getRawType()); } else if (type instanceof GenericArrayType...
static Class<?> function(Type type) { if (type instanceof Class) { return (Class) type; } else if (type instanceof ParameterizedType) { return getClass(((ParameterizedType) type).getRawType()); } else if (type instanceof GenericArrayType) { Type componentType = ((GenericArrayType) type).getGenericComponentType(); Class...
/** * Get the underlying class for a type, or null if the type is a variable type. * * @param type the type * @return the underlying class */
Get the underlying class for a type, or null if the type is a variable type
getClass
{ "repo_name": "TrueNight/Utils", "path": "android-utils/src/main/java/xyz/truenight/utils/log/Dumper.java", "license": "apache-2.0", "size": 112729 }
[ "java.lang.reflect.Array", "java.lang.reflect.GenericArrayType", "java.lang.reflect.ParameterizedType", "java.lang.reflect.Type" ]
import java.lang.reflect.Array; import java.lang.reflect.GenericArrayType; import java.lang.reflect.ParameterizedType; import java.lang.reflect.Type;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
1,077,929
@Override public Representation getEntity() { return getWrappedResponse().getEntity(); }
Representation function() { return getWrappedResponse().getEntity(); }
/** * Returns the entity representation. * * @return The entity representation. */
Returns the entity representation
getEntity
{ "repo_name": "debrief/debrief", "path": "org.mwc.asset.comms/docs/restlet_src/org.restlet/org/restlet/util/WrapperResponse.java", "license": "epl-1.0", "size": 16508 }
[ "org.restlet.representation.Representation" ]
import org.restlet.representation.Representation;
import org.restlet.representation.*;
[ "org.restlet.representation" ]
org.restlet.representation;
2,242,075
protected TiePointGrid createTiePointGrid(String gridName, int gridWidth, int gridHeight, float offsetX, float offsetY, ...
TiePointGrid function(String gridName, int gridWidth, int gridHeight, float offsetX, float offsetY, float subSamplingX, float subSamplingY, float[] tiePoints) { final int gridDiscontinutity = getGridDiscontinutity(gridName); if (gridDiscontinutity != 0) { Debug.trace(STR + gridName + STR + gridDiscontinutity + STR); } ...
/** * Creates a tie point grid from the given properties. * <p>The method uses the {@link #getGridDiscontinutity(String)} method in order to * creater an appropriate angular tie-point grids. * * @param gridName the grid name * @param gridWidth the grid's raster width * @param g...
Creates a tie point grid from the given properties. The method uses the <code>#getGridDiscontinutity(String)</code> method in order to creater an appropriate angular tie-point grids
createTiePointGrid
{ "repo_name": "seadas/beam", "path": "beam-core/src/main/java/org/esa/beam/framework/dataio/AbstractProductReader.java", "license": "gpl-3.0", "size": 23565 }
[ "org.esa.beam.framework.datamodel.TiePointGrid", "org.esa.beam.util.Debug" ]
import org.esa.beam.framework.datamodel.TiePointGrid; import org.esa.beam.util.Debug;
import org.esa.beam.framework.datamodel.*; import org.esa.beam.util.*;
[ "org.esa.beam" ]
org.esa.beam;
2,194,055
public Map<Integer, Configuration> configurations() { if(this._configurations == null) { this.configurations(GameManager.accounts.configurations().byHangarsID(super.id())); } return this._configurations; } //</editor-fold> ///////////////////////////// // End...
Map<Integer, Configuration> function() { if(this._configurations == null) { this.configurations(GameManager.accounts.configurations().byHangarsID(super.id())); } return this._configurations; }
/** * Returns hangar configurations. * * @return Hangar configurations. */
Returns hangar configurations
configurations
{ "repo_name": "RikkaBot/RikkaBot-core", "path": "testing/BlackEye's DAO/accounts/hangars/Hangar.java", "license": "mit", "size": 3518 }
[ "com.manulaiko.blackeye.launcher.GameManager", "com.rikkabot.rikkabotcore.dao.accounts.configurations.Configuration", "java.util.Map" ]
import com.manulaiko.blackeye.launcher.GameManager; import com.rikkabot.rikkabotcore.dao.accounts.configurations.Configuration; import java.util.Map;
import com.manulaiko.blackeye.launcher.*; import com.rikkabot.rikkabotcore.dao.accounts.configurations.*; import java.util.*;
[ "com.manulaiko.blackeye", "com.rikkabot.rikkabotcore", "java.util" ]
com.manulaiko.blackeye; com.rikkabot.rikkabotcore; java.util;
2,703,092
public Node replaceChild(Node newChild, Node oldChild) throws DOMException { int index = ((LeafNodeImpl) oldChild).index; removeChild(oldChild); insertChildAt(newChild, index); return oldChild; }
Node function(Node newChild, Node oldChild) throws DOMException { int index = ((LeafNodeImpl) oldChild).index; removeChild(oldChild); insertChildAt(newChild, index); return oldChild; }
/** * Removes {@code oldChild} and adds {@code newChild} in its place. This * is not atomic. */
Removes oldChild and adds newChild in its place. This is not atomic
replaceChild
{ "repo_name": "thahn0720/agui_framework", "path": "agui_framework/src/main/java/org/apache/harmony/xml/dom/InnerNodeImpl.java", "license": "mit", "size": 8538 }
[ "org.w3c.dom.DOMException", "org.w3c.dom.Node" ]
import org.w3c.dom.DOMException; import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
2,679,303
@Override public void update(RequestContext context, String path, ResourceState state, Consumer<ClientResourceResponse> handler) { ResourceRequest request = new DefaultResourceRequest.Builder(RequestType.UPDATE, new ResourcePath(path)) .resourceState(state) .requestContex...
void function(RequestContext context, String path, ResourceState state, Consumer<ClientResourceResponse> handler) { ResourceRequest request = new DefaultResourceRequest.Builder(RequestType.UPDATE, new ResourcePath(path)) .resourceState(state) .requestContext(context) .build(); this.connection.write(new ClientRequest(re...
/** * Perform an asynchronous UPDATE action. * <p> * <p>UPDATE has UPSERT semantics, in that if an attempt to * update a non-existant resource fails, an attempt is made * to create a resource at that location in the implied parent * container resource.</p> * * @param context The ...
Perform an asynchronous UPDATE action. UPDATE has UPSERT semantics, in that if an attempt to update a non-existant resource fails, an attempt is made to create a resource at that location in the implied parent container resource
update
{ "repo_name": "ljshj/liveoak", "path": "modules/client/src/main/java/io/liveoak/client/DefaultClient.java", "license": "epl-1.0", "size": 12324 }
[ "io.liveoak.common.DefaultResourceRequest", "io.liveoak.spi.RequestContext", "io.liveoak.spi.RequestType", "io.liveoak.spi.ResourcePath", "io.liveoak.spi.ResourceRequest", "io.liveoak.spi.client.ClientResourceResponse", "io.liveoak.spi.state.ResourceState", "java.util.function.Consumer" ]
import io.liveoak.common.DefaultResourceRequest; import io.liveoak.spi.RequestContext; import io.liveoak.spi.RequestType; import io.liveoak.spi.ResourcePath; import io.liveoak.spi.ResourceRequest; import io.liveoak.spi.client.ClientResourceResponse; import io.liveoak.spi.state.ResourceState; import java.util.function.C...
import io.liveoak.common.*; import io.liveoak.spi.*; import io.liveoak.spi.client.*; import io.liveoak.spi.state.*; import java.util.function.*;
[ "io.liveoak.common", "io.liveoak.spi", "java.util" ]
io.liveoak.common; io.liveoak.spi; java.util;
233,406
@Test() public void testNotCritical() throws Exception { PasswordValidationDetailsRequestControl c = new PasswordValidationDetailsRequestControl(); c = new PasswordValidationDetailsRequestControl(c); assertNotNull(c.getOID()); assertEquals(c.getOID(), "1.3.6.1.4.1.30221.2.5.40"...
@Test() void function() throws Exception { PasswordValidationDetailsRequestControl c = new PasswordValidationDetailsRequestControl(); c = new PasswordValidationDetailsRequestControl(c); assertNotNull(c.getOID()); assertEquals(c.getOID(), STR); assertFalse(c.isCritical()); assertNull(c.getValue()); assertNotNull(c.getCo...
/** * Tests the behavior with a non-critical control. * * @throws Exception If an unexpected problem occurs. */
Tests the behavior with a non-critical control
testNotCritical
{ "repo_name": "UnboundID/ldapsdk", "path": "tests/unit/src/com/unboundid/ldap/sdk/unboundidds/controls/PasswordValidationDetailsRequestControlTestCase.java", "license": "gpl-2.0", "size": 3495 }
[ "org.testng.annotations.Test" ]
import org.testng.annotations.Test;
import org.testng.annotations.*;
[ "org.testng.annotations" ]
org.testng.annotations;
30,811
private void updateLocalStorageData(LocalStorageData localStorageData, StorageData storageData) throws IOException, SerializationException { localStorageData.copyStorageDataInformation(storageData); writeLocalStorageDataToDisk(localStorageData); }
void function(LocalStorageData localStorageData, StorageData storageData) throws IOException, SerializationException { localStorageData.copyStorageDataInformation(storageData); writeLocalStorageDataToDisk(localStorageData); }
/** * Updates the information of the local storage data saved on the client machine with the data * provided in the storage data available online. * * @param localStorageData * Local storage data to update. * @param storageData * Storage data that holds new information. * @throws ...
Updates the information of the local storage data saved on the client machine with the data provided in the storage data available online
updateLocalStorageData
{ "repo_name": "stefansiegl/inspectIT", "path": "inspectIT/src/info/novatec/inspectit/rcp/storage/InspectITStorageManager.java", "license": "agpl-3.0", "size": 39644 }
[ "info.novatec.inspectit.storage.LocalStorageData", "info.novatec.inspectit.storage.StorageData", "info.novatec.inspectit.storage.serializer.SerializationException", "java.io.IOException" ]
import info.novatec.inspectit.storage.LocalStorageData; import info.novatec.inspectit.storage.StorageData; import info.novatec.inspectit.storage.serializer.SerializationException; import java.io.IOException;
import info.novatec.inspectit.storage.*; import info.novatec.inspectit.storage.serializer.*; import java.io.*;
[ "info.novatec.inspectit", "java.io" ]
info.novatec.inspectit; java.io;
2,066,410
public Iterator<String> sortedKeys() { return new TreeSet<String>(this.map.keySet()).iterator(); }
Iterator<String> function() { return new TreeSet<String>(this.map.keySet()).iterator(); }
/** * Get an enumeration of the keys of the JSONObject. The keys will be sorted alphabetically. * * @return An iterator of the keys. */
Get an enumeration of the keys of the JSONObject. The keys will be sorted alphabetically
sortedKeys
{ "repo_name": "PATRIC3/patric3_website", "path": "portal/patric-jbrowse/src/org/theseed/json/JSONObject.java", "license": "mit", "size": 45082 }
[ "java.util.Iterator", "java.util.TreeSet" ]
import java.util.Iterator; import java.util.TreeSet;
import java.util.*;
[ "java.util" ]
java.util;
1,861,843
protected void readOCProperties() { if(!documentOCG.isEmpty()) { return; } PdfDictionary dict = reader.getCatalog().getAsDict(PdfName.OCPROPERTIES); if(dict == null) { return; } PdfArray ocgs = dict.getAsArray(PdfName.OCGS); PdfIndirectReference ref; PdfLayer layer; HashMap ocgmap = new ...
void function() { if(!documentOCG.isEmpty()) { return; } PdfDictionary dict = reader.getCatalog().getAsDict(PdfName.OCPROPERTIES); if(dict == null) { return; } PdfArray ocgs = dict.getAsArray(PdfName.OCGS); PdfIndirectReference ref; PdfLayer layer; HashMap ocgmap = new HashMap(); for(Iterator i = ocgs.listIterator(); i...
/** * Reads the OCProperties dictionary from the catalog of the existing document * and fills the documentOCG, documentOCGorder and OCGRadioGroup variables in PdfWriter. * Note that the original OCProperties of the existing document can contain more information. * * @since 2.1.2 */
Reads the OCProperties dictionary from the catalog of the existing document and fills the documentOCG, documentOCGorder and OCGRadioGroup variables in PdfWriter. Note that the original OCProperties of the existing document can contain more information
readOCProperties
{ "repo_name": "SafetyCulture/DroidText", "path": "app/src/main/java/com/lowagie/text/pdf/PdfStamperImp.java", "license": "lgpl-3.0", "size": 56003 }
[ "java.util.HashMap", "java.util.Iterator" ]
import java.util.HashMap; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,766,908
public void testSignificanceOnTextArrays() throws IOException { TextFieldType textFieldType = new TextFieldType(); textFieldType.setName("text"); textFieldType.setIndexAnalyzer(new NamedAnalyzer("my_analyzer", AnalyzerScope.GLOBAL, new StandardAnalyzer())); IndexWriterConfig indexWr...
void function() throws IOException { TextFieldType textFieldType = new TextFieldType(); textFieldType.setName("text"); textFieldType.setIndexAnalyzer(new NamedAnalyzer(STR, AnalyzerScope.GLOBAL, new StandardAnalyzer())); IndexWriterConfig indexWriterConfig = newIndexWriterConfig(); indexWriterConfig.setMaxBufferedDocs(...
/** * Test documents with arrays of text */
Test documents with arrays of text
testSignificanceOnTextArrays
{ "repo_name": "jprante/elasticsearch-server", "path": "server/src/test/java/org/elasticsearch/test/search/aggregations/bucket/significant/SignificantTextAggregatorTests.java", "license": "apache-2.0", "size": 8099 }
[ "java.io.IOException", "java.util.Arrays", "org.apache.lucene.analysis.standard.StandardAnalyzer", "org.apache.lucene.document.Document", "org.apache.lucene.document.Field", "org.apache.lucene.document.StoredField", "org.apache.lucene.index.DirectoryReader", "org.apache.lucene.index.IndexReader", "o...
import java.io.IOException; import java.util.Arrays; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.document.StoredField; import org.apache.lucene.index.DirectoryReader; import org.apache.lucene.i...
import java.io.*; import java.util.*; import org.apache.lucene.analysis.standard.*; import org.apache.lucene.document.*; import org.apache.lucene.index.*; import org.apache.lucene.search.*; import org.apache.lucene.store.*; import org.apache.lucene.util.*; import org.elasticsearch.index.analysis.*; import org.elasticse...
[ "java.io", "java.util", "org.apache.lucene", "org.elasticsearch.index", "org.elasticsearch.search" ]
java.io; java.util; org.apache.lucene; org.elasticsearch.index; org.elasticsearch.search;
671,576
public DroolsParserException createTrailingSemicolonException( int line, int column, int offset ) { String message = String .format( ...
DroolsParserException function( int line, int column, int offset ) { String message = String .format( TRAILING_SEMI_COLON_NOT_ALLOWED_MESSAGE, line, column, formatParserLocation() ); return new DroolsParserException( STR, message, line, column, offset, null ); }
/** * This method creates a DroolsParserException for trailing semicolon * exception, full of information. * * @param line * line number * @param column * column position * @param offset * char offset * @return DroolsParserException fil...
This method creates a DroolsParserException for trailing semicolon exception, full of information
createTrailingSemicolonException
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/drools-master/drools-compiler/src/main/java/org/drools/compiler/lang/DroolsParserExceptionFactory.java", "license": "mit", "size": 17137 }
[ "org.drools.compiler.compiler.DroolsParserException" ]
import org.drools.compiler.compiler.DroolsParserException;
import org.drools.compiler.compiler.*;
[ "org.drools.compiler" ]
org.drools.compiler;
674,865
public com.cloudera.sqoop.lib.BlobRef readBlobRef(int colNum, ResultSet r) throws IOException, InterruptedException, SQLException { long maxInlineLobLen = conf.getLong( MAX_INLINE_LOB_LEN_KEY, DEFAULT_MAX_LOB_LENGTH); Blob b = r.getBlob(colNum); if (null == b) { return null; ...
com.cloudera.sqoop.lib.BlobRef function(int colNum, ResultSet r) throws IOException, InterruptedException, SQLException { long maxInlineLobLen = conf.getLong( MAX_INLINE_LOB_LEN_KEY, DEFAULT_MAX_LOB_LENGTH); Blob b = r.getBlob(colNum); if (null == b) { return null; } else if (b.length() > maxInlineLobLen) { long len = ...
/** * Actually read a BlobRef instance from the ResultSet and materialize * the data either inline or to a file. * * @param colNum the column of the ResultSet's current row to read. * @param r the ResultSet to read from. * @return a BlobRef encapsulating the data in this field. * @throws IOExceptio...
Actually read a BlobRef instance from the ResultSet and materialize the data either inline or to a file
readBlobRef
{ "repo_name": "unicredit/sqoop", "path": "src/java/org/apache/sqoop/lib/LargeObjectLoader.java", "license": "apache-2.0", "size": 9689 }
[ "com.cloudera.sqoop.io.LobFile", "java.io.IOException", "java.io.InputStream", "java.io.OutputStream", "java.io.Writer", "java.sql.Blob", "java.sql.ResultSet", "java.sql.SQLException" ]
import com.cloudera.sqoop.io.LobFile; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.io.Writer; import java.sql.Blob; import java.sql.ResultSet; import java.sql.SQLException;
import com.cloudera.sqoop.io.*; import java.io.*; import java.sql.*;
[ "com.cloudera.sqoop", "java.io", "java.sql" ]
com.cloudera.sqoop; java.io; java.sql;
2,576,807
protected Query getAliasedQuery() throws SyntaxError { Alias a = aliases.get(field); this.validateCyclicAliasing(field); if (a != null) { List<Query> lst = getQueries(a); if (lst == null || lst.size()==0) return getQuery(); // make a DisjunctionMaxQuery in this ca...
Query function() throws SyntaxError { Alias a = aliases.get(field); this.validateCyclicAliasing(field); if (a != null) { List<Query> lst = getQueries(a); if (lst == null lst.size()==0) return getQuery(); if (makeDismax) { DisjunctionMaxQuery q = new DisjunctionMaxQuery(lst, a.tie); return q; } else { BooleanQuery q = n...
/** * Delegates to the super class unless the field has been specified * as an alias -- in which case we recurse on each of * the aliased fields, and the results are composed into a * DisjunctionMaxQuery. (so yes: aliases which point at other * aliases should work) */
Delegates to the super class unless the field has been specified as an alias -- in which case we recurse on each of the aliased fields, and the results are composed into a DisjunctionMaxQuery. (so yes: aliases which point at other aliases should work)
getAliasedQuery
{ "repo_name": "aaccomazzi/montysolr", "path": "contrib/adsabs/src/java/org/apache/solr/search/AqpExtendedDismaxQParserPlugin.java", "license": "gpl-2.0", "size": 58006 }
[ "java.util.List", "org.apache.lucene.search.BooleanClause", "org.apache.lucene.search.BooleanQuery", "org.apache.lucene.search.DisjunctionMaxQuery", "org.apache.lucene.search.Query", "org.apache.solr.parser.SolrQueryParserBase", "org.apache.solr.schema.FieldType" ]
import java.util.List; import org.apache.lucene.search.BooleanClause; import org.apache.lucene.search.BooleanQuery; import org.apache.lucene.search.DisjunctionMaxQuery; import org.apache.lucene.search.Query; import org.apache.solr.parser.SolrQueryParserBase; import org.apache.solr.schema.FieldType;
import java.util.*; import org.apache.lucene.search.*; import org.apache.solr.parser.*; import org.apache.solr.schema.*;
[ "java.util", "org.apache.lucene", "org.apache.solr" ]
java.util; org.apache.lucene; org.apache.solr;
1,831,770
public static List<Key> keyListForIterator(DCIteratorBinding iter) { List<Key> attributeList = new ArrayList<Key>(); for (Row r : iter.getAllRowsInRange()) { attributeList.add(r.getKey()); } return attributeList; }
static List<Key> function(DCIteratorBinding iter) { List<Key> attributeList = new ArrayList<Key>(); for (Row r : iter.getAllRowsInRange()) { attributeList.add(r.getKey()); } return attributeList; }
/** * Get List of Key objects for rows in an iterator. * @param iter iterator binding * @return List of Key objects for rows */
Get List of Key objects for rows in an iterator
keyListForIterator
{ "repo_name": "pritam176/UAQ", "path": "UAQCashierPayment/DoCashierPaymentUI/src/com/adf/pos/utils/ADFUtils.java", "license": "gpl-3.0", "size": 25875 }
[ "java.util.ArrayList", "java.util.List", "oracle.adf.model.binding.DCIteratorBinding", "oracle.jbo.Key", "oracle.jbo.Row" ]
import java.util.ArrayList; import java.util.List; import oracle.adf.model.binding.DCIteratorBinding; import oracle.jbo.Key; import oracle.jbo.Row;
import java.util.*; import oracle.adf.model.binding.*; import oracle.jbo.*;
[ "java.util", "oracle.adf.model", "oracle.jbo" ]
java.util; oracle.adf.model; oracle.jbo;
1,008,194
public void actionPerformed(ActionEvent e) { if (e.getSource() == m_ConfigureBut) { selectProperty(); } else if (e.getSource() == m_StatusBox) { // notify any listeners for (int i = 0; i < m_Listeners.size(); i++) { ActionListener temp = ((ActionListener)m_Listeners.elementAt(i)); temp.ac...
void function(ActionEvent e) { if (e.getSource() == m_ConfigureBut) { selectProperty(); } else if (e.getSource() == m_StatusBox) { for (int i = 0; i < m_Listeners.size(); i++) { ActionListener temp = ((ActionListener)m_Listeners.elementAt(i)); temp.actionPerformed(new ActionEvent(this, ActionEvent.ACTION_PERFORMED, Mes...
/** * Handles the various button clicking type activities. * * @param e a value of type 'ActionEvent' */
Handles the various button clicking type activities
actionPerformed
{ "repo_name": "williamClanton/jbossBA", "path": "weka/src/main/java/weka/gui/experiment/GeneratorPropertyIteratorPanel.java", "license": "gpl-2.0", "size": 9894 }
[ "java.awt.event.ActionEvent", "java.awt.event.ActionListener" ]
import java.awt.event.ActionEvent; import java.awt.event.ActionListener;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
335,725
public PlaceableNode findNode(int x, int y) { PlaceableNode res = null; synchronized (fGraph) { // Find possible edge property that occupies the clicked position Iterator<EdgeBase> eIter = fGraph.getVisibleEdgesIterator(); while ( eIter.hasNext() ) { Edge...
PlaceableNode function(int x, int y) { PlaceableNode res = null; synchronized (fGraph) { Iterator<EdgeBase> eIter = fGraph.getVisibleEdgesIterator(); while ( eIter.hasNext() ) { EdgeBase e = eIter.next(); res = e.findNode(x, y); if (res != null) { return res; } } Iterator<PlaceableNode> nIter = fGraph.getVisibleNodesIt...
/** * Finds node occupying the given position. * * @return null if no such node could be found. */
Finds node occupying the given position
findNode
{ "repo_name": "anonymous100001/maxuse", "path": "src/gui/org/tzi/use/gui/views/diagrams/DiagramView.java", "license": "gpl-2.0", "size": 37444 }
[ "java.awt.Point", "java.util.Iterator", "javax.swing.JPopupMenu", "org.tzi.use.gui.views.diagrams.elements.PlaceableNode", "org.tzi.use.gui.views.diagrams.elements.edges.EdgeBase" ]
import java.awt.Point; import java.util.Iterator; import javax.swing.JPopupMenu; import org.tzi.use.gui.views.diagrams.elements.PlaceableNode; import org.tzi.use.gui.views.diagrams.elements.edges.EdgeBase;
import java.awt.*; import java.util.*; import javax.swing.*; import org.tzi.use.gui.views.diagrams.elements.*; import org.tzi.use.gui.views.diagrams.elements.edges.*;
[ "java.awt", "java.util", "javax.swing", "org.tzi.use" ]
java.awt; java.util; javax.swing; org.tzi.use;
2,263,624
public void testDescendingRetainAll() { NavigableSet q = populatedSet(SIZE); NavigableSet p = populatedSet(SIZE); for (int i = 0; i < SIZE; ++i) { boolean changed = q.retainAll(p); if (i == 0) assertFalse(changed); else asse...
void function() { NavigableSet q = populatedSet(SIZE); NavigableSet p = populatedSet(SIZE); for (int i = 0; i < SIZE; ++i) { boolean changed = q.retainAll(p); if (i == 0) assertFalse(changed); else assertTrue(changed); assertTrue(q.containsAll(p)); assertEquals(SIZE - i, q.size()); p.pollFirst(); } }
/** * retainAll(c) retains only those elements of c and reports true if changed */
retainAll(c) retains only those elements of c and reports true if changed
testDescendingRetainAll
{ "repo_name": "FauxFaux/jdk9-jdk", "path": "test/java/util/concurrent/tck/TreeSubSetTest.java", "license": "gpl-2.0", "size": 31842 }
[ "java.util.NavigableSet" ]
import java.util.NavigableSet;
import java.util.*;
[ "java.util" ]
java.util;
37,418
public static class LaunchSourceUtils { public static Bundle createSourceData() { Bundle sourceData = new Bundle(); sourceData.putString(SOURCE_EXTRA_CONTAINER, CONTAINER_HOMESCREEN); // Have default container/sub container pages sourceData.putInt(SOU...
static class LaunchSourceUtils { public static Bundle function() { Bundle sourceData = new Bundle(); sourceData.putString(SOURCE_EXTRA_CONTAINER, CONTAINER_HOMESCREEN); sourceData.putInt(SOURCE_EXTRA_CONTAINER_PAGE, 0); sourceData.putInt(SOURCE_EXTRA_SUB_CONTAINER_PAGE, 0); return sourceData; }
/** * Create a default bundle for LaunchSourceProviders to fill in their data. */
Create a default bundle for LaunchSourceProviders to fill in their data
createSourceData
{ "repo_name": "Hapsidra/Chavah", "path": "Chavah/src/main/java/com/android/chavah/Stats.java", "license": "gpl-3.0", "size": 5913 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
2,627,272
@Deprecated public void loadRep( Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { // Nothing by default, provided for API and runtime compatibility against v4 code }
void function( Repository rep, ObjectId id_jobentry, List<DatabaseMeta> databases, List<SlaveServer> slaveServers ) throws KettleException { }
/** * This method is called by PDI whenever a job entry needs to read its configuration from a PDI repository. For * JobEntryBase, this method performs no operations. * * @param rep * the repository object * @param id_jobentry * the id of the job entry * @param databases * ...
This method is called by PDI whenever a job entry needs to read its configuration from a PDI repository. For JobEntryBase, this method performs no operations
loadRep
{ "repo_name": "apratkin/pentaho-kettle", "path": "engine/src/org/pentaho/di/job/entry/JobEntryBase.java", "license": "apache-2.0", "size": 41980 }
[ "java.util.List", "org.pentaho.di.cluster.SlaveServer", "org.pentaho.di.core.database.DatabaseMeta", "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.repository.ObjectId", "org.pentaho.di.repository.Repository" ]
import java.util.List; import org.pentaho.di.cluster.SlaveServer; import org.pentaho.di.core.database.DatabaseMeta; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.repository.ObjectId; import org.pentaho.di.repository.Repository;
import java.util.*; import org.pentaho.di.cluster.*; import org.pentaho.di.core.database.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.repository.*;
[ "java.util", "org.pentaho.di" ]
java.util; org.pentaho.di;
1,989,410
public void deleteSnapshot(final Path snapshotDir, final String snapshotName) throws IOException { throw new UnsupportedOperationException(getClass().getSimpleName() + " doesn't support deleteSnapshot"); }
void function(final Path snapshotDir, final String snapshotName) throws IOException { throw new UnsupportedOperationException(getClass().getSimpleName() + STR); }
/** * The specification of this method matches that of * {@link FileContext#deleteSnapshot(Path, String)}. */
The specification of this method matches that of <code>FileContext#deleteSnapshot(Path, String)</code>
deleteSnapshot
{ "repo_name": "plusplusjiajia/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java", "license": "apache-2.0", "size": 50364 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,721,003
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static CommodityNotional.Meta meta() { return CommodityNotional.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(CommodityNotional.Meta.INSTANCE); }
static CommodityNotional.Meta function() { return CommodityNotional.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(CommodityNotional.Meta.INSTANCE); }
/** * The meta-bean for {@code CommodityNotional}. * @return the meta-bean, not null */
The meta-bean for CommodityNotional
meta
{ "repo_name": "McLeodMoores/starling", "path": "projects/financial-types/src/main/java/com/opengamma/financial/security/swap/CommodityNotional.java", "license": "apache-2.0", "size": 3480 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
2,120,796
protected String getLabel(String typeName) { try { return AppearanceEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); } catch(MissingResourceException mre) { AppearanceEditorPlugin.INSTANCE.log(mre); } return typeName; }
String function(String typeName) { try { return AppearanceEditPlugin.INSTANCE.getString("_UI_" + typeName + "_type"); } catch(MissingResourceException mre) { AppearanceEditorPlugin.INSTANCE.log(mre); } return typeName; }
/** * Returns the label for the specified type name. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Returns the label for the specified type name.
getLabel
{ "repo_name": "albertfdp/petrinet", "path": "src/dk.dtu.se2.appearance.editor/src/appearance/presentation/AppearanceModelWizard.java", "license": "mit", "size": 18446 }
[ "java.util.MissingResourceException" ]
import java.util.MissingResourceException;
import java.util.*;
[ "java.util" ]
java.util;
865,870
public Cursor getCursor() { return cursor; }
Cursor function() { return cursor; }
/** * Do consider to turn this to a singleton as well considering the broader * situation * */
Do consider to turn this to a singleton as well considering the broader situation
getCursor
{ "repo_name": "nitinarv/StudyGroupX", "path": "app/src/main/java/com/sgxp/studyproject/Center.java", "license": "apache-2.0", "size": 1945 }
[ "android.database.Cursor" ]
import android.database.Cursor;
import android.database.*;
[ "android.database" ]
android.database;
709,570
public void disconnect(EnumFacing side);
void function(EnumFacing side);
/** * Disconnect the cable connection for a side. * @param side The side to block the connection for. */
Disconnect the cable connection for a side
disconnect
{ "repo_name": "harme199497/IntegratedDynamics", "path": "src/main/java/org/cyclops/integrateddynamics/core/tileentity/ITileCable.java", "license": "mit", "size": 1345 }
[ "net.minecraft.util.EnumFacing" ]
import net.minecraft.util.EnumFacing;
import net.minecraft.util.*;
[ "net.minecraft.util" ]
net.minecraft.util;
897,364
public void hideEnum( EnumType enumeration ) { showOrHideEnum(enumeration, false); }
void function( EnumType enumeration ) { showOrHideEnum(enumeration, false); }
/** * Hides an enumeration from the diagram. */
Hides an enumeration from the diagram
hideEnum
{ "repo_name": "classicwuhao/maxuse", "path": "src/gui/org/tzi/use/gui/views/diagrams/classdiagram/ClassDiagram.java", "license": "gpl-2.0", "size": 57937 }
[ "org.tzi.use.uml.ocl.type.EnumType" ]
import org.tzi.use.uml.ocl.type.EnumType;
import org.tzi.use.uml.ocl.type.*;
[ "org.tzi.use" ]
org.tzi.use;
2,385,664
protected StateValues checkRewardReach(Model model, Rewards modelRewards, ExpressionTemporal expr, MinMax minMax, BitSet statesOfInterest) throws PrismException { // No time bounds allowed if (expr.hasBounds()) { throw new PrismNotSupportedException("R operator cannot contain a bounded F operator: " + expr);...
StateValues function(Model model, Rewards modelRewards, ExpressionTemporal expr, MinMax minMax, BitSet statesOfInterest) throws PrismException { if (expr.hasBounds()) { throw new PrismNotSupportedException(STR + expr); } BitSet target = checkExpression(model, expr.getOperand2(), null).getBitSet(); ModelCheckerResult re...
/** * Compute rewards for a reachability reward operator. */
Compute rewards for a reachability reward operator
checkRewardReach
{ "repo_name": "musaeed/Prism-gsoc16", "path": "prism-trunk/prism/src/explicit/ProbModelChecker.java", "license": "gpl-2.0", "size": 38806 }
[ "java.util.BitSet" ]
import java.util.BitSet;
import java.util.*;
[ "java.util" ]
java.util;
2,609,746
void push(Member member, boolean force, boolean isBroadcast) { byte opcode; if (isBroadcast) { opcode = Protocol.OPCODE_BROADCAST; } else { opcode = Protocol.OPCODE_PUSH; } long start = System.currentTimeMillis(); if (hasEnded()) { ...
void push(Member member, boolean force, boolean isBroadcast) { byte opcode; if (isBroadcast) { opcode = Protocol.OPCODE_BROADCAST; } else { opcode = Protocol.OPCODE_PUSH; } long start = System.currentTimeMillis(); if (hasEnded()) { if (!force) { return; } } if (!isMember(member)) { if (!force) { return; } } if (logger....
/** * Push events to the given member. Checks if the pool has not ended, and * the peer is still a current member of this pool. * * @param member * The member to push events to * @param force * if true, events are always pushed, even if the pool has ended *...
Push events to the given member. Checks if the pool has not ended, and the peer is still a current member of this pool
push
{ "repo_name": "NLeSC/Aether", "path": "src/nl/esciencecenter/aether/registry/central/server/Pool.java", "license": "apache-2.0", "size": 30450 }
[ "java.io.IOException", "nl.esciencecenter.aether.registry.central.Event", "nl.esciencecenter.aether.registry.central.Member", "nl.esciencecenter.aether.registry.central.Protocol", "nl.esciencecenter.aether.support.Connection" ]
import java.io.IOException; import nl.esciencecenter.aether.registry.central.Event; import nl.esciencecenter.aether.registry.central.Member; import nl.esciencecenter.aether.registry.central.Protocol; import nl.esciencecenter.aether.support.Connection;
import java.io.*; import nl.esciencecenter.aether.registry.central.*; import nl.esciencecenter.aether.support.*;
[ "java.io", "nl.esciencecenter.aether" ]
java.io; nl.esciencecenter.aether;
1,933,556
public static List<Pattern> getNoProxyHostPatterns(String noProxyHost) { if (noProxyHost==null) return Collections.emptyList(); List<Pattern> r = Lists.newArrayList(); for (String s : noProxyHost.split("[ \t\n,|]+")) { if (s.length()==0) continue; r.add(Pattern.com...
static List<Pattern> function(String noProxyHost) { if (noProxyHost==null) return Collections.emptyList(); List<Pattern> r = Lists.newArrayList(); for (String s : noProxyHost.split(STR)) { if (s.length()==0) continue; r.add(Pattern.compile(s.replace(".", "\\.").replace("*", ".*"))); } return r; }
/** * Returns the list of properly formatted no proxy host names. */
Returns the list of properly formatted no proxy host names
getNoProxyHostPatterns
{ "repo_name": "Vlatombe/jenkins", "path": "core/src/main/java/hudson/ProxyConfiguration.java", "license": "mit", "size": 17703 }
[ "com.google.common.collect.Lists", "java.util.Collections", "java.util.List", "java.util.regex.Pattern" ]
import com.google.common.collect.Lists; import java.util.Collections; import java.util.List; import java.util.regex.Pattern;
import com.google.common.collect.*; import java.util.*; import java.util.regex.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,898,995
private String[] parsePropertyName(String name) { List<String> propName = new ArrayList<String>(5); // Use a StringTokenizer to tokenize the property name. StringTokenizer tokenizer = new StringTokenizer(name, "."); while (tokenizer.hasMoreTokens()) { propName.add(tokenizer.nextToken()); } return prop...
String[] function(String name) { List<String> propName = new ArrayList<String>(5); StringTokenizer tokenizer = new StringTokenizer(name, "."); while (tokenizer.hasMoreTokens()) { propName.add(tokenizer.nextToken()); } return propName.toArray(new String[propName.size()]); }
/** * Returns an array representation of the given Jive property. Jive * properties are always in the format "prop.name.is.this" which would be * represented as an array of four Strings. * * @param name * the name of the Jive property. * @return an array representation of the given Jive propert...
Returns an array representation of the given Jive property. Jive properties are always in the format "prop.name.is.this" which would be represented as an array of four Strings
parsePropertyName
{ "repo_name": "andang72/architecture-ee", "path": "src/main/java/architecture/ee/util/xml/XmlProperties.java", "license": "apache-2.0", "size": 22660 }
[ "java.util.ArrayList", "java.util.List", "java.util.StringTokenizer" ]
import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer;
import java.util.*;
[ "java.util" ]
java.util;
1,691,791
public SwitchSensorMatch newMatch(final Switch pSw) { return SwitchSensorMatch.newMatch(pSw); }
SwitchSensorMatch function(final Switch pSw) { return SwitchSensorMatch.newMatch(pSw); }
/** * Returns a new (partial) match. * This can be used e.g. to call the matcher with a partial match. * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object. * @param pSw the fixed value of pattern parameter sw, or null if not bound. * @return the (parti...
Returns a new (partial) match. This can be used e.g. to call the matcher with a partial match. The returned match will be immutable. Use <code>#newEmptyMatch()</code> to obtain a mutable match object
newMatch
{ "repo_name": "FTSRG/trainbenchmark-ttc", "path": "hu.bme.mit.trainbenchmark.ttc.benchmark.emfincquery.patterns/src-gen/hu/bme/mit/trainbenchmark/ttc/benchmark/emfincquery/SwitchSensorMatcher.java", "license": "epl-1.0", "size": 9788 }
[ "hu.bme.mit.trainbenchmark.ttc.benchmark.emfincquery.SwitchSensorMatch", "hu.bme.mit.trainbenchmark.ttc.railway.Switch" ]
import hu.bme.mit.trainbenchmark.ttc.benchmark.emfincquery.SwitchSensorMatch; import hu.bme.mit.trainbenchmark.ttc.railway.Switch;
import hu.bme.mit.trainbenchmark.ttc.benchmark.emfincquery.*; import hu.bme.mit.trainbenchmark.ttc.railway.*;
[ "hu.bme.mit" ]
hu.bme.mit;
538,658
public void createSymlink(final Path target, final Path link, final boolean createParent) throws IOException, UnresolvedLinkException { throw new IOException("File system does not support symlinks"); }
void function(final Path target, final Path link, final boolean createParent) throws IOException, UnresolvedLinkException { throw new IOException(STR); }
/** * The specification of this method matches that of * {@link FileContext#createSymlink(Path, Path, boolean)}; */
The specification of this method matches that of <code>FileContext#createSymlink(Path, Path, boolean)</code>
createSymlink
{ "repo_name": "apurtell/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/AbstractFileSystem.java", "license": "apache-2.0", "size": 52035 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
889,550
public void setProfileIop(ProfileIop profileIop) { rtmpClient.setProfileIop(profileIop); }
void function(ProfileIop profileIop) { rtmpClient.setProfileIop(profileIop); }
/** * H264 profile. * * @param profileIop Could be ProfileIop.BASELINE or ProfileIop.CONSTRAINED */
H264 profile
setProfileIop
{ "repo_name": "pedroSG94/rtmp-streamer-java", "path": "rtplibrary/src/main/java/com/pedro/rtplibrary/rtmp/RtmpCamera1.java", "license": "apache-2.0", "size": 6134 }
[ "com.pedro.rtmp.flv.video.ProfileIop" ]
import com.pedro.rtmp.flv.video.ProfileIop;
import com.pedro.rtmp.flv.video.*;
[ "com.pedro.rtmp" ]
com.pedro.rtmp;
949,464
EReference getObjectPropertyType_Type();
EReference getObjectPropertyType_Type();
/** * Returns the meta object for the reference '{@link org.eclipse.vorto.core.api.model.datatype.ObjectPropertyType#getType <em>Type</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the reference '<em>Type</em>'. * @see org.eclipse.vorto.core.api.model.datatype.ObjectPr...
Returns the meta object for the reference '<code>org.eclipse.vorto.core.api.model.datatype.ObjectPropertyType#getType Type</code>'.
getObjectPropertyType_Type
{ "repo_name": "nagavijays/vorto", "path": "bundles/org.eclipse.vorto.core/src/org/eclipse/vorto/core/api/model/datatype/DatatypePackage.java", "license": "epl-1.0", "size": 49779 }
[ "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,928,727
public JSch getSsh() { return ssh; }
JSch function() { return ssh; }
/** * Gets the ssh. * * @return */
Gets the ssh
getSsh
{ "repo_name": "christophd/citrus", "path": "endpoints/citrus-ftp/src/main/java/com/consol/citrus/ftp/client/SftpClient.java", "license": "apache-2.0", "size": 16015 }
[ "com.jcraft.jsch.JSch" ]
import com.jcraft.jsch.JSch;
import com.jcraft.jsch.*;
[ "com.jcraft.jsch" ]
com.jcraft.jsch;
1,985,474
private void assertInLevel(LowRedundancyBlocks queues, Block block, int level) { final Iterator<BlockInfo> bi = queues.iterator(level); while (bi.hasNext()) { Block next = bi.next(); if (block.equals(next)) { return; } } ...
void function(LowRedundancyBlocks queues, Block block, int level) { final Iterator<BlockInfo> bi = queues.iterator(level); while (bi.hasNext()) { Block next = bi.next(); if (block.equals(next)) { return; } } fail(STR + block + STR + level); }
/** * Determine whether or not a block is in a level without changing the API. * Instead get the per-level iterator and run though it looking for a match. * If the block is not found, an assertion is thrown. * * This is inefficient, but this is only a test case. * @param queues queues to scan * @pa...
Determine whether or not a block is in a level without changing the API. Instead get the per-level iterator and run though it looking for a match. If the block is not found, an assertion is thrown. This is inefficient, but this is only a test case
assertInLevel
{ "repo_name": "ronny-macmaster/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestLowRedundancyBlockQueues.java", "license": "apache-2.0", "size": 8227 }
[ "java.util.Iterator", "org.apache.hadoop.hdfs.protocol.Block", "org.junit.Assert" ]
import java.util.Iterator; import org.apache.hadoop.hdfs.protocol.Block; import org.junit.Assert;
import java.util.*; import org.apache.hadoop.hdfs.protocol.*; import org.junit.*;
[ "java.util", "org.apache.hadoop", "org.junit" ]
java.util; org.apache.hadoop; org.junit;
2,041,475
public Filter getFilter() { return _filter; }
Filter function() { return _filter; }
/** * Returns the filter. */
Returns the filter
getFilter
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/server/dispatch/FilterChainFilterBuilder.java", "license": "gpl-2.0", "size": 2106 }
[ "javax.servlet.Filter" ]
import javax.servlet.Filter;
import javax.servlet.*;
[ "javax.servlet" ]
javax.servlet;
2,771,002
public void sort(Comparator<? super T> comparator) { Collections.sort(mObjects, comparator); notifyItemRangeChanged(0, getItemCount()); }
void function(Comparator<? super T> comparator) { Collections.sort(mObjects, comparator); notifyItemRangeChanged(0, getItemCount()); }
/** * Sorts the content of this adapter using the specified comparator. * * @param comparator The comparator used to sort the objects contained in this adapter. */
Sorts the content of this adapter using the specified comparator
sort
{ "repo_name": "LibertACAO/libertacao-android", "path": "app/src/main/java/com/libertacao/libertacao/view/customviews/ArrayAdapter.java", "license": "gpl-3.0", "size": 2467 }
[ "java.util.Collections", "java.util.Comparator" ]
import java.util.Collections; import java.util.Comparator;
import java.util.*;
[ "java.util" ]
java.util;
74,287
private DatumWriter<Object> getDatumWriter(final Schema schema) { final DatumWriter<Object> existing = mCachedDatumWriters.get(schema); if (null != existing) { return existing; } final DatumWriter<Object> newWriter = new SpecificDatumWriter<Object>(schema); mCachedDatumWriters.put(schema, ne...
DatumWriter<Object> function(final Schema schema) { final DatumWriter<Object> existing = mCachedDatumWriters.get(schema); if (null != existing) { return existing; } final DatumWriter<Object> newWriter = new SpecificDatumWriter<Object>(schema); mCachedDatumWriters.put(schema, newWriter); return newWriter; }
/** * Gets a datum writer for a schema and caches it. * * <p> Not thread-safe, calls to this method must be externally synchronized. </p> * * @param schema The writer schema. * @return A datum writer for the given schema. */
Gets a datum writer for a schema and caches it. Not thread-safe, calls to this method must be externally synchronized.
getDatumWriter
{ "repo_name": "zenoss/kiji-schema", "path": "kiji-schema/src/main/java/org/kiji/schema/impl/AvroCellEncoder.java", "license": "apache-2.0", "size": 18644 }
[ "org.apache.avro.Schema", "org.apache.avro.io.DatumWriter", "org.apache.avro.specific.SpecificDatumWriter" ]
import org.apache.avro.Schema; import org.apache.avro.io.DatumWriter; import org.apache.avro.specific.SpecificDatumWriter;
import org.apache.avro.*; import org.apache.avro.io.*; import org.apache.avro.specific.*;
[ "org.apache.avro" ]
org.apache.avro;
1,638,781
@Nonnull public RestrictedSignInCollectionRequest orderBy(@Nonnull final String value) { addOrderByOption(value); return this; }
RestrictedSignInCollectionRequest function(@Nonnull final String value) { addOrderByOption(value); return this; }
/** * Sets the order by clause for the request * * @param value the order by clause * @return the updated request */
Sets the order by clause for the request
orderBy
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/RestrictedSignInCollectionRequest.java", "license": "mit", "size": 5912 }
[ "com.microsoft.graph.requests.RestrictedSignInCollectionRequest", "javax.annotation.Nonnull" ]
import com.microsoft.graph.requests.RestrictedSignInCollectionRequest; import javax.annotation.Nonnull;
import com.microsoft.graph.requests.*; import javax.annotation.*;
[ "com.microsoft.graph", "javax.annotation" ]
com.microsoft.graph; javax.annotation;
2,443,395
@Override public void setUpdateDt(java.util.Date updateDt) { _scienceAppDescription.setUpdateDt(updateDt); }
void function(java.util.Date updateDt) { _scienceAppDescription.setUpdateDt(updateDt); }
/** * Sets the update dt of this science app description. * * @param updateDt the update dt of this science app description */
Sets the update dt of this science app description
setUpdateDt
{ "repo_name": "queza85/edison", "path": "edison-portal-framework/edison-appstore-2016-portlet/docroot/WEB-INF/service/org/kisti/edison/science/model/ScienceAppDescriptionWrapper.java", "license": "gpl-3.0", "size": 14667 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,851,131
String getReverseRouteFor(Controller controller, String method, Map<String, Object> params);
String getReverseRouteFor(Controller controller, String method, Map<String, Object> params);
/** * Gets the url of the route handled by the specified action method. * * @param controller the controller object * @param method the controller method * @param params map of parameter name - value * @return the url, {@literal null} if the action method is not found */
Gets the url of the route handled by the specified action method
getReverseRouteFor
{ "repo_name": "torito/wisdom", "path": "core/wisdom-api/src/main/java/org/wisdom/api/router/Router.java", "license": "apache-2.0", "size": 12555 }
[ "java.util.Map", "org.wisdom.api.Controller" ]
import java.util.Map; import org.wisdom.api.Controller;
import java.util.*; import org.wisdom.api.*;
[ "java.util", "org.wisdom.api" ]
java.util; org.wisdom.api;
939,440
public boolean loadValue(byte [] family, int foffset, int flength, byte [] qualifier, int qoffset, int qlength, ByteBuffer dst) throws BufferOverflowException { Cell kv = getColumnLatestCell(family, foffset, flength, qualifier, qoffset, qlength); if (kv == null) { return false; } ...
boolean function(byte [] family, int foffset, int flength, byte [] qualifier, int qoffset, int qlength, ByteBuffer dst) throws BufferOverflowException { Cell kv = getColumnLatestCell(family, foffset, flength, qualifier, qoffset, qlength); if (kv == null) { return false; } dst.put(kv.getValueArray(), kv.getValueOffset()...
/** * Loads the latest version of the specified column into the provided <code>ByteBuffer</code>. * <p> * Does not clear or flip the buffer. * * @param family family name * @param foffset family offset * @param flength family length * @param qualifier column qualifier * @param qoffset qualifi...
Loads the latest version of the specified column into the provided <code>ByteBuffer</code>. Does not clear or flip the buffer
loadValue
{ "repo_name": "drewpope/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Result.java", "license": "apache-2.0", "size": 26865 }
[ "java.nio.BufferOverflowException", "java.nio.ByteBuffer", "org.apache.hadoop.hbase.Cell" ]
import java.nio.BufferOverflowException; import java.nio.ByteBuffer; import org.apache.hadoop.hbase.Cell;
import java.nio.*; import org.apache.hadoop.hbase.*;
[ "java.nio", "org.apache.hadoop" ]
java.nio; org.apache.hadoop;
134,115
@Test public void testRedundantReplicaDropDuringDecommissioning() { final LoadQueuePeon mockPeon1 = new LoadQueuePeonTester(); final LoadQueuePeon mockPeon2 = new LoadQueuePeonTester(); final LoadQueuePeon mockPeon3 = new LoadQueuePeonTester(); EasyMock.expect(mockBalancerStrategy.pickServersToDro...
void function() { final LoadQueuePeon mockPeon1 = new LoadQueuePeonTester(); final LoadQueuePeon mockPeon2 = new LoadQueuePeonTester(); final LoadQueuePeon mockPeon3 = new LoadQueuePeonTester(); EasyMock.expect(mockBalancerStrategy.pickServersToDrop(EasyMock.anyObject(), EasyMock.anyObject())) .andDelegateTo(balancerSt...
/** * 3 servers hosting 3 replicas of the segment. * 1 servers is decommissioning. * 1 replica is redundant. * Should drop from the decommissioning server. */
3 servers hosting 3 replicas of the segment. 1 servers is decommissioning. 1 replica is redundant. Should drop from the decommissioning server
testRedundantReplicaDropDuringDecommissioning
{ "repo_name": "monetate/druid", "path": "server/src/test/java/org/apache/druid/server/coordinator/rules/LoadRuleTest.java", "license": "apache-2.0", "size": 36167 }
[ "com.google.common.collect.ImmutableMap", "org.apache.druid.client.DruidServer", "org.apache.druid.server.coordinator.CoordinatorStats", "org.apache.druid.server.coordinator.DruidCluster", "org.apache.druid.server.coordinator.DruidClusterBuilder", "org.apache.druid.server.coordinator.LoadQueuePeon", "or...
import com.google.common.collect.ImmutableMap; import org.apache.druid.client.DruidServer; import org.apache.druid.server.coordinator.CoordinatorStats; import org.apache.druid.server.coordinator.DruidCluster; import org.apache.druid.server.coordinator.DruidClusterBuilder; import org.apache.druid.server.coordinator.Load...
import com.google.common.collect.*; import org.apache.druid.client.*; import org.apache.druid.server.coordinator.*; import org.apache.druid.timeline.*; import org.easymock.*; import org.junit.*;
[ "com.google.common", "org.apache.druid", "org.easymock", "org.junit" ]
com.google.common; org.apache.druid; org.easymock; org.junit;
1,775,359
@Test(dataProvider="testName") public void partialTermMatch(String testName) { for(int i=0; i<partialTerms.length; i++) { long startTime = System.currentTimeMillis(); int numMatchesFound = readItemListWithFilters(testName, authId, partialTerms[i], null); ...
@Test(dataProvider=STR) void function(String testName) { for(int i=0; i<partialTerms.length; i++) { long startTime = System.currentTimeMillis(); int numMatchesFound = readItemListWithFilters(testName, authId, partialTerms[i], null); Assert.assertEquals(numMatchesFound, (runFullTest?nMatches[i]:nMatchesShort[i]), STR+pa...
/** * Reads an item list by partial term. */
Reads an item list by partial term
partialTermMatch
{ "repo_name": "cherryhill/collectionspace-services", "path": "services/person/client/src/test/java/org/collectionspace/services/client/test/PersonAuthorityServicePerfTest.java", "license": "apache-2.0", "size": 13798 }
[ "org.testng.Assert", "org.testng.annotations.Test" ]
import org.testng.Assert; import org.testng.annotations.Test;
import org.testng.*; import org.testng.annotations.*;
[ "org.testng", "org.testng.annotations" ]
org.testng; org.testng.annotations;
2,534,730
private static void debugPrintln(Supplier<String> msgGen) { if (debug) { System.err.println("JAXP: " + msgGen.get()); } } private final ClassLoader classLoader; public SchemaFactoryFinder(ClassLoader loader) { this.classLoader = loader; if( debug )...
static void function(Supplier<String> msgGen) { if (debug) { System.err.println(STR + msgGen.get()); } } private final ClassLoader classLoader; public SchemaFactoryFinder(ClassLoader loader) { this.classLoader = loader; if( debug ) { debugDisplayClassLoader(); } }
/** * <p>Conditional debug printing.</p> * * @param msgGen Supplier function that returns debug message */
Conditional debug printing
debugPrintln
{ "repo_name": "YouDiSN/OpenJDK-Research", "path": "jdk9/jaxp/src/java.xml/share/classes/javax/xml/validation/SchemaFactoryFinder.java", "license": "gpl-2.0", "size": 15746 }
[ "java.util.function.Supplier" ]
import java.util.function.Supplier;
import java.util.function.*;
[ "java.util" ]
java.util;
1,024,282
public SearchSourceBuilder fetchSource(@Nullable FetchSourceContext fetchSourceContext) { this.fetchSourceContext = fetchSourceContext; return this; }
SearchSourceBuilder function(@Nullable FetchSourceContext fetchSourceContext) { this.fetchSourceContext = fetchSourceContext; return this; }
/** * Indicate how the _source should be fetched. */
Indicate how the _source should be fetched
fetchSource
{ "repo_name": "drewr/elasticsearch", "path": "core/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java", "license": "apache-2.0", "size": 54962 }
[ "org.elasticsearch.common.Nullable", "org.elasticsearch.search.fetch.source.FetchSourceContext" ]
import org.elasticsearch.common.Nullable; import org.elasticsearch.search.fetch.source.FetchSourceContext;
import org.elasticsearch.common.*; import org.elasticsearch.search.fetch.source.*;
[ "org.elasticsearch.common", "org.elasticsearch.search" ]
org.elasticsearch.common; org.elasticsearch.search;
2,691,526