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
private boolean initConnection(ConnectionParams cp) { ApnContext apnContext = cp.mApnContext; if (mApnSetting == null) { // Only change apn setting if it isn't set, it will // only NOT be set only if we're in DcInactiveState. mApnSetting = apnContext.getApnSetting...
boolean function(ConnectionParams cp) { ApnContext apnContext = cp.mApnContext; if (mApnSetting == null) { mApnSetting = apnContext.getApnSetting(); } else if (mApnSetting.canHandleType(apnContext.getApnType())) { } else { if (DBG) { log(STR + cp + STR + DataConnection.this); } return false; } mTag += 1; mConnectionPar...
/** * Initialize connection, this will fail if the * apnSettings are not compatible. * * @param cp the Connection paramemters * @return true if initialization was successful. */
Initialize connection, this will fail if the apnSettings are not compatible
initConnection
{ "repo_name": "JSDemos/android-sdk-20", "path": "src/com/android/internal/telephony/dataconnection/DataConnection.java", "license": "apache-2.0", "size": 73222 }
[ "com.android.internal.telephony.PhoneConstants" ]
import com.android.internal.telephony.PhoneConstants;
import com.android.internal.telephony.*;
[ "com.android.internal" ]
com.android.internal;
2,433,885
public void dumpEphemerals(PrintWriter pwriter) { dataTree.dumpEphemerals(pwriter); }
void function(PrintWriter pwriter) { dataTree.dumpEphemerals(pwriter); }
/** * write a text dump of all the ephemerals in the datatree * @param pwriter the output to write to */
write a text dump of all the ephemerals in the datatree
dumpEphemerals
{ "repo_name": "tenaciousjzh/titan-solr-cloud-test", "path": "zookeeper-3.3.5/src/java/main/org/apache/zookeeper/server/ZKDatabase.java", "license": "apache-2.0", "size": 15873 }
[ "java.io.PrintWriter" ]
import java.io.PrintWriter;
import java.io.*;
[ "java.io" ]
java.io;
2,315,044
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String lockName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( ...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<Void>> function(String resourceGroupName, String lockName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException(STR)); } if (lockNam...
/** * To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* * actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions. * * @param resourceGroupName The name of the resource group containing the lock...
To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions
deleteWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/implementation/ManagementLocksClientImpl.java", "license": "mit", "size": 183211 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
830,863
public void setContent(FileDescriptor descriptor, byte[] content, IFileDataStoreResultCallback callback) { FileOutputStream fos = null; try { File f = new File(descriptor.getPathAbsolute()); fos = new FileOutputStream(f); fos.write(content); fos.flush...
void function(FileDescriptor descriptor, byte[] content, IFileDataStoreResultCallback callback) { FileOutputStream fos = null; try { File f = new File(descriptor.getPathAbsolute()); fos = new FileOutputStream(f); fos.write(content); fos.flush(); fos.close(); callback.onResult(descriptor); } catch (FileNotFoundException...
/** * Sets the content of the file. * * @param descriptor File descriptor of file or folder used for operation. * @param content Binary content to store in the file. * @param callback Result of the operation. * @since ARP1.0 */
Sets the content of the file
setContent
{ "repo_name": "AdaptiveMe/adaptive-arp-android", "path": "adaptive-arp-rt/mobile/src/main/java/me/adaptive/arp/impl/FileDelegate.java", "license": "apache-2.0", "size": 16070 }
[ "java.io.File", "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException", "me.adaptive.arp.api.FileDescriptor", "me.adaptive.arp.api.IFileDataStoreResultCallback", "me.adaptive.arp.api.IFileDataStoreResultCallbackError", "me.adaptive.arp.api.ILoggingLogLevel" ]
import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import me.adaptive.arp.api.FileDescriptor; import me.adaptive.arp.api.IFileDataStoreResultCallback; import me.adaptive.arp.api.IFileDataStoreResultCallbackError; import me.adaptive.arp.api.ILoggingLog...
import java.io.*; import me.adaptive.arp.api.*;
[ "java.io", "me.adaptive.arp" ]
java.io; me.adaptive.arp;
377,871
return new FieldProjector(rootSegment); } public FieldProjector(final ProjectionTree rootSegment) { super(rootSegment); } /** * This is the main algorithm that determine if the current {@link DocumentReader}
return new FieldProjector(rootSegment); } public FieldProjector(final ProjectionTree rootSegment) { super(rootSegment); } /** * This is the main algorithm that determine if the current {@link DocumentReader}
/** * Creates a lightweight clone of this FieldProjector with shared ProjectionTree. */
Creates a lightweight clone of this FieldProjector with shared ProjectionTree
cloneWithSharedProjectionTree
{ "repo_name": "ojai/ojai", "path": "java/core/src/main/java/org/ojai/util/FieldProjector.java", "license": "apache-2.0", "size": 6033 }
[ "org.ojai.DocumentReader", "org.ojai.util.impl.ProjectionTree" ]
import org.ojai.DocumentReader; import org.ojai.util.impl.ProjectionTree;
import org.ojai.*; import org.ojai.util.impl.*;
[ "org.ojai", "org.ojai.util" ]
org.ojai; org.ojai.util;
567,027
@SuppressWarnings("unchecked") private static Object deserializeCloudKnownTypes(Object src) { if (src instanceof Map) { Map<String, Object> srcMap = (Map<String, Object>) src; @Nullable Object value = srcMap.get(PropertyNames.SCALAR_FIELD_NAME); @Nullable CloudKnownType type = CloudK...
@SuppressWarnings(STR) static Object function(Object src) { if (src instanceof Map) { Map<String, Object> srcMap = (Map<String, Object>) src; @Nullable Object value = srcMap.get(PropertyNames.SCALAR_FIELD_NAME); @Nullable CloudKnownType type = CloudKnownType.forUri((String) srcMap.get(PropertyNames.OBJECT_TYPE_NAME)); ...
/** * Recursively walks the supplied map, looking for well-known cloud type * information (keyed as {@link PropertyNames#OBJECT_TYPE_NAME}, matching a * URI value from the {@link CloudKnownType} enum. Upon finding this type * information, it converts it into the correspondingly typed Java value. */
Recursively walks the supplied map, looking for well-known cloud type information (keyed as <code>PropertyNames#OBJECT_TYPE_NAME</code>, matching a URI value from the <code>CloudKnownType</code> enum. Upon finding this type information, it converts it into the correspondingly typed Java value
deserializeCloudKnownTypes
{ "repo_name": "axbaretto/beam", "path": "sdks/java/core/src/main/java/org/apache/beam/sdk/util/Serializer.java", "license": "apache-2.0", "size": 6019 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "javax.annotation.Nullable" ]
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.annotation.Nullable;
import java.util.*; import javax.annotation.*;
[ "java.util", "javax.annotation" ]
java.util; javax.annotation;
1,927,645
public AttributeCondition createBeginHyphenAttributeCondition (String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new CSSBeginHyphenAttributeCondition (localName, namespaceURI, specified, value); }
AttributeCondition function (String localName, String namespaceURI, boolean specified, String value) throws CSSException { return new CSSBeginHyphenAttributeCondition (localName, namespaceURI, specified, value); }
/** * <b>SAC</b>: Implements {@link * ConditionFactory#createBeginHyphenAttributeCondition(String,String,boolean,String)}. */
SAC: Implements <code>ConditionFactory#createBeginHyphenAttributeCondition(String,String,boolean,String)</code>
createBeginHyphenAttributeCondition
{ "repo_name": "shyamalschandra/flex-sdk", "path": "modules/thirdparty/batik/sources/org/apache/flex/forks/batik/css/engine/sac/CSSConditionFactory.java", "license": "apache-2.0", "size": 7476 }
[ "org.w3c.css.sac.AttributeCondition", "org.w3c.css.sac.CSSException" ]
import org.w3c.css.sac.AttributeCondition; import org.w3c.css.sac.CSSException;
import org.w3c.css.sac.*;
[ "org.w3c.css" ]
org.w3c.css;
2,882,602
public boolean rateLimited(IOException ioe) { if (ioe instanceof GoogleJsonResponseException) { GoogleJsonResponseException googleJsonResponseException = (GoogleJsonResponseException) ioe; return rateLimited(getDetails(googleJsonResponseException)); } return false; }
boolean function(IOException ioe) { if (ioe instanceof GoogleJsonResponseException) { GoogleJsonResponseException googleJsonResponseException = (GoogleJsonResponseException) ioe; return rateLimited(getDetails(googleJsonResponseException)); } return false; }
/** * Determine if a given IOException is caused by a rate limit being applied. * @param ioe The IOException to check. * @return True if the IOException is a result of rate limiting being applied. */
Determine if a given IOException is caused by a rate limit being applied
rateLimited
{ "repo_name": "peltekster/bigdata-interop-leanplum", "path": "util/src/main/java/com/google/cloud/hadoop/util/ApiErrorExtractor.java", "license": "apache-2.0", "size": 6978 }
[ "com.google.api.client.googleapis.json.GoogleJsonResponseException", "java.io.IOException" ]
import com.google.api.client.googleapis.json.GoogleJsonResponseException; import java.io.IOException;
import com.google.api.client.googleapis.json.*; import java.io.*;
[ "com.google.api", "java.io" ]
com.google.api; java.io;
910,630
public static Vector getBeanInstances() { return COMPONENTS; }
static Vector function() { return COMPONENTS; }
/** * Return the list of displayed beans * * @return a vector of beans */
Return the list of displayed beans
getBeanInstances
{ "repo_name": "paolopavan/cfr", "path": "src/weka/gui/BEANS/BeanInstance.java", "license": "gpl-3.0", "size": 11247 }
[ "java.util.Vector" ]
import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
1,787,658
@Override public void close() throws IOException { long refs = referenceCount.decrementAndGet(); if (refs == 0) { super.close(); } }
void function() throws IOException { long refs = referenceCount.decrementAndGet(); if (refs == 0) { super.close(); } }
/** * Decreases the reference of the underlying reader for the mob file. * It's not thread-safe. Use MobFileCache.closeFile() instead. * This underlying reader isn't closed until the reference is 0. */
Decreases the reference of the underlying reader for the mob file. It's not thread-safe. Use MobFileCache.closeFile() instead. This underlying reader isn't closed until the reference is 0
close
{ "repo_name": "JingchengDu/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/mob/CachedMobFile.java", "license": "apache-2.0", "size": 3757 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,845,989
public static void logException(Exception e,Object catcher,Logger logger){ logException(e,catcher,logger,Level.WARNING); }
static void function(Exception e,Object catcher,Logger logger){ logException(e,catcher,logger,Level.WARNING); }
/** * Logs the exception to the specified logger with loglevel Warning: * @param e the Exception to log */
Logs the exception to the specified logger with loglevel Warning:
logException
{ "repo_name": "idega/platform2", "path": "src/com/idega/util/logging/LoggingHelper.java", "license": "gpl-3.0", "size": 4070 }
[ "java.util.logging.Level", "java.util.logging.Logger" ]
import java.util.logging.Level; import java.util.logging.Logger;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,288,380
protected FileSystem getFileSystem() { return fileSystem; }
FileSystem function() { return fileSystem; }
/** * Returns the Filesystem in use. * * TestCases should use this Filesystem as it * is properly configured with the workingDir for relative PATHs. * * @return the filesystem used by Hadoop. */
Returns the Filesystem in use. TestCases should use this Filesystem as it is properly configured with the workingDir for relative PATHs
getFileSystem
{ "repo_name": "ict-carch/hadoop-plus", "path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test/java/org/apache/hadoop/mapred/HadoopTestCase.java", "license": "apache-2.0", "size": 6214 }
[ "org.apache.hadoop.fs.FileSystem" ]
import org.apache.hadoop.fs.FileSystem;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,798,163
private static long dosToJavaTime( long dosTime ) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis( dosTime ); return dosTime - ( cal.get( Calendar.ZONE_OFFSET ) + cal.get( Calendar.DST_OFFSET ) ); }
static long function( long dosTime ) { Calendar cal = Calendar.getInstance(); cal.setTimeInMillis( dosTime ); return dosTime - ( cal.get( Calendar.ZONE_OFFSET ) + cal.get( Calendar.DST_OFFSET ) ); }
/** * Converts DOS time to Java time (number of milliseconds since epoch). * * @see java.util.zip.ZipEntry#setTime * @see java.util.zip.ZipUtils#dosToJavaTime */
Converts DOS time to Java time (number of milliseconds since epoch)
dosToJavaTime
{ "repo_name": "codehaus-plexus/plexus-archiver", "path": "src/main/java/org/codehaus/plexus/archiver/zip/AbstractZipArchiver.java", "license": "apache-2.0", "size": 26952 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
398,382
@Test public void findByIndex() { assertThat(CheckersPosition.findByIndex(0), is(CheckersPosition.P01)); assertThat(CheckersPosition.findByIndex(1), is(CheckersPosition.P02)); assertThat(CheckersPosition.findByIndex(2), is(CheckersPosition.P03)); assertThat(CheckersPosition.f...
void function() { assertThat(CheckersPosition.findByIndex(0), is(CheckersPosition.P01)); assertThat(CheckersPosition.findByIndex(1), is(CheckersPosition.P02)); assertThat(CheckersPosition.findByIndex(2), is(CheckersPosition.P03)); assertThat(CheckersPosition.findByIndex(3), is(CheckersPosition.P04)); assertThat(Checker...
/** * Test the <code>findByIndex()</code> method. */
Test the <code>findByIndex()</code> method
findByIndex
{ "repo_name": "jmthompson2015/vizzini", "path": "example/src/test/java/org/vizzini/example/boardgame/checkers/CheckersPositionTest.java", "license": "mit", "size": 6918 }
[ "org.hamcrest.CoreMatchers", "org.junit.Assert" ]
import org.hamcrest.CoreMatchers; import org.junit.Assert;
import org.hamcrest.*; import org.junit.*;
[ "org.hamcrest", "org.junit" ]
org.hamcrest; org.junit;
1,199,700
private void refreshTopGroups() { final List<ResultRow> results = UNISoNController.getInstance().getAnalysis() .getTopGroupsList(); this.topGroupsList.setModel(this.getListModel(results)); }
void function() { final List<ResultRow> results = UNISoNController.getInstance().getAnalysis() .getTopGroupsList(); this.topGroupsList.setModel(this.getListModel(results)); }
/** * Refresh top groups. */
Refresh top groups
refreshTopGroups
{ "repo_name": "eltonnuness/unison", "path": "src/main/java/uk/co/sleonard/unison/gui/generated/MessageStoreViewer.java", "license": "apache-2.0", "size": 45235 }
[ "java.util.List", "uk.co.sleonard.unison.UNISoNController", "uk.co.sleonard.unison.datahandling.DAO" ]
import java.util.List; import uk.co.sleonard.unison.UNISoNController; import uk.co.sleonard.unison.datahandling.DAO;
import java.util.*; import uk.co.sleonard.unison.*; import uk.co.sleonard.unison.datahandling.*;
[ "java.util", "uk.co.sleonard" ]
java.util; uk.co.sleonard;
820,485
//------------------------- AUTOGENERATED START ------------------------- ///CLOVER:OFF public static ManageableUser.Meta meta() { return ManageableUser.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(ManageableUser.Meta.INSTANCE); }
static ManageableUser.Meta function() { return ManageableUser.Meta.INSTANCE; } static { JodaBeanUtils.registerMetaBean(ManageableUser.Meta.INSTANCE); }
/** * The meta-bean for {@code ManageableUser}. * @return the meta-bean, not null */
The meta-bean for ManageableUser
meta
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-Master/src/main/java/com/opengamma/master/user/ManageableUser.java", "license": "apache-2.0", "size": 25314 }
[ "org.joda.beans.JodaBeanUtils" ]
import org.joda.beans.JodaBeanUtils;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
2,581,670
public static String getDefaultAccountByRegion(IPreferenceStore preferenceStore, Region region) { if (isRegionDefaultAccountEnabled(preferenceStore, region)) { return preferenceStore.getString(PreferenceConstants.P_REGION_CURRENT_DEFAULT_ACCOUNT(region)); } else { return pref...
static String function(IPreferenceStore preferenceStore, Region region) { if (isRegionDefaultAccountEnabled(preferenceStore, region)) { return preferenceStore.getString(PreferenceConstants.P_REGION_CURRENT_DEFAULT_ACCOUNT(region)); } else { return preferenceStore.getString(PreferenceConstants.P_GLOBAL_CURRENT_DEFAULT_A...
/** * Returns the default account id associated with the given region. If the * region is not configured with default accounts, then this method returns * the global account id. */
Returns the default account id associated with the given region. If the region is not configured with default accounts, then this method returns the global account id
getDefaultAccountByRegion
{ "repo_name": "zhangzhx/aws-toolkit-eclipse", "path": "bundles/com.amazonaws.eclipse.core/src/com/amazonaws/eclipse/core/ui/preferences/AwsAccountPreferencePage.java", "license": "apache-2.0", "size": 29753 }
[ "com.amazonaws.eclipse.core.preferences.PreferenceConstants", "com.amazonaws.eclipse.core.regions.Region", "org.eclipse.jface.preference.IPreferenceStore" ]
import com.amazonaws.eclipse.core.preferences.PreferenceConstants; import com.amazonaws.eclipse.core.regions.Region; import org.eclipse.jface.preference.IPreferenceStore;
import com.amazonaws.eclipse.core.preferences.*; import com.amazonaws.eclipse.core.regions.*; import org.eclipse.jface.preference.*;
[ "com.amazonaws.eclipse", "org.eclipse.jface" ]
com.amazonaws.eclipse; org.eclipse.jface;
1,312,255
public static void setVirtualNetworkGatewayConnectionSharedKey( com.azure.resourcemanager.AzureResourceManager azure) { azure .networks() .manager() .serviceClient() .getVirtualNetworkGatewayConnections() .setSharedKey("rg1", "connS2S"...
static void function( com.azure.resourcemanager.AzureResourceManager azure) { azure .networks() .manager() .serviceClient() .getVirtualNetworkGatewayConnections() .setSharedKey("rg1", STR, new ConnectionSharedKeyInner().withValue(STR), Context.NONE); }
/** * Sample code: SetVirtualNetworkGatewayConnectionSharedKey. * * @param azure The entry point for accessing resource management APIs in Azure. */
Sample code: SetVirtualNetworkGatewayConnectionSharedKey
setVirtualNetworkGatewayConnectionSharedKey
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/network/generated/VirtualNetworkGatewayConnectionsSetSharedKeySamples.java", "license": "mit", "size": 1213 }
[ "com.azure.core.util.Context", "com.azure.resourcemanager.network.fluent.models.ConnectionSharedKeyInner" ]
import com.azure.core.util.Context; import com.azure.resourcemanager.network.fluent.models.ConnectionSharedKeyInner;
import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,161,967
public List<WorkflowInstance> getWorkflows(WorkflowInstanceQuery workflowInstanceQuery);
List<WorkflowInstance> function(WorkflowInstanceQuery workflowInstanceQuery);
/** * Gets all "in-flight" workflow instances according to the specified workflowInstanceQuery parameter * * @param workflowInstanceQuery * @return */
Gets all "in-flight" workflow instances according to the specified workflowInstanceQuery parameter
getWorkflows
{ "repo_name": "daniel-he/community-edition", "path": "projects/repository/source/java/org/alfresco/service/cmr/workflow/WorkflowService.java", "license": "lgpl-3.0", "size": 25805 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
942,609
public boolean isElementTypeExcluded(IModelElement element) { return element instanceof IDatatype ? isTypeExcluded((IDatatype) element) : false; }
boolean function(IModelElement element) { return element instanceof IDatatype ? isTypeExcluded((IDatatype) element) : false; }
/** * Returns whether the given <code>element</code> if it is a type is excluded in the current * context. * * @param element the element to check for * @return {@code true} if excluded, {@code false} else */
Returns whether the given <code>element</code> if it is a type is excluded in the current context
isElementTypeExcluded
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/Reasoner/EASy-Original-Reasoner/de.uni_hildesheim.sse.reasoning.reasoner/src/net/ssehub/easy/reasoning/sseReasoner/model/ContextStack.java", "license": "apache-2.0", "size": 31795 }
[ "net.ssehub.easy.varModel.model.IModelElement", "net.ssehub.easy.varModel.model.datatypes.IDatatype" ]
import net.ssehub.easy.varModel.model.IModelElement; import net.ssehub.easy.varModel.model.datatypes.IDatatype;
import net.ssehub.easy.*;
[ "net.ssehub.easy" ]
net.ssehub.easy;
1,545,330
public IDataset getInput();
IDataset function();
/** * Input number of detector * <p> * <b>Type:</b> NX_INT * <b>Dimensions:</b> 1: i; 2: j; * </p> * * @return the value. */
Input number of detector Type: NX_INT Dimensions: 1: i; 2: j;
getInput
{ "repo_name": "jonahkichwacoders/dawnsci", "path": "org.eclipse.dawnsci.nexus/src/org/eclipse/dawnsci/nexus/NXdetector.java", "license": "epl-1.0", "size": 22284 }
[ "org.eclipse.dawnsci.analysis.api.dataset.IDataset" ]
import org.eclipse.dawnsci.analysis.api.dataset.IDataset;
import org.eclipse.dawnsci.analysis.api.dataset.*;
[ "org.eclipse.dawnsci" ]
org.eclipse.dawnsci;
1,165,002
public ClientResponse updateApplicationCatalog(File catalogPath, File deploymentPath) throws IOException, NoConnectionsException, ProcCallException { return Client.updateApplicationCatalog(catalogPath, deploymentPath); }
ClientResponse function(File catalogPath, File deploymentPath) throws IOException, NoConnectionsException, ProcCallException { return Client.updateApplicationCatalog(catalogPath, deploymentPath); }
/** * Synchronously invokes UpdateApplicationCatalog procedure. Blocks until a * result is available. A {@link ProcCallException} is thrown if the * response is anything other then success. * * @param catalogPath Path to the catalog jar file. * @param deploymentPath Path to the deployment file * @return a...
Synchronously invokes UpdateApplicationCatalog procedure. Blocks until a result is available. A <code>ProcCallException</code> is thrown if the response is anything other then success
updateApplicationCatalog
{ "repo_name": "ifcharming/original2.0", "path": "src/frontend/org/voltdb/client/exampleutils/ClientConnection.java", "license": "gpl-3.0", "size": 13327 }
[ "java.io.File", "java.io.IOException", "org.voltdb.client.Client", "org.voltdb.client.ClientResponse", "org.voltdb.client.NoConnectionsException", "org.voltdb.client.ProcCallException" ]
import java.io.File; import java.io.IOException; import org.voltdb.client.Client; import org.voltdb.client.ClientResponse; import org.voltdb.client.NoConnectionsException; import org.voltdb.client.ProcCallException;
import java.io.*; import org.voltdb.client.*;
[ "java.io", "org.voltdb.client" ]
java.io; org.voltdb.client;
1,606,350
@Override public List<Object>[] generateRows(BufferedImageContainer img) { List<Object>[] result; BufferedImage image; double[] histo; net.semanticmetadata.lire.imageanalysis.features.global.CEDD features; image = BufferedImageHelper.convert(img.getImage(), BufferedImage.TYPE_3BYTE_BGR)...
List<Object>[] function(BufferedImageContainer img) { List<Object>[] result; BufferedImage image; double[] histo; net.semanticmetadata.lire.imageanalysis.features.global.CEDD features; image = BufferedImageHelper.convert(img.getImage(), BufferedImage.TYPE_3BYTE_BGR); features = new net.semanticmetadata.lire.imageanalys...
/** * Performs the actual feature generation. * * @param img the image to process * @return the generated features */
Performs the actual feature generation
generateRows
{ "repo_name": "waikato-datamining/adams-base", "path": "adams-imaging/src/main/java/adams/data/lire/features/CEDD.java", "license": "gpl-3.0", "size": 6937 }
[ "java.awt.image.BufferedImage", "java.util.ArrayList", "java.util.Arrays", "java.util.List" ]
import java.awt.image.BufferedImage; import java.util.ArrayList; import java.util.Arrays; import java.util.List;
import java.awt.image.*; import java.util.*;
[ "java.awt", "java.util" ]
java.awt; java.util;
2,005,820
public static long snapshotVersion(File file) { return version(file, SNAPSHOT_FILENAME_PATTERN); }
static long function(File file) { return version(file, SNAPSHOT_FILENAME_PATTERN); }
/** * Extract the version number from a snapshot filename. * <p/> * Returns -1 if file does not have a valid snapshot filename. */
Extract the version number from a snapshot filename. Returns -1 if file does not have a valid snapshot filename
snapshotVersion
{ "repo_name": "jeffbrown/prevayler", "path": "core/src/main/java/org/prevayler/implementation/PrevaylerDirectory.java", "license": "bsd-3-clause", "size": 7506 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,350,018
EOperation getPMUVoltageMeter__RegisterObjectsToMatch_FWD__Match_MeterAsset_MeterAssetMMXUPair_MMXU();
EOperation getPMUVoltageMeter__RegisterObjectsToMatch_FWD__Match_MeterAsset_MeterAssetMMXUPair_MMXU();
/** * Returns the meta object for the '{@link rgse.ttc17.emoflon.tgg.task2.Rules.PMUVoltageMeter#registerObjectsToMatch_FWD(org.moflon.tgg.runtime.Match, gluemodel.CIM.IEC61968.Metering.MeterAsset, gluemodel.MeterAssetMMXUPair, gluemodel.substationStandard.LNNodes.LNGroupM.MMXU) <em>Register Objects To Match FWD</em>...
Returns the meta object for the '<code>rgse.ttc17.emoflon.tgg.task2.Rules.PMUVoltageMeter#registerObjectsToMatch_FWD(org.moflon.tgg.runtime.Match, gluemodel.CIM.IEC61968.Metering.MeterAsset, gluemodel.MeterAssetMMXUPair, gluemodel.substationStandard.LNNodes.LNGroupM.MMXU) Register Objects To Match FWD</code>' operation...
getPMUVoltageMeter__RegisterObjectsToMatch_FWD__Match_MeterAsset_MeterAssetMMXUPair_MMXU
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/eMoflon/rgse.ttc17.emoflon.tgg.task2/gen/rgse/ttc17/emoflon/tgg/task2/Rules/RulesPackage.java", "license": "mit", "size": 437406 }
[ "org.eclipse.emf.ecore.EOperation" ]
import org.eclipse.emf.ecore.EOperation;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,727,932
@Override public Adapter createDefaultEndPointInputConnectorAdapter() { if (defaultEndPointInputConnectorItemProvider == null) { defaultEndPointInputConnectorItemProvider = new DefaultEndPointInputConnectorItemProvider(this); } return defaultEndPointInputConnectorItemProvider; } protected DefaultEndPoi...
Adapter function() { if (defaultEndPointInputConnectorItemProvider == null) { defaultEndPointInputConnectorItemProvider = new DefaultEndPointInputConnectorItemProvider(this); } return defaultEndPointInputConnectorItemProvider; } protected DefaultEndPointOutputConnectorItemProvider defaultEndPointOutputConnectorItemProv...
/** * This creates an adapter for a {@link org.wso2.developerstudio.eclipse.gmf.esb.DefaultEndPointInputConnector}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This creates an adapter for a <code>org.wso2.developerstudio.eclipse.gmf.esb.DefaultEndPointInputConnector</code>.
createDefaultEndPointInputConnectorAdapter
{ "repo_name": "nwnpallewela/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/EsbItemProviderAdapterFactory.java", "license": "apache-2.0", "size": 304469 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,044,631
public List<Class<?>> collectClasses(Predicate<Class<?>> filter) { File rootFolder = new File(root); List<Class<?>> collection = new ArrayList<>(); collectClasses(rootFolder, filter, collection); return collection; }
List<Class<?>> function(Predicate<Class<?>> filter) { File rootFolder = new File(root); List<Class<?>> collection = new ArrayList<>(); collectClasses(rootFolder, filter, collection); return collection; }
/** * Collects all classes from the parent folder and below which match the given predicate. * * @param filter the predicate classes need to satisfy in order to be collected * @return list of matching classes */
Collects all classes from the parent folder and below which match the given predicate
collectClasses
{ "repo_name": "Maxetto/AuthMeReloaded", "path": "src/test/java/fr/xephi/authme/ClassCollector.java", "license": "gpl-3.0", "size": 6294 }
[ "java.io.File", "java.util.ArrayList", "java.util.List", "java.util.function.Predicate" ]
import java.io.File; import java.util.ArrayList; import java.util.List; import java.util.function.Predicate;
import java.io.*; import java.util.*; import java.util.function.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,568,324
protected String[] getGroupsIDForUserCommand(String userName) { return Shell.getGroupsIDForUserCommand(userName); }
String[] function(String userName) { return Shell.getGroupsIDForUserCommand(userName); }
/** * Returns just the shell command to be used to fetch a user's group IDs list. * This is mainly separate to make some tests easier. * @param userName The username that needs to be passed into the command built * @return An appropriate shell command with arguments */
Returns just the shell command to be used to fetch a user's group IDs list. This is mainly separate to make some tests easier
getGroupsIDForUserCommand
{ "repo_name": "JingchengDu/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/security/ShellBasedUnixGroupsMapping.java", "license": "apache-2.0", "size": 12165 }
[ "org.apache.hadoop.util.Shell" ]
import org.apache.hadoop.util.Shell;
import org.apache.hadoop.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,906,630
@Override public void processEvent(QueryBatch batch) { try { PlanBuilder.Plan exportPlan = exportFunction.apply(batch); for (RowRecord record : rowManager.resultRows(exportPlan)) { for (Consumer<RowRecord> listener : opticExportListeners) { try { listener.accept(record)...
void function(QueryBatch batch) { try { PlanBuilder.Plan exportPlan = exportFunction.apply(batch); for (RowRecord record : rowManager.resultRows(exportPlan)) { for (Consumer<RowRecord> listener : opticExportListeners) { try { listener.accept(record); } catch (Throwable t) { logger.error(STR, t); } } } } catch (Throwabl...
/** * This is the method QueryBatcher calls for OpticExportListener to do its * thing. You should not need to call it. * * @param batch the batch of uris and some metadata about the current status * of the job */
This is the method QueryBatcher calls for OpticExportListener to do its thing. You should not need to call it
processEvent
{ "repo_name": "marklogic/java-client-api", "path": "marklogic-client-api/src/main/java/com/marklogic/client/example/cookbook/datamovement/OpticExportListener.java", "license": "apache-2.0", "size": 4512 }
[ "com.marklogic.client.datamovement.Batch", "com.marklogic.client.datamovement.BatchFailureListener", "com.marklogic.client.datamovement.QueryBatch", "com.marklogic.client.expression.PlanBuilder", "com.marklogic.client.row.RowRecord", "java.util.function.Consumer" ]
import com.marklogic.client.datamovement.Batch; import com.marklogic.client.datamovement.BatchFailureListener; import com.marklogic.client.datamovement.QueryBatch; import com.marklogic.client.expression.PlanBuilder; import com.marklogic.client.row.RowRecord; import java.util.function.Consumer;
import com.marklogic.client.datamovement.*; import com.marklogic.client.expression.*; import com.marklogic.client.row.*; import java.util.function.*;
[ "com.marklogic.client", "java.util" ]
com.marklogic.client; java.util;
1,530,375
private SiddhiElementConfig getElementWithStreamName(String streamName, String scopedPartitionId) throws DesignGenerationException { for (StreamConfig streamConfig : siddhiAppConfig.getStreamList()) { if (streamConfig.getName().equals(streamName)) { return streamConf...
SiddhiElementConfig function(String streamName, String scopedPartitionId) throws DesignGenerationException { for (StreamConfig streamConfig : siddhiAppConfig.getStreamList()) { if (streamConfig.getName().equals(streamName)) { return streamConfig; } } for (TableConfig tableConfig : siddhiAppConfig.getTableList()) { if (...
/** * Gets SiddhiElementConfig object from the SiddhiAppConfig, which has a related stream with the given name. * * @param streamName Name of the SiddhiElementConfig's related stream * @param scopedPartitionId Id of the Partition, which is the scope for finding streams * @return SiddhiEl...
Gets SiddhiElementConfig object from the SiddhiAppConfig, which has a related stream with the given name
getElementWithStreamName
{ "repo_name": "wso2/carbon-analytics", "path": "components/org.wso2.carbon.siddhi.editor.core/src/main/java/org/wso2/carbon/siddhi/editor/core/util/designview/designgenerator/generators/EdgesGenerator.java", "license": "apache-2.0", "size": 28037 }
[ "org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.SiddhiElementConfig", "org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.StreamConfig", "org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.TableConfig", "org.wso2.carbon...
import org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.SiddhiElementConfig; import org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.StreamConfig; import org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.TableConfig; import org....
import org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.*; import org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.aggregation.*; import org.wso2.carbon.siddhi.editor.core.util.designview.beans.configs.siddhielements.partition.*; import org.wso2.carbon.siddh...
[ "org.wso2.carbon" ]
org.wso2.carbon;
2,083,912
private String generateRecvLogsHdr() { StringBuilder ret = new StringBuilder("# timestamp"); for (LogTypeHelper type: LogTypeHelper.values()) { ret.append(' '); ret.append(type.toString()); ret.append(' '); ret.append(type.toString()); ret.append("/sec"); } ret.append('\n'); return ret.toStr...
String function() { StringBuilder ret = new StringBuilder(STR); for (LogTypeHelper type: LogTypeHelper.values()) { ret.append(' '); ret.append(type.toString()); ret.append(' '); ret.append(type.toString()); ret.append("/sec"); } ret.append('\n'); return ret.toString(); }
/** * Generate the header string for the received logs * * @return */
Generate the header string for the received logs
generateRecvLogsHdr
{ "repo_name": "ACS-Community/ACS", "path": "LGPL/CommonSoftware/acsGUIs/logTools/src/alma/acs/logtools/monitor/file/FileStatistics.java", "license": "lgpl-2.1", "size": 5443 }
[ "com.cosylab.logging.engine.log.LogTypeHelper" ]
import com.cosylab.logging.engine.log.LogTypeHelper;
import com.cosylab.logging.engine.log.*;
[ "com.cosylab.logging" ]
com.cosylab.logging;
2,360,426
@Handler private void userPingPong( ReceivePrivmsg event ) { String text = event.getText(); if ( text.startsWith( "!ping" ) ) { event.replyDirectly( "pong" ); } }
void function( ReceivePrivmsg event ) { String text = event.getText(); if ( text.startsWith( "!ping" ) ) { event.replyDirectly( "pong" ); } }
/** * Reply to user !ping command with username: pong */
Reply to user !ping command with username: pong
userPingPong
{ "repo_name": "itpun/VileBot", "path": "vilebot/src/main/java/com/oldterns/vilebot/handlers/user/UserPing.java", "license": "mit", "size": 707 }
[ "ca.szc.keratin.core.event.message.recieve.ReceivePrivmsg" ]
import ca.szc.keratin.core.event.message.recieve.ReceivePrivmsg;
import ca.szc.keratin.core.event.message.recieve.*;
[ "ca.szc.keratin" ]
ca.szc.keratin;
2,208,696
public ExternalAccountType getById(Long id, boolean lock) { return hbCrudDAO.getById(id, lock); }
ExternalAccountType function(Long id, boolean lock) { return hbCrudDAO.getById(id, lock); }
/** * Get the external account type by id. * * @see edu.ur.dao.CrudDAO#getById(java.lang.Long, boolean) */
Get the external account type by id
getById
{ "repo_name": "nate-rcl/irplus", "path": "ir_hibernate/src/edu/ur/hibernate/ir/user/db/HbExternalAccountTypeDAO.java", "license": "apache-2.0", "size": 5247 }
[ "edu.ur.ir.user.ExternalAccountType" ]
import edu.ur.ir.user.ExternalAccountType;
import edu.ur.ir.user.*;
[ "edu.ur.ir" ]
edu.ur.ir;
1,974,043
public ApplicationParameter[] findApplicationParameters() { return (applicationParameters); }
ApplicationParameter[] function() { return (applicationParameters); }
/** * Return the set of application parameters for this application. */
Return the set of application parameters for this application
findApplicationParameters
{ "repo_name": "NorthFacing/step-by-Java", "path": "fra-tomcat/fra-tomcat-analysis/source/book01/HowTomcatWorks/src/org/apache/catalina/core/StandardDefaultContext.java", "license": "gpl-2.0", "size": 36169 }
[ "org.apache.catalina.deploy.ApplicationParameter" ]
import org.apache.catalina.deploy.ApplicationParameter;
import org.apache.catalina.deploy.*;
[ "org.apache.catalina" ]
org.apache.catalina;
366,683
// <editor-fold defaultstate="collapsed" desc=" Filesystem moves "> public int movedSong(File oldS, File newS) { int updated = 0; for (PlayList pl: PlayListSet.findInstance().playLists) { for (Song s: pl.songs) { if (s.getSourceFile() != null && ...
int function(File oldS, File newS) { int updated = 0; for (PlayList pl: PlayListSet.findInstance().playLists) { for (Song s: pl.songs) { if (s.getSourceFile() != null && s.getSourceFile().equals(oldS)) { s.setSourceFile(newS); updated++; } } pl.save(); } return updated; }
/** Update PlayLists so they all point to the new song. * * A PlayList could reference the same song more than once. * @param oldS The old location of the song file * @param newS The new location of the song file * @return The number of PlayLists that were impacted by the move. */
Update PlayLists so they all point to the new song. A PlayList could reference the same song more than once
movedSong
{ "repo_name": "gburca/VirtMus", "path": "VirtMus/src/com/ebixio/virtmus/PlayListSet.java", "license": "gpl-2.0", "size": 15300 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,290,262
@Override public long getLong(int columnIndex) throws SQLException { long ret = 0; String val = getString(columnIndex); if (val != null) { // The oid datatype values (as string) have a @0 suffix in the string value. // To allow succesful parsing and conversion to long, we need to remove it first if...
long function(int columnIndex) throws SQLException { long ret = 0; String val = getString(columnIndex); if (val != null) { if ("oid".equals(types[columnIndex - 1])) { int len = val.length(); if (len > 2 && val.endsWith("@0")) val = val.substring(0, len-2); } try { ret = Long.parseLong(val); } catch (NumberFormatExcepti...
/** * Retrieves the value of the designated column in the current row of this * ResultSet object as a long in the Java programming language. * * @param columnIndex the first column is 1, the second is 2, ... * @return the column value; if the value is SQL NULL, the value returned * is 0 * @throws ...
Retrieves the value of the designated column in the current row of this ResultSet object as a long in the Java programming language
getLong
{ "repo_name": "zyzyis/monetdb", "path": "java/src/main/java/nl/cwi/monetdb/jdbc/MonetResultSet.java", "license": "mpl-2.0", "size": 112988 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,221,241
public Map<String, Object> getAdditionalInformation() { return additionalInformation; }
Map<String, Object> function() { return additionalInformation; }
/** * Additional information that token granters would like to add to the token, e.g. to support new token types. * * @return the additional information (default empty) */
Additional information that token granters would like to add to the token, e.g. to support new token types
getAdditionalInformation
{ "repo_name": "jungyang/oauth-client-master", "path": "spring-security-oauth2/src/main/java/org/springframework/security/oauth2/common/DefaultOAuth2AccessToken.java", "license": "apache-2.0", "size": 6239 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
564,366
@Then("^the entity firmware does not exist$") public void theEntityFirmwareDoesNotExist(final Map<String, String> expectedEntity) { Wait.until(() -> { final List<FirmwareFile> firmwareFiles = this.firmwareFileRepository .findByFilename(getString(expectedEntit...
@Then(STR) void function(final Map<String, String> expectedEntity) { Wait.until(() -> { final List<FirmwareFile> firmwareFiles = this.firmwareFileRepository .findByFilename(getString(expectedEntity, PlatformKeys.FIRMWARE_FILE_FILENAME)); if (!firmwareFiles.isEmpty()) { final FirmwareFile firmwareFile = firmwareFiles.ge...
/** * Verify whether the entity is NOT created as expected. */
Verify whether the entity is NOT created as expected
theEntityFirmwareDoesNotExist
{ "repo_name": "OSGP/Integration-Tests", "path": "cucumber-tests-platform/src/test/java/org/opensmartgridplatform/cucumber/platform/glue/steps/database/core/FirmwareFileSteps.java", "license": "apache-2.0", "size": 13195 }
[ "java.util.List", "java.util.Map", "org.junit.Assert", "org.opensmartgridplatform.cucumber.core.Wait", "org.opensmartgridplatform.cucumber.platform.PlatformDefaults", "org.opensmartgridplatform.cucumber.platform.PlatformKeys", "org.opensmartgridplatform.domain.core.entities.DeviceModel", "org.opensmar...
import java.util.List; import java.util.Map; import org.junit.Assert; import org.opensmartgridplatform.cucumber.core.Wait; import org.opensmartgridplatform.cucumber.platform.PlatformDefaults; import org.opensmartgridplatform.cucumber.platform.PlatformKeys; import org.opensmartgridplatform.domain.core.entities.DeviceMod...
import java.util.*; import org.junit.*; import org.opensmartgridplatform.cucumber.core.*; import org.opensmartgridplatform.cucumber.platform.*; import org.opensmartgridplatform.domain.core.entities.*;
[ "java.util", "org.junit", "org.opensmartgridplatform.cucumber", "org.opensmartgridplatform.domain" ]
java.util; org.junit; org.opensmartgridplatform.cucumber; org.opensmartgridplatform.domain;
396,077
protected Button getOkButton( ) { return getButton( IDialogConstants.OK_ID ); }
Button function( ) { return getButton( IDialogConstants.OK_ID ); }
/** * Gets the Ok button * * @return Returns the OK button */
Gets the Ok button
getOkButton
{ "repo_name": "sguan-actuate/birt", "path": "UI/org.eclipse.birt.report.designer.ui/src/org/eclipse/birt/report/designer/ui/dialogs/BaseTitleAreaDialog.java", "license": "epl-1.0", "size": 5243 }
[ "org.eclipse.jface.dialogs.IDialogConstants", "org.eclipse.swt.widgets.Button" ]
import org.eclipse.jface.dialogs.IDialogConstants; import org.eclipse.swt.widgets.Button;
import org.eclipse.jface.dialogs.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.jface", "org.eclipse.swt" ]
org.eclipse.jface; org.eclipse.swt;
1,373,438
private void updateAuthStatusIconAndText(RemoteOperationResult result) { mAuthStatusIcon = R.drawable.common_error; // the most common case in the switch below switch (result.getCode()) { case OK_SSL: mAuthStatusIcon = android.R.drawable.ic_secure; mAuthStat...
void function(RemoteOperationResult result) { mAuthStatusIcon = R.drawable.common_error; switch (result.getCode()) { case OK_SSL: mAuthStatusIcon = android.R.drawable.ic_secure; mAuthStatusText = R.string.auth_secure_connection; break; case OK_NO_SSL: case OK: if (mHostUrlInput.getText().toString().trim().toLowerCase()...
/** * Chooses the right icon and text to show to the user for the received operation result. * * @param result Result of a remote operation performed in this activity */
Chooses the right icon and text to show to the user for the received operation result
updateAuthStatusIconAndText
{ "repo_name": "Spacefish/android", "path": "src/com/owncloud/android/authentication/AuthenticatorActivity.java", "license": "gpl-2.0", "size": 75336 }
[ "com.owncloud.android.lib.common.operations.RemoteOperationResult" ]
import com.owncloud.android.lib.common.operations.RemoteOperationResult;
import com.owncloud.android.lib.common.operations.*;
[ "com.owncloud.android" ]
com.owncloud.android;
991,794
private void makeRandomGossipDigest(List<GossipDigest> gDigests) { EndpointState epState; int generation = 0; int maxVersion = 0; // local epstate will be part of endpointStateMap List<InetAddress> endpoints = new ArrayList<InetAddress>(endpointStateMap.keySet()); ...
void function(List<GossipDigest> gDigests) { EndpointState epState; int generation = 0; int maxVersion = 0; List<InetAddress> endpoints = new ArrayList<InetAddress>(endpointStateMap.keySet()); Collections.shuffle(endpoints, random); for (InetAddress endpoint : endpoints) { epState = endpointStateMap.get(endpoint); if (...
/** * The gossip digest is built based on randomization * rather than just looping through the collection of live endpoints. * * @param gDigests list of Gossip Digests. */
The gossip digest is built based on randomization rather than just looping through the collection of live endpoints
makeRandomGossipDigest
{ "repo_name": "DICL/cassandra", "path": "src/java/org/apache/cassandra/gms/Gossiper.java", "license": "apache-2.0", "size": 65356 }
[ "java.net.InetAddress", "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.net.InetAddress; import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.net.*; import java.util.*;
[ "java.net", "java.util" ]
java.net; java.util;
910,689
public static int instructionToLine(final INaviCodeNode codeNode, final INaviInstruction instruction) { Preconditions.checkNotNull(instruction, "IE00059: Instruction argument can not be null"); Preconditions.checkNotNull(codeNode, "IE02530: codeNode argument can not be null"); int lineCounter = get...
static int function(final INaviCodeNode codeNode, final INaviInstruction instruction) { Preconditions.checkNotNull(instruction, STR); Preconditions.checkNotNull(codeNode, STR); int lineCounter = getInitialLineCounter(codeNode); final HashMap<INaviInstruction, INaviFunction> functionMap = CReferenceFinder.getCodeReferen...
/** * Returns the line index of the line where a given instruction of a given node is shown in a * graph. * * @param codeNode The code node that provides the instructions. * @param instruction The instruction whose line index is returned. * @return The line index of the instruction in the code node. ...
Returns the line index of the line where a given instruction of a given node is shown in a graph
instructionToLine
{ "repo_name": "crowell/binnavi", "path": "src/main/java/com/google/security/zynamics/binnavi/disassembly/CCodeNodeHelpers.java", "license": "apache-2.0", "size": 5958 }
[ "com.google.common.base.Preconditions", "com.google.security.zynamics.binnavi.disassembly.algorithms.CReferenceFinder", "java.util.HashMap" ]
import com.google.common.base.Preconditions; import com.google.security.zynamics.binnavi.disassembly.algorithms.CReferenceFinder; import java.util.HashMap;
import com.google.common.base.*; import com.google.security.zynamics.binnavi.disassembly.algorithms.*; import java.util.*;
[ "com.google.common", "com.google.security", "java.util" ]
com.google.common; com.google.security; java.util;
2,082,899
private void pruneStatus(Session session, String uuid) { log.debug("pruneStatus({})", getPath(session, uuid)); for (ListIterator<NodeStatus> it = status.listIterator(status.size()); it.hasPrevious();) { NodeStatus nd = it.previous(); if (uuid.equals(nd.getParent()) && nd.getStatus().equals(END)) { ...
void function(Session session, String uuid) { log.debug(STR, getPath(session, uuid)); for (ListIterator<NodeStatus> it = status.listIterator(status.size()); it.hasPrevious();) { NodeStatus nd = it.previous(); if (uuid.equals(nd.getParent()) && nd.getStatus().equals(END)) { log.debug(STR, getPath(session, nd.getNode()))...
/** * Prune status list. */
Prune status list
pruneStatus
{ "repo_name": "papamas/DMS-KANGREG-XI-MANADO", "path": "src/main/java/com/openkm/util/pendtask/PendingTaskProcessor.java", "license": "gpl-3.0", "size": 9415 }
[ "java.util.ListIterator", "org.hibernate.Session" ]
import java.util.ListIterator; import org.hibernate.Session;
import java.util.*; import org.hibernate.*;
[ "java.util", "org.hibernate" ]
java.util; org.hibernate;
14,022
//----------------------------------------------------------------------- public ImmutableList<FixedCouponBond> getDeliveryBasket() { return deliveryBasket; }
ImmutableList<FixedCouponBond> function() { return deliveryBasket; }
/** * Gets the basket of deliverable bonds. * <p> * The underling which will be delivered in the future time is chosen from * a basket of underling securities. This must not be empty. * <p> * All of the underlying bonds must have the same notional and currency. * @return the value of the property, ...
Gets the basket of deliverable bonds. The underling which will be delivered in the future time is chosen from a basket of underling securities. This must not be empty. All of the underlying bonds must have the same notional and currency
getDeliveryBasket
{ "repo_name": "ChinaQuants/Strata", "path": "modules/product/src/main/java/com/opengamma/strata/product/bond/BondFuture.java", "license": "apache-2.0", "size": 37066 }
[ "com.google.common.collect.ImmutableList" ]
import com.google.common.collect.ImmutableList;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,745,122
protected boolean checkPropertySkipping(PropertyValues pvs) { if (this.skip != null) { return this.skip; } if (pvs == null) { this.skip = false; return false; } synchronized (pvs) { if (this.skip != null) { return this.skip; } if (this.pd != null) { if (pvs.contains...
boolean function(PropertyValues pvs) { if (this.skip != null) { return this.skip; } if (pvs == null) { this.skip = false; return false; } synchronized (pvs) { if (this.skip != null) { return this.skip; } if (this.pd != null) { if (pvs.contains(this.pd.getName())) { this.skip = true; return true; } else if (pvs instance...
/** * Check whether this injector's property needs to be skipped due to * an explicit property value having been specified. Also marks the * affected property as processed for other processors to ignore it. */
Check whether this injector's property needs to be skipped due to an explicit property value having been specified. Also marks the affected property as processed for other processors to ignore it
checkPropertySkipping
{ "repo_name": "shivpun/spring-framework", "path": "spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java", "license": "apache-2.0", "size": 7916 }
[ "org.springframework.beans.MutablePropertyValues", "org.springframework.beans.PropertyValues" ]
import org.springframework.beans.MutablePropertyValues; import org.springframework.beans.PropertyValues;
import org.springframework.beans.*;
[ "org.springframework.beans" ]
org.springframework.beans;
1,936,627
int lastUniqueIdx = 0; for (int cursor = 1; cursor < array.length; cursor++) { boolean unique = true; for (int j = cursor - 1; j >= 0; j--) { if (array[cursor].equals(array[j])) { unique = false; break; } } if (unique) { array[++lastUniqueIdx] = array[cursor]; } } return Ar...
int lastUniqueIdx = 0; for (int cursor = 1; cursor < array.length; cursor++) { boolean unique = true; for (int j = cursor - 1; j >= 0; j--) { if (array[cursor].equals(array[j])) { unique = false; break; } } if (unique) { array[++lastUniqueIdx] = array[cursor]; } } return Arrays.copyOf(array, lastUniqueIdx + 1); }
/** * Method returns new array without duplicates. * @param array - source array * @return new array without duplicates */
Method returns new array without duplicates
remove
{ "repo_name": "helycopternicht/elazarev", "path": "chapter_001/src/main/java/ru/job4j/array/ArrayDuplicate.java", "license": "apache-2.0", "size": 725 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,098,579
Collection getImages(SecurityContext ctx, Parameters map, boolean asDataObject) throws DSOutOfServiceException, DSAccessException { Connector c = getConnector(ctx, true, false); try { IContainerPrx service = c.getPojosService(); List result = service.getImagesByOptions(map); if (asDataObject...
Collection getImages(SecurityContext ctx, Parameters map, boolean asDataObject) throws DSOutOfServiceException, DSAccessException { Connector c = getConnector(ctx, true, false); try { IContainerPrx service = c.getPojosService(); List result = service.getImagesByOptions(map); if (asDataObject) return PojoMapper.asDataOb...
/** * Retrieves the images specified by a set of parameters * e.g. imported during a given period of time by a given user. * * @param ctx The security context. * @param map The options. * @param asDataObject Pass <code>true</code> to convert the * <code>IObject</code>s into the corresponding * ...
Retrieves the images specified by a set of parameters e.g. imported during a given period of time by a given user
getImages
{ "repo_name": "jballanc/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/env/data/OMEROGateway.java", "license": "gpl-2.0", "size": 286379 }
[ "java.util.Collection", "java.util.HashSet", "java.util.List", "org.openmicroscopy.shoola.env.data.util.PojoMapper", "org.openmicroscopy.shoola.env.data.util.SecurityContext" ]
import java.util.Collection; import java.util.HashSet; import java.util.List; import org.openmicroscopy.shoola.env.data.util.PojoMapper; import org.openmicroscopy.shoola.env.data.util.SecurityContext;
import java.util.*; import org.openmicroscopy.shoola.env.data.util.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
2,598,180
public static String[] unaggregate( String resourceURI, DatumRange timerange ) throws FileSystem.FileSystemOfflineException, UnknownHostException, IOException { int i= AggregatingDataSourceFactory.splitIndex( resourceURI ); String root= resourceURI.substring(0,i); // the static par...
static String[] function( String resourceURI, DatumRange timerange ) throws FileSystem.FileSystemOfflineException, UnknownHostException, IOException { int i= AggregatingDataSourceFactory.splitIndex( resourceURI ); String root= resourceURI.substring(0,i); String template= resourceURI.substring(i); FileSystem fs= FileSys...
/** * taken from unaggregate.jy in the servlet. * @param resourceURI resource URI like "file://tmp/data$Y$m$d.dat" * @param timerange a timerange that will be covered by the span. * @return the strings resolved. * @throws org.das2.util.filesystem.FileSystem.FileSystemOfflineException ...
taken from unaggregate.jy in the servlet
unaggregate
{ "repo_name": "autoplot/app", "path": "DataSource/src/org/autoplot/datasource/DataSetURI.java", "license": "gpl-2.0", "size": 105000 }
[ "java.io.IOException", "java.net.UnknownHostException", "java.util.ArrayList", "java.util.List", "org.autoplot.aggregator.AggregatingDataSourceFactory", "org.das2.datum.DatumRange", "org.das2.fsm.FileStorageModel", "org.das2.util.filesystem.FileSystem" ]
import java.io.IOException; import java.net.UnknownHostException; import java.util.ArrayList; import java.util.List; import org.autoplot.aggregator.AggregatingDataSourceFactory; import org.das2.datum.DatumRange; import org.das2.fsm.FileStorageModel; import org.das2.util.filesystem.FileSystem;
import java.io.*; import java.net.*; import java.util.*; import org.autoplot.aggregator.*; import org.das2.datum.*; import org.das2.fsm.*; import org.das2.util.filesystem.*;
[ "java.io", "java.net", "java.util", "org.autoplot.aggregator", "org.das2.datum", "org.das2.fsm", "org.das2.util" ]
java.io; java.net; java.util; org.autoplot.aggregator; org.das2.datum; org.das2.fsm; org.das2.util;
2,833,759
void divUnitGradFastThread(RandomAccessibleInterval<T> estimate) { final int Nx, Ny, Nz; Nx = (int) estimate.dimension(0); Ny = (int) estimate.dimension(1); if (estimate.numDimensions() > 2) { Nz = (int) estimate.dimension(2); } else { Nz = 1; } final AtomicInteger ai = new AtomicInteger(0);...
void divUnitGradFastThread(RandomAccessibleInterval<T> estimate) { final int Nx, Ny, Nz; Nx = (int) estimate.dimension(0); Ny = (int) estimate.dimension(1); if (estimate.numDimensions() > 2) { Nz = (int) estimate.dimension(2); } else { Nz = 1; } final AtomicInteger ai = new AtomicInteger(0); final int numThreads = 4; f...
/** * Efficient multithreaded version of div_unit_grad adapted from IOCBIOS, * Pearu Peterson https://code.google.com/p/iocbio/ */
Efficient multithreaded version of div_unit_grad adapted from IOCBIOS, Pearu Peterson HREF
divUnitGradFastThread
{ "repo_name": "stelfrich/imagej-ops", "path": "src/main/java/net/imagej/ops/deconvolve/RichardsonLucyTVUpdate.java", "license": "bsd-2-clause", "size": 11986 }
[ "java.util.concurrent.atomic.AtomicInteger", "net.imglib2.RandomAccessibleInterval", "net.imglib2.multithreading.SimpleMultiThreading" ]
import java.util.concurrent.atomic.AtomicInteger; import net.imglib2.RandomAccessibleInterval; import net.imglib2.multithreading.SimpleMultiThreading;
import java.util.concurrent.atomic.*; import net.imglib2.*; import net.imglib2.multithreading.*;
[ "java.util", "net.imglib2", "net.imglib2.multithreading" ]
java.util; net.imglib2; net.imglib2.multithreading;
158,246
if (table != null && table.getItemCount()>0) { Clipboard clipboard = new Clipboard(table.getDisplay()); TextTransfer textTransfer = TextTransfer.getInstance(); clipboard.setContents(new String[]{getText(table)}, new Transfer[]{textTransfer}); clipboard.dispose(); ...
if (table != null && table.getItemCount()>0) { Clipboard clipboard = new Clipboard(table.getDisplay()); TextTransfer textTransfer = TextTransfer.getInstance(); clipboard.setContents(new String[]{getText(table)}, new Transfer[]{textTransfer}); clipboard.dispose(); } }
/** * Copies the table's contents to the clipboard. */
Copies the table's contents to the clipboard
copy
{ "repo_name": "kbabioch/arx", "path": "src/gui/org/deidentifier/arx/gui/view/impl/common/ClipboardHandlerTable.java", "license": "apache-2.0", "size": 4084 }
[ "org.eclipse.swt.dnd.Clipboard", "org.eclipse.swt.dnd.TextTransfer", "org.eclipse.swt.dnd.Transfer" ]
import org.eclipse.swt.dnd.Clipboard; import org.eclipse.swt.dnd.TextTransfer; import org.eclipse.swt.dnd.Transfer;
import org.eclipse.swt.dnd.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,867,328
public void setAntiAliasingEnabled(boolean enabled) { boolean currentlyEnabled = aaHints!=null; if (enabled!=currentlyEnabled) { if (enabled) { aaHints = RSyntaxUtilities.getDesktopAntiAliasHints(); // If the desktop query method comes up empty, use the standard // Java2D greyscale met...
void function(boolean enabled) { boolean currentlyEnabled = aaHints!=null; if (enabled!=currentlyEnabled) { if (enabled) { aaHints = RSyntaxUtilities.getDesktopAntiAliasHints(); if (aaHints==null) { Map<RenderingHints.Key, Object> temp = new HashMap<RenderingHints.Key, Object>(); temp.put(RenderingHints.KEY_TEXT_ANTIAL...
/** * Sets whether anti-aliasing is enabled in this editor. This method * fires a property change event of type {@link #ANTIALIAS_PROPERTY}. * * @param enabled Whether anti-aliasing is enabled. * @see #getAntiAliasingEnabled() */
Sets whether anti-aliasing is enabled in this editor. This method fires a property change event of type <code>#ANTIALIAS_PROPERTY</code>
setAntiAliasingEnabled
{ "repo_name": "Thecarisma/powertext", "path": "Power Text/src/com/power/text/ui/pteditor/RSyntaxTextArea.java", "license": "gpl-3.0", "size": 102040 }
[ "java.awt.RenderingHints", "java.util.HashMap", "java.util.Map" ]
import java.awt.RenderingHints; import java.util.HashMap; import java.util.Map;
import java.awt.*; import java.util.*;
[ "java.awt", "java.util" ]
java.awt; java.util;
1,717,483
List selectSchedulerStateRecords(Connection conn, String instanceId) throws SQLException; }
List selectSchedulerStateRecords(Connection conn, String instanceId) throws SQLException; }
/** * <p> * A List of all current <code>SchedulerStateRecords</code>. * </p> * * <p> * If instanceId is not null, then only the record for the identified * instance will be returned. * </p> * * @param conn * the DB Connection */
A List of all current <code>SchedulerStateRecords</code>. If instanceId is not null, then only the record for the identified instance will be returned.
selectSchedulerStateRecords
{ "repo_name": "daleqq/opensymphony-quartz-backup", "path": "trunk/src/java/org/quartz/impl/jdbcjobstore/DriverDelegate.java", "license": "apache-2.0", "size": 41983 }
[ "java.sql.Connection", "java.sql.SQLException", "java.util.List" ]
import java.sql.Connection; import java.sql.SQLException; import java.util.List;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
4,937
public static String format(double[][] d, String pre, String pos, String csep, NumberFormat nf) { return d == null ? "null" : (d.length == 0) ? "" : // formatTo(new StringBuilder(), d, pre, pos, csep, nf).toString(); }
static String function(double[][] d, String pre, String pos, String csep, NumberFormat nf) { return d == null ? "null" : (d.length == 0) ? "" : }
/** * Formats the array of double arrays d with 'the specified separators and * fraction digits. * * @param d the double matrix to be formatted * @param pre Row prefix (e.g. " [") * @param pos Row postfix (e.g. "]\n") * @param csep Separator for columns (e.g. ", ") * @param nf the number format ...
Formats the array of double arrays d with 'the specified separators and fraction digits
format
{ "repo_name": "elki-project/elki", "path": "elki-core-util/src/main/java/elki/utilities/io/FormatUtil.java", "license": "agpl-3.0", "size": 32650 }
[ "java.text.NumberFormat" ]
import java.text.NumberFormat;
import java.text.*;
[ "java.text" ]
java.text;
940,348
private static String serverUrl(HttpServletRequest req) { StringBuilder url = new StringBuilder(); url.append(req.getScheme()); url.append("://"); url.append(req.getServerName()); if (((req.getServerPort() != 80) && (!req.isSecure())) || ((req.getServerPort() != 443) && (req.isSecure()))) { url.appen...
static String function(HttpServletRequest req) { StringBuilder url = new StringBuilder(); url.append(req.getScheme()); url.append(STR:"); url.append(req.getServerPort()); } return url.toString(); }
/** * This method is a duplicate of org.sakaiproject.util.web.Web.serverUrl() * Duplicated here from org.sakaiproject.util.web.Web.java so that * the JSF tag library doesn't have a direct jar dependency on more of Sakai. */
This method is a duplicate of org.sakaiproject.util.web.Web.serverUrl() Duplicated here from org.sakaiproject.util.web.Web.java so that the JSF tag library doesn't have a direct jar dependency on more of Sakai
serverUrl
{ "repo_name": "harfalm/Sakai-10.1", "path": "jsf/jsf-widgets/src/java/org/sakaiproject/jsf/renderer/CourierRenderer.java", "license": "apache-2.0", "size": 4076 }
[ "javax.servlet.http.HttpServletRequest" ]
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
1,165,850
FileListFragment fragment = new FileListFragment(); Bundle args = new Bundle(); args.putString(FileChooserActivity.PATH, path); fragment.setArguments(args); return fragment; }
FileListFragment fragment = new FileListFragment(); Bundle args = new Bundle(); args.putString(FileChooserActivity.PATH, path); fragment.setArguments(args); return fragment; }
/** * Create a new instance with the given file path. * * @param path The absolute path of the file (directory) to display. * @return A new Fragment with the given file path. */
Create a new instance with the given file path
newInstance
{ "repo_name": "daffycricket/tarotdroid", "path": "libaFileChooser/src/main/java/com/ipaulpro/afilechooser/FileListFragment.java", "license": "gpl-2.0", "size": 3073 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
1,090,037
public ColorModel getDeviceColorModel() { return surfaceData.getColorModel(); }
ColorModel function() { return surfaceData.getColorModel(); }
/** * Return the ColorModel associated with this Graphics2D. */
Return the ColorModel associated with this Graphics2D
getDeviceColorModel
{ "repo_name": "openjdk/jdk7u", "path": "jdk/src/share/classes/sun/java2d/SunGraphics2D.java", "license": "gpl-2.0", "size": 133716 }
[ "java.awt.image.ColorModel" ]
import java.awt.image.ColorModel;
import java.awt.image.*;
[ "java.awt" ]
java.awt;
2,406,661
public String getVdcObjectName() { Permission perms = getParameters().getPermission(); return getDbFacade().getEntityNameByIdAndType(perms.getObjectId(), perms.getObjectType()); }
String function() { Permission perms = getParameters().getPermission(); return getDbFacade().getEntityNameByIdAndType(perms.getObjectId(), perms.getObjectType()); }
/** * Get the object name, which the MLA operation occurs on. If no entity found, returns null. * * @return Object name. */
Get the object name, which the MLA operation occurs on. If no entity found, returns null
getVdcObjectName
{ "repo_name": "OpenUniversity/ovirt-engine", "path": "backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/PermissionsCommandBase.java", "license": "apache-2.0", "size": 3867 }
[ "org.ovirt.engine.core.common.businessentities.Permission" ]
import org.ovirt.engine.core.common.businessentities.Permission;
import org.ovirt.engine.core.common.businessentities.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
1,141,916
public void execute(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (args.length == 1 && args[0].length() > 0) { GameProfile gameprofile = server.getPlayerProfileCache().getGameProfileForUsername(args[0]); if (gameprofile == nul...
void function(MinecraftServer server, ICommandSender sender, String[] args) throws CommandException { if (args.length == 1 && args[0].length() > 0) { GameProfile gameprofile = server.getPlayerProfileCache().getGameProfileForUsername(args[0]); if (gameprofile == null) { throw new CommandException(STR, new Object[] {args...
/** * Callback for when the command is executed * * @param server The Minecraft server instance * @param sender The source of the command invocation * @param args The arguments that were passed */
Callback for when the command is executed
execute
{ "repo_name": "aebert1/BigTransport", "path": "build/tmp/recompileMc/sources/net/minecraft/command/server/CommandOp.java", "license": "gpl-3.0", "size": 2646 }
[ "com.mojang.authlib.GameProfile", "net.minecraft.command.CommandException", "net.minecraft.command.ICommandSender", "net.minecraft.command.WrongUsageException", "net.minecraft.server.MinecraftServer" ]
import com.mojang.authlib.GameProfile; import net.minecraft.command.CommandException; import net.minecraft.command.ICommandSender; import net.minecraft.command.WrongUsageException; import net.minecraft.server.MinecraftServer;
import com.mojang.authlib.*; import net.minecraft.command.*; import net.minecraft.server.*;
[ "com.mojang.authlib", "net.minecraft.command", "net.minecraft.server" ]
com.mojang.authlib; net.minecraft.command; net.minecraft.server;
267,523
private String getUserRole() throws IdUnusedException, SessionDataException, GroupNotDefinedException { AuthzGroup group; Role role; group = AuthzGroupService.getAuthzGroup("/site/" + getSiteId()); if (group == null) { throw new SessionDataException("No current group"); } role = group.getUse...
String function() throws IdUnusedException, SessionDataException, GroupNotDefinedException { AuthzGroup group; Role role; group = AuthzGroupService.getAuthzGroup(STR + getSiteId()); if (group == null) { throw new SessionDataException(STR); } role = group.getUserRole(this.getUserId()); if (role == null) { throw new Sess...
/** * Fetch the user role in the current site * @throws IdUnusedException, SessionDataException * @return Role * @throws GroupNotDefinedException */
Fetch the user role in the current site
getUserRole
{ "repo_name": "marktriggs/nyu-sakai-10.4", "path": "web/web-tool/tool/src/java/org/sakaiproject/web/tool/IFrameAction.java", "license": "apache-2.0", "size": 36694 }
[ "org.sakaiproject.authz.api.AuthzGroup", "org.sakaiproject.authz.api.GroupNotDefinedException", "org.sakaiproject.authz.api.Role", "org.sakaiproject.authz.cover.AuthzGroupService", "org.sakaiproject.exception.IdUnusedException" ]
import org.sakaiproject.authz.api.AuthzGroup; import org.sakaiproject.authz.api.GroupNotDefinedException; import org.sakaiproject.authz.api.Role; import org.sakaiproject.authz.cover.AuthzGroupService; import org.sakaiproject.exception.IdUnusedException;
import org.sakaiproject.authz.api.*; import org.sakaiproject.authz.cover.*; import org.sakaiproject.exception.*;
[ "org.sakaiproject.authz", "org.sakaiproject.exception" ]
org.sakaiproject.authz; org.sakaiproject.exception;
1,548,341
public static boolean checkIfNodeIsAssessable(final CourseNode node) { if (node instanceof AssessableCourseNode) { if (node instanceof STCourseNode) { final STCourseNode scn = (STCourseNode) node; if (scn.hasPassedConfigured() || scn.hasScoreConfigured()) { return true; } } else if (node instanceof S...
static boolean function(final CourseNode node) { if (node instanceof AssessableCourseNode) { if (node instanceof STCourseNode) { final STCourseNode scn = (STCourseNode) node; if (scn.hasPassedConfigured() scn.hasScoreConfigured()) { return true; } } else if (node instanceof ScormCourseNode) { final ScormCourseNode scor...
/** * check the given node for assessability. * * @param node * @return */
check the given node for assessability
checkIfNodeIsAssessable
{ "repo_name": "RLDevOps/Demo", "path": "src/main/java/org/olat/course/assessment/AssessmentHelper.java", "license": "apache-2.0", "size": 15858 }
[ "org.olat.course.nodes.AssessableCourseNode", "org.olat.course.nodes.CourseNode", "org.olat.course.nodes.ProjectBrokerCourseNode", "org.olat.course.nodes.STCourseNode", "org.olat.course.nodes.ScormCourseNode" ]
import org.olat.course.nodes.AssessableCourseNode; import org.olat.course.nodes.CourseNode; import org.olat.course.nodes.ProjectBrokerCourseNode; import org.olat.course.nodes.STCourseNode; import org.olat.course.nodes.ScormCourseNode;
import org.olat.course.nodes.*;
[ "org.olat.course" ]
org.olat.course;
427,328
public BaseViewHolder setTypeface(int viewId, Typeface typeface) { TextView view = getView(viewId); view.setTypeface(typeface); view.setPaintFlags(view.getPaintFlags() | Paint.SUBPIXEL_TEXT_FLAG); return this; }
BaseViewHolder function(int viewId, Typeface typeface) { TextView view = getView(viewId); view.setTypeface(typeface); view.setPaintFlags(view.getPaintFlags() Paint.SUBPIXEL_TEXT_FLAG); return this; }
/** * Apply the typeface to the given viewId, and enable subpixel rendering. */
Apply the typeface to the given viewId, and enable subpixel rendering
setTypeface
{ "repo_name": "AFinalStone/adstar", "path": "uikit/src/com/netease/nim/uikit/common/ui/recyclerview/holder/BaseViewHolder.java", "license": "apache-2.0", "size": 15397 }
[ "android.graphics.Paint", "android.graphics.Typeface", "android.widget.TextView" ]
import android.graphics.Paint; import android.graphics.Typeface; import android.widget.TextView;
import android.graphics.*; import android.widget.*;
[ "android.graphics", "android.widget" ]
android.graphics; android.widget;
808,971
public void loadWorkingReport(KSC_PerformanceReportFactory factory, int index) throws MarshalException, ValidationException { Report report = factory.getReportByIndex(index); if (report == null) { throw new IllegalArgumentException("Could not find report with ID " + index); } ...
void function(KSC_PerformanceReportFactory factory, int index) throws MarshalException, ValidationException { Report report = factory.getReportByIndex(index); if (report == null) { throw new IllegalArgumentException(STR + index); } m_workingReport = CastorUtils.duplicateObject(report, Report.class); }
/** * Loads the indexed report into the working report object. * * @param factory a {@link org.opennms.netmgt.config.KSC_PerformanceReportFactory} object. * @param index a int. * @throws org.exolab.castor.xml.MarshalException if any. * @throws org.exolab.castor.xml.ValidationException if a...
Loads the indexed report into the working report object
loadWorkingReport
{ "repo_name": "roskens/opennms-pre-github", "path": "opennms-webapp/src/main/java/org/opennms/web/controller/ksc/KscReportEditor.java", "license": "agpl-3.0", "size": 10382 }
[ "org.exolab.castor.xml.MarshalException", "org.exolab.castor.xml.ValidationException", "org.opennms.core.xml.CastorUtils", "org.opennms.netmgt.config.kscReports.Report" ]
import org.exolab.castor.xml.MarshalException; import org.exolab.castor.xml.ValidationException; import org.opennms.core.xml.CastorUtils; import org.opennms.netmgt.config.kscReports.Report;
import org.exolab.castor.xml.*; import org.opennms.core.xml.*; import org.opennms.netmgt.config.*;
[ "org.exolab.castor", "org.opennms.core", "org.opennms.netmgt" ]
org.exolab.castor; org.opennms.core; org.opennms.netmgt;
29,815
public static void displayBooks(FragmentManager fragmentManager, boolean addToBackStack) { if (isFragmentDisplayed(fragmentManager, BooksFragment.Companion.getFRAGMENT_TAG()) != null) { return; } Fragment fragment = BooksFragment.Companion.getInstance(); FragmentTransac...
static void function(FragmentManager fragmentManager, boolean addToBackStack) { if (isFragmentDisplayed(fragmentManager, BooksFragment.Companion.getFRAGMENT_TAG()) != null) { return; } Fragment fragment = BooksFragment.Companion.getInstance(); FragmentTransaction t = fragmentManager .beginTransaction() .setCustomAnimat...
/** * Show fragments listing books. * @param addToBackStack add to back stack or not */
Show fragments listing books
displayBooks
{ "repo_name": "orgzly/orgzly-android", "path": "app/src/main/java/com/orgzly/android/ui/DisplayManager.java", "license": "gpl-3.0", "size": 10521 }
[ "androidx.fragment.app.Fragment", "androidx.fragment.app.FragmentManager", "androidx.fragment.app.FragmentTransaction", "com.orgzly.android.ui.books.BooksFragment" ]
import androidx.fragment.app.Fragment; import androidx.fragment.app.FragmentManager; import androidx.fragment.app.FragmentTransaction; import com.orgzly.android.ui.books.BooksFragment;
import androidx.fragment.app.*; import com.orgzly.android.ui.books.*;
[ "androidx.fragment", "com.orgzly.android" ]
androidx.fragment; com.orgzly.android;
1,193,165
private SegmentIdentifier getSegment( final InputRow row, final String sequenceName, final boolean skipSegmentLineageCheck ) throws IOException { synchronized (segments) { final DateTime timestamp = row.getTimestamp(); final SegmentIdentifier existing = getAppendableSegment(times...
SegmentIdentifier function( final InputRow row, final String sequenceName, final boolean skipSegmentLineageCheck ) throws IOException { synchronized (segments) { final DateTime timestamp = row.getTimestamp(); final SegmentIdentifier existing = getAppendableSegment(timestamp, sequenceName); if (existing != null) { retur...
/** * Return a segment usable for "timestamp". May return null if no segment can be allocated. * * @param row input row * @param sequenceName sequenceName for potential segment allocation * @param skipSegmentLineageCheck if false, perform lineage validation using previousSe...
Return a segment usable for "timestamp". May return null if no segment can be allocated
getSegment
{ "repo_name": "dkhwangbo/druid", "path": "server/src/main/java/org/apache/druid/segment/realtime/appenderator/BaseAppenderatorDriver.java", "license": "apache-2.0", "size": 25048 }
[ "java.io.IOException", "org.apache.druid.data.input.InputRow", "org.joda.time.DateTime" ]
import java.io.IOException; import org.apache.druid.data.input.InputRow; import org.joda.time.DateTime;
import java.io.*; import org.apache.druid.data.input.*; import org.joda.time.*;
[ "java.io", "org.apache.druid", "org.joda.time" ]
java.io; org.apache.druid; org.joda.time;
2,592,435
public T caseMFlatConnection(MFlatConnection object) { return null; }
T function(MFlatConnection object) { return null; }
/** * Returns the result of interpreting the object as an instance of '<em>MFlatConnection</em>'. * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>MFlatConnection</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generat...
Returns the result of interpreting the object as an instance of 'MFlatConnection'
caseMFlatConnection
{ "repo_name": "parraman/micobs", "path": "mclev/es.uah.aut.srg.micobs.mclev/src/es/uah/aut/srg/micobs/mclev/mclevflatmcad/util/mclevflatmcadSwitch.java", "license": "epl-1.0", "size": 12299 }
[ "es.uah.aut.srg.micobs.mclev.mclevflatmcad.MFlatConnection" ]
import es.uah.aut.srg.micobs.mclev.mclevflatmcad.MFlatConnection;
import es.uah.aut.srg.micobs.mclev.mclevflatmcad.*;
[ "es.uah.aut" ]
es.uah.aut;
2,628,909
public void loadImage(String uri, ImageSize targetImageSize, ImageLoadingListener listener) { loadImage(uri, targetImageSize, null, listener, null); }
void function(String uri, ImageSize targetImageSize, ImageLoadingListener listener) { loadImage(uri, targetImageSize, null, listener, null); }
/** * Adds load image task to execution pool. Image will be returned with * {@link ImageLoadingListener#onLoadingComplete(String, View, Bitmap)} callback}. * <br /> * <b>NOTE:</b> {@link #init(ImageLoaderConfiguration)} method must be called before this method call * * @param uri Image URI (i.e....
Adds load image task to execution pool. Image will be returned with <code>ImageLoadingListener#onLoadingComplete(String, View, Bitmap)</code> callback}.
loadImage
{ "repo_name": "nilesh14/FMC", "path": "FMC/app/src/main/java/com/nostra13/universalimageloader/core/ImageLoader.java", "license": "apache-2.0", "size": 37788 }
[ "com.nostra13.universalimageloader.core.assist.ImageSize", "com.nostra13.universalimageloader.core.listener.ImageLoadingListener" ]
import com.nostra13.universalimageloader.core.assist.ImageSize; import com.nostra13.universalimageloader.core.listener.ImageLoadingListener;
import com.nostra13.universalimageloader.core.assist.*; import com.nostra13.universalimageloader.core.listener.*;
[ "com.nostra13.universalimageloader" ]
com.nostra13.universalimageloader;
460,067
Block createNextBlock(@Nullable Address to, @Nullable TransactionOutPoint prevOut, long time, byte[] pubKey, BigInteger coinbaseValue) { Block b = new Block(params); b.setDifficultyTarget(difficultyTarget); b.addCoinbaseTransaction(pubKey, coinbaseValue); i...
Block createNextBlock(@Nullable Address to, @Nullable TransactionOutPoint prevOut, long time, byte[] pubKey, BigInteger coinbaseValue) { Block b = new Block(params); b.setDifficultyTarget(difficultyTarget); b.addCoinbaseTransaction(pubKey, coinbaseValue); if (to != null) { Transaction t = new Transaction(params); t.add...
/** * Returns a solved block that builds on top of this one. This exists for unit tests. * In this variant you can specify a public key (pubkey) for use in generating coinbase blocks. */
Returns a solved block that builds on top of this one. This exists for unit tests. In this variant you can specify a public key (pubkey) for use in generating coinbase blocks
createNextBlock
{ "repo_name": "spartanncoin/Spartancoinj", "path": "core/src/main/java/com/google/spartancoin/core/Block.java", "license": "apache-2.0", "size": 46462 }
[ "com.google.spartancoin.script.Script", "java.math.BigInteger", "javax.annotation.Nullable" ]
import com.google.spartancoin.script.Script; import java.math.BigInteger; import javax.annotation.Nullable;
import com.google.spartancoin.script.*; import java.math.*; import javax.annotation.*;
[ "com.google.spartancoin", "java.math", "javax.annotation" ]
com.google.spartancoin; java.math; javax.annotation;
2,055,797
@Override public boolean equals(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof Status)) { return false; } Status that = (Status) obj; return canonicalCode == that.canonicalCode && Utils.equalsObjects(description, that.description); }
boolean function(@Nullable Object obj) { if (obj == this) { return true; } if (!(obj instanceof Status)) { return false; } Status that = (Status) obj; return canonicalCode == that.canonicalCode && Utils.equalsObjects(description, that.description); }
/** * Equality on Statuses is not well defined. Instead, do comparison based on their CanonicalCode * with {@link #getCanonicalCode}. The description of the Status is unlikely to be stable, and * additional fields may be added to Status in the future. */
Equality on Statuses is not well defined. Instead, do comparison based on their CanonicalCode with <code>#getCanonicalCode</code>. The description of the Status is unlikely to be stable, and additional fields may be added to Status in the future
equals
{ "repo_name": "sebright/opencensus-java", "path": "api/src/main/java/io/opencensus/trace/Status.java", "license": "apache-2.0", "size": 14266 }
[ "io.opencensus.internal.Utils", "javax.annotation.Nullable" ]
import io.opencensus.internal.Utils; import javax.annotation.Nullable;
import io.opencensus.internal.*; import javax.annotation.*;
[ "io.opencensus.internal", "javax.annotation" ]
io.opencensus.internal; javax.annotation;
2,878,080
private Node parseAndTypeCheck(String js) { return parseAndTypeCheck(DEFAULT_EXTERNS, js); }
Node function(String js) { return parseAndTypeCheck(DEFAULT_EXTERNS, js); }
/** * Parses and type checks the JavaScript code. */
Parses and type checks the JavaScript code
parseAndTypeCheck
{ "repo_name": "olegshnitko/closure-compiler", "path": "test/com/google/javascript/jscomp/LooseTypeCheckTest.java", "license": "apache-2.0", "size": 247031 }
[ "com.google.javascript.rhino.Node" ]
import com.google.javascript.rhino.Node;
import com.google.javascript.rhino.*;
[ "com.google.javascript" ]
com.google.javascript;
1,054,395
try { T retValue = defaultValue; if (model != null) { @SuppressWarnings("unchecked") T value = (T) DeepUnwrap.unwrap(model); if (value != null) { retValue = value; } } return retValue; ...
try { T retValue = defaultValue; if (model != null) { @SuppressWarnings(STR) T value = (T) DeepUnwrap.unwrap(model); if (value != null) { retValue = value; } } return retValue; } catch (TemplateModelException e) { throw new FreemarkerAutotagException(STR, e); } }
/** * Unwraps a TemplateModel to extract an object. * * @param model The TemplateModel to unwrap. * @param defaultValue The default value, as specified in the template * model, or null if not specified. * @return The unwrapped object. */
Unwraps a TemplateModel to extract an object
getAsObject
{ "repo_name": "apache/tiles-request", "path": "tiles-request-freemarker/src/main/java/org/apache/tiles/request/freemarker/autotag/FreemarkerUtil.java", "license": "apache-2.0", "size": 2068 }
[ "freemarker.template.TemplateModelException", "freemarker.template.utility.DeepUnwrap" ]
import freemarker.template.TemplateModelException; import freemarker.template.utility.DeepUnwrap;
import freemarker.template.*; import freemarker.template.utility.*;
[ "freemarker.template", "freemarker.template.utility" ]
freemarker.template; freemarker.template.utility;
2,804,526
public List<NetworkInterfaceInner> networkInterfaces() { return this.networkInterfaces; }
List<NetworkInterfaceInner> function() { return this.networkInterfaces; }
/** * Get a collection of references to network interfaces. * * @return the networkInterfaces value */
Get a collection of references to network interfaces
networkInterfaces
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/network/v2018_06_01/implementation/NetworkSecurityGroupInner.java", "license": "mit", "size": 6011 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,480,551
public void unregisterLoadListener(LoadListener listener) { ThreadUtils.assertOnUiThread(); boolean removed = mLoadListeners.removeObserver(listener); assert removed; }
void function(LoadListener listener) { ThreadUtils.assertOnUiThread(); boolean removed = mLoadListeners.removeObserver(listener); assert removed; }
/** * Unregisters a listener for the callback that indicates that the * TemplateURLService has loaded. */
Unregisters a listener for the callback that indicates that the TemplateURLService has loaded
unregisterLoadListener
{ "repo_name": "SaschaMester/delicium", "path": "chrome/android/java/src/org/chromium/chrome/browser/search_engines/TemplateUrlService.java", "license": "bsd-3-clause", "size": 13153 }
[ "org.chromium.base.ThreadUtils" ]
import org.chromium.base.ThreadUtils;
import org.chromium.base.*;
[ "org.chromium.base" ]
org.chromium.base;
863,222
public static boolean getIsVPrimaryKey(String value) { if (StringUtils.isNullOrEmpty(value)) { return false; } if (value.equalsIgnoreCase("PRI")) { return true; } return false; }
static boolean function(String value) { if (StringUtils.isNullOrEmpty(value)) { return false; } if (value.equalsIgnoreCase("PRI")) { return true; } return false; }
/** * Is column a primary key? * * @param value The value from sql query. * @return True or false. */
Is column a primary key
getIsVPrimaryKey
{ "repo_name": "Frankst2/SugarOnRest", "path": "sugarcrm_pojogen/src/main/java/com/sugarcrm/pojogen/Utils.java", "license": "mit", "size": 7261 }
[ "com.mysql.jdbc.StringUtils" ]
import com.mysql.jdbc.StringUtils;
import com.mysql.jdbc.*;
[ "com.mysql.jdbc" ]
com.mysql.jdbc;
1,118,219
protected Path getPidFilePath(ContainerId containerId) { try { readLock.lock(); return (this.pidFiles.get(containerId)); } finally { readLock.unlock(); } }
Path function(ContainerId containerId) { try { readLock.lock(); return (this.pidFiles.get(containerId)); } finally { readLock.unlock(); } }
/** * Get the pidFile of the container. * @param containerId * @return the path of the pid-file for the given containerId. */
Get the pidFile of the container
getPidFilePath
{ "repo_name": "robzor92/hops", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager/src/main/java/org/apache/hadoop/yarn/server/nodemanager/ContainerExecutor.java", "license": "apache-2.0", "size": 19120 }
[ "org.apache.hadoop.fs.Path", "org.apache.hadoop.yarn.api.records.ContainerId" ]
import org.apache.hadoop.fs.Path; import org.apache.hadoop.yarn.api.records.ContainerId;
import org.apache.hadoop.fs.*; import org.apache.hadoop.yarn.api.records.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
418,090
@Test public void testExpressionTemplateWithoutExpressions() { ExpressionTemplate t = new ExpressionTemplate("simple text"); assertEquals("simple text", t.getTemplate()); assertEquals(0, t.getEntities().size()); }
void function() { ExpressionTemplate t = new ExpressionTemplate(STR); assertEquals(STR, t.getTemplate()); assertEquals(0, t.getEntities().size()); }
/** * Checks ExpressionTemplate for a text without expressions */
Checks ExpressionTemplate for a text without expressions
testExpressionTemplateWithoutExpressions
{ "repo_name": "jandsu/ironjacamar", "path": "testsuite/src/test/java/org/ironjacamar/common/metadata/common/ExpressionTemplateTestCase.java", "license": "epl-1.0", "size": 33024 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,959,543
if (uri.length() == 0) { return new byte[0]; } ByteBuffer bb = ByteBuffer.allocate(uri.length()); // UUIDs are ordered as byte array, which means most significant first bb.order(ByteOrder.BIG_ENDIAN); int position = 0; // Add the byte code for the scheme or return null if none Byte sc...
if (uri.length() == 0) { return new byte[0]; } ByteBuffer bb = ByteBuffer.allocate(uri.length()); bb.order(ByteOrder.BIG_ENDIAN); int position = 0; Byte schemeCode = encodeUriScheme(uri); if (schemeCode == null) { return null; } String scheme = URI_SCHEMES.get(schemeCode); bb.put(schemeCode); position += scheme.length(...
/** * Creates the Uri string with embedded expansion codes. * * @param uri to be encoded * @return the Uri string with expansion codes. */
Creates the Uri string with embedded expansion codes
encodeUri
{ "repo_name": "kstechnologies/uribeacon", "path": "android-uribeacon/uribeacon-library/src/main/java/org/uribeacon/beacon/UriBeacon.java", "license": "apache-2.0", "size": 15605 }
[ "android.webkit.URLUtil", "java.nio.ByteBuffer", "java.nio.ByteOrder" ]
import android.webkit.URLUtil; import java.nio.ByteBuffer; import java.nio.ByteOrder;
import android.webkit.*; import java.nio.*;
[ "android.webkit", "java.nio" ]
android.webkit; java.nio;
1,125,102
@Test @SuppressWarnings("BanSerializableRead") void testIsSerializable() throws IOException, ClassNotFoundException { // serialize final ByteArrayOutputStream out = new ByteArrayOutputStream(); try (final ObjectOutputStream oos = new ObjectOutputStream(out)) { oos.writeOb...
@SuppressWarnings(STR) void testIsSerializable() throws IOException, ClassNotFoundException { final ByteArrayOutputStream out = new ByteArrayOutputStream(); try (final ObjectOutputStream oos = new ObjectOutputStream(out)) { oos.writeObject(this.rolePrincipal); } assertThat(out.toByteArray()).isNotEmpty(); final InputSt...
/** * Test is serializable. * * @throws IOException * Signals that an I/O exception has occurred. * @throws ClassNotFoundException * the class not found exception */
Test is serializable
testIsSerializable
{ "repo_name": "hazendaz/waffle", "path": "Source/JNA/waffle-jna/src/test/java/waffle/jaas/RolePrincipalTest.java", "license": "mit", "size": 3652 }
[ "java.io.ByteArrayInputStream", "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.InputStream", "java.io.ObjectInputStream", "java.io.ObjectOutputStream", "org.assertj.core.api.Assertions", "org.junit.jupiter.api.Assertions" ]
import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import org.assertj.core.api.Assertions; import org.junit.jupiter.api.Assertions;
import java.io.*; import org.assertj.core.api.*; import org.junit.jupiter.api.*;
[ "java.io", "org.assertj.core", "org.junit.jupiter" ]
java.io; org.assertj.core; org.junit.jupiter;
1,107,569
public static File buildExecutableFile() { String executableName = getTuiExecutableName(); File executableDirectory; if (EXEC_DIRECTORY == null) { File applicationRoot = Utils.getApplicationRoot(); if (OSTool.isSystemWindows()) { executableDirectory = applicationRoot; } else { executableDirec...
static File function() { String executableName = getTuiExecutableName(); File executableDirectory; if (EXEC_DIRECTORY == null) { File applicationRoot = Utils.getApplicationRoot(); if (OSTool.isSystemWindows()) { executableDirectory = applicationRoot; } else { executableDirectory = new File(applicationRoot, DEFAULT_BIN_...
/** * Build the "areca_cl" file name according to the user's system and technical configuration */
Build the "areca_cl" file name according to the user's system and technical configuration
buildExecutableFile
{ "repo_name": "chfoo/areca-backup-release-mirror", "path": "src/com/application/areca/Utils.java", "license": "gpl-2.0", "size": 13580 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,432,363
@JSFunction public static Object getMapperClass(final Context ctx, final Scriptable thisObj, final Object[] args, final Function func) { try { final Class<?> mapperClass = ((JobWrap)thisObj).job.getMapperClass(); return mapperClass == null...
static Object function(final Context ctx, final Scriptable thisObj, final Object[] args, final Function func) { try { final Class<?> mapperClass = ((JobWrap)thisObj).job.getMapperClass(); return mapperClass == null ? Context.getUndefinedValue() : mapperClass.getCanonicalName(); } catch (ClassNotFoundException e) { thro...
/** * Wraps {@link Job#getMapperClass()}. * * @param ctx the JavaScript context (unused) * @param thisObj the 'this' object of the caller * @param args the arguments for the call * @param func the function called (unused) * * @return the mapper class */
Wraps <code>Job#getMapperClass()</code>
getMapperClass
{ "repo_name": "apigee/lembos", "path": "src/main/java/io/apigee/lembos/node/types/JobWrap.java", "license": "apache-2.0", "size": 56194 }
[ "io.apigee.lembos.mapreduce.LembosMessages", "io.apigee.trireme.core.Utils", "org.mozilla.javascript.Context", "org.mozilla.javascript.Function", "org.mozilla.javascript.Scriptable" ]
import io.apigee.lembos.mapreduce.LembosMessages; import io.apigee.trireme.core.Utils; import org.mozilla.javascript.Context; import org.mozilla.javascript.Function; import org.mozilla.javascript.Scriptable;
import io.apigee.lembos.mapreduce.*; import io.apigee.trireme.core.*; import org.mozilla.javascript.*;
[ "io.apigee.lembos", "io.apigee.trireme", "org.mozilla.javascript" ]
io.apigee.lembos; io.apigee.trireme; org.mozilla.javascript;
2,309,366
private double[][] calculateDistances(O[] queries, O[] data) throws OBException { double[][] res = new double[queries.length][]; int i = 0; while (i < queries.length) { res[i] = sequentialSearch(queries[i], data); i++; } return res; }
double[][] function(O[] queries, O[] data) throws OBException { double[][] res = new double[queries.length][]; int i = 0; while (i < queries.length) { res[i] = sequentialSearch(queries[i], data); i++; } return res; }
/** * Calculate the distances to each of the data queries. * * @param queries * @param data * @return * @throws OBException */
Calculate the distances to each of the data queries
calculateDistances
{ "repo_name": "amuller/obsearch", "path": "src/main/java/net/obsearch/pivots/rf02/AbstractIncrementalRF02.java", "license": "gpl-3.0", "size": 10506 }
[ "net.obsearch.exception.OBException" ]
import net.obsearch.exception.OBException;
import net.obsearch.exception.*;
[ "net.obsearch.exception" ]
net.obsearch.exception;
2,824,563
default AdvancedFtpsEndpointConsumerBuilder inProgressRepository( IdempotentRepository inProgressRepository) { setProperty("inProgressRepository", inProgressRepository); return this; }
default AdvancedFtpsEndpointConsumerBuilder inProgressRepository( IdempotentRepository inProgressRepository) { setProperty(STR, inProgressRepository); return this; }
/** * A pluggable in-progress repository * org.apache.camel.spi.IdempotentRepository. The in-progress repository * is used to account the current in progress files being consumed. By * default a memory based repository is used. * * The option is a: * <code...
A pluggable in-progress repository org.apache.camel.spi.IdempotentRepository. The in-progress repository is used to account the current in progress files being consumed. By default a memory based repository is used. The option is a: <code>org.apache.camel.spi.IdempotentRepository</code> type. Group: consumer (advanced)
inProgressRepository
{ "repo_name": "Fabryprog/camel", "path": "core/camel-endpointdsl/src/main/java/org/apache/camel/builder/endpoint/dsl/FtpsEndpointBuilderFactory.java", "license": "apache-2.0", "size": 228885 }
[ "org.apache.camel.spi.IdempotentRepository" ]
import org.apache.camel.spi.IdempotentRepository;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
1,655,482
Set<GAV> getToplevelDependencyOfRevision(String scmUrl, String revision, String pomPath, List<String> repositories) throws ScmException, PomAnalysisException;
Set<GAV> getToplevelDependencyOfRevision(String scmUrl, String revision, String pomPath, List<String> repositories) throws ScmException, PomAnalysisException;
/** * Finds toplevel dependency of specific revision on scm url * * @param scmUrl * @param revision * @param pomPath * @param repositories * @return Dependency tree of revision * @throws PomAnalysisException When there is problem with the pom analysis * @throws ScmException ...
Finds toplevel dependency of specific revision on scm url
getToplevelDependencyOfRevision
{ "repo_name": "janinko/dependency-analysis", "path": "communication/src/main/java/org/jboss/da/communication/scm/api/SCMConnector.java", "license": "apache-2.0", "size": 3931 }
[ "java.util.List", "java.util.Set", "org.apache.maven.scm.ScmException", "org.jboss.da.communication.pom.PomAnalysisException" ]
import java.util.List; import java.util.Set; import org.apache.maven.scm.ScmException; import org.jboss.da.communication.pom.PomAnalysisException;
import java.util.*; import org.apache.maven.scm.*; import org.jboss.da.communication.pom.*;
[ "java.util", "org.apache.maven", "org.jboss.da" ]
java.util; org.apache.maven; org.jboss.da;
1,007,906
public static List<String> readLines(File file, String encoding) throws IOException { InputStream in = null; try { in = openInputStream(file); return IOUtils.readLines(in, encoding); } finally { IOUtils.closeQuietly(in); } }
static List<String> function(File file, String encoding) throws IOException { InputStream in = null; try { in = openInputStream(file); return IOUtils.readLines(in, encoding); } finally { IOUtils.closeQuietly(in); } }
/** * Reads the contents of a file line by line to a List of Strings. * The file is always closed. * * @param file the file to read, must not be <code>null</code> * @param encoding the encoding to use, <code>null</code> means platform default * @return the list of Strings represent...
Reads the contents of a file line by line to a List of Strings. The file is always closed
readLines
{ "repo_name": "0x90sled/droidtowers", "path": "main/source/org/apach3/commons/io/FileUtils.java", "license": "mit", "size": 112889 }
[ "java.io.File", "java.io.IOException", "java.io.InputStream", "java.util.List" ]
import java.io.File; import java.io.IOException; import java.io.InputStream; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,637,090
public Date getValueAsDate() throws TypeConvertException, NoSuchElementException;
Date function() throws TypeConvertException, NoSuchElementException;
/** * Gets the first value of this object as a {@link Date} value. * <p> * If the type of this object is not {@link Type#DATE}, the value will be * converted into a {@link Date} value. * * @return the first value of this object as a {@link Date} value. * @throws TypeConvertException * ...
Gets the first value of this object as a <code>Date</code> value. If the type of this object is not <code>Type#DATE</code>, the value will be converted into a <code>Date</code> value
getValueAsDate
{ "repo_name": "Haixing-Hu/commons", "path": "src/main/java/com/github/haixing_hu/util/value/MultiValues.java", "license": "apache-2.0", "size": 81305 }
[ "com.github.haixing_hu.lang.TypeConvertException", "java.util.Date", "java.util.NoSuchElementException" ]
import com.github.haixing_hu.lang.TypeConvertException; import java.util.Date; import java.util.NoSuchElementException;
import com.github.haixing_hu.lang.*; import java.util.*;
[ "com.github.haixing_hu", "java.util" ]
com.github.haixing_hu; java.util;
2,409,858
this.outputUnallocated = !allocateOutput; for(int i=0; i<XORCascadeState.BOXES; i++){ if (!allocateOutput && (i+1) == XORCascadeState.BOXES) { break; } idx = Generator.ALLOCXORCoding(cod[i], 0, idx, 2*XORCascadeState.WIDTH); } ...
this.outputUnallocated = !allocateOutput; for(int i=0; i<XORCascadeState.BOXES; i++){ if (!allocateOutput && (i+1) == XORCascadeState.BOXES) { break; } idx = Generator.ALLOCXORCoding(cod[i], 0, idx, 2*XORCascadeState.WIDTH); } return idx; }
/** * Allocates XOR cascade coding. * @param idx * @param allocateOutput tells whether to allocate output bijections for * last XOR stage - output from XORCascadeState. Used as output from * ciper - external encodings are used. * @return */
Allocates XOR cascade coding
allocate
{ "repo_name": "xbacinsk/White-box_cipher_java", "path": "src/main/java/cz/muni/fi/xklinec/whiteboxAES/generator/GXORCascadeState.java", "license": "bsd-3-clause", "size": 6556 }
[ "cz.muni.fi.xklinec.whiteboxAES.XORCascadeState" ]
import cz.muni.fi.xklinec.whiteboxAES.XORCascadeState;
import cz.muni.fi.xklinec.*;
[ "cz.muni.fi" ]
cz.muni.fi;
1,863,137
@NonNull @Deprecated public BrowserControlsManager getBrowserControlsManager() { return mBrowserControlsManager; }
BrowserControlsManager function() { return mBrowserControlsManager; }
/** * Gets the browser controls manager, creates it unless already created. * @deprecated Instead, inject this directly to your constructor. If that's not possible, then * use {@link BrowserControlsManagerSupplier}. */
Gets the browser controls manager, creates it unless already created
getBrowserControlsManager
{ "repo_name": "nwjs/chromium.src", "path": "chrome/android/java/src/org/chromium/chrome/browser/ui/RootUiCoordinator.java", "license": "bsd-3-clause", "size": 62053 }
[ "org.chromium.chrome.browser.fullscreen.BrowserControlsManager" ]
import org.chromium.chrome.browser.fullscreen.BrowserControlsManager;
import org.chromium.chrome.browser.fullscreen.*;
[ "org.chromium.chrome" ]
org.chromium.chrome;
1,106,465
public Adapter createRedefinableElementAdapter() { return null; }
Adapter function() { return null; }
/** * Creates a new adapter for an object of class '{@link behavior.RedefinableElement <em>Redefinable Element</em>}'. * <!-- begin-user-doc --> * This default implementation returns null so that we can easily ignore cases; * it's useful to ignore a case when inheritance will catch all the cases anyway. * <!-...
Creates a new adapter for an object of class '<code>behavior.RedefinableElement Redefinable Element</code>'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
createRedefinableElementAdapter
{ "repo_name": "posl/iArch", "path": "jp.ac.kyushu_u.iarch.model/src/behavior/util/BehaviorAdapterFactory.java", "license": "epl-1.0", "size": 22690 }
[ "org.eclipse.emf.common.notify.Adapter" ]
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,901,180
private static void setLookAndFeel() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException ex) { Logger.getLogger(Editor.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(Ed...
static void function() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (ClassNotFoundException ex) { Logger.getLogger(Editor.class.getName()).log(Level.SEVERE, null, ex); } catch (InstantiationException ex) { Logger.getLogger(Editor.class.getName()).log(Level.SEVERE, null, ex); } ca...
/** * Attempts to set the Look and Feel of the application to the native * platform. */
Attempts to set the Look and Feel of the application to the native platform
setLookAndFeel
{ "repo_name": "DavidATGreen/stronghold-kingdoms-castle-designer", "path": "src/main/java/castledesigner/Editor.java", "license": "mit", "size": 15791 }
[ "java.util.logging.Level", "java.util.logging.Logger", "javax.swing.UIManager", "javax.swing.UnsupportedLookAndFeelException" ]
import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.UIManager; import javax.swing.UnsupportedLookAndFeelException;
import java.util.logging.*; import javax.swing.*;
[ "java.util", "javax.swing" ]
java.util; javax.swing;
1,029,539
private String InputStreamToString(InputStream in) { BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(in, IConstants.UTF8_ENCODING)); } catch (UnsupportedEncodingException e1) { LogUtil.logError(FriedmanPlugin.PLUGIN_ID, e1); } StringBuffer myStrBu...
String function(InputStream in) { BufferedReader reader = null; try { reader = new BufferedReader(new InputStreamReader(in, IConstants.UTF8_ENCODING)); } catch (UnsupportedEncodingException e1) { LogUtil.logError(FriedmanPlugin.PLUGIN_ID, e1); } StringBuffer myStrBuf = new StringBuffer(); int charOut = 0; String output...
/** * reads the current value from an input stream * * @param in the input stream */
reads the current value from an input stream
InputStreamToString
{ "repo_name": "kevinott/crypto", "path": "org.jcryptool.analysis.friedman/src/org/jcryptool/analysis/friedman/ui/FriedmanGraphUI.java", "license": "epl-1.0", "size": 10844 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.InputStream", "java.io.InputStreamReader", "java.io.UnsupportedEncodingException", "org.jcryptool.analysis.friedman.FriedmanPlugin", "org.jcryptool.core.logging.utils.LogUtil", "org.jcryptool.core.util.constants.IConstants" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.UnsupportedEncodingException; import org.jcryptool.analysis.friedman.FriedmanPlugin; import org.jcryptool.core.logging.utils.LogUtil; import org.jcryptool.core.util.constants.IConstant...
import java.io.*; import org.jcryptool.analysis.friedman.*; import org.jcryptool.core.logging.utils.*; import org.jcryptool.core.util.constants.*;
[ "java.io", "org.jcryptool.analysis", "org.jcryptool.core" ]
java.io; org.jcryptool.analysis; org.jcryptool.core;
2,276,430
@JSFunction public static Object setCombinerClass(final Context ctx, final Scriptable thisObj, final Object[] args, final Function func) { if (args.length == 1) { if (!JavaScriptUtils.isDefined(args[0])) { throw Utils.makeError(ctx, t...
static Object function(final Context ctx, final Scriptable thisObj, final Object[] args, final Function func) { if (args.length == 1) { if (!JavaScriptUtils.isDefined(args[0])) { throw Utils.makeError(ctx, thisObj, LembosMessages.FIRST_ARG_REQUIRED); } } else { throw Utils.makeError(ctx, thisObj, LembosMessages.ONE_ARG...
/** * Wraps {@link Job#setCombinerClass(Class)}. * * @param ctx the JavaScript context (unused) * @param thisObj the 'this' object of the caller * @param args the arguments for the call * @param func the function called (unused) * * @return this */
Wraps <code>Job#setCombinerClass(Class)</code>
setCombinerClass
{ "repo_name": "apigee/lembos", "path": "src/main/java/io/apigee/lembos/node/types/JobWrap.java", "license": "apache-2.0", "size": 56194 }
[ "io.apigee.lembos.mapreduce.LembosMessages", "io.apigee.lembos.utils.JavaScriptUtils", "io.apigee.trireme.core.Utils", "org.apache.hadoop.mapreduce.Reducer", "org.mozilla.javascript.Context", "org.mozilla.javascript.Function", "org.mozilla.javascript.Scriptable" ]
import io.apigee.lembos.mapreduce.LembosMessages; import io.apigee.lembos.utils.JavaScriptUtils; import io.apigee.trireme.core.Utils; import org.apache.hadoop.mapreduce.Reducer; import org.mozilla.javascript.Context; import org.mozilla.javascript.Function; import org.mozilla.javascript.Scriptable;
import io.apigee.lembos.mapreduce.*; import io.apigee.lembos.utils.*; import io.apigee.trireme.core.*; import org.apache.hadoop.mapreduce.*; import org.mozilla.javascript.*;
[ "io.apigee.lembos", "io.apigee.trireme", "org.apache.hadoop", "org.mozilla.javascript" ]
io.apigee.lembos; io.apigee.trireme; org.apache.hadoop; org.mozilla.javascript;
2,309,382
public byte get() { return cursor.get(); } /** * places the data starting at current position into the * supplied {@link IoBuffer}
byte function() { return cursor.get(); } /** * places the data starting at current position into the * supplied {@link IoBuffer}
/** * Returns the byte at the current position in the buffer * */
Returns the byte at the current position in the buffer
get
{ "repo_name": "sardine/mina-ja", "path": "src/mina-core/src/main/java/org/apache/mina/util/byteaccess/CompositeByteArrayRelativeReader.java", "license": "apache-2.0", "size": 3449 }
[ "org.apache.mina.core.buffer.IoBuffer" ]
import org.apache.mina.core.buffer.IoBuffer;
import org.apache.mina.core.buffer.*;
[ "org.apache.mina" ]
org.apache.mina;
96,325
public static boolean loginChecker(String hostName, int serviceID) throws SQLException { if(log.isDebugEnabled()) { log.debug("************** TRUST STORE : " + System.getProperty(StatusMonitorAgentConstants.TRUST_STORE)); } String userName = authConfigBean.get...
static boolean function(String hostName, int serviceID) throws SQLException { if(log.isDebugEnabled()) { log.debug(STR + System.getProperty(StatusMonitorAgentConstants.TRUST_STORE)); } String userName = authConfigBean.getUserName(); String password = authConfigBean.getPassword(); boolean loginStatus = false; String aut...
/** * Checks the log in * @param hostName; host name of the service * @param serviceID: int, service ID * @return boolean: true, if successfully logged in * @throws SQLException: if writing to the database failed. */
Checks the log in
loginChecker
{ "repo_name": "panelion/incubator-stratos", "path": "components/org.apache.stratos.status.monitor.agent/src/main/java/org/apache/stratos/status/monitor/agent/clients/common/ServiceLoginClient.java", "license": "apache-2.0", "size": 4708 }
[ "java.sql.SQLException", "org.apache.stratos.status.monitor.agent.constants.StatusMonitorAgentConstants" ]
import java.sql.SQLException; import org.apache.stratos.status.monitor.agent.constants.StatusMonitorAgentConstants;
import java.sql.*; import org.apache.stratos.status.monitor.agent.constants.*;
[ "java.sql", "org.apache.stratos" ]
java.sql; org.apache.stratos;
2,793,481
public static Object getPixels(WritableRaster raster, int x, int y, int w, int h) { int tt = raster.getTransferType(); if (tt == DataBuffer.TYPE_BYTE) return getBytes(raster, x, y, w, h); else if (tt == DataBuffer.TYPE_USHORT || tt == DataBuffer.TYPE_SHORT) { return getShorts(raster, x, y, w, ...
static Object function(WritableRaster raster, int x, int y, int w, int h) { int tt = raster.getTransferType(); if (tt == DataBuffer.TYPE_BYTE) return getBytes(raster, x, y, w, h); else if (tt == DataBuffer.TYPE_USHORT tt == DataBuffer.TYPE_SHORT) { return getShorts(raster, x, y, w, h); } else if (tt == DataBuffer.TYPE_...
/** * Gets the raster's pixel data as arrays of primitives, one per channel. * The returned type will be either byte[][], short[][], int[][], float[][] * or double[][], depending on the raster's transfer type. */
Gets the raster's pixel data as arrays of primitives, one per channel. The returned type will be either byte[][], short[][], int[][], float[][] or double[][], depending on the raster's transfer type
getPixels
{ "repo_name": "dominikl/bioformats", "path": "components/formats-bsd/src/loci/formats/gui/AWTImageTools.java", "license": "gpl-2.0", "size": 71404 }
[ "java.awt.image.DataBuffer", "java.awt.image.WritableRaster" ]
import java.awt.image.DataBuffer; import java.awt.image.WritableRaster;
import java.awt.image.*;
[ "java.awt" ]
java.awt;
1,880,423
@MediumTest @Feature({"Browser", "Notifications"}) public void testNotificationSilentProperty() throws Exception { loadUrl(NOTIFICATION_TEST_PAGE); setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW); Notification notification = showAndGetNotification("MyNotification...
@Feature({STR, STR}) void function() throws Exception { loadUrl(NOTIFICATION_TEST_PAGE); setNotificationContentSettingForCurrentOrigin(ContentSetting.ALLOW); Notification notification = showAndGetNotification(STR, STR); assertEquals(0, notification.defaults); }
/** * Verifies that notifications created with the "silent" flag do not inherit system defaults * in regards to their sound, vibration and light indicators. */
Verifies that notifications created with the "silent" flag do not inherit system defaults in regards to their sound, vibration and light indicators
testNotificationSilentProperty
{ "repo_name": "js0701/chromium-crosswalk", "path": "chrome/android/javatests/src/org/chromium/chrome/browser/notifications/NotificationUIManagerTest.java", "license": "bsd-3-clause", "size": 14563 }
[ "android.app.Notification", "org.chromium.base.test.util.Feature", "org.chromium.chrome.browser.preferences.website.ContentSetting" ]
import android.app.Notification; import org.chromium.base.test.util.Feature; import org.chromium.chrome.browser.preferences.website.ContentSetting;
import android.app.*; import org.chromium.base.test.util.*; import org.chromium.chrome.browser.preferences.website.*;
[ "android.app", "org.chromium.base", "org.chromium.chrome" ]
android.app; org.chromium.base; org.chromium.chrome;
763,297
boolean tryCaptureViewForDrag(View toCapture, int pointerId) { if (toCapture == mCapturedView && mActivePointerId == pointerId) { // Already done! return true; } if (toCapture != null && mCallback.tryCaptureView(toCapture, pointerId)) { mActivePointerId = ...
boolean tryCaptureViewForDrag(View toCapture, int pointerId) { if (toCapture == mCapturedView && mActivePointerId == pointerId) { return true; } if (toCapture != null && mCallback.tryCaptureView(toCapture, pointerId)) { mActivePointerId = pointerId; captureChildView(toCapture, pointerId); return true; } return false; }
/** * Attempt to capture the view with the given pointer ID. The callback will be involved. * This will put us into the "dragging" state. If we've already captured this view with * this pointer this method will immediately return true without consulting the callback. * * @param toCapture View t...
Attempt to capture the view with the given pointer ID. The callback will be involved. This will put us into the "dragging" state. If we've already captured this view with this pointer this method will immediately return true without consulting the callback
tryCaptureViewForDrag
{ "repo_name": "chaoyuexing/DoubleChat", "path": "app/src/main/java/com/xiaoxin/xing/wqq/Widget/ViewDragHelper.java", "license": "apache-2.0", "size": 61315 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
327,222
public void copyTo(DependencyCollection other) { Assert.notNull(other); other._position = this._position; other._css = this._css; other._resources = new ArrayList<ResourceReference>(this._resources); }
void function(DependencyCollection other) { Assert.notNull(other); other._position = this._position; other._css = this._css; other._resources = new ArrayList<ResourceReference>(this._resources); }
/** * Copy internal state to another instance. The frozen status will not * be copied. */
Copy internal state to another instance. The frozen status will not be copied
copyTo
{ "repo_name": "55minutes/fiftyfive-wicket-2.x", "path": "js/src/main/java/fiftyfive/wicket/js/locator/DependencyCollection.java", "license": "apache-2.0", "size": 5239 }
[ "java.util.ArrayList", "org.apache.wicket.ResourceReference" ]
import java.util.ArrayList; import org.apache.wicket.ResourceReference;
import java.util.*; import org.apache.wicket.*;
[ "java.util", "org.apache.wicket" ]
java.util; org.apache.wicket;
481,089
void onStateChanged(S state, Event event);
void onStateChanged(S state, Event event);
/** * Called when an event causes the state to change. * * @param state The concrete state object. * @param event The event that changed the state. */
Called when an event causes the state to change
onStateChanged
{ "repo_name": "cookingfox/lapasse-java", "path": "lapasse/src/main/java/com/cookingfox/lapasse/api/state/observer/OnStateChanged.java", "license": "mit", "size": 543 }
[ "com.cookingfox.lapasse.api.event.Event" ]
import com.cookingfox.lapasse.api.event.Event;
import com.cookingfox.lapasse.api.event.*;
[ "com.cookingfox.lapasse" ]
com.cookingfox.lapasse;
1,965,051
public Money getRetailPrice();
Money function();
/** * added just for convenience, references to defaultSku.retailPrice * @return */
added just for convenience, references to defaultSku.retailPrice
getRetailPrice
{ "repo_name": "cloudbearings/BroadleafCommerce", "path": "core/broadleaf-framework/src/main/java/org/broadleafcommerce/core/catalog/domain/Product.java", "license": "apache-2.0", "size": 26608 }
[ "org.broadleafcommerce.common.money.Money" ]
import org.broadleafcommerce.common.money.Money;
import org.broadleafcommerce.common.money.*;
[ "org.broadleafcommerce.common" ]
org.broadleafcommerce.common;
504,210
Map<ServerLocation, Endpoint> getEndpointMap();
Map<ServerLocation, Endpoint> getEndpointMap();
/** * Get the map of all endpoints currently in use. * * @return a map for ServerLocation->Endpoint */
Get the map of all endpoints currently in use
getEndpointMap
{ "repo_name": "PurelyApplied/geode", "path": "geode-core/src/main/java/org/apache/geode/cache/client/internal/EndpointManager.java", "license": "apache-2.0", "size": 3123 }
[ "java.util.Map", "org.apache.geode.distributed.internal.ServerLocation" ]
import java.util.Map; import org.apache.geode.distributed.internal.ServerLocation;
import java.util.*; import org.apache.geode.distributed.internal.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
1,338,203
public static PemPrivateKey valueOf(byte[] key) { return valueOf(Unpooled.wrappedBuffer(key)); }
static PemPrivateKey function(byte[] key) { return valueOf(Unpooled.wrappedBuffer(key)); }
/** * Creates a {@link PemPrivateKey} from raw {@code byte[]}. * * ATTENTION: It's assumed that the given argument is a PEM/PKCS#8 encoded value. * No input validation is performed to validate it. */
Creates a <code>PemPrivateKey</code> from raw byte[]. No input validation is performed to validate it
valueOf
{ "repo_name": "imangry/netty-zh", "path": "handler/src/main/java/io/netty/handler/ssl/PemPrivateKey.java", "license": "apache-2.0", "size": 6370 }
[ "io.netty.buffer.Unpooled" ]
import io.netty.buffer.Unpooled;
import io.netty.buffer.*;
[ "io.netty.buffer" ]
io.netty.buffer;
530,789