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 void stopServiceThreads() { if (this.nonceManagerChore != null) { Threads.shutdown(this.nonceManagerChore.getThread()); } Threads.shutdown(this.compactionChecker.getThread()); Threads.shutdown(this.periodicFlusher.getThread()); this.cacheFlusher.join(); if (this.healthCheckChor...
void function() { if (this.nonceManagerChore != null) { Threads.shutdown(this.nonceManagerChore.getThread()); } Threads.shutdown(this.compactionChecker.getThread()); Threads.shutdown(this.periodicFlusher.getThread()); this.cacheFlusher.join(); if (this.healthCheckChore != null) { Threads.shutdown(this.healthCheckChore....
/** * Wait on all threads to finish. Presumption is that all closes and stops * have already been called. */
Wait on all threads to finish. Presumption is that all closes and stops have already been called
stopServiceThreads
{ "repo_name": "tobegit3hub/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/regionserver/HRegionServer.java", "license": "apache-2.0", "size": 102504 }
[ "org.apache.hadoop.hbase.util.Threads" ]
import org.apache.hadoop.hbase.util.Threads;
import org.apache.hadoop.hbase.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
193,215
@Override protected void fixInstanceClass(EClassifier eClassifier) { if (eClassifier.getInstanceClassName() == null) { eClassifier.setInstanceClassName("CIM15.IEC61970.Outage." + eClassifier.getName()); setGeneratedClassName(eClassifier); } } public interface Literals { public static final EClas...
void function(EClassifier eClassifier) { if (eClassifier.getInstanceClassName() == null) { eClassifier.setInstanceClassName(STR + eClassifier.getName()); setGeneratedClassName(eClassifier); } } public interface Literals { public static final EClass SWITCHING_OPERATION = eINSTANCE.getSwitchingOperation(); public static ...
/** * Sets the instance class on the given classifier. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Sets the instance class on the given classifier.
fixInstanceClass
{ "repo_name": "SES-fortiss/SmartGridCoSimulation", "path": "core/cim15/src/CIM15/IEC61970/Outage/OutagePackage.java", "license": "apache-2.0", "size": 60227 }
[ "org.eclipse.emf.ecore.EAttribute", "org.eclipse.emf.ecore.EClass", "org.eclipse.emf.ecore.EClassifier", "org.eclipse.emf.ecore.EEnum", "org.eclipse.emf.ecore.EReference" ]
import org.eclipse.emf.ecore.EAttribute; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EClassifier; import org.eclipse.emf.ecore.EEnum; import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,568,635
protected void readEntityFromNBT(NBTTagCompound tagCompund) {}
protected void readEntityFromNBT(NBTTagCompound tagCompund) {}
/** * (abstract) Protected helper method to write subclass entity data to NBT. */
(abstract) Protected helper method to write subclass entity data to NBT
writeEntityToNBT
{ "repo_name": "trixmot/mod1", "path": "build/tmp/recompileMc/sources/net/minecraft/entity/item/EntityEnderCrystal.java", "license": "lgpl-2.1", "size": 3484 }
[ "net.minecraft.nbt.NBTTagCompound" ]
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.nbt.*;
[ "net.minecraft.nbt" ]
net.minecraft.nbt;
1,581,787
public String getOldTargetValue() throws JspException { String linkTarget = ""; if (CmsStringUtil.isEmpty(getParamLinkTarget())) { // this is the initial dialog call, get link target value try { // get pointer contents CmsFile file = getCms()....
String function() throws JspException { String linkTarget = ""; if (CmsStringUtil.isEmpty(getParamLinkTarget())) { try { CmsFile file = getCms().readFile(getParamResource()); linkTarget = new String(file.getContents()); } catch (Throwable e1) { setParamMessage( Messages.get().getBundle(getLocale()).key(Messages.ERR_GET...
/** * Returns the old link target value of the pointer resource to edit.<p> * * @return the old link target value * @throws JspException if problems including sub-elements occur * */
Returns the old link target value of the pointer resource to edit
getOldTargetValue
{ "repo_name": "ggiudetti/opencms-core", "path": "src-modules/org/opencms/workplace/commons/CmsEditPointer.java", "license": "lgpl-2.1", "size": 6434 }
[ "javax.servlet.jsp.JspException", "org.opencms.file.CmsFile", "org.opencms.i18n.CmsEncoder", "org.opencms.util.CmsStringUtil" ]
import javax.servlet.jsp.JspException; import org.opencms.file.CmsFile; import org.opencms.i18n.CmsEncoder; import org.opencms.util.CmsStringUtil;
import javax.servlet.jsp.*; import org.opencms.file.*; import org.opencms.i18n.*; import org.opencms.util.*;
[ "javax.servlet", "org.opencms.file", "org.opencms.i18n", "org.opencms.util" ]
javax.servlet; org.opencms.file; org.opencms.i18n; org.opencms.util;
18,129
@ServiceMethod(returns = ReturnType.SINGLE) public Mono<DetectorResponseInner> getHostingEnvironmentDetectorResponseAsync( String resourceGroupName, String name, String detectorName) { final OffsetDateTime startTime = null; final OffsetDateTime endTime = null; final String timeGr...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<DetectorResponseInner> function( String resourceGroupName, String name, String detectorName) { final OffsetDateTime startTime = null; final OffsetDateTime endTime = null; final String timeGrain = null; return getHostingEnvironmentDetectorResponseWithResponseAsync( resour...
/** * Description for Get Hosting Environment Detector Response. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name App Service Environment Name. * @param detectorName Detector Resource Name. * @throws IllegalArgumentException thrown if par...
Description for Get Hosting Environment Detector Response
getHostingEnvironmentDetectorResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DiagnosticsClientImpl.java", "license": "mit", "size": 288640 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.resourcemanager.appservice.fluent.models.DetectorResponseInner", "java.time.OffsetDateTime" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.resourcemanager.appservice.fluent.models.DetectorResponseInner; import java.time.OffsetDateTime;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.appservice.fluent.models.*; import java.time.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.time" ]
com.azure.core; com.azure.resourcemanager; java.time;
392,914
@Override public String populateCustomManagementInfo(String oasDefinition, SwaggerData swaggerData) throws APIManagementException { Swagger swagger = getSwagger(oasDefinition); removePublisherSpecificInfo(swagger); return generateAPIDefinition(swaggerData, swagger); }
String function(String oasDefinition, SwaggerData swaggerData) throws APIManagementException { Swagger swagger = getSwagger(oasDefinition); removePublisherSpecificInfo(swagger); return generateAPIDefinition(swaggerData, swagger); }
/** * Populate definition with wso2 APIM specific information * * @param oasDefinition OAS definition * @param swaggerData API * @return Generated OAS definition * @throws APIManagementException If an error occurred */
Populate definition with wso2 APIM specific information
populateCustomManagementInfo
{ "repo_name": "Rajith90/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/definitions/OAS2Parser.java", "license": "apache-2.0", "size": 84878 }
[ "io.swagger.models.Swagger", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.api.model.SwaggerData" ]
import io.swagger.models.Swagger; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.SwaggerData;
import io.swagger.models.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*;
[ "io.swagger.models", "org.wso2.carbon" ]
io.swagger.models; org.wso2.carbon;
328,022
public SnapshottableDirectoryStatus[] getSnapshottableDirListing() throws IOException { checkOpen(); TraceScope scope = Trace.startSpan("getSnapshottableDirListing", traceSampler); try { return namenode.getSnapshottableDirListing(); } catch(RemoteException re) { throw re.unwr...
SnapshottableDirectoryStatus[] function() throws IOException { checkOpen(); TraceScope scope = Trace.startSpan(STR, traceSampler); try { return namenode.getSnapshottableDirListing(); } catch(RemoteException re) { throw re.unwrapRemoteException(); } finally { scope.close(); } }
/** * Get all the current snapshottable directories. * @return All the current snapshottable directories * @throws IOException * @see ClientProtocol#getSnapshottableDirListing() */
Get all the current snapshottable directories
getSnapshottableDirListing
{ "repo_name": "korrelate/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/DFSClient.java", "license": "apache-2.0", "size": 117397 }
[ "java.io.IOException", "org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus", "org.apache.hadoop.ipc.RemoteException", "org.apache.htrace.Trace", "org.apache.htrace.TraceScope" ]
import java.io.IOException; import org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus; import org.apache.hadoop.ipc.RemoteException; import org.apache.htrace.Trace; import org.apache.htrace.TraceScope;
import java.io.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.ipc.*; import org.apache.htrace.*;
[ "java.io", "org.apache.hadoop", "org.apache.htrace" ]
java.io; org.apache.hadoop; org.apache.htrace;
2,713,704
protected static Connection getInstance(String hostToConnectTo, int portToConnectTo, Properties info, String databaseToConnectTo, String url) throws SQLException { if (!Util.isJdbc4()) { return new ConnectionImpl(hostToConnectTo, portToConnectTo, info, databaseToConnectTo, url); ...
static Connection function(String hostToConnectTo, int portToConnectTo, Properties info, String databaseToConnectTo, String url) throws SQLException { if (!Util.isJdbc4()) { return new ConnectionImpl(hostToConnectTo, portToConnectTo, info, databaseToConnectTo, url); } return (Connection) Util.handleNewInstance(JDBC_4_C...
/** * Creates a connection instance -- We need to provide factory-style methods * so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise * the class verifier complains when it tries to load JDBC4-only interface * classes that are present in JDBC4 method signatures. */
Creates a connection instance -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures
getInstance
{ "repo_name": "mwaylabs/mysql-connector-j", "path": "src/com/mysql/jdbc/ConnectionImpl.java", "license": "gpl-2.0", "size": 217278 }
[ "java.sql.SQLException", "java.util.Properties", "java.util.Random" ]
import java.sql.SQLException; import java.util.Properties; import java.util.Random;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
1,833,560
public void disconnectAllBut(List<Operator> exception);
void function(List<Operator> exception);
/** * Disconnects all ports with exception to those connections to operators in the given list. */
Disconnects all ports with exception to those connections to operators in the given list
disconnectAllBut
{ "repo_name": "aborg0/rapidminer-studio", "path": "src/main/java/com/rapidminer/operator/ports/Ports.java", "license": "agpl-3.0", "size": 5227 }
[ "com.rapidminer.operator.Operator", "java.util.List" ]
import com.rapidminer.operator.Operator; import java.util.List;
import com.rapidminer.operator.*; import java.util.*;
[ "com.rapidminer.operator", "java.util" ]
com.rapidminer.operator; java.util;
2,023,914
public static Abdera getAbdera() { return abdera; }
static Abdera function() { return abdera; }
/** * Gets the abdera. * * @return the abdera */
Gets the abdera
getAbdera
{ "repo_name": "fraunhoferfokus/odp-rss-servlet", "path": "src/main/java/de/fhg/fokus/odp/rssservlet/utils/AbderaSupport.java", "license": "agpl-3.0", "size": 4917 }
[ "org.apache.abdera.Abdera" ]
import org.apache.abdera.Abdera;
import org.apache.abdera.*;
[ "org.apache.abdera" ]
org.apache.abdera;
308,161
@PreAuthorize("hasRole('UPLOAD')") @RequestMapping(value = "/upload-image") public ResponseEntity<String> uploadImage ( Principal principal, @RequestParam("id") Long id, @RequestParam("file") MultipartFile file) throws Exception { // verify that we have the correct owner Account account = accountRepos...
@PreAuthorize(STR) @RequestMapping(value = STR) ResponseEntity<String> function ( Principal principal, @RequestParam("id") Long id, @RequestParam("file") MultipartFile file) throws Exception { Account account = accountRepository.findOne(principal.getName()); if (!canEdit(principal, id)) { return new ResponseEntity<Stri...
/** * Uploads a image to the solution and updates the solution data with * the name of the file being uploaded. Returns a <b>403 Forbidden</b> if * the logged in user is not the owner of the solution. */
Uploads a image to the solution and updates the solution data with the name of the file being uploaded. Returns a 403 Forbidden if the logged in user is not the owner of the solution
uploadImage
{ "repo_name": "Itema-as/eclipse-marketplace-server", "path": "org.dawnsci.marketplace.server/src/main/java/org/dawnsci/marketplace/controllers/ExtendedRestApiController.java", "license": "epl-1.0", "size": 7887 }
[ "java.security.Principal", "org.dawnsci.marketplace.Node", "org.dawnsci.marketplace.core.MarketplaceSerializer", "org.dawnsci.marketplace.social.account.Account", "org.springframework.http.HttpStatus", "org.springframework.http.ResponseEntity", "org.springframework.security.access.prepost.PreAuthorize",...
import java.security.Principal; import org.dawnsci.marketplace.Node; import org.dawnsci.marketplace.core.MarketplaceSerializer; import org.dawnsci.marketplace.social.account.Account; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.security.access.pr...
import java.security.*; import org.dawnsci.marketplace.*; import org.dawnsci.marketplace.core.*; import org.dawnsci.marketplace.social.account.*; import org.springframework.http.*; import org.springframework.security.access.prepost.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.mult...
[ "java.security", "org.dawnsci.marketplace", "org.springframework.http", "org.springframework.security", "org.springframework.web" ]
java.security; org.dawnsci.marketplace; org.springframework.http; org.springframework.security; org.springframework.web;
1,090,292
private int getGeneCount() { WebElement element = driver.findElement(By.xpath("//div[@id=\"resultMsg\"]/span[@id=\"resultCount\"]/a")); String s = element.getText().replace(" genes", ""); Integer i = Utils.tryParseInt(s); return (i == null ? 0 : i); }
int function() { WebElement element = driver.findElement(By.xpath(STR genesSTR"); Integer i = Utils.tryParseInt(s); return (i == null ? 0 : i); }
/** * Given that the current page is the gene search page, returns the number * sandwiched between the 'Found' and 'genes' terms; e.g., given the string * 'Found 5 genes', returns the number 5. Returns 0 if there is no number * or no such formatted string. * @return gene count if found; 0 other...
Given that the current page is the gene search page, returns the number sandwiched between the 'Found' and 'genes' terms; e.g., given the string 'Found 5 genes', returns the number 5. Returns 0 if there is no number or no such formatted string
getGeneCount
{ "repo_name": "mpi2/PhenotypeArchive", "path": "src/test/java/org/mousephenotype/www/GenePageTest.java", "license": "apache-2.0", "size": 36139 }
[ "org.openqa.selenium.By", "org.openqa.selenium.WebElement", "uk.ac.ebi.phenotype.util.Utils" ]
import org.openqa.selenium.By; import org.openqa.selenium.WebElement; import uk.ac.ebi.phenotype.util.Utils;
import org.openqa.selenium.*; import uk.ac.ebi.phenotype.util.*;
[ "org.openqa.selenium", "uk.ac.ebi" ]
org.openqa.selenium; uk.ac.ebi;
483,661
public void updateUI() { setUI((ScrollBarUI)UIManager.getUI(this)); }
void function() { setUI((ScrollBarUI)UIManager.getUI(this)); }
/** * Overrides <code>JComponent.updateUI</code>. * @see JComponent#updateUI */
Overrides <code>JComponent.updateUI</code>
updateUI
{ "repo_name": "mirkosertic/Bytecoder", "path": "classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/javax/swing/JScrollBar.java", "license": "apache-2.0", "size": 31216 }
[ "javax.swing.plaf.ScrollBarUI" ]
import javax.swing.plaf.ScrollBarUI;
import javax.swing.plaf.*;
[ "javax.swing" ]
javax.swing;
1,634,746
public void setValidator(Validator validator) { this.validator = validator; }
void function(Validator validator) { this.validator = validator; }
/** * Set the validator. * @param validator the validator */
Set the validator
setValidator
{ "repo_name": "jbovet/spring-boot", "path": "spring-boot/src/main/java/org/springframework/boot/bind/YamlConfigurationFactory.java", "license": "apache-2.0", "size": 5237 }
[ "org.springframework.validation.Validator" ]
import org.springframework.validation.Validator;
import org.springframework.validation.*;
[ "org.springframework.validation" ]
org.springframework.validation;
2,880,421
private final boolean fileHasActiveRetention(Connection conn, Statement stmt, int fid) throws SQLException { // Check if retention is enabled if ( isRetentionEnabled() == false) return false; // Check if the file/folder is within the retention period RetentionDetails retDetails = getRetentionExpiryD...
final boolean function(Connection conn, Statement stmt, int fid) throws SQLException { if ( isRetentionEnabled() == false) return false; RetentionDetails retDetails = getRetentionExpiryDateTime(conn, stmt, fid); if ( retDetails == null) return false; return retDetails.isWithinRetentionPeriod(System.currentTimeMillis())...
/** * Determine if the specified file/folder is still within an active retention period * * @param conn Connection * @param stmt Statement * @param fid int * @return boolean * @exception SQLException */
Determine if the specified file/folder is still within an active retention period
fileHasActiveRetention
{ "repo_name": "loftuxab/community-edition-old", "path": "projects/alfresco-jlan/source/java/org/alfresco/jlan/server/filesys/db/mysql/MySQLDBInterface.java", "license": "lgpl-3.0", "size": 104504 }
[ "java.sql.Connection", "java.sql.SQLException", "java.sql.Statement", "org.alfresco.jlan.server.filesys.db.RetentionDetails" ]
import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import org.alfresco.jlan.server.filesys.db.RetentionDetails;
import java.sql.*; import org.alfresco.jlan.server.filesys.db.*;
[ "java.sql", "org.alfresco.jlan" ]
java.sql; org.alfresco.jlan;
530,372
public Map<String, Object> updateEntry(URL entryUrl, Map<String, Object> mapEntry) throws FeedServerClientException { try { log.info("updating entry " + entryUrl); FeedServerEntry entry = service.update(entryUrl, getEntryFromMap(mapEntry)); return getMapFromEntry(entry); } catch (Malfo...
Map<String, Object> function(URL entryUrl, Map<String, Object> mapEntry) throws FeedServerClientException { try { log.info(STR + entryUrl); FeedServerEntry entry = service.update(entryUrl, getEntryFromMap(mapEntry)); return getMapFromEntry(entry); } catch (MalformedURLException e) { throw new RuntimeException(STR, e); ...
/** * Updates the entry at URL. * * @param entryUrl URL to entry to be updated. * @param mapEntry a "typeless" map representing a feed entry. * @return Entity updated * @throws FeedServerClientException if any feed communication issues occur or * the URL is malformed. */
Updates the entry at URL
updateEntry
{ "repo_name": "jyang/google-feedserver", "path": "src/java/com/google/feedserver/client/TypelessFeedServerClient.java", "license": "apache-2.0", "size": 15704 }
[ "com.google.feedserver.util.FeedServerClientException", "com.google.gdata.util.ResourceNotFoundException", "com.google.gdata.util.ServiceException", "java.io.IOException", "java.net.MalformedURLException", "java.util.Map" ]
import com.google.feedserver.util.FeedServerClientException; import com.google.gdata.util.ResourceNotFoundException; import com.google.gdata.util.ServiceException; import java.io.IOException; import java.net.MalformedURLException; import java.util.Map;
import com.google.feedserver.util.*; import com.google.gdata.util.*; import java.io.*; import java.net.*; import java.util.*;
[ "com.google.feedserver", "com.google.gdata", "java.io", "java.net", "java.util" ]
com.google.feedserver; com.google.gdata; java.io; java.net; java.util;
640,014
public void reload() { this.reasons.clear(); this.jail_commands_enable.clear(); this.mute_commands_disable.clear(); this.users_cache.cleanUp(); this.ips_cache.cleanUp(); this.reasons.putAll(this.plugin.getConfigs().getSanctions()); this.jail_commands_enable.addAll(this.plugin.getConfigs().ge...
void function() { this.reasons.clear(); this.jail_commands_enable.clear(); this.mute_commands_disable.clear(); this.users_cache.cleanUp(); this.ips_cache.cleanUp(); this.reasons.putAll(this.plugin.getConfigs().getSanctions()); this.jail_commands_enable.addAll(this.plugin.getConfigs().getJailCommandsEnable()); this.mute...
/** * Rechargement : Vide le cache et recharge tous les joueurs */
Rechargement : Vide le cache et recharge tous les joueurs
reload
{ "repo_name": "EverCraft/EverSanctions", "path": "src/main/java/fr/evercraft/eversanctions/service/ESanctionService.java", "license": "gpl-3.0", "size": 8415 }
[ "fr.evercraft.eversanctions.service.subject.EUserSubject" ]
import fr.evercraft.eversanctions.service.subject.EUserSubject;
import fr.evercraft.eversanctions.service.subject.*;
[ "fr.evercraft.eversanctions" ]
fr.evercraft.eversanctions;
2,795,274
public List<Company> getAll() { return new ArrayList<>(companies.values()); }
List<Company> function() { return new ArrayList<>(companies.values()); }
/** * Gets the all companies. * * @return the all companies */
Gets the all companies
getAll
{ "repo_name": "amarcinkowski/spark-rest-service", "path": "src/main/java/com/github/amarcinkowski/sparkrestservice/CompanyService.java", "license": "mit", "size": 2553 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,670,327
private JSONObject emitAttributes(ObjectName objName) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); JSONObject resp = new JSONObject(); if (mBeanInfo != null) { MBeanAttrib...
JSONObject function(ObjectName objName) throws Exception { MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer(); MBeanInfo mBeanInfo = mBeanServer.getMBeanInfo(objName); JSONObject resp = new JSONObject(); if (mBeanInfo != null) { MBeanAttributeInfo[] attrs = mBeanInfo.getAttributes(); if (attrs != null...
/** * Generate JSON for the MBean attributes * * @return * @throws Exception */
Generate JSON for the MBean attributes
emitAttributes
{ "repo_name": "brharrington/karyon", "path": "karyon2-admin-web/src/main/java/netflix/adminresources/resources/jmx/JMXResource.java", "license": "apache-2.0", "size": 13878 }
[ "java.lang.management.ManagementFactory", "java.util.ArrayList", "java.util.List", "javax.management.Attribute", "javax.management.AttributeList", "javax.management.MBeanAttributeInfo", "javax.management.MBeanInfo", "javax.management.MBeanServer", "javax.management.ObjectName", "javax.management.o...
import java.lang.management.ManagementFactory; import java.util.ArrayList; import java.util.List; import javax.management.Attribute; import javax.management.AttributeList; import javax.management.MBeanAttributeInfo; import javax.management.MBeanInfo; import javax.management.MBeanServer; import javax.management.ObjectNa...
import java.lang.management.*; import java.util.*; import javax.management.*; import javax.management.openmbean.*; import org.codehaus.jettison.json.*;
[ "java.lang", "java.util", "javax.management", "org.codehaus.jettison" ]
java.lang; java.util; javax.management; org.codehaus.jettison;
1,013,148
public void onAfterRemove(Cache.Entry<K, V> entry);
void function(Cache.Entry<K, V> entry);
/** * This method is called after value has been removed. * <p> * Implementations should not execute any complex logic, * including locking, networking or cache operations, * as it may lead to deadlock, since this method is called * from sensitive synchronization blocks. * <p> * ...
This method is called after value has been removed. Implementations should not execute any complex logic, including locking, networking or cache operations, as it may lead to deadlock, since this method is called from sensitive synchronization blocks. This method should not throw any exception
onAfterRemove
{ "repo_name": "dlnufox/ignite", "path": "modules/core/src/main/java/org/apache/ignite/cache/CacheInterceptor.java", "license": "apache-2.0", "size": 5226 }
[ "javax.cache.Cache" ]
import javax.cache.Cache;
import javax.cache.*;
[ "javax.cache" ]
javax.cache;
1,057,867
@Path("{role-name}/composites") @DELETE @Consumes(MediaType.APPLICATION_JSON) public void deleteComposites( final @PathParam("role-name") String roleName, List<RoleRepresentation> roles) { auth.roles().requireManage(roleConta...
@Path(STR) @Consumes(MediaType.APPLICATION_JSON) void function( final @PathParam(STR) String roleName, List<RoleRepresentation> roles) { auth.roles().requireManage(roleContainer); RoleModel role = roleContainer.getRole(roleName); if (role == null) { throw new NotFoundException(STR); } deleteComposites(adminEvent, uriIn...
/** * Remove roles from the role's composite * * @param roleName role's name (not id!) * @param roles roles to remove */
Remove roles from the role's composite
deleteComposites
{ "repo_name": "agolPL/keycloak", "path": "services/src/main/java/org/keycloak/services/resources/admin/RoleContainerResource.java", "license": "apache-2.0", "size": 12828 }
[ "java.util.List", "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.PathParam", "javax.ws.rs.core.MediaType", "org.jboss.resteasy.spi.NotFoundException", "org.keycloak.models.RoleModel", "org.keycloak.representations.idm.RoleRepresentation" ]
import java.util.List; import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.PathParam; import javax.ws.rs.core.MediaType; import org.jboss.resteasy.spi.NotFoundException; import org.keycloak.models.RoleModel; import org.keycloak.representations.idm.RoleRepresentation;
import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.jboss.resteasy.spi.*; import org.keycloak.models.*; import org.keycloak.representations.idm.*;
[ "java.util", "javax.ws", "org.jboss.resteasy", "org.keycloak.models", "org.keycloak.representations" ]
java.util; javax.ws; org.jboss.resteasy; org.keycloak.models; org.keycloak.representations;
2,086,788
Profile updateProfile(Profile profile, Player player);
Profile updateProfile(Profile profile, Player player);
/** * Update the profile with the latest data from player instance. */
Update the profile with the latest data from player instance
updateProfile
{ "repo_name": "final60/crm-profile", "path": "src/interfaces/Manager.java", "license": "gpl-3.0", "size": 879 }
[ "org.bukkit.entity.Player" ]
import org.bukkit.entity.Player;
import org.bukkit.entity.*;
[ "org.bukkit.entity" ]
org.bukkit.entity;
1,086,908
private void dropStorageDescriptors(List<Object> storageDescriptorIdList) throws MetaException { if (storageDescriptorIdList.isEmpty()) { return; } String queryText; String sdIds = getIdListForIn(storageDescriptorIdList); // Get the corresponding SKEWED_STRING_LIST_ID data queryText = ...
void function(List<Object> storageDescriptorIdList) throws MetaException { if (storageDescriptorIdList.isEmpty()) { return; } String queryText; String sdIds = getIdListForIn(storageDescriptorIdList); queryText = STR + SKEWED_VALUES + ".\"STRING_LIST_ID_EID\" " + STR + SKEWED_VALUES + " " + STR + SKEWED_VALUES + ".\"SD_...
/** * Drops SD-s. Should be called with the list short enough to not trip up Oracle/etc. * @param storageDescriptorIdList The storage descriptor identifiers to drop * @throws MetaException If there is an SQL exception during the execution it converted to * MetaException */
Drops SD-s. Should be called with the list short enough to not trip up Oracle/etc
dropStorageDescriptors
{ "repo_name": "nishantmonu51/hive", "path": "standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/MetaStoreDirectSql.java", "license": "apache-2.0", "size": 138839 }
[ "java.sql.SQLException", "java.util.ArrayList", "java.util.List", "javax.jdo.Query", "org.apache.hadoop.hive.metastore.api.MetaException" ]
import java.sql.SQLException; import java.util.ArrayList; import java.util.List; import javax.jdo.Query; import org.apache.hadoop.hive.metastore.api.MetaException;
import java.sql.*; import java.util.*; import javax.jdo.*; import org.apache.hadoop.hive.metastore.api.*;
[ "java.sql", "java.util", "javax.jdo", "org.apache.hadoop" ]
java.sql; java.util; javax.jdo; org.apache.hadoop;
2,791,051
public void setCommentsList(EList newValue);
void function(EList newValue);
/** * Defines a new commentsList * @param newValue the new commentsList to set * */
Defines a new commentsList
setCommentsList
{ "repo_name": "prabushi/devstudio-tooling-esb", "path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src-gen/org/wso2/developerstudio/eclipse/gmf/esb/parts/RMSequenceMediatorPropertiesEditionPart.java", "license": "apache-2.0", "size": 2298 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
314,561
@PUT @Path("") public void modificarPersona(Persona p) { // El framework hace la traducción JSON - Persona automáticamente personaBusiness.modificarPersona(p); }
@Path("") void function(Persona p) { personaBusiness.modificarPersona(p); }
/** * PUT /personas * @return */
PUT /personas
modificarPersona
{ "repo_name": "camposer/curso_cxf", "path": "src/demo/spring/service/PersonaService.java", "license": "gpl-2.0", "size": 1620 }
[ "javax.ws.rs.Path" ]
import javax.ws.rs.Path;
import javax.ws.rs.*;
[ "javax.ws" ]
javax.ws;
1,174,172
@Schema(required = true, description = "Node ID") public Long getId() { return id; }
@Schema(required = true, description = STR) Long function() { return id; }
/** * Node ID * @return id **/
Node ID
getId
{ "repo_name": "iterate-ch/cyberduck", "path": "dracoon/src/main/java/ch/cyberduck/core/sds/io/swagger/client/model/SubscribedNode.java", "license": "gpl-3.0", "size": 4308 }
[ "io.swagger.v3.oas.annotations.media.Schema" ]
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.*;
[ "io.swagger.v3" ]
io.swagger.v3;
789,372
private static boolean containedBeforeIndex(final List<View> views, final View view, final int maxIndex) { for (int i = 0; i < maxIndex; i++) { if (views.get(i) == view) { return true; } } return false; }
static boolean function(final List<View> views, final View view, final int maxIndex) { for (int i = 0; i < maxIndex; i++) { if (views.get(i) == view) { return true; } } return false; }
/** * Does a linear search through views for view, limited to maxIndex. */
Does a linear search through views for view, limited to maxIndex
containedBeforeIndex
{ "repo_name": "aosp-mirror/platform_frameworks_support", "path": "fragment/src/main/java/androidx/fragment/app/FragmentTransitionImpl.java", "license": "apache-2.0", "size": 14966 }
[ "android.view.View", "java.util.List" ]
import android.view.View; import java.util.List;
import android.view.*; import java.util.*;
[ "android.view", "java.util" ]
android.view; java.util;
2,061,968
private long getRequestContentLength(HttpURLConnection connection) { String lengthString = connection.getRequestProperty( HeaderConstants.CONTENT_LENGTH); if (lengthString != null){ return Long.parseLong(lengthString); } else{ return 0; } }
long function(HttpURLConnection connection) { String lengthString = connection.getRequestProperty( HeaderConstants.CONTENT_LENGTH); if (lengthString != null){ return Long.parseLong(lengthString); } else{ return 0; } }
/** * Get the content length of the request in the given HTTP connection. * @param connection The connection. * @return The content length, or zero if not found. */
Get the content length of the request in the given HTTP connection
getRequestContentLength
{ "repo_name": "jonathangizmo/HadoopDistJ", "path": "hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azure/metrics/ResponseReceivedMetricUpdater.java", "license": "mit", "size": 5562 }
[ "com.microsoft.windowsazure.storage.Constants", "java.net.HttpURLConnection" ]
import com.microsoft.windowsazure.storage.Constants; import java.net.HttpURLConnection;
import com.microsoft.windowsazure.storage.*; import java.net.*;
[ "com.microsoft.windowsazure", "java.net" ]
com.microsoft.windowsazure; java.net;
732,590
public static ContentProviderOperation buildShowOp(Show show, boolean isNew) { ContentValues values = new ContentValues(); values = putCommonShowValues(show, values); if (isNew) { values.put(Shows._ID, show.tvdbId); values.put(Shows.FAVORITE, show.favorite); ...
static ContentProviderOperation function(Show show, boolean isNew) { ContentValues values = new ContentValues(); values = putCommonShowValues(show, values); if (isNew) { values.put(Shows._ID, show.tvdbId); values.put(Shows.FAVORITE, show.favorite); values.put(Shows.HIDDEN, show.hidden); if (show.checkInGetGlueId != nul...
/** * Builds a {@link ContentProviderOperation} for inserting or updating a show (depending on * {@code isNew}. */
Builds a <code>ContentProviderOperation</code> for inserting or updating a show (depending on isNew
buildShowOp
{ "repo_name": "fr0609/SeriesGuide", "path": "SeriesGuide/src/main/java/com/battlelancer/seriesguide/util/DBUtils.java", "license": "apache-2.0", "size": 33982 }
[ "android.content.ContentProviderOperation", "android.content.ContentValues", "com.battlelancer.seriesguide.dataliberation.model.Show", "com.battlelancer.seriesguide.provider.SeriesGuideContract" ]
import android.content.ContentProviderOperation; import android.content.ContentValues; import com.battlelancer.seriesguide.dataliberation.model.Show; import com.battlelancer.seriesguide.provider.SeriesGuideContract;
import android.content.*; import com.battlelancer.seriesguide.dataliberation.model.*; import com.battlelancer.seriesguide.provider.*;
[ "android.content", "com.battlelancer.seriesguide" ]
android.content; com.battlelancer.seriesguide;
121,976
protected Element doStage4(WebSession s) throws Exception { makeSuccess(s); ElementContainer ec = new ElementContainer(); ec.addElement(new H1().addElement("Thanks for coming!")); ec.addElement(new BR()); ec.addElement(new H1() .addElement("Please remember...
Element function(WebSession s) throws Exception { makeSuccess(s); ElementContainer ec = new ElementContainer(); ec.addElement(new H1().addElement(STR)); ec.addElement(new BR()); ec.addElement(new H1() .addElement(STR)); return (ec); }
/** * Description of the Method * * @param s * Description of the Parameter * @return Description of the Return Value * @exception Exception * Description of the Exception */
Description of the Method
doStage4
{ "repo_name": "RIGS-IT/sonar-xanitizer", "path": "src/test/resources/webgoat/plugin_extracted/challenge-1.0/org/owasp/webgoat/plugin/ChallengeScreen.java", "license": "apache-2.0", "size": 26253 }
[ "org.apache.ecs.Element", "org.apache.ecs.ElementContainer", "org.owasp.webgoat.session.WebSession" ]
import org.apache.ecs.Element; import org.apache.ecs.ElementContainer; import org.owasp.webgoat.session.WebSession;
import org.apache.ecs.*; import org.owasp.webgoat.session.*;
[ "org.apache.ecs", "org.owasp.webgoat" ]
org.apache.ecs; org.owasp.webgoat;
690,242
@Override public void map(ImmutableBytesWritable key, Result value, Context context) throws IOException, InterruptedException { byte[][] keyVals = extractKeyValues(value); if(keyVals != null) { ImmutableBytesWritable tKey = createGroupKey(keyVals); context.write(tKey, value); } }
void function(ImmutableBytesWritable key, Result value, Context context) throws IOException, InterruptedException { byte[][] keyVals = extractKeyValues(value); if(keyVals != null) { ImmutableBytesWritable tKey = createGroupKey(keyVals); context.write(tKey, value); } }
/** * Extract the grouping columns from value to construct a new key. Pass the * new key and value to reduce. If any of the grouping columns are not found * in the value, the record is skipped. * * @param key The current key. * @param value The current value. * @param context The current context...
Extract the grouping columns from value to construct a new key. Pass the new key and value to reduce. If any of the grouping columns are not found in the value, the record is skipped
map
{ "repo_name": "Guavus/hbase", "path": "hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/GroupingTableMapper.java", "license": "apache-2.0", "size": 5991 }
[ "java.io.IOException", "org.apache.hadoop.hbase.client.Result", "org.apache.hadoop.hbase.io.ImmutableBytesWritable" ]
import java.io.IOException; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.io.ImmutableBytesWritable;
import java.io.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.io.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,411,147
public ServiceResponse<Order> getOrderById(String orderId) throws ServiceException, IOException, IllegalArgumentException { if (orderId == null) { throw new IllegalArgumentException("Parameter orderId is required and cannot be null."); } Call<ResponseBody> call = service.getOrder...
ServiceResponse<Order> function(String orderId) throws ServiceException, IOException, IllegalArgumentException { if (orderId == null) { throw new IllegalArgumentException(STR); } Call<ResponseBody> call = service.getOrderById(orderId); return getOrderByIdDelegate(call.execute()); }
/** * Find purchase order by ID. * For valid response try integer IDs with value &lt;= 5 or &gt; 10. Other values will generated exceptions. * * @param orderId ID of pet that needs to be fetched * @throws ServiceException exception thrown from REST call * @throws IOException exception thro...
Find purchase order by ID. For valid response try integer IDs with value &lt;= 5 or &gt; 10. Other values will generated exceptions
getOrderById
{ "repo_name": "stankovski/AutoRest", "path": "Samples/petstore/Java/SwaggerPetstoreImpl.java", "license": "mit", "size": 87369 }
[ "com.microsoft.rest.ServiceException", "com.microsoft.rest.ServiceResponse", "java.io.IOException" ]
import com.microsoft.rest.ServiceException; import com.microsoft.rest.ServiceResponse; import java.io.IOException;
import com.microsoft.rest.*; import java.io.*;
[ "com.microsoft.rest", "java.io" ]
com.microsoft.rest; java.io;
1,771,271
LocalRepository addLocalRepository( LocalRepository repository ) throws RepositoryServiceException;
LocalRepository addLocalRepository( LocalRepository repository ) throws RepositoryServiceException;
/** * Add the local repository * * @param repository the local repository to add * @return LocalRepository the local repository * @throws RepositoryServiceException */
Add the local repository
addLocalRepository
{ "repo_name": "apache/continuum", "path": "continuum-api/src/main/java/org/apache/continuum/repository/RepositoryService.java", "license": "apache-2.0", "size": 3452 }
[ "org.apache.continuum.model.repository.LocalRepository" ]
import org.apache.continuum.model.repository.LocalRepository;
import org.apache.continuum.model.repository.*;
[ "org.apache.continuum" ]
org.apache.continuum;
2,718,750
public void testGetMean() { System.out.println( "getMean" ); ScalarDataDistribution instance = new ScalarDataDistribution( Arrays.asList( 2.0, 1.0, 2.0, 1.0, 0.0 ) ); assertEquals( 1.2, instance.getMean() ); instance = new ScalarDataDistribution( new LinkedL...
void function() { System.out.println( STR ); ScalarDataDistribution instance = new ScalarDataDistribution( Arrays.asList( 2.0, 1.0, 2.0, 1.0, 0.0 ) ); assertEquals( 1.2, instance.getMean() ); instance = new ScalarDataDistribution( new LinkedList<Double>() ); assertEquals( 0.0, instance.getMean() ); }
/** * Test of getMean method, of class ScalarDataDistribution. */
Test of getMean method, of class ScalarDataDistribution
testGetMean
{ "repo_name": "codeaudit/Foundry", "path": "Components/LearningCore/Test/gov/sandia/cognition/statistics/distribution/ScalarDataDistributionTest.java", "license": "bsd-3-clause", "size": 11755 }
[ "java.util.Arrays", "java.util.LinkedList" ]
import java.util.Arrays; import java.util.LinkedList;
import java.util.*;
[ "java.util" ]
java.util;
2,647,311
public String generatePassword() { byte[] ab = new byte[1]; Random r = new Random(); r.nextBytes(ab); return passwordEncoder.encodePassword(new String(ab), null).substring(24); }
String function() { byte[] ab = new byte[1]; Random r = new Random(); r.nextBytes(ab); return passwordEncoder.encodePassword(new String(ab), null).substring(24); }
/** * this has not been factored into the util package or a helper class * because it depends on the PasswordEncoder configured */
this has not been factored into the util package or a helper class because it depends on the PasswordEncoder configured
generatePassword
{ "repo_name": "praxiscomputing/Jtrac", "path": "helpdesk/src/main/java/info/jtrac/JtracImpl.java", "license": "apache-2.0", "size": 37548 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
859,475
@SuppressWarnings({"RegularMethodName", "unused"}) public GyroSensorMode ModeAbstract() { return mode; }
@SuppressWarnings({STR, STR}) GyroSensorMode function() { return mode; }
/** * Returns the current sensing mode of this color sensor. */
Returns the current sensing mode of this color sensor
ModeAbstract
{ "repo_name": "jisqyv/appinventor-sources", "path": "appinventor/components/src/com/google/appinventor/components/runtime/Ev3GyroSensor.java", "license": "apache-2.0", "size": 7074 }
[ "com.google.appinventor.components.common.GyroSensorMode" ]
import com.google.appinventor.components.common.GyroSensorMode;
import com.google.appinventor.components.common.*;
[ "com.google.appinventor" ]
com.google.appinventor;
2,646,992
CommonTree firstChild = (CommonTree) tree.getChild(0); if (isAnyUnaryString(firstChild)) { if (tree.getChildCount() > 1) { throw new ParseException(INVALID_VALUE_FOR_UUID); } String uuidstr = UnaryStringParser.INSTANCE.parse(firstChild, null); ...
CommonTree firstChild = (CommonTree) tree.getChild(0); if (isAnyUnaryString(firstChild)) { if (tree.getChildCount() > 1) { throw new ParseException(INVALID_VALUE_FOR_UUID); } String uuidstr = UnaryStringParser.INSTANCE.parse(firstChild, null); try { return UUID.fromString(uuidstr); } catch (IllegalArgumentException e) ...
/** * Parse a UUID String and get a {@link UUID} in return. * * @param tree * the UUID AST * @param unused * unused * @return a {@link UUID} * @throws ParseException * the AST was malformed */
Parse a UUID String and get a <code>UUID</code> in return
parse
{ "repo_name": "lttng/lttng-scope", "path": "ctfreader/src/main/java/org/eclipse/tracecompass/internal/ctf/core/event/metadata/tsdl/trace/UUIDParser.java", "license": "epl-1.0", "size": 2603 }
[ "java.util.UUID", "org.antlr.runtime.tree.CommonTree", "org.eclipse.tracecompass.ctf.core.event.metadata.ParseException", "org.eclipse.tracecompass.internal.ctf.core.event.metadata.tsdl.UnaryStringParser" ]
import java.util.UUID; import org.antlr.runtime.tree.CommonTree; import org.eclipse.tracecompass.ctf.core.event.metadata.ParseException; import org.eclipse.tracecompass.internal.ctf.core.event.metadata.tsdl.UnaryStringParser;
import java.util.*; import org.antlr.runtime.tree.*; import org.eclipse.tracecompass.ctf.core.event.metadata.*; import org.eclipse.tracecompass.internal.ctf.core.event.metadata.tsdl.*;
[ "java.util", "org.antlr.runtime", "org.eclipse.tracecompass" ]
java.util; org.antlr.runtime; org.eclipse.tracecompass;
2,510,852
public Jid retrieveJID(URI uri) { StringBuilder sb = new StringBuilder(32); String user = uri.getUserInfo(); if (user != null) { sb.append(user); sb.append('@'); } sb.append(uri.getHost()); // Resource contains the leading / String resource = uri.getPath(); if (resource != null && resource.length(...
Jid function(URI uri) { StringBuilder sb = new StringBuilder(32); String user = uri.getUserInfo(); if (user != null) { sb.append(user); sb.append('@'); } sb.append(uri.getHost()); String resource = uri.getPath(); if (resource != null && resource.length() > 0 && !resource.equals("/")) { sb.append(resource); } return Jid...
/** * Gets JID from URI. Returns the full jid including resource * * @param uri * the URI * @return romeo@montague.net */
Gets JID from URI. Returns the full jid including resource
retrieveJID
{ "repo_name": "speedy01/Spark", "path": "core/src/main/java/org/jivesoftware/spark/uri/UriManager.java", "license": "apache-2.0", "size": 7149 }
[ "org.jxmpp.jid.Jid", "org.jxmpp.jid.impl.JidCreate" ]
import org.jxmpp.jid.Jid; import org.jxmpp.jid.impl.JidCreate;
import org.jxmpp.jid.*; import org.jxmpp.jid.impl.*;
[ "org.jxmpp.jid" ]
org.jxmpp.jid;
1,870,317
public void removeMetaData(String key) throws XMPPException, SmackException, InterruptedException { synchronized (this.metaData) { List<String> oldVal = metaData.remove(key); if (oldVal != null) { setStatus(presenceMode, maxChats); } } }
void function(String key) throws XMPPException, SmackException, InterruptedException { synchronized (this.metaData) { List<String> oldVal = metaData.remove(key); if (oldVal != null) { setStatus(presenceMode, maxChats); } } }
/** * Allows the removal of data from the agent's meta data, if the key represents existing data, * the revised meta data will be rebroadcast in an agent's presence broadcast. * * @param key the meta data key. * @throws XMPPException if an exception occurs. * @throws SmackException *...
Allows the removal of data from the agent's meta data, if the key represents existing data, the revised meta data will be rebroadcast in an agent's presence broadcast
removeMetaData
{ "repo_name": "andrey42/Smack", "path": "smack-legacy/src/main/java/org/jivesoftware/smackx/workgroup/agent/AgentSession.java", "license": "apache-2.0", "size": 46759 }
[ "java.util.List", "org.jivesoftware.smack.SmackException", "org.jivesoftware.smack.XMPPException" ]
import java.util.List; import org.jivesoftware.smack.SmackException; import org.jivesoftware.smack.XMPPException;
import java.util.*; import org.jivesoftware.smack.*;
[ "java.util", "org.jivesoftware.smack" ]
java.util; org.jivesoftware.smack;
723,407
public DirectoryStream<Path> getStreamForDirectory(Path dir) throws IOException { try { return Files.newDirectoryStream(dir); } catch (IOException e) { numFileOpenExceptions.mark(); throw e; } }
DirectoryStream<Path> function(Path dir) throws IOException { try { return Files.newDirectoryStream(dir); } catch (IOException e) { numFileOpenExceptions.mark(); throw e; } }
/** * Creates DirectoryStream for give directory. * * @param dir File instance representing specific directory * @return DirectoryStream */
Creates DirectoryStream for give directory
getStreamForDirectory
{ "repo_name": "hmcl/storm-apache", "path": "storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/utils/DirectoryCleaner.java", "license": "apache-2.0", "size": 9851 }
[ "java.io.IOException", "java.nio.file.DirectoryStream", "java.nio.file.Files", "java.nio.file.Path" ]
import java.io.IOException; import java.nio.file.DirectoryStream; import java.nio.file.Files; import java.nio.file.Path;
import java.io.*; import java.nio.file.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
1,388,059
ClassDeclaration decl = f.newClassDeclaration( new JavadocBuilder(f) .inline(Messages.getString("AbstractTextStreamFormatGenerator.javadocClassOverview"), //$NON-NLS-1$ d -> d.text(description), d -> d.linkType(context.resolve(m...
ClassDeclaration decl = f.newClassDeclaration( new JavadocBuilder(f) .inline(Messages.getString(STR), d -> d.text(description), d -> d.linkType(context.resolve(model.getSymbol()))) .toJavadoc(), new AttributeBuilder(f) .Public() .toAttributes(), context.getTypeName(), f.newParameterizedType( context.resolve(AbstractTex...
/** * Emits an implementation of {@link AbstractTextStreamFormat} class as a Java compilation unit. * @param description the format description * @throws IOException if I/O error was occurred while emitting the compilation unit */
Emits an implementation of <code>AbstractTextStreamFormat</code> class as a Java compilation unit
emit
{ "repo_name": "akirakw/asakusafw", "path": "directio-project/asakusa-directio-dmdl/src/main/java/com/asakusafw/dmdl/directio/text/AbstractTextStreamFormatGenerator.java", "license": "apache-2.0", "size": 26894 }
[ "com.asakusafw.runtime.io.text.directio.AbstractTextStreamFormat", "com.asakusafw.utils.java.model.syntax.ClassDeclaration", "com.asakusafw.utils.java.model.util.AttributeBuilder", "com.asakusafw.utils.java.model.util.JavadocBuilder", "java.util.Collections" ]
import com.asakusafw.runtime.io.text.directio.AbstractTextStreamFormat; import com.asakusafw.utils.java.model.syntax.ClassDeclaration; import com.asakusafw.utils.java.model.util.AttributeBuilder; import com.asakusafw.utils.java.model.util.JavadocBuilder; import java.util.Collections;
import com.asakusafw.runtime.io.text.directio.*; import com.asakusafw.utils.java.model.syntax.*; import com.asakusafw.utils.java.model.util.*; import java.util.*;
[ "com.asakusafw.runtime", "com.asakusafw.utils", "java.util" ]
com.asakusafw.runtime; com.asakusafw.utils; java.util;
1,568,160
public InputStream getContent() { return new ByteArrayInputStream(getContentAsBytes()); }
InputStream function() { return new ByteArrayInputStream(getContentAsBytes()); }
/** * Gets content of the working copy. * * @return content ot the working copy */
Gets content of the working copy
getContent
{ "repo_name": "TypeFox/che", "path": "wsagent/che-core-api-project/src/main/java/org/eclipse/che/api/project/server/EditorWorkingCopy.java", "license": "epl-1.0", "size": 4593 }
[ "java.io.ByteArrayInputStream", "java.io.InputStream" ]
import java.io.ByteArrayInputStream; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,656,673
@Override public Font getFont() { return _g2.getFont(); }
Font function() { return _g2.getFont(); }
/** * Gets the current font. * * @return this graphics context's current font. * @see Font * @see Graphics#setFont(Font) */
Gets the current font
getFont
{ "repo_name": "debrief/debrief", "path": "org.mwc.cmap.legacy/src/MWC/GUI/Canvas/MetafileCanvasGraphics2d.java", "license": "epl-1.0", "size": 74756 }
[ "java.awt.Font" ]
import java.awt.Font;
import java.awt.*;
[ "java.awt" ]
java.awt;
895,203
private SourceSection srcFromToken(Token token) { return source.createSection(token.val, token.charPos, token.val.length()); }
SourceSection function(Token token) { return source.createSection(token.val, token.charPos, token.val.length()); }
/** * Creates source description of a single token. */
Creates source description of a single token
srcFromToken
{ "repo_name": "mlvdv/truffle", "path": "truffle/com.oracle.truffle.sl/src/com/oracle/truffle/sl/parser/SLNodeFactory.java", "license": "gpl-2.0", "size": 20955 }
[ "com.oracle.truffle.api.source.SourceSection" ]
import com.oracle.truffle.api.source.SourceSection;
import com.oracle.truffle.api.source.*;
[ "com.oracle.truffle" ]
com.oracle.truffle;
167,436
@Autowired public void setContext(ApplicationContext context) { this.context = context; ((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("session", new SessionScope()); ((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope("request", new R...
void function(ApplicationContext context) { this.context = context; ((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(STR, new SessionScope()); ((DefaultListableBeanFactory) context.getAutowireCapableBeanFactory()).registerScope(STR, new RequestScope()); }
/** * Autowired to set the Spring application context. * */
Autowired to set the Spring application context
setContext
{ "repo_name": "didoux/Spring-BowlingDB", "path": "generated/bowling/service/LeagueServiceTest.java", "license": "gpl-2.0", "size": 4842 }
[ "org.springframework.beans.factory.support.DefaultListableBeanFactory", "org.springframework.context.ApplicationContext", "org.springframework.web.context.request.RequestScope", "org.springframework.web.context.request.SessionScope" ]
import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.context.ApplicationContext; import org.springframework.web.context.request.RequestScope; import org.springframework.web.context.request.SessionScope;
import org.springframework.beans.factory.support.*; import org.springframework.context.*; import org.springframework.web.context.request.*;
[ "org.springframework.beans", "org.springframework.context", "org.springframework.web" ]
org.springframework.beans; org.springframework.context; org.springframework.web;
854,194
private void getHaiku(HttpServletResponse response, String haikuId) throws IOException { Haiku haiku = DataStore.loadHaiku(haikuId); if (haiku == null) { logger.log(Level.INFO, "The requested haiku does not exist; return 404"); // The provided id was invalid response.setStatus(HttpServletRes...
void function(HttpServletResponse response, String haikuId) throws IOException { Haiku haiku = DataStore.loadHaiku(haikuId); if (haiku == null) { logger.log(Level.INFO, STR); response.setStatus(HttpServletResponse.SC_NOT_FOUND); return; } logger.log(Level.INFO, STR + haikuId); writeHaikuToResponse(response, haiku); }
/** * Returns a 200 with the specified haiku, if it exists, or a 404 if it does not. */
Returns a 200 with the specified haiku, if it exists, or a 404 if it does not
getHaiku
{ "repo_name": "googlearchive/gplus-haiku-server-java", "path": "src/com/google/plus/samples/haikuplus/HaikuServlet.java", "license": "apache-2.0", "size": 17388 }
[ "com.google.plus.samples.haikuplus.model.DataStore", "com.google.plus.samples.haikuplus.model.Haiku", "java.io.IOException", "java.util.logging.Level", "javax.servlet.http.HttpServletResponse" ]
import com.google.plus.samples.haikuplus.model.DataStore; import com.google.plus.samples.haikuplus.model.Haiku; import java.io.IOException; import java.util.logging.Level; import javax.servlet.http.HttpServletResponse;
import com.google.plus.samples.haikuplus.model.*; import java.io.*; import java.util.logging.*; import javax.servlet.http.*;
[ "com.google.plus", "java.io", "java.util", "javax.servlet" ]
com.google.plus; java.io; java.util; javax.servlet;
799,243
@Override public Element toXMLElement() { Element result = createNewRootElement(getXMLElementTagName()); result.setAttribute("colony", colonyId); result.setAttribute("unit", builderId); return result; }
Element function() { Element result = createNewRootElement(getXMLElementTagName()); result.setAttribute(STR, colonyId); result.setAttribute("unit", builderId); return result; }
/** * Convert this JoinColonyMessage to XML. * * @return The XML representation of this message. */
Convert this JoinColonyMessage to XML
toXMLElement
{ "repo_name": "tectronics/reformationofeurope", "path": "src/net/sf/freecol/common/networking/JoinColonyMessage.java", "license": "gpl-2.0", "size": 4771 }
[ "org.w3c.dom.Element" ]
import org.w3c.dom.Element;
import org.w3c.dom.*;
[ "org.w3c.dom" ]
org.w3c.dom;
1,871,159
protected Connection createConnection() throws JMSException { if (isPubSubDomain()) { return ((TopicConnectionFactory) getConnectionFactory()).createTopicConnection(); } else { return ((QueueConnectionFactory) getConnectionFactory()).createQueueConnection(); } }
Connection function() throws JMSException { if (isPubSubDomain()) { return ((TopicConnectionFactory) getConnectionFactory()).createTopicConnection(); } else { return ((QueueConnectionFactory) getConnectionFactory()).createQueueConnection(); } }
/** * This implementation overrides the superclass method to use JMS 1.0.2 API. */
This implementation overrides the superclass method to use JMS 1.0.2 API
createConnection
{ "repo_name": "dachengxi/spring1.1.1_source", "path": "src/org/springframework/jms/core/JmsTemplate102.java", "license": "mit", "size": 7744 }
[ "javax.jms.Connection", "javax.jms.JMSException", "javax.jms.QueueConnectionFactory", "javax.jms.TopicConnectionFactory" ]
import javax.jms.Connection; import javax.jms.JMSException; import javax.jms.QueueConnectionFactory; import javax.jms.TopicConnectionFactory;
import javax.jms.*;
[ "javax.jms" ]
javax.jms;
1,022,627
private List<TaskItem> executeQuery(WorkflowInstanceSearchParameter wisp) throws PersistenceException { List<TaskItem> instances = new ArrayList<TaskItem>(); if (wisp.getDefinitionParameters().isEmpty()) { NabuccoQuery<TaskItem> query = this.createQuery(wisp, null); this.ad...
List<TaskItem> function(WorkflowInstanceSearchParameter wisp) throws PersistenceException { List<TaskItem> instances = new ArrayList<TaskItem>(); if (wisp.getDefinitionParameters().isEmpty()) { NabuccoQuery<TaskItem> query = this.createQuery(wisp, null); this.addInstanceParameters(query, wisp); instances.addAll(query.g...
/** * Execute the complex query with workflow definition parameters. * * @param wisp * the workflow instance search parameter * * @throws PersistenceException * when the query execution raised an exception */
Execute the complex query with workflow definition parameters
executeQuery
{ "repo_name": "NABUCCO/org.nabucco.framework.workflow", "path": "org.nabucco.framework.workflow.impl.service/src/main/man/org/nabucco/framework/workflow/impl/service/datatype/search/SearchTasksServiceHandlerImpl.java", "license": "epl-1.0", "size": 12089 }
[ "java.util.ArrayList", "java.util.List", "org.nabucco.framework.base.facade.exception.persistence.PersistenceException", "org.nabucco.framework.base.impl.service.maintain.NabuccoQuery", "org.nabucco.framework.workflow.facade.datatype.definition.search.WorkflowDefinitionSearchParameter", "org.nabucco.frame...
import java.util.ArrayList; import java.util.List; import org.nabucco.framework.base.facade.exception.persistence.PersistenceException; import org.nabucco.framework.base.impl.service.maintain.NabuccoQuery; import org.nabucco.framework.workflow.facade.datatype.definition.search.WorkflowDefinitionSearchParameter; import ...
import java.util.*; import org.nabucco.framework.base.facade.exception.persistence.*; import org.nabucco.framework.base.impl.service.maintain.*; import org.nabucco.framework.workflow.facade.datatype.definition.search.*; import org.nabucco.framework.workflow.facade.datatype.instance.search.*; import org.nabucco.framewor...
[ "java.util", "org.nabucco.framework" ]
java.util; org.nabucco.framework;
2,147,373
@Test(expectedExceptions = { LDAPException.class }) public void testDecodeControlValueSequenceInvalidPreCommitValidationLevel() throws Exception { final ASN1Sequence valueSequence = new ASN1Sequence( new ASN1OctetString((byte) 0x80, "uniqueness-id"), new ASN1Set((byte) 0xA1, new ASN...
@Test(expectedExceptions = { LDAPException.class }) void function() throws Exception { final ASN1Sequence valueSequence = new ASN1Sequence( new ASN1OctetString((byte) 0x80, STR), new ASN1Set((byte) 0xA1, new ASN1OctetString("uid")), new ASN1Enumerated((byte) 0x86, 12345)); new UniquenessRequestControl(new Control(STR, ...
/** * Tests the behavior when trying to decode a control whose value sequence has * an invalid multiple pre-commit validation level value. * * @throws Exception If an unexpected problem occurs. */
Tests the behavior when trying to decode a control whose value sequence has an invalid multiple pre-commit validation level value
testDecodeControlValueSequenceInvalidPreCommitValidationLevel
{ "repo_name": "UnboundID/ldapsdk", "path": "tests/unit/src/com/unboundid/ldap/sdk/unboundidds/controls/UniquenessRequestControlTestCase.java", "license": "gpl-2.0", "size": 15079 }
[ "com.unboundid.asn1.ASN1Enumerated", "com.unboundid.asn1.ASN1OctetString", "com.unboundid.asn1.ASN1Sequence", "com.unboundid.asn1.ASN1Set", "com.unboundid.ldap.sdk.Control", "com.unboundid.ldap.sdk.LDAPException", "org.testng.annotations.Test" ]
import com.unboundid.asn1.ASN1Enumerated; import com.unboundid.asn1.ASN1OctetString; import com.unboundid.asn1.ASN1Sequence; import com.unboundid.asn1.ASN1Set; import com.unboundid.ldap.sdk.Control; import com.unboundid.ldap.sdk.LDAPException; import org.testng.annotations.Test;
import com.unboundid.asn1.*; import com.unboundid.ldap.sdk.*; import org.testng.annotations.*;
[ "com.unboundid.asn1", "com.unboundid.ldap", "org.testng.annotations" ]
com.unboundid.asn1; com.unboundid.ldap; org.testng.annotations;
1,575,610
public GuestbookResponse modifyDatafileAndFormat(GuestbookResponse in, FileMetadata fm, String format, ExternalTool externalTool) { if (in != null && externalTool != null) { in.setExternalTool(externalTool); } return modifyDatafileAndFormat(in, fm, format); }
GuestbookResponse function(GuestbookResponse in, FileMetadata fm, String format, ExternalTool externalTool) { if (in != null && externalTool != null) { in.setExternalTool(externalTool); } return modifyDatafileAndFormat(in, fm, format); }
/** * This method was added because on the dataset page when a popup is * required, ExternalTool is null in the poup itself. We store ExternalTool * in the GuestbookResponse as a transient variable so we have access to it * later in the popup. */
This method was added because on the dataset page when a popup is required, ExternalTool is null in the poup itself. We store ExternalTool in the GuestbookResponse as a transient variable so we have access to it later in the popup
modifyDatafileAndFormat
{ "repo_name": "JayanthyChengan/dataverse", "path": "src/main/java/edu/harvard/iq/dataverse/GuestbookResponseServiceBean.java", "license": "apache-2.0", "size": 40458 }
[ "edu.harvard.iq.dataverse.externaltools.ExternalTool" ]
import edu.harvard.iq.dataverse.externaltools.ExternalTool;
import edu.harvard.iq.dataverse.externaltools.*;
[ "edu.harvard.iq" ]
edu.harvard.iq;
448,090
public static boolean isAllAttested(String requestId){ HOSTDAO attestationDao = new HOSTDAO(); List<AttestRequest> attestRequests = attestationDao.getRequestsByRequestId(requestId); for (AttestRequest attestRequest : attestRequests){ if (attestRequest.getResult() == null) return false; } retu...
static boolean function(String requestId){ HOSTDAO attestationDao = new HOSTDAO(); List<AttestRequest> attestRequests = attestationDao.getRequestsByRequestId(requestId); for (AttestRequest attestRequest : attestRequests){ if (attestRequest.getResult() == null) return false; } return true; }
/** * decide whether all hosts has attested for a given requestId. * @param requestId of interest * @return true if all has attested, else false */
decide whether all hosts has attested for a given requestId
isAllAttested
{ "repo_name": "baaltommysu/OpenAttestation", "path": "Source/AttestationService/src/com/intel/openAttestation/AttestationService/resource/HOSTResource.java", "license": "bsd-3-clause", "size": 43735 }
[ "gov.niarl.hisAppraiser.hibernate.domain.AttestRequest", "java.util.List" ]
import gov.niarl.hisAppraiser.hibernate.domain.AttestRequest; import java.util.List;
import gov.niarl.*; import java.util.*;
[ "gov.niarl", "java.util" ]
gov.niarl; java.util;
447,186
@Override public void enterClass_def(@NotNull FunctionParser.Class_defContext ctx) { }
@Override public void enterClass_def(@NotNull FunctionParser.Class_defContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
exitInitializer_list
{ "repo_name": "octopus-platform/joern", "path": "projects/extensions/joern-fuzzyc/src/main/java/antlr/FunctionBaseListener.java", "license": "lgpl-3.0", "size": 42232 }
[ "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;
647,364
@Override public void setMapConfigValues( final int legendHeight, float minValue, float maxValue, final String unitText, final LegendUnitFormat unitFormat) { if (_mapColor.isMinValueOverwrite ) { minValue = _mapColor.overwriteMinValue; if (unitFormat == LegendUnitFor...
void function( final int legendHeight, float minValue, float maxValue, final String unitText, final LegendUnitFormat unitFormat) { if (_mapColor.isMinValueOverwrite ) { minValue = _mapColor.overwriteMinValue; if (unitFormat == LegendUnitFormat.Pace) { minValue *= 60; } } if (_mapColor.isMaxValueOverwrite ) { maxValue =...
/** * Set legend values from a dataserie * * @param legendHeight * @param dataSerie * @param legendProvider * @param unitText */
Set legend values from a dataserie
setMapConfigValues
{ "repo_name": "rhchen/aftrace", "path": "libs/plugins/net.tourbook.common/src/net/tourbook/common/color/GradientColorProvider.java", "license": "epl-1.0", "size": 14005 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
1,069,863
String outputFileName; if (inputFileName.endsWith(".htm")) { outputFileName = inputFileName.substring(0, inputFileName.lastIndexOf(".htm")) + ".tidy.htm"; } else if (inputFileName.endsWith(".html")) { outputFileName = inputFileName.substring(0, inputFileName.lastIndexOf(".html"))...
String outputFileName; if (inputFileName.endsWith(".htm")) { outputFileName = inputFileName.substring(0, inputFileName.lastIndexOf(".htm")) + STR; } else if (inputFileName.endsWith(".html")) { outputFileName = inputFileName.substring(0, inputFileName.lastIndexOf(".html")) + STR; } else { outputFileName = inputFileName ...
/** * Parses the given HTML file. * @param inputFileName * @return the JDOM document of the HTML file * @throws IOException if unable to read the file */
Parses the given HTML file
build
{ "repo_name": "cursem/ScriptCompressor", "path": "ScriptCompressor1.0/src/dk/brics/tajs/htmlparser/HTMLParser.java", "license": "apache-2.0", "size": 12465 }
[ "dk.brics.tajs.options.Options", "java.io.FileInputStream", "java.io.FileOutputStream", "java.io.IOException", "org.jdom.Document", "org.jdom.JDOMException", "org.jdom.contrib.input.LineNumberSAXBuilder", "org.jdom.input.SAXBuilder", "org.w3c.tidy.Tidy" ]
import dk.brics.tajs.options.Options; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import org.jdom.Document; import org.jdom.JDOMException; import org.jdom.contrib.input.LineNumberSAXBuilder; import org.jdom.input.SAXBuilder; import org.w3c.tidy.Tidy;
import dk.brics.tajs.options.*; import java.io.*; import org.jdom.*; import org.jdom.contrib.input.*; import org.jdom.input.*; import org.w3c.tidy.*;
[ "dk.brics.tajs", "java.io", "org.jdom", "org.jdom.contrib", "org.jdom.input", "org.w3c.tidy" ]
dk.brics.tajs; java.io; org.jdom; org.jdom.contrib; org.jdom.input; org.w3c.tidy;
685,085
@Deprecated public Builder addLayer(LayerSpace<? extends Layer> layerSpace, ParameterSpace<Integer> numLayersDistribution, boolean duplicateConfig) { if (!duplicateConfig) throw new IllegalArgumentException("Duplicate Config false not supported"); String layerName = "layer_" + la...
Builder function(LayerSpace<? extends Layer> layerSpace, ParameterSpace<Integer> numLayersDistribution, boolean duplicateConfig) { if (!duplicateConfig) throw new IllegalArgumentException(STR); String layerName = STR + layerSpaces.size(); duplicateConfig = true; layerSpaces.add(new LayerConf(layerSpace, layerName, null...
/** * duplicateConfig not supported. Will always be true * @param layerSpace * @param numLayersDistribution * @param duplicateConfig * @return */
duplicateConfig not supported. Will always be true
addLayer
{ "repo_name": "RobAltena/deeplearning4j", "path": "arbiter/arbiter-deeplearning4j/src/main/java/org/deeplearning4j/arbiter/MultiLayerSpace.java", "license": "apache-2.0", "size": 12591 }
[ "org.deeplearning4j.arbiter.layers.LayerSpace", "org.deeplearning4j.arbiter.optimize.api.ParameterSpace", "org.deeplearning4j.nn.conf.layers.Layer" ]
import org.deeplearning4j.arbiter.layers.LayerSpace; import org.deeplearning4j.arbiter.optimize.api.ParameterSpace; import org.deeplearning4j.nn.conf.layers.Layer;
import org.deeplearning4j.arbiter.layers.*; import org.deeplearning4j.arbiter.optimize.api.*; import org.deeplearning4j.nn.conf.layers.*;
[ "org.deeplearning4j.arbiter", "org.deeplearning4j.nn" ]
org.deeplearning4j.arbiter; org.deeplearning4j.nn;
2,357,791
private void initComponents() { panCapturaTipoFlujo = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); lblDescripcion = new javax.swing.JLabel(); txtDescripcion = new javax.swing.JTextField(); idFlujo = new javax.swing.JLabel(); txtIdTipoFlujo = new jav...
void function() { panCapturaTipoFlujo = new javax.swing.JTabbedPane(); jPanel1 = new javax.swing.JPanel(); lblDescripcion = new javax.swing.JLabel(); txtDescripcion = new javax.swing.JTextField(); idFlujo = new javax.swing.JLabel(); txtIdTipoFlujo = new javax.swing.JTextField(); lblEntradaSalida = new javax.swing.JLabe...
/** * This method is called from within the constructor to initialize the form. * WARNING: Do NOT modify this code. The content of this method is always * regenerated by the Form Editor. */
This method is called from within the constructor to initialize the form. regenerated by the Form Editor
initComponents
{ "repo_name": "julio101290/Inventarios", "path": "Inventarios/src/interfaces/frmTipoFlujo.java", "license": "gpl-2.0", "size": 26290 }
[ "javax.swing.table.DefaultTableModel" ]
import javax.swing.table.DefaultTableModel;
import javax.swing.table.*;
[ "javax.swing" ]
javax.swing;
1,651,940
List getTextualAnnotationsByDate() { if (textualAnnotationsByDate != null) return textualAnnotationsByDate; textualAnnotationsByDate = (List) getTextualAnnotations(); sortAnnotationByDate(textualAnnotationsByDate); return textualAnnotationsByDate; }
List getTextualAnnotationsByDate() { if (textualAnnotationsByDate != null) return textualAnnotationsByDate; textualAnnotationsByDate = (List) getTextualAnnotations(); sortAnnotationByDate(textualAnnotationsByDate); return textualAnnotationsByDate; }
/** * Returns the annotations ordered by date. * * @return See above. */
Returns the annotations ordered by date
getTextualAnnotationsByDate
{ "repo_name": "tp81/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/metadata/editor/EditorModel.java", "license": "gpl-2.0", "size": 128116 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,084,766
private String[] getKeys(JSONObject json, boolean sorted) { @SuppressWarnings("unchecked") Iterator<String> ki = json.keys(); List<String> keys = new ArrayList<String>(json.length()); while (ki.hasNext()) { keys.add(ki.next()); } ...
String[] function(JSONObject json, boolean sorted) { @SuppressWarnings(STR) Iterator<String> ki = json.keys(); List<String> keys = new ArrayList<String>(json.length()); while (ki.hasNext()) { keys.add(ki.next()); } if(sorted) { Collections.sort(keys); } return keys.toArray(new String[keys.size()]); }
/** * Returns the Keys of a JSON Object, optionally sorted */
Returns the Keys of a JSON Object, optionally sorted
getKeys
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/remote-api/source/test-java/org/alfresco/repo/web/scripts/calendar/CalendarRestApiTest.java", "license": "lgpl-3.0", "size": 62921 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.Iterator", "java.util.List", "org.json.JSONObject" ]
import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import org.json.JSONObject;
import java.util.*; import org.json.*;
[ "java.util", "org.json" ]
java.util; org.json;
1,364,490
private static List<WSDLValidationResponseWsdlInfoEndpointsDTO> fromEndpointsMapToWSDLValidationResponseEndpointsDTO(Map<String, String> endpoints) { List<WSDLValidationResponseWsdlInfoEndpointsDTO> endpointsDTOList = new ArrayList<>(); for (String endpointName : endpoints.keySet()) { ...
static List<WSDLValidationResponseWsdlInfoEndpointsDTO> function(Map<String, String> endpoints) { List<WSDLValidationResponseWsdlInfoEndpointsDTO> endpointsDTOList = new ArrayList<>(); for (String endpointName : endpoints.keySet()) { WSDLValidationResponseWsdlInfoEndpointsDTO endpointDTO = new WSDLValidationResponseWsd...
/** * Converts the provided WSDL endpoint map to REST API DTO. * * @param endpoints endpoint map * @return converted map to DTO */
Converts the provided WSDL endpoint map to REST API DTO
fromEndpointsMapToWSDLValidationResponseEndpointsDTO
{ "repo_name": "malinthaprasan/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.rest.api.publisher.v1.common/src/main/java/org/wso2/carbon/apimgt/rest/api/publisher/v1/common/mappings/APIMappingUtil.java", "license": "apache-2.0", "size": 149892 }
[ "java.util.ArrayList", "java.util.List", "java.util.Map", "org.wso2.carbon.apimgt.rest.api.publisher.v1.dto.WSDLValidationResponseWsdlInfoEndpointsDTO" ]
import java.util.ArrayList; import java.util.List; import java.util.Map; import org.wso2.carbon.apimgt.rest.api.publisher.v1.dto.WSDLValidationResponseWsdlInfoEndpointsDTO;
import java.util.*; import org.wso2.carbon.apimgt.rest.api.publisher.v1.dto.*;
[ "java.util", "org.wso2.carbon" ]
java.util; org.wso2.carbon;
155,375
synchronized public Tracker getDefaultTracker() { if (mTracker == null) { GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); // To enable debug logging use: adb shell setprop log.tag.GAv4 DEBUG mTracker = analytics.newTracker(R.xml.global_tracker); } ...
synchronized Tracker function() { if (mTracker == null) { GoogleAnalytics analytics = GoogleAnalytics.getInstance(this); mTracker = analytics.newTracker(R.xml.global_tracker); } return mTracker; }
/** * Gets the default {@link Tracker} for this {@link Application}. * @return tracker */
Gets the default <code>Tracker</code> for this <code>Application</code>
getDefaultTracker
{ "repo_name": "TaRGroup/CoolApk-Console", "path": "app/src/main/java/com/targroup/coolapkconsole/App.java", "license": "gpl-3.0", "size": 2281 }
[ "com.google.android.gms.analytics.GoogleAnalytics", "com.google.android.gms.analytics.Tracker" ]
import com.google.android.gms.analytics.GoogleAnalytics; import com.google.android.gms.analytics.Tracker;
import com.google.android.gms.analytics.*;
[ "com.google.android" ]
com.google.android;
338,549
@Override public USBMonitor getUSBMonitor() { return mUSBMonitor; }
USBMonitor function() { return mUSBMonitor; }
/** * to access from CameraDialog * @return */
to access from CameraDialog
getUSBMonitor
{ "repo_name": "quanhua92/AudioVideoRecorder", "path": "recorduvccamera/src/main/java/com/quan404/recorduvccamera/MainActivity.java", "license": "mit", "size": 30517 }
[ "com.serenegiant.usb.USBMonitor" ]
import com.serenegiant.usb.USBMonitor;
import com.serenegiant.usb.*;
[ "com.serenegiant.usb" ]
com.serenegiant.usb;
1,768,893
protected BasicHttpEntity doDeserialize( final SessionInputBuffer inbuffer, final HttpMessage message) throws HttpException, IOException { BasicHttpEntity entity = new BasicHttpEntity(); long len = this.lenStrategy.determineLength(message); if (len == C...
BasicHttpEntity function( final SessionInputBuffer inbuffer, final HttpMessage message) throws HttpException, IOException { BasicHttpEntity entity = new BasicHttpEntity(); long len = this.lenStrategy.determineLength(message); if (len == ContentLengthStrategy.CHUNKED) { entity.setChunked(true); entity.setContentLength(-...
/** * Creates a {@link BasicHttpEntity} based on properties of the given * message. The content of the entity is created by wrapping * {@link SessionInputBuffer} with a content decoder depending on the * transfer mechanism used by the message. * <p> * This method is called by the p...
Creates a <code>BasicHttpEntity</code> based on properties of the given message. The content of the entity is created by wrapping <code>SessionInputBuffer</code> with a content decoder depending on the transfer mechanism used by the message. This method is called by the public <code>#deserialize(SessionInputBuffer, Htt...
doDeserialize
{ "repo_name": "onedanshow/Screen-Courter", "path": "lib/src/org/apache/http/impl/entity/EntityDeserializer.java", "license": "gpl-3.0", "size": 5813 }
[ "java.io.IOException", "org.apache.http.Header", "org.apache.http.HttpException", "org.apache.http.HttpMessage", "org.apache.http.entity.BasicHttpEntity", "org.apache.http.entity.ContentLengthStrategy", "org.apache.http.impl.io.ChunkedInputStream", "org.apache.http.impl.io.ContentLengthInputStream", ...
import java.io.IOException; import org.apache.http.Header; import org.apache.http.HttpException; import org.apache.http.HttpMessage; import org.apache.http.entity.BasicHttpEntity; import org.apache.http.entity.ContentLengthStrategy; import org.apache.http.impl.io.ChunkedInputStream; import org.apache.http.impl.io.Conte...
import java.io.*; import org.apache.http.*; import org.apache.http.entity.*; import org.apache.http.impl.io.*; import org.apache.http.io.*;
[ "java.io", "org.apache.http" ]
java.io; org.apache.http;
353,159
public VertexSelector selectSimilar(Collection<? extends Vec3D> points) { for (Vec3D v : points) { selection.add(mesh.getClosestVertexToPoint(v)); } return this; }
VertexSelector function(Collection<? extends Vec3D> points) { for (Vec3D v : points) { selection.add(mesh.getClosestVertexToPoint(v)); } return this; }
/** * Selects vertices identical or closest to the ones given in the list of * points. * * @param points * @return itself */
Selects vertices identical or closest to the ones given in the list of points
selectSimilar
{ "repo_name": "ruby-processing/toxiclibs", "path": "src/main/java/toxi/geom/mesh/VertexSelector.java", "license": "lgpl-2.1", "size": 5300 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,023,015
public Pointer getPointer() { return this.image.getPointer(0); }
Pointer function() { return this.image.getPointer(0); }
/** * Return the pointer to the RBD image * * This method is used internally and by the RBD class * to close a RBD image * * @return Pointer */
Return the pointer to the RBD image This method is used internally and by the RBD class to close a RBD image
getPointer
{ "repo_name": "1and1/rados-java", "path": "src/main/java/com/ceph/rbd/RbdImage.java", "license": "apache-2.0", "size": 10916 }
[ "com.sun.jna.Pointer" ]
import com.sun.jna.Pointer;
import com.sun.jna.*;
[ "com.sun.jna" ]
com.sun.jna;
736,200
public static String toHexString(final byte[] originalData) { String encodedString = null; if (originalData != null) { char[] encodedCharacters = Hex.encodeHex(originalData); encodedString = new String(encodedCharacters); } return encodedString; }
static String function(final byte[] originalData) { String encodedString = null; if (originalData != null) { char[] encodedCharacters = Hex.encodeHex(originalData); encodedString = new String(encodedCharacters); } return encodedString; }
/** * Encodes the String value to its corresponding Hex representation. * * @param originalData byte[] data to be encoded. * @return {@link String} Hex representation of the String. */
Encodes the String value to its corresponding Hex representation
toHexString
{ "repo_name": "ungerik/ephesoft", "path": "Ephesoft_Community_Release_4.0.2.0/source/dcma-util/src/main/java/com/ephesoft/dcma/util/EphesoftStringUtil.java", "license": "agpl-3.0", "size": 14606 }
[ "org.apache.commons.codec.binary.Hex" ]
import org.apache.commons.codec.binary.Hex;
import org.apache.commons.codec.binary.*;
[ "org.apache.commons" ]
org.apache.commons;
44,314
public PayRunObject updatePayRun( String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun) throws IOException { try { TypeReference<PayRunObject> typeRef = new TypeReference<PayRunObject>() {}; HttpResponse response = updatePayRunForHttpResponse(accessToken, xeroTenantId,...
PayRunObject function( String accessToken, String xeroTenantId, UUID payRunID, PayRun payRun) throws IOException { try { TypeReference<PayRunObject> typeRef = new TypeReference<PayRunObject>() {}; HttpResponse response = updatePayRunForHttpResponse(accessToken, xeroTenantId, payRunID, payRun); return apiClient.getObjec...
/** * update a pay run * * <p><b>200</b> - search results matching criteria * * <p><b>400</b> - validation error for a bad request * * @param xeroTenantId Xero identifier for Tenant * @param payRunID Identifier for the pay run * @param payRun The payRun parameter * @param accessToken Autho...
update a pay run 200 - search results matching criteria 400 - validation error for a bad request
updatePayRun
{ "repo_name": "SidneyAllen/Xero-Java", "path": "src/main/java/com/xero/api/client/PayrollUkApi.java", "license": "mit", "size": 285506 }
[ "com.fasterxml.jackson.core.type.TypeReference", "com.google.api.client.http.HttpResponse", "com.google.api.client.http.HttpResponseException", "com.xero.api.XeroApiExceptionHandler", "com.xero.models.payrolluk.PayRun", "com.xero.models.payrolluk.PayRunObject", "java.io.IOException" ]
import com.fasterxml.jackson.core.type.TypeReference; import com.google.api.client.http.HttpResponse; import com.google.api.client.http.HttpResponseException; import com.xero.api.XeroApiExceptionHandler; import com.xero.models.payrolluk.PayRun; import com.xero.models.payrolluk.PayRunObject; import java.io.IOException;
import com.fasterxml.jackson.core.type.*; import com.google.api.client.http.*; import com.xero.api.*; import com.xero.models.payrolluk.*; import java.io.*;
[ "com.fasterxml.jackson", "com.google.api", "com.xero.api", "com.xero.models", "java.io" ]
com.fasterxml.jackson; com.google.api; com.xero.api; com.xero.models; java.io;
1,843,990
public Set<AttributeInfo> getAttributes();
Set<AttributeInfo> function();
/** * Returns descriptors of attributes declared by the component or its superclasses. */
Returns descriptors of attributes declared by the component or its superclasses
getAttributes
{ "repo_name": "arnaudsj/carrot2", "path": "core/carrot2-util-attribute/src/org/carrot2/util/attribute/IBindableDescriptor.java", "license": "bsd-3-clause", "size": 1869 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
36,115
private void showFlashToggle(){ if(DISPLAY_FLASH_TOGGLE) flashToggleButton.setVisibility(View.VISIBLE); }
void function(){ if(DISPLAY_FLASH_TOGGLE) flashToggleButton.setVisibility(View.VISIBLE); }
/** * Used to show the FlashToggle button. */
Used to show the FlashToggle button
showFlashToggle
{ "repo_name": "Minitour/crofis-android-uikit", "path": "ui/src/main/java/net/crofis/ui/camera/SquareCameraActivity.java", "license": "apache-2.0", "size": 82716 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,266,477
public List<Integer> getSelectedItems() { List<Integer> items = new ArrayList<>(selectedItems.size()); for (int i = 0; i < selectedItems.size(); ++i) { items.add(selectedItems.keyAt(i)); } return items; }
List<Integer> function() { List<Integer> items = new ArrayList<>(selectedItems.size()); for (int i = 0; i < selectedItems.size(); ++i) { items.add(selectedItems.keyAt(i)); } return items; }
/** * Indicates the list of selected items * * @return List of selected items ids */
Indicates the list of selected items
getSelectedItems
{ "repo_name": "coderaashir/android-client", "path": "mifosng-android/src/main/java/com/mifos/mifosxdroid/core/SelectableAdapter.java", "license": "mpl-2.0", "size": 2097 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
18,117
public org.apache.derby.client.am.ResultSet newNetResultSet(Agent netAgent, org.apache.derby.client.am.MaterialStatement netStatement, Cursor cursor,int qryprctyp,int sqlcsrhld, int qryattscr,int qryattsns,int qryattset,long qryinsid, int actualResultSetType,int actua...
org.apache.derby.client.am.ResultSet function(Agent netAgent, org.apache.derby.client.am.MaterialStatement netStatement, Cursor cursor,int qryprctyp,int sqlcsrhld, int qryattscr,int qryattsns,int qryattset,long qryinsid, int actualResultSetType,int actualResultSetConcurrency, int actualResultSetHoldability) throws SqlE...
/** * returns an instance of org.apache.derby.client.net.NetResultSet */
returns an instance of org.apache.derby.client.net.NetResultSet
newNetResultSet
{ "repo_name": "viaper/DBPlus", "path": "DerbyHodgepodge/java/client/org/apache/derby/client/net/ClientJDBCObjectFactoryImpl40.java", "license": "apache-2.0", "size": 15931 }
[ "org.apache.derby.client.am.Agent", "org.apache.derby.client.am.Cursor", "org.apache.derby.client.am.SqlException" ]
import org.apache.derby.client.am.Agent; import org.apache.derby.client.am.Cursor; import org.apache.derby.client.am.SqlException;
import org.apache.derby.client.am.*;
[ "org.apache.derby" ]
org.apache.derby;
533,259
@Override public void exitTryCatch(@NotNull ErlangParser.TryCatchContext ctx) { }
@Override public void exitTryCatch(@NotNull ErlangParser.TryCatchContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
enterTryCatch
{ "repo_name": "IsThisThePayneResidence/intellidots", "path": "src/main/java/ua/edu/hneu/ast/parsers/ErlangBaseListener.java", "license": "gpl-3.0", "size": 35359 }
[ "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;
559,111
void locatorsDiscovered(List locators);
void locatorsDiscovered(List locators);
/** * Called to indicate that new locators * have been discovered * @param locators a list of InetSocketAddresses of new * locators that have been discovered. */
Called to indicate that new locators have been discovered
locatorsDiscovered
{ "repo_name": "ameybarve15/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/cache/client/internal/LocatorDiscoveryCallback.java", "license": "apache-2.0", "size": 1156 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
966,543
@ApiModelProperty(example = "null", value = "The uploaded CSV status, like 'Processing', 'Completed' or 'Failed'") public String getStatus() { return status; }
@ApiModelProperty(example = "null", value = STR) String function() { return status; }
/** * The uploaded CSV status, like 'Processing', 'Completed' or 'Failed' * @return status **/
The uploaded CSV status, like 'Processing', 'Completed' or 'Failed'
getStatus
{ "repo_name": "artikcloud/artikcloud-java", "path": "src/main/java/cloud/artik/model/UploadStatusEnvelope.java", "license": "apache-2.0", "size": 2078 }
[ "io.swagger.annotations.ApiModelProperty" ]
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.*;
[ "io.swagger.annotations" ]
io.swagger.annotations;
1,482,237
public Mutation setTTL(long ttl) { setAttribute(OP_ATTRIBUTE_TTL, Bytes.toBytes(ttl)); return this; }
Mutation function(long ttl) { setAttribute(OP_ATTRIBUTE_TTL, Bytes.toBytes(ttl)); return this; }
/** * Set the TTL desired for the result of the mutation, in milliseconds. * @param ttl the TTL desired for the result of the mutation, in milliseconds * @return this */
Set the TTL desired for the result of the mutation, in milliseconds
setTTL
{ "repo_name": "toshimasa-nasu/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Mutation.java", "license": "apache-2.0", "size": 16663 }
[ "org.apache.hadoop.hbase.util.Bytes" ]
import org.apache.hadoop.hbase.util.Bytes;
import org.apache.hadoop.hbase.util.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
716,396
public static Object execute( Action action, Capability capability)throws ServiceAssemblingException{ return execute(action.getService(), action.getArgValues(), capability); }
static Object function( Action action, Capability capability)throws ServiceAssemblingException{ return execute(action.getService(), action.getArgValues(), capability); }
/** * Executes the action. * * @param action the action * @param capability the capability * @return the object * @throws ServiceAssemblingException the service assembling exception */
Executes the action
execute
{ "repo_name": "uol-cs-multiot/em4so-java", "path": "core/src/main/java/org/mp/em4so/services/ServiceAssembler.java", "license": "apache-2.0", "size": 19262 }
[ "org.mp.em4so.exceptions.ServiceAssemblingException", "org.mp.em4so.model.actuating.Action", "org.mp.em4so.model.actuating.Capability" ]
import org.mp.em4so.exceptions.ServiceAssemblingException; import org.mp.em4so.model.actuating.Action; import org.mp.em4so.model.actuating.Capability;
import org.mp.em4so.exceptions.*; import org.mp.em4so.model.actuating.*;
[ "org.mp.em4so" ]
org.mp.em4so;
847,777
public static void setMinAlpha(final Stage stage) { if (stage != null) { setAlpha(stage.getRoot(), 0f); } }
static void function(final Stage stage) { if (stage != null) { setAlpha(stage.getRoot(), 0f); } }
/** Null-safe alpha setting method. * * @param stage its root actor's alpha will become {@code 0f}, affecting all actors in the stage. Can be null. */
Null-safe alpha setting method
setMinAlpha
{ "repo_name": "tommyettinger/SquidSetup", "path": "src/main/java/com/github/czyzby/kiwi/util/gdx/scene2d/Actors.java", "license": "apache-2.0", "size": 7927 }
[ "com.badlogic.gdx.scenes.scene2d.Stage" ]
import com.badlogic.gdx.scenes.scene2d.Stage;
import com.badlogic.gdx.scenes.scene2d.*;
[ "com.badlogic.gdx" ]
com.badlogic.gdx;
1,455,263
protected void peerMaybeFreeAllSlots(PeerNode fetchFrom) { UOMDependencyFetcher[] fetchers; synchronized(this) { fetchers = dependencyFetchers.values().toArray(new UOMDependencyFetcher[dependencyFetchers.size()]); } for(UOMDependencyFetcher f : fetchers) { f.peerMaybeFreeSlots(fetchFrom); } } clas...
void function(PeerNode fetchFrom) { UOMDependencyFetcher[] fetchers; synchronized(this) { fetchers = dependencyFetchers.values().toArray(new UOMDependencyFetcher[dependencyFetchers.size()]); } for(UOMDependencyFetcher f : fetchers) { f.peerMaybeFreeSlots(fetchFrom); } } class UOMDependencyFetcher { final byte[] expecte...
/** A download succeeded from a peer. Reconsider all the other downloads * that failed from it. E.g. when we have one darknet connection and a * transfer fails due to a transfer glitch. */
A download succeeded from a peer. Reconsider all the other downloads that failed from it. E.g. when we have one darknet connection and a
peerMaybeFreeAllSlots
{ "repo_name": "freenet/fred", "path": "src/freenet/node/updater/UpdateOverMandatoryManager.java", "license": "gpl-2.0", "size": 76725 }
[ "java.io.File", "java.util.HashSet" ]
import java.io.File; import java.util.HashSet;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
455,591
public void setVariable(IAspect aspect, IAspectVariable variable);
void function(IAspect aspect, IAspectVariable variable);
/** * Get the singleton variable for an aspect. * @param aspect The aspect from the part of this state. * @param variable The variable that exists only once for an aspect in this part state. */
Get the singleton variable for an aspect
setVariable
{ "repo_name": "CyclopsMC/IntegratedDynamics", "path": "src/main/java/org/cyclops/integrateddynamics/api/part/read/IPartStateReader.java", "license": "mit", "size": 1727 }
[ "org.cyclops.integrateddynamics.api.part.aspect.IAspect", "org.cyclops.integrateddynamics.api.part.aspect.IAspectVariable" ]
import org.cyclops.integrateddynamics.api.part.aspect.IAspect; import org.cyclops.integrateddynamics.api.part.aspect.IAspectVariable;
import org.cyclops.integrateddynamics.api.part.aspect.*;
[ "org.cyclops.integrateddynamics" ]
org.cyclops.integrateddynamics;
1,898,571
public void fillElements(JRPrintElementContainer printContainer) throws JRException { //int maxStretch = 0; //int stretch = 0; JRElement[] allElements = getElements(); if (allElements != null && allElements.length > 0) { for(int i = 0; i < allElements.length; i++) { JRFillElement element = (JRFi...
void function(JRPrintElementContainer printContainer) throws JRException { JRElement[] allElements = getElements(); if (allElements != null && allElements.length > 0) { for(int i = 0; i < allElements.length; i++) { JRFillElement element = (JRFillElement)allElements[i]; element.setRelativeY(element.getRelativeY() - firs...
/** * Fills the elements from this container into a print element container. * * @param printContainer the print element container * @throws JRException */
Fills the elements from this container into a print element container
fillElements
{ "repo_name": "juniormesquitadandao/report4all", "path": "lib/src/net/sf/jasperreports/engine/fill/JRFillElementContainer.java", "license": "mit", "size": 20893 }
[ "java.util.Collection", "java.util.List", "net.sf.jasperreports.engine.JRElement", "net.sf.jasperreports.engine.JRException", "net.sf.jasperreports.engine.JROrigin", "net.sf.jasperreports.engine.JRPrintElement", "net.sf.jasperreports.engine.JRPrintElementContainer", "net.sf.jasperreports.engine.JRStyl...
import java.util.Collection; import java.util.List; import net.sf.jasperreports.engine.JRElement; import net.sf.jasperreports.engine.JRException; import net.sf.jasperreports.engine.JROrigin; import net.sf.jasperreports.engine.JRPrintElement; import net.sf.jasperreports.engine.JRPrintElementContainer; import net.sf.jasp...
import java.util.*; import net.sf.jasperreports.engine.*;
[ "java.util", "net.sf.jasperreports" ]
java.util; net.sf.jasperreports;
708,618
List<RequestData> getRequests();
List<RequestData> getRequests();
/** * This method returns a List of the current requests that are in mem. This is a readonly list. * * @return Collection of the current requests */
This method returns a List of the current requests that are in mem. This is a readonly list
getRequests
{ "repo_name": "astrapi69/wicket", "path": "wicket-core/src/main/java/org/apache/wicket/protocol/http/IRequestLogger.java", "license": "apache-2.0", "size": 11551 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,460,176
@VisibleForTesting public static void setInstanceForTest(AccountIdProvider provider) { ThreadUtils.assertOnUiThread(); sProvider = provider; }
static void function(AccountIdProvider provider) { ThreadUtils.assertOnUiThread(); sProvider = provider; }
/** * For testing purposes only, allows to set the provider even if it has already been * initialized. */
For testing purposes only, allows to set the provider even if it has already been initialized
setInstanceForTest
{ "repo_name": "mogoweb/365browser", "path": "app/src/main/java/org/chromium/chrome/browser/signin/AccountIdProvider.java", "license": "apache-2.0", "size": 2774 }
[ "org.chromium.base.ThreadUtils" ]
import org.chromium.base.ThreadUtils;
import org.chromium.base.*;
[ "org.chromium.base" ]
org.chromium.base;
747,196
static Scan convertStringToScan(String base64) throws IOException { ByteArrayInputStream bis = new ByteArrayInputStream(Base64.decode(base64)); DataInputStream dis = new DataInputStream(bis); Scan scan = new Scan(); scan.readFields(dis); return scan; }
static Scan convertStringToScan(String base64) throws IOException { ByteArrayInputStream bis = new ByteArrayInputStream(Base64.decode(base64)); DataInputStream dis = new DataInputStream(bis); Scan scan = new Scan(); scan.readFields(dis); return scan; }
/** * Converts the given Base64 string back into a Scan instance. * * @param base64 The scan details. * @return The newly created Scan instance. * @throws IOException When reading the scan instance fails. */
Converts the given Base64 string back into a Scan instance
convertStringToScan
{ "repo_name": "simplegeo/hadoop-hbase", "path": "src/main/java/org/apache/hadoop/hbase/mapreduce/TableMapReduceUtil.java", "license": "apache-2.0", "size": 16557 }
[ "java.io.ByteArrayInputStream", "java.io.DataInputStream", "java.io.IOException", "org.apache.hadoop.hbase.client.Scan", "org.apache.hadoop.hbase.util.Base64" ]
import java.io.ByteArrayInputStream; import java.io.DataInputStream; import java.io.IOException; import org.apache.hadoop.hbase.client.Scan; import org.apache.hadoop.hbase.util.Base64;
import java.io.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
575,483
EClass getApp_tpl();
EClass getApp_tpl();
/** * Returns the meta object for class '{@link org.eclipse.cmf.occi.platform.App_tpl <em>App tpl</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>App tpl</em>'. * @see org.eclipse.cmf.occi.platform.App_tpl * @generated */
Returns the meta object for class '<code>org.eclipse.cmf.occi.platform.App_tpl App tpl</code>'.
getApp_tpl
{ "repo_name": "occiware/OCCI-Studio", "path": "plugins/org.eclipse.cmf.occi.platform/src-gen/org/eclipse/cmf/occi/platform/PlatformPackage.java", "license": "epl-1.0", "size": 46062 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
933,189
public static SecretKey prepareSecretKey(String algorithm, byte[] rawKey) { // Do an additional check on the keysize required by the encryption // algorithm int size = 0; try { size = getKeyLength(algorithm); } catch (Exception e) { // ignore - some unknown (to JCEMapper) encryption algorithm if (...
static SecretKey function(String algorithm, byte[] rawKey) { int size = 0; try { size = getKeyLength(algorithm); } catch (Exception e) { if (LOG.isDebugEnabled()) { LOG.debug(e.getMessage()); } } String keyAlgorithm = JCEMapper.getJCEKeyAlgorithmFromURI(algorithm); SecretKeySpec keySpec; if (size > 0 && !algorithm.ends...
/** * Convert the raw key bytes into a SecretKey object of type algorithm. */
Convert the raw key bytes into a SecretKey object of type algorithm
prepareSecretKey
{ "repo_name": "choicemaker/santuario-kms", "path": "src/main/java/com/choicemaker/utilcopy01/KeyUtils.java", "license": "epl-1.0", "size": 2757 }
[ "javax.crypto.SecretKey", "javax.crypto.spec.SecretKeySpec", "org.apache.xml.security.algorithms.JCEMapper" ]
import javax.crypto.SecretKey; import javax.crypto.spec.SecretKeySpec; import org.apache.xml.security.algorithms.JCEMapper;
import javax.crypto.*; import javax.crypto.spec.*; import org.apache.xml.security.algorithms.*;
[ "javax.crypto", "org.apache.xml" ]
javax.crypto; org.apache.xml;
1,674,647
public CommandLine parse(final String[] args) { final CommandLineParser parser = new PosixParser(); CommandLine result = null; try { result = parser.parse(_options, args); } catch (final ParseException e) { LOGGER.warn("error parsing command line arguments {}", new Object[] { args }); ...
CommandLine function(final String[] args) { final CommandLineParser parser = new PosixParser(); CommandLine result = null; try { result = parser.parse(_options, args); } catch (final ParseException e) { LOGGER.warn(STR, new Object[] { args }); } return result; } public static class Builder { private boolean _dataFields...
/** * Parses the command line arguments with created options. * * @param args * the command line * @return the commandline or null if it can not be parsed */
Parses the command line arguments with created options
parse
{ "repo_name": "McLeodMoores/starling", "path": "projects/bloomberg/src/main/java/com/opengamma/bbg/cli/BloombergCliOptions.java", "license": "apache-2.0", "size": 12551 }
[ "org.apache.commons.cli.CommandLine", "org.apache.commons.cli.CommandLineParser", "org.apache.commons.cli.ParseException", "org.apache.commons.cli.PosixParser" ]
import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.ParseException; import org.apache.commons.cli.PosixParser;
import org.apache.commons.cli.*;
[ "org.apache.commons" ]
org.apache.commons;
1,752,939
ServiceResponse<Void> patch202() throws ErrorException, IOException;
ServiceResponse<Void> patch202() throws ErrorException, IOException;
/** * Patch true Boolean value in request returns 202. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the {@link ServiceResponse} object if successful. */
Patch true Boolean value in request returns 202
patch202
{ "repo_name": "John-Hart/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/http/HttpSuccess.java", "license": "mit", "size": 27204 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException;
import com.microsoft.rest.*; import java.io.*;
[ "com.microsoft.rest", "java.io" ]
com.microsoft.rest; java.io;
1,416,678
public void setSelectable(final boolean selectable) { if (selectable) { this.selectable = true; this.getStrokeDashArray().addAll(Constants.REGION_DASH_WIDTH, Constants.REGION_DASH_WIDTH); this.setStrokeWidth(Constants.REGION_STROKE_WIDTH); this.setMouseTranspa...
void function(final boolean selectable) { if (selectable) { this.selectable = true; this.getStrokeDashArray().addAll(Constants.REGION_DASH_WIDTH, Constants.REGION_DASH_WIDTH); this.setStrokeWidth(Constants.REGION_STROKE_WIDTH); this.setMouseTransparent(false); } else { this.selectable = false; this.getStrokeDashArray()...
/** * This method configure if this polygon can be accessed and selected via ui events. * * @param selectable Whether the Region should be selectable or not. */
This method configure if this polygon can be accessed and selected via ui events
setSelectable
{ "repo_name": "DivineThreepwood/bcozy", "path": "src/main/java/org/openbase/bco/bcozy/view/location/DynamicPolygon.java", "license": "gpl-3.0", "size": 15511 }
[ "org.openbase.bco.bcozy.view.Constants" ]
import org.openbase.bco.bcozy.view.Constants;
import org.openbase.bco.bcozy.view.*;
[ "org.openbase.bco" ]
org.openbase.bco;
307,909
public void update(GlobalConstants consts, String errContext, List<ValLoc> resVals, List<Alias> aliases, int stmtIndex) throws OptUnsafeError { if (aliases != null) { // Get aliases up to date first since they don't depend on others here aliasTracker.update(aliases); } if (res...
void function(GlobalConstants consts, String errContext, List<ValLoc> resVals, List<Alias> aliases, int stmtIndex) throws OptUnsafeError { if (aliases != null) { aliasTracker.update(aliases); } if (resVals != null) { for (ValLoc resVal: resVals) { update(consts, errContext, resVal, stmtIndex); } } }
/** * Update state with values and alias info * @param consts * @param errContext * @param resVals values for program point, may be null * @param aliases aliases for program point, may be null * @param stmtIndex * @throws OptUnsafeError */
Update state with values and alias info
update
{ "repo_name": "basheersubei/swift-t", "path": "stc/code/src/exm/stc/ic/opt/valuenumber/Congruences.java", "license": "apache-2.0", "size": 40775 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
361,214
public Builder businessDayAdjustment(BusinessDayAdjustment businessDayAdjustment) { JodaBeanUtils.notNull(businessDayAdjustment, "businessDayAdjustment"); this.businessDayAdjustment = businessDayAdjustment; return this; }
Builder function(BusinessDayAdjustment businessDayAdjustment) { JodaBeanUtils.notNull(businessDayAdjustment, STR); this.businessDayAdjustment = businessDayAdjustment; return this; }
/** * Sets the business day adjustment to apply to the reference date. * <p> * The reference date, which is often the third Wednesday of the month, will be adjusted as defined here. * @param businessDayAdjustment the new value, not null * @return this, for chaining, not null */
Sets the business day adjustment to apply to the reference date. The reference date, which is often the third Wednesday of the month, will be adjusted as defined here
businessDayAdjustment
{ "repo_name": "ChinaQuants/Strata", "path": "modules/product/src/main/java/com/opengamma/strata/product/index/type/ImmutableIborFutureConvention.java", "license": "apache-2.0", "size": 21741 }
[ "com.opengamma.strata.basics.date.BusinessDayAdjustment", "org.joda.beans.JodaBeanUtils" ]
import com.opengamma.strata.basics.date.BusinessDayAdjustment; import org.joda.beans.JodaBeanUtils;
import com.opengamma.strata.basics.date.*; import org.joda.beans.*;
[ "com.opengamma.strata", "org.joda.beans" ]
com.opengamma.strata; org.joda.beans;
2,454,076
private void calc() { if (getMeasurement() == null) { return; } if (getModelOpticsData() == null) { return; } List<Double> normalizedValues = new ArrayList<Double>(); List<Boolean> validityValues = new ArrayList<Boolean>(); int correctorNumber = getMachineElementsManager() .getA...
void function() { if (getMeasurement() == null) { return; } if (getModelOpticsData() == null) { return; } List<Double> normalizedValues = new ArrayList<Double>(); List<Boolean> validityValues = new ArrayList<Boolean>(); int correctorNumber = getMachineElementsManager() .getActiveCorrectorNumber(); List<Double> betas = ...
/** * (re)calculates the dataSet */
(re)calculates the dataSet
calc
{ "repo_name": "jmad/aloha", "path": "src/java/cern/accsoft/steering/aloha/plugin/kickresp/analyzer/NormalizedResponseAnalyzer.java", "license": "apache-2.0", "size": 8033 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,898,700
Collection<Profile> getProfiles(String definitionSetId);
Collection<Profile> getProfiles(String definitionSetId);
/** * Returns all profiles registered for a given Definition Set domain. * @return A collection of profiles */
Returns all profiles registered for a given Definition Set domain
getProfiles
{ "repo_name": "jomarko/kie-wb-common", "path": "kie-wb-common-stunner/kie-wb-common-stunner-core/kie-wb-common-stunner-api/kie-wb-common-stunner-core-api/src/main/java/org/kie/workbench/common/stunner/core/api/ProfileManager.java", "license": "apache-2.0", "size": 1738 }
[ "java.util.Collection", "org.kie.workbench.common.stunner.core.profile.Profile" ]
import java.util.Collection; import org.kie.workbench.common.stunner.core.profile.Profile;
import java.util.*; import org.kie.workbench.common.stunner.core.profile.*;
[ "java.util", "org.kie.workbench" ]
java.util; org.kie.workbench;
1,771,064
public void detachResultListener() { this.resultListenerConfig = null; } /** * Set result listener. * * @param listener * {@link ResultListener} instance. * @param runOnMainThread * Whether * {@link ResultListener#onReceiveResult(int, int, Bundle)}
void function() { this.resultListenerConfig = null; } /** * Set result listener. * * @param listener * {@link ResultListener} instance. * @param runOnMainThread * Whether * {@link ResultListener#onReceiveResult(int, int, Bundle)}
/** * Detach result listener from the result receiver. */
Detach result listener from the result receiver
detachResultListener
{ "repo_name": "sspasov/DeviceHiveClient", "path": "deviceHiveAndroid/src/main/java/com/dataart/android/devicehive/network/DeviceHiveResultReceiver.java", "license": "gpl-2.0", "size": 4551 }
[ "android.os.Bundle" ]
import android.os.Bundle;
import android.os.*;
[ "android.os" ]
android.os;
129,613
private byte[] decrypt(byte[] data, NTRUEncryptionPrivateKeyParameters privKey) throws InvalidCipherTextException { Polynomial priv_t = privKey.t; IntegerPolynomial priv_fp = privKey.fp; IntegerPolynomial pub = privKey.h; int N = params.N; int q = params.q; ...
byte[] function(byte[] data, NTRUEncryptionPrivateKeyParameters privKey) throws InvalidCipherTextException { Polynomial priv_t = privKey.t; IntegerPolynomial priv_fp = privKey.fp; IntegerPolynomial pub = privKey.h; int N = params.N; int q = params.q; int db = params.db; int maxMsgLenBytes = params.maxMsgLenBytes; int d...
/** * Decrypts a message.<br/> * See P1363.1 section 9.2.3. * * @param data The message to decrypt * @param privKey the corresponding private key * @return the decrypted message * @throws InvalidCipherTextException if the encrypted data is invalid, or <code>maxLenBytes</code> is gr...
Decrypts a message. See P1363.1 section 9.2.3
decrypt
{ "repo_name": "onessimofalconi/bc-java", "path": "core/src/main/java/org/bouncycastle/pqc/crypto/ntru/NTRUEngine.java", "license": "mit", "size": 15151 }
[ "org.bouncycastle.crypto.DataLengthException", "org.bouncycastle.crypto.InvalidCipherTextException", "org.bouncycastle.pqc.math.ntru.polynomial.IntegerPolynomial", "org.bouncycastle.pqc.math.ntru.polynomial.Polynomial", "org.bouncycastle.util.Arrays" ]
import org.bouncycastle.crypto.DataLengthException; import org.bouncycastle.crypto.InvalidCipherTextException; import org.bouncycastle.pqc.math.ntru.polynomial.IntegerPolynomial; import org.bouncycastle.pqc.math.ntru.polynomial.Polynomial; import org.bouncycastle.util.Arrays;
import org.bouncycastle.crypto.*; import org.bouncycastle.pqc.math.ntru.polynomial.*; import org.bouncycastle.util.*;
[ "org.bouncycastle.crypto", "org.bouncycastle.pqc", "org.bouncycastle.util" ]
org.bouncycastle.crypto; org.bouncycastle.pqc; org.bouncycastle.util;
914,065
public void accept(SubtitlesVisitor visitor) throws SubtitlesGenerationException;
void function(SubtitlesVisitor visitor) throws SubtitlesGenerationException;
/** * Accept the visitor within the object * @param visitor The <code>SubtitlesVisitor</code> instance * @throws SubtitlesGenerationException */
Accept the visitor within the object
accept
{ "repo_name": "ToYonos/subtitles4j", "path": "src/main/java/info/toyonos/subtitles4j/model/Visitable.java", "license": "mit", "size": 611 }
[ "info.toyonos.subtitles4j.factory.SubtitlesGenerationException", "info.toyonos.subtitles4j.factory.SubtitlesVisitor" ]
import info.toyonos.subtitles4j.factory.SubtitlesGenerationException; import info.toyonos.subtitles4j.factory.SubtitlesVisitor;
import info.toyonos.subtitles4j.factory.*;
[ "info.toyonos.subtitles4j" ]
info.toyonos.subtitles4j;
172,604
public TrimResult trimFields( Aggregate aggregate, ImmutableBitSet fieldsUsed, Set<RelDataTypeField> extraFields) { // Fields: // // | sys fields | group fields | indicator fields | agg functions | // // Two kinds of trimming: // // 1. If agg rel has system fields but non...
TrimResult function( Aggregate aggregate, ImmutableBitSet fieldsUsed, Set<RelDataTypeField> extraFields) { final RelDataType rowType = aggregate.getRowType(); final ImmutableBitSet.Builder inputFieldsUsed = aggregate.getGroupSet().rebuild(); for (AggregateCall aggCall : aggregate.getAggCallList()) { inputFieldsUsed.add...
/** * Variant of {@link #trimFields(RelNode, ImmutableBitSet, Set)} for * {@link org.apache.calcite.rel.logical.LogicalAggregate}. */
Variant of <code>#trimFields(RelNode, ImmutableBitSet, Set)</code> for <code>org.apache.calcite.rel.logical.LogicalAggregate</code>
trimFields
{ "repo_name": "apache/calcite", "path": "core/src/main/java/org/apache/calcite/sql2rel/RelFieldTrimmer.java", "license": "apache-2.0", "size": 50751 }
[ "com.google.common.collect.ImmutableList", "java.util.ArrayList", "java.util.Collections", "java.util.List", "java.util.Set", "org.apache.calcite.plan.RelOptUtil", "org.apache.calcite.rel.RelCollations", "org.apache.calcite.rel.RelNode", "org.apache.calcite.rel.core.Aggregate", "org.apache.calcite...
import com.google.common.collect.ImmutableList; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Set; import org.apache.calcite.plan.RelOptUtil; import org.apache.calcite.rel.RelCollations; import org.apache.calcite.rel.RelNode; import org.apache.calcite.rel.core.Aggrega...
import com.google.common.collect.*; import java.util.*; import org.apache.calcite.plan.*; import org.apache.calcite.rel.*; import org.apache.calcite.rel.core.*; import org.apache.calcite.rel.type.*; import org.apache.calcite.tools.*; import org.apache.calcite.util.*; import org.apache.calcite.util.mapping.*;
[ "com.google.common", "java.util", "org.apache.calcite" ]
com.google.common; java.util; org.apache.calcite;
91,274
protected HTML getMsgPanel(IconType iconType, String message) { Icon checkIcon = new Icon(iconType); HTML msgHtml = new HTML(checkIcon + " <b>" + message + "</b>"); return msgHtml; }
HTML function(IconType iconType, String message) { Icon checkIcon = new Icon(iconType); HTML msgHtml = new HTML(checkIcon + STR + message + "</b>"); return msgHtml; }
/** * Gets the msg panel. * * @param iconType * the icon type * @param message * the message * @return the msg panel */
Gets the msg panel
getMsgPanel
{ "repo_name": "MeasureAuthoringTool/MeasureAuthoringTool_LatestSprint", "path": "mat/src/main/java/mat/client/shared/MessageAlert.java", "license": "cc0-1.0", "size": 2262 }
[ "org.gwtbootstrap3.client.ui.Icon", "org.gwtbootstrap3.client.ui.constants.IconType" ]
import org.gwtbootstrap3.client.ui.Icon; import org.gwtbootstrap3.client.ui.constants.IconType;
import org.gwtbootstrap3.client.ui.*; import org.gwtbootstrap3.client.ui.constants.*;
[ "org.gwtbootstrap3.client" ]
org.gwtbootstrap3.client;
2,426,487
void preFlush(final ObserverContext<RegionCoprocessorEnvironment> c) throws IOException;
void preFlush(final ObserverContext<RegionCoprocessorEnvironment> c) throws IOException;
/** * Called before the memstore is flushed to disk. * @param c the environment provided by the region server * @throws IOException if an error occurred on the coprocessor */
Called before the memstore is flushed to disk
preFlush
{ "repo_name": "indi60/hbase-pmc", "path": "target/hbase-0.94.1/hbase-0.94.1/src/main/java/org/apache/hadoop/hbase/coprocessor/RegionObserver.java", "license": "apache-2.0", "size": 27227 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,000,100
ImmutableSet<TargetDeviceFamily> families() { List<String> rawFamilies = ruleContext.attributes().get("families", Type.STRING_LIST); try { return ImmutableSet.copyOf(TargetDeviceFamily.fromNamesInRule(rawFamilies)); } catch (InvalidFamilyNameException | RepeatedFamilyNameException e) { ...
ImmutableSet<TargetDeviceFamily> families() { List<String> rawFamilies = ruleContext.attributes().get(STR, Type.STRING_LIST); try { return ImmutableSet.copyOf(TargetDeviceFamily.fromNamesInRule(rawFamilies)); } catch (InvalidFamilyNameException RepeatedFamilyNameException e) { return ImmutableSet.of(); } }
/** * Returns the value of the {@code families} attribute in a form * that is more useful than a list of strings. Returns an empty * set for any invalid {@code families} attribute value, including * an empty list. */
Returns the value of the families attribute in a form that is more useful than a list of strings. Returns an empty set for any invalid families attribute value, including an empty list
families
{ "repo_name": "rzagabe/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/BundleSupport.java", "license": "apache-2.0", "size": 18766 }
[ "com.google.common.collect.ImmutableSet", "com.google.devtools.build.lib.packages.Type", "com.google.devtools.build.lib.rules.objc.TargetDeviceFamily", "java.util.List" ]
import com.google.common.collect.ImmutableSet; import com.google.devtools.build.lib.packages.Type; import com.google.devtools.build.lib.rules.objc.TargetDeviceFamily; import java.util.List;
import com.google.common.collect.*; import com.google.devtools.build.lib.packages.*; import com.google.devtools.build.lib.rules.objc.*; import java.util.*;
[ "com.google.common", "com.google.devtools", "java.util" ]
com.google.common; com.google.devtools; java.util;
2,212,684
@RequestMapping(value = "/v1/tickets", method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) public ResponseEntity<String> createTicketGrantingTicket(@RequestBody final MultiValueMap<String, String> requestBody, final Ht...
@RequestMapping(value = STR, method = RequestMethod.POST, consumes = MediaType.APPLICATION_FORM_URLENCODED_VALUE) ResponseEntity<String> function(@RequestBody final MultiValueMap<String, String> requestBody, final HttpServletRequest request) throws JsonProcessingException { try (Formatter fmt = new Formatter()) { final...
/** * Create new ticket granting ticket. * * @param requestBody username and password application/x-www-form-urlencoded values * @param request raw HttpServletRequest used to call this method * @return ResponseEntity representing RESTful response * @throws JsonProcessingException in ca...
Create new ticket granting ticket
createTicketGrantingTicket
{ "repo_name": "vydra/cas", "path": "support/cas-server-support-rest/src/main/java/org/apereo/cas/support/rest/TicketsResource.java", "license": "apache-2.0", "size": 10800 }
[ "com.fasterxml.jackson.core.JsonProcessingException", "java.util.Formatter", "java.util.HashMap", "java.util.LinkedList", "java.util.List", "java.util.Map", "java.util.stream.Collectors", "javax.servlet.http.HttpServletRequest", "org.apereo.cas.authentication.AuthenticationException", "org.apereo....
import com.fasterxml.jackson.core.JsonProcessingException; import java.util.Formatter; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.stream.Collectors; import javax.servlet.http.HttpServletRequest; import org.apereo.cas.authentication.Authentication...
import com.fasterxml.jackson.core.*; import java.util.*; import java.util.stream.*; import javax.servlet.http.*; import org.apereo.cas.authentication.*; import org.apereo.cas.ticket.*; import org.springframework.http.*; import org.springframework.util.*; import org.springframework.web.bind.annotation.*;
[ "com.fasterxml.jackson", "java.util", "javax.servlet", "org.apereo.cas", "org.springframework.http", "org.springframework.util", "org.springframework.web" ]
com.fasterxml.jackson; java.util; javax.servlet; org.apereo.cas; org.springframework.http; org.springframework.util; org.springframework.web;
1,050,035