method
stringlengths
13
441k
clean_method
stringlengths
7
313k
doc
stringlengths
17
17.3k
comment
stringlengths
3
1.42k
method_name
stringlengths
1
273
extra
dict
imports
list
imports_info
stringlengths
19
34.8k
cluster_imports_info
stringlengths
15
3.66k
libraries
list
libraries_info
stringlengths
6
661
id
int64
0
2.92M
@Override protected AmazonApiGatewayAsync build(AwsAsyncClientParams params) { return new AmazonApiGatewayAsyncClient(params); }
AmazonApiGatewayAsync function(AwsAsyncClientParams params) { return new AmazonApiGatewayAsyncClient(params); }
/** * Construct an asynchronous implementation of AmazonApiGatewayAsync using the current builder configuration. * * @param params * Current builder configuration represented as a parameter object. * @return Fully configured implementation of AmazonApiGatewayAsync. */
Construct an asynchronous implementation of AmazonApiGatewayAsync using the current builder configuration
build
{ "repo_name": "dagnir/aws-sdk-java", "path": "aws-java-sdk-api-gateway/src/main/java/com/amazonaws/services/apigateway/AmazonApiGatewayAsyncClientBuilder.java", "license": "apache-2.0", "size": 2454 }
[ "com.amazonaws.client.AwsAsyncClientParams" ]
import com.amazonaws.client.AwsAsyncClientParams;
import com.amazonaws.client.*;
[ "com.amazonaws.client" ]
com.amazonaws.client;
2,435,218
private void handleReceiveCommand(final FrontierSiliconRadioBindingProvider provider, final String itemName, final Command command) { // find the matching device config for this item final String deviceId = provider.getDeviceID(itemName); if (deviceId == null) { logge...
void function(final FrontierSiliconRadioBindingProvider provider, final String itemName, final Command command) { final String deviceId = provider.getDeviceID(itemName); if (deviceId == null) { logger.error(STR + itemName); return; } final FrontierSiliconRadioBindingConfig deviceConf = deviceConfigCache.get(deviceId); ...
/** * Handle the command received for the given item provider and item. If the command switches the power state of the * radio, all other items are updated afterwards independent of the next refresh call. * * @param provider * @param itemName * @param command */
Handle the command received for the given item provider and item. If the command switches the power state of the radio, all other items are updated afterwards independent of the next refresh call
handleReceiveCommand
{ "repo_name": "watou/openhab", "path": "bundles/binding/org.openhab.binding.frontiersiliconradio/src/main/java/org/openhab/binding/frontiersiliconradio/internal/FrontierSiliconRadioBinding.java", "license": "epl-1.0", "size": 20116 }
[ "org.openhab.binding.frontiersiliconradio.FrontierSiliconRadioBindingProvider", "org.openhab.core.library.types.OnOffType", "org.openhab.core.library.types.OpenClosedType", "org.openhab.core.types.Command" ]
import org.openhab.binding.frontiersiliconradio.FrontierSiliconRadioBindingProvider; import org.openhab.core.library.types.OnOffType; import org.openhab.core.library.types.OpenClosedType; import org.openhab.core.types.Command;
import org.openhab.binding.frontiersiliconradio.*; import org.openhab.core.library.types.*; import org.openhab.core.types.*;
[ "org.openhab.binding", "org.openhab.core" ]
org.openhab.binding; org.openhab.core;
2,772,898
public void setOperationContext(OperationContext context) { this.operationContext = context; }
void function(OperationContext context) { this.operationContext = context; }
/** * Sets the operation context. * @param context the operation context */
Sets the operation context
setOperationContext
{ "repo_name": "Esri/geoportal-server", "path": "geoportal/src/com/esri/gpt/server/csw/provider/local/RequestHandler.java", "license": "apache-2.0", "size": 18930 }
[ "com.esri.gpt.server.csw.components.OperationContext" ]
import com.esri.gpt.server.csw.components.OperationContext;
import com.esri.gpt.server.csw.components.*;
[ "com.esri.gpt" ]
com.esri.gpt;
940,747
public CmsListItem createDeletedItem(final CmsClientSitemapEntry entry) { CmsListInfoBean infoBean = new CmsListInfoBean(); infoBean.setTitle(entry.getTitle()); infoBean.setSubTitle(entry.getSitePath()); infoBean.setResourceType(CmsStringUtil.isNotEmptyOrWhitespaceOnly(entry.getDefa...
CmsListItem function(final CmsClientSitemapEntry entry) { CmsListInfoBean infoBean = new CmsListInfoBean(); infoBean.setTitle(entry.getTitle()); infoBean.setSubTitle(entry.getSitePath()); infoBean.setResourceType(CmsStringUtil.isNotEmptyOrWhitespaceOnly(entry.getDefaultFileType()) ? entry.getDefaultFileType() : entry.g...
/** * Creates a new deleted list item.<p> * * @param entry the sitemap entry * * @return the new created (still orphan) list item */
Creates a new deleted list item
createDeletedItem
{ "repo_name": "it-tavis/opencms-core", "path": "src-gwt/org/opencms/ade/sitemap/client/toolbar/CmsToolbarClipboardView.java", "license": "lgpl-2.1", "size": 11484 }
[ "com.google.gwt.event.dom.client.ClickHandler", "org.opencms.ade.sitemap.client.Messages", "org.opencms.ade.sitemap.shared.CmsClientSitemapEntry", "org.opencms.gwt.client.ui.CmsListItem", "org.opencms.gwt.client.ui.CmsListItemWidget", "org.opencms.gwt.client.ui.CmsPushButton", "org.opencms.gwt.client.ui...
import com.google.gwt.event.dom.client.ClickHandler; import org.opencms.ade.sitemap.client.Messages; import org.opencms.ade.sitemap.shared.CmsClientSitemapEntry; import org.opencms.gwt.client.ui.CmsListItem; import org.opencms.gwt.client.ui.CmsListItemWidget; import org.opencms.gwt.client.ui.CmsPushButton; import org.o...
import com.google.gwt.event.dom.client.*; import org.opencms.ade.sitemap.client.*; import org.opencms.ade.sitemap.shared.*; import org.opencms.gwt.client.ui.*; import org.opencms.gwt.shared.*; import org.opencms.util.*;
[ "com.google.gwt", "org.opencms.ade", "org.opencms.gwt", "org.opencms.util" ]
com.google.gwt; org.opencms.ade; org.opencms.gwt; org.opencms.util;
1,742,821
public JField []getFields() { Field []fields = _class.getFields(); JField []jFields = new JField[fields.length]; for (int i = 0; i < fields.length; i++) { jFields[i] = new JFieldWrapper(fields[i], getClassLoader()); } return jFields; }
public JField []getFields() { Field []fields = _class.getFields(); JField []jFields = new JField[fields.length]; for (int i = 0; i < fields.length; i++) { jFields[i] = new JFieldWrapper(fields[i], getClassLoader()); } return jFields; }
/** * Returns the declared methods. */
Returns the declared methods
getFields
{ "repo_name": "christianchristensen/resin", "path": "modules/kernel/src/com/caucho/bytecode/JClassWrapper.java", "license": "gpl-2.0", "size": 7970 }
[ "java.lang.reflect.Field" ]
import java.lang.reflect.Field;
import java.lang.reflect.*;
[ "java.lang" ]
java.lang;
2,322,993
public ASTNode getTargetNode() throws JavaScriptModelException; } public final class MethodBodyRewriter extends ASTVisitor { protected int fAnonymousClass= 0; protected final FunctionDeclaration fDeclaration; protected final Set fMethodDeclarations= new HashSet(); protected final ASTRe...
ASTNode function() throws JavaScriptModelException; } public final class MethodBodyRewriter extends ASTVisitor { protected int fAnonymousClass= 0; protected final FunctionDeclaration fDeclaration; protected final Set fMethodDeclarations= new HashSet(); protected final ASTRewrite fRewrite; protected final Set fStaticImp...
/** * Returns a target node for the current target. * * @return the corresponding node * @throws JavaScriptModelException * if an error occurs */
Returns a target node for the current target
getTargetNode
{ "repo_name": "boniatillo-com/PhaserEditor", "path": "source/thirdparty/jsdt/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/corext/refactoring/structure/MoveInstanceMethodProcessor.java", "license": "epl-1.0", "size": 120602 }
[ "java.util.HashSet", "java.util.Set", "org.eclipse.core.runtime.Assert", "org.eclipse.ltk.core.refactoring.RefactoringStatus", "org.eclipse.wst.jsdt.core.JavaScriptModelException", "org.eclipse.wst.jsdt.core.dom.ASTNode", "org.eclipse.wst.jsdt.core.dom.ASTVisitor", "org.eclipse.wst.jsdt.core.dom.Funct...
import java.util.HashSet; import java.util.Set; import org.eclipse.core.runtime.Assert; import org.eclipse.ltk.core.refactoring.RefactoringStatus; import org.eclipse.wst.jsdt.core.JavaScriptModelException; import org.eclipse.wst.jsdt.core.dom.ASTNode; import org.eclipse.wst.jsdt.core.dom.ASTVisitor; import org.eclipse....
import java.util.*; import org.eclipse.core.runtime.*; import org.eclipse.ltk.core.refactoring.*; import org.eclipse.wst.jsdt.core.*; import org.eclipse.wst.jsdt.core.dom.*; import org.eclipse.wst.jsdt.core.dom.rewrite.*;
[ "java.util", "org.eclipse.core", "org.eclipse.ltk", "org.eclipse.wst" ]
java.util; org.eclipse.core; org.eclipse.ltk; org.eclipse.wst;
1,556,655
private int processRevSplit( String _name, String _svnPath, boolean _splitRev, int _revisionSplitStart ) throws cfmRunTimeException { SVNGetRevision svnGR = new SVNGetRevision(); if ( _splitRev && _revisionSplitStart == SVNRepo.HEAD ) { return ( (cfNumberData) svnGR.execute( session, _name, _svnPath, "head" )...
int function( String _name, String _svnPath, boolean _splitRev, int _revisionSplitStart ) throws cfmRunTimeException { SVNGetRevision svnGR = new SVNGetRevision(); if ( _splitRev && _revisionSplitStart == SVNRepo.HEAD ) { return ( (cfNumberData) svnGR.execute( session, _name, _svnPath, "head" ) ).getInt(); } return _re...
/** * get the revision to split until * * @param _name * @param _svnPath * @param _splitRev * @param _revisionSplitStart * @return if the -1 HEAD flag was passed in, get the head revisions for the path * @throws cfmRunTimeException */
get the revision to split until
processRevSplit
{ "repo_name": "OpenBD/openbd-svnplugin", "path": "src/net/aw20/openbd/plugins/svn/functions/SVNDiff.java", "license": "gpl-2.0", "size": 24586 }
[ "net.aw20.openbd.plugins.svn.SVNRepo" ]
import net.aw20.openbd.plugins.svn.SVNRepo;
import net.aw20.openbd.plugins.svn.*;
[ "net.aw20.openbd" ]
net.aw20.openbd;
665,877
public java.sql.Array getArray(String colName) throws SQLException { return getArray(findColumn(colName)); }
java.sql.Array function(String colName) throws SQLException { return getArray(findColumn(colName)); }
/** * JDBC 2.0 Get an array column. * * @param colName * the column name * * @return an object representing an SQL array * * @throws SQLException * if a database error occurs * @throws NotImplemented * DOCUMENT ME! */
JDBC 2.0 Get an array column
getArray
{ "repo_name": "shubhanshu-gupta/Apache-Solr", "path": "example/solr/collection1/lib/mysql-connector-java-5.1.32/src/com/mysql/jdbc/ResultSetImpl.java", "license": "apache-2.0", "size": 247329 }
[ "java.sql.Array", "java.sql.SQLException" ]
import java.sql.Array; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
545,678
@Test public void testConnectToOwnLocator() throws Exception { String locators = hostName + "[" + port1 + "]"; Properties props = getBasicProperties(locators); props.setProperty(ENABLE_CLUSTER_CONFIGURATION, "false"); Locator locator = Locator.startLocatorAndDS(port1, null, props); system = (I...
void function() throws Exception { String locators = hostName + "[" + port1 + "]"; Properties props = getBasicProperties(locators); props.setProperty(ENABLE_CLUSTER_CONFIGURATION, "false"); Locator locator = Locator.startLocatorAndDS(port1, null, props); system = (InternalDistributedSystem) locator.getDistributedSystem...
/** * Tests that a VM can connect to a locator that is hosted in its own VM. */
Tests that a VM can connect to a locator that is hosted in its own VM
testConnectToOwnLocator
{ "repo_name": "davinash/geode", "path": "geode-core/src/distributedTest/java/org/apache/geode/distributed/LocatorDUnitTest.java", "license": "apache-2.0", "size": 68068 }
[ "java.util.Properties", "org.apache.geode.distributed.internal.InternalDistributedSystem" ]
import java.util.Properties; import org.apache.geode.distributed.internal.InternalDistributedSystem;
import java.util.*; import org.apache.geode.distributed.internal.*;
[ "java.util", "org.apache.geode" ]
java.util; org.apache.geode;
1,297,818
@Override public RocksDBStateBackend configure(ReadableConfig config, ClassLoader classLoader) { return new RocksDBStateBackend(this, config, classLoader); } // ------------------------------------------------------------------------ // State backend methods // ------------------------...
RocksDBStateBackend function(ReadableConfig config, ClassLoader classLoader) { return new RocksDBStateBackend(this, config, classLoader); }
/** * Creates a copy of this state backend that uses the values defined in the configuration for * fields where that were not yet specified in this state backend. * * @param config The configuration. * @param classLoader The class loader. * @return The re-configured variant of the state ba...
Creates a copy of this state backend that uses the values defined in the configuration for fields where that were not yet specified in this state backend
configure
{ "repo_name": "kl0u/flink", "path": "flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBStateBackend.java", "license": "apache-2.0", "size": 45960 }
[ "org.apache.flink.configuration.ReadableConfig" ]
import org.apache.flink.configuration.ReadableConfig;
import org.apache.flink.configuration.*;
[ "org.apache.flink" ]
org.apache.flink;
1,160,960
public void changePassword(String login, String oldPassword, String newPassword, String domainId) throws AuthenticationException { // Test data coming from calling page if (login == null || oldPassword == null || domainId == null || newPassword == null) { throw new AuthenticationBadCredent...
void function(String login, String oldPassword, String newPassword, String domainId) throws AuthenticationException { if (login == null oldPassword == null domainId == null newPassword == null) { throw new AuthenticationBadCredentialException(STR, SilverpeasException.ERROR, STR); } Connection m_Connection = null; try {...
/** * Main method that change user password * @param login User login * @param oldPassword User old password * @param newPassword User new password * @param domainId User domain Id * @throws AuthenticationException */
Main method that change user password
changePassword
{ "repo_name": "stephaneperry/Silverpeas-Core", "path": "lib-core/src/main/java/com/stratelia/silverpeas/authentication/LoginPasswordAuthentication.java", "license": "agpl-3.0", "size": 17948 }
[ "com.stratelia.silverpeas.silvertrace.SilverTrace", "com.stratelia.webactiv.util.exception.SilverpeasException", "java.sql.Connection" ]
import com.stratelia.silverpeas.silvertrace.SilverTrace; import com.stratelia.webactiv.util.exception.SilverpeasException; import java.sql.Connection;
import com.stratelia.silverpeas.silvertrace.*; import com.stratelia.webactiv.util.exception.*; import java.sql.*;
[ "com.stratelia.silverpeas", "com.stratelia.webactiv", "java.sql" ]
com.stratelia.silverpeas; com.stratelia.webactiv; java.sql;
811,967
private void writeRow(Exchange exchange, Object row, W writer) throws NoTypeConversionAvailableException { Map<?, ?> map = convertToMandatoryType(exchange, Map.class, row); if (adaptHeaders) { for (Object key : map.keySet()) { headers.add(convertToMandatoryType(exchan...
void function(Exchange exchange, Object row, W writer) throws NoTypeConversionAvailableException { Map<?, ?> map = convertToMandatoryType(exchange, Map.class, row); if (adaptHeaders) { for (Object key : map.keySet()) { headers.add(convertToMandatoryType(exchange, String.class, key)); } } Object[] values = new Object[he...
/** * Writes the given row. * * @param exchange exchange to use (for type conversion) * @param row row to write * @param writer uniVocity writer to use * @throws NoTypeConversionAvailableException when it's not possible to convert the row as map. */
Writes the given row
writeRow
{ "repo_name": "coderczp/camel", "path": "components/camel-univocity-parsers/src/main/java/org/apache/camel/dataformat/univocity/Marshaller.java", "license": "apache-2.0", "size": 3781 }
[ "java.util.Map", "org.apache.camel.Exchange", "org.apache.camel.NoTypeConversionAvailableException", "org.apache.camel.util.ExchangeHelper" ]
import java.util.Map; import org.apache.camel.Exchange; import org.apache.camel.NoTypeConversionAvailableException; import org.apache.camel.util.ExchangeHelper;
import java.util.*; import org.apache.camel.*; import org.apache.camel.util.*;
[ "java.util", "org.apache.camel" ]
java.util; org.apache.camel;
229,682
public static final void show(Window owner) { // create the dialog AboutDialog dialog = new AboutDialog(owner); dialog.setLocationRelativeTo(owner); // show the dialog dialog.setVisible(true); }
static final void function(Window owner) { AboutDialog dialog = new AboutDialog(owner); dialog.setLocationRelativeTo(owner); dialog.setVisible(true); }
/** * Shows the about dialog. * @param owner the dialog owner */
Shows the about dialog
show
{ "repo_name": "dmitrykolesnikovich/dyn4j", "path": "sandbox/src/org/dyn4j/sandbox/dialogs/AboutDialog.java", "license": "bsd-3-clause", "size": 5180 }
[ "java.awt.Window" ]
import java.awt.Window;
import java.awt.*;
[ "java.awt" ]
java.awt;
519,245
public static Record getRecord(RecordId recordId, String vtag, List<QName> fields, LTable table, LRepository repository) throws RepositoryException, InterruptedException { QName vtagName = new QName(NAMESPACE, vtag); Record record = table.read(recordId); long version; i...
static Record function(RecordId recordId, String vtag, List<QName> fields, LTable table, LRepository repository) throws RepositoryException, InterruptedException { QName vtagName = new QName(NAMESPACE, vtag); Record record = table.read(recordId); long version; if (vtag.equals("last")) { if (fields != null) { filterFiel...
/** * Returns null if the vtag does not exist or is not defined for the record. */
Returns null if the vtag does not exist or is not defined for the record
getRecord
{ "repo_name": "NGDATA/lilyproject", "path": "cr/repo-util/src/main/java/org/lilyproject/util/repo/VersionTag.java", "license": "apache-2.0", "size": 6780 }
[ "java.util.HashSet", "java.util.List", "org.lilyproject.repository.api.LRepository", "org.lilyproject.repository.api.LTable", "org.lilyproject.repository.api.QName", "org.lilyproject.repository.api.Record", "org.lilyproject.repository.api.RecordId", "org.lilyproject.repository.api.RepositoryException"...
import java.util.HashSet; import java.util.List; import org.lilyproject.repository.api.LRepository; import org.lilyproject.repository.api.LTable; import org.lilyproject.repository.api.QName; import org.lilyproject.repository.api.Record; import org.lilyproject.repository.api.RecordId; import org.lilyproject.repository.a...
import java.util.*; import org.lilyproject.repository.api.*;
[ "java.util", "org.lilyproject.repository" ]
java.util; org.lilyproject.repository;
1,964,420
public static String toString(Object pArg) { if (pArg == null) { return "null"; } else if (pArg.getClass().isArray() || pArg instanceof Collection || pArg instanceof Map) { final StringBuilder sb = new StringBuilder(); ...
static String function(Object pArg) { if (pArg == null) { return "null"; } else if (pArg.getClass().isArray() pArg instanceof Collection pArg instanceof Map) { final StringBuilder sb = new StringBuilder(); append(sb, pArg); return sb.toString(); } else { return String.valueOf(pArg); } }
/** Converts the given object to a string, using the * {@link Object#toString()} method. * @param pArg The object to convert into a string. * @return The converted object. * @see #append(Appendable, Object) */
Converts the given object to a string, using the <code>Object#toString()</code> method
toString
{ "repo_name": "jochenw/afw", "path": "afw-core/src/main/java/com/github/jochenw/afw/core/util/Strings.java", "license": "apache-2.0", "size": 27279 }
[ "java.util.Collection", "java.util.Map" ]
import java.util.Collection; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,042,664
default void avoidCollisionWith(Rectangle2afp<?, ?, ?, ?, ?, ?> reference, Vector2D<?, ?> result) { assert reference != null : AssertMessages.notNullParameter(); assert result != null : AssertMessages.notNullParameter(); final double dx1 = reference.getMaxX() - getMinX(); final doubl...
default void avoidCollisionWith(Rectangle2afp<?, ?, ?, ?, ?, ?> reference, Vector2D<?, ?> result) { assert reference != null : AssertMessages.notNullParameter(); assert result != null : AssertMessages.notNullParameter(); final double dx1 = reference.getMaxX() - getMinX(); final double dx2 = getMaxX() - reference.getMin...
/** Move this rectangle to avoid collision * with the reference rectangle. * * @param reference is the rectangle to avoid collision with. * @param result the displacement vector. */
Move this rectangle to avoid collision with the reference rectangle
avoidCollisionWith
{ "repo_name": "tpiotrow/afc", "path": "core/math/src/main/java/org/arakhne/afc/math/geometry/d2/afp/Rectangle2afp.java", "license": "apache-2.0", "size": 71333 }
[ "org.arakhne.afc.math.geometry.d2.Vector2D", "org.arakhne.afc.vmutil.asserts.AssertMessages" ]
import org.arakhne.afc.math.geometry.d2.Vector2D; import org.arakhne.afc.vmutil.asserts.AssertMessages;
import org.arakhne.afc.math.geometry.d2.*; import org.arakhne.afc.vmutil.asserts.*;
[ "org.arakhne.afc" ]
org.arakhne.afc;
139,315
public void useList() { setCollectionType(ArrayList.class); }
void function() { setCollectionType(ArrayList.class); }
/** * Uses {@link java.util.ArrayList} when unmarshalling. */
Uses <code>java.util.ArrayList</code> when unmarshalling
useList
{ "repo_name": "punkhorn/camel-upstream", "path": "components/camel-jacksonxml/src/main/java/org/apache/camel/component/jacksonxml/JacksonXMLDataFormat.java", "license": "apache-2.0", "size": 19497 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,738,888
private OCFile fillOCFile(RemoteFile remote) { OCFile file = new OCFile(remote.getRemotePath()); file.setCreationTimestamp(remote.getCreationTimestamp()); file.setFileLength(remote.getLength()); file.setMimetype(remote.getMimeType()); file.setModificationTimestamp(remote.getM...
OCFile function(RemoteFile remote) { OCFile file = new OCFile(remote.getRemotePath()); file.setCreationTimestamp(remote.getCreationTimestamp()); file.setFileLength(remote.getLength()); file.setMimetype(remote.getMimeType()); file.setModificationTimestamp(remote.getModifiedTimestamp()); file.setEtag(remote.getEtag()); f...
/** * Creates and populates a new {@link OCFile} object with the data read from the server. * * @param remote remote file read from the server (remote file or folder). * @return New OCFile instance representing the remote resource described by we. */
Creates and populates a new <code>OCFile</code> object with the data read from the server
fillOCFile
{ "repo_name": "fluffy88/android", "path": "src/com/owncloud/android/operations/SynchronizeFolderOperation.java", "license": "gpl-2.0", "size": 25853 }
[ "com.owncloud.android.datamodel.OCFile", "com.owncloud.android.lib.resources.files.RemoteFile" ]
import com.owncloud.android.datamodel.OCFile; import com.owncloud.android.lib.resources.files.RemoteFile;
import com.owncloud.android.datamodel.*; import com.owncloud.android.lib.resources.files.*;
[ "com.owncloud.android" ]
com.owncloud.android;
2,157,589
public void setPerUserMinEvictableIdleTimeMillis(final String username, final Long value) { assertInitializationAllowed(); if (perUserMinEvictableIdleTimeMillis == null) { perUserMinEvictableIdleTimeMillis = new HashMap<>(); } perUserMinEvictableIdleTimeMillis...
void function(final String username, final Long value) { assertInitializationAllowed(); if (perUserMinEvictableIdleTimeMillis == null) { perUserMinEvictableIdleTimeMillis = new HashMap<>(); } perUserMinEvictableIdleTimeMillis.put(username, value); }
/** * Sets a user specific value for * {@link GenericObjectPool#getMinEvictableIdleTimeMillis()} for the * specified user's pool. * @param username The user * @param value The value */
Sets a user specific value for <code>GenericObjectPool#getMinEvictableIdleTimeMillis()</code> for the specified user's pool
setPerUserMinEvictableIdleTimeMillis
{ "repo_name": "Nickname0806/Test_Q4", "path": "java/org/apache/tomcat/dbcp/dbcp2/datasources/PerUserPoolDataSource.java", "license": "apache-2.0", "size": 40987 }
[ "java.util.HashMap" ]
import java.util.HashMap;
import java.util.*;
[ "java.util" ]
java.util;
2,808,265
public boolean computeZoom() { if (mFinished) { return false; } long tRTC = SystemClock.elapsedRealtime() - mStartRTC; if (tRTC >= mAnimationDurationMillis) { mFinished = true; mCurrentZoom = mEndZoom; return false; } ...
boolean function() { if (mFinished) { return false; } long tRTC = SystemClock.elapsedRealtime() - mStartRTC; if (tRTC >= mAnimationDurationMillis) { mFinished = true; mCurrentZoom = mEndZoom; return false; } float t = tRTC * 1f / mAnimationDurationMillis; mCurrentZoom = mEndZoom * mInterpolator.getInterpolation(t); ret...
/** * Computes the current zoom level, returning true if the zoom is still active and false if the * zoom has finished. * * @see android.widget.Scroller#computeScrollOffset() */
Computes the current zoom level, returning true if the zoom is still active and false if the zoom has finished
computeZoom
{ "repo_name": "Bornageek/SeeKampf", "path": "app/src/main/java/net/avedo/seekampf/core/Zoomer.java", "license": "gpl-3.0", "size": 3693 }
[ "android.os.SystemClock" ]
import android.os.SystemClock;
import android.os.*;
[ "android.os" ]
android.os;
2,486,129
public Parameters getParameters() { return this.params; }
Parameters function() { return this.params; }
/** * Returns the {@link Parameters} used to configure this layer. * @return */
Returns the <code>Parameters</code> used to configure this layer
getParameters
{ "repo_name": "user405/test", "path": "src/main/java/org/numenta/nupic/network/Layer.java", "license": "agpl-3.0", "size": 72476 }
[ "org.numenta.nupic.Parameters" ]
import org.numenta.nupic.Parameters;
import org.numenta.nupic.*;
[ "org.numenta.nupic" ]
org.numenta.nupic;
2,132,067
@Override protected void collectNewChildDescriptors(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
void function(Collection<Object> newChildDescriptors, Object object) { super.collectNewChildDescriptors(newChildDescriptors, object); }
/** * This adds {@link org.eclipse.emf.edit.command.CommandParameter}s describing the children * that can be created under this object. * <!-- begin-user-doc --> * <!-- end-user-doc --> * * @generated */
This adds <code>org.eclipse.emf.edit.command.CommandParameter</code>s describing the children that can be created under this object.
collectNewChildDescriptors
{ "repo_name": "ldelaigue/M2Doc", "path": "plugins/org.obeonetwork.m2doc.tplconf.edit/src-gen/org/obeonetwork/m2doc/tplconf/provider/StructuredTypeItemProvider.java", "license": "epl-1.0", "size": 6018 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
1,620,123
public ColumnModel createColumnModel(UserInfo user, ColumnModel columnModel) throws UnauthorizedException, DatastoreException, NotFoundException;
ColumnModel function(UserInfo user, ColumnModel columnModel) throws UnauthorizedException, DatastoreException, NotFoundException;
/** * Create a new immutable ColumnModel object. * * @param user * @param columnModel * @return * @throws NotFoundException * @throws DatastoreException * @throws UnauthorizedException */
Create a new immutable ColumnModel object
createColumnModel
{ "repo_name": "Sage-Bionetworks/Synapse-Repository-Services", "path": "services/repository-managers/src/main/java/org/sagebionetworks/repo/manager/table/ColumnModelManager.java", "license": "apache-2.0", "size": 5718 }
[ "org.sagebionetworks.repo.model.DatastoreException", "org.sagebionetworks.repo.model.UnauthorizedException", "org.sagebionetworks.repo.model.UserInfo", "org.sagebionetworks.repo.model.table.ColumnModel", "org.sagebionetworks.repo.web.NotFoundException" ]
import org.sagebionetworks.repo.model.DatastoreException; import org.sagebionetworks.repo.model.UnauthorizedException; import org.sagebionetworks.repo.model.UserInfo; import org.sagebionetworks.repo.model.table.ColumnModel; import org.sagebionetworks.repo.web.NotFoundException;
import org.sagebionetworks.repo.model.*; import org.sagebionetworks.repo.model.table.*; import org.sagebionetworks.repo.web.*;
[ "org.sagebionetworks.repo" ]
org.sagebionetworks.repo;
1,014,350
private static int decodeDigit(int[] counters) throws NotFoundException { int bestVariance = MAX_AVG_VARIANCE; // worst variance we'll accept int bestMatch = -1; int max = PATTERNS.length; for (int i = 0; i < max; i++) { int[] pattern = PATTERNS[i]; int variance = patternMatchVaria...
static int function(int[] counters) throws NotFoundException { int bestVariance = MAX_AVG_VARIANCE; int bestMatch = -1; int max = PATTERNS.length; for (int i = 0; i < max; i++) { int[] pattern = PATTERNS[i]; int variance = patternMatchVariance(counters, pattern, MAX_INDIVIDUAL_VARIANCE); if (variance < bestVariance) { ...
/** * Attempts to decode a sequence of ITF black/white lines into single * digit. * * @param counters the counts of runs of observed black/white/black/... values * @return The decoded digit * @throws NotFoundException if digit cannot be decoded */
Attempts to decode a sequence of ITF black/white lines into single digit
decodeDigit
{ "repo_name": "Git-tl/appcan-plugin-scanner-android", "path": "uexScanner/src/org/zywx/wbpalmstar/plugin/uexzxing/oned/ITFReader.java", "license": "lgpl-3.0", "size": 12398 }
[ "org.zywx.wbpalmstar.plugin.uexzxing.NotFoundException" ]
import org.zywx.wbpalmstar.plugin.uexzxing.NotFoundException;
import org.zywx.wbpalmstar.plugin.uexzxing.*;
[ "org.zywx.wbpalmstar" ]
org.zywx.wbpalmstar;
1,738,797
public static boolean hasAnyNullObject(List o, StructObjectInspector loi, boolean[] nullSafes) { List<? extends StructField> fields = loi.getAllStructFieldRefs(); for (int i = 0; i < o.size();i++) { if ((nullSafes == null || !nullSafes[i]) && hasAnyNullObject(o.get(i), fields.get(i).getF...
static boolean function(List o, StructObjectInspector loi, boolean[] nullSafes) { List<? extends StructField> fields = loi.getAllStructFieldRefs(); for (int i = 0; i < o.size();i++) { if ((nullSafes == null !nullSafes[i]) && hasAnyNullObject(o.get(i), fields.get(i).getFieldObjectInspector())) { return true; } } return ...
/** * return false though element is null if nullsafe flag is true for that */
return false though element is null if nullsafe flag is true for that
hasAnyNullObject
{ "repo_name": "wangbin83-gmail-com/hive-1.1.0-cdh5.4.8", "path": "serde/src/java/org/apache/hadoop/hive/serde2/SerDeUtils.java", "license": "apache-2.0", "size": 18589 }
[ "java.util.List", "org.apache.hadoop.hive.serde2.objectinspector.StructField", "org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector" ]
import java.util.List; import org.apache.hadoop.hive.serde2.objectinspector.StructField; import org.apache.hadoop.hive.serde2.objectinspector.StructObjectInspector;
import java.util.*; import org.apache.hadoop.hive.serde2.objectinspector.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
2,586,720
protected ColorRGB takeImageSampleBlock(float x2, float y2, float f, float g) { // point sampling ColorRGB value = new ColorRGB(0, 0, 0); int sum = 0; for (float y = y2; y < g; ++y) { for (float x = x2; x < f; ++x) { if(isInsidePaperMargins(x, y) && imgChanged.canSampleAt(x, y)) { value.add(new ...
ColorRGB function(float x2, float y2, float f, float g) { ColorRGB value = new ColorRGB(0, 0, 0); int sum = 0; for (float y = y2; y < g; ++y) { for (float x = x2; x < f; ++x) { if(isInsidePaperMargins(x, y) && imgChanged.canSampleAt(x, y)) { value.add(new ColorRGB(imgChanged.sample1x1(x, y))); ++sum; } } } if (sum == 0...
/** * sample the pixels from x0,y0 (top left) to x1,y1 (bottom right) and average the color. * * @param x2 * @param y2 * @param f * @param g * @return the average color in the region. if nothing is sampled, return white. */
sample the pixels from x0,y0 (top left) to x1,y1 (bottom right) and average the color
takeImageSampleBlock
{ "repo_name": "MakeHartford/Makelangelo", "path": "java/src/main/java/com/marginallyclever/makelangeloRobot/converters/Converter_ColorFloodFill.java", "license": "gpl-2.0", "size": 8562 }
[ "com.marginallyclever.makelangelo.ColorRGB" ]
import com.marginallyclever.makelangelo.ColorRGB;
import com.marginallyclever.makelangelo.*;
[ "com.marginallyclever.makelangelo" ]
com.marginallyclever.makelangelo;
1,315,468
private float getScale() { mMatrix.getValues(mValues); return mValues[Matrix.MSCALE_X]; }
float function() { mMatrix.getValues(mValues); return mValues[Matrix.MSCALE_X]; }
/** * Returns the currently applied scale factor for the image. * <p> * NOTE: This method overwrites any values stored in {@link #mValues}. */
Returns the currently applied scale factor for the image.
getScale
{ "repo_name": "indashnet/InDashNet.Open.UN2000", "path": "android/frameworks/opt/photoviewer/src/com/android/ex/photo/views/PhotoView.java", "license": "apache-2.0", "size": 46142 }
[ "android.graphics.Matrix" ]
import android.graphics.Matrix;
import android.graphics.*;
[ "android.graphics" ]
android.graphics;
1,783,740
private static SessionFactory createSessionFactory(String dbName, Configuration config) { return createSessionFactory(PersistenceMode.ON_DISK, dbName, config); }
static SessionFactory function(String dbName, Configuration config) { return createSessionFactory(PersistenceMode.ON_DISK, dbName, config); }
/** * Create a persistent H2 configuration for a Hibernate session factory. * * @param dbName * file path for the database storage * * @param config * Hibernate configuration to use as the base * * @return * Hibernate session factory */
Create a persistent H2 configuration for a Hibernate session factory
createSessionFactory
{ "repo_name": "openremote/Object-Model", "path": "src/test/java/org/openremote/model/persistence/jpa/H2.java", "license": "agpl-3.0", "size": 13074 }
[ "org.hibernate.SessionFactory", "org.hibernate.cfg.Configuration" ]
import org.hibernate.SessionFactory; import org.hibernate.cfg.Configuration;
import org.hibernate.*; import org.hibernate.cfg.*;
[ "org.hibernate", "org.hibernate.cfg" ]
org.hibernate; org.hibernate.cfg;
1,812,348
java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); panInfo = new de.cismet.tools.gui.RoundedPanel(); panHeadInfo = new de.cismet.tools.gui.SemiRoundedPanel(); lblHeading = new javax.swing.JLabel(); panInfoContent = new ja...
java.awt.GridBagConstraints gridBagConstraints; bindingGroup = new org.jdesktop.beansbinding.BindingGroup(); panInfo = new de.cismet.tools.gui.RoundedPanel(); panHeadInfo = new de.cismet.tools.gui.SemiRoundedPanel(); lblHeading = new javax.swing.JLabel(); panInfoContent = new javax.swing.JPanel(); jPanel1 = new javax.s...
/** * This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The * content of this method is always regenerated by the Form Editor. */
content of this method is always regenerated by the Form Editor
initComponents
{ "repo_name": "cismet/cids-custom-wrrl-db-mv", "path": "src/main/java/de/cismet/cids/custom/objecteditors/wrrl_db_mv/WkGwPanOne.java", "license": "lgpl-3.0", "size": 13093 }
[ "de.cismet.cismap.cids.geometryeditor.DefaultCismapGeometryComboBoxEditor" ]
import de.cismet.cismap.cids.geometryeditor.DefaultCismapGeometryComboBoxEditor;
import de.cismet.cismap.cids.geometryeditor.*;
[ "de.cismet.cismap" ]
de.cismet.cismap;
225,595
private Map<String, Scope> fromDTOListToScopeListMapping(ScopeDTO[] scopeDTOS) { Map<String, Scope> scopeListMapping = new HashMap<>(); for (ScopeDTO scopeDTO : scopeDTOS) { scopeListMapping.put(scopeDTO.getName(), fromDTOToScope(scopeDTO)); } return scopeListMapping; ...
Map<String, Scope> function(ScopeDTO[] scopeDTOS) { Map<String, Scope> scopeListMapping = new HashMap<>(); for (ScopeDTO scopeDTO : scopeDTOS) { scopeListMapping.put(scopeDTO.getName(), fromDTOToScope(scopeDTO)); } return scopeListMapping; }
/** * Get Scope object list from ScopeDTO List response received from authorization server. * * @param scopeDTOS Scope DTO Array * @return Scope Object to Scope Name Mappings */
Get Scope object list from ScopeDTO List response received from authorization server
fromDTOListToScopeListMapping
{ "repo_name": "isharac/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/AMDefaultKeyManagerImpl.java", "license": "apache-2.0", "size": 56424 }
[ "java.util.HashMap", "java.util.Map", "org.wso2.carbon.apimgt.api.model.Scope", "org.wso2.carbon.apimgt.impl.dto.ScopeDTO" ]
import java.util.HashMap; import java.util.Map; import org.wso2.carbon.apimgt.api.model.Scope; import org.wso2.carbon.apimgt.impl.dto.ScopeDTO;
import java.util.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.dto.*;
[ "java.util", "org.wso2.carbon" ]
java.util; org.wso2.carbon;
1,521,067
public void removeCollapseListener(CollapseListener listener) { removeListener(CollapseEvent.class, listener, CollapseListener.COLLAPSE_METHOD); } /** * @deprecated As of 7.0, replaced by {@link #removeCollapseListener(CollapseListener)}
void function(CollapseListener listener) { removeListener(CollapseEvent.class, listener, CollapseListener.COLLAPSE_METHOD); } /** * @deprecated As of 7.0, replaced by {@link #removeCollapseListener(CollapseListener)}
/** * Removes a collapse listener. * * @param listener * the Listener to be removed. */
Removes a collapse listener
removeCollapseListener
{ "repo_name": "qwasli/PMTable", "path": "PMTable/src/main/java/ch/meemin/pmtable/PMTreeTable.java", "license": "apache-2.0", "size": 18682 }
[ "com.vaadin.ui.Tree" ]
import com.vaadin.ui.Tree;
import com.vaadin.ui.*;
[ "com.vaadin.ui" ]
com.vaadin.ui;
2,648,320
protected void assertPartialDerivativesPerPriceAreEqual(final FunctionImpl<GoodType> function, final Map<GoodType, Double> bundleOfInputs, final Map<GoodType, PriceFunction> priceFunctions) { final Map<GoodType, Double> partialDerivatives = function.partialDerivatives(bundleOfInputs); for (final Entry<GoodTyp...
void function(final FunctionImpl<GoodType> function, final Map<GoodType, Double> bundleOfInputs, final Map<GoodType, PriceFunction> priceFunctions) { final Map<GoodType, Double> partialDerivatives = function.partialDerivatives(bundleOfInputs); for (final Entry<GoodType, Double> outerPartialDerivativeEntry : partialDeri...
/** * check that partial derivatives per price are identical. Criterion for an * optimum. */
check that partial derivatives per price are identical. Criterion for an optimum
assertPartialDerivativesPerPriceAreEqual
{ "repo_name": "uwol/ComputationalEconomy", "path": "src/test/java/io/github/uwol/compecon/CompEconTestSupport.java", "license": "gpl-3.0", "size": 6267 }
[ "io.github.uwol.compecon.economy.materia.GoodType", "io.github.uwol.compecon.math.impl.FunctionImpl", "io.github.uwol.compecon.math.price.PriceFunction", "java.util.Map", "org.junit.Assert" ]
import io.github.uwol.compecon.economy.materia.GoodType; import io.github.uwol.compecon.math.impl.FunctionImpl; import io.github.uwol.compecon.math.price.PriceFunction; import java.util.Map; import org.junit.Assert;
import io.github.uwol.compecon.economy.materia.*; import io.github.uwol.compecon.math.impl.*; import io.github.uwol.compecon.math.price.*; import java.util.*; import org.junit.*;
[ "io.github.uwol", "java.util", "org.junit" ]
io.github.uwol; java.util; org.junit;
895,494
public boolean containsGrammar(XMLGrammarDescription desc) { return super.containsGrammar(desc); } // containsGrammar(XMLGrammarDescription):boolean } // class ShadowedGrammarPool
boolean function(XMLGrammarDescription desc) { return super.containsGrammar(desc); } }
/** * Returns true if the grammar pool contains a grammar associated * to the specified description. * * @param desc The description of the grammar. */
Returns true if the grammar pool contains a grammar associated to the specified description
containsGrammar
{ "repo_name": "rokn/Count_Words_2015", "path": "testing/openjdk2/jaxp/src/com/sun/org/apache/xerces/internal/parsers/CachingParserPool.java", "license": "mit", "size": 15517 }
[ "com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription" ]
import com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarDescription;
import com.sun.org.apache.xerces.internal.xni.grammars.*;
[ "com.sun.org" ]
com.sun.org;
303,488
public Serializable getValue(String name) { Serializable value = null; if (this.preferencesRef != null) { value = this.cache.get(name); if (value == null) { QName qname = QName.createQName(NamespaceService.APP_MODEL_1_0_URI, name)...
Serializable function(String name) { Serializable value = null; if (this.preferencesRef != null) { value = this.cache.get(name); if (value == null) { QName qname = QName.createQName(NamespaceService.APP_MODEL_1_0_URI, name); value = getNodeService().getProperty(this.preferencesRef, qname); this.cache.put(name, value); ...
/** * Get a serialized preferences value. * * @param name Name of the value to retrieve. * * @return The value or null if not found/set. */
Get a serialized preferences value
getValue
{ "repo_name": "Alfresco/community-edition", "path": "projects/web-client/source/java/org/alfresco/web/bean/repository/Preferences.java", "license": "lgpl-3.0", "size": 4165 }
[ "java.io.Serializable", "org.alfresco.service.namespace.NamespaceService", "org.alfresco.service.namespace.QName" ]
import java.io.Serializable; import org.alfresco.service.namespace.NamespaceService; import org.alfresco.service.namespace.QName;
import java.io.*; import org.alfresco.service.namespace.*;
[ "java.io", "org.alfresco.service" ]
java.io; org.alfresco.service;
1,786,780
public String getRevision() { return RevisionUtils.extract("$Revision: 8034 $"); } } private class RandomCode extends Code { static final long serialVersionUID = 4413410540703926563L; Random r = null; public RandomCode(int numClasses, int numCodes, Instanc...
String function() { return RevisionUtils.extract(STR); } } private class RandomCode extends Code { static final long serialVersionUID = 4413410540703926563L; Random r = null; public RandomCode(int numClasses, int numCodes, Instances data) { r = data.getRandomNumberGenerator(m_Seed); numCodes = Math.max(2, numCodes); m_...
/** * Returns the revision string. * * @return the revision */
Returns the revision string
getRevision
{ "repo_name": "dsibournemouth/autoweka", "path": "weka-3.7.7/src/main/java/weka/classifiers/meta/MultiClassClassifier.java", "license": "gpl-3.0", "size": 29151 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
391,566
TableRowChange getLastTableRowChange(String tableId, TableChangeType changeType);
TableRowChange getLastTableRowChange(String tableId, TableChangeType changeType);
/** * Get the latest TableRowChange of a given type. * * @param tableId * @param changeType * @return */
Get the latest TableRowChange of a given type
getLastTableRowChange
{ "repo_name": "zimingd/Synapse-Repository-Services", "path": "lib/models/src/main/java/org/sagebionetworks/repo/model/dao/table/TableRowTruthDAO.java", "license": "apache-2.0", "size": 5506 }
[ "org.sagebionetworks.repo.model.table.TableChangeType", "org.sagebionetworks.repo.model.table.TableRowChange" ]
import org.sagebionetworks.repo.model.table.TableChangeType; import org.sagebionetworks.repo.model.table.TableRowChange;
import org.sagebionetworks.repo.model.table.*;
[ "org.sagebionetworks.repo" ]
org.sagebionetworks.repo;
1,194,121
private List<Role> getAllRoles() { versionLock_.readLock().lock(); try { return ImmutableList.copyOf(authPolicy_.getAllRoles()); } finally { versionLock_.readLock().unlock(); } }
List<Role> function() { versionLock_.readLock().lock(); try { return ImmutableList.copyOf(authPolicy_.getAllRoles()); } finally { versionLock_.readLock().unlock(); } }
/** * Get a snapshot view of all the roles in the catalog. */
Get a snapshot view of all the roles in the catalog
getAllRoles
{ "repo_name": "cloudera/Impala", "path": "fe/src/main/java/org/apache/impala/catalog/CatalogServiceCatalog.java", "license": "apache-2.0", "size": 115678 }
[ "com.google.common.collect.ImmutableList", "java.util.List" ]
import com.google.common.collect.ImmutableList; import java.util.List;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
1,844,922
public void testParseDiscontinuous() throws Exception { BufferedReader srcReader = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream("test-locs.gff"))); converter.parse(srcReader); converter.storeAll(); Set<org.intermine.xml.full.Item> expected...
void function() throws Exception { BufferedReader srcReader = new BufferedReader(new InputStreamReader(getClass().getClassLoader().getResourceAsStream(STR))); converter.parse(srcReader); converter.storeAll(); Set<org.intermine.xml.full.Item> expected = new HashSet<org.intermine.xml.full.Item>(readItemSet(STR)); assertE...
/** * Test creating items with dontCreateLocations flag true. */
Test creating items with dontCreateLocations flag true
testParseDiscontinuous
{ "repo_name": "tomck/intermine", "path": "bio/core/test/src/org/intermine/bio/dataconversion/GFF3ConverterTest.java", "license": "lgpl-2.1", "size": 6874 }
[ "java.io.BufferedReader", "java.io.InputStreamReader", "java.util.HashSet", "java.util.Set", "org.intermine.model.fulldata.Item" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.HashSet; import java.util.Set; import org.intermine.model.fulldata.Item;
import java.io.*; import java.util.*; import org.intermine.model.fulldata.*;
[ "java.io", "java.util", "org.intermine.model" ]
java.io; java.util; org.intermine.model;
1,171,483
public int regenerateNeededCache(User loggedInUser, String channelLabel) { channelAdminPermCheck(loggedInUser); Channel chan = lookupChannelByLabel(loggedInUser, channelLabel); List<Long> chanList = new ArrayList<Long>(); chanList.add(chan.getId()); ErrataCacheManager.updateC...
int function(User loggedInUser, String channelLabel) { channelAdminPermCheck(loggedInUser); Channel chan = lookupChannelByLabel(loggedInUser, channelLabel); List<Long> chanList = new ArrayList<Long>(); chanList.add(chan.getId()); ErrataCacheManager.updateCacheForChannelsAsync(chanList); return 1; }
/** * Regenerate the errata cache for all the systems subscribed to a particular channel * @param loggedInUser The current user * @param channelLabel the channel label * @return int - 1 on success! * * @xmlrpc.doc Completely clear and regenerate the needed Errata and Package * ca...
Regenerate the errata cache for all the systems subscribed to a particular channel
regenerateNeededCache
{ "repo_name": "PaulWay/spacewalk", "path": "java/code/src/com/redhat/rhn/frontend/xmlrpc/channel/software/ChannelSoftwareHandler.java", "license": "gpl-2.0", "size": 127025 }
[ "com.redhat.rhn.domain.channel.Channel", "com.redhat.rhn.domain.user.User", "com.redhat.rhn.manager.errata.cache.ErrataCacheManager", "java.util.ArrayList", "java.util.List" ]
import com.redhat.rhn.domain.channel.Channel; import com.redhat.rhn.domain.user.User; import com.redhat.rhn.manager.errata.cache.ErrataCacheManager; import java.util.ArrayList; import java.util.List;
import com.redhat.rhn.domain.channel.*; import com.redhat.rhn.domain.user.*; import com.redhat.rhn.manager.errata.cache.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
2,650,372
public ServiceFuture<HubIpConfigurationInner> beginCreateOrUpdateAsync(String resourceGroupName, String virtualHubName, String ipConfigName, HubIpConfigurationInner parameters, final ServiceCallback<HubIpConfigurationInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceR...
ServiceFuture<HubIpConfigurationInner> function(String resourceGroupName, String virtualHubName, String ipConfigName, HubIpConfigurationInner parameters, final ServiceCallback<HubIpConfigurationInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateOrUpdateWithServiceResponseAsync(resourceGroupName, vir...
/** * Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing VirtualHubIpConfiguration. * * @param resourceGroupName The resource group name of the VirtualHub. * @param virtualHubName The name of the VirtualHub. * @param ipConfigName The name of the ipconfig....
Creates a VirtualHubIpConfiguration resource if it doesn't exist else updates the existing VirtualHubIpConfiguration
beginCreateOrUpdateAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/network/mgmt-v2020_05_01/src/main/java/com/microsoft/azure/management/network/v2020_05_01/implementation/VirtualHubIpConfigurationsInner.java", "license": "mit", "size": 45941 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
2,709,981
@GET @Path("{identifier}") public final Response doGetWithIdentifier() { AbstractRestWebService.LOGGER.entering("doGetWithIdentifier"); Response response; try { response = this.doGet(new RestWebServiceRequest(this.securityContext, this.httpHeaders, this.uriInfo)); } catch (final Throwable thro...
@Path(STR) final Response function() { AbstractRestWebService.LOGGER.entering(STR); Response response; try { response = this.doGet(new RestWebServiceRequest(this.securityContext, this.httpHeaders, this.uriInfo)); } catch (final Throwable throwable) { response = AbstractRestWebService.processThrowable(throwable); } Abst...
/** * Method is called to invoke a GET request with an identifier. * * @return The Response result */
Method is called to invoke a GET request with an identifier
doGetWithIdentifier
{ "repo_name": "saroehr/Bazaar", "path": "BazaarWeb/src/org/apache/bazaar/web/AbstractRestWebService.java", "license": "apache-2.0", "size": 12314 }
[ "javax.ws.rs.Path", "javax.ws.rs.core.Response" ]
import javax.ws.rs.Path; import javax.ws.rs.core.Response;
import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "javax.ws" ]
javax.ws;
1,167,872
public synchronized RuntimeStatus request(ServiceDescriptor requestResponseService, ServiceDescriptor solicitResponseService, String msg, String encoding, String correlId) { RuntimeStatus status = null; SystemDescriptor systemDescriptor = solicitResponseService.toSystemDescriptor(); ...
synchronized RuntimeStatus function(ServiceDescriptor requestResponseService, ServiceDescriptor solicitResponseService, String msg, String encoding, String correlId) { RuntimeStatus status = null; SystemDescriptor systemDescriptor = solicitResponseService.toSystemDescriptor(); SystemRuntime systemRuntime = activeSystem...
/** * Sends a request to a request-response service. * * @param requestResponseService * the target for the request. * * @param solicitResponseService * to reply-to service. * * @param msg * the message payload. * * @param enco...
Sends a request to a request-response service
request
{ "repo_name": "edgware/edgware", "path": "fabric.services.interfaces.json/src/fabric/services/systems/RuntimeManager.java", "license": "epl-1.0", "size": 58874 }
[ "java.util.logging.Level" ]
import java.util.logging.Level;
import java.util.logging.*;
[ "java.util" ]
java.util;
254,644
public Face newFace(String file, int faceIndex) { try { return newFace(Utils.loadFileToByteArray(file), faceIndex); } catch (IOException e) {} return null; }
Face function(String file, int faceIndex) { try { return newFace(Utils.loadFileToByteArray(file), faceIndex); } catch (IOException e) {} return null; }
/** * Create a new Face object from file<br> * It will return null in case of error. */
Create a new Face object from file It will return null in case of error
newFace
{ "repo_name": "Dementor100/freetype-jni", "path": "freetype-jni/Library.java", "license": "mit", "size": 1858 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,505,807
@WebMethod(operationName = "GetGeoIPContext") @WebResult(name = "GeoIP", targetNamespace = "http://www.webservicex.net/", partName = "Body") public GeoIP getGeoIPContext();
@WebMethod(operationName = STR) @WebResult(name = "GeoIP", targetNamespace = "http: GeoIP function();
/** * GeoIPService - GetGeoIPContext enables you to easily look up countries by Context */
GeoIPService - GetGeoIPContext enables you to easily look up countries by Context
getGeoIPContext
{ "repo_name": "okoyro/java_pft", "path": "soap-sample/src/main/java/net/webservicex/GeoIPServiceHttpPost.java", "license": "apache-2.0", "size": 1271 }
[ "javax.jws.WebMethod", "javax.jws.WebResult" ]
import javax.jws.WebMethod; import javax.jws.WebResult;
import javax.jws.*;
[ "javax.jws" ]
javax.jws;
1,468,639
public void setESDriver(ESDriver es) { this.es = es; }
void function(ESDriver es) { this.es = es; }
/** * Set the Elasticsearch driver for MUDROD * * @param es * an ES driver instance */
Set the Elasticsearch driver for MUDROD
setESDriver
{ "repo_name": "fgreg/mudrod", "path": "core/src/main/java/gov/nasa/jpl/mudrod/main/MudrodEngine.java", "license": "apache-2.0", "size": 16416 }
[ "gov.nasa.jpl.mudrod.driver.ESDriver" ]
import gov.nasa.jpl.mudrod.driver.ESDriver;
import gov.nasa.jpl.mudrod.driver.*;
[ "gov.nasa.jpl" ]
gov.nasa.jpl;
1,111,132
public static FileInfo fromXContent(XContentParser parser) throws IOException { XContentParser.Token token = parser.currentToken(); String name = null; String physicalName = null; long length = -1; String checksum = null; ByteSizeValue part...
static FileInfo function(XContentParser parser) throws IOException { XContentParser.Token token = parser.currentToken(); String name = null; String physicalName = null; long length = -1; String checksum = null; ByteSizeValue partSize = null; Version writtenBy = null; String writtenByStr = null; BytesRef metaHash = new ...
/** * Parses JSON that represents file info * * @param parser parser * @return file info */
Parses JSON that represents file info
fromXContent
{ "repo_name": "jprante/elasticsearch-server", "path": "server/src/main/java/org/elasticsearch/index/snapshots/blobstore/BlobStoreIndexShardSnapshot.java", "license": "apache-2.0", "size": 20645 }
[ "java.io.IOException", "org.apache.lucene.util.BytesRef", "org.apache.lucene.util.Version", "org.elasticsearch.ElasticsearchParseException", "org.elasticsearch.common.Strings", "org.elasticsearch.common.lucene.Lucene", "org.elasticsearch.common.unit.ByteSizeValue", "org.elasticsearch.common.xcontent.X...
import java.io.IOException; import org.apache.lucene.util.BytesRef; import org.apache.lucene.util.Version; import org.elasticsearch.ElasticsearchParseException; import org.elasticsearch.common.Strings; import org.elasticsearch.common.lucene.Lucene; import org.elasticsearch.common.unit.ByteSizeValue; import org.elastics...
import java.io.*; import org.apache.lucene.util.*; import org.elasticsearch.*; import org.elasticsearch.common.*; import org.elasticsearch.common.lucene.*; import org.elasticsearch.common.unit.*; import org.elasticsearch.common.xcontent.*; import org.elasticsearch.index.store.*;
[ "java.io", "org.apache.lucene", "org.elasticsearch", "org.elasticsearch.common", "org.elasticsearch.index" ]
java.io; org.apache.lucene; org.elasticsearch; org.elasticsearch.common; org.elasticsearch.index;
119,187
static <T extends ParseObject> T fromJSON(JSONObject json, String defaultClassName, boolean isComplete, ParseDecoder decoder) { String className = json.optString(KEY_CLASS_NAME, defaultClassName); if (className == null) { return null; } String objectId = json.optString(KEY_OBJECT_ID, null...
static <T extends ParseObject> T fromJSON(JSONObject json, String defaultClassName, boolean isComplete, ParseDecoder decoder) { String className = json.optString(KEY_CLASS_NAME, defaultClassName); if (className == null) { return null; } String objectId = json.optString(KEY_OBJECT_ID, null); @SuppressWarnings(STR) T obj...
/** * Creates a new {@code ParseObject} based on data from the Parse server. * * @param json * The object's data. * @param defaultClassName * The className of the object, if none is in the JSON. * @param isComplete * {@code true} if this is all of the data on the serve...
Creates a new ParseObject based on data from the Parse server
fromJSON
{ "repo_name": "Milstein/Parse-SDK-Android", "path": "Parse/src/main/java/com/parse/ParseObject.java", "license": "bsd-3-clause", "size": 150347 }
[ "org.json.JSONObject" ]
import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,740,436
private static InputStream getInputStream(URL url) { try { return url.openStream(); } catch (Throwable t) { return null; } }
static InputStream function(URL url) { try { return url.openStream(); } catch (Throwable t) { return null; } }
/** * Open input stream from url. Ignore any errors. * * @param url * the url to open * @return input stream or null if not possible */
Open input stream from url. Ignore any errors
getInputStream
{ "repo_name": "pdecat/facelets", "path": "src/main/java/com/sun/facelets/util/Classpath.java", "license": "apache-2.0", "size": 6972 }
[ "java.io.InputStream" ]
import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
141,401
public String openExternal(String url) { try { Intent intent = null; intent = new Intent(Intent.ACTION_VIEW); // Omitting the MIME type for file: URLs causes "No Activity found to handle Intent". // Adding the MIME type to http: URLs causes them to not be hand...
String function(String url) { try { Intent intent = null; intent = new Intent(Intent.ACTION_VIEW); Uri uri = Uri.parse(url); if ("file".equals(uri.getScheme())) { intent.setDataAndType(uri, webView.getResourceApi().getMimeType(uri)); } else { intent.setData(uri); } intent.putExtra(Browser.EXTRA_APPLICATION_ID, cordova....
/** * Display a new browser with the specified URL. * * @param url The url to load. * @param usePhoneGap Load url in PhoneGap webview * @return "" if ok, or error message. */
Display a new browser with the specified URL
openExternal
{ "repo_name": "atakayama/cordova-plugin-inappbrowser", "path": "src/android/InAppBrowser.java", "license": "apache-2.0", "size": 37341 }
[ "android.content.Intent", "android.net.Uri", "android.provider.Browser" ]
import android.content.Intent; import android.net.Uri; import android.provider.Browser;
import android.content.*; import android.net.*; import android.provider.*;
[ "android.content", "android.net", "android.provider" ]
android.content; android.net; android.provider;
559,952
@Test public void stopWithSingleImageNotLabelled() throws IOException, MojoExecutionException, ExecException { givenProjectWithResolvedImage(singleImageWithBuild()); givenContainerIsRunningForImage("example:latest", "container-id", "example-1"); // mocking will return empty label map by ...
void function() throws IOException, MojoExecutionException, ExecException { givenProjectWithResolvedImage(singleImageWithBuild()); givenContainerIsRunningForImage(STR, STR, STR); whenMojoExecutes(); thenContainerLookupByImageOccurs(STR); thenListContainersIsNotCalled(); thenNoContainerIsStopped(); }
/** * Mock project with one image, query service indicates running image, but it is not labelled. * * @throws IOException * @throws MojoExecutionException * @throws ExecException */
Mock project with one image, query service indicates running image, but it is not labelled
stopWithSingleImageNotLabelled
{ "repo_name": "rhuss/docker-maven-plugin", "path": "src/test/java/io/fabric8/maven/docker/StopMojoTest.java", "license": "apache-2.0", "size": 26740 }
[ "io.fabric8.maven.docker.access.ExecException", "java.io.IOException", "org.apache.maven.plugin.MojoExecutionException" ]
import io.fabric8.maven.docker.access.ExecException; import java.io.IOException; import org.apache.maven.plugin.MojoExecutionException;
import io.fabric8.maven.docker.access.*; import java.io.*; import org.apache.maven.plugin.*;
[ "io.fabric8.maven", "java.io", "org.apache.maven" ]
io.fabric8.maven; java.io; org.apache.maven;
1,725,163
public AccountHolderResponse getAccountDetailByGetRest(final String name) throws RestClientException{ LOG.debug("getAccountDetailGetRest - getAccountDetails of: "+name); restTemplate.getMessageConverters().add(new Jaxb2RootElementHttpMessageConverter()); return restTemplate.getForObject(getAccountDetailGetR...
AccountHolderResponse function(final String name) throws RestClientException{ LOG.debug(STR+name); restTemplate.getMessageConverters().add(new Jaxb2RootElementHttpMessageConverter()); return restTemplate.getForObject(getAccountDetailGetRestUrl, AccountHolderResponse.class, name); }
/** * Retrieves the account details of the account holder through a Get method of @RestController. * * @param name * @return AccountHolderResponse */
Retrieves the account details of the account holder through a Get method of @RestController
getAccountDetailByGetRest
{ "repo_name": "parthiban-samykutti/soapRestWebService", "path": "restClient/src/main/java/com/parthi/spring/ws/rest/AccountService.java", "license": "gpl-3.0", "size": 5944 }
[ "com.parthi.spring.ws.rest.vo.AccountHolderResponse", "org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter", "org.springframework.web.client.RestClientException" ]
import com.parthi.spring.ws.rest.vo.AccountHolderResponse; import org.springframework.http.converter.xml.Jaxb2RootElementHttpMessageConverter; import org.springframework.web.client.RestClientException;
import com.parthi.spring.ws.rest.vo.*; import org.springframework.http.converter.xml.*; import org.springframework.web.client.*;
[ "com.parthi.spring", "org.springframework.http", "org.springframework.web" ]
com.parthi.spring; org.springframework.http; org.springframework.web;
1,126,192
@Test public final void testCreateRemoteATCommandPacketReceiveOptionsNegativeParameterByteArray() { // Setup the resources for the test. int frameID = 0x01; XBee64BitAddress dest64Addr = new XBee64BitAddress("0013A2004032D9AB"); XBee16BitAddress dest16Addr = new XBee16BitAddress("D817"); int options = -8;...
final void function() { int frameID = 0x01; XBee64BitAddress dest64Addr = new XBee64BitAddress(STR); XBee16BitAddress dest16Addr = new XBee16BitAddress("D817"); int options = -8; String command = "NI"; byte[] parameter = new byte[]{0x50, 0x61, 0x72, 0x61, 0x6D, 0x20, 0x76, 0x61, 0x6C, 0x75, 0x65}; exception.expect(Ille...
/** * Test method for {@link com.digi.xbee.api.packet.common.RemoteATCommandPacket#RemoteATCommandPacket(int, XBee64BitAddress, XBee16BitAddress, int, String, byte[])}. * * <p>Construct a new Remote AT Command packet but with a negative receive * options. This must throw an {@code IllegalArgumentException}.</...
Test method for <code>com.digi.xbee.api.packet.common.RemoteATCommandPacket#RemoteATCommandPacket(int, XBee64BitAddress, XBee16BitAddress, int, String, byte[])</code>. Construct a new Remote AT Command packet but with a negative receive options. This must throw an IllegalArgumentException
testCreateRemoteATCommandPacketReceiveOptionsNegativeParameterByteArray
{ "repo_name": "GUBotDev/XBeeJavaLibrary", "path": "library/src/test/java/com/digi/xbee/api/packet/common/RemoteATCommandPacketTest.java", "license": "mpl-2.0", "size": 52215 }
[ "com.digi.xbee.api.models.XBee16BitAddress", "com.digi.xbee.api.models.XBee64BitAddress", "org.junit.Test" ]
import com.digi.xbee.api.models.XBee16BitAddress; import com.digi.xbee.api.models.XBee64BitAddress; import org.junit.Test;
import com.digi.xbee.api.models.*; import org.junit.*;
[ "com.digi.xbee", "org.junit" ]
com.digi.xbee; org.junit;
510,300
private void decodeHeader(BufferedReader in, Map<String, String> pre, Map<String, String> parms, Map<String, String> headers) throws ResponseException { try { // Read the request line String inLine = in.readLine(); if (inLine == null) {...
void function(BufferedReader in, Map<String, String> pre, Map<String, String> parms, Map<String, String> headers) throws ResponseException { try { String inLine = in.readLine(); if (inLine == null) { return; } StringTokenizer st = new StringTokenizer(inLine); if (!st.hasMoreTokens()) { throw new ResponseException(Respo...
/** * Decodes the sent headers and loads the data into Key/value pairs */
Decodes the sent headers and loads the data into Key/value pairs
decodeHeader
{ "repo_name": "hanqin/inspectable", "path": "src/fi/iki/elonen/NanoHTTPD.java", "license": "apache-2.0", "size": 43733 }
[ "java.io.BufferedReader", "java.io.IOException", "java.util.Map", "java.util.StringTokenizer" ]
import java.io.BufferedReader; import java.io.IOException; import java.util.Map; import java.util.StringTokenizer;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
2,751,004
@Test public void afterMethod() throws Exception { scanClasses(TestClass.class); assertThat(applyConcept("testng:AfterMethod").getStatus(), equalTo(SUCCESS)); store.beginTransaction(); List<Object> methods = query("match (m:AfterMethod:TestNG:Method) return m").getColumn("m"); ...
void function() throws Exception { scanClasses(TestClass.class); assertThat(applyConcept(STR).getStatus(), equalTo(SUCCESS)); store.beginTransaction(); List<Object> methods = query(STR).getColumn("m"); assertThat(methods, hasItem(methodDescriptor(TestClass.class, "after"))); store.commitTransaction(); }
/** * Verifies the concept "testng:AfterMethod". * * @throws IOException * If the test fails. * @throws AnalysisException * If the test fails. * @throws NoSuchMethodException * If the test fails. * @throws AnalysisException * ...
Verifies the concept "testng:AfterMethod"
afterMethod
{ "repo_name": "khmarbaise/jqassistant", "path": "plugin/testng/src/test/java/com/buschmais/jqassistant/plugin/testng/test/TestNGIT.java", "license": "gpl-3.0", "size": 7112 }
[ "com.buschmais.jqassistant.plugin.testng.test.set.test.TestClass", "java.util.List", "org.hamcrest.CoreMatchers", "org.junit.Assert" ]
import com.buschmais.jqassistant.plugin.testng.test.set.test.TestClass; import java.util.List; import org.hamcrest.CoreMatchers; import org.junit.Assert;
import com.buschmais.jqassistant.plugin.testng.test.set.test.*; import java.util.*; import org.hamcrest.*; import org.junit.*;
[ "com.buschmais.jqassistant", "java.util", "org.hamcrest", "org.junit" ]
com.buschmais.jqassistant; java.util; org.hamcrest; org.junit;
1,466,904
public static boolean isCascadableJobProperty(JobPropertyDescriptor d) { return !(d instanceof AuthorizationMatrixProperty.DescriptorImpl || d instanceof ParametersDefinitionProperty.DescriptorImpl); }
static boolean function(JobPropertyDescriptor d) { return !(d instanceof AuthorizationMatrixProperty.DescriptorImpl d instanceof ParametersDefinitionProperty.DescriptorImpl); }
/** * Checks whether JobProperty supports cascading. Method skips * {@link AuthorizationMatrixProperty} and * {@link ParametersDefinitionProperty} classes. * {@link AuthorizationMatrixProperty} doesn't support cascading for now. As * for {@link ParametersDefinitionProperty} single instance does...
Checks whether JobProperty supports cascading. Method skips <code>AuthorizationMatrixProperty</code> and <code>ParametersDefinitionProperty</code> classes. <code>AuthorizationMatrixProperty</code> doesn't support cascading for now. As for <code>ParametersDefinitionProperty</code> single instance doesn't support cascadi...
isCascadableJobProperty
{ "repo_name": "bboyfeiyu/hudson.core", "path": "hudson-core/src/main/java/hudson/util/CascadingUtil.java", "license": "apache-2.0", "size": 24923 }
[ "hudson.model.JobPropertyDescriptor", "hudson.model.ParametersDefinitionProperty", "hudson.security.AuthorizationMatrixProperty" ]
import hudson.model.JobPropertyDescriptor; import hudson.model.ParametersDefinitionProperty; import hudson.security.AuthorizationMatrixProperty;
import hudson.model.*; import hudson.security.*;
[ "hudson.model", "hudson.security" ]
hudson.model; hudson.security;
2,471,394
public Set<String> getMatchingIds() { return stringIds; }
Set<String> function() { return stringIds; }
/** * Returns the ids of the objects that this filter matches. * * @return the ids of the objects that this filter matches * @deprecated use {@link #getSelectedIds()} instead */
Returns the ids of the objects that this filter matches
getMatchingIds
{ "repo_name": "deegree/deegree3", "path": "deegree-core/deegree-core-base/src/main/java/org/deegree/filter/IdFilter.java", "license": "lgpl-2.1", "size": 4401 }
[ "java.util.Set" ]
import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,636,241
public NumberFormat getNumberFormat() { return this.numberFormat; }
NumberFormat function() { return this.numberFormat; }
/** * Returns the number formatter. * * @return The formatter (never <code>null</code>). */
Returns the number formatter
getNumberFormat
{ "repo_name": "simeshev/parabuild-ci", "path": "3rdparty/jfreechart0921/source/org/jfree/chart/labels/StandardPieItemLabelGenerator.java", "license": "lgpl-3.0", "size": 9131 }
[ "java.text.NumberFormat" ]
import java.text.NumberFormat;
import java.text.*;
[ "java.text" ]
java.text;
2,109,195
private File getNextTempDirectory() throws AnalysisException { dirCount += 1; final File directory = new File(tempFileLocation, String.valueOf(dirCount)); //getting an exception for some directories not being able to be created; might be because the directory already exists? if (dire...
File function() throws AnalysisException { dirCount += 1; final File directory = new File(tempFileLocation, String.valueOf(dirCount)); if (directory.exists()) { return getNextTempDirectory(); } if (!directory.mkdirs()) { final String msg = String.format(STR, directory.getAbsolutePath()); throw new AnalysisException(msg...
/** * Retrieves the next temporary directory to extract an archive too. * * @return a directory * @throws AnalysisException thrown if unable to create temporary directory */
Retrieves the next temporary directory to extract an archive too
getNextTempDirectory
{ "repo_name": "sirkkalap/DependencyCheck", "path": "dependency-check-core/src/main/java/org/owasp/dependencycheck/analyzer/JarAnalyzer.java", "license": "apache-2.0", "size": 51579 }
[ "java.io.File", "org.owasp.dependencycheck.analyzer.exception.AnalysisException" ]
import java.io.File; import org.owasp.dependencycheck.analyzer.exception.AnalysisException;
import java.io.*; import org.owasp.dependencycheck.analyzer.exception.*;
[ "java.io", "org.owasp.dependencycheck" ]
java.io; org.owasp.dependencycheck;
148,590
private void addUserPermission(Configuration conf, UserPermission userPerm, Table t) throws IOException { try { PermissionStorage.addUserPermission(conf, userPerm, t); } finally { t.close(); } }
void function(Configuration conf, UserPermission userPerm, Table t) throws IOException { try { PermissionStorage.addUserPermission(conf, userPerm, t); } finally { t.close(); } }
/** * The PermissionStorage.addUserPermission may throw exception before closing the table. */
The PermissionStorage.addUserPermission may throw exception before closing the table
addUserPermission
{ "repo_name": "francisliu/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/security/access/TestTablePermissions.java", "license": "apache-2.0", "size": 21443 }
[ "java.io.IOException", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.hbase.client.Table" ]
import java.io.IOException; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.client.Table;
import java.io.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.hbase.client.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
794,147
public void initLocal() throws SlickException { initSystem(); enterOrtho(); try { getInput().initControllers(); } catch (SlickException e) { Log.info("Controllers not available"); } catch (Throwable e) { Log.info("Controllers not available"); } game.init(this); ge...
void function() throws SlickException { initSystem(); enterOrtho(); try { getInput().initControllers(); } catch (SlickException e) { Log.info(STR); } catch (Throwable e) { Log.info(STR); } game.init(this); getDelta(); }
/** * Initiliase based on Canvas init * * @throws SlickException * Indicates a failure to inialise the basic framework */
Initiliase based on Canvas init
initLocal
{ "repo_name": "SenshiSentou/SourceFight", "path": "slick_dev/tags/Slick0.19/src/org/newdawn/slick/CanvasGameContainer.java", "license": "bsd-2-clause", "size": 8048 }
[ "org.newdawn.slick.util.Log" ]
import org.newdawn.slick.util.Log;
import org.newdawn.slick.util.*;
[ "org.newdawn.slick" ]
org.newdawn.slick;
1,893,059
private void createSeries(int series, int sizeX, int sizeY) throws EnumerationException { metadata.setImageID("Image:" + series, series); metadata.setPixelsID("Pixels: " + series, series); metadata.setPixelsBinDataBigEndian( byteOrder == ByteOrder.BIG_ENDIAN? true...
void function(int series, int sizeX, int sizeY) throws EnumerationException { metadata.setImageID(STR + series, series); metadata.setPixelsID(STR + series, series); metadata.setPixelsBinDataBigEndian( byteOrder == ByteOrder.BIG_ENDIAN? true : false, series, 0); metadata.setPixelsDimensionOrder(DimensionOrder.XYZCT, ser...
/** * Creates a new series for the destination metadata store. * @param metadata Metadata store and retrieve implementation. * @param pixels Source pixels set. * @param series Destination series. * @param sizeX Destination X width. Not necessarily * <code>Pixels.SizeX</code>. * @param...
Creates a new series for the destination metadata store
createSeries
{ "repo_name": "simleo/openmicroscopy", "path": "components/romio/src/ome/io/bioformats/BfPyramidPixelBuffer.java", "license": "gpl-2.0", "size": 40982 }
[ "java.nio.ByteOrder" ]
import java.nio.ByteOrder;
import java.nio.*;
[ "java.nio" ]
java.nio;
1,178,163
public void dispatchConfigurationChanged(Configuration newConfig) { mHost.mFragmentManager.dispatchConfigurationChanged(newConfig); }
void function(Configuration newConfig) { mHost.mFragmentManager.dispatchConfigurationChanged(newConfig); }
/** * Lets all Fragments managed by the controller's FragmentManager * know a configuration change occurred. * <p>Call when there is a configuration change. * * @see Fragment#onConfigurationChanged(Configuration) */
Lets all Fragments managed by the controller's FragmentManager know a configuration change occurred. Call when there is a configuration change
dispatchConfigurationChanged
{ "repo_name": "xorware/android_frameworks_base", "path": "core/java/android/app/FragmentController.java", "license": "apache-2.0", "size": 14271 }
[ "android.content.res.Configuration" ]
import android.content.res.Configuration;
import android.content.res.*;
[ "android.content" ]
android.content;
1,432,963
public static JUserDefaults getStandardUserDefaults() { return JUserDefaults.getInstance(); } private org.json.JSONObject storageObject = null; private JUserDefaults() { loadStorage(); if (this.storageObject == null) { this.storageObject = new JSONObject(); this.storageObject.put("storageName...
static JUserDefaults function() { return JUserDefaults.getInstance(); } private org.json.JSONObject storageObject = null; private JUserDefaults() { loadStorage(); if (this.storageObject == null) { this.storageObject = new JSONObject(); this.storageObject.put(STR, STR); this.storageObject.put(STR, new JSONObject()); syn...
/** * See <code>getInstance()</code> */
See <code>getInstance()</code>
getStandardUserDefaults
{ "repo_name": "mmeuters/JUserDefaults", "path": "JUserDefaults.java", "license": "mit", "size": 6317 }
[ "org.json.JSONObject" ]
import org.json.JSONObject;
import org.json.*;
[ "org.json" ]
org.json;
1,062,828
public static AbstractDateAssert<?> assertThat(Date actual) { return AssertionsForClassTypes.assertThat(actual); }
static AbstractDateAssert<?> function(Date actual) { return AssertionsForClassTypes.assertThat(actual); }
/** * Creates a new instance of <code>{@link DateAssert}</code>. * * @param actual the actual value. * @return the created assertion object. */
Creates a new instance of <code><code>DateAssert</code></code>
assertThat
{ "repo_name": "xasx/assertj-core", "path": "src/main/java/org/assertj/core/api/Assertions.java", "license": "apache-2.0", "size": 123012 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,081,896
public Builder upload(byte[] data) { Preconditions.checkNotNull(data, "data may not be null"); InputStream dataStream = new ByteArrayInputStream(data); return this.upload(dataStream); }
Builder function(byte[] data) { Preconditions.checkNotNull(data, STR); InputStream dataStream = new ByteArrayInputStream(data); return this.upload(dataStream); }
/** * Uploads the data in the specified byte array to the file to be created. * * @param data data to be uploaded * * @return the same {@code Builder} object */
Uploads the data in the specified byte array to the file to be created
upload
{ "repo_name": "dnanexus/dx-toolkit", "path": "src/java/src/main/java/com/dnanexus/DXFile.java", "license": "apache-2.0", "size": 37447 }
[ "com.google.common.base.Preconditions", "java.io.ByteArrayInputStream", "java.io.InputStream" ]
import com.google.common.base.Preconditions; import java.io.ByteArrayInputStream; import java.io.InputStream;
import com.google.common.base.*; import java.io.*;
[ "com.google.common", "java.io" ]
com.google.common; java.io;
1,564,195
public static void writeField(@NotNull Element parent, @NotNull String fieldName, @Nullable String value, @NotNull String defaultValue) { if (!defaultValue.equals(value)) { writeField(parent, fieldName, value); } }
static void function(@NotNull Element parent, @NotNull String fieldName, @Nullable String value, @NotNull String defaultValue) { if (!defaultValue.equals(value)) { writeField(parent, fieldName, value); } }
/** * Adds the {@code <option name="{fieldName}" value="{value}"/>} element to the parent when the value differs from the default. */
Adds the } element to the parent when the value differs from the default
writeField
{ "repo_name": "leafclick/intellij-community", "path": "platform/util/src/com/intellij/openapi/util/JDOMExternalizerUtil.java", "license": "apache-2.0", "size": 5670 }
[ "org.jdom.Element", "org.jetbrains.annotations.NotNull", "org.jetbrains.annotations.Nullable" ]
import org.jdom.Element; import org.jetbrains.annotations.NotNull; import org.jetbrains.annotations.Nullable;
import org.jdom.*; import org.jetbrains.annotations.*;
[ "org.jdom", "org.jetbrains.annotations" ]
org.jdom; org.jetbrains.annotations;
1,874,652
public List<CobblerSnippet> listDefault(User user) { return listSnippets(user, true); }
List<CobblerSnippet> function(User user) { return listSnippets(user, true); }
/** * Returns a list of default snippets accessible to this user * i.e ones in /var/lib/cobbler/snippets minus spacewalk * @param user the user has to be atleast a * config admin to be able to access snippets. * @return the snippets accessible to the user. */
Returns a list of default snippets accessible to this user i.e ones in /var/lib/cobbler/snippets minus spacewalk
listDefault
{ "repo_name": "colloquium/spacewalk", "path": "java/code/src/com/redhat/rhn/manager/kickstart/cobbler/CobblerSnippetLister.java", "license": "gpl-2.0", "size": 5687 }
[ "com.redhat.rhn.domain.kickstart.cobbler.CobblerSnippet", "com.redhat.rhn.domain.user.User", "java.util.List" ]
import com.redhat.rhn.domain.kickstart.cobbler.CobblerSnippet; import com.redhat.rhn.domain.user.User; import java.util.List;
import com.redhat.rhn.domain.kickstart.cobbler.*; import com.redhat.rhn.domain.user.*; import java.util.*;
[ "com.redhat.rhn", "java.util" ]
com.redhat.rhn; java.util;
2,531,623
EList<Capability> getCapabilities();
EList<Capability> getCapabilities();
/** * Returns the value of the '<em><b>Capabilities</b></em>' containment reference list. * The list contents are of type {@link de.dfki.iui.basys.model.domain.capability.Capability}. * <!-- begin-user-doc --> * <p> * If the meaning of the '<em>Capabilities</em>' containment reference list isn't clear, * th...
Returns the value of the 'Capabilities' containment reference list. The list contents are of type <code>de.dfki.iui.basys.model.domain.capability.Capability</code>. If the meaning of the 'Capabilities' containment reference list isn't clear, there really should be more of a description here...
getCapabilities
{ "repo_name": "BaSys-PC1/models", "path": "de.dfki.iui.basys.model.service/src/de/dfki/iui/basys/model/service/Property.java", "license": "epl-1.0", "size": 1323 }
[ "de.dfki.iui.basys.model.domain.capability.Capability", "org.eclipse.emf.common.util.EList" ]
import de.dfki.iui.basys.model.domain.capability.Capability; import org.eclipse.emf.common.util.EList;
import de.dfki.iui.basys.model.domain.capability.*; import org.eclipse.emf.common.util.*;
[ "de.dfki.iui", "org.eclipse.emf" ]
de.dfki.iui; org.eclipse.emf;
2,094,683
public void logReduceTaskStarted(TaskAttemptID taskAttemptId, long startTime, String trackerName, int httpPort, String taskType) { if (disableHistory) { return; } JobID id = taskAttemptId.getJob...
void function(TaskAttemptID taskAttemptId, long startTime, String trackerName, int httpPort, String taskType) { if (disableHistory) { return; } JobID id = taskAttemptId.getJobID(); if (!this.jobId.equals(id)) { throw new RuntimeException(STR + id + STR + jobId); } if (null != writers) { log(writers, RecordTypes.ReduceA...
/** * Log start time of Reduce task attempt. * * @param taskAttemptId task attempt id * @param startTime start time * @param trackerName tracker name * @param httpPort the http port of the tracker executing the task attempt * @param taskType Whether the attempt is cleanup or setup or reduce */
Log start time of Reduce task attempt
logReduceTaskStarted
{ "repo_name": "nvoron23/hadoop-20", "path": "src/contrib/corona/src/java/org/apache/hadoop/mapred/CoronaJobHistory.java", "license": "apache-2.0", "size": 32684 }
[ "org.apache.hadoop.mapred.JobHistory" ]
import org.apache.hadoop.mapred.JobHistory;
import org.apache.hadoop.mapred.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
350,573
private void getScheduledIds (CallbackContext command) { List<Integer> ids = getNotificationMgr().getIdsByType( Notification.Type.SCHEDULED); command.success(new JSONArray(ids)); }
void function (CallbackContext command) { List<Integer> ids = getNotificationMgr().getIdsByType( Notification.Type.SCHEDULED); command.success(new JSONArray(ids)); }
/** * Set of IDs from all scheduled notifications. * * @param command * The callback context used when calling back into JavaScript. */
Set of IDs from all scheduled notifications
getScheduledIds
{ "repo_name": "ecthurlow/cordova-plugin-local-notifications", "path": "src/android/LocalNotification.java", "license": "apache-2.0", "size": 20559 }
[ "de.appplant.cordova.plugin.notification.Notification", "java.util.List", "org.apache.cordova.CallbackContext", "org.json.JSONArray" ]
import de.appplant.cordova.plugin.notification.Notification; import java.util.List; import org.apache.cordova.CallbackContext; import org.json.JSONArray;
import de.appplant.cordova.plugin.notification.*; import java.util.*; import org.apache.cordova.*; import org.json.*;
[ "de.appplant.cordova", "java.util", "org.apache.cordova", "org.json" ]
de.appplant.cordova; java.util; org.apache.cordova; org.json;
124,180
public void assertContains(AssertionInfo info, double[] actual, double value, Index index) { arrays.assertContains(info, failures, actual, value, index); }
void function(AssertionInfo info, double[] actual, double value, Index index) { arrays.assertContains(info, failures, actual, value, index); }
/** * Verifies that the given array contains the given value at the given index. * * @param info contains information about the assertion. * @param actual the given array. * @param value the value to look for. * @param index the index where the value should be stored in the given array. * @throws ...
Verifies that the given array contains the given value at the given index
assertContains
{ "repo_name": "xasx/assertj-core", "path": "src/main/java/org/assertj/core/internal/DoubleArrays.java", "license": "apache-2.0", "size": 18154 }
[ "org.assertj.core.api.AssertionInfo", "org.assertj.core.data.Index" ]
import org.assertj.core.api.AssertionInfo; import org.assertj.core.data.Index;
import org.assertj.core.api.*; import org.assertj.core.data.*;
[ "org.assertj.core" ]
org.assertj.core;
517,437
private static String calculateSha256(byte[] bytes) throws NoSuchAlgorithmException { MessageDigest md = MessageDigest.getInstance("SHA-256"); md.update(bytes); byte[] mdbytes = md.digest(); //convert the byte to hex format method 1 StringBuffer sb = new StringBuffer(); for (int i = 0; i < mdby...
static String function(byte[] bytes) throws NoSuchAlgorithmException { MessageDigest md = MessageDigest.getInstance(STR); md.update(bytes); byte[] mdbytes = md.digest(); StringBuffer sb = new StringBuffer(); for (int i = 0; i < mdbytes.length; i++) { sb.append(Integer.toString((mdbytes[i] & 0xff) + 0x100, 16).substring...
/** * Calculate a SHA-256 from the passed bytes. * @param jsonBytes * @return * @throws NoSuchAlgorithmException */
Calculate a SHA-256 from the passed bytes
calculateSha256
{ "repo_name": "hhu94/Synapse-Repository-Services", "path": "lib/jdomodels/src/main/java/org/sagebionetworks/repo/model/dbo/persistence/table/ColumnModelUtils.java", "license": "apache-2.0", "size": 11226 }
[ "java.security.MessageDigest", "java.security.NoSuchAlgorithmException" ]
import java.security.MessageDigest; import java.security.NoSuchAlgorithmException;
import java.security.*;
[ "java.security" ]
java.security;
1,911,057
private void readConfigFile(String filename) throws ConfigException{ File configFile = new File(filename); LOG.info("Reading configuration from: " + configFile); try { if (!configFile.exists()) { throw new IllegalArgumentException(configFile.toString() ...
void function(String filename) throws ConfigException{ File configFile = new File(filename); LOG.info(STR + configFile); try { if (!configFile.exists()) { throw new IllegalArgumentException(configFile.toString() + STR); } Properties cfg = new Properties(); FileInputStream in = new FileInputStream(configFile); try { cfg...
/** * Reads a configration file. Called from the constructor * that takes a file as an input. */
Reads a configration file. Called from the constructor that takes a file as an input
readConfigFile
{ "repo_name": "jango2015/zookeeper", "path": "src/java/main/org/apache/zookeeper/server/quorum/flexible/QuorumHierarchical.java", "license": "apache-2.0", "size": 8780 }
[ "java.io.File", "java.io.FileInputStream", "java.io.IOException", "java.util.Properties", "org.apache.zookeeper.server.quorum.QuorumPeerConfig" ]
import java.io.File; import java.io.FileInputStream; import java.io.IOException; import java.util.Properties; import org.apache.zookeeper.server.quorum.QuorumPeerConfig;
import java.io.*; import java.util.*; import org.apache.zookeeper.server.quorum.*;
[ "java.io", "java.util", "org.apache.zookeeper" ]
java.io; java.util; org.apache.zookeeper;
1,732,816
public DateTime lastSuccessfulFailoverTime() { return this.lastSuccessfulFailoverTime; }
DateTime function() { return this.lastSuccessfulFailoverTime; }
/** * Get the Last successful failover time. * * @return the lastSuccessfulFailoverTime value */
Get the Last successful failover time
lastSuccessfulFailoverTime
{ "repo_name": "navalev/azure-sdk-for-java", "path": "sdk/recoveryservices.siterecovery/mgmt-v2018_01_10/src/main/java/com/microsoft/azure/management/recoveryservices/siterecovery/v2018_01_10/ReplicationProtectedItemProperties.java", "license": "mit", "size": 22062 }
[ "org.joda.time.DateTime" ]
import org.joda.time.DateTime;
import org.joda.time.*;
[ "org.joda.time" ]
org.joda.time;
1,678,386
public void addSettings(Map<String, Object> settings) { if (null == this.settings) { this.settings = new HashMap<String, Object>(settings.size()); } this.settings.putAll(settings); } /** * {@inheritDoc}
void function(Map<String, Object> settings) { if (null == this.settings) { this.settings = new HashMap<String, Object>(settings.size()); } this.settings.putAll(settings); } /** * {@inheritDoc}
/** * Adds all given settings to the settings map. * * @param settings * Map of settings to add. */
Adds all given settings to the settings map
addSettings
{ "repo_name": "inspectIT/inspectIT", "path": "inspectit.shared.all/src/main/java/rocks/inspectit/shared/all/instrumentation/config/impl/SensorInstrumentationPoint.java", "license": "agpl-3.0", "size": 5812 }
[ "java.util.HashMap", "java.util.Map" ]
import java.util.HashMap; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,833,634
public void testExecuteQueryWithNoDynamicResultSets() throws SQLException { Statement stmt = createStatement(); try { stmt.executeQuery("CALL RETRIEVE_DYNAMIC_RESULTS(0)"); fail("executeQuery() didn't fail."); } catch (SQLException sqle) { assertNoResultSe...
void function() throws SQLException { Statement stmt = createStatement(); try { stmt.executeQuery(STR); fail(STR); } catch (SQLException sqle) { assertNoResultSetFromExecuteQuery(sqle); } }
/** * Tests that <code>Statement.executeQuery()</code> fails when no * result sets are returned. * @exception SQLException if a database error occurs */
Tests that <code>Statement.executeQuery()</code> fails when no result sets are returned
testExecuteQueryWithNoDynamicResultSets
{ "repo_name": "splicemachine/spliceengine", "path": "db-testing/src/test/java/com/splicemachine/dbTesting/functionTests/tests/jdbcapi/ProcedureTest.java", "license": "agpl-3.0", "size": 64568 }
[ "java.sql.SQLException", "java.sql.Statement" ]
import java.sql.SQLException; import java.sql.Statement;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,054,822
public Connection getConnection() throws ResourceException;
Connection function() throws ResourceException;
/** * Returns an application connection. * * @return the application's connection facade */
Returns an application connection
getConnection
{ "repo_name": "mdaniel/svn-caucho-com-resin", "path": "modules/jca/src/javax/resource/cci/ConnectionFactory.java", "license": "gpl-2.0", "size": 2031 }
[ "javax.resource.ResourceException" ]
import javax.resource.ResourceException;
import javax.resource.*;
[ "javax.resource" ]
javax.resource;
790,892
public static int calcSerializedSize(Object o) { int result; if (o instanceof byte[]) { result = getByteSize((byte[]) o) - Sizeable.PER_OBJECT_OVERHEAD; } else if (o instanceof byte[][]) { result = getArrayOfBytesSize((byte[][]) o, false); } else if (o instanceof CachedDeserializable) { ...
static int function(Object o) { int result; if (o instanceof byte[]) { result = getByteSize((byte[]) o) - Sizeable.PER_OBJECT_OVERHEAD; } else if (o instanceof byte[][]) { result = getArrayOfBytesSize((byte[][]) o, false); } else if (o instanceof CachedDeserializable) { result = ((CachedDeserializable) o).getSizeInByte...
/** * Return an estimate of the number of bytes this object will consume when serialized. This is the * number of bytes that will be written on the wire including the 4 bytes needed to encode the * length. */
Return an estimate of the number of bytes this object will consume when serialized. This is the number of bytes that will be written on the wire including the 4 bytes needed to encode the length
calcSerializedSize
{ "repo_name": "PurelyApplied/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/CachedDeserializableFactory.java", "license": "apache-2.0", "size": 9738 }
[ "java.io.IOException", "org.apache.geode.DataSerializer", "org.apache.geode.internal.HeapDataOutputStream", "org.apache.geode.internal.NullDataOutputStream", "org.apache.geode.internal.size.Sizeable" ]
import java.io.IOException; import org.apache.geode.DataSerializer; import org.apache.geode.internal.HeapDataOutputStream; import org.apache.geode.internal.NullDataOutputStream; import org.apache.geode.internal.size.Sizeable;
import java.io.*; import org.apache.geode.*; import org.apache.geode.internal.*; import org.apache.geode.internal.size.*;
[ "java.io", "org.apache.geode" ]
java.io; org.apache.geode;
1,886,036
public Game getGame() { return game; }
Game function() { return game; }
/** * Returns the game for the session. * * @return The game */
Returns the game for the session
getGame
{ "repo_name": "flow/client", "path": "src/main/java/org/spoutcraft/client/network/ClientSession.java", "license": "mit", "size": 4387 }
[ "org.spoutcraft.client.Game" ]
import org.spoutcraft.client.Game;
import org.spoutcraft.client.*;
[ "org.spoutcraft.client" ]
org.spoutcraft.client;
2,569,845
public Icon getIcon() { return ExampleServiceIcon.getIcon(); }
Icon function() { return ExampleServiceIcon.getIcon(); }
/** * Icon for service provider */
Icon for service provider
getIcon
{ "repo_name": "StormShadowTX/Vamdc-TavernaPlugin", "path": "vamdc-taverna-suite/vamdc-activity-ui/src/main/java/org/vamdc/taverna/vamdc_taverna_suite/ui/serviceprovider/ConsumerServiceProvider.java", "license": "bsd-3-clause", "size": 3104 }
[ "javax.swing.Icon" ]
import javax.swing.Icon;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
2,546,665
private synchronized int getMaxColumnWidth(int index, FontMetrics metrics, int margin, int padding, String header, Object[][] table) { // set the tree (the node / names column) width String headerName = header; int headerWidth = metrics.stringWidth(headerName); // length of the header ...
synchronized int function(int index, FontMetrics metrics, int margin, int padding, String header, Object[][] table) { String headerName = header; int headerWidth = metrics.stringWidth(headerName); int colWidth = 0; for (int i = 0; i < table.length; i++) { if (table[i] == null index >= table[i].length) { continue; } Str...
/** * Gets the max width of the column from the given index, header, and table. * * @param index the index of the column on the table / header * @param metrics the font metrics that this component use * @param margin the left/right margin of the column * @param padding the left/right pa...
Gets the max width of the column from the given index, header, and table
getMaxColumnWidth
{ "repo_name": "maxrp/autopsy", "path": "Core/src/org/sleuthkit/autopsy/corecomponents/DataResultViewerTable.java", "license": "apache-2.0", "size": 21392 }
[ "java.awt.FontMetrics" ]
import java.awt.FontMetrics;
import java.awt.*;
[ "java.awt" ]
java.awt;
965,777
@Test public void testCSVOutputWithDoubleQuotes() throws Throwable { String SCRIPT_TEXT = getFormatTestQueryForEableQuotes(); List<String> argList = getBaseArgs(miniHS2.getBaseJdbcURL()); argList.add("--outputformat=csv"); System.setProperty(SeparatedValuesOutputFormat.DISABLE_QUOTING_FOR_SV, "false...
void function() throws Throwable { String SCRIPT_TEXT = getFormatTestQueryForEableQuotes(); List<String> argList = getBaseArgs(miniHS2.getBaseJdbcURL()); argList.add(STR); System.setProperty(SeparatedValuesOutputFormat.DISABLE_QUOTING_FOR_SV, "false"); final String EXPECTED_PATTERN = STRc','\"aa\"','1.0'STRtrue"); }
/** * Test writing output using CSV deprecated format */
Test writing output using CSV deprecated format
testCSVOutputWithDoubleQuotes
{ "repo_name": "vineetgarg02/hive", "path": "itests/hive-unit/src/test/java/org/apache/hive/beeline/TestBeeLineWithArgs.java", "license": "apache-2.0", "size": 46744 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
982,520
protected Set<Action> drainPipelineActions() { if (isNodeVisitorDumpEnabled) { dump(String.format("draining accumulated actions - total is %d", pipelineActions.size())); } if (pipelineActions.size() == 0) { return Collections.emptySet(); } Set<Action...
Set<Action> function() { if (isNodeVisitorDumpEnabled) { dump(String.format(STR, pipelineActions.size())); } if (pipelineActions.size() == 0) { return Collections.emptySet(); } Set<Action> drainedActions = pipelineActions; pipelineActions = new HashSet<>(); return drainedActions; }
/** * Empty the pipelineActions buffer, returning its contents. */
Empty the pipelineActions buffer, returning its contents
drainPipelineActions
{ "repo_name": "kzantow/blueocean-plugin", "path": "blueocean-pipeline-api-impl/src/main/java/io/jenkins/blueocean/rest/impl/pipeline/PipelineNodeGraphVisitor.java", "license": "mit", "size": 34946 }
[ "hudson.model.Action", "java.util.Collections", "java.util.HashSet", "java.util.Set" ]
import hudson.model.Action; import java.util.Collections; import java.util.HashSet; import java.util.Set;
import hudson.model.*; import java.util.*;
[ "hudson.model", "java.util" ]
hudson.model; java.util;
2,214,512
public void passivateObject(Object obj) throws LDAPException { if (log.isDebugEnabled()) log.debug("passivateObject()"); if (obj instanceof PooledLDAPConnection) { PooledLDAPConnection conn = (PooledLDAPConnection) obj; conn.setActive(false); if (log.isDebugEnabled()) log.debug("passivateOb...
void function(Object obj) throws LDAPException { if (log.isDebugEnabled()) log.debug(STR); if (obj instanceof PooledLDAPConnection) { PooledLDAPConnection conn = (PooledLDAPConnection) obj; conn.setActive(false); if (log.isDebugEnabled()) log.debug(STR); } else { if (log.isDebugEnabled()) { log.debug(STR + (obj == null...
/** * Passivates a PooledLDAPConnection as it is being returned to * the pool, including: clearing the active flag so that it won't * attempt to return itself to the pool. */
Passivates a PooledLDAPConnection as it is being returned to the pool, including: clearing the active flag so that it won't attempt to return itself to the pool
passivateObject
{ "repo_name": "harfalm/Sakai-10.1", "path": "providers/jldap/src/java/edu/amc/sakai/user/PooledLDAPConnectionFactory.java", "license": "apache-2.0", "size": 13982 }
[ "com.novell.ldap.LDAPException" ]
import com.novell.ldap.LDAPException;
import com.novell.ldap.*;
[ "com.novell.ldap" ]
com.novell.ldap;
2,839,151
public CursorWindow getWindow(int startPos) throws RemoteException;
CursorWindow function(int startPos) throws RemoteException;
/** * Returns a BulkCursorWindow, which either has a reference to a shared * memory segment with the rows, or an array of JSON strings. */
Returns a BulkCursorWindow, which either has a reference to a shared memory segment with the rows, or an array of JSON strings
getWindow
{ "repo_name": "mateor/PDroidHistory", "path": "frameworks/base/core/java/android/database/IBulkCursor.java", "license": "gpl-3.0", "size": 3421 }
[ "android.os.RemoteException" ]
import android.os.RemoteException;
import android.os.*;
[ "android.os" ]
android.os;
584,783
@Override public void write(byte []buffer, int offset, int length, boolean isEnd) throws IOException { _queue.write(this, buffer, offset, length); }
void function(byte []buffer, int offset, int length, boolean isEnd) throws IOException { _queue.write(this, buffer, offset, length); }
/** * Writes to the stream */
Writes to the stream
write
{ "repo_name": "baratine/baratine", "path": "web/src/main/java/com/caucho/v5/log/impl/RotateStream.java", "license": "gpl-2.0", "size": 9082 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,411,626
void updatePreDefMoneyflow(PreDefMoneyflow preDefMoneyflow); /** * This service deletes a {@link PreDefMoneyflow} from the system * * @param userId * {@link UserID} * @param preDefMoneyflowId * The {@link PreDefMoneyflowID} of the to-be-deleted {@link PreDefMoneyflow}
void updatePreDefMoneyflow(PreDefMoneyflow preDefMoneyflow); /** * This service deletes a {@link PreDefMoneyflow} from the system * * @param userId * {@link UserID} * @param preDefMoneyflowId * The {@link PreDefMoneyflowID} of the to-be-deleted {@link PreDefMoneyflow}
/** * This service changes a {@link PreDefMoneyflow}. Before the {@link PreDefMoneyflow} is * changed, the new values are validated for correctness. * * @param user * the new {@link PreDefMoneyflow} attributes * @throws BusinessException * If the validation of the given {@link PreDe...
This service changes a <code>PreDefMoneyflow</code>. Before the <code>PreDefMoneyflow</code> is changed, the new values are validated for correctness
updatePreDefMoneyflow
{ "repo_name": "OlliL/moneyjinn-server", "path": "moneyjinn-service-api/src/main/java/org/laladev/moneyjinn/service/api/IPreDefMoneyflowService.java", "license": "bsd-2-clause", "size": 5632 }
[ "org.laladev.moneyjinn.model.PreDefMoneyflow", "org.laladev.moneyjinn.model.PreDefMoneyflowID", "org.laladev.moneyjinn.model.access.UserID" ]
import org.laladev.moneyjinn.model.PreDefMoneyflow; import org.laladev.moneyjinn.model.PreDefMoneyflowID; import org.laladev.moneyjinn.model.access.UserID;
import org.laladev.moneyjinn.model.*; import org.laladev.moneyjinn.model.access.*;
[ "org.laladev.moneyjinn" ]
org.laladev.moneyjinn;
20,029
public boolean addToContent(Container panel, OutlineInfo leftInfo, OutlineInfo rightInfo) { boolean isOutline = panel instanceof SingleOutlinePanel || panel instanceof DoubleOutlinePanel; int height = 0; int minLeft = 0; int minRight = 0; if (isOutline) { minLeft = leftInfo.getMinimumHeight(); if (p...
boolean function(Container panel, OutlineInfo leftInfo, OutlineInfo rightInfo) { boolean isOutline = panel instanceof SingleOutlinePanel panel instanceof DoubleOutlinePanel; int height = 0; int minLeft = 0; int minRight = 0; if (isOutline) { minLeft = leftInfo.getMinimumHeight(); if (panel instanceof SingleOutlinePanel...
/** * Add a panel to the content of the page. * * @param panel The panel to add. * @param leftInfo Outline info for the left outline. * @param rightInfo Outline info for the right outline. * @return <code>true</code> if the panel was too big to fit on a single page. */
Add a panel to the content of the page
addToContent
{ "repo_name": "smithkm/gcs", "path": "src/com/trollworks/gcs/character/PageAssembler.java", "license": "mpl-2.0", "size": 4783 }
[ "java.awt.Container" ]
import java.awt.Container;
import java.awt.*;
[ "java.awt" ]
java.awt;
393,619
PurchasingAccountsPayableDocument purapDocument = (PurchasingAccountsPayableDocument) event.getDocument(); List<PurApItem> items = purapDocument.getItems(); for (PurApItem item : items) { if (((PurchaseOrderItem) item).isItemActiveIndicator() && (!((PurchaseOrderItem) item).isEmpty() && item...
PurchasingAccountsPayableDocument purapDocument = (PurchasingAccountsPayableDocument) event.getDocument(); List<PurApItem> items = purapDocument.getItems(); for (PurApItem item : items) { if (((PurchaseOrderItem) item).isItemActiveIndicator() && (!((PurchaseOrderItem) item).isEmpty() && item.getItemType().isLineItemInd...
/** * Validates that the given document contains at least one active item. * * @param purapDocument A PurchasingAccountsPayableDocument. (Should contain PurchaseOrderItems.) * @return True if the document contains at least one active item */
Validates that the given document contains at least one active item
validate
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-purap/src/main/java/org/kuali/kfs/module/purap/document/validation/impl/PurchaseOrderAmendmentContainsAtLeastOneActiveItemValidation.java", "license": "agpl-3.0", "size": 2859 }
[ "java.util.List", "org.kuali.kfs.krad.util.GlobalVariables", "org.kuali.kfs.module.purap.PurapConstants", "org.kuali.kfs.module.purap.PurapKeyConstants", "org.kuali.kfs.module.purap.businessobject.PurApItem", "org.kuali.kfs.module.purap.businessobject.PurchaseOrderItem", "org.kuali.kfs.module.purap.docu...
import java.util.List; import org.kuali.kfs.krad.util.GlobalVariables; import org.kuali.kfs.module.purap.PurapConstants; import org.kuali.kfs.module.purap.PurapKeyConstants; import org.kuali.kfs.module.purap.businessobject.PurApItem; import org.kuali.kfs.module.purap.businessobject.PurchaseOrderItem; import org.kuali.k...
import java.util.*; import org.kuali.kfs.krad.util.*; import org.kuali.kfs.module.purap.*; import org.kuali.kfs.module.purap.businessobject.*; import org.kuali.kfs.module.purap.document.*;
[ "java.util", "org.kuali.kfs" ]
java.util; org.kuali.kfs;
1,257,033
@Override public void start() throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); if (started.compareAndSet(false, true)) { for (Iterator<ActiveMQSession> i = sessions.iterator(); i.hasNext();) { ActiveMQSession session = i.next(); ...
void function() throws JMSException { checkClosedOrFailed(); ensureConnectionInfoSent(); if (started.compareAndSet(false, true)) { for (Iterator<ActiveMQSession> i = sessions.iterator(); i.hasNext();) { ActiveMQSession session = i.next(); session.start(); } } }
/** * Starts (or restarts) a connection's delivery of incoming messages. A call * to <CODE>start</CODE> on a connection that has already been started is * ignored. * * @throws JMSException if the JMS provider fails to start message delivery * due to some internal error. ...
Starts (or restarts) a connection's delivery of incoming messages. A call to <code>start</code> on a connection that has already been started is ignored
start
{ "repo_name": "Mark-Booth/daq-eclipse", "path": "uk.ac.diamond.org.apache.activemq/org/apache/activemq/ActiveMQConnection.java", "license": "epl-1.0", "size": 107413 }
[ "java.util.Iterator", "javax.jms.JMSException" ]
import java.util.Iterator; import javax.jms.JMSException;
import java.util.*; import javax.jms.*;
[ "java.util", "javax.jms" ]
java.util; javax.jms;
261,477
public void startSolitaire (GameConfig config, ConfirmListener listener);
void function (GameConfig config, ConfirmListener listener);
/** * Requests to start a single player game with the specified game configuration. */
Requests to start a single player game with the specified game configuration
startSolitaire
{ "repo_name": "threerings/vilya", "path": "core/src/main/java/com/threerings/parlor/client/ParlorService.java", "license": "lgpl-2.1", "size": 4070 }
[ "com.threerings.parlor.game.data.GameConfig" ]
import com.threerings.parlor.game.data.GameConfig;
import com.threerings.parlor.game.data.*;
[ "com.threerings.parlor" ]
com.threerings.parlor;
2,759,826
public ServiceFuture<LiveEventInner> beginCreateAsync(String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters, final ServiceCallback<LiveEventInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, accountName, ...
ServiceFuture<LiveEventInner> function(String resourceGroupName, String accountName, String liveEventName, LiveEventInner parameters, final ServiceCallback<LiveEventInner> serviceCallback) { return ServiceFuture.fromResponse(beginCreateWithServiceResponseAsync(resourceGroupName, accountName, liveEventName, parameters),...
/** * Create Live Event. * Creates a Live Event. * * @param resourceGroupName The name of the resource group within the Azure subscription. * @param accountName The Media Services account name. * @param liveEventName The name of the Live Event. * @param parameters Live Event propertie...
Create Live Event. Creates a Live Event
beginCreateAsync
{ "repo_name": "hovsepm/azure-sdk-for-java", "path": "mediaservices/resource-manager/v2018_30_30_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2018_30_30_preview/implementation/LiveEventsInner.java", "license": "mit", "size": 111938 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
87,306
private void sendToSubscriptionAddedMail(Subscription subscription, List<UsageLicense> usageLicenses) { if (subscription.getStatus() != SubscriptionStatus.ACTIVE) { return; } EmailType emailType = useAccessInfo(subscription) ? EmailType.SUBSCRIPTION_U...
void function(Subscription subscription, List<UsageLicense> usageLicenses) { if (subscription.getStatus() != SubscriptionStatus.ACTIVE) { return; } EmailType emailType = useAccessInfo(subscription) ? EmailType.SUBSCRIPTION_USER_ADDED_ACCESSTYPE_DIRECT : EmailType.SUBSCRIPTION_USER_ADDED; Long marketplaceKey = null; if ...
/** * Send the subscription created email to the users assigned to the * subscription. The mail also includes the access information. * * @param subscription * the created subscription to get the id and access info (url or * descriptive text) from * @param usage...
Send the subscription created email to the users assigned to the subscription. The mail also includes the access information
sendToSubscriptionAddedMail
{ "repo_name": "opetrovski/development", "path": "oscm-subscriptionmgmt/javasrc/org/oscm/subscriptionservice/bean/SubscriptionServiceBean.java", "license": "apache-2.0", "size": 259543 }
[ "java.util.Collections", "java.util.List", "org.oscm.domobjects.Subscription", "org.oscm.domobjects.UsageLicense", "org.oscm.internal.types.enumtypes.SubscriptionStatus", "org.oscm.taskhandling.local.TaskMessage", "org.oscm.taskhandling.operations.SendMailHandler", "org.oscm.taskhandling.payloads.Send...
import java.util.Collections; import java.util.List; import org.oscm.domobjects.Subscription; import org.oscm.domobjects.UsageLicense; import org.oscm.internal.types.enumtypes.SubscriptionStatus; import org.oscm.taskhandling.local.TaskMessage; import org.oscm.taskhandling.operations.SendMailHandler; import org.oscm.tas...
import java.util.*; import org.oscm.domobjects.*; import org.oscm.internal.types.enumtypes.*; import org.oscm.taskhandling.local.*; import org.oscm.taskhandling.operations.*; import org.oscm.taskhandling.payloads.*; import org.oscm.types.enumtypes.*;
[ "java.util", "org.oscm.domobjects", "org.oscm.internal", "org.oscm.taskhandling", "org.oscm.types" ]
java.util; org.oscm.domobjects; org.oscm.internal; org.oscm.taskhandling; org.oscm.types;
2,729,766
public static final Job createJobWithNewClassLoader() throws KettleException { try { // Load the class. Class<?> jobClass = Const.createNewClassLoader().loadClass(Job.class.getName()); // create the class // Try to instantiate this one... Job job ...
static final Job function() throws KettleException { try { Class<?> jobClass = Const.createNewClassLoader().loadClass(Job.class.getName()); Job job = (Job) jobClass.newInstance(); return job; } catch (Exception e) { String message = BaseMessages.getString(PKG, STR, e.toString()); throw new KettleException(message, e); ...
/** * Creates the job with new class loader. * * @return the job * @throws KettleException the kettle exception */
Creates the job with new class loader
createJobWithNewClassLoader
{ "repo_name": "zlcnju/kettle", "path": "engine/src/main/java/org/pentaho/di/job/Job.java", "license": "apache-2.0", "size": 79895 }
[ "org.pentaho.di.core.Const", "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.i18n.BaseMessages" ]
import org.pentaho.di.core.Const; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.i18n.BaseMessages;
import org.pentaho.di.core.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.i18n.*;
[ "org.pentaho.di" ]
org.pentaho.di;
1,126,880
private static File getVideoStorageDir(String videoName) { //Check to see if external SDCard is mounted or not. if (isExternalStorageWritable()) { // Create a path where we will place our video in the // user's public Downloads directory. Note that you should be /...
static File function(String videoName) { if (isExternalStorageWritable()) { final File path = Environment.getExternalStoragePublicDirectory (Environment.DIRECTORY_DOWNLOADS); final File file = new File(path, videoName); path.mkdirs(); return file; } else { return null; } } private VideoStorageUtils() { throw new Assert...
/** * Get the External Downloads Directory to * store the Videos. * * @param videoName */
Get the External Downloads Directory to store the Videos
getVideoStorageDir
{ "repo_name": "myhgew/mobilecloud-15", "path": "ex/VideoUploadClient/src/vandy/mooc/utils/VideoStorageUtils.java", "license": "apache-2.0", "size": 4424 }
[ "android.os.Environment", "java.io.File" ]
import android.os.Environment; import java.io.File;
import android.os.*; import java.io.*;
[ "android.os", "java.io" ]
android.os; java.io;
161,238
public static MimeType getMimeTypeForFile(String filename) { return supportedTypes.get(getExtension(filename)); }
static MimeType function(String filename) { return supportedTypes.get(getExtension(filename)); }
/** * returns a MimeType object for the given file * @param filename the file for which the MimeType is requested * @return the requested MimeType object or null if the file has a type which is not supported */
returns a MimeType object for the given file
getMimeTypeForFile
{ "repo_name": "mhdawson/JavaPVR", "path": "com/devrus/mediaserver/ContentTypes.java", "license": "mit", "size": 2794 }
[ "org.teleal.common.util.MimeType" ]
import org.teleal.common.util.MimeType;
import org.teleal.common.util.*;
[ "org.teleal.common" ]
org.teleal.common;
2,339,693
@SuppressWarnings("unchecked") public void changeViewMode(final NavigationLayoutMode newMode) { //Check that it is really necessary change the mode if (this.mCurrentMode != null && this.mCurrentMode.compareTo(newMode) == 0) { return; } // If we should set the listvie...
@SuppressWarnings(STR) void function(final NavigationLayoutMode newMode) { if (this.mCurrentMode != null && this.mCurrentMode.compareTo(newMode) == 0) { return; } boolean useFlinger = Preferences.getSharedPreferences().getBoolean( FileManagerSettings.SETTINGS_USE_FLINGER.getId(), ((Boolean)FileManagerSettings. SETTINGS...
/** * Method that change the view mode. * * @param newMode The new mode */
Method that change the view mode
changeViewMode
{ "repo_name": "AnimeROM/android_package_AnimeManager", "path": "src/com/animerom/filemanager/ui/widgets/NavigationView.java", "license": "apache-2.0", "size": 48373 }
[ "android.util.Log", "android.widget.AdapterView", "android.widget.ListAdapter", "com.animerom.filemanager.adapters.FileSystemObjectAdapter", "com.animerom.filemanager.model.FileSystemObject", "com.animerom.filemanager.preferences.FileManagerSettings", "com.animerom.filemanager.preferences.NavigationLayo...
import android.util.Log; import android.widget.AdapterView; import android.widget.ListAdapter; import com.animerom.filemanager.adapters.FileSystemObjectAdapter; import com.animerom.filemanager.model.FileSystemObject; import com.animerom.filemanager.preferences.FileManagerSettings; import com.animerom.filemanager.prefer...
import android.util.*; import android.widget.*; import com.animerom.filemanager.adapters.*; import com.animerom.filemanager.model.*; import com.animerom.filemanager.preferences.*; import java.util.*;
[ "android.util", "android.widget", "com.animerom.filemanager", "java.util" ]
android.util; android.widget; com.animerom.filemanager; java.util;
2,210,633
public static Color averageColorFromURL(URL url, boolean handleExceptions) { BufferedImage image; try { HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty("User-Agent", Main.cfg.getUserAgent()); connection.setConnectTimeout(5000); connection.set...
static Color function(URL url, boolean handleExceptions) { BufferedImage image; try { HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setRequestProperty(STR, Main.cfg.getUserAgent()); connection.setConnectTimeout(5000); connection.setReadTimeout(5000); image = ImageIO.read(connection...
/** * Gets the average color from the picture found at a URL * * @param url The URL leading to the picture * @param handleExceptions Whether to return (0, 154, 255) when an exception happens * @return The average color of the picture, null or (0, 154, 255) on error */
Gets the average color from the picture found at a URL
averageColorFromURL
{ "repo_name": "Vauff/Maunz-Discord", "path": "src/com/vauff/maunzdiscord/core/Util.java", "license": "gpl-3.0", "size": 18185 }
[ "java.awt.image.BufferedImage", "java.net.HttpURLConnection", "javax.imageio.ImageIO" ]
import java.awt.image.BufferedImage; import java.net.HttpURLConnection; import javax.imageio.ImageIO;
import java.awt.image.*; import java.net.*; import javax.imageio.*;
[ "java.awt", "java.net", "javax.imageio" ]
java.awt; java.net; javax.imageio;
334,137
@Override public Date getTrustedSigningTime() { logger.info("B_BES signature does not contain OCSP response time or Timestamp to provide trusted signing time"); return null; }
Date function() { logger.info(STR); return null; }
/** * B_BES signature does not contain OCSP response time or Timestamp to provide trusted signing time. * * @return null */
B_BES signature does not contain OCSP response time or Timestamp to provide trusted signing time
getTrustedSigningTime
{ "repo_name": "open-eid/digidoc4j", "path": "digidoc4j/src/main/java/org/digidoc4j/impl/asic/xades/BesSignature.java", "license": "lgpl-2.1", "size": 8200 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,218,844
protected static IMetadataRepository getMetadataRepository(URI metadatarepoUri, IProgressMonitor progressMonitor) throws InstallerException, OperationCanceledException { SubMonitor subMonitor = SubMonitor.convert(progressMonitor); subMonitor.beginTask(InstallerNLS.P2Utilities_Pre...
static IMetadataRepository function(URI metadatarepoUri, IProgressMonitor progressMonitor) throws InstallerException, OperationCanceledException { SubMonitor subMonitor = SubMonitor.convert(progressMonitor); subMonitor.beginTask(InstallerNLS.P2Utilities_Preparing, 100); IMetadataRepository metadataRepository = null; IP...
/** * Retrieves the IMetadataRepository object based on the repository URI * @param metadatarepoUri URI pointing to the MetadataRepository * @param progressMonitor * @return the IMetadataRepository object, if there's no repository on the given URI null will be returned. */
Retrieves the IMetadataRepository object based on the repository URI
getMetadataRepository
{ "repo_name": "rex-xxx/mt6572_x201", "path": "tools/motodev/src/plugins/installer/src/com/motorola/studio/android/installer/utilities/P2Utilities.java", "license": "gpl-2.0", "size": 30284 }
[ "com.motorola.studio.android.installer.InstallerException", "com.motorola.studio.android.installer.i18n.InstallerNLS", "org.eclipse.core.runtime.IProgressMonitor", "org.eclipse.core.runtime.OperationCanceledException", "org.eclipse.core.runtime.SubMonitor", "org.eclipse.equinox.p2.core.IProvisioningAgent"...
import com.motorola.studio.android.installer.InstallerException; import com.motorola.studio.android.installer.i18n.InstallerNLS; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.OperationCanceledException; import org.eclipse.core.runtime.SubMonitor; import org.eclipse.equinox.p2.core.IP...
import com.motorola.studio.android.installer.*; import com.motorola.studio.android.installer.i18n.*; import org.eclipse.core.runtime.*; import org.eclipse.equinox.p2.core.*; import org.eclipse.equinox.p2.repository.metadata.*;
[ "com.motorola.studio", "org.eclipse.core", "org.eclipse.equinox" ]
com.motorola.studio; org.eclipse.core; org.eclipse.equinox;
1,510,395