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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
@Override
public void mouseClicked() {
if (applet.mouseX > 28 && applet.mouseX < 192 && applet.mouseY > 341 && applet.mouseY < 459)
applet.setScreen(new Bumple(applet));
if (applet.mouseX > 213 && applet.mouseX < 367 && applet.mouseY > 341 && applet.mouseY < 459)
applet.s... | void function() { if (applet.mouseX > 28 && applet.mouseX < 192 && applet.mouseY > 341 && applet.mouseY < 459) applet.setScreen(new Bumple(applet)); if (applet.mouseX > 213 && applet.mouseX < 367 && applet.mouseY > 341 && applet.mouseY < 459) applet.setScreen(new TitleScreen(applet)); } | /**
* Binds the mouse click to the beginning of a game, if its position is on the play button, and to the title screen if it's on the main menu button.
*/ | Binds the mouse click to the beginning of a game, if its position is on the play button, and to the title screen if it's on the main menu button | mouseClicked | {
"repo_name": "pmenage/bumple-game",
"path": "src/com/paulinemenage/bumple/GameOverScreen.java",
"license": "mit",
"size": 2567
} | [
"com.paulinemenage.bumple.game.Bumple"
] | import com.paulinemenage.bumple.game.Bumple; | import com.paulinemenage.bumple.game.*; | [
"com.paulinemenage.bumple"
] | com.paulinemenage.bumple; | 1,444,781 |
@RequestMapping(value = "/findItems", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
@Timed
public FindItemParentType findItems(@RequestParam String folderId) {
log.debug("REST request to get all Users");
return facade.findItem(folderId);
} | @RequestMapping(value = STR, method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE) FindItemParentType function(@RequestParam String folderId) { log.debug(STR); return facade.findItem(folderId); } | /**
* GET /users -> get all users.
*/ | GET /users -> get all users | findItems | {
"repo_name": "t4gedieb/ews-client",
"path": "src/main/java/ews/client/web/rest/ExchangeResource.java",
"license": "apache-2.0",
"size": 2205
} | [
"org.springframework.http.MediaType",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.RequestMethod",
"org.springframework.web.bind.annotation.RequestParam"
] | import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RequestParam; | import org.springframework.http.*; import org.springframework.web.bind.annotation.*; | [
"org.springframework.http",
"org.springframework.web"
] | org.springframework.http; org.springframework.web; | 2,350,138 |
@Override
public synchronized void connectorRemoved() {
LOGGER.info("Dropping connector: " + name);
try {
resetBatch();
if (instanceInfo != null) {
File connectorDir = instanceInfo.getConnectorDir();
shutdownConnector(true);
removeConnectorDirectory(connectorDir);
}... | synchronized void function() { LOGGER.info(STR + name); try { resetBatch(); if (instanceInfo != null) { File connectorDir = instanceInfo.getConnectorDir(); shutdownConnector(true); removeConnectorDirectory(connectorDir); } } finally { instanceInfo = null; typeInfo = null; traversalSchedule = null; traversalDelayEnd = 0... | /**
* Removes this {@link Connector} instance. Halts traversals,
* removes the Connector instance from the known connectors,
* and removes the Connector's on-disk representation.
*/ | Removes this <code>Connector</code> instance. Halts traversals, removes the Connector instance from the known connectors, and removes the Connector's on-disk representation | connectorRemoved | {
"repo_name": "googlegsa/manager.v3",
"path": "projects/connector-manager/source/java/com/google/enterprise/connector/instantiator/ConnectorCoordinatorImpl.java",
"license": "apache-2.0",
"size": 47944
} | [
"com.google.enterprise.connector.spi.AuthenticationManager",
"com.google.enterprise.connector.spi.Connector",
"java.io.File"
] | import com.google.enterprise.connector.spi.AuthenticationManager; import com.google.enterprise.connector.spi.Connector; import java.io.File; | import com.google.enterprise.connector.spi.*; import java.io.*; | [
"com.google.enterprise",
"java.io"
] | com.google.enterprise; java.io; | 1,736,745 |
public void init (Shell shell)
throws IOException
{
// create our context
_ctx = createContextImpl();
// create the directors/managers/etc. provided by the context
createContextServices();
// keep this for later
_shell = shell;
// load up our us... | void function (Shell shell) throws IOException { _ctx = createContextImpl(); createContextServices(); _shell = shell; CardBoxUI.init(_ctx); initFonts(); String title = _ctx.xlate(CardBoxCodes.TOYBOX_MSGS, STR); try { title = System.getProperty(STR, title); } catch (SecurityException se) { } _shell.setTitle(title); _she... | /**
* Initializes a new client and provides it with a frame in which to display everything.
*/ | Initializes a new client and provides it with a frame in which to display everything | init | {
"repo_name": "house13/CardBox",
"path": "projects/cardbox/src/main/java/com/hextilla/cardbox/client/CardBoxClient.java",
"license": "lgpl-2.1",
"size": 15434
} | [
"com.hextilla.cardbox.data.CardBoxCodes",
"com.threerings.util.KeyDispatcher",
"java.io.IOException"
] | import com.hextilla.cardbox.data.CardBoxCodes; import com.threerings.util.KeyDispatcher; import java.io.IOException; | import com.hextilla.cardbox.data.*; import com.threerings.util.*; import java.io.*; | [
"com.hextilla.cardbox",
"com.threerings.util",
"java.io"
] | com.hextilla.cardbox; com.threerings.util; java.io; | 1,337,016 |
public String export() {
List<Integer> screenIDList = GeneralUtils.createIntegerListFromString(selectedScreenIDs);
String fileName=ScreenExporter.getExportFileName(screenIDList);
DownloadUtil.prepareResponse(ServletActionContext.getRequest(),
servletResponse, fileName, "text/xml");
OutputStream outputStr... | String function() { List<Integer> screenIDList = GeneralUtils.createIntegerListFromString(selectedScreenIDs); String fileName=ScreenExporter.getExportFileName(screenIDList); DownloadUtil.prepareResponse(ServletActionContext.getRequest(), servletResponse, fileName, STR); OutputStream outputStream = null; try { outputStr... | /**
* Export the selected screens into an xml file
* @return
*/ | Export the selected screens into an xml file | export | {
"repo_name": "trackplus/Genji",
"path": "src/main/java/com/aurel/track/admin/customize/treeConfig/screen/ScreenAssignmentAction.java",
"license": "gpl-3.0",
"size": 5951
} | [
"com.aurel.track.configExchange.exporter.EntityContext",
"com.aurel.track.configExchange.exporter.EntityExporter",
"com.aurel.track.configExchange.exporter.EntityExporterException",
"com.aurel.track.configExchange.impl.ScreenExporter",
"com.aurel.track.util.DownloadUtil",
"com.aurel.track.util.GeneralUtil... | import com.aurel.track.configExchange.exporter.EntityContext; import com.aurel.track.configExchange.exporter.EntityExporter; import com.aurel.track.configExchange.exporter.EntityExporterException; import com.aurel.track.configExchange.impl.ScreenExporter; import com.aurel.track.util.DownloadUtil; import com.aurel.track... | import com.aurel.track.*; import com.aurel.track.util.*; import java.io.*; import java.util.*; import org.apache.commons.lang3.exception.*; import org.apache.struts2.*; | [
"com.aurel.track",
"java.io",
"java.util",
"org.apache.commons",
"org.apache.struts2"
] | com.aurel.track; java.io; java.util; org.apache.commons; org.apache.struts2; | 338,498 |
protected void copyProjectAction(ProjectRootNode oldProjectNode, String newName) {
final Ode ode = Ode.getInstance();
| void function(ProjectRootNode oldProjectNode, String newName) { final Ode ode = Ode.getInstance(); | /**
* Copies a project and gives it a new name.
*
* @param newName the new project name
*/ | Copies a project and gives it a new name | copyProjectAction | {
"repo_name": "be1be1/appinventor-polyu",
"path": "appinventor/appengine/src/com/google/appinventor/client/explorer/commands/CopyYoungAndroidProjectCommand.java",
"license": "apache-2.0",
"size": 9724
} | [
"com.google.appinventor.client.Ode",
"com.google.appinventor.shared.rpc.project.ProjectRootNode"
] | import com.google.appinventor.client.Ode; import com.google.appinventor.shared.rpc.project.ProjectRootNode; | import com.google.appinventor.client.*; import com.google.appinventor.shared.rpc.project.*; | [
"com.google.appinventor"
] | com.google.appinventor; | 2,837,392 |
public static String[] getNames(JSONObject jo) {
int length = jo.length();
if (length == 0) {
return null;
}
Iterator iterator = jo.keys();
String[] names = new String[length];
int i = 0;
while (iterator.hasNext()) {
names[i] = (String)... | static String[] function(JSONObject jo) { int length = jo.length(); if (length == 0) { return null; } Iterator iterator = jo.keys(); String[] names = new String[length]; int i = 0; while (iterator.hasNext()) { names[i] = (String) iterator.next(); i += 1; } return names; } | /**
* Get an array of field names from a JSONObject.
*
* @return An array of field names, or null if there are no names.
*/ | Get an array of field names from a JSONObject | getNames | {
"repo_name": "stephanmitchev/couchbase-to-oracle",
"path": "src/org/json/JSONObject.java",
"license": "gpl-2.0",
"size": 55920
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,480,141 |
public ClusterHealthStatus ensureGreen(String... indices) {
return ensureGreen(TimeValue.timeValueSeconds(30), indices);
}
/**
* Ensures the cluster has a green state via the cluster health API. This method will also wait for relocations.
* It is useful to ensure that all action on the c... | ClusterHealthStatus function(String... indices) { return ensureGreen(TimeValue.timeValueSeconds(30), indices); } /** * Ensures the cluster has a green state via the cluster health API. This method will also wait for relocations. * It is useful to ensure that all action on the cluster have finished and all shards that w... | /**
* Ensures the cluster has a green state via the cluster health API. This method will also wait for relocations.
* It is useful to ensure that all action on the cluster have finished and all shards that were currently relocating
* are now allocated and started.
*/ | Ensures the cluster has a green state via the cluster health API. This method will also wait for relocations. It is useful to ensure that all action on the cluster have finished and all shards that were currently relocating are now allocated and started | ensureGreen | {
"repo_name": "yanjunh/elasticsearch",
"path": "test/framework/src/main/java/org/elasticsearch/test/ESSingleNodeTestCase.java",
"license": "apache-2.0",
"size": 14304
} | [
"org.elasticsearch.cluster.health.ClusterHealthStatus",
"org.elasticsearch.common.unit.TimeValue"
] | import org.elasticsearch.cluster.health.ClusterHealthStatus; import org.elasticsearch.common.unit.TimeValue; | import org.elasticsearch.cluster.health.*; import org.elasticsearch.common.unit.*; | [
"org.elasticsearch.cluster",
"org.elasticsearch.common"
] | org.elasticsearch.cluster; org.elasticsearch.common; | 686,458 |
public final Class<? extends Attribute> getCategory() {
return JobMessageFromOperator.class;
} | final Class<? extends Attribute> function() { return JobMessageFromOperator.class; } | /**
* Get the printing attribute class which is to be used as the "category"
* for this printing attribute value.
* <P>
* For class JobMessageFromOperator, the
* category is class JobMessageFromOperator itself.
*
* @return Printing attribute class (category), an instance of class
... | Get the printing attribute class which is to be used as the "category" for this printing attribute value. For class JobMessageFromOperator, the category is class JobMessageFromOperator itself | getCategory | {
"repo_name": "FauxFaux/jdk9-jdk",
"path": "src/java.desktop/share/classes/javax/print/attribute/standard/JobMessageFromOperator.java",
"license": "gpl-2.0",
"size": 4983
} | [
"javax.print.attribute.Attribute"
] | import javax.print.attribute.Attribute; | import javax.print.attribute.*; | [
"javax.print"
] | javax.print; | 1,807,597 |
@Override
public void processStimulus(Iterator<WakeupCriterion> criteria) {
double angle = 0.0;
double sign;
if( tg == null ){
wakeupOn(wakeupFrame);
return;
}
// get viewplatforms's location in virutal world
View v = this.getView();
if( v == null ) {
wakeupOn(... | void function(Iterator<WakeupCriterion> criteria) { double angle = 0.0; double sign; if( tg == null ){ wakeupOn(wakeupFrame); return; } View v = this.getView(); if( v == null ) { wakeupOn(wakeupFrame); return; } Canvas3D canvas = v.getCanvas3D(0); boolean status; Transform3D xform = new Transform3D(); Transform3D bbXfo... | /**
* Process stimulus method that computes appropriate transform.
* @param criteria an iterator of the criteria that caused the
* stimulus
*/ | Process stimulus method that computes appropriate transform | processStimulus | {
"repo_name": "gouessej/java3d-core",
"path": "src/main/java/org/jogamp/java3d/Billboard.java",
"license": "gpl-2.0",
"size": 21169
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 1,310,971 |
public XYItemRendererState initialise(Graphics2D g2,
Rectangle2D dataArea,
XYPlot plot,
XYDataset data,
PlotRenderingInfo info) {
State sta... | XYItemRendererState function(Graphics2D g2, Rectangle2D dataArea, XYPlot plot, XYDataset data, PlotRenderingInfo info) { State state = new State(info); state.seriesPath = new GeneralPath(); state.seriesIndex = -1; return state; } | /**
* Initialises the renderer.
* <P>
* This method will be called before the first item is rendered, giving the
* renderer an opportunity to initialise any state information it wants to
* maintain. The renderer can do nothing if it chooses.
*
* @param g2 the graphics device.
*... | Initialises the renderer. This method will be called before the first item is rendered, giving the renderer an opportunity to initialise any state information it wants to maintain. The renderer can do nothing if it chooses | initialise | {
"repo_name": "simeshev/parabuild-ci",
"path": "3rdparty/jfreechart-1.0.5/source/org/jfree/chart/renderer/xy/StandardXYItemRenderer.java",
"license": "lgpl-3.0",
"size": 38718
} | [
"java.awt.Graphics2D",
"java.awt.geom.GeneralPath",
"java.awt.geom.Rectangle2D",
"org.jfree.chart.plot.PlotRenderingInfo",
"org.jfree.chart.plot.XYPlot",
"org.jfree.data.xy.XYDataset"
] | import java.awt.Graphics2D; import java.awt.geom.GeneralPath; import java.awt.geom.Rectangle2D; import org.jfree.chart.plot.PlotRenderingInfo; import org.jfree.chart.plot.XYPlot; import org.jfree.data.xy.XYDataset; | import java.awt.*; import java.awt.geom.*; import org.jfree.chart.plot.*; import org.jfree.data.xy.*; | [
"java.awt",
"org.jfree.chart",
"org.jfree.data"
] | java.awt; org.jfree.chart; org.jfree.data; | 1,396,200 |
for (int i = 0; i < dimColEvaluatorInfoList.size(); i++) {
// find the dimension in the current block dimensions list
CarbonDimension dimensionFromCurrentBlock = segmentProperties
.getDimensionFromCurrentBlock(dimColEvaluatorInfoList.get(i).getDimension());
if (null != dimensionFromCurrentBl... | for (int i = 0; i < dimColEvaluatorInfoList.size(); i++) { CarbonDimension dimensionFromCurrentBlock = segmentProperties .getDimensionFromCurrentBlock(dimColEvaluatorInfoList.get(i).getDimension()); if (null != dimensionFromCurrentBlock) { dimColEvaluatorInfoList.get(i).setColumnIndex(dimensionFromCurrentBlock.getOrdin... | /**
* This method will initialize the dimension info for the current block to be
* used for filtering the data
*/ | This method will initialize the dimension info for the current block to be used for filtering the data | initDimensionBlockIndexes | {
"repo_name": "shivangi1015/incubator-carbondata",
"path": "core/src/main/java/org/apache/carbondata/core/scan/filter/executer/RowLevelFilterExecuterImpl.java",
"license": "apache-2.0",
"size": 22192
} | [
"org.apache.carbondata.core.metadata.schema.table.column.CarbonDimension"
] | import org.apache.carbondata.core.metadata.schema.table.column.CarbonDimension; | import org.apache.carbondata.core.metadata.schema.table.column.*; | [
"org.apache.carbondata"
] | org.apache.carbondata; | 375,635 |
public static void createBuildXMLFile( String path,
List< ReplaceableParameter > params )
{
try {
File antFile = new File( path );
createNewFile( antFile.getAbsolutePath( ) );
FileWriter writer = new FileWriter( antFile );
writer.write( TemplatePro... | static void function( String path, List< ReplaceableParameter > params ) { try { File antFile = new File( path ); createNewFile( antFile.getAbsolutePath( ) ); FileWriter writer = new FileWriter( antFile ); writer.write( TemplateProvider.getInstance( ).getProcessedTemplate( STR, params ) ); writer.close( ); } catch( Exc... | /**
* Creates the 'build.xml' with the specified path
*
* @param path
* The full path to the 'build.xml' file
* @param params
* The parameters list to replace in the template of 'build.xml'
*/ | Creates the 'build.xml' with the specified path | createBuildXMLFile | {
"repo_name": "asimonov-im/wesnoth",
"path": "utils/umc_dev/org.wesnoth/src/org/wesnoth/utils/ResourceUtils.java",
"license": "gpl-2.0",
"size": 25664
} | [
"java.io.File",
"java.io.FileWriter",
"java.util.List",
"org.wesnoth.Logger",
"org.wesnoth.templates.ReplaceableParameter",
"org.wesnoth.templates.TemplateProvider"
] | import java.io.File; import java.io.FileWriter; import java.util.List; import org.wesnoth.Logger; import org.wesnoth.templates.ReplaceableParameter; import org.wesnoth.templates.TemplateProvider; | import java.io.*; import java.util.*; import org.wesnoth.*; import org.wesnoth.templates.*; | [
"java.io",
"java.util",
"org.wesnoth",
"org.wesnoth.templates"
] | java.io; java.util; org.wesnoth; org.wesnoth.templates; | 740,283 |
private void conn_inn_gen_ann(CubeMessage msg)
{
// Validate the message
InetSocketAddress addr = (InetSocketAddress) validateMsg(msg, null);
if (null == addr)
return;
// Address validation based on "authorized" INNs?
// Ensure proper format
if (null == msg.getTravel())
{
reply(msg... | void function(CubeMessage msg) { InetSocketAddress addr = (InetSocketAddress) validateMsg(msg, null); if (null == addr) return; if (null == msg.getTravel()) { reply(msg, Type.INVALID_MSG, msg.getType()); return; } if (null != annStates.get(addr)) { reply(msg, Type.INVALID_STATE, new Enum[] { annStates.get(addr).state, ... | /**
* Generic node must respond to INN request to become ANN and connect client.
*
* Algorithm: set up ANN state, and if I am a broadcast leaf, generate a reply
*/ | Generic node must respond to INN request to become ANN and connect client. Algorithm: set up ANN state, and if I am a broadcast leaf, generate a reply | conn_inn_gen_ann | {
"repo_name": "deblau/hyper",
"path": "Hyper/src/hyper/CubeProtocol.java",
"license": "gpl-2.0",
"size": 70120
} | [
"java.io.Serializable",
"java.math.BigInteger",
"java.net.InetSocketAddress"
] | import java.io.Serializable; import java.math.BigInteger; import java.net.InetSocketAddress; | import java.io.*; import java.math.*; import java.net.*; | [
"java.io",
"java.math",
"java.net"
] | java.io; java.math; java.net; | 1,824,758 |
private void visitVariableDef(DetailAST ast) {
if (checking && ast.getParent().getType() == TokenTypes.OBJBLOCK) {
final DetailAST modifiersAST =
ast.findFirstToken(TokenTypes.MODIFIERS);
if (modifiersAST.findFirstToken(TokenTypes.FINAL) == null) {
lo... | void function(DetailAST ast) { if (checking && ast.getParent().getType() == TokenTypes.OBJBLOCK) { final DetailAST modifiersAST = ast.findFirstToken(TokenTypes.MODIFIERS); if (modifiersAST.findFirstToken(TokenTypes.FINAL) == null) { log(ast.getLineNo(), ast.getColumnNo(), MSG_KEY, ast.findFirstToken(TokenTypes.IDENT).g... | /**
* Checks variable definition.
* @param ast variable def node for check
*/ | Checks variable definition | visitVariableDef | {
"repo_name": "jochenvdv/checkstyle",
"path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/design/MutableExceptionCheck.java",
"license": "lgpl-2.1",
"size": 6548
} | [
"com.puppycrawl.tools.checkstyle.api.DetailAST",
"com.puppycrawl.tools.checkstyle.api.TokenTypes"
] | import com.puppycrawl.tools.checkstyle.api.DetailAST; import com.puppycrawl.tools.checkstyle.api.TokenTypes; | import com.puppycrawl.tools.checkstyle.api.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 191,410 |
public QName findQNameForSoapActionOrType(String soapAction, Class<?> type) {
MethodInfo info = soapActionToMethodInfo.get(soapAction);
if (info != null) {
if (isClient) {
return info.getIn().getElName();
} else {
return info.getOut().getElName... | QName function(String soapAction, Class<?> type) { MethodInfo info = soapActionToMethodInfo.get(soapAction); if (info != null) { if (isClient) { return info.getIn().getElName(); } else { return info.getOut().getElName(); } } QName qName = null; if (type != null) { if (isClient) { qName = inTypeNameToQName.get(type.getN... | /**
* Determine the QName of the method parameter of the method that matches
* either soapAction and type or if not possible only the type
*
* @param soapAction
* @param type
* @return matching QName throws RuntimeException if no matching QName was
* found
*/ | Determine the QName of the method parameter of the method that matches either soapAction and type or if not possible only the type | findQNameForSoapActionOrType | {
"repo_name": "chicagozer/rheosoft",
"path": "components/camel-soap/src/main/java/org/apache/camel/dataformat/soap/name/ServiceInterfaceStrategy.java",
"license": "apache-2.0",
"size": 8219
} | [
"javax.xml.namespace.QName",
"org.apache.camel.RuntimeCamelException"
] | import javax.xml.namespace.QName; import org.apache.camel.RuntimeCamelException; | import javax.xml.namespace.*; import org.apache.camel.*; | [
"javax.xml",
"org.apache.camel"
] | javax.xml; org.apache.camel; | 1,068,906 |
public ModelCheckerResult computeSteadyStateProbs(DTMC dtmc, double initDist[]) throws PrismException
{
ModelCheckerResult res;
BitSet startNot, bscc;
double probBSCCs[], solnProbs[], reachProbs[];
int n, numBSCCs = 0, allInOneBSCC;
long timer;
timer = System.currentTimeMillis();
// Store num states... | ModelCheckerResult function(DTMC dtmc, double initDist[]) throws PrismException { ModelCheckerResult res; BitSet startNot, bscc; double probBSCCs[], solnProbs[], reachProbs[]; int n, numBSCCs = 0, allInOneBSCC; long timer; timer = System.currentTimeMillis(); n = dtmc.getNumStates(); solnProbs = new double[n]; SCCComput... | /**
* Compute (forwards) steady-state probabilities
* i.e. compute the long-run probability of being in each state,
* assuming the initial distribution {@code initDist}.
* For space efficiency, the initial distribution vector will be modified and values over-written,
* so if you wanted it, take a copy.
... | Compute (forwards) steady-state probabilities i.e. compute the long-run probability of being in each state, assuming the initial distribution initDist. For space efficiency, the initial distribution vector will be modified and values over-written, so if you wanted it, take a copy | computeSteadyStateProbs | {
"repo_name": "bharathk005/prism-4.2.1-src-teaser-patch",
"path": "src/explicit/DTMCModelChecker.java",
"license": "gpl-2.0",
"size": 45690
} | [
"java.util.BitSet",
"java.util.List"
] | import java.util.BitSet; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 733,374 |
public void addLight (SpotLight spot); | void function (SpotLight spot); | /** Add spot light in shadow system
* @param spot SpotLight to add in the ShadowSystem */ | Add spot light in shadow system | addLight | {
"repo_name": "saltares/libgdx",
"path": "tests/gdx-tests/src/com/badlogic/gdx/tests/g3d/shadows/system/ShadowSystem.java",
"license": "apache-2.0",
"size": 4720
} | [
"com.badlogic.gdx.graphics.g3d.environment.SpotLight"
] | import com.badlogic.gdx.graphics.g3d.environment.SpotLight; | import com.badlogic.gdx.graphics.g3d.environment.*; | [
"com.badlogic.gdx"
] | com.badlogic.gdx; | 1,504,142 |
public static void installOn(CmsSitemapController controller, CmsTreeItem treeItem, CmsUUID entryId) {
CmsSitemapHoverbar hoverbar = new CmsSitemapHoverbar(controller, entryId, true, true, null);
installHoverbar(hoverbar, treeItem.getListItemWidget());
} | static void function(CmsSitemapController controller, CmsTreeItem treeItem, CmsUUID entryId) { CmsSitemapHoverbar hoverbar = new CmsSitemapHoverbar(controller, entryId, true, true, null); installHoverbar(hoverbar, treeItem.getListItemWidget()); } | /**
* Installs a hover bar for the given item widget.<p>
*
* @param controller the controller
* @param treeItem the item to hover
* @param entryId the entry id
*/ | Installs a hover bar for the given item widget | installOn | {
"repo_name": "ggiudetti/opencms-core",
"path": "src-gwt/org/opencms/ade/sitemap/client/hoverbar/CmsSitemapHoverbar.java",
"license": "lgpl-2.1",
"size": 13601
} | [
"org.opencms.ade.sitemap.client.control.CmsSitemapController",
"org.opencms.gwt.client.ui.tree.CmsTreeItem",
"org.opencms.util.CmsUUID"
] | import org.opencms.ade.sitemap.client.control.CmsSitemapController; import org.opencms.gwt.client.ui.tree.CmsTreeItem; import org.opencms.util.CmsUUID; | import org.opencms.ade.sitemap.client.control.*; import org.opencms.gwt.client.ui.tree.*; import org.opencms.util.*; | [
"org.opencms.ade",
"org.opencms.gwt",
"org.opencms.util"
] | org.opencms.ade; org.opencms.gwt; org.opencms.util; | 2,490,866 |
public void encodeBegin(
FacesContext context,
UIComponent component) throws IOException {
if ((context == null) || (component == null)) {
throw new NullPointerException();
}
MapComponent map = (MapComponent) component;
ResponseWriter writer = context.get... | void function( FacesContext context, UIComponent component) throws IOException { if ((context == null) (component == null)) { throw new NullPointerException(); } MapComponent map = (MapComponent) component; ResponseWriter writer = context.getResponseWriter(); writer.startElement("map", map); writer.writeAttribute( "nam... | /**
* <p>Encode the beginning of this component.</p>
*
* @param context <code>FacesContext</code>for the current request
* @param component <code>UIComponent</code> to be decoded
*/ | Encode the beginning of this component | encodeBegin | {
"repo_name": "adamjhamer/hdiv-archive",
"path": "hdiv-web-jsf-bookstore/examples/web/bookstore6/src/java/com/sun/bookstore6/renderers/MapRenderer.java",
"license": "apache-2.0",
"size": 4479
} | [
"com.sun.bookstore6.components.MapComponent",
"java.io.IOException",
"javax.faces.component.UIComponent",
"javax.faces.context.FacesContext",
"javax.faces.context.ResponseWriter"
] | import com.sun.bookstore6.components.MapComponent; import java.io.IOException; import javax.faces.component.UIComponent; import javax.faces.context.FacesContext; import javax.faces.context.ResponseWriter; | import com.sun.bookstore6.components.*; import java.io.*; import javax.faces.component.*; import javax.faces.context.*; | [
"com.sun.bookstore6",
"java.io",
"javax.faces"
] | com.sun.bookstore6; java.io; javax.faces; | 1,604,628 |
@Deprecated
public int subscribeSystem(User loggedInUser, Integer sid, List<String> labels) {
Server server = SystemManager.lookupByIdAndUser(new Long(sid.longValue()),
loggedInUser);
if (labels.size() == 0) {
ServerFactory.unsubscribeFromAllChannels(loggedInUser, s... | int function(User loggedInUser, Integer sid, List<String> labels) { Server server = SystemManager.lookupByIdAndUser(new Long(sid.longValue()), loggedInUser); if (labels.size() == 0) { ServerFactory.unsubscribeFromAllChannels(loggedInUser, server); return 1; } Channel base = null; List<Integer> childChannelIds = new Arr... | /**
* Subscribe a system to a list of channels
* @param loggedInUser The current user
* @param labels a list of channel labels to subscribe the system to
* @param sid the serverId of the system in question
* @return 1 for success
* @deprecated being replaced by system.setBaseChannel(string... | Subscribe a system to a list of channels | subscribeSystem | {
"repo_name": "PaulWay/spacewalk",
"path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java",
"license": "gpl-2.0",
"size": 127025
} | [
"com.redhat.rhn.domain.channel.Channel",
"com.redhat.rhn.domain.server.Server",
"com.redhat.rhn.domain.server.ServerFactory",
"com.redhat.rhn.domain.user.User",
"com.redhat.rhn.frontend.xmlrpc.MultipleBaseChannelException",
"com.redhat.rhn.frontend.xmlrpc.system.SystemHandler",
"com.redhat.rhn.manager.s... | import com.redhat.rhn.domain.channel.Channel; import com.redhat.rhn.domain.server.Server; import com.redhat.rhn.domain.server.ServerFactory; import com.redhat.rhn.domain.user.User; import com.redhat.rhn.frontend.xmlrpc.MultipleBaseChannelException; import com.redhat.rhn.frontend.xmlrpc.system.SystemHandler; import com.... | import com.redhat.rhn.domain.channel.*; import com.redhat.rhn.domain.server.*; import com.redhat.rhn.domain.user.*; import com.redhat.rhn.frontend.xmlrpc.*; import com.redhat.rhn.frontend.xmlrpc.system.*; import com.redhat.rhn.manager.system.*; import java.util.*; | [
"com.redhat.rhn",
"java.util"
] | com.redhat.rhn; java.util; | 2,650,365 |
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<AddressResourceInner> list(); | @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<AddressResourceInner> list(); | /**
* Lists all the addresses available under the subscription.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return address Res... | Lists all the addresses available under the subscription | list | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/edgeorder/azure-resourcemanager-edgeorder/src/main/java/com/azure/resourcemanager/edgeorder/fluent/ResourceProvidersClient.java",
"license": "mit",
"size": 53832
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedIterable",
"com.azure.resourcemanager.edgeorder.fluent.models.AddressResourceInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.resourcemanager.edgeorder.fluent.models.AddressResourceInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.edgeorder.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,851,548 |
PrivateLinkResourceInner innerModel(); | PrivateLinkResourceInner innerModel(); | /**
* Gets the inner com.azure.resourcemanager.mariadb.fluent.models.PrivateLinkResourceInner object.
*
* @return the inner object.
*/ | Gets the inner com.azure.resourcemanager.mariadb.fluent.models.PrivateLinkResourceInner object | innerModel | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/mariadb/azure-resourcemanager-mariadb/src/main/java/com/azure/resourcemanager/mariadb/models/PrivateLinkResource.java",
"license": "mit",
"size": 1193
} | [
"com.azure.resourcemanager.mariadb.fluent.models.PrivateLinkResourceInner"
] | import com.azure.resourcemanager.mariadb.fluent.models.PrivateLinkResourceInner; | import com.azure.resourcemanager.mariadb.fluent.models.*; | [
"com.azure.resourcemanager"
] | com.azure.resourcemanager; | 815,948 |
private static void insideAdjoint(final Hypergraph graph, final Hyperpotential w, final Algebra s,
final Scores scores, final boolean backOutside) {
final double[] alpha = scores.alpha;
final double[] beta = scores.beta;
final double[] alphaAdj = scores.alphaAdj;
final do... | static void function(final Hypergraph graph, final Hyperpotential w, final Algebra s, final Scores scores, final boolean backOutside) { final double[] alpha = scores.alpha; final double[] beta = scores.beta; final double[] alphaAdj = scores.alphaAdj; final double[] betaAdj = scores.betaAdj; graph.applyRevTopoSort(new H... | /**
* Computes the adjoints of the inside scores only. Performs a partial
* backwards pass through the outside algorithm, and a partial backwards
* pass through the inside algorithm.
*
* INPUT: scores.alpha, scores.beta, scores.betaAdj.
* OUTPUT: scores.betaAdj.
*
* @param gr... | Computes the adjoints of the inside scores only. Performs a partial backwards pass through the outside algorithm, and a partial backwards pass through the inside algorithm | insideAdjoint | {
"repo_name": "mgormley/pacaya",
"path": "src/main/java/edu/jhu/pacaya/hypergraph/Hyperalgo.java",
"license": "apache-2.0",
"size": 23704
} | [
"edu.jhu.pacaya.hypergraph.Hypergraph",
"edu.jhu.pacaya.util.semiring.Algebra"
] | import edu.jhu.pacaya.hypergraph.Hypergraph; import edu.jhu.pacaya.util.semiring.Algebra; | import edu.jhu.pacaya.hypergraph.*; import edu.jhu.pacaya.util.semiring.*; | [
"edu.jhu.pacaya"
] | edu.jhu.pacaya; | 2,879,292 |
private void setup()
{
//setup access to objects
tempInTextBox = (EditText) findViewById(R.id.tempInTextBox);
tempOutTextBox = (EditText) findViewById(R.id.tempOutTextBox);
volumeTextBox = (EditText) findViewById(R.id.volumeTextBox);
runtimeTextBox = (EditText) findViewById(R.id.runtime... | void function() { tempInTextBox = (EditText) findViewById(R.id.tempInTextBox); tempOutTextBox = (EditText) findViewById(R.id.tempOutTextBox); volumeTextBox = (EditText) findViewById(R.id.volumeTextBox); runtimeTextBox = (EditText) findViewById(R.id.runtimeTextBox); capacityTextBox = (EditText) findViewById(R.id.capacit... | /**
* Sets everything up for this activity.
*/ | Sets everything up for this activity | setup | {
"repo_name": "cptwin/PattonFluidChillerSelect-Android",
"path": "PattonFluidChillerSelect/src/com/pattonnz/pattonfluidchillerselect/MainActivity.java",
"license": "gpl-3.0",
"size": 12525
} | [
"android.widget.ArrayAdapter",
"android.widget.EditText",
"android.widget.ImageButton",
"android.widget.Spinner",
"android.widget.TableRow"
] | import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.ImageButton; import android.widget.Spinner; import android.widget.TableRow; | import android.widget.*; | [
"android.widget"
] | android.widget; | 2,223,392 |
protected final PropertyDescriptor longProp(final String name,
final String description, final Class<?> editor)
throws IntrospectionException
{
final PropertyDescriptor p = new PropertyDescriptor(name, _class);
p.setShortDescription(description);
p.setPropertyEditorClass(editor... | final PropertyDescriptor function(final String name, final String description, final Class<?> editor) throws IntrospectionException { final PropertyDescriptor p = new PropertyDescriptor(name, _class); p.setShortDescription(description); p.setPropertyEditorClass(editor); return p; } | /**
* convenience function for creating property descriptor for property which
* has its own editor
*
* @param name
* name of property
* @param description
* description of property (for tooltip)
* @param editor
* editor to use for this property
... | convenience function for creating property descriptor for property which has its own editor | longProp | {
"repo_name": "theanuradha/debrief",
"path": "org.mwc.cmap.legacy/src/MWC/GUI/Editable.java",
"license": "epl-1.0",
"size": 37860
} | [
"java.beans.IntrospectionException",
"java.beans.PropertyDescriptor"
] | import java.beans.IntrospectionException; import java.beans.PropertyDescriptor; | import java.beans.*; | [
"java.beans"
] | java.beans; | 2,897,766 |
public Stack getErrors ()
{
return (Stack) errors_.clone ();
}
| Stack function () { return (Stack) errors_.clone (); } | /**
* Get any nested errors as a stack.
*
* @return Stack The nested error stack, or null if none.
*/ | Get any nested errors as a stack | getErrors | {
"repo_name": "hmalphettes/atomikos-essentials-3.5.8-osgified-sandbox",
"path": "com.atomikos.transactions.jta/src/com/atomikos/icatch/jta/ExtendedSystemException.java",
"license": "apache-2.0",
"size": 2285
} | [
"java.util.Stack"
] | import java.util.Stack; | import java.util.*; | [
"java.util"
] | java.util; | 1,470,605 |
protected void initFromAttr(Context context, AttributeSet attrs, int defStyleAttr, int
defStyleRes) {
TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.Preference, defStyleAttr,
defStyleRes);
mGravity = a.getInt(R.styleable.Preference_android_gravity, mGrav... | void function(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) { TypedArray a = context.obtainStyledAttributes(attrs, R.styleable.Preference, defStyleAttr, defStyleRes); mGravity = a.getInt(R.styleable.Preference_android_gravity, mGravity); a.recycle(); } | /**
* Initialize this {@code preference} object.
* */ | Initialize this preference object | initFromAttr | {
"repo_name": "malakhv/xPreference",
"path": "xPrefLib/src/com/malakhv/preference/MultilinePreference.java",
"license": "apache-2.0",
"size": 5348
} | [
"android.content.Context",
"android.content.res.TypedArray",
"android.preference.Preference",
"android.util.AttributeSet"
] | import android.content.Context; import android.content.res.TypedArray; import android.preference.Preference; import android.util.AttributeSet; | import android.content.*; import android.content.res.*; import android.preference.*; import android.util.*; | [
"android.content",
"android.preference",
"android.util"
] | android.content; android.preference; android.util; | 938,713 |
public static <T extends Number & Comparable<?>> NumberExpression<T> asNumber(Expression<T> expr) {
Expression<T> underlyingMixin = ExpressionUtils.extract(expr);
if (underlyingMixin instanceof PathImpl) {
return new NumberPath<T>((PathImpl<T>) underlyingMixin);
} else if (underl... | static <T extends Number & Comparable<?>> NumberExpression<T> function(Expression<T> expr) { Expression<T> underlyingMixin = ExpressionUtils.extract(expr); if (underlyingMixin instanceof PathImpl) { return new NumberPath<T>((PathImpl<T>) underlyingMixin); } else if (underlyingMixin instanceof OperationImpl) { return ne... | /**
* Create a new NumberExpression
*
* @param expr Expression of type Number
* @return new NumberExpression
*/ | Create a new NumberExpression | asNumber | {
"repo_name": "johnktims/querydsl",
"path": "querydsl-core/src/main/java/com/querydsl/core/types/dsl/Expressions.java",
"license": "apache-2.0",
"size": 74346
} | [
"com.querydsl.core.types.Expression",
"com.querydsl.core.types.ExpressionUtils",
"com.querydsl.core.types.OperationImpl",
"com.querydsl.core.types.PathImpl",
"com.querydsl.core.types.TemplateExpressionImpl"
] | import com.querydsl.core.types.Expression; import com.querydsl.core.types.ExpressionUtils; import com.querydsl.core.types.OperationImpl; import com.querydsl.core.types.PathImpl; import com.querydsl.core.types.TemplateExpressionImpl; | import com.querydsl.core.types.*; | [
"com.querydsl.core"
] | com.querydsl.core; | 164,432 |
private static Long getProcessId()
{
// Once Java 9 is ready the process API should provide a better way to get the process ID.
long pid = SigarLibrary.instance.getPid();
if (pid >= 0)
return Long.valueOf(pid);
return getProcessIdFromJvmName();
} | static Long function() { long pid = SigarLibrary.instance.getPid(); if (pid >= 0) return Long.valueOf(pid); return getProcessIdFromJvmName(); } | /**
* Retrieves the process ID or <code>null</code> if the process ID cannot be retrieved.
* @return the process ID or <code>null</code> if the process ID cannot be retrieved.
*
* (Duplicated from HeapUtils to avoid refactoring older releases where this test is useful).
*/ | Retrieves the process ID or <code>null</code> if the process ID cannot be retrieved | getProcessId | {
"repo_name": "strapdata/cassandra",
"path": "test/distributed/org/apache/cassandra/distributed/test/ResourceLeakTest.java",
"license": "apache-2.0",
"size": 8496
} | [
"org.apache.cassandra.utils.SigarLibrary"
] | import org.apache.cassandra.utils.SigarLibrary; | import org.apache.cassandra.utils.*; | [
"org.apache.cassandra"
] | org.apache.cassandra; | 1,797,246 |
@Generated
@Selector("initWithType:primary:")
public native CBMutableService initWithTypePrimary(CBUUID UUID, boolean isPrimary); | @Selector(STR) native CBMutableService function(CBUUID UUID, boolean isPrimary); | /**
* initWithType:primary:
* <p>
* Returns a service, initialized with a service type and UUID.
*
* @param UUID The Bluetooth UUID of the service.
* @param isPrimary The type of the service (primary or secondary).
*/ | initWithType:primary: Returns a service, initialized with a service type and UUID | initWithTypePrimary | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/corebluetooth/CBMutableService.java",
"license": "apache-2.0",
"size": 6042
} | [
"org.moe.natj.objc.ann.Selector"
] | import org.moe.natj.objc.ann.Selector; | import org.moe.natj.objc.ann.*; | [
"org.moe.natj"
] | org.moe.natj; | 343,425 |
static int nextChild(ReadOnlyList<INode> children, byte[] name) {
if (name.length == 0) { // empty name
return 0;
}
int nextPos = ReadOnlyList.Util.binarySearch(children, name) + 1;
if (nextPos >= 0) {
return nextPos;
}
return -nextPos;
} | static int nextChild(ReadOnlyList<INode> children, byte[] name) { if (name.length == 0) { return 0; } int nextPos = ReadOnlyList.Util.binarySearch(children, name) + 1; if (nextPos >= 0) { return nextPos; } return -nextPos; } | /**
* Given a child's name, return the index of the next child
*
* @param name a child's name
* @return the index of the next child
*/ | Given a child's name, return the index of the next child | nextChild | {
"repo_name": "legend-hua/hadoop",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/INodeDirectory.java",
"license": "apache-2.0",
"size": 33807
} | [
"org.apache.hadoop.hdfs.util.ReadOnlyList"
] | import org.apache.hadoop.hdfs.util.ReadOnlyList; | import org.apache.hadoop.hdfs.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 1,148,890 |
void onEachDirectory(Consumer<File> consumer) {
consumer.accept(getStateDirectory());
} | void onEachDirectory(Consumer<File> consumer) { consumer.accept(getStateDirectory()); } | /**
* Perform the supplied function on each directory used by this server.
*
* @param consumer the consumer function; may not be null
*/ | Perform the supplied function on each directory used by this server | onEachDirectory | {
"repo_name": "DuncanSands/debezium",
"path": "debezium-core/src/test/java/io/debezium/kafka/KafkaServer.java",
"license": "apache-2.0",
"size": 13415
} | [
"java.io.File",
"java.util.function.Consumer"
] | import java.io.File; import java.util.function.Consumer; | import java.io.*; import java.util.function.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,127,799 |
private void waitForBalancer(long totalUsedSpace, long totalCapacity)
throws IOException, TimeoutException {
long timeout = TIMEOUT;
long failtime = (timeout <= 0L) ? Long.MAX_VALUE
: System.currentTimeMillis() + timeout;
final double avgUtilization = ((double)totalUsedSpace) / totalCapacity;
... | void function(long totalUsedSpace, long totalCapacity) throws IOException, TimeoutException { long timeout = TIMEOUT; long failtime = (timeout <= 0L) ? Long.MAX_VALUE : System.currentTimeMillis() + timeout; final double avgUtilization = ((double)totalUsedSpace) / totalCapacity; boolean balanced; do { DatanodeInfo[] dat... | /**
* Wait until balanced: each datanode gives utilization within
* BALANCE_ALLOWED_VARIANCE of average
* @throws IOException
* @throws TimeoutException
*/ | Wait until balanced: each datanode gives utilization within BALANCE_ALLOWED_VARIANCE of average | waitForBalancer | {
"repo_name": "steveloughran/hadoop-hdfs",
"path": "src/test/hdfs/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java",
"license": "apache-2.0",
"size": 16016
} | [
"java.io.IOException",
"java.util.concurrent.TimeoutException",
"org.apache.hadoop.hdfs.protocol.DatanodeInfo",
"org.apache.hadoop.hdfs.protocol.FSConstants"
] | import java.io.IOException; import java.util.concurrent.TimeoutException; import org.apache.hadoop.hdfs.protocol.DatanodeInfo; import org.apache.hadoop.hdfs.protocol.FSConstants; | import java.io.*; import java.util.concurrent.*; import org.apache.hadoop.hdfs.protocol.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 2,192,761 |
protected SimpAnnotationMethodMessageHandler createAnnotationMethodMessageHandler(
AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel,
SimpMessagingTemplate brokerMessagingTemplate) {
return new SimpAnnotationMethodMessageHandler(
clientInboundChannel, cl... | SimpAnnotationMethodMessageHandler function( AbstractSubscribableChannel clientInboundChannel, AbstractSubscribableChannel clientOutboundChannel, SimpMessagingTemplate brokerMessagingTemplate) { return new SimpAnnotationMethodMessageHandler( clientInboundChannel, clientOutboundChannel, brokerMessagingTemplate); } | /**
* Protected method for plugging in a custom subclass of
* {@link org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler
* SimpAnnotationMethodMessageHandler}.
* @since 5.3.2
*/ | Protected method for plugging in a custom subclass of <code>org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler SimpAnnotationMethodMessageHandler</code> | createAnnotationMethodMessageHandler | {
"repo_name": "spring-projects/spring-framework",
"path": "spring-messaging/src/main/java/org/springframework/messaging/simp/config/AbstractMessageBrokerConfiguration.java",
"license": "apache-2.0",
"size": 23450
} | [
"org.springframework.messaging.simp.SimpMessagingTemplate",
"org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler",
"org.springframework.messaging.support.AbstractSubscribableChannel"
] | import org.springframework.messaging.simp.SimpMessagingTemplate; import org.springframework.messaging.simp.annotation.support.SimpAnnotationMethodMessageHandler; import org.springframework.messaging.support.AbstractSubscribableChannel; | import org.springframework.messaging.simp.*; import org.springframework.messaging.simp.annotation.support.*; import org.springframework.messaging.support.*; | [
"org.springframework.messaging"
] | org.springframework.messaging; | 933,859 |
@ApiModelProperty(example = "null", value = "")
public Accuracy getAccuracy() {
return accuracy;
} | @ApiModelProperty(example = "null", value = "") Accuracy function() { return accuracy; } | /**
* Get accuracy
* @return accuracy
**/ | Get accuracy | getAccuracy | {
"repo_name": "PitneyBowes/LocationIntelligenceSDK-Java",
"path": "src/main/java/pb/locationintelligence/model/GeoLocationAccessPoint.java",
"license": "apache-2.0",
"size": 3395
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 2,275,974 |
List<Tag> getTagList(); | List<Tag> getTagList(); | /**
* Returns an unmodifiable view of tags list
*/ | Returns an unmodifiable view of tags list | getTagList | {
"repo_name": "CS2103AUG2016-F09-C1/main",
"path": "src/main/java/seedu/tasklist/model/ReadOnlyTaskList.java",
"license": "mit",
"size": 600
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,152,631 |
@Override
public void setParameter(String name, Object value) throws OperatorException {
String stringValue = (String) value;
if (name.equalsIgnoreCase(MAX_MODEL_NUMBER)) {
try {
this.maxModelNumber = Integer.parseInt(stringValue);
return;
} catch (NumberFormatException e) {
}
} else... | void function(String name, Object value) throws OperatorException { String stringValue = (String) value; if (name.equalsIgnoreCase(MAX_MODEL_NUMBER)) { try { this.maxModelNumber = Integer.parseInt(stringValue); return; } catch (NumberFormatException e) { } } else if (name.equalsIgnoreCase(CONV_TO_CRISP)) { this.thresho... | /**
* Setting the parameter <code>MAX_MODEL_NUMBER</code> allows to discard all but the first n
* models for specified n. <code>CONV_TO_CRISP</code> allows to set another threshold than 0.5
* for boolean prediction problems.
*/ | Setting the parameter <code>MAX_MODEL_NUMBER</code> allows to discard all but the first n models for specified n. <code>CONV_TO_CRISP</code> allows to set another threshold than 0.5 for boolean prediction problems | setParameter | {
"repo_name": "aborg0/rapidminer-studio",
"path": "src/main/java/com/rapidminer/operator/learner/meta/BayBoostModel.java",
"license": "agpl-3.0",
"size": 22628
} | [
"com.rapidminer.operator.OperatorException"
] | import com.rapidminer.operator.OperatorException; | import com.rapidminer.operator.*; | [
"com.rapidminer.operator"
] | com.rapidminer.operator; | 1,544,961 |
public InlineResponse201 createAgast(String authorization, Agast body) throws ApiException {
ApiResponse<InlineResponse201> resp = createAgastWithHttpInfo(authorization, body);
return resp.getData();
} | InlineResponse201 function(String authorization, Agast body) throws ApiException { ApiResponse<InlineResponse201> resp = createAgastWithHttpInfo(authorization, body); return resp.getData(); } | /**
* Create agast
* This method operation create a AGAST
* @param authorization Bearer {auth} (required)
* @param body Transaction Message (required)
* @return InlineResponse201
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
... | Create agast This method operation create a AGAST | createAgast | {
"repo_name": "Avalara/avataxbr-clients",
"path": "java-client/src/main/java/io/swagger/client/api/AGASTApi.java",
"license": "gpl-3.0",
"size": 32262
} | [
"io.swagger.client.ApiException",
"io.swagger.client.ApiResponse",
"io.swagger.client.model.Agast",
"io.swagger.client.model.InlineResponse201"
] | import io.swagger.client.ApiException; import io.swagger.client.ApiResponse; import io.swagger.client.model.Agast; import io.swagger.client.model.InlineResponse201; | import io.swagger.client.*; import io.swagger.client.model.*; | [
"io.swagger.client"
] | io.swagger.client; | 1,034,967 |
EAttribute getAtomicSoundComponent_Type(); | EAttribute getAtomicSoundComponent_Type(); | /**
* Returns the meta object for the attribute '{@link soundgates.AtomicSoundComponent#getType <em>Type</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Type</em>'.
* @see soundgates.AtomicSoundComponent#getType()
* @see #getAtomicSoundComponent()
... | Returns the meta object for the attribute '<code>soundgates.AtomicSoundComponent#getType Type</code>'. | getAtomicSoundComponent_Type | {
"repo_name": "EPiCS/soundgates",
"path": "software/editor/Soundgates/src/soundgates/SoundgatesPackage.java",
"license": "mit",
"size": 48290
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,693,542 |
private static void handleRequest(HttpRequest httpRequest, Consumer<HttpResponse> consumerOnSuccess,
Consumer<Throwable> consumerOnError, int attempts) throws ExecutionException {
if (httpRequest != null) {
LOGGER.debug("Asynchronous call to API with http request: " + httpRequest.toString());
RestService.... | static void function(HttpRequest httpRequest, Consumer<HttpResponse> consumerOnSuccess, Consumer<Throwable> consumerOnError, int attempts) throws ExecutionException { if (httpRequest != null) { LOGGER.debug(STR + httpRequest.toString()); RestService.callAsync(httpRequest, consumerOnSuccess, consumerOnError, attempts); ... | /**
* This method handles all async requests on the base of the incoming parameters
*
* @param httpRequest,
* a prepared {@link HttpRequest} used for api call
* @param consumerOnSuccess,
* the consumer of asynchronous executing
* @param consumerOnError,
* the consumer of... | This method handles all async requests on the base of the incoming parameters | handleRequest | {
"repo_name": "lucapompei/ReactiveRest",
"path": "src/main/java/lp/reactive/reactiverest/api/AsyncAPI.java",
"license": "apache-2.0",
"size": 4926
} | [
"java.util.concurrent.ExecutionException",
"java.util.function.Consumer"
] | import java.util.concurrent.ExecutionException; import java.util.function.Consumer; | import java.util.concurrent.*; import java.util.function.*; | [
"java.util"
] | java.util; | 2,625,574 |
public void setDefaultHystrixConfiguration(HystrixConfigurationDefinition defaultHystrixConfiguration) {
this.defaultHystrixConfiguration = defaultHystrixConfiguration;
} | void function(HystrixConfigurationDefinition defaultHystrixConfiguration) { this.defaultHystrixConfiguration = defaultHystrixConfiguration; } | /**
* Hystrix EIP default configuration
*/ | Hystrix EIP default configuration | setDefaultHystrixConfiguration | {
"repo_name": "tadayosi/camel",
"path": "components/camel-spring-xml/src/main/java/org/apache/camel/spring/xml/CamelContextFactoryBean.java",
"license": "apache-2.0",
"size": 53508
} | [
"org.apache.camel.model.HystrixConfigurationDefinition"
] | import org.apache.camel.model.HystrixConfigurationDefinition; | import org.apache.camel.model.*; | [
"org.apache.camel"
] | org.apache.camel; | 307,669 |
public JavaPairInputDStream<String, SerializedDFe> createDirectKafkaDStream(JavaStreamingContext jssc, List<String> topics) {
Set<String> topicsSet = new HashSet<String>(topics);
Map<String, String> kafkaParams = new HashMap<String, String>();
kafkaParams.put("zookeeper.connect", "s0767.ms:2181,s0768.ms... | JavaPairInputDStream<String, SerializedDFe> function(JavaStreamingContext jssc, List<String> topics) { Set<String> topicsSet = new HashSet<String>(topics); Map<String, String> kafkaParams = new HashMap<String, String>(); kafkaParams.put(STR, STR); kafkaParams.put(STR, STR); kafkaParams.put(STR, STR); return KafkaUtils.... | /**
* Create a Kafka direct stream
* @param jssc
* @param topics
* @return
*/ | Create a Kafka direct stream | createDirectKafkaDStream | {
"repo_name": "fabioandreatta/projeto-nassau",
"path": "nassau-core/src/main/java/com/nassau/br/spark/SparkTemplate.java",
"license": "gpl-3.0",
"size": 2890
} | [
"com.nassau.br.SerializedDFe",
"com.nassau.br.kafka.SerializedDFeDeserializer",
"java.util.HashMap",
"java.util.HashSet",
"java.util.List",
"java.util.Map",
"java.util.Set",
"org.apache.spark.streaming.api.java.JavaPairInputDStream",
"org.apache.spark.streaming.api.java.JavaStreamingContext",
"org... | import com.nassau.br.SerializedDFe; import com.nassau.br.kafka.SerializedDFeDeserializer; import java.util.HashMap; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set; import org.apache.spark.streaming.api.java.JavaPairInputDStream; import org.apache.spark.streaming.api.java.Jav... | import com.nassau.br.*; import com.nassau.br.kafka.*; import java.util.*; import org.apache.spark.streaming.api.java.*; import org.apache.spark.streaming.kafka.*; | [
"com.nassau.br",
"java.util",
"org.apache.spark"
] | com.nassau.br; java.util; org.apache.spark; | 2,338,114 |
public Collection<String> getURLHandlers() throws IOException, MPDException {
return getList(CMD_ACTION_URL_HANDLERS, CMD_RESPONSE_URL_HANDLERS);
} | Collection<String> function() throws IOException, MPDException { return getList(CMD_ACTION_URL_HANDLERS, CMD_RESPONSE_URL_HANDLERS); } | /**
* Retrieves and returns a list of URL handlers.
*
* @return A collection of available URL handlers for the connected media server.
* @throws IOException Thrown upon a communication error with the server.
* @throws MPDException Thrown if an error occurs as a result of command execution.
... | Retrieves and returns a list of URL handlers | getURLHandlers | {
"repo_name": "abarisain/dmix",
"path": "JMPDComm/src/main/java/org/a0z/mpd/subsystem/Reflection.java",
"license": "apache-2.0",
"size": 10415
} | [
"java.io.IOException",
"java.util.Collection",
"org.a0z.mpd.exception.MPDException"
] | import java.io.IOException; import java.util.Collection; import org.a0z.mpd.exception.MPDException; | import java.io.*; import java.util.*; import org.a0z.mpd.exception.*; | [
"java.io",
"java.util",
"org.a0z.mpd"
] | java.io; java.util; org.a0z.mpd; | 2,877,909 |
public ResourceLoader getResourceLoader() {
return this.resourceLoader;
} | ResourceLoader function() { return this.resourceLoader; } | /**
* The ResourceLoader that will be used in the ApplicationContext.
* @return the resourceLoader the resource loader that will be used in the
* ApplicationContext (or null if the default)
*/ | The ResourceLoader that will be used in the ApplicationContext | getResourceLoader | {
"repo_name": "shangyi0102/spring-boot",
"path": "spring-boot/src/main/java/org/springframework/boot/SpringApplication.java",
"license": "apache-2.0",
"size": 49400
} | [
"org.springframework.core.io.ResourceLoader"
] | import org.springframework.core.io.ResourceLoader; | import org.springframework.core.io.*; | [
"org.springframework.core"
] | org.springframework.core; | 1,428,793 |
public Map<String, Double> calculateBinStats(int bin)
{
if(bin<0 || bin>bins)
return null;
Map<String, Double> binStats = new HashMap<String, Double>();
double mean = getMean(bin);
binStats.put(MEAN, mean);
binStats.put(MIN, range.getMin()+bin*binWidth);
binStats.put(MAX, range.getMin()+bin*binWidth+... | Map<String, Double> function(int bin) { if(bin<0 bin>bins) return null; Map<String, Double> binStats = new HashMap<String, Double>(); double mean = getMean(bin); binStats.put(MEAN, mean); binStats.put(MIN, range.getMin()+bin*binWidth); binStats.put(MAX, range.getMin()+bin*binWidth+binWidth); binStats.put(FREQ, (double)... | /**
* Get the stats of the bin.
* @param bin See above.
* @return A map of the stats calculated.
*/ | Get the stats of the bin | calculateBinStats | {
"repo_name": "jballanc/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/util/processing/chart/Histogram.java",
"license": "gpl-2.0",
"size": 10182
} | [
"java.util.HashMap",
"java.util.Map"
] | import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,453,451 |
MachineSource machineSource = machineConfig.getSource();
if (!Strings.isNullOrEmpty(machineSource.getContent())) {
return new RecipeImpl().withType(machineSource.getType())
.withScript(machineSource.getContent());
} else {
return recipeDownloade... | MachineSource machineSource = machineConfig.getSource(); if (!Strings.isNullOrEmpty(machineSource.getContent())) { return new RecipeImpl().withType(machineSource.getType()) .withScript(machineSource.getContent()); } else { return recipeDownloader.getRecipe(machineConfig); } } | /**
* Gets the recipe from a machine configuration
*
* @param machineConfig
* the machine configuration that is containing the content or a location to get recipe
* @return recipe with set content and type
* @throws MachineException
* if any error occurs
*/ | Gets the recipe from a machine configuration | getRecipe | {
"repo_name": "snjeza/che",
"path": "wsmaster/che-core-api-machine/src/main/java/org/eclipse/che/api/machine/server/util/RecipeRetriever.java",
"license": "epl-1.0",
"size": 2110
} | [
"com.google.common.base.Strings",
"org.eclipse.che.api.core.model.machine.MachineSource",
"org.eclipse.che.api.machine.server.recipe.RecipeImpl"
] | import com.google.common.base.Strings; import org.eclipse.che.api.core.model.machine.MachineSource; import org.eclipse.che.api.machine.server.recipe.RecipeImpl; | import com.google.common.base.*; import org.eclipse.che.api.core.model.machine.*; import org.eclipse.che.api.machine.server.recipe.*; | [
"com.google.common",
"org.eclipse.che"
] | com.google.common; org.eclipse.che; | 1,437,838 |
public UaObjectNodeBuilder setTypeDefinition(NodeId typeDefinition) {
Objects.requireNonNull(nodeId, "NodeId cannot be null");
references.add(new Reference(
nodeId,
Identifiers.HasTypeDefinition,
new ExpandedNodeId(typeDefiniti... | UaObjectNodeBuilder function(NodeId typeDefinition) { Objects.requireNonNull(nodeId, STR); references.add(new Reference( nodeId, Identifiers.HasTypeDefinition, new ExpandedNodeId(typeDefinition), NodeClass.ObjectType, true )); return this; } } | /**
* Convenience method for adding the required HasTypeDefinition reference.
* <p>
* {@link #setNodeId(NodeId)} must have already been called before invoking this method.
*
* @param typeDefinition The {@link NodeId} of the TypeDefinition.
* @return this {@link UaOb... | Convenience method for adding the required HasTypeDefinition reference. <code>#setNodeId(NodeId)</code> must have already been called before invoking this method | setTypeDefinition | {
"repo_name": "digitalpetri/ua-server-sdk",
"path": "ua-server/src/main/java/com/digitalpetri/opcua/sdk/server/model/UaObjectNode.java",
"license": "agpl-3.0",
"size": 13693
} | [
"com.digitalpetri.opcua.sdk.core.Reference",
"com.digitalpetri.opcua.stack.core.Identifiers",
"com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId",
"com.digitalpetri.opcua.stack.core.types.builtin.NodeId",
"com.digitalpetri.opcua.stack.core.types.enumerated.NodeClass",
"java.util.Objects"
] | import com.digitalpetri.opcua.sdk.core.Reference; import com.digitalpetri.opcua.stack.core.Identifiers; import com.digitalpetri.opcua.stack.core.types.builtin.ExpandedNodeId; import com.digitalpetri.opcua.stack.core.types.builtin.NodeId; import com.digitalpetri.opcua.stack.core.types.enumerated.NodeClass; import java.u... | import com.digitalpetri.opcua.sdk.core.*; import com.digitalpetri.opcua.stack.core.*; import com.digitalpetri.opcua.stack.core.types.builtin.*; import com.digitalpetri.opcua.stack.core.types.enumerated.*; import java.util.*; | [
"com.digitalpetri.opcua",
"java.util"
] | com.digitalpetri.opcua; java.util; | 2,657,547 |
public Date updated() {
return updated;
} | Date function() { return updated; } | /**
* Gets the updated.
*
* <p>The date and time the query was updated.
*
* @return the updated
*/ | Gets the updated. The date and time the query was updated | updated | {
"repo_name": "watson-developer-cloud/java-sdk",
"path": "discovery/src/main/java/com/ibm/watson/discovery/v2/model/TrainingQuery.java",
"license": "apache-2.0",
"size": 5110
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,320,949 |
public static void showInformationMessage(Component parent, String msg, String title) {
showInformationMessage(parent, msg, title, false, null);
} | static void function(Component parent, String msg, String title) { showInformationMessage(parent, msg, title, false, null); } | /**
* Displays an information message.
*
* @param parent the parent, to make the dialog modal; can be null
* @param msg the information message to display
* @param title the title of the information message
*/ | Displays an information message | showInformationMessage | {
"repo_name": "waikato-datamining/adams-base",
"path": "adams-core/src/main/java/adams/gui/core/GUIHelper.java",
"license": "gpl-3.0",
"size": 88762
} | [
"java.awt.Component"
] | import java.awt.Component; | import java.awt.*; | [
"java.awt"
] | java.awt; | 245,481 |
private String getName(IJarEntryResource resource) {
return TextProcessor.deprocess(fLabelProvider.getText(resource));
}
}
private static class CopyToClipboardEnablementPolicy {
private final IResource[] fResources;
private final IJavaElement[] fJavaElements;
private final IJarEntryResource[] fJarEnt... | String function(IJarEntryResource resource) { return TextProcessor.deprocess(fLabelProvider.getText(resource)); } } private static class CopyToClipboardEnablementPolicy { private final IResource[] fResources; private final IJavaElement[] fJavaElements; private final IJarEntryResource[] fJarEntryResources; public CopyTo... | /**
* Gets the name of the jar entry resource.
* @param resource the jar entry resource
* @return the name of the jar entry resource
* @since 3.6
*/ | Gets the name of the jar entry resource | getName | {
"repo_name": "elucash/eclipse-oxygen",
"path": "org.eclipse.jdt.ui/src/org/eclipse/jdt/internal/ui/refactoring/reorg/CopyToClipboardAction.java",
"license": "epl-1.0",
"size": 15273
} | [
"org.eclipse.core.resources.IResource",
"org.eclipse.core.runtime.Assert",
"org.eclipse.jdt.core.IJarEntryResource",
"org.eclipse.jdt.core.IJavaElement",
"org.eclipse.osgi.util.TextProcessor"
] | import org.eclipse.core.resources.IResource; import org.eclipse.core.runtime.Assert; import org.eclipse.jdt.core.IJarEntryResource; import org.eclipse.jdt.core.IJavaElement; import org.eclipse.osgi.util.TextProcessor; | import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*; import org.eclipse.jdt.core.*; import org.eclipse.osgi.util.*; | [
"org.eclipse.core",
"org.eclipse.jdt",
"org.eclipse.osgi"
] | org.eclipse.core; org.eclipse.jdt; org.eclipse.osgi; | 2,000,835 |
public static Path createFullyQualifiedPath(Path location) {
URI defaultUri = FileSystem.getDefaultUri(CONF);
URI locationUri = location.toUri();
// Use the default URI only if location has no scheme or it has the same scheme as
// the default URI. Otherwise, Path.makeQualified() will incorrectly use... | static Path function(Path location) { URI defaultUri = FileSystem.getDefaultUri(CONF); URI locationUri = location.toUri(); if (locationUri.getScheme() == null locationUri.getScheme().equalsIgnoreCase(defaultUri.getScheme())) { return location.makeQualified(defaultUri, location); } return location; } | /**
* Fully-qualifies the given path based on the FileSystem configuration.
*/ | Fully-qualifies the given path based on the FileSystem configuration | createFullyQualifiedPath | {
"repo_name": "924060929/impala-frontend",
"path": "fe/src/main/java/org/apache/impala/common/FileSystemUtil.java",
"license": "apache-2.0",
"size": 16351
} | [
"org.apache.hadoop.fs.FileSystem",
"org.apache.hadoop.fs.Path"
] | import org.apache.hadoop.fs.FileSystem; import org.apache.hadoop.fs.Path; | import org.apache.hadoop.fs.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 230,439 |
public void setSize(int size) {
_size = max(0,size);
// Maximum time.
_tmax = (float)(1+size);
// Half of number of samples in array of brush times; modify as necessary.
int nh = 1;
while (nh<=size)
nh += nh;
// If number of samples in array of brush times has increased,
// co... | void function(int size) { _size = max(0,size); _tmax = (float)(1+size); int nh = 1; while (nh<=size) nh += nh; if (_nh!=nh) { int nb = 1+2*nh; double db = 1.0; double fb = -nh; Sampling sb = new Sampling(nb,db,fb); _bt = new BrushTensors3(); _ts = new TimeSolver3(nb,nb,nb,_bt); _mc = new MarchingCubes(sb,sb,sb,_ts.getT... | /**
* Sets the size of this paintbrush.
* For an identity painting tensor (for which time equals distance), the
* brush size equals its radius. A brush with size zero covers only the one
* sample where it is located. The default size is ten samples.
* @param size the size.
*/ | Sets the size of this paintbrush. For an identity painting tensor (for which time equals distance), the brush size equals its radius. A brush with size zero covers only the one sample where it is located. The default size is ten samples | setSize | {
"repo_name": "chrisengelsma/3d-painting",
"path": "src/main/java/edu/mines/engelsma/paint/PaintBrush.java",
"license": "apache-2.0",
"size": 6968
} | [
"edu.mines.engelsma.util.TimeSolver3",
"edu.mines.engelsma.vis.MarchingCubes",
"edu.mines.jtk.dsp.Sampling",
"edu.mines.jtk.util.MathPlus"
] | import edu.mines.engelsma.util.TimeSolver3; import edu.mines.engelsma.vis.MarchingCubes; import edu.mines.jtk.dsp.Sampling; import edu.mines.jtk.util.MathPlus; | import edu.mines.engelsma.util.*; import edu.mines.engelsma.vis.*; import edu.mines.jtk.dsp.*; import edu.mines.jtk.util.*; | [
"edu.mines.engelsma",
"edu.mines.jtk"
] | edu.mines.engelsma; edu.mines.jtk; | 260,308 |
private static int blendColors(int color1, int color2, float ratio) {
final float inverseRation = 1f - ratio;
float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation);
float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation);
float b = (Color... | static int function(int color1, int color2, float ratio) { final float inverseRation = 1f - ratio; float r = (Color.red(color1) * ratio) + (Color.red(color2) * inverseRation); float g = (Color.green(color1) * ratio) + (Color.green(color2) * inverseRation); float b = (Color.blue(color1) * ratio) + (Color.blue(color2) * ... | /**
* Blend {@code color1} and {@code color2} using the given ratio.
*
* @param ratio of which to blend. 1.0 will return {@code color1}, 0.5 will give an even blend,
* 0.0 will return {@code color2}.
*/ | Blend color1 and color2 using the given ratio | blendColors | {
"repo_name": "idnaninitesh/expense-tracker-app",
"path": "App_28/app/src/main/java/com/codeitsuisse/team28/expensetracker/SlidingTabStrip.java",
"license": "mit",
"size": 6578
} | [
"android.graphics.Color"
] | import android.graphics.Color; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 2,422,960 |
public void setParent( LoggingObjectInterface parent ) {
this.parent = parent;
this.log = new LogChannel( this, parent );
this.logLevel = log.getLogLevel();
this.containerObjectId = log.getContainerObjectId();
if ( log.isDetailed() ) {
log.logDetailed( BaseMessages.getString( PKG, "Trans.L... | void function( LoggingObjectInterface parent ) { this.parent = parent; this.log = new LogChannel( this, parent ); this.logLevel = log.getLogLevel(); this.containerObjectId = log.getContainerObjectId(); if ( log.isDetailed() ) { log.logDetailed( BaseMessages.getString( PKG, STR ) ); } if ( log.isDebug() ) { log.logDebug... | /**
* Sets the parent logging object.
*
* @param parent
* the new parent
*/ | Sets the parent logging object | setParent | {
"repo_name": "EcoleKeine/pentaho-kettle",
"path": "engine/src/org/pentaho/di/trans/Trans.java",
"license": "apache-2.0",
"size": 194675
} | [
"org.pentaho.di.core.logging.LogChannel",
"org.pentaho.di.core.logging.LoggingObjectInterface",
"org.pentaho.di.i18n.BaseMessages"
] | import org.pentaho.di.core.logging.LogChannel; import org.pentaho.di.core.logging.LoggingObjectInterface; import org.pentaho.di.i18n.BaseMessages; | import org.pentaho.di.core.logging.*; import org.pentaho.di.i18n.*; | [
"org.pentaho.di"
] | org.pentaho.di; | 2,891,820 |
public static PdcAxisValue aPdcAxisValueFromTreeNode(final TreeNode treeNode) {
try {
List<? extends TreeNode> parents = null;
if (treeNode.hasFather()) {
PdcManager pdcManager = getPdcManager();
parents = pdcManager.getFullPath(treeNode.getFatherId(), treeNode.getTreeId());
}
... | static PdcAxisValue function(final TreeNode treeNode) { try { List<? extends TreeNode> parents = null; if (treeNode.hasFather()) { PdcManager pdcManager = getPdcManager(); parents = pdcManager.getFullPath(treeNode.getFatherId(), treeNode.getTreeId()); } return new PdcAxisValue().fromTreeNode(treeNode).withAsTreeNodePar... | /**
* Creates a value of a PdC's axis from the specified tree node. Currently, an axis of the PdC is
* persisted as an hierarchical tree in which each node is a value of the axis.
* @param treeNode the current persistence representation of the axis value.
* @return a PdC axis value.
*/ | Creates a value of a PdC's axis from the specified tree node. Currently, an axis of the PdC is persisted as an hierarchical tree in which each node is a value of the axis | aPdcAxisValueFromTreeNode | {
"repo_name": "SilverDav/Silverpeas-Core",
"path": "core-services/pdc/src/main/java/org/silverpeas/core/pdc/pdc/model/PdcAxisValue.java",
"license": "agpl-3.0",
"size": 15496
} | [
"java.util.List",
"org.silverpeas.core.pdc.pdc.service.PdcManager",
"org.silverpeas.core.pdc.tree.model.TreeNode"
] | import java.util.List; import org.silverpeas.core.pdc.pdc.service.PdcManager; import org.silverpeas.core.pdc.tree.model.TreeNode; | import java.util.*; import org.silverpeas.core.pdc.pdc.service.*; import org.silverpeas.core.pdc.tree.model.*; | [
"java.util",
"org.silverpeas.core"
] | java.util; org.silverpeas.core; | 1,284,456 |
protected boolean listHasBareTag( ArrayList<JSONObject> list )
{
for ( int i=0;i<list.size();i++ )
{
JSONObject jObj = list.get(i);
JSONObject from = (JSONObject) jObj.get("from");
if ( !from.containsKey("key") )
return true;
}
... | boolean function( ArrayList<JSONObject> list ) { for ( int i=0;i<list.size();i++ ) { JSONObject jObj = list.get(i); JSONObject from = (JSONObject) jObj.get("from"); if ( !from.containsKey("key") ) return true; } return false; } | /**
* Can the named range take no attributes?
* @param list the list of property and attribute combinations
* @return true if there is at least one definition with no attributes
*/ | Can the named range take no attributes | listHasBareTag | {
"repo_name": "schmidda/STILFilter",
"path": "src/mml/filters/Filter.java",
"license": "gpl-2.0",
"size": 14101
} | [
"java.util.ArrayList",
"org.json.simple.JSONObject"
] | import java.util.ArrayList; import org.json.simple.JSONObject; | import java.util.*; import org.json.simple.*; | [
"java.util",
"org.json.simple"
] | java.util; org.json.simple; | 1,375,543 |
public void setTimeUnit(TimeUnit timeUnit) {
this.timeUnit = timeUnit;
} | void function(TimeUnit timeUnit) { this.timeUnit = timeUnit; } | /**
* Sets the time unit to use for keep alive time
* By default SECONDS is used.
*/ | Sets the time unit to use for keep alive time By default SECONDS is used | setTimeUnit | {
"repo_name": "punkhorn/camel-upstream",
"path": "core/camel-core/src/main/java/org/apache/camel/model/ThreadPoolProfileDefinition.java",
"license": "apache-2.0",
"size": 6438
} | [
"java.util.concurrent.TimeUnit"
] | import java.util.concurrent.TimeUnit; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 309,425 |
@javax.annotation.Nullable
@ApiModelProperty(value = "Tax rate for entities with excellent level of standing, only present if this level is allowed, same for all other standing related tax rates")
public Float getExcellentStandingTaxRate() {
return excellentStandingTaxRate;
} | @javax.annotation.Nullable @ApiModelProperty(value = STR) Float function() { return excellentStandingTaxRate; } | /**
* Tax rate for entities with excellent level of standing, only present if
* this level is allowed, same for all other standing related tax rates
*
* @return excellentStandingTaxRate
**/ | Tax rate for entities with excellent level of standing, only present if this level is allowed, same for all other standing related tax rates | getExcellentStandingTaxRate | {
"repo_name": "burberius/eve-esi",
"path": "src/main/java/net/troja/eve/esi/model/CorporationCustomsOfficesResponse.java",
"license": "apache-2.0",
"size": 18746
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 1,689,542 |
public Task getTask(int id, boolean withData)
{
Cursor c = myDataBase.rawQuery(
"SELECT tasks._id AS 'id', types.name AS 'type', tasks.text_before, tasks.text_after, " +
"tasks.img_before, tasks.img_after " +
"FROM tasks " +
"JOIN types ON tasks.type_id = types._id " +
"WHERE tasks._id = " + S... | Task function(int id, boolean withData) { Cursor c = myDataBase.rawQuery( STR + STR + STR + STR + STR + String.valueOf(id), null); if (c.getCount() == 0) { Log.e(TAG, STR + String.valueOf(id)); c.close(); return null; } c.moveToNext(); Data taskData = null; String t = c.getString(c.getColumnIndex("type")); if (t.equals... | /** Extracts Task instance from database.
* @param id number of task
* @param withData if true then specific data (keypoints, GPS-data etc.) will be also extracted
* @return extracted Task; if null then desired task doesn't exist */ | Extracts Task instance from database | getTask | {
"repo_name": "andre-wojtowicz/poznan-location-based-game",
"path": "android-project/src/pl/zgora/andre/poznanlbgame/util/DataBaseHelper.java",
"license": "apache-2.0",
"size": 12472
} | [
"android.database.Cursor",
"android.util.Log",
"pl.zgora.andre.poznanlbgame.entity.Answer",
"pl.zgora.andre.poznanlbgame.entity.ArchitecturalElement",
"pl.zgora.andre.poznanlbgame.entity.Data",
"pl.zgora.andre.poznanlbgame.entity.Place",
"pl.zgora.andre.poznanlbgame.entity.Task"
] | import android.database.Cursor; import android.util.Log; import pl.zgora.andre.poznanlbgame.entity.Answer; import pl.zgora.andre.poznanlbgame.entity.ArchitecturalElement; import pl.zgora.andre.poznanlbgame.entity.Data; import pl.zgora.andre.poznanlbgame.entity.Place; import pl.zgora.andre.poznanlbgame.entity.Task; | import android.database.*; import android.util.*; import pl.zgora.andre.poznanlbgame.entity.*; | [
"android.database",
"android.util",
"pl.zgora.andre"
] | android.database; android.util; pl.zgora.andre; | 278,578 |
public TableModelClassLoaderTester cacheReset()
{
CacheMgt.get().reset(I_AD_EntityType.Table_Name);
return this;
} | TableModelClassLoaderTester function() { CacheMgt.get().reset(I_AD_EntityType.Table_Name); return this; } | /**
* Reset cache of currently loaded entity types.
*/ | Reset cache of currently loaded entity types | cacheReset | {
"repo_name": "klst-com/metasfresh",
"path": "de.metas.adempiere.adempiere/base/src/test/java/org/adempiere/ad/persistence/TableModelClassLoaderTester.java",
"license": "gpl-2.0",
"size": 3879
} | [
"org.compiere.util.CacheMgt"
] | import org.compiere.util.CacheMgt; | import org.compiere.util.*; | [
"org.compiere.util"
] | org.compiere.util; | 2,228,294 |
public IDataset getSample_orientation();
| IDataset function(); | /**
* This will follow the Busing and Levy convention from Acta.Crysta v22, p457 (1967)
* <p>
* <b>Type:</b> NX_FLOAT
* <b>Units:</b> NX_ANGLE
* <b>Dimensions:</b> 1: 3;
* </p>
*
* @return the value.
*/ | This will follow the Busing and Levy convention from Acta.Crysta v22, p457 (1967) Type: NX_FLOAT Units: NX_ANGLE Dimensions: 1: 3; | getSample_orientation | {
"repo_name": "colinpalmer/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXsample.java",
"license": "epl-1.0",
"size": 48949
} | [
"org.eclipse.dawnsci.analysis.api.dataset.IDataset"
] | import org.eclipse.dawnsci.analysis.api.dataset.IDataset; | import org.eclipse.dawnsci.analysis.api.dataset.*; | [
"org.eclipse.dawnsci"
] | org.eclipse.dawnsci; | 2,633,327 |
@Override
public PaginatedOperationWithResultKeyResponse paginatedOperationWithResultKey(
PaginatedOperationWithResultKeyRequest paginatedOperationWithResultKeyRequest) throws AwsServiceException,
SdkClientExce... | PaginatedOperationWithResultKeyResponse function( PaginatedOperationWithResultKeyRequest paginatedOperationWithResultKeyRequest) throws AwsServiceException, SdkClientException, JsonException { JsonOperationMetadata operationMetadata = JsonOperationMetadata.builder().hasStreamingSuccessResponse(false) .isPayloadJson(tru... | /**
* Some paginated operation with result_key in paginators.json file
*
* @param paginatedOperationWithResultKeyRequest
* @return Result of the PaginatedOperationWithResultKey operation returned by the service.
* @throws SdkException
* Base class for all exceptions that can be thr... | Some paginated operation with result_key in paginators.json file | paginatedOperationWithResultKey | {
"repo_name": "aws/aws-sdk-java-v2",
"path": "codegen/src/test/resources/software/amazon/awssdk/codegen/poet/client/test-json-client-class.java",
"license": "apache-2.0",
"size": 60295
} | [
"java.util.List",
"software.amazon.awssdk.awscore.exception.AwsServiceException",
"software.amazon.awssdk.core.client.handler.ClientExecutionParams",
"software.amazon.awssdk.core.exception.SdkClientException",
"software.amazon.awssdk.core.http.HttpResponseHandler",
"software.amazon.awssdk.core.metrics.Cor... | import java.util.List; import software.amazon.awssdk.awscore.exception.AwsServiceException; import software.amazon.awssdk.core.client.handler.ClientExecutionParams; import software.amazon.awssdk.core.exception.SdkClientException; import software.amazon.awssdk.core.http.HttpResponseHandler; import software.amazon.awssdk... | import java.util.*; import software.amazon.awssdk.awscore.exception.*; import software.amazon.awssdk.core.client.handler.*; import software.amazon.awssdk.core.exception.*; import software.amazon.awssdk.core.http.*; import software.amazon.awssdk.core.metrics.*; import software.amazon.awssdk.metrics.*; import software.am... | [
"java.util",
"software.amazon.awssdk"
] | java.util; software.amazon.awssdk; | 2,573,106 |
public boolean isControllerDown(int controller) {
if (controller >= getControllerCount()) {
return false;
}
if (controller == ANY_CONTROLLER) {
for (int i=0;i<controllers.size();i++) {
if (isControllerDown(i)) {
return true;
}
}
return false;
}
return ((Controller) controll... | boolean function(int controller) { if (controller >= getControllerCount()) { return false; } if (controller == ANY_CONTROLLER) { for (int i=0;i<controllers.size();i++) { if (isControllerDown(i)) { return true; } } return false; } return ((Controller) controllers.get(controller)).getYAxisValue() > 0.5f ((Controller) con... | /**
* Check if the controller has the down direction pressed
*
* @param controller The index of the controller to check
* @return True if the controller is pressed to the down
*/ | Check if the controller has the down direction pressed | isControllerDown | {
"repo_name": "ScottSWu/opsu",
"path": "src/org/newdawn/slick/Input.java",
"license": "gpl-3.0",
"size": 45136
} | [
"org.lwjgl.input.Controller"
] | import org.lwjgl.input.Controller; | import org.lwjgl.input.*; | [
"org.lwjgl.input"
] | org.lwjgl.input; | 1,437,586 |
public void reset() {
Arrays.stream(BuildParams.class.getDeclaredFields()).filter(f -> Modifier.isStatic(f.getModifiers())).forEach(f -> {
try {
// Since we are mutating private static fields from a public static inner class we need to suppress
... | void function() { Arrays.stream(BuildParams.class.getDeclaredFields()).filter(f -> Modifier.isStatic(f.getModifiers())).forEach(f -> { try { f.setAccessible(true); f.set(null, null); } catch (IllegalAccessException e) { throw new RuntimeException(e); } }); } | /**
* Resets any existing values from previous initializations.
*/ | Resets any existing values from previous initializations | reset | {
"repo_name": "robin13/elasticsearch",
"path": "buildSrc/src/main/java/org/elasticsearch/gradle/internal/info/BuildParams.java",
"license": "apache-2.0",
"size": 8777
} | [
"java.lang.reflect.Modifier",
"java.util.Arrays"
] | import java.lang.reflect.Modifier; import java.util.Arrays; | import java.lang.reflect.*; import java.util.*; | [
"java.lang",
"java.util"
] | java.lang; java.util; | 1,642,062 |
@Override
public Set<String> getTriggerNames() {
return getSQLHandler().getItemsAsStringSet("select TRIGGER_NAME from "
+ "INFORMATION_SCHEMA.TRIGGERS where TRIGGER_SCHEMA = '"
+ getSchemaName() + "'");
} | Set<String> function() { return getSQLHandler().getItemsAsStringSet(STR + STR + getSchemaName() + "'"); } | /**
* Retrieves the names of all the triggers in the database schema.
*
* @return The names of all triggers in the database
*/ | Retrieves the names of all the triggers in the database schema | getTriggerNames | {
"repo_name": "deleidos/digitaledge-platform",
"path": "test-utils/src/main/java/org/unitils/core/dbsupport/H2DbSupport.java",
"license": "apache-2.0",
"size": 21401
} | [
"java.util.Set"
] | import java.util.Set; | import java.util.*; | [
"java.util"
] | java.util; | 160,091 |
List<SupplementaryMaterialEntity> links = new ArrayList<> ();
Elements elements = document.getElementsByClass("c-article-supplementary__item");
for (Element a : elements) {
SupplementaryMaterialEntity sup = new SupplementaryMaterialEntity();
Elements urls = a.getElementsByClass("print-link");
... | List<SupplementaryMaterialEntity> links = new ArrayList<> (); Elements elements = document.getElementsByClass(STR); for (Element a : elements) { SupplementaryMaterialEntity sup = new SupplementaryMaterialEntity(); Elements urls = a.getElementsByClass(STR); if (urls.size() == 1) { Element ref = urls.get(0); if (ref.tagN... | /***
* Scan links from class <b>c-article-supplementary__item</b> <br>
* URL inside <b>a</b> element with class <b>print-link</b><br>
* Example Reconstruction and analysis of a genome-scale metabolic model of the oleaginous fungus Mortierella alpina
* <a href="https://doi.org/10.1186/s12918-014-0137-8"> htt... | Scan links from class c-article-supplementary__item URL inside a element with class print-link Example Reconstruction and analysis of a genome-scale metabolic model of the oleaginous fungus Mortierella alpina HREF | method3 | {
"repo_name": "Fxe/biosynth-framework",
"path": "biosynth-integration/src/main/java/pt/uminho/sysbio/biosynthframework/integration/literature/SpringerLinkScanner.java",
"license": "gpl-3.0",
"size": 2888
} | [
"java.util.ArrayList",
"java.util.List",
"org.jsoup.nodes.Element",
"org.jsoup.select.Elements",
"pt.uminho.sysbio.biosynthframework.SupplementaryMaterialEntity"
] | import java.util.ArrayList; import java.util.List; import org.jsoup.nodes.Element; import org.jsoup.select.Elements; import pt.uminho.sysbio.biosynthframework.SupplementaryMaterialEntity; | import java.util.*; import org.jsoup.nodes.*; import org.jsoup.select.*; import pt.uminho.sysbio.biosynthframework.*; | [
"java.util",
"org.jsoup.nodes",
"org.jsoup.select",
"pt.uminho.sysbio"
] | java.util; org.jsoup.nodes; org.jsoup.select; pt.uminho.sysbio; | 297,139 |
public void testGetEncodedValue() {
assertNull(new BasicControl("control", true, null).getEncodedValue());
// spec says the byte[] is NOT copied
byte[] test = new byte[15];
BasicControl bc = new BasicControl("control", true, test);
assertSame(test, bc.getEncodedValue()... | void function() { assertNull(new BasicControl(STR, true, null).getEncodedValue()); byte[] test = new byte[15]; BasicControl bc = new BasicControl(STR, true, test); assertSame(test, bc.getEncodedValue()); } | /**
* <p>
* Test method for 'javax.naming.ldap.BasicControl.getEncodedValue()'
* </p>
* <p>
* Here we are testing the return method of the encoded value of
* BasicControl. In this case we send an encoded value null.
* </p>
* <p>
* The expected result is a null encod... | Test method for 'javax.naming.ldap.BasicControl.getEncodedValue()' Here we are testing the return method of the encoded value of BasicControl. In this case we send an encoded value null. The expected result is a null encoded value. | testGetEncodedValue | {
"repo_name": "skyHALud/codenameone",
"path": "Ports/iOSPort/xmlvm/apache-harmony-6.0-src-r991881/classlib/modules/jndi/src/test/java/org/apache/harmony/jndi/tests/javax/naming/ldap/BasicControlTest.java",
"license": "gpl-2.0",
"size": 2902
} | [
"javax.naming.ldap.BasicControl"
] | import javax.naming.ldap.BasicControl; | import javax.naming.ldap.*; | [
"javax.naming"
] | javax.naming; | 255,839 |
public static boolean isBigDecCategory(ClassNode type) {
return type==BigDecimal_TYPE || isBigIntCategory(type);
} | static boolean function(ClassNode type) { return type==BigDecimal_TYPE isBigIntCategory(type); } | /**
* It is of a BigDecimal category, if the provided type is a
* BigInteger category or a BigDecimal.
*/ | It is of a BigDecimal category, if the provided type is a BigInteger category or a BigDecimal | isBigDecCategory | {
"repo_name": "avafanasiev/groovy",
"path": "src/main/org/codehaus/groovy/ast/tools/WideningCategories.java",
"license": "apache-2.0",
"size": 33847
} | [
"org.codehaus.groovy.ast.ClassNode"
] | import org.codehaus.groovy.ast.ClassNode; | import org.codehaus.groovy.ast.*; | [
"org.codehaus.groovy"
] | org.codehaus.groovy; | 2,064,784 |
void endChildInfo() throws RepositoryException; | void endChildInfo() throws RepositoryException; | /**
* Informs this importer about the end of a child info.
* <p/>
* If {@link #start(Tree)} hasn't been called before, this method returns
* silently.
*
* @throws IllegalStateException If end is called in an illegal state.
* @throws javax.jcr.nodetype.ConstraintViolationException If t... | Informs this importer about the end of a child info. If <code>#start(Tree)</code> hasn't been called before, this method returns silently | endChildInfo | {
"repo_name": "denismo/jackrabbit-dynamodb-store",
"path": "oak-core/src/main/java/org/apache/jackrabbit/oak/spi/xml/ProtectedNodeImporter.java",
"license": "apache-2.0",
"size": 5223
} | [
"javax.jcr.RepositoryException"
] | import javax.jcr.RepositoryException; | import javax.jcr.*; | [
"javax.jcr"
] | javax.jcr; | 694,216 |
public void setSelection(ISelection selection) {
editorSelection = selection;
for (ISelectionChangedListener listener : selectionChangedListeners) {
listener.selectionChanged(new SelectionChangedEvent(this, selection));
}
setStatusLineManager(selection);
} | void function(ISelection selection) { editorSelection = selection; for (ISelectionChangedListener listener : selectionChangedListeners) { listener.selectionChanged(new SelectionChangedEvent(this, selection)); } setStatusLineManager(selection); } | /**
* This implements {@link org.eclipse.jface.viewers.ISelectionProvider} to set this editor's overall selection.
* Calling this result will notify the listeners.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/ | This implements <code>org.eclipse.jface.viewers.ISelectionProvider</code> to set this editor's overall selection. Calling this result will notify the listeners. | setSelection | {
"repo_name": "ylussaud/M2Doc",
"path": "plugins/org.obeonetwork.m2doc.genconf.editor/src-gen/org/obeonetwork/m2doc/genconf/presentation/GenconfEditor.java",
"license": "epl-1.0",
"size": 76057
} | [
"org.eclipse.jface.viewers.ISelection",
"org.eclipse.jface.viewers.ISelectionChangedListener",
"org.eclipse.jface.viewers.SelectionChangedEvent"
] | import org.eclipse.jface.viewers.ISelection; import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.SelectionChangedEvent; | import org.eclipse.jface.viewers.*; | [
"org.eclipse.jface"
] | org.eclipse.jface; | 1,836,607 |
@Nullable
public static LivingEntity getClosestLivingEntity(Entity sourceEntity, double radius) {
return getClosestLivingEntity(sourceEntity, radius, radius, radius, null);
} | static LivingEntity function(Entity sourceEntity, double radius) { return getClosestLivingEntity(sourceEntity, radius, radius, radius, null); } | /**
* Get the closest {@link org.bukkit.entity.LivingEntity} to the specified source
* {@link org.bukkit.entity.Entity}.
*
* <p>The radius is spherical.</p>
*
* <p>Does not include Npc's if validator is not specified.</p>
*
* @param sourceEntity The entity source to search from.... | Get the closest <code>org.bukkit.entity.LivingEntity</code> to the specified source <code>org.bukkit.entity.Entity</code>. The radius is spherical. Does not include Npc's if validator is not specified | getClosestLivingEntity | {
"repo_name": "JCThePants/NucleusFramework",
"path": "src/com/jcwhatever/nucleus/utils/entity/EntityUtils.java",
"license": "mit",
"size": 45515
} | [
"org.bukkit.entity.Entity",
"org.bukkit.entity.LivingEntity"
] | import org.bukkit.entity.Entity; import org.bukkit.entity.LivingEntity; | import org.bukkit.entity.*; | [
"org.bukkit.entity"
] | org.bukkit.entity; | 2,214,534 |
TaskExplorer getTaskExplorer(); | TaskExplorer getTaskExplorer(); | /**
* Create a {@link TaskExplorer} for the task.
* @return a <code>TaskExplorer</code>
*/ | Create a <code>TaskExplorer</code> for the task | getTaskExplorer | {
"repo_name": "mminella/spring-cloud-task",
"path": "spring-cloud-task-core/src/main/java/org/springframework/cloud/task/configuration/TaskConfigurer.java",
"license": "apache-2.0",
"size": 2011
} | [
"org.springframework.cloud.task.repository.TaskExplorer"
] | import org.springframework.cloud.task.repository.TaskExplorer; | import org.springframework.cloud.task.repository.*; | [
"org.springframework.cloud"
] | org.springframework.cloud; | 636,951 |
public static PairOfSameType<HRegionInfo> getMergeRegions(Result data) throws IOException {
HRegionInfo mergeA = getHRegionInfo(data, HConstants.MERGEA_QUALIFIER);
HRegionInfo mergeB = getHRegionInfo(data, HConstants.MERGEB_QUALIFIER);
return new PairOfSameType<HRegionInfo>(mergeA, mergeB);
} | static PairOfSameType<HRegionInfo> function(Result data) throws IOException { HRegionInfo mergeA = getHRegionInfo(data, HConstants.MERGEA_QUALIFIER); HRegionInfo mergeB = getHRegionInfo(data, HConstants.MERGEB_QUALIFIER); return new PairOfSameType<HRegionInfo>(mergeA, mergeB); } | /**
* Returns the merge regions by reading the corresponding columns of the catalog table
* Result.
* @param data a Result object from the catalog table scan
* @return a pair of HRegionInfo or PairOfSameType(null, null) if the region is not a split
* parent
*/ | Returns the merge regions by reading the corresponding columns of the catalog table Result | getMergeRegions | {
"repo_name": "mapr/hbase",
"path": "hbase-client/src/main/java/org/apache/hadoop/hbase/HRegionInfo.java",
"license": "apache-2.0",
"size": 41144
} | [
"java.io.IOException",
"org.apache.hadoop.hbase.client.Result",
"org.apache.hadoop.hbase.util.PairOfSameType"
] | import java.io.IOException; import org.apache.hadoop.hbase.client.Result; import org.apache.hadoop.hbase.util.PairOfSameType; | import java.io.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 824,662 |
void setCursorPosition(int row, int column) throws IOException; | void setCursorPosition(int row, int column) throws IOException; | /**
* Move the cursor to the defined row and column.
*
* @param row
* the row to move the cursor to.
* @param column
* the column to move the cursor to.
* @throws IOException
* exception
*/ | Move the cursor to the defined row and column | setCursorPosition | {
"repo_name": "mirage22/robo4j",
"path": "robo4j-hw-rpi/src/main/java/com/robo4j/hw/rpi/i2c/adafruitlcd/AdafruitLcd.java",
"license": "gpl-3.0",
"size": 6061
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 459,769 |
public SolrQuery addDateRangeFacet(String field, Date start, Date end, String gap) {
add(FacetParams.FACET_RANGE, field);
add(String.format("f.%s.%s", field, FacetParams.FACET_RANGE_START), DateUtil.getThreadLocalDateFormat().format(start));
add(String.format("f.%s.%s", field, FacetParams.FACET_RANGE_END)... | SolrQuery function(String field, Date start, Date end, String gap) { add(FacetParams.FACET_RANGE, field); add(String.format(STR, field, FacetParams.FACET_RANGE_START), DateUtil.getThreadLocalDateFormat().format(start)); add(String.format(STR, field, FacetParams.FACET_RANGE_END), DateUtil.getThreadLocalDateFormat().form... | /**
* Add a numeric range facet.
*
* @param field The field
* @param start The start of range
* @param end The end of the range
* @param gap The gap between each count
* @return this
*/ | Add a numeric range facet | addDateRangeFacet | {
"repo_name": "Lythimus/lptv",
"path": "apache-solr-3.6.0/solr/solrj/src/java/org/apache/solr/client/solrj/SolrQuery.java",
"license": "gpl-2.0",
"size": 22044
} | [
"java.util.Date",
"org.apache.solr.common.params.FacetParams",
"org.apache.solr.common.util.DateUtil"
] | import java.util.Date; import org.apache.solr.common.params.FacetParams; import org.apache.solr.common.util.DateUtil; | import java.util.*; import org.apache.solr.common.params.*; import org.apache.solr.common.util.*; | [
"java.util",
"org.apache.solr"
] | java.util; org.apache.solr; | 1,713,022 |
public void createVolume(FileAccessManager faMan, String volumeId, String volumeName,
short fileAccessPolicyId, String ownerId, String owningGroupId, StripingPolicy defaultStripingPolicy,
int initialAccessMode, List<KeyValuePair> attrs) throws UserException, DatabaseException; | void function(FileAccessManager faMan, String volumeId, String volumeName, short fileAccessPolicyId, String ownerId, String owningGroupId, StripingPolicy defaultStripingPolicy, int initialAccessMode, List<KeyValuePair> attrs) throws UserException, DatabaseException; | /**
* Creates a new volume.
*
* @param faMan
* the file access manager
* @param volumeId
* the volume ID
* @param volumeName
* the volume name
* @param fileAccessPolicyId
* the access policy
* @param ownerId
* ... | Creates a new volume | createVolume | {
"repo_name": "stanik137/xtreemfs",
"path": "java/servers/src/org/xtreemfs/mrc/database/VolumeManager.java",
"license": "bsd-3-clause",
"size": 7297
} | [
"java.util.List",
"org.xtreemfs.mrc.UserException",
"org.xtreemfs.mrc.ac.FileAccessManager",
"org.xtreemfs.pbrpc.generatedinterfaces.GlobalTypes"
] | import java.util.List; import org.xtreemfs.mrc.UserException; import org.xtreemfs.mrc.ac.FileAccessManager; import org.xtreemfs.pbrpc.generatedinterfaces.GlobalTypes; | import java.util.*; import org.xtreemfs.mrc.*; import org.xtreemfs.mrc.ac.*; import org.xtreemfs.pbrpc.generatedinterfaces.*; | [
"java.util",
"org.xtreemfs.mrc",
"org.xtreemfs.pbrpc"
] | java.util; org.xtreemfs.mrc; org.xtreemfs.pbrpc; | 1,858,984 |
List<OrganisationUnit> getOrganisationUnitsWithChildren( Collection<String> uids, Integer maxLevels );
| List<OrganisationUnit> getOrganisationUnitsWithChildren( Collection<String> uids, Integer maxLevels ); | /**
* Returns the OrganisationUnits and all their children.
*
* @param uids the uids of the parent OrganisationUnits.
* @param maxLevels the max number of levels to return relative to
* the given root, inclusive.
* @return a list containing the OrganisationUnit ... | Returns the OrganisationUnits and all their children | getOrganisationUnitsWithChildren | {
"repo_name": "uonafya/jphes-core",
"path": "dhis-2/dhis-api/src/main/java/org/hisp/dhis/organisationunit/OrganisationUnitService.java",
"license": "bsd-3-clause",
"size": 18048
} | [
"java.util.Collection",
"java.util.List"
] | import java.util.Collection; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,312,392 |
protected void addDescriptionPropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_MediatorSequence_description_feature"),
getString("_UI_Property... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.MEDIATOR_SEQUENCE__DESCRIPTION, true, false, false, ItemPropertyDescriptor.GE... | /**
* This adds a property descriptor for the Description feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds a property descriptor for the Description feature. | addDescriptionPropertyDescriptor | {
"repo_name": "sohaniwso2/devstudio-tooling-esb",
"path": "plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/MediatorSequenceItemProvider.java",
"license": "apache-2.0",
"size": 7386
} | [
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor",
"org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage"
] | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.wso2.developerstudio.eclipse.gmf.esb.EsbPackage; | import org.eclipse.emf.edit.provider.*; import org.wso2.developerstudio.eclipse.gmf.esb.*; | [
"org.eclipse.emf",
"org.wso2.developerstudio"
] | org.eclipse.emf; org.wso2.developerstudio; | 662,876 |
public int write(@NonNull byte[] buf, int len) throws LastErrorException {
return libc.write(fd, ByteBuffer.wrap(buf), len);
} | int function(@NonNull byte[] buf, int len) throws LastErrorException { return libc.write(fd, ByteBuffer.wrap(buf), len); } | /**
* Attempt to write the requested number of bytes to the associated file.
*
* @param buf location to store the read bytes
* @param len number of bytes to attempt to read
* @return number of bytes read
* @throws LastErrorException when operations fails
*/ | Attempt to write the requested number of bytes to the associated file | write | {
"repo_name": "jabrena/ev3dev-lang-java",
"path": "src/main/java/ev3dev/utils/io/NativeFile.java",
"license": "mit",
"size": 9209
} | [
"com.sun.jna.LastErrorException",
"java.nio.ByteBuffer"
] | import com.sun.jna.LastErrorException; import java.nio.ByteBuffer; | import com.sun.jna.*; import java.nio.*; | [
"com.sun.jna",
"java.nio"
] | com.sun.jna; java.nio; | 2,500,234 |
String bus;
if (uiEvent) {
bus = "UI_BUS";
} else {
bus = "BUS";
}
if (verbose) {
Log.i(LOG_TAG, "posting " + ev.getClass().getSimpleName() + " of type " + ev.getClass().getAnnotation(Event.class).type() + " on " + bus);
}
} | String bus; if (uiEvent) { bus = STR; } else { bus = "BUS"; } if (verbose) { Log.i(LOG_TAG, STR + ev.getClass().getSimpleName() + STR + ev.getClass().getAnnotation(Event.class).type() + STR + bus); } } | /**
* Convenience method used for debugging purposes. It will log what kind of event is being posted on what Bus.
*
* @param ev The event being posted
* @param uiEvent whether it's a UI event or not.
*/ | Convenience method used for debugging purposes. It will log what kind of event is being posted on what Bus | logEvent | {
"repo_name": "SysdataItaliaSpA/EventDispatcher",
"path": "baseandroid-rxeventdispatcher/src/main/java/com/baseandroid/events/rx/RxEventProcessor.java",
"license": "apache-2.0",
"size": 11155
} | [
"android.util.Log",
"com.baseandroid.events.Event"
] | import android.util.Log; import com.baseandroid.events.Event; | import android.util.*; import com.baseandroid.events.*; | [
"android.util",
"com.baseandroid.events"
] | android.util; com.baseandroid.events; | 1,323,464 |
public int update(Connection conn, String sql, Object[] params)
throws SQLException {
return update(conn, sql, params, null);
} | int function(Connection conn, String sql, Object[] params) throws SQLException { return update(conn, sql, params, null); } | /**
* Execute an SQL INSERT, UPDATE, or DELETE query.
*
* @param conn The connection to use to run the query.
* @param sql The SQL to execute.
* @param params The query replacement parameters.
* @return The number of rows updated.
* @throws SQLException if a database access error occu... | Execute an SQL INSERT, UPDATE, or DELETE query | update | {
"repo_name": "dimone-kun/cuba",
"path": "modules/global/src/com/haulmont/bali/db/QueryRunner.java",
"license": "apache-2.0",
"size": 24467
} | [
"java.sql.Connection",
"java.sql.SQLException"
] | import java.sql.Connection; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 112,523 |
if (txnMgr instanceof RemoteMethodControl) {
return new ConstrainableTxnMgrProxy(check(txnMgr, id), id, null);
} else {
return new TxnMgrProxy(check(txnMgr, id), id);
}
}
private TxnMgrProxy(TxnManager txnMgr, Uuid id) {
this.backend = txnMgr;
this.proxyI... | if (txnMgr instanceof RemoteMethodControl) { return new ConstrainableTxnMgrProxy(check(txnMgr, id), id, null); } else { return new TxnMgrProxy(check(txnMgr, id), id); } } private TxnMgrProxy(TxnManager txnMgr, Uuid id) { this.backend = txnMgr; this.proxyID = id; } TxnMgrProxy (GetArg arg) throws IOException, ClassNotFo... | /**
* Creates a transaction manager proxy, returning an instance
* that implements RemoteMethodControl if the server does too.
*
* @param txnMgr the server proxy
* @param id the ID of the server
*/ | Creates a transaction manager proxy, returning an instance that implements RemoteMethodControl if the server does too | create | {
"repo_name": "pfirmstone/river-internet",
"path": "JGDMS/services/mahalo/mahalo-dl/src/main/java/org/apache/river/mahalo/proxy/TxnMgrProxy.java",
"license": "apache-2.0",
"size": 12222
} | [
"java.io.IOException",
"net.jini.core.constraint.RemoteMethodControl",
"net.jini.id.Uuid",
"org.apache.river.api.io.AtomicSerial"
] | import java.io.IOException; import net.jini.core.constraint.RemoteMethodControl; import net.jini.id.Uuid; import org.apache.river.api.io.AtomicSerial; | import java.io.*; import net.jini.core.constraint.*; import net.jini.id.*; import org.apache.river.api.io.*; | [
"java.io",
"net.jini.core",
"net.jini.id",
"org.apache.river"
] | java.io; net.jini.core; net.jini.id; org.apache.river; | 6,086 |
@NotNull private ServiceConfiguration dotnetConfiguration(BinaryRawReaderEx reader) {
ServiceConfiguration cfg = new ServiceConfiguration();
cfg.setName(reader.readString());
cfg.setService(new PlatformDotNetServiceImpl(reader.readObjectDetached(), platformCtx, srvKeepBinary));
cfg.... | @NotNull ServiceConfiguration function(BinaryRawReaderEx reader) { ServiceConfiguration cfg = new ServiceConfiguration(); cfg.setName(reader.readString()); cfg.setService(new PlatformDotNetServiceImpl(reader.readObjectDetached(), platformCtx, srvKeepBinary)); cfg.setTotalCount(reader.readInt()); cfg.setMaxPerNodeCount(... | /**
* Read the dotnet service configuration.
*
* @param reader Binary reader,
* @return Service configuration.
*/ | Read the dotnet service configuration | dotnetConfiguration | {
"repo_name": "ascherbakoff/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/platform/services/PlatformServices.java",
"license": "apache-2.0",
"size": 27586
} | [
"org.apache.ignite.internal.binary.BinaryRawReaderEx",
"org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl",
"org.apache.ignite.services.ServiceConfiguration",
"org.jetbrains.annotations.NotNull"
] | import org.apache.ignite.internal.binary.BinaryRawReaderEx; import org.apache.ignite.internal.processors.platform.dotnet.PlatformDotNetServiceImpl; import org.apache.ignite.services.ServiceConfiguration; import org.jetbrains.annotations.NotNull; | import org.apache.ignite.internal.binary.*; import org.apache.ignite.internal.processors.platform.dotnet.*; import org.apache.ignite.services.*; import org.jetbrains.annotations.*; | [
"org.apache.ignite",
"org.jetbrains.annotations"
] | org.apache.ignite; org.jetbrains.annotations; | 1,295,851 |
// instantiate, configure and return production DataSource
final BoneCPDataSource dataSource = new BoneCPDataSource();
dataSource.setDriverClass("com.mysql.jdbc.Driver");
dataSource.setJdbcUrl("jdbc:mysql://localhost:3306/test");
dataSource.setIdleConnectionTestPeriodInMinutes(1);
... | final BoneCPDataSource dataSource = new BoneCPDataSource(); dataSource.setDriverClass(STR); dataSource.setJdbcUrl(STRrootSTRadmin"); dataSource.setCloseOpenStatements(true); dataSource.setIdleMaxAgeInMinutes(1); dataSource.setMaxConnectionsPerPartition(100); dataSource.setMinConnectionsPerPartition(50); dataSource.setP... | /**
* spring boot looks for the bean with name 'dataSource'.if not found it will check application.properties from the class-path try to create one dataSource
* with the given properties.
*
* @return DataSource
*/ | spring boot looks for the bean with name 'dataSource'.if not found it will check application.properties from the class-path try to create one dataSource with the given properties | dataSource | {
"repo_name": "trvajjala/interview-preparation",
"path": "spring-web-practice/src/main/java/com/tvajjala/web/config/DatabaseConfig.java",
"license": "apache-2.0",
"size": 10370
} | [
"com.jolbox.bonecp.BoneCPDataSource"
] | import com.jolbox.bonecp.BoneCPDataSource; | import com.jolbox.bonecp.*; | [
"com.jolbox.bonecp"
] | com.jolbox.bonecp; | 302,495 |
return EmailsRecord.class;
}
public final TableField<EmailsRecord, String> ID = createField("id", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, "");
public final TableField<EmailsRecord, Timestamp> DATE_ENTERED = createField("date_entered", org.jooq.impl.SQLDataType.TIMESTAMP,... | return EmailsRecord.class; } public final TableField<EmailsRecord, String> ID = createField("id", org.jooq.impl.SQLDataType.CHAR.length(36).nullable(false), this, STRdate_enteredSTRSTRdate_modifiedSTRSTRassigned_user_idSTRSTRmodified_user_idSTRSTRcreated_bySTRSTRdeletedSTRSTRdate_sentSTRSTRmessage_idSTRSTRnameSTRSTRtyp... | /**
* The class holding records for this type
*/ | The class holding records for this type | getRecordType | {
"repo_name": "SmartMedicalServices/SpringJOOQ",
"path": "src/main/java/com/sms/sis/db/tables/Emails.java",
"license": "gpl-3.0",
"size": 6512
} | [
"com.sms.sis.db.tables.records.EmailsRecord",
"org.jooq.TableField"
] | import com.sms.sis.db.tables.records.EmailsRecord; import org.jooq.TableField; | import com.sms.sis.db.tables.records.*; import org.jooq.*; | [
"com.sms.sis",
"org.jooq"
] | com.sms.sis; org.jooq; | 1,796,436 |
public void valueChanged(ListSelectionEvent e) {
JList list = (JList) e.getSource();
if(list.getSelectedValue() != null){
ContentName groupContentName = (ContentName) list.getSelectedValue();
selectedGroupFriendlyName = Component.printNative(groupContentName.lastComponent());
membersToAdd = new ArrayL... | void function(ListSelectionEvent e) { JList list = (JList) e.getSource(); if(list.getSelectedValue() != null){ ContentName groupContentName = (ContentName) list.getSelectedValue(); selectedGroupFriendlyName = Component.printNative(groupContentName.lastComponent()); membersToAdd = new ArrayList<Link>(); membersToRemove ... | /**
* Display the membership list and the list of principals that can be added
* to the selected group.
*/ | Display the membership list and the list of principals that can be added to the selected group | valueChanged | {
"repo_name": "MobileCloudNetworking/icnaas",
"path": "mcn-ccn-router/ccnx-0.8.2/javasrc/src/main/org/ccnx/ccn/utils/explorer/GroupManagerGUI.java",
"license": "apache-2.0",
"size": 17914
} | [
"java.util.ArrayList",
"javax.swing.JList",
"javax.swing.event.ListSelectionEvent",
"org.ccnx.ccn.io.content.Link",
"org.ccnx.ccn.protocol.Component",
"org.ccnx.ccn.protocol.ContentName"
] | import java.util.ArrayList; import javax.swing.JList; import javax.swing.event.ListSelectionEvent; import org.ccnx.ccn.io.content.Link; import org.ccnx.ccn.protocol.Component; import org.ccnx.ccn.protocol.ContentName; | import java.util.*; import javax.swing.*; import javax.swing.event.*; import org.ccnx.ccn.io.content.*; import org.ccnx.ccn.protocol.*; | [
"java.util",
"javax.swing",
"org.ccnx.ccn"
] | java.util; javax.swing; org.ccnx.ccn; | 2,683,243 |
private boolean isRecordStoreOwner() {
int currentId = MIDletStateHandler.getMidletStateHandler().
getMIDletSuite().getID();
return (suiteId == currentId);
} | boolean function() { int currentId = MIDletStateHandler.getMidletStateHandler(). getMIDletSuite().getID(); return (suiteId == currentId); } | /**
* Internal method to check record store owner vs. the vendor and suite
* of the currently running midlet
*
* @return <code>true</code> if vendor and suite name both match,
* <code>false</code> otherwise
*/ | Internal method to check record store owner vs. the vendor and suite of the currently running midlet | isRecordStoreOwner | {
"repo_name": "sics-sse/moped",
"path": "squawk/phoneme/midp/src/rms/rms_api/reference/classes/javax/microedition/rms/RecordStore.java",
"license": "gpl-2.0",
"size": 49326
} | [
"com.sun.midp.midlet.MIDletStateHandler"
] | import com.sun.midp.midlet.MIDletStateHandler; | import com.sun.midp.midlet.*; | [
"com.sun.midp"
] | com.sun.midp; | 2,892,864 |
EClass getLogicStandAloneFunction(); | EClass getLogicStandAloneFunction(); | /**
* Returns the meta object for class '{@link org.tud.inf.st.mbt.functions.LogicStandAloneFunction <em>Logic Stand Alone Function</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Logic Stand Alone Function</em>'.
* @see org.tud.inf.st.mbt.functions.LogicStan... | Returns the meta object for class '<code>org.tud.inf.st.mbt.functions.LogicStandAloneFunction Logic Stand Alone Function</code>'. | getLogicStandAloneFunction | {
"repo_name": "paetti1988/qmate",
"path": "MATE/org.tud.inf.st.mbt.emf/src-gen/org/tud/inf/st/mbt/functions/FunctionsPackage.java",
"license": "apache-2.0",
"size": 134465
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,666,095 |
void file(String name, Owner owner, int mode, Content content) throws IOException; | void file(String name, Owner owner, int mode, Content content) throws IOException; | /**
* Write a file to the content.
* @param name the full name of the file to add
* @param owner the owner of the file
* @param mode the permissions for the file
* @param content the content to add
* @throws IOException on IO error
*/ | Write a file to the content | file | {
"repo_name": "aahlenst/spring-boot",
"path": "spring-boot-project/spring-boot-tools/spring-boot-buildpack-platform/src/main/java/org/springframework/boot/buildpack/platform/io/Layout.java",
"license": "apache-2.0",
"size": 2128
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 34,638 |
public boolean supportsFunction(SqlOperator operator, RelDataType type,
List<RelDataType> paramTypes) {
switch (operator.kind) {
case AND:
case BETWEEN:
case CASE:
case CAST:
case CEIL:
case COALESCE:
case DIVIDE:
case EQUALS:
case FLOOR:
case GREATER_THAN:
case G... | boolean function(SqlOperator operator, RelDataType type, List<RelDataType> paramTypes) { switch (operator.kind) { case AND: case BETWEEN: case CASE: case CAST: case CEIL: case COALESCE: case DIVIDE: case EQUALS: case FLOOR: case GREATER_THAN: case GREATER_THAN_OR_EQUAL: case IN: case IS_NULL: case IS_NOT_NULL: case LES... | /** Returns whether this dialect supports a given function or operator.
* It only applies to built-in scalar functions and operators, since
* user-defined functions and procedures should be read by JdbcSchema. */ | Returns whether this dialect supports a given function or operator. It only applies to built-in scalar functions and operators, since | supportsFunction | {
"repo_name": "datametica/calcite",
"path": "core/src/main/java/org/apache/calcite/sql/SqlDialect.java",
"license": "apache-2.0",
"size": 69008
} | [
"java.util.List",
"org.apache.calcite.rel.type.RelDataType"
] | import java.util.List; import org.apache.calcite.rel.type.RelDataType; | import java.util.*; import org.apache.calcite.rel.type.*; | [
"java.util",
"org.apache.calcite"
] | java.util; org.apache.calcite; | 351,525 |
@Input
public Property<Boolean> getDebuggable() {
return debuggable;
} | Property<Boolean> function() { return debuggable; } | /**
* Create a debuggable binary?
*
* @since 4.7
*/ | Create a debuggable binary | getDebuggable | {
"repo_name": "robinverduijn/gradle",
"path": "subprojects/platform-native/src/main/java/org/gradle/nativeplatform/tasks/AbstractLinkTask.java",
"license": "apache-2.0",
"size": 8882
} | [
"org.gradle.api.provider.Property"
] | import org.gradle.api.provider.Property; | import org.gradle.api.provider.*; | [
"org.gradle.api"
] | org.gradle.api; | 1,849,671 |
public void setFilteredApplications(List<Application> filteredApplications) {
this.filteredApplications = filteredApplications;
}
/**
* Gets the value of {@link #images}.
* @return value of {@link #images} | void function(List<Application> filteredApplications) { this.filteredApplications = filteredApplications; } /** * Gets the value of {@link #images}. * @return value of {@link #images} | /**
* Sets the value of {@link #filteredApplications}.
*
* @param filteredApplications
* - value
*/ | Sets the value of <code>#filteredApplications</code> | setFilteredApplications | {
"repo_name": "ow2-xlcloud/vcms",
"path": "vcms-gui/modules/accounts/src/main/java/org/xlcloud/console/accounts/controllers/AccountBean.java",
"license": "apache-2.0",
"size": 16571
} | [
"java.util.List",
"org.xlcloud.service.Application"
] | import java.util.List; import org.xlcloud.service.Application; | import java.util.*; import org.xlcloud.service.*; | [
"java.util",
"org.xlcloud.service"
] | java.util; org.xlcloud.service; | 2,512,210 |
void reuse_entries_after_cutout(PolylineTrace p_from_trace, PolylineTrace p_start_piece, PolylineTrace p_end_piece)
{
for (ShapeSearchTree curr_tree : compensated_search_trees)
{
curr_tree.reuse_entries_after_cutout(p_from_trace, p_start_piece, p_end_piece);
}
... | void reuse_entries_after_cutout(PolylineTrace p_from_trace, PolylineTrace p_start_piece, PolylineTrace p_end_piece) { for (ShapeSearchTree curr_tree : compensated_search_trees) { curr_tree.reuse_entries_after_cutout(p_from_trace, p_start_piece, p_end_piece); } } private final Collection<ShapeSearchTree> compensated_sea... | /**
* Trannsfers tree entries from p_from_trace to p_start and p_end_piece
* after a moddle piece was cut out.
* Special implementation for ShapeTraceEntries.fast_cutout_trace for performance reasoms.
*/ | Trannsfers tree entries from p_from_trace to p_start and p_end_piece after a moddle piece was cut out. Special implementation for ShapeTraceEntries.fast_cutout_trace for performance reasoms | reuse_entries_after_cutout | {
"repo_name": "shimmy1996/freerouting-1",
"path": "src/board/SearchTreeManager.java",
"license": "gpl-3.0",
"size": 11699
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 799,860 |
private int deriveSinkParallelism(
Transformation<RowData> inputTransform, SinkRuntimeProvider runtimeProvider) {
final int inputParallelism = inputTransform.getParallelism();
if (!(runtimeProvider instanceof ParallelismProvider)) {
return inputParallelism;
}
... | int function( Transformation<RowData> inputTransform, SinkRuntimeProvider runtimeProvider) { final int inputParallelism = inputTransform.getParallelism(); if (!(runtimeProvider instanceof ParallelismProvider)) { return inputParallelism; } final ParallelismProvider parallelismProvider = (ParallelismProvider) runtimeProv... | /**
* Returns the parallelism of sink operator, it assumes the sink runtime provider implements
* {@link ParallelismProvider}. It returns parallelism defined in {@link ParallelismProvider} if
* the parallelism is provided, otherwise it uses parallelism of input transformation.
*/ | Returns the parallelism of sink operator, it assumes the sink runtime provider implements <code>ParallelismProvider</code>. It returns parallelism defined in <code>ParallelismProvider</code> if the parallelism is provided, otherwise it uses parallelism of input transformation | deriveSinkParallelism | {
"repo_name": "godfreyhe/flink",
"path": "flink-table/flink-table-planner/src/main/java/org/apache/flink/table/planner/plan/nodes/exec/common/CommonExecSink.java",
"license": "apache-2.0",
"size": 29941
} | [
"org.apache.flink.api.dag.Transformation",
"org.apache.flink.table.api.TableException",
"org.apache.flink.table.connector.ParallelismProvider",
"org.apache.flink.table.connector.sink.DynamicTableSink",
"org.apache.flink.table.data.RowData"
] | import org.apache.flink.api.dag.Transformation; import org.apache.flink.table.api.TableException; import org.apache.flink.table.connector.ParallelismProvider; import org.apache.flink.table.connector.sink.DynamicTableSink; import org.apache.flink.table.data.RowData; | import org.apache.flink.api.dag.*; import org.apache.flink.table.api.*; import org.apache.flink.table.connector.*; import org.apache.flink.table.connector.sink.*; import org.apache.flink.table.data.*; | [
"org.apache.flink"
] | org.apache.flink; | 2,877,594 |
Convert.intoList(null);
} | Convert.intoList(null); } | /**
* Tests {@link Convert#intoList(Object)} with null.
*/ | Tests <code>Convert#intoList(Object)</code> with null | intoListNull | {
"repo_name": "cosmocode/cosmocode-commons",
"path": "src/test/java/de/cosmocode/collections/utility/convert/ConvertListTest.java",
"license": "apache-2.0",
"size": 4008
} | [
"de.cosmocode.collections.utility.Convert"
] | import de.cosmocode.collections.utility.Convert; | import de.cosmocode.collections.utility.*; | [
"de.cosmocode.collections"
] | de.cosmocode.collections; | 2,541,211 |
public static Locale getCurrentLocale() {
return currentLocale;
}
| static Locale function() { return currentLocale; } | /**
* Gets the current <code>Locale</code>. The current Locale will be set if the user selects
* one, or when calling <ode>registerDictionaries</code>.
* @return the current <code>Locale</code> or null if none is set.
* @see #registerDictionaries(URL, String, String)
*/ | Gets the current <code>Locale</code>. The current Locale will be set if the user selects one, or when calling registerDictionaries</code> | getCurrentLocale | {
"repo_name": "SDX2000/freeplane",
"path": "JOrtho_0.4_freeplane/src/com/inet/jortho/SpellChecker.java",
"license": "gpl-2.0",
"size": 27117
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 496,057 |
public static int execute(String programName,
PrintWriter errWriter,
PrintWriter warnWriter,
PrintWriter noticeWriter,
String defaultDocletClassName,
ClassLoader docl... | static int function(String programName, PrintWriter errWriter, PrintWriter warnWriter, PrintWriter noticeWriter, String defaultDocletClassName, ClassLoader docletParentClassLoader, String... args) { Start jdoc = new Start(programName, errWriter, warnWriter, noticeWriter, defaultDocletClassName, docletParentClassLoader)... | /**
* Programmatic interface.
* @param programName Name of the program (for error messages).
* @param errWriter PrintWriter to receive error messages.
* @param warnWriter PrintWriter to receive error messages.
* @param noticeWriter PrintWriter to receive error messages.
* @param ... | Programmatic interface | execute | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk2/langtools/src/share/classes/com/sun/tools/javadoc/Main.java",
"license": "mit",
"size": 7538
} | [
"java.io.PrintWriter"
] | import java.io.PrintWriter; | import java.io.*; | [
"java.io"
] | java.io; | 371,763 |
public ConglomerateDescriptor getConglomerateDescriptor(
long conglomerateNumber)
throws StandardException; | ConglomerateDescriptor function( long conglomerateNumber) throws StandardException; | /**
* Get a ConglomerateDescriptor given its conglomerate number. If it is an
* index conglomerate shared by at least another duplicate index, this
* returns one of the ConglomerateDescriptors for those indexes.
*
* @param conglomerateNumber The conglomerate number.
*
*
* @return A ConglomerateDescrip... | Get a ConglomerateDescriptor given its conglomerate number. If it is an index conglomerate shared by at least another duplicate index, this returns one of the ConglomerateDescriptors for those indexes | getConglomerateDescriptor | {
"repo_name": "kavin256/Derby",
"path": "java/engine/org/apache/derby/iapi/sql/dictionary/DataDictionary.java",
"license": "apache-2.0",
"size": 79425
} | [
"org.apache.derby.iapi.error.StandardException"
] | import org.apache.derby.iapi.error.StandardException; | import org.apache.derby.iapi.error.*; | [
"org.apache.derby"
] | org.apache.derby; | 2,336,116 |
public CharSequence finishedMsg(Context context) {
SpannableStringBuilder sb = new SpannableStringBuilder();
sb.append(context.getString(R.string.studyoptions_congrats_finished));
StyleSpan boldSpan = new StyleSpan(Typeface.BOLD);
sb.setSpan(boldSpan, 0, sb.length(), 0);
sb.a... | CharSequence function(Context context) { SpannableStringBuilder sb = new SpannableStringBuilder(); sb.append(context.getString(R.string.studyoptions_congrats_finished)); StyleSpan boldSpan = new StyleSpan(Typeface.BOLD); sb.setSpan(boldSpan, 0, sb.length(), 0); sb.append(_nextDueMsg(context)); return sb; } | /**
* Deck finished state ******************************************************
* *****************************************
*/ | Deck finished state | finishedMsg | {
"repo_name": "masoud2v/Anki-Android",
"path": "src/com/ichi2/libanki/Sched.java",
"license": "gpl-3.0",
"size": 91077
} | [
"android.content.Context",
"android.graphics.Typeface",
"android.text.SpannableStringBuilder",
"android.text.style.StyleSpan"
] | import android.content.Context; import android.graphics.Typeface; import android.text.SpannableStringBuilder; import android.text.style.StyleSpan; | import android.content.*; import android.graphics.*; import android.text.*; import android.text.style.*; | [
"android.content",
"android.graphics",
"android.text"
] | android.content; android.graphics; android.text; | 1,138,501 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.