method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public static String getWin32ErrorMessage(int n) {
ResourceBundle rb = ResourceBundle.getBundle("/hudson/win32errors");
return rb.getString("error"+n);
} | static String function(int n) { ResourceBundle rb = ResourceBundle.getBundle(STR); return rb.getString("error"+n); } | /**
* Gets a human readable message for the given Win32 error code.
*
* @return
* null if no such message is available.
*/ | Gets a human readable message for the given Win32 error code | getWin32ErrorMessage | {
"repo_name": "fujibee/hudson",
"path": "core/src/main/java/hudson/Util.java",
"license": "mit",
"size": 33654
} | [
"java.util.ResourceBundle"
] | import java.util.ResourceBundle; | import java.util.*; | [
"java.util"
] | java.util; | 1,112,692 |
private JMenuItem makeMenuItem(String name, String cmd, KeyStroke keyStroke) {
JMenuItem menuItem = new JMenuItem(name);
menuItem.setActionCommand(cmd);
menuItem.setAccelerator(keyStroke);
menuItem.addActionListener(this);
return menuItem;
} | JMenuItem function(String name, String cmd, KeyStroke keyStroke) { JMenuItem menuItem = new JMenuItem(name); menuItem.setActionCommand(cmd); menuItem.setAccelerator(keyStroke); menuItem.addActionListener(this); return menuItem; } | /**
* Make individual menu item.
*
* @param name the menu item name
* @param cmd the command string
* @param keyStroke the accelerator key
* @return the instance of <code>MenuItem</code>
*/ | Make individual menu item | makeMenuItem | {
"repo_name": "halayudha/bearded-octo-bugfixes",
"path": "BestPeerDevelop/sg/edu/nus/gui/bootstrap/MenuBar.java",
"license": "gpl-3.0",
"size": 11827
} | [
"javax.swing.JMenuItem",
"javax.swing.KeyStroke"
] | import javax.swing.JMenuItem; import javax.swing.KeyStroke; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 1,031,188 |
public static PushButton createPushButtonWithImageStates(Image upImage,
String styleName, ClickHandler handler) {
final PushButton button = new PushButton(upImage, handler);
button.setStyleName(styleName);
return button;
} | static PushButton function(Image upImage, String styleName, ClickHandler handler) { final PushButton button = new PushButton(upImage, handler); button.setStyleName(styleName); return button; } | /**
* Creates a {@link PushButton} with the specified face images and stylename.
*
* @param upImage the image to be used on the up face
* @param styleName the stylename to use for the widget
* @param handler a click handler to which to bind the button
* @return the button
*/ | Creates a <code>PushButton</code> with the specified face images and stylename | createPushButtonWithImageStates | {
"repo_name": "mikazuki/tuwien2010-imagenotes",
"path": "src/com/google/appengine/demos/sticky/client/Buttons.java",
"license": "apache-2.0",
"size": 5831
} | [
"com.google.gwt.event.dom.client.ClickHandler",
"com.google.gwt.user.client.ui.Image",
"com.google.gwt.user.client.ui.PushButton"
] | import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.user.client.ui.Image; import com.google.gwt.user.client.ui.PushButton; | import com.google.gwt.event.dom.client.*; import com.google.gwt.user.client.ui.*; | [
"com.google.gwt"
] | com.google.gwt; | 713,857 |
@Override
protected String createSelectString(final KeyObject inKey, final OrderObject inOrder) throws BOMException {
return dbAdapter.createSelectSQL(inKey, inOrder, this);
} | String function(final KeyObject inKey, final OrderObject inOrder) throws BOMException { return dbAdapter.createSelectSQL(inKey, inOrder, this); } | /** Creates the select string to fetch all domain objects matching the specified key ordered by the specified object.
*
* @return java.lang.String
* @param inKey org.hip.kernel.bom.KeyObject
* @param inOrder org.hip.kernel.bom.OrderObject
* @throws org.hip.kernel.bom.BOMException */ | Creates the select string to fetch all domain objects matching the specified key ordered by the specified object | createSelectString | {
"repo_name": "aktion-hip/vif",
"path": "org.hip.viffw/src/org/hip/kernel/bom/impl/JoinedDomainObjectHomeImpl.java",
"license": "gpl-2.0",
"size": 15733
} | [
"org.hip.kernel.bom.BOMException",
"org.hip.kernel.bom.KeyObject",
"org.hip.kernel.bom.OrderObject"
] | import org.hip.kernel.bom.BOMException; import org.hip.kernel.bom.KeyObject; import org.hip.kernel.bom.OrderObject; | import org.hip.kernel.bom.*; | [
"org.hip.kernel"
] | org.hip.kernel; | 1,121,121 |
private static String trim(final String s) {
return StringUtils.trimToNull(s);
} | static String function(final String s) { return StringUtils.trimToNull(s); } | /**
* Helper to trim a string to null
*
* @param s
* @return
*/ | Helper to trim a string to null | trim | {
"repo_name": "frasese/sakai",
"path": "gradebookng/tool/src/java/org/sakaiproject/gradebookng/business/util/ImportGradesHelper.java",
"license": "apache-2.0",
"size": 22712
} | [
"org.apache.commons.lang.StringUtils"
] | import org.apache.commons.lang.StringUtils; | import org.apache.commons.lang.*; | [
"org.apache.commons"
] | org.apache.commons; | 2,654,213 |
@Test(dataProvider = "light administrator privilege test cases")
public void testModifyGroupMembershipPrivilegeCreationViaAdmin(boolean isAdmin, boolean isRestricted, boolean isSudo)
throws Exception {
final boolean isExpectSuccess = isAdmin && !isRestricted;
final EventContext norma... | @Test(dataProvider = STR) void function(boolean isAdmin, boolean isRestricted, boolean isSudo) throws Exception { final boolean isExpectSuccess = isAdmin && !isRestricted; final EventContext normalUser = newUserAndGroup(STR); final EventContext otherUser = newUserAndGroup(STR); loginNewActor(isAdmin, isSudo ? loginNewA... | /**
* Test that users may modify group membership only if they are a member of the <tt>system</tt> group and
* have the <tt>ModifyGroupMembership</tt> privilege.
* Attempts change of existing group membership via {@link omero.api.IAdminPrx#addGroups(Experimenter, List)}.
* @param isAdmin if to test ... | Test that users may modify group membership only if they are a member of the system group and have the ModifyGroupMembership privilege. Attempts change of existing group membership via <code>omero.api.IAdminPrx#addGroups(Experimenter, List)</code> | testModifyGroupMembershipPrivilegeCreationViaAdmin | {
"repo_name": "MontpellierRessourcesImagerie/openmicroscopy",
"path": "components/tools/OmeroJava/test/integration/LightAdminPrivilegesTest.java",
"license": "gpl-2.0",
"size": 169987
} | [
"java.util.Collections",
"org.testng.Assert",
"org.testng.annotations.Test"
] | import java.util.Collections; import org.testng.Assert; import org.testng.annotations.Test; | import java.util.*; import org.testng.*; import org.testng.annotations.*; | [
"java.util",
"org.testng",
"org.testng.annotations"
] | java.util; org.testng; org.testng.annotations; | 2,448,231 |
public static String getJvmStartupOptions() {
try {
final RuntimeMXBean bean = ManagementFactory.getRuntimeMXBean();
final StringBuilder bld = new StringBuilder();
for (String s : bean.getInputArguments()) {
bld.append(s).append(' ');
}
return bld.toString();
}
catch (Throwable t) {
... | static String function() { try { final RuntimeMXBean bean = ManagementFactory.getRuntimeMXBean(); final StringBuilder bld = new StringBuilder(); for (String s : bean.getInputArguments()) { bld.append(s).append(' '); } return bld.toString(); } catch (Throwable t) { return UNKNOWN; } } | /**
* Gets the system parameters and environment parameters that were passed to the JVM on startup.
*
* @return The options passed to the JVM on startup.
*/ | Gets the system parameters and environment parameters that were passed to the JVM on startup | getJvmStartupOptions | {
"repo_name": "greghogan/flink",
"path": "flink-runtime/src/main/java/org/apache/flink/runtime/util/EnvironmentInformation.java",
"license": "apache-2.0",
"size": 16365
} | [
"java.lang.management.ManagementFactory",
"java.lang.management.RuntimeMXBean"
] | import java.lang.management.ManagementFactory; import java.lang.management.RuntimeMXBean; | import java.lang.management.*; | [
"java.lang"
] | java.lang; | 864,532 |
private void shutdownNowOrContinue() {
File shutdownFile = new File(serverDir, "shutdown.txt");
if (shutdownFile.exists()) {
log.info("Found shutdown-file in serverdir - "
+ "shutting down the application");
instance.cleanup();
... | void function() { File shutdownFile = new File(serverDir, STR); if (shutdownFile.exists()) { log.info(STR + STR); instance.cleanup(); System.exit(0); } } | /**
* Does the operator want us to shutdown now.
* TODO In a later implementation, the harvestControllerServer could
* be notified over JMX. Now we just look for a "shutdown.txt" file
* in the HARVEST_CONTROLLER_SERVERDIR
*/ | Does the operator want us to shutdown now. TODO In a later implementation, the harvestControllerServer could be notified over JMX. Now we just look for a "shutdown.txt" file in the HARVEST_CONTROLLER_SERVERDIR | shutdownNowOrContinue | {
"repo_name": "netarchivesuite/netarchivesuite-svngit-migration",
"path": "src/dk/netarkivet/harvester/harvesting/distribute/HarvestControllerServer.java",
"license": "lgpl-2.1",
"size": 38269
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,256,760 |
// look up the component factory
final IComponentFactory factory = lookup(IComponentFactory.class);
// create the execution config
final MavenSession session = this.createSessionForPhpMaven("phpunit/pom-3310-arguments");
final IPhpunitConfiguration config = factory.lookup(
... | final IComponentFactory factory = lookup(IComponentFactory.class); final MavenSession session = this.createSessionForPhpMaven(STR); final IPhpunitConfiguration config = factory.lookup( IPhpunitConfiguration.class, IComponentFactory.EMPTY_CONFIG, session); final IPhpunitSupport phpunit = config.getPhpunitSupport(PHPUNIT... | /**
* Tests if the phpunit support can be created.
*
* @throws Exception thrown on errors
*/ | Tests if the phpunit support can be created | testPhpunitOrgCreation | {
"repo_name": "Vaysman/maven-php-plugin",
"path": "maven-plugins/maven-php-phpunit/src/test/java/org/phpmaven/phpunit/test/ArgumentsV3310Test.java",
"license": "apache-2.0",
"size": 3168
} | [
"java.io.File",
"org.apache.maven.execution.MavenSession",
"org.apache.maven.monitor.logging.DefaultLog",
"org.codehaus.plexus.logging.console.ConsoleLogger",
"org.phpmaven.core.IComponentFactory",
"org.phpmaven.phpunit.IPhpunitConfiguration",
"org.phpmaven.phpunit.IPhpunitSupport",
"org.phpmaven.phpu... | import java.io.File; import org.apache.maven.execution.MavenSession; import org.apache.maven.monitor.logging.DefaultLog; import org.codehaus.plexus.logging.console.ConsoleLogger; import org.phpmaven.core.IComponentFactory; import org.phpmaven.phpunit.IPhpunitConfiguration; import org.phpmaven.phpunit.IPhpunitSupport; i... | import java.io.*; import org.apache.maven.execution.*; import org.apache.maven.monitor.logging.*; import org.codehaus.plexus.logging.console.*; import org.phpmaven.core.*; import org.phpmaven.phpunit.*; | [
"java.io",
"org.apache.maven",
"org.codehaus.plexus",
"org.phpmaven.core",
"org.phpmaven.phpunit"
] | java.io; org.apache.maven; org.codehaus.plexus; org.phpmaven.core; org.phpmaven.phpunit; | 2,768,196 |
protected Stream<FSObject> rawStreamAllValuesOfl(final Object[] parameters) {
return rawStreamAllValues(POSITION_L, parameters).map(FSObject.class::cast);
} | Stream<FSObject> function(final Object[] parameters) { return rawStreamAllValues(POSITION_L, parameters).map(FSObject.class::cast); } | /**
* Retrieve the set of values that occur in matches for l.
* @return the Set of all values or empty set if there are no matches
*
*/ | Retrieve the set of values that occur in matches for l | rawStreamAllValuesOfl | {
"repo_name": "viatra/VIATRA-Generator",
"path": "Domains/hu.bme.mit.inf.dslreasoner.domains.alloyexamples/src-gen/hu/bme/mit/inf/dslreasoner/domains/alloyexamples/Live.java",
"license": "epl-1.0",
"size": 29721
} | [
"hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem",
"java.util.stream.Stream"
] | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.Filesystem; import java.util.stream.Stream; | import hu.bme.mit.inf.dslreasoner.domains.alloyexamples.*; import java.util.stream.*; | [
"hu.bme.mit",
"java.util"
] | hu.bme.mit; java.util; | 2,380,537 |
private Properties loadClientConfigProperties() throws ServletException {
String propertyFileName = "client.properties";
String clientConfigFileName = System.getProperty(propertyFileName, "/" + propertyFileName);
LOGGER.info("using client properties " + clientConfigFileName);
InputS... | Properties function() throws ServletException { String propertyFileName = STR; String clientConfigFileName = System.getProperty(propertyFileName, "/" + propertyFileName); LOGGER.info(STR + clientConfigFileName); InputStream input = null; Properties p = new Properties(); try { try { input = BasicMonkeyServer.class.getRe... | /**
* Load the client config properties file.
*
* @return Properties The contents of the client config file
* @throws ServletException
* if the file cannot be read
*/ | Load the client config properties file | loadClientConfigProperties | {
"repo_name": "huxoll/SimianArmy",
"path": "src/main/java/com/netflix/simianarmy/basic/BasicMonkeyServer.java",
"license": "apache-2.0",
"size": 8628
} | [
"java.io.IOException",
"java.io.InputStream",
"java.util.Properties",
"javax.servlet.ServletException"
] | import java.io.IOException; import java.io.InputStream; import java.util.Properties; import javax.servlet.ServletException; | import java.io.*; import java.util.*; import javax.servlet.*; | [
"java.io",
"java.util",
"javax.servlet"
] | java.io; java.util; javax.servlet; | 1,098,525 |
EReference getEqualityOp__EqualsOp_1(); | EReference getEqualityOp__EqualsOp_1(); | /**
* Returns the meta object for the containment reference list '{@link cruise.umple.umple.EqualityOp_#getEqualsOp_1 <em>Equals Op 1</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the containment reference list '<em>Equals Op 1</em>'.
* @see cruise.umple.umple.Eq... | Returns the meta object for the containment reference list '<code>cruise.umple.umple.EqualityOp_#getEqualsOp_1 Equals Op 1</code>'. | getEqualityOp__EqualsOp_1 | {
"repo_name": "ahmedvc/umple",
"path": "cruise.umple.xtext/src-gen/cruise/umple/umple/UmplePackage.java",
"license": "mit",
"size": 485842
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 392,528 |
@Override
public Value evalAssignRef(Env env, Value value)
{
String className = _className.evalString(env);
QuercusClass qClass = env.getClass(className);
StringValue varName = _varName.evalStringValue(env);
return qClass.setStaticFieldRef(env, varName, value);
} | Value function(Env env, Value value) { String className = _className.evalString(env); QuercusClass qClass = env.getClass(className); StringValue varName = _varName.evalStringValue(env); return qClass.setStaticFieldRef(env, varName, value); } | /**
* Evaluates the expression.
*
* @param env the calling environment.
*
* @return the expression value.
*/ | Evaluates the expression | evalAssignRef | {
"repo_name": "dlitz/resin",
"path": "modules/quercus/src/com/caucho/quercus/expr/ClassVarFieldVarExpr.java",
"license": "gpl-2.0",
"size": 3865
} | [
"com.caucho.quercus.env.Env",
"com.caucho.quercus.env.QuercusClass",
"com.caucho.quercus.env.StringValue",
"com.caucho.quercus.env.Value"
] | import com.caucho.quercus.env.Env; import com.caucho.quercus.env.QuercusClass; import com.caucho.quercus.env.StringValue; import com.caucho.quercus.env.Value; | import com.caucho.quercus.env.*; | [
"com.caucho.quercus"
] | com.caucho.quercus; | 731,108 |
public ConnectionStringBuilder setOperationTimeout(final Duration operationTimeout) {
this.operationTimeout = operationTimeout;
return this;
} | ConnectionStringBuilder function(final Duration operationTimeout) { this.operationTimeout = operationTimeout; return this; } | /**
* Set the OperationTimeout value in the Connection String. This value will be used by all operations which uses this {@link ConnectionStringBuilder}, unless explicitly over-ridden.
* <p>ConnectionString with operationTimeout is not inter-operable between java and clients in other platforms.
*
* ... | Set the OperationTimeout value in the Connection String. This value will be used by all operations which uses this <code>ConnectionStringBuilder</code>, unless explicitly over-ridden. ConnectionString with operationTimeout is not inter-operable between java and clients in other platforms | setOperationTimeout | {
"repo_name": "SreeramGarlapati/azure-event-hubs-java",
"path": "azure-eventhubs/src/main/java/com/microsoft/azure/eventhubs/ConnectionStringBuilder.java",
"license": "mit",
"size": 17139
} | [
"java.time.Duration"
] | import java.time.Duration; | import java.time.*; | [
"java.time"
] | java.time; | 1,919,231 |
public static DefaultMathTransformFactory factoryMT() {
return DefaultFactories.forBuildin(MathTransformFactory.class, DefaultMathTransformFactory.class);
} | static DefaultMathTransformFactory function() { return DefaultFactories.forBuildin(MathTransformFactory.class, DefaultMathTransformFactory.class); } | /**
* Returns the SIS implementation of {@link MathTransformFactory}.
*
* @return SIS implementation of transform factory.
*/ | Returns the SIS implementation of <code>MathTransformFactory</code> | factoryMT | {
"repo_name": "apache/sis",
"path": "core/sis-referencing/src/main/java/org/apache/sis/internal/referencing/CoordinateOperations.java",
"license": "apache-2.0",
"size": 18523
} | [
"org.apache.sis.internal.system.DefaultFactories",
"org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory",
"org.opengis.referencing.operation.MathTransformFactory"
] | import org.apache.sis.internal.system.DefaultFactories; import org.apache.sis.referencing.operation.transform.DefaultMathTransformFactory; import org.opengis.referencing.operation.MathTransformFactory; | import org.apache.sis.internal.system.*; import org.apache.sis.referencing.operation.transform.*; import org.opengis.referencing.operation.*; | [
"org.apache.sis",
"org.opengis.referencing"
] | org.apache.sis; org.opengis.referencing; | 1,080,871 |
public float getFloatValue() throws DOMException {
throw createDOMException();
} | float function() throws DOMException { throw createDOMException(); } | /**
* Implements {@link Value#getFloatValue()}.
*/ | Implements <code>Value#getFloatValue()</code> | getFloatValue | {
"repo_name": "apache/batik",
"path": "batik-css/src/main/java/org/apache/batik/css/engine/value/AbstractValue.java",
"license": "apache-2.0",
"size": 3958
} | [
"org.w3c.dom.DOMException"
] | import org.w3c.dom.DOMException; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 697,092 |
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
response.setContentType("text/html;charset=UTF-8");
String title = FormUtils.nullIfEmpty(request.getParameter("title"));
String remark = FormUti... | void function(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { response.setContentType(STR); String title = FormUtils.nullIfEmpty(request.getParameter("title")); String remark = FormUtils.nullIfEmpty(request.getParameter(STR)); CombineImageSettings settings = null; String... | /**
* Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
*/ | Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods | processRequest | {
"repo_name": "B3Partners/b3p-gisviewer",
"path": "src/main/java/nl/b3p/gis/viewer/services/CreateMapPDF.java",
"license": "lgpl-3.0",
"size": 15351
} | [
"com.lowagie.text.DocWriter",
"com.lowagie.text.Document",
"com.lowagie.text.DocumentException",
"com.lowagie.text.Element",
"com.lowagie.text.Image",
"com.lowagie.text.Paragraph",
"com.lowagie.text.Phrase",
"com.lowagie.text.html.HtmlWriter",
"com.lowagie.text.pdf.PdfPTable",
"com.lowagie.text.pd... | import com.lowagie.text.DocWriter; import com.lowagie.text.Document; import com.lowagie.text.DocumentException; import com.lowagie.text.Element; import com.lowagie.text.Image; import com.lowagie.text.Paragraph; import com.lowagie.text.Phrase; import com.lowagie.text.html.HtmlWriter; import com.lowagie.text.pdf.PdfPTabl... | import com.lowagie.text.*; import com.lowagie.text.html.*; import com.lowagie.text.pdf.*; import com.lowagie.text.rtf.*; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import nl.b3p.commons.services.*; import nl.b3p.imagetool.*; | [
"com.lowagie.text",
"java.io",
"javax.servlet",
"nl.b3p.commons",
"nl.b3p.imagetool"
] | com.lowagie.text; java.io; javax.servlet; nl.b3p.commons; nl.b3p.imagetool; | 1,332,595 |
void activateProcessDefinitionByKey(String processDefinitionKey, boolean activateProcessInstances, Date activationDate); | void activateProcessDefinitionByKey(String processDefinitionKey, boolean activateProcessInstances, Date activationDate); | /**
* Activates the process definition with the given key (=id in the bpmn20.xml file).
*
* @param activationDate
* The date on which the process definition will be activated. If null, the process definition is activated immediately. Note: The job executor needs to be active to use this!... | Activates the process definition with the given key (=id in the bpmn20.xml file) | activateProcessDefinitionByKey | {
"repo_name": "robsoncardosoti/flowable-engine",
"path": "modules/flowable-engine/src/main/java/org/flowable/engine/RepositoryService.java",
"license": "apache-2.0",
"size": 21318
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 2,687,228 |
@Override
public Request<EnableVpcClassicLinkRequest> getDryRunRequest() {
Request<EnableVpcClassicLinkRequest> request = new EnableVpcClassicLinkRequestMarshaller().marshall(this);
request.addParameter("DryRun", Boolean.toString(true));
return request;
} | Request<EnableVpcClassicLinkRequest> function() { Request<EnableVpcClassicLinkRequest> request = new EnableVpcClassicLinkRequestMarshaller().marshall(this); request.addParameter(STR, Boolean.toString(true)); return request; } | /**
* This method is intended for internal use only.
* Returns the marshaled request configured with additional parameters to
* enable operation dry-run.
*/ | This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run | getDryRunRequest | {
"repo_name": "trasa/aws-sdk-java",
"path": "aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/EnableVpcClassicLinkRequest.java",
"license": "apache-2.0",
"size": 4570
} | [
"com.amazonaws.Request",
"com.amazonaws.services.ec2.model.transform.EnableVpcClassicLinkRequestMarshaller"
] | import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.EnableVpcClassicLinkRequestMarshaller; | import com.amazonaws.*; import com.amazonaws.services.ec2.model.transform.*; | [
"com.amazonaws",
"com.amazonaws.services"
] | com.amazonaws; com.amazonaws.services; | 2,908,075 |
private String getIssuerName(X509Certificate cert)
{
X500Principal xp = cert.getIssuerX500Principal();
if (xp == null)
{
if (Configuration.DEBUG)
log.fine("Certiticate, with serial number " + cert.getSerialNumber() //$NON-NLS-1$
+ ", has null Issuer. Return [unknow... | String function(X509Certificate cert) { X500Principal xp = cert.getIssuerX500Principal(); if (xp == null) { if (Configuration.DEBUG) log.fine(STR + cert.getSerialNumber() + STR); return Messages.getString(STR); } String result = xp.getName(); if (result == null) { if (Configuration.DEBUG) log.fine(STR + cert.getSerialN... | /**
* Given an X.509 certificate this method returns the string representation of
* the Issuer Distinguished Name.
*
* @param cert an X.509 certificate.
* @return the string representation of the Issuer's DN.
*/ | Given an X.509 certificate this method returns the string representation of the Issuer Distinguished Name | getIssuerName | {
"repo_name": "shaotuanchen/sunflower_exp",
"path": "tools/source/gcc-4.2.4/libjava/classpath/tools/gnu/classpath/tools/jarsigner/SFHelper.java",
"license": "bsd-3-clause",
"size": 19139
} | [
"gnu.classpath.Configuration",
"java.security.cert.X509Certificate",
"javax.security.auth.x500.X500Principal"
] | import gnu.classpath.Configuration; import java.security.cert.X509Certificate; import javax.security.auth.x500.X500Principal; | import gnu.classpath.*; import java.security.cert.*; import javax.security.auth.x500.*; | [
"gnu.classpath",
"java.security",
"javax.security"
] | gnu.classpath; java.security; javax.security; | 989,706 |
public static void setAllEntryIdsToNull(Collection<OriginEntryFull> originEntries) {
for (OriginEntryFull entry : originEntries) {
entry.setEntryId(null);
}
}
| static void function(Collection<OriginEntryFull> originEntries) { for (OriginEntryFull entry : originEntries) { entry.setEntryId(null); } } | /**
* Sets all origin entries' entry IDs to null within the collection.
*
* @param originEntries collection of origin entries
*/ | Sets all origin entries' entry IDs to null within the collection | setAllEntryIdsToNull | {
"repo_name": "ua-eas/ua-kfs-5.3",
"path": "work/src/org/kuali/kfs/gl/document/CorrectionDocumentUtils.java",
"license": "agpl-3.0",
"size": 19455
} | [
"java.util.Collection",
"org.kuali.kfs.gl.businessobject.OriginEntryFull"
] | import java.util.Collection; import org.kuali.kfs.gl.businessobject.OriginEntryFull; | import java.util.*; import org.kuali.kfs.gl.businessobject.*; | [
"java.util",
"org.kuali.kfs"
] | java.util; org.kuali.kfs; | 1,803,079 |
public List getSectioncontrols() {
return sectioncontrols;
} | List function() { return sectioncontrols; } | /**
* Returns the sectioncontrols.
*
* @return List
*/ | Returns the sectioncontrols | getSectioncontrols | {
"repo_name": "huihoo/olat",
"path": "olat7.8/src/main/java/org/olat/lms/ims/qti/objects/Section.java",
"license": "apache-2.0",
"size": 12356
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,254,861 |
ControllerServiceEntity getControllerService(String controllerServiceId); | ControllerServiceEntity getControllerService(String controllerServiceId); | /**
* Gets the specified controller service.
*
* @param controllerServiceId id
* @return service
*/ | Gets the specified controller service | getControllerService | {
"repo_name": "zhengsg/nifi",
"path": "nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-api/src/main/java/org/apache/nifi/web/NiFiServiceFacade.java",
"license": "apache-2.0",
"size": 73433
} | [
"org.apache.nifi.web.api.entity.ControllerServiceEntity"
] | import org.apache.nifi.web.api.entity.ControllerServiceEntity; | import org.apache.nifi.web.api.entity.*; | [
"org.apache.nifi"
] | org.apache.nifi; | 1,845,585 |
public synchronized static boolean isLabel(String line) {
int semicolonIdx = line.indexOf(":");
// If there is text after the semicolon then it is NOT a label, unless
// it's a comment
// e.g. CHECKFILE(FT4.LINK)="FT.COMMISSION.TYPE": @FM <== this is NOT a
// label
//... | synchronized static boolean function(String line) { int semicolonIdx = line.indexOf(":"); String afterSemicolon = line.substring(semicolonIdx + 1); if (!StringUtil.isEmpty(afterSemicolon) && !StringUtil.isComment(afterSemicolon)) { return false; } if (afterSemicolon.length() > 0 && (afterSemicolon.charAt(0) != ' ')) { ... | /**
* Checks different conditions under which a semicolon is a BASIC label. A
* label is the first word in a line that precedes the semicolon.
*
* @param line to be tested for label
* @return true/false
*/ | Checks different conditions under which a semicolon is a BASIC label. A label is the first word in a line that precedes the semicolon | isLabel | {
"repo_name": "debabratahazra/DS",
"path": "designstudio/components/basic/ui/com.odcgroup.basic.ui/src/main/java/com/temenos/t24/tools/eclipse/basic/utils/EditorDocumentUtil.java",
"license": "epl-1.0",
"size": 29123
} | [
"java.util.regex.Matcher",
"java.util.regex.Pattern"
] | import java.util.regex.Matcher; import java.util.regex.Pattern; | import java.util.regex.*; | [
"java.util"
] | java.util; | 623,693 |
private static boolean matchDns(X509Certificate certificate, String thisDomain) {
boolean hasDns = false;
try {
Collection<?> subjectAltNames = certificate.getSubjectAlternativeNames();
if (subjectAltNames != null) {
Iterator<?> i = subjectAltNames.iterator();... | static boolean function(X509Certificate certificate, String thisDomain) { boolean hasDns = false; try { Collection<?> subjectAltNames = certificate.getSubjectAlternativeNames(); if (subjectAltNames != null) { Iterator<?> i = subjectAltNames.iterator(); while (i.hasNext()) { List<?> altNameEntry = (List<?>)(i.next()); i... | /**
* Checks the site certificate against the DNS domain name of the site being
* visited
*
* @param certificate
* The certificate to check
* @param thisDomain
* The DNS domain name of the site being visited
* @return True iff if there is a domain match as s... | Checks the site certificate against the DNS domain name of the site being visited | matchDns | {
"repo_name": "1037704496/ZywxEmail",
"path": "src/com/fsck/zywxMailk9/helper/DomainNameChecker.java",
"license": "bsd-3-clause",
"size": 11121
} | [
"android.net.http.SslCertificate",
"android.util.Log",
"java.security.cert.CertificateParsingException",
"java.security.cert.X509Certificate",
"java.util.Collection",
"java.util.Iterator",
"java.util.List"
] | import android.net.http.SslCertificate; import android.util.Log; import java.security.cert.CertificateParsingException; import java.security.cert.X509Certificate; import java.util.Collection; import java.util.Iterator; import java.util.List; | import android.net.http.*; import android.util.*; import java.security.cert.*; import java.util.*; | [
"android.net",
"android.util",
"java.security",
"java.util"
] | android.net; android.util; java.security; java.util; | 590,728 |
public static ManaCostAdjuster reduceIfHaveDamaged(@NamedArg("reduction") int reduction) {
return (Card card, int currentManaCost) -> {
int damagedCount = card.getOwner().getBoard().countMinions(Minion::isDamaged);
return damagedCount > 0 ? currentManaCost - reduction : currentManaCo... | static ManaCostAdjuster function(@NamedArg(STR) int reduction) { return (Card card, int currentManaCost) -> { int damagedCount = card.getOwner().getBoard().countMinions(Minion::isDamaged); return damagedCount > 0 ? currentManaCost - reduction : currentManaCost; }; } private ManaCostAdjusters() { throw new AssertionErro... | /**
* Returns a {@link ManaCostAdjuster} which reduces the card's cost with the given amount if you have a
* damaged minion.
* <p>
* See spell <em>Crush</em>.
*/ | Returns a <code>ManaCostAdjuster</code> which reduces the card's cost with the given amount if you have a damaged minion. See spell Crush | reduceIfHaveDamaged | {
"repo_name": "AlphaHearth/AlphaHearth",
"path": "Brazier/src/main/java/info/hearthsim/brazier/actions/ManaCostAdjusters.java",
"license": "gpl-3.0",
"size": 4176
} | [
"info.hearthsim.brazier.game.cards.Card",
"info.hearthsim.brazier.game.minions.Minion",
"info.hearthsim.brazier.parsing.NamedArg"
] | import info.hearthsim.brazier.game.cards.Card; import info.hearthsim.brazier.game.minions.Minion; import info.hearthsim.brazier.parsing.NamedArg; | import info.hearthsim.brazier.game.cards.*; import info.hearthsim.brazier.game.minions.*; import info.hearthsim.brazier.parsing.*; | [
"info.hearthsim.brazier"
] | info.hearthsim.brazier; | 583,979 |
public void loadAttachments()
{
log.fine("#" + m_vo.TabNo);
if (!canHaveAttachment())
return;
String SQL = "SELECT AD_Attachment_ID, Record_ID FROM AD_Attachment "
+ "WHERE AD_Table_ID=?";
try
{
if (m_Attachments == null)
m_Attachments = new HashMap<Integer,Integer>();
else
... | void function() { log.fine("#" + m_vo.TabNo); if (!canHaveAttachment()) return; String SQL = STR + STR; try { if (m_Attachments == null) m_Attachments = new HashMap<Integer,Integer>(); else m_Attachments.clear(); PreparedStatement pstmt = DB.prepareStatement(SQL, null); pstmt.setInt(1, m_vo.AD_Table_ID); ResultSet rs =... | /**************************************************************************
* Load Attachments for this table
*/ | Load Attachments for this table | loadAttachments | {
"repo_name": "erpcya/adempierePOS",
"path": "base/src/org/compiere/model/GridTab.java",
"license": "gpl-2.0",
"size": 88652
} | [
"java.sql.PreparedStatement",
"java.sql.ResultSet",
"java.sql.SQLException",
"java.util.HashMap",
"java.util.logging.Level",
"org.compiere.util.DB"
] | import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.HashMap; import java.util.logging.Level; import org.compiere.util.DB; | import java.sql.*; import java.util.*; import java.util.logging.*; import org.compiere.util.*; | [
"java.sql",
"java.util",
"org.compiere.util"
] | java.sql; java.util; org.compiere.util; | 837,274 |
public void addIdentifierTranslation(ASTNode identifier) {
if (!enabled) {
return;
}
assert (identifier.getToken().getType() == HiveParser.Identifier);
String replacementText = identifier.getText();
replacementText = BaseSemanticAnalyzer.unescapeIdentifier(replacementText);
replacementTe... | void function(ASTNode identifier) { if (!enabled) { return; } assert (identifier.getToken().getType() == HiveParser.Identifier); String replacementText = identifier.getText(); replacementText = BaseSemanticAnalyzer.unescapeIdentifier(replacementText); replacementText = HiveUtils.unparseIdentifier(replacementText, conf)... | /**
* Register a translation for an identifier.
*
* @param node
* source node (which must be an identifier) to be replaced
*/ | Register a translation for an identifier | addIdentifierTranslation | {
"repo_name": "sankarh/hive",
"path": "ql/src/java/org/apache/hadoop/hive/ql/parse/UnparseTranslator.java",
"license": "apache-2.0",
"size": 10298
} | [
"org.apache.hadoop.hive.ql.metadata.HiveUtils"
] | import org.apache.hadoop.hive.ql.metadata.HiveUtils; | import org.apache.hadoop.hive.ql.metadata.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 42,954 |
public void setCurrentCriteriumPath(final TreePath path) {
m_currentCriteriumPath = path;
} | void function(final TreePath path) { m_currentCriteriumPath = path; } | /**
* Changes the currently active selection path.
*
* @param path The new selection path.
*/ | Changes the currently active selection path | setCurrentCriteriumPath | {
"repo_name": "google/binnavi",
"path": "src/main/java/com/google/security/zynamics/binnavi/Gui/CriteriaDialog/ExpressionTree/JCriteriumTree.java",
"license": "apache-2.0",
"size": 3907
} | [
"javax.swing.tree.TreePath"
] | import javax.swing.tree.TreePath; | import javax.swing.tree.*; | [
"javax.swing"
] | javax.swing; | 156,080 |
void removeHost(PerunSession perunSession, Host host) throws HostAlreadyRemovedException; | void removeHost(PerunSession perunSession, Host host) throws HostAlreadyRemovedException; | /**
* Remove hosts from the Facility.
*
* @param perunSession
* @param host
*
* @throws InternalErrorException
* @throws HostAlreadyRemovedException if 0 rows affected by deleting from DB
*/ | Remove hosts from the Facility | removeHost | {
"repo_name": "zoraseb/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/FacilitiesManagerImplApi.java",
"license": "bsd-2-clause",
"size": 24424
} | [
"cz.metacentrum.perun.core.api.Host",
"cz.metacentrum.perun.core.api.PerunSession",
"cz.metacentrum.perun.core.api.exceptions.HostAlreadyRemovedException"
] | import cz.metacentrum.perun.core.api.Host; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.HostAlreadyRemovedException; | import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 2,155,507 |
@ServiceMethod(returns = ReturnType.COLLECTION)
private PagedFlux<ManagedBackupShortTermRetentionPolicyInner> listByDatabaseAsync(
String resourceGroupName, String managedInstanceName, String databaseName, Context context) {
return new PagedFlux<>(
() -> listByDatabaseSinglePageAsync... | @ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<ManagedBackupShortTermRetentionPolicyInner> function( String resourceGroupName, String managedInstanceName, String databaseName, Context context) { return new PagedFlux<>( () -> listByDatabaseSinglePageAsync(resourceGroupName, managedInstanceName, databaseName, ... | /**
* Gets a managed database's short term retention policy list.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param managedInstanceName The name of the managed insta... | Gets a managed database's short term retention policy list | listByDatabaseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/ManagedBackupShortTermRetentionPoliciesClientImpl.java",
"license": "mit",
"size": 74712
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedFlux",
"com.azure.core.util.Context",
"com.azure.resourcemanager.sql.fluent.models.ManagedBackupShortTermRetentionPolicyInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.core.util.Context; import com.azure.resourcemanager.sql.fluent.models.ManagedBackupShortTermRetentionPolicyInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.sql.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,454,685 |
public static void d(String tag, String msg) {
if (sLevel > LEVEL_DEBUG) {
return;
}
Log.d(tag, msg);
} | static void function(String tag, String msg) { if (sLevel > LEVEL_DEBUG) { return; } Log.d(tag, msg); } | /**
* Send a DEBUG log message
*
* @param tag
* @param msg
*/ | Send a DEBUG log message | d | {
"repo_name": "hubcarl/smart-hybrid-app-framework",
"path": "src/com/smart/app/vendor/pulldownrefresh/util/PtrCLog.java",
"license": "mit",
"size": 6155
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 894,435 |
@ServiceMethod(returns = ReturnType.SINGLE)
public SyncPoller<PollResult<ServerKeyInner>, ServerKeyInner> beginCreateOrUpdate(
String resourceGroupName, String serverName, String keyName, ServerKeyInner parameters) {
return beginCreateOrUpdateAsync(resourceGroupName, serverName, keyName, paramet... | @ServiceMethod(returns = ReturnType.SINGLE) SyncPoller<PollResult<ServerKeyInner>, ServerKeyInner> function( String resourceGroupName, String serverName, String keyName, ServerKeyInner parameters) { return beginCreateOrUpdateAsync(resourceGroupName, serverName, keyName, parameters).getSyncPoller(); } | /**
* Creates or updates a server key.
*
* @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value
* from the Azure Resource Manager API or the portal.
* @param serverName The name of the server.
* @param keyName The name of the ser... | Creates or updates a server key | beginCreateOrUpdate | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/implementation/ServerKeysClientImpl.java",
"license": "mit",
"size": 56869
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.management.polling.PollResult",
"com.azure.core.util.polling.SyncPoller",
"com.azure.resourcemanager.sql.fluent.models.ServerKeyInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.sql.fluent.models.ServerKeyInner; | import com.azure.core.annotation.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.sql.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 518,043 |
b2Body* body = (b2Body*)addr;
body->ApplyTorque(torque, wake);
*/
public void applyLinearImpulse (Vector2 impulse, Vector2 point, boolean wake) {
jniApplyLinearImpulse(addr, impulse.x, impulse.y, point.x, point.y, wake);
} | b2Body* body = (b2Body*)addr; body->ApplyTorque(torque, wake); */ void function (Vector2 impulse, Vector2 point, boolean wake) { jniApplyLinearImpulse(addr, impulse.x, impulse.y, point.x, point.y, wake); } | /** Apply an impulse at a point. This immediately modifies the velocity. It also modifies the angular velocity if the point of
* application is not at the center of mass. This wakes up the body.
* @param impulse the world impulse vector, usually in N-seconds or kg-m/s.
* @param point the world position of the poi... | Apply an impulse at a point. This immediately modifies the velocity. It also modifies the angular velocity if the point of application is not at the center of mass. This wakes up the body | applyLinearImpulse | {
"repo_name": "GreenLightning/libgdx",
"path": "extensions/gdx-box2d/gdx-box2d/src/com/badlogic/gdx/physics/box2d/Body.java",
"license": "apache-2.0",
"size": 28586
} | [
"com.badlogic.gdx.math.Vector2"
] | import com.badlogic.gdx.math.Vector2; | import com.badlogic.gdx.math.*; | [
"com.badlogic.gdx"
] | com.badlogic.gdx; | 667,831 |
protected Unit selectExactUnit(String compact, UnitConverter converter) {
if (compact != null) {
switch (compact) {
case "consumption":
return converter.consumptionUnit();
case "light":
return Unit.LUX;
case "speed":
return converter.speedUnit();
... | Unit function(String compact, UnitConverter converter) { if (compact != null) { switch (compact) { case STR: return converter.consumptionUnit(); case "light": return Unit.LUX; case "speed": return converter.speedUnit(); case "temp": case STR: return converter.temperatureUnit(); default: break; } } return null; } | /**
* Some categories only have a single possible unit depending the locale.
*/ | Some categories only have a single possible unit depending the locale | selectExactUnit | {
"repo_name": "phensley/template-compiler",
"path": "plugins/squarespace/src/main/java/com/squarespace/template/plugins/platform/i18n/UnitFormatter.java",
"license": "apache-2.0",
"size": 10163
} | [
"com.squarespace.cldr.units.Unit",
"com.squarespace.cldr.units.UnitConverter"
] | import com.squarespace.cldr.units.Unit; import com.squarespace.cldr.units.UnitConverter; | import com.squarespace.cldr.units.*; | [
"com.squarespace.cldr"
] | com.squarespace.cldr; | 1,576,665 |
@Test
public void newStringSubstring() {
List<String> result = new ArrayList<String>(10000);
int count = 10000;
long beg = System.currentTimeMillis();
for (int i = 0; i < count; i++) {
result.add(new NewStringSubstring().substring());
}
long end = System.currentTimeMillis();
//
System.out.println... | void function() { List<String> result = new ArrayList<String>(10000); int count = 10000; long beg = System.currentTimeMillis(); for (int i = 0; i < count; i++) { result.add(new NewStringSubstring().substring()); } long end = System.currentTimeMillis(); } protected class NewStringSubstring { private String value = new S... | /**
* New string substring.
*
* #fix 1
*/ | New string substring. #fix 1 | newStringSubstring | {
"repo_name": "mixaceh/openyu-java",
"path": "src/test/java/org/openyu/java/memoryleak/MemoryLeakSubstringTest.java",
"license": "gpl-2.0",
"size": 2379
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,449,519 |
public StepMeta findStep( String name, StepMeta exclude ) {
if ( name == null ) {
return null;
}
int excl = -1;
if ( exclude != null ) {
excl = indexOfStep( exclude );
}
for ( int i = 0; i < nrSteps(); i++ ) {
StepMeta stepMeta = getStep( i );
if ( i != excl && stepMe... | StepMeta function( String name, StepMeta exclude ) { if ( name == null ) { return null; } int excl = -1; if ( exclude != null ) { excl = indexOfStep( exclude ); } for ( int i = 0; i < nrSteps(); i++ ) { StepMeta stepMeta = getStep( i ); if ( i != excl && stepMeta.getName().equalsIgnoreCase( name ) ) { return stepMeta; ... | /**
* Searches the list of steps for a step with a certain name while excluding one step.
*
* @param name
* The name of the step to look for
* @param exclude
* The step information to exclude.
* @return The step information or null if nothing was found.
*/ | Searches the list of steps for a step with a certain name while excluding one step | findStep | {
"repo_name": "eayoungs/pentaho-kettle",
"path": "engine/src/org/pentaho/di/trans/TransMeta.java",
"license": "apache-2.0",
"size": 221441
} | [
"org.pentaho.di.trans.step.StepMeta"
] | import org.pentaho.di.trans.step.StepMeta; | import org.pentaho.di.trans.step.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 2,316,520 |
void login(String username, String password) throws AuthenticationException, Exception; | void login(String username, String password) throws AuthenticationException, Exception; | /**
* Convenience method that invokes {@link #login(org.springframework.security.core.Authentication)} with a
* {@link org.springframework.security.authentication.UsernamePasswordAuthenticationToken}-object.
* <p>
* Remember me authentication is ignored
*
* @param username the username to... | Convenience method that invokes <code>#login(org.springframework.security.core.Authentication)</code> with a <code>org.springframework.security.authentication.UsernamePasswordAuthenticationToken</code>-object. Remember me authentication is ignored | login | {
"repo_name": "zkendall/vaadin4spring",
"path": "extensions/security/src/main/java/org/vaadin/spring/security/VaadinSecurity.java",
"license": "apache-2.0",
"size": 9007
} | [
"org.springframework.security.core.AuthenticationException"
] | import org.springframework.security.core.AuthenticationException; | import org.springframework.security.core.*; | [
"org.springframework.security"
] | org.springframework.security; | 1,300,467 |
public AnimData getAnimData(Long ownerOMA) {
return this.animData.get(ownerOMA);
}
| AnimData function(Long ownerOMA) { return this.animData.get(ownerOMA); } | /**
* This method returns the animation data for the specified owner.
*
* @param ownerOMA
* the old memory address of the animation data owner
* @return the animation data or null if none exists
*/ | This method returns the animation data for the specified owner | getAnimData | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/BlenderContext.java",
"license": "gpl-2.0",
"size": 21154
} | [
"com.jme3.scene.plugins.ogre.AnimData"
] | import com.jme3.scene.plugins.ogre.AnimData; | import com.jme3.scene.plugins.ogre.*; | [
"com.jme3.scene"
] | com.jme3.scene; | 101,041 |
public void setDates(SortedSet<Date> dates, boolean checked) {
m_checkBoxes.clear();
for (Date date : dates) {
CmsCheckBox cb = generateCheckBox(date, checked);
m_checkBoxes.add(cb);
}
reInitLayoutElements();
setDatesInternal(dates);
} | void function(SortedSet<Date> dates, boolean checked) { m_checkBoxes.clear(); for (Date date : dates) { CmsCheckBox cb = generateCheckBox(date, checked); m_checkBoxes.add(cb); } reInitLayoutElements(); setDatesInternal(dates); } | /**
* Sets all dates in the list.
* @param dates the dates to set
* @param checked flag, indicating if all should be checked or unchecked.
*/ | Sets all dates in the list | setDates | {
"repo_name": "alkacon/opencms-core",
"path": "src-gwt/org/opencms/acacia/client/widgets/serialdate/CmsCheckableDatePanel.java",
"license": "lgpl-2.1",
"size": 11037
} | [
"java.util.Date",
"java.util.SortedSet",
"org.opencms.gwt.client.ui.input.CmsCheckBox"
] | import java.util.Date; import java.util.SortedSet; import org.opencms.gwt.client.ui.input.CmsCheckBox; | import java.util.*; import org.opencms.gwt.client.ui.input.*; | [
"java.util",
"org.opencms.gwt"
] | java.util; org.opencms.gwt; | 1,288,482 |
@Test(groups = {"singleCluster"})
public void testProcessInstanceResumeResumeSome() throws Exception {
bundles[0].submitFeedsScheduleProcess(prism);
InstanceUtil.waitTillInstancesAreCreated(cluster, bundles[0].getProcessData(), 0);
OozieUtil.createMissingDependencies(cluster, EntityType.... | @Test(groups = {STR}) void function() throws Exception { bundles[0].submitFeedsScheduleProcess(prism); InstanceUtil.waitTillInstancesAreCreated(cluster, bundles[0].getProcessData(), 0); OozieUtil.createMissingDependencies(cluster, EntityType.PROCESS, processName, 0); InstanceUtil.waitTillInstanceReachState(clusterOC, p... | /**
* Schedule process. Suspend some instances. Try to perform -resume using time range which
* effects only on one instance. Check that this instance was resumed es expected.
*
* @throws Exception
*/ | Schedule process. Suspend some instances. Try to perform -resume using time range which effects only on one instance. Check that this instance was resumed es expected | testProcessInstanceResumeResumeSome | {
"repo_name": "ajayyadav/Apache-Falcon",
"path": "falcon-regression/merlin/src/test/java/org/apache/falcon/regression/ProcessInstanceResumeTest.java",
"license": "apache-2.0",
"size": 14465
} | [
"org.apache.falcon.entity.v0.EntityType",
"org.apache.falcon.regression.core.util.InstanceUtil",
"org.apache.falcon.regression.core.util.OozieUtil",
"org.apache.falcon.resource.InstancesResult",
"org.apache.oozie.client.CoordinatorAction",
"org.testng.annotations.Test"
] | import org.apache.falcon.entity.v0.EntityType; import org.apache.falcon.regression.core.util.InstanceUtil; import org.apache.falcon.regression.core.util.OozieUtil; import org.apache.falcon.resource.InstancesResult; import org.apache.oozie.client.CoordinatorAction; import org.testng.annotations.Test; | import org.apache.falcon.entity.v0.*; import org.apache.falcon.regression.core.util.*; import org.apache.falcon.resource.*; import org.apache.oozie.client.*; import org.testng.annotations.*; | [
"org.apache.falcon",
"org.apache.oozie",
"org.testng.annotations"
] | org.apache.falcon; org.apache.oozie; org.testng.annotations; | 1,627,457 |
@Override
public void addHashes(Content content, String comment) throws TskCoreException {
// This only works for AbstractFiles and MD5 hashes at present.
assert content instanceof AbstractFile;
if (content instanceof AbstractFile) {
AbstractFile file... | void function(Content content, String comment) throws TskCoreException { assert content instanceof AbstractFile; if (content instanceof AbstractFile) { AbstractFile file = (AbstractFile) content; if (null != file.getMd5Hash()) { TskData.FileKnown type; if(knownFilesType.equals(HashDb.KnownFilesType.KNOWN_BAD)){ type = ... | /**
* Adds hashes of content (if calculated) to the hash database.
*
* @param content The content for which the calculated hashes, if any,
* are to be added to the hash database.
* @param comment A comment to associate with the hashes, e.g., the name
... | Adds hashes of content (if calculated) to the hash database | addHashes | {
"repo_name": "esaunders/autopsy",
"path": "Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbManager.java",
"license": "apache-2.0",
"size": 60611
} | [
"org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoException",
"org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoFileInstance",
"org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository",
"org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstance",
"org... | import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoException; import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepoFileInstance; import org.sleuthkit.autopsy.centralrepository.datamodel.CentralRepository; import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationAttributeInstan... | import org.sleuthkit.autopsy.centralrepository.datamodel.*; import org.sleuthkit.datamodel.*; | [
"org.sleuthkit.autopsy",
"org.sleuthkit.datamodel"
] | org.sleuthkit.autopsy; org.sleuthkit.datamodel; | 2,647,026 |
public MatrixStack loadMatrix(Matrix4f mat) {
if (mat == null) {
throw new IllegalArgumentException("mat must not be null"); //$NON-NLS-1$
}
mats[curr].set(mat);
return this;
}
/**
* Load the values of a column-major matrix from the given
* {@link Float... | MatrixStack function(Matrix4f mat) { if (mat == null) { throw new IllegalArgumentException(STR); } mats[curr].set(mat); return this; } /** * Load the values of a column-major matrix from the given * {@link FloatBuffer} into the current matrix of the stack. * * @param columnMajorArray * the values of the 4x4 matrix as a... | /**
* Load the given {@link Matrix4f} into the current matrix of the stack.
*
* @param mat
* the matrix which is stored in the current stack matrix
* @return this
*/ | Load the given <code>Matrix4f</code> into the current matrix of the stack | loadMatrix | {
"repo_name": "MrBlaise/lwjgl-opengl-engine",
"path": "src/util/joml/MatrixStack.java",
"license": "mit",
"size": 34617
} | [
"java.nio.FloatBuffer"
] | import java.nio.FloatBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 1,123,627 |
public void setReportFormat(String format) {
if (format.equalsIgnoreCase("HTML") || format.equalsIgnoreCase("TEXT")) {
reportFormat = format;
} else {
throw new BuildException("Invalid report format: " + format);
}
} | void function(String format) { if (format.equalsIgnoreCase("HTML") format.equalsIgnoreCase("TEXT")) { reportFormat = format; } else { throw new BuildException(STR + format); } } | /**
* Set the output format of the dependency summary. The default
* format is "text." Valid formats are: text and html.
*/ | Set the output format of the dependency summary. The default format is "text." Valid formats are: text and html | setReportFormat | {
"repo_name": "ModelN/build-management",
"path": "mn-build-ant/src/main/java/com/modeln/build/ant/depends/DependencyListTask.java",
"license": "mit",
"size": 26777
} | [
"org.apache.tools.ant.BuildException"
] | import org.apache.tools.ant.BuildException; | import org.apache.tools.ant.*; | [
"org.apache.tools"
] | org.apache.tools; | 806,938 |
public void setColor(Color c){
nodeColor = c;
} | void function(Color c){ nodeColor = c; } | /**
* Set the default color member 'nodeColor' of this node. This
* node uses this color by defaut if the method 'getColor()'
* is not overwritten in your node subclass. Overwrite
* getColor() in your subclass to implement more advanced
* coloring schemes.
*
* @param c The new color.
*/ | Set the default color member 'nodeColor' of this node. This node uses this color by defaut if the method 'getColor()' is not overwritten in your node subclass. Overwrite getColor() in your subclass to implement more advanced coloring schemes | setColor | {
"repo_name": "tamaguchi/mini-project-sinalgo",
"path": "src/sinalgo/nodes/Node.java",
"license": "bsd-3-clause",
"size": 59516
} | [
"java.awt.Color"
] | import java.awt.Color; | import java.awt.*; | [
"java.awt"
] | java.awt; | 779,830 |
public void cancelDelayedSort() {
timer.cancel();
}
}
private class AutoColumnWidthsRecalculator {
private double lastCalculatedInnerWidth = -1;
private final ScheduledCommand calculateCommand = new ScheduledCommand() { | void function() { timer.cancel(); } } private class AutoColumnWidthsRecalculator { private double lastCalculatedInnerWidth = -1; private final ScheduledCommand calculateCommand = new ScheduledCommand() { | /**
* Cancel a scheduled sort.
*/ | Cancel a scheduled sort | cancelDelayedSort | {
"repo_name": "magi42/vaadin",
"path": "client/src/com/vaadin/client/widgets/Grid.java",
"license": "apache-2.0",
"size": 300856
} | [
"com.google.gwt.core.client.Scheduler"
] | import com.google.gwt.core.client.Scheduler; | import com.google.gwt.core.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 1,377,290 |
public static <T extends Element, V extends Element> Property<T, V> of (
final Class<T> element,
final Class<V> value,
final String name,
final Function<T, Collection<V>> get,
final BiPredicate<T, V> add,
final BiPredicate<T, V> remove,
final Flags... flags)
{
Preconditions.checkNotNull (elem... | static <T extends Element, V extends Element> Property<T, V> function ( final Class<T> element, final Class<V> value, final String name, final Function<T, Collection<V>> get, final BiPredicate<T, V> add, final BiPredicate<T, V> remove, final Flags... flags) { Preconditions.checkNotNull (element, STR); Preconditions.che... | /**
* Create a Multi-Valued <code>Property</code>, with the specified flags.
*
* @param element The <code>Element</code> interface class, not null
* @param value The value class, not null
* @param name The name of the <code>Property</code>, not null
* @param get Method reference to retrieve the... | Create a Multi-Valued <code>Property</code>, with the specified flags | of | {
"repo_name": "jestark/LMSDataHarvester",
"path": "src/main/java/ca/uoguelph/socs/icc/edm/domain/metadata/Property.java",
"license": "gpl-3.0",
"size": 19095
} | [
"ca.uoguelph.socs.icc.edm.domain.Element",
"com.google.common.base.Preconditions",
"java.util.Collection",
"java.util.EnumSet",
"java.util.Set",
"java.util.function.BiPredicate",
"java.util.function.Function"
] | import ca.uoguelph.socs.icc.edm.domain.Element; import com.google.common.base.Preconditions; import java.util.Collection; import java.util.EnumSet; import java.util.Set; import java.util.function.BiPredicate; import java.util.function.Function; | import ca.uoguelph.socs.icc.edm.domain.*; import com.google.common.base.*; import java.util.*; import java.util.function.*; | [
"ca.uoguelph.socs",
"com.google.common",
"java.util"
] | ca.uoguelph.socs; com.google.common; java.util; | 2,452,933 |
protected void handleException(final SQLException e) throws SQLException {
throw e;
}
/**
* Handles the given {@code SQLException}.
*
* @param <T> The throwable type.
* @param e The SQLException
* @return the given {@code SQLException} | void function(final SQLException e) throws SQLException { throw e; } /** * Handles the given {@code SQLException}. * * @param <T> The throwable type. * @param e The SQLException * @return the given {@code SQLException} | /**
* Handles the given exception by throwing it.
*
* @param e the exception to throw.
* @throws SQLException the exception to throw.
*/ | Handles the given exception by throwing it | handleException | {
"repo_name": "apache/tomcat",
"path": "java/org/apache/tomcat/dbcp/dbcp2/DelegatingConnection.java",
"license": "apache-2.0",
"size": 33020
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,352,155 |
@Override
public IoSession findSession(SessionKey sessionKey) {
return GameContext.getInstance().findLocalUserIoSession(sessionKey);
}
| IoSession function(SessionKey sessionKey) { return GameContext.getInstance().findLocalUserIoSession(sessionKey); } | /**
* Find a IoSession by its session key.
* @param sessionKey
* @return
*/ | Find a IoSession by its session key | findSession | {
"repo_name": "wangqi/gameserver",
"path": "server/src/main/java/com/xinqihd/sns/gameserver/session/MinaMessageQueue.java",
"license": "apache-2.0",
"size": 15541
} | [
"com.xinqihd.sns.gameserver.GameContext",
"org.apache.mina.core.session.IoSession"
] | import com.xinqihd.sns.gameserver.GameContext; import org.apache.mina.core.session.IoSession; | import com.xinqihd.sns.gameserver.*; import org.apache.mina.core.session.*; | [
"com.xinqihd.sns",
"org.apache.mina"
] | com.xinqihd.sns; org.apache.mina; | 1,750,726 |
public static List<AccountWithDataSet> unstringifyList(String s) {
final ArrayList<AccountWithDataSet> ret = Lists.newArrayList();
if (TextUtils.isEmpty(s)) {
return ret;
}
final String[] array = ARRAY_STRINGIFY_SEPARATOR_PAT.split(s);
for (int i = 0; i < array.... | static List<AccountWithDataSet> function(String s) { final ArrayList<AccountWithDataSet> ret = Lists.newArrayList(); if (TextUtils.isEmpty(s)) { return ret; } final String[] array = ARRAY_STRINGIFY_SEPARATOR_PAT.split(s); for (int i = 0; i < array.length; i++) { ret.add(unstringify(array[i])); } return ret; } | /**
* Unpack a list of {@link AccountWithDataSet} into a string.
*
* @throws IllegalArgumentException if it's an invalid string.
*/ | Unpack a list of <code>AccountWithDataSet</code> into a string | unstringifyList | {
"repo_name": "miswenwen/My_bird_work",
"path": "Bird_work/我的项目/Contacts/Contacts_liuqipeng/src/com/yunos/alicontacts/model/account/AccountWithDataSet.java",
"license": "apache-2.0",
"size": 6676
} | [
"android.text.TextUtils",
"com.google.common.collect.Lists",
"java.util.ArrayList",
"java.util.List"
] | import android.text.TextUtils; import com.google.common.collect.Lists; import java.util.ArrayList; import java.util.List; | import android.text.*; import com.google.common.collect.*; import java.util.*; | [
"android.text",
"com.google.common",
"java.util"
] | android.text; com.google.common; java.util; | 798,671 |
public Collection<LockBMatch> getAllMatches(final Signal pSignal, final String pType, final Module pModule) {
return rawGetAllMatches(new Object[]{pSignal, pType, pModule});
}
| Collection<LockBMatch> function(final Signal pSignal, final String pType, final Module pModule) { return rawGetAllMatches(new Object[]{pSignal, pType, pModule}); } | /**
* Returns the set of all matches of the pattern that conform to the given fixed values of some parameters.
* @param pSignal the fixed value of pattern parameter signal, or null if not bound.
* @param pType the fixed value of pattern parameter type, or null if not bound.
* @param pModule the fixed va... | Returns the set of all matches of the pattern that conform to the given fixed values of some parameters | getAllMatches | {
"repo_name": "debrecenics/PropertyBasedLockingEvaluation",
"path": "evaluation/org.mondo.collaboration.security.query/src-gen/org/mondo/collaboration/security/query/LockBMatcher.java",
"license": "mit",
"size": 15657
} | [
"java.util.Collection",
"org.mondo.collaboration.security.query.LockBMatch"
] | import java.util.Collection; import org.mondo.collaboration.security.query.LockBMatch; | import java.util.*; import org.mondo.collaboration.security.query.*; | [
"java.util",
"org.mondo.collaboration"
] | java.util; org.mondo.collaboration; | 1,962,234 |
public void addChild(CallNode<T> child) {
if (children == null) {
children = new ArrayList<CallNode<T>>();
}
children.add(child);
} | void function(CallNode<T> child) { if (children == null) { children = new ArrayList<CallNode<T>>(); } children.add(child); } | /**
* Adds a child to the list of children for this node.
*
* @param child
* a CallNode<T> object to add.
*/ | Adds a child to the list of children for this node | addChild | {
"repo_name": "CloudScale-Project/DynamicSpotter",
"path": "org.spotter.shared/src/org/spotter/shared/result/model/CallNode.java",
"license": "apache-2.0",
"size": 3821
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 2,245,965 |
@Config("collector.goodwill.port")
@Default("8080")
int getGoodwillPort(); | @Config(STR) @Default("8080") int getGoodwillPort(); | /**
* Goodwill port. This is used for the ActiveMQ integration.
*
* @return Goodwill port
*/ | Goodwill port. This is used for the ActiveMQ integration | getGoodwillPort | {
"repo_name": "pierre/collector",
"path": "src/main/java/com/ning/metrics/collector/binder/config/CollectorConfig.java",
"license": "apache-2.0",
"size": 12023
} | [
"org.skife.config.Config",
"org.skife.config.Default"
] | import org.skife.config.Config; import org.skife.config.Default; | import org.skife.config.*; | [
"org.skife.config"
] | org.skife.config; | 1,623,112 |
public NavigableMap<byte[], byte[]> getFamilyMap(byte [] family) {
if(this.familyMap == null) {
getMap();
}
if(isEmpty()) {
return null;
}
NavigableMap<byte[], byte[]> returnMap =
new TreeMap<byte[], byte[]>(Bytes.BYTES_COMPARATOR);
NavigableMap<byte[], NavigableMap<Long, byt... | NavigableMap<byte[], byte[]> function(byte [] family) { if(this.familyMap == null) { getMap(); } if(isEmpty()) { return null; } NavigableMap<byte[], byte[]> returnMap = new TreeMap<byte[], byte[]>(Bytes.BYTES_COMPARATOR); NavigableMap<byte[], NavigableMap<Long, byte[]>> qualifierMap = familyMap.get(family); if(qualifie... | /**
* Map of qualifiers to values.
* <p>
* Returns a Map of the form: <code>Map<qualifier,value></code>
* @param family column family to get
* @return map of qualifiers to values
*/ | Map of qualifiers to values. Returns a Map of the form: <code>Map<qualifier,value></code> | getFamilyMap | {
"repo_name": "daidong/DominoHBase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/client/Result.java",
"license": "apache-2.0",
"size": 23406
} | [
"java.util.Map",
"java.util.NavigableMap",
"java.util.TreeMap",
"org.apache.hadoop.hbase.util.Bytes"
] | import java.util.Map; import java.util.NavigableMap; import java.util.TreeMap; import org.apache.hadoop.hbase.util.Bytes; | import java.util.*; import org.apache.hadoop.hbase.util.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 669,558 |
@Test
public void testSendMailActionForUserNameAsRecipient() throws IOException, MessagingException
{
String from = BRITISH_USER.getUsername();
Serializable recipients = (Serializable) Arrays.asList(ALFRESCO_EE_USER);
String subject = "Testing";
String template = "alfre... | void function() throws IOException, MessagingException { String from = BRITISH_USER.getUsername(); Serializable recipients = (Serializable) Arrays.asList(ALFRESCO_EE_USER); String subject = STR; String template = STR; MimeMessage message = sendMessage(from, recipients, subject, template); Assert.assertNotNull(message);... | /**
* Test for ALF-19231
*/ | Test for ALF-19231 | testSendMailActionForUserNameAsRecipient | {
"repo_name": "Alfresco/community-edition",
"path": "projects/repository/source/test-java/org/alfresco/repo/action/executer/AbstractMailActionExecuterTest.java",
"license": "lgpl-3.0",
"size": 34277
} | [
"java.io.IOException",
"java.io.Serializable",
"java.util.Arrays",
"javax.mail.MessagingException",
"javax.mail.internet.MimeMessage",
"org.junit.Assert"
] | import java.io.IOException; import java.io.Serializable; import java.util.Arrays; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import org.junit.Assert; | import java.io.*; import java.util.*; import javax.mail.*; import javax.mail.internet.*; import org.junit.*; | [
"java.io",
"java.util",
"javax.mail",
"org.junit"
] | java.io; java.util; javax.mail; org.junit; | 237,827 |
public void clear(String dbname)
{
if (dbname==null)
{
cache = new Hashtable<DBCacheEntry,RowMetaInterface>();
setActive();
}
else
{
Enumeration<DBCacheEntry> keys = cache.keys();
while (keys.hasMoreElements())
{
DBCacheEntry entry = (DBCacheEntry)keys.nextElement();
if (entry.sameD... | void function(String dbname) { if (dbname==null) { cache = new Hashtable<DBCacheEntry,RowMetaInterface>(); setActive(); } else { Enumeration<DBCacheEntry> keys = cache.keys(); while (keys.hasMoreElements()) { DBCacheEntry entry = (DBCacheEntry)keys.nextElement(); if (entry.sameDB(dbname)) { cache.remove(entry); } } } } | /**
* Clear out all entries of database with a certain name
* @param dbname The name of the database for which we want to clear the cache or null if we want to clear it all.
*/ | Clear out all entries of database with a certain name | clear | {
"repo_name": "soluvas/pdi-ce",
"path": "src-core/org/pentaho/di/core/DBCache.java",
"license": "apache-2.0",
"size": 6861
} | [
"java.util.Enumeration",
"java.util.Hashtable",
"org.pentaho.di.core.row.RowMetaInterface"
] | import java.util.Enumeration; import java.util.Hashtable; import org.pentaho.di.core.row.RowMetaInterface; | import java.util.*; import org.pentaho.di.core.row.*; | [
"java.util",
"org.pentaho.di"
] | java.util; org.pentaho.di; | 2,153,310 |
public static List<String> loadFileAsArray(final String path){ //Takes each line of a file and adds it to an ArrayList then returns that ArrayList
ArrayList<String> fileAsString = new ArrayList<String>(); //New ArrayList that store type String
try (BufferedReader br = new BufferedReader(new FileReader(path));) {... | static List<String> function(final String path){ ArrayList<String> fileAsString = new ArrayList<String>(); try (BufferedReader br = new BufferedReader(new FileReader(path));) { String read = br.readLine(); while(read != null){ fileAsString.add(read); read = br.readLine(); } } catch (FileNotFoundException e) { e.printSt... | /**
* Reads a file and returns it as an ArrayList
*
* @param path
* @return
*/ | Reads a file and returns it as an ArrayList | loadFileAsArray | {
"repo_name": "FIRST-Team-1699/autonomous-code",
"path": "src/org/usfirst/frc/team1699/utils/autonomous/AutoUtils.java",
"license": "mit",
"size": 3144
} | [
"java.io.BufferedReader",
"java.io.FileNotFoundException",
"java.io.FileReader",
"java.io.IOException",
"java.util.ArrayList",
"java.util.List"
] | import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.List; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 919,157 |
public static void addCelestialBodyLoader(final String name, final CelestialBodyLoader loader) {
synchronized (LOADERS_MAP) {
List<CelestialBodyLoader> loaders = LOADERS_MAP.get(name);
if (loaders == null) {
loaders = new ArrayList<CelestialBodyLoader>();
... | static void function(final String name, final CelestialBodyLoader loader) { synchronized (LOADERS_MAP) { List<CelestialBodyLoader> loaders = LOADERS_MAP.get(name); if (loaders == null) { loaders = new ArrayList<CelestialBodyLoader>(); LOADERS_MAP.put(name, loaders); } loaders.add(loader); } } | /** Add a loader for celestial bodies.
* @param name name of the body (may be one of the predefined names or a user-defined name)
* @param loader custom loader to add for the body
* @see #addDefaultCelestialBodyLoader(String)
* @see #clearCelestialBodyLoaders(String)
* @see #clearCelestialBodyL... | Add a loader for celestial bodies | addCelestialBodyLoader | {
"repo_name": "treeform/orekit",
"path": "src/main/java/org/orekit/bodies/CelestialBodyFactory.java",
"license": "apache-2.0",
"size": 18815
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,852,060 |
public void setWorkflowStatus(WorkflowStatus workflowStatus); | void function(WorkflowStatus workflowStatus); | /**
* Sets the workflow status.
*
* @param workflowStatus the new workflow status
*/ | Sets the workflow status | setWorkflowStatus | {
"repo_name": "WestCoastInformatics/UMLS-Terminology-Server",
"path": "model/src/main/java/com/wci/umls/server/helpers/TypeKeyValue.java",
"license": "apache-2.0",
"size": 1225
} | [
"com.wci.umls.server.model.workflow.WorkflowStatus"
] | import com.wci.umls.server.model.workflow.WorkflowStatus; | import com.wci.umls.server.model.workflow.*; | [
"com.wci.umls"
] | com.wci.umls; | 1,153,784 |
private void insertRowIntoSubclassIfNecessary(Concept concept) {
// check the concept_numeric table
if (concept instanceof ConceptNumeric) {
String select = "SELECT 1 from concept_numeric WHERE concept_id = :conceptId";
Query query = sessionFactory.getCurrentSession().createSQLQuery(select);
quer... | void function(Concept concept) { if (concept instanceof ConceptNumeric) { String select = STR; Query query = sessionFactory.getCurrentSession().createSQLQuery(select); query.setInteger(STR, concept.getConceptId()); if (query.uniqueResult() == null) { sessionFactory.getCurrentSession().clear(); deleteSubclassConcept(STR... | /**
* Convenience method that will check this concept for subtype values (ConceptNumeric,
* ConceptDerived, etc) and insert a line into that subtable if needed. This prevents a
* hibernate ConstraintViolationException
*
* @param concept the concept that will be inserted
*/ | Convenience method that will check this concept for subtype values (ConceptNumeric, ConceptDerived, etc) and insert a line into that subtable if needed. This prevents a hibernate ConstraintViolationException | insertRowIntoSubclassIfNecessary | {
"repo_name": "maany/openmrs-core",
"path": "api/src/main/java/org/openmrs/api/db/hibernate/HibernateConceptDAO.java",
"license": "mpl-2.0",
"size": 67558
} | [
"org.hibernate.Query",
"org.openmrs.Concept",
"org.openmrs.ConceptComplex",
"org.openmrs.ConceptNumeric"
] | import org.hibernate.Query; import org.openmrs.Concept; import org.openmrs.ConceptComplex; import org.openmrs.ConceptNumeric; | import org.hibernate.*; import org.openmrs.*; | [
"org.hibernate",
"org.openmrs"
] | org.hibernate; org.openmrs; | 338,571 |
public Rect getOverscanFrameLw(); | Rect function(); | /**
* Retrieve the frame of the area inside the overscan region of the
* display that this window was last laid out in. Must be called with the
* window manager lock held.
*
* @return Rect The rectangle holding the display overscan frame.
*/ | Retrieve the frame of the area inside the overscan region of the display that this window was last laid out in. Must be called with the window manager lock held | getOverscanFrameLw | {
"repo_name": "xorware/android_frameworks_base",
"path": "core/java/android/view/WindowManagerPolicy.java",
"license": "apache-2.0",
"size": 55163
} | [
"android.graphics.Rect"
] | import android.graphics.Rect; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 2,601,550 |
public void putMethodAnalysis(Class<?> analysisClass, MethodDescriptor methodDescriptor, Object object) {
if (object == null) {
throw new IllegalArgumentException();
}
Map<MethodDescriptor, Object> objectMap = getObjectMap(analysisClass);
objectMap.put(methodDescriptor, o... | void function(Class<?> analysisClass, MethodDescriptor methodDescriptor, Object object) { if (object == null) { throw new IllegalArgumentException(); } Map<MethodDescriptor, Object> objectMap = getObjectMap(analysisClass); objectMap.put(methodDescriptor, object); } | /**
* Store a method analysis object. Note that the cached analysis object
* could be a special value (indicating null or an exception).
*
* @param analysisClass
* class the method analysis object belongs to
* @param methodDescriptor
* method descriptor identifyi... | Store a method analysis object. Note that the cached analysis object could be a special value (indicating null or an exception) | putMethodAnalysis | {
"repo_name": "OpenNTF/FindBug-for-Domino-Designer",
"path": "findBugsEclipsePlugin/src/edu/umd/cs/findbugs/ba/ClassContext.java",
"license": "lgpl-3.0",
"size": 38866
} | [
"edu.umd.cs.findbugs.classfile.MethodDescriptor",
"java.util.Map"
] | import edu.umd.cs.findbugs.classfile.MethodDescriptor; import java.util.Map; | import edu.umd.cs.findbugs.classfile.*; import java.util.*; | [
"edu.umd.cs",
"java.util"
] | edu.umd.cs; java.util; | 2,145,523 |
private String queryFilter(RDFNode value) {
String valueEnc = value.isURIResource() ? "<" + value.asResource().getURI() + ">" : value.toString();
return "FILTER(?" + varname + " = " + valueEnc + ")\n";
} | String function(RDFNode value) { String valueEnc = value.isURIResource() ? "<" + value.asResource().getURI() + ">" : value.toString(); return STR + varname + STR + valueEnc + ")\n"; } | /**
* Generate a SPARQL query fragment which filters for a specific value for this facet
*/ | Generate a SPARQL query fragment which filters for a specific value for this facet | queryFilter | {
"repo_name": "UKGovLD/registry-core",
"path": "src/main/java/com/epimorphics/registry/webapi/facets/FacetSpec.java",
"license": "apache-2.0",
"size": 2848
} | [
"org.apache.jena.rdf.model.RDFNode"
] | import org.apache.jena.rdf.model.RDFNode; | import org.apache.jena.rdf.model.*; | [
"org.apache.jena"
] | org.apache.jena; | 764,454 |
public void postConstruct() {
Assert.isTrue(this.spacing == null || this.spacing.length == 2,
GridLayer.class.getSimpleName() +
".spacing has the wrong number of elements. Expected 2 (x,y) but was: " +
Arrays.toString(this.sp... | void function() { Assert.isTrue(this.spacing == null this.spacing.length == 2, GridLayer.class.getSimpleName() + STR + Arrays.toString(this.spacing)); Assert.isTrue(this.numberOfLines == null this.numberOfLines.length == 2, GridLayer.class.getSimpleName() + STR + Arrays.toString(this.numberOfLines)); Assert.isTrue(this... | /**
* Initialize default values and validate that config is correct.
*/ | Initialize default values and validate that config is correct | postConstruct | {
"repo_name": "marcjansen/mapfish-print",
"path": "core/src/main/java/org/mapfish/print/map/geotools/grid/GridParam.java",
"license": "bsd-2-clause",
"size": 11502
} | [
"com.vividsolutions.jts.util.Assert",
"java.util.Arrays",
"java.util.IllegalFormatException",
"org.geotools.referencing.CRS",
"org.opengis.referencing.FactoryException"
] | import com.vividsolutions.jts.util.Assert; import java.util.Arrays; import java.util.IllegalFormatException; import org.geotools.referencing.CRS; import org.opengis.referencing.FactoryException; | import com.vividsolutions.jts.util.*; import java.util.*; import org.geotools.referencing.*; import org.opengis.referencing.*; | [
"com.vividsolutions.jts",
"java.util",
"org.geotools.referencing",
"org.opengis.referencing"
] | com.vividsolutions.jts; java.util; org.geotools.referencing; org.opengis.referencing; | 2,192,337 |
@SuppressWarnings("unchecked")
public Shape transform(Context<Graph<V,E>,E> context) {
Graph<V,E> graph = context.graph;
E e = context.element;
Pair<V> endpoints = graph.getEndpoints(e);
if(endpoints != null) {
boolean isLoop = endpoints.getFirst().equa... | @SuppressWarnings(STR) Shape function(Context<Graph<V,E>,E> context) { Graph<V,E> graph = context.graph; E e = context.element; Pair<V> endpoints = graph.getEndpoints(e); if(endpoints != null) { boolean isLoop = endpoints.getFirst().equals(endpoints.getSecond()); if (isLoop) { return loop.transform(context); } } int in... | /**
* Get the shape for this edge, returning either the
* shared instance or, in the case of self-loop edges, the
* Loop shared instance.
*/ | Get the shape for this edge, returning either the shared instance or, in the case of self-loop edges, the Loop shared instance | transform | {
"repo_name": "pdeboer/wikilanguage",
"path": "lib/jung2/jung-visualization/src/main/java/edu/uci/ics/jung/visualization/decorators/EdgeShape.java",
"license": "mit",
"size": 15796
} | [
"edu.uci.ics.jung.graph.Graph",
"edu.uci.ics.jung.graph.util.Context",
"edu.uci.ics.jung.graph.util.EdgeIndexFunction",
"edu.uci.ics.jung.graph.util.Pair",
"java.awt.Shape",
"java.awt.geom.CubicCurve2D"
] | import edu.uci.ics.jung.graph.Graph; import edu.uci.ics.jung.graph.util.Context; import edu.uci.ics.jung.graph.util.EdgeIndexFunction; import edu.uci.ics.jung.graph.util.Pair; import java.awt.Shape; import java.awt.geom.CubicCurve2D; | import edu.uci.ics.jung.graph.*; import edu.uci.ics.jung.graph.util.*; import java.awt.*; import java.awt.geom.*; | [
"edu.uci.ics",
"java.awt"
] | edu.uci.ics; java.awt; | 1,272,666 |
String getDialectURI(String endUserName) throws APIManagementException; | String getDialectURI(String endUserName) throws APIManagementException; | /**
* Must return the dialect URI of the user ClaimURIs.
*
* @throws APIManagementException
*/ | Must return the dialect URI of the user ClaimURIs | getDialectURI | {
"repo_name": "rnavagamuwa/custom-carbon-apimgt",
"path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/token/ClaimsRetriever.java",
"license": "apache-2.0",
"size": 2112
} | [
"org.wso2.carbon.apimgt.api.APIManagementException"
] | import org.wso2.carbon.apimgt.api.APIManagementException; | import org.wso2.carbon.apimgt.api.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 323,643 |
private void initComponents() {
this.contentPanel = new javax.swing.JPanel();
this.jScrollPane1 = new javax.swing.JScrollPane();
this.outputArea = new javax.swing.JTextArea();
this.contentPanel.setBorder(javax.swing.BorderFactory
.createTitledBorder("Output"));
this.outputArea.setColumns(20);
this... | void function() { this.contentPanel = new javax.swing.JPanel(); this.jScrollPane1 = new javax.swing.JScrollPane(); this.outputArea = new javax.swing.JTextArea(); this.contentPanel.setBorder(javax.swing.BorderFactory .createTitledBorder(STR)); this.outputArea.setColumns(20); this.outputArea.setRows(5); this.outputArea.s... | /**
* Inits the components.
*/ | Inits the components | initComponents | {
"repo_name": "wuiidl/Thesis",
"path": "Bakk-Askalon-Installer/src/org/askalon/installer/visualization/view/dialog/OutputDialogPanel.java",
"license": "gpl-3.0",
"size": 4331
} | [
"java.awt.event.AdjustmentListener"
] | import java.awt.event.AdjustmentListener; | import java.awt.event.*; | [
"java.awt"
] | java.awt; | 1,656,734 |
public void setDateCreated(Date value)
{
setAttributeInternal(DATECREATED, value);
} | void function(Date value) { setAttributeInternal(DATECREATED, value); } | /**
*
* Sets <code>value</code> as the attribute value for DateCreated
*/ | Sets <code>value</code> as the attribute value for DateCreated | setDateCreated | {
"repo_name": "CBIIT/cadsr-util",
"path": "cadsrutil/src/java/gov/nih/nci/ncicb/cadsr/common/persistence/bc4j/CsCsiImpl.java",
"license": "bsd-3-clause",
"size": 10810
} | [
"oracle.jbo.domain.Date"
] | import oracle.jbo.domain.Date; | import oracle.jbo.domain.*; | [
"oracle.jbo.domain"
] | oracle.jbo.domain; | 2,121,537 |
public List<String> filesInStr(Long mid, String string) {
return filesInStr(mid, string, false);
} | List<String> function(Long mid, String string) { return filesInStr(mid, string, false); } | /**
* String manipulation
* ***********************************************************
*/ | String manipulation | filesInStr | {
"repo_name": "masoud2v/Anki-Android",
"path": "src/com/ichi2/libanki/Media.java",
"license": "gpl-3.0",
"size": 35425
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,213,851 |
public int getIntFromPieces(List<XMLpiece> V, String tag, int defVal); | int function(List<XMLpiece> V, String tag, int defVal); | /**
* Return the data value within a given XML block
* <TAG>Data</TAG>
*
* <br><br><b>Usage:</b> String ThisColHead=getIntFromPieces(ThisRow,"TD");
* @param V Pieces to search
* @param tag Tag to search for
* @param defVal the value to return if the tag doesn't exist
* @return the tags value, or defValu... | Return the data value within a given XML block Data Usage: String ThisColHead=getIntFromPieces(ThisRow,"TD") | getIntFromPieces | {
"repo_name": "ConsecroMUD/ConsecroMUD",
"path": "com/suscipio_solutions/consecro_mud/Libraries/interfaces/XMLLibrary.java",
"license": "apache-2.0",
"size": 12522
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 675,934 |
public final transient DefaultInputPort<KeyValPair<K, V>> base = new DefaultInputPort<KeyValPair<K, V>>()
{
@Override
public void process(KeyValPair<K, V> tuple)
{
if (tuple.getValue().doubleValue() != 0.0) { // Avoid divide by zero, Emit
// an error tuple?
MutableDouble val =... | final transient DefaultInputPort<KeyValPair<K, V>> base = new DefaultInputPort<KeyValPair<K, V>>() { public void function(KeyValPair<K, V> tuple) { if (tuple.getValue().doubleValue() != 0.0) { MutableDouble val = basemap.get(tuple.getKey()); if (val == null) { val = new MutableDouble(0.0); basemap.put(cloneKey(tuple.ge... | /**
* Process each key to store the value. If same key appears again update
* with latest value.
*/ | Process each key to store the value. If same key appears again update with latest value | process | {
"repo_name": "skekre98/apex-mlhr",
"path": "library/src/main/java/com/datatorrent/lib/math/ChangeKeyVal.java",
"license": "apache-2.0",
"size": 4543
} | [
"com.datatorrent.api.DefaultInputPort",
"com.datatorrent.api.DefaultOutputPort",
"com.datatorrent.api.annotation.OutputPortFieldAnnotation",
"com.datatorrent.lib.util.KeyValPair",
"org.apache.commons.lang.mutable.MutableDouble"
] | import com.datatorrent.api.DefaultInputPort; import com.datatorrent.api.DefaultOutputPort; import com.datatorrent.api.annotation.OutputPortFieldAnnotation; import com.datatorrent.lib.util.KeyValPair; import org.apache.commons.lang.mutable.MutableDouble; | import com.datatorrent.api.*; import com.datatorrent.api.annotation.*; import com.datatorrent.lib.util.*; import org.apache.commons.lang.mutable.*; | [
"com.datatorrent.api",
"com.datatorrent.lib",
"org.apache.commons"
] | com.datatorrent.api; com.datatorrent.lib; org.apache.commons; | 1,271,948 |
public final Type visitFloatingPointLiteral(final GNode n) {
final String s = n.getString(0);
final boolean isFloat = 'f' == Character.toLowerCase(s.charAt(s.length() - 1));
final Number value = isFloat ? (Number)new Float(s) : new Double(s);
if (!assrt(n, isFloat ? !((Float)value).isInfinite() : ... | final Type function(final GNode n) { final String s = n.getString(0); final boolean isFloat = 'f' == Character.toLowerCase(s.charAt(s.length() - 1)); final Number value = isFloat ? (Number)new Float(s) : new Double(s); if (!assrt(n, isFloat ? !((Float)value).isInfinite() : !((Double)value).isInfinite(), STR) !assrt(n, ... | /**
* Visit a FloatingPointLiteral (gosling_et_al <a
* href="http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#230798">§3.10.2</a>,
* <a
* href="http://java.sun.com/docs/books/jls/second_edition/html/expressions.doc.html#224125">§15.8.1</a>,
* <a
* href="http://ja... | Visit a FloatingPointLiteral (gosling_et_al §3.10.2, §15.8.1, §15.28) | visitFloatingPointLiteral | {
"repo_name": "wandoulabs/xtc-rats",
"path": "xtc-core/src/main/java/xtc/lang/JavaAnalyzer.java",
"license": "lgpl-2.1",
"size": 108783
} | [
"xtc.tree.GNode",
"xtc.type.ErrorT",
"xtc.type.Type"
] | import xtc.tree.GNode; import xtc.type.ErrorT; import xtc.type.Type; | import xtc.tree.*; import xtc.type.*; | [
"xtc.tree",
"xtc.type"
] | xtc.tree; xtc.type; | 786,477 |
public void testInvitationSanityCheck() throws Exception
{
String shortName = GUID.generate();
createSite("myPreset", shortName, "myTitle", "myDescription", SiteVisibility.PUBLIC, 200);
String inviteComments = "Please sir, let me in";
String userName = USER_TWO;
... | void function() throws Exception { String shortName = GUID.generate(); createSite(STR, shortName, STR, STR, SiteVisibility.PUBLIC, 200); String inviteComments = STR; String userName = USER_TWO; String roleName = SiteModel.SITE_CONSUMER; String inviteeFirstName = "Buffy"; String inviteeLastName = STR; String inviteeEmai... | /**
* End to end sanity check of web site invitation.
*
* Nominated and Moderated invitations.
*
* @throws Exception
*/ | End to end sanity check of web site invitation. Nominated and Moderated invitations | testInvitationSanityCheck | {
"repo_name": "loftuxab/community-edition-old",
"path": "projects/remote-api/source/test-java/org/alfresco/repo/web/scripts/site/SiteServiceTest.java",
"license": "lgpl-3.0",
"size": 69469
} | [
"org.alfresco.repo.site.SiteModel",
"org.alfresco.service.cmr.site.SiteVisibility",
"org.alfresco.util.GUID"
] | import org.alfresco.repo.site.SiteModel; import org.alfresco.service.cmr.site.SiteVisibility; import org.alfresco.util.GUID; | import org.alfresco.repo.site.*; import org.alfresco.service.cmr.site.*; import org.alfresco.util.*; | [
"org.alfresco.repo",
"org.alfresco.service",
"org.alfresco.util"
] | org.alfresco.repo; org.alfresco.service; org.alfresco.util; | 487,480 |
Response<AttachedDatabaseConfiguration> getWithResponse(
String workspaceName,
String kustoPoolName,
String attachedDatabaseConfigurationName,
String resourceGroupName,
Context context); | Response<AttachedDatabaseConfiguration> getWithResponse( String workspaceName, String kustoPoolName, String attachedDatabaseConfigurationName, String resourceGroupName, Context context); | /**
* Returns an attached database configuration.
*
* @param workspaceName The name of the workspace.
* @param kustoPoolName The name of the Kusto pool.
* @param attachedDatabaseConfigurationName The name of the attached database configuration.
* @param resourceGroupName The name of the re... | Returns an attached database configuration | getWithResponse | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/synapse/azure-resourcemanager-synapse/src/main/java/com/azure/resourcemanager/synapse/models/KustoPoolAttachedDatabaseConfigurations.java",
"license": "mit",
"size": 8541
} | [
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context"
] | import com.azure.core.http.rest.Response; import com.azure.core.util.Context; | import com.azure.core.http.rest.*; import com.azure.core.util.*; | [
"com.azure.core"
] | com.azure.core; | 1,029,484 |
protected String getAlertUrl(BigInteger id) {
String template = _config.getValue(Property.AUDIT_ALERT_URL_TEMPLATE.getName(), Property.AUDIT_ALERT_URL_TEMPLATE.getDefaultValue());
return template.replaceAll("\\$alertid\\$", String.valueOf(id));
} | String function(BigInteger id) { String template = _config.getValue(Property.AUDIT_ALERT_URL_TEMPLATE.getName(), Property.AUDIT_ALERT_URL_TEMPLATE.getDefaultValue()); return template.replaceAll(STR, String.valueOf(id)); } | /**
* Returns the URL linking back to the alert for which notification is being sent.
*
* @param id The ID of the alert.
*
* @return The fully constructed URL for the alert.
*/ | Returns the URL linking back to the alert for which notification is being sent | getAlertUrl | {
"repo_name": "xizi-xu/Argus",
"path": "ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/AuditNotifier.java",
"license": "bsd-3-clause",
"size": 11959
} | [
"java.math.BigInteger"
] | import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 42,719 |
@Test
public void testDoInParallelWithStealingJob() throws IgniteCheckedException {
// Pool size should be less that input data collection.
ExecutorService executorService = Executors
.newSingleThreadExecutor(new IgniteThreadFactory("testscope", "ignite-utils-test"));
CountD... | void function() throws IgniteCheckedException { ExecutorService executorService = Executors .newSingleThreadExecutor(new IgniteThreadFactory(STR, STR)); CountDownLatch mainThreadLatch = new CountDownLatch(1); CountDownLatch poolThreadLatch = new CountDownLatch(1); | /**
* Test parallel execution steal job.
*/ | Test parallel execution steal job | testDoInParallelWithStealingJob | {
"repo_name": "nizhikov/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/util/IgniteUtilsSelfTest.java",
"license": "apache-2.0",
"size": 49377
} | [
"java.util.concurrent.CountDownLatch",
"java.util.concurrent.ExecutorService",
"java.util.concurrent.Executors",
"org.apache.ignite.IgniteCheckedException",
"org.apache.ignite.thread.IgniteThreadFactory"
] | import java.util.concurrent.CountDownLatch; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.thread.IgniteThreadFactory; | import java.util.concurrent.*; import org.apache.ignite.*; import org.apache.ignite.thread.*; | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 2,837,602 |
public void setListaPuntosInteres(ArrayList<PuntoInteres> list) {
int ICJ=0;
int detenerCJ=list.size();
while (ICJ<detenerCJ) {
ListaPuntosInteres.add(list.get(ICJ)) ;
ICJ++;
}
} | void function(ArrayList<PuntoInteres> list) { int ICJ=0; int detenerCJ=list.size(); while (ICJ<detenerCJ) { ListaPuntosInteres.add(list.get(ICJ)) ; ICJ++; } } | /**
* Set Lista de Puntos de Interes del Tour
* @param list
*/ | Set Lista de Puntos de Interes del Tour | setListaPuntosInteres | {
"repo_name": "AlexisCSP/ProyectoIngenieria",
"path": "ProyectoIngenieria/src/Modelo/TourVirtual.java",
"license": "mit",
"size": 3182
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 41,217 |
private void testClientConfiguredGzipContentEncodingAndConnectionReuse(
TransferKind transferKind) throws Exception {
MockResponse responseOne = new MockResponse();
responseOne.addHeader("Content-Encoding: gzip");
transferKind.setBody(responseOne, gzip("one (gzipped)".getBytes("U... | void function( TransferKind transferKind) throws Exception { MockResponse responseOne = new MockResponse(); responseOne.addHeader(STR); transferKind.setBody(responseOne, gzip(STR.getBytes("UTF-8")), 5); server.enqueue(responseOne); MockResponse responseTwo = new MockResponse(); transferKind.setBody(responseTwo, STR, 5)... | /**
* Test a bug where gzip input streams weren't exhausting the input stream,
* which corrupted the request that followed.
* http://code.google.com/p/android/issues/detail?id=7059
*/ | Test a bug where gzip input streams weren't exhausting the input stream, which corrupted the request that followed. HREF | testClientConfiguredGzipContentEncodingAndConnectionReuse | {
"repo_name": "rex-xxx/mt6572_x201",
"path": "mediatek/frameworks/base/tests/net/tests/src/mediatek/net/libcore/URLConnectionTest.java",
"license": "gpl-2.0",
"size": 105754
} | [
"com.mediatek.mockwebserver.MockResponse",
"java.io.InputStream",
"java.net.URLConnection",
"java.util.zip.GZIPInputStream"
] | import com.mediatek.mockwebserver.MockResponse; import java.io.InputStream; import java.net.URLConnection; import java.util.zip.GZIPInputStream; | import com.mediatek.mockwebserver.*; import java.io.*; import java.net.*; import java.util.zip.*; | [
"com.mediatek.mockwebserver",
"java.io",
"java.net",
"java.util"
] | com.mediatek.mockwebserver; java.io; java.net; java.util; | 2,349,505 |
Optional<String> getText(); | Optional<String> getText(); | /**
* Gets the footer text.
*
* @return The text of the footer.
*/ | Gets the footer text | getText | {
"repo_name": "BtoBastian/Javacord",
"path": "javacord-api/src/main/java/org/javacord/api/entity/message/embed/EmbedFooter.java",
"license": "lgpl-3.0",
"size": 603
} | [
"java.util.Optional"
] | import java.util.Optional; | import java.util.*; | [
"java.util"
] | java.util; | 1,844,559 |
public PathFragment toRelative() {
Preconditions.checkArgument(isAbsolute());
return new PathFragment(normalizedPath.substring(driveStrLength), 0);
} | PathFragment function() { Preconditions.checkArgument(isAbsolute()); return new PathFragment(normalizedPath.substring(driveStrLength), 0); } | /**
* Returns a relative PathFragment created from this absolute PathFragment using the same segments
* and drive letter.
*/ | Returns a relative PathFragment created from this absolute PathFragment using the same segments and drive letter | toRelative | {
"repo_name": "JoelMarcey/buck",
"path": "src/com/facebook/buck/core/model/label/PathFragment.java",
"license": "apache-2.0",
"size": 25608
} | [
"com.google.common.base.Preconditions"
] | import com.google.common.base.Preconditions; | import com.google.common.base.*; | [
"com.google.common"
] | com.google.common; | 1,567,743 |
public java.util.List<fr.lip6.move.pnml.symmetricnet.booleans.hlapi.AndHLAPI> getSubterm_booleans_AndHLAPI();
| java.util.List<fr.lip6.move.pnml.symmetricnet.booleans.hlapi.AndHLAPI> function(); | /**
* This accessor return a list of encapsulated subelement, only of AndHLAPI kind.
* WARNING : this method can creates a lot of new object in memory.
*/ | This accessor return a list of encapsulated subelement, only of AndHLAPI kind. WARNING : this method can creates a lot of new object in memory | getSubterm_booleans_AndHLAPI | {
"repo_name": "lhillah/pnmlframework",
"path": "pnmlFw-SNNet/src/fr/lip6/move/pnml/symmetricnet/terms/hlapi/OperatorHLAPI.java",
"license": "epl-1.0",
"size": 21731
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 208,326 |
public Map<String,Object> getAllAttributes(); | Map<String,Object> function(); | /**
* Get all the attributes in this Session. The returned data structure is a copy of all the attributes in this Session and does not
* represent the backing data structure of the Session itself.
* @return a new Map object representing the key/value pair of all attributes in this session
*/ | Get all the attributes in this Session. The returned data structure is a copy of all the attributes in this Session and does not represent the backing data structure of the Session itself | getAllAttributes | {
"repo_name": "eemirtekin/Sakai-10.6-TR",
"path": "kernel/api/src/main/java/org/sakaiproject/tool/api/NonPortableSession.java",
"license": "apache-2.0",
"size": 3792
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 157,752 |
protected void stopPlugIns() throws ProcessingException {
IPlugIn tmpPlugIn;
ListIterator<IPlugIn> pluginIterator;
ListIterator<ThreadGroup> threadGroupIterator;
ThreadGroup tmpGrpPlugIn;
pluginIterator = plugInList.listIterator();
threadGroupIterator = thGrpsPlugIn.listIterator();
while... | void function() throws ProcessingException { IPlugIn tmpPlugIn; ListIterator<IPlugIn> pluginIterator; ListIterator<ThreadGroup> threadGroupIterator; ThreadGroup tmpGrpPlugIn; pluginIterator = plugInList.listIterator(); threadGroupIterator = thGrpsPlugIn.listIterator(); while (pluginIterator.hasNext() && threadGroupIter... | /**
* Close down the plug in threads that have been launched in the pipeline
*
* @throws ProcessingException
*/ | Close down the plug in threads that have been launched in the pipeline | stopPlugIns | {
"repo_name": "isparkes/OpenRate",
"path": "src/main/java/OpenRate/Pipeline.java",
"license": "apache-2.0",
"size": 58344
} | [
"java.util.ListIterator"
] | import java.util.ListIterator; | import java.util.*; | [
"java.util"
] | java.util; | 664,115 |
public LoginIdentity build() throws ValidationException{
LoginIdentity loginIdentity = new LoginIdentity();
if(StringUtils.isEmpty(username)){
throw new ValidationException("Username can't be null");
}
if(StringUtils.isEmpty(password)){
... | LoginIdentity function() throws ValidationException{ LoginIdentity loginIdentity = new LoginIdentity(); if(StringUtils.isEmpty(username)){ throw new ValidationException(STR); } if(StringUtils.isEmpty(password)){ throw new ValidationException(STR); } loginIdentity.username = username; loginIdentity.password = password; ... | /**
* Creates a {@link LoginIdentity} instance based on the current configuration. This method is free of
* side-effects to this {@code Builder} instance and hence can be called multiple times.
*
* @return an instance of {@link LoginIdentity} configured with the options currently set... | Creates a <code>LoginIdentity</code> instance based on the current configuration. This method is free of side-effects to this Builder instance and hence can be called multiple times | build | {
"repo_name": "fitpay/fitpay-android-sdk",
"path": "fitpay/src/main/java/com/fitpay/android/api/models/user/LoginIdentity.java",
"license": "mit",
"size": 2493
} | [
"com.fitpay.android.utils.StringUtils",
"com.fitpay.android.utils.ValidationException"
] | import com.fitpay.android.utils.StringUtils; import com.fitpay.android.utils.ValidationException; | import com.fitpay.android.utils.*; | [
"com.fitpay.android"
] | com.fitpay.android; | 2,508,281 |
public static String makeListBucketingDirName(List<String> lbCols, List<String> vals) {
StringBuilder name = new StringBuilder();
for (int i = 0; i < lbCols.size(); i++) {
if (i > 0) {
name.append(Path.SEPARATOR);
}
name.append(escapePathName((lbCols.get(i)).toLowerCase()));
na... | static String function(List<String> lbCols, List<String> vals) { StringBuilder name = new StringBuilder(); for (int i = 0; i < lbCols.size(); i++) { if (i > 0) { name.append(Path.SEPARATOR); } name.append(escapePathName((lbCols.get(i)).toLowerCase())); name.append('='); name.append(escapePathName(vals.get(i))); } retur... | /**
* Makes a valid list bucketing directory name.
* @param lbCols The skewed keys' names
* @param vals The skewed values
* @return An escaped, valid list bucketing directory name.
*/ | Makes a valid list bucketing directory name | makeListBucketingDirName | {
"repo_name": "BUPTAnderson/apache-hive-2.1.1-src",
"path": "common/src/java/org/apache/hadoop/hive/common/FileUtils.java",
"license": "apache-2.0",
"size": 30977
} | [
"java.util.BitSet",
"java.util.List",
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.util.Shell"
] | import java.util.BitSet; import java.util.List; import org.apache.hadoop.fs.Path; import org.apache.hadoop.util.Shell; | import java.util.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.util.*; | [
"java.util",
"org.apache.hadoop"
] | java.util; org.apache.hadoop; | 1,527,170 |
protected void deleteResource() {
final String sitePath = m_sitePath;
CmsRpcAction<Void> action = new CmsRpcAction<Void>() { | void function() { final String sitePath = m_sitePath; CmsRpcAction<Void> action = new CmsRpcAction<Void>() { | /**
* Deletes a resource from the vfs.<p>
*/ | Deletes a resource from the vfs | deleteResource | {
"repo_name": "serrapos/opencms-core",
"path": "src-gwt/org/opencms/gwt/client/ui/CmsDeleteWarningDialog.java",
"license": "lgpl-2.1",
"size": 5738
} | [
"org.opencms.gwt.client.rpc.CmsRpcAction"
] | import org.opencms.gwt.client.rpc.CmsRpcAction; | import org.opencms.gwt.client.rpc.*; | [
"org.opencms.gwt"
] | org.opencms.gwt; | 2,555,300 |
private void dispatch(Object event, EventHandler handler) {
try {
handler.handleEvent(event);
} catch (InvocationTargetException e) {
LOGGER.error("Could not dispatch event: " + event + " to handler " + handler, e);
}
} | void function(Object event, EventHandler handler) { try { handler.handleEvent(event); } catch (InvocationTargetException e) { LOGGER.error(STR + event + STR + handler, e); } } | /**
* Dispatches {@code event} to the handler in {@code handler}.
*
* @param event event to dispatch.
* @param handler handler that will call the handler.
*/ | Dispatches event to the handler in handler | dispatch | {
"repo_name": "HolodeckOne-Minecraft/WorldEdit",
"path": "worldedit-core/src/main/java/com/sk89q/worldedit/util/eventbus/EventBus.java",
"license": "gpl-3.0",
"size": 6604
} | [
"java.lang.reflect.InvocationTargetException"
] | import java.lang.reflect.InvocationTargetException; | import java.lang.reflect.*; | [
"java.lang"
] | java.lang; | 2,201,896 |
byte[] getClassDigest(String name, UUID jobId) throws DelegationException,
SecurityException, RemoteException; | byte[] getClassDigest(String name, UUID jobId) throws DelegationException, SecurityException, RemoteException; | /**
* Gets the MD5 digest for the definition of the given class associated
* with the specified job.
* @param name The fully qualified name of the class whose digest to
* obtain.
* @param jobId The <code>UUID</code> identifying the job for which to
* get the class digest.
* @return The MD5 ... | Gets the MD5 digest for the definition of the given class associated with the specified job | getClassDigest | {
"repo_name": "bwkimmel/jdcp",
"path": "jdcp-core/src/main/java/ca/eandb/jdcp/remote/TaskService.java",
"license": "mit",
"size": 5854
} | [
"java.rmi.RemoteException"
] | import java.rmi.RemoteException; | import java.rmi.*; | [
"java.rmi"
] | java.rmi; | 1,129,744 |
@Override
protected boolean standardContains(@Nullable Object object) {
return count(object) > 0;
}
/**
* A sensible definition of {@link #clear} in terms of the {@code iterator} | boolean function(@Nullable Object object) { return count(object) > 0; } /** * A sensible definition of {@link #clear} in terms of the {@code iterator} | /**
* A sensible definition of {@link #contains} in terms of {@link #count}. If
* you override {@link #count}, you may wish to override {@link #contains} to
* forward to this implementation.
*
* @since 7.0
*/ | A sensible definition of <code>#contains</code> in terms of <code>#count</code>. If you override <code>#count</code>, you may wish to override <code>#contains</code> to forward to this implementation | standardContains | {
"repo_name": "paulmartel/voltdb",
"path": "third_party/java/src/com/google_voltpatches/common/collect/ForwardingMultiset.java",
"license": "agpl-3.0",
"size": 9962
} | [
"javax.annotation_voltpatches.Nullable"
] | import javax.annotation_voltpatches.Nullable; | import javax.annotation_voltpatches.*; | [
"javax.annotation_voltpatches"
] | javax.annotation_voltpatches; | 2,296,672 |
@Override
public void run() {
while (!shutdown) {
try {
Metric m = (Metric) queue.take();
processInsert(m);
} catch (Exception e) {
LOG.error("Failed to insert metric", e);
if (this.failureMeter != null) {
... | void function() { while (!shutdown) { try { Metric m = (Metric) queue.take(); processInsert(m); } catch (Exception e) { LOG.error(STR, e); if (this.failureMeter != null) { this.failureMeter.mark(); } } } } | /**
* Run routine to wait for metrics on a queue and insert into RocksDB.
*/ | Run routine to wait for metrics on a queue and insert into RocksDB | run | {
"repo_name": "srishtyagrawal/storm",
"path": "storm-server/src/main/java/org/apache/storm/metricstore/rocksdb/RocksDbMetricsWriter.java",
"license": "apache-2.0",
"size": 13859
} | [
"org.apache.storm.metricstore.Metric"
] | import org.apache.storm.metricstore.Metric; | import org.apache.storm.metricstore.*; | [
"org.apache.storm"
] | org.apache.storm; | 545,000 |
private void fromInput(List<FileModel> vertices, GraphRewrite event)
{
if (vertices.isEmpty() && StringUtils.isNotBlank(getInputVariablesName()))
{
for (WindupVertexFrame windupVertexFrame : Variables.instance(event).findVariable(getInputVariablesName()))
{
... | void function(List<FileModel> vertices, GraphRewrite event) { if (vertices.isEmpty() && StringUtils.isNotBlank(getInputVariablesName())) { for (WindupVertexFrame windupVertexFrame : Variables.instance(event).findVariable(getInputVariablesName())) { if (windupVertexFrame instanceof FileModel) vertices.add((FileModel) wi... | /**
* Generating the input vertices is quite complex. Therefore there are multiple methods that handles the input vertices based on the attribute
* specified in specific order. This method handles the {@link File#from(String)} attribute.
*/ | Generating the input vertices is quite complex. Therefore there are multiple methods that handles the input vertices based on the attribute specified in specific order. This method handles the <code>File#from(String)</code> attribute | fromInput | {
"repo_name": "mareknovotny/windup",
"path": "rules-base/api/src/main/java/org/jboss/windup/rules/files/condition/File.java",
"license": "epl-1.0",
"size": 9915
} | [
"java.util.List",
"org.apache.commons.lang3.StringUtils",
"org.jboss.windup.config.GraphRewrite",
"org.jboss.windup.config.Variables",
"org.jboss.windup.graph.model.WindupVertexFrame",
"org.jboss.windup.graph.model.resource.FileModel",
"org.jboss.windup.rules.files.model.FileReferenceModel"
] | import java.util.List; import org.apache.commons.lang3.StringUtils; import org.jboss.windup.config.GraphRewrite; import org.jboss.windup.config.Variables; import org.jboss.windup.graph.model.WindupVertexFrame; import org.jboss.windup.graph.model.resource.FileModel; import org.jboss.windup.rules.files.model.FileReferenc... | import java.util.*; import org.apache.commons.lang3.*; import org.jboss.windup.config.*; import org.jboss.windup.graph.model.*; import org.jboss.windup.graph.model.resource.*; import org.jboss.windup.rules.files.model.*; | [
"java.util",
"org.apache.commons",
"org.jboss.windup"
] | java.util; org.apache.commons; org.jboss.windup; | 1,598,244 |
public static void removeAllResultsFormat(Model model,
org.ontoware.rdf2go.model.node.Resource instanceResource) {
Base.removeAll(model, instanceResource, RESULTSFORMAT);
} | static void function(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource) { Base.removeAll(model, instanceResource, RESULTSFORMAT); } | /**
* Removes all values of property ResultsFormat * @param model an RDF2Go
* model
*
* @param resource
* an RDF2Go resource
*
* [Generated from RDFReactor template rule #removeall1static]
*/ | Removes all values of property ResultsFormat model | removeAllResultsFormat | {
"repo_name": "m0ep/master-thesis",
"path": "source/apis/rdf2go/rdf2go-sioc-services/src/main/java/org/rdfs/sioc/services/Service.java",
"license": "mit",
"size": 80965
} | [
"org.ontoware.rdf2go.model.Model",
"org.ontoware.rdfreactor.runtime.Base"
] | import org.ontoware.rdf2go.model.Model; import org.ontoware.rdfreactor.runtime.Base; | import org.ontoware.rdf2go.model.*; import org.ontoware.rdfreactor.runtime.*; | [
"org.ontoware.rdf2go",
"org.ontoware.rdfreactor"
] | org.ontoware.rdf2go; org.ontoware.rdfreactor; | 2,349,234 |
public CompositeCounter wrapCounter(MonitoredCounter templateCounter) {
List<Counter> subCounters = Lists
.<Counter> newArrayList(templateCounter);
subCounters.addAll(getSubCounters(templateCounter.getName(),
templateCounter.getDescription(), templateCounter.getUnit()));
return new CompositeCounter(sub... | CompositeCounter function(MonitoredCounter templateCounter) { List<Counter> subCounters = Lists .<Counter> newArrayList(templateCounter); subCounters.addAll(getSubCounters(templateCounter.getName(), templateCounter.getDescription(), templateCounter.getUnit())); return new CompositeCounter(subCounters); } | /**
* Creates a new CompositeCounter wrapping TimeWindowCounters (and creating
* PollingMonitoredValues), using the supplied MonitoredCounter's name,
* description, and unit as the template. <em>Also</em> wraps the supplied
* MonitoredCounter itself (hence providing a single incrementable Counter
* which will... | Creates a new CompositeCounter wrapping TimeWindowCounters (and creating PollingMonitoredValues), using the supplied MonitoredCounter's name, description, and unit as the template. Also wraps the supplied MonitoredCounter itself (hence providing a single incrementable Counter which will increment both an overall total ... | wrapCounter | {
"repo_name": "performancecopilot/parfait",
"path": "parfait-core/src/main/java/io/pcp/parfait/TimeWindowCounterBuilder.java",
"license": "apache-2.0",
"size": 4961
} | [
"com.google.common.collect.Lists",
"java.util.List"
] | import com.google.common.collect.Lists; import java.util.List; | import com.google.common.collect.*; import java.util.*; | [
"com.google.common",
"java.util"
] | com.google.common; java.util; | 2,033,302 |
public AbstractProduct newAbstractProduct(){
System.out.println("Called: basic implementation of template method that "
+ "may be overridden");
return new ConcreteProduct();
} | AbstractProduct function(){ System.out.println(STR + STR); return new ConcreteProduct(); } | /**
* This method is the one to be modified (if needed) by subclasses. Modify
* it if you want to return concrete implementations of AbstractProduct
* other than ConcreteProduct!
* @return AbstractProduct
*/ | This method is the one to be modified (if needed) by subclasses. Modify it if you want to return concrete implementations of AbstractProduct other than ConcreteProduct | newAbstractProduct | {
"repo_name": "csparpa/gof-design-patterns",
"path": "java/src/tk/csparpa/gofdp/factorymethod/variants/CreatorBaseImplementation.java",
"license": "unlicense",
"size": 1116
} | [
"tk.csparpa.gofdp.factorymethod.AbstractProduct",
"tk.csparpa.gofdp.factorymethod.ConcreteProduct"
] | import tk.csparpa.gofdp.factorymethod.AbstractProduct; import tk.csparpa.gofdp.factorymethod.ConcreteProduct; | import tk.csparpa.gofdp.factorymethod.*; | [
"tk.csparpa.gofdp"
] | tk.csparpa.gofdp; | 1,625,126 |
public static boolean isLaunchable(Task<? extends Serializable> tsk) {
// A launchable task is one that hasn't been queued, hasn't been
// initialized, and is runnable.
return !tsk.getQueued() && !tsk.getInitialized() && tsk.isRunnable();
} | static boolean function(Task<? extends Serializable> tsk) { return !tsk.getQueued() && !tsk.getInitialized() && tsk.isRunnable(); } | /**
* Checks if a task can be launched.
*
* @param tsk
* the task to be checked
* @return true if the task is launchable, false otherwise
*/ | Checks if a task can be launched | isLaunchable | {
"repo_name": "winningsix/hive",
"path": "ql/src/java/org/apache/hadoop/hive/ql/DriverContext.java",
"license": "apache-2.0",
"size": 6844
} | [
"java.io.Serializable",
"org.apache.hadoop.hive.ql.exec.Task"
] | import java.io.Serializable; import org.apache.hadoop.hive.ql.exec.Task; | import java.io.*; import org.apache.hadoop.hive.ql.exec.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 2,408,394 |
public static boolean isSwitched() {
Collection<? extends GrantedAuthority> inferred = findInferredAuthorities(getPrincipalAuthorities());
for (GrantedAuthority authority : inferred) {
if (authority instanceof SwitchUserGrantedAuthority) {
return true;
}
if (SwitchUserFilter.ROLE_PREVIOUS_ADMINISTRA... | static boolean function() { Collection<? extends GrantedAuthority> inferred = findInferredAuthorities(getPrincipalAuthorities()); for (GrantedAuthority authority : inferred) { if (authority instanceof SwitchUserGrantedAuthority) { return true; } if (SwitchUserFilter.ROLE_PREVIOUS_ADMINISTRATOR.equals(authority.getAutho... | /**
* Check if the current user is switched to another user.
* @return <code>true</code> if logged in and switched
*/ | Check if the current user is switched to another user | isSwitched | {
"repo_name": "puaykai/noodles",
"path": "target/work/plugins/spring-security-core-2.0.0/src/java/grails/plugin/springsecurity/SpringSecurityUtils.java",
"license": "mit",
"size": 27888
} | [
"java.util.Collection",
"org.springframework.security.core.GrantedAuthority",
"org.springframework.security.web.authentication.switchuser.SwitchUserFilter",
"org.springframework.security.web.authentication.switchuser.SwitchUserGrantedAuthority"
] | import java.util.Collection; import org.springframework.security.core.GrantedAuthority; import org.springframework.security.web.authentication.switchuser.SwitchUserFilter; import org.springframework.security.web.authentication.switchuser.SwitchUserGrantedAuthority; | import java.util.*; import org.springframework.security.core.*; import org.springframework.security.web.authentication.switchuser.*; | [
"java.util",
"org.springframework.security"
] | java.util; org.springframework.security; | 748,587 |
public static SavedGame parseSSG(File ssgFile, GameContainer gc)
throws ParserConfigurationException, SAXException, IOException, FontFormatException,
SlickException {
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = dbf.newDocumentBuilder();
Docu... | static SavedGame function(File ssgFile, GameContainer gc) throws ParserConfigurationException, SAXException, IOException, FontFormatException, SlickException { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = dbf.newDocumentBuilder(); Document doc = builder.parse(ssgFile); El... | /**
* Unparses .ssg file to SavedGame object
*
* @param ssgFile Senlin saved game file
* @param gc Slick game container
* @return SavedGame object ready to load
* @throws ParserConfigurationException
* @throws SAXException
* @throws IOException
* @throws FontFormatException
* @throws Slick... | Unparses .ssg file to SavedGame object | parseSSG | {
"repo_name": "Isangeles/Senlin",
"path": "src/main/java/pl/isangeles/senlin/util/parser/SSGParser.java",
"license": "gpl-2.0",
"size": 22593
} | [
"java.awt.FontFormatException",
"java.io.File",
"java.io.IOException",
"java.util.ArrayList",
"java.util.List",
"javax.xml.parsers.DocumentBuilder",
"javax.xml.parsers.DocumentBuilderFactory",
"javax.xml.parsers.ParserConfigurationException",
"org.newdawn.slick.GameContainer",
"org.newdawn.slick.S... | import java.awt.FontFormatException; import java.io.File; import java.io.IOException; import java.util.ArrayList; import java.util.List; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.newdawn.slick.GameContaine... | import java.awt.*; import java.io.*; import java.util.*; import javax.xml.parsers.*; import org.newdawn.slick.*; import org.w3c.dom.*; import org.xml.sax.*; import pl.isangeles.senlin.cli.*; import pl.isangeles.senlin.core.character.*; import pl.isangeles.senlin.data.save.*; import pl.isangeles.senlin.gui.*; import pl.... | [
"java.awt",
"java.io",
"java.util",
"javax.xml",
"org.newdawn.slick",
"org.w3c.dom",
"org.xml.sax",
"pl.isangeles.senlin"
] | java.awt; java.io; java.util; javax.xml; org.newdawn.slick; org.w3c.dom; org.xml.sax; pl.isangeles.senlin; | 1,606,264 |
@Auditable(parameters = {"contextNodeRef", "namePattern", "fileSearch", "folderSearch", "includeSubFolders"})
public List<FileInfo> search(
NodeRef contextNodeRef,
String namePattern,
boolean fileSearch,
boolean folderSearch,
boolean includeSubFo... | @Auditable(parameters = {STR, STR, STR, STR, STR}) List<FileInfo> function( NodeRef contextNodeRef, String namePattern, boolean fileSearch, boolean folderSearch, boolean includeSubFolders); | /**
* Perform a search against the name of the files or folders within a hierarchy.
* Wildcard characters are <b>*</b> and <b>?</b>.
*
* Warning: Please avoid using this method with any "namePattern" other than "*".
* Although it works, its performance is poor which is why this method ... | Perform a search against the name of the files or folders within a hierarchy. Wildcard characters are * and ?. Warning: Please avoid using this method with any "namePattern" other than "*". Although it works, its performance is poor which is why this method is deprecated | search | {
"repo_name": "daniel-he/community-edition",
"path": "projects/repository/source/java/org/alfresco/service/cmr/model/FileFolderService.java",
"license": "lgpl-3.0",
"size": 21841
} | [
"java.util.List",
"org.alfresco.service.Auditable",
"org.alfresco.service.cmr.repository.NodeRef"
] | import java.util.List; import org.alfresco.service.Auditable; import org.alfresco.service.cmr.repository.NodeRef; | import java.util.*; import org.alfresco.service.*; import org.alfresco.service.cmr.repository.*; | [
"java.util",
"org.alfresco.service"
] | java.util; org.alfresco.service; | 838,647 |
public UnaryCallable<ReadModifyWriteRow, Row> readModifyWriteRowCallable() {
return readModifyWriteRowCallable;
}
// </editor-fold> | UnaryCallable<ReadModifyWriteRow, Row> function() { return readModifyWriteRowCallable; } | /**
* Returns the callable chain created in {@link #createReadModifyWriteRowCallable()} ()} during
* stub construction.
*/ | Returns the callable chain created in <code>#createReadModifyWriteRowCallable()</code> ()} during stub construction | readModifyWriteRowCallable | {
"repo_name": "googleapis/java-bigtable",
"path": "google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java",
"license": "apache-2.0",
"size": 39680
} | [
"com.google.api.gax.rpc.UnaryCallable",
"com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow",
"com.google.cloud.bigtable.data.v2.models.Row"
] | import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.bigtable.data.v2.models.ReadModifyWriteRow; import com.google.cloud.bigtable.data.v2.models.Row; | import com.google.api.gax.rpc.*; import com.google.cloud.bigtable.data.v2.models.*; | [
"com.google.api",
"com.google.cloud"
] | com.google.api; com.google.cloud; | 595,192 |
public static Future<?> clearDownloadLog() {
return dbExec.submit(() -> {
PodDBAdapter adapter = PodDBAdapter.getInstance();
adapter.open();
adapter.clearDownloadLog();
adapter.close();
EventDistributor.getInstance().sendDownloadLogUpdateBroadcast(... | static Future<?> function() { return dbExec.submit(() -> { PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); adapter.clearDownloadLog(); adapter.close(); EventDistributor.getInstance().sendDownloadLogUpdateBroadcast(); }); } | /**
* Deletes the entire download log.
*/ | Deletes the entire download log | clearDownloadLog | {
"repo_name": "TomHennen/AntennaPod",
"path": "core/src/main/java/de/danoeh/antennapod/core/storage/DBWriter.java",
"license": "mit",
"size": 42715
} | [
"de.danoeh.antennapod.core.feed.EventDistributor",
"java.util.concurrent.Future"
] | import de.danoeh.antennapod.core.feed.EventDistributor; import java.util.concurrent.Future; | import de.danoeh.antennapod.core.feed.*; import java.util.concurrent.*; | [
"de.danoeh.antennapod",
"java.util"
] | de.danoeh.antennapod; java.util; | 1,775,924 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.