method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public static PipelineOptions testingPipelineOptions() {
try {
@Nullable String systemDataflowOptions = System.getProperty(PROPERTY_DATAFLOW_OPTIONS);
PipelineOptions options =
systemDataflowOptions == null
? PipelineOptionsFactory.create()
: PipelineOptionsFactor... | static PipelineOptions function() { try { @Nullable String systemDataflowOptions = System.getProperty(PROPERTY_DATAFLOW_OPTIONS); PipelineOptions options = systemDataflowOptions == null ? PipelineOptionsFactory.create() : PipelineOptionsFactory.fromArgs( MAPPER.readValue( System.getProperty(PROPERTY_DATAFLOW_OPTIONS), ... | /**
* Creates {@link PipelineOptions} for testing.
*/ | Creates <code>PipelineOptions</code> for testing | testingPipelineOptions | {
"repo_name": "shakamunyi/beam",
"path": "sdk/src/main/java/com/google/cloud/dataflow/sdk/testing/TestPipeline.java",
"license": "apache-2.0",
"size": 7086
} | [
"com.google.cloud.dataflow.sdk.options.ApplicationNameOptions",
"com.google.cloud.dataflow.sdk.options.GcpOptions",
"com.google.cloud.dataflow.sdk.options.PipelineOptions",
"com.google.cloud.dataflow.sdk.options.PipelineOptionsFactory",
"com.google.cloud.dataflow.sdk.util.TestCredential",
"java.io.IOExcep... | import com.google.cloud.dataflow.sdk.options.ApplicationNameOptions; import com.google.cloud.dataflow.sdk.options.GcpOptions; import com.google.cloud.dataflow.sdk.options.PipelineOptions; import com.google.cloud.dataflow.sdk.options.PipelineOptionsFactory; import com.google.cloud.dataflow.sdk.util.TestCredential; impor... | import com.google.cloud.dataflow.sdk.options.*; import com.google.cloud.dataflow.sdk.util.*; import java.io.*; import javax.annotation.*; | [
"com.google.cloud",
"java.io",
"javax.annotation"
] | com.google.cloud; java.io; javax.annotation; | 1,705,105 |
public static boolean isAtMost(Level level, Level levelMax) {
return (m_LevelComparator.compare(level, levelMax) <= 0);
} | static boolean function(Level level, Level levelMax) { return (m_LevelComparator.compare(level, levelMax) <= 0); } | /**
* Checks whether the level is at most the specified maximum level.
*
* @param level the level to check
* @param levelMax the maximum level to meet
* @return if maximum logging level met
*/ | Checks whether the level is at most the specified maximum level | isAtMost | {
"repo_name": "automenta/adams-core",
"path": "src/main/java/adams/core/logging/LoggingHelper.java",
"license": "gpl-3.0",
"size": 11644
} | [
"java.util.logging.Level"
] | import java.util.logging.Level; | import java.util.logging.*; | [
"java.util"
] | java.util; | 1,275,775 |
public ImageIcon getImagen()
{
if (estaEncendida())
return new ImageIcon("images/encendida.gif");
return new ImageIcon("images/apagada.gif");
}
| ImageIcon function() { if (estaEncendida()) return new ImageIcon(STR); return new ImageIcon(STR); } | /**
* Obtener imagen de la bombilla
*/ | Obtener imagen de la bombilla | getImagen | {
"repo_name": "djgonza/Programacion",
"path": "UT9/AD 08 Bombilla AL/Bombilla.java",
"license": "mit",
"size": 825
} | [
"javax.swing.ImageIcon"
] | import javax.swing.ImageIcon; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 872,116 |
public EntityManager getEntityManager(){
return emf.createEntityManager();
} | EntityManager function(){ return emf.createEntityManager(); } | /**
* create instance of entity manager
* @return instanciated entity manager
*/ | create instance of entity manager | getEntityManager | {
"repo_name": "djuerges/cotex",
"path": "CollaboraTex/src/main/java/de/uniluebeck/collaboratex/PersistenceManager.java",
"license": "apache-2.0",
"size": 784
} | [
"javax.persistence.EntityManager"
] | import javax.persistence.EntityManager; | import javax.persistence.*; | [
"javax.persistence"
] | javax.persistence; | 1,730,132 |
public void probe(HttpRoute route);
| void function(HttpRoute route); | /**
* Called when we have determined that the result of
* using a connection has succeeded and that we may
* probe for more connections.
*/ | Called when we have determined that the result of using a connection has succeeded and that we may probe for more connections | probe | {
"repo_name": "pplante/droidtowers",
"path": "main/source/org/apach3/http/client/BackoffManager.java",
"license": "mit",
"size": 1930
} | [
"org.apach3.http.conn.routing.HttpRoute"
] | import org.apach3.http.conn.routing.HttpRoute; | import org.apach3.http.conn.routing.*; | [
"org.apach3.http"
] | org.apach3.http; | 2,526,260 |
public static void deleteSortLocationIfExists(String[] locations) {
for (String loc : locations) {
File file = new File(loc);
if (file.exists()) {
try {
CarbonUtil.deleteFoldersAndFiles(file);
} catch (IOException | InterruptedException e) {
LOGGER.error(e, "Failed ... | static void function(String[] locations) { for (String loc : locations) { File file = new File(loc); if (file.exists()) { try { CarbonUtil.deleteFoldersAndFiles(file); } catch (IOException InterruptedException e) { LOGGER.error(e, STR + loc); } } } } | /**
* This method will be used to delete sort temp location is it is exites
*/ | This method will be used to delete sort temp location is it is exites | deleteSortLocationIfExists | {
"repo_name": "PallaviSingh1992/carbondata",
"path": "processing/src/main/java/org/apache/carbondata/processing/util/CarbonDataProcessorUtil.java",
"license": "apache-2.0",
"size": 25120
} | [
"java.io.File",
"java.io.IOException",
"org.apache.carbondata.core.util.CarbonUtil"
] | import java.io.File; import java.io.IOException; import org.apache.carbondata.core.util.CarbonUtil; | import java.io.*; import org.apache.carbondata.core.util.*; | [
"java.io",
"org.apache.carbondata"
] | java.io; org.apache.carbondata; | 1,248,090 |
private void setBucketNumber(CacheConfiguration cfg)
{
long memSize = cfg.getMaxMemory();
float compFactor = getAvgCompression(cfg.getCodecType());
long bSize= (long) (blockSize / compFactor);
int bucketNumber = (int) (memSize / bSize);
cfg.setBucketNumber(bucketNumber);
} | void function(CacheConfiguration cfg) { long memSize = cfg.getMaxMemory(); float compFactor = getAvgCompression(cfg.getCodecType()); long bSize= (long) (blockSize / compFactor); int bucketNumber = (int) (memSize / bSize); cfg.setBucketNumber(bucketNumber); } | /**
* Sets the bucket number.
*
* @param cfg the new bucket number
*/ | Sets the bucket number | setBucketNumber | {
"repo_name": "VladRodionov/bigbase",
"path": "block-cache/src/main/java/com/koda/integ/hbase/blockcache/OffHeapBlockCache.java",
"license": "agpl-3.0",
"size": 42395
} | [
"com.koda.config.CacheConfiguration"
] | import com.koda.config.CacheConfiguration; | import com.koda.config.*; | [
"com.koda.config"
] | com.koda.config; | 2,215,099 |
void setSequenceKey(RegistryKeyProperty value); | void setSequenceKey(RegistryKeyProperty value); | /**
* Sets the value of the '{@link org.wso2.developerstudio.eclipse.esb.mediators.ThrottleOnRejectBranch#getSequenceKey <em>Sequence Key</em>}' containment reference.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param value the new value of the '<em>Sequence Key</em>' containment reference.
* @see #g... | Sets the value of the '<code>org.wso2.developerstudio.eclipse.esb.mediators.ThrottleOnRejectBranch#getSequenceKey Sequence Key</code>' containment reference. | setSequenceKey | {
"repo_name": "chanakaudaya/developer-studio",
"path": "esb/org.wso2.developerstudio.eclipse.esb/src/org/wso2/developerstudio/eclipse/esb/mediators/ThrottleOnRejectBranch.java",
"license": "apache-2.0",
"size": 3842
} | [
"org.wso2.developerstudio.eclipse.esb.RegistryKeyProperty"
] | import org.wso2.developerstudio.eclipse.esb.RegistryKeyProperty; | import org.wso2.developerstudio.eclipse.esb.*; | [
"org.wso2.developerstudio"
] | org.wso2.developerstudio; | 1,399,074 |
public Instances generateExamples() throws Exception {
Instances result;
int i;
result = new Instances(m_DatasetFormat, 0);
m_Random = new Random(getSeed());
for (i = 0; i < getNumExamplesAct(); i++)
result.add(generateExample());
return result;
} | Instances function() throws Exception { Instances result; int i; result = new Instances(m_DatasetFormat, 0); m_Random = new Random(getSeed()); for (i = 0; i < getNumExamplesAct(); i++) result.add(generateExample()); return result; } | /**
* Generates all examples of the dataset. Re-initializes the random number
* generator with the given seed, before generating instances.
*
* @return the generated dataset
* @throws Exception if the format of the dataset is not yet defined
* @throws Exception if the generator only works with generat... | Generates all examples of the dataset. Re-initializes the random number generator with the given seed, before generating instances | generateExamples | {
"repo_name": "williamClanton/jbossBA",
"path": "weka/src/main/java/weka/datagenerators/classifiers/classification/LED24.java",
"license": "gpl-2.0",
"size": 13541
} | [
"java.util.Random"
] | import java.util.Random; | import java.util.*; | [
"java.util"
] | java.util; | 1,737,748 |
public void setAlignment(Alignment alignment) {
this.alignment = alignment;
} | void function(Alignment alignment) { this.alignment = alignment; } | /**
* Modifica o Alinhamento da classe
*
* @param alignment {@code Alignment} Alinhamento da classe
*/ | Modifica o Alinhamento da classe | setAlignment | {
"repo_name": "mohawkeagle/OD-Controler",
"path": "src/main/java/br/com/urcontroler/data/entity/ClassBase.java",
"license": "gpl-2.0",
"size": 11151
} | [
"br.com.urcontroler.data.enums.Alignment"
] | import br.com.urcontroler.data.enums.Alignment; | import br.com.urcontroler.data.enums.*; | [
"br.com.urcontroler"
] | br.com.urcontroler; | 322,131 |
@Test
public void testCommandOptions() throws Exception {
final String className = this.getClass().getName();
assertFalse(validateCommand(new String[] { "-foo" }));
// fail due to insufficient number of arguments
assertFalse(validateCommand(new String[] {}));
assertFalse(validateCommand(new Str... | void function() throws Exception { final String className = this.getClass().getName(); assertFalse(validateCommand(new String[] { "-foo" })); assertFalse(validateCommand(new String[] {})); assertFalse(validateCommand(new String[] { STR })); assertFalse(validateCommand(new String[] { STR })); assertFalse(validateCommand... | /**
* Test client command line options. Does not validate server behavior.
* @throws Exception if commands return unexpected results.
*/ | Test client command line options. Does not validate server behavior | testCommandOptions | {
"repo_name": "apurtell/hbase",
"path": "hbase-http/src/test/java/org/apache/hadoop/hbase/http/log/TestLogLevel.java",
"license": "apache-2.0",
"size": 19678
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 739,670 |
private Map<String, ULocale> getRulesIdToEquivalentULocaleMap() {
checkBuildRulesIdMaps();
return rulesIdToEquivalentULocale;
} | Map<String, ULocale> function() { checkBuildRulesIdMaps(); return rulesIdToEquivalentULocale; } | /**
* Returns the lazily-constructed map.
*/ | Returns the lazily-constructed map | getRulesIdToEquivalentULocaleMap | {
"repo_name": "nguyentathuu/quickdic-dictionary.dictionary",
"path": "jars/icu4j-52_1/main/classes/core/src/com/ibm/icu/impl/PluralRulesLoader.java",
"license": "apache-2.0",
"size": 9622
} | [
"com.ibm.icu.util.ULocale",
"java.util.Map"
] | import com.ibm.icu.util.ULocale; import java.util.Map; | import com.ibm.icu.util.*; import java.util.*; | [
"com.ibm.icu",
"java.util"
] | com.ibm.icu; java.util; | 1,566,476 |
@NonNull
public ColumnDef<T, ?> column(@NonNull String property) {
return getColumnList().column(property);
} | ColumnDef<T, ?> function(@NonNull String property) { return getColumnList().column(property); } | /**
* This adds a column on the specified property, but has no idea about the real type. It can be used as long
* as that type is not needed.
*/ | This adds a column on the specified property, but has no idea about the real type. It can be used as long as that type is not needed | column | {
"repo_name": "fjalvingh/domui",
"path": "to.etc.domui/src/main/java/to/etc/domui/component/tbl/RowRenderer.java",
"license": "lgpl-2.1",
"size": 30814
} | [
"org.eclipse.jdt.annotation.NonNull"
] | import org.eclipse.jdt.annotation.NonNull; | import org.eclipse.jdt.annotation.*; | [
"org.eclipse.jdt"
] | org.eclipse.jdt; | 905,777 |
public Observable<ServiceResponse<Page<RemediationInner>>> listForResourceSinglePageAsync(final String resourceId, final QueryOptions queryOptions) {
if (resourceId == null) {
throw new IllegalArgumentException("Parameter resourceId is required and cannot be null.");
}
Validator.... | Observable<ServiceResponse<Page<RemediationInner>>> function(final String resourceId, final QueryOptions queryOptions) { if (resourceId == null) { throw new IllegalArgumentException(STR); } Validator.validate(queryOptions); final String apiVersion = STR; Integer top = null; if (queryOptions != null) { top = queryOption... | /**
* Gets all remediations for a resource.
*
ServiceResponse<PageImpl<RemediationInner>> * @param resourceId Resource ID.
ServiceResponse<PageImpl<RemediationInner>> * @param queryOptions Additional parameters for the operation
* @throws IllegalArgumentException thrown if parameters fail the val... | Gets all remediations for a resource | listForResourceSinglePageAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/policyinsights/mgmt-v2018_07_01_preview/src/main/java/com/microsoft/azure/management/policyinsights/v2018_07_01_preview/implementation/RemediationsInner.java",
"license": "mit",
"size": 261004
} | [
"com.microsoft.azure.Page",
"com.microsoft.azure.management.policyinsights.v2018_07_01_preview.QueryOptions",
"com.microsoft.rest.ServiceResponse",
"com.microsoft.rest.Validator"
] | import com.microsoft.azure.Page; import com.microsoft.azure.management.policyinsights.v2018_07_01_preview.QueryOptions; import com.microsoft.rest.ServiceResponse; import com.microsoft.rest.Validator; | import com.microsoft.azure.*; import com.microsoft.azure.management.policyinsights.v2018_07_01_preview.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 2,336,725 |
public boolean addExternalAPIStoresDetails(APIIdentifier apiId, Set<APIStore> apiStoreSet)
throws APIManagementException {
Connection conn = null;
PreparedStatement ps = null;
boolean state = false;
try {
conn = APIMgtDBUtil.getConnection();
conn.s... | boolean function(APIIdentifier apiId, Set<APIStore> apiStoreSet) throws APIManagementException { Connection conn = null; PreparedStatement ps = null; boolean state = false; try { conn = APIMgtDBUtil.getConnection(); conn.setAutoCommit(false); String sqlQuery = SQLConstants.ADD_EXTERNAL_API_STORE_SQL; int apiIdentifier;... | /**
* Store external APIStore details to which APIs successfully published
*
* @param apiId APIIdentifier
* @param apiStoreSet APIStores set
* @return added/failed
* @throws APIManagementException
*/ | Store external APIStore details to which APIs successfully published | addExternalAPIStoresDetails | {
"repo_name": "Rajith90/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/dao/ApiMgtDAO.java",
"license": "apache-2.0",
"size": 811404
} | [
"java.sql.Connection",
"java.sql.PreparedStatement",
"java.sql.SQLException",
"java.sql.Timestamp",
"java.util.Set",
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.api.model.APIIdentifier",
"org.wso2.carbon.apimgt.api.model.APIStore",
"org.wso2.carbon.apimgt.impl.dao.co... | import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Timestamp; import java.util.Set; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.APIIdentifier; import org.wso2.carbon.apimgt.api.model.APIStore; import org.wso2... | import java.sql.*; import java.util.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.dao.constants.*; import org.wso2.carbon.apimgt.impl.utils.*; | [
"java.sql",
"java.util",
"org.wso2.carbon"
] | java.sql; java.util; org.wso2.carbon; | 1,772,999 |
public Set<Plotter> getPlotters() {
return Collections.unmodifiableSet(plotters);
}
| Set<Plotter> function() { return Collections.unmodifiableSet(plotters); } | /**
* Gets an <b>unmodifiable</b> set of the plotter objects in the graph
*
* @return an unmodifiable {@link Set} of the plotter objects
*/ | Gets an unmodifiable set of the plotter objects in the graph | getPlotters | {
"repo_name": "syamn/Likes",
"path": "src/main/java/syam/likes/util/Metrics.java",
"license": "lgpl-3.0",
"size": 21708
} | [
"java.util.Collections",
"java.util.Set"
] | import java.util.Collections; import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 2,743,947 |
public boolean equals(Object obj2)
{
if (null == obj2)
return false;
if(obj2 instanceof XNumber)
return obj2.equals(this);
// In order to handle the 'all' semantics of
// nodeset comparisons, we always call the
// nodeset function.
else if (obj2 instan... | boolean function(Object obj2) { if (null == obj2) return false; if(obj2 instanceof XNumber) return obj2.equals(this); else if (obj2 instanceof XNodeSet) return obj2.equals(this); else if (obj2 instanceof XStringForFSB) return equals((XMLString) obj2); else return equals(obj2.toString()); } | /**
* Compares this string to the specified object.
* The result is <code>true</code> if and only if the argument is not
* <code>null</code> and is a <code>String</code> object that represents
* the same sequence of characters as this object.
*
* @param obj2 the object to compare this <c... | Compares this string to the specified object. The result is <code>true</code> if and only if the argument is not <code>null</code> and is a <code>String</code> object that represents the same sequence of characters as this object | equals | {
"repo_name": "kcsl/immutability-benchmark",
"path": "benchmark-applications/reiminfer-oopsla-2012/source/Xalan/src/org/apache/xpath/objects/XStringForFSB.java",
"license": "mit",
"size": 29255
} | [
"org.apache.xml.utils.XMLString"
] | import org.apache.xml.utils.XMLString; | import org.apache.xml.utils.*; | [
"org.apache.xml"
] | org.apache.xml; | 1,325,044 |
@Nullable()
public String getOutputPath()
{
return outputPath;
}
/**
* Specifies the path on the server filesystem to which the support data '
* archive should be written. If this is provided, then the value may be
* one of the following:
* <UL>
* <LI>If the path refers to a file that... | @Nullable() String function() { return outputPath; } /** * Specifies the path on the server filesystem to which the support data ' * archive should be written. If this is provided, then the value may be * one of the following: * <UL> * <LI>If the path refers to a file that exists, then the file will be * overwritten wi... | /**
* Retrieves the path on the server filesystem to which the support data
* archive should be written.
*
* @return The path on the server filesystem to which the support data
* archive should be written, or {@code null} if no value has been
* specified for the property.
*/ | Retrieves the path on the server filesystem to which the support data archive should be written | getOutputPath | {
"repo_name": "UnboundID/ldapsdk",
"path": "src/com/unboundid/ldap/sdk/unboundidds/tasks/CollectSupportDataTaskProperties.java",
"license": "gpl-2.0",
"size": 61360
} | [
"com.unboundid.util.Nullable"
] | import com.unboundid.util.Nullable; | import com.unboundid.util.*; | [
"com.unboundid.util"
] | com.unboundid.util; | 1,717,326 |
public JsonObject validateTokenToJson(String token) throws GitkitClientException {
if (token == null) {
return null;
}
try {
return gitkitTokenHelper.verifyAndDeserialize(token).getPayloadAsJsonObject();
} catch (SignatureException e) {
throw new GitkitClientException(e);
}
} | JsonObject function(String token) throws GitkitClientException { if (token == null) { return null; } try { return gitkitTokenHelper.verifyAndDeserialize(token).getPayloadAsJsonObject(); } catch (SignatureException e) { throw new GitkitClientException(e); } } | /**
* Verifies a Gitkit token.
*
* @param token token string to be verified.
* @return the JSON object for the payload of the token if the token is valid.
* @throws GitkitClientException if token has invalid signature
*/ | Verifies a Gitkit token | validateTokenToJson | {
"repo_name": "liujin-google/identity-toolkit-java",
"path": "src/main/java/com/google/identitytoolkit/GitkitClient.java",
"license": "apache-2.0",
"size": 20902
} | [
"com.google.gson.JsonObject",
"java.security.SignatureException"
] | import com.google.gson.JsonObject; import java.security.SignatureException; | import com.google.gson.*; import java.security.*; | [
"com.google.gson",
"java.security"
] | com.google.gson; java.security; | 79,491 |
public void setRefsortHLAPI(
SortHLAPI elem){
if(elem!=null)
item.setRefsort((Sort)elem.getContainedItem());
}
| void function( SortHLAPI elem){ if(elem!=null) item.setRefsort((Sort)elem.getContainedItem()); } | /**
* set Refsort
*/ | set Refsort | setRefsortHLAPI | {
"repo_name": "lhillah/pnmlframework",
"path": "pnmlFw-HLPN/src/fr/lip6/move/pnml/hlpn/lists/hlapi/EmptyListHLAPI.java",
"license": "epl-1.0",
"size": 113924
} | [
"fr.lip6.move.pnml.hlpn.terms.Sort",
"fr.lip6.move.pnml.hlpn.terms.hlapi.SortHLAPI"
] | import fr.lip6.move.pnml.hlpn.terms.Sort; import fr.lip6.move.pnml.hlpn.terms.hlapi.SortHLAPI; | import fr.lip6.move.pnml.hlpn.terms.*; import fr.lip6.move.pnml.hlpn.terms.hlapi.*; | [
"fr.lip6.move"
] | fr.lip6.move; | 5,496 |
public Lista<Carrera >darCarrerasTemporada(int anho);
| public Lista<Carrera >darCarrerasTemporada(int anho); | /**
* Devuelve la lista de todas las carreras de una temporada
* @param anho temporada a buscar
* @return lista de carreras
*/ | Devuelve la lista de todas las carreras de una temporada | darCarrerasTemporada | {
"repo_name": "Llamatech/LlamaF1Queries",
"path": "src/com/llama/tech/f1/backbone/IF1.java",
"license": "gpl-2.0",
"size": 5388
} | [
"com.llama.tech.utils.list.Lista"
] | import com.llama.tech.utils.list.Lista; | import com.llama.tech.utils.list.*; | [
"com.llama.tech"
] | com.llama.tech; | 2,083,441 |
public void sendPreserialized(ByteBuffer buffer, boolean cacheContentChanges,
DistributionMessage msg) throws IOException, ConnectionException {
if (!connected) {
throw new ConnectionException(
LocalizedStrings.Connection_NOT_CONNECTED_TO_0.toLocalizedString(this.remoteAddr));
}
if (... | void function(ByteBuffer buffer, boolean cacheContentChanges, DistributionMessage msg) throws IOException, ConnectionException { if (!connected) { throw new ConnectionException( LocalizedStrings.Connection_NOT_CONNECTED_TO_0.toLocalizedString(this.remoteAddr)); } if (this.batchFlusher != null) { batchSend(buffer); retu... | /**
* sends a serialized message to the other end of this connection. This is used by the
* DirectChannel in GemFire when the message is going to be sent to multiple recipients.
*
* @throws ConnectionException if the conduit has stopped
*/ | sends a serialized message to the other end of this connection. This is used by the DirectChannel in GemFire when the message is going to be sent to multiple recipients | sendPreserialized | {
"repo_name": "deepakddixit/incubator-geode",
"path": "geode-core/src/main/java/org/apache/geode/internal/tcp/Connection.java",
"license": "apache-2.0",
"size": 165015
} | [
"java.io.IOException",
"java.nio.ByteBuffer",
"java.nio.channels.SocketChannel",
"org.apache.geode.distributed.internal.DistributionMessage",
"org.apache.geode.internal.i18n.LocalizedStrings"
] | import java.io.IOException; import java.nio.ByteBuffer; import java.nio.channels.SocketChannel; import org.apache.geode.distributed.internal.DistributionMessage; import org.apache.geode.internal.i18n.LocalizedStrings; | import java.io.*; import java.nio.*; import java.nio.channels.*; import org.apache.geode.distributed.internal.*; import org.apache.geode.internal.i18n.*; | [
"java.io",
"java.nio",
"org.apache.geode"
] | java.io; java.nio; org.apache.geode; | 2,539,029 |
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux<BgpServiceCommunityInner> listAsync(Context context) {
return new PagedFlux<>(
() -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context));
} | @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<BgpServiceCommunityInner> function(Context context) { return new PagedFlux<>( () -> listSinglePageAsync(context), nextLink -> listNextSinglePageAsync(nextLink, context)); } | /**
* Gets all the available bgp service communities.
*
* @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 RuntimeEx... | Gets all the available bgp service communities | listAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/BgpServiceCommunitiesClientImpl.java",
"license": "mit",
"size": 12171
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedFlux",
"com.azure.core.util.Context",
"com.azure.resourcemanager.network.fluent.models.BgpServiceCommunityInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.core.util.Context; import com.azure.resourcemanager.network.fluent.models.BgpServiceCommunityInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,761,543 |
Stage<T> whenFailed(Consumer<? super Throwable> consumer); | Stage<T> whenFailed(Consumer<? super Throwable> consumer); | /**
* Register a listener that is called when a stage is failed.
*
* @param consumer listener to register
* @return the current stage
*/ | Register a listener that is called when a stage is failed | whenFailed | {
"repo_name": "udoprog/tiny-async-java",
"path": "tiny-async-api/src/main/java/eu/toolchain/concurrent/Stage.java",
"license": "apache-2.0",
"size": 9610
} | [
"java.util.function.Consumer"
] | import java.util.function.Consumer; | import java.util.function.*; | [
"java.util"
] | java.util; | 805,482 |
@Override
public void write(VarDataBuffer buff) throws IOException {
buff.writeVarInt(action.actionCode);
} | void function(VarDataBuffer buff) throws IOException { buff.writeVarInt(action.actionCode); } | /**
* Write packets data
*
* @param buff
* @throws IOException
*/ | Write packets data | write | {
"repo_name": "Camphul/MCProtocol",
"path": "src/main/java/com/lucadev/mcprotocol/protocol/packets/sbound/play/client/S03ClientStatus.java",
"license": "apache-2.0",
"size": 1192
} | [
"com.lucadev.mcprotocol.protocol.network.io.VarDataBuffer",
"java.io.IOException"
] | import com.lucadev.mcprotocol.protocol.network.io.VarDataBuffer; import java.io.IOException; | import com.lucadev.mcprotocol.protocol.network.io.*; import java.io.*; | [
"com.lucadev.mcprotocol",
"java.io"
] | com.lucadev.mcprotocol; java.io; | 1,275,978 |
public static List<String> sixDotFilter(List<String> input) {
ArrayList<String> ret = new ArrayList<>();
StringBuilder sb;
for (String s : input) {
sb = new StringBuilder();
for (char c : s.toCharArray()) {
sb.append((char)(((int)c)&0x283F));
}
ret.add(sb.toString());
}
return ret;
}
| static List<String> function(List<String> input) { ArrayList<String> ret = new ArrayList<>(); StringBuilder sb; for (String s : input) { sb = new StringBuilder(); for (char c : s.toCharArray()) { sb.append((char)(((int)c)&0x283F)); } ret.add(sb.toString()); } return ret; } | /**
* Filters the input braille image by discarding dots 7 and 8.
* @param input the braille input, characters in the range 0x2800-0x28FF
* @return the filtered braille image, characters in the range 0x2800-0x283F
*/ | Filters the input braille image by discarding dots 7 and 8 | sixDotFilter | {
"repo_name": "daisy/pipeline-issues",
"path": "libs/dotify/dotify.api/src/org/daisy/dotify/api/graphics/BrailleGraphics.java",
"license": "apache-2.0",
"size": 5641
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,101,785 |
this.currentUser = currentUser;
}
private User currentUser;
private UserApi userApi;
private Map<String, User> cachedUsers = new HashMap<>();
public UserProvider(UserApi userApi) {
this.userApi = userApi;
} | this.currentUser = currentUser; } private User currentUser; private UserApi userApi; private Map<String, User> cachedUsers = new HashMap<>(); public UserProvider(UserApi userApi) { this.userApi = userApi; } | /**
* Set the current user
*
* @param currentUser user to set the current user to
*/ | Set the current user | setCurrentUser | {
"repo_name": "CMPUT301F16T13/ThunderCab",
"path": "app/src/main/java/com/thundersquadron/thundercab/models/providers/UserProvider.java",
"license": "mit",
"size": 4089
} | [
"com.thundersquadron.thundercab.models.User",
"com.thundersquadron.thundercab.models.providers.Networking",
"java.util.HashMap",
"java.util.Map"
] | import com.thundersquadron.thundercab.models.User; import com.thundersquadron.thundercab.models.providers.Networking; import java.util.HashMap; import java.util.Map; | import com.thundersquadron.thundercab.models.*; import com.thundersquadron.thundercab.models.providers.*; import java.util.*; | [
"com.thundersquadron.thundercab",
"java.util"
] | com.thundersquadron.thundercab; java.util; | 2,042,143 |
final CallableStatement callStatement = prepareCall(sqlMapById);
callStatement.setInt(1, id);
int width = 0;
int height = 0;
Map tempMap = null;
if (callStatement.execute()) {
final ResultSet result = callStatement.getResultSet();
if (result.first()) {
width = result.getInt(widthColumnIn... | final CallableStatement callStatement = prepareCall(sqlMapById); callStatement.setInt(1, id); int width = 0; int height = 0; Map tempMap = null; if (callStatement.execute()) { final ResultSet result = callStatement.getResultSet(); if (result.first()) { width = result.getInt(widthColumnIndex); height = result.getInt(hei... | /**
* Gets the example by id.
*
* @param id
* the id
* @return the map by id
* @throws SQLException
* the SQL exception
* @throws IOException
*/ | Gets the example by id | getMapById | {
"repo_name": "DMaxence/Boulder-Dash-Java",
"path": "BoulderDash/model/src/main/java/model/dao/MapDAO.java",
"license": "gpl-3.0",
"size": 3496
} | [
"java.sql.CallableStatement",
"java.sql.ResultSet"
] | import java.sql.CallableStatement; import java.sql.ResultSet; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,037,134 |
public void setBold( boolean bold )
{
getCOSObject().setFlag( COSName.F, BOLD_FLAG, bold );
} | void function( boolean bold ) { getCOSObject().setFlag( COSName.F, BOLD_FLAG, bold ); } | /**
* Set the bold property of the text.
*
* @param bold The new bold flag.
*/ | Set the bold property of the text | setBold | {
"repo_name": "benmccann/pdfbox",
"path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/documentnavigation/outline/PDOutlineItem.java",
"license": "apache-2.0",
"size": 12157
} | [
"org.apache.pdfbox.cos.COSName"
] | import org.apache.pdfbox.cos.COSName; | import org.apache.pdfbox.cos.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 1,641,765 |
public void testValueToJava2D() {
Rectangle2D plotArea = new Rectangle2D.Double(22, 33, 500, 500);
RectangleEdge edge = RectangleEdge.BOTTOM;
// set axis bounds to be both greater than 1
this.axis.setRange(10, 20);
checkPointsToJava2D(edge, plotArea);
... | void function() { Rectangle2D plotArea = new Rectangle2D.Double(22, 33, 500, 500); RectangleEdge edge = RectangleEdge.BOTTOM; this.axis.setRange(10, 20); checkPointsToJava2D(edge, plotArea); this.axis.setRange(0.5, 10); checkPointsToJava2D(edge, plotArea); this.axis.setRange(0.2, 20); checkPointsToJava2D(edge, plotArea... | /**
* Test of valueToJava2D method.
*/ | Test of valueToJava2D method | testValueToJava2D | {
"repo_name": "integrated/jfreechart",
"path": "tests/org/jfree/chart/axis/junit/LogarithmicAxisTests.java",
"license": "lgpl-2.1",
"size": 9900
} | [
"java.awt.geom.Rectangle2D",
"org.jfree.ui.RectangleEdge"
] | import java.awt.geom.Rectangle2D; import org.jfree.ui.RectangleEdge; | import java.awt.geom.*; import org.jfree.ui.*; | [
"java.awt",
"org.jfree.ui"
] | java.awt; org.jfree.ui; | 1,598,314 |
public void testSetActiveScenario() throws Exception {
report.step("Set Active scenario");
agentSysObj.client.setActiveScenario("scenarios/agentScenarioDefault");
report.report("Start running the scenario: 'agentScenarioDefault'");
agentSysObj.client.run();
sleep(15000);
report.report("Check that the ... | void function() throws Exception { report.step(STR); agentSysObj.client.setActiveScenario(STR); report.report(STR); agentSysObj.client.run(); sleep(15000); report.report(STR); AnalyzerFileFinder ff = new AnalyzerFileFinder(STR,STR); agentSysObj.analyze(ff, false, false, false); agentSysObj.client.stop(); report.report(... | /**
* Test setting an active scenario on the agent
*/ | Test setting an active scenario on the agent | testSetActiveScenario | {
"repo_name": "Top-Q/jsystem",
"path": "jsystem-core-projects/jsystemAgent/src/test/java/jsystem/agent/client/LocalAgentTest.java",
"license": "apache-2.0",
"size": 29304
} | [
"com.aqua.services.analyzers.AnalyzerFileFinder"
] | import com.aqua.services.analyzers.AnalyzerFileFinder; | import com.aqua.services.analyzers.*; | [
"com.aqua.services"
] | com.aqua.services; | 2,381,481 |
@SuppressWarnings("unused")
@CalledByNative
private void onAppendResponseHeader(HeadersList headersList,
String name, String value) {
headersList.add(Pair.create(name, value));
}
// Native methods are implemented in cronet_url_request.cc. | @SuppressWarnings(STR) void function(HeadersList headersList, String name, String value) { headersList.add(Pair.create(name, value)); } | /**
* Appends header |name| with value |value| to |headersList|.
*/ | Appends header |name| with value |value| to |headersList| | onAppendResponseHeader | {
"repo_name": "ltilve/chromium",
"path": "components/cronet/android/java/src/org/chromium/net/CronetUrlRequest.java",
"license": "bsd-3-clause",
"size": 25119
} | [
"android.util.Pair"
] | import android.util.Pair; | import android.util.*; | [
"android.util"
] | android.util; | 2,403,010 |
public boolean fixUtils(String[] utils) throws Exception {
for (String util : utils) {
if (!checkUtil(util)) {
if (checkUtil("busybox")) {
if (hasUtil(util, "busybox")) {
fixUtil(util, RootTools.utilPath);
}
... | boolean function(String[] utils) throws Exception { for (String util : utils) { if (!checkUtil(util)) { if (checkUtil(STR)) { if (hasUtil(util, STR)) { fixUtil(util, RootTools.utilPath); } } else { if (checkUtil(STR)) { if (hasUtil(util, STR)) { fixUtil(util, RootTools.utilPath); } } else { return false; } } } } return... | /**
* This will check an array of binaries, determine if they exist and determine that it has
* either the permissions 755, 775, or 777. If an applet is not setup correctly it will try and
* fix it. (This is for Busybox applets or Toolbox applets)
*
* @param utils Name of the utility to check.
... | This will check an array of binaries, determine if they exist and determine that it has either the permissions 755, 775, or 777. If an applet is not setup correctly it will try and fix it. (This is for Busybox applets or Toolbox applets) | fixUtils | {
"repo_name": "Morlunk/Mountie",
"path": "app/src/main/java/com/stericson/RootTools/internal/RootToolsInternalMethods.java",
"license": "gpl-3.0",
"size": 54666
} | [
"com.stericson.RootTools"
] | import com.stericson.RootTools; | import com.stericson.*; | [
"com.stericson"
] | com.stericson; | 2,009,158 |
public void setParameterValues(Properties parameters)
{
String enumClassName = parameters.getProperty("enumClassName");
try
{
enumClass = Class.forName( enumClassName ).asSubclass( Enum.class );
}
catch (ClassNotFoundException cfne)
{
t... | void function(Properties parameters) { String enumClassName = parameters.getProperty(STR); try { enumClass = Class.forName( enumClassName ).asSubclass( Enum.class ); } catch (ClassNotFoundException cfne) { throw new HibernateException( STR, cfne ); } String identifierMethodName = parameters.getProperty( STR, DEFAULT_ID... | /**
* Called by hibernate with all propertiies given as params in
* a given mapping. Valid values for this class are:
* enumClassName, identifierMethod, and valueOfMethod, as described
* in the class preamble.
*/ | Called by hibernate with all propertiies given as params in a given mapping. Valid values for this class are: enumClassName, identifierMethod, and valueOfMethod, as described in the class preamble | setParameterValues | {
"repo_name": "glycoinfo/eurocarbdb",
"path": "core-api/src/org/eurocarbdb/dataaccess/hibernate/GenericEnumUserType.java",
"license": "gpl-3.0",
"size": 10366
} | [
"java.util.Properties",
"org.hibernate.HibernateException",
"org.hibernate.type.NullableType",
"org.hibernate.type.TypeFactory"
] | import java.util.Properties; import org.hibernate.HibernateException; import org.hibernate.type.NullableType; import org.hibernate.type.TypeFactory; | import java.util.*; import org.hibernate.*; import org.hibernate.type.*; | [
"java.util",
"org.hibernate",
"org.hibernate.type"
] | java.util; org.hibernate; org.hibernate.type; | 2,005,803 |
protected long[] executeBatchedInserts(int batchTimeout) throws SQLException {
synchronized (checkClosed().getConnectionMutex()) {
String valuesClause = getValuesClause();
MySQLConnection locallyScopedConn = this.connection;
if (valuesClause == null) {
r... | long[] function(int batchTimeout) throws SQLException { synchronized (checkClosed().getConnectionMutex()) { String valuesClause = getValuesClause(); MySQLConnection locallyScopedConn = this.connection; if (valuesClause == null) { return executeBatchSerially(batchTimeout); } int numBatchedArgs = this.batchedArgs.size();... | /**
* Rewrites the already prepared statement into a multi-value insert
* statement of 'statementsPerBatch' values and executes the entire batch
* using this new statement.
*
* @return update counts in the same fashion as executeBatch()
*
* @throws SQLException
*/ | Rewrites the already prepared statement into a multi-value insert statement of 'statementsPerBatch' values and executes the entire batch using this new statement | executeBatchedInserts | {
"repo_name": "swankjesse/mysql-connector-j",
"path": "src/com/mysql/jdbc/PreparedStatement.java",
"license": "gpl-2.0",
"size": 198268
} | [
"java.sql.SQLException",
"java.util.ArrayList"
] | import java.sql.SQLException; import java.util.ArrayList; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 2,904,644 |
private Map<String, String> requestSpotInstances(
Collection<String> virtualInstanceIds,
PluginExceptionConditionAccumulator accumulator)
throws InterruptedException {
LOG.info(">> Requesting Spot instances");
Map<String, Future<RequestSpotInstancesResult>> spotResults = Maps.toMap(
... | Map<String, String> function( Collection<String> virtualInstanceIds, PluginExceptionConditionAccumulator accumulator) throws InterruptedException { LOG.info(STR); Map<String, Future<RequestSpotInstancesResult>> spotResults = Maps.toMap( virtualInstanceIds, virtualInstanceId -> ec2Client.requestSpotInstancesAsync(newReq... | /**
* Requests Spot instances, and returns the resulting Spot instance request IDs.
*
* @param virtualInstanceIds the virtual instance IDs to request spot instances for
* @param accumulator plugin exception condition accumulator
* @return a map of virtual instance ID to spot instance request ID
... | Requests Spot instances, and returns the resulting Spot instance request IDs | requestSpotInstances | {
"repo_name": "cloudera/director-aws-plugin",
"path": "provider/src/main/java/com/cloudera/director/aws/ec2/allocation/spot/SpotGroupAllocator.java",
"license": "apache-2.0",
"size": 39051
} | [
"com.amazonaws.AmazonServiceException",
"com.amazonaws.services.ec2.model.RequestSpotInstancesResult",
"com.amazonaws.services.ec2.model.SpotInstanceRequest",
"com.cloudera.director.aws.AWSExceptions",
"com.cloudera.director.spi.v2.model.exception.PluginExceptionConditionAccumulator",
"com.google.common.c... | import com.amazonaws.AmazonServiceException; import com.amazonaws.services.ec2.model.RequestSpotInstancesResult; import com.amazonaws.services.ec2.model.SpotInstanceRequest; import com.cloudera.director.aws.AWSExceptions; import com.cloudera.director.spi.v2.model.exception.PluginExceptionConditionAccumulator; import co... | import com.amazonaws.*; import com.amazonaws.services.ec2.model.*; import com.cloudera.director.aws.*; import com.cloudera.director.spi.v2.model.exception.*; import com.google.common.collect.*; import java.util.*; import java.util.concurrent.*; | [
"com.amazonaws",
"com.amazonaws.services",
"com.cloudera.director",
"com.google.common",
"java.util"
] | com.amazonaws; com.amazonaws.services; com.cloudera.director; com.google.common; java.util; | 2,441,893 |
Node parseInputs() {
boolean devMode = options.devMode != DevMode.OFF;
// If old roots exist (we are parsing a second time), detach each of the
// individual file parse trees.
externsRoot.detachChildren();
jsRoot.detachChildren();
if (options.tracer.isOn()) {
tracker = new PerformanceT... | Node parseInputs() { boolean devMode = options.devMode != DevMode.OFF; externsRoot.detachChildren(); jsRoot.detachChildren(); if (options.tracer.isOn()) { tracker = new PerformanceTracker(jsRoot, options.tracer); addChangeHandler(tracker.getCodeChangeHandler()); } Tracer tracer = newTracer(PARSING_PASS_NAME); beforePas... | /**
* Parses the externs and main inputs.
*
* @return A synthetic root node whose two children are the externs root
* and the main root
*/ | Parses the externs and main inputs | parseInputs | {
"repo_name": "pauldraper/closure-compiler",
"path": "src/com/google/javascript/jscomp/Compiler.java",
"license": "apache-2.0",
"size": 80912
} | [
"com.google.javascript.jscomp.CompilerOptions",
"com.google.javascript.jscomp.JSModuleGraph",
"com.google.javascript.jscomp.deps.SortedDependencies",
"com.google.javascript.rhino.Node"
] | import com.google.javascript.jscomp.CompilerOptions; import com.google.javascript.jscomp.JSModuleGraph; import com.google.javascript.jscomp.deps.SortedDependencies; import com.google.javascript.rhino.Node; | import com.google.javascript.jscomp.*; import com.google.javascript.jscomp.deps.*; import com.google.javascript.rhino.*; | [
"com.google.javascript"
] | com.google.javascript; | 2,471,355 |
public static double calculateAspect( GridNode node, double radtodeg, boolean doRound ) {
double aspect = doubleNovalue;
// the value of the x and y derivative
double aData = 0.0;
double bData = 0.0;
double xRes = node.xRes;
double yRes = node.yRes;
double cen... | static double function( GridNode node, double radtodeg, boolean doRound ) { double aspect = doubleNovalue; double aData = 0.0; double bData = 0.0; double xRes = node.xRes; double yRes = node.yRes; double centralValue = node.elevation; double nValue = node.getNorthElev(); double sValue = node.getSouthElev(); double wVal... | /**
* Calculates the aspect in a given {@link GridNode}.
*
* @param node the current grid node.
* @param radtodeg radiants to degrees conversion factor. Use {@link NumericsUtilities#RADTODEG} if you
* want degrees, use 1 if you want radiants.
* @param doRound if <code>tr... | Calculates the aspect in a given <code>GridNode</code> | calculateAspect | {
"repo_name": "silviafranceschi/jgrasstools",
"path": "hortonmachine/src/main/java/org/jgrasstools/hortonmachine/modules/geomorphology/aspect/OmsAspect.java",
"license": "gpl-3.0",
"size": 9675
} | [
"java.lang.Math",
"org.jgrasstools.gears.libs.modules.GridNode",
"org.jgrasstools.gears.libs.modules.JGTConstants"
] | import java.lang.Math; import org.jgrasstools.gears.libs.modules.GridNode; import org.jgrasstools.gears.libs.modules.JGTConstants; | import java.lang.*; import org.jgrasstools.gears.libs.modules.*; | [
"java.lang",
"org.jgrasstools.gears"
] | java.lang; org.jgrasstools.gears; | 269,299 |
public VirtualMachineScaleSetExtensionInner withProvisionAfterExtensions(List<String> provisionAfterExtensions) {
this.provisionAfterExtensions = provisionAfterExtensions;
return this;
} | VirtualMachineScaleSetExtensionInner function(List<String> provisionAfterExtensions) { this.provisionAfterExtensions = provisionAfterExtensions; return this; } | /**
* Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be
* provisioned.
*
* @param provisionAfterExtensions the provisionAfterExtensions value to set.
* @return the VirtualMachineScaleSetExtensionInner object itself.
*/ | Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned | withProvisionAfterExtensions | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/models/VirtualMachineScaleSetExtensionInner.java",
"license": "mit",
"size": 10486
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,445,759 |
EAttribute getAbapException_Message(); | EAttribute getAbapException_Message(); | /**
* Returns the meta object for the attribute '{@link org.fusesource.camel.component.sap.model.rfc.AbapException#getMessage <em>Message</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Message</em>'.
* @see org.fusesource.camel.component.sap.model.rf... | Returns the meta object for the attribute '<code>org.fusesource.camel.component.sap.model.rfc.AbapException#getMessage Message</code>'. | getAbapException_Message | {
"repo_name": "janstey/fuse",
"path": "components/camel-sap/org.fusesource.camel.component.sap.model/src/org/fusesource/camel/component/sap/model/rfc/RfcPackage.java",
"license": "apache-2.0",
"size": 158488
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,714,290 |
private void makeTunnel(HttpURLConnectionImpl policy, HttpConnection connection,
RequestHeaders requestHeaders) throws IOException {
RawHeaders rawRequestHeaders = requestHeaders.getHeaders();
while (true) {
HttpEngine connect = new ProxyConnectEngine(poli... | void function(HttpURLConnectionImpl policy, HttpConnection connection, RequestHeaders requestHeaders) throws IOException { RawHeaders rawRequestHeaders = requestHeaders.getHeaders(); while (true) { HttpEngine connect = new ProxyConnectEngine(policy, rawRequestHeaders, connection); connect.sendRequest(); connect.readRes... | /**
* To make an HTTPS connection over an HTTP proxy, send an unencrypted
* CONNECT request to create the proxy connection. This may need to be
* retried if the proxy requires authorization.
*/ | To make an HTTPS connection over an HTTP proxy, send an unencrypted CONNECT request to create the proxy connection. This may need to be retried if the proxy requires authorization | makeTunnel | {
"repo_name": "xdajog/samsung_sources_i927",
"path": "libcore/luni/src/main/java/libcore/net/http/HttpsURLConnectionImpl.java",
"license": "gpl-2.0",
"size": 18858
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,466,975 |
public Object visit(SimpleAllocation node) {
// Visit the arguments
List args = node.getArguments();
if (args != null) {
visitList(args);
}
return null;
}
| Object function(SimpleAllocation node) { List args = node.getArguments(); if (args != null) { visitList(args); } return null; } | /**
* Visits a SimpleAllocation
* @param node the node to visit
*/ | Visits a SimpleAllocation | visit | {
"repo_name": "moegyver/mJeliot",
"path": "Jeliot/src/koala/dynamicjava/interpreter/NameVisitor.java",
"license": "mit",
"size": 39475
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 558,813 |
private Table createTable(String eventName, String className) throws Exception {
Table tmp;
try {
Database db = new Database();
db.setName(database);
client.createDatabase(db, true);
Class<LoggableLensStatistics> statisticsClass = (Class<LoggableLensStatistics>) Class.forName(className... | Table function(String eventName, String className) throws Exception { Table tmp; try { Database db = new Database(); db.setName(database); client.createDatabase(db, true); Class<LoggableLensStatistics> statisticsClass = (Class<LoggableLensStatistics>) Class.forName(className); LoggableLensStatistics stat = statisticsCl... | /**
* Creates the table.
*
* @param eventName the event name
* @param className the class name
* @return the table
* @throws Exception the exception
*/ | Creates the table | createTable | {
"repo_name": "adeelmahmood/lens",
"path": "lens-server/src/main/java/org/apache/lens/server/stats/store/log/StatisticsLogPartitionHandler.java",
"license": "apache-2.0",
"size": 6925
} | [
"org.apache.hadoop.hive.metastore.api.Database",
"org.apache.hadoop.hive.ql.metadata.Table",
"org.apache.lens.server.stats.event.LoggableLensStatistics"
] | import org.apache.hadoop.hive.metastore.api.Database; import org.apache.hadoop.hive.ql.metadata.Table; import org.apache.lens.server.stats.event.LoggableLensStatistics; | import org.apache.hadoop.hive.metastore.api.*; import org.apache.hadoop.hive.ql.metadata.*; import org.apache.lens.server.stats.event.*; | [
"org.apache.hadoop",
"org.apache.lens"
] | org.apache.hadoop; org.apache.lens; | 1,391,798 |
boolean tellNoSpam(Collection<? extends Player> players, Integer ticks, Object message, Object...params); | boolean tellNoSpam(Collection<? extends Player> players, Integer ticks, Object message, Object...params); | /**
* Tell a message to a collection of players and cache it for the specified spam/tick delay.
*
* <p>The message will not be displayed again until the delay time has elapsed.</p>
*
* <p>If the message is displayed before the delay time has elapsed, the delay is reset.</p>
*
* @param... | Tell a message to a collection of players and cache it for the specified spam/tick delay. The message will not be displayed again until the delay time has elapsed. If the message is displayed before the delay time has elapsed, the delay is reset | tellNoSpam | {
"repo_name": "JCThePants/NucleusFramework",
"path": "src/com/jcwhatever/nucleus/managed/messaging/IMessenger.java",
"license": "mit",
"size": 12625
} | [
"java.util.Collection",
"org.bukkit.entity.Player"
] | import java.util.Collection; import org.bukkit.entity.Player; | import java.util.*; import org.bukkit.entity.*; | [
"java.util",
"org.bukkit.entity"
] | java.util; org.bukkit.entity; | 2,122,130 |
protected StateValues checkExpressionMultiObjective(ExpressionFunc expr) throws PrismException
{
// Extract objective list from 'multi' function
List<Expression> exprs = new ArrayList<Expression>();
int n = expr.getNumOperands();
for (int i = 0; i < n; i++) {
exprs.add(expr.getOperand(i));
}
return c... | StateValues function(ExpressionFunc expr) throws PrismException { List<Expression> exprs = new ArrayList<Expression>(); int n = expr.getNumOperands(); for (int i = 0; i < n; i++) { exprs.add(expr.getOperand(i)); } return checkExpressionMultiObjective(exprs); } | /**
* Model check a multi-objective expression and return the result.
* For multi-objective queries, we only find the value for one state.
*/ | Model check a multi-objective expression and return the result. For multi-objective queries, we only find the value for one state | checkExpressionMultiObjective | {
"repo_name": "musaeed/Prism-gsoc16",
"path": "prism-trunk/prism/src/prism/NondetModelChecker.java",
"license": "gpl-2.0",
"size": 76177
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 551,457 |
public void setStatistics(ArrayList<DayStatistics> statistics) {
this.statistics = statistics;
createCoordinates();
createPath();
invalidate();
} | void function(ArrayList<DayStatistics> statistics) { this.statistics = statistics; createCoordinates(); createPath(); invalidate(); } | /**
* Most important method. Sets the data to display
*
* @param statistics All available statistic items
*/ | Most important method. Sets the data to display | setStatistics | {
"repo_name": "JU5T1C3/StatisticsDemo",
"path": "StatisticsDemo/app/src/main/java/klawisch/jimdo/statistics/statisticsdemo/view/CustomLineGraph.java",
"license": "mit",
"size": 22350
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 1,201,941 |
public static PutUserRequest withPasswordHash(User user, char[] passwordHash, boolean enabled, RefreshPolicy refreshPolicy) {
return new PutUserRequest(user, null, passwordHash, enabled, refreshPolicy);
} | static PutUserRequest function(User user, char[] passwordHash, boolean enabled, RefreshPolicy refreshPolicy) { return new PutUserRequest(user, null, passwordHash, enabled, refreshPolicy); } | /**
* Create or update a user in the native realm, with the user's new or updated password specified as a cryptographic hash.
* @param user the user to be created or updated
* @param passwordHash the hash of the password of the user. It must be in the correct format for the password hashing algorithm in
... | Create or update a user in the native realm, with the user's new or updated password specified as a cryptographic hash | withPasswordHash | {
"repo_name": "robin13/elasticsearch",
"path": "client/rest-high-level/src/main/java/org/elasticsearch/client/security/PutUserRequest.java",
"license": "apache-2.0",
"size": 8319
} | [
"org.elasticsearch.client.security.user.User"
] | import org.elasticsearch.client.security.user.User; | import org.elasticsearch.client.security.user.*; | [
"org.elasticsearch.client"
] | org.elasticsearch.client; | 2,846,467 |
final void replaceWith(Node parent, Node node, Node replacement) {
replaceWith(parent, node, ImmutableList.of(replacement));
} | final void replaceWith(Node parent, Node node, Node replacement) { replaceWith(parent, node, ImmutableList.of(replacement)); } | /**
* Replaces a node from the parent's child list.
*/ | Replaces a node from the parent's child list | replaceWith | {
"repo_name": "Medium/closure-compiler",
"path": "src/com/google/javascript/jscomp/AstChangeProxy.java",
"license": "apache-2.0",
"size": 3326
} | [
"com.google.common.collect.ImmutableList",
"com.google.javascript.rhino.Node"
] | import com.google.common.collect.ImmutableList; import com.google.javascript.rhino.Node; | import com.google.common.collect.*; import com.google.javascript.rhino.*; | [
"com.google.common",
"com.google.javascript"
] | com.google.common; com.google.javascript; | 909,535 |
@Override
public int validatePageData(Page page, ReportContext context, WizardSession session) throws Exception {
Object obj = page.unmarshallToSession(FORM_ID);
EditHostSetConfig config = (EditHostSetConfig) obj;
// Get credentials from the current context
HP3ParCredentials c = new HP3ParCredentials(conte... | int function(Page page, ReportContext context, WizardSession session) throws Exception { Object obj = page.unmarshallToSession(FORM_ID); EditHostSetConfig config = (EditHostSetConfig) obj; HP3ParCredentials c = new HP3ParCredentials(context); HP3ParRequestStatus s = HP3ParHostSetExecute.edit(c, config); if (!s.isSucces... | /**
* This should do basic error checking (UCSD will enforce mandatory fields)
* and attempt to execute the task.
*
* Throwing an exception here will show the message as an error dialogue.
*/ | This should do basic error checking (UCSD will enforce mandatory fields) and attempt to execute the task. Throwing an exception here will show the message as an error dialogue | validatePageData | {
"repo_name": "CiscoUKIDCDev/HP3ParPlugin",
"path": "3PAR_Plugin/src/com/cisco/matday/ucsd/hp3par/reports/hostsets/actions/EditHostSetAction.java",
"license": "mit",
"size": 6360
} | [
"com.cisco.matday.ucsd.hp3par.account.HP3ParCredentials",
"com.cisco.matday.ucsd.hp3par.exceptions.HP3ParSetException",
"com.cisco.matday.ucsd.hp3par.rest.json.HP3ParRequestStatus",
"com.cisco.matday.ucsd.hp3par.tasks.hostsets.EditHostSetConfig",
"com.cisco.matday.ucsd.hp3par.tasks.hostsets.HP3ParHostSetExe... | import com.cisco.matday.ucsd.hp3par.account.HP3ParCredentials; import com.cisco.matday.ucsd.hp3par.exceptions.HP3ParSetException; import com.cisco.matday.ucsd.hp3par.rest.json.HP3ParRequestStatus; import com.cisco.matday.ucsd.hp3par.tasks.hostsets.EditHostSetConfig; import com.cisco.matday.ucsd.hp3par.tasks.hostsets.HP... | import com.cisco.matday.ucsd.hp3par.account.*; import com.cisco.matday.ucsd.hp3par.exceptions.*; import com.cisco.matday.ucsd.hp3par.rest.json.*; import com.cisco.matday.ucsd.hp3par.tasks.hostsets.*; import com.cloupia.model.*; import com.cloupia.service.*; | [
"com.cisco.matday",
"com.cloupia.model",
"com.cloupia.service"
] | com.cisco.matday; com.cloupia.model; com.cloupia.service; | 2,862,153 |
public static <T> SingleElementCache<T> memoize(final Supplier<T> delegate) {
return new SingleElementCache<T>(delegate);
} | static <T> SingleElementCache<T> function(final Supplier<T> delegate) { return new SingleElementCache<T>(delegate); } | /**
* Create a new {@code SingleElementCache} which computes it's memoized value using {@code delegate}.
*
* @param delegate the value supplier
* @param <T> the type of the element to cache
* @return a new cache
*/ | Create a new SingleElementCache which computes it's memoized value using delegate | memoize | {
"repo_name": "asoem/greyfish",
"path": "greyfish-utils/src/main/java/org/asoem/greyfish/utils/base/SingleElementCache.java",
"license": "gpl-3.0",
"size": 2180
} | [
"com.google.common.base.Supplier"
] | import com.google.common.base.Supplier; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 613,053 |
public br.gov.camara.edemocracia.portlets.priorizacao.model.Voto fetchByU_Last(
long userId,
com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
throws com.liferay.portal.kernel.exception.SystemException; | br.gov.camara.edemocracia.portlets.priorizacao.model.Voto function( long userId, com.liferay.portal.kernel.util.OrderByComparator orderByComparator) throws com.liferay.portal.kernel.exception.SystemException; | /**
* Returns the last voto in the ordered set where userId = ?.
*
* @param userId the user ID
* @param orderByComparator the comparator to order the set by (optionally <code>null</code>)
* @return the last matching voto, or <code>null</code> if a matching voto could not be found
* @throws S... | Returns the last voto in the ordered set where userId = ? | fetchByU_Last | {
"repo_name": "camaradosdeputadosoficial/edemocracia",
"path": "cd-priorizacao-portlet/src/main/java/br/gov/camara/edemocracia/portlets/priorizacao/service/persistence/VotoPersistence.java",
"license": "lgpl-2.1",
"size": 23760
} | [
"br.gov.camara.edemocracia.portlets.priorizacao.model.Voto"
] | import br.gov.camara.edemocracia.portlets.priorizacao.model.Voto; | import br.gov.camara.edemocracia.portlets.priorizacao.model.*; | [
"br.gov.camara"
] | br.gov.camara; | 2,733,838 |
public List<DiagramElement> getSelectedElements() {
return selectedElements;
}
/**
* {@inheritDoc}
| List<DiagramElement> function() { return selectedElements; } /** * {@inheritDoc} | /**
* Returns the selected elements.
* @return the selected elements
*/ | Returns the selected elements | getSelectedElements | {
"repo_name": "ligenzatomas/firebird-vizualization-tool",
"path": "src/main/java/org/tinyuml/draw/RubberbandSelector.java",
"license": "gpl-2.0",
"size": 3801
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,291,759 |
public SplitDefinition split(Expression expression, AggregationStrategy aggregationStrategy) {
SplitDefinition answer = new SplitDefinition(expression);
addOutput(answer);
answer.setAggregationStrategy(aggregationStrategy);
return answer;
}
| SplitDefinition function(Expression expression, AggregationStrategy aggregationStrategy) { SplitDefinition answer = new SplitDefinition(expression); addOutput(answer); answer.setAggregationStrategy(aggregationStrategy); return answer; } | /**
* <a href="http://camel.apache.org/splitter.html">Splitter EIP:</a>
* Creates a splitter allowing you split a message into a number of pieces and process them individually.
* <p>
* The splitter responds with the answer produced by the given {@link AggregationStrategy}.
*
* @param... | Creates a splitter allowing you split a message into a number of pieces and process them individually. The splitter responds with the answer produced by the given <code>AggregationStrategy</code> | split | {
"repo_name": "everttigchelaar/camel-svn",
"path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java",
"license": "apache-2.0",
"size": 120346
} | [
"org.apache.camel.Expression",
"org.apache.camel.processor.aggregate.AggregationStrategy"
] | import org.apache.camel.Expression; import org.apache.camel.processor.aggregate.AggregationStrategy; | import org.apache.camel.*; import org.apache.camel.processor.aggregate.*; | [
"org.apache.camel"
] | org.apache.camel; | 711,523 |
public void formatAndLog(int level, String format, Object... arguments)
{
if (logOutput)
{
FormattingTuple tp = MessageFormatter.arrayFormat(format, arguments);
log(level, tp.getMessage());
}
} | void function(int level, String format, Object... arguments) { if (logOutput) { FormattingTuple tp = MessageFormatter.arrayFormat(format, arguments); log(level, tp.getMessage()); } } | /**
* This prints the level and formatted message to
* System.out.
*/ | This prints the level and formatted message to System.out | formatAndLog | {
"repo_name": "apache/velocity-engine",
"path": "velocity-engine-examples/src/main/java/org/apache/velocity/example/EventExample.java",
"license": "apache-2.0",
"size": 15128
} | [
"org.slf4j.helpers.FormattingTuple",
"org.slf4j.helpers.MessageFormatter"
] | import org.slf4j.helpers.FormattingTuple; import org.slf4j.helpers.MessageFormatter; | import org.slf4j.helpers.*; | [
"org.slf4j.helpers"
] | org.slf4j.helpers; | 2,734,558 |
@PostConstruct
public void init()
{
validStatusCancellation = new HashSet<Long>();
validStatusCancellation.add( Long.valueOf( BookingStatus.BOOKED.getId() ) );
AbstractTO abstractTO = new AbstractTO();
fillSessionData( abstractTO );
specialEventTOs = this.bookingServiceIntegratorEJB.findAllAct... | void function() { validStatusCancellation = new HashSet<Long>(); validStatusCancellation.add( Long.valueOf( BookingStatus.BOOKED.getId() ) ); AbstractTO abstractTO = new AbstractTO(); fillSessionData( abstractTO ); specialEventTOs = this.bookingServiceIntegratorEJB.findAllActiveMovies( FESTIVAL, PRERELEASE ); regions =... | /**
* Method that performs initializations.
*/ | Method that performs initializations | init | {
"repo_name": "sidlors/digital-booking",
"path": "digital-booking-web/src/main/java/mx/com/cinepolis/digital/booking/web/beans/booking/SpecialEventBookingBean.java",
"license": "epl-1.0",
"size": 52069
} | [
"java.util.Date",
"java.util.HashSet",
"mx.com.cinepolis.digital.booking.commons.constants.BookingStatus",
"mx.com.cinepolis.digital.booking.commons.to.AbstractTO"
] | import java.util.Date; import java.util.HashSet; import mx.com.cinepolis.digital.booking.commons.constants.BookingStatus; import mx.com.cinepolis.digital.booking.commons.to.AbstractTO; | import java.util.*; import mx.com.cinepolis.digital.booking.commons.constants.*; import mx.com.cinepolis.digital.booking.commons.to.*; | [
"java.util",
"mx.com.cinepolis"
] | java.util; mx.com.cinepolis; | 628,393 |
@Test
@SneakyThrows
public void callDeleteRemoteFile() {
final String loc = "dir/fileToDelete";
new FileDelete(
loc,
new MockCallback<Boolean>()
).ftpCall(this.client);
Mockito.verify(this.client).deleteFile(
Matchers.matches(loc)
)... | void function() { final String loc = STR; new FileDelete( loc, new MockCallback<Boolean>() ).ftpCall(this.client); Mockito.verify(this.client).deleteFile( Matchers.matches(loc) ); } | /**
* Can call delete remote file from FTPClient.
*/ | Can call delete remote file from FTPClient | callDeleteRemoteFile | {
"repo_name": "piotrkot/ftp-wrapper",
"path": "src/test/java/com/piokot/ftp/FTPCommandsMockitoTest.java",
"license": "bsd-2-clause",
"size": 4087
} | [
"com.piokot.ftp.mock.MockCallback",
"org.mockito.Matchers",
"org.mockito.Mockito"
] | import com.piokot.ftp.mock.MockCallback; import org.mockito.Matchers; import org.mockito.Mockito; | import com.piokot.ftp.mock.*; import org.mockito.*; | [
"com.piokot.ftp",
"org.mockito"
] | com.piokot.ftp; org.mockito; | 2,892,221 |
public void testSuccessfulDataDispatchWithNormalException()
throws ExecutionException, InterruptedException {
final TestAsyncDataDispatcher dispatcher = new TestAsyncDataDispatcher();
ExecutorService service = Executors.newFixedThreadPool(2);
Writer writer1 = new Writer(dispatcher);
Writer write... | void function() throws ExecutionException, InterruptedException { final TestAsyncDataDispatcher dispatcher = new TestAsyncDataDispatcher(); ExecutorService service = Executors.newFixedThreadPool(2); Writer writer1 = new Writer(dispatcher); Writer writer2 = new Writer(dispatcher); Future<?> future1 = service.submit(writ... | /**
* Test successful data dispatch with 2 writers. Normal exception
*/ | Test successful data dispatch with 2 writers. Normal exception | testSuccessfulDataDispatchWithNormalException | {
"repo_name": "jenniferzheng/gobblin",
"path": "gobblin-core/src/test/java/org/apache/gobblin/async/AsyncDataDispatcherTest.java",
"license": "apache-2.0",
"size": 7149
} | [
"java.util.concurrent.ExecutionException",
"java.util.concurrent.ExecutorService",
"java.util.concurrent.Executors",
"java.util.concurrent.Future"
] | import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.Future; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 95,329 |
public void testRedirectToLoginFormAfterLoginError() throws Exception {
//login failure
List<NameValuePair> params = new ArrayList<NameValuePair>();
params.add(new NameValuePair("j_username", "___bogus___"));
params.add(new NameValuePair("j_password", "not_a_real_user"));
final ... | void function() throws Exception { List<NameValuePair> params = new ArrayList<NameValuePair>(); params.add(new NameValuePair(STR, STR)); params.add(new NameValuePair(STR, STR)); final String loginPageUrl = String.format(STR, HTTP_BASE_URL); PostMethod post = (PostMethod)assertPostStatus(HTTP_BASE_URL + STR, HttpServlet... | /**
* Test SLING-2165. Login Error should redirect back to the referrer
* login page.
*
* @throws Exception
*/ | Test SLING-2165. Login Error should redirect back to the referrer login page | testRedirectToLoginFormAfterLoginError | {
"repo_name": "trekawek/sling",
"path": "launchpad/integration-tests/src/main/java/org/apache/sling/launchpad/webapp/integrationtest/login/RedirectOnLoginErrorTest.java",
"license": "apache-2.0",
"size": 4211
} | [
"java.util.ArrayList",
"java.util.List",
"javax.servlet.http.HttpServletResponse",
"org.apache.commons.httpclient.Header",
"org.apache.commons.httpclient.NameValuePair",
"org.apache.commons.httpclient.methods.PostMethod"
] | import java.util.ArrayList; import java.util.List; import javax.servlet.http.HttpServletResponse; import org.apache.commons.httpclient.Header; import org.apache.commons.httpclient.NameValuePair; import org.apache.commons.httpclient.methods.PostMethod; | import java.util.*; import javax.servlet.http.*; import org.apache.commons.httpclient.*; import org.apache.commons.httpclient.methods.*; | [
"java.util",
"javax.servlet",
"org.apache.commons"
] | java.util; javax.servlet; org.apache.commons; | 1,268,661 |
public Observable<ServiceResponse<Void>> downloadUpdatesWithServiceResponseAsync(String deviceName, String resourceGroupName) {
if (deviceName == null) {
throw new IllegalArgumentException("Parameter deviceName is required and cannot be null.");
}
if (this.client.subscriptionId()... | Observable<ServiceResponse<Void>> function(String deviceName, String resourceGroupName) { if (deviceName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); ... | /**
* Downloads the updates on a data box edge/gateway device.
*
* @param deviceName The device name.
* @param resourceGroupName The resource group name.
* @throws IllegalArgumentException thrown if parameters fail the validation
* @return the observable for the request
*/ | Downloads the updates on a data box edge/gateway device | downloadUpdatesWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/edgegateway/mgmt-v2019_03_01/src/main/java/com/microsoft/azure/management/edgegateway/v2019_03_01/implementation/DevicesInner.java",
"license": "mit",
"size": 143759
} | [
"com.google.common.reflect.TypeToken",
"com.microsoft.rest.ServiceResponse"
] | import com.google.common.reflect.TypeToken; import com.microsoft.rest.ServiceResponse; | import com.google.common.reflect.*; import com.microsoft.rest.*; | [
"com.google.common",
"com.microsoft.rest"
] | com.google.common; com.microsoft.rest; | 2,483,677 |
@Test(expected = IllegalArgumentException.class)
public void testGetSpecificChild_NonMatching_SecondaryIdentifier() {
// prepare the mock
new NonStrictExpectations() {
{
mf.findChildren(
withInstanceOf(OidIdentifier.class),
withInstanceOf(DomainParameterSetIdentifier.class)
);
resul... | @Test(expected = IllegalArgumentException.class) void function() { new NonStrictExpectations() { { mf.findChildren( withInstanceOf(OidIdentifier.class), withInstanceOf(DomainParameterSetIdentifier.class) ); result = Collections.EMPTY_SET; } }; TR03110Utils.getSpecificChild(mf, oidIdentifier2, domainparameterSetIdentifi... | /**
* Negative test: check that the combination of OID and id-able object is not allowed.
*/ | Negative test: check that the combination of OID and id-able object is not allowed | testGetSpecificChild_NonMatching_SecondaryIdentifier | {
"repo_name": "JulianKoch/de.persosim.simulator",
"path": "de.persosim.simulator.test/src/de/persosim/simulator/protocols/TR03110UtilsTest.java",
"license": "gpl-3.0",
"size": 11275
} | [
"de.persosim.simulator.cardobjects.DomainParameterSetIdentifier",
"de.persosim.simulator.cardobjects.OidIdentifier",
"de.persosim.simulator.utils.Utils",
"java.util.Collections",
"org.junit.Test"
] | import de.persosim.simulator.cardobjects.DomainParameterSetIdentifier; import de.persosim.simulator.cardobjects.OidIdentifier; import de.persosim.simulator.utils.Utils; import java.util.Collections; import org.junit.Test; | import de.persosim.simulator.cardobjects.*; import de.persosim.simulator.utils.*; import java.util.*; import org.junit.*; | [
"de.persosim.simulator",
"java.util",
"org.junit"
] | de.persosim.simulator; java.util; org.junit; | 2,876,066 |
private static Map<String, String> intersectAttributes(final Collection<FlowFile> flowFileList) {
final Map<String, String> result = new HashMap<>();
// trivial cases
if (flowFileList == null || flowFileList.isEmpty()) {
return result;
} else if (flowFileList.size() == 1)... | static Map<String, String> function(final Collection<FlowFile> flowFileList) { final Map<String, String> result = new HashMap<>(); if (flowFileList == null flowFileList.isEmpty()) { return result; } else if (flowFileList.size() == 1) { result.putAll(flowFileList.iterator().next().getAttributes()); } final Map<String, S... | /**
* Returns the attributes that are common to every FlowFile given. The key
* and value must match exactly.
*
* @param flowFileList a list of FlowFiles
*
* @return the common attributes
*/ | Returns the attributes that are common to every FlowFile given. The key and value must match exactly | intersectAttributes | {
"repo_name": "apsaltis/nifi",
"path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-framework-core/src/main/java/org/apache/nifi/controller/repository/StandardProcessSession.java",
"license": "apache-2.0",
"size": 157683
} | [
"java.util.Collection",
"java.util.HashMap",
"java.util.Map",
"org.apache.nifi.flowfile.FlowFile"
] | import java.util.Collection; import java.util.HashMap; import java.util.Map; import org.apache.nifi.flowfile.FlowFile; | import java.util.*; import org.apache.nifi.flowfile.*; | [
"java.util",
"org.apache.nifi"
] | java.util; org.apache.nifi; | 341,377 |
public static SymbolsDao getSymbolsDao(GeoPackageCoreConnection db) {
return SymbolsDao.create(db);
} | static SymbolsDao function(GeoPackageCoreConnection db) { return SymbolsDao.create(db); } | /**
* Get the Symbols DAO
*
* @param db
* database connection
* @return symbols dao
*/ | Get the Symbols DAO | getSymbolsDao | {
"repo_name": "ngageoint/geopackage-core-java",
"path": "src/main/java/mil/nga/geopackage/extension/im/portrayal/PortrayalExtension.java",
"license": "mit",
"size": 8694
} | [
"mil.nga.geopackage.db.GeoPackageCoreConnection"
] | import mil.nga.geopackage.db.GeoPackageCoreConnection; | import mil.nga.geopackage.db.*; | [
"mil.nga.geopackage"
] | mil.nga.geopackage; | 2,235,316 |
public static interface ViewBinder {
boolean setViewValue(View view, Cursor cursor, int columnIndex);
} | static interface ViewBinder { boolean function(View view, Cursor cursor, int columnIndex); } | /**
* Binds the Cursor column defined by the specified index to the specified view.
*
* When binding is handled by this ViewBinder, this method must return true.
* If this method returns false, SimpleCursorAdapter will attempts to handle
* the binding on its own.
*
... | Binds the Cursor column defined by the specified index to the specified view. When binding is handled by this ViewBinder, this method must return true. If this method returns false, SimpleCursorAdapter will attempts to handle the binding on its own | setViewValue | {
"repo_name": "gaich/quickapps",
"path": "app/src/main/java/com/mobeta/android/dslv/SimpleDragSortCursorAdapter.java",
"license": "gpl-3.0",
"size": 17584
} | [
"android.database.Cursor",
"android.view.View"
] | import android.database.Cursor; import android.view.View; | import android.database.*; import android.view.*; | [
"android.database",
"android.view"
] | android.database; android.view; | 2,785,330 |
public static ScriptInfo[] getCommandInfos() throws Exception
{
final IPreferencesService prefs = Platform.getPreferencesService();
final String script_list = prefs.getString(Activator.ID, PREF_SCRIPTS, "", null);
return decode(script_list);
}
/** @param infos Array of {@link Sc... | static ScriptInfo[] function() throws Exception { final IPreferencesService prefs = Platform.getPreferencesService(); final String script_list = prefs.getString(Activator.ID, PREF_SCRIPTS, "", null); return decode(script_list); } /** @param infos Array of {@link ScriptInfo} | /** Get {@link ScriptInfo} entries from preferences
* @return ScriptInfo array
* @throws Exception on error
*/ | Get <code>ScriptInfo</code> entries from preferences | getCommandInfos | {
"repo_name": "ControlSystemStudio/cs-studio",
"path": "applications/apputil/apputil-plugins/org.csstudio.ui.menu.pvscript/src/org/csstudio/ui/menu/pvscript/Preferences.java",
"license": "epl-1.0",
"size": 3143
} | [
"org.eclipse.core.runtime.Platform",
"org.eclipse.core.runtime.preferences.IPreferencesService"
] | import org.eclipse.core.runtime.Platform; import org.eclipse.core.runtime.preferences.IPreferencesService; | import org.eclipse.core.runtime.*; import org.eclipse.core.runtime.preferences.*; | [
"org.eclipse.core"
] | org.eclipse.core; | 2,549,321 |
public ComponentName getComponentName()
{
return mComponent;
} | ComponentName function() { return mComponent; } | /**
* Returns complete component name of this activity.
*
* @return Returns the complete component name for this activity
*/ | Returns complete component name of this activity | getComponentName | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "frameworks/base/core/java/android/app/Activity.java",
"license": "gpl-2.0",
"size": 222627
} | [
"android.content.ComponentName"
] | import android.content.ComponentName; | import android.content.*; | [
"android.content"
] | android.content; | 1,431,628 |
private MicroserviceServer initMicroserviceServer(Object realInstance) throws TestCreationException {
try {
ServerSocket s = new ServerSocket(0);
int port = s.getLocalPort();
s.close();
MicroserviceServer microserviceServer = new MicroserviceServer(port);
... | MicroserviceServer function(Object realInstance) throws TestCreationException { try { ServerSocket s = new ServerSocket(0); int port = s.getLocalPort(); s.close(); MicroserviceServer microserviceServer = new MicroserviceServer(port); microserviceServer.init(); microserviceServerMap.put(realInstance, microserviceServer)... | /**
* Initializes the micro-service server.
* Detects an available port from the system and use that for the microservice server.
*/ | Initializes the micro-service server. Detects an available port from the system and use that for the microservice server | initMicroserviceServer | {
"repo_name": "omindu/carbon-identity-framework",
"path": "test-utils/org.wso2.carbon.identity.testutil/src/main/java/org/wso2/carbon/identity/common/testng/CarbonBasedTestListener.java",
"license": "apache-2.0",
"size": 23043
} | [
"java.io.IOException",
"java.net.ServerSocket",
"org.wso2.carbon.identity.common.testng.ms.MicroserviceServer"
] | import java.io.IOException; import java.net.ServerSocket; import org.wso2.carbon.identity.common.testng.ms.MicroserviceServer; | import java.io.*; import java.net.*; import org.wso2.carbon.identity.common.testng.ms.*; | [
"java.io",
"java.net",
"org.wso2.carbon"
] | java.io; java.net; org.wso2.carbon; | 526,224 |
private int comparePackageName(WidgetListRowEntry curRow, WidgetListRowEntry newRow,
WidgetListRowEntryComparator comparator) {
if (curRow == null && newRow == null) {
throw new IllegalStateException("Cannot compare PackageItemInfo if both rows are null.");
}
if (cur... | int function(WidgetListRowEntry curRow, WidgetListRowEntry newRow, WidgetListRowEntryComparator comparator) { if (curRow == null && newRow == null) { throw new IllegalStateException(STR); } if (curRow == null && newRow != null) { return 1; } else if (curRow != null && newRow == null) { return -1; } return comparator.co... | /**
* Compare package name using the same comparator as in {@link WidgetsListAdapter}.
* Also handle null row pointers.
*/ | Compare package name using the same comparator as in <code>WidgetsListAdapter</code>. Also handle null row pointers | comparePackageName | {
"repo_name": "Deletescape-Media/Lawnchair",
"path": "src/com/android/launcher3/widget/WidgetsDiffReporter.java",
"license": "gpl-3.0",
"size": 6202
} | [
"com.android.launcher3.widget.WidgetsListAdapter"
] | import com.android.launcher3.widget.WidgetsListAdapter; | import com.android.launcher3.widget.*; | [
"com.android.launcher3"
] | com.android.launcher3; | 2,653,057 |
default void clamp(int min, int max, Tuple3D<?> tuple) {
assert min <= max : AssertMessages.lowerEqualParameters(0, min, 1, max);
assert tuple != null : AssertMessages.notNullParameter();
final double x = MathUtil.clamp(tuple.getX(), min, max);
final double y = MathUtil.clamp(tuple.getY(), min, ... | default void clamp(int min, int max, Tuple3D<?> tuple) { assert min <= max : AssertMessages.lowerEqualParameters(0, min, 1, max); assert tuple != null : AssertMessages.notNullParameter(); final double x = MathUtil.clamp(tuple.getX(), min, max); final double y = MathUtil.clamp(tuple.getY(), min, max); final double z = M... | /**
* Clamps the tuple parameter to the range [low, high] and
* places the values into this tuple.
* @param min the lowest value in the tuple after clamping
* @param max the highest value in the tuple after clamping
* @param tuple the source tuple, which will not be modified
*/ | Clamps the tuple parameter to the range [low, high] and places the values into this tuple | clamp | {
"repo_name": "gallandarakhneorg/afc",
"path": "core/maths/mathgeom/src/main/java/org/arakhne/afc/math/geometry/d3/Tuple3D.java",
"license": "apache-2.0",
"size": 20241
} | [
"org.arakhne.afc.math.MathUtil",
"org.arakhne.afc.vmutil.asserts.AssertMessages"
] | import org.arakhne.afc.math.MathUtil; import org.arakhne.afc.vmutil.asserts.AssertMessages; | import org.arakhne.afc.math.*; import org.arakhne.afc.vmutil.asserts.*; | [
"org.arakhne.afc"
] | org.arakhne.afc; | 2,104,074 |
public String getText(Object object) {
ValidateSchema schema = (ValidateSchema) object;
KeyType keyType = schema.getValidateSchemaKeyType();
String keyValue = "";
switch (schema.getValidateSchemaKeyType()) {
case STATIC:
keyValue=schema.getValidateStaticSchemaKey().getKeyValue();
break;
case DYNAMIC:... | String function(Object object) { ValidateSchema schema = (ValidateSchema) object; KeyType keyType = schema.getValidateSchemaKeyType(); String keyValue = STRSchema (%s:%s)", keyType,keyValue); } | /**
* This returns the label text for the adapted class. <!-- begin-user-doc
* --> <!-- end-user-doc -->
*/ | This returns the label text for the adapted class. | getText | {
"repo_name": "thiliniish/developer-studio",
"path": "esb/org.wso2.developerstudio.eclipse.esb.edit/src/org/wso2/developerstudio/eclipse/esb/mediators/provider/ValidateSchemaItemProvider.java",
"license": "apache-2.0",
"size": 8482
} | [
"org.wso2.developerstudio.eclipse.esb.mediators.KeyType",
"org.wso2.developerstudio.eclipse.esb.mediators.ValidateSchema"
] | import org.wso2.developerstudio.eclipse.esb.mediators.KeyType; import org.wso2.developerstudio.eclipse.esb.mediators.ValidateSchema; | import org.wso2.developerstudio.eclipse.esb.mediators.*; | [
"org.wso2.developerstudio"
] | org.wso2.developerstudio; | 726,173 |
public void deleteGroup(ILockableEntityGroup group) throws GroupsException
{
throwExceptionIfNotInternallyManaged();
try
{
if ( group.getLock().isValid() )
{
removeDeletedGroupFromContainingGroups(group);
deleteGroup( (IEntityGroup)group );
}
else
... | void function(ILockableEntityGroup group) throws GroupsException { throwExceptionIfNotInternallyManaged(); try { if ( group.getLock().isValid() ) { removeDeletedGroupFromContainingGroups(group); deleteGroup( (IEntityGroup)group ); } else { throw new GroupsException(STR + group.getKey() + STR); } } catch (LockingExcepti... | /**
* Removes the <code>ILockableEntityGroup</code> from the cache and the store,
* including both parent and child memberships.
* @param group ILockableEntityGroup
*/ | Removes the <code>ILockableEntityGroup</code> from the cache and the store, including both parent and child memberships | deleteGroup | {
"repo_name": "timlevett/uPortal",
"path": "uportal-war/src/main/java/org/jasig/portal/groups/ReferenceIndividualGroupService.java",
"license": "apache-2.0",
"size": 26643
} | [
"org.jasig.portal.concurrency.LockingException"
] | import org.jasig.portal.concurrency.LockingException; | import org.jasig.portal.concurrency.*; | [
"org.jasig.portal"
] | org.jasig.portal; | 1,530,000 |
default PsiElement getPsiElement() {
throw new UnsupportedOperationException();
} | default PsiElement getPsiElement() { throw new UnsupportedOperationException(); } | /**
* Returns the PSI element corresponding to the node.
*
* @return the PSI element.
*/ | Returns the PSI element corresponding to the node | getPsiElement | {
"repo_name": "consulo/consulo",
"path": "modules/base/analysis-api/src/main/java/com/intellij/codeInspection/reference/RefElement.java",
"license": "apache-2.0",
"size": 2822
} | [
"com.intellij.psi.PsiElement"
] | import com.intellij.psi.PsiElement; | import com.intellij.psi.*; | [
"com.intellij.psi"
] | com.intellij.psi; | 1,567,611 |
@Override
public void setAdapter(SpinnerAdapter adapter) {
if (null != mAdapter) {
mAdapter.unregisterDataSetObserver(mDataSetObserver);
resetList();
}
mAdapter = adapter;
mOldSelectedPosition = INVALID_POSITION;
mOldSelectedRowId = INVALID_ROW_I... | void function(SpinnerAdapter adapter) { if (null != mAdapter) { mAdapter.unregisterDataSetObserver(mDataSetObserver); resetList(); } mAdapter = adapter; mOldSelectedPosition = INVALID_POSITION; mOldSelectedRowId = INVALID_ROW_ID; if (mAdapter != null) { mOldItemCount = mItemCount; mItemCount = mAdapter.getCount(); chec... | /**
* The Adapter is used to provide the data which backs this Spinner.
* It also provides methods to transform spinner items based on their position
* relative to the selected item.
*
* @param adapter The SpinnerAdapter to use for this Spinner
*/ | The Adapter is used to provide the data which backs this Spinner. It also provides methods to transform spinner items based on their position relative to the selected item | setAdapter | {
"repo_name": "Myanmar-Hub/collabra-devcon",
"path": "Sherlock/src/com/actionbarsherlock/internal/widget/IcsAbsSpinner.java",
"license": "apache-2.0",
"size": 15162
} | [
"android.widget.SpinnerAdapter"
] | import android.widget.SpinnerAdapter; | import android.widget.*; | [
"android.widget"
] | android.widget; | 184,361 |
public void setLogger(Logger logger) {
this.logger = logger;
} | void function(Logger logger) { this.logger = logger; } | /**
* Method to set Logger used by this ErrorManager
*
* @param logger the Logger
*/ | Method to set Logger used by this ErrorManager | setLogger | {
"repo_name": "WPI-AIM/OpenIGTLink-Java",
"path": "lib/OpenIGTLink/src/org/medcare/igtl/util/ErrorManager.java",
"license": "bsd-3-clause",
"size": 3042
} | [
"java.util.logging.Logger"
] | import java.util.logging.Logger; | import java.util.logging.*; | [
"java.util"
] | java.util; | 2,006,579 |
public Date getNextDate(Date date)
{
if (periodType == null || periodType.length() == 0)
{
return null;
}
PeriodProvider provider = getProvider(periodType);
return provider.getNextDate(date, expression != null ? expression : provider.getDefaul... | Date function(Date date) { if (periodType == null periodType.length() == 0) { return null; } PeriodProvider provider = getProvider(periodType); return provider.getNextDate(date, expression != null ? expression : provider.getDefaultExpression()); } | /**
* Calculate the next date for this period given the a start date.
*
* @param date Date
* @return the next date.
*/ | Calculate the next date for this period given the a start date | getNextDate | {
"repo_name": "Alfresco/community-edition",
"path": "projects/data-model/source/java/org/alfresco/service/cmr/repository/Period.java",
"license": "lgpl-3.0",
"size": 5642
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 521,859 |
Map<String, Map<String, Boolean>> checkJobsPermissionMethods(final String sessionId, List<String> jobId,
List<String> methods) throws RestServerException, ServiceException; | Map<String, Map<String, Boolean>> checkJobsPermissionMethods(final String sessionId, List<String> jobId, List<String> methods) throws RestServerException, ServiceException; | /**
* Check if user has permission to given methods for the given jobs
*
* @param sessionId the current session id
* @param jobId the list of job ids
* @param methods the list of methods to be checked
* @throws RestServerException exception thrown if problems occurred during the addJobSign... | Check if user has permission to given methods for the given jobs | checkJobsPermissionMethods | {
"repo_name": "ow2-proactive/scheduling-portal",
"path": "scheduler-portal/src/main/java/org/ow2/proactive_grid_cloud_portal/scheduler/client/SchedulerService.java",
"license": "agpl-3.0",
"size": 21328
} | [
"java.util.List",
"java.util.Map",
"org.ow2.proactive_grid_cloud_portal.common.shared.RestServerException",
"org.ow2.proactive_grid_cloud_portal.common.shared.ServiceException"
] | import java.util.List; import java.util.Map; import org.ow2.proactive_grid_cloud_portal.common.shared.RestServerException; import org.ow2.proactive_grid_cloud_portal.common.shared.ServiceException; | import java.util.*; import org.ow2.proactive_grid_cloud_portal.common.shared.*; | [
"java.util",
"org.ow2.proactive_grid_cloud_portal"
] | java.util; org.ow2.proactive_grid_cloud_portal; | 1,089,244 |
public void testReplyInfoOperations() throws IOException {
ad = UpdateableAdminData.getUpdateableInstance();
assertFalse("No replyInfo has been set", ad.hasReplyInfo(myFile));
StoreMessage myReplyInfo
= new StoreMessage(Channels.getError(),
... | void function() throws IOException { ad = UpdateableAdminData.getUpdateableInstance(); assertFalse(STR, ad.hasReplyInfo(myFile)); StoreMessage myReplyInfo = new StoreMessage(Channels.getError(), File.createTempFile("dummy","dummy")); ad.addEntry(myFile, myReplyInfo, STR); assertTrue(STR, ad.hasReplyInfo(myFile)); asser... | /**
* Verifies that setReplyInfo(), hasReplyInfo()
* and getAndRemoveReplyInfo() work as expected.
* @throws IOException
*/ | Verifies that setReplyInfo(), hasReplyInfo() and getAndRemoveReplyInfo() work as expected | testReplyInfoOperations | {
"repo_name": "netarchivesuite/netarchivesuite-svngit-migration",
"path": "tests/dk/netarkivet/archive/arcrepositoryadmin/AdminDataTester.java",
"license": "lgpl-2.1",
"size": 22737
} | [
"dk.netarkivet.archive.arcrepository.distribute.StoreMessage",
"dk.netarkivet.common.distribute.Channels",
"dk.netarkivet.common.exceptions.UnknownID",
"dk.netarkivet.testutils.FileAsserts",
"dk.netarkivet.testutils.LogUtils",
"java.io.File",
"java.io.IOException"
] | import dk.netarkivet.archive.arcrepository.distribute.StoreMessage; import dk.netarkivet.common.distribute.Channels; import dk.netarkivet.common.exceptions.UnknownID; import dk.netarkivet.testutils.FileAsserts; import dk.netarkivet.testutils.LogUtils; import java.io.File; import java.io.IOException; | import dk.netarkivet.archive.arcrepository.distribute.*; import dk.netarkivet.common.distribute.*; import dk.netarkivet.common.exceptions.*; import dk.netarkivet.testutils.*; import java.io.*; | [
"dk.netarkivet.archive",
"dk.netarkivet.common",
"dk.netarkivet.testutils",
"java.io"
] | dk.netarkivet.archive; dk.netarkivet.common; dk.netarkivet.testutils; java.io; | 400,904 |
public static void setVersion(FileSystem fs, Path rootdir, int wait, int retries)
throws IOException {
setVersion(fs, rootdir, HConstants.FILE_SYSTEM_VERSION, wait, retries);
} | static void function(FileSystem fs, Path rootdir, int wait, int retries) throws IOException { setVersion(fs, rootdir, HConstants.FILE_SYSTEM_VERSION, wait, retries); } | /**
* Sets version of file system
*
* @param fs filesystem object
* @param rootdir hbase root
* @param wait time to wait for retry
* @param retries number of times to retry before failing
* @throws IOException e
*/ | Sets version of file system | setVersion | {
"repo_name": "cloud-software-foundation/c5",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java",
"license": "apache-2.0",
"size": 67483
} | [
"java.io.IOException",
"org.apache.hadoop.fs.FileSystem",
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.hbase.HConstants"
] | import java.io.IOException; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hbase.HConstants; | import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hbase.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 124,560 |
@Override
public String toString() {
return isEmpty() ? JFaceResources.getString("<empty_selection>") : toList().toString(); //$NON-NLS-1$
} | String function() { return isEmpty() ? JFaceResources.getString(STR) : toList().toString(); } | /**
* Internal method which returns a string representation of this
* selection suitable for debug purposes only.
*
* @return debug string
*/ | Internal method which returns a string representation of this selection suitable for debug purposes only | toString | {
"repo_name": "AntoineDelacroix/NewSuperProject-",
"path": "org.eclipse.jface/src/org/eclipse/jface/viewers/StructuredSelection.java",
"license": "gpl-2.0",
"size": 5671
} | [
"org.eclipse.jface.resource.JFaceResources"
] | import org.eclipse.jface.resource.JFaceResources; | import org.eclipse.jface.resource.*; | [
"org.eclipse.jface"
] | org.eclipse.jface; | 2,171,433 |
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
jPanel1 = new javax.swing.JPanel();
jBut... | @SuppressWarnings(STR) void function() { jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jPanel1 = new javax.swing.JPanel(); jButton1 = new javax.swing.JButton(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); jTable1.setAutoCreateRowSorter(true); jTable1.setMo... | /**
* 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. regenerated by the Form Editor | initComponents | {
"repo_name": "AlexandrebQueiroz/acal",
"path": "src/telas/GeradorUsuario/PesquisarUsuario.java",
"license": "apache-2.0",
"size": 9769
} | [
"javax.swing.table.DefaultTableModel"
] | import javax.swing.table.DefaultTableModel; | import javax.swing.table.*; | [
"javax.swing"
] | javax.swing; | 437,973 |
public final Property<JmsConnector> jmsConnector() {
return metaBean().jmsConnector().createProperty(this);
} | final Property<JmsConnector> function() { return metaBean().jmsConnector().createProperty(this); } | /**
* Gets the the {@code jmsConnector} property.
* @return the property, not null
*/ | Gets the the jmsConnector property | jmsConnector | {
"repo_name": "McLeodMoores/starling",
"path": "examples/examples-simulated/src/main/java/com/opengamma/examples/simulated/component/ExampleMarketDataComponentFactory.java",
"license": "apache-2.0",
"size": 16152
} | [
"com.opengamma.util.jms.JmsConnector",
"org.joda.beans.Property"
] | import com.opengamma.util.jms.JmsConnector; import org.joda.beans.Property; | import com.opengamma.util.jms.*; import org.joda.beans.*; | [
"com.opengamma.util",
"org.joda.beans"
] | com.opengamma.util; org.joda.beans; | 2,536,697 |
@SuppressLint("NewApi")
private static void getRealPathFromURI_API19(final Context context, final Uri uri,
@NonNull OnTaskCompleteListener callbackListener) {
final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT;
String toReturn;
// Docu... | @SuppressLint(STR) static void function(final Context context, final Uri uri, @NonNull OnTaskCompleteListener callbackListener) { final boolean isKitKat = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT; String toReturn; if (isKitKat && DocumentsContract.isDocumentUri(context, uri)) { if (isExternalStorageDocument(... | /**
* Get the path from on API levels >= 19. This changed where the values were stored so
* additional checks are required to obtain the absolute path.
* @param context Context to check. As this is running using Async, use Application
* Context here instead of Activity Context
* @param uri Uri... | Get the path from on API levels >= 19. This changed where the values were stored so additional checks are required to obtain the absolute path | getRealPathFromURI_API19 | {
"repo_name": "PGMacDesign/PGMacUtilities",
"path": "library/src/main/java/com/pgmacdesign/pgmactips/utilities/FileUtilities.java",
"license": "apache-2.0",
"size": 66064
} | [
"android.annotation.SuppressLint",
"android.content.Context",
"android.net.Uri",
"android.os.Build",
"android.os.Environment",
"android.provider.DocumentsContract",
"android.provider.MediaStore",
"androidx.annotation.NonNull",
"com.pgmacdesign.pgmactips.adaptersandlisteners.OnTaskCompleteListener",
... | import android.annotation.SuppressLint; import android.content.Context; import android.net.Uri; import android.os.Build; import android.os.Environment; import android.provider.DocumentsContract; import android.provider.MediaStore; import androidx.annotation.NonNull; import com.pgmacdesign.pgmactips.adaptersandlisteners... | import android.annotation.*; import android.content.*; import android.net.*; import android.os.*; import android.provider.*; import androidx.annotation.*; import com.pgmacdesign.pgmactips.adaptersandlisteners.*; import com.pgmacdesign.pgmactips.utilities.*; | [
"android.annotation",
"android.content",
"android.net",
"android.os",
"android.provider",
"androidx.annotation",
"com.pgmacdesign.pgmactips"
] | android.annotation; android.content; android.net; android.os; android.provider; androidx.annotation; com.pgmacdesign.pgmactips; | 1,247,611 |
private void initSelectorMap() {
try {
// Self-calls
selectorMap.put("SHOW_GRID", new MethodCall(
getClass().getMethod("showGrid")));
selectorMap.put("SNAP_TO_GRID", new MethodCall(
getClass().getMethod("snapToGrid")));
} catch (NoSuchMethodException ex) {
ex.pr... | void function() { try { selectorMap.put(STR, new MethodCall( getClass().getMethod(STR))); selectorMap.put(STR, new MethodCall( getClass().getMethod(STR))); } catch (NoSuchMethodException ex) { ex.printStackTrace(); } } | /**
* Initializes the selector map.
*/ | Initializes the selector map | initSelectorMap | {
"repo_name": "ligenzatomas/firebird-vizualization-tool",
"path": "src/main/java/org/tinyuml/ui/EditorCommandDispatcher.java",
"license": "gpl-2.0",
"size": 3279
} | [
"org.tinyuml.util.MethodCall"
] | import org.tinyuml.util.MethodCall; | import org.tinyuml.util.*; | [
"org.tinyuml.util"
] | org.tinyuml.util; | 2,353,783 |
public void insertReverseTrigger(final FunctionSymbol sym, final ReverseTrigger trigger) {
final CCTerm func = getFuncTerm(sym);
final CCParentInfo info = func.mCCPars.createInfo(0);
info.mReverseTriggers.append(trigger);
} | void function(final FunctionSymbol sym, final ReverseTrigger trigger) { final CCTerm func = getFuncTerm(sym); final CCParentInfo info = func.mCCPars.createInfo(0); info.mReverseTriggers.append(trigger); } | /**
* Insert a Reverse trigger that will be activated as soon as a new function application of the given function
* symbol exists.
*
* @param fSym
* the function symbol.
* @param trigger
* the Reverse trigger.
*/ | Insert a Reverse trigger that will be activated as soon as a new function application of the given function symbol exists | insertReverseTrigger | {
"repo_name": "juergenchrist/smtinterpol",
"path": "SMTInterpol/src/de/uni_freiburg/informatik/ultimate/smtinterpol/theory/cclosure/CClosure.java",
"license": "gpl-3.0",
"size": 48440
} | [
"de.uni_freiburg.informatik.ultimate.logic.FunctionSymbol"
] | import de.uni_freiburg.informatik.ultimate.logic.FunctionSymbol; | import de.uni_freiburg.informatik.ultimate.logic.*; | [
"de.uni_freiburg.informatik"
] | de.uni_freiburg.informatik; | 1,148,105 |
public IPath getPackageRootPath() {
return fPackageRootPath;
} | IPath function() { return fPackageRootPath; } | /**
* Returns the path to the default package in the sources zip file
*
* @return The path to the default package in the sources zip file.
*/ | Returns the path to the default package in the sources zip file | getPackageRootPath | {
"repo_name": "boniatillo-com/PhaserEditor",
"path": "source/thirdparty/jsdt/org.eclipse.wst.jsdt.core/src/org/eclipse/wst/jsdt/launching/LibraryLocation.java",
"license": "epl-1.0",
"size": 5655
} | [
"org.eclipse.core.runtime.IPath"
] | import org.eclipse.core.runtime.IPath; | import org.eclipse.core.runtime.*; | [
"org.eclipse.core"
] | org.eclipse.core; | 2,611,442 |
@Override
public boolean exists(String remoteFile) throws IOException {
return exists(remoteFile, retries, timeout);
} | boolean function(String remoteFile) throws IOException { return exists(remoteFile, retries, timeout); } | /**
* Test for the existence of a file on a server with default attempts and
* timeout.
*/ | Test for the existence of a file on a server with default attempts and timeout | exists | {
"repo_name": "WASP-System/central",
"path": "wasp-core/src/main/java/edu/yu/einstein/wasp/grid/file/SshFileService.java",
"license": "agpl-3.0",
"size": 16682
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,387,914 |
@Override
public void characters(char[] ch, int start, int length) throws SAXException
{
String datos=new String (ch,start,length);
this.datosElemento=datos;
}
| void function(char[] ch, int start, int length) throws SAXException { String datos=new String (ch,start,length); this.datosElemento=datos; } | /**
* Evento que se lanza con los caracteres que aparecen entre la etiquetas de apertura y cierre
*/ | Evento que se lanza con los caracteres que aparecen entre la etiquetas de apertura y cierre | characters | {
"repo_name": "oscarcoresoft/gastosmovil",
"path": "src/deeloco/android/gastos/Movil/plus/TarifasParserXML.java",
"license": "gpl-3.0",
"size": 3337
} | [
"org.xml.sax.SAXException"
] | import org.xml.sax.SAXException; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 282,775 |
List<Diagnostic> getDiagnostics(); | List<Diagnostic> getDiagnostics(); | /**
* Gets the diagnostics.
*
* @return the diagnostics
*/ | Gets the diagnostics | getDiagnostics | {
"repo_name": "eFaps/eFaps-EQL",
"path": "src/main/java/org/efaps/eql/stmt/IEQLStmt.java",
"license": "apache-2.0",
"size": 1019
} | [
"java.util.List",
"org.eclipse.emf.common.util.Diagnostic"
] | import java.util.List; import org.eclipse.emf.common.util.Diagnostic; | import java.util.*; import org.eclipse.emf.common.util.*; | [
"java.util",
"org.eclipse.emf"
] | java.util; org.eclipse.emf; | 35,732 |
private void checkHttps(AmazonWebServiceRequest req) {
if (req instanceof SSECustomerKeyProvider) {
SSECustomerKeyProvider p = (SSECustomerKeyProvider) req;
if (p.getSSECustomerKey() != null)
assertHttps();
} else if (req instanceof CopyObjectRequest) {
... | void function(AmazonWebServiceRequest req) { if (req instanceof SSECustomerKeyProvider) { SSECustomerKeyProvider p = (SSECustomerKeyProvider) req; if (p.getSSECustomerKey() != null) assertHttps(); } else if (req instanceof CopyObjectRequest) { CopyObjectRequest cor = (CopyObjectRequest) req; if (cor.getSourceSSECustome... | /**
* Throws {@link IllegalArgumentException} if SSE customer key is in use
* without https.
*/ | Throws <code>IllegalArgumentException</code> if SSE customer key is in use without https | checkHttps | {
"repo_name": "tootedom/aws-sdk-java",
"path": "aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/AmazonS3Client.java",
"license": "apache-2.0",
"size": 202843
} | [
"com.amazonaws.AmazonWebServiceRequest",
"com.amazonaws.services.s3.model.CopyObjectRequest",
"com.amazonaws.services.s3.model.CopyPartRequest",
"com.amazonaws.services.s3.model.SSEAwsKeyManagementParamsProvider",
"com.amazonaws.services.s3.model.SSECustomerKeyProvider"
] | import com.amazonaws.AmazonWebServiceRequest; import com.amazonaws.services.s3.model.CopyObjectRequest; import com.amazonaws.services.s3.model.CopyPartRequest; import com.amazonaws.services.s3.model.SSEAwsKeyManagementParamsProvider; import com.amazonaws.services.s3.model.SSECustomerKeyProvider; | import com.amazonaws.*; import com.amazonaws.services.s3.model.*; | [
"com.amazonaws",
"com.amazonaws.services"
] | com.amazonaws; com.amazonaws.services; | 2,062,171 |
private boolean removeBlock(BlockPos pos)
{
IBlockState iblockstate = this.theWorld.getBlockState(pos);
iblockstate.getBlock().onBlockHarvested(this.theWorld, pos, iblockstate, this.thisPlayerMP);
boolean flag = this.theWorld.setBlockToAir(pos);
if (flag)
{
i... | boolean function(BlockPos pos) { IBlockState iblockstate = this.theWorld.getBlockState(pos); iblockstate.getBlock().onBlockHarvested(this.theWorld, pos, iblockstate, this.thisPlayerMP); boolean flag = this.theWorld.setBlockToAir(pos); if (flag) { iblockstate.getBlock().onBlockDestroyedByPlayer(this.theWorld, pos, ibloc... | /**
* Removes a block and triggers the appropriate events
*/ | Removes a block and triggers the appropriate events | removeBlock | {
"repo_name": "scribblemaniac/AwakenDreamsClient",
"path": "mcp/src/minecraft/net/minecraft/server/management/PlayerInteractionManager.java",
"license": "gpl-3.0",
"size": 17113
} | [
"net.minecraft.block.state.IBlockState",
"net.minecraft.util.math.BlockPos"
] | import net.minecraft.block.state.IBlockState; import net.minecraft.util.math.BlockPos; | import net.minecraft.block.state.*; import net.minecraft.util.math.*; | [
"net.minecraft.block",
"net.minecraft.util"
] | net.minecraft.block; net.minecraft.util; | 2,286,178 |
@Override
@Nonnull
public HDLDirectGeneration copyDeepFrozen(IHDLObject container) {
final HDLDirectGeneration copy = copyFiltered(CopyFilter.DEEP_META);
copy.freeze(container);
return copy;
} | HDLDirectGeneration function(IHDLObject container) { final HDLDirectGeneration copy = copyFiltered(CopyFilter.DEEP_META); copy.freeze(container); return copy; } | /**
* Creates a deep copy of this class with the same fields and freezes it.
*
* @return a new instance of this class.
*/ | Creates a deep copy of this class with the same fields and freezes it | copyDeepFrozen | {
"repo_name": "pshdl/org.pshdl",
"path": "model-gen/org/pshdl/model/impl/AbstractHDLDirectGeneration.java",
"license": "gpl-3.0",
"size": 23116
} | [
"org.pshdl.model.HDLDirectGeneration",
"org.pshdl.model.IHDLObject",
"org.pshdl.model.utils.CopyFilter"
] | import org.pshdl.model.HDLDirectGeneration; import org.pshdl.model.IHDLObject; import org.pshdl.model.utils.CopyFilter; | import org.pshdl.model.*; import org.pshdl.model.utils.*; | [
"org.pshdl.model"
] | org.pshdl.model; | 2,900,203 |
@Override
public boolean isAsyncComplete(TaskModel task) {
return true;
} | boolean function(TaskModel task) { return true; } | /**
* Keep Subworkflow task asyncComplete. The Subworkflow task will be executed once
* asynchronously to move to IN_PROGRESS state, and will move to termination by Subworkflow's
* completeWorkflow logic, there by avoiding periodic polling.
*
* @param task
* @return
*/ | Keep Subworkflow task asyncComplete. The Subworkflow task will be executed once asynchronously to move to IN_PROGRESS state, and will move to termination by Subworkflow's completeWorkflow logic, there by avoiding periodic polling | isAsyncComplete | {
"repo_name": "Netflix/conductor",
"path": "core/src/main/java/com/netflix/conductor/core/execution/tasks/SubWorkflow.java",
"license": "apache-2.0",
"size": 9085
} | [
"com.netflix.conductor.model.TaskModel"
] | import com.netflix.conductor.model.TaskModel; | import com.netflix.conductor.model.*; | [
"com.netflix.conductor"
] | com.netflix.conductor; | 398,562 |
public com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket createUserAuthTicket(com.mozu.api.contracts.core.UserAuthInfo userAuthInfo, Integer tenantId, String responseFields) throws Exception
{
MozuClient<com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket> client = com.mozu.api.clients.platform.ad... | com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket function(com.mozu.api.contracts.core.UserAuthInfo userAuthInfo, Integer tenantId, String responseFields) throws Exception { MozuClient<com.mozu.api.contracts.adminuser.TenantAdminUserAuthTicket> client = com.mozu.api.clients.platform.adminuser.TenantAdminUserAu... | /**
* Creates an authentication ticket for the supplied user to specify in API requests associated with the supplied tenant.
* <p><pre><code>
* TenantAdminUserAuthTicket tenantadminuserauthticket = new TenantAdminUserAuthTicket();
* TenantAdminUserAuthTicket tenantAdminUserAuthTicket = tenantadminuserauthticket... | Creates an authentication ticket for the supplied user to specify in API requests associated with the supplied tenant. <code><code> TenantAdminUserAuthTicket tenantadminuserauthticket = new TenantAdminUserAuthTicket(); TenantAdminUserAuthTicket tenantAdminUserAuthTicket = tenantadminuserauthticket.createUserAuthTicket(... | createUserAuthTicket | {
"repo_name": "lakshmi-nair/mozu-java",
"path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/platform/adminuser/TenantAdminUserAuthTicketResource.java",
"license": "mit",
"size": 11825
} | [
"com.mozu.api.MozuClient"
] | import com.mozu.api.MozuClient; | import com.mozu.api.*; | [
"com.mozu.api"
] | com.mozu.api; | 1,362,657 |
@Override
public OAuthApplicationInfo mapOAuthApplication(OAuthAppRequest appInfoRequest)
throws APIManagementException {
//initiate OAuthApplicationInfo
OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo();
String consumerKey = oAuthApplicat... | OAuthApplicationInfo function(OAuthAppRequest appInfoRequest) throws APIManagementException { OAuthApplicationInfo oAuthApplicationInfo = appInfoRequest.getOAuthApplicationInfo(); String consumerKey = oAuthApplicationInfo.getClientId(); String tokenScope = (String) oAuthApplicationInfo.getParameter(STR); String[] token... | /**
* This method will create a new record at CLIENT_INFO table by given OauthAppRequest.
*
* @param appInfoRequest oAuth application properties will contain in this object
* @return OAuthApplicationInfo with created oAuth application details.
* @throws org.wso2.carbon.apimgt.api.APIManagementE... | This method will create a new record at CLIENT_INFO table by given OauthAppRequest | mapOAuthApplication | {
"repo_name": "isharac/carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/AMDefaultKeyManagerImpl.java",
"license": "apache-2.0",
"size": 56424
} | [
"org.wso2.carbon.apimgt.api.APIManagementException",
"org.wso2.carbon.apimgt.api.model.ApplicationConstants",
"org.wso2.carbon.apimgt.api.model.OAuthAppRequest",
"org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo",
"org.wso2.carbon.apimgt.impl.kmclient.KeyManagerClientException",
"org.wso2.carbon.apim... | import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.ApplicationConstants; import org.wso2.carbon.apimgt.api.model.OAuthAppRequest; import org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo; import org.wso2.carbon.apimgt.impl.kmclient.KeyManagerClientException; import org... | import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.kmclient.*; import org.wso2.carbon.apimgt.impl.kmclient.model.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,521,060 |
protected void applyToAbstractRenderer(AbstractRenderer renderer) {
if (renderer.getAutoPopulateSeriesPaint()) {
renderer.clearSeriesPaints(false);
}
if (renderer.getAutoPopulateSeriesStroke()) {
renderer.clearSeriesStrokes(false);
}
} | void function(AbstractRenderer renderer) { if (renderer.getAutoPopulateSeriesPaint()) { renderer.clearSeriesPaints(false); } if (renderer.getAutoPopulateSeriesStroke()) { renderer.clearSeriesStrokes(false); } } | /**
* Applies the attributes for this theme to an {@link AbstractRenderer}.
*
* @param renderer the renderer ({@code null} not permitted).
*/ | Applies the attributes for this theme to an <code>AbstractRenderer</code> | applyToAbstractRenderer | {
"repo_name": "jfree/jfreechart",
"path": "src/main/java/org/jfree/chart/StandardChartTheme.java",
"license": "lgpl-2.1",
"size": 57087
} | [
"org.jfree.chart.renderer.AbstractRenderer"
] | import org.jfree.chart.renderer.AbstractRenderer; | import org.jfree.chart.renderer.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 1,801,077 |
@Override
public String toScript() {
// Python case
StringBuffer s = new StringBuffer("Mat(");
String f = null;
try {
f = ((RingElem<C>) coFac).toScriptFactory(); // sic
} catch (Exception e) {
f = coFac.toScript();
}
s.append(f + "... | String function() { StringBuffer s = new StringBuffer("Mat("); String f = null; try { f = ((RingElem<C>) coFac).toScriptFactory(); } catch (Exception e) { f = coFac.toScript(); } s.append(f + "," + rows + "," + cols + ")"); return s.toString(); } | /**
* Get a scripting compatible string representation.
* @return script compatible representation for this ElemFactory.
* @see edu.jas.structure.ElemFactory#toScript()
*/ | Get a scripting compatible string representation | toScript | {
"repo_name": "breandan/java-algebra-system",
"path": "src/edu/jas/vector/GenMatrixRing.java",
"license": "gpl-2.0",
"size": 14832
} | [
"edu.jas.structure.RingElem"
] | import edu.jas.structure.RingElem; | import edu.jas.structure.*; | [
"edu.jas.structure"
] | edu.jas.structure; | 2,223,226 |
void setLatch(CountDownLatch latch) {
this.latch = latch;
} | void setLatch(CountDownLatch latch) { this.latch = latch; } | /**
* Used for testing purposes
* @param latch
*/ | Used for testing purposes | setLatch | {
"repo_name": "OuZhencong/logback",
"path": "logback-classic/src/main/java/ch/qos/logback/classic/net/SimpleSocketServer.java",
"license": "mit",
"size": 6244
} | [
"java.util.concurrent.CountDownLatch"
] | import java.util.concurrent.CountDownLatch; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 746,489 |
public MessageDestinationRefType<T> id(String id)
{
childNode.attribute("id", id);
return this;
} | MessageDestinationRefType<T> function(String id) { childNode.attribute("id", id); return this; } | /**
* Sets the <code>id</code> attribute
* @param id the value for the attribute <code>id</code>
* @return the current instance of <code>MessageDestinationRefType<T></code>
*/ | Sets the <code>id</code> attribute | id | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/javaee6/MessageDestinationRefTypeImpl.java",
"license": "epl-1.0",
"size": 16577
} | [
"org.jboss.shrinkwrap.descriptor.api.javaee6.MessageDestinationRefType"
] | import org.jboss.shrinkwrap.descriptor.api.javaee6.MessageDestinationRefType; | import org.jboss.shrinkwrap.descriptor.api.javaee6.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 842,827 |
@Field(index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = "noStopWord"))
public String getSubsetName() {
return subset == null ? null : subset.getName();
} | @Field(index = Index.YES, store = Store.NO, analyze = Analyze.YES, analyzer = @Analyzer(definition = STR)) String function() { return subset == null ? null : subset.getName(); } | /**
* Returns the subset name. For JAXB.
*
* @return the subset name
*/ | Returns the subset name. For JAXB | getSubsetName | {
"repo_name": "WestCoastInformatics/UMLS-Terminology-Server",
"path": "jpa-model/src/main/java/com/wci/umls/server/jpa/content/AtomSubsetMemberJpa.java",
"license": "apache-2.0",
"size": 9769
} | [
"org.hibernate.search.annotations.Analyze",
"org.hibernate.search.annotations.Analyzer",
"org.hibernate.search.annotations.Field",
"org.hibernate.search.annotations.Index",
"org.hibernate.search.annotations.Store"
] | import org.hibernate.search.annotations.Analyze; import org.hibernate.search.annotations.Analyzer; import org.hibernate.search.annotations.Field; import org.hibernate.search.annotations.Index; import org.hibernate.search.annotations.Store; | import org.hibernate.search.annotations.*; | [
"org.hibernate.search"
] | org.hibernate.search; | 738,810 |
public String getProtocol() throws URISyntaxException,
KeyManagementException, NoSuchAlgorithmException,
UnknownHostException, KeyStoreException, CertificateException,
IllegalArgumentException, UnrecoverableKeyException, IOException,
JUploadException {
... | String function() throws URISyntaxException, KeyManagementException, NoSuchAlgorithmException, UnknownHostException, KeyStoreException, CertificateException, IllegalArgumentException, UnrecoverableKeyException, IOException, JUploadException { String protocol = HTTPCONNECT_DEFAULT_PROTOCOL; URL url = new URL(this.upload... | /**
* Retrieve the protocol to be used for the postURL of the current policy.
* This method issues a HEAD request to the postURL and then examines the
* protocol version returned in the response.
*
* @return The string, describing the protocol (e.g. "HTTP/1.1")
* @throws URISyntaxEx... | Retrieve the protocol to be used for the postURL of the current policy. This method issues a HEAD request to the postURL and then examines the protocol version returned in the response | getProtocol | {
"repo_name": "Silverpeas/silverpeas-jupload",
"path": "src/main/java/wjhk/jupload2/upload/helper/HttpConnect.java",
"license": "gpl-3.0",
"size": 19993
} | [
"java.io.IOException",
"java.net.URISyntaxException",
"java.net.UnknownHostException",
"java.security.KeyManagementException",
"java.security.KeyStoreException",
"java.security.NoSuchAlgorithmException",
"java.security.UnrecoverableKeyException",
"java.security.cert.CertificateException",
"java.util... | import java.io.IOException; import java.net.URISyntaxException; import java.net.UnknownHostException; import java.security.KeyManagementException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.UnrecoverableKeyException; import java.security.cert.CertificateE... | import java.io.*; import java.net.*; import java.security.*; import java.security.cert.*; import java.util.regex.*; | [
"java.io",
"java.net",
"java.security",
"java.util"
] | java.io; java.net; java.security; java.util; | 466,650 |
return INSTANCE;
}
private FuturesPriceBlackSTIRFuturesCalculator() {
}
private static final BlackPriceFunction BLACK_FUNCTION = new BlackPriceFunction();
private static final InterestRateFutureSecurityDiscountingMethod METHOD_FUTURE = InterestRateFutureSecurityDiscountingMethod.getInstance();
/... | return INSTANCE; } private FuturesPriceBlackSTIRFuturesCalculator() { } private static final BlackPriceFunction BLACK_FUNCTION = new BlackPriceFunction(); private static final InterestRateFutureSecurityDiscountingMethod METHOD_FUTURE = InterestRateFutureSecurityDiscountingMethod.getInstance(); | /**
* Gets the calculator instance.
* @return The calculator.
*/ | Gets the calculator instance | getInstance | {
"repo_name": "DevStreet/FinanceAnalytics",
"path": "projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/interestrate/future/calculator/FuturesPriceBlackSTIRFuturesCalculator.java",
"license": "apache-2.0",
"size": 3564
} | [
"com.opengamma.analytics.financial.interestrate.future.provider.InterestRateFutureSecurityDiscountingMethod",
"com.opengamma.analytics.financial.model.option.pricing.analytic.formula.BlackPriceFunction"
] | import com.opengamma.analytics.financial.interestrate.future.provider.InterestRateFutureSecurityDiscountingMethod; import com.opengamma.analytics.financial.model.option.pricing.analytic.formula.BlackPriceFunction; | import com.opengamma.analytics.financial.interestrate.future.provider.*; import com.opengamma.analytics.financial.model.option.pricing.analytic.formula.*; | [
"com.opengamma.analytics"
] | com.opengamma.analytics; | 1,426,584 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.