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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
ServiceFuture<Map<String, Double>> getDoubleValidAsync(final ServiceCallback<Map<String, Double>> serviceCallback); | ServiceFuture<Map<String, Double>> getDoubleValidAsync(final ServiceCallback<Map<String, Double>> serviceCallback); | /**
* Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20}.
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @return the {@link ServiceFuture} object
*/ | Get float dictionary value {"0": 0, "1": -0.01, "2": 1.2e20} | getDoubleValidAsync | {
"repo_name": "anudeepsharma/autorest",
"path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/Dictionarys.java",
"license": "mit",
"size": 79030
} | [
"com.microsoft.rest.ServiceCallback",
"com.microsoft.rest.ServiceFuture",
"java.util.Map"
] | import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import java.util.Map; | import com.microsoft.rest.*; import java.util.*; | [
"com.microsoft.rest",
"java.util"
] | com.microsoft.rest; java.util; | 788,764 |
public void initGui()
{
Keyboard.enableRepeatEvents(true);
this.sentHistoryCursor = this.mc.ingameGUI.getChatGUI().getSentMessages().size();
this.inputField = new GuiTextField(this.fontRendererObj, 4, this.height - 12, this.width - 4, 12);
this.inputField.setMaxStringLength(100);... | void function() { Keyboard.enableRepeatEvents(true); this.sentHistoryCursor = this.mc.ingameGUI.getChatGUI().getSentMessages().size(); this.inputField = new GuiTextField(this.fontRendererObj, 4, this.height - 12, this.width - 4, 12); this.inputField.setMaxStringLength(100); this.inputField.setEnableBackgroundDrawing(fa... | /**
* Adds the buttons (and other controls) to the screen in question.
*/ | Adds the buttons (and other controls) to the screen in question | initGui | {
"repo_name": "jackey8616/Age-of-Kindom",
"path": "src/main/java/org/mocraft/Client/Gui/vanilla/GuiAokChat.java",
"license": "gpl-3.0",
"size": 19187
} | [
"net.minecraft.client.gui.GuiTextField",
"org.lwjgl.input.Keyboard"
] | import net.minecraft.client.gui.GuiTextField; import org.lwjgl.input.Keyboard; | import net.minecraft.client.gui.*; import org.lwjgl.input.*; | [
"net.minecraft.client",
"org.lwjgl.input"
] | net.minecraft.client; org.lwjgl.input; | 2,806,533 |
public static String formatDate(final Date date)
{
final SimpleDateFormat sdf = new SimpleDateFormat(SystemGlobals.getValue(ConfigKeys.RSS_DATE_TIME_FORMAT), Locale.ENGLISH);
return sdf.format(date);
}
| static String function(final Date date) { final SimpleDateFormat sdf = new SimpleDateFormat(SystemGlobals.getValue(ConfigKeys.RSS_DATE_TIME_FORMAT), Locale.ENGLISH); return sdf.format(date); } | /**
* Formats a given date to the expected RSS format
* @param date The date to format
* @return The formatted date
*/ | Formats a given date to the expected RSS format | formatDate | {
"repo_name": "linda1890/jforum2",
"path": "src/main/java/net/jforum/util/rss/RSSUtils.java",
"license": "bsd-3-clause",
"size": 2962
} | [
"java.text.SimpleDateFormat",
"java.util.Date",
"java.util.Locale",
"net.jforum.util.preferences.ConfigKeys",
"net.jforum.util.preferences.SystemGlobals"
] | import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import net.jforum.util.preferences.ConfigKeys; import net.jforum.util.preferences.SystemGlobals; | import java.text.*; import java.util.*; import net.jforum.util.preferences.*; | [
"java.text",
"java.util",
"net.jforum.util"
] | java.text; java.util; net.jforum.util; | 247,360 |
public static SymmetricKey generateSymmetricKey(String algorithm, int bits) throws InvalidKeyTypeException {
// Do nothing, we fall back to software-only key generation
try {
// Create the symmetric key
return createSymmetricKey(algorithm, bits);
} catch (NoSuchAlgori... | static SymmetricKey function(String algorithm, int bits) throws InvalidKeyTypeException { try { return createSymmetricKey(algorithm, bits); } catch (NoSuchAlgorithmException e) { throw new InvalidKeyTypeException(STR + algorithm + STR + bits + ".", e); } } /** * Creates a new symmetric key for the given algorithm, an w... | /**
* Creates a new symmetric key, given the algorithm and the size in bits.
*
* @param algorithm Algorithm to use (e.g., AES)
* @param bits Size of the key (in bits)
* @return An instance of SymmetricKye subclass
* @throws InvalidKeyTypeException In case of invalid key type
*/ | Creates a new symmetric key, given the algorithm and the size in bits | generateSymmetricKey | {
"repo_name": "icecp/icecp",
"path": "icecp-node/src/main/java/com/intel/icecp/node/security/crypto/key/KeyProvider.java",
"license": "apache-2.0",
"size": 5321
} | [
"com.intel.icecp.core.security.crypto.exception.key.InvalidKeyTypeException",
"com.intel.icecp.core.security.crypto.key.symmetric.SymmetricKey",
"com.intel.icecp.node.security.SecurityConstants",
"java.security.NoSuchAlgorithmException"
] | import com.intel.icecp.core.security.crypto.exception.key.InvalidKeyTypeException; import com.intel.icecp.core.security.crypto.key.symmetric.SymmetricKey; import com.intel.icecp.node.security.SecurityConstants; import java.security.NoSuchAlgorithmException; | import com.intel.icecp.core.security.crypto.exception.key.*; import com.intel.icecp.core.security.crypto.key.symmetric.*; import com.intel.icecp.node.security.*; import java.security.*; | [
"com.intel.icecp",
"java.security"
] | com.intel.icecp; java.security; | 2,299,597 |
public static AuditEntryBean apiDefinitionDeleted(ApiVersionBean bean, ISecurityContext securityContext) {
AuditEntryBean entry = newEntry(bean.getApi().getOrganization().getId(), AuditEntityType.Api, securityContext);
entry.setEntityId(bean.getApi().getId());
entry.setEntityVersion(bean.... | static AuditEntryBean function(ApiVersionBean bean, ISecurityContext securityContext) { AuditEntryBean entry = newEntry(bean.getApi().getOrganization().getId(), AuditEntityType.Api, securityContext); entry.setEntityId(bean.getApi().getId()); entry.setEntityVersion(bean.getVersion()); entry.setWhat(AuditEntryType.Delete... | /**
* Creates an audit entry when a API definition is deleted.
* @param bean the bean
* @param securityContext the security context
* @return the audit entry
*/ | Creates an audit entry when a API definition is deleted | apiDefinitionDeleted | {
"repo_name": "jasonchaffee/apiman",
"path": "manager/api/rest-impl/src/main/java/io/apiman/manager/api/rest/impl/audit/AuditUtils.java",
"license": "apache-2.0",
"size": 33568
} | [
"io.apiman.manager.api.beans.apis.ApiVersionBean",
"io.apiman.manager.api.beans.audit.AuditEntityType",
"io.apiman.manager.api.beans.audit.AuditEntryBean",
"io.apiman.manager.api.beans.audit.AuditEntryType",
"io.apiman.manager.api.security.ISecurityContext"
] | import io.apiman.manager.api.beans.apis.ApiVersionBean; import io.apiman.manager.api.beans.audit.AuditEntityType; import io.apiman.manager.api.beans.audit.AuditEntryBean; import io.apiman.manager.api.beans.audit.AuditEntryType; import io.apiman.manager.api.security.ISecurityContext; | import io.apiman.manager.api.beans.apis.*; import io.apiman.manager.api.beans.audit.*; import io.apiman.manager.api.security.*; | [
"io.apiman.manager"
] | io.apiman.manager; | 124,864 |
String getCheckConstraintSQL(Session session, String asColumnName) {
Expression constraint = getCheckConstraint(session, asColumnName);
return constraint == null ? "" : constraint.getSQL();
} | String getCheckConstraintSQL(Session session, String asColumnName) { Expression constraint = getCheckConstraint(session, asColumnName); return constraint == null ? "" : constraint.getSQL(); } | /**
* Get the check constraint SQL snippet.
*
* @param session the session
* @param asColumnName the column name to use
* @return the SQL snippet
*/ | Get the check constraint SQL snippet | getCheckConstraintSQL | {
"repo_name": "miloszpiglas/h2mod",
"path": "src/main/org/h2/table/Column.java",
"license": "mpl-2.0",
"size": 22753
} | [
"org.h2.engine.Session",
"org.h2.expression.Expression"
] | import org.h2.engine.Session; import org.h2.expression.Expression; | import org.h2.engine.*; import org.h2.expression.*; | [
"org.h2.engine",
"org.h2.expression"
] | org.h2.engine; org.h2.expression; | 2,406,913 |
public List<String> getNodeNames();
| List<String> function(); | /**
* Return list of active server node names in the cluster.
*
* @return list of active node names
*/ | Return list of active server node names in the cluster | getNodeNames | {
"repo_name": "wgpshashank/aerospike-client-java",
"path": "client/src/com/aerospike/client/IAerospikeClient.java",
"license": "apache-2.0",
"size": 41552
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,984,721 |
DataSource getDataSource(); | DataSource getDataSource(); | /**
* Returns the configured datasource. Null as long as start() is not executed.
*/ | Returns the configured datasource. Null as long as start() is not executed | getDataSource | {
"repo_name": "xinghuangxu/xinghuangxu.sonarqube",
"path": "sonar-core/src/main/java/org/sonar/core/persistence/Database.java",
"license": "lgpl-3.0",
"size": 1405
} | [
"javax.sql.DataSource"
] | import javax.sql.DataSource; | import javax.sql.*; | [
"javax.sql"
] | javax.sql; | 238,978 |
public DcmElement putOWsq(int tag) {
return put(FragmentElement.createOW(tag));
} | DcmElement function(int tag) { return put(FragmentElement.createOW(tag)); } | /**
* Description of the Method
*
* @param tag
* Description of the Parameter
* @return Description of the Return Value
*/ | Description of the Method | putOWsq | {
"repo_name": "medicayun/medicayundicom",
"path": "dcm4che14/branches/DCM4CHE_2_14_22_BRANCHA/src/java/org/dcm4cheri/data/DcmObjectImpl.java",
"license": "apache-2.0",
"size": 86392
} | [
"org.dcm4che.data.DcmElement"
] | import org.dcm4che.data.DcmElement; | import org.dcm4che.data.*; | [
"org.dcm4che.data"
] | org.dcm4che.data; | 2,695,324 |
public static Map<Rectangle, Image> getOpenStreetMapIconMap() {
return Collections.unmodifiableMap(openStreetMapIconMap);
}
private Images() {
throw new IllegalAccessError();
}
| static Map<Rectangle, Image> function() { return Collections.unmodifiableMap(openStreetMapIconMap); } private Images() { throw new IllegalAccessError(); } | /**
* <i>OpenStreetMap</i> icon in various formats, sorted by size (area)
* <b>descending</b>.
*/ | OpenStreetMap icon in various formats, sorted by size (area) descending | getOpenStreetMapIconMap | {
"repo_name": "Albertus82/EarthquakeBulletin",
"path": "src/main/java/it/albertus/eqbulletin/gui/Images.java",
"license": "gpl-3.0",
"size": 2583
} | [
"java.util.Collections",
"java.util.Map",
"org.eclipse.swt.graphics.Image",
"org.eclipse.swt.graphics.Rectangle"
] | import java.util.Collections; import java.util.Map; import org.eclipse.swt.graphics.Image; import org.eclipse.swt.graphics.Rectangle; | import java.util.*; import org.eclipse.swt.graphics.*; | [
"java.util",
"org.eclipse.swt"
] | java.util; org.eclipse.swt; | 1,077,132 |
public static Point getPhysicalDisplaySize(Context context) {
WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);
return getPhysicalDisplaySize(context, windowManager.getDefaultDisplay());
} | static Point function(Context context) { WindowManager windowManager = (WindowManager) context.getSystemService(Context.WINDOW_SERVICE); return getPhysicalDisplaySize(context, windowManager.getDefaultDisplay()); } | /**
* Gets the physical size of the default display, in pixels.
*
* @param context Any context.
* @return The physical display size, in pixels.
*/ | Gets the physical size of the default display, in pixels | getPhysicalDisplaySize | {
"repo_name": "muxinc/stats-sdk-exoplayer",
"path": "library/src/main/java/com/google/android/exoplayer2/util/Util.java",
"license": "apache-2.0",
"size": 41520
} | [
"android.content.Context",
"android.graphics.Point",
"android.view.WindowManager"
] | import android.content.Context; import android.graphics.Point; import android.view.WindowManager; | import android.content.*; import android.graphics.*; import android.view.*; | [
"android.content",
"android.graphics",
"android.view"
] | android.content; android.graphics; android.view; | 1,049,380 |
HddsProtos.LifeCycleState updateContainerState(long containerID,
HddsProtos.LifeCycleEvent event) throws IOException; | HddsProtos.LifeCycleState updateContainerState(long containerID, HddsProtos.LifeCycleEvent event) throws IOException; | /**
* Update container state.
* @param containerID - Container ID
* @param event - container life cycle event
* @return - new container state
* @throws IOException
*/ | Update container state | updateContainerState | {
"repo_name": "szegedim/hadoop",
"path": "hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/Mapping.java",
"license": "apache-2.0",
"size": 4147
} | [
"java.io.IOException",
"org.apache.hadoop.hdds.protocol.proto.HddsProtos"
] | import java.io.IOException; import org.apache.hadoop.hdds.protocol.proto.HddsProtos; | import java.io.*; import org.apache.hadoop.hdds.protocol.proto.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 590,118 |
protected boolean validateBlockChecksum(HFileBlock block,
byte[] data, int hdrSize) throws IOException {
return ChecksumUtil.validateBlockChecksum(path, block,
data, hdrSize);
} | boolean function(HFileBlock block, byte[] data, int hdrSize) throws IOException { return ChecksumUtil.validateBlockChecksum(path, block, data, hdrSize); } | /**
* Generates the checksum for the header as well as the data and
* then validates that it matches the value stored in the header.
* If there is a checksum mismatch, then return false. Otherwise
* return true.
*/ | Generates the checksum for the header as well as the data and then validates that it matches the value stored in the header. If there is a checksum mismatch, then return false. Otherwise return true | validateBlockChecksum | {
"repo_name": "francisliu/hbase_namespace",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlock.java",
"license": "apache-2.0",
"size": 69958
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,339,576 |
public int showCancelableIntent(
PendingIntent intent, IntentCallback callback, Integer errorId) {
Log.d(TAG, "Can't show intent as context is not an Activity: " + intent);
return START_INTENT_FAILURE;
} | int function( PendingIntent intent, IntentCallback callback, Integer errorId) { Log.d(TAG, STR + intent); return START_INTENT_FAILURE; } | /**
* Shows an intent that could be canceled and returns the results to the callback object.
* @param intent The PendingIntent that needs to be shown.
* @param callback The object that will receive the results for the intent.
* @param errorId The ID of error string to be show if activity is pa... | Shows an intent that could be canceled and returns the results to the callback object | showCancelableIntent | {
"repo_name": "fujunwei/chromium-crosswalk",
"path": "ui/android/java/src/org/chromium/ui/base/WindowAndroid.java",
"license": "bsd-3-clause",
"size": 14332
} | [
"android.app.PendingIntent",
"android.util.Log"
] | import android.app.PendingIntent; import android.util.Log; | import android.app.*; import android.util.*; | [
"android.app",
"android.util"
] | android.app; android.util; | 2,534,931 |
public void close()
{
log.debug("Closing");
started.set(false);
try
{
state.close();
}
catch ( IOException e )
{
log.error("", e);
}
} | void function() { log.debug(STR); started.set(false); try { state.close(); } catch ( IOException e ) { log.error("", e); } } | /**
* Close the client
*/ | Close the client | close | {
"repo_name": "hekonsek/fabric8",
"path": "sandbox/zookeeper-client/src/main/java/org/apache/curator/CuratorZookeeperClient.java",
"license": "apache-2.0",
"size": 11817
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,802,241 |
public static String getDecryptedFileName( ILoaderAieon loader, String name )
throws Exception
{
name = name.toLowerCase();
IEncryption encryption = new AieonFEncryption( loader );
String encr = name.substring( 1 );
return encryption.decryptData( encr );
}
| static String function( ILoaderAieon loader, String name ) throws Exception { name = name.toLowerCase(); IEncryption encryption = new AieonFEncryption( loader ); String encr = name.substring( 1 ); return encryption.decryptData( encr ); } | /**
* Returns the decrypted file name belonging to a concept
*
* @param key SecretKey
* @param name String
* @return String
* @throws Exception
*/ | Returns the decrypted file name belonging to a concept | getDecryptedFileName | {
"repo_name": "condast/AieonF",
"path": "Workspace/org.aieonf.collections/src/org/aieonf/collections/persistence/EncryptedLocationManager.java",
"license": "apache-2.0",
"size": 5343
} | [
"org.aieonf.commons.encryption.IEncryption",
"org.aieonf.concept.loader.ILoaderAieon",
"org.aieonf.concept.security.AieonFEncryption"
] | import org.aieonf.commons.encryption.IEncryption; import org.aieonf.concept.loader.ILoaderAieon; import org.aieonf.concept.security.AieonFEncryption; | import org.aieonf.commons.encryption.*; import org.aieonf.concept.loader.*; import org.aieonf.concept.security.*; | [
"org.aieonf.commons",
"org.aieonf.concept"
] | org.aieonf.commons; org.aieonf.concept; | 664,163 |
public void setHostList(List<HostRegistry> hostList) {
this.hostList = hostList;
} | void function(List<HostRegistry> hostList) { this.hostList = hostList; } | /**
* Sets the datacenter's hosts list.
*
* @param hostList the datacenter's host list.
*/ | Sets the datacenter's hosts list | setHostList | {
"repo_name": "ajinkya007/CloudReportsModified",
"path": "src/main/java/cloudreports/models/DatacenterRegistry.java",
"license": "gpl-3.0",
"size": 13703
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,066,964 |
public void setWrappedOutput(CMDOutput wrappedOutput) {
this.wrappedOutput = wrappedOutput;
}
| void function(CMDOutput wrappedOutput) { this.wrappedOutput = wrappedOutput; } | /**
* <p>Imposta wrappedOutput.</p>
*
* @param wrappedOutput il wrappedOutput da impostare.
*/ | Imposta wrappedOutput | setWrappedOutput | {
"repo_name": "fugeritaetas/morozko-lib",
"path": "java14-morozko/org.morozko.java.mod.cmd/src/org/morozko/java/mod/cmd/helpers/CMDOutputWrapper.java",
"license": "apache-2.0",
"size": 3469
} | [
"org.morozko.java.mod.cmd.CMDOutput"
] | import org.morozko.java.mod.cmd.CMDOutput; | import org.morozko.java.mod.cmd.*; | [
"org.morozko.java"
] | org.morozko.java; | 2,257,120 |
public Iterator<IdAndChecksum> streamOverIdsAndChecksumsForChildren(Long salt, Set<Long> parentIds, Set<SubType> subTypes); | Iterator<IdAndChecksum> function(Long salt, Set<Long> parentIds, Set<SubType> subTypes); | /**
* Provide a stream of IdAndChecksum data for the given parentIds and subTypes
* ordered by the IDs ascending. The checksum must include all version of the
* objects that match the condition. See the following pusdo-sql:
* </p>
* <code>SELECT ID, SUM(CRC32(CONCAT(salt','-',ETAG,'-',VERSION,'-',BENEFACTOR_I... | Provide a stream of IdAndChecksum data for the given parentIds and subTypes ordered by the IDs ascending. The checksum must include all version of the objects that match the condition. See the following pusdo-sql: <code>SELECT ID, SUM(CRC32(CONCAT(salt','-',ETAG,'-',VERSION,'-',BENEFACTOR_ID))) AS CHECK_SUM ... GROUP B... | streamOverIdsAndChecksumsForChildren | {
"repo_name": "Sage-Bionetworks/Synapse-Repository-Services",
"path": "services/repository-managers/src/main/java/org/sagebionetworks/repo/manager/table/metadata/ObjectDataProvider.java",
"license": "apache-2.0",
"size": 2387
} | [
"java.util.Iterator",
"java.util.Set",
"org.sagebionetworks.repo.model.IdAndChecksum",
"org.sagebionetworks.repo.model.table.SubType"
] | import java.util.Iterator; import java.util.Set; import org.sagebionetworks.repo.model.IdAndChecksum; import org.sagebionetworks.repo.model.table.SubType; | import java.util.*; import org.sagebionetworks.repo.model.*; import org.sagebionetworks.repo.model.table.*; | [
"java.util",
"org.sagebionetworks.repo"
] | java.util; org.sagebionetworks.repo; | 1,509,763 |
public static FeedImage getFeedImage(final long imageId) {
Log.d(TAG, "getFeedImage() called with: " + "imageId = [" + imageId + "]");
PodDBAdapter adapter = PodDBAdapter.getInstance();
adapter.open();
FeedImage result = getFeedImage(adapter, imageId);
adapter.close();
... | static FeedImage function(final long imageId) { Log.d(TAG, STR + STR + imageId + "]"); PodDBAdapter adapter = PodDBAdapter.getInstance(); adapter.open(); FeedImage result = getFeedImage(adapter, imageId); adapter.close(); return result; } | /**
* Searches the DB for a FeedImage of the given id.
*
* @param imageId The id of the object
* @return The found object
*/ | Searches the DB for a FeedImage of the given id | getFeedImage | {
"repo_name": "Woogis/SisatongPodcast",
"path": "core/src/main/java/net/sisatong/podcast/core/storage/DBReader.java",
"license": "mit",
"size": 38954
} | [
"android.util.Log",
"net.sisatong.podcast.core.feed.FeedImage"
] | import android.util.Log; import net.sisatong.podcast.core.feed.FeedImage; | import android.util.*; import net.sisatong.podcast.core.feed.*; | [
"android.util",
"net.sisatong.podcast"
] | android.util; net.sisatong.podcast; | 932,108 |
private final VPanelFieldGroup createAndAddFieldGroup(final FieldGroupVO fieldGroup)
{
final FieldGroupType fieldGroupType = fieldGroup.getFieldGroupType();
//
// Case: horizontal tab
final VPanelFieldGroup groupPanel;
if (fieldGroupType == FieldGroupType.Tab)
{
groupPanel = fieldGroupFactory.newHor... | final VPanelFieldGroup function(final FieldGroupVO fieldGroup) { final FieldGroupType fieldGroupType = fieldGroup.getFieldGroupType(); final VPanelFieldGroup groupPanel; if (fieldGroupType == FieldGroupType.Tab) { groupPanel = fieldGroupFactory.newHorizontalFieldGroupPanel(fieldGroup.getFieldGroupName()); final CScroll... | /**
* Create and add a new field group panel
*
* @param fieldGroup
* @return field group panel; never returns null
*/ | Create and add a new field group panel | createAndAddFieldGroup | {
"repo_name": "klst-com/metasfresh",
"path": "de.metas.adempiere.adempiere/client/src/main/java/org/compiere/grid/VPanel.java",
"license": "gpl-2.0",
"size": 13271
} | [
"javax.swing.BorderFactory",
"org.compiere.model.FieldGroupVO",
"org.compiere.swing.CScrollPane"
] | import javax.swing.BorderFactory; import org.compiere.model.FieldGroupVO; import org.compiere.swing.CScrollPane; | import javax.swing.*; import org.compiere.model.*; import org.compiere.swing.*; | [
"javax.swing",
"org.compiere.model",
"org.compiere.swing"
] | javax.swing; org.compiere.model; org.compiere.swing; | 1,245,048 |
private void checkedThreadSimpleTest(CheckedThread[] threads)
throws Exception {
// start all threads
for (CheckedThread t: threads) {
t.start();
}
// wait for thread completion and check exceptions
for (CheckedThread t: threads) {
t.sync();
}
}
// -------------------------------------------... | void function(CheckedThread[] threads) throws Exception { for (CheckedThread t: threads) { t.start(); } for (CheckedThread t: threads) { t.sync(); } } | /**
* Helper method to first start all threads and then wait for their completion.
*
* @param threads threads to use
* @throws Exception exceptions that are thrown from the threads
*/ | Helper method to first start all threads and then wait for their completion | checkedThreadSimpleTest | {
"repo_name": "hequn8128/flink",
"path": "flink-runtime/src/test/java/org/apache/flink/runtime/blob/BlobServerPutTest.java",
"license": "apache-2.0",
"size": 30789
} | [
"org.apache.flink.core.testutils.CheckedThread"
] | import org.apache.flink.core.testutils.CheckedThread; | import org.apache.flink.core.testutils.*; | [
"org.apache.flink"
] | org.apache.flink; | 2,265,488 |
public JoinTable<T> schema(String schema)
{
childNode.attribute("schema", schema);
return this;
} | JoinTable<T> function(String schema) { childNode.attribute(STR, schema); return this; } | /**
* Sets the <code>schema</code> attribute
* @param schema the value for the attribute <code>schema</code>
* @return the current instance of <code>JoinTable<T></code>
*/ | Sets the <code>schema</code> attribute | schema | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/orm20/JoinTableImpl.java",
"license": "epl-1.0",
"size": 11592
} | [
"org.jboss.shrinkwrap.descriptor.api.orm20.JoinTable"
] | import org.jboss.shrinkwrap.descriptor.api.orm20.JoinTable; | import org.jboss.shrinkwrap.descriptor.api.orm20.*; | [
"org.jboss.shrinkwrap"
] | org.jboss.shrinkwrap; | 617,230 |
static Intent createInCallIntent(boolean showDialpad) {
Intent intent = createInCallIntent();
intent.putExtra(InCallScreen.SHOW_DIALPAD_EXTRA, showDialpad);
return intent;
}
| static Intent createInCallIntent(boolean showDialpad) { Intent intent = createInCallIntent(); intent.putExtra(InCallScreen.SHOW_DIALPAD_EXTRA, showDialpad); return intent; } | /**
* Variation of createInCallIntent() that also specifies whether the
* DTMF dialpad should be initially visible when the InCallScreen
* comes up.
*/ | Variation of createInCallIntent() that also specifies whether the DTMF dialpad should be initially visible when the InCallScreen comes up | createInCallIntent | {
"repo_name": "risingsunm/Phone_4.0",
"path": "src/com/android/phone/PhoneApp.java",
"license": "gpl-3.0",
"size": 84389
} | [
"android.content.Intent"
] | import android.content.Intent; | import android.content.*; | [
"android.content"
] | android.content; | 2,489,462 |
private void createContents() {
this.shell = new Shell(this.getParent(), this.getStyle());
this.shell.setText("自動プロキシ構成スクリプトファイル生成");
this.shell.setLayout(new GridLayout(1, false));
Composite composite = new Composite(this.shell, SWT.NONE);
composite.setLayoutData(new GridDa... | void function() { this.shell = new Shell(this.getParent(), this.getStyle()); this.shell.setText(STR); this.shell.setLayout(new GridLayout(1, false)); Composite composite = new Composite(this.shell, SWT.NONE); composite.setLayoutData(new GridData(GridData.FILL_HORIZONTAL)); composite.setLayout(new GridLayout(1, false));... | /**
* Create contents of the dialog.
*/ | Create contents of the dialog | createContents | {
"repo_name": "sanaehirotaka/logbook",
"path": "main/logbook/gui/CreatePacFileDialog.java",
"license": "mit",
"size": 7660
} | [
"org.eclipse.swt.layout.GridData",
"org.eclipse.swt.layout.GridLayout",
"org.eclipse.swt.widgets.Composite",
"org.eclipse.swt.widgets.Group",
"org.eclipse.swt.widgets.Label",
"org.eclipse.swt.widgets.Shell"
] | import org.eclipse.swt.layout.GridData; import org.eclipse.swt.layout.GridLayout; import org.eclipse.swt.widgets.Composite; import org.eclipse.swt.widgets.Group; import org.eclipse.swt.widgets.Label; import org.eclipse.swt.widgets.Shell; | import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*; | [
"org.eclipse.swt"
] | org.eclipse.swt; | 683,917 |
public void addDestination(PDFDestination destination) {
if (this.destinations == null) {
this.destinations = new ArrayList<PDFDestination>();
}
this.destinations.add(destination);
} | void function(PDFDestination destination) { if (this.destinations == null) { this.destinations = new ArrayList<PDFDestination>(); } this.destinations.add(destination); } | /**
* Adds a destination to the document.
* @param destination the destination object
*/ | Adds a destination to the document | addDestination | {
"repo_name": "argv-minus-one/fop",
"path": "fop-core/src/main/java/org/apache/fop/pdf/PDFDocument.java",
"license": "apache-2.0",
"size": 40374
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 940,938 |
IterableAssert<T> inEarlyPane(BoundedWindow window); | IterableAssert<T> inEarlyPane(BoundedWindow window); | /**
* Creates a new {@link IterableAssert} like this one, but with the assertion restricted to only
* run on the provided window across all panes that were produced by the arrival of early data.
*
* @return a new {@link IterableAssert} like this one but with the assertion only applied to the
* ... | Creates a new <code>IterableAssert</code> like this one, but with the assertion restricted to only run on the provided window across all panes that were produced by the arrival of early data | inEarlyPane | {
"repo_name": "robertwb/incubator-beam",
"path": "sdks/java/core/src/main/java/org/apache/beam/sdk/testing/PAssert.java",
"license": "apache-2.0",
"size": 70194
} | [
"org.apache.beam.sdk.transforms.windowing.BoundedWindow"
] | import org.apache.beam.sdk.transforms.windowing.BoundedWindow; | import org.apache.beam.sdk.transforms.windowing.*; | [
"org.apache.beam"
] | org.apache.beam; | 474,970 |
public Response handle(final HttpServletRequest request) throws Exception {
if (handlerMappings == null || handlerAdapters == null) {
throw new UnsupportedOperationException("The web context is not configured!");
}
//Simulate a request with a fresh Hibernate session
Context.flushSession();
Con... | Response function(final HttpServletRequest request) throws Exception { if (handlerMappings == null handlerAdapters == null) { throw new UnsupportedOperationException(STR); } Context.flushSession(); Context.clearSession(); final MockHttpServletResponse response = new MockHttpServletResponse(); ModelAndView modelAndView ... | /**
* Handles the request with a proper controller.
*
* @param request
* @return
* @throws Exception
*/ | Handles the request with a proper controller | handle | {
"repo_name": "Bhamni/openmrs-core",
"path": "web/src/test/java/org/openmrs/web/test/WebTestHelper.java",
"license": "mpl-2.0",
"size": 5130
} | [
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpSession",
"org.junit.Assert",
"org.openmrs.api.context.Context",
"org.springframework.mock.web.MockHttpServletResponse",
"org.springframework.web.servlet.HandlerAdapter",
"org.springframework.web.servlet.HandlerExecutionChain",
"org.spri... | import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; import org.junit.Assert; import org.openmrs.api.context.Context; import org.springframework.mock.web.MockHttpServletResponse; import org.springframework.web.servlet.HandlerAdapter; import org.springframework.web.servlet.HandlerExecutio... | import javax.servlet.http.*; import org.junit.*; import org.openmrs.api.context.*; import org.springframework.mock.web.*; import org.springframework.web.servlet.*; | [
"javax.servlet",
"org.junit",
"org.openmrs.api",
"org.springframework.mock",
"org.springframework.web"
] | javax.servlet; org.junit; org.openmrs.api; org.springframework.mock; org.springframework.web; | 649,553 |
public void setToHeader(ToHeader toHeader) {
this.toHeader = toHeader;
} | void function(ToHeader toHeader) { this.toHeader = toHeader; } | /**
* A custom Header object containing message receiver settings. Must implement the type javax.sip.header.ToHeader
*/ | A custom Header object containing message receiver settings. Must implement the type javax.sip.header.ToHeader | setToHeader | {
"repo_name": "kevinearls/camel",
"path": "components/camel-sip/src/main/java/org/apache/camel/component/sip/SipConfiguration.java",
"license": "apache-2.0",
"size": 30197
} | [
"javax.sip.header.ToHeader"
] | import javax.sip.header.ToHeader; | import javax.sip.header.*; | [
"javax.sip"
] | javax.sip; | 2,346,510 |
private OsStats.Cgroup.CpuStat getCgroupCpuAcctCpuStat(final String controlGroup) throws IOException {
final List<String> lines = readSysFsCgroupCpuAcctCpuStat(controlGroup);
long numberOfPeriods = -1;
long numberOfTimesThrottled = -1;
long timeThrottledNanos = -1;
for (final... | OsStats.Cgroup.CpuStat function(final String controlGroup) throws IOException { final List<String> lines = readSysFsCgroupCpuAcctCpuStat(controlGroup); long numberOfPeriods = -1; long numberOfTimesThrottled = -1; long timeThrottledNanos = -1; for (final String line : lines) { final String[] fields = line.split("\\s+");... | /**
* The CPU time statistics for all tasks in the Elasticsearch control group.
*
* @param controlGroup the control group for the Elasticsearch process for the {@code cpuacct} subsystem
* @return the CPU time statistics
* @throws IOException if an I/O exception occurs reading {@code cpu.stat} f... | The CPU time statistics for all tasks in the Elasticsearch control group | getCgroupCpuAcctCpuStat | {
"repo_name": "robin13/elasticsearch",
"path": "server/src/main/java/org/elasticsearch/monitor/os/OsProbe.java",
"license": "apache-2.0",
"size": 34386
} | [
"java.io.IOException",
"java.util.List"
] | import java.io.IOException; import java.util.List; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 2,770,523 |
public void
removeIIOWriteProgressListener(IIOWriteProgressListener listener) {
if (listener == null || progressListeners == null) {
return;
}
progressListeners =
ImageReader.removeFromList(progressListeners, listener);
} | void function(IIOWriteProgressListener listener) { if (listener == null progressListeners == null) { return; } progressListeners = ImageReader.removeFromList(progressListeners, listener); } | /**
* Removes an <code>IIOWriteProgressListener</code> from the list
* of registered progress listeners. If the listener was not
* previously registered, or if <code>listener</code> is
* <code>null</code>, no exception will be thrown and no action
* will be taken.
*
* @param listener... | Removes an <code>IIOWriteProgressListener</code> from the list of registered progress listeners. If the listener was not previously registered, or if <code>listener</code> is <code>null</code>, no exception will be thrown and no action will be taken | removeIIOWriteProgressListener | {
"repo_name": "rokn/Count_Words_2015",
"path": "testing/openjdk/jdk/src/share/classes/javax/imageio/ImageWriter.java",
"license": "mit",
"size": 84060
} | [
"javax.imageio.event.IIOWriteProgressListener"
] | import javax.imageio.event.IIOWriteProgressListener; | import javax.imageio.event.*; | [
"javax.imageio"
] | javax.imageio; | 946,199 |
public static Map<String, Float> readCufflinksTranscriptsFPKM(String file, double threshold) {
return readCufflinksFPKMFile(file, threshold, false);
}
| static Map<String, Float> function(String file, double threshold) { return readCufflinksFPKMFile(file, threshold, false); } | /**
* Reads Cufflinks FPKM_tracking files of transcripts (gzipped also fine, ending .gz assumed there)
* and returns all that are above a certain threshold.
* @param file
* @return map transcript -> FPKM (if > threshold)
*/ | Reads Cufflinks FPKM_tracking files of transcripts (gzipped also fine, ending .gz assumed there) and returns all that are above a certain threshold | readCufflinksTranscriptsFPKM | {
"repo_name": "edeltoaster/jdaco_dev",
"path": "jdaco_dev/src/framework/TranscriptAbundanceReader.java",
"license": "gpl-3.0",
"size": 33158
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,856,438 |
private void startWebApp() {
Configuration conf = getConfig();
String initializers = conf.get("hadoop.http.filter.initializers", "");
Set<String> defaultInitializers = new LinkedHashSet<String>();
TimelineServerUtils.addTimelineAuthFilter(
initializers, defaultInitializers, tokenMgrService);
... | void function() { Configuration conf = getConfig(); String initializers = conf.get(STR, STRSTR:STR:STRtimelineSTRhttps: bindAddress)); if (portRanges != null && !portRanges.isEmpty()) { builder.setPortRanges(portRanges); } if (YarnConfiguration.useHttps(conf)) { builder = WebAppUtils.loadSslConfiguration(builder, conf)... | /**
* Launch the REST web server for this collector manager.
*/ | Launch the REST web server for this collector manager | startWebApp | {
"repo_name": "apurtell/hadoop",
"path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice/src/main/java/org/apache/hadoop/yarn/server/timelineservice/collector/NodeTimelineCollectorManager.java",
"license": "apache-2.0",
"size": 18943
} | [
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.yarn.conf.YarnConfiguration",
"org.apache.hadoop.yarn.exceptions.YarnRuntimeException",
"org.apache.hadoop.yarn.webapp.GenericExceptionHandler",
"org.apache.hadoop.yarn.webapp.YarnJacksonJaxbJsonProvider",
"org.apache.hadoop.yarn.webapp.util.WebAp... | import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.yarn.conf.YarnConfiguration; import org.apache.hadoop.yarn.exceptions.YarnRuntimeException; import org.apache.hadoop.yarn.webapp.GenericExceptionHandler; import org.apache.hadoop.yarn.webapp.YarnJacksonJaxbJsonProvider; import org.apache.hadoop.yarn.... | import org.apache.hadoop.conf.*; import org.apache.hadoop.yarn.conf.*; import org.apache.hadoop.yarn.exceptions.*; import org.apache.hadoop.yarn.webapp.*; import org.apache.hadoop.yarn.webapp.util.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 40,699 |
public void removeAll(Collection<E> keys) {
for (E key : keys) {
mutableRemove(key);
}
}
| void function(Collection<E> keys) { for (E key : keys) { mutableRemove(key); } } | /**
* Removes all the given keys from this Counter.
* Keys may be included that are not actually in the
* Counter - no action is taken in response to those
* keys. This behavior should be retained in future
* revisions of Counter (matches HashMap).
*
* @param keys The keys to remove from th... | Removes all the given keys from this Counter. Keys may be included that are not actually in the Counter - no action is taken in response to those keys. This behavior should be retained in future revisions of Counter (matches HashMap) | removeAll | {
"repo_name": "PeterisP/LVTagger",
"path": "src/main/java/edu/stanford/nlp/stats/ClassicCounter.java",
"license": "gpl-2.0",
"size": 17308
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 1,225,552 |
private DataStore getImageStore(Long zoneId) {
List<DataStore> stores = storeMgr.getImageStoresByScope(new ZoneScope(zoneId));
if (CollectionUtils.isEmpty(stores)) {
throw new CloudRuntimeException("No Secondary storage found in Zone with Id: " + zoneId);
}
DataStore imag... | DataStore function(Long zoneId) { List<DataStore> stores = storeMgr.getImageStoresByScope(new ZoneScope(zoneId)); if (CollectionUtils.isEmpty(stores)) { throw new CloudRuntimeException(STR + zoneId); } DataStore imageStore = null; for (DataStore store : stores) { if (statsCollector.imageStoreHasEnoughCapacity(store, Di... | /**
* Iterate through all Image stores in the current running zone and select any that has less than DiskQuotaPercentageThreshold.value() disk usage
*
* @param zoneId of the current running zone
* @return a valid secondary storage with less than DiskQuotaPercentageThreshold set by global config
... | Iterate through all Image stores in the current running zone and select any that has less than DiskQuotaPercentageThreshold.value() disk usage | getImageStore | {
"repo_name": "DaanHoogland/cloudstack",
"path": "server/src/main/java/org/apache/cloudstack/diagnostics/DiagnosticsServiceImpl.java",
"license": "apache-2.0",
"size": 25306
} | [
"com.cloud.utils.exception.CloudRuntimeException",
"java.util.List",
"org.apache.cloudstack.engine.subsystem.api.storage.DataStore",
"org.apache.cloudstack.engine.subsystem.api.storage.ZoneScope",
"org.apache.commons.collections.CollectionUtils"
] | import com.cloud.utils.exception.CloudRuntimeException; import java.util.List; import org.apache.cloudstack.engine.subsystem.api.storage.DataStore; import org.apache.cloudstack.engine.subsystem.api.storage.ZoneScope; import org.apache.commons.collections.CollectionUtils; | import com.cloud.utils.exception.*; import java.util.*; import org.apache.cloudstack.engine.subsystem.api.storage.*; import org.apache.commons.collections.*; | [
"com.cloud.utils",
"java.util",
"org.apache.cloudstack",
"org.apache.commons"
] | com.cloud.utils; java.util; org.apache.cloudstack; org.apache.commons; | 702,383 |
public void startNewStream(Reader reader, boolean isInternalEntity); | void function(Reader reader, boolean isInternalEntity); | /**
* Starts a new stream from a Java reader. The new stream is used temporary
* to read data from. If that stream is exhausted, control returns to the
* parent stream.
*
* @param reader
* the non-null reader to read the new data from
* @param isInternalEntity
* true if the reader... | Starts a new stream from a Java reader. The new stream is used temporary to read data from. If that stream is exhausted, control returns to the parent stream | startNewStream | {
"repo_name": "SDX2000/freeplane",
"path": "freeplane/src/org/freeplane/n3/nanoxml/IXMLReader.java",
"license": "gpl-2.0",
"size": 4469
} | [
"java.io.Reader"
] | import java.io.Reader; | import java.io.*; | [
"java.io"
] | java.io; | 665,254 |
public static String drop(GString self, int num) {
return drop(self.toString(), num).toString();
} | static String function(GString self, int num) { return drop(self.toString(), num).toString(); } | /**
* A GString variant of the equivalent CharSequence method.
*
* @param self the original GString
* @param num the number of characters to drop from this GString
* @return a String consisting of all characters except the first <code>num</code> ones,
* or else an empty String, if ... | A GString variant of the equivalent CharSequence method | drop | {
"repo_name": "bsideup/incubator-groovy",
"path": "src/main/org/codehaus/groovy/runtime/StringGroovyMethods.java",
"license": "apache-2.0",
"size": 141076
} | [
"groovy.lang.GString"
] | import groovy.lang.GString; | import groovy.lang.*; | [
"groovy.lang"
] | groovy.lang; | 2,264,707 |
@Test
public void testParameters() throws Exception {
UnivariateRealFunction f = new SinFunction();
UnivariateRealIntegrator integrator = new TrapezoidIntegrator();
try {
// bad interval
integrator.integrate(f, 1, -1);
Assert.fail("Expecting IllegalAr... | void function() throws Exception { UnivariateRealFunction f = new SinFunction(); UnivariateRealIntegrator integrator = new TrapezoidIntegrator(); try { integrator.integrate(f, 1, -1); Assert.fail(STR); } catch (IllegalArgumentException ex) { } try { integrator.setMinimalIterationCount(5); integrator.setMaximalIteration... | /**
* Test of parameters for the integrator.
*/ | Test of parameters for the integrator | testParameters | {
"repo_name": "SpoonLabs/astor",
"path": "examples/math_50v2/src/test/java/org/apache/commons/math/analysis/integration/TrapezoidIntegratorTest.java",
"license": "gpl-2.0",
"size": 4534
} | [
"org.apache.commons.math.analysis.SinFunction",
"org.apache.commons.math.analysis.UnivariateRealFunction",
"org.junit.Assert"
] | import org.apache.commons.math.analysis.SinFunction; import org.apache.commons.math.analysis.UnivariateRealFunction; import org.junit.Assert; | import org.apache.commons.math.analysis.*; import org.junit.*; | [
"org.apache.commons",
"org.junit"
] | org.apache.commons; org.junit; | 1,298,910 |
public jsx3.xml.Cacheable setXMLString(String strXML)
{
String extension = "setXMLString(\"" + strXML + "\").";
try
{
java.lang.reflect.Constructor<jsx3.xml.Cacheable> ctor = jsx3.xml.Cacheable.class.getConstructor(Context.class, String.class);
return ctor.newInst... | jsx3.xml.Cacheable function(String strXML) { String extension = STRSTR\")."; try { java.lang.reflect.Constructor<jsx3.xml.Cacheable> ctor = jsx3.xml.Cacheable.class.getConstructor(Context.class, String.class); return ctor.newInstance(this, extension); } catch (Exception ex) { throw new IllegalArgumentException(STR + js... | /**
* Sets the XML string of this object. Setting this value to the string serialization of an XML document is one
way of specifying the source XML document of this object.
* @param strXML <code>null</code> or a well-formed serialized XML element.
* @return this object.
*/ | Sets the XML string of this object. Setting this value to the string serialization of an XML document is one | setXMLString | {
"repo_name": "burris/dwr",
"path": "ui/gi/generated/java/jsx3/gui/Table.java",
"license": "apache-2.0",
"size": 111945
} | [
"org.directwebremoting.io.Context"
] | import org.directwebremoting.io.Context; | import org.directwebremoting.io.*; | [
"org.directwebremoting.io"
] | org.directwebremoting.io; | 258,415 |
@RequestMapping(path = "/api/data-sets/{dataSetId}/attachments/{filename:.+}",
method = RequestMethod.PUT)
@Secured(value = {AuthoritiesConstants.PUBLISHER, AuthoritiesConstants.DATA_PROVIDER})
public ResponseEntity<?> update(
@Valid @RequestBody DataSetAttachmentMetadata dataSetAttachmentMetadata) {
... | @RequestMapping(path = STR, method = RequestMethod.PUT) @Secured(value = {AuthoritiesConstants.PUBLISHER, AuthoritiesConstants.DATA_PROVIDER}) ResponseEntity<?> function( @Valid @RequestBody DataSetAttachmentMetadata dataSetAttachmentMetadata) { dataSetAttachmentService.updateAttachmentMetadata(dataSetAttachmentMetadat... | /**
* Update the metadata of the given attachment of the given dataSet.
*/ | Update the metadata of the given attachment of the given dataSet | update | {
"repo_name": "dzhw/metadatamanagement",
"path": "src/main/java/eu/dzhw/fdz/metadatamanagement/datasetmanagement/rest/DataSetAttachmentResource.java",
"license": "agpl-3.0",
"size": 4667
} | [
"eu.dzhw.fdz.metadatamanagement.datasetmanagement.domain.DataSetAttachmentMetadata",
"eu.dzhw.fdz.metadatamanagement.usermanagement.security.AuthoritiesConstants",
"javax.validation.Valid",
"org.springframework.http.ResponseEntity",
"org.springframework.security.access.annotation.Secured",
"org.springfram... | import eu.dzhw.fdz.metadatamanagement.datasetmanagement.domain.DataSetAttachmentMetadata; import eu.dzhw.fdz.metadatamanagement.usermanagement.security.AuthoritiesConstants; import javax.validation.Valid; import org.springframework.http.ResponseEntity; import org.springframework.security.access.annotation.Secured; impo... | import eu.dzhw.fdz.metadatamanagement.datasetmanagement.domain.*; import eu.dzhw.fdz.metadatamanagement.usermanagement.security.*; import javax.validation.*; import org.springframework.http.*; import org.springframework.security.access.annotation.*; import org.springframework.web.bind.annotation.*; | [
"eu.dzhw.fdz",
"javax.validation",
"org.springframework.http",
"org.springframework.security",
"org.springframework.web"
] | eu.dzhw.fdz; javax.validation; org.springframework.http; org.springframework.security; org.springframework.web; | 969,706 |
@Override
public long read(ByteBuffer[] dsts, int offset, int length) throws IOException {
if ((offset < 0) || (length < 0) || (offset > dsts.length - length))
throw new IndexOutOfBoundsException();
int totalRead = 0;
int i = offset;
while (i < length) {
... | long function(ByteBuffer[] dsts, int offset, int length) throws IOException { if ((offset < 0) (length < 0) (offset > dsts.length - length)) throw new IndexOutOfBoundsException(); int totalRead = 0; int i = offset; while (i < length) { if (dsts[i].hasRemaining()) { int read = read(dsts[i]); if (read > 0) totalRead += r... | /**
* Reads a sequence of bytes from this channel into a subsequence of the given buffers.
* @param dsts - The buffers into which bytes are to be transferred
* @param offset - The offset within the buffer array of the first buffer into which bytes are to be transferred; must be non-negative and no larger... | Reads a sequence of bytes from this channel into a subsequence of the given buffers | read | {
"repo_name": "MyPureCloud/kafka",
"path": "clients/src/main/java/org/apache/kafka/common/network/SslTransportLayer.java",
"license": "apache-2.0",
"size": 35553
} | [
"java.io.IOException",
"java.nio.ByteBuffer"
] | import java.io.IOException; import java.nio.ByteBuffer; | import java.io.*; import java.nio.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,853,468 |
private static boolean checkForStateChangeHelper(
Node n, boolean checkForNewObjects, AbstractCompiler compiler) {
// Rather than id which ops may have side effects, id the ones
// that we know to be safe
switch (n.getType()) {
// other side-effect free statements and expressions
// Thro... | static boolean function( Node n, boolean checkForNewObjects, AbstractCompiler compiler) { switch (n.getType()) { case Token.THROW: case Token.YIELD: return true; case Token.OBJECTLIT: if (checkForNewObjects) { return true; } for (Node c = n.getFirstChild(); c != null; c = c.getNext()) { if (checkForStateChangeHelper( c... | /**
* Returns true if some node in n's subtree changes application state.
* If {@code checkForNewObjects} is true, we assume that newly created
* mutable objects (like object literals) change state. Otherwise, we assume
* that they have no side effects.
*/ | Returns true if some node in n's subtree changes application state. If checkForNewObjects is true, we assume that newly created mutable objects (like object literals) change state. Otherwise, we assume that they have no side effects | checkForStateChangeHelper | {
"repo_name": "thurday/closure-compiler",
"path": "src/com/google/javascript/jscomp/NodeUtil.java",
"license": "apache-2.0",
"size": 118862
} | [
"com.google.javascript.rhino.Node",
"com.google.javascript.rhino.Token"
] | import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token; | import com.google.javascript.rhino.*; | [
"com.google.javascript"
] | com.google.javascript; | 2,374,108 |
public List<String> getExemptCategories() {
return exemptCategories;
} | List<String> function() { return exemptCategories; } | /**
* Get the exempt categories
*
* @return The exempt categories list
*/ | Get the exempt categories | getExemptCategories | {
"repo_name": "aaitor/examples",
"path": "sales-taxes/core/src/main/java/com/examples/apps/sales/core/SalesProperties.java",
"license": "gpl-2.0",
"size": 2384
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 288,080 |
@ApiModelProperty(example = "null", value = "")
public String getEmail() {
return email;
} | @ApiModelProperty(example = "null", value = "") String function() { return email; } | /**
* Get email
* @return email
**/ | Get email | getEmail | {
"repo_name": "PitneyBowes/LocationIntelligenceSDK-Java",
"path": "src/main/java/pb/locationintelligence/model/SiteDetails.java",
"license": "apache-2.0",
"size": 4772
} | [
"io.swagger.annotations.ApiModelProperty"
] | import io.swagger.annotations.ApiModelProperty; | import io.swagger.annotations.*; | [
"io.swagger.annotations"
] | io.swagger.annotations; | 1,858,076 |
public void setAddressLine(int index, String line) {
if (index < 0) {
throw new IllegalArgumentException("index = " + index + " < 0");
}
if (mAddressLines == null) {
mAddressLines = new HashMap<Integer, String>();
}
mAddressLines.put(index, line);
... | void function(int index, String line) { if (index < 0) { throw new IllegalArgumentException(STR + index + STR); } if (mAddressLines == null) { mAddressLines = new HashMap<Integer, String>(); } mAddressLines.put(index, line); if (line == null) { mMaxAddressLineIndex = -1; for (Integer i : mAddressLines.keySet()) { mMaxA... | /**
* Sets the line of the address numbered by index (starting at 0) to the
* given String, which may be null.
*
* @throws IllegalArgumentException if index < 0
*/ | Sets the line of the address numbered by index (starting at 0) to the given String, which may be null | setAddressLine | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/android/location/Address.java",
"license": "apache-2.0",
"size": 16538
} | [
"java.util.HashMap"
] | import java.util.HashMap; | import java.util.*; | [
"java.util"
] | java.util; | 233,765 |
@Message(id = 11, value = "Unexpected content of type %s")
XMLStreamException unexpectedContentType(String type, @Param Location location); | @Message(id = 11, value = STR) XMLStreamException unexpectedContentType(String type, @Param Location location); | /**
* Creates a {@link javax.xml.stream.XMLStreamException} indicating the presence of an unexpected content type.
*
* @param type the unexpected type.
* @param location the location of the error.
* @return the constructed {@link javax.xml.stream.XMLStreamException}.
*/ | Creates a <code>javax.xml.stream.XMLStreamException</code> indicating the presence of an unexpected content type | unexpectedContentType | {
"repo_name": "jamezp/wildfly-core",
"path": "security-manager/src/main/java/org/wildfly/extension/security/manager/logging/SecurityManagerLogger.java",
"license": "lgpl-2.1",
"size": 8073
} | [
"javax.xml.stream.Location",
"javax.xml.stream.XMLStreamException",
"org.jboss.logging.annotations.Message",
"org.jboss.logging.annotations.Param"
] | import javax.xml.stream.Location; import javax.xml.stream.XMLStreamException; import org.jboss.logging.annotations.Message; import org.jboss.logging.annotations.Param; | import javax.xml.stream.*; import org.jboss.logging.annotations.*; | [
"javax.xml",
"org.jboss.logging"
] | javax.xml; org.jboss.logging; | 1,861,713 |
@Override
public BeanPopulatorBaseConfig getBeanPopulatorBaseConfig() {
return baseConfig;
} | BeanPopulatorBaseConfig function() { return baseConfig; } | /**
* Notes if the returned base config is modified, a subsequent
* {@link BeanPopulator#initBeanPopulatorBaseConfig(BeanPopulatorBaseConfig)} needs to be invoked to keep the
* configuration in sync.
*/ | Notes if the returned base config is modified, a subsequent <code>BeanPopulator#initBeanPopulatorBaseConfig(BeanPopulatorBaseConfig)</code> needs to be invoked to keep the configuration in sync | getBeanPopulatorBaseConfig | {
"repo_name": "emsouza/beanlib",
"path": "core/src/main/java/net/sf/beanlib/provider/BeanPopulator.java",
"license": "apache-2.0",
"size": 14366
} | [
"net.sf.beanlib.spi.BeanPopulatorBaseConfig"
] | import net.sf.beanlib.spi.BeanPopulatorBaseConfig; | import net.sf.beanlib.spi.*; | [
"net.sf.beanlib"
] | net.sf.beanlib; | 483,600 |
@Override
public void reconcileMoveLinesWithCacheManagement(List<MoveLine> moveLineList) {
List<MoveLine> reconciliableCreditMoveLineList = getReconciliableCreditMoveLines(moveLineList);
List<MoveLine> reconciliableDebitMoveLineList = getReconciliableDebitMoveLines(moveLineList);
Map<List<Object>, Pai... | void function(List<MoveLine> moveLineList) { List<MoveLine> reconciliableCreditMoveLineList = getReconciliableCreditMoveLines(moveLineList); List<MoveLine> reconciliableDebitMoveLineList = getReconciliableDebitMoveLines(moveLineList); Map<List<Object>, Pair<List<MoveLine>, List<MoveLine>>> moveLineMap = new HashMap<>()... | /**
* Method used to reconcile the move line list passed as a parameter
*
* @param moveLineList
*/ | Method used to reconcile the move line list passed as a parameter | reconcileMoveLinesWithCacheManagement | {
"repo_name": "axelor/axelor-business-suite",
"path": "axelor-account/src/main/java/com/axelor/apps/account/service/move/MoveLineServiceImpl.java",
"license": "agpl-3.0",
"size": 46696
} | [
"com.axelor.apps.account.db.MoveLine",
"com.axelor.apps.account.service.payment.PaymentService",
"com.axelor.db.JPA",
"com.axelor.exception.service.TraceBackService",
"com.axelor.inject.Beans",
"java.util.Comparator",
"java.util.HashMap",
"java.util.List",
"java.util.Map",
"org.apache.commons.lang... | import com.axelor.apps.account.db.MoveLine; import com.axelor.apps.account.service.payment.PaymentService; import com.axelor.db.JPA; import com.axelor.exception.service.TraceBackService; import com.axelor.inject.Beans; import java.util.Comparator; import java.util.HashMap; import java.util.List; import java.util.Map; i... | import com.axelor.apps.account.db.*; import com.axelor.apps.account.service.payment.*; import com.axelor.db.*; import com.axelor.exception.service.*; import com.axelor.inject.*; import java.util.*; import org.apache.commons.lang3.tuple.*; | [
"com.axelor.apps",
"com.axelor.db",
"com.axelor.exception",
"com.axelor.inject",
"java.util",
"org.apache.commons"
] | com.axelor.apps; com.axelor.db; com.axelor.exception; com.axelor.inject; java.util; org.apache.commons; | 1,767,265 |
private void checkEmptyList() {
if (questsAdapter.getItemCount() > 0) {
emptyList.setVisibility(View.GONE);
} else {
emptyList.setVisibility(View.VISIBLE);
}
}
/**
* GCM receiver for the message sent from {@link FCMListener} | void function() { if (questsAdapter.getItemCount() > 0) { emptyList.setVisibility(View.GONE); } else { emptyList.setVisibility(View.VISIBLE); } } /** * GCM receiver for the message sent from {@link FCMListener} | /**
* Checks whether adapter with items is empty. If so - display appropriate message.
*/ | Checks whether adapter with items is empty. If so - display appropriate message | checkEmptyList | {
"repo_name": "OlegNovosad/Severenity",
"path": "app/src/main/java/com/severenity/view/fragments/QuestsFragment.java",
"license": "apache-2.0",
"size": 7878
} | [
"android.view.View",
"com.severenity.engine.managers.messaging.FCMListener"
] | import android.view.View; import com.severenity.engine.managers.messaging.FCMListener; | import android.view.*; import com.severenity.engine.managers.messaging.*; | [
"android.view",
"com.severenity.engine"
] | android.view; com.severenity.engine; | 42,889 |
public COSBase getDefaultValue()
{
return dictionary.getDictionaryObject(COSName.DV);
} | COSBase function() { return dictionary.getDictionaryObject(COSName.DV); } | /**
* Returns the default value of this field. This may be of any kind which is valid for this field's
* children.
*
* <p><b>Note:</b> while non-terminal fields <b>do</b> inherit field values, this method returns
* the local value, without inheritance.
*/ | Returns the default value of this field. This may be of any kind which is valid for this field's children. Note: while non-terminal fields do inherit field values, this method returns the local value, without inheritance | getDefaultValue | {
"repo_name": "ChunghwaTelecom/pdfbox",
"path": "pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/form/PDNonTerminalField.java",
"license": "apache-2.0",
"size": 7153
} | [
"org.apache.pdfbox.cos.COSBase",
"org.apache.pdfbox.cos.COSName"
] | import org.apache.pdfbox.cos.COSBase; import org.apache.pdfbox.cos.COSName; | import org.apache.pdfbox.cos.*; | [
"org.apache.pdfbox"
] | org.apache.pdfbox; | 2,744,956 |
@Override
public Object clone() throws CloneNotSupportedException {
KeyedObject clone = (KeyedObject) super.clone();
if (this.object instanceof PublicCloneable) {
PublicCloneable pc = (PublicCloneable) this.object;
clone.object = pc.clone();
}
retur... | Object function() throws CloneNotSupportedException { KeyedObject clone = (KeyedObject) super.clone(); if (this.object instanceof PublicCloneable) { PublicCloneable pc = (PublicCloneable) this.object; clone.object = pc.clone(); } return clone; } | /**
* Returns a clone of this object. It is assumed that the key is an
* immutable object, so it is not deep-cloned. The object is deep-cloned
* if it implements {@link PublicCloneable}, otherwise a shallow clone is
* made.
*
* @return A clone.
*
* @throws CloneNotSuppo... | Returns a clone of this object. It is assumed that the key is an immutable object, so it is not deep-cloned. The object is deep-cloned if it implements <code>PublicCloneable</code>, otherwise a shallow clone is made | clone | {
"repo_name": "greearb/jfreechart-fse-ct",
"path": "src/main/java/org/jfree/data/KeyedObject.java",
"license": "lgpl-2.1",
"size": 4358
} | [
"org.jfree.chart.util.PublicCloneable"
] | import org.jfree.chart.util.PublicCloneable; | import org.jfree.chart.util.*; | [
"org.jfree.chart"
] | org.jfree.chart; | 594,738 |
@POST
@Produces("application/json; charset=utf-8")
public Response queueResultsPOST(
@FormParam("queueId") String queueId,
@FormParam("filters") String filters,
@FormParam("inProcessOnly") @DefaultValue("True") Boolean inProcessOnly,
@FormParam("key") String key) {
try {
// check undefined par... | @Produces(STR) Response function( @FormParam(STR) String queueId, @FormParam(STR) String filters, @FormParam(STR) @DefaultValue("True") Boolean inProcessOnly, @FormParam("key") String key) { try { if (isNull(queueId) == true) { return new JSONResponse(JSONMeta.StatusType.ERROR_PARAMETER_QUEUE_ID_NOT_DEFINED).toResponse... | /**
* Reset list of pending content items to process
*
* @param queueId (required): queue ID
* @param filters (optional): dictionary of additional filters to apply (in MongoDB JSON syntax)
* @param inProcessOnly (optional): only reset items marked as "in_process" (i.e. no results uploaded) (default:true)
*... | Reset list of pending content items to process | queueResultsPOST | {
"repo_name": "EUMSSI/EUMSSI-platform",
"path": "EumssiApi/src/main/java/eu/eumssi/api/QueueReset.java",
"license": "apache-2.0",
"size": 4289
} | [
"eu.eumssi.api.json.JSONMeta",
"eu.eumssi.api.json.JSONResponse",
"eu.eumssi.managers.EumssiException",
"javax.ws.rs.DefaultValue",
"javax.ws.rs.FormParam",
"javax.ws.rs.Produces",
"javax.ws.rs.core.Response"
] | import eu.eumssi.api.json.JSONMeta; import eu.eumssi.api.json.JSONResponse; import eu.eumssi.managers.EumssiException; import javax.ws.rs.DefaultValue; import javax.ws.rs.FormParam; import javax.ws.rs.Produces; import javax.ws.rs.core.Response; | import eu.eumssi.api.json.*; import eu.eumssi.managers.*; import javax.ws.rs.*; import javax.ws.rs.core.*; | [
"eu.eumssi.api",
"eu.eumssi.managers",
"javax.ws"
] | eu.eumssi.api; eu.eumssi.managers; javax.ws; | 738,618 |
protected Boolean evaluateBooleanString(String value, LoadConfigReport report)
{
Boolean result = null;
for (int i = 0; i < TRUES.length; i++)
{
if (TRUES[i].equalsIgnoreCase(value))
{
return Boolean.TRUE;
}
}
for (int ... | Boolean function(String value, LoadConfigReport report) { Boolean result = null; for (int i = 0; i < TRUES.length; i++) { if (TRUES[i].equalsIgnoreCase(value)) { return Boolean.TRUE; } } for (int i = 0; i < FALSES.length; i++) { if (FALSES[i].equalsIgnoreCase(value)) { return Boolean.FALSE; } } report.addError(STRSTR\S... | /**
* Get the Boolean value of the String, filling the specified error array with any problems encountered
*
* @param value
* the value to check
* @param report
* @return Boolean value
*/ | Get the Boolean value of the String, filling the specified error array with any problems encountered | evaluateBooleanString | {
"repo_name": "GlitchCog/ChatGameFontificator",
"path": "src/main/java/com/glitchcog/fontificator/config/Config.java",
"license": "unlicense",
"size": 11779
} | [
"com.glitchcog.fontificator.config.loadreport.LoadConfigErrorType",
"com.glitchcog.fontificator.config.loadreport.LoadConfigReport"
] | import com.glitchcog.fontificator.config.loadreport.LoadConfigErrorType; import com.glitchcog.fontificator.config.loadreport.LoadConfigReport; | import com.glitchcog.fontificator.config.loadreport.*; | [
"com.glitchcog.fontificator"
] | com.glitchcog.fontificator; | 715,981 |
public Type pipeline(Collection<Endpoint> endpoints) {
return to(endpoints);
} | Type function(Collection<Endpoint> endpoints) { return to(endpoints); } | /**
* <a href="http://camel.apache.org/pipes-nd-filters.html">Pipes and Filters
* EIP:</a> Creates a {@link Pipeline} of the list of endpoints so that the
* message will get processed by each endpoint in turn and for
* request/response the output of one endpoint will be the input of the next
* ... | Pipes and Filters message will get processed by each endpoint in turn and for request/response the output of one endpoint will be the input of the next endpoint | pipeline | {
"repo_name": "shuliangtao/apache-camel-2.13.0-src",
"path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java",
"license": "apache-2.0",
"size": 138060
} | [
"java.util.Collection",
"org.apache.camel.Endpoint"
] | import java.util.Collection; import org.apache.camel.Endpoint; | import java.util.*; import org.apache.camel.*; | [
"java.util",
"org.apache.camel"
] | java.util; org.apache.camel; | 264,692 |
public String tourSeleccionado(){
if (tour_seleccionado.getSelectedItem() != null) {
String x = tour_seleccionado.getSelectedItem().toString();
return x;
}
return "";
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.... | String function(){ if (tour_seleccionado.getSelectedItem() != null) { String x = tour_seleccionado.getSelectedItem().toString(); return x; } return ""; } private javax.swing.JButton boton_atras; private javax.swing.JButton boton_eliminar; private javax.swing.JLabel jLabel1; private javax.swing.JComboBox<String> tour_se... | /**
* Retorna el nombre del tour seleccionado en el combo box
* @return el nombre del tour seleccionado en el combo box
*/ | Retorna el nombre del tour seleccionado en el combo box | tourSeleccionado | {
"repo_name": "AlexisCSP/ProyectoIngenieria",
"path": "ProyectoIngenieria/src/Vista/IEliminarTour.java",
"license": "mit",
"size": 6519
} | [
"javax.swing.JComboBox"
] | import javax.swing.JComboBox; | import javax.swing.*; | [
"javax.swing"
] | javax.swing; | 2,164,692 |
//
// JDBC-4.0 functions that aren't reliant on Java6
public ResultSet getFunctionColumns(String catalog,
String schemaPattern,
String functionNamePattern,
String columnNamePattern) throws SQLException {
Field[] fields = createFunctionColumnsFields();
return getProcedureOrFunctio... | ResultSet function(String catalog, String schemaPattern, String functionNamePattern, String columnNamePattern) throws SQLException { Field[] fields = createFunctionColumnsFields(); return getProcedureOrFunctionColumns( fields, catalog, schemaPattern, functionNamePattern, columnNamePattern, false, true); } | /**
* Retrieves a description of the given catalog's system or user
* function parameters and return type.
*
* @see java.sql.DatabaseMetaData#getFunctionColumns(String, String, String, String)
* @since 1.6
*/ | Retrieves a description of the given catalog's system or user function parameters and return type | getFunctionColumns | {
"repo_name": "lukearndt/CommunityRosterSystem",
"path": "lib/mysql-connector-java-5.1.21/src/com/mysql/jdbc/DatabaseMetaData.java",
"license": "mit",
"size": 264384
} | [
"java.sql.ResultSet",
"java.sql.SQLException"
] | import java.sql.ResultSet; import java.sql.SQLException; | import java.sql.*; | [
"java.sql"
] | java.sql; | 222,830 |
@Override
public Adapter createProgressSpinnerAdapter() {
if (progressSpinnerItemProvider == null) {
progressSpinnerItemProvider = new ProgressSpinnerItemProvider(this);
}
return progressSpinnerItemProvider;
}
protected ImageItemProvider imageItemProvider; | Adapter function() { if (progressSpinnerItemProvider == null) { progressSpinnerItemProvider = new ProgressSpinnerItemProvider(this); } return progressSpinnerItemProvider; } protected ImageItemProvider imageItemProvider; | /**
* This creates an adapter for a {@link psdstructure.ProgressSpinner}.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This creates an adapter for a <code>psdstructure.ProgressSpinner</code>. | createProgressSpinnerAdapter | {
"repo_name": "glovas/psd-ui-generator",
"path": "hu.bme.mit.mobilgen.psdprocessor.model.edit/src/psdstructure/provider/PsdstructureItemProviderAdapterFactory.java",
"license": "mit",
"size": 17680
} | [
"org.eclipse.emf.common.notify.Adapter"
] | import org.eclipse.emf.common.notify.Adapter; | import org.eclipse.emf.common.notify.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 238,260 |
public static CompletableFuture<Void> zkAsyncCreateFullPathOptimisticAndSetData(
final ZooKeeperClient zkc,
final String pathToCreate,
final byte[] data,
final List<ACL> acl,
final CreateMode createMode) {
final CompletableFuture<Void> result = new CompletableFuture<V... | static CompletableFuture<Void> function( final ZooKeeperClient zkc, final String pathToCreate, final byte[] data, final List<ACL> acl, final CreateMode createMode) { final CompletableFuture<Void> result = new CompletableFuture<Void>(); | /**
* Asynchronously create zookeeper path recursively and optimistically.
*
* @param zkc Zookeeper client
* @param pathToCreate Zookeeper full path
* @param data Zookeeper data
* @param acl Acl of the zk path
* @param createMode Create mode of zk path
*/ | Asynchronously create zookeeper path recursively and optimistically | zkAsyncCreateFullPathOptimisticAndSetData | {
"repo_name": "sijie/bookkeeper",
"path": "stream/distributedlog/core/src/main/java/org/apache/distributedlog/util/Utils.java",
"license": "apache-2.0",
"size": 30421
} | [
"java.util.List",
"java.util.concurrent.CompletableFuture",
"org.apache.distributedlog.ZooKeeperClient",
"org.apache.zookeeper.CreateMode"
] | import java.util.List; import java.util.concurrent.CompletableFuture; import org.apache.distributedlog.ZooKeeperClient; import org.apache.zookeeper.CreateMode; | import java.util.*; import java.util.concurrent.*; import org.apache.distributedlog.*; import org.apache.zookeeper.*; | [
"java.util",
"org.apache.distributedlog",
"org.apache.zookeeper"
] | java.util; org.apache.distributedlog; org.apache.zookeeper; | 2,018,264 |
protected static boolean shouldCreateRegion(String regionConfigName) {
String configNameLC = regionConfigName.toLowerCase();
boolean createProxyRegions = CommandPrms.getCreateProxyRegions();
boolean createClientRegions = CommandPrms.getCreateClientRegions();
boolean createPersistentRegions = CommandPr... | static boolean function(String regionConfigName) { String configNameLC = regionConfigName.toLowerCase(); boolean createProxyRegions = CommandPrms.getCreateProxyRegions(); boolean createClientRegions = CommandPrms.getCreateClientRegions(); boolean createPersistentRegions = CommandPrms.getCreatePersistentRegions(); boole... | /** Determine if the given regionConfigName should be created considering the
* hydra param settings.
* @param regionConfigName The region config name to consider.
* @return true if the region should be created, false otherwise.
*/ | Determine if the given regionConfigName should be created considering the hydra param settings | shouldCreateRegion | {
"repo_name": "papicella/snappy-store",
"path": "tests/core/src/main/java/management/test/cli/CommandTestVersionHelper.java",
"license": "apache-2.0",
"size": 9836
} | [
"com.gemstone.gemfire.cache.RegionAttributes",
"java.util.Vector"
] | import com.gemstone.gemfire.cache.RegionAttributes; import java.util.Vector; | import com.gemstone.gemfire.cache.*; import java.util.*; | [
"com.gemstone.gemfire",
"java.util"
] | com.gemstone.gemfire; java.util; | 1,398,862 |
public BigDecimal optBigDecimal(String key, BigDecimal defaultValue) {
try {
return this.getBigDecimal(key);
} catch (Exception e) {
return defaultValue;
}
} | BigDecimal function(String key, BigDecimal defaultValue) { try { return this.getBigDecimal(key); } catch (Exception e) { return defaultValue; } } | /**
* Get an optional BigDecimal associated with a key, or the defaultValue if
* there is no such key or if its value is not a number. If the value is a
* string, an attempt will be made to evaluate it as a number.
*
* @param key
* A key string.
* @param defaultValue
*... | Get an optional BigDecimal associated with a key, or the defaultValue if there is no such key or if its value is not a number. If the value is a string, an attempt will be made to evaluate it as a number | optBigDecimal | {
"repo_name": "gravitee-io/gravitee-policy-mock",
"path": "src/main/java/io/gravitee/policy/mock/json/JSONObject.java",
"license": "apache-2.0",
"size": 63311
} | [
"java.math.BigDecimal"
] | import java.math.BigDecimal; | import java.math.*; | [
"java.math"
] | java.math; | 2,511,596 |
public Value createStringValue(short type, String value, CSSEngine engine)
throws DOMException {
if (type != CSSPrimitiveValue.CSS_IDENT) {
throw createInvalidStringTypeDOMException(type);
}
if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) {
return Val... | Value function(short type, String value, CSSEngine engine) throws DOMException { if (type != CSSPrimitiveValue.CSS_IDENT) { throw createInvalidStringTypeDOMException(type); } if (value.equalsIgnoreCase(CSSConstants.CSS_NONE_VALUE)) { return ValueConstants.NONE_VALUE; } throw createInvalidIdentifierDOMException(value); ... | /**
* Implements {@link
* ValueManager#createStringValue(short,String,CSSEngine)}.
*/ | Implements <code>ValueManager#createStringValue(short,String,CSSEngine)</code> | createStringValue | {
"repo_name": "sflyphotobooks/crp-batik",
"path": "sources/org/apache/batik/css/engine/value/css2/FontSizeAdjustManager.java",
"license": "apache-2.0",
"size": 4513
} | [
"org.apache.batik.css.engine.CSSEngine",
"org.apache.batik.css.engine.value.Value",
"org.apache.batik.css.engine.value.ValueConstants",
"org.apache.batik.util.CSSConstants",
"org.w3c.dom.DOMException",
"org.w3c.dom.css.CSSPrimitiveValue"
] | import org.apache.batik.css.engine.CSSEngine; import org.apache.batik.css.engine.value.Value; import org.apache.batik.css.engine.value.ValueConstants; import org.apache.batik.util.CSSConstants; import org.w3c.dom.DOMException; import org.w3c.dom.css.CSSPrimitiveValue; | import org.apache.batik.css.engine.*; import org.apache.batik.css.engine.value.*; import org.apache.batik.util.*; import org.w3c.dom.*; import org.w3c.dom.css.*; | [
"org.apache.batik",
"org.w3c.dom"
] | org.apache.batik; org.w3c.dom; | 2,786,986 |
public boolean supportsEmailAddressChanges(UserModel user) {
return (user != null && user.isLocalAccount()) || userService.supportsEmailAddressChanges();
}
| boolean function(UserModel user) { return (user != null && user.isLocalAccount()) userService.supportsEmailAddressChanges(); } | /**
* Returns true if the user's email address can be changed.
*
* @param user
* @return true if the user service supports email address changes
*/ | Returns true if the user's email address can be changed | supportsEmailAddressChanges | {
"repo_name": "BullShark/IRCBlit",
"path": "src/main/java/com/gitblit/GitBlit.java",
"license": "apache-2.0",
"size": 119961
} | [
"com.gitblit.models.UserModel"
] | import com.gitblit.models.UserModel; | import com.gitblit.models.*; | [
"com.gitblit.models"
] | com.gitblit.models; | 1,491,063 |
@Override
public void draw(Graphics2D g2, Rectangle2D area, Point2D anchor,
PlotState parentState, PlotRenderingInfo info) {
// if the plot area is too small, just return...
boolean b1 = (area.getWidth() <= MINIMUM_WIDTH_TO_DRAW);
boolean b2 = (area.getHeight() <= MINIMUM_HE... | void function(Graphics2D g2, Rectangle2D area, Point2D anchor, PlotState parentState, PlotRenderingInfo info) { boolean b1 = (area.getWidth() <= MINIMUM_WIDTH_TO_DRAW); boolean b2 = (area.getHeight() <= MINIMUM_HEIGHT_TO_DRAW); if (b1 b2) { return; } if (info != null) { info.setPlotArea(area); } RectangleInsets insets ... | /**
* Draws the plot within the specified area on a graphics device.
*
* @param g2 the graphics device.
* @param area the plot area (in Java2D space).
* @param anchor an anchor point in Java2D space (<code>null</code>
* permitted).
* @param parentState the state fro... | Draws the plot within the specified area on a graphics device | draw | {
"repo_name": "akardapolov/ASH-Viewer",
"path": "jfreechart-fse/src/main/java/org/jfree/chart/plot/XYPlot.java",
"license": "gpl-3.0",
"size": 198838
} | [
"java.awt.AlphaComposite",
"java.awt.Composite",
"java.awt.Graphics2D",
"java.awt.Paint",
"java.awt.Shape",
"java.awt.Stroke",
"java.awt.geom.Point2D",
"java.awt.geom.Rectangle2D",
"java.awt.image.BufferedImage",
"java.util.Map",
"org.jfree.chart.axis.Axis",
"org.jfree.chart.axis.AxisSpace",
... | import java.awt.AlphaComposite; import java.awt.Composite; import java.awt.Graphics2D; import java.awt.Paint; import java.awt.Shape; import java.awt.Stroke; import java.awt.geom.Point2D; import java.awt.geom.Rectangle2D; import java.awt.image.BufferedImage; import java.util.Map; import org.jfree.chart.axis.Axis; import... | import java.awt.*; import java.awt.geom.*; import java.awt.image.*; import java.util.*; import org.jfree.chart.axis.*; import org.jfree.chart.renderer.xy.*; import org.jfree.chart.ui.*; | [
"java.awt",
"java.util",
"org.jfree.chart"
] | java.awt; java.util; org.jfree.chart; | 2,289,500 |
public Messenger getWifiServiceMessenger() {
try {
return mService.getWifiServiceMessenger();
} catch (RemoteException e) {
throw e.rethrowFromSystemServer();
}
} | Messenger function() { try { return mService.getWifiServiceMessenger(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } | /**
* Get a reference to WifiService handler. This is used by a client to establish
* an AsyncChannel communication with WifiService
*
* @return Messenger pointing to the WifiService handler
* @hide
*/ | Get a reference to WifiService handler. This is used by a client to establish an AsyncChannel communication with WifiService | getWifiServiceMessenger | {
"repo_name": "xorware/android_frameworks_base",
"path": "wifi/java/android/net/wifi/WifiManager.java",
"license": "apache-2.0",
"size": 97957
} | [
"android.os.Messenger",
"android.os.RemoteException"
] | import android.os.Messenger; import android.os.RemoteException; | import android.os.*; | [
"android.os"
] | android.os; | 1,051,465 |
public void addInvokeReference(InvokeReference aInvokeRef)
{
// find the class for the instruction
final String className = aInvokeRef.getClassName();
JavaClass javaClass = Repository.lookupClass(className);
final String methodName = aInvokeRef.getName();
final Type[] arg... | void function(InvokeReference aInvokeRef) { final String className = aInvokeRef.getClassName(); JavaClass javaClass = Repository.lookupClass(className); final String methodName = aInvokeRef.getName(); final Type[] argTypes = aInvokeRef.getArgTypes(); MethodDefinition narrowest = null; while ((javaClass != null) && (nar... | /**
* Adds a reference for an invocation in the invoked method definition.
* The invocation is of the form class.method(args).
* @param aInvokeRef the invocation reference.
*/ | Adds a reference for an invocation in the invoked method definition. The invocation is of the form class.method(args) | addInvokeReference | {
"repo_name": "debrief/debrief",
"path": "org.mwc.debrief.build/checkstyle/contrib/bcel/src/checkstyle/com/puppycrawl/tools/checkstyle/bcel/classfile/ReferenceDAO.java",
"license": "epl-1.0",
"size": 5866
} | [
"com.puppycrawl.tools.checkstyle.bcel.generic.InvokeReference",
"org.apache.bcel.Repository",
"org.apache.bcel.classfile.JavaClass",
"org.apache.bcel.generic.Type"
] | import com.puppycrawl.tools.checkstyle.bcel.generic.InvokeReference; import org.apache.bcel.Repository; import org.apache.bcel.classfile.JavaClass; import org.apache.bcel.generic.Type; | import com.puppycrawl.tools.checkstyle.bcel.generic.*; import org.apache.bcel.*; import org.apache.bcel.classfile.*; import org.apache.bcel.generic.*; | [
"com.puppycrawl.tools",
"org.apache.bcel"
] | com.puppycrawl.tools; org.apache.bcel; | 2,169,288 |
public void setRegisterNameValue(String registerNameValue)
throws JNCException {
setRegisterNameValue(new YangString(registerNameValue));
} | void function(String registerNameValue) throws JNCException { setRegisterNameValue(new YangString(registerNameValue)); } | /**
* Sets the value for child leaf "register-name",
* using a String value.
* @param registerNameValue used during instantiation.
*/ | Sets the value for child leaf "register-name", using a String value | setRegisterNameValue | {
"repo_name": "jnpr-shinma/yangfile",
"path": "hitel/src/hctaEpc/mmeSgsn/statistics/sgsnAcct/Scdr.java",
"license": "apache-2.0",
"size": 11310
} | [
"com.tailf.jnc.YangString"
] | import com.tailf.jnc.YangString; | import com.tailf.jnc.*; | [
"com.tailf.jnc"
] | com.tailf.jnc; | 633,659 |
List<Group> getByIds(Collection<String> groupIds); | List<Group> getByIds(Collection<String> groupIds); | /**
* Returns information about communities by their IDs
* @param groupIds IDs or screen names of communities.
* @return list of {@link Group} by IDs.
* @throws org.springframework.social.ApiException if there is an error while communicating with VKontakte.
* @throws org.springframework.social.... | Returns information about communities by their IDs | getByIds | {
"repo_name": "disovi/spring-social-vkontakte",
"path": "spring-social-vkontakte/src/main/java/org/springframework/social/vkontakte/api/IGroupsOperations.java",
"license": "apache-2.0",
"size": 3309
} | [
"java.util.Collection",
"java.util.List"
] | import java.util.Collection; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,237,159 |
public ArrayList<IAnalysisAsset> getAssetsAtSlice(int sliceNumber); | ArrayList<IAnalysisAsset> function(int sliceNumber); | /**
* <p>
* This operation returns the set of assets created for the specified data
* slice.
* </p>
*
* @param sliceNumber
* <p>
* The slice of data for which assets should be retrieved.
* </p>
* @return <p>
* All of the assets for the specified slice of da... | This operation returns the set of assets created for the specified data slice. | getAssetsAtSlice | {
"repo_name": "gorindn/ice",
"path": "src/org.eclipse.ice.analysistool/src/org/eclipse/ice/analysistool/IAnalysisDocument.java",
"license": "epl-1.0",
"size": 8859
} | [
"java.util.ArrayList"
] | import java.util.ArrayList; | import java.util.*; | [
"java.util"
] | java.util; | 1,770,805 |
public void writeData(int l, int[] types, Object[] data,
HashMappedList cols, int[] primaryKeys) {
boolean hasPK = primaryKeys != null && primaryKeys.length != 0;
int limit = hasPK ? primaryKeys.length
: l;
for (int i = 0; i < lim... | void function(int l, int[] types, Object[] data, HashMappedList cols, int[] primaryKeys) { boolean hasPK = primaryKeys != null && primaryKeys.length != 0; int limit = hasPK ? primaryKeys.length : l; for (int i = 0; i < limit; i++) { int j = hasPK ? primaryKeys[i] : i; Object o = data[j]; int t = types[j]; if (cols != n... | /**
* This method is called to write data for a Result.
*
* @param l
* @param types
* @param data
* @param cols
* @param primarykeys
* @throws IOException
*/ | This method is called to write data for a Result | writeData | {
"repo_name": "proudh0n/emergencymasta",
"path": "hsqldb/src/org/hsqldb/rowio/RowOutputBase.java",
"license": "gpl-2.0",
"size": 8111
} | [
"java.math.BigDecimal",
"java.sql.Date",
"java.sql.Time",
"java.sql.Timestamp",
"org.hsqldb.Column",
"org.hsqldb.Trace",
"org.hsqldb.Types",
"org.hsqldb.lib.HashMappedList",
"org.hsqldb.types.Binary",
"org.hsqldb.types.JavaObject"
] | import java.math.BigDecimal; import java.sql.Date; import java.sql.Time; import java.sql.Timestamp; import org.hsqldb.Column; import org.hsqldb.Trace; import org.hsqldb.Types; import org.hsqldb.lib.HashMappedList; import org.hsqldb.types.Binary; import org.hsqldb.types.JavaObject; | import java.math.*; import java.sql.*; import org.hsqldb.*; import org.hsqldb.lib.*; import org.hsqldb.types.*; | [
"java.math",
"java.sql",
"org.hsqldb",
"org.hsqldb.lib",
"org.hsqldb.types"
] | java.math; java.sql; org.hsqldb; org.hsqldb.lib; org.hsqldb.types; | 39,494 |
public NonElement<T,C> getTypeInfo(T t,Locatable upstream) {
NonElement<T,C> r = typeInfoSet.getTypeInfo(t);
if(r!=null) return r;
if(nav.isArray(t)) { // no need for checking byte[], because above typeInfoset.getTypeInfo() would return non-null
ArrayInfoImpl<T,C,F,M> ai =
... | NonElement<T,C> function(T t,Locatable upstream) { NonElement<T,C> r = typeInfoSet.getTypeInfo(t); if(r!=null) return r; if(nav.isArray(t)) { ArrayInfoImpl<T,C,F,M> ai = createArrayInfo(upstream, t); addTypeName(ai); typeInfoSet.add(ai); return ai; } C c = nav.asDecl(t); assert c!=null : t.toString()+STR; return getCla... | /**
* Have the builder recognize the type (if it hasn't done so yet),
* and returns a {@link NonElement} that represents it.
*
* @return
* always non-null.
*/ | Have the builder recognize the type (if it hasn't done so yet), and returns a <code>NonElement</code> that represents it | getTypeInfo | {
"repo_name": "axDev-JDK/jaxws",
"path": "src/share/jaxws_classes/com/sun/xml/internal/bind/v2/model/impl/ModelBuilder.java",
"license": "gpl-2.0",
"size": 14799
} | [
"com.sun.xml.internal.bind.v2.model.annotation.Locatable",
"com.sun.xml.internal.bind.v2.model.core.NonElement"
] | import com.sun.xml.internal.bind.v2.model.annotation.Locatable; import com.sun.xml.internal.bind.v2.model.core.NonElement; | import com.sun.xml.internal.bind.v2.model.annotation.*; import com.sun.xml.internal.bind.v2.model.core.*; | [
"com.sun.xml"
] | com.sun.xml; | 1,791,111 |
public WindowInfo getWindowInfo() {
if (m_viewInfo==null) {
m_viewInfo = new WindowInfo(WindowInfo.MAXIMIZABLE);
//m_viewInfo = new ViewInfo(ViewInfo.MAXIMIZABLE+ViewInfo.RESIZABLE);
m_viewInfo.setWidth(this.getWidth());
m_viewInfo.setHeight(this.getHeight());
m_viewInfo.setNormalWidth(this.getPreferr... | WindowInfo function() { if (m_viewInfo==null) { m_viewInfo = new WindowInfo(WindowInfo.MAXIMIZABLE); m_viewInfo.setWidth(this.getWidth()); m_viewInfo.setHeight(this.getHeight()); m_viewInfo.setNormalWidth(this.getPreferredSize().width); m_viewInfo.setNormalHeight(this.getPreferredSize().height); m_viewInfo.setTitle(Plu... | /**
* This method is used to get <strong>an initial</strong> ViewInfo object
* for this Project Manager window. It is not intended to retrieve the
* ViewInfo object in a later time.
* <strong>Use PluginServices.getMDIManager().getViewInfo(view)
* to retrieve the ViewInfo object at any time afte... | This method is used to get an initial ViewInfo object for this Project Manager window. It is not intended to retrieve the ViewInfo object in a later time. Use PluginServices.getMDIManager().getViewInfo(view) to retrieve the ViewInfo object at any time after the creation of the object | getWindowInfo | {
"repo_name": "iCarto/siga",
"path": "appgvSIG/src/com/iver/cit/gvsig/project/documents/gui/ProjectWindow.java",
"license": "gpl-3.0",
"size": 28670
} | [
"com.iver.andami.PluginServices",
"com.iver.andami.ui.mdiManager.WindowInfo"
] | import com.iver.andami.PluginServices; import com.iver.andami.ui.mdiManager.WindowInfo; | import com.iver.andami.*; import com.iver.andami.ui.*; | [
"com.iver.andami"
] | com.iver.andami; | 2,762,060 |
return new Intent(context, MainActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
} | return new Intent(context, MainActivity.class).setFlags(Intent.FLAG_ACTIVITY_NEW_TASK); } | /**
* Get an Intent to launch the Chuck UI directly.
*
* @param context A Context.
* @return An Intent for the main Chuck Activity that can be started with {@link Context#startActivity(Intent)}.
*/ | Get an Intent to launch the Chuck UI directly | getLaunchIntent | {
"repo_name": "deckyfx/httprequest",
"path": "app/src/main/java/com/github/deckyfx/logging/chuck/Chuck.java",
"license": "apache-2.0",
"size": 1216
} | [
"android.content.Intent",
"com.github.deckyfx.logging.chuck.internal.ui.MainActivity"
] | import android.content.Intent; import com.github.deckyfx.logging.chuck.internal.ui.MainActivity; | import android.content.*; import com.github.deckyfx.logging.chuck.internal.ui.*; | [
"android.content",
"com.github.deckyfx"
] | android.content; com.github.deckyfx; | 1,650,576 |
public JsArray<Element> getElementsByPath(String path) {
JsArray<Element> jsElements = JavaScriptObject.createArray().cast();
for (LocatorStrategy strategy : locatorStrategies) {
if (strategy.validatePath(path)) {
List<Element> elements = strategy.getElementsByPath(path);... | JsArray<Element> function(String path) { JsArray<Element> jsElements = JavaScriptObject.createArray().cast(); for (LocatorStrategy strategy : locatorStrategies) { if (strategy.validatePath(path)) { List<Element> elements = strategy.getElementsByPath(path); if (elements.size() > 0) { for (Element e : elements) { jsEleme... | /**
* Locates elements using a String locator (path) which identifies DOM
* elements.
*
* @since 7.2
* @param path
* The String locator which identifies target elements.
* @return The JavaScriptArray of DOM elements identified by {@code path} or
* empty array i... | Locates elements using a String locator (path) which identifies DOM elements | getElementsByPath | {
"repo_name": "peterl1084/framework",
"path": "client/src/main/java/com/vaadin/client/componentlocator/ComponentLocator.java",
"license": "apache-2.0",
"size": 9063
} | [
"com.google.gwt.core.client.JavaScriptObject",
"com.google.gwt.core.client.JsArray",
"com.google.gwt.dom.client.Element",
"java.util.List"
] | import com.google.gwt.core.client.JavaScriptObject; import com.google.gwt.core.client.JsArray; import com.google.gwt.dom.client.Element; import java.util.List; | import com.google.gwt.core.client.*; import com.google.gwt.dom.client.*; import java.util.*; | [
"com.google.gwt",
"java.util"
] | com.google.gwt; java.util; | 2,286,250 |
public WearableExtender setBackground(Bitmap background) {
mBackground = background;
return this;
} | WearableExtender function(Bitmap background) { mBackground = background; return this; } | /**
* Set a background image to be displayed behind the notification content.
* Contrary to the {@link android.app.Notification.BigPictureStyle}, this background
* will work with any notification style.
*
* @param background the background bitmap
* @return this obje... | Set a background image to be displayed behind the notification content. Contrary to the <code>android.app.Notification.BigPictureStyle</code>, this background will work with any notification style | setBackground | {
"repo_name": "daiqiquan/framework-base",
"path": "core/java/android/app/Notification.java",
"license": "apache-2.0",
"size": 264892
} | [
"android.graphics.Bitmap"
] | import android.graphics.Bitmap; | import android.graphics.*; | [
"android.graphics"
] | android.graphics; | 1,576,842 |
public void genericEncryptTest(String encryptAlgForBuilder, String decryptAlgForRS, List<NameValuePair> parms) throws Exception {
genericEncryptTest(encryptAlgForBuilder, setBuilderName(encryptAlgForBuilder), decryptAlgForRS, setAppName(decryptAlgForRS), null, parms);
} | void function(String encryptAlgForBuilder, String decryptAlgForRS, List<NameValuePair> parms) throws Exception { genericEncryptTest(encryptAlgForBuilder, setBuilderName(encryptAlgForBuilder), decryptAlgForRS, setAppName(decryptAlgForRS), null, parms); } | /**
* Generic method to create a JWT and use it to try to access a protected app
* (no extra messages need to be searched for in the server side logs)
* (build the builderId based on the passed encryptAlgForBuilder)
* (build the aooName based on the passed decryptAlgForRS)
*
* @param encry... | Generic method to create a JWT and use it to try to access a protected app (no extra messages need to be searched for in the server side logs) (build the builderId based on the passed encryptAlgForBuilder) (build the aooName based on the passed decryptAlgForRS) | genericEncryptTest | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.security.oidc.server_fat.jaxrs.config/fat/src/com/ibm/ws/security/openidconnect/server/fat/jaxrs/config/noOP/NoOPEncryptionRSServerTests.java",
"license": "epl-1.0",
"size": 53199
} | [
"com.gargoylesoftware.htmlunit.util.NameValuePair",
"java.util.List"
] | import com.gargoylesoftware.htmlunit.util.NameValuePair; import java.util.List; | import com.gargoylesoftware.htmlunit.util.*; import java.util.*; | [
"com.gargoylesoftware.htmlunit",
"java.util"
] | com.gargoylesoftware.htmlunit; java.util; | 1,943,311 |
private void assertReadVarintFailure(
InvalidProtocolBufferException expected, byte[] data)
throws Exception {
CodedInputStream input = CodedInputStream.newInstance(data);
try {
input.readRawVarint32();
fail("Should have thrown an exception.");
} catch (InvalidProtocolBufferExcepti... | void function( InvalidProtocolBufferException expected, byte[] data) throws Exception { CodedInputStream input = CodedInputStream.newInstance(data); try { input.readRawVarint32(); fail(STR); } catch (InvalidProtocolBufferException e) { assertEquals(expected.getMessage(), e.getMessage()); } input = CodedInputStream.newI... | /**
* Parses the given bytes using readRawVarint32() and readRawVarint64() and
* expects them to fail with an InvalidProtocolBufferException whose
* description matches the given one.
*/ | Parses the given bytes using readRawVarint32() and readRawVarint64() and expects them to fail with an InvalidProtocolBufferException whose description matches the given one | assertReadVarintFailure | {
"repo_name": "TextusData/Mover",
"path": "thirdparty/protobuf-2.2.0/java/src/test/java/com/google/protobuf/CodedInputStreamTest.java",
"license": "gpl-3.0",
"size": 17822
} | [
"java.io.ByteArrayInputStream"
] | import java.io.ByteArrayInputStream; | import java.io.*; | [
"java.io"
] | java.io; | 2,737,513 |
public String getLocalizedModified() {
return LocalizationService.getInstance().formatShortDate(getModified());
}
/**
* {@inheritDoc} | String function() { return LocalizationService.getInstance().formatShortDate(getModified()); } /** * {@inheritDoc} | /**
* Gets the creation date in localized form
* @return the localized date
*/ | Gets the creation date in localized form | getLocalizedModified | {
"repo_name": "xkollar/spacewalk",
"path": "java/code/src/com/redhat/rhn/domain/action/ActionChain.java",
"license": "gpl-2.0",
"size": 3844
} | [
"com.redhat.rhn.common.localization.LocalizationService"
] | import com.redhat.rhn.common.localization.LocalizationService; | import com.redhat.rhn.common.localization.*; | [
"com.redhat.rhn"
] | com.redhat.rhn; | 2,848,801 |
protected void initJPEGWriter(boolean supportsStreamMetadata,
boolean supportsImageMetadata) {
// Reset the writer to null if it does not match preferences.
if(this.JPEGWriter != null &&
(supportsStreamMetadata || supportsImageMetadata)) {
Ima... | void function(boolean supportsStreamMetadata, boolean supportsImageMetadata) { if(this.JPEGWriter != null && (supportsStreamMetadata supportsImageMetadata)) { ImageWriterSpi spi = this.JPEGWriter.getOriginatingProvider(); if(supportsStreamMetadata) { String smName = spi.getNativeStreamMetadataFormatName(); if(smName ==... | /**
* Initializes the JPEGWriter and JPEGParam instance variables.
* This method must be called before encode() is invoked.
*
* @param supportsStreamMetadata Whether the JPEG writer must
* support JPEG native stream metadata, i.e., be capable of writing
* abbreviated streams.
* @param... | Initializes the JPEGWriter and JPEGParam instance variables. This method must be called before encode() is invoked | initJPEGWriter | {
"repo_name": "stelfrich/bioformats",
"path": "components/forks/jai/src/com/sun/media/imageioimpl/plugins/tiff/TIFFBaseJPEGCompressor.java",
"license": "gpl-2.0",
"size": 20807
} | [
"java.util.Iterator",
"javax.imageio.ImageIO",
"javax.imageio.ImageWriteParam",
"javax.imageio.ImageWriter",
"javax.imageio.plugins.jpeg.JPEGImageWriteParam",
"javax.imageio.spi.ImageWriterSpi"
] | import java.util.Iterator; import javax.imageio.ImageIO; import javax.imageio.ImageWriteParam; import javax.imageio.ImageWriter; import javax.imageio.plugins.jpeg.JPEGImageWriteParam; import javax.imageio.spi.ImageWriterSpi; | import java.util.*; import javax.imageio.*; import javax.imageio.plugins.jpeg.*; import javax.imageio.spi.*; | [
"java.util",
"javax.imageio"
] | java.util; javax.imageio; | 2,789,096 |
EClass getBusinessObjectDAO(); | EClass getBusinessObjectDAO(); | /**
* Returns the meta object for class '{@link fr.eyal.lib.datalib.genmodel.android.datalib.model.BusinessObjectDAO <em>Business Object DAO</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Business Object DAO</em>'.
* @see fr.eyal.lib.datalib.genmodel.android... | Returns the meta object for class '<code>fr.eyal.lib.datalib.genmodel.android.datalib.model.BusinessObjectDAO Business Object DAO</code>'. | getBusinessObjectDAO | {
"repo_name": "eyal-lezmy/Android-DataLib",
"path": "Android-DataLib-Generator/fr.eyal.datalib.generator/src/fr/eyal/lib/datalib/genmodel/android/datalib/model/ModelPackage.java",
"license": "apache-2.0",
"size": 53826
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,165,466 |
protected void setData(IntArrayWrapper id, Object object) {
data.put(id, object);
} | void function(IntArrayWrapper id, Object object) { data.put(id, object); } | /**
* Sets data
* @param id - in ARX format
* @param object
*/ | Sets data | setData | {
"repo_name": "RaffaelBild/arx",
"path": "src/main/org/deidentifier/arx/framework/lattice/SolutionSpaceIntArray.java",
"license": "apache-2.0",
"size": 7304
} | [
"org.deidentifier.arx.framework.lattice.SolutionSpaceIntArray"
] | import org.deidentifier.arx.framework.lattice.SolutionSpaceIntArray; | import org.deidentifier.arx.framework.lattice.*; | [
"org.deidentifier.arx"
] | org.deidentifier.arx; | 1,687,599 |
@Override
void close() throws IOException; | void close() throws IOException; | /**
* Flush and close the writer.
*/ | Flush and close the writer | close | {
"repo_name": "spotify/sparkey-java",
"path": "src/main/java/com/spotify/sparkey/SparkeyWriter.java",
"license": "apache-2.0",
"size": 3627
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 452,528 |
public void doWrite(ByteChunk chunk)
throws IOException
{
outputBuffer.doWrite(chunk, this);
bytesWritten+=chunk.getLength();
}
// -------------------- | void function(ByteChunk chunk) throws IOException { outputBuffer.doWrite(chunk, this); bytesWritten+=chunk.getLength(); } | /**
* Write a chunk of bytes.
*/ | Write a chunk of bytes | doWrite | {
"repo_name": "johnaoahra80/JBOSSWEB_7_5_0_FINAL",
"path": "src/main/java/org/apache/coyote/Response.java",
"license": "apache-2.0",
"size": 15176
} | [
"java.io.IOException",
"org.apache.tomcat.util.buf.ByteChunk"
] | import java.io.IOException; import org.apache.tomcat.util.buf.ByteChunk; | import java.io.*; import org.apache.tomcat.util.buf.*; | [
"java.io",
"org.apache.tomcat"
] | java.io; org.apache.tomcat; | 1,735,325 |
public static void printStackTrace(@CheckForNull Throwable t, @NonNull PrintWriter pw) {
pw.println(printThrowable(t).trim());
} | static void function(@CheckForNull Throwable t, @NonNull PrintWriter pw) { pw.println(printThrowable(t).trim()); } | /**
* Like {@link Throwable#printStackTrace(PrintWriter)} but using {@link #printThrowable} format.
* @param t an exception to print
* @param pw the log
* @since 2.43
*/ | Like <code>Throwable#printStackTrace(PrintWriter)</code> but using <code>#printThrowable</code> format | printStackTrace | {
"repo_name": "v1v/jenkins",
"path": "core/src/main/java/hudson/Functions.java",
"license": "mit",
"size": 87344
} | [
"edu.umd.cs.findbugs.annotations.CheckForNull",
"edu.umd.cs.findbugs.annotations.NonNull",
"java.io.PrintWriter"
] | import edu.umd.cs.findbugs.annotations.CheckForNull; import edu.umd.cs.findbugs.annotations.NonNull; import java.io.PrintWriter; | import edu.umd.cs.findbugs.annotations.*; import java.io.*; | [
"edu.umd.cs",
"java.io"
] | edu.umd.cs; java.io; | 285,087 |
@Test
public void testLeafNodeBigIntegerParentNode() {
assertEquals("Leaf bucket should have prefix one", BigInteger.ONE, leaf
.getPrefix());
assertEquals("Parent should be pseudoRoot", pseudoRoot, leaf
.getParent());
assertNotNull("Bucket map should have been initialised", leaf.kBucket);
assertNotN... | void function() { assertEquals(STR, BigInteger.ONE, leaf .getPrefix()); assertEquals(STR, pseudoRoot, leaf .getParent()); assertNotNull(STR, leaf.kBucket); assertNotNull(STR, leaf.getReplacementCache()); } | /**
* Test more general constructor.
*/ | Test more general constructor | testLeafNodeBigIntegerParentNode | {
"repo_name": "flyroom/PeerfactSimKOM_Clone",
"path": "test/org/peerfact/impl/overlay/dht/kademlia2/base/routing/LeafNodeTest.java",
"license": "gpl-2.0",
"size": 3892
} | [
"java.math.BigInteger",
"org.junit.Assert"
] | import java.math.BigInteger; import org.junit.Assert; | import java.math.*; import org.junit.*; | [
"java.math",
"org.junit"
] | java.math; org.junit; | 509,014 |
public void setTaskErrorInWorkflow(DelegateExecution execution, String errorMessage, Exception exception)
{
setTaskWorkflowVariable(execution, VARIABLE_STATUS, TASK_STATUS_ERROR);
setTaskWorkflowVariable(execution, VARIABLE_ERROR_MESSAGE, errorMessage);
if (exception != null)
{
... | void function(DelegateExecution execution, String errorMessage, Exception exception) { setTaskWorkflowVariable(execution, VARIABLE_STATUS, TASK_STATUS_ERROR); setTaskWorkflowVariable(execution, VARIABLE_ERROR_MESSAGE, errorMessage); if (exception != null) { LOGGER.warn(STR + STR{}\STR{}\"", execution.getCurrentActivity... | /**
* Sets the task error status and message in workflow variables.
*
* @param execution the workflow execution.
* @param errorMessage the error message.
* @param exception an optional exception that caused the error.
*/ | Sets the task error status and message in workflow variables | setTaskErrorInWorkflow | {
"repo_name": "FINRAOS/herd",
"path": "herd-code/herd-service/src/main/java/org/finra/herd/service/activiti/ActivitiRuntimeHelper.java",
"license": "apache-2.0",
"size": 6500
} | [
"org.activiti.engine.delegate.DelegateExecution"
] | import org.activiti.engine.delegate.DelegateExecution; | import org.activiti.engine.delegate.*; | [
"org.activiti.engine"
] | org.activiti.engine; | 1,210,507 |
Optional<EnderCrystal> getHealingCrystal(); | Optional<EnderCrystal> getHealingCrystal(); | /**
* Returns the current {@code EnderCrystal} that is healing this ender dragon.
*
* @return The ender crystal
*/ | Returns the current EnderCrystal that is healing this ender dragon | getHealingCrystal | {
"repo_name": "AlphaModder/SpongeAPI",
"path": "src/main/java/org/spongepowered/api/entity/living/complex/EnderDragon.java",
"license": "mit",
"size": 1903
} | [
"java.util.Optional",
"org.spongepowered.api.entity.EnderCrystal"
] | import java.util.Optional; import org.spongepowered.api.entity.EnderCrystal; | import java.util.*; import org.spongepowered.api.entity.*; | [
"java.util",
"org.spongepowered.api"
] | java.util; org.spongepowered.api; | 1,421,164 |
@Test
public final void testSetRFDataValidData() {
// Setup the resources for the test.
byte[] origData = new byte[]{(byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF};
byte[] data = new byte[]{(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00};
GenericXBeePacket packet = new GenericXBeePa... | final void function() { byte[] origData = new byte[]{(byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF, (byte)0xFF}; byte[] data = new byte[]{(byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00, (byte)0x00}; GenericXBeePacket packet = new GenericXBeePacket(origData); packet.setRFData(data); byte[] result = packet.getRFData(); ... | /**
* Test method for {@link com.digi.xbee.api.packet.GenericXBeePacket#setRFData(byte[])}.
*/ | Test method for <code>com.digi.xbee.api.packet.GenericXBeePacket#setRFData(byte[])</code> | testSetRFDataValidData | {
"repo_name": "brucetsao/XBeeJavaLibrary",
"path": "library/src/test/java/com/digi/xbee/api/packet/GenericXBeePacketTest.java",
"license": "mpl-2.0",
"size": 13989
} | [
"com.digi.xbee.api.packet.GenericXBeePacket",
"org.hamcrest.core.Is",
"org.junit.Assert"
] | import com.digi.xbee.api.packet.GenericXBeePacket; import org.hamcrest.core.Is; import org.junit.Assert; | import com.digi.xbee.api.packet.*; import org.hamcrest.core.*; import org.junit.*; | [
"com.digi.xbee",
"org.hamcrest.core",
"org.junit"
] | com.digi.xbee; org.hamcrest.core; org.junit; | 760,000 |
@ServiceMethod(returns = ReturnType.COLLECTION)
public PagedIterable<AnalysisDefinitionInner> listSiteAnalysesSlot(
String resourceGroupName, String siteName, String diagnosticCategory, String slot) {
return new PagedIterable<>(listSiteAnalysesSlotAsync(resourceGroupName, siteName, diagnosticCat... | @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable<AnalysisDefinitionInner> function( String resourceGroupName, String siteName, String diagnosticCategory, String slot) { return new PagedIterable<>(listSiteAnalysesSlotAsync(resourceGroupName, siteName, diagnosticCategory, slot)); } | /**
* Description for Get Site Analyses.
*
* @param resourceGroupName Name of the resource group to which the resource belongs.
* @param siteName Site Name.
* @param diagnosticCategory Diagnostic Category.
* @param slot Slot Name.
* @throws IllegalArgumentException thrown if parameter... | Description for Get Site Analyses | listSiteAnalysesSlot | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/resourcemanager/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/DiagnosticsClientImpl.java",
"license": "mit",
"size": 288640
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.PagedIterable",
"com.azure.resourcemanager.appservice.fluent.models.AnalysisDefinitionInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.resourcemanager.appservice.fluent.models.AnalysisDefinitionInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.resourcemanager.appservice.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 393,001 |
@Override
public void unAssignTask(Task task) throws WorkflowException {
String componentId = task.getProcessInstance().getModelId();
ComponentInst compoInst;
try {
compoInst = AdministrationServiceProvider.getAdminService().getComponentInst(componentId);
} catch (AdminException e) {
th... | void function(Task task) throws WorkflowException { String componentId = task.getProcessInstance().getModelId(); ComponentInst compoInst; try { compoInst = AdministrationServiceProvider.getAdminService().getComponentInst(componentId); } catch (AdminException e) { throw new WorkflowException(STR, STR, e); } if (task.get... | /**
* Removes a task.
*/ | Removes a task | unAssignTask | {
"repo_name": "ebonnet/Silverpeas-Core",
"path": "core-services/workflow/src/main/java/org/silverpeas/core/workflow/engine/task/TaskManagerImpl.java",
"license": "agpl-3.0",
"size": 10052
} | [
"java.util.List",
"org.silverpeas.core.admin.component.model.ComponentInst",
"org.silverpeas.core.admin.service.AdminException",
"org.silverpeas.core.admin.service.AdministrationServiceProvider",
"org.silverpeas.core.workflow.api.WorkflowException",
"org.silverpeas.core.workflow.api.task.Task",
"org.sil... | import java.util.List; import org.silverpeas.core.admin.component.model.ComponentInst; import org.silverpeas.core.admin.service.AdminException; import org.silverpeas.core.admin.service.AdministrationServiceProvider; import org.silverpeas.core.workflow.api.WorkflowException; import org.silverpeas.core.workflow.api.task.... | import java.util.*; import org.silverpeas.core.admin.component.model.*; import org.silverpeas.core.admin.service.*; import org.silverpeas.core.workflow.api.*; import org.silverpeas.core.workflow.api.task.*; import org.silverpeas.core.workflow.api.user.*; | [
"java.util",
"org.silverpeas.core"
] | java.util; org.silverpeas.core; | 2,514,144 |
@Override
public ResultSet getResultSet(long index, int count, Map<String, Class<?>> map) throws SQLException {
try {
debugCode("getResultSet("+index+", " + count+", " + quoteMap(map)+");");
checkClosed();
checkMap(map);
return getResultSet(get(index, coun... | ResultSet function(long index, int count, Map<String, Class<?>> map) throws SQLException { try { debugCode(STR+index+STR + count+STR + quoteMap(map)+");"); checkClosed(); checkMap(map); return getResultSet(get(index, count), index); } catch (Exception e) { throw logAndConvert(e); } } | /**
* Returns the value as a result set.
* The first column contains the index
* (starting with 1) and the second column the value.
* A subset of the array is returned, starting from the index
* (1 meaning the first element) and up to the given object count.
*
* @param index the start... | Returns the value as a result set. The first column contains the index (starting with 1) and the second column the value. A subset of the array is returned, starting from the index (1 meaning the first element) and up to the given object count | getResultSet | {
"repo_name": "ferquies/2dam",
"path": "AD/Tema 2/h2/src/main/org/h2/jdbc/JdbcArray.java",
"license": "gpl-3.0",
"size": 8931
} | [
"java.sql.ResultSet",
"java.sql.SQLException",
"java.util.Map"
] | import java.sql.ResultSet; import java.sql.SQLException; import java.util.Map; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 2,167,305 |
@Override
public boolean onOptionsItemSelected ( MenuItem item )
{
switch ( item.getItemId () )
{
case R.id.activity_menu_refresh:
refresh ( true );
return true;
default:
... | boolean function ( MenuItem item ) { switch ( item.getItemId () ) { case R.id.activity_menu_refresh: refresh ( true ); return true; default: return super.onOptionsItemSelected ( item ); } } | /**
* Handles click on "Refresh" menu entry.
*/ | Handles click on "Refresh" menu entry | onOptionsItemSelected | {
"repo_name": "phantomis/android-utilities",
"path": "src/co/bitcode/android/app/RefreshableActivity.java",
"license": "gpl-3.0",
"size": 2370
} | [
"android.view.MenuItem"
] | import android.view.MenuItem; | import android.view.*; | [
"android.view"
] | android.view; | 1,148,075 |
public ParameterList toParameterList() {
m_parameterList.deleteParams();
for (Locator lit : m_unicastLocatorList) {
ParameterLocator p = new ParameterLocator(PID_UNICAST_LOCATOR, PARAMETER_LOCATOR_LENGTH, lit);
m_parameterList.addParameter(p);
}
for (Locator l... | ParameterList function() { m_parameterList.deleteParams(); for (Locator lit : m_unicastLocatorList) { ParameterLocator p = new ParameterLocator(PID_UNICAST_LOCATOR, PARAMETER_LOCATOR_LENGTH, lit); m_parameterList.addParameter(p); } for (Locator lit : m_multicastLocatorList) { ParameterLocator p = new ParameterLocator(P... | /**
* Convert the data to a parameter list to send this information as a RTPS
* message.
*
* @return The ParameterList
*/ | Convert the data to a parameter list to send this information as a RTPS message | toParameterList | {
"repo_name": "Fiware/i2nd.KIARA",
"path": "src/main/java/org/fiware/kiara/ps/rtps/builtin/data/ReaderProxyData.java",
"license": "lgpl-3.0",
"size": 27666
} | [
"org.fiware.kiara.ps.qos.policies.DeadLineQosPolicy",
"org.fiware.kiara.ps.qos.policies.DestinationOrderQosPolicy",
"org.fiware.kiara.ps.qos.policies.DurabilityQosPolicy",
"org.fiware.kiara.ps.qos.policies.DurabilityServiceQosPolicy",
"org.fiware.kiara.ps.qos.policies.GroupDataQosPolicy",
"org.fiware.kiar... | import org.fiware.kiara.ps.qos.policies.DeadLineQosPolicy; import org.fiware.kiara.ps.qos.policies.DestinationOrderQosPolicy; import org.fiware.kiara.ps.qos.policies.DurabilityQosPolicy; import org.fiware.kiara.ps.qos.policies.DurabilityServiceQosPolicy; import org.fiware.kiara.ps.qos.policies.GroupDataQosPolicy; impor... | import org.fiware.kiara.ps.qos.policies.*; import org.fiware.kiara.ps.rtps.common.*; import org.fiware.kiara.ps.rtps.messages.elements.*; import org.fiware.kiara.ps.rtps.messages.elements.parameters.*; | [
"org.fiware.kiara"
] | org.fiware.kiara; | 1,482,565 |
static LabelNode[] clone(final List<LabelNode> labels,
final Map<LabelNode, LabelNode> map) {
LabelNode[] clones = new LabelNode[labels.size()];
for (int i = 0; i < clones.length; ++i) {
clones[i] = map.get(labels.get(i));
}
return clones;
} | static LabelNode[] clone(final List<LabelNode> labels, final Map<LabelNode, LabelNode> map) { LabelNode[] clones = new LabelNode[labels.size()]; for (int i = 0; i < clones.length; ++i) { clones[i] = map.get(labels.get(i)); } return clones; } | /**
* Returns the clones of the given labels.
*
* @param labels
* a list of labels.
* @param map
* a map from LabelNodes to cloned LabelNodes.
* @return the clones of the given labels.
*/ | Returns the clones of the given labels | clone | {
"repo_name": "RallySoftware/eclipselink.runtime",
"path": "plugins/org.eclipse.persistence.asm/src/org/eclipse/persistence/internal/libraries/asm/tree/AbstractInsnNode.java",
"license": "epl-1.0",
"size": 10566
} | [
"java.util.List",
"java.util.Map"
] | import java.util.List; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 1,062,404 |
ISharedConnectionHandle[] result = new ISharedConnectionHandle[2];
result[0] = _connection1.createHandle();
try {
result[1] = _connection2.createHandle();
} catch (JMSException e) {
// An exception occured when trying to create the second connection.
// Clean ... | ISharedConnectionHandle[] result = new ISharedConnectionHandle[2]; result[0] = _connection1.createHandle(); try { result[1] = _connection2.createHandle(); } catch (JMSException e) { result[0].release(); throw e; } return result; } | /**
* Returns handles to the shared connections.
*
* @return handles to the shared connections.
* @throws JMSException
* if one of the underlying shared connections could not be
* created or started due to an internal error.
*/ | Returns handles to the shared connections | sharedConnections | {
"repo_name": "ESSICS/cs-studio",
"path": "core/platform/platform-plugins/org.csstudio.platform.utility.jms/src/org/csstudio/platform/internal/utility/jms/sharedconnection/SharedReceiverConnectionService.java",
"license": "epl-1.0",
"size": 5034
} | [
"javax.jms.JMSException",
"org.csstudio.platform.utility.jms.sharedconnection.ISharedConnectionHandle"
] | import javax.jms.JMSException; import org.csstudio.platform.utility.jms.sharedconnection.ISharedConnectionHandle; | import javax.jms.*; import org.csstudio.platform.utility.jms.sharedconnection.*; | [
"javax.jms",
"org.csstudio.platform"
] | javax.jms; org.csstudio.platform; | 40,757 |
@Override
public void onApplicationEvent(InteractiveAuthenticationSuccessEvent event) {
Object principal = event.getAuthentication().getPrincipal();
if (principal instanceof UserDetails) {
UserDetails user = (UserDetails) principal;
Optional<UserApiData> userForLogin = Us... | void function(InteractiveAuthenticationSuccessEvent event) { Object principal = event.getAuthentication().getPrincipal(); if (principal instanceof UserDetails) { UserDetails user = (UserDetails) principal; Optional<UserApiData> userForLogin = UserServiceAPI.init(endpointProvider.getUserMicroserviceEndpoint()) .users() ... | /**
* Will be called upon the successful login of a user, updates the user's status in the user micro-service. This
* will update the date of the user's last login to the current timestamp and mark the user as logged in in the service.
*
* @param event event which indicates that a user has successfu... | Will be called upon the successful login of a user, updates the user's status in the user micro-service. This will update the date of the user's last login to the current timestamp and mark the user as logged in in the service | onApplicationEvent | {
"repo_name": "rolandkrueger/user-microservice",
"path": "public-api/src/main/java/info/rolandkrueger/userservice/api/service/AuthenticationListener.java",
"license": "apache-2.0",
"size": 3053
} | [
"info.rolandkrueger.userservice.api.UserServiceAPI",
"info.rolandkrueger.userservice.api.model.UserApiData",
"java.util.Optional",
"org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent",
"org.springframework.security.core.userdetails.UserDetails"
] | import info.rolandkrueger.userservice.api.UserServiceAPI; import info.rolandkrueger.userservice.api.model.UserApiData; import java.util.Optional; import org.springframework.security.authentication.event.InteractiveAuthenticationSuccessEvent; import org.springframework.security.core.userdetails.UserDetails; | import info.rolandkrueger.userservice.api.*; import info.rolandkrueger.userservice.api.model.*; import java.util.*; import org.springframework.security.authentication.event.*; import org.springframework.security.core.userdetails.*; | [
"info.rolandkrueger.userservice",
"java.util",
"org.springframework.security"
] | info.rolandkrueger.userservice; java.util; org.springframework.security; | 2,210,329 |
public Observable<ServiceResponse<PipelineRunsQueryResponseInner>> queryByFactoryWithServiceResponseAsync(String resourceGroupName, String factoryName, RunFilterParameters filterParameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.client.su... | Observable<ServiceResponse<PipelineRunsQueryResponseInner>> function(String resourceGroupName, String factoryName, RunFilterParameters filterParameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if... | /**
* Query pipeline runs in the factory based on input filter conditions.
*
* @param resourceGroupName The resource group name.
* @param factoryName The factory name.
* @param filterParameters Parameters to filter the pipeline run.
* @throws IllegalArgumentException thrown if parameters f... | Query pipeline runs in the factory based on input filter conditions | queryByFactoryWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/datafactory/mgmt-v2018_06_01/src/main/java/com/microsoft/azure/management/datafactory/v2018_06_01/implementation/PipelineRunsInner.java",
"license": "mit",
"size": 24058
} | [
"com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.management.datafactory.v2018_06_01.RunFilterParameters; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.management.datafactory.v2018_06_01.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 1,008,603 |
@Override
public Collection<String> getCacheNames() {
return caches.keySet();
} | Collection<String> function() { return caches.keySet(); } | /**
* Get a collection of the cache names known by this manager.
*
* @return the names of all caches known by the cache manager
*/ | Get a collection of the cache names known by this manager | getCacheNames | {
"repo_name": "zhx828/cbioportal",
"path": "persistence/persistence-api/src/main/java/org/cbioportal/persistence/util/CustomRedisCacheManager.java",
"license": "agpl-3.0",
"size": 2154
} | [
"java.util.Collection"
] | import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 2,142,131 |
public com.iucn.whp.dbservice.model.understanding_benefits updateunderstanding_benefits(
com.iucn.whp.dbservice.model.understanding_benefits understanding_benefits)
throws com.liferay.portal.kernel.exception.SystemException; | com.iucn.whp.dbservice.model.understanding_benefits function( com.iucn.whp.dbservice.model.understanding_benefits understanding_benefits) throws com.liferay.portal.kernel.exception.SystemException; | /**
* Updates the understanding_benefits in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
*
* @param understanding_benefits the understanding_benefits
* @return the understanding_benefits that was updated
* @throws SystemException if a system exception occurred
*... | Updates the understanding_benefits in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners | updateunderstanding_benefits | {
"repo_name": "iucn-whp/world-heritage-outlook",
"path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/service/com/iucn/whp/dbservice/service/understanding_benefitsLocalService.java",
"license": "gpl-2.0",
"size": 11874
} | [
"com.liferay.portal.kernel.exception.SystemException"
] | import com.liferay.portal.kernel.exception.SystemException; | import com.liferay.portal.kernel.exception.*; | [
"com.liferay.portal"
] | com.liferay.portal; | 623,855 |
//--------//
// unGzip //
//--------//
public static File unGzip (final File inFile,
final File outDir)
throws FileNotFoundException, IOException
{
logger.debug("Ungzipping {} to dir {}", inFile, outDir);
final String inName = inF... | static File function (final File inFile, final File outDir) throws FileNotFoundException, IOException { logger.debug(STR, inFile, outDir); final String inName = inFile.getName(); assert inName.endsWith(GZ_EXT); final InputStream in = new GZIPInputStream(new FileInputStream(inFile)); final File outFile = streamToFile( i... | /**
* Ungzip an input file into an output file.
*
* The output file is created in the output folder, having the same name
* as the input file, minus the '.gz' extension.
*
* @param inFile the input .gz file
* @param outDir the output directory file.
* @throws IOException
... | Ungzip an input file into an output file. The output file is created in the output folder, having the same name as the input file, minus the '.gz' extension | unGzip | {
"repo_name": "jlpoolen/libreveris",
"path": "src/installer/com/audiveris/installer/Expander.java",
"license": "lgpl-3.0",
"size": 6322
} | [
"java.io.File",
"java.io.FileInputStream",
"java.io.FileNotFoundException",
"java.io.IOException",
"java.io.InputStream",
"java.util.zip.GZIPInputStream"
] | import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import java.util.zip.GZIPInputStream; | import java.io.*; import java.util.zip.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 786,573 |
public synchronized static ViewContext createViewContext( URL url, User user, String sessionID )
throws IOException, XMLParsingException, ContextException, SAXException,
UnknownCRSException {
// cache have to be cleared because contained capabilitie... | synchronized static ViewContext function( URL url, User user, String sessionID ) throws IOException, XMLParsingException, ContextException, SAXException, UnknownCRSException { wmsCache.clear(); XMLFragment xml = new XMLFragment( url ); return createViewContext( xml, user, sessionID ); } | /**
* creates an instance of a ViewContext from the web map context document read from the passed URL
*
* @param url
* @param user
* @param sessionID
* @return new ViewContext for web map context document from <code>url</code>
* @throws IOException
* @throws XMLParsingEx... | creates an instance of a ViewContext from the web map context document read from the passed URL | createViewContext | {
"repo_name": "lat-lon/deegree2-base",
"path": "deegree2-core/src/main/java/org/deegree/portal/context/WebMapContextFactory.java",
"license": "lgpl-2.1",
"size": 81596
} | [
"java.io.IOException",
"org.deegree.framework.xml.XMLFragment",
"org.deegree.framework.xml.XMLParsingException",
"org.deegree.model.crs.UnknownCRSException",
"org.deegree.security.drm.model.User",
"org.xml.sax.SAXException"
] | import java.io.IOException; import org.deegree.framework.xml.XMLFragment; import org.deegree.framework.xml.XMLParsingException; import org.deegree.model.crs.UnknownCRSException; import org.deegree.security.drm.model.User; import org.xml.sax.SAXException; | import java.io.*; import org.deegree.framework.xml.*; import org.deegree.model.crs.*; import org.deegree.security.drm.model.*; import org.xml.sax.*; | [
"java.io",
"org.deegree.framework",
"org.deegree.model",
"org.deegree.security",
"org.xml.sax"
] | java.io; org.deegree.framework; org.deegree.model; org.deegree.security; org.xml.sax; | 2,538,855 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.