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
@Api public void setFallbackController(GraphicsController fallbackController) { graphics.setFallbackController(fallbackController); }
void function(GraphicsController fallbackController) { graphics.setFallbackController(fallbackController); }
/** * An optional fallbackController to return to, when no controller is explicitly set (controller=null). If no * current controller is active when this setter is called, it is applied immediately. The default fall-back * controller when a map is initialized, is the {@link PanController}, which allows you to nav...
An optional fallbackController to return to, when no controller is explicitly set (controller=null). If no current controller is active when this setter is called, it is applied immediately. The default fall-back controller when a map is initialized, is the <code>PanController</code>, which allows you to navigate
setFallbackController
{ "repo_name": "geomajas/geomajas-project-client-gwt", "path": "client/src/main/java/org/geomajas/gwt/client/widget/MapWidget.java", "license": "agpl-3.0", "size": 47664 }
[ "org.geomajas.gwt.client.controller.GraphicsController" ]
import org.geomajas.gwt.client.controller.GraphicsController;
import org.geomajas.gwt.client.controller.*;
[ "org.geomajas.gwt" ]
org.geomajas.gwt;
1,209,435
public DynamicOperand getOperand1() { return operand1; }
DynamicOperand function() { return operand1; }
/** * Gets the first operand. * * @return the operand; non-null */
Gets the first operand
getOperand1
{ "repo_name": "sdmcraft/jackrabbit", "path": "jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/query/qom/ComparisonImpl.java", "license": "apache-2.0", "size": 3693 }
[ "javax.jcr.query.qom.DynamicOperand" ]
import javax.jcr.query.qom.DynamicOperand;
import javax.jcr.query.qom.*;
[ "javax.jcr" ]
javax.jcr;
2,821,716
static DisruptorVmEndpointBuilder disruptorVm(String path) { class DisruptorVmEndpointBuilderImpl extends AbstractEndpointBuilder implements DisruptorVmEndpointBuilder, AdvancedDisruptorVmEndpointBuilder { public DisruptorVmEndpointBuilderImpl(String path) { super("disruptor-vm",...
static DisruptorVmEndpointBuilder disruptorVm(String path) { class DisruptorVmEndpointBuilderImpl extends AbstractEndpointBuilder implements DisruptorVmEndpointBuilder, AdvancedDisruptorVmEndpointBuilder { public DisruptorVmEndpointBuilderImpl(String path) { super(STR, path); } } return new DisruptorVmEndpointBuilderIm...
/** * Disruptor VM (camel-disruptor) * The disruptor component provides asynchronous SEDA behavior using LMAX * Disruptor. * * Category: endpoint * Since: 2.12 * Maven coordinates: org.apache.camel:camel-disruptor * * Syntax: <code>disruptor-vm:name</code> * * P...
Disruptor VM (camel-disruptor) The disruptor component provides asynchronous SEDA behavior using LMAX Disruptor. Category: endpoint Since: 2.12 Maven coordinates: org.apache.camel:camel-disruptor Syntax: <code>disruptor-vm:name</code> Path parameter: name (required) Name of queue
disruptorVm
{ "repo_name": "ullgren/camel", "path": "core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/DisruptorVmEndpointBuilderFactory.java", "license": "apache-2.0", "size": 31617 }
[ "org.apache.camel.builder.endpoint.AbstractEndpointBuilder" ]
import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
import org.apache.camel.builder.endpoint.*;
[ "org.apache.camel" ]
org.apache.camel;
350,012
private Object invokeTheMethod(Method oMethod, Object portObject, Object ... operationInput) throws IllegalAccessException, InvocationTargetException { return oMethod.invoke(portObject, operationInput); }
Object function(Method oMethod, Object portObject, Object ... operationInput) throws IllegalAccessException, InvocationTargetException { return oMethod.invoke(portObject, operationInput); }
/** * This method is used to invoke a method using reflection. This method's primary purpose is to allow us to override * this for unit testing purposes and simulate an exception to test that code. * * @param oMethod The reflection method object. * @param portObject The instance of the object. ...
This method is used to invoke a method using reflection. This method's primary purpose is to allow us to override this for unit testing purposes and simulate an exception to test that code
invokeTheMethod
{ "repo_name": "AurionProject/Aurion", "path": "Product/Production/Common/CONNECTCoreLib/src/main/java/gov/hhs/fha/nhinc/webserviceproxy/WebServiceProxyHelper.java", "license": "bsd-3-clause", "size": 25384 }
[ "java.lang.reflect.InvocationTargetException", "java.lang.reflect.Method" ]
import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,915,025
public Item getItem(String itemName); /** * Returns the binding configuration for an item as a {@link String} * @param itemName * @return {@link String}
Item function(String itemName); /** * Returns the binding configuration for an item as a {@link String} * @param itemName * @return {@link String}
/** * Returns an {@link Item} for a given item name * @param itemName * @return {@link Item} for the given item name */
Returns an <code>Item</code> for a given item name
getItem
{ "repo_name": "jhonpaulrocha/openhabss", "path": "bundles/binding/org.openhab.binding.autelis/src/main/java/org/openhab/binding/autelis/AutelisBindingProvider.java", "license": "epl-1.0", "size": 1001 }
[ "org.openhab.core.items.Item" ]
import org.openhab.core.items.Item;
import org.openhab.core.items.*;
[ "org.openhab.core" ]
org.openhab.core;
2,531,265
void doPostEvictionOperations(Record record);
void doPostEvictionOperations(Record record);
/** * Does post eviction operations like sending events * * @param record record to process */
Does post eviction operations like sending events
doPostEvictionOperations
{ "repo_name": "tufangorel/hazelcast", "path": "hazelcast/src/main/java/com/hazelcast/map/impl/recordstore/RecordStore.java", "license": "apache-2.0", "size": 18784 }
[ "com.hazelcast.map.impl.record.Record" ]
import com.hazelcast.map.impl.record.Record;
import com.hazelcast.map.impl.record.*;
[ "com.hazelcast.map" ]
com.hazelcast.map;
1,231,459
public void beginHandshake() { Preconditions.checkState(state instanceof InitState, "must be in InitState"); if (this.featuresReply.getNTables() > 1) { log.debug("Have {} table(s) for switch {}", this.featuresReply.getNTables(), getSwitchInfoString()); } if (this.featuresReply.getVersion().compareT...
void function() { Preconditions.checkState(state instanceof InitState, STR); if (this.featuresReply.getNTables() > 1) { log.debug(STR, this.featuresReply.getNTables(), getSwitchInfoString()); } if (this.featuresReply.getVersion().compareTo(OFVersion.OF_13) < 0) { setState(new WaitConfigReplyState()); } else { setState(...
/** * This begins the switch handshake. We start where the OFChannelHandler * left off, right after receiving the OFFeaturesReply. */
This begins the switch handshake. We start where the OFChannelHandler left off, right after receiving the OFFeaturesReply
beginHandshake
{ "repo_name": "kvm2116/floodlight", "path": "src/main/java/net/floodlightcontroller/core/internal/OFSwitchHandshakeHandler.java", "license": "apache-2.0", "size": 64593 }
[ "com.google.common.base.Preconditions", "org.projectfloodlight.openflow.protocol.OFVersion" ]
import com.google.common.base.Preconditions; import org.projectfloodlight.openflow.protocol.OFVersion;
import com.google.common.base.*; import org.projectfloodlight.openflow.protocol.*;
[ "com.google.common", "org.projectfloodlight.openflow" ]
com.google.common; org.projectfloodlight.openflow;
124,524
@GET @Path("/download") public Response downloadLogFile(@Context HttpServletRequest request) throws IOException { meterDownloadLogFileHttpRequests.mark(); String user = httpCredsHandler.getUserName(request); String file = request.getParameter("file"); String decodedFileName =...
@Path(STR) Response function(@Context HttpServletRequest request) throws IOException { meterDownloadLogFileHttpRequests.mark(); String user = httpCredsHandler.getUserName(request); String file = request.getParameter("file"); String decodedFileName = Utils.urlDecodeUtf8(file); try { String host = Utils.hostname(); retur...
/** * Handles '/download' (downloading specific log file) request. */
Handles '/download' (downloading specific log file) request
downloadLogFile
{ "repo_name": "kishorvpatil/incubator-storm", "path": "storm-webapp/src/main/java/org/apache/storm/daemon/logviewer/webapp/LogviewerResource.java", "license": "apache-2.0", "size": 16224 }
[ "java.io.IOException", "javax.servlet.http.HttpServletRequest", "javax.ws.rs.Path", "javax.ws.rs.core.Context", "javax.ws.rs.core.Response", "org.apache.storm.utils.Utils" ]
import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.ws.rs.Path; import javax.ws.rs.core.Context; import javax.ws.rs.core.Response; import org.apache.storm.utils.Utils;
import java.io.*; import javax.servlet.http.*; import javax.ws.rs.*; import javax.ws.rs.core.*; import org.apache.storm.utils.*;
[ "java.io", "javax.servlet", "javax.ws", "org.apache.storm" ]
java.io; javax.servlet; javax.ws; org.apache.storm;
303,322
int updateByExampleSelective(@Param("record") Book record, @Param("example") BookExample example);
int updateByExampleSelective(@Param(STR) Book record, @Param(STR) BookExample example);
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table BOOK * * @mbg.generated Mon May 01 16:23:46 CST 2017 */
This method was generated by MyBatis Generator. This method corresponds to the database table BOOK
updateByExampleSelective
{ "repo_name": "zackwoo/Librarian", "path": "dal/src/main/java/com/github/librarian/model/mapper/BookMapper.java", "license": "mit", "size": 2894 }
[ "com.github.librarian.model.entity.Book", "com.github.librarian.model.entity.BookExample", "org.apache.ibatis.annotations.Param" ]
import com.github.librarian.model.entity.Book; import com.github.librarian.model.entity.BookExample; import org.apache.ibatis.annotations.Param;
import com.github.librarian.model.entity.*; import org.apache.ibatis.annotations.*;
[ "com.github.librarian", "org.apache.ibatis" ]
com.github.librarian; org.apache.ibatis;
2,346,975
public static String getDate(long date) { GregorianCalendar g = new GregorianCalendar(); g.setTimeInMillis(date); int year = g.get(Calendar.YEAR); int month = g.get(Calendar.MONTH) + 1; int day = g.get(Calendar.DAY_OF_MONTH); String mS = String.valueOf(month); String dS = String.valueOf(day); ...
static String function(long date) { GregorianCalendar g = new GregorianCalendar(); g.setTimeInMillis(date); int year = g.get(Calendar.YEAR); int month = g.get(Calendar.MONTH) + 1; int day = g.get(Calendar.DAY_OF_MONTH); String mS = String.valueOf(month); String dS = String.valueOf(day); mS = mS.length() < 2 ? "0" + mS ...
/** * Get a date string in local format for a specific date. * * @param date * The date in millis. * @return The formatted date string. */
Get a date string in local format for a specific date
getDate
{ "repo_name": "dtag-dbu/speechalyzer", "path": "src/FelixUtil/src/com/felix/util/Util.java", "license": "lgpl-2.1", "size": 19087 }
[ "java.util.Calendar", "java.util.GregorianCalendar" ]
import java.util.Calendar; import java.util.GregorianCalendar;
import java.util.*;
[ "java.util" ]
java.util;
2,914,308
public void updateFromTagResults( @Nonnull final ParsedHtmlTag encounteredTag, @Nonnull final ValidateTagResult referencePointResult, @Nonnull final ValidateTagResult tagResult, @Nonnull final ParsedValidatorRules parsedRules, @Nonnull final Locator lineCol) throws TagValidationE...
void function( @Nonnull final ParsedHtmlTag encounteredTag, @Nonnull final ValidateTagResult referencePointResult, @Nonnull final ValidateTagResult tagResult, @Nonnull final ParsedValidatorRules parsedRules, @Nonnull final Locator lineCol) throws TagValidationException { this.parentStackEntry().incrementNumChildren(); ...
/** * Update tagstack state after validating an encountered tag. Called with the * best matching specs, even if not a match. * * @param encounteredTag the ParsedHtmlTag. * @param referencePointResult reference point result. * @param tagResult tag result. * @param pars...
Update tagstack state after validating an encountered tag. Called with the best matching specs, even if not a match
updateFromTagResults
{ "repo_name": "ampproject/validator-java", "path": "src/main/java/dev/amp/validator/TagStack.java", "license": "apache-2.0", "size": 23101 }
[ "dev.amp.validator.exception.TagValidationException", "dev.amp.validator.utils.TagSpecUtils", "javax.annotation.Nonnull", "org.xml.sax.Locator" ]
import dev.amp.validator.exception.TagValidationException; import dev.amp.validator.utils.TagSpecUtils; import javax.annotation.Nonnull; import org.xml.sax.Locator;
import dev.amp.validator.exception.*; import dev.amp.validator.utils.*; import javax.annotation.*; import org.xml.sax.*;
[ "dev.amp.validator", "javax.annotation", "org.xml.sax" ]
dev.amp.validator; javax.annotation; org.xml.sax;
1,255,003
public void setPort() { if (!server.isStopped()) { throw new IllegalStateException("Server must be stopped before configuring port"); } Connector[] connectors = server.getConnectors(); for (Connector connector : connectors) { if (connector instanceof AbstractNetworkConnector) { ((A...
void function() { if (!server.isStopped()) { throw new IllegalStateException(STR); } Connector[] connectors = server.getConnectors(); for (Connector connector : connectors) { if (connector instanceof AbstractNetworkConnector) { ((AbstractNetworkConnector) connector).setPort(port); } } }
/** * Sets server port. */
Sets server port
setPort
{ "repo_name": "everit-org/authentication-cas-ecm", "path": "tests/src/main/java/org/everit/authentication/cas/ecm/tests/SampleApp.java", "license": "apache-2.0", "size": 17244 }
[ "org.eclipse.jetty.server.AbstractNetworkConnector", "org.eclipse.jetty.server.Connector" ]
import org.eclipse.jetty.server.AbstractNetworkConnector; import org.eclipse.jetty.server.Connector;
import org.eclipse.jetty.server.*;
[ "org.eclipse.jetty" ]
org.eclipse.jetty;
2,566,669
if (!StringUtils.isNumeric(raw_port)) { System.err.println(raw_port + " is not a valid port integer."); return; } System.out.println("Initializing HBase tables"); node_table = Util.get_table("node"); segment_table = Util.get_table("segment"); traffic_tabl...
if (!StringUtils.isNumeric(raw_port)) { System.err.println(raw_port + STR); return; } System.out.println(STR); node_table = Util.get_table("node"); segment_table = Util.get_table(STR); traffic_table = Util.get_table(STR); if (node_table == null segment_table == null traffic_table == null) { System.err.println(STR); ret...
/** * Start up all the required HBase tables and the http web server * * @param raw_port port number as a string to serve underneath */
Start up all the required HBase tables and the http web server
start_web_api
{ "repo_name": "cmput402w2016/CMPUT402W16T1", "path": "MapCore/src/main/java/com/cmput402w2016/t1/webapi/WebApi.java", "license": "mit", "size": 2769 }
[ "com.cmput402w2016.t1.util.Util", "com.cmput402w2016.t1.webapi.handler.NodeHandler", "com.cmput402w2016.t1.webapi.handler.RootHandler", "com.cmput402w2016.t1.webapi.handler.SegmentHandler", "com.cmput402w2016.t1.webapi.handler.TrafficHandler", "com.sun.net.httpserver.HttpServer", "java.io.IOException", ...
import com.cmput402w2016.t1.util.Util; import com.cmput402w2016.t1.webapi.handler.NodeHandler; import com.cmput402w2016.t1.webapi.handler.RootHandler; import com.cmput402w2016.t1.webapi.handler.SegmentHandler; import com.cmput402w2016.t1.webapi.handler.TrafficHandler; import com.sun.net.httpserver.HttpServer; import ja...
import com.cmput402w2016.t1.util.*; import com.cmput402w2016.t1.webapi.handler.*; import com.sun.net.httpserver.*; import java.io.*; import java.net.*; import org.apache.commons.lang.*;
[ "com.cmput402w2016.t1", "com.sun.net", "java.io", "java.net", "org.apache.commons" ]
com.cmput402w2016.t1; com.sun.net; java.io; java.net; org.apache.commons;
475,446
@Override public void writeDocument(String aFilename, BinaryFile aDocument) throws IOException { writeDocument(new File(aFilename), aDocument); }
void function(String aFilename, BinaryFile aDocument) throws IOException { writeDocument(new File(aFilename), aDocument); }
/** * The method writes a document. * * @param aFilename * the name of the output file * @param aDocument * a document object * * @throws IOException * This exception can be thrown if IO operations fail */
The method writes a document
writeDocument
{ "repo_name": "gammalgris/jmul", "path": "Utilities/Document-Binary/src/jmul/binary/writer/BinaryFileWriterImpl.java", "license": "gpl-3.0", "size": 2437 }
[ "java.io.File", "java.io.IOException" ]
import java.io.File; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
432,691
// TODO Write unit tests for makeParamMapWithPagination() public Map<String, Object> makeParamMapWithPagination() { Map<String, Object> params = new HashMap<String, Object>(); String lower = processPagination(); if (lower != null && lower.length() > 0 && StringUtils.isNumeric(lower)) { ...
Map<String, Object> function() { Map<String, Object> params = new HashMap<String, Object>(); String lower = processPagination(); if (lower != null && lower.length() > 0 && StringUtils.isNumeric(lower)) { params.put("lower", lower); } return params; }
/** * Creates a hashmap with pagination vars added. * @return Returns a new hashmap containing the parameters */
Creates a hashmap with pagination vars added
makeParamMapWithPagination
{ "repo_name": "mcalmer/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/struts/RequestContext.java", "license": "gpl-2.0", "size": 27579 }
[ "java.util.HashMap", "java.util.Map", "org.apache.commons.lang.StringUtils" ]
import java.util.HashMap; import java.util.Map; import org.apache.commons.lang.StringUtils;
import java.util.*; import org.apache.commons.lang.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
2,251,236
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) { Drawable d = getDrawable(); super.onMeasure(widthMeasureSpec, heightMeasureSpec); // Container for posts // TODO: Find a better way to locate this view, this is too brittle View allPostsContainer = (View)this.getParent().getParent()....
void function(int widthMeasureSpec, int heightMeasureSpec) { Drawable d = getDrawable(); super.onMeasure(widthMeasureSpec, heightMeasureSpec); View allPostsContainer = (View)this.getParent().getParent().getParent(); int postHeight = 0; if (getContext() instanceof Activity) { Activity activity = (Activity)getContext(); ...
/** * Cap the height of the preview image to fit on the screen * * @param widthMeasureSpec * @param heightMeasureSpec */
Cap the height of the preview image to fit on the screen
onMeasure
{ "repo_name": "mechdome/RedReader", "path": "src/main/java/org/quantumbadger/redreader/views/PreviewView.java", "license": "gpl-3.0", "size": 1817 }
[ "android.app.Activity", "android.graphics.drawable.Drawable", "android.view.View" ]
import android.app.Activity; import android.graphics.drawable.Drawable; import android.view.View;
import android.app.*; import android.graphics.drawable.*; import android.view.*;
[ "android.app", "android.graphics", "android.view" ]
android.app; android.graphics; android.view;
1,774,019
private JPanel getJPanelLabels() { if (jPanelLabels == null) { String string = PluginServices.getText(this, "schema") + ":"; // jLabelSchema = new JLabel(); // jLabelSchema.setName("jLabel4"); // jLabelSchema.setHorizontalAlignment(SwingConstants.RIGHT); // jLabelSchema.setHo...
JPanel function() { if (jPanelLabels == null) { String string = PluginServices.getText(this, STR) + ":"; FlowLayout flowLayout3 = new FlowLayout(); flowLayout3.setVgap(15); jLabel5 = new JLabel(); jLabel4 = new JLabel(); jLabel3 = new JLabel(); jLabel2 = new JLabel(); jLabel1 = new JLabel(); jLabel = new JLabel(); jPan...
/** * This method initializes jPanel * * @return javax.swing.JPanel */
This method initializes jPanel
getJPanelLabels
{ "repo_name": "iCarto/siga", "path": "appgvSIG/src/com/iver/cit/gvsig/vectorialdb/ConnectionPanel.java", "license": "gpl-3.0", "size": 23674 }
[ "com.iver.andami.PluginServices", "java.awt.Dimension", "java.awt.FlowLayout", "javax.swing.JLabel", "javax.swing.JPanel", "javax.swing.SwingConstants" ]
import com.iver.andami.PluginServices; import java.awt.Dimension; import java.awt.FlowLayout; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants;
import com.iver.andami.*; import java.awt.*; import javax.swing.*;
[ "com.iver.andami", "java.awt", "javax.swing" ]
com.iver.andami; java.awt; javax.swing;
520,712
public static Resource Region() { return _namespace_FALDO("Region"); }
static Resource function() { return _namespace_FALDO(STR); }
/** * A region describes an length of sequence with a start and end position that represents a feature on a Sequence. i.e. a gene * (http://biohackathon.org/resource/faldo#Region) */
A region describes an length of sequence with a start and end position that represents a feature on a Sequence. i.e. a gene (HREF)
Region
{ "repo_name": "BioInterchange/BioInterchange", "path": "supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/FALDO.java", "license": "mit", "size": 8225 }
[ "com.hp.hpl.jena.rdf.model.Resource" ]
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.*;
[ "com.hp.hpl" ]
com.hp.hpl;
927,692
Subject getSubject() { return (Subject) subjectRef.get(); }
Subject getSubject() { return (Subject) subjectRef.get(); }
/** * Returns the Subject, or null if the subject was null or if the weak * reference has been cleared. */
Returns the Subject, or null if the subject was null or if the weak reference has been cleared
getSubject
{ "repo_name": "pfirmstone/JGDMS", "path": "JGDMS/jgdms-jeri/src/main/java/net/jini/jeri/ssl/AuthManager.java", "license": "apache-2.0", "size": 13995 }
[ "javax.security.auth.Subject" ]
import javax.security.auth.Subject;
import javax.security.auth.*;
[ "javax.security" ]
javax.security;
1,499,099
boolean isPreconditionApplicable(GridTab gridTab);
boolean isPreconditionApplicable(GridTab gridTab);
/** * Determines if a process should be displayed for the current tab. * * @param gridTab * @return true if the process will be displayed. */
Determines if a process should be displayed for the current tab
isPreconditionApplicable
{ "repo_name": "neuroidss/adempiere", "path": "base/src/org/adempiere/ad/process/ISvrProcessPrecondition.java", "license": "gpl-2.0", "size": 1942 }
[ "org.compiere.model.GridTab" ]
import org.compiere.model.GridTab;
import org.compiere.model.*;
[ "org.compiere.model" ]
org.compiere.model;
1,535,461
@Generated(hash = 1475926327) public synchronized void resetPhotoTables() { photoTables = null; }
@Generated(hash = 1475926327) synchronized void function() { photoTables = null; }
/** * Resets a to-many relationship, making the next get call to query for a fresh result. */
Resets a to-many relationship, making the next get call to query for a fresh result
resetPhotoTables
{ "repo_name": "alsash/reciper", "path": "app/src/main/java/com/alsash/reciper/data/db/table/CategoryTable.java", "license": "apache-2.0", "size": 5669 }
[ "org.greenrobot.greendao.annotation.Generated" ]
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.*;
[ "org.greenrobot.greendao" ]
org.greenrobot.greendao;
1,316,034
//<editor-fold defaultstate="collapsed" desc="testGetPlayers()"> @Test public void testGetPlayers() { System.out.println("getPlayers"); Game instance = defaultInstance; ArrayList<Player> expResult = null; ArrayList<Player> result = instance.getPlayers(); assertEquals...
void function() { System.out.println(STR); Game instance = defaultInstance; ArrayList<Player> expResult = null; ArrayList<Player> result = instance.getPlayers(); assertEquals(expResult, result); }
/** * Test of getPlayers method, of class Game. */
Test of getPlayers method, of class Game
testGetPlayers
{ "repo_name": "FHICT-Software/P3P4", "path": "PTS/AirHockey/AirHockey/test/components/GameTest.java", "license": "gpl-3.0", "size": 2455 }
[ "java.util.ArrayList", "junit.framework.Assert" ]
import java.util.ArrayList; import junit.framework.Assert;
import java.util.*; import junit.framework.*;
[ "java.util", "junit.framework" ]
java.util; junit.framework;
2,082,224
@Test public void testResolveService_Class_priority3() { TestService s1 = new TestAnnotatedServiceImpl3(); TestService s2 = new TestAnnotatedServiceImpl4(); ServiceContainer container = createContainer(); container.registerService(s1); container.registerService(s2); ...
void function() { TestService s1 = new TestAnnotatedServiceImpl3(); TestService s2 = new TestAnnotatedServiceImpl4(); ServiceContainer container = createContainer(); container.registerService(s1); container.registerService(s2); assertThat(container.resolveService(TestService.class), is(sameInstance(s2))); }
/** * Test of resolveService method, of class AbstractServiceContainer. */
Test of resolveService method, of class AbstractServiceContainer
testResolveService_Class_priority3
{ "repo_name": "enlo/jmt-projects", "path": "jmt-core/src/test/java/info/naiv/lab/java/jmt/infrastructure/AbstractServiceContainerTest.java", "license": "mit", "size": 22906 }
[ "org.hamcrest.Matchers", "org.junit.Assert" ]
import org.hamcrest.Matchers; import org.junit.Assert;
import org.hamcrest.*; import org.junit.*;
[ "org.hamcrest", "org.junit" ]
org.hamcrest; org.junit;
2,329,480
@Override public int advance(int target) throws IOException { doc = docsEnum.advance(target); return doc; }
int function(int target) throws IOException { doc = docsEnum.advance(target); return doc; }
/** * Advances to the first match beyond the current whose document number is * greater than or equal to a given target. <br> * The implementation uses {@link TermDocs#skipTo(int)}. * * @param target * The target document number. * @return the matching document or NO_MORE_DOCS if none exis...
Advances to the first match beyond the current whose document number is greater than or equal to a given target. The implementation uses <code>TermDocs#skipTo(int)</code>
advance
{ "repo_name": "javasoze/sensei", "path": "sensei-core/src/main/java/com/senseidb/search/query/filters/TermDocIdSetIterator.java", "license": "apache-2.0", "size": 1617 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
537,847
public static <T> SequenceChangeEvent<T> newInsertInstanceAtIndex(AlignmentModel<T> source, String sequenceID,String sequenceName, Integer index) { return new SequenceChangeEvent<T>(source, sequenceID, ListChangeType.INSERTION, null, sequenceName, index); }
static <T> SequenceChangeEvent<T> function(AlignmentModel<T> source, String sequenceID,String sequenceName, Integer index) { return new SequenceChangeEvent<T>(source, sequenceID, ListChangeType.INSERTION, null, sequenceName, index); }
/** * Creates a new instance of this event indicating the insertion of a sequence at a specific index. * * @param source the alignment model from which the sequence was removed * @param sequenceID the ID of the sequence that was inserted * @param sequenceName the name of the sequence that was inserted ...
Creates a new instance of this event indicating the insertion of a sequence at a specific index
newInsertInstanceAtIndex
{ "repo_name": "bioinfweb/LibrAlign", "path": "main/info.bioinfweb.libralign.core/src/info/bioinfweb/libralign/model/events/SequenceChangeEvent.java", "license": "lgpl-3.0", "size": 6230 }
[ "info.bioinfweb.commons.collections.ListChangeType", "info.bioinfweb.libralign.model.AlignmentModel" ]
import info.bioinfweb.commons.collections.ListChangeType; import info.bioinfweb.libralign.model.AlignmentModel;
import info.bioinfweb.commons.collections.*; import info.bioinfweb.libralign.model.*;
[ "info.bioinfweb.commons", "info.bioinfweb.libralign" ]
info.bioinfweb.commons; info.bioinfweb.libralign;
601,476
@Generated @Selector("dropProgressMode") @NUInt public native long dropProgressMode();
@Selector(STR) native long function();
/** * The progress mode to be used. The default value is UITextDropProgressModeSystem. */
The progress mode to be used. The default value is UITextDropProgressModeSystem
dropProgressMode
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/uikit/UITextDropProposal.java", "license": "apache-2.0", "size": 7092 }
[ "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;
2,088,722
@Override public void widgetSelected(SelectionEvent arg0) { evaluatePage(); } }); new Label(container, SWT.NONE); new Label(container, SWT.NONE); new Label(container, SWT.NONE); new Label(container,...
void function(SelectionEvent arg0) { evaluatePage(); } }); new Label(container, SWT.NONE); new Label(container, SWT.NONE); new Label(container, SWT.NONE); new Label(container, SWT.NONE); tableViewerPreview = SWTUtil.createTableViewer(container, SWT.BORDER SWT.FULL_SELECTION); tableViewerPreview.setContentProvider(new A...
/** * (Re-)Evaluate page */
(Re-)Evaluate page
widgetSelected
{ "repo_name": "bitraten/arx", "path": "src/gui/org/deidentifier/arx/gui/view/impl/wizard/ImportWizardPageCSV.java", "license": "apache-2.0", "size": 28545 }
[ "org.deidentifier.arx.gui.view.SWTUtil", "org.eclipse.jface.viewers.ArrayContentProvider", "org.eclipse.swt.events.SelectionEvent", "org.eclipse.swt.layout.GridData", "org.eclipse.swt.widgets.Label" ]
import org.deidentifier.arx.gui.view.SWTUtil; import org.eclipse.jface.viewers.ArrayContentProvider; import org.eclipse.swt.events.SelectionEvent; import org.eclipse.swt.layout.GridData; import org.eclipse.swt.widgets.Label;
import org.deidentifier.arx.gui.view.*; import org.eclipse.jface.viewers.*; import org.eclipse.swt.events.*; import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*;
[ "org.deidentifier.arx", "org.eclipse.jface", "org.eclipse.swt" ]
org.deidentifier.arx; org.eclipse.jface; org.eclipse.swt;
1,309,910
void lockExternalCall(ExternalCall extCall) throws PersistenceException;
void lockExternalCall(ExternalCall extCall) throws PersistenceException;
/** * Updates the specified attached external call entity to * start processing a new external call (set state to PROCESSING). * * @param extCall the external call that is attached to local EntityManager * (e.g., acquired via {@link #getExternalCall(String, String)} in the same t...
Updates the specified attached external call entity to start processing a new external call (set state to PROCESSING)
lockExternalCall
{ "repo_name": "integram/cleverbus", "path": "core/src/main/java/org/cleverbus/core/common/dao/ExternalCallDao.java", "license": "gpl-3.0", "size": 3180 }
[ "javax.persistence.PersistenceException", "org.cleverbus.api.entity.ExternalCall" ]
import javax.persistence.PersistenceException; import org.cleverbus.api.entity.ExternalCall;
import javax.persistence.*; import org.cleverbus.api.entity.*;
[ "javax.persistence", "org.cleverbus.api" ]
javax.persistence; org.cleverbus.api;
2,129,657
// ------------------------------------------------------------------ static public String encode(String s,String charEncoding) throws UnsupportedEncodingException { byte[] bytes; if (charEncoding==null) bytes=s.getBytes(StringUtil.__ISO_8859_1); else ...
static String function(String s,String charEncoding) throws UnsupportedEncodingException { byte[] bytes; if (charEncoding==null) bytes=s.getBytes(StringUtil.__ISO_8859_1); else bytes=s.getBytes(charEncoding); return new String(encode(bytes)); }
/** * Base 64 encode as described in RFC 1421. * <p>Does not insert whitespace as described in RFC 1521. * @param s String to encode. * @param charEncoding String representing the name of * the character encoding of the provided input String. * @return String containing the encoded ...
Base 64 encode as described in RFC 1421. Does not insert whitespace as described in RFC 1521
encode
{ "repo_name": "whiteley/jetty8", "path": "jetty-util/src/main/java/org/eclipse/jetty/util/B64Code.java", "license": "apache-2.0", "size": 14541 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
1,652,697
protected PFUserDO getUser() { return null; }
PFUserDO function() { return null; }
/** * Always returns null for unsecured page, otherwise the logged-in user. * @return null * @see AbstractSecuredPage#getUser() */
Always returns null for unsecured page, otherwise the logged-in user
getUser
{ "repo_name": "developerleo/ProjectForge-2nd", "path": "src/main/java/org/projectforge/web/wicket/AbstractUnsecureBasePage.java", "license": "gpl-3.0", "size": 8806 }
[ "org.projectforge.user.PFUserDO" ]
import org.projectforge.user.PFUserDO;
import org.projectforge.user.*;
[ "org.projectforge.user" ]
org.projectforge.user;
1,032,709
List<Member> findMembersByNameInVo(PerunSession sess, Vo vo, String searchString) throws PrivilegeException, VoNotExistsException;
List<Member> findMembersByNameInVo(PerunSession sess, Vo vo, String searchString) throws PrivilegeException, VoNotExistsException;
/** * Return list of members by the searchString under defined VO. * * @param sess * @param searchString * @param vo * @return list of members * @throws InternalErrorException * @throws PrivilegeException */
Return list of members by the searchString under defined VO
findMembersByNameInVo
{ "repo_name": "zwejra/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/api/MembersManager.java", "license": "bsd-2-clause", "size": 67303 }
[ "cz.metacentrum.perun.core.api.exceptions.PrivilegeException", "cz.metacentrum.perun.core.api.exceptions.VoNotExistsException", "java.util.List" ]
import cz.metacentrum.perun.core.api.exceptions.PrivilegeException; import cz.metacentrum.perun.core.api.exceptions.VoNotExistsException; import java.util.List;
import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
300,794
public void testIsDebit_expense_positveAmount() throws Exception { AccountingDocument accountingDocument = IsDebitTestUtils.getDocument(SpringContext.getBean(DocumentService.class), AdvanceDepositDocument.class); AccountingLine accountingLine = IsDebitTestUtils.getExpenseLine(accountingDocument, Sou...
void function() throws Exception { AccountingDocument accountingDocument = IsDebitTestUtils.getDocument(SpringContext.getBean(DocumentService.class), AdvanceDepositDocument.class); AccountingLine accountingLine = IsDebitTestUtils.getExpenseLine(accountingDocument, SourceAccountingLine.class, POSITIVE); assertTrue(IsDeb...
/** * tests true is returned for a positive expense * * @throws Exception */
tests true is returned for a positive expense
testIsDebit_expense_positveAmount
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-core/src/test/java/org/kuali/kfs/fp/document/validation/impl/AdvanceDepositDocumentRuleTest.java", "license": "agpl-3.0", "size": 10713 }
[ "org.kuali.kfs.fp.document.AdvanceDepositDocument", "org.kuali.kfs.kns.service.DataDictionaryService", "org.kuali.kfs.krad.service.DocumentService", "org.kuali.kfs.sys.businessobject.AccountingLine", "org.kuali.kfs.sys.businessobject.SourceAccountingLine", "org.kuali.kfs.sys.context.SpringContext", "org...
import org.kuali.kfs.fp.document.AdvanceDepositDocument; import org.kuali.kfs.kns.service.DataDictionaryService; import org.kuali.kfs.krad.service.DocumentService; import org.kuali.kfs.sys.businessobject.AccountingLine; import org.kuali.kfs.sys.businessobject.SourceAccountingLine; import org.kuali.kfs.sys.context.Sprin...
import org.kuali.kfs.fp.document.*; import org.kuali.kfs.kns.service.*; import org.kuali.kfs.krad.service.*; import org.kuali.kfs.sys.businessobject.*; import org.kuali.kfs.sys.context.*; import org.kuali.kfs.sys.document.*; import org.kuali.kfs.sys.service.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
1,500,313
void close(Status status, Metadata trailers);
void close(Status status, Metadata trailers);
/** * Closes the stream for both reading and writing. A status code of * {@link io.grpc.Status.Code#OK} implies normal termination of the * stream. Any other value implies abnormal termination. * * @param status details of the closure * @param trailers an additional block of metadata to pass to the cl...
Closes the stream for both reading and writing. A status code of <code>io.grpc.Status.Code#OK</code> implies normal termination of the stream. Any other value implies abnormal termination
close
{ "repo_name": "nickethier/grpc-java", "path": "core/src/main/java/io/grpc/internal/ServerStream.java", "license": "bsd-3-clause", "size": 2774 }
[ "io.grpc.Metadata", "io.grpc.Status" ]
import io.grpc.Metadata; import io.grpc.Status;
import io.grpc.*;
[ "io.grpc" ]
io.grpc;
922,945
protected BeanFactory getBeanFactory(FacesContext facesContext) { return getWebApplicationContext(facesContext); }
BeanFactory function(FacesContext facesContext) { return getWebApplicationContext(facesContext); }
/** * Retrieve the Spring BeanFactory to delegate bean name resolution to. * <p>The default implementation delegates to <code>getWebApplicationContext</code>. * Can be overridden to provide an arbitrary BeanFactory reference to resolve * against; usually, this will be a full Spring ApplicationContext. * @para...
Retrieve the Spring BeanFactory to delegate bean name resolution to. The default implementation delegates to <code>getWebApplicationContext</code>. Can be overridden to provide an arbitrary BeanFactory reference to resolve against; usually, this will be a full Spring ApplicationContext
getBeanFactory
{ "repo_name": "mattxia/spring-2.5-analysis", "path": "src/org/springframework/web/jsf/DelegatingVariableResolver.java", "license": "apache-2.0", "size": 6217 }
[ "javax.faces.context.FacesContext", "org.springframework.beans.factory.BeanFactory" ]
import javax.faces.context.FacesContext; import org.springframework.beans.factory.BeanFactory;
import javax.faces.context.*; import org.springframework.beans.factory.*;
[ "javax.faces", "org.springframework.beans" ]
javax.faces; org.springframework.beans;
2,095,120
public static String add(Doc doc, String... args) { try { StringWriter r = new StringWriter(); // this is anoying if (null == args || 0 == args.length) { r.write("<add>"); r.write(doc.xml); r.write("</add>"); } else { XML.writeUnescapedXML(r, "add", doc.xml, (Object[]) args); } ...
static String function(Doc doc, String... args) { try { StringWriter r = new StringWriter(); if (null == args 0 == args.length) { r.write("<add>"); r.write(doc.xml); r.write(STR); } else { XML.writeUnescapedXML(r, "add", doc.xml, (Object[]) args); } return r.getBuffer().toString(); } catch (IOException e) { throw new R...
/** * Generates an &lt;add&gt;&lt;doc&gt;... XML String with options on the * add. * * @param doc * the Document to add * @param args * 0th and Even numbered args are param names, Odds are param * values. * @see #add * @see #doc */
Generates an &lt;add&gt;&lt;doc&gt;... XML String with options on the add
add
{ "repo_name": "aaccomazzi/montysolr", "path": "src/test/monty/solr/util/MontySolrTestCaseJ4.java", "license": "gpl-2.0", "size": 19001 }
[ "java.io.IOException", "java.io.StringWriter", "org.apache.solr.common.util.XML" ]
import java.io.IOException; import java.io.StringWriter; import org.apache.solr.common.util.XML;
import java.io.*; import org.apache.solr.common.util.*;
[ "java.io", "org.apache.solr" ]
java.io; org.apache.solr;
1,259,469
public Set<String> relevantHeaders() { return relevantHeaders; }
Set<String> function() { return relevantHeaders; }
/** * Returns the REST headers that get copied over from a {@link org.elasticsearch.rest.RestRequest} to * its corresponding {@link org.elasticsearch.transport.TransportRequest}(s). * By default no headers get copied but it is possible to extend this behaviour via plugins by calling {@link #registerRelev...
Returns the REST headers that get copied over from a <code>org.elasticsearch.rest.RestRequest</code> to its corresponding <code>org.elasticsearch.transport.TransportRequest</code>(s). By default no headers get copied but it is possible to extend this behaviour via plugins by calling <code>#registerRelevantHeaders(Strin...
relevantHeaders
{ "repo_name": "jbertouch/elasticsearch", "path": "core/src/main/java/org/elasticsearch/rest/RestController.java", "license": "apache-2.0", "size": 11764 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,234,981
@Override public ConnectionConsumer createConnectionConsumer(final Topic topic, final String messageSelector, final ServerSessionPool sessionPool, final...
ConnectionConsumer function(final Topic topic, final String messageSelector, final ServerSessionPool sessionPool, final int maxMessages) throws JMSException { if (ActiveMQRASessionFactoryImpl.trace) { ActiveMQRALogger.LOGGER.trace(STR + topic + STR + messageSelector + STR + sessionPool + STR + maxMessages + ")"); } thr...
/** * Create a connection consumer -- throws IllegalStateException * * @param topic The topic * @param messageSelector The message selector * @param sessionPool The session pool * @param maxMessages The number of max messages * @return The connection consumer * @throws ...
Create a connection consumer -- throws IllegalStateException
createConnectionConsumer
{ "repo_name": "dudaerich/activemq-artemis", "path": "artemis-ra/src/main/java/org/apache/activemq/artemis/ra/ActiveMQRASessionFactoryImpl.java", "license": "apache-2.0", "size": 31766 }
[ "javax.jms.ConnectionConsumer", "javax.jms.IllegalStateException", "javax.jms.JMSException", "javax.jms.ServerSessionPool", "javax.jms.Topic" ]
import javax.jms.ConnectionConsumer; import javax.jms.IllegalStateException; import javax.jms.JMSException; import javax.jms.ServerSessionPool; import javax.jms.Topic;
import javax.jms.*;
[ "javax.jms" ]
javax.jms;
863,259
protected void readHeaders(Object connection) throws IOException { }
void function(Object connection) throws IOException { }
/** * Allows reading the headers from the connection by calling the getHeader() method. * @param connection used when invoking getHeader * @throws java.io.IOException thrown on failure */
Allows reading the headers from the connection by calling the getHeader() method
readHeaders
{ "repo_name": "Firethunder/CodenameOne", "path": "CodenameOne/src/com/codename1/io/ConnectionRequest.java", "license": "gpl-2.0", "size": 90869 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,422,035
public static String toLanguage(String languageName) throws IllegalArgumentException { // Convert string to all caps String standardizedName = languageName.toUpperCase(); // Replace spaces with underscores standardizedName = standardizedName.replace(' ', '_'); // Remove parentheses ...
static String function(String languageName) throws IllegalArgumentException { String standardizedName = languageName.toUpperCase(); standardizedName = standardizedName.replace(' ', '_'); standardizedName = standardizedName.replace("(", STR)STRSTRNORWEGIAN_BOKMALSTRNORWEGIANSTRNot found--returning default language code"...
/** * Convert the given name of a natural language into a Language from the enum of Languages * supported by this translation service. * * @param languageName The name of the language, for example, "English" * @return code representing this language, for example, "en", for this translation API * @th...
Convert the given name of a natural language into a Language from the enum of Languages supported by this translation service
toLanguage
{ "repo_name": "tuf07378/ingredscan", "path": "Ingredient Scanner/src/main/java/edu/sfsu/cs/orange/ocr/language/TranslatorBing.java", "license": "apache-2.0", "size": 3131 }
[ "edu.sfsu.cs.orange.ocr.CaptureActivity" ]
import edu.sfsu.cs.orange.ocr.CaptureActivity;
import edu.sfsu.cs.orange.ocr.*;
[ "edu.sfsu.cs" ]
edu.sfsu.cs;
2,074,074
public final MetaProperty<String> dataFieldBlackList() { return _dataFieldBlackList; }
final MetaProperty<String> function() { return _dataFieldBlackList; }
/** * The meta-property for the {@code dataFieldBlackList} property. * @return the meta-property, not null */
The meta-property for the dataFieldBlackList property
dataFieldBlackList
{ "repo_name": "ChinaQuants/OG-Platform", "path": "projects/OG-Integration/src/main/java/com/opengamma/integration/timeseries/snapshot/RedisHtsSnapshotJobDetailComponentFactory.java", "license": "apache-2.0", "size": 30322 }
[ "org.joda.beans.MetaProperty" ]
import org.joda.beans.MetaProperty;
import org.joda.beans.*;
[ "org.joda.beans" ]
org.joda.beans;
1,568,711
@RequestMapping("/doNVCLFilter.do") public ModelAndView doNVCLFilter(@RequestParam("serviceUrl") String serviceUrl, @RequestParam(required = false, value = "boreholeName", defaultValue = "") String boreholeName, @RequestParam(required = false, value = "custodian", defaultValue = "") S...
@RequestMapping(STR) ModelAndView function(@RequestParam(STR) String serviceUrl, @RequestParam(required = false, value = STR, defaultValue = STRcustodianSTRSTRdateOfDrillingSTRSTRmaxFeaturesSTR0STRbboxSTRonlyHyloggerSTRserviceFilterSTRSTR,STRSTRNot QueriedSTRon")) { onlyHylogger = true; } else { onlyHylogger = Boolean....
/** * Handles the borehole filter queries. * * @param serviceUrl * the url of the service to query * @param mineName * the name of the mine to query for * @param request * the HTTP client request * @return a WFS response converted in...
Handles the borehole filter queries
doNVCLFilter
{ "repo_name": "GeoscienceAustralia/geoscience-portal-laurie", "path": "src/main/java/org/auscope/portal/server/web/controllers/NVCLController.java", "license": "lgpl-3.0", "size": 31826 }
[ "org.auscope.portal.core.services.methodmakers.filter.FilterBoundingBox", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestParam", "org.springframework.web.servlet.ModelAndView" ]
import org.auscope.portal.core.services.methodmakers.filter.FilterBoundingBox; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.servlet.ModelAndView;
import org.auscope.portal.core.services.methodmakers.filter.*; import org.springframework.web.bind.annotation.*; import org.springframework.web.servlet.*;
[ "org.auscope.portal", "org.springframework.web" ]
org.auscope.portal; org.springframework.web;
1,425,251
protected List<String> formBackingObject(HttpServletRequest request) throws ServletException { Appender appender = Logger.getRootLogger().getAppender("MEMORY_APPENDER"); if (appender instanceof MemoryAppender) { MemoryAppender memoryAppender = (MemoryAppender) appender; return memoryAppender.getLogLine...
List<String> function(HttpServletRequest request) throws ServletException { Appender appender = Logger.getRootLogger().getAppender(STR); if (appender instanceof MemoryAppender) { MemoryAppender memoryAppender = (MemoryAppender) appender; return memoryAppender.getLogLines(); } else { return new ArrayList<String>(); } }
/** * This is called prior to displaying a form for the first time. It tells Spring the * form/command object to load into the request * * @see org.springframework.web.servlet.mvc.AbstractFormController#formBackingObject(javax.servlet.http.HttpServletRequest) */
This is called prior to displaying a form for the first time. It tells Spring the form/command object to load into the request
formBackingObject
{ "repo_name": "Bhamni/openmrs-core", "path": "web/src/main/java/org/openmrs/web/controller/maintenance/ServerLogController.java", "license": "mpl-2.0", "size": 2807 }
[ "java.util.ArrayList", "java.util.List", "javax.servlet.ServletException", "javax.servlet.http.HttpServletRequest", "org.apache.log4j.Appender", "org.apache.log4j.Logger", "org.openmrs.util.MemoryAppender" ]
import java.util.ArrayList; import java.util.List; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import org.apache.log4j.Appender; import org.apache.log4j.Logger; import org.openmrs.util.MemoryAppender;
import java.util.*; import javax.servlet.*; import javax.servlet.http.*; import org.apache.log4j.*; import org.openmrs.util.*;
[ "java.util", "javax.servlet", "org.apache.log4j", "org.openmrs.util" ]
java.util; javax.servlet; org.apache.log4j; org.openmrs.util;
518,516
@Generated @CVariable() public static native CFStringRef kCVPixelFormatCodecType();
@CVariable() static native CFStringRef function();
/** * This is the codec type constant, i.e. '2vuy' or k422YpCbCr8CodecType */
This is the codec type constant, i.e. '2vuy' or k422YpCbCr8CodecType
kCVPixelFormatCodecType
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/corevideo/c/CoreVideo.java", "license": "apache-2.0", "size": 85217 }
[ "org.moe.natj.c.ann.CVariable" ]
import org.moe.natj.c.ann.CVariable;
import org.moe.natj.c.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
812,195
public void openMenu(View view) { invalidateOptionsMenu(); openOptionsMenu(); }
void function(View view) { invalidateOptionsMenu(); openOptionsMenu(); }
/** * Used for floating button on fullscreen mode to open the menu. * * @param view */
Used for floating button on fullscreen mode to open the menu
openMenu
{ "repo_name": "freedomofkeima/LNReader-Android", "path": "app/src/main/java/com/erakk/lnreader/ui/activity/DisplayLightNovelContentActivity.java", "license": "apache-2.0", "size": 51019 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,466,569
DefaultMutableTreeNode addObject( DefaultMutableTreeNode parent, Object child, boolean shouldBeVisible);
DefaultMutableTreeNode addObject( DefaultMutableTreeNode parent, Object child, boolean shouldBeVisible);
/** * Adds the object. * * @param parent the parent * @param child the child * @param shouldBeVisible the should be visible * @return the default mutable tree node */
Adds the object
addObject
{ "repo_name": "robward-scisys/sldeditor", "path": "modules/application/src/main/java/com/sldeditor/ui/tree/UpdateTreeStructureInterface.java", "license": "gpl-3.0", "size": 1567 }
[ "javax.swing.tree.DefaultMutableTreeNode" ]
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.*;
[ "javax.swing" ]
javax.swing;
361,978
protected void addTransportRabbitMqConnectionFactoryPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_InboundEndpoint_transportRabbitMqConnectionFa...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), EsbPackage.Literals.INBOUND_ENDPOINT__TRANSPORT_RABBIT_MQ_CONNECTION_FACTORY, true, false, false,...
/** * This adds a property descriptor for the Transport Rabbit Mq Connection Factory feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Transport Rabbit Mq Connection Factory feature.
addTransportRabbitMqConnectionFactoryPropertyDescriptor
{ "repo_name": "nwnpallewela/developer-studio", "path": "esb/plugins/org.wso2.developerstudio.eclipse.gmf.esb.edit/src/org/wso2/developerstudio/eclipse/gmf/esb/provider/InboundEndpointItemProvider.java", "license": "apache-2.0", "size": 156993 }
[ "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;
7,209
public void setMapWidget(final MapWidget mapWidget) { this.mapWidget = mapWidget; }
void function(final MapWidget mapWidget) { this.mapWidget = mapWidget; }
/** * DOCUMENT ME! * * @param mapWidget DOCUMENT ME! */
DOCUMENT ME
setMapWidget
{ "repo_name": "cismet/belis-client", "path": "src/main/java/de/cismet/belis/broker/BelisBroker.java", "license": "gpl-3.0", "size": 138018 }
[ "de.cismet.belis.gui.widget.MapWidget" ]
import de.cismet.belis.gui.widget.MapWidget;
import de.cismet.belis.gui.widget.*;
[ "de.cismet.belis" ]
de.cismet.belis;
69,574
@Test public void testToString() { Map<String, DashboardData.DashboardQueryData> m = createMap(); DashboardData instance = new DashboardData(m); String result = instance.toString(); assertNotNull(result); }
void function() { Map<String, DashboardData.DashboardQueryData> m = createMap(); DashboardData instance = new DashboardData(m); String result = instance.toString(); assertNotNull(result); }
/** * Test of toString method, of class DashboardData. */
Test of toString method, of class DashboardData
testToString
{ "repo_name": "bernhardhuber/kisoonlineapp", "path": "kisoonlineapp-gui/src/test/java/org/kisoonlineapp/uc/management/dashboard/DashboardDataTest.java", "license": "apache-2.0", "size": 4595 }
[ "java.util.Map", "org.junit.Assert" ]
import java.util.Map; import org.junit.Assert;
import java.util.*; import org.junit.*;
[ "java.util", "org.junit" ]
java.util; org.junit;
1,897,349
@ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux<GalleryImageInner> listByGalleryAsync( String resourceGroupName, String galleryName, Context context) { return new PagedFlux<>( () -> listByGallerySinglePageAsync(resourceGroupName, galleryName, context), n...
@ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<GalleryImageInner> function( String resourceGroupName, String galleryName, Context context) { return new PagedFlux<>( () -> listByGallerySinglePageAsync(resourceGroupName, galleryName, context), nextLink -> listByGalleryNextSinglePageAsync(nextLink, context)); }
/** * List gallery Image Definitions in a gallery. * * @param resourceGroupName The name of the resource group. * @param galleryName The name of the Shared Image Gallery from which Image Definitions are to be listed. * @param context The context to associate with this operation. * @throws ...
List gallery Image Definitions in a gallery
listByGalleryAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/implementation/GalleryImagesClientImpl.java", "license": "mit", "size": 76471 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedFlux", "com.azure.core.util.Context", "com.azure.resourcemanager.compute.fluent.models.GalleryImageInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.core.util.Context; import com.azure.resourcemanager.compute.fluent.models.GalleryImageInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.compute.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,179,832
@SuppressWarnings("deprecation") @SuppressLint("NewApi") private void showNotification (Builder notification) { NotificationManager mgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); int id = 0; try { id = Integer.parseIn...
@SuppressWarnings(STR) @SuppressLint(STR) void function (Builder notification) { NotificationManager mgr = (NotificationManager) context.getSystemService(Context.NOTIFICATION_SERVICE); int id = 0; try { id = Integer.parseInt(options.getId()); } catch (Exception e) {} if (Build.VERSION.SDK_INT<16) { mgr.notify(id, notif...
/** * Zeigt die Notification an. */
Zeigt die Notification an
showNotification
{ "repo_name": "rsimba/android-local-notifications", "path": "src/android/Receiver.java", "license": "apache-2.0", "size": 5949 }
[ "android.annotation.SuppressLint", "android.app.Notification", "android.app.NotificationManager", "android.content.Context", "android.os.Build" ]
import android.annotation.SuppressLint; import android.app.Notification; import android.app.NotificationManager; import android.content.Context; import android.os.Build;
import android.annotation.*; import android.app.*; import android.content.*; import android.os.*;
[ "android.annotation", "android.app", "android.content", "android.os" ]
android.annotation; android.app; android.content; android.os;
821,192
public void mouseEntered(MouseEvent e) { if (!this.ownToolTipDelaysActive) { ToolTipManager ttm = ToolTipManager.sharedInstance(); this.originalToolTipInitialDelay = ttm.getInitialDelay(); ttm.setInitialDelay(this.ownToolTipInitialDelay); this.originalToolTi...
void function(MouseEvent e) { if (!this.ownToolTipDelaysActive) { ToolTipManager ttm = ToolTipManager.sharedInstance(); this.originalToolTipInitialDelay = ttm.getInitialDelay(); ttm.setInitialDelay(this.ownToolTipInitialDelay); this.originalToolTipReshowDelay = ttm.getReshowDelay(); ttm.setReshowDelay(this.ownToolTipRe...
/** * Handles a 'mouse entered' event. This method changes the tooltip delays * of ToolTipManager.sharedInstance() to the possibly different values set * for this chart panel. * * @param e the mouse event. */
Handles a 'mouse entered' event. This method changes the tooltip delays of ToolTipManager.sharedInstance() to the possibly different values set for this chart panel
mouseEntered
{ "repo_name": "JSansalone/JFreeChart", "path": "source/org/jfree/chart/ChartPanel.java", "license": "lgpl-2.1", "size": 110714 }
[ "java.awt.event.MouseEvent", "javax.swing.ToolTipManager" ]
import java.awt.event.MouseEvent; import javax.swing.ToolTipManager;
import java.awt.event.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,758,464
public interface IPage extends IComposite { @Step void checkOpened();
interface IPage extends IComposite { void function();
/** * Check that page opened */
Check that page opened
checkOpened
{ "repo_name": "FunCat/JDI", "path": "Java/JDI/jdi-uitest-core/src/main/java/com/epam/jdi/uitests/core/interfaces/complex/IPage.java", "license": "gpl-3.0", "size": 1157 }
[ "com.epam.jdi.uitests.core.interfaces.base.IComposite" ]
import com.epam.jdi.uitests.core.interfaces.base.IComposite;
import com.epam.jdi.uitests.core.interfaces.base.*;
[ "com.epam.jdi" ]
com.epam.jdi;
692,969
@SuppressWarnings("MismatchedQueryAndUpdateOfCollection") public org.wso2.carbon.andes.admin.internal.Queue[] getAllQueues() throws BrokerManagerAdminException { List<org.wso2.carbon.andes.admin.internal.Queue> allQueues = new ArrayList<org.wso2.carbon.andes.admin.internal.Qu...
@SuppressWarnings(STR) org.wso2.carbon.andes.admin.internal.Queue[] function() throws BrokerManagerAdminException { List<org.wso2.carbon.andes.admin.internal.Queue> allQueues = new ArrayList<org.wso2.carbon.andes.admin.internal.Queue>(); org.wso2.carbon.andes.admin.internal.Queue[] queuesDTO; try { QueueManagerService ...
/** * Gets all queues. * Suppressing 'MismatchedQueryAndUpdateOfCollection' as 'allQueues' is used to sort and to * convert to an array. * * @return An array of queues. * @throws BrokerManagerAdminException */
Gets all queues. Suppressing 'MismatchedQueryAndUpdateOfCollection' as 'allQueues' is used to sort and to convert to an array
getAllQueues
{ "repo_name": "ThilankaBowala/carbon-business-messaging", "path": "components/andes/org.wso2.carbon.andes.admin/src/main/java/org/wso2/carbon/andes/admin/AndesAdminService.java", "license": "apache-2.0", "size": 57298 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List", "org.wso2.carbon.andes.admin.internal.Exception", "org.wso2.carbon.andes.admin.internal.Queue", "org.wso2.carbon.andes.admin.util.AndesBrokerManagerAdminServiceDSHolder", "org.wso2.carbon.andes.core.QueueManagerException", "org.wso2.car...
import java.util.ArrayList; import java.util.Collections; import java.util.List; import org.wso2.carbon.andes.admin.internal.Exception; import org.wso2.carbon.andes.admin.internal.Queue; import org.wso2.carbon.andes.admin.util.AndesBrokerManagerAdminServiceDSHolder; import org.wso2.carbon.andes.core.QueueManagerExcepti...
import java.util.*; import org.wso2.carbon.andes.admin.internal.*; import org.wso2.carbon.andes.admin.util.*; import org.wso2.carbon.andes.core.*;
[ "java.util", "org.wso2.carbon" ]
java.util; org.wso2.carbon;
234,563
public static Affinity<SplitKey> affinity() { return Ignition.localIgnite().affinity(CACHE_NAME); }
static Affinity<SplitKey> function() { return Ignition.localIgnite().affinity(CACHE_NAME); }
/** * Affinity function used in splits cache. * * @return Affinity function used in splits cache. */
Affinity function used in splits cache
affinity
{ "repo_name": "psadusumilli/ignite", "path": "modules/ml/src/main/java/org/apache/ignite/ml/trees/trainers/columnbased/caches/SplitCache.java", "license": "apache-2.0", "size": 7464 }
[ "org.apache.ignite.Ignition", "org.apache.ignite.cache.affinity.Affinity" ]
import org.apache.ignite.Ignition; import org.apache.ignite.cache.affinity.Affinity;
import org.apache.ignite.*; import org.apache.ignite.cache.affinity.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,206,878
public void setRuntimeProperties(Properties p) { runtimeProps = p; }
void function(Properties p) { runtimeProps = p; }
/** * set runtime properties * * @param p */
set runtime properties
setRuntimeProperties
{ "repo_name": "azkaban/azkaban-legacy", "path": "azkaban/src/java/azkaban/jobs/JobExecutorManager.java", "license": "apache-2.0", "size": 18028 }
[ "java.util.Properties" ]
import java.util.Properties;
import java.util.*;
[ "java.util" ]
java.util;
2,008,501
private boolean itemExists(Item[] items, Object element) { if (usingElementMap()) { Widget[] existingItems = findItems(element); // optimization for two common cases if (existingItems.length == 0) { return false; } else if (existingItems.length == 1) { if (items.length > 0 && existingItems[0] i...
boolean function(Item[] items, Object element) { if (usingElementMap()) { Widget[] existingItems = findItems(element); if (existingItems.length == 0) { return false; } else if (existingItems.length == 1) { if (items.length > 0 && existingItems[0] instanceof Item) { Item existingItem = (Item) existingItems[0]; return ge...
/** * See if element is the data of one of the elements in items. * * @param items * @param element * @return <code>true</code> if the element matches. */
See if element is the data of one of the elements in items
itemExists
{ "repo_name": "neelance/jface4ruby", "path": "jface4ruby/src/org/eclipse/jface/viewers/AbstractTreeViewer.java", "license": "epl-1.0", "size": 91053 }
[ "org.eclipse.swt.widgets.Item", "org.eclipse.swt.widgets.Widget" ]
import org.eclipse.swt.widgets.Item; import org.eclipse.swt.widgets.Widget;
import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
677,635
@Test public void printsBuiltYamlMappingWithAllNodes() throws Exception { final YamlMapping built = Yaml.createYamlMappingBuilder() .add("key1", "plain scalar") .add( "key2", Yaml.createYamlScalarBuilder() .addLine("literal") ...
void function() throws Exception { final YamlMapping built = Yaml.createYamlMappingBuilder() .add("key1", STR) .add( "key2", Yaml.createYamlScalarBuilder() .addLine(STR) .addLine("block") .addLine(STR) .buildLiteralBlockScalar() ) .add( "key3", Yaml.createYamlScalarBuilder() .addLine(STR) .addLine(STR) .addLine(STR) .b...
/** * We build a YamlMapping containing all types of * YamlNode we have so far and print it. * @throws Exception If something goes wrong. */
We build a YamlMapping containing all types of YamlNode we have so far and print it
printsBuiltYamlMappingWithAllNodes
{ "repo_name": "decorators-squad/camel", "path": "src/test/java/com/amihaiemil/eoyaml/YamlMappingPrintTest.java", "license": "bsd-3-clause", "size": 14315 }
[ "org.hamcrest.MatcherAssert", "org.hamcrest.Matchers" ]
import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers;
import org.hamcrest.*;
[ "org.hamcrest" ]
org.hamcrest;
1,523,679
void onDropCompleted(View target, DragObject d, boolean isFlingToDelete, boolean success);
void onDropCompleted(View target, DragObject d, boolean isFlingToDelete, boolean success);
/** * A callback made back to the source after an item from this source has been dropped on a * DropTarget. */
A callback made back to the source after an item from this source has been dropped on a DropTarget
onDropCompleted
{ "repo_name": "takahirom/MaterialHome", "path": "app/src/main/java/com/kogitune/launcher3/DragSource.java", "license": "apache-2.0", "size": 1514 }
[ "android.view.View", "com.kogitune.launcher3.DropTarget" ]
import android.view.View; import com.kogitune.launcher3.DropTarget;
import android.view.*; import com.kogitune.launcher3.*;
[ "android.view", "com.kogitune.launcher3" ]
android.view; com.kogitune.launcher3;
1,207,755
boolean isValidAt (@Nonnull LocalDateTime aDT);
boolean isValidAt (@Nonnull LocalDateTime aDT);
/** * Check if the token is valid at the specified date and time. This method * does not consider the revocation status! * * @param aDT * The date time to check. May not be <code>null</code>. * @return <code>true</code> if the token was valid at that point in time, * <code>false</cod...
Check if the token is valid at the specified date and time. This method does not consider the revocation status
isValidAt
{ "repo_name": "phax/ph-oton", "path": "ph-oton-security/src/main/java/com/helger/photon/security/token/accesstoken/IAccessToken.java", "license": "apache-2.0", "size": 3122 }
[ "java.time.LocalDateTime", "javax.annotation.Nonnull" ]
import java.time.LocalDateTime; import javax.annotation.Nonnull;
import java.time.*; import javax.annotation.*;
[ "java.time", "javax.annotation" ]
java.time; javax.annotation;
1,488,482
public Ul appendText(String text){ return appendChild(new Text(text)); }
Ul function(String text){ return appendChild(new Text(text)); }
/** * Convenience method which appends a text node to this element * @param text the text to be appended * @return the node */
Convenience method which appends a text node to this element
appendText
{ "repo_name": "esofthead/mycollab", "path": "mycollab-core/src/main/java/com/hp/gagawa/java/elements/Ul.java", "license": "agpl-3.0", "size": 4918 }
[ "com.hp.gagawa.java.elements.Text" ]
import com.hp.gagawa.java.elements.Text;
import com.hp.gagawa.java.elements.*;
[ "com.hp.gagawa" ]
com.hp.gagawa;
2,619,020
public BigDecimal getCostPerTrx(); public static final String COLUMNNAME_C_PaymentProcessor_ID = "C_PaymentProcessor_ID";
BigDecimal function(); public static final String COLUMNNAME_C_PaymentProcessor_ID = STR;
/** Get Cost per transaction. * Fixed cost per transaction */
Get Cost per transaction. Fixed cost per transaction
getCostPerTrx
{ "repo_name": "geneos/adempiere", "path": "base/src/org/compiere/model/I_C_PaymentProcessor.java", "license": "gpl-2.0", "size": 13910 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,070,477
protected List<ExecutableScript> initEnvForLanguage(String language) { List<ExecutableScript> scripts = new ArrayList<ExecutableScript>(); for (ScriptEnvResolver resolver : envResolvers) { String[] resolvedScripts = resolver.resolve(language); if(resolvedScripts != null) { for (String res...
List<ExecutableScript> function(String language) { List<ExecutableScript> scripts = new ArrayList<ExecutableScript>(); for (ScriptEnvResolver resolver : envResolvers) { String[] resolvedScripts = resolver.resolve(language); if(resolvedScripts != null) { for (String resolvedScript : resolvedScripts) { scripts.add(script...
/** * Initializes the env scripts for a given language. * * @param language the language * @return the list of env scripts. Never null. */
Initializes the env scripts for a given language
initEnvForLanguage
{ "repo_name": "subhrajyotim/camunda-bpm-platform", "path": "engine/src/main/java/org/camunda/bpm/engine/impl/scripting/env/ScriptingEnvironment.java", "license": "apache-2.0", "size": 6481 }
[ "java.util.ArrayList", "java.util.List", "org.camunda.bpm.engine.impl.scripting.ExecutableScript" ]
import java.util.ArrayList; import java.util.List; import org.camunda.bpm.engine.impl.scripting.ExecutableScript;
import java.util.*; import org.camunda.bpm.engine.impl.scripting.*;
[ "java.util", "org.camunda.bpm" ]
java.util; org.camunda.bpm;
2,438,408
InputStream svgImageRawInputStream; InputStream svgImageTransformedInputStream; Map<SVGImageTemplate, Map<CeActivityBadge, InputStream>> workingMap; if (blinkingValueBackgroundColor) { workingMap = this.ceActivityBlinkingBadgesMap; } else { workingMap = this.ceAct...
InputStream svgImageRawInputStream; InputStream svgImageTransformedInputStream; Map<SVGImageTemplate, Map<CeActivityBadge, InputStream>> workingMap; if (blinkingValueBackgroundColor) { workingMap = this.ceActivityBlinkingBadgesMap; } else { workingMap = this.ceActivityBadgesMap; } if (workingMap.containsKey(status)) { ...
/** * Returns an {@link InputStream} holding the content of the generated image for the provided ce activity status. All {@link InputStream} s are cached for future reuse. * * @param status ce activity status for which the image has to be generated * @param template {@link SVGImageTemplate} to be us...
Returns an <code>InputStream</code> holding the content of the generated image for the provided ce activity status. All <code>InputStream</code> s are cached for future reuse
svgImageInputStreamFor
{ "repo_name": "QualInsight/qualinsight-plugins-sonarqube-badges", "path": "src/main/java/com/qualinsight/plugins/sonarqube/badges/ws/ce/CeActivityBadgeGenerator.java", "license": "lgpl-3.0", "size": 5934 }
[ "com.google.common.collect.ImmutableMap", "com.qualinsight.plugins.sonarqube.badges.ws.SVGImageColor", "com.qualinsight.plugins.sonarqube.badges.ws.SVGImageData", "com.qualinsight.plugins.sonarqube.badges.ws.SVGImageTemplate", "java.io.InputStream", "java.util.Map" ]
import com.google.common.collect.ImmutableMap; import com.qualinsight.plugins.sonarqube.badges.ws.SVGImageColor; import com.qualinsight.plugins.sonarqube.badges.ws.SVGImageData; import com.qualinsight.plugins.sonarqube.badges.ws.SVGImageTemplate; import java.io.InputStream; import java.util.Map;
import com.google.common.collect.*; import com.qualinsight.plugins.sonarqube.badges.ws.*; import java.io.*; import java.util.*;
[ "com.google.common", "com.qualinsight.plugins", "java.io", "java.util" ]
com.google.common; com.qualinsight.plugins; java.io; java.util;
179,217
public static final SourceModel.Expr intersection(SourceModel.Expr t1, SourceModel.Expr t2) { return SourceModel.Expr.Application.make( new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.intersection), t1, t2}); } public static final QualifiedName intersection = QualifiedNa...
static final SourceModel.Expr function(SourceModel.Expr t1, SourceModel.Expr t2) { return SourceModel.Expr.Application.make( new SourceModel.Expr[] {SourceModel.Expr.Var.make(Functions.intersection), t1, t2}); } static final QualifiedName function = QualifiedName.make(CAL_Set.MODULE_NAME, STR);
/** * Returns the intersection of two sets. * <p> * Complexity: O(n+m) * * @param t1 (CAL type: <code>Cal.Core.Prelude.Ord a => Cal.Collections.Set.Set a</code>) * the first set. * @param t2 (CAL type: <code>Cal.Core.Prelude.Ord a => Cal.Collections.Set.Set a</code>) * ...
Returns the intersection of two sets. Complexity: O(n+m)
intersection
{ "repo_name": "levans/Open-Quark", "path": "src/CAL_Platform/src/org/openquark/cal/module/Cal/Collections/CAL_Set.java", "license": "bsd-3-clause", "size": 39863 }
[ "org.openquark.cal.compiler.QualifiedName", "org.openquark.cal.compiler.SourceModel" ]
import org.openquark.cal.compiler.QualifiedName; import org.openquark.cal.compiler.SourceModel;
import org.openquark.cal.compiler.*;
[ "org.openquark.cal" ]
org.openquark.cal;
246,494
@Test(expected = GenieException.class) public void testInvalidClassName() throws GenieException { this.factory.getJobManager(null); }
@Test(expected = GenieException.class) void function() throws GenieException { this.factory.getJobManager(null); }
/** * Tests whether an invalid class name throws an exception. * * @throws GenieException */
Tests whether an invalid class name throws an exception
testInvalidClassName
{ "repo_name": "gorcz/genie", "path": "genie-server/src/test/java/com/netflix/genie/server/jobmanager/TestJobManagerFactory.java", "license": "apache-2.0", "size": 1535 }
[ "com.netflix.genie.common.exceptions.GenieException", "org.junit.Test" ]
import com.netflix.genie.common.exceptions.GenieException; import org.junit.Test;
import com.netflix.genie.common.exceptions.*; import org.junit.*;
[ "com.netflix.genie", "org.junit" ]
com.netflix.genie; org.junit;
315,691
public String buttonActionCancel() { String target = null; if (Boolean.valueOf(getParamDirectedit()).booleanValue()) { // editor is in direct edit mode if (CmsStringUtil.isNotEmpty(getParamBacklink())) { // set link to the specified back link target ...
String function() { String target = null; if (Boolean.valueOf(getParamDirectedit()).booleanValue()) { if (CmsStringUtil.isNotEmpty(getParamBacklink())) { target = getParamBacklink(); } else { target = getParamResource(); } } else { target = OpenCms.getLinkManager().substituteLink(getCms(), CmsFrameset.JSP_WORKPLACE_URI...
/** * Returns the editor action for a "cancel" button.<p> * * This overwrites the cancel method of the CmsDialog class.<p> * * Always use this value, do not write anything directly in the html page.<p> * * @return the default action for a "cancel" button */
Returns the editor action for a "cancel" button. This overwrites the cancel method of the CmsDialog class. Always use this value, do not write anything directly in the html page
buttonActionCancel
{ "repo_name": "it-tavis/opencms-core", "path": "src/org/opencms/workplace/editors/CmsEditor.java", "license": "lgpl-2.1", "size": 38835 }
[ "org.opencms.main.OpenCms", "org.opencms.util.CmsStringUtil", "org.opencms.workplace.CmsFrameset" ]
import org.opencms.main.OpenCms; import org.opencms.util.CmsStringUtil; import org.opencms.workplace.CmsFrameset;
import org.opencms.main.*; import org.opencms.util.*; import org.opencms.workplace.*;
[ "org.opencms.main", "org.opencms.util", "org.opencms.workplace" ]
org.opencms.main; org.opencms.util; org.opencms.workplace;
493,206
private PhysicalPlan createPlanWithPredecessors(PhysicalOperator algeOp, PhysicalPlan pplan) throws CloneNotSupportedException, PlanException { PhysicalPlan newplan = new PhysicalPlan(); addPredecessorsToPlan(algeOp, pplan, newplan); return newplan; }
PhysicalPlan function(PhysicalOperator algeOp, PhysicalPlan pplan) throws CloneNotSupportedException, PlanException { PhysicalPlan newplan = new PhysicalPlan(); addPredecessorsToPlan(algeOp, pplan, newplan); return newplan; }
/** * Create new plan and add to it the clones of operator algeOp and its * predecessors from the physical plan pplan . * @param algeOp algebraic operator * @param pplan physical plan that has algeOp * @return new plan * @throws CloneNotSupportedException * @throws PlanException ...
Create new plan and add to it the clones of operator algeOp and its predecessors from the physical plan pplan
createPlanWithPredecessors
{ "repo_name": "dmeister/pig-cll-gz", "path": "src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/CombinerOptimizer.java", "license": "apache-2.0", "size": 41009 }
[ "org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator", "org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PhysicalPlan", "org.apache.pig.impl.plan.PlanException" ]
import org.apache.pig.backend.hadoop.executionengine.physicalLayer.PhysicalOperator; import org.apache.pig.backend.hadoop.executionengine.physicalLayer.plans.PhysicalPlan; import org.apache.pig.impl.plan.PlanException;
import org.apache.pig.backend.hadoop.executionengine.*; import org.apache.pig.impl.plan.*;
[ "org.apache.pig" ]
org.apache.pig;
1,548,136
public void testSuggestionFactor() { String input = "t shirt of the dead"; int dist = StringUtil.levenshteinDistance(input, "t shirt of the living dead").distance; assertEquals(7, dist); float maxDistance = StringUtil.maxDistance(input); assertTrue(maxDistance < dist); ...
void function() { String input = STR; int dist = StringUtil.levenshteinDistance(input, STR).distance; assertEquals(7, dist); float maxDistance = StringUtil.maxDistance(input); assertTrue(maxDistance < dist); float suggestionDistance = StringUtil.suggestionFactor(maxDistance); assertTrue(dist + STR + suggestionDistance,...
/** * A practical example of a real-world mistake that should be * suggested, rather than flagged as an exact match. */
A practical example of a real-world mistake that should be suggested, rather than flagged as an exact match
testSuggestionFactor
{ "repo_name": "josephw/mivvi", "path": "recognise/src/test/java/org/kafsemo/mivvi/recognise/TestStringUtilExamples.java", "license": "lgpl-3.0", "size": 2984 }
[ "org.kafsemo.mivvi.recognise.StringUtil" ]
import org.kafsemo.mivvi.recognise.StringUtil;
import org.kafsemo.mivvi.recognise.*;
[ "org.kafsemo.mivvi" ]
org.kafsemo.mivvi;
1,757,492
@Override @Deprecated public IDataHashCursor getHashCursor() { throw new UnsupportedOperationException("getHashCursor not implemented"); }
IDataHashCursor function() { throw new UnsupportedOperationException(STR); }
/** * Returns an IDataHashCursor for traversing this IData. * * @return An IDataHashCursor for traversing this IData. * @throws UnsupportedOperationException As this method is not implemented. * @deprecated */
Returns an IDataHashCursor for traversing this IData
getHashCursor
{ "repo_name": "Permafrost/Tundra.java", "path": "src/main/java/permafrost/tundra/data/AbstractIData.java", "license": "mit", "size": 4109 }
[ "com.wm.data.IDataHashCursor" ]
import com.wm.data.IDataHashCursor;
import com.wm.data.*;
[ "com.wm.data" ]
com.wm.data;
2,849,144
public void setSpeed(float newSpeed) throws InvalidFieldValueException;
void function(float newSpeed) throws InvalidFieldValueException;
/** * Set the speed to move at. The speed value must be non-negative. * * @param newSpeed The new speed value to use * @throws InvalidFieldValueException The speed was negative */
Set the speed to move at. The speed value must be non-negative
setSpeed
{ "repo_name": "Norkart/NK-VirtualGlobe", "path": "Xj3D/src/java/org/web3d/vrml/nodes/VRMLNavigationInfoNodeType.java", "license": "gpl-2.0", "size": 5731 }
[ "org.web3d.vrml.lang.InvalidFieldValueException" ]
import org.web3d.vrml.lang.InvalidFieldValueException;
import org.web3d.vrml.lang.*;
[ "org.web3d.vrml" ]
org.web3d.vrml;
1,152,947
private void compact(final byte[] tableNameOrRegionName, final byte[] columnFamily,final boolean major) throws IOException, InterruptedException { CatalogTracker ct = getCatalogTracker(); try { Pair<HRegionInfo, ServerName> regionServerPair = getRegion(tableNameOrRegionName, ct); if ...
void function(final byte[] tableNameOrRegionName, final byte[] columnFamily,final boolean major) throws IOException, InterruptedException { CatalogTracker ct = getCatalogTracker(); try { Pair<HRegionInfo, ServerName> regionServerPair = getRegion(tableNameOrRegionName, ct); if (regionServerPair != null) { if (regionServ...
/** * Compact a table or an individual region. * Asynchronous operation. * * @param tableNameOrRegionName table or region to compact * @param columnFamily column family within a table or region * @param major True if we are to do a major compaction. * @throws IOException if a remote or network exce...
Compact a table or an individual region. Asynchronous operation
compact
{ "repo_name": "francisliu/hbase_namespace", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/HBaseAdmin.java", "license": "apache-2.0", "size": 118566 }
[ "java.io.IOException", "java.util.List", "org.apache.hadoop.hbase.FullyQualifiedTableName", "org.apache.hadoop.hbase.HRegionInfo", "org.apache.hadoop.hbase.ServerName", "org.apache.hadoop.hbase.catalog.CatalogTracker", "org.apache.hadoop.hbase.catalog.MetaReader", "org.apache.hadoop.hbase.exceptions.N...
import java.io.IOException; import java.util.List; import org.apache.hadoop.hbase.FullyQualifiedTableName; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.ServerName; import org.apache.hadoop.hbase.catalog.CatalogTracker; import org.apache.hadoop.hbase.catalog.MetaReader; import org.apache.ha...
import java.io.*; import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.catalog.*; import org.apache.hadoop.hbase.exceptions.*; import org.apache.hadoop.hbase.util.*; import org.apache.hadoop.util.*;
[ "java.io", "java.util", "org.apache.hadoop" ]
java.io; java.util; org.apache.hadoop;
694,507
public static <E> void saveCounter(Counter<E> c, OutputStream stream) { PrintStream out = new PrintStream(stream); for (E key : c.keySet()) { out.println(key + " " + c.getCount(key)); } }
static <E> void function(Counter<E> c, OutputStream stream) { PrintStream out = new PrintStream(stream); for (E key : c.keySet()) { out.println(key + " " + c.getCount(key)); } }
/** * Saves a Counter as one key/count pair per line separated by white space to * the given OutputStream. Does not close the stream. */
Saves a Counter as one key/count pair per line separated by white space to the given OutputStream. Does not close the stream
saveCounter
{ "repo_name": "codev777/CoreNLP", "path": "src/edu/stanford/nlp/stats/Counters.java", "license": "gpl-2.0", "size": 100293 }
[ "java.io.OutputStream", "java.io.PrintStream" ]
import java.io.OutputStream; import java.io.PrintStream;
import java.io.*;
[ "java.io" ]
java.io;
549,045
void commandComplete(GcodeCommand command);
void commandComplete(GcodeCommand command);
/** * A command has been processed by the the controller. */
A command has been processed by the the controller
commandComplete
{ "repo_name": "winder/Universal-G-Code-Sender", "path": "ugs-core/src/com/willwinder/universalgcodesender/listeners/ControllerListener.java", "license": "gpl-3.0", "size": 2167 }
[ "com.willwinder.universalgcodesender.types.GcodeCommand" ]
import com.willwinder.universalgcodesender.types.GcodeCommand;
import com.willwinder.universalgcodesender.types.*;
[ "com.willwinder.universalgcodesender" ]
com.willwinder.universalgcodesender;
1,184,107
@Override public ResourceLocator getResourceLocator() { return WTSpec4M50EditPlugin.INSTANCE; }
ResourceLocator function() { return WTSpec4M50EditPlugin.INSTANCE; }
/** * Return the resource locator for this item provider's resources. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Return the resource locator for this item provider's resources.
getResourceLocator
{ "repo_name": "mondo-project/mondo-demo-wt", "path": "DSL-tao/org.mondo.wt.cstudy.edit/src/WTSpec4M/provider/WTCInputItemProvider.java", "license": "epl-1.0", "size": 2926 }
[ "org.eclipse.emf.common.util.ResourceLocator" ]
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,708,143
protected ArrayList<Card> getSelectedCards() { return mHelper.getSelectedCards(); }
ArrayList<Card> function() { return mHelper.getSelectedCards(); }
/** * Returns the selected cards * @return */
Returns the selected cards
getSelectedCards
{ "repo_name": "tajchert/CEEHack", "path": "cardslib/library/src/main/src/it/gmariotti/cardslib/library/internal/CardArrayMultiChoiceAdapter.java", "license": "apache-2.0", "size": 5997 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,142,110
final Logger logger; final Configuration config; Configuration.setup(args); config = Configuration.getRoot(); logger = Configuration.getGlobalLogger(); Main.run(config, logger); }
final Logger logger; final Configuration config; Configuration.setup(args); config = Configuration.getRoot(); logger = Configuration.getGlobalLogger(); Main.run(config, logger); }
/** * The main entry point of the website builder * * @param args * the command line arguments: 1) input folder, 2) output folder * @throws IOException * if i/o fails */
The main entry point of the website builder
main
{ "repo_name": "thomasWeise/website", "path": "tools/websiteBuilder/src/main/java/thomasWeise/websiteBuilder/compressor/Main.java", "license": "gpl-3.0", "size": 2442 }
[ "java.util.logging.Logger" ]
import java.util.logging.Logger;
import java.util.logging.*;
[ "java.util" ]
java.util;
1,507,142
private void animToolActionBar(float value) { ViewPropertyAnimator animator = ViewPropertyAnimator.animate(mToolbar); animator.translationY(value).setDuration(400); }
void function(float value) { ViewPropertyAnimator animator = ViewPropertyAnimator.animate(mToolbar); animator.translationY(value).setDuration(400); }
/** * Animation and moving actionbar(toolbar). * * @param value * The property value of animation. */
Animation and moving actionbar(toolbar)
animToolActionBar
{ "repo_name": "XinyueZ/schautup", "path": "app/src/main/java/com/schautup/activities/HomePageWebViewActivity.java", "license": "mit", "size": 4806 }
[ "com.nineoldandroids.view.ViewPropertyAnimator" ]
import com.nineoldandroids.view.ViewPropertyAnimator;
import com.nineoldandroids.view.*;
[ "com.nineoldandroids.view" ]
com.nineoldandroids.view;
1,603,792
public static synchronized <T> T sum(Class<?> modelClass, String columnName, Class<T> columnType) { return sum(BaseUtility.changeCase(DBUtility.getTableNameByClassName(modelClass.getName())), columnName, columnType); }
static synchronized <T> T function(Class<?> modelClass, String columnName, Class<T> columnType) { return sum(BaseUtility.changeCase(DBUtility.getTableNameByClassName(modelClass.getName())), columnName, columnType); }
/** * Calculates the sum of values on a given column. The value is returned * with the same data type of the column. * * <pre> * DataSupport.sum(Person.class, &quot;age&quot;, int.class); * </pre> * * You can also specify a where clause when calculating. * * <pre> * DataSupport.where(&quot;age ...
Calculates the sum of values on a given column. The value is returned with the same data type of the column. <code> DataSupport.sum(Person.class, &quot;age&quot;, int.class); </code> You can also specify a where clause when calculating. <code> DataSupport.where(&quot;age &gt; ?&quot;, &quot;15&quot;).sum(Person.class, ...
sum
{ "repo_name": "weiwenqiang/GitHub", "path": "Sqlite/LitePal-master/litepal/src/main/java/org/litepal/crud/DataSupport.java", "license": "apache-2.0", "size": 83242 }
[ "org.litepal.util.BaseUtility", "org.litepal.util.DBUtility" ]
import org.litepal.util.BaseUtility; import org.litepal.util.DBUtility;
import org.litepal.util.*;
[ "org.litepal.util" ]
org.litepal.util;
864,628
protected void parseIDLCompilerDefinitionsFile() throws BuildException { _idlCompilerDefinitions = new Hashtable(); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setValidating(false); dbf.setNamespaceAware(false); ...
void function() throws BuildException { _idlCompilerDefinitions = new Hashtable(); try { DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); dbf.setValidating(false); dbf.setNamespaceAware(false); DocumentBuilder db = dbf.newDocumentBuilder(); InputStream configIn = getClass().getResourceAsStream(STR); i...
/** * Parse the IDL compiler definitions file. */
Parse the IDL compiler definitions file
parseIDLCompilerDefinitionsFile
{ "repo_name": "nmcl/scratch", "path": "graalvm/transactions/fork/narayana/ArjunaJTS/orbportability/classes/com/arjuna/orbportability/common/ant/IDLCompiler.java", "license": "apache-2.0", "size": 36141 }
[ "java.io.InputStream", "java.util.ArrayList", "java.util.Hashtable", "javax.xml.parsers.DocumentBuilder", "javax.xml.parsers.DocumentBuilderFactory", "org.apache.tools.ant.BuildException", "org.w3c.dom.Document", "org.w3c.dom.Element", "org.w3c.dom.NamedNodeMap", "org.w3c.dom.Node", "org.w3c.dom...
import java.io.InputStream; import java.util.ArrayList; import java.util.Hashtable; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import org.apache.tools.ant.BuildException; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NamedNodeMap; import org....
import java.io.*; import java.util.*; import javax.xml.parsers.*; import org.apache.tools.ant.*; import org.w3c.dom.*;
[ "java.io", "java.util", "javax.xml", "org.apache.tools", "org.w3c.dom" ]
java.io; java.util; javax.xml; org.apache.tools; org.w3c.dom;
684,164
@Test(groups = "Enterprise4.2") public void AONE_14976() throws Exception { testName = getTestName(); String siteName = getSiteName(testName); String testUser1 = getUserNameFreeDomain(testName); String testUser2 = testUser1 + 2; String folde...
@Test(groups = STR) void function() throws Exception { testName = getTestName(); String siteName = getSiteName(testName); String testUser1 = getUserNameFreeDomain(testName); String testUser2 = testUser1 + 2; String folderName1 = getFolderName(testName); String folderName2 = folderName1 + 2; ShareUser.login(drone, testU...
/** * Modifier of folder was deleted * * @throws Exception */
Modifier of folder was deleted
AONE_14976
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/qa-share/src/test/java/org/alfresco/share/site/document/ManageDocLibItemsTest.java", "license": "lgpl-3.0", "size": 33050 }
[ "org.alfresco.po.share.site.document.DocumentLibraryPage", "org.alfresco.po.share.site.document.EditDocumentPropertiesPage", "org.alfresco.po.share.site.document.FileDirectoryInfo", "org.alfresco.share.util.ShareUser", "org.alfresco.share.util.ShareUserSitePage", "org.testng.Assert", "org.testng.annotat...
import org.alfresco.po.share.site.document.DocumentLibraryPage; import org.alfresco.po.share.site.document.EditDocumentPropertiesPage; import org.alfresco.po.share.site.document.FileDirectoryInfo; import org.alfresco.share.util.ShareUser; import org.alfresco.share.util.ShareUserSitePage; import org.testng.Assert; impor...
import org.alfresco.po.share.site.document.*; import org.alfresco.share.util.*; import org.testng.*; import org.testng.annotations.*;
[ "org.alfresco.po", "org.alfresco.share", "org.testng", "org.testng.annotations" ]
org.alfresco.po; org.alfresco.share; org.testng; org.testng.annotations;
2,267,721
@SuppressLint("NewApi") private void initiateActionBar() { if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setTitle(getResources().getString(R.string.sale)); actionBar.setBackgroun...
@SuppressLint(STR) void function() { if (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) { ActionBar actionBar = getActionBar(); actionBar.setDisplayHomeAsUpEnabled(true); actionBar.setTitle(getResources().getString(R.string.sale)); actionBar.setBackgroundDrawable(new ColorDrawable(Color.parseColor(S...
/** * Initiate actionbar. */
Initiate actionbar
initiateActionBar
{ "repo_name": "mapfap/pos", "path": "src/com/refresh/pos/ui/sale/SaleDetailActivity.java", "license": "epl-1.0", "size": 3235 }
[ "android.annotation.SuppressLint", "android.app.ActionBar", "android.graphics.Color", "android.graphics.drawable.ColorDrawable", "android.os.Build" ]
import android.annotation.SuppressLint; import android.app.ActionBar; import android.graphics.Color; import android.graphics.drawable.ColorDrawable; import android.os.Build;
import android.annotation.*; import android.app.*; import android.graphics.*; import android.graphics.drawable.*; import android.os.*;
[ "android.annotation", "android.app", "android.graphics", "android.os" ]
android.annotation; android.app; android.graphics; android.os;
1,833,557
@Override protected MergedContextConfiguration processMergedContextConfiguration(MergedContextConfiguration mergedConfig) { WebAppConfiguration webAppConfiguration = getWebAppConfiguration(mergedConfig.getTestClass()); if (webAppConfiguration != null) { return new WebMergedContextConfiguration(mergedConfig, ...
MergedContextConfiguration function(MergedContextConfiguration mergedConfig) { WebAppConfiguration webAppConfiguration = getWebAppConfiguration(mergedConfig.getTestClass()); if (webAppConfiguration != null) { return new WebMergedContextConfiguration(mergedConfig, webAppConfiguration.value()); } else { return mergedConf...
/** * Returns a {@link WebMergedContextConfiguration} if the test class in the * supplied {@code MergedContextConfiguration} is annotated with * {@link WebAppConfiguration @WebAppConfiguration} and otherwise returns * the supplied instance unmodified. */
Returns a <code>WebMergedContextConfiguration</code> if the test class in the supplied MergedContextConfiguration is annotated with <code>WebAppConfiguration @WebAppConfiguration</code> and otherwise returns the supplied instance unmodified
processMergedContextConfiguration
{ "repo_name": "spring-projects/spring-framework", "path": "spring-test/src/main/java/org/springframework/test/context/web/WebTestContextBootstrapper.java", "license": "apache-2.0", "size": 2977 }
[ "org.springframework.test.context.MergedContextConfiguration" ]
import org.springframework.test.context.MergedContextConfiguration;
import org.springframework.test.context.*;
[ "org.springframework.test" ]
org.springframework.test;
583,562
private synchronized SimpleTimeZone getLastRule() { if (lastRule == null) { lastRule = getLastRuleInstance(); } return lastRule; }
synchronized SimpleTimeZone function() { if (lastRule == null) { lastRule = getLastRuleInstance(); } return lastRule; }
/** * Returns a SimpleTimeZone object representing the last GMT * offset and DST schedule or null if this time zone doesn't * observe DST. */
Returns a SimpleTimeZone object representing the last GMT offset and DST schedule or null if this time zone doesn't observe DST
getLastRule
{ "repo_name": "karianna/jdk8_tl", "path": "jdk/src/share/classes/sun/util/calendar/ZoneInfo.java", "license": "gpl-2.0", "size": 25636 }
[ "java.util.SimpleTimeZone" ]
import java.util.SimpleTimeZone;
import java.util.*;
[ "java.util" ]
java.util;
443,491
long[] queryElements(IntPredicate labelPredicate);
long[] queryElements(IntPredicate labelPredicate);
/** * Query identifiers of elements matching a given label predicate. * * @param labelPredicate label predicate * @return identifiers */
Query identifiers of elements matching a given label predicate
queryElements
{ "repo_name": "p3et/dmgm", "path": "src/main/java/org/biiig/dmgm/api/db/QueryElements.java", "license": "gpl-3.0", "size": 2054 }
[ "java.util.function.IntPredicate" ]
import java.util.function.IntPredicate;
import java.util.function.*;
[ "java.util" ]
java.util;
1,199,929
protected boolean shouldMasqueradeForTx(Message clientMessage, ServerConnection serverConnection) { return serverConnection.getClientVersion().compareTo(Version.GFE_66) >= 0 && clientMessage.getTransactionId() > TXManagerImpl.NOTX; }
boolean function(Message clientMessage, ServerConnection serverConnection) { return serverConnection.getClientVersion().compareTo(Version.GFE_66) >= 0 && clientMessage.getTransactionId() > TXManagerImpl.NOTX; }
/** * checks to see if this thread needs to masquerade as a transactional thread. clients after * GFE_66 should be able to start a transaction. * * @return true if thread should masquerade as a transactional thread. */
checks to see if this thread needs to masquerade as a transactional thread. clients after GFE_66 should be able to start a transaction
shouldMasqueradeForTx
{ "repo_name": "pivotal-amurmann/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/tier/sockets/BaseCommand.java", "license": "apache-2.0", "size": 61516 }
[ "org.apache.geode.internal.Version", "org.apache.geode.internal.cache.TXManagerImpl" ]
import org.apache.geode.internal.Version; import org.apache.geode.internal.cache.TXManagerImpl;
import org.apache.geode.internal.*; import org.apache.geode.internal.cache.*;
[ "org.apache.geode" ]
org.apache.geode;
777,770
private void saveMap() { // If we're clean, there's nothing to save! if (!dirty) { return; } // Otherwise, see if we've got a filename stored & get one if not File fileToSave = null; if (savedFilename == null) { int rVal = jFileChooser.showSaveDialog(null); if (rVal == JFileChooser.APPROVE_OP...
void function() { if (!dirty) { return; } File fileToSave = null; if (savedFilename == null) { int rVal = jFileChooser.showSaveDialog(null); if (rVal == JFileChooser.APPROVE_OPTION) { fileToSave = jFileChooser.getSelectedFile(); } else { return; } } else { fileToSave = savedFilename; } try { Output output = new Output(...
/** * TODO(max): this */
TODO(max): this
saveMap
{ "repo_name": "mbforbes/wasabi", "path": "wasabi/src/com/mortrag/ut/wasabi/leveleditor/LevelEditor.java", "license": "mit", "size": 23549 }
[ "com.esotericsoftware.kryo.io.Output", "com.mortrag.ut.wasabi.util.Debug", "java.io.File", "java.io.FileNotFoundException", "java.io.FileOutputStream", "javax.swing.JFileChooser" ]
import com.esotericsoftware.kryo.io.Output; import com.mortrag.ut.wasabi.util.Debug; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import javax.swing.JFileChooser;
import com.esotericsoftware.kryo.io.*; import com.mortrag.ut.wasabi.util.*; import java.io.*; import javax.swing.*;
[ "com.esotericsoftware.kryo", "com.mortrag.ut", "java.io", "javax.swing" ]
com.esotericsoftware.kryo; com.mortrag.ut; java.io; javax.swing;
154,749
@Deprecated public Future<CommandResult> toggle(String pin) { Toggle command = new Toggle(); // Set the fields command.setPin(pin); return sendCommand(command); }
Future<CommandResult> function(String pin) { Toggle command = new Toggle(); command.setPin(pin); return sendCommand(command); }
/** * The Toggle * <p> * Request the status of the lock. As of HA 1.2, this command includes an optional code for * the lock. The door lock may require a code depending on the value of the [Require PIN for RF * Operation attribute] * * @param pin {@link String} PIN * @return the ...
The Toggle Request the status of the lock. As of HA 1.2, this command includes an optional code for the lock. The door lock may require a code depending on the value of the [Require PIN for RF Operation attribute]
toggle
{ "repo_name": "zsmartsystems/com.zsmartsystems.zigbee", "path": "com.zsmartsystems.zigbee/src/main/java/com/zsmartsystems/zigbee/zcl/clusters/ZclDoorLockCluster.java", "license": "epl-1.0", "size": 182330 }
[ "com.zsmartsystems.zigbee.CommandResult", "com.zsmartsystems.zigbee.zcl.clusters.doorlock.Toggle", "java.util.concurrent.Future" ]
import com.zsmartsystems.zigbee.CommandResult; import com.zsmartsystems.zigbee.zcl.clusters.doorlock.Toggle; import java.util.concurrent.Future;
import com.zsmartsystems.zigbee.*; import com.zsmartsystems.zigbee.zcl.clusters.doorlock.*; import java.util.concurrent.*;
[ "com.zsmartsystems.zigbee", "java.util" ]
com.zsmartsystems.zigbee; java.util;
1,624,609
public Identifier loadFromCache(Versionable asset) throws DotDataException, DotStateException;
Identifier function(Versionable asset) throws DotDataException, DotStateException;
/** * Will take a versionable and return its identifier from cache or null if not found * This will never hit the db * @param versionable * @return Identifier * @throws DotDataException * @throws DotStateException */
Will take a versionable and return its identifier from cache or null if not found This will never hit the db
loadFromCache
{ "repo_name": "zhiqinghuang/core", "path": "src/com/dotmarketing/business/IdentifierAPI.java", "license": "gpl-3.0", "size": 5864 }
[ "com.dotmarketing.beans.Identifier", "com.dotmarketing.exception.DotDataException" ]
import com.dotmarketing.beans.Identifier; import com.dotmarketing.exception.DotDataException;
import com.dotmarketing.beans.*; import com.dotmarketing.exception.*;
[ "com.dotmarketing.beans", "com.dotmarketing.exception" ]
com.dotmarketing.beans; com.dotmarketing.exception;
1,127,619
public static List<SousFamille> findSousFamillesExistantesTriees(){ List<SousFamille> sfs = find.where().eq("sous_famille_existe", true).findList(); Collections.sort(sfs,new SousFamille()); return sfs; } private SousFamille(){}; public SousFamille(String nom, boolean existe, Integer sousFamilleOuFamilleI...
static List<SousFamille> function(){ List<SousFamille> sfs = find.where().eq(STR, true).findList(); Collections.sort(sfs,new SousFamille()); return sfs; } private SousFamille(){}; public SousFamille(String nom, boolean existe, Integer sousFamilleOuFamilleId) throws PersistenceException, NamingException{ sous_famille_no...
/** * Trie les sous-familles * @return */
Trie les sous-familles
findSousFamillesExistantesTriees
{ "repo_name": "siriusxiv/AER", "path": "app/models/SousFamille.java", "license": "apache-2.0", "size": 6246 }
[ "java.util.Collections", "java.util.List", "javax.naming.NamingException", "javax.persistence.PersistenceException" ]
import java.util.Collections; import java.util.List; import javax.naming.NamingException; import javax.persistence.PersistenceException;
import java.util.*; import javax.naming.*; import javax.persistence.*;
[ "java.util", "javax.naming", "javax.persistence" ]
java.util; javax.naming; javax.persistence;
136,280
private List<RichAttribute> getMemberResourceAttributes(PerunSession sess, Group group, Resource resource, AttributeDefinition attrDef) throws AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException { List<RichAttribute> listOfRichAttributes = new ArrayList<>(); List<Membe...
List<RichAttribute> function(PerunSession sess, Group group, Resource resource, AttributeDefinition attrDef) throws AttributeNotExistsException, WrongAttributeAssignmentException, MemberResourceMismatchException { List<RichAttribute> listOfRichAttributes = new ArrayList<>(); List<Member> membersFromGroup = getPerunBl()...
/** * Returns all relevant MemberResource RichAttributes for given group and resource. * That means, returns all MemberResource rich attributes for the given resource and groups that can access this * resource via theirs allowed users. * Each rich attribute is returned only once. * * @param sess session...
Returns all relevant MemberResource RichAttributes for given group and resource. That means, returns all MemberResource rich attributes for the given resource and groups that can access this resource via theirs allowed users. Each rich attribute is returned only once
getMemberResourceAttributes
{ "repo_name": "CESNET/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/blImpl/AttributesManagerBlImpl.java", "license": "bsd-2-clause", "size": 587965 }
[ "cz.metacentrum.perun.core.api.Attribute", "cz.metacentrum.perun.core.api.AttributeDefinition", "cz.metacentrum.perun.core.api.Group", "cz.metacentrum.perun.core.api.Member", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.Resource", "cz.metacentrum.perun.core.api.RichAttrib...
import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.AttributeDefinition; import cz.metacentrum.perun.core.api.Group; import cz.metacentrum.perun.core.api.Member; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.Resource; import cz.metacentrum.perun...
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
1,076,313
public void assumeDead(AetherIdentifier ibisIdentifier) throws IOException;
void function(AetherIdentifier ibisIdentifier) throws IOException;
/** * Instructs the registry to assume that the specified Ibis instance is * dead. * * @param ibisIdentifier * the Ibis identifier of the Ibis instance that must be assumed * to be dead. * @exception IOException * is thrown in case of trouble...
Instructs the registry to assume that the specified Ibis instance is dead
assumeDead
{ "repo_name": "NLeSC/Aether", "path": "src/nl/esciencecenter/aether/Registry.java", "license": "apache-2.0", "size": 10869 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
528,122
public void updateTick(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) { int var6 = this.func_149804_e(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_); byte var7 = 1; if (this.blockMaterial == Material.lava && !p_149674_1_.provider.isHellWor...
void function(World p_149674_1_, int p_149674_2_, int p_149674_3_, int p_149674_4_, Random p_149674_5_) { int var6 = this.func_149804_e(p_149674_1_, p_149674_2_, p_149674_3_, p_149674_4_); byte var7 = 1; if (this.blockMaterial == Material.lava && !p_149674_1_.provider.isHellWorld) { var7 = 2; } boolean var8 = true; int...
/** * Ticks the block if it's been scheduled */
Ticks the block if it's been scheduled
updateTick
{ "repo_name": "mviitanen/marsmod", "path": "mcp/src/minecraft/net/minecraft/block/BlockDynamicLiquid.java", "license": "gpl-2.0", "size": 12077 }
[ "java.util.Random", "net.minecraft.block.material.Material", "net.minecraft.init.Blocks", "net.minecraft.world.World" ]
import java.util.Random; import net.minecraft.block.material.Material; import net.minecraft.init.Blocks; import net.minecraft.world.World;
import java.util.*; import net.minecraft.block.material.*; import net.minecraft.init.*; import net.minecraft.world.*;
[ "java.util", "net.minecraft.block", "net.minecraft.init", "net.minecraft.world" ]
java.util; net.minecraft.block; net.minecraft.init; net.minecraft.world;
2,740,221
public OpenMapRealMatrix add(OpenMapRealMatrix m) { // safety check MatrixUtils.checkAdditionCompatible(this, m); final OpenMapRealMatrix out = new OpenMapRealMatrix(this); for (OpenIntToDoubleHashMap.Iterator iterator = m.entries.iterator(); iterator.hasNext();) { iter...
OpenMapRealMatrix function(OpenMapRealMatrix m) { MatrixUtils.checkAdditionCompatible(this, m); final OpenMapRealMatrix out = new OpenMapRealMatrix(this); for (OpenIntToDoubleHashMap.Iterator iterator = m.entries.iterator(); iterator.hasNext();) { iterator.advance(); final int row = iterator.key() / columns; final int ...
/** * Compute the sum of this matrix and {@code m}. * * @param m Matrix to be added. * @return {@code this} + {@code m}. * @throws org.apache.commons.math.exception.DimensionMismatchException * if {@code m} is not the same size as this matrix. */
Compute the sum of this matrix and m
add
{ "repo_name": "SpoonLabs/astor", "path": "examples/math_50v2/src/main/java/org/apache/commons/math/linear/OpenMapRealMatrix.java", "license": "gpl-2.0", "size": 9136 }
[ "org.apache.commons.math.util.OpenIntToDoubleHashMap" ]
import org.apache.commons.math.util.OpenIntToDoubleHashMap;
import org.apache.commons.math.util.*;
[ "org.apache.commons" ]
org.apache.commons;
826,139
public int getRecommendedWidth(JComponent component) { return DrawingConstants.RECOMMENDED_WIDTH; }
int function(JComponent component) { return DrawingConstants.RECOMMENDED_WIDTH; }
/** * Get recomended qidth */
Get recomended qidth
getRecommendedWidth
{ "repo_name": "genomeartist/genomeartist", "path": "sources_java/guiTransposon/src/ro/genomeartist/gui/controller/genes/GeneItemWrapper.java", "license": "gpl-3.0", "size": 21057 }
[ "javax.swing.JComponent", "ro.genomeartist.gui.custompaint.DrawingConstants" ]
import javax.swing.JComponent; import ro.genomeartist.gui.custompaint.DrawingConstants;
import javax.swing.*; import ro.genomeartist.gui.custompaint.*;
[ "javax.swing", "ro.genomeartist.gui" ]
javax.swing; ro.genomeartist.gui;
1,202,337
ImmutableCollection<String> getKnownProvides() { return concat( dependencyInfo != null ? dependencyInfo.getProvides() : ImmutableList.<String>of(), extraProvides); }
ImmutableCollection<String> getKnownProvides() { return concat( dependencyInfo != null ? dependencyInfo.getProvides() : ImmutableList.<String>of(), extraProvides); }
/** * Gets a list of types provided, but does not attempt to * regenerate the dependency information. Typically this occurs * from module rewriting. */
Gets a list of types provided, but does not attempt to regenerate the dependency information. Typically this occurs from module rewriting
getKnownProvides
{ "repo_name": "mprobst/closure-compiler", "path": "src/com/google/javascript/jscomp/CompilerInput.java", "license": "apache-2.0", "size": 17352 }
[ "com.google.common.collect.ImmutableCollection", "com.google.common.collect.ImmutableList" ]
import com.google.common.collect.ImmutableCollection; import com.google.common.collect.ImmutableList;
import com.google.common.collect.*;
[ "com.google.common" ]
com.google.common;
2,354,896
private void terminateJobManagerRunners() { log.info("Stopping all currently running jobs of dispatcher {}.", getAddress()); final HashSet<JobID> jobsToRemove = new HashSet<>(jobManagerRunnerFutures.keySet()); for (JobID jobId : jobsToRemove) { removeJobAndRegisterTerminationFuture(jobId, false); } }
void function() { log.info(STR, getAddress()); final HashSet<JobID> jobsToRemove = new HashSet<>(jobManagerRunnerFutures.keySet()); for (JobID jobId : jobsToRemove) { removeJobAndRegisterTerminationFuture(jobId, false); } }
/** * Terminate all currently running {@link JobManagerRunner}. */
Terminate all currently running <code>JobManagerRunner</code>
terminateJobManagerRunners
{ "repo_name": "shaoxuan-wang/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/dispatcher/Dispatcher.java", "license": "apache-2.0", "size": 40795 }
[ "java.util.HashSet", "org.apache.flink.api.common.JobID" ]
import java.util.HashSet; import org.apache.flink.api.common.JobID;
import java.util.*; import org.apache.flink.api.common.*;
[ "java.util", "org.apache.flink" ]
java.util; org.apache.flink;
1,607,282
public static Resource hereditaryPersistance() { return _namespace_CDAO("CDAO_0000116"); }
static Resource function() { return _namespace_CDAO(STR); }
/** * -- No comment or description provided. -- * (http://purl.obolibrary.org/obo/CDAO_0000116) */
-- No comment or description provided. -- (HREF)
hereditaryPersistance
{ "repo_name": "BioInterchange/BioInterchange", "path": "supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/CDAO.java", "license": "mit", "size": 85675 }
[ "com.hp.hpl.jena.rdf.model.Resource" ]
import com.hp.hpl.jena.rdf.model.Resource;
import com.hp.hpl.jena.rdf.model.*;
[ "com.hp.hpl" ]
com.hp.hpl;
1,656,241
@Override public Request<DescribeSnapshotAttributeRequest> getDryRunRequest() { Request<DescribeSnapshotAttributeRequest> request = new DescribeSnapshotAttributeRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; }
Request<DescribeSnapshotAttributeRequest> function() { Request<DescribeSnapshotAttributeRequest> request = new DescribeSnapshotAttributeRequestMarshaller().marshall(this); request.addParameter(STR, Boolean.toString(true)); return request; }
/** * This method is intended for internal use only. * Returns the marshaled request configured with additional parameters to * enable operation dry-run. */
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run
getDryRunRequest
{ "repo_name": "priyatransbit/aws-sdk-java", "path": "aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DescribeSnapshotAttributeRequest.java", "license": "apache-2.0", "size": 8949 }
[ "com.amazonaws.Request", "com.amazonaws.services.ec2.model.transform.DescribeSnapshotAttributeRequestMarshaller" ]
import com.amazonaws.Request; import com.amazonaws.services.ec2.model.transform.DescribeSnapshotAttributeRequestMarshaller;
import com.amazonaws.*; import com.amazonaws.services.ec2.model.transform.*;
[ "com.amazonaws", "com.amazonaws.services" ]
com.amazonaws; com.amazonaws.services;
1,201,622
public void addTTrail(TTrail l, Connection con) throws TorqueException { getTTrails(con).add(l); l.setTPerson((TPerson) this); } private Criteria lastTTrailsCriteria = null;
void function(TTrail l, Connection con) throws TorqueException { getTTrails(con).add(l); l.setTPerson((TPerson) this); } private Criteria lastTTrailsCriteria = null;
/** * Method called to associate a TTrail object to this object * through the TTrail foreign key attribute using connection. * * @param l TTrail * @throws TorqueException */
Method called to associate a TTrail object to this object through the TTrail foreign key attribute using connection
addTTrail
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTPerson.java", "license": "gpl-3.0", "size": 1013508 }
[ "com.aurel.track.persist.TPerson", "java.sql.Connection", "org.apache.torque.TorqueException", "org.apache.torque.util.Criteria" ]
import com.aurel.track.persist.TPerson; import java.sql.Connection; import org.apache.torque.TorqueException; import org.apache.torque.util.Criteria;
import com.aurel.track.persist.*; import java.sql.*; import org.apache.torque.*; import org.apache.torque.util.*;
[ "com.aurel.track", "java.sql", "org.apache.torque" ]
com.aurel.track; java.sql; org.apache.torque;
1,206,808
public Locale setLocale(Locale loc) { Locale result = locale; locale = loc; return result; }
Locale function(Locale loc) { Locale result = locale; locale = loc; return result; }
/** * Set the current locale. * * @see java.util.Locale */
Set the current locale
setLocale
{ "repo_name": "syntelos/gwtcc", "path": "src/com/google/gwt/dev/js/rhino/Context.java", "license": "apache-2.0", "size": 26999 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,840,874