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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
CompletableFuture<Void> registerTaskProcessor(Consumer<E> taskProcessor,
int parallelism,
Executor executor); | CompletableFuture<Void> registerTaskProcessor(Consumer<E> taskProcessor, int parallelism, Executor executor); | /**
* Registers a task processing callback to be automatically invoked when new tasks are
* added to the work queue.
* @param taskProcessor task processing callback
* @param parallelism max tasks that can be processed in parallel
* @param executor executor to use for processing the tasks
*... | Registers a task processing callback to be automatically invoked when new tasks are added to the work queue | registerTaskProcessor | {
"repo_name": "gkatsikas/onos",
"path": "core/api/src/main/java/org/onosproject/store/service/WorkQueue.java",
"license": "apache-2.0",
"size": 5566
} | [
"java.util.concurrent.CompletableFuture",
"java.util.concurrent.Executor",
"java.util.function.Consumer"
] | import java.util.concurrent.CompletableFuture; import java.util.concurrent.Executor; import java.util.function.Consumer; | import java.util.concurrent.*; import java.util.function.*; | [
"java.util"
] | java.util; | 1,120,663 |
public Font getTickLabelFont() {
return this.tickLabelFont;
}
| Font function() { return this.tickLabelFont; } | /**
* Returns the font used to draw the tick labels.
*
* @return The font (never <code>null</code>).
*
* @see #setTickLabelFont(Font)
*/ | Returns the font used to draw the tick labels | getTickLabelFont | {
"repo_name": "SOCR/HTML5_WebSite",
"path": "SOCR2.8/src/jfreechart/org/jfree/chart/plot/dial/StandardDialScale.java",
"license": "lgpl-3.0",
"size": 32158
} | [
"java.awt.Font"
] | import java.awt.Font; | import java.awt.*; | [
"java.awt"
] | java.awt; | 849,889 |
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BillingEntityInformationResponse billingEntityInformationResponse = (BillingEntityInformationResponse) o;
return Objects.equals(thi... | boolean function(java.lang.Object o) { if (this == o) { return true; } if (o == null getClass() != o.getClass()) { return false; } BillingEntityInformationResponse billingEntityInformationResponse = (BillingEntityInformationResponse) o; return Objects.equals(this.billingProfile, billingEntityInformationResponse.billing... | /**
* Compares objects.
*
* @return true or false depending on comparison result.
*/ | Compares objects | equals | {
"repo_name": "docusign/docusign-java-client",
"path": "src/main/java/com/docusign/esign/model/BillingEntityInformationResponse.java",
"license": "mit",
"size": 4722
} | [
"java.util.Objects"
] | import java.util.Objects; | import java.util.*; | [
"java.util"
] | java.util; | 546,434 |
public NestedSet<Cause> getRootCauses() {
return rootCauses;
} | NestedSet<Cause> function() { return rootCauses; } | /**
* Return the root causes that should be reported. Usually the owner of the action, but it can be
* the label of a missing artifact.
*/ | Return the root causes that should be reported. Usually the owner of the action, but it can be the label of a missing artifact | getRootCauses | {
"repo_name": "dropbox/bazel",
"path": "src/main/java/com/google/devtools/build/lib/actions/ActionExecutionException.java",
"license": "apache-2.0",
"size": 5423
} | [
"com.google.devtools.build.lib.causes.Cause",
"com.google.devtools.build.lib.collect.nestedset.NestedSet"
] | import com.google.devtools.build.lib.causes.Cause; import com.google.devtools.build.lib.collect.nestedset.NestedSet; | import com.google.devtools.build.lib.causes.*; import com.google.devtools.build.lib.collect.nestedset.*; | [
"com.google.devtools"
] | com.google.devtools; | 2,573,937 |
public void writeBytes(byte []buffer, int offset, int length)
throws IOException
{
if (buffer == null) {
if (SIZE < _offset + 16)
flushBuffer();
_buffer[_offset++] = (byte) 'N';
}
else {
flush();
while (SIZE - _offset - 3 < length) {
int sublen = SIZE - _offs... | void function(byte []buffer, int offset, int length) throws IOException { if (buffer == null) { if (SIZE < _offset + 16) flushBuffer(); _buffer[_offset++] = (byte) 'N'; } else { flush(); while (SIZE - _offset - 3 < length) { int sublen = SIZE - _offset - 3; if (sublen < 16) { flushBuffer(); sublen = SIZE - _offset - 3;... | /**
* Writes a byte array to the stream.
* The array will be written with the following syntax:
*
* <code><pre>
* B b16 b18 bytes
* </pre></code>
*
* If the value is null, it will be written as
*
* <code><pre>
* N
* </pre></code>
*
* @param value the string value to write.
*... | Writes a byte array to the stream. The array will be written with the following syntax: <code><code> B b16 b18 bytes </code></code> If the value is null, it will be written as <code><code> N </code></code> | writeBytes | {
"repo_name": "zhushuchen/Ocean",
"path": "项目源码/dubbo/hessian-lite/src/main/java/com/alibaba/com/caucho/hessian/io/Hessian2Output.java",
"license": "agpl-3.0",
"size": 34700
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 695,547 |
getViewService().createNode(element, view, UMLGraphicalTypes.LABEL_UML_NAMEDELEMENT_NAME_ID, ViewUtil.APPEND, persisted, getPreferencesHint());
// this action needs to be done after the compartments creation
super.decorateView(containerView, view, element, semanticHint, index, persisted);
}
// Start of user cod... | getViewService().createNode(element, view, UMLGraphicalTypes.LABEL_UML_NAMEDELEMENT_NAME_ID, ViewUtil.APPEND, persisted, getPreferencesHint()); super.decorateView(containerView, view, element, semanticHint, index, persisted); } | /**
* Creates PrimitiveType view and add Label and Compartment nodes
*/ | Creates PrimitiveType view and add Label and Compartment nodes | decorateView | {
"repo_name": "bmaggi/Papyrus-SysML11",
"path": "plugins/diagram/org.eclipse.papyrus.sysml.diagram.common/src-gen/org/eclipse/papyrus/uml/diagram/common/factory/PrimitiveTypeClassifierViewFactory.java",
"license": "epl-1.0",
"size": 1516
} | [
"org.eclipse.gmf.runtime.diagram.core.util.ViewUtil",
"org.eclipse.papyrus.uml.diagram.common.utils.UMLGraphicalTypes"
] | import org.eclipse.gmf.runtime.diagram.core.util.ViewUtil; import org.eclipse.papyrus.uml.diagram.common.utils.UMLGraphicalTypes; | import org.eclipse.gmf.runtime.diagram.core.util.*; import org.eclipse.papyrus.uml.diagram.common.utils.*; | [
"org.eclipse.gmf",
"org.eclipse.papyrus"
] | org.eclipse.gmf; org.eclipse.papyrus; | 1,062,143 |
public static void setupDiskCache(File cacheDir) {
File f = new File(cacheDir, CACHE_PATH);
mCachePath = f.getAbsolutePath();
f.mkdirs();
}
public enum ContextType {
NORMAL (0),
DEBUG (1),
PROFILE (2);
int mID;
... | static void function(File cacheDir) { File f = new File(cacheDir, CACHE_PATH); mCachePath = f.getAbsolutePath(); f.mkdirs(); } public enum ContextType { NORMAL (0), DEBUG (1), PROFILE (2); int mID; ContextType(int id) { mID = id; } } | /**
* Sets the directory to use as a persistent storage for the
* renderscript object file cache.
*
* @hide
* @param cacheDir A directory the current process can write to
*/ | Sets the directory to use as a persistent storage for the renderscript object file cache | setupDiskCache | {
"repo_name": "s20121035/rk3288_android5.1_repo",
"path": "frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/RenderScript.java",
"license": "gpl-3.0",
"size": 43056
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 2,854,238 |
private String[] getGetArgs(String alias, String providerPath) {
List<String> args = new ArrayList<String>();
args.add(GET_VERB);
args.add(alias);
args.add("-provider");
args.add(providerPath);
return args.toArray(new String[args.size()]);
} | String[] function(String alias, String providerPath) { List<String> args = new ArrayList<String>(); args.add(GET_VERB); args.add(alias); args.add(STR); args.add(providerPath); return args.toArray(new String[args.size()]); } | /**
* Get arguments.
*
* @param alias
* @param providerPath
* @return
*/ | Get arguments | getGetArgs | {
"repo_name": "alexryndin/ambari",
"path": "ambari-server/src/test/java/org/apache/ambari/server/credentialapi/CredentialUtilTest.java",
"license": "apache-2.0",
"size": 16676
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,272,627 |
public static void setOut(java.io.PrintStream newOut) {
SecurityManager secMgr = System.getSecurityManager();
if(secMgr != null) {
secMgr.checkPermission(RuntimePermission.permissionToSetIO);
}
setFieldImpl("out", "Ljava/io/PrintStream;", newOut);
} | static void function(java.io.PrintStream newOut) { SecurityManager secMgr = System.getSecurityManager(); if(secMgr != null) { secMgr.checkPermission(RuntimePermission.permissionToSetIO); } setFieldImpl("out", STR, newOut); } | /**
* Sets the standard output stream to the given user defined output stream.
*
* @param newOut
* the user defined output stream to set as the standard output
* stream.
* @throws SecurityException
* if a {@link SecurityManager} is installed and its {... | Sets the standard output stream to the given user defined output stream | setOut | {
"repo_name": "openweave/openweave-core",
"path": "third_party/android/platform-libcore/android-platform-libcore/luni/src/main/java/java/lang/System.java",
"license": "apache-2.0",
"size": 26293
} | [
"java.io.PrintStream"
] | import java.io.PrintStream; | import java.io.*; | [
"java.io"
] | java.io; | 438,762 |
public Page<PortfolioParentRp> findAllByPage(int start, int countPerPage, String keyword, String portfolioId, String classId, Integer sendStatus, Integer readStatus) throws Exception {
List<Criterion> restrictions = new ArrayList<Criterion>();
restrictions.add(Restrictions.eq("portfolioId", portfoli... | Page<PortfolioParentRp> function(int start, int countPerPage, String keyword, String portfolioId, String classId, Integer sendStatus, Integer readStatus) throws Exception { List<Criterion> restrictions = new ArrayList<Criterion>(); restrictions.add(Restrictions.eq(STR, portfolioId)); if (null != sendStatus) { restricti... | /**
* Service to find a collection of entities by pages
*
* @param start start
* @param countPerPage countPerPage
* @param keyword keyword
* @param portfolioId portfolioId
* @param classId classId
* @return Collection
* @throws Exception
*/ | Service to find a collection of entities by pages | findAllByPage | {
"repo_name": "iclockwork/percy",
"path": "app-jxt-commons/src/main/java/com/iclockwork/percy/app/jxt/commons/model/repository/PortfolioParentRpRepository.java",
"license": "apache-2.0",
"size": 4126
} | [
"com.iclockwork.percy.app.jxt.commons.model.entity.PortfolioParentRp",
"com.iclockwork.percy.framework.data.Page",
"java.util.ArrayList",
"java.util.List",
"org.hibernate.criterion.Criterion",
"org.hibernate.criterion.Order",
"org.hibernate.criterion.Restrictions"
] | import com.iclockwork.percy.app.jxt.commons.model.entity.PortfolioParentRp; import com.iclockwork.percy.framework.data.Page; import java.util.ArrayList; import java.util.List; import org.hibernate.criterion.Criterion; import org.hibernate.criterion.Order; import org.hibernate.criterion.Restrictions; | import com.iclockwork.percy.app.jxt.commons.model.entity.*; import com.iclockwork.percy.framework.data.*; import java.util.*; import org.hibernate.criterion.*; | [
"com.iclockwork.percy",
"java.util",
"org.hibernate.criterion"
] | com.iclockwork.percy; java.util; org.hibernate.criterion; | 216,380 |
private Object getDefaultPrimitive(Schema.Field field) {
Schema.Type type = field.schema().getType();
if (type == Schema.Type.INT) {
return 0;
} else if (type == Schema.Type.LONG) {
return 0L;
} else if (type == Schema.Type.BOOLEAN) {
return false;
} else if (type == Schema.Type.... | Object function(Schema.Field field) { Schema.Type type = field.schema().getType(); if (type == Schema.Type.INT) { return 0; } else if (type == Schema.Type.LONG) { return 0L; } else if (type == Schema.Type.BOOLEAN) { return false; } else if (type == Schema.Type.FLOAT) { return 0.0f; } else if (type == Schema.Type.DOUBLE... | /**
* Get's the default value for the primitive types. This matches the default
* Java would assign to the following primitive types:
*
* int, long, boolean, float, and double.
*
* If field is any other type, this method will return null.
*
* @param field
* The Schema field
* @... | Get's the default value for the primitive types. This matches the default Java would assign to the following primitive types: int, long, boolean, float, and double. If field is any other type, this method will return null | getDefaultPrimitive | {
"repo_name": "whoschek/kite",
"path": "kite-data/kite-data-hbase/src/main/java/org/kitesdk/data/hbase/avro/AvroEntityComposer.java",
"license": "apache-2.0",
"size": 9533
} | [
"org.apache.avro.Schema"
] | import org.apache.avro.Schema; | import org.apache.avro.*; | [
"org.apache.avro"
] | org.apache.avro; | 636,768 |
public static Test suite() {
return new TestSuite(MissingValueTest.class);
} | static Test function() { return new TestSuite(MissingValueTest.class); } | /**
* Returns the test suite.
*
* @return the suite
*/ | Returns the test suite | suite | {
"repo_name": "waikato-datamining/adams-base",
"path": "adams-spreadsheet/src/test/java/adams/data/spreadsheet/rowfinder/MissingValueTest.java",
"license": "gpl-3.0",
"size": 2385
} | [
"junit.framework.Test",
"junit.framework.TestSuite"
] | import junit.framework.Test; import junit.framework.TestSuite; | import junit.framework.*; | [
"junit.framework"
] | junit.framework; | 434,720 |
return DatatypeConverter.parseDate(s).getTime();
}
| return DatatypeConverter.parseDate(s).getTime(); } | /**
* Converts a date object to a string in the standard XML Schema xsd:dateTime format:
* yyyy-MM-ddTHH:mm:ss
*
* @param s Date string
* @return
*/ | Converts a date object to a string in the standard XML Schema xsd:dateTime format: | parseDate | {
"repo_name": "jentz/presence-api",
"path": "presence-jaxb2-api/src/main/java/com/tieto/ipac/presence/jaxb2/DateAdapter.java",
"license": "apache-2.0",
"size": 658
} | [
"javax.xml.bind.DatatypeConverter"
] | import javax.xml.bind.DatatypeConverter; | import javax.xml.bind.*; | [
"javax.xml"
] | javax.xml; | 1,040,590 |
// We can only decode strings
if (!(msg instanceof String)) {
return msg;
}
// Construct a new response if there isn't one yet
if (m_response == null) {
m_response = new MultilineOrientedResponse();
}
String response = (String)msg;
m_respon... | if (!(msg instanceof String)) { return msg; } if (m_response == null) { m_response = new MultilineOrientedResponse(); } String response = (String)msg; m_response.addLine(response); if(checkIndicator(response)) { return null; } else { MultilineOrientedResponse retval = m_response; m_response = null; return retval; } } | /**
* This method decodes {@link String} objects into {@link MultilineOrientedResponse} instances
* that contain each line of the string response.
*/ | This method decodes <code>String</code> objects into <code>MultilineOrientedResponse</code> instances that contain each line of the string response | decode | {
"repo_name": "bugcy013/opennms-tmp-tools",
"path": "opennms-provision/opennms-detector-lineoriented/src/main/java/org/opennms/netmgt/provision/detector/simple/support/MultilineOrientedResponseDecoder.java",
"license": "gpl-2.0",
"size": 3816
} | [
"org.opennms.netmgt.provision.detector.simple.response.MultilineOrientedResponse"
] | import org.opennms.netmgt.provision.detector.simple.response.MultilineOrientedResponse; | import org.opennms.netmgt.provision.detector.simple.response.*; | [
"org.opennms.netmgt"
] | org.opennms.netmgt; | 1,680,708 |
@Override
public void setValue(SSDate date) {
monthPicker.setValue(date);
if (date != null) {
updateDateTextBox();
}
} | void function(SSDate date) { monthPicker.setValue(date); if (date != null) { updateDateTextBox(); } } | /**
* Sets the selected date on the popup
*
* @param date - The date to be selected
*
* @author Ruan Naude <nauderuan777@gmail.com>
* @since 27 Dec 2012
*/ | Sets the selected date on the popup | setValue | {
"repo_name": "A24Group/ssGWT-lib",
"path": "src/org/ssgwt/client/ui/datepicker/MonthDateBox.java",
"license": "apache-2.0",
"size": 12525
} | [
"org.ssgwt.client.i18n.SSDate"
] | import org.ssgwt.client.i18n.SSDate; | import org.ssgwt.client.i18n.*; | [
"org.ssgwt.client"
] | org.ssgwt.client; | 2,241,145 |
public void handleMouseInput() throws IOException
{
super.handleMouseInput();
this.entryList.handleMouseInput();
} | void function() throws IOException { super.handleMouseInput(); this.entryList.handleMouseInput(); } | /**
* Handles mouse input.
*/ | Handles mouse input | handleMouseInput | {
"repo_name": "SuperUnitato/UnLonely",
"path": "build/tmp/recompileMc/sources/net/minecraftforge/fml/client/config/GuiConfig.java",
"license": "lgpl-2.1",
"size": 22054
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 161,824 |
@RobotKeyword
@ArgumentNames({ "locator", "message=NONE", "logLevel=INFO" })
public void pageShouldNotContainImage(String locator, String message, String logLevel) {
pageShouldNotContainElement(locator, "image", message, logLevel);
}
// ##############################
// Keywords - Xpath
// #################... | @ArgumentNames({ STR, STR, STR }) void function(String locator, String message, String logLevel) { pageShouldNotContainElement(locator, "image", message, logLevel); } | /**
* Verify the image identified by <b>locator</b> is not found on the current
* page.<br>
* <br>
* Key attributes for images are id, src and alt. See `Introduction` for
* details about log levels and locators.<br>
*
* @param locator
* The locator to locate the link.
* @param message
* ... | Verify the image identified by locator is not found on the current page. Key attributes for images are id, src and alt. See `Introduction` for details about log levels and locators | pageShouldNotContainImage | {
"repo_name": "MarkusBernhardt/robotframework-selenium2library-java",
"path": "src/main/java/com/github/markusbernhardt/selenium2library/keywords/Element.java",
"license": "apache-2.0",
"size": 56233
} | [
"org.robotframework.javalib.annotation.ArgumentNames"
] | import org.robotframework.javalib.annotation.ArgumentNames; | import org.robotframework.javalib.annotation.*; | [
"org.robotframework.javalib"
] | org.robotframework.javalib; | 546,087 |
protected void addEndpointNamePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_EndPoint_endpointName_feature"),
getString("_UI_PropertyDescript... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.END_POINT__ENDPOINT_NAME, true, false, false, ItemPropertyDescriptor.GENERIC_... | /**
* This adds a property descriptor for the Endpoint Name feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds a property descriptor for the Endpoint Name feature. | addEndpointNamePropertyDescriptor | {
"repo_name": "chanakaudaya/developer-studio",
"path": "esb/org.wso2.developerstudio.eclipse.esb.edit/src/org/wso2/developerstudio/eclipse/esb/provider/UnknownObjectItemProvider.java",
"license": "apache-2.0",
"size": 6390
} | [
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor",
"org.wso2.developerstudio.eclipse.esb.EsbPackage"
] | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.esb.EsbPackage; | import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.esb.*; | [
"org.eclipse.emf",
"org.wso2.developerstudio"
] | org.eclipse.emf; org.wso2.developerstudio; | 1,667,601 |
public ScanDescription getCurrentScanDescription() {
return currentScanDescription;
}
/**
* {@inheritDoc} | ScanDescription function() { return currentScanDescription; } /** * {@inheritDoc} | /**
* Returns the currently active scan description.
*
* @return the scan description
*/ | Returns the currently active scan description | getCurrentScanDescription | {
"repo_name": "eveCSS/eveCSS",
"path": "bundles/de.ptb.epics.eve.editor/src/de/ptb/epics/eve/editor/views/scanview/ui/ScanView.java",
"license": "epl-1.0",
"size": 41456
} | [
"de.ptb.epics.eve.data.scandescription.ScanDescription"
] | import de.ptb.epics.eve.data.scandescription.ScanDescription; | import de.ptb.epics.eve.data.scandescription.*; | [
"de.ptb.epics"
] | de.ptb.epics; | 2,470,452 |
@Nullable private String validate(WalStateProposeMessage msg) {
// Is group still there?
CacheGroupDescriptor grpDesc = cacheProcessor().cacheGroupDescriptors().get(msg.groupId());
if (grpDesc == null)
return "Failed to change WAL mode because some caches no longer exist: " + ms... | @Nullable String function(WalStateProposeMessage msg) { CacheGroupDescriptor grpDesc = cacheProcessor().cacheGroupDescriptors().get(msg.groupId()); if (grpDesc == null) return STR + msg.caches().keySet(); for (Map.Entry<String, IgniteUuid> cache : msg.caches().entrySet()) { String cacheName = cache.getKey(); DynamicCac... | /**
* Validate propose message.
*
* @param msg Message.
* @return Error message or {@code null} if everything is OK.
*/ | Validate propose message | validate | {
"repo_name": "psadusumilli/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/WalStateManager.java",
"license": "apache-2.0",
"size": 31670
} | [
"java.util.HashSet",
"java.util.Map",
"org.apache.ignite.internal.util.typedef.F",
"org.apache.ignite.lang.IgniteUuid",
"org.jetbrains.annotations.Nullable"
] | import java.util.HashSet; import java.util.Map; import org.apache.ignite.internal.util.typedef.F; import org.apache.ignite.lang.IgniteUuid; import org.jetbrains.annotations.Nullable; | import java.util.*; import org.apache.ignite.internal.util.typedef.*; import org.apache.ignite.lang.*; import org.jetbrains.annotations.*; | [
"java.util",
"org.apache.ignite",
"org.jetbrains.annotations"
] | java.util; org.apache.ignite; org.jetbrains.annotations; | 153,928 |
public void setAnnotationsTextAlign(Align align) {
mAnnotationsTextAlign = align;
}
| void function(Align align) { mAnnotationsTextAlign = align; } | /**
* Sets the annotations text align.
*
* @param align the chart values text align
*/ | Sets the annotations text align | setAnnotationsTextAlign | {
"repo_name": "pedja1/achartengine",
"path": "src/org/achartengine/renderer/XYSeriesRenderer.java",
"license": "apache-2.0",
"size": 10385
} | [
"android.graphics.Paint"
] | import android.graphics.Paint; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 1,833,988 |
public static List<String[]> getTableInfo(Connection con, String table, String typeFilter) {
return getTableInfo(con, table, new String[] { typeFilter });
} | static List<String[]> function(Connection con, String table, String typeFilter) { return getTableInfo(con, table, new String[] { typeFilter }); } | /**
* List the column information in a table - names, types, defaults etc.
* Delegates to the array based version of this code
*
* @param table
* The name of the table to list.
* @param con
* The connection to use.
* @param typeFilter
* If n... | List the column information in a table - names, types, defaults etc. Delegates to the array based version of this code | getTableInfo | {
"repo_name": "thomasmaurel/ensj-healthcheck",
"path": "src/org/ensembl/healthcheck/util/DBUtils.java",
"license": "apache-2.0",
"size": 66673
} | [
"java.sql.Connection",
"java.util.List"
] | import java.sql.Connection; import java.util.List; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 2,425,886 |
jTabbedPane4 = new javax.swing.JTabbedPane();
jPanel22 = new javax.swing.JPanel();
jScrollPane1 = new javax.swing.JScrollPane();
searchTable = new javax.swing.JTable();
setLayout(new java.awt.BorderLayout());
jPanel22.setLayout(new java.awt.BorderLayout());
sea... | jTabbedPane4 = new javax.swing.JTabbedPane(); jPanel22 = new javax.swing.JPanel(); jScrollPane1 = new javax.swing.JScrollPane(); searchTable = new javax.swing.JTable(); setLayout(new java.awt.BorderLayout()); jPanel22.setLayout(new java.awt.BorderLayout()); searchTable.setModel(new javax.swing.table.DefaultTableModel( ... | /** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/ | This method is called from within the constructor to initialize the form. always regenerated by the Form Editor | initComponents | {
"repo_name": "CoEIA/DEM",
"path": "src/edu/coeia/searching/SearchResultPanel.java",
"license": "gpl-3.0",
"size": 9964
} | [
"javax.swing.JTable"
] | import javax.swing.JTable; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 186,003 |
public SwipeMessageBuilder withTypeface(Typeface typeface) {
mTypeface = typeface;
return this;
} | SwipeMessageBuilder function(Typeface typeface) { mTypeface = typeface; return this; } | /**
* Only use this method if {@link SwipeMessageBuilder#withFontPath(String)} is not used
*
* @param typeface
* Type face of the message
*
* @return SwipeMessageBuilder instance
*/ | Only use this method if <code>SwipeMessageBuilder#withFontPath(String)</code> is not used | withTypeface | {
"repo_name": "huan-nguyen/SwipeableRV",
"path": "swipeable-rv/src/main/java/io/huannguyen/swipeablerv/view/SWRecyclerView.java",
"license": "apache-2.0",
"size": 40248
} | [
"android.graphics.Typeface"
] | import android.graphics.Typeface; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 981,221 |
@Test
@WithSystemProperty(key = IGNITE_SQL_PARSER_DISABLE_H2_FALLBACK, value = "true")
public void testCreateIndexWithInlineSizeReplicatedTransactional() throws Exception {
checkCreateIndexWithInlineSize(REPLICATED, TRANSACTIONAL, false);
} | @WithSystemProperty(key = IGNITE_SQL_PARSER_DISABLE_H2_FALLBACK, value = "true") void function() throws Exception { checkCreateIndexWithInlineSize(REPLICATED, TRANSACTIONAL, false); } | /**
* Tests creating index with inline size option for REPLICATED TRANSACTIONAL cache.
*
* @throws Exception If failed.
*/ | Tests creating index with inline size option for REPLICATED TRANSACTIONAL cache | testCreateIndexWithInlineSizeReplicatedTransactional | {
"repo_name": "samaitra/ignite",
"path": "modules/indexing/src/test/java/org/apache/ignite/internal/processors/cache/index/DynamicIndexAbstractBasicSelfTest.java",
"license": "apache-2.0",
"size": 50590
} | [
"org.apache.ignite.testframework.junits.WithSystemProperty"
] | import org.apache.ignite.testframework.junits.WithSystemProperty; | import org.apache.ignite.testframework.junits.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 2,070,634 |
protected void paintVertices(Graphics g) {
for (Integer n : graph.getVertices()) {
paintVertice(g, n);
}
} | void function(Graphics g) { for (Integer n : graph.getVertices()) { paintVertice(g, n); } } | /**
* Place every nodes on the frame, knowing its coordinates.
*
* @param g
*/ | Place every nodes on the frame, knowing its coordinates | paintVertices | {
"repo_name": "noormoha/DCCast",
"path": "dccast/graphTheory/graphDrawer/GraphDrawer.java",
"license": "mit",
"size": 14247
} | [
"java.awt.Graphics"
] | import java.awt.Graphics; | import java.awt.*; | [
"java.awt"
] | java.awt; | 921,269 |
public void addWarning(final WarningMessage message) {
if (message.isRelevant(configuration.getWarningLevel())) {
if (warnings == null) {
warnings = new LinkedList<>();
}
warnings.add(message);
}
} | void function(final WarningMessage message) { if (message.isRelevant(configuration.getWarningLevel())) { if (warnings == null) { warnings = new LinkedList<>(); } warnings.add(message); } } | /**
* Adds a warning to the message set.
*/ | Adds a warning to the message set | addWarning | {
"repo_name": "paulk-asert/groovy",
"path": "src/main/java/org/codehaus/groovy/control/ErrorCollector.java",
"license": "apache-2.0",
"size": 10756
} | [
"java.util.LinkedList",
"org.codehaus.groovy.control.messages.WarningMessage"
] | import java.util.LinkedList; import org.codehaus.groovy.control.messages.WarningMessage; | import java.util.*; import org.codehaus.groovy.control.messages.*; | [
"java.util",
"org.codehaus.groovy"
] | java.util; org.codehaus.groovy; | 662,352 |
static public int skipWhiteSpace(byte[] data, int start) {
int index = start + 1;
while (index < data.length && BNFHeaders.SPACE == data[index]) {
index++;
}
return index;
} | static int function(byte[] data, int start) { int index = start + 1; while (index < data.length && BNFHeaders.SPACE == data[index]) { index++; } return index; } | /**
* Simple method to skip past any space characters from the starting
* index onwards, until it finds a non-space character or the end of the
* buffer. Returns the index it stopped on.
*
* @param data
* @param start
* @return int
*/ | Simple method to skip past any space characters from the starting index onwards, until it finds a non-space character or the end of the buffer. Returns the index it stopped on | skipWhiteSpace | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.transport.http/src/com/ibm/ws/genericbnf/internal/GenericUtils.java",
"license": "epl-1.0",
"size": 41308
} | [
"com.ibm.wsspi.genericbnf.BNFHeaders"
] | import com.ibm.wsspi.genericbnf.BNFHeaders; | import com.ibm.wsspi.genericbnf.*; | [
"com.ibm.wsspi"
] | com.ibm.wsspi; | 2,594,709 |
@Test
public void testSFRemoteEnvEntry_Integer_Modify() throws Exception {
try {
fejb1.bindEnvVar("envInteger", new Integer(111));
fail("Unexpected return from bind().");
} catch (OperationNotSupportedException onse) {
assertNotNull("Caught expected " + onse.g... | void function() throws Exception { try { fejb1.bindEnvVar(STR, new Integer(111)); fail(STR); } catch (OperationNotSupportedException onse) { assertNotNull(STR + onse.getClass().getName(), onse); } try { fejb1.rebindEnvVar(STR, new Integer(112)); fail(STR); } catch (OperationNotSupportedException onse) { assertNotNull(S... | /**
* (ive41) Test that an env-entry of type Integer cannot be modified.
*/ | (ive41) Test that an env-entry of type Integer cannot be modified | testSFRemoteEnvEntry_Integer_Modify | {
"repo_name": "kgibm/open-liberty",
"path": "dev/com.ibm.ws.ejbcontainer.legacy_fat/test-applications/EJB2XRemoteSpecWeb.war/src/com/ibm/ejb2x/base/spec/sfr/web/SFRemoteImplEnvEntryServlet.java",
"license": "epl-1.0",
"size": 39568
} | [
"javax.naming.OperationNotSupportedException",
"org.junit.Assert"
] | import javax.naming.OperationNotSupportedException; import org.junit.Assert; | import javax.naming.*; import org.junit.*; | [
"javax.naming",
"org.junit"
] | javax.naming; org.junit; | 1,759,348 |
public EntityResolver getEntityResolver(){
return entityResolver;
} | EntityResolver function(){ return entityResolver; } | /**
* Return the Entity Resolver used by the SAX parser.
* @return Return the Entity Resolver used by the SAX parser.
*/ | Return the Entity Resolver used by the SAX parser | getEntityResolver | {
"repo_name": "lamsfoundation/lams",
"path": "3rdParty_sources/commons-digester/org/apache/commons/digester/Digester.java",
"license": "gpl-2.0",
"size": 106013
} | [
"org.xml.sax.EntityResolver"
] | import org.xml.sax.EntityResolver; | import org.xml.sax.*; | [
"org.xml.sax"
] | org.xml.sax; | 940,177 |
void onSyncTaskStateChanged(@NonNull SyncTask syncTask, @NonNull Account account); | void onSyncTaskStateChanged(@NonNull SyncTask syncTask, @NonNull Account account); | /**
* Invoked whenever a state of the specified <var>syncTask</var> has been changed.
*
* @param syncTask The task of which state has changed.
* @param account The account for which has been requested synchronization associated with the
* sync task.
* @see SyncTask#getState()
*/ | Invoked whenever a state of the specified syncTask has been changed | onSyncTaskStateChanged | {
"repo_name": "android-frameworks/officium",
"path": "framework/src/sync/java/com/albedinsky/android/officium/sync/OnSyncTaskStateChangeListener.java",
"license": "apache-2.0",
"size": 1837
} | [
"android.accounts.Account",
"android.support.annotation.NonNull"
] | import android.accounts.Account; import android.support.annotation.NonNull; | import android.accounts.*; import android.support.annotation.*; | [
"android.accounts",
"android.support"
] | android.accounts; android.support; | 2,776,645 |
public void paste(ProjectContainer dstProject) {
// ProjectContainer project=ProjectFrame.getFocusFrame().getProjectContainer();
paste(dstProject.getSequencer().getTickPosition(), 0, false,dstProject);
} | void function(ProjectContainer dstProject) { paste(dstProject.getSequencer().getTickPosition(), 0, false,dstProject); } | /**
* Default paste action to the sequencers tickposition and tracker column 0
*
*/ | Default paste action to the sequencers tickposition and tracker column 0 | paste | {
"repo_name": "petersalomonsen/frinika",
"path": "src/com/frinika/sequencer/gui/clipboard/MyClipboard.java",
"license": "gpl-2.0",
"size": 5381
} | [
"com.frinika.project.ProjectContainer"
] | import com.frinika.project.ProjectContainer; | import com.frinika.project.*; | [
"com.frinika.project"
] | com.frinika.project; | 1,121,080 |
@Metadata(description = "The ssl password, which is required to access the keystore file (this is the same password that is supplied to the keystore command's -storepass option).")
public void setSslPassword(String sslPassword) {
this.sslPassword = sslPassword;
} | @Metadata(description = STR) void function(String sslPassword) { this.sslPassword = sslPassword; } | /**
* The ssl password, which is required to access the keystore file (this is the same password that is supplied to the keystore command's -storepass option).
*/ | The ssl password, which is required to access the keystore file (this is the same password that is supplied to the keystore command's -storepass option) | setSslPassword | {
"repo_name": "grgrzybek/camel",
"path": "components/camel-jetty-common/src/main/java/org/apache/camel/component/jetty/JettyHttpComponent.java",
"license": "apache-2.0",
"size": 56260
} | [
"org.apache.camel.spi.Metadata"
] | import org.apache.camel.spi.Metadata; | import org.apache.camel.spi.*; | [
"org.apache.camel"
] | org.apache.camel; | 538,711 |
public boolean authenticate(final String pass, final Authentication auth) {
boolean successfullyAuthenticated = false;
if (!isAuthenticationValid(auth)) {
return successfullyAuthenticated;
}
// check the new credential first, if no new credential available check the old o... | boolean function(final String pass, final Authentication auth) { boolean successfullyAuthenticated = false; if (!isAuthenticationValid(auth)) { return successfullyAuthenticated; } if (auth != null && auth.getNewCredential() != null && Encoder.matches(pass, auth.getNewCredential())) { successfullyAuthenticated = true; }... | /**
* Authenticate against the new credential, if available, else against the old one.
*/ | Authenticate against the new credential, if available, else against the old one | authenticate | {
"repo_name": "huihoo/olat",
"path": "olat7.8/src/main/java/org/olat/lms/security/authentication/AuthenticationServiceImpl.java",
"license": "apache-2.0",
"size": 10714
} | [
"org.olat.data.basesecurity.Authentication",
"org.olat.system.commons.encoder.Encoder"
] | import org.olat.data.basesecurity.Authentication; import org.olat.system.commons.encoder.Encoder; | import org.olat.data.basesecurity.*; import org.olat.system.commons.encoder.*; | [
"org.olat.data",
"org.olat.system"
] | org.olat.data; org.olat.system; | 928,299 |
@Deprecated
public void setEnabledCipherSuites( List<String> enabledCipherSuites )
{
this.enabledCipherSuites = enabledCipherSuites;
} | void function( List<String> enabledCipherSuites ) { this.enabledCipherSuites = enabledCipherSuites; } | /**
* Sets the list of cipher suites to be used in LDAPS and StartTLS
* <br>
* This method has been deprecated, please set this list in the TcpTransport class
* <br>
*
* @param enabledCipherSuites if null the default cipher suites will be used
* @deprecated Get this list from the {@li... | Sets the list of cipher suites to be used in LDAPS and StartTLS This method has been deprecated, please set this list in the TcpTransport class | setEnabledCipherSuites | {
"repo_name": "apache/directory-server",
"path": "protocol-ldap/src/main/java/org/apache/directory/server/ldap/LdapServer.java",
"license": "apache-2.0",
"size": 59298
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 376,153 |
public void initialize( List<DTO> listaOggetti, List<String> metodiDaInvocare) throws Exception
{
this._listaOggetti = listaOggetti;
initMethods(metodiDaInvocare);
buildTable();
}
public String[][] getTable() {return table;}
| void function( List<DTO> listaOggetti, List<String> metodiDaInvocare) throws Exception { this._listaOggetti = listaOggetti; initMethods(metodiDaInvocare); buildTable(); } public String[][] getTable() {return table;} | /**
* inizializza l'oggetto costruendo la matrice di stringhe a partire da una lista di DTO , chiamando tutti i metodi passati in input
* @param listaOggetti lista di oggetti , sui quali chiamare i metodi per ottenere le stringhe da inserire nella matrice
* @param metodiDaInvocare nomi dei metodi da i... | inizializza l'oggetto costruendo la matrice di stringhe a partire da una lista di DTO , chiamando tutti i metodi passati in input | initialize | {
"repo_name": "giasap0/konga",
"path": "konga/src/it/konga/framework/util/KConverter_DTO_to_StringTable.java",
"license": "gpl-2.0",
"size": 4289
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,878,734 |
public void moveToTop(BaseComponent dropRoot) {
if (dropRoot != null) {
dropRoot.addChild(this, 0);
this.scrollIntoView();
}
} | void function(BaseComponent dropRoot) { if (dropRoot != null) { dropRoot.addChild(this, 0); this.scrollIntoView(); } } | /**
* Moves this entry to the beginning of the stream.
*
* @param dropRoot Parent
*/ | Moves this entry to the beginning of the stream | moveToTop | {
"repo_name": "carewebframework/carewebframework-core",
"path": "org.carewebframework.plugin-parent/org.carewebframework.plugin.infopanel/src/main/java/org/carewebframework/plugin/infopanel/controller/DropContainer.java",
"license": "apache-2.0",
"size": 6111
} | [
"org.fujion.component.BaseComponent"
] | import org.fujion.component.BaseComponent; | import org.fujion.component.*; | [
"org.fujion.component"
] | org.fujion.component; | 1,586,203 |
protected static void addClassOrPackageToInstrument(String classOrPackageToBeInstrumented) {
if (!isInstrumented()) {
defaultLoader.addCustomShadowClass(classOrPackageToBeInstrumented);
}
}
public RobolectricTestRunner(final Class<?> testClass) throws InitializationError {
... | static void function(String classOrPackageToBeInstrumented) { if (!isInstrumented()) { defaultLoader.addCustomShadowClass(classOrPackageToBeInstrumented); } } public RobolectricTestRunner(final Class<?> testClass) throws InitializationError { this(testClass, new RobolectricConfig(new File("."))); } protected Robolectri... | /**
* Call this if you would like Robolectric to rewrite additional classes and turn them
* into "do nothing" classes which proxy all method calls to shadow classes, just like it does
* with the android classes by default.
*
* @param classOrPackageToBeInstrumented fully-qualified class or packa... | Call this if you would like Robolectric to rewrite additional classes and turn them into "do nothing" classes which proxy all method calls to shadow classes, just like it does with the android classes by default | addClassOrPackageToInstrument | {
"repo_name": "MIPS/external-robolectric",
"path": "src/main/java/com/xtremelabs/robolectric/RobolectricTestRunner.java",
"license": "mit",
"size": 24682
} | [
"com.xtremelabs.robolectric.bytecode.ClassHandler",
"com.xtremelabs.robolectric.bytecode.RobolectricClassLoader",
"com.xtremelabs.robolectric.bytecode.ShadowWrangler",
"com.xtremelabs.robolectric.internal.RealObject",
"com.xtremelabs.robolectric.internal.RobolectricTestRunnerInterface",
"com.xtremelabs.ro... | import com.xtremelabs.robolectric.bytecode.ClassHandler; import com.xtremelabs.robolectric.bytecode.RobolectricClassLoader; import com.xtremelabs.robolectric.bytecode.ShadowWrangler; import com.xtremelabs.robolectric.internal.RealObject; import com.xtremelabs.robolectric.internal.RobolectricTestRunnerInterface; import ... | import com.xtremelabs.robolectric.bytecode.*; import com.xtremelabs.robolectric.internal.*; import com.xtremelabs.robolectric.util.*; import java.io.*; import java.lang.reflect.*; import org.junit.runners.model.*; | [
"com.xtremelabs.robolectric",
"java.io",
"java.lang",
"org.junit.runners"
] | com.xtremelabs.robolectric; java.io; java.lang; org.junit.runners; | 2,375,843 |
public void skip(MessageReceivedEvent e, GuildPlayer player, boolean force)
{
if(force) {
player.nextTrack();
}
//Vote Skip for current song
else
{
if(player.addSkip(e.getAuthor())) //If the user hadn't vote yet
{
int m... | void function(MessageReceivedEvent e, GuildPlayer player, boolean force) { if(force) { player.nextTrack(); } else { if(player.addSkip(e.getAuthor())) { int mem = player.requiredVote(); int votes = player.getVote().size(); if(votes >= mem) { player.nextTrack(); return; } e.getChannel().sendMessage(Emoji.UP_VOTE + STR + ... | /**
* Skip the current song
* @param e
* @param force force skip
*/ | Skip the current song | skip | {
"repo_name": "AlienIdeology/AIBot",
"path": "org.alienideology.aibot/src/main/java/command/music/SkipCommand.java",
"license": "mit",
"size": 5483
} | [
"net.dv8tion.jda.core.events.message.MessageReceivedEvent"
] | import net.dv8tion.jda.core.events.message.MessageReceivedEvent; | import net.dv8tion.jda.core.events.message.*; | [
"net.dv8tion.jda"
] | net.dv8tion.jda; | 2,770,799 |
public static void setPreferredWidth(JComponent button, int minWidth)
{
Dimension size = button.getPreferredSize();
if (size.width < minWidth)
{
size.width = minWidth;
button.setPreferredSize(size);
}
} | static void function(JComponent button, int minWidth) { Dimension size = button.getPreferredSize(); if (size.width < minWidth) { size.width = minWidth; button.setPreferredSize(size); } } | /**
* Sets the minimum width of a {@link JButton}.
* <p/>
* @param button the button to change
* @param minWidth the minimum width to apply
*/ | Sets the minimum width of a <code>JButton</code>. | setPreferredWidth | {
"repo_name": "Taller/sqlworkbench-plus",
"path": "src/workbench/gui/WbSwingUtilities.java",
"license": "apache-2.0",
"size": 40156
} | [
"java.awt.Dimension",
"javax.swing.JComponent"
] | import java.awt.Dimension; import javax.swing.JComponent; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 1,935,886 |
public void showProgress(final int matches1, final int total1)
{
if (progress == null)
return;
progress.setText(String.valueOf(matches1) + "/" + String.valueOf(total1));
}
}
class FindTabs extends JTabbedPane
{
private static final long serialVersionUID = 1L;
protected Strin... | void function(final int matches1, final int total1) { if (progress == null) return; progress.setText(String.valueOf(matches1) + "/" + String.valueOf(total1)); } } class FindTabs extends JTabbedPane { private static final long serialVersionUID = 1L; protected String TAB_NAME = "Name"; protected String TAB_DATE = "Date";... | /**
* Display search progress as a text field
* "no. of matches / total searched".
*
* @param matches1
* number of items found
* @param total1
* number of items investigated
*/ | Display search progress as a text field "no. of matches / total searched" | showProgress | {
"repo_name": "alastrina123/debrief",
"path": "org.mwc.cmap.legacy/src/MWC/GUI/Dialogs/Swing/EFileChooser.java",
"license": "epl-1.0",
"size": 61325
} | [
"java.awt.Color",
"java.awt.Font",
"java.util.Date",
"javax.swing.JScrollPane",
"javax.swing.JTabbedPane"
] | import java.awt.Color; import java.awt.Font; import java.util.Date; import javax.swing.JScrollPane; import javax.swing.JTabbedPane; | import java.awt.*; import java.util.*; import javax.swing.*; | [
"java.awt",
"java.util",
"javax.swing"
] | java.awt; java.util; javax.swing; | 2,752,321 |
private ActiveMQMessageConsumer internalCreateSharedConsumer(final ActiveMQDestination dest,
final String subscriptionName,
String selectorString,
... | ActiveMQMessageConsumer function(final ActiveMQDestination dest, final String subscriptionName, String selectorString, ConsumerDurability durability) throws JMSException { try { if (dest.isQueue()) { throw new RuntimeException(STR); } if (subscriptionName == null) { throw ActiveMQJMSClientBundle.BUNDLE.invalidSubscript... | /**
* This is an internal method for shared consumers
*/ | This is an internal method for shared consumers | internalCreateSharedConsumer | {
"repo_name": "lburgazzoli/apache-activemq-artemis",
"path": "artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java",
"license": "apache-2.0",
"size": 38884
} | [
"javax.jms.JMSException",
"org.apache.activemq.artemis.api.core.ActiveMQException",
"org.apache.activemq.artemis.api.core.ActiveMQQueueExistsException",
"org.apache.activemq.artemis.api.core.SimpleString"
] | import javax.jms.JMSException; import org.apache.activemq.artemis.api.core.ActiveMQException; import org.apache.activemq.artemis.api.core.ActiveMQQueueExistsException; import org.apache.activemq.artemis.api.core.SimpleString; | import javax.jms.*; import org.apache.activemq.artemis.api.core.*; | [
"javax.jms",
"org.apache.activemq"
] | javax.jms; org.apache.activemq; | 2,212,626 |
public void setBubbleFormattedDate(String newBubbleFormattedDate) {
if (bubbleFormattedDate == null) {
String oldBubbleFormattedDate = bubbleFormattedDate;
bubbleFormattedDate = newBubbleFormattedDate;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, PlanPackage.EDAY_... | void function(String newBubbleFormattedDate) { if (bubbleFormattedDate == null) { String oldBubbleFormattedDate = bubbleFormattedDate; bubbleFormattedDate = newBubbleFormattedDate; if (eNotificationRequired()) eNotify(new ENotificationImpl(this, Notification.SET, PlanPackage.EDAY__BUBBLE_FORMATTED_DATE, oldBubbleFormat... | /**
* <!-- begin-user-doc -->
* Only does it once because the bubble format is specified once.
* <!-- end-user-doc -->
* @generated NOT
*/ | Only does it once because the bubble format is specified once. | setBubbleFormattedDate | {
"repo_name": "nasa/OpenSPIFe",
"path": "gov.nasa.ensemble.core.model.plan/src/gov/nasa/ensemble/core/model/plan/impl/EDayImpl.java",
"license": "apache-2.0",
"size": 7771
} | [
"gov.nasa.ensemble.core.model.plan.PlanPackage",
"org.eclipse.emf.common.notify.Notification",
"org.eclipse.emf.ecore.impl.ENotificationImpl"
] | import gov.nasa.ensemble.core.model.plan.PlanPackage; import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.ecore.impl.ENotificationImpl; | import gov.nasa.ensemble.core.model.plan.*; import org.eclipse.emf.common.notify.*; import org.eclipse.emf.ecore.impl.*; | [
"gov.nasa.ensemble",
"org.eclipse.emf"
] | gov.nasa.ensemble; org.eclipse.emf; | 1,121,504 |
private void showRanking() {
// Creation of a big graph with the result
Graph<Domain> graph_all = new Graph<Domain>(Integer.MAX_VALUE);
for (Graph<Domain> graph : m.getFilteredWhiteListed()) {
for (Domain dom : graph.getNodes()) {
if (!graph_all.containsKey(dom)) ... | void function() { Graph<Domain> graph_all = new Graph<Domain>(Integer.MAX_VALUE); for (Graph<Domain> graph : m.getFilteredWhiteListed()) { for (Domain dom : graph.getNodes()) { if (!graph_all.containsKey(dom)) { graph_all.put(dom, graph.getNeighbors(dom)); } else { NeighborList neighbors = graph_all.getNeighbors(dom); ... | /**
* Print of the ranking list. This method modifies ranking_print and ranking
* of the Memory object of the Server.
*/ | Print of the ranking list. This method modifies ranking_print and ranking of the Memory object of the Server | showRanking | {
"repo_name": "RUCD/apt-graph",
"path": "server/src/main/java/aptgraph/server/RequestHandler.java",
"license": "mit",
"size": 42180
} | [
"info.debatty.java.graphs.Graph",
"info.debatty.java.graphs.Neighbor",
"info.debatty.java.graphs.NeighborList",
"java.util.ArrayList",
"java.util.HashMap",
"java.util.LinkedList",
"java.util.List",
"java.util.TreeMap"
] | import info.debatty.java.graphs.Graph; import info.debatty.java.graphs.Neighbor; import info.debatty.java.graphs.NeighborList; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import java.util.List; import java.util.TreeMap; | import info.debatty.java.graphs.*; import java.util.*; | [
"info.debatty.java",
"java.util"
] | info.debatty.java; java.util; | 785,746 |
public T update(String path,
DataUpdater<T> updater,
List<String> createPaths,
Stat stat,
int options)
{
CreateMode mode = AccessOption.getMode(options);
if (mode == null)
{
LOG.error("Invalid update mode. options: " + options... | T function(String path, DataUpdater<T> updater, List<String> createPaths, Stat stat, int options) { CreateMode mode = AccessOption.getMode(options); if (mode == null) { LOG.error(STR + options); return null; } boolean retry; T updatedData = null; do { retry = false; try { Stat readStat = new Stat(); T oldData = (T) _zk... | /**
* sync update
*
* @return: updatedData on success, or null on fail
*/ | sync update | update | {
"repo_name": "kishoreg/incubator-helix",
"path": "helix-core/src/main/java/org/apache/helix/manager/zk/ZkBaseDataAccessor.java",
"license": "apache-2.0",
"size": 32830
} | [
"java.util.List",
"org.apache.helix.AccessOption",
"org.apache.zookeeper.CreateMode",
"org.apache.zookeeper.data.Stat",
"org.apache.zookeeper.server.DataTree"
] | import java.util.List; import org.apache.helix.AccessOption; import org.apache.zookeeper.CreateMode; import org.apache.zookeeper.data.Stat; import org.apache.zookeeper.server.DataTree; | import java.util.*; import org.apache.helix.*; import org.apache.zookeeper.*; import org.apache.zookeeper.data.*; import org.apache.zookeeper.server.*; | [
"java.util",
"org.apache.helix",
"org.apache.zookeeper"
] | java.util; org.apache.helix; org.apache.zookeeper; | 747,423 |
public List<DeliverableAndesMetadata> getRetainedMessageByTopic(String subscriptionTopicName)
throws AndesException {
List<DeliverableAndesMetadata> retainMessageList = new ArrayList<>();
List<String> topicList = messageStore.getAllRetainedTopics();
for (String topicName : topic... | List<DeliverableAndesMetadata> function(String subscriptionTopicName) throws AndesException { List<DeliverableAndesMetadata> retainMessageList = new ArrayList<>(); List<String> topicList = messageStore.getAllRetainedTopics(); for (String topicName : topicList) { if (TopicParserUtil.isMatching(topicName, subscriptionTop... | /**
* Return matching retained message metadata for the given subscription topic name. An empty list is returned if no
* match is found.
*
* @param subscriptionTopicName Destination string provided by the subscriber
* @return AndesMessageMetadata
* @throws AndesException
*/ | Return matching retained message metadata for the given subscription topic name. An empty list is returned if no match is found | getRetainedMessageByTopic | {
"repo_name": "wso2/andes",
"path": "modules/andes-core/broker/src/main/java/org/wso2/andes/kernel/MessagingEngine.java",
"license": "apache-2.0",
"size": 27357
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 636,184 |
public static int inRings(MMFFMolecule mol, int atom) {
RingCollection rings = mol.getRingSet();
int rc = 0;
for (int r=0; r<rings.getSize(); r++)
if (rings.getAtomIndex(r,atom) >= 0)
rc++;
return rc;
} | static int function(MMFFMolecule mol, int atom) { RingCollection rings = mol.getRingSet(); int rc = 0; for (int r=0; r<rings.getSize(); r++) if (rings.getAtomIndex(r,atom) >= 0) rc++; return rc; } | /**
* Returns the number of rings that an atom is a member of in a
* molecule.
* @param mol The molecule that the atom is in.
* @param atom The atom to check.
* @return The nuber of rings that the atom is a member of.
*/ | Returns the number of rings that an atom is a member of in a molecule | inRings | {
"repo_name": "cheminfo/openchemlib-js",
"path": "src/com/actelion/research/gwt/chemlib/com/actelion/research/chem/forcefield/mmff/type/Atom.java",
"license": "bsd-3-clause",
"size": 65777
} | [
"com.actelion.research.chem.RingCollection",
"com.actelion.research.chem.forcefield.mmff.MMFFMolecule"
] | import com.actelion.research.chem.RingCollection; import com.actelion.research.chem.forcefield.mmff.MMFFMolecule; | import com.actelion.research.chem.*; import com.actelion.research.chem.forcefield.mmff.*; | [
"com.actelion.research"
] | com.actelion.research; | 129,896 |
protected Message<Id> createMessage(Date internalDate, final int size, int bodyStartOctet, final SharedInputStream content, final Flags flags, final PropertyBuilder propertyBuilder) throws MailboxException {
return new SimpleMessage<Id>(internalDate, size, bodyStartOctet, content, flags, propertyBuilder, ge... | Message<Id> function(Date internalDate, final int size, int bodyStartOctet, final SharedInputStream content, final Flags flags, final PropertyBuilder propertyBuilder) throws MailboxException { return new SimpleMessage<Id>(internalDate, size, bodyStartOctet, content, flags, propertyBuilder, getMailboxEntity().getMailbox... | /**
* Create a new {@link Message} for the given data
*
* @param internalDate
* @param size
* @param bodyStartOctet
* @param content
* @param flags
* @return membership
* @throws MailboxException
*/ | Create a new <code>Message</code> for the given data | createMessage | {
"repo_name": "aduprat/james-mailbox",
"path": "store/src/main/java/org/apache/james/mailbox/store/StoreMessageManager.java",
"license": "apache-2.0",
"size": 34015
} | [
"java.util.Date",
"javax.mail.Flags",
"javax.mail.internet.SharedInputStream",
"org.apache.james.mailbox.exception.MailboxException",
"org.apache.james.mailbox.store.mail.model.Message",
"org.apache.james.mailbox.store.mail.model.impl.PropertyBuilder",
"org.apache.james.mailbox.store.mail.model.impl.Sim... | import java.util.Date; import javax.mail.Flags; import javax.mail.internet.SharedInputStream; import org.apache.james.mailbox.exception.MailboxException; import org.apache.james.mailbox.store.mail.model.Message; import org.apache.james.mailbox.store.mail.model.impl.PropertyBuilder; import org.apache.james.mailbox.store... | import java.util.*; import javax.mail.*; import javax.mail.internet.*; import org.apache.james.mailbox.exception.*; import org.apache.james.mailbox.store.mail.model.*; import org.apache.james.mailbox.store.mail.model.impl.*; | [
"java.util",
"javax.mail",
"org.apache.james"
] | java.util; javax.mail; org.apache.james; | 241,444 |
public List<MusicFolder> getAllMusicFolders() {
return getAllMusicFolders(false, false);
}
| List<MusicFolder> function() { return getAllMusicFolders(false, false); } | /**
* Returns all music folders. Non-existing and disabled folders are not included.
*
* @return Possibly empty list of all music folders.
*/ | Returns all music folders. Non-existing and disabled folders are not included | getAllMusicFolders | {
"repo_name": "ayeminoo/futuresonic",
"path": "futuresonic-main/src/main/java/net/sourceforge/subsonic/service/SettingsService.java",
"license": "gpl-3.0",
"size": 79994
} | [
"java.util.List",
"net.sourceforge.subsonic.domain.MusicFolder"
] | import java.util.List; import net.sourceforge.subsonic.domain.MusicFolder; | import java.util.*; import net.sourceforge.subsonic.domain.*; | [
"java.util",
"net.sourceforge.subsonic"
] | java.util; net.sourceforge.subsonic; | 2,839,336 |
public Timestamp getShipBeforeDate(int idx) {
CartShipInfo csi = this.getShipInfo(idx);
return csi.shipBeforeDate;
} | Timestamp function(int idx) { CartShipInfo csi = this.getShipInfo(idx); return csi.shipBeforeDate; } | /**
* Get ship before date for a particular ship group
* @param idx the ship group number
* @return ship before date for a given ship group
*/ | Get ship before date for a particular ship group | getShipBeforeDate | {
"repo_name": "ofbizfriends/vogue",
"path": "applications/order/src/org/ofbiz/order/shoppingcart/ShoppingCart.java",
"license": "apache-2.0",
"size": 230583
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,076,769 |
public static void main(String[] args) {
int mb = 1024*1024;
//Getting the runtime reference from system
Runtime runtime = Runtime.getRuntime();
System.out.println("##### Heap utilization statistics [MB] #####");
//Print used memory
System.out.println("Used Memory:"
+ (runtime.totalMemory... | static void function(String[] args) { int mb = 1024*1024; Runtime runtime = Runtime.getRuntime(); System.out.println(STR); System.out.println(STR + (runtime.totalMemory() - runtime.freeMemory()) / mb); System.out.println(STR + runtime.freeMemory() / mb); System.out.println(STR + runtime.totalMemory() / mb); System.out.... | /** e.g. download ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_trembl.fasta.gz
* and pass in path to local location of file
*
* @param args
*/ | e.g. download ftp://ftp.uniprot.org/pub/databases/uniprot/current_release/knowledgebase/complete/uniprot_trembl.fasta.gz and pass in path to local location of file | main | {
"repo_name": "andreasprlic/biojava",
"path": "biojava-core/src/main/java/demo/ParseFastaFileDemo.java",
"license": "lgpl-2.1",
"size": 3525
} | [
"java.io.File",
"java.io.InputStream",
"java.util.LinkedHashMap",
"java.util.logging.Level",
"java.util.logging.Logger",
"org.biojava.nbio.core.sequence.ProteinSequence",
"org.biojava.nbio.core.sequence.compound.AminoAcidCompound",
"org.biojava.nbio.core.sequence.compound.AminoAcidCompoundSet",
"org... | import java.io.File; import java.io.InputStream; import java.util.LinkedHashMap; import java.util.logging.Level; import java.util.logging.Logger; import org.biojava.nbio.core.sequence.ProteinSequence; import org.biojava.nbio.core.sequence.compound.AminoAcidCompound; import org.biojava.nbio.core.sequence.compound.AminoA... | import java.io.*; import java.util.*; import java.util.logging.*; import org.biojava.nbio.core.sequence.*; import org.biojava.nbio.core.sequence.compound.*; import org.biojava.nbio.core.sequence.io.*; import org.biojava.nbio.core.util.*; | [
"java.io",
"java.util",
"org.biojava.nbio"
] | java.io; java.util; org.biojava.nbio; | 2,456,609 |
private T findMin(final Stack<T> stack, final Stack<T> out,
final T minValue) {
if (stack.isEmpty()) {
return minValue;
}
T val = stack.pop();
out.push(val);
T min = minValue;
if (minValue == null || val.compareTo(minValue) < 1) {
... | T function(final Stack<T> stack, final Stack<T> out, final T minValue) { if (stack.isEmpty()) { return minValue; } T val = stack.pop(); out.push(val); T min = minValue; if (minValue == null val.compareTo(minValue) < 1) { min = val; } return findMin(stack, out, min); } | /**
* Recursively find a min value and pours out stack.
*
* @param stack input stack
* @param out out stack
* @param minValue min value, initial null
* @return min value
*/ | Recursively find a min value and pours out stack | findMin | {
"repo_name": "rostykerei/cci",
"path": "src/main/java/nl/rostykerei/cci/ch03/q05/SortStackImpl.java",
"license": "mit",
"size": 2246
} | [
"nl.rostykerei.cci.datastructure.Stack"
] | import nl.rostykerei.cci.datastructure.Stack; | import nl.rostykerei.cci.datastructure.*; | [
"nl.rostykerei.cci"
] | nl.rostykerei.cci; | 2,159,576 |
private static void setXXX_setObject(Statement s, PreparedStatement psi,
PreparedStatement psq, int type, Object value, String className,
int b5o) throws SQLException, java.io.IOException {
// Test setObject(int, Object)
setXXX_setObject_doWork(
s, psi, psq, ... | static void function(Statement s, PreparedStatement psi, PreparedStatement psq, int type, Object value, String className, int b5o) throws SQLException, java.io.IOException { setXXX_setObject_doWork( s, psi, psq, type, value, className, b5o, false, false); setXXX_setObject_doWork( s, psi, psq, type, value, className, b5... | /**
* Do the {@code setObject()} tests for {@code setXXX()}. Test both for
* the two-argument {@code setObject(int,Object)} method and the
* three-argument {@code setObject(int,Object,int)} method.
*/ | Do the setObject() tests for setXXX(). Test both for the two-argument setObject(int,Object) method and the three-argument setObject(int,Object,int) method | setXXX_setObject | {
"repo_name": "kavin256/Derby",
"path": "java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/ParameterMappingTest.java",
"license": "apache-2.0",
"size": 152423
} | [
"java.io.IOException",
"java.sql.PreparedStatement",
"java.sql.SQLException",
"java.sql.Statement"
] | import java.io.IOException; import java.sql.PreparedStatement; import java.sql.SQLException; import java.sql.Statement; | import java.io.*; import java.sql.*; | [
"java.io",
"java.sql"
] | java.io; java.sql; | 680,291 |
public static PackageArch lookupPackageArchByLabel(String label) {
Map<String, Object> params = new HashMap<String, Object>();
params.put("label", label);
return (PackageArch) singleton.lookupObjectByNamedQuery("PackageArch.findByLabel",
params, true);
} | static PackageArch function(String label) { Map<String, Object> params = new HashMap<String, Object>(); params.put("label", label); return (PackageArch) singleton.lookupObjectByNamedQuery(STR, params, true); } | /**
* Lookup a PackageArch by its label.
* @param label package arch label sought.
* @return the PackageArch whose label matches the given label.
*/ | Lookup a PackageArch by its label | lookupPackageArchByLabel | {
"repo_name": "mcalmer/spacewalk",
"path": "java/code/src/com/redhat/rhn/domain/rhnpackage/PackageFactory.java",
"license": "gpl-2.0",
"size": 21271
} | [
"java.util.HashMap",
"java.util.Map"
] | import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,759,015 |
public Point getMaximum() {
int maxx = 0, maxy = 0;
for ( int i = 0; i < nrSteps(); i++ ) {
StepMeta stepMeta = getStep( i );
Point loc = stepMeta.getLocation();
if ( loc.x > maxx ) {
maxx = loc.x;
}
if ( loc.y > maxy ) {
maxy = loc.y;
}
}
for ( int ... | Point function() { int maxx = 0, maxy = 0; for ( int i = 0; i < nrSteps(); i++ ) { StepMeta stepMeta = getStep( i ); Point loc = stepMeta.getLocation(); if ( loc.x > maxx ) { maxx = loc.x; } if ( loc.y > maxy ) { maxy = loc.y; } } for ( int i = 0; i < nrNotes(); i++ ) { NotePadMeta notePadMeta = getNote( i ); Point loc... | /**
* Gets the maximum size of the canvas by calculating the maximum location of a step.
*
* @return Maximum coordinate of a step in the transformation + (100,100) for safety.
*/ | Gets the maximum size of the canvas by calculating the maximum location of a step | getMaximum | {
"repo_name": "eayoungs/pentaho-kettle",
"path": "engine/src/org/pentaho/di/trans/TransMeta.java",
"license": "apache-2.0",
"size": 221441
} | [
"org.pentaho.di.core.NotePadMeta",
"org.pentaho.di.core.gui.Point",
"org.pentaho.di.trans.step.StepMeta"
] | import org.pentaho.di.core.NotePadMeta; import org.pentaho.di.core.gui.Point; import org.pentaho.di.trans.step.StepMeta; | import org.pentaho.di.core.*; import org.pentaho.di.core.gui.*; import org.pentaho.di.trans.step.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 2,316,585 |
public boolean isCurrent() {
return containsTime(new Date());
}
| boolean function() { return containsTime(new Date()); } | /**
* Checks if the permission applies to now by checking the start and end
* dates.
* @return true if the permission applies now; otherwise false.
*/ | Checks if the permission applies to now by checking the start and end dates | isCurrent | {
"repo_name": "DIA-NZ/webcurator",
"path": "wct-core/src/main/java/org/webcurator/domain/model/core/Permission.java",
"license": "apache-2.0",
"size": 23657
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,263,011 |
private String makeSetterMethodName(Field field) {
String setterMethodName;
String setterMethodPrefix = "set";
if (isPrimitiveBooleanType(field) && field.getName().matches("^is[A-Z]{1}.*$")) {
setterMethodName = setterMethodPrefix + field.getName().substring(2);
} else if (field.getName().matches("^[a-z]{... | String function(Field field) { String setterMethodName; String setterMethodPrefix = "set"; if (isPrimitiveBooleanType(field) && field.getName().matches(STR)) { setterMethodName = setterMethodPrefix + field.getName().substring(2); } else if (field.getName().matches(STR)) { setterMethodName = setterMethodPrefix + field.g... | /**
* Generate the setter method name by field, following the eclipse rule.
*
* @param field
* The field to generate setter method from.
* @return The generated setter method name.
*/ | Generate the setter method name by field, following the eclipse rule | makeSetterMethodName | {
"repo_name": "canperragit/LitePal",
"path": "litepal/src/main/java/org/litepal/crud/DataHandler.java",
"license": "apache-2.0",
"size": 42939
} | [
"java.lang.reflect.Field",
"org.litepal.util.BaseUtility"
] | import java.lang.reflect.Field; import org.litepal.util.BaseUtility; | import java.lang.reflect.*; import org.litepal.util.*; | [
"java.lang",
"org.litepal.util"
] | java.lang; org.litepal.util; | 1,678,949 |
public void setVectorFactory(
final VectorFactory<?> vectorFactory)
{
this.vectorFactory = vectorFactory;
} | void function( final VectorFactory<?> vectorFactory) { this.vectorFactory = vectorFactory; } | /**
* Sets the vector factory to use.
*
* @param vectorFactory
* The vector factory to use.
*/ | Sets the vector factory to use | setVectorFactory | {
"repo_name": "codeaudit/Foundry",
"path": "Components/LearningCore/Source/gov/sandia/cognition/learning/data/feature/RandomSubspace.java",
"license": "bsd-3-clause",
"size": 5674
} | [
"gov.sandia.cognition.math.matrix.VectorFactory"
] | import gov.sandia.cognition.math.matrix.VectorFactory; | import gov.sandia.cognition.math.matrix.*; | [
"gov.sandia.cognition"
] | gov.sandia.cognition; | 387,578 |
String getStackGroup() {
return getValue(Property.STACK, ChartType.BAR.value());
} | String getStackGroup() { return getValue(Property.STACK, ChartType.BAR.value()); } | /**
* Returns the name of stack group.
*
* @return the name of stack group.
*/ | Returns the name of stack group | getStackGroup | {
"repo_name": "pepstock-org/Charba",
"path": "src/org/pepstock/charba/client/data/BarStackHandler.java",
"license": "apache-2.0",
"size": 2119
} | [
"org.pepstock.charba.client.ChartType"
] | import org.pepstock.charba.client.ChartType; | import org.pepstock.charba.client.*; | [
"org.pepstock.charba"
] | org.pepstock.charba; | 377,814 |
public Collection<String> getExposedHeaders() {
return exposedHeaders;
}
| Collection<String> function() { return exposedHeaders; } | /**
* Returns a {@link Set} of headers that should be exposed by browser.
*
* @return
*/ | Returns a <code>Set</code> of headers that should be exposed by browser | getExposedHeaders | {
"repo_name": "yli-aldo/cros_filter",
"path": "src/main/java/org/ebaysf/web/cors/CORSFilter.java",
"license": "apache-2.0",
"size": 44490
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 2,373,994 |
public String getParameter(String key) throws JobExecutionException {
String value = (String) parameters.get(key);
if (value == null || value.trim().equals(""))
throw new JobExecutionException("parameter '" + key + "' cannot be blank!");
return value;
} | String function(String key) throws JobExecutionException { String value = (String) parameters.get(key); if (value == null value.trim().equals(STRparameter 'STR' cannot be blank!"); return value; } | /**
* Returns the named parameter value as a String, throws a JobExecutionException
* if the value is null or blank.
*
* @param key parameter name
* @return string value of parameter
* @throws JobExecutionException thrown if string value is null or blank
*/ | Returns the named parameter value as a String, throws a JobExecutionException if the value is null or blank | getParameter | {
"repo_name": "WebDataConsulting/billing",
"path": "src/java/com/sapienter/jbilling/server/process/task/ScpUploadTask.java",
"license": "agpl-3.0",
"size": 12289
} | [
"org.quartz.JobExecutionException"
] | import org.quartz.JobExecutionException; | import org.quartz.*; | [
"org.quartz"
] | org.quartz; | 311,381 |
public SessionNavigator getSessionNavigator() {
if (BuildConfig.DEBUG) {
return sessionNavigator;
} else {
throw new RuntimeException("On principal of design, only meant for testing purposes");
}
} | SessionNavigator function() { if (BuildConfig.DEBUG) { return sessionNavigator; } else { throw new RuntimeException(STR); } } | /**
* For Testing purposes only
*/ | For Testing purposes only | getSessionNavigator | {
"repo_name": "dimagi/commcare-android",
"path": "app/src/org/commcare/activities/HomeScreenBaseActivity.java",
"license": "apache-2.0",
"size": 68283
} | [
"org.commcare.dalvik.BuildConfig",
"org.commcare.session.SessionNavigator"
] | import org.commcare.dalvik.BuildConfig; import org.commcare.session.SessionNavigator; | import org.commcare.dalvik.*; import org.commcare.session.*; | [
"org.commcare.dalvik",
"org.commcare.session"
] | org.commcare.dalvik; org.commcare.session; | 40,218 |
@Path("files")
@GET
public GarbageCollection getFileStatus() {
GCStatus gcStatus = monitor.getGcStatus();
if (gcStatus == null) {
return GarbageCollection.getEmpty();
}
return new GarbageCollection(gcStatus.last, gcStatus.current);
} | @Path("files") GarbageCollection function() { GCStatus gcStatus = monitor.getGcStatus(); if (gcStatus == null) { return GarbageCollection.getEmpty(); } return new GarbageCollection(gcStatus.last, gcStatus.current); } | /**
* Generates current and last file gc object
*
* @return file gc object
*/ | Generates current and last file gc object | getFileStatus | {
"repo_name": "lstav/accumulo",
"path": "server/monitor/src/main/java/org/apache/accumulo/monitor/rest/gc/GarbageCollectorResource.java",
"license": "apache-2.0",
"size": 3616
} | [
"javax.ws.rs.Path",
"org.apache.accumulo.core.gc.thrift.GCStatus"
] | import javax.ws.rs.Path; import org.apache.accumulo.core.gc.thrift.GCStatus; | import javax.ws.rs.*; import org.apache.accumulo.core.gc.thrift.*; | [
"javax.ws",
"org.apache.accumulo"
] | javax.ws; org.apache.accumulo; | 314,643 |
public DataFile getDatafile() {
return this.dataFile;
} | DataFile function() { return this.dataFile; } | /**
* Get property datafile.
* @return DataFile, value of property datafile.
*/ | Get property datafile | getDatafile | {
"repo_name": "jacksonokuhn/dataverse",
"path": "src/main/java/edu/harvard/iq/dataverse/worldmapauth/WorldMapToken.java",
"license": "apache-2.0",
"size": 9846
} | [
"edu.harvard.iq.dataverse.DataFile"
] | import edu.harvard.iq.dataverse.DataFile; | import edu.harvard.iq.dataverse.*; | [
"edu.harvard.iq"
] | edu.harvard.iq; | 1,791,426 |
public final synchronized double getRate() {
return TimeUnit.SECONDS.toMicros(1L) / stableIntervalMicros;
} | final synchronized double function() { return TimeUnit.SECONDS.toMicros(1L) / stableIntervalMicros; } | /**
* Returns the stable rate (as {@code permits per seconds}) with which this
* {@code RateLimiter} is configured with. The initial value of this is the same as
* the {@code permitsPerSecond} argument passed in the factory method that produced
* this {@code RateLimiter}, and it is only updated after invoca... | Returns the stable rate (as permits per seconds) with which this RateLimiter is configured with. The initial value of this is the same as the permitsPerSecond argument passed in the factory method that produced this RateLimiter, and it is only updated after invocations to #setRate | getRate | {
"repo_name": "user234/setyon-guava-libraries-clone",
"path": "guava/src/com/google/common/util/concurrent/RateLimiter.java",
"license": "apache-2.0",
"size": 32955
} | [
"java.util.concurrent.TimeUnit"
] | import java.util.concurrent.TimeUnit; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 1,813,491 |
EReference getActionToDoubleMap_Key(); | EReference getActionToDoubleMap_Key(); | /**
* Returns the meta object for the reference '{@link java.util.Map.Entry <em>Key</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the reference '<em>Key</em>'.
* @see java.util.Map.Entry
* @see #getActionToDoubleMap()
* @generated
*/ | Returns the meta object for the reference '<code>java.util.Map.Entry Key</code>'. | getActionToDoubleMap_Key | {
"repo_name": "turnus/turnus",
"path": "turnus.model/src/turnus/model/analysis/map/MapPackage.java",
"license": "gpl-3.0",
"size": 77072
} | [
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,534,000 |
public void paintSmallTag(Graphics g, TGPanel tgPanel, int tagX, int tagY,
Color backCol, Color textCol, char character) {
Graphics2D g2 = (Graphics2D) g;
if (SpidersGraph.antialiased) {
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.V... | void function(Graphics g, TGPanel tgPanel, int tagX, int tagY, Color backCol, Color textCol, char character) { Graphics2D g2 = (Graphics2D) g; if (SpidersGraph.antialiased) { g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); } else { g2.setRenderingHint(RenderingHints.KEY_ANTIALIA... | /**
* Paints a tag with containing a character in a small font.
*
* @param g
* the graphic.
* @param tgPanel
* the TG panel.
* @param tagX
* the tag x.
* @param tagY
* the tag y.
* @param backCol
* the ba... | Paints a tag with containing a character in a small font | paintSmallTag | {
"repo_name": "dvorka/mindraider",
"path": "mr7/src/main/java/com/touchgraph/graphlayout/Node.java",
"license": "apache-2.0",
"size": 27083
} | [
"com.emental.mindraider.ui.graph.spiders.SpidersGraph",
"java.awt.Color",
"java.awt.Graphics",
"java.awt.Graphics2D",
"java.awt.RenderingHints"
] | import com.emental.mindraider.ui.graph.spiders.SpidersGraph; import java.awt.Color; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.RenderingHints; | import com.emental.mindraider.ui.graph.spiders.*; import java.awt.*; | [
"com.emental.mindraider",
"java.awt"
] | com.emental.mindraider; java.awt; | 310,007 |
@ApiModelProperty(value = "A codec that is used to encode audio streams.")
public String getAudioCodec() {
return audioCodec;
} | @ApiModelProperty(value = STR) String function() { return audioCodec; } | /**
* A codec that is used to encode audio streams.
* @return audioCodec
**/ | A codec that is used to encode audio streams | getAudioCodec | {
"repo_name": "Telestream/telestream-cloud-java-sdk",
"path": "telestream-cloud-flip-sdk/src/main/java/net/telestream/cloud/flip/Encoding.java",
"license": "mit",
"size": 21436
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 987,348 |
public String getValue() {
if (value == null) {
value = Utils.getPreference(name);
}
//System.out.println("getValue() for " + name + " is " + value);
return value;
} | String function() { if (value == null) { value = Utils.getPreference(name); } return value; } | /**
* Returns the value that was read from the config file
* @return the value
*/ | Returns the value that was read from the config file | getValue | {
"repo_name": "damirkusar/jvoicebridge",
"path": "softphone/src/com/sun/mc/softphone/gui/config/xml/Property.java",
"license": "gpl-2.0",
"size": 5740
} | [
"com.sun.mc.softphone.common.Utils"
] | import com.sun.mc.softphone.common.Utils; | import com.sun.mc.softphone.common.*; | [
"com.sun.mc"
] | com.sun.mc; | 2,216,556 |
public void setRfcCreated(Date rfcCreated) {
this.rfcCreated = rfcCreated;
} | void function(Date rfcCreated) { this.rfcCreated = rfcCreated; } | /**
* Sets the rfc created.
*
* @param rfcCreated the new rfc created
*/ | Sets the rfc created | setRfcCreated | {
"repo_name": "gauravlall/oneops",
"path": "oneops-model/src/main/java/com/oneops/cms/dj/domain/CmsRfcCIBasic.java",
"license": "apache-2.0",
"size": 9637
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 860,680 |
public void testMoveRenameDirectoryDestinationRootSourceMissing() throws Exception {
IgfsPath dir = new IgfsPath("/" + SUBSUBDIR.name());
create(igfsSecondary, paths(DIR, SUBDIR, SUBSUBDIR), null);
create(igfs, null, null);
igfs.rename(SUBSUBDIR, dir);
checkExist(igfs, DIR... | void function() throws Exception { IgfsPath dir = new IgfsPath("/" + SUBSUBDIR.name()); create(igfsSecondary, paths(DIR, SUBDIR, SUBSUBDIR), null); create(igfs, null, null); igfs.rename(SUBSUBDIR, dir); checkExist(igfs, DIR, SUBDIR); checkExist(igfs, igfsSecondary, dir); checkNotExist(igfs, igfsSecondary, SUBSUBDIR); } | /**
* Test directory move and rename when destination is the root and source is missing.
*
* @throws Exception If failed.
*/ | Test directory move and rename when destination is the root and source is missing | testMoveRenameDirectoryDestinationRootSourceMissing | {
"repo_name": "DoudTechData/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsDualAbstractSelfTest.java",
"license": "apache-2.0",
"size": 58200
} | [
"org.apache.ignite.igfs.IgfsPath"
] | import org.apache.ignite.igfs.IgfsPath; | import org.apache.ignite.igfs.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 2,139,946 |
public static BinaryEnumObjectImpl doReadBinaryEnum(BinaryInputStream in, BinaryContext ctx) {
return doReadBinaryEnum(in, ctx, doReadEnumType(in));
} | static BinaryEnumObjectImpl function(BinaryInputStream in, BinaryContext ctx) { return doReadBinaryEnum(in, ctx, doReadEnumType(in)); } | /**
* Read binary enum.
*
* @param in Input stream.
* @param ctx Binary context.
* @return Enum.
*/ | Read binary enum | doReadBinaryEnum | {
"repo_name": "irudyak/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/binary/BinaryUtils.java",
"license": "apache-2.0",
"size": 83062
} | [
"org.apache.ignite.internal.binary.streams.BinaryInputStream"
] | import org.apache.ignite.internal.binary.streams.BinaryInputStream; | import org.apache.ignite.internal.binary.streams.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 497,540 |
@Test (groups = {"core"}, enabled = false)
public void getConnection() throws YADAConnectionException {
this.connection = ConnectionFactory.getConnectionFactory().getConnection(ConnectionFactory.YADA_APP);
} | @Test (groups = {"core"}, enabled = false) void function() throws YADAConnectionException { this.connection = ConnectionFactory.getConnectionFactory().getConnection(ConnectionFactory.YADA_APP); } | /**
* Tests {@link ConnectionFactory#getConnection(String)} by attempting to connect to the YADA Index.
* @throws YADAConnectionException when the connection can't be opened
*/ | Tests <code>ConnectionFactory#getConnection(String)</code> by attempting to connect to the YADA Index | getConnection | {
"repo_name": "Novartis/YADA",
"path": "yada-api/src/test/java/com/novartis/opensource/yada/test/ConnectionFactoryTest.java",
"license": "apache-2.0",
"size": 5501
} | [
"com.novartis.opensource.yada.ConnectionFactory",
"com.novartis.opensource.yada.YADAConnectionException",
"org.testng.annotations.Test"
] | import com.novartis.opensource.yada.ConnectionFactory; import com.novartis.opensource.yada.YADAConnectionException; import org.testng.annotations.Test; | import com.novartis.opensource.yada.*; import org.testng.annotations.*; | [
"com.novartis.opensource",
"org.testng.annotations"
] | com.novartis.opensource; org.testng.annotations; | 1,215 |
Assert.fail( "Test 'JournalService_getRecentTest.testSuccessPath()}' not implemented." );
}
| Assert.fail( STR ); } | /**
* Test succes path for service method <code>getRecent</code>
*
* Tests expected behaviour of service method.
*/ | Test succes path for service method <code>getRecent</code> Tests expected behaviour of service method | testSuccessPath | {
"repo_name": "phoenixctms/ctsms",
"path": "core/src/test/java/org/phoenixctms/ctsms/service/shared/test/JournalService_getRecentTest.java",
"license": "lgpl-2.1",
"size": 1389
} | [
"org.testng.Assert"
] | import org.testng.Assert; | import org.testng.*; | [
"org.testng"
] | org.testng; | 974,461 |
public Hook getHook() {
if (!(this.hook instanceof Hook)) {
this.hook = new Hook(this.key, this.secret, this.version, this.storage);
}
return this.hook;
} | Hook function() { if (!(this.hook instanceof Hook)) { this.hook = new Hook(this.key, this.secret, this.version, this.storage); } return this.hook; } | /**
* Instantiates Hook
*
* @see com.veridu.endpoint.Hook
* @return hook Hook
* @see <a href="https://veridu.com/wiki/Hook_Resource">Hook Resource</a>
*/ | Instantiates Hook | getHook | {
"repo_name": "veridu/veridu-java",
"path": "src/main/java/com/veridu/API.java",
"license": "mit",
"size": 14252
} | [
"com.veridu.endpoint.Hook"
] | import com.veridu.endpoint.Hook; | import com.veridu.endpoint.*; | [
"com.veridu.endpoint"
] | com.veridu.endpoint; | 645,588 |
@Column(name="city")
public String getCity() {
return m_city;
} | @Column(name="city") String function() { return m_city; } | /**
*--# city : The city where this asset resides.
*
* @return a {@link java.lang.String} object.
*/ | --# city : The city where this asset resides | getCity | {
"repo_name": "aihua/opennms",
"path": "opennms-model/src/main/java/org/opennms/netmgt/model/OnmsGeolocation.java",
"license": "agpl-3.0",
"size": 7394
} | [
"javax.persistence.Column"
] | import javax.persistence.Column; | import javax.persistence.*; | [
"javax.persistence"
] | javax.persistence; | 2,493,121 |
public void begin(String namespaceURI, String name, Attributes attributes)
throws Exception {
XMLReader xmlReader = getDigester().getXMLReader();
Document doc = documentBuilder.newDocument();
NodeBuilder builder = null;
if (nodeType == Node.ELEMENT_NODE) {
Elemen... | void function(String namespaceURI, String name, Attributes attributes) throws Exception { XMLReader xmlReader = getDigester().getXMLReader(); Document doc = documentBuilder.newDocument(); NodeBuilder builder = null; if (nodeType == Node.ELEMENT_NODE) { Element element = null; if (getDigester().getNamespaceAware()) { el... | /**
* Implemented to replace the content handler currently in use by a
* NodeBuilder.
*
* @param namespaceURI the namespace URI of the matching element, or an
* empty string if the parser is not namespace aware or the element has
* no namespace
* @param name the local name if t... | Implemented to replace the content handler currently in use by a NodeBuilder | begin | {
"repo_name": "plumer/codana",
"path": "tomcat_files/6.0.43/NodeCreateRule.java",
"license": "mit",
"size": 15078
} | [
"org.w3c.dom.Document",
"org.w3c.dom.Element",
"org.w3c.dom.Node",
"org.xml.sax.Attributes",
"org.xml.sax.XMLReader"
] | import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.xml.sax.Attributes; import org.xml.sax.XMLReader; | import org.w3c.dom.*; import org.xml.sax.*; | [
"org.w3c.dom",
"org.xml.sax"
] | org.w3c.dom; org.xml.sax; | 511,378 |
public final void set(int i, double newValue) {
long next = doubleToRawLongBits(newValue);
longs.set(i, next);
} | final void function(int i, double newValue) { long next = doubleToRawLongBits(newValue); longs.set(i, next); } | /**
* Sets the element at position {@code i} to the given value.
*
* @param i the index
* @param newValue the new value
*/ | Sets the element at position i to the given value | set | {
"repo_name": "berndhopp/guava",
"path": "guava/src/com/google/common/util/concurrent/AtomicDoubleArray.java",
"license": "apache-2.0",
"size": 7993
} | [
"java.lang.Double"
] | import java.lang.Double; | import java.lang.*; | [
"java.lang"
] | java.lang; | 2,382,311 |
@Test
public void testBlockIdCK() throws Exception {
final short REPL_FACTOR = 2;
short NUM_DN = 2;
final long blockSize = 512;
String [] racks = {"/rack1", "/rack2"};
String [] hosts = {"host1", "host2"};
Configuration conf = new Configuration();
conf.setLong(DFSConfigKeys.DFS_BLOCK_... | void function() throws Exception { final short REPL_FACTOR = 2; short NUM_DN = 2; final long blockSize = 512; String [] racks = {STR, STR}; String [] hosts = {"host1", "host2"}; Configuration conf = new Configuration(); conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, blockSize); conf.setInt(DFSConfigKeys.DFS_REPLICATION... | /**
* Test for blockIdCK
*/ | Test for blockIdCK | testBlockIdCK | {
"repo_name": "Microsoft-CISL/hadoop-prototype",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java",
"license": "apache-2.0",
"size": 66364
} | [
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.fs.Path",
"org.apache.hadoop.hdfs.DFSConfigKeys",
"org.apache.hadoop.hdfs.DFSTestUtil",
"org.apache.hadoop.hdfs.DistributedFileSystem",
"org.apache.hadoop.hdfs.MiniDFSCluster",
"org.apache.hadoop.hdfs.protocol.LocatedBlock",
"org.junit.Assert"... | import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.DFSTestUtil; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.hdfs.protocol.LocatedBlock; i... | import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.protocol.*; import org.junit.*; | [
"org.apache.hadoop",
"org.junit"
] | org.apache.hadoop; org.junit; | 1,744,423 |
public Builder type(final ServerType type) {
this.type = notNull("type", type);
return this;
} | Builder function(final ServerType type) { this.type = notNull("type", type); return this; } | /**
* Sets the type of the server, for example whether it's a standalone or in a replica set.
*
* @param type the Server type
* @return this
*/ | Sets the type of the server, for example whether it's a standalone or in a replica set | type | {
"repo_name": "jyemin/mongo-java-driver",
"path": "driver-core/src/main/com/mongodb/connection/ServerDescription.java",
"license": "apache-2.0",
"size": 36290
} | [
"com.mongodb.assertions.Assertions"
] | import com.mongodb.assertions.Assertions; | import com.mongodb.assertions.*; | [
"com.mongodb.assertions"
] | com.mongodb.assertions; | 2,665,282 |
public TileDao getTileDao(TileMatrixSet tileMatrixSet); | TileDao function(TileMatrixSet tileMatrixSet); | /**
* Get a Tile DAO from Tile Matrix Set
*
* @param tileMatrixSet
* @return
*/ | Get a Tile DAO from Tile Matrix Set | getTileDao | {
"repo_name": "boundlessgeo/geopackage-android",
"path": "geopackage-sdk/src/main/java/mil/nga/geopackage/GeoPackage.java",
"license": "mit",
"size": 1398
} | [
"mil.nga.geopackage.tiles.matrixset.TileMatrixSet",
"mil.nga.geopackage.tiles.user.TileDao"
] | import mil.nga.geopackage.tiles.matrixset.TileMatrixSet; import mil.nga.geopackage.tiles.user.TileDao; | import mil.nga.geopackage.tiles.matrixset.*; import mil.nga.geopackage.tiles.user.*; | [
"mil.nga.geopackage"
] | mil.nga.geopackage; | 1,127,855 |
public LegendItemCollection getLegendItems() {
LegendItemCollection result = new LegendItemCollection();
List keys = null;
if (this.dataExtractOrder == TableOrder.BY_ROW) {
keys = this.dataset.getRowKeys();
}
else if (this.dataExtractOrder == TableOrder.BY_COLUM... | LegendItemCollection function() { LegendItemCollection result = new LegendItemCollection(); List keys = null; if (this.dataExtractOrder == TableOrder.BY_ROW) { keys = this.dataset.getRowKeys(); } else if (this.dataExtractOrder == TableOrder.BY_COLUMN) { keys = this.dataset.getColumnKeys(); } if (keys != null) { int ser... | /**
* Returns a collection of legend items for the radar chart.
*
* @return The legend items.
*/ | Returns a collection of legend items for the radar chart | getLegendItems | {
"repo_name": "ibestvina/multithread-centiscape",
"path": "CentiScaPe2.1/src/main/java/org/jfree/chart/plot/SpiderWebPlot.java",
"license": "mit",
"size": 54986
} | [
"java.awt.Paint",
"java.awt.Shape",
"java.awt.Stroke",
"java.util.Iterator",
"java.util.List",
"org.jfree.chart.LegendItem",
"org.jfree.chart.LegendItemCollection",
"org.jfree.util.TableOrder"
] | import java.awt.Paint; import java.awt.Shape; import java.awt.Stroke; import java.util.Iterator; import java.util.List; import org.jfree.chart.LegendItem; import org.jfree.chart.LegendItemCollection; import org.jfree.util.TableOrder; | import java.awt.*; import java.util.*; import org.jfree.chart.*; import org.jfree.util.*; | [
"java.awt",
"java.util",
"org.jfree.chart",
"org.jfree.util"
] | java.awt; java.util; org.jfree.chart; org.jfree.util; | 346,257 |
boolean persistConfiguration(@Nonnull ResourceResolver resourceResolver,
@Nonnull String configResourcePath, @Nonnull ConfigurationPersistData data); | boolean persistConfiguration(@Nonnull ResourceResolver resourceResolver, @Nonnull String configResourcePath, @Nonnull ConfigurationPersistData data); | /**
* Stores configuration data for a singleton configuration resource.
* The changes are written using the given resource resolver. They are not committed, this is left to the caller.
* @param resourceResolver Resource resolver
* @param configResourcePath Path to store configuration data to. The re... | Stores configuration data for a singleton configuration resource. The changes are written using the given resource resolver. They are not committed, this is left to the caller | persistConfiguration | {
"repo_name": "cleliameneghin/sling",
"path": "bundles/extensions/caconfig/spi/src/main/java/org/apache/sling/caconfig/spi/ConfigurationPersistenceStrategy.java",
"license": "apache-2.0",
"size": 4815
} | [
"javax.annotation.Nonnull",
"org.apache.sling.api.resource.ResourceResolver"
] | import javax.annotation.Nonnull; import org.apache.sling.api.resource.ResourceResolver; | import javax.annotation.*; import org.apache.sling.api.resource.*; | [
"javax.annotation",
"org.apache.sling"
] | javax.annotation; org.apache.sling; | 1,057,730 |
public CameraNode toCamera(Structure structure) throws BlenderFileException {
CameraHelper cameraHelper = blenderContext.getHelper(CameraHelper.class);
if (cameraHelper.shouldBeLoaded(structure, blenderContext)) {
return cameraHelper.toCamera(structure, blenderContext);
}
... | CameraNode function(Structure structure) throws BlenderFileException { CameraHelper cameraHelper = blenderContext.getHelper(CameraHelper.class); if (cameraHelper.shouldBeLoaded(structure, blenderContext)) { return cameraHelper.toCamera(structure, blenderContext); } return null; } | /**
* This method converts the given structure to a camera.
* @param structure
* structure of a camera
* @return camera's node
*/ | This method converts the given structure to a camera | toCamera | {
"repo_name": "PlanetWaves/clockworkengine",
"path": "branches/3.0/engine/src/blender/com/clockwork/scene/plugins/blender/AbstractBlenderLoader.java",
"license": "apache-2.0",
"size": 6695
} | [
"com.clockwork.scene.CameraNode",
"com.clockwork.scene.plugins.blender.cameras.CameraHelper",
"com.clockwork.scene.plugins.blender.exceptions.BlenderFileException",
"com.clockwork.scene.plugins.blender.file.Structure"
] | import com.clockwork.scene.CameraNode; import com.clockwork.scene.plugins.blender.cameras.CameraHelper; import com.clockwork.scene.plugins.blender.exceptions.BlenderFileException; import com.clockwork.scene.plugins.blender.file.Structure; | import com.clockwork.scene.*; import com.clockwork.scene.plugins.blender.cameras.*; import com.clockwork.scene.plugins.blender.exceptions.*; import com.clockwork.scene.plugins.blender.file.*; | [
"com.clockwork.scene"
] | com.clockwork.scene; | 2,364,758 |
EAttribute getDrawerStyle_Collapsed(); | EAttribute getDrawerStyle_Collapsed(); | /**
* Returns the meta object for the attribute '{@link org.eclipse.gmf.runtime.notation.DrawerStyle#isCollapsed <em>Collapsed</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Collapsed</em>'.
* @see org.eclipse.gmf.runtime.notation.DrawerStyle#isColla... | Returns the meta object for the attribute '<code>org.eclipse.gmf.runtime.notation.DrawerStyle#isCollapsed Collapsed</code>'. | getDrawerStyle_Collapsed | {
"repo_name": "ghillairet/gmf-tooling-gwt-runtime",
"path": "org.eclipse.gmf.runtime.notation.gwt/src/org/eclipse/gmf/runtime/notation/NotationPackage.java",
"license": "epl-1.0",
"size": 270096
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 132,815 |
public Algorithm configure() throws JMException {
Algorithm algorithm ;
Operator crossover ; // Crossover operator
Operator mutation ; // Mutation operator
Operator selection ; // Selection operator
HashMap parameters ; // Operator parameters
// Creating the prob... | Algorithm function() throws JMException { Algorithm algorithm ; Operator crossover ; Operator mutation ; Operator selection ; HashMap parameters ; algorithm = new SPEA2(problem_) ; algorithm.setInputParameter(STR, populationSize_); algorithm.setInputParameter(STR, archiveSize_); algorithm.setInputParameter(STR, maxEval... | /**
* Configure SPEA2 with default parameter experiments.settings
* @return an algorithm object
* @throws jmetal.util.JMException
*/ | Configure SPEA2 with default parameter experiments.settings | configure | {
"repo_name": "tiagojoao/abycss",
"path": "jmetal/experiments/settings/SPEA2_Settings.java",
"license": "gpl-2.0",
"size": 6779
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 597,977 |
public List<PostDTO> getListPosts(Integer first, Integer max, Integer companyId);
| List<PostDTO> function(Integer first, Integer max, Integer companyId); | /**
* Gets the list posts.
*
* @param first the first
* @param max the max
* @param companyId the company id
* @return the list posts
*/ | Gets the list posts | getListPosts | {
"repo_name": "aholake/hiringviet",
"path": "src/main/java/vn/com/hiringviet/dao/CompanyDAO.java",
"license": "apache-2.0",
"size": 1912
} | [
"java.util.List",
"vn.com.hiringviet.dto.PostDTO"
] | import java.util.List; import vn.com.hiringviet.dto.PostDTO; | import java.util.*; import vn.com.hiringviet.dto.*; | [
"java.util",
"vn.com.hiringviet"
] | java.util; vn.com.hiringviet; | 2,174,145 |
private DataType getLiteralDataType(Expression exp) {
for (Expression expr : exp.getChildren()) {
if (expr instanceof LiteralExpression) {
return (((LiteralExpression) expr).getLiteralExpDataType());
}
}
return null;
} | DataType function(Expression exp) { for (Expression expr : exp.getChildren()) { if (expr instanceof LiteralExpression) { return (((LiteralExpression) expr).getLiteralExpDataType()); } } return null; } | /**
* This method returns the DataType of the Literal Expression.
*
* @param exp
* @return
*/ | This method returns the DataType of the Literal Expression | getLiteralDataType | {
"repo_name": "jackylk/incubator-carbondata",
"path": "core/src/main/java/org/apache/carbondata/core/scan/expression/RangeExpressionEvaluator.java",
"license": "apache-2.0",
"size": 18470
} | [
"org.apache.carbondata.core.metadata.datatype.DataType"
] | import org.apache.carbondata.core.metadata.datatype.DataType; | import org.apache.carbondata.core.metadata.datatype.*; | [
"org.apache.carbondata"
] | org.apache.carbondata; | 1,892,864 |
public static void checkArgument(
boolean b, @Nullable String errorMessageTemplate, int p1, char p2) {
if (!b) {
throw new IllegalArgumentException(format(errorMessageTemplate, p1, p2));
}
} | static void function( boolean b, @Nullable String errorMessageTemplate, int p1, char p2) { if (!b) { throw new IllegalArgumentException(format(errorMessageTemplate, p1, p2)); } } | /**
* Ensures the truth of an expression involving one or more parameters to the calling method.
*
* <p>See {@link #checkArgument(boolean, String, Object...)} for details.
*/ | Ensures the truth of an expression involving one or more parameters to the calling method. See <code>#checkArgument(boolean, String, Object...)</code> for details | checkArgument | {
"repo_name": "jakubmalek/guava",
"path": "guava/src/com/google/common/base/Preconditions.java",
"license": "apache-2.0",
"size": 51675
} | [
"javax.annotation.Nullable"
] | import javax.annotation.Nullable; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 1,514,775 |
public void setInvoiceItemQuantity(BigDecimal invoiceItemQuantity) {
this.invoiceItemQuantity = invoiceItemQuantity;
}
| void function(BigDecimal invoiceItemQuantity) { this.invoiceItemQuantity = invoiceItemQuantity; } | /**
* Sets the invoiceItemQuantity attribute.
*
* @param invoiceItemQuantity The invoiceItemQuantity to set.
*/ | Sets the invoiceItemQuantity attribute | setInvoiceItemQuantity | {
"repo_name": "ua-eas/ua-kfs-5.3",
"path": "work/src/org/kuali/kfs/module/ar/businessobject/CustomerInvoiceDetail.java",
"license": "agpl-3.0",
"size": 33819
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 1,443,107 |
void setDatumLetzterStadtbesitz(final Date datumLetzterStadtbesitz); | void setDatumLetzterStadtbesitz(final Date datumLetzterStadtbesitz); | /**
* DOCUMENT ME!
*
* @param datumLetzterStadtbesitz DOCUMENT ME!
*/ | DOCUMENT ME | setDatumLetzterStadtbesitz | {
"repo_name": "cismet/lagis-client",
"path": "src/main/java/de/cismet/lagisEE/entity/core/FlurstueckSchluessel.java",
"license": "gpl-3.0",
"size": 6597
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 2,404,444 |
public static java.util.Set extractPatTreatmentPlanDoseSet(ims.domain.ILightweightDomainFactory domainFactory, ims.dtomove.vo.PatTreatPlanActionDoseVoCollection voCollection)
{
return extractPatTreatmentPlanDoseSet(domainFactory, voCollection, null, new HashMap());
}
| static java.util.Set function(ims.domain.ILightweightDomainFactory domainFactory, ims.dtomove.vo.PatTreatPlanActionDoseVoCollection voCollection) { return extractPatTreatmentPlanDoseSet(domainFactory, voCollection, null, new HashMap()); } | /**
* Create the ims.oncology.domain.objects.PatTreatmentPlanDose set from the value object collection.
* @param domainFactory - used to create existing (persistent) domain objects.
* @param voCollection - the collection of value objects
*/ | Create the ims.oncology.domain.objects.PatTreatmentPlanDose set from the value object collection | extractPatTreatmentPlanDoseSet | {
"repo_name": "FreudianNM/openMAXIMS",
"path": "Source Library/openmaxims_workspace/ValueObjects/src/ims/dtomove/vo/domain/PatTreatPlanActionDoseVoAssembler.java",
"license": "agpl-3.0",
"size": 17901
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 2,806,553 |
protected void notifyNamespaceAdded(String prefix, String uri) {
if (listeners == null) {
throw new UnsupportedOperationException("notifyNamespaceAdded");
}
// addition is infrequent compared to listener registration
// -> use copy-on-read
NamespaceListener[] curr... | void function(String prefix, String uri) { if (listeners == null) { throw new UnsupportedOperationException(STR); } NamespaceListener[] currentListeners; synchronized (listeners) { int i = 0; currentListeners = new NamespaceListener[listeners.size()]; for (Iterator it = listeners.iterator(); it.hasNext();) { currentLis... | /**
* Notifies the listeners that a new namespace <code>uri</code> has been
* added and mapped to <code>prefix</code>.
*
* @param prefix the prefix.
* @param uri the namespace uri.
*/ | Notifies the listeners that a new namespace <code>uri</code> has been added and mapped to <code>prefix</code> | notifyNamespaceAdded | {
"repo_name": "sdmcraft/jackrabbit",
"path": "jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/namespace/AbstractNamespaceResolver.java",
"license": "apache-2.0",
"size": 6817
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 463,096 |
@Test
public void testPRCqWithUpdatesFromClients() throws Exception {
final Host host = Host.getHost(0);
VM server1 = host.getVM(0);
VM server2 = host.getVM(1);
VM client = host.getVM(2);
VM client2 = host.getVM(3);
// creating cache server with data store. clients will connect to this
... | void function() throws Exception { final Host host = Host.getHost(0); VM server1 = host.getVM(0); VM server2 = host.getVM(1); VM client = host.getVM(2); VM client2 = host.getVM(3); createServer(server1, false, 1); createServer(server2, false, 1); final int port = server1.invoke(() -> PartitionedRegionCqQueryDUnitTest.g... | /**
* test cqs with create updates and destroys from client on cache server hosting datastores.
*/ | test cqs with create updates and destroys from client on cache server hosting datastores | testPRCqWithUpdatesFromClients | {
"repo_name": "pdxrunner/geode",
"path": "geode-cq/src/distributedTest/java/org/apache/geode/cache/query/cq/dunit/PartitionedRegionCqQueryDUnitTest.java",
"license": "apache-2.0",
"size": 52388
} | [
"org.apache.geode.test.dunit.Host",
"org.apache.geode.test.dunit.NetworkUtils"
] | import org.apache.geode.test.dunit.Host; import org.apache.geode.test.dunit.NetworkUtils; | import org.apache.geode.test.dunit.*; | [
"org.apache.geode"
] | org.apache.geode; | 2,145,724 |
private void disableAndReportErrorOnJournals(List<JournalAndStream> badJournals) {
if (badJournals == null || badJournals.isEmpty()) {
return; // nothing to do
}
for (JournalAndStream j : badJournals) {
LOG.error("Disabling journal " + j);
j.abort();
j.setDisabled(true);
}
... | void function(List<JournalAndStream> badJournals) { if (badJournals == null badJournals.isEmpty()) { return; } for (JournalAndStream j : badJournals) { LOG.error(STR + j); j.abort(); j.setDisabled(true); } } | /**
* Called when some journals experience an error in some operation.
*/ | Called when some journals experience an error in some operation | disableAndReportErrorOnJournals | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/JournalSet.java",
"license": "apache-2.0",
"size": 24926
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 294,093 |
@Test
public void testExpandedDefault() throws Exception {
DefaultConfiguration checkConfig = createCheckConfig(SuppressWarningsCheck.class);
final String[] expected = {
"8:30: " + getCheckMessage(MSG_KEY_SUPPRESSED_WARNING_NOT_ALLOWED, " "),
"11:47: " + getCheckMessag... | void function() throws Exception { DefaultConfiguration checkConfig = createCheckConfig(SuppressWarningsCheck.class); final String[] expected = { STR + getCheckMessage(MSG_KEY_SUPPRESSED_WARNING_NOT_ALLOWED, " "), STR + getCheckMessage(MSG_KEY_SUPPRESSED_WARNING_NOT_ALLOWED, STR44:29: " + getCheckMessage(MSG_KEY_SUPPRE... | /**
* Tests SuppressWarnings with default regex.
* @throws Exception
*/ | Tests SuppressWarnings with default regex | testExpandedDefault | {
"repo_name": "naver/checkstyle",
"path": "src/test/java/com/puppycrawl/tools/checkstyle/checks/annotation/SuppressWarningsCheckTest.java",
"license": "lgpl-2.1",
"size": 52680
} | [
"com.puppycrawl.tools.checkstyle.DefaultConfiguration"
] | import com.puppycrawl.tools.checkstyle.DefaultConfiguration; | import com.puppycrawl.tools.checkstyle.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 1,337,893 |
public void storeColumnDefinitions(FQLQuery query, List<ResultHandler.ComparableColumnDefinitions> cds)
{
finishedHosts.clear();
if (queryStoreAppender != null)
{
BinLog.ReleaseableWriteMarshallable writeMarshallableQuery = query.toMarshallable();
queryStoreAppend... | void function(FQLQuery query, List<ResultHandler.ComparableColumnDefinitions> cds) { finishedHosts.clear(); if (queryStoreAppender != null) { BinLog.ReleaseableWriteMarshallable writeMarshallableQuery = query.toMarshallable(); queryStoreAppender.writeDocument(writeMarshallableQuery); writeMarshallableQuery.release(); }... | /**
* Store the column definitions in cds
*
* the ColumnDefinitions at position x will get stored by the appender at position x
*
* Calling this method indicates that we are starting a new result set from a query, it must be called before
* calling storeRows.
*
*/ | Store the column definitions in cds the ColumnDefinitions at position x will get stored by the appender at position x Calling this method indicates that we are starting a new result set from a query, it must be called before calling storeRows | storeColumnDefinitions | {
"repo_name": "belliottsmith/cassandra",
"path": "tools/fqltool/src/org/apache/cassandra/fqltool/ResultStore.java",
"license": "apache-2.0",
"size": 9882
} | [
"java.util.List",
"org.apache.cassandra.utils.binlog.BinLog"
] | import java.util.List; import org.apache.cassandra.utils.binlog.BinLog; | import java.util.*; import org.apache.cassandra.utils.binlog.*; | [
"java.util",
"org.apache.cassandra"
] | java.util; org.apache.cassandra; | 219,998 |
@SuppressWarnings("unchecked")
public static Map<String, String> deserializeOffsetMap(String lastSourceOffset) throws IOException {
Map<String, String> offsetMap;
if (lastSourceOffset == null || lastSourceOffset.isEmpty()) {
offsetMap = new HashMap<>();
} else {
offsetMap = JSON_MAPPER.readV... | @SuppressWarnings(STR) static Map<String, String> function(String lastSourceOffset) throws IOException { Map<String, String> offsetMap; if (lastSourceOffset == null lastSourceOffset.isEmpty()) { offsetMap = new HashMap<>(); } else { offsetMap = JSON_MAPPER.readValue(lastSourceOffset, Map.class); } return offsetMap; } | /**
* Deserialize String offset to Map of table to offset
* @param lastSourceOffset Serialized offset String
* @return Map of table to lastOffset
* @throws StageException When Deserialization exception happens
*/ | Deserialize String offset to Map of table to offset | deserializeOffsetMap | {
"repo_name": "rockmkd/datacollector",
"path": "stagesupport/src/main/java/com/streamsets/pipeline/lib/util/OffsetUtil.java",
"license": "apache-2.0",
"size": 2040
} | [
"java.io.IOException",
"java.util.HashMap",
"java.util.Map"
] | import java.io.IOException; import java.util.HashMap; import java.util.Map; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 1,241,827 |
public void parse(boolean NS)
throws EncodingException, EOFException, EntityException, ParseException {
// define internal variables
ns = NS;
//String s1 = null,s2=null;
length1 = length2 = 0;
attr_count = prefixed_attr_count= 0 ;
int parser_state = STATE_DOC_START;
//boolean has_amp = false;
is... | void function(boolean NS) throws EncodingException, EOFException, EntityException, ParseException { ns = NS; length1 = length2 = 0; attr_count = prefixed_attr_count= 0 ; int parser_state = STATE_DOC_START; is_ns = false; encoding = FORMAT_UTF8; helper=false; default_ns = false; isXML = false; singleByteEncoding = true;... | /**
* Generating VTD tokens and Location cache info. When set to true,
* VTDGen conforms to XML namespace 1.0 spec
* @param NS boolean Enable namespace or not
* @throws ParseException Super class for any exceptions during parsing.
* @throws EOFException End of file exception.
* @throws EntityExcept... | Generating VTD tokens and Location cache info. When set to true, VTDGen conforms to XML namespace 1.0 spec | parse | {
"repo_name": "CoolBalance/vtd-xml",
"path": "src/main/java/com/ximpleware/VTDGen.java",
"license": "gpl-2.0",
"size": 146974
} | [
"com.ximpleware.parser.XMLChar"
] | import com.ximpleware.parser.XMLChar; | import com.ximpleware.parser.*; | [
"com.ximpleware.parser"
] | com.ximpleware.parser; | 2,353,931 |
@Override
void prepare() throws IOException;
/**
* Returns true iff the next data model object exists,
* and then the {@link #get()} method returns its object.
* This operation can execute only on the same thread as created this object.
* @return {@code true} if the next data model obje... | void prepare() throws IOException; /** * Returns true iff the next data model object exists, * and then the {@link #get()} method returns its object. * This operation can execute only on the same thread as created this object. * @return {@code true} if the next data model object exists, otherwise {@code false} | /**
* Prepares this driver to invoke {@link #next()} method.
* This method will be invoked before {@link #next()} only once.
* This operation can execute only on the same thread as created this object.
* @throws IOException if failed to begi
*/ | Prepares this driver to invoke <code>#next()</code> method. This method will be invoked before <code>#next()</code> only once. This operation can execute only on the same thread as created this object | prepare | {
"repo_name": "asakusafw/asakusafw",
"path": "windgate-project/asakusa-windgate-core/src/main/java/com/asakusafw/windgate/core/resource/SourceDriver.java",
"license": "apache-2.0",
"size": 2347
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 2,285,206 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.