method stringlengths 13 441k | clean_method stringlengths 7 313k | doc stringlengths 17 17.3k | comment stringlengths 3 1.42k | method_name stringlengths 1 273 | extra dict | imports list | imports_info stringlengths 19 34.8k | cluster_imports_info stringlengths 15 3.66k | libraries list | libraries_info stringlengths 6 661 | id int64 0 2.92M |
|---|---|---|---|---|---|---|---|---|---|---|---|
public Locale getCurrentThreadLocale() {
if (threadLocalLocale != null) {
Locale locale = threadLocalLocale.getThreadLocale();
if (locale != null) return threadLocalLocale.getThreadLocale();
}
return I18nModule.getDefaultLocale();
} | Locale function() { if (threadLocalLocale != null) { Locale locale = threadLocalLocale.getThreadLocale(); if (locale != null) return threadLocalLocale.getThreadLocale(); } return I18nModule.getDefaultLocale(); } | /**
* Get the locale used in the current thread or the default locale if no locale is set. Usually this is the users logged in Locale
*
* @return the locale of this thread
*/ | Get the locale used in the current thread or the default locale if no locale is set. Usually this is the users logged in Locale | getCurrentThreadLocale | {
"repo_name": "RLDevOps/Demo",
"path": "src/main/java/org/olat/core/util/i18n/I18nManager.java",
"license": "apache-2.0",
"size": 82947
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 1,884,550 |
public float reduceProgress() throws IOException; | float function() throws IOException; | /**
* Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
* and 1.0. When all reduce tasks have completed, the function returns 1.0.
*
* @return the progress of the job's reduce-tasks.
* @throws IOException
*/ | Get the progress of the job's reduce-tasks, as a float between 0.0 and 1.0. When all reduce tasks have completed, the function returns 1.0 | reduceProgress | {
"repo_name": "apache/hadoop-common",
"path": "src/mapred/org/apache/hadoop/mapred/RunningJob.java",
"license": "apache-2.0",
"size": 5750
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 238,241 |
public static boolean isSupportedNode(Notifier modelElement) {
return modelElement instanceof Vertex || modelElement instanceof Transition;
} | static boolean function(Notifier modelElement) { return modelElement instanceof Vertex modelElement instanceof Transition; } | /**
* Currently, states (including the initial state) and transitions are
* supported.
*/ | Currently, states (including the initial state) and transitions are supported | isSupportedNode | {
"repo_name": "ELTE-Soft/xUML-RT-Executor",
"path": "plugins/hu.eltesoft.modelexecution.ide.debug/src/hu/eltesoft/modelexecution/ide/debug/util/ModelUtils.java",
"license": "epl-1.0",
"size": 3095
} | [
"org.eclipse.emf.common.notify.Notifier",
"org.eclipse.uml2.uml.Transition",
"org.eclipse.uml2.uml.Vertex"
] | import org.eclipse.emf.common.notify.Notifier; import org.eclipse.uml2.uml.Transition; import org.eclipse.uml2.uml.Vertex; | import org.eclipse.emf.common.notify.*; import org.eclipse.uml2.uml.*; | [
"org.eclipse.emf",
"org.eclipse.uml2"
] | org.eclipse.emf; org.eclipse.uml2; | 900,178 |
protected void addDeleteCascadePropertyDescriptor(Object object) {
itemPropertyDescriptors.add
(createItemPropertyDescriptor
(((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(),
getResourceLocator(),
getString("_UI_ConstraintsType_deleteCascade_feature"),
getString("_UI_Prope... | void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), DbchangelogPackage.eINSTANCE.getConstraintsType_DeleteCascade(), true, false, false, ItemProperty... | /**
* This adds a property descriptor for the Delete Cascade feature.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/ | This adds a property descriptor for the Delete Cascade feature. | addDeleteCascadePropertyDescriptor | {
"repo_name": "dzonekl/LiquibaseEditor",
"path": "plugins/org.liquidbase.model.edit/src/org/liquibase/xml/ns/dbchangelog/provider/ConstraintsTypeItemProvider.java",
"license": "mit",
"size": 16016
} | [
"org.eclipse.emf.edit.provider.ComposeableAdapterFactory",
"org.eclipse.emf.edit.provider.ItemPropertyDescriptor",
"org.liquibase.xml.ns.dbchangelog.DbchangelogPackage"
] | import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.liquibase.xml.ns.dbchangelog.DbchangelogPackage; | import org.eclipse.emf.edit.provider.*; import org.liquibase.xml.ns.dbchangelog.*; | [
"org.eclipse.emf",
"org.liquibase.xml"
] | org.eclipse.emf; org.liquibase.xml; | 1,679,321 |
private static ImportedGradeWrapper parseXls(final InputStream is, final Map<String, String> userMap) throws GbImportExportInvalidColumnException, InvalidFormatException, IOException {
int lineCount = 0;
final List<ImportedGrade> list = new ArrayList<ImportedGrade>();
Map<Integer, ImportColumn> mapping = null... | static ImportedGradeWrapper function(final InputStream is, final Map<String, String> userMap) throws GbImportExportInvalidColumnException, InvalidFormatException, IOException { int lineCount = 0; final List<ImportedGrade> list = new ArrayList<ImportedGrade>(); Map<Integer, ImportColumn> mapping = null; final Workbook w... | /**
* Parse an XLS into a list of ImportedGrade objects Note that only the first sheet of the Excel file is supported.
*
* @param is InputStream of the data to parse
* @return
* @throws IOException
* @throws InvalidFormatException
* @throws GbImportExportInvalidColumnException
*/ | Parse an XLS into a list of ImportedGrade objects Note that only the first sheet of the Excel file is supported | parseXls | {
"repo_name": "Fudan-University/sakai",
"path": "gradebookng/tool/src/java/org/sakaiproject/gradebookng/business/util/ImportGradesHelper.java",
"license": "apache-2.0",
"size": 21483
} | [
"java.io.IOException",
"java.io.InputStream",
"java.util.ArrayList",
"java.util.List",
"java.util.Map",
"org.apache.poi.openxml4j.exceptions.InvalidFormatException",
"org.apache.poi.ss.usermodel.Row",
"org.apache.poi.ss.usermodel.Sheet",
"org.apache.poi.ss.usermodel.Workbook",
"org.apache.poi.ss.u... | import java.io.IOException; import java.io.InputStream; import java.util.ArrayList; import java.util.List; import java.util.Map; import org.apache.poi.openxml4j.exceptions.InvalidFormatException; import org.apache.poi.ss.usermodel.Row; import org.apache.poi.ss.usermodel.Sheet; import org.apache.poi.ss.usermodel.Workboo... | import java.io.*; import java.util.*; import org.apache.poi.openxml4j.exceptions.*; import org.apache.poi.ss.usermodel.*; import org.sakaiproject.gradebookng.business.exception.*; import org.sakaiproject.gradebookng.business.model.*; | [
"java.io",
"java.util",
"org.apache.poi",
"org.sakaiproject.gradebookng"
] | java.io; java.util; org.apache.poi; org.sakaiproject.gradebookng; | 581,087 |
return ScAccountoperatorsUsersCRecord.class;
}
public final TableField<ScAccountoperatorsUsersCRecord, String> ID = createField("id", org.jooq.impl.SQLDataType.VARCHAR.length(36).nullable(false), this, "");
public final TableField<ScAccountoperatorsUsersCRecord, Timestamp> DATE_MODIFIED = create... | return ScAccountoperatorsUsersCRecord.class; } public final TableField<ScAccountoperatorsUsersCRecord, String> ID = createField("id", org.jooq.impl.SQLDataType.VARCHAR.length(36).nullable(false), this, STRdate_modifiedSTRSTRdeletedSTR0STRSTRsc_accountoperators_usersusers_idaSTRSTRsc_accountoperators_userssc_accountoper... | /**
* The class holding records for this type
*/ | The class holding records for this type | getRecordType | {
"repo_name": "SmartMedicalServices/SpringJOOQ",
"path": "src/main/java/com/sms/sis/db/tables/ScAccountoperatorsUsersC.java",
"license": "gpl-3.0",
"size": 4532
} | [
"com.sms.sis.db.tables.records.ScAccountoperatorsUsersCRecord",
"org.jooq.TableField"
] | import com.sms.sis.db.tables.records.ScAccountoperatorsUsersCRecord; import org.jooq.TableField; | import com.sms.sis.db.tables.records.*; import org.jooq.*; | [
"com.sms.sis",
"org.jooq"
] | com.sms.sis; org.jooq; | 451,710 |
public static void setUserAutoloadProject(boolean enable) {
userSettings.getSettings(SettingsConstants.USER_GENERAL_SETTINGS)
.changePropertyValue(SettingsConstants.USER_AUTOLOAD_PROJECT, Boolean.toString(enable));
userSettings.saveSettings(null);
} | static void function(boolean enable) { userSettings.getSettings(SettingsConstants.USER_GENERAL_SETTINGS) .changePropertyValue(SettingsConstants.USER_AUTOLOAD_PROJECT, Boolean.toString(enable)); userSettings.saveSettings(null); } | /**
* Sets whether to use autoloading for the current user.
*
* @param enable true if autoloading should be enabled or false if it should be disabled.
*/ | Sets whether to use autoloading for the current user | setUserAutoloadProject | {
"repo_name": "halatmit/appinventor-sources",
"path": "appinventor/appengine/src/com/google/appinventor/client/Ode.java",
"license": "apache-2.0",
"size": 99070
} | [
"com.google.appinventor.shared.settings.SettingsConstants"
] | import com.google.appinventor.shared.settings.SettingsConstants; | import com.google.appinventor.shared.settings.*; | [
"com.google.appinventor"
] | com.google.appinventor; | 2,042,928 |
private static byte[] generateSeed() {
try {
ByteArrayOutputStream seedBuffer = new ByteArrayOutputStream();
DataOutputStream seedBufferOut =
new DataOutputStream(seedBuffer);
seedBufferOut.writeLong(System.currentTimeMillis());
seedBufferO... | static byte[] function() { try { ByteArrayOutputStream seedBuffer = new ByteArrayOutputStream(); DataOutputStream seedBufferOut = new DataOutputStream(seedBuffer); seedBufferOut.writeLong(System.currentTimeMillis()); seedBufferOut.writeLong(System.nanoTime()); seedBufferOut.writeInt(Process.myPid()); seedBufferOut.writ... | /**
* Generates a device- and invocation-specific seed to be mixed into the
* Linux PRNG.
*/ | Generates a device- and invocation-specific seed to be mixed into the Linux PRNG | generateSeed | {
"repo_name": "GabrielCastro/fanshawe-connect",
"path": "FanshaweConnect/src/main/java/ca/GabrielCastro/fanshaweconnect/util/PRNGFixes.java",
"license": "gpl-2.0",
"size": 13350
} | [
"android.os.Process",
"java.io.ByteArrayOutputStream",
"java.io.DataOutputStream",
"java.io.IOException"
] | import android.os.Process; import java.io.ByteArrayOutputStream; import java.io.DataOutputStream; import java.io.IOException; | import android.os.*; import java.io.*; | [
"android.os",
"java.io"
] | android.os; java.io; | 2,120,306 |
public List<IvyModule> getDisabledModules(boolean disabled) {
if(!disabled && sortedActiveModules!=null)
return sortedActiveModules;
List<IvyModule> r = new ArrayList<IvyModule>();
for (IvyModule m : modules.values()) {
if(m.isDisabled()==disabled)
r.... | List<IvyModule> function(boolean disabled) { if(!disabled && sortedActiveModules!=null) return sortedActiveModules; List<IvyModule> r = new ArrayList<IvyModule>(); for (IvyModule m : modules.values()) { if(m.isDisabled()==disabled) r.add(m); } return r; } | /**
* Possibly empty list of all disabled modules (if disabled==true)
* or all enabeld modules (if disabled==false)
*/ | Possibly empty list of all disabled modules (if disabled==true) or all enabeld modules (if disabled==false) | getDisabledModules | {
"repo_name": "jbexten/plugin-ivy",
"path": "src/main/java/hudson/ivy/IvyModuleSet.java",
"license": "apache-2.0",
"size": 26414
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,858,366 |
protected void serverinfo(final PrintWriter writer) {
if (debug >= 1) {
log("serverinfo");
}
try {
final StringBuffer props = new StringBuffer(100);
props.append("Tomcat Version: ");
props.append(ServerInfo.getServerInfo());
props.append("\nOS Name: ");
props.append(Sys... | void function(final PrintWriter writer) { if (debug >= 1) { log(STR); } try { final StringBuffer props = new StringBuffer(100); props.append(STR); props.append(ServerInfo.getServerInfo()); props.append(STR); props.append(System.getProperty(STR)); props.append(STR); props.append(System.getProperty(STR)); props.append(ST... | /**
* Writes System OS and JVM properties.
*
* @param writer Writer to render to
*/ | Writes System OS and JVM properties | serverinfo | {
"repo_name": "simeshev/parabuild-ci",
"path": "src/org/parabuild/ci/manager/server/ManagerServlet.java",
"license": "lgpl-3.0",
"size": 45315
} | [
"java.io.PrintWriter",
"org.apache.catalina.util.ServerInfo"
] | import java.io.PrintWriter; import org.apache.catalina.util.ServerInfo; | import java.io.*; import org.apache.catalina.util.*; | [
"java.io",
"org.apache.catalina"
] | java.io; org.apache.catalina; | 63,281 |
@MustBeLocked (ELockType.WRITE)
protected final void initialRead () throws DAOException
{
File aFile = null;
final String sFilename = m_aFilenameProvider.get ();
if (sFilename == null)
{
// required for testing
if (!isSilentMode ())
if (LOGGER.isInfoEnabled ())
LOGGER... | @MustBeLocked (ELockType.WRITE) final void function () throws DAOException { File aFile = null; final String sFilename = m_aFilenameProvider.get (); if (sFilename == null) { if (!isSilentMode ()) if (LOGGER.isInfoEnabled ()) LOGGER.info (STR + getClass ().getName () + STR); } else { aFile = getSafeFile (sFilename, EMod... | /**
* Call this method inside the constructor to read the file contents directly.
* This method is write locked!
*
* @throws DAOException
* in case initialization or reading failed!
*/ | Call this method inside the constructor to read the file contents directly. This method is write locked | initialRead | {
"repo_name": "phax/ph-commons",
"path": "ph-dao/src/main/java/com/helger/dao/simple/AbstractSimpleDAO.java",
"license": "apache-2.0",
"size": 24076
} | [
"com.helger.commons.annotation.ELockType",
"com.helger.commons.annotation.MustBeLocked",
"com.helger.commons.datetime.PDTFactory",
"com.helger.commons.state.ESuccess",
"com.helger.commons.timing.StopWatch",
"com.helger.dao.DAOException",
"com.helger.xml.microdom.IMicroDocument",
"com.helger.xml.microd... | import com.helger.commons.annotation.ELockType; import com.helger.commons.annotation.MustBeLocked; import com.helger.commons.datetime.PDTFactory; import com.helger.commons.state.ESuccess; import com.helger.commons.timing.StopWatch; import com.helger.dao.DAOException; import com.helger.xml.microdom.IMicroDocument; impor... | import com.helger.commons.annotation.*; import com.helger.commons.datetime.*; import com.helger.commons.state.*; import com.helger.commons.timing.*; import com.helger.dao.*; import com.helger.xml.microdom.*; import com.helger.xml.microdom.serialize.*; import java.io.*; | [
"com.helger.commons",
"com.helger.dao",
"com.helger.xml",
"java.io"
] | com.helger.commons; com.helger.dao; com.helger.xml; java.io; | 2,092,992 |
public void doBatch_Archive_PreProcess(RunData data, Context context) {
SessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid());
if (!SecurityService.isSuperUser()) {
addAlert(state, rb.getString("archive.batch.auth"));
return;
}
//if we have a s... | void function(RunData data, Context context) { SessionState state = ((JetspeedRunData)data).getPortletSessionState(((JetspeedRunData)data).getJs_peid()); if (!SecurityService.isSuperUser()) { addAlert(state, rb.getString(STR)); return; } String selectedTerm = data.getParameters().getString(STR); log.debug(STR + selecte... | /**
* doImport called when "eventSubmit_doBatch_Archive_PreProcess" is in the request parameters
* to do the prep work for archiving a bunch of sites that match the criteria
*/ | doImport called when "eventSubmit_doBatch_Archive_PreProcess" is in the request parameters to do the prep work for archiving a bunch of sites that match the criteria | doBatch_Archive_PreProcess | {
"repo_name": "whumph/sakai",
"path": "archive/archive-tool/tool/src/java/org/sakaiproject/archive/tool/ArchiveAction.java",
"license": "apache-2.0",
"size": 23970
} | [
"java.util.ArrayList",
"java.util.HashMap",
"java.util.List",
"java.util.Map",
"org.apache.commons.lang.StringUtils",
"org.sakaiproject.archive.tool.model.SparseSite",
"org.sakaiproject.authz.cover.SecurityService",
"org.sakaiproject.cheftool.Context",
"org.sakaiproject.cheftool.JetspeedRunData",
... | import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.apache.commons.lang.StringUtils; import org.sakaiproject.archive.tool.model.SparseSite; import org.sakaiproject.authz.cover.SecurityService; import org.sakaiproject.cheftool.Context; import org.sakaiproject.che... | import java.util.*; import org.apache.commons.lang.*; import org.sakaiproject.archive.tool.model.*; import org.sakaiproject.authz.cover.*; import org.sakaiproject.cheftool.*; import org.sakaiproject.event.api.*; import org.sakaiproject.site.api.*; | [
"java.util",
"org.apache.commons",
"org.sakaiproject.archive",
"org.sakaiproject.authz",
"org.sakaiproject.cheftool",
"org.sakaiproject.event",
"org.sakaiproject.site"
] | java.util; org.apache.commons; org.sakaiproject.archive; org.sakaiproject.authz; org.sakaiproject.cheftool; org.sakaiproject.event; org.sakaiproject.site; | 966,349 |
protected EObject createInitialModel() {
EClass eClass = ExtendedMetaData.INSTANCE.getDocumentRoot(valueSetPackage);
EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(initialObjectCreationPage.getInitialObjectName());
EObject rootObject = valueSetFactory.create(eClass);
rootObject.eSet(eSt... | EObject function() { EClass eClass = ExtendedMetaData.INSTANCE.getDocumentRoot(valueSetPackage); EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(initialObjectCreationPage.getInitialObjectName()); EObject rootObject = valueSetFactory.create(eClass); rootObject.eSet(eStructuralFeature, EcoreUtil.crea... | /**
* Create a new model.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
*
* @generated
*/ | Create a new model. | createInitialModel | {
"repo_name": "drbgfc/mdht",
"path": "cts2/plugins/org.openhealthtools.mdht.cts2.core.editor/src/org/openhealthtools/mdht/cts2/valueset/presentation/ValueSetModelWizard.java",
"license": "epl-1.0",
"size": 19080
} | [
"org.eclipse.emf.ecore.EClass",
"org.eclipse.emf.ecore.EObject",
"org.eclipse.emf.ecore.EStructuralFeature",
"org.eclipse.emf.ecore.util.EcoreUtil",
"org.eclipse.emf.ecore.util.ExtendedMetaData"
] | import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EStructuralFeature; import org.eclipse.emf.ecore.util.EcoreUtil; import org.eclipse.emf.ecore.util.ExtendedMetaData; | import org.eclipse.emf.ecore.*; import org.eclipse.emf.ecore.util.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 207,817 |
@Override
public final void setApplicationContext(final ApplicationContext applicationContext) {
super.setApplicationContext(applicationContext);
final Environment env = applicationContext.getEnvironment();
final String host = env.getRequiredProperty("cm.url");
final S... | final void function(final ApplicationContext applicationContext) { super.setApplicationContext(applicationContext); final Environment env = applicationContext.getEnvironment(); final String host = env.getRequiredProperty(STR); final String productTokenString = env.getRequiredProperty(STR); final String sender = env.get... | /**
* Build the URI of the CM Component based on Environmental properties
*/ | Build the URI of the CM Component based on Environmental properties | setApplicationContext | {
"repo_name": "oalles/camel-cm",
"path": "src/test/java/org/apache/camel/component/cm/test/CamelTestConfiguration.java",
"license": "apache-2.0",
"size": 4039
} | [
"org.springframework.context.ApplicationContext",
"org.springframework.core.env.Environment"
] | import org.springframework.context.ApplicationContext; import org.springframework.core.env.Environment; | import org.springframework.context.*; import org.springframework.core.env.*; | [
"org.springframework.context",
"org.springframework.core"
] | org.springframework.context; org.springframework.core; | 2,485,857 |
public static MessageContext toMessageContext(StorableMessage message,
org.apache.axis2.context.MessageContext axis2Ctx,
MessageContext synCtx) {
if (message == null) {
logger.error("Cannot create... | static MessageContext function(StorableMessage message, org.apache.axis2.context.MessageContext axis2Ctx, MessageContext synCtx) { if (message == null) { logger.error(STR); return null; } AxisConfiguration axisConfig = axis2Ctx.getConfigurationContext().getAxisConfiguration(); if (axisConfig == null) { logger.warn(STR)... | /**
* Converts a message read from the message store to a Synapse Message Context object.
* @param message Message from the message store
* @param axis2Ctx Final Axis2 Message Context
* @param synCtx Final Synapse message Context
* @return Final Synapse Message Context
*/ | Converts a message read from the message store to a Synapse Message Context object | toMessageContext | {
"repo_name": "maheshika/wso2-synapse",
"path": "modules/core/src/main/java/org/apache/synapse/message/store/impl/jms/MessageConverter.java",
"license": "apache-2.0",
"size": 21211
} | [
"java.io.ByteArrayInputStream",
"java.util.ArrayList",
"java.util.Iterator",
"java.util.Map",
"org.apache.axiom.om.OMElement",
"org.apache.axiom.om.impl.builder.StAXOMBuilder",
"org.apache.axiom.soap.SOAPEnvelope",
"org.apache.axis2.addressing.EndpointReference",
"org.apache.axis2.addressing.Relates... | import java.io.ByteArrayInputStream; import java.util.ArrayList; import java.util.Iterator; import java.util.Map; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.impl.builder.StAXOMBuilder; import org.apache.axiom.soap.SOAPEnvelope; import org.apache.axis2.addressing.EndpointReference; import org.apach... | import java.io.*; import java.util.*; import org.apache.axiom.om.*; import org.apache.axiom.om.impl.builder.*; import org.apache.axiom.soap.*; import org.apache.axis2.addressing.*; import org.apache.axis2.context.*; import org.apache.axis2.description.*; import org.apache.axis2.engine.*; import org.apache.synapse.*; im... | [
"java.io",
"java.util",
"org.apache.axiom",
"org.apache.axis2",
"org.apache.synapse"
] | java.io; java.util; org.apache.axiom; org.apache.axis2; org.apache.synapse; | 2,229,918 |
public void addSetterComment(Method method, FullyQualifiedTable table, String columnName) {
StringBuilder sb = new StringBuilder();
method.addJavaDocLine(""); //$NON-NLS-1$
}
| void function(Method method, FullyQualifiedTable table, String columnName) { StringBuilder sb = new StringBuilder(); method.addJavaDocLine(""); } | /**
* Method from the old version of the interface.
*
* TODO - remove in release 1.2.3
*
* @deprecated as of version 1.2.2.
* @see CopyOfDefaultCommentGenerator#addSetterComment(Method, IntrospectedTable, IntrospectedColumn)
*/ | Method from the old version of the interface. TODO - remove in release 1.2.3 | addSetterComment | {
"repo_name": "xyz-dev/ibator122",
"path": "src/main/java/org/apache/ibatis/ibator/internal/CopyOfDefaultCommentGenerator.java",
"license": "apache-2.0",
"size": 13899
} | [
"org.apache.ibatis.ibator.api.FullyQualifiedTable",
"org.apache.ibatis.ibator.api.dom.java.Method"
] | import org.apache.ibatis.ibator.api.FullyQualifiedTable; import org.apache.ibatis.ibator.api.dom.java.Method; | import org.apache.ibatis.ibator.api.*; import org.apache.ibatis.ibator.api.dom.java.*; | [
"org.apache.ibatis"
] | org.apache.ibatis; | 202,440 |
public static void checkArgument(boolean b, @Nullable String errorMessageTemplate, int p1) {
if (!b) {
throw new IllegalArgumentException(format(errorMessageTemplate, p1));
}
} | static void function(boolean b, @Nullable String errorMessageTemplate, int p1) { if (!b) { throw new IllegalArgumentException(format(errorMessageTemplate, p1)); } } | /**
* Ensures the truth of an expression involving one or more parameters to the calling method.
*
* <p>See {@link #checkArgument(boolean, String, Object...)} for details.
*/ | Ensures the truth of an expression involving one or more parameters to the calling method. See <code>#checkArgument(boolean, String, Object...)</code> for details | checkArgument | {
"repo_name": "jakubmalek/guava",
"path": "guava/src/com/google/common/base/Preconditions.java",
"license": "apache-2.0",
"size": 51675
} | [
"javax.annotation.Nullable"
] | import javax.annotation.Nullable; | import javax.annotation.*; | [
"javax.annotation"
] | javax.annotation; | 1,514,768 |
public void store(OutputStream stream, String comments) throws IOException {
CustomProperties customProperties = new CustomProperties(this.properties);
if (suppressDate) {
customProperties.store(
new DateSuppressingPropertiesBufferedWriter(new OutputStreamWriter(stream, "8859_1")), comments);
} else {
... | void function(OutputStream stream, String comments) throws IOException { CustomProperties customProperties = new CustomProperties(this.properties); if (suppressDate) { customProperties.store( new DateSuppressingPropertiesBufferedWriter(new OutputStreamWriter(stream, STR)), comments); } else { customProperties.store(str... | /**
* See {@link Properties#store(OutputStream, String)}.
*/ | See <code>Properties#store(OutputStream, String)</code> | store | {
"repo_name": "bladecoder/bladecoder-adventure-engine",
"path": "adventure-editor/src/main/java/com/bladecoder/engineeditor/common/OrderedProperties.java",
"license": "apache-2.0",
"size": 16457
} | [
"java.io.IOException",
"java.io.OutputStream",
"java.io.OutputStreamWriter"
] | import java.io.IOException; import java.io.OutputStream; import java.io.OutputStreamWriter; | import java.io.*; | [
"java.io"
] | java.io; | 83,753 |
public void setSwipeThreshold(float swipeThreshold) {
this.swipeThreshold = swipeThreshold;
}
class AnimatePanX implements Animation {
private Motion motion;
private Image replaceImage;
private int updatePos;
public AnimatePanX(float destPan, Image replaceImage, ... | void function(float swipeThreshold) { this.swipeThreshold = swipeThreshold; } class AnimatePanX implements Animation { private Motion motion; private Image replaceImage; private int updatePos; public AnimatePanX(float destPan, Image replaceImage, int updatePos) { motion = Motion.createEaseInOutMotion((int)(panPositionX... | /**
* The swipe threshold is a number between 0 and 1 that indicates the threshold
* after which the swiped image moves to the next image. Below that number the image
* will bounce back
* @param swipeThreshold the swipeThreshold to set
*/ | The swipe threshold is a number between 0 and 1 that indicates the threshold after which the swiped image moves to the next image. Below that number the image will bounce back | setSwipeThreshold | {
"repo_name": "saeder/CodenameOne",
"path": "CodenameOne/src/com/codename1/components/ImageViewer.java",
"license": "gpl-2.0",
"size": 36773
} | [
"com.codename1.ui.Display",
"com.codename1.ui.Image",
"com.codename1.ui.animations.Animation",
"com.codename1.ui.animations.Motion"
] | import com.codename1.ui.Display; import com.codename1.ui.Image; import com.codename1.ui.animations.Animation; import com.codename1.ui.animations.Motion; | import com.codename1.ui.*; import com.codename1.ui.animations.*; | [
"com.codename1.ui"
] | com.codename1.ui; | 2,766,550 |
private Matrix differentiateNonlinearity(Matrix linearOut,
IgniteDifferentiableDoubleToDoubleFunction nonlinearity) {
Matrix diff = linearOut.copy();
diff.map(nonlinearity::differential);
return diff;
} | Matrix function(Matrix linearOut, IgniteDifferentiableDoubleToDoubleFunction nonlinearity) { Matrix diff = linearOut.copy(); diff.map(nonlinearity::differential); return diff; } | /**
* Differentiate nonlinearity.
*
* @param linearOut Linear output of current layer.
* @param nonlinearity Nonlinearity of current layer.
* @return Gradients matrix.
*/ | Differentiate nonlinearity | differentiateNonlinearity | {
"repo_name": "ilantukh/ignite",
"path": "modules/ml/src/main/java/org/apache/ignite/ml/nn/MultilayerPerceptron.java",
"license": "apache-2.0",
"size": 20059
} | [
"org.apache.ignite.ml.math.functions.IgniteDifferentiableDoubleToDoubleFunction",
"org.apache.ignite.ml.math.primitives.matrix.Matrix"
] | import org.apache.ignite.ml.math.functions.IgniteDifferentiableDoubleToDoubleFunction; import org.apache.ignite.ml.math.primitives.matrix.Matrix; | import org.apache.ignite.ml.math.functions.*; import org.apache.ignite.ml.math.primitives.matrix.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 408,872 |
ReportFormat getReportFormat(String format); | ReportFormat getReportFormat(String format); | /**
* Finds report format and checks whether it's valid
*
* @param format ReportFormat
*/ | Finds report format and checks whether it's valid | getReportFormat | {
"repo_name": "reportportal/service-api",
"path": "src/main/java/com/epam/ta/reportportal/core/jasper/GetJasperReportHandler.java",
"license": "apache-2.0",
"size": 1932
} | [
"com.epam.ta.reportportal.entity.jasper.ReportFormat"
] | import com.epam.ta.reportportal.entity.jasper.ReportFormat; | import com.epam.ta.reportportal.entity.jasper.*; | [
"com.epam.ta"
] | com.epam.ta; | 1,209,912 |
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
closeButton = new javax.swing.JButton();
jScrollPane1 = new javax.swing.JScrollPane();
jTable1 = new javax.swing.JTable();
... | @SuppressWarnings(STR) void function() { closeButton = new javax.swing.JButton(); jScrollPane1 = new javax.swing.JScrollPane(); jTable1 = new javax.swing.JTable(); jLabel1 = new javax.swing.JLabel(); jStockValue = new javax.swing.JTextField(); setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); java... | /** 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.
*/ | This method is called from within the constructor to initialize the form. always regenerated by the Form Editor | initComponents | {
"repo_name": "proffitcenter/proffittcenter",
"path": "StockByValueDepartmets.java",
"license": "gpl-3.0",
"size": 15297
} | [
"java.util.ResourceBundle"
] | import java.util.ResourceBundle; | import java.util.*; | [
"java.util"
] | java.util; | 172,926 |
public JobSubmissionResult run(PackagedProgram prog, int parallelism)
throws ProgramInvocationException, ProgramMissingJobException {
Thread.currentThread().setContextClassLoader(prog.getUserCodeClassLoader());
if (prog.isUsingProgramEntryPoint()) {
final JobWithJars jobWithJars;
if (hasUserJarsInClass... | JobSubmissionResult function(PackagedProgram prog, int parallelism) throws ProgramInvocationException, ProgramMissingJobException { Thread.currentThread().setContextClassLoader(prog.getUserCodeClassLoader()); if (prog.isUsingProgramEntryPoint()) { final JobWithJars jobWithJars; if (hasUserJarsInClassPath(prog.getAllLib... | /**
* General purpose method to run a user jar from the CliFrontend in either blocking or detached mode, depending
* on whether {@code setDetached(true)} or {@code setDetached(false)}.
* @param prog the packaged program
* @param parallelism the parallelism to execute the contained Flink job
* @return The resu... | General purpose method to run a user jar from the CliFrontend in either blocking or detached mode, depending on whether setDetached(true) or setDetached(false) | run | {
"repo_name": "zhangminglei/flink",
"path": "flink-clients/src/main/java/org/apache/flink/client/program/ClusterClient.java",
"license": "apache-2.0",
"size": 41128
} | [
"java.util.Collections",
"java.util.List",
"org.apache.flink.api.common.JobSubmissionResult"
] | import java.util.Collections; import java.util.List; import org.apache.flink.api.common.JobSubmissionResult; | import java.util.*; import org.apache.flink.api.common.*; | [
"java.util",
"org.apache.flink"
] | java.util; org.apache.flink; | 626,961 |
@WebMethod
@WebResult(name = "rval", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505")
@RequestWrapper(localName = "getPreviewUrl", targetNamespace = "https://www.google.com/apis/ads/publisher/v201505", className = "com.google.api.ads.dfp.jaxws.v201505.LineItemCreativeAssociationService... | @WebResult(name = "rval", targetNamespace = STRgetPreviewUrlSTRhttps: @ResponseWrapper(localName = "getPreviewUrlResponseSTRhttps: String function( @WebParam(name = "lineItemIdSTRhttps: Long lineItemId, @WebParam(name = "creativeIdSTRhttps: Long creativeId, @WebParam(name = "siteUrlSTRhttps: String siteUrl) throws ApiE... | /**
*
* Returns an insite preview URL that references the specified site URL with
* the specified creative from the association served to it. For Creative Set
* previewing you may specify the master creative Id.
*
* @param lineItemId the ID of the ... | Returns an insite preview URL that references the specified site URL with the specified creative from the association served to it. For Creative Set previewing you may specify the master creative Id | getPreviewUrl | {
"repo_name": "stoksey69/googleads-java-lib",
"path": "modules/dfp_appengine/src/main/java/com/google/api/ads/dfp/jaxws/v201505/LineItemCreativeAssociationServiceInterface.java",
"license": "apache-2.0",
"size": 11100
} | [
"javax.jws.WebParam",
"javax.jws.WebResult",
"javax.xml.ws.ResponseWrapper"
] | import javax.jws.WebParam; import javax.jws.WebResult; import javax.xml.ws.ResponseWrapper; | import javax.jws.*; import javax.xml.ws.*; | [
"javax.jws",
"javax.xml"
] | javax.jws; javax.xml; | 1,793,595 |
@Override
public ImmutableList<Element> toElementList(final ImmutableList<Ds3Element> ds3Elements) {
if (isEmpty(ds3Elements)) {
return ImmutableList.of();
}
final ImmutableList.Builder<Element> builder = ImmutableList.builder();
for (final Ds3Element ds3Element : ds3... | ImmutableList<Element> function(final ImmutableList<Ds3Element> ds3Elements) { if (isEmpty(ds3Elements)) { return ImmutableList.of(); } final ImmutableList.Builder<Element> builder = ImmutableList.builder(); for (final Ds3Element ds3Element : ds3Elements) { builder.add(toElement(ds3Element)); } return builder.build(); ... | /**
* Converts a list of Ds3Elements into a list of Element models
* @param ds3Elements A list of Ds3Elements
* @return A list of Element models
*/ | Converts a list of Ds3Elements into a list of Element models | toElementList | {
"repo_name": "RachelTucker/ds3_autogen",
"path": "ds3-autogen-java/src/main/java/com/spectralogic/ds3autogen/java/generators/typemodels/BaseTypeGenerator.java",
"license": "apache-2.0",
"size": 8268
} | [
"com.google.common.collect.ImmutableList",
"com.spectralogic.ds3autogen.api.models.apispec.Ds3Element",
"com.spectralogic.ds3autogen.java.models.Element"
] | import com.google.common.collect.ImmutableList; import com.spectralogic.ds3autogen.api.models.apispec.Ds3Element; import com.spectralogic.ds3autogen.java.models.Element; | import com.google.common.collect.*; import com.spectralogic.ds3autogen.api.models.apispec.*; import com.spectralogic.ds3autogen.java.models.*; | [
"com.google.common",
"com.spectralogic.ds3autogen"
] | com.google.common; com.spectralogic.ds3autogen; | 686,081 |
int getNumRegions(TableName table) throws IOException {
List<HRegionInfo> regions = this.conn.getAdmin().getTableRegions(table);
if (regions == null) {
return 0;
}
return regions.size();
} | int getNumRegions(TableName table) throws IOException { List<HRegionInfo> regions = this.conn.getAdmin().getTableRegions(table); if (regions == null) { return 0; } return regions.size(); } | /**
* Computes the total number of regions in a table.
*/ | Computes the total number of regions in a table | getNumRegions | {
"repo_name": "gustavoanatoly/hbase",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/quotas/QuotaObserverChore.java",
"license": "apache-2.0",
"size": 30902
} | [
"java.io.IOException",
"java.util.List",
"org.apache.hadoop.hbase.HRegionInfo",
"org.apache.hadoop.hbase.TableName"
] | import java.io.IOException; import java.util.List; import org.apache.hadoop.hbase.HRegionInfo; import org.apache.hadoop.hbase.TableName; | import java.io.*; import java.util.*; import org.apache.hadoop.hbase.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,236,998 |
@Test
public void testQueryByAssigneeExcludeSubtasksOrdered() throws Exception {
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy hh:mm:ss.SSS");
// gonzo has 2 root tasks and 3+2 subtasks assigned
// include subtasks
TaskQuery query = taskService.createTaskQuery().taskAs... | void function() throws Exception { SimpleDateFormat sdf = new SimpleDateFormat(STR); TaskQuery query = taskService.createTaskQuery().taskAssignee("gonzo").orderByTaskCreateTime().desc(); assertThat(query.count()).isEqualTo(7); assertThat(query.list()).hasSize(7); assertThat(query.list().get(0).getCreateTime()).isEqualT... | /**
* test for task inclusion/exclusion when additional filter is specified (like assignee), ordered.
*/ | test for task inclusion/exclusion when additional filter is specified (like assignee), ordered | testQueryByAssigneeExcludeSubtasksOrdered | {
"repo_name": "paulstapleton/flowable-engine",
"path": "modules/flowable-engine/src/test/java/org/flowable/engine/test/api/task/SubTaskQueryTest.java",
"license": "apache-2.0",
"size": 14130
} | [
"java.text.SimpleDateFormat",
"org.assertj.core.api.Assertions",
"org.flowable.task.api.TaskQuery"
] | import java.text.SimpleDateFormat; import org.assertj.core.api.Assertions; import org.flowable.task.api.TaskQuery; | import java.text.*; import org.assertj.core.api.*; import org.flowable.task.api.*; | [
"java.text",
"org.assertj.core",
"org.flowable.task"
] | java.text; org.assertj.core; org.flowable.task; | 2,108,459 |
void attach(final ArduinoReader reader) throws IOException {
try {
serialPort.addEventListener(reader);
serialPort.notifyOnDataAvailable(true);
} catch (final TooManyListenersException e) {
throw new IOException(e);
}
} | void attach(final ArduinoReader reader) throws IOException { try { serialPort.addEventListener(reader); serialPort.notifyOnDataAvailable(true); } catch (final TooManyListenersException e) { throw new IOException(e); } } | /**
* Attach an event listener to the serial port object.
*
* @param reader handles serial port events
* @throws IOException if there are already listeners connected.
*/ | Attach an event listener to the serial port object | attach | {
"repo_name": "EasternEdgeRobotics/2016",
"path": "src/main/java/com/easternedgerobotics/rov/io/arduino/ArduinoPort.java",
"license": "mit",
"size": 4320
} | [
"java.io.IOException",
"java.util.TooManyListenersException"
] | import java.io.IOException; import java.util.TooManyListenersException; | import java.io.*; import java.util.*; | [
"java.io",
"java.util"
] | java.io; java.util; | 672,877 |
public NodeRef getNodeRef() {
return new NodeRef(getNodeIdentifier());
} | NodeRef function() { return new NodeRef(getNodeIdentifier()); } | /**
* Return a {@link NodeRef} instance corresponding to this instance.
*
* @return An {@link NodeRef} instance.
*/ | Return a <code>NodeRef</code> instance corresponding to this instance | getNodeRef | {
"repo_name": "opendaylight/vtn",
"path": "manager/implementation/src/main/java/org/opendaylight/vtn/manager/internal/util/inventory/SalNode.java",
"license": "epl-1.0",
"size": 13071
} | [
"org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef"
] | import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeRef; | import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.*; | [
"org.opendaylight.yang"
] | org.opendaylight.yang; | 1,710,846 |
//-----------------------------------------------------------------------
public final MetaProperty<Currency> currency() {
return _currency;
} | final MetaProperty<Currency> function() { return _currency; } | /**
* The meta-property for the {@code currency} property.
* @return the meta-property, not null
*/ | The meta-property for the currency property | currency | {
"repo_name": "jeorme/OG-Platform",
"path": "projects/OG-FinancialTypes/src/main/java/com/opengamma/financial/security/cash/CashBalanceSecurity.java",
"license": "apache-2.0",
"size": 8697
} | [
"com.opengamma.util.money.Currency",
"org.joda.beans.MetaProperty"
] | import com.opengamma.util.money.Currency; import org.joda.beans.MetaProperty; | import com.opengamma.util.money.*; import org.joda.beans.*; | [
"com.opengamma.util",
"org.joda.beans"
] | com.opengamma.util; org.joda.beans; | 826,227 |
public PercolateRequest preference(String preference) {
this.preference = preference;
return this;
}
/**
* Getter for {@link #getRequest(GetRequest)} | PercolateRequest function(String preference) { this.preference = preference; return this; } /** * Getter for {@link #getRequest(GetRequest)} | /**
* Sets the preference to execute the search. Defaults to randomize across shards. Can be set to
* <tt>_local</tt> to prefer local shards, <tt>_primary</tt> to execute only on primary shards, or
* a custom value, which guarantees that the same order will be used across different requests.
*/ | Sets the preference to execute the search. Defaults to randomize across shards. Can be set to _local to prefer local shards, _primary to execute only on primary shards, or a custom value, which guarantees that the same order will be used across different requests | preference | {
"repo_name": "danielmitterdorfer/elasticsearch",
"path": "modules/percolator/src/main/java/org/elasticsearch/percolator/PercolateRequest.java",
"license": "apache-2.0",
"size": 9171
} | [
"org.elasticsearch.action.get.GetRequest"
] | import org.elasticsearch.action.get.GetRequest; | import org.elasticsearch.action.get.*; | [
"org.elasticsearch.action"
] | org.elasticsearch.action; | 2,438,392 |
@Test
public void testRBWReplicas() throws IOException {
if(LOG.isDebugEnabled()) {
LOG.debug("Running " + GenericTestUtils.getMethodName());
}
ReplicaRecoveryInfo replica1 = new ReplicaRecoveryInfo(BLOCK_ID,
REPLICA_LEN1, GEN_STAMP-1, ReplicaState.RBW);
ReplicaRecoveryInfo replica2 =... | void function() throws IOException { if(LOG.isDebugEnabled()) { LOG.debug(STR + GenericTestUtils.getMethodName()); } ReplicaRecoveryInfo replica1 = new ReplicaRecoveryInfo(BLOCK_ID, REPLICA_LEN1, GEN_STAMP-1, ReplicaState.RBW); ReplicaRecoveryInfo replica2 = new ReplicaRecoveryInfo(BLOCK_ID, REPLICA_LEN2, GEN_STAMP-2, ... | /**
* BlockRecovery_02.11.
* Two replicas are RBW.
* @throws IOException in case of an error
*/ | BlockRecovery_02.11. Two replicas are RBW | testRBWReplicas | {
"repo_name": "Nextzero/hadoop-2.6.0-cdh5.4.3",
"path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/datanode/TestBlockRecovery.java",
"license": "apache-2.0",
"size": 24984
} | [
"java.io.IOException",
"org.apache.hadoop.hdfs.server.common.HdfsServerConstants",
"org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol",
"org.apache.hadoop.hdfs.server.protocol.ReplicaRecoveryInfo",
"org.apache.hadoop.test.GenericTestUtils",
"org.mockito.Mockito"
] | import java.io.IOException; import org.apache.hadoop.hdfs.server.common.HdfsServerConstants; import org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol; import org.apache.hadoop.hdfs.server.protocol.ReplicaRecoveryInfo; import org.apache.hadoop.test.GenericTestUtils; import org.mockito.Mockito; | import java.io.*; import org.apache.hadoop.hdfs.server.common.*; import org.apache.hadoop.hdfs.server.protocol.*; import org.apache.hadoop.test.*; import org.mockito.*; | [
"java.io",
"org.apache.hadoop",
"org.mockito"
] | java.io; org.apache.hadoop; org.mockito; | 214,381 |
public void setCardCycleVolumeLimit(String cardCycleVolumeLimit) {
if (StringUtils.isNotBlank(cardCycleVolumeLimit)) {
this.cardCycleVolumeLimit = new KualiDecimal(cardCycleVolumeLimit);
}
else {
this.cardCycleVolumeLimit = KualiDecimal.ZERO;
}
}
... | void function(String cardCycleVolumeLimit) { if (StringUtils.isNotBlank(cardCycleVolumeLimit)) { this.cardCycleVolumeLimit = new KualiDecimal(cardCycleVolumeLimit); } else { this.cardCycleVolumeLimit = KualiDecimal.ZERO; } } | /**
* Sets the cardCycleVolumeLimit attribute.
*
* @param cardCycleVolumeLimit The cardCycleVolumeLimit to set.
*/ | Sets the cardCycleVolumeLimit attribute | setCardCycleVolumeLimit | {
"repo_name": "ua-eas/ua-kfs-5.3",
"path": "work/src/org/kuali/kfs/fp/businessobject/ProcurementCardTransaction.java",
"license": "agpl-3.0",
"size": 36114
} | [
"org.apache.commons.lang.StringUtils",
"org.kuali.rice.core.api.util.type.KualiDecimal"
] | import org.apache.commons.lang.StringUtils; import org.kuali.rice.core.api.util.type.KualiDecimal; | import org.apache.commons.lang.*; import org.kuali.rice.core.api.util.type.*; | [
"org.apache.commons",
"org.kuali.rice"
] | org.apache.commons; org.kuali.rice; | 2,696,973 |
protected PropertyState checkProperty(String propertyId) throws XMLConfigurationException {
//
// Xerces Properties
//
if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) {
final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length()... | PropertyState function(String propertyId) throws XMLConfigurationException { if (propertyId.startsWith(Constants.XERCES_PROPERTY_PREFIX)) { final int suffixLength = propertyId.length() - Constants.XERCES_PROPERTY_PREFIX.length(); if (suffixLength == Constants.DTD_SCANNER_PROPERTY.length() && propertyId.endsWith(Constan... | /**
* Check a property. If the property is know and supported, this method
* simply returns. Otherwise, the appropriate exception is thrown.
*
* @param propertyId The unique identifier (URI) of the property
* being set.
*
* @throws XMLConfigurationException Thrown fo... | Check a property. If the property is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown | checkProperty | {
"repo_name": "shun634501730/java_source_cn",
"path": "src_en/com/sun/org/apache/xerces/internal/parsers/XML11Configuration.java",
"license": "apache-2.0",
"size": 64548
} | [
"com.sun.org.apache.xerces.internal.impl.Constants",
"com.sun.org.apache.xerces.internal.util.PropertyState",
"com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException"
] | import com.sun.org.apache.xerces.internal.impl.Constants; import com.sun.org.apache.xerces.internal.util.PropertyState; import com.sun.org.apache.xerces.internal.xni.parser.XMLConfigurationException; | import com.sun.org.apache.xerces.internal.impl.*; import com.sun.org.apache.xerces.internal.util.*; import com.sun.org.apache.xerces.internal.xni.parser.*; | [
"com.sun.org"
] | com.sun.org; | 115,771 |
public synchronized XBridge[] getExistingBridges() throws com.sun.star.uno.RuntimeException {
ArrayList<XBridge> vector = new ArrayList<XBridge>();
IBridge iBridges[] = UnoRuntime.getBridges();
for(int i = 0; i < iBridges.length; ++ i) {
XBridge xBridge = UnoRuntime.queryInterfa... | synchronized XBridge[] function() throws com.sun.star.uno.RuntimeException { ArrayList<XBridge> vector = new ArrayList<XBridge>(); IBridge iBridges[] = UnoRuntime.getBridges(); for(int i = 0; i < iBridges.length; ++ i) { XBridge xBridge = UnoRuntime.queryInterface(XBridge.class, iBridges[i]); if(xBridge != null) vector... | /**
* Gives all created bridges.
*
* @return the bridges.
* @see com.sun.star.bridge.XBridgeFactory
*/ | Gives all created bridges | getExistingBridges | {
"repo_name": "beppec56/core",
"path": "jurt/com/sun/star/comp/bridgefactory/BridgeFactory.java",
"license": "gpl-3.0",
"size": 7935
} | [
"com.sun.star.bridge.XBridge",
"com.sun.star.uno.IBridge",
"com.sun.star.uno.UnoRuntime",
"java.math.BigInteger",
"java.util.ArrayList"
] | import com.sun.star.bridge.XBridge; import com.sun.star.uno.IBridge; import com.sun.star.uno.UnoRuntime; import java.math.BigInteger; import java.util.ArrayList; | import com.sun.star.bridge.*; import com.sun.star.uno.*; import java.math.*; import java.util.*; | [
"com.sun.star",
"java.math",
"java.util"
] | com.sun.star; java.math; java.util; | 1,786,678 |
RelDataType getResultType(String sql); | RelDataType getResultType(String sql); | /**
* Returns the data type of the row returned by a SQL query.
*
* <p>For example, <code>getResultType("VALUES (1, 'foo')")</code>
* returns <code>RecordType(INTEGER EXPR$0, CHAR(3) EXPR#1)</code>.
*/ | Returns the data type of the row returned by a SQL query. For example, <code>getResultType("VALUES (1, 'foo')")</code> returns <code>RecordType(INTEGER EXPR$0, CHAR(3) EXPR#1)</code> | getResultType | {
"repo_name": "googleinterns/calcite",
"path": "core/src/test/java/org/apache/calcite/test/SqlValidatorTestCase.java",
"license": "apache-2.0",
"size": 15743
} | [
"org.apache.calcite.rel.type.RelDataType"
] | import org.apache.calcite.rel.type.RelDataType; | import org.apache.calcite.rel.type.*; | [
"org.apache.calcite"
] | org.apache.calcite; | 712,364 |
public void registerAuthAndAuditEvent(Table table, Privilege priv) {
// Add access event for auditing.
if (table instanceof View) {
View view = (View) table;
Preconditions.checkState(!view.isLocalView());
addAccessEvent(new TAccessEvent(
table.getFullName(), TCatalogObjectType.VIEW... | void function(Table table, Privilege priv) { if (table instanceof View) { View view = (View) table; Preconditions.checkState(!view.isLocalView()); addAccessEvent(new TAccessEvent( table.getFullName(), TCatalogObjectType.VIEW, priv.toString())); } else { addAccessEvent(new TAccessEvent( table.getFullName(), TCatalogObje... | /**
* Registers a table-level privilege request and an access event for auditing
* for the given table and privilege. The table must be a base table or a
* catalog view (not a local view).
*/ | Registers a table-level privilege request and an access event for auditing for the given table and privilege. The table must be a base table or a catalog view (not a local view) | registerAuthAndAuditEvent | {
"repo_name": "michaelhkw/incubator-impala",
"path": "fe/src/main/java/org/apache/impala/analysis/Analyzer.java",
"license": "apache-2.0",
"size": 126520
} | [
"com.google.common.base.Preconditions",
"org.apache.impala.authorization.Privilege",
"org.apache.impala.authorization.PrivilegeRequestBuilder",
"org.apache.impala.catalog.Table",
"org.apache.impala.catalog.View",
"org.apache.impala.thrift.TAccessEvent",
"org.apache.impala.thrift.TCatalogObjectType",
"... | import com.google.common.base.Preconditions; import org.apache.impala.authorization.Privilege; import org.apache.impala.authorization.PrivilegeRequestBuilder; import org.apache.impala.catalog.Table; import org.apache.impala.catalog.View; import org.apache.impala.thrift.TAccessEvent; import org.apache.impala.thrift.TCat... | import com.google.common.base.*; import org.apache.impala.authorization.*; import org.apache.impala.catalog.*; import org.apache.impala.thrift.*; import org.apache.impala.util.*; | [
"com.google.common",
"org.apache.impala"
] | com.google.common; org.apache.impala; | 2,788,928 |
public void typeSystemInit(TypeSystem typeSystem)
throws AnalysisEngineProcessException {
mSentenceType = AnnotatorUtil.getRequiredTypeParameter(context, typeSystem,
UimaUtil.SENTENCE_TYPE_PARAMETER);
mTokenType = AnnotatorUtil.getRequiredTypeParameter(context, typeSystem,
UimaUtil.TOK... | void function(TypeSystem typeSystem) throws AnalysisEngineProcessException { mSentenceType = AnnotatorUtil.getRequiredTypeParameter(context, typeSystem, UimaUtil.SENTENCE_TYPE_PARAMETER); mTokenType = AnnotatorUtil.getRequiredTypeParameter(context, typeSystem, UimaUtil.TOKEN_TYPE_PARAMETER); mParseType = AnnotatorUtil.... | /**
* Initializes the type system.
*/ | Initializes the type system | typeSystemInit | {
"repo_name": "SowaLabs/OpenNLP",
"path": "opennlp-uima/src/main/java/opennlp/uima/parser/Parser.java",
"license": "apache-2.0",
"size": 11022
} | [
"org.apache.uima.analysis_engine.AnalysisEngineProcessException",
"org.apache.uima.cas.TypeSystem"
] | import org.apache.uima.analysis_engine.AnalysisEngineProcessException; import org.apache.uima.cas.TypeSystem; | import org.apache.uima.analysis_engine.*; import org.apache.uima.cas.*; | [
"org.apache.uima"
] | org.apache.uima; | 2,289,886 |
void next() {
Iterator<Year> it = years.values().iterator();
while (it.hasNext()) {
if (currentYear == it.next() && it.hasNext()) {
// go to the next year
currentYear = it.next();
break;
}
}
} | void next() { Iterator<Year> it = years.values().iterator(); while (it.hasNext()) { if (currentYear == it.next() && it.hasNext()) { currentYear = it.next(); break; } } } | /**
* Go to the next year in the model
*/ | Go to the next year in the model | next | {
"repo_name": "huihoo/olat",
"path": "olat7.8/src/main/java/org/olat/presentation/webfeed/navigation/YearNavigationModel.java",
"license": "apache-2.0",
"size": 5753
} | [
"java.util.Iterator"
] | import java.util.Iterator; | import java.util.*; | [
"java.util"
] | java.util; | 760,070 |
public DualListModel<Student> getGroupMembers() {
return groupMembers;
} | DualListModel<Student> function() { return groupMembers; } | /**
* Returns the group members for the current course.
*
* @return List of group members.
*/ | Returns the group members for the current course | getGroupMembers | {
"repo_name": "stefanoberdoerfer/exmatrikulator",
"path": "src/main/java/de/unibremen/opensores/controller/tutorial/TutorialController.java",
"license": "agpl-3.0",
"size": 25618
} | [
"de.unibremen.opensores.model.Student",
"org.primefaces.model.DualListModel"
] | import de.unibremen.opensores.model.Student; import org.primefaces.model.DualListModel; | import de.unibremen.opensores.model.*; import org.primefaces.model.*; | [
"de.unibremen.opensores",
"org.primefaces.model"
] | de.unibremen.opensores; org.primefaces.model; | 1,576,099 |
NumberDataValue getDataValue(float value, NumberDataValue previous)
throws StandardException; | NumberDataValue getDataValue(float value, NumberDataValue previous) throws StandardException; | /**
* Get a SQL real with the given value. Uses the previous value, if non-null, as the data holder to return.
*
* @exception StandardException Thrown on error
*/ | Get a SQL real with the given value. Uses the previous value, if non-null, as the data holder to return | getDataValue | {
"repo_name": "lpxz/grail-derby104",
"path": "java/engine/org/apache/derby/iapi/types/DataValueFactory.java",
"license": "apache-2.0",
"size": 33852
} | [
"org.apache.derby.iapi.error.StandardException"
] | import org.apache.derby.iapi.error.StandardException; | import org.apache.derby.iapi.error.*; | [
"org.apache.derby"
] | org.apache.derby; | 2,554,023 |
public @Override void onDisable() {
soloQueue.getRunnable().cancel();
for (Arena arena : ArenaManager.getArenas(true)) { // If reloading ... reset every used arena
arena.reset();
}
} | @Override void function() { soloQueue.getRunnable().cancel(); for (Arena arena : ArenaManager.getArenas(true)) { arena.reset(); } } | /**
* Called when Plugin gets disabled
*/ | Called when Plugin gets disabled | onDisable | {
"repo_name": "Cuzoom/Spigot-Plugins",
"path": "Duell/src/me/merlin/duell/main/Duell.java",
"license": "gpl-3.0",
"size": 4691
} | [
"me.merlin.duell.arenas.Arena",
"me.merlin.duell.arenas.ArenaManager"
] | import me.merlin.duell.arenas.Arena; import me.merlin.duell.arenas.ArenaManager; | import me.merlin.duell.arenas.*; | [
"me.merlin.duell"
] | me.merlin.duell; | 1,110,575 |
public Observable<ServiceResponse<StreamingLocatorInner>> createWithServiceResponseAsync(String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters) {
if (this.client.subscriptionId() == null) {
throw new IllegalArgumentException("Parameter this.c... | Observable<ServiceResponse<StreamingLocatorInner>> function(String resourceGroupName, String accountName, String streamingLocatorName, StreamingLocatorInner parameters) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentExce... | /**
* Create a Streaming Locator.
* Create a Streaming Locator in the Media Services account.
*
* @param resourceGroupName The name of the resource group within the Azure subscription.
* @param accountName The Media Services account name.
* @param streamingLocatorName The Streaming Locator... | Create a Streaming Locator. Create a Streaming Locator in the Media Services account | createWithServiceResponseAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/mediaservices/mgmt-v2019_05_01_preview/src/main/java/com/microsoft/azure/management/mediaservices/v2019_05_01_preview/implementation/StreamingLocatorsInner.java",
"license": "mit",
"size": 57687
} | [
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.rest.ServiceResponse; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 624,837 |
public void setScienceAppName(String scienceAppName, Locale locale,
Locale defaultLocale); | void function(String scienceAppName, Locale locale, Locale defaultLocale); | /**
* Sets the localized science app name of this simulation in the language, and sets the default locale.
*
* @param scienceAppName the localized science app name of this simulation
* @param locale the locale of the language
* @param defaultLocale the default locale
*/ | Sets the localized science app name of this simulation in the language, and sets the default locale | setScienceAppName | {
"repo_name": "queza85/edison",
"path": "edison-portal-framework/edison-simulation-portlet/docroot/WEB-INF/service/org/kisti/edison/bestsimulation/model/SimulationModel.java",
"license": "gpl-3.0",
"size": 18594
} | [
"java.util.Locale"
] | import java.util.Locale; | import java.util.*; | [
"java.util"
] | java.util; | 551,617 |
public void setCreatedDate(LocalDateTime value) {
set(9, value);
} | void function(LocalDateTime value) { set(9, value); } | /**
* Setter for <code>public.cellared_drink.created_date</code>.
*/ | Setter for <code>public.cellared_drink.created_date</code> | setCreatedDate | {
"repo_name": "CellarHQ/cellarhq.com",
"path": "model/src/main/generated/com/cellarhq/generated/tables/records/CellaredDrinkRecord.java",
"license": "mit",
"size": 15928
} | [
"java.time.LocalDateTime"
] | import java.time.LocalDateTime; | import java.time.*; | [
"java.time"
] | java.time; | 1,336,363 |
public final MetaProperty<String> fieldNonFinal() {
return fieldNonFinal;
} | final MetaProperty<String> function() { return fieldNonFinal; } | /**
* The meta-property for the {@code fieldNonFinal} property.
* @return the meta-property, not null
*/ | The meta-property for the fieldNonFinal property | fieldNonFinal | {
"repo_name": "JodaOrg/joda-beans",
"path": "src/test/java/org/joda/beans/sample/FinalFieldBean.java",
"license": "apache-2.0",
"size": 15410
} | [
"org.joda.beans.MetaProperty"
] | import org.joda.beans.MetaProperty; | import org.joda.beans.*; | [
"org.joda.beans"
] | org.joda.beans; | 1,779,312 |
private void findColumns(Cursor c, String[] from) {
if (c != null) {
int i;
int count = from.length;
if (mFrom == null || mFrom.length != count) {
mFrom = new int[count];
}
for (i = 0; i < count; i++) {
mFrom[i] = c.... | void function(Cursor c, String[] from) { if (c != null) { int i; int count = from.length; if (mFrom == null mFrom.length != count) { mFrom = new int[count]; } for (i = 0; i < count; i++) { mFrom[i] = c.getColumnIndexOrThrow(from[i]); } } else { mFrom = null; } } | /**
* Create a map from an array of strings to an array of column-id integers in cursor c.
* If c is null, the array will be discarded.
*
* @param c the cursor to find the columns from
* @param from the Strings naming the columns of interest
*/ | Create a map from an array of strings to an array of column-id integers in cursor c. If c is null, the array will be discarded | findColumns | {
"repo_name": "jheske/Popcorn",
"path": "app/src/main/java/com/nano/movies/data/SimpleCursorRecyclerAdapter.java",
"license": "apache-2.0",
"size": 3535
} | [
"android.database.Cursor"
] | import android.database.Cursor; | import android.database.*; | [
"android.database"
] | android.database; | 2,744,106 |
public void removeUpdate(DocumentEvent e) { canRunScript(); } | public void removeUpdate(DocumentEvent e) { canRunScript(); } | /**
* Allows the user to run or not the script.
* @see DocumentListener#insertUpdate(DocumentEvent)
*/ | Allows the user to run or not the script | insertUpdate | {
"repo_name": "stelfrich/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/agents/util/ui/ScriptingDialog.java",
"license": "gpl-2.0",
"size": 32492
} | [
"javax.swing.event.DocumentEvent"
] | import javax.swing.event.DocumentEvent; | import javax.swing.event.*; | [
"javax.swing"
] | javax.swing; | 1,780,734 |
public Configuration getConfiguration() {
return conf;
} | Configuration function() { return conf; } | /**
* Get the modified configuration
* @return the configuration that has the modified parameters.
*/ | Get the modified configuration | getConfiguration | {
"repo_name": "leechoongyon/HadoopSourceAnalyze",
"path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/GenericOptionsParser.java",
"license": "apache-2.0",
"size": 18641
} | [
"org.apache.hadoop.conf.Configuration"
] | import org.apache.hadoop.conf.Configuration; | import org.apache.hadoop.conf.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 952,694 |
protected static Map<String, Integer> getPrincipalKeyNumberMap(Map<String, Object> requestSharedDataContext) {
if (requestSharedDataContext == null) {
return null;
} else {
Object map = requestSharedDataContext.get(PRINCIPAL_KEY_NUMBER_MAP);
if (map == null) {
map = new HashMap<Stri... | static Map<String, Integer> function(Map<String, Object> requestSharedDataContext) { if (requestSharedDataContext == null) { return null; } else { Object map = requestSharedDataContext.get(PRINCIPAL_KEY_NUMBER_MAP); if (map == null) { map = new HashMap<String, String>(); requestSharedDataContext.put(PRINCIPAL_KEY_NUMBE... | /**
* Gets the shared principal-to-key_number Map used to store principals and key numbers for
* use within the current request context.
* <p/>
* If the requested Map is not found in requestSharedDataContext, one will be created and stored,
* ensuring that a Map will always be returned, assuming requestS... | Gets the shared principal-to-key_number Map used to store principals and key numbers for use within the current request context. If the requested Map is not found in requestSharedDataContext, one will be created and stored, ensuring that a Map will always be returned, assuming requestSharedDataContext is not null | getPrincipalKeyNumberMap | {
"repo_name": "alexryndin/ambari",
"path": "ambari-server/src/main/java/org/apache/ambari/server/serveraction/kerberos/KerberosServerAction.java",
"license": "apache-2.0",
"size": 23624
} | [
"java.util.HashMap",
"java.util.Map"
] | import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,346,098 |
private String displayedKey( String key )
{
Button button = getApp( ).getNifty( ).getCurrentScreen( ).findNiftyControl( key, Button.class );
return button.getText( );
} | String function( String key ) { Button button = getApp( ).getNifty( ).getCurrentScreen( ).findNiftyControl( key, Button.class ); return button.getText( ); } | /**
* Gets the displayed text on the button with the name key.
*
* @param key
* @return Displayed text on button key.
*/ | Gets the displayed text on the button with the name key | displayedKey | {
"repo_name": "elliottmb/makhana",
"path": "client/src/main/java/trendli/me/makhana/client/ui/OptionsController.java",
"license": "apache-2.0",
"size": 43131
} | [
"de.lessvoid.nifty.controls.Button"
] | import de.lessvoid.nifty.controls.Button; | import de.lessvoid.nifty.controls.*; | [
"de.lessvoid.nifty"
] | de.lessvoid.nifty; | 2,521,637 |
public static void register(Class<? extends ResourceResolverSpi> className, boolean start) {
JavaUtils.checkRegisterPermission();
try {
ResourceResolverSpi resourceResolverSpi = className.newInstance();
register(resourceResolverSpi, start);
} catch (IllegalAccessExcep... | static void function(Class<? extends ResourceResolverSpi> className, boolean start) { JavaUtils.checkRegisterPermission(); try { ResourceResolverSpi resourceResolverSpi = className.newInstance(); register(resourceResolverSpi, start); } catch (IllegalAccessException e) { log.log(java.util.logging.Level.WARNING, STR + cl... | /**
* Registers a ResourceResolverSpi class. This method logs a warning if the class
* cannot be registered.
* @param className
* @param start
* @throws SecurityException if a security manager is installed and the
* caller does not have permission to register a resource resolver
*/ | Registers a ResourceResolverSpi class. This method logs a warning if the class cannot be registered | register | {
"repo_name": "frohoff/jdk8u-jdk",
"path": "src/share/classes/com/sun/org/apache/xml/internal/security/utils/resolver/ResourceResolver.java",
"license": "gpl-2.0",
"size": 13808
} | [
"com.sun.org.apache.xml.internal.security.utils.JavaUtils"
] | import com.sun.org.apache.xml.internal.security.utils.JavaUtils; | import com.sun.org.apache.xml.internal.security.utils.*; | [
"com.sun.org"
] | com.sun.org; | 1,215,559 |
private static Map<String, String> parseParamsToMap(String[] args){
Map<String, String> params = new HashMap<String, String>();
CommandLineParser parser = new DefaultParser();
Options options = new Options();
options.addOption(Option.builder("multisigAddress").hasArg().build());
options.addOption(Opti... | static Map<String, String> function(String[] args){ Map<String, String> params = new HashMap<String, String>(); CommandLineParser parser = new DefaultParser(); Options options = new Options(); options.addOption(Option.builder(STR).hasArg().build()); options.addOption(Option.builder(STR).hasArg().build()); options.addOp... | /**
* parse parameters
* @param args
* @return
*/ | parse parameters | parseParamsToMap | {
"repo_name": "NEMChina/nem-apps",
"path": "src/com/dfintech/nem/apps/ImplInitMultisigTransaction.java",
"license": "mit",
"size": 9793
} | [
"com.dfintech.nem.apps.utils.Constants",
"com.dfintech.nem.apps.utils.HelperUtils",
"com.dfintech.nem.apps.utils.OutputMessage",
"java.util.HashMap",
"java.util.Map",
"org.apache.commons.cli.CommandLine",
"org.apache.commons.cli.CommandLineParser",
"org.apache.commons.cli.DefaultParser",
"org.apache... | import com.dfintech.nem.apps.utils.Constants; import com.dfintech.nem.apps.utils.HelperUtils; import com.dfintech.nem.apps.utils.OutputMessage; import java.util.HashMap; import java.util.Map; import org.apache.commons.cli.CommandLine; import org.apache.commons.cli.CommandLineParser; import org.apache.commons.cli.Defaul... | import com.dfintech.nem.apps.utils.*; import java.util.*; import org.apache.commons.cli.*; | [
"com.dfintech.nem",
"java.util",
"org.apache.commons"
] | com.dfintech.nem; java.util; org.apache.commons; | 2,346,959 |
public DateTimeFormatterBuilder appendDecimal(
DateTimeFieldType fieldType, int minDigits, int maxDigits) {
if (fieldType == null) {
throw new IllegalArgumentException("Field type must not be null");
}
if (maxDigits < minDigits) {
maxDigits = minDigits;
... | DateTimeFormatterBuilder function( DateTimeFieldType fieldType, int minDigits, int maxDigits) { if (fieldType == null) { throw new IllegalArgumentException(STR); } if (maxDigits < minDigits) { maxDigits = minDigits; } if (minDigits < 0 maxDigits <= 0) { throw new IllegalArgumentException(); } if (minDigits <= 1) { retu... | /**
* Instructs the printer to emit a field value as a decimal number, and the
* parser to expect an unsigned decimal number.
*
* @param fieldType type of field to append
* @param minDigits minimum number of digits to <i>print</i>
* @param maxDigits maximum number of digits to <i>parse<... | Instructs the printer to emit a field value as a decimal number, and the parser to expect an unsigned decimal number | appendDecimal | {
"repo_name": "PavelSozonov/JodaTimeTesting",
"path": "src/main/java/org/joda/time/format/DateTimeFormatterBuilder.java",
"license": "apache-2.0",
"size": 101830
} | [
"org.joda.time.DateTimeFieldType"
] | import org.joda.time.DateTimeFieldType; | import org.joda.time.*; | [
"org.joda.time"
] | org.joda.time; | 1,977,833 |
public void addFilenameChangedListener( FilenameChangedListener listener ) {
if ( filenameChangedListeners == null ) {
filenameChangedListeners = new ArrayList<FilenameChangedListener>();
}
filenameChangedListeners.add( listener );
} | void function( FilenameChangedListener listener ) { if ( filenameChangedListeners == null ) { filenameChangedListeners = new ArrayList<FilenameChangedListener>(); } filenameChangedListeners.add( listener ); } | /**
* Adds the filename changed listener.
*
* @param listener
* the listener
*/ | Adds the filename changed listener | addFilenameChangedListener | {
"repo_name": "codek/pentaho-kettle",
"path": "engine/src/org/pentaho/di/base/AbstractMeta.java",
"license": "apache-2.0",
"size": 46271
} | [
"java.util.ArrayList",
"org.pentaho.di.core.listeners.FilenameChangedListener"
] | import java.util.ArrayList; import org.pentaho.di.core.listeners.FilenameChangedListener; | import java.util.*; import org.pentaho.di.core.listeners.*; | [
"java.util",
"org.pentaho.di"
] | java.util; org.pentaho.di; | 765,123 |
public DataNode setThicknessScalar(Double thickness); | DataNode function(Double thickness); | /**
* sample thickness
* <p>
* <b>Type:</b> NX_FLOAT
* <b>Units:</b> NX_LENGTH
* </p>
*
* @param thickness the thickness
*/ | sample thickness Type: NX_FLOAT Units: NX_LENGTH | setThicknessScalar | {
"repo_name": "xen-0/dawnsci",
"path": "org.eclipse.dawnsci.nexus/autogen/org/eclipse/dawnsci/nexus/NXsample.java",
"license": "epl-1.0",
"size": 49075
} | [
"org.eclipse.dawnsci.analysis.api.tree.DataNode"
] | import org.eclipse.dawnsci.analysis.api.tree.DataNode; | import org.eclipse.dawnsci.analysis.api.tree.*; | [
"org.eclipse.dawnsci"
] | org.eclipse.dawnsci; | 1,097,880 |
@Override
public Sha1HashCode computeSha1(Path pathRelativeToProjectRootOrJustAbsolute) throws IOException {
if (!exists(pathRelativeToProjectRootOrJustAbsolute)) {
throw new NoSuchFileException(pathRelativeToProjectRootOrJustAbsolute.toString());
}
// Because this class is a fake, the file conte... | Sha1HashCode function(Path pathRelativeToProjectRootOrJustAbsolute) throws IOException { if (!exists(pathRelativeToProjectRootOrJustAbsolute)) { throw new NoSuchFileException(pathRelativeToProjectRootOrJustAbsolute.toString()); } byte[] fileContents = getFileBytes(pathRelativeToProjectRootOrJustAbsolute); HashCode hash... | /**
* Does not support symlinks.
*/ | Does not support symlinks | computeSha1 | {
"repo_name": "davido/buck",
"path": "test/com/facebook/buck/testutil/FakeProjectFilesystem.java",
"license": "apache-2.0",
"size": 25123
} | [
"com.facebook.buck.util.sha1.Sha1HashCode",
"com.google.common.hash.HashCode",
"com.google.common.hash.Hashing",
"java.io.IOException",
"java.nio.file.NoSuchFileException",
"java.nio.file.Path"
] | import com.facebook.buck.util.sha1.Sha1HashCode; import com.google.common.hash.HashCode; import com.google.common.hash.Hashing; import java.io.IOException; import java.nio.file.NoSuchFileException; import java.nio.file.Path; | import com.facebook.buck.util.sha1.*; import com.google.common.hash.*; import java.io.*; import java.nio.file.*; | [
"com.facebook.buck",
"com.google.common",
"java.io",
"java.nio"
] | com.facebook.buck; com.google.common; java.io; java.nio; | 2,631,896 |
public void addColumn(String name, String expr) {
throw new UnsupportedOperationException();
}
// -- Client Properties ---------------------------------------------------
private HashMap m_props;
private SwingPropertyChangeSupport m_propSupport;
| void function(String name, String expr) { throw new UnsupportedOperationException(); } private HashMap m_props; private SwingPropertyChangeSupport m_propSupport; | /**
* Unsupported by default.
* @see prefuse.data.tuple.TupleSet#addColumn(java.lang.String, java.lang.String)
*/ | Unsupported by default | addColumn | {
"repo_name": "giacomovagni/Prefuse",
"path": "src/prefuse/data/tuple/AbstractTupleSet.java",
"license": "bsd-3-clause",
"size": 10056
} | [
"java.util.HashMap",
"javax.swing.event.SwingPropertyChangeSupport"
] | import java.util.HashMap; import javax.swing.event.SwingPropertyChangeSupport; | import java.util.*; import javax.swing.event.*; | [
"java.util",
"javax.swing"
] | java.util; javax.swing; | 1,731,025 |
protected static GridCacheAdapter<IgniteUuid, IgfsEntryInfo> getMetaCache(IgniteFileSystem igfs) {
String dataCacheName = igfs.configuration().getMetaCacheConfiguration().getName();
IgniteEx igniteEx = ((IgfsEx)igfs).context().kernalContext().grid();
return ((IgniteKernal)igniteEx).interna... | static GridCacheAdapter<IgniteUuid, IgfsEntryInfo> function(IgniteFileSystem igfs) { String dataCacheName = igfs.configuration().getMetaCacheConfiguration().getName(); IgniteEx igniteEx = ((IgfsEx)igfs).context().kernalContext().grid(); return ((IgniteKernal)igniteEx).internalCache(dataCacheName); } | /**
* Gets meta cache.
*
* @param igfs The IGFS instance.
* @return The data cache.
*/ | Gets meta cache | getMetaCache | {
"repo_name": "shroman/ignite",
"path": "modules/core/src/test/java/org/apache/ignite/internal/processors/igfs/IgfsAbstractBaseSelfTest.java",
"license": "apache-2.0",
"size": 33036
} | [
"org.apache.ignite.IgniteFileSystem",
"org.apache.ignite.internal.IgniteEx",
"org.apache.ignite.internal.IgniteKernal",
"org.apache.ignite.internal.processors.cache.GridCacheAdapter",
"org.apache.ignite.lang.IgniteUuid"
] | import org.apache.ignite.IgniteFileSystem; import org.apache.ignite.internal.IgniteEx; import org.apache.ignite.internal.IgniteKernal; import org.apache.ignite.internal.processors.cache.GridCacheAdapter; import org.apache.ignite.lang.IgniteUuid; | import org.apache.ignite.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.processors.cache.*; import org.apache.ignite.lang.*; | [
"org.apache.ignite"
] | org.apache.ignite; | 2,861,848 |
ServiceCall<Void> delete204Async(final ServiceCallback<Void> serviceCallback); | ServiceCall<Void> delete204Async(final ServiceCallback<Void> serviceCallback); | /**
* Delete true Boolean value in request returns 204 (no content).
*
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @return the {@link ServiceCall} object
*/ | Delete true Boolean value in request returns 204 (no content) | delete204Async | {
"repo_name": "yugangw-msft/autorest",
"path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/http/HttpSuccess.java",
"license": "mit",
"size": 30999
} | [
"com.microsoft.rest.ServiceCall",
"com.microsoft.rest.ServiceCallback"
] | import com.microsoft.rest.ServiceCall; import com.microsoft.rest.ServiceCallback; | import com.microsoft.rest.*; | [
"com.microsoft.rest"
] | com.microsoft.rest; | 2,624,157 |
public boolean invokeFunction(String funcName, Object[] params) {
// Run script if it is dirty. This makes sure the script is run
// on the same thread as the caller (suppose the caller is always
// calling from the same thread).
checkDirty();
// Skip bad functions
i... | boolean function(String funcName, Object[] params) { checkDirty(); if (isBadFunction(funcName)) { return false; } String statement = getInvokeStatementCached(funcName, params); Bindings localBindings = null; synchronized (mEngineLock) { localBindings = mLocalEngine.getBindings(ScriptContext.ENGINE_SCOPE); if (localBind... | /**
* Invokes a function defined in the script.
*
* @param funcName
* The function name.
* @param params
* The parameter array.
* @return
* A boolean value representing whether the function is
* executed correctly. If the function cannot be found, or
* param... | Invokes a function defined in the script | invokeFunction | {
"repo_name": "parthmehta209/GearVRf",
"path": "GVRf/Framework/framework/src/main/java/org/gearvrf/script/GVRScriptFile.java",
"license": "apache-2.0",
"size": 8925
} | [
"javax.script.Bindings",
"javax.script.ScriptContext",
"javax.script.ScriptException"
] | import javax.script.Bindings; import javax.script.ScriptContext; import javax.script.ScriptException; | import javax.script.*; | [
"javax.script"
] | javax.script; | 136,098 |
static String getStringValue(Node n) {
// TODO(user): regex literals as well.
switch (n.getType()) {
case Token.STRING:
case Token.STRING_KEY:
return n.getString();
case Token.NAME:
String name = n.getString();
if ("undefined".equals(name)
|| "Infinity".e... | static String getStringValue(Node n) { switch (n.getType()) { case Token.STRING: case Token.STRING_KEY: return n.getString(); case Token.NAME: String name = n.getString(); if (STR.equals(name) STR.equals(name) "NaN".equals(name)) { return name; } break; case Token.NUMBER: return getStringValue(n.getDouble()); case Toke... | /**
* Gets the value of a node as a String, or null if it cannot be converted.
* When it returns a non-null String, this method effectively emulates the
* <code>String()</code> JavaScript cast function.
*/ | Gets the value of a node as a String, or null if it cannot be converted. When it returns a non-null String, this method effectively emulates the <code>String()</code> JavaScript cast function | getStringValue | {
"repo_name": "martinrosstmc/closure-compiler",
"path": "src/com/google/javascript/jscomp/NodeUtil.java",
"license": "apache-2.0",
"size": 99366
} | [
"com.google.javascript.rhino.Node",
"com.google.javascript.rhino.Token",
"com.google.javascript.rhino.jstype.TernaryValue"
] | import com.google.javascript.rhino.Node; import com.google.javascript.rhino.Token; import com.google.javascript.rhino.jstype.TernaryValue; | import com.google.javascript.rhino.*; import com.google.javascript.rhino.jstype.*; | [
"com.google.javascript"
] | com.google.javascript; | 852,945 |
public boolean loadDocument(Document doc) {
Node classNode = doc.getElementsByTagName("classes").item(0);
Node stationNode = doc.getElementsByTagName("stations").item(0);
NodeList descList = doc.getElementsByTagName("description");
NodeList solList = doc.getElementsByTagName("solutions");
//load descrip... | boolean function(Document doc) { Node classNode = doc.getElementsByTagName(STR).item(0); Node stationNode = doc.getElementsByTagName(STR).item(0); NodeList descList = doc.getElementsByTagName(STR); NodeList solList = doc.getElementsByTagName(STR); if (descList.item(0) != null) { if (!loadDescription((Element) descList.... | /**
* load the state of this object from the Document.
* @return true if the operation was successful.
* WARNING: If the operation fails the object is left in an incorrect state and should be discarded.
*/ | load the state of this object from the Document | loadDocument | {
"repo_name": "HOMlab/QN-ACTR-Release",
"path": "QN-ACTR Java/src/jmt/gui/jaba/JabaModel.java",
"license": "lgpl-3.0",
"size": 43723
} | [
"org.w3c.dom.Document",
"org.w3c.dom.Element",
"org.w3c.dom.Node",
"org.w3c.dom.NodeList"
] | import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.Node; import org.w3c.dom.NodeList; | import org.w3c.dom.*; | [
"org.w3c.dom"
] | org.w3c.dom; | 1,337,041 |
public void removeHeaderNamed(String name) {
List<Integer> removeIndices = new ArrayList<>();
for (int i = getHeaders().size() - 1; i >= 0; i--) {
Header header = (Header) getHeaders().get(i).getObjectValue();
if (header == null) {
continue;
}
... | void function(String name) { List<Integer> removeIndices = new ArrayList<>(); for (int i = getHeaders().size() - 1; i >= 0; i--) { Header header = (Header) getHeaders().get(i).getObjectValue(); if (header == null) { continue; } if (header.getName().equalsIgnoreCase(name)) { removeIndices.add(Integer.valueOf(i)); } } fo... | /**
* Remove from Headers the header named name
* @param name header name
*/ | Remove from Headers the header named name | removeHeaderNamed | {
"repo_name": "johrstrom/cloud-meter",
"path": "cloud-meter-protocols/src/main/java/org/apache/jmeter/protocol/http/control/HeaderManager.java",
"license": "apache-2.0",
"size": 10566
} | [
"java.util.ArrayList",
"java.util.List"
] | import java.util.ArrayList; import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,583,733 |
public Map<String, ?> dealiasListTypeKeyValueMap(
Map<String, ?> aliasedKeyValueMap) {
LinkedHashMap<String, Object> keyValueMap = new LinkedHashMap<>(
aliasedKeyValueMap.size());
for (String alias : aliasedKeyValueMap.keySet()) {
Object value = aliasedKeyVa... | Map<String, ?> function( Map<String, ?> aliasedKeyValueMap) { LinkedHashMap<String, Object> keyValueMap = new LinkedHashMap<>( aliasedKeyValueMap.size()); for (String alias : aliasedKeyValueMap.keySet()) { Object value = aliasedKeyValueMap.get(alias); String key = this.getListTypeKeyForAlias(alias); keyValueMap.put(key... | /**
* De-Aliases a list-type key-value map.
*
* @param aliasedKeyValueMap
* the aliased key-value map.
* @return a de-aliased key-value map.
*/ | De-Aliases a list-type key-value map | dealiasListTypeKeyValueMap | {
"repo_name": "aftenkap/jutility",
"path": "jutility-incubation/src/main/java/org/jutility/io/database/ListPropertyInfo.java",
"license": "apache-2.0",
"size": 12350
} | [
"java.util.LinkedHashMap",
"java.util.Map"
] | import java.util.LinkedHashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 152,857 |
public void setWithAttributes(final MultipleWithAttributes attributes) {
if (withAttributesPath == null) {
withAttributesPath = new WithAttributesPath();
}
if (attributes != null) {
withAttributesPath.setWithAttributes(attributes);
}
} | void function(final MultipleWithAttributes attributes) { if (withAttributesPath == null) { withAttributesPath = new WithAttributesPath(); } if (attributes != null) { withAttributesPath.setWithAttributes(attributes); } } | /**
* Sets the with attributes for this group if it has any. Also creates
* the with attribute path, to store the attributes in.
*
* @param attributes
* the attribute to be added.
* */ | Sets the with attributes for this group if it has any. Also creates the with attribute path, to store the attributes in | setWithAttributes | {
"repo_name": "eroslevi/titan.EclipsePlug-ins",
"path": "org.eclipse.titan.designer/src/org/eclipse/titan/designer/AST/TTCN3/definitions/Group.java",
"license": "epl-1.0",
"size": 29708
} | [
"org.eclipse.titan.designer.AST"
] | import org.eclipse.titan.designer.AST; | import org.eclipse.titan.designer.*; | [
"org.eclipse.titan"
] | org.eclipse.titan; | 1,853,051 |
public void describeTo(Description description) {
description.appendText("a properly defined utility class");
} | void function(Description description) { description.appendText(STR); } | /**
* Describe the source object that caused an error, using a Hamcrest
* Matcher style interface. In this case, it always returns
* that we are looking for a properly defined utility class.
*
* @param description the Description object to use to report the "to"
* objec... | Describe the source object that caused an error, using a Hamcrest Matcher style interface. In this case, it always returns that we are looking for a properly defined utility class | describeTo | {
"repo_name": "gkatsikas/onos",
"path": "utils/junit/src/main/java/org/onlab/junit/UtilityClassChecker.java",
"license": "apache-2.0",
"size": 5355
} | [
"org.hamcrest.Description"
] | import org.hamcrest.Description; | import org.hamcrest.*; | [
"org.hamcrest"
] | org.hamcrest; | 2,545,005 |
@Test
public void testSetDefaultLookupsNull()
{
params.setDefaultLookups(new ArrayList<Lookup>());
params.setDefaultLookups(null);
assertFalse("Found key",
params.getParameters().containsKey("defaultLookups"));
} | void function() { params.setDefaultLookups(new ArrayList<Lookup>()); params.setDefaultLookups(null); assertFalse(STR, params.getParameters().containsKey(STR)); } | /**
* Tests whether null values are handled by setDefaultLookups().
*/ | Tests whether null values are handled by setDefaultLookups() | testSetDefaultLookupsNull | {
"repo_name": "mohanaraosv/commons-configuration",
"path": "src/test/java/org/apache/commons/configuration2/builder/TestBasicBuilderParameters.java",
"license": "apache-2.0",
"size": 19798
} | [
"java.util.ArrayList",
"org.apache.commons.configuration2.interpol.Lookup",
"org.junit.Assert"
] | import java.util.ArrayList; import org.apache.commons.configuration2.interpol.Lookup; import org.junit.Assert; | import java.util.*; import org.apache.commons.configuration2.interpol.*; import org.junit.*; | [
"java.util",
"org.apache.commons",
"org.junit"
] | java.util; org.apache.commons; org.junit; | 616,150 |
void onVideoDisabled(DecoderCounters counters);
final class EventDispatcher {
private final Handler handler;
private final VideoRendererEventListener listener;
public EventDispatcher(Handler handler, VideoRendererEventListener listener) {
this.handler = listener != null ? Assertions.che... | void onVideoDisabled(DecoderCounters counters); final class EventDispatcher { private final Handler handler; private final VideoRendererEventListener listener; public EventDispatcher(Handler handler, VideoRendererEventListener listener) { this.handler = listener != null ? Assertions.checkNotNull(handler) : null; this.l... | /**
* Called when the renderer is disabled.
*
* @param counters {@link DecoderCounters} that were updated by the renderer.
*/ | Called when the renderer is disabled | onVideoDisabled | {
"repo_name": "ClubCom/AndroidExoPlayer",
"path": "library/src/main/java/com/google/android/exoplayer2/video/VideoRendererEventListener.java",
"license": "apache-2.0",
"size": 8026
} | [
"android.os.Handler",
"com.google.android.exoplayer2.decoder.DecoderCounters",
"com.google.android.exoplayer2.util.Assertions"
] | import android.os.Handler; import com.google.android.exoplayer2.decoder.DecoderCounters; import com.google.android.exoplayer2.util.Assertions; | import android.os.*; import com.google.android.exoplayer2.decoder.*; import com.google.android.exoplayer2.util.*; | [
"android.os",
"com.google.android"
] | android.os; com.google.android; | 1,177,849 |
private void startProducer(MqttMessageProducer publisher) {
logger.trace("Starting message producer for broker '{}'", name);
publisher.setSenderChannel(new MqttSenderChannel() { | void function(MqttMessageProducer publisher) { logger.trace(STR, name); publisher.setSenderChannel(new MqttSenderChannel() { | /**
* Start a registered producer, so that it can start sending messages.
*
* @param publisher
* to start
*/ | Start a registered producer, so that it can start sending messages | startProducer | {
"repo_name": "falkena/openhab",
"path": "bundles/io/org.openhab.io.transport.mqtt/src/main/java/org/openhab/io/transport/mqtt/internal/MqttBrokerConnection.java",
"license": "epl-1.0",
"size": 20258
} | [
"org.openhab.io.transport.mqtt.MqttMessageProducer",
"org.openhab.io.transport.mqtt.MqttSenderChannel"
] | import org.openhab.io.transport.mqtt.MqttMessageProducer; import org.openhab.io.transport.mqtt.MqttSenderChannel; | import org.openhab.io.transport.mqtt.*; | [
"org.openhab.io"
] | org.openhab.io; | 1,712,994 |
@Test
public void testInit() {
assertSame(course, participantsController.getCourse());
assertSame(loggedIn, participantsController.getLoggedInUser());
assertEquals(course.getDefaultParticipationType().getPartTypeId(),
participantsController.getSelectedParticipationTypeId(... | void function() { assertSame(course, participantsController.getCourse()); assertSame(loggedIn, participantsController.getLoggedInUser()); assertEquals(course.getDefaultParticipationType().getPartTypeId(), participantsController.getSelectedParticipationTypeId(), DELTA_PART_TYPE_ID); assertTrue(participantsController.isL... | /**
* Tests if the mocked dependencies got injected properly, and the test
* data is in the participantsController.
* Tests if the participation type id which got selected corresponds to the
* first participation type id.
*/ | Tests if the mocked dependencies got injected properly, and the test data is in the participantsController. Tests if the participation type id which got selected corresponds to the first participation type id | testInit | {
"repo_name": "stefanoberdoerfer/exmatrikulator",
"path": "src/test/java/de/unibremen/opensores/controller/ParticipantsControllerTest.java",
"license": "agpl-3.0",
"size": 32777
} | [
"org.junit.Assert"
] | import org.junit.Assert; | import org.junit.*; | [
"org.junit"
] | org.junit; | 771,244 |
@Override
public void bestSaved(Solution<V, T> solution) {
super.bestSaved(solution);
if (Math.abs(iBestValue - solution.getBestValue()) >= 1.0) {
iLastImprovingIter = iIter;
iBestValue = solution.getBestValue();
}
}
} | void function(Solution<V, T> solution) { super.bestSaved(solution); if (Math.abs(iBestValue - solution.getBestValue()) >= 1.0) { iLastImprovingIter = iIter; iBestValue = solution.getBestValue(); } } } | /**
* Memorize the iteration when the last best solution was found.
*/ | Memorize the iteration when the last best solution was found | bestSaved | {
"repo_name": "UniTime/cpsolver",
"path": "src/org/cpsolver/ifs/algorithms/SimulatedAnnealing.java",
"license": "lgpl-3.0",
"size": 19116
} | [
"org.cpsolver.ifs.solution.Solution"
] | import org.cpsolver.ifs.solution.Solution; | import org.cpsolver.ifs.solution.*; | [
"org.cpsolver.ifs"
] | org.cpsolver.ifs; | 502,849 |
List<VmTemplate> getAllTemplatesWithDisksOnOtherStorageDomain(Guid storageDomainGuid); | List<VmTemplate> getAllTemplatesWithDisksOnOtherStorageDomain(Guid storageDomainGuid); | /**
* Retrieves all templates which contains disks on other Storage Domain other then the storageDomain GUID.
*
* @param storageDomainGuid
* the storage domain GUID
* @return List of Templates
*/ | Retrieves all templates which contains disks on other Storage Domain other then the storageDomain GUID | getAllTemplatesWithDisksOnOtherStorageDomain | {
"repo_name": "OpenUniversity/ovirt-engine",
"path": "backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/VmTemplateDao.java",
"license": "apache-2.0",
"size": 8008
} | [
"java.util.List",
"org.ovirt.engine.core.common.businessentities.VmTemplate",
"org.ovirt.engine.core.compat.Guid"
] | import java.util.List; import org.ovirt.engine.core.common.businessentities.VmTemplate; import org.ovirt.engine.core.compat.Guid; | import java.util.*; import org.ovirt.engine.core.common.businessentities.*; import org.ovirt.engine.core.compat.*; | [
"java.util",
"org.ovirt.engine"
] | java.util; org.ovirt.engine; | 2,613,119 |
@Test
public void TestMapping() {
if (false) {
Date PURE_GREGORIAN = new Date(Long.MIN_VALUE);
Date PURE_JULIAN = new Date(Long.MAX_VALUE);
GregorianCalendar cal =
new GregorianCalendar(TimeZone.getTimeZone("UTC"));
final int EPOCH_JULIAN =... | void function() { if (false) { Date PURE_GREGORIAN = new Date(Long.MIN_VALUE); Date PURE_JULIAN = new Date(Long.MAX_VALUE); GregorianCalendar cal = new GregorianCalendar(TimeZone.getTimeZone("UTC")); final int EPOCH_JULIAN = 2440588; final long ONE_DAY = 24*60*60*1000L; android.icu.text.SimpleDateFormat fmt = new andro... | /**
* Test the mapping between millis and fields. For the purposes
* of this test, we don't care about timezones and week data
* (first day of week, minimal days in first week).
*/ | Test the mapping between millis and fields. For the purposes of this test, we don't care about timezones and week data (first day of week, minimal days in first week) | TestMapping | {
"repo_name": "lukhnos/j2objc",
"path": "jre_emul/android/platform/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/calendar/CompatibilityTest.java",
"license": "apache-2.0",
"size": 47874
} | [
"android.icu.util.Calendar",
"android.icu.util.GregorianCalendar",
"android.icu.util.TimeZone",
"java.util.Date"
] | import android.icu.util.Calendar; import android.icu.util.GregorianCalendar; import android.icu.util.TimeZone; import java.util.Date; | import android.icu.util.*; import java.util.*; | [
"android.icu",
"java.util"
] | android.icu; java.util; | 1,129,498 |
void onButtonPressed(Intent intent) throws Exception; | void onButtonPressed(Intent intent) throws Exception; | /**
* Callback fired when we've just gone through warning dialog before encryption
*
* @param intent
* @throws Exception
*/ | Callback fired when we've just gone through warning dialog before encryption | onButtonPressed | {
"repo_name": "AmazengProject/AmazeFileManager",
"path": "app/src/main/java/com/amaze/filemanager/utils/files/EncryptDecryptUtils.java",
"license": "gpl-3.0",
"size": 8056
} | [
"android.content.Intent"
] | import android.content.Intent; | import android.content.*; | [
"android.content"
] | android.content; | 925,773 |
@Override
public void setContext(final Context inContext) {
context = inContext;
}
| void function(final Context inContext) { context = inContext; } | /** Sets the context of this Task
*
* @param inContext org.hip.kernel.servlet.Context The context for this task */ | Sets the context of this Task | setContext | {
"repo_name": "aktion-hip/viffw",
"path": "org.hip.viffw/src/org/hip/kernel/servlet/impl/AbstractTask.java",
"license": "lgpl-2.1",
"size": 1825
} | [
"org.hip.kernel.servlet.Context"
] | import org.hip.kernel.servlet.Context; | import org.hip.kernel.servlet.*; | [
"org.hip.kernel"
] | org.hip.kernel; | 90,144 |
public HttpBackOffUnsuccessfulResponseHandler setBackOffRequired(
BackOffRequired backOffRequired) {
this.backOffRequired = Preconditions.checkNotNull(backOffRequired);
return this;
} | HttpBackOffUnsuccessfulResponseHandler function( BackOffRequired backOffRequired) { this.backOffRequired = Preconditions.checkNotNull(backOffRequired); return this; } | /**
* Sets the {@link BackOffRequired} instance which determines if back-off is required based on an
* abnormal HTTP response.
*
* <p>
* The default value is {@link BackOffRequired#ON_SERVER_ERROR}.
* </p>
*
* <p>
* Overriding is only supported for the purpose of calling the super implementat... | Sets the <code>BackOffRequired</code> instance which determines if back-off is required based on an abnormal HTTP response. The default value is <code>BackOffRequired#ON_SERVER_ERROR</code>. Overriding is only supported for the purpose of calling the super implementation and changing the return type, but nothing else. | setBackOffRequired | {
"repo_name": "fengshao0907/google-http-java-client",
"path": "google-http-client/src/main/java/com/google/api/client/http/HttpBackOffUnsuccessfulResponseHandler.java",
"license": "apache-2.0",
"size": 5369
} | [
"com.google.api.client.util.Preconditions"
] | import com.google.api.client.util.Preconditions; | import com.google.api.client.util.*; | [
"com.google.api"
] | com.google.api; | 2,469,875 |
public boolean setCursorPulseMode(MouseRayListener listener) {
if (listenerLockPulse == null) {
//We keep track of the listener locking the input.
listenerLockPulse = listener;
if (initialized) {
lastScreenMousePos = app.getInputManager().getCursorPosition... | boolean function(MouseRayListener listener) { if (listenerLockPulse == null) { listenerLockPulse = listener; if (initialized) { lastScreenMousePos = app.getInputManager().getCursorPosition(); } return true; } else if (listenerLockPulse.equals(listener)) { listenerLockPulse = null; return true; } else { LoggerFactory.ge... | /**
* Activate / desactivate pulse mode, Raycast will follow the mouse, Have to
* be called by the the same listener to be disabled. The pulse mode lock other
* update.
*
* @todo Ray listener support
* @param listener calling for it.
* @return false if an error happen or if already on... | Activate / desactivate pulse mode, Raycast will follow the mouse, Have to be called by the the same listener to be disabled. The pulse mode lock other update | setCursorPulseMode | {
"repo_name": "MultiverseKing/HexGrid_JME",
"path": "HexGridAPI/src/org/hexgridapi/core/mousepicking/GridMouseControlAppState.java",
"license": "gpl-3.0",
"size": 9062
} | [
"org.hexgridapi.events.MouseRayListener",
"org.slf4j.LoggerFactory"
] | import org.hexgridapi.events.MouseRayListener; import org.slf4j.LoggerFactory; | import org.hexgridapi.events.*; import org.slf4j.*; | [
"org.hexgridapi.events",
"org.slf4j"
] | org.hexgridapi.events; org.slf4j; | 2,885,171 |
public void saveTextures(String absolutePath) {
actionController.setProgressCount(imageList.size());
int i = 0;
for (AdvancedTextureImage img : imageList) {
if (img.getState() != EditState.unsupported){
actionController.setProgress(i);
i++;
img.writeTextureToPath(absolutePath);
if (img.getTmpSav... | void function(String absolutePath) { actionController.setProgressCount(imageList.size()); int i = 0; for (AdvancedTextureImage img : imageList) { if (img.getState() != EditState.unsupported){ actionController.setProgress(i); i++; img.writeTextureToPath(absolutePath); if (img.getTmpSavePath() != null) { File file = new ... | /**
* Saves all Textures of the set with their folder structure to the
* specified absolutePath and deletes their tmp image files (created during
* manipulation)
*
* @param absolutePath
*/ | Saves all Textures of the set with their folder structure to the specified absolutePath and deletes their tmp image files (created during manipulation) | saveTextures | {
"repo_name": "s3phir0th/TextureAttack",
"path": "src/de/tud/textureAttack/model/WorkingImageSet.java",
"license": "apache-2.0",
"size": 7872
} | [
"de.tud.textureAttack.model.AdvancedTextureImage",
"java.io.File"
] | import de.tud.textureAttack.model.AdvancedTextureImage; import java.io.File; | import de.tud.*; import java.io.*; | [
"de.tud",
"java.io"
] | de.tud; java.io; | 2,762,499 |
public void setStatements(Vector statements) {
this.statements = statements;
} | void function(Vector statements) { this.statements = statements; } | /**
* The statements are the SQL lines of code in procedure.
*/ | The statements are the SQL lines of code in procedure | setStatements | {
"repo_name": "gameduell/eclipselink.runtime",
"path": "foundation/org.eclipse.persistence.core/src/org/eclipse/persistence/tools/schemaframework/StoredProcedureDefinition.java",
"license": "epl-1.0",
"size": 17002
} | [
"java.util.Vector"
] | import java.util.Vector; | import java.util.*; | [
"java.util"
] | java.util; | 151,865 |
public Model getModel() {
return model;
} | Model function() { return model; } | /**
* Get the model associated to this element.
*
* @return The model associated to this element.
*/ | Get the model associated to this element | getModel | {
"repo_name": "meteoorkip/GraphterEffects",
"path": "GraphterEffectsLibrary/src/main/java/com/github/meteoorkip/solver/VisElem.java",
"license": "apache-2.0",
"size": 11637
} | [
"org.chocosolver.solver.Model"
] | import org.chocosolver.solver.Model; | import org.chocosolver.solver.*; | [
"org.chocosolver.solver"
] | org.chocosolver.solver; | 2,908,022 |
public boolean bind_result(Env env,
@Reference Value[] outParams)
{
try {
return bindResults(env, outParams);
} catch (Exception e) {
log.log(Level.FINE, e.toString(), e);
return false;
}
} | boolean function(Env env, @Reference Value[] outParams) { try { return bindResults(env, outParams); } catch (Exception e) { log.log(Level.FINE, e.toString(), e); return false; } } | /**
* Binds variables to a prepared statement for result storage.
*
* @param env the PHP executing environment
* @param outParams the output variables
* @return true on success or false on failure
*/ | Binds variables to a prepared statement for result storage | bind_result | {
"repo_name": "dwango/quercus",
"path": "src/main/java/com/caucho/quercus/lib/db/MysqliStatement.java",
"license": "gpl-2.0",
"size": 12173
} | [
"com.caucho.quercus.annotation.Reference",
"com.caucho.quercus.env.Env",
"com.caucho.quercus.env.Value",
"java.util.logging.Level"
] | import com.caucho.quercus.annotation.Reference; import com.caucho.quercus.env.Env; import com.caucho.quercus.env.Value; import java.util.logging.Level; | import com.caucho.quercus.annotation.*; import com.caucho.quercus.env.*; import java.util.logging.*; | [
"com.caucho.quercus",
"java.util"
] | com.caucho.quercus; java.util; | 1,639,167 |
setProperty(new DoubleProperty(RANGE, range));
}
| setProperty(new DoubleProperty(RANGE, range)); } | /**
* Set the range value.
*/ | Set the range value | setRange | {
"repo_name": "botelhojp/apache-jmeter-2.10",
"path": "src/components/org/apache/jmeter/timers/RandomTimer.java",
"license": "apache-2.0",
"size": 2125
} | [
"org.apache.jmeter.testelement.property.DoubleProperty"
] | import org.apache.jmeter.testelement.property.DoubleProperty; | import org.apache.jmeter.testelement.property.*; | [
"org.apache.jmeter"
] | org.apache.jmeter; | 488,611 |
@Deprecated
public WireTapDefinition<Type> wireTap(String uri, ExecutorService executorService) {
WireTapDefinition<Type> answer = new WireTapDefinition<Type>();
answer.setUri(uri);
answer.setExecutorService(executorService);
addOutput(answer);
return answer;
}
/... | WireTapDefinition<Type> function(String uri, ExecutorService executorService) { WireTapDefinition<Type> answer = new WireTapDefinition<Type>(); answer.setUri(uri); answer.setExecutorService(executorService); addOutput(answer); return answer; } /** * <a href="http: * Sends messages to all its child outputs; so that each... | /**
* <a href="http://camel.apache.org/wiretap.html">WireTap EIP:</a>
* Sends messages to all its child outputs; so that each processor and
* destination gets a copy of the original message to avoid the processors
* interfering with each other using {@link ExchangePattern#InOnly}.
*
* @par... | Sends messages to all its child outputs; so that each processor and destination gets a copy of the original message to avoid the processors interfering with each other using <code>ExchangePattern#InOnly</code> | wireTap | {
"repo_name": "chicagozer/rheosoft",
"path": "camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java",
"license": "apache-2.0",
"size": 125020
} | [
"java.util.concurrent.ExecutorService",
"org.apache.camel.ExchangePattern"
] | import java.util.concurrent.ExecutorService; import org.apache.camel.ExchangePattern; | import java.util.concurrent.*; import org.apache.camel.*; | [
"java.util",
"org.apache.camel"
] | java.util; org.apache.camel; | 576,601 |
public Timestamp getDateAcct();
public static final String COLUMNNAME_DateTrx = "DateTrx"; | Timestamp function(); public static final String COLUMNNAME_DateTrx = STR; | /** Get Account Date.
* Accounting Date
*/ | Get Account Date. Accounting Date | getDateAcct | {
"repo_name": "erpcya/adempierePOS",
"path": "base/src/org/compiere/model/I_C_AllocationHdr.java",
"license": "gpl-2.0",
"size": 8292
} | [
"java.sql.Timestamp"
] | import java.sql.Timestamp; | import java.sql.*; | [
"java.sql"
] | java.sql; | 793,334 |
@NotNull
public static Collection<VirtualFile> collectParentFiles(boolean includeSelf, @NotNull PsiFile... psiFiles) {
Set<VirtualFile> virtualFiles = new HashSet<>();
for (PsiFile psiFile : psiFiles) {
VirtualFile sourceFile = psiFile.getVirtualFile();
if(includeSelf) {... | static Collection<VirtualFile> function(boolean includeSelf, @NotNull PsiFile... psiFiles) { Set<VirtualFile> virtualFiles = new HashSet<>(); for (PsiFile psiFile : psiFiles) { VirtualFile sourceFile = psiFile.getVirtualFile(); if(includeSelf) { virtualFiles.add(sourceFile); } visitParentFiles(psiFile, 0, virtualFiles)... | /**
* Visit parent Twig files eg on "embed" tag and provide all files in this path until root file
*/ | Visit parent Twig files eg on "embed" tag and provide all files in this path until root file | collectParentFiles | {
"repo_name": "gencer/idea-php-symfony2-plugin",
"path": "src/fr/adrienbrault/idea/symfony2plugin/twig/utils/TwigFileUtil.java",
"license": "mit",
"size": 2908
} | [
"com.intellij.openapi.vfs.VirtualFile",
"com.intellij.psi.PsiFile",
"java.util.Collection",
"java.util.HashSet",
"java.util.Set",
"org.jetbrains.annotations.NotNull"
] | import com.intellij.openapi.vfs.VirtualFile; import com.intellij.psi.PsiFile; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.jetbrains.annotations.NotNull; | import com.intellij.openapi.vfs.*; import com.intellij.psi.*; import java.util.*; import org.jetbrains.annotations.*; | [
"com.intellij.openapi",
"com.intellij.psi",
"java.util",
"org.jetbrains.annotations"
] | com.intellij.openapi; com.intellij.psi; java.util; org.jetbrains.annotations; | 571,103 |
public static void acquire(Semaphore sem) throws IgniteInterruptedCheckedException {
try {
sem.acquire();
}
catch (InterruptedException e) {
Thread.currentThread().interrupt();
throw new IgniteInterruptedCheckedException(e);
}
} | static void function(Semaphore sem) throws IgniteInterruptedCheckedException { try { sem.acquire(); } catch (InterruptedException e) { Thread.currentThread().interrupt(); throw new IgniteInterruptedCheckedException(e); } } | /**
* Acquires a permit from provided semaphore.
*
* @param sem Semaphore.
* @throws org.apache.ignite.internal.IgniteInterruptedCheckedException Wrapped {@link InterruptedException}.
*/ | Acquires a permit from provided semaphore | acquire | {
"repo_name": "ascherbakoff/ignite",
"path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java",
"license": "apache-2.0",
"size": 385578
} | [
"java.util.concurrent.Semaphore",
"org.apache.ignite.internal.IgniteInterruptedCheckedException"
] | import java.util.concurrent.Semaphore; import org.apache.ignite.internal.IgniteInterruptedCheckedException; | import java.util.concurrent.*; import org.apache.ignite.internal.*; | [
"java.util",
"org.apache.ignite"
] | java.util; org.apache.ignite; | 2,273,662 |
protected void writeExtraCustomSoapHeadersToXml(EwsServiceXmlWriter writer)
throws XMLStreamException, ServiceXmlSerializationException {
// do nothing here.
// currently used only by GetUserSettingRequest to emit the BinarySecret header.
} | void function(EwsServiceXmlWriter writer) throws XMLStreamException, ServiceXmlSerializationException { } | /**
* Write extra headers.
*
* @param writer the writer
* @throws ServiceXmlSerializationException the service xml serialization exception
* @throws XMLStreamException the XML stream exception
*/ | Write extra headers | writeExtraCustomSoapHeadersToXml | {
"repo_name": "KatharineYe/ews-java-api",
"path": "src/main/java/microsoft/exchange/webservices/data/autodiscover/request/AutodiscoverRequest.java",
"license": "mit",
"size": 25983
} | [
"javax.xml.stream.XMLStreamException"
] | import javax.xml.stream.XMLStreamException; | import javax.xml.stream.*; | [
"javax.xml"
] | javax.xml; | 1,949,097 |
List<Object> getExtraFiles();
/**
* Adds some additional srg files for reobfuscating. These are resolved to files with {@link org.gradle.api.Project#file(Object)} | List<Object> getExtraFiles(); /** * Adds some additional srg files for reobfuscating. These are resolved to files with {@link org.gradle.api.Project#file(Object)} | /**
* Gets the extra srg files. Modders should prefer to use
* {@link #extraFiles(Object...)} instead of setting the
* list manually.
*
* @return The extra srg files
*/ | Gets the extra srg files. Modders should prefer to use <code>#extraFiles(Object...)</code> instead of setting the list manually | getExtraFiles | {
"repo_name": "kashike/ForgeGradle",
"path": "src/main/java/net/minecraftforge/gradle/user/IReobfuscator.java",
"license": "lgpl-2.1",
"size": 3994
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,425,749 |
public ScheduledThreadPoolExecutor getScheduledExecutorService()
{
return scheduledExecutor;
} | ScheduledThreadPoolExecutor function() { return scheduledExecutor; } | /**
* Get the ScheduledExecutorService used for housekeeping.
*
* @return the executor
*/ | Get the ScheduledExecutorService used for housekeeping | getScheduledExecutorService | {
"repo_name": "ligzy/HikariCP",
"path": "src/main/java/com/zaxxer/hikari/HikariConfig.java",
"license": "apache-2.0",
"size": 25097
} | [
"java.util.concurrent.ScheduledThreadPoolExecutor"
] | import java.util.concurrent.ScheduledThreadPoolExecutor; | import java.util.concurrent.*; | [
"java.util"
] | java.util; | 936,804 |
void enterInsertIntoExpr(@NotNull EsperEPL2GrammarParser.InsertIntoExprContext ctx);
void exitInsertIntoExpr(@NotNull EsperEPL2GrammarParser.InsertIntoExprContext ctx); | void enterInsertIntoExpr(@NotNull EsperEPL2GrammarParser.InsertIntoExprContext ctx); void exitInsertIntoExpr(@NotNull EsperEPL2GrammarParser.InsertIntoExprContext ctx); | /**
* Exit a parse tree produced by {@link EsperEPL2GrammarParser#insertIntoExpr}.
* @param ctx the parse tree
*/ | Exit a parse tree produced by <code>EsperEPL2GrammarParser#insertIntoExpr</code> | exitInsertIntoExpr | {
"repo_name": "georgenicoll/esper",
"path": "esper/src/main/java/com/espertech/esper/epl/generated/EsperEPL2GrammarListener.java",
"license": "gpl-2.0",
"size": 114105
} | [
"org.antlr.v4.runtime.misc.NotNull"
] | import org.antlr.v4.runtime.misc.NotNull; | import org.antlr.v4.runtime.misc.*; | [
"org.antlr.v4"
] | org.antlr.v4; | 2,636,978 |
List<DiskImage> getImagesWithNoDisk(Guid vmId); | List<DiskImage> getImagesWithNoDisk(Guid vmId); | /**
* Return all images that don't have a Disk entity in the DB and are part of a snapshot of the given VM ID.
*
* @param vmId
* The VM to look up snapshots for.
* @return List of images (empty if none found).
*/ | Return all images that don't have a Disk entity in the DB and are part of a snapshot of the given VM ID | getImagesWithNoDisk | {
"repo_name": "OpenUniversity/ovirt-engine",
"path": "backend/manager/modules/dal/src/main/java/org/ovirt/engine/core/dao/DiskImageDao.java",
"license": "apache-2.0",
"size": 4296
} | [
"java.util.List",
"org.ovirt.engine.core.common.businessentities.storage.DiskImage",
"org.ovirt.engine.core.compat.Guid"
] | import java.util.List; import org.ovirt.engine.core.common.businessentities.storage.DiskImage; import org.ovirt.engine.core.compat.Guid; | import java.util.*; import org.ovirt.engine.core.common.businessentities.storage.*; import org.ovirt.engine.core.compat.*; | [
"java.util",
"org.ovirt.engine"
] | java.util; org.ovirt.engine; | 2,423,617 |
private static Map<String, Double> extrapolate(Map<String, Double> values, int total, int sample) {
if (total == sample) {
return values;
} else {
Map<String, Double> result = new HashMap<String, Double>();
for (Entry<String, Double> entry : values.entrySet()) {
double value = entry.getValue() * tot... | static Map<String, Double> function(Map<String, Double> values, int total, int sample) { if (total == sample) { return values; } else { Map<String, Double> result = new HashMap<String, Double>(); for (Entry<String, Double> entry : values.entrySet()) { double value = entry.getValue() * total / sample; result.put(entry.g... | /**
* Assuming the the given values represent a sum over a subset of a larger group, multiply them out to normalize
* their values to the hypothetical sum over the larger group.
*/ | Assuming the the given values represent a sum over a subset of a larger group, multiply them out to normalize their values to the hypothetical sum over the larger group | extrapolate | {
"repo_name": "deleidos/digitaledge-platform",
"path": "master/src/main/java/com/deleidos/rtws/master/core/DiscoveryStatisticsCollector.java",
"license": "apache-2.0",
"size": 18889
} | [
"java.util.HashMap",
"java.util.Map"
] | import java.util.HashMap; import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,531,956 |
return reader;
}
/**
* Get minor type for this vector. The vector holds values belonging
* to a particular type.
*
* @return {@link org.apache.arrow.vector.types.Types.MinorType} | return reader; } /** * Get minor type for this vector. The vector holds values belonging * to a particular type. * * @return {@link org.apache.arrow.vector.types.Types.MinorType} | /**
* Get a reader that supports reading values from this vector
*
* @return Field Reader for this vector
*/ | Get a reader that supports reading values from this vector | getReader | {
"repo_name": "wagavulin/arrow",
"path": "java/vector/src/main/java/org/apache/arrow/vector/FixedSizeBinaryVector.java",
"license": "apache-2.0",
"size": 12942
} | [
"org.apache.arrow.vector.types.Types"
] | import org.apache.arrow.vector.types.Types; | import org.apache.arrow.vector.types.*; | [
"org.apache.arrow"
] | org.apache.arrow; | 1,269,501 |
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
toolBar = new javax.swing.JToolBar();
toolbarRunButton = new javax.swing.JButton();
pageSizeComboBox = new javax.swing.JComboBox<P... | @SuppressWarnings(STR) void function() { toolBar = new javax.swing.JToolBar(); toolbarRunButton = new javax.swing.JButton(); pageSizeComboBox = new javax.swing.JComboBox<PageSizeItem>(); saveParamsCheckBox = new javax.swing.JCheckBox(); mainPane = new javax.swing.JSplitPane(); topPanel = new javax.swing.JPanel(); botto... | /**
* 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.
*/ | This method is called from within the constructor to initialize the form. regenerated by the Form Editor | initComponents | {
"repo_name": "vadimv/PlatypusJS",
"path": "designer/PlatypusQueries/src/com/eas/designer/application/query/result/QuerySetupView.java",
"license": "apache-2.0",
"size": 13548
} | [
"com.eas.designer.application.query.result.QueryResultsView",
"java.awt.BorderLayout",
"javax.swing.JEditorPane",
"javax.swing.JScrollPane"
] | import com.eas.designer.application.query.result.QueryResultsView; import java.awt.BorderLayout; import javax.swing.JEditorPane; import javax.swing.JScrollPane; | import com.eas.designer.application.query.result.*; import java.awt.*; import javax.swing.*; | [
"com.eas.designer",
"java.awt",
"javax.swing"
] | com.eas.designer; java.awt; javax.swing; | 2,602,917 |
Collection<? extends ViewProcess> getViewProcesses(); | Collection<? extends ViewProcess> getViewProcesses(); | /**
* Gets an unmodifiable snapshot of the view processes currently being managed by this view processor. A view process
* could be in any state, and might have finished producing new results or even have been terminated.
*
* @return a collection of the current view processes, not null
*/ | Gets an unmodifiable snapshot of the view processes currently being managed by this view processor. A view process could be in any state, and might have finished producing new results or even have been terminated | getViewProcesses | {
"repo_name": "jeorme/OG-Platform",
"path": "projects/OG-Engine/src/main/java/com/opengamma/engine/view/impl/ViewProcessorInternal.java",
"license": "apache-2.0",
"size": 2663
} | [
"com.opengamma.engine.view.ViewProcess",
"java.util.Collection"
] | import com.opengamma.engine.view.ViewProcess; import java.util.Collection; | import com.opengamma.engine.view.*; import java.util.*; | [
"com.opengamma.engine",
"java.util"
] | com.opengamma.engine; java.util; | 1,664,979 |
boolean setVirtualAttribute(PerunSession sess, Member member, Attribute attribute) throws InternalErrorException, WrongModuleTypeException, ModuleNotExistsException, WrongReferenceAttributeValueException; | boolean setVirtualAttribute(PerunSession sess, Member member, Attribute attribute) throws InternalErrorException, WrongModuleTypeException, ModuleNotExistsException, WrongReferenceAttributeValueException; | /**
* Store the particular virtual attribute associated with the member.
*
* @param sess perun session
* @param member
* @param attribute attribute to set
* @return true if attribute was really changed
* @throws InternalErrorException if an exception raise in concrete implementation, the exception is wrap... | Store the particular virtual attribute associated with the member | setVirtualAttribute | {
"repo_name": "Simcsa/perun",
"path": "perun-core/src/main/java/cz/metacentrum/perun/core/implApi/AttributesManagerImplApi.java",
"license": "bsd-2-clause",
"size": 98325
} | [
"cz.metacentrum.perun.core.api.Attribute",
"cz.metacentrum.perun.core.api.Member",
"cz.metacentrum.perun.core.api.PerunSession",
"cz.metacentrum.perun.core.api.exceptions.InternalErrorException",
"cz.metacentrum.perun.core.api.exceptions.ModuleNotExistsException",
"cz.metacentrum.perun.core.api.exceptions... | import cz.metacentrum.perun.core.api.Attribute; import cz.metacentrum.perun.core.api.Member; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.InternalErrorException; import cz.metacentrum.perun.core.api.exceptions.ModuleNotExistsException; import cz.metacentrum.perun.co... | import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; | [
"cz.metacentrum.perun"
] | cz.metacentrum.perun; | 2,424,626 |
@ServiceMethod(returns = ReturnType.SINGLE)
private Mono<Response<ConnectionSettingInner>> getWithResponseAsync(
String resourceGroupName, String resourceName, String connectionName, Context context) {
if (this.client.getEndpoint() == null) {
return Mono
.error(
... | @ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<ConnectionSettingInner>> function( String resourceGroupName, String resourceName, String connectionName, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { retur... | /**
* Get a Connection Setting registration for a Bot Service.
*
* @param resourceGroupName The name of the Bot resource group in the user subscription.
* @param resourceName The name of the Bot resource.
* @param connectionName The name of the Bot Service Connection Setting resource.
* @p... | Get a Connection Setting registration for a Bot Service | getWithResponseAsync | {
"repo_name": "Azure/azure-sdk-for-java",
"path": "sdk/botservice/azure-resourcemanager-botservice/src/main/java/com/azure/resourcemanager/botservice/implementation/BotConnectionsClientImpl.java",
"license": "mit",
"size": 71427
} | [
"com.azure.core.annotation.ReturnType",
"com.azure.core.annotation.ServiceMethod",
"com.azure.core.http.rest.Response",
"com.azure.core.util.Context",
"com.azure.resourcemanager.botservice.fluent.models.ConnectionSettingInner"
] | import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.botservice.fluent.models.ConnectionSettingInner; | import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.botservice.fluent.models.*; | [
"com.azure.core",
"com.azure.resourcemanager"
] | com.azure.core; com.azure.resourcemanager; | 2,061,259 |
@Nonnull
public ClaimsMappingPolicyCollectionRequest skip(final int value) {
addSkipOption(value);
return this;
} | ClaimsMappingPolicyCollectionRequest function(final int value) { addSkipOption(value); return this; } | /**
* Sets the skip value for the request
*
* @param value of the number of items to skip
* @return the updated request
*/ | Sets the skip value for the request | skip | {
"repo_name": "microsoftgraph/msgraph-sdk-java",
"path": "src/main/java/com/microsoft/graph/requests/ClaimsMappingPolicyCollectionRequest.java",
"license": "mit",
"size": 6131
} | [
"com.microsoft.graph.requests.ClaimsMappingPolicyCollectionRequest"
] | import com.microsoft.graph.requests.ClaimsMappingPolicyCollectionRequest; | import com.microsoft.graph.requests.*; | [
"com.microsoft.graph"
] | com.microsoft.graph; | 2,261,057 |
private void startBackgroundThread() {
mBackgroundThread = new HandlerThread("CameraBackground");
mBackgroundThread.start();
mBackgroundHandler = new Handler(mBackgroundThread.getLooper());
} | void function() { mBackgroundThread = new HandlerThread(STR); mBackgroundThread.start(); mBackgroundHandler = new Handler(mBackgroundThread.getLooper()); } | /**
* Starts a background thread and its {@link Handler}.
*/ | Starts a background thread and its <code>Handler</code> | startBackgroundThread | {
"repo_name": "aimbrain/aimbrain-android-sdk",
"path": "aimbrain/src/main/java/com/aimbrain/sdk/faceCapture/fragments/Camera2Fragment.java",
"license": "mit",
"size": 25976
} | [
"android.os.Handler",
"android.os.HandlerThread"
] | import android.os.Handler; import android.os.HandlerThread; | import android.os.*; | [
"android.os"
] | android.os; | 1,626,593 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.