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
// --------------------------------------------------------- // --- Visualization stuff --------------------------------- // --------------------------------------------------------- public Color ColorMenuHighLight () { if (localColorMenuHighLight==null) { localColorMenuHighLight = new Color(0, 0, 192); }...
Color function () { if (localColorMenuHighLight==null) { localColorMenuHighLight = new Color(0, 0, 192); } return localColorMenuHighLight; }
/** * Due this method the color for menu highlighting an be get * @return color for highlighted menus */
Due this method the color for menu highlighting an be get
ColorMenuHighLight
{ "repo_name": "EnFlexIT/AgentWorkbench", "path": "eclipseProjects/org.agentgui/bundles/org.agentgui.core/src/agentgui/core/config/GlobalInfo.java", "license": "lgpl-2.1", "size": 78561 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
53,469
private double getCountAllTfDim(final String sbKu, final int gew, final Integer tfFrom, final Integer tfTill, final Integer dimFrom, final Integer dimTill) { final List<SbPartObjGeschl> gemList = gemPartMap.get(sbKu); int count = 0; ...
double function(final String sbKu, final int gew, final Integer tfFrom, final Integer tfTill, final Integer dimFrom, final Integer dimTill) { final List<SbPartObjGeschl> gemList = gemPartMap.get(sbKu); int count = 0; for (final SbPartObjGeschl tmp : gemList) { if ((tmp.getId() == gew) && !tmp.getArt().equals("p") && va...
/** * DOCUMENT ME! * * @param sbKu DOCUMENT ME! * @param gew DOCUMENT ME! * @param tfFrom DOCUMENT ME! * @param tfTill DOCUMENT ME! * @param dimFrom DOCUMENT ME! * @param dimTill DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
getCountAllTfDim
{ "repo_name": "cismet/watergis-client", "path": "src/main/java/de/cismet/watergis/reports/GerinneGSbReport.java", "license": "lgpl-3.0", "size": 87145 }
[ "de.cismet.watergis.reports.types.SbPartObjGeschl", "java.util.List" ]
import de.cismet.watergis.reports.types.SbPartObjGeschl; import java.util.List;
import de.cismet.watergis.reports.types.*; import java.util.*;
[ "de.cismet.watergis", "java.util" ]
de.cismet.watergis; java.util;
2,254,542
private void enterTag(TagAnnotationData tag, boolean removeLast) { String text = tag.getTagValue(); List<String> l = SearchUtil.splitTerms(tagsArea.getText(), SearchUtil.COMMA_SEPARATOR); if (removeLast && l.size() > 0) l.remove(l.size()-1); String result = SearchUtil.formatString(text,...
void function(TagAnnotationData tag, boolean removeLast) { String text = tag.getTagValue(); List<String> l = SearchUtil.splitTerms(tagsArea.getText(), SearchUtil.COMMA_SEPARATOR); if (removeLast && l.size() > 0) l.remove(l.size()-1); String result = SearchUtil.formatString(text, l); tagsArea.getDocument().removeDocumen...
/** * Enters the tag. * * @param tag The tag value to enter. * @param removeLast Pass <code>true</code> to remove the last item, * <code>false</code> otherwise. */
Enters the tag
enterTag
{ "repo_name": "mtbc/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/dataBrowser/util/FilteringDialog.java", "license": "gpl-2.0", "size": 23822 }
[ "java.util.List", "org.openmicroscopy.shoola.util.ui.search.SearchUtil" ]
import java.util.List; import org.openmicroscopy.shoola.util.ui.search.SearchUtil;
import java.util.*; import org.openmicroscopy.shoola.util.ui.search.*;
[ "java.util", "org.openmicroscopy.shoola" ]
java.util; org.openmicroscopy.shoola;
1,865,338
public String toString() { if (_conn != null && _conn.getConnection() != null) { Class cls = _conn.getConnection().getClass(); Method []methods = cls.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { if (methods[i].getName().equals("toString") && methods[i]...
String function() { if (_conn != null && _conn.getConnection() != null) { Class cls = _conn.getConnection().getClass(); Method []methods = cls.getDeclaredMethods(); for (int i = 0; i < methods.length; i++) { if (methods[i].getName().equals(STR) && methods[i].getParameterTypes().length == 0) return STR + _conn.getConnec...
/** * Converts to a string. */
Converts to a string
toString
{ "repo_name": "dlitz/resin", "path": "modules/quercus/src/com/caucho/quercus/lib/db/Mysqli.java", "license": "gpl-2.0", "size": 42236 }
[ "java.lang.reflect.Method", "java.util.logging.Level" ]
import java.lang.reflect.Method; import java.util.logging.Level;
import java.lang.reflect.*; import java.util.logging.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
451,549
@Test public void getKeystoreSingleton() throws Exception { KeyStore ks1 = provider.getKeyStore(); KeyStore ks2 = provider.getKeyStore(); assertSame(ks1, ks2); }
void function() throws Exception { KeyStore ks1 = provider.getKeyStore(); KeyStore ks2 = provider.getKeyStore(); assertSame(ks1, ks2); }
/** * Assert that the keystore is a singleton. * * @throws Exception Should not be thrown. */
Assert that the keystore is a singleton
getKeystoreSingleton
{ "repo_name": "kangaroo-server/kangaroo", "path": "kangaroo-common/src/test/java/net/krotscheck/kangaroo/server/keystore/GeneratedKeystoreProviderTest.java", "license": "apache-2.0", "size": 7163 }
[ "java.security.KeyStore", "org.junit.Assert" ]
import java.security.KeyStore; import org.junit.Assert;
import java.security.*; import org.junit.*;
[ "java.security", "org.junit" ]
java.security; org.junit;
2,548,802
public static ExplosionEvent.Pre createExplosionEventPre(Game game, Cause cause, Explosion explosion, World targetWorld) { Map<String, Object> values = Maps.newHashMap(); values.put("game", game); values.put("cause", cause); values.put("explosion", explosion); values.put("tar...
static ExplosionEvent.Pre function(Game game, Cause cause, Explosion explosion, World targetWorld) { Map<String, Object> values = Maps.newHashMap(); values.put("game", game); values.put("cause", cause); values.put(STR, explosion); values.put(STR, targetWorld); return SpongeEventFactoryUtils.createEventImpl(ExplosionEve...
/** * AUTOMATICALLY GENERATED, DO NOT EDIT. * Creates a new instance of * {@link org.spongepowered.api.event.world.ExplosionEvent.Pre}. * * @param game The game * @param cause The cause * @param explosion The explosion * @param targetWorld The target world * @return A new p...
AUTOMATICALLY GENERATED, DO NOT EDIT. Creates a new instance of <code>org.spongepowered.api.event.world.ExplosionEvent.Pre</code>
createExplosionEventPre
{ "repo_name": "jamierocks/SpongeAPI", "path": "src/main/java/org/spongepowered/api/event/SpongeEventFactory.java", "license": "mit", "size": 196993 }
[ "com.google.common.collect.Maps", "java.util.Map", "org.spongepowered.api.Game", "org.spongepowered.api.event.cause.Cause", "org.spongepowered.api.event.world.ExplosionEvent", "org.spongepowered.api.world.World", "org.spongepowered.api.world.explosion.Explosion" ]
import com.google.common.collect.Maps; import java.util.Map; import org.spongepowered.api.Game; import org.spongepowered.api.event.cause.Cause; import org.spongepowered.api.event.world.ExplosionEvent; import org.spongepowered.api.world.World; import org.spongepowered.api.world.explosion.Explosion;
import com.google.common.collect.*; import java.util.*; import org.spongepowered.api.*; import org.spongepowered.api.event.cause.*; import org.spongepowered.api.event.world.*; import org.spongepowered.api.world.*; import org.spongepowered.api.world.explosion.*;
[ "com.google.common", "java.util", "org.spongepowered.api" ]
com.google.common; java.util; org.spongepowered.api;
2,173,324
public static Phylogeny getStructuralTree(MultipleAlignment msta) { double[][] rmsdMat = MultipleAlignmentTools.getRMSDMatrix(msta) .getArray(); BasicSymmetricalDistanceMatrix rmsdDist = (BasicSymmetricalDistanceMatrix) DistanceMatrixCalculator .structuralDistance(rmsdMat, 1, 5, 0.4); // Set the identi...
static Phylogeny function(MultipleAlignment msta) { double[][] rmsdMat = MultipleAlignmentTools.getRMSDMatrix(msta) .getArray(); BasicSymmetricalDistanceMatrix rmsdDist = (BasicSymmetricalDistanceMatrix) DistanceMatrixCalculator .structuralDistance(rmsdMat, 1, 5, 0.4); Map<String, Integer> alreadySeen = new HashMap<Str...
/** * Calculate a phylogenetic tree of the MultipleAlignment using RMSD * distances and the Neighbor Joining algorithm from forester. * * @param msta * MultipleAlignment of protein structures * @return Phylogeny phylogenetic tree * @throws CompoundNotFoundException */
Calculate a phylogenetic tree of the MultipleAlignment using RMSD distances and the Neighbor Joining algorithm from forester
getStructuralTree
{ "repo_name": "biojava/biojava", "path": "biojava-structure/src/main/java/org/biojava/nbio/structure/align/multiple/util/MultipleAlignmentTools.java", "license": "lgpl-2.1", "size": 33276 }
[ "java.util.HashMap", "java.util.Map", "org.biojava.nbio.phylo.DistanceMatrixCalculator", "org.biojava.nbio.phylo.TreeConstructor", "org.biojava.nbio.phylo.TreeConstructorType", "org.biojava.nbio.structure.align.multiple.MultipleAlignment", "org.forester.evoinference.matrix.distance.BasicSymmetricalDista...
import java.util.HashMap; import java.util.Map; import org.biojava.nbio.phylo.DistanceMatrixCalculator; import org.biojava.nbio.phylo.TreeConstructor; import org.biojava.nbio.phylo.TreeConstructorType; import org.biojava.nbio.structure.align.multiple.MultipleAlignment; import org.forester.evoinference.matrix.distance.B...
import java.util.*; import org.biojava.nbio.phylo.*; import org.biojava.nbio.structure.align.multiple.*; import org.forester.evoinference.matrix.distance.*; import org.forester.phylogeny.*;
[ "java.util", "org.biojava.nbio", "org.forester.evoinference", "org.forester.phylogeny" ]
java.util; org.biojava.nbio; org.forester.evoinference; org.forester.phylogeny;
180,741
@Test public void testObservableRetrieval() { Parameters p = NetworkTestHarness.getParameters().copy(); p = p.union(NetworkTestHarness.getDayDemoTestEncoderParams()); p.set(KEY.RANDOM, new MersenneTwister(42)); p.set(KEY.INFERRED_FIELDS, getInferredFieldsMap("dayOfWeek", CLAClass...
void function() { Parameters p = NetworkTestHarness.getParameters().copy(); p = p.union(NetworkTestHarness.getDayDemoTestEncoderParams()); p.set(KEY.RANDOM, new MersenneTwister(42)); p.set(KEY.INFERRED_FIELDS, getInferredFieldsMap(STR, CLAClassifier.class)); MultiEncoder me = MultiEncoder.builder().name("").build(); fi...
/** * Test that a given layer can return an {@link Observable} capable of * service multiple subscribers. */
Test that a given layer can return an <code>Observable</code> capable of service multiple subscribers
testObservableRetrieval
{ "repo_name": "numenta/htm.java", "path": "src/test/java/org/numenta/nupic/network/LayerTest.java", "license": "agpl-3.0", "size": 78893 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "org.numenta.nupic.Parameters", "org.numenta.nupic.algorithms.CLAClassifier", "org.numenta.nupic.algorithms.SpatialPooler", "org.numenta.nupic.algorithms.TemporalMemory", "org.numenta.nupic.encoders.MultiEncoder", "org.numenta.nupic.network.N...
import java.util.ArrayList; import java.util.List; import java.util.Map; import org.numenta.nupic.Parameters; import org.numenta.nupic.algorithms.CLAClassifier; import org.numenta.nupic.algorithms.SpatialPooler; import org.numenta.nupic.algorithms.TemporalMemory; import org.numenta.nupic.encoders.MultiEncoder; import o...
import java.util.*; import org.numenta.nupic.*; import org.numenta.nupic.algorithms.*; import org.numenta.nupic.encoders.*; import org.numenta.nupic.network.*; import org.numenta.nupic.util.*;
[ "java.util", "org.numenta.nupic" ]
java.util; org.numenta.nupic;
109,060
private int nodeJavaMajorVersion(ClusterNode node) throws IgniteCheckedException { String verStr = node.<String>attribute("java.version"); int res = U.majorJavaVersion(verStr); if (res == 0) { U.error(log, "Failed to get java major version (unknown 'java.version' format) [ver="...
int function(ClusterNode node) throws IgniteCheckedException { String verStr = node.<String>attribute(STR); int res = U.majorJavaVersion(verStr); if (res == 0) { U.error(log, STR + node.<String>attribute(STR) + "]"); } return res; }
/** * Gets Java major version running on the node. * * @param node Cluster node. * @return Java major version. * @throws IgniteCheckedException If failed to get the version. */
Gets Java major version running on the node
nodeJavaMajorVersion
{ "repo_name": "psadusumilli/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/managers/discovery/GridDiscoveryManager.java", "license": "apache-2.0", "size": 115443 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.cluster.ClusterNode", "org.apache.ignite.internal.util.typedef.internal.U" ]
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.cluster.ClusterNode; import org.apache.ignite.internal.util.typedef.internal.U;
import org.apache.ignite.*; import org.apache.ignite.cluster.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "org.apache.ignite" ]
org.apache.ignite;
676,339
@Test public void testValidParseIllegalBuild() { try { FlumeBuilder.buildSink(new Context(), "< null ? null ? null>"); } catch (FlumeSpecException e) { LOG.info(e.getMessage()); // this is a friendlier exception assertEquals("Only supports two retry nodes per failover expression", e ...
void function() { try { FlumeBuilder.buildSink(new Context(), STR); } catch (FlumeSpecException e) { LOG.info(e.getMessage()); assertEquals(STR, e .getMessage()); } try { FlumeBuilder.buildSink(new Context(), STR); } catch (FlumeSpecException e) { LOG.info(e.getMessage()); assertEquals( STR, e.getMessage()); } }
/** * Certain parts of the parser are more flexible bug currently unsupported * during build * * Example -- multiple retries, multiple decorators */
Certain parts of the parser are more flexible bug currently unsupported during build Example -- multiple retries, multiple decorators
testValidParseIllegalBuild
{ "repo_name": "anuragphadke/Flume-Hive", "path": "src/javatest/com/cloudera/flume/conf/TestParserErrorMessages.java", "license": "apache-2.0", "size": 3889 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,935,891
public static NetBIOSName FindName ( String nbName, char nbType, int tmo) throws java.io.IOException { // Call the main FindName method return FindName(new NetBIOSName(nbName, nbType, false), tmo, null); }
static NetBIOSName function ( String nbName, char nbType, int tmo) throws java.io.IOException { return FindName(new NetBIOSName(nbName, nbType, false), tmo, null); }
/** * Find a NetBIOS name on the network * * @param nbName NetBIOS name to search for, not yet RFC encoded * @param nbType Name type, appended as the 16th byte of the name * @param tmo Timeout value for receiving incoming datagrams * @return NetBIOS name details * @exception java.io.I...
Find a NetBIOS name on the network
FindName
{ "repo_name": "arcusys/Liferay-CIFS", "path": "source/java/org/alfresco/jlan/netbios/NetBIOSSession.java", "license": "gpl-3.0", "size": 57870 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
247,858
private double millisecondsToMinutes(long ms) { return new BigDecimal(ms / 1000.00 / 60.00).setScale(2, RoundingMode.HALF_UP).doubleValue(); }
double function(long ms) { return new BigDecimal(ms / 1000.00 / 60.00).setScale(2, RoundingMode.HALF_UP).doubleValue(); }
/** * Method to convert from milliseconds to minutes * * @param ms * @return */
Method to convert from milliseconds to minutes
millisecondsToMinutes
{ "repo_name": "carledriss/summarize-testng-reports", "path": "src/main/java/org/jenkinsci/plugins/reporting/xmlparse/ReportGenerator.java", "license": "mit", "size": 9501 }
[ "java.math.BigDecimal", "java.math.RoundingMode" ]
import java.math.BigDecimal; import java.math.RoundingMode;
import java.math.*;
[ "java.math" ]
java.math;
2,846,857
protected void enqueueOperation(int stageOp, Object[] args, OSDRequest request, Object callback) { // rq.setEnqueueNanos(System.nanoTime()); if (!q.offer(new StageRequest(stageOp, args, request, callback))) { if (request != null) { Logging.logMessage(Logging.LEVEL_WARN, t...
void function(int stageOp, Object[] args, OSDRequest request, Object callback) { if (!q.offer(new StageRequest(stageOp, args, request, callback))) { if (request != null) { Logging.logMessage(Logging.LEVEL_WARN, this, STR, request.getRequestId(), request.getFileId()); request.sendInternalServerError(new IllegalStateExce...
/** * send an request for a stage operation * * @param rq * the request * @param the * method in the stage to execute */
send an request for a stage operation
enqueueOperation
{ "repo_name": "gurkerl83/millipede-xtreemfs", "path": "java/servers/src/org/xtreemfs/osd/stages/Stage.java", "license": "bsd-3-clause", "size": 5136 }
[ "org.xtreemfs.foundation.logging.Logging", "org.xtreemfs.osd.OSDRequest" ]
import org.xtreemfs.foundation.logging.Logging; import org.xtreemfs.osd.OSDRequest;
import org.xtreemfs.foundation.logging.*; import org.xtreemfs.osd.*;
[ "org.xtreemfs.foundation", "org.xtreemfs.osd" ]
org.xtreemfs.foundation; org.xtreemfs.osd;
241,922
public long readUint64() throws IOException { // BEGIN android-changed long hi = readUint32(); long lo = readUint32(); return (hi << 32) | lo; // END android-changed }
long function() throws IOException { long hi = readUint32(); long lo = readUint32(); return (hi << 32) lo; }
/** * Reads and returns uint64 value. */
Reads and returns uint64 value
readUint64
{ "repo_name": "openweave/openweave-core", "path": "third_party/android/platform-libcore/android-platform-libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/SSLInputStream.java", "license": "apache-2.0", "size": 3914 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,210,967
this.failure = failure; if(failure!=null) { // Close the PipedInputStream to have any other thread blocked in a read/skip/available return immediately try { super.close(); } catch(IOException e) { // Swallow the exception ...
this.failure = failure; if(failure!=null) { try { super.close(); } catch(IOException e) { } } }
/** * Sets an IOException to be subsequently thrown by <code>read</code>, <code>skip</code> and * <code>available</code> methods. This method calls {@link #close()} to have any other thread blocked in a * read/skip/available return immediately and throw the specified exception. * * @param failu...
Sets an IOException to be subsequently thrown by <code>read</code>, <code>skip</code> and <code>available</code> methods. This method calls <code>#close()</code> to have any other thread blocked in a read/skip/available return immediately and throw the specified exception
setExternalFailure
{ "repo_name": "raisercostin/mucommander-2", "path": "src/main/com/mucommander/commons/io/FailSafePipedInputStream.java", "license": "gpl-3.0", "size": 4511 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
499,758
public void removeChangeListener(ChangeListener cl) { m_listeners.remove(cl); }
void function(ChangeListener cl) { m_listeners.remove(cl); }
/** * Remove a change listener listening to this component. * @param cl the change listener to remove */
Remove a change listener listening to this component
removeChangeListener
{ "repo_name": "luox12/onecmdb", "path": "org.onecmdb.graph/src/org/onecmdb/ml/graph/utils/JValueSlider.java", "license": "gpl-2.0", "size": 13038 }
[ "javax.swing.event.ChangeListener" ]
import javax.swing.event.ChangeListener;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
2,833,807
public double getLatitudeRad() { return toRadians(lat); }
double function() { return toRadians(lat); }
/** * Returns the latitude. * * @return Latitude, in radians. */
Returns the latitude
getLatitudeRad
{ "repo_name": "shred/commons-suncalc", "path": "src/main/java/org/shredzone/commons/suncalc/util/BaseBuilder.java", "license": "apache-2.0", "size": 5413 }
[ "java.lang.Math" ]
import java.lang.Math;
import java.lang.*;
[ "java.lang" ]
java.lang;
1,702,124
public static Thread setDaemonThreadRunning(final Thread t, final String name, final UncaughtExceptionHandler handler) { t.setName(name); if (handler != null) { t.setUncaughtExceptionHandler(handler); } t.setDaemon(true); t.start(); return t; }
static Thread function(final Thread t, final String name, final UncaughtExceptionHandler handler) { t.setName(name); if (handler != null) { t.setUncaughtExceptionHandler(handler); } t.setDaemon(true); t.start(); return t; }
/** * Utility method that sets name, daemon status and starts passed thread. * @param t thread to frob * @param name new name * @param handler A handler to set on the thread. Pass null if want to * use default handler. * @return Returns the passed Thread <code>t</code>. */
Utility method that sets name, daemon status and starts passed thread
setDaemonThreadRunning
{ "repo_name": "juwi/hbase", "path": "hbase-common/src/main/java/org/apache/hadoop/hbase/util/Threads.java", "license": "apache-2.0", "size": 11589 }
[ "java.lang.Thread" ]
import java.lang.Thread;
import java.lang.*;
[ "java.lang" ]
java.lang;
732,702
@Nullable public DriveItemVersion get() throws ClientException { return send(HttpMethod.GET, null); }
DriveItemVersion function() throws ClientException { return send(HttpMethod.GET, null); }
/** * Gets the DriveItemVersion from the service * * @return the DriveItemVersion from the request * @throws ClientException this exception occurs if the request was unable to complete for any reason */
Gets the DriveItemVersion from the service
get
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/DriveItemVersionRequest.java", "license": "mit", "size": 5993 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.DriveItemVersion" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.DriveItemVersion;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; import com.microsoft.graph.models.*;
[ "com.microsoft.graph" ]
com.microsoft.graph;
637,347
public static void sendCoverageResponse(GetCoverageRequest req, HttpServletResponse response, boolean useSoapEnvelope) throws WcsException, InterruptedException { String id = req.getCoverageID(); boolean b = CatalogWrapper.hasCoverage(id); if(!b) throw new WcsException("No such...
static void function(GetCoverageRequest req, HttpServletResponse response, boolean useSoapEnvelope) throws WcsException, InterruptedException { String id = req.getCoverageID(); boolean b = CatalogWrapper.hasCoverage(id); if(!b) throw new WcsException(STR+ Scrub.fileName(id), WcsException.INVALID_PARAMETER_VALUE,STR); S...
/** * This method is the primary entry point for handling a wcs:GetCoverage request. * * * @param req The GetCoverageRequest object built fromt the client request. * @return The wcs:Coverages document generated by the request * @throws WcsException When a wcs:Coverages response document ca...
This method is the primary entry point for handling a wcs:GetCoverage request
sendCoverageResponse
{ "repo_name": "OPENDAP/olfs", "path": "retired/src/opendap/wcs/v1_1_2/CoverageRequestProcessor.java", "license": "lgpl-2.1", "size": 11446 }
[ "java.util.Iterator", "javax.servlet.http.HttpServletResponse", "org.jdom.Document", "org.jdom.Element", "org.jdom.Namespace", "org.slf4j.Logger", "org.slf4j.LoggerFactory" ]
import java.util.Iterator; import javax.servlet.http.HttpServletResponse; import org.jdom.Document; import org.jdom.Element; import org.jdom.Namespace; import org.slf4j.Logger; import org.slf4j.LoggerFactory;
import java.util.*; import javax.servlet.http.*; import org.jdom.*; import org.slf4j.*;
[ "java.util", "javax.servlet", "org.jdom", "org.slf4j" ]
java.util; javax.servlet; org.jdom; org.slf4j;
2,369,040
@Nonnull public T createRecord(@Nullable final Map<String,Object> data, @Nullable final Consumer<T> onCreation) throws RecordException { if(data != null) { //just to make sure, ID is not overridden data.remove( getPrimaryColumn()); } final int key = store.insertNewRecord(this, data); final T record...
T function(@Nullable final Map<String,Object> data, @Nullable final Consumer<T> onCreation) throws RecordException { if(data != null) { data.remove( getPrimaryColumn()); } final int key = store.insertNewRecord(this, data); final T record = createProxy(key, true, data); records.put( key, record ); if(onCreation != null)...
/** * This method creates a new entry in the underlying record-store. * <p> * If <code>onCreation</code> is not <code>null</code>, it will be called with the newly created record * before any {@link RecordCallbacks#afterCreate() callbacks} or {@link RecordListener} are called. * Thus providing the caller an o...
This method creates a new entry in the underlying record-store. If <code>onCreation</code> is not <code>null</code>, it will be called with the newly created record before any <code>RecordCallbacks#afterCreate() callbacks</code> or <code>RecordListener</code> are called. Thus providing the caller an opportunity to init...
createRecord
{ "repo_name": "doe300/jactiverecord", "path": "src/de/doe300/activerecord/RecordBase.java", "license": "mit", "size": 19825 }
[ "de.doe300.activerecord.record.RecordCallbacks", "java.util.Map", "java.util.function.Consumer", "javax.annotation.Nullable" ]
import de.doe300.activerecord.record.RecordCallbacks; import java.util.Map; import java.util.function.Consumer; import javax.annotation.Nullable;
import de.doe300.activerecord.record.*; import java.util.*; import java.util.function.*; import javax.annotation.*;
[ "de.doe300.activerecord", "java.util", "javax.annotation" ]
de.doe300.activerecord; java.util; javax.annotation;
735,340
public void setInheritanceInfo(CmsInheritanceInfo inheritanceInfo) { m_inheritanceInfo = inheritanceInfo; }
void function(CmsInheritanceInfo inheritanceInfo) { m_inheritanceInfo = inheritanceInfo; }
/** * Sets the inheritance info for this element.<p> * * @param inheritanceInfo the inheritance info for this element to set */
Sets the inheritance info for this element
setInheritanceInfo
{ "repo_name": "mediaworx/opencms-core", "path": "src-gwt/org/opencms/ade/containerpage/client/ui/CmsContainerPageElementPanel.java", "license": "lgpl-2.1", "size": 37674 }
[ "org.opencms.ade.containerpage.shared.CmsInheritanceInfo" ]
import org.opencms.ade.containerpage.shared.CmsInheritanceInfo;
import org.opencms.ade.containerpage.shared.*;
[ "org.opencms.ade" ]
org.opencms.ade;
543,276
public int getArticleCntInDay(final Date day) { final long time = day.getTime(); final long start = Times.getDayStartTime(time); final long end = Times.getDayEndTime(time); final Query query = new Query().setFilter(CompositeFilterOperator.and( new PropertyFilter(Keys...
int function(final Date day) { final long time = day.getTime(); final long start = Times.getDayStartTime(time); final long end = Times.getDayEndTime(time); final Query query = new Query().setFilter(CompositeFilterOperator.and( new PropertyFilter(Keys.OBJECT_ID, FilterOperator.GREATER_THAN_OR_EQUAL, start), new Property...
/** * Gets article count of the specified day. * * @param day the specified day * @return article count */
Gets article count of the specified day
getArticleCntInDay
{ "repo_name": "FangStarNet/symphonyx", "path": "src/main/java/org/b3log/symphony/service/ArticleQueryService.java", "license": "apache-2.0", "size": 57740 }
[ "java.util.Date", "org.b3log.latke.Keys", "org.b3log.latke.logging.Level", "org.b3log.latke.repository.CompositeFilterOperator", "org.b3log.latke.repository.FilterOperator", "org.b3log.latke.repository.PropertyFilter", "org.b3log.latke.repository.Query", "org.b3log.latke.repository.RepositoryException...
import java.util.Date; import org.b3log.latke.Keys; import org.b3log.latke.logging.Level; import org.b3log.latke.repository.CompositeFilterOperator; import org.b3log.latke.repository.FilterOperator; import org.b3log.latke.repository.PropertyFilter; import org.b3log.latke.repository.Query; import org.b3log.latke.reposit...
import java.util.*; import org.b3log.latke.*; import org.b3log.latke.logging.*; import org.b3log.latke.repository.*; import org.b3log.symphony.model.*; import org.b3log.symphony.util.*;
[ "java.util", "org.b3log.latke", "org.b3log.symphony" ]
java.util; org.b3log.latke; org.b3log.symphony;
2,247,468
public Path[] createInputSources(List<Path> paths, FileSystem outputFs) throws IOException { int suggestedMapRedTasks = conf.getInt("mapred.map.tasks", 1); Path[] inputSources = new Path[suggestedMapRedTasks]; for (int i=0; i < inputSources.length; i++) { inputSources[i] = new Path(NAME + "-inputsource" + i...
Path[] function(List<Path> paths, FileSystem outputFs) throws IOException { int suggestedMapRedTasks = conf.getInt(STR, 1); Path[] inputSources = new Path[suggestedMapRedTasks]; for (int i=0; i < inputSources.length; i++) { inputSources[i] = new Path(NAME + STR + i + ".txt"); } List<BufferedWriter> writers = new ArrayL...
/** * Get the input source files to be used as input for the backup mappers * @param inputFs * @param inputPath * @param outputFs * @return * @throws IOException */
Get the input source files to be used as input for the backup mappers
createInputSources
{ "repo_name": "mozilla-metrics/akela", "path": "src/main/java/com/mozilla/hadoop/Backup.java", "license": "apache-2.0", "size": 13751 }
[ "java.io.BufferedWriter", "java.io.IOException", "java.io.OutputStreamWriter", "java.util.ArrayList", "java.util.List", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path" ]
import java.io.BufferedWriter; import java.io.IOException; import java.io.OutputStreamWriter; import java.util.ArrayList; import java.util.List; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path;
import java.io.*; import java.util.*; import org.apache.hadoop.fs.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
685,199
void writeSmallInt(int value) throws IOException;
void writeSmallInt(int value) throws IOException;
/** * Writes a signed 32 bit int value whose value is likely to be small and positive but may not be. The implementation may encode the value in a way that * is more efficient for small positive values. */
Writes a signed 32 bit int value whose value is likely to be small and positive but may not be. The implementation may encode the value in a way that is more efficient for small positive values
writeSmallInt
{ "repo_name": "gstevey/gradle", "path": "subprojects/messaging/src/main/java/org/gradle/internal/serialize/Encoder.java", "license": "apache-2.0", "size": 3234 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,437,687
private void assertExtendSignaturePossible() throws DSSException { final SignatureLevel signatureLevel = params.getSignatureLevel(); if (SignatureLevel.XAdES_BASELINE_LT.equals(signatureLevel) && xadesSignature.hasLTAProfile()) { final String exceptionMessage = "Cannot extend signature. The signedData is al...
void function() throws DSSException { final SignatureLevel signatureLevel = params.getSignatureLevel(); if (SignatureLevel.XAdES_BASELINE_LT.equals(signatureLevel) && xadesSignature.hasLTAProfile()) { final String exceptionMessage = STR; throw new DSSException(String.format(exceptionMessage, STR)); } }
/** * Checks if the extension is possible. */
Checks if the extension is possible
assertExtendSignaturePossible
{ "repo_name": "alisdev/dss", "path": "dss-xades/src/main/java/eu/europa/esig/dss/xades/signature/XAdESLevelBaselineLT.java", "license": "lgpl-2.1", "size": 7735 }
[ "eu.europa.esig.dss.DSSException", "eu.europa.esig.dss.SignatureLevel" ]
import eu.europa.esig.dss.DSSException; import eu.europa.esig.dss.SignatureLevel;
import eu.europa.esig.dss.*;
[ "eu.europa.esig" ]
eu.europa.esig;
2,793,143
public void testAppendSrcDoesNotExist() throws IOException { Configuration conf = new Configuration(); if (!isOnPhysicalCluster()) { conf.set(CommonArgs.FS_DEFAULT_NAME, CommonArgs.LOCAL_FS); } SqoopOptions options = new SqoopOptions(conf); options.setTableName("meep"); Path missingPath ...
void function() throws IOException { Configuration conf = new Configuration(); if (!isOnPhysicalCluster()) { conf.set(CommonArgs.FS_DEFAULT_NAME, CommonArgs.LOCAL_FS); } SqoopOptions options = new SqoopOptions(conf); options.setTableName("meep"); Path missingPath = new Path(STR); FileSystem local = FileSystem.getLocal(...
/** * If the append source does not exist, don't crash. */
If the append source does not exist, don't crash
testAppendSrcDoesNotExist
{ "repo_name": "beni55/sqoop", "path": "src/test/com/cloudera/sqoop/TestAppendUtils.java", "license": "apache-2.0", "size": 9566 }
[ "com.cloudera.sqoop.manager.ImportJobContext", "com.cloudera.sqoop.testutil.CommonArgs", "com.cloudera.sqoop.util.AppendUtils", "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.FileSystem", "org.apache.hadoop.fs.Path" ]
import com.cloudera.sqoop.manager.ImportJobContext; import com.cloudera.sqoop.testutil.CommonArgs; import com.cloudera.sqoop.util.AppendUtils; import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path;
import com.cloudera.sqoop.manager.*; import com.cloudera.sqoop.testutil.*; import com.cloudera.sqoop.util.*; import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*;
[ "com.cloudera.sqoop", "java.io", "org.apache.hadoop" ]
com.cloudera.sqoop; java.io; org.apache.hadoop;
2,150,447
private LogstashIndexerDao getDaoOrNull() { try { return getDao(); } catch (InstantiationException e) { String msg = ExceptionUtils.getMessage(e) + "\n" + "[logstash-plugin]: Unable to instantiate LogstashIndexerDao with current configuration.\n"; logErrorMessage(msg); } re...
LogstashIndexerDao function() { try { return getDao(); } catch (InstantiationException e) { String msg = ExceptionUtils.getMessage(e) + "\n" + STR; logErrorMessage(msg); } return null; }
/** * Construct a valid indexerDao or return null. * Writes errors to errorStream if dao constructor fails. * * @return valid {@link LogstashIndexerDao} or return null. */
Construct a valid indexerDao or return null. Writes errors to errorStream if dao constructor fails
getDaoOrNull
{ "repo_name": "gabecase/logstash-plugin-fork", "path": "src/main/java/jenkins/plugins/logstash/LogstashWriter.java", "license": "mit", "size": 6461 }
[ "org.apache.commons.lang.exception.ExceptionUtils" ]
import org.apache.commons.lang.exception.ExceptionUtils;
import org.apache.commons.lang.exception.*;
[ "org.apache.commons" ]
org.apache.commons;
2,863,637
public static FileReader getFileReader(final File file) throws FileNotFoundException { if (file == null) { throw new IllegalArgumentException("file cannot be <null>"); }
static FileReader function(final File file) throws FileNotFoundException { if (file == null) { throw new IllegalArgumentException(STR); }
/** * Obtains a reader for the specified file. * * @param file the file to obtain a reader for * @return An unbuffered reader for the specified file. * @throws FileNotFoundException if the specified file does not exist * @throws SecurityException if the required permissions to read the fil...
Obtains a reader for the specified file
getFileReader
{ "repo_name": "trejkaz/derby", "path": "java/testing/org/apache/derbyTesting/functionTests/util/PrivilegedFileOpsForTests.java", "license": "apache-2.0", "size": 19681 }
[ "java.io.File", "java.io.FileNotFoundException", "java.io.FileReader" ]
import java.io.File; import java.io.FileNotFoundException; import java.io.FileReader;
import java.io.*;
[ "java.io" ]
java.io;
2,091,519
@Override @SuppressWarnings("fallthrough") public int hash(byte[] key, int off, int nbytes, int initval) { int length = nbytes; int a, b, c; a = b = c = 0xdeadbeef + length + initval; int offset = off; for (; length > 12; offset += 12, length -= 12) { a += (key[offset] & BYTE_MASK); ...
@SuppressWarnings(STR) int function(byte[] key, int off, int nbytes, int initval) { int length = nbytes; int a, b, c; a = b = c = 0xdeadbeef + length + initval; int offset = off; for (; length > 12; offset += 12, length -= 12) { a += (key[offset] & BYTE_MASK); a += ((key[offset + 1] & BYTE_MASK) << 8); a += ((key[offse...
/** * taken from hashlittle() -- hash a variable-length key into a 32-bit value * * @param key the key (the unaligned variable-length array of bytes) * @param nbytes number of bytes to include in hash * @param initval can be any integer value * @return a 32-bit value. Every bit of the key affects ev...
taken from hashlittle() -- hash a variable-length key into a 32-bit value
hash
{ "repo_name": "zqxjjj/NobidaBase", "path": "target/hbase-0.94.9/hbase-0.94.9/src/main/java/org/apache/hadoop/hbase/util/JenkinsHash.java", "license": "apache-2.0", "size": 9842 }
[ "java.lang.Integer" ]
import java.lang.Integer;
import java.lang.*;
[ "java.lang" ]
java.lang;
151,989
void unregisterShm(ShmId shmId) { lock.lock(); try { full.remove(shmId); notFull.remove(shmId); } finally { lock.unlock(); } }
void unregisterShm(ShmId shmId) { lock.lock(); try { full.remove(shmId); notFull.remove(shmId); } finally { lock.unlock(); } }
/** * Unregister a shared memory segment. * * Once a segment is unregistered, we will not allocate any more slots * inside that segment. * * The DomainSocketWatcher calls this while holding the DomainSocketWatcher * lock. * * @param shmId The ID of the shared memory ...
Unregister a shared memory segment. Once a segment is unregistered, we will not allocate any more slots inside that segment. The DomainSocketWatcher calls this while holding the DomainSocketWatcher lock
unregisterShm
{ "repo_name": "ouyangjie/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/shortcircuit/DfsClientShmManager.java", "license": "apache-2.0", "size": 18236 }
[ "org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm" ]
import org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm;
import org.apache.hadoop.hdfs.shortcircuit.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,758,603
private void testSQLScript(String propertyPath, String property, int primaryKey, int unique, int check, int foreignKey, List<String> names) { testSQLScript(propertyPath, null, property, primaryKey, unique, check, foreignKey, names); }
void function(String propertyPath, String property, int primaryKey, int unique, int check, int foreignKey, List<String> names) { testSQLScript(propertyPath, null, property, primaryKey, unique, check, foreignKey, names); }
/** * Test the database script for constraint parsing * * @param propertyPath * property path * @param property * property * @param primaryKey * expected primary key count * @param unique * expected unique count * @param check * expected ch...
Test the database script for constraint parsing
testSQLScript
{ "repo_name": "ngageoint/geopackage-core-java", "path": "src/test/java/mil/nga/geopackage/db/table/ConstraintTest.java", "license": "mit", "size": 16739 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
765,839
public static boolean isUserInRole(HttpServletRequest it, String arg) { return ((Boolean)invoke(isUserInRole, it, new Object[] { arg })) .booleanValue(); }
static boolean function(HttpServletRequest it, String arg) { return ((Boolean)invoke(isUserInRole, it, new Object[] { arg })) .booleanValue(); }
/** * Throws <TT>MissingMethodError</TT> when run against 2.0 API. * * @param it * the HttpServletRequest * @param arg * @return a <code>boolean</code> indicating whether * the user making this request belongs to a given role; * <code>false</code> if the user has not been ...
Throws MissingMethodError when run against 2.0 API
isUserInRole
{ "repo_name": "timp21337/melati-old", "path": "melati/src/main/java/org/melati/util/HttpServletRequestCompat.java", "license": "gpl-2.0", "size": 29558 }
[ "javax.servlet.http.HttpServletRequest" ]
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
2,137,116
public static Object invokeMethod(Object instance, String className, PackageType packageType, String methodName, Object... arguments) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException { return invokeMethod(instance, packageType...
static Object function(Object instance, String className, PackageType packageType, String methodName, Object... arguments) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException, ClassNotFoundException { return invokeMethod(instance, packageType.getClass(className), me...
/** * Invokes a method of a desired class on an object with the given arguments * * @param instance Target object * @param className Name of the desired target class * @param packageType Package where the desired target class is located * @param methodName Name of the desired method ...
Invokes a method of a desired class on an object with the given arguments
invokeMethod
{ "repo_name": "scorixear/NyanFighters", "path": "com/darkblade12/particleeffect/ReflectionUtils.java", "license": "mit", "size": 30508 }
[ "java.lang.reflect.InvocationTargetException" ]
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
946,275
VOGeoServerLabelling testObj = new VOGeoServerLabelling(TextSymbolizerDetails.class); assertNotNull(testObj.getVendorOption()); }
VOGeoServerLabelling testObj = new VOGeoServerLabelling(TextSymbolizerDetails.class); assertNotNull(testObj.getVendorOption()); }
/** * Test method for {@link * com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerLabelling#getVendorOption()}. */
Test method for <code>com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerLabelling#getVendorOption()</code>
testGetVendorOption
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/test/java/com/sldeditor/test/unit/ui/detail/vendor/geoserver/text/VOGeoServerLabellingTest.java", "license": "gpl-3.0", "size": 13605 }
[ "com.sldeditor.ui.detail.TextSymbolizerDetails", "com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerLabelling", "org.junit.jupiter.api.Assertions" ]
import com.sldeditor.ui.detail.TextSymbolizerDetails; import com.sldeditor.ui.detail.vendor.geoserver.text.VOGeoServerLabelling; import org.junit.jupiter.api.Assertions;
import com.sldeditor.ui.detail.*; import com.sldeditor.ui.detail.vendor.geoserver.text.*; import org.junit.jupiter.api.*;
[ "com.sldeditor.ui", "org.junit.jupiter" ]
com.sldeditor.ui; org.junit.jupiter;
1,903,603
public static MozuClient deleteCurrencyExchangeRateClient(String currencyCode, String toCurrencyCode) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.catalog.admin.CurrencyLocalizationUrl.deleteCurrencyExchangeRateUrl(currencyCode, toCurrencyCode); String verb = "DELETE"; MozuClient mozuClient =...
static MozuClient function(String currencyCode, String toCurrencyCode) throws Exception { MozuUrl url = com.mozu.api.urls.commerce.catalog.admin.CurrencyLocalizationUrl.deleteCurrencyExchangeRateUrl(currencyCode, toCurrencyCode); String verb = STR; MozuClient mozuClient = (MozuClient) MozuClientFactory.getInstance(); m...
/** * * <p><pre><code> * MozuClient mozuClient=DeleteCurrencyExchangeRateClient( currencyCode, toCurrencyCode); * client.setBaseAddress(url); * client.executeRequest(); * </code></pre></p> * @param currencyCode The three character ISO currency code, such as USD for US Dollars. * @param toCurrencyCod...
<code><code> MozuClient mozuClient=DeleteCurrencyExchangeRateClient( currencyCode, toCurrencyCode); client.setBaseAddress(url); client.executeRequest(); </code></code>
deleteCurrencyExchangeRateClient
{ "repo_name": "Mozu/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/clients/commerce/catalog/admin/CurrencyLocalizationClient.java", "license": "mit", "size": 19746 }
[ "com.mozu.api.MozuClient", "com.mozu.api.MozuClientFactory", "com.mozu.api.MozuUrl" ]
import com.mozu.api.MozuClient; import com.mozu.api.MozuClientFactory; import com.mozu.api.MozuUrl;
import com.mozu.api.*;
[ "com.mozu.api" ]
com.mozu.api;
1,108,107
@Override public AgentInfo getInitialAgentInfo(final String agentId) { Objects.requireNonNull(agentId, "agentId"); Scan scan = createScanForInitialAgentInfo(agentId); TableName agentInfoTableName = descriptor.getTableName(); return this.hbaseOperations2.find(agentInfoTableName,...
AgentInfo function(final String agentId) { Objects.requireNonNull(agentId, STR); Scan scan = createScanForInitialAgentInfo(agentId); TableName agentInfoTableName = descriptor.getTableName(); return this.hbaseOperations2.find(agentInfoTableName, scan, agentInfoResultsExtractor); }
/** * Returns the very first information of the agent * * @param agentId */
Returns the very first information of the agent
getInitialAgentInfo
{ "repo_name": "jaehong-kim/pinpoint", "path": "web/src/main/java/com/navercorp/pinpoint/web/dao/hbase/HbaseAgentInfoDao.java", "license": "apache-2.0", "size": 5687 }
[ "com.navercorp.pinpoint.web.vo.AgentInfo", "java.util.Objects", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.client.Scan" ]
import com.navercorp.pinpoint.web.vo.AgentInfo; import java.util.Objects; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Scan;
import com.navercorp.pinpoint.web.vo.*; import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*;
[ "com.navercorp.pinpoint", "java.util", "org.apache.hadoop" ]
com.navercorp.pinpoint; java.util; org.apache.hadoop;
1,031,001
super.onCreate(); Security.removeProvider(BouncyCastleProvider.PROVIDER_NAME); Security.insertProviderAt(new BouncyCastleProvider(), 1); PRNGFixes.apply(); Log.d(Constants.TAG, "Bouncy Castle set and PRNG Fixes applied!"); // Create OpenKeychain dire...
super.onCreate(); Security.removeProvider(BouncyCastleProvider.PROVIDER_NAME); Security.insertProviderAt(new BouncyCastleProvider(), 1); PRNGFixes.apply(); Log.d(Constants.TAG, STR); if (Environment.getExternalStorageState().equals(Environment.MEDIA_MOUNTED)) { if (!Constants.Path.APP_DIR.exists() && !Constants.Path.AP...
/** * Called when the application is starting, before any activity, service, or receiver objects * (excluding content providers) have been created. */
Called when the application is starting, before any activity, service, or receiver objects (excluding content providers) have been created
onCreate
{ "repo_name": "fjodorver/open-keychain", "path": "OpenKeychain/src/main/java/org/sufficientlysecure/keychain/KeychainApplication.java", "license": "gpl-3.0", "size": 8003 }
[ "android.os.Environment", "java.security.Security", "org.bouncycastle.jce.provider.BouncyCastleProvider", "org.sufficientlysecure.keychain.provider.KeychainDatabase", "org.sufficientlysecure.keychain.provider.TemporaryFileProvider", "org.sufficientlysecure.keychain.service.ContactSyncAdapterService", "o...
import android.os.Environment; import java.security.Security; import org.bouncycastle.jce.provider.BouncyCastleProvider; import org.sufficientlysecure.keychain.provider.KeychainDatabase; import org.sufficientlysecure.keychain.provider.TemporaryFileProvider; import org.sufficientlysecure.keychain.service.ContactSyncAdap...
import android.os.*; import java.security.*; import org.bouncycastle.jce.provider.*; import org.sufficientlysecure.keychain.provider.*; import org.sufficientlysecure.keychain.service.*; import org.sufficientlysecure.keychain.ui.util.*; import org.sufficientlysecure.keychain.util.*;
[ "android.os", "java.security", "org.bouncycastle.jce", "org.sufficientlysecure.keychain" ]
android.os; java.security; org.bouncycastle.jce; org.sufficientlysecure.keychain;
2,513,854
public void writeCacheValue(final String key, final CASValue<Object> value) { this.memcachedClient.asyncCAS(key, value.getCas(), value.getValue()); }
void function(final String key, final CASValue<Object> value) { this.memcachedClient.asyncCAS(key, value.getCas(), value.getValue()); }
/** * Write and unlock value * @param key * @param value */
Write and unlock value
writeCacheValue
{ "repo_name": "mnxfst/basar-track", "path": "src/main/java/com/mnxfst/basar/tracking/cache/CacheValueWriter.java", "license": "apache-2.0", "size": 2630 }
[ "net.spy.memcached.CASValue" ]
import net.spy.memcached.CASValue;
import net.spy.memcached.*;
[ "net.spy.memcached" ]
net.spy.memcached;
432,919
@Override public WikiDatabaseService savePage(int id, String markdown, Handler<AsyncResult<Void>> resultHandler) { getConnection() .flatMap(conn -> conn.rxUpdateWithParams(sqlQueries.get(SqlQuery.SAVE_PAGE), new JsonArray().add(markdown).add(id))) .map(res -> (Void) null) .subscribe(RxHelper.t...
WikiDatabaseService function(int id, String markdown, Handler<AsyncResult<Void>> resultHandler) { getConnection() .flatMap(conn -> conn.rxUpdateWithParams(sqlQueries.get(SqlQuery.SAVE_PAGE), new JsonArray().add(markdown).add(id))) .map(res -> (Void) null) .subscribe(RxHelper.toSubscriber(resultHandler)); return this; }
/** * Save a page by id * * @param id * @param markdown * @param resultHandler * @return */
Save a page by id
savePage
{ "repo_name": "wujun/vertx-wiki", "path": "src/main/java/io/vertx/starter/database/WikiDatabaseServiceImpl.java", "license": "mit", "size": 5912 }
[ "io.vertx.core.AsyncResult", "io.vertx.core.Handler", "io.vertx.core.json.JsonArray", "io.vertx.rx.java.RxHelper" ]
import io.vertx.core.AsyncResult; import io.vertx.core.Handler; import io.vertx.core.json.JsonArray; import io.vertx.rx.java.RxHelper;
import io.vertx.core.*; import io.vertx.core.json.*; import io.vertx.rx.java.*;
[ "io.vertx.core", "io.vertx.rx" ]
io.vertx.core; io.vertx.rx;
2,071,221
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<LoadBalancerInner>> listNextSinglePageAsync(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); } return FluxUt...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<LoadBalancerInner>> function(String nextLink) { if (nextLink == null) { return Mono.error(new IllegalArgumentException(STR)); } return FluxUtil .withContext(context -> service.listNext(nextLink, context)) .<PagedResponse<LoadBalancerInner>>map( res -> new P...
/** * Get the next page of items. * * @param nextLink The nextLink parameter. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked excepti...
Get the next page of items
listNextSinglePageAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkInterfaceLoadBalancersClientImpl.java", "license": "mit", "size": 15340 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.network.fluent.models.LoadBalancerInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.network.fluent.models.LoadBalancerInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,690,033
void clear() { Arrays.fill(status, 0, size, (byte) 0); Arrays.fill(entries, 0, size, null); Arrays.fill(deps, 0, size, null); lowDep = -1; size = 0; }
void clear() { Arrays.fill(status, 0, size, (byte) 0); Arrays.fill(entries, 0, size, null); Arrays.fill(deps, 0, size, null); lowDep = -1; size = 0; }
/** * Resets table to its initial state. */
Resets table to its initial state
clear
{ "repo_name": "shelan/jdk9-mirror", "path": "jdk/src/java.base/share/classes/java/io/ObjectInputStream.java", "license": "gpl-2.0", "size": 137616 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,670,478
public static String getString(Context context, String key, String defaultValue) { SharedPreferences settings = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); return settings.getString(key, defaultValue); }
static String function(Context context, String key, String defaultValue) { SharedPreferences settings = context.getSharedPreferences(PREFERENCE_NAME, Context.MODE_PRIVATE); return settings.getString(key, defaultValue); }
/** * get string preferences * * @param context * @param key The name of the preference to retrieve * @param defaultValue Value to return if this preference does not exist * @return The preference value if it exists, or defValue. Throws ClassCastException if there is a preference with ...
get string preferences
getString
{ "repo_name": "Alexander0024/alexsophialib", "path": "AlexsophiaLib/src/com/alexsophia/alexsophialib/util/preferences/PreferencesUtils.java", "license": "gpl-2.0", "size": 9824 }
[ "android.content.Context", "android.content.SharedPreferences" ]
import android.content.Context; import android.content.SharedPreferences;
import android.content.*;
[ "android.content" ]
android.content;
2,140,603
public static void reportErrorToAdmins(String from, String subject, String body) throws MessagingException { if (0 < foolMessagePost) { foolMessagePost--; throw new MessagingException("Done in purpose!"); } Session session = Session.getDefaultInstance(new Properties(...
static void function(String from, String subject, String body) throws MessagingException { if (0 < foolMessagePost) { foolMessagePost--; throw new MessagingException(STR); } Session session = Session.getDefaultInstance(new Properties(), null); MimeMessage messageToForward = new MimeMessage(session); messageToForward.se...
/** * Send the specified message to the recipients of the "administrators" list * * @param from * Message initiator * @param subject * Message subject * @param body * Message content * * @throws MessagingException * If...
Send the specified message to the recipients of the "administrators" list
reportErrorToAdmins
{ "repo_name": "DomDerrien/custom-portal", "path": "src/main/java/dderrien/common/util/MailConnector.java", "license": "apache-2.0", "size": 14653 }
[ "java.util.Properties", "javax.mail.Message", "javax.mail.MessagingException", "javax.mail.Session", "javax.mail.Transport", "javax.mail.internet.InternetAddress", "javax.mail.internet.MimeMessage" ]
import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage;
import java.util.*; import javax.mail.*; import javax.mail.internet.*;
[ "java.util", "javax.mail" ]
java.util; javax.mail;
965,219
private static int countExceptionTableSize(IR ir) { int tSize = 0; for (BasicBlock bblock = ir.firstBasicBlockInCodeOrder(); bblock != null; bblock = bblock.nextBasicBlockInCodeOrder()) { if (bblock.hasExceptionHandlers()) { for (Enumeration<BasicBlock> e = bblock.getExceptionHandlers();...
static int function(IR ir) { int tSize = 0; for (BasicBlock bblock = ir.firstBasicBlockInCodeOrder(); bblock != null; bblock = bblock.nextBasicBlockInCodeOrder()) { if (bblock.hasExceptionHandlers()) { for (Enumeration<BasicBlock> e = bblock.getExceptionHandlers(); e.hasMoreElements();) { ExceptionHandlerBasicBlock ebb...
/** * Return an upper bounds on the size of the exception table for an IR. */
Return an upper bounds on the size of the exception table for an IR
countExceptionTableSize
{ "repo_name": "CodeOffloading/JikesRVM-CCO", "path": "jikesrvm-3.1.3/rvm/src/org/jikesrvm/compilers/opt/runtimesupport/OptExceptionTable.java", "license": "epl-1.0", "size": 6636 }
[ "java.util.Enumeration", "org.jikesrvm.compilers.opt.ir.BasicBlock", "org.jikesrvm.compilers.opt.ir.ExceptionHandlerBasicBlock" ]
import java.util.Enumeration; import org.jikesrvm.compilers.opt.ir.BasicBlock; import org.jikesrvm.compilers.opt.ir.ExceptionHandlerBasicBlock;
import java.util.*; import org.jikesrvm.compilers.opt.ir.*;
[ "java.util", "org.jikesrvm.compilers" ]
java.util; org.jikesrvm.compilers;
651,453
public static int convertDuration(String content, String format) { int totalSeconds = 0; // hours try { try { totalSeconds += Integer.valueOf(content.substring(format.indexOf('H'), format.lastIndexOf('H') + 1).trim()) * 60 *...
static int function(String content, String format) { int totalSeconds = 0; try { try { totalSeconds += Integer.valueOf(content.substring(format.indexOf('H'), format.lastIndexOf('H') + 1).trim()) * 60 * 60; } catch (IndexOutOfBoundsException e) { } try { totalSeconds += Integer.valueOf(content.substring(format.indexOf('...
/** * Chars 'H', 'M' and 'S' have to be grouped or the behaviour will be unexpected * @param content * @param format * @return */
Chars 'H', 'M' and 'S' have to be grouped or the behaviour will be unexpected
convertDuration
{ "repo_name": "PaloAlto/jbilling", "path": "classes/com/sapienter/jbilling/server/mediation/task/AbstractFileReader.java", "license": "agpl-3.0", "size": 16666 }
[ "com.sapienter.jbilling.common.SessionInternalError" ]
import com.sapienter.jbilling.common.SessionInternalError;
import com.sapienter.jbilling.common.*;
[ "com.sapienter.jbilling" ]
com.sapienter.jbilling;
8,035
@Pure public SarlConstructorSourceAppender buildSarlConstructor(ResourceSet resourceSet) { SarlConstructorSourceAppender a = new SarlConstructorSourceAppender(createSarlConstructor(resourceSet)); getInjector().injectMembers(a); return a; }
SarlConstructorSourceAppender function(ResourceSet resourceSet) { SarlConstructorSourceAppender a = new SarlConstructorSourceAppender(createSarlConstructor(resourceSet)); getInjector().injectMembers(a); return a; }
/** Create the appender for a Sarl constructor. * @param resourceSet the set of the resources that must be used for * containing the generated resource, and resolving types from names. * @return the appender. */
Create the appender for a Sarl constructor
buildSarlConstructor
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/CodeBuilderFactory.java", "license": "apache-2.0", "size": 50509 }
[ "io.sarl.lang.codebuilder.appenders.SarlConstructorSourceAppender", "org.eclipse.emf.ecore.resource.ResourceSet" ]
import io.sarl.lang.codebuilder.appenders.SarlConstructorSourceAppender; import org.eclipse.emf.ecore.resource.ResourceSet;
import io.sarl.lang.codebuilder.appenders.*; import org.eclipse.emf.ecore.resource.*;
[ "io.sarl.lang", "org.eclipse.emf" ]
io.sarl.lang; org.eclipse.emf;
2,625,276
public void setDate(String parameterName, Date x) throws SQLException { throw Util.notImplemented(); }
void function(String parameterName, Date x) throws SQLException { throw Util.notImplemented(); }
/** * JDBC 3.0 * * Sets the designated parameter to the given java.sql.Date value. The driver * converts this to an SQL DATE value when it sends it to the database. * * @param parameterName - the name of the parameter * @param x - the parameter value * @exception SQLException Feature not...
JDBC 3.0 Sets the designated parameter to the given java.sql.Date value. The driver converts this to an SQL DATE value when it sends it to the database
setDate
{ "repo_name": "kavin256/Derby", "path": "java/engine/org/apache/derby/impl/jdbc/EmbedCallableStatement20.java", "license": "apache-2.0", "size": 39293 }
[ "java.sql.Date", "java.sql.SQLException", "org.apache.derby.impl.jdbc.Util" ]
import java.sql.Date; import java.sql.SQLException; import org.apache.derby.impl.jdbc.Util;
import java.sql.*; import org.apache.derby.impl.jdbc.*;
[ "java.sql", "org.apache.derby" ]
java.sql; org.apache.derby;
1,564,358
public static Date addMonths(Date date, int amount) { return addMonths(date, amount, TimeZones.DEFAULT); }
static Date function(Date date, int amount) { return addMonths(date, amount, TimeZones.DEFAULT); }
/** * Adds a number of months to a date returning a new object. The original * date object is unchanged. * * @param date * the date, not null * @param amount * the amount to add, may be negative * @return the new date object with the amount added * @throws IllegalArgumentExceptio...
Adds a number of months to a date returning a new object. The original date object is unchanged
addMonths
{ "repo_name": "aroychoudhury/fileanalytics", "path": "src/main/java/org/abhishek/fileanalytics/utils/DateUtils.java", "license": "gpl-2.0", "size": 7624 }
[ "java.util.Date", "org.abhishek.fileanalytics.constants.TimeZones" ]
import java.util.Date; import org.abhishek.fileanalytics.constants.TimeZones;
import java.util.*; import org.abhishek.fileanalytics.constants.*;
[ "java.util", "org.abhishek.fileanalytics" ]
java.util; org.abhishek.fileanalytics;
793,644
public void setFoldIcons(Icon collapsedIcon, Icon expandedIcon) { this.collapsedFoldIcon = collapsedIcon; this.expandedFoldIcon = expandedIcon; revalidate(); // Icons may be different sizes. repaint(); }
void function(Icon collapsedIcon, Icon expandedIcon) { this.collapsedFoldIcon = collapsedIcon; this.expandedFoldIcon = expandedIcon; revalidate(); repaint(); }
/** * Sets the icons to use to represent collapsed and expanded folds. * * @param collapsedIcon The collapsed fold icon. This cannot be * <code>null</code>. * @param expandedIcon The expanded fold icon. This cannot be * <code>null</code>. */
Sets the icons to use to represent collapsed and expanded folds
setFoldIcons
{ "repo_name": "fanruan/finereport-design", "path": "designer_base/src/com/fr/design/gui/syntax/ui/rtextarea/FoldIndicator.java", "license": "gpl-3.0", "size": 19365 }
[ "javax.swing.Icon" ]
import javax.swing.Icon;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,167,335
public int getForegroundGravity() { return mForegroundGravity; } /** * Describes how the foreground is positioned. Defaults to START and TOP. * * @param foregroundGravity See {@link Gravity}
int function() { return mForegroundGravity; } /** * Describes how the foreground is positioned. Defaults to START and TOP. * * @param foregroundGravity See {@link Gravity}
/** * Describes how the foreground is positioned. * * @return foreground gravity. * @see #setForegroundGravity(int) */
Describes how the foreground is positioned
getForegroundGravity
{ "repo_name": "qwertyezi/meizhi", "path": "meizhi/app/src/main/java/com/yezi/meizhi/ui/widget/ForegroundRelativeLayout.java", "license": "apache-2.0", "size": 6673 }
[ "android.view.Gravity" ]
import android.view.Gravity;
import android.view.*;
[ "android.view" ]
android.view;
1,214,512
@ServiceMethod(returns = ReturnType.SINGLE) Response<LocalNetworkGatewayInner> updateTagsWithResponse( String resourceGroupName, String localNetworkGatewayName, TagsObject parameters, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<LocalNetworkGatewayInner> updateTagsWithResponse( String resourceGroupName, String localNetworkGatewayName, TagsObject parameters, Context context);
/** * Updates a local network gateway tags. * * @param resourceGroupName The name of the resource group. * @param localNetworkGatewayName The name of the local network gateway. * @param parameters Parameters supplied to update local network gateway tags. * @param context The context to ass...
Updates a local network gateway tags
updateTagsWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/fluent/LocalNetworkGatewaysClient.java", "license": "mit", "size": 22790 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.network.fluent.models.LocalNetworkGatewayInner", "com.azure.resourcemanager.network.models.TagsObject" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.network.fluent.models.LocalNetworkGatewayInner; import com.azure.resourcemanager.network.models.TagsObject;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*; import com.azure.resourcemanager.network.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
178,764
File createSubFile(Subtitle sub, File sourceVob, ProgressMeter meter) throws IOException;
File createSubFile(Subtitle sub, File sourceVob, ProgressMeter meter) throws IOException;
/** * Returns a subtitle file unmuxed from the source stream. The file could not be our * property, so we shouldn't do anything more than reading it. * * @param sub * {@link Subtitle} to extract * @param sourceVob * Source vob file to extract the subtitle from ...
Returns a subtitle file unmuxed from the source stream. The file could not be our property, so we shouldn't do anything more than reading it
createSubFile
{ "repo_name": "shred/feinrip", "path": "feinrip-gui/src/main/java/org/shredzone/feinrip/source/Source.java", "license": "gpl-3.0", "size": 4373 }
[ "java.io.File", "java.io.IOException", "org.shredzone.feinrip.model.Subtitle", "org.shredzone.feinrip.progress.ProgressMeter" ]
import java.io.File; import java.io.IOException; import org.shredzone.feinrip.model.Subtitle; import org.shredzone.feinrip.progress.ProgressMeter;
import java.io.*; import org.shredzone.feinrip.model.*; import org.shredzone.feinrip.progress.*;
[ "java.io", "org.shredzone.feinrip" ]
java.io; org.shredzone.feinrip;
1,056,008
public byte[] readBytesEx(long count, String name) throws IOException { if (count <= 0) { return BYTE_ARRAY_EMPTY; } newDumpLevel(name, "bytes"); byte[] ret = readBytesInternalEx(count); endDumpLevel(); return ret; }
byte[] function(long count, String name) throws IOException { if (count <= 0) { return BYTE_ARRAY_EMPTY; } newDumpLevel(name, "bytes"); byte[] ret = readBytesInternalEx(count); endDumpLevel(); return ret; }
/** * Reads bytes from the stream * * @param count Number of bytes to read * @param name * @return Array of read bytes * @throws IOException */
Reads bytes from the stream
readBytesEx
{ "repo_name": "jindrapetrik/jpexs-decompiler", "path": "libsrc/ffdec_lib/src/com/jpexs/decompiler/flash/SWFInputStream.java", "license": "gpl-3.0", "size": 130581 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,056,948
protected TranManagerSet getTransactionManager() { return (TranManagerSet) EmbeddableTransactionManagerFactory.getTransactionManager(); }
TranManagerSet function() { return (TranManagerSet) EmbeddableTransactionManagerFactory.getTransactionManager(); }
/** * Convenience method to get the tran manager */
Convenience method to get the tran manager
getTransactionManager
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.tx.embeddable/src/com/ibm/tx/jta/embeddable/impl/EmbeddableTransactionSynchronizationRegistryImpl.java", "license": "epl-1.0", "size": 1949 }
[ "com.ibm.tx.jta.embeddable.EmbeddableTransactionManagerFactory", "com.ibm.tx.jta.impl.TranManagerSet" ]
import com.ibm.tx.jta.embeddable.EmbeddableTransactionManagerFactory; import com.ibm.tx.jta.impl.TranManagerSet;
import com.ibm.tx.jta.embeddable.*; import com.ibm.tx.jta.impl.*;
[ "com.ibm.tx" ]
com.ibm.tx;
1,660,128
FeatureMap getAnyAttribute();
FeatureMap getAnyAttribute();
/** * Returns the value of the '<em><b>Any Attribute</b></em>' attribute list. * The list contents are of type {@link org.eclipse.emf.ecore.util.FeatureMap.Entry}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Any Attribute</em>' attribute list isn't clear, * there really should be more of a ...
Returns the value of the 'Any Attribute' attribute list. The list contents are of type <code>org.eclipse.emf.ecore.util.FeatureMap.Entry</code>. If the meaning of the 'Any Attribute' attribute list isn't clear, there really should be more of a description here...
getAnyAttribute
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore/src/org/oasis/xAL/MailStopType.java", "license": "apache-2.0", "size": 6171 }
[ "org.eclipse.emf.ecore.util.FeatureMap" ]
import org.eclipse.emf.ecore.util.FeatureMap;
import org.eclipse.emf.ecore.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,505,272
byte[][] recordSearchRegex(String query) throws RegExParsingException;
byte[][] recordSearchRegex(String query) throws RegExParsingException;
/** * Search for all records that contain a particular regular expression. * * @param query The regular expression (UTF-8 encoded). * @return The records that contain the regular search expression. * @throws RegExParsingException */
Search for all records that contain a particular regular expression
recordSearchRegex
{ "repo_name": "SwathiMystery/succinct", "path": "core/src/main/java/edu/berkeley/cs/succinct/SuccinctIndexedFile.java", "license": "apache-2.0", "size": 3202 }
[ "edu.berkeley.cs.succinct.regex.parser.RegExParsingException" ]
import edu.berkeley.cs.succinct.regex.parser.RegExParsingException;
import edu.berkeley.cs.succinct.regex.parser.*;
[ "edu.berkeley.cs" ]
edu.berkeley.cs;
1,146,332
@Nonnull public static UBL23WriterBuilder<AwardedNotificationType> awardedNotification(){return UBL23WriterBuilder.create(AwardedNotificationType.class);}
@Nonnull public static UBL23WriterBuilder<AwardedNotificationType> awardedNotification(){return UBL23WriterBuilder.create(AwardedNotificationType.class);}
/** Create a writer builder for AttachedDocument. @return The builder and never <code>null</code> */
Create a writer builder for AttachedDocument
attachedDocument
{ "repo_name": "phax/ph-ubl", "path": "ph-ubl23/src/main/java/com/helger/ubl23/UBL23Writer.java", "license": "apache-2.0", "size": 32994 }
[ "javax.annotation.Nonnull" ]
import javax.annotation.Nonnull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
141,765
private boolean addSadlSourceUri(String pubUri, String sadlSourceURL) { logger.debug("adding sadlSourcURL to mapping: " + pubUri + " --> " + sadlSourceURL); StmtIterator pubitr = getMappingModel().listStatements(null, publicUrlProp, getMappingModel().getResource(pubUri)); if (pubitr.hasNext()) { St...
boolean function(String pubUri, String sadlSourceURL) { logger.debug(STR + pubUri + STR + sadlSourceURL); StmtIterator pubitr = getMappingModel().listStatements(null, publicUrlProp, getMappingModel().getResource(pubUri)); if (pubitr.hasNext()) { Statement s = pubitr.next(); StmtIterator ssuitr = getMappingModel().listS...
/** * Method to add the sadlSourceURL information to the mapping * @param string * @param string2 */
Method to add the sadlSourceURL information to the mapping
addSadlSourceUri
{ "repo_name": "crapo/sadlos2", "path": "sadl3/com.ge.research.sadl.parent/com.ge.research.sadl/src/com/ge/research/sadl/builder/ConfigurationManagerForIDE.java", "license": "epl-1.0", "size": 46940 }
[ "org.apache.jena.rdf.model.RDFNode", "org.apache.jena.rdf.model.Statement", "org.apache.jena.rdf.model.StmtIterator" ]
import org.apache.jena.rdf.model.RDFNode; import org.apache.jena.rdf.model.Statement; import org.apache.jena.rdf.model.StmtIterator;
import org.apache.jena.rdf.model.*;
[ "org.apache.jena" ]
org.apache.jena;
578,198
public void touchEvent(float x, float y) { float arenaX = (x - mViewportXoff) * (GameState.ARENA_WIDTH / mViewportWidth); float arenaY = (y - mViewportYoff) * (GameState.ARENA_HEIGHT / mViewportHeight); //Log.v(TAG, "touch at x=" + (int) x + " y=" + (int) y + " --> arenaX=" + (int) ...
void function(float x, float y) { float arenaX = (x - mViewportXoff) * (GameState.ARENA_WIDTH / mViewportWidth); float arenaY = (y - mViewportYoff) * (GameState.ARENA_HEIGHT / mViewportHeight); mGameState.movePaddle(arenaX); GLRecorder.startRecording(); }
/** * Updates state after the player touches the screen. Call through queueEvent(). */
Updates state after the player touches the screen. Call through queueEvent()
touchEvent
{ "repo_name": "singerli/android_breakout", "path": "src/com/faddensoft/breakout/GameSurfaceRenderer.java", "license": "apache-2.0", "size": 14102 }
[ "com.research.GLRecorder" ]
import com.research.GLRecorder;
import com.research.*;
[ "com.research" ]
com.research;
2,507,564
private String getSavedSplashResource(HttpServletRequest hreq){ return _agent.getAttribute(hreq, Constants.JOSSO_SPLASH_RESOURCE_PARAMETER); }
String function(HttpServletRequest hreq){ return _agent.getAttribute(hreq, Constants.JOSSO_SPLASH_RESOURCE_PARAMETER); }
/** * Return the splash resource from session so that we can redirect the user to it * if (s)he was logged in using custom form * @param hreq current http request */
Return the splash resource from session so that we can redirect the user to it if (s)he was logged in using custom form
getSavedSplashResource
{ "repo_name": "webbfontaine/josso1", "path": "agents/josso-weblogic81-agent/src/main/java/org/josso/servlet/agent/GenericServletSSOAgentFilter.java", "license": "lgpl-2.1", "size": 26565 }
[ "javax.servlet.http.HttpServletRequest", "org.josso.agent.Constants" ]
import javax.servlet.http.HttpServletRequest; import org.josso.agent.Constants;
import javax.servlet.http.*; import org.josso.agent.*;
[ "javax.servlet", "org.josso.agent" ]
javax.servlet; org.josso.agent;
1,973,824
@SuppressWarnings("unused") private void setItemLabels(final CategoryPlot plot) { final BarRenderer renderer = (BarRenderer) plot.getRenderer(); renderer.setItemLabelGenerator(new StandardCategoryItemLabelGenerator()); // TODO change to a custom ItemLabelGenerator; see JFreeChart // deve...
@SuppressWarnings(STR) void function(final CategoryPlot plot) { final BarRenderer renderer = (BarRenderer) plot.getRenderer(); renderer.setItemLabelGenerator(new StandardCategoryItemLabelGenerator()); renderer.setItemLabelsVisible(true); renderer.setItemLabelFont(new Font(STR, Font.PLAIN, 9)); renderer.setItemLabelPain...
/** * not in use yet. This method generates labels above each bar. At this very moment, these labels just show the value of the underlying data * (which is not very usefull). It could be used to display for example n-values. * @param plot */
not in use yet. This method generates labels above each bar. At this very moment, these labels just show the value of the underlying data (which is not very usefull). It could be used to display for example n-values
setItemLabels
{ "repo_name": "robertoandrade/cyclos", "path": "src/nl/strohalm/cyclos/controls/reports/statistics/graphs/ChartPostProcessorImpl.java", "license": "gpl-2.0", "size": 14121 }
[ "java.awt.Font", "org.jfree.chart.labels.StandardCategoryItemLabelGenerator", "org.jfree.chart.plot.CategoryPlot", "org.jfree.chart.renderer.category.BarRenderer" ]
import java.awt.Font; import org.jfree.chart.labels.StandardCategoryItemLabelGenerator; import org.jfree.chart.plot.CategoryPlot; import org.jfree.chart.renderer.category.BarRenderer;
import java.awt.*; import org.jfree.chart.labels.*; import org.jfree.chart.plot.*; import org.jfree.chart.renderer.category.*;
[ "java.awt", "org.jfree.chart" ]
java.awt; org.jfree.chart;
1,180,504
// Get the next character. char key = e.getKeyChar(); // If the next character is a digit, allow it. if( Character.isDigit( key ) ) { return; } // If the next character is a backspace character, allow it. if( key == KeyEvent.VK_BACK_SPACE ) { return; } // If the character is a negative si...
char key = e.getKeyChar(); if( Character.isDigit( key ) ) { return; } if( key == KeyEvent.VK_BACK_SPACE ) { return; } boolean negativeSign = ( key == '-' ); boolean isEmptyText = getText().trim().equals( "" ); boolean negativeBound = ( minimum.doubleValue() < 0.0 ); if( negativeSign && isEmptyText && negativeBound ) { ...
/** * Check to see if the next character is valid, and if not, * consume it. * * @param e The key event. */
Check to see if the next character is valid, and if not, consume it
checkKey
{ "repo_name": "mayc2/PseudoKnot_research", "path": "RNAstructure_Source/java_interface/src/ur_rna/RNAstructureUI/utilities/NumberField.java", "license": "mit", "size": 10211 }
[ "java.awt.event.KeyEvent" ]
import java.awt.event.KeyEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
1,798,590
public Restaurant findById(Long id){ return uniqueResult(namedQuery("Restaurant.findById").setParameter("id", id)); }
Restaurant function(Long id){ return uniqueResult(namedQuery(STR).setParameter("id", id)); }
/** * Find by restaurant by id. * * @param id The id of restaurant. * @return The restaurant. */
Find by restaurant by id
findById
{ "repo_name": "HoldInArms/RestauRate", "path": "api/src/main/java/hu/holdinarms/dao/RestaurantDao.java", "license": "gpl-3.0", "size": 9655 }
[ "hu.holdinarms.model.Restaurant" ]
import hu.holdinarms.model.Restaurant;
import hu.holdinarms.model.*;
[ "hu.holdinarms.model" ]
hu.holdinarms.model;
2,525,320
public RecordFactory getRecordFactory() { return _recordFactory; }
RecordFactory function() { return _recordFactory; }
/** * get RecordFactory. * @return RecordFactory */
get RecordFactory
getRecordFactory
{ "repo_name": "cunningt/switchyard", "path": "components/jca/src/main/java/org/switchyard/component/jca/processor/cci/RecordHandler.java", "license": "apache-2.0", "size": 3506 }
[ "javax.resource.cci.RecordFactory" ]
import javax.resource.cci.RecordFactory;
import javax.resource.cci.*;
[ "javax.resource" ]
javax.resource;
1,693,052
public static String deleteStudent(String courseId, String studentEmail) { Map<String, String> params = createParamMap(BackDoorOperation.OPERATION_DELETE_STUDENT); params.put(BackDoorOperation.PARAMETER_COURSE_ID, courseId); params.put(BackDoorOperation.PARAMETER_STUDENT_EMAIL, studentEmail)...
static String function(String courseId, String studentEmail) { Map<String, String> params = createParamMap(BackDoorOperation.OPERATION_DELETE_STUDENT); params.put(BackDoorOperation.PARAMETER_COURSE_ID, courseId); params.put(BackDoorOperation.PARAMETER_STUDENT_EMAIL, studentEmail); return makePostRequest(params); }
/** * Deletes a student from the datastore. */
Deletes a student from the datastore
deleteStudent
{ "repo_name": "VamsiSangam/teammates", "path": "src/test/java/teammates/test/driver/BackDoor.java", "license": "gpl-2.0", "size": 22650 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,424,850
public Color getCoinColor(){ return coinColor; }
Color function(){ return coinColor; }
/** * This method returns the coin color * @return the coin color */
This method returns the coin color
getCoinColor
{ "repo_name": "SOCR/HTML5_WebSite", "path": "SOCR2.8/src/edu/uah/math/devices/CoinFloor.java", "license": "lgpl-3.0", "size": 4843 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,935,237
public boolean isWithinBoundsOfWindow() throws WidgetException { JavascriptExecutor js = ((JavascriptExecutor) getGUIDriver().getWrappedDriver()); // execute javascript to get scroll values Object top = js.executeScript("return document.body.scrollTop;"); Object left = js.executeScript("return document...
boolean function() throws WidgetException { JavascriptExecutor js = ((JavascriptExecutor) getGUIDriver().getWrappedDriver()); Object top = js.executeScript(STR); Object left = js.executeScript(STR); int scrollTop; int scrollLeft; try { scrollTop = Integer.parseInt(top+STRSTRThere was an error parsing the scroll values ...
/*** * Determine if the element is within the bounds of the window * * @return true or false * @throws WidgetException */
Determine if the element is within the bounds of the window
isWithinBoundsOfWindow
{ "repo_name": "FINRAOS/JTAF-ExtWebDriver", "path": "src/main/java/org/finra/jtaf/ewd/widget/element/Element.java", "license": "apache-2.0", "size": 34860 }
[ "org.finra.jtaf.ewd.widget.WidgetException", "org.openqa.selenium.Dimension", "org.openqa.selenium.JavascriptExecutor", "org.openqa.selenium.internal.Locatable" ]
import org.finra.jtaf.ewd.widget.WidgetException; import org.openqa.selenium.Dimension; import org.openqa.selenium.JavascriptExecutor; import org.openqa.selenium.internal.Locatable;
import org.finra.jtaf.ewd.widget.*; import org.openqa.selenium.*; import org.openqa.selenium.internal.*;
[ "org.finra.jtaf", "org.openqa.selenium" ]
org.finra.jtaf; org.openqa.selenium;
1,085,648
return new LinkedList<ConnectionUnit>(connectionList.values()); }
return new LinkedList<ConnectionUnit>(connectionList.values()); }
/** * This method is getter for all connection units * @return - list of connection units */
This method is getter for all connection units
getConnectionList
{ "repo_name": "dude65/jdbc_proxy_driver", "path": "src/main/java/org/fit/proxy/jdbc/Switcher.java", "license": "apache-2.0", "size": 6744 }
[ "java.util.LinkedList" ]
import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
620,240
public void scheduleSlotReleaser(Slot slot) { Preconditions.checkState(shmManager != null); releaserExecutor.execute(new SlotReleaser(slot)); }
void function(Slot slot) { Preconditions.checkState(shmManager != null); releaserExecutor.execute(new SlotReleaser(slot)); }
/** * Schedule a shared memory slot to be released. * * @param slot The slot to release. */
Schedule a shared memory slot to be released
scheduleSlotReleaser
{ "repo_name": "ronny-macmaster/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs-client/src/main/java/org/apache/hadoop/hdfs/shortcircuit/ShortCircuitCache.java", "license": "apache-2.0", "size": 36229 }
[ "com.google.common.base.Preconditions", "org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm" ]
import com.google.common.base.Preconditions; import org.apache.hadoop.hdfs.shortcircuit.ShortCircuitShm;
import com.google.common.base.*; import org.apache.hadoop.hdfs.shortcircuit.*;
[ "com.google.common", "org.apache.hadoop" ]
com.google.common; org.apache.hadoop;
2,730,923
public static Ticker adaptTicker(BTCChinaTicker btcChinaTicker, CurrencyPair currencyPair) { return adaptTicker(btcChinaTicker.getTicker(), currencyPair); }
static Ticker function(BTCChinaTicker btcChinaTicker, CurrencyPair currencyPair) { return adaptTicker(btcChinaTicker.getTicker(), currencyPair); }
/** * Adapts a BTCChinaTicker to a Ticker Object */
Adapts a BTCChinaTicker to a Ticker Object
adaptTicker
{ "repo_name": "Achterhoeker/XChange", "path": "xchange-btcchina/src/main/java/com/xeiam/xchange/btcchina/BTCChinaAdapters.java", "license": "mit", "size": 14960 }
[ "com.xeiam.xchange.btcchina.dto.marketdata.BTCChinaTicker", "com.xeiam.xchange.currency.CurrencyPair", "com.xeiam.xchange.dto.marketdata.Ticker" ]
import com.xeiam.xchange.btcchina.dto.marketdata.BTCChinaTicker; import com.xeiam.xchange.currency.CurrencyPair; import com.xeiam.xchange.dto.marketdata.Ticker;
import com.xeiam.xchange.btcchina.dto.marketdata.*; import com.xeiam.xchange.currency.*; import com.xeiam.xchange.dto.marketdata.*;
[ "com.xeiam.xchange" ]
com.xeiam.xchange;
2,270,127
public Boolean isAllowedWorld(String worldName) throws WorldDoesntExist { if (Bukkit.getWorld(worldName) == null) throw new WorldDoesntExist(worldName); final Boolean containsWorld = ConfigUtils.getStringList("ShopWorlds.Worlds").contains(worldName); final Boolean whitelist = ConfigUtils.getString("...
Boolean function(String worldName) throws WorldDoesntExist { if (Bukkit.getWorld(worldName) == null) throw new WorldDoesntExist(worldName); final Boolean containsWorld = ConfigUtils.getStringList(STR).contains(worldName); final Boolean whitelist = ConfigUtils.getString(STR, STR).equals(STR); return (whitelist) ? contai...
/** * Verify if the specified World is allowed to create shop * * @throws WorldDoesntExist * @return false if it not allowed */
Verify if the specified World is allowed to create shop
isAllowedWorld
{ "repo_name": "EpiCanard/GlobalMarketChest", "path": "src/main/java/fr/epicanard/globalmarketchest/utils/WorldUtils.java", "license": "mit", "size": 6476 }
[ "fr.epicanard.globalmarketchest.exceptions.WorldDoesntExist", "org.bukkit.Bukkit" ]
import fr.epicanard.globalmarketchest.exceptions.WorldDoesntExist; import org.bukkit.Bukkit;
import fr.epicanard.globalmarketchest.exceptions.*; import org.bukkit.*;
[ "fr.epicanard.globalmarketchest", "org.bukkit" ]
fr.epicanard.globalmarketchest; org.bukkit;
1,793,994
public void handle(Context context) { if (TextUtils.isEmpty(mMessage)) { return; } if (!mWasSuccessful) { // display error toast Toast.makeText(context, mMessage, Toast.LENGTH_LONG).show(); return; }...
void function(Context context) { if (TextUtils.isEmpty(mMessage)) { return; } if (!mWasSuccessful) { Toast.makeText(context, mMessage, Toast.LENGTH_LONG).show(); return; } switch (mTraktAction) { case CHECKIN_EPISODE: case CHECKIN_MOVIE: Toast.makeText(context, mMessage, Toast.LENGTH_SHORT).show(); break; default: Toas...
/** * Displays status toasts dependent on the result of the trakt action performed. */
Displays status toasts dependent on the result of the trakt action performed
handle
{ "repo_name": "hoanganhx86/SeriesGuide", "path": "SeriesGuide/src/main/java/com/battlelancer/seriesguide/util/TraktTask.java", "license": "apache-2.0", "size": 14780 }
[ "android.content.Context", "android.os.Bundle", "android.text.TextUtils", "android.widget.Toast" ]
import android.content.Context; import android.os.Bundle; import android.text.TextUtils; import android.widget.Toast;
import android.content.*; import android.os.*; import android.text.*; import android.widget.*;
[ "android.content", "android.os", "android.text", "android.widget" ]
android.content; android.os; android.text; android.widget;
2,574,280
protected boolean validate(char[] component, BitSet generous) { // validate each component by generous characters return validate(component, 0, -1, generous); }
boolean function(char[] component, BitSet generous) { return validate(component, 0, -1, generous); }
/** * Validate the URI characters within a specific component. * The component must be performed after escape encoding. Or it doesn't * include escaped characters. * * @param component the characters sequence within the component * @param generous those characters that are allowed within a...
Validate the URI characters within a specific component. The component must be performed after escape encoding. Or it doesn't include escaped characters
validate
{ "repo_name": "fmassart/commons-httpclient", "path": "src/java/org/apache/commons/httpclient/URI.java", "license": "apache-2.0", "size": 125338 }
[ "java.util.BitSet" ]
import java.util.BitSet;
import java.util.*;
[ "java.util" ]
java.util;
200,938
private String getDestination(SlingHttpServletRequest request) { String to = request.getParameter(PROP_DEST); if (to == null) { return null; } return PathUtils.toUserContentPath(to); }
String function(SlingHttpServletRequest request) { String to = request.getParameter(PROP_DEST); if (to == null) { return null; } return PathUtils.toUserContentPath(to); }
/** * Get the destination path from the {@code request}. * * @param from * @param request * @return */
Get the destination path from the request
getDestination
{ "repo_name": "dylanswartz/nakamura", "path": "bundles/resource/src/main/java/org/sakaiproject/nakamura/resource/lite/servlet/post/operations/CopyOperation.java", "license": "apache-2.0", "size": 3434 }
[ "org.apache.sling.api.SlingHttpServletRequest", "org.sakaiproject.nakamura.util.PathUtils" ]
import org.apache.sling.api.SlingHttpServletRequest; import org.sakaiproject.nakamura.util.PathUtils;
import org.apache.sling.api.*; import org.sakaiproject.nakamura.util.*;
[ "org.apache.sling", "org.sakaiproject.nakamura" ]
org.apache.sling; org.sakaiproject.nakamura;
602,350
private static <T, I> void add(I identifier, Map<I, List<T>> listeners, T listener) { assert null != identifier; assert null != listener; List<T> tmp = listeners.get(identifier); if (null == tmp) { tmp = new ArrayList<T>(); listeners.put(identifier, tmp); ...
static <T, I> void function(I identifier, Map<I, List<T>> listeners, T listener) { assert null != identifier; assert null != listener; List<T> tmp = listeners.get(identifier); if (null == tmp) { tmp = new ArrayList<T>(); listeners.put(identifier, tmp); } tmp.add(listener); }
/** * Adds the <code>listener</code> for <code>identifier</code> to <code>listeners</code>. * * @param <T> the listener type * @param <I> the identifier type * * @param identifier the identifier * @param listeners the listeners map * @param listener the listener to be removed ...
Adds the <code>listener</code> for <code>identifier</code> to <code>listeners</code>
add
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/VarModel/Utils/src/net/ssehub/easy/basics/modelManagement/ModelEvents.java", "license": "apache-2.0", "size": 9949 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map" ]
import java.util.ArrayList; import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,686,542
public com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> modifyColumnFamilies(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest request) { return futureUnaryCall( getChannel().newCall(getModifyColumnFamiliesMethodHelper(), getCallOptions()), reques...
com.google.common.util.concurrent.ListenableFuture<com.google.bigtable.admin.v2.Table> function(com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest request) { return futureUnaryCall( getChannel().newCall(getModifyColumnFamiliesMethodHelper(), getCallOptions()), request); }
/** * * * <pre> * Performs a series of column family modifications on the specified table. * Either all or none of the modifications will occur before this method * returns, but data requests received prior to that point may see a table * where only some modifications have taken effec...
<code> Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect. </code>
modifyColumnFamilies
{ "repo_name": "vam-google/google-cloud-java", "path": "google-api-grpc/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminGrpc.java", "license": "apache-2.0", "size": 86349 }
[ "io.grpc.stub.ClientCalls" ]
import io.grpc.stub.ClientCalls;
import io.grpc.stub.*;
[ "io.grpc.stub" ]
io.grpc.stub;
367,993
public static VaadinResponse getCurrentResponse() { return CurrentInstance.get(VaadinResponse.class); }
static VaadinResponse function() { return CurrentInstance.get(VaadinResponse.class); }
/** * Gets the currently processed Vaadin response. The current response is * automatically defined when the request is started. The current response * can not be used in e.g. background threads because of the way server * implementations reuse response instances. * * @return the current V...
Gets the currently processed Vaadin response. The current response is automatically defined when the request is started. The current response can not be used in e.g. background threads because of the way server implementations reuse response instances
getCurrentResponse
{ "repo_name": "Scarlethue/vaadin", "path": "server/src/com/vaadin/server/VaadinService.java", "license": "apache-2.0", "size": 70431 }
[ "com.vaadin.util.CurrentInstance" ]
import com.vaadin.util.CurrentInstance;
import com.vaadin.util.*;
[ "com.vaadin.util" ]
com.vaadin.util;
2,070,939
@Test public final void testZBetween() { final Mesh zBet = this.m.zBetween(10, -10); Assert.assertTrue(zBet.contains(this.t1)); Assert.assertTrue(zBet.contains(this.t2)); }
final void function() { final Mesh zBet = this.m.zBetween(10, -10); Assert.assertTrue(zBet.contains(this.t1)); Assert.assertTrue(zBet.contains(this.t2)); }
/** * Test method for * {@link fr.nantes1900.models.basis.Mesh#zBetween(double, double)}. */
Test method for <code>fr.nantes1900.models.basis.Mesh#zBetween(double, double)</code>
testZBetween
{ "repo_name": "Nantes1900/Nantes-1900-PGROU-IHM", "path": "src/test/fr/nantes1900/models/MeshTest.java", "license": "gpl-3.0", "size": 20047 }
[ "fr.nantes1900.models.basis.Mesh", "junit.framework.Assert" ]
import fr.nantes1900.models.basis.Mesh; import junit.framework.Assert;
import fr.nantes1900.models.basis.*; import junit.framework.*;
[ "fr.nantes1900.models", "junit.framework" ]
fr.nantes1900.models; junit.framework;
2,083,631
public static void addMenus(JMenu jMenuOrigen, JMenu jMenuDestino) { for (int i = jMenuOrigen.getMenuComponentCount() - 1; i >= 0; i--) { Component loAux = jMenuOrigen.getMenuComponent(i); if (loAux.getClass() == JMenu.class) { JMenu loMenu = new JMenu(((JMenu) lo...
static void function(JMenu jMenuOrigen, JMenu jMenuDestino) { for (int i = jMenuOrigen.getMenuComponentCount() - 1; i >= 0; i--) { Component loAux = jMenuOrigen.getMenuComponent(i); if (loAux.getClass() == JMenu.class) { JMenu loMenu = new JMenu(((JMenu) loAux).getText()); jMenuDestino.add(loMenu); addMenus(((JMenu) lo...
/** * completa los menus de jMenuDestino con los menus de jMenuOrigen */
completa los menus de jMenuDestino con los menus de jMenuOrigen
addMenus
{ "repo_name": "Creativa3d/box3d", "path": "paquetesGUIx/src/utilesGUIx/JTextHTML.java", "license": "gpl-2.0", "size": 10515 }
[ "java.awt.Component", "javax.swing.JMenu" ]
import java.awt.Component; import javax.swing.JMenu;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
2,122,278
public boolean process( List<Point2D_I32> contour ) { // Reset internal book keeping variables reset(); if (loops) { // Reject pathological case if (contour.size() < 3) return false; if (!findInitialTriangle(contour)) return false; } else { // Reject pathological case if (contour.siz...
boolean function( List<Point2D_I32> contour ) { reset(); if (loops) { if (contour.size() < 3) return false; if (!findInitialTriangle(contour)) return false; } else { if (contour.size() < 2) return false; addCorner(0); addCorner(contour.size() - 1); initializeScore(contour, false); } savePolyline(); sequentialSideFit(co...
/** * Process the contour and returns true if a polyline could be found. * * @param contour Contour. Must be a ordered in CW or CCW * @return true for success or false if one could not be fit */
Process the contour and returns true if a polyline could be found
process
{ "repo_name": "lessthanoptimal/BoofCV", "path": "main/boofcv-feature/src/main/java/boofcv/alg/shapes/polyline/splitmerge/PolylineSplitMerge.java", "license": "apache-2.0", "size": 29914 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,080,335
public static byte[] bigDecimalToByte(BigDecimal num) { BigInteger sig = new BigInteger(num.unscaledValue().toString()); int scale = num.scale(); byte[] bscale = { (byte) (scale) }; byte[] buff = sig.toByteArray(); byte[] completeArr = new byte[buff.length + bscale.length]; System.arraycopy(bs...
static byte[] function(BigDecimal num) { BigInteger sig = new BigInteger(num.unscaledValue().toString()); int scale = num.scale(); byte[] bscale = { (byte) (scale) }; byte[] buff = sig.toByteArray(); byte[] completeArr = new byte[buff.length + bscale.length]; System.arraycopy(bscale, 0, completeArr, 0, bscale.length); ...
/** * This method will convert a big decimal value to bytes * * @param num * @return */
This method will convert a big decimal value to bytes
bigDecimalToByte
{ "repo_name": "mohammadshahidkhan/incubator-carbondata", "path": "core/src/main/java/org/apache/carbondata/core/util/DataTypeUtil.java", "license": "apache-2.0", "size": 17747 }
[ "java.math.BigDecimal", "java.math.BigInteger" ]
import java.math.BigDecimal; import java.math.BigInteger;
import java.math.*;
[ "java.math" ]
java.math;
2,573,548
TileShape search_shape = TileShapeUtils.get_instance(location); Collection<net.freerouting.freeroute.board.SearchTreeObject> overlaps = p_autoroute_engine.autoroute_search_tree.overlapping_objects(search_shape, -1); for (int i = this.first_layer; i <= this.last_layer; ++i) { ...
TileShape search_shape = TileShapeUtils.get_instance(location); Collection<net.freerouting.freeroute.board.SearchTreeObject> overlaps = p_autoroute_engine.autoroute_search_tree.overlapping_objects(search_shape, -1); for (int i = this.first_layer; i <= this.last_layer; ++i) { CompleteExpansionRoom found_room = null; Ite...
/** * Looks for the expansion room of this drill on each layer. Creates a * CompleteFreeSpaceExpansionRoom, if no expansion room is found. Returns * false, if that was not possible because of an obstacle at this.location * on some layer in the compensated search tree. */
Looks for the expansion room of this drill on each layer. Creates a CompleteFreeSpaceExpansionRoom, if no expansion room is found. Returns false, if that was not possible because of an obstacle at this.location on some layer in the compensated search tree
calculate_expansion_rooms
{ "repo_name": "rbuj/FreeRouting", "path": "src/main/java/net/freerouting/freeroute/autoroute/ExpansionDrill.java", "license": "gpl-3.0", "size": 5718 }
[ "java.util.Collection", "java.util.Iterator", "net.freerouting.freeroute.geometry.planar.TileShape", "net.freerouting.freeroute.geometry.planar.TileShapeUtils" ]
import java.util.Collection; import java.util.Iterator; import net.freerouting.freeroute.geometry.planar.TileShape; import net.freerouting.freeroute.geometry.planar.TileShapeUtils;
import java.util.*; import net.freerouting.freeroute.geometry.planar.*;
[ "java.util", "net.freerouting.freeroute" ]
java.util; net.freerouting.freeroute;
1,594,966
public static Bson bitwiseAnd(final String fieldName, final int value) { return createBitUpdateDocument(fieldName, "and", value); }
static Bson function(final String fieldName, final int value) { return createBitUpdateDocument(fieldName, "and", value); }
/** * Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given * name. * * @param fieldName the field name * @param value the value * @return the update */
Creates an update that performs a bitwise and between the given integer value and the integral value of the field with the given name
bitwiseAnd
{ "repo_name": "jsonking/mongo-java-driver", "path": "driver-core/src/main/com/mongodb/client/model/Updates.java", "license": "apache-2.0", "size": 23724 }
[ "org.bson.conversions.Bson" ]
import org.bson.conversions.Bson;
import org.bson.conversions.*;
[ "org.bson.conversions" ]
org.bson.conversions;
622,825
@Test public void isUserInRole() { O2Principal p = new O2Principal(); O2SecurityContext context = new O2SecurityContext(p); assertFalse(context.isUserInRole("some_random_role")); }
void function() { O2Principal p = new O2Principal(); O2SecurityContext context = new O2SecurityContext(p); assertFalse(context.isUserInRole(STR)); }
/** * Assert that this always returns false. */
Assert that this always returns false
isUserInRole
{ "repo_name": "kangaroo-server/kangaroo", "path": "kangaroo-server-authz/src/test/java/net/krotscheck/kangaroo/authz/oauth2/authn/O2SecurityContextTest.java", "license": "apache-2.0", "size": 2917 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
2,294,956
private void drawDataCollectionLines(Graphics2D bgBuffer, List<DataCollectionLine> dataCollectionLines) { for (DataCollectionLine line : dataCollectionLines) { bgBuffer.setPaint(DCL_COLOR); bgBuffer.setStroke(DCL_STROKE); bgBuffer.draw(line.getShape()); ...
void function(Graphics2D bgBuffer, List<DataCollectionLine> dataCollectionLines) { for (DataCollectionLine line : dataCollectionLines) { bgBuffer.setPaint(DCL_COLOR); bgBuffer.setStroke(DCL_STROKE); bgBuffer.draw(line.getShape()); } }
/** * Draw the data collection lines. * * @param bgBuffer the display buffer * @param dataCollectionLines the list of data collection lines */
Draw the data collection lines
drawDataCollectionLines
{ "repo_name": "bowzheng/AIM4_delay", "path": "src/main/java/aim4/gui/Canvas.java", "license": "gpl-3.0", "size": 43302 }
[ "java.awt.Graphics2D", "java.util.List" ]
import java.awt.Graphics2D; import java.util.List;
import java.awt.*; import java.util.*;
[ "java.awt", "java.util" ]
java.awt; java.util;
2,812,276
public void shutdown() { BubbleStormFactory.shutdown(); }
void function() { BubbleStormFactory.shutdown(); }
/** * Closes the BubbleStorm library. */
Closes the BubbleStorm library
shutdown
{ "repo_name": "DVS-P2P/bubblestorm", "path": "bindings/java/demo/Bubbler/src-core/net/bubblestorm/bubbler/backend/Core.java", "license": "gpl-3.0", "size": 8617 }
[ "net.bubblestorm.BubbleStormFactory" ]
import net.bubblestorm.BubbleStormFactory;
import net.bubblestorm.*;
[ "net.bubblestorm" ]
net.bubblestorm;
223,096
public void scrollToPosition(int position) { if (DEBUG) { Log.e(TAG, "You MUST implement scrollToPosition. It will soon become abstract"); } } /** * <p>Smooth scroll to the specified adapter position.</p> * <p>To support smooth scrolling...
void function(int position) { if (DEBUG) { Log.e(TAG, STR); } } /** * <p>Smooth scroll to the specified adapter position.</p> * <p>To support smooth scrolling, override this method, create your {@link SmoothScroller}
/** * Scroll to the specified adapter position. * * Actual position of the item on the screen depends on the LayoutManager implementation. * @param position Scroll to this adapter position. */
Scroll to the specified adapter position. Actual position of the item on the screen depends on the LayoutManager implementation
scrollToPosition
{ "repo_name": "aosp-mirror/platform_frameworks_support", "path": "v7/recyclerview/src/main/java/androidx/recyclerview/widget/RecyclerView.java", "license": "apache-2.0", "size": 582575 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
1,942,977
public CountDownLatch getViewEntityAsync(String entityListFullName, String viewName, String entityId, String responseFields, AsyncCallback<com.fasterxml.jackson.databind.JsonNode> callback) throws Exception { MozuClient<com.fasterxml.jackson.databind.JsonNode> client = com.mozu.api.clients.platform.entitylists....
CountDownLatch function(String entityListFullName, String viewName, String entityId, String responseFields, AsyncCallback<com.fasterxml.jackson.databind.JsonNode> callback) throws Exception { MozuClient<com.fasterxml.jackson.databind.JsonNode> client = com.mozu.api.clients.platform.entitylists.ListViewClient.getViewEnt...
/** * * <p><pre><code> * ListView listview = new ListView(); * CountDownLatch latch = listview.getViewEntity( entityListFullName, viewName, entityId, responseFields, callback ); * latch.await() * </code></pre></p> * @param entityId Unique identifier for an entity, which defines the schema, rules,...
<code><code> ListView listview = new ListView(); CountDownLatch latch = listview.getViewEntity( entityListFullName, viewName, entityId, responseFields, callback ); latch.await() * </code></code>
getViewEntityAsync
{ "repo_name": "Mozu/mozu-java", "path": "mozu-javaasync-core/src/main/java/com/mozu/api/resources/platform/entitylists/ListViewResource.java", "license": "mit", "size": 44274 }
[ "com.mozu.api.AsyncCallback", "com.mozu.api.MozuClient", "java.util.concurrent.CountDownLatch" ]
import com.mozu.api.AsyncCallback; import com.mozu.api.MozuClient; import java.util.concurrent.CountDownLatch;
import com.mozu.api.*; import java.util.concurrent.*;
[ "com.mozu.api", "java.util" ]
com.mozu.api; java.util;
409,462
default Optional<String> getApplicationTargetName() { return Optional.empty(); }
default Optional<String> getApplicationTargetName() { return Optional.empty(); }
/** * Returns the option to be used when trying to execute an application in Application Mode using * this cluster client factory, or an {@link Optional#empty()} if the environment of this * cluster client factory does not support Application Mode. */
Returns the option to be used when trying to execute an application in Application Mode using this cluster client factory, or an <code>Optional#empty()</code> if the environment of this cluster client factory does not support Application Mode
getApplicationTargetName
{ "repo_name": "apache/flink", "path": "flink-clients/src/main/java/org/apache/flink/client/deployment/ClusterClientFactory.java", "license": "apache-2.0", "size": 3177 }
[ "java.util.Optional" ]
import java.util.Optional;
import java.util.*;
[ "java.util" ]
java.util;
420,780
private void addExposedTypes(WildcardType type, Class<?> cause) { visit(type); for (Type lowerBound : type.getLowerBounds()) { addExposedTypes(lowerBound, cause); } for (Type upperBound : type.getUpperBounds()) { addExposedTypes(upperBound, cause); } }
void function(WildcardType type, Class<?> cause) { visit(type); for (Type lowerBound : type.getLowerBounds()) { addExposedTypes(lowerBound, cause); } for (Type upperBound : type.getUpperBounds()) { addExposedTypes(upperBound, cause); } }
/** * Adds any types exposed to this set. These will come from the (possibly absent) bounds on the * wildcard. */
Adds any types exposed to this set. These will come from the (possibly absent) bounds on the wildcard
addExposedTypes
{ "repo_name": "Test-Betta-Inc/musical-umbrella", "path": "sdk/src/main/java/com/google/cloud/dataflow/sdk/util/ApiSurface.java", "license": "apache-2.0", "size": 18500 }
[ "java.lang.reflect.Type", "java.lang.reflect.WildcardType" ]
import java.lang.reflect.Type; import java.lang.reflect.WildcardType;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,615,807
protected JPanel createShortcutsPanel() { GridBagLayout gbl = new GridBagLayout(); JPanel panel = new JPanel(gbl); Border border = BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder(), Bundle.getString("Preferences.keys.mappings...
JPanel function() { GridBagLayout gbl = new GridBagLayout(); JPanel panel = new JPanel(gbl); Border border = BorderFactory.createTitledBorder( BorderFactory.createEtchedBorder(), Bundle.getString(STR)); panel.setBorder(border); GridBagConstraints gbc = new GridBagConstraints(); gbc.insets = new Insets(3, 3, 3, 3); buil...
/** * Creates the shorcut mappings panel. * * @return newly created panel. */
Creates the shorcut mappings panel
createShortcutsPanel
{ "repo_name": "mbertacca/JSwat2", "path": "classes/com/bluemarsh/jswat/action/PreferencesAction.java", "license": "gpl-2.0", "size": 47228 }
[ "java.awt.GridBagConstraints", "java.awt.GridBagLayout", "java.awt.Insets", "java.util.Hashtable", "javax.swing.BorderFactory", "javax.swing.JPanel", "javax.swing.border.Border" ]
import java.awt.GridBagConstraints; import java.awt.GridBagLayout; import java.awt.Insets; import java.util.Hashtable; import javax.swing.BorderFactory; import javax.swing.JPanel; import javax.swing.border.Border;
import java.awt.*; import java.util.*; import javax.swing.*; import javax.swing.border.*;
[ "java.awt", "java.util", "javax.swing" ]
java.awt; java.util; javax.swing;
578,320
public INDArray reluLayer(INDArray input, INDArray weights, INDArray bias) { NDValidation.validateNumerical("reluLayer", "input", input); NDValidation.validateNumerical("reluLayer", "weights", weights); NDValidation.validateNumerical("reluLayer", "bias", bias); return Nd4j.exec(new org.nd4j.linalg.api...
INDArray function(INDArray input, INDArray weights, INDArray bias) { NDValidation.validateNumerical(STR, "input", input); NDValidation.validateNumerical(STR, STR, weights); NDValidation.validateNumerical(STR, "bias", bias); return Nd4j.exec(new org.nd4j.linalg.api.ops.impl.transforms.ReluLayer(input, weights, bias))[0]...
/** * ReLU (Rectified Linear Unit) layer operation: out = relu(mmul(in,w) + bias)<br> * Note that bias array is optional<br> * * @param input Input data (NUMERIC type) * @param weights Weights variable (NUMERIC type) * @param bias Optional bias variable (may be null) (NUMERIC type) * @return output...
ReLU (Rectified Linear Unit) layer operation: out = relu(mmul(in,w) + bias) Note that bias array is optional
reluLayer
{ "repo_name": "RobAltena/deeplearning4j", "path": "nd4j/nd4j-backends/nd4j-api-parent/nd4j-api/src/main/java/org/nd4j/linalg/factory/ops/NDNN.java", "license": "apache-2.0", "size": 24350 }
[ "org.nd4j.linalg.api.ndarray.INDArray", "org.nd4j.linalg.factory.NDValidation", "org.nd4j.linalg.factory.Nd4j" ]
import org.nd4j.linalg.api.ndarray.INDArray; import org.nd4j.linalg.factory.NDValidation; import org.nd4j.linalg.factory.Nd4j;
import org.nd4j.linalg.api.ndarray.*; import org.nd4j.linalg.factory.*;
[ "org.nd4j.linalg" ]
org.nd4j.linalg;
1,929,220
// simple min() on indexed col public void testMin0001() { List<AbstractPlanNode> pn = compileToFragments("SELECT MIN(C1) FROM R"); checkIndexLimit(pn, true, new String[]{"R_IDX1_TREE", "R_IDX2_TREE", "R_IDX4_TREE"}); }
void function() { List<AbstractPlanNode> pn = compileToFragments(STR); checkIndexLimit(pn, true, new String[]{STR, STR, STR}); }
/** * Test on replicated with pure column indexes */
Test on replicated with pure column indexes
testMin0001
{ "repo_name": "wolffcm/voltdb", "path": "tests/frontend/org/voltdb/planner/TestReplaceWithIndexLimit.java", "license": "agpl-3.0", "size": 20067 }
[ "java.util.List", "org.voltdb.plannodes.AbstractPlanNode" ]
import java.util.List; import org.voltdb.plannodes.AbstractPlanNode;
import java.util.*; import org.voltdb.plannodes.*;
[ "java.util", "org.voltdb.plannodes" ]
java.util; org.voltdb.plannodes;
1,657,738
public Thema getAuthorizedThemaByName (final String themaName, final Bronhouder bronhouder) { final Collection<Thema> authorizedThemas = getAuthorizedThemas (bronhouder); final Thema defaultTheme = authorizedThemas.isEmpty () ? null : authorizedThemas.iterator ().next (); if (themaName == null) { return ...
Thema function (final String themaName, final Bronhouder bronhouder) { final Collection<Thema> authorizedThemas = getAuthorizedThemas (bronhouder); final Thema defaultTheme = authorizedThemas.isEmpty () ? null : authorizedThemas.iterator ().next (); if (themaName == null) { return defaultTheme; } for (final Thema thema...
/** * Returns a specific theme identified by themeName and associated with bronhouder, for which the current * user has permissions. * * @param themaName The theme name to use as a filter, or null. * @param bronhouder The bronhouder to use as a filter. * @return The theme identified by name, or the def...
Returns a specific theme identified by themeName and associated with bronhouder, for which the current user has permissions
getAuthorizedThemaByName
{ "repo_name": "CDS-INSPIRE/InSpider", "path": "admin/src/main/java/nl/ipo/cds/admin/ba/util/GebruikerAuthorization.java", "license": "gpl-3.0", "size": 7348 }
[ "java.util.Collection", "nl.ipo.cds.domain.Bronhouder", "nl.ipo.cds.domain.Thema" ]
import java.util.Collection; import nl.ipo.cds.domain.Bronhouder; import nl.ipo.cds.domain.Thema;
import java.util.*; import nl.ipo.cds.domain.*;
[ "java.util", "nl.ipo.cds" ]
java.util; nl.ipo.cds;
186,024
private ArrayList<UiScannerWebElement> addButtons(ArrayList<UiScannerWebElement> result) { for (WebElement elem : findButtons()) { result = elemIntoList(result, UiScannerConstants.TYP_BUTTON, elem); } return result; }
ArrayList<UiScannerWebElement> function(ArrayList<UiScannerWebElement> result) { for (WebElement elem : findButtons()) { result = elemIntoList(result, UiScannerConstants.TYP_BUTTON, elem); } return result; }
/** * adds all new Button WebElements to the given List. * * @param result * List<UiScannerWebElement> to add the new WebElements. * @return List<UiScannerWebElement> */
adds all new Button WebElements to the given List
addButtons
{ "repo_name": "franzbecker/test-editor", "path": "uiscanner/org.testeditor.ui.uiscanner/src/org/testeditor/ui/uiscanner/webscanner/WebScanner.java", "license": "epl-1.0", "size": 16114 }
[ "java.util.ArrayList", "org.openqa.selenium.WebElement" ]
import java.util.ArrayList; import org.openqa.selenium.WebElement;
import java.util.*; import org.openqa.selenium.*;
[ "java.util", "org.openqa.selenium" ]
java.util; org.openqa.selenium;
1,349,739
public void add(Collection<MonitoringDoc> docs) throws ExportException { if (closed.get() == false) { doAdd(docs); } }
void function(Collection<MonitoringDoc> docs) throws ExportException { if (closed.get() == false) { doAdd(docs); } }
/** * Add documents to the exporting bulk */
Add documents to the exporting bulk
add
{ "repo_name": "robin13/elasticsearch", "path": "x-pack/plugin/monitoring/src/main/java/org/elasticsearch/xpack/monitoring/exporter/ExportBulk.java", "license": "apache-2.0", "size": 5332 }
[ "java.util.Collection", "org.elasticsearch.xpack.core.monitoring.exporter.MonitoringDoc" ]
import java.util.Collection; import org.elasticsearch.xpack.core.monitoring.exporter.MonitoringDoc;
import java.util.*; import org.elasticsearch.xpack.core.monitoring.exporter.*;
[ "java.util", "org.elasticsearch.xpack" ]
java.util; org.elasticsearch.xpack;
730,638
private int loadShader(int shaderType, String shaderCode) { int shader = GLES20.glCreateShader(shaderType); if (shader == 0) { checkGlError("Error loading shader: " + shaderType); } // Add the source code to the shader and compile it. GLES20.glShaderSource(shader...
int function(int shaderType, String shaderCode) { int shader = GLES20.glCreateShader(shaderType); if (shader == 0) { checkGlError(STR + shaderType); } GLES20.glShaderSource(shader, shaderCode); GLES20.glCompileShader(shader); int[] compileStatus = new int[1]; GLES20.glGetShaderiv(shader, GLES20.GL_COMPILE_STATUS, compi...
/** * Loads and compiles the given {@code shaderType} and {@code shaderCode}. * * @param shaderType the type of shader to be created * @param shaderCode source code to be loaded into the shader * @return an integer reference to the created shader * @throws RuntimeException an error while c...
Loads and compiles the given shaderType and shaderCode
loadShader
{ "repo_name": "chromeos/low-latency-stylus", "path": "DemoApp/app/src/main/java/dev/chromeos/lowlatencystylusdemo/gpu/BrushShader.java", "license": "apache-2.0", "size": 18405 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
1,049,048
public String format(Description d) { String s = (d != null) ? d.value() : null; if (isNullOrEmpty(s)) return ""; return String.format("[%s] ", s); }
String function(Description d) { String s = (d != null) ? d.value() : null; if (isNullOrEmpty(s)) return STR[%s] ", s); }
/** * Formats the given <code>{@link Description}</code> by surrounding its text value with square brackets and adding a space at * the end. * @param d the description to format. It can be {@code null}. * @return the formatted description, or an empty {@code String} if the the {@code Description} is {@code ...
Formats the given <code><code>Description</code></code> by surrounding its text value with square brackets and adding a space at the end
format
{ "repo_name": "ChrisCanCompute/assertj-core", "path": "src/main/java/org/assertj/core/error/DescriptionFormatter.java", "license": "apache-2.0", "size": 1783 }
[ "org.assertj.core.description.Description" ]
import org.assertj.core.description.Description;
import org.assertj.core.description.*;
[ "org.assertj.core" ]
org.assertj.core;
2,903,992
public static Optional<Boolean> optionalBoolean(ModelNode value) { return value.isDefined() ? Optional.of(value.asBoolean()) : Optional.empty(); }
static Optional<Boolean> function(ModelNode value) { return value.isDefined() ? Optional.of(value.asBoolean()) : Optional.empty(); }
/** * Returns the optional boolean value of the specified {@link ModelNode}. * @param value the model node * @return an optional value */
Returns the optional boolean value of the specified <code>ModelNode</code>
optionalBoolean
{ "repo_name": "xasx/wildfly", "path": "clustering/common/src/main/java/org/jboss/as/clustering/dmr/ModelNodes.java", "license": "lgpl-2.1", "size": 5322 }
[ "java.util.Optional", "org.jboss.dmr.ModelNode" ]
import java.util.Optional; import org.jboss.dmr.ModelNode;
import java.util.*; import org.jboss.dmr.*;
[ "java.util", "org.jboss.dmr" ]
java.util; org.jboss.dmr;
1,086,078