method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public RequestToken getRequestToken(RecordId recordId, String callbackUrl) throws IndivoException{ RequestToken result=null; String callbackValue; if(callbackUrl==null) callbackValue=OAuth.OUT_OF_BAND; // ("oob" value) else callbackValue=callbackUrl; try { OAuthConsumer consumer=th...
RequestToken function(RecordId recordId, String callbackUrl) throws IndivoException{ RequestToken result=null; String callbackValue; if(callbackUrl==null) callbackValue=OAuth.OUT_OF_BAND; else callbackValue=callbackUrl; try { OAuthConsumer consumer=this.transport.getNewOAuthConsumer(); String url=this.provider.retrieve...
/** * Contact the Indivo server to obtain an OAuth request token. * * @param recordId an optional record ID if available (sent by Indivo server to start page) * @param callbackUrl an optional callback URL in the case the one configured in Indivo for the PHA does not suit * @return the request token returned...
Contact the Indivo server to obtain an OAuth request token
getRequestToken
{ "repo_name": "fredorange/JLInX", "path": "src/jlinx-api-6.0.8-sources/com/orange/jlinx/auth/AuthenticationManager.java", "license": "gpl-3.0", "size": 7059 }
[ "com.orange.jlinx.IndivoException", "com.orange.jlinx.RecordId", "java.net.MalformedURLException", "oauth.signpost.OAuth", "oauth.signpost.OAuthConsumer", "oauth.signpost.exception.OAuthException" ]
import com.orange.jlinx.IndivoException; import com.orange.jlinx.RecordId; import java.net.MalformedURLException; import oauth.signpost.OAuth; import oauth.signpost.OAuthConsumer; import oauth.signpost.exception.OAuthException;
import com.orange.jlinx.*; import java.net.*; import oauth.signpost.*; import oauth.signpost.exception.*;
[ "com.orange.jlinx", "java.net", "oauth.signpost", "oauth.signpost.exception" ]
com.orange.jlinx; java.net; oauth.signpost; oauth.signpost.exception;
2,417,054
public void testFailedStage() { CFException ex = new CFException(); CompletionStage<Integer> f = CompletableFuture.failedStage(ex); AtomicInteger x = new AtomicInteger(0); AtomicReference<Throwable> r = new AtomicReference<>(); f.whenComplete((v, e) -> {if (e != null) r.set(e...
void function() { CFException ex = new CFException(); CompletionStage<Integer> f = CompletableFuture.failedStage(ex); AtomicInteger x = new AtomicInteger(0); AtomicReference<Throwable> r = new AtomicReference<>(); f.whenComplete((v, e) -> {if (e != null) r.set(e); else x.set(v);}); assertEquals(x.get(), 0); assertEqual...
/** * failedStage returns a CompletionStage completed * exceptionally with the given Exception */
failedStage returns a CompletionStage completed exceptionally with the given Exception
testFailedStage
{ "repo_name": "google/desugar_jdk_libs", "path": "jdk11/src/libcore/ojluni/src/test/java/util/concurrent/tck/CompletableFutureTest.java", "license": "gpl-2.0", "size": 182910 }
[ "java.util.concurrent.CompletableFuture", "java.util.concurrent.CompletionStage", "java.util.concurrent.atomic.AtomicInteger", "java.util.concurrent.atomic.AtomicReference" ]
import java.util.concurrent.CompletableFuture; import java.util.concurrent.CompletionStage; import java.util.concurrent.atomic.AtomicInteger; import java.util.concurrent.atomic.AtomicReference;
import java.util.concurrent.*; import java.util.concurrent.atomic.*;
[ "java.util" ]
java.util;
114,321
public void clear() { Iterator<RPObject> it = objects.iterator(); while (it.hasNext()) { RPObject object = it.next(); prepareRemove(object); it.remove(); } // this should never happen if (!added.isEmpty()) { throw new IllegalStateException("added list not empty after cleaing rpslot: " + toStr...
void function() { Iterator<RPObject> it = objects.iterator(); while (it.hasNext()) { RPObject object = it.next(); prepareRemove(object); it.remove(); } if (!added.isEmpty()) { throw new IllegalStateException(STR + toString()); } }
/** * This method empty the slot by removing all the objects inside. */
This method empty the slot by removing all the objects inside
clear
{ "repo_name": "arianne/marauroa", "path": "src/marauroa/common/game/RPSlot.java", "license": "gpl-2.0", "size": 17625 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
2,066,064
public static String getPid() { String nameOfRunningVM = ManagementFactory.getRuntimeMXBean().getName(); int p = nameOfRunningVM.indexOf('@'); return nameOfRunningVM.substring(0, p); }
static String function() { String nameOfRunningVM = ManagementFactory.getRuntimeMXBean().getName(); int p = nameOfRunningVM.indexOf('@'); return nameOfRunningVM.substring(0, p); }
/** * Gets the current jvm pid. * * @return the pid as String */
Gets the current jvm pid
getPid
{ "repo_name": "horzelski/orbit", "path": "utils/agent-loader/src/main/java/com/ea/orbit/instrumentation/AgentLoaderHotSpot.java", "license": "bsd-3-clause", "size": 6256 }
[ "java.lang.management.ManagementFactory" ]
import java.lang.management.ManagementFactory;
import java.lang.management.*;
[ "java.lang" ]
java.lang;
2,239,975
private void getParticipants(String itemId) { ParticipantsAdapter participantsAdapter = new ParticipantsAdapter(this, User.class, R.layout.participant_layout, ParticipantsAdapter.MyViewHolder.class, qDatabase.getReference("participants/" + tradePost.getTradePostId())); ...
void function(String itemId) { ParticipantsAdapter participantsAdapter = new ParticipantsAdapter(this, User.class, R.layout.participant_layout, ParticipantsAdapter.MyViewHolder.class, qDatabase.getReference(STR + tradePost.getTradePostId())); participantsAdapter.setItemId(itemId); participantsRecyclerView.setAdapter(pa...
/** * Get list of participants and display in recycler view bottom sheet */
Get list of participants and display in recycler view bottom sheet
getParticipants
{ "repo_name": "Nguedia-Adele/J_Trok", "path": "app/src/main/java/com/app/android/tensel/ui/PostDetailActivity.java", "license": "mit", "size": 21843 }
[ "com.app.android.tensel.adapters.ParticipantsAdapter", "com.app.android.tensel.models.User" ]
import com.app.android.tensel.adapters.ParticipantsAdapter; import com.app.android.tensel.models.User;
import com.app.android.tensel.adapters.*; import com.app.android.tensel.models.*;
[ "com.app.android" ]
com.app.android;
2,916,023
protected PlatformListenable readAndListenFuture(BinaryRawReader reader, IgniteInternalFuture fut, PlatformFutureUtils.Writer writer) throws IgniteCheckedException { long futId = reader.readLong(); int futTyp = reader.readInt(); ...
PlatformListenable function(BinaryRawReader reader, IgniteInternalFuture fut, PlatformFutureUtils.Writer writer) throws IgniteCheckedException { long futId = reader.readLong(); int futTyp = reader.readInt(); return PlatformFutureUtils.listen(platformCtx, fut, futId, futTyp, writer, this); }
/** * Reads future information and listens. * * @param reader Reader. * @param fut Future. * @param writer Writer. * @throws IgniteCheckedException In case of error. */
Reads future information and listens
readAndListenFuture
{ "repo_name": "vldpyatkov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/platform/PlatformAbstractTarget.java", "license": "apache-2.0", "size": 7558 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.binary.BinaryRawReader", "org.apache.ignite.internal.IgniteInternalFuture", "org.apache.ignite.internal.processors.platform.utils.PlatformFutureUtils", "org.apache.ignite.internal.processors.platform.utils.PlatformListenable" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.binary.BinaryRawReader; import org.apache.ignite.internal.IgniteInternalFuture; import org.apache.ignite.internal.processors.platform.utils.PlatformFutureUtils; import org.apache.ignite.internal.processors.platform.utils.PlatformListenable;
import org.apache.ignite.*; import org.apache.ignite.binary.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.processors.platform.utils.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,898,226
public ServiceFuture<Void> beginDeleteAsync(String resourceGroupName, String circuitName, String peeringName, String connectionName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, circuitName, peeringName, connectionNam...
ServiceFuture<Void> function(String resourceGroupName, String circuitName, String peeringName, String connectionName, final ServiceCallback<Void> serviceCallback) { return ServiceFuture.fromResponse(beginDeleteWithServiceResponseAsync(resourceGroupName, circuitName, peeringName, connectionName), serviceCallback); }
/** * Deletes the specified Express Route Circuit Connection from the specified express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the express route circuit. * @param peeringName The name of the peering. * @param connectionN...
Deletes the specified Express Route Circuit Connection from the specified express route circuit
beginDeleteAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/implementation/ExpressRouteCircuitConnectionsInner.java", "license": "mit", "size": 36882 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
634,192
public SoyFileSetParserBuilder declaredSyntaxVersion(SyntaxVersion version) { this.declaredSyntaxVersion = version; return this; } /** * Turns the parser's checking passes on or off. Returns this object, for chaining. * * <p>The checking passes include: * <ul> * <li>{@link com.google.tem...
SoyFileSetParserBuilder function(SyntaxVersion version) { this.declaredSyntaxVersion = version; return this; } /** * Turns the parser's checking passes on or off. Returns this object, for chaining. * * <p>The checking passes include: * <ul> * <li>{@link com.google.template.soy.parsepasses.CheckCallsVisitor}</li> * <li>...
/** * Sets the parser's declared syntax version. Returns this object, for chaining. */
Sets the parser's declared syntax version. Returns this object, for chaining
declaredSyntaxVersion
{ "repo_name": "viqueen/closure-templates", "path": "java/tests/com/google/template/soy/SoyFileSetParserBuilder.java", "license": "apache-2.0", "size": 8109 }
[ "com.google.template.soy.basetree.SyntaxVersion" ]
import com.google.template.soy.basetree.SyntaxVersion;
import com.google.template.soy.basetree.*;
[ "com.google.template" ]
com.google.template;
198,824
String url1 = "https://www.google.com"; String url2 = "https://www.google.com/"; String url3 = "https://www.google.com/maps.htm"; String url4 = "https://www.google.com/maps/"; String url5 = "https://www.google.com/index.html"; String url6 = "https://www.google.com/index.html?q=ma...
String url1 = STRhttps: String url3 = STRhttps: String url5 = STRhttps: String url7 = STRhttps: String url9 = STRhttps: String url11 = STRhttp: String url13 = STRhttps: String url15 = STRhttps: String url4_scope = STRhttps: String url10_scope = STRhttp: String url15_scope = "https: assertEquals(url2_scope, ShortcutHelp...
/** * Test method for {@link ShortcutHelper#getScopeFromUrl.} */
Test method for <code>ShortcutHelper#getScopeFromUrl.</code>
testGetScopeFromUrl
{ "repo_name": "ric2b/Vivaldi-browser", "path": "chromium/chrome/android/junit/src/org/chromium/chrome/browser/ShortcutHelperTest.java", "license": "bsd-3-clause", "size": 3177 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,809,461
@SuppressWarnings("unchecked") private void addChildren(N node, ArrayList<N> node_v, ArrayList<N> exec_n) { if (exec_n.contains(node) && node.getExecLocation() != ExecLocation.ControlProgram) { if (!node_v.contains(node)) { node_v.add(node); if(LOG.isTraceEnabled()) LOG.trace(" Added ...
@SuppressWarnings(STR) void function(N node, ArrayList<N> node_v, ArrayList<N> exec_n) { if (exec_n.contains(node) && node.getExecLocation() != ExecLocation.ControlProgram) { if (!node_v.contains(node)) { node_v.add(node); if(LOG.isTraceEnabled()) LOG.trace(STR + node.toString()); } } if (!exec_n.contains(node)) return...
/** * Method to add all relevant data nodes for set of exec nodes. * * @param node * @param node_v * @param exec_n */
Method to add all relevant data nodes for set of exec nodes
addChildren
{ "repo_name": "fmakari/systemml", "path": "system-ml/src/main/java/com/ibm/bi/dml/lops/compile/Dag.java", "license": "apache-2.0", "size": 157700 }
[ "com.ibm.bi.dml.lops.LopProperties", "java.util.ArrayList" ]
import com.ibm.bi.dml.lops.LopProperties; import java.util.ArrayList;
import com.ibm.bi.dml.lops.*; import java.util.*;
[ "com.ibm.bi", "java.util" ]
com.ibm.bi; java.util;
2,096,222
@Deprecated public FsServerDefaults getServerDefaults() throws IOException { Configuration conf = getConf(); // CRC32 is chosen as default as it is available in all // releases that support checksum. // The client trash configuration is ignored. return new FsServerDefaults(getDefaultBlockSize()...
FsServerDefaults function() throws IOException { Configuration conf = getConf(); return new FsServerDefaults(getDefaultBlockSize(), conf.getInt(STR, 512), 64 * 1024, getDefaultReplication(), conf.getInt(STR, 4096), false, CommonConfigurationKeysPublic.FS_TRASH_INTERVAL_DEFAULT, DataChecksum.Type.CRC32); }
/** * Return a set of server default configuration values * @return server default configuration values * @throws IOException * @deprecated use {@link #getServerDefaults(Path)} instead */
Return a set of server default configuration values
getServerDefaults
{ "repo_name": "ouyangjie/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileSystem.java", "license": "apache-2.0", "size": 116983 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.util.DataChecksum" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.util.DataChecksum;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,213,068
protected boolean isUpToDate(FilePath expectedLocation, Installable i) throws IOException, InterruptedException { FilePath marker = expectedLocation.child(".installedFrom"); return marker.exists() && marker.readToString().equals(i.url); }
boolean function(FilePath expectedLocation, Installable i) throws IOException, InterruptedException { FilePath marker = expectedLocation.child(STR); return marker.exists() && marker.readToString().equals(i.url); }
/** * Checks if the specified expected location already contains the installed version of the tool. * * This check needs to run fairly efficiently. The current implementation uses the souce URL of {@link Installable}, * based on the assumption that released bits do not change its content. */
Checks if the specified expected location already contains the installed version of the tool. This check needs to run fairly efficiently. The current implementation uses the souce URL of <code>Installable</code>, based on the assumption that released bits do not change its content
isUpToDate
{ "repo_name": "syl20bnr/jenkins", "path": "core/src/main/java/hudson/tools/DownloadFromUrlInstaller.java", "license": "mit", "size": 6794 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,337,519
public static void main(String[] args) { try { getLpcParams(); for (int i = 0; i < args.length; i++) { System.out.println(args[i] + " STS"); FileInputStream lpcFile = new FileInputStream( "lpc/" + args[i] + ".lpc"); ...
static void function(String[] args) { try { getLpcParams(); for (int i = 0; i < args.length; i++) { System.out.println(args[i] + STR); FileInputStream lpcFile = new FileInputStream( "lpc/" + args[i] + ".lpc"); FileInputStream waveFile = new FileInputStream( "wav/" + args[i] + ".wav"); FileOutputStream stsFile = new Fil...
/** * Generate an sts file from lpc and wav files. * * args[0..n] = filenames without paths or extensions * (e.g., "arctic_a0001") */
Generate an sts file from lpc and wav files. args[0..n] = filenames without paths or extensions (e.g., "arctic_a0001")
main
{ "repo_name": "edwardtoday/PolyU_MScST", "path": "COMP5517/JavaSpeech/freetts-1.2.2-src/freetts-1.2.2/tools/ArcticToFreeTTS/src/FindSTS.java", "license": "mit", "size": 31020 }
[ "java.io.DataInputStream", "java.io.FileInputStream", "java.io.FileNotFoundException", "java.io.FileOutputStream", "java.io.IOException", "java.io.OutputStreamWriter" ]
import java.io.DataInputStream; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStreamWriter;
import java.io.*;
[ "java.io" ]
java.io;
1,506,629
public void setMeanSquaredWeightedDeviation(BigDecimal meanSquaredWeightedDeviation) { this.meanSquaredWeightedDeviation = meanSquaredWeightedDeviation; }
void function(BigDecimal meanSquaredWeightedDeviation) { this.meanSquaredWeightedDeviation = meanSquaredWeightedDeviation; }
/** * sets the <code>meanSquaredWeightedDeviation</code> of this * <code>SampleDateModel</code> to argument * <code>meanSquaredWeightedDeviation</code>. * * @pre argument <code>meanSquaredWeightedDeviation</code> is a valid * <code>BigDecimal</code> * @post <code>meanSquaredWeightedDe...
sets the <code>meanSquaredWeightedDeviation</code> of this <code>SampleDateModel</code> to argument <code>meanSquaredWeightedDeviation</code>
setMeanSquaredWeightedDeviation
{ "repo_name": "johnzeringue/ET_Redux", "path": "src/main/java/org/earthtime/UPb_Redux/valueModels/SampleDateModel.java", "license": "apache-2.0", "size": 130389 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,773,925
public List<TypePojo> read(Locale locale, int offset, int size) { // 1. Define a map which holds the POJO objects List<TypePojo> pojos = new LinkedList<TypePojo>(); // 2. Define a list of model objects List<TypeModel> models = null; // 3. Define the named query String namedQuery = modelClass....
List<TypePojo> function(Locale locale, int offset, int size) { List<TypePojo> pojos = new LinkedList<TypePojo>(); List<TypeModel> models = null; String namedQuery = modelClass.getSimpleName() + STR; models = em.createNamedQuery( namedQuery, modelClass) .setFirstResult(offset) .setMaxResults(size) .getResultList(); for(...
/** * This is the default generic method which provides read access to the * selected database schema without sorting. It is almost the same routine * for all DAO classes to access the database. * * @param locale A Java.util locale objects. * @param offset the number where to start * @pa...
This is the default generic method which provides read access to the selected database schema without sorting. It is almost the same routine for all DAO classes to access the database
read
{ "repo_name": "PhilippE11/core", "path": "openinfra_core/src/main/java/de/btu/openinfra/backend/db/daos/OpenInfraDao.java", "license": "gpl-3.0", "size": 22554 }
[ "java.util.LinkedList", "java.util.List", "java.util.Locale" ]
import java.util.LinkedList; import java.util.List; import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
907,026
public EDI parse(String source) throws FormatException { if (source.length() < SIZE) { throw new FormatException(); } Context context = new Context(); context.setSegmentSeparator(source.charAt(POS_SEGMENT)); context.setElementSeparator(source.charAt(POS_ELEMENT)); context.setCompositeElementSeparator(...
EDI function(String source) throws FormatException { if (source.length() < SIZE) { throw new FormatException(); } Context context = new Context(); context.setSegmentSeparator(source.charAt(POS_SEGMENT)); context.setElementSeparator(source.charAt(POS_ELEMENT)); context.setCompositeElementSeparator(source.charAt(POS_COMP...
/** * The method takes a X12 string and converts it into a X2 object. The X12 * class has methods to convert it into XML format as well as methods to * modify the contents. * * @param source * String * @return the X12 object * @throws FormatException if any. */
The method takes a X12 string and converts it into a X2 object. The X12 class has methods to convert it into XML format as well as methods to modify the contents
parse
{ "repo_name": "ryanco/x12-parser", "path": "src/main/java/com/yarsquidy/x12/X12Parser.java", "license": "apache-2.0", "size": 7028 }
[ "java.util.Scanner" ]
import java.util.Scanner;
import java.util.*;
[ "java.util" ]
java.util;
1,284,750
protected void addDefaultServlets() { // set up default servlets addServlet("stacks", "/stacks", StackServlet.class); addServlet("logLevel", "/logLevel", LogLevel.Servlet.class); addServlet("metrics", "/metrics", MetricsServlet.class); addServlet("conf", "/conf", ConfServlet.class); }
void function() { addServlet(STR, STR, StackServlet.class); addServlet(STR, STR, LogLevel.Servlet.class); addServlet(STR, STR, MetricsServlet.class); addServlet("conf", "/conf", ConfServlet.class); }
/** * Add default servlets. */
Add default servlets
addDefaultServlets
{ "repo_name": "ekoontz/hadoop-common", "path": "src/java/org/apache/hadoop/http/HttpServer.java", "license": "apache-2.0", "size": 30106 }
[ "org.apache.hadoop.conf.ConfServlet", "org.apache.hadoop.log.LogLevel", "org.apache.hadoop.metrics.MetricsServlet" ]
import org.apache.hadoop.conf.ConfServlet; import org.apache.hadoop.log.LogLevel; import org.apache.hadoop.metrics.MetricsServlet;
import org.apache.hadoop.conf.*; import org.apache.hadoop.log.*; import org.apache.hadoop.metrics.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
170,763
public Observable<ServiceResponse<Page<AutoApprovedPrivateLinkServiceInner>>> listAutoApprovedPrivateLinkServicesByResourceGroupSinglePageAsync(final String location, final String resourceGroupName) { if (location == null) { throw new IllegalArgumentException("Parameter location is required and ...
Observable<ServiceResponse<Page<AutoApprovedPrivateLinkServiceInner>>> function(final String location, final String resourceGroupName) { if (location == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null...
/** * Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region. * ServiceResponse<PageImpl<AutoApprovedPrivateLinkServiceInner>> * @param location The location of the domain name. ServiceResponse<PageImpl<AutoApprovedPr...
Returns all of the private link service ids that can be linked to a Private Endpoint with auto approved in this subscription in this region
listAutoApprovedPrivateLinkServicesByResourceGroupSinglePageAsync
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_06_01/src/main/java/com/microsoft/azure/management/network/v2019_06_01/implementation/PrivateLinkServicesInner.java", "license": "mit", "size": 134068 }
[ "com.microsoft.azure.Page", "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse;
import com.microsoft.azure.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
1,480,191
@Override public QuadTreeKD0<double[]> getNative() { return phc; }
QuadTreeKD0<double[]> function() { return phc; }
/** * Used to test the native code during development process */
Used to test the native code during development process
getNative
{ "repo_name": "tzaeschke/TinSpin", "path": "src/main/java/ch/ethz/globis/tinspin/wrappers/PointQuad0Z.java", "license": "apache-2.0", "size": 4331 }
[ "org.tinspin.index.qtplain.QuadTreeKD0" ]
import org.tinspin.index.qtplain.QuadTreeKD0;
import org.tinspin.index.qtplain.*;
[ "org.tinspin.index" ]
org.tinspin.index;
516,588
@Field(1) public AVProfile name(Pointer<Byte > name) { this.io.setPointerField(this, 1, name); return this; } public AVProfile() { super(); } public AVProfile(Pointer pointer) { super(pointer); }
@Field(1) AVProfile function(Pointer<Byte > name) { this.io.setPointerField(this, 1, name); return this; } public AVProfile() { super(); } public AVProfile(Pointer pointer) { super(pointer); }
/** * < short name for the profile<br> * C type : const char* */
C type : const char
name
{ "repo_name": "mutars/java_libav", "path": "wrapper/src/main/java/com/mutar/libav/bridge/avcodec/AVProfile.java", "license": "gpl-2.0", "size": 1435 }
[ "org.bridj.Pointer", "org.bridj.ann.Field" ]
import org.bridj.Pointer; import org.bridj.ann.Field;
import org.bridj.*; import org.bridj.ann.*;
[ "org.bridj", "org.bridj.ann" ]
org.bridj; org.bridj.ann;
2,740,233
public void testClientReconnect() throws Exception { final Path igfsHome = new Path(primaryFsUri); final Path filePath = new Path(igfsHome, "someFile"); final FSDataOutputStream s = fs.create(filePath, EnumSet.noneOf(CreateFlag.class), Options.CreateOpts.perms(FsPermission.getD...
void function() throws Exception { final Path igfsHome = new Path(primaryFsUri); final Path filePath = new Path(igfsHome, STR); final FSDataOutputStream s = fs.create(filePath, EnumSet.noneOf(CreateFlag.class), Options.CreateOpts.perms(FsPermission.getDefault())); try { G.stopAll(true); startNodes(); fs.mkdir(new Path(...
/** * Verifies that client reconnects after connection to the server has been lost. * * @throws Exception If error occurs. */
Verifies that client reconnects after connection to the server has been lost
testClientReconnect
{ "repo_name": "agura/incubator-ignite", "path": "modules/hadoop/src/test/java/org/apache/ignite/igfs/HadoopIgfs20FileSystemAbstractSelfTest.java", "license": "apache-2.0", "size": 68253 }
[ "java.util.EnumSet", "org.apache.hadoop.fs.CreateFlag", "org.apache.hadoop.fs.FSDataOutputStream", "org.apache.hadoop.fs.Options", "org.apache.hadoop.fs.Path", "org.apache.hadoop.fs.permission.FsPermission", "org.apache.ignite.internal.util.typedef.G" ]
import java.util.EnumSet; import org.apache.hadoop.fs.CreateFlag; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.Options; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsPermission; import org.apache.ignite.internal.util.typedef.G;
import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.fs.permission.*; import org.apache.ignite.internal.util.typedef.*;
[ "java.util", "org.apache.hadoop", "org.apache.ignite" ]
java.util; org.apache.hadoop; org.apache.ignite;
254,123
private void calculateMaxWrapOverhead() { maxWrapOverhead = SSL.getMaxWrapOverhead(ssl); // maxWrapBufferSize must be set after maxWrapOverhead because there is a dependency on this value. // If jdkCompatibility mode is off we allow enough space to encrypt 16 buffers at a time. This could b...
void function() { maxWrapOverhead = SSL.getMaxWrapOverhead(ssl); maxWrapBufferSize = jdkCompatibilityMode ? maxEncryptedPacketLength0() : maxEncryptedPacketLength0() << 4; }
/** * It is assumed this method is called in a synchronized block (or the constructor)! */
It is assumed this method is called in a synchronized block (or the constructor)
calculateMaxWrapOverhead
{ "repo_name": "chanakaudaya/netty", "path": "handler/src/main/java/io/netty/handler/ssl/ReferenceCountedOpenSslEngine.java", "license": "apache-2.0", "size": 92971 }
[ "io.netty.internal.tcnative.SSL" ]
import io.netty.internal.tcnative.SSL;
import io.netty.internal.tcnative.*;
[ "io.netty.internal" ]
io.netty.internal;
1,200,168
Vertex[] createEdges(final List<Relationship> links, final LinkedList<String> peopleList) throws UNISoNException { final Vertex[] v = new Vertex[peopleList.size()]; for (int i = 0; i < peopleList.size(); i++) { v[i] = this.graph.addVertex(new UsenetVertex(peopleList.get(i))); } for (final Relatio...
Vertex[] createEdges(final List<Relationship> links, final LinkedList<String> peopleList) throws UNISoNException { final Vertex[] v = new Vertex[peopleList.size()]; for (int i = 0; i < peopleList.size(); i++) { v[i] = this.graph.addVertex(new UsenetVertex(peopleList.get(i))); } for (final Relationship link : links) { t...
/** * create edges for this demo graph. * * @param links * the links * @param peopleList * the people list * @return the vertex[] * @throws UNISoNException * the UNI so n exception */
create edges for this demo graph
createEdges
{ "repo_name": "leonarduk/unison", "path": "src/main/java/uk/co/sleonard/unison/gui/GraphPreviewPanel.java", "license": "apache-2.0", "size": 7420 }
[ "edu.uci.ics.jung.graph.Vertex", "edu.uci.ics.jung.graph.decorators.VertexStringer", "edu.uci.ics.jung.graph.impl.DirectedSparseEdge", "java.util.HashMap", "java.util.LinkedList", "java.util.List", "java.util.Map", "uk.co.sleonard.unison.UNISoNException", "uk.co.sleonard.unison.output.Relationship" ...
import edu.uci.ics.jung.graph.Vertex; import edu.uci.ics.jung.graph.decorators.VertexStringer; import edu.uci.ics.jung.graph.impl.DirectedSparseEdge; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import uk.co.sleonard.unison.UNISoNException; import uk.co.sleonard.un...
import edu.uci.ics.jung.graph.*; import edu.uci.ics.jung.graph.decorators.*; import edu.uci.ics.jung.graph.impl.*; import java.util.*; import uk.co.sleonard.unison.*; import uk.co.sleonard.unison.output.*;
[ "edu.uci.ics", "java.util", "uk.co.sleonard" ]
edu.uci.ics; java.util; uk.co.sleonard;
2,587,696
@Override public void shutdown(RestExpress server) { // Do nothing (no resources allocated that need releasing). } // SECTION: MESSAGE OBSERVER
void function(RestExpress server) { }
/** * Called on RestExpress shutdown. */
Called on RestExpress shutdown
shutdown
{ "repo_name": "michaelholstine/PluginExpress", "path": "metrics/src/main/java/com/strategicgains/restexpress/plugin/metrics/MetricsPlugin.java", "license": "apache-2.0", "size": 8671 }
[ "org.restexpress.RestExpress" ]
import org.restexpress.RestExpress;
import org.restexpress.*;
[ "org.restexpress" ]
org.restexpress;
2,272,045
Map<Character, Set<Character>> map = new HashMap<>(); Map<Character, Integer> degree = new HashMap<>(); String result = ""; if (words == null || words.length == 0) { return result; } for (String s : words) { for (char c : s.toCh...
Map<Character, Set<Character>> map = new HashMap<>(); Map<Character, Integer> degree = new HashMap<>(); String result = STRSTR"; } return result; } }
/** * reference: https://discuss.leetcode.com/topic/28308/java-ac-solution-using-bfs */
reference: HREF
alienOrder
{ "repo_name": "fishercoder1534/Leetcode", "path": "src/main/java/com/fishercoder/solutions/_269.java", "license": "apache-2.0", "size": 2628 }
[ "java.util.HashMap", "java.util.Map", "java.util.Set" ]
import java.util.HashMap; import java.util.Map; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
716,179
@ApiModelProperty(example = "null", value = "description string") public String getDescription() { return description; }
@ApiModelProperty(example = "null", value = STR) String function() { return description; }
/** * description string * * @return description **/
description string
getDescription
{ "repo_name": "GoldenGnu/eve-esi", "path": "src/main/java/net/troja/eve/esi/model/CorporationResponse.java", "license": "apache-2.0", "size": 11264 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
136,365
public static void add(Class<?>... components) { Arrays.stream(components).forEach(c -> COMPONENTS.put(c, c)); }
static void function(Class<?>... components) { Arrays.stream(components).forEach(c -> COMPONENTS.put(c, c)); }
/** * Adds the given components classes to the injectable ones * * @param components */
Adds the given components classes to the injectable ones
add
{ "repo_name": "torakiki/sejda-injector", "path": "src/main/java/org/pdfsam/injector/Injector.java", "license": "apache-2.0", "size": 14553 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,920,482
private void createPointFeatures(ReferencedEnvelope env, int count) { for (int i = 0; i < count; i++) { double x = WORLD.getMinX() + rand.nextDouble() * WORLD.getWidth(); double y = WORLD.getMinY() + rand.nextDouble() * WORLD.getHeight(); featureList.add(createPointFeatur...
void function(ReferencedEnvelope env, int count) { for (int i = 0; i < count; i++) { double x = WORLD.getMinX() + rand.nextDouble() * WORLD.getWidth(); double y = WORLD.getMinY() + rand.nextDouble() * WORLD.getHeight(); featureList.add(createPointFeature(x, y)); } featureCollection = new ListFeatureCollection(TYPE, fea...
/** * Creates {@code count} point features positioned randomly in the given envelope. * * @param env bounding envelope * @param count number of features to create */
Creates count point features positioned randomly in the given envelope
createPointFeatures
{ "repo_name": "geotools/geotools", "path": "modules/library/main/src/test/java/org/geotools/data/collection/ListFeatureCollectionTest.java", "license": "lgpl-2.1", "size": 9676 }
[ "org.geotools.geometry.jts.ReferencedEnvelope" ]
import org.geotools.geometry.jts.ReferencedEnvelope;
import org.geotools.geometry.jts.*;
[ "org.geotools.geometry" ]
org.geotools.geometry;
2,359,023
public HRegionServer getRegionServer(int serverNumber) { return hbaseCluster.getRegionServer(serverNumber); }
HRegionServer function(int serverNumber) { return hbaseCluster.getRegionServer(serverNumber); }
/** * Grab a numbered region server of your choice. * @param serverNumber * @return region server */
Grab a numbered region server of your choice
getRegionServer
{ "repo_name": "HubSpot/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/MiniHBaseCluster.java", "license": "apache-2.0", "size": 32736 }
[ "org.apache.hadoop.hbase.regionserver.HRegionServer" ]
import org.apache.hadoop.hbase.regionserver.HRegionServer;
import org.apache.hadoop.hbase.regionserver.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,567,823
public void performTranslogRecovery(boolean indexExists) throws IOException { if (indexExists == false) { // note: these are set when recovering from the translog final RecoveryState.Translog translogStats = recoveryState().getTranslog(); translogStats.totalOperations(0);...
void function(boolean indexExists) throws IOException { if (indexExists == false) { final RecoveryState.Translog translogStats = recoveryState().getTranslog(); translogStats.totalOperations(0); translogStats.totalOperationsOnStart(0); } internalPerformTranslogRecovery(false, indexExists); assert recoveryState.getStage(...
/** * After the store has been recovered, we need to start the engine in order to apply operations */
After the store has been recovered, we need to start the engine in order to apply operations
performTranslogRecovery
{ "repo_name": "nomoa/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/shard/IndexShard.java", "license": "apache-2.0", "size": 69198 }
[ "java.io.IOException", "org.elasticsearch.index.translog.Translog", "org.elasticsearch.indices.recovery.RecoveryState" ]
import java.io.IOException; import org.elasticsearch.index.translog.Translog; import org.elasticsearch.indices.recovery.RecoveryState;
import java.io.*; import org.elasticsearch.index.translog.*; import org.elasticsearch.indices.recovery.*;
[ "java.io", "org.elasticsearch.index", "org.elasticsearch.indices" ]
java.io; org.elasticsearch.index; org.elasticsearch.indices;
949,268
void putNextGroup(Integer nextId, NextGroup group);
void putNextGroup(Integer nextId, NextGroup group);
/** * Adds a NextGroup to the store, by mapping it to the nextId as key, * and replacing any previous mapping. * * @param nextId an integer * @param group a next group opaque object */
Adds a NextGroup to the store, by mapping it to the nextId as key, and replacing any previous mapping
putNextGroup
{ "repo_name": "sonu283304/onos", "path": "core/api/src/main/java/org/onosproject/net/flowobjective/FlowObjectiveStore.java", "license": "apache-2.0", "size": 1882 }
[ "org.onosproject.net.behaviour.NextGroup" ]
import org.onosproject.net.behaviour.NextGroup;
import org.onosproject.net.behaviour.*;
[ "org.onosproject.net" ]
org.onosproject.net;
1,669,018
public Iterator enumeratePropertyNames() { return this.enumerateAttributeNames(); }
Iterator function() { return this.enumerateAttributeNames(); }
/** * Enumerates the attribute names. * * @deprecated Use {@link #enumerateAttributeNames() * enumerateAttributeNames} instead. */
Enumerates the attribute names
enumeratePropertyNames
{ "repo_name": "TheProjecter/sharedmind", "path": "freemind/main/XMLElement.java", "license": "gpl-2.0", "size": 102420 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,861,041
public static String getFamilyPath(Configuration jc, Properties tableProps) { return jc.get(HFILE_FAMILY_PATH, tableProps.getProperty(HFILE_FAMILY_PATH)); }
static String function(Configuration jc, Properties tableProps) { return jc.get(HFILE_FAMILY_PATH, tableProps.getProperty(HFILE_FAMILY_PATH)); }
/** * Retrieve the family path, first check the JobConf, then the table properties. * @return the family path or null if not specified. */
Retrieve the family path, first check the JobConf, then the table properties
getFamilyPath
{ "repo_name": "BUPTAnderson/apache-hive-2.1.1-src", "path": "hbase-handler/src/java/org/apache/hadoop/hive/hbase/HiveHFileOutputFormat.java", "license": "apache-2.0", "size": 10369 }
[ "java.util.Properties", "org.apache.hadoop.conf.Configuration" ]
import java.util.Properties; import org.apache.hadoop.conf.Configuration;
import java.util.*; import org.apache.hadoop.conf.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,043,709
public Collection<Entity> getEntitiesByConfidenceValue( final Double confidenceValue) { final Collection<EntityAnnotation> sortedEas = getEntityAnnotationsByConfidenceValue(confidenceValue);
Collection<Entity> function( final Double confidenceValue) { final Collection<EntityAnnotation> sortedEas = getEntityAnnotationsByConfidenceValue(confidenceValue);
/** * Returns a {@link Collection} of {@link Entity}s for which associated * {@link EntityAnnotation}s has a confidence value greater than or equal to * the value passed by parameter * * @param confidenceValue * Threshold confidence value * @return */
Returns a <code>Collection</code> of <code>Entity</code>s for which associated <code>EntityAnnotation</code>s has a confidence value greater than or equal to the value passed by parameter
getEntitiesByConfidenceValue
{ "repo_name": "zaizi/apache-stanbol-client", "path": "src/main/java/org/apache/stanbol/client/enhancer/model/EnhancementStructure.java", "license": "apache-2.0", "size": 19038 }
[ "java.util.Collection", "org.apache.stanbol.client.entityhub.model.Entity" ]
import java.util.Collection; import org.apache.stanbol.client.entityhub.model.Entity;
import java.util.*; import org.apache.stanbol.client.entityhub.model.*;
[ "java.util", "org.apache.stanbol" ]
java.util; org.apache.stanbol;
1,324,300
@Override ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException { ValueNode leftClone1; ValueNode rightOperand; super.preprocess(numTables, outerFromList, outerSubqu...
ValueNode preprocess(int numTables, FromList outerFromList, SubqueryList outerSubqueryList, PredicateList outerPredicateList) throws StandardException { ValueNode leftClone1; ValueNode rightOperand; super.preprocess(numTables, outerFromList, outerSubqueryList, outerPredicateList); if (!(leftOperand instanceof ColumnRef...
/** * Preprocess an expression tree. We do a number of transformations * here (including subqueries, IN lists, LIKE and BETWEEN) plus * subquery flattening. * NOTE: This is done before the outer ResultSetNode is preprocessed. * * @param numTables Number of tables in the DML Statement * @param outerFrom...
Preprocess an expression tree. We do a number of transformations here (including subqueries, IN lists, LIKE and BETWEEN) plus subquery flattening
preprocess
{ "repo_name": "scnakandala/derby", "path": "java/engine/org/apache/derby/impl/sql/compile/BetweenOperatorNode.java", "license": "apache-2.0", "size": 9603 }
[ "org.apache.derby.iapi.error.StandardException", "org.apache.derby.iapi.services.context.ContextManager" ]
import org.apache.derby.iapi.error.StandardException; import org.apache.derby.iapi.services.context.ContextManager;
import org.apache.derby.iapi.error.*; import org.apache.derby.iapi.services.context.*;
[ "org.apache.derby" ]
org.apache.derby;
68,090
@Override public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; }
boolean function(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; }
/** * Returns whether this factory is applicable for the type of the object. * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. * <!-- end-user-doc --> * @return whether this factory is applicable for the...
Returns whether this factory is applicable for the type of the object. This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
isFactoryForType
{ "repo_name": "nhnghia/schora", "path": "src/fr/lri/schora/expr/util/ExprAdapterFactory.java", "license": "gpl-2.0", "size": 16081 }
[ "org.eclipse.emf.ecore.EObject" ]
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
971,794
public FactLine createLine (DocLine docLine, MAccount accountDr, MAccount accountCr, int C_Currency_ID, BigDecimal Amt) { if (Amt.signum() < 0) return createLine (docLine, accountCr, C_Currency_ID, null, Amt.abs()); else return createLine (docLine, accountDr, C_Currency_ID, Amt, null); } // c...
FactLine function (DocLine docLine, MAccount accountDr, MAccount accountCr, int C_Currency_ID, BigDecimal Amt) { if (Amt.signum() < 0) return createLine (docLine, accountCr, C_Currency_ID, null, Amt.abs()); else return createLine (docLine, accountDr, C_Currency_ID, Amt, null); }
/** * Create and convert Fact Line. * Used to create either a DR or CR entry * * @param docLine Document Line or null * @param accountDr Account to be used if Amt is DR balance * @param accountCr Account to be used if Amt is CR balance * @param C_Currency_ID Currency * @param A...
Create and convert Fact Line. Used to create either a DR or CR entry
createLine
{ "repo_name": "erpcya/adempierePOS", "path": "base/src/org/compiere/acct/Fact.java", "license": "gpl-2.0", "size": 27700 }
[ "java.math.BigDecimal", "org.compiere.model.MAccount" ]
import java.math.BigDecimal; import org.compiere.model.MAccount;
import java.math.*; import org.compiere.model.*;
[ "java.math", "org.compiere.model" ]
java.math; org.compiere.model;
2,303,415
void mail() throws IOException;
void mail() throws IOException;
/** * Launches the mail composing window of the user default mail client. * * @throws IOException if the user default mail client is not found, or it fails to be launched */
Launches the mail composing window of the user default mail client
mail
{ "repo_name": "ivannov/core", "path": "ui/api/src/main/java/org/jboss/forge/addon/ui/UIDesktop.java", "license": "epl-1.0", "size": 3236 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,745,735
public boolean isFade() { return StyleHelper.containsStyle(getStyleName(), Styles.FADE); }
boolean function() { return StyleHelper.containsStyle(getStyleName(), Styles.FADE); }
/** * Returns if the alert will fade out before it is removed * * @return true = alert will fade out, false = alert won't fade out */
Returns if the alert will fade out before it is removed
isFade
{ "repo_name": "FrankW76/gwtbootstrap3", "path": "gwtbootstrap3/src/main/java/org/gwtbootstrap3/client/ui/Alert.java", "license": "apache-2.0", "size": 7352 }
[ "org.gwtbootstrap3.client.ui.base.helper.StyleHelper", "org.gwtbootstrap3.client.ui.constants.Styles" ]
import org.gwtbootstrap3.client.ui.base.helper.StyleHelper; import org.gwtbootstrap3.client.ui.constants.Styles;
import org.gwtbootstrap3.client.ui.base.helper.*; import org.gwtbootstrap3.client.ui.constants.*;
[ "org.gwtbootstrap3.client" ]
org.gwtbootstrap3.client;
550,741
public ResultCollector executeFunction(final DistributedRegionFunctionExecutor execution, final Function function, final Object args, final ResultCollector rc, final Set filter, final ServerToClientFunctionResultSender sender) { if (function.optimizeForWrite() && this.memoryThresholdReached.get() ...
ResultCollector function(final DistributedRegionFunctionExecutor execution, final Function function, final Object args, final ResultCollector rc, final Set filter, final ServerToClientFunctionResultSender sender) { if (function.optimizeForWrite() && this.memoryThresholdReached.get() && !MemoryThresholds.isLowMemoryExce...
/** * Execute the provided named function in all locations that contain the given keys. So function * can be executed on just one fabric node, executed in parallel on a subset of nodes in parallel * across all the nodes. * * @since GemFire 5.8Beta */
Execute the provided named function in all locations that contain the given keys. So function can be executed on just one fabric node, executed in parallel on a subset of nodes in parallel across all the nodes
executeFunction
{ "repo_name": "charliemblack/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/LocalRegion.java", "license": "apache-2.0", "size": 428144 }
[ "java.util.Collections", "java.util.Set", "org.apache.geode.cache.LowMemoryException", "org.apache.geode.cache.control.ResourceManager", "org.apache.geode.cache.execute.Function", "org.apache.geode.cache.execute.ResultCollector", "org.apache.geode.distributed.DistributedMember", "org.apache.geode.inte...
import java.util.Collections; import java.util.Set; import org.apache.geode.cache.LowMemoryException; import org.apache.geode.cache.control.ResourceManager; import org.apache.geode.cache.execute.Function; import org.apache.geode.cache.execute.ResultCollector; import org.apache.geode.distributed.DistributedMember; impor...
import java.util.*; import org.apache.geode.cache.*; import org.apache.geode.cache.control.*; import org.apache.geode.cache.execute.*; import org.apache.geode.distributed.*; import org.apache.geode.internal.cache.control.*; import org.apache.geode.internal.cache.execute.*; import org.apache.geode.internal.i18n.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
1,883,749
@IgniteSpiConfiguration(optional = true) public TcpDiscoverySpi setIpFinder(TcpDiscoveryIpFinder ipFinder) { this.ipFinder = ipFinder; return this; }
@IgniteSpiConfiguration(optional = true) TcpDiscoverySpi function(TcpDiscoveryIpFinder ipFinder) { this.ipFinder = ipFinder; return this; }
/** * Sets IP finder for IP addresses sharing and storing. * <p> * If not provided {@link org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder} will * be used by default. * * @param ipFinder IP finder. * @return {@code this} for chaining. */
Sets IP finder for IP addresses sharing and storing. If not provided <code>org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder</code> will be used by default
setIpFinder
{ "repo_name": "WilliamDo/ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java", "license": "apache-2.0", "size": 78331 }
[ "org.apache.ignite.spi.IgniteSpiConfiguration", "org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder" ]
import org.apache.ignite.spi.IgniteSpiConfiguration; import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
import org.apache.ignite.spi.*; import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,513,129
static <T> void assertMapVisitor( Key<T> mapKey, TypeLiteral<?> keyType, TypeLiteral<?> valueType, Iterable<? extends Module> modules, VisitType visitType, boolean allowDuplicates, int expectedMapBindings, MapResult<?, ?>... results) { if (visitType == null) { ...
static <T> void assertMapVisitor( Key<T> mapKey, TypeLiteral<?> keyType, TypeLiteral<?> valueType, Iterable<? extends Module> modules, VisitType visitType, boolean allowDuplicates, int expectedMapBindings, MapResult<?, ?>... results) { if (visitType == null) { fail(STR); } if (visitType == BOTH visitType == INJECTOR) {...
/** * Asserts that MapBinderBinding visitors for work correctly. * * @param <T> The type of the binding * @param mapKey The key the map belongs to. * @param keyType the TypeLiteral of the key of the map * @param valueType the TypeLiteral of the value of the map * @param modules The modules that def...
Asserts that MapBinderBinding visitors for work correctly
assertMapVisitor
{ "repo_name": "mcculls/guice", "path": "core/test/com/google/inject/internal/SpiUtils.java", "license": "apache-2.0", "size": 54923 }
[ "com.google.inject.Key", "com.google.inject.Module", "com.google.inject.TypeLiteral", "junit.framework.Assert" ]
import com.google.inject.Key; import com.google.inject.Module; import com.google.inject.TypeLiteral; import junit.framework.Assert;
import com.google.inject.*; import junit.framework.*;
[ "com.google.inject", "junit.framework" ]
com.google.inject; junit.framework;
2,608,092
@Nonnull public List<RealtimeSegmentZKMetadata> getRealtimeSegmentsMetadata(@Nonnull String realtimeTableName) { Preconditions.checkArgument(TableNameBuilder.REALTIME.tableHasTypeSuffix(realtimeTableName)); return ZKMetadataProvider.getRealtimeSegmentZKMetadataListForTable(_pinotHelixResourceManager.getProp...
List<RealtimeSegmentZKMetadata> function(@Nonnull String realtimeTableName) { Preconditions.checkArgument(TableNameBuilder.REALTIME.tableHasTypeSuffix(realtimeTableName)); return ZKMetadataProvider.getRealtimeSegmentZKMetadataListForTable(_pinotHelixResourceManager.getPropertyStore(), realtimeTableName); }
/** * Get all segments' metadata for the given REALTIME table name. * * @param realtimeTableName Realtime table name * @return List of segments' metadata */
Get all segments' metadata for the given REALTIME table name
getRealtimeSegmentsMetadata
{ "repo_name": "apucher/pinot", "path": "pinot-controller/src/main/java/com/linkedin/pinot/controller/helix/core/minion/ClusterInfoProvider.java", "license": "apache-2.0", "size": 4883 }
[ "com.google.common.base.Preconditions", "com.linkedin.pinot.common.config.TableNameBuilder", "com.linkedin.pinot.common.metadata.ZKMetadataProvider", "com.linkedin.pinot.common.metadata.segment.RealtimeSegmentZKMetadata", "java.util.List", "javax.annotation.Nonnull" ]
import com.google.common.base.Preconditions; import com.linkedin.pinot.common.config.TableNameBuilder; import com.linkedin.pinot.common.metadata.ZKMetadataProvider; import com.linkedin.pinot.common.metadata.segment.RealtimeSegmentZKMetadata; import java.util.List; import javax.annotation.Nonnull;
import com.google.common.base.*; import com.linkedin.pinot.common.config.*; import com.linkedin.pinot.common.metadata.*; import com.linkedin.pinot.common.metadata.segment.*; import java.util.*; import javax.annotation.*;
[ "com.google.common", "com.linkedin.pinot", "java.util", "javax.annotation" ]
com.google.common; com.linkedin.pinot; java.util; javax.annotation;
442,518
public static EnumSet<FileAttribute> unpackAttributes(String attributes) { EnumSet<FileAttribute> retValue = EnumSet.noneOf(FileAttribute.class); if (attributes != null) { for (int index = 0; index < attributes.length(); index++) { retValue.add(FileAttribute.getAttribute(attributes.charAt(index...
static EnumSet<FileAttribute> function(String attributes) { EnumSet<FileAttribute> retValue = EnumSet.noneOf(FileAttribute.class); if (attributes != null) { for (int index = 0; index < attributes.length(); index++) { retValue.add(FileAttribute.getAttribute(attributes.charAt(index))); } } return retValue; }
/** * Unpacks preservation attribute string containing the first character of * each preservation attribute back to a set of attributes to preserve * @param attributes - Attribute string * @return - Attribute set */
Unpacks preservation attribute string containing the first character of each preservation attribute back to a set of attributes to preserve
unpackAttributes
{ "repo_name": "apurtell/hadoop", "path": "hadoop-tools/hadoop-distcp/src/main/java/org/apache/hadoop/tools/util/DistCpUtils.java", "license": "apache-2.0", "size": 26119 }
[ "java.util.EnumSet", "org.apache.hadoop.tools.DistCpOptions" ]
import java.util.EnumSet; import org.apache.hadoop.tools.DistCpOptions;
import java.util.*; import org.apache.hadoop.tools.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
765,578
public void onLibrariesDownloaded(@NotNull final Iterable<LibraryRef> libraries) { // TODO(skybrian) what should we do if this gets called multiple times? // This happens when there is more than one isolate. // Currently it overwrites the previous value. // Calculate the remote source root. for (...
void function(@NotNull final Iterable<LibraryRef> libraries) { for (LibraryRef library : libraries) { final String remoteUri = library.getUri(); if (remoteUri.startsWith(DartUrlResolver.DART_PREFIX)) continue; if (remoteUri.startsWith(DartUrlResolver.PACKAGE_PREFIX)) continue; remoteSourceRoot = findRemoteSourceRoot(re...
/** * Just after connecting, the debugger downloads the list of Dart libraries from Observatory and reports it here. */
Just after connecting, the debugger downloads the list of Dart libraries from Observatory and reports it here
onLibrariesDownloaded
{ "repo_name": "flutter/flutter-intellij", "path": "flutter-idea/src/io/flutter/run/FlutterPositionMapper.java", "license": "bsd-3-clause", "size": 14320 }
[ "com.jetbrains.lang.dart.util.DartUrlResolver", "org.dartlang.vm.service.element.LibraryRef", "org.jetbrains.annotations.NotNull" ]
import com.jetbrains.lang.dart.util.DartUrlResolver; import org.dartlang.vm.service.element.LibraryRef; import org.jetbrains.annotations.NotNull;
import com.jetbrains.lang.dart.util.*; import org.dartlang.vm.service.element.*; import org.jetbrains.annotations.*;
[ "com.jetbrains.lang", "org.dartlang.vm", "org.jetbrains.annotations" ]
com.jetbrains.lang; org.dartlang.vm; org.jetbrains.annotations;
1,952,782
@Override public String toString() { return Strings.toString(getClass(), null, dialect, "dbFile", dbFile, "source", source); }
String function() { return Strings.toString(getClass(), null, dialect, STR, dbFile, STR, source); }
/** * Returns a string representation for debugging purpose. * * @return an arbitrary string representation. */
Returns a string representation for debugging purpose
toString
{ "repo_name": "apache/sis", "path": "core/sis-metadata/src/main/java/org/apache/sis/internal/metadata/sql/LocalDataSource.java", "license": "apache-2.0", "size": 19814 }
[ "org.apache.sis.internal.util.Strings" ]
import org.apache.sis.internal.util.Strings;
import org.apache.sis.internal.util.*;
[ "org.apache.sis" ]
org.apache.sis;
287,195
@Test public void testDefaultRecordDelimiters() throws IOException, InterruptedException, ClassNotFoundException { Configuration conf = new Configuration(); FileSystem localFs = FileSystem.getLocal(conf); // cleanup localFs.delete(workDir, true); // creating input test file createInput...
void function() throws IOException, InterruptedException, ClassNotFoundException { Configuration conf = new Configuration(); FileSystem localFs = FileSystem.getLocal(conf); localFs.delete(workDir, true); createInputFile(conf); createAndRunJob(conf); String expected = STR; this.assertEquals(expected, readOutputFile(conf...
/** * Test the default behavior when the textinputformat.record.delimiter * configuration property is not specified * * @throws IOException * @throws InterruptedException * @throws ClassNotFoundException */
Test the default behavior when the textinputformat.record.delimiter configuration property is not specified
testDefaultRecordDelimiters
{ "repo_name": "rekhajoshm/mapreduce-fork", "path": "src/test/mapred/org/apache/hadoop/mapreduce/lib/input/TestLineRecordReader.java", "license": "apache-2.0", "size": 4631 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FileSystem" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
957,263
public PrimaryKeyForeignKeyMetadata getPrimaryKeyForeignKey() { return m_primaryKeyForeignKey; }
PrimaryKeyForeignKeyMetadata function() { return m_primaryKeyForeignKey; }
/** * INTERNAL: * Used for OX mapping. */
Used for OX mapping
getPrimaryKeyForeignKey
{ "repo_name": "bfg-repo-cleaner-demos/eclipselink.runtime-bfg-strip-big-blobs", "path": "jpa/org.eclipse.persistence.jpa/src/org/eclipse/persistence/internal/jpa/metadata/accessors/classes/EntityAccessor.java", "license": "epl-1.0", "size": 69251 }
[ "org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyForeignKeyMetadata" ]
import org.eclipse.persistence.internal.jpa.metadata.columns.PrimaryKeyForeignKeyMetadata;
import org.eclipse.persistence.internal.jpa.metadata.columns.*;
[ "org.eclipse.persistence" ]
org.eclipse.persistence;
2,217,421
private JTextField createTextField() { JTextField field = new JTextField(30); field.setUI(new BasicTextFieldUI()); field.setBorder(new TextFieldBorder()); field.addActionListener(listener); field.addKeyListener(listener); field.getDocument().addDocumentListener(listener); return field; }
JTextField function() { JTextField field = new JTextField(30); field.setUI(new BasicTextFieldUI()); field.setBorder(new TextFieldBorder()); field.addActionListener(listener); field.addKeyListener(listener); field.getDocument().addDocumentListener(listener); return field; }
/** * Creates the text field allowing the user to enter filter text. * * @return The text field. */
Creates the text field allowing the user to enter filter text
createTextField
{ "repo_name": "ZenHarbinger/RSTALanguageSupport", "path": "src/main/java/org/fife/rsta/ac/GoToMemberWindow.java", "license": "bsd-3-clause", "size": 7749 }
[ "javax.swing.JTextField", "javax.swing.plaf.basic.BasicTextFieldUI" ]
import javax.swing.JTextField; import javax.swing.plaf.basic.BasicTextFieldUI;
import javax.swing.*; import javax.swing.plaf.basic.*;
[ "javax.swing" ]
javax.swing;
2,841,681
public void test0411() throws JavaModelException { ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0411", "A.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ ASTNode result = runConversion(getJLS3(), sourceUnit, true); assertEquals("Wrong number of problems", 0, ((Comp...
void function() throws JavaModelException { ICompilationUnit sourceUnit = getCompilationUnit(STR , "src", STR, STR); ASTNode result = runConversion(getJLS3(), sourceUnit, true); assertEquals(STR, 0, ((CompilationUnit) result).getProblems().length); ASTNode node = getASTNode((CompilationUnit) result, 0, 0, 0); assertNot...
/** * Test for message on jdt-core-dev */
Test for message on jdt-core-dev
test0411
{ "repo_name": "maxeler/eclipse", "path": "eclipse.jdt.core/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java", "license": "epl-1.0", "size": 517286 }
[ "java.util.List", "org.eclipse.jdt.core.ICompilationUnit", "org.eclipse.jdt.core.JavaModelException", "org.eclipse.jdt.core.dom.ASTNode", "org.eclipse.jdt.core.dom.CompilationUnit", "org.eclipse.jdt.core.dom.Expression", "org.eclipse.jdt.core.dom.InfixExpression", "org.eclipse.jdt.core.dom.ReturnState...
import java.util.List; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jdt.core.dom.ASTNode; import org.eclipse.jdt.core.dom.CompilationUnit; import org.eclipse.jdt.core.dom.Expression; import org.eclipse.jdt.core.dom.InfixExpression; import org.eclipse.j...
import java.util.*; import org.eclipse.jdt.core.*; import org.eclipse.jdt.core.dom.*;
[ "java.util", "org.eclipse.jdt" ]
java.util; org.eclipse.jdt;
2,249,306
public void decPublishedBlogArticleCount() throws JSONException, RepositoryException { final JSONObject statistic = statisticRepository.get(Statistic.STATISTIC); if (null == statistic) { throw new RepositoryException("Not found statistic"); } statistic.put(Statistic.STA...
void function() throws JSONException, RepositoryException { final JSONObject statistic = statisticRepository.get(Statistic.STATISTIC); if (null == statistic) { throw new RepositoryException(STR); } statistic.put(Statistic.STATISTIC_PUBLISHED_ARTICLE_COUNT, statistic.getInt(Statistic.STATISTIC_PUBLISHED_ARTICLE_COUNT) -...
/** * Blog statistic published article count -1. * * @throws JSONException json exception * @throws RepositoryException repository exception */
Blog statistic published article count -1
decPublishedBlogArticleCount
{ "repo_name": "AndiHappy/solo", "path": "src/main/java/org/b3log/solo/service/StatisticMgmtService.java", "license": "apache-2.0", "size": 13863 }
[ "org.b3log.latke.repository.RepositoryException", "org.b3log.solo.model.Statistic", "org.json.JSONException", "org.json.JSONObject" ]
import org.b3log.latke.repository.RepositoryException; import org.b3log.solo.model.Statistic; import org.json.JSONException; import org.json.JSONObject;
import org.b3log.latke.repository.*; import org.b3log.solo.model.*; import org.json.*;
[ "org.b3log.latke", "org.b3log.solo", "org.json" ]
org.b3log.latke; org.b3log.solo; org.json;
760,033
@Test() public void testMatchingRuleUseObsolete() throws Exception { final Entry schemaEntry = minimalSchemaEntry.duplicate(); schemaEntry.addAttribute(Schema.ATTR_MATCHING_RULE_USE, "( 1.3.6.1.4.1.1466.109.114.2 NAME 'test-mru' OBSOLETE APPLIES dc )"); final File schemaFile = creat...
@Test() void function() throws Exception { final Entry schemaEntry = minimalSchemaEntry.duplicate(); schemaEntry.addAttribute(Schema.ATTR_MATCHING_RULE_USE, STR); final File schemaFile = createTempFile(schemaEntry.toLDIF()); SchemaValidator schemaValidator = new SchemaValidator(); assertTrue(schemaValidator.allowObsole...
/** * Tests the behavior for a schema entry that has a matching rule use that is * declared OBSOLETE. * * @throws Exception If an unexpected problem occurs. */
Tests the behavior for a schema entry that has a matching rule use that is declared OBSOLETE
testMatchingRuleUseObsolete
{ "repo_name": "UnboundID/ldapsdk", "path": "tests/unit/src/com/unboundid/ldap/sdk/schema/SchemaValidatorTestCase.java", "license": "gpl-2.0", "size": 262381 }
[ "com.unboundid.ldap.sdk.Entry", "com.unboundid.util.StaticUtils", "java.io.File", "java.util.ArrayList", "java.util.List", "org.testng.annotations.Test" ]
import com.unboundid.ldap.sdk.Entry; import com.unboundid.util.StaticUtils; import java.io.File; import java.util.ArrayList; import java.util.List; import org.testng.annotations.Test;
import com.unboundid.ldap.sdk.*; import com.unboundid.util.*; import java.io.*; import java.util.*; import org.testng.annotations.*;
[ "com.unboundid.ldap", "com.unboundid.util", "java.io", "java.util", "org.testng.annotations" ]
com.unboundid.ldap; com.unboundid.util; java.io; java.util; org.testng.annotations;
932,398
public static boolean checkCallbackValid(final @NonNull RegisteredService registeredService, final String redirectUri) { val registeredServiceId = registeredService.getServiceId(); LOGGER.debug("Found: [{}] vs redirectUri: [{}]", registeredService, redirectUri); if (!redirectUri.matches(reg...
static boolean function(final @NonNull RegisteredService registeredService, final String redirectUri) { val registeredServiceId = registeredService.getServiceId(); LOGGER.debug(STR, registeredService, redirectUri); if (!redirectUri.matches(registeredServiceId)) { LOGGER.error(STR + STR + STR, OAuth20Constants.REDIRECT_...
/** * Check if the callback url is valid. * * @param registeredService the registered service * @param redirectUri the callback url * @return whether the callback url is valid */
Check if the callback url is valid
checkCallbackValid
{ "repo_name": "leleuj/cas", "path": "support/cas-server-support-oauth-core-api/src/main/java/org/apereo/cas/support/oauth/util/OAuth20Utils.java", "license": "apache-2.0", "size": 21028 }
[ "org.apereo.cas.services.RegisteredService", "org.apereo.cas.support.oauth.OAuth20Constants" ]
import org.apereo.cas.services.RegisteredService; import org.apereo.cas.support.oauth.OAuth20Constants;
import org.apereo.cas.services.*; import org.apereo.cas.support.oauth.*;
[ "org.apereo.cas" ]
org.apereo.cas;
2,299,741
private Element composeFieldItemList(JRSTLexer lexer) throws Exception { Element item = lexer.peekFieldList(); if (itemEquals(FIELD_LIST, item)) { lexer.remove(); Element field = DocumentHelper.createElement(FIELD); copyLevel(item, field); Element fiel...
Element function(JRSTLexer lexer) throws Exception { Element item = lexer.peekFieldList(); if (itemEquals(FIELD_LIST, item)) { lexer.remove(); Element field = DocumentHelper.createElement(FIELD); copyLevel(item, field); Element fieldName = field.addElement(FIELD_NAME); copyLevel(item, fieldName); fieldName.addAttribute...
/** * <pre> * :field1: avec un * petit texte * - et meme un * - debut * - de list * </pre> * * @param lexer * @return Element * @throws Exception */
<code> :field1: avec un petit texte - et meme un - debut - de list </code>
composeFieldItemList
{ "repo_name": "vorburger/JRst", "path": "jrst/src/main/java/org/nuiton/jrst/JRSTReader.java", "license": "lgpl-3.0", "size": 85804 }
[ "org.dom4j.DocumentException", "org.dom4j.DocumentHelper", "org.dom4j.Element" ]
import org.dom4j.DocumentException; import org.dom4j.DocumentHelper; import org.dom4j.Element;
import org.dom4j.*;
[ "org.dom4j" ]
org.dom4j;
250,338
void grant(UserPermission userPermission, boolean mergeExistingPermissions) throws IOException;
void grant(UserPermission userPermission, boolean mergeExistingPermissions) throws IOException;
/** * Grants user specific permissions * @param userPermission user name and the specific permission * @param mergeExistingPermissions If set to false, later granted permissions will override * previous granted permissions. otherwise, it'll merge with previous granted * permissions. ...
Grants user specific permissions
grant
{ "repo_name": "francisliu/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Admin.java", "license": "apache-2.0", "size": 106428 }
[ "java.io.IOException", "org.apache.hadoop.hbase.security.access.UserPermission" ]
import java.io.IOException; import org.apache.hadoop.hbase.security.access.UserPermission;
import java.io.*; import org.apache.hadoop.hbase.security.access.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,803,750
@Nonnull public SiteRemoveCollectionRequest expand(@Nonnull final String value) { addExpandOption(value); return this; }
SiteRemoveCollectionRequest function(@Nonnull final String value) { addExpandOption(value); return this; }
/** * Sets the expand clause for the request * * @param value the expand clause * @return the updated request */
Sets the expand clause for the request
expand
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/SiteRemoveCollectionRequest.java", "license": "mit", "size": 4624 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
1,635,428
protected UUID getKey(SessionKey key) { String forcedKey = System.getProperty("worldedit.session.uuidOverride"); if (forcedKey != null) { return UUID.fromString(forcedKey); } else { return key.getUniqueId(); } }
UUID function(SessionKey key) { String forcedKey = System.getProperty(STR); if (forcedKey != null) { return UUID.fromString(forcedKey); } else { return key.getUniqueId(); } }
/** * Get the key to use in the map for a {@code SessionKey}. * * @param key the session key object * @return the key object */
Get the key to use in the map for a SessionKey
getKey
{ "repo_name": "UnlimitedFreedom/UF-WorldEdit", "path": "worldedit-core/src/main/java/com/sk89q/worldedit/session/SessionManager.java", "license": "gpl-3.0", "size": 11542 }
[ "java.util.UUID" ]
import java.util.UUID;
import java.util.*;
[ "java.util" ]
java.util;
440,986
public byte[] toBinary() { byte[] f1Bin = f1.toBinary(); byte[] f2Bin = f2.toBinary(); byte[] f3Bin = f3.toBinary(); byte[] all = Arrays.copyOf(f1Bin, f1Bin.length + f2Bin.length + f3Bin.length); System.arraycopy(f2Bin, 0, all, f1Bin.length, f2Bin.length); Sy...
byte[] function() { byte[] f1Bin = f1.toBinary(); byte[] f2Bin = f2.toBinary(); byte[] f3Bin = f3.toBinary(); byte[] all = Arrays.copyOf(f1Bin, f1Bin.length + f2Bin.length + f3Bin.length); System.arraycopy(f2Bin, 0, all, f1Bin.length, f2Bin.length); System.arraycopy(f3Bin, 0, all, f1Bin.length+f2Bin.length, f3Bin.lengt...
/** * Encodes the polynomial to a byte array. * @return the encoded polynomial */
Encodes the polynomial to a byte array
toBinary
{ "repo_name": "AdrianK7/Communicator-for-Android", "path": "app/src/main/java/com/forstudy/pc/communicator/NTRU/polynomial/ProductFormPolynomial.java", "license": "gpl-3.0", "size": 6815 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
148,109
private static void createStripAction(RuleContext context, CppConfiguration cppConfiguration, Artifact input, Artifact output) { context.registerAction(new SpawnAction.Builder() .addInput(input) .addTransitiveInputs(CppHelper.getToolchain(context).getStrip()) .addOutput(output) ...
static void function(RuleContext context, CppConfiguration cppConfiguration, Artifact input, Artifact output) { context.registerAction(new SpawnAction.Builder() .addInput(input) .addTransitiveInputs(CppHelper.getToolchain(context).getStrip()) .addOutput(output) .useDefaultShellEnvironment() .setExecutable(cppConfigurat...
/** * Creates an action to strip an executable. */
Creates an action to strip an executable
createStripAction
{ "repo_name": "Krasnyanskiy/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CcBinary.java", "license": "apache-2.0", "size": 32792 }
[ "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.analysis.RuleContext", "com.google.devtools.build.lib.analysis.actions.SpawnAction" ]
import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.RuleContext; import com.google.devtools.build.lib.analysis.actions.SpawnAction;
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.*; import com.google.devtools.build.lib.analysis.actions.*;
[ "com.google.devtools" ]
com.google.devtools;
861,935
public void testPrimaryKeyCQL() throws ApplicationException { CQLQuery criteria = new CQLQuery(); CQLObject object = new CQLObject(); object.setName("gov.nih.nci.cacoresdk.domain.other.primarykey.DoublePrimitiveKey"); object.setAttribute(new CQLAttribute("id",CQLPredicate.EQUAL_TO,"1.1")); criteri...
void function() throws ApplicationException { CQLQuery criteria = new CQLQuery(); CQLObject object = new CQLObject(); object.setName(STR); object.setAttribute(new CQLAttribute("id",CQLPredicate.EQUAL_TO,"1.1")); criteria.setTarget(object); CQL2HQL converter = new CQL2HQL(getClassCache()); HQLCriteria hqlCriteria = conv...
/** * Uses CQL for search * Searches by the Double data type * Verifies size of the result set * * @throws ApplicationException */
Uses CQL for search Searches by the Double data type Verifies size of the result set
testPrimaryKeyCQL
{ "repo_name": "NCIP/cacore-sdk", "path": "sdk-toolkit/example-project/junit/src/test/gov/nih/nci/cacoresdk/domain/other/primarykey/DoublePrimitiveKeyTest.java", "license": "bsd-3-clause", "size": 3066 }
[ "gov.nih.nci.system.applicationservice.ApplicationException", "gov.nih.nci.system.query.cql.CQLAttribute", "gov.nih.nci.system.query.cql.CQLObject", "gov.nih.nci.system.query.cql.CQLPredicate", "gov.nih.nci.system.query.cql.CQLQuery", "gov.nih.nci.system.query.hibernate.HQLCriteria", "java.util.Collecti...
import gov.nih.nci.system.applicationservice.ApplicationException; import gov.nih.nci.system.query.cql.CQLAttribute; import gov.nih.nci.system.query.cql.CQLObject; import gov.nih.nci.system.query.cql.CQLPredicate; import gov.nih.nci.system.query.cql.CQLQuery; import gov.nih.nci.system.query.hibernate.HQLCriteria; impor...
import gov.nih.nci.system.applicationservice.*; import gov.nih.nci.system.query.cql.*; import gov.nih.nci.system.query.hibernate.*; import java.util.*;
[ "gov.nih.nci", "java.util" ]
gov.nih.nci; java.util;
960,848
public static void main(String[] args) throws InterruptedException { List<Feature> features; try { features = RouteGuideUtil.parseFeatures(RouteGuideUtil.getDefaultFeaturesFile()); } catch (IOException ex) { ex.printStackTrace(); return; } RouteGuideClient client = new RouteGuid...
static void function(String[] args) throws InterruptedException { List<Feature> features; try { features = RouteGuideUtil.parseFeatures(RouteGuideUtil.getDefaultFeaturesFile()); } catch (IOException ex) { ex.printStackTrace(); return; } RouteGuideClient client = new RouteGuideClient(STR, 8980); try { client.getFeature(...
/** * Issues several different requests and then exits. */
Issues several different requests and then exits
main
{ "repo_name": "jiakuan/grpc-sample", "path": "src/main/java/io/grpc/sample/routeguide/RouteGuideClient.java", "license": "apache-2.0", "size": 10285 }
[ "java.io.IOException", "java.util.List" ]
import java.io.IOException; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,238,481
void close() throws IOException { stream.close(); }
void close() throws IOException { stream.close(); }
/** * Closes the file item. * * @throws IOException An I/O error occurred. */
Closes the file item
close
{ "repo_name": "mayonghui2112/helloWorld", "path": "sourceCode/apache-tomcat-7.0.82-src/java/org/apache/tomcat/util/http/fileupload/FileUploadBase.java", "license": "apache-2.0", "size": 43666 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,015,109
@Test public void testBuildSnapshotCommandResponseMessage() { final FudgeMsg msg = CogdaLiveDataBuilderUtil.buildCommandResponseMessage(OpenGammaFudgeContext.getInstance(), SNAPSHOT_MSG); assertEquals(msg.getAllFields().size(), 8); assertEquals(((Number) msg.getByName("correlationId").getValue()).longVa...
void function() { final FudgeMsg msg = CogdaLiveDataBuilderUtil.buildCommandResponseMessage(OpenGammaFudgeContext.getInstance(), SNAPSHOT_MSG); assertEquals(msg.getAllFields().size(), 8); assertEquals(((Number) msg.getByName(STR).getValue()).longValue(), CORRELATION_ID); assertEquals(msg.getByName(STR).getValue(), SUBS...
/** * Tests building a command response. */
Tests building a command response
testBuildSnapshotCommandResponseMessage
{ "repo_name": "McLeodMoores/starling", "path": "projects/live-data/src/test/java/com/opengamma/livedata/cogda/msg/CogdaLiveDataBuilderUtilTest.java", "license": "apache-2.0", "size": 8266 }
[ "com.opengamma.util.fudgemsg.OpenGammaFudgeContext", "org.fudgemsg.FudgeMsg", "org.testng.Assert" ]
import com.opengamma.util.fudgemsg.OpenGammaFudgeContext; import org.fudgemsg.FudgeMsg; import org.testng.Assert;
import com.opengamma.util.fudgemsg.*; import org.fudgemsg.*; import org.testng.*;
[ "com.opengamma.util", "org.fudgemsg", "org.testng" ]
com.opengamma.util; org.fudgemsg; org.testng;
2,776,582
@Generated @StructureField(order = 1, isGetter = true) public native char size();
@StructureField(order = 1, isGetter = true) native char function();
/** * sizeof(GCMicroGamepadSnapShotDataV100) or larger */
sizeof(GCMicroGamepadSnapShotDataV100) or larger
size
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/gamecontroller/struct/GCMicroGamepadSnapShotDataV100.java", "license": "apache-2.0", "size": 2989 }
[ "org.moe.natj.c.ann.StructureField" ]
import org.moe.natj.c.ann.StructureField;
import org.moe.natj.c.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
83,553
@Nullable public static String findV2Template(Metadata metadata, String indexName, boolean isHidden) { final String resolvedIndexName = IndexNameExpressionResolver.DateMathExpressionResolver.resolveExpression(indexName); final Predicate<String> patternMatchPredicate = pattern -> Regex.simpleMatc...
static String function(Metadata metadata, String indexName, boolean isHidden) { final String resolvedIndexName = IndexNameExpressionResolver.DateMathExpressionResolver.resolveExpression(indexName); final Predicate<String> patternMatchPredicate = pattern -> Regex.simpleMatch(pattern, resolvedIndexName); final Map<Compos...
/** * Return the name (id) of the highest matching index template for the given index name. In * the event that no templates are matched, {@code null} is returned. */
Return the name (id) of the highest matching index template for the given index name. In the event that no templates are matched, null is returned
findV2Template
{ "repo_name": "GlenRSmith/elasticsearch", "path": "server/src/main/java/org/elasticsearch/cluster/metadata/MetadataIndexTemplateService.java", "license": "apache-2.0", "size": 77079 }
[ "java.util.ArrayList", "java.util.Comparator", "java.util.HashMap", "java.util.List", "java.util.Map", "java.util.function.Predicate", "org.apache.lucene.util.CollectionUtil", "org.elasticsearch.common.regex.Regex" ]
import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.function.Predicate; import org.apache.lucene.util.CollectionUtil; import org.elasticsearch.common.regex.Regex;
import java.util.*; import java.util.function.*; import org.apache.lucene.util.*; import org.elasticsearch.common.regex.*;
[ "java.util", "org.apache.lucene", "org.elasticsearch.common" ]
java.util; org.apache.lucene; org.elasticsearch.common;
797,053
String callRpc(String division, String vpid, String duz, String appProxyName, String rpcContext, String rpcName, List<VistaRpcParam> vistaRpcParamList);
String callRpc(String division, String vpid, String duz, String appProxyName, String rpcContext, String rpcName, List<VistaRpcParam> vistaRpcParamList);
/** * Generic method to call an RPC and return the resulting string. * @param division * @param vpid * @param duz * @param appProxyName * @param rpcContext * @param rpcName * @param vistaRpcParamList * @return */
Generic method to call an RPC and return the resulting string
callRpc
{ "repo_name": "VHAINNOVATIONS/Mental-Health-eScreening", "path": "escreening/src/main/java/gov/va/escreening/repository/VistaRepository.java", "license": "apache-2.0", "size": 7273 }
[ "gov.va.escreening.vista.VistaRpcParam", "java.util.List" ]
import gov.va.escreening.vista.VistaRpcParam; import java.util.List;
import gov.va.escreening.vista.*; import java.util.*;
[ "gov.va.escreening", "java.util" ]
gov.va.escreening; java.util;
1,687,890
// If its a login packet, write the hardcore flag (first boolean) to true. if (ev.getPacketType().equals(PacketType.Play.Server.LOGIN)) { ev.getPacket().getBooleans().write(0, true); } }
if (ev.getPacketType().equals(PacketType.Play.Server.LOGIN)) { ev.getPacket().getBooleans().write(0, true); } }
/** * Used to present the server as an hardcore server, for the clients to display hardcore hearts. * * @param ev */
Used to present the server as an hardcore server, for the clients to display hardcore hearts
onPacketSending
{ "repo_name": "kyriog/UHPlugin", "path": "src/main/java/me/azenet/UHPlugin/listeners/UHPacketsListener.java", "license": "gpl-3.0", "size": 3105 }
[ "com.comphenix.protocol.PacketType" ]
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.*;
[ "com.comphenix.protocol" ]
com.comphenix.protocol;
1,277,825
public INDArray projecti(INDArray data){ int[] tShape = targetShape(data.shape(), eps, components, autoMode); return data.mmuli(getProjectionMatrix(tShape, this.rng)); }
INDArray function(INDArray data){ int[] tShape = targetShape(data.shape(), eps, components, autoMode); return data.mmuli(getProjectionMatrix(tShape, this.rng)); }
/** * Create an in-place random projection by using in-place matrix product with a random matrix * @param data * @return the projected matrix */
Create an in-place random projection by using in-place matrix product with a random matrix
projecti
{ "repo_name": "smarthi/nd4j", "path": "nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/dimensionalityreduction/RandomProjection.java", "license": "apache-2.0", "size": 6751 }
[ "org.nd4j.linalg.api.ndarray.INDArray" ]
import org.nd4j.linalg.api.ndarray.INDArray;
import org.nd4j.linalg.api.ndarray.*;
[ "org.nd4j.linalg" ]
org.nd4j.linalg;
273,729
private Document getZPAUrl(String suffix) throws IOException { return connection.url(ZPA_URL + suffix).get(); }
Document function(String suffix) throws IOException { return connection.url(ZPA_URL + suffix).get(); }
/** * Get a Document from the ZPA with the passed URL. * * @param suffix * @return * @throws IOException */
Get a Document from the ZPA with the passed URL
getZPAUrl
{ "repo_name": "BullshitPingu/Guide7", "path": "java-app/app/src/main/java/de/be/thaw/connect/zpa/ZPAConnection.java", "license": "apache-2.0", "size": 15002 }
[ "java.io.IOException", "org.jsoup.nodes.Document" ]
import java.io.IOException; import org.jsoup.nodes.Document;
import java.io.*; import org.jsoup.nodes.*;
[ "java.io", "org.jsoup.nodes" ]
java.io; org.jsoup.nodes;
1,734,719
static boolean hasUnfilteredResources(Viewer viewer, IPackageFragment pkg) throws JavaModelException { Object[] resources= pkg.getNonJavaResources(); int length= resources.length; if (length == 0) return false; if (!(viewer instanceof StructuredViewer)) return true; ViewerFilter[] filters= ((Struct...
static boolean hasUnfilteredResources(Viewer viewer, IPackageFragment pkg) throws JavaModelException { Object[] resources= pkg.getNonJavaResources(); int length= resources.length; if (length == 0) return false; if (!(viewer instanceof StructuredViewer)) return true; ViewerFilter[] filters= ((StructuredViewer)viewer).ge...
/** * Tells whether the given package has unfiltered resources. * * @param viewer the viewer * @param pkg the package * @return <code>true</code> if the package has unfiltered resources * @throws JavaModelException if this element does not exist or if an exception occurs while * accessing its ...
Tells whether the given package has unfiltered resources
hasUnfilteredResources
{ "repo_name": "psoreide/bnd", "path": "bndtools.core/src/bndtools/explorer/EmptyPackageFilter.java", "license": "apache-2.0", "size": 1788 }
[ "org.eclipse.jdt.core.IPackageFragment", "org.eclipse.jdt.core.JavaModelException", "org.eclipse.jface.viewers.StructuredViewer", "org.eclipse.jface.viewers.Viewer", "org.eclipse.jface.viewers.ViewerFilter" ]
import org.eclipse.jdt.core.IPackageFragment; import org.eclipse.jdt.core.JavaModelException; import org.eclipse.jface.viewers.StructuredViewer; import org.eclipse.jface.viewers.Viewer; import org.eclipse.jface.viewers.ViewerFilter;
import org.eclipse.jdt.core.*; import org.eclipse.jface.viewers.*;
[ "org.eclipse.jdt", "org.eclipse.jface" ]
org.eclipse.jdt; org.eclipse.jface;
2,467,145
public YangString getRegisterNameValue() throws JNCException { return (YangString)getValue("register-name"); }
YangString function() throws JNCException { return (YangString)getValue(STR); }
/** * Gets the value for child leaf "register-name". * @return The value of the leaf. */
Gets the value for child leaf "register-name"
getRegisterNameValue
{ "repo_name": "jnpr-shinma/yangfile", "path": "hitel/src/hctaEpc/mmeSgsn/statistics/umtsSm/Irau.java", "license": "apache-2.0", "size": 11306 }
[ "com.tailf.jnc.YangString" ]
import com.tailf.jnc.YangString;
import com.tailf.jnc.*;
[ "com.tailf.jnc" ]
com.tailf.jnc;
2,334,436
private void versionNodeAndChildren(Node n, String userID, Session session) { try { // TODO do better check if (n.isNode() && !n.getName().startsWith("rep:") && !JcrUtils.isJCRProperty(n.getName()) && n.hasProperties() && !n.getProperty(JcrConstants.JCR_PRIMARYT...
void function(Node n, String userID, Session session) { try { if (n.isNode() && !n.getName().startsWith("rep:") && !JcrUtils.isJCRProperty(n.getName()) && n.hasProperties() && !n.getProperty(JcrConstants.JCR_PRIMARYTYPE).getString().equals( JcrConstants.NT_RESOURCE)) { NodeIterator it = n.getNodes(); while (it.hasNext(...
/** * Versions a node and all its child nodes. * * @param n * The node to version * @param userID * The username that should be used as an ID. * @param session * The session to version the node with. */
Versions a node and all its child nodes
versionNodeAndChildren
{ "repo_name": "roxolan/nakamura", "path": "sandbox/site/src/main/java/org/sakaiproject/nakamura/site/SiteServiceImpl.java", "license": "apache-2.0", "size": 36860 }
[ "javax.jcr.Node", "javax.jcr.NodeIterator", "javax.jcr.RepositoryException", "javax.jcr.Session", "org.apache.jackrabbit.JcrConstants", "org.sakaiproject.nakamura.util.JcrUtils" ]
import javax.jcr.Node; import javax.jcr.NodeIterator; import javax.jcr.RepositoryException; import javax.jcr.Session; import org.apache.jackrabbit.JcrConstants; import org.sakaiproject.nakamura.util.JcrUtils;
import javax.jcr.*; import org.apache.jackrabbit.*; import org.sakaiproject.nakamura.util.*;
[ "javax.jcr", "org.apache.jackrabbit", "org.sakaiproject.nakamura" ]
javax.jcr; org.apache.jackrabbit; org.sakaiproject.nakamura;
1,403,575
public void show() { LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) mContentView.getLayoutParams(); lp.height = LayoutParams.WRAP_CONTENT; mContentView.setLayoutParams(lp); }
void function() { LinearLayout.LayoutParams lp = (LinearLayout.LayoutParams) mContentView.getLayoutParams(); lp.height = LayoutParams.WRAP_CONTENT; mContentView.setLayoutParams(lp); }
/** * show footer */
show footer
show
{ "repo_name": "liudeyu/MeLife", "path": "PMS/GzmeLife/src/com/gzmelife/app/views/PullToRefreshListFooter.java", "license": "apache-2.0", "size": 3320 }
[ "android.widget.LinearLayout" ]
import android.widget.LinearLayout;
import android.widget.*;
[ "android.widget" ]
android.widget;
671,401
public int read() throws IOException { // Read a single byte of compressed data int len = read(rbuf, 0, 1); if (len <= 0) return -1; return (rbuf[0] & 0xFF); } /** * Reads compressed data into a byte array. * This method will block until some input can ...
int function() throws IOException { int len = read(rbuf, 0, 1); if (len <= 0) return -1; return (rbuf[0] & 0xFF); } /** * Reads compressed data into a byte array. * This method will block until some input can be read and compressed. * * @param b buffer into which the data is read * @param off starting offset of the dat...
/** * Reads a single byte of compressed data from the input stream. * This method will block until some input can be read and compressed. * * @return a single byte of compressed data, or -1 if the end of the * uncompressed input stream is reached * @throws IOException if an I/O error occur...
Reads a single byte of compressed data from the input stream. This method will block until some input can be read and compressed
read
{ "repo_name": "evanman/Java-Source", "path": "util/zip/DeflaterInputStream.java", "license": "lgpl-2.1", "size": 9425 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
480,015
public void setType(Type type);
void function(Type type);
/** * Sets the type of this object. * <p> * NOTE: If the new type is the same as the old type of this object, nothing * is done; otherwise, the type of this object will be set to the new type, * and all old value of this object will be cleared. * </p> * * @param type * the new type o...
Sets the type of this object. is done; otherwise, the type of this object will be set to the new type, and all old value of this object will be cleared.
setType
{ "repo_name": "Haixing-Hu/commons", "path": "src/main/java/com/github/haixing_hu/util/value/Value.java", "license": "apache-2.0", "size": 25153 }
[ "com.github.haixing_hu.lang.Type" ]
import com.github.haixing_hu.lang.Type;
import com.github.haixing_hu.lang.*;
[ "com.github.haixing_hu" ]
com.github.haixing_hu;
1,983,873
ImmutableList<SchemaOrgType> getPriceTypeList();
ImmutableList<SchemaOrgType> getPriceTypeList();
/** * Returns the value list of property priceType. Empty list is returned if the property not set in * current object. */
Returns the value list of property priceType. Empty list is returned if the property not set in current object
getPriceTypeList
{ "repo_name": "google/schemaorg-java", "path": "src/main/java/com/google/schemaorg/core/UnitPriceSpecification.java", "license": "apache-2.0", "size": 8970 }
[ "com.google.common.collect.ImmutableList", "com.google.schemaorg.SchemaOrgType" ]
import com.google.common.collect.ImmutableList; import com.google.schemaorg.SchemaOrgType;
import com.google.common.collect.*; import com.google.schemaorg.*;
[ "com.google.common", "com.google.schemaorg" ]
com.google.common; com.google.schemaorg;
2,763,101
@Test public void testSLLocalEnvEntry_Double_Modify() throws Exception { SLLa ejb1 = fhome1.create(); try { ejb1.bindEnvVar("envDouble", new Double(111.0)); fail("Unexpected return from bind(), it should have failed."); } catch (javax.naming.OperationNotSupportedE...
void function() throws Exception { SLLa ejb1 = fhome1.create(); try { ejb1.bindEnvVar(STR, new Double(111.0)); fail(STR); } catch (javax.naming.OperationNotSupportedException onse) { svLogger.info(STR + onse.getClass().getName()); } try { ejb1.rebindEnvVar(STR, new Double(112.0)); fail(STR); } catch (javax.naming.Opera...
/** * (ive44) Test that an env-entry of type Double cannot be modified. */
(ive44) Test that an env-entry of type Double cannot be modified
testSLLocalEnvEntry_Double_Modify
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.ejbcontainer.legacy_fat/test-applications/EJB2XLocalSpecWeb.war/src/com/ibm/ejb2x/base/spec/sll/web/SLLocalImplEnvEntryServlet.java", "license": "epl-1.0", "size": 40905 }
[ "com.ibm.ejb2x.base.spec.sll.ejb.SLLa", "org.junit.Assert" ]
import com.ibm.ejb2x.base.spec.sll.ejb.SLLa; import org.junit.Assert;
import com.ibm.ejb2x.base.spec.sll.ejb.*; import org.junit.*;
[ "com.ibm.ejb2x", "org.junit" ]
com.ibm.ejb2x; org.junit;
2,433,432
private void addWebclientPermissions() throws InterruptedException { RolePermissionRequest request = new RolePermissionRequest(); request.setRecursive(true); request.getPermissions().add(READ); request.getPermissions().add(UPDATE); call(() -> client.updateRolePermissions(getRole("Client Role").getUuid(), "...
void function() throws InterruptedException { RolePermissionRequest request = new RolePermissionRequest(); request.setRecursive(true); request.getPermissions().add(READ); request.getPermissions().add(UPDATE); call(() -> client.updateRolePermissions(getRole(STR).getUuid(), STR + getProject("demo").getUuid(), request)); ...
/** * Add the webclient role permissions. * * @throws InterruptedException */
Add the webclient role permissions
addWebclientPermissions
{ "repo_name": "gentics/mesh", "path": "demo/src/main/java/com/gentics/mesh/demo/DemoDataProvider.java", "license": "apache-2.0", "size": 20586 }
[ "com.gentics.mesh.core.rest.role.RolePermissionRequest" ]
import com.gentics.mesh.core.rest.role.RolePermissionRequest;
import com.gentics.mesh.core.rest.role.*;
[ "com.gentics.mesh" ]
com.gentics.mesh;
105,104
private void processDeletion(FatVertex fatVertex, GradoopId senderId, Long deletion, MessageType messageType) { switch (messageType) { case FROM_SELF: updateCandidates(fatVertex, deletion); break; case FROM_CHILD: updateOutgoingEdges(fatVertex, queryHandler.getEdgeIdsByTarget...
void function(FatVertex fatVertex, GradoopId senderId, Long deletion, MessageType messageType) { switch (messageType) { case FROM_SELF: updateCandidates(fatVertex, deletion); break; case FROM_CHILD: updateOutgoingEdges(fatVertex, queryHandler.getEdgeIdsByTargetVertexId(deletion), senderId); break; case FROM_PARENT: upd...
/** * Processes a deletion on the current vertex. * * @param fatVertex fat vertex * @param senderId sender vertexId * @param deletion sender vertex candidate deletion id * @param messageType message type */
Processes a deletion on the current vertex
processDeletion
{ "repo_name": "Venom590/gradoop", "path": "gradoop-flink/src/main/java/org/gradoop/flink/model/impl/operators/matching/single/simulation/dual/functions/UpdateVertexState.java", "license": "gpl-3.0", "size": 7529 }
[ "org.gradoop.common.model.impl.id.GradoopId", "org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.tuples.FatVertex", "org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.util.MessageType" ]
import org.gradoop.common.model.impl.id.GradoopId; import org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.tuples.FatVertex; import org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.util.MessageType;
import org.gradoop.common.model.impl.id.*; import org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.tuples.*; import org.gradoop.flink.model.impl.operators.matching.single.simulation.dual.util.*;
[ "org.gradoop.common", "org.gradoop.flink" ]
org.gradoop.common; org.gradoop.flink;
288,380
public static AnnuityCouponCMSDefinition from(final ZonedDateTime settlementDate, final ZonedDateTime maturityDate, final double notional, final IndexSwap index, final Period paymentPeriod, final DayCount dayCount, final boolean isPayer, final Calendar calendar) { ArgumentChecker.notNull(settlementDat...
static AnnuityCouponCMSDefinition function(final ZonedDateTime settlementDate, final ZonedDateTime maturityDate, final double notional, final IndexSwap index, final Period paymentPeriod, final DayCount dayCount, final boolean isPayer, final Calendar calendar) { ArgumentChecker.notNull(settlementDate, STR); ArgumentChec...
/** * CMS annuity (or CMS coupon leg) constructor from standard description. The coupon are fixing in advance and payment in arrears. The CMS fixing is done at a * standard lag before the coupon start. * * @param settlementDate * The settlement date. * @param maturityDate * The a...
CMS annuity (or CMS coupon leg) constructor from standard description. The coupon are fixing in advance and payment in arrears. The CMS fixing is done at a standard lag before the coupon start
from
{ "repo_name": "McLeodMoores/starling", "path": "projects/analytics/src/main/java/com/opengamma/analytics/financial/instrument/annuity/AnnuityCouponCMSDefinition.java", "license": "apache-2.0", "size": 3557 }
[ "com.opengamma.analytics.financial.instrument.index.IndexSwap", "com.opengamma.analytics.financial.instrument.payment.CouponCMSDefinition", "com.opengamma.analytics.financial.schedule.ScheduleCalculator", "com.opengamma.financial.convention.calendar.Calendar", "com.opengamma.financial.convention.daycount.Da...
import com.opengamma.analytics.financial.instrument.index.IndexSwap; import com.opengamma.analytics.financial.instrument.payment.CouponCMSDefinition; import com.opengamma.analytics.financial.schedule.ScheduleCalculator; import com.opengamma.financial.convention.calendar.Calendar; import com.opengamma.financial.conventi...
import com.opengamma.analytics.financial.instrument.index.*; import com.opengamma.analytics.financial.instrument.payment.*; import com.opengamma.analytics.financial.schedule.*; import com.opengamma.financial.convention.calendar.*; import com.opengamma.financial.convention.daycount.*; import com.opengamma.util.*; import...
[ "com.opengamma.analytics", "com.opengamma.financial", "com.opengamma.util", "org.threeten.bp" ]
com.opengamma.analytics; com.opengamma.financial; com.opengamma.util; org.threeten.bp;
1,897,075
public final static <A> A head(final List<A> coll) { return coll.get(0); }
final static <A> A function(final List<A> coll) { return coll.get(0); }
/** * Returns the first element of the given collection. * * @param coll * The collection. * @return The first element. */
Returns the first element of the given collection
head
{ "repo_name": "rjeschke/neetutils-base", "path": "src/main/java/com/github/rjeschke/neetutils/collections/Colls.java", "license": "apache-2.0", "size": 28113 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,943,157
private Bucket readBucket(String iBucketID, String iStudentID, String iCourseID, String iAttemptID, String iSCOID) { Bucket bucket = null; String bucketFile = File.separator + SRTEFILESDIR; if ((iBucketID != null) && (iStudentID != null)) { bucketFile += File.separator + iStudentID + File.separator + ...
Bucket function(String iBucketID, String iStudentID, String iCourseID, String iAttemptID, String iSCOID) { Bucket bucket = null; String bucketFile = File.separator + SRTEFILESDIR; if ((iBucketID != null) && (iStudentID != null)) { bucketFile += File.separator + iStudentID + File.separator + iBucketID; if (iCourseID != ...
/** * This method reads in the requested bucket object from the persisted file. * * @param iBucketID * @param iStudentID * @param iCourseID * @param iAttemptID * @param iSCOID * * @return Bucket */
This method reads in the requested bucket object from the persisted file
readBucket
{ "repo_name": "marktriggs/nyu-sakai-10.4", "path": "scorm/scorm-impl/adl/src/java/org/ims/ssp/samplerte/server/SSP_Servlet.java", "license": "apache-2.0", "size": 54590 }
[ "java.io.File", "java.io.FileInputStream", "java.io.ObjectInputStream", "org.ims.ssp.samplerte.server.bucket.Bucket" ]
import java.io.File; import java.io.FileInputStream; import java.io.ObjectInputStream; import org.ims.ssp.samplerte.server.bucket.Bucket;
import java.io.*; import org.ims.ssp.samplerte.server.bucket.*;
[ "java.io", "org.ims.ssp" ]
java.io; org.ims.ssp;
1,001,121
protected EMVProprietaryTagType getProprietaryTagType(Integer tagNumber) throws UnknownTagNumberException { throw new UnknownTagNumberException(Integer.toHexString(tagNumber)); }
EMVProprietaryTagType function(Integer tagNumber) throws UnknownTagNumberException { throw new UnknownTagNumberException(Integer.toHexString(tagNumber)); }
/** * Subclasses should override this method to provide an implementation of org.jpos.emv.EMVProprietaryTagType * @param tagNumber * @return EMVProprietaryTagType * @throws UnknownTagNumberException */
Subclasses should override this method to provide an implementation of org.jpos.emv.EMVProprietaryTagType
getProprietaryTagType
{ "repo_name": "sebastianpacheco/jPOS", "path": "jpos/src/main/java/org/jpos/tlv/packager/bertlv/DefaultICCBERTLVFormatMapper.java", "license": "agpl-3.0", "size": 2282 }
[ "org.jpos.emv.EMVProprietaryTagType", "org.jpos.emv.UnknownTagNumberException" ]
import org.jpos.emv.EMVProprietaryTagType; import org.jpos.emv.UnknownTagNumberException;
import org.jpos.emv.*;
[ "org.jpos.emv" ]
org.jpos.emv;
231,578
Document bpmnModel = parseXml(bpmnXmlStream); return getBpmnProcessDiagramLayout(bpmnModel, imageStream); }
Document bpmnModel = parseXml(bpmnXmlStream); return getBpmnProcessDiagramLayout(bpmnModel, imageStream); }
/** * Provides positions and dimensions of elements in a process diagram as * provided by {@link RepositoryService#getProcessDiagram(String)}. * * Currently, it only supports BPMN 2.0 models. * * @param bpmnXmlStream * BPMN 2.0 XML file * @param imageStream * BPMN 2.0 diagra...
Provides positions and dimensions of elements in a process diagram as provided by <code>RepositoryService#getProcessDiagram(String)</code>. Currently, it only supports BPMN 2.0 models
getProcessDiagramLayout
{ "repo_name": "ThorbenLindhauer/activiti-engine-ppi", "path": "modules/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/diagram/ProcessDiagramLayout.java", "license": "apache-2.0", "size": 14056 }
[ "org.w3c.dom.Document" ]
import org.w3c.dom.Document;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
239,489
public Link restoreFromTrash(final String path, final String name, final Boolean overwrite) throws IOException, ServerIOException { return new RestClientIO(client, credentials.getHeaders()) .put(new QueryBuilder(getUrl() + "/v1/disk/trash/resources/restore") ...
Link function(final String path, final String name, final Boolean overwrite) throws IOException, ServerIOException { return new RestClientIO(client, credentials.getHeaders()) .put(new QueryBuilder(getUrl() + STR) .add("path", path) .add("name", name) .add(STR, overwrite) .build()); }
/** * Restoring a file or folder from the Trash * * @see <p>API reference <a href="http://api.yandex.com/disk/api/reference/trash-restore.xml">english</a>, * <a href="https://tech.yandex.ru/disk/api/reference/trash-restore-docpage/">russian</a></p> */
Restoring a file or folder from the Trash
restoreFromTrash
{ "repo_name": "yandex-disk/yandex-disk-restapi-java", "path": "disk-restapi-sdk/src/main/java/com/yandex/disk/rest/RestClient.java", "license": "apache-2.0", "size": 19562 }
[ "com.yandex.disk.rest.exceptions.ServerIOException", "com.yandex.disk.rest.json.Link", "java.io.IOException" ]
import com.yandex.disk.rest.exceptions.ServerIOException; import com.yandex.disk.rest.json.Link; import java.io.IOException;
import com.yandex.disk.rest.exceptions.*; import com.yandex.disk.rest.json.*; import java.io.*;
[ "com.yandex.disk", "java.io" ]
com.yandex.disk; java.io;
307,192
public void testJsonConstructor () { JSONObject commandJson = JsonFileReader.readId(this.mContext, getCommandType(), getMessageType()); assertNotNull(Test.NOT_NULL, commandJson); try { Hashtable<String, Object> hash = JsonRPCMarshaller.deserializeJSONObject(commandJson); PerformInteraction c...
void function () { JSONObject commandJson = JsonFileReader.readId(this.mContext, getCommandType(), getMessageType()); assertNotNull(Test.NOT_NULL, commandJson); try { Hashtable<String, Object> hash = JsonRPCMarshaller.deserializeJSONObject(commandJson); PerformInteraction cmd = new PerformInteraction(hash); JSONObject ...
/** * Tests a valid JSON construction of this RPC message. */
Tests a valid JSON construction of this RPC message
testJsonConstructor
{ "repo_name": "anildahiya/sdl_android", "path": "android/sdl_android/src/androidTest/java/com/smartdevicelink/test/rpc/requests/PerformInteractionTests.java", "license": "bsd-3-clause", "size": 9023 }
[ "com.smartdevicelink.marshal.JsonRPCMarshaller", "com.smartdevicelink.proxy.RPCMessage", "com.smartdevicelink.proxy.rpc.PerformInteraction", "com.smartdevicelink.proxy.rpc.TTSChunk", "com.smartdevicelink.proxy.rpc.VrHelpItem", "com.smartdevicelink.test.JsonUtils", "com.smartdevicelink.test.Test", "com...
import com.smartdevicelink.marshal.JsonRPCMarshaller; import com.smartdevicelink.proxy.RPCMessage; import com.smartdevicelink.proxy.rpc.PerformInteraction; import com.smartdevicelink.proxy.rpc.TTSChunk; import com.smartdevicelink.proxy.rpc.VrHelpItem; import com.smartdevicelink.test.JsonUtils; import com.smartdevicelin...
import com.smartdevicelink.marshal.*; import com.smartdevicelink.proxy.*; import com.smartdevicelink.proxy.rpc.*; import com.smartdevicelink.test.*; import com.smartdevicelink.test.json.rpc.*; import java.util.*; import org.json.*;
[ "com.smartdevicelink.marshal", "com.smartdevicelink.proxy", "com.smartdevicelink.test", "java.util", "org.json" ]
com.smartdevicelink.marshal; com.smartdevicelink.proxy; com.smartdevicelink.test; java.util; org.json;
2,861,735
protected Rectangle getNodeDimensions(Object value, int row, int depth, boolean expanded, Rectangle placeIn) { NodeDimensions nd = getNodeDimensions(); if(nd != null) { return nd.getNodeDimens...
Rectangle function(Object value, int row, int depth, boolean expanded, Rectangle placeIn) { NodeDimensions nd = getNodeDimensions(); if(nd != null) { return nd.getNodeDimensions(value, row, depth, expanded, placeIn); } return null; }
/** * Returns, by reference in <code>placeIn</code>, * the size needed to represent <code>value</code>. * If <code>inPlace</code> is <code>null</code>, a newly created * <code>Rectangle</code> should be returned, otherwise the value * should be placed in <code>inPlace</code> and returned. This ...
Returns, by reference in <code>placeIn</code>, the size needed to represent <code>value</code>. If <code>inPlace</code> is <code>null</code>, a newly created <code>Rectangle</code> should be returned, otherwise the value should be placed in <code>inPlace</code> and returned. This will return <code>null</code> if there ...
getNodeDimensions
{ "repo_name": "haikuowuya/android_system_code", "path": "src/javax/swing/tree/AbstractLayoutCache.java", "license": "apache-2.0", "size": 17771 }
[ "java.awt.Rectangle" ]
import java.awt.Rectangle;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,675,713
public boolean checkAuth(String _username, String _password) { boolean isCorrectUsername = false; boolean isCorrectPassword = false; try { if (PasswordHash.validatePassword(_username, username)) { isCorrectUsername = true; unhashedUsername = _usern...
boolean function(String _username, String _password) { boolean isCorrectUsername = false; boolean isCorrectPassword = false; try { if (PasswordHash.validatePassword(_username, username)) { isCorrectUsername = true; unhashedUsername = _username; } if (PasswordHash.validatePassword(_password, password)) { isCorrectPasswo...
/** * Checks the provided credentials against stored counterparts * @param _username The username provided by the user * @param _password The password provided by the user * @return true if the credentials are correct */
Checks the provided credentials against stored counterparts
checkAuth
{ "repo_name": "ajohnston9/ciscorouter", "path": "CiscoRouterTool/src/ciscoroutertool/settings/SettingsManager.java", "license": "mit", "size": 5160 }
[ "java.security.NoSuchAlgorithmException", "java.security.spec.InvalidKeySpecException", "java.util.logging.Level", "java.util.logging.Logger" ]
import java.security.NoSuchAlgorithmException; import java.security.spec.InvalidKeySpecException; import java.util.logging.Level; import java.util.logging.Logger;
import java.security.*; import java.security.spec.*; import java.util.logging.*;
[ "java.security", "java.util" ]
java.security; java.util;
465,483
private void cleanup(Connection connection, Statement statement, ResultSet rs, PreparedStatement selectStatement, PreparedStatement updateStatement) { try { if (rs != null) { rs.close(); } } catch (SQLException ex) { ...
void function(Connection connection, Statement statement, ResultSet rs, PreparedStatement selectStatement, PreparedStatement updateStatement) { try { if (rs != null) { rs.close(); } } catch (SQLException ex) { M_log.error(STR + ex, ex); } try { if (statement != null) { statement.close(); } } catch (SQLException ex) { M...
/** * Cleanup the resultset, statements, and connection in the finally block or as needed * @param connection * @param statement * @param rs * @param selectStatement * @param updateStatement */
Cleanup the resultset, statements, and connection in the finally block or as needed
cleanup
{ "repo_name": "willkara/sakai", "path": "kernel/kernel-impl/src/main/java/org/sakaiproject/content/impl/DbContentService.java", "license": "apache-2.0", "size": 130660 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.sql.Statement" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Statement;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,152,364
@SideOnly(Side.CLIENT) @Override public boolean doesXZShowFog(int par1, int par2) { return true; }
@SideOnly(Side.CLIENT) boolean function(int par1, int par2) { return true; }
/** * Returns true if the given X,Z coordinate should show environmental fog. */
Returns true if the given X,Z coordinate should show environmental fog
doesXZShowFog
{ "repo_name": "Tamaized/VoidCraft", "path": "src/main/java/tamaized/voidcraft/common/world/dim/thevoid/WorldProviderVoid.java", "license": "mit", "size": 3139 }
[ "net.minecraftforge.fml.relauncher.Side", "net.minecraftforge.fml.relauncher.SideOnly" ]
import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.fml.relauncher.*;
[ "net.minecraftforge.fml" ]
net.minecraftforge.fml;
2,368,220
public static String getUpToNWords(String str, int n) { if (str == null || n < 1) return null; String[] split = split(str, " ,.()[]<>!?\"':;/\\", n + 1); if (split.length > 1) split[split.length - 1] = ""; return join(split, " ").trim(); } private sta...
static String function(String str, int n) { if (str == null n < 1) return null; String[] split = split(str, STR':;/\\STRSTR ").trim(); } private static Pattern lastPattern; private static int lastSentences = -1;
/** * Returns space-separated list of first <code>N</code> words. * * @param str string. * @param n number of words. * * @return list or <code>NULL</code> if string is <code>NULL</code> or <code>N</code> is less than <code>1</code>. */
Returns space-separated list of first <code>N</code> words
getUpToNWords
{ "repo_name": "pitosalas/blogbridge", "path": "src/com/salas/bb/utils/StringUtils.java", "license": "gpl-2.0", "size": 29526 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
1,624,722
iViewer activateViewer(ActionLink link) throws IOException;
iViewer activateViewer(ActionLink link) throws IOException;
/** * Creates and activates the viewer for the specified Action link. * * @param link the Action link * @return an instance of the viewer that was created or null if the viewer could no be created * * @throws IOException if an I/O error occurs */
Creates and activates the viewer for the specified Action link
activateViewer
{ "repo_name": "appnativa/rare", "path": "source/rare/core/com/appnativa/rare/ui/iWindowManager.java", "license": "gpl-3.0", "size": 16340 }
[ "com.appnativa.rare.net.ActionLink", "java.io.IOException" ]
import com.appnativa.rare.net.ActionLink; import java.io.IOException;
import com.appnativa.rare.net.*; import java.io.*;
[ "com.appnativa.rare", "java.io" ]
com.appnativa.rare; java.io;
2,731,491
public List<Node> getTasksCompleted() { if (this.completedTasks == null) { // get the current username FacesContext context = FacesContext.getCurrentInstance(); User user = Application.getCurrentUser(context); String userName = user.getUserName(); ...
List<Node> function() { if (this.completedTasks == null) { FacesContext context = FacesContext.getCurrentInstance(); User user = Application.getCurrentUser(context); String userName = user.getUserName(); UserTransaction tx = null; try { tx = Repository.getUserTransaction(context, true); tx.begin(); ClientConfigElement ...
/** * Returns a list of nodes representing the completed tasks the * current user has. * * @return List of completed tasks */
Returns a list of nodes representing the completed tasks the current user has
getTasksCompleted
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/web-client/source/java/org/alfresco/web/bean/workflow/WorkflowBean.java", "license": "lgpl-3.0", "size": 12893 }
[ "java.util.ArrayList", "java.util.List", "javax.faces.context.FacesContext", "javax.transaction.UserTransaction", "org.alfresco.service.cmr.workflow.WorkflowTask", "org.alfresco.service.cmr.workflow.WorkflowTaskQuery", "org.alfresco.service.cmr.workflow.WorkflowTaskState", "org.alfresco.web.app.Applic...
import java.util.ArrayList; import java.util.List; import javax.faces.context.FacesContext; import javax.transaction.UserTransaction; import org.alfresco.service.cmr.workflow.WorkflowTask; import org.alfresco.service.cmr.workflow.WorkflowTaskQuery; import org.alfresco.service.cmr.workflow.WorkflowTaskState; import org....
import java.util.*; import javax.faces.context.*; import javax.transaction.*; import org.alfresco.service.cmr.workflow.*; import org.alfresco.web.app.*; import org.alfresco.web.bean.repository.*; import org.alfresco.web.config.*; import org.alfresco.web.ui.common.*;
[ "java.util", "javax.faces", "javax.transaction", "org.alfresco.service", "org.alfresco.web" ]
java.util; javax.faces; javax.transaction; org.alfresco.service; org.alfresco.web;
1,195,030
public String getSensorId() throws SoapFault { try { if (this.sensorML == null) { logger.info("SensorML is null"); throw new SoapFault("SensorML document hasn't been supplied for this sensor!"); } // Element system = XmlUtils.findFirstInSubTree(sensorML, // SensorMLConstants.SYSTEM); Elem...
String function() throws SoapFault { try { if (this.sensorML == null) { logger.info(STR); throw new SoapFault(STR); } Element identification = XmlUtils.findFirstInSubTree(this.sensorML, SensorMLConstants.IDENTIFICATION); Element term = XmlUtils.findFirstInSubTree(identification, SensorMLConstants.TERM); if (SensorMLCon...
/** * The unique sensor-id from the sensorML * * @return the id as string * @throws SoapFault if an error occurred on retrieving the ID */
The unique sensor-id from the sensorML
getSensorId
{ "repo_name": "52North/SES", "path": "52n-ses-core/src/main/java/org/n52/ses/wsbr/PublisherEndpoint.java", "license": "gpl-2.0", "size": 11254 }
[ "org.apache.muse.util.xml.XmlUtils", "org.apache.muse.ws.addressing.soap.SoapFault", "org.n52.ses.api.common.SensorMLConstants", "org.w3c.dom.DOMException", "org.w3c.dom.Element", "org.w3c.dom.Node", "org.w3c.dom.Text" ]
import org.apache.muse.util.xml.XmlUtils; import org.apache.muse.ws.addressing.soap.SoapFault; import org.n52.ses.api.common.SensorMLConstants; import org.w3c.dom.DOMException; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.Text;
import org.apache.muse.util.xml.*; import org.apache.muse.ws.addressing.soap.*; import org.n52.ses.api.common.*; import org.w3c.dom.*;
[ "org.apache.muse", "org.n52.ses", "org.w3c.dom" ]
org.apache.muse; org.n52.ses; org.w3c.dom;
471,016
public void addNearEvicted(KeyCacheObject key) { if (nearEvicted == null) nearEvicted = new ArrayList<>(); nearEvicted.add(key); }
void function(KeyCacheObject key) { if (nearEvicted == null) nearEvicted = new ArrayList<>(); nearEvicted.add(key); }
/** * Adds near evicted key.. * * @param key Evicted key. */
Adds near evicted key.
addNearEvicted
{ "repo_name": "afinka77/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/distributed/dht/atomic/GridDhtAtomicUpdateResponse.java", "license": "apache-2.0", "size": 9400 }
[ "java.util.ArrayList", "org.apache.ignite.internal.processors.cache.KeyCacheObject" ]
import java.util.ArrayList; import org.apache.ignite.internal.processors.cache.KeyCacheObject;
import java.util.*; import org.apache.ignite.internal.processors.cache.*;
[ "java.util", "org.apache.ignite" ]
java.util; org.apache.ignite;
536,212
ImmutableList<SchemaOrgType> getFunctionalClassList();
ImmutableList<SchemaOrgType> getFunctionalClassList();
/** * Returns the value list of property functionalClass. Empty list is returned if the property not * set in current object. */
Returns the value list of property functionalClass. Empty list is returned if the property not set in current object
getFunctionalClassList
{ "repo_name": "google/schemaorg-java", "path": "src/main/java/com/google/schemaorg/core/Joint.java", "license": "apache-2.0", "size": 10295 }
[ "com.google.common.collect.ImmutableList", "com.google.schemaorg.SchemaOrgType" ]
import com.google.common.collect.ImmutableList; import com.google.schemaorg.SchemaOrgType;
import com.google.common.collect.*; import com.google.schemaorg.*;
[ "com.google.common", "com.google.schemaorg" ]
com.google.common; com.google.schemaorg;
1,473,532
public static void log(final String output, final Object[] array) { log(output, Arrays.asList(array)); }
static void function(final String output, final Object[] array) { log(output, Arrays.asList(array)); }
/** * Make a log entry, including the contents of an Object array. * * @param output The base log entry. * @param array The array to be output. */
Make a log entry, including the contents of an Object array
log
{ "repo_name": "jeisfeld/Augendiagnose", "path": "AugendiagnoseIdea/augendiagnoseLib/src/main/java/de/jeisfeld/augendiagnoselib/util/Logger.java", "license": "gpl-2.0", "size": 3263 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
386,062
private FlowEntry findNextTableIdEntry(DeviceId deviceId, int currentId) { final Comparator<FlowEntry> comparator = Comparator.comparing((FlowEntry f) -> ((IndexTableId) f.table()).id()); return Lists.newArrayList(flowNib.getFlowEntriesByState(deviceId, FlowEntry.FlowEntryState.ADDED) ...
FlowEntry function(DeviceId deviceId, int currentId) { final Comparator<FlowEntry> comparator = Comparator.comparing((FlowEntry f) -> ((IndexTableId) f.table()).id()); return Lists.newArrayList(flowNib.getFlowEntriesByState(deviceId, FlowEntry.FlowEntryState.ADDED) .iterator()).stream() .filter(f -> ((IndexTableId) f.t...
/** * Finds the flow entry with the minimun next table Id. * * @param deviceId the device to search * @param currentId the current id. the search will use this as minimum * @return the flow entry with the minimum table Id after the given one. */
Finds the flow entry with the minimun next table Id
findNextTableIdEntry
{ "repo_name": "oplinkoms/onos", "path": "apps/t3/app/src/main/java/org/onosproject/t3/impl/TroubleshootManager.java", "license": "apache-2.0", "size": 68520 }
[ "com.google.common.collect.Lists", "java.util.Comparator", "org.onosproject.net.DeviceId", "org.onosproject.net.flow.FlowEntry", "org.onosproject.net.flow.IndexTableId" ]
import com.google.common.collect.Lists; import java.util.Comparator; import org.onosproject.net.DeviceId; import org.onosproject.net.flow.FlowEntry; import org.onosproject.net.flow.IndexTableId;
import com.google.common.collect.*; import java.util.*; import org.onosproject.net.*; import org.onosproject.net.flow.*;
[ "com.google.common", "java.util", "org.onosproject.net" ]
com.google.common; java.util; org.onosproject.net;
1,480,009
@ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux<WorkflowTriggerInner> listAsync( String resourceGroupName, String workflowName, Integer top, String filter, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, workflowName, top, fil...
@ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<WorkflowTriggerInner> function( String resourceGroupName, String workflowName, Integer top, String filter, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, workflowName, top, filter, context), nextLink -> listNextSinglePage...
/** * Gets a list of workflow triggers. * * @param resourceGroupName The resource group name. * @param workflowName The workflow name. * @param top The number of items to be included in the result. * @param filter The filter to apply on the operation. * @param context The context to a...
Gets a list of workflow triggers
listAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/logic/azure-resourcemanager-logic/src/main/java/com/azure/resourcemanager/logic/implementation/WorkflowTriggersClientImpl.java", "license": "mit", "size": 67839 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedFlux", "com.azure.core.util.Context", "com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.core.util.Context; import com.azure.resourcemanager.logic.fluent.models.WorkflowTriggerInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.logic.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,421,840
ServerProfileSchemaDto getServerProfileSchemaByApplicationIdAndVersion(String applicationId, int version) throws ControlServiceException;
ServerProfileSchemaDto getServerProfileSchemaByApplicationIdAndVersion(String applicationId, int version) throws ControlServiceException;
/** * Gets the server profile schema by application id and server profile * schema version. * * @param applicationId * the application id * @param version * the server profile schema version * @return the server profile schema * @throws ControlServiceEx...
Gets the server profile schema by application id and server profile schema version
getServerProfileSchemaByApplicationIdAndVersion
{ "repo_name": "Oleh-Kravchenko/kaa", "path": "server/node/src/main/java/org/kaaproject/kaa/server/control/service/ControlService.java", "license": "apache-2.0", "size": 64761 }
[ "org.kaaproject.kaa.common.dto.ServerProfileSchemaDto", "org.kaaproject.kaa.server.control.service.exception.ControlServiceException" ]
import org.kaaproject.kaa.common.dto.ServerProfileSchemaDto; import org.kaaproject.kaa.server.control.service.exception.ControlServiceException;
import org.kaaproject.kaa.common.dto.*; import org.kaaproject.kaa.server.control.service.exception.*;
[ "org.kaaproject.kaa" ]
org.kaaproject.kaa;
2,395,665