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
protected PackagedProgram buildProgram(ProgramOptions options) throws FileNotFoundException, ProgramInvocationException { String[] programArgs = options.getProgramArgs(); String jarFilePath = options.getJarFilePath(); List<URL> classpaths = options.getClasspaths(); if (jarFilePath == null) { throw new...
PackagedProgram function(ProgramOptions options) throws FileNotFoundException, ProgramInvocationException { String[] programArgs = options.getProgramArgs(); String jarFilePath = options.getJarFilePath(); List<URL> classpaths = options.getClasspaths(); if (jarFilePath == null) { throw new IllegalArgumentException(STR); ...
/** * Creates a Packaged program from the given command line options. * * @return A PackagedProgram (upon success) * @throws java.io.FileNotFoundException * @throws org.apache.flink.client.program.ProgramInvocationException */
Creates a Packaged program from the given command line options
buildProgram
{ "repo_name": "zohar-mizrahi/flink", "path": "flink-clients/src/main/java/org/apache/flink/client/CliFrontend.java", "license": "apache-2.0", "size": 40951 }
[ "java.io.File", "java.io.FileNotFoundException", "java.util.List", "org.apache.flink.client.cli.ProgramOptions", "org.apache.flink.client.program.PackagedProgram", "org.apache.flink.client.program.ProgramInvocationException" ]
import java.io.File; import java.io.FileNotFoundException; import java.util.List; import org.apache.flink.client.cli.ProgramOptions; import org.apache.flink.client.program.PackagedProgram; import org.apache.flink.client.program.ProgramInvocationException;
import java.io.*; import java.util.*; import org.apache.flink.client.cli.*; import org.apache.flink.client.program.*;
[ "java.io", "java.util", "org.apache.flink" ]
java.io; java.util; org.apache.flink;
1,944,887
@Override protected boolean beforeSave (boolean newRecord) { if (getAD_Org_ID() != 0) setAD_Org_ID(0); // Region Check if (getC_Region_ID() != 0) { if (m_c == null || m_c.getC_Country_ID() != getC_Country_ID()) getCountry(); if (!m_c.isHasRegion()) setC_Region_ID(0); } if (getC_City_ID...
boolean function (boolean newRecord) { if (getAD_Org_ID() != 0) setAD_Org_ID(0); if (getC_Region_ID() != 0) { if (m_c == null m_c.getC_Country_ID() != getC_Country_ID()) getCountry(); if (!m_c.isHasRegion()) setC_Region_ID(0); } if (getC_City_ID() <= 0 && getCity() != null && getCity().length() > 0) { int city_id = DB....
/** * Before Save * @param newRecord new * @return true */
Before Save
beforeSave
{ "repo_name": "klst-com/metasfresh", "path": "de.metas.adempiere.adempiere/base/src/main/java-legacy/org/compiere/model/MLocation.java", "license": "gpl-2.0", "size": 18566 }
[ "org.adempiere.exceptions.AdempiereException", "org.compiere.util.DB" ]
import org.adempiere.exceptions.AdempiereException; import org.compiere.util.DB;
import org.adempiere.exceptions.*; import org.compiere.util.*;
[ "org.adempiere.exceptions", "org.compiere.util" ]
org.adempiere.exceptions; org.compiere.util;
2,785,168
private static Properties readApplicationProperties() { Properties localProperties = new Properties(); try (InputStream input = AbstractConfig.class.getClassLoader().getResourceAsStream("/" + APPLICATION_PROPERTIES)) { localProperties.load(input); } catch (IOException | NullPoint...
static Properties function() { Properties localProperties = new Properties(); try (InputStream input = AbstractConfig.class.getClassLoader().getResourceAsStream("/" + APPLICATION_PROPERTIES)) { localProperties.load(input); } catch (IOException NullPointerException e) { LOGGER.warn(STR, APPLICATION_PROPERTIES, e); } ret...
/** * Tries to read the application properties. * * @return - A collection of properties, which is empty if no application has been defined (i.e. at unit tests) */
Tries to read the application properties
readApplicationProperties
{ "repo_name": "USEF-Foundation/ri.usef.energy", "path": "usef-build/usef-core/usef-core-commons/src/main/java/energy/usef/core/config/AbstractConfig.java", "license": "apache-2.0", "size": 11507 }
[ "java.io.IOException", "java.io.InputStream", "java.util.Properties" ]
import java.io.IOException; import java.io.InputStream; import java.util.Properties;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,888,392
public void setComments(List<String> comments) { this.comments = comments; }
void function(List<String> comments) { this.comments = comments; }
/** * Attach xml comments to the target model element. */
Attach xml comments to the target model element
setComments
{ "repo_name": "StephaneSeyvoz/mindEd", "path": "org.ow2.mindEd.adl.model/customsrc/org/ow2/mindEd/adl/custom/helpers/HelperAdapter.java", "license": "lgpl-3.0", "size": 6700 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,524,913
public void launchCourse() { this.course.setEtatCourse(EtatCourse.RUN); initVoituresGraphics(); buildAndSetGameLoop(); beginGameLoop(); }
void function() { this.course.setEtatCourse(EtatCourse.RUN); initVoituresGraphics(); buildAndSetGameLoop(); beginGameLoop(); }
/** * Lance la course. */
Lance la course
launchCourse
{ "repo_name": "Spasfonx/NeedForCodeOld", "path": "NeedForCode/src/fr/needforcode/ihm/controller/CourseRunningController.java", "license": "gpl-2.0", "size": 10482 }
[ "fr.needforcode.course.EtatCourse" ]
import fr.needforcode.course.EtatCourse;
import fr.needforcode.course.*;
[ "fr.needforcode.course" ]
fr.needforcode.course;
1,242,579
public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency) { VolatileImage vi = null; try { vi = createCompatibleVolatileImage(width, height, null, transparency); } catch (AWTException e) ...
VolatileImage function(int width, int height, int transparency) { VolatileImage vi = null; try { vi = createCompatibleVolatileImage(width, height, null, transparency); } catch (AWTException e) { assert false; } return vi; }
/** * Returns a {@link VolatileImage} with a data layout and color model * compatible with this <code>GraphicsConfiguration</code>. * The returned <code>VolatileImage</code> * may have data that is stored optimally for the underlying graphics * device and may therefore benefit from platform-spe...
Returns a <code>VolatileImage</code> with a data layout and color model compatible with this <code>GraphicsConfiguration</code>. The returned <code>VolatileImage</code> may have data that is stored optimally for the underlying graphics device and may therefore benefit from platform-specific rendering acceleration
createCompatibleVolatileImage
{ "repo_name": "flyzsd/java-code-snippets", "path": "ibm.jdk8/src/java/awt/GraphicsConfiguration.java", "license": "mit", "size": 18926 }
[ "java.awt.image.VolatileImage" ]
import java.awt.image.VolatileImage;
import java.awt.image.*;
[ "java.awt" ]
java.awt;
1,225,423
private static List<Map<String, Object>> getServersWithoutCurrentSize(List<Map<String, Object>> servers) { return Lists.transform( servers, (server) -> { Map<String, Object> newServer = new HashMap<>(server); newServer.put("curr_size", 0); return newServer; ...
static List<Map<String, Object>> function(List<Map<String, Object>> servers) { return Lists.transform( servers, (server) -> { Map<String, Object> newServer = new HashMap<>(server); newServer.put(STR, 0); return newServer; } ); }
/** * curr_size on historicals changes because cluster state is not isolated across different * integration tests, zero it out for consistent test results */
curr_size on historicals changes because cluster state is not isolated across different integration tests, zero it out for consistent test results
getServersWithoutCurrentSize
{ "repo_name": "gianm/druid", "path": "integration-tests/src/test/java/org/apache/druid/tests/security/ITBasicAuthConfigurationTest.java", "license": "apache-2.0", "size": 28501 }
[ "com.google.common.collect.Lists", "java.util.HashMap", "java.util.List", "java.util.Map" ]
import com.google.common.collect.Lists; import java.util.HashMap; import java.util.List; import java.util.Map;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,187,683
Set<Link> getDeviceEgressLinks(DeviceId deviceId) { return seenLinks.keySet().stream() .filter(link -> link.src().deviceId().equals(deviceId)) .filter(link -> seenLinks.get(link)) .filter(link -> isBidirectionalLinkUp(link)) .collect(Collectors...
Set<Link> getDeviceEgressLinks(DeviceId deviceId) { return seenLinks.keySet().stream() .filter(link -> link.src().deviceId().equals(deviceId)) .filter(link -> seenLinks.get(link)) .filter(link -> isBidirectionalLinkUp(link)) .collect(Collectors.toSet()); }
/** * Returns all links that egress from given device that are UP in the * seenLinks store. The returned links are also confirmed to be * bidirectional. * * @param deviceId the device identifier * @return set of egress links from the device */
Returns all links that egress from given device that are UP in the seenLinks store. The returned links are also confirmed to be bidirectional
getDeviceEgressLinks
{ "repo_name": "kuujo/onos", "path": "apps/segmentrouting/app/src/main/java/org/onosproject/segmentrouting/LinkHandler.java", "license": "apache-2.0", "size": 30018 }
[ "java.util.Set", "java.util.stream.Collectors", "org.onosproject.net.DeviceId", "org.onosproject.net.Link" ]
import java.util.Set; import java.util.stream.Collectors; import org.onosproject.net.DeviceId; import org.onosproject.net.Link;
import java.util.*; import java.util.stream.*; import org.onosproject.net.*;
[ "java.util", "org.onosproject.net" ]
java.util; org.onosproject.net;
1,318,806
@Test public void testToString() { final String defaultPrefix = "default"; final String prefixNode1 = "prefix1"; final String prefixNode2 = "prefix2"; final String prefixText = "prefixtext"; getXMLObject().declarePrefix(defaultPrefix, DEFAULT_NAMESPACE); ((XMLNo...
void function() { final String defaultPrefix = STR; final String prefixNode1 = STR; final String prefixNode2 = STR; final String prefixText = STR; getXMLObject().declarePrefix(defaultPrefix, DEFAULT_NAMESPACE); ((XMLNode) getXMLObject().getChildNodes().get(0)).declarePrefix(prefixNode1, NAMESPACE_NODE_1); ((XMLNode) ((...
/** * Build up a string corresponding to what the basic node should look like * serialized, then compare it. * <p> * This is a nasty test but it's gotta be here for regression testing. */
Build up a string corresponding to what the basic node should look like serialized, then compare it. This is a nasty test but it's gotta be here for regression testing
testToString
{ "repo_name": "AlexGilleran/IceSoap", "path": "IceSoapTest/src/test/java/com/alexgilleran/icesoap/xml/test/XMLNodeTest.java", "license": "apache-2.0", "size": 5831 }
[ "com.alexgilleran.icesoap.xml.XMLNode", "com.alexgilleran.icesoap.xml.XMLParentNode", "org.junit.Assert" ]
import com.alexgilleran.icesoap.xml.XMLNode; import com.alexgilleran.icesoap.xml.XMLParentNode; import org.junit.Assert;
import com.alexgilleran.icesoap.xml.*; import org.junit.*;
[ "com.alexgilleran.icesoap", "org.junit" ]
com.alexgilleran.icesoap; org.junit;
1,045,043
public void testQRMBeforePut() { try { HARegionQueue regionqueue = createHARegionQueue("testing"); EventID[] ids = new EventID[10]; for (int i = 0; i < 10; i++) { ids[i] = new EventID(new byte[] { 1 }, 1, i); } //first get the qrm message for the seventh id regionq...
void function() { try { HARegionQueue regionqueue = createHARegionQueue(STR); EventID[] ids = new EventID[10]; for (int i = 0; i < 10; i++) { ids[i] = new EventID(new byte[] { 1 }, 1, i); } regionqueue.removeDispatchedEvents(ids[6]); Conflatable[] cf = new Conflatable[10]; for (int i = 0; i < 10; i++) { cf[i] = new Con...
/** * - send Dispatch message for sequence id 7 - put from sequence id 1 - id 10 - * verify data for 1-7 not there - verify data for 8-10 is there * */
- send Dispatch message for sequence id 7 - put from sequence id 1 - id 10 - verify data for 1-7 not there - verify data for 8-10 is there
testQRMBeforePut
{ "repo_name": "papicella/snappy-store", "path": "gemfire-junit/src/main/java/com/gemstone/gemfire/internal/cache/ha/HARegionQueueJUnitTest.java", "license": "apache-2.0", "size": 72282 }
[ "com.gemstone.gemfire.internal.cache.Conflatable", "com.gemstone.gemfire.internal.cache.EventID", "java.util.Map", "java.util.Set", "junit.framework.Assert" ]
import com.gemstone.gemfire.internal.cache.Conflatable; import com.gemstone.gemfire.internal.cache.EventID; import java.util.Map; import java.util.Set; import junit.framework.Assert;
import com.gemstone.gemfire.internal.cache.*; import java.util.*; import junit.framework.*;
[ "com.gemstone.gemfire", "java.util", "junit.framework" ]
com.gemstone.gemfire; java.util; junit.framework;
450,325
public JarConfiguration setCategoryPropertyOrder(String category, final List<String> propOrder) { if (!caseSensitiveCustomCategories) category = category.toLowerCase(Locale.ENGLISH); getCategory(category).setPropertyOrder(propOrder); return this; } public static clas...
JarConfiguration function(String category, final List<String> propOrder) { if (!caseSensitiveCustomCategories) category = category.toLowerCase(Locale.ENGLISH); getCategory(category).setPropertyOrder(propOrder); return this; } public static class UnicodeInputStreamReader extends Reader { private final InputStreamReader ...
/** * Sets the order that direct child properties of this config category will be written to the config file and will be displayed in * config GUIs. */
Sets the order that direct child properties of this config category will be written to the config file and will be displayed in config GUIs
setCategoryPropertyOrder
{ "repo_name": "OreCruncher/Restructured", "path": "src/main/java/org/blockartistry/mod/Restructured/util/JarConfiguration.java", "license": "mit", "size": 61536 }
[ "java.io.IOException", "java.io.InputStream", "java.io.InputStreamReader", "java.io.PushbackInputStream", "java.io.Reader", "java.util.List", "java.util.Locale" ]
import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PushbackInputStream; import java.io.Reader; import java.util.List; import java.util.Locale;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
254,450
@Test public void getDestinationStatusForFakeMergeAndNonEmptyRoots() throws Exception { fetch = primaryBranch; push = primaryBranch; Files.createDirectories(workdir.resolve("dir")); Files.write(workdir.resolve("dir/file"), "".getBytes(UTF_8)); GitRepository repo = repo().withWorkTree(workdir); ...
void function() throws Exception { fetch = primaryBranch; push = primaryBranch; Files.createDirectories(workdir.resolve("dir")); Files.write(workdir.resolve(STR), "".getBytes(UTF_8)); GitRepository repo = repo().withWorkTree(workdir); repo.add().files(STR).run(); repo.simpleCommand("commitSTR-mSTRfirst commitSTRbranchS...
/** * regression to ensure we don't do: * * git log -- some_path * * This doesn't work for fake merges as the merge is not shown when a path is passed even * with -m. */
regression to ensure we don't do: git log -- some_path This doesn't work for fake merges as the merge is not shown when a path is passed even with -m
getDestinationStatusForFakeMergeAndNonEmptyRoots
{ "repo_name": "google/copybara", "path": "javatests/com/google/copybara/git/GitDestinationTest.java", "license": "apache-2.0", "size": 84713 }
[ "java.nio.file.Files" ]
import java.nio.file.Files;
import java.nio.file.*;
[ "java.nio" ]
java.nio;
1,247,895
public Phonenumber.PhoneNumber getPhoneNumber() { return mCurrentPhoneNumber; }
Phonenumber.PhoneNumber function() { return mCurrentPhoneNumber; }
/** * Get the current phone number * * @return phone number object */
Get the current phone number
getPhoneNumber
{ "repo_name": "noepitome/neon-android", "path": "neon/src/main/java/im/neon/PhoneNumberHandler.java", "license": "apache-2.0", "size": 10099 }
[ "com.google.i18n.phonenumbers.Phonenumber" ]
import com.google.i18n.phonenumbers.Phonenumber;
import com.google.i18n.phonenumbers.*;
[ "com.google.i18n" ]
com.google.i18n;
2,099,739
public static Response toConflictJsonResponse(ModelException mex) { return Response.status(Response.Status.CONFLICT) .entity(toJson(mex)).type(MediaType.APPLICATION_JSON).build(); }
static Response function(ModelException mex) { return Response.status(Response.Status.CONFLICT) .entity(toJson(mex)).type(MediaType.APPLICATION_JSON).build(); }
/** * To be used inside BadRequestException, like this : * throw new BadRequestException(toConflictJsonResponse(e)). * Inspired by JaxrsExceptionHelper * @param t * @return */
To be used inside BadRequestException, like this : throw new BadRequestException(toConflictJsonResponse(e)). Inspired by JaxrsExceptionHelper
toConflictJsonResponse
{ "repo_name": "ozwillo/ozwillo-datacore", "path": "ozwillo-datacore-rest-server/src/main/java/org/oasis/datacore/rest/server/DatacoreApiImpl.java", "license": "agpl-3.0", "size": 31174 }
[ "javax.ws.rs.core.MediaType", "javax.ws.rs.core.Response", "org.oasis.datacore.core.meta.ModelException" ]
import javax.ws.rs.core.MediaType; import javax.ws.rs.core.Response; import org.oasis.datacore.core.meta.ModelException;
import javax.ws.rs.core.*; import org.oasis.datacore.core.meta.*;
[ "javax.ws", "org.oasis.datacore" ]
javax.ws; org.oasis.datacore;
2,491,913
public boolean canReviseOwn() { boolean canReviseOwn = false; try { Site site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); canReviseOwn = SecurityService.unlock( ContentHostingService.AUTH_RESOURCE_WRITE_OWN, site.getReference()); } catch (...
boolean function() { boolean canReviseOwn = false; try { Site site = SiteService.getSite(ToolManager.getCurrentPlacement().getContext()); canReviseOwn = SecurityService.unlock( ContentHostingService.AUTH_RESOURCE_WRITE_OWN, site.getReference()); } catch (IdUnusedException e) { logger.debug(STR); } return canReviseOwn; ...
/** * Check if you have 'content.revise.own' in the site @return * @return true if the user can revise */
Check if you have 'content.revise.own' in the site @return
canReviseOwn
{ "repo_name": "noondaysun/sakai", "path": "content/content-tool/tool/src/java/org/sakaiproject/content/tool/ResourcesAction.java", "license": "apache-2.0", "size": 337685 }
[ "org.sakaiproject.authz.cover.SecurityService", "org.sakaiproject.content.cover.ContentHostingService", "org.sakaiproject.exception.IdUnusedException", "org.sakaiproject.site.api.Site", "org.sakaiproject.site.cover.SiteService", "org.sakaiproject.tool.cover.ToolManager" ]
import org.sakaiproject.authz.cover.SecurityService; import org.sakaiproject.content.cover.ContentHostingService; import org.sakaiproject.exception.IdUnusedException; import org.sakaiproject.site.api.Site; import org.sakaiproject.site.cover.SiteService; import org.sakaiproject.tool.cover.ToolManager;
import org.sakaiproject.authz.cover.*; import org.sakaiproject.content.cover.*; import org.sakaiproject.exception.*; import org.sakaiproject.site.api.*; import org.sakaiproject.site.cover.*; import org.sakaiproject.tool.cover.*;
[ "org.sakaiproject.authz", "org.sakaiproject.content", "org.sakaiproject.exception", "org.sakaiproject.site", "org.sakaiproject.tool" ]
org.sakaiproject.authz; org.sakaiproject.content; org.sakaiproject.exception; org.sakaiproject.site; org.sakaiproject.tool;
2,312,236
ShardSpec getShardSpec(long timestamp, InputRow row);
ShardSpec getShardSpec(long timestamp, InputRow row);
/** * Returns a {@link ShardSpec} for the given timestamp and the inputRow. * The timestamp must be bucketed using {@code GranularitySpec#getQueryGranularity}. */
Returns a <code>ShardSpec</code> for the given timestamp and the inputRow. The timestamp must be bucketed using GranularitySpec#getQueryGranularity
getShardSpec
{ "repo_name": "nishantmonu51/druid", "path": "core/src/main/java/org/apache/druid/timeline/partition/ShardSpecLookup.java", "license": "apache-2.0", "size": 1168 }
[ "org.apache.druid.data.input.InputRow" ]
import org.apache.druid.data.input.InputRow;
import org.apache.druid.data.input.*;
[ "org.apache.druid" ]
org.apache.druid;
2,317,720
@ResourceOperation(resource = Resource.CLUSTER, operation = Operation.MANAGE, target = Target.DISK) void setDiskUsageCriticalPercentage(float criticalPercent);
@ResourceOperation(resource = Resource.CLUSTER, operation = Operation.MANAGE, target = Target.DISK) void setDiskUsageCriticalPercentage(float criticalPercent);
/** * Sets the value of the disk usage critical percentage. * * @param criticalPercent the critical percent */
Sets the value of the disk usage critical percentage
setDiskUsageCriticalPercentage
{ "repo_name": "smanvi-pivotal/geode", "path": "geode-core/src/main/java/org/apache/geode/management/DiskStoreMXBean.java", "license": "apache-2.0", "size": 7321 }
[ "org.apache.geode.management.internal.security.ResourceOperation", "org.apache.geode.security.ResourcePermission" ]
import org.apache.geode.management.internal.security.ResourceOperation; import org.apache.geode.security.ResourcePermission;
import org.apache.geode.management.internal.security.*; import org.apache.geode.security.*;
[ "org.apache.geode" ]
org.apache.geode;
2,408,154
@Override public boolean isFieldExist(String fieldname) { return DataInfo.isFieldExist(this.getType(), fieldname); }
boolean function(String fieldname) { return DataInfo.isFieldExist(this.getType(), fieldname); }
/** * Devuelve verdadero o falso si es que existe un campo o propiedad en el * modelo de dato. * * @param fieldname nombre del campo * @return verdadero si existe el campo en el modelo o falso si no. */
Devuelve verdadero o falso si es que existe un campo o propiedad en el modelo de dato
isFieldExist
{ "repo_name": "jencisopy/JavaBeanStack", "path": "business/src/main/java/org/javabeanstack/datactrl/AbstractDataObject.java", "license": "lgpl-3.0", "size": 65909 }
[ "org.javabeanstack.data.DataInfo" ]
import org.javabeanstack.data.DataInfo;
import org.javabeanstack.data.*;
[ "org.javabeanstack.data" ]
org.javabeanstack.data;
1,339,315
public List<GpodnetTag> getTopTags(int count) throws GpodnetServiceException { URI uri; try { uri = new URI(BASE_SCHEME, BASE_HOST, String.format( "/api/2/tags/%d.json", count), null); } catch (URISyntaxException e1) { e1.printStackTrac...
List<GpodnetTag> function(int count) throws GpodnetServiceException { URI uri; try { uri = new URI(BASE_SCHEME, BASE_HOST, String.format( STR, count), null); } catch (URISyntaxException e1) { e1.printStackTrace(); throw new IllegalStateException(e1); } HttpGet request = new HttpGet(uri); String response = executeReques...
/** * Returns the [count] most used tags. */
Returns the [count] most used tags
getTopTags
{ "repo_name": "eric-stanley/AntennaPod", "path": "src/de/danoeh/antennapod/gpoddernet/GpodnetService.java", "license": "mit", "size": 28085 }
[ "de.danoeh.antennapod.gpoddernet.model.GpodnetTag", "java.net.URISyntaxException", "java.util.ArrayList", "java.util.List", "org.apache.http.client.methods.HttpGet", "org.json.JSONArray", "org.json.JSONException", "org.json.JSONObject" ]
import de.danoeh.antennapod.gpoddernet.model.GpodnetTag; import java.net.URISyntaxException; import java.util.ArrayList; import java.util.List; import org.apache.http.client.methods.HttpGet; import org.json.JSONArray; import org.json.JSONException; import org.json.JSONObject;
import de.danoeh.antennapod.gpoddernet.model.*; import java.net.*; import java.util.*; import org.apache.http.client.methods.*; import org.json.*;
[ "de.danoeh.antennapod", "java.net", "java.util", "org.apache.http", "org.json" ]
de.danoeh.antennapod; java.net; java.util; org.apache.http; org.json;
2,816,436
ChannelBuf setDataView(int index, DataView data);
ChannelBuf setDataView(int index, DataView data);
/** * Sets the {@link DataView} at the specified absolute index in this * buffer. This method does not modify readerIndex or writerIndex * of this buffer. * * @param index The index * @param data The boolean data * @return This stream for chaining */
Sets the <code>DataView</code> at the specified absolute index in this buffer. This method does not modify readerIndex or writerIndex of this buffer
setDataView
{ "repo_name": "Kiskae/SpongeAPI", "path": "src/main/java/org/spongepowered/api/network/ChannelBuf.java", "license": "mit", "size": 16582 }
[ "org.spongepowered.api.data.DataView" ]
import org.spongepowered.api.data.DataView;
import org.spongepowered.api.data.*;
[ "org.spongepowered.api" ]
org.spongepowered.api;
848,989
public UsbCamera startAutomaticCapture(String name, String path) { UsbCamera camera = new UsbCamera(name, path); startAutomaticCapture(camera); return camera; }
UsbCamera function(String name, String path) { UsbCamera camera = new UsbCamera(name, path); startAutomaticCapture(camera); return camera; }
/** * Start automatically capturing images to send to the dashboard. * * @param name The name to give the camera * @param path The device path (e.g. "/dev/video0") of the camera */
Start automatically capturing images to send to the dashboard
startAutomaticCapture
{ "repo_name": "pjreiniger/TempAllWpi", "path": "wpilibj/src/main/java/edu/wpi/first/wpilibj/CameraServer.java", "license": "bsd-3-clause", "size": 24532 }
[ "edu.wpi.cscore.UsbCamera" ]
import edu.wpi.cscore.UsbCamera;
import edu.wpi.cscore.*;
[ "edu.wpi.cscore" ]
edu.wpi.cscore;
1,530,436
protected void paintTextLines(Graphics g, JLabel label, FontMetrics fm) { List<String> lines = getTextLines(label); // Available component height to paint on. int height = getAvailableHeight(label); int textHeight = lines.size() * fm.getHeight(); while (textHeight > height)...
void function(Graphics g, JLabel label, FontMetrics fm) { List<String> lines = getTextLines(label); int height = getAvailableHeight(label); int textHeight = lines.size() * fm.getHeight(); while (textHeight > height) { textHeight -= fm.getHeight(); } paintTextR.height = Math.min(textHeight, height); paintTextR.y = align...
/** * Paint the wrapped text lines. * * @param g * graphics component to paint on * @param label * the label being painted * @param fm * font metrics for current font */
Paint the wrapped text lines
paintTextLines
{ "repo_name": "i2p/i2p.itoopie", "path": "src/net/i2p/itoopie/gui/component/multilinelabel/MultiLineLabelUI.java", "license": "apache-2.0", "size": 20147 }
[ "java.awt.FontMetrics", "java.awt.Graphics", "java.util.Iterator", "java.util.List", "javax.swing.JLabel" ]
import java.awt.FontMetrics; import java.awt.Graphics; import java.util.Iterator; import java.util.List; import javax.swing.JLabel;
import java.awt.*; import java.util.*; import javax.swing.*;
[ "java.awt", "java.util", "javax.swing" ]
java.awt; java.util; javax.swing;
595,446
@Deprecated public void setTargetAddress(final IeeeAddress targetAddress) { this.targetAddress = targetAddress; }
void function(final IeeeAddress targetAddress) { this.targetAddress = targetAddress; }
/** * Sets Target Address. * * @param targetAddress the Target Address * @deprecated as of 1.3.0. Use the parameterised constructor instead to ensure that all mandatory fields are provided. */
Sets Target Address
setTargetAddress
{ "repo_name": "zsmartsystems/com.zsmartsystems.zigbee", "path": "com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/rssilocation/GetLocationDataCommand.java", "license": "epl-1.0", "size": 5390 }
[ "com.zsmartsystems.zigbee.IeeeAddress" ]
import com.zsmartsystems.zigbee.IeeeAddress;
import com.zsmartsystems.zigbee.*;
[ "com.zsmartsystems.zigbee" ]
com.zsmartsystems.zigbee;
2,094,678
if ( ConfigFactory.isValidPath( configPath ) == false ) { throw new IllegalArgumentException( "The give path is not valid." ); } try { final Enumeration keys = config.getConfigProperties(); final Preferences pref = base.node( configPath ); pref.clear(); while ( keys.hasMoreElement...
if ( ConfigFactory.isValidPath( configPath ) == false ) { throw new IllegalArgumentException( STR ); } try { final Enumeration keys = config.getConfigProperties(); final Preferences pref = base.node( configPath ); pref.clear(); while ( keys.hasMoreElements() ) { final String key = (String) keys.nextElement(); final Str...
/** * Stores the given properties on the defined path. * * @param configPath * the path on where to store the properties. * @param config * the properties which should be stored. * @throws ConfigStoreException * if an error occurred. */
Stores the given properties on the defined path
store
{ "repo_name": "EgorZhuk/pentaho-reporting", "path": "engine/extensions/src/main/java/org/pentaho/reporting/engine/classic/extensions/modules/java14config/Java14ConfigStorage.java", "license": "lgpl-2.1", "size": 5379 }
[ "java.util.Enumeration", "java.util.prefs.BackingStoreException", "java.util.prefs.Preferences", "org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigFactory", "org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStoreException" ]
import java.util.Enumeration; import java.util.prefs.BackingStoreException; import java.util.prefs.Preferences; import org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigFactory; import org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.ConfigStoreException;
import java.util.*; import java.util.prefs.*; import org.pentaho.reporting.engine.classic.core.modules.misc.configstore.base.*;
[ "java.util", "org.pentaho.reporting" ]
java.util; org.pentaho.reporting;
2,101,243
@Override public String format(final LogRecord record) { String msg; String threadInfo = Thread.currentThread().getName(); Throwable thrown = record.getThrown(); String clazz = className(record.getSourceClassName()); String where = String.format("[%s] (%s.java:%s)", threa...
String function(final LogRecord record) { String msg; String threadInfo = Thread.currentThread().getName(); Throwable thrown = record.getThrown(); String clazz = className(record.getSourceClassName()); String where = String.format(STR, threadInfo, clazz, record.getSourceMethodName()); where = String.format("%s", where)...
/** * Provide formatted logging strings. * * @param record LogRecord to use. * @return String the formatted output. */
Provide formatted logging strings
format
{ "repo_name": "axkr/symja_android_library", "path": "symja_android_library/matheclipse-external/src/main/java/de/lab4inf/math/L4MLogger.java", "license": "gpl-3.0", "size": 11043 }
[ "java.lang.String", "java.util.logging.LogRecord" ]
import java.lang.String; import java.util.logging.LogRecord;
import java.lang.*; import java.util.logging.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
53,346
private ActiveScan getActiveScan(JSONObject params) throws ApiException { int id = getParam(params, PARAM_SCAN_ID, -1); GenericScanner2 activeScan = null; if (id == -1) { activeScan = controller.getLastScan(); } else { activeScan = controller.getScan(id); } if (activeScan == null) { throw new...
ActiveScan function(JSONObject params) throws ApiException { int id = getParam(params, PARAM_SCAN_ID, -1); GenericScanner2 activeScan = null; if (id == -1) { activeScan = controller.getLastScan(); } else { activeScan = controller.getScan(id); } if (activeScan == null) { throw new ApiException(ApiException.Type.DOES_NOT...
/** * Returns a {@link ActiveScan} from the available active scans or the last active scan. If a scan ID ( * {@link #PARAM_SCAN_ID}) is present in the given {@code params} it will be used to the get the {@code ActiveScan} from the * available active scans, otherwise it's returned the last active scan. * * @pa...
Returns a <code>ActiveScan</code> from the available active scans or the last active scan. If a scan ID ( <code>#PARAM_SCAN_ID</code>) is present in the given params it will be used to the get the ActiveScan from the available active scans, otherwise it's returned the last active scan
getActiveScan
{ "repo_name": "zapbot/zaproxy", "path": "src/org/zaproxy/zap/extension/ascan/ActiveScanAPI.java", "license": "apache-2.0", "size": 49184 }
[ "net.sf.json.JSONObject", "org.zaproxy.zap.extension.api.ApiException", "org.zaproxy.zap.model.GenericScanner2" ]
import net.sf.json.JSONObject; import org.zaproxy.zap.extension.api.ApiException; import org.zaproxy.zap.model.GenericScanner2;
import net.sf.json.*; import org.zaproxy.zap.extension.api.*; import org.zaproxy.zap.model.*;
[ "net.sf.json", "org.zaproxy.zap" ]
net.sf.json; org.zaproxy.zap;
122,010
public void initializePackageContents() { if (isInitialized) return; isInitialized = true; // Initialize package setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); // Create type parameters // Set bounds for type parameters // Add supertypes to classes // Initia...
void function() { if (isInitialized) return; isInitialized = true; setName(eNAME); setNsPrefix(eNS_PREFIX); setNsURI(eNS_URI); initEClass(modelBmodesbmiEClass, ModelBmodesbmi.class, STR, !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); initEReference(getModelBmodesbmi_Head(), this.getHeader(), null, "Head", n...
/** * Complete the initialization of the package and its meta-model. This * method is guarded to have no affect on any invocation but its first. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any invocation but its first.
initializePackageContents
{ "repo_name": "cooked/NDT", "path": "sc.ndt.editor.bmodes.bmi/src-gen/sc/ndt/editor/bmodes/bmodesbmi/impl/BmodesbmiPackageImpl.java", "license": "gpl-3.0", "size": 88911 }
[ "sc.ndt.editor.bmodes.bmodesbmi.Header", "sc.ndt.editor.bmodes.bmodesbmi.ModelBmodesbmi", "sc.ndt.editor.bmodes.bmodesbmi.Section" ]
import sc.ndt.editor.bmodes.bmodesbmi.Header; import sc.ndt.editor.bmodes.bmodesbmi.ModelBmodesbmi; import sc.ndt.editor.bmodes.bmodesbmi.Section;
import sc.ndt.editor.bmodes.bmodesbmi.*;
[ "sc.ndt.editor" ]
sc.ndt.editor;
1,223,461
public final String getPrePlannedCollectionTechnique() throws NitfFormatException { switch (getPrePlannedCollectionTechniqueEncoded()) { case VERTICAL_COLLECTION_TECHNIQUE: return "vertical"; case FORWARD_OBLIQUE_COLLECTION_TECHNIQUE: return "forward o...
final String function() throws NitfFormatException { switch (getPrePlannedCollectionTechniqueEncoded()) { case VERTICAL_COLLECTION_TECHNIQUE: return STR; case FORWARD_OBLIQUE_COLLECTION_TECHNIQUE: return STR; case RIGHT_OBLIQUE_COLLECTION_TECHNIQUE: return STR; case LEFT_OBLIQUE_COLLECTION_TECHNIQUE: return STR; case B...
/** * Get the Pre-Planned Collection Technique (TGT_COLL) decoded. * * <ul> * <li>0 = vertical * <li>1 = forward oblique * <li>2 = right oblique * <li>3 = left oblique * <li>4 = best possible * </ul> * * @return the collection technique as a decoded string, or "unk...
Get the Pre-Planned Collection Technique (TGT_COLL) decoded. 0 = vertical 1 = forward oblique 2 = right oblique 3 = left oblique 4 = best possible
getPrePlannedCollectionTechnique
{ "repo_name": "codice/imaging-nitf", "path": "trewrap/src/main/java/org/codice/imaging/nitf/trewrap/MSTGTA.java", "license": "lgpl-2.1", "size": 17036 }
[ "org.codice.imaging.nitf.core.common.NitfFormatException" ]
import org.codice.imaging.nitf.core.common.NitfFormatException;
import org.codice.imaging.nitf.core.common.*;
[ "org.codice.imaging" ]
org.codice.imaging;
2,538,934
@Override public void setLogWriter(PrintWriter out) { _logWriter = out; } private PrintWriter _logWriter = null; private final ObjectPool<C> _pool;
void function(PrintWriter out) { _logWriter = out; } private PrintWriter _logWriter = null; private final ObjectPool<C> _pool;
/** * Sets my log writer. * @see DataSource#setLogWriter */
Sets my log writer
setLogWriter
{ "repo_name": "plumer/codana", "path": "tomcat_files/8.0.22/PoolingDataSource.java", "license": "mit", "size": 7767 }
[ "java.io.PrintWriter", "org.apache.tomcat.dbcp.pool2.ObjectPool" ]
import java.io.PrintWriter; import org.apache.tomcat.dbcp.pool2.ObjectPool;
import java.io.*; import org.apache.tomcat.dbcp.pool2.*;
[ "java.io", "org.apache.tomcat" ]
java.io; org.apache.tomcat;
1,911,848
public String getID(); /** * <p>Converts the given "layout" attribute to a <code>LayoutManager</code> * instance. The attribute value always starts with the layout identifier * (see {@link #getID()}) followed by optional parameters.</p> * * <p>If the layout converter does not use the "layout" attri...
String function(); /** * <p>Converts the given STR attribute to a <code>LayoutManager</code> * instance. The attribute value always starts with the layout identifier * (see {@link #getID()}) followed by optional parameters.</p> * * <p>If the layout converter does not use the STR attribute, this method * should return <...
/** * Returns the unique identifier of the layout converter. E.g. "flowlayout". * This identifier is used in "layout" attributes and elements to specify the * layout manager. */
Returns the unique identifier of the layout converter. E.g. "flowlayout". This identifier is used in "layout" attributes and elements to specify the layout manager
getID
{ "repo_name": "boyjimeking/paintown", "path": "editor/src/swixml_220/src/org/swixml/LayoutConverter.java", "license": "bsd-3-clause", "size": 5290 }
[ "java.awt.LayoutManager" ]
import java.awt.LayoutManager;
import java.awt.*;
[ "java.awt" ]
java.awt;
269,742
@Test public void testConvenienceFactoriesTypes() throws Exception { assertType(INTEGER, attr("x", INTEGER).build()); assertType(INTEGER, attr("x", INTEGER).value(StarlarkInt.of(42)).build()); assertType(STRING, attr("x", STRING).build()); assertType(STRING, ...
void function() throws Exception { assertType(INTEGER, attr("x", INTEGER).build()); assertType(INTEGER, attr("x", INTEGER).value(StarlarkInt.of(42)).build()); assertType(STRING, attr("x", STRING).build()); assertType(STRING, attr("x", STRING).value("foo").build()); Label label = Label.parseAbsolute(STRxSTRxSTRfooSTRbar...
/** * Tests the "convenience factories" (string, label, etc) for types. */
Tests the "convenience factories" (string, label, etc) for types
testConvenienceFactoriesTypes
{ "repo_name": "davidzchen/bazel", "path": "src/test/java/com/google/devtools/build/lib/packages/AttributeTest.java", "license": "apache-2.0", "size": 12907 }
[ "com.google.devtools.build.lib.cmdline.Label", "com.google.devtools.build.lib.packages.Attribute", "net.starlark.java.eval.StarlarkInt" ]
import com.google.devtools.build.lib.cmdline.Label; import com.google.devtools.build.lib.packages.Attribute; import net.starlark.java.eval.StarlarkInt;
import com.google.devtools.build.lib.cmdline.*; import com.google.devtools.build.lib.packages.*; import net.starlark.java.eval.*;
[ "com.google.devtools", "net.starlark.java" ]
com.google.devtools; net.starlark.java;
2,567,472
public void seekToUs(long positionUs) { lastSeekPositionUs = positionUs; if (isPendingReset()) { // A reset is already pending. We only need to update its position. pendingResetPositionUs = positionUs; return; } // Detect whether the seek is to the start of a chunk that's at least p...
void function(long positionUs) { lastSeekPositionUs = positionUs; if (isPendingReset()) { pendingResetPositionUs = positionUs; return; } BaseMediaChunk seekToMediaChunk = null; for (int i = 0; i < mediaChunks.size(); i++) { BaseMediaChunk mediaChunk = mediaChunks.get(i); long mediaChunkStartTimeUs = mediaChunk.startTim...
/** * Seeks to the specified position in microseconds. * * @param positionUs The seek position in microseconds. */
Seeks to the specified position in microseconds
seekToUs
{ "repo_name": "CzBiX/Telegram", "path": "TMessagesProj/src/main/java/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.java", "license": "gpl-2.0", "size": 30321 }
[ "com.google.android.exoplayer2.source.SampleQueue" ]
import com.google.android.exoplayer2.source.SampleQueue;
import com.google.android.exoplayer2.source.*;
[ "com.google.android" ]
com.google.android;
1,535,746
public void setDocumentAnalyzerClass(Class<? extends Analyzer> theClass) { conf.setClass("sea.document.analyzer", theClass, Analyzer.class); }
void function(Class<? extends Analyzer> theClass) { conf.setClass(STR, theClass, Analyzer.class); }
/** * Set the analyzer class. * * @param theClass * the analyzer class */
Set the analyzer class
setDocumentAnalyzerClass
{ "repo_name": "dongpf/hadoop-0.19.1", "path": "src/contrib/index/src/java/org/apache/hadoop/contrib/index/mapred/IndexUpdateConfiguration.java", "license": "apache-2.0", "size": 8028 }
[ "org.apache.lucene.analysis.Analyzer" ]
import org.apache.lucene.analysis.Analyzer;
import org.apache.lucene.analysis.*;
[ "org.apache.lucene" ]
org.apache.lucene;
2,863,235
public void okPushed( View view ) { Intent intent = getIntent(); intent.putExtra(LibraryConstants.PREFS_KEY_TEXT, lastReadNfcMessage); setResult(Activity.RESULT_OK, intent); finish(); }
void function( View view ) { Intent intent = getIntent(); intent.putExtra(LibraryConstants.PREFS_KEY_TEXT, lastReadNfcMessage); setResult(Activity.RESULT_OK, intent); finish(); }
/** * Ok action. * * @param view parent. */
Ok action
okPushed
{ "repo_name": "gabrielmancilla/mtisig", "path": "geopaparazzilibrary/src/eu/geopaparazzi/library/nfc/NfcIdReaderActivity.java", "license": "gpl-3.0", "size": 6405 }
[ "android.app.Activity", "android.content.Intent", "android.view.View", "eu.geopaparazzi.library.util.LibraryConstants" ]
import android.app.Activity; import android.content.Intent; import android.view.View; import eu.geopaparazzi.library.util.LibraryConstants;
import android.app.*; import android.content.*; import android.view.*; import eu.geopaparazzi.library.util.*;
[ "android.app", "android.content", "android.view", "eu.geopaparazzi.library" ]
android.app; android.content; android.view; eu.geopaparazzi.library;
2,408,389
public void gatherConstructorSignatures(String typeName, Set<String> sigs) { gatherConstructorSignatures(typeName, "", sigs); boolean oneSkipped = false; try { for (int i = 1; true; i++) { String version = String.format("%03d", i); try { gatherConstructorSignatures(typeName, version, sigs); ...
void function(String typeName, Set<String> sigs) { gatherConstructorSignatures(typeName, STR%03d", i); try { gatherConstructorSignatures(typeName, version, sigs); oneSkipped = false; } catch (UnableToLoadClassException e) { if (oneSkipped) throw e; else oneSkipped = true; } } } catch (UnableToLoadClassException e) { } ...
/** * Like gather signatures, but gathers signatures of constructors instead of methods. */
Like gather signatures, but gathers signatures of constructors instead of methods
gatherConstructorSignatures
{ "repo_name": "drunklite/spring-loaded", "path": "springloaded/src/test/java/org/springsource/loaded/testgen/SignatureFinder.java", "license": "apache-2.0", "size": 4837 }
[ "java.util.Set", "org.springsource.loaded.UnableToLoadClassException" ]
import java.util.Set; import org.springsource.loaded.UnableToLoadClassException;
import java.util.*; import org.springsource.loaded.*;
[ "java.util", "org.springsource.loaded" ]
java.util; org.springsource.loaded;
1,230,067
public static ContinuousDailyHDD extractSimpleHDD(final Reader r, final float baseTemperature) throws IOException { if(null == r) { throw new IllegalArgumentException(); } // Wrap in BufferedReader if required. @SuppressWarnings("resource") final BufferedReader br = ...
static ContinuousDailyHDD function(final Reader r, final float baseTemperature) throws IOException { if(null == r) { throw new IllegalArgumentException(); } @SuppressWarnings(STR) final BufferedReader br = (r instanceof BufferedReader) ? ((BufferedReader) r) : new BufferedReader(r); final SortedMap<Integer, Float> map ...
/**Extract simple HDD with specified base temperature; never null. * Does NOT close the Reader. * @param r ASCII CSV file in simple degreedays.net-like format (Date line followed by HDD values); never null * @throws IOException in case of parse error or missing data * * Format accepted (only fi...
Extract simple HDD with specified base temperature; never null. Does NOT close the Reader
extractSimpleHDD
{ "repo_name": "opentrv/opentrv", "path": "javasrc/uk/org/opentrv/hdd/DDNExtractor.java", "license": "apache-2.0", "size": 13349 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.Reader", "java.util.SortedMap", "java.util.TreeMap" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.Reader; import java.util.SortedMap; import java.util.TreeMap;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,455,435
public AzureFirewallNetworkRule withDestinationAddresses(List<String> destinationAddresses) { this.destinationAddresses = destinationAddresses; return this; }
AzureFirewallNetworkRule function(List<String> destinationAddresses) { this.destinationAddresses = destinationAddresses; return this; }
/** * Set list of destination IP addresses. * * @param destinationAddresses the destinationAddresses value to set * @return the AzureFirewallNetworkRule object itself. */
Set list of destination IP addresses
withDestinationAddresses
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2018_08_01/src/main/java/com/microsoft/azure/management/network/v2018_08_01/AzureFirewallNetworkRule.java", "license": "mit", "size": 4494 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
676,538
@OneToMany() @JoinTable( name="resource", joinColumns = { @JoinColumn( name="workactivity") }, inverseJoinColumns = @JoinColumn( name="employee" ) ) @WhereJoinTable(clause="endingdate is null and workactivity is not null") public Set<Employee> getEmployees() { return this.employees; }
@OneToMany() @JoinTable( name=STR, joinColumns = { @JoinColumn( name=STR) }, inverseJoinColumns = @JoinColumn( name=STR ) ) @WhereJoinTable(clause=STR) Set<Employee> function() { return this.employees; }
/** * Get the employees. * * @return the employees */
Get the employees
getEmployees
{ "repo_name": "Esleelkartea/aon-employee", "path": "aonemployee_v2.3.0_src/paquetes descomprimidos/aon.company-2.1.8-sources/com/code/aon/company/WorkActivity.java", "license": "gpl-2.0", "size": 3735 }
[ "com.code.aon.company.resources.Employee", "java.util.Set", "javax.persistence.JoinColumn", "javax.persistence.JoinTable", "javax.persistence.OneToMany", "org.hibernate.annotations.WhereJoinTable" ]
import com.code.aon.company.resources.Employee; import java.util.Set; import javax.persistence.JoinColumn; import javax.persistence.JoinTable; import javax.persistence.OneToMany; import org.hibernate.annotations.WhereJoinTable;
import com.code.aon.company.resources.*; import java.util.*; import javax.persistence.*; import org.hibernate.annotations.*;
[ "com.code.aon", "java.util", "javax.persistence", "org.hibernate.annotations" ]
com.code.aon; java.util; javax.persistence; org.hibernate.annotations;
1,868,441
protected ContentAssetInfoTO writeContentAsset(PipelineContent content, String site, String user, String path, String assetName, InputStream in, int width, int height, boolean createFolders, boolean isPreview, bool...
ContentAssetInfoTO function(PipelineContent content, String site, String user, String path, String assetName, InputStream in, int width, int height, boolean createFolders, boolean isPreview, boolean unlock, boolean isSystemAsset, ResultTO result) throws ServiceLayerException { logger.debug(STR + site + STR + path + STR...
/** * upload content asset to the given path * * @param site * @param path * @param assetName * @param in * input stream to read the asset from * @param width * @param height * @param createFolders * create missing folders? * @param isPreview ...
upload content asset to the given path
writeContentAsset
{ "repo_name": "avasquez614/studio", "path": "src/main/java/org/craftercms/studio/impl/v1/content/pipeline/AssetDmContentProcessor.java", "license": "gpl-3.0", "size": 11787 }
[ "java.io.InputStream", "org.craftercms.studio.api.v1.constant.DmConstants", "org.craftercms.studio.api.v1.content.pipeline.PipelineContent", "org.craftercms.studio.api.v1.exception.ServiceLayerException", "org.craftercms.studio.api.v1.to.ContentAssetInfoTO", "org.craftercms.studio.api.v1.to.ContentItemTO"...
import java.io.InputStream; import org.craftercms.studio.api.v1.constant.DmConstants; import org.craftercms.studio.api.v1.content.pipeline.PipelineContent; import org.craftercms.studio.api.v1.exception.ServiceLayerException; import org.craftercms.studio.api.v1.to.ContentAssetInfoTO; import org.craftercms.studio.api.v1....
import java.io.*; import org.craftercms.studio.api.v1.constant.*; import org.craftercms.studio.api.v1.content.pipeline.*; import org.craftercms.studio.api.v1.exception.*; import org.craftercms.studio.api.v1.to.*; import org.craftercms.studio.impl.v1.util.*;
[ "java.io", "org.craftercms.studio" ]
java.io; org.craftercms.studio;
2,849,399
@Override @NotNull(message = "JSON can't be NULL") public final JsonObject json() throws IOException { return new RtJson(this.request).fetch(); }
@NotNull(message = STR) final JsonObject function() throws IOException { return new RtJson(this.request).fetch(); }
/** * JSON object for this request. * @return Json object * @throws IOException In case of I/O problems */
JSON object for this request
json
{ "repo_name": "cvrebert/typed-github", "path": "src/main/java/com/jcabi/github/RtStatuses.java", "license": "bsd-3-clause", "size": 4799 }
[ "java.io.IOException", "javax.json.JsonObject", "javax.validation.constraints.NotNull" ]
import java.io.IOException; import javax.json.JsonObject; import javax.validation.constraints.NotNull;
import java.io.*; import javax.json.*; import javax.validation.constraints.*;
[ "java.io", "javax.json", "javax.validation" ]
java.io; javax.json; javax.validation;
1,006,274
private void addChangeHandlerEvent(ListBox aggFuncListBox, ListBox functionListBox) { functionListBox.addChangeHandler(event -> onListBoxChange()); aggFuncListBox.addChangeHandler(event -> onListBoxChange()); }
void function(ListBox aggFuncListBox, ListBox functionListBox) { functionListBox.addChangeHandler(event -> onListBoxChange()); aggFuncListBox.addChangeHandler(event -> onListBoxChange()); }
/** * Add Change Event Handler to the List Boxes. * @param aggFuncListBox * @param functionListBox */
Add Change Event Handler to the List Boxes
addChangeHandlerEvent
{ "repo_name": "MeasureAuthoringTool/MeasureAuthoringTool_Release", "path": "mat/src/main/java/mat/client/populationworkspace/CQLMeasureObservationDetailView.java", "license": "cc0-1.0", "size": 13336 }
[ "org.gwtbootstrap3.client.ui.ListBox" ]
import org.gwtbootstrap3.client.ui.ListBox;
import org.gwtbootstrap3.client.ui.*;
[ "org.gwtbootstrap3.client" ]
org.gwtbootstrap3.client;
1,687,710
protected void startUp() { deviceManager.addListener(this); floodlightProvider.addOFMessageListener(OFType.PACKET_IN, this); }
void function() { deviceManager.addListener(this); floodlightProvider.addOFMessageListener(OFType.PACKET_IN, this); }
/** * Adds a listener for devicemanager and registers for PacketIns. */
Adds a listener for devicemanager and registers for PacketIns
startUp
{ "repo_name": "CodEnFisH/palantir", "path": "floodlight/src/main/java/net/floodlightcontroller/routing/ForwardingBase.java", "license": "apache-2.0", "size": 26867 }
[ "org.openflow.protocol.OFType" ]
import org.openflow.protocol.OFType;
import org.openflow.protocol.*;
[ "org.openflow.protocol" ]
org.openflow.protocol;
1,682,890
Assert.fail( "Test 'ProbandService_getProbandGroupListTest.testSuccessPath()}' not implemented." ); }
Assert.fail( STR ); }
/** * Test succes path for service method <code>getProbandGroupList</code> * * Tests expected behaviour of service method. */
Test succes path for service method <code>getProbandGroupList</code> Tests expected behaviour of service method
testSuccessPath
{ "repo_name": "phoenixctms/ctsms", "path": "core/src/test/java/org/phoenixctms/ctsms/service/proband/test/ProbandService_getProbandGroupListTest.java", "license": "lgpl-2.1", "size": 1302 }
[ "org.testng.Assert" ]
import org.testng.Assert;
import org.testng.*;
[ "org.testng" ]
org.testng;
204,197
public void addAttribute( final Object key, final Object attr ) { if (attributes == null) { attributes = new HashMap<>(3); } attributes.put(key, attr); }
void function( final Object key, final Object attr ) { if (attributes == null) { attributes = new HashMap<>(3); } attributes.put(key, attr); }
/** Add an attribute to an instruction handle. * * @param key the key object to store/retrieve the attribute * @param attr the attribute to associate with this handle */
Add an attribute to an instruction handle
addAttribute
{ "repo_name": "mirkosertic/Bytecoder", "path": "classlib/java.xml/src/main/resources/META-INF/modules/java.xml/classes/com/sun/org/apache/bcel/internal/generic/InstructionHandle.java", "license": "apache-2.0", "size": 8878 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
806,372
public final void testGetB() { ECFieldF2m f = new ECFieldF2m(5); BigInteger a = BigInteger.valueOf(5L); BigInteger b = BigInteger.valueOf(19L); EllipticCurve c = new EllipticCurve(f, a, b); assertEquals(b, c.getB()); assertSame(b, c.getB()); }
final void function() { ECFieldF2m f = new ECFieldF2m(5); BigInteger a = BigInteger.valueOf(5L); BigInteger b = BigInteger.valueOf(19L); EllipticCurve c = new EllipticCurve(f, a, b); assertEquals(b, c.getB()); assertSame(b, c.getB()); }
/** * Test for <code>getB()</code> method<br> * Assertion: returns coefficient <code>b</code><br> * Test preconditions: <code>ECFieldF2m</code> instance * created using valid parameters<br> * Expected: must return coefficient <code>b</code> which is equal * to the one passed to the constru...
Test for <code>getB()</code> method Assertion: returns coefficient <code>b</code> Test preconditions: <code>ECFieldF2m</code> instance created using valid parameters Expected: must return coefficient <code>b</code> which is equal to the one passed to the constructor; (both must refer the same object)
testGetB
{ "repo_name": "AdmireTheDistance/android_libcore", "path": "luni/src/test/java/tests/security/spec/EllipticCurveTest.java", "license": "gpl-2.0", "size": 24635 }
[ "java.math.BigInteger", "java.security.spec.ECFieldF2m", "java.security.spec.EllipticCurve" ]
import java.math.BigInteger; import java.security.spec.ECFieldF2m; import java.security.spec.EllipticCurve;
import java.math.*; import java.security.spec.*;
[ "java.math", "java.security" ]
java.math; java.security;
612,461
public String[] convertTypeNamesToSigs(char[][] typeNames) { if (typeNames == null) return CharOperation.NO_STRINGS; int n = typeNames.length; if (n == 0) return CharOperation.NO_STRINGS; String[] typeSigs = new String[n]; for (int i = 0; i < n; ++i) { char[] typeSig = Signature.createCharArrayTyp...
String[] function(char[][] typeNames) { if (typeNames == null) return CharOperation.NO_STRINGS; int n = typeNames.length; if (n == 0) return CharOperation.NO_STRINGS; String[] typeSigs = new String[n]; for (int i = 0; i < n; ++i) { char[] typeSig = Signature.createCharArrayTypeSignature(typeNames[i], false); StringBuff...
/** * NOT API, public only for access by Unit tests. * Converts these type names to unqualified signatures. This needs to be done in order to be consistent * with the way the source range is retrieved. * @see SourceMapper#getUnqualifiedMethodHandle * @see Signature */
NOT API, public only for access by Unit tests. Converts these type names to unqualified signatures. This needs to be done in order to be consistent with the way the source range is retrieved
convertTypeNamesToSigs
{ "repo_name": "elucash/eclipse-oxygen", "path": "org.eclipse.jdt.core/src/org/eclipse/jdt/internal/core/SourceMapper.java", "license": "epl-1.0", "size": 55825 }
[ "org.eclipse.jdt.core.Signature", "org.eclipse.jdt.core.compiler.CharOperation" ]
import org.eclipse.jdt.core.Signature; import org.eclipse.jdt.core.compiler.CharOperation;
import org.eclipse.jdt.core.*; import org.eclipse.jdt.core.compiler.*;
[ "org.eclipse.jdt" ]
org.eclipse.jdt;
520,352
public static <T extends Object> List<T> asOrderedSet(Set<T> self) { return OclCollections.asOrderedSet(self); }
static <T extends Object> List<T> function(Set<T> self) { return OclCollections.asOrderedSet(self); }
/** * <p> * Returns an OrderedSet that contains all the elements from self, with * duplicates removed, in an order dependent on the particular concrete * collection type. * </p> * * @param self * The {@link Set} representing self. * @return An OrderedSet that contains all the elem...
Returns an OrderedSet that contains all the elements from self, with duplicates removed, in an order dependent on the particular concrete collection type.
asOrderedSet
{ "repo_name": "dresden-ocl/dresdenocl", "path": "plugins/org.dresdenocl.tools.codegen.ocl2java.types/src/org/dresdenocl/tools/codegen/ocl2java/types/util/OclSets.java", "license": "lgpl-3.0", "size": 28073 }
[ "java.util.List", "java.util.Set" ]
import java.util.List; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,183,682
public Protocol1BrickletName getProtocol1BrickletName(char port) throws TimeoutException, NotConnectedException { ByteBuffer bb = ipcon.createRequestPacket((byte)9, FUNCTION_GET_PROTOCOL1_BRICKLET_NAME, this); bb.put((byte)port); byte[] response = sendRequest(bb.array()); bb = ByteBuffer.wrap(response, 8, ...
Protocol1BrickletName function(char port) throws TimeoutException, NotConnectedException { ByteBuffer bb = ipcon.createRequestPacket((byte)9, FUNCTION_GET_PROTOCOL1_BRICKLET_NAME, this); bb.put((byte)port); byte[] response = sendRequest(bb.array()); bb = ByteBuffer.wrap(response, 8, response.length - 8); bb.order(ByteO...
/** * Returns the firmware and protocol version and the name of the Bricklet for a * given port. * * This functions sole purpose is to allow automatic flashing of v1.x.y Bricklet * plugins. * * .. versionadded:: 2.0.0~(Firmware) */
Returns the firmware and protocol version and the name of the Bricklet for a given port. This functions sole purpose is to allow automatic flashing of v1.x.y Bricklet plugins. .. versionadded:: 2.0.0~(Firmware)
getProtocol1BrickletName
{ "repo_name": "jaggr2/ch.bfh.fbi.mobiComp.17herz", "path": "com.tinkerforge/src/com/tinkerforge/BrickMaster.java", "license": "apache-2.0", "size": 85810 }
[ "java.nio.ByteBuffer", "java.nio.ByteOrder" ]
import java.nio.ByteBuffer; import java.nio.ByteOrder;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,709,362
@Override public void appWasDownloaded(long galleryId) { GallerySettings settings = loadGallerySettings(); galleryStorageIo.incrementDownloads(galleryId); } /** * Returns the comments for an app * @param galleryId gallery ID as received by * {@link #getRecentGalleryApps()}
void function(long galleryId) { GallerySettings settings = loadGallerySettings(); galleryStorageIo.incrementDownloads(galleryId); } /** * Returns the comments for an app * @param galleryId gallery ID as received by * {@link #getRecentGalleryApps()}
/** * record fact that app was downloaded * @param galleryId id of app that was downloaded */
record fact that app was downloaded
appWasDownloaded
{ "repo_name": "ram8647/appinventor-sources", "path": "appinventor/appengine/src/com/google/appinventor/server/GalleryServiceImpl.java", "license": "apache-2.0", "size": 24408 }
[ "com.google.appinventor.shared.rpc.project.GallerySettings" ]
import com.google.appinventor.shared.rpc.project.GallerySettings;
import com.google.appinventor.shared.rpc.project.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,777,607
@Override public T visitRuleModifiers(@NotNull ANTLRv4Parser.RuleModifiersContext ctx) { return visitChildren(ctx); }
@Override public T visitRuleModifiers(@NotNull ANTLRv4Parser.RuleModifiersContext ctx) { return visitChildren(ctx); }
/** * {@inheritDoc} * * <p>The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.</p> */
The default implementation returns the result of calling <code>#visitChildren</code> on ctx
visitOption
{ "repo_name": "ajosephau/generic_multiobjective_superoptimizer", "path": "src/org/gso/antlrv4parser/ANTLRv4ParserBaseVisitor.java", "license": "gpl-2.0", "size": 15727 }
[ "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;
971,851
public static String getName( ASN1ObjectIdentifier oid) { return (String)names.get(oid); }
static String function( ASN1ObjectIdentifier oid) { return (String)names.get(oid); }
/** * return the named curve name represented by the given object identifier. */
return the named curve name represented by the given object identifier
getName
{ "repo_name": "onessimofalconi/bc-java", "path": "core/src/main/java/org/bouncycastle/asn1/teletrust/TeleTrusTNamedCurves.java", "license": "mit", "size": 19936 }
[ "org.bouncycastle.asn1.ASN1ObjectIdentifier" ]
import org.bouncycastle.asn1.ASN1ObjectIdentifier;
import org.bouncycastle.asn1.*;
[ "org.bouncycastle.asn1" ]
org.bouncycastle.asn1;
122,384
public Frame getFrame(final IERSConventions conventions, final boolean simpleEOP) throws OrekitException { throw new OrekitException(OrekitMessages.CCSDS_INVALID_FRAME, toString()); }
Frame function(final IERSConventions conventions, final boolean simpleEOP) throws OrekitException { throw new OrekitException(OrekitMessages.CCSDS_INVALID_FRAME, toString()); }
/** * Get the frame corresponding to the CCSDS constant. * @param conventions IERS conventions to use * @param simpleEOP if true, tidal effects are ignored when interpolating EOP * @return frame corresponding to the CCSDS constant * @exception OrekitException if the frame cannot be retrieved or...
Get the frame corresponding to the CCSDS constant
getFrame
{ "repo_name": "ProjectPersephone/Orekit", "path": "src/main/java/org/orekit/files/ccsds/CCSDSFrame.java", "license": "apache-2.0", "size": 8354 }
[ "org.orekit.errors.OrekitException", "org.orekit.errors.OrekitMessages", "org.orekit.frames.Frame", "org.orekit.utils.IERSConventions" ]
import org.orekit.errors.OrekitException; import org.orekit.errors.OrekitMessages; import org.orekit.frames.Frame; import org.orekit.utils.IERSConventions;
import org.orekit.errors.*; import org.orekit.frames.*; import org.orekit.utils.*;
[ "org.orekit.errors", "org.orekit.frames", "org.orekit.utils" ]
org.orekit.errors; org.orekit.frames; org.orekit.utils;
788,326
public static BufferedImage readImage(final File imageFile) { if (imageFile == null) { throw new RuntimeException("Image file is null"); } try { BufferedImage img = ImageIO.read(imageFile); if (img == null) { throw new RuntimeException("...
static BufferedImage function(final File imageFile) { if (imageFile == null) { throw new RuntimeException(STR); } try { BufferedImage img = ImageIO.read(imageFile); if (img == null) { throw new RuntimeException(STR + imageFile); } return img; } catch (IOException OutOfMemoryError e) { Log.error(STR + imageFile.getAbsol...
/** * Lodads an image from the provided image file. If the passed in file is null a RuntimeException is thrown. If the * image file cannot be read, a RuntimeException is also thrown. * @param imageFile * @return */
Lodads an image from the provided image file. If the passed in file is null a RuntimeException is thrown. If the image file cannot be read, a RuntimeException is also thrown
readImage
{ "repo_name": "ikromin/jphotoframe", "path": "src/main/java/net/igorkromin/jphotoframe/img/ImageUtil.java", "license": "gpl-2.0", "size": 4033 }
[ "java.awt.image.BufferedImage", "java.io.File", "java.io.IOException", "javax.imageio.ImageIO", "net.igorkromin.jphotoframe.Log" ]
import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; import net.igorkromin.jphotoframe.Log;
import java.awt.image.*; import java.io.*; import javax.imageio.*; import net.igorkromin.jphotoframe.*;
[ "java.awt", "java.io", "javax.imageio", "net.igorkromin.jphotoframe" ]
java.awt; java.io; javax.imageio; net.igorkromin.jphotoframe;
2,643,370
synchronized void afterRename(IFileSystemArtifact artifact) throws VilException { List<VilException> errors = new ArrayList<VilException>(); scanAll(artifact.getPath().getAbsolutePath(), 0, ProgressObserver.NO_OBSERVER, null, errors); // path cache happens automatically }
synchronized void afterRename(IFileSystemArtifact artifact) throws VilException { List<VilException> errors = new ArrayList<VilException>(); scanAll(artifact.getPath().getAbsolutePath(), 0, ProgressObserver.NO_OBSERVER, null, errors); }
/** * Called after rename in order to create the changed artifacts. * * @param artifact the renamed artifact * @throws VilException in case of problems obtaining the path */
Called after rename in order to create the changed artifacts
afterRename
{ "repo_name": "SSEHUB/EASyProducer", "path": "Plugins/Instantiation/de.uni_hildesheim.sse.easy.instantiatorCore/src/net/ssehub/easy/instantiation/core/model/artifactModel/ArtifactModel.java", "license": "apache-2.0", "size": 21106 }
[ "java.util.ArrayList", "java.util.List", "net.ssehub.easy.basics.progress.ProgressObserver", "net.ssehub.easy.instantiation.core.model.common.VilException" ]
import java.util.ArrayList; import java.util.List; import net.ssehub.easy.basics.progress.ProgressObserver; import net.ssehub.easy.instantiation.core.model.common.VilException;
import java.util.*; import net.ssehub.easy.basics.progress.*; import net.ssehub.easy.instantiation.core.model.common.*;
[ "java.util", "net.ssehub.easy" ]
java.util; net.ssehub.easy;
1,068,425
public void setLongPollTimeout(int longPollTimeout) { Assert.isTrue(longPollTimeout > 0, "LongPollTimeout must be a positive value"); this.longPollTimeout = longPollTimeout; }
void function(int longPollTimeout) { Assert.isTrue(longPollTimeout > 0, STR); this.longPollTimeout = longPollTimeout; }
/** * Set the long poll timeout for the server. * @param longPollTimeout the long poll timeout in milliseconds */
Set the long poll timeout for the server
setLongPollTimeout
{ "repo_name": "mabernardo/spring-boot", "path": "spring-boot-devtools/src/main/java/org/springframework/boot/devtools/tunnel/server/HttpTunnelServer.java", "license": "apache-2.0", "size": 14184 }
[ "org.springframework.util.Assert" ]
import org.springframework.util.Assert;
import org.springframework.util.*;
[ "org.springframework.util" ]
org.springframework.util;
2,071,066
static InetAddress createHostNameFromIPAddress(String ipAddressString) throws UnknownHostException { InetAddress address = null; if (Inet6Util.isValidIPV4Address(ipAddressString)) { byte[] byteAddress = new byte[4]; String[] parts = ipAddressString.split("\\.");...
static InetAddress createHostNameFromIPAddress(String ipAddressString) throws UnknownHostException { InetAddress address = null; if (Inet6Util.isValidIPV4Address(ipAddressString)) { byte[] byteAddress = new byte[4]; String[] parts = ipAddressString.split("\\."); int length = parts.length; if (length == 1) { long value ...
/** * Creates an InetAddress based on the {@code ipAddressString}. No error * handling is performed here. */
Creates an InetAddress based on the ipAddressString. No error handling is performed here
createHostNameFromIPAddress
{ "repo_name": "freeVM/freeVM", "path": "enhanced/java/classlib/modules/luni/src/main/java/java/net/InetAddress.java", "license": "apache-2.0", "size": 50643 }
[ "java.util.ArrayList", "java.util.StringTokenizer", "org.apache.harmony.luni.util.Inet6Util" ]
import java.util.ArrayList; import java.util.StringTokenizer; import org.apache.harmony.luni.util.Inet6Util;
import java.util.*; import org.apache.harmony.luni.util.*;
[ "java.util", "org.apache.harmony" ]
java.util; org.apache.harmony;
2,518,001
protected void sendDispositionHeader(OutputStream out) throws IOException { out.write(CONTENT_DISPOSITION_BYTES); out.write(QUOTE_BYTES); out.write(MultipartEncodingUtil.getAsciiBytes(getName())); out.write(QUOTE_BYTES); }
void function(OutputStream out) throws IOException { out.write(CONTENT_DISPOSITION_BYTES); out.write(QUOTE_BYTES); out.write(MultipartEncodingUtil.getAsciiBytes(getName())); out.write(QUOTE_BYTES); }
/** * Write the content disposition header to the specified output stream * * @param out The output stream * @throws IOException If an IO problem occurs. */
Write the content disposition header to the specified output stream
sendDispositionHeader
{ "repo_name": "jprante/elasticsearch-client", "path": "elasticsearch-client-http-netty/src/main/java/com/ning/http/multipart/Part.java", "license": "apache-2.0", "size": 13829 }
[ "java.io.IOException", "java.io.OutputStream" ]
import java.io.IOException; import java.io.OutputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,340,427
@Test public void testFailsWithRangeOfOneAndTwoNullValues() { // create legal range String[] range = new String[] { "item2" }; // create matcher with range matcher = new IsDistributedAcrossRange<String>(Arrays.asList(range)); // create actual values String[] actualValues = new String[] { nu...
void function() { String[] range = new String[] { "item2" }; matcher = new IsDistributedAcrossRange<String>(Arrays.asList(range)); String[] actualValues = new String[] { null, null }; assertFalse(matcher.matches(Arrays.asList(actualValues))); }
/** * Test that matcher fails with range of one value and two null values in * matched collection. */
Test that matcher fails with range of one value and two null values in matched collection
testFailsWithRangeOfOneAndTwoNullValues
{ "repo_name": "athrane/pineapple", "path": "support/pineapple-hamcrest-support/src/test/java/com/alpha/pineapple/test/matchers/DistributedAcrossRangeTest.java", "license": "gpl-3.0", "size": 13724 }
[ "java.util.Arrays", "org.junit.Assert" ]
import java.util.Arrays; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
800,311
public List<BindingSet> querySPARQLTuples(String query, boolean includeInferred) { Query q = repo.getConnection().prepareQuery(query); q.setIncludeInferred(includeInferred); if (!(q instanceof TupleQuery)) { throw new IllegalArgumentException("SPARQL query is not a tuple query."); } QueryResultCollect...
List<BindingSet> function(String query, boolean includeInferred) { Query q = repo.getConnection().prepareQuery(query); q.setIncludeInferred(includeInferred); if (!(q instanceof TupleQuery)) { throw new IllegalArgumentException(STR); } QueryResultCollector resultCollector = new QueryResultCollector(); ((TupleQuery) q).e...
/** * Queries triple store and returns results. * * Depending on the type of the query the results will be as follows: * * TupleQuery: JSON * GraphQuery: N-Triples * BooleanQuery: Plain text * * @param query * @param includeInferred * @return */
Queries triple store and returns results. Depending on the type of the query the results will be as follows: TupleQuery: JSON GraphQuery: N-Triples BooleanQuery: Plain text
querySPARQLTuples
{ "repo_name": "JulianSchuette/secunity", "path": "webapp/secunity-backend/src/main/java/de/fhg/aisec/secunity/db/TripleStore.java", "license": "mit", "size": 20835 }
[ "java.util.List", "org.openrdf.query.BindingSet", "org.openrdf.query.Query", "org.openrdf.query.TupleQuery", "org.openrdf.query.resultio.helpers.QueryResultCollector" ]
import java.util.List; import org.openrdf.query.BindingSet; import org.openrdf.query.Query; import org.openrdf.query.TupleQuery; import org.openrdf.query.resultio.helpers.QueryResultCollector;
import java.util.*; import org.openrdf.query.*; import org.openrdf.query.resultio.helpers.*;
[ "java.util", "org.openrdf.query" ]
java.util; org.openrdf.query;
2,904,385
private boolean createBucket(String bucketName) { CloseableHttpClient httpClient = HttpClientBuilder.create().build(); try { HttpPost httpPost = new HttpPost("http://localhost:" + _couchbaseTestServer.getPort() + "/pools/default/buckets"); List<NameValuePair> params = new ArrayList<>(2); par...
boolean function(String bucketName) { CloseableHttpClient httpClient = HttpClientBuilder.create().build(); try { HttpPost httpPost = new HttpPost(STRbucketTypeSTRcouchbaseSTRnameSTRauthTypeSTRsaslSTRramQuotaMBSTR200STRUTF-8STRFailed to create bucket {}", bucketName, e); return false; } }
/** * Implement the equivalent of: * curl -XPOST -u Administrator:password localhost:httpPort/pools/default/buckets \ -d bucketType=couchbase \ * -d name={@param bucketName} -d authType=sasl -d ramQuotaMB=200 **/
Implement the equivalent of: curl -XPOST -u Administrator:password localhost:httpPort/pools/default/buckets \ -d bucketType=couchbase \ -d name=bucketName -d authType=sasl -d ramQuotaMB=200
createBucket
{ "repo_name": "pcadabam/gobblin", "path": "gobblin-modules/gobblin-couchbase/src/test/java/org/apache/gobblin/couchbase/writer/CouchbaseWriterTest.java", "license": "apache-2.0", "size": 21719 }
[ "org.apache.http.client.methods.HttpPost", "org.apache.http.impl.client.CloseableHttpClient", "org.apache.http.impl.client.HttpClientBuilder" ]
import org.apache.http.client.methods.HttpPost; import org.apache.http.impl.client.CloseableHttpClient; import org.apache.http.impl.client.HttpClientBuilder;
import org.apache.http.client.methods.*; import org.apache.http.impl.client.*;
[ "org.apache.http" ]
org.apache.http;
1,467,054
@Override public boolean alarm() { HttpPost post; if (mThread == null) return true; String threadName = mThread.getName(); // Synchronize here so that we are guaranteed to have valid mPendingPost and mPostLock // executePostWithTimeout (which executes the HttpPost) also ...
boolean function() { HttpPost post; if (mThread == null) return true; String threadName = mThread.getName(); synchronized(getSynchronizer()) { if (mMailbox.mType == Mailbox.TYPE_EAS_ACCOUNT_MAILBOX) { userLog(STR); if (mHttpConn != null) { mPostAborted = true; mHttpConn.disconnect(); } return true; } post = mPendingPos...
/** * Try to wake up a sync thread that is waiting on an HttpClient POST and has waited past its * socket timeout without having thrown an Exception * * @return true if the POST was successfully stopped; false if we've failed and interrupted * the thread */
Try to wake up a sync thread that is waiting on an HttpClient POST and has waited past its socket timeout without having thrown an Exception
alarm
{ "repo_name": "rex-xxx/mt6572_x201", "path": "packages/apps/Exchange/exchange2/src/com/android/exchange/EasSyncService.java", "license": "gpl-2.0", "size": 120516 }
[ "com.android.emailcommon.Logging", "com.android.emailcommon.provider.Mailbox", "java.lang.Thread", "org.apache.http.client.methods.HttpPost" ]
import com.android.emailcommon.Logging; import com.android.emailcommon.provider.Mailbox; import java.lang.Thread; import org.apache.http.client.methods.HttpPost;
import com.android.emailcommon.*; import com.android.emailcommon.provider.*; import java.lang.*; import org.apache.http.client.methods.*;
[ "com.android.emailcommon", "java.lang", "org.apache.http" ]
com.android.emailcommon; java.lang; org.apache.http;
213,237
@Override public void onStart() { super.onStart(); getSupportActionBar().setTitle(R.string.mode_me2me); // Load any previously-selected account and recents from Preferences. SharedPreferences prefs = getPreferences(MODE_PRIVATE); String selected = prefs.getString(PREFE...
void function() { super.onStart(); getSupportActionBar().setTitle(R.string.mode_me2me); SharedPreferences prefs = getPreferences(MODE_PRIVATE); String selected = prefs.getString(PREFERENCE_SELECTED_ACCOUNT, null); ArrayList<String> recents = new ArrayList<String>(); for (int i = 0;; i++) { String prefName = PREFERENCE_...
/** * Called when the activity becomes visible. This happens on initial launch and whenever the * user switches to the activity, for example, by using the window-switcher or when coming from * the device's lock screen. */
Called when the activity becomes visible. This happens on initial launch and whenever the user switches to the activity, for example, by using the window-switcher or when coming from the device's lock screen
onStart
{ "repo_name": "scheib/chromium", "path": "remoting/android/java/src/org/chromium/chromoting/Chromoting.java", "license": "bsd-3-clause", "size": 29872 }
[ "android.content.SharedPreferences", "java.util.ArrayList" ]
import android.content.SharedPreferences; import java.util.ArrayList;
import android.content.*; import java.util.*;
[ "android.content", "java.util" ]
android.content; java.util;
1,060,042
public List<String> getAllTemplates(){ return templateList; }
List<String> function(){ return templateList; }
/** * get all templates. * @return templates list */
get all templates
getAllTemplates
{ "repo_name": "Hasimir/dita-ot", "path": "src/main/java/org/dita/dost/platform/Features.java", "license": "apache-2.0", "size": 5432 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,124,583
private void createExportedBatchClassFolder(final BatchSchemaService batchSchemaService, final String imageMagickBaseFolderParam, final String isSearchSampleNameParam, final BatchClass batchClass, final String tempFolderLocation) throws IOException { File copiedFolder = new File(tempFolderLocation); if (cop...
void function(final BatchSchemaService batchSchemaService, final String imageMagickBaseFolderParam, final String isSearchSampleNameParam, final BatchClass batchClass, final String tempFolderLocation) throws IOException { File copiedFolder = new File(tempFolderLocation); if (copiedFolder.exists()) { copiedFolder.delete(...
/** * This method copies the exported batch class to the download folder. * * @param batchSchemaService {@link BatchSchemaService} instance of batch schema service * @param imageMagickBaseFolderParam {@link String} the parameter value of checkbox for image magick base folder * @param isSearchSampleNameParam ...
This method copies the exported batch class to the download folder
createExportedBatchClassFolder
{ "repo_name": "ungerik/ephesoft", "path": "Ephesoft_Community_Release_4.0.2.0/source/gxt/gxt-batch-instance/src/main/java/com/ephesoft/gxt/batchinstance/server/CopyTroubleshootingArtifacts.java", "license": "agpl-3.0", "size": 30124 }
[ "com.ephesoft.dcma.batch.service.BatchSchemaService", "com.ephesoft.dcma.da.domain.BatchClass", "com.ephesoft.dcma.da.domain.BatchInstance", "com.ephesoft.dcma.util.EphesoftStringUtil", "com.ephesoft.dcma.util.FileUtils", "com.ephesoft.gxt.core.server.BatchClassUtil", "java.io.File", "java.io.FileNotF...
import com.ephesoft.dcma.batch.service.BatchSchemaService; import com.ephesoft.dcma.da.domain.BatchClass; import com.ephesoft.dcma.da.domain.BatchInstance; import com.ephesoft.dcma.util.EphesoftStringUtil; import com.ephesoft.dcma.util.FileUtils; import com.ephesoft.gxt.core.server.BatchClassUtil; import java.io.File; ...
import com.ephesoft.dcma.batch.service.*; import com.ephesoft.dcma.da.domain.*; import com.ephesoft.dcma.util.*; import com.ephesoft.gxt.core.server.*; import java.io.*; import java.util.*; import org.apache.commons.io.*; import org.apache.commons.lang.*;
[ "com.ephesoft.dcma", "com.ephesoft.gxt", "java.io", "java.util", "org.apache.commons" ]
com.ephesoft.dcma; com.ephesoft.gxt; java.io; java.util; org.apache.commons;
16,418
if (detector == null) { // retrieve the language database embedded in the jar // load the models inside an array then put them in // the library String[] models = new String[profiles.length]; for (int i = 0; i < profiles.length; i++) { ...
if (detector == null) { String[] models = new String[profiles.length]; for (int i = 0; i < profiles.length; i++) { InputStream s = getClass().getClassLoader(). getResourceAsStream(STR + profiles[i]); try { models[i] = IOUtils.toString(s, "UTF-8"); } catch (IOException ex) { Logger.getLogger(CybozuLanguageDetectorAnnota...
/** * Wraps the Cybozu lybrary and detects the language over a specified * text. * * @param text the text to analyze. * @return the code of the language detected * @throws LangDetectException when the model can't be loaded */
Wraps the Cybozu lybrary and detects the language over a specified text
detect
{ "repo_name": "ailab-uniud/distiller-CORE", "path": "src/main/java/it/uniud/ailab/dcore/wrappers/external/CybozuLanguageDetectorAnnotator.java", "license": "gpl-2.0", "size": 4719 }
[ "com.cybozu.labs.langdetect.DetectorFactory", "java.io.IOException", "java.io.InputStream", "java.util.Arrays", "java.util.logging.Level", "java.util.logging.Logger", "org.apache.commons.io.IOUtils" ]
import com.cybozu.labs.langdetect.DetectorFactory; import java.io.IOException; import java.io.InputStream; import java.util.Arrays; import java.util.logging.Level; import java.util.logging.Logger; import org.apache.commons.io.IOUtils;
import com.cybozu.labs.langdetect.*; import java.io.*; import java.util.*; import java.util.logging.*; import org.apache.commons.io.*;
[ "com.cybozu.labs", "java.io", "java.util", "org.apache.commons" ]
com.cybozu.labs; java.io; java.util; org.apache.commons;
1,529,136
public DiskDao getDiskDao() { return getDao(DiskDao.class); }
DiskDao function() { return getDao(DiskDao.class); }
/** * Returns the singleton instance of {@link DiskDao}. * * @return the dao */
Returns the singleton instance of <code>DiskDao</code>
getDiskDao
{ "repo_name": "jtux270/translate", "path": "ovirt/3.6_source/backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dal/dbbroker/DbFacade.java", "license": "gpl-3.0", "size": 42484 }
[ "org.ovirt.engine.core.dao.DiskDao" ]
import org.ovirt.engine.core.dao.DiskDao;
import org.ovirt.engine.core.dao.*;
[ "org.ovirt.engine" ]
org.ovirt.engine;
2,876,156
public UUID subjectIdPerCall(@Nullable UUID subjId) { if (subjId != null) return subjId; return subjectIdPerCall(subjId, operationContextPerCall()); }
UUID function(@Nullable UUID subjId) { if (subjId != null) return subjId; return subjectIdPerCall(subjId, operationContextPerCall()); }
/** * Gets subject ID per call. * * @param subjId Optional already existing subject ID. * @return Subject ID per call. */
Gets subject ID per call
subjectIdPerCall
{ "repo_name": "tkpanther/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheContext.java", "license": "apache-2.0", "size": 60051 }
[ "org.jetbrains.annotations.Nullable" ]
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
1,765,350
private static final String tokenElementToString(Element e) { return new StringBuilder() .append("\n******************** TOKEN ********************\n") .append(DOM2Writer.nodeToString(e)) .append("\n******************** TOKEN ********************") .toString(); }
static final String function(Element e) { return new StringBuilder() .append(STR) .append(DOM2Writer.nodeToString(e)) .append(STR) .toString(); }
/** * Token element to string. * * @param e * the e * @return the string */
Token element to string
tokenElementToString
{ "repo_name": "OBHITA/Consent2Share", "path": "DS4P/access-control-service/pep-client/src/main/java/gov/samhsa/acs/pep/wsclient/PepWebServiceClient.java", "license": "bsd-3-clause", "size": 13539 }
[ "org.apache.wss4j.common.util.DOM2Writer", "org.w3c.dom.Element" ]
import org.apache.wss4j.common.util.DOM2Writer; import org.w3c.dom.Element;
import org.apache.wss4j.common.util.*; import org.w3c.dom.*;
[ "org.apache.wss4j", "org.w3c.dom" ]
org.apache.wss4j; org.w3c.dom;
2,706,670
public String getSimpleName() { return CmsOrganizationalUnit.getSimpleName(m_name); }
String function() { return CmsOrganizationalUnit.getSimpleName(m_name); }
/** * Returns the simple name of this organizational unit. * * @return the simple name of this organizational unit. */
Returns the simple name of this organizational unit
getSimpleName
{ "repo_name": "serrapos/opencms-core", "path": "src/org/opencms/file/CmsProject.java", "license": "lgpl-2.1", "size": 14636 }
[ "org.opencms.security.CmsOrganizationalUnit" ]
import org.opencms.security.CmsOrganizationalUnit;
import org.opencms.security.*;
[ "org.opencms.security" ]
org.opencms.security;
1,351,236
public void setContentView(View root) { mRootView = root; mWindow.setContentView(root); }
void function(View root) { mRootView = root; mWindow.setContentView(root); }
/** * Set content view. * * @param root * Root view */
Set content view
setContentView
{ "repo_name": "kii-dev-jenkins/KiiFileStorageSampleApp", "path": "src/com/kii/demo/ui/view/PopupWindows.java", "license": "apache-2.0", "size": 4114 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
1,523,280
public TcpDiscoveryIpFinder getIpFinder() { return ipFinder; }
TcpDiscoveryIpFinder function() { return ipFinder; }
/** * Gets IP finder for IP addresses sharing and storing. * * @return IP finder for IP addresses sharing and storing. */
Gets IP finder for IP addresses sharing and storing
getIpFinder
{ "repo_name": "vsisko/incubator-ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java", "license": "apache-2.0", "size": 68315 }
[ "org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder" ]
import org.apache.ignite.spi.discovery.tcp.ipfinder.TcpDiscoveryIpFinder;
import org.apache.ignite.spi.discovery.tcp.ipfinder.*;
[ "org.apache.ignite" ]
org.apache.ignite;
583,433
@Override protected JAXBContext createContext() throws JAXBException { if (getContextPath() != null) { return JAXBContext.newInstance(adapter.getSoapPackageName() + ":" + getContextPath()); } else { return JAXBContext.newInstance(); } }
JAXBContext function() throws JAXBException { if (getContextPath() != null) { return JAXBContext.newInstance(adapter.getSoapPackageName() + ":" + getContextPath()); } else { return JAXBContext.newInstance(); } }
/** * Added the generated SOAP package to the JAXB context so Soap datatypes * are available */
Added the generated SOAP package to the JAXB context so Soap datatypes are available
createContext
{ "repo_name": "kevinearls/camel", "path": "components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/SoapJaxbDataFormat.java", "license": "apache-2.0", "size": 13243 }
[ "javax.xml.bind.JAXBContext", "javax.xml.bind.JAXBException" ]
import javax.xml.bind.JAXBContext; import javax.xml.bind.JAXBException;
import javax.xml.bind.*;
[ "javax.xml" ]
javax.xml;
1,482,287
public void setStartDate(String startDate) throws ParseException { this.startDate = startDate; setDateRange(dsSPS, Tags.SPSStartDate, startDate ); }
void function(String startDate) throws ParseException { this.startDate = startDate; setDateRange(dsSPS, Tags.SPSStartDate, startDate ); }
/** * Set the start date. * <p> * Set both <code>startDate and startDateAsLong</code>.<br> * If the parameter is null or empty, both values are set to <code>null</code> * * @param startDate The start Date to set. * @throws ParseException */
Set the start date. Set both <code>startDate and startDateAsLong</code>. If the parameter is null or empty, both values are set to <code>null</code>
setStartDate
{ "repo_name": "medicayun/medicayundicom", "path": "dcm4jboss-all/trunk/dcm4jboss-web/src/java/org/dcm4chex/archive/web/maverick/mwl/model/MWLFilter.java", "license": "apache-2.0", "size": 7934 }
[ "java.text.ParseException", "org.dcm4che.dict.Tags" ]
import java.text.ParseException; import org.dcm4che.dict.Tags;
import java.text.*; import org.dcm4che.dict.*;
[ "java.text", "org.dcm4che.dict" ]
java.text; org.dcm4che.dict;
2,547,498
List<AndesQueue> getAllQueuesStored() throws AndesException;
List<AndesQueue> getAllQueuesStored() throws AndesException;
/** * Get all stored queues. * * @return list of queues * @throws AndesException */
Get all stored queues
getAllQueuesStored
{ "repo_name": "ThilankaBowala/andes", "path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/AndesContextStore.java", "license": "apache-2.0", "size": 14264 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,638,905
public void clearTrash() { final List<File> trashRoots = new ArrayList<>(); for (StorageDirectory sd : storageDirs) { File trashRoot = getTrashRootDir(sd); if (trashRoot.exists() && sd.getPreviousDir().exists()) { LOG.error("Trash and PreviousDir shouldn't both exist for storage " ...
void function() { final List<File> trashRoots = new ArrayList<>(); for (StorageDirectory sd : storageDirs) { File trashRoot = getTrashRootDir(sd); if (trashRoot.exists() && sd.getPreviousDir().exists()) { LOG.error(STR + STR + sd); assert false; } else { trashRoots.add(trashRoot); } }
/** * Delete all files and directories in the trash directories. */
Delete all files and directories in the trash directories
clearTrash
{ "repo_name": "Microsoft-CISL/hadoop-prototype", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BlockPoolSliceStorage.java", "license": "apache-2.0", "size": 31808 }
[ "java.io.File", "java.util.ArrayList", "java.util.List" ]
import java.io.File; import java.util.ArrayList; import java.util.List;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,786,398
public void setBackground(Color background) { super.setBackground(background); if (filterComposite != null && (!useNewLook || useNativeSearchField(filterComposite))) { filterComposite.setBackground(background); } if (filterToolBar != null && filterToolBar.getControl() != null) ...
void function(Color background) { super.setBackground(background); if (filterComposite != null && (!useNewLook useNativeSearchField(filterComposite))) { filterComposite.setBackground(background); } if (filterToolBar != null && filterToolBar.getControl() != null) { filterToolBar.getControl().setBackground(background); }...
/** * Set the background for the widgets that support the filter text area. * * @param background * background <code>Color</code> to set */
Set the background for the widgets that support the filter text area
setBackground
{ "repo_name": "theanuradha/debrief", "path": "org.mwc.cmap.NarrativeViewer/src/org/mwc/cmap/NarrativeViewer/FilteredGrid.java", "license": "epl-1.0", "size": 28954 }
[ "org.eclipse.swt.graphics.Color" ]
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
2,275,164
@Test(groups = "wso2.mb", description = "Send million messages and Receive them via AUTO_ACKNOWLEDGE subscribers " + "and CLIENT_ACKNOWLEDGE", enabled = true) public void performMillionMessageTenPercentReturnTestCase() throws AndesClientConfigurationExcept...
@Test(groups = STR, description = STR + STR, enabled = true) void function() throws AndesClientConfigurationException, NamingException, JMSException, IOException, AndesClientException { AndesJMSConsumerClientConfiguration consumerConfig = new AndesJMSConsumerClientConfiguration(ExchangeType.QUEUE, STR); consumerConfig....
/** * Send million messages and receive them via AUTO_ACKNOWLEDGE subscribers and CLIENT_ACKNOWLEDGE subscribers and * check if AUTO_ACKNOWLEDGE subscribers receive all the messages. * * @throws AndesClientConfigurationException * @throws NamingException * @throws JMSException * @thro...
Send million messages and receive them via AUTO_ACKNOWLEDGE subscribers and CLIENT_ACKNOWLEDGE subscribers and check if AUTO_ACKNOWLEDGE subscribers receive all the messages
performMillionMessageTenPercentReturnTestCase
{ "repo_name": "milindaperera/product-ei", "path": "integration/broker-tests/tests-integration/tests-amqp/src/test/java/org/wso2/mb/integration/tests/amqp/load/QueueAckMixTestCase.java", "license": "apache-2.0", "size": 6551 }
[ "java.io.IOException", "javax.jms.JMSException", "javax.naming.NamingException", "org.testng.Assert", "org.testng.annotations.Test", "org.wso2.mb.integration.common.clients.AndesClient", "org.wso2.mb.integration.common.clients.configurations.AndesJMSConsumerClientConfiguration", "org.wso2.mb.integrati...
import java.io.IOException; import javax.jms.JMSException; import javax.naming.NamingException; import org.testng.Assert; import org.testng.annotations.Test; import org.wso2.mb.integration.common.clients.AndesClient; import org.wso2.mb.integration.common.clients.configurations.AndesJMSConsumerClientConfiguration; impor...
import java.io.*; import javax.jms.*; import javax.naming.*; import org.testng.*; import org.testng.annotations.*; import org.wso2.mb.integration.common.clients.*; import org.wso2.mb.integration.common.clients.configurations.*; import org.wso2.mb.integration.common.clients.exceptions.*; import org.wso2.mb.integration.c...
[ "java.io", "javax.jms", "javax.naming", "org.testng", "org.testng.annotations", "org.wso2.mb" ]
java.io; javax.jms; javax.naming; org.testng; org.testng.annotations; org.wso2.mb;
848,916
public void refreshEjb20Attributes() { // after we have looped through the get methods, // 'removedEjb20Attributes' will be left with the attributes that need to be removed Collection removedEjb20Attributes = CollectionTools.collection(this.ejb20Attributes()); for (Iterator stream =...
void function() { Collection removedEjb20Attributes = CollectionTools.collection(this.ejb20Attributes()); for (Iterator stream = this.ejb20GetMethods(); stream.hasNext(); ) { MWMethod ejb20GetMethod = (MWMethod) stream.next(); MWMethod ejb20SetMethod = ejb20SetMethodFor(ejb20GetMethod); if (ejb20SetMethod != null) { th...
/** * synchronize the EJB 2.0 attributes with the abstract getters and * setters; cascade up through superclasses */
synchronize the EJB 2.0 attributes with the abstract getters and setters; cascade up through superclasses
refreshEjb20Attributes
{ "repo_name": "RallySoftware/eclipselink.runtime", "path": "utils/eclipselink.utils.workbench/mappingsmodel/source/org/eclipse/persistence/tools/workbench/mappingsmodel/meta/MWClass.java", "license": "epl-1.0", "size": 121989 }
[ "java.util.Collection", "java.util.Iterator", "org.eclipse.persistence.tools.workbench.utility.CollectionTools" ]
import java.util.Collection; import java.util.Iterator; import org.eclipse.persistence.tools.workbench.utility.CollectionTools;
import java.util.*; import org.eclipse.persistence.tools.workbench.utility.*;
[ "java.util", "org.eclipse.persistence" ]
java.util; org.eclipse.persistence;
105
public static int groupingUnit2CDateUnit( GroupingUnitType groupingUnitType ) { if ( groupingUnitType != null ) { switch ( groupingUnitType.getValue( ) ) { case GroupingUnitType.SECONDS : return Calendar.SECOND; case GroupingUnitType.MINUTES : return Calendar.MINUTE; case GroupingUni...
static int function( GroupingUnitType groupingUnitType ) { if ( groupingUnitType != null ) { switch ( groupingUnitType.getValue( ) ) { case GroupingUnitType.SECONDS : return Calendar.SECOND; case GroupingUnitType.MINUTES : return Calendar.MINUTE; case GroupingUnitType.HOURS : return Calendar.HOUR_OF_DAY; case GroupingU...
/** * Convert GroupingUnit type to CDateUnit type. * * @param groupingUnitType the GroupingUnit type. * @return CDateUnit type of integer. * @since 2.3, it is merged from <code>DataProcessor</code>, make the method to be a static usage. */
Convert GroupingUnit type to CDateUnit type
groupingUnit2CDateUnit
{ "repo_name": "Charling-Huang/birt", "path": "chart/org.eclipse.birt.chart.engine/src/org/eclipse/birt/chart/internal/datafeed/GroupingUtil.java", "license": "epl-1.0", "size": 4184 }
[ "com.ibm.icu.util.Calendar", "org.eclipse.birt.chart.model.attribute.GroupingUnitType", "org.eclipse.birt.chart.util.CDateTime" ]
import com.ibm.icu.util.Calendar; import org.eclipse.birt.chart.model.attribute.GroupingUnitType; import org.eclipse.birt.chart.util.CDateTime;
import com.ibm.icu.util.*; import org.eclipse.birt.chart.model.attribute.*; import org.eclipse.birt.chart.util.*;
[ "com.ibm.icu", "org.eclipse.birt" ]
com.ibm.icu; org.eclipse.birt;
118,356
public void setLineaGastoFamiliaPersistence( LineaGastoFamiliaPersistence lineaGastoFamiliaPersistence) { this.lineaGastoFamiliaPersistence = lineaGastoFamiliaPersistence; }
void function( LineaGastoFamiliaPersistence lineaGastoFamiliaPersistence) { this.lineaGastoFamiliaPersistence = lineaGastoFamiliaPersistence; }
/** * Sets the linea gasto familia persistence. * * @param lineaGastoFamiliaPersistence the linea gasto familia persistence */
Sets the linea gasto familia persistence
setLineaGastoFamiliaPersistence
{ "repo_name": "RMarinDTI/CloubityRepo", "path": "Servicio-portlet/docroot/WEB-INF/src/es/davinciti/liferay/service/base/CurrencyServiceBaseImpl.java", "license": "unlicense", "size": 52888 }
[ "es.davinciti.liferay.service.persistence.LineaGastoFamiliaPersistence" ]
import es.davinciti.liferay.service.persistence.LineaGastoFamiliaPersistence;
import es.davinciti.liferay.service.persistence.*;
[ "es.davinciti.liferay" ]
es.davinciti.liferay;
2,247,448
public static void writeFile (CompoundTag tag, String path) { writeFile(tag, new File(path)); }
static void function (CompoundTag tag, String path) { writeFile(tag, new File(path)); }
/** * Writes the given root CompoundTag to the given file. * * @param tag Tag to write. * @param path Path to write to. */
Writes the given root CompoundTag to the given file
writeFile
{ "repo_name": "darkhax/OpenNBT", "path": "src/main/java/net/darkhax/opennbt/NBTHelper.java", "license": "mit", "size": 9097 }
[ "java.io.File", "net.darkhax.opennbt.tags.CompoundTag" ]
import java.io.File; import net.darkhax.opennbt.tags.CompoundTag;
import java.io.*; import net.darkhax.opennbt.tags.*;
[ "java.io", "net.darkhax.opennbt" ]
java.io; net.darkhax.opennbt;
773,280
public static void uncheckedVoid(Callable<?> f) { Handler.unchecked(f); }
static void function(Callable<?> f) { Handler.unchecked(f); }
/** * This method accepts a <code>Callable</code> type value that contains a method call data, and calls the method and handles any * exceptions that may be thrown by the method (lambda) expression. * * @param Callable function/method <code>Callable</code> */
This method accepts a <code>Callable</code> type value that contains a method call data, and calls the method and handles any exceptions that may be thrown by the method (lambda) expression
uncheckedVoid
{ "repo_name": "casmong/general-java-utils", "path": "com/research/innovate/microservice/template/Handler.java", "license": "gpl-3.0", "size": 1986 }
[ "java.util.concurrent.Callable" ]
import java.util.concurrent.Callable;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
2,264,864
@Metadata(label = "producer", description = "Sets whether date headers should be formatted according to the ISO 8601 standard.") public void setFormatDateHeadersToIso8601(boolean formatDateHeadersToIso8601) { getConfiguration().setFormatDateHeadersToIso8601(formatDateHeadersToIso8601); } // Imp...
@Metadata(label = STR, description = STR) void function(boolean formatDateHeadersToIso8601) { getConfiguration().setFormatDateHeadersToIso8601(formatDateHeadersToIso8601); }
/** * Sets whether date headers should be formatted according to the ISO 8601 * standard. */
Sets whether date headers should be formatted according to the ISO 8601 standard
setFormatDateHeadersToIso8601
{ "repo_name": "objectiser/camel", "path": "components/camel-jms/src/main/java/org/apache/camel/component/jms/JmsComponent.java", "license": "apache-2.0", "size": 83769 }
[ "org.apache.camel.spi.Metadata" ]
import org.apache.camel.spi.Metadata;
import org.apache.camel.spi.*;
[ "org.apache.camel" ]
org.apache.camel;
2,455,546
public void registerInterruptListener(final AccessorySensorEventListener listener) throws AccessorySensorException { if (!mIsInterruptModeSupported) { throw new IllegalStateException("Interrupt mode not supported"); } // Rate is ignored in interrupt mode. re...
void function(final AccessorySensorEventListener listener) throws AccessorySensorException { if (!mIsInterruptModeSupported) { throw new IllegalStateException(STR); } registerListener(listener, Sensor.SensorRates.SENSOR_DELAY_NORMAL, Sensor.SensorInterruptMode.SENSOR_INTERRUPT_ENABLED); }
/** * Register a sensor event listener that gets new data when the sensor has * new data. It is only possible to have one listener per sensor. * * @param listener The event listener. */
Register a sensor event listener that gets new data when the sensor has new data. It is only possible to have one listener per sensor
registerInterruptListener
{ "repo_name": "einvalentin/buildwatch", "path": "3rdParty/SmartExtensionUtils/src/com/sonyericsson/extras/liveware/extension/util/sensor/AccessorySensor.java", "license": "apache-2.0", "size": 12739 }
[ "com.sonyericsson.extras.liveware.aef.sensor.Sensor" ]
import com.sonyericsson.extras.liveware.aef.sensor.Sensor;
import com.sonyericsson.extras.liveware.aef.sensor.*;
[ "com.sonyericsson.extras" ]
com.sonyericsson.extras;
1,427,988
protected static Authentication askForAuthentication(String host, String message) { UserValidationDialog ui = new UserValidationDialog(null, host, message); ui.open(); return ui.getAuthentication(); } protected UserValidationDialog(Shell parentShell, String host, String message) { super(parentShell); ...
static Authentication function(String host, String message) { UserValidationDialog ui = new UserValidationDialog(null, host, message); ui.open(); return ui.getAuthentication(); } protected UserValidationDialog(Shell parentShell, String host, String message) { super(parentShell); this.host = host; this.message = message...
/** * Gets user and password from a user Must be called from UI thread * * @return UserAuthentication that contains the userid and the password or <code>null</code> if the dialog has been * cancelled */
Gets user and password from a user Must be called from UI thread
askForAuthentication
{ "repo_name": "Caleydo/caleydo", "path": "org.caleydo.rcp/src/org/caleydo/core/internal/gui/UserValidationDialog.java", "license": "bsd-3-clause", "size": 4994 }
[ "org.eclipse.swt.widgets.Shell" ]
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
419,829
public static WritableRaster createWritableRaster(SampleModel sm, Point location) { return new WritableRaster(sm, location); }
static WritableRaster function(SampleModel sm, Point location) { return new WritableRaster(sm, location); }
/** * Creates a new writable raster. * * @param sm the sample model. * @param location * * @return The new writable raster. */
Creates a new writable raster
createWritableRaster
{ "repo_name": "SanDisk-Open-Source/SSD_Dashboard", "path": "uefi/gcc/gcc-4.6.3/libjava/classpath/java/awt/image/Raster.java", "license": "gpl-2.0", "size": 30991 }
[ "java.awt.Point" ]
import java.awt.Point;
import java.awt.*;
[ "java.awt" ]
java.awt;
679,501
@Permission({ ServiceOperation.DO_PAYMENT, ServiceOperation.RECEIVE_PAYMENT }) @WebMethod List<TransferTypeVO> searchTransferTypes(@WebParam(name = "params") TransferTypeSearchParameters params);
@Permission({ ServiceOperation.DO_PAYMENT, ServiceOperation.RECEIVE_PAYMENT }) List<TransferTypeVO> searchTransferTypes(@WebParam(name = STR) TransferTypeSearchParameters params);
/** * Returns a list of transfer types for the given parameters */
Returns a list of transfer types for the given parameters
searchTransferTypes
{ "repo_name": "robertoandrade/cyclos", "path": "src/nl/strohalm/cyclos/webservices/accounts/AccountWebService.java", "license": "gpl-2.0", "size": 2592 }
[ "java.util.List", "javax.jws.WebParam", "nl.strohalm.cyclos.entities.services.ServiceOperation", "nl.strohalm.cyclos.webservices.Permission", "nl.strohalm.cyclos.webservices.model.TransferTypeVO" ]
import java.util.List; import javax.jws.WebParam; import nl.strohalm.cyclos.entities.services.ServiceOperation; import nl.strohalm.cyclos.webservices.Permission; import nl.strohalm.cyclos.webservices.model.TransferTypeVO;
import java.util.*; import javax.jws.*; import nl.strohalm.cyclos.entities.services.*; import nl.strohalm.cyclos.webservices.*; import nl.strohalm.cyclos.webservices.model.*;
[ "java.util", "javax.jws", "nl.strohalm.cyclos" ]
java.util; javax.jws; nl.strohalm.cyclos;
2,317,699
public void checkDuplicateSynchronisationConnection(String entityAddress) throws BusinessValidationException { if (synchronisationConnectionRepository.findByEntityAddress(entityAddress) != null) { throw new BusinessValidationException(RestError.DUPLICATE, "SynchronisationConnection", entityAddre...
void function(String entityAddress) throws BusinessValidationException { if (synchronisationConnectionRepository.findByEntityAddress(entityAddress) != null) { throw new BusinessValidationException(RestError.DUPLICATE, STR, entityAddress); } }
/** * Throws a {@link BusinessValidationException} if entityAddress is a duplicate SynchronisationConnection entityAddress. * * @param entityAddress an entityAddress * @throws BusinessValidationException */
Throws a <code>BusinessValidationException</code> if entityAddress is a duplicate SynchronisationConnection entityAddress
checkDuplicateSynchronisationConnection
{ "repo_name": "USEF-Foundation/ri.usef.energy", "path": "usef-build/usef-workflow/usef-agr/src/main/java/energy/usef/agr/service/business/AggregatorValidationBusinessService.java", "license": "apache-2.0", "size": 3518 }
[ "energy.usef.core.exception.BusinessValidationException", "energy.usef.core.exception.RestError" ]
import energy.usef.core.exception.BusinessValidationException; import energy.usef.core.exception.RestError;
import energy.usef.core.exception.*;
[ "energy.usef.core" ]
energy.usef.core;
2,695,940
public ActionForward execute(Exception ex, ExceptionConfig ae, ActionMapping mapping, ActionForm formInstance, HttpServletRequest request, HttpServletResponse response) throws...
ActionForward function(Exception ex, ExceptionConfig ae, ActionMapping mapping, ActionForm formInstance, HttpServletRequest request, HttpServletResponse response) throws ServletException { ActionErrors errors = (ActionErrors) request.getAttribute(Globals.ERROR_KEY); if (errors != null) { return null; } ActionForward fo...
/** * This method handles any java.lang.Exceptions that are not * caught in previous classes. It will loop through and get * all the causes (exception chain), create ActionErrors, * add them to the request and then forward to the input. * * @see org.apache.struts.action.ExceptionHan...
This method handles any java.lang.Exceptions that are not caught in previous classes. It will loop through and get all the causes (exception chain), create ActionErrors, add them to the request and then forward to the input
execute
{ "repo_name": "buptwufengjiao/J2EEApp", "path": "src/web/org/appfuse/webapp/action/ActionExceptionHandler.java", "license": "apache-2.0", "size": 5129 }
[ "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.apache.struts.Globals", "org.apache.struts.action.ActionErrors", "org.apache.struts.action.ActionForm", "org.apache.struts.action.ActionForward", "org.apache.struts.action.ActionMa...
import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.struts.Globals; import org.apache.struts.action.ActionErrors; import org.apache.struts.action.ActionForm; import org.apache.struts.action.ActionForward; import org.apache...
import javax.servlet.*; import javax.servlet.http.*; import org.apache.struts.*; import org.apache.struts.action.*; import org.apache.struts.config.*;
[ "javax.servlet", "org.apache.struts" ]
javax.servlet; org.apache.struts;
671,484
@Override @Test(expected = ItemNotSavedException.class) public void testMergeNonExistent() { getDao().merge(SingleUser.getInstance()); }
@Test(expected = ItemNotSavedException.class) void function() { getDao().merge(SingleUser.getInstance()); }
/** * Overwritten method from {@link GenericDaoTest}. This method has to be called in a different way because an * {@link UnsupportedOperationException} is expected. */
Overwritten method from <code>GenericDaoTest</code>. This method has to be called in a different way because an <code>UnsupportedOperationException</code> is expected
testMergeNonExistent
{ "repo_name": "physalix-enrollment/physalix", "path": "User/src/test/java/hsa/awp/user/dao/TestSingleUserDirectoryDao.java", "license": "gpl-3.0", "size": 15979 }
[ "org.junit.Test" ]
import org.junit.Test;
import org.junit.*;
[ "org.junit" ]
org.junit;
259,674
private synchronized void initialize() throws IOException, LangDetectException { if (initialized) { return; } try (InputStream input = getClass().getResourceAsStream(LANGUAGE_LIST_RESOURCE)) { List<String> languageList = IOUtils.readLines(input); List<String> languageProfiles = new ArrayList<String>()...
synchronized void function() throws IOException, LangDetectException { if (initialized) { return; } try (InputStream input = getClass().getResourceAsStream(LANGUAGE_LIST_RESOURCE)) { List<String> languageList = IOUtils.readLines(input); List<String> languageProfiles = new ArrayList<String>(); for (String language : lan...
/** * Initialize language detection subsystem */
Initialize language detection subsystem
initialize
{ "repo_name": "andreasbehnke/cee", "path": "cee-parser-impl/src/main/java/org/cee/language/impl/LanguageDetectorImpl.java", "license": "apache-2.0", "size": 2887 }
[ "com.cybozu.labs.langdetect.DetectorFactory", "com.cybozu.labs.langdetect.LangDetectException", "java.io.IOException", "java.io.InputStream", "java.util.ArrayList", "java.util.List", "org.apache.commons.io.IOUtils" ]
import com.cybozu.labs.langdetect.DetectorFactory; import com.cybozu.labs.langdetect.LangDetectException; import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import org.apache.commons.io.IOUtils;
import com.cybozu.labs.langdetect.*; import java.io.*; import java.util.*; import org.apache.commons.io.*;
[ "com.cybozu.labs", "java.io", "java.util", "org.apache.commons" ]
com.cybozu.labs; java.io; java.util; org.apache.commons;
1,654,844
@Override public int size() { int count = 0; for (final Iterator<E> it=iterator(); it.hasNext();) { it.next(); if (++count == Integer.MAX_VALUE) { break; } } return count; }
int function() { int count = 0; for (final Iterator<E> it=iterator(); it.hasNext();) { it.next(); if (++count == Integer.MAX_VALUE) { break; } } return count; }
/** * Returns the number of elements in this set. The default implementation counts the number of elements * returned by the {@link #iterator() iterator}. Subclasses are encouraged to cache this value if they * know that the underlying storage is immutable. * * @return the number of elements in...
Returns the number of elements in this set. The default implementation counts the number of elements returned by the <code>#iterator() iterator</code>. Subclasses are encouraged to cache this value if they know that the underlying storage is immutable
size
{ "repo_name": "Geomatys/sis", "path": "core/sis-utility/src/main/java/org/apache/sis/internal/util/SetOfUnknownSize.java", "license": "apache-2.0", "size": 7103 }
[ "java.util.Iterator" ]
import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
197,581
EAttribute getWebService_Method();
EAttribute getWebService_Method();
/** * Returns the meta object for the attribute '{@link fr.eyal.lib.datalib.genmodel.android.datalib.WebService#getMethod <em>Method</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Method</em>'. * @see fr.eyal.lib.datalib.genmodel.android.datalib.WebS...
Returns the meta object for the attribute '<code>fr.eyal.lib.datalib.genmodel.android.datalib.WebService#getMethod Method</code>'.
getWebService_Method
{ "repo_name": "eyal-lezmy/Android-DataLib", "path": "Android-DataLib-Generator/fr.eyal.datalib.generator/src/fr/eyal/lib/datalib/genmodel/android/datalib/DatalibPackage.java", "license": "apache-2.0", "size": 19274 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,169,922
@Override public void enterEqualsToExpression(@NotNull BramsprParser.EqualsToExpressionContext ctx) { }
@Override public void enterEqualsToExpression(@NotNull BramsprParser.EqualsToExpressionContext ctx) { }
/** * {@inheritDoc} * <p/> * The default implementation does nothing. */
The default implementation does nothing
exitSignExpression
{ "repo_name": "bcleenders/Bramspr", "path": "src/bramspr/BramsprBaseListener.java", "license": "mit", "size": 21948 }
[ "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;
2,277,668
public Optional<ConceptSnapshot> getContainingConcept() { return containingConcept; }
Optional<ConceptSnapshot> function() { return containingConcept; }
/** * This may return an empty, if the concept and/or matching component was not on the path */
This may return an empty, if the concept and/or matching component was not on the path
getContainingConcept
{ "repo_name": "Apelon-VA/va-isaac-gui", "path": "otf-util/src/main/java/gov/va/isaac/search/CompositeSearchResult.java", "license": "apache-2.0", "size": 10366 }
[ "gov.vha.isaac.ochre.api.component.concept.ConceptSnapshot", "java.util.Optional" ]
import gov.vha.isaac.ochre.api.component.concept.ConceptSnapshot; import java.util.Optional;
import gov.vha.isaac.ochre.api.component.concept.*; import java.util.*;
[ "gov.vha.isaac", "java.util" ]
gov.vha.isaac; java.util;
2,534,733
public void write(StatementAbstractType statement) throws ProcessingException { throw logger.notImplementedYet("StatementAbstractType"); }
void function(StatementAbstractType statement) throws ProcessingException { throw logger.notImplementedYet(STR); }
/** * Write an {@code StatementAbstractType} to stream * * @param statement * @param out * * @throws ProcessingException */
Write an StatementAbstractType to stream
write
{ "repo_name": "anaerobic/keycloak", "path": "saml/saml-core/src/main/java/org/keycloak/saml/processing/core/saml/v1/writers/SAML11AssertionWriter.java", "license": "apache-2.0", "size": 19194 }
[ "org.keycloak.dom.saml.v2.assertion.StatementAbstractType", "org.keycloak.saml.common.exceptions.ProcessingException" ]
import org.keycloak.dom.saml.v2.assertion.StatementAbstractType; import org.keycloak.saml.common.exceptions.ProcessingException;
import org.keycloak.dom.saml.v2.assertion.*; import org.keycloak.saml.common.exceptions.*;
[ "org.keycloak.dom", "org.keycloak.saml" ]
org.keycloak.dom; org.keycloak.saml;
2,353,340
protected void addGlobalI18nMessage(String bundleName, FacesMessage.Severity severity, String summaryKey, Object ... summaryParams) { addI18nMessage(null, bundleName, severity, summaryKey, summaryParams, null, null); }
void function(String bundleName, FacesMessage.Severity severity, String summaryKey, Object ... summaryParams) { addI18nMessage(null, bundleName, severity, summaryKey, summaryParams, null, null); }
/** * Shortcut to addI18nMessage(): global message with specified severity and including only a parameterized summary. * * @param bundleName * The name of the bundle where to look for the message. * @param severity * The severity of the message (one of the severity levels defined by J...
Shortcut to addI18nMessage(): global message with specified severity and including only a parameterized summary
addGlobalI18nMessage
{ "repo_name": "manzoli2122/Vip", "path": "src/br/ufes/inf/nemo/jbutler/ejb/controller/JSFController.java", "license": "apache-2.0", "size": 27672 }
[ "javax.faces.application.FacesMessage" ]
import javax.faces.application.FacesMessage;
import javax.faces.application.*;
[ "javax.faces" ]
javax.faces;
2,678,043
@Test public void test_setLocation() { String name[] = {TESTLOC_0_LABEL, TESTLOC_1_LABEL}; String lat[] = {TESTLOC_0_LAT, TESTLOC_1_LAT }; String lon[] = {TESTLOC_0_LON, TESTLOC_1_LON }; int n = name.length; int i = new Random().nextInt(n); setLocation(name...
void function() { String name[] = {TESTLOC_0_LABEL, TESTLOC_1_LABEL}; String lat[] = {TESTLOC_0_LAT, TESTLOC_1_LAT }; String lon[] = {TESTLOC_0_LON, TESTLOC_1_LON }; int n = name.length; int i = new Random().nextInt(n); setLocation(name[i], lat[i], lon[i]); }
/** * UI Test * Set the location using the location dialog. */
UI Test Set the location using the location dialog
test_setLocation
{ "repo_name": "forrestguice/SuntimesWidget", "path": "app/src/androidTest/java/com/forrestguice/suntimeswidget/LocationDialogTest.java", "license": "gpl-3.0", "size": 12995 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
30,895
Path getPathForCharacterCode(int code) throws IOException; void dispose();
Path getPathForCharacterCode(int code) throws IOException; void dispose();
/** * Remove all cached resources. */
Remove all cached resources
dispose
{ "repo_name": "kzganesan/PdfBox-Android", "path": "library/src/main/java/org/apache/pdfbox/rendering/Glyph2D.java", "license": "apache-2.0", "size": 631 }
[ "android.graphics.Path", "java.io.IOException" ]
import android.graphics.Path; import java.io.IOException;
import android.graphics.*; import java.io.*;
[ "android.graphics", "java.io" ]
android.graphics; java.io;
305,553
Collection<CaseInstance> getCaseInstancesByDefinition(String caseDefinitionId, List<CaseStatus> statuses, QueryContext queryContext);
Collection<CaseInstance> getCaseInstancesByDefinition(String caseDefinitionId, List<CaseStatus> statuses, QueryContext queryContext);
/** * Returns all available case instances; * @param caseDefinitionId case definition id * @param statuses list of statuses that case should be in to match * @param queryContext control parameters for the result e.g. sorting, paging * */
Returns all available case instances
getCaseInstancesByDefinition
{ "repo_name": "DuncanDoyle/jbpm", "path": "jbpm-case-mgmt/jbpm-case-mgmt-api/src/main/java/org/jbpm/casemgmt/api/CaseRuntimeDataService.java", "license": "apache-2.0", "size": 14153 }
[ "java.util.Collection", "java.util.List", "org.jbpm.casemgmt.api.model.CaseStatus", "org.jbpm.casemgmt.api.model.instance.CaseInstance", "org.kie.api.runtime.query.QueryContext" ]
import java.util.Collection; import java.util.List; import org.jbpm.casemgmt.api.model.CaseStatus; import org.jbpm.casemgmt.api.model.instance.CaseInstance; import org.kie.api.runtime.query.QueryContext;
import java.util.*; import org.jbpm.casemgmt.api.model.*; import org.jbpm.casemgmt.api.model.instance.*; import org.kie.api.runtime.query.*;
[ "java.util", "org.jbpm.casemgmt", "org.kie.api" ]
java.util; org.jbpm.casemgmt; org.kie.api;
1,031,452