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 ShapeListResponse GetSlidesSlideShapes (String name, Integer slideIndex, String folder, String storage) { Object postBody = null; // verify required params are set if(name == null || slideIndex == null ) { throw new ApiException(400, "missing required params"); } // create path and m...
ShapeListResponse function (String name, Integer slideIndex, String folder, String storage) { Object postBody = null; if(name == null slideIndex == null ) { throw new ApiException(400, STR); } String resourcePath = STR; resourcePath = resourcePath.replaceAll("\\*", STR&STR&STR/?STR?STRtoFormat={toFormat}STRformat={...
/** * GetSlidesSlideShapes * Read slides shapes info. * @param name String Presentation name. * @param slideIndex Integer Slide index. * @param folder String Presentation folder. * @param storage String Presentation storage. * @return ShapeListResponse */
GetSlidesSlideShapes Read slides shapes info
GetSlidesSlideShapes
{ "repo_name": "aspose-slides/Aspose.Slides-for-Cloud", "path": "SDKs/Aspose.Slides-Cloud-SDK-for-Java/src/main/java/com/aspose/slides/api/SlidesApi.java", "license": "mit", "size": 134781 }
[ "com.aspose.slides.client.ApiException", "com.aspose.slides.model.ShapeListResponse" ]
import com.aspose.slides.client.ApiException; import com.aspose.slides.model.ShapeListResponse;
import com.aspose.slides.client.*; import com.aspose.slides.model.*;
[ "com.aspose.slides" ]
com.aspose.slides;
1,700,339
// Given final Long bytes = Nullsafe.asLong(1); // When final StorageUnit<?> unit = constructor.apply(bytes); // Then Assert.assertNotNull("Unit could not be created", unit); }
final Long bytes = Nullsafe.asLong(1); final StorageUnit<?> unit = constructor.apply(bytes); Assert.assertNotNull(STR, unit); }
/** * Ensures that high-level constructors for all given unit constructors * produce a not-null output when fed with a {@link Long} value. * * @param constructor * The constructor function for the storage unit under test. * @see StorageUnitsWithBigIntegerTest#shouldCreateNotNull...
Ensures that high-level constructors for all given unit constructors produce a not-null output when fed with a <code>Long</code> value
shouldCreateNotNullUnit
{ "repo_name": "sebhoss/storage-units", "path": "storage-units/src/test/java/de/xn__ho_hia/storage_unit/StorageUnitsWithLongTest.java", "license": "cc0-1.0", "size": 1891 }
[ "de.xn__ho_hia.quality.null_analysis.Nullsafe", "org.junit.Assert" ]
import de.xn__ho_hia.quality.null_analysis.Nullsafe; import org.junit.Assert;
import de.xn__ho_hia.quality.null_analysis.*; import org.junit.*;
[ "de.xn__ho_hia.quality", "org.junit" ]
de.xn__ho_hia.quality; org.junit;
2,597,944
public synchronized boolean isLocked(String uri, boolean exclusive) throws IOException { if (this.closed) throw new IOException("Store already closed"); return this.locks.isLocked(uri, this.signature, exclusive); }
synchronized boolean function(String uri, boolean exclusive) throws IOException { if (this.closed) throw new IOException(STR); return this.locks.isLocked(uri, this.signature, exclusive); }
/** * R&uuml;ckgabe <code>true</code> wenn die bei per URI angegebene * Ressource gesperrt ist. Mit dieser Instanz vom Store gesetzte Sperren * werden ignoriert, da diese als eine Transaktion betrachtet werden. * @param uri Pfad der Ressource als URI * @param exclusive Option ...
R&uuml;ckgabe <code>true</code> wenn die bei per URI angegebene Ressource gesperrt ist. Mit dieser Instanz vom Store gesetzte Sperren werden ignoriert, da diese als eine Transaktion betrachtet werden
isLocked
{ "repo_name": "seanox/webdav", "path": "sources/com/seanox/webdav/storage/AbstractStore.java", "license": "gpl-2.0", "size": 42951 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,551,617
public void changeSourceField( MappedAttributeDefinition defn, ModelNode newValue, String sourceName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repository...
void function( MappedAttributeDefinition defn, ModelNode newValue, String sourceName ) throws RepositoryException, OperationFailedException { ModeShapeEngine engine = getEngine(); String repositoryName = repositoryName(); RepositoryConfiguration config = engine.getRepositoryConfiguration(repositoryName); Editor editor ...
/** * Immediately change and apply the specified external source field in the current repository configuration to the new value. * * @param defn the attribute definition for the value; may not be null * @param newValue the new string value * @param sourceName the name of the source * @thr...
Immediately change and apply the specified external source field in the current repository configuration to the new value
changeSourceField
{ "repo_name": "pleacu/modeshape", "path": "deploy/jbossas/modeshape-jbossas-subsystem/src/main/java/org/modeshape/jboss/service/RepositoryService.java", "license": "apache-2.0", "size": 31888 }
[ "javax.jcr.RepositoryException", "org.jboss.as.controller.OperationFailedException", "org.jboss.dmr.ModelNode", "org.modeshape.jboss.subsystem.MappedAttributeDefinition", "org.modeshape.jcr.ModeShapeEngine", "org.modeshape.jcr.RepositoryConfiguration", "org.modeshape.schematic.document.Changes", "org....
import javax.jcr.RepositoryException; import org.jboss.as.controller.OperationFailedException; import org.jboss.dmr.ModelNode; import org.modeshape.jboss.subsystem.MappedAttributeDefinition; import org.modeshape.jcr.ModeShapeEngine; import org.modeshape.jcr.RepositoryConfiguration; import org.modeshape.schematic.docume...
import javax.jcr.*; import org.jboss.as.controller.*; import org.jboss.dmr.*; import org.modeshape.jboss.subsystem.*; import org.modeshape.jcr.*; import org.modeshape.schematic.document.*;
[ "javax.jcr", "org.jboss.as", "org.jboss.dmr", "org.modeshape.jboss", "org.modeshape.jcr", "org.modeshape.schematic" ]
javax.jcr; org.jboss.as; org.jboss.dmr; org.modeshape.jboss; org.modeshape.jcr; org.modeshape.schematic;
27,339
public boolean equalsExcluding(final FeatureStructure other, final String... excludedNames) { return equalsExcluding(other, Arrays.asList(excludedNames)); }
boolean function(final FeatureStructure other, final String... excludedNames) { return equalsExcluding(other, Arrays.asList(excludedNames)); }
/** * Returns true, if the feature structures are equal, excluding the given * features from the check. */
Returns true, if the feature structures are equal, excluding the given features from the check
equalsExcluding
{ "repo_name": "nbudzyn/federkiel", "path": "src/main/java/de/nb/federkiel/feature/FeatureStructure.java", "license": "apache-2.0", "size": 53613 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
1,744,339
@Test public void getNeighborLocations_bottomNeighbor() { int x = GeneralHelper.getRandom().nextInt( 1000 ); int y = GeneralHelper.getRandom().nextInt( 1000 ); MapTileLocation mapTileLocation = new MapTileLocation( x, y ); MapTileLocation[] neighborLocations = new MapTileLoc...
void function() { int x = GeneralHelper.getRandom().nextInt( 1000 ); int y = GeneralHelper.getRandom().nextInt( 1000 ); MapTileLocation mapTileLocation = new MapTileLocation( x, y ); MapTileLocation[] neighborLocations = new MapTileLocation[] { new MapTileLocation( x, y + 1 ) }; MapTileEdgePosition[] neighborMapTileEdg...
/** * Verify that the getNeighborLocations() method returns the correct value when called with * specifying the bottom neighboring map tile edge position. */
Verify that the getNeighborLocations() method returns the correct value when called with specifying the bottom neighboring map tile edge position
getNeighborLocations_bottomNeighbor
{ "repo_name": "flexgen/flexgen", "path": "main/src/test/java/org/flexgen/map/test/MapTileLocationTest.java", "license": "bsd-3-clause", "size": 10387 }
[ "org.flexgen.map.MapTileEdgePosition", "org.flexgen.map.MapTileLocation", "org.flexgen.test.helper.GeneralHelper", "org.junit.Assert" ]
import org.flexgen.map.MapTileEdgePosition; import org.flexgen.map.MapTileLocation; import org.flexgen.test.helper.GeneralHelper; import org.junit.Assert;
import org.flexgen.map.*; import org.flexgen.test.helper.*; import org.junit.*;
[ "org.flexgen.map", "org.flexgen.test", "org.junit" ]
org.flexgen.map; org.flexgen.test; org.junit;
922,430
public static synchronized List<String> getFieldNames() { if (fieldNames == null) { fieldNames = new ArrayList<String>(); fieldNames.add("ObjectID"); fieldNames.add("Name"); fieldNames.add("Label"); fieldNames.add("Description"); ...
static synchronized List<String> function() { if (fieldNames == null) { fieldNames = new ArrayList<String>(); fieldNames.add(STR); fieldNames.add("Name"); fieldNames.add("Label"); fieldNames.add(STR); fieldNames.add("Index"); fieldNames.add(STR); fieldNames.add(STR); fieldNames.add(STR); fieldNames.add("Uuid"); fieldNa...
/** * Generate a list of field names. * * @return a list of field names */
Generate a list of field names
getFieldNames
{ "repo_name": "trackplus/Genji", "path": "src/main/java/com/aurel/track/persist/BaseTScreenPanel.java", "license": "gpl-3.0", "size": 44335 }
[ "java.util.ArrayList", "java.util.Collections", "java.util.List" ]
import java.util.ArrayList; import java.util.Collections; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,198,654
public Collection<Element> getPluginsConfigXML() { ArrayList<Element> config = new ArrayList<Element>(); Element pluginElement, pluginSubElement; for (Plugin startedPlugin : startedPlugins) { int pluginType = startedPlugin.getClass().getAnnotation(PluginType.class).value(); // Ignore GU...
Collection<Element> function() { ArrayList<Element> config = new ArrayList<Element>(); Element pluginElement, pluginSubElement; for (Plugin startedPlugin : startedPlugins) { int pluginType = startedPlugin.getClass().getAnnotation(PluginType.class).value(); if (pluginType == PluginType.COOJA_PLUGIN pluginType == PluginT...
/** * Returns started plugins config. * * @return Config or null */
Returns started plugins config
getPluginsConfigXML
{ "repo_name": "andreaazzara/pyot", "path": "contiki-tres/tools/cooja/java/org/contikios/cooja/Cooja.java", "license": "gpl-3.0", "size": 159349 }
[ "java.util.ArrayList", "java.util.Collection", "javax.swing.JInternalFrame", "org.jdom.Element" ]
import java.util.ArrayList; import java.util.Collection; import javax.swing.JInternalFrame; import org.jdom.Element;
import java.util.*; import javax.swing.*; import org.jdom.*;
[ "java.util", "javax.swing", "org.jdom" ]
java.util; javax.swing; org.jdom;
528,776
public static void main(String[] args) { RequestContext rc = null; try { IntegrationContextFactory self = new IntegrationContextFactory(); System.out.println("isIntegrationEnabled="+self.isIntegrationEnabled()); IntegrationContext ictx = self.newIntegrationContext(); if (ictx ==...
static void function(String[] args) { RequestContext rc = null; try { IntegrationContextFactory self = new IntegrationContextFactory(); System.out.println(STR+self.isIntegrationEnabled()); IntegrationContext ictx = self.newIntegrationContext(); if (ictx == null) { System.out.println(STR); } else { System.out.println(ST...
/** * Main unit test method. * @param args startup arguments */
Main unit test method
main
{ "repo_name": "GeoinformationSystems/GeoprocessingAppstore", "path": "src/com/esri/gpt/sdisuite/IntegrationContextFactory.java", "license": "apache-2.0", "size": 9050 }
[ "com.esri.gpt.framework.context.RequestContext" ]
import com.esri.gpt.framework.context.RequestContext;
import com.esri.gpt.framework.context.*;
[ "com.esri.gpt" ]
com.esri.gpt;
1,453,360
protected void addIdPropertyDescriptor(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString("_UI_Identifiable_id_feature"), getString("_UI_PropertyDescriptor_description...
void function(Object object) { itemPropertyDescriptors.add (createItemPropertyDescriptor (((ComposeableAdapterFactory)adapterFactory).getRootAdapterFactory(), getResourceLocator(), getString(STR), getString(STR, STR, STR), CyberPhysicalSystemPackage.Literals.IDENTIFIABLE__ID, true, false, false, ItemPropertyDescriptor....
/** * This adds a property descriptor for the Id feature. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
This adds a property descriptor for the Id feature.
addIdPropertyDescriptor
{ "repo_name": "ZsoltKovari/incquery-examples-cps", "path": "domains/org.eclipse.incquery.examples.cps.model.edit/src/org/eclipse/incquery/examples/cps/cyberPhysicalSystem/provider/HostInstanceItemProvider.java", "license": "epl-1.0", "size": 12050 }
[ "org.eclipse.emf.edit.provider.ComposeableAdapterFactory", "org.eclipse.emf.edit.provider.ItemPropertyDescriptor", "org.eclipse.incquery.examples.cps.cyberPhysicalSystem.CyberPhysicalSystemPackage" ]
import org.eclipse.emf.edit.provider.ComposeableAdapterFactory; import org.eclipse.emf.edit.provider.ItemPropertyDescriptor; import org.eclipse.incquery.examples.cps.cyberPhysicalSystem.CyberPhysicalSystemPackage;
import org.eclipse.emf.edit.provider.*; import org.eclipse.incquery.examples.cps.*;
[ "org.eclipse.emf", "org.eclipse.incquery" ]
org.eclipse.emf; org.eclipse.incquery;
2,467,296
protected void rewriteHops() { try { dmlTranslator.rewriteHopsDAG(dmlProgram); } catch (LanguageException e) { throw new MLContextException("Exception occurred while rewriting HOPS (high-level operators)", e); } catch (HopsException e) { throw new MLContextException("Exception occurred while rewriting...
void function() { try { dmlTranslator.rewriteHopsDAG(dmlProgram); } catch (LanguageException e) { throw new MLContextException(STR, e); } catch (HopsException e) { throw new MLContextException(STR, e); } catch (ParseException e) { throw new MLContextException(STR, e); } }
/** * Apply static rewrites, perform intra-/inter-procedural analysis to * propagate size information into functions, apply dynamic rewrites, and * compute memory estimates for all HOPs. */
Apply static rewrites, perform intra-/inter-procedural analysis to propagate size information into functions, apply dynamic rewrites, and compute memory estimates for all HOPs
rewriteHops
{ "repo_name": "iyounus/incubator-systemml", "path": "src/main/java/org/apache/sysml/api/mlcontext/ScriptExecutor.java", "license": "apache-2.0", "size": 23151 }
[ "org.apache.sysml.hops.HopsException", "org.apache.sysml.parser.LanguageException", "org.apache.sysml.parser.ParseException" ]
import org.apache.sysml.hops.HopsException; import org.apache.sysml.parser.LanguageException; import org.apache.sysml.parser.ParseException;
import org.apache.sysml.hops.*; import org.apache.sysml.parser.*;
[ "org.apache.sysml" ]
org.apache.sysml;
1,283,542
@Test(description = "1.6.12.7") public void getAbsoluteValueUsingDatamapper() throws IOException, XMLStreamException { String testCaseId = "1.6.12.7"; String apiInvocationUrl = getApiInvocationURLHttp(API_NAME +"/absolute"); String request = "<?xml version=\"1.0\" encodin...
@Test(description = STR) void function() throws IOException, XMLStreamException { String testCaseId = STR; String apiInvocationUrl = getApiInvocationURLHttp(API_NAME +STR); String request = STR1.0\STRUTF-8\"?>\n" + STR + STR + STR; String expectedResponse = STR + STR + STR; HTTPUtils.invokePoxEndpointAndAssert(apiInvoc...
/** * This test is to verify if it can get the absolute value with given xml payload using * datamapper mediator. */
This test is to verify if it can get the absolute value with given xml payload using datamapper mediator
getAbsoluteValueUsingDatamapper
{ "repo_name": "milindaperera/product-ei", "path": "product-scenarios/1-integrating-systems-that-communicate-in-heterogeneous-message-formats/1.6-xml-message-enrichment/1.6.12-Perform-Arithmetic-operations-in-XML-payload/src/test/java/org.wso2.carbon.ei.scenario.test/ArithmeticOperationsInXMLUsingDatamapperTest.jav...
[ "java.io.IOException", "javax.xml.stream.XMLStreamException", "org.apache.axis2.transport.http.HTTPConstants", "org.testng.annotations.Test", "org.wso2.carbon.esb.scenario.test.common.http.HTTPUtils" ]
import java.io.IOException; import javax.xml.stream.XMLStreamException; import org.apache.axis2.transport.http.HTTPConstants; import org.testng.annotations.Test; import org.wso2.carbon.esb.scenario.test.common.http.HTTPUtils;
import java.io.*; import javax.xml.stream.*; import org.apache.axis2.transport.http.*; import org.testng.annotations.*; import org.wso2.carbon.esb.scenario.test.common.http.*;
[ "java.io", "javax.xml", "org.apache.axis2", "org.testng.annotations", "org.wso2.carbon" ]
java.io; javax.xml; org.apache.axis2; org.testng.annotations; org.wso2.carbon;
2,233,842
DataSource getDataSource() { return dataSource; }
DataSource getDataSource() { return dataSource; }
/** * Return the {@code DataSource} object associated to this object. * It is used internally by other classes of the implementation. * * @return the {@code DataSource} object. */
Return the DataSource object associated to this object. It is used internally by other classes of the implementation
getDataSource
{ "repo_name": "VadeRetro/vaderetro-provider", "path": "provider-keystore-sql/src/main/java/com/vaderetrosecure/keystore/dao/sql/SqlKeyStoreDAO.java", "license": "mit", "size": 16791 }
[ "javax.sql.DataSource" ]
import javax.sql.DataSource;
import javax.sql.*;
[ "javax.sql" ]
javax.sql;
2,045,136
public void setJobEntryLogTable(JobEntryLogTable jobEntryLogTable) { this.jobEntryLogTable = jobEntryLogTable; }
void function(JobEntryLogTable jobEntryLogTable) { this.jobEntryLogTable = jobEntryLogTable; }
/** * Sets the job entry log table. * * @param jobEntryLogTable the jobEntryLogTable to set */
Sets the job entry log table
setJobEntryLogTable
{ "repo_name": "lihongqiang/kettle-4.4.0-stable", "path": "src/org/pentaho/di/job/JobMeta.java", "license": "apache-2.0", "size": 103745 }
[ "org.pentaho.di.core.logging.JobEntryLogTable" ]
import org.pentaho.di.core.logging.JobEntryLogTable;
import org.pentaho.di.core.logging.*;
[ "org.pentaho.di" ]
org.pentaho.di;
797,174
private boolean transitionState(ExecutionState currentState, ExecutionState newState) { return transitionState(currentState, newState, null); }
boolean function(ExecutionState currentState, ExecutionState newState) { return transitionState(currentState, newState, null); }
/** * Try to transition the execution state from the current state to the new state. * * @param currentState of the execution * @param newState of the execution * @return true if the transition was successful, otherwise false */
Try to transition the execution state from the current state to the new state
transitionState
{ "repo_name": "zimmermatt/flink", "path": "flink-runtime/src/main/java/org/apache/flink/runtime/taskmanager/Task.java", "license": "apache-2.0", "size": 58477 }
[ "org.apache.flink.runtime.execution.ExecutionState" ]
import org.apache.flink.runtime.execution.ExecutionState;
import org.apache.flink.runtime.execution.*;
[ "org.apache.flink" ]
org.apache.flink;
983,897
public void shutdown() { if (mHandler != null) { // Shut down the thread mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; ...
void function() { if (mHandler != null) { mHandler.removeCallbacksAndMessages(null); Looper looper = mHandler.getLooper(); if (looper != null) { looper.quit(); } mHandler = null; } disconnect(); if(mObserverRegistered) { mObserver.unregisterObserver(); mObserverRegistered = false; } if (mObserver != null) { mObserver.d...
/** * Shutdown the MNS. */
Shutdown the MNS
shutdown
{ "repo_name": "s20121035/rk3288_android5.1_repo", "path": "packages/apps/Bluetooth_bplus/src/com/android/bluetooth/map/BluetoothMnsObexClient.java", "license": "gpl-3.0", "size": 13479 }
[ "android.os.Looper", "javax.obex.HeaderSet" ]
import android.os.Looper; import javax.obex.HeaderSet;
import android.os.*; import javax.obex.*;
[ "android.os", "javax.obex" ]
android.os; javax.obex;
2,238,332
public static LocalPlayableMedia fromFile(final File file) { if (file == null) { throw new IllegalArgumentException("file cannot be null"); } return new LocalPlayableMedia(file); }
static LocalPlayableMedia function(final File file) { if (file == null) { throw new IllegalArgumentException(STR); } return new LocalPlayableMedia(file); }
/** * Creates a new LocalPlayableMedia from a File. The provided File is not accessed during this * method's execution. * * @param file * the File on disk containing this media, not null * @return the new LocalPlayableMedia * @throws IllegalArgumentException * if {@code file} is null */
Creates a new LocalPlayableMedia from a File. The provided File is not accessed during this method's execution
fromFile
{ "repo_name": "MatthewTamlin/SoundSword", "path": "library/src/main/java/com/matthewtamlin/soundsword/LocalPlayableMedia.java", "license": "apache-2.0", "size": 2988 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
2,811,104
private static Test positiveSyntaxSuite(String framework) { String dbo = users[dboIndex]; String dbopw = dbo.concat(pwSuffix); Test t = (TestConfiguration.changeUserDecorator (new RolesTest("testPositiveSyntax", SQLAUTHORIZATION, ...
static Test function(String framework) { String dbo = users[dboIndex]; String dbopw = dbo.concat(pwSuffix); Test t = (TestConfiguration.changeUserDecorator (new RolesTest(STR, SQLAUTHORIZATION, dbo, dbopw), dbo, dbopw)); return TestConfiguration.sqlAuthorizationDecorator( DatabasePropertyTestSetup.builtinAuthentication...
/** * * Construct suite of tests for positive syntax (edge cases) * * @param framework Derby framework indication * @return A suite containing the test cases for syntax * edge cases. Incarnated only for sqlAuthorization, dbo. */
Construct suite of tests for positive syntax (edge cases)
positiveSyntaxSuite
{ "repo_name": "apache/derby", "path": "java/org.apache.derby.tests/org/apache/derbyTesting/functionTests/tests/lang/RolesTest.java", "license": "apache-2.0", "size": 48511 }
[ "junit.framework.Test", "org.apache.derbyTesting.junit.DatabasePropertyTestSetup", "org.apache.derbyTesting.junit.TestConfiguration" ]
import junit.framework.Test; import org.apache.derbyTesting.junit.DatabasePropertyTestSetup; import org.apache.derbyTesting.junit.TestConfiguration;
import junit.framework.*; import org.apache.*;
[ "junit.framework", "org.apache" ]
junit.framework; org.apache;
782,916
public String getBirthday() throws CardException;
String function() throws CardException;
/** * Liefert das Geburtsdatum des Kartenbesitzers. Die Formatierung entsprecht * der bei der Speicherung des Datums. * * @return Geburtsdatum * @throws CardException */
Liefert das Geburtsdatum des Kartenbesitzers. Die Formatierung entsprecht der bei der Speicherung des Datums
getBirthday
{ "repo_name": "philippsied/smartcard-course", "path": "OffCardAPP/src/main/java/clientAPI/PersonalData.java", "license": "mit", "size": 3325 }
[ "javax.smartcardio.CardException" ]
import javax.smartcardio.CardException;
import javax.smartcardio.*;
[ "javax.smartcardio" ]
javax.smartcardio;
1,440,197
public static DateTime parse(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str); } //----------------------------------------------------------------------- public DateTime() { super(); } public DateTime(DateTimeZone zone) { super(z...
static DateTime function(String str, DateTimeFormatter formatter) { return formatter.parseDateTime(str); } public DateTime() { super(); } public DateTime(DateTimeZone zone) { super(zone); } public DateTime(Chronology chronology) { super(chronology); } public DateTime(long instant) { super(instant); } public DateTime(lo...
/** * Parses a {@code DateTime} from the specified string using a formatter. * * @param str the string to parse, not null * @param formatter the formatter to use, not null * @since 2.0 */
Parses a DateTime from the specified string using a formatter
parse
{ "repo_name": "smrz10/joda-time", "path": "src/main/java/org/joda/time/DateTime.java", "license": "apache-2.0", "size": 92403 }
[ "org.joda.time.format.DateTimeFormatter" ]
import org.joda.time.format.DateTimeFormatter;
import org.joda.time.format.*;
[ "org.joda.time" ]
org.joda.time;
964,117
public QueryableDatatype getAppropriateQDTFromRow(RowDefinition row) { return this.getPropertyWrapper().getDefinition().getQueryableDatatype(row); } /** * Gets the value of the declared column in the RowDefinition/DBRow/DBReport * supplied, prior to type conversion to the DBvolution-centric type. * * <p...
QueryableDatatype function(RowDefinition row) { return this.getPropertyWrapper().getDefinition().getQueryableDatatype(row); } /** * Gets the value of the declared column in the RowDefinition/DBRow/DBReport * supplied, prior to type conversion to the DBvolution-centric type. * * <p> * you should probably be using {@link...
/** * Gets the DBvolution-centric value of the column for the instance of * RowDefinition (DBRow/DBreport) supplied. * * <p> * The value returned may have undergone type conversion from the target * object's actual property type, if a type adaptor is present. * * @param row resolve the column for this r...
Gets the DBvolution-centric value of the column for the instance of RowDefinition (DBRow/DBreport) supplied. The value returned may have undergone type conversion from the target object's actual property type, if a type adaptor is present
getAppropriateQDTFromRow
{ "repo_name": "gregorydgraham/DBvolution", "path": "src/main/java/nz/co/gregs/dbvolution/columns/AbstractColumn.java", "license": "apache-2.0", "size": 10073 }
[ "nz.co.gregs.dbvolution.DBRow", "nz.co.gregs.dbvolution.datatypes.QueryableDatatype", "nz.co.gregs.dbvolution.query.RowDefinition" ]
import nz.co.gregs.dbvolution.DBRow; import nz.co.gregs.dbvolution.datatypes.QueryableDatatype; import nz.co.gregs.dbvolution.query.RowDefinition;
import nz.co.gregs.dbvolution.*; import nz.co.gregs.dbvolution.datatypes.*; import nz.co.gregs.dbvolution.query.*;
[ "nz.co.gregs" ]
nz.co.gregs;
2,071,922
@Override protected Point getInitialSize() { return new Point(450, 300); }
Point function() { return new Point(450, 300); }
/** * Return the initial size of the window. */
Return the initial size of the window
getInitialSize
{ "repo_name": "jnickg/Acamedia", "path": "net/jnickg/acamedia/gui/Start.java", "license": "mit", "size": 2283 }
[ "org.eclipse.swt.graphics.Point" ]
import org.eclipse.swt.graphics.Point;
import org.eclipse.swt.graphics.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
628,372
static NodeImpl getNode(NodeImpl targetNode, boolean isAcItem) throws RepositoryException { NodeImpl node; if (isAcItem) { Name ntName = ((NodeTypeImpl) targetNode.getPrimaryNodeType()).getQName(); if (ntName.equals(NT_REP_ACL)) { node = (NodeImpl) targetNode....
static NodeImpl getNode(NodeImpl targetNode, boolean isAcItem) throws RepositoryException { NodeImpl node; if (isAcItem) { Name ntName = ((NodeTypeImpl) targetNode.getPrimaryNodeType()).getQName(); if (ntName.equals(NT_REP_ACL)) { node = (NodeImpl) targetNode.getParent(); } else if (ntName.equals(NT_REP_GRANT_ACE) ntNa...
/** * Returns the given <code>targetNode</code> unless the node itself stores * access control information in which case it's nearest non-ac-parent is * searched and returned. * * @param targetNode The node for which AC information needs to be retrieved. * @param isAcItem true if the speci...
Returns the given <code>targetNode</code> unless the node itself stores access control information in which case it's nearest non-ac-parent is searched and returned
getNode
{ "repo_name": "sdmcraft/jackrabbit", "path": "jackrabbit-core/src/main/java/org/apache/jackrabbit/core/security/authorization/acl/ACLProvider.java", "license": "apache-2.0", "size": 19570 }
[ "javax.jcr.RepositoryException", "org.apache.jackrabbit.core.NodeImpl", "org.apache.jackrabbit.core.nodetype.NodeTypeImpl", "org.apache.jackrabbit.spi.Name" ]
import javax.jcr.RepositoryException; import org.apache.jackrabbit.core.NodeImpl; import org.apache.jackrabbit.core.nodetype.NodeTypeImpl; import org.apache.jackrabbit.spi.Name;
import javax.jcr.*; import org.apache.jackrabbit.core.*; import org.apache.jackrabbit.core.nodetype.*; import org.apache.jackrabbit.spi.*;
[ "javax.jcr", "org.apache.jackrabbit" ]
javax.jcr; org.apache.jackrabbit;
1,996,120
LOG.info("Creating new habitat REST client with timeout {} for {}", config.getTimeout(), config.getUrl()); Duration timeout = Duration.ofSeconds(config.getTimeout()); OkHttpClient client = new OkHttpClient().newBuilder().callTimeout(timeout).build(); Retrofit retrofit = new Retrofit.Builder()...
LOG.info(STR, config.getTimeout(), config.getUrl()); Duration timeout = Duration.ofSeconds(config.getTimeout()); OkHttpClient client = new OkHttpClient().newBuilder().callTimeout(timeout).build(); Retrofit retrofit = new Retrofit.Builder().baseUrl(config.getUrl()).addConverterFactory(ScalarsConverterFactory.create()) ....
/** * Creates a new habitat uploader. * * @param config the configuration * @return the habitat uploader */
Creates a new habitat uploader
create
{ "repo_name": "bertrik/ttnhabbridge", "path": "ttnhabbridge/src/main/java/nl/sikken/bertrik/hab/habitat/HabitatUploader.java", "license": "mit", "size": 7628 }
[ "java.security.MessageDigest", "java.security.NoSuchAlgorithmException", "java.time.Duration" ]
import java.security.MessageDigest; import java.security.NoSuchAlgorithmException; import java.time.Duration;
import java.security.*; import java.time.*;
[ "java.security", "java.time" ]
java.security; java.time;
2,858,200
@AlfrescoPublicApi public interface ActionList<A extends Action> extends Serializable { boolean hasActions();
interface ActionList<A extends Action> extends Serializable { boolean function();
/** * Indicates whether there are any actions * * @return true if there are actions, false otherwise */
Indicates whether there are any actions
hasActions
{ "repo_name": "nguyentienlong/community-edition", "path": "projects/repository/source/java/org/alfresco/service/cmr/action/ActionList.java", "license": "lgpl-3.0", "size": 2440 }
[ "java.io.Serializable" ]
import java.io.Serializable;
import java.io.*;
[ "java.io" ]
java.io;
183,061
public static int findTargetTagForTouch( float eventX, float eventY, ViewGroup viewGroup, @Nullable int[] nativeViewId) { return findTargetTagAndCoordinatesForTouch( eventX, eventY, viewGroup, mEventCoords, nativeViewId); }
static int function( float eventX, float eventY, ViewGroup viewGroup, @Nullable int[] nativeViewId) { return findTargetTagAndCoordinatesForTouch( eventX, eventY, viewGroup, mEventCoords, nativeViewId); }
/** * Find touch event target view within the provided container given the coordinates provided via * {@link MotionEvent}. * * @param eventX the X screen coordinate of the touch location * @param eventY the Y screen coordinate of the touch location * @param viewGroup the container view to traverse ...
Find touch event target view within the provided container given the coordinates provided via <code>MotionEvent</code>
findTargetTagForTouch
{ "repo_name": "exponentjs/exponent", "path": "android/ReactAndroid/src/main/java/com/facebook/react/uimanager/TouchTargetHelper.java", "license": "bsd-3-clause", "size": 11298 }
[ "android.view.ViewGroup", "androidx.annotation.Nullable" ]
import android.view.ViewGroup; import androidx.annotation.Nullable;
import android.view.*; import androidx.annotation.*;
[ "android.view", "androidx.annotation" ]
android.view; androidx.annotation;
1,440,115
public void setFirstCharOfQuery(char c) { try { synchronized (checkClosed().getConnectionMutex()) { this.firstCharOfQuery = c; } } catch (SQLException e) { throw new RuntimeException(e); // FIXME: Need to evolve public interface } }
void function(char c) { try { synchronized (checkClosed().getConnectionMutex()) { this.firstCharOfQuery = c; } } catch (SQLException e) { throw new RuntimeException(e); } }
/** * Sets the first character of the query that this result set was created * from. * * @param c * the first character of the query...uppercased */
Sets the first character of the query that this result set was created from
setFirstCharOfQuery
{ "repo_name": "scopej/mysql-connector-j", "path": "src/com/mysql/jdbc/ResultSetImpl.java", "license": "gpl-2.0", "size": 287512 }
[ "java.sql.SQLException" ]
import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,886,662
public void delete(String location){ File file = new File(folder + location); boolean success = file.delete(); if(!success){ GiantTreesRevived.logWarning("Unable to delete: " + folder + location); } }
void function(String location){ File file = new File(folder + location); boolean success = file.delete(); if(!success){ GiantTreesRevived.logWarning(STR + folder + location); } }
/** * Deletes a file * @param location path */
Deletes a file
delete
{ "repo_name": "cadika-orade/GiantTreesRevived", "path": "src/io/github/cadika_orade/GiantTreesRevived/FileHandler.java", "license": "gpl-2.0", "size": 7887 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
1,301,632
public void setChannelRawData(Double[] data) { int ct = 0; int dataIdx = steps.get(steps.size() - 1).getIndex(); for (DataChannel channel : channels) { if (this.workflowChannels.contains(channel)) { this.rawData.get(channel.getName()).add(data[ct]); ...
void function(Double[] data) { int ct = 0; int dataIdx = steps.get(steps.size() - 1).getIndex(); for (DataChannel channel : channels) { if (this.workflowChannels.contains(channel)) { this.rawData.get(channel.getName()).add(data[ct]); ct++; } else { rawData.get(channel.getName()).add(channel.getDoubleValue( dataIdx)); }...
/** * Set the raw data for each channel. * @param data List of raw data values. */
Set the raw data for each channel
setChannelRawData
{ "repo_name": "willfurnass/canary-eds", "path": "canaryeds-base/src/main/java/org/canaryeds/base/EventRecord.java", "license": "apache-2.0", "size": 12931 }
[ "gov.sandia.seme.framework.DataChannel" ]
import gov.sandia.seme.framework.DataChannel;
import gov.sandia.seme.framework.*;
[ "gov.sandia.seme" ]
gov.sandia.seme;
126,885
@Test public void processInterFileTypeLinkingWithIncludeList() throws IOException, ParserException, MojoExecutionException { String searchDir = "src/test/resources/interfiletypewithinclude"; utilManager.createYangFileInfoSet(YangFileScanner.getYangFiles(searchDir)); utilMana...
void function() throws IOException, ParserException, MojoExecutionException { String searchDir = STR; utilManager.createYangFileInfoSet(YangFileScanner.getYangFiles(searchDir)); utilManager.parseYangFileInfoSet(); utilManager.createYangNodeSet(); YangNode refNode = null; YangNode selfNode = null; yangLinkerManager.crea...
/** * Checks inter file type linking with include list. */
Checks inter file type linking with include list
processInterFileTypeLinkingWithIncludeList
{ "repo_name": "shlee89/athena", "path": "utils/yangutils/plugin/src/test/java/org/onosproject/yangutils/plugin/manager/InterFileLinkingTest.java", "license": "apache-2.0", "size": 29541 }
[ "java.io.IOException", "java.util.Iterator", "java.util.ListIterator", "org.apache.maven.plugin.MojoExecutionException", "org.hamcrest.MatcherAssert", "org.hamcrest.core.Is", "org.onosproject.yangutils.datamodel.YangDerivedInfo", "org.onosproject.yangutils.datamodel.YangLeaf", "org.onosproject.yangu...
import java.io.IOException; import java.util.Iterator; import java.util.ListIterator; import org.apache.maven.plugin.MojoExecutionException; import org.hamcrest.MatcherAssert; import org.hamcrest.core.Is; import org.onosproject.yangutils.datamodel.YangDerivedInfo; import org.onosproject.yangutils.datamodel.YangLeaf; im...
import java.io.*; import java.util.*; import org.apache.maven.plugin.*; import org.hamcrest.*; import org.hamcrest.core.*; import org.onosproject.yangutils.datamodel.*; import org.onosproject.yangutils.parser.exceptions.*; import org.onosproject.yangutils.utils.io.impl.*;
[ "java.io", "java.util", "org.apache.maven", "org.hamcrest", "org.hamcrest.core", "org.onosproject.yangutils" ]
java.io; java.util; org.apache.maven; org.hamcrest; org.hamcrest.core; org.onosproject.yangutils;
1,936,682
@PUT @Path(OP_LIMIT) @Consumes(PLAIN) @Produces(PLAIN) @Description("What is the maximum number of simultaneous executing runs?") int setOperatingLimit(int operatingLimit);
@Path(OP_LIMIT) @Consumes(PLAIN) @Produces(PLAIN) @Description(STR) int setOperatingLimit(int operatingLimit);
/** * Set the maximum number of simultaneous executing runs. * * @param operatingLimit * What to set it to. * @return The new setting. */
Set the maximum number of simultaneous executing runs
setOperatingLimit
{ "repo_name": "taverna/taverna-server", "path": "server-webapp/src/main/java/org/taverna/server/master/admin/Admin.java", "license": "lgpl-2.1", "size": 30447 }
[ "javax.ws.rs.Consumes", "javax.ws.rs.Path", "javax.ws.rs.Produces", "org.apache.cxf.jaxrs.model.wadl.Description" ]
import javax.ws.rs.Consumes; import javax.ws.rs.Path; import javax.ws.rs.Produces; import org.apache.cxf.jaxrs.model.wadl.Description;
import javax.ws.rs.*; import org.apache.cxf.jaxrs.model.wadl.*;
[ "javax.ws", "org.apache.cxf" ]
javax.ws; org.apache.cxf;
1,906,340
public void readAreaCodeMap(SortedMap<Integer, String> sortedAreaCodeMap) { areaCodeMapStorage = getSmallerMapStorage(sortedAreaCodeMap); }
void function(SortedMap<Integer, String> sortedAreaCodeMap) { areaCodeMapStorage = getSmallerMapStorage(sortedAreaCodeMap); }
/** * Creates an {@link AreaCodeMap} initialized with {@code sortedAreaCodeMap}. Note that the * underlying implementation of this method is expensive thus should not be called by * time-critical applications. * * @param sortedAreaCodeMap a map from phone number prefixes to descriptions of correspondin...
Creates an <code>AreaCodeMap</code> initialized with sortedAreaCodeMap. Note that the underlying implementation of this method is expensive thus should not be called by time-critical applications
readAreaCodeMap
{ "repo_name": "rex-xxx/mt6572_x201", "path": "external/libphonenumber/java/src/com/android/i18n/phonenumbers/geocoding/AreaCodeMap.java", "license": "gpl-2.0", "size": 7644 }
[ "java.util.SortedMap" ]
import java.util.SortedMap;
import java.util.*;
[ "java.util" ]
java.util;
2,109,154
public static void writeEncodedCertificate( final Certificate cert, final File file) throws CryptException, IOException { writeEncodedCertificate( cert, new BufferedOutputStream(new FileOutputStream(file))); }
static void function( final Certificate cert, final File file) throws CryptException, IOException { writeEncodedCertificate( cert, new BufferedOutputStream(new FileOutputStream(file))); }
/** * Writes the supplied certificate to the file using its native encoding. It * is assumed that each certificate type would have only a single form of * encoding; for example, X.509 certificates would be encoded as ASN.1 DER. * * @param cert Certificate to write to file. * @param file Output fil...
Writes the supplied certificate to the file using its native encoding. It is assumed that each certificate type would have only a single form of encoding; for example, X.509 certificates would be encoded as ASN.1 DER
writeEncodedCertificate
{ "repo_name": "vdemeester/vt-crypt-tests", "path": "src/main/java/edu/vt/middleware/crypt/util/CryptWriter.java", "license": "apache-2.0", "size": 10304 }
[ "edu.vt.middleware.crypt.CryptException", "java.io.BufferedOutputStream", "java.io.File", "java.io.FileOutputStream", "java.io.IOException", "java.security.cert.Certificate" ]
import edu.vt.middleware.crypt.CryptException; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileOutputStream; import java.io.IOException; import java.security.cert.Certificate;
import edu.vt.middleware.crypt.*; import java.io.*; import java.security.cert.*;
[ "edu.vt.middleware", "java.io", "java.security" ]
edu.vt.middleware; java.io; java.security;
2,426,341
@Override public ResourceLocator getResourceLocator() { return WTSpec2EditPlugin.INSTANCE; }
ResourceLocator function() { return WTSpec2EditPlugin.INSTANCE; }
/** * Return the resource locator for this item provider's resources. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */
Return the resource locator for this item provider's resources.
getResourceLocator
{ "repo_name": "FTSRG/mondo-collab-framework", "path": "archive/workspaceTracker/VA/ikerlanEMF.edit/src/eu/mondo/collaboration/operationtracemodel/example/WTSpec/provider/WTCParamItemProvider.java", "license": "epl-1.0", "size": 3126 }
[ "org.eclipse.emf.common.util.ResourceLocator" ]
import org.eclipse.emf.common.util.ResourceLocator;
import org.eclipse.emf.common.util.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
2,356,303
@Mode(TestMode.LITE) @Test public void JwtConsumerApiConfigTests_single_valid_amr() throws Exception { builder.setClaim("amr", new String[] { "OTP", "iris", "pwd", "kba" }); String jwtToken = buildToken(); Expectations expectations = addGoodConsumerClientResponseAndClaimsExpectatio...
@Mode(TestMode.LITE) void function() throws Exception { builder.setClaim("amr", new String[] { "OTP", "iris", "pwd", "kba" }); String jwtToken = buildToken(); Expectations expectations = addGoodConsumerClientResponseAndClaimsExpectations(); Page response = actions.invokeJwtConsumer(_testName, consumerServer, STR, jwtTo...
/** * server.xml has a config that has authenticationMethodsReferences set to * "OTP iris". For single value (not array) in server.xml, the provided * jwtClaim must include all the required values from server and any other. * We expect a successful outcome since the provided values includes the ...
server.xml has a config that has authenticationMethodsReferences set to "OTP iris". For single value (not array) in server.xml, the provided jwtClaim must include all the required values from server and any other. We expect a successful outcome since the provided values includes the required values
JwtConsumerApiConfigTests_single_valid_amr
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.security.jwt_fat.consumer/fat/src/com/ibm/ws/security/jwt/fat/consumer/JwtConsumerApiConfigTests.java", "license": "epl-1.0", "size": 109831 }
[ "com.gargoylesoftware.htmlunit.Page", "com.ibm.ws.security.fat.common.expectations.Expectations" ]
import com.gargoylesoftware.htmlunit.Page; import com.ibm.ws.security.fat.common.expectations.Expectations;
import com.gargoylesoftware.htmlunit.*; import com.ibm.ws.security.fat.common.expectations.*;
[ "com.gargoylesoftware.htmlunit", "com.ibm.ws" ]
com.gargoylesoftware.htmlunit; com.ibm.ws;
663,285
public static String buildXpathHasProperty(String property) { StringBuilder builder = new StringBuilder(); if (CommonUtils.isEmpty(property) == false) { builder.append("(not(@").append(property).append(") or @") .append(property).append("='' or @") .append(property).append...
static String function(String property) { StringBuilder builder = new StringBuilder(); if (CommonUtils.isEmpty(property) == false) { builder.append(STR).append(property).append(STR) .append(property).append(STR) .append(property).append(STR); } return builder.toString(); }
/** * Build Xpath query for check has property existing. * @param property the property of node * @return String */
Build Xpath query for check has property existing
buildXpathHasProperty
{ "repo_name": "exoplatform/answers", "path": "service/src/main/java/org/exoplatform/faq/service/Utils.java", "license": "lgpl-3.0", "size": 8757 }
[ "org.exoplatform.forum.common.CommonUtils" ]
import org.exoplatform.forum.common.CommonUtils;
import org.exoplatform.forum.common.*;
[ "org.exoplatform.forum" ]
org.exoplatform.forum;
2,336,822
public static Iterable<LinkerInput> mergeInputsCmdLine(NestedSet<LibraryToLink> inputs, boolean globalNeedWholeArchive, ArchiveType archiveType) { return new FilterMembersForLinkIterable(inputs, globalNeedWholeArchive, archiveType, false); }
static Iterable<LinkerInput> function(NestedSet<LibraryToLink> inputs, boolean globalNeedWholeArchive, ArchiveType archiveType) { return new FilterMembersForLinkIterable(inputs, globalNeedWholeArchive, archiveType, false); }
/** * Replace always used archives with its members. This is used to build the linker cmd line. */
Replace always used archives with its members. This is used to build the linker cmd line
mergeInputsCmdLine
{ "repo_name": "mikelikespie/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/cpp/Link.java", "license": "apache-2.0", "size": 15045 }
[ "com.google.devtools.build.lib.collect.nestedset.NestedSet", "com.google.devtools.build.lib.rules.cpp.LinkerInputs" ]
import com.google.devtools.build.lib.collect.nestedset.NestedSet; import com.google.devtools.build.lib.rules.cpp.LinkerInputs;
import com.google.devtools.build.lib.collect.nestedset.*; import com.google.devtools.build.lib.rules.cpp.*;
[ "com.google.devtools" ]
com.google.devtools;
2,244,386
default void removeSummarizers(String tableName, Predicate<SummarizerConfiguration> predicate) throws AccumuloException, TableNotFoundException, AccumuloSecurityException { throw new UnsupportedOperationException(); }
default void removeSummarizers(String tableName, Predicate<SummarizerConfiguration> predicate) throws AccumuloException, TableNotFoundException, AccumuloSecurityException { throw new UnsupportedOperationException(); }
/** * Removes summary generation for this table for the matching summarizers. * * @param tableName * remove summarizers from this table * @param predicate * removes all summarizers whose configuration that matches this predicate * @since 2.0.0 */
Removes summary generation for this table for the matching summarizers
removeSummarizers
{ "repo_name": "ivakegg/accumulo", "path": "core/src/main/java/org/apache/accumulo/core/client/admin/TableOperations.java", "license": "apache-2.0", "size": 43874 }
[ "java.util.function.Predicate", "org.apache.accumulo.core.client.AccumuloException", "org.apache.accumulo.core.client.AccumuloSecurityException", "org.apache.accumulo.core.client.TableNotFoundException", "org.apache.accumulo.core.client.summary.SummarizerConfiguration" ]
import java.util.function.Predicate; import org.apache.accumulo.core.client.AccumuloException; import org.apache.accumulo.core.client.AccumuloSecurityException; import org.apache.accumulo.core.client.TableNotFoundException; import org.apache.accumulo.core.client.summary.SummarizerConfiguration;
import java.util.function.*; import org.apache.accumulo.core.client.*; import org.apache.accumulo.core.client.summary.*;
[ "java.util", "org.apache.accumulo" ]
java.util; org.apache.accumulo;
1,752,782
public Collection<AbstractActor> getActors() { Set<AbstractActor> actors = getModifiableSteps().stream() .flatMap(s -> Arrays.stream(s.getActors())) .collect(Collectors.toSet()); return Collections.unmodifiableCollection(actors); }
Collection<AbstractActor> function() { Set<AbstractActor> actors = getModifiableSteps().stream() .flatMap(s -> Arrays.stream(s.getActors())) .collect(Collectors.toSet()); return Collections.unmodifiableCollection(actors); }
/** * Returns the actors contained in this model. * * @return the actors */
Returns the actors contained in this model
getActors
{ "repo_name": "bertilmuth/requirementsascode", "path": "requirementsascodecore/src/main/java/org/requirementsascode/Model.java", "license": "apache-2.0", "size": 5406 }
[ "java.util.Arrays", "java.util.Collection", "java.util.Collections", "java.util.Set", "java.util.stream.Collectors" ]
import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.Set; import java.util.stream.Collectors;
import java.util.*; import java.util.stream.*;
[ "java.util" ]
java.util;
2,580,615
public String getType() { return this.getCOSObject().getNameAsString(COSName.TYPE); }
String function() { return this.getCOSObject().getNameAsString(COSName.TYPE); }
/** * Returns the type. * * @return the type */
Returns the type
getType
{ "repo_name": "TomRoush/PdfBox-Android", "path": "library/src/main/java/com/tom_roush/pdfbox/pdmodel/documentinterchange/logicalstructure/PDStructureNode.java", "license": "apache-2.0", "size": 12046 }
[ "com.tom_roush.pdfbox.cos.COSName" ]
import com.tom_roush.pdfbox.cos.COSName;
import com.tom_roush.pdfbox.cos.*;
[ "com.tom_roush.pdfbox" ]
com.tom_roush.pdfbox;
1,051,302
public void testDrainTasksTo() { final CountDownLatch done = new CountDownLatch(1); SubFJP p = new SubFJP(); try { ForkJoinTask a = p.submit(awaiter(done)); ForkJoinTask b = p.submit(awaiter(done)); ForkJoinTask c = p.submit(awaiter(done)); Arr...
void function() { final CountDownLatch done = new CountDownLatch(1); SubFJP p = new SubFJP(); try { ForkJoinTask a = p.submit(awaiter(done)); ForkJoinTask b = p.submit(awaiter(done)); ForkJoinTask c = p.submit(awaiter(done)); ArrayList<ForkJoinTask> al = new ArrayList(); p.drainTasksTo(al); assertTrue(al.size() > 0); f...
/** * drainTasksTo transfers unexecuted submitted tasks, if present */
drainTasksTo transfers unexecuted submitted tasks, if present
testDrainTasksTo
{ "repo_name": "AdmireTheDistance/android_libcore", "path": "jsr166-tests/src/test/java/jsr166/ForkJoinPoolTest.java", "license": "gpl-2.0", "size": 33071 }
[ "java.util.ArrayList", "java.util.concurrent.CountDownLatch", "java.util.concurrent.ForkJoinTask" ]
import java.util.ArrayList; import java.util.concurrent.CountDownLatch; import java.util.concurrent.ForkJoinTask;
import java.util.*; import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,071,057
void commit(String commitMessage, String... filenames) throws GitAPIException;
void commit(String commitMessage, String... filenames) throws GitAPIException;
/** * Commit the given files if they are in the index. * * @param commitMessage the commit message. * @param filenames the name of the files which should be added. * @throws GitAPIException */
Commit the given files if they are in the index
commit
{ "repo_name": "opensource21/vsynchistory", "path": "src/main/java/com/github/opensource21/vsynchistory/service/api/GitService.java", "license": "agpl-3.0", "size": 1608 }
[ "org.eclipse.jgit.api.errors.GitAPIException" ]
import org.eclipse.jgit.api.errors.GitAPIException;
import org.eclipse.jgit.api.errors.*;
[ "org.eclipse.jgit" ]
org.eclipse.jgit;
353,308
private void accumulateTimeRunning() { timeRunningMs.getAndAdd(perfTimer.now(TimeUnit.MILLISECONDS)); perfTimer.reset().start(); }
void function() { timeRunningMs.getAndAdd(perfTimer.now(TimeUnit.MILLISECONDS)); perfTimer.reset().start(); }
/** * Helper method to measure time running. */
Helper method to measure time running
accumulateTimeRunning
{ "repo_name": "ucare-uchicago/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DirectoryScanner.java", "license": "apache-2.0", "size": 24003 }
[ "java.util.concurrent.TimeUnit" ]
import java.util.concurrent.TimeUnit;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
1,226,517
@Override public void enterAny_type(@NotNull MicroParser.Any_typeContext ctx) { }
@Override public void enterAny_type(@NotNull MicroParser.Any_typeContext ctx) { }
/** * {@inheritDoc} * <p/> * The default implementation does nothing. */
The default implementation does nothing
exitExpr
{ "repo_name": "ssabpisa/compiler-468", "path": "ssabpisa/build/MicroBaseListener.java", "license": "agpl-3.0", "size": 15720 }
[ "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;
1,050,965
@Test public void testBlockIdCKDecommission() throws Exception { final short REPL_FACTOR = 1; short NUM_DN = 2; final long blockSize = 512; boolean checkDecommissionInProgress = false; String [] racks = {"/rack1", "/rack2"}; String [] hosts = {"host1", "host2"}; Configuration conf = ne...
void function() throws Exception { final short REPL_FACTOR = 1; short NUM_DN = 2; final long blockSize = 512; boolean checkDecommissionInProgress = false; String [] racks = {STR, STR}; String [] hosts = {"host1", "host2"}; Configuration conf = new Configuration(); conf.setLong(DFSConfigKeys.DFS_BLOCK_SIZE_KEY, blockSiz...
/** * Test for blockIdCK with datanode decommission */
Test for blockIdCK with datanode decommission
testBlockIdCKDecommission
{ "repo_name": "busbey/hadoop", "path": "hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/TestFsck.java", "license": "apache-2.0", "size": 62516 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.fs.Path", "org.apache.hadoop.hdfs.DFSConfigKeys", "org.apache.hadoop.hdfs.DFSTestUtil", "org.apache.hadoop.hdfs.DistributedFileSystem", "org.apache.hadoop.hdfs.MiniDFSCluster", "org.apache.hadoop.hdfs.protocol.DatanodeInfo", "org.apache.hadoop...
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; import org.apache.hadoop.hdfs.DFSConfigKeys; import org.apache.hadoop.hdfs.DFSTestUtil; import org.apache.hadoop.hdfs.DistributedFileSystem; import org.apache.hadoop.hdfs.MiniDFSCluster; import org.apache.hadoop.hdfs.protocol.DatanodeInfo; i...
import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.hdfs.*; import org.apache.hadoop.hdfs.protocol.*; import org.apache.hadoop.hdfs.server.blockmanagement.*; import org.junit.*;
[ "org.apache.hadoop", "org.junit" ]
org.apache.hadoop; org.junit;
1,295,879
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<Response<DelegatedSubnetInner>> getByResourceGroupWithResponseAsync( String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalA...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<Response<DelegatedSubnetInner>> function( String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return Mono .error(new IllegalArgumentException...
/** * Gets details about the specified dnc DelegatedSubnet Link. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the resource. It must be a minimum of 3 characters, and a maximum of 63. * @throws IllegalArgumentExcepti...
Gets details about the specified dnc DelegatedSubnet Link
getByResourceGroupWithResponseAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/delegatednetwork/azure-resourcemanager-delegatednetwork/src/main/java/com/azure/resourcemanager/delegatednetwork/implementation/DelegatedSubnetServicesClientImpl.java", "license": "mit", "size": 79393 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.FluxUtil", "com.azure.resourcemanager.delegatednetwork.fluent.models.DelegatedSubnetInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.FluxUtil; import com.azure.resourcemanager.delegatednetwork.fluent.models.DelegatedSubnetInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.delegatednetwork.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,719,618
public void testConstructor2() { try { new LinkedBlockingQueue(0); shouldThrow(); } catch (IllegalArgumentException success) {} }
void function() { try { new LinkedBlockingQueue(0); shouldThrow(); } catch (IllegalArgumentException success) {} }
/** * Constructor throws IllegalArgumentException if capacity argument nonpositive */
Constructor throws IllegalArgumentException if capacity argument nonpositive
testConstructor2
{ "repo_name": "md-5/jdk10", "path": "test/jdk/java/util/concurrent/tck/LinkedBlockingQueueTest.java", "license": "gpl-2.0", "size": 30561 }
[ "java.util.concurrent.LinkedBlockingQueue" ]
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
788,023
protected FileSplit makeSplit(Path file, long start, long length, String[] hosts) { return new FileSplit(file, start, length, hosts); }
FileSplit function(Path file, long start, long length, String[] hosts) { return new FileSplit(file, start, length, hosts); }
/** * A factory that makes the split for this class. It can be overridden * by sub-classes to make sub-types */
A factory that makes the split for this class. It can be overridden by sub-classes to make sub-types
makeSplit
{ "repo_name": "gilv/hadoop", "path": "hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-core/src/main/java/org/apache/hadoop/mapred/FileInputFormat.java", "license": "apache-2.0", "size": 26631 }
[ "org.apache.hadoop.fs.Path" ]
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.fs.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
1,751,137
private void createHeaderRow(HSSFSheet currentSheet, int headerRowIdx) { HSSFRow headerRow; HSSFCell currentCell; Iterator<String> CONTAINER_FIELD_NAMING_MAP_Iterator = FileXLSNames.CONTAINER_FIELD_NAMING_MAP .keySet().iterator(); ...
void function(HSSFSheet currentSheet, int headerRowIdx) { HSSFRow headerRow; HSSFCell currentCell; Iterator<String> CONTAINER_FIELD_NAMING_MAP_Iterator = FileXLSNames.CONTAINER_FIELD_NAMING_MAP .keySet().iterator(); headerRow = currentSheet.createRow(headerRowIdx); int startColumnIdx = 0 ; for (int currentCellIdx = sta...
/** * Create in a work sheet row of cells with headers of data columns. * * @param currentSheet * - worksheet where to create. * @param headerRowIdx * - row number where to create, and which may should be created. */
Create in a work sheet row of cells with headers of data columns
createHeaderRow
{ "repo_name": "sclhub/ypcnv", "path": "src/main/java/ypcnv/views/impl/FileXLS.java", "license": "gpl-3.0", "size": 18941 }
[ "java.util.Iterator", "org.apache.poi.hssf.usermodel.HSSFCell", "org.apache.poi.hssf.usermodel.HSSFRow", "org.apache.poi.hssf.usermodel.HSSFSheet", "org.apache.poi.ss.usermodel.Cell" ]
import java.util.Iterator; import org.apache.poi.hssf.usermodel.HSSFCell; import org.apache.poi.hssf.usermodel.HSSFRow; import org.apache.poi.hssf.usermodel.HSSFSheet; import org.apache.poi.ss.usermodel.Cell;
import java.util.*; import org.apache.poi.hssf.usermodel.*; import org.apache.poi.ss.usermodel.*;
[ "java.util", "org.apache.poi" ]
java.util; org.apache.poi;
1,025,027
@ServiceMethod(returns = ReturnType.SINGLE) void completeRestore( String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName);
@ServiceMethod(returns = ReturnType.SINGLE) void completeRestore( String resourceGroupName, String managedInstanceName, String databaseName, String lastBackupName);
/** * Completes the restore operation on a managed database. * * @param resourceGroupName The name of the resource group that contains the resource. You can obtain this value * from the Azure Resource Manager API or the portal. * @param managedInstanceName The name of the managed instance. ...
Completes the restore operation on a managed database
completeRestore
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-sql/src/main/java/com/azure/resourcemanager/sql/fluent/ManagedDatabasesClient.java", "license": "mit", "size": 37573 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod;
import com.azure.core.annotation.*;
[ "com.azure.core" ]
com.azure.core;
808,305
public void start() { if (status.equals(PENDING)) { status = RUNNING; startDate = new Date(); } }
void function() { if (status.equals(PENDING)) { status = RUNNING; startDate = new Date(); } }
/** * Indicate that the target has started running. This will set the * target status to RUNNING and set the start date to the current time. * Start is only valid when the status of the target is PENDING. */
Indicate that the target has started running. This will set the target status to RUNNING and set the start date to the current time. Start is only valid when the status of the target is PENDING
start
{ "repo_name": "ModelN/build-management", "path": "mn-build-ant/src/main/java/com/modeln/build/ant/report/ReportParseTarget.java", "license": "mit", "size": 9683 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
2,256,166
@ServiceMethod(returns = ReturnType.SINGLE) Response<ConfigurationProfileInner> updateWithResponse( String configurationProfileName, String resourceGroupName, ConfigurationProfileUpdate parameters, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<ConfigurationProfileInner> updateWithResponse( String configurationProfileName, String resourceGroupName, ConfigurationProfileUpdate parameters, Context context);
/** * Updates a configuration profile. * * @param configurationProfileName Name of the configuration profile. * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameters Parameters supplied to update configuration profile. * @param context T...
Updates a configuration profile
updateWithResponse
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/automanage/azure-resourcemanager-automanage/src/main/java/com/azure/resourcemanager/automanage/fluent/ConfigurationProfilesClient.java", "license": "mit", "size": 10223 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.automanage.fluent.models.ConfigurationProfileInner", "com.azure.resourcemanager.automanage.models.ConfigurationProfileUpdate" ]
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.automanage.fluent.models.ConfigurationProfileInner; import com.azure.resourcemanager.automanage.models.Configuration...
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.automanage.fluent.models.*; import com.azure.resourcemanager.automanage.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,411,501
public static boolean doesProjectExist(final SWTWorkbenchBot bot, String projectName) { SWTBotView explorer = getPackageExplorer(bot); if (explorer == null) { throw new WidgetNotFoundException( "Could not find the 'Package Explorer' or 'Project Explorer' view."); } // Select the root ...
static boolean function(final SWTWorkbenchBot bot, String projectName) { SWTBotView explorer = getPackageExplorer(bot); if (explorer == null) { throw new WidgetNotFoundException( STR); } Widget explorerWidget = explorer.getWidget(); Tree explorerTree = bot.widget(widgetOfType(Tree.class), explorerWidget); SWTBotTreeIte...
/** * Returns true if the specified project can be found in the 'Package Explorer' or 'Project View', * otherwise returns false. Throws a WidgetNotFoundException exception if the 'Package Explorer' * or 'Project Explorer' view cannot be found. * * @param bot The SWTWorkbenchBot. * @param projectName ...
Returns true if the specified project can be found in the 'Package Explorer' or 'Project View', otherwise returns false. Throws a WidgetNotFoundException exception if the 'Package Explorer' or 'Project Explorer' view cannot be found
doesProjectExist
{ "repo_name": "briandealwis/gwt-eclipse-plugin", "path": "plugins/com.gwtplugins.gdt.eclipse.swtbot/src/com/google/gdt/eclipse/swtbot/SwtBotProjectActions.java", "license": "epl-1.0", "size": 15753 }
[ "org.eclipse.swt.widgets.Tree", "org.eclipse.swt.widgets.Widget", "org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot", "org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView", "org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException", "org.eclipse.swtbot.swt.finder.widgets.SWTBotTree", "org.ecli...
import org.eclipse.swt.widgets.Tree; import org.eclipse.swt.widgets.Widget; import org.eclipse.swtbot.eclipse.finder.SWTWorkbenchBot; import org.eclipse.swtbot.eclipse.finder.widgets.SWTBotView; import org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException; import org.eclipse.swtbot.swt.finder.widgets.SWTBotT...
import org.eclipse.swt.widgets.*; import org.eclipse.swtbot.eclipse.finder.*; import org.eclipse.swtbot.eclipse.finder.widgets.*; import org.eclipse.swtbot.swt.finder.exceptions.*; import org.eclipse.swtbot.swt.finder.widgets.*;
[ "org.eclipse.swt", "org.eclipse.swtbot" ]
org.eclipse.swt; org.eclipse.swtbot;
2,434,564
private static PropertyType createProperty(final String name, final Class<?> type, final int minOccurrence, final int maxOccurrence, final AttributeType<?>[] characteristics) { return new DefaultAttributeType<>(Collections.singletonMap(DefaultAttributeType.NAME_KEY, name), ty...
static PropertyType function(final String name, final Class<?> type, final int minOccurrence, final int maxOccurrence, final AttributeType<?>[] characteristics) { return new DefaultAttributeType<>(Collections.singletonMap(DefaultAttributeType.NAME_KEY, name), type, minOccurrence, maxOccurrence, null, characteristics); ...
/** * Creates a property type for the given name and type. * This is a helper method for {@link #parseFeatureType(List)}. */
Creates a property type for the given name and type. This is a helper method for <code>#parseFeatureType(List)</code>
createProperty
{ "repo_name": "Geomatys/sis", "path": "storage/sis-storage/src/main/java/org/apache/sis/internal/storage/csv/Store.java", "license": "apache-2.0", "size": 38681 }
[ "java.util.Collections", "org.apache.sis.feature.DefaultAttributeType", "org.opengis.feature.AttributeType", "org.opengis.feature.PropertyType" ]
import java.util.Collections; import org.apache.sis.feature.DefaultAttributeType; import org.opengis.feature.AttributeType; import org.opengis.feature.PropertyType;
import java.util.*; import org.apache.sis.feature.*; import org.opengis.feature.*;
[ "java.util", "org.apache.sis", "org.opengis.feature" ]
java.util; org.apache.sis; org.opengis.feature;
2,592,400
public static PropertyTypeConfiguration create (final InputStream stream) throws IOException { final Properties properties = new Properties (System.getProperties ()); if (stream != null) { properties.load (stream); stream.close (); } else { throw (new IllegalArgumentException ()); } final Prop...
static PropertyTypeConfiguration function (final InputStream stream) throws IOException { final Properties properties = new Properties (System.getProperties ()); if (stream != null) { properties.load (stream); stream.close (); } else { throw (new IllegalArgumentException ()); } final PropertyTypeConfiguration configura...
/** * Creates a configuration object and loads the configuration parameters from the specified input stream. * * @param stream * the input stream from where to load configuration parameters * @return the configuration object * @throws IOException * if an error occurred when reading...
Creates a configuration object and loads the configuration parameters from the specified input stream
create
{ "repo_name": "mosaic-cloud/mosaic-java-platform", "path": "platform-core/src/main/java/eu/mosaic_cloud/platform/implementation/v2/configuration/PropertyTypeConfiguration.java", "license": "apache-2.0", "size": 9638 }
[ "java.io.IOException", "java.io.InputStream", "java.util.Properties" ]
import java.io.IOException; import java.io.InputStream; import java.util.Properties;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,830,188
public void onResult(Status status) { if (status.isSuccess()) { // Update state and save in shared preferences. SharedPreferences.Editor editor = mSharedPreferences.edit(); editor.putBoolean(Constants.GEOFENCES_ADDED_KEY, mGeofencesAdded); editor.apply(); ...
void function(Status status) { if (status.isSuccess()) { SharedPreferences.Editor editor = mSharedPreferences.edit(); editor.putBoolean(Constants.GEOFENCES_ADDED_KEY, mGeofencesAdded); editor.apply(); Toast.makeText(mContext, mContext.getString(R.string.geofence_registered), Toast.LENGTH_SHORT).show(); } else { String ...
/** * Runs when the result of calling addGeofences() and removeGeofences() becomes available. * Either method can complete successfully or with an error. * <p> * Since this activity implements the {@link ResultCallback} interface, we are required to * define this method. * * @param st...
Runs when the result of calling addGeofences() and removeGeofences() becomes available. Either method can complete successfully or with an error. Since this activity implements the <code>ResultCallback</code> interface, we are required to define this method
onResult
{ "repo_name": "urlop/Get-GPS-0", "path": "app/src/main/java/com/example/ruby/mygetgps/services/prev_trip/DetectTripStartedBuilder.java", "license": "apache-2.0", "size": 11225 }
[ "android.content.SharedPreferences", "android.util.Log", "android.widget.Toast", "com.example.ruby.mygetgps.utils.Constants", "com.example.ruby.mygetgps.utils.GeofenceErrorMessages", "com.google.android.gms.common.api.Status" ]
import android.content.SharedPreferences; import android.util.Log; import android.widget.Toast; import com.example.ruby.mygetgps.utils.Constants; import com.example.ruby.mygetgps.utils.GeofenceErrorMessages; import com.google.android.gms.common.api.Status;
import android.content.*; import android.util.*; import android.widget.*; import com.example.ruby.mygetgps.utils.*; import com.google.android.gms.common.api.*;
[ "android.content", "android.util", "android.widget", "com.example.ruby", "com.google.android" ]
android.content; android.util; android.widget; com.example.ruby; com.google.android;
1,702,036
public static boolean isMacInvalidArgumentError(Exception e) { return U.isMacOs() && e instanceof SocketException && e.getMessage() != null && e.getMessage().toLowerCase().contains("invalid argument"); }
static boolean function(Exception e) { return U.isMacOs() && e instanceof SocketException && e.getMessage() != null && e.getMessage().toLowerCase().contains(STR); }
/** * Checks if error is MAC invalid argument error which ususally requires special handling. * * @param e Exception. * @return {@code True} if error is invalid argument error on MAC. */
Checks if error is MAC invalid argument error which ususally requires special handling
isMacInvalidArgumentError
{ "repo_name": "SomeFire/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/util/IgniteUtils.java", "license": "apache-2.0", "size": 374177 }
[ "java.net.SocketException", "org.apache.ignite.internal.util.typedef.internal.U" ]
import java.net.SocketException; import org.apache.ignite.internal.util.typedef.internal.U;
import java.net.*; import org.apache.ignite.internal.util.typedef.internal.*;
[ "java.net", "org.apache.ignite" ]
java.net; org.apache.ignite;
211,452
public void av_init_packet(Pointer<?> pkt) { Lib.av_init_packet(pkt.getPeer()); }
void function(Pointer<?> pkt) { Lib.av_init_packet(pkt.getPeer()); }
/** * Initialize optional fields of a packet with default values. * * @param pkt packet */
Initialize optional fields of a packet with default values
av_init_packet
{ "repo_name": "operutka/jlibav", "path": "jlibav/src/main/java/org/libav/avcodec/bridge/AVCodecLibrary.java", "license": "lgpl-3.0", "size": 43242 }
[ "org.bridj.Pointer" ]
import org.bridj.Pointer;
import org.bridj.*;
[ "org.bridj" ]
org.bridj;
1,282,677
private void showIncomingCallWidget(Call ringingCall) { if (DBG) log("showIncomingCallWidget()..."); // TODO: remove this once we fixed issue 6603655 // TODO: wouldn't be ok to suppress this whole request if the widget is already VISIBLE // and we don't need to reset it? ...
void function(Call ringingCall) { if (DBG) log(STR); ViewPropertyAnimator animator = mIncomingCallWidget.animate(); if (animator != null) { animator.cancel(); } mShowInCallControlsDuringHidingAnimation = false; mIncomingCallWidget.setAlpha(1.0f); boolean isSpecialCase = false; if (DualTalkUtils.isSupportDualTalk()) { i...
/** * Shows the incoming call widget and cancels any animation that may be fading it out. */
Shows the incoming call widget and cancels any animation that may be fading it out
showIncomingCallWidget
{ "repo_name": "rex-xxx/mt6572_x201", "path": "packages/apps/Phone/src/com/android/phone/InCallTouchUi.java", "license": "gpl-2.0", "size": 86173 }
[ "android.os.SystemClock", "android.view.Gravity", "android.view.View", "android.view.ViewPropertyAnimator", "android.widget.TextView", "com.android.internal.telephony.Call", "com.android.internal.telephony.PhoneConstants", "com.mediatek.phone.DualTalkUtils", "com.mediatek.phone.vt.VTCallUtils" ]
import android.os.SystemClock; import android.view.Gravity; import android.view.View; import android.view.ViewPropertyAnimator; import android.widget.TextView; import com.android.internal.telephony.Call; import com.android.internal.telephony.PhoneConstants; import com.mediatek.phone.DualTalkUtils; import com.mediatek.p...
import android.os.*; import android.view.*; import android.widget.*; import com.android.internal.telephony.*; import com.mediatek.phone.*; import com.mediatek.phone.vt.*;
[ "android.os", "android.view", "android.widget", "com.android.internal", "com.mediatek.phone" ]
android.os; android.view; android.widget; com.android.internal; com.mediatek.phone;
2,373,513
public void stop() { synchronized (mCameraLock) { mFrameProcessor.setActive(false); if (mProcessingThread != null) { try { // Wait for the thread to complete to ensure that we can't have multiple threads // executing at the same...
void function() { synchronized (mCameraLock) { mFrameProcessor.setActive(false); if (mProcessingThread != null) { try { mProcessingThread.join(); } catch (InterruptedException e) { Log.d(TAG, STR); } mProcessingThread = null; } mBytesToByteBuffer.clear(); if (mCamera != null) { mCamera.stopPreview(); mCamera.setPreview...
/** * Closes the camera and stops sending frames to the underlying frame detector. * <p/> * This camera source may be restarted again by calling {@link #start()} or * {@link #start(SurfaceHolder)}. * <p/> * Call {@link #release()} instead to completely shut down this camera source and rele...
Closes the camera and stops sending frames to the underlying frame detector. This camera source may be restarted again by calling <code>#start()</code> or <code>#start(SurfaceHolder)</code>. Call <code>#release()</code> instead to completely shut down this camera source and release the resources of the underlying detec...
stop
{ "repo_name": "kglawrence/book-park", "path": "app/src/main/java/me/kglawrence/kerilawrence/book_park/ui/camera/CameraSource.java", "license": "mit", "size": 48878 }
[ "android.os.Build", "android.util.Log" ]
import android.os.Build; import android.util.Log;
import android.os.*; import android.util.*;
[ "android.os", "android.util" ]
android.os; android.util;
1,631,206
public Dialog getParentDialog() { return GUIHelper.getParentDialog(this); }
Dialog function() { return GUIHelper.getParentDialog(this); }
/** * Tries to determine the dialog this panel is part of. * * @return the parent dialog if one exists or null if not */
Tries to determine the dialog this panel is part of
getParentDialog
{ "repo_name": "alispirit/meka", "path": "src/main/java/meka/gui/core/MekaPanel.java", "license": "gpl-3.0", "size": 2331 }
[ "java.awt.Dialog" ]
import java.awt.Dialog;
import java.awt.*;
[ "java.awt" ]
java.awt;
1,467,769
if (this.optionSource.getClass().isArray()) { renderFromArray(tagWriter); } else if (this.optionSource instanceof Collection) { renderFromCollection(tagWriter); } else if (this.optionSource instanceof Map) { renderFromMap(tagWriter); } else if (this.optionSource instanceof Class && ((Class) this....
if (this.optionSource.getClass().isArray()) { renderFromArray(tagWriter); } else if (this.optionSource instanceof Collection) { renderFromCollection(tagWriter); } else if (this.optionSource instanceof Map) { renderFromMap(tagWriter); } else if (this.optionSource instanceof Class && ((Class) this.optionSource).isEnum())...
/** * Write the '{@code option}' tags for the configured {@link #optionSource} to * the supplied {@link TagWriter}. */
Write the 'option' tags for the configured <code>#optionSource</code> to the supplied <code>TagWriter</code>
writeOptions
{ "repo_name": "kingtang/spring-learn", "path": "spring-webmvc/src/main/java/org/springframework/web/servlet/tags/form/OptionWriter.java", "license": "gpl-3.0", "size": 10310 }
[ "java.util.Collection", "java.util.Map", "javax.servlet.jsp.JspException" ]
import java.util.Collection; import java.util.Map; import javax.servlet.jsp.JspException;
import java.util.*; import javax.servlet.jsp.*;
[ "java.util", "javax.servlet" ]
java.util; javax.servlet;
2,669,382
public static int readSwappedUnsignedShort(final InputStream input) throws IOException { final int value1 = read( input ); final int value2 = read( input ); return ( ( ( value1 & 0xff ) << 0 ) + ( ( value2 & 0xff ) << 8 ) ); }
static int function(final InputStream input) throws IOException { final int value1 = read( input ); final int value2 = read( input ); return ( ( ( value1 & 0xff ) << 0 ) + ( ( value2 & 0xff ) << 8 ) ); }
/** * Reads a unsigned short (16-bit) from an InputStream. The value is * converted to the opposed endian system while reading. * @param input source InputStream * @return the value just read * @throws IOException in case of an I/O problem */
Reads a unsigned short (16-bit) from an InputStream. The value is converted to the opposed endian system while reading
readSwappedUnsignedShort
{ "repo_name": "pimtegelaar/commons-io-test3", "path": "src/main/java/org/apache/commons/io/EndianUtils.java", "license": "apache-2.0", "size": 17832 }
[ "java.io.IOException", "java.io.InputStream" ]
import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
2,031,118
public void fatal(Throwable throwable, String msg, Object arg0, Object arg1, Object arg2) { logIfEnabled(Level.FATAL, throwable, msg, arg0, arg1, arg2, null); }
void function(Throwable throwable, String msg, Object arg0, Object arg1, Object arg2) { logIfEnabled(Level.FATAL, throwable, msg, arg0, arg1, arg2, null); }
/** * Log a fatal message with a throwable. */
Log a fatal message with a throwable
fatal
{ "repo_name": "yswang0927/simplemagic", "path": "src/main/java/com/j256/simplemagic/logger/Logger.java", "license": "isc", "size": 17390 }
[ "com.j256.simplemagic.logger.Log" ]
import com.j256.simplemagic.logger.Log;
import com.j256.simplemagic.logger.*;
[ "com.j256.simplemagic" ]
com.j256.simplemagic;
1,787,167
public T searchPath(URL searchPath) { File file = FileUtil.toFile(searchPath); if (file == null) { throw new FindFileException("URL error: " + searchPath); } addPath(file); return (T) this; }
T function(URL searchPath) { File file = FileUtil.toFile(searchPath); if (file == null) { throw new FindFileException(STR + searchPath); } addPath(file); return (T) this; }
/** * Specifies the search path. Throws an exception if URL is invalid. */
Specifies the search path. Throws an exception if URL is invalid
searchPath
{ "repo_name": "wsldl123292/jodd", "path": "jodd-core/src/main/java/jodd/io/findfile/FindFile.java", "license": "bsd-3-clause", "size": 17492 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
81,915
void declareNamespace(String prefix, String uri) throws XPathException;
void declareNamespace(String prefix, String uri) throws XPathException;
/** * Declare a user-defined static prefix/namespace mapping. * * eXist internally keeps a table containing all prefix/namespace mappings it found in documents, which have been previously stored into the * database. These default mappings need not to be declared explicitely. * * @param pre...
Declare a user-defined static prefix/namespace mapping. eXist internally keeps a table containing all prefix/namespace mappings it found in documents, which have been previously stored into the database. These default mappings need not to be declared explicitely
declareNamespace
{ "repo_name": "windauer/exist", "path": "exist-core/src/main/java/org/exist/interpreter/Context.java", "license": "lgpl-2.1", "size": 27253 }
[ "org.exist.xquery.XPathException" ]
import org.exist.xquery.XPathException;
import org.exist.xquery.*;
[ "org.exist.xquery" ]
org.exist.xquery;
2,361,465
public ProductInner beginPutNonRetry400(ProductInner product) throws CloudException, IOException { return beginPutNonRetry400WithServiceResponseAsync(product).toBlocking().single().getBody(); }
ProductInner function(ProductInner product) throws CloudException, IOException { return beginPutNonRetry400WithServiceResponseAsync(product).toBlocking().single().getBody(); }
/** * Long running put request, service returns a 400 to the initial request. * * @param product Product to put * @throws CloudException exception thrown from REST call * @throws IOException exception thrown from serialization/deserialization * @return the ProductInner object if successful...
Long running put request, service returns a 400 to the initial request
beginPutNonRetry400
{ "repo_name": "tbombach/autorest", "path": "src/generator/AutoRest.Java.Azure.Fluent.Tests/src/main/java/fixtures/lro/implementation/LROSADsInner.java", "license": "mit", "size": 293065 }
[ "com.microsoft.azure.CloudException", "java.io.IOException" ]
import com.microsoft.azure.CloudException; import java.io.IOException;
import com.microsoft.azure.*; import java.io.*;
[ "com.microsoft.azure", "java.io" ]
com.microsoft.azure; java.io;
2,083,024
public WrappedAttribute build() { Preconditions.checkNotNull(packet, "packet cannot be NULL."); Preconditions.checkNotNull(attributeKey, "attributeKey cannot be NULL."); // Remember to set the base value if (Double.isNaN(baseValue)) { throw new IllegalStateException("Base value has not been set...
WrappedAttribute function() { Preconditions.checkNotNull(packet, STR); Preconditions.checkNotNull(attributeKey, STR); if (Double.isNaN(baseValue)) { throw new IllegalStateException(STR); } if (ATTRIBUTE_CONSTRUCTOR == null) { ATTRIBUTE_CONSTRUCTOR = FuzzyReflection.fromClass(MinecraftReflection.getAttributeSnapshotClas...
/** * Build a new wrapped attribute with the values of this builder. * @return The wrapped attribute. * @throws RuntimeException If anything went wrong with the reflection. */
Build a new wrapped attribute with the values of this builder
build
{ "repo_name": "HolodeckOne-Minecraft/ProtocolLib", "path": "modules/API/src/main/java/com/comphenix/protocol/wrappers/WrappedAttribute.java", "license": "gpl-2.0", "size": 12078 }
[ "com.comphenix.protocol.reflect.FuzzyReflection", "com.comphenix.protocol.reflect.fuzzy.FuzzyMethodContract", "com.comphenix.protocol.utility.MinecraftReflection", "com.google.common.base.Preconditions", "java.util.Collection" ]
import com.comphenix.protocol.reflect.FuzzyReflection; import com.comphenix.protocol.reflect.fuzzy.FuzzyMethodContract; import com.comphenix.protocol.utility.MinecraftReflection; import com.google.common.base.Preconditions; import java.util.Collection;
import com.comphenix.protocol.reflect.*; import com.comphenix.protocol.reflect.fuzzy.*; import com.comphenix.protocol.utility.*; import com.google.common.base.*; import java.util.*;
[ "com.comphenix.protocol", "com.google.common", "java.util" ]
com.comphenix.protocol; com.google.common; java.util;
1,604,031
public User getUser() { return (User) user; }
User function() { return (User) user; }
/** * Retrieves the User object representing the user currently controlling * this Session. * * @return this Session's User object */
Retrieves the User object representing the user currently controlling this Session
getUser
{ "repo_name": "Julien35/dev-courses", "path": "tutoriel-spring-mvc/lib/hsqldb/src/org/hsqldb/Session.java", "license": "mit", "size": 69190 }
[ "org.hsqldb.rights.User" ]
import org.hsqldb.rights.User;
import org.hsqldb.rights.*;
[ "org.hsqldb.rights" ]
org.hsqldb.rights;
925,156
public void setAnchor(Point2D anchor) { this.anchor = anchor; if (this.chart != null) { this.chart.setNotify(true); // force a redraw } }
void function(Point2D anchor) { this.anchor = anchor; if (this.chart != null) { this.chart.setNotify(true); } }
/** * Set the anchor point and forces a redraw of the chart (the anchor point * is used to determine the position of the crosshairs on the chart, if * they are visible). * * @param anchor the anchor ({@code null} permitted). */
Set the anchor point and forces a redraw of the chart (the anchor point is used to determine the position of the crosshairs on the chart, if they are visible)
setAnchor
{ "repo_name": "jfree/jfreechart-fse", "path": "src/main/java/org/jfree/chart/fx/ChartCanvas.java", "license": "lgpl-2.1", "size": 23025 }
[ "java.awt.geom.Point2D" ]
import java.awt.geom.Point2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
1,987,836
public synchronized ProviderCredentials getCredentials() { if (credentials == null) { credentials = loadCredentialsFromFile(); } return credentials; }
synchronized ProviderCredentials function() { if (credentials == null) { credentials = loadCredentialsFromFile(); } return credentials; }
/** * Returns the login credentials used to create connections. */
Returns the login credentials used to create connections
getCredentials
{ "repo_name": "deleidos/digitaledge-platform", "path": "commons-cloud/src/main/java/com/deleidos/rtws/commons/cloud/platform/jetset/JetSetConnectionFactory.java", "license": "apache-2.0", "size": 21479 }
[ "org.jets3t.service.security.ProviderCredentials" ]
import org.jets3t.service.security.ProviderCredentials;
import org.jets3t.service.security.*;
[ "org.jets3t.service" ]
org.jets3t.service;
1,309,625
StringBuffer mbuf = new StringBuffer(); for (int i = 0; i < mac.length; i++) { mbuf.append((int) (mac[i] >> 4) & 0x0f).append((int) mac[i] & 0x0f); if (i != 5) mbuf.append(':'); } return mbuf.toString(); } IfSmbCollector(InetAddress target) {...
StringBuffer mbuf = new StringBuffer(); for (int i = 0; i < mac.length; i++) { mbuf.append((int) (mac[i] >> 4) & 0x0f).append((int) mac[i] & 0x0f); if (i != 5) mbuf.append(':'); } return mbuf.toString(); } IfSmbCollector(InetAddress target) { m_target = target; m_isSamba = false; m_mac = null; m_addr = null; m_domain =...
/** * This method is used to convert a 6 byte MAC address into a colon * separated string. * * @param mac * The 6 byte MAC address * * @return The formatted MAC address. */
This method is used to convert a 6 byte MAC address into a colon separated string
toMacString
{ "repo_name": "bugcy013/opennms-tmp-tools", "path": "opennms-services/src/main/java/org/opennms/netmgt/capsd/IfSmbCollector.java", "license": "gpl-2.0", "size": 12175 }
[ "java.net.InetAddress" ]
import java.net.InetAddress;
import java.net.*;
[ "java.net" ]
java.net;
56,803
@Test public void ul0Outside() { Envelope request = geomFac.createEnvelope( getPositionX( 996 ), getPositionY( 2026 ), getPositionX( 998 ), getPositionY( 2032 ), null ); // center, rb: visually verified 28.10.2009 String name = "ul0Outsi...
void function() { Envelope request = geomFac.createEnvelope( getPositionX( 996 ), getPositionY( 2026 ), getPositionX( 998 ), getPositionY( 2032 ), null ); String name = STR; TiledRaster subRaster = rasterCenter.getSubRaster( request ); SimpleRaster simpleRaster = subRaster.getAsSimpleRaster(); Assert.assertEquals( 3, s...
/** * test the tile raster totally outside (e.g. only no data values). */
test the tile raster totally outside (e.g. only no data values)
ul0Outside
{ "repo_name": "deegree/deegree3", "path": "deegree-core/deegree-core-coverage/src/test/java/org/deegree/coverage/raster/integration/GriddedTileContainerTest.java", "license": "lgpl-2.1", "size": 16479 }
[ "junit.framework.Assert", "org.deegree.coverage.raster.SimpleRaster", "org.deegree.coverage.raster.TiledRaster", "org.deegree.geometry.Envelope" ]
import junit.framework.Assert; import org.deegree.coverage.raster.SimpleRaster; import org.deegree.coverage.raster.TiledRaster; import org.deegree.geometry.Envelope;
import junit.framework.*; import org.deegree.coverage.raster.*; import org.deegree.geometry.*;
[ "junit.framework", "org.deegree.coverage", "org.deegree.geometry" ]
junit.framework; org.deegree.coverage; org.deegree.geometry;
1,629,187
public RegisteryStoredQueryResponse registeryStoredQueryRequest(String patientId, EnforcePolicy enforcePolicy);
RegisteryStoredQueryResponse function(String patientId, EnforcePolicy enforcePolicy);
/** * Registery stored query request. * * @param patientId the patient id * @param enforcePolicy the enforce policy * @return the registery stored query response */
Registery stored query request
registeryStoredQueryRequest
{ "repo_name": "tlin-fei/ds4p", "path": "DS4P/access-control-service/pep/service/src/main/java/gov/samhsa/acs/pep/Pep.java", "license": "bsd-3-clause", "size": 4186 }
[ "gov.samhsa.ds4ppilot.schema.pep.RegisteryStoredQueryResponse", "gov.va.ehtac.ds4p.ws.EnforcePolicy" ]
import gov.samhsa.ds4ppilot.schema.pep.RegisteryStoredQueryResponse; import gov.va.ehtac.ds4p.ws.EnforcePolicy;
import gov.samhsa.ds4ppilot.schema.pep.*; import gov.va.ehtac.ds4p.ws.*;
[ "gov.samhsa.ds4ppilot", "gov.va.ehtac" ]
gov.samhsa.ds4ppilot; gov.va.ehtac;
2,730,187
private static boolean hasSpecializedHandlerIntents(Context context, Intent intent) { try { PackageManager pm = context.getPackageManager(); List<ResolveInfo> handlers = pm.queryIntentActivities( intent, PackageManager.GET_RESOLVED_FILTER); ...
static boolean function(Context context, Intent intent) { try { PackageManager pm = context.getPackageManager(); List<ResolveInfo> handlers = pm.queryIntentActivities( intent, PackageManager.GET_RESOLVED_FILTER); if (handlers == null handlers.size() == 0) { return false; } for (ResolveInfo resolveInfo : handlers) { Int...
/** * Used to check whether there is a specialized handler for a given intent. * @param intent The intent to check with. * @return Whether there is a specialized handler for the given intent. */
Used to check whether there is a specialized handler for a given intent
hasSpecializedHandlerIntents
{ "repo_name": "Teleburna/teleburna-gram", "path": "TMessagesProj/src/main/java/org/cafemember/messenger/support/customtabsclient/shared/CustomTabsHelper.java", "license": "gpl-2.0", "size": 6311 }
[ "android.content.Context", "android.content.Intent", "android.content.IntentFilter", "android.content.pm.PackageManager", "android.content.pm.ResolveInfo", "android.util.Log", "java.util.List" ]
import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.content.pm.PackageManager; import android.content.pm.ResolveInfo; import android.util.Log; import java.util.List;
import android.content.*; import android.content.pm.*; import android.util.*; import java.util.*;
[ "android.content", "android.util", "java.util" ]
android.content; android.util; java.util;
423,272
EmbeddedConnectionPoolDataSource dataSource = new EmbeddedConnectionPoolDataSource(); dataSource.setDatabaseName(databaseName); return dataSource; }
EmbeddedConnectionPoolDataSource dataSource = new EmbeddedConnectionPoolDataSource(); dataSource.setDatabaseName(databaseName); return dataSource; }
/** * Create datasource and validate database */
Create datasource and validate database
createDataSource
{ "repo_name": "momogentoo/ehour", "path": "eHour-persistence/src/main/java/net/rrm/ehour/persistence/datasource/DerbyDataSourceFactory.java", "license": "gpl-2.0", "size": 673 }
[ "org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource" ]
import org.apache.derby.jdbc.EmbeddedConnectionPoolDataSource;
import org.apache.derby.jdbc.*;
[ "org.apache.derby" ]
org.apache.derby;
1,100,576
public void setAliasedChildren(Map<String, Object> children) { this.aliasedChildren = children; }
void function(Map<String, Object> children) { this.aliasedChildren = children; }
/** * Setter for children for objects with aliases * * @param children * Map of children, key is alias, value is return object */
Setter for children for objects with aliases
setAliasedChildren
{ "repo_name": "OpenCode4Workspace/Watson-Work-Services-Java-SDK", "path": "wws-api/src/main/java/org/opencode4workspace/graphql/DataContainer.java", "license": "apache-2.0", "size": 8871 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
2,145,692
public ExpressionFactory getExpressionFactory() { return _elFactory; }
ExpressionFactory function() { return _elFactory; }
/** * Return this Facelet's ExpressionFactory instance * * @return internal ExpressionFactory instance */
Return this Facelet's ExpressionFactory instance
getExpressionFactory
{ "repo_name": "OpenLiberty/open-liberty", "path": "dev/com.ibm.ws.jsf.2.2/src/org/apache/myfaces/view/facelets/impl/DefaultFacelet.java", "license": "epl-1.0", "size": 24857 }
[ "javax.el.ExpressionFactory" ]
import javax.el.ExpressionFactory;
import javax.el.*;
[ "javax.el" ]
javax.el;
674,248
public void remove(final RightTuple rightTuple) { RightTupleList memory = rightTuple.getMemory(); memory.remove( rightTuple ); this.factSize--; if ( memory.first == null ) { final int index = indexOf( memory.hashCode(), this.table.le...
void function(final RightTuple rightTuple) { RightTupleList memory = rightTuple.getMemory(); memory.remove( rightTuple ); this.factSize--; if ( memory.first == null ) { final int index = indexOf( memory.hashCode(), this.table.length ); RightTupleList previous = null; RightTupleList current = (RightTupleList) this.table...
/** * We assume that this rightTuple is contained in this hash table */
We assume that this rightTuple is contained in this hash table
remove
{ "repo_name": "amckee23/drools", "path": "drools-core/src/main/java/org/drools/core/util/index/RightTupleIndexHashTable.java", "license": "apache-2.0", "size": 17918 }
[ "org.drools.core.reteoo.RightTuple" ]
import org.drools.core.reteoo.RightTuple;
import org.drools.core.reteoo.*;
[ "org.drools.core" ]
org.drools.core;
2,707,414
public Observable<generated.rx.async.vertx.tables.pojos.Something> fetchBySomedoubleObservable(List<Double> values) { return fetchObservable(Something.SOMETHING.SOMEDOUBLE,values); }
Observable<generated.rx.async.vertx.tables.pojos.Something> function(List<Double> values) { return fetchObservable(Something.SOMETHING.SOMEDOUBLE,values); }
/** * Fetch records that have <code>someDouble IN (values)</code> asynchronously */
Fetch records that have <code>someDouble IN (values)</code> asynchronously
fetchBySomedoubleObservable
{ "repo_name": "jklingsporn/vertx-jooq-async", "path": "vertx-jooq-async-generate/src/test/java/generated/rx/async/vertx/tables/daos/SomethingDao.java", "license": "mit", "size": 10456 }
[ "io.reactivex.Observable", "java.util.List" ]
import io.reactivex.Observable; import java.util.List;
import io.reactivex.*; import java.util.*;
[ "io.reactivex", "java.util" ]
io.reactivex; java.util;
225,007
ServiceFuture<byte[]> getBase64UrlEncodedAsync(final ServiceCallback<byte[]> serviceCallback);
ServiceFuture<byte[]> getBase64UrlEncodedAsync(final ServiceCallback<byte[]> serviceCallback);
/** * Get value that is base64url encoded. * * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @throws IllegalArgumentException thrown if parameters fail the validation * @return the {@link ServiceFuture} object */
Get value that is base64url encoded
getBase64UrlEncodedAsync
{ "repo_name": "veronicagg/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/bodystring/Strings.java", "license": "mit", "size": 24176 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,142,836
void addPower(Metal metal);
void addPower(Metal metal);
/** * Grant this player the given metal power * * @param metal the Metal to add */
Grant this player the given metal power
addPower
{ "repo_name": "legobmw99/Allomancy", "path": "src/main/java/com/legobmw99/allomancy/api/data/IAllomancerData.java", "license": "gpl-3.0", "size": 4591 }
[ "com.legobmw99.allomancy.api.enums.Metal" ]
import com.legobmw99.allomancy.api.enums.Metal;
import com.legobmw99.allomancy.api.enums.*;
[ "com.legobmw99.allomancy" ]
com.legobmw99.allomancy;
978,802
public void clearPeekedIDs() { peekedEventsContext.set(null); } private static class QueueRemovalThread extends Thread { private volatile boolean shutdown = false; private final InternalCache cache; public QueueRemovalThread(InternalCache cache) { this.setDaemon(true); ...
void function() { peekedEventsContext.set(null); } private static class QueueRemovalThread extends Thread { private volatile boolean shutdown = false; private final InternalCache cache; public QueueRemovalThread(InternalCache cache) { this.setDaemon(true); this.cache = cache; }
/** * Use caution while using it! */
Use caution while using it
clearPeekedIDs
{ "repo_name": "smgoller/geode", "path": "geode-core/src/main/java/org/apache/geode/internal/cache/ha/HARegionQueue.java", "license": "apache-2.0", "size": 150325 }
[ "org.apache.geode.internal.cache.InternalCache" ]
import org.apache.geode.internal.cache.InternalCache;
import org.apache.geode.internal.cache.*;
[ "org.apache.geode" ]
org.apache.geode;
1,851,835
public String[] toArgs() { final ArrayList<String> args = new ArrayList<String>(); args.add("--" + mode.toString()); if (builtInModule) args.add("--auto"); if (port >= 0) args.add("--port=" + port); if (autoext != null) { final StringBuilder sb = new StringBuilder("--auto-extensions="); ...
String[] function() { final ArrayList<String> args = new ArrayList<String>(); args.add("--" + mode.toString()); if (builtInModule) args.add(STR); if (port >= 0) args.add(STR + port); if (autoext != null) { final StringBuilder sb = new StringBuilder(STR); final Iterator<String> i = autoext.iterator(); sb.append(i.next()...
/** * Create an argument array equivalent to this <code>LaunchRequest</code>. * * @return an array which would be parsed to this <code>LaunchRequest</code> */
Create an argument array equivalent to this <code>LaunchRequest</code>
toArgs
{ "repo_name": "caiusb/vassal", "path": "src/VASSAL/launch/LaunchRequest.java", "license": "lgpl-2.1", "size": 13223 }
[ "java.util.ArrayList", "java.util.Iterator" ]
import java.util.ArrayList; import java.util.Iterator;
import java.util.*;
[ "java.util" ]
java.util;
1,871,492
protected ImageRenderer createImageRenderer() { if (isDynamicDocument) { return rendererFactory.createDynamicImageRenderer(); } else { return rendererFactory.createStaticImageRenderer(); } }
ImageRenderer function() { if (isDynamicDocument) { return rendererFactory.createDynamicImageRenderer(); } else { return rendererFactory.createStaticImageRenderer(); } }
/** * Creates a new renderer. */
Creates a new renderer
createImageRenderer
{ "repo_name": "apache/batik", "path": "batik-swing/src/main/java/org/apache/batik/swing/svg/JSVGComponent.java", "license": "apache-2.0", "size": 126403 }
[ "org.apache.batik.gvt.renderer.ImageRenderer" ]
import org.apache.batik.gvt.renderer.ImageRenderer;
import org.apache.batik.gvt.renderer.*;
[ "org.apache.batik" ]
org.apache.batik;
1,158,800
@Override public RefactoringStatus checkInitialConditions(IProgressMonitor pm) throws CoreException { RefactoringStatus result= new RefactoringStatus(); pm.beginTask("", 100); //$NON-NLS-1$ if (fSelectionStart < 0 || fSelectionLength == 0) return mergeTextSelectionStatus(result); IFile[] changedFiles= ...
RefactoringStatus function(IProgressMonitor pm) throws CoreException { RefactoringStatus result= new RefactoringStatus(); pm.beginTask("", 100); if (fSelectionStart < 0 fSelectionLength == 0) return mergeTextSelectionStatus(result); IFile[] changedFiles= ResourceUtil.getFiles(new ICompilationUnit[]{fCUnit}); result.mer...
/** * Checks if the refactoring can be activated. Activation typically means, if a * corresponding menu entry can be added to the UI. * * @param pm a progress monitor to report progress during activation checking. * @return the refactoring status describing the result of the activation check. * @throws Core...
Checks if the refactoring can be activated. Activation typically means, if a corresponding menu entry can be added to the UI
checkInitialConditions
{ "repo_name": "kumattau/JDTPatch", "path": "org.eclipse.jdt.ui/src/org/eclipse/jdt/internal/corext/refactoring/code/ExtractMethodRefactoring.java", "license": "epl-1.0", "size": 51096 }
[ "org.eclipse.core.resources.IFile", "org.eclipse.core.runtime.CoreException", "org.eclipse.core.runtime.IProgressMonitor", "org.eclipse.core.runtime.SubProgressMonitor", "org.eclipse.jdt.core.ICompilationUnit", "org.eclipse.jdt.core.dom.Modifier", "org.eclipse.jdt.internal.corext.codemanipulation.StubUt...
import org.eclipse.core.resources.IFile; import org.eclipse.core.runtime.CoreException; import org.eclipse.core.runtime.IProgressMonitor; import org.eclipse.core.runtime.SubProgressMonitor; import org.eclipse.jdt.core.ICompilationUnit; import org.eclipse.jdt.core.dom.Modifier; import org.eclipse.jdt.internal.corext.cod...
import org.eclipse.core.resources.*; import org.eclipse.core.runtime.*; import org.eclipse.jdt.core.*; import org.eclipse.jdt.core.dom.*; import org.eclipse.jdt.internal.corext.codemanipulation.*; import org.eclipse.jdt.internal.corext.refactoring.*; import org.eclipse.jdt.internal.corext.refactoring.util.*; import org...
[ "org.eclipse.core", "org.eclipse.jdt", "org.eclipse.ltk" ]
org.eclipse.core; org.eclipse.jdt; org.eclipse.ltk;
365,655
public void testSubscribeResources() throws Throwable { CmsObject cms = getCmsObject(); CmsUser user = cms.getRequestContext().getCurrentUser(); echo("Testing subscription of resources"); CmsSubscriptionManager subMan = OpenCms.getSubscriptionManager(); subMan.subscribeReso...
void function() throws Throwable { CmsObject cms = getCmsObject(); CmsUser user = cms.getRequestContext().getCurrentUser(); echo(STR); CmsSubscriptionManager subMan = OpenCms.getSubscriptionManager(); subMan.subscribeResourceFor(cms, user, STR); List<CmsResource> subscribedUserResources = subMan.readAllSubscribedResour...
/** * Test subscription of resources.<p> * * @throws Throwable if something goes wrong */
Test subscription of resources
testSubscribeResources
{ "repo_name": "ggiudetti/opencms-core", "path": "test/org/opencms/db/TestSubscriptionManager.java", "license": "lgpl-2.1", "size": 10961 }
[ "java.util.List", "org.opencms.file.CmsObject", "org.opencms.file.CmsResource", "org.opencms.file.CmsUser", "org.opencms.main.OpenCms" ]
import java.util.List; import org.opencms.file.CmsObject; import org.opencms.file.CmsResource; import org.opencms.file.CmsUser; import org.opencms.main.OpenCms;
import java.util.*; import org.opencms.file.*; import org.opencms.main.*;
[ "java.util", "org.opencms.file", "org.opencms.main" ]
java.util; org.opencms.file; org.opencms.main;
1,083,153
public static ConceptVersionBI getConceptVersion(int nid) { return getConceptVersion(nid, getViewCoordinate()); }
static ConceptVersionBI function(int nid) { return getConceptVersion(nid, getViewCoordinate()); }
/** * Get the ConceptVersion identified by NID on the ViewCoordinate configured by {@link #getViewCoordinate()} but * only if the concept exists at that point. Returns null otherwise. */
Get the ConceptVersion identified by NID on the ViewCoordinate configured by <code>#getViewCoordinate()</code> but only if the concept exists at that point. Returns null otherwise
getConceptVersion
{ "repo_name": "vaskaloidis/va-isaac-gui", "path": "otf-util/src/main/java/gov/va/isaac/util/OTFUtility.java", "license": "apache-2.0", "size": 50532 }
[ "org.ihtsdo.otf.tcc.api.concept.ConceptVersionBI" ]
import org.ihtsdo.otf.tcc.api.concept.ConceptVersionBI;
import org.ihtsdo.otf.tcc.api.concept.*;
[ "org.ihtsdo.otf" ]
org.ihtsdo.otf;
1,604,560
void identifyAndFixTmpHoplogs(FileSystem fs) throws IOException, ForceReattemptException { logger.fine("Fixing temporary hoplogs"); // A different filesystem is passed to this function for the following reason: // For HDFS, if a file wasn't closed properly last time, // while calling FileSystem...
void identifyAndFixTmpHoplogs(FileSystem fs) throws IOException, ForceReattemptException { logger.fine(STR);
/** * Fixes the size of hoplogs that were not closed properly last time. * Such hoplogs are *.tmphop files. Identify them and open them and close * them, this fixes the size. After doing this rename them to *.hop. * * @throws IOException * @throws ForceReattemptException */
Fixes the size of hoplogs that were not closed properly last time. Such hoplogs are *.tmphop files. Identify them and open them and close them, this fixes the size. After doing this rename them to *.hop
identifyAndFixTmpHoplogs
{ "repo_name": "papicella/snappy-store", "path": "gemfire-core/src/main/java/com/gemstone/gemfire/cache/hdfs/internal/hoplog/HDFSUnsortedHoplogOrganizer.java", "license": "apache-2.0", "size": 16113 }
[ "com.gemstone.gemfire.internal.cache.ForceReattemptException", "java.io.IOException", "org.apache.hadoop.fs.FileSystem" ]
import com.gemstone.gemfire.internal.cache.ForceReattemptException; import java.io.IOException; import org.apache.hadoop.fs.FileSystem;
import com.gemstone.gemfire.internal.cache.*; import java.io.*; import org.apache.hadoop.fs.*;
[ "com.gemstone.gemfire", "java.io", "org.apache.hadoop" ]
com.gemstone.gemfire; java.io; org.apache.hadoop;
149,512
private void checkCasts(Expr expr) { if (expr instanceof CastExpr) { CastExpr cast = (CastExpr)expr; if (cast.isImplicit()) { Assert.assertFalse(expr.getType() + " == " + expr.getChild(0).getType(), expr.getType().equals(expr.getChild(0).getType())); Assert.assertFalse(expr...
void function(Expr expr) { if (expr instanceof CastExpr) { CastExpr cast = (CastExpr)expr; if (cast.isImplicit()) { Assert.assertFalse(expr.getType() + STR + expr.getChild(0).getType(), expr.getType().equals(expr.getChild(0).getType())); Assert.assertFalse(expr.debugString(), expr.getChild(0) instanceof LiteralExpr); }...
/** * Check that: * - we don't implicitly cast literals (we should have simply converted the literal * to the target type) * - we don't do redundant casts (ie, we don't cast a bigint expr to a bigint) */
Check that: - we don't implicitly cast literals (we should have simply converted the literal to the target type) - we don't do redundant casts (ie, we don't cast a bigint expr to a bigint)
checkCasts
{ "repo_name": "AtScaleInc/Impala", "path": "fe/src/test/java/com/cloudera/impala/analysis/AnalyzeExprsTest.java", "license": "apache-2.0", "size": 101216 }
[ "junit.framework.Assert" ]
import junit.framework.Assert;
import junit.framework.*;
[ "junit.framework" ]
junit.framework;
564,707
public static Collection<PublicationDetail> getNotOrphanPublications(Connection con, PublicationPK pubPK) throws SQLException { StringBuilder selectStatement = new StringBuilder(128); selectStatement.append("select * from ").append(pubPK.getTableName()); selectStatement.append(" where pubId IN (Sele...
static Collection<PublicationDetail> function(Connection con, PublicationPK pubPK) throws SQLException { StringBuilder selectStatement = new StringBuilder(128); selectStatement.append(STR).append(pubPK.getTableName()); selectStatement.append(STR).append( pubPK.getTableName()).append(STR); selectStatement.append(STR).ap...
/** * Method declaration * @param con * @param pubPK * @return * @throws SQLException * @see */
Method declaration
getNotOrphanPublications
{ "repo_name": "ebonnet/Silverpeas-Core", "path": "core-library/src/main/java/org/silverpeas/core/contribution/publication/dao/PublicationDAO.java", "license": "agpl-3.0", "size": 77502 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException", "java.util.ArrayList", "java.util.Collection", "java.util.Date", "java.util.List", "org.silverpeas.core.contribution.publication.model.PublicationDetail", "org.silverpeas.core.contribution.publicati...
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ArrayList; import java.util.Collection; import java.util.Date; import java.util.List; import org.silverpeas.core.contribution.publication.model.PublicationDetail; import org.silverpea...
import java.sql.*; import java.util.*; import org.silverpeas.core.contribution.publication.model.*; import org.silverpeas.core.persistence.jdbc.*; import org.silverpeas.core.util.*;
[ "java.sql", "java.util", "org.silverpeas.core" ]
java.sql; java.util; org.silverpeas.core;
2,001,246
public static void traceLeave(Logger log, String context, String method, long traceEnterId, Object... args) { if (!log.isTraceEnabled()) { return; } if (args.length == 0) { log.trace("LEAVE {}::{}@{} (elapsed={}us).", context, method, traceEnterId, ELAPSED_MICRO.appl...
static void function(Logger log, String context, String method, long traceEnterId, Object... args) { if (!log.isTraceEnabled()) { return; } if (args.length == 0) { log.trace(STR, context, method, traceEnterId, ELAPSED_MICRO.apply(traceEnterId)); } else { log.trace(STR, context, method, traceEnterId, args, ELAPSED_MICRO...
/** * Traces the fact that a method has exited normally. * * @param log The Logger to log to. * @param context Identifying context for the operation. For example, this can be used to differentiate between * different instances of the same object. * @param ...
Traces the fact that a method has exited normally
traceLeave
{ "repo_name": "pravega/pravega", "path": "common/src/main/java/io/pravega/common/LoggerHelpers.java", "license": "apache-2.0", "size": 5392 }
[ "org.slf4j.Logger" ]
import org.slf4j.Logger;
import org.slf4j.*;
[ "org.slf4j" ]
org.slf4j;
2,166,085
public List<Operation> value() { return this.value; }
List<Operation> function() { return this.value; }
/** * Get the value property: List of available operations. * * @return the value value. */
Get the value property: List of available operations
value
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/policyinsights/azure-resourcemanager-policyinsights/src/main/java/com/azure/resourcemanager/policyinsights/fluent/models/OperationsListResultsInner.java", "license": "mit", "size": 2370 }
[ "com.azure.resourcemanager.policyinsights.models.Operation", "java.util.List" ]
import com.azure.resourcemanager.policyinsights.models.Operation; import java.util.List;
import com.azure.resourcemanager.policyinsights.models.*; import java.util.*;
[ "com.azure.resourcemanager", "java.util" ]
com.azure.resourcemanager; java.util;
66,553
Observable<ServiceResponseWithHeaders<Void, PoolPatchHeaders>> patchWithServiceResponseAsync(String poolId, PoolPatchParameter poolPatchParameter, PoolPatchOptions poolPatchOptions);
Observable<ServiceResponseWithHeaders<Void, PoolPatchHeaders>> patchWithServiceResponseAsync(String poolId, PoolPatchParameter poolPatchParameter, PoolPatchOptions poolPatchOptions);
/** * Updates the properties of the specified Pool. * This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask. * * @param poolId The ID...
Updates the properties of the specified Pool. This only replaces the Pool properties specified in the request. For example, if the Pool has a StartTask associated with it, and a request does not specify a StartTask element, then the Pool keeps the existing StartTask
patchWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/batch/microsoft-azure-batch/src/main/java/com/microsoft/azure/batch/protocol/Pools.java", "license": "mit", "size": 116628 }
[ "com.microsoft.azure.batch.protocol.models.PoolPatchHeaders", "com.microsoft.azure.batch.protocol.models.PoolPatchOptions", "com.microsoft.azure.batch.protocol.models.PoolPatchParameter", "com.microsoft.rest.ServiceResponseWithHeaders" ]
import com.microsoft.azure.batch.protocol.models.PoolPatchHeaders; import com.microsoft.azure.batch.protocol.models.PoolPatchOptions; import com.microsoft.azure.batch.protocol.models.PoolPatchParameter; import com.microsoft.rest.ServiceResponseWithHeaders;
import com.microsoft.azure.batch.protocol.models.*; import com.microsoft.rest.*;
[ "com.microsoft.azure", "com.microsoft.rest" ]
com.microsoft.azure; com.microsoft.rest;
2,915,121
@Inline private void genExplicitNullCheck(Assembler asm, GPR objRefReg) { if (generateBoundsChecks) { // compare to zero asm.emitCMP_Reg_Imm(objRefReg, 0); // Jmp around trap if index is OK asm.emitBranchLikelyNextInstruction(); ForwardReference fr = asm.forwardJcc(Assembler.NE); ...
void function(Assembler asm, GPR objRefReg) { if (generateBoundsChecks) { asm.emitCMP_Reg_Imm(objRefReg, 0); asm.emitBranchLikelyNextInstruction(); ForwardReference fr = asm.forwardJcc(Assembler.NE); asm.emitINT_Imm(RuntimeEntrypoints.TRAP_NULL_POINTER + RVM_TRAP_BASE); fr.resolve(asm); } }
/** * Generate an explicit null check, trapping if the register is null * otherwise falling through. * @param asm the assembler to generate into * @param objRefReg the register containing the array reference */
Generate an explicit null check, trapping if the register is null otherwise falling through
genExplicitNullCheck
{ "repo_name": "ut-osa/laminar", "path": "jikesrvm-3.0.0/rvm/src/org/jikesrvm/compilers/baseline/ia32/BaselineCompilerImpl.java", "license": "bsd-3-clause", "size": 160544 }
[ "org.jikesrvm.compilers.common.assembler.ForwardReference", "org.jikesrvm.compilers.common.assembler.ia32.Assembler", "org.jikesrvm.runtime.RuntimeEntrypoints" ]
import org.jikesrvm.compilers.common.assembler.ForwardReference; import org.jikesrvm.compilers.common.assembler.ia32.Assembler; import org.jikesrvm.runtime.RuntimeEntrypoints;
import org.jikesrvm.compilers.common.assembler.*; import org.jikesrvm.compilers.common.assembler.ia32.*; import org.jikesrvm.runtime.*;
[ "org.jikesrvm.compilers", "org.jikesrvm.runtime" ]
org.jikesrvm.compilers; org.jikesrvm.runtime;
230,991
public String getPodfeedDescription(String siteId) { String feedDescription = null; try { ResourceProperties rp = getPodcastCollectionProperties(siteId); feedDescription = rp.getProperty(PODFEED_DESCRIPTION); if (feedDescription == null) { feedDescription = siteService.getSite(siteId).getTit...
String function(String siteId) { String feedDescription = null; try { ResourceProperties rp = getPodcastCollectionProperties(siteId); feedDescription = rp.getProperty(PODFEED_DESCRIPTION); if (feedDescription == null) { feedDescription = siteService.getSite(siteId).getTitle() + getMessageBundleString(FEED_DESC1_STRING)...
/** * Returns the global feed description. * * @param siteId * The site id to get the feed description from * * @return String * The global feed description */
Returns the global feed description
getPodfeedDescription
{ "repo_name": "hackbuteer59/sakai", "path": "podcasts/podcasts-impl/impl/src/java/org/sakaiproject/component/app/podcasts/BasicPodfeedService.java", "license": "apache-2.0", "size": 29689 }
[ "org.sakaiproject.api.app.podcasts.exception.PodcastException", "org.sakaiproject.entity.api.ResourceProperties", "org.sakaiproject.exception.IdUnusedException" ]
import org.sakaiproject.api.app.podcasts.exception.PodcastException; import org.sakaiproject.entity.api.ResourceProperties; import org.sakaiproject.exception.IdUnusedException;
import org.sakaiproject.api.app.podcasts.exception.*; import org.sakaiproject.entity.api.*; import org.sakaiproject.exception.*;
[ "org.sakaiproject.api", "org.sakaiproject.entity", "org.sakaiproject.exception" ]
org.sakaiproject.api; org.sakaiproject.entity; org.sakaiproject.exception;
536,697
private Node tryFoldStringSubstr(Node n, Node stringNode, Node arg1) { Preconditions.checkArgument(n.isCall()); Preconditions.checkArgument(stringNode.isString()); int start, length; String stringAsString = stringNode.getString(); // TODO(nicksantos): We really need a NodeUtil.getNumberValue ...
Node function(Node n, Node stringNode, Node arg1) { Preconditions.checkArgument(n.isCall()); Preconditions.checkArgument(stringNode.isString()); int start, length; String stringAsString = stringNode.getString(); if (arg1 != null && arg1.isNumber()) { start = (int) arg1.getDouble(); } else { return n; } Node arg2 = arg1...
/** * Try to fold .substr() calls on strings */
Try to fold .substr() calls on strings
tryFoldStringSubstr
{ "repo_name": "concavelenz/closure-compiler", "path": "src/com/google/javascript/jscomp/PeepholeReplaceKnownMethods.java", "license": "apache-2.0", "size": 23502 }
[ "com.google.common.base.Preconditions", "com.google.javascript.rhino.IR", "com.google.javascript.rhino.Node" ]
import com.google.common.base.Preconditions; import com.google.javascript.rhino.IR; import com.google.javascript.rhino.Node;
import com.google.common.base.*; import com.google.javascript.rhino.*;
[ "com.google.common", "com.google.javascript" ]
com.google.common; com.google.javascript;
641,750
public MetaProperty<Currency> currency() { return currency; }
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": "jmptrader/Strata", "path": "modules/product/src/main/java/com/opengamma/strata/product/deposit/type/ImmutableIborFixingDepositConvention.java", "license": "apache-2.0", "size": 30815 }
[ "com.opengamma.strata.basics.currency.Currency", "org.joda.beans.MetaProperty" ]
import com.opengamma.strata.basics.currency.Currency; import org.joda.beans.MetaProperty;
import com.opengamma.strata.basics.currency.*; import org.joda.beans.*;
[ "com.opengamma.strata", "org.joda.beans" ]
com.opengamma.strata; org.joda.beans;
2,468,811
Effort saveIssueTrackerTaskEfforts(Effort effort, Long isstTaskId, Long isstProjectId, String isstTaskDescription, TiTAUser user, Long titaProjectId); // void clear();
Effort saveIssueTrackerTaskEfforts(Effort effort, Long isstTaskId, Long isstProjectId, String isstTaskDescription, TiTAUser user, Long titaProjectId);
/** * Saves an effort for a issue tracker task. * * @param effort - effort * @param isstTaskId - issuetracker Task id * @param isstProjectId - issuetracker Project id * @param isstTaskDescription - task description * @param user - user * @param titaProjectId - tita project id ...
Saves an effort for a issue tracker task
saveIssueTrackerTaskEfforts
{ "repo_name": "tita/tita", "path": "tita-business/src/main/java/at/ac/tuwien/ifs/tita/business/service/time/IEffortService.java", "license": "apache-2.0", "size": 6641 }
[ "at.ac.tuwien.ifs.tita.entity.Effort", "at.ac.tuwien.ifs.tita.entity.TiTAUser" ]
import at.ac.tuwien.ifs.tita.entity.Effort; import at.ac.tuwien.ifs.tita.entity.TiTAUser;
import at.ac.tuwien.ifs.tita.entity.*;
[ "at.ac.tuwien" ]
at.ac.tuwien;
673,420
InputMethodManager imm = (InputMethodManager) Utils.getApp().getSystemService(Context.INPUT_METHOD_SERVICE); if (imm == null) { return; } imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); }
InputMethodManager imm = (InputMethodManager) Utils.getApp().getSystemService(Context.INPUT_METHOD_SERVICE); if (imm == null) { return; } imm.toggleSoftInput(InputMethodManager.SHOW_FORCED, InputMethodManager.HIDE_IMPLICIT_ONLY); }
/** * Show the soft input. */
Show the soft input
showSoftInput
{ "repo_name": "Blankj/AndroidUtilCode", "path": "lib/utilcode/src/main/java/com/blankj/utilcode/util/KeyboardUtils.java", "license": "apache-2.0", "size": 14310 }
[ "android.content.Context", "android.view.inputmethod.InputMethodManager" ]
import android.content.Context; import android.view.inputmethod.InputMethodManager;
import android.content.*; import android.view.inputmethod.*;
[ "android.content", "android.view" ]
android.content; android.view;
1,646,017