method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
public Color getBackground(){ return _background; }
Color function(){ return _background; }
/** * Returns the background color used for clearing a region. * @return the current <code>Graphics2D</code> <code>Color</code>, * which defines the background color. * @see #setBackground */
Returns the background color used for clearing a region
getBackground
{ "repo_name": "lvweiwolf/poi-3.16", "path": "src/java/org/apache/poi/sl/draw/SLGraphics.java", "license": "apache-2.0", "size": 79340 }
[ "java.awt.Color" ]
import java.awt.Color;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,025,456
@Test public void testSetLineColour() { Colour newColour = new Colour(1, 2, 3); assertFalse("new value different", EXPECTED_FG_COLOUR.equals(newColour)); this.testInstance.setLineColour(newColour); assertEquals("expected line colour", newColour, this.testInstance.getLineColour()); CanvasAttributePropertyC...
void function() { Colour newColour = new Colour(1, 2, 3); assertFalse(STR, EXPECTED_FG_COLOUR.equals(newColour)); this.testInstance.setLineColour(newColour); assertEquals(STR, newColour, this.testInstance.getLineColour()); CanvasAttributePropertyChangeEventValidator validator = new CanvasAttributePropertyChangeEventVal...
/** * Test method for {@link org.pathwayeditor.businessobjects.impl.LabelAttribute#setLineColour(org.pathwayeditor.businessobjects.drawingprimitives.attributes.Colour)}. */
Test method for <code>org.pathwayeditor.businessobjects.impl.LabelAttribute#setLineColour(org.pathwayeditor.businessobjects.drawingprimitives.attributes.Colour)</code>
testSetLineColour
{ "repo_name": "stumoodie/VisualLanguageToolkit", "path": "test/org/pathwayeditor/businessobjects/impl/LabelAttributeTest.java", "license": "apache-2.0", "size": 17230 }
[ "org.junit.Assert", "org.pathwayeditor.businessobjects.drawingprimitives.attributes.Colour", "org.pathwayeditor.businessobjects.drawingprimitives.listeners.CanvasAttributePropertyChange", "org.pathwayeditor.testfixture.CanvasAttributePropertyChangeEventValidator" ]
import org.junit.Assert; import org.pathwayeditor.businessobjects.drawingprimitives.attributes.Colour; import org.pathwayeditor.businessobjects.drawingprimitives.listeners.CanvasAttributePropertyChange; import org.pathwayeditor.testfixture.CanvasAttributePropertyChangeEventValidator;
import org.junit.*; import org.pathwayeditor.businessobjects.drawingprimitives.attributes.*; import org.pathwayeditor.businessobjects.drawingprimitives.listeners.*; import org.pathwayeditor.testfixture.*;
[ "org.junit", "org.pathwayeditor.businessobjects", "org.pathwayeditor.testfixture" ]
org.junit; org.pathwayeditor.businessobjects; org.pathwayeditor.testfixture;
801,202
public T withGitCreds(List<ExploratoryGitCreds> gitCreds) { setGitCreds(gitCreds); return self; }
T function(List<ExploratoryGitCreds> gitCreds) { setGitCreds(gitCreds); return self; }
/** * Set the list of GIT credentials and return this object. */
Set the list of GIT credentials and return this object
withGitCreds
{ "repo_name": "epam/DLab", "path": "services/dlab-model/src/main/java/com/epam/dlab/dto/exploratory/ExploratoryCreateDTO.java", "license": "apache-2.0", "size": 2282 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,262,285
@Override @SuppressWarnings("deprecation") public FSDataOutputStream createNonRecursive(final Path f, final FsPermission permission, final EnumSet<CreateFlag> flag, final int bufferSize, final short replication, final long blockSize, final Progressable progress) throws IOException { statisti...
@SuppressWarnings(STR) FSDataOutputStream function(final Path f, final FsPermission permission, final EnumSet<CreateFlag> flag, final int bufferSize, final short replication, final long blockSize, final Progressable progress) throws IOException { statistics.incrementWriteOps(1); if (flag.contains(CreateFlag.OVERWRITE))...
/** * Same as create(), except fails if parent directory doesn't already exist. */
Same as create(), except fails if parent directory doesn't already exist
createNonRecursive
{ "repo_name": "jsrudani/HadoopHDFSProject", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DistributedFileSystem.java", "license": "apache-2.0", "size": 60935 }
[ "java.io.IOException", "java.util.EnumSet", "org.apache.hadoop.fs.CreateFlag", "org.apache.hadoop.fs.FSDataOutputStream", "org.apache.hadoop.fs.Path", "org.apache.hadoop.fs.permission.FsPermission", "org.apache.hadoop.util.Progressable" ]
import java.io.IOException; import java.util.EnumSet; import org.apache.hadoop.fs.CreateFlag; import org.apache.hadoop.fs.FSDataOutputStream; import org.apache.hadoop.fs.Path; import org.apache.hadoop.fs.permission.FsPermission; import org.apache.hadoop.util.Progressable;
import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.fs.permission.*; import org.apache.hadoop.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
1,214,995
default void checkInput(Op input) { checkInput(input.op()); }
default void checkInput(Op input) { checkInput(input.op()); }
/** * Checks that {@code input} is valid to use as an input in this execution environment. Throws * {@link IllegalArgumentException} if not. * * @param input The op to check * @throws IllegalArgumentException if input can't be used as an input in this execution * environment. */
Checks that input is valid to use as an input in this execution environment. Throws <code>IllegalArgumentException</code> if not
checkInput
{ "repo_name": "tensorflow/java", "path": "tensorflow-core/tensorflow-core-api/src/main/java/org/tensorflow/ExecutionEnvironment.java", "license": "apache-2.0", "size": 4109 }
[ "org.tensorflow.op.Op" ]
import org.tensorflow.op.Op;
import org.tensorflow.op.*;
[ "org.tensorflow.op" ]
org.tensorflow.op;
2,523,786
@Test public void test_getAmountProcessed() { BigDecimal value = new BigDecimal(1); instance.setAmountProcessed(value); assertSame("'getAmountProcessed' should be correct.", value, instance.getAmountProcessed()); }
void function() { BigDecimal value = new BigDecimal(1); instance.setAmountProcessed(value); assertSame(STR, value, instance.getAmountProcessed()); }
/** * <p> * Accuracy test for the method <code>getAmountProcessed()</code>.<br> * The value should be properly retrieved. * </p> */
Accuracy test for the method <code>getAmountProcessed()</code>. The value should be properly retrieved.
test_getAmountProcessed
{ "repo_name": "NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application", "path": "Code/SCRD_BRE/src/java/tests/gov/opm/scrd/entities/application/AuditBatchUnitTests.java", "license": "apache-2.0", "size": 26926 }
[ "java.math.BigDecimal", "org.junit.Assert" ]
import java.math.BigDecimal; import org.junit.Assert;
import java.math.*; import org.junit.*;
[ "java.math", "org.junit" ]
java.math; org.junit;
1,550,687
@Override public void write(byte []buf, int offset, int length, boolean isEnd) throws IOException { OutputStream stream = getStream(); if (stream == null) { return; } synchronized (stream) { stream.write(buf, offset, length); if (isEnd) { stream.flush(); ...
void function(byte []buf, int offset, int length, boolean isEnd) throws IOException { OutputStream stream = getStream(); if (stream == null) { return; } synchronized (stream) { stream.write(buf, offset, length); if (isEnd) { stream.flush(); } } }
/** * Write data to the stream. */
Write data to the stream
write
{ "repo_name": "baratine/baratine", "path": "web/src/main/java/com/caucho/v5/log/impl/EnvironmentStream.java", "license": "gpl-2.0", "size": 8849 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,206,616
public PdfPTable createPdfPTable() throws DocumentException { if (content.isEmpty()) throw new BadElementException("Trying to create a table without rows."); SimpleCell row = (SimpleCell)content.get(0); SimpleCell cell; int columns = 0; for (Iterator i = row.getContent().iterator(); i.hasNext(); ) { cel...
PdfPTable function() throws DocumentException { if (content.isEmpty()) throw new BadElementException(STR); SimpleCell row = (SimpleCell)content.get(0); SimpleCell cell; int columns = 0; for (Iterator i = row.getContent().iterator(); i.hasNext(); ) { cell = (SimpleCell)i.next(); columns += cell.getColspan(); } float[] w...
/** * Creates a PdfPTable object based on this TableAttributes object. * @return a com.lowagie.text.pdf.PdfPTable object * @throws DocumentException */
Creates a PdfPTable object based on this TableAttributes object
createPdfPTable
{ "repo_name": "shitalm/jsignpdf2", "path": "src/main/java/com/lowagie/text/SimpleTable.java", "license": "gpl-2.0", "size": 10642 }
[ "com.lowagie.text.pdf.PdfPTable", "java.util.Iterator" ]
import com.lowagie.text.pdf.PdfPTable; import java.util.Iterator;
import com.lowagie.text.pdf.*; import java.util.*;
[ "com.lowagie.text", "java.util" ]
com.lowagie.text; java.util;
1,325,329
@Test public void testProperties() { // given JavaContext context = getContext(); // when CodeType yearMonth = context.getType("java.time.YearMonth"); // then CodeProperties properties = yearMonth.getProperties(); assertThat(properties.getDeclared().size()).isGreaterThanOrEqualTo(2); ...
void function() { JavaContext context = getContext(); CodeType yearMonth = context.getType(STR); CodeProperties properties = yearMonth.getProperties(); assertThat(properties.getDeclared().size()).isGreaterThanOrEqualTo(2); checkProperty(properties, "year", int.class); checkProperty(properties, "month", int.class); }
/** * Test of {@link CodeType#getProperties() properties}. */
Test of <code>CodeType#getProperties() properties</code>
testProperties
{ "repo_name": "m-m-m/code", "path": "java/impl/src/test/java/net/sf/mmm/code/impl/java/JavaRootContextTest.java", "license": "apache-2.0", "size": 7810 }
[ "net.sf.mmm.code.api.member.CodeProperties", "net.sf.mmm.code.api.type.CodeType" ]
import net.sf.mmm.code.api.member.CodeProperties; import net.sf.mmm.code.api.type.CodeType;
import net.sf.mmm.code.api.member.*; import net.sf.mmm.code.api.type.*;
[ "net.sf.mmm" ]
net.sf.mmm;
1,165,788
public List<Edge> getEdges() { return edges; }
List<Edge> function() { return edges; }
/** * Returns the edges contained in this graph. Changes to the returned * list will be reflected in this graph. * * @return the edges contained in this graph */
Returns the edges contained in this graph. Changes to the returned list will be reflected in this graph
getEdges
{ "repo_name": "jkinable/jorlib", "path": "jorlib-core/src/main/java/org/jorlib/io/tspLibReader/graph/EdgeData.java", "license": "lgpl-2.1", "size": 5644 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,263,840
public List<RafUserRole> queryByRange(String jpqlStmt, int firstResult, int maxResults);
List<RafUserRole> function(String jpqlStmt, int firstResult, int maxResults);
/** * queryByRange - allows querying by range/block * * @param jpqlStmt * @param firstResult * @param maxResults * @return a list of RafUserRole */
queryByRange - allows querying by range/block
queryByRange
{ "repo_name": "yauritux/venice-legacy", "path": "Venice/Venice-Interface-Model/src/main/java/com/gdn/venice/facade/RafUserRoleSessionEJBRemote.java", "license": "apache-2.0", "size": 2346 }
[ "com.gdn.venice.persistence.RafUserRole", "java.util.List" ]
import com.gdn.venice.persistence.RafUserRole; import java.util.List;
import com.gdn.venice.persistence.*; import java.util.*;
[ "com.gdn.venice", "java.util" ]
com.gdn.venice; java.util;
360,138
public static double[] EquatorialEquinoxChange(double mjdCurrentEquinox, final double[] currentVec, double mjdNewEquinox) { // first get precession matrix between the two dates double[][] prec = PrecMatrix_Equ( (mjdCurrentEquinox-AstroConst.MJD_J2000)/36525, (mjdNewEquinox-AstroConst.MJD_J20...
static double[] function(double mjdCurrentEquinox, final double[] currentVec, double mjdNewEquinox) { double[][] prec = PrecMatrix_Equ( (mjdCurrentEquinox-AstroConst.MJD_J2000)/36525, (mjdNewEquinox-AstroConst.MJD_J2000)/36525); return MathUtils.mult(prec,currentVec); }
/** * General function to perform a equinox basis transformation for a vector in Earth equatorial coordinates (e.g., from 2000.0 to 1950.0) * * @param mjdCurrentEquinox Current Modified Julian Date Equinox * @param currentVec Current vector in Earth equatorial coordinates using mjdCurrentEquinox...
General function to perform a equinox basis transformation for a vector in Earth equatorial coordinates (e.g., from 2000.0 to 1950.0)
EquatorialEquinoxChange
{ "repo_name": "rrr6399/JSatTrakLib", "path": "src/name/gano/astro/coordinates/CoordinateConversion.java", "license": "apache-2.0", "size": 24311 }
[ "name.gano.astro.AstroConst", "name.gano.astro.MathUtils" ]
import name.gano.astro.AstroConst; import name.gano.astro.MathUtils;
import name.gano.astro.*;
[ "name.gano.astro" ]
name.gano.astro;
1,899,663
@Issue("JENKINS-14113") public void testUnprotectedRootAction() throws Exception { jenkins.setSecurityRealm(createDummySecurityRealm()); jenkins.setAuthorizationStrategy(new FullControlOnceLoggedInAuthorizationStrategy()); WebClient wc = createWebClient(); wc.goTo("/foobar"); ...
@Issue(STR) void function() throws Exception { jenkins.setSecurityRealm(createDummySecurityRealm()); jenkins.setAuthorizationStrategy(new FullControlOnceLoggedInAuthorizationStrategy()); WebClient wc = createWebClient(); wc.goTo(STR); wc.goTo(STR); wc.goTo(STR); wc.assertFails(STR, HttpURLConnection.HTTP_INTERNAL_ERROR...
/** * Makes sure access to "/foobar" for UnprotectedRootAction gets through. */
Makes sure access to "/foobar" for UnprotectedRootAction gets through
testUnprotectedRootAction
{ "repo_name": "keyurpatankar/hudson", "path": "test/src/test/java/jenkins/model/JenkinsTest.java", "license": "mit", "size": 16318 }
[ "hudson.model.RootAction", "hudson.security.FullControlOnceLoggedInAuthorizationStrategy", "java.net.HttpURLConnection", "org.junit.Assert", "org.jvnet.hudson.test.Issue" ]
import hudson.model.RootAction; import hudson.security.FullControlOnceLoggedInAuthorizationStrategy; import java.net.HttpURLConnection; import org.junit.Assert; import org.jvnet.hudson.test.Issue;
import hudson.model.*; import hudson.security.*; import java.net.*; import org.junit.*; import org.jvnet.hudson.test.*;
[ "hudson.model", "hudson.security", "java.net", "org.junit", "org.jvnet.hudson" ]
hudson.model; hudson.security; java.net; org.junit; org.jvnet.hudson;
732,911
public void addInputBoxTextEnteredFunction(QueueCommandInterface<String> listen){ EventQueue.invokeLater(new inputHandlerRunnable(listen)); } private class inputHandlerRunnable implements Runnable{ private QueueCommandInterface<String> handler_; public inputHandlerRunnable(QueueCommandInterface<Stri...
void function(QueueCommandInterface<String> listen){ EventQueue.invokeLater(new inputHandlerRunnable(listen)); } private class inputHandlerRunnable implements Runnable{ private QueueCommandInterface<String> handler_; public inputHandlerRunnable(QueueCommandInterface<String> foo) { handler_ = foo; }
/** * Adds a QueueCommandInterface<String> object to the list of things called by chatbox on enter * @param QueueCommandInterface<String> listen */
Adds a QueueCommandInterface object to the list of things called by chatbox on enter
addInputBoxTextEnteredFunction
{ "repo_name": "JohnReedLOL/Nineteen_Characters", "path": "src/src/io/view/display/Display.java", "license": "apache-2.0", "size": 11519 }
[ "java.awt.EventQueue" ]
import java.awt.EventQueue;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,769,319
@Override public void startElement(String uri, String localName, String qName, Attributes attributes) throws SAXException { String name = attributes.getValue("name"); // ppp("START ELEMENT uri:" + uri + " sName:" + localName + " qName:" + qName + // " " + attributes); if ("suite".equals(qName)) { ...
void function(String uri, String localName, String qName, Attributes attributes) throws SAXException { String name = attributes.getValue("name"); if ("suite".equals(qName)) { xmlSuite(true, attributes); } else if (STR.equals(qName)) { xmlSuiteFile(true, attributes); } else if ("test".equals(qName)) { xmlTest(true, attr...
/** * NOTE: I only invoke xml*methods (e.g. xmlSuite()) if I am acting on both * the start and the end of the tag. This way I can keep the treatment of * this tag in one place. If I am only doing something when the tag opens, * the code is inlined below in the startElement() method. */
the start and the end of the tag. This way I can keep the treatment of this tag in one place. If I am only doing something when the tag opens, the code is inlined below in the startElement() method
startElement
{ "repo_name": "JeshRJ/myRepRJ", "path": "src/main/java/org/testng/xml/TestNGContentHandler.java", "license": "apache-2.0", "size": 24982 }
[ "java.util.Map", "org.testng.collections.Lists", "org.testng.collections.Maps", "org.xml.sax.Attributes", "org.xml.sax.SAXException" ]
import java.util.Map; import org.testng.collections.Lists; import org.testng.collections.Maps; import org.xml.sax.Attributes; import org.xml.sax.SAXException;
import java.util.*; import org.testng.collections.*; import org.xml.sax.*;
[ "java.util", "org.testng.collections", "org.xml.sax" ]
java.util; org.testng.collections; org.xml.sax;
2,499,833
HdmiPortInfo getPortInfo(int portId) { return mPortInfoMap.get(portId, null); }
HdmiPortInfo getPortInfo(int portId) { return mPortInfoMap.get(portId, null); }
/** * Returns HDMI port information for the given port id. * * @param portId HDMI port id * @return {@link HdmiPortInfo} for the given port */
Returns HDMI port information for the given port id
getPortInfo
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "frameworks/base/services/core/java/com/android/server/hdmi/HdmiControlService.java", "license": "gpl-3.0", "size": 86705 }
[ "android.hardware.hdmi.HdmiPortInfo" ]
import android.hardware.hdmi.HdmiPortInfo;
import android.hardware.hdmi.*;
[ "android.hardware" ]
android.hardware;
617,448
public BTreeStoreAndGetFuture<Boolean, Object> asyncBopInsertAndGetTrimmed( String key, long bkey, byte[] eFlag, Object value, CollectionAttributes attributesForCreate);
BTreeStoreAndGetFuture<Boolean, Object> function( String key, long bkey, byte[] eFlag, Object value, CollectionAttributes attributesForCreate);
/** * Insert an element into b+tree and also get the "trimmed" element if any. * * @param key b+tree item's key * @param bkey element's key * @param eFlag optional element flag * @param value element's value * @param attributesForCreate optional attributes used for creating b+tree item * @return fu...
Insert an element into b+tree and also get the "trimmed" element if any
asyncBopInsertAndGetTrimmed
{ "repo_name": "jam2in/arcus-java-client", "path": "src/main/java/net/spy/memcached/ArcusClientIF.java", "license": "apache-2.0", "size": 66899 }
[ "net.spy.memcached.collection.CollectionAttributes", "net.spy.memcached.internal.BTreeStoreAndGetFuture" ]
import net.spy.memcached.collection.CollectionAttributes; import net.spy.memcached.internal.BTreeStoreAndGetFuture;
import net.spy.memcached.collection.*; import net.spy.memcached.internal.*;
[ "net.spy.memcached" ]
net.spy.memcached;
2,774,858
return new Privacy(Objects.requireNonNull(active), null, null); }
return new Privacy(Objects.requireNonNull(active), null, null); }
/** * Creates a privacy element with an active list. * * @param active The active list name. Pass an empty string if you want to decline the use of an active list. * @return The privacy element. */
Creates a privacy element with an active list
withActive
{ "repo_name": "jeozey/XmppServerTester", "path": "xmpp-extensions/src/main/java/rocks/xmpp/extensions/privacy/model/Privacy.java", "license": "mit", "size": 6380 }
[ "java.util.Objects" ]
import java.util.Objects;
import java.util.*;
[ "java.util" ]
java.util;
1,592,312
public void saveOnionAddress() throws NoSuchAlgorithmException, CertificateException, IOException { BufferedWriter pubKeyFileWriter = null; BufferedWriter privKeyFileWriter = null; BufferedWriter onionAddressFileWriter = null; Charset charset = Charset.forName("UTF-8"); Path pubKeyFile = Paths.get(UR...
void function() throws NoSuchAlgorithmException, CertificateException, IOException { BufferedWriter pubKeyFileWriter = null; BufferedWriter privKeyFileWriter = null; BufferedWriter onionAddressFileWriter = null; Charset charset = Charset.forName("UTF-8"); Path pubKeyFile = Paths.get(URI.create(STR/cert.pub")); Path pri...
/** * Permette di memorizzare l'indirizzo .onion generato. * * @throws NoSuchAlgorithmException * @throws CertificateException * @throws IOException */
Permette di memorizzare l'indirizzo .onion generato
saveOnionAddress
{ "repo_name": "skorpion17/CaronteJ", "path": "src/main/java/it/uniroma2/sii/generator/OnionURLGenerator.java", "license": "gpl-3.0", "size": 5744 }
[ "java.io.BufferedWriter", "java.io.IOException", "java.net.URI", "java.nio.charset.Charset", "java.nio.file.Files", "java.nio.file.Path", "java.nio.file.Paths", "java.nio.file.StandardOpenOption", "java.security.NoSuchAlgorithmException", "java.security.cert.CertificateException" ]
import java.io.BufferedWriter; import java.io.IOException; import java.net.URI; import java.nio.charset.Charset; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.nio.file.StandardOpenOption; import java.security.NoSuchAlgorithmException; import java.security.cert.Certificat...
import java.io.*; import java.net.*; import java.nio.charset.*; import java.nio.file.*; import java.security.*; import java.security.cert.*;
[ "java.io", "java.net", "java.nio", "java.security" ]
java.io; java.net; java.nio; java.security;
1,611,072
protected void onPrepareRequest(HttpUriRequest request) throws IOException { // Nothing. } public static final class HttpPatch extends HttpEntityEnclosingRequestBase { public final static String METHOD_NAME = "PATCH"; public HttpPatch() { super(); } ...
void function(HttpUriRequest request) throws IOException { } public static final class HttpPatch extends HttpEntityEnclosingRequestBase { public final static String METHOD_NAME = "PATCH"; public HttpPatch() { super(); } public HttpPatch(final URI uri) { super(); setURI(uri); } public HttpPatch(final String uri) { super...
/** * Called before the request is executed using the underlying HttpClient. * * <p>Overwrite in subclasses to augment the request.</p> */
Called before the request is executed using the underlying HttpClient. Overwrite in subclasses to augment the request
onPrepareRequest
{ "repo_name": "axmadjon/AndroidSlidingMenu", "path": "app/src/main/java/uz/greenwhite/slidingmenu/support/v10/volley/lib/request/toolbox/HttpClientStack.java", "license": "apache-2.0", "size": 7659 }
[ "java.io.IOException", "java.net.URI", "org.apache.http.client.methods.HttpEntityEnclosingRequestBase", "org.apache.http.client.methods.HttpUriRequest" ]
import java.io.IOException; import java.net.URI; import org.apache.http.client.methods.HttpEntityEnclosingRequestBase; import org.apache.http.client.methods.HttpUriRequest;
import java.io.*; import java.net.*; import org.apache.http.client.methods.*;
[ "java.io", "java.net", "org.apache.http" ]
java.io; java.net; org.apache.http;
731,527
protected void restOptions(NabuccoServletRequest request, NabuccoServletResponse response) throws ClientException { throw new ClientException("HTTP OPTIONS is not supported for this URL."); }
void function(NabuccoServletRequest request, NabuccoServletResponse response) throws ClientException { throw new ClientException(STR); }
/** * <b>REST - HTTP OPTIONS</b> * <p/> * Checks which options are available on a resource. * * @param request * the HTTP request * @param response * the HTTP response * * @throws ClientException * when the resource options canno...
REST - HTTP OPTIONS Checks which options are available on a resource
restOptions
{ "repo_name": "NABUCCO/org.nabucco.framework.base", "path": "org.nabucco.framework.base.ui.web/src/main/man/org/nabucco/framework/base/ui/web/servlet/NabuccoServlet.java", "license": "epl-1.0", "size": 20430 }
[ "org.nabucco.framework.base.facade.exception.client.ClientException" ]
import org.nabucco.framework.base.facade.exception.client.ClientException;
import org.nabucco.framework.base.facade.exception.client.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
1,878,030
@Test void evaluateWithSecureUberspectorActiveByDefault() throws Exception { this.engine.initialize(new Properties()); String content = "#set($foo = 'test')#set($object = $foo.class.forName('java.util.ArrayList')" + ".newInstance())$object.size()"; assertEvaluate("$objec...
void evaluateWithSecureUberspectorActiveByDefault() throws Exception { this.engine.initialize(new Properties()); String content = STR + STR; assertEvaluate(STR, content, DEFAULT_TEMPLATE_NAME); assertEquals( STR, logCapture.getMessage(0)); }
/** * Verify that the default configuration doesn't allow calling Class.forName. */
Verify that the default configuration doesn't allow calling Class.forName
evaluateWithSecureUberspectorActiveByDefault
{ "repo_name": "xwiki/xwiki-commons", "path": "xwiki-commons-core/xwiki-commons-velocity/src/test/java/org/xwiki/velocity/internal/DefaultVelocityEngineTest.java", "license": "lgpl-2.1", "size": 20545 }
[ "java.util.Properties", "org.junit.jupiter.api.Assertions" ]
import java.util.Properties; import org.junit.jupiter.api.Assertions;
import java.util.*; import org.junit.jupiter.api.*;
[ "java.util", "org.junit.jupiter" ]
java.util; org.junit.jupiter;
28,478
@Override public Object get(Object key) { try { byte[] obj = getGeodeRegion().get((String)key); if (obj == null) { return null; } ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(obj); getKyro().setClassLoader(Thread.currentThread().getContextClassLo...
Object function(Object key) { try { byte[] obj = getGeodeRegion().get((String)key); if (obj == null) { return null; } ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(obj); getKyro().setClassLoader(Thread.currentThread().getContextClassLoader()); Input input = new Input(byteArrayInputStream); return...
/** * Return the value for specified key from Geode region * * @return the value object */
Return the value for specified key from Geode region
get
{ "repo_name": "ilganeli/incubator-apex-malhar", "path": "contrib/src/main/java/com/datatorrent/contrib/geode/GeodeCheckpointStore.java", "license": "apache-2.0", "size": 8800 }
[ "com.esotericsoftware.kryo.io.Input", "java.io.ByteArrayInputStream" ]
import com.esotericsoftware.kryo.io.Input; import java.io.ByteArrayInputStream;
import com.esotericsoftware.kryo.io.*; import java.io.*;
[ "com.esotericsoftware.kryo", "java.io" ]
com.esotericsoftware.kryo; java.io;
1,707,537
private static List<Submission> parseJson(Object response) { // List of submissions List<Submission> submissions = new LinkedList<Submission>(); if (response instanceof JSONObject) { JSONObject object = (JSONObject) response; if (object.get("error") != null) { ...
static List<Submission> function(Object response) { List<Submission> submissions = new LinkedList<Submission>(); if (response instanceof JSONObject) { JSONObject object = (JSONObject) response; if (object.get("error") != null) { throw new RedditError(STR + object.get("error") + "."); } JSONArray array = (JSONArray) ((J...
/** * Parses a JSON feed received from Reddit (URL) into a nice list of Submission objects. * * @param response * @return Listing of submissions */
Parses a JSON feed received from Reddit (URL) into a nice list of Submission objects
parseJson
{ "repo_name": "sdoh55/redditDroid", "path": "app/src/main/java/com/danny_oh/reddit/retrieval/AsyncSubmissions.java", "license": "apache-2.0", "size": 12331 }
[ "com.danny_oh.reddit.util.RedditRestClient", "com.github.jreddit.entity.Kind", "com.github.jreddit.entity.Submission", "com.github.jreddit.entity.User", "com.github.jreddit.exception.RedditError", "com.github.jreddit.utils.restclient.JsonUtils", "java.util.LinkedList", "java.util.List", "org.json.si...
import com.danny_oh.reddit.util.RedditRestClient; import com.github.jreddit.entity.Kind; import com.github.jreddit.entity.Submission; import com.github.jreddit.entity.User; import com.github.jreddit.exception.RedditError; import com.github.jreddit.utils.restclient.JsonUtils; import java.util.LinkedList; import java.uti...
import com.danny_oh.reddit.util.*; import com.github.jreddit.entity.*; import com.github.jreddit.exception.*; import com.github.jreddit.utils.restclient.*; import java.util.*; import org.json.simple.*;
[ "com.danny_oh.reddit", "com.github.jreddit", "java.util", "org.json.simple" ]
com.danny_oh.reddit; com.github.jreddit; java.util; org.json.simple;
464,323
private List<JcrPackage> getJcrPackages(final String[] paths) { final List<JcrPackage> packages = new ArrayList<JcrPackage>(); for (final String path : paths) { final Resource eventResource = this.adminResourceResolver.getResource(path); JcrPackage jcrPackage; ...
List<JcrPackage> function(final String[] paths) { final List<JcrPackage> packages = new ArrayList<JcrPackage>(); for (final String path : paths) { final Resource eventResource = this.adminResourceResolver.getResource(path); JcrPackage jcrPackage; try { jcrPackage = packaging.open(eventResource.adaptTo(Node.class), fals...
/** * Resolves paths to Jcr Packages. If any path does not resolve to a valid Jcr Package, it is discarded. * * @param paths the list of paths to resolve to Jcr Packages * @return a list of Jcr Packages that correspond to the provided paths */
Resolves paths to Jcr Packages. If any path does not resolve to a valid Jcr Package, it is discarded
getJcrPackages
{ "repo_name": "zhishan-summer-2013/acs-aem-commons", "path": "bundle/src/main/java/com/adobe/acs/commons/replication/status/impl/JcrPackageReplicationStatusEventHandler.java", "license": "apache-2.0", "size": 14804 }
[ "com.day.jcr.vault.packaging.JcrPackage", "java.util.ArrayList", "java.util.List", "javax.jcr.Node", "javax.jcr.RepositoryException", "org.apache.sling.api.resource.Resource" ]
import com.day.jcr.vault.packaging.JcrPackage; import java.util.ArrayList; import java.util.List; import javax.jcr.Node; import javax.jcr.RepositoryException; import org.apache.sling.api.resource.Resource;
import com.day.jcr.vault.packaging.*; import java.util.*; import javax.jcr.*; import org.apache.sling.api.resource.*;
[ "com.day.jcr", "java.util", "javax.jcr", "org.apache.sling" ]
com.day.jcr; java.util; javax.jcr; org.apache.sling;
2,691,847
public Object decode(Object value) throws DecoderException { if (value == null) { return null; } else if (value instanceof String) { return decode((String) value); } else { throw new DecoderException("Objects of type " + value.getClass()....
Object function(Object value) throws DecoderException { if (value == null) { return null; } else if (value instanceof String) { return decode((String) value); } else { throw new DecoderException(STR + value.getClass().getName() + STR); } }
/** * Decodes a Base64 object into its original form. Escaped characters are converted back to their original * representation. * * @param value * Base64 object to convert into its original form * * @return original object * * @throws DecoderException ...
Decodes a Base64 object into its original form. Escaped characters are converted back to their original representation
decode
{ "repo_name": "brycecurtis/phonegap-simjs", "path": "src/org/apache/commons/codec/net/BCodec.java", "license": "mit", "size": 6998 }
[ "org.apache.commons.codec.DecoderException" ]
import org.apache.commons.codec.DecoderException;
import org.apache.commons.codec.*;
[ "org.apache.commons" ]
org.apache.commons;
746,523
private void synchronizeSharedMetaData(MetaData data, GlobalBibtexKeyPattern globalCiteKeyPattern) { if (!checkCurrentConnection()) { return; } try { dbmsProcessor.setSharedMetaData(MetaDataSerializer.getSerializedStringMap(data, globalCiteKeyPattern)); } catc...
void function(MetaData data, GlobalBibtexKeyPattern globalCiteKeyPattern) { if (!checkCurrentConnection()) { return; } try { dbmsProcessor.setSharedMetaData(MetaDataSerializer.getSerializedStringMap(data, globalCiteKeyPattern)); } catch (SQLException e) { LOGGER.error(STR, e); } }
/** * Synchronizes all shared meta data. */
Synchronizes all shared meta data
synchronizeSharedMetaData
{ "repo_name": "conde2/DC-UFSCar-ES2-201701-BoxTesters", "path": "src/main/java/org/jabref/shared/DBMSSynchronizer.java", "license": "mit", "size": 15554 }
[ "java.sql.SQLException", "org.jabref.logic.exporter.MetaDataSerializer", "org.jabref.model.bibtexkeypattern.GlobalBibtexKeyPattern", "org.jabref.model.metadata.MetaData" ]
import java.sql.SQLException; import org.jabref.logic.exporter.MetaDataSerializer; import org.jabref.model.bibtexkeypattern.GlobalBibtexKeyPattern; import org.jabref.model.metadata.MetaData;
import java.sql.*; import org.jabref.logic.exporter.*; import org.jabref.model.bibtexkeypattern.*; import org.jabref.model.metadata.*;
[ "java.sql", "org.jabref.logic", "org.jabref.model" ]
java.sql; org.jabref.logic; org.jabref.model;
1,220,133
public static String getString(String key, String bundleName, Locale locale) { try { ResourceBundle resourceBundle; resourceBundle = ResourceBundle.getBundle(bundleName, locale); return resourceBundle.getString(key); } catch (MissingResourceException e) { return "!!" + key + "...
static String function(String key, String bundleName, Locale locale) { try { ResourceBundle resourceBundle; resourceBundle = ResourceBundle.getBundle(bundleName, locale); return resourceBundle.getString(key); } catch (MissingResourceException e) { return "!!" + key + "!!"; } }
/** * Return the corresponding value of a given key and parameters. * @param key the given key * @param bundleName the bundle name * @param locale the bundle locale * @return the corresponding key value */
Return the corresponding value of a given key and parameters
getString
{ "repo_name": "jph-axelor/axelor-business-suite", "path": "axelor-account/src/main/java/com/axelor/apps/account/ebics/messages/Messages.java", "license": "agpl-3.0", "size": 5057 }
[ "java.util.Locale", "java.util.MissingResourceException", "java.util.ResourceBundle" ]
import java.util.Locale; import java.util.MissingResourceException; import java.util.ResourceBundle;
import java.util.*;
[ "java.util" ]
java.util;
647,122
public final static int compareString(final String lhs, final byte[] rhs, final int rhsOffset, final int rhsColumnWidth) { final int lhsEnd = lhs.length(); final int rhsEnd = rhsOffset + rhsColumnWidth; int ltposn = 0, rtposn = rhsOffset; while (ltposn < lhsEnd && rtposn < rhsEnd) { ...
final static int function(final String lhs, final byte[] rhs, final int rhsOffset, final int rhsColumnWidth) { final int lhsEnd = lhs.length(); final int rhsEnd = rhsOffset + rhsColumnWidth; int ltposn = 0, rtposn = rhsOffset; while (ltposn < lhsEnd && rtposn < rhsEnd) { final int lc = lhs.charAt(ltposn); int rc = rhs[...
/** * compares string types without creating any intermediate DVD objects & reads * byte[] to the extent required. * * <br> * handles null values but not default column values. caller must invoke with * appropriate column values extracted as default value bytes. */
compares string types without creating any intermediate DVD objects & reads byte[] to the extent required. handles null values but not default column values. caller must invoke with appropriate column values extracted as default value bytes
compareString
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/core/src/main/java/com/pivotal/gemfirexd/internal/iapi/types/SQLChar.java", "license": "apache-2.0", "size": 173889 }
[ "com.pivotal.gemfirexd.internal.engine.jdbc.GemFireXDRuntimeException", "java.util.Arrays" ]
import com.pivotal.gemfirexd.internal.engine.jdbc.GemFireXDRuntimeException; import java.util.Arrays;
import com.pivotal.gemfirexd.internal.engine.jdbc.*; import java.util.*;
[ "com.pivotal.gemfirexd", "java.util" ]
com.pivotal.gemfirexd; java.util;
2,219,844
@Override protected void writeHeader() throws Exception { String rootElementName = getWriteOperation().getSink().spec.getRootElement(); os.write(CoderUtils.encodeToByteArray(StringUtf8Coder.of(), "<" + rootElementName + ">\n")); }
void function() throws Exception { String rootElementName = getWriteOperation().getSink().spec.getRootElement(); os.write(CoderUtils.encodeToByteArray(StringUtf8Coder.of(), "<" + rootElementName + ">\n")); }
/** * Writes the root element opening tag. */
Writes the root element opening tag
writeHeader
{ "repo_name": "eljefe6a/incubator-beam", "path": "sdks/java/io/xml/src/main/java/org/apache/beam/sdk/io/xml/XmlSink.java", "license": "apache-2.0", "size": 5592 }
[ "org.apache.beam.sdk.coders.StringUtf8Coder", "org.apache.beam.sdk.util.CoderUtils" ]
import org.apache.beam.sdk.coders.StringUtf8Coder; import org.apache.beam.sdk.util.CoderUtils;
import org.apache.beam.sdk.coders.*; import org.apache.beam.sdk.util.*;
[ "org.apache.beam" ]
org.apache.beam;
110,393
public void stopLoopbackTest() { pjsua.conf_disconnect(0, 0); } private Map<String, PjsipModule> pjsipModules = new HashMap<String, PjsipModule>();
void function() { pjsua.conf_disconnect(0, 0); } private Map<String, PjsipModule> pjsipModules = new HashMap<String, PjsipModule>();
/** * Stop connection between mic source to speaker output. * @see startLoopbackTest */
Stop connection between mic source to speaker output
stopLoopbackTest
{ "repo_name": "tmxdyf/CSipSimple-Import-", "path": "src/com/csipsimple/pjsip/PjSipService.java", "license": "lgpl-3.0", "size": 97586 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,456,636
protected void initTopConditionPanel() { if (topConditionPanel.getComponentCount() > 0) { JScrollPane topScrollPane = new JScrollPane(topConditionPanel); topScrollPane.setPreferredSize( new Dimension( (int) (MainFrame.getScreenDimension().width * 0.65), (int) (Ma...
void function() { if (topConditionPanel.getComponentCount() > 0) { JScrollPane topScrollPane = new JScrollPane(topConditionPanel); topScrollPane.setPreferredSize( new Dimension( (int) (MainFrame.getScreenDimension().width * 0.65), (int) (MainFrame.getScreenDimension().height * 0.20))); topScrollPane.setBorder(BorderFac...
/** * Creating UI for parameterized condition panel, placed at TOP side of page */
Creating UI for parameterized condition panel, placed at TOP side of page
initTopConditionPanel
{ "repo_name": "NCIP/cab2b", "path": "software/cab2b/src/java/client/edu/wustl/cab2b/client/ui/parameterizedQuery/ParameterizedQueryPreviewPanel.java", "license": "bsd-3-clause", "size": 8368 }
[ "edu.wustl.cab2b.client.ui.controls.Cab2bPanel", "edu.wustl.cab2b.client.ui.controls.Cab2bTitledPanel", "edu.wustl.cab2b.client.ui.mainframe.MainFrame", "java.awt.BorderLayout", "java.awt.Dimension", "javax.swing.BorderFactory", "javax.swing.JScrollPane" ]
import edu.wustl.cab2b.client.ui.controls.Cab2bPanel; import edu.wustl.cab2b.client.ui.controls.Cab2bTitledPanel; import edu.wustl.cab2b.client.ui.mainframe.MainFrame; import java.awt.BorderLayout; import java.awt.Dimension; import javax.swing.BorderFactory; import javax.swing.JScrollPane;
import edu.wustl.cab2b.client.ui.controls.*; import edu.wustl.cab2b.client.ui.mainframe.*; import java.awt.*; import javax.swing.*;
[ "edu.wustl.cab2b", "java.awt", "javax.swing" ]
edu.wustl.cab2b; java.awt; javax.swing;
2,689,025
public boolean isBefore(TaskDate date) { try { LocalDate thisDate = this.getLocalDate(); LocalDate dateToComapare = date.getLocalDate(); return thisDate.isBefore(dateToComapare); } catch (Exception e) { return false; } }
boolean function(TaskDate date) { try { LocalDate thisDate = this.getLocalDate(); LocalDate dateToComapare = date.getLocalDate(); return thisDate.isBefore(dateToComapare); } catch (Exception e) { return false; } }
/** * Returns true if the given date is before this date */
Returns true if the given date is before this date
isBefore
{ "repo_name": "Mamtha3005/addressbook-level4", "path": "src/main/java/seedu/taskell/model/task/TaskDate.java", "license": "mit", "size": 21847 }
[ "java.time.LocalDate" ]
import java.time.LocalDate;
import java.time.*;
[ "java.time" ]
java.time;
2,821,906
protected void checkSaleOrderBeforeFinalization(SaleOrder saleOrder) throws AxelorException { Beans.get(SaleOrderService.class).checkUnauthorizedDiscounts(saleOrder); }
void function(SaleOrder saleOrder) throws AxelorException { Beans.get(SaleOrderService.class).checkUnauthorizedDiscounts(saleOrder); }
/** * Throws exceptions to block the finalization of given sale order. * * @param saleOrder a sale order being finalized */
Throws exceptions to block the finalization of given sale order
checkSaleOrderBeforeFinalization
{ "repo_name": "axelor/axelor-business-suite", "path": "axelor-sale/src/main/java/com/axelor/apps/sale/service/saleorder/SaleOrderWorkflowServiceImpl.java", "license": "agpl-3.0", "size": 9249 }
[ "com.axelor.apps.sale.db.SaleOrder", "com.axelor.exception.AxelorException", "com.axelor.inject.Beans" ]
import com.axelor.apps.sale.db.SaleOrder; import com.axelor.exception.AxelorException; import com.axelor.inject.Beans;
import com.axelor.apps.sale.db.*; import com.axelor.exception.*; import com.axelor.inject.*;
[ "com.axelor.apps", "com.axelor.exception", "com.axelor.inject" ]
com.axelor.apps; com.axelor.exception; com.axelor.inject;
326,855
protected void internalAddElement(IMobileTabEditpart editpart) { checkDisposed(); if (tabEditparts == null) { internalLoadTabs(); } if (!tabEditparts.contains(editpart)) { tabEditparts.add(editpart); } }
void function(IMobileTabEditpart editpart) { checkDisposed(); if (tabEditparts == null) { internalLoadTabs(); } if (!tabEditparts.contains(editpart)) { tabEditparts.add(editpart); } }
/** * Is called to change the internal state and add the given editpart to the * list of tabs. * * @param editpart * The editpart to be added */
Is called to change the internal state and add the given editpart to the list of tabs
internalAddElement
{ "repo_name": "lunifera/lunifera-mobile-vaadin", "path": "org.lunifera.mobile.vaadin.ecview.editparts.emf/src/org/lunifera/mobile/vaadin/ecview/editparts/emf/MobileTabSheetEditpart.java", "license": "epl-1.0", "size": 7839 }
[ "org.lunifera.mobile.vaadin.ecview.editparts.IMobileTabEditpart" ]
import org.lunifera.mobile.vaadin.ecview.editparts.IMobileTabEditpart;
import org.lunifera.mobile.vaadin.ecview.editparts.*;
[ "org.lunifera.mobile" ]
org.lunifera.mobile;
1,561,199
public ExtensionData getExtensionData(ComponentName extension) { synchronized (mDataCache) { return mDataCache.get(extension); } }
ExtensionData function(ComponentName extension) { synchronized (mDataCache) { return mDataCache.get(extension); } }
/** * Get the extension data for a given extension. * * @param extension Extension to get data for * @return Known extension data or null * * @see #onExtensionDataChanged */
Get the extension data for a given extension
getExtensionData
{ "repo_name": "jruesga/dashclock", "path": "api/src/main/java/com/google/android/apps/dashclock/api/host/DashClockHost.java", "license": "apache-2.0", "size": 22646 }
[ "android.content.ComponentName", "com.google.android.apps.dashclock.api.ExtensionData" ]
import android.content.ComponentName; import com.google.android.apps.dashclock.api.ExtensionData;
import android.content.*; import com.google.android.apps.dashclock.api.*;
[ "android.content", "com.google.android" ]
android.content; com.google.android;
2,361,845
@Override public boolean isFactoryForType(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; }
boolean function(Object object) { if (object == modelPackage) { return true; } if (object instanceof EObject) { return ((EObject)object).eClass().getEPackage() == modelPackage; } return false; }
/** * Returns whether this factory is applicable for the type of the object. * <!-- begin-user-doc --> * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model. * <!-- end-user-doc --> * @return whether this factory is applicable for the...
Returns whether this factory is applicable for the type of the object. This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
isFactoryForType
{ "repo_name": "jesusc/bento", "path": "tests/bento.sirius.tests.metamodels/src/metamodel/util/MetamodelAdapterFactory.java", "license": "epl-1.0", "size": 13960 }
[ "org.eclipse.emf.ecore.EObject" ]
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,728,970
@Nullable public FileAttachment delete() throws ClientException { return send(HttpMethod.DELETE, null); }
FileAttachment function() throws ClientException { return send(HttpMethod.DELETE, null); }
/** * Delete this item from the service * @return the resulting response if the service returns anything on deletion * * @throws ClientException if there was an exception during the delete operation */
Delete this item from the service
delete
{ "repo_name": "microsoftgraph/msgraph-sdk-java", "path": "src/main/java/com/microsoft/graph/requests/FileAttachmentRequest.java", "license": "mit", "size": 5981 }
[ "com.microsoft.graph.core.ClientException", "com.microsoft.graph.http.HttpMethod", "com.microsoft.graph.models.FileAttachment" ]
import com.microsoft.graph.core.ClientException; import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.FileAttachment;
import com.microsoft.graph.core.*; import com.microsoft.graph.http.*; import com.microsoft.graph.models.*;
[ "com.microsoft.graph" ]
com.microsoft.graph;
2,837,897
public ZonedDateTimeStream to(final ZonedDateTime to) { setTo(to); return this; }
ZonedDateTimeStream function(final ZonedDateTime to) { setTo(to); return this; }
/** * Set the inclusive end point of the stream, using an absolute ZonedDateTime. * * @param to A nullable ZonedDateTime to end the stream with (null means infinite). * @return A non-null ZonedDateTimeStream. */
Set the inclusive end point of the stream, using an absolute ZonedDateTime
to
{ "repo_name": "tginsberg/java-timestream", "path": "src/main/java/com/ginsberg/timestream/ZonedDateTimeStream.java", "license": "mit", "size": 6518 }
[ "java.time.ZonedDateTime" ]
import java.time.ZonedDateTime;
import java.time.*;
[ "java.time" ]
java.time;
1,932,852
public void testCopyNoColumnHeader2HasColumn( ) throws Exception { designHandle = new SessionHandle( ULocale.getDefault( ) ) .createDesign( ); design = (ReportDesign) designHandle.getModule( ); ElementFactory factory = new ElementFactory( design ); TableHandle table1 = factory.newTableItem( "table1", ...
void function( ) throws Exception { designHandle = new SessionHandle( ULocale.getDefault( ) ) .createDesign( ); design = (ReportDesign) designHandle.getModule( ); ElementFactory factory = new ElementFactory( design ); TableHandle table1 = factory.newTableItem( STR, 2, 0, 2, 0 ); TableHandle table2 = factory.newTableIte...
/** * Tests the algorithm to copy one column without a column header to another * table that has a column header. * * @throws Exception */
Tests the algorithm to copy one column without a column header to another table that has a column header
testCopyNoColumnHeader2HasColumn
{ "repo_name": "rrimmana/birt-1", "path": "model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/api/TableColumnBandTest.java", "license": "epl-1.0", "size": 48243 }
[ "com.ibm.icu.util.ULocale", "org.eclipse.birt.report.model.api.metadata.IColorConstants", "org.eclipse.birt.report.model.elements.ReportDesign", "org.eclipse.birt.report.model.elements.Style" ]
import com.ibm.icu.util.ULocale; import org.eclipse.birt.report.model.api.metadata.IColorConstants; import org.eclipse.birt.report.model.elements.ReportDesign; import org.eclipse.birt.report.model.elements.Style;
import com.ibm.icu.util.*; import org.eclipse.birt.report.model.api.metadata.*; import org.eclipse.birt.report.model.elements.*;
[ "com.ibm.icu", "org.eclipse.birt" ]
com.ibm.icu; org.eclipse.birt;
1,489,103
private void assertFirstTaskIsAsync(BpmnModel bpmnModel) { if (Boolean.TRUE.equals(configurationHelper.getProperty(ConfigurationValue.ACTIVITI_JOB_DEFINITION_ASSERT_ASYNC, Boolean.class))) { Process process = bpmnModel.getMainProcess(); for (StartEvent startEvent : proces...
void function(BpmnModel bpmnModel) { if (Boolean.TRUE.equals(configurationHelper.getProperty(ConfigurationValue.ACTIVITI_JOB_DEFINITION_ASSERT_ASYNC, Boolean.class))) { Process process = bpmnModel.getMainProcess(); for (StartEvent startEvent : process.findFlowElementsOfType(StartEvent.class)) { for (SequenceFlow sequen...
/** * Asserts that the first asyncable task in the given model is indeed asynchronous. Only asserts when the configuration is set to true. * * @param bpmnModel The BPMN model */
Asserts that the first asyncable task in the given model is indeed asynchronous. Only asserts when the configuration is set to true
assertFirstTaskIsAsync
{ "repo_name": "kusid/herd", "path": "herd-code/herd-service/src/main/java/org/finra/herd/service/impl/JobDefinitionServiceImpl.java", "license": "apache-2.0", "size": 20894 }
[ "org.activiti.bpmn.model.Activity", "org.activiti.bpmn.model.BpmnModel", "org.activiti.bpmn.model.FlowElement", "org.activiti.bpmn.model.Process", "org.activiti.bpmn.model.SequenceFlow", "org.activiti.bpmn.model.StartEvent", "org.finra.herd.model.dto.ConfigurationValue", "org.springframework.util.Asse...
import org.activiti.bpmn.model.Activity; import org.activiti.bpmn.model.BpmnModel; import org.activiti.bpmn.model.FlowElement; import org.activiti.bpmn.model.Process; import org.activiti.bpmn.model.SequenceFlow; import org.activiti.bpmn.model.StartEvent; import org.finra.herd.model.dto.ConfigurationValue; import org.sp...
import org.activiti.bpmn.model.*; import org.finra.herd.model.dto.*; import org.springframework.util.*;
[ "org.activiti.bpmn", "org.finra.herd", "org.springframework.util" ]
org.activiti.bpmn; org.finra.herd; org.springframework.util;
1,342,326
private void selectCalendarForAdding(@NonNull final CalendarEntry entry) { final SparseArray<String> calendars = queryCalendars(); if (calendars.size() == 0) { showToast(R.string.event_fail); finish(); return; } final String[] items = new String[...
void function(@NonNull final CalendarEntry entry) { final SparseArray<String> calendars = queryCalendars(); if (calendars.size() == 0) { showToast(R.string.event_fail); finish(); return; } final String[] items = new String[calendars.size()]; for (int i = 0; i < calendars.size(); i++) { items[i] = calendars.valueAt(i); ...
/** * Adds the cache to the Android-calendar if it is an event. * * @param entry * new entry to be stored */
Adds the cache to the Android-calendar if it is an event
selectCalendarForAdding
{ "repo_name": "samueltardieu/cgeo", "path": "cgeo-calendar/src/cgeo/calendar/CalendarActivity.java", "license": "apache-2.0", "size": 4424 }
[ "android.util.SparseArray", "org.eclipse.jdt.annotation.NonNull" ]
import android.util.SparseArray; import org.eclipse.jdt.annotation.NonNull;
import android.util.*; import org.eclipse.jdt.annotation.*;
[ "android.util", "org.eclipse.jdt" ]
android.util; org.eclipse.jdt;
146,287
@Override public boolean equals(final Object aThat) { Object proxyThat = aThat; if ( this == aThat ) { return true; } if (aThat instanceof HibernateProxy) { // narrow down the proxy to the class we are dealing with. try { proxyThat = ((HibernateProxy) aThat).getHibernateLazyInitializer()....
boolean function(final Object aThat) { Object proxyThat = aThat; if ( this == aThat ) { return true; } if (aThat instanceof HibernateProxy) { try { proxyThat = ((HibernateProxy) aThat).getHibernateLazyInitializer().getImplementation(); } catch (org.hibernate.ObjectNotFoundException e) { return false; } } if (aThat == n...
/** Equals implementation. * @see java.lang.Object#equals(java.lang.Object) * @param aThat Object to compare with * @return true/false */
Equals implementation
equals
{ "repo_name": "servinglynk/hmis-lynk-open-source", "path": "hmis-model-v2014/src/main/java/com/servinglynk/hmis/warehouse/model/v2014/Connectionwithsoar.java", "license": "mpl-2.0", "size": 7491 }
[ "org.hibernate.proxy.HibernateProxy" ]
import org.hibernate.proxy.HibernateProxy;
import org.hibernate.proxy.*;
[ "org.hibernate.proxy" ]
org.hibernate.proxy;
44,286
public void testModifyProjectDescriptionAndRemoveFolder() throws CoreException { try { IJavaScriptProject project = createJavaProject("P"); final IProject projectFolder = project.getProject(); final IFolder folder = createFolder("/P/folder");
void function() throws CoreException { try { IJavaScriptProject project = createJavaProject("P"); final IProject projectFolder = project.getProject(); final IFolder folder = createFolder(STR);
/** * bug 18953 */
bug 18953
testModifyProjectDescriptionAndRemoveFolder
{ "repo_name": "echoes-tech/eclipse.jsdt.core", "path": "org.eclipse.wst.jsdt.core.tests.model/src/org/eclipse/wst/jsdt/core/tests/model/JavaElementDeltaTests.java", "license": "epl-1.0", "size": 63275 }
[ "org.eclipse.core.resources.IFolder", "org.eclipse.core.resources.IProject", "org.eclipse.core.runtime.CoreException", "org.eclipse.wst.jsdt.core.IJavaScriptProject" ]
import org.eclipse.core.resources.IFolder; import org.eclipse.core.resources.IProject; import org.eclipse.core.runtime.CoreException; import org.eclipse.wst.jsdt.core.IJavaScriptProject;
import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*; import org.eclipse.wst.jsdt.core.*;
[ "org.eclipse.core", "org.eclipse.wst" ]
org.eclipse.core; org.eclipse.wst;
2,399,761
public List getLocalBucketsListTestOnly() { List localBucketList = null; if (this.dataStore != null) { localBucketList = this.dataStore.getLocalBucketsListTestOnly(); } return localBucketList; }
List function() { List localBucketList = null; if (this.dataStore != null) { localBucketList = this.dataStore.getLocalBucketsListTestOnly(); } return localBucketList; }
/** * A test method to get the list of all the bucket ids for the partitioned * region in the data Store. * */
A test method to get the list of all the bucket ids for the partitioned region in the data Store
getLocalBucketsListTestOnly
{ "repo_name": "robertgeiger/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/PartitionedRegion.java", "license": "apache-2.0", "size": 426773 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
318,030
public static boolean comparePasswort(final char[] pw) { return Arrays.equals(pw, password); }
static boolean function(final char[] pw) { return Arrays.equals(pw, password); }
/** * Function to compare a password with the currently used one. * * @param pw * a password * @return true if pw is equal to this.password */
Function to compare a password with the currently used one
comparePasswort
{ "repo_name": "paffman/WBS-Project", "path": "src/main/java/de/fhbingen/wbs/jdbcConnection/MySqlConnect.java", "license": "gpl-3.0", "size": 3784 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
2,659,886
void onItemClick(AdapterView<?> parent, View view, int position, long id); }
void onItemClick(AdapterView<?> parent, View view, int position, long id); }
/** * Callback method to be invoked when an item in this AdapterView has * been clicked. * <p> * Implementers can call getItemAtPosition(position) if they need * to access the data associated with the selected item. * * @param parent The AdapterView where t...
Callback method to be invoked when an item in this AdapterView has been clicked. Implementers can call getItemAtPosition(position) if they need to access the data associated with the selected item
onItemClick
{ "repo_name": "kyze8439690/StockAdapterView", "path": "library/src/main/java/me/yugy/github/stockadapterview/library/AdapterView.java", "license": "apache-2.0", "size": 35447 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
768,837
void enterClassBody(@NotNull Java8Parser.ClassBodyContext ctx); void exitClassBody(@NotNull Java8Parser.ClassBodyContext ctx);
void enterClassBody(@NotNull Java8Parser.ClassBodyContext ctx); void exitClassBody(@NotNull Java8Parser.ClassBodyContext ctx);
/** * Exit a parse tree produced by {@link Java8Parser#classBody}. * @param ctx the parse tree */
Exit a parse tree produced by <code>Java8Parser#classBody</code>
exitClassBody
{ "repo_name": "IsThisThePayneResidence/intellidots", "path": "src/main/java/ua/edu/hneu/ast/parsers/Java8Listener.java", "license": "gpl-3.0", "size": 95845 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
608,356
public AcknowledgedResponse putIndexTemplate(PutComposableIndexTemplateRequest putIndexTemplateRequest, RequestOptions options) throws IOException { return restHighLevelClient.performRequestAndParseEntity(putIndexTemplateRequest, IndicesRequestConverters::putIndexTemplate, options, Ackno...
AcknowledgedResponse function(PutComposableIndexTemplateRequest putIndexTemplateRequest, RequestOptions options) throws IOException { return restHighLevelClient.performRequestAndParseEntity(putIndexTemplateRequest, IndicesRequestConverters::putIndexTemplate, options, AcknowledgedResponse::fromXContent, emptySet()); }
/** * Puts an index template using the Index Templates API. * See <a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html"> Index Templates API * on elastic.co</a> * @param putIndexTemplateRequest the request * @param options the request options (e.g. hea...
Puts an index template using the Index Templates API. See Index Templates API on elastic.co
putIndexTemplate
{ "repo_name": "ern/elasticsearch", "path": "client/rest-high-level/src/main/java/org/elasticsearch/client/IndicesClient.java", "license": "apache-2.0", "size": 87672 }
[ "java.io.IOException", "java.util.Collections", "org.elasticsearch.action.support.master.AcknowledgedResponse", "org.elasticsearch.client.indices.PutComposableIndexTemplateRequest" ]
import java.io.IOException; import java.util.Collections; import org.elasticsearch.action.support.master.AcknowledgedResponse; import org.elasticsearch.client.indices.PutComposableIndexTemplateRequest;
import java.io.*; import java.util.*; import org.elasticsearch.action.support.master.*; import org.elasticsearch.client.indices.*;
[ "java.io", "java.util", "org.elasticsearch.action", "org.elasticsearch.client" ]
java.io; java.util; org.elasticsearch.action; org.elasticsearch.client;
2,742,422
EClass getVitalSign();
EClass getVitalSign();
/** * Returns the meta object for class '{@link org.openhealthtools.mdht.uml.cda.hitsp.VitalSign <em>Vital Sign</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Vital Sign</em>'. * @see org.openhealthtools.mdht.uml.cda.hitsp.VitalSign * @generated *...
Returns the meta object for class '<code>org.openhealthtools.mdht.uml.cda.hitsp.VitalSign Vital Sign</code>'.
getVitalSign
{ "repo_name": "drbgfc/mdht", "path": "cda/deprecated/org.openhealthtools.mdht.uml.cda.hitsp/src/org/openhealthtools/mdht/uml/cda/hitsp/HITSPPackage.java", "license": "epl-1.0", "size": 366422 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
271,885
public Date getDate(int columnIndex, Calendar cal) throws SQLException { return resultSet.getDate(columnIndex, cal); }
Date function(int columnIndex, Calendar cal) throws SQLException { return resultSet.getDate(columnIndex, cal); }
/** * Retrieves the value of the designated column in the current row of this * <code>ResultSet</code> object as a <code>java.sql.Date</code> object in * the Java programming language. This method uses the given calendar to * construct an appropriate millisecond value for the date if the underlying * database...
Retrieves the value of the designated column in the current row of this <code>ResultSet</code> object as a <code>java.sql.Date</code> object in the Java programming language. This method uses the given calendar to construct an appropriate millisecond value for the date if the underlying database does not store timezone...
getDate
{ "repo_name": "hannoman/xxl", "path": "src/xxl/core/relational/resultSets/DecoratorResultSet.java", "license": "lgpl-3.0", "size": 169497 }
[ "java.sql.Date", "java.sql.SQLException", "java.util.Calendar" ]
import java.sql.Date; import java.sql.SQLException; import java.util.Calendar;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
2,780,776
public Node removeNamedItemNS(String namespaceURI, String name) throws DOMException { return internalRemoveNamedItemNS(namespaceURI, name, true); }
Node function(String namespaceURI, String name) throws DOMException { return internalRemoveNamedItemNS(namespaceURI, name, true); }
/** * Introduced in DOM Level 2. <p> * Removes an attribute specified by local name and namespace URI. * @param namespaceURI * The namespace URI of the node to remove. * When it is null or an empty string, this * method behaves...
Introduced in DOM Level 2. Removes an attribute specified by local name and namespace URI
removeNamedItemNS
{ "repo_name": "itgeeker/jdk", "path": "src/com/sun/org/apache/xerces/internal/dom/AttributeMap.java", "license": "apache-2.0", "size": 22228 }
[ "org.w3c.dom.DOMException", "org.w3c.dom.Node" ]
import org.w3c.dom.DOMException; import org.w3c.dom.Node;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
173,777
Role getRoleIdrole();
Role getRoleIdrole();
/** * Return the value associated with the column: roleIdrole. * @return A Role object (this.roleIdrole) */
Return the value associated with the column: roleIdrole
getRoleIdrole
{ "repo_name": "rpgm/mi15", "path": "rpgm/modules/repository/src/main/java/org/yarlithub/yschool/repository/model/obj/yschool/iface/IStaffHasRole.java", "license": "apache-2.0", "size": 5383 }
[ "org.yarlithub.yschool.repository.model.obj.yschool.Role" ]
import org.yarlithub.yschool.repository.model.obj.yschool.Role;
import org.yarlithub.yschool.repository.model.obj.yschool.*;
[ "org.yarlithub.yschool" ]
org.yarlithub.yschool;
1,332,762
public OperaOptions addExtensions(List<File> paths) { for (File path : paths) { checkNotNull(path); checkArgument(path.exists(), "%s does not exist", path.getAbsolutePath()); checkArgument(!path.isDirectory(), "%s is a directory", path.getAbsolutePath()); } extensionFiles.addAl...
OperaOptions function(List<File> paths) { for (File path : paths) { checkNotNull(path); checkArgument(path.exists(), STR, path.getAbsolutePath()); checkArgument(!path.isDirectory(), STR, path.getAbsolutePath()); } extensionFiles.addAll(paths); return this; }
/** * Adds a new Opera extension to install on browser startup. Each path should * specify a packed Opera extension (CRX file). * * @param paths Paths to the extensions to install. */
Adds a new Opera extension to install on browser startup. Each path should specify a packed Opera extension (CRX file)
addExtensions
{ "repo_name": "joshbruning/selenium", "path": "java/client/src/org/openqa/selenium/opera/OperaOptions.java", "license": "apache-2.0", "size": 7646 }
[ "com.google.common.base.Preconditions", "java.io.File", "java.util.List" ]
import com.google.common.base.Preconditions; import java.io.File; import java.util.List;
import com.google.common.base.*; import java.io.*; import java.util.*;
[ "com.google.common", "java.io", "java.util" ]
com.google.common; java.io; java.util;
458,070
private Bitmap getFromCache(String fileName) { Bitmap bitmap = null; if (this.cache != null) { bitmap = this.cache.get(fileName); } return bitmap; }
Bitmap function(String fileName) { Bitmap bitmap = null; if (this.cache != null) { bitmap = this.cache.get(fileName); } return bitmap; }
/** * Get a {@link android.graphics.Bitmap} from the internal cache or null if it does not exist. * * @param fileName The name of the file to look for in the cache. * @return A valid cached bitmap, otherwise null. */
Get a <code>android.graphics.Bitmap</code> from the internal cache or null if it does not exist
getFromCache
{ "repo_name": "diesersamat/MarketCustomisable", "path": "presentation/src/main/java/com/fernandocejas/android10/sample/presentation/view/component/AutoLoadImageView.java", "license": "apache-2.0", "size": 11117 }
[ "android.graphics.Bitmap" ]
import android.graphics.Bitmap;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
2,110,876
@Test @Verifies(value = "should cascade location change in encounter to contained obs", method = "saveEncounter(Encounter)") public void saveEncounter_shouldCascadeChangeOfLocationInEncounterToContainedObs() throws Exception { EncounterService es = Context.getEncounterService(); Encounter enc = buildEncounter(...
@Verifies(value = STR, method = STR) void function() throws Exception { EncounterService es = Context.getEncounterService(); Encounter enc = buildEncounter(); es.saveEncounter(enc); Obs newObs = new Obs(); newObs.setConcept(Context.getConceptService().getConcept(1)); newObs.setValueNumeric(50d); Location location = new...
/** * When you save the encounter with a changed location, the location change should be cascaded * to all the obs associated with the encounter that had the same location as the encounter. * * @see EncounterService#saveEncounter(Encounter) */
When you save the encounter with a changed location, the location change should be cascaded to all the obs associated with the encounter that had the same location as the encounter
saveEncounter_shouldCascadeChangeOfLocationInEncounterToContainedObs
{ "repo_name": "koskedk/openmrs-core", "path": "api/src/test/java/org/openmrs/api/EncounterServiceTest.java", "license": "mpl-2.0", "size": 129579 }
[ "org.junit.Assert", "org.openmrs.Encounter", "org.openmrs.Location", "org.openmrs.Obs", "org.openmrs.api.context.Context", "org.openmrs.test.Verifies" ]
import org.junit.Assert; import org.openmrs.Encounter; import org.openmrs.Location; import org.openmrs.Obs; import org.openmrs.api.context.Context; import org.openmrs.test.Verifies;
import org.junit.*; import org.openmrs.*; import org.openmrs.api.context.*; import org.openmrs.test.*;
[ "org.junit", "org.openmrs", "org.openmrs.api", "org.openmrs.test" ]
org.junit; org.openmrs; org.openmrs.api; org.openmrs.test;
1,330,123
private static String getNodeNameSafe(@Nullable DiscoveryNode discoveryNode) { if (discoveryNode == null) { return "_unknown_"; } final String name = discoveryNode.getName(); if (Strings.hasText(name)) { return name; } return discoveryNode.getI...
static String function(@Nullable DiscoveryNode discoveryNode) { if (discoveryNode == null) { return STR; } final String name = discoveryNode.getName(); if (Strings.hasText(name)) { return name; } return discoveryNode.getId(); } private interface TrackedNode {
/** * Get the name of the node and do something reasonable if the node is missing or has no name. */
Get the name of the node and do something reasonable if the node is missing or has no name
getNodeNameSafe
{ "repo_name": "GlenRSmith/elasticsearch", "path": "server/src/main/java/org/elasticsearch/cluster/coordination/JoinReasonService.java", "license": "apache-2.0", "size": 11575 }
[ "org.elasticsearch.cluster.node.DiscoveryNode", "org.elasticsearch.common.Strings", "org.elasticsearch.core.Nullable" ]
import org.elasticsearch.cluster.node.DiscoveryNode; import org.elasticsearch.common.Strings; import org.elasticsearch.core.Nullable;
import org.elasticsearch.cluster.node.*; import org.elasticsearch.common.*; import org.elasticsearch.core.*;
[ "org.elasticsearch.cluster", "org.elasticsearch.common", "org.elasticsearch.core" ]
org.elasticsearch.cluster; org.elasticsearch.common; org.elasticsearch.core;
2,583,799
private String getModuleFromClass(Class<?> klass, Map<String, ModuleProperties> moduleMap) { String file = getClassFileLocation(klass); if (tc.isDebugEnabled()) { Tr.debug(tc, "File name : " + file); } String moduleName = null; for (Map.Entry<String, ModulePropert...
String function(Class<?> klass, Map<String, ModuleProperties> moduleMap) { String file = getClassFileLocation(klass); if (tc.isDebugEnabled()) { Tr.debug(tc, STR + file); } String moduleName = null; for (Map.Entry<String, ModuleProperties> entry : moduleMap.entrySet()) { URL location = entry.getValue().getLocation(); S...
/** * Identify the module name from the class. If the class exists in the jar file, return war file name * if it is located under the war file, otherwise returning jar file name. **/
Identify the module name from the class. If the class exists in the jar file, return war file name if it is located under the war file, otherwise returning jar file name
getModuleFromClass
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.security.javaeesec.cdi/src/com/ibm/ws/security/javaeesec/cdi/extensions/JavaEESecCDIExtension.java", "license": "epl-1.0", "size": 54786 }
[ "com.ibm.websphere.ras.Tr", "com.ibm.ws.security.javaeesec.properties.ModuleProperties", "java.util.Map" ]
import com.ibm.websphere.ras.Tr; import com.ibm.ws.security.javaeesec.properties.ModuleProperties; import java.util.Map;
import com.ibm.websphere.ras.*; import com.ibm.ws.security.javaeesec.properties.*; import java.util.*;
[ "com.ibm.websphere", "com.ibm.ws", "java.util" ]
com.ibm.websphere; com.ibm.ws; java.util;
808,370
public static ReservationEntity createFrom(final String instanceId, final Reservation reservation) { return new ReservationEntity(instanceId, reservation); } private ReservationEntity(final String instanceId, final Reservation reservation) { super("reservation", instanceId, reservation.getIdAsSt...
static ReservationEntity function(final String instanceId, final Reservation reservation) { return new ReservationEntity(instanceId, reservation); } private ReservationEntity(final String instanceId, final Reservation reservation) { super(STR, instanceId, reservation.getIdAsString(), reservation.getEvent(), null, new D...
/** * Creates a new reservation entity from the specified reservation. * @param instanceId * @param reservation * @return the entity representing the specified reservation. */
Creates a new reservation entity from the specified reservation
createFrom
{ "repo_name": "auroreallibe/Silverpeas-Components", "path": "resourcesManager/resourcesManager-war/src/main/java/org/silverpeas/components/resourcesmanager/web/ReservationEntity.java", "license": "agpl-3.0", "size": 4545 }
[ "org.silverpeas.components.resourcesmanager.model.Reservation", "org.silverpeas.core.admin.user.model.UserDetail", "org.silverpeas.core.date.DateTime" ]
import org.silverpeas.components.resourcesmanager.model.Reservation; import org.silverpeas.core.admin.user.model.UserDetail; import org.silverpeas.core.date.DateTime;
import org.silverpeas.components.resourcesmanager.model.*; import org.silverpeas.core.admin.user.model.*; import org.silverpeas.core.date.*;
[ "org.silverpeas.components", "org.silverpeas.core" ]
org.silverpeas.components; org.silverpeas.core;
965,651
public static Vector2f[] getVector2Array(FloatBuffer buff) { buff.clear(); Vector2f[] verts = new Vector2f[buff.limit() / 2]; for (int x = 0; x < verts.length; x++) { Vector2f v = new Vector2f(buff.get(), buff.get()); verts[x] = v; } return vert...
static Vector2f[] function(FloatBuffer buff) { buff.clear(); Vector2f[] verts = new Vector2f[buff.limit() / 2]; for (int x = 0; x < verts.length; x++) { Vector2f v = new Vector2f(buff.get(), buff.get()); verts[x] = v; } return verts; }
/** * Generates a Vector2f array from the given FloatBuffer. * * @param buff * the FloatBuffer to read from * @return a newly generated array of Vector2f objects */
Generates a Vector2f array from the given FloatBuffer
getVector2Array
{ "repo_name": "asiermarzo/Ultraino", "path": "AcousticFieldSim/src/acousticfield3d/utils/BufferUtils.java", "license": "mit", "size": 44937 }
[ "java.nio.FloatBuffer" ]
import java.nio.FloatBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,063,802
public boolean cancel(Task p) { lock.lock(); try { try { LOGGER.log(Level.FINE, "Cancelling {0}", p); for (WaitingItem item : waitingList) { if (item.task.equals(p)) { return item.cancel(this); } } //...
boolean function(Task p) { lock.lock(); try { try { LOGGER.log(Level.FINE, STR, p); for (WaitingItem item : waitingList) { if (item.task.equals(p)) { return item.cancel(this); } } return blockedProjects.cancel(p) != null buildables.cancel(p) != null; } finally { updateSnapshot(); } } finally { lock.unlock(); } }
/** * Cancels the item in the queue. If the item is scheduled more than once, cancels the first occurrence. * * @return true if the project was indeed in the queue and was removed. * false if this was no-op. */
Cancels the item in the queue. If the item is scheduled more than once, cancels the first occurrence
cancel
{ "repo_name": "ndeloof/jenkins", "path": "core/src/main/java/hudson/model/Queue.java", "license": "mit", "size": 108592 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
4,580
public boolean shouldExecute() { if (!this.theGolem.worldObj.isDaytime()) { return false; } else if (this.theGolem.getRNG().nextInt(8000) != 0) { return false; } else { this.theVillager = (EntityVillager)this.the...
boolean function() { if (!this.theGolem.worldObj.isDaytime()) { return false; } else if (this.theGolem.getRNG().nextInt(8000) != 0) { return false; } else { this.theVillager = (EntityVillager)this.theGolem.worldObj.findNearestEntityWithinAABB(EntityVillager.class, this.theGolem.getEntityBoundingBox().expand(6.0D, 2.0D,...
/** * Returns whether the EntityAIBase should begin execution. */
Returns whether the EntityAIBase should begin execution
shouldExecute
{ "repo_name": "boredherobrine13/morefuelsmod-1.10", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/ai/EntityAILookAtVillager.java", "license": "lgpl-2.1", "size": 1801 }
[ "net.minecraft.entity.passive.EntityVillager" ]
import net.minecraft.entity.passive.EntityVillager;
import net.minecraft.entity.passive.*;
[ "net.minecraft.entity" ]
net.minecraft.entity;
2,089,650
@Override protected void initGUI() { JPanel panel; super.initGUI(); setLayout(new BorderLayout()); m_SplitPane = new BaseSplitPane(BaseSplitPane.HORIZONTAL_SPLIT); m_SplitPane.setOneTouchExpandable(true); m_SplitPane.setResizeWeight(1.0); add(m_SplitPane, BorderLayout.CENT...
void function() { JPanel panel; super.initGUI(); setLayout(new BorderLayout()); m_SplitPane = new BaseSplitPane(BaseSplitPane.HORIZONTAL_SPLIT); m_SplitPane.setOneTouchExpandable(true); m_SplitPane.setResizeWeight(1.0); add(m_SplitPane, BorderLayout.CENTER);
/** * For initializing the GUI. */
For initializing the GUI
initGUI
{ "repo_name": "automenta/adams-core", "path": "src/main/java/adams/gui/tools/ConsoleOutputAnalyzerPanel.java", "license": "gpl-3.0", "size": 32618 }
[ "java.awt.BorderLayout", "javax.swing.JPanel" ]
import java.awt.BorderLayout; import javax.swing.JPanel;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
264,105
protected Account getCurrentCallingAccount() { return CallContext.current().getCallingAccount(); }
Account function() { return CallContext.current().getCallingAccount(); }
/** * Returns the calling account using the method {@link CallContext#getCallingAccount()}. * We are introducing this method to avoid using 'PowerMockRunner' in unit tests. Then, we can mock the calls to this method, which facilitates the development of test cases. */
Returns the calling account using the method <code>CallContext#getCallingAccount()</code>. We are introducing this method to avoid using 'PowerMockRunner' in unit tests. Then, we can mock the calls to this method, which facilitates the development of test cases
getCurrentCallingAccount
{ "repo_name": "GabrielBrascher/cloudstack", "path": "server/src/main/java/com/cloud/user/AccountManagerImpl.java", "license": "apache-2.0", "size": 133979 }
[ "org.apache.cloudstack.context.CallContext" ]
import org.apache.cloudstack.context.CallContext;
import org.apache.cloudstack.context.*;
[ "org.apache.cloudstack" ]
org.apache.cloudstack;
1,950,055
private void unregisterBeans() { logger.info("Unregistering JMX-exposed beans on shutdown"); for (Iterator it = this.registeredBeans.iterator(); it.hasNext();) { ObjectName objectName = (ObjectName) it.next(); try { this.server.unregisterMBean(objectName); notifyListenersOfUnregistration(objectName...
void function() { logger.info(STR); for (Iterator it = this.registeredBeans.iterator(); it.hasNext();) { ObjectName objectName = (ObjectName) it.next(); try { this.server.unregisterMBean(objectName); notifyListenersOfUnregistration(objectName); } catch (JMException ex) { logger.error(STR + objectName + "]", ex); } } th...
/** * Unregisters all beans that this exported has exposed via JMX. */
Unregisters all beans that this exported has exposed via JMX
unregisterBeans
{ "repo_name": "raedle/univis", "path": "lib/springframework-1.2.8/src/org/springframework/jmx/export/MBeanExporter.java", "license": "lgpl-2.1", "size": 30028 }
[ "java.util.Iterator", "javax.management.JMException", "javax.management.ObjectName" ]
import java.util.Iterator; import javax.management.JMException; import javax.management.ObjectName;
import java.util.*; import javax.management.*;
[ "java.util", "javax.management" ]
java.util; javax.management;
2,778,337
public static DebuggableScript getDebuggableView(Script script) { if (script instanceof NativeFunction) { return ((NativeFunction)script).getDebuggableView(); } return null; } /** * Controls certain aspects of script semantics. * Should be overwritten to al...
static DebuggableScript function(Script script) { if (script instanceof NativeFunction) { return ((NativeFunction)script).getDebuggableView(); } return null; } /** * Controls certain aspects of script semantics. * Should be overwritten to alter default behavior. * <p> * The default implementation calls * {@link org.moz...
/** * Return DebuggableScript instance if any associated with the script. * If callable supports DebuggableScript implementation, the method * returns it. Otherwise null is returned. * * @param script a {@link org.mozilla.javascript.Script} object. * @return a {@link org.mozilla.javascript...
Return DebuggableScript instance if any associated with the script. If callable supports DebuggableScript implementation, the method returns it. Otherwise null is returned
getDebuggableView
{ "repo_name": "oswetto/LoboEvolution", "path": "LoboParser/src/main/java/org/mozilla/javascript/Context.java", "license": "gpl-3.0", "size": 110895 }
[ "org.mozilla.javascript.debug.DebuggableScript" ]
import org.mozilla.javascript.debug.DebuggableScript;
import org.mozilla.javascript.debug.*;
[ "org.mozilla.javascript" ]
org.mozilla.javascript;
301,863
protected NumberedSplit<InputSplit> allocateSplit(final String evaluatorId, final BlockingQueue<NumberedSplit<InputSplit>> value) { if (value == null) { LOG.log(Level.FINE, "Queue of splits can't be empty. Returning null"); return null; } while (true) { final NumberedSplit<InputSpl...
NumberedSplit<InputSplit> function(final String evaluatorId, final BlockingQueue<NumberedSplit<InputSplit>> value) { if (value == null) { LOG.log(Level.FINE, STR); return null; } while (true) { final NumberedSplit<InputSplit> split = value.poll(); if (split == null) { return null; } if (value == unallocatedSplits unall...
/** * Allocates the first available split into the evaluator. * * @param evaluatorId * the evaluator id * @param value * the queue of splits * @return a numberedSplit or null if it cannot find one */
Allocates the first available split into the evaluator
allocateSplit
{ "repo_name": "swlsw/incubator-reef", "path": "lang/java/reef-io/src/main/java/org/apache/reef/io/data/loading/impl/AbstractEvaluatorToPartitionStrategy.java", "license": "apache-2.0", "size": 10830 }
[ "java.util.concurrent.BlockingQueue", "java.util.logging.Level", "org.apache.hadoop.mapred.InputSplit" ]
import java.util.concurrent.BlockingQueue; import java.util.logging.Level; import org.apache.hadoop.mapred.InputSplit;
import java.util.concurrent.*; import java.util.logging.*; import org.apache.hadoop.mapred.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
373,866
@POST @Path("{roleId}") @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) public String actionsOnRoles(@PathParam("roleId") final Long roleId, @QueryParam("command") final String commandParam, final String apiRequestBodyAsJson) { final CommandWr...
@Path(STR) @Consumes({ MediaType.APPLICATION_JSON }) @Produces({ MediaType.APPLICATION_JSON }) String function(@PathParam(STR) final Long roleId, @QueryParam(STR) final String commandParam, final String apiRequestBodyAsJson) { final CommandWrapperBuilder builder = new CommandWrapperBuilder().withJson(apiRequestBodyAsJs...
/** * Roles enable or disable * * @param roleId * @param commandParam * @param apiRequestBodyAsJson * @return */
Roles enable or disable
actionsOnRoles
{ "repo_name": "RanjithKumar5550/RanMifos", "path": "fineract-provider/src/main/java/org/apache/fineract/useradministration/api/RolesApiResource.java", "license": "apache-2.0", "size": 10682 }
[ "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.Produces", "javax.ws.rs.QueryParam", "javax.ws.rs.core.MediaType", "org.apache.fineract.commands.domain.CommandWrapper", "org.apache.fineract.commands.service.CommandWrapperBuilder", "org.apache.fineract.infrastructure...
import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.Produces; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; import org.apache.fineract.commands.domain.CommandWrapper; import org.apache.fineract.commands.service.CommandWrapperBuilder; import org.apac...
import javax.ws.rs.*; import javax.ws.rs.core.*; import org.apache.fineract.commands.domain.*; import org.apache.fineract.commands.service.*; import org.apache.fineract.infrastructure.core.data.*;
[ "javax.ws", "org.apache.fineract" ]
javax.ws; org.apache.fineract;
1,791,149
public ChartRenderingInfo getOwner() { return this.owner; }
ChartRenderingInfo function() { return this.owner; }
/** * Returns the owner (as specified in the constructor). * * @return The owner (possibly <code>null</code>). */
Returns the owner (as specified in the constructor)
getOwner
{ "repo_name": "sebkur/JFreeChart", "path": "src/main/java/org/jfree/chart/plot/PlotRenderingInfo.java", "license": "lgpl-3.0", "size": 9095 }
[ "org.jfree.chart.ChartRenderingInfo" ]
import org.jfree.chart.ChartRenderingInfo;
import org.jfree.chart.*;
[ "org.jfree.chart" ]
org.jfree.chart;
11,377
public static String getElementText(XMLEventReader xmlEventReader) throws ParsingException { String str = null; try { str = xmlEventReader.getElementText().trim(); } catch (XMLStreamException e) { throw logger.parserException(e); } return str; }
static String function(XMLEventReader xmlEventReader) throws ParsingException { String str = null; try { str = xmlEventReader.getElementText().trim(); } catch (XMLStreamException e) { throw logger.parserException(e); } return str; }
/** * Get the element text. * * @param xmlEventReader * * @return A <b>trimmed</b> string value * * @throws ParsingException */
Get the element text
getElementText
{ "repo_name": "mbaluch/keycloak", "path": "saml-core/src/main/java/org/keycloak/saml/common/util/StaxParserUtil.java", "license": "apache-2.0", "size": 17929 }
[ "javax.xml.stream.XMLEventReader", "javax.xml.stream.XMLStreamException", "org.keycloak.saml.common.exceptions.ParsingException" ]
import javax.xml.stream.XMLEventReader; import javax.xml.stream.XMLStreamException; import org.keycloak.saml.common.exceptions.ParsingException;
import javax.xml.stream.*; import org.keycloak.saml.common.exceptions.*;
[ "javax.xml", "org.keycloak.saml" ]
javax.xml; org.keycloak.saml;
1,446,648
public Artist getArtist(int id) { return queryOne("select " + COLUMNS + " from artist where id=?", rowMapper, id); }
Artist function(int id) { return queryOne(STR + COLUMNS + STR, rowMapper, id); }
/** * Returns the artist with the given ID. * * @param id The artist ID. * @return The artist or null. */
Returns the artist with the given ID
getArtist
{ "repo_name": "Booksonic-Server/madsonic-main", "path": "src/main/java/org/madsonic/dao/ArtistDao.java", "license": "gpl-3.0", "size": 9747 }
[ "org.madsonic.domain.Artist" ]
import org.madsonic.domain.Artist;
import org.madsonic.domain.*;
[ "org.madsonic.domain" ]
org.madsonic.domain;
1,000,179
public void moveRowRelative(int rows) throws SQLException { notSupported(); }
void function(int rows) throws SQLException { notSupported(); }
/** * Moves the current position relative 'rows' from the current position. * * @param rows * the relative number of rows to move * @throws SQLException * if a database error occurs */
Moves the current position relative 'rows' from the current position
moveRowRelative
{ "repo_name": "yyuu/libmysql-java", "path": "src/com/mysql/jdbc/RowDataCursor.java", "license": "gpl-2.0", "size": 11889 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
886,780
public void stripAttributes( boolean flag ) { strip_attributes = flag; } static final class BranchTarget { InstructionHandle target; int stackDepth; BranchTarget(InstructionHandle target, int stackDepth) { this.target = target; this.stackDepth = st...
void function( boolean flag ) { strip_attributes = flag; } static final class BranchTarget { InstructionHandle target; int stackDepth; BranchTarget(InstructionHandle target, int stackDepth) { this.target = target; this.stackDepth = stackDepth; } } static final class BranchStack { Stack branchTargets = new Stack(); Hash...
/** Do not/Do produce attributes code attributesLineNumberTable and * LocalVariableTable, like javac -O */
Do not/Do produce attributes code attributesLineNumberTable and LocalVariableTable, like javac -O
stripAttributes
{ "repo_name": "treejames/JMD", "path": "src/org/apache/bcel/generic/MethodGen.java", "license": "mit", "size": 35825 }
[ "java.util.Hashtable", "java.util.Stack" ]
import java.util.Hashtable; import java.util.Stack;
import java.util.*;
[ "java.util" ]
java.util;
2,367,478
@RequestMapping(value="letter/all", method=RequestMethod.GET) @ResponseStatus(HttpStatus.OK) @ResponseBody public List<Letter> getAll() throws OPMException { String signature = CLASS_NAME + "#get(Integer letterId)"; Logger logger = getLogger(); LoggingHelper.logEntrance(logger, ...
@RequestMapping(value=STR, method=RequestMethod.GET) @ResponseStatus(HttpStatus.OK) List<Letter> function() throws OPMException { String signature = CLASS_NAME + STR; Logger logger = getLogger(); LoggingHelper.logEntrance(logger, signature, new String[] {}, new Object[] {}); List<Letter> result = letterService.getAll()...
/** * Gets all available letters. * @return the letters. * @throws OPMException if there are any error. */
Gets all available letters
getAll
{ "repo_name": "NASA-Tournament-Lab/CoECI-OPM-Service-Credit-Redeposit-Deposit-Application", "path": "Code/SCRD_BRE/src/java/web/gov/opm/scrd/web/controllers/LetterController.java", "license": "apache-2.0", "size": 5840 }
[ "gov.opm.scrd.LoggingHelper", "gov.opm.scrd.entities.application.Letter", "gov.opm.scrd.services.OPMException", "java.util.List", "org.jboss.logging.Logger", "org.springframework.http.HttpStatus", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.Reques...
import gov.opm.scrd.LoggingHelper; import gov.opm.scrd.entities.application.Letter; import gov.opm.scrd.services.OPMException; import java.util.List; import org.jboss.logging.Logger; import org.springframework.http.HttpStatus; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web...
import gov.opm.scrd.*; import gov.opm.scrd.entities.application.*; import gov.opm.scrd.services.*; import java.util.*; import org.jboss.logging.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*;
[ "gov.opm.scrd", "java.util", "org.jboss.logging", "org.springframework.http", "org.springframework.web" ]
gov.opm.scrd; java.util; org.jboss.logging; org.springframework.http; org.springframework.web;
1,973,943
public void refreshBox(Box box, Theme theme) { GraphicalBox gBox = findBox(box); gBox.setImage(box.getStatus() == Box.HIDDEN ? theme.getHiddenImage() : theme.getImage(box.getValue())); gBox.redraw(); if(box.getStatus() == Box.VISIBLE || box.getStatus() == Box.DISCOVERED) { gBox.setEnabled(false); ...
void function(Box box, Theme theme) { GraphicalBox gBox = findBox(box); gBox.setImage(box.getStatus() == Box.HIDDEN ? theme.getHiddenImage() : theme.getImage(box.getValue())); gBox.redraw(); if(box.getStatus() == Box.VISIBLE box.getStatus() == Box.DISCOVERED) { gBox.setEnabled(false); } else { gBox.setEnabled(true); } ...
/** * Repaints the graphical box corresponding to box specified as a parameter * @param box the model object containing the information of the box * @param theme the Theme of the application */
Repaints the graphical box corresponding to box specified as a parameter
refreshBox
{ "repo_name": "jahlon/education-software-patterns-memorygame", "path": "education.software.patterns.memorygame.phase4/src/education/software/patterns/memorygame/ui/GameBoardComposite.java", "license": "gpl-2.0", "size": 5794 }
[ "education.software.patterns.memorygame.model.Box", "education.software.patterns.memorygame.themes.Theme" ]
import education.software.patterns.memorygame.model.Box; import education.software.patterns.memorygame.themes.Theme;
import education.software.patterns.memorygame.model.*; import education.software.patterns.memorygame.themes.*;
[ "education.software.patterns" ]
education.software.patterns;
1,828,285
private static Test baseSuite(String name) { TestSuite suite = new TestSuite(name); // Need JDBC DriverManager to run these tests if (!JDBC.vmSupportsJDBC3()) return suite; suite.addTestSuite(ProcedureTest.class);
static Test function(String name) { TestSuite suite = new TestSuite(name); if (!JDBC.vmSupportsJDBC3()) return suite; suite.addTestSuite(ProcedureTest.class);
/** * Creates the test suite and wraps it in a <code>TestSetup</code> * instance which sets up and tears down the test environment. * @return test suite */
Creates the test suite and wraps it in a <code>TestSetup</code> instance which sets up and tears down the test environment
baseSuite
{ "repo_name": "scnakandala/derby", "path": "java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ProcedureTest.java", "license": "apache-2.0", "size": 71187 }
[ "junit.framework.Test", "junit.framework.TestSuite", "org.apache.derbyTesting.junit.JDBC" ]
import junit.framework.Test; import junit.framework.TestSuite; import org.apache.derbyTesting.junit.JDBC;
import junit.framework.*; import org.apache.*;
[ "junit.framework", "org.apache" ]
junit.framework; org.apache;
2,578,662
Value<Boolean> connectedNorth();
Value<Boolean> connectedNorth();
/** * Gets the {@link Value} for whether {@link Direction#NORTH} is * "connected". * * @return The value for the north direction */
Gets the <code>Value</code> for whether <code>Direction#NORTH</code> is "connected"
connectedNorth
{ "repo_name": "joshgarde/SpongeAPI", "path": "src/main/java/org/spongepowered/api/data/manipulator/mutable/block/ConnectedDirectionData.java", "license": "mit", "size": 2992 }
[ "org.spongepowered.api.data.value.mutable.Value" ]
import org.spongepowered.api.data.value.mutable.Value;
import org.spongepowered.api.data.value.mutable.*;
[ "org.spongepowered.api" ]
org.spongepowered.api;
2,227,722
private void writeRequest(final NextFilter nextFilter, final SocksProxyRequest request, int step) { try { IoBuffer buf = null; if (step == SocksProxyConstants.SOCKS5_GREETING_STEP) { buf = encodeInitialGreetingPacket(request); } else if (step ...
void function(final NextFilter nextFilter, final SocksProxyRequest request, int step) { try { IoBuffer buf = null; if (step == SocksProxyConstants.SOCKS5_GREETING_STEP) { buf = encodeInitialGreetingPacket(request); } else if (step == SocksProxyConstants.SOCKS5_AUTH_STEP) { buf = encodeAuthenticationPacket(request); if ...
/** * Encodes a SOCKS5 request and writes it to the next filter * so it can be sent to the proxy server. * * @param nextFilter the next filter * @param request the request to send. * @param step the current step in the handshake process */
Encodes a SOCKS5 request and writes it to the next filter so it can be sent to the proxy server
writeRequest
{ "repo_name": "sardine/mina-ja", "path": "src/mina-core/src/main/java/org/apache/mina/proxy/handlers/socks/Socks5LogicHandler.java", "license": "apache-2.0", "size": 18056 }
[ "org.apache.mina.core.buffer.IoBuffer", "org.apache.mina.core.filterchain.IoFilter" ]
import org.apache.mina.core.buffer.IoBuffer; import org.apache.mina.core.filterchain.IoFilter;
import org.apache.mina.core.buffer.*; import org.apache.mina.core.filterchain.*;
[ "org.apache.mina" ]
org.apache.mina;
2,837,438
ServiceCall<List<String>> getStringValidAsync(final ServiceCallback<List<String>> serviceCallback);
ServiceCall<List<String>> getStringValidAsync(final ServiceCallback<List<String>> serviceCallback);
/** * Get string array value ['foo1', 'foo2', 'foo3']. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the {@link ServiceCall} object */
Get string array value ['foo1', 'foo2', 'foo3']
getStringValidAsync
{ "repo_name": "haocs/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodyarray/Arrays.java", "license": "mit", "size": 72234 }
[ "com.microsoft.rest.ServiceCall", "com.microsoft.rest.ServiceCallback", "java.util.List" ]
import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; import java.util.List;
import com.microsoft.rest.*; import java.util.*;
[ "com.microsoft.rest", "java.util" ]
com.microsoft.rest; java.util;
2,501,175
public boolean onMediaPeriodReleased(MediaPeriodId mediaPeriodId) { MediaPeriodInfo mediaPeriodInfo = mediaPeriodIdToInfo.remove(mediaPeriodId); if (mediaPeriodInfo == null) { // The media period has already been removed from the queue in resetForNewMediaSource(). return false; } ...
boolean function(MediaPeriodId mediaPeriodId) { MediaPeriodInfo mediaPeriodInfo = mediaPeriodIdToInfo.remove(mediaPeriodId); if (mediaPeriodInfo == null) { return false; } mediaPeriodInfoQueue.remove(mediaPeriodInfo); if (readingMediaPeriod != null && mediaPeriodId.equals(readingMediaPeriod.mediaPeriodId)) { readingMed...
/** * Updates the queue with a released media period. Returns whether the media period was still in * the queue. */
Updates the queue with a released media period. Returns whether the media period was still in the queue
onMediaPeriodReleased
{ "repo_name": "CzBiX/Telegram", "path": "TMessagesProj/src/main/java/com/google/android/exoplayer2/analytics/AnalyticsCollector.java", "license": "gpl-2.0", "size": 34339 }
[ "com.google.android.exoplayer2.source.MediaSource" ]
import com.google.android.exoplayer2.source.MediaSource;
import com.google.android.exoplayer2.source.*;
[ "com.google.android" ]
com.google.android;
1,638,025
@Pure public SarlClass getSarlClass() { return this.sarlClass; }
SarlClass function() { return this.sarlClass; }
/** Replies the generated SarlClass. */
Replies the generated SarlClass
getSarlClass
{ "repo_name": "sarl/sarl", "path": "main/coreplugins/io.sarl.lang/src-gen/io/sarl/lang/codebuilder/builders/SarlClassBuilderImpl.java", "license": "apache-2.0", "size": 9330 }
[ "io.sarl.lang.sarl.SarlClass" ]
import io.sarl.lang.sarl.SarlClass;
import io.sarl.lang.sarl.*;
[ "io.sarl.lang" ]
io.sarl.lang;
1,128,816
public static synchronized List getFieldNames() { if (fieldNames == null) { fieldNames = new ArrayList(); fieldNames.add("Id"); fieldNames.add("Nombre"); fieldNames.add("MarcaId"); fieldNames = Collections.unmodifiableList(field...
static synchronized List function() { if (fieldNames == null) { fieldNames = new ArrayList(); fieldNames.add("Id"); fieldNames.add(STR); fieldNames.add(STR); fieldNames = Collections.unmodifiableList(fieldNames); } return fieldNames; }
/** * Generate a list of field names. * * @return a list of field names */
Generate a list of field names
getFieldNames
{ "repo_name": "Esleelkartea/serteca", "path": "fuentes/src/net/idtoki/serteca/model/BaseModelo.java", "license": "gpl-2.0", "size": 19927 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,039,342
public Socket getSocket() { return socket; }
Socket function() { return socket; }
/** * Get the http socket. */
Get the http socket
getSocket
{ "repo_name": "iolsen/harmonium", "path": "com/tivo/hme/host/http/client/HttpClient.java", "license": "agpl-3.0", "size": 12615 }
[ "java.net.Socket" ]
import java.net.Socket;
import java.net.*;
[ "java.net" ]
java.net;
1,823,716
@Message(id = 213, value = "Unexpected component: %s component Expected %s") IllegalStateException unexpectedComponent(Component component, Class<?> entityBeanComponentClass);
@Message(id = 213, value = STR) IllegalStateException unexpectedComponent(Component component, Class<?> entityBeanComponentClass);
/** * Creates an exception indicating unexpected component * * @return a {@link IllegalStateException} for the error. */
Creates an exception indicating unexpected component
unexpectedComponent
{ "repo_name": "xasx/wildfly", "path": "ejb3/src/main/java/org/jboss/as/ejb3/logging/EjbLogger.java", "license": "lgpl-2.1", "size": 147231 }
[ "org.jboss.as.ee.component.Component", "org.jboss.logging.annotations.Message" ]
import org.jboss.as.ee.component.Component; import org.jboss.logging.annotations.Message;
import org.jboss.as.ee.component.*; import org.jboss.logging.annotations.*;
[ "org.jboss.as", "org.jboss.logging" ]
org.jboss.as; org.jboss.logging;
49,784
@WebMethod public List<String> getSupportedCurrencies();
List<String> function();
/** * Returns all currencies which are currently supported. * <p> * Required role: none * * @return the supported currencies */
Returns all currencies which are currently supported. Required role: none
getSupportedCurrencies
{ "repo_name": "opetrovski/development", "path": "oscm-extsvc/javasrc/org/oscm/intf/ServiceProvisioningService.java", "license": "apache-2.0", "size": 63735 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,937,826
private void readCommandOutput() throws IOException { InputStreamReader inputStreamReader = null; BufferedReader bufferedReader = null; try { inputStreamReader = new InputStreamReader(inputStream); bufferedReader = new BufferedReader(inputStreamReader); String line = null; while (r...
void function() throws IOException { InputStreamReader inputStreamReader = null; BufferedReader bufferedReader = null; try { inputStreamReader = new InputStreamReader(inputStream); bufferedReader = new BufferedReader(inputStreamReader); String line = null; while (running) { while ((line = readLine(bufferedReader)) != n...
/** * The method which does the main work of reading from the input stream. * * @throws IOException If an error occurs reading from the stream. */
The method which does the main work of reading from the input stream
readCommandOutput
{ "repo_name": "choss/citrine-scheduler", "path": "src/main/java/fm/last/syscommand/AsyncStreamReader.java", "license": "apache-2.0", "size": 3954 }
[ "fm.last.syscommand.SysCommandExecutor", "java.io.BufferedReader", "java.io.IOException", "java.io.InputStreamReader", "org.apache.commons.io.IOUtils" ]
import fm.last.syscommand.SysCommandExecutor; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import org.apache.commons.io.IOUtils;
import fm.last.syscommand.*; import java.io.*; import org.apache.commons.io.*;
[ "fm.last.syscommand", "java.io", "org.apache.commons" ]
fm.last.syscommand; java.io; org.apache.commons;
1,378,224
private static boolean deleteFile(String filePath, File repositoryPath) throws IOException { Path path = Paths.get(repositoryPath.getAbsolutePath(), filePath); if (!Files.exists(path)) { return false; } Files.delete(path); File file = path.toFile(); while ...
static boolean function(String filePath, File repositoryPath) throws IOException { Path path = Paths.get(repositoryPath.getAbsolutePath(), filePath); if (!Files.exists(path)) { return false; } Files.delete(path); File file = path.toFile(); while (!file.equals(repositoryPath)) { File parent = file.getParentFile(); File[...
/** * Delete the file at the given path. * * @param filePath the path relative to the repository path * @param repositoryPath the path to the root of the repository * @return true if the file was deleted or false otherwise * @throws IOException in case of an error */
Delete the file at the given path
deleteFile
{ "repo_name": "ControlSystemStudio/cs-studio", "path": "applications/saverestore/saverestore-plugins/org.csstudio.saverestore.git/src/org/csstudio/saverestore/git/GitManager.java", "license": "epl-1.0", "size": 80642 }
[ "java.io.File", "java.io.IOException", "java.nio.file.Files", "java.nio.file.Path", "java.nio.file.Paths" ]
import java.io.File; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths;
import java.io.*; import java.nio.file.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,870,481
public static boolean isSupportedFileType(String filename) { if (log.isDebugEnabled()) { log.debug("File name " + filename); } if (StringUtils.isEmpty(filename)) { return false; } String fileType = FilenameUtils.getExtension(filename); List<Str...
static boolean function(String filename) { if (log.isDebugEnabled()) { log.debug(STR + filename); } if (StringUtils.isEmpty(filename)) { return false; } String fileType = FilenameUtils.getExtension(filename); List<String> list = null; APIManagerConfiguration apiManagerConfiguration = ServiceReferenceHolder.getInstance(...
/** * Check whether the file type is supported. * @param filename name * @return true if supported */
Check whether the file type is supported
isSupportedFileType
{ "repo_name": "ruks/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/utils/APIUtil.java", "license": "apache-2.0", "size": 564037 }
[ "java.util.Arrays", "java.util.List", "org.apache.commons.io.FilenameUtils", "org.apache.commons.lang3.StringUtils", "org.wso2.carbon.apimgt.impl.APIConstants", "org.wso2.carbon.apimgt.impl.APIManagerConfiguration", "org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder" ]
import java.util.Arrays; import java.util.List; import org.apache.commons.io.FilenameUtils; import org.apache.commons.lang3.StringUtils; import org.wso2.carbon.apimgt.impl.APIConstants; import org.wso2.carbon.apimgt.impl.APIManagerConfiguration; import org.wso2.carbon.apimgt.impl.internal.ServiceReferenceHolder;
import java.util.*; import org.apache.commons.io.*; import org.apache.commons.lang3.*; import org.wso2.carbon.apimgt.impl.*; import org.wso2.carbon.apimgt.impl.internal.*;
[ "java.util", "org.apache.commons", "org.wso2.carbon" ]
java.util; org.apache.commons; org.wso2.carbon;
889,464
public Builder url(final String url) { final Set<String> urls = new LinkedHashSet<>(); if (url != null && url.length() > 0) { urls.add(url); } this.urls = urls; return this; }
Builder function(final String url) { final Set<String> urls = new LinkedHashSet<>(); if (url != null && url.length() > 0) { urls.add(url); } this.urls = urls; return this; }
/** * <p>Specifies the URL of the remote NiFi instance.</p> * <p>If this URL points to a NiFi node in a NiFi cluster, data transfer to and from * nodes will be automatically load balanced across the different nodes.</p> * * <p>For better connectivity with a NiFi cluster, use...
Specifies the URL of the remote NiFi instance. If this URL points to a NiFi node in a NiFi cluster, data transfer to and from nodes will be automatically load balanced across the different nodes. For better connectivity with a NiFi cluster, use <code>#urls(Set)</code> instead
url
{ "repo_name": "apsaltis/nifi", "path": "nifi-commons/nifi-site-to-site-client/src/main/java/org/apache/nifi/remote/client/SiteToSiteClient.java", "license": "apache-2.0", "size": 38603 }
[ "java.util.LinkedHashSet", "java.util.Set" ]
import java.util.LinkedHashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
212,619
public void close() throws org.csstudio.mps.sns.tools.database.DatabaseException { try { getOracleDataSource().close(); connected = false; usingFailOver = false; } catch (SQLException exception) { Logger.getLogger("global") .log(Level.SEVERE, "Error closing database...
void function() throws org.csstudio.mps.sns.tools.database.DatabaseException { try { getOracleDataSource().close(); connected = false; usingFailOver = false; } catch (SQLException exception) { Logger.getLogger(STR) .log(Level.SEVERE, STR, exception); throw new DatabaseException(STR, this, exception); } }
/** * Closes all of the connections in the cache. * * @throws org.csstudio.mps.sns.tools.database.DatabaseException Thrown on database error. */
Closes all of the connections in the cache
close
{ "repo_name": "ControlSystemStudio/org.csstudio.sns", "path": "plugins/org.csstudio.mps.sns/src/org/csstudio/mps/sns/tools/database/OracleCachingDatabaseAdaptor.java", "license": "epl-1.0", "size": 18246 }
[ "java.sql.SQLException", "java.util.logging.Level", "java.util.logging.Logger" ]
import java.sql.SQLException; import java.util.logging.Level; import java.util.logging.Logger;
import java.sql.*; import java.util.logging.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
1,868,341
public void write(OutputStream outStream) throws IOException { DataOutputStream dataOutStream = new DataOutputStream(outStream); writeHeader(dataOutStream); writeData(dataOutStream); }
void function(OutputStream outStream) throws IOException { DataOutputStream dataOutStream = new DataOutputStream(outStream); writeHeader(dataOutStream); writeData(dataOutStream); }
/** * Writes complete packet. */
Writes complete packet
write
{ "repo_name": "Kwestor/scala-ide", "path": "org.scala-ide.sdt.debug.tests/src/org/scalaide/debug/internal/spy/JdwpPacket.java", "license": "bsd-3-clause", "size": 5548 }
[ "java.io.DataOutputStream", "java.io.IOException", "java.io.OutputStream" ]
import java.io.DataOutputStream; import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
863,473
@SuppressWarnings("unchecked") private List<Observation<?>> queryObservation(GetObservationByIdRequest request, Session session) throws OwsExceptionReport { Criteria c = DaoFactory.getInstance().getObservationDAO() .getObservationClassCriteriaForResult...
@SuppressWarnings(STR) List<Observation<?>> function(GetObservationByIdRequest request, Session session) throws OwsExceptionReport { Criteria c = DaoFactory.getInstance().getObservationDAO() .getObservationClassCriteriaForResultModel(request.getResultModel(), session); c.add(Restrictions.in(AbstractObservation.IDENTIFI...
/** * Query observations for observation identifiers * * @param request * GetObservationById request * @param session * Hibernate session * @return Resulting observations * @throws CodedException * If an error occurs during querying the data...
Query observations for observation identifiers
queryObservation
{ "repo_name": "ahuarte47/SOS", "path": "hibernate/dao/src/main/java/org/n52/sos/ds/hibernate/GetObservationByIdDAO.java", "license": "gpl-2.0", "size": 11265 }
[ "java.util.List", "org.hibernate.Criteria", "org.hibernate.Session", "org.hibernate.criterion.Restrictions", "org.n52.sos.ds.hibernate.dao.DaoFactory", "org.n52.sos.ds.hibernate.entities.observation.AbstractObservation", "org.n52.sos.ds.hibernate.entities.observation.Observation", "org.n52.sos.ds.hibe...
import java.util.List; import org.hibernate.Criteria; import org.hibernate.Session; import org.hibernate.criterion.Restrictions; import org.n52.sos.ds.hibernate.dao.DaoFactory; import org.n52.sos.ds.hibernate.entities.observation.AbstractObservation; import org.n52.sos.ds.hibernate.entities.observation.Observation; imp...
import java.util.*; import org.hibernate.*; import org.hibernate.criterion.*; import org.n52.sos.ds.hibernate.dao.*; import org.n52.sos.ds.hibernate.entities.observation.*; import org.n52.sos.ds.hibernate.util.*; import org.n52.sos.ogc.ows.*; import org.n52.sos.request.*;
[ "java.util", "org.hibernate", "org.hibernate.criterion", "org.n52.sos" ]
java.util; org.hibernate; org.hibernate.criterion; org.n52.sos;
2,142,656
public void toGraphic(File f, int width, int height, String fileformat, String... commands) { int h = Math.abs(f.hashCode()); set("plotfile_" + h, f.getName()); silentlyEval(fileformat + "(plotfile_" + h + ", width=" + width + ", height=" + height + ")"); ...
void function(File f, int width, int height, String fileformat, String... commands) { int h = Math.abs(f.hashCode()); set(STR + h, f.getName()); silentlyEval(fileformat + STR + h + STR + width + STR + height + ")"); for (String command : commands) { silentlyVoidEval(command); } silentlyEval(STR); receiveFile(f); rm(STR...
/** * Create a JPEG file for R graphical command output * * @param f * File to store data (eg .jpg file) * @param width * width of image * @param height * height of image * @param fileformat * format of image: png,tiff,jpeg,b...
Create a JPEG file for R graphical command output
toGraphic
{ "repo_name": "DrewG/mzmine2", "path": "src/main/java/net/sf/mzmine/util/R/Rsession/Rsession.java", "license": "gpl-2.0", "size": 93458 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,413,382
boolean everbodyHasFlag(final int f) { for (Entry q = head; q != null; q = q.next) { if ((q.commit.getFlags() & f) == 0) { return false; } } return true; } static class Entry { Entry next; CommitInfo co...
boolean everbodyHasFlag(final int f) { for (Entry q = head; q != null; q = q.next) { if ((q.commit.getFlags() & f) == 0) { return false; } } return true; } static class Entry { Entry next; CommitInfo commit; }
/** * Verifies if all elements in the queue have the specified flag. * @param f The flag to be verified. * @return True, if all elements have the specified flag. */
Verifies if all elements in the queue have the specified flag
everbodyHasFlag
{ "repo_name": "gems-uff/dyevc", "path": "src/main/java/br/uff/ic/dyevc/tools/vcs/git/DateCommitQueue.java", "license": "mit", "size": 3334 }
[ "br.uff.ic.dyevc.model.CommitInfo" ]
import br.uff.ic.dyevc.model.CommitInfo;
import br.uff.ic.dyevc.model.*;
[ "br.uff.ic" ]
br.uff.ic;
2,683,435
private void positionChildren(final int dx) { int childCount = getChildCount(); if (childCount > 0) { mDisplayOffset += dx; int leftOffset = mDisplayOffset; // Loop each child view for (int i = 0; i < childCount; i++) { View child = g...
void function(final int dx) { int childCount = getChildCount(); if (childCount > 0) { mDisplayOffset += dx; int leftOffset = mDisplayOffset; for (int i = 0; i < childCount; i++) { View child = getChildAt(i); int left = leftOffset + getPaddingLeft(); int top = getPaddingTop(); int right = left + child.getMeasuredWidth()...
/** * Loops through each child and positions them onto the screen */
Loops through each child and positions them onto the screen
positionChildren
{ "repo_name": "zhuangzaiku/NiuwaClient", "path": "androidHorizontalListView/src/main/java/tv/meetme/android/horizontallistview/HorizontalListView.java", "license": "apache-2.0", "size": 52632 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,893,792
public static List<String> getOneStepCastsUseObjects(List<String> objs) throws Exception { Catalog cc = CatalogInstance.INSTANCE.getCatalog(); // input check CatalogUtilities.checkConnection(cc); if (objs.size() == 0) return new ArrayList<String>(); for (String objName : objs) CatalogUtilities.checkL...
static List<String> function(List<String> objs) throws Exception { Catalog cc = CatalogInstance.INSTANCE.getCatalog(); CatalogUtilities.checkConnection(cc); if (objs.size() == 0) return new ArrayList<String>(); for (String objName : objs) CatalogUtilities.checkLength(objName, 15); List<String> extraction = new ArrayLis...
/** * With a list of objects, fetch all relevant one-step casts. Useful for * migrating intermediate results; input one local table NOTE: if a cast is * unavailable it will not show. * * @param cc * @param objs * @return ArrayList of TSV String of dbName (db), source engine id * (src_id), desti...
With a list of objects, fetch all relevant one-step casts. Useful for unavailable it will not show
getOneStepCastsUseObjects
{ "repo_name": "bigdawg-istc/bigdawg", "path": "src/main/java/istc/bigdawg/catalog/CatalogViewer.java", "license": "bsd-3-clause", "size": 23573 }
[ "java.sql.ResultSet", "java.util.ArrayList", "java.util.List" ]
import java.sql.ResultSet; import java.util.ArrayList; import java.util.List;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
1,742,392
public ArrayList<String> vps_serviceName_windows_GET(String serviceName) throws IOException { String qPath = "/order/vps/{serviceName}/windows"; StringBuilder sb = path(qPath, serviceName); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, t1); } /** * Get prices and contract...
ArrayList<String> function(String serviceName) throws IOException { String qPath = STR; StringBuilder sb = path(qPath, serviceName); String resp = exec(qPath, "GET", sb.toString(), null); return convertTo(resp, t1); } /** * Get prices and contracts information * * REST: GET /order/vps/{serviceName}/windows/{duration}
/** * Get allowed durations for 'windows' option * * REST: GET /order/vps/{serviceName}/windows * @param serviceName [required] The internal name of your VPS offer */
Get allowed durations for 'windows' option
vps_serviceName_windows_GET
{ "repo_name": "UrielCh/ovh-java-sdk", "path": "ovh-java-sdk-order/src/main/java/net/minidev/ovh/api/ApiOvhOrder.java", "license": "bsd-3-clause", "size": 511080 }
[ "java.io.IOException", "java.util.ArrayList" ]
import java.io.IOException; import java.util.ArrayList;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,423,105
public static ResumptionTokenType mkResumptionTokenWrapper(long completeListSize, long cursor, int expirationInSeconds) { ResumptionTokenType resumptionToken = new ResumptionTokenType(); resumptionToken.setCompleteListSize(new BigInteger("" + completeListSize)); resumptionToken.setCursor(new...
static ResumptionTokenType function(long completeListSize, long cursor, int expirationInSeconds) { ResumptionTokenType resumptionToken = new ResumptionTokenType(); resumptionToken.setCompleteListSize(new BigInteger(STR" + cursor)); GregorianCalendar cal = new GregorianCalendar(); cal.setTime(new Date()); cal.add(Calend...
/** * generate a resumption token WRAPPER, that describes the chunk of data returned, but doesn't contain the VALUE of the resumption token. Whether this value * has to be inserted, is decided later. * * @param completeListSize the number of CHO of the whole transaction * @param cursor the num...
generate a resumption token WRAPPER, that describes the chunk of data returned, but doesn't contain the VALUE of the resumption token. Whether this value has to be inserted, is decided later
mkResumptionTokenWrapper
{ "repo_name": "Deutsche-Digitale-Bibliothek/ddb-backend", "path": "OaiPmhServer/src/main/java/de/fhg/iais/cortex/oaipmh/util/OaiPmhUtil.java", "license": "apache-2.0", "size": 8486 }
[ "de.fhg.iais.cortex.generated.oaiPmh.ResumptionTokenType", "java.math.BigInteger", "java.util.Calendar", "java.util.Date", "java.util.GregorianCalendar" ]
import de.fhg.iais.cortex.generated.oaiPmh.ResumptionTokenType; import java.math.BigInteger; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar;
import de.fhg.iais.cortex.generated.*; import java.math.*; import java.util.*;
[ "de.fhg.iais", "java.math", "java.util" ]
de.fhg.iais; java.math; java.util;
781,565
@Override public void exitAnnotationMethodOrConstantRest(@NotNull JavaParser.AnnotationMethodOrConstantRestContext ctx) { }
@Override public void exitAnnotationMethodOrConstantRest(@NotNull JavaParser.AnnotationMethodOrConstantRestContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
enterAnnotationMethodOrConstantRest
{ "repo_name": "martinaguero/deep", "path": "src/org/trimatek/deep/lexer/JavaBaseListener.java", "license": "apache-2.0", "size": 39286 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
1,030,555
public List<PublicPlugin> getPublicPlugins() { return publicPlugins; }
List<PublicPlugin> function() { return publicPlugins; }
/** * Returns a collection of all public plugins. * * @return the collection of public plugins. */
Returns a collection of all public plugins
getPublicPlugins
{ "repo_name": "joshuairl/toothchat-client", "path": "src/java/org/jivesoftware/spark/PluginManager.java", "license": "apache-2.0", "size": 32998 }
[ "java.util.List", "org.jivesoftware.spark.plugin.PublicPlugin" ]
import java.util.List; import org.jivesoftware.spark.plugin.PublicPlugin;
import java.util.*; import org.jivesoftware.spark.plugin.*;
[ "java.util", "org.jivesoftware.spark" ]
java.util; org.jivesoftware.spark;
2,744,356