method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public Builder showImageOnLoading(Drawable drawable) {
imageOnLoading = drawable;
return this;
} | Builder function(Drawable drawable) { imageOnLoading = drawable; return this; } | /**
* Incoming drawable will be displayed in {@link com.nostra13.universalimageloader.core.imageaware.ImageAware
* image aware view} during image loading.
* This option will be ignored if {@link DisplayImageOptions.Builder#showImageOnLoading(int)} is set.
*/ | Incoming drawable will be displayed in <code>com.nostra13.universalimageloader.core.imageaware.ImageAware image aware view</code> during image loading. This option will be ignored if <code>DisplayImageOptions.Builder#showImageOnLoading(int)</code> is set | showImageOnLoading | {
"repo_name": "wanelo/android-imageloader",
"path": "library/src/com/nostra13/universalimageloader/core/DisplayImageOptions.java",
"license": "apache-2.0",
"size": 17709
} | [
"android.graphics.drawable.Drawable"
] | import android.graphics.drawable.Drawable; | import android.graphics.drawable.*; | [
"android.graphics"
] | android.graphics; | 1,425,695 |
public static List<ItemStack> coelece(final List<ItemStack> inv) {
if (inv == null) {
return inv;
}
for (int i = 1; i < inv.size(); i++) {
final ItemStack stack = inv.get(i);
if (stack != null) {
for (int j = 0; j < i; j++) {
final ItemStack target = inv.get(j);
if (target == null) ... | static List<ItemStack> function(final List<ItemStack> inv) { if (inv == null) { return inv; } for (int i = 1; i < inv.size(); i++) { final ItemStack stack = inv.get(i); if (stack != null) { for (int j = 0; j < i; j++) { final ItemStack target = inv.get(j); if (target == null) { inv.set(j, stack); inv.set(i, null); brea... | /**
* Compresses the inventory list by consolidating stacks toward the
* beginning of the array. This operation occurs in place meaning the return
* array is the original one passed in.
*
* @param inv
* @return
*/ | Compresses the inventory list by consolidating stacks toward the beginning of the array. This operation occurs in place meaning the return array is the original one passed in | coelece | {
"repo_name": "OreCruncher/ThermalRecycling",
"path": "src/main/java/org/blockartistry/mod/ThermalRecycling/util/InventoryHelper.java",
"license": "mit",
"size": 9072
} | [
"java.util.List",
"net.minecraft.item.ItemStack"
] | import java.util.List; import net.minecraft.item.ItemStack; | import java.util.*; import net.minecraft.item.*; | [
"java.util",
"net.minecraft.item"
] | java.util; net.minecraft.item; | 2,670,228 |
Collection<OptionHelp> getOptionsHelp(); | Collection<OptionHelp> getOptionsHelp(); | /**
* Returns help for each supported option.
* @return help for each of the command's options
*/ | Returns help for each supported option | getOptionsHelp | {
"repo_name": "bclozel/spring-boot",
"path": "spring-boot-project/spring-boot-cli/src/main/java/org/springframework/boot/cli/command/Command.java",
"license": "apache-2.0",
"size": 2178
} | [
"java.util.Collection",
"org.springframework.boot.cli.command.options.OptionHelp"
] | import java.util.Collection; import org.springframework.boot.cli.command.options.OptionHelp; | import java.util.*; import org.springframework.boot.cli.command.options.*; | [
"java.util",
"org.springframework.boot"
] | java.util; org.springframework.boot; | 2,018,775 |
public synchronized CIMInstance getIndicationHandler(CIMListener pListener) throws CIMException {
Benchmark.startTimer();
preCheck();
CIMInstance inst = iHandle.getIndicationHandler(pListener);
Benchmark.stopTimer();
return inst;
}
| synchronized CIMInstance function(CIMListener pListener) throws CIMException { Benchmark.startTimer(); preCheck(); CIMInstance inst = iHandle.getIndicationHandler(pListener); Benchmark.stopTimer(); return inst; } | /**
* This methods return an instance of CIM_IndicationHandler, since CIM over
* HTTP is used as transport an instance of CIM_IndicationHandlerCIMXML is
* returned.
* <p>
* TODO Docu: Improve documentation.
* </p>
*
* @param pListener
* CIMListener for which the CIM)IndicationHand... | This methods return an instance of CIM_IndicationHandler, since CIM over HTTP is used as transport an instance of CIM_IndicationHandlerCIMXML is returned. TODO Docu: Improve documentation. | getIndicationHandler | {
"repo_name": "acleasby/sblim-cim-client",
"path": "cim-client-java/src/main/java/org/sblim/wbem/client/CIMClient.java",
"license": "epl-1.0",
"size": 203192
} | [
"org.sblim.wbem.cim.CIMException",
"org.sblim.wbem.cim.CIMInstance",
"org.sblim.wbem.client.indications.CIMListener",
"org.sblim.wbem.util.Benchmark"
] | import org.sblim.wbem.cim.CIMException; import org.sblim.wbem.cim.CIMInstance; import org.sblim.wbem.client.indications.CIMListener; import org.sblim.wbem.util.Benchmark; | import org.sblim.wbem.cim.*; import org.sblim.wbem.client.indications.*; import org.sblim.wbem.util.*; | [
"org.sblim.wbem"
] | org.sblim.wbem; | 268,035 |
void setMainProperty(String name, Value v, boolean important);
} | void setMainProperty(String name, Value v, boolean important); } | /**
* Called with a non-shorthand property name and it's value.
*/ | Called with a non-shorthand property name and it's value | setMainProperty | {
"repo_name": "apache/batik",
"path": "batik-css/src/main/java/org/apache/batik/css/engine/CSSEngine.java",
"license": "apache-2.0",
"size": 90735
} | [
"org.apache.batik.css.engine.value.Value"
] | import org.apache.batik.css.engine.value.Value; | import org.apache.batik.css.engine.value.*; | [
"org.apache.batik"
] | org.apache.batik; | 1,934,120 |
public RasterData getRasterData() {
return data;
} | RasterData function() { return data; } | /**
* Returns the RasterData of this SimpleRaster
*
* @return The raster data of this SimpleRaster.
*/ | Returns the RasterData of this SimpleRaster | getRasterData | {
"repo_name": "deegree/deegree3",
"path": "deegree-core/deegree-core-coverage/src/main/java/org/deegree/coverage/raster/SimpleRaster.java",
"license": "lgpl-2.1",
"size": 11277
} | [
"org.deegree.coverage.raster.data.RasterData"
] | import org.deegree.coverage.raster.data.RasterData; | import org.deegree.coverage.raster.data.*; | [
"org.deegree.coverage"
] | org.deegree.coverage; | 1,812,365 |
public void rowReadEvent( final RowMetaInterface rowMeta, final Object[] row ) throws KettleStepException {
} | void function( final RowMetaInterface rowMeta, final Object[] row ) throws KettleStepException { } | /**
* This method is called when a row is read from another step
*
* @param rowMeta the metadata of the row
* @param row the data of the row
* @throws KettleStepException an exception that can be thrown to hard stop the step
*/ | This method is called when a row is read from another step | rowReadEvent | {
"repo_name": "carlosrusso/cda",
"path": "pentaho/src/main/java/pt/webdetails/cda/dataaccess/CdaPentahoKettleTransFromFileProducer.java",
"license": "mpl-2.0",
"size": 14245
} | [
"org.pentaho.di.core.exception.KettleStepException",
"org.pentaho.di.core.row.RowMetaInterface"
] | import org.pentaho.di.core.exception.KettleStepException; import org.pentaho.di.core.row.RowMetaInterface; | import org.pentaho.di.core.exception.*; import org.pentaho.di.core.row.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 894,131 |
public List<ArrowBuffer> getBuffersLayout() {
return buffersLayout;
} | List<ArrowBuffer> function() { return buffersLayout; } | /**
* Get the serialized layout.
*
* @return the serialized layout if we send the buffers on the wire
*/ | Get the serialized layout | getBuffersLayout | {
"repo_name": "itaiin/arrow",
"path": "java/vector/src/main/java/org/apache/arrow/vector/ipc/message/ArrowRecordBatch.java",
"license": "apache-2.0",
"size": 6586
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,775,497 |
public Refund refund(String eCheckId, Refund refund) throws BaseException {
logger.debug("Enter ECheckService::refund");
if (StringUtils.isBlank(eCheckId)) {
logger.error("IllegalArgumentException {}", eCheckId);
throw new IllegalArgumentException("eCheckId cannot be empty or null");
}
// prepare ... | Refund function(String eCheckId, Refund refund) throws BaseException { logger.debug(STR); if (StringUtils.isBlank(eCheckId)) { logger.error(STR, eCheckId); throw new IllegalArgumentException(STR); } String apiUrl = requestContext.getBaseUrl() + STR.replaceAll(STR, "json") .replaceAll("\\{" + "id" + "\\}", eCheckId.toSt... | /**
* Method to refund or void ECheck
*
* @param eCheckId
* @param refund
* @return
* @throws BaseException
*/ | Method to refund or void ECheck | refund | {
"repo_name": "intuit/QuickBooks-V3-Java-SDK",
"path": "payments-api/src/main/java/com/intuit/payment/services/ECheckService.java",
"license": "apache-2.0",
"size": 6727
} | [
"com.fasterxml.jackson.core.type.TypeReference",
"com.intuit.payment.data.Refund",
"com.intuit.payment.exception.BaseException",
"com.intuit.payment.http.MethodType",
"com.intuit.payment.http.Request",
"com.intuit.payment.http.Response",
"org.apache.commons.lang.StringUtils"
] | import com.fasterxml.jackson.core.type.TypeReference; import com.intuit.payment.data.Refund; import com.intuit.payment.exception.BaseException; import com.intuit.payment.http.MethodType; import com.intuit.payment.http.Request; import com.intuit.payment.http.Response; import org.apache.commons.lang.StringUtils; | import com.fasterxml.jackson.core.type.*; import com.intuit.payment.data.*; import com.intuit.payment.exception.*; import com.intuit.payment.http.*; import org.apache.commons.lang.*; | [
"com.fasterxml.jackson",
"com.intuit.payment",
"org.apache.commons"
] | com.fasterxml.jackson; com.intuit.payment; org.apache.commons; | 787,051 |
protected void registerHandlers(Map<K, ?> handlerMap) throws BeansException {
Assert.notNull(handlerMap, "Handler Map must not be null");
for (Map.Entry<K, ?> entry : handlerMap.entrySet()) {
registerHandler(entry.getKey(), entry.getValue());
}
} | void function(Map<K, ?> handlerMap) throws BeansException { Assert.notNull(handlerMap, STR); for (Map.Entry<K, ?> entry : handlerMap.entrySet()) { registerHandler(entry.getKey(), entry.getValue()); } } | /**
* Register all handlers specified in the Portlet mode map for the corresponding modes.
* @param handlerMap Map with lookup keys as keys and handler beans or bean names as values
* @throws BeansException if the handler couldn't be registered
*/ | Register all handlers specified in the Portlet mode map for the corresponding modes | registerHandlers | {
"repo_name": "qobel/esoguproject",
"path": "spring-framework/spring-webmvc-portlet/src/main/java/org/springframework/web/portlet/handler/AbstractMapBasedHandlerMapping.java",
"license": "apache-2.0",
"size": 7618
} | [
"java.util.Map",
"org.springframework.beans.BeansException",
"org.springframework.util.Assert"
] | import java.util.Map; import org.springframework.beans.BeansException; import org.springframework.util.Assert; | import java.util.*; import org.springframework.beans.*; import org.springframework.util.*; | [
"java.util",
"org.springframework.beans",
"org.springframework.util"
] | java.util; org.springframework.beans; org.springframework.util; | 979,609 |
public boolean isColumnForPartitionPruning(Column col) {
return isColumnForPartitionPruning0(col, false);
} | boolean function(Column col) { return isColumnForPartitionPruning0(col, false); } | /**
* Check whether passed column can be used for partition pruning.
*
* @param col Column.
* @return {@code True} if affinity key column.
*/ | Check whether passed column can be used for partition pruning | isColumnForPartitionPruning | {
"repo_name": "ptupitsyn/ignite",
"path": "modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/GridH2Table.java",
"license": "apache-2.0",
"size": 41418
} | [
"org.h2.table.Column"
] | import org.h2.table.Column; | import org.h2.table.*; | [
"org.h2.table"
] | org.h2.table; | 2,608,706 |
public synchronized void addDefaultExcludes()
{
int excludesLength = excludes == null ? 0 : excludes.length;
String[] newExcludes;
newExcludes = new String[excludesLength + defaultExcludes.size()];
if (excludesLength > 0)
{
System.arraycopy(excludes, 0, newExc... | synchronized void function() { int excludesLength = excludes == null ? 0 : excludes.length; String[] newExcludes; newExcludes = new String[excludesLength + defaultExcludes.size()]; if (excludesLength > 0) { System.arraycopy(excludes, 0, newExcludes, 0, excludesLength); } String[] defaultExcludesTemp = getDefaultExclude... | /**
* Add default exclusions to the current exclusions set.
*/ | Add default exclusions to the current exclusions set | addDefaultExcludes | {
"repo_name": "mtjandra/izpack",
"path": "izpack-util/src/main/java/com/izforge/izpack/util/file/DirectoryScanner.java",
"license": "apache-2.0",
"size": 60319
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,915,850 |
public void firstClassSend(String letterBoxName, Envelope envelope) {
ArrayList<Envelope> mailQueue;
if( outgoingBuild.containsKey(letterBoxName) ) {
mailQueue = outgoingBuild.get(letterBoxName);
} else {
mailQueue = new ArrayList<Envelope>();
outgoingBuild.put(letterBoxName, mailQueue);
}
mailQu... | void function(String letterBoxName, Envelope envelope) { ArrayList<Envelope> mailQueue; if( outgoingBuild.containsKey(letterBoxName) ) { mailQueue = outgoingBuild.get(letterBoxName); } else { mailQueue = new ArrayList<Envelope>(); outgoingBuild.put(letterBoxName, mailQueue); } mailQueue.add(envelope); actualSend(); } | /** send as soon as possible
*
* @param letterBoxName
* @param params
*/ | send as soon as possible | firstClassSend | {
"repo_name": "caffeinate/gwt-map-scratch",
"path": "src/uk/co/plogic/gwt/lib/comms/UxPostalService.java",
"license": "apache-2.0",
"size": 5807
} | [
"java.util.ArrayList",
"uk.co.plogic.gwt.lib.comms.envelope.Envelope"
] | import java.util.ArrayList; import uk.co.plogic.gwt.lib.comms.envelope.Envelope; | import java.util.*; import uk.co.plogic.gwt.lib.comms.envelope.*; | [
"java.util",
"uk.co.plogic"
] | java.util; uk.co.plogic; | 2,850,157 |
public void assertHasContent(AssertionInfo info, File actual, String expected, Charset charset) {
if (expected == null) throw new NullPointerException("The text to compare to should not be null");
assertIsFile(info, actual);
try {
List<String> diffs = diff.diff(actual, expected, charset);
if (... | void function(AssertionInfo info, File actual, String expected, Charset charset) { if (expected == null) throw new NullPointerException(STR); assertIsFile(info, actual); try { List<String> diffs = diff.diff(actual, expected, charset); if (diffs.isEmpty()) return; throw failures.failure(info, shouldHaveContent(actual, c... | /**
* Asserts that the given file has the given text content.
* @param info contains information about the assertion.
* @param actual the "actual" file.
* @param expected the "expected" text content.
* @param charset the charset to use to read the file.
* @throws NullPointerException if {@code expecte... | Asserts that the given file has the given text content | assertHasContent | {
"repo_name": "AlexBischof/assertj-core",
"path": "src/main/java/org/assertj/core/internal/Files.java",
"license": "apache-2.0",
"size": 14594
} | [
"java.io.File",
"java.io.IOException",
"java.nio.charset.Charset",
"java.util.List",
"org.assertj.core.api.AssertionInfo",
"org.assertj.core.error.ShouldHaveContent",
"org.assertj.core.util.FilesException"
] | import java.io.File; import java.io.IOException; import java.nio.charset.Charset; import java.util.List; import org.assertj.core.api.AssertionInfo; import org.assertj.core.error.ShouldHaveContent; import org.assertj.core.util.FilesException; | import java.io.*; import java.nio.charset.*; import java.util.*; import org.assertj.core.api.*; import org.assertj.core.error.*; import org.assertj.core.util.*; | [
"java.io",
"java.nio",
"java.util",
"org.assertj.core"
] | java.io; java.nio; java.util; org.assertj.core; | 131,610 |
Map getDataObjectsTaggedCount(SecurityContext ctx, List rootNodeIDs)
throws DSOutOfServiceException, DSAccessException
{
try {
IQueryPrx service = gw.getQueryService(ctx);
ParametersI param;
StringBuilder sb = new StringBuilder();
sb.append("select img from Image as img ");
sb.append("le... | Map getDataObjectsTaggedCount(SecurityContext ctx, List rootNodeIDs) throws DSOutOfServiceException, DSAccessException { try { IQueryPrx service = gw.getQueryService(ctx); ParametersI param; StringBuilder sb = new StringBuilder(); sb.append(STR); sb.append(STR); sb.append(STR); Iterator i = rootNodeIDs.iterator(); Long... | /**
* Returns the number of images related to a given tag.
*
* @param ctx The security context.
* @param rootNodeIDs The annotated objects.
* @throws DSOutOfServiceException If the connection is broken, or logged
* in.
* @throws DSAccessException If an error occurr... | Returns the number of images related to a given tag | getDataObjectsTaggedCount | {
"repo_name": "dominikl/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java",
"license": "gpl-2.0",
"size": 262766
} | [
"java.util.HashMap",
"java.util.Iterator",
"java.util.List",
"java.util.Map"
] | import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 165,091 |
private MembersAddJobStatus membersAddJobStatusGet(DbxAsync.PollArg arg)
throws MembersAddJobStatusGetException, DbxException
{
try {
return client.rpcStyle(client.getHost().api,
"2/team/members/add/job_status/get",
... | MembersAddJobStatus function(DbxAsync.PollArg arg) throws MembersAddJobStatusGetException, DbxException { try { return client.rpcStyle(client.getHost().api, STR, arg, false, DbxAsync.PollArg._writer, MembersAddJobStatus._reader, DbxAsync.PollError._reader); } catch (DbxRequestUtil.ErrorWrapper ew) { throw new MembersAd... | /**
* Once an async_job_id is returned from {@link
* DbxTeam#membersAdd(java.util.List,boolean)} , use this to poll the status
* of the asynchronous request. Permission : Team member management
*/ | Once an async_job_id is returned from <code>DbxTeam#membersAdd(java.util.List,boolean)</code> , use this to poll the status of the asynchronous request. Permission : Team member management | membersAddJobStatusGet | {
"repo_name": "hunchee/dropbox-sdk-java",
"path": "src/com/dropbox/core/v2/DbxTeam.java",
"license": "mit",
"size": 1014346
} | [
"com.dropbox.core.DbxException",
"com.dropbox.core.DbxRequestUtil"
] | import com.dropbox.core.DbxException; import com.dropbox.core.DbxRequestUtil; | import com.dropbox.core.*; | [
"com.dropbox.core"
] | com.dropbox.core; | 987,630 |
@Nullable
public static MimeType parseMimeType (@Nullable final String sMimeType) throws MimeTypeParserException
{
return parseMimeType (sMimeType, CMimeType.DEFAULT_QUOTING);
} | static MimeType function (@Nullable final String sMimeType) throws MimeTypeParserException { return parseMimeType (sMimeType, CMimeType.DEFAULT_QUOTING); } | /**
* Try to convert the string representation of a MIME type to an object. The
* default quoting algorithm {@link CMimeType#DEFAULT_QUOTING} is used to
* unquote strings.
*
* @param sMimeType
* The string representation to be converted. May be <code>null</code>.
* @return <code>null</code>... | Try to convert the string representation of a MIME type to an object. The default quoting algorithm <code>CMimeType#DEFAULT_QUOTING</code> is used to unquote strings | parseMimeType | {
"repo_name": "lsimons/phloc-schematron-standalone",
"path": "phloc-commons/src/main/java/com/phloc/commons/mime/MimeTypeParser.java",
"license": "apache-2.0",
"size": 14364
} | [
"javax.annotation.Nullable"
] | import javax.annotation.Nullable; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 2,299,964 |
@Generated
@CVariable()
@MappedReturn(ObjCStringMapper.class)
public static native String UIKeyboardFrameBeginUserInfoKey(); | @CVariable() @MappedReturn(ObjCStringMapper.class) static native String function(); | /**
* NSValue of CGRect
*/ | NSValue of CGRect | UIKeyboardFrameBeginUserInfoKey | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/uikit/c/UIKit.java",
"license": "apache-2.0",
"size": 134869
} | [
"org.moe.natj.c.ann.CVariable",
"org.moe.natj.general.ann.MappedReturn",
"org.moe.natj.objc.map.ObjCStringMapper"
] | import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper; | import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*; | [
"org.moe.natj"
] | org.moe.natj; | 1,741,709 |
private boolean checkConditionContainsInputRefOrLiterals(RexNode left,
RexNode right, List<String> fieldNames) {
// FIXME Ignore casts for rel and assume they aren't really necessary
if (left.isA(SqlKind.CAST)) {
left = ((RexCall) left).getOperands().get(0);
}
if (right.isA(... | boolean function(RexNode left, RexNode right, List<String> fieldNames) { if (left.isA(SqlKind.CAST)) { left = ((RexCall) left).getOperands().get(0); } if (right.isA(SqlKind.CAST)) { right = ((RexCall) right).getOperands().get(0); } if (left.isA(SqlKind.INPUT_REF) && right.isA(SqlKind.LITERAL)) { final RexInputRef left1... | /**
* Checks whether a condition contains input refs of literals.
*
* @param left Left operand of the equality
* @param right Right operand of the equality
* @param fieldNames Names of all columns in the table
* @return Whether condition is supported
*/ | Checks whether a condition contains input refs of literals | checkConditionContainsInputRefOrLiterals | {
"repo_name": "googleinterns/calcite",
"path": "geode/src/main/java/org/apache/calcite/adapter/geode/rel/GeodeRules.java",
"license": "apache-2.0",
"size": 12499
} | [
"java.util.List",
"org.apache.calcite.rex.RexCall",
"org.apache.calcite.rex.RexInputRef",
"org.apache.calcite.rex.RexNode",
"org.apache.calcite.sql.SqlKind"
] | import java.util.List; import org.apache.calcite.rex.RexCall; import org.apache.calcite.rex.RexInputRef; import org.apache.calcite.rex.RexNode; import org.apache.calcite.sql.SqlKind; | import java.util.*; import org.apache.calcite.rex.*; import org.apache.calcite.sql.*; | [
"java.util",
"org.apache.calcite"
] | java.util; org.apache.calcite; | 1,748,690 |
@Deprecated
public EnumBlockRenderType getRenderType(IBlockState state)
{
return EnumBlockRenderType.MODEL;
} | EnumBlockRenderType function(IBlockState state) { return EnumBlockRenderType.MODEL; } | /**
* The type of render function called. MODEL for mixed tesr and static model, MODELBLOCK_ANIMATED for TESR-only,
* LIQUID for vanilla liquids, INVISIBLE to skip all rendering
*/ | The type of render function called. MODEL for mixed tesr and static model, MODELBLOCK_ANIMATED for TESR-only, LIQUID for vanilla liquids, INVISIBLE to skip all rendering | getRenderType | {
"repo_name": "TheGreatAndPowerfulWeegee/wipunknown",
"path": "build/tmp/recompileMc/sources/net/minecraft/block/Block.java",
"license": "gpl-3.0",
"size": 129758
} | [
"net.minecraft.block.state.IBlockState",
"net.minecraft.util.EnumBlockRenderType"
] | import net.minecraft.block.state.IBlockState; import net.minecraft.util.EnumBlockRenderType; | import net.minecraft.block.state.*; import net.minecraft.util.*; | [
"net.minecraft.block",
"net.minecraft.util"
] | net.minecraft.block; net.minecraft.util; | 1,159,967 |
private static void triggerNextFromQueue(final String pathname) {
synchronized (JpegSynchronizationUtil.class) {
mRunningSaveRequests.remove(pathname);
if (mQueuedSaveRequests.containsKey(pathname)) {
Logger.info("Executing queued store request for file " + pathname);
JpegMetadata newMetadata = mQueu... | static void function(final String pathname) { synchronized (JpegSynchronizationUtil.class) { mRunningSaveRequests.remove(pathname); if (mQueuedSaveRequests.containsKey(pathname)) { Logger.info(STR + pathname); JpegMetadata newMetadata = mQueuedSaveRequests.get(pathname); mQueuedSaveRequests.remove(pathname); triggerJpe... | /**
* Do cleanup from the last JpegSaverThread and trigger the next task on the same file, if existing.
*
* @param pathname
* The path of the jpg file.
*/ | Do cleanup from the last JpegSaverThread and trigger the next task on the same file, if existing | triggerNextFromQueue | {
"repo_name": "jeisfeld/Augendiagnose",
"path": "AugendiagnoseFX/src/de/eisfeldj/augendiagnosefx/util/imagefile/JpegSynchronizationUtil.java",
"license": "gpl-2.0",
"size": 5638
} | [
"de.eisfeldj.augendiagnosefx.util.Logger"
] | import de.eisfeldj.augendiagnosefx.util.Logger; | import de.eisfeldj.augendiagnosefx.util.*; | [
"de.eisfeldj.augendiagnosefx"
] | de.eisfeldj.augendiagnosefx; | 2,177,812 |
public static String getTerminalName(Properties ctx, int terminalId) throws TerminalNotFoundException
{
MPOSTerminal terminal = getTerminal(ctx, terminalId);
return terminal.getName();
} | static String function(Properties ctx, int terminalId) throws TerminalNotFoundException { MPOSTerminal terminal = getTerminal(ctx, terminalId); return terminal.getName(); } | /**
* Retrieves the name of the POS Terminal
* @param ctx Context
* @param terminalId Terminal
* @return Terminal Name
* @throws TerminalNotFoundException If the terminal cannot be loaded
*/ | Retrieves the name of the POS Terminal | getTerminalName | {
"repo_name": "armenrz/adempiere",
"path": "posterita/posterita/src/main/org/posterita/businesslogic/POSTerminalManager.java",
"license": "gpl-2.0",
"size": 45349
} | [
"java.util.Properties",
"org.compiere.model.MPOSTerminal",
"org.posterita.exceptions.TerminalNotFoundException"
] | import java.util.Properties; import org.compiere.model.MPOSTerminal; import org.posterita.exceptions.TerminalNotFoundException; | import java.util.*; import org.compiere.model.*; import org.posterita.exceptions.*; | [
"java.util",
"org.compiere.model",
"org.posterita.exceptions"
] | java.util; org.compiere.model; org.posterita.exceptions; | 76,257 |
static boolean recoverLockGrantor(Set members, DLockService service, DLockGrantor newGrantor,
DistributionManager dm, InternalDistributedMember elder) {
// proc will wait for replies from everyone including THIS member...
DLockRecoverGrantorProcessor processor =
new DLockRecoverGrantorProcessor(... | static boolean recoverLockGrantor(Set members, DLockService service, DLockGrantor newGrantor, DistributionManager dm, InternalDistributedMember elder) { DLockRecoverGrantorProcessor processor = new DLockRecoverGrantorProcessor(dm, members, newGrantor); DLockRecoverGrantorMessage msg = new DLockRecoverGrantorMessage(); ... | /**
* Sends DLockRecoverGrantorMessage to all participants of the DLockService in order to recover
* from the loss of the previous lock grantor. Each member will reply with details on currently
* held locks, pending locks, and known stuck locks.
* <p>
* This method should block until transfer of lock gra... | Sends DLockRecoverGrantorMessage to all participants of the DLockService in order to recover from the loss of the previous lock grantor. Each member will reply with details on currently held locks, pending locks, and known stuck locks. This method should block until transfer of lock grantor has completed | recoverLockGrantor | {
"repo_name": "deepakddixit/incubator-geode",
"path": "geode-core/src/main/java/org/apache/geode/distributed/internal/locks/DLockRecoverGrantorProcessor.java",
"license": "apache-2.0",
"size": 15657
} | [
"java.util.HashSet",
"java.util.Set",
"org.apache.geode.distributed.internal.DistributionManager",
"org.apache.geode.distributed.internal.ReplyException",
"org.apache.geode.distributed.internal.membership.InternalDistributedMember"
] | import java.util.HashSet; import java.util.Set; import org.apache.geode.distributed.internal.DistributionManager; import org.apache.geode.distributed.internal.ReplyException; import org.apache.geode.distributed.internal.membership.InternalDistributedMember; | import java.util.*; import org.apache.geode.distributed.internal.*; import org.apache.geode.distributed.internal.membership.*; | [
"java.util",
"org.apache.geode"
] | java.util; org.apache.geode; | 617,673 |
protected String getUrlForPrintInvoice(String basePath, String docId, String methodToCall) {
String baseUrl = basePath + "/" + ArConstants.UrlActions.CONTRACTS_GRANTS_LETTER_OF_CREDIT_REVIEW_DOCUMENT;
Properties parameters = new Properties();
parameters.put(KFSConstants.DISPATCH_REQUEST_PARA... | String function(String basePath, String docId, String methodToCall) { String baseUrl = basePath + "/" + ArConstants.UrlActions.CONTRACTS_GRANTS_LETTER_OF_CREDIT_REVIEW_DOCUMENT; Properties parameters = new Properties(); parameters.put(KFSConstants.DISPATCH_REQUEST_PARAMETER, methodToCall); parameters.put(KFSConstants.P... | /**
* Creates a URL to be used in printing the customer invoice document.
*
* @param basePath String: The base path of the current URL
* @param docId String: The document ID of the document to be printed
* @param methodToCall String: The name of the method that will be invoked to do ... | Creates a URL to be used in printing the customer invoice document | getUrlForPrintInvoice | {
"repo_name": "quikkian-ua-devops/will-financials",
"path": "kfs-ar/src/main/java/org/kuali/kfs/module/ar/document/web/struts/ContractsGrantsLetterOfCreditReviewAction.java",
"license": "agpl-3.0",
"size": 16714
} | [
"java.util.Properties",
"org.kuali.kfs.krad.util.UrlFactory",
"org.kuali.kfs.module.ar.ArConstants",
"org.kuali.kfs.sys.KFSConstants",
"org.kuali.rice.kew.api.KewApiConstants"
] | import java.util.Properties; import org.kuali.kfs.krad.util.UrlFactory; import org.kuali.kfs.module.ar.ArConstants; import org.kuali.kfs.sys.KFSConstants; import org.kuali.rice.kew.api.KewApiConstants; | import java.util.*; import org.kuali.kfs.krad.util.*; import org.kuali.kfs.module.ar.*; import org.kuali.kfs.sys.*; import org.kuali.rice.kew.api.*; | [
"java.util",
"org.kuali.kfs",
"org.kuali.rice"
] | java.util; org.kuali.kfs; org.kuali.rice; | 988,163 |
public Builder setGiropay(EmptyParam giropay) {
this.giropay = giropay;
return this;
} | Builder function(EmptyParam giropay) { this.giropay = giropay; return this; } | /**
* If this is a {@code giropay} PaymentMethod, this sub-hash contains details about the
* Giropay payment method options.
*/ | If this is a giropay PaymentMethod, this sub-hash contains details about the Giropay payment method options | setGiropay | {
"repo_name": "stripe/stripe-java",
"path": "src/main/java/com/stripe/param/PaymentIntentConfirmParams.java",
"license": "mit",
"size": 315067
} | [
"com.stripe.param.common.EmptyParam"
] | import com.stripe.param.common.EmptyParam; | import com.stripe.param.common.*; | [
"com.stripe.param"
] | com.stripe.param; | 1,063,059 |
@Test
public void bgpUpdateMessageTest41() throws BgpParseException {
byte[] updateMsg = new byte[] {(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff,
(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff,
... | void function() throws BgpParseException { byte[] updateMsg = new byte[] {(byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, (byte) 0xff, 0x00, (byte) 0x93, 0x02, 0x00, 0x04, 0... | /**
* Test for LinkStateattribute BgpAttrNodeRouterId and BgpPrefixAttrIGPFlags.
*
* @throws BgpParseException while parsing update message
*/ | Test for LinkStateattribute BgpAttrNodeRouterId and BgpPrefixAttrIGPFlags | bgpUpdateMessageTest41 | {
"repo_name": "gkatsikas/onos",
"path": "protocols/bgp/bgpio/src/test/java/org/onosproject/bgpio/protocol/BgpUpdateMsgTest.java",
"license": "apache-2.0",
"size": 100195
} | [
"java.util.LinkedList",
"java.util.List",
"java.util.ListIterator",
"org.hamcrest.MatcherAssert",
"org.hamcrest.Matchers",
"org.hamcrest.core.Is",
"org.jboss.netty.buffer.ChannelBuffer",
"org.jboss.netty.buffer.ChannelBuffers",
"org.onlab.packet.Ip4Address",
"org.onosproject.bgpio.exceptions.BgpPa... | import java.util.LinkedList; import java.util.List; import java.util.ListIterator; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; import org.hamcrest.core.Is; import org.jboss.netty.buffer.ChannelBuffer; import org.jboss.netty.buffer.ChannelBuffers; import org.onlab.packet.Ip4Address; import org.onosp... | import java.util.*; import org.hamcrest.*; import org.hamcrest.core.*; import org.jboss.netty.buffer.*; import org.onlab.packet.*; import org.onosproject.bgpio.exceptions.*; import org.onosproject.bgpio.protocol.linkstate.*; import org.onosproject.bgpio.protocol.ver4.*; import org.onosproject.bgpio.types.*; import org.... | [
"java.util",
"org.hamcrest",
"org.hamcrest.core",
"org.jboss.netty",
"org.onlab.packet",
"org.onosproject.bgpio"
] | java.util; org.hamcrest; org.hamcrest.core; org.jboss.netty; org.onlab.packet; org.onosproject.bgpio; | 785,322 |
public String getDisplayForModule(CmsModule module) {
String name = module.getNiceName();
String group = module.getGroup();
String version = module.getVersion().getVersion();
String display = name;
if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(group)) {
display = ... | String function(CmsModule module) { String name = module.getNiceName(); String group = module.getGroup(); String version = module.getVersion().getVersion(); String display = name; if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(group)) { display = group + STR + display; } if (CmsStringUtil.isNotEmptyOrWhitespaceOnly(versi... | /**
* Returns the display string for a given module.<p>
*
* @param module a module
*
* @return the display string for the given module
*/ | Returns the display string for a given module | getDisplayForModule | {
"repo_name": "serrapos/opencms-core",
"path": "src-setup/org/opencms/setup/CmsSetupBean.java",
"license": "lgpl-2.1",
"size": 111056
} | [
"org.opencms.module.CmsModule",
"org.opencms.util.CmsStringUtil"
] | import org.opencms.module.CmsModule; import org.opencms.util.CmsStringUtil; | import org.opencms.module.*; import org.opencms.util.*; | [
"org.opencms.module",
"org.opencms.util"
] | org.opencms.module; org.opencms.util; | 1,822,674 |
public T caseGlobalChoreographyTask(GlobalChoreographyTask object) {
return null;
} | T function(GlobalChoreographyTask object) { return null; } | /**
* Returns the result of interpreting the object as an instance of '<em>Global Choreography Task</em>'.
* <!-- begin-user-doc -->
* This implementation returns null;
* returning a non-null result will terminate the switch.
* <!-- end-user-doc -->
* @param object the target of the switch.
* @return the ... | Returns the result of interpreting the object as an instance of 'Global Choreography Task'. This implementation returns null; returning a non-null result will terminate the switch. | caseGlobalChoreographyTask | {
"repo_name": "romartin/kie-wb-common",
"path": "kie-wb-common-stunner/kie-wb-common-stunner-sets/kie-wb-common-stunner-bpmn/kie-wb-common-stunner-bpmn-emf/src/main/java/org/eclipse/bpmn2/util/Bpmn2Switch.java",
"license": "apache-2.0",
"size": 144865
} | [
"org.eclipse.bpmn2.GlobalChoreographyTask"
] | import org.eclipse.bpmn2.GlobalChoreographyTask; | import org.eclipse.bpmn2.*; | [
"org.eclipse.bpmn2"
] | org.eclipse.bpmn2; | 1,340,589 |
public Set<DisruptorConsumer> getConsumers() {
return Collections.unmodifiableSet(consumers);
} | Set<DisruptorConsumer> function() { return Collections.unmodifiableSet(consumers); } | /**
* Returns the current active consumers on this endpoint
*/ | Returns the current active consumers on this endpoint | getConsumers | {
"repo_name": "askannon/camel",
"path": "components/camel-disruptor/src/main/java/org/apache/camel/component/disruptor/DisruptorEndpoint.java",
"license": "apache-2.0",
"size": 13435
} | [
"java.util.Collections",
"java.util.Set"
] | import java.util.Collections; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,024,444 |
public static ObjectReference getScalarFromStartAddress(Address start) {
return VM_JavaHeader.getScalarFromStartAddress(start);
} | static ObjectReference function(Address start) { return VM_JavaHeader.getScalarFromStartAddress(start); } | /**
* Get an object reference from the address the lowest word of the object was allocated.
*/ | Get an object reference from the address the lowest word of the object was allocated | getScalarFromStartAddress | {
"repo_name": "rmcilroy/HeraJVM",
"path": "rvm/src/org/jikesrvm/objectmodel/VM_ObjectModel.java",
"license": "epl-1.0",
"size": 29746
} | [
"org.vmmagic.unboxed.Address",
"org.vmmagic.unboxed.ObjectReference"
] | import org.vmmagic.unboxed.Address; import org.vmmagic.unboxed.ObjectReference; | import org.vmmagic.unboxed.*; | [
"org.vmmagic.unboxed"
] | org.vmmagic.unboxed; | 2,014,540 |
@Test
public void testSingle() throws Exception {
Instance i = instance();
File f = store(i);
Bench.main(new String[]{
"-i", f.getAbsolutePath(),
"-v", "3"
});
} | void function() throws Exception { Instance i = instance(); File f = store(i); Bench.main(new String[]{ "-i", f.getAbsolutePath(), "-v", "3" }); } | /**
* Create an instance file, solve it using the bench
*/ | Create an instance file, solve it using the bench | testSingle | {
"repo_name": "btrplace/scheduler",
"path": "bench/src/test/java/org/btrplace/bench/BenchTest.java",
"license": "lgpl-3.0",
"size": 4191
} | [
"java.io.File",
"org.btrplace.model.Instance"
] | import java.io.File; import org.btrplace.model.Instance; | import java.io.*; import org.btrplace.model.*; | [
"java.io",
"org.btrplace.model"
] | java.io; org.btrplace.model; | 324,491 |
public void updateAttributeExpressions(List<Map<String, Object>> attributes, Map<String, String> nameChanges)
{
if (nameChanges == null) return;
for (Map<String, Object> attribute : attributes)
{
String identifier = attribute.get("identifier").toString();
String name = attribute.get("name").toString();... | void function(List<Map<String, Object>> attributes, Map<String, String> nameChanges) { if (nameChanges == null) return; for (Map<String, Object> attribute : attributes) { String identifier = attribute.get(STR).toString(); String name = attribute.get("name").toString(); Map<String, String> expressions = Maps.newHashMap(... | /**
* Updates attribute names in expressions. Attribute expression can refer to attributes within the same entity, so
* we pass this method an entity-scoped map of changes.
*/ | Updates attribute names in expressions. Attribute expression can refer to attributes within the same entity, so we pass this method an entity-scoped map of changes | updateAttributeExpressions | {
"repo_name": "marijevdgeest/molgenis",
"path": "molgenis-data-migrate/src/main/java/org/molgenis/data/version/v1_8/Step11ConvertNames.java",
"license": "lgpl-3.0",
"size": 32958
} | [
"com.google.common.collect.Maps",
"java.util.List",
"java.util.Map",
"java.util.regex.Matcher",
"java.util.regex.Pattern"
] | import com.google.common.collect.Maps; import java.util.List; import java.util.Map; import java.util.regex.Matcher; 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; | 1,182,976 |
public static void fixAlarmInstances(Context context) {
// Register all instances after major time changes or when phone restarts
// TODO: Refactor this code to not use the overloaded registerInstance method.
ContentResolver contentResolver = context.getContentResolver();
for (AlarmI... | static void function(Context context) { ContentResolver contentResolver = context.getContentResolver(); for (AlarmInstance instance : AlarmInstance.getInstances(contentResolver, null)) { Log.d(STR + Utils.sChangByTime + STR+instance.mAlarmState); if (Utils.sChangByTime && instance.mAlarmState < AlarmInstance.FIRED_STAT... | /**
* Fix and update all alarm instance when a time change event occurs.
*
* @param context application context
*/ | Fix and update all alarm instance when a time change event occurs | fixAlarmInstances | {
"repo_name": "miswenwen/My_bird_work",
"path": "Bird_work/我的项目/AliDeskClock/AliDeskClock_liuqipeng_11_11_drawaniamtion/src/com/android/deskclock/alarms/AlarmStateManager.java",
"license": "apache-2.0",
"size": 47909
} | [
"android.content.ContentResolver",
"android.content.Context",
"com.android.deskclock.Log",
"com.android.deskclock.Utils",
"com.android.deskclock.holiday.HolidayManager",
"com.android.deskclock.provider.Alarm",
"com.android.deskclock.provider.AlarmInstance",
"java.util.Calendar"
] | import android.content.ContentResolver; import android.content.Context; import com.android.deskclock.Log; import com.android.deskclock.Utils; import com.android.deskclock.holiday.HolidayManager; import com.android.deskclock.provider.Alarm; import com.android.deskclock.provider.AlarmInstance; import java.util.Calendar; | import android.content.*; import com.android.deskclock.*; import com.android.deskclock.holiday.*; import com.android.deskclock.provider.*; import java.util.*; | [
"android.content",
"com.android.deskclock",
"java.util"
] | android.content; com.android.deskclock; java.util; | 1,770,211 |
public void get(String url, ImageListener listener, Priority priority) {
if (!TextUtils.isEmpty(url)) {
mImageLoader.getAsync(url, listener, priority);
}
} | void function(String url, ImageListener listener, Priority priority) { if (!TextUtils.isEmpty(url)) { mImageLoader.getAsync(url, listener, priority); } } | /**
* Attempts to retrieve the image at the url and passes it back via the ImageListener. First checks the cache and if it exists there returns it
* immediately otherwise attempts to download it and return later.
*
* @param url the url pointing to where this image is located online
* @para... | Attempts to retrieve the image at the url and passes it back via the ImageListener. First checks the cache and if it exists there returns it immediately otherwise attempts to download it and return later | get | {
"repo_name": "blinkboxbooks/android-app",
"path": "app/src/main/java/com/blinkboxbooks/android/util/BBBImageLoader.java",
"license": "mit",
"size": 5646
} | [
"android.text.TextUtils",
"com.android.volley.Request",
"com.android.volley.toolbox.ImageLoader"
] | import android.text.TextUtils; import com.android.volley.Request; import com.android.volley.toolbox.ImageLoader; | import android.text.*; import com.android.volley.*; import com.android.volley.toolbox.*; | [
"android.text",
"com.android.volley"
] | android.text; com.android.volley; | 2,778,003 |
default B withoutServices(Class<? extends ServiceConfiguration<?, ?>> clazz) {
return withoutServices(clazz, c -> true);
} | default B withoutServices(Class<? extends ServiceConfiguration<?, ?>> clazz) { return withoutServices(clazz, c -> true); } | /**
* Removes all service configurations of the given type from this configuration.
*
* @param clazz service configuration type
* @return an updated builder
*
* @see #getService(Class)
* @see #getServices(Class)
* @see #withService(ServiceConfiguration)
* @see #withService(Builder)
* @see ... | Removes all service configurations of the given type from this configuration | withoutServices | {
"repo_name": "ehcache/ehcache3",
"path": "ehcache-api/src/main/java/org/ehcache/config/FluentCacheConfigurationBuilder.java",
"license": "apache-2.0",
"size": 18055
} | [
"org.ehcache.spi.service.ServiceConfiguration"
] | import org.ehcache.spi.service.ServiceConfiguration; | import org.ehcache.spi.service.*; | [
"org.ehcache.spi"
] | org.ehcache.spi; | 346,898 |
DistributedMemberLock getPrimaryLock(boolean createDLS) {
synchronized (this) {
if (this.primaryLock == null) {
DistributedLockService dls = DistributedLockService
.getServiceNamed(PartitionedRegionHelper.PARTITION_LOCK_SERVICE_NAME);
if (dls == null) {
if (!createDLS |... | DistributedMemberLock getPrimaryLock(boolean createDLS) { synchronized (this) { if (this.primaryLock == null) { DistributedLockService dls = DistributedLockService .getServiceNamed(PartitionedRegionHelper.PARTITION_LOCK_SERVICE_NAME); if (dls == null) { if (!createDLS getProxyBucketRegion().getCache().isClosed()) { ret... | /**
* Lazily gets the lock for acquiring primary lock. Caller must handle null. If DLS, Cache, or
* DistributedSystem are shutting down then null will be returned. If DLS does not yet exist and
* createDLS is false then null will be returned.
*
* @param createDLS true will create DLS if it does not exist... | Lazily gets the lock for acquiring primary lock. Caller must handle null. If DLS, Cache, or DistributedSystem are shutting down then null will be returned. If DLS does not yet exist and createDLS is false then null will be returned | getPrimaryLock | {
"repo_name": "smanvi-pivotal/geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/cache/BucketAdvisor.java",
"license": "apache-2.0",
"size": 99731
} | [
"org.apache.geode.distributed.DistributedLockService",
"org.apache.geode.distributed.DistributedSystemDisconnectedException",
"org.apache.geode.distributed.internal.locks.DLockService",
"org.apache.geode.distributed.internal.locks.DistributedMemberLock"
] | import org.apache.geode.distributed.DistributedLockService; import org.apache.geode.distributed.DistributedSystemDisconnectedException; import org.apache.geode.distributed.internal.locks.DLockService; import org.apache.geode.distributed.internal.locks.DistributedMemberLock; | import org.apache.geode.distributed.*; import org.apache.geode.distributed.internal.locks.*; | [
"org.apache.geode"
] | org.apache.geode; | 1,165,884 |
protected void setFirstResultInternal(int startPosition) {
if (startPosition < 0) {
throw new IllegalArgumentException(ExceptionLocalization.buildMessage("negative_start_position", (Object[]) null));
}
// bug 362804
firstResultIndex = startPosition;
} | void function(int startPosition) { if (startPosition < 0) { throw new IllegalArgumentException(ExceptionLocalization.buildMessage(STR, (Object[]) null)); } firstResultIndex = startPosition; } | /**
* Set the position of the first result to retrieve.
*
* @param startPosition
* position of the first result, numbered from 0.
*/ | Set the position of the first result to retrieve | setFirstResultInternal | {
"repo_name": "RallySoftware/eclipselink.runtime",
"path": "jpa/org.eclipse.persistence.jpa/src/org/eclipse/persistence/internal/jpa/QueryImpl.java",
"license": "epl-1.0",
"size": 48418
} | [
"org.eclipse.persistence.internal.localization.ExceptionLocalization"
] | import org.eclipse.persistence.internal.localization.ExceptionLocalization; | import org.eclipse.persistence.internal.localization.*; | [
"org.eclipse.persistence"
] | org.eclipse.persistence; | 1,097,355 |
@Test
public void suspendedReplyDebugTargetConnnected() {
final DebugTarget target = DebugPackage.eINSTANCE.getDebugFactory().createDebugTarget();
target.setContext(DebugPackage.eINSTANCE.getDebugFactory().createVariable());
target.setName("target");
target.setState(DebugTargetState.CONNECTED);
createThre... | void function() { final DebugTarget target = DebugPackage.eINSTANCE.getDebugFactory().createDebugTarget(); target.setContext(DebugPackage.eINSTANCE.getDebugFactory().createVariable()); target.setName(STR); target.setState(DebugTargetState.CONNECTED); createThreads(target); try { ThreadUtils.suspendedReply(target.getThr... | /**
* Tests {@link ThreadUtils#suspendedEvent(Thread)} in {@link DebugTargetState#CONNECTED}.
*/ | Tests <code>ThreadUtils#suspendedEvent(Thread)</code> in <code>DebugTargetState#CONNECTED</code> | suspendedReplyDebugTargetConnnected | {
"repo_name": "SiriusLab/SiriusAnimator",
"path": "simulationmodelanimation/tests/org.eclipse.gemoc.dsl.debug.tests/src/org/eclipse/gemoc/dsl/debug/tests/ThreadUtilsTests.java",
"license": "epl-1.0",
"size": 179513
} | [
"org.eclipse.gemoc.dsl.debug.DebugPackage",
"org.eclipse.gemoc.dsl.debug.DebugTarget",
"org.eclipse.gemoc.dsl.debug.DebugTargetState",
"org.eclipse.gemoc.dsl.debug.State",
"org.eclipse.gemoc.dsl.debug.ThreadUtils",
"org.junit.Assert"
] | import org.eclipse.gemoc.dsl.debug.DebugPackage; import org.eclipse.gemoc.dsl.debug.DebugTarget; import org.eclipse.gemoc.dsl.debug.DebugTargetState; import org.eclipse.gemoc.dsl.debug.State; import org.eclipse.gemoc.dsl.debug.ThreadUtils; import org.junit.Assert; | import org.eclipse.gemoc.dsl.debug.*; import org.junit.*; | [
"org.eclipse.gemoc",
"org.junit"
] | org.eclipse.gemoc; org.junit; | 1,920,642 |
public int compareTo(Object o) {
if (this.equals(o)) {
return 0;
}
ListIterator<BgpValueType> listIterator = subTlvs.listIterator();
int countOtherSubTlv = ((NodeDescriptors) o).subTlvs.size();
int countObjSubTlv = subTlvs.size();
boolean tlvFound = false;... | int function(Object o) { if (this.equals(o)) { return 0; } ListIterator<BgpValueType> listIterator = subTlvs.listIterator(); int countOtherSubTlv = ((NodeDescriptors) o).subTlvs.size(); int countObjSubTlv = subTlvs.size(); boolean tlvFound = false; if (countOtherSubTlv != countObjSubTlv) { if (countOtherSubTlv > countO... | /**
* Compares this and o object.
*
* @param o object to be compared with this object
* @return which object is greater
*/ | Compares this and o object | compareTo | {
"repo_name": "maheshraju-Huawei/actn",
"path": "protocols/bgp/bgpio/src/main/java/org/onosproject/bgpio/protocol/linkstate/NodeDescriptors.java",
"license": "apache-2.0",
"size": 12613
} | [
"java.util.ListIterator",
"org.onosproject.bgpio.types.BgpValueType",
"org.onosproject.bgpio.types.IsIsNonPseudonode",
"org.onosproject.bgpio.types.IsIsPseudonode",
"org.onosproject.bgpio.types.OspfNonPseudonode",
"org.onosproject.bgpio.types.OspfPseudonode"
] | import java.util.ListIterator; import org.onosproject.bgpio.types.BgpValueType; import org.onosproject.bgpio.types.IsIsNonPseudonode; import org.onosproject.bgpio.types.IsIsPseudonode; import org.onosproject.bgpio.types.OspfNonPseudonode; import org.onosproject.bgpio.types.OspfPseudonode; | import java.util.*; import org.onosproject.bgpio.types.*; | [
"java.util",
"org.onosproject.bgpio"
] | java.util; org.onosproject.bgpio; | 1,500,602 |
public PDLineDashPattern getDashStyle() {
COSArray d = (COSArray) getDictionary().getDictionaryObject("D");
if (d == null) {
d = new COSArray();
d.add(COSInteger.THREE);
getDictionary().setItem("D", d);
}
return new PDLineDashPattern(d, 0);
} | PDLineDashPattern function() { COSArray d = (COSArray) getDictionary().getDictionaryObject("D"); if (d == null) { d = new COSArray(); d.add(COSInteger.THREE); getDictionary().setItem("D", d); } return new PDLineDashPattern(d, 0); } | /**
* This will retrieve the dash style used for drawing the border.
*
* @return the dash style of the border
*/ | This will retrieve the dash style used for drawing the border | getDashStyle | {
"repo_name": "sencko/NALB",
"path": "nalb2013/src/org/apache/pdfbox/pdmodel/interactive/annotation/PDBorderStyleDictionary.java",
"license": "gpl-2.0",
"size": 4158
} | [
"org.apache.pdfbox.cos.COSArray",
"org.apache.pdfbox.cos.COSInteger",
"org.apache.pdfbox.pdmodel.graphics.PDLineDashPattern"
] | import org.apache.pdfbox.cos.COSArray; import org.apache.pdfbox.cos.COSInteger; import org.apache.pdfbox.pdmodel.graphics.PDLineDashPattern; | import org.apache.pdfbox.cos.*; import org.apache.pdfbox.pdmodel.graphics.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 2,140,554 |
User findByUsername(String username); | User findByUsername(String username); | /**
* Finds user by their username, {@code null} if none is found
*
* @param username User's username
* @return The user if one is found, {@code null} otherwise
*/ | Finds user by their username, null if none is found | findByUsername | {
"repo_name": "kwcarpenter/payroll_java",
"path": "src/main/java/com/openpayroll/web/UserRetrievalService.java",
"license": "mit",
"size": 495
} | [
"com.openpayroll.domain.User"
] | import com.openpayroll.domain.User; | import com.openpayroll.domain.*; | [
"com.openpayroll.domain"
] | com.openpayroll.domain; | 640,286 |
private void trackScreenSurface(SurfaceData sd) {
if (!done && sd instanceof D3DWindowSurfaceData) {
synchronized (this) {
if (d3dwSurfaces == null) {
d3dwSurfaces = new ArrayList<D3DWindowSurfaceData>();
}
D3DWindowSurfaceData ... | void function(SurfaceData sd) { if (!done && sd instanceof D3DWindowSurfaceData) { synchronized (this) { if (d3dwSurfaces == null) { d3dwSurfaces = new ArrayList<D3DWindowSurfaceData>(); } D3DWindowSurfaceData d3dw = (D3DWindowSurfaceData)sd; if (!d3dwSurfaces.contains(d3dw)) { d3dwSurfaces.add(d3dw); } } startUpdateTh... | /**
* Adds a surface to the list of tracked surfaces.
*
* @param sd the surface to be added
*/ | Adds a surface to the list of tracked surfaces | trackScreenSurface | {
"repo_name": "FauxFaux/jdk9-jdk",
"path": "src/java.desktop/windows/classes/sun/java2d/d3d/D3DScreenUpdateManager.java",
"license": "gpl-2.0",
"size": 21729
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 1,244,538 |
private void establishTopLeadership() {
int popSize = settlement.getNumCitizens();
if (popSize >= POPULATION_WITH_MAYOR) {
// Elect a mayor
electMayor(RoleType.MAYOR);
// Elect commander and sub-commander
electCommanders(popSize);
}
// for pop < POPULATION_WITH_MAYOR
else if (popSi... | void function() { int popSize = settlement.getNumCitizens(); if (popSize >= POPULATION_WITH_MAYOR) { electMayor(RoleType.MAYOR); electCommanders(popSize); } else if (popSize >= POPULATION_WITH_COMMANDER) { electCommanders(popSize); } } | /**
* Establish the top leadership of a settlement.
*
* @param settlement the settlement.
*/ | Establish the top leadership of a settlement | establishTopLeadership | {
"repo_name": "mars-sim/mars-sim",
"path": "mars-sim-core/src/main/java/org/mars_sim/msp/core/structure/ChainOfCommand.java",
"license": "gpl-3.0",
"size": 18529
} | [
"org.mars_sim.msp.core.person.ai.role.RoleType"
] | import org.mars_sim.msp.core.person.ai.role.RoleType; | import org.mars_sim.msp.core.person.ai.role.*; | [
"org.mars_sim.msp"
] | org.mars_sim.msp; | 1,822,540 |
public RestStatus status() {
if (state == SnapshotState.FAILED) {
return RestStatus.INTERNAL_SERVER_ERROR;
}
if (shardFailures.size() == 0) {
return RestStatus.OK;
}
return RestStatus.status(successfulShards, totalShards,
... | RestStatus function() { if (state == SnapshotState.FAILED) { return RestStatus.INTERNAL_SERVER_ERROR; } if (shardFailures.size() == 0) { return RestStatus.OK; } return RestStatus.status(successfulShards, totalShards, shardFailures.toArray(new ShardOperationFailedException[shardFailures.size()])); } | /**
* Returns snapshot REST status
*/ | Returns snapshot REST status | status | {
"repo_name": "qwerty4030/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/snapshots/SnapshotInfo.java",
"license": "apache-2.0",
"size": 24210
} | [
"org.elasticsearch.action.ShardOperationFailedException",
"org.elasticsearch.rest.RestStatus"
] | import org.elasticsearch.action.ShardOperationFailedException; import org.elasticsearch.rest.RestStatus; | import org.elasticsearch.action.*; import org.elasticsearch.rest.*; | [
"org.elasticsearch.action",
"org.elasticsearch.rest"
] | org.elasticsearch.action; org.elasticsearch.rest; | 2,685,612 |
@Nullable
protected BasicViewHolder createFooter(ViewGroup parent) {
return null;
} | BasicViewHolder function(ViewGroup parent) { return null; } | /**
* Creates a {@link BasicViewHolder} in the given view parent for the footer.
* See {@link #onCreateViewHolder(ViewGroup, int)}.
*/ | Creates a <code>BasicViewHolder</code> in the given view parent for the footer. See <code>#onCreateViewHolder(ViewGroup, int)</code> | createFooter | {
"repo_name": "scheib/chromium",
"path": "components/browser_ui/widget/android/java/src/org/chromium/components/browser_ui/widget/DateDividedAdapter.java",
"license": "bsd-3-clause",
"size": 29274
} | [
"android.view.ViewGroup"
] | import android.view.ViewGroup; | import android.view.*; | [
"android.view"
] | android.view; | 78,041 |
@Override
public String[] getOptions() {
Vector<String> result;
result = new Vector<String>();
if (isRandom()) {
result.add("-A");
result.add("" + getAttrIndexRange());
} else if (isUniform()) {
result.add("-U");
result.add("" + getAttrIndexRange());
} else if (isGaussi... | String[] function() { Vector<String> result; result = new Vector<String>(); if (isRandom()) { result.add("-A"); result.add(STR-USTRSTR-GSTRSTR-DSTRSTR-NSTRSTR-I"); } return result.toArray(new String[result.size()]); } | /**
* Gets the current settings of the datagenerator BIRCHCluster.
*
* @return an array of strings suitable for passing to setOptions
*/ | Gets the current settings of the datagenerator BIRCHCluster | getOptions | {
"repo_name": "ModelWriter/Deliverables",
"path": "WP2/D2.5.2_Generation/Jeni/lib/weka-src/src/main/java/weka/datagenerators/clusterers/SubspaceClusterDefinition.java",
"license": "epl-1.0",
"size": 23347
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 2,523,088 |
public boolean canAppend(ColumnSpacing column, int measureIndex, float usableWidthMm,
float usedWidthMm, ScoreHeader scoreHeader, boolean isFirstMeasure) {
//if a line break is forced, do it (but one measure is always allowed)
Break br = scoreHeader.getColumnHeader(measureIndex).getMeasureBreak();
if (br !=... | boolean function(ColumnSpacing column, int measureIndex, float usableWidthMm, float usedWidthMm, ScoreHeader scoreHeader, boolean isFirstMeasure) { Break br = scoreHeader.getColumnHeader(measureIndex).getMeasureBreak(); if (br != null && br.getSystemBreak() == SystemBreak.NewSystem && false == isFirstMeasure) return fa... | /**
* Returns true, if the given measure can be appended to the currently computed system,
* otherwise false.
* It is not tested if there is enough vertical space, this must be done before.
*/ | Returns true, if the given measure can be appended to the currently computed system, otherwise false. It is not tested if there is enough vertical space, this must be done before | canAppend | {
"repo_name": "Xenoage/Zong",
"path": "layout/src/com/xenoage/zong/musiclayout/spacer/system/SystemSpacer.java",
"license": "agpl-3.0",
"size": 7418
} | [
"com.xenoage.zong.core.format.Break",
"com.xenoage.zong.core.header.ScoreHeader",
"com.xenoage.zong.core.music.layout.SystemBreak",
"com.xenoage.zong.musiclayout.spacing.ColumnSpacing"
] | import com.xenoage.zong.core.format.Break; import com.xenoage.zong.core.header.ScoreHeader; import com.xenoage.zong.core.music.layout.SystemBreak; import com.xenoage.zong.musiclayout.spacing.ColumnSpacing; | import com.xenoage.zong.core.format.*; import com.xenoage.zong.core.header.*; import com.xenoage.zong.core.music.layout.*; import com.xenoage.zong.musiclayout.spacing.*; | [
"com.xenoage.zong"
] | com.xenoage.zong; | 500,454 |
public static BuildFileAST parseBuildFile(Lexer lexer, EventHandler eventHandler) {
Parser.ParseResult result = Parser.parseFile(lexer, eventHandler, null, false);
return new BuildFileAST(lexer, ImmutableList.<Statement>of(), result);
} | static BuildFileAST function(Lexer lexer, EventHandler eventHandler) { Parser.ParseResult result = Parser.parseFile(lexer, eventHandler, null, false); return new BuildFileAST(lexer, ImmutableList.<Statement>of(), result); } | /**
* Parse the specified build file, returning its AST. All errors during
* scanning or parsing will be reported to the reporter.
*/ | Parse the specified build file, returning its AST. All errors during scanning or parsing will be reported to the reporter | parseBuildFile | {
"repo_name": "wakashige/bazel",
"path": "src/main/java/com/google/devtools/build/lib/syntax/BuildFileAST.java",
"license": "apache-2.0",
"size": 10460
} | [
"com.google.common.collect.ImmutableList",
"com.google.devtools.build.lib.events.EventHandler"
] | import com.google.common.collect.ImmutableList; import com.google.devtools.build.lib.events.EventHandler; | import com.google.common.collect.*; import com.google.devtools.build.lib.events.*; | [
"com.google.common",
"com.google.devtools"
] | com.google.common; com.google.devtools; | 2,229,925 |
public void setServiceName(String serviceName) {
Validate.notEmpty(serviceName, "serviceName cannot be null or an empty String");
this.serviceName = serviceName;
} | void function(String serviceName) { Validate.notEmpty(serviceName, STR); this.serviceName = serviceName; } | /**
* Set the service name of this passive check
*
* @param serviceName
* the service name
*/ | Set the service name of this passive check | setServiceName | {
"repo_name": "Berico-Technologies/jsendnsca",
"path": "src/main/java/com/googlecode/jsendnsca/MessagePayload.java",
"license": "apache-2.0",
"size": 9018
} | [
"org.apache.commons.lang.Validate"
] | import org.apache.commons.lang.Validate; | import org.apache.commons.lang.*; | [
"org.apache.commons"
] | org.apache.commons; | 977,077 |
public void unpack(String directory) throws IOException {
miner(directory, 'u');
} | void function(String directory) throws IOException { miner(directory, 'u'); } | /**
* Unpacker unpack packed data to specified directory as original data files
*
* @param directory
* specifies where should be data unpacked
* @throws IOException
* throw if datafile is not accessible or output location is no
* writable
*/ | Unpacker unpack packed data to specified directory as original data files | unpack | {
"repo_name": "argorain/cubed",
"path": "SREngine/src/srengine/utils/Serialiser.java",
"license": "gpl-3.0",
"size": 6990
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 210,915 |
@ServiceMethod(returns = ReturnType.SINGLE)
public Mono<Response<DnsNameAvailabilityResultInner>> checkDnsNameAvailabilityWithResponseAsync(
String location, String domainNameLabel) {
if (this.getEndpoint() == null) {
return Mono
.error(new IllegalArgumentException("P... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<DnsNameAvailabilityResultInner>> function( String location, String domainNameLabel) { if (this.getEndpoint() == null) { return Mono .error(new IllegalArgumentException(STR)); } if (location == null) { return Mono.error(new IllegalArgumentException(STR)); } if (d... | /**
* Checks whether a domain name in the cloudapp.azure.com zone is available for use.
*
* @param location The location of the domain name.
* @param domainNameLabel The domain name to be verified. It must conform to the following regular expression:
* ^[a-z][a-z0-9-]{1,61}[a-z0-9]$.
*... | Checks whether a domain name in the cloudapp.azure.com zone is available for use | checkDnsNameAvailabilityWithResponseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanagerhybrid/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java",
"license": "mit",
"size": 60665
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.FluxUtil",
"com.azure.resourcemanager.network.fluent.models.DnsNameAvailabilityResultInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.models.DnsNameAvailabilityResultInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 1,107,396 |
private void writeLogicalSwitches(OutputStream stream) throws IOException {
// Local declarations
DataComponent logicalSwitches = (DataComponent) componentMap
.get("Logical Switches");
int numEntries = logicalSwitches.retrieveAllEntries().size();
IEntry currEntry;
String currValue;
String cu... | void function(OutputStream stream) throws IOException { DataComponent logicalSwitches = (DataComponent) componentMap .get(STR); int numEntries = logicalSwitches.retrieveAllEntries().size(); IEntry currEntry; String currValue; String currName; String currLine; String currDesc; String switchesHeader = String .format(STR,... | /**
* Grabs the LOGICAL SWITCHES DataComponent from the componentMap and writes
* the contents to the specified OutputStream.
*
* @param stream
* The OutputStream to write to
* @throws IOException
* Thrown when writing to OutputStream fails
*/ | Grabs the LOGICAL SWITCHES DataComponent from the componentMap and writes the contents to the specified OutputStream | writeLogicalSwitches | {
"repo_name": "eclipse/ice",
"path": "org.eclipse.ice.nek5000/src/org/eclipse/ice/nek5000/NekWriter.java",
"license": "epl-1.0",
"size": 37024
} | [
"java.io.IOException",
"java.io.OutputStream",
"org.eclipse.ice.datastructures.entry.IEntry",
"org.eclipse.ice.datastructures.form.DataComponent"
] | import java.io.IOException; import java.io.OutputStream; import org.eclipse.ice.datastructures.entry.IEntry; import org.eclipse.ice.datastructures.form.DataComponent; | import java.io.*; import org.eclipse.ice.datastructures.entry.*; import org.eclipse.ice.datastructures.form.*; | [
"java.io",
"org.eclipse.ice"
] | java.io; org.eclipse.ice; | 2,737,775 |
private void parseContent(Element e, List<NodeContent> retEl,
List<GoAble> schema, QueryPlan mother, PlanNode node) {
Iterator<GoAble> it = schema.iterator();
while (it.hasNext()) {
GoAble next = it.next();
List<Element> childs = getElementsByScheme(e, next);
for (int i = 0; i < childs.size(); i++) {... | void function(Element e, List<NodeContent> retEl, List<GoAble> schema, QueryPlan mother, PlanNode node) { Iterator<GoAble> it = schema.iterator(); while (it.hasNext()) { GoAble next = it.next(); List<Element> childs = getElementsByScheme(e, next); for (int i = 0; i < childs.size(); i++) { retEl.add(parseGoAble(next, ch... | /**
* Parses a List of node contents
*
* @param e
* the underlying XML node
* @param retEl
* the list the parse results should be attached to
* @param schema
* the scheme the parser should use
* @param mother
* the surrounding plan already parsed
* @para... | Parses a List of node contents | parseContent | {
"repo_name": "patrickbr/ferryleaks",
"path": "src/com/algebraweb/editor/server/logicalplan/xmlplanloader/planparser/PlanParser.java",
"license": "gpl-2.0",
"size": 12116
} | [
"com.algebraweb.editor.shared.node.NodeContent",
"com.algebraweb.editor.shared.node.PlanNode",
"com.algebraweb.editor.shared.node.QueryPlan",
"com.algebraweb.editor.shared.scheme.GoAble",
"java.util.Iterator",
"java.util.List",
"org.w3c.dom.Element"
] | import com.algebraweb.editor.shared.node.NodeContent; import com.algebraweb.editor.shared.node.PlanNode; import com.algebraweb.editor.shared.node.QueryPlan; import com.algebraweb.editor.shared.scheme.GoAble; import java.util.Iterator; import java.util.List; import org.w3c.dom.Element; | import com.algebraweb.editor.shared.node.*; import com.algebraweb.editor.shared.scheme.*; import java.util.*; import org.w3c.dom.*; | [
"com.algebraweb.editor",
"java.util",
"org.w3c.dom"
] | com.algebraweb.editor; java.util; org.w3c.dom; | 1,645,220 |
public void printSubNodes(int depth)
{
if (SanityManager.DEBUG)
{
super.printSubNodes(depth);
if (receiver != null)
{
printLabel(depth, "receiver: ");
receiver.treePrint(depth + 1);
}
if (leftOperand != null)
{
printLabel(depth, "leftOperand: ");
leftOperand.treePrint(depth +... | void function(int depth) { if (SanityManager.DEBUG) { super.printSubNodes(depth); if (receiver != null) { printLabel(depth, STR); receiver.treePrint(depth + 1); } if (leftOperand != null) { printLabel(depth, STR); leftOperand.treePrint(depth + 1); } if (rightOperand != null) { printLabel(depth, STR); rightOperand.treeP... | /**
* Prints the sub-nodes of this object. See QueryTreeNode.java for
* how tree printing is supposed to work.
*
* @param depth The depth of this node in the tree
*/ | Prints the sub-nodes of this object. See QueryTreeNode.java for how tree printing is supposed to work | printSubNodes | {
"repo_name": "lpxz/grail-derby104",
"path": "java/engine/org/apache/derby/impl/sql/compile/TernaryOperatorNode.java",
"license": "apache-2.0",
"size": 30919
} | [
"org.apache.derby.iapi.services.sanity.SanityManager"
] | import org.apache.derby.iapi.services.sanity.SanityManager; | import org.apache.derby.iapi.services.sanity.*; | [
"org.apache.derby"
] | org.apache.derby; | 1,274,822 |
@Override
protected Collection<?> getChildren() {
return Collections.singleton(identifier);
} | Collection<?> function() { return Collections.singleton(identifier); } | /**
* Returns the identifiers specified at construction time. This is used for {@link #toString()},
* {@link #hashCode()} and {@link #equals(Object)} implementations.
*/ | Returns the identifiers specified at construction time. This is used for <code>#toString()</code>, <code>#hashCode()</code> and <code>#equals(Object)</code> implementations | getChildren | {
"repo_name": "apache/sis",
"path": "core/sis-feature/src/main/java/org/apache/sis/filter/IdentifierFilter.java",
"license": "apache-2.0",
"size": 3186
} | [
"java.util.Collection",
"java.util.Collections"
] | import java.util.Collection; import java.util.Collections; | import java.util.*; | [
"java.util"
] | java.util; | 1,813,587 |
public Map<Integer, Map<Integer, Long>> reserveHistoryForExchange() {
return Collections.emptyMap();
} | Map<Integer, Map<Integer, Long>> function() { return Collections.emptyMap(); } | /**
* Reserve update history for exchange.
*
* @return Reserved update counters per cache and partition.
*/ | Reserve update history for exchange | reserveHistoryForExchange | {
"repo_name": "alexzaitzev/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/persistence/IgniteCacheDatabaseSharedManager.java",
"license": "apache-2.0",
"size": 40178
} | [
"java.util.Collections",
"java.util.Map"
] | import java.util.Collections; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,271,996 |
public static int dipToPixels(float densityPixels) {
return (int) (densityPixels * Resources.getSystem().getDisplayMetrics().density);
} | static int function(float densityPixels) { return (int) (densityPixels * Resources.getSystem().getDisplayMetrics().density); } | /**
* Convert density independent pixels to the associated
* pixel value based on the screen size and density.
*/ | Convert density independent pixels to the associated pixel value based on the screen size and density | dipToPixels | {
"repo_name": "mrkcsc/android-mg-bootstrap",
"path": "mg-bootstrap/lib/src/main/java/com/miguelgaeta/bootstrap/mg_reflection/MGReflection.java",
"license": "apache-2.0",
"size": 3430
} | [
"android.content.res.Resources"
] | import android.content.res.Resources; | import android.content.res.*; | [
"android.content"
] | android.content; | 206,818 |
private static int getCid(ResultSet rs, boolean[] success, Connection conn) {
int cid = 0;
String database = SQLHelper.isDerbyConn(conn)?"Derby - " :"gemfirexd - ";
Log.getLogWriter().info(database + "processing resultset");
List<Struct> customers = ResultSetHelper.asList(rs, SQLHelper.isDerbyConn(con... | static int function(ResultSet rs, boolean[] success, Connection conn) { int cid = 0; String database = SQLHelper.isDerbyConn(conn)?STR :STR; Log.getLogWriter().info(database + STR); List<Struct> customers = ResultSetHelper.asList(rs, SQLHelper.isDerbyConn(conn)); if (customers != null) { Log.getLogWriter().info(databas... | /**
* To process the resultSet and get appropriate cid inserted by this thread before
* @param rs -- the resultSet of cids inserted before
* @param success -- whether we could process the resultSet or not
* @return a cid inserted by this thread or 0 if no cid has been inserted by this thread exists
*/ | To process the resultSet and get appropriate cid inserted by this thread before | getCid | {
"repo_name": "SnappyDataInc/snappy-store",
"path": "tests/sql/src/main/java/sql/dmlStatements/AbstractDMLStmt.java",
"license": "apache-2.0",
"size": 120267
} | [
"com.gemstone.gemfire.cache.query.Struct",
"java.sql.Connection",
"java.sql.ResultSet",
"java.util.List"
] | import com.gemstone.gemfire.cache.query.Struct; import java.sql.Connection; import java.sql.ResultSet; import java.util.List; | import com.gemstone.gemfire.cache.query.*; import java.sql.*; import java.util.*; | [
"com.gemstone.gemfire",
"java.sql",
"java.util"
] | com.gemstone.gemfire; java.sql; java.util; | 102,640 |
public static String formatMethodForMessage(String name, List<TypeDescriptor> argumentTypes) {
StringBuilder sb = new StringBuilder();
sb.append(name);
sb.append("(");
for (int i = 0; i < argumentTypes.size(); i++) {
if (i > 0) {
sb.append(",");
}
TypeDescriptor typeDescriptor = argumentTypes.ge... | static String function(String name, List<TypeDescriptor> argumentTypes) { StringBuilder sb = new StringBuilder(); sb.append(name); sb.append("("); for (int i = 0; i < argumentTypes.size(); i++) { if (i > 0) { sb.append(","); } TypeDescriptor typeDescriptor = argumentTypes.get(i); if (typeDescriptor != null) { sb.append... | /**
* Produce a nice string for a given method name with specified arguments.
* @param name the name of the method
* @param argumentTypes the types of the arguments to the method
* @return nicely formatted string, eg. foo(String,int)
*/ | Produce a nice string for a given method name with specified arguments | formatMethodForMessage | {
"repo_name": "leogoing/spring_jeesite",
"path": "spring-expression-4.0/org/springframework/expression/spel/ast/FormatHelper.java",
"license": "apache-2.0",
"size": 2471
} | [
"java.util.List",
"org.springframework.core.convert.TypeDescriptor"
] | import java.util.List; import org.springframework.core.convert.TypeDescriptor; | import java.util.*; import org.springframework.core.convert.*; | [
"java.util",
"org.springframework.core"
] | java.util; org.springframework.core; | 1,094,105 |
void replaceAssociations(String oldPath, String newPath) throws RegistryException; | void replaceAssociations(String oldPath, String newPath) throws RegistryException; | /**
* Method to replace all associations, when moving or renaming a resource. All the associations
* towards a given path can be replaced by the new path by calling this method.
*
* @param oldPath the old resource path
* @param newPath the new resource path
*
* @throws RegistryExcepti... | Method to replace all associations, when moving or renaming a resource. All the associations towards a given path can be replaced by the new path by calling this method | replaceAssociations | {
"repo_name": "maheshika/carbon4-kernel",
"path": "core/org.wso2.carbon.registry.core/src/main/java/org/wso2/carbon/registry/core/dao/AssociationDAO.java",
"license": "apache-2.0",
"size": 3686
} | [
"org.wso2.carbon.registry.core.exceptions.RegistryException"
] | import org.wso2.carbon.registry.core.exceptions.RegistryException; | import org.wso2.carbon.registry.core.exceptions.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,137,310 |
public void finishResourceClassMember(Integer schClsMbrID, Integer rscClsMbrId, String startDateStr, String endDateStr, boolean isCentralAdmin) throws FinderException, RemoteException, DateException, ClassMemberException {
ResourceClassMemberHome mHome = (ResourceClassMemberHome) getIDOHome(ResourceClassMember.cl... | void function(Integer schClsMbrID, Integer rscClsMbrId, String startDateStr, String endDateStr, boolean isCentralAdmin) throws FinderException, RemoteException, DateException, ClassMemberException { ResourceClassMemberHome mHome = (ResourceClassMemberHome) getIDOHome(ResourceClassMember.class); ResourceClassMember mbr ... | /**
* Sets end date of a resource placement
*
* @param grpId The SchoolPlacements SchoolClassMemberID.
* @param rscId The ResourceID.
* @param startDate Startdate of this ResourcePlacement
* @param endDate Enddate of this ResourcePlacement
* @param isCentralAdmin user central admin or not
*/ | Sets end date of a resource placement | finishResourceClassMember | {
"repo_name": "idega/platform2",
"path": "src/se/idega/idegaweb/commune/care/resource/business/ResourceBusinessBean.java",
"license": "gpl-3.0",
"size": 33518
} | [
"com.idega.util.IWTimestamp",
"java.rmi.RemoteException",
"java.util.Date",
"javax.ejb.FinderException",
"se.idega.idegaweb.commune.care.resource.data.ResourceClassMember",
"se.idega.idegaweb.commune.care.resource.data.ResourceClassMemberHome"
] | import com.idega.util.IWTimestamp; import java.rmi.RemoteException; import java.util.Date; import javax.ejb.FinderException; import se.idega.idegaweb.commune.care.resource.data.ResourceClassMember; import se.idega.idegaweb.commune.care.resource.data.ResourceClassMemberHome; | import com.idega.util.*; import java.rmi.*; import java.util.*; import javax.ejb.*; import se.idega.idegaweb.commune.care.resource.data.*; | [
"com.idega.util",
"java.rmi",
"java.util",
"javax.ejb",
"se.idega.idegaweb"
] | com.idega.util; java.rmi; java.util; javax.ejb; se.idega.idegaweb; | 1,170,818 |
private String evaluateCondition(String conf, DefaultDependencyDescriptor dd) {
if (conf.charAt(0) != '[') {
return conf;
}
int endConditionIndex = conf.indexOf(']');
if (endConditionIndex == -1) {
addError("invalid conf " + conf + " for " + dd.getDependencyRevisionId());
... | String function(String conf, DefaultDependencyDescriptor dd) { if (conf.charAt(0) != '[') { return conf; } int endConditionIndex = conf.indexOf(']'); if (endConditionIndex == -1) { addError(STR + conf + STR + dd.getDependencyRevisionId()); return null; } String condition = conf.substring(1, endConditionIndex); int notE... | /**
* Evaluate the optional condition in the given configuration, like "[org=MYORG]confX".
* If the condition evaluates to true, the configuration is returned, if the condition
* evaluatate to false, null is returned.
* If there are no conditions, the configuration itself is retu... | Evaluate the optional condition in the given configuration, like "[org=MYORG]confX". If the condition evaluates to true, the configuration is returned, if the condition evaluatate to false, null is returned. If there are no conditions, the configuration itself is returned | evaluateCondition | {
"repo_name": "thelateperseus/ant-ivy",
"path": "src/java/fr/jayasoft/ivy/parser/AbstractModuleDescriptorParser.java",
"license": "bsd-3-clause",
"size": 13824
} | [
"fr.jayasoft.ivy.DefaultDependencyDescriptor"
] | import fr.jayasoft.ivy.DefaultDependencyDescriptor; | import fr.jayasoft.ivy.*; | [
"fr.jayasoft.ivy"
] | fr.jayasoft.ivy; | 2,863,595 |
protected Path strToPath(String p) throws IOException {
final Path path = new Path(p);
assertTrue("Non-absolute path: " + path, path.isAbsolute());
return path.makeQualified(contract.getFileSystem().getUri(), null);
} | Path function(String p) throws IOException { final Path path = new Path(p); assertTrue(STR + path, path.isAbsolute()); return path.makeQualified(contract.getFileSystem().getUri(), null); } | /**
* Convenience to create a fully qualified Path from string.
*/ | Convenience to create a fully qualified Path from string | strToPath | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/s3guard/MetadataStoreTestBase.java",
"license": "apache-2.0",
"size": 44756
} | [
"java.io.IOException",
"org.apache.hadoop.fs.Path"
] | import java.io.IOException; import org.apache.hadoop.fs.Path; | import java.io.*; import org.apache.hadoop.fs.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 565,158 |
public void setConfiguration(CacheConfiguration<?, ?> configuration) {
this.configuration = configuration;
} | void function(CacheConfiguration<?, ?> configuration) { this.configuration = configuration; } | /**
* The default cache configuration to be used to create caches.
*/ | The default cache configuration to be used to create caches | setConfiguration | {
"repo_name": "curso007/camel",
"path": "components/camel-ehcache/src/main/java/org/apache/camel/component/ehcache/EhcacheConfiguration.java",
"license": "apache-2.0",
"size": 8745
} | [
"org.ehcache.config.CacheConfiguration"
] | import org.ehcache.config.CacheConfiguration; | import org.ehcache.config.*; | [
"org.ehcache.config"
] | org.ehcache.config; | 1,067,345 |
private static <K, V> BiMap<K, V> filterFiltered(
FilteredEntryBiMap<K, V> map, Predicate<? super Entry<K, V>> entryPredicate) {
Predicate<Entry<K, V>> predicate = Predicates.and(map.predicate, entryPredicate);
return new FilteredEntryBiMap<K, V>(map.unfiltered(), predicate);
}
static final class F... | static <K, V> BiMap<K, V> function( FilteredEntryBiMap<K, V> map, Predicate<? super Entry<K, V>> entryPredicate) { Predicate<Entry<K, V>> predicate = Predicates.and(map.predicate, entryPredicate); return new FilteredEntryBiMap<K, V>(map.unfiltered(), predicate); } static final class FilteredEntryBiMap<K, V> extends Fil... | /**
* Support {@code clear()}, {@code removeAll()}, and {@code retainAll()} when
* filtering a filtered map.
*/ | Support clear(), removeAll(), and retainAll() when filtering a filtered map | filterFiltered | {
"repo_name": "dmi3aleks/guava",
"path": "guava/src/com/google/common/collect/Maps.java",
"license": "apache-2.0",
"size": 137471
} | [
"com.google.common.base.Predicate",
"com.google.common.base.Predicates",
"java.util.Map"
] | import com.google.common.base.Predicate; import com.google.common.base.Predicates; import java.util.Map; | import com.google.common.base.*; import java.util.*; | [
"com.google.common",
"java.util"
] | com.google.common; java.util; | 1,126,939 |
@IgniteSpiConfiguration(optional = true)
public void setNodeWeight(int nodeWeight) {
this.nodeWeight = nodeWeight;
} | @IgniteSpiConfiguration(optional = true) void function(int nodeWeight) { this.nodeWeight = nodeWeight; } | /**
* Sets weight of this node. Nodes with more processing capacity
* should be assigned proportionally larger weight. Default value
* is {@link #DFLT_NODE_WEIGHT} and is equal for all nodes.
*
* @param nodeWeight Weight of this node.
*/ | Sets weight of this node. Nodes with more processing capacity should be assigned proportionally larger weight. Default value is <code>#DFLT_NODE_WEIGHT</code> and is equal for all nodes | setNodeWeight | {
"repo_name": "dlnufox/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/spi/loadbalancing/weightedrandom/WeightedRandomLoadBalancingSpi.java",
"license": "apache-2.0",
"size": 15885
} | [
"org.apache.ignite.spi.IgniteSpiConfiguration"
] | import org.apache.ignite.spi.IgniteSpiConfiguration; | import org.apache.ignite.spi.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 140,134 |
@Test
@SmallTest
@Feature({"Preferences"})
@DisabledTest(message = "crbug.com/1223360")
public void testExportProgress() throws Exception {
mTestHelper.setPasswordSource(
new SavedPasswordEntry("https://example.com", "test user", "password"));
ReauthenticationManager... | @Feature({STR}) @DisabledTest(message = STR) void function() throws Exception { mTestHelper.setPasswordSource( new SavedPasswordEntry(STRtext/csv")))))); Intents.release(); tempFile.delete(); } | /**
* Check that a progressbar is displayed when the user confirms the export and the serialized
* passwords are not ready yet.
*/ | Check that a progressbar is displayed when the user confirms the export and the serialized passwords are not ready yet | testExportProgress | {
"repo_name": "ric2b/Vivaldi-browser",
"path": "chromium/chrome/android/javatests/src/org/chromium/chrome/browser/password_manager/settings/PasswordSettingsExportTest.java",
"license": "bsd-3-clause",
"size": 44067
} | [
"androidx.test.espresso.intent.Intents",
"org.chromium.base.test.util.DisabledTest",
"org.chromium.base.test.util.Feature"
] | import androidx.test.espresso.intent.Intents; import org.chromium.base.test.util.DisabledTest; import org.chromium.base.test.util.Feature; | import androidx.test.espresso.intent.*; import org.chromium.base.test.util.*; | [
"androidx.test",
"org.chromium.base"
] | androidx.test; org.chromium.base; | 52,750 |
public boolean verify(
SolrPackageInstance pkg,
List<String> collections,
boolean shouldDeployClusterPlugins,
String overrides[]) {
boolean success = true;
for (Plugin plugin : pkg.plugins) {
Command cmd = plugin.verifyCommand;
if (plugin.verifyCommand != null && !Strings.i... | boolean function( SolrPackageInstance pkg, List<String> collections, boolean shouldDeployClusterPlugins, String overrides[]) { boolean success = true; for (Plugin plugin : pkg.plugins) { Command cmd = plugin.verifyCommand; if (plugin.verifyCommand != null && !Strings.isNullOrEmpty(cmd.path)) { if (STR.equalsIgnoreCase(... | /**
* Given a package and list of collections, verify if the package is installed in those
* collections. It uses the verify command of every plugin in the package (if defined).
*
* @param overrides are needed only when shouldDeployClusterPlugins is true, since collection
* level plugins will get the... | Given a package and list of collections, verify if the package is installed in those collections. It uses the verify command of every plugin in the package (if defined) | verify | {
"repo_name": "apache/solr",
"path": "solr/core/src/java/org/apache/solr/packagemanager/PackageManager.java",
"license": "apache-2.0",
"size": 46192
} | [
"com.google.common.base.Strings",
"com.jayway.jsonpath.JsonPath",
"com.jayway.jsonpath.PathNotFoundException",
"java.util.List",
"java.util.Map",
"org.apache.solr.common.SolrException",
"org.apache.solr.packagemanager.SolrPackage"
] | import com.google.common.base.Strings; import com.jayway.jsonpath.JsonPath; import com.jayway.jsonpath.PathNotFoundException; import java.util.List; import java.util.Map; import org.apache.solr.common.SolrException; import org.apache.solr.packagemanager.SolrPackage; | import com.google.common.base.*; import com.jayway.jsonpath.*; import java.util.*; import org.apache.solr.common.*; import org.apache.solr.packagemanager.*; | [
"com.google.common",
"com.jayway.jsonpath",
"java.util",
"org.apache.solr"
] | com.google.common; com.jayway.jsonpath; java.util; org.apache.solr; | 1,667,230 |
@Test
public void testShouldUpdate() throws Exception {
DatabaseProperties properties = new MockUp<DatabaseProperties>() {
final private Properties properties = new Properties(); | void function() throws Exception { DatabaseProperties properties = new MockUp<DatabaseProperties>() { final private Properties properties = new Properties(); | /**
* Test of shouldUpdate method, of class EngineVersionCheck.
*/ | Test of shouldUpdate method, of class EngineVersionCheck | testShouldUpdate | {
"repo_name": "Prakhash/security-tools",
"path": "external/dependency-check-core-3.0.1/src/test/java/org/owasp/dependencycheck/data/update/EngineVersionCheckTest.java",
"license": "apache-2.0",
"size": 6209
} | [
"java.util.Properties",
"org.owasp.dependencycheck.data.nvdcve.DatabaseProperties"
] | import java.util.Properties; import org.owasp.dependencycheck.data.nvdcve.DatabaseProperties; | import java.util.*; import org.owasp.dependencycheck.data.nvdcve.*; | [
"java.util",
"org.owasp.dependencycheck"
] | java.util; org.owasp.dependencycheck; | 2,771,766 |
public static ImageDescriptor getImageDescriptor(String path) {
return imageDescriptorFromPlugin(PLUGIN_ID, path);
} | static ImageDescriptor function(String path) { return imageDescriptorFromPlugin(PLUGIN_ID, path); } | /**
* Returns an image descriptor for the image file at the given
* plug-in relative path
*
* @param path the path
* @return the image descriptor
*/ | Returns an image descriptor for the image file at the given plug-in relative path | getImageDescriptor | {
"repo_name": "AlexWengh/HMM",
"path": "src/hmm/Activator.java",
"license": "gpl-3.0",
"size": 1328
} | [
"org.eclipse.jface.resource.ImageDescriptor"
] | import org.eclipse.jface.resource.ImageDescriptor; | import org.eclipse.jface.resource.*; | [
"org.eclipse.jface"
] | org.eclipse.jface; | 2,537,464 |
boolean isRevisionNewer(@Nonnull Revision x, @Nonnull Revision previous) {
return getRevisionComparator().compare(x, previous) > 0;
} | boolean isRevisionNewer(@Nonnull Revision x, @Nonnull Revision previous) { return getRevisionComparator().compare(x, previous) > 0; } | /**
* Checks that revision x is newer than another revision.
*
* @param x the revision to check
* @param previous the presumed earlier revision
* @return true if x is newer
*/ | Checks that revision x is newer than another revision | isRevisionNewer | {
"repo_name": "bdelacretaz/jackrabbit-oak",
"path": "oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentNodeStore.java",
"license": "apache-2.0",
"size": 100265
} | [
"javax.annotation.Nonnull"
] | import javax.annotation.Nonnull; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 15,162 |
public void remove(CategoryPlot subplot) {
Args.nullNotPermitted(subplot, "subplot");
int position = -1;
int size = this.subplots.size();
int i = 0;
while (position == -1 && i < size) {
if (this.subplots.get(i) == subplot) {
position = i;
... | void function(CategoryPlot subplot) { Args.nullNotPermitted(subplot, STR); int position = -1; int size = this.subplots.size(); int i = 0; while (position == -1 && i < size) { if (this.subplots.get(i) == subplot) { position = i; } i++; } if (position != -1) { this.subplots.remove(position); subplot.setParent(null); subp... | /**
* Removes a subplot from the combined chart. Potentially, this removes
* some unique categories from the overall union of the datasets...so the
* domain axis is reconfigured, then a {@link PlotChangeEvent} is sent to
* all registered listeners.
*
* @param subplot the subplot ({... | Removes a subplot from the combined chart. Potentially, this removes some unique categories from the overall union of the datasets...so the domain axis is reconfigured, then a <code>PlotChangeEvent</code> is sent to all registered listeners | remove | {
"repo_name": "jfree/jfreechart",
"path": "src/main/java/org/jfree/chart/plot/CombinedDomainCategoryPlot.java",
"license": "lgpl-2.1",
"size": 23480
} | [
"org.jfree.chart.axis.CategoryAxis",
"org.jfree.chart.internal.Args"
] | import org.jfree.chart.axis.CategoryAxis; import org.jfree.chart.internal.Args; | import org.jfree.chart.axis.*; import org.jfree.chart.internal.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 1,535,974 |
public static <T> boolean compareList(List<T> listA, List<T> listB) {
// Both are null.
if(listA == null && listB == null)
return true;
// At least one of them is null.
if(listA == null || listB == null)
return false;
// If the size is different.
... | static <T> boolean function(List<T> listA, List<T> listB) { if(listA == null && listB == null) return true; if(listA == null listB == null) return false; if(listA.size() != listB.size()) return false; return listA.containsAll(listB); } | /**
* Compares two lists
*
* @param <T> The type of items in the list
* @param listA List 1
* @param listB List 2
* @return Returns a boolean comparing the lists
*/ | Compares two lists | compareList | {
"repo_name": "we7/voldemort",
"path": "src/java/voldemort/utils/Utils.java",
"license": "apache-2.0",
"size": 17091
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,403,057 |
public final SoftLock lockItem(Object key, Object version) throws CacheException {
try {
LOG.debugf( "locking key[%s] in region[%s]", key, getInternalRegion().getName() );
writeLock.lock();
Lockable item = (Lockable) getInternalRegion().get( key );
long timeout = getInternalRegion().nextTimestamp() + ... | final SoftLock function(Object key, Object version) throws CacheException { try { LOG.debugf( STR, key, getInternalRegion().getName() ); writeLock.lock(); Lockable item = (Lockable) getInternalRegion().get( key ); long timeout = getInternalRegion().nextTimestamp() + getInternalRegion().getTimeout(); final Lock lock = (... | /**
* Soft-lock a cache item.
*/ | Soft-lock a cache item | lockItem | {
"repo_name": "HerrB92/obp",
"path": "OpenBeaconPackage/libraries/hibernate-release-4.2.7.SP1/project/hibernate-testing/src/main/java/org/hibernate/testing/cache/AbstractReadWriteAccessStrategy.java",
"license": "mit",
"size": 9968
} | [
"org.hibernate.cache.CacheException",
"org.hibernate.cache.spi.access.SoftLock"
] | import org.hibernate.cache.CacheException; import org.hibernate.cache.spi.access.SoftLock; | import org.hibernate.cache.*; import org.hibernate.cache.spi.access.*; | [
"org.hibernate.cache"
] | org.hibernate.cache; | 1,542,268 |
public HttpSession getSession(boolean create) {
if (null != this.mySession) {
if (this.mySession.isInvalid()) {
this.mySession = null;
} else {
return this.mySession;
}
}
this.mySession = mgr.getSession(this, create);
... | HttpSession function(boolean create) { if (null != this.mySession) { if (this.mySession.isInvalid()) { this.mySession = null; } else { return this.mySession; } } this.mySession = mgr.getSession(this, create); return this.mySession; } | /**
* Access the current session for this connection. This may return null
* if one was not found and the create flag was false. If a cached session
* is found but it reports as invalid, then this will look for a new
* session if the create flag is true.
*
* @param create
* @return Ht... | Access the current session for this connection. This may return null if one was not found and the create flag was false. If a cached session is found but it reports as invalid, then this will look for a new session if the create flag is true | getSession | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.httpservice/src/com/ibm/ws/httpsvc/session/internal/SessionInfo.java",
"license": "epl-1.0",
"size": 13033
} | [
"javax.servlet.http.HttpSession"
] | import javax.servlet.http.HttpSession; | import javax.servlet.http.*; | [
"javax.servlet"
] | javax.servlet; | 438,144 |
public void setFilter(String pattern) throws PageException {
if(pattern.trim().length()>0) {
try {
this.filter=new WildCardFilter(pattern);
}
catch (MalformedPatternException e) {
throw Caster.toPageException(e);
}
}
}
| void function(String pattern) throws PageException { if(pattern.trim().length()>0) { try { this.filter=new WildCardFilter(pattern); } catch (MalformedPatternException e) { throw Caster.toPageException(e); } } } | /**
* sets a filter pattern
* @param pattern
* @throws PageException
**/ | sets a filter pattern | setFilter | {
"repo_name": "gpickin/Lucee4",
"path": "lucee-java/lucee-core/src/lucee/runtime/tag/PDF.java",
"license": "lgpl-2.1",
"size": 41387
} | [
"org.apache.oro.text.regex.MalformedPatternException"
] | import org.apache.oro.text.regex.MalformedPatternException; | import org.apache.oro.text.regex.*; | [
"org.apache.oro"
] | org.apache.oro; | 22,772 |
public void fatal(Object message) {
differentiatedLog(FATAL_MARKER, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, null);
} | void function(Object message) { differentiatedLog(FATAL_MARKER, CATEGORY_FQCN, LocationAwareLogger.ERROR_INT, message, null); } | /**
* Delegates to {@link org.slf4j.Logger#error(String)} method in SLF4J.
*/ | Delegates to <code>org.slf4j.Logger#error(String)</code> method in SLF4J | fatal | {
"repo_name": "hazendaz/slf4j",
"path": "log4j-over-slf4j/src/main/java/org/apache/log4j/Category.java",
"license": "mit",
"size": 10848
} | [
"org.slf4j.spi.LocationAwareLogger"
] | import org.slf4j.spi.LocationAwareLogger; | import org.slf4j.spi.*; | [
"org.slf4j.spi"
] | org.slf4j.spi; | 241,974 |
public void testTautology38() throws Exception {
final Element ele = BasicParser.createElement(
"<EXISTS><VAR id=\"y\"/><PREDCON id=\"equal\"><FUNVAR id=\"f\"><VAR id=\"x\"/></FUNVAR>"
+ "<FUNVAR id=\"f\"><VAR id=\"y\"/></FUNVAR></PREDCON></EXISTS>");
// System.out.println(ele... | void function() throws Exception { final Element ele = BasicParser.createElement( STRy\STRequal\STRf\STRx\STR + STRf\STRy\STR); assertTrue(isTautology(ele)); } | /**
* Function: isTautology(Element)
* Type: negative
* Data: \exists y f(x) = f(y)
*
* @throws Exception Test failed.
*/ | Function: isTautology(Element) Type: negative Data: \exists y f(x) = f(y) | testTautology38 | {
"repo_name": "m-31/qedeq",
"path": "QedeqKernelBoTest/src/org/qedeq/kernel/bo/logic/model/DynamicDirectInterpreterTest.java",
"license": "gpl-2.0",
"size": 82947
} | [
"org.qedeq.kernel.se.base.list.Element",
"org.qedeq.kernel.xml.parser.BasicParser"
] | import org.qedeq.kernel.se.base.list.Element; import org.qedeq.kernel.xml.parser.BasicParser; | import org.qedeq.kernel.se.base.list.*; import org.qedeq.kernel.xml.parser.*; | [
"org.qedeq.kernel"
] | org.qedeq.kernel; | 770,807 |
public void restore(Element e) {
Element first = (Element) e.getChildren().get(0);
HashMap<String, Object> map = new HashMap<String, Object>();
for (Object v : base.vertexSet()) {
map.put(base.getId(v), v);
}
if (first.getName().equals("vertex")) {
root = new Cluster(base, map.get(first.getAttribut... | void function(Element e) { Element first = (Element) e.getChildren().get(0); HashMap<String, Object> map = new HashMap<String, Object>(); for (Object v : base.vertexSet()) { map.put(base.getId(v), v); } if (first.getName().equals(STR)) { root = new Cluster(base, map.get(first.getAttributeValue("id"))); } else { root = ... | /**
* Restores the current hierarchy from an XML representation (the one
* that is generated by 'save')
*/ | Restores the current hierarchy from an XML representation (the one that is generated by 'save') | restore | {
"repo_name": "manuel-freire/ac2",
"path": "clover/src/main/java/es/ucm/fdi/clover/model/ClusterHierarchy.java",
"license": "gpl-3.0",
"size": 21005
} | [
"java.util.HashMap",
"java.util.List",
"org.jdom2.Element"
] | import java.util.HashMap; import java.util.List; import org.jdom2.Element; | import java.util.*; import org.jdom2.*; | [
"java.util",
"org.jdom2"
] | java.util; org.jdom2; | 1,167,608 |
@Test
public void testPartitionConsistencyDuringRebalanceConcurrentlyWithTopologyChange_DemanderRestart() throws Exception {
testPartitionConsistencyDuringRebalanceConcurrentlyWithTopologyChange(
demanderNodeName -> stopGrid(true, demanderNodeName),
demanderNodeName -> {
... | void function() throws Exception { testPartitionConsistencyDuringRebalanceConcurrentlyWithTopologyChange( demanderNodeName -> stopGrid(true, demanderNodeName), demanderNodeName -> { try { startGrid(demanderNodeName); } catch (Exception e) { fail(X.getFullStackTrace(e)); } }); } | /**
* Tests reproduces the problem: if node re-joins having MOVING partitions no partition inconsistency happens.
*
* @throws Exception
*/ | Tests reproduces the problem: if node re-joins having MOVING partitions no partition inconsistency happens | testPartitionConsistencyDuringRebalanceConcurrentlyWithTopologyChange_DemanderRestart | {
"repo_name": "chandresh-pancholi/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/transactions/TxPartitionCounterStateConsistencyTest.java",
"license": "apache-2.0",
"size": 50440
} | [
"org.apache.ignite.internal.util.typedef.X"
] | import org.apache.ignite.internal.util.typedef.X; | import org.apache.ignite.internal.util.typedef.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 1,902,158 |
private FlowFilterList getInputFilter(TxContext ctx) {
FlowFilterList ffl = inputFilter;
if (ffl == null) {
ffl = getFlowFilterList(
ctx, false, getInitialValue().getVinterfaceInputFilter());
inputFilter = ffl;
}
return ffl;
} | FlowFilterList function(TxContext ctx) { FlowFilterList ffl = inputFilter; if (ffl == null) { ffl = getFlowFilterList( ctx, false, getInitialValue().getVinterfaceInputFilter()); inputFilter = ffl; } return ffl; } | /**
* Return the vInterface input filter list.
*
* @param ctx MD-SAL datastore transaction context.
* @return A {@link FlowFilterList} instance associated with the
* vInterface input filter list.
*/ | Return the vInterface input filter list | getInputFilter | {
"repo_name": "opendaylight/vtn",
"path": "manager/implementation/src/main/java/org/opendaylight/vtn/manager/internal/vnode/VInterface.java",
"license": "epl-1.0",
"size": 40518
} | [
"org.opendaylight.vtn.manager.internal.TxContext",
"org.opendaylight.vtn.manager.internal.util.flow.filter.FlowFilterList"
] | import org.opendaylight.vtn.manager.internal.TxContext; import org.opendaylight.vtn.manager.internal.util.flow.filter.FlowFilterList; | import org.opendaylight.vtn.manager.internal.*; import org.opendaylight.vtn.manager.internal.util.flow.filter.*; | [
"org.opendaylight.vtn"
] | org.opendaylight.vtn; | 2,506,035 |
protected void inspectClassConstructors() {
Constructor<?>[] constructors = clazz.getConstructors();
for (Constructor<?> constructor : constructors) {
boolean isConstructor = membersResolver.isConstructor(constructor);
if (!isConstructor) {
continue;
}
ClassConstructor classConstruct... | void function() { Constructor<?>[] constructors = clazz.getConstructors(); for (Constructor<?> constructor : constructors) { boolean isConstructor = membersResolver.isConstructor(constructor); if (!isConstructor) { continue; } ClassConstructor classConstructor = membersResolver.constructClassConstructor(constructor); i... | /**
* Walks through all class constructors and and adds them as a new class constructor members.
*/ | Walks through all class constructors and and adds them as a new class constructor members | inspectClassConstructors | {
"repo_name": "jutils/jsen-core",
"path": "src/main/java/com/jsen/core/reflect/DefaultClassMembers.java",
"license": "gpl-2.0",
"size": 7920
} | [
"java.lang.reflect.Constructor"
] | import java.lang.reflect.Constructor; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 1,620,199 |
public final String encode(byte[] bytes, int off, int len) {
checkPositionIndexes(off, off + len, bytes.length);
StringBuilder result = new StringBuilder(maxEncodedSize(len));
try {
encodeTo(result, bytes, off, len);
} catch (IOException impossible) {
throw new AssertionError(impossible);
... | final String function(byte[] bytes, int off, int len) { checkPositionIndexes(off, off + len, bytes.length); StringBuilder result = new StringBuilder(maxEncodedSize(len)); try { encodeTo(result, bytes, off, len); } catch (IOException impossible) { throw new AssertionError(impossible); } return result.toString(); } | /**
* Encodes the specified range of the specified byte array, and returns the encoded
* {@code String}.
*/ | Encodes the specified range of the specified byte array, and returns the encoded String | encode | {
"repo_name": "tsyma/pinpoint",
"path": "thirdparty/google-guava/src/main/java/com/google/common/io/BaseEncoding.java",
"license": "apache-2.0",
"size": 36573
} | [
"com.google.common.base.Preconditions",
"java.io.IOException"
] | import com.google.common.base.Preconditions; import java.io.IOException; | import com.google.common.base.*; import java.io.*; | [
"com.google.common",
"java.io"
] | com.google.common; java.io; | 1,171,695 |
public Rectangle2D getBounds(){
// Get the primitive bounds
// Rectangle2D bounds = null;
if (bounds == null) {
// The painted region, before cliping, masking and compositing is
// either the area painted by the primitive paint or the area
// painted by th... | Rectangle2D function(){ if (bounds == null) { if(filter == null){ bounds = getPrimitiveBounds(); } else { bounds = filter.getBounds2D(); } if(bounds != null){ if (clip != null) { Rectangle2D clipR = clip.getClipPath().getBounds2D(); if (clipR.intersects(bounds)) Rectangle2D.intersect(bounds, clipR, bounds); } if (mask ... | /**
* Returns the bounds of this node in user space. This includes primitive
* paint, filtering, clipping and masking.
*/ | Returns the bounds of this node in user space. This includes primitive paint, filtering, clipping and masking | getBounds | {
"repo_name": "apache/batik",
"path": "batik-gvt/src/main/java/org/apache/batik/gvt/AbstractGraphicsNode.java",
"license": "apache-2.0",
"size": 31208
} | [
"java.awt.geom.Rectangle2D",
"org.apache.batik.util.HaltingThread"
] | import java.awt.geom.Rectangle2D; import org.apache.batik.util.HaltingThread; | import java.awt.geom.*; import org.apache.batik.util.*; | [
"java.awt",
"org.apache.batik"
] | java.awt; org.apache.batik; | 1,258,371 |
public ActivityInterface processSubActivities(OMElement om); | ActivityInterface function(OMElement om); | /**
* Get the subactivites in the bpel process
* Processes the subActivities each one separately, if the activity name matches any of the element tags
* then the constructor of that activity implementation is invoked
*
* @param om process definition of the bpel process
* @return activity
... | Get the subactivites in the bpel process Processes the subActivities each one separately, if the activity name matches any of the element tags then the constructor of that activity implementation is invoked | processSubActivities | {
"repo_name": "himasha/carbon-business-process",
"path": "components/bpel/org.wso2.carbon.bpel.ui/src/main/java/org/wso2/carbon/bpel/ui/bpel2svg/ActivityInterface.java",
"license": "apache-2.0",
"size": 10239
} | [
"org.apache.axiom.om.OMElement"
] | import org.apache.axiom.om.OMElement; | import org.apache.axiom.om.*; | [
"org.apache.axiom"
] | org.apache.axiom; | 2,652,537 |
public static String[] listLocalInetAddressNames() {
InetAddress addr;
InetAddress[] addrs;
HashSet set;
set = new HashSet();
try {
addr = InetAddress.getLocalHost();
addrs = InetAddress.getAllByName(addr.getHostAddress());
for... | static String[] function() { InetAddress addr; InetAddress[] addrs; HashSet set; set = new HashSet(); try { addr = InetAddress.getLocalHost(); addrs = InetAddress.getAllByName(addr.getHostAddress()); for (int i = 0; i < addrs.length; i++) { set.add(addrs[i].getHostAddress()); set.add(addrs[i].getHostName()); } addrs = ... | /**
* Retrieves an array of Strings naming the distinct, known to be valid local
* InetAddress names for this machine. The process is to collect and
* return the union of the following sets:
*
* <ol>
* <li> InetAddress.getAllByName(InetAddress.getLocalHost().getHostAddress())
* <li> ... | Retrieves an array of Strings naming the distinct, known to be valid local InetAddress names for this machine. The process is to collect and return the union of the following sets: InetAddress.getAllByName(InetAddress.getLocalHost().getHostAddress()) InetAddress.getAllByName(InetAddress.getLocalHost().getHostName()) In... | listLocalInetAddressNames | {
"repo_name": "ckaestne/LEADT",
"path": "workspace/hsqldb/src/org/hsqldb/ServerConfiguration.java",
"license": "gpl-3.0",
"size": 9409
} | [
"java.net.InetAddress",
"org.hsqldb.lib.HashSet"
] | import java.net.InetAddress; import org.hsqldb.lib.HashSet; | import java.net.*; import org.hsqldb.lib.*; | [
"java.net",
"org.hsqldb.lib"
] | java.net; org.hsqldb.lib; | 603,071 |
List<Map.Entry<String, Value<?>>> getValues(); | List<Map.Entry<String, Value<?>>> getValues(); | /**
* Returns a list of all the key-value pairs in this model.
*
* @return all key-value pairs
*/ | Returns a list of all the key-value pairs in this model | getValues | {
"repo_name": "Pyknic/CodeGen",
"path": "src/main/java/com/speedment/common/codegen/model/AnnotationUsage.java",
"license": "apache-2.0",
"size": 2093
} | [
"java.util.List",
"java.util.Map"
] | import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,509,525 |
public static String convertExcelWorkbookWithAdditionalSettings(String fileName, String xmlData, String outputFileName) throws InvalidKeyException, NoSuchAlgorithmException, IOException {
String localFilePath = null;
if(fileName == null || fileName.length() == 0) {
throw new IllegalArgumentException("Fi... | static String function(String fileName, String xmlData, String outputFileName) throws InvalidKeyException, NoSuchAlgorithmException, IOException { String localFilePath = null; if(fileName == null fileName.length() == 0) { throw new IllegalArgumentException(STR); } if(xmlData == null xmlData.length() == 0) { throw new I... | /**
* Convert a workbook to other formats with additional settings
* @param fileName Name of file stored on cloud
* @param xmlData Additional save options
* @param outputFileName Name use for saving converted file
* @throws java.security.InvalidKeyException If initialization fails because the provided key i... | Convert a workbook to other formats with additional settings | convertExcelWorkbookWithAdditionalSettings | {
"repo_name": "asposeforcloud/Aspose_Cloud_SDK_For_Android",
"path": "asposecloudsdk/src/main/java/com/aspose/cloud/sdk/cells/api/Workbook.java",
"license": "mit",
"size": 29988
} | [
"android.net.Uri",
"com.aspose.cloud.sdk.common.Utils",
"java.io.IOException",
"java.io.InputStream",
"java.security.InvalidKeyException",
"java.security.NoSuchAlgorithmException"
] | import android.net.Uri; import com.aspose.cloud.sdk.common.Utils; import java.io.IOException; import java.io.InputStream; import java.security.InvalidKeyException; import java.security.NoSuchAlgorithmException; | import android.net.*; import com.aspose.cloud.sdk.common.*; import java.io.*; import java.security.*; | [
"android.net",
"com.aspose.cloud",
"java.io",
"java.security"
] | android.net; com.aspose.cloud; java.io; java.security; | 451,366 |
@ServiceMethod(returns = ReturnType.SINGLE)
IntegrationRuntimeStatusResponseInner createLinkedIntegrationRuntime(
String resourceGroupName,
String factoryName,
String integrationRuntimeName,
CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest); | @ServiceMethod(returns = ReturnType.SINGLE) IntegrationRuntimeStatusResponseInner createLinkedIntegrationRuntime( String resourceGroupName, String factoryName, String integrationRuntimeName, CreateLinkedIntegrationRuntimeRequest createLinkedIntegrationRuntimeRequest); | /**
* Create a linked integration runtime entry in a shared integration runtime.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param integrationRuntimeName The integration runtime name.
* @param createLinkedIntegrationRuntimeRequest The lin... | Create a linked integration runtime entry in a shared integration runtime | createLinkedIntegrationRuntime | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/datafactory/azure-resourcemanager-datafactory/src/main/java/com/azure/resourcemanager/datafactory/fluent/IntegrationRuntimesClient.java",
"license": "mit",
"size": 37525
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner",
"com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.resourcemanager.datafactory.fluent.models.IntegrationRuntimeStatusResponseInner; import com.azure.resourcemanager.datafactory.models.CreateLinkedIntegrationRuntimeRequest; | import com.azure.core.annotation.*; import com.azure.resourcemanager.datafactory.fluent.models.*; import com.azure.resourcemanager.datafactory.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 513,690 |
public ServiceCall<List<Product>> getOdataMultiplePagesNextAsync(final String nextPageLink, final String clientRequestId, final PagingGetOdataMultiplePagesOptions pagingGetOdataMultiplePagesOptions, final ServiceCall<List<Product>> serviceCall, final ListOperationCallback<Product> serviceCallback) {
if (nex... | ServiceCall<List<Product>> function(final String nextPageLink, final String clientRequestId, final PagingGetOdataMultiplePagesOptions pagingGetOdataMultiplePagesOptions, final ServiceCall<List<Product>> serviceCall, final ListOperationCallback<Product> serviceCallback) { if (nextPageLink == null) { throw new IllegalArg... | /**
* A paging operation that includes a nextLink in odata format that has 10 pages.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param clientRequestId the String value
* @param pagingGetOdataMultiplePagesOptions Additional parameters for the oper... | A paging operation that includes a nextLink in odata format that has 10 pages | getOdataMultiplePagesNextAsync | {
"repo_name": "yaqiyang/autorest",
"path": "src/generator/AutoRest.Java.Azure.Tests/src/main/java/fixtures/paging/implementation/PagingsImpl.java",
"license": "mit",
"size": 106750
} | [
"com.microsoft.azure.ListOperationCallback",
"com.microsoft.rest.ServiceCall",
"com.microsoft.rest.Validator",
"java.util.List"
] | import com.microsoft.azure.ListOperationCallback; import com.microsoft.rest.ServiceCall; import com.microsoft.rest.Validator; import java.util.List; | import com.microsoft.azure.*; import com.microsoft.rest.*; import java.util.*; | [
"com.microsoft.azure",
"com.microsoft.rest",
"java.util"
] | com.microsoft.azure; com.microsoft.rest; java.util; | 2,172,393 |
public JsonObject toJsonObject() {
JsonObject o = new JsonObject();
if (this.status != null) {
o.add("rc", new JsonPrimitive(this.status.get()));
}
if (this.message != null) {
o.add("message", new JsonPrimitive(message));
}
if (this.reqId != null) {
o.add("reqId", new JsonPrimitive(reqId));
}
... | JsonObject function() { JsonObject o = new JsonObject(); if (this.status != null) { o.add("rc", new JsonPrimitive(this.status.get())); } if (this.message != null) { o.add(STR, new JsonPrimitive(message)); } if (this.reqId != null) { o.add("reqId", new JsonPrimitive(reqId)); } return o; } | /**
* Return the <code>JsonObject</code> representation of the <code>Listener Response</code> object.
* @return JsonObject object
*/ | Return the <code>JsonObject</code> representation of the <code>Listener Response</code> object | toJsonObject | {
"repo_name": "amprasanna/iot-java",
"path": "src/main/java/com/ibm/internal/iotf/devicemgmt/ConcreteCustomAction.java",
"license": "epl-1.0",
"size": 4414
} | [
"com.google.gson.JsonObject",
"com.google.gson.JsonPrimitive"
] | import com.google.gson.JsonObject; import com.google.gson.JsonPrimitive; | import com.google.gson.*; | [
"com.google.gson"
] | com.google.gson; | 2,760,831 |
public static void executeDatabaseScript(DatabaseDelegate databaseDelegate, String scriptPath, String script, boolean continueOnError,
boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter,
String blockCommentEndDelimiter) throws ScriptException {
try {
if (LO... | static void function(DatabaseDelegate databaseDelegate, String scriptPath, String script, boolean continueOnError, boolean ignoreFailedDrops, String commentPrefix, String separator, String blockCommentStartDelimiter, String blockCommentEndDelimiter) throws ScriptException { try { if (LOGGER.isInfoEnabled()) { LOGGER.in... | /**
* Execute the given database script.
* <p>Statement separators and comments will be removed before executing
* individual statements within the supplied script.
* <p><b>Do not use this method to execute DDL if you expect rollback.</b>
* @param databaseDelegate database delegate for script execution
... | Execute the given database script. Statement separators and comments will be removed before executing individual statements within the supplied script. Do not use this method to execute DDL if you expect rollback | executeDatabaseScript | {
"repo_name": "outofcoffee/testcontainers-java",
"path": "modules/database-commons/src/main/java/org/testcontainers/ext/ScriptUtils.java",
"license": "mit",
"size": 16088
} | [
"java.util.LinkedList",
"java.util.List",
"javax.script.ScriptException",
"org.testcontainers.delegate.DatabaseDelegate"
] | import java.util.LinkedList; import java.util.List; import javax.script.ScriptException; import org.testcontainers.delegate.DatabaseDelegate; | import java.util.*; import javax.script.*; import org.testcontainers.delegate.*; | [
"java.util",
"javax.script",
"org.testcontainers.delegate"
] | java.util; javax.script; org.testcontainers.delegate; | 415,939 |
public Map<String, String[]> getPublicRenderParameters(); | Map<String, String[]> function(); | /**
* The most recent set of public request parameters used for rendering the portlet
*
* @return The current request parameters for the portlet
*/ | The most recent set of public request parameters used for rendering the portlet | getPublicRenderParameters | {
"repo_name": "jl1955/uPortal5",
"path": "uPortal-core/src/main/java/org/apereo/portal/portlet/om/IPortletWindow.java",
"license": "apache-2.0",
"size": 4462
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,664,514 |
@Test
public void testBetween() throws Exception {
String resultGraph = "expected[(eve)-[eka]->(alice)-[akb]->(bob)-[bka]->(alice)]";
loader.appendToDatabaseFromString(resultGraph);
TemporalGraph input = toTemporalGraphWithDefaultExtractors(loader.getLogicalGraphByVariable("g0"));
LogicalGraph exp... | void function() throws Exception { String resultGraph = STR; loader.appendToDatabaseFromString(resultGraph); TemporalGraph input = toTemporalGraphWithDefaultExtractors(loader.getLogicalGraphByVariable("g0")); LogicalGraph expected = loader.getLogicalGraphByVariable(STR); TemporalGraph result = input.between(15435000000... | /**
* Test the method {@link TemporalGraph#between(long, long)}.
*
* @throws Exception on failure
*/ | Test the method <code>TemporalGraph#between(long, long)</code> | testBetween | {
"repo_name": "galpha/gradoop",
"path": "gradoop-temporal/src/test/java/org/gradoop/temporal/model/impl/operators/snapshot/SnapshotApiTest.java",
"license": "apache-2.0",
"size": 6574
} | [
"org.gradoop.flink.model.impl.epgm.LogicalGraph",
"org.gradoop.temporal.model.impl.TemporalGraph"
] | import org.gradoop.flink.model.impl.epgm.LogicalGraph; import org.gradoop.temporal.model.impl.TemporalGraph; | import org.gradoop.flink.model.impl.epgm.*; import org.gradoop.temporal.model.impl.*; | [
"org.gradoop.flink",
"org.gradoop.temporal"
] | org.gradoop.flink; org.gradoop.temporal; | 97,961 |
public Output<? extends TType> handle() {
return handle;
} | Output<? extends TType> function() { return handle; } | /**
* Gets handle.
*
* @return handle.
*/ | Gets handle | handle | {
"repo_name": "tensorflow/java",
"path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/data/experimental/StatsAggregatorHandle.java",
"license": "apache-2.0",
"size": 4768
} | [
"org.tensorflow.Output",
"org.tensorflow.types.family.TType"
] | import org.tensorflow.Output; import org.tensorflow.types.family.TType; | import org.tensorflow.*; import org.tensorflow.types.family.*; | [
"org.tensorflow",
"org.tensorflow.types"
] | org.tensorflow; org.tensorflow.types; | 829,352 |
List<AttributeDefinition> getAttributesDefinitionByNamespace(PerunSession sess, String namespace); | List<AttributeDefinition> getAttributesDefinitionByNamespace(PerunSession sess, String namespace); | /**
* Get attributes definition (attribute without defined value) with specified namespace.
*
* @param namespace get only attributes with this namespace
* @return List of attributes
*
* @throws InternalErrorException if an exception raise in concrete implementation, the exception is wrapped in InternalError... | Get attributes definition (attribute without defined value) with specified namespace | getAttributesDefinitionByNamespace | {
"repo_name": "zlamalp/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/bl/AttributesManagerBl.java",
"license": "bsd-2-clause",
"size": 244560
} | [
"cz.metacentrum.perun.core.api.AttributeDefinition",
"cz.metacentrum.perun.core.api.PerunSession",
"java.util.List"
] | import cz.metacentrum.perun.core.api.AttributeDefinition; import cz.metacentrum.perun.core.api.PerunSession; import java.util.List; | import cz.metacentrum.perun.core.api.*; import java.util.*; | [
"cz.metacentrum.perun",
"java.util"
] | cz.metacentrum.perun; java.util; | 1,813,981 |
private static byte[] generateSeed() {
try {
ByteArrayOutputStream seedBuffer = new ByteArrayOutputStream();
DataOutputStream seedBufferOut =
new DataOutputStream(seedBuffer);
seedBufferOut.writeLong(System.currentTimeMillis());
seedBufferO... | static byte[] function() { try { ByteArrayOutputStream seedBuffer = new ByteArrayOutputStream(); DataOutputStream seedBufferOut = new DataOutputStream(seedBuffer); seedBufferOut.writeLong(System.currentTimeMillis()); seedBufferOut.writeLong(System.nanoTime()); seedBufferOut.writeInt(Process.myPid()); seedBufferOut.writ... | /**
* Generates a device- and invocation-specific seed to be mixed into the
* Linux PRNG.
*/ | Generates a device- and invocation-specific seed to be mixed into the Linux PRNG | generateSeed | {
"repo_name": "p-acs/seccoco-android",
"path": "src/main/java/de/petendi/seccoco/android/PRNGFixes.java",
"license": "apache-2.0",
"size": 12741
} | [
"android.os.Process",
"java.io.ByteArrayOutputStream",
"java.io.DataOutputStream",
"java.io.IOException"
] | import android.os.Process; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; | import android.os.*; import java.io.*; | [
"android.os",
"java.io"
] | android.os; java.io; | 911,496 |
@Override public T visitVarDcl(@NotNull ScalaParser.VarDclContext ctx) { return visitChildren(ctx); } | @Override public T visitVarDcl(@NotNull ScalaParser.VarDclContext ctx) { return visitChildren(ctx); } | /**
* {@inheritDoc}
*
* <p>The default implementation returns the result of calling
* {@link #visitChildren} on {@code ctx}.</p>
*/ | The default implementation returns the result of calling <code>#visitChildren</code> on ctx | visitVarDef | {
"repo_name": "IsThisThePayneResidence/intellidots",
"path": "src/main/java/ua/edu/hneu/ast/parsers/ScalaBaseVisitor.java",
"license": "gpl-3.0",
"size": 26845
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 1,020,832 |
@Override
public void translate(final ITranslationEnvironment environment, final IInstruction instruction,
final List<ReilInstruction> instructions) throws InternalTranslationException {
TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "SETEND");
final long baseOffs... | void function(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException { TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, STR); final long baseOffset = ReilHelpers.nextReilAddress(instruct... | /**
* SETEND <endian_specifier>
*
* Operation:
*
* CPSR = CPSR with specified E bit modification
*/ | SETEND Operation: CPSR = CPSR with specified E bit modification | translate | {
"repo_name": "AmesianX/binnavi",
"path": "src/main/java/com/google/security/zynamics/reil/translators/arm/THUMBSetendTranslator.java",
"license": "apache-2.0",
"size": 1802
} | [
"com.google.security.zynamics.reil.ReilHelpers",
"com.google.security.zynamics.reil.ReilInstruction",
"com.google.security.zynamics.reil.translators.ITranslationEnvironment",
"com.google.security.zynamics.reil.translators.InternalTranslationException",
"com.google.security.zynamics.reil.translators.Translat... | import com.google.security.zynamics.reil.ReilHelpers; import com.google.security.zynamics.reil.ReilInstruction; import com.google.security.zynamics.reil.translators.ITranslationEnvironment; import com.google.security.zynamics.reil.translators.InternalTranslationException; import com.google.security.zynamics.reil.transl... | import com.google.security.zynamics.reil.*; import com.google.security.zynamics.reil.translators.*; import com.google.security.zynamics.zylib.disassembly.*; import java.util.*; | [
"com.google.security",
"java.util"
] | com.google.security; java.util; | 1,928,159 |
public void validateFields() throws IllegalStateException {
for (String rf : requiredFields)
if (textFields.get(rf).getText().trim().isEmpty()) {
textFields.get(rf).requestFocusInWindow();
throw new IllegalStateException(Constant.messages.getString(
"authentication.method.script.dialog.error.text.... | void function() throws IllegalStateException { for (String rf : requiredFields) if (textFields.get(rf).getText().trim().isEmpty()) { textFields.get(rf).requestFocusInWindow(); throw new IllegalStateException(Constant.messages.getString( STR, rf)); } } | /**
* Validate the fields of the panel, checking that all the required fields has been filled. If
* any of the fields are not in the proper state, an IllegalStateException is thrown, containing
* a message describing the problem.
*
* @throws IllegalStateException the illegal state exception
*/ | Validate the fields of the panel, checking that all the required fields has been filled. If any of the fields are not in the proper state, an IllegalStateException is thrown, containing a message describing the problem | validateFields | {
"repo_name": "gsavastano/zaproxy",
"path": "src/org/zaproxy/zap/view/DynamicFieldsPanel.java",
"license": "apache-2.0",
"size": 5011
} | [
"org.parosproxy.paros.Constant"
] | import org.parosproxy.paros.Constant; | import org.parosproxy.paros.*; | [
"org.parosproxy.paros"
] | org.parosproxy.paros; | 1,200,674 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.