method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public void setPositivePaint(Paint paint) { if (paint == null) { throw new IllegalArgumentException("Null 'paint' argument."); } this.positivePaint = paint; notifyListeners(new RendererChangeEvent(this)); }
void function(Paint paint) { if (paint == null) { throw new IllegalArgumentException(STR); } this.positivePaint = paint; notifyListeners(new RendererChangeEvent(this)); }
/** * Sets the paint used to highlight positive differences. * * @param paint the paint (<code>null</code> not permitted). * * @see #getPositivePaint() */
Sets the paint used to highlight positive differences
setPositivePaint
{ "repo_name": "simeshev/parabuild-ci", "path": "3rdparty/jfreechart-1.0.5/source/org/jfree/chart/renderer/xy/XYDifferenceRenderer.java", "license": "lgpl-3.0", "size": 37609 }
[ "java.awt.Paint", "org.jfree.chart.event.RendererChangeEvent" ]
import java.awt.Paint; import org.jfree.chart.event.RendererChangeEvent;
import java.awt.*; import org.jfree.chart.event.*;
[ "java.awt", "org.jfree.chart" ]
java.awt; org.jfree.chart;
2,896,825
public static WeightedSet wtdSet(String field, Map<String, Integer> weightedSet) { return new WeightedSet(field, weightedSet); }
static WeightedSet function(String field, Map<String, Integer> weightedSet) { return new WeightedSet(field, weightedSet); }
/** * wtdSet represents "weightedSet". * https://docs.vespa.ai/en/reference/query-language-reference.html#weightedset * * @param field the field * @param weightedSet the weighted set * @return the weighted set query */
wtdSet represents "weightedSet". HREF
wtdSet
{ "repo_name": "vespa-engine/vespa", "path": "client/src/main/java/ai/vespa/client/dsl/Q.java", "license": "apache-2.0", "size": 6196 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
617,668
public void doPrev_message(RunData rundata, Context context) { indexMessage(rundata, context, -1); } // doPrev_message
void function(RunData rundata, Context context) { indexMessage(rundata, context, -1); }
/** * Responding to the request of going to previous message */
Responding to the request of going to previous message
doPrev_message
{ "repo_name": "wfuedu/sakai", "path": "announcement/announcement-tool/tool/src/java/org/sakaiproject/announcement/tool/AnnouncementAction.java", "license": "apache-2.0", "size": 173293 }
[ "org.sakaiproject.cheftool.Context", "org.sakaiproject.cheftool.RunData" ]
import org.sakaiproject.cheftool.Context; import org.sakaiproject.cheftool.RunData;
import org.sakaiproject.cheftool.*;
[ "org.sakaiproject.cheftool" ]
org.sakaiproject.cheftool;
2,845,514
public String getInitiatorName() { String initiatorName = null; Person initiator = KimApiServiceLocator.getPersonService().getPerson(getActionListInitiatorPrincipal().getPrincipalId()); if (initiator != null) { initiatorName = initiator.getName(); } return initiatorName; ...
String function() { String initiatorName = null; Person initiator = KimApiServiceLocator.getPersonService().getPerson(getActionListInitiatorPrincipal().getPrincipalId()); if (initiator != null) { initiatorName = initiator.getName(); } return initiatorName; }
/** * Gets the initiator name, masked appropriately if restricted. */
Gets the initiator name, masked appropriately if restricted
getInitiatorName
{ "repo_name": "sbower/kuali-rice-1", "path": "impl/src/main/java/org/kuali/rice/kew/routeheader/DocumentRouteHeaderValueActionListExtension.java", "license": "apache-2.0", "size": 2141 }
[ "org.kuali.rice.kim.api.identity.Person", "org.kuali.rice.kim.api.services.KimApiServiceLocator" ]
import org.kuali.rice.kim.api.identity.Person; import org.kuali.rice.kim.api.services.KimApiServiceLocator;
import org.kuali.rice.kim.api.identity.*; import org.kuali.rice.kim.api.services.*;
[ "org.kuali.rice" ]
org.kuali.rice;
1,593,583
public static List< WorkingHour > getConvertedListDTOFromDomain( List< com.mana.innovative.domain.client.WorkingHour > workingHoursDomain ) { List< WorkingHour > workingHoursDTO = new ArrayList<>( ); for ( com.mana.innovative.domain.client.WorkingHour workingHourDomain : workingHoursDomain ) { ...
static List< WorkingHour > function( List< com.mana.innovative.domain.client.WorkingHour > workingHoursDomain ) { List< WorkingHour > workingHoursDTO = new ArrayList<>( ); for ( com.mana.innovative.domain.client.WorkingHour workingHourDomain : workingHoursDomain ) { WorkingHour workingHourDTO = getConvertedDTOFromDomai...
/** * Gets converted list dTO from domain. * * @param workingHoursDomain the workingHours domain * @return the converted list dTO from domain */
Gets converted list dTO from domain
getConvertedListDTOFromDomain
{ "repo_name": "arkoghosh11/bloom-test", "path": "bloom-converter/src/main/java/com/mana/innovative/converter/response/WorkingHourDomainDTOConverter.java", "license": "apache-2.0", "size": 7295 }
[ "com.mana.innovative.dto.client.WorkingHour", "java.util.ArrayList", "java.util.List" ]
import com.mana.innovative.dto.client.WorkingHour; import java.util.ArrayList; import java.util.List;
import com.mana.innovative.dto.client.*; import java.util.*;
[ "com.mana.innovative", "java.util" ]
com.mana.innovative; java.util;
1,170,627
public final XStream getXStream() { if (this.xstream == null) { this.xstream = buildXStream(); } return this.xstream; }
final XStream function() { if (this.xstream == null) { this.xstream = buildXStream(); } return this.xstream; }
/** * Return the native XStream delegate used by this marshaller. * <p><b>NOTE: This method has been marked as final as of Spring 4.0.</b> * It can be used to access the fully configured XStream for marshalling * but not configuration purposes anymore. */
Return the native XStream delegate used by this marshaller. It can be used to access the fully configured XStream for marshalling but not configuration purposes anymore
getXStream
{ "repo_name": "boggad/jdk9-sample", "path": "sample-catalog/spring-jdk9/src/spring.oxm/org/springframework/oxm/xstream/XStreamMarshaller.java", "license": "mit", "size": 28093 }
[ "com.thoughtworks.xstream.XStream" ]
import com.thoughtworks.xstream.XStream;
import com.thoughtworks.xstream.*;
[ "com.thoughtworks.xstream" ]
com.thoughtworks.xstream;
2,360,828
public static void getMemoryUsage(ValueVector sourceVector, int currValueCount, VectorMemoryUsageInfo vectorMemoryUsage) { assert sourceVector instanceof VariableWidthVector; vectorMemoryUsage.reset(); // reset result container final MajorType type = sourceVector.getField().getType(); swit...
static void function(ValueVector sourceVector, int currValueCount, VectorMemoryUsageInfo vectorMemoryUsage) { assert sourceVector instanceof VariableWidthVector; vectorMemoryUsage.reset(); final MajorType type = sourceVector.getField().getType(); switch (type.getMinorType()) { case VARCHAR: { switch (type.getMode()) { ...
/** * Load memory usage information for a variable length value vector * * @param vector source value vector * @param currValueCount current value count * @param vectorMemory result object which contains source vector memory usage information */
Load memory usage information for a variable length value vector
getMemoryUsage
{ "repo_name": "sohami/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/store/parquet/columnreaders/batchsizing/BatchSizingMemoryUtil.java", "license": "apache-2.0", "size": 14651 }
[ "org.apache.drill.common.types.TypeProtos", "org.apache.drill.exec.vector.NullableVarBinaryVector", "org.apache.drill.exec.vector.NullableVarCharVector", "org.apache.drill.exec.vector.NullableVarDecimalVector", "org.apache.drill.exec.vector.ValueVector", "org.apache.drill.exec.vector.VarBinaryVector", "...
import org.apache.drill.common.types.TypeProtos; import org.apache.drill.exec.vector.NullableVarBinaryVector; import org.apache.drill.exec.vector.NullableVarCharVector; import org.apache.drill.exec.vector.NullableVarDecimalVector; import org.apache.drill.exec.vector.ValueVector; import org.apache.drill.exec.vector.VarB...
import org.apache.drill.common.types.*; import org.apache.drill.exec.vector.*;
[ "org.apache.drill" ]
org.apache.drill;
1,310,222
public com.mozu.api.contracts.customer.InStockNotificationSubscription addInStockNotificationSubscription(com.mozu.api.contracts.customer.InStockNotificationSubscription inStockNotificationSubscription, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.customer.InStockNotificationSubsc...
com.mozu.api.contracts.customer.InStockNotificationSubscription function(com.mozu.api.contracts.customer.InStockNotificationSubscription inStockNotificationSubscription, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.customer.InStockNotificationSubscription> client = com.mozu.api.clients.co...
/** * Creates a new subscription that notifies the customer when the product specified in the request is available in the active inventory of the defined location. * <p><pre><code> * InStockNotificationSubscription instocknotificationsubscription = new InStockNotificationSubscription(); * InStockNotificatio...
Creates a new subscription that notifies the customer when the product specified in the request is available in the active inventory of the defined location. <code><code> InStockNotificationSubscription instocknotificationsubscription = new InStockNotificationSubscription(); InStockNotificationSubscription inStockNotif...
addInStockNotificationSubscription
{ "repo_name": "johngatti/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/commerce/InStockNotificationSubscriptionResource.java", "license": "mit", "size": 19233 }
[ "com.mozu.api.MozuClient" ]
import com.mozu.api.MozuClient;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
1,394,284
public boolean isExactTypeAndLengthMatch(ResultColumnList otherRCL) throws StandardException { if (SanityManager.DEBUG) { // The visible size of the two RCLs must be equal. SanityManager.ASSERT(visibleSize() == otherRCL.visibleSize(), "visibleSize() ...
boolean function(ResultColumnList otherRCL) throws StandardException { if (SanityManager.DEBUG) { SanityManager.ASSERT(visibleSize() == otherRCL.visibleSize(), STR); SanityManager.ASSERT(size() == visibleSize(), STR); } int size = visibleSize(); for (int index = 0; index < size; index++) { ResultColumn thisRC = (Result...
/** * Do the 2 RCLs have the same type & length. * This is useful for UNIONs when deciding whether a NormalizeResultSet is required. * * @param otherRCL The other RCL. * * @return boolean Whether or not there is an exact UNION type match on the 2 RCLs. */
Do the 2 RCLs have the same type & length. This is useful for UNIONs when deciding whether a NormalizeResultSet is required
isExactTypeAndLengthMatch
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/impl/sql/compile/ResultColumnList.java", "license": "apache-2.0", "size": 134730 }
[ "com.pivotal.gemfirexd.internal.iapi.error.StandardException", "com.pivotal.gemfirexd.internal.iapi.services.sanity.SanityManager" ]
import com.pivotal.gemfirexd.internal.iapi.error.StandardException; import com.pivotal.gemfirexd.internal.iapi.services.sanity.SanityManager;
import com.pivotal.gemfirexd.internal.iapi.error.*; import com.pivotal.gemfirexd.internal.iapi.services.sanity.*;
[ "com.pivotal.gemfirexd" ]
com.pivotal.gemfirexd;
2,384,544
@Override public void run() { //#KW L471 - this maps to part of the loop, in this code getting the data is done in a different thread, which prompts this thread to fetch results TimestampedData3f adjustedAcc, adjustedGyr, adjustedMag; while(!Thread.interrupted()&&!stop) { try...
void function() { TimestampedData3f adjustedAcc, adjustedGyr, adjustedMag; while(!Thread.interrupted()&&!stop) { try { if(dataReady) { dataReady = false; instruments.setMagnetometer( mpu9250.getLatestGaussianData()); instruments.setAccelerometer(mpu9250.getLatestAcceleration()); instruments.setGyroscope(mpu9250.getLate...
/** * run - This is the thread run loop, it gets the data (if ready) and processes it */
run - This is the thread run loop, it gets the data (if ready) and processes it
run
{ "repo_name": "gjwo/RPISensors", "path": "RPISensors/src/main/java/inertialNavigation/Navigate.java", "license": "gpl-3.0", "size": 9429 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
964,609
@Override @Nonnull public HDLBlock setContainer(@Nullable IHDLObject container) { return (HDLBlock) super.setContainer(container); }
HDLBlock function(@Nullable IHDLObject container) { return (HDLBlock) super.setContainer(container); }
/** * Setter for the field {@link #getContainer()}. * * @param container * sets the new container of this object. Can be <code>null</code>. * @return the same instance of {@link HDLBlock} with the updated container field. */
Setter for the field <code>#getContainer()</code>
setContainer
{ "repo_name": "pshdl/org.pshdl", "path": "model-gen/org/pshdl/model/impl/AbstractHDLBlock.java", "license": "gpl-3.0", "size": 12702 }
[ "javax.annotation.Nullable", "org.pshdl.model.HDLBlock", "org.pshdl.model.IHDLObject" ]
import javax.annotation.Nullable; import org.pshdl.model.HDLBlock; import org.pshdl.model.IHDLObject;
import javax.annotation.*; import org.pshdl.model.*;
[ "javax.annotation", "org.pshdl.model" ]
javax.annotation; org.pshdl.model;
2,563,658
void abort(Throwable t) throws IOException { LOG.info("Aborting because of " + StringUtils.stringifyException(t)); try { downlink.abort(); downlink.flush(); } catch (IOException e) { // IGNORE cleanup problems } try { handler.waitForFinish(); } catch (Throwable ignored)...
void abort(Throwable t) throws IOException { LOG.info(STR + StringUtils.stringifyException(t)); try { downlink.abort(); downlink.flush(); } catch (IOException e) { } try { handler.waitForFinish(); } catch (Throwable ignored) { process.destroy(); } IOException wrapper = new IOException(STR); wrapper.initCause(t); throw ...
/** * Abort the application and wait for it to finish. * @param t the exception that signalled the problem * @throws IOException A wrapper around the exception that was passed in */
Abort the application and wait for it to finish
abort
{ "repo_name": "ilveroluca/pydoop", "path": "src/v2/it/crs4/pydoop/pipes/Application.java", "license": "apache-2.0", "size": 10099 }
[ "java.io.IOException", "org.apache.hadoop.util.StringUtils" ]
import java.io.IOException; import org.apache.hadoop.util.StringUtils;
import java.io.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,765,928
public static boolean getBoolean( Map<String, String> kvpParams, String paramName, boolean defaultValue ) throws InvalidParameterValueException { boolean result = defaultValue; String booleanString = kvpParams.get( paramName ); if ( booleanString != null ) { ...
static boolean function( Map<String, String> kvpParams, String paramName, boolean defaultValue ) throws InvalidParameterValueException { boolean result = defaultValue; String booleanString = kvpParams.get( paramName ); if ( booleanString != null ) { if ( booleanString.equalsIgnoreCase( "true" ) ) { result = true; } els...
/** * Returns the specified parameter from a KVP map as a boolean value. * * @param kvpParams * KVP map * @param paramName * name of the parameter * * @param defaultValue * returned when the specified parameter is not present in the map (=n...
Returns the specified parameter from a KVP map as a boolean value
getBoolean
{ "repo_name": "deegree/deegree3", "path": "deegree-core/deegree-core-commons/src/main/java/org/deegree/commons/utils/kvp/KVPUtils.java", "license": "lgpl-2.1", "size": 17386 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,053,754
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (commonPackage.Literals.MPARAMETER_DEFAULT_VALUE_SINGLE_EXPRESSION__DEFAULT_VALUE, ...
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); newChildDescriptors.add (createChildParameter (commonPackage.Literals.MPARAMETER_DEFAULT_VALUE_SINGLE_EXPRESSION__DEFAULT_VALUE, commonFactory.eINSTANCE.createMParameterValueExpression()...
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object
collectNewChildDescriptors
{ "repo_name": "parraman/micobs", "path": "common/es.uah.aut.srg.micobs/src/es/uah/aut/srg/micobs/common/provider/MStringParameterSingleExpressionItemProvider.java", "license": "epl-1.0", "size": 4586 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,834,364
public void setFlag_update() { msg.setHTML(Main.i18n("security.status.updating")); flag_update = true; refresh(); }
void function() { msg.setHTML(Main.i18n(STR)); flag_update = true; refresh(); }
/** * Sets update flag */
Sets update flag
setFlag_update
{ "repo_name": "codelibs/n2dms", "path": "src/main/java/com/openkm/frontend/client/widget/security/Status.java", "license": "gpl-2.0", "size": 3170 }
[ "com.openkm.frontend.client.Main" ]
import com.openkm.frontend.client.Main;
import com.openkm.frontend.client.*;
[ "com.openkm.frontend" ]
com.openkm.frontend;
1,465,227
public static RegionInfo convert(final HRegionInfo info) { if (info == null) return null; RegionInfo.Builder builder = RegionInfo.newBuilder(); builder.setTableName(ProtobufUtil.toProtoTableName(info.getTable())); builder.setRegionId(info.getRegionId()); if (info.getStartKey() != null) { bui...
static RegionInfo function(final HRegionInfo info) { if (info == null) return null; RegionInfo.Builder builder = RegionInfo.newBuilder(); builder.setTableName(ProtobufUtil.toProtoTableName(info.getTable())); builder.setRegionId(info.getRegionId()); if (info.getStartKey() != null) { builder.setStartKey(ZeroCopyLiteralBy...
/** * Convert a HRegionInfo to a RegionInfo * * @param info the HRegionInfo to convert * @return the converted RegionInfo */
Convert a HRegionInfo to a RegionInfo
convert
{ "repo_name": "cloud-software-foundation/c5", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/HRegionInfo.java", "license": "apache-2.0", "size": 39435 }
[ "com.google.protobuf.ZeroCopyLiteralByteString", "org.apache.hadoop.hbase.protobuf.ProtobufUtil", "org.apache.hadoop.hbase.protobuf.generated.HBaseProtos" ]
import com.google.protobuf.ZeroCopyLiteralByteString; import org.apache.hadoop.hbase.protobuf.ProtobufUtil; import org.apache.hadoop.hbase.protobuf.generated.HBaseProtos;
import com.google.protobuf.*; import org.apache.hadoop.hbase.protobuf.*; import org.apache.hadoop.hbase.protobuf.generated.*;
[ "com.google.protobuf", "org.apache.hadoop" ]
com.google.protobuf; org.apache.hadoop;
370,633
public void run() { try { // Do pre-registration initializations; zookeeper, lease threads, etc. preRegistrationInitialization(); } catch (Throwable e) { abort("Fatal exception during initialization", e); } try { // Try and register with the Master; tell it we are here. Break...
void function() { try { preRegistrationInitialization(); } catch (Throwable e) { abort(STR, e); } try { while (keepLooping()) { RegionServerStartupResponse w = reportForDuty(); if (w == null) { LOG.warn(STR); this.sleeper.sleep(); } else { handleReportForDutyResponse(w); break; } } registerMBean(); long lastMsg = 0; lo...
/** * The HRegionServer sticks in this loop until closed. */
The HRegionServer sticks in this loop until closed
run
{ "repo_name": "matteobertozzi/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java", "license": "apache-2.0", "size": 151789 }
[ "org.apache.hadoop.hbase.ZNodeClearer", "org.apache.hadoop.hbase.ipc.HBaseRPC", "org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos", "org.apache.hadoop.metrics.util.MBeanUtil", "org.apache.zookeeper.KeeperException" ]
import org.apache.hadoop.hbase.ZNodeClearer; import org.apache.hadoop.hbase.ipc.HBaseRPC; import org.apache.hadoop.hbase.protobuf.generated.RegionServerStatusProtos; import org.apache.hadoop.metrics.util.MBeanUtil; import org.apache.zookeeper.KeeperException;
import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.ipc.*; import org.apache.hadoop.hbase.protobuf.generated.*; import org.apache.hadoop.metrics.util.*; import org.apache.zookeeper.*;
[ "org.apache.hadoop", "org.apache.zookeeper" ]
org.apache.hadoop; org.apache.zookeeper;
1,571,667
public static int countMobRows(final Table table) throws IOException { Scan scan = new Scan(); // Do not retrieve the mob data when scanning scan.setAttribute(MobConstants.MOB_SCAN_RAW, Bytes.toBytes(Boolean.TRUE)); return HBaseTestingUtility.countRows(table, scan); }
static int function(final Table table) throws IOException { Scan scan = new Scan(); scan.setAttribute(MobConstants.MOB_SCAN_RAW, Bytes.toBytes(Boolean.TRUE)); return HBaseTestingUtility.countRows(table, scan); }
/** * Gets the number of rows in the given table. * @param table to get the scanner * @return the number of rows */
Gets the number of rows in the given table
countMobRows
{ "repo_name": "ultratendency/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/mob/MobTestUtil.java", "license": "apache-2.0", "size": 4274 }
[ "java.io.IOException", "org.apache.hadoop.hbase.HBaseTestingUtility", "org.apache.hadoop.hbase.client.Scan", "org.apache.hadoop.hbase.client.Table", "org.apache.hadoop.hbase.util.Bytes" ]
import java.io.IOException; import org.apache.hadoop.hbase.HBaseTestingUtility; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.client.Table; import org.apache.hadoop.hbase.util.Bytes;
import java.io.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,172,893
@Test public void testDynamicServiceLoaderSources() throws Exception { System.setProperty(DYNAMIC_REFRESH_INTERVAL_PROP_NAME, "" + 1); Config config = ConfigProvider.getConfig(); try { TestUtils.assertContains(config, "2", "2"); TestUtils.assertContains(config, "...
void function() throws Exception { System.setProperty(DYNAMIC_REFRESH_INTERVAL_PROP_NAME, STR2STR2STR4STR4STR2STRupdatedSTR4STRupdatedSTR2STRupdatedSTR4STRupdated"); } finally { ConfigProviderResolver.instance().releaseConfig(config); } }
/** * Do user sources get to change there minds? * * @throws Exception */
Do user sources get to change there minds
testDynamicServiceLoaderSources
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.microprofile.config.1.1_fat/test-applications/dynamicSources.war/src/com/ibm/ws/microprofile/appConfig/dynamicSources/test/DynamicSourcesTestServlet.java", "license": "epl-1.0", "size": 7683 }
[ "org.eclipse.microprofile.config.spi.ConfigProviderResolver" ]
import org.eclipse.microprofile.config.spi.ConfigProviderResolver;
import org.eclipse.microprofile.config.spi.*;
[ "org.eclipse.microprofile" ]
org.eclipse.microprofile;
36,199
@Nonnull public Optional<ProcessGroupEntity> findEntityById(@Nonnull final String processGroupId) { return findEntityById(processGroupId, true); }
Optional<ProcessGroupEntity> function(@Nonnull final String processGroupId) { return findEntityById(processGroupId, true); }
/** * Gets a process group entity. * * @param processGroupId the process group id * @return the process group entity, if found */
Gets a process group entity
findEntityById
{ "repo_name": "peter-gergely-horvath/kylo", "path": "integrations/nifi/nifi-rest/nifi-rest-client/nifi-rest-client-v1/src/main/java/com/thinkbiganalytics/nifi/v1/rest/client/NiFiProcessGroupsRestClientV1.java", "license": "apache-2.0", "size": 18472 }
[ "java.util.Optional", "javax.annotation.Nonnull", "org.apache.nifi.web.api.entity.ProcessGroupEntity" ]
import java.util.Optional; import javax.annotation.Nonnull; import org.apache.nifi.web.api.entity.ProcessGroupEntity;
import java.util.*; import javax.annotation.*; import org.apache.nifi.web.api.entity.*;
[ "java.util", "javax.annotation", "org.apache.nifi" ]
java.util; javax.annotation; org.apache.nifi;
2,224,577
public void setMessageSourceService(MessageSourceService messageSourceService) { setService(MessageSourceService.class, messageSourceService); }
void function(MessageSourceService messageSourceService) { setService(MessageSourceService.class, messageSourceService); }
/** * Sets the MessageSourceService used in the context. * * @param messageSourceService the MessageSourceService to use */
Sets the MessageSourceService used in the context
setMessageSourceService
{ "repo_name": "Winbobob/openmrs-core", "path": "api/src/main/java/org/openmrs/api/context/ServiceContext.java", "license": "mpl-2.0", "size": 32155 }
[ "org.openmrs.messagesource.MessageSourceService" ]
import org.openmrs.messagesource.MessageSourceService;
import org.openmrs.messagesource.*;
[ "org.openmrs.messagesource" ]
org.openmrs.messagesource;
2,720,154
@Test public void testModalWindowFocusPressButtonInWindow() throws IOException { waitForElementPresent(By.id("firstButton")); WebElement button = findElement(By.id("firstButton")); button.click(); waitForElementPresent(By.id("windowButton")); WebElement buttonInWindow =...
void function() throws IOException { waitForElementPresent(By.id(STR)); WebElement button = findElement(By.id(STR)); button.click(); waitForElementPresent(By.id(STR)); WebElement buttonInWindow = findElement(By.id(STR)); buttonInWindow.click(); waitForElementPresent(By.id(STR)); assertTrue(STR, findElements(By.id(STR))...
/** * Second scenario: press button -> two windows appear, press button in the * 2nd window -> 3rd window appears on top, press Esc three times -> all * windows should be closed */
Second scenario: press button -> two windows appear, press button in the 2nd window -> 3rd window appears on top, press Esc three times -> all windows should be closed
testModalWindowFocusPressButtonInWindow
{ "repo_name": "jdahlstrom/vaadin.react", "path": "uitest/src/test/java/com/vaadin/tests/components/window/ModalWindowFocusTest.java", "license": "apache-2.0", "size": 3158 }
[ "com.vaadin.testbench.By", "java.io.IOException", "org.junit.Assert", "org.openqa.selenium.WebElement" ]
import com.vaadin.testbench.By; import java.io.IOException; import org.junit.Assert; import org.openqa.selenium.WebElement;
import com.vaadin.testbench.*; import java.io.*; import org.junit.*; import org.openqa.selenium.*;
[ "com.vaadin.testbench", "java.io", "org.junit", "org.openqa.selenium" ]
com.vaadin.testbench; java.io; org.junit; org.openqa.selenium;
844,781
public void beforeGemFireResultSetExecuteOnActivation( AbstractGemFireActivation activation); /** * Callback invoked before computation of routing object. * * @param activation * Instance of {@link AbstractGemFireActivation}
void function( AbstractGemFireActivation activation); /** * Callback invoked before computation of routing object. * * @param activation * Instance of {@link AbstractGemFireActivation}
/** * Callback invoked before retrieving ResultSet using GemFireXD's Activation * class ( GemFireActivation or GemfireDistributedActivation) This callback is * generated from execute method of Activation class * * @param activation * Instance of type AbstractGemFireActivation * @see Abstr...
Callback invoked before retrieving ResultSet using GemFireXD's Activation class ( GemFireActivation or GemfireDistributedActivation) This callback is generated from execute method of Activation class
beforeGemFireResultSetExecuteOnActivation
{ "repo_name": "gemxd/gemfirexd-oss", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/engine/GemFireXDQueryObserver.java", "license": "apache-2.0", "size": 36937 }
[ "com.pivotal.gemfirexd.internal.engine.sql.execute.AbstractGemFireActivation" ]
import com.pivotal.gemfirexd.internal.engine.sql.execute.AbstractGemFireActivation;
import com.pivotal.gemfirexd.internal.engine.sql.execute.*;
[ "com.pivotal.gemfirexd" ]
com.pivotal.gemfirexd;
2,530,112
public void setDate(int parameterIndex, Date x) throws SQLException { setDate(parameterIndex, x, null); }
void function(int parameterIndex, Date x) throws SQLException { setDate(parameterIndex, x, null); }
/** * Set a parameter to a java.sql.Date value. The driver converts this to a * SQL DATE value when it sends it to the database. * * @param parameterIndex * the first parameter is 1, the second is 2, ... * @param x * the parameter value * * @exception SQLException * ...
Set a parameter to a java.sql.Date value. The driver converts this to a SQL DATE value when it sends it to the database
setDate
{ "repo_name": "lukearndt/CommunityRosterSystem", "path": "lib/mysql-connector-java-5.1.21/src/com/mysql/jdbc/ServerPreparedStatement.java", "license": "mit", "size": 86568 }
[ "java.sql.Date", "java.sql.SQLException" ]
import java.sql.Date; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,258,615
@Generated("This method was generated using jOOQ-tools") static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Seq<Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> zip(Stream<T1> s1, Stream<T2> s2, Stream<T3> s3, Stream<T4> s4, Stream<T5> s5, Stream<T6> s6, Stream<T7> s7, Stream<T8> s8...
@Generated(STR) static <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13> Seq<Tuple13<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>> zip(Stream<T1> s1, Stream<T2> s2, Stream<T3> s3, Stream<T4> s4, Stream<T5> s5, Stream<T6> s6, Stream<T7> s7, Stream<T8> s8, Stream<T9> s9, Stream<T10> s10, Stream<T11> s11...
/** * Zip 13 streams into one. * <p> * <code><pre> * // (tuple(1, "a"), tuple(2, "b"), tuple(3, "c")) * Seq.of(1, 2, 3).zip(Seq.of("a", "b", "c")) * </pre></code> */
Zip 13 streams into one. <code><code> (tuple(1, "a"), tuple(2, "b"), tuple(3, "c")) Seq.of(1, 2, 3).zip(Seq.of("a", "b", "c")) </code></code>
zip
{ "repo_name": "stephenh/jOOL", "path": "src/main/java/org/jooq/lambda/Seq.java", "license": "apache-2.0", "size": 198501 }
[ "java.util.stream.Stream", "javax.annotation.Generated", "org.jooq.lambda.tuple.Tuple13" ]
import java.util.stream.Stream; import javax.annotation.Generated; import org.jooq.lambda.tuple.Tuple13;
import java.util.stream.*; import javax.annotation.*; import org.jooq.lambda.tuple.*;
[ "java.util", "javax.annotation", "org.jooq.lambda" ]
java.util; javax.annotation; org.jooq.lambda;
424,172
private void cleanup() { if ((++cleanupCounter & 0xFF) != 0) { // (++counter % 256) != 0 return; } final long currentTimeNanos = System.nanoTime(); final long lastCleanupTimeNanos = this.lastCleanupTimeNanos; if (currentTimeNanos - lastCleanupTimeNanos < CLEANUP_...
void function() { if ((++cleanupCounter & 0xFF) != 0) { return; } final long currentTimeNanos = System.nanoTime(); final long lastCleanupTimeNanos = this.lastCleanupTimeNanos; if (currentTimeNanos - lastCleanupTimeNanos < CLEANUP_INTERVAL_NANOS !lastCleanupTimeNanosUpdater.compareAndSet(this, lastCleanupTimeNanos, curr...
/** * Cleans up empty entries with no activity for more than 1 minute. For reduced overhead, we perform this * only when 1) the last clean-up was more than 1 minute ago and 2) the number of acquisitions % 256 is 0. */
Cleans up empty entries with no activity for more than 1 minute. For reduced overhead, we perform this only when 1) the last clean-up was more than 1 minute ago and 2) the number of acquisitions % 256 is 0
cleanup
{ "repo_name": "line/armeria", "path": "core/src/main/java/com/linecorp/armeria/client/DefaultEventLoopScheduler.java", "license": "apache-2.0", "size": 12243 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,217,598
if (NODE_NAME_SETTING.exists(settings)) { return settings; } return Settings.builder().put(settings).put(NODE_NAME_SETTING.getKey(), nodeId.substring(0, 7)).build(); } private static final String CLIENT_TYPE = "node"; private final Lifecycle lifecycle = new Lifecycle(); priv...
if (NODE_NAME_SETTING.exists(settings)) { return settings; } return Settings.builder().put(settings).put(NODE_NAME_SETTING.getKey(), nodeId.substring(0, 7)).build(); } static final String CLIENT_TYPE = "node"; private final Lifecycle lifecycle = new Lifecycle(); private final Injector injector; private final Settings s...
/** * Adds a default node name to the given setting, if it doesn't already exist * @return the given setting if node name is already set, or a new copy with a default node name set. */
Adds a default node name to the given setting, if it doesn't already exist
addNodeNameIfNeeded
{ "repo_name": "ricardocerq/elasticsearch", "path": "core/src/main/java/org/elasticsearch/node/Node.java", "license": "apache-2.0", "size": 44460 }
[ "java.io.Closeable", "java.io.IOException", "java.util.ArrayList", "java.util.Arrays", "java.util.Collection", "java.util.Collections", "java.util.List", "java.util.Map", "java.util.concurrent.TimeUnit", "java.util.function.Consumer", "java.util.function.Function", "java.util.function.UnaryOpe...
import java.io.Closeable; import java.io.IOException; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map; import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import java.util.function.Function;...
import java.io.*; import java.util.*; import java.util.concurrent.*; import java.util.function.*; import java.util.stream.*; import org.apache.logging.log4j.*; import org.apache.lucene.util.*; import org.elasticsearch.*; import org.elasticsearch.action.*; import org.elasticsearch.action.support.*; import org.elasticsea...
[ "java.io", "java.util", "org.apache.logging", "org.apache.lucene", "org.elasticsearch", "org.elasticsearch.action", "org.elasticsearch.client", "org.elasticsearch.cluster", "org.elasticsearch.common", "org.elasticsearch.discovery", "org.elasticsearch.env", "org.elasticsearch.gateway", "org.e...
java.io; java.util; org.apache.logging; org.apache.lucene; org.elasticsearch; org.elasticsearch.action; org.elasticsearch.client; org.elasticsearch.cluster; org.elasticsearch.common; org.elasticsearch.discovery; org.elasticsearch.env; org.elasticsearch.gateway; org.elasticsearch.http; org.elasticsearch.index; org.elast...
777,410
return (root, query, cb) -> { final Predicate predicate = cb.equal(root.<Boolean> get(JpaRollout_.deleted), isDeleted); root.fetch(JpaRollout_.distributionSet); return predicate; }; }
return (root, query, cb) -> { final Predicate predicate = cb.equal(root.<Boolean> get(JpaRollout_.deleted), isDeleted); root.fetch(JpaRollout_.distributionSet); return predicate; }; }
/** * {@link Specification} for retrieving {@link Rollout}s by its DELETED * attribute. Includes fetch for stuff that is required for {@link Rollout} * queries. * * @param isDeleted * TRUE/FALSE are compared to the attribute DELETED. If NULL the * attribute is i...
<code>Specification</code> for retrieving <code>Rollout</code>s by its DELETED attribute. Includes fetch for stuff that is required for <code>Rollout</code> queries
isDeletedWithDistributionSet
{ "repo_name": "stormc/hawkbit", "path": "hawkbit-repository/hawkbit-repository-jpa/src/main/java/org/eclipse/hawkbit/repository/jpa/specifications/RolloutSpecification.java", "license": "epl-1.0", "size": 1626 }
[ "javax.persistence.criteria.Predicate", "org.eclipse.hawkbit.repository.jpa.model.JpaRollout" ]
import javax.persistence.criteria.Predicate; import org.eclipse.hawkbit.repository.jpa.model.JpaRollout;
import javax.persistence.criteria.*; import org.eclipse.hawkbit.repository.jpa.model.*;
[ "javax.persistence", "org.eclipse.hawkbit" ]
javax.persistence; org.eclipse.hawkbit;
2,337,131
@Auditable(parameters = {"nodeRef"}) NodeRef getPivotTranslation(NodeRef nodeRef);
@Auditable(parameters = {STR}) NodeRef getPivotTranslation(NodeRef nodeRef);
/** * Given any node, this returns the pivot translation. All multilingual documents belong to * a group linked by a hidden parent node of type <b>cm:mlContainer</b>. The pivot language * for the translations is stored on the parent, and the child that has the same locale is the * pivot transl...
Given any node, this returns the pivot translation. All multilingual documents belong to a group linked by a hidden parent node of type cm:mlContainer. The pivot language for the translations is stored on the parent, and the child that has the same locale is the pivot translation
getPivotTranslation
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/repository/source/java/org/alfresco/service/cmr/ml/MultilingualContentService.java", "license": "lgpl-3.0", "size": 9373 }
[ "org.alfresco.service.Auditable", "org.alfresco.service.cmr.repository.NodeRef" ]
import org.alfresco.service.Auditable; import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.*; import org.alfresco.service.cmr.repository.*;
[ "org.alfresco.service" ]
org.alfresco.service;
2,852,067
public boolean detach() { boolean fullyDetached = true; if (_fieldValues != null) { Object fieldValue; for (Map.Entry<String, Object> entry : _fieldValues.entrySet()) { fieldValue = entry.getValue(); if (fieldValue instanceof ORecord<?>) if (((ORecord<?>) field...
boolean function() { boolean fullyDetached = true; if (_fieldValues != null) { Object fieldValue; for (Map.Entry<String, Object> entry : _fieldValues.entrySet()) { fieldValue = entry.getValue(); if (fieldValue instanceof ORecord<?>) if (((ORecord<?>) fieldValue).getIdentity().isNew()) fullyDetached = false; else _field...
/** * Detaches all the connected records. If new records are linked to the document the detaching cannot be completed and false will * be returned. * * @return true if the record has been detached, otherwise false */
Detaches all the connected records. If new records are linked to the document the detaching cannot be completed and false will be returned
detach
{ "repo_name": "redox/OrientDB", "path": "core/src/main/java/com/orientechnologies/orient/core/record/impl/ODocument.java", "license": "apache-2.0", "size": 49881 }
[ "com.orientechnologies.orient.core.db.record.ODetachable", "com.orientechnologies.orient.core.record.ORecord", "java.util.Map" ]
import com.orientechnologies.orient.core.db.record.ODetachable; import com.orientechnologies.orient.core.record.ORecord; import java.util.Map;
import com.orientechnologies.orient.core.db.record.*; import com.orientechnologies.orient.core.record.*; import java.util.*;
[ "com.orientechnologies.orient", "java.util" ]
com.orientechnologies.orient; java.util;
1,854,013
@SuppressWarnings("unchecked") public <STATE> PathExpander<STATE> build() { return expander; } private final StandardExpander expander; private PathExpanderBuilder( StandardExpander expander ) { this.expander = expander; }
@SuppressWarnings(STR) <STATE> PathExpander<STATE> function() { return expander; } private final StandardExpander expander; private PathExpanderBuilder( StandardExpander expander ) { this.expander = expander; }
/** * Produce a {@link PathExpander} from the configuration you have built up. * * @param <STATE> the type of the object holding the state * @return a PathExpander produced from the configuration you have built up */
Produce a <code>PathExpander</code> from the configuration you have built up
build
{ "repo_name": "HuangLS/neo4j", "path": "community/kernel/src/main/java/org/neo4j/graphdb/PathExpanderBuilder.java", "license": "apache-2.0", "size": 5776 }
[ "org.neo4j.kernel.StandardExpander" ]
import org.neo4j.kernel.StandardExpander;
import org.neo4j.kernel.*;
[ "org.neo4j.kernel" ]
org.neo4j.kernel;
1,335,242
public static <T> ObjectMatcher<T> forClass(Class<T> clazz) { return new ObjectMatcher<>(clazz); } /** * Registers a custom matcher for a property with a given path. * * @param matcher to be registered and invoked when two values of a specified * propert...
static <T> ObjectMatcher<T> function(Class<T> clazz) { return new ObjectMatcher<>(clazz); } /** * Registers a custom matcher for a property with a given path. * * @param matcher to be registered and invoked when two values of a specified * property will be matched. * @param propertyPath a path to a property, imcluding ...
/** * Creates a matcher which would validate the instances of a given class. * * @param clazz the class of entities to be matched. * @return a matcher ready to be set up and executed. */
Creates a matcher which would validate the instances of a given class
forClass
{ "repo_name": "alexeyu/structure-matcher", "path": "core/src/main/java/nl/alexeyu/structmatcher/matcher/ObjectMatcher.java", "license": "mit", "size": 5727 }
[ "nl.alexeyu.structmatcher.property.ClassProperty" ]
import nl.alexeyu.structmatcher.property.ClassProperty;
import nl.alexeyu.structmatcher.property.*;
[ "nl.alexeyu.structmatcher" ]
nl.alexeyu.structmatcher;
126,001
public void setXHTMLPrefix(String xhtmlPrefix) { if (!XMLUtilities.isXMLNCName(xhtmlPrefix)) { throw new IllegalArgumentException("XHTML prefix must be a valid NCName"); } this.xhtmlPrefix = xhtmlPrefix; }
void function(String xhtmlPrefix) { if (!XMLUtilities.isXMLNCName(xhtmlPrefix)) { throw new IllegalArgumentException(STR); } this.xhtmlPrefix = xhtmlPrefix; }
/** * Sets the prefix to use for XHTML elements when {@link #isPrefixingXHTML()} returns true. * * @param xhtmlPrefix desired prefix, which must be non-null and a valid XML NCName. */
Sets the prefix to use for XHTML elements when <code>#isPrefixingXHTML()</code> returns true
setXHTMLPrefix
{ "repo_name": "ktisha/snuggletex", "path": "snuggletex-core/src/main/java/uk/ac/ed/ph/snuggletex/DOMOutputOptions.java", "license": "bsd-3-clause", "size": 22075 }
[ "uk.ac.ed.ph.snuggletex.internal.util.XMLUtilities" ]
import uk.ac.ed.ph.snuggletex.internal.util.XMLUtilities;
import uk.ac.ed.ph.snuggletex.internal.util.*;
[ "uk.ac.ed" ]
uk.ac.ed;
886,672
@Override public void enterDefaultValue(@NotNull PJParser.DefaultValueContext ctx) { }
@Override public void enterDefaultValue(@NotNull PJParser.DefaultValueContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitEllipsisRule
{ "repo_name": "Diolor/PJ", "path": "src/main/java/com/lorentzos/pj/PJBaseListener.java", "license": "mit", "size": 73292 }
[ "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;
782,698
public Adapter createTechnologyCollaborationAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link com.archimatetool.model.ITechnologyCollaboration <em>Technology Collaboration</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritanc...
Creates a new adapter for an object of class '<code>com.archimatetool.model.ITechnologyCollaboration Technology Collaboration</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
createTechnologyCollaborationAdapter
{ "repo_name": "archimatetool/archi", "path": "com.archimatetool.model/src/com/archimatetool/model/util/ArchimateAdapterFactory.java", "license": "mit", "size": 112141 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
357,246
closePendingChannels(); closeAllChannels(); remoteConnection.shutdownWrites(); IoUtils.safeShutdownReads(remoteConnection.getChannel()); try { closeAction(); } catch (IOException ignored) { log.tracef(ignored, "Failure to close after forced connection clos...
closePendingChannels(); closeAllChannels(); remoteConnection.shutdownWrites(); IoUtils.safeShutdownReads(remoteConnection.getChannel()); try { closeAction(); } catch (IOException ignored) { log.tracef(ignored, STR); } remoteConnection.getRemoteConnectionProvider().removeConnectionHandler(this); closeComplete(); }
/** * The socket channel was closed with or without our consent. */
The socket channel was closed with or without our consent
handleConnectionClose
{ "repo_name": "bmaxwell/jboss-remoting", "path": "src/main/java/org/jboss/remoting3/remote/RemoteConnectionHandler.java", "license": "lgpl-2.1", "size": 20228 }
[ "java.io.IOException", "org.xnio.IoUtils" ]
import java.io.IOException; import org.xnio.IoUtils;
import java.io.*; import org.xnio.*;
[ "java.io", "org.xnio" ]
java.io; org.xnio;
2,504,171
private static String getValueAsHTML(RawElement element) { String type = element.getAttributeValue(element.getNamespaceURI(), "type"); if (type == null || type.length() == 0) { type = "text"; } if (type.equals("text")) { String aux = element.getValue(); if (aux != null) { aux = aux....
static String function(RawElement element) { String type = element.getAttributeValue(element.getNamespaceURI(), "type"); if (type == null type.length() == 0) { type = "text"; } if (type.equals("text")) { String aux = element.getValue(); if (aux != null) { aux = aux.trim(); if (aux.length() > 0) { return HTMLFragmentHel...
/** * Gets an element value as HTML. The element must contain a "type" Atom * attribute. */
Gets an element value as HTML. The element must contain a "type" Atom attribute
getValueAsHTML
{ "repo_name": "nhochberger/Custos", "path": "lib/feed4j-1.0/src/it/sauronsoftware/feed4j/TypeAtom_1_0.java", "license": "mit", "size": 10956 }
[ "it.sauronsoftware.feed4j.bean.RawElement", "it.sauronsoftware.feed4j.html.HTMLFragmentHelper", "it.sauronsoftware.feed4j.html.HTMLOptimizer" ]
import it.sauronsoftware.feed4j.bean.RawElement; import it.sauronsoftware.feed4j.html.HTMLFragmentHelper; import it.sauronsoftware.feed4j.html.HTMLOptimizer;
import it.sauronsoftware.feed4j.bean.*; import it.sauronsoftware.feed4j.html.*;
[ "it.sauronsoftware.feed4j" ]
it.sauronsoftware.feed4j;
1,220,484
default void register(K key, V value) { if (!Nameable.class.isAssignableFrom(value.getClass())) { throw new IllegalArgumentException( value.getClass().getName() + " does not implement Nameable, use #register(String, Object, Object) instead"); } Nam...
default void register(K key, V value) { if (!Nameable.class.isAssignableFrom(value.getClass())) { throw new IllegalArgumentException( value.getClass().getName() + STR); } Nameable nameable = (Nameable) value; register(nameable.getName(), key, value); }
/** * Registers a new value into this registry. This method may only be used if the value * implements the {@link Nameable} interface. If it does not then the * {@link #register(String, Object, Object)} method must be used instead. * * @param key The object key for the value * @param valu...
Registers a new value into this registry. This method may only be used if the value implements the <code>Nameable</code> interface. If it does not then the <code>#register(String, Object, Object)</code> method must be used instead
register
{ "repo_name": "TVPT/VoxelGunsmith", "path": "src/main/java/com/voxelplugineering/voxelsniper/service/registry/Registry.java", "license": "mit", "size": 4066 }
[ "com.voxelplugineering.voxelsniper.util.Nameable" ]
import com.voxelplugineering.voxelsniper.util.Nameable;
import com.voxelplugineering.voxelsniper.util.*;
[ "com.voxelplugineering.voxelsniper" ]
com.voxelplugineering.voxelsniper;
1,544,581
try { String pattern = "\\A^(?=.{0,64}$)([a-z0-9_\\.-]+)@([\\da-z\\.-]+)([\\da-z]+)\\.([a-z]+)\\z"; return Pattern.compile(pattern).matcher(email).matches(); } catch (Exception e) { return false; } }
try { String pattern = STR; return Pattern.compile(pattern).matcher(email).matches(); } catch (Exception e) { return false; } }
/** * This method will validate email * * @param email * @return true/false based on the given email is valid or not */
This method will validate email
emailValidator
{ "repo_name": "bidurbs/yogaStudio", "path": "poweryoga/src/main/java/com/saviour/poweryoga/util/YogaValidator.java", "license": "apache-2.0", "size": 847 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
457,240
@Nullable public Fragment findFactoryFragmentById(@IntRange(from = 0) int fragmentId) { return this.providesFactoryFragmentWithId(fragmentId) ? findFragmentByTag(mFactory.getFragmentTag(fragmentId)) : null; }
Fragment function(@IntRange(from = 0) int fragmentId) { return this.providesFactoryFragmentWithId(fragmentId) ? findFragmentByTag(mFactory.getFragmentTag(fragmentId)) : null; }
/** * Same as {@link #findFragmentByTag(String)}, where fragment tag will be requested from the * current factory. * * @param fragmentId Id of the desired factory fragment to find. * @throws java.lang.IllegalStateException If this controller does not have factory attached. */
Same as <code>#findFragmentByTag(String)</code>, where fragment tag will be requested from the current factory
findFactoryFragmentById
{ "repo_name": "android-libraries/android_fragments", "path": "library/src/main/java/com/albedinsky/android/fragment/manage/FragmentController.java", "license": "apache-2.0", "size": 43500 }
[ "android.app.Fragment", "android.support.annotation.IntRange" ]
import android.app.Fragment; import android.support.annotation.IntRange;
import android.app.*; import android.support.annotation.*;
[ "android.app", "android.support" ]
android.app; android.support;
228,668
@Override public void onCheckedChanged(CompoundButton switchView, boolean isChecked) { if (!isResumed()) { // very important, setCheched(...) is called automatically during // Fragment recreation on device rotations return; } ...
void function(CompoundButton switchView, boolean isChecked) { if (!isResumed()) { return; } if (isChecked) { requestPasswordForShareViaLink(false); } else { ((FileActivity) getActivity()).getFileOperationsHelper(). setPasswordToShareViaLink(mFile, ""); } switchView.setOnCheckedChangeListener(null); switchView.toggle();...
/** * Called by R.id.shareViaLinkPasswordSwitch to set or clear the password. * * @param switchView {@link SwitchCompat} toggled by the user, R.id.shareViaLinkPasswordSwitch * @param isChecked New switch state. */
Called by R.id.shareViaLinkPasswordSwitch to set or clear the password
onCheckedChanged
{ "repo_name": "Flole998/android", "path": "src/main/java/com/owncloud/android/ui/fragment/ShareFileFragment.java", "license": "gpl-2.0", "size": 38198 }
[ "android.widget.CompoundButton", "com.owncloud.android.ui.activity.FileActivity" ]
import android.widget.CompoundButton; import com.owncloud.android.ui.activity.FileActivity;
import android.widget.*; import com.owncloud.android.ui.activity.*;
[ "android.widget", "com.owncloud.android" ]
android.widget; com.owncloud.android;
777,263
@Override public void init(ConfigurationBundle configuration, Info context, StatisticValueChecker statisticValueChecker, IStoreDirectory outputStoreDirectory) throws OutputNotInitializedException { this.fileMapping = new StoreSplOutputFileMappingImpl(outputStoreDirectory, HTML_EXTENSION)...
void function(ConfigurationBundle configuration, Info context, StatisticValueChecker statisticValueChecker, IStoreDirectory outputStoreDirectory) throws OutputNotInitializedException { this.fileMapping = new StoreSplOutputFileMappingImpl(outputStoreDirectory, HTML_EXTENSION); this.checker = statisticValueChecker; this....
/** * Inits the. * * @param configuration * The configuration. * @param context * The context. * @param statisticValueChecker * The statistic value checker. * @param outputStoreDirectory * The output store directory. */
Inits the
init
{ "repo_name": "lottie-c/spl_tests_new", "path": "src/java/cz/cuni/mff/spl/evaluator/output/impl/html2/Html2EvaluatorOutput.java", "license": "bsd-3-clause", "size": 37266 }
[ "cz.cuni.mff.spl.annotation.GeneratorAliasDeclaration", "cz.cuni.mff.spl.annotation.Info", "cz.cuni.mff.spl.annotation.MethodAliasDeclaration", "cz.cuni.mff.spl.configuration.ConfigurationBundle", "cz.cuni.mff.spl.deploy.store.IStore", "cz.cuni.mff.spl.evaluator.output.StoreSplOutputFileMappingImpl", "c...
import cz.cuni.mff.spl.annotation.GeneratorAliasDeclaration; import cz.cuni.mff.spl.annotation.Info; import cz.cuni.mff.spl.annotation.MethodAliasDeclaration; import cz.cuni.mff.spl.configuration.ConfigurationBundle; import cz.cuni.mff.spl.deploy.store.IStore; import cz.cuni.mff.spl.evaluator.output.StoreSplOutputFileM...
import cz.cuni.mff.spl.annotation.*; import cz.cuni.mff.spl.configuration.*; import cz.cuni.mff.spl.deploy.store.*; import cz.cuni.mff.spl.evaluator.output.*; import cz.cuni.mff.spl.evaluator.statistics.*;
[ "cz.cuni.mff" ]
cz.cuni.mff;
2,084,589
public void renderOutline(final Graphics2D g, final Shape shape) { renderOutline(g, shape, new BasicStroke(1 / Game.world().camera().getRenderScale())); }
void function(final Graphics2D g, final Shape shape) { renderOutline(g, shape, new BasicStroke(1 / Game.world().camera().getRenderScale())); }
/** * Renders the outline of the specified shape to the translated location in the game world. * * @param g * The graphics object to render on. * @param shape * The shape to be rendered. */
Renders the outline of the specified shape to the translated location in the game world
renderOutline
{ "repo_name": "gurkenlabs/litiengine", "path": "core/src/main/java/de/gurkenlabs/litiengine/graphics/RenderEngine.java", "license": "mit", "size": 21096 }
[ "de.gurkenlabs.litiengine.Game", "java.awt.BasicStroke", "java.awt.Graphics2D", "java.awt.Shape" ]
import de.gurkenlabs.litiengine.Game; import java.awt.BasicStroke; import java.awt.Graphics2D; import java.awt.Shape;
import de.gurkenlabs.litiengine.*; import java.awt.*;
[ "de.gurkenlabs.litiengine", "java.awt" ]
de.gurkenlabs.litiengine; java.awt;
2,184,524
protected List listObjectsByNamedQuery(String qryName, Map qryParams, Collection col, String colLabel) { if (col.isEmpty()) { return Collections.EMPTY_LIST; } ArrayList<Long> tmpList = new ArrayList<Long>(); List<Long> toRet = new...
List function(String qryName, Map qryParams, Collection col, String colLabel) { if (col.isEmpty()) { return Collections.EMPTY_LIST; } ArrayList<Long> tmpList = new ArrayList<Long>(); List<Long> toRet = new ArrayList<Long>(); tmpList.addAll(col); for (int i = 0; i < col.size();) { int initial = i; int fin = i + 500 < co...
/** * Using a named query, find all the objects matching the criteria within. * Warning: This can be very expensive if the returned list is large. Use * only for small tables with static data * @param qryName Named query to use to find a list of objects. * @param qryParams Map of named bind par...
Using a named query, find all the objects matching the criteria within. Warning: This can be very expensive if the returned list is large. Use only for small tables with static data
listObjectsByNamedQuery
{ "repo_name": "hustodemon/spacewalk", "path": "java/code/src/com/redhat/rhn/common/hibernate/HibernateFactory.java", "license": "gpl-2.0", "size": 20341 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.Collections", "java.util.List", "java.util.Map" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
565,635
validateAttributes(); project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName); if (project == null) { displayError(TASKNAME + projectName + " project==null"); return; } if (!project.exists()) { displayError(TASKNAME + projectName + " not found in Workspace."); return; ...
validateAttributes(); project = ResourcesPlugin.getWorkspace().getRoot().getProject(projectName); if (project == null) { displayError(TASKNAME + projectName + STR); return; } if (!project.exists()) { displayError(TASKNAME + projectName + STR); return; } if (!project.isOpen()) { displayError(TASKNAME + projectName + STR...
/** * Execute this Ant task. Builds the given project according to the given parameters */
Execute this Ant task. Builds the given project according to the given parameters
execute
{ "repo_name": "qxo/eclipse-metrics-plugin", "path": "net.sourceforge.metrics/anttasks/net/sourceforge/metrics/ant/ProjectBuild.java", "license": "epl-1.0", "size": 9509 }
[ "org.apache.tools.ant.BuildException", "org.eclipse.core.resources.ResourcesPlugin" ]
import org.apache.tools.ant.BuildException; import org.eclipse.core.resources.ResourcesPlugin;
import org.apache.tools.ant.*; import org.eclipse.core.resources.*;
[ "org.apache.tools", "org.eclipse.core" ]
org.apache.tools; org.eclipse.core;
74,002
public List getRecipeList() { return this.recipes; }
List function() { return this.recipes; }
/** * returns the List<> of all recipes */
returns the List<> of all recipes
getRecipeList
{ "repo_name": "KubaKaszycki/FreeCraft", "path": "src/main/java/kk/freecraft/item/crafting/CraftingManager.java", "license": "gpl-3.0", "size": 25170 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,518,398
@ParameterizedTest @MethodSource void settleWithNullTransactionId(DispositionStatus dispositionStatus) { // Arrange ServiceBusTransactionContext nullTransactionId = new ServiceBusTransactionContext(null); when(connection.getManagementNode(ENTITY_PATH, ENTITY_TYPE)).thenReturn(Mono.j...
void settleWithNullTransactionId(DispositionStatus dispositionStatus) { ServiceBusTransactionContext nullTransactionId = new ServiceBusTransactionContext(null); when(connection.getManagementNode(ENTITY_PATH, ENTITY_TYPE)).thenReturn(Mono.just(managementNode)); when(managementNode.updateDisposition(any(), eq(disposition...
/** * Verifies that we error if we try to settle a message with null transaction-id. * * Transactions are not used in {@link ServiceBusReceiverAsyncClient#release(ServiceBusReceivedMessage)} since this * is package-private, so we skip this case. */
Verifies that we error if we try to settle a message with null transaction-id. Transactions are not used in <code>ServiceBusReceiverAsyncClient#release(ServiceBusReceivedMessage)</code> since this is package-private, so we skip this case
settleWithNullTransactionId
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/servicebus/azure-messaging-servicebus/src/test/java/com/azure/messaging/servicebus/ServiceBusReceiverAsyncClientTest.java", "license": "mit", "size": 54277 }
[ "com.azure.messaging.servicebus.implementation.DispositionStatus", "com.azure.messaging.servicebus.models.AbandonOptions", "com.azure.messaging.servicebus.models.CompleteOptions", "com.azure.messaging.servicebus.models.DeadLetterOptions", "com.azure.messaging.servicebus.models.DeferOptions", "java.time.Du...
import com.azure.messaging.servicebus.implementation.DispositionStatus; import com.azure.messaging.servicebus.models.AbandonOptions; import com.azure.messaging.servicebus.models.CompleteOptions; import com.azure.messaging.servicebus.models.DeadLetterOptions; import com.azure.messaging.servicebus.models.DeferOptions; im...
import com.azure.messaging.servicebus.implementation.*; import com.azure.messaging.servicebus.models.*; import java.time.*; import org.mockito.*;
[ "com.azure.messaging", "java.time", "org.mockito" ]
com.azure.messaging; java.time; org.mockito;
183,176
@Override public void checkEnvironment(Log l, WorkspaceSession workspaceSession) throws MojoExecutionException { Utils.checkProgramAvailability("dpkg-deb"); String output = Utils.getProgramVersionOutput("dpkg-deb"); Pattern p = Pattern .compile("version (1\\.([0-9]{2})\\.([0-9]*\\.*)*)* ", P...
void function(Log l, WorkspaceSession workspaceSession) throws MojoExecutionException { Utils.checkProgramAvailability(STR); String output = Utils.getProgramVersionOutput(STR); Pattern p = Pattern .compile(STR, Pattern.MULTILINE); Matcher m = p.matcher(output); if (m.find()) { l.info(STR + m.group(1)); int versionNumbe...
/** * Validates arguments and test tools. * * @throws MojoExecutionException */
Validates arguments and test tools
checkEnvironment
{ "repo_name": "21Net/pkg-maven-plugin", "path": "src/main/java/de/tarent/maven/plugins/pkg/packager/DebPackager.java", "license": "gpl-2.0", "size": 19714 }
[ "de.tarent.maven.plugins.pkg.Utils", "de.tarent.maven.plugins.pkg.WorkspaceSession", "java.util.regex.Matcher", "java.util.regex.Pattern", "org.apache.maven.plugin.MojoExecutionException", "org.apache.maven.plugin.logging.Log" ]
import de.tarent.maven.plugins.pkg.Utils; import de.tarent.maven.plugins.pkg.WorkspaceSession; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.apache.maven.plugin.MojoExecutionException; import org.apache.maven.plugin.logging.Log;
import de.tarent.maven.plugins.pkg.*; import java.util.regex.*; import org.apache.maven.plugin.*; import org.apache.maven.plugin.logging.*;
[ "de.tarent.maven", "java.util", "org.apache.maven" ]
de.tarent.maven; java.util; org.apache.maven;
128,428
public Database createTestDatabase(String... statements) throws SpannerException { return createTestDatabase(Dialect.GOOGLE_STANDARD_SQL, Arrays.asList(statements)); }
Database function(String... statements) throws SpannerException { return createTestDatabase(Dialect.GOOGLE_STANDARD_SQL, Arrays.asList(statements)); }
/** * Creates a test database defined by {@code statements}. A {@code CREATE DATABASE ...} statement * should not be included; an appropriate name will be chosen and the statement generated * accordingly. */
Creates a test database defined by statements. A CREATE DATABASE ... statement should not be included; an appropriate name will be chosen and the statement generated accordingly
createTestDatabase
{ "repo_name": "googleapis/java-spanner", "path": "google-cloud-spanner/src/main/java/com/google/cloud/spanner/testing/RemoteSpannerHelper.java", "license": "apache-2.0", "size": 7133 }
[ "com.google.cloud.spanner.Database", "com.google.cloud.spanner.Dialect", "com.google.cloud.spanner.SpannerException", "java.util.Arrays" ]
import com.google.cloud.spanner.Database; import com.google.cloud.spanner.Dialect; import com.google.cloud.spanner.SpannerException; import java.util.Arrays;
import com.google.cloud.spanner.*; import java.util.*;
[ "com.google.cloud", "java.util" ]
com.google.cloud; java.util;
2,215,841
public ArrayList<String> extractAllMatches(String prefixRegex, String matchingRegex, String postfixRegex) { String lineRegex = ".*" + prefixRegex + matchingRegex + postfixRegex + ".*"; ArrayList<String> matches = getMatches(lineRegex); ArrayList<String> subStrings = new ArrayList<String>(); for (String l...
ArrayList<String> function(String prefixRegex, String matchingRegex, String postfixRegex) { String lineRegex = ".*" + prefixRegex + matchingRegex + postfixRegex + ".*"; ArrayList<String> matches = getMatches(lineRegex); ArrayList<String> subStrings = new ArrayList<String>(); for (String line : matches) { subStrings.add...
/** * Postfix and prefix must be unique within a line and directly border the string * that is to be extracted. * @param prefixRegex Prefix before the section that must match. * @param matchingRegex must match the String that is to be extracted. * @param postfixRegex Postfix after the matching section. ...
Postfix and prefix must be unique within a line and directly border the string that is to be extracted
extractAllMatches
{ "repo_name": "joakimkistowski/HTTP-Load-Generator", "path": "tools.descartes.dlim.httploadgenerator/src/main/java/tools/descartes/dlim/httploadgenerator/http/lua/HTMLFunctions.java", "license": "apache-2.0", "size": 3981 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
564,198
public void setPresentationTime(long nsecs) { EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs); checkEglError("eglPresentationTimeANDROID"); }
void function(long nsecs) { EGLExt.eglPresentationTimeANDROID(mEGLDisplay, mEGLSurface, nsecs); checkEglError(STR); }
/** * Sends the presentation time stamp to EGL. Time is expressed in nanoseconds. */
Sends the presentation time stamp to EGL. Time is expressed in nanoseconds
setPresentationTime
{ "repo_name": "MichaelChansn/RemoteEye", "path": "RemoteEye/src/freescale/ks/remoteeye/streaming/surfaceview/SurfaceManager.java", "license": "gpl-3.0", "size": 6071 }
[ "android.opengl.EGLExt" ]
import android.opengl.EGLExt;
import android.opengl.*;
[ "android.opengl" ]
android.opengl;
1,761,063
public T1 caseRVoid(RVoid object) { return null; }
T1 function(RVoid object) { return null; }
/** * Returns the result of interpreting the object as an instance of '<em>RVoid</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 th...
Returns the result of interpreting the object as an instance of 'RVoid'. This implementation returns null; returning a non-null result will terminate the switch.
caseRVoid
{ "repo_name": "sacooper/ECSE-429-Project-Group1", "path": "ca.mcgill.sel.ram/src/ca/mcgill/sel/ram/util/RamSwitch.java", "license": "gpl-2.0", "size": 105770 }
[ "ca.mcgill.sel.ram.RVoid" ]
import ca.mcgill.sel.ram.RVoid;
import ca.mcgill.sel.ram.*;
[ "ca.mcgill.sel" ]
ca.mcgill.sel;
2,104,523
void setFloat1(String name, FloatBuffer buffer);
void setFloat1(String name, FloatBuffer buffer);
/** * Sets a float1 uniform parameter (for all feature permutations) * * @param name * @param buffer */
Sets a float1 uniform parameter (for all feature permutations)
setFloat1
{ "repo_name": "xposure/zSprite_Old", "path": "Source/Framework/zSprite.Sandbox/Terasology/rendering/assets/material/Material.java", "license": "gpl-3.0", "size": 6583 }
[ "java.nio.FloatBuffer" ]
import java.nio.FloatBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
281,814
public void test_copyOf_$ZI() throws Exception { boolean[] result = Arrays.copyOf(booleanArray, arraySize * 2); int i = 0; for (; i < arraySize; i++) { assertEquals(booleanArray[i], result[i]); } for (; i < result.length; i++) { assertEquals(false, res...
public void test_copyOf_$ZI() throws Exception { boolean[] result = Arrays.copyOf(booleanArray, arraySize * 2); int i = 0; for (; i < arraySize; i++) { assertEquals(booleanArray[i], result[i]); } for (; i < result.length; i++) { assertEquals(false, result[i]); } result = Arrays.copyOf(booleanArray, arraySize / 2); i = ...
/** * {@link java.util.Arrays#copyOf(boolean[], int) */
{@link java.util.Arrays#copyOf(boolean[], int)
test_copyOf_$ZI
{ "repo_name": "AdmireTheDistance/android_libcore", "path": "harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ArraysTest.java", "license": "gpl-2.0", "size": 156287 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,836,728
private void checkParams() { boolean areMissingParams = false; StringBuilder errors = new StringBuilder(""); if (deploymentId == null) { areMissingParams = true; errors.append("Missing parameter: deploymentId is required \n"); } if (status == null) {...
void function() { boolean areMissingParams = false; StringBuilder errors = new StringBuilder(STRMissing parameter: deploymentId is required \nSTRMissing parameter: status is required \n"); } if (areMissingParams) { throw new BuildException(errors.toString()); } }
/** * Waits for the specified stack to reach the specified status. Returns true * if it does, returns false if it reaches a status with "FAILED", or if 30 * minutes pass without reaching the desired status. */
Waits for the specified stack to reach the specified status. Returns true if it does, returns false if it reaches a status with "FAILED", or if 30 minutes pass without reaching the desired status
checkParams
{ "repo_name": "jbank/aws-ant-tasks", "path": "src/main/java/com/amazonaws/ant/codedeploy/WaitForDeploymentToReachStateTask.java", "license": "apache-2.0", "size": 3251 }
[ "org.apache.tools.ant.BuildException" ]
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.*;
[ "org.apache.tools" ]
org.apache.tools;
282,244
private void setInterface() { if (mScrimInsetsFrameLayout != null) { mScrimInsetsFrameLayout.setLayoutParams(getDrawerParams()); if (Utils.DARKTHEME) mScrimInsetsFrameLayout.setBackgroundColor(ContextCompat.getColor(MainActivity.this, R.color.navigationdrawer_backgrou...
void function() { if (mScrimInsetsFrameLayout != null) { mScrimInsetsFrameLayout.setLayoutParams(getDrawerParams()); if (Utils.DARKTHEME) mScrimInsetsFrameLayout.setBackgroundColor(ContextCompat.getColor(MainActivity.this, R.color.navigationdrawer_background_dark)); } setItems(null); if (mDrawerLayout != null) { mDrawe...
/** * Setup the views */
Setup the views
setInterface
{ "repo_name": "bhb27/KA27", "path": "app/src/main/java/com/grarak/kerneladiutor/MainActivity.java", "license": "apache-2.0", "size": 22917 }
[ "android.support.v4.content.ContextCompat", "android.support.v7.app.ActionBarDrawerToggle", "com.grarak.kerneladiutor.utils.Utils" ]
import android.support.v4.content.ContextCompat; import android.support.v7.app.ActionBarDrawerToggle; import com.grarak.kerneladiutor.utils.Utils;
import android.support.v4.content.*; import android.support.v7.app.*; import com.grarak.kerneladiutor.utils.*;
[ "android.support", "com.grarak.kerneladiutor" ]
android.support; com.grarak.kerneladiutor;
2,788,605
@Deprecated public static void formatJapaneseNumber(Editable text) { JapanesePhoneNumberFormatter.format(text); }
static void function(Editable text) { JapanesePhoneNumberFormatter.format(text); }
/** * Formats a phone number in-place using the Japanese formatting rules. * Numbers will be formatted as: * * <p><code> * 03-xxxx-xxxx * 090-xxxx-xxxx * 0120-xxx-xxx * +81-3-xxxx-xxxx * +81-90-xxxx-xxxx * </code></p> * * @param text the number to be formatted...
Formats a phone number in-place using the Japanese formatting rules. Numbers will be formatted as: <code> 03-xxxx-xxxx 090-xxxx-xxxx 0120-xxx-xxx +81-3-xxxx-xxxx +81-90-xxxx-xxxx </code>
formatJapaneseNumber
{ "repo_name": "syslover33/ctank", "path": "java/android-sdk-linux_r24.4.1_src/sources/android-23/android/telephony/PhoneNumberUtils.java", "license": "gpl-3.0", "size": 111481 }
[ "android.text.Editable" ]
import android.text.Editable;
import android.text.*;
[ "android.text" ]
android.text;
761,712
public static com.knowarth.portlets.themepersonalizer.model.UserPersonalizedTheme findByUserId_Last( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.knowarth.portlets.themepersonalizer.NoSuchUserPersonalizedThemeException, com.liferay.p...
static com.knowarth.portlets.themepersonalizer.model.UserPersonalizedTheme function( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.knowarth.portlets.themepersonalizer.NoSuchUserPersonalizedThemeException, com.liferay.portal.kernel.exception.SystemException { return getPersi...
/** * Returns the last user personalized theme in the ordered set where userId = &#63;. * * @param userId the user ID * @param orderByComparator the comparator to order the set by (optionally <code>null</code>) * @return the last matching user personalized theme * @throws com.knowarth.portlets.t...
Returns the last user personalized theme in the ordered set where userId = &#63;
findByUserId_Last
{ "repo_name": "knowarth-technologies/theme-personalizer", "path": "liferay-6-1-2/theme-personalizer/theme-personalizer-portlet-service/src/main/java/com/knowarth/portlets/themepersonalizer/service/persistence/UserPersonalizedThemeUtil.java", "license": "lgpl-2.1", "size": 49816 }
[ "com.knowarth.portlets.themepersonalizer.model.UserPersonalizedTheme", "com.liferay.portal.kernel.exception.SystemException", "com.liferay.portal.kernel.util.OrderByComparator" ]
import com.knowarth.portlets.themepersonalizer.model.UserPersonalizedTheme; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.util.OrderByComparator;
import com.knowarth.portlets.themepersonalizer.model.*; import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.util.*;
[ "com.knowarth.portlets", "com.liferay.portal" ]
com.knowarth.portlets; com.liferay.portal;
2,245,079
public void testNullProperty(HttpServletRequest request, PrintWriter out) throws Exception { try { boolean created = scheduler.createProperty(null, "value1"); throw new Exception("Should not be able to create a property with null name. Result: " + created); } catch (IllegalAr...
void function(HttpServletRequest request, PrintWriter out) throws Exception { try { boolean created = scheduler.createProperty(null, STR); throw new Exception(STR + created); } catch (IllegalArgumentException x) { } try { boolean created = scheduler.createProperty(STR, null); throw new Exception(STR + created); } catch...
/** * Attempt to create/find/remove null (and empty) property and value. */
Attempt to create/find/remove null (and empty) property and value
testNullProperty
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.concurrent.persistent_fat_errorpaths/test-applications/persistenterrtest/src/web/PersistentErrorTestServlet.java", "license": "epl-1.0", "size": 67702 }
[ "java.io.PrintWriter", "javax.servlet.http.HttpServletRequest" ]
import java.io.PrintWriter; import javax.servlet.http.HttpServletRequest;
import java.io.*; import javax.servlet.http.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
2,838,151
public void unparsedEntityDecl (String name, String publicId, String systemId, String notationName) throws SAXException { // no op } //////////////////////////////////////////////////////////////////// // Default implementation of ContentHandler interface. /////////////////...
void function (String name, String publicId, String systemId, String notationName) throws SAXException { }
/** * Receive notification of an unparsed entity declaration. * * <p>By default, do nothing. Application writers may override this * method in a subclass to keep track of the unparsed entities * declared in a document.</p> * * @param name The entity name. * @param publicId The e...
Receive notification of an unparsed entity declaration. By default, do nothing. Application writers may override this method in a subclass to keep track of the unparsed entities declared in a document
unparsedEntityDecl
{ "repo_name": "svn2github/xerces-xml-commons", "path": "java/external/src/org/xml/sax/helpers/DefaultHandler.java", "license": "apache-2.0", "size": 16267 }
[ "org.xml.sax.SAXException" ]
import org.xml.sax.SAXException;
import org.xml.sax.*;
[ "org.xml.sax" ]
org.xml.sax;
1,913,197
protected int readHeader( byte[] data, int offset ) { _options = LittleEndian.getShort( data, offset ); _recordId = LittleEndian.getShort( data, offset + 2 ); return LittleEndian.getInt( data, offset + 4 ); }
int function( byte[] data, int offset ) { _options = LittleEndian.getShort( data, offset ); _recordId = LittleEndian.getShort( data, offset + 2 ); return LittleEndian.getInt( data, offset + 4 ); }
/** * Reads the 8 byte header information and populates the <code>options</code> * and <code>recordId</code> records. * * @param data the byte array to read from * @param offset the offset to start reading from * @return the number of bytes remaining in this record. This ...
Reads the 8 byte header information and populates the <code>options</code> and <code>recordId</code> records
readHeader
{ "repo_name": "lamsfoundation/lams", "path": "3rdParty_sources/poi/org/apache/poi/ddf/EscherRecord.java", "license": "gpl-2.0", "size": 11032 }
[ "org.apache.poi.util.LittleEndian" ]
import org.apache.poi.util.LittleEndian;
import org.apache.poi.util.*;
[ "org.apache.poi" ]
org.apache.poi;
104,737
WorkspaceSettingInner innerModel(); interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCreate { } interface DefinitionStages { interface Blank extends WithCreate { }
WorkspaceSettingInner innerModel(); interface Definition extends DefinitionStages.Blank, DefinitionStages.WithCreate { } interface DefinitionStages { interface Blank extends WithCreate { }
/** * Gets the inner com.azure.resourcemanager.security.fluent.models.WorkspaceSettingInner object. * * @return the inner object. */
Gets the inner com.azure.resourcemanager.security.fluent.models.WorkspaceSettingInner object
innerModel
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/security/azure-resourcemanager-security/src/main/java/com/azure/resourcemanager/security/models/WorkspaceSetting.java", "license": "mit", "size": 6067 }
[ "com.azure.resourcemanager.security.fluent.models.WorkspaceSettingInner" ]
import com.azure.resourcemanager.security.fluent.models.WorkspaceSettingInner;
import com.azure.resourcemanager.security.fluent.models.*;
[ "com.azure.resourcemanager" ]
com.azure.resourcemanager;
1,036,901
private void writeAttribute(String prefix, String namespace, String attName, String attValue, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { ...
void function(String prefix, String namespace, String attName, String attValue, javax.xml.stream.XMLStreamWriter xmlWriter) throws javax.xml.stream.XMLStreamException { String writerPrefix = xmlWriter.getPrefix(namespace); if (writerPrefix != null) { xmlWriter.writeAttribute(writerPrefix, namespace, attName, attValue);...
/** * Util method to write an attribute with the ns prefix */
Util method to write an attribute with the ns prefix
writeAttribute
{ "repo_name": "fincatto/nfe", "path": "src/main/java/com/fincatto/documentofiscal/nfe400/webservices/consultacadastro/MTCadConsultaCadastro4Stub.java", "license": "apache-2.0", "size": 88812 }
[ "javax.xml.stream.XMLStreamException" ]
import javax.xml.stream.XMLStreamException;
import javax.xml.stream.*;
[ "javax.xml" ]
javax.xml;
2,372,675
@ApiModelProperty(example = "null", value = "") public StatusEnum getStatus() { return status; }
@ApiModelProperty(example = "null", value = "") StatusEnum function() { return status; }
/** * Get status * @return status **/
Get status
getStatus
{ "repo_name": "leanix/leanix-sdk-java", "path": "src/main/java/net/leanix/api/models/FactSheet.java", "license": "mit", "size": 20599 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
835,541
public void setIoService(final IOService ioService) { this.ioService = ioService; }
void function(final IOService ioService) { this.ioService = ioService; }
/** * Inject data file I/O service. * @param ioService Data file I/O service */
Inject data file I/O service
setIoService
{ "repo_name": "NCIP/webgenome", "path": "tags/WEBGENOME_R3.2_6MAR2009_BUILD1/java/core/src/org/rti/webgenome/service/session/DaoWebGenomeDbService.java", "license": "bsd-3-clause", "size": 7537 }
[ "org.rti.webgenome.service.io.IOService" ]
import org.rti.webgenome.service.io.IOService;
import org.rti.webgenome.service.io.*;
[ "org.rti.webgenome" ]
org.rti.webgenome;
1,770,689
public static ContainerOperationCall createContainerCall(ConstraintSyntaxTree container, Operation op, ConstraintSyntaxTree iterEx, DecisionVariableDeclaration... decl) { return new ContainerOperationCall(container, op.getName(), iterEx, decl); }
static ContainerOperationCall function(ConstraintSyntaxTree container, Operation op, ConstraintSyntaxTree iterEx, DecisionVariableDeclaration... decl) { return new ContainerOperationCall(container, op.getName(), iterEx, decl); }
/** * Creates a container operation call ("shortcut"). * * @param container the container to operate on * @param op the operation * @param iterEx the iterator expression * @param decl the declarators * @return the created call */
Creates a container operation call ("shortcut")
createContainerCall
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/Reasoner/EASy-Original-Reasoner/de.uni_hildesheim.sse.reasoning.reasoner/src/net/ssehub/easy/reasoning/sseReasoner/model/ReasoningUtils.java", "license": "apache-2.0", "size": 27579 }
[ "net.ssehub.easy.varModel.cst.ConstraintSyntaxTree", "net.ssehub.easy.varModel.cst.ContainerOperationCall", "net.ssehub.easy.varModel.model.DecisionVariableDeclaration", "net.ssehub.easy.varModel.model.datatypes.Operation" ]
import net.ssehub.easy.varModel.cst.ConstraintSyntaxTree; import net.ssehub.easy.varModel.cst.ContainerOperationCall; import net.ssehub.easy.varModel.model.DecisionVariableDeclaration; import net.ssehub.easy.varModel.model.datatypes.Operation;
import net.ssehub.easy.*;
[ "net.ssehub.easy" ]
net.ssehub.easy;
3,800
public static Class<?> getClassFromType(Type type) { // Java 7 does not support getTypeName() :( String fullName = type.toString(); try { if (fullName.startsWith("class ")) { return Class.forName(fullName.substring("class ".length())); } } catch (ClassNotFoundException e) { return null; } ...
static Class<?> function(Type type) { String fullName = type.toString(); try { if (fullName.startsWith(STR)) { return Class.forName(fullName.substring(STR.length())); } } catch (ClassNotFoundException e) { return null; } return null; }
/** * Returns the {@link Class} from a {@link Type}, or * returns null if the class is not found, or the type * is not a class. */
Returns the <code>Class</code> from a <code>Type</code>, or returns null if the class is not found, or the type is not a class
getClassFromType
{ "repo_name": "syncany/syncany-plugin-gui", "path": "core/syncany-util/src/main/java/org/syncany/util/ReflectionUtil.java", "license": "gpl-3.0", "size": 4525 }
[ "java.lang.reflect.Type" ]
import java.lang.reflect.Type;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,338,120
@SuppressWarnings("WeakerAccess") public OkHttpClient.Builder getDefaultOkHttpClientBuilder( @SuppressWarnings("SameParameterValue") @IntRange(from = 1) final int connectTimeout, @SuppressWarnings("SameParameterValue") @IntRange(from = 1) final int readTimeout, @SuppressWarni...
@SuppressWarnings(STR) OkHttpClient.Builder function( @SuppressWarnings(STR) @IntRange(from = 1) final int connectTimeout, @SuppressWarnings(STR) @IntRange(from = 1) final int readTimeout, @SuppressWarnings(STR) @Nullable final Map<String, String> headers, @SuppressWarnings(STR) @Nullable final Map<String, String> cook...
/** * Returns the default {@code OkHttpClient} builder. * * @param connectTimeout * The connection timeout (in seconds) * * @param readTimeout * The read timeout (in seconds) * * @param headers * The optional HTTP headers (or null) * * @pa...
Returns the default OkHttpClient builder
getDefaultOkHttpClientBuilder
{ "repo_name": "akhasoft/Yakhont", "path": "yakhont/src/main/java/akha/yakhont/technology/retrofit/Retrofit2.java", "license": "apache-2.0", "size": 16989 }
[ "android.support.annotation.IntRange", "android.support.annotation.Nullable", "java.util.Map", "java.util.concurrent.TimeUnit" ]
import android.support.annotation.IntRange; import android.support.annotation.Nullable; import java.util.Map; import java.util.concurrent.TimeUnit;
import android.support.annotation.*; import java.util.*; import java.util.concurrent.*;
[ "android.support", "java.util" ]
android.support; java.util;
845,973
if(what.length <= 0) throw new OperationException("preventBlock must have at least one block to prevent ('what')."); }
if(what.length <= 0) throw new OperationException(STR); }
/** * Called to initialize the set * * @throws OperationException If something went wrong */
Called to initialize the set
init
{ "repo_name": "legendblade/CraftingHarmonics", "path": "src/main/java/org/winterblade/minecraft/harmony/blocks/operations/PreventBlockOperation.java", "license": "mit", "size": 1626 }
[ "org.winterblade.minecraft.harmony.api.OperationException" ]
import org.winterblade.minecraft.harmony.api.OperationException;
import org.winterblade.minecraft.harmony.api.*;
[ "org.winterblade.minecraft" ]
org.winterblade.minecraft;
2,824,063
@Override public void onDownloadStateChanged(int newState) { setState(newState); boolean showDashboard = true; boolean showCellMessage = false; boolean paused; boolean indeterminate; switch (newState) { case IDownloaderClient.STATE_IDLE: ...
void function(int newState) { setState(newState); boolean showDashboard = true; boolean showCellMessage = false; boolean paused; boolean indeterminate; switch (newState) { case IDownloaderClient.STATE_IDLE: paused = false; indeterminate = true; break; case IDownloaderClient.STATE_CONNECTING: case IDownloaderClient.STAT...
/** * The download state should trigger changes in the UI --- it may be useful * to show the state as being indeterminate at times. This sample can be * considered a guideline. */
The download state should trigger changes in the UI --- it may be useful to show the state as being indeterminate at times. This sample can be considered a guideline
onDownloadStateChanged
{ "repo_name": "Hatisoft/Coin-Run", "path": "Build/Android/src/com/HatiSoft/CoinRun/DownloaderActivity.java", "license": "gpl-3.0", "size": 32069 }
[ "android.view.View", "com.google.android.vending.expansion.downloader.IDownloaderClient" ]
import android.view.View; import com.google.android.vending.expansion.downloader.IDownloaderClient;
import android.view.*; import com.google.android.vending.expansion.downloader.*;
[ "android.view", "com.google.android" ]
android.view; com.google.android;
133,168
public Iterator getPages() throws Exception;
Iterator function() throws Exception;
/** * Get an iterator which can be used to iterate through all pages * known to the PageManager. * * @return An Iterator of Pages * @throws Exception Any Exception */
Get an iterator which can be used to iterate through all pages known to the PageManager
getPages
{ "repo_name": "florinpatrascu/jpublish", "path": "java/src/org/jpublish/PageManager.java", "license": "apache-2.0", "size": 4794 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,061,670
@JsonProperty("apiHost") public String getAPIHost() { return apiHost; }
@JsonProperty(STR) String function() { return apiHost; }
/** * Returns the hostname of the DuoWeb API endpoint. * * @return * The hostname of the DuoWeb API endpoint. */
Returns the hostname of the DuoWeb API endpoint
getAPIHost
{ "repo_name": "mike-jumper/incubator-guacamole-client", "path": "extensions/guacamole-auth-duo/src/main/java/org/apache/guacamole/auth/duo/form/DuoSignedResponseField.java", "license": "apache-2.0", "size": 3235 }
[ "org.codehaus.jackson.annotate.JsonProperty" ]
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.annotate.*;
[ "org.codehaus.jackson" ]
org.codehaus.jackson;
878,233
public int getResourceId(@NonNull final Layout layout, @AttrRes final int resourceId, final int defaultValue) { int result = ThemeUtil.getResId(context, resourceId, 0); if (result == 0) { int themeResourceId = getThemeResourceId(layout); result =...
int function(@NonNull final Layout layout, @AttrRes final int resourceId, final int defaultValue) { int result = ThemeUtil.getResId(context, resourceId, 0); if (result == 0) { int themeResourceId = getThemeResourceId(layout); result = ThemeUtil.getResId(context, themeResourceId, resourceId, 0); if (result == 0) { theme...
/** * Returns the resource id, which corresponds to a specific theme attribute, regarding the * theme, which is used when using a specific layout. * * @param layout * The layout as a value of the enum {@link Layout}. The layout may not be null * @param resourceId * The...
Returns the resource id, which corresponds to a specific theme attribute, regarding the theme, which is used when using a specific layout
getResourceId
{ "repo_name": "michael-rapp/ChromeLikeTabSwitcher", "path": "library/src/main/java/de/mrapp/android/tabswitcher/util/ThemeHelper.java", "license": "apache-2.0", "size": 13725 }
[ "androidx.annotation.AttrRes", "androidx.annotation.NonNull", "de.mrapp.android.tabswitcher.Layout", "de.mrapp.android.util.ThemeUtil" ]
import androidx.annotation.AttrRes; import androidx.annotation.NonNull; import de.mrapp.android.tabswitcher.Layout; import de.mrapp.android.util.ThemeUtil;
import androidx.annotation.*; import de.mrapp.android.tabswitcher.*; import de.mrapp.android.util.*;
[ "androidx.annotation", "de.mrapp.android" ]
androidx.annotation; de.mrapp.android;
1,663,889
private String replaceProps(String pattern, String path, Properties properties) { Matcher matcher = Pattern.compile(pattern).matcher(path); String replaced = path; while (matcher.find()) { replaced = replaced.replace(matcher.group(0), properties.getProperty(matcher.group(1), ""))...
String function(String pattern, String path, Properties properties) { Matcher matcher = Pattern.compile(pattern).matcher(path); String replaced = path; while (matcher.find()) { replaced = replaced.replace(matcher.group(0), properties.getProperty(matcher.group(1), "")); } return replaced; }
/** * Replace properties in given path using pattern * @param pattern - pattern to replace. First group should contains property name * @param path - given path to replace in * @param properties - list of properties using to replace * @return path with replaced properties */
Replace properties in given path using pattern
replaceProps
{ "repo_name": "prashanth-sams/properties", "path": "src/main/java/ru/qatools/properties/utils/PropsReplacer.java", "license": "apache-2.0", "size": 2022 }
[ "java.util.Properties", "java.util.regex.Matcher", "java.util.regex.Pattern" ]
import java.util.Properties; import java.util.regex.Matcher; import java.util.regex.Pattern;
import java.util.*; import java.util.regex.*;
[ "java.util" ]
java.util;
837,467
return append(by, SortDirection.ASCENDING); }
return append(by, SortDirection.ASCENDING); }
/** * Appends sorting with ascending sort direction. * * @param by * the object to sort by * @return this sort builder */
Appends sorting with ascending sort direction
thenAsc
{ "repo_name": "Darsstar/framework", "path": "server/src/main/java/com/vaadin/data/provider/Sort.java", "license": "apache-2.0", "size": 3521 }
[ "com.vaadin.shared.data.sort.SortDirection" ]
import com.vaadin.shared.data.sort.SortDirection;
import com.vaadin.shared.data.sort.*;
[ "com.vaadin.shared" ]
com.vaadin.shared;
1,129,592
private void setLegacyScopeExtensionToSwagger(OpenAPI openAPI, SwaggerData swaggerData) { Set<Scope> scopes = swaggerData.getScopes(); if (scopes != null && !scopes.isEmpty()) { List<Map<String, String>> xSecurityScopesArray = new ArrayList<>(); for (Scope scope : scopes) { ...
void function(OpenAPI openAPI, SwaggerData swaggerData) { Set<Scope> scopes = swaggerData.getScopes(); if (scopes != null && !scopes.isEmpty()) { List<Map<String, String>> xSecurityScopesArray = new ArrayList<>(); for (Scope scope : scopes) { Map<String, String> xWso2ScopesObject = new LinkedHashMap<>(); xWso2ScopesObj...
/** * Set scopes to the openAPI extension * * @param openAPI OpenAPI object * @param swaggerData Swagger API data */
Set scopes to the openAPI extension
setLegacyScopeExtensionToSwagger
{ "repo_name": "ruks/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/OAS3Parser.java", "license": "apache-2.0", "size": 97505 }
[ "io.swagger.v3.oas.models.OpenAPI", "io.swagger.v3.oas.models.security.Scopes", "java.util.ArrayList", "java.util.LinkedHashMap", "java.util.List", "java.util.Map", "java.util.Set", "org.wso2.carbon.apimgt.api.model.Scope", "org.wso2.carbon.apimgt.api.model.SwaggerData", "org.wso2.carbon.apimgt.im...
import io.swagger.v3.oas.models.OpenAPI; import io.swagger.v3.oas.models.security.Scopes; import java.util.ArrayList; import java.util.LinkedHashMap; import java.util.List; import java.util.Map; import java.util.Set; import org.wso2.carbon.apimgt.api.model.Scope; import org.wso2.carbon.apimgt.api.model.SwaggerData; imp...
import io.swagger.v3.oas.models.*; import io.swagger.v3.oas.models.security.*; import java.util.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.*;
[ "io.swagger.v3", "java.util", "org.wso2.carbon" ]
io.swagger.v3; java.util; org.wso2.carbon;
2,002,885
@Subscribe public void listen(FieldChangedEvent event) { // While synchronizing the local database (see synchronizeLocalDatabase() below), some EntryEvents may be posted. // In this case DBSynchronizer should not try to update the bibEntry entry again (but it would not harm). if (isEvent...
void function(FieldChangedEvent event) { if (isEventSourceAccepted(event) && checkCurrentConnection()) { synchronizeLocalMetaData(); BibEntry bibEntry = event.getBibEntry(); synchronizeSharedEntry(bibEntry); synchronizeLocalDatabase(); } }
/** * Listening method. Updates an existing shared {@link BibEntry}. * @param event {@link FieldChangedEvent} object */
Listening method. Updates an existing shared <code>BibEntry</code>
listen
{ "repo_name": "motokito/jabref", "path": "src/main/java/net/sf/jabref/shared/DBMSSynchronizer.java", "license": "mit", "size": 14647 }
[ "net.sf.jabref.model.entry.BibEntry", "net.sf.jabref.model.event.FieldChangedEvent" ]
import net.sf.jabref.model.entry.BibEntry; import net.sf.jabref.model.event.FieldChangedEvent;
import net.sf.jabref.model.entry.*; import net.sf.jabref.model.event.*;
[ "net.sf.jabref" ]
net.sf.jabref;
2,503,691
public static Element getChild(Element el, String name) { NodeList nodes = el.getElementsByTagName(name); if (nodes.getLength() > 0) { return (Element)nodes.item(0); } else { return null; } }
static Element function(Element el, String name) { NodeList nodes = el.getElementsByTagName(name); if (nodes.getLength() > 0) { return (Element)nodes.item(0); } else { return null; } }
/** * Returns a child element of another element or null if there's no such child. * @param el the parent element * @param name the name of the requested child * @return the child or null if there's no such child */
Returns a child element of another element or null if there's no such child
getChild
{ "repo_name": "apache/xml-graphics-commons", "path": "src/main/java/org/apache/xmlgraphics/image/loader/impl/imageio/ImageIOUtil.java", "license": "apache-2.0", "size": 5040 }
[ "org.w3c.dom.Element", "org.w3c.dom.NodeList" ]
import org.w3c.dom.Element; import org.w3c.dom.NodeList;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
2,558,372
void sendApduExecutionResult(@NonNull final ApduExecutionResult apduExecutionResult);
void sendApduExecutionResult(@NonNull final ApduExecutionResult apduExecutionResult);
/** * send apdu execution result to the server * * @param apduExecutionResult apdu execution result */
send apdu execution result to the server
sendApduExecutionResult
{ "repo_name": "fitpay/fitpay-android-sdk", "path": "fitpay/src/main/java/com/fitpay/android/paymentdevice/interfaces/PaymentDeviceConnectable.java", "license": "mit", "size": 2852 }
[ "androidx.annotation.NonNull", "com.fitpay.android.api.models.apdu.ApduExecutionResult" ]
import androidx.annotation.NonNull; import com.fitpay.android.api.models.apdu.ApduExecutionResult;
import androidx.annotation.*; import com.fitpay.android.api.models.apdu.*;
[ "androidx.annotation", "com.fitpay.android" ]
androidx.annotation; com.fitpay.android;
1,667,994
@Schema(example = "1024", description = "The size in bytes that must be used for all parts of of the upload. Only the last part is allowed to be of a smaller size.") public Long getPartSize() { return partSize; }
@Schema(example = "1024", description = STR) Long function() { return partSize; }
/** * The size in bytes that must be used for all parts of of the upload. Only the last part is allowed to be of a smaller size. * @return partSize **/
The size in bytes that must be used for all parts of of the upload. Only the last part is allowed to be of a smaller size
getPartSize
{ "repo_name": "iterate-ch/cyberduck", "path": "box/src/main/java/ch/cyberduck/core/box/io/swagger/client/model/UploadSession.java", "license": "gpl-3.0", "size": 7856 }
[ "io.swagger.v3.oas.annotations.media.Schema" ]
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.*;
[ "io.swagger.v3" ]
io.swagger.v3;
2,525,420
// ----------------------------------------------------------------- public final DatabaseRegistryEntry[] getAll(final Species species) { List<DatabaseRegistryEntry> result = new ArrayList<DatabaseRegistryEntry>(); Iterator<DatabaseRegistryEntry> it = entries.iterator(); while (it.hasNext()) { DatabaseReg...
final DatabaseRegistryEntry[] function(final Species species) { List<DatabaseRegistryEntry> result = new ArrayList<DatabaseRegistryEntry>(); Iterator<DatabaseRegistryEntry> it = entries.iterator(); while (it.hasNext()) { DatabaseRegistryEntry dbre = it.next(); if (dbre.getSpecies().equals(species)) { result.add(dbre); ...
/** * Get all of the DatabaseRegistryEntries for a particular species * * @param species * The species to look for. * @return The DatabaseRegistryEntries for species.. */
Get all of the DatabaseRegistryEntries for a particular species
getAll
{ "repo_name": "dbolser-ebi/ensj-healthcheck", "path": "src/org/ensembl/healthcheck/DatabaseRegistry.java", "license": "apache-2.0", "size": 12744 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,205,981
@SuppressWarnings("static-method") protected boolean onBusItineraryHaltAdded(BusItineraryHalt halt, int index, BusChangeEvent event) { return false; }
@SuppressWarnings(STR) boolean function(BusItineraryHalt halt, int index, BusChangeEvent event) { return false; }
/** Invoked when a bus itinerary halt was added in the attached itinerary. * * <p>This function exists to allow be override to provide a specific behaviour * when a bus itinerary halt has been added. * * @param halt is the new itinerary halt. * @param index is the index of the bus halt. * @param event is ...
Invoked when a bus itinerary halt was added in the attached itinerary. This function exists to allow be override to provide a specific behaviour when a bus itinerary halt has been added
onBusItineraryHaltAdded
{ "repo_name": "gallandarakhneorg/afc", "path": "advanced/gis/gisbus/src/main/java/org/arakhne/afc/gis/bus/layer/BusItineraryLayer.java", "license": "apache-2.0", "size": 14034 }
[ "org.arakhne.afc.gis.bus.network.BusChangeEvent", "org.arakhne.afc.gis.bus.network.BusItineraryHalt" ]
import org.arakhne.afc.gis.bus.network.BusChangeEvent; import org.arakhne.afc.gis.bus.network.BusItineraryHalt;
import org.arakhne.afc.gis.bus.network.*;
[ "org.arakhne.afc" ]
org.arakhne.afc;
2,323,701
//// -- GENERAL SHORT ROUTINES -- //// public static ShortBuffer createShortBuffer(int size) { ShortBuffer buf = allocator.allocate(2 * size).order(ByteOrder.nativeOrder()).asShortBuffer(); buf.clear(); onBufferAllocated(buf); return buf; }
static ShortBuffer function(int size) { ShortBuffer buf = allocator.allocate(2 * size).order(ByteOrder.nativeOrder()).asShortBuffer(); buf.clear(); onBufferAllocated(buf); return buf; }
/** * Create a new ShortBuffer of the specified size. * * @param size * required number of shorts to store. * @return the new ShortBuffer */
Create a new ShortBuffer of the specified size
createShortBuffer
{ "repo_name": "zzuegg/jmonkeyengine", "path": "jme3-core/src/main/java/com/jme3/util/BufferUtils.java", "license": "bsd-3-clause", "size": 46413 }
[ "java.nio.ByteOrder", "java.nio.ShortBuffer" ]
import java.nio.ByteOrder; import java.nio.ShortBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,546,720
public void testAuthenticationException02() { AuthenticationException tE; for (int i = 0; i < msgs.length; i++) { tE = new AuthenticationException(msgs[i]); assertEquals("getMessage() must return: ".concat(msgs[i]), tE .getMessage(), msgs[i]); ...
void function() { AuthenticationException tE; for (int i = 0; i < msgs.length; i++) { tE = new AuthenticationException(msgs[i]); assertEquals(STR.concat(msgs[i]), tE .getMessage(), msgs[i]); assertNull(STR, tE.getCause()); } }
/** * Test for <code>AuthenticationException(String detail)</code> constructor * Assertion: * constructs AuthenticationException with defined detail message. * Parameter <code>detail</code> is not null. */
Test for <code>AuthenticationException(String detail)</code> constructor Assertion: constructs AuthenticationException with defined detail message. Parameter <code>detail</code> is not null
testAuthenticationException02
{ "repo_name": "freeVM/freeVM", "path": "enhanced/archive/classlib/java6/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/AuthenticationExceptionTest.java", "license": "apache-2.0", "size": 7268 }
[ "javax.security.sasl.AuthenticationException" ]
import javax.security.sasl.AuthenticationException;
import javax.security.sasl.*;
[ "javax.security" ]
javax.security;
1,018,972
private Binding getBinding3 (EClass clazz, List<Binding> bindings, List<? extends VariableDeclaration> ivariables) { for (EStructuralFeature feature : clazz.getEAllStructuralFeatures()) { if ( !hasPrimitiveType(feature) && !bindings.stream().anyMatch( b -> b.getPropertyName().equals(feature.getName())) ) { ...
Binding function (EClass clazz, List<Binding> bindings, List<? extends VariableDeclaration> ivariables) { for (EStructuralFeature feature : clazz.getEAllStructuralFeatures()) { if ( !hasPrimitiveType(feature) && !bindings.stream().anyMatch( b -> b.getPropertyName().equals(feature.getName())) ) { String propertyName = f...
/** * It returns a non-duplicate binding with non-primitive type and correct value. * @param clazz out class for binding * @param bindings list of bindings defined for the our class * @param ivariables input variable declarations */
It returns a non-duplicate binding with non-primitive type and correct value
getBinding3
{ "repo_name": "jesusc/anatlyzer", "path": "evaluation/anatlyzer.evaluation.mutants/src/anatlyzer/evaluation/mutators/creation/BindingCreationMutator.java", "license": "epl-1.0", "size": 11796 }
[ "java.util.List", "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EStructuralFeature" ]
import java.util.List; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EStructuralFeature;
import java.util.*; import org.eclipse.emf.ecore.*;
[ "java.util", "org.eclipse.emf" ]
java.util; org.eclipse.emf;
1,053,359
public IPreparedTupleQuery prepareTupleQuery(final String query) throws Exception { return prepareTupleQuery(query, UUID.randomUUID()); }
IPreparedTupleQuery function(final String query) throws Exception { return prepareTupleQuery(query, UUID.randomUUID()); }
/** * Prepare a tuple (select) query. * * @param query * the query string * * @return The {@link IPreparedTupleQuery}. */
Prepare a tuple (select) query
prepareTupleQuery
{ "repo_name": "blazegraph/database", "path": "bigdata-client/src/main/java/com/bigdata/rdf/sail/webapp/client/RemoteRepository.java", "license": "gpl-2.0", "size": 44345 }
[ "java.util.UUID" ]
import java.util.UUID;
import java.util.*;
[ "java.util" ]
java.util;
2,886,084
@Override public void initialize() { mainPanel = Forms.panel(); FormLayout layout = new FormLayout(); layout.setLabelWidth(LABEL_WIDTH); mainPanel.setLayout(layout); nameField = new TextField<String>(); nameField.setFieldLabel(I18N.CONSTANTS.importVariableName()); nameField.setAllowBlank(false); ...
void function() { mainPanel = Forms.panel(); FormLayout layout = new FormLayout(); layout.setLabelWidth(LABEL_WIDTH); mainPanel.setLayout(layout); nameField = new TextField<String>(); nameField.setFieldLabel(I18N.CONSTANTS.importVariableName()); nameField.setAllowBlank(false); referenceField = new TextField<String>(); ...
/** * init panel */
init panel
initialize
{ "repo_name": "Raphcal/sigmah", "path": "src/main/java/org/sigmah/client/ui/view/admin/importation/AddVariableImporationSchemeView.java", "license": "gpl-3.0", "size": 3452 }
[ "com.extjs.gxt.ui.client.widget.button.Button", "com.extjs.gxt.ui.client.widget.form.TextField", "com.extjs.gxt.ui.client.widget.layout.FormLayout", "org.sigmah.client.ui.res.icon.IconImageBundle", "org.sigmah.client.ui.widget.form.Forms" ]
import com.extjs.gxt.ui.client.widget.button.Button; import com.extjs.gxt.ui.client.widget.form.TextField; import com.extjs.gxt.ui.client.widget.layout.FormLayout; import org.sigmah.client.ui.res.icon.IconImageBundle; import org.sigmah.client.ui.widget.form.Forms;
import com.extjs.gxt.ui.client.widget.button.*; import com.extjs.gxt.ui.client.widget.form.*; import com.extjs.gxt.ui.client.widget.layout.*; import org.sigmah.client.ui.res.icon.*; import org.sigmah.client.ui.widget.form.*;
[ "com.extjs.gxt", "org.sigmah.client" ]
com.extjs.gxt; org.sigmah.client;
258,096
void onRemoteDescription(final SessionDescription sdp);
void onRemoteDescription(final SessionDescription sdp);
/** * Callback fired once remote SDP is received. */
Callback fired once remote SDP is received
onRemoteDescription
{ "repo_name": "googlesamples/glass-enterprise-samples", "path": "WebRTCSample/app/src/org/appspot/apprtcstandalone/AppRTCClient.java", "license": "apache-2.0", "size": 4074 }
[ "org.webrtc.SessionDescription" ]
import org.webrtc.SessionDescription;
import org.webrtc.*;
[ "org.webrtc" ]
org.webrtc;
457,200
public Subsystem[] getBeamlines() { return beamlines.toArray(new Subsystem[beamlines.size()]); }
Subsystem[] function() { return beamlines.toArray(new Subsystem[beamlines.size()]); }
/** * Returns the array of all beamlines in this section. * * @return the array of beamlines */
Returns the array of all beamlines in this section
getBeamlines
{ "repo_name": "EuropeanSpallationSource/openxal", "path": "extensions/tracewin/src/main/java/xal/extension/tracewinimporter/parser/Section.java", "license": "bsd-3-clause", "size": 5859 }
[ "eu.ess.bled.Subsystem" ]
import eu.ess.bled.Subsystem;
import eu.ess.bled.*;
[ "eu.ess.bled" ]
eu.ess.bled;
1,250,851
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<ApiManagementServiceResourceInner> backupAsync( String resourceGroupName, String serviceName, ApiManagementServiceBackupRestoreParameters parameters, Context context) { return beginBackupAsync(resourceGroupName, ser...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<ApiManagementServiceResourceInner> function( String resourceGroupName, String serviceName, ApiManagementServiceBackupRestoreParameters parameters, Context context) { return beginBackupAsync(resourceGroupName, serviceName, parameters, context) .last() .flatMap(this.client...
/** * Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation * and could take several minutes to complete. * * @param resourceGroupName The name of the resource group. * @param serviceName The name of the API Management service. * ...
Creates a backup of the API Management service to the given Azure Storage Account. This is long running operation and could take several minutes to complete
backupAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/implementation/ApiManagementServicesClientImpl.java", "license": "mit", "size": 156165 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.util.Context", "com.azure.resourcemanager.apimanagement.fluent.models.ApiManagementServiceResourceInner", "com.azure.resourcemanager.apimanagement.models.ApiManagementServiceBackupRestoreParameters" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.util.Context; import com.azure.resourcemanager.apimanagement.fluent.models.ApiManagementServiceResourceInner; import com.azure.resourcemanager.apimanagement.models.ApiManagementServiceBackupRestoreParamete...
import com.azure.core.annotation.*; import com.azure.core.util.*; import com.azure.resourcemanager.apimanagement.fluent.models.*; import com.azure.resourcemanager.apimanagement.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
89,464
public void setValueAt(Object aValue, int rowIndex, int columnIndex, boolean notify) { int type; int index; String tmp; Instance inst; Attribute att; Object oldValue; if (!m_IgnoreChanges) addUndoPoint(); oldValue = getVa...
void function(Object aValue, int rowIndex, int columnIndex, boolean notify) { int type; int index; String tmp; Instance inst; Attribute att; Object oldValue; if (!m_IgnoreChanges) addUndoPoint(); oldValue = getValueAt(rowIndex, columnIndex); type = getType(rowIndex, columnIndex); index = columnIndex - 1; inst = m_Data....
/** * sets the value in the cell at columnIndex and rowIndex to aValue. * but only the value and the value can be changed * * @param aValue the new value * @param rowIndex the row index * @param columnIndex the column index * @param notify whether to notify the listeners */
sets the value in the cell at columnIndex and rowIndex to aValue. but only the value and the value can be changed
setValueAt
{ "repo_name": "dsibournemouth/autoweka", "path": "weka-3.7.7/src/main/java/weka/gui/arffviewer/ArffTableModel.java", "license": "gpl-3.0", "size": 26497 }
[ "javax.swing.event.TableModelEvent" ]
import javax.swing.event.TableModelEvent;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
2,326,413
void start(final ChannelHandlerContext ctx) { goAway( ctx, Integer.MAX_VALUE, Http2Error.NO_ERROR.code(), ByteBufUtil.writeAscii(ctx.alloc(), goAwayMessage), ctx.newPromise());
void start(final ChannelHandlerContext ctx) { goAway( ctx, Integer.MAX_VALUE, Http2Error.NO_ERROR.code(), ByteBufUtil.writeAscii(ctx.alloc(), goAwayMessage), ctx.newPromise());
/** * Sends out first GOAWAY and ping, and schedules second GOAWAY and close. */
Sends out first GOAWAY and ping, and schedules second GOAWAY and close
start
{ "repo_name": "ejona86/grpc-java", "path": "netty/src/main/java/io/grpc/netty/NettyServerHandler.java", "license": "apache-2.0", "size": 40849 }
[ "io.netty.buffer.ByteBufUtil", "io.netty.channel.ChannelHandlerContext", "io.netty.handler.codec.http2.Http2Error" ]
import io.netty.buffer.ByteBufUtil; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.http2.Http2Error;
import io.netty.buffer.*; import io.netty.channel.*; import io.netty.handler.codec.http2.*;
[ "io.netty.buffer", "io.netty.channel", "io.netty.handler" ]
io.netty.buffer; io.netty.channel; io.netty.handler;
940,670
public static void removeNumViews(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) { Base.remove(model, instanceResource, NUMVIEWS, value); }
static void function(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) { Base.remove(model, instanceResource, NUMVIEWS, value); }
/** * Removes a value of property NumViews given as an instance of * java.lang.Integer * * @param model * an RDF2Go model * @param resource * an RDF2Go resource * @param value * the value to be removed * * [Generated fr...
Removes a value of property NumViews given as an instance of java.lang.Integer
removeNumViews
{ "repo_name": "m0ep/master-thesis", "path": "source/apis/rdf2go/rdf2go-sioc/src/main/java/org/rdfs/sioc/Thing.java", "license": "mit", "size": 317844 }
[ "org.ontoware.rdf2go.model.Model", "org.ontoware.rdfreactor.runtime.Base" ]
import org.ontoware.rdf2go.model.Model; import org.ontoware.rdfreactor.runtime.Base;
import org.ontoware.rdf2go.model.*; import org.ontoware.rdfreactor.runtime.*;
[ "org.ontoware.rdf2go", "org.ontoware.rdfreactor" ]
org.ontoware.rdf2go; org.ontoware.rdfreactor;
1,083,916
Function<byte[], T> getTransformer();
Function<byte[], T> getTransformer();
/** * Implement this to define how decrypted content is deserialised into domain objects. * * @return a method for converting the decrypted payload into a domain object */
Implement this to define how decrypted content is deserialised into domain objects
getTransformer
{ "repo_name": "l0s/fernet-java8", "path": "fernet-java8/src/main/java/com/macasaet/fernet/Validator.java", "license": "apache-2.0", "size": 5760 }
[ "java.util.function.Function" ]
import java.util.function.Function;
import java.util.function.*;
[ "java.util" ]
java.util;
2,118,389
protected Object extractValue(AnnotationAttributes attr) { Object value = attr.get(AnnotationUtils.VALUE); if (value == null) { throw new IllegalStateException("Value annotation must have a value attribute"); } return value; }
Object function(AnnotationAttributes attr) { Object value = attr.get(AnnotationUtils.VALUE); if (value == null) { throw new IllegalStateException(STR); } return value; }
/** * Extract the value attribute from the given annotation. * @since 4.3 */
Extract the value attribute from the given annotation
extractValue
{ "repo_name": "shivpun/spring-framework", "path": "spring-beans/src/main/java/org/springframework/beans/factory/annotation/QualifierAnnotationAutowireCandidateResolver.java", "license": "apache-2.0", "size": 12764 }
[ "org.springframework.core.annotation.AnnotationAttributes", "org.springframework.core.annotation.AnnotationUtils" ]
import org.springframework.core.annotation.AnnotationAttributes; import org.springframework.core.annotation.AnnotationUtils;
import org.springframework.core.annotation.*;
[ "org.springframework.core" ]
org.springframework.core;
922,701
@Override public void add(SpecSection specElem) { if (!(specElem instanceof SpecIdentifiableElementSection)) return; SpecIdentifiableElementSection specIE = (SpecIdentifiableElementSection) specElem; EObject container = specIE.idElement.eContainer(); if (container instanceof Type) { addTypeElement((...
void function(SpecSection specElem) { if (!(specElem instanceof SpecIdentifiableElementSection)) return; SpecIdentifiableElementSection specIE = (SpecIdentifiableElementSection) specElem; EObject container = specIE.idElement.eContainer(); if (container instanceof Type) { addTypeElement((Type) container, specIE); return...
/** * Adds another region change entry to this file. */
Adds another region change entry to this file
add
{ "repo_name": "lbeurerkellner/n4js", "path": "plugins/org.eclipse.n4js.jsdoc2spec/src/org/eclipse/n4js/jsdoc2spec/adoc/SpecModuleFile.java", "license": "epl-1.0", "size": 10695 }
[ "org.eclipse.emf.ecore.EObject", "org.eclipse.n4js.ts.types.TFunction", "org.eclipse.n4js.ts.types.TVariable", "org.eclipse.n4js.ts.types.Type" ]
import org.eclipse.emf.ecore.EObject; import org.eclipse.n4js.ts.types.TFunction; import org.eclipse.n4js.ts.types.TVariable; import org.eclipse.n4js.ts.types.Type;
import org.eclipse.emf.ecore.*; import org.eclipse.n4js.ts.types.*;
[ "org.eclipse.emf", "org.eclipse.n4js" ]
org.eclipse.emf; org.eclipse.n4js;
677,685
public Filter punctuationTagAcceptFilter() { return punctTagStringAcceptFilter; }
Filter function() { return punctTagStringAcceptFilter; }
/** * Return a filter that accepts a String that is a punctuation tag name, and * rejects everything else. * * @return The filter */
Return a filter that accepts a String that is a punctuation tag name, and rejects everything else
punctuationTagAcceptFilter
{ "repo_name": "text-machine-lab/CliRel", "path": "model/kim/berkeleyparser/src/edu/berkeley/nlp/treebank/AbstractTreebankLanguagePack.java", "license": "apache-2.0", "size": 11697 }
[ "edu.berkeley.nlp.util.Filter" ]
import edu.berkeley.nlp.util.Filter;
import edu.berkeley.nlp.util.*;
[ "edu.berkeley.nlp" ]
edu.berkeley.nlp;
1,375,709
public NotificationEventTypeEntity getNotificationEventTypeEntity(String code) throws ObjectNotFoundException { NotificationEventTypeEntity notificationEventTypeEntity = notificationEventTypeDao.getNotificationEventTypeByCode(code); if (notificationEventTypeEntity == null) { ...
NotificationEventTypeEntity function(String code) throws ObjectNotFoundException { NotificationEventTypeEntity notificationEventTypeEntity = notificationEventTypeDao.getNotificationEventTypeByCode(code); if (notificationEventTypeEntity == null) { throw new ObjectNotFoundException(String.format(STR%s\STR, code)); } retu...
/** * Gets the notification event type entity and ensure it exists. * * @param code the notification event type code (case insensitive) * * @return the notification event type entity * @throws ObjectNotFoundException if the entity doesn't exist */
Gets the notification event type entity and ensure it exists
getNotificationEventTypeEntity
{ "repo_name": "FINRAOS/herd", "path": "herd-code/herd-service/src/main/java/org/finra/herd/service/helper/NotificationEventTypeDaoHelper.java", "license": "apache-2.0", "size": 1913 }
[ "org.finra.herd.model.ObjectNotFoundException", "org.finra.herd.model.jpa.NotificationEventTypeEntity" ]
import org.finra.herd.model.ObjectNotFoundException; import org.finra.herd.model.jpa.NotificationEventTypeEntity;
import org.finra.herd.model.*; import org.finra.herd.model.jpa.*;
[ "org.finra.herd" ]
org.finra.herd;
2,613,567
EList<Transition> getTransition();
EList<Transition> getTransition();
/** * Returns the value of the '<em><b>Transition</b></em>' containment reference list. * The list contents are of type {@link klaper.core.Transition}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Transition</em>' containment reference list isn't clear, * there really should be more of a des...
Returns the value of the 'Transition' containment reference list. The list contents are of type <code>klaper.core.Transition</code>. If the meaning of the 'Transition' containment reference list isn't clear, there really should be more of a description here...
getTransition
{ "repo_name": "aciancone/klapersuite", "path": "klapersuite.metamodel.klaper/src/klaper/core/Behavior.java", "license": "epl-1.0", "size": 1799 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
849,547
@Override public void run() { InternalDistributedSystem ids = cache.getInternalDistributedSystem(); DM dm = ids.getDistributionManager(); try { // ensure exit message is printed // Long waitTime = Long.getLong(QUEUE_REMOVAL_WAIT_TIME, 1000); for (;;) { try { // be so...
void function() { InternalDistributedSystem ids = cache.getInternalDistributedSystem(); DM dm = ids.getDistributionManager(); try { for (;;) { try { if (checkCancelled()) { break; } boolean interrupted = Thread.interrupted(); try { synchronized (this) { this.wait(messageSyncInterval * 1000); } } catch (InterruptedExcep...
/** * The thread will check the dispatchedMessages map for messages that have been dispatched. It * will create a new {@code QueueRemovalMessage} and send it to the other nodes */
The thread will check the dispatchedMessages map for messages that have been dispatched. It will create a new QueueRemovalMessage and send it to the other nodes
run
{ "repo_name": "charliemblack/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/ha/HARegionQueue.java", "license": "apache-2.0", "size": 141169 }
[ "java.util.LinkedList", "java.util.List", "org.apache.geode.CancelException", "org.apache.geode.SystemFailure", "org.apache.geode.cache.server.CacheServer", "org.apache.geode.distributed.DistributedMember", "org.apache.geode.distributed.internal.InternalDistributedSystem", "org.apache.geode.internal.c...
import java.util.LinkedList; import java.util.List; import org.apache.geode.CancelException; import org.apache.geode.SystemFailure; import org.apache.geode.cache.server.CacheServer; import org.apache.geode.distributed.DistributedMember; import org.apache.geode.distributed.internal.InternalDistributedSystem; import org....
import java.util.*; import org.apache.geode.*; import org.apache.geode.cache.server.*; import org.apache.geode.distributed.*; import org.apache.geode.distributed.internal.*; import org.apache.geode.internal.cache.*; import org.apache.geode.internal.i18n.*; import org.apache.geode.internal.logging.log4j.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
1,854,766