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
@Override public Dimension getMinimumSize(){ return getPreferredSize(); }
Dimension function(){ return getPreferredSize(); }
/** * Gives the minimum size of the component */
Gives the minimum size of the component
getMinimumSize
{ "repo_name": "ingolfured/StatAlign", "path": "src/statalign/postprocess/gui/CNetworkView.java", "license": "gpl-3.0", "size": 7088 }
[ "java.awt.Dimension" ]
import java.awt.Dimension;
import java.awt.*;
[ "java.awt" ]
java.awt;
38,448
public boolean run(DatabaseRegistryEntry dbre) { boolean result = true; if (dbre.getType() == DatabaseType.CORE) { result &= checkGrouping(dbre); } return result; }
boolean function(DatabaseRegistryEntry dbre) { boolean result = true; if (dbre.getType() == DatabaseType.CORE) { result &= checkGrouping(dbre); } return result; }
/** * Run the test. * * @param dbre * The database to use. * @return true if the test passed. * */
Run the test
run
{ "repo_name": "thomasmaurel/ensj-healthcheck", "path": "src/org/ensembl/healthcheck/testcase/generic/BiotypeGroups.java", "license": "apache-2.0", "size": 12438 }
[ "org.ensembl.healthcheck.DatabaseRegistryEntry", "org.ensembl.healthcheck.DatabaseType" ]
import org.ensembl.healthcheck.DatabaseRegistryEntry; import org.ensembl.healthcheck.DatabaseType;
import org.ensembl.healthcheck.*;
[ "org.ensembl.healthcheck" ]
org.ensembl.healthcheck;
2,245,211
ImportedServiceDeclaration importedServices( Specification<? super ImportedServiceAssembly> specification );
ImportedServiceDeclaration importedServices( Specification<? super ImportedServiceAssembly> specification );
/** * Given a Specification for ImportedServiceAssembly's, returns a ImportedServiceDeclaration that can * be used to work with all of the assemblies matched by the specification. * * @param specification The Specification that specifies the Imported Service types of interest. * * @return ...
Given a Specification for ImportedServiceAssembly's, returns a ImportedServiceDeclaration that can be used to work with all of the assemblies matched by the specification
importedServices
{ "repo_name": "joobn72/qi4j-sdk", "path": "core/bootstrap/src/main/java/org/qi4j/bootstrap/ModuleAssembly.java", "license": "apache-2.0", "size": 8690 }
[ "org.qi4j.functional.Specification" ]
import org.qi4j.functional.Specification;
import org.qi4j.functional.*;
[ "org.qi4j.functional" ]
org.qi4j.functional;
2,081,831
@ServiceMethod(returns = ReturnType.SINGLE) public AreaCodes getAllAreaCodes( String locationType, String countryCode, String phonePlanId, List<LocationOptionsQuery> locationOptions) { return phoneNumberAsyncClient.getAllAreaCodes(locationType, countryCode, phonePlanId, locationOptions).block();...
@ServiceMethod(returns = ReturnType.SINGLE) AreaCodes function( String locationType, String countryCode, String phonePlanId, List<LocationOptionsQuery> locationOptions) { return phoneNumberAsyncClient.getAllAreaCodes(locationType, countryCode, phonePlanId, locationOptions).block(); }
/** * Gets a list of the supported area codes. * * @param locationType The type of location information required by the plan. * @param countryCode The ISO 3166-2 country code. * @param phonePlanId The plan id from which to search area codes. * @param locationOptions A {@link List} of {@lin...
Gets a list of the supported area codes
getAllAreaCodes
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/communication/azure-communication-administration/src/main/java/com/azure/communication/administration/PhoneNumberClient.java", "license": "mit", "size": 25035 }
[ "com.azure.communication.administration.models.AreaCodes", "com.azure.communication.administration.models.LocationOptionsQuery", "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "java.util.List" ]
import com.azure.communication.administration.models.AreaCodes; import com.azure.communication.administration.models.LocationOptionsQuery; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import java.util.List;
import com.azure.communication.administration.models.*; import com.azure.core.annotation.*; import java.util.*;
[ "com.azure.communication", "com.azure.core", "java.util" ]
com.azure.communication; com.azure.core; java.util;
649,116
private void doOnProcessorChange(List<String> currentProcessorIds) { // if list of processors is empty - it means we are called from 'onBecomeLeader' // Check if number of processors is greater than number of tasks List<String> initialProcessorIds = new ArrayList<>(currentProcessorIds); int numTasks ...
void function(List<String> currentProcessorIds) { List<String> initialProcessorIds = new ArrayList<>(currentProcessorIds); int numTasks = getMaxNumTasks(); if (currentProcessorIds.size() > numTasks) { int iterator = 0; while (currentProcessorIds.size() != numTasks) { if (!currentProcessorIds.get(iterator).equals(proces...
/** * Called only by the leader, either when the processor becomes the leader, or when the list of live processors changes. * @param currentProcessorIds New updated list of processor IDs which caused the rebalancing. */
Called only by the leader, either when the processor becomes the leader, or when the list of live processors changes
doOnProcessorChange
{ "repo_name": "abhishekshivanna/samza", "path": "samza-azure/src/main/java/org/apache/samza/coordinator/AzureJobCoordinator.java", "license": "apache-2.0", "size": 22060 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List", "java.util.concurrent.atomic.AtomicBoolean", "org.apache.samza.container.grouper.task.GrouperMetadata", "org.apache.samza.container.grouper.task.GrouperMetadataImpl", "org.apache.samza.coordinator.data.BarrierState", "org.apache.samza.c...
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.concurrent.atomic.AtomicBoolean; import org.apache.samza.container.grouper.task.GrouperMetadata; import org.apache.samza.container.grouper.task.GrouperMetadataImpl; import org.apache.samza.coordinator.data.BarrierState; im...
import java.util.*; import java.util.concurrent.atomic.*; import org.apache.samza.container.grouper.task.*; import org.apache.samza.coordinator.data.*; import org.apache.samza.coordinator.scheduler.*; import org.apache.samza.job.model.*;
[ "java.util", "org.apache.samza" ]
java.util; org.apache.samza;
53,984
void onMethodsDesc(final String methDesc) { // Process method return type: onType(Type.getReturnType(methDesc)); if (found) return; // Process method argument types: for (Type t: Type.getArgumentTypes(methDesc)) { onTy...
void onMethodsDesc(final String methDesc) { onType(Type.getReturnType(methDesc)); if (found) return; for (Type t: Type.getArgumentTypes(methDesc)) { onType(t); if (found) return; } }
/** * Processes a method descriptor * @param methDesc The method desc String. */
Processes a method descriptor
onMethodsDesc
{ "repo_name": "kromulan/ignite", "path": "modules/hadoop/src/main/java/org/apache/ignite/internal/processors/hadoop/HadoopClassLoader.java", "license": "apache-2.0", "size": 28939 }
[ "org.objectweb.asm.Type" ]
import org.objectweb.asm.Type;
import org.objectweb.asm.*;
[ "org.objectweb.asm" ]
org.objectweb.asm;
2,474,225
public boolean onTouchEvent(MotionEvent ev) { boolean handled = false; final int action = ev.getAction(); //dumpEvent(ev); switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: if (mCurrentDownEvent != null) mCurrentD...
boolean function(MotionEvent ev) { boolean handled = false; final int action = ev.getAction(); switch (action & MotionEvent.ACTION_MASK) { case MotionEvent.ACTION_DOWN: if (mCurrentDownEvent != null) mCurrentDownEvent.recycle(); mCurrentMode = MODE_UNKNOWN; mCurrentDownEvent = MotionEvent.obtain(ev); mCancelDetection =...
/** * Analyzes the given motion event and if applicable triggers the * appropriate callbacks on the {@link OnGestureListener} supplied. * * @param ev The current motion event. * @return true if the {@link OnGestureListener} consumed the event, * else false. */
Analyzes the given motion event and if applicable triggers the appropriate callbacks on the <code>OnGestureListener</code> supplied
onTouchEvent
{ "repo_name": "woshipike00/FreeRDP", "path": "client/Android/FreeRDPCore/src/com/freerdp/freerdpcore/utils/DoubleGestureDetector.java", "license": "apache-2.0", "size": 12416 }
[ "android.view.MotionEvent" ]
import android.view.MotionEvent;
import android.view.*;
[ "android.view" ]
android.view;
180,645
public static final byte[] decodeQuotedPrintable(final byte[] bytes) throws DecoderException { if (bytes == null) { return null; } final ByteArrayOutputStream buffer = new ByteArrayOutputStream(); for (int i = 0; i < bytes.length; i++) { final int b = bytes[i]...
static final byte[] function(final byte[] bytes) throws DecoderException { if (bytes == null) { return null; } final ByteArrayOutputStream buffer = new ByteArrayOutputStream(); for (int i = 0; i < bytes.length; i++) { final int b = bytes[i]; if (b == ESCAPE_CHAR) { try { if (bytes[++i] == CR) { continue; } final int u ...
/** * Decodes an array quoted-printable characters into an array of original bytes. Escaped characters are converted * back to their original representation. * <p> * This function fully implements the quoted-printable encoding specification (rule #1 through rule #5) as * defined in RFC 1521. ...
Decodes an array quoted-printable characters into an array of original bytes. Escaped characters are converted back to their original representation. This function fully implements the quoted-printable encoding specification (rule #1 through rule #5) as defined in RFC 1521
decodeQuotedPrintable
{ "repo_name": "Szperak/bytecode-viewer", "path": "src/org/apache/commons/codec/net/QuotedPrintableCodec.java", "license": "gpl-3.0", "size": 23130 }
[ "java.io.ByteArrayOutputStream", "org.apache.commons.codec.DecoderException" ]
import java.io.ByteArrayOutputStream; import org.apache.commons.codec.DecoderException;
import java.io.*; import org.apache.commons.codec.*;
[ "java.io", "org.apache.commons" ]
java.io; org.apache.commons;
971,378
// // Data Access // public Map<String, Parameter<?>> getAccessParameterInfo(CoverageAccess.AccessType accessType);
Map<String, Parameter<?>> function(CoverageAccess.AccessType accessType);
/** * Describes the required (and optional) parameters that can be used to open a {@link * CoverageSource}. * * <p> * * @return Param a {@link Map} describing the {@link Map} for {@link #connect(Map)}. */
Describes the required (and optional) parameters that can be used to open a <code>CoverageSource</code>.
getAccessParameterInfo
{ "repo_name": "geotools/geotools", "path": "modules/plugin/coverage-multidim/coverage-api/src/main/java/org/geotools/coverage/io/CoverageAccess.java", "license": "lgpl-2.1", "size": 9043 }
[ "java.util.Map", "org.geotools.data.Parameter" ]
import java.util.Map; import org.geotools.data.Parameter;
import java.util.*; import org.geotools.data.*;
[ "java.util", "org.geotools.data" ]
java.util; org.geotools.data;
326,901
private void makeHeader() { List<String[]> contents = new ArrayList<>(); int i = 0; while(i++ < fence) { String[] h = it.next(); contents.add(h); } this.header = new BatchedCsvHeader(contents, fence); if(LOGGER.isDebugEnabled(...
void function() { List<String[]> contents = new ArrayList<>(); int i = 0; while(i++ < fence) { String[] h = it.next(); contents.add(h); } this.header = new BatchedCsvHeader(contents, fence); if(LOGGER.isDebugEnabled()) { LOGGER.debug(STR); for(String[] h : contents) { LOGGER.debug("\t" + Arrays.toString(h)); } LOGGER.d...
/** * Called internally to create this csv stream's header */
Called internally to create this csv stream's header
makeHeader
{ "repo_name": "gamahead/htm.java", "path": "src/main/java/org/numenta/nupic/network/sensor/BatchedCsvStream.java", "license": "agpl-3.0", "size": 28398 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List" ]
import java.util.ArrayList; import java.util.Arrays; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
610,772
private void convertUnit(MonographUnit unit, boolean parentVisibility) throws ServiceException { String title = first((unit.getTitle() == null || unit.getTitle().getMainTitle() == null) ? null : unit.getTitle().getMainTitle().getContent()); if (unit.getUniqueIdentifier() == null) { un...
void function(MonographUnit unit, boolean parentVisibility) throws ServiceException { String title = first((unit.getTitle() == null unit.getTitle().getMainTitle() == null) ? null : unit.getTitle().getMainTitle().getContent()); if (unit.getUniqueIdentifier() == null) { unit.setUniqueIdentifier(new UniqueIdentifier()); }...
/** * Konvertuje monograph unit do foxml * * @param unit * @param monograph * @param prefix * @param foxmlMono * @throws ServiceException */
Konvertuje monograph unit do foxml
convertUnit
{ "repo_name": "ceskaexpedice/kramerius", "path": "processes/import-mets/src/main/java/org/kramerius/importmets/convertor/MonographConvertor.java", "license": "gpl-3.0", "size": 20487 }
[ "com.qbizm.kramerius.imp.jaxb.monograph.Language", "com.qbizm.kramerius.imp.jaxb.monograph.MonographComponentPart", "com.qbizm.kramerius.imp.jaxb.monograph.MonographPage", "com.qbizm.kramerius.imp.jaxb.monograph.MonographUnit", "com.qbizm.kramerius.imp.jaxb.monograph.MonographUnitRepresentation", "com.qbi...
import com.qbizm.kramerius.imp.jaxb.monograph.Language; import com.qbizm.kramerius.imp.jaxb.monograph.MonographComponentPart; import com.qbizm.kramerius.imp.jaxb.monograph.MonographPage; import com.qbizm.kramerius.imp.jaxb.monograph.MonographUnit; import com.qbizm.kramerius.imp.jaxb.monograph.MonographUnitRepresentatio...
import com.qbizm.kramerius.imp.jaxb.monograph.*; import java.util.*; import org.kramerius.importmets.valueobj.*;
[ "com.qbizm.kramerius", "java.util", "org.kramerius.importmets" ]
com.qbizm.kramerius; java.util; org.kramerius.importmets;
1,857,637
private static TempFile createSingleColumnVarcharFile(int count, int length) throws Exception { Serializer serde = new OrcSerde(); TempFile tempFile = new TempFile(); FileSinkOperator.RecordWriter writer = createOrcRecordWriter(tempFile.getFile(), ORC_12, CompressionKind.NONE...
static TempFile function(int count, int length) throws Exception { Serializer serde = new OrcSerde(); TempFile tempFile = new TempFile(); FileSinkOperator.RecordWriter writer = createOrcRecordWriter(tempFile.getFile(), ORC_12, CompressionKind.NONE, VARCHAR); SettableStructObjectInspector objectInspector = createSettabl...
/** * Write a file that contains a number of rows with 1 VARCHAR column, and all values are not null. */
Write a file that contains a number of rows with 1 VARCHAR column, and all values are not null
createSingleColumnVarcharFile
{ "repo_name": "Yaliang/presto", "path": "presto-orc/src/test/java/com/facebook/presto/orc/TestOrcReaderMemoryUsage.java", "license": "apache-2.0", "size": 14964 }
[ "com.facebook.presto.orc.OrcTester", "com.facebook.presto.orc.metadata.CompressionKind", "com.google.common.base.Strings", "org.apache.hadoop.hive.ql.exec.FileSinkOperator", "org.apache.hadoop.hive.ql.io.orc.OrcSerde", "org.apache.hadoop.hive.serde2.Serializer", "org.apache.hadoop.hive.serde2.objectinsp...
import com.facebook.presto.orc.OrcTester; import com.facebook.presto.orc.metadata.CompressionKind; import com.google.common.base.Strings; import org.apache.hadoop.hive.ql.exec.FileSinkOperator; import org.apache.hadoop.hive.ql.io.orc.OrcSerde; import org.apache.hadoop.hive.serde2.Serializer; import org.apache.hadoop.hi...
import com.facebook.presto.orc.*; import com.facebook.presto.orc.metadata.*; import com.google.common.base.*; import org.apache.hadoop.hive.ql.exec.*; import org.apache.hadoop.hive.ql.io.orc.*; import org.apache.hadoop.hive.serde2.*; import org.apache.hadoop.hive.serde2.objectinspector.*; import org.apache.hadoop.io.*;
[ "com.facebook.presto", "com.google.common", "org.apache.hadoop" ]
com.facebook.presto; com.google.common; org.apache.hadoop;
639,687
public static InstrumentedExecutorService newSingleThreadExecutor( ThreadFactory threadFactory, MetricRegistry registry, String name) { return new InstrumentedExecutorService(Executors.newSingleThreadExecutor(threadFactory), registry, name); }
static InstrumentedExecutorService function( ThreadFactory threadFactory, MetricRegistry registry, String name) { return new InstrumentedExecutorService(Executors.newSingleThreadExecutor(threadFactory), registry, name); }
/** * Creates an InstrumentedExecutor that uses a single worker thread operating * off an unbounded queue, and uses the provided ThreadFactory to * create a new thread when needed. Unlike the otherwise * equivalent {@code newFixedThreadPool(1, threadFactory)} the * returned executor is guarante...
Creates an InstrumentedExecutor that uses a single worker thread operating off an unbounded queue, and uses the provided ThreadFactory to create a new thread when needed. Unlike the otherwise equivalent newFixedThreadPool(1, threadFactory) the returned executor is guaranteed not to be reconfigurable to use additional t...
newSingleThreadExecutor
{ "repo_name": "ChetnaChaudhari/metrics", "path": "metrics-core/src/main/java/io/dropwizard/metrics/InstrumentedExecutors.java", "license": "apache-2.0", "size": 31622 }
[ "java.util.concurrent.Executors", "java.util.concurrent.ThreadFactory" ]
import java.util.concurrent.Executors; import java.util.concurrent.ThreadFactory;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,618,921
@Test(groups = {"org.wso2.carbon.appfactory.provisioning.runtime" }, description = "Kub get snapshot logs") public void testSnapshotLogs() throws RuntimeProvisioningException, InterruptedException { DeploymentLogs deploymentLogs; Map<String, String> selector = new HashMap<>(); selector....
@Test(groups = {STR }, description = STR) void function() throws RuntimeProvisioningException, InterruptedException { DeploymentLogs deploymentLogs; Map<String, String> selector = new HashMap<>(); selector.put("app", STR); afKubClient = new KubernetesRuntimeProvisioningService(testUtils.getAppCtx()); log.info(STR + dep...
/** * Test getting snapshot logs of containers. * * @throws RuntimeProvisioningException */
Test getting snapshot logs of containers
testSnapshotLogs
{ "repo_name": "jagathsisira/app-cloud", "path": "modules/components/org.wso2.appcloud.provisioning.runtime/src/test/java/org/wso2/appcloud/provisioning/runtime/test/LoggingTest.java", "license": "apache-2.0", "size": 9410 }
[ "java.util.HashMap", "java.util.Map", "org.testng.Assert", "org.testng.annotations.Test", "org.wso2.appcloud.provisioning.runtime.KubernetesRuntimeProvisioningService", "org.wso2.appcloud.provisioning.runtime.RuntimeProvisioningException", "org.wso2.appcloud.provisioning.runtime.beans.DeploymentLogs" ]
import java.util.HashMap; import java.util.Map; import org.testng.Assert; import org.testng.annotations.Test; import org.wso2.appcloud.provisioning.runtime.KubernetesRuntimeProvisioningService; import org.wso2.appcloud.provisioning.runtime.RuntimeProvisioningException; import org.wso2.appcloud.provisioning.runtime.bean...
import java.util.*; import org.testng.*; import org.testng.annotations.*; import org.wso2.appcloud.provisioning.runtime.*; import org.wso2.appcloud.provisioning.runtime.beans.*;
[ "java.util", "org.testng", "org.testng.annotations", "org.wso2.appcloud" ]
java.util; org.testng; org.testng.annotations; org.wso2.appcloud;
1,057,875
public static Object assertInMessageHeader(Exchange exchange, String name, Object expected) { return assertMessageHeader(exchange.getIn(), name, expected); }
static Object function(Exchange exchange, String name, Object expected) { return assertMessageHeader(exchange.getIn(), name, expected); }
/** * Asserts the In message on the exchange contains the expected value */
Asserts the In message on the exchange contains the expected value
assertInMessageHeader
{ "repo_name": "mgyongyosi/camel", "path": "components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java", "license": "apache-2.0", "size": 20660 }
[ "org.apache.camel.Exchange" ]
import org.apache.camel.Exchange;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
2,522,619
public static SkinsFactory getInstance(Properties properties) { return new SkinsFactory(properties); }
static SkinsFactory function(Properties properties) { return new SkinsFactory(properties); }
/** * Provides a skin factory initialised with skin-specific properties from the provided * properties set. Skin-specific properties are identified as those properties with the * prefix <code>skin.<i>&lt;skinName&gt;</i>.</code> * * @param properties * a set of properties that may contain ...
Provides a skin factory initialised with skin-specific properties from the provided properties set. Skin-specific properties are identified as those properties with the prefix <code>skin.&lt;skinName&gt;.</code>
getInstance
{ "repo_name": "guptavishal/jets3t-aws-roles", "path": "src/org/jets3t/gui/skins/SkinsFactory.java", "license": "apache-2.0", "size": 17401 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
2,040,768
public void setBedtype(final InventoryBedtypeEnum bedtype) { this.bedtype = bedtype; }
void function(final InventoryBedtypeEnum bedtype) { this.bedtype = bedtype; }
/** * Set the value related to the column: bedtype. * @param bedtype the bedtype value you wish to set */
Set the value related to the column: bedtype
setBedtype
{ "repo_name": "servinglynk/hmis-lynk-open-source", "path": "hmis-model-v2017/src/main/java/com/servinglynk/hmis/warehouse/model/v2017/Inventory.java", "license": "mpl-2.0", "size": 20391 }
[ "com.servinglynk.hmis.warehouse.enums.InventoryBedtypeEnum" ]
import com.servinglynk.hmis.warehouse.enums.InventoryBedtypeEnum;
import com.servinglynk.hmis.warehouse.enums.*;
[ "com.servinglynk.hmis" ]
com.servinglynk.hmis;
2,118,995
public Object lookupLink(String name) throws NamingException { return lookup(new CompositeName(name), false); }
Object function(String name) throws NamingException { return lookup(new CompositeName(name), false); }
/** * Retrieves the named object, following links except for the terminal * atomic component of the name. * * @param name the name of the object to look up * @return the object bound to name, not following the terminal link * (if any). * @exception NamingException if a naming excep...
Retrieves the named object, following links except for the terminal atomic component of the name
lookupLink
{ "repo_name": "devjin24/howtomcatworks", "path": "bookrefer/jakarta-tomcat-5.0.18-src/jakarta-tomcat-catalina/catalina/src/share/org/apache/naming/NamingContext.java", "license": "apache-2.0", "size": 35071 }
[ "javax.naming.CompositeName", "javax.naming.NamingException" ]
import javax.naming.CompositeName; import javax.naming.NamingException;
import javax.naming.*;
[ "javax.naming" ]
javax.naming;
2,444,887
public ApiResponse<List<Integer>> getDogmaAttributesWithHttpInfo(String datasource, String userAgent, String xUserAgent) throws ApiException { com.squareup.okhttp.Call call = getDogmaAttributesValidateBeforeCall(datasource, userAgent, xUserAgent, null, null); Type localVarReturnType = new TypeToken<...
ApiResponse<List<Integer>> function(String datasource, String userAgent, String xUserAgent) throws ApiException { com.squareup.okhttp.Call call = getDogmaAttributesValidateBeforeCall(datasource, userAgent, xUserAgent, null, null); Type localVarReturnType = new TypeToken<List<Integer>>(){}.getType(); return apiClient.ex...
/** * Get attributes * Get a list of dogma attribute ids --- Alternate route: &#x60;/v1/dogma/attributes/&#x60; Alternate route: &#x60;/legacy/dogma/attributes/&#x60; Alternate route: &#x60;/dev/dogma/attributes/&#x60; --- This route is cached for up to 3600 seconds * @param datasource The server ...
Get attributes Get a list of dogma attribute ids --- Alternate route: &#x60;/v1/dogma/attributes/&#x60; Alternate route: &#x60;/legacy/dogma/attributes/&#x60; Alternate route: &#x60;/dev/dogma/attributes/&#x60; --- This route is cached for up to 3600 seconds
getDogmaAttributesWithHttpInfo
{ "repo_name": "Tmin10/EVE-Security-Service", "path": "server-api/src/main/java/ru/tmin10/EVESecurityService/serverApi/api/DogmaApi.java", "license": "gpl-3.0", "size": 33114 }
[ "com.google.gson.reflect.TypeToken", "java.lang.reflect.Type", "java.util.List", "ru.tmin10.EVESecurityService" ]
import com.google.gson.reflect.TypeToken; import java.lang.reflect.Type; import java.util.List; import ru.tmin10.EVESecurityService;
import com.google.gson.reflect.*; import java.lang.reflect.*; import java.util.*; import ru.tmin10.*;
[ "com.google.gson", "java.lang", "java.util", "ru.tmin10" ]
com.google.gson; java.lang; java.util; ru.tmin10;
2,383,144
public Packet buildPacket(byte[] rawdata, Inet4Address sourceIP) throws InvalidProtocolBufferException;
Packet function(byte[] rawdata, Inet4Address sourceIP) throws InvalidProtocolBufferException;
/** * Builds a Packet from raw data * * @param rawdata * Packet data, received as a byte[] * @param sourceIP * IP from which the data originated * @return Packet (Advert, Bid, BidWin or Data) built from given data */
Builds a Packet from raw data
buildPacket
{ "repo_name": "maniacchallenge/2013", "path": "strategies (implementations)/PUB_Wolfpack/PUB_Wolfpack v3/ManiacLib/src/de/fu_berlin/maniac/packet_builder/PacketBuilderInterface.java", "license": "lgpl-3.0", "size": 4419 }
[ "com.google.protobuf.InvalidProtocolBufferException", "java.net.Inet4Address" ]
import com.google.protobuf.InvalidProtocolBufferException; import java.net.Inet4Address;
import com.google.protobuf.*; import java.net.*;
[ "com.google.protobuf", "java.net" ]
com.google.protobuf; java.net;
1,986,878
public ItemStack offerItem(Object source, ItemStack offer);
ItemStack function(Object source, ItemStack offer);
/** * Offers an ItemStack to the object implementing this interface. * This function will return null if the item is accepted in full, * otherwise it will return whatever is rejected. * * @param source The Object offering the item * @param offer The ItemStack being offered * @return U...
Offers an ItemStack to the object implementing this interface. This function will return null if the item is accepted in full, otherwise it will return whatever is rejected
offerItem
{ "repo_name": "MatthiasMann/EnderIO", "path": "src/api/java/mods/railcraft/api/carts/IItemTransfer.java", "license": "unlicense", "size": 2560 }
[ "net.minecraft.item.ItemStack" ]
import net.minecraft.item.ItemStack;
import net.minecraft.item.*;
[ "net.minecraft.item" ]
net.minecraft.item;
887,423
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller<PollResult<NetworkInterfaceInner>, NetworkInterfaceInner> beginCreateOrUpdate( String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters);
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller<PollResult<NetworkInterfaceInner>, NetworkInterfaceInner> beginCreateOrUpdate( String resourceGroupName, String networkInterfaceName, NetworkInterfaceInner parameters);
/** * Creates or updates a network interface. * * @param resourceGroupName The name of the resource group. * @param networkInterfaceName The name of the network interface. * @param parameters Parameters supplied to the create or update network interface operation. * @throws IllegalArgument...
Creates or updates a network interface
beginCreateOrUpdate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/NetworkInterfacesClient.java", "license": "mit", "size": 71039 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.management.polling.PollResult", "com.azure.core.util.polling.SyncPoller", "com.azure.resourcemanager.network.fluent.models.NetworkInterfaceInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.network.fluent.models.NetworkInterfaceInner;
import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,861,960
public void setResponseMsgs(List<RestOperationResponseMsgDefinition> params) { this.responseMsgs = responseMsgs; }
void function(List<RestOperationResponseMsgDefinition> params) { this.responseMsgs = responseMsgs; }
/** * Sets swagger operation response messages */
Sets swagger operation response messages
setResponseMsgs
{ "repo_name": "YMartsynkevych/camel", "path": "camel-core/src/main/java/org/apache/camel/model/rest/VerbDefinition.java", "license": "apache-2.0", "size": 10533 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
584,769
private TrackableThread launchCommandRunner(String cmd, String arg1, String arg2) { TrackableThread t = new TrackableThread(new AsyncCommandRunner(cmd, arg1, arg2), cmd); t.start(); return t; }
TrackableThread function(String cmd, String arg1, String arg2) { TrackableThread t = new TrackableThread(new AsyncCommandRunner(cmd, arg1, arg2), cmd); t.start(); return t; }
/** * Fire off a command in the background, so we can wait for the result */
Fire off a command in the background, so we can wait for the result
launchCommandRunner
{ "repo_name": "krosenvold/selenium-git-release-candidate", "path": "java/server/test/org/openqa/selenium/server/CommandQueueUnitTest.java", "license": "apache-2.0", "size": 12606 }
[ "org.openqa.selenium.testworker.TrackableThread" ]
import org.openqa.selenium.testworker.TrackableThread;
import org.openqa.selenium.testworker.*;
[ "org.openqa.selenium" ]
org.openqa.selenium;
959,299
public @Nonnull ConvergedInfrastructureCapabilities getCapabilities();
@Nonnull ConvergedInfrastructureCapabilities function();
/** * Provides access to meta-data about converged infrastructure capabilities in this cloud. * @return a description of the features supported by converged infrastructure for this cloud */
Provides access to meta-data about converged infrastructure capabilities in this cloud
getCapabilities
{ "repo_name": "maksimov/dasein-cloud-core", "path": "src/main/java/org/dasein/cloud/ci/ConvergedInfrastructureSupport.java", "license": "apache-2.0", "size": 9628 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
210,121
protected Pair<ItemGroup, Integer> getGroupAt(int position) { // TODO(ianwen): Optimize the performance if the number of groups becomes too large. int i = position; for (ItemGroup group : mGroups) { if (i >= group.size()) { i -= group.size(); } else { ...
Pair<ItemGroup, Integer> function(int position) { int i = position; for (ItemGroup group : mGroups) { if (i >= group.size()) { i -= group.size(); } else { return new Pair<>(group, i); } } assert false; return null; }
/** * Utility method to traverse all groups and find the {@link ItemGroup} for the given position. */
Utility method to traverse all groups and find the <code>ItemGroup</code> for the given position
getGroupAt
{ "repo_name": "scheib/chromium", "path": "components/browser_ui/widget/android/java/src/org/chromium/components/browser_ui/widget/DateDividedAdapter.java", "license": "bsd-3-clause", "size": 29274 }
[ "android.util.Pair" ]
import android.util.Pair;
import android.util.*;
[ "android.util" ]
android.util;
78,048
public SonyProjectorStatusPower getStatusPower() throws SonyProjectorException { return SonyProjectorStatusPower.getFromDataCode(getSetting(SonyProjectorItem.STATUS_POWER)); }
SonyProjectorStatusPower function() throws SonyProjectorException { return SonyProjectorStatusPower.getFromDataCode(getSetting(SonyProjectorItem.STATUS_POWER)); }
/** * Request the projector to get the current power status * * @return the current power status * * @throws SonyProjectorException - In case of any problem */
Request the projector to get the current power status
getStatusPower
{ "repo_name": "paulianttila/openhab2", "path": "bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/communication/SonyProjectorConnector.java", "license": "epl-1.0", "size": 43482 }
[ "org.openhab.binding.sonyprojector.internal.SonyProjectorException" ]
import org.openhab.binding.sonyprojector.internal.SonyProjectorException;
import org.openhab.binding.sonyprojector.internal.*;
[ "org.openhab.binding" ]
org.openhab.binding;
1,746,189
private Artifact getExtraActionOutputArtifact( RuleContext ruleContext, Action action, String template) { String actionId = getActionId(ruleContext.getLabel(), action); template = template.replace("$(ACTION_ID)", actionId); template = template.replace("$(OWNER_LABEL_DIGEST)", getOwnerDigest(ruleCon...
Artifact function( RuleContext ruleContext, Action action, String template) { String actionId = getActionId(ruleContext.getLabel(), action); template = template.replace(STR, actionId); template = template.replace(STR, getOwnerDigest(ruleContext)); return getRootRelativePath(template, ruleContext); }
/** * Creates an output artifact for the extra_action based on the output_template. * The path will be in the following form: * <output dir>/<target-configuration-specific-path>/extra_actions/<extra_action_label>/ + * <configured_target_label>/<expanded_template> * * The template can use the followi...
Creates an output artifact for the extra_action based on the output_template. The path will be in the following form: //extra_actions// + / The template can use the following variables: $(ACTION_ID): a unique id for the extra_action. Sample: extra_action: foo/bar:extra template: $(ACTION_ID).analysis target: foo/bar:ma...
getExtraActionOutputArtifact
{ "repo_name": "UrbanCompass/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/extra/ExtraActionSpec.java", "license": "apache-2.0", "size": 10422 }
[ "com.google.devtools.build.lib.actions.Action", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.analysis.RuleContext" ]
import com.google.devtools.build.lib.actions.Action; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.RuleContext;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.*;
[ "com.google.devtools" ]
com.google.devtools;
16,862
public void onBindDialogView(View view) { super.onBindDialogView(view); final View myView = view; profile = getValue(); EditText edName = (EditText) view.findViewById(R.id.currentProfileName); edName.setText(profile.getName()); EditText edUrl = (E...
void function(View view) { super.onBindDialogView(view); final View myView = view; profile = getValue(); EditText edName = (EditText) view.findViewById(R.id.currentProfileName); edName.setText(profile.getName()); EditText edUrl = (EditText) view.findViewById(R.id.currentProfileUrl); edUrl.setText(profile.getUrl()); Edi...
/** * When clicked open a dialog containing the layout current profile * Set current name, url ... with preferences values * Add 3 buttons save, cancel and delete * On save, update and register current profile preference * On cancel, do nothing * On delete, delete current profile * @p...
When clicked open a dialog containing the layout current profile Set current name, url ... with preferences values Add 3 buttons save, cancel and delete On save, update and register current profile preference On cancel, do nothing On delete, delete current profile
onBindDialogView
{ "repo_name": "aurrelhebert/android-app-warp10", "path": "app/src/main/java/com/warp10/app/LoadProfile.java", "license": "apache-2.0", "size": 15338 }
[ "android.text.Html", "android.view.View", "android.view.ViewGroup", "android.widget.EditText", "android.widget.TextView" ]
import android.text.Html; import android.view.View; import android.view.ViewGroup; import android.widget.EditText; import android.widget.TextView;
import android.text.*; import android.view.*; import android.widget.*;
[ "android.text", "android.view", "android.widget" ]
android.text; android.view; android.widget;
1,339,847
public List<FilterAdapter> createFilters(List<FilterDefinition> fds) throws QueryConfigurationException, IOException { List<FilterAdapter> filters = new ArrayList<FilterAdapter>(); if (fds == null) return filters; for (FilterDefinition fd : fds) { FilterAdapter filter = createFilter(fd); filters...
List<FilterAdapter> function(List<FilterDefinition> fds) throws QueryConfigurationException, IOException { List<FilterAdapter> filters = new ArrayList<FilterAdapter>(); if (fds == null) return filters; for (FilterDefinition fd : fds) { FilterAdapter filter = createFilter(fd); filters.add(filter); filterStore.add(filter...
/** * Create a list of filters based on a list of filter definitions. * @throws IOException */
Create a list of filters based on a list of filter definitions
createFilters
{ "repo_name": "VPAC/rsa", "path": "src/rsaquery/src/org/vpac/ndg/query/FilterFactory.java", "license": "gpl-3.0", "size": 11219 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.vpac.ndg.query.QueryDefinition" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.vpac.ndg.query.QueryDefinition;
import java.io.*; import java.util.*; import org.vpac.ndg.query.*;
[ "java.io", "java.util", "org.vpac.ndg" ]
java.io; java.util; org.vpac.ndg;
2,268,453
private Value wrap(Object val, int type) { try { return H2Utils.wrap(desc.indexing().objectContext(), val, type); } catch (IgniteCheckedException e) { throw new IgniteException("Failed to wrap object into H2 Value.", e); } }
Value function(Object val, int type) { try { return H2Utils.wrap(desc.indexing().objectContext(), val, type); } catch (IgniteCheckedException e) { throw new IgniteException(STR, e); } }
/** * Wrap the given object into H2 value. * * @param val Value. * @param type Type. * @return wrapped value. */
Wrap the given object into H2 value
wrap
{ "repo_name": "shroman/ignite", "path": "modules/indexing/src/main/java/org/apache/ignite/internal/processors/query/h2/opt/H2CacheRow.java", "license": "apache-2.0", "size": 8554 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.IgniteException", "org.apache.ignite.internal.processors.query.h2.H2Utils", "org.h2.value.Value" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.IgniteException; import org.apache.ignite.internal.processors.query.h2.H2Utils; import org.h2.value.Value;
import org.apache.ignite.*; import org.apache.ignite.internal.processors.query.h2.*; import org.h2.value.*;
[ "org.apache.ignite", "org.h2.value" ]
org.apache.ignite; org.h2.value;
1,258,349
private static void saveUserSettings() { Ode.getUserSettings().saveSettings(null); }
static void function() { Ode.getUserSettings().saveSettings(null); }
/** * Trigger a save of the user's settings. This is used to prevent two updates being sent to the * server in the event a Blockly operation sets both grid and snap back-to-back. * This method is called via JSNI. */
Trigger a save of the user's settings. This is used to prevent two updates being sent to the server in the event a Blockly operation sets both grid and snap back-to-back. This method is called via JSNI
saveUserSettings
{ "repo_name": "mit-cml/appinventor-sources", "path": "appinventor/appengine/src/com/google/appinventor/client/editor/youngandroid/BlocklyPanel.java", "license": "apache-2.0", "size": 38600 }
[ "com.google.appinventor.client.Ode" ]
import com.google.appinventor.client.Ode;
import com.google.appinventor.client.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,018,214
@Override @Generated(value = "com.sun.tools.xjc.Driver", date = "2014-09-19T03:10:02-06:00", comment = "JAXB RI v2.2.6") public String toString() { return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.MULTI_LINE_STYLE); }
@Generated(value = STR, date = STR, comment = STR) String function() { return ToStringBuilder.reflectionToString(this, JAXBToStringStyle.MULTI_LINE_STYLE); }
/** * Generates a String representation of the contents of this type. * This is an extension method, produced by the 'ts' xjc plugin * */
Generates a String representation of the contents of this type. This is an extension method, produced by the 'ts' xjc plugin
toString
{ "repo_name": "angecab10/travelport-uapi-tutorial", "path": "src/com/travelport/schema/air_v29_0/FlightInfo.java", "license": "gpl-3.0", "size": 12632 }
[ "javax.annotation.Generated", "org.apache.commons.lang.builder.ToStringBuilder", "org.apache.cxf.xjc.runtime.JAXBToStringStyle" ]
import javax.annotation.Generated; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.cxf.xjc.runtime.JAXBToStringStyle;
import javax.annotation.*; import org.apache.commons.lang.builder.*; import org.apache.cxf.xjc.runtime.*;
[ "javax.annotation", "org.apache.commons", "org.apache.cxf" ]
javax.annotation; org.apache.commons; org.apache.cxf;
1,542,611
public void addObserver(Observer o) { obs.addObserver(o); }
void function(Observer o) { obs.addObserver(o); }
/** * Adds an observer that will be notified when this machine is changed. * This enables an event-driven update model. * * @param o the observer * @see java.util.Observable#addObserver(java.util.Observer) */
Adds an observer that will be notified when this machine is changed. This enables an event-driven update model
addObserver
{ "repo_name": "mpk2/STAR-Vote", "path": "supervisor/model/machine/AMachine.java", "license": "gpl-3.0", "size": 5639 }
[ "java.util.Observer" ]
import java.util.Observer;
import java.util.*;
[ "java.util" ]
java.util;
2,658,805
private void startWatchingExternalStorage() { IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_MEDIA_MOUNTED); filter.addAction(Intent.ACTION_MEDIA_REMOVED); registerReceiver(this.mExternalStorageReceiver, filter); updateExternalStorageState(); }
void function() { IntentFilter filter = new IntentFilter(); filter.addAction(Intent.ACTION_MEDIA_MOUNTED); filter.addAction(Intent.ACTION_MEDIA_REMOVED); registerReceiver(this.mExternalStorageReceiver, filter); updateExternalStorageState(); }
/** * Register the external storage BroadcastReceiver. */
Register the external storage BroadcastReceiver
startWatchingExternalStorage
{ "repo_name": "Anoril/aFileChooser", "path": "src/com/ipaulpro/afilechooser/FileChooserActivity.java", "license": "mit", "size": 16582 }
[ "android.content.Intent", "android.content.IntentFilter" ]
import android.content.Intent; import android.content.IntentFilter;
import android.content.*;
[ "android.content" ]
android.content;
1,086,435
public TreeWillExpandListener[] getTreeWillExpandListeners() { return (TreeWillExpandListener[]) getListeners(TreeWillExpandListener.class); }
TreeWillExpandListener[] function() { return (TreeWillExpandListener[]) getListeners(TreeWillExpandListener.class); }
/** * Returns all added <code>TreeWillExpandListener</code> objects. * * @return an array of listeners */
Returns all added <code>TreeWillExpandListener</code> objects
getTreeWillExpandListeners
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/javax/swing/JTree.java", "license": "gpl-2.0", "size": 83318 }
[ "javax.swing.event.TreeWillExpandListener" ]
import javax.swing.event.TreeWillExpandListener;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
2,075,667
private SoyValue applyDirective( String directiveName, SoyValue value, List<SoyValue> args, SoyNode node) { // Get directive. SoyJavaPrintDirective directive = soyJavaDirectivesMap.get(directiveName); if (directive == null) { throw RenderException.createWithSource( "Failed to find S...
SoyValue function( String directiveName, SoyValue value, List<SoyValue> args, SoyNode node) { SoyJavaPrintDirective directive = soyJavaDirectivesMap.get(directiveName); if (directive == null) { throw RenderException.createWithSource( STR + directiveName + "'" + STR + node.toSourceString() + ")", node); } if (! directiv...
/** * Protected helper to apply a print directive. * * @param directiveName The name of the directive. * @param value The value to apply the directive on. * @param args The arguments to the directive. * @param node The node with the escaping. Only used for error reporting. * @return The result of a...
Protected helper to apply a print directive
applyDirective
{ "repo_name": "oujesky/closure-templates", "path": "java/src/com/google/template/soy/sharedpasses/render/RenderVisitor.java", "license": "apache-2.0", "size": 33306 }
[ "com.google.template.soy.data.SoyValue", "com.google.template.soy.shared.restricted.SoyJavaPrintDirective", "com.google.template.soy.soytree.SoyNode", "java.util.List" ]
import com.google.template.soy.data.SoyValue; import com.google.template.soy.shared.restricted.SoyJavaPrintDirective; import com.google.template.soy.soytree.SoyNode; import java.util.List;
import com.google.template.soy.data.*; import com.google.template.soy.shared.restricted.*; import com.google.template.soy.soytree.*; import java.util.*;
[ "com.google.template", "java.util" ]
com.google.template; java.util;
1,378,357
protected void handleSolrServerException(Tuple input, Exception e) throws IOException { Throwable rootCause = SolrException.getRootCause(e); if (batchSize > 1) { // for batches, all we can do is fail int count = (batch != null ? batch.size() : 1); log.error(String.format("Failed to add batc...
void function(Tuple input, Exception e) throws IOException { Throwable rootCause = SolrException.getRootCause(e); if (batchSize > 1) { int count = (batch != null ? batch.size() : 1); log.error(String.format(STR, count, rootCause.getMessage()), rootCause); log.error(STR); if (batch != null) { int recovered = 0; int erro...
/** * Error handling for batch mode and single doc mode. */
Error handling for batch mode and single doc mode
handleSolrServerException
{ "repo_name": "LucidWorks/pig-solr", "path": "solr-pig-core/src/main/java/com/lucidworks/hadoop/pig/FusionIndexPipelineStoreFunc.java", "license": "apache-2.0", "size": 20671 }
[ "java.io.IOException", "java.util.Map", "org.apache.hadoop.io.NullWritable", "org.apache.hadoop.mapreduce.Counter", "org.apache.hadoop.mapreduce.OutputFormat", "org.apache.pig.backend.executionengine.ExecException", "org.apache.pig.data.Tuple", "org.apache.solr.common.SolrException" ]
import java.io.IOException; import java.util.Map; import org.apache.hadoop.io.NullWritable; import org.apache.hadoop.mapreduce.Counter; import org.apache.hadoop.mapreduce.OutputFormat; import org.apache.pig.backend.executionengine.ExecException; import org.apache.pig.data.Tuple; import org.apache.solr.common.SolrExcept...
import java.io.*; import java.util.*; import org.apache.hadoop.io.*; import org.apache.hadoop.mapreduce.*; import org.apache.pig.backend.executionengine.*; import org.apache.pig.data.*; import org.apache.solr.common.*;
[ "java.io", "java.util", "org.apache.hadoop", "org.apache.pig", "org.apache.solr" ]
java.io; java.util; org.apache.hadoop; org.apache.pig; org.apache.solr;
1,260,326
@Override protected List<TAttachmentBean> loadAllIndexable() { return AttachBL.loadAll(); }
List<TAttachmentBean> function() { return AttachBL.loadAll(); }
/** * Loads all indexable entities for reindex * @return */
Loads all indexable entities for reindex
loadAllIndexable
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/lucene/index/associatedFields/AttachmentIndexer.java", "license": "gpl-3.0", "size": 11346 }
[ "com.aurel.track.attachment.AttachBL", "com.aurel.track.beans.TAttachmentBean", "java.util.List" ]
import com.aurel.track.attachment.AttachBL; import com.aurel.track.beans.TAttachmentBean; import java.util.List;
import com.aurel.track.attachment.*; import com.aurel.track.beans.*; import java.util.*;
[ "com.aurel.track", "java.util" ]
com.aurel.track; java.util;
693,783
void removeFoldRegion(@NotNull FoldRegion region);
void removeFoldRegion(@NotNull FoldRegion region);
/** * Removes the specified fold region. This method must be called * from the <code>Runnable</code> passed to {@link #runBatchFoldingOperation(Runnable)}. * * @param region the region to remove. */
Removes the specified fold region. This method must be called from the <code>Runnable</code> passed to <code>#runBatchFoldingOperation(Runnable)</code>
removeFoldRegion
{ "repo_name": "IllusionRom-deprecated/android_platform_tools_idea", "path": "platform/editor-ui-api/src/com/intellij/openapi/editor/FoldingModel.java", "license": "apache-2.0", "size": 3385 }
[ "org.jetbrains.annotations.NotNull" ]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
1,781,995
public static void onStart(Context context) { SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); Editor editor = pref.edit(); // If it is the first launch, save the date in shared preference. if (pref.getLong(KEY_INSTALL_DATE, 0) == 0L) { Date now = new Date(); edit...
static void function(Context context) { SharedPreferences pref = context.getSharedPreferences(PREF_NAME, Context.MODE_PRIVATE); Editor editor = pref.edit(); if (pref.getLong(KEY_INSTALL_DATE, 0) == 0L) { Date now = new Date(); editor.putLong(KEY_INSTALL_DATE, now.getTime()); log(STR + now.toString()); } int launchTimes...
/** * Call this API when the launcher activity is launched.<br> * It is better to call this API in onStart() of the launcher activity. */
Call this API when the launcher activity is launched. It is better to call this API in onStart() of the launcher activity
onStart
{ "repo_name": "JunSoftware109/AndroidProjectHearing", "path": "Dr Hearing App/app/src/main/java/com/kskkbys/rate/RateThisApp.java", "license": "apache-2.0", "size": 6284 }
[ "android.content.Context", "android.content.SharedPreferences", "java.util.Date" ]
import android.content.Context; import android.content.SharedPreferences; import java.util.Date;
import android.content.*; import java.util.*;
[ "android.content", "java.util" ]
android.content; java.util;
144,338
@PostConstruct public void init() throws ServletException { super.init(); if (_loginModuleClass == null) throw new ServletException(L.l("JaasAuthenticator requires login-module")); }
void function() throws ServletException { super.init(); if (_loginModuleClass == null) throw new ServletException(L.l(STR)); }
/** * Initialize the authenticator. */
Initialize the authenticator
init
{ "repo_name": "mdaniel/svn-caucho-com-resin", "path": "modules/resin/src/com/caucho/security/JaasAuthenticator.java", "license": "gpl-2.0", "size": 8323 }
[ "javax.servlet.ServletException" ]
import javax.servlet.ServletException;
import javax.servlet.*;
[ "javax.servlet" ]
javax.servlet;
2,558,673
public void setAssetDownloadData(String downloadGuid, String filePath, String mimeType) { assert isDownload(); mIsAssetDownload = true; mAssetDownloadGuid = downloadGuid; mAssetDownloadFile = new File(filePath); mAssetDownloadMimeType = mimeType; }
void function(String downloadGuid, String filePath, String mimeType) { assert isDownload(); mIsAssetDownload = true; mAssetDownloadGuid = downloadGuid; mAssetDownloadFile = new File(filePath); mAssetDownloadMimeType = mimeType; }
/** * Marks the article suggestion as an asset download with the given path and mime type. May only * be called if this snippet belongs to DOWNLOADS category. */
Marks the article suggestion as an asset download with the given path and mime type. May only be called if this snippet belongs to DOWNLOADS category
setAssetDownloadData
{ "repo_name": "mogoweb/365browser", "path": "app/src/main/java/org/chromium/chrome/browser/ntp/snippets/SnippetArticle.java", "license": "apache-2.0", "size": 8388 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,293,126
void handleElement(Element elt, Object data);
void handleElement(Element elt, Object data);
/** * Notifies the UserAgent that the input element * has been found in the document. This is sometimes * called, for example, to handle &lt;a&gt; or * &lt;title&gt; elements in a UserAgent-dependant * way. */
Notifies the UserAgent that the input element has been found in the document. This is sometimes called, for example, to handle &lt;a&gt; or &lt;title&gt; elements in a UserAgent-dependant way
handleElement
{ "repo_name": "sflyphotobooks/crp-batik", "path": "sources/org/apache/batik/bridge/UserAgent.java", "license": "apache-2.0", "size": 9009 }
[ "org.w3c.dom.Element" ]
import org.w3c.dom.Element;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
875,642
public static IborCapFloorMarketDataLookup of(Map<IborIndex, IborCapletFloorletVolatilitiesId> volatilityIds) { return DefaultIborCapFloorMarketDataLookup.of(volatilityIds); }
static IborCapFloorMarketDataLookup function(Map<IborIndex, IborCapletFloorletVolatilitiesId> volatilityIds) { return DefaultIborCapFloorMarketDataLookup.of(volatilityIds); }
/** * Obtains an instance based on a map of volatility identifiers. * <p> * The map is used to specify the appropriate volatilities to use for each index. * * @param volatilityIds the volatility identifiers, keyed by index * @return the cap/floor lookup containing the specified volatilities */
Obtains an instance based on a map of volatility identifiers. The map is used to specify the appropriate volatilities to use for each index
of
{ "repo_name": "jmptrader/Strata", "path": "modules/measure/src/main/java/com/opengamma/strata/measure/capfloor/IborCapFloorMarketDataLookup.java", "license": "apache-2.0", "size": 6582 }
[ "com.opengamma.strata.basics.index.IborIndex", "com.opengamma.strata.pricer.capfloor.IborCapletFloorletVolatilitiesId", "java.util.Map" ]
import com.opengamma.strata.basics.index.IborIndex; import com.opengamma.strata.pricer.capfloor.IborCapletFloorletVolatilitiesId; import java.util.Map;
import com.opengamma.strata.basics.index.*; import com.opengamma.strata.pricer.capfloor.*; import java.util.*;
[ "com.opengamma.strata", "java.util" ]
com.opengamma.strata; java.util;
414,294
public List<BeatOffset> computeSharedBeats(List<ElementSpacing> spacingElements, List<BeatOffset> beatOffsets) { ArrayList<BeatOffset> ret = alist(Math.min(spacingElements.size(), beatOffsets.size())); int iElement = 0, iBeat = 0; Fraction lastAddedBeat = Companion.fr(-1); while (iElement < spacingElements.s...
List<BeatOffset> function(List<ElementSpacing> spacingElements, List<BeatOffset> beatOffsets) { ArrayList<BeatOffset> ret = alist(Math.min(spacingElements.size(), beatOffsets.size())); int iElement = 0, iBeat = 0; Fraction lastAddedBeat = Companion.fr(-1); while (iElement < spacingElements.size() && iBeat < beatOffsets...
/** * Returns the shared beats of the given {@link ElementSpacing}s and {@link BeatOffset}s. * If there are no beats used by both lists, an empty list is returned. */
Returns the shared beats of the given <code>ElementSpacing</code>s and <code>BeatOffset</code>s. If there are no beats used by both lists, an empty list is returned
computeSharedBeats
{ "repo_name": "Xenoage/Zong", "path": "layout/src/com/xenoage/zong/musiclayout/spacer/voice/AlignedVoicesSpacer.java", "license": "agpl-3.0", "size": 5135 }
[ "com.xenoage.utils.collections.CollectionUtils", "com.xenoage.utils.math.Fraction", "com.xenoage.zong.musiclayout.spacing.BeatOffset", "com.xenoage.zong.musiclayout.spacing.ElementSpacing", "java.util.ArrayList", "java.util.List" ]
import com.xenoage.utils.collections.CollectionUtils; import com.xenoage.utils.math.Fraction; import com.xenoage.zong.musiclayout.spacing.BeatOffset; import com.xenoage.zong.musiclayout.spacing.ElementSpacing; import java.util.ArrayList; import java.util.List;
import com.xenoage.utils.collections.*; import com.xenoage.utils.math.*; import com.xenoage.zong.musiclayout.spacing.*; import java.util.*;
[ "com.xenoage.utils", "com.xenoage.zong", "java.util" ]
com.xenoage.utils; com.xenoage.zong; java.util;
1,119,424
Key[] result = _chars.get(e.getText()); if (result == null) { result = _keys.get(e.getCode()); } return result; }
Key[] result = _chars.get(e.getText()); if (result == null) { result = _keys.get(e.getCode()); } return result; }
/** * Get key for virtual key. * * @param e Key(Event) * @return Key or null if key is not mapped */
Get key for virtual key
getKeys
{ "repo_name": "markusheiden/jem", "path": "src/main/java/de/heiden/jem/models/c64/gui/javafx/emulator/KeyMapping.java", "license": "gpl-3.0", "size": 1707 }
[ "de.heiden.jem.models.c64.components.keyboard.Key" ]
import de.heiden.jem.models.c64.components.keyboard.Key;
import de.heiden.jem.models.c64.components.keyboard.*;
[ "de.heiden.jem" ]
de.heiden.jem;
724,485
public void deauthenticate() { if (authHelper.getAuthStatus() != OAuthHelper.AuthStatus.REVOKED) throw new IllegalArgumentException("Revoke the access token first"); authData = null; httpAdapter.getDefaultHeaders().remove(HEADER_AUTHORIZATION); authMethod = Authentication...
void function() { if (authHelper.getAuthStatus() != OAuthHelper.AuthStatus.REVOKED) throw new IllegalArgumentException(STR); authData = null; httpAdapter.getDefaultHeaders().remove(HEADER_AUTHORIZATION); authMethod = AuthenticationMethod.NOT_YET; }
/** * Removes any authentication data. The access token needs to be revoked first using * {@link OAuthHelper#revokeAccessToken(Credentials)}. */
Removes any authentication data. The access token needs to be revoked first using <code>OAuthHelper#revokeAccessToken(Credentials)</code>
deauthenticate
{ "repo_name": "tuskiomi/redditBot", "path": "REdefine/lib/JRAW-master/src/main/java/net/dean/jraw/RedditClient.java", "license": "gpl-2.0", "size": 26271 }
[ "net.dean.jraw.http.AuthenticationMethod", "net.dean.jraw.http.oauth.OAuthHelper" ]
import net.dean.jraw.http.AuthenticationMethod; import net.dean.jraw.http.oauth.OAuthHelper;
import net.dean.jraw.http.*; import net.dean.jraw.http.oauth.*;
[ "net.dean.jraw" ]
net.dean.jraw;
1,422,181
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jButtonBeenden = new javax.swing.JButton(); jPanelExtra = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); ...
void function() { jButtonBeenden = new javax.swing.JButton(); jPanelExtra = new javax.swing.JPanel(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jButtonBeenden.setText("Ok"); jPanelExtra.setBorder(javax.swing.BorderFactory.createEtchedBorder()); javax.swing.GroupLayout jPanelExtraLayout = n...
/** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. always regenerated by the Form Editor
initComponents
{ "repo_name": "derreisende77/MediathekView", "path": "src/main/java/mediathek/gui/dialog/DialogOk.java", "license": "gpl-3.0", "size": 4921 }
[ "javax.swing.JPanel" ]
import javax.swing.JPanel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
179,115
public static File getBackupFilePath(File sourcefile) { // find correct extension. we use this in case we already // have several backups... // in case the user already created a backup, we concatenate a trainling // backup-counter-number to avoid overwriting existing backup-files ...
static File function(File sourcefile) { int backupcounter = 1; String backupext = STR; File checkbackup = new File(sourcefile.toString() + backupext); while (checkbackup.exists()) { backupcounter++; backupext = STR + String.valueOf(backupcounter); checkbackup = new File(sourcefile.toString() + backupext); } return chec...
/** * This method creates a backup-filepath by adding the extension * <b>.backup</b> to the filepath given in {@code sourcefile}. In case this * filepath already exists, this method tries to use a new extension, until * a non-existing filepath was created.<br><br> * Results might be:<br> *...
This method creates a backup-filepath by adding the extension .backup to the filepath given in sourcefile. In case this filepath already exists, this method tries to use a new extension, until a non-existing filepath was created. Results might be: sourcefile.ext.backup sourcefile.ext.backup-1 sourcefile.ext.backup-2 an...
getBackupFilePath
{ "repo_name": "sjPlot/Zettelkasten", "path": "src/main/java/de/danielluedecke/zettelkasten/util/FileOperationsUtil.java", "license": "gpl-3.0", "size": 40330 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
544,260
public MembershipConfig setBroadcastInterval(Duration broadcastInterval) { this.broadcastInterval = checkNotNull(broadcastInterval); return this; }
MembershipConfig function(Duration broadcastInterval) { this.broadcastInterval = checkNotNull(broadcastInterval); return this; }
/** * Sets the reachability broadcast interval. * * @param broadcastInterval the reachability broadcast interval * @return the membership configuration */
Sets the reachability broadcast interval
setBroadcastInterval
{ "repo_name": "atomix/atomix", "path": "cluster/src/main/java/io/atomix/cluster/MembershipConfig.java", "license": "apache-2.0", "size": 2932 }
[ "com.google.common.base.Preconditions", "java.time.Duration" ]
import com.google.common.base.Preconditions; import java.time.Duration;
import com.google.common.base.*; import java.time.*;
[ "com.google.common", "java.time" ]
com.google.common; java.time;
813,048
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<OperationInner>> listSinglePageAsync(Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( "Parameter thi...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<OperationInner>> function(Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } final String accept = STR; context = this.client.mergeContext(context); return service .list(this.client.getEndp...
/** * Gets a list of AzureBareMetal management operations. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws Runt...
Gets a list of AzureBareMetal management operations
listSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/baremetalinfrastructure/azure-resourcemanager-baremetalinfrastructure/src/main/java/com/azure/resourcemanager/baremetalinfrastructure/implementation/OperationsClientImpl.java", "license": "mit", "size": 8024 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.Context", "com.azure.resourcemanager.baremetalinfrastructure.fluent.models.OperationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.Context; import com.azure.resourcemanager.baremetalinfrastructure.fluent.models.OperationInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.baremetalinfrastructure.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,592,354
return WorkerRecord.class; } public final TableField<WorkerRecord, Integer> ID_WORKER = createField("id_worker", org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, ""); public final TableField<WorkerRecord, JsonElement> PLATFORM_DATA = createField("platform_data", org.jooq.impl.DefaultDataType.getDefau...
return WorkerRecord.class; } public final TableField<WorkerRecord, Integer> ID_WORKER = createField(STR, org.jooq.impl.SQLDataType.INTEGER.nullable(false), this, STRplatform_dataSTRjsonSTRSTRplatformSTRSTRemailSTRSTRqualitySTRSTRidentificationSTRSTRWorkerSTR"); } /** * {@inheritDoc}
/** * The class holding records for this type */
The class holding records for this type
getRecordType
{ "repo_name": "coolcrowd/ObjectService", "path": "src/main/java/edu/kit/ipd/crowdcontrol/objectservice/database/model/tables/Worker.java", "license": "apache-2.0", "size": 4029 }
[ "edu.kit.ipd.crowdcontrol.objectservice.database.model.tables.records.WorkerRecord", "org.jooq.TableField" ]
import edu.kit.ipd.crowdcontrol.objectservice.database.model.tables.records.WorkerRecord; import org.jooq.TableField;
import edu.kit.ipd.crowdcontrol.objectservice.database.model.tables.records.*; import org.jooq.*;
[ "edu.kit.ipd", "org.jooq" ]
edu.kit.ipd; org.jooq;
965,757
public String upload_file1(String master_file_id, String prefix_name, byte[] file_buff, String file_ext_name, NameValuePair[] meta_list) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(master_file_id, parts); if (this.errno != ...
String function(String master_file_id, String prefix_name, byte[] file_buff, String file_ext_name, NameValuePair[] meta_list) throws IOException, MyException { String[] parts = new String[2]; this.errno = this.split_file_id(master_file_id, parts); if (this.errno != 0) { return null; } parts = this.upload_file(parts[0],...
/** * upload file to storage server (by file buff, slave file mode) * * @param master_file_id the master file id to generate the slave file * @param prefix_name the prefix name to generate the slave file * @param file_buff file content/buff * @param file_ext_name file ext name, do not include...
upload file to storage server (by file buff, slave file mode)
upload_file1
{ "repo_name": "brucevsked/vskeddemolist", "path": "vskeddemos/mavenproject/fastdfsclientdemo/src/main/java/org/csource/fastdfs/StorageClient1.java", "license": "mit", "size": 27070 }
[ "java.io.IOException", "org.csource.common.MyException", "org.csource.common.NameValuePair" ]
import java.io.IOException; import org.csource.common.MyException; import org.csource.common.NameValuePair;
import java.io.*; import org.csource.common.*;
[ "java.io", "org.csource.common" ]
java.io; org.csource.common;
2,904,401
public void addClassification(String displayname,String coadingscheme, Collection<String> values, String classificationScheme, String classId, boolean isRequired) throws XdsRimException { if (values != null) { for (String value: values) { addClassification(displayname,coadings...
void function(String displayname,String coadingscheme, Collection<String> values, String classificationScheme, String classId, boolean isRequired) throws XdsRimException { if (values != null) { for (String value: values) { addClassification(displayname,coadingscheme, value, classificationScheme, classId, isRequired); }...
/** * Add a multi-valued classification to this ebRIM object. * * @param codeType The name of the code type to use for this classification * @param values A collection of code values * @param classificationScheme The classification scheme for this code type * @param classId The class...
Add a multi-valued classification to this ebRIM object
addClassification
{ "repo_name": "jembi/openxds", "path": "openxds-registry-adapter-omar/src/test/java/org/openhealthtools/openxds/registry/adapter/omar31/RimAxiom.java", "license": "apache-2.0", "size": 24023 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,867,434
private Resource lowerPrivilegeResourcePresent(Set<Resource> resources, Resource resource) { if (resource == null || resources == null) { return null; } Object resourceElement = resource.getResource(); Privilege resourcePrivilege = resource.getPrivilege(); ...
Resource function(Set<Resource> resources, Resource resource) { if (resource == null resources == null) { return null; } Object resourceElement = resource.getResource(); Privilege resourcePrivilege = resource.getPrivilege(); for (Resource element : resources) { if (element.getResource().equals(resourceElement) && eleme...
/** * Given a set of resources and a resource to test, it returns the element * in the set which represent the same resource with a lower privilege * associated to it, if present. * * @param resources * @param resource * @return */
Given a set of resources and a resource to test, it returns the element in the set which represent the same resource with a lower privilege associated to it, if present
lowerPrivilegeResourcePresent
{ "repo_name": "xiaohanz/softcontroller", "path": "opendaylight/appauth/src/main/java/org/opendaylight/controller/appauth/authorization/Authorization.java", "license": "epl-1.0", "size": 24823 }
[ "java.util.Set", "org.opendaylight.controller.sal.authorization.Privilege", "org.opendaylight.controller.sal.authorization.Resource" ]
import java.util.Set; import org.opendaylight.controller.sal.authorization.Privilege; import org.opendaylight.controller.sal.authorization.Resource;
import java.util.*; import org.opendaylight.controller.sal.authorization.*;
[ "java.util", "org.opendaylight.controller" ]
java.util; org.opendaylight.controller;
69,200
@Test public void cleanPathException() throws InvalidPathException { mException.expect(InvalidPathException.class); Assert.assertEquals("/foo/bar", PathUtils.cleanPath("/\\ foo / bar")); }
void function() throws InvalidPathException { mException.expect(InvalidPathException.class); Assert.assertEquals(STR, PathUtils.cleanPath(STR)); }
/** * Tests the {@link PathUtils#cleanPath(String)} method to thrown an exception in case an invalid * path is provided. */
Tests the <code>PathUtils#cleanPath(String)</code> method to thrown an exception in case an invalid path is provided
cleanPathException
{ "repo_name": "ShailShah/alluxio", "path": "core/common/src/test/java/alluxio/util/io/PathUtilsTest.java", "license": "apache-2.0", "size": 14043 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,430,972
public void validateSearchParameters(Map<String, String> fieldValues) { List<String> lookupFieldAttributeList = null; if (getBusinessObjectMetaDataService().isLookupable(getBusinessObjectClass())) { lookupFieldAttributeList = getBusinessObjectMetaDataService().getLookupableFieldNames(...
void function(Map<String, String> fieldValues) { List<String> lookupFieldAttributeList = null; if (getBusinessObjectMetaDataService().isLookupable(getBusinessObjectClass())) { lookupFieldAttributeList = getBusinessObjectMetaDataService().getLookupableFieldNames(getBusinessObjectClass()); } if (lookupFieldAttributeList ...
/** * Checks that any required search fields have value. * * @see LookupableHelperService#validateSearchParameters(java.util.Map) */
Checks that any required search fields have value
validateSearchParameters
{ "repo_name": "ua-eas/ksd-kc5.2.1-rice2.3.6-ua", "path": "rice-middleware/kns/src/main/java/org/kuali/rice/kns/lookup/AbstractLookupableHelperServiceImpl.java", "license": "apache-2.0", "size": 70831 }
[ "java.util.Iterator", "java.util.List", "java.util.Map", "org.apache.commons.lang.StringUtils", "org.kuali.rice.core.api.util.RiceKeyConstants", "org.kuali.rice.krad.exception.ValidationException", "org.kuali.rice.krad.util.GlobalVariables" ]
import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.kuali.rice.core.api.util.RiceKeyConstants; import org.kuali.rice.krad.exception.ValidationException; import org.kuali.rice.krad.util.GlobalVariables;
import java.util.*; import org.apache.commons.lang.*; import org.kuali.rice.core.api.util.*; import org.kuali.rice.krad.exception.*; import org.kuali.rice.krad.util.*;
[ "java.util", "org.apache.commons", "org.kuali.rice" ]
java.util; org.apache.commons; org.kuali.rice;
1,320,580
public Reference getBaseRef() { return this.baseRef; }
Reference function() { return this.baseRef; }
/** * Returns the WADL base reference. * * @return The WADL base reference. */
Returns the WADL base reference
getBaseRef
{ "repo_name": "theanuradha/debrief", "path": "org.mwc.asset.comms/docs/restlet_src/org.restlet.ext.wadl/org/restlet/ext/wadl/WadlApplication.java", "license": "epl-1.0", "size": 31844 }
[ "org.restlet.data.Reference" ]
import org.restlet.data.Reference;
import org.restlet.data.*;
[ "org.restlet.data" ]
org.restlet.data;
2,796,491
public void setConverter(XSLConverterItem converter) { this.converter = converter; }
void function(XSLConverterItem converter) { this.converter = converter; }
/** * Sets converter definition. * @param converter A converter object. */
Sets converter definition
setConverter
{ "repo_name": "kuriking/testdc2", "path": "net.dependableos.dcase.diagram.editor/src/net/dependableos/dcase/diagram/editor/wizard/XslTransformFromGmfWizard.java", "license": "epl-1.0", "size": 4455 }
[ "net.dependableos.dcase.diagram.editor.logic.xmlconv.XSLConverterItem" ]
import net.dependableos.dcase.diagram.editor.logic.xmlconv.XSLConverterItem;
import net.dependableos.dcase.diagram.editor.logic.xmlconv.*;
[ "net.dependableos.dcase" ]
net.dependableos.dcase;
1,545,807
@Override public void storeProjectSettings(String sessionId, long projectId, String settings) throws InvalidSessionException { validateSessionId(sessionId); String userId = userInfoProvider.getUserId(); getProjectRpcImpl(userId, projectId).storeProjectSettings(userId, projectId, settings); }
void function(String sessionId, long projectId, String settings) throws InvalidSessionException { validateSessionId(sessionId); String userId = userInfoProvider.getUserId(); getProjectRpcImpl(userId, projectId).storeProjectSettings(userId, projectId, settings); }
/** * Stores a string with the project settings. * @param sessionId session id * @param projectId project ID * @param settings project settings */
Stores a string with the project settings
storeProjectSettings
{ "repo_name": "be1be1/appinventor-polyu", "path": "appinventor/appengine/src/com/google/appinventor/server/ProjectServiceImpl.java", "license": "apache-2.0", "size": 25003 }
[ "com.google.appinventor.shared.rpc.InvalidSessionException" ]
import com.google.appinventor.shared.rpc.InvalidSessionException;
import com.google.appinventor.shared.rpc.*;
[ "com.google.appinventor" ]
com.google.appinventor;
237,724
public void scheduleCourseRegistrationInviteToInstructor(String inviterGoogleId, String instructorEmail, String courseId, boolean isRejoining) { Map<String, String> paramMap = new HashMap<>(); if (inviterGoogleId != null) { paramMap.put(ParamsNames.INVITER_ID, inviterGoogleId...
void function(String inviterGoogleId, String instructorEmail, String courseId, boolean isRejoining) { Map<String, String> paramMap = new HashMap<>(); if (inviterGoogleId != null) { paramMap.put(ParamsNames.INVITER_ID, inviterGoogleId); } paramMap.put(ParamsNames.INSTRUCTOR_EMAIL, instructorEmail); paramMap.put(ParamsNa...
/** * Schedules for course registration to be sent to the specified instructor. * * @param inviterGoogleId googleId of instructor or administrator who sends the invitation * @param courseId the target course ID * @param instructorEmail the email address of the invited instructor */
Schedules for course registration to be sent to the specified instructor
scheduleCourseRegistrationInviteToInstructor
{ "repo_name": "wkurniawan07/repo", "path": "src/main/java/teammates/logic/api/TaskQueuer.java", "license": "gpl-2.0", "size": 12025 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,504,866
protected Element marshallMessage(XMLObject message) throws MessageEncodingException { log.debug("Marshalling message"); try { return XMLObjectSupport.marshall(message); } catch (MarshallingException e) { throw new MessageEncodingException("Error marshalling message"...
Element function(XMLObject message) throws MessageEncodingException { log.debug(STR); try { return XMLObjectSupport.marshall(message); } catch (MarshallingException e) { throw new MessageEncodingException(STR, e); } }
/** * Helper method that marshalls the given message. * * @param message message the marshall and serialize * * @return marshalled message * * @throws MessageEncodingException thrown if the give message can not be marshalled into its DOM representation */
Helper method that marshalls the given message
marshallMessage
{ "repo_name": "mmoayyed/pac4j", "path": "pac4j-saml/src/main/java/org/pac4j/saml/transport/Pac4jHTTPRedirectDeflateEncoder.java", "license": "apache-2.0", "size": 11092 }
[ "org.opensaml.core.xml.XMLObject", "org.opensaml.core.xml.io.MarshallingException", "org.opensaml.core.xml.util.XMLObjectSupport", "org.opensaml.messaging.encoder.MessageEncodingException", "org.w3c.dom.Element" ]
import org.opensaml.core.xml.XMLObject; import org.opensaml.core.xml.io.MarshallingException; import org.opensaml.core.xml.util.XMLObjectSupport; import org.opensaml.messaging.encoder.MessageEncodingException; import org.w3c.dom.Element;
import org.opensaml.core.xml.*; import org.opensaml.core.xml.io.*; import org.opensaml.core.xml.util.*; import org.opensaml.messaging.encoder.*; import org.w3c.dom.*;
[ "org.opensaml.core", "org.opensaml.messaging", "org.w3c.dom" ]
org.opensaml.core; org.opensaml.messaging; org.w3c.dom;
181,875
ComponentAdapter getComponentAdapter(@NotNull Object componentKey);
ComponentAdapter getComponentAdapter(@NotNull Object componentKey);
/** * Find a component adapter associated with the specified key. If a component adapter cannot be found in this * container, the parent container (if one exists) will be searched. * * @param componentKey the key that the component was registered with. * @return the component adapter associated with this...
Find a component adapter associated with the specified key. If a component adapter cannot be found in this container, the parent container (if one exists) will be searched
getComponentAdapter
{ "repo_name": "siosio/intellij-community", "path": "platform/extensions/src/org/picocontainer/PicoContainer.java", "license": "apache-2.0", "size": 2100 }
[ "org.jetbrains.annotations.NotNull" ]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
2,844,353
private Path prepareJobInput(Path jobInputPath, List<WorkUnit> workUnits) throws IOException { // The job input is a file named after the job ID listing all work unit file paths Path jobInputFile = new Path(jobInputPath, this.jobContext.getJobId() + ".wulist"); Closer closer = Closer.create(); try { ...
Path function(Path jobInputPath, List<WorkUnit> workUnits) throws IOException { Path jobInputFile = new Path(jobInputPath, this.jobContext.getJobId() + STR); Closer closer = Closer.create(); try { ParallelRunner parallelRunner = closer.register(new ParallelRunner(this.parallelRunnerThreads, this.fs)); OutputStream os =...
/** * Prepare the job input. * @throws IOException */
Prepare the job input
prepareJobInput
{ "repo_name": "zyq001/GobblinParquet", "path": "gobblin-runtime/src/main/java/gobblin/runtime/mapreduce/MRJobLauncher.java", "license": "apache-2.0", "size": 29927 }
[ "com.google.common.io.Closer", "java.io.BufferedWriter", "java.io.IOException", "java.io.OutputStream", "java.io.OutputStreamWriter", "java.io.Writer", "java.util.List", "org.apache.hadoop.fs.Path" ]
import com.google.common.io.Closer; import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.io.Writer; import java.util.List; import org.apache.hadoop.fs.Path;
import com.google.common.io.*; import java.io.*; import java.util.*; import org.apache.hadoop.fs.*;
[ "com.google.common", "java.io", "java.util", "org.apache.hadoop" ]
com.google.common; java.io; java.util; org.apache.hadoop;
1,774,526
public void testAlternatingLobValuesAndNull() throws Exception { getConnection().setAutoCommit(false); Statement st = createStatement(); st.execute("create table tt1 (CLICOL01 smallint not null)"); st.execute("alter table tt1 add clicol02 smallint"); st.execute("alter ta...
void function() throws Exception { getConnection().setAutoCommit(false); Statement st = createStatement(); st.execute(STR); st.execute(STR); st.execute(STR); st.execute(STR); st.execute(STR); st.execute(STR); st.execute(STR); st.execute(STR); st.execute(STR); commit(); PreparedStatement pSt = prepareStatement(STR); pSt...
/** * This test case ensures that the bug introduced by the first patch for * Jira-815 has not been re-introduced. The bug resulted in a hang if a * prepared statement was first executed with a lob value, and then * re-executed with a null-value in place of the lob. */
This test case ensures that the bug introduced by the first patch for Jira-815 has not been re-introduced. The bug resulted in a hang if a prepared statement was first executed with a lob value, and then re-executed with a null-value in place of the lob
testAlternatingLobValuesAndNull
{ "repo_name": "apache/derby", "path": "java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/derbynet/PrepareStatementTest.java", "license": "apache-2.0", "size": 57607 }
[ "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.Statement", "java.sql.Types" ]
import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.Statement; import java.sql.Types;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,657,889
KsmVolumeArgs getVolumeInfo(String volume) throws IOException;
KsmVolumeArgs getVolumeInfo(String volume) throws IOException;
/** * Gets the volume information. * @param volume - Volume name. * @return VolumeArgs or exception is thrown. * @throws IOException */
Gets the volume information
getVolumeInfo
{ "repo_name": "ChetnaChaudhari/hadoop", "path": "hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/ksm/VolumeManager.java", "license": "apache-2.0", "size": 3118 }
[ "java.io.IOException", "org.apache.hadoop.ozone.ksm.helpers.KsmVolumeArgs" ]
import java.io.IOException; import org.apache.hadoop.ozone.ksm.helpers.KsmVolumeArgs;
import java.io.*; import org.apache.hadoop.ozone.ksm.helpers.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,302,853
protected void issueShutdownHookMessage(JobInstance jobInstance) { getTaskIO().info(getMessage("shutdown.hook", jobInstance.getJobName(), String.valueOf(jobInstance.getInstanceId()))); }
void function(JobInstance jobInstance) { getTaskIO().info(getMessage(STR, jobInstance.getJobName(), String.valueOf(jobInstance.getInstanceId()))); }
/** * Issue the shutdown.hook message to stdout */
Issue the shutdown.hook message to stdout
issueShutdownHookMessage
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.jbatch.utility/src/com/ibm/ws/jbatch/utility/tasks/BaseBatchRestTask.java", "license": "epl-1.0", "size": 11783 }
[ "javax.batch.runtime.JobInstance" ]
import javax.batch.runtime.JobInstance;
import javax.batch.runtime.*;
[ "javax.batch" ]
javax.batch;
952,200
Map<String, String> properties();
Map<String, String> properties();
/** * Returns the set of annotations as map of key/value properties. * * @return map of properties */
Returns the set of annotations as map of key/value properties
properties
{ "repo_name": "ravikumaran2015/ravikumaran201504", "path": "core/api/src/main/java/org/onosproject/net/driver/Driver.java", "license": "apache-2.0", "size": 3151 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,211,913
private ReturnVal clearOldCredentials(DBObject userObject) { try { ReturnVal result = mySession.edit_db_object(userObject.getInvid()); if (!ReturnVal.didSucceed(result)) { return result; } DBEditObject editUserObject = (DBEditObject) result.getObje...
ReturnVal function(DBObject userObject) { try { ReturnVal result = mySession.edit_db_object(userObject.getInvid()); if (!ReturnVal.didSucceed(result)) { return result; } DBEditObject editUserObject = (DBEditObject) result.getObject(); DateDBField mailExpDateField = editUserObject.getDateField(userSchema.MAILEXPDATE); S...
/** * <p>Clear out old credentials and reset the expiration date.</p> * * <p>Send email to the user's and admin groups' email addresses.</p> */
Clear out old credentials and reset the expiration date. Send email to the user's and admin groups' email addresses
clearOldCredentials
{ "repo_name": "jonabbey/Ganymede", "path": "src/schemas/gasharl/src/arlut/csd/ganymede/gasharl/ExternalMailTask.java", "license": "gpl-2.0", "size": 17122 }
[ "java.util.Calendar", "java.util.GregorianCalendar", "java.util.Vector" ]
import java.util.Calendar; import java.util.GregorianCalendar; import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
1,628,963
public void saveState(Editor editor) { Log.d(LOG, LOG + ".saveState"); editor.putBoolean("vo_applyOptions", applyOptions); editor.putBoolean("vo_removeOriginalStyles", removeOriginalStyles); editor.putInt("vo_textColor", textColor); editor.putInt("vo_bgColor", bgColor); editor.putInt("vo_font", font); ...
void function(Editor editor) { Log.d(LOG, LOG + STR); editor.putBoolean(STR, applyOptions); editor.putBoolean(STR, removeOriginalStyles); editor.putInt(STR, textColor); editor.putInt(STR, bgColor); editor.putInt(STR, font); editor.putInt(STR, fontSize); editor.putInt(STR, textAlign); editor.putInt(STR, lineHeight); edi...
/** * Save state. * @param editor SharedPreferences editor instance */
Save state
saveState
{ "repo_name": "tomparys/bilingual-reader", "path": "bilingual-reader/src/cz/metaverse/android/bilingualreader/helper/VisualOptions.java", "license": "gpl-3.0", "size": 4956 }
[ "android.content.SharedPreferences", "android.util.Log" ]
import android.content.SharedPreferences; import android.util.Log;
import android.content.*; import android.util.*;
[ "android.content", "android.util" ]
android.content; android.util;
1,308,849
public RuleConfiguredTargetBuilder addStarlarkTransitiveInfo( String name, Object value, Location loc) throws EvalException { providersBuilder.put(name, value); return this; }
RuleConfiguredTargetBuilder function( String name, Object value, Location loc) throws EvalException { providersBuilder.put(name, value); return this; }
/** * Add a Starlark transitive info. The provider value must be safe (i.e. a String, a Boolean, an * Integer, an Artifact, a Label, None, a Java TransitiveInfoProvider or something composed from * these in Starlark using lists, sets, structs or dicts). Otherwise an EvalException is thrown. */
Add a Starlark transitive info. The provider value must be safe (i.e. a String, a Boolean, an Integer, an Artifact, a Label, None, a Java TransitiveInfoProvider or something composed from these in Starlark using lists, sets, structs or dicts). Otherwise an EvalException is thrown
addStarlarkTransitiveInfo
{ "repo_name": "meteorcloudy/bazel", "path": "src/main/java/com/google/devtools/build/lib/analysis/RuleConfiguredTargetBuilder.java", "license": "apache-2.0", "size": 29384 }
[ "net.starlark.java.eval.EvalException", "net.starlark.java.syntax.Location" ]
import net.starlark.java.eval.EvalException; import net.starlark.java.syntax.Location;
import net.starlark.java.eval.*; import net.starlark.java.syntax.*;
[ "net.starlark.java" ]
net.starlark.java;
569,367
@Override public synchronized void clear() { m_List.clear(); }
synchronized void function() { m_List.clear(); }
/** * Empties the list. */
Empties the list
clear
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-core/src/main/java/adams/data/SortedList.java", "license": "gpl-3.0", "size": 11522 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,193,948
public int read(int width) throws IOException;
int function(int width) throws IOException;
/** * Read some bits. * * @param width * The number of bits to read. (0..32) * @throws IOException * @return the bits */
Read some bits
read
{ "repo_name": "rbouckaert/YABBY", "path": "src/yabby/org/json/zip/BitReader.java", "license": "lgpl-3.0", "size": 1045 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,498,674
private DeviceInfo buildDevVpnIns(Bearer bearer, VpnInstance ins, VpnSiteRole role, IpConnection connect) { DefaultAugmentedL3VpnBearer augBearer = ((DefaultBearer) bearer) .augmentation(DefaultAugmentedL3VpnBearer.class); DeviceId id = getDevice...
DeviceInfo function(Bearer bearer, VpnInstance ins, VpnSiteRole role, IpConnection connect) { DefaultAugmentedL3VpnBearer augBearer = ((DefaultBearer) bearer) .augmentation(DefaultAugmentedL3VpnBearer.class); DeviceId id = getDeviceId(augBearer); Map<DeviceId, DeviceInfo> devices = ins.devInfo(); DeviceInfo info = null...
/** * Builds device VPN instance with the service objects. It returns * * @param bearer bearer object * @param ins VPN instance * @param role VPN site role * @param connect ip connection * @return return */
Builds device VPN instance with the service objects. It returns
buildDevVpnIns
{ "repo_name": "LorenzReinhart/ONOSnew", "path": "apps/l3vpn/src/main/java/org/onosproject/l3vpn/netl3vpn/impl/NetL3VpnManager.java", "license": "apache-2.0", "size": 42529 }
[ "java.util.Map", "org.onosproject.l3vpn.netl3vpn.DeviceInfo", "org.onosproject.l3vpn.netl3vpn.VpnInstance", "org.onosproject.l3vpn.netl3vpn.VpnSiteRole", "org.onosproject.net.DeviceId", "org.onosproject.yang.gen.v1.ietfl3vpnsvc.rev20160730.ietfl3vpnsvc.siteattachmentbearer.Bearer", "org.onosproject.yang...
import java.util.Map; import org.onosproject.l3vpn.netl3vpn.DeviceInfo; import org.onosproject.l3vpn.netl3vpn.VpnInstance; import org.onosproject.l3vpn.netl3vpn.VpnSiteRole; import org.onosproject.net.DeviceId; import org.onosproject.yang.gen.v1.ietfl3vpnsvc.rev20160730.ietfl3vpnsvc.siteattachmentbearer.Bearer; import ...
import java.util.*; import org.onosproject.l3vpn.netl3vpn.*; import org.onosproject.net.*; import org.onosproject.yang.gen.v1.ietfl3vpnsvc.rev20160730.ietfl3vpnsvc.siteattachmentbearer.*; import org.onosproject.yang.gen.v1.ietfl3vpnsvc.rev20160730.ietfl3vpnsvc.siteattachmentipconnection.*; import org.onosproject.yang.g...
[ "java.util", "org.onosproject.l3vpn", "org.onosproject.net", "org.onosproject.yang" ]
java.util; org.onosproject.l3vpn; org.onosproject.net; org.onosproject.yang;
329,848
public Letter getLetterFromMailbox(int letterObjId) { return mails.get(letterObjId); }
Letter function(int letterObjId) { return mails.get(letterObjId); }
/** * Get letter with specified letter id * * @param letterObjId * @return */
Get letter with specified letter id
getLetterFromMailbox
{ "repo_name": "Estada1401/anuwhscript", "path": "GameServer/src/com/aionemu/gameserver/model/gameobjects/player/Mailbox.java", "license": "gpl-3.0", "size": 5409 }
[ "com.aionemu.gameserver.model.gameobjects.Letter" ]
import com.aionemu.gameserver.model.gameobjects.Letter;
import com.aionemu.gameserver.model.gameobjects.*;
[ "com.aionemu.gameserver" ]
com.aionemu.gameserver;
1,027,279
RedisFuture<Long> clientId();
RedisFuture<Long> clientId();
/** * Get the id of the current connection. * * @return Long The command just returns the ID of the current connection. * @since 5.3 */
Get the id of the current connection
clientId
{ "repo_name": "lettuce-io/lettuce-core", "path": "src/main/java/io/lettuce/core/api/async/RedisServerAsyncCommands.java", "license": "apache-2.0", "size": 12930 }
[ "io.lettuce.core.RedisFuture" ]
import io.lettuce.core.RedisFuture;
import io.lettuce.core.*;
[ "io.lettuce.core" ]
io.lettuce.core;
1,732,098
private static int logOutput( MulticoreWrapper<Pair<Document, CorefSystem>, StringBuilder[]> wrapper, PrintWriter writerGold, PrintWriter writerBeforeCoref, PrintWriter writerAfterCoref, int docCnt) { while (wrapper.peek()) { StringBuilder[] output = wrapper.poll(); wri...
static int function( MulticoreWrapper<Pair<Document, CorefSystem>, StringBuilder[]> wrapper, PrintWriter writerGold, PrintWriter writerBeforeCoref, PrintWriter writerAfterCoref, int docCnt) { while (wrapper.peek()) { StringBuilder[] output = wrapper.poll(); writerGold.print(output[0]); writerBeforeCoref.print(output[1]...
/** * write output of coref system in conll format, and log. */
write output of coref system in conll format, and log
logOutput
{ "repo_name": "codev777/CoreNLP", "path": "src/edu/stanford/nlp/hcoref/CorefSystem.java", "license": "gpl-2.0", "size": 11789 }
[ "edu.stanford.nlp.hcoref.data.Document", "edu.stanford.nlp.util.Pair", "edu.stanford.nlp.util.concurrent.MulticoreWrapper", "java.io.PrintWriter" ]
import edu.stanford.nlp.hcoref.data.Document; import edu.stanford.nlp.util.Pair; import edu.stanford.nlp.util.concurrent.MulticoreWrapper; import java.io.PrintWriter;
import edu.stanford.nlp.hcoref.data.*; import edu.stanford.nlp.util.*; import edu.stanford.nlp.util.concurrent.*; import java.io.*;
[ "edu.stanford.nlp", "java.io" ]
edu.stanford.nlp; java.io;
2,642,738
public Type getComponent(int number) throws DataTypeException { try { return this.data[number]; } catch (ArrayIndexOutOfBoundsException e) { throw new DataTypeException("Element " + number + " doesn't exist (Type " + getClass().getName() + " has only " + this.data.l...
Type function(int number) throws DataTypeException { try { return this.data[number]; } catch (ArrayIndexOutOfBoundsException e) { throw new DataTypeException(STR + number + STR + getClass().getName() + STR + this.data.length + STR); } }
/** * Returns an individual data component. * * @param number The component number (0-indexed) * @throws DataTypeException if the given element number is out of range. */
Returns an individual data component
getComponent
{ "repo_name": "PapenfussLab/PathOS", "path": "Tools/Hl7Tools/src/main/java/org/petermac/hl7/model/v251/datatype/FC.java", "license": "gpl-3.0", "size": 4168 }
[ "ca.uhn.hl7v2.model.DataTypeException", "ca.uhn.hl7v2.model.Type" ]
import ca.uhn.hl7v2.model.DataTypeException; import ca.uhn.hl7v2.model.Type;
import ca.uhn.hl7v2.model.*;
[ "ca.uhn.hl7v2" ]
ca.uhn.hl7v2;
1,115,180
protected void checkConfiguration(HttpServletRequest request) { if (!checkCompleted) { GlobalConfig config = AppBeans.get(Configuration.class).getConfig(GlobalConfig.class); if (config.getLogIncorrectWebAppPropertiesEnabled()) { StringBuilder sb = new StringBuilder();...
void function(HttpServletRequest request) { if (!checkCompleted) { GlobalConfig config = AppBeans.get(Configuration.class).getConfig(GlobalConfig.class); if (config.getLogIncorrectWebAppPropertiesEnabled()) { StringBuilder sb = new StringBuilder(); if (!request.getServerName().equals(config.getWebHostName())) { sb.appe...
/** * Check correctness of some configuration parameters and log the warning if necessary. */
Check correctness of some configuration parameters and log the warning if necessary
checkConfiguration
{ "repo_name": "dimone-kun/cuba", "path": "modules/core/src/com/haulmont/cuba/core/sys/remoting/RemotingServlet.java", "license": "apache-2.0", "size": 7418 }
[ "com.haulmont.cuba.core.global.AppBeans", "com.haulmont.cuba.core.global.Configuration", "com.haulmont.cuba.core.global.GlobalConfig", "javax.servlet.http.HttpServletRequest" ]
import com.haulmont.cuba.core.global.AppBeans; import com.haulmont.cuba.core.global.Configuration; import com.haulmont.cuba.core.global.GlobalConfig; import javax.servlet.http.HttpServletRequest;
import com.haulmont.cuba.core.global.*; import javax.servlet.http.*;
[ "com.haulmont.cuba", "javax.servlet" ]
com.haulmont.cuba; javax.servlet;
1,607,042
private void stopServer() { logger.info("Stopping server"); if (configManager != null) { configManager.savePlayerStates(); } for (int i = 0; i < worldMngr.length; i++) { WorldServer worldserver = worldMngr[i]; if (worldserver...
void function() { logger.info(STR); if (configManager != null) { configManager.savePlayerStates(); } for (int i = 0; i < worldMngr.length; i++) { WorldServer worldserver = worldMngr[i]; if (worldserver != null) { saveServerWorld(); } } }
/** * Saves all necessary data as preparation for stopping the server. */
Saves all necessary data as preparation for stopping the server
stopServer
{ "repo_name": "sethten/MoDesserts", "path": "mcp50/src/minecraft_server/net/minecraft/server/MinecraftServer.java", "license": "gpl-3.0", "size": 26924 }
[ "net.minecraft.src.WorldServer" ]
import net.minecraft.src.WorldServer;
import net.minecraft.src.*;
[ "net.minecraft.src" ]
net.minecraft.src;
1,665,526
public void testReservationOnBlacklistedTracker() throws Exception { TaskAttemptID[] taskAttemptID = new TaskAttemptID[3]; JobConf conf = new JobConf(); conf.setSpeculativeExecution(false); conf.setNumMapTasks(2); conf.setNumReduceTasks(2); conf.set(JobContext.REDUCE_FAILURES_MAXPERCENT, ".70"...
void function() throws Exception { TaskAttemptID[] taskAttemptID = new TaskAttemptID[3]; JobConf conf = new JobConf(); conf.setSpeculativeExecution(false); conf.setNumMapTasks(2); conf.setNumReduceTasks(2); conf.set(JobContext.REDUCE_FAILURES_MAXPERCENT, ".70"); conf.set(JobContext.MAP_FAILURES_MAX_PERCENT, ".70"); con...
/** * Test case to check if the job reservation is handled properly if the * job has a reservation on a black listed tracker. * * @throws Exception */
Test case to check if the job reservation is handled properly if the job has a reservation on a black listed tracker
testReservationOnBlacklistedTracker
{ "repo_name": "rekhajoshm/mapreduce-fork", "path": "src/test/mapred/org/apache/hadoop/mapred/TestTrackerReservation.java", "license": "apache-2.0", "size": 11398 }
[ "java.util.ArrayList", "org.apache.hadoop.mapred.FakeObjectUtilities", "org.apache.hadoop.mapreduce.ClusterMetrics", "org.apache.hadoop.mapreduce.TaskType", "org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker" ]
import java.util.ArrayList; import org.apache.hadoop.mapred.FakeObjectUtilities; import org.apache.hadoop.mapreduce.ClusterMetrics; import org.apache.hadoop.mapreduce.TaskType; import org.apache.hadoop.mapreduce.server.jobtracker.TaskTracker;
import java.util.*; import org.apache.hadoop.mapred.*; import org.apache.hadoop.mapreduce.*; import org.apache.hadoop.mapreduce.server.jobtracker.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,138,458
public ServiceFuture<UserInner> beginCreateOrUpdateAsync(String resourceGroupName, String labName, String name, UserInner user, final ServiceCallback<UserInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, labName, name, user), serviceCa...
ServiceFuture<UserInner> function(String resourceGroupName, String labName, String name, UserInner user, final ServiceCallback<UserInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, labName, name, user), serviceCallback); }
/** * Create or replace an existing user profile. This operation can take a while to complete. * * @param resourceGroupName The name of the resource group. * @param labName The name of the lab. * @param name The name of the user profile. * @param user Profile of a lab user. * @param s...
Create or replace an existing user profile. This operation can take a while to complete
beginCreateOrUpdateAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/devtestlabs/mgmt-v2018_09_15/src/main/java/com/microsoft/azure/management/devtestlabs/v2018_09_15/implementation/UsersInner.java", "license": "mit", "size": 61863 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
2,767,656
boolean readFromFile(RandomAccessFile file, ByteBuffer readBuffer, long offset, long fileNo, boolean dataKnownToBeInFile) throws DatabaseException { try { if (useWr...
boolean readFromFile(RandomAccessFile file, ByteBuffer readBuffer, long offset, long fileNo, boolean dataKnownToBeInFile) throws DatabaseException { try { if (useWriteQueue && endOfLog.checkWriteCache(readBuffer, offset, fileNo)) { return true; } boolean readThisFile = true; if (!dataKnownToBeInFile) { readThisFile = (...
/** * Read a buffer from a file at a given offset. * * @return true if the read buffer is filled, false, if there is nothing * left in the file to read */
Read a buffer from a file at a given offset
readFromFile
{ "repo_name": "prat0318/dbms", "path": "mini_dbms/je-5.0.103/src/com/sleepycat/je/log/FileManager.java", "license": "mit", "size": 119870 }
[ "com.sleepycat.je.DatabaseException", "com.sleepycat.je.EnvironmentFailureException", "com.sleepycat.je.ThreadInterruptedException", "com.sleepycat.je.dbi.EnvironmentFailureReason", "java.io.IOException", "java.io.RandomAccessFile", "java.nio.ByteBuffer", "java.nio.channels.ClosedChannelException" ]
import com.sleepycat.je.DatabaseException; import com.sleepycat.je.EnvironmentFailureException; import com.sleepycat.je.ThreadInterruptedException; import com.sleepycat.je.dbi.EnvironmentFailureReason; import java.io.IOException; import java.io.RandomAccessFile; import java.nio.ByteBuffer; import java.nio.channels.Clos...
import com.sleepycat.je.*; import com.sleepycat.je.dbi.*; import java.io.*; import java.nio.*; import java.nio.channels.*;
[ "com.sleepycat.je", "java.io", "java.nio" ]
com.sleepycat.je; java.io; java.nio;
2,225,441
private boolean siteHasTool(String siteId, String toolId) { boolean rv = false; try { Site s = SiteService.getSite(siteId); if (s.getToolForCommonId(toolId) != null) { rv = true; } } catch (Exception e) { M_log.warn(this + "siteHasTool" + e.getMessage() + siteId); } return rv; }
boolean function(String siteId, String toolId) { boolean rv = false; try { Site s = SiteService.getSite(siteId); if (s.getToolForCommonId(toolId) != null) { rv = true; } } catch (Exception e) { M_log.warn(this + STR + e.getMessage() + siteId); } return rv; }
/** * whether the site has the specified tool * @param siteId * @return */
whether the site has the specified tool
siteHasTool
{ "repo_name": "udayg/sakai", "path": "assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java", "license": "apache-2.0", "size": 672322 }
[ "org.sakaiproject.site.api.Site", "org.sakaiproject.site.cover.SiteService" ]
import org.sakaiproject.site.api.Site; import org.sakaiproject.site.cover.SiteService;
import org.sakaiproject.site.api.*; import org.sakaiproject.site.cover.*;
[ "org.sakaiproject.site" ]
org.sakaiproject.site;
1,838,713
public static String generateResetKey() { return RandomStringUtils.randomNumeric(DEF_COUNT); }
static String function() { return RandomStringUtils.randomNumeric(DEF_COUNT); }
/** * Generates a reset key. * * @return the generated reset key */
Generates a reset key
generateResetKey
{ "repo_name": "igloooooo/Plagueheart", "path": "src/main/java/au/com/iglooit/searchcloud/service/util/RandomUtil.java", "license": "apache-2.0", "size": 898 }
[ "org.apache.commons.lang.RandomStringUtils" ]
import org.apache.commons.lang.RandomStringUtils;
import org.apache.commons.lang.*;
[ "org.apache.commons" ]
org.apache.commons;
2,780,947
@Nonnull public static StubObject createForUser (@Nullable final String sUserID) { return new StubObject (GlobalIDFactory.getNewPersistentStringID (), sUserID, null); }
static StubObject function (@Nullable final String sUserID) { return new StubObject (GlobalIDFactory.getNewPersistentStringID (), sUserID, null); }
/** * Create a {@link StubObject} using the provided user ID and a new object ID * * @param sUserID * User ID * @return Never <code>null</code>. */
Create a <code>StubObject</code> using the provided user ID and a new object ID
createForUser
{ "repo_name": "phax/ph-oton", "path": "ph-oton-security/src/main/java/com/helger/photon/security/object/StubObject.java", "license": "apache-2.0", "size": 5182 }
[ "com.helger.commons.id.factory.GlobalIDFactory", "javax.annotation.Nullable" ]
import com.helger.commons.id.factory.GlobalIDFactory; import javax.annotation.Nullable;
import com.helger.commons.id.factory.*; import javax.annotation.*;
[ "com.helger.commons", "javax.annotation" ]
com.helger.commons; javax.annotation;
820,352
public static String b64Encode(byte[] data) { return Base64.getEncoder().encodeToString(data); }
static String function(byte[] data) { return Base64.getEncoder().encodeToString(data); }
/** * Base 64 encode the given byte array and gives the encoded string * * @param data The data to encode * @return Encoded string */
Base 64 encode the given byte array and gives the encoded string
b64Encode
{ "repo_name": "kingthorin/zap-extensions", "path": "addOns/saml/src/main/java/org/zaproxy/zap/extension/saml/SAMLUtils.java", "license": "apache-2.0", "size": 7109 }
[ "java.util.Base64" ]
import java.util.Base64;
import java.util.*;
[ "java.util" ]
java.util;
628,011
@Override public KeyOpResponseMessageWithRawJsonContent sign(String keyIdentifier, KeyOpRequestMessageWithRawJsonContent keyOpRequest) throws IOException, ServiceException { // Validate if (keyIdentifier == null) { throw new NullPointerException("keyIdentifier"); } if...
KeyOpResponseMessageWithRawJsonContent function(String keyIdentifier, KeyOpRequestMessageWithRawJsonContent keyOpRequest) throws IOException, ServiceException { if (keyIdentifier == null) { throw new NullPointerException(STR); } if (keyOpRequest == null) { throw new NullPointerException(STR); } boolean shouldTrace = Cl...
/** * Creates a signature from a digest using the specified key in the vault * * @param keyIdentifier * Required. * @param keyOpRequest * Required. * @throws IOException * Signals that an I/O exception of some sort has occurred. This * ...
Creates a signature from a digest using the specified key in the vault
sign
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "services/keyvault/azure-keyvault/src/main/java/com/microsoft/azure/keyvault/KeyOperationsImpl.java", "license": "apache-2.0", "size": 79999 }
[ "com.microsoft.windowsazure.core.utils.StreamUtils", "com.microsoft.windowsazure.exception.ServiceException", "com.microsoft.windowsazure.tracing.CloudTracing", "java.io.IOException", "java.io.InputStream", "java.util.HashMap", "org.apache.http.HttpResponse", "org.apache.http.HttpStatus" ]
import com.microsoft.windowsazure.core.utils.StreamUtils; import com.microsoft.windowsazure.exception.ServiceException; import com.microsoft.windowsazure.tracing.CloudTracing; import java.io.IOException; import java.io.InputStream; import java.util.HashMap; import org.apache.http.HttpResponse; import org.apache.http.Ht...
import com.microsoft.windowsazure.core.utils.*; import com.microsoft.windowsazure.exception.*; import com.microsoft.windowsazure.tracing.*; import java.io.*; import java.util.*; import org.apache.http.*;
[ "com.microsoft.windowsazure", "java.io", "java.util", "org.apache.http" ]
com.microsoft.windowsazure; java.io; java.util; org.apache.http;
281,244
public void add(ComplexEventChunk complexEventChunk) { try { this.lockWrapper.lock(); complexEventChunk.reset(); // Convert all events to StreamEvent because StateEvents can be passed if directly received from a join ComplexEvent complexEvents = complexEventC...
void function(ComplexEventChunk complexEventChunk) { try { this.lockWrapper.lock(); complexEventChunk.reset(); ComplexEvent complexEvents = complexEventChunk.getFirst(); StreamEvent firstEvent = streamEventPool.borrowEvent(); eventConverter.convertComplexEvent(complexEvents, firstEvent); StreamEvent currentEvent = firs...
/** * Add the given ComplexEventChunk to the Window. * * @param complexEventChunk the event chunk to be added */
Add the given ComplexEventChunk to the Window
add
{ "repo_name": "sajithshn/siddhi", "path": "modules/siddhi-core/src/main/java/org/wso2/siddhi/core/window/Window.java", "license": "apache-2.0", "size": 14266 }
[ "org.wso2.siddhi.core.event.ComplexEvent", "org.wso2.siddhi.core.event.ComplexEventChunk", "org.wso2.siddhi.core.event.stream.StreamEvent" ]
import org.wso2.siddhi.core.event.ComplexEvent; import org.wso2.siddhi.core.event.ComplexEventChunk; import org.wso2.siddhi.core.event.stream.StreamEvent;
import org.wso2.siddhi.core.event.*; import org.wso2.siddhi.core.event.stream.*;
[ "org.wso2.siddhi" ]
org.wso2.siddhi;
2,137,305
public TrustManager getTrustManager() { return trustManager; } /** * Override the default {@link TrustManager} to use; if set to {@code null}, * the default TrustManager from the JVM will be used. * * @param trustManager The TrustManager implementation to set, may be {@code null...
TrustManager function() { return trustManager; } /** * Override the default {@link TrustManager} to use; if set to {@code null}, * the default TrustManager from the JVM will be used. * * @param trustManager The TrustManager implementation to set, may be {@code null}
/** * Get the currently configured {@link TrustManager}. * * @return A TrustManager instance. */
Get the currently configured <code>TrustManager</code>
getTrustManager
{ "repo_name": "mohanaraosv/commons-net", "path": "src/main/java/org/apache/commons/net/ftp/FTPSClient.java", "license": "apache-2.0", "size": 33012 }
[ "javax.net.ssl.TrustManager" ]
import javax.net.ssl.TrustManager;
import javax.net.ssl.*;
[ "javax.net" ]
javax.net;
1,893,042
private MapSqlParameterSource getFullQuotaParameterMap(Quota quota) { MapSqlParameterSource quotaParameterMap = getCustomMapSqlParameterSource() .addValue("id", quota.getId()) .addValue("quota_id", quota.getId()) .addVal...
MapSqlParameterSource function(Quota quota) { MapSqlParameterSource quotaParameterMap = getCustomMapSqlParameterSource() .addValue("id", quota.getId()) .addValue(STR, quota.getId()) .addValue(STR, null) .addValue(STR, null) .addValue(STR, quota.getGlobalQuotaStorage() != null ? quota.getGlobalQuotaStorage() .getStorage...
/** * Build parameter map, for quota limitation table, to indicate global limitation on <code>StoragePool</code>. * * @param quota * - The global quota. * @return - Global quota Parameter Map. */
Build parameter map, for quota limitation table, to indicate global limitation on <code>StoragePool</code>
getFullQuotaParameterMap
{ "repo_name": "jbeecham/ovirt-engine", "path": "backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/QuotaDAODbFacadeImpl.java", "license": "apache-2.0", "size": 22521 }
[ "org.ovirt.engine.core.common.businessentities.Quota", "org.springframework.jdbc.core.namedparam.MapSqlParameterSource" ]
import org.ovirt.engine.core.common.businessentities.Quota; import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.ovirt.engine.core.common.businessentities.*; import org.springframework.jdbc.core.namedparam.*;
[ "org.ovirt.engine", "org.springframework.jdbc" ]
org.ovirt.engine; org.springframework.jdbc;
2,369,285
private static List<ImmutableBytesWritable> getRegionStartKeys(HTable table) throws IOException { byte[][] byteKeys = table.getStartKeys(); ArrayList<ImmutableBytesWritable> ret = new ArrayList<ImmutableBytesWritable>(byteKeys.length); for (byte[] byteKey : byteKeys) { ret.add(new ImmutableB...
static List<ImmutableBytesWritable> function(HTable table) throws IOException { byte[][] byteKeys = table.getStartKeys(); ArrayList<ImmutableBytesWritable> ret = new ArrayList<ImmutableBytesWritable>(byteKeys.length); for (byte[] byteKey : byteKeys) { ret.add(new ImmutableBytesWritable(byteKey)); } return ret; }
/** * Return the start keys of all of the regions in this table, * as a list of ImmutableBytesWritable. */
Return the start keys of all of the regions in this table, as a list of ImmutableBytesWritable
getRegionStartKeys
{ "repo_name": "lichongxin/hbase-snapshot", "path": "src/main/java/org/apache/hadoop/hbase/mapreduce/HFileOutputFormat.java", "license": "apache-2.0", "size": 11301 }
[ "java.io.IOException", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hbase.client.HTable", "org.apache.hadoop.hbase.io.ImmutableBytesWritable" ]
import java.io.IOException; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hbase.client.HTable; import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.io.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
982,291
public void pushDownSeverityMapping(String mapping) throws DataException { if (!exists()) { throw notFoundExc; } List<String> mappings = getValidSeverityMappings(); int sortPos = getSortPosOfSeverityMapping(mapping); if (sortPos < getLastSortPosOfSeverityMappings() && isValidSeverityMapping(mapping))...
void function(String mapping) throws DataException { if (!exists()) { throw notFoundExc; } List<String> mappings = getValidSeverityMappings(); int sortPos = getSortPosOfSeverityMapping(mapping); if (sortPos < getLastSortPosOfSeverityMappings() && isValidSeverityMapping(mapping)) { String otherMapping = mappings.get(sor...
/** * Pushes down the given severity mapping. * * @param mapping * the mapping * * @throws DataException * If an error occurs while pushing the severity mapping */
Pushes down the given severity mapping
pushDownSeverityMapping
{ "repo_name": "googol42/revager", "path": "src/org/revager/app/model/appdata/AppCSVProfile.java", "license": "gpl-3.0", "size": 23381 }
[ "java.util.List", "org.revager.app.model.Data", "org.revager.app.model.DataException" ]
import java.util.List; import org.revager.app.model.Data; import org.revager.app.model.DataException;
import java.util.*; import org.revager.app.model.*;
[ "java.util", "org.revager.app" ]
java.util; org.revager.app;
348,066
public void removeItem(String username, String protocol, String GUID) throws DataAccessException { Connection connection = null; PreparedStatement ps = null; try { connection = userDataSource.getRoutedConnection(username); ps = connection.prepar...
void function(String username, String protocol, String GUID) throws DataAccessException { Connection connection = null; PreparedStatement ps = null; try { connection = userDataSource.getRoutedConnection(username); ps = connection.prepareStatement(Query.INBOX_DELETE_EMAIL); ps.setString(1, GUID ); ps.setString(2, userna...
/** * * Removes the ServerItems from the DB * */
Removes the ServerItems from the DB
removeItem
{ "repo_name": "accesstest3/cfunambol", "path": "modules/email/inbox-listener/src/main/java/com/funambol/email/inboxlistener/dbdao/InboxListenerDAO.java", "license": "agpl-3.0", "size": 24183 }
[ "com.funambol.email.util.Query", "com.funambol.framework.tools.DBTools", "com.funambol.pushlistener.service.registry.dao.DataAccessException", "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.SQLException" ]
import com.funambol.email.util.Query; import com.funambol.framework.tools.DBTools; import com.funambol.pushlistener.service.registry.dao.DataAccessException; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException;
import com.funambol.email.util.*; import com.funambol.framework.tools.*; import com.funambol.pushlistener.service.registry.dao.*; import java.sql.*;
[ "com.funambol.email", "com.funambol.framework", "com.funambol.pushlistener", "java.sql" ]
com.funambol.email; com.funambol.framework; com.funambol.pushlistener; java.sql;
2,732,649
public static void checkScrollBar () { JScrollBar bar = scrollPane.getVerticalScrollBar(); bar.setValue( bar.getMaximum() ); }
static void function () { JScrollBar bar = scrollPane.getVerticalScrollBar(); bar.setValue( bar.getMaximum() ); }
/** * Ensure that the scroll bar is set to the bottom of the chat display area */
Ensure that the scroll bar is set to the bottom of the chat display area
checkScrollBar
{ "repo_name": "wjpmclawrence/TechComparisonProject", "path": "Serverp/src/ClientInterface/ServerGUI.java", "license": "apache-2.0", "size": 5297 }
[ "javax.swing.JScrollBar" ]
import javax.swing.JScrollBar;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,156,930
if (obj == null) { return "(none)"; } return obj.toString(); } public DirectClassFile(ByteArray bytes, String filePath, boolean strictParse) { if (bytes == null) { throw new NullPointerException("bytes == null"); } ...
if (obj == null) { return STR; } return obj.toString(); } public DirectClassFile(ByteArray bytes, String filePath, boolean strictParse) { if (bytes == null) { throw new NullPointerException(STR); } if (filePath == null) { throw new NullPointerException(STR); } this.filePath = filePath; this.bytes = bytes; this.strictPa...
/** * Returns the string form of an object or {@code "(none)"} * (rather than {@code "null"}) for {@code null}. * * @param obj {@code null-ok;} the object to stringify * @return {@code non-null;} the appropriate string form */
Returns the string form of an object or "(none)" (rather than "null") for null
stringOrNone
{ "repo_name": "MoSync/MoSync", "path": "tools/android/dx/src/com/android/dx/cf/direct/DirectClassFile.java", "license": "gpl-2.0", "size": 21108 }
[ "com.android.dx.util.ByteArray" ]
import com.android.dx.util.ByteArray;
import com.android.dx.util.*;
[ "com.android.dx" ]
com.android.dx;
1,043,246
private Query createUserSearchQuery(String name, List<Role> roles, boolean includeRetired, String hqlSelectStart) { log.debug("name: " + name); name = HibernateUtil.escapeSqlWildcards(name, sessionFactory); // Create an HQL query like this: // select distinct user // from User as user inner join u...
Query function(String name, List<Role> roles, boolean includeRetired, String hqlSelectStart) { log.debug(STR + name); name = HibernateUtil.escapeSqlWildcards(name, sessionFactory); List<String> criteria = new ArrayList<String>(); int counter = 0; Map<String, String> namesMap = new HashMap<String, String>(); if (name !=...
/** * Utility methods that creates a hibernate query object from the specified arguments * * @param name The name of the user to search against * @param roles the roles to match against * @param includeRetired Specifies if retired users should be included or not * @param hqlSelectStart The starting phrase o...
Utility methods that creates a hibernate query object from the specified arguments
createUserSearchQuery
{ "repo_name": "Winbobob/openmrs-core", "path": "api/src/main/java/org/openmrs/api/db/hibernate/HibernateUserDAO.java", "license": "mpl-2.0", "size": 19187 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.Iterator", "java.util.List", "java.util.Map", "org.apache.commons.collections.CollectionUtils", "org.hibernate.Query", "org.openmrs.Role" ]
import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import org.apache.commons.collections.CollectionUtils; import org.hibernate.Query; import org.openmrs.Role;
import java.util.*; import org.apache.commons.collections.*; import org.hibernate.*; import org.openmrs.*;
[ "java.util", "org.apache.commons", "org.hibernate", "org.openmrs" ]
java.util; org.apache.commons; org.hibernate; org.openmrs;
2,417,062
public static AnnuityCouponFixedDefinition from(final Currency currency, final ZonedDateTime settlementDate, final ZonedDateTime[] paymentDatesUnadjusted, final Frequency frequency, final Calendar calendar, final DayCount dayCount, final BusinessDayConvention businessDay, final boolean isEOM, final double notio...
static AnnuityCouponFixedDefinition function(final Currency currency, final ZonedDateTime settlementDate, final ZonedDateTime[] paymentDatesUnadjusted, final Frequency frequency, final Calendar calendar, final DayCount dayCount, final BusinessDayConvention businessDay, final boolean isEOM, final double notional, final ...
/** * Annuity builder from the conventions and common characteristics. * @param currency The annuity currency. * @param settlementDate The settlement date. * @param paymentDatesUnadjusted The (unadjusted) payment dates of the annuity. * @param frequency The payment frequency. * @param calendar The cal...
Annuity builder from the conventions and common characteristics
from
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/instrument/annuity/AnnuityCouponFixedDefinition.java", "license": "apache-2.0", "size": 21417 }
[ "com.opengamma.analytics.financial.instrument.payment.CouponFixedDefinition", "com.opengamma.analytics.financial.schedule.ScheduleCalculator", "com.opengamma.financial.convention.businessday.BusinessDayConvention", "com.opengamma.financial.convention.calendar.Calendar", "com.opengamma.financial.convention.d...
import com.opengamma.analytics.financial.instrument.payment.CouponFixedDefinition; import com.opengamma.analytics.financial.schedule.ScheduleCalculator; import com.opengamma.financial.convention.businessday.BusinessDayConvention; import com.opengamma.financial.convention.calendar.Calendar; import com.opengamma.financia...
import com.opengamma.analytics.financial.instrument.payment.*; import com.opengamma.analytics.financial.schedule.*; import com.opengamma.financial.convention.businessday.*; import com.opengamma.financial.convention.calendar.*; import com.opengamma.financial.convention.daycount.*; import com.opengamma.financial.conventi...
[ "com.opengamma.analytics", "com.opengamma.financial", "com.opengamma.util", "org.threeten.bp" ]
com.opengamma.analytics; com.opengamma.financial; com.opengamma.util; org.threeten.bp;
1,944,010
public Options perturbSingular(Boolean perturbSingular) { this.perturbSingular = perturbSingular; return this; } } @OpInputsMetadata( outputsClass = TridiagonalSolve.class ) public static class Inputs<T extends TType> extends RawOpInputs<TridiagonalSolve<T>> { public final Op...
Options function(Boolean perturbSingular) { this.perturbSingular = perturbSingular; return this; } } @OpInputsMetadata( outputsClass = TridiagonalSolve.class ) static class Inputs<T extends TType> extends RawOpInputs<TridiagonalSolve<T>> { public final Operand<T> diagonals; public final Operand<T> rhs; public final boo...
/** * Sets the perturbSingular option. * * @param perturbSingular the perturbSingular option * @return this Options instance. */
Sets the perturbSingular option
perturbSingular
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/gen/java/org/tensorflow/op/linalg/TridiagonalSolve.java", "license": "apache-2.0", "size": 7041 }
[ "java.util.Arrays", "org.tensorflow.GraphOperation", "org.tensorflow.Operand", "org.tensorflow.op.RawOpInputs", "org.tensorflow.op.annotation.OpInputsMetadata", "org.tensorflow.proto.framework.DataType", "org.tensorflow.types.family.TType" ]
import java.util.Arrays; import org.tensorflow.GraphOperation; import org.tensorflow.Operand; import org.tensorflow.op.RawOpInputs; import org.tensorflow.op.annotation.OpInputsMetadata; import org.tensorflow.proto.framework.DataType; import org.tensorflow.types.family.TType;
import java.util.*; import org.tensorflow.*; import org.tensorflow.op.*; import org.tensorflow.op.annotation.*; import org.tensorflow.proto.framework.*; import org.tensorflow.types.family.*;
[ "java.util", "org.tensorflow", "org.tensorflow.op", "org.tensorflow.proto", "org.tensorflow.types" ]
java.util; org.tensorflow; org.tensorflow.op; org.tensorflow.proto; org.tensorflow.types;
1,119,944