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
public Date getProductionDate() { return productionDate; }
Date function() { return productionDate; }
/** * This method was generated by MyBatis Generator. * This method returns the value of the database column t_mainframe.production_date * * @return the value of t_mainframe.production_date * * @mbg.generated ...
This method was generated by MyBatis Generator. This method returns the value of the database column t_mainframe.production_date
getProductionDate
{ "repo_name": "zdtjss/nway-jdbc", "path": "src/test/java/com/nway/spring/jdbc/performance/dal/po/MainframePoEntity.java", "license": "apache-2.0", "size": 17621 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
431,248
public boolean isFeatureSupported(String feature) throws IOException, ServerException { return getFeatureList().contains(feature); }
boolean function(String feature) throws IOException, ServerException { return getFeatureList().contains(feature); }
/** * Returns true if the given feature is supported by remote server, * false otherwise. * * @return true if the given feature is supported by remote server, * false otherwise. */
Returns true if the given feature is supported by remote server, false otherwise
isFeatureSupported
{ "repo_name": "dCache/JGlobus", "path": "gridftp/src/main/java/org/globus/ftp/FTPClient.java", "license": "apache-2.0", "size": 82277 }
[ "java.io.IOException", "org.globus.ftp.exception.ServerException" ]
import java.io.IOException; import org.globus.ftp.exception.ServerException;
import java.io.*; import org.globus.ftp.exception.*;
[ "java.io", "org.globus.ftp" ]
java.io; org.globus.ftp;
2,286,323
private boolean textEquals(File f1, File f2) throws IOException { BufferedReader in1 = null; BufferedReader in2 = null; try { in1 = new BufferedReader(new FileReader(f1)); in2 = new BufferedReader(new FileReader(f2)); String expected = in1.rea...
boolean function(File f1, File f2) throws IOException { BufferedReader in1 = null; BufferedReader in2 = null; try { in1 = new BufferedReader(new FileReader(f1)); in2 = new BufferedReader(new FileReader(f2)); String expected = in1.readLine(); while (expected != null) { if (!expected.equals(in2.readLine())) { return fals...
/** * Text compares the contents of two files. * <p/> * Ignores different kinds of line endings. * * @param f1 the file whose content is to be compared. * @param f2 the other file whose content is to be compared. * @return true if the content of the files is the same. * @throws I...
Text compares the contents of two files. Ignores different kinds of line endings
textEquals
{ "repo_name": "mtjandra/izpack", "path": "izpack-util/src/main/java/com/izforge/izpack/util/file/FileUtils.java", "license": "apache-2.0", "size": 38358 }
[ "java.io.BufferedReader", "java.io.File", "java.io.FileReader", "java.io.IOException" ]
import java.io.BufferedReader; import java.io.File; import java.io.FileReader; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,784,540
String framedLayout(); } public static enum TextLocation { CENTER, LEFT, RIGHT; } private static class ImageButton extends Image { private boolean disabled; private final ImageResource resDisabled; private f...
String framedLayout(); } public static enum TextLocation { CENTER, LEFT, RIGHT; } private static class ImageButton extends Image { private boolean disabled; private final ImageResource resDisabled; private final ImageResource resEnabled; private final String styleDisabled; private final ImageResource resOver; private f...
/** * Applied to the details text. */
Applied to the details text
framedLayout
{ "repo_name": "A24Group/ssGWT-lib", "path": "src/org/ssgwt/client/ui/datagrid/SSPager.java", "license": "apache-2.0", "size": 26935 }
[ "com.google.gwt.event.dom.client.MouseOverHandler", "com.google.gwt.resources.client.ImageResource", "com.google.gwt.user.client.ui.Image" ]
import com.google.gwt.event.dom.client.MouseOverHandler; import com.google.gwt.resources.client.ImageResource; import com.google.gwt.user.client.ui.Image;
import com.google.gwt.event.dom.client.*; import com.google.gwt.resources.client.*; import com.google.gwt.user.client.ui.*;
[ "com.google.gwt" ]
com.google.gwt;
751,654
public static long addAndCheck(long a, long b) { return addAndCheck(a, b, LocalizedFormats.OVERFLOW_IN_ADDITION); }
static long function(long a, long b) { return addAndCheck(a, b, LocalizedFormats.OVERFLOW_IN_ADDITION); }
/** * Add two long integers, checking for overflow. * * @param a an addend * @param b an addend * @return the sum <code>a+b</code> * @throws ArithmeticException if the result can not be represented as an * long * @since 1.2 */
Add two long integers, checking for overflow
addAndCheck
{ "repo_name": "SpoonLabs/astor", "path": "examples/math_63/src/main/java/org/apache/commons/math/util/MathUtils.java", "license": "gpl-2.0", "size": 69070 }
[ "org.apache.commons.math.exception.util.LocalizedFormats" ]
import org.apache.commons.math.exception.util.LocalizedFormats;
import org.apache.commons.math.exception.util.*;
[ "org.apache.commons" ]
org.apache.commons;
1,420,803
public boolean pingSupplicant() { if (mService == null) return false; try { return mService.pingSupplicant(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } public static final int WIFI_FEATURE_INFRA ...
boolean function() { if (mService == null) return false; try { return mService.pingSupplicant(); } catch (RemoteException e) { throw e.rethrowFromSystemServer(); } } public static final int WIFI_FEATURE_INFRA = 0x0001; public static final int WIFI_FEATURE_INFRA_5G = 0x0002; public static final int WIFI_FEATURE_PASSPOIN...
/** * Check that the supplicant daemon is responding to requests. * @return {@code true} if we were able to communicate with the supplicant and * it returned the expected response to the PING message. */
Check that the supplicant daemon is responding to requests
pingSupplicant
{ "repo_name": "xorware/android_frameworks_base", "path": "wifi/java/android/net/wifi/WifiManager.java", "license": "apache-2.0", "size": 97957 }
[ "android.os.RemoteException" ]
import android.os.RemoteException;
import android.os.*;
[ "android.os" ]
android.os;
1,051,443
private JLabel getFindClassLabel() { if (findClassLabel == null) { findClassLabel = new JLabel(); findClassLabel.setText("Find Class:"); } return findClassLabel; }
JLabel function() { if (findClassLabel == null) { findClassLabel = new JLabel(); findClassLabel.setText(STR); } return findClassLabel; }
/** * This method initializes findClassLabel * * @return javax.swing.JLabel */
This method initializes findClassLabel
getFindClassLabel
{ "repo_name": "NCIP/cagrid-core", "path": "caGrid/projects/data/src/java/tools/gov/nih/nci/cagrid/data/utilities/dmviz/DomainModelVisualizationPanel.java", "license": "bsd-3-clause", "size": 18605 }
[ "javax.swing.JLabel" ]
import javax.swing.JLabel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,629,936
private void updateJobWithSplit(final JobConf job, InputSplit inputSplit) { if (inputSplit instanceof FileSplit) { FileSplit fileSplit = (FileSplit) inputSplit; job.set(JobContext.MAP_INPUT_FILE, fileSplit.getPath().toString()); job.setLong(JobContext.MAP_INPUT_START, fileSplit.getStart()); ...
void function(final JobConf job, InputSplit inputSplit) { if (inputSplit instanceof FileSplit) { FileSplit fileSplit = (FileSplit) inputSplit; job.set(JobContext.MAP_INPUT_FILE, fileSplit.getPath().toString()); job.setLong(JobContext.MAP_INPUT_START, fileSplit.getStart()); job.setLong(JobContext.MAP_INPUT_PATH, fileSpl...
/** * Update the job with details about the file split * @param job the job configuration to update * @param inputSplit the file split */
Update the job with details about the file split
updateJobWithSplit
{ "repo_name": "ChetnaChaudhari/tez", "path": "tez-mapreduce/src/main/java/org/apache/tez/mapreduce/processor/map/MapProcessor.java", "license": "apache-2.0", "size": 12866 }
[ "org.apache.hadoop.mapred.FileSplit", "org.apache.hadoop.mapred.InputSplit", "org.apache.hadoop.mapred.JobConf", "org.apache.hadoop.mapred.JobContext" ]
import org.apache.hadoop.mapred.FileSplit; import org.apache.hadoop.mapred.InputSplit; import org.apache.hadoop.mapred.JobConf; import org.apache.hadoop.mapred.JobContext;
import org.apache.hadoop.mapred.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,861,996
Optional<RuleKey> getRuleKey(String key);
Optional<RuleKey> getRuleKey(String key);
/** * Returns the {@link RuleKey} for the rule whose output is currently stored on disk. * * <p>This value would have been written the last time the rule was built successfully. */
Returns the <code>RuleKey</code> for the rule whose output is currently stored on disk. This value would have been written the last time the rule was built successfully
getRuleKey
{ "repo_name": "facebook/buck", "path": "src/com/facebook/buck/core/build/engine/buildinfo/OnDiskBuildInfo.java", "license": "apache-2.0", "size": 3124 }
[ "com.facebook.buck.core.rulekey.RuleKey", "java.util.Optional" ]
import com.facebook.buck.core.rulekey.RuleKey; import java.util.Optional;
import com.facebook.buck.core.rulekey.*; import java.util.*;
[ "com.facebook.buck", "java.util" ]
com.facebook.buck; java.util;
1,745,698
public void remove() throws InterruptedException { List peekedIds = (List)HARegionQueue.peekedEventsContext.get(); if (peekedIds == null) { if (logger.isDebugEnabled()) { logger.debug("Remove() called before peek(), nothing to remove."); } return; } if (!this.checkPrevAc...
void function() throws InterruptedException { List peekedIds = (List)HARegionQueue.peekedEventsContext.get(); if (peekedIds == null) { if (logger.isDebugEnabled()) { logger.debug(STR); } return; } if (!this.checkPrevAcks()) { return; } Map groupedThreadIDs = new HashMap(); for (Iterator iter = peekedIds.iterator(); ite...
/** * Removes the events that were peeked by this thread. The events are * destroyed from the queue and conflation map and DispatchedAndCurrentEvents * are updated accordingly. * @throws InterruptedException */
Removes the events that were peeked by this thread. The events are destroyed from the queue and conflation map and DispatchedAndCurrentEvents are updated accordingly
remove
{ "repo_name": "robertgeiger/incubator-geode", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/internal/cache/ha/HARegionQueue.java", "license": "apache-2.0", "size": 145663 }
[ "com.gemstone.gemfire.cache.CacheException", "com.gemstone.gemfire.internal.cache.Conflatable", "com.gemstone.gemfire.internal.cache.EventID", "com.gemstone.gemfire.internal.i18n.LocalizedStrings", "com.gemstone.gemfire.internal.logging.log4j.LocalizedMessage", "java.util.ArrayList", "java.util.HashMap"...
import com.gemstone.gemfire.cache.CacheException; import com.gemstone.gemfire.internal.cache.Conflatable; import com.gemstone.gemfire.internal.cache.EventID; import com.gemstone.gemfire.internal.i18n.LocalizedStrings; import com.gemstone.gemfire.internal.logging.log4j.LocalizedMessage; import java.util.ArrayList; impor...
import com.gemstone.gemfire.cache.*; import com.gemstone.gemfire.internal.cache.*; import com.gemstone.gemfire.internal.i18n.*; import com.gemstone.gemfire.internal.logging.log4j.*; import java.util.*;
[ "com.gemstone.gemfire", "java.util" ]
com.gemstone.gemfire; java.util;
212,210
@SuppressWarnings("unchecked") private void loadData(final DBConfigObject dbConfig, final Long start, final Long end, List<Long> courses, List<String> logins) { // accessing DB by creating a session and a transaction using HibernateUtil final Session session = ClixHibernateUtil.getSessionFactory(dbConfig)....
@SuppressWarnings(STR) void function(final DBConfigObject dbConfig, final Long start, final Long end, List<Long> courses, List<String> logins) { final Session session = ClixHibernateUtil.getSessionFactory(dbConfig).openSession(); boolean hasCR = false; if(courses != null && courses.size() > 0) hasCR = true; boolean emp...
/** * Loads all tables needed for the data-extraction from the Clix database. * * @param start * the start * @param end * the end */
Loads all tables needed for the data-extraction from the Clix database
loadData
{ "repo_name": "LemoProject/lemo2", "path": "src/main/java/de/lemo/dms/connectors/clix2010/ClixImporter.java", "license": "gpl-3.0", "size": 130676 }
[ "de.lemo.dms.connectors.CriteriaHelper", "de.lemo.dms.connectors.clix2010.clixHelper.TimeConverter", "de.lemo.dms.connectors.clix2010.mapping.BiTrackContentImpressions", "de.lemo.dms.connectors.clix2010.mapping.ChatProtocol", "de.lemo.dms.connectors.clix2010.mapping.EComponent", "de.lemo.dms.connectors.cl...
import de.lemo.dms.connectors.CriteriaHelper; import de.lemo.dms.connectors.clix2010.clixHelper.TimeConverter; import de.lemo.dms.connectors.clix2010.mapping.BiTrackContentImpressions; import de.lemo.dms.connectors.clix2010.mapping.ChatProtocol; import de.lemo.dms.connectors.clix2010.mapping.EComponent; import de.lemo....
import de.lemo.dms.connectors.*; import de.lemo.dms.connectors.clix2010.*; import de.lemo.dms.connectors.clix2010.mapping.*; import de.lemo.dms.db.*; import java.util.*; import org.hibernate.*; import org.hibernate.criterion.*;
[ "de.lemo.dms", "java.util", "org.hibernate", "org.hibernate.criterion" ]
de.lemo.dms; java.util; org.hibernate; org.hibernate.criterion;
1,831,933
EList<CoordinateSystem> getCoordinateSystems();
EList<CoordinateSystem> getCoordinateSystems();
/** * Returns the value of the '<em><b>Coordinate Systems</b></em>' reference list. * The list contents are of type {@link CIM.IEC61968.Common.CoordinateSystem}. * It is bidirectional and its opposite is '{@link CIM.IEC61968.Common.CoordinateSystem#getGmlDiagramObjects <em>Gml Diagram Objects</em>}'. * <!-- beg...
Returns the value of the 'Coordinate Systems' reference list. The list contents are of type <code>CIM.IEC61968.Common.CoordinateSystem</code>. It is bidirectional and its opposite is '<code>CIM.IEC61968.Common.CoordinateSystem#getGmlDiagramObjects Gml Diagram Objects</code>'. If the meaning of the 'Coordinate Systems' ...
getCoordinateSystems
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Informative/InfGMLSupport/GmlDiagramObject.java", "license": "mit", "size": 10598 }
[ "org.eclipse.emf.common.util.EList" ]
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
615,016
public final List<Npc> getLocalNpcList() { return localNpcs; }
final List<Npc> function() { return localNpcs; }
/** * Gets this mob's local npc {@link List}. * * @return The list. */
Gets this mob's local npc <code>List</code>
getLocalNpcList
{ "repo_name": "apollo-rsps/apollo", "path": "game/src/main/java/org/apollo/game/model/entity/Mob.java", "license": "isc", "size": 14201 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
876,055
public void assertEmpty(AssertionInfo info, short[] actual) { arrays.assertEmpty(info, failures, actual); }
void function(AssertionInfo info, short[] actual) { arrays.assertEmpty(info, failures, actual); }
/** * Asserts that the given array is empty. * @param info contains information about the assertion. * @param actual the given array. * @throws AssertionError if the given array is {@code null}. * @throws AssertionError if the given array is not empty. */
Asserts that the given array is empty
assertEmpty
{ "repo_name": "nicstrong/fest-assertions-android", "path": "fest-assert-android/src/main/java/org/fest/assertions/internal/ShortArrays.java", "license": "apache-2.0", "size": 10126 }
[ "org.fest.assertions.core.AssertionInfo" ]
import org.fest.assertions.core.AssertionInfo;
import org.fest.assertions.core.*;
[ "org.fest.assertions" ]
org.fest.assertions;
1,221,570
public int doEndTag() throws JspException { return super.doEndTag(); } // Actions related to body evaluation
int function() throws JspException { return super.doEndTag(); }
/** * Default processing of the end tag returning EVAL_PAGE. * * @return EVAL_PAGE * @throws JspException if an error occurred while processing this tag * @see Tag#doEndTag */
Default processing of the end tag returning EVAL_PAGE
doEndTag
{ "repo_name": "napcs/qedserver", "path": "jetty/modules/jsp-api-2.0/src/main/java/javax/servlet/jsp/tagext/BodyTagSupport.java", "license": "mit", "size": 4094 }
[ "javax.servlet.jsp.JspException" ]
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.*;
[ "javax.servlet" ]
javax.servlet;
191,245
public boolean deleteStorage(String groupName, String storageIpAddr) throws IOException { byte[] header; byte[] bGroupName; byte[] bs; int len; Socket trackerSocket; trackerSocket = trackerServer.getSocket(); OutputStream out = trackerSocket.getOutputStream()...
boolean function(String groupName, String storageIpAddr) throws IOException { byte[] header; byte[] bGroupName; byte[] bs; int len; Socket trackerSocket; trackerSocket = trackerServer.getSocket(); OutputStream out = trackerSocket.getOutputStream(); bs = groupName.getBytes(ClientGlobal.g_charset); bGroupName = new byte[...
/** * delete a storage server from the tracker server * * @param trackerServer the connected tracker server * @param groupName the group name of storage server * @param storageIpAddr the storage server ip address * @return true for success, false for fail */
delete a storage server from the tracker server
deleteStorage
{ "repo_name": "fanyunfeng/jfdfslib", "path": "src/main/java/jfdfs/core/TrackerClient.java", "license": "gpl-2.0", "size": 19631 }
[ "java.io.IOException", "java.io.OutputStream", "java.net.Socket", "java.util.Arrays" ]
import java.io.IOException; import java.io.OutputStream; import java.net.Socket; import java.util.Arrays;
import java.io.*; import java.net.*; import java.util.*;
[ "java.io", "java.net", "java.util" ]
java.io; java.net; java.util;
254,685
JdiVariable getVariableByName(String name) throws DebuggerException;
JdiVariable getVariableByName(String name) throws DebuggerException;
/** * Get nested variable by name. * * @param name * name of variable. Typically it is name of field. If this value represents array then name should be in form: * <i>[i]</i>, where <i>i</i> is index of element * @return nested variable with specified name or <code>null</co...
Get nested variable by name
getVariableByName
{ "repo_name": "kaloyan-raev/che", "path": "plugins/plugin-java-debugger/che-plugin-java-debugger-server/src/main/java/org/eclipse/che/plugin/jdb/server/JdiValue.java", "license": "epl-1.0", "size": 1883 }
[ "org.eclipse.che.api.debugger.server.exceptions.DebuggerException" ]
import org.eclipse.che.api.debugger.server.exceptions.DebuggerException;
import org.eclipse.che.api.debugger.server.exceptions.*;
[ "org.eclipse.che" ]
org.eclipse.che;
374,206
@IgniteSpiConfiguration(optional = true) public TcpCommunicationSpi setLocalAddress(String locAddr) { // Injection should not override value already set by Spring or user. if (this.locAddr == null) this.locAddr = locAddr; return this; }
@IgniteSpiConfiguration(optional = true) TcpCommunicationSpi function(String locAddr) { if (this.locAddr == null) this.locAddr = locAddr; return this; }
/** * Sets local host address for socket binding. Note that one node could have * additional addresses beside the loopback one. This configuration * parameter is optional. * * @param locAddr IP address. Default value is any available local * IP address. * @return {@code this} for...
Sets local host address for socket binding. Note that one node could have additional addresses beside the loopback one. This configuration parameter is optional
setLocalAddress
{ "repo_name": "a1vanov/ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/communication/tcp/TcpCommunicationSpi.java", "license": "apache-2.0", "size": 175997 }
[ "org.apache.ignite.spi.IgniteSpiConfiguration" ]
import org.apache.ignite.spi.IgniteSpiConfiguration;
import org.apache.ignite.spi.*;
[ "org.apache.ignite" ]
org.apache.ignite;
2,297,065
CompilationSupport registerCompileAndArchiveActions( ObjcCommon common, List<PathFragment> priorityHeaders) throws RuleErrorException, InterruptedException { return registerCompileAndArchiveActions(common, ExtraCompileArgs.NONE, priorityHeaders); }
CompilationSupport registerCompileAndArchiveActions( ObjcCommon common, List<PathFragment> priorityHeaders) throws RuleErrorException, InterruptedException { return registerCompileAndArchiveActions(common, ExtraCompileArgs.NONE, priorityHeaders); }
/** * Registers all actions necessary to compile this rule's sources and archive them. * * @param common common information about this rule and its dependencies * @param priorityHeaders priority headers to be included before the dependency headers * @return this compilation support * @throws RuleError...
Registers all actions necessary to compile this rule's sources and archive them
registerCompileAndArchiveActions
{ "repo_name": "meteorcloudy/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/objc/CompilationSupport.java", "license": "apache-2.0", "size": 77582 }
[ "com.google.devtools.build.lib.packages.RuleClass", "com.google.devtools.build.lib.vfs.PathFragment", "java.util.List" ]
import com.google.devtools.build.lib.packages.RuleClass; import com.google.devtools.build.lib.vfs.PathFragment; import java.util.List;
import com.google.devtools.build.lib.packages.*; import com.google.devtools.build.lib.vfs.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
1,400,818
protected Response createResponse(final Object id, final Object entity) { URI location = uriInfo.getAbsolutePathBuilder().path(String.valueOf(id)).build(); Response.ResponseBuilder builder = Response. created(location). header(RESTHeaders.RESOURCE_ID, id); s...
Response function(final Object id, final Object entity) { URI location = uriInfo.getAbsolutePathBuilder().path(String.valueOf(id)).build(); Response.ResponseBuilder builder = Response. created(location). header(RESTHeaders.RESOURCE_ID, id); switch (getPreference()) { case RETURN_NO_CONTENT: break; case RETURN_CONTENT: ...
/** * Builds response to successful <tt>create</tt> request, taking into account any <tt>Prefer</tt> header. * * @param id identifier of the created entity * @param entity the entity just created * @return response to successful <tt>create</tt> request */
Builds response to successful create request, taking into account any Prefer header
createResponse
{ "repo_name": "massx1/syncope", "path": "core/rest-cxf/src/main/java/org/apache/syncope/core/rest/cxf/service/AbstractServiceImpl.java", "license": "apache-2.0", "size": 8519 }
[ "javax.ws.rs.core.Response", "org.apache.syncope.common.rest.api.Preference", "org.apache.syncope.common.rest.api.RESTHeaders" ]
import javax.ws.rs.core.Response; import org.apache.syncope.common.rest.api.Preference; import org.apache.syncope.common.rest.api.RESTHeaders;
import javax.ws.rs.core.*; import org.apache.syncope.common.rest.api.*;
[ "javax.ws", "org.apache.syncope" ]
javax.ws; org.apache.syncope;
2,712,826
default void beforeIndexAddedToCluster(Index index, Settings indexSettings) { }
default void beforeIndexAddedToCluster(Index index, Settings indexSettings) { }
/** * Called on the Master node only before the {@link IndexService} instances is created to simulate an index creation. * This happens right before the index and it's metadata is registered in the cluster state */
Called on the Master node only before the <code>IndexService</code> instances is created to simulate an index creation. This happens right before the index and it's metadata is registered in the cluster state
beforeIndexAddedToCluster
{ "repo_name": "markharwood/elasticsearch", "path": "core/src/main/java/org/elasticsearch/index/shard/IndexEventListener.java", "license": "apache-2.0", "size": 6392 }
[ "org.elasticsearch.common.settings.Settings", "org.elasticsearch.index.Index" ]
import org.elasticsearch.common.settings.Settings; import org.elasticsearch.index.Index;
import org.elasticsearch.common.settings.*; import org.elasticsearch.index.*;
[ "org.elasticsearch.common", "org.elasticsearch.index" ]
org.elasticsearch.common; org.elasticsearch.index;
947,976
public synchronized boolean stopRandomDataNode() throws IOException { ensureOpen(); NodeAndClient nodeAndClient = getRandomNodeAndClient(new DataNodePredicate()); if (nodeAndClient != null) { logger.info("Closing random node [{}] ", nodeAndClient.name); removeDisrupti...
synchronized boolean function() throws IOException { ensureOpen(); NodeAndClient nodeAndClient = getRandomNodeAndClient(new DataNodePredicate()); if (nodeAndClient != null) { logger.info(STR, nodeAndClient.name); removeDisruptionSchemeFromNode(nodeAndClient); nodes.remove(nodeAndClient.name); nodeAndClient.close(); ret...
/** * Stops a random data node in the cluster. Returns true if a node was found to stop, false otherwise. */
Stops a random data node in the cluster. Returns true if a node was found to stop, false otherwise
stopRandomDataNode
{ "repo_name": "tsohil/elasticsearch", "path": "core/src/test/java/org/elasticsearch/test/InternalTestCluster.java", "license": "apache-2.0", "size": 81423 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
792,025
@Test public void testDropTables() throws Exception { // Mock SQL objects final Statement statement = Mockito.mock(Statement.class); Mockito.when(statement.execute(Mockito.anyString())).then(invocation -> { final String sql = (String) invocation.getArguments()[0]; ...
void function() throws Exception { final Statement statement = Mockito.mock(Statement.class); Mockito.when(statement.execute(Mockito.anyString())).then(invocation -> { final String sql = (String) invocation.getArguments()[0]; if (sql.startsWith(STR)) { throw new SQLException(); } return true; }); final Connection conne...
/** * Verify dropping multiple tables. */
Verify dropping multiple tables
testDropTables
{ "repo_name": "claudiu-stanciu/kylo", "path": "integrations/nifi/nifi-nar-bundles/nifi-core-bundle/nifi-core-processors/src/test/java/com/thinkbiganalytics/ingest/TableRegisterSupportTest.java", "license": "apache-2.0", "size": 11763 }
[ "com.google.common.collect.ImmutableSet", "com.thinkbiganalytics.util.TableType", "java.sql.Connection", "java.sql.SQLException", "java.sql.Statement", "java.util.EnumSet", "org.junit.Assert", "org.mockito.Mockito" ]
import com.google.common.collect.ImmutableSet; import com.thinkbiganalytics.util.TableType; import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import java.util.EnumSet; import org.junit.Assert; import org.mockito.Mockito;
import com.google.common.collect.*; import com.thinkbiganalytics.util.*; import java.sql.*; import java.util.*; import org.junit.*; import org.mockito.*;
[ "com.google.common", "com.thinkbiganalytics.util", "java.sql", "java.util", "org.junit", "org.mockito" ]
com.google.common; com.thinkbiganalytics.util; java.sql; java.util; org.junit; org.mockito;
1,957,118
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux<PollResult<ThroughputSettingsGetResultsInner>, ThroughputSettingsGetResultsInner> beginMigrateTableToAutoscaleAsync(String resourceGroupName, String accountName, String tableName) { Mono<Response<Flux<ByteBuffer>>> mon...
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) PollerFlux<PollResult<ThroughputSettingsGetResultsInner>, ThroughputSettingsGetResultsInner> function(String resourceGroupName, String accountName, String tableName) { Mono<Response<Flux<ByteBuffer>>> mono = migrateTableToAutoscaleWithResponseAsync(resourceGro...
/** * Migrate an Azure Cosmos DB Table from manual throughput to autoscale. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param accountName Cosmos DB database account name. * @param tableName Cosmos DB table name. * @throws IllegalArgumentExc...
Migrate an Azure Cosmos DB Table from manual throughput to autoscale
beginMigrateTableToAutoscaleAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-cosmos/src/main/java/com/azure/resourcemanager/cosmos/implementation/TableResourcesClientImpl.java", "license": "mit", "size": 109634 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.management.polling.PollResult", "com.azure.core.util.polling.PollerFlux", "com.azure.resourcemanager.cosmos.fluent.models.ThroughputSettingsGetResultsInner", "java.nio....
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.management.polling.PollResult; import com.azure.core.util.polling.PollerFlux; import com.azure.resourcemanager.cosmos.fluent.models.ThroughputSettingsGetResultsInn...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.management.polling.*; import com.azure.core.util.polling.*; import com.azure.resourcemanager.cosmos.fluent.models.*; import java.nio.*;
[ "com.azure.core", "com.azure.resourcemanager", "java.nio" ]
com.azure.core; com.azure.resourcemanager; java.nio;
59,543
public VectorizedRowBatch createRowBatch(int maxSize) { return createRowBatch(RowBatchVersion.ORIGINAL, maxSize); }
VectorizedRowBatch function(int maxSize) { return createRowBatch(RowBatchVersion.ORIGINAL, maxSize); }
/** * Create a VectorizedRowBatch with the original ColumnVector types * @param maxSize the maximum size of the batch * @return a new VectorizedRowBatch */
Create a VectorizedRowBatch with the original ColumnVector types
createRowBatch
{ "repo_name": "apache/orc", "path": "java/core/src/java/org/apache/orc/TypeDescription.java", "license": "apache-2.0", "size": 27872 }
[ "org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch" ]
import org.apache.hadoop.hive.ql.exec.vector.VectorizedRowBatch;
import org.apache.hadoop.hive.ql.exec.vector.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
26,214
public DataControllerProperties withLastUploadedDate(OffsetDateTime lastUploadedDate) { this.lastUploadedDate = lastUploadedDate; return this; }
DataControllerProperties function(OffsetDateTime lastUploadedDate) { this.lastUploadedDate = lastUploadedDate; return this; }
/** * Set the lastUploadedDate property: Last uploaded date from Kubernetes cluster. Defaults to current date time. * * @param lastUploadedDate the lastUploadedDate value to set. * @return the DataControllerProperties object itself. */
Set the lastUploadedDate property: Last uploaded date from Kubernetes cluster. Defaults to current date time
withLastUploadedDate
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/azurearcdata/azure-resourcemanager-azurearcdata/src/main/java/com/azure/resourcemanager/azurearcdata/models/DataControllerProperties.java", "license": "mit", "size": 10526 }
[ "java.time.OffsetDateTime" ]
import java.time.OffsetDateTime;
import java.time.*;
[ "java.time" ]
java.time;
149,859
public void addDataPoints(ArrayList<double[]> dataPoints) { synchronized (chartData) { chartData.addAll(dataPoints); for (int i = 0; i < dataPoints.size(); i++) { double[] dataPoint = dataPoints.get(i); xExtremityMonitor.update(dataPoint[0]); for (int j = 0; j < series.length; ...
void function(ArrayList<double[]> dataPoints) { synchronized (chartData) { chartData.addAll(dataPoints); for (int i = 0; i < dataPoints.size(); i++) { double[] dataPoint = dataPoints.get(i); xExtremityMonitor.update(dataPoint[0]); for (int j = 0; j < series.length; j++) { if (!Double.isNaN(dataPoint[j + 1])) { series[j...
/** * Adds data points. * * @param dataPoints an array of data points to be added */
Adds data points
addDataPoints
{ "repo_name": "AdaDeb/septracks", "path": "MyTracks/src/com/google/android/apps/mytracks/ChartView.java", "license": "gpl-2.0", "size": 31334 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
272,860
public ServiceResponse<Map<String, String>> getStringWithNull() throws ErrorException, IOException { Call<ResponseBody> call = service.getStringWithNull(); return getStringWithNullDelegate(call.execute()); }
ServiceResponse<Map<String, String>> function() throws ErrorException, IOException { Call<ResponseBody> call = service.getStringWithNull(); return getStringWithNullDelegate(call.execute()); }
/** * Get string dictionary value {"0": "foo", "1": null, "2": "foo2"}. * * @throws ErrorException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the Map&lt;String, String&gt; object wrapped in {@link ServiceResponse} if succe...
Get string dictionary value {"0": "foo", "1": null, "2": "foo2"}
getStringWithNull
{ "repo_name": "John-Hart/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodydictionary/implementation/DictionarysImpl.java", "license": "mit", "size": 172079 }
[ "com.microsoft.rest.ServiceResponse", "java.io.IOException", "java.util.Map" ]
import com.microsoft.rest.ServiceResponse; import java.io.IOException; import java.util.Map;
import com.microsoft.rest.*; import java.io.*; import java.util.*;
[ "com.microsoft.rest", "java.io", "java.util" ]
com.microsoft.rest; java.io; java.util;
2,322,873
protected void configureJaas(Resource loginConfig) throws IOException { configureJaasUsingLoop(); if (this.refreshConfigurationOnStartup) { // Overcome issue in SEC-760 Configuration.getConfiguration().refresh(); } }
void function(Resource loginConfig) throws IOException { configureJaasUsingLoop(); if (this.refreshConfigurationOnStartup) { Configuration.getConfiguration().refresh(); } }
/** * Hook method for configuring Jaas. * * @param loginConfig URL to Jaas login configuration * * @throws IOException if there is a problem reading the config resource. */
Hook method for configuring Jaas
configureJaas
{ "repo_name": "eddumelendez/spring-security", "path": "core/src/main/java/org/springframework/security/authentication/jaas/JaasAuthenticationProvider.java", "license": "apache-2.0", "size": 10644 }
[ "java.io.IOException", "javax.security.auth.login.Configuration", "org.springframework.core.io.Resource" ]
import java.io.IOException; import javax.security.auth.login.Configuration; import org.springframework.core.io.Resource;
import java.io.*; import javax.security.auth.login.*; import org.springframework.core.io.*;
[ "java.io", "javax.security", "org.springframework.core" ]
java.io; javax.security; org.springframework.core;
1,450,007
public ORID moveTo(final String iClassName, final String iClusterName) { final OrientBaseGraph graph = getGraph(); if (checkDeletedInTx()) throw new IllegalStateException("The vertex " + getIdentity() + " has been deleted"); final ORID oldIdentity = getIdentity().copy(); final ORecord oldReco...
ORID function(final String iClassName, final String iClusterName) { final OrientBaseGraph graph = getGraph(); if (checkDeletedInTx()) throw new IllegalStateException(STR + getIdentity() + STR); final ORID oldIdentity = getIdentity().copy(); final ORecord oldRecord = oldIdentity.getRecord(); if (oldRecord == null) throw...
/** * Moves current vertex to another class/cluster. All edges are updated automatically. * * @param iClassName * New class name to assign * @param iClusterName * Cluster name where to save the new vertex * @return New vertex's identity * @see #moveToClass(String) * @see #mo...
Moves current vertex to another class/cluster. All edges are updated automatically
moveTo
{ "repo_name": "alonsod86/orientdb", "path": "graphdb/src/main/java/com/tinkerpop/blueprints/impls/orient/OrientVertex.java", "license": "apache-2.0", "size": 50031 }
[ "com.orientechnologies.orient.core.id.ORecordId", "com.orientechnologies.orient.core.record.ORecord", "com.orientechnologies.orient.core.record.ORecordInternal", "com.orientechnologies.orient.core.record.impl.ODocument", "com.tinkerpop.blueprints.Direction", "com.tinkerpop.blueprints.Edge" ]
import com.orientechnologies.orient.core.id.ORecordId; import com.orientechnologies.orient.core.record.ORecord; import com.orientechnologies.orient.core.record.ORecordInternal; import com.orientechnologies.orient.core.record.impl.ODocument; import com.tinkerpop.blueprints.Direction; import com.tinkerpop.blueprints.Edge...
import com.orientechnologies.orient.core.id.*; import com.orientechnologies.orient.core.record.*; import com.orientechnologies.orient.core.record.impl.*; import com.tinkerpop.blueprints.*;
[ "com.orientechnologies.orient", "com.tinkerpop.blueprints" ]
com.orientechnologies.orient; com.tinkerpop.blueprints;
560,792
public boolean getIsOptional() { return optional.equals(YesNoFlag.YES.getValue()); }
boolean function() { return optional.equals(YesNoFlag.YES.getValue()); }
/** * Safer, preferred method for getting the "optional" property. Can't be * "isOptional()" because hibernate gets confused. */
Safer, preferred method for getting the "optional" property. Can't be "isOptional()" because hibernate gets confused
getIsOptional
{ "repo_name": "mifos/1.4.x", "path": "application/src/main/java/org/mifos/application/customer/business/CustomerStatusEntity.java", "license": "apache-2.0", "size": 2944 }
[ "org.mifos.application.util.helpers.YesNoFlag" ]
import org.mifos.application.util.helpers.YesNoFlag;
import org.mifos.application.util.helpers.*;
[ "org.mifos.application" ]
org.mifos.application;
898,300
private void handleTagsSelection(Collection<TagAnnotationData> tags) { Collection<TagAnnotationData> set = tagsMap.values(); Map<String, TagAnnotationData> newTags = new HashMap<String, TagAnnotationData>(); TagAnnotationData tag; Iterator<TagAnnotationData> i = set.iterator(); while (i.hasNext()) { ...
void function(Collection<TagAnnotationData> tags) { Collection<TagAnnotationData> set = tagsMap.values(); Map<String, TagAnnotationData> newTags = new HashMap<String, TagAnnotationData>(); TagAnnotationData tag; Iterator<TagAnnotationData> i = set.iterator(); while (i.hasNext()) { tag = i.next(); if (tag.getId() < 0) n...
/** * Handles the selection of tags. * * @param tags * The selected tags. */
Handles the selection of tags
handleTagsSelection
{ "repo_name": "lucalianas/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/fsimporter/chooser/ImportDialog.java", "license": "gpl-2.0", "size": 51962 }
[ "java.util.ArrayList", "java.util.Collection", "java.util.HashMap", "java.util.Iterator", "java.util.List", "java.util.Map", "javax.swing.JPanel", "org.openmicroscopy.shoola.agents.fsimporter.IconManager" ]
import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import javax.swing.JPanel; import org.openmicroscopy.shoola.agents.fsimporter.IconManager;
import java.util.*; import javax.swing.*; import org.openmicroscopy.shoola.agents.fsimporter.*;
[ "java.util", "javax.swing", "org.openmicroscopy.shoola" ]
java.util; javax.swing; org.openmicroscopy.shoola;
2,810,587
private void writeObject(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtilities.writePaint(this.backgroundPaint, stream); }
void function(ObjectOutputStream stream) throws IOException { stream.defaultWriteObject(); SerialUtilities.writePaint(this.backgroundPaint, stream); }
/** * Provides serialization support. * * @param stream the output stream. * * @throws IOException if there is an I/O error. */
Provides serialization support
writeObject
{ "repo_name": "greearb/jfreechart-fse-ct", "path": "src/main/java/org/jfree/chart/title/CompositeTitle.java", "license": "lgpl-2.1", "size": 8368 }
[ "java.io.IOException", "java.io.ObjectOutputStream", "org.jfree.chart.util.SerialUtilities" ]
import java.io.IOException; import java.io.ObjectOutputStream; import org.jfree.chart.util.SerialUtilities;
import java.io.*; import org.jfree.chart.util.*;
[ "java.io", "org.jfree.chart" ]
java.io; org.jfree.chart;
2,511,106
//#ifdef JAVA4 public synchronized Savepoint setSavepoint() throws SQLException { checkClosed(); throw Util.notSupported(); } //#endif JAVA4
synchronized Savepoint function() throws SQLException { checkClosed(); throw Util.notSupported(); }
/** * <!-- start generic documentation --> * Creates an unnamed savepoint in * the current transaction and returns the new <code>Savepoint</code> * object that represents it.<p> * * <!-- end generic documentation --> * <!-- start release-specific documentation --> * <div class="R...
Creates an unnamed savepoint in the current transaction and returns the new <code>Savepoint</code> object that represents it. HSQLDB-Specific Information: HSQLDB 1.7.2 does not support this feature. Calling this method always throws a <code>SQLException</code>, stating that the function is not supported. Use setSavepoi...
setSavepoint
{ "repo_name": "minghao7896321/canyin", "path": "hsqldb/src/org/hsqldb/jdbc/jdbcConnection.java", "license": "apache-2.0", "size": 106801 }
[ "java.sql.SQLException", "java.sql.Savepoint" ]
import java.sql.SQLException; import java.sql.Savepoint;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,537,049
@Override public void exitLine(@NotNull CriterionParser.LineContext ctx) { }
@Override public void exitLine(@NotNull CriterionParser.LineContext ctx) { }
/** * {@inheritDoc} * * <p>The default implementation does nothing.</p> */
The default implementation does nothing
enterLine
{ "repo_name": "Haixing-Hu/criteria", "path": "src/main/java/com/github/haixing_hu/criteria/parser/sql/CriterionBaseListener.java", "license": "apache-2.0", "size": 5111 }
[ "org.antlr.v4.runtime.misc.NotNull" ]
import org.antlr.v4.runtime.misc.NotNull;
import org.antlr.v4.runtime.misc.*;
[ "org.antlr.v4" ]
org.antlr.v4;
2,615,112
private void addAuxClassPathEntries(String argument) { StringTokenizer tok = new StringTokenizer(argument, File.pathSeparator); while (tok.hasMoreTokens()) { project.addAuxClasspathEntry(tok.nextToken()); } }
void function(String argument) { StringTokenizer tok = new StringTokenizer(argument, File.pathSeparator); while (tok.hasMoreTokens()) { project.addAuxClasspathEntry(tok.nextToken()); } }
/** * Parse the argument as auxclasspath entries and add them * * @param argument */
Parse the argument as auxclasspath entries and add them
addAuxClassPathEntries
{ "repo_name": "spotbugs/spotbugs", "path": "spotbugs/src/main/java/edu/umd/cs/findbugs/TextUICommandLine.java", "license": "lgpl-2.1", "size": 34586 }
[ "java.io.File", "java.util.StringTokenizer" ]
import java.io.File; import java.util.StringTokenizer;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,677,607
static boolean functionCallHasSideEffects( Node callNode, @Nullable AbstractCompiler compiler) { if (!callNode.isCall()) { throw new IllegalStateException( "Expected CALL node, got " + Token.name(callNode.getType())); } if (callNode.isNoSideEffectsCall()) { return false; }...
static boolean functionCallHasSideEffects( Node callNode, @Nullable AbstractCompiler compiler) { if (!callNode.isCall()) { throw new IllegalStateException( STR + Token.name(callNode.getType())); } if (callNode.isNoSideEffectsCall()) { return false; } Node nameNode = callNode.getFirstChild(); if (nameNode.isName()) { St...
/** * Returns true if calls to this function have side effects. * * @param callNode The call node to inspected. * @param compiler A compiler object to provide program state changing * context information. Can be null. */
Returns true if calls to this function have side effects
functionCallHasSideEffects
{ "repo_name": "ajukraine/closure-compiler", "path": "src/com/google/javascript/jscomp/NodeUtil.java", "license": "apache-2.0", "size": 95188 }
[ "com.google.javascript.rhino.Node", "com.google.javascript.rhino.Token", "javax.annotation.Nullable" ]
import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token; import javax.annotation.Nullable;
import com.google.javascript.rhino.*; import javax.annotation.*;
[ "com.google.javascript", "javax.annotation" ]
com.google.javascript; javax.annotation;
2,152,855
public Quaternion getWorldRotationQuat() { getWorldRotationQuat(motionStateId, worldRotationQuat); return worldRotationQuat; }
Quaternion function() { getWorldRotationQuat(motionStateId, worldRotationQuat); return worldRotationQuat; }
/** * Read the rotation of this motion state (as a quaternion). * * @return the pre-existing instance (in physics-space coordinates, not * null) */
Read the rotation of this motion state (as a quaternion)
getWorldRotationQuat
{ "repo_name": "zzuegg/jmonkeyengine", "path": "jme3-bullet/src/main/java/com/jme3/bullet/objects/infos/RigidBodyMotionState.java", "license": "bsd-3-clause", "size": 7551 }
[ "com.jme3.math.Quaternion" ]
import com.jme3.math.Quaternion;
import com.jme3.math.*;
[ "com.jme3.math" ]
com.jme3.math;
1,637,543
private int getHoverLine(MouseEvent event) { return event == null ? -1 : fVerticalRulerInfo.toDocumentLineNumber(event.y); }
int function(MouseEvent event) { return event == null ? -1 : fVerticalRulerInfo.toDocumentLineNumber(event.y); }
/** * Returns the line of interest deduced from the mouse hover event. * * @param event a mouse hover event that triggered hovering * @return the document model line number on which the hover event occurred or <code>-1</code> if there is no event * @since 3.0 */
Returns the line of interest deduced from the mouse hover event
getHoverLine
{ "repo_name": "brunyuriy/quick-fix-scout", "path": "org.eclipse.jface.text_3.7.1.r371_v20110825-0800/src/org/eclipse/jface/text/source/AnnotationBarHoverManager.java", "license": "mit", "size": 27168 }
[ "org.eclipse.swt.events.MouseEvent" ]
import org.eclipse.swt.events.MouseEvent;
import org.eclipse.swt.events.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,459,072
@Nonnull public Runner addRunner(@Nonnull ApplicationProcessDescriptor processDescriptor) { RunOptions runOptions = dtoFactory.createDto(RunOptions.class); Runner runner = modelsFactory.createRunner(runOptions); String environmentId = processDescriptor.getEnvironmentId(); if (e...
Runner function(@Nonnull ApplicationProcessDescriptor processDescriptor) { RunOptions runOptions = dtoFactory.createDto(RunOptions.class); Runner runner = modelsFactory.createRunner(runOptions); String environmentId = processDescriptor.getEnvironmentId(); if (environmentId != null && environmentId.startsWith(PROJECT_PR...
/** * Adds already running runner. * * @param processDescriptor * The descriptor of new runner * @return instance of new runner */
Adds already running runner
addRunner
{ "repo_name": "Panthro/che-plugins", "path": "plugin-runner/che-plugin-runner-ext-runner/src/main/java/org/eclipse/che/ide/ext/runner/client/manager/RunnerManagerPresenter.java", "license": "epl-1.0", "size": 33303 }
[ "javax.annotation.Nonnull", "org.eclipse.che.api.runner.dto.ApplicationProcessDescriptor", "org.eclipse.che.api.runner.dto.RunOptions", "org.eclipse.che.ide.ext.runner.client.models.Runner", "org.eclipse.che.ide.ext.runner.client.runneractions.impl.launch.LaunchAction" ]
import javax.annotation.Nonnull; import org.eclipse.che.api.runner.dto.ApplicationProcessDescriptor; import org.eclipse.che.api.runner.dto.RunOptions; import org.eclipse.che.ide.ext.runner.client.models.Runner; import org.eclipse.che.ide.ext.runner.client.runneractions.impl.launch.LaunchAction;
import javax.annotation.*; import org.eclipse.che.api.runner.dto.*; import org.eclipse.che.ide.ext.runner.client.models.*; import org.eclipse.che.ide.ext.runner.client.runneractions.impl.launch.*;
[ "javax.annotation", "org.eclipse.che" ]
javax.annotation; org.eclipse.che;
1,185,189
return webTarget.path("/api/topics/" + topic + "/metrics/interval").queryParam("start", start) .queryParam("end", end).request() .get(AggregatedStatsSet.class); }
return webTarget.path(STR + topic + STR).queryParam("start", start) .queryParam("end", end).request() .get(AggregatedStatsSet.class); }
/** * Get the aggregated stats for the topic all within the time range. * * @param topic topic to get aggregated stats * @param start start time * @param end end time * @return aggregated stats all in within the time range. */
Get the aggregated stats for the topic all within the time range
aggregateTopicInTimeRange
{ "repo_name": "hiendo/tsa", "path": "src/test/java/com/github/hiendo/tsa/servertests/operations/MetricsIntervalOperations.java", "license": "apache-2.0", "size": 1981 }
[ "com.github.hiendo.tsa.web.entities.AggregatedStatsSet" ]
import com.github.hiendo.tsa.web.entities.AggregatedStatsSet;
import com.github.hiendo.tsa.web.entities.*;
[ "com.github.hiendo" ]
com.github.hiendo;
1,514,233
public TestRunModel getTestRunModel(TestCandidate candidate);
TestRunModel function(TestCandidate candidate);
/** * Return a {@link TestRunModel} for the given profile. * * @param candidate The TestCandidate that is checked for running tests * @return an instance of TestRunModel or null, if no tests are running */
Return a <code>TestRunModel</code> for the given profile
getTestRunModel
{ "repo_name": "eID-Testbeds/server", "path": "eidsrv-testbed-common/src/main/java/com/secunet/eidserver/testbed/common/interfaces/beans/RunController.java", "license": "apache-2.0", "size": 1279 }
[ "com.secunet.eidserver.testbed.common.classes.TestRunModel", "com.secunet.eidserver.testbed.common.interfaces.entities.TestCandidate" ]
import com.secunet.eidserver.testbed.common.classes.TestRunModel; import com.secunet.eidserver.testbed.common.interfaces.entities.TestCandidate;
import com.secunet.eidserver.testbed.common.classes.*; import com.secunet.eidserver.testbed.common.interfaces.entities.*;
[ "com.secunet.eidserver" ]
com.secunet.eidserver;
2,236,427
public List getRemoteQueueSystems() { final List endPointList = new ArrayList(); synchronized(this.remoteQueueSystemLock) { final Iterator iterator = queueSystemProxies.keySet().iterator(); DefaultQueueSystemEndPointProxy proxy; String key; while(iterator.hasNext()) { k...
List function() { final List endPointList = new ArrayList(); synchronized(this.remoteQueueSystemLock) { final Iterator iterator = queueSystemProxies.keySet().iterator(); DefaultQueueSystemEndPointProxy proxy; String key; while(iterator.hasNext()) { key = (String)iterator.next(); if(key == null) continue; proxy = (Defau...
/** * Gets a list of all remote queue systems connected to this queue system. * * @return a list of DefaultQueueSystemEndPointProxy objects. */
Gets a list of all remote queue systems connected to this queue system
getRemoteQueueSystems
{ "repo_name": "tolo/JServer", "path": "src/java/com/teletalk/jserver/queue/legacy/DefaultQueueSystemCollaborationManager.java", "license": "apache-2.0", "size": 34502 }
[ "java.util.ArrayList", "java.util.Iterator", "java.util.List" ]
import java.util.ArrayList; import java.util.Iterator; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
656,999
public void setLayersActivation(List<ActivationLayer> layersActivation) { this.layersActivation = layersActivation; }
void function(List<ActivationLayer> layersActivation) { this.layersActivation = layersActivation; }
/** * Sets the list of layer activations for all layers other than the input * layer. * @param layersActivation the list of hidden and output layer activations */
Sets the list of layer activations for all layers other than the input layer
setLayersActivation
{ "repo_name": "TKlerx/JSAT", "path": "JSAT/src/jsat/classifiers/neuralnetwork/SGDNetworkTrainer.java", "license": "gpl-3.0", "size": 27704 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
839,730
final DataInputStream dis = new DataInputStream(fileInputStream); int frameCount = 0; while (true) { final Frame f = new Frame(); if (frameCount % 2 == 0) { f.data = readDouble(dis); f.instr = readInt(dis); } else { f.instr = readInt(dis); f.data = readDouble(dis); } mem.addData(f....
final DataInputStream dis = new DataInputStream(fileInputStream); int frameCount = 0; while (true) { final Frame f = new Frame(); if (frameCount % 2 == 0) { f.data = readDouble(dis); f.instr = readInt(dis); } else { f.instr = readInt(dis); f.data = readDouble(dis); } mem.addData(f.data); mem.addInstruction(InstructionF...
/** * Fill the given {@link Memory} from given {@link FileInputStream}. * * @param fileInputStream * never <code>null</code> * @param mem * never <code>null</code> * @throws IOException */
Fill the given <code>Memory</code> from given <code>FileInputStream</code>
load
{ "repo_name": "ahoehma/icfp_2009", "path": "src/main/java/sak/orbit/loader/MemoryLoader.java", "license": "apache-2.0", "size": 1997 }
[ "java.io.DataInputStream" ]
import java.io.DataInputStream;
import java.io.*;
[ "java.io" ]
java.io;
762,424
@SuppressWarnings("unchecked") ReservoirItemsSketch<T> copy() { return new ReservoirItemsSketch<>(reservoirSize_, currItemsAlloc_, itemsSeen_, rf_, (ArrayList<T>) data_.clone()); }
@SuppressWarnings(STR) ReservoirItemsSketch<T> copy() { return new ReservoirItemsSketch<>(reservoirSize_, currItemsAlloc_, itemsSeen_, rf_, (ArrayList<T>) data_.clone()); }
/** * Used during union operations to ensure we do not overwrite an existing reservoir. Creates a * shallow copy of the reservoir. * * @return A copy of the current sketch */
Used during union operations to ensure we do not overwrite an existing reservoir. Creates a shallow copy of the reservoir
copy
{ "repo_name": "DataSketches/sketches-core", "path": "src/main/java/org/apache/datasketches/sampling/ReservoirItemsSketch.java", "license": "apache-2.0", "size": 25059 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,013,625
public void addResidentIdP(IdentityProvider identityProvider, String tenantDomain) throws IdentityApplicationManagementException { if (StringUtils.isEmpty(identityProvider.getHomeRealmId())) { String msg = "Invalid argument: Resident Identity Provider Home Realm Identifier value is ...
void function(IdentityProvider identityProvider, String tenantDomain) throws IdentityApplicationManagementException { if (StringUtils.isEmpty(identityProvider.getHomeRealmId())) { String msg = STR; log.error(msg); throw new IdentityApplicationManagementException(msg); } if (identityProvider.getFederatedAuthenticatorCon...
/** * Add Resident Identity provider for a given tenant * * @param identityProvider <code>IdentityProvider</code> * @param tenantDomain Tenant domain whose resident IdP is requested * @throws IdentityApplicationManagementException Error when adding Resident Identity Provider */
Add Resident Identity provider for a given tenant
addResidentIdP
{ "repo_name": "laki88/carbon-identity", "path": "components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/IdentityProviderManager.java", "license": "apache-2.0", "size": 67027 }
[ "java.util.ArrayList", "java.util.Arrays", "java.util.List", "org.apache.commons.lang.StringUtils", "org.wso2.carbon.identity.application.common.IdentityApplicationManagementException", "org.wso2.carbon.identity.application.common.model.FederatedAuthenticatorConfig", "org.wso2.carbon.identity.applicatio...
import java.util.ArrayList; import java.util.Arrays; import java.util.List; import org.apache.commons.lang.StringUtils; import org.wso2.carbon.identity.application.common.IdentityApplicationManagementException; import org.wso2.carbon.identity.application.common.model.FederatedAuthenticatorConfig; import org.wso2.carbon...
import java.util.*; import org.apache.commons.lang.*; import org.wso2.carbon.identity.application.common.*; import org.wso2.carbon.identity.application.common.model.*; import org.wso2.carbon.identity.application.common.util.*; import org.wso2.carbon.identity.core.util.*; import org.wso2.carbon.idp.mgt.util.*;
[ "java.util", "org.apache.commons", "org.wso2.carbon" ]
java.util; org.apache.commons; org.wso2.carbon;
162,199
public void testConstrLongMathContext() { long a = 4576578677732546982L; int precision = 5; RoundingMode rm = RoundingMode.CEILING; MathContext mc = new MathContext(precision, rm); String res = "45766"; int resScale = -14; BigDecimal result = new BigDecimal(a,...
void function() { long a = 4576578677732546982L; int precision = 5; RoundingMode rm = RoundingMode.CEILING; MathContext mc = new MathContext(precision, rm); String res = "45766"; int resScale = -14; BigDecimal result = new BigDecimal(a, mc); assertEquals(STR, res, result.unscaledValue().toString()); assertEquals(STR, r...
/** * new BigDecimal(long, MathContext) */
new BigDecimal(long, MathContext)
testConstrLongMathContext
{ "repo_name": "google/desugar_jdk_libs", "path": "jdk11/src/libcore/luni/src/test/java/libcore/java/math/OldBigDecimalConstructorsTest.java", "license": "gpl-2.0", "size": 35102 }
[ "java.math.BigDecimal", "java.math.MathContext", "java.math.RoundingMode" ]
import java.math.BigDecimal; import java.math.MathContext; import java.math.RoundingMode;
import java.math.*;
[ "java.math" ]
java.math;
1,660,156
public void f2d() throws IOException { d.f2t(); }
void function() throws IOException { d.f2t(); }
/** * Convert float to double * <p>Stack: ..., value=&gt;..., result * @throws IOException */
Convert float to double Stack: ..., value=&gt;..., result
f2d
{ "repo_name": "tvesalainen/bcc", "path": "src/main/java/org/vesalainen/bcc/Assembler.java", "license": "gpl-3.0", "size": 53751 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
713,295
@Override public boolean equals(Object o) { // server/125g if (o == null || ! getClass().equals(o.getClass())) return false; DeployController<?> controller = (DeployController<?>) o; // XXX: s/b getRootDirectory? return getId().equals(controller.getId()); } static class DeployLi...
boolean function(Object o) { if (o == null ! getClass().equals(o.getClass())) return false; DeployController<?> controller = (DeployController<?>) o; return getId().equals(controller.getId()); } static class DeployListener implements DeployNotificationListener { private WeakReference<DeployContainerApi<?>> _container; ...
/** * Returns equality. */
Returns equality
equals
{ "repo_name": "dlitz/resin", "path": "modules/resin/src/com/caucho/env/deploy/ExpandDeployController.java", "license": "gpl-2.0", "size": 18944 }
[ "java.lang.ref.WeakReference" ]
import java.lang.ref.WeakReference;
import java.lang.ref.*;
[ "java.lang" ]
java.lang;
511,570
public static ArbitraryViewCycleExecutionSequence of(ViewCycleExecutionOptions... executionSequence) { return new ArbitraryViewCycleExecutionSequence(Arrays.asList(executionSequence)); }
static ArbitraryViewCycleExecutionSequence function(ViewCycleExecutionOptions... executionSequence) { return new ArbitraryViewCycleExecutionSequence(Arrays.asList(executionSequence)); }
/** * Gets a sequence for a collection of cycles. * * @param executionSequence the sequence, not null * @return the sequence, not null */
Gets a sequence for a collection of cycles
of
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Engine/src/main/java/com/opengamma/engine/view/execution/ArbitraryViewCycleExecutionSequence.java", "license": "apache-2.0", "size": 5102 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
695,349
public static final void setDefaultColumnWidth (JTable table, int column) { int resizeMode = table.getAutoResizeMode(); table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); TableCellRenderer renderer = table.getCellRenderer(0, column); int max = 0; TableModel tableModel = table.getModel(); int rows...
static final void function (JTable table, int column) { int resizeMode = table.getAutoResizeMode(); table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF); TableCellRenderer renderer = table.getCellRenderer(0, column); int max = 0; TableModel tableModel = table.getModel(); int rows = tableModel.getRowCount(); for (int i = 0; ...
/** * Sets the width of the given JTable column to the width of its * widest contained value. * * @param table the JTable that contains the column * @param column the column index to set the width of */
Sets the width of the given JTable column to the width of its widest contained value
setDefaultColumnWidth
{ "repo_name": "gmessner/ajf", "path": "src/main/java/com/messners/ajf/ui/Utilities.java", "license": "mit", "size": 18142 }
[ "java.awt.Component", "javax.swing.JTable", "javax.swing.table.TableCellRenderer", "javax.swing.table.TableColumn", "javax.swing.table.TableColumnModel", "javax.swing.table.TableModel" ]
import java.awt.Component; import javax.swing.JTable; import javax.swing.table.TableCellRenderer; import javax.swing.table.TableColumn; import javax.swing.table.TableColumnModel; import javax.swing.table.TableModel;
import java.awt.*; import javax.swing.*; import javax.swing.table.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,308,302
protected final MethodVisitor getWeavingMethodVisitor(int access, String name, String desc, String signature, String[] exceptions, Method currentMethod, String methodStaticFieldName, Type currentMethodDeclaringType, boolean currentMethodDeclaringTypeIsInterface) { MethodVisitor methodVisitor...
final MethodVisitor function(int access, String name, String desc, String signature, String[] exceptions, Method currentMethod, String methodStaticFieldName, Type currentMethodDeclaringType, boolean currentMethodDeclaringTypeIsInterface) { MethodVisitor methodVisitorToReturn; if((access & ACC_ABSTRACT) == 0) { methodVi...
/** * Get the weaving visitor used to weave instance methods, or just copy abstract ones */
Get the weaving visitor used to weave instance methods, or just copy abstract ones
getWeavingMethodVisitor
{ "repo_name": "WouterBanckenACA/aries", "path": "proxy/proxy-impl/src/main/java/org/apache/aries/proxy/impl/weaving/WovenProxyAdapter.java", "license": "apache-2.0", "size": 3086 }
[ "org.apache.aries.proxy.impl.common.WovenProxyConcreteMethodAdapter", "org.objectweb.asm.MethodVisitor", "org.objectweb.asm.Type", "org.objectweb.asm.commons.Method" ]
import org.apache.aries.proxy.impl.common.WovenProxyConcreteMethodAdapter; import org.objectweb.asm.MethodVisitor; import org.objectweb.asm.Type; import org.objectweb.asm.commons.Method;
import org.apache.aries.proxy.impl.common.*; import org.objectweb.asm.*; import org.objectweb.asm.commons.*;
[ "org.apache.aries", "org.objectweb.asm" ]
org.apache.aries; org.objectweb.asm;
1,145,163
public static String[] getPortNames(Pattern pattern) { return getPortNames(PORTNAMES_PATH, pattern, PORTNAMES_COMPARATOR); }
static String[] function(Pattern pattern) { return getPortNames(PORTNAMES_PATH, pattern, PORTNAMES_COMPARATOR); }
/** * Get sorted array of serial ports in the system matched pattern * * @param pattern RegExp pattern for matching port names <b>(not null)</b> * * @return String array. If there is no ports in the system String[] * * @since 2.3.0 */
Get sorted array of serial ports in the system matched pattern
getPortNames
{ "repo_name": "ektor5/Arduino", "path": "arduino-core/src/processing/app/SerialPortList.java", "license": "lgpl-2.1", "size": 13444 }
[ "java.util.regex.Pattern" ]
import java.util.regex.Pattern;
import java.util.regex.*;
[ "java.util" ]
java.util;
678,003
void addPhrase(List<T> phrase);
void addPhrase(List<T> phrase);
/** * Add a single phrase to the database. * This will generate with previous chains with the chain resulting from the passed phrase. * @param phrase the sentence to add to the chain. */
Add a single phrase to the database. This will generate with previous chains with the chain resulting from the passed phrase
addPhrase
{ "repo_name": "sadjava/JSimpleMarkovGenerator", "path": "src/main/java/com/peterson/markovchain/MarkovChain.java", "license": "mit", "size": 933 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,378,044
public HtmlContext getHtmlContext() { return Preconditions.checkNotNull( htmlContext, "Cannot access HtmlContext before HtmlTransformVisitor"); }
HtmlContext function() { return Preconditions.checkNotNull( htmlContext, STR); }
/** * Gets the HTML source context (typically tag, attribute value, HTML PCDATA, or plain text) which * this node emits in. This affects how the node is escaped (for traditional backends) or how it's * passed to incremental DOM APIs. */
Gets the HTML source context (typically tag, attribute value, HTML PCDATA, or plain text) which this node emits in. This affects how the node is escaped (for traditional backends) or how it's passed to incremental DOM APIs
getHtmlContext
{ "repo_name": "Medium/closure-templates", "path": "java/src/com/google/template/soy/soytree/PrintNode.java", "license": "apache-2.0", "size": 9870 }
[ "com.google.common.base.Preconditions" ]
import com.google.common.base.Preconditions;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
920,269
// Local Declarations DataComponent comp1 = new DataComponent(), comp2 = new DataComponent(); ArrayList<Component> compList = null; String compName = null; Form testForm = new Form(); // Set some info on the components comp1.setName("Gravy"); comp2.setName("Train"); testForm.addComponent(comp1); te...
DataComponent comp1 = new DataComponent(), comp2 = new DataComponent(); ArrayList<Component> compList = null; String compName = null; Form testForm = new Form(); comp1.setName("Gravy"); comp2.setName("Train"); testForm.addComponent(comp1); testForm.addComponent(comp2); page = new ICESectionPage(new ICEFormEditor(), "1"...
/** * <p> * This operation checks the Component accessor operations on ICESectionPage * </p> * */
This operation checks the Component accessor operations on ICESectionPage
checkComponents
{ "repo_name": "gorindn/ice", "path": "tests/org.eclipse.ice.client.widgets.test/src/org/eclipse/ice/client/widgets/test/ICESectionPageTester.java", "license": "epl-1.0", "size": 2475 }
[ "java.util.ArrayList", "org.eclipse.ice.client.widgets.ICEFormEditor", "org.eclipse.ice.client.widgets.ICESectionPage", "org.eclipse.ice.datastructures.ICEObject", "org.eclipse.ice.datastructures.form.DataComponent", "org.eclipse.ice.datastructures.form.Form", "org.junit.Assert" ]
import java.util.ArrayList; import org.eclipse.ice.client.widgets.ICEFormEditor; import org.eclipse.ice.client.widgets.ICESectionPage; import org.eclipse.ice.datastructures.ICEObject; import org.eclipse.ice.datastructures.form.DataComponent; import org.eclipse.ice.datastructures.form.Form; import org.junit.Assert;
import java.util.*; import org.eclipse.ice.client.widgets.*; import org.eclipse.ice.datastructures.*; import org.eclipse.ice.datastructures.form.*; import org.junit.*;
[ "java.util", "org.eclipse.ice", "org.junit" ]
java.util; org.eclipse.ice; org.junit;
2,841,954
@Test public void test579() throws Exception { DefaultHttpClient httpClient = new DefaultHttpClient(); UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("bill", "password"); httpClient.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY), credentia...
void function() throws Exception { DefaultHttpClient httpClient = new DefaultHttpClient(); UsernamePasswordCredentials credentials = new UsernamePasswordCredentials("bill", STR); httpClient.getCredentialsProvider().setCredentials(new AuthScope(AuthScope.ANY), credentials); ClientHttpEngine engine = createAuthenticating...
/** * RESTEASY-579 * * Found 579 bug when doing 575 so the test is here out of laziness * * @throws Exception */
RESTEASY-579 Found 579 bug when doing 575 so the test is here out of laziness
test579
{ "repo_name": "awhitford/Resteasy", "path": "server-adapters/resteasy-jdk-http/src/test/java/org/jboss/resteasy/test/security/BasicAuthTest.java", "license": "apache-2.0", "size": 10138 }
[ "javax.ws.rs.client.Client", "javax.ws.rs.core.Response", "org.apache.http.auth.AuthScope", "org.apache.http.auth.UsernamePasswordCredentials", "org.apache.http.impl.client.DefaultHttpClient", "org.jboss.resteasy.client.jaxrs.ClientHttpEngine", "org.jboss.resteasy.client.jaxrs.ResteasyClientBuilder", ...
import javax.ws.rs.client.Client; import javax.ws.rs.core.Response; import org.apache.http.auth.AuthScope; import org.apache.http.auth.UsernamePasswordCredentials; import org.apache.http.impl.client.DefaultHttpClient; import org.jboss.resteasy.client.jaxrs.ClientHttpEngine; import org.jboss.resteasy.client.jaxrs.Restea...
import javax.ws.rs.client.*; import javax.ws.rs.core.*; import org.apache.http.auth.*; import org.apache.http.impl.client.*; import org.jboss.resteasy.client.jaxrs.*; import org.junit.*;
[ "javax.ws", "org.apache.http", "org.jboss.resteasy", "org.junit" ]
javax.ws; org.apache.http; org.jboss.resteasy; org.junit;
1,931,470
public static DioriteTask async(final DioritePlugin dioritePlugin, final Runnable runnable) { return new TaskBuilder(dioritePlugin, runnable).async().start(); }
static DioriteTask function(final DioritePlugin dioritePlugin, final Runnable runnable) { return new TaskBuilder(dioritePlugin, runnable).async().start(); }
/** * Simple method to create new async task and run it. <br> * Equal to: <br> * <ol> * <li>{@link #start(Runnable)}</li> * <li>{@link #async()}</li> * <li>{@link #start()}</li> * </ol> * * @param dioritePlugin plugin that want register task. * @param runnable runn...
Simple method to create new async task and run it. Equal to: <code>#start(Runnable)</code> <code>#async()</code> <code>#start()</code>
async
{ "repo_name": "sgdc3/Diorite", "path": "DioriteAPI/src/main/java/org/diorite/scheduler/TaskBuilder.java", "license": "mit", "size": 13315 }
[ "org.diorite.plugin.DioritePlugin" ]
import org.diorite.plugin.DioritePlugin;
import org.diorite.plugin.*;
[ "org.diorite.plugin" ]
org.diorite.plugin;
1,739,549
public ListenableFuture<MobileServiceUser> authenticate(String provider, String oAuthToken, HashMap<String, String> parameters) { if (oAuthToken == null || oAuthToken.trim() == "") { throw new IllegalArgumentException("oAuthToken can not be null or empty"); } // Create the login...
ListenableFuture<MobileServiceUser> function(String provider, String oAuthToken, HashMap<String, String> parameters) { if (oAuthToken == null oAuthToken.trim() == STRoAuthToken can not be null or empty"); } String url = mClient.getAppUrl().toString() + LoginManager.START_URL + normalizeProvider(provider) + normalizePar...
/** * Invokes Microsoft Azure Mobile Service authentication using a * provider-specific oAuth token * * @param provider The provider used for the authentication process * @param oAuthToken The oAuth token used for authentication * @param parameters Aditional parameters for the authentica...
Invokes Microsoft Azure Mobile Service authentication using a provider-specific oAuth token
authenticate
{ "repo_name": "paulbatum/azure-mobile-services", "path": "sdk/android/src/sdk/src/main/java/com/microsoft/windowsazure/mobileservices/authentication/LoginManager.java", "license": "apache-2.0", "size": 23179 }
[ "com.google.common.util.concurrent.ListenableFuture", "java.util.HashMap" ]
import com.google.common.util.concurrent.ListenableFuture; import java.util.HashMap;
import com.google.common.util.concurrent.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,268,624
//922, 452 public static InputStream getMixedImagesInputStream(String imageFormat, // png BufferedImage image1, BufferedImage image2, int xImage2, int yImage2) throws IOException { BufferedImage mixedImage = getBufferedImageMixedImages(...
static InputStream function(String imageFormat, BufferedImage image1, BufferedImage image2, int xImage2, int yImage2) throws IOException { BufferedImage mixedImage = getBufferedImageMixedImages(image1, image2, xImage2, yImage2); ByteArrayOutputStream os = new ByteArrayOutputStream(); ImageIO.write(mixedImage, imageForm...
/** * Mezcla dos imagenes en una sola, sobreponiendo la segunda en la primera. * @param imageFormat String.- png, jpg. * @param image1 BufferedImage * @param image2 BufferedImage * @param xImage2 int * @param yImage2 int * @return BufferedImage * @throws IOException */
Mezcla dos imagenes en una sola, sobreponiendo la segunda en la primera
getMixedImagesInputStream
{ "repo_name": "aalva-gapsi/gapsieventos", "path": "src/main/java/mx/com/gapsi/eventos/utils/ImageUtil.java", "license": "apache-2.0", "size": 2166 }
[ "java.awt.image.BufferedImage", "java.io.ByteArrayInputStream", "java.io.ByteArrayOutputStream", "java.io.IOException", "java.io.InputStream", "javax.imageio.ImageIO" ]
import java.awt.image.BufferedImage; import java.io.ByteArrayInputStream; import java.io.ByteArrayOutputStream; import java.io.IOException; import java.io.InputStream; import javax.imageio.ImageIO;
import java.awt.image.*; import java.io.*; import javax.imageio.*;
[ "java.awt", "java.io", "javax.imageio" ]
java.awt; java.io; javax.imageio;
992,680
private String getBody(ServletRequest request) { String body; StringBuilder stringBuilder = new StringBuilder(); BufferedReader bufferedReader = null; try { InputStream inputStream = request.getInputStream(); if (inputStream != null) { buffere...
String function(ServletRequest request) { String body; StringBuilder stringBuilder = new StringBuilder(); BufferedReader bufferedReader = null; try { InputStream inputStream = request.getInputStream(); if (inputStream != null) { bufferedReader = new BufferedReader(new InputStreamReader(inputStream)); char[] charBuffer ...
/** * Internal helper method used to print the body of the request * * @param request The incoming request * @return The string containing the body of the request */
Internal helper method used to print the body of the request
getBody
{ "repo_name": "metaldrummer610/EmailNotifications", "path": "src/main/java/org/icechamps/emailnotifications/ExceptionNotifier.java", "license": "mit", "size": 14904 }
[ "java.io.BufferedReader", "java.io.IOException", "java.io.InputStream", "java.io.InputStreamReader", "javax.servlet.ServletRequest" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import javax.servlet.ServletRequest;
import java.io.*; import javax.servlet.*;
[ "java.io", "javax.servlet" ]
java.io; javax.servlet;
1,421,886
protected PersistenceStructureService getPersistenceStructureService() { return this.persistenceStructureService; }
PersistenceStructureService function() { return this.persistenceStructureService; }
/** * Protected method to allow subclasses to access the * persistenceStructureService. * * @return Returns the persistenceStructureService. */
Protected method to allow subclasses to access the persistenceStructureService
getPersistenceStructureService
{ "repo_name": "sbower/kuali-rice-1", "path": "impl/src/main/java/org/kuali/rice/krad/service/impl/DataObjectMetaDataServiceImpl.java", "license": "apache-2.0", "size": 22259 }
[ "org.kuali.rice.krad.service.PersistenceStructureService" ]
import org.kuali.rice.krad.service.PersistenceStructureService;
import org.kuali.rice.krad.service.*;
[ "org.kuali.rice" ]
org.kuali.rice;
1,595,885
@ServiceMethod(returns = ReturnType.COLLECTION) private PagedFlux<ExpressRouteCircuitAuthorizationInner> listAsync( String resourceGroupName, String circuitName, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, circuitName, context), ...
@ServiceMethod(returns = ReturnType.COLLECTION) PagedFlux<ExpressRouteCircuitAuthorizationInner> function( String resourceGroupName, String circuitName, Context context) { return new PagedFlux<>( () -> listSinglePageAsync(resourceGroupName, circuitName, context), nextLink -> listNextSinglePageAsync(nextLink, context));...
/** * Gets all authorizations in an express route circuit. * * @param resourceGroupName The name of the resource group. * @param circuitName The name of the circuit. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail ...
Gets all authorizations in an express route circuit
listAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/ExpressRouteCircuitAuthorizationsClientImpl.java", "license": "mit", "size": 59982 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedFlux", "com.azure.core.util.Context", "com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitAuthorizationInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedFlux; import com.azure.core.util.Context; import com.azure.resourcemanager.network.fluent.models.ExpressRouteCircuitAuthorizationInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.network.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,277,425
public void loadFilter(Document document){ Elements form = document.select("div#content div#d_menu form > select"); Elements[] filter = { form.select("[title=sort options]"), form.select("[title=time range options]"), form.select("[title=genre 1 filter],[title=genre filter]"), f...
void function(Document document){ Elements form = document.select(STR); Elements[] filter = { form.select(STR), form.select(STR), form.select(STR), form.select(STR), form.select(STR), form.select(STR), form.select(STR), form.select(STR)}; mSpinnerData = new ArrayList<>(); for (Elements j : filter) { final ArrayList<Str...
/** * Parses the filter * @param document The HTML document */
Parses the filter
loadFilter
{ "repo_name": "Quetzalcoatless/FanFictionReader", "path": "fanfictionReader/src/main/java/com/spicymango/fanfictionreader/menu/storymenu/StoryMenuLoaders.java", "license": "gpl-3.0", "size": 22437 }
[ "com.spicymango.fanfictionreader.menu.storymenu.FilterDialog", "java.util.ArrayList", "org.jsoup.nodes.Document", "org.jsoup.nodes.Element", "org.jsoup.select.Elements" ]
import com.spicymango.fanfictionreader.menu.storymenu.FilterDialog; import java.util.ArrayList; import org.jsoup.nodes.Document; import org.jsoup.nodes.Element; import org.jsoup.select.Elements;
import com.spicymango.fanfictionreader.menu.storymenu.*; import java.util.*; import org.jsoup.nodes.*; import org.jsoup.select.*;
[ "com.spicymango.fanfictionreader", "java.util", "org.jsoup.nodes", "org.jsoup.select" ]
com.spicymango.fanfictionreader; java.util; org.jsoup.nodes; org.jsoup.select;
1,970,895
public List<Header> getHeaders() { return headers; }
List<Header> function() { return headers; }
/** * Headers to attach to the request. */
Headers to attach to the request
getHeaders
{ "repo_name": "robin13/elasticsearch", "path": "client/rest/src/main/java/org/elasticsearch/client/RequestOptions.java", "license": "apache-2.0", "size": 11003 }
[ "java.util.List", "org.apache.http.Header" ]
import java.util.List; import org.apache.http.Header;
import java.util.*; import org.apache.http.*;
[ "java.util", "org.apache.http" ]
java.util; org.apache.http;
997,597
public JspWriter getPreviousOut() { if (bodyContent != null) return bodyContent.getEnclosingWriter(); else return pageContext.getOut(); }
JspWriter function() { if (bodyContent != null) return bodyContent.getEnclosingWriter(); else return pageContext.getOut(); }
/** * Returns the enclosing writer. For BodyTags with no body, this is * equivalent to pageContext.getOut(). */
Returns the enclosing writer. For BodyTags with no body, this is equivalent to pageContext.getOut()
getPreviousOut
{ "repo_name": "dlitz/resin", "path": "modules/servlet16/src/javax/servlet/jsp/tagext/BodyTagSupport.java", "license": "gpl-2.0", "size": 3310 }
[ "javax.servlet.jsp.JspWriter" ]
import javax.servlet.jsp.JspWriter;
import javax.servlet.jsp.*;
[ "javax.servlet" ]
javax.servlet;
529,985
@Override public void notifyChanged(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(TimeAtom.class)) { case RulesPackage.TIME_ATOM__TIME: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super...
void function(Notification notification) { updateChildren(notification); switch (notification.getFeatureID(TimeAtom.class)) { case RulesPackage.TIME_ATOM__TIME: fireNotifyChanged(new ViewerNotification(notification, notification.getNotifier(), false, true)); return; } super.notifyChanged(notification); }
/** * This handles model notifications by calling {@link #updateChildren} to update any cached * children and by creating a viewer notification, which it passes to {@link #fireNotifyChanged}. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This handles model notifications by calling <code>#updateChildren</code> to update any cached children and by creating a viewer notification, which it passes to <code>#fireNotifyChanged</code>.
notifyChanged
{ "repo_name": "paetti1988/qmate", "path": "MATE/org.tud.inf.st.mbt.emf.edit/src-gen/org/tud/inf/st/mbt/rules/provider/TimeAtomItemProvider.java", "license": "apache-2.0", "size": 5095 }
[ "org.eclipse.emf.common.notify.Notification", "org.eclipse.emf.edit.provider.ViewerNotification", "org.tud.inf.st.mbt.rules.RulesPackage", "org.tud.inf.st.mbt.rules.TimeAtom" ]
import org.eclipse.emf.common.notify.Notification; import org.eclipse.emf.edit.provider.ViewerNotification; import org.tud.inf.st.mbt.rules.RulesPackage; import org.tud.inf.st.mbt.rules.TimeAtom;
import org.eclipse.emf.common.notify.*; import org.eclipse.emf.edit.provider.*; import org.tud.inf.st.mbt.rules.*;
[ "org.eclipse.emf", "org.tud.inf" ]
org.eclipse.emf; org.tud.inf;
711,633
public int getType() { return this.type; } } public static final class WellKnownMimeTypeEntry implements Entry { private final ByteBuf content; private final WellKnownMimeType type; public WellKnownMimeTypeEntry(ByteBuf content, WellKnownMimeType type) { this.content = content;...
int function() { return this.type; } } public static final class WellKnownMimeTypeEntry implements Entry { private final ByteBuf content; private final WellKnownMimeType type; public WellKnownMimeTypeEntry(ByteBuf content, WellKnownMimeType type) { this.content = content; this.type = type; }
/** * Returns the reserved, but unknown {@link WellKnownMimeType} for this entry. Range is 0-127 * (inclusive). * * @return the reserved, but unknown {@link WellKnownMimeType} for this entry */
Returns the reserved, but unknown <code>WellKnownMimeType</code> for this entry. Range is 0-127 (inclusive)
getType
{ "repo_name": "rsocket/rsocket-java", "path": "rsocket-core/src/main/java/io/rsocket/metadata/CompositeMetadata.java", "license": "apache-2.0", "size": 7852 }
[ "io.netty.buffer.ByteBuf", "io.rsocket.metadata.CompositeMetadata" ]
import io.netty.buffer.ByteBuf; import io.rsocket.metadata.CompositeMetadata;
import io.netty.buffer.*; import io.rsocket.metadata.*;
[ "io.netty.buffer", "io.rsocket.metadata" ]
io.netty.buffer; io.rsocket.metadata;
2,417,673
EAttribute getPassThroughBill_BilledTo();
EAttribute getPassThroughBill_BilledTo();
/** * Returns the meta object for the attribute '{@link CIM.IEC61970.Informative.MarketOperations.PassThroughBill#getBilledTo <em>Billed To</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Billed To</em>'. * @see CIM.IEC61970.Informative.MarketOperatio...
Returns the meta object for the attribute '<code>CIM.IEC61970.Informative.MarketOperations.PassThroughBill#getBilledTo Billed To</code>'.
getPassThroughBill_BilledTo
{ "repo_name": "georghinkel/ttc2017smartGrids", "path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Informative/MarketOperations/MarketOperationsPackage.java", "license": "mit", "size": 688294 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,431,814
@Generated @Selector("runLoopModes") public native NSArray<String> runLoopModes();
@Selector(STR) native NSArray<String> function();
/** * Run Loop Modes */
Run Loop Modes
runLoopModes
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/foundation/NSUndoManager.java", "license": "apache-2.0", "size": 10528 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
1,165,565
@Override public BinaryResource getResource(final CacheKey key) { String resourceId = null; SettableCacheEvent cacheEvent = SettableCacheEvent.obtain() .setCacheKey(key); try { synchronized (mLock) { BinaryResource resource = null; List<String> resourceIds = CacheKeyUtil.ge...
BinaryResource function(final CacheKey key) { String resourceId = null; SettableCacheEvent cacheEvent = SettableCacheEvent.obtain() .setCacheKey(key); try { synchronized (mLock) { BinaryResource resource = null; List<String> resourceIds = CacheKeyUtil.getResourceIds(key); for (int i = 0; i < resourceIds.size(); i++) { ...
/** * Retrieves the file corresponding to the mKey, if it is in the cache. Also * touches the item, thus changing its LRU timestamp. If the file is not * present in the file cache, returns null. * <p> * This should NOT be called on the UI thread. * * @param key the mKey to check * @return The re...
Retrieves the file corresponding to the mKey, if it is in the cache. Also touches the item, thus changing its LRU timestamp. If the file is not present in the file cache, returns null. This should NOT be called on the UI thread
getResource
{ "repo_name": "s1rius/fresco", "path": "imagepipeline-base/src/main/java/com/facebook/cache/disk/DiskStorageCache.java", "license": "mit", "size": 24997 }
[ "com.facebook.binaryresource.BinaryResource", "com.facebook.cache.common.CacheErrorLogger", "com.facebook.cache.common.CacheKey", "com.facebook.cache.common.CacheKeyUtil", "java.io.IOException", "java.util.List" ]
import com.facebook.binaryresource.BinaryResource; import com.facebook.cache.common.CacheErrorLogger; import com.facebook.cache.common.CacheKey; import com.facebook.cache.common.CacheKeyUtil; import java.io.IOException; import java.util.List;
import com.facebook.binaryresource.*; import com.facebook.cache.common.*; import java.io.*; import java.util.*;
[ "com.facebook.binaryresource", "com.facebook.cache", "java.io", "java.util" ]
com.facebook.binaryresource; com.facebook.cache; java.io; java.util;
2,803,066
public long getTotalSize() { long totalSize = 0; for (String jarEntryName : entryMap.keySet()) { File file = entryMap.get(jarEntryName); if ((file.exists()) && (file.isFile())) { totalSize += file.length(); } } ...
long function() { long totalSize = 0; for (String jarEntryName : entryMap.keySet()) { File file = entryMap.get(jarEntryName); if ((file.exists()) && (file.isFile())) { totalSize += file.length(); } } return totalSize; }
/** * Calculate the package total size returns long */
Calculate the package total size returns long
getTotalSize
{ "repo_name": "DmitryADP/diff_qc750", "path": "tools/motodev/src/plugins/certmanager/src/com/motorolamobility/studio/android/certmanager/packaging/PackageFile.java", "license": "gpl-2.0", "size": 20548 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
244,478
private String createUriTemplate(Map<String, String> queryParams) { final String queryParamsStart = "?"; final String uriVariableStart = "{"; final String uriVariableEnd = "}"; final String uriVariableSeparator = "&"; final char uriPathSeparator = '/'; StringBuilder uriTemplate = new StringBuilder(endpo...
String function(Map<String, String> queryParams) { final String queryParamsStart = "?"; final String uriVariableStart = "{"; final String uriVariableEnd = "}"; final String uriVariableSeparator = "&"; final char uriPathSeparator = '/'; StringBuilder uriTemplate = new StringBuilder(endpoint); Set<String> keys = queryPar...
/** * Creates a URI template by appending the query parameters in the form of * k={k}, where k is a key from the Map. * * @param queryParams * Query parameters. * @return Expanded URI template. */
Creates a URI template by appending the query parameters in the form of k={k}, where k is a key from the Map
createUriTemplate
{ "repo_name": "abhijitsarkar/java", "path": "moviedatabase-api-client/src/main/java/name/abhijitsarkar/moviedatabase/api/client/dao/AbstractClient.java", "license": "gpl-3.0", "size": 4142 }
[ "java.util.Map", "java.util.Set" ]
import java.util.Map; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,184,091
public void testConcurrency() throws InterruptedException, SQLException { final int records = 100000; final int tables = 1; final int threads = 16; DBFiller filler = new SingleRecordFiller( records, tables, java.sql.Types.CLOB, false, false); Conn...
void function() throws InterruptedException, SQLException { final int records = 100000; final int tables = 1; final int threads = 16; DBFiller filler = new SingleRecordFiller( records, tables, java.sql.Types.CLOB, false, false); Connection conn = getConnection(); println(STR); filler.fill(conn); conn.close(); Client[] ...
/** * Runs a test using multiple threads. * <p> * This test intends to detect problems with small Clobs and general * problems with concurrency. * <p> * <b>NOTE</b>: To produce more reliable numbers, please run the performance * client independently outside this JUnit test framework. ...
Runs a test using multiple threads. This test intends to detect problems with small Clobs and general problems with concurrency. NOTE: To produce more reliable numbers, please run the performance client independently outside this JUnit test framework. Performance also suffers greatly with SANE builds
testConcurrency
{ "repo_name": "scnakandala/derby", "path": "java/testing/org/apache/derbyTesting/perf/basic/jdbc/ClobAccessTest.java", "license": "apache-2.0", "size": 24780 }
[ "java.sql.Connection", "java.sql.SQLException", "org.apache.derbyTesting.perf.clients.BackToBackLoadGenerator", "org.apache.derbyTesting.perf.clients.Client", "org.apache.derbyTesting.perf.clients.DBFiller", "org.apache.derbyTesting.perf.clients.LoadGenerator", "org.apache.derbyTesting.perf.clients.Sing...
import java.sql.Connection; import java.sql.SQLException; import org.apache.derbyTesting.perf.clients.BackToBackLoadGenerator; import org.apache.derbyTesting.perf.clients.Client; import org.apache.derbyTesting.perf.clients.DBFiller; import org.apache.derbyTesting.perf.clients.LoadGenerator; import org.apache.derbyTesti...
import java.sql.*; import org.apache.*;
[ "java.sql", "org.apache" ]
java.sql; org.apache;
82,276
protected String build_instructor_delete_assignment_context(VelocityPortlet portlet, Context context, RunData data, SessionState state) { List assignments = new ArrayList(); List assignmentIds = (List) state.getAttribute(DELETE_ASSIGNMENT_IDS); HashMap<String, Integer> submissionCountTable = new HashMap<St...
String function(VelocityPortlet portlet, Context context, RunData data, SessionState state) { List assignments = new ArrayList(); List assignmentIds = (List) state.getAttribute(DELETE_ASSIGNMENT_IDS); HashMap<String, Integer> submissionCountTable = new HashMap<String, Integer>(); for (int i = 0; i < assignmentIds.size(...
/** * build the instructor view to delete an assignment */
build the instructor view to delete an assignment
build_instructor_delete_assignment_context
{ "repo_name": "udayg/sakai", "path": "assignment/assignment-tool/tool/src/java/org/sakaiproject/assignment/tool/AssignmentAction.java", "license": "apache-2.0", "size": 672322 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.Iterator", "java.util.List", "org.sakaiproject.assignment.api.Assignment", "org.sakaiproject.assignment.api.AssignmentSubmission", "org.sakaiproject.assignment.cover.AssignmentService", "org.sakaiproject.cheftool.Context", "org.sakaiproject.chef...
import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; import java.util.List; import org.sakaiproject.assignment.api.Assignment; import org.sakaiproject.assignment.api.AssignmentSubmission; import org.sakaiproject.assignment.cover.AssignmentService; import org.sakaiproject.cheftool.Context; im...
import java.util.*; import org.sakaiproject.assignment.api.*; import org.sakaiproject.assignment.cover.*; import org.sakaiproject.cheftool.*; import org.sakaiproject.event.api.*; import org.sakaiproject.time.cover.*;
[ "java.util", "org.sakaiproject.assignment", "org.sakaiproject.cheftool", "org.sakaiproject.event", "org.sakaiproject.time" ]
java.util; org.sakaiproject.assignment; org.sakaiproject.cheftool; org.sakaiproject.event; org.sakaiproject.time;
1,838,587
private void checkReportedErrorStartsWith( SkylarkRuleContext ruleContext, String errorMsg, String... statements) throws Exception { // If the component under test relies on Reporter and EventCollector for error handling, any // error would lead to an asynchronous AssertionFailedError thanks to failFast...
void function( SkylarkRuleContext ruleContext, String errorMsg, String... statements) throws Exception { reporter.removeHandler(failFastHandler); Object result = evalRuleContextCode(ruleContext, statements); String first = null; int count = 0; try { for (Event evt : eventCollector) { if (evt.getMessage().startsWith(err...
/** * Checks whether the given (invalid) statement leads to the expected error */
Checks whether the given (invalid) statement leads to the expected error
checkReportedErrorStartsWith
{ "repo_name": "variac/bazel", "path": "src/test/java/com/google/devtools/build/lib/skylark/SkylarkRuleImplementationFunctionsTest.java", "license": "apache-2.0", "size": 66985 }
[ "com.google.devtools.build.lib.events.Event", "com.google.devtools.build.lib.rules.SkylarkRuleContext", "org.junit.Assert" ]
import com.google.devtools.build.lib.events.Event; import com.google.devtools.build.lib.rules.SkylarkRuleContext; import org.junit.Assert;
import com.google.devtools.build.lib.events.*; import com.google.devtools.build.lib.rules.*; import org.junit.*;
[ "com.google.devtools", "org.junit" ]
com.google.devtools; org.junit;
1,862,575
@Override public Object loadReferencedObject( int index, Repository rep, IMetaStore metaStore, VariableSpace space ) throws KettleException { return loadJobMeta( this, rep, metaStore, space ); }
Object function( int index, Repository rep, IMetaStore metaStore, VariableSpace space ) throws KettleException { return loadJobMeta( this, rep, metaStore, space ); }
/** * Load the referenced object * * @param index * the object index to load * @param rep * the repository * @param metaStore * the metaStore * @param space * the variable space to use * @return the referenced object once loaded * @throws KettleExc...
Load the referenced object
loadReferencedObject
{ "repo_name": "flbrino/pentaho-kettle", "path": "engine/src/main/java/org/pentaho/di/trans/steps/jobexecutor/JobExecutorMeta.java", "license": "apache-2.0", "size": 59119 }
[ "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.core.variables.VariableSpace", "org.pentaho.di.repository.Repository", "org.pentaho.metastore.api.IMetaStore" ]
import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.variables.VariableSpace; import org.pentaho.di.repository.Repository; import org.pentaho.metastore.api.IMetaStore;
import org.pentaho.di.core.exception.*; import org.pentaho.di.core.variables.*; import org.pentaho.di.repository.*; import org.pentaho.metastore.api.*;
[ "org.pentaho.di", "org.pentaho.metastore" ]
org.pentaho.di; org.pentaho.metastore;
2,123,407
public NumberDataValue plus(NumberDataValue addend1, NumberDataValue addend2, NumberDataValue result) throws StandardException { if (result == null) { result = new SQLReal(); } if (addend1.isNull() || addend2.isNull()) { result.setToNull(); return result; } double ds...
NumberDataValue function(NumberDataValue addend1, NumberDataValue addend2, NumberDataValue result) throws StandardException { if (result == null) { result = new SQLReal(); } if (addend1.isNull() addend2.isNull()) { result.setToNull(); return result; } double dsum = addend1.getDouble() + addend2.getDouble(); result.setV...
/** * This method implements the + operator for "real + real". * The operator uses DOUBLE aritmetic as DB2 does. * * @param addend1 One of the addends * @param addend2 The other addend * @param result The result of a previous call to this method, null * if not called yet * * @return A SQLReal c...
This method implements the + operator for "real + real". The operator uses DOUBLE aritmetic as DB2 does
plus
{ "repo_name": "trejkaz/derby", "path": "java/engine/org/apache/derby/iapi/types/SQLReal.java", "license": "apache-2.0", "size": 22723 }
[ "org.apache.derby.iapi.error.StandardException" ]
import org.apache.derby.iapi.error.StandardException;
import org.apache.derby.iapi.error.*;
[ "org.apache.derby" ]
org.apache.derby;
1,840,983
private ColumnSchema getColumnSchema(String columnName) { TableSchema tableSchema = getTableSchema(); if (tableSchema == null) { String message = TableSchemaNotFoundException.createMessage(tableDesc.name(), dbSchema....
ColumnSchema function(String columnName) { TableSchema tableSchema = getTableSchema(); if (tableSchema == null) { String message = TableSchemaNotFoundException.createMessage(tableDesc.name(), dbSchema.name()); throw new TableSchemaNotFoundException(message); } ColumnSchema columnSchema = tableSchema.getColumnSchema(col...
/** * Returns ColumnSchema from TableSchema by column name. * @param columnName column name * @return ColumnSchema */
Returns ColumnSchema from TableSchema by column name
getColumnSchema
{ "repo_name": "planoAccess/clonedONOS", "path": "protocols/ovsdb/rfc/src/main/java/org/onosproject/ovsdb/rfc/tableservice/AbstractOvsdbTableService.java", "license": "apache-2.0", "size": 9830 }
[ "org.onosproject.ovsdb.rfc.exception.ColumnSchemaNotFoundException", "org.onosproject.ovsdb.rfc.exception.TableSchemaNotFoundException", "org.onosproject.ovsdb.rfc.schema.ColumnSchema", "org.onosproject.ovsdb.rfc.schema.TableSchema" ]
import org.onosproject.ovsdb.rfc.exception.ColumnSchemaNotFoundException; import org.onosproject.ovsdb.rfc.exception.TableSchemaNotFoundException; import org.onosproject.ovsdb.rfc.schema.ColumnSchema; import org.onosproject.ovsdb.rfc.schema.TableSchema;
import org.onosproject.ovsdb.rfc.exception.*; import org.onosproject.ovsdb.rfc.schema.*;
[ "org.onosproject.ovsdb" ]
org.onosproject.ovsdb;
343,630
public void setUserDN(String newUserDN) { setProperty(new StringProperty(USERDN, newUserDN)); }
void function(String newUserDN) { setProperty(new StringProperty(USERDN, newUserDN)); }
/*************************************************************************** * Sets the username attribute of the LDAP object * **************************************************************************/
Sets the username attribute of the LDAP object
setUserDN
{ "repo_name": "botelhojp/apache-jmeter-2.10", "path": "src/protocol/ldap/org/apache/jmeter/protocol/ldap/sampler/LDAPExtSampler.java", "license": "apache-2.0", "size": 44694 }
[ "org.apache.jmeter.testelement.property.StringProperty" ]
import org.apache.jmeter.testelement.property.StringProperty;
import org.apache.jmeter.testelement.property.*;
[ "org.apache.jmeter" ]
org.apache.jmeter;
1,512,434
@ServiceMethod(returns = ReturnType.SINGLE) Response<DeploymentExtendedInner> getAtTenantScopeWithResponse(String deploymentName, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<DeploymentExtendedInner> getAtTenantScopeWithResponse(String deploymentName, Context context);
/** * Gets a deployment. * * @param deploymentName The name of the deployment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException throw...
Gets a deployment
getAtTenantScopeWithResponse
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-resources/src/main/java/com/azure/resourcemanager/resources/fluent/DeploymentsClient.java", "license": "mit", "size": 209954 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.resources.fluent.models.DeploymentExtendedInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.resources.fluent.models.DeploymentExtendedInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.resources.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,429,557
private JButton getJButtonImportCSV() { if (jButtonImportCSV == null) { jButtonImportCSV = new JButton(); jButtonImportCSV.setToolTipText(Language.translate("'.csv'-Version des Wörterbuchs übernehmen ...")); jButtonImportCSV.setIcon(GlobalInfo.getInternalImageIcon("MBtransImport.png")); jButtonImportCS...
JButton function() { if (jButtonImportCSV == null) { jButtonImportCSV = new JButton(); jButtonImportCSV.setToolTipText(Language.translate(STR)); jButtonImportCSV.setIcon(GlobalInfo.getInternalImageIcon(STR)); jButtonImportCSV.setPreferredSize(new Dimension(26, 26)); jButtonImportCSV.addActionListener(this); } return jB...
/** * This method initializes jButtonImportCSV. * @return javax.swing.JButton */
This method initializes jButtonImportCSV
getJButtonImportCSV
{ "repo_name": "EnFlexIT/AgentWorkbench", "path": "eclipseProjects/org.agentgui/bundles/org.agentgui.core/src/agentgui/core/gui/Translation.java", "license": "lgpl-2.1", "size": 43677 }
[ "java.awt.Dimension", "javax.swing.JButton" ]
import java.awt.Dimension; import javax.swing.JButton;
import java.awt.*; import javax.swing.*;
[ "java.awt", "javax.swing" ]
java.awt; javax.swing;
1,262,242
public MulticurveSensitivity priceCurveSensitivity(final BondFuture future, final IssuerProviderInterface issuerMulticurves) { ArgumentChecker.notNull(future, "Future"); ArgumentChecker.notNull(issuerMulticurves, "Issuer and multi-curves provider"); final double[] priceFromBond = new double[future.getDeli...
MulticurveSensitivity function(final BondFuture future, final IssuerProviderInterface issuerMulticurves) { ArgumentChecker.notNull(future, STR); ArgumentChecker.notNull(issuerMulticurves, STR); final double[] priceFromBond = new double[future.getDeliveryBasket().length]; int indexCTD = 0; double priceMin = 2.0; for (in...
/** * Computes the future price curve sensitivity. * @param future The future security. * @param issuerMulticurves The issuer and multi-curves provider. * @return The curve sensitivity. */
Computes the future price curve sensitivity
priceCurveSensitivity
{ "repo_name": "jeorme/OG-Platform", "path": "projects/OG-Analytics/src/main/java/com/opengamma/analytics/financial/interestrate/future/provider/BondFutureDiscountingMethod.java", "license": "apache-2.0", "size": 10409 }
[ "com.opengamma.analytics.financial.interestrate.future.derivative.BondFuture", "com.opengamma.analytics.financial.provider.description.interestrate.IssuerProviderInterface", "com.opengamma.analytics.financial.provider.sensitivity.multicurve.MulticurveSensitivity", "com.opengamma.util.ArgumentChecker" ]
import com.opengamma.analytics.financial.interestrate.future.derivative.BondFuture; import com.opengamma.analytics.financial.provider.description.interestrate.IssuerProviderInterface; import com.opengamma.analytics.financial.provider.sensitivity.multicurve.MulticurveSensitivity; import com.opengamma.util.ArgumentChecke...
import com.opengamma.analytics.financial.interestrate.future.derivative.*; import com.opengamma.analytics.financial.provider.description.interestrate.*; import com.opengamma.analytics.financial.provider.sensitivity.multicurve.*; import com.opengamma.util.*;
[ "com.opengamma.analytics", "com.opengamma.util" ]
com.opengamma.analytics; com.opengamma.util;
1,948,964
public void updateDevice() { if (bluetoothState == State.UNINITIALIZED || bluetoothHeadset == null) { return; } Log.d(TAG, "updateDevice"); // Get connected devices for the headset profile. Returns the set of // devices which are in state STATE_CONNECTED. The BluetoothDevice class // is ...
void function() { if (bluetoothState == State.UNINITIALIZED bluetoothHeadset == null) { return; } Log.d(TAG, STR); List<BluetoothDevice> devices = bluetoothHeadset.getConnectedDevices(); if (devices.isEmpty()) { bluetoothDevice = null; bluetoothState = State.HEADSET_UNAVAILABLE; Log.d(TAG, STR); } else { bluetoothDevic...
/** * Use the BluetoothHeadset proxy object (controls the Bluetooth Headset * Service via IPC) to update the list of connected devices for the HEADSET * profile. The internal state will change to HEADSET_UNAVAILABLE or to * HEADSET_AVAILABLE and |bluetoothDevice| will be mapped to the connected * device ...
Use the BluetoothHeadset proxy object (controls the Bluetooth Headset Service via IPC) to update the list of connected devices for the HEADSET profile. The internal state will change to HEADSET_UNAVAILABLE or to HEADSET_AVAILABLE and |bluetoothDevice| will be mapped to the connected device if available
updateDevice
{ "repo_name": "koobonil/Boss2D", "path": "Boss2D/addon/webrtc-jumpingyang001_for_boss/examples/androidapp/src/org/appspot/apprtc/AppRTCBluetoothManager.java", "license": "mit", "size": 22461 }
[ "android.bluetooth.BluetoothDevice", "android.util.Log", "java.util.List" ]
import android.bluetooth.BluetoothDevice; import android.util.Log; import java.util.List;
import android.bluetooth.*; import android.util.*; import java.util.*;
[ "android.bluetooth", "android.util", "java.util" ]
android.bluetooth; android.util; java.util;
1,396,982
private JLabel getTargetClassLabel() { if (targetClassLabel == null) { targetClassLabel = new JLabel(); targetClassLabel.setText("Target Class:"); } return targetClassLabel; }
JLabel function() { if (targetClassLabel == null) { targetClassLabel = new JLabel(); targetClassLabel.setText(STR); } return targetClassLabel; }
/** * This method initializes targetClassLabel * * @return javax.swing.JLabel */
This method initializes targetClassLabel
getTargetClassLabel
{ "repo_name": "NCIP/cagrid", "path": "cagrid/Software/core/caGrid/projects/data/src/java/tools/gov/nih/nci/cagrid/data/utilities/vizquery/AssociationInformationPanel.java", "license": "bsd-3-clause", "size": 9709 }
[ "javax.swing.JLabel" ]
import javax.swing.JLabel;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,986,232
private void drawTypedefEnum(MetaEnum field, String indent, MetaType type){ writer.write(indent +"enum " + field.getTypeName() + " {" + newLine + indent + tab); String[] posValues = field.getPosValues(); for(int i=0; i<posValues.length; i++){ if(i != (p...
void function(MetaEnum field, String indent, MetaType type){ writer.write(indent +STR + field.getTypeName() + STR + newLine + indent + tab); String[] posValues = field.getPosValues(); for(int i=0; i<posValues.length; i++){ if(i != (posValues.length-1)){ writer.write(posValues[i] + STR); } else{ writer.write(posValues[i...
/** * Creates a plain text representation of a typedef enumeration. * * @param field The 'typedeffed' enumeration. * @param indent The indentation to draw. * @param type The complete type. */
Creates a plain text representation of a typedef enumeration
drawTypedefEnum
{ "repo_name": "SanderMertens/opensplice", "path": "src/tools/cm/common/code/org/opensplice/common/view/entity/EntityInfoFormatterText.java", "license": "gpl-3.0", "size": 15697 }
[ "org.opensplice.cm.meta.MetaEnum", "org.opensplice.cm.meta.MetaType" ]
import org.opensplice.cm.meta.MetaEnum; import org.opensplice.cm.meta.MetaType;
import org.opensplice.cm.meta.*;
[ "org.opensplice.cm" ]
org.opensplice.cm;
2,462,051
public AccessibleContext getAccessibleContext() { if (accessibleContext == null) accessibleContext = new AccessibleApplet(); return accessibleContext; }
AccessibleContext function() { if (accessibleContext == null) accessibleContext = new AccessibleApplet(); return accessibleContext; }
/** * Gets the AccessibleContext associated with this applet, creating one if * necessary. This always returns an instance of {@link AccessibleApplet}. * * @return the accessibility context of this applet * @since 1.3 */
Gets the AccessibleContext associated with this applet, creating one if necessary. This always returns an instance of <code>AccessibleApplet</code>
getAccessibleContext
{ "repo_name": "shaotuanchen/sunflower_exp", "path": "tools/source/gcc-4.2.4/libjava/classpath/java/applet/Applet.java", "license": "bsd-3-clause", "size": 16190 }
[ "javax.accessibility.AccessibleContext" ]
import javax.accessibility.AccessibleContext;
import javax.accessibility.*;
[ "javax.accessibility" ]
javax.accessibility;
220,019
public void setBlob(int parameterIndex, InputStream inputStream, long length) throws SQLException{ synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, "setBlob", parameterIndex, inputStream, new Long(length)); ...
void function(int parameterIndex, InputStream inputStream, long length) throws SQLException{ synchronized (connection_) { if (agent_.loggingEnabled()) { agent_.logWriter_.traceEntry(this, STR, parameterIndex, inputStream, new Long(length)); } if(length > Integer.MAX_VALUE) throw new SqlException(agent_.logWriter_, new ...
/** * Sets the designated parameter to a InputStream object. * * @param parameterIndex index of the first parameter is 1, * the second is 2, ... * @param inputStream An object that contains the data to set the parameter * value to. * @param length the number of bytes in the parameter ...
Sets the designated parameter to a InputStream object
setBlob
{ "repo_name": "papicella/snappy-store", "path": "gemfirexd/client/src/main/java/com/pivotal/gemfirexd/internal/client/am/PreparedStatement.java", "license": "apache-2.0", "size": 167404 }
[ "com.pivotal.gemfirexd.internal.shared.common.reference.SQLState", "java.io.InputStream", "java.sql.SQLException" ]
import com.pivotal.gemfirexd.internal.shared.common.reference.SQLState; import java.io.InputStream; import java.sql.SQLException;
import com.pivotal.gemfirexd.internal.shared.common.reference.*; import java.io.*; import java.sql.*;
[ "com.pivotal.gemfirexd", "java.io", "java.sql" ]
com.pivotal.gemfirexd; java.io; java.sql;
2,426,390
public VirtualHubId virtualHub() { return this.virtualHub; }
VirtualHubId function() { return this.virtualHub; }
/** * Get the Virtual Hub where the ExpressRoute gateway is or will be deployed. * * @return the virtualHub value */
Get the Virtual Hub where the ExpressRoute gateway is or will be deployed
virtualHub
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2019_07_01/src/main/java/com/microsoft/azure/management/network/v2019_07_01/implementation/ExpressRouteGatewayInner.java", "license": "mit", "size": 5041 }
[ "com.microsoft.azure.management.network.v2019_07_01.VirtualHubId" ]
import com.microsoft.azure.management.network.v2019_07_01.VirtualHubId;
import com.microsoft.azure.management.network.v2019_07_01.*;
[ "com.microsoft.azure" ]
com.microsoft.azure;
2,271,674
@Test public final void testCreateContrastTextColors() { final ColorStateList stateList = Coloring.createContrastTextColors(Color.WHITE, Color.BLACK); assertNotNull("ColorStateList is null", stateList); assertTrue("ColorStateList is not stateful", stateList.isStateful()); assertE...
final void function() { final ColorStateList stateList = Coloring.createContrastTextColors(Color.WHITE, Color.BLACK); assertNotNull(STR, stateList); assertTrue(STR, stateList.isStateful()); assertEquals(STR, hex(Color.WHITE), hex(stateList.getDefaultColor())); final int activeTextColor = stateList.getColorForState(new ...
/** * Tests the {@link Coloring#createContrastTextColors(int, int)} method. */
Tests the <code>Coloring#createContrastTextColors(int, int)</code> method
testCreateContrastTextColors
{ "repo_name": "milosmns/silly-android", "path": "demo/src/test/java/me/angrybyte/sillyandroid/extras/ColoringTest.java", "license": "apache-2.0", "size": 38213 }
[ "android.content.res.ColorStateList", "android.graphics.Color", "junit.framework.Assert" ]
import android.content.res.ColorStateList; import android.graphics.Color; import junit.framework.Assert;
import android.content.res.*; import android.graphics.*; import junit.framework.*;
[ "android.content", "android.graphics", "junit.framework" ]
android.content; android.graphics; junit.framework;
1,988,540
private void checkQualifier(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ForwardTypeQualifierDataflowFactory forwardDataflowFactory, BackwardTypeQualifierDataflowFactory backwardDataflowFactory, ValueNumberDataflow vnaDataflow) throws CheckedAnalysi...
void function(XMethod xmethod, CFG cfg, TypeQualifierValue<?> typeQualifierValue, ForwardTypeQualifierDataflowFactory forwardDataflowFactory, BackwardTypeQualifierDataflowFactory backwardDataflowFactory, ValueNumberDataflow vnaDataflow) throws CheckedAnalysisException { if (DEBUG) { System.out.println(STR); System.out....
/** * Check a specific TypeQualifierValue on a method. * * @param xmethod * MethodDescriptor of method * @param cfg * CFG of method * @param typeQualifierValue * TypeQualifierValue to check * @param forwardDataflowFactory * Fo...
Check a specific TypeQualifierValue on a method
checkQualifier
{ "repo_name": "sewe/spotbugs", "path": "spotbugs/src/main/java/edu/umd/cs/findbugs/detect/CheckTypeQualifiers.java", "license": "lgpl-2.1", "size": 31515 }
[ "edu.umd.cs.findbugs.ba.DataflowCFGPrinter", "edu.umd.cs.findbugs.ba.XMethod", "edu.umd.cs.findbugs.ba.jsr305.BackwardTypeQualifierDataflow", "edu.umd.cs.findbugs.ba.jsr305.BackwardTypeQualifierDataflowAnalysis", "edu.umd.cs.findbugs.ba.jsr305.BackwardTypeQualifierDataflowFactory", "edu.umd.cs.findbugs.ba...
import edu.umd.cs.findbugs.ba.DataflowCFGPrinter; import edu.umd.cs.findbugs.ba.XMethod; import edu.umd.cs.findbugs.ba.jsr305.BackwardTypeQualifierDataflow; import edu.umd.cs.findbugs.ba.jsr305.BackwardTypeQualifierDataflowAnalysis; import edu.umd.cs.findbugs.ba.jsr305.BackwardTypeQualifierDataflowFactory; import edu.u...
import edu.umd.cs.findbugs.ba.*; import edu.umd.cs.findbugs.ba.jsr305.*; import edu.umd.cs.findbugs.ba.vna.*; import edu.umd.cs.findbugs.classfile.*;
[ "edu.umd.cs" ]
edu.umd.cs;
1,950,784
@Test public void postInvalidatesCacheWithUncacheableResponse() throws Exception { // 1. seed the cache // 2. invalidate it with uncacheable response // 3. the cache to return the original value server.enqueue(new MockResponse() .setBody("A") .addHeader("Expires: " + formatDate(1, Time...
@Test void function() throws Exception { server.enqueue(new MockResponse() .setBody("A") .addHeader(STR + formatDate(1, TimeUnit.HOURS))); server.enqueue(new MockResponse() .setBody("B") .setResponseCode(500)); URL url = server.url("/").url(); assertEquals("A", readAscii(openConnection(url))); HttpURLConnection invalid...
/** * Equivalent to {@code CacheTest.postInvalidatesCacheWithUncacheableResponse()} but demonstrating * that {@link ResponseCache} provides no mechanism for cache invalidation as the result of * locally-made requests. In reality invalidation could take place from other clients at any * time. */
Equivalent to CacheTest.postInvalidatesCacheWithUncacheableResponse() but demonstrating that <code>ResponseCache</code> provides no mechanism for cache invalidation as the result of locally-made requests. In reality invalidation could take place from other clients at any time
postInvalidatesCacheWithUncacheableResponse
{ "repo_name": "germanattanasio/okhttp", "path": "okhttp-android-support/src/test/java/okhttp3/internal/huc/ResponseCacheTest.java", "license": "apache-2.0", "size": 89121 }
[ "java.net.HttpURLConnection", "java.util.concurrent.TimeUnit", "org.junit.Assert", "org.junit.Test" ]
import java.net.HttpURLConnection; import java.util.concurrent.TimeUnit; import org.junit.Assert; import org.junit.Test;
import java.net.*; import java.util.concurrent.*; import org.junit.*;
[ "java.net", "java.util", "org.junit" ]
java.net; java.util; org.junit;
1,671,238
@Override public void mouseExited(MouseEvent e) { super.mouseExited(e); if (!isActive()) { balloon.setVisible(false); } }
void function(MouseEvent e) { super.mouseExited(e); if (!isActive()) { balloon.setVisible(false); } }
/** * de-highlight button state * Hide inactive balloon */
de-highlight button state Hide inactive balloon
mouseExited
{ "repo_name": "shilpamagrawal15/appinventor-sources", "path": "appinventor/blockslib/src/openblocks/renderable/BlockNoteLabel.java", "license": "mit", "size": 2554 }
[ "java.awt.event.MouseEvent" ]
import java.awt.event.MouseEvent;
import java.awt.event.*;
[ "java.awt" ]
java.awt;
1,310,149
public static Button createDisabledPushButton(final Composite parent, final String text, final SelectionListener listener) { return createPushButton(parent, text, listener, false); }
static Button function(final Composite parent, final String text, final SelectionListener listener) { return createPushButton(parent, text, listener, false); }
/** * Delegates to {@link #createPushButton(Composite, String, SelectionListener, boolean)} with {@code enabled} set to * {@code false}. */
Delegates to <code>#createPushButton(Composite, String, SelectionListener, boolean)</code> with enabled set to false
createDisabledPushButton
{ "repo_name": "lbeurerkellner/n4js", "path": "plugins/org.eclipse.n4js.ui/src/org/eclipse/n4js/ui/preferences/external/ButtonFactoryUtil.java", "license": "epl-1.0", "size": 2534 }
[ "org.eclipse.swt.events.SelectionListener", "org.eclipse.swt.widgets.Button", "org.eclipse.swt.widgets.Composite" ]
import org.eclipse.swt.events.SelectionListener; import org.eclipse.swt.widgets.Button; import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.events.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
591,872
public static Rectangle getRectangle(IPreferenceStore store, String name) { return basicGetRectangle(store.getString(name)); }
static Rectangle function(IPreferenceStore store, String name) { return basicGetRectangle(store.getString(name)); }
/** * Returns the current value of the rectangle-valued preference with the * given name in the given preference store. * Returns the default-default value (<code>RECTANGLE_DEFAULT_DEFAULT</code>) * if there is no preference with the given name, or if the current value * cannot be treated as a ...
Returns the current value of the rectangle-valued preference with the given name in the given preference store. Returns the default-default value (<code>RECTANGLE_DEFAULT_DEFAULT</code>) if there is no preference with the given name, or if the current value cannot be treated as a rectangle
getRectangle
{ "repo_name": "ControlSystemStudio/org.csstudio.iter", "path": "plugins/org.eclipse.jface/src/org/eclipse/jface/preference/PreferenceConverter.java", "license": "epl-1.0", "size": 21471 }
[ "org.eclipse.swt.graphics.Rectangle" ]
import org.eclipse.swt.graphics.Rectangle;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
1,512,620
public Date getUpdated();
Date function();
/** * Returns the updated of this criteria value. * * @return the updated of this criteria value */
Returns the updated of this criteria value
getUpdated
{ "repo_name": "falko0000/moduleEProc", "path": "Criterias/Criterias-api/src/main/java/tj/criterias/model/CriteriaValueModel.java", "license": "lgpl-2.1", "size": 6541 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,141,410
@Test public void testDoOnConnectionChangedAddedLower() throws Exception { createPowerSpy(); ConversionTable conversionTable = new ConversionTable(); conversionTable.addEntryConnectionType("UpperNetworkId", "upper"); conversionTable.addEntryConnectionType("LayerizedNetworkId", "layeri...
void function() throws Exception { createPowerSpy(); ConversionTable conversionTable = new ConversionTable(); conversionTable.addEntryConnectionType(STR, "upper"); conversionTable.addEntryConnectionType(STR, STR); PowerMockito.doReturn(conversionTable).when(target, STR); Map<String, NetworkInterface> netIfs = new HashM...
/** * Test method for {@link org.o3project.odenos.component.linklayerizer.LinkLayerizer#doOnConnectionChangedAddedLower(java.lang.String)}. * @throws Exception */
Test method for <code>org.o3project.odenos.component.linklayerizer.LinkLayerizer#doOnConnectionChangedAddedLower(java.lang.String)</code>
testDoOnConnectionChangedAddedLower
{ "repo_name": "y-higuchi/odenos", "path": "src/test/java/org/o3project/odenos/component/linklayerizer/LinkLayerizerTest.java", "license": "apache-2.0", "size": 128002 }
[ "java.util.ArrayList", "java.util.HashMap", "java.util.List", "java.util.Map", "java.util.concurrent.ConcurrentHashMap", "org.hamcrest.CoreMatchers", "org.junit.Assert", "org.mockito.Matchers", "org.mockito.Mockito", "org.o3project.odenos.core.component.ConversionTable", "org.o3project.odenos.co...
import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.concurrent.ConcurrentHashMap; import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.mockito.Matchers; import org.mockito.Mockito; import org.o3project.odenos.core.component.ConversionTable...
import java.util.*; import java.util.concurrent.*; import org.hamcrest.*; import org.junit.*; import org.mockito.*; import org.o3project.odenos.core.component.*; import org.o3project.odenos.core.component.network.flow.*; import org.o3project.odenos.core.component.network.flow.basic.*; import org.powermock.api.mockito.*...
[ "java.util", "org.hamcrest", "org.junit", "org.mockito", "org.o3project.odenos", "org.powermock.api", "org.powermock.reflect" ]
java.util; org.hamcrest; org.junit; org.mockito; org.o3project.odenos; org.powermock.api; org.powermock.reflect;
2,141,813
public void commit(Xid xid, boolean onePhase) throws XAException { StringBuilder commandBuf = new StringBuilder(MAX_COMMAND_LENGTH); commandBuf.append("XA COMMIT "); appendXid(commandBuf, xid); if (onePhase) { commandBuf.append(" ONE PHASE"); } try { ...
void function(Xid xid, boolean onePhase) throws XAException { StringBuilder commandBuf = new StringBuilder(MAX_COMMAND_LENGTH); commandBuf.append(STR); appendXid(commandBuf, xid); if (onePhase) { commandBuf.append(STR); } try { dispatchCommand(commandBuf.toString()); } finally { this.underlyingConnection.setInGlobalTx(...
/** * Commits the global transaction specified by xid. * * @parameter xid A global transaction identifier * @parameter onePhase - If true, the resource manager should use a * one-phase commit protocol to commit the work done on behalf of * xid. * * @throws...
Commits the global transaction specified by xid
commit
{ "repo_name": "martingh15/TPJava", "path": "TPJavaNotebook/mysql-connector-java-5.1.39/src/com/mysql/jdbc/jdbc2/optional/MysqlXAConnection.java", "license": "mpl-2.0", "size": 23696 }
[ "javax.transaction.xa.XAException", "javax.transaction.xa.Xid" ]
import javax.transaction.xa.XAException; import javax.transaction.xa.Xid;
import javax.transaction.xa.*;
[ "javax.transaction" ]
javax.transaction;
7,113
private void validateZoomLevels() { if (zoomLevels.isEmpty()) { throw new GeoPackageException( "At least one zoom level must be specified"); } }
void function() { if (zoomLevels.isEmpty()) { throw new GeoPackageException( STR); } }
/** * Validate that at least one zoom level was specified */
Validate that at least one zoom level was specified
validateZoomLevels
{ "repo_name": "ngageoint/geopackage-java", "path": "src/main/java/mil/nga/geopackage/tiles/TileGenerator.java", "license": "mit", "size": 32040 }
[ "mil.nga.geopackage.GeoPackageException" ]
import mil.nga.geopackage.GeoPackageException;
import mil.nga.geopackage.*;
[ "mil.nga.geopackage" ]
mil.nga.geopackage;
705,874