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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
interface WithName {
WithCreate withName(String name);
}
interface WithCreate extends Creatable<RouteFilterRule>, DefinitionStages.WithId, DefinitionStages.WithLocation, DefinitionStages.WithName {
}
}
interface Update extends Appliable<Rou... | interface WithName { WithCreate withName(String name); } interface WithCreate extends Creatable<RouteFilterRule>, DefinitionStages.WithId, DefinitionStages.WithLocation, DefinitionStages.WithName { } } interface Update extends Appliable<RouteFilterRule>, UpdateStages.WithId { } | /**
* Specifies name.
* @param name The name of the resource that is unique within a resource group. This name can be used to access the resource
* @return the next definition stage
*/ | Specifies name | withName | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2019_04_01/src/main/java/com/microsoft/azure/management/network/v2019_04_01/RouteFilterRule.java",
"license": "mit",
"size": 6306
} | [
"com.microsoft.azure.arm.model.Appliable",
"com.microsoft.azure.arm.model.Creatable"
] | import com.microsoft.azure.arm.model.Appliable; import com.microsoft.azure.arm.model.Creatable; | import com.microsoft.azure.arm.model.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 875,219 |
void setLocalPluginConfiguration(PluginContext ctx, Map<String,Object> config) throws NotSerializableException; | void setLocalPluginConfiguration(PluginContext ctx, Map<String,Object> config) throws NotSerializableException; | /**
* Sets the configuration for a local plugin.
*
* @param ctx the plugin context
* @param config the new configuration
*
* @throws NotSerializableException if a configuration value is not serializable
*/ | Sets the configuration for a local plugin | setLocalPluginConfiguration | {
"repo_name": "whizzosoftware/hobson-hub-api",
"path": "src/main/java/com/whizzosoftware/hobson/api/config/ConfigurationManager.java",
"license": "epl-1.0",
"size": 4422
} | [
"com.whizzosoftware.hobson.api.plugin.PluginContext",
"java.io.NotSerializableException",
"java.util.Map"
] | import com.whizzosoftware.hobson.api.plugin.PluginContext; import java.io.NotSerializableException; import java.util.Map; | import com.whizzosoftware.hobson.api.plugin.*; import java.io.*; import java.util.*; | [
"com.whizzosoftware.hobson",
"java.io",
"java.util"
] | com.whizzosoftware.hobson; java.io; java.util; | 1,975,737 |
@Override
public int getTransactionIsolation() throws SQLException {
// default wasp level. the return value no needed.
return 0;
} | int function() throws SQLException { return 0; } | /**
* Returns the current transaction isolation level.
*
* @return the isolation level.
* @throws java.sql.SQLException
* if the connection is closed
*/ | Returns the current transaction isolation level | getTransactionIsolation | {
"repo_name": "fengshao0907/wasp",
"path": "src/main/java/com/alibaba/wasp/jdbc/JdbcConnection.java",
"license": "apache-2.0",
"size": 28314
} | [
"java.sql.SQLException"
] | import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 648,292 |
public synchronized Vector<TaskInProgress> reportCleanupTIPs(
boolean shouldBeComplete) {
Vector<TaskInProgress> results = new Vector<TaskInProgress>();
for (int i = 0; i < cleanup.length; i++) {
if (cleanup[i].isComplete() == shouldBeComplete) {
... | synchronized Vector<TaskInProgress> function( boolean shouldBeComplete) { Vector<TaskInProgress> results = new Vector<TaskInProgress>(); for (int i = 0; i < cleanup.length; i++) { if (cleanup[i].isComplete() == shouldBeComplete) { results.add(cleanup[i]); } } return results; } | /**
* Return a vector of cleanup TaskInProgress objects
*/ | Return a vector of cleanup TaskInProgress objects | reportCleanupTIPs | {
"repo_name": "awylie/hadoop",
"path": "src/mapred/org/apache/hadoop/mapred/JobInProgress.java",
"license": "apache-2.0",
"size": 130712
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 1,434,650 |
public void testFieldAnnotationModification()
throws ClassNotFoundException
{
final boolean dbg = false;
final JavaClass clazz = getTestClass(PACKAGE_BASE_NAME+".data.AnnotatedFields");
final ClassGen clg = new ClassGen(clazz);
Field f = clg.getFields()[0];
if... | void function() throws ClassNotFoundException { final boolean dbg = false; final JavaClass clazz = getTestClass(PACKAGE_BASE_NAME+STR); final ClassGen clg = new ClassGen(clazz); Field f = clg.getFields()[0]; if (dbg) { System.err.println(STR + f); } if (dbg) { System.err.println(STR + dumpAnnotationEntries(f.getAnnotat... | /**
* Check we can load in a class, modify its field AnnotationEntrys, save it,
* reload it and everything is correct.
*/ | Check we can load in a class, modify its field AnnotationEntrys, save it, reload it and everything is correct | testFieldAnnotationModification | {
"repo_name": "typetools/commons-bcel",
"path": "src/test/java/org/apache/bcel/generic/FieldAnnotationsTestCase.java",
"license": "apache-2.0",
"size": 7246
} | [
"org.apache.bcel.classfile.Field",
"org.apache.bcel.classfile.JavaClass"
] | import org.apache.bcel.classfile.Field; import org.apache.bcel.classfile.JavaClass; | import org.apache.bcel.classfile.*; | [
"org.apache.bcel"
] | org.apache.bcel; | 2,231,698 |
@GET
@Path("tree")
public APIConnectionGroup getConnectionGroupTree(
@QueryParam("permission") List<ObjectPermission.Type> permissions)
throws GuacamoleException {
// Retrieve the requested tree, filtering by the given permissions
ConnectionGroupTree tree = new Conne... | @Path("tree") APIConnectionGroup function( @QueryParam(STR) List<ObjectPermission.Type> permissions) throws GuacamoleException { ConnectionGroupTree tree = new ConnectionGroupTree(userContext, connectionGroup, permissions); return tree.getRootAPIConnectionGroup(); } | /**
* Returns the current connection group along with all descendants.
*
* @param permissions
* If specified and non-empty, limit the returned list to only those
* connections for which the current user has any of the given
* permissions. Otherwise, all visible connections are ... | Returns the current connection group along with all descendants | getConnectionGroupTree | {
"repo_name": "DaanWillemsen/guacamole-client",
"path": "guacamole/src/main/java/org/apache/guacamole/rest/connectiongroup/ConnectionGroupResource.java",
"license": "apache-2.0",
"size": 4426
} | [
"java.util.List",
"javax.ws.rs.Path",
"javax.ws.rs.QueryParam",
"org.apache.guacamole.GuacamoleException",
"org.apache.guacamole.net.auth.permission.ObjectPermission"
] | import java.util.List; import javax.ws.rs.Path; import javax.ws.rs.QueryParam; import org.apache.guacamole.GuacamoleException; import org.apache.guacamole.net.auth.permission.ObjectPermission; | import java.util.*; import javax.ws.rs.*; import org.apache.guacamole.*; import org.apache.guacamole.net.auth.permission.*; | [
"java.util",
"javax.ws",
"org.apache.guacamole"
] | java.util; javax.ws; org.apache.guacamole; | 1,023,816 |
//Takes a date String in format 2012-10-15T08:17:00 and converts it to a calendar object
public static Calendar parseCalendarString(String dateTimeString){
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
Date date =null;
try {
date = dateFormat.parse(dateTimeString);... | static Calendar function(String dateTimeString){ SimpleDateFormat dateFormat = new SimpleDateFormat(STR); Date date =null; try { date = dateFormat.parse(dateTimeString); } catch (ParseException e) { e.printStackTrace(); } Calendar cal = Calendar.getInstance(); cal.setTimeZone(TimeZone.getTimeZone(STR)); cal.setTime(dat... | /**
*Converts a dateTimeString and makes a Calendar object
* @param dateTimeString in format 2012-10-15T08:17:00
* @return Calendar object
* */ | Converts a dateTimeString and makes a Calendar object | parseCalendarString | {
"repo_name": "k3larra/KD405A_Lars_H",
"path": "Grupparbete/src/se/mah/k3/grupp4/Helpers.java",
"license": "apache-2.0",
"size": 6586
} | [
"java.text.ParseException",
"java.text.SimpleDateFormat",
"java.util.Calendar",
"java.util.Date",
"java.util.TimeZone"
] | import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.TimeZone; | import java.text.*; import java.util.*; | [
"java.text",
"java.util"
] | java.text; java.util; | 2,136,849 |
public boolean getBooleanValue()
throws XPathException; | boolean function() throws XPathException; | /**
* The value of this boolean result.
*
* @exception XPathException
* TYPE_ERR: raised if resultType is not
* BOOLEAN_TYPE.
* @return a boolean.
* @throws org.loboevolution.html.xpath.XPathException if any.
* @throws org.w3c.dom.xpath.XPathException if any.
* @throws o... | The value of this boolean result | getBooleanValue | {
"repo_name": "oswetto/LoboEvolution",
"path": "LoboW3C/src/main/java/org/loboevolution/html/xpath/XPathResult.java",
"license": "gpl-3.0",
"size": 10922
} | [
"org.w3c.dom.xpath.XPathException"
] | import org.w3c.dom.xpath.XPathException; | import org.w3c.dom.xpath.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,896,884 |
private void updateFontSize() {
// This method is currently broken. http://crbug.com/439108
// Skip it (with the consequence of not updating the text scaling factor when the user
// changes system font size) rather than incurring the broken behavior.
// TODO(newt): fix this.
... | void function() { if (true) return; FontSizePrefs fontSizePrefs = FontSizePrefs.getInstance(getApplicationContext()); float browserTextScale = PreferenceManager .getDefaultSharedPreferences(this) .getFloat(AccessibilityPreferences.PREF_TEXT_SCALE, 1.0f); float fontScale = getResources().getConfiguration().fontScale * b... | /**
* Update the font size after changing the Android accessibility system setting. Doing so kills
* the Activities but it doesn't kill the ChromeApplication, so this should be called in
* {@link #onStart} instead of {@link #initialize}.
*/ | Update the font size after changing the Android accessibility system setting. Doing so kills the Activities but it doesn't kill the ChromeApplication, so this should be called in <code>#onStart</code> instead of <code>#initialize</code> | updateFontSize | {
"repo_name": "js0701/chromium-crosswalk",
"path": "chrome/android/java/src/org/chromium/chrome/browser/ChromeApplication.java",
"license": "bsd-3-clause",
"size": 36224
} | [
"android.preference.PreferenceManager",
"org.chromium.chrome.browser.accessibility.FontSizePrefs",
"org.chromium.chrome.browser.preferences.AccessibilityPreferences"
] | import android.preference.PreferenceManager; import org.chromium.chrome.browser.accessibility.FontSizePrefs; import org.chromium.chrome.browser.preferences.AccessibilityPreferences; | import android.preference.*; import org.chromium.chrome.browser.accessibility.*; import org.chromium.chrome.browser.preferences.*; | [
"android.preference",
"org.chromium.chrome"
] | android.preference; org.chromium.chrome; | 1,230,301 |
void onDecoderError(FlacDecoderException e);
}
public static final int MSG_SET_VOLUME = 1;
private static final int NUM_BUFFERS = 16;
public final CodecCounters codecCounters = new CodecCounters();
private final Handler eventHandler;
private final EventListener eventListener;
private final Med... | void onDecoderError(FlacDecoderException e); } public static final int MSG_SET_VOLUME = 1; private static final int NUM_BUFFERS = 16; public final CodecCounters codecCounters = new CodecCounters(); private final Handler eventHandler; private final EventListener eventListener; private final MediaFormatHolder formatHolde... | /**
* Invoked when decoding fails.
*
* @param e The corresponding exception.
*/ | Invoked when decoding fails | onDecoderError | {
"repo_name": "pittenga/ExoPlayer",
"path": "extensions/flac/src/main/java/com/google/android/exoplayer/ext/flac/LibflacAudioTrackRenderer.java",
"license": "apache-2.0",
"size": 11803
} | [
"android.os.Handler",
"com.google.android.exoplayer.CodecCounters",
"com.google.android.exoplayer.MediaFormat",
"com.google.android.exoplayer.MediaFormatHolder",
"com.google.android.exoplayer.SampleSource",
"com.google.android.exoplayer.audio.AudioTrack",
"com.google.android.exoplayer.util.extensions.In... | import android.os.Handler; import com.google.android.exoplayer.CodecCounters; import com.google.android.exoplayer.MediaFormat; import com.google.android.exoplayer.MediaFormatHolder; import com.google.android.exoplayer.SampleSource; import com.google.android.exoplayer.audio.AudioTrack; import com.google.android.exoplaye... | import android.os.*; import com.google.android.exoplayer.*; import com.google.android.exoplayer.audio.*; import com.google.android.exoplayer.util.extensions.*; | [
"android.os",
"com.google.android"
] | android.os; com.google.android; | 1,820,386 |
public int getCommentsSize(long pk) throws SystemException {
Object[] finderArgs = new Object[] { pk };
Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_GET_COMMENTS_SIZE,
finderArgs, this);
if (count == null) {
Session session = null;
try {
session = openSession();
SQLQuery q = s... | int function(long pk) throws SystemException { Object[] finderArgs = new Object[] { pk }; Long count = (Long)FinderCacheUtil.getResult(FINDER_PATH_GET_COMMENTS_SIZE, finderArgs, this); if (count == null) { Session session = null; try { session = openSession(); SQLQuery q = session.createSQLQuery(_SQL_GETCOMMENTSSIZE); ... | /**
* Returns the number of Comments associated with the Question.
*
* @param pk the primary key of the Question
* @return the number of Comments associated with the Question
* @throws SystemException if a system exception occurred
*/ | Returns the number of Comments associated with the Question | getCommentsSize | {
"repo_name": "p-gebhard/QuickAnswer",
"path": "docroot/WEB-INF/src/it/gebhard/qa/service/persistence/QuestionPersistenceImpl.java",
"license": "gpl-3.0",
"size": 68642
} | [
"com.liferay.portal.kernel.dao.orm.FinderCacheUtil",
"com.liferay.portal.kernel.dao.orm.FinderPath",
"com.liferay.portal.kernel.dao.orm.QueryPos",
"com.liferay.portal.kernel.dao.orm.SQLQuery",
"com.liferay.portal.kernel.dao.orm.Session",
"com.liferay.portal.kernel.exception.SystemException"
] | import com.liferay.portal.kernel.dao.orm.FinderCacheUtil; import com.liferay.portal.kernel.dao.orm.FinderPath; import com.liferay.portal.kernel.dao.orm.QueryPos; import com.liferay.portal.kernel.dao.orm.SQLQuery; import com.liferay.portal.kernel.dao.orm.Session; import com.liferay.portal.kernel.exception.SystemExceptio... | import com.liferay.portal.kernel.dao.orm.*; import com.liferay.portal.kernel.exception.*; | [
"com.liferay.portal"
] | com.liferay.portal; | 1,769,493 |
private boolean doEnforceRegexCheck(DirectoryHandle dir,
ArrayList<NukeFilterConfigElement> enforceRegexList, String type) {
for (NukeFilterConfigElement e : enforceRegexList) {
Pattern pattern = Pattern.compile(e.getElement());
Matcher matcher... | boolean function(DirectoryHandle dir, ArrayList<NukeFilterConfigElement> enforceRegexList, String type) { for (NukeFilterConfigElement e : enforceRegexList) { Pattern pattern = Pattern.compile(e.getElement()); Matcher matcher = pattern.matcher(dir.getName()); if (!matcher.matches()) { if (type.equals(STR)) { nuke(new N... | /**
* This method checks the enforce regex settings against the given dir.
*
* @param dir directory handle to be examined
* @param enforceRegexList list of strings
* @param type global or section specific?
* @return <b>TRUE</b> if dir did not pass the enforcement<b... | This method checks the enforce regex settings against the given dir | doEnforceRegexCheck | {
"repo_name": "drftpd-ng/drftpd3",
"path": "src/plugins/nukefilter/src/main/java/org/drftpd/nukefilter/master/NukeFilterPostHook.java",
"license": "gpl-2.0",
"size": 34645
} | [
"java.util.ArrayList",
"java.util.regex.Matcher",
"java.util.regex.Pattern",
"org.drftpd.master.GlobalContext",
"org.drftpd.master.sections.SectionInterface",
"org.drftpd.master.vfs.DirectoryHandle"
] | import java.util.ArrayList; import java.util.regex.Matcher; import java.util.regex.Pattern; import org.drftpd.master.GlobalContext; import org.drftpd.master.sections.SectionInterface; import org.drftpd.master.vfs.DirectoryHandle; | import java.util.*; import java.util.regex.*; import org.drftpd.master.*; import org.drftpd.master.sections.*; import org.drftpd.master.vfs.*; | [
"java.util",
"org.drftpd.master"
] | java.util; org.drftpd.master; | 2,851,791 |
public static ArrayList<ItemStack> getOres(String name)
{
return getOres(getOreID(name));
} | static ArrayList<ItemStack> function(String name) { return getOres(getOreID(name)); } | /**
* Retrieves the ArrayList of items that are registered to this ore type.
* Creates the list as empty if it did not exist.
*
* @param name The ore name, directly calls getOreID
* @return An arrayList containing ItemStacks registered for this ore
*/ | Retrieves the ArrayList of items that are registered to this ore type. Creates the list as empty if it did not exist | getOres | {
"repo_name": "boredherobrine13/morefuelsmod-1.6",
"path": "build/unpacked/src/main/java/net/minecraftforge/oredict/OreDictionary.java",
"license": "lgpl-2.1",
"size": 12492
} | [
"java.util.ArrayList",
"net.minecraft.item.ItemStack"
] | import java.util.ArrayList; import net.minecraft.item.ItemStack; | import java.util.*; import net.minecraft.item.*; | [
"java.util",
"net.minecraft.item"
] | java.util; net.minecraft.item; | 1,541,822 |
protected ModelAndView redirectToCallbackRedirectUrl(final ProfileManager manager,
final OAuthRegisteredService registeredService,
final J2EContext context,
... | ModelAndView function(final ProfileManager manager, final OAuthRegisteredService registeredService, final J2EContext context, final String clientId) throws Exception { final Optional<UserProfile> profile = manager.get(true); if (profile == null !profile.isPresent()) { LOGGER.error(STR); return OAuthUtils.produceUnautho... | /**
* Redirect to callback redirect url model and view.
*
* @param manager the manager
* @param registeredService the registered service
* @param context the context
* @param clientId the client id
* @return the model and view
* @throws Exception the ... | Redirect to callback redirect url model and view | redirectToCallbackRedirectUrl | {
"repo_name": "creamer/cas",
"path": "support/cas-server-support-oauth/src/main/java/org/apereo/cas/support/oauth/web/endpoints/OAuth20AuthorizeEndpointController.java",
"license": "apache-2.0",
"size": 16525
} | [
"java.util.Optional",
"org.apache.commons.lang3.StringUtils",
"org.apereo.cas.authentication.Authentication",
"org.apereo.cas.authentication.PrincipalException",
"org.apereo.cas.authentication.principal.Service",
"org.apereo.cas.services.RegisteredServiceAccessStrategyUtils",
"org.apereo.cas.services.Un... | import java.util.Optional; import org.apache.commons.lang3.StringUtils; import org.apereo.cas.authentication.Authentication; import org.apereo.cas.authentication.PrincipalException; import org.apereo.cas.authentication.principal.Service; import org.apereo.cas.services.RegisteredServiceAccessStrategyUtils; import org.ap... | import java.util.*; import org.apache.commons.lang3.*; import org.apereo.cas.authentication.*; import org.apereo.cas.authentication.principal.*; import org.apereo.cas.services.*; import org.apereo.cas.support.oauth.*; import org.apereo.cas.support.oauth.services.*; import org.apereo.cas.support.oauth.util.*; import org... | [
"java.util",
"org.apache.commons",
"org.apereo.cas",
"org.pac4j.core",
"org.springframework.web"
] | java.util; org.apache.commons; org.apereo.cas; org.pac4j.core; org.springframework.web; | 2,898,364 |
final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder builder = null;
try {
builder = dbf.newDocumentBuilder();
}
catch (ParserConfigurationException e) {
e.printStackTrace();
}
Document document = null;
... | final DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = null; try { builder = dbf.newDocumentBuilder(); } catch (ParserConfigurationException e) { e.printStackTrace(); } Document document = null; try { document = builder.parse( new FileInputStream(ecuDef.getEcuDefFile())); } c... | /**
* Parse a given XML definition file into a DOM.
* @param ecuDef - an ECU Definition containing a File to parse.
* @return a DOM.
*/ | Parse a given XML definition file into a DOM | getDocument | {
"repo_name": "dschultzca/RomRaider",
"path": "src/main/java/com/romraider/logger/ecu/definition/xml/EcuDefinitionDocumentLoader.java",
"license": "gpl-2.0",
"size": 2224
} | [
"java.io.FileInputStream",
"java.io.IOException",
"javax.xml.parsers.DocumentBuilder",
"javax.xml.parsers.DocumentBuilderFactory",
"javax.xml.parsers.ParserConfigurationException",
"org.w3c.dom.Document",
"org.xml.sax.SAXException"
] | import java.io.FileInputStream; import java.io.IOException; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.xml.sax.SAXException; | import java.io.*; import javax.xml.parsers.*; import org.w3c.dom.*; import org.xml.sax.*; | [
"java.io",
"javax.xml",
"org.w3c.dom",
"org.xml.sax"
] | java.io; javax.xml; org.w3c.dom; org.xml.sax; | 839,968 |
public List<Component> findRecentlyAdded(int maxResults); | List<Component> function(int maxResults); | /**
* Find Recently Added
*
* @param maxResults
* @return
*/ | Find Recently Added | findRecentlyAdded | {
"repo_name": "tyler-travis/openstorefront",
"path": "server/openstorefront/openstorefront-core/model/src/main/java/edu/usu/sdl/openstorefront/core/api/ComponentService.java",
"license": "apache-2.0",
"size": 14837
} | [
"edu.usu.sdl.openstorefront.core.entity.Component",
"java.util.List"
] | import edu.usu.sdl.openstorefront.core.entity.Component; import java.util.List; | import edu.usu.sdl.openstorefront.core.entity.*; import java.util.*; | [
"edu.usu.sdl",
"java.util"
] | edu.usu.sdl; java.util; | 1,173,253 |
OptionalLong metadataDelete(Session session, TableHandle tableHandle, TableLayoutHandle tableLayoutHandle); | OptionalLong metadataDelete(Session session, TableHandle tableHandle, TableLayoutHandle tableLayoutHandle); | /**
* Delete the provide table layout
*
* @return number of rows deleted, or empty for unknown
*/ | Delete the provide table layout | metadataDelete | {
"repo_name": "Yaliang/presto",
"path": "presto-main/src/main/java/com/facebook/presto/metadata/Metadata.java",
"license": "apache-2.0",
"size": 12623
} | [
"com.facebook.presto.Session",
"java.util.OptionalLong"
] | import com.facebook.presto.Session; import java.util.OptionalLong; | import com.facebook.presto.*; import java.util.*; | [
"com.facebook.presto",
"java.util"
] | com.facebook.presto; java.util; | 136,878 |
void proceedTLSReceived() throws Exception {
SSLContext context = SSLContext.getInstance("TLS");
KeyStore ks = null;
KeyManager[] kms = null;
PasswordCallback pcb = null;
if(config.getCallbackHandler() == null) {
ks = null;
} else {
//System.ou... | void proceedTLSReceived() throws Exception { SSLContext context = SSLContext.getInstance("TLS"); KeyStore ks = null; KeyManager[] kms = null; PasswordCallback pcb = null; if(config.getCallbackHandler() == null) { ks = null; } else { if(config.getKeystoreType().equals("NONE")) { ks = null; pcb = null; } else if(config.g... | /**
* The server has indicated that TLS negotiation can start. We now need to secure the
* existing plain connection and perform a handshake. This method won't return until the
* connection has finished the handshake or an error occured while securing the connection.
*
* @throws Exception if an... | The server has indicated that TLS negotiation can start. We now need to secure the existing plain connection and perform a handshake. This method won't return until the connection has finished the handshake or an error occured while securing the connection | proceedTLSReceived | {
"repo_name": "samuelhehe/androidpn_enhanced_client",
"path": "asmack/org/jivesoftware/smack/XMPPConnection.java",
"license": "apache-2.0",
"size": 40362
} | [
"java.io.ByteArrayInputStream",
"java.io.FileInputStream",
"java.io.InputStream",
"java.lang.reflect.Constructor",
"java.net.Socket",
"java.security.KeyStore",
"java.security.Provider",
"java.security.Security",
"javax.net.ssl.KeyManager",
"javax.net.ssl.KeyManagerFactory",
"javax.net.ssl.SSLCon... | import java.io.ByteArrayInputStream; import java.io.FileInputStream; import java.io.InputStream; import java.lang.reflect.Constructor; import java.net.Socket; import java.security.KeyStore; import java.security.Provider; import java.security.Security; import javax.net.ssl.KeyManager; import javax.net.ssl.KeyManagerFact... | import java.io.*; import java.lang.reflect.*; import java.net.*; import java.security.*; import javax.net.ssl.*; import org.apache.harmony.javax.security.auth.callback.*; | [
"java.io",
"java.lang",
"java.net",
"java.security",
"javax.net",
"org.apache.harmony"
] | java.io; java.lang; java.net; java.security; javax.net; org.apache.harmony; | 2,057,970 |
public synchronized int add(Object indexKey, Object obj) throws TypeMismatchException {
if (indexKey == null) {
indexKey = IndexManager.NULL;
}
// Note we cannot make the below optimization for hash index. Due to in place modification
// where old key == new key (when no reverse map) we end up n... | synchronized int function(Object indexKey, Object obj) throws TypeMismatchException { if (indexKey == null) { indexKey = IndexManager.NULL; } preInsertHook(); HashIndexSetProperties metaData = hashIndexSetProperties; int indexSlot = insertionIndex(indexKey, metaData); Object old = metaData.set[indexSlot]; addObjectToSe... | /**
* Add an object using the hash value of the provided indexKey
*
* @param obj the object to add
* @return true if object has been added
*/ | Add an object using the hash value of the provided indexKey | add | {
"repo_name": "jdeppe-pivotal/geode",
"path": "geode-core/src/main/java/org/apache/geode/cache/query/internal/index/HashIndexSet.java",
"license": "apache-2.0",
"size": 24327
} | [
"org.apache.geode.cache.query.TypeMismatchException"
] | import org.apache.geode.cache.query.TypeMismatchException; | import org.apache.geode.cache.query.*; | [
"org.apache.geode"
] | org.apache.geode; | 2,102,315 |
@Override()
@NotNull()
public ResultCode doToolProcessing()
{
// Create the proxy request handler that will be used to forward requests to
// a remote directory.
final ProxyRequestHandler proxyHandler;
try
{
proxyHandler = new ProxyRequestHandler(createServerSet());
}
catch (fi... | @Override() @NotNull() ResultCode function() { final ProxyRequestHandler proxyHandler; try { proxyHandler = new ProxyRequestHandler(createServerSet()); } catch (final LDAPException le) { err(STR, le.getMessage()); return le.getResultCode(); } final Handler logHandler; if (outputFile.isPresent()) { try { logHandler = ne... | /**
* Performs the actual processing for this tool. In this case, it gets a
* connection to the directory server and uses it to perform the requested
* search.
*
* @return The result code for the processing that was performed.
*/ | Performs the actual processing for this tool. In this case, it gets a connection to the directory server and uses it to perform the requested search | doToolProcessing | {
"repo_name": "UnboundID/ldapsdk",
"path": "src/com/unboundid/ldap/sdk/examples/LDAPDebugger.java",
"license": "gpl-2.0",
"size": 23317
} | [
"com.unboundid.ldap.listener.LDAPDebuggerRequestHandler",
"com.unboundid.ldap.listener.LDAPListener",
"com.unboundid.ldap.listener.LDAPListenerConfig",
"com.unboundid.ldap.listener.LDAPListenerRequestHandler",
"com.unboundid.ldap.listener.ProxyRequestHandler",
"com.unboundid.ldap.listener.SelfSignedCertif... | import com.unboundid.ldap.listener.LDAPDebuggerRequestHandler; import com.unboundid.ldap.listener.LDAPListener; import com.unboundid.ldap.listener.LDAPListenerConfig; import com.unboundid.ldap.listener.LDAPListenerRequestHandler; import com.unboundid.ldap.listener.ProxyRequestHandler; import com.unboundid.ldap.listener... | import com.unboundid.ldap.listener.*; import com.unboundid.ldap.sdk.*; import com.unboundid.util.*; import com.unboundid.util.ssl.*; import java.io.*; import java.util.logging.*; | [
"com.unboundid.ldap",
"com.unboundid.util",
"java.io",
"java.util"
] | com.unboundid.ldap; com.unboundid.util; java.io; java.util; | 1,235,803 |
public Paint getDividerPaint() {
return this.dividerPaint;
} | Paint function() { return this.dividerPaint; } | /**
* Returns the paint used to draw the dividers.
*
* @return The paint.
*/ | Returns the paint used to draw the dividers | getDividerPaint | {
"repo_name": "ceabie/jfreechart",
"path": "source/org/jfree/chart/axis/PeriodAxisLabelInfo.java",
"license": "lgpl-2.1",
"size": 12293
} | [
"java.awt.Paint"
] | import java.awt.Paint; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,442,137 |
public Matrix3d setFloats(int index, ByteBuffer buffer) {
MemUtil.INSTANCE.getf(this, index, buffer);
return this;
} | Matrix3d function(int index, ByteBuffer buffer) { MemUtil.INSTANCE.getf(this, index, buffer); return this; } | /**
* Set the values of this matrix by reading 9 float values from the given {@link ByteBuffer} in column-major order,
* starting at the specified absolute buffer position/index.
* <p>
* The ByteBuffer is expected to contain the values in column-major order.
* <p>
* The position of the Byt... | Set the values of this matrix by reading 9 float values from the given <code>ByteBuffer</code> in column-major order, starting at the specified absolute buffer position/index. The ByteBuffer is expected to contain the values in column-major order. The position of the ByteBuffer will not be changed by this method | setFloats | {
"repo_name": "JOML-CI/JOML",
"path": "src/org/joml/Matrix3d.java",
"license": "mit",
"size": 201309
} | [
"java.nio.ByteBuffer"
] | import java.nio.ByteBuffer; | import java.nio.*; | [
"java.nio"
] | java.nio; | 2,612,080 |
@Test
public void testToSLSXml() throws IOException, CertificateEncodingException {
Saml2Settings settings = new SettingsBuilder().fromFile("config/config.all.properties").build();
Metadata metadataObj = new Metadata(settings);
String metadataStr = metadataObj.getMetadataString();
String slsStr = "<md:Sing... | void function() throws IOException, CertificateEncodingException { Saml2Settings settings = new SettingsBuilder().fromFile(STR).build(); Metadata metadataObj = new Metadata(settings); String metadataStr = metadataObj.getMetadataString(); String slsStr = STRurn:oasis:names:tc:SAML:2.0:bindings:HTTP-Redirect\STRhttp: ass... | /**
* Tests the toSLSXml method of Metadata
*
* @throws IOException
* @throws CertificateEncodingException
*
* @see com.onelogin.saml2.settings.Metadata#toSLSXml
*/ | Tests the toSLSXml method of Metadata | testToSLSXml | {
"repo_name": "jacklotusho/java-saml",
"path": "core/src/test/java/com/onelogin/saml2/test/settings/MetadataTest.java",
"license": "mit",
"size": 13968
} | [
"com.onelogin.saml2.settings.Metadata",
"com.onelogin.saml2.settings.Saml2Settings",
"com.onelogin.saml2.settings.SettingsBuilder",
"java.io.IOException",
"java.security.cert.CertificateEncodingException",
"org.hamcrest.CoreMatchers",
"org.junit.Assert"
] | import com.onelogin.saml2.settings.Metadata; import com.onelogin.saml2.settings.Saml2Settings; import com.onelogin.saml2.settings.SettingsBuilder; import java.io.IOException; import java.security.cert.CertificateEncodingException; import org.hamcrest.CoreMatchers; import org.junit.Assert; | import com.onelogin.saml2.settings.*; import java.io.*; import java.security.cert.*; import org.hamcrest.*; import org.junit.*; | [
"com.onelogin.saml2",
"java.io",
"java.security",
"org.hamcrest",
"org.junit"
] | com.onelogin.saml2; java.io; java.security; org.hamcrest; org.junit; | 2,618,207 |
public PathsPromoteResult rollbackPathsPromote( final PathsPromoteResult result )
throws PromotionException, IndyWorkflowException
{
final PathsPromoteRequest request = result.getRequest();
Future<PathsPromoteResult> future = submitRollbackPathsPromote( result );
if ... | PathsPromoteResult function( final PathsPromoteResult result ) throws PromotionException, IndyWorkflowException { final PathsPromoteRequest request = result.getRequest(); Future<PathsPromoteResult> future = submitRollbackPathsPromote( result ); if ( request.isAsync() ) { return new PathsPromoteResult( request ).accepte... | /**
* Attempt to rollback a previous {@link PathsPromoteResult}.
*
* All paths in the completed paths set are deleted from the target. The output {@link PathsPromoteResult} contains
* the previous content, with removed target paths moved from the completed list to the pending list.
*
* @pa... | Attempt to rollback a previous <code>PathsPromoteResult</code>. All paths in the completed paths set are deleted from the target. The output <code>PathsPromoteResult</code> contains the previous content, with removed target paths moved from the completed list to the pending list | rollbackPathsPromote | {
"repo_name": "Commonjava/indy",
"path": "addons/promote/common/src/main/java/org/commonjava/indy/promote/data/PromotionManager.java",
"license": "apache-2.0",
"size": 43477
} | [
"java.util.concurrent.ExecutionException",
"java.util.concurrent.Future",
"org.commonjava.indy.IndyWorkflowException",
"org.commonjava.indy.promote.model.PathsPromoteRequest",
"org.commonjava.indy.promote.model.PathsPromoteResult"
] | import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import org.commonjava.indy.IndyWorkflowException; import org.commonjava.indy.promote.model.PathsPromoteRequest; import org.commonjava.indy.promote.model.PathsPromoteResult; | import java.util.concurrent.*; import org.commonjava.indy.*; import org.commonjava.indy.promote.model.*; | [
"java.util",
"org.commonjava.indy"
] | java.util; org.commonjava.indy; | 200,878 |
protected void configureChain(final SecurityGenerator<?> securityGenerator) {
if (getObjectContext() != null) {
ArgumentChecker.notNull(securityGenerator, "securityGenerator");
getObjectContext().configureChain(securityGenerator);
}
} | void function(final SecurityGenerator<?> securityGenerator) { if (getObjectContext() != null) { ArgumentChecker.notNull(securityGenerator, STR); getObjectContext().configureChain(securityGenerator); } } | /**
* Configures the chain for this tool and security generator.
*
* @param securityGenerator
* The security generator, not null if the object context is not null
*/ | Configures the chain for this tool and security generator | configureChain | {
"repo_name": "McLeodMoores/starling",
"path": "examples/examples-simulated/src/main/java/com/opengamma/examples/simulated/tool/AbstractSecuritiesGeneratorTool.java",
"license": "apache-2.0",
"size": 14079
} | [
"com.opengamma.financial.generator.SecurityGenerator",
"com.opengamma.util.ArgumentChecker"
] | import com.opengamma.financial.generator.SecurityGenerator; import com.opengamma.util.ArgumentChecker; | import com.opengamma.financial.generator.*; import com.opengamma.util.*; | [
"com.opengamma.financial",
"com.opengamma.util"
] | com.opengamma.financial; com.opengamma.util; | 1,255,056 |
static String matchLibrary(final String libName, List searchPath) {
File lib = new File(libName);
if (lib.isAbsolute()) {
searchPath = Arrays.asList(new String[] { lib.getParent() });
} | static String matchLibrary(final String libName, List searchPath) { File lib = new File(libName); if (lib.isAbsolute()) { searchPath = Arrays.asList(new String[] { lib.getParent() }); } | /**
* matchLibrary() is very Linux specific. It is here to deal with the case
* where /usr/lib/libc.so does not exist, or it is not a valid symlink to
* a versioned file (e.g. /lib/libc.so.6).
*/ | matchLibrary() is very Linux specific. It is here to deal with the case where /usr/lib/libc.so does not exist, or it is not a valid symlink to a versioned file (e.g. /lib/libc.so.6) | matchLibrary | {
"repo_name": "dubenju/javay",
"path": "src/java/com/sun/jna/NativeLibrary.java",
"license": "apache-2.0",
"size": 37210
} | [
"java.io.File",
"java.util.Arrays",
"java.util.List"
] | import java.io.File; import java.util.Arrays; import java.util.List; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,535,146 |
protected Object[] handleRemove(Object[] cells) {
List removedRoots = new ArrayList();
if (cells != null)
for (int i = 0; i < cells.length; i++)
if (getParent(cells[i]) == null && roots.remove(cells[i]))
removedRoots.add(cells[i]);
return removedRoots.toArray();
} | Object[] function(Object[] cells) { List removedRoots = new ArrayList(); if (cells != null) for (int i = 0; i < cells.length; i++) if (getParent(cells[i]) == null && roots.remove(cells[i])) removedRoots.add(cells[i]); return removedRoots.toArray(); } | /**
* Removes <code>cells</code> from the model. Returns the cells that were
* removed as roots.
*/ | Removes <code>cells</code> from the model. Returns the cells that were removed as roots | handleRemove | {
"repo_name": "raedle/univis",
"path": "lib/jgraph/src/org/jgraph/graph/DefaultGraphModel.java",
"license": "lgpl-2.1",
"size": 51104
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 306,856 |
public static AverageExecutor averageAsync(final Class<?> modelClass, final String column) {
return averageAsync(BaseUtility.changeCase(DBUtility.getTableNameByClassName(modelClass.getName())), column);
} | static AverageExecutor function(final Class<?> modelClass, final String column) { return averageAsync(BaseUtility.changeCase(DBUtility.getTableNameByClassName(modelClass.getName())), column); } | /**
* Basically same as {@link #average(Class, String)} but pending to a new thread for executing.
*
* @param modelClass
* Which table to query from by class.
* @param column
* The based on column to calculate.
* @return A AverageExecutor instance.
*/ | Basically same as <code>#average(Class, String)</code> but pending to a new thread for executing | averageAsync | {
"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.crud.async.AverageExecutor",
"org.litepal.util.BaseUtility",
"org.litepal.util.DBUtility"
] | import org.litepal.crud.async.AverageExecutor; import org.litepal.util.BaseUtility; import org.litepal.util.DBUtility; | import org.litepal.crud.async.*; import org.litepal.util.*; | [
"org.litepal.crud",
"org.litepal.util"
] | org.litepal.crud; org.litepal.util; | 864,623 |
private void addBOMLine (MPPProductBOMLine line, BigDecimal qty)
{
log.fine(line.toString());
String bomType = line.getComponentType();
if (bomType == null)
bomType = MPPProductBOMLine.COMPONENTTYPE_Component;
//
BigDecimal lineQty = line.getQty();
MProduct product = line.getProduct();
if ... | void function (MPPProductBOMLine line, BigDecimal qty) { log.fine(line.toString()); String bomType = line.getComponentType(); if (bomType == null) bomType = MPPProductBOMLine.COMPONENTTYPE_Component; BigDecimal lineQty = line.getQty(); MProduct product = line.getProduct(); if (product == null) return; if (product.isBOM... | /**
* Add BOM Line to this.
* Calls addBOMLines if added product is a BOM
* @param line BOM Line
* @param qty quantity
*/ | Add BOM Line to this. Calls addBOMLines if added product is a BOM | addBOMLine | {
"repo_name": "erpcya/adempierePOS",
"path": "client/src/org/compiere/apps/form/VBOMDrop.java",
"license": "gpl-2.0",
"size": 22327
} | [
"java.math.BigDecimal",
"org.compiere.model.MProduct",
"org.eevolution.model.MPPProductBOMLine"
] | import java.math.BigDecimal; import org.compiere.model.MProduct; import org.eevolution.model.MPPProductBOMLine; | import java.math.*; import org.compiere.model.*; import org.eevolution.model.*; | [
"java.math",
"org.compiere.model",
"org.eevolution.model"
] | java.math; org.compiere.model; org.eevolution.model; | 2,324,686 |
LocateOnPathResult locateOnPaths(
InclusionWithContext inclusion,
Map<PathFragment, Artifact> pathToDeclaredHeader,
boolean onlyCheckGenerated) {
PathFragment name = inclusion.getInclusion().pathFragment;
// A framework header must begin with a framework name, followed by a path... | LocateOnPathResult locateOnPaths( InclusionWithContext inclusion, Map<PathFragment, Artifact> pathToDeclaredHeader, boolean onlyCheckGenerated) { PathFragment name = inclusion.getInclusion().pathFragment; boolean searchFrameworkIncludePaths = !frameworkIncludePaths.isEmpty() && !inclusion.getInclusion().kind.isNext() &... | /**
* Locates an included file along the search paths. The result is cacheable.
*
* @param inclusion the inclusion to locate
* @param pathToDeclaredHeader generated files which may be reached during scanning
* @param onlyCheckGenerated if true, only search for generated output files
* @ret... | Locates an included file along the search paths. The result is cacheable | locateOnPaths | {
"repo_name": "safarmer/bazel",
"path": "src/main/java/com/google/devtools/build/lib/includescanning/LegacyIncludeScanner.java",
"license": "apache-2.0",
"size": 43652
} | [
"com.google.devtools.build.lib.actions.Artifact",
"com.google.devtools.build.lib.cmdline.RepositoryName",
"com.google.devtools.build.lib.includescanning.IncludeParser",
"com.google.devtools.build.lib.vfs.Path",
"com.google.devtools.build.lib.vfs.PathFragment",
"java.util.List",
"java.util.Map"
] | import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.cmdline.RepositoryName; import com.google.devtools.build.lib.includescanning.IncludeParser; import com.google.devtools.build.lib.vfs.Path; import com.google.devtools.build.lib.vfs.PathFragment; import java.util.List; import java... | import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.cmdline.*; import com.google.devtools.build.lib.includescanning.*; import com.google.devtools.build.lib.vfs.*; import java.util.*; | [
"com.google.devtools",
"java.util"
] | com.google.devtools; java.util; | 1,555,057 |
@SuppressWarnings({"PMD.PreserveStackTrace", "PMD.CyclomaticComplexity"})
public static Color getColor(final String string) throws InstructionParseException {
if (string == null || string.isEmpty()) {
throw new InstructionParseException("Color is not specified");
}
try {
... | @SuppressWarnings({STR, STR}) static Color function(final String string) throws InstructionParseException { if (string == null string.isEmpty()) { throw new InstructionParseException(STR); } try { return Color.fromRGB(Integer.parseInt(string)); } catch (final NumberFormatException e1) { LOG.debug(STR, e1); try { return... | /**
* Parses the string as RGB or as DyeColor and returns it as Color.
*
* @param string string to parse as a Color
* @return the Color (never null)
* @throws InstructionParseException when something goes wrong
*/ | Parses the string as RGB or as DyeColor and returns it as Color | getColor | {
"repo_name": "Co0sh/BetonQuest",
"path": "src/main/java/org/betonquest/betonquest/utils/Utils.java",
"license": "gpl-3.0",
"size": 22775
} | [
"java.util.Locale",
"org.betonquest.betonquest.exceptions.InstructionParseException",
"org.bukkit.Color",
"org.bukkit.DyeColor"
] | import java.util.Locale; import org.betonquest.betonquest.exceptions.InstructionParseException; import org.bukkit.Color; import org.bukkit.DyeColor; | import java.util.*; import org.betonquest.betonquest.exceptions.*; import org.bukkit.*; | [
"java.util",
"org.betonquest.betonquest",
"org.bukkit"
] | java.util; org.betonquest.betonquest; org.bukkit; | 1,677,371 |
public void loadGames() {
File arenas = new File(SGApi.getPlugin().getDataFolder().getAbsolutePath() + "/arenas/");
File maps = new File(SGApi.getPlugin().getDataFolder().getAbsolutePath() + "/maps/");
if (SGApi.getPlugin().getPluginConfig().isBungeecordMode()) {
if (arenas.listFiles().length > 1) {
Bu... | void function() { File arenas = new File(SGApi.getPlugin().getDataFolder().getAbsolutePath() + STR); File maps = new File(SGApi.getPlugin().getDataFolder().getAbsolutePath() + STR); if (SGApi.getPlugin().getPluginConfig().isBungeecordMode()) { if (arenas.listFiles().length > 1) { Bukkit.getLogger().severe(STR); Bukkit.... | /**
* Loads the game into memory after a shutdown or a relaod
*/ | Loads the game into memory after a shutdown or a relaod | loadGames | {
"repo_name": "SurvivalGamesDevTeam/TheSurvivalGames",
"path": "src/main/java/com/communitysurvivalgames/thesurvivalgames/managers/ArenaManager.java",
"license": "unlicense",
"size": 14132
} | [
"com.communitysurvivalgames.thesurvivalgames.configs.ArenaConfigTemplate",
"com.communitysurvivalgames.thesurvivalgames.configs.ConfigTemplate",
"com.communitysurvivalgames.thesurvivalgames.configs.WorldConfigTemplate",
"com.communitysurvivalgames.thesurvivalgames.multiworld.SGWorld",
"com.communitysurvival... | import com.communitysurvivalgames.thesurvivalgames.configs.ArenaConfigTemplate; import com.communitysurvivalgames.thesurvivalgames.configs.ConfigTemplate; import com.communitysurvivalgames.thesurvivalgames.configs.WorldConfigTemplate; import com.communitysurvivalgames.thesurvivalgames.multiworld.SGWorld; import com.com... | import com.communitysurvivalgames.thesurvivalgames.configs.*; import com.communitysurvivalgames.thesurvivalgames.multiworld.*; import com.communitysurvivalgames.thesurvivalgames.objects.*; import java.io.*; import org.bukkit.*; | [
"com.communitysurvivalgames.thesurvivalgames",
"java.io",
"org.bukkit"
] | com.communitysurvivalgames.thesurvivalgames; java.io; org.bukkit; | 2,703,726 |
@Override
public void process() {
PerformanceMonitor.startActivity("rendering/lightShafts");
// The source code for this method is quite short because everything happens in the shader and its setup.
// In particular see the class ShaderParametersLightShafts and resource lightShafts_frag... | void function() { PerformanceMonitor.startActivity(STR); renderFullscreenQuad(); PerformanceMonitor.endActivity(); } | /**
* Renders light shafts, taking advantage of the information provided
* by the color buffer and especially the depth buffer attached to the FBO
* currently set as read-only.
*/ | Renders light shafts, taking advantage of the information provided by the color buffer and especially the depth buffer attached to the FBO currently set as read-only | process | {
"repo_name": "Vizaxo/Terasology",
"path": "engine/src/main/java/org/terasology/rendering/dag/nodes/LightShaftsNode.java",
"license": "apache-2.0",
"size": 3778
} | [
"org.terasology.monitoring.PerformanceMonitor",
"org.terasology.rendering.opengl.OpenGLUtils"
] | import org.terasology.monitoring.PerformanceMonitor; import org.terasology.rendering.opengl.OpenGLUtils; | import org.terasology.monitoring.*; import org.terasology.rendering.opengl.*; | [
"org.terasology.monitoring",
"org.terasology.rendering"
] | org.terasology.monitoring; org.terasology.rendering; | 1,241,008 |
@SuppressWarnings("unchecked")
private GridCacheSharedContext createSharedContext(GridKernalContext kernalCtx,
Collection<CacheStoreSessionListener> storeSesLsnrs) throws IgniteCheckedException {
IgniteTxManager tm = new IgniteTxManager();
GridCacheMvccManager mvccMgr = new GridCacheMvcc... | @SuppressWarnings(STR) GridCacheSharedContext function(GridKernalContext kernalCtx, Collection<CacheStoreSessionListener> storeSesLsnrs) throws IgniteCheckedException { IgniteTxManager tm = new IgniteTxManager(); GridCacheMvccManager mvccMgr = new GridCacheMvccManager(); GridCacheVersionManager verMgr = new GridCacheVe... | /**
* Creates shared context.
*
* @param kernalCtx Kernal context.
* @param storeSesLsnrs Store session listeners.
* @return Shared context.
* @throws IgniteCheckedException If failed.
*/ | Creates shared context | createSharedContext | {
"repo_name": "WilliamDo/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/processors/cache/GridCacheProcessor.java",
"license": "apache-2.0",
"size": 148524
} | [
"java.util.Collection",
"org.apache.ignite.IgniteCheckedException",
"org.apache.ignite.cache.store.CacheStoreSessionListener",
"org.apache.ignite.internal.GridKernalContext",
"org.apache.ignite.internal.IgniteComponentType",
"org.apache.ignite.internal.pagemem.store.IgnitePageStoreManager",
"org.apache.... | import java.util.Collection; import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.cache.store.CacheStoreSessionListener; import org.apache.ignite.internal.GridKernalContext; import org.apache.ignite.internal.IgniteComponentType; import org.apache.ignite.internal.pagemem.store.IgnitePageStoreManager... | import java.util.*; import org.apache.ignite.*; import org.apache.ignite.cache.store.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.pagemem.store.*; import org.apache.ignite.internal.pagemem.wal.*; import org.apache.ignite.internal.processors.cache.jta.*; import org.apache.ignite.internal.pro... | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 950,005 |
EAttribute getExpression_Mixed(); | EAttribute getExpression_Mixed(); | /**
* Returns the meta object for the attribute list '{@link org.camunda.bpm.modeler.runtime.engine.model.Expression#getMixed <em>Mixed</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute list '<em>Mixed</em>'.
* @see org.camunda.bpm.modeler.runtime.engine.mod... | Returns the meta object for the attribute list '<code>org.camunda.bpm.modeler.runtime.engine.model.Expression#getMixed Mixed</code>'. | getExpression_Mixed | {
"repo_name": "camunda/camunda-eclipse-plugin",
"path": "org.camunda.bpm.modeler/src/org/camunda/bpm/modeler/runtime/engine/model/ModelPackage.java",
"license": "epl-1.0",
"size": 231785
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 171,527 |
@Test
public void testC() {
defaultSetup();
initTM();
assertEquals(0.05, connections.getPermanenceDecrement(), .001);
assertEquals(0.1, connections.getPermanenceIncrement(), .001);
finishSetUp(new ConsecutivePatternMachine(6, 1));
... | void function() { defaultSetup(); initTM(); assertEquals(0.05, connections.getPermanenceDecrement(), .001); assertEquals(0.1, connections.getPermanenceIncrement(), .001); finishSetUp(new ConsecutivePatternMachine(6, 1)); List<Integer> inputA = Arrays.asList(new Integer[] { 0, 1, 2, 3, -1 }); List<Integer> inputB = Arra... | /**
* High order sequences (alternating)
*/ | High order sequences (alternating) | testC | {
"repo_name": "rhyolight/htm.java",
"path": "src/test/java/org/numenta/nupic/integration/BasicTemporalMemoryTest.java",
"license": "gpl-3.0",
"size": 10218
} | [
"java.util.Arrays",
"java.util.List",
"java.util.Set",
"org.junit.Assert",
"org.numenta.nupic.integration.TemporalMemoryTestMachine",
"org.numenta.nupic.util.ConsecutivePatternMachine"
] | import java.util.Arrays; import java.util.List; import java.util.Set; import org.junit.Assert; import org.numenta.nupic.integration.TemporalMemoryTestMachine; import org.numenta.nupic.util.ConsecutivePatternMachine; | import java.util.*; import org.junit.*; import org.numenta.nupic.integration.*; import org.numenta.nupic.util.*; | [
"java.util",
"org.junit",
"org.numenta.nupic"
] | java.util; org.junit; org.numenta.nupic; | 738,203 |
public RenderState getPreShadowForcedRenderState() {
return shadowRenderer.getPreShadowForcedRenderState();
} | RenderState function() { return shadowRenderer.getPreShadowForcedRenderState(); } | /**
* returns the pre shadows pass render state.
* use it to adjust the RenderState parameters of the pre shadow pass.
* Note that this will be overridden if the preShadow technique in the material has a ForcedRenderState
* @return the pre shadow render state.
*/ | returns the pre shadows pass render state. use it to adjust the RenderState parameters of the pre shadow pass. Note that this will be overridden if the preShadow technique in the material has a ForcedRenderState | getPreShadowForcedRenderState | {
"repo_name": "phr00t/jmonkeyengine",
"path": "jme3-core/src/main/java/com/jme3/shadow/AbstractShadowFilter.java",
"license": "bsd-3-clause",
"size": 10913
} | [
"com.jme3.material.RenderState"
] | import com.jme3.material.RenderState; | import com.jme3.material.*; | [
"com.jme3.material"
] | com.jme3.material; | 1,040,629 |
public static void createAsset(AssetRequest asset, ISparkResponse<AssetResponse> onCreateAssetResponse) {
getInstance().sparkCreateAsset(asset, onCreateAssetResponse);
} | static void function(AssetRequest asset, ISparkResponse<AssetResponse> onCreateAssetResponse) { getInstance().sparkCreateAsset(asset, onCreateAssetResponse); } | /** Create new asset object.
*
* @param asset Asset object to create, filled with asset data.
* @param onCreateAssetResponse Asset created response oobject.
*/ | Create new asset object | createAsset | {
"repo_name": "w9jds/spark-android-SDK",
"path": "SparkSDK-1.0/src/main/java/com/autodesk/spark/sdk/spark/SparkDrive.java",
"license": "apache-2.0",
"size": 5030
} | [
"com.autodesk.spark.sdk.interfaces.ISparkResponse",
"com.autodesk.spark.sdk.models.Request",
"com.autodesk.spark.sdk.models.Response"
] | import com.autodesk.spark.sdk.interfaces.ISparkResponse; import com.autodesk.spark.sdk.models.Request; import com.autodesk.spark.sdk.models.Response; | import com.autodesk.spark.sdk.interfaces.*; import com.autodesk.spark.sdk.models.*; | [
"com.autodesk.spark"
] | com.autodesk.spark; | 2,495,193 |
List<Authentication> getChainedAuthentications(); | List<Authentication> getChainedAuthentications(); | /**
* Gets a list of all authentications that have occurred during a CAS SSO session.
*
* @return Non-null, non-empty list of authentications in leaf-first order (i.e. authentications on the root ticket
* occur at the end).
*/ | Gets a list of all authentications that have occurred during a CAS SSO session | getChainedAuthentications | {
"repo_name": "pdrados/cas",
"path": "api/cas-server-core-api-validation/src/main/java/org/apereo/cas/validation/Assertion.java",
"license": "apache-2.0",
"size": 1449
} | [
"java.util.List",
"org.apereo.cas.authentication.Authentication"
] | import java.util.List; import org.apereo.cas.authentication.Authentication; | import java.util.*; import org.apereo.cas.authentication.*; | [
"java.util",
"org.apereo.cas"
] | java.util; org.apereo.cas; | 1,682,806 |
@Override
public void init(IEditorSite site, IEditorInput editorInput) {
setSite(site);
setInputWithNotify(editorInput);
setPartName(editorInput.getName());
site.setSelectionProvider(this);
site.getPage().addPartListener(partListener);
ResourcesPlugin.getWorkspace().addResourceChangeListener(reso... | void function(IEditorSite site, IEditorInput editorInput) { setSite(site); setInputWithNotify(editorInput); setPartName(editorInput.getName()); site.setSelectionProvider(this); site.getPage().addPartListener(partListener); ResourcesPlugin.getWorkspace().addResourceChangeListener(resourceChangeListener, IResourceChangeE... | /**
* This is called during startup.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This is called during startup. | init | {
"repo_name": "Highbrainer/hdp-ingest-catalog",
"path": "releng/com.jeevaneo.hdp.ingest.model.editor/src/com/jeevaneo/hdp/ingest/presentation/IngestEditor.java",
"license": "epl-1.0",
"size": 55887
} | [
"org.eclipse.core.resources.IResourceChangeEvent",
"org.eclipse.core.resources.ResourcesPlugin",
"org.eclipse.ui.IEditorInput",
"org.eclipse.ui.IEditorSite"
] | import org.eclipse.core.resources.IResourceChangeEvent; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.ui.IEditorInput; import org.eclipse.ui.IEditorSite; | import org.eclipse.core.resources.*; import org.eclipse.ui.*; | [
"org.eclipse.core",
"org.eclipse.ui"
] | org.eclipse.core; org.eclipse.ui; | 11,679 |
List<Installation> findInstallationsForVariantByDeviceTokens(String variantID, Set<String> deviceTokens); | List<Installation> findInstallationsForVariantByDeviceTokens(String variantID, Set<String> deviceTokens); | /**
* Loads all installations matching the <code>Set</code> of deviceTokens, for the given Variant
*/ | Loads all installations matching the <code>Set</code> of deviceTokens, for the given Variant | findInstallationsForVariantByDeviceTokens | {
"repo_name": "qmx/aerogear-unifiedpush-server",
"path": "model/api/src/main/java/org/jboss/aerogear/unifiedpush/dao/InstallationDao.java",
"license": "apache-2.0",
"size": 2307
} | [
"java.util.List",
"java.util.Set",
"org.jboss.aerogear.unifiedpush.api.Installation"
] | import java.util.List; import java.util.Set; import org.jboss.aerogear.unifiedpush.api.Installation; | import java.util.*; import org.jboss.aerogear.unifiedpush.api.*; | [
"java.util",
"org.jboss.aerogear"
] | java.util; org.jboss.aerogear; | 469,678 |
public long updateCount(String countName) {
CounterPojo cp = ofy().load().type(CounterPojo.class).filter("name", countName).first().now();
if (cp == null) {
cp = new CounterPojo(countName);
}
cp.increment();
ofy().save().entity(cp).now();
return cp.count;
}
// [END tq_1] | long function(String countName) { CounterPojo cp = ofy().load().type(CounterPojo.class).filter("name", countName).first().now(); if (cp == null) { cp = new CounterPojo(countName); } cp.increment(); ofy().save().entity(cp).now(); return cp.count; } | /**
* Increment the count in a Counter datastore entity.
**/ | Increment the count in a Counter datastore entity | updateCount | {
"repo_name": "GoogleCloudPlatform/java-docs-samples",
"path": "appengine-java8/multitenancy/src/main/java/com/example/appengine/UpdateCountsServlet.java",
"license": "apache-2.0",
"size": 2855
} | [
"com.googlecode.objectify.ObjectifyService"
] | import com.googlecode.objectify.ObjectifyService; | import com.googlecode.objectify.*; | [
"com.googlecode.objectify"
] | com.googlecode.objectify; | 215,933 |
public static void saveMimeOutputStreamAsFile(HttpServletResponse response, String contentType,
ByteArrayOutputStream byteArrayOutputStream, String fileName) throws IOException {
// If there are quotes in the name, we should replace them to avoid issues.
// The filename will be wrapped with q... | static void function(HttpServletResponse response, String contentType, ByteArrayOutputStream byteArrayOutputStream, String fileName) throws IOException { String updateFileName; if(fileName.contains("\"STR\STRSTRContent-dispositionSTRattachment; filename=\STR\STRExpiresSTR0STRCache-ControlSTRmust-revalidate, post-check=... | /**
* A file that is not of type text/plain or text/html can be output through
* the response using this method.
*
* @param response
* @param contentType
* @param byteArrayOutputStream
* @param fileName
*/ | A file that is not of type text/plain or text/html can be output through the response using this method | saveMimeOutputStreamAsFile | {
"repo_name": "mztaylor/rice-git",
"path": "rice-middleware/kns/src/main/java/org/kuali/rice/kns/util/WebUtils.java",
"license": "apache-2.0",
"size": 38590
} | [
"java.io.ByteArrayOutputStream",
"java.io.IOException",
"java.io.OutputStream",
"javax.servlet.http.HttpServletResponse"
] | import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.OutputStream; import javax.servlet.http.HttpServletResponse; | import java.io.*; import javax.servlet.http.*; | [
"java.io",
"javax.servlet"
] | java.io; javax.servlet; | 541,135 |
AmsFactory getAmsFactory();
interface Literals {
EClass QUANTITY_ASPECT = eINSTANCE.getQuantityAspect();
EReference QUANTITY_ASPECT__TOLERANCE = eINSTANCE.getQuantityAspect_Tolerance();
EReference QUANTITY_ASPECT__EXPRESSION = eINSTANCE.getQuantityAspect_Expression();
EClass SOURCE_ASPECT ... | AmsFactory getAmsFactory(); interface Literals { EClass QUANTITY_ASPECT = eINSTANCE.getQuantityAspect(); EReference QUANTITY_ASPECT__TOLERANCE = eINSTANCE.getQuantityAspect_Tolerance(); EReference QUANTITY_ASPECT__EXPRESSION = eINSTANCE.getQuantityAspect_Expression(); EClass SOURCE_ASPECT = eINSTANCE.getSourceAspect();... | /**
* Returns the factory that creates the instances of the model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the factory that creates the instances of the model.
* @generated
*/ | Returns the factory that creates the instances of the model. | getAmsFactory | {
"repo_name": "mlanoe/x-vhdl",
"path": "plugins/net.mlanoe.language.vhdl/src-gen/net/mlanoe/language/vhdl/ams/AmsPackage.java",
"license": "gpl-3.0",
"size": 12721
} | [
"org.eclipse.emf.ecore.EClass",
"org.eclipse.emf.ecore.EReference"
] | import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EReference; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,079,525 |
public void writeEntityToNBT(NBTTagCompound p_70014_1_)
{
super.writeEntityToNBT(p_70014_1_);
p_70014_1_.setShort("Anger", (short)this.angerLevel);
} | void function(NBTTagCompound p_70014_1_) { super.writeEntityToNBT(p_70014_1_); p_70014_1_.setShort("Anger", (short)this.angerLevel); } | /**
* (abstract) Protected helper method to write subclass entity data to NBT.
*/ | (abstract) Protected helper method to write subclass entity data to NBT | writeEntityToNBT | {
"repo_name": "TheHecticByte/BananaJ1.7.10Beta",
"path": "src/net/minecraft/Server1_7_10/entity/monster/EntityPigZombie.java",
"license": "gpl-3.0",
"size": 7129
} | [
"net.minecraft.Server1_7_10"
] | import net.minecraft.Server1_7_10; | import net.minecraft.*; | [
"net.minecraft"
] | net.minecraft; | 2,614,677 |
private void parseSmsSubmit(PduParser p, int firstByte) {
mReplyPathPresent = (firstByte & 0x80) == 0x80;
// TP-MR (TP-Message Reference)
mMessageRef = p.getByte();
mRecipientAddress = p.getAddress();
if (mRecipientAddress != null) {
if (VDBG) Rlog.v(LOG_TAG, "... | void function(PduParser p, int firstByte) { mReplyPathPresent = (firstByte & 0x80) == 0x80; mMessageRef = p.getByte(); mRecipientAddress = p.getAddress(); if (mRecipientAddress != null) { if (VDBG) Rlog.v(LOG_TAG, STR + mRecipientAddress.address); } mProtocolIdentifier = p.getByte(); mDataCodingScheme = p.getByte(); if... | /**
* Parses a SMS-SUBMIT message.
*
* @param p A PduParser, cued past the first byte.
* @param firstByte The first byte of the PDU, which contains MTI, etc.
*/ | Parses a SMS-SUBMIT message | parseSmsSubmit | {
"repo_name": "indashnet/InDashNet.Open.UN2000",
"path": "android/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/SmsMessage.java",
"license": "apache-2.0",
"size": 42573
} | [
"android.telephony.Rlog"
] | import android.telephony.Rlog; | import android.telephony.*; | [
"android.telephony"
] | android.telephony; | 1,935,414 |
@Ignore
@Test
public void checkConnectionProperties() {
fail("Not implemented.");
} | void function() { fail(STR); } | /**
* This test checks the service's connection properties, including their
* default values.
*
* @see VisItVizService#hasConnectionProperties()
* @see VisItVizService#getConnectionProperties()
* @see VisItVizService#setConnectionProperties(java.util.Map)
*/ | This test checks the service's connection properties, including their default values | checkConnectionProperties | {
"repo_name": "SmithRWORNL/ice",
"path": "tests/org.eclipse.ice.viz.service.visit.test/src/org/eclipse/ice/viz/service/visit/test/VisItVizServiceTester.java",
"license": "epl-1.0",
"size": 4279
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 2,390,336 |
public void userTextInput( XPropertySet controlModel, String text ) throws com.sun.star.uno.Exception, java.lang.Exception
{
// we will *not* simply set the value property at the model. This is not the same as
// doing a user input, as the latter will trigger a lot of notifications, which t... | void function( XPropertySet controlModel, String text ) throws com.sun.star.uno.Exception, java.lang.Exception { XAccessible formattedAccessible = UnoRuntime.queryInterface( XAccessible.class, m_document.getCurrentView().getControl( controlModel ) ); XAccessibleEditableText textAccess = UnoRuntime.queryInterface( XAcce... | /** simulates a user's text input into a control given by control model
*/ | simulates a user's text input into a control given by control model | userTextInput | {
"repo_name": "beppec56/core",
"path": "forms/qa/integration/forms/FormLayer.java",
"license": "gpl-3.0",
"size": 14129
} | [
"com.sun.star.accessibility.XAccessible",
"com.sun.star.accessibility.XAccessibleEditableText",
"com.sun.star.beans.XPropertySet",
"com.sun.star.uno.UnoRuntime"
] | import com.sun.star.accessibility.XAccessible; import com.sun.star.accessibility.XAccessibleEditableText; import com.sun.star.beans.XPropertySet; import com.sun.star.uno.UnoRuntime; | import com.sun.star.accessibility.*; import com.sun.star.beans.*; import com.sun.star.uno.*; | [
"com.sun.star"
] | com.sun.star; | 2,021,179 |
public static Optional<JComponent> getDateTimeExtraComponent(FieldEditor editor, boolean useDatePicker,
boolean useIsoFormat) {
((JTextArea) editor).addMouseListener(new MouseAdapter() { | static Optional<JComponent> function(FieldEditor editor, boolean useDatePicker, boolean useIsoFormat) { ((JTextArea) editor).addMouseListener(new MouseAdapter() { | /**
* Set up field such that double click inserts the current date
* If isDataPicker is True, a button with a data picker is returned
*
* @param editor reference to the FieldEditor to display the date value
* @param useDatePicker shows a DatePickerButton if true
* @param useIsoFormat if tr... | Set up field such that double click inserts the current date If isDataPicker is True, a button with a data picker is returned | getDateTimeExtraComponent | {
"repo_name": "bartsch-dev/jabref",
"path": "src/main/java/org/jabref/gui/entryeditor/FieldExtraComponents.java",
"license": "mit",
"size": 22870
} | [
"java.awt.event.MouseAdapter",
"java.util.Optional",
"javax.swing.JComponent",
"javax.swing.JTextArea",
"org.jabref.gui.fieldeditors.FieldEditor"
] | import java.awt.event.MouseAdapter; import java.util.Optional; import javax.swing.JComponent; import javax.swing.JTextArea; import org.jabref.gui.fieldeditors.FieldEditor; | import java.awt.event.*; import java.util.*; import javax.swing.*; import org.jabref.gui.fieldeditors.*; | [
"java.awt",
"java.util",
"javax.swing",
"org.jabref.gui"
] | java.awt; java.util; javax.swing; org.jabref.gui; | 2,279,839 |
@Nonnull
public java.util.concurrent.CompletableFuture<InferenceClassification> deleteAsync() {
return sendAsync(HttpMethod.DELETE, null);
} | java.util.concurrent.CompletableFuture<InferenceClassification> function() { return sendAsync(HttpMethod.DELETE, null); } | /**
* Delete this item from the service
*
* @return a future with the deletion result
*/ | Delete this item from the service | deleteAsync | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/InferenceClassificationRequest.java",
"license": "mit",
"size": 6553
} | [
"com.microsoft.graph.http.HttpMethod",
"com.microsoft.graph.models.InferenceClassification"
] | import com.microsoft.graph.http.HttpMethod; import com.microsoft.graph.models.InferenceClassification; | import com.microsoft.graph.http.*; import com.microsoft.graph.models.*; | [
"com.microsoft.graph"
] | com.microsoft.graph; | 1,531,379 |
public void print(StringBuilder sb, int indent, Verbosity verbosity) {
BaseAllocator.indent(sb, indent).append(toString());
if (BaseAllocator.DEBUG && !isEmpty && verbosity.includeHistoricalLog) {
sb.append("\n");
historicalLog.buildHistory(sb, indent + 1, verbosity.includeStackTraces);
}
} | void function(StringBuilder sb, int indent, Verbosity verbosity) { BaseAllocator.indent(sb, indent).append(toString()); if (BaseAllocator.DEBUG && !isEmpty && verbosity.includeHistoricalLog) { sb.append("\n"); historicalLog.buildHistory(sb, indent + 1, verbosity.includeStackTraces); } } | /**
* Prints information of this buffer into <code>sb</code> at the given
* indentation and verbosity level.
*
* <p>It will include history if BaseAllocator.DEBUG is true and
* the verbosity.includeHistoricalLog are true.
*
*/ | Prints information of this buffer into <code>sb</code> at the given indentation and verbosity level. It will include history if BaseAllocator.DEBUG is true and the verbosity.includeHistoricalLog are true | print | {
"repo_name": "majetideepak/arrow",
"path": "java/memory/src/main/java/io/netty/buffer/ArrowBuf.java",
"license": "apache-2.0",
"size": 43241
} | [
"org.apache.arrow.memory.BaseAllocator"
] | import org.apache.arrow.memory.BaseAllocator; | import org.apache.arrow.memory.*; | [
"org.apache.arrow"
] | org.apache.arrow; | 1,935,497 |
public void setItemsCanFocus(boolean itemsCanFocus) {
mItemsCanFocus = itemsCanFocus;
if (!itemsCanFocus) {
setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS);
}
} | void function(boolean itemsCanFocus) { mItemsCanFocus = itemsCanFocus; if (!itemsCanFocus) { setDescendantFocusability(ViewGroup.FOCUS_BLOCK_DESCENDANTS); } } | /**
* Indicates that the views created by the ListAdapter can contain focusable
* items.
*
* @param itemsCanFocus true if items can get focus, false otherwise
*/ | Indicates that the views created by the ListAdapter can contain focusable items | setItemsCanFocus | {
"repo_name": "mateor/PDroidHistory",
"path": "frameworks/base/core/java/android/widget/ListView.java",
"license": "gpl-3.0",
"size": 141583
} | [
"android.view.ViewGroup"
] | import android.view.ViewGroup; | import android.view.*; | [
"android.view"
] | android.view; | 1,719,147 |
@Generated
@CVariable()
@MappedReturn(ObjCStringMapper.class)
public static native String ASAuthorizationPublicKeyCredentialResidentKeyPreferencePreferred(); | @CVariable() @MappedReturn(ObjCStringMapper.class) static native String function(); | /**
* Indicates that the authenticator should store the private key, if possible.
*/ | Indicates that the authenticator should store the private key, if possible | ASAuthorizationPublicKeyCredentialResidentKeyPreferencePreferred | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/authenticationservices/c/AuthenticationServices.java",
"license": "apache-2.0",
"size": 7610
} | [
"org.moe.natj.c.ann.CVariable",
"org.moe.natj.general.ann.MappedReturn",
"org.moe.natj.objc.map.ObjCStringMapper"
] | import org.moe.natj.c.ann.CVariable; import org.moe.natj.general.ann.MappedReturn; import org.moe.natj.objc.map.ObjCStringMapper; | import org.moe.natj.c.ann.*; import org.moe.natj.general.ann.*; import org.moe.natj.objc.map.*; | [
"org.moe.natj"
] | org.moe.natj; | 373,070 |
@Test
@SuppressWarnings("static-method")
public void testEqualPredicate1(){
User user = new User(2L);
Predicate<User> equalPredicate = BeanPredicateUtil.equalPredicate("id", (String) null);
assertEquals(false, equalPredicate.evaluate(user));
}
//-----------------------------... | @SuppressWarnings(STR) void function(){ User user = new User(2L); Predicate<User> equalPredicate = BeanPredicateUtil.equalPredicate("id", (String) null); assertEquals(false, equalPredicate.evaluate(user)); } | /**
* Test equal predicate 1.
*/ | Test equal predicate 1 | testEqualPredicate1 | {
"repo_name": "venusdrogon/feilong-core",
"path": "src/test/java/com/feilong/core/util/predicate/beanpredicateutil/EqualPredicateTest.java",
"license": "apache-2.0",
"size": 3454
} | [
"com.feilong.core.util.predicate.BeanPredicateUtil",
"com.feilong.store.member.User",
"org.apache.commons.collections4.Predicate",
"org.junit.Assert"
] | import com.feilong.core.util.predicate.BeanPredicateUtil; import com.feilong.store.member.User; import org.apache.commons.collections4.Predicate; import org.junit.Assert; | import com.feilong.core.util.predicate.*; import com.feilong.store.member.*; import org.apache.commons.collections4.*; import org.junit.*; | [
"com.feilong.core",
"com.feilong.store",
"org.apache.commons",
"org.junit"
] | com.feilong.core; com.feilong.store; org.apache.commons; org.junit; | 774,680 |
default String getTopic(TableId tableId) {
return getTopic(tableId.catalog(),tableId.table());
} | default String getTopic(TableId tableId) { return getTopic(tableId.catalog(),tableId.table()); } | /**
* Get the name of the topic for the given server name.
*
* @param tableId the identifier of the table; may not be null
* @return the topic name; never null
*/ | Get the name of the topic for the given server name | getTopic | {
"repo_name": "adsr/debezium",
"path": "debezium-connector-mysql/src/main/java/io/debezium/connector/mysql/TopicSelector.java",
"license": "apache-2.0",
"size": 3131
} | [
"io.debezium.relational.TableId"
] | import io.debezium.relational.TableId; | import io.debezium.relational.*; | [
"io.debezium.relational"
] | io.debezium.relational; | 1,087,949 |
public boolean isAllowedByLicense(OperationMode minimumMode) {
return isAllowedByLicense(minimumMode, true);
} | boolean function(OperationMode minimumMode) { return isAllowedByLicense(minimumMode, true); } | /**
* A convenient method to test whether a feature is by license status.
* @see #isAllowedByLicense(OperationMode, boolean)
*
* @param minimumMode The minimum license to meet or exceed
*/ | A convenient method to test whether a feature is by license status | isAllowedByLicense | {
"repo_name": "robin13/elasticsearch",
"path": "x-pack/plugin/core/src/main/java/org/elasticsearch/license/XPackLicenseState.java",
"license": "apache-2.0",
"size": 27997
} | [
"org.elasticsearch.license.License"
] | import org.elasticsearch.license.License; | import org.elasticsearch.license.*; | [
"org.elasticsearch.license"
] | org.elasticsearch.license; | 2,447,791 |
public void testUpdateStorageContainerWithSpecimenClass()
{
StorageContainer storageContainer = (StorageContainer) TestCaseUtility.getNameObjectMap("StorageContainer");
StorageContainerForm storageContainerForm = null;
logger.info("----StorageConatiner ID : " + storageContainer.getId());
addRequ... | void function() { StorageContainer storageContainer = (StorageContainer) TestCaseUtility.getNameObjectMap(STR); StorageContainerForm storageContainerForm = null; logger.info(STR + storageContainer.getId()); addRequestParameter(STR, STR); addRequestParameter(STR, STR); addRequestParameter("id", storageContainer.getId().... | /**
* This test case will update the Specimen Class of "StorageContainer".
*/ | This test case will update the Specimen Class of "StorageContainer" | testUpdateStorageContainerWithSpecimenClass | {
"repo_name": "NCIP/catissue-core",
"path": "software/caTissue/modules/tests/struts/CaTissue_TestCases/src/edu/wustl/catissuecore/testcase/biospecimen/SpecimenTestCases.java",
"license": "bsd-3-clause",
"size": 61716
} | [
"edu.wustl.catissuecore.actionForm.StorageContainerForm",
"edu.wustl.catissuecore.domain.StorageContainer",
"edu.wustl.catissuecore.testcase.util.TestCaseUtility",
"edu.wustl.common.exception.AssignDataException"
] | import edu.wustl.catissuecore.actionForm.StorageContainerForm; import edu.wustl.catissuecore.domain.StorageContainer; import edu.wustl.catissuecore.testcase.util.TestCaseUtility; import edu.wustl.common.exception.AssignDataException; | import edu.wustl.catissuecore.*; import edu.wustl.catissuecore.domain.*; import edu.wustl.catissuecore.testcase.util.*; import edu.wustl.common.exception.*; | [
"edu.wustl.catissuecore",
"edu.wustl.common"
] | edu.wustl.catissuecore; edu.wustl.common; | 2,779,142 |
@Test
public void reduceMaxInteger()
{
final List<Integer> list = createIntegerList();
final ReduceFunction<Integer> function = new MaxFunction<Integer>();
final Integer result = ListUtils.reduce(list, function);
assertNotNull(result);
assertThat(result, is(8));
} | void function() { final List<Integer> list = createIntegerList(); final ReduceFunction<Integer> function = new MaxFunction<Integer>(); final Integer result = ListUtils.reduce(list, function); assertNotNull(result); assertThat(result, is(8)); } | /**
* Test the <code>reduce()</code> method.
*/ | Test the <code>reduce()</code> method | reduceMaxInteger | {
"repo_name": "jmthompson2015/rivalry",
"path": "core/src/test/java/org/rivalry/core/funcprog/ListUtilsTest.java",
"license": "mit",
"size": 13890
} | [
"java.util.List",
"org.hamcrest.CoreMatchers",
"org.junit.Assert"
] | import java.util.List; import org.hamcrest.CoreMatchers; import org.junit.Assert; | import java.util.*; import org.hamcrest.*; import org.junit.*; | [
"java.util",
"org.hamcrest",
"org.junit"
] | java.util; org.hamcrest; org.junit; | 107,352 |
protected void reset(boolean clearCurrentBegin) {
super.reset(clearCurrentBegin);
Iterator i = children.iterator();
while (i.hasNext()) {
TimedElement e = (TimedElement) i.next();
e.reset(clearCurrentBegin);
}
} | void function(boolean clearCurrentBegin) { super.reset(clearCurrentBegin); Iterator i = children.iterator(); while (i.hasNext()) { TimedElement e = (TimedElement) i.next(); e.reset(clearCurrentBegin); } } | /**
* Resets this element.
*/ | Resets this element | reset | {
"repo_name": "git-moss/Push2Display",
"path": "lib/batik-1.8/sources/org/apache/batik/anim/timing/TimeContainer.java",
"license": "lgpl-3.0",
"size": 4936
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 2,269,275 |
public JTextField getProcessorNameField() {
return processorNameField;
} | JTextField function() { return processorNameField; } | /**
* Returns the processorNameField.
*
* @return the processorNameField
*/ | Returns the processorNameField | getProcessorNameField | {
"repo_name": "apache/incubator-taverna-workbench",
"path": "taverna-design-ui/src/main/java/org/apache/taverna/workbench/design/ui/ProcessorPanel.java",
"license": "apache-2.0",
"size": 2613
} | [
"javax.swing.JTextField"
] | import javax.swing.JTextField; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 636,761 |
public final void setTextStrokeColor(ColorCallback<DataLabelsContext> textStrokeColorCallback) {
TEXT_STROKE_COLOR_PROPERTY_HANDLER.setCallback(this, DataLabelsPlugin.ID, textStrokeColorCallback, textStrokeColorCallbackProxy.getProxy());
}
| final void function(ColorCallback<DataLabelsContext> textStrokeColorCallback) { TEXT_STROKE_COLOR_PROPERTY_HANDLER.setCallback(this, DataLabelsPlugin.ID, textStrokeColorCallback, textStrokeColorCallbackProxy.getProxy()); } | /**
* Sets the text stroke color callback.
*
* @param textStrokeColorCallback the text stroke color callback to set
*/ | Sets the text stroke color callback | setTextStrokeColor | {
"repo_name": "pepstock-org/Charba",
"path": "src/org/pepstock/charba/client/datalabels/LabelItem.java",
"license": "apache-2.0",
"size": 61828
} | [
"org.pepstock.charba.client.callbacks.ColorCallback"
] | import org.pepstock.charba.client.callbacks.ColorCallback; | import org.pepstock.charba.client.callbacks.*; | [
"org.pepstock.charba"
] | org.pepstock.charba; | 429,172 |
public static void componentsSetEnabled(JComponent[] components, boolean enabled) {
for (JComponent c : components) {
c.setEnabled(enabled);
}
} | static void function(JComponent[] components, boolean enabled) { for (JComponent c : components) { c.setEnabled(enabled); } } | /**
* call setEnabled(boolean) on all components in list
* @param components
* @param enabled
*/ | call setEnabled(boolean) on all components in list | componentsSetEnabled | {
"repo_name": "kmdouglass/Micro-Manager",
"path": "plugins/ASIdiSPIM/src/org/micromanager/asidispim/Utils/PanelUtils.java",
"license": "mit",
"size": 36214
} | [
"javax.swing.JComponent"
] | import javax.swing.JComponent; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 921,295 |
public List<TypeInfo<?>> getExceptionTypes(Member methodOrConstructor) {
Type[] genericExceptionTypes;
if (methodOrConstructor instanceof Method) {
Method method = (Method) methodOrConstructor;
checkArgument(method.getDeclaringClass().isAssignableFrom(rawType),
... | List<TypeInfo<?>> function(Member methodOrConstructor) { Type[] genericExceptionTypes; if (methodOrConstructor instanceof Method) { Method method = (Method) methodOrConstructor; checkArgument(method.getDeclaringClass().isAssignableFrom(rawType), STR, method, type); genericExceptionTypes = method.getGenericExceptionType... | /**
* Returns the resolved generic exception types thrown by {@code constructor}.
*
* @param methodOrConstructor a method or constructor defined by this or any supertype.
* @since 2.0
*/ | Returns the resolved generic exception types thrown by constructor | getExceptionTypes | {
"repo_name": "jaspeen/classinfo",
"path": "src/main/java/org/jeesy/classinfo/TypeInfo.java",
"license": "apache-2.0",
"size": 14691
} | [
"java.lang.reflect.Constructor",
"java.lang.reflect.Member",
"java.lang.reflect.Method",
"java.lang.reflect.Type",
"java.util.List",
"org.jeesy.classinfo.Utils"
] | import java.lang.reflect.Constructor; import java.lang.reflect.Member; import java.lang.reflect.Method; import java.lang.reflect.Type; import java.util.List; import org.jeesy.classinfo.Utils; | import java.lang.reflect.*; import java.util.*; import org.jeesy.classinfo.*; | [
"java.lang",
"java.util",
"org.jeesy.classinfo"
] | java.lang; java.util; org.jeesy.classinfo; | 2,196,703 |
public ImmutableList<Path> walk() throws IOException {
try (Stream<Path> fileStream = Files.walk(rootDir)) {
return fileStream.filter(pathFilter).sorted().collect(ImmutableList.toImmutableList());
}
} | ImmutableList<Path> function() throws IOException { try (Stream<Path> fileStream = Files.walk(rootDir)) { return fileStream.filter(pathFilter).sorted().collect(ImmutableList.toImmutableList()); } } | /**
* Walks {@link #rootDir}.
*
* @return the walked files.
* @throws IOException if walking the files fails.
*/ | Walks <code>#rootDir</code> | walk | {
"repo_name": "GoogleContainerTools/jib",
"path": "jib-core/src/main/java/com/google/cloud/tools/jib/filesystem/DirectoryWalker.java",
"license": "apache-2.0",
"size": 2887
} | [
"com.google.common.collect.ImmutableList",
"java.io.IOException",
"java.nio.file.Files",
"java.nio.file.Path",
"java.util.stream.Stream"
] | import com.google.common.collect.ImmutableList; import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.util.stream.Stream; | import com.google.common.collect.*; import java.io.*; import java.nio.file.*; import java.util.stream.*; | [
"com.google.common",
"java.io",
"java.nio",
"java.util"
] | com.google.common; java.io; java.nio; java.util; | 1,534,691 |
@Test
public void creationUntilMax() throws IOException {
int maxCapacity = 3;
byteBufferProvider.setBufferSize(1);
byteBufferProvider.setPoolMaxCapacity(maxCapacity);
byteBufferProvider.init();
for (int i = 0; i < maxCapacity; i++) {
ByteBuffer buffer = byteBufferProvider.acquireByteBuffer();
asser... | void function() throws IOException { int maxCapacity = 3; byteBufferProvider.setBufferSize(1); byteBufferProvider.setPoolMaxCapacity(maxCapacity); byteBufferProvider.init(); for (int i = 0; i < maxCapacity; i++) { ByteBuffer buffer = byteBufferProvider.acquireByteBuffer(); assertThat(buffer, is(notNullValue())); } asse... | /**
* Tests that no buffer will be created after max pool capacity has been reached.
*/ | Tests that no buffer will be created after max pool capacity has been reached | creationUntilMax | {
"repo_name": "ivansenic/inspectIT",
"path": "inspectit.shared.all/src/test/java/rocks/inspectit/shared/all/storage/nio/ByteBufferProviderTest.java",
"license": "agpl-3.0",
"size": 6202
} | [
"java.io.IOException",
"java.nio.ByteBuffer",
"org.hamcrest.MatcherAssert",
"org.hamcrest.Matchers"
] | import java.io.IOException; import java.nio.ByteBuffer; import org.hamcrest.MatcherAssert; import org.hamcrest.Matchers; | import java.io.*; import java.nio.*; import org.hamcrest.*; | [
"java.io",
"java.nio",
"org.hamcrest"
] | java.io; java.nio; org.hamcrest; | 864,119 |
@Override public <K, V> KNNClassificationModel fit(DatasetBuilder<K, V> datasetBuilder,
IgniteBiFunction<K, V, Vector> featureExtractor, IgniteBiFunction<K, V, Double> lbExtractor) {
return new KNNClassificationModel(KNNUtils.buildDataset(datasetBuilder, featureExtractor, lbExtractor));
} | @Override <K, V> KNNClassificationModel function(DatasetBuilder<K, V> datasetBuilder, IgniteBiFunction<K, V, Vector> featureExtractor, IgniteBiFunction<K, V, Double> lbExtractor) { return new KNNClassificationModel(KNNUtils.buildDataset(datasetBuilder, featureExtractor, lbExtractor)); } | /**
* Trains model based on the specified data.
*
* @param datasetBuilder Dataset builder.
* @param featureExtractor Feature extractor.
* @param lbExtractor Label extractor.
* @return Model.
*/ | Trains model based on the specified data | fit | {
"repo_name": "alexzaitzev/ignite",
"path": "modules/ml/src/main/java/org/apache/ignite/ml/knn/classification/KNNClassificationTrainer.java",
"license": "apache-2.0",
"size": 1855
} | [
"org.apache.ignite.ml.dataset.DatasetBuilder",
"org.apache.ignite.ml.knn.KNNUtils",
"org.apache.ignite.ml.math.functions.IgniteBiFunction",
"org.apache.ignite.ml.math.primitives.vector.Vector"
] | import org.apache.ignite.ml.dataset.DatasetBuilder; import org.apache.ignite.ml.knn.KNNUtils; import org.apache.ignite.ml.math.functions.IgniteBiFunction; import org.apache.ignite.ml.math.primitives.vector.Vector; | import org.apache.ignite.ml.dataset.*; import org.apache.ignite.ml.knn.*; import org.apache.ignite.ml.math.functions.*; import org.apache.ignite.ml.math.primitives.vector.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 884,578 |
int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate); | int receiveEnergy(EnumFacing from, int maxReceive, boolean simulate); | /**
* Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver.
*
* @param from
* Orientation the energy is received from.
* @param maxReceive
* Maximum amount of energy to receive.
* @param simulate
* If TRUE, the charge will only ... | Add energy to an IEnergyReceiver, internal distribution is left entirely to the IEnergyReceiver | receiveEnergy | {
"repo_name": "Furt/DexUtils",
"path": "src/main/java/cofh/api/energy/IEnergyReceiver.java",
"license": "gpl-3.0",
"size": 886
} | [
"net.minecraft.util.EnumFacing"
] | import net.minecraft.util.EnumFacing; | import net.minecraft.util.*; | [
"net.minecraft.util"
] | net.minecraft.util; | 2,564,579 |
static public void checkEventId(Event e) throws InsufficientInformationException {
if (e == null)
throw new NullPointerException("e is null");
if (!e.hasDbid())
throw new InsufficientInformationException("eventID is unavailable");
} | static void function(Event e) throws InsufficientInformationException { if (e == null) throw new NullPointerException(STR); if (!e.hasDbid()) throw new InsufficientInformationException(STR); } | /**
* Ensures that the event has a database eventId
*
* @param e
* the event
* @throws org.opennms.netmgt.capsd.InsufficientInformationException
* if an event id is not evailable
*/ | Ensures that the event has a database eventId | checkEventId | {
"repo_name": "bugcy013/opennms-tmp-tools",
"path": "opennms-services/src/main/java/org/opennms/netmgt/capsd/EventUtils.java",
"license": "gpl-2.0",
"size": 34931
} | [
"org.opennms.netmgt.xml.event.Event"
] | import org.opennms.netmgt.xml.event.Event; | import org.opennms.netmgt.xml.event.*; | [
"org.opennms.netmgt"
] | org.opennms.netmgt; | 1,540,384 |
@RequestMapping(value = "/contacts/find_by_number",
method = RequestMethod.GET,
produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE})
public ResponseEntity<ContactsWrapper> findContactsByNumber(@RequestParam("phone_number") String number,
@RequestPar... | @RequestMapping(value = STR, method = RequestMethod.GET, produces = {MediaType.APPLICATION_JSON_VALUE, MediaType.APPLICATION_XML_VALUE}) ResponseEntity<ContactsWrapper> function(@RequestParam(STR) String number, @RequestParam(value="match", required = false) boolean match) { List<Contact> contactList = phonebookService... | /**
* Display Contact entities By phone number
*
* @param number un-filtered number to search
* @param match the whole number using digits only or search for a sequence of numbers
* @return ResponseEntity object
*/ | Display Contact entities By phone number | findContactsByNumber | {
"repo_name": "vsyso/phonebook",
"path": "spring/src/java/org/syso/phonebook/controller/ContactController.java",
"license": "mit",
"size": 8996
} | [
"java.util.List",
"org.springframework.http.HttpStatus",
"org.springframework.http.MediaType",
"org.springframework.http.ResponseEntity",
"org.springframework.web.bind.annotation.RequestMapping",
"org.springframework.web.bind.annotation.RequestMethod",
"org.springframework.web.bind.annotation.RequestPar... | import java.util.List; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.a... | import java.util.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*; import org.syso.phonebook.domain.*; import org.syso.phonebook.helpers.*; | [
"java.util",
"org.springframework.http",
"org.springframework.web",
"org.syso.phonebook"
] | java.util; org.springframework.http; org.springframework.web; org.syso.phonebook; | 2,363,237 |
public Map<String, String> getOptionsMap() {
return getOptions();
} | Map<String, String> function() { return getOptions(); } | /**
* By default delegates to {@link #getOptions()}, but available to override in subclasses.
*
* @return Map<String, String> of values
*/ | By default delegates to <code>#getOptions()</code>, but available to override in subclasses | getOptionsMap | {
"repo_name": "iharkhukhrakou/XPagesExtensionLibrary",
"path": "extlib/lwp/product/runtime/eclipse/plugins/com.ibm.xsp.extlib.controls/src/com/ibm/xsp/extlib/component/picker/data/MapValuePickerData.java",
"license": "apache-2.0",
"size": 15946
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,272,319 |
JsonNode forStorage(T config); | JsonNode forStorage(T config); | /**
* Configuration for storage
*/ | Configuration for storage | forStorage | {
"repo_name": "flesire/ontrack",
"path": "ontrack-model/src/main/java/net/nemerosa/ontrack/model/structure/TemplateSynchronisationSource.java",
"license": "mit",
"size": 1111
} | [
"com.fasterxml.jackson.databind.JsonNode"
] | import com.fasterxml.jackson.databind.JsonNode; | import com.fasterxml.jackson.databind.*; | [
"com.fasterxml.jackson"
] | com.fasterxml.jackson; | 995,762 |
Observable<TagResult> executeAsync();
}
}
interface ComputerVisionTagImageDefinition extends
ComputerVisionTagImageDefinitionStages.WithUrl,
ComputerVisionTagImageDefinitionStages.WithExecute {
} | Observable<TagResult> executeAsync(); } } interface ComputerVisionTagImageDefinition extends ComputerVisionTagImageDefinitionStages.WithUrl, ComputerVisionTagImageDefinitionStages.WithExecute { } | /**
* Execute the request asynchronously.
*
* @return the observable to the TagResult object
*/ | Execute the request asynchronously | executeAsync | {
"repo_name": "navalev/azure-sdk-for-java",
"path": "sdk/cognitiveservices/ms-azure-cs-computervision/src/main/java/com/microsoft/azure/cognitiveservices/vision/computervision/ComputerVision.java",
"license": "mit",
"size": 77568
} | [
"com.microsoft.azure.cognitiveservices.vision.computervision.models.TagResult"
] | import com.microsoft.azure.cognitiveservices.vision.computervision.models.TagResult; | import com.microsoft.azure.cognitiveservices.vision.computervision.models.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 2,396,335 |
void requestStop(long timeout) throws CoreException, TimeoutException; | void requestStop(long timeout) throws CoreException, TimeoutException; | /**
* Stop this component.
* <p>
* A timeout is required as Connections within the adapter may be configured to retry forever (if a broker is not available for
* instance) which would cause this method to never return.
* </p>
*
* @param timeout the max timeout to wait for in milliseconds
* @thr... | Stop this component. A timeout is required as Connections within the adapter may be configured to retry forever (if a broker is not available for instance) which would cause this method to never return. | requestStop | {
"repo_name": "mcwarman/interlok",
"path": "adapter/src/main/java/com/adaptris/core/runtime/AdapterComponentMBean.java",
"license": "apache-2.0",
"size": 11376
} | [
"com.adaptris.core.CoreException",
"java.util.concurrent.TimeoutException"
] | import com.adaptris.core.CoreException; import java.util.concurrent.TimeoutException; | import com.adaptris.core.*; import java.util.concurrent.*; | [
"com.adaptris.core",
"java.util"
] | com.adaptris.core; java.util; | 518,947 |
public native void getCurrentPosition(GeolocationHandler handler) ; | native void function(GeolocationHandler handler) ; | /**
*
* Retrieve the last known location from the device. on android, the radios
* are not turned on to update the location. on ios the radios may be used
* if the location is too "old".
*/ | Retrieve the last known location from the device. on android, the radios are not turned on to update the location. on ios the radios may be used if the location is too "old" | getCurrentPosition | {
"repo_name": "alpapad/ahome-titanium",
"path": "ahome-titanium/src/com/ait/toolkit/titanium/mobile/client/geolocation/Geolocation.java",
"license": "apache-2.0",
"size": 15976
} | [
"com.ait.toolkit.titanium.mobile.client.core.handlers.geolocation.GeolocationHandler"
] | import com.ait.toolkit.titanium.mobile.client.core.handlers.geolocation.GeolocationHandler; | import com.ait.toolkit.titanium.mobile.client.core.handlers.geolocation.*; | [
"com.ait.toolkit"
] | com.ait.toolkit; | 2,428,451 |
void testCompletionVariants(@TestDataFile @NonNls String fileBefore, @NonNls String... items); | void testCompletionVariants(@TestDataFile @NonNls String fileBefore, @NonNls String... items); | /**
* Runs basic completion in caret position in fileBefore.
* Checks that lookup is shown and it contains items with given lookup strings
* @param items most probably will contain > 1 items
*/ | Runs basic completion in caret position in fileBefore. Checks that lookup is shown and it contains items with given lookup strings | testCompletionVariants | {
"repo_name": "ernestp/consulo",
"path": "platform/testFramework/src/com/intellij/testFramework/fixtures/CodeInsightTestFixture.java",
"license": "apache-2.0",
"size": 19215
} | [
"com.intellij.testFramework.TestDataFile",
"org.jetbrains.annotations.NonNls"
] | import com.intellij.testFramework.TestDataFile; import org.jetbrains.annotations.NonNls; | import com.intellij.*; import org.jetbrains.annotations.*; | [
"com.intellij",
"org.jetbrains.annotations"
] | com.intellij; org.jetbrains.annotations; | 480,964 |
public IDataset getFax_number();
| IDataset function(); | /**
* Fax number of user
*
* @return the value.
*/ | Fax number of user | getFax_number | {
"repo_name": "xen-0/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXuser.java",
"license": "epl-1.0",
"size": 6031
} | [
"org.eclipse.january.dataset.IDataset"
] | import org.eclipse.january.dataset.IDataset; | import org.eclipse.january.dataset.*; | [
"org.eclipse.january"
] | org.eclipse.january; | 2,484,906 |
@SuppressWarnings("unchecked")
int[] executeBatch(Map<String, ?>... batch); | @SuppressWarnings(STR) int[] executeBatch(Map<String, ?>... batch); | /**
* Execute a batch insert using the batch of values passed in.
* @param batch an array of Maps containing a batch of column names and corresponding value
* @return the array of number of rows affected as returned by the JDBC driver
*/ | Execute a batch insert using the batch of values passed in | executeBatch | {
"repo_name": "spring-projects/spring-framework",
"path": "spring-jdbc/src/main/java/org/springframework/jdbc/core/simple/SimpleJdbcInsertOperations.java",
"license": "apache-2.0",
"size": 6010
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,668,670 |
public Message[] getMessages() throws MessagingException {
// Can only be performed on an Open folder
checkOpen();
// we're going to try first with XHDR, which will allow us to retrieve
// everything in one shot. If that
// fails, we'll fall back on issing STAT comma... | Message[] function() throws MessagingException { checkOpen(); NNTPReply reply = connection.sendCommand(STR + Integer.toString(firstArticle) + "-" + Integer.toString(lastArticle), NNTPReply.HEAD_FOLLOWS); List messages = new ArrayList(); if (reply.getCode() == NNTPReply.HEAD_FOLLOWS) { List lines = reply.getData(); for ... | /**
* Retrieve all articles in the group.
*
* @return An array of all messages in the group.
*/ | Retrieve all articles in the group | getMessages | {
"repo_name": "apache/geronimo-javamail",
"path": "geronimo-javamail_1.6/geronimo-javamail_1.6_provider/src/main/java/org/apache/geronimo/javamail/store/nntp/NNTPGroupFolder.java",
"license": "apache-2.0",
"size": 13244
} | [
"java.util.ArrayList",
"java.util.List",
"javax.mail.Message",
"javax.mail.MessagingException",
"org.apache.geronimo.javamail.transport.nntp.NNTPReply"
] | import java.util.ArrayList; import java.util.List; import javax.mail.Message; import javax.mail.MessagingException; import org.apache.geronimo.javamail.transport.nntp.NNTPReply; | import java.util.*; import javax.mail.*; import org.apache.geronimo.javamail.transport.nntp.*; | [
"java.util",
"javax.mail",
"org.apache.geronimo"
] | java.util; javax.mail; org.apache.geronimo; | 2,892,371 |
public Observable<ServiceResponse<Page<EffectiveNetworkSecurityGroupInner>>> beginListEffectiveNetworkSecurityGroupsSinglePageAsync(final String resourceGroupName, final String networkInterfaceName) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupNam... | Observable<ServiceResponse<Page<EffectiveNetworkSecurityGroupInner>>> function(final String resourceGroupName, final String networkInterfaceName) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (networkInterfaceName == null) { throw new IllegalArgumentException(STR); } if (this.client.s... | /**
* Gets all network security groups applied to a network interface.
*
ServiceResponse<PageImpl<EffectiveNetworkSecurityGroupInner>> * @param resourceGroupName The name of the resource group.
ServiceResponse<PageImpl<EffectiveNetworkSecurityGroupInner>> * @param networkInterfaceName The name of the ... | Gets all network security groups applied to a network interface | beginListEffectiveNetworkSecurityGroupsSinglePageAsync | {
"repo_name": "martinsawicki/azure-sdk-for-java",
"path": "azure-mgmt-network/src/main/java/com/microsoft/azure/management/network/implementation/NetworkInterfacesInner.java",
"license": "mit",
"size": 169944
} | [
"com.microsoft.azure.Page",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 1,359,286 |
private boolean setLockGrantorId(LockGrantorId localLockGrantorId,
DLockGrantor localGrantor) {
Assert.assertHoldsLock(this.lockGrantorIdLock,true);
Assert.assertTrue(localLockGrantorId.isLocal(getSerialNumber()));
if (setLockGrantorId(localLockGrantorId)) {
this.g... | boolean function(LockGrantorId localLockGrantorId, DLockGrantor localGrantor) { Assert.assertHoldsLock(this.lockGrantorIdLock,true); Assert.assertTrue(localLockGrantorId.isLocal(getSerialNumber())); if (setLockGrantorId(localLockGrantorId)) { this.grantor = localGrantor; return true; } return false; } private LockGrant... | /**
* Set {@link #lockGrantorId} to the <code>localLockGrantorId</code> if
* current value is null or is an older grantor version. This also atomically
* sets {@link #grantor} to ensure that the two fields are kept in sync.
* Caller must hold {@link #lockGrantorIdLock}.
*
* @param localLockGrantorId... | Set <code>#lockGrantorId</code> to the <code>localLockGrantorId</code> if current value is null or is an older grantor version. This also atomically sets <code>#grantor</code> to ensure that the two fields are kept in sync. Caller must hold <code>#lockGrantorIdLock</code> | setLockGrantorId | {
"repo_name": "ameybarve15/incubator-geode",
"path": "gemfire-core/src/main/java/com/gemstone/gemfire/distributed/internal/locks/DLockService.java",
"license": "apache-2.0",
"size": 122725
} | [
"com.gemstone.gemfire.internal.Assert"
] | import com.gemstone.gemfire.internal.Assert; | import com.gemstone.gemfire.internal.*; | [
"com.gemstone.gemfire"
] | com.gemstone.gemfire; | 2,742,341 |
@Override
public View getView(final int position, View convertView, ViewGroup parent) {
ViewHolder holder;
View v = convertView;
if (v == null || (((ViewHolder)v.getTag(R.layout.video_grid)).listmode != mListMode)) {
LayoutInflater inflater = (LayoutInflater) getContext().ge... | View function(final int position, View convertView, ViewGroup parent) { ViewHolder holder; View v = convertView; if (v == null (((ViewHolder)v.getTag(R.layout.video_grid)).listmode != mListMode)) { LayoutInflater inflater = (LayoutInflater) getContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE); holder = new Vi... | /**
* Display the view of a file browser item.
*/ | Display the view of a file browser item | getView | {
"repo_name": "Bilibili/vlc-ports-android",
"path": "vlc-android/src/org/videolan/vlc/gui/video/VideoListAdapter.java",
"license": "gpl-2.0",
"size": 9605
} | [
"android.content.Context",
"android.databinding.DataBindingUtil",
"android.view.LayoutInflater",
"android.view.View",
"android.view.ViewGroup",
"android.widget.ImageView",
"org.videolan.vlc.MediaGroup",
"org.videolan.vlc.MediaWrapper",
"org.videolan.vlc.gui.AsyncImageLoader"
] | import android.content.Context; import android.databinding.DataBindingUtil; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ImageView; import org.videolan.vlc.MediaGroup; import org.videolan.vlc.MediaWrapper; import org.videolan.vlc.gui.AsyncImageLoader... | import android.content.*; import android.databinding.*; import android.view.*; import android.widget.*; import org.videolan.vlc.*; import org.videolan.vlc.gui.*; | [
"android.content",
"android.databinding",
"android.view",
"android.widget",
"org.videolan.vlc"
] | android.content; android.databinding; android.view; android.widget; org.videolan.vlc; | 603,551 |
private void move(TileIterator iterator) {
Tile collidee = null;
Tile collider = iterator.next();
while (iterator.hasNext()) {
collidee = collider;
collider = iterator.next();
if (collider.getValue() == 0) {
continue;
} else {
if (collidee.isEmpty()) {
handleMove(collider, collidee);
... | void function(TileIterator iterator) { Tile collidee = null; Tile collider = iterator.next(); while (iterator.hasNext()) { collidee = collider; collider = iterator.next(); if (collider.getValue() == 0) { continue; } else { if (collidee.isEmpty()) { handleMove(collider, collidee); } else if (!collidee.isMerged() && !col... | /**
* The method that actually performs the move.
*
* @param iterator
* The TileIterator to iterate over the tiles.
*/ | The method that actually performs the move | move | {
"repo_name": "pvanagtmaal/2048-Android",
"path": "core/src/com/pietv8x/utils/handlers/TileHandler.java",
"license": "apache-2.0",
"size": 5229
} | [
"com.pietv8x.gameobjects.Tile",
"com.pietv8x.gameobjects.TileIterator"
] | import com.pietv8x.gameobjects.Tile; import com.pietv8x.gameobjects.TileIterator; | import com.pietv8x.gameobjects.*; | [
"com.pietv8x.gameobjects"
] | com.pietv8x.gameobjects; | 1,126,957 |
@Override
public boolean onKeyLongPress(int keyCode, KeyEvent event) {
return false;
} | boolean function(int keyCode, KeyEvent event) { return false; } | /**
* When key long press event happens.
*/ | When key long press event happens | onKeyLongPress | {
"repo_name": "jvanz/core",
"path": "android/source/src/java/org/libreoffice/LOKitInputConnectionHandler.java",
"license": "gpl-3.0",
"size": 2098
} | [
"android.view.KeyEvent"
] | import android.view.KeyEvent; | import android.view.*; | [
"android.view"
] | android.view; | 156,484 |
public void registerConjuncts(Expr e, boolean fromHavingClause)
throws AnalysisException {
for (Expr conjunct: e.getConjuncts()) {
registerConjunct(conjunct);
if (!fromHavingClause) conjunct.setIsWhereClauseConjunct();
markConstantConjunct(conjunct, fromHavingClause);
}
} | void function(Expr e, boolean fromHavingClause) throws AnalysisException { for (Expr conjunct: e.getConjuncts()) { registerConjunct(conjunct); if (!fromHavingClause) conjunct.setIsWhereClauseConjunct(); markConstantConjunct(conjunct, fromHavingClause); } } | /**
* Register all conjuncts that make up 'e'. If fromHavingClause is false, this conjunct
* is assumed to originate from a Where clause.
*/ | Register all conjuncts that make up 'e'. If fromHavingClause is false, this conjunct is assumed to originate from a Where clause | registerConjuncts | {
"repo_name": "tempbottle/Impala",
"path": "fe/src/main/java/com/cloudera/impala/analysis/Analyzer.java",
"license": "apache-2.0",
"size": 121133
} | [
"com.cloudera.impala.common.AnalysisException"
] | import com.cloudera.impala.common.AnalysisException; | import com.cloudera.impala.common.*; | [
"com.cloudera.impala"
] | com.cloudera.impala; | 1,527,614 |
public static void syncImmediately(Context context) {
Bundle bundle = new Bundle();
bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true);
bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true);
ContentResolver.requestSync(getSyncAccount(context),
contex... | static void function(Context context) { Bundle bundle = new Bundle(); bundle.putBoolean(ContentResolver.SYNC_EXTRAS_EXPEDITED, true); bundle.putBoolean(ContentResolver.SYNC_EXTRAS_MANUAL, true); ContentResolver.requestSync(getSyncAccount(context), context.getString(R.string.content_authority), bundle); } | /** Helper method to have the sync adapter sync immediately
*/ | Helper method to have the sync adapter sync immediately | syncImmediately | {
"repo_name": "shinelikeamillion/Sunshine",
"path": "app/src/main/java/com/udacity/sunshine/sync/SunshineSyncAdapter.java",
"license": "apache-2.0",
"size": 23881
} | [
"android.content.ContentResolver",
"android.content.Context",
"android.os.Bundle"
] | import android.content.ContentResolver; import android.content.Context; import android.os.Bundle; | import android.content.*; import android.os.*; | [
"android.content",
"android.os"
] | android.content; android.os; | 1,997,337 |
public QuercusClass []getQuercusClassList()
{
return _qClass;
} | public QuercusClass []getQuercusClassList() { return _qClass; } | /**
* Returns the quercus class
*/ | Returns the quercus class | getQuercusClassList | {
"repo_name": "moriyoshi/quercus-gae",
"path": "src/main/java/com/caucho/quercus/env/SaveState.java",
"license": "gpl-2.0",
"size": 4320
} | [
"com.caucho.quercus.env.QuercusClass"
] | import com.caucho.quercus.env.QuercusClass; | import com.caucho.quercus.env.*; | [
"com.caucho.quercus"
] | com.caucho.quercus; | 1,601,664 |
public RouteDefinition from(@AsEndpointUri String uri) {
RouteDefinition route = createRoute();
route.from(uri);
return route(route);
} | RouteDefinition function(@AsEndpointUri String uri) { RouteDefinition route = createRoute(); route.from(uri); return route(route); } | /**
* Creates a new route from the given URI input
*
* @param uri the from uri
* @return the builder
*/ | Creates a new route from the given URI input | from | {
"repo_name": "curso007/camel",
"path": "camel-core/src/main/java/org/apache/camel/model/RoutesDefinition.java",
"license": "apache-2.0",
"size": 9397
} | [
"org.apache.camel.spi.AsEndpointUri"
] | import org.apache.camel.spi.AsEndpointUri; | import org.apache.camel.spi.*; | [
"org.apache.camel"
] | org.apache.camel; | 1,449,017 |
public boolean validateCapDevSupDocs(CapacityDevelopment capacityDevelopment) {
if (capacityDevelopment != null) {
List<CenterDeliverable> centerDeliverables = new ArrayList<>(
capacityDevelopment.getDeliverables().stream().filter(cd -> cd.isActive()).collect(Collectors.toList()));
if (centerD... | boolean function(CapacityDevelopment capacityDevelopment) { if (capacityDevelopment != null) { List<CenterDeliverable> centerDeliverables = new ArrayList<>( capacityDevelopment.getDeliverables().stream().filter(cd -> cd.isActive()).collect(Collectors.toList())); if (centerDeliverables != null && !centerDeliverables.isE... | /**
* ************************ CENTER METHOD ********************* Validate the
* missing fields in the Cap-Dev Supporting Documents section
* ***************************************************************
*
* @return false if has missing fields.
*/ | CENTER METHOD ********************* Validate the missing fields in the Cap-Dev Supporting Documents section | validateCapDevSupDocs | {
"repo_name": "CCAFS/MARLO",
"path": "marlo-web/src/main/java/org/cgiar/ccafs/marlo/action/BaseAction.java",
"license": "gpl-3.0",
"size": 268256
} | [
"java.util.ArrayList",
"java.util.List",
"java.util.stream.Collectors",
"org.cgiar.ccafs.marlo.data.model.CapacityDevelopment",
"org.cgiar.ccafs.marlo.data.model.CenterDeliverable",
"org.cgiar.ccafs.marlo.data.model.CenterSectionStatus"
] | import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; import org.cgiar.ccafs.marlo.data.model.CapacityDevelopment; import org.cgiar.ccafs.marlo.data.model.CenterDeliverable; import org.cgiar.ccafs.marlo.data.model.CenterSectionStatus; | import java.util.*; import java.util.stream.*; import org.cgiar.ccafs.marlo.data.model.*; | [
"java.util",
"org.cgiar.ccafs"
] | java.util; org.cgiar.ccafs; | 2,570,357 |
HashMap<String, Object> processVariables = new HashMap<String, Object>();
processVariables.put("stringVar", "Azerty");
processVariables.put("intVar", 67890);
processVariables.put("booleanVar", false);
processVariables.put("byteVar", "test".getBytes());
ProcessInstance processIns... | HashMap<String, Object> processVariables = new HashMap<String, Object>(); processVariables.put(STR, STR); processVariables.put(STR, 67890); processVariables.put(STR, false); processVariables.put(STR, "test".getBytes()); ProcessInstance processInstance = runtimeService.startProcessInstanceByKey(STR, processVariables); T... | /**
* Test querying historic detail. POST query/historic-detail
*/ | Test querying historic detail. POST query/historic-detail | testQueryDetail | {
"repo_name": "robsoncardosoti/flowable-engine",
"path": "modules/flowable-rest/src/test/java/org/flowable/rest/service/api/history/HistoricDetailQueryResourceTest.java",
"license": "apache-2.0",
"size": 7155
} | [
"com.fasterxml.jackson.databind.JsonNode",
"com.fasterxml.jackson.databind.node.ObjectNode",
"java.util.HashMap",
"java.util.Iterator",
"org.apache.commons.io.IOUtils",
"org.apache.http.HttpStatus",
"org.apache.http.client.methods.CloseableHttpResponse",
"org.apache.http.client.methods.HttpGet",
"or... | import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.node.ObjectNode; import java.util.HashMap; import java.util.Iterator; import org.apache.commons.io.IOUtils; import org.apache.http.HttpStatus; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.... | import com.fasterxml.jackson.databind.*; import com.fasterxml.jackson.databind.node.*; import java.util.*; import org.apache.commons.io.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.apache.http.entity.*; import org.flowable.engine.runtime.*; import org.flowable.engine.task.*; import o... | [
"com.fasterxml.jackson",
"java.util",
"org.apache.commons",
"org.apache.http",
"org.flowable.engine",
"org.flowable.rest"
] | com.fasterxml.jackson; java.util; org.apache.commons; org.apache.http; org.flowable.engine; org.flowable.rest; | 1,902,529 |
@POST
@Path("/{id}/configs")
@Consumes(MediaType.APPLICATION_JSON)
@ApiOperation(
value = "Add new configuration files to a cluster",
notes = "Add the supplied configuration files to the cluster with the supplied id.",
response = String.class,
responseCont... | @Path(STR) @Consumes(MediaType.APPLICATION_JSON) @ApiOperation( value = STR, notes = STR, response = String.class, responseContainer = "List" ) @ApiResponses(value = { @ApiResponse( code = HttpURLConnection.HTTP_NOT_FOUND, message = STR ), @ApiResponse( code = HttpURLConnection.HTTP_PRECON_FAILED, message = STR ), @Api... | /**
* Add new configuration files to a given cluster.
*
* @param id The id of the cluster to add the configuration file to. Not
* null/empty/blank.
* @param configs The configuration files to add. Not null/empty/blank.
* @return The active configurations for this cluste... | Add new configuration files to a given cluster | addConfigsForCluster | {
"repo_name": "rspieldenner/genie",
"path": "genie-server/src/main/java/com/netflix/genie/server/resources/ClusterConfigResource.java",
"license": "apache-2.0",
"size": 37763
} | [
"com.netflix.genie.common.exceptions.GenieException",
"com.wordnik.swagger.annotations.ApiOperation",
"com.wordnik.swagger.annotations.ApiParam",
"com.wordnik.swagger.annotations.ApiResponse",
"com.wordnik.swagger.annotations.ApiResponses",
"java.net.HttpURLConnection",
"java.util.List",
"java.util.Se... | import com.netflix.genie.common.exceptions.GenieException; import com.wordnik.swagger.annotations.ApiOperation; import com.wordnik.swagger.annotations.ApiParam; import com.wordnik.swagger.annotations.ApiResponse; import com.wordnik.swagger.annotations.ApiResponses; import java.net.HttpURLConnection; import java.util.Li... | import com.netflix.genie.common.exceptions.*; import com.wordnik.swagger.annotations.*; import java.net.*; import java.util.*; import javax.ws.rs.*; import javax.ws.rs.core.*; | [
"com.netflix.genie",
"com.wordnik.swagger",
"java.net",
"java.util",
"javax.ws"
] | com.netflix.genie; com.wordnik.swagger; java.net; java.util; javax.ws; | 803,857 |
public void setTitleComponent(Component titleCmp) {
checkIfInitialized();
if (titleComponent != null) {
titleComponent.remove();
}
titleComponent = titleCmp;
addComponent(BorderLayout.CENTER, titleComponent);
}
| void function(Component titleCmp) { checkIfInitialized(); if (titleComponent != null) { titleComponent.remove(); } titleComponent = titleCmp; addComponent(BorderLayout.CENTER, titleComponent); } | /**
* Sets the Toolbar title component. This method allow placing any component
* in the Toolbar center instead of the regular Label. Can be used to place
* a TextField to perform search operations
*
* @param titleCmp Component to place in the Toolbar center.
*/ | Sets the Toolbar title component. This method allow placing any component in the Toolbar center instead of the regular Label. Can be used to place a TextField to perform search operations | setTitleComponent | {
"repo_name": "diamonddevgroup/CodenameOne",
"path": "CodenameOne/src/com/codename1/ui/Toolbar.java",
"license": "gpl-2.0",
"size": 113924
} | [
"com.codename1.ui.layouts.BorderLayout"
] | import com.codename1.ui.layouts.BorderLayout; | import com.codename1.ui.layouts.*; | [
"com.codename1.ui"
] | com.codename1.ui; | 2,489,353 |
float getAttributeAsFloat(String paramName) throws ConfigurationException; | float getAttributeAsFloat(String paramName) throws ConfigurationException; | /**
* Return the <code>float</code> value of the specified parameter
* contained in this node.
*/ | Return the <code>float</code> value of the specified parameter contained in this node | getAttributeAsFloat | {
"repo_name": "baboune/compass",
"path": "src/main/src/org/compass/core/util/config/ConfigurationHelper.java",
"license": "apache-2.0",
"size": 6271
} | [
"org.compass.core.config.ConfigurationException"
] | import org.compass.core.config.ConfigurationException; | import org.compass.core.config.*; | [
"org.compass.core"
] | org.compass.core; | 1,784,495 |
@Deprecated
public List<String> getFieldNames() {
return storedFieldNames;
} | List<String> function() { return storedFieldNames; } | /**
* Gets the stored fields to load and return.
*
* @deprecated Use {@link InnerHitBuilder#getStoredFieldNames()} instead.
*/ | Gets the stored fields to load and return | getFieldNames | {
"repo_name": "sreeramjayan/elasticsearch",
"path": "core/src/main/java/org/elasticsearch/index/query/InnerHitBuilder.java",
"license": "apache-2.0",
"size": 29050
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,881,628 |
public void writeOut(OutputStream os) throws IOException {
Entity e = root;
while (e.next != null) {
e = e.next;
os.write(e.data);
}
os.write(buffer, 0, pos);
} | void function(OutputStream os) throws IOException { Entity e = root; while (e.next != null) { e = e.next; os.write(e.data); } os.write(buffer, 0, pos); } | /**
* method to writeout content of the char buffer in a writer, this is faster than get char array
* with (toCharArray()) and write this in writer.
*
* @param writer writer to write inside
* @throws IOException
*/ | method to writeout content of the char buffer in a writer, this is faster than get char array with (toCharArray()) and write this in writer | writeOut | {
"repo_name": "lucee/Lucee",
"path": "core/src/main/java/lucee/commons/lang/ByteBuffer.java",
"license": "lgpl-2.1",
"size": 4537
} | [
"java.io.IOException",
"java.io.OutputStream"
] | import java.io.IOException; import java.io.OutputStream; | import java.io.*; | [
"java.io"
] | java.io; | 1,395,185 |
public LinkedHashSet<Class<?>> getRegisteredKryoTypes() {
if (isForceKryoEnabled()) {
// if we force kryo, we must also return all the types that
// were previously only registered as POJO
LinkedHashSet<Class<?>> result = new LinkedHashSet<>();
result.addAll(registeredKryoTypes);
for(Class<?> t : re... | LinkedHashSet<Class<?>> function() { if (isForceKryoEnabled()) { LinkedHashSet<Class<?>> result = new LinkedHashSet<>(); result.addAll(registeredKryoTypes); for(Class<?> t : registeredPojoTypes) { if (!result.contains(t)) { result.add(t); } } return result; } else { return registeredKryoTypes; } } | /**
* Returns the registered Kryo types.
*/ | Returns the registered Kryo types | getRegisteredKryoTypes | {
"repo_name": "sunjincheng121/flink",
"path": "flink-core/src/main/java/org/apache/flink/api/common/ExecutionConfig.java",
"license": "apache-2.0",
"size": 43912
} | [
"java.util.LinkedHashSet"
] | import java.util.LinkedHashSet; | import java.util.*; | [
"java.util"
] | java.util; | 1,684,837 |
T visitIntType( @NotNull QuestionnaireParser.IntTypeContext ctx ); | T visitIntType( @NotNull QuestionnaireParser.IntTypeContext ctx ); | /**
* Visit a parse tree produced by {@link QuestionnaireParser#intType}.
*
* @param ctx the parse tree
* @return the visitor result
*/ | Visit a parse tree produced by <code>QuestionnaireParser#intType</code> | visitIntType | {
"repo_name": "software-engineering-amsterdam/poly-ql",
"path": "SantiagoCarrillo/q-language/src/edu/uva/softwarecons/grammar/QuestionnaireVisitor.java",
"license": "apache-2.0",
"size": 5749
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 322,931 |
public void setMsuTxValue(String msuTxValue) throws JNCException {
setMsuTxValue(new YangUInt32(msuTxValue));
} | void function(String msuTxValue) throws JNCException { setMsuTxValue(new YangUInt32(msuTxValue)); } | /**
* Sets the value for child leaf "msu-tx",
* using a String value.
* @param msuTxValue used during instantiation.
*/ | Sets the value for child leaf "msu-tx", using a String value | setMsuTxValue | {
"repo_name": "jnpr-shinma/yangfile",
"path": "hitel/src/hctaEpc/mmeSgsn/interface_/ss7/RemoteDest.java",
"license": "apache-2.0",
"size": 57002
} | [
"com.tailf.jnc.YangUInt32"
] | import com.tailf.jnc.YangUInt32; | import com.tailf.jnc.*; | [
"com.tailf.jnc"
] | com.tailf.jnc; | 2,492,243 |
public Point getRectangleCentroid (Rectangle absRoi);
| Point function (Rectangle absRoi); | /**
* Report the absolute centroid of the section pixels found in the
* provided absolute region of interest.
*
* @param absRoi the absolute rectangle that defines the region of interest
* @return the absolute centroid
*/ | Report the absolute centroid of the section pixels found in the provided absolute region of interest | getRectangleCentroid | {
"repo_name": "jlpoolen/libreveris",
"path": "src/main/omr/lag/Section.java",
"license": "lgpl-3.0",
"size": 17809
} | [
"java.awt.Point",
"java.awt.Rectangle"
] | import java.awt.Point; import java.awt.Rectangle; | import java.awt.*; | [
"java.awt"
] | java.awt; | 1,367,910 |
public void create(Composite c); | void function(Composite c); | /**
* This method is invoked when the config section is going to be displayed
* in a SWT user interface.
*
* @param c The parent composite object which will contain the SWT object.
*/ | This method is invoked when the config section is going to be displayed in a SWT user interface | create | {
"repo_name": "BiglySoftware/BiglyBT",
"path": "uis/src/com/biglybt/ui/swt/pif/UISWTParameterContext.java",
"license": "gpl-2.0",
"size": 1654
} | [
"org.eclipse.swt.widgets.Composite"
] | import org.eclipse.swt.widgets.Composite; | import org.eclipse.swt.widgets.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 1,722,059 |
protected void sortForDisplay(List groups) {
for (Iterator i = groups.iterator(); i.hasNext();) {
CorrectionChangeGroup group = (CorrectionChangeGroup) i.next();
Collections.sort(group.getCorrectionCriteria());
Collections.sort(group.getCorrectionChange());
}... | void function(List groups) { for (Iterator i = groups.iterator(); i.hasNext();) { CorrectionChangeGroup group = (CorrectionChangeGroup) i.next(); Collections.sort(group.getCorrectionCriteria()); Collections.sort(group.getCorrectionChange()); } Collections.sort(groups); } | /**
* Sort CorrectionGroups and their search criteria and replacement specifications so they display properly on the page.
*/ | Sort CorrectionGroups and their search criteria and replacement specifications so they display properly on the page | sortForDisplay | {
"repo_name": "ua-eas/ua-kfs-5.3",
"path": "work/src/org/kuali/kfs/gl/document/web/struts/CorrectionAction.java",
"license": "agpl-3.0",
"size": 102157
} | [
"java.util.Collections",
"java.util.Iterator",
"java.util.List",
"org.kuali.kfs.gl.businessobject.CorrectionChangeGroup"
] | import java.util.Collections; import java.util.Iterator; import java.util.List; import org.kuali.kfs.gl.businessobject.CorrectionChangeGroup; | import java.util.*; import org.kuali.kfs.gl.businessobject.*; | [
"java.util",
"org.kuali.kfs"
] | java.util; org.kuali.kfs; | 1,754,835 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.