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 byte[] signDataWithPrivateKey(byte[] data) throws UnrecoverableKeyException,
KeyStoreException,
NoSuchAlgorithmException,
InvalidKeyException,
... | byte[] function(byte[] data) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, InvalidKeyException, SignatureException { if( pvtKeyStore == null ) { throw new RuntimeDroolsException( STR ); } PrivateKey pvtkey = (PrivateKey) pvtKeyStore.getKey( pvtKeyAlias, pvtKeyPassword ); Signature sig =... | /**
* Generates the signature for the given byte[] using MD5 with RSA algorithm and the
* private key with which this helper was initialised.
*
* @param data the byte[] of data to be signed
*
* @return the signature, encrypted with the private key
*
* @throws Unrecoverable... | Generates the signature for the given byte[] using MD5 with RSA algorithm and the private key with which this helper was initialised | signDataWithPrivateKey | {
"repo_name": "psiroky/drools",
"path": "drools-core/src/main/java/org/drools/core/util/KeyStoreHelper.java",
"license": "apache-2.0",
"size": 8626
} | [
"java.security.InvalidKeyException",
"java.security.KeyStoreException",
"java.security.NoSuchAlgorithmException",
"java.security.PrivateKey",
"java.security.Signature",
"java.security.SignatureException",
"java.security.UnrecoverableKeyException",
"org.drools.RuntimeDroolsException"
] | import java.security.InvalidKeyException; import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.PrivateKey; import java.security.Signature; import java.security.SignatureException; import java.security.UnrecoverableKeyException; import org.drools.RuntimeDroolsExcept... | import java.security.*; import org.drools.*; | [
"java.security",
"org.drools"
] | java.security; org.drools; | 558,259 |
void setDependency(Unit unit, short exponent) throws ApiException, RemoteException;
| void setDependency(Unit unit, short exponent) throws ApiException, RemoteException; | /**
* Set the dependency of this unit to the given <code>unit</code> by defining an exponent. To
* remove a dependency set the exponent to <code>0</code>.
*
* @param unit
* The unit this unit shall get a dependency to.
* @param exponent
* The exponent of the dependency
... | Set the dependency of this unit to the given <code>unit</code> by defining an exponent. To remove a dependency set the exponent to <code>0</code> | setDependency | {
"repo_name": "jenkinsci/piketec-tpt-plugin",
"path": "src/main/java/com/piketec/tpt/api/Unit.java",
"license": "mit",
"size": 8721
} | [
"java.rmi.RemoteException"
] | import java.rmi.RemoteException; | import java.rmi.*; | [
"java.rmi"
] | java.rmi; | 2,513,508 |
private void createTestJars(String... jars) throws IOException {
for (String jar : jars) {
mTempDir.newFile(jar);
}
} | void function(String... jars) throws IOException { for (String jar : jars) { mTempDir.newFile(jar); } } | /**
* Adds mock jars to mTempDir.
*
* @param jars The names of files to create.
* @throws IOException if the files cannot be created.
*/ | Adds mock jars to mTempDir | createTestJars | {
"repo_name": "zenoss/kiji-schema",
"path": "kiji-schema/src/test/java/org/kiji/schema/mapreduce/TestDistributedCacheJars.java",
"license": "apache-2.0",
"size": 3679
} | [
"java.io.IOException"
] | import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 472,720 |
@Test
@ConditionalIgnoreRule.ConditionalIgnore(condition = RunningOnGithubAction.class)
public void testOCSPResponder403FailClosed() {
System.setProperty(SFTrustManager.SF_OCSP_TEST_RESPONDER_URL, "http://localhost:12345/403");
System.setProperty(
SFTrustManager.SF_OCSP_RESPONSE_CACHE_SERVER_ENABL... | @ConditionalIgnoreRule.ConditionalIgnore(condition = RunningOnGithubAction.class) void function() { System.setProperty(SFTrustManager.SF_OCSP_TEST_RESPONDER_URL, STRshould failSTRStatusCode: 403")); } } | /**
* Test OCSP Responder returning HTTP 403. HTTP 403 error should be raised. NOTE: don't confuse
* with the FAIL_OPEN test case that also returns HTTP 403. It is raised because the test endpoint
* is invalid.
*/ | with the FAIL_OPEN test case that also returns HTTP 403. It is raised because the test endpoint is invalid | testOCSPResponder403FailClosed | {
"repo_name": "snowflakedb/snowflake-jdbc",
"path": "src/test/java/net/snowflake/client/jdbc/ConnectionWithOCSPModeIT.java",
"license": "apache-2.0",
"size": 17435
} | [
"net.snowflake.client.ConditionalIgnoreRule",
"net.snowflake.client.RunningOnGithubAction",
"net.snowflake.client.core.SFTrustManager"
] | import net.snowflake.client.ConditionalIgnoreRule; import net.snowflake.client.RunningOnGithubAction; import net.snowflake.client.core.SFTrustManager; | import net.snowflake.client.*; import net.snowflake.client.core.*; | [
"net.snowflake.client"
] | net.snowflake.client; | 1,297,557 |
@Column(name = "account_id", precision = 19)
public Long getAccountId(); | @Column(name = STR, precision = 19) Long function(); | /**
* Getter for <code>cattle.volume.account_id</code>.
*/ | Getter for <code>cattle.volume.account_id</code> | getAccountId | {
"repo_name": "rancherio/cattle",
"path": "modules/model/src/main/java/io/cattle/platform/core/model/Volume.java",
"license": "apache-2.0",
"size": 8200
} | [
"javax.persistence.Column"
] | import javax.persistence.Column; | import javax.persistence.*; | [
"javax.persistence"
] | javax.persistence; | 2,344,123 |
EClass getAccumulatorLimitSet(); | EClass getAccumulatorLimitSet(); | /**
* Returns the meta object for class '{@link CIM.IEC61970.Meas.AccumulatorLimitSet <em>Accumulator Limit Set</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Accumulator Limit Set</em>'.
* @see CIM.IEC61970.Meas.AccumulatorLimitSet
* @generated
*/ | Returns the meta object for class '<code>CIM.IEC61970.Meas.AccumulatorLimitSet Accumulator Limit Set</code>'. | getAccumulatorLimitSet | {
"repo_name": "georghinkel/ttc2017smartGrids",
"path": "solutions/ModelJoin/src/main/java/CIM/IEC61970/Meas/MeasPackage.java",
"license": "mit",
"size": 215537
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 2,164,659 |
public List<Signal> getSignals(int count){
List<Signal> signals = new LinkedList<Signal>() ;
for(ScanResult sr : scanResults){
Signal signal = new Signal() ;
signal.setSsid(sr.SSID) ;
signal.setBsid(sr.BSSID) ;
signal.setLevel(sr.level) ;
signal.setTimestamp(sr.timestamp) ;
signal.setCount(coun... | List<Signal> function(int count){ List<Signal> signals = new LinkedList<Signal>() ; for(ScanResult sr : scanResults){ Signal signal = new Signal() ; signal.setSsid(sr.SSID) ; signal.setBsid(sr.BSSID) ; signal.setLevel(sr.level) ; signal.setTimestamp(sr.timestamp) ; signal.setCount(count); signals.add(signal) ; } return... | /**
* get current wifi signal information list
* @param count remark that denotes in which loop these records are recorded. <br/>
* It makes it easier to depart train set and test set.
* @return
*/ | get current wifi signal information list | getSignals | {
"repo_name": "bungder/WifiCollector",
"path": "app/src/main/java/com/gordon/exp/test/as/service/WifiSignalProcessor.java",
"license": "gpl-2.0",
"size": 1814
} | [
"android.net.wifi.ScanResult",
"com.gordon.exp.test.as.domain.Signal",
"java.util.LinkedList",
"java.util.List"
] | import android.net.wifi.ScanResult; import com.gordon.exp.test.as.domain.Signal; import java.util.LinkedList; import java.util.List; | import android.net.wifi.*; import com.gordon.exp.test.as.domain.*; import java.util.*; | [
"android.net",
"com.gordon.exp",
"java.util"
] | android.net; com.gordon.exp; java.util; | 423,311 |
public Object getValueAt(int rowIndex, int columnIndex) {
final List<Object> row = dataVector.get(rowIndex);
return row.get(columnIndex);
}
| Object function(int rowIndex, int columnIndex) { final List<Object> row = dataVector.get(rowIndex); return row.get(columnIndex); } | /**
* Returns the value for the cell at <code>columnIndex</code> and <code>rowIndex</code>.
*
* @param rowIndex the row whose value is to be queried
* @param columnIndex the column whose value is to be queried
* @return the value Object at the specified cell
*/ | Returns the value for the cell at <code>columnIndex</code> and <code>rowIndex</code> | getValueAt | {
"repo_name": "eric-lemesre/OpenConcerto",
"path": "OpenConcerto/src/org/openconcerto/erp/importer/ArrayTableModel.java",
"license": "gpl-3.0",
"size": 5413
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 2,506,148 |
public void setParameters(Collection<Parameter> ps)
{
ArrayList<IKParameter> paramsToRemove = new ArrayList<IKParameter>();
// parameters.clear();
for (Parameter p : ps)
{
IKParameter ikp = getIKParameter(p.getSid());
if (ikp != null)
{... | void function(Collection<Parameter> ps) { ArrayList<IKParameter> paramsToRemove = new ArrayList<IKParameter>(); for (Parameter p : ps) { IKParameter ikp = getIKParameter(p.getSid()); if (ikp != null) { paramsToRemove.add(ikp); } } parameters.removeAll(paramsToRemove); for (Parameter p : ps) { addParameter(p); } } | /**
* Sets the parameters the parameters in ps, retaining the 'old' parameters
* that not are part of ps
*
* @param parameters
* - the list of parameters to set
*/ | Sets the parameters the parameters in ps, retaining the 'old' parameters that not are part of ps | setParameters | {
"repo_name": "ArticulatedSocialAgentsPlatform/AsapRealizer",
"path": "Engines/Animation/AsapAnimationEngine/src/asap/animationengine/procanimation/ProcAnimationMU.java",
"license": "lgpl-3.0",
"size": 44301
} | [
"java.util.ArrayList",
"java.util.Collection"
] | import java.util.ArrayList; import java.util.Collection; | import java.util.*; | [
"java.util"
] | java.util; | 619,704 |
public void setValue(String newValue) throws Interview.Fault {
InetAddress v = parse(newValue);
newStringValue = newValue;
setValue(v);
} | void function(String newValue) throws Interview.Fault { InetAddress v = parse(newValue); newStringValue = newValue; setValue(v); } | /**
* Set the current value.
* @param newValue The value to be set.
* @throws Interview.Fault (retained for compatibility; should not be thrown)
* @see #getValue
*/ | Set the current value | setValue | {
"repo_name": "Distrotech/icedtea6-1.12",
"path": "src/jtreg/com/sun/interview/InetAddressQuestion.java",
"license": "gpl-2.0",
"size": 11382
} | [
"java.net.InetAddress"
] | import java.net.InetAddress; | import java.net.*; | [
"java.net"
] | java.net; | 862,645 |
public static RowAssertionBuilder rowAssertion(OgmSessionFactory sessionFactory, String table) {
return new RowAssertionBuilder( sessionFactory, table );
} | static RowAssertionBuilder function(OgmSessionFactory sessionFactory, String table) { return new RowAssertionBuilder( sessionFactory, table ); } | /**
* Returns a {@code RowAssertionBuilder} to check a particular row.
*
* @param sessionFactory the sessionFactory
* @param table the table on which the row is located
* @return a {@code RowAssertionBuilder} to construct the assertion
*/ | Returns a RowAssertionBuilder to check a particular row | rowAssertion | {
"repo_name": "DavideD/hibernate-ogm-cassandra",
"path": "cassandra/src/test/java/org/hibernate/ogm/datastore/cassandra/utils/CassandraTestHelper.java",
"license": "lgpl-2.1",
"size": 11688
} | [
"org.hibernate.ogm.OgmSessionFactory"
] | import org.hibernate.ogm.OgmSessionFactory; | import org.hibernate.ogm.*; | [
"org.hibernate.ogm"
] | org.hibernate.ogm; | 2,285,102 |
protected void addPlayerInventory(PlayerInventory inventory, int offsetX, int offsetY) {
int rows = 3;
int cols = 9;
// Player hotbar
addInventory(inventory, 0, offsetX, offsetY + 58, 1, cols);
// Player inventory
addInventory(inventory, cols, offsetX, offsetY, rows... | void function(PlayerInventory inventory, int offsetX, int offsetY) { int rows = 3; int cols = 9; addInventory(inventory, 0, offsetX, offsetY + 58, 1, cols); addInventory(inventory, cols, offsetX, offsetY, rows, cols); } | /**
* Add player inventory and hotbar to the GUI.
* @param inventory Inventory of the player
* @param offsetX Offset to X
* @param offsetY Offset to Y
*/ | Add player inventory and hotbar to the GUI | addPlayerInventory | {
"repo_name": "CyclopsMC/CyclopsCore",
"path": "src/main/java/org/cyclops/cyclopscore/inventory/container/ContainerExtended.java",
"license": "mit",
"size": 20776
} | [
"net.minecraft.entity.player.PlayerInventory"
] | import net.minecraft.entity.player.PlayerInventory; | import net.minecraft.entity.player.*; | [
"net.minecraft.entity"
] | net.minecraft.entity; | 773,237 |
public static Iterator<ImageWriter>
getImageWritersBySuffix(String fileSuffix)
{
if (fileSuffix == null) {
throw new IllegalArgumentException("fileSuffix == null!");
}
Iterator iter;
// Ensure category is present
try {
iter = theRegistry.ge... | static Iterator<ImageWriter> function(String fileSuffix) { if (fileSuffix == null) { throw new IllegalArgumentException(STR); } Iterator iter; try { iter = theRegistry.getServiceProviders(ImageWriterSpi.class, new ContainsFilter(writerFileSuffixesMethod, fileSuffix), true); } catch (IllegalArgumentException e) { return... | /**
* Returns an <code>Iterator</code> containing all currently
* registered <code>ImageWriter</code>s that claim to be able to
* encode files with the given suffix.
*
* @param fileSuffix a <code>String</code> containing a file
* suffix (<i>e.g.</i>, "jpg" or "tiff").
*
* @return... | Returns an <code>Iterator</code> containing all currently registered <code>ImageWriter</code>s that claim to be able to encode files with the given suffix | getImageWritersBySuffix | {
"repo_name": "haikuowuya/android_system_code",
"path": "src/javax/imageio/ImageIO.java",
"license": "apache-2.0",
"size": 57777
} | [
"java.util.Collections",
"java.util.Iterator",
"javax.imageio.spi.ImageWriterSpi"
] | import java.util.Collections; import java.util.Iterator; import javax.imageio.spi.ImageWriterSpi; | import java.util.*; import javax.imageio.spi.*; | [
"java.util",
"javax.imageio"
] | java.util; javax.imageio; | 2,340,722 |
public InferenceEngine getInferenceEngine() {
return inferenceEngine;
}
private StatementBuffer<?> buffer;
/**
* Return the assertion buffer.
* <p>
* The assertion buffer is used to buffer statements that are being asserted
* so as to maximize... | InferenceEngine function() { return inferenceEngine; } private StatementBuffer<?> buffer; /** * Return the assertion buffer. * <p> * The assertion buffer is used to buffer statements that are being asserted * so as to maximize the opportunity for batch writes. Truth maintenance (if * enabled) will be performed no later... | /**
* The object used to compute entailments for the database.
*/ | The object used to compute entailments for the database | getInferenceEngine | {
"repo_name": "smalyshev/blazegraph",
"path": "bigdata-rdf/src/java/com/bigdata/rdf/store/DataLoader.java",
"license": "gpl-2.0",
"size": 50536
} | [
"com.bigdata.rdf.load.IStatementBufferFactory",
"com.bigdata.rdf.rio.StatementBuffer",
"com.bigdata.rdf.rules.InferenceEngine"
] | import com.bigdata.rdf.load.IStatementBufferFactory; import com.bigdata.rdf.rio.StatementBuffer; import com.bigdata.rdf.rules.InferenceEngine; | import com.bigdata.rdf.load.*; import com.bigdata.rdf.rio.*; import com.bigdata.rdf.rules.*; | [
"com.bigdata.rdf"
] | com.bigdata.rdf; | 2,879,960 |
public static NodesShutdownRequest nodesShutdownRequest(String... nodesIds) {
return new NodesShutdownRequest(nodesIds);
} | static NodesShutdownRequest function(String... nodesIds) { return new NodesShutdownRequest(nodesIds); } | /**
* Shuts down the specified nodes in the cluster.
*
* @param nodesIds The nodes ids to get the status for
* @return The nodes info request
* @see org.elasticsearch.client.ClusterAdminClient#nodesShutdown(org.elasticsearch.action.admin.cluster.node.shutdown.NodesShutdownRequest)
*/ | Shuts down the specified nodes in the cluster | nodesShutdownRequest | {
"repo_name": "fabiofumarola/elasticsearch",
"path": "src/main/java/org/elasticsearch/client/Requests.java",
"license": "apache-2.0",
"size": 21513
} | [
"org.elasticsearch.action.admin.cluster.node.shutdown.NodesShutdownRequest"
] | import org.elasticsearch.action.admin.cluster.node.shutdown.NodesShutdownRequest; | import org.elasticsearch.action.admin.cluster.node.shutdown.*; | [
"org.elasticsearch.action"
] | org.elasticsearch.action; | 1,782,417 |
private Map<Pattern, Cases> createHandlerMap() {
List<Entry<String, Pattern>> syntaxPatternList = PatternMapper
.makePatterns("Syntax");
Map<Pattern, Cases> ret = new HashMap<>();
for (Entry<String, Pattern> p : syntaxPatternList) {
String category = p.getKey();
try {
Class<?> myInstance = Class... | Map<Pattern, Cases> function() { List<Entry<String, Pattern>> syntaxPatternList = PatternMapper .makePatterns(STR); Map<Pattern, Cases> ret = new HashMap<>(); for (Entry<String, Pattern> p : syntaxPatternList) { String category = p.getKey(); try { Class<?> myInstance = Class.forName(STR + category + "Case"); Constructo... | /**
* A method creates a map that maps regex patterns to a case class
*
* @return
*/ | A method creates a map that maps regex patterns to a case class | createHandlerMap | {
"repo_name": "ggt3/SLogo",
"path": "src/parser/TreeGenerator.java",
"license": "mit",
"size": 3512
} | [
"java.lang.reflect.Constructor",
"java.lang.reflect.InvocationTargetException",
"java.util.HashMap",
"java.util.List",
"java.util.Map",
"java.util.regex.Pattern"
] | import java.lang.reflect.Constructor; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.regex.Pattern; | import java.lang.reflect.*; import java.util.*; import java.util.regex.*; | [
"java.lang",
"java.util"
] | java.lang; java.util; | 1,644,093 |
private int getAreaSize()
{
Rectangle r = path.getBounds();
double iX = Math.floor(r.getX());
double iY = Math.floor(r.getY());
int total = 0;
path.toPolygonArray();
Point2D point = new Point2D.Double(0,0);
for (int x = 0 ; x < Math.ceil(r.getWidth()); x++)
{
for ( int y = 0 ; y < Math.ceil(r.get... | int function() { Rectangle r = path.getBounds(); double iX = Math.floor(r.getX()); double iY = Math.floor(r.getY()); int total = 0; path.toPolygonArray(); Point2D point = new Point2D.Double(0,0); for (int x = 0 ; x < Math.ceil(r.getWidth()); x++) { for ( int y = 0 ; y < Math.ceil(r.getHeight()) ; y++) { point.setLocati... | /**
* Returns the number of points(pixels) in the polygon.
*
* @return See above.
*/ | Returns the number of points(pixels) in the polygon | getAreaSize | {
"repo_name": "stelfrich/openmicroscopy",
"path": "components/insight/SRC/org/openmicroscopy/shoola/util/roi/figures/MeasureBezierFigure.java",
"license": "gpl-2.0",
"size": 27352
} | [
"java.awt.Rectangle",
"java.awt.geom.Point2D"
] | import java.awt.Rectangle; import java.awt.geom.Point2D; | import java.awt.*; import java.awt.geom.*; | [
"java.awt"
] | java.awt; | 114,359 |
public String get(Context context, String url) {
final Cursor cursor = context.getContentResolver().query(getUri(OfflinerDBHelper.TABLE_CACHE),
OfflinerDBHelper.PARAMS_CACHE, OfflinerDBHelper.REQUEST_URL
+ " = '" + url + "'", null, null);
String result = null;... | String function(Context context, String url) { final Cursor cursor = context.getContentResolver().query(getUri(OfflinerDBHelper.TABLE_CACHE), OfflinerDBHelper.PARAMS_CACHE, OfflinerDBHelper.REQUEST_URL + STR + url + "'", null, null); String result = null; if (cursor != null) { if (cursor.getCount() != 0) { cursor.moveT... | /**
* Retrieve a value saved for offline access.
*
* @param context context used to retrieve the content resolver.
* @param url key.
* @return retrieved value or null if no entry match the given key.
*/ | Retrieve a value saved for offline access | get | {
"repo_name": "tvbarthel/Cheerleader",
"path": "library/src/main/java/fr/tvbarthel/cheerleader/library/offline/OfflinerQueryHandler.java",
"license": "apache-2.0",
"size": 6463
} | [
"android.content.Context",
"android.database.Cursor"
] | import android.content.Context; import android.database.Cursor; | import android.content.*; import android.database.*; | [
"android.content",
"android.database"
] | android.content; android.database; | 1,333,173 |
public int getIP() {
return Memory.peekInt(buffer, INDEX_IP, ByteOrder.BIG_ENDIAN);
} | int function() { return Memory.peekInt(buffer, INDEX_IP, ByteOrder.BIG_ENDIAN); } | /**
* Returns the IP address of the request as an integer.
*/ | Returns the IP address of the request as an integer | getIP | {
"repo_name": "JuudeDemos/android-sdk-20",
"path": "src/java/net/Socks4Message.java",
"license": "apache-2.0",
"size": 6340
} | [
"java.nio.ByteOrder"
] | import java.nio.ByteOrder; | import java.nio.*; | [
"java.nio"
] | java.nio; | 894,890 |
void copy(Path source, Path target) throws IOException;
| void copy(Path source, Path target) throws IOException; | /**
* Copy a source file to a target destination, overwriting it if it exists
*
* @param source the source file
* @param target the target file
* @throws IOException when the operation failed
*/ | Copy a source file to a target destination, overwriting it if it exists | copy | {
"repo_name": "XillioQA/xill-platform-3.4",
"path": "xill-processor/src/main/java/nl/xillio/xill/plugins/file/services/files/FileUtilities.java",
"license": "apache-2.0",
"size": 2369
} | [
"java.io.IOException",
"java.nio.file.Path"
] | import java.io.IOException; import java.nio.file.Path; | import java.io.*; import java.nio.file.*; | [
"java.io",
"java.nio"
] | java.io; java.nio; | 2,823,079 |
@BeanProperty(visualUpdate = true, description
= "If true tick marks are painted on the slider.")
public void setPaintTicks(boolean b) {
boolean oldValue = paintTicks;
paintTicks = b;
firePropertyChange("paintTicks", oldValue, paintTicks);
if (paintTicks != oldValue) ... | @BeanProperty(visualUpdate = true, description = STR) void function(boolean b) { boolean oldValue = paintTicks; paintTicks = b; firePropertyChange(STR, oldValue, paintTicks); if (paintTicks != oldValue) { revalidate(); repaint(); } } | /**
* Determines whether tick marks are painted on the slider.
* By default, this property is {@code false}.
*
* @param b whether or not tick marks should be painted
* @see #getPaintTicks
*/ | Determines whether tick marks are painted on the slider. By default, this property is false | setPaintTicks | {
"repo_name": "mirkosertic/Bytecoder",
"path": "classlib/java.desktop/src/main/resources/META-INF/modules/java.desktop/classes/javax/swing/JSlider.java",
"license": "apache-2.0",
"size": 55707
} | [
"java.beans.BeanProperty"
] | import java.beans.BeanProperty; | import java.beans.*; | [
"java.beans"
] | java.beans; | 1,026,273 |
@Nullable
private static ImmutableMap<Artifact, NestedSet<Artifact>> computeTransitivelyUsedModules(
SkyFunction.Environment env, Set<DerivedArtifact> usedModules) throws InterruptedException {
// Because this env.getValues call does not specify any exceptions, it is impossible for input
// discovery ... | static ImmutableMap<Artifact, NestedSet<Artifact>> function( SkyFunction.Environment env, Set<DerivedArtifact> usedModules) throws InterruptedException { Map<SkyKey, SkyValue> actionExecutionValues = env.getValues(Collections2.transform(usedModules, DerivedArtifact::getGeneratingActionKey)); if (env.valuesMissing()) { ... | /**
* For the given {@code usedModules}, looks up modules discovered by their generating actions.
*
* <p>The returned value only contains a map from elements of {@code usedModules} to the {@link
* #discoveredModules} required to use them. If dependent actions have not been executed yet (and
* thus {@link... | For the given usedModules, looks up modules discovered by their generating actions. The returned value only contains a map from elements of usedModules to the <code>#discoveredModules</code> required to use them. If dependent actions have not been executed yet (and thus <code>#discoveredModules</code> aren't known yet,... | computeTransitivelyUsedModules | {
"repo_name": "perezd/bazel",
"path": "src/main/java/com/google/devtools/build/lib/rules/cpp/CppCompileAction.java",
"license": "apache-2.0",
"size": 80832
} | [
"com.google.common.base.Preconditions",
"com.google.common.collect.Collections2",
"com.google.common.collect.ImmutableMap",
"com.google.devtools.build.lib.actions.ActionContinuationOrResult",
"com.google.devtools.build.lib.actions.ActionExecutionContext",
"com.google.devtools.build.lib.actions.Artifact",
... | import com.google.common.base.Preconditions; import com.google.common.collect.Collections2; import com.google.common.collect.ImmutableMap; import com.google.devtools.build.lib.actions.ActionContinuationOrResult; import com.google.devtools.build.lib.actions.ActionExecutionContext; import com.google.devtools.build.lib.ac... | import com.google.common.base.*; import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.collect.nestedset.*; import com.google.devtools.build.lib.skyframe.*; import com.google.devtools.build.skyframe.*; import java.util.*; | [
"com.google.common",
"com.google.devtools",
"java.util"
] | com.google.common; com.google.devtools; java.util; | 500,604 |
@Override
public ItemStack getStackInSlot(int slot)
{
return slot >= this.getSizeInventory() ? null : this.stackList[slot];
} | ItemStack function(int slot) { return slot >= this.getSizeInventory() ? null : this.stackList[slot]; } | /**
* Returns the stack in slot i
*/ | Returns the stack in slot i | getStackInSlot | {
"repo_name": "Lach01298/Sciencecraft",
"path": "src/main/java/com/lach/sciencecraft/inventory/InventoryCrafter.java",
"license": "gpl-3.0",
"size": 5099
} | [
"net.minecraft.item.ItemStack"
] | import net.minecraft.item.ItemStack; | import net.minecraft.item.*; | [
"net.minecraft.item"
] | net.minecraft.item; | 2,595,979 |
public static <T> NewSessionBean<T> of(BeanAttributes<T> attributes, InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager) {
EnhancedAnnotatedType<T> type = beanManager.getServices().get(ClassTransformer.class).getEnhancedAnnotatedType(ejbDescriptor.getBeanClass(), beanManager.getId());
... | static <T> NewSessionBean<T> function(BeanAttributes<T> attributes, InternalEjbDescriptor<T> ejbDescriptor, BeanManagerImpl beanManager) { EnhancedAnnotatedType<T> type = beanManager.getServices().get(ClassTransformer.class).getEnhancedAnnotatedType(ejbDescriptor.getBeanClass(), beanManager.getId()); return new NewSess... | /**
* Creates an instance of a NewEnterpriseBean from an annotated class
*
* @param clazz The annotated class
* @param beanManager The Bean manager
* @return a new NewEnterpriseBean instance
*/ | Creates an instance of a NewEnterpriseBean from an annotated class | of | {
"repo_name": "antoinesd/weld-core",
"path": "modules/ejb/src/main/java/org/jboss/weld/module/ejb/NewSessionBean.java",
"license": "apache-2.0",
"size": 2694
} | [
"javax.enterprise.inject.spi.BeanAttributes",
"org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType",
"org.jboss.weld.bean.StringBeanIdentifier",
"org.jboss.weld.manager.BeanManagerImpl",
"org.jboss.weld.resources.ClassTransformer",
"org.jboss.weld.serialization.spi.BeanIdentifier"
] | import javax.enterprise.inject.spi.BeanAttributes; import org.jboss.weld.annotated.enhanced.EnhancedAnnotatedType; import org.jboss.weld.bean.StringBeanIdentifier; import org.jboss.weld.manager.BeanManagerImpl; import org.jboss.weld.resources.ClassTransformer; import org.jboss.weld.serialization.spi.BeanIdentifier; | import javax.enterprise.inject.spi.*; import org.jboss.weld.annotated.enhanced.*; import org.jboss.weld.bean.*; import org.jboss.weld.manager.*; import org.jboss.weld.resources.*; import org.jboss.weld.serialization.spi.*; | [
"javax.enterprise",
"org.jboss.weld"
] | javax.enterprise; org.jboss.weld; | 22,531 |
public static <T extends TypeDescription.Generic> ElementMatcher.Junction<T> erasure(ElementMatcher<? super TypeDescription> matcher) {
return new ErasureMatcher<T>(matcher);
} | static <T extends TypeDescription.Generic> ElementMatcher.Junction<T> function(ElementMatcher<? super TypeDescription> matcher) { return new ErasureMatcher<T>(matcher); } | /**
* Converts a matcher for a type description into a matcher for the matched type's erasure. As a wildcard does not define an erasure,
* a runtime exception is thrown when this matcher is applied to a wildcard.
*
* @param matcher The matcher to match the matched object's raw type against.
* @... | Converts a matcher for a type description into a matcher for the matched type's erasure. As a wildcard does not define an erasure, a runtime exception is thrown when this matcher is applied to a wildcard | erasure | {
"repo_name": "DALDEI/byte-buddy",
"path": "byte-buddy-dep/src/main/java/net/bytebuddy/matcher/ElementMatchers.java",
"license": "apache-2.0",
"size": 103880
} | [
"net.bytebuddy.description.type.TypeDescription"
] | import net.bytebuddy.description.type.TypeDescription; | import net.bytebuddy.description.type.*; | [
"net.bytebuddy.description"
] | net.bytebuddy.description; | 1,827,758 |
public boolean matches(String test, List<Pattern> includes, List<Pattern> excludes) {
boolean green = false;
boolean red = false;
for (Pattern include : includes) {
if (include.matcher(test).matches()) {
green = true;
break;
} else {
... | boolean function(String test, List<Pattern> includes, List<Pattern> excludes) { boolean green = false; boolean red = false; for (Pattern include : includes) { if (include.matcher(test).matches()) { green = true; break; } else { red = true; } } boolean matches = green !red; if (matches) { green = false; red = false; for... | /**
* Check if the property name matches specified condition.
* @param test test
* @param includes includes
* @param excludes excludes
* @return true if it matches
*/ | Check if the property name matches specified condition | matches | {
"repo_name": "bfitzpat/switchyard",
"path": "components/common/common/src/main/java/org/switchyard/component/common/composer/BaseRegexContextMapper.java",
"license": "apache-2.0",
"size": 6653
} | [
"java.util.List",
"java.util.regex.Pattern"
] | import java.util.List; import java.util.regex.Pattern; | import java.util.*; import java.util.regex.*; | [
"java.util"
] | java.util; | 1,835,744 |
protected ISVNRemoteFile[] getSelectedRemoteFiles() {
ArrayList resources = null;
if (selection != null && !selection.isEmpty()) {
resources = new ArrayList();
Iterator elements = selection.iterator();
while (elements.hasNext()) {
Object next = elements.next();
if (next instanceof ISVNRemoteFile... | ISVNRemoteFile[] function() { ArrayList resources = null; if (selection != null && !selection.isEmpty()) { resources = new ArrayList(); Iterator elements = selection.iterator(); while (elements.hasNext()) { Object next = elements.next(); if (next instanceof ISVNRemoteFile) { resources.add(next); continue; } if (next in... | /**
* Returns the selected remote files
*/ | Returns the selected remote files | getSelectedRemoteFiles | {
"repo_name": "apicloudcom/APICloud-Studio",
"path": "org.tigris.subversion.subclipse.ui/src/org/tigris/subversion/subclipse/ui/actions/SVNAction.java",
"license": "gpl-3.0",
"size": 14340
} | [
"java.util.ArrayList",
"java.util.Iterator",
"org.eclipse.core.runtime.IAdaptable",
"org.tigris.subversion.subclipse.core.ISVNRemoteFile"
] | import java.util.ArrayList; import java.util.Iterator; import org.eclipse.core.runtime.IAdaptable; import org.tigris.subversion.subclipse.core.ISVNRemoteFile; | import java.util.*; import org.eclipse.core.runtime.*; import org.tigris.subversion.subclipse.core.*; | [
"java.util",
"org.eclipse.core",
"org.tigris.subversion"
] | java.util; org.eclipse.core; org.tigris.subversion; | 272,959 |
public static String bundleToString(Bundle b) {
StringBuilder sb = new StringBuilder();
for(String k: b.keySet()) {
sb.append(k);
sb.append("->");
try {
sb.append(b.get(k).toString());
} catch (Exception e) {
sb.append("<<Unknown>>");
}
sb.append("\n");
}
return sb.toStr... | static String function(Bundle b) { StringBuilder sb = new StringBuilder(); for(String k: b.keySet()) { sb.append(k); sb.append("->"); try { sb.append(b.get(k).toString()); } catch (Exception e) { sb.append(STR); } sb.append("\n"); } return sb.toString(); } | /**
* Format the passed bundle in a way that is convenient for display
*
* @param b Bundle to format
*
* @return Formatted string
*/ | Format the passed bundle in a way that is convenient for display | bundleToString | {
"repo_name": "eleybourn/Book-Catalogue",
"path": "src/com/eleybourn/bookcatalogue/utils/Utils.java",
"license": "gpl-3.0",
"size": 70928
} | [
"android.os.Bundle"
] | import android.os.Bundle; | import android.os.*; | [
"android.os"
] | android.os; | 1,492,944 |
public String cancelarMedida() {
medida = new Medida();
return "";
} | String function() { medida = new Medida(); return ""; } | /**
* Metodo que cancela el alta de medida
*
* @return
* @author JLopez
* @since 27/10/2015
* @version 1.0
*/ | Metodo que cancela el alta de medida | cancelarMedida | {
"repo_name": "jlopezjuy/NicolJeniffer",
"path": "Maven/ClothesService/ClothesWeb/src/main/java/ar/com/clothes/bean/EncargoBean.java",
"license": "gpl-2.0",
"size": 11431
} | [
"ar.com.clothes.model.Medida"
] | import ar.com.clothes.model.Medida; | import ar.com.clothes.model.*; | [
"ar.com.clothes"
] | ar.com.clothes; | 1,451,487 |
private Time checkCurrentTimeValue(long start, long end,
ResultSet rs, int column) throws SQLException
{
Time tv = checkTimeValue(rs, column);
// The time returned should be between the value
// of start and end (inclusive of both)
Time st = getTime19... | Time function(long start, long end, ResultSet rs, int column) throws SQLException { Time tv = checkTimeValue(rs, column); Time st = getTime19700101(start, cal); Time et = getTime19700101(end, cal); if (st.after(et)) { assertTrue(STR, (tv.equals(st) tv.after(st)) (tv.equals(et) tv.before(et))); } else { assertFalse(STR,... | /**
* Check the consistency of a ResultSet column that returns
* CURRENT TIME or a value set from CURRENT TIME.
*
* @param start Time the statement settng the value was executed
* @param end Time after first rs.next() or update statement was executed
* @param rs ResultSet holding the colu... | Check the consistency of a ResultSet column that returns CURRENT TIME or a value set from CURRENT TIME | checkCurrentTimeValue | {
"repo_name": "scnakandala/derby",
"path": "java/testing/org/apache/derbyTesting/functionTests/tests/lang/TimeHandlingTest.java",
"license": "apache-2.0",
"size": 34398
} | [
"java.sql.ResultSet",
"java.sql.SQLException",
"java.sql.Time"
] | import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Time; | import java.sql.*; | [
"java.sql"
] | java.sql; | 1,662,179 |
public Table createTable(TableName tableName, byte[] family) throws IOException {
return createTable(tableName, new byte[][] { family });
} | Table function(TableName tableName, byte[] family) throws IOException { return createTable(tableName, new byte[][] { family }); } | /**
* Create a table.
* @param tableName
* @param family
* @return A Table instance for the created table.
* @throws IOException
*/ | Create a table | createTable | {
"repo_name": "mahak/hbase",
"path": "hbase-server/src/test/java/org/apache/hadoop/hbase/HBaseTestingUtil.java",
"license": "apache-2.0",
"size": 151013
} | [
"java.io.IOException",
"org.apache.hadoop.hbase.client.Table"
] | import java.io.IOException; import org.apache.hadoop.hbase.client.Table; | import java.io.*; import org.apache.hadoop.hbase.client.*; | [
"java.io",
"org.apache.hadoop"
] | java.io; org.apache.hadoop; | 404,200 |
protected void doRequest(SipServletRequest req)
throws ServletException, IOException
{
String m = req.getMethod();
if ("INVITE".equals(m))
{
doInvite(req);
}
else if ("ACK".equals(m))
{
doAck(req);
}
else if ("OPTIO... | void function(SipServletRequest req) throws ServletException, IOException { String m = req.getMethod(); if (STR.equals(m)) { doInvite(req); } else if ("ACK".equals(m)) { doAck(req); } else if (STR.equals(m)) { doOptions(req); } else if ("BYE".equals(m)) { doBye(req); } else if (STR.equals(m)) { doCancel(req); } else if... | /**
* Invoked to handle incoming requests. This method dispatched requests
* to one of the doXxx methods where Xxx is the SIP method used in the
* request. Servlets will not usually need to override this method.
*
* @param req represents the incoming SIP request
* @throws ServletExcept... | Invoked to handle incoming requests. This method dispatched requests to one of the doXxx methods where Xxx is the SIP method used in the request. Servlets will not usually need to override this method | doRequest | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.websphere.javaee.servlet.sip.1.1/src/javax/servlet/sip/SipServlet.java",
"license": "epl-1.0",
"size": 31675
} | [
"java.io.IOException",
"javax.servlet.ServletException"
] | import java.io.IOException; import javax.servlet.ServletException; | import java.io.*; import javax.servlet.*; | [
"java.io",
"javax.servlet"
] | java.io; javax.servlet; | 2,751,413 |
private static List<CredentialProvider> getProviders(Configuration conf) {
String path = conf.get(CREDENTIAL_PROVIDER_PATH);
if (path == null || path.isEmpty()) {
log.debug("Failed to get CredentialProviders; no provider path specified");
return null;
}
final List<CredentialProvider> provi... | static List<CredentialProvider> function(Configuration conf) { String path = conf.get(CREDENTIAL_PROVIDER_PATH); if (path == null path.isEmpty()) { log.debug(STR); return null; } final List<CredentialProvider> providers; try { providers = CredentialProviderFactory.getProviders(conf); } catch (IOException e) { log.warn(... | /**
* Fetch/cache the configured providers.
*
* @return The List of CredentialProviders, or null if they could not be loaded
*/ | Fetch/cache the configured providers | getProviders | {
"repo_name": "milleruntime/accumulo",
"path": "core/src/main/java/org/apache/accumulo/core/conf/HadoopCredentialProvider.java",
"license": "apache-2.0",
"size": 6038
} | [
"java.io.IOException",
"java.util.List",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.security.alias.CredentialProvider",
"org.apache.hadoop.security.alias.CredentialProviderFactory"
] | import java.io.IOException; import java.util.List; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.security.alias.CredentialProvider; import org.apache.hadoop.security.alias.CredentialProviderFactory; | import java.io.*; import java.util.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.security.alias.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,364,724 |
public JsonBeanProcessor findJsonBeanProcessor(Class target) {
if (!beanProcessorMap.isEmpty()) {
Object key = jsonBeanProcessorMatcher.getMatch(target, beanProcessorMap.keySet());
return (JsonBeanProcessor) beanProcessorMap.get(key);
}
return null;
} | JsonBeanProcessor function(Class target) { if (!beanProcessorMap.isEmpty()) { Object key = jsonBeanProcessorMatcher.getMatch(target, beanProcessorMap.keySet()); return (JsonBeanProcessor) beanProcessorMap.get(key); } return null; } | /**
* Finds a JsonBeanProcessor registered to the target class.<br>
* Returns null if none is registered.<br>
* [Java -> JSON]
*
* @param target a class used for searching a JsonBeanProcessor.
*/ | Finds a JsonBeanProcessor registered to the target class. Returns null if none is registered. [Java -> JSON] | findJsonBeanProcessor | {
"repo_name": "aalmiray/Json-lib",
"path": "subprojects/json-lib-core/src/main/java/org/kordamp/json/JsonConfig.java",
"license": "apache-2.0",
"size": 52525
} | [
"org.kordamp.json.processors.JsonBeanProcessor"
] | import org.kordamp.json.processors.JsonBeanProcessor; | import org.kordamp.json.processors.*; | [
"org.kordamp.json"
] | org.kordamp.json; | 1,344,313 |
@NonNull
CreateTable withColumn(@NonNull CqlIdentifier columnName, @NonNull DataType dataType); | CreateTable withColumn(@NonNull CqlIdentifier columnName, @NonNull DataType dataType); | /**
* Adds a column definition in the CREATE TABLE statement.
*
* <p>To create the data type, use the constants and static methods in {@link DataTypes}, or
* {@link SchemaBuilder#udt(CqlIdentifier, boolean)}.
*/ | Adds a column definition in the CREATE TABLE statement. To create the data type, use the constants and static methods in <code>DataTypes</code>, or <code>SchemaBuilder#udt(CqlIdentifier, boolean)</code> | withColumn | {
"repo_name": "datastax/java-driver",
"path": "query-builder/src/main/java/com/datastax/oss/driver/api/querybuilder/schema/CreateTable.java",
"license": "apache-2.0",
"size": 3483
} | [
"com.datastax.oss.driver.api.core.CqlIdentifier",
"com.datastax.oss.driver.api.core.type.DataType",
"edu.umd.cs.findbugs.annotations.NonNull"
] | import com.datastax.oss.driver.api.core.CqlIdentifier; import com.datastax.oss.driver.api.core.type.DataType; import edu.umd.cs.findbugs.annotations.NonNull; | import com.datastax.oss.driver.api.core.*; import com.datastax.oss.driver.api.core.type.*; import edu.umd.cs.findbugs.annotations.*; | [
"com.datastax.oss",
"edu.umd.cs"
] | com.datastax.oss; edu.umd.cs; | 2,546,116 |
public String toUTCString() {
DateFormat formatter = null;
if (utcFormatter != null)
formatter = (DateFormat) utcFormatter.get();
if (formatter == null) {
// No cache yet, or cached formatter GC'd
formatter = new SimpleDateFormat(NTP_DATE_FORMAT + " 'UTC'", Locale.US);
formatter.setTimeZone(TimeZon... | String function() { DateFormat formatter = null; if (utcFormatter != null) formatter = (DateFormat) utcFormatter.get(); if (formatter == null) { formatter = new SimpleDateFormat(NTP_DATE_FORMAT + STR, Locale.US); formatter.setTimeZone(TimeZone.getTimeZone("UTC")); utcFormatter = new SoftReference(formatter); } Date ntp... | /***
* Converts this <code>TimeStamp</code> object to a <code>String</code> of
* the form: <blockquote>
*
* <pre>
* EEE, MMM dd yyyy HH:mm:ss.SSS UTC
* </pre>
*
* </blockquote> See java.text.SimpleDataFormat for code descriptions.
*
* @return a string representation of this date in UTC.
*/ | Converts this <code>TimeStamp</code> object to a <code>String</code> of the form: <code> </code> See java.text.SimpleDataFormat for code descriptions | toUTCString | {
"repo_name": "jreadstone/zsyproject",
"path": "src/org/g4studio/core/net/ntp/TimeStamp.java",
"license": "gpl-2.0",
"size": 14985
} | [
"java.lang.ref.SoftReference",
"java.text.DateFormat",
"java.text.SimpleDateFormat",
"java.util.Date",
"java.util.Locale",
"java.util.TimeZone"
] | import java.lang.ref.SoftReference; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Locale; import java.util.TimeZone; | import java.lang.ref.*; import java.text.*; import java.util.*; | [
"java.lang",
"java.text",
"java.util"
] | java.lang; java.text; java.util; | 1,602,697 |
public boolean delete(ObjectId objectId); | boolean function(ObjectId objectId); | /**
* Deletes the object with the provided {@link ObjectId id} from the database.
*
* @param objectId the id of the object to delete
* @return true if the object was deleted, false if it was not found
*/ | Deletes the object with the provided <code>ObjectId id</code> from the database | delete | {
"repo_name": "msieger/geogig",
"path": "src/core/src/main/java/org/locationtech/geogig/storage/ObjectDatabase.java",
"license": "bsd-3-clause",
"size": 8193
} | [
"org.locationtech.geogig.api.ObjectId"
] | import org.locationtech.geogig.api.ObjectId; | import org.locationtech.geogig.api.*; | [
"org.locationtech.geogig"
] | org.locationtech.geogig; | 2,537,311 |
public String casesSearch() {
return casesSearch(new CaseCriterion(), RETURN_TYPE.JSON);
}
/**
* CASE SEARCH API
* <p>
* searchCases: Search cases that are available to the organization
* <p>
* POST <apigw-url>/webservices/rest/apigw/cases/search HTTP/1.1
*
* @par... | String function() { return casesSearch(new CaseCriterion(), RETURN_TYPE.JSON); } /** * CASE SEARCH API * <p> * searchCases: Search cases that are available to the organization * <p> * POST <apigw-url>/webservices/rest/apigw/cases/search HTTP/1.1 * * @param return_type {JSON CSV } | /**
* CASE SEARCH API
* <p>
* searchCases: Search cases that are available to the organization
* <p>
* POST <apigw-url>/webservices/rest/apigw/cases/search HTTP/1.1
*
* @return a JSON String
*/ | CASE SEARCH API searchCases: Search cases that are available to the organization POST /webservices/rest/apigw/cases/search HTTP/1.1 | casesSearch | {
"repo_name": "maxird/imr-ca-sdk",
"path": "java/src/main/java/com/maximus/imr/rest/IMRRESTRequestor.java",
"license": "mit",
"size": 14009
} | [
"com.maximus.imr.rest.criterion.CaseCriterion"
] | import com.maximus.imr.rest.criterion.CaseCriterion; | import com.maximus.imr.rest.criterion.*; | [
"com.maximus.imr"
] | com.maximus.imr; | 1,097,672 |
protected void setServerSocket(final ServerSocket serverSocket) {
this.serverSocket = serverSocket;
}
| void function(final ServerSocket serverSocket) { this.serverSocket = serverSocket; } | /**
* Sets the server socket.
*
* @param serverSocket
* The new server socket.
*/ | Sets the server socket | setServerSocket | {
"repo_name": "GuyPaddock/JStratum",
"path": "src/main/java/com/redbottledesign/bitcoin/rpc/stratum/transport/tcp/StratumTcpServer.java",
"license": "lgpl-3.0",
"size": 8401
} | [
"java.net.ServerSocket"
] | import java.net.ServerSocket; | import java.net.*; | [
"java.net"
] | java.net; | 833,698 |
public void setValuesAsQueryTokens(List<QualifiedParamList> theParameters) throws InvalidRequestException; | void function(List<QualifiedParamList> theParameters) throws InvalidRequestException; | /**
*
* <p>
* See FHIR specification
* <a href="http://www.hl7.org/implement/standards/fhir/search.html#ptypes">2.2.2 Search SearchParameter Types</a>
* for information on the <b>token</b> format
* </p>
*/ | See FHIR specification 2.2.2 Search SearchParameter Types for information on the token format | setValuesAsQueryTokens | {
"repo_name": "dhf0820/hapi-fhir-1.2",
"path": "hapi-fhir-base/src/main/java/ca/uhn/fhir/model/api/IQueryParameterAnd.java",
"license": "apache-2.0",
"size": 1535
} | [
"ca.uhn.fhir.rest.method.QualifiedParamList",
"ca.uhn.fhir.rest.server.exceptions.InvalidRequestException",
"java.util.List"
] | import ca.uhn.fhir.rest.method.QualifiedParamList; import ca.uhn.fhir.rest.server.exceptions.InvalidRequestException; import java.util.List; | import ca.uhn.fhir.rest.method.*; import ca.uhn.fhir.rest.server.exceptions.*; import java.util.*; | [
"ca.uhn.fhir",
"java.util"
] | ca.uhn.fhir; java.util; | 178,443 |
@Deprecated
@Generated
@Selector("playbackState")
@NInt
public native long playbackState(); | @Selector(STR) native long function(); | /**
* Returns the current playback state of the movie player.
*/ | Returns the current playback state of the movie player | playbackState | {
"repo_name": "multi-os-engine/moe-core",
"path": "moe.apple/moe.platform.ios/src/main/java/apple/mediaplayer/MPMoviePlayerController.java",
"license": "apache-2.0",
"size": 16208
} | [
"org.moe.natj.objc.ann.Selector"
] | import org.moe.natj.objc.ann.Selector; | import org.moe.natj.objc.ann.*; | [
"org.moe.natj"
] | org.moe.natj; | 2,571,270 |
@Test
public void testBean() {
final RootPortfolio rootPortfolio = new RootPortfolio();
rootPortfolio.setPortfolio(ID);
assertNotNull(rootPortfolio.metaBean());
assertNotNull(rootPortfolio.metaBean().portfolio());
assertEquals(rootPortfolio.metaBean().portfolio().get(rootPortfolio), ID);
ass... | void function() { final RootPortfolio rootPortfolio = new RootPortfolio(); rootPortfolio.setPortfolio(ID); assertNotNull(rootPortfolio.metaBean()); assertNotNull(rootPortfolio.metaBean().portfolio()); assertEquals(rootPortfolio.metaBean().portfolio().get(rootPortfolio), ID); assertEquals(rootPortfolio.property(STR).get... | /**
* Tests the bean.
*/ | Tests the bean | testBean | {
"repo_name": "McLeodMoores/starling",
"path": "projects/core/src/test/java/com/opengamma/core/legalentity/RootPortfolioTest.java",
"license": "apache-2.0",
"size": 1893
} | [
"org.testng.Assert"
] | import org.testng.Assert; | import org.testng.*; | [
"org.testng"
] | org.testng; | 620,286 |
public List<String> getAllValue()
{
List<String> result = new ArrayList<String>();
List<Node> nodes = childNode.get("value");
for (Node node : nodes)
{
result.add(node.getText());
}
return result;
} | List<String> function() { List<String> result = new ArrayList<String>(); List<Node> nodes = childNode.get("value"); for (Node node : nodes) { result.add(node.getText()); } return result; } | /**
* Returns all <code>value</code> elements
* @return list of <code>value</code>
*/ | Returns all <code>value</code> elements | getAllValue | {
"repo_name": "forge/javaee-descriptors",
"path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/validationMapping11/GroupSequenceTypeImpl.java",
"license": "epl-1.0",
"size": 2920
} | [
"java.util.ArrayList",
"java.util.List",
"org.jboss.shrinkwrap.descriptor.spi.node.Node"
] | import java.util.ArrayList; import java.util.List; import org.jboss.shrinkwrap.descriptor.spi.node.Node; | import java.util.*; import org.jboss.shrinkwrap.descriptor.spi.node.*; | [
"java.util",
"org.jboss.shrinkwrap"
] | java.util; org.jboss.shrinkwrap; | 2,370,955 |
public static LocalDocument findIndexPageDocument(Delfoi delfoi, Locale locale) {
String urlName = String.format("%s-%s", INDEX_PAGE_URLNAME, locale.getLanguage());
return findLocalDocumentByParentAndUrlName(delfoi.getRootFolder(), urlName);
} | static LocalDocument function(Delfoi delfoi, Locale locale) { String urlName = String.format("%s-%s", INDEX_PAGE_URLNAME, locale.getLanguage()); return findLocalDocumentByParentAndUrlName(delfoi.getRootFolder(), urlName); } | /**
* Finds delfoi index page document
*
* @param delfoi delfoi
* @param locale document locale
* @return index page document or null if not defined
*/ | Finds delfoi index page document | findIndexPageDocument | {
"repo_name": "Metatavu/edelphi",
"path": "edelphi/src/main/java/fi/metatavu/edelphi/utils/MaterialUtils.java",
"license": "gpl-3.0",
"size": 9056
} | [
"fi.metatavu.edelphi.domainmodel.base.Delfoi",
"fi.metatavu.edelphi.domainmodel.resources.LocalDocument",
"java.util.Locale"
] | import fi.metatavu.edelphi.domainmodel.base.Delfoi; import fi.metatavu.edelphi.domainmodel.resources.LocalDocument; import java.util.Locale; | import fi.metatavu.edelphi.domainmodel.base.*; import fi.metatavu.edelphi.domainmodel.resources.*; import java.util.*; | [
"fi.metatavu.edelphi",
"java.util"
] | fi.metatavu.edelphi; java.util; | 1,336,725 |
private Map<String, Object> getPersonModel(Serializable nameSer) {
if (!(nameSer instanceof String)) {
return null;
}
String name = (String) nameSer;
// TODO Person URL?
Map<String, Object> model = new HashMap<String, Object>();
model.put(PERSON_USER_NAME, name);
if (personService.personExists(na... | Map<String, Object> function(Serializable nameSer) { if (!(nameSer instanceof String)) { return null; } String name = (String) nameSer; Map<String, Object> model = new HashMap<String, Object>(); model.put(PERSON_USER_NAME, name); if (personService.personExists(name)) { NodeRef person = personService.getPerson(name); Ma... | /**
* Gets the person model.
*
* @param nameSer
* the name ser
* @return the person model
*/ | Gets the person model | getPersonModel | {
"repo_name": "SirmaITT/conservation-space-1.7.0",
"path": "docker/sep-alfresco/alfresco-emf-integration/alfresco-integration-impl/src/main/java/org/alfresco/repo/web/scripts/workflow/WorkflowModelBuilder.java",
"license": "lgpl-3.0",
"size": 35307
} | [
"java.io.Serializable",
"java.util.HashMap",
"java.util.List",
"java.util.Map",
"org.alfresco.model.ContentModel",
"org.alfresco.service.cmr.repository.AssociationRef",
"org.alfresco.service.cmr.repository.NodeRef",
"org.alfresco.service.namespace.QName"
] | import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.Map; import org.alfresco.model.ContentModel; import org.alfresco.service.cmr.repository.AssociationRef; import org.alfresco.service.cmr.repository.NodeRef; import org.alfresco.service.namespace.QName; | import java.io.*; import java.util.*; import org.alfresco.model.*; import org.alfresco.service.cmr.repository.*; import org.alfresco.service.namespace.*; | [
"java.io",
"java.util",
"org.alfresco.model",
"org.alfresco.service"
] | java.io; java.util; org.alfresco.model; org.alfresco.service; | 166,229 |
@SuppressWarnings("CallToPrintStackTrace")
public static ResultCall executeQuere (String quereSQL, Object ... parans)
{
if(!EstadoConnexao.isValid) return null;
if (quereSQL != null)
{
try
{
Connection con = new Conexao().getCon();
... | @SuppressWarnings(STR) static ResultCall function (String quereSQL, Object ... parans) { if(!EstadoConnexao.isValid) return null; if (quereSQL != null) { try { Connection con = new Conexao().getCon(); CallableStatement call = mapParamsType(con, quereSQL, 1, parans); call.execute(); return new ResultCall(call, call.getR... | /**
* Serve para executar um Stantment
* @param quereSQL O sql de sera executado na base de dados
* @param parans Os parametros que seram setados para as interogacoes
* @return
*/ | Serve para executar um Stantment | executeQuere | {
"repo_name": "danie555costa/XML-SQL",
"path": "src/st/jigasoft/xmldb/connect/Call.java",
"license": "apache-2.0",
"size": 17584
} | [
"java.sql.CallableStatement",
"java.sql.Connection"
] | import java.sql.CallableStatement; import java.sql.Connection; | import java.sql.*; | [
"java.sql"
] | java.sql; | 2,116,185 |
private Region<String,String> createRegion(String name,DataPolicy dataPolicy,Compressor compressor,String diskStoreName) {
getCache().createDiskStoreFactory().create(diskStoreName);
return getCache().<String,String>createRegionFactory().setDataPolicy(dataPolicy).setDiskStoreName(diskStoreName).setCloningEnabl... | Region<String,String> function(String name,DataPolicy dataPolicy,Compressor compressor,String diskStoreName) { getCache().createDiskStoreFactory().create(diskStoreName); return getCache().<String,String>createRegionFactory().setDataPolicy(dataPolicy).setDiskStoreName(diskStoreName).setCloningEnabled(true).setCompressor... | /**
* Creates a region and assigns a compressor.
* @param name the region name.
* @param dataPolicy the type of peer.
* @param compressor a compressor.
* @return the newly created region.
*/ | Creates a region and assigns a compressor | createRegion | {
"repo_name": "sshcherbakov/incubator-geode",
"path": "gemfire-core/src/test/java/com/gemstone/gemfire/internal/compression/CompressionRegionConfigDUnitTest.java",
"license": "apache-2.0",
"size": 18440
} | [
"com.gemstone.gemfire.cache.DataPolicy",
"com.gemstone.gemfire.cache.Region",
"com.gemstone.gemfire.compression.Compressor"
] | import com.gemstone.gemfire.cache.DataPolicy; import com.gemstone.gemfire.cache.Region; import com.gemstone.gemfire.compression.Compressor; | import com.gemstone.gemfire.cache.*; import com.gemstone.gemfire.compression.*; | [
"com.gemstone.gemfire"
] | com.gemstone.gemfire; | 441,978 |
public void setType(ResourceType type) {
this.type = type;
} | void function(ResourceType type) { this.type = type; } | /**
* Type of this resource.
*/ | Type of this resource | setType | {
"repo_name": "paine1690/cdp4j",
"path": "src/main/java/io/webfolder/cdp/type/network/CachedResource.java",
"license": "mit",
"size": 2457
} | [
"io.webfolder.cdp.type.page.ResourceType"
] | import io.webfolder.cdp.type.page.ResourceType; | import io.webfolder.cdp.type.page.*; | [
"io.webfolder.cdp"
] | io.webfolder.cdp; | 1,850,736 |
public List retrieveUsersForSound() throws DatabaseDownException, SQLException {
List list = super.retrieveObjects(SELECT_ALL_FOR_SOUNDS);
return list;
}
| List function() throws DatabaseDownException, SQLException { List list = super.retrieveObjects(SELECT_ALL_FOR_SOUNDS); return list; } | /**
* This method retrieves all users from database
*
* @return an ArrayList object with User objects
*
* @throws DatabaseDownException
* If the database is down
* @throws SQLException
* If some SQL Exception occurs
*/ | This method retrieves all users from database | retrieveUsersForSound | {
"repo_name": "BackupTheBerlios/arara-svn",
"path": "core/trunk/src/main/java/net/indrix/arara/dao/UserDAO.java",
"license": "gpl-2.0",
"size": 16418
} | [
"java.sql.SQLException",
"java.util.List"
] | import java.sql.SQLException; import java.util.List; | import java.sql.*; import java.util.*; | [
"java.sql",
"java.util"
] | java.sql; java.util; | 374,683 |
public Set<EPackage> getAllValuesOfpkg() {
return rawAccumulateAllValuesOfpkg(emptyArray());
} | Set<EPackage> function() { return rawAccumulateAllValuesOfpkg(emptyArray()); } | /**
* Retrieve the set of values that occur in matches for pkg.
* @return the Set of all values or empty set if there are no matches
*
*/ | Retrieve the set of values that occur in matches for pkg | getAllValuesOfpkg | {
"repo_name": "upohl/eloquent",
"path": "tests/org.muml.eloquent.ocl.vql.tests/src-gen/org/muml/eloquent/ocl/vql/tests/fixtures/PKG2NameMatcher.java",
"license": "epl-1.0",
"size": 11460
} | [
"java.util.Set",
"org.eclipse.emf.ecore.EPackage"
] | import java.util.Set; import org.eclipse.emf.ecore.EPackage; | import java.util.*; import org.eclipse.emf.ecore.*; | [
"java.util",
"org.eclipse.emf"
] | java.util; org.eclipse.emf; | 1,093,384 |
@Nonnull
@SuppressWarnings("unchecked")
public <T_NEW> ElasticSourceBuilder<T_NEW> mapToItemFn(@Nonnull FunctionEx<? super SearchHit, T_NEW> mapToItemFn) {
ElasticSourceBuilder<T_NEW> newThis = (ElasticSourceBuilder<T_NEW>) this;
newThis.mapToItemFn = checkSerializable(mapToItemFn, "mapToIte... | @SuppressWarnings(STR) <T_NEW> ElasticSourceBuilder<T_NEW> function(@Nonnull FunctionEx<? super SearchHit, T_NEW> mapToItemFn) { ElasticSourceBuilder<T_NEW> newThis = (ElasticSourceBuilder<T_NEW>) this; newThis.mapToItemFn = checkSerializable(mapToItemFn, STR); return newThis; } /** * Set the function that provides {@l... | /**
* Set the function to map SearchHit to a pipeline item
* <p>
* For example, to map a SearchHit to a value of a field `productId`:
* <pre>{@code
* builder.mapToItemFn(hit -> (String) hit.getSourceAsMap().get("productId"))
* }</pre>
*
* This parameter is required.
*
*... | Set the function to map SearchHit to a pipeline item For example, to map a SearchHit to a value of a field `productId`: <code>builder.mapToItemFn(hit -> (String) hit.getSourceAsMap().get("productId")) </code> This parameter is required | mapToItemFn | {
"repo_name": "jerrinot/hazelcast",
"path": "extensions/elasticsearch/elasticsearch-7/src/main/java/com/hazelcast/jet/elastic/ElasticSourceBuilder.java",
"license": "apache-2.0",
"size": 9762
} | [
"com.hazelcast.function.FunctionEx",
"com.hazelcast.jet.impl.util.Util",
"javax.annotation.Nonnull",
"org.elasticsearch.client.RequestOptions",
"org.elasticsearch.search.SearchHit"
] | import com.hazelcast.function.FunctionEx; import com.hazelcast.jet.impl.util.Util; import javax.annotation.Nonnull; import org.elasticsearch.client.RequestOptions; import org.elasticsearch.search.SearchHit; | import com.hazelcast.function.*; import com.hazelcast.jet.impl.util.*; import javax.annotation.*; import org.elasticsearch.client.*; import org.elasticsearch.search.*; | [
"com.hazelcast.function",
"com.hazelcast.jet",
"javax.annotation",
"org.elasticsearch.client",
"org.elasticsearch.search"
] | com.hazelcast.function; com.hazelcast.jet; javax.annotation; org.elasticsearch.client; org.elasticsearch.search; | 1,921,566 |
public void addItem(CustomMenuItem item) {
if (items.contains(item)) {
return;
}
DOM.appendChild(getContainerElement(), item.getElement());
item.setParentMenu(this);
item.setSelected(false);
items.add(item);
} | void function(CustomMenuItem item) { if (items.contains(item)) { return; } DOM.appendChild(getContainerElement(), item.getElement()); item.setParentMenu(this); item.setSelected(false); items.add(item); } | /**
* Add a new item to this menu
*
* @param item
*/ | Add a new item to this menu | addItem | {
"repo_name": "mittop/vaadin",
"path": "client/src/com/vaadin/client/ui/VMenuBar.java",
"license": "apache-2.0",
"size": 55334
} | [
"com.google.gwt.user.client.DOM"
] | import com.google.gwt.user.client.DOM; | import com.google.gwt.user.client.*; | [
"com.google.gwt"
] | com.google.gwt; | 907,291 |
@Test
public void testInvokeAssessmentCommand() {
InvokeAssessmentCommand cmd = new InvokeAssessmentCommand();
JSONObject assessment = new JSONObject();
try {
// Argument host is mandatory. Should fail
assessment = cmd.run(null);
fail("Should have raised an IllegalArgumentException.");
} ... | void function() { InvokeAssessmentCommand cmd = new InvokeAssessmentCommand(); JSONObject assessment = new JSONObject(); try { assessment = cmd.run(null); fail(STR); } catch (IllegalArgumentException e) { List<String> arguments = new ArrayList<String>(); arguments.add(STR); arguments.add(STR); assessment = cmd.run(argu... | /**
* A assessment on google.com should not be null.
*/ | A assessment on google.com should not be null | testInvokeAssessmentCommand | {
"repo_name": "stoennies/java-http-observatory-api",
"path": "src/test/java/eu/toennies/javahttpobservatoryapi/ApiTest.java",
"license": "gpl-3.0",
"size": 4905
} | [
"eu.toennies.javahttpobservatoryapi.commands.InvokeAssessmentCommand",
"java.util.ArrayList",
"java.util.List",
"org.json.JSONObject",
"org.junit.Assert"
] | import eu.toennies.javahttpobservatoryapi.commands.InvokeAssessmentCommand; import java.util.ArrayList; import java.util.List; import org.json.JSONObject; import org.junit.Assert; | import eu.toennies.javahttpobservatoryapi.commands.*; import java.util.*; import org.json.*; import org.junit.*; | [
"eu.toennies.javahttpobservatoryapi",
"java.util",
"org.json",
"org.junit"
] | eu.toennies.javahttpobservatoryapi; java.util; org.json; org.junit; | 1,199,962 |
public Calendar getIborCalendar() {
return _calendar;
}
/**
* {@inheritDoc} | Calendar function() { return _calendar; } /** * {@inheritDoc} | /**
* Gets the holiday calendar for the ibor index.
* @return The calendar
*/ | Gets the holiday calendar for the ibor index | getIborCalendar | {
"repo_name": "McLeodMoores/starling",
"path": "projects/analytics/src/main/java/com/opengamma/analytics/financial/instrument/annuity/AnnuityCouponIborSpreadDefinition.java",
"license": "apache-2.0",
"size": 14548
} | [
"com.opengamma.financial.convention.calendar.Calendar"
] | import com.opengamma.financial.convention.calendar.Calendar; | import com.opengamma.financial.convention.calendar.*; | [
"com.opengamma.financial"
] | com.opengamma.financial; | 638,869 |
@Override
protected void doGet(final HttpServletRequest request,
final HttpServletResponse response) throws ServletException {
LOG.trace("Start VtnServiceWebAPIServlet#doGet()");
JSONObject serviceErrorJSON = null;
VtnServiceWebAPIHandler vtnServiceWebAPIHandler = null;
try {
vtnServiceWebAPIHandler =... | void function(final HttpServletRequest request, final HttpServletResponse response) throws ServletException { LOG.trace(STR); JSONObject serviceErrorJSON = null; VtnServiceWebAPIHandler vtnServiceWebAPIHandler = null; try { vtnServiceWebAPIHandler = new VtnServiceWebAPIHandler(); final JSONObject responseJson = vtnServ... | /**
* Do get.This method will get the json/xml data from java API and will
* write the same on servlet output
*
* @param request
* the request
* @param response
* the response
* @throws ServletException
* the servlet exception
* @see HttpServlet#doGet(HttpServletRe... | Do get.This method will get the json/xml data from java API and will write the same on servlet output | doGet | {
"repo_name": "opendaylight/vtn",
"path": "coordinator/java/vtn-webapi/src/org/opendaylight/vtn/webapi/endpoint/VtnServiceWebAPIServlet.java",
"license": "epl-1.0",
"size": 21725
} | [
"java.io.IOException",
"javax.servlet.ServletException",
"javax.servlet.http.HttpServletRequest",
"javax.servlet.http.HttpServletResponse",
"org.json.JSONObject",
"org.opendaylight.vtn.webapi.enums.HttpErrorCodeEnum",
"org.opendaylight.vtn.webapi.exception.VtnServiceWebAPIException",
"org.opendaylight... | import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.json.JSONObject; import org.opendaylight.vtn.webapi.enums.HttpErrorCodeEnum; import org.opendaylight.vtn.webapi.exception.VtnServiceWebAPIException; ... | import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import org.json.*; import org.opendaylight.vtn.webapi.enums.*; import org.opendaylight.vtn.webapi.exception.*; import org.opendaylight.vtn.webapi.services.*; import org.opendaylight.vtn.webapi.utils.*; | [
"java.io",
"javax.servlet",
"org.json",
"org.opendaylight.vtn"
] | java.io; javax.servlet; org.json; org.opendaylight.vtn; | 2,895,543 |
protected Map<String,String> translateInputValues(Long processId, Map<String,Object> values)
throws ProcessException {
Map<String,String> stringValues = new HashMap<>();
if (values != null) {
try {
Process process = ProcessCache.getProcess(processId);
... | Map<String,String> function(Long processId, Map<String,Object> values) throws ProcessException { Map<String,String> stringValues = new HashMap<>(); if (values != null) { try { Process process = ProcessCache.getProcess(processId); if (process == null) throw new ProcessException(STR + processId); for (String key : values... | /**
* Converts process input values to Map<String,String> needed by the runtime engine.
* Values in the values map must not be null.
*/ | Converts process input values to Map needed by the runtime engine. Values in the values map must not be null | translateInputValues | {
"repo_name": "CenturyLinkCloud/mdw",
"path": "mdw-services/src/com/centurylink/mdw/services/request/BaseHandler.java",
"license": "apache-2.0",
"size": 7091
} | [
"com.centurylink.mdw.cache.asset.PackageCache",
"com.centurylink.mdw.model.variable.Variable",
"com.centurylink.mdw.model.workflow.Package",
"com.centurylink.mdw.model.workflow.Process",
"com.centurylink.mdw.service.data.process.ProcessCache",
"com.centurylink.mdw.services.ProcessException",
"com.centur... | import com.centurylink.mdw.cache.asset.PackageCache; import com.centurylink.mdw.model.variable.Variable; import com.centurylink.mdw.model.workflow.Package; import com.centurylink.mdw.model.workflow.Process; import com.centurylink.mdw.service.data.process.ProcessCache; import com.centurylink.mdw.services.ProcessExceptio... | import com.centurylink.mdw.cache.asset.*; import com.centurylink.mdw.model.variable.*; import com.centurylink.mdw.model.workflow.*; import com.centurylink.mdw.service.data.process.*; import com.centurylink.mdw.services.*; import com.centurylink.mdw.translator.*; import com.centurylink.mdw.variable.*; import java.io.*; ... | [
"com.centurylink.mdw",
"java.io",
"java.util"
] | com.centurylink.mdw; java.io; java.util; | 1,321,039 |
@Test(expected = RegistryException.class)
public void getUniqueGroupIdRegistryException() throws Exception {
servlet.setExpectedMethodName("getUniqueGroupId");
RegistryException expected = new RegistryException("expected");
servlet.setFakeResponse(expected.toString());
assertEqu... | @Test(expected = RegistryException.class) void function() throws Exception { servlet.setExpectedMethodName(STR); RegistryException expected = new RegistryException(STR); servlet.setFakeResponse(expected.toString()); assertEquals(STR, servlet.getUniqueGroupId(STR)); } | /**
* Test method for {@link com.ibm.ws.security.registry.test.UserRegistryServletConnection#getUniqueGroupId(java.lang.String)}.
*/ | Test method for <code>com.ibm.ws.security.registry.test.UserRegistryServletConnection#getUniqueGroupId(java.lang.String)</code> | getUniqueGroupIdRegistryException | {
"repo_name": "OpenLiberty/open-liberty",
"path": "dev/com.ibm.ws.security.registry_test.servlet/test/com/ibm/ws/security/registry/test/UserRegistryServletConnectionTest.java",
"license": "epl-1.0",
"size": 29746
} | [
"com.ibm.ws.security.registry.RegistryException",
"org.junit.Assert",
"org.junit.Test"
] | import com.ibm.ws.security.registry.RegistryException; import org.junit.Assert; import org.junit.Test; | import com.ibm.ws.security.registry.*; import org.junit.*; | [
"com.ibm.ws",
"org.junit"
] | com.ibm.ws; org.junit; | 2,253,030 |
protected void sequence_WhileStatement(ISerializationContext context, WhileStatement semanticObject) {
genericSequencer.createSequence(context, semanticObject);
}
| void function(ISerializationContext context, WhileStatement semanticObject) { genericSequencer.createSequence(context, semanticObject); } | /**
* Contexts:
* WhileStatement returns WhileStatement
*
* Constraint:
* (condition=Expression statements+=Statement*)
*/ | Contexts: WhileStatement returns WhileStatement Constraint: (condition=Expression statements+=Statement*) | sequence_WhileStatement | {
"repo_name": "perojonsson/bridgepoint",
"path": "src/org.xtuml.bp.xtext.masl.parent/org.xtuml.bp.xtext.masl/src-gen/org/xtuml/bp/xtext/masl/serializer/MASLSemanticSequencer.java",
"license": "apache-2.0",
"size": 376780
} | [
"org.eclipse.xtext.serializer.ISerializationContext",
"org.xtuml.bp.xtext.masl.masl.behavior.WhileStatement"
] | import org.eclipse.xtext.serializer.ISerializationContext; import org.xtuml.bp.xtext.masl.masl.behavior.WhileStatement; | import org.eclipse.xtext.serializer.*; import org.xtuml.bp.xtext.masl.masl.behavior.*; | [
"org.eclipse.xtext",
"org.xtuml.bp"
] | org.eclipse.xtext; org.xtuml.bp; | 1,452,266 |
public void testCreateRedundantColocatedBuckets() {
final String[] regionPath = new String[] {
getUniqueName() + "-PR-0",
getUniqueName() + "-PR-1",
getUniqueName() + "-PR-2"
};
final int numBuckets = 1;
final int redundantCopies = 1;
final int localMaxMemory = 100;
... | void function() { final String[] regionPath = new String[] { getUniqueName() + "-PR-0", getUniqueName() + "-PR-1", getUniqueName() + "-PR-2" }; final int numBuckets = 1; final int redundantCopies = 1; final int localMaxMemory = 100; createRegion(Host.getHost(0).getVM(0), regionPath[0], localMaxMemory, numBuckets, redun... | /**
* Creates colocated buckets on two members. Then brings up a third member
* and creates an extra redundant copy of the buckets on it.
*/ | Creates colocated buckets on two members. Then brings up a third member and creates an extra redundant copy of the buckets on it | testCreateRedundantColocatedBuckets | {
"repo_name": "robertgeiger/incubator-geode",
"path": "gemfire-core/src/test/java/com/gemstone/gemfire/cache/management/ResourceManagerDUnitTest.java",
"license": "apache-2.0",
"size": 73093
} | [
"com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember"
] | import com.gemstone.gemfire.distributed.internal.membership.InternalDistributedMember; | import com.gemstone.gemfire.distributed.internal.membership.*; | [
"com.gemstone.gemfire"
] | com.gemstone.gemfire; | 1,648,621 |
public void stop() {
Log.d(TAG, "stopping listening for sensor changes...");
// unregister listener
mSensorManager.unregisterListener(this);
} | void function() { Log.d(TAG, STR); mSensorManager.unregisterListener(this); } | /**
* Tells the SensorComponent to stop listening for hw-sensor-updates from
* now on. You will most certainly like to call this in Context.onPause().
*/ | Tells the SensorComponent to stop listening for hw-sensor-updates from now on. You will most certainly like to call this in Context.onPause() | stop | {
"repo_name": "mobilesec/authentication-framework-module-face",
"path": "android/FaceAuthModule/src/at/usmile/panshot/sensor/SensorComponent.java",
"license": "gpl-3.0",
"size": 4950
} | [
"android.util.Log"
] | import android.util.Log; | import android.util.*; | [
"android.util"
] | android.util; | 1,147,973 |
public static String getBlockCommentContent(DetailAST blockCommentBegin) {
final DetailAST commentContent = blockCommentBegin.getFirstChild();
return commentContent.getText();
} | static String function(DetailAST blockCommentBegin) { final DetailAST commentContent = blockCommentBegin.getFirstChild(); return commentContent.getText(); } | /**
* Gets content of block comment.
* @param blockCommentBegin
* block comment AST.
* @return content of block comment.
*/ | Gets content of block comment | getBlockCommentContent | {
"repo_name": "universsky/checkstyle",
"path": "src/main/java/com/puppycrawl/tools/checkstyle/checks/javadoc/JavadocUtils.java",
"license": "lgpl-2.1",
"size": 14563
} | [
"com.puppycrawl.tools.checkstyle.api.DetailAST"
] | import com.puppycrawl.tools.checkstyle.api.DetailAST; | import com.puppycrawl.tools.checkstyle.api.*; | [
"com.puppycrawl.tools"
] | com.puppycrawl.tools; | 2,523,462 |
void setMaxPhenomenonTimeForOffering(String offering, DateTime maxTime); | void setMaxPhenomenonTimeForOffering(String offering, DateTime maxTime); | /**
* Sets the maximal phenomenon time for the specified offering to the
* specified time.
*
* @param offering
* the offering
* @param maxTime
* the max phenomenon time
*/ | Sets the maximal phenomenon time for the specified offering to the specified time | setMaxPhenomenonTimeForOffering | {
"repo_name": "nuest/SOS",
"path": "core/api/src/main/java/org/n52/sos/cache/WritableContentCache.java",
"license": "gpl-2.0",
"size": 46330
} | [
"org.joda.time.DateTime"
] | import org.joda.time.DateTime; | import org.joda.time.*; | [
"org.joda.time"
] | org.joda.time; | 1,630,700 |
@NonNull
public CompleteBuilder table(@NonNull String table) {
checkNotEmpty(table, "Table name is null or empty");
return new CompleteBuilder(table);
}
}
public static final class CompleteBuilder {
@NonNull
private final String table;
... | CompleteBuilder function(@NonNull String table) { checkNotEmpty(table, STR); return new CompleteBuilder(table); } } static final class CompleteBuilder { private final String function; String where; private List<String> whereArgs; CompleteBuilder(@NonNull String function) { this.table = table; } | /**
* Required: Specifies table name.
*
* @param table non-null table name.
* @return builder.
* @see UpdateQuery#table()
*/ | Required: Specifies table name | table | {
"repo_name": "awesome-niu/storio",
"path": "storio-sqlite/src/main/java/com/pushtorefresh/storio/sqlite/queries/UpdateQuery.java",
"license": "apache-2.0",
"size": 5801
} | [
"android.support.annotation.NonNull",
"com.pushtorefresh.storio.internal.Checks",
"java.util.List"
] | import android.support.annotation.NonNull; import com.pushtorefresh.storio.internal.Checks; import java.util.List; | import android.support.annotation.*; import com.pushtorefresh.storio.internal.*; import java.util.*; | [
"android.support",
"com.pushtorefresh.storio",
"java.util"
] | android.support; com.pushtorefresh.storio; java.util; | 659,466 |
Vector<Attribute> attributeList = new Vector<Attribute>(1);
Attribute tagNameAttribute = new Attribute();
tagNameAttribute.setName(tagName.toLowerCase());
attributeList.add(tagNameAttribute);
Tag keepTag = m_nodeFactory.createTagNode(null, 0, 0, attributeList);
boolean re... | Vector<Attribute> attributeList = new Vector<Attribute>(1); Attribute tagNameAttribute = new Attribute(); tagNameAttribute.setName(tagName.toLowerCase()); attributeList.add(tagNameAttribute); Tag keepTag = m_nodeFactory.createTagNode(null, 0, 0, attributeList); boolean result = m_nodeFactory.addTagPreserve(keepTag); re... | /**
* Adds a tag that will be preserved by <code>{@link #stripHtml(String)}</code>.<p>
*
* @param tagName the name of the tag to keep (case insensitive)
*
* @return true if the tagName was added correctly to the internal engine
*/ | Adds a tag that will be preserved by <code><code>#stripHtml(String)</code></code> | addPreserveTag | {
"repo_name": "it-tavis/opencms-core",
"path": "src/org/opencms/util/CmsHtmlStripper.java",
"license": "lgpl-2.1",
"size": 7484
} | [
"java.util.Vector",
"org.htmlparser.Attribute",
"org.htmlparser.Tag"
] | import java.util.Vector; import org.htmlparser.Attribute; import org.htmlparser.Tag; | import java.util.*; import org.htmlparser.*; | [
"java.util",
"org.htmlparser"
] | java.util; org.htmlparser; | 609,928 |
public void put(EntryParam param, String value)
{
checkType(param.toString());
try
{
m_json.put(param.toString(), value);
}
catch (JSONException e)
{
throw new IllegalArgumentException("could not add param " + param + ":" + value, e);
... | void function(EntryParam param, String value) { checkType(param.toString()); try { m_json.put(param.toString(), value); } catch (JSONException e) { throw new IllegalArgumentException(STR + param + ":" + value, e); } } | /**
* Put a String parameter in this descritor entry.
*/ | Put a String parameter in this descritor entry | put | {
"repo_name": "boneman1231/org.apache.felix",
"path": "trunk/dependencymanager/annotation/src/main/java/org/apache/felix/dm/annotation/plugin/bnd/EntryWriter.java",
"license": "apache-2.0",
"size": 8266
} | [
"org.json.JSONException"
] | import org.json.JSONException; | import org.json.*; | [
"org.json"
] | org.json; | 2,040,421 |
@Transactional
public void updateEvent(Event event) {
getSessionFactory().getCurrentSession().update(event);
} | void function(Event event) { getSessionFactory().getCurrentSession().update(event); } | /**
* Update event
*
* @param event event
*/ | Update event | updateEvent | {
"repo_name": "rguimaraens/EventsManagement",
"path": "src/main/java/org/consultjr/mvc/dao/EventDAO.java",
"license": "mit",
"size": 1928
} | [
"org.consultjr.mvc.model.Event"
] | import org.consultjr.mvc.model.Event; | import org.consultjr.mvc.model.*; | [
"org.consultjr.mvc"
] | org.consultjr.mvc; | 1,282,234 |
private void discoverLoadQueue(Deque<LoadQueueItem> ret, Path hfofDir)
throws IOException {
fs = hfofDir.getFileSystem(getConf());
if (!fs.exists(hfofDir)) {
throw new FileNotFoundException("HFileOutputFormat dir " +
hfofDir + " not found");
}
FileStatus[] familyDirStatuses = fs.li... | void function(Deque<LoadQueueItem> ret, Path hfofDir) throws IOException { fs = hfofDir.getFileSystem(getConf()); if (!fs.exists(hfofDir)) { throw new FileNotFoundException(STR + hfofDir + STR); } FileStatus[] familyDirStatuses = fs.listStatus(hfofDir, familyDirFilter); if (familyDirStatuses == null) { throw new FileNo... | /**
* Walk the given directory for all HFiles, and return a Queue
* containing all such files.
*/ | Walk the given directory for all HFiles, and return a Queue containing all such files | discoverLoadQueue | {
"repo_name": "tenggyut/HIndex",
"path": "hbase-server/src/main/java/org/apache/hadoop/hbase/mapreduce/LoadIncrementalHFiles.java",
"license": "apache-2.0",
"size": 35737
} | [
"java.io.FileNotFoundException",
"java.io.IOException",
"java.util.Deque",
"org.apache.hadoop.fs.FileStatus",
"org.apache.hadoop.fs.FileUtil",
"org.apache.hadoop.fs.Path"
] | import java.io.FileNotFoundException; import java.io.IOException; import java.util.Deque; import org.apache.hadoop.fs.FileStatus; import org.apache.hadoop.fs.FileUtil; import org.apache.hadoop.fs.Path; | import java.io.*; import java.util.*; import org.apache.hadoop.fs.*; | [
"java.io",
"java.util",
"org.apache.hadoop"
] | java.io; java.util; org.apache.hadoop; | 1,815,297 |
public static double evaluate(double x[], double y[], double z) {
if (verifyInterpolationArray(x, y, false)) {
return evaluateInternal(x, y, z);
}
// Array is not sorted.
final double[] xNew = new double[x.length];
final double[] yNew = new double[y.length];
... | static double function(double x[], double y[], double z) { if (verifyInterpolationArray(x, y, false)) { return evaluateInternal(x, y, z); } final double[] xNew = new double[x.length]; final double[] yNew = new double[y.length]; System.arraycopy(x, 0, xNew, 0, x.length); System.arraycopy(y, 0, yNew, 0, y.length); MathUt... | /**
* Evaluate the Lagrange polynomial using
* <a href="http://mathworld.wolfram.com/NevillesAlgorithm.html">
* Neville's Algorithm</a>. It takes O(n^2) time.
*
* @param x Interpolating points array.
* @param y Interpolating values array.
* @param z Point at which the function value i... | Evaluate the Lagrange polynomial using Neville's Algorithm. It takes O(n^2) time | evaluate | {
"repo_name": "SpoonLabs/astor",
"path": "examples/math_50v2/src/main/java/org/apache/commons/math/analysis/polynomials/PolynomialFunctionLagrangeForm.java",
"license": "gpl-2.0",
"size": 12256
} | [
"org.apache.commons.math.util.MathUtils"
] | import org.apache.commons.math.util.MathUtils; | import org.apache.commons.math.util.*; | [
"org.apache.commons"
] | org.apache.commons; | 371,527 |
public static String generate(final Collection<ProvisioningReport> results, final TraceLevel level) {
StringBuilder sb = new StringBuilder();
for (ProvisioningReport result : results) {
sb.append(result.getReportString(level)).append('\n');
}
return sb.toString();
} | static String function(final Collection<ProvisioningReport> results, final TraceLevel level) { StringBuilder sb = new StringBuilder(); for (ProvisioningReport result : results) { sb.append(result.getReportString(level)).append('\n'); } return sb.toString(); } | /**
* Helper method to invoke logging per provisioning result, for the given trace level.
*
* @param results provisioning results
* @param level trace level
* @return report as string
*/ | Helper method to invoke logging per provisioning result, for the given trace level | generate | {
"repo_name": "tmess567/syncope",
"path": "core/provisioning-api/src/main/java/org/apache/syncope/core/provisioning/api/pushpull/ProvisioningReport.java",
"license": "apache-2.0",
"size": 3936
} | [
"java.util.Collection",
"org.apache.syncope.common.lib.types.TraceLevel"
] | import java.util.Collection; import org.apache.syncope.common.lib.types.TraceLevel; | import java.util.*; import org.apache.syncope.common.lib.types.*; | [
"java.util",
"org.apache.syncope"
] | java.util; org.apache.syncope; | 2,424,918 |
protected JScrollPane getEnclosingScrollPane() {
Container p = getParent();
if (p instanceof JViewport) {
Container gp = p.getParent();
if (gp instanceof JScrollPane) {
JScrollPane scrollPane = (JScrollPane) gp;
// Make certain we are the viewP... | JScrollPane function() { Container p = getParent(); if (p instanceof JViewport) { Container gp = p.getParent(); if (gp instanceof JScrollPane) { JScrollPane scrollPane = (JScrollPane) gp; JViewport viewport = scrollPane.getViewport(); if (viewport == null viewport.getView() != this) { return null; } return scrollPane; ... | /**
* Returns the enclosing JScrollPane of this table, or null if not
* contained in a JScrollPane or not the main view of the scrollPane.
*
* @return the enclosing JScrollPane if this table is the main view or
* null if not.
*/ | Returns the enclosing JScrollPane of this table, or null if not contained in a JScrollPane or not the main view of the scrollPane | getEnclosingScrollPane | {
"repo_name": "trejkaz/swingx",
"path": "swingx-core/src/main/java/org/jdesktop/swingx/JXTable.java",
"license": "lgpl-2.1",
"size": 163623
} | [
"java.awt.Container",
"javax.swing.JScrollPane",
"javax.swing.JViewport"
] | import java.awt.Container; import javax.swing.JScrollPane; import javax.swing.JViewport; | import java.awt.*; import javax.swing.*; | [
"java.awt",
"javax.swing"
] | java.awt; javax.swing; | 1,953,439 |
protected boolean allowRemove(String id)
{
String currentUser = sessionManager.getCurrentSessionUserId();
String owner = "";
//Supper users always have the permission
if (m_securityService.isSuperUser()) {
return true;
}
try
{
ResourceProperties props = getProperties(id);
owner = pro... | boolean function(String id) { String currentUser = sessionManager.getCurrentSessionUserId(); String owner = ""; if (m_securityService.isSuperUser()) { return true; } try { ResourceProperties props = getProperties(id); owner = props.getProperty(ResourceProperties.PROP_CREATOR); } catch ( Exception e ) { return false; } ... | /**
* check permissions for removing collections or resources
* Note: for just this collection, not the members on down.
* @param id The id of the collection.
* @return true if the user is allowed to removeCollection(id), false if not.
*/ | check permissions for removing collections or resources Note: for just this collection, not the members on down | allowRemove | {
"repo_name": "marktriggs/nyu-sakai-10.4",
"path": "kernel/kernel-impl/src/main/java/org/sakaiproject/content/impl/BaseContentService.java",
"license": "apache-2.0",
"size": 426240
} | [
"org.sakaiproject.entity.api.ResourceProperties"
] | import org.sakaiproject.entity.api.ResourceProperties; | import org.sakaiproject.entity.api.*; | [
"org.sakaiproject.entity"
] | org.sakaiproject.entity; | 2,109,251 |
EAttribute getTMember_DeclaredStatic(); | EAttribute getTMember_DeclaredStatic(); | /**
* Returns the meta object for the attribute '{@link org.eclipse.n4js.ts.types.TMember#isDeclaredStatic <em>Declared Static</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Declared Static</em>'.
* @see org.eclipse.n4js.ts.types.TMember#isDeclaredSt... | Returns the meta object for the attribute '<code>org.eclipse.n4js.ts.types.TMember#isDeclaredStatic Declared Static</code>'. | getTMember_DeclaredStatic | {
"repo_name": "lbeurerkellner/n4js",
"path": "plugins/org.eclipse.n4js.ts.model/emf-gen/org/eclipse/n4js/ts/types/TypesPackage.java",
"license": "epl-1.0",
"size": 538237
} | [
"org.eclipse.emf.ecore.EAttribute"
] | import org.eclipse.emf.ecore.EAttribute; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,864,352 |
public static Object readFully(final Object self, final Object file) throws IOException {
File f = null;
if (file instanceof File) {
f = (File)file;
} else if (JSType.isString(file)) {
f = new java.io.File(((CharSequence)file).toString());
}
if (f ==... | static Object function(final Object self, final Object file) throws IOException { File f = null; if (file instanceof File) { f = (File)file; } else if (JSType.isString(file)) { f = new java.io.File(((CharSequence)file).toString()); } if (f == null !f.isFile()) { throw typeError(STR, ScriptRuntime.safeToString(file)); }... | /**
* Nashorn extension: Read the entire contents of a text file and return as String.
*
* @param self self reference
* @param file The input file whose content is read.
*
* @return String content of the input file.
*
* @throws IOException if an exception occurs
*/ | Nashorn extension: Read the entire contents of a text file and return as String | readFully | {
"repo_name": "34benma/openjdk",
"path": "nashorn/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/runtime/ScriptingFunctions.java",
"license": "gpl-2.0",
"size": 13073
} | [
"java.io.File",
"java.io.IOException"
] | import java.io.File; import java.io.IOException; | import java.io.*; | [
"java.io"
] | java.io; | 1,462,617 |
public boolean disablePortForward(PortForwardBean portForward) {
if (!transport.isConnected()) {
Log.i(TAG, "Attempt to disable port forward while not connected");
return false;
}
return transport.disablePortForward(portForward);
} | boolean function(PortForwardBean portForward) { if (!transport.isConnected()) { Log.i(TAG, STR); return false; } return transport.disablePortForward(portForward); } | /**
* Disables a port forward member. After calling this method, the port forward should
* be non-functioning.
* @param portForward member of our current port forwards list to enable
* @return true on successful port forward tear-down
*/ | Disables a port forward member. After calling this method, the port forward should be non-functioning | disablePortForward | {
"repo_name": "gertcuykens/connectbot",
"path": "src/org/connectbot/service/TerminalBridge.java",
"license": "apache-2.0",
"size": 28439
} | [
"android.util.Log",
"org.connectbot.bean.PortForwardBean"
] | import android.util.Log; import org.connectbot.bean.PortForwardBean; | import android.util.*; import org.connectbot.bean.*; | [
"android.util",
"org.connectbot.bean"
] | android.util; org.connectbot.bean; | 67,729 |
public static String getPropertiesDirectory() {
final String os = System.getProperty("os.name", "generic").toLowerCase();
String dir = System.getProperty(Constants.PROPERTIES_DIR_PARAM_NAME);
if (dir != null) {
//if defined by the property, it will be an error if the directory do... | static String function() { final String os = System.getProperty(STR, STR).toLowerCase(); String dir = System.getProperty(Constants.PROPERTIES_DIR_PARAM_NAME); if (dir != null) { return dir; } Path p = Paths.get(System.getProperty(STR), Constants.PROPERTIES_DIR_NAME); if (Files.exists(p)) { return p.toString(); } if (os... | /**
* Find the properties directory:
*/ | Find the properties directory: | getPropertiesDirectory | {
"repo_name": "vrk-kpa/REST-adapter-service",
"path": "src/src/main/java/fi/vrk/xroad/restadapterservice/util/RESTGatewayUtil.java",
"license": "mit",
"size": 17304
} | [
"java.nio.file.Files",
"java.nio.file.Path",
"java.nio.file.Paths"
] | import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; | import java.nio.file.*; | [
"java.nio"
] | java.nio; | 610,325 |
public static BigInteger toNanoCoins(String coins) {
return new BigDecimal(coins).movePointRight(8).toBigIntegerExact();
} | static BigInteger function(String coins) { return new BigDecimal(coins).movePointRight(8).toBigIntegerExact(); } | /**
* Convert an amount expressed in the way humans are used to into nanocoins.<p>
* <p/>
* This takes string in a format understood by {@link BigDecimal#BigDecimal(String)},
* for example "0", "1", "0.10", "1.23E3", "1234.5E-5".
*
* @throws ArithmeticException if you try to specify fracti... | Convert an amount expressed in the way humans are used to into nanocoins. This takes string in a format understood by <code>BigDecimal#BigDecimal(String)</code>, for example "0", "1", "0.10", "1.23E3", "1234.5E-5" | toNanoCoins | {
"repo_name": "imsaguy/bitcoinj",
"path": "core/src/main/java/com/google/bitcoin/core/Utils.java",
"license": "apache-2.0",
"size": 19236
} | [
"java.math.BigDecimal",
"java.math.BigInteger"
] | import java.math.BigDecimal; import java.math.BigInteger; | import java.math.*; | [
"java.math"
] | java.math; | 2,340,832 |
public IntegrityCheck getIntegrityCheck(Integer checkId); | IntegrityCheck function(Integer checkId); | /**
* Get integrity check by id
* @param checkId
* @return integrity check of given checkId
*/ | Get integrity check by id | getIntegrityCheck | {
"repo_name": "openmrs/openmrs-module-dataintegrityworkflow",
"path": "api/src/main/java/org/openmrs/module/dataintegrityworkflow/DataIntegrityWorkflowService.java",
"license": "mpl-2.0",
"size": 13605
} | [
"org.openmrs.module.dataintegrity.IntegrityCheck"
] | import org.openmrs.module.dataintegrity.IntegrityCheck; | import org.openmrs.module.dataintegrity.*; | [
"org.openmrs.module"
] | org.openmrs.module; | 1,785,293 |
@Pure
@XtextOperator("(-)")
public Matrix4d operator_minus() {
final Matrix4d result = new Matrix4d();
result.negate(this);
return result;
} | @XtextOperator("(-)") Matrix4d function() { final Matrix4d result = new Matrix4d(); result.negate(this); return result; } | /** Replies the negation of this matrix: {@code -this}.
*
* <p>This function is an implementation of the operator for
* the languages that defined or based on the
* <a href="https://www.eclipse.org/Xtext/">Xtext framework</a>.
*
* @return the negation of this matrix.
* @see #negate()
... | Replies the negation of this matrix: -this. This function is an implementation of the operator for the languages that defined or based on the Xtext framework | operator_minus | {
"repo_name": "tpiotrow/afc",
"path": "core/math/src/main/java/org/arakhne/afc/math/matrix/Matrix4d.java",
"license": "apache-2.0",
"size": 75836
} | [
"org.arakhne.afc.vmutil.annotations.XtextOperator"
] | import org.arakhne.afc.vmutil.annotations.XtextOperator; | import org.arakhne.afc.vmutil.annotations.*; | [
"org.arakhne.afc"
] | org.arakhne.afc; | 2,126,263 |
public double calculateValue(int frame, int curveIndex) {
return bezierCurves[curveIndex].evaluate(frame, BezierCurve.Y_VALUE);
} | double function(int frame, int curveIndex) { return bezierCurves[curveIndex].evaluate(frame, BezierCurve.Y_VALUE); } | /**
* This method calculates the ipo value for the curve of the specified
* index. Make sure you do not exceed the curves amount. Alway chech the
* amount of curves before calling this method.
*
* @param frame
* the frame for which the value is calculated
* @param curveInd... | This method calculates the ipo value for the curve of the specified index. Make sure you do not exceed the curves amount. Alway chech the amount of curves before calling this method | calculateValue | {
"repo_name": "shurun19851206/jMonkeyEngine",
"path": "jme3-blender/src/main/java/com/jme3/scene/plugins/blender/animations/Ipo.java",
"license": "bsd-3-clause",
"size": 13216
} | [
"com.jme3.scene.plugins.blender.curves.BezierCurve"
] | import com.jme3.scene.plugins.blender.curves.BezierCurve; | import com.jme3.scene.plugins.blender.curves.*; | [
"com.jme3.scene"
] | com.jme3.scene; | 560,130 |
public static String getNumber(final Number number) {
if (number != null) {
final DecimalFormatSymbols symbols = new DecimalFormatSymbols();
symbols.setDecimalSeparator(',');
final DecimalFormat df = new DecimalFormat("0.##########", symbols);
df.setParseBigDecimal(true);
df.setDecimalSeparato... | static String function(final Number number) { if (number != null) { final DecimalFormatSymbols symbols = new DecimalFormatSymbols(); symbols.setDecimalSeparator(','); final DecimalFormat df = new DecimalFormat(STR, symbols); df.setParseBigDecimal(true); df.setDecimalSeparatorAlwaysShown(true); final String formatted = ... | /**
* Parses a Number into a SWIFT string number ####,## where trunked zero decimals and mandatory decimal separator.
* <ul>
* <li>Example: 1234,</li>
* <li>Example: 1234,56</li>
* </ul>
* @param number to parse
* @return Number of the parsed amount or <code>null</code> if the number is null
*... | Parses a Number into a SWIFT string number ####,## where trunked zero decimals and mandatory decimal separator. Example: 1234, Example: 1234,56 | getNumber | {
"repo_name": "hellonico/wife",
"path": "src/com/prowidesoftware/swift/utils/SwiftFormatUtils.java",
"license": "epl-1.0",
"size": 17575
} | [
"java.text.DecimalFormat",
"java.text.DecimalFormatSymbols",
"org.apache.commons.lang.StringUtils"
] | import java.text.DecimalFormat; import java.text.DecimalFormatSymbols; import org.apache.commons.lang.StringUtils; | import java.text.*; import org.apache.commons.lang.*; | [
"java.text",
"org.apache.commons"
] | java.text; org.apache.commons; | 61,758 |
private Http2Settings decodeSettingsHeader(ChannelHandlerContext ctx, CharSequence settingsHeader)
throws Http2Exception {
ByteBuf header = ByteBufUtil.encodeString(ctx.alloc(), CharBuffer.wrap(settingsHeader), CharsetUtil.UTF_8);
try {
// Decode the SETTINGS payload.
... | Http2Settings function(ChannelHandlerContext ctx, CharSequence settingsHeader) throws Http2Exception { ByteBuf header = ByteBufUtil.encodeString(ctx.alloc(), CharBuffer.wrap(settingsHeader), CharsetUtil.UTF_8); try { ByteBuf payload = Base64.decode(header, URL_SAFE); ByteBuf frame = createSettingsFrame(ctx, payload); r... | /**
* Decodes the settings header and returns a {@link Http2Settings} object.
*/ | Decodes the settings header and returns a <code>Http2Settings</code> object | decodeSettingsHeader | {
"repo_name": "doom369/netty",
"path": "codec-http2/src/main/java/io/netty/handler/codec/http2/Http2ServerUpgradeCodec.java",
"license": "apache-2.0",
"size": 8685
} | [
"io.netty.buffer.ByteBuf",
"io.netty.buffer.ByteBufUtil",
"io.netty.channel.ChannelHandlerContext",
"io.netty.handler.codec.base64.Base64",
"io.netty.util.CharsetUtil",
"java.nio.CharBuffer"
] | import io.netty.buffer.ByteBuf; import io.netty.buffer.ByteBufUtil; import io.netty.channel.ChannelHandlerContext; import io.netty.handler.codec.base64.Base64; import io.netty.util.CharsetUtil; import java.nio.CharBuffer; | import io.netty.buffer.*; import io.netty.channel.*; import io.netty.handler.codec.base64.*; import io.netty.util.*; import java.nio.*; | [
"io.netty.buffer",
"io.netty.channel",
"io.netty.handler",
"io.netty.util",
"java.nio"
] | io.netty.buffer; io.netty.channel; io.netty.handler; io.netty.util; java.nio; | 2,418,527 |
public Map<String, Object> getRequestContext() {
return requestContext;
} | Map<String, Object> function() { return requestContext; } | /**
* Unused in this mock.
* @see javax.xml.ws.BindingProvider#getRequestContext()
*/ | Unused in this mock | getRequestContext | {
"repo_name": "nafae/developer",
"path": "modules/ads_lib_appengine/src/test/java/com/google/api/ads/common/lib/soap/jaxws/testing/mocks/CampaignServiceInterfaceImpl.java",
"license": "apache-2.0",
"size": 3441
} | [
"java.util.Map"
] | import java.util.Map; | import java.util.*; | [
"java.util"
] | java.util; | 2,793,736 |
public void testCreateTemplate( ) throws Exception
{
openDesign( parserFileName );
assertNotNull( designHandle );
// case 1 -- create a template label from a real label in body slot
ActivityStack stack = design.getActivityStack( );
LabelHandle labelHandle = (LabelHandle) designHandle
.findElement( ... | void function( ) throws Exception { openDesign( parserFileName ); assertNotNull( designHandle ); ActivityStack stack = design.getActivityStack( ); LabelHandle labelHandle = (LabelHandle) designHandle .findElement( "base" ); assertNotNull( labelHandle ); String name = "label"; TemplateReportItemHandle templateLabel = (T... | /**
* Tests creates template element from a report item or data set.
*
* @throws Exception
*
*/ | Tests creates template element from a report item or data set | testCreateTemplate | {
"repo_name": "sguan-actuate/birt",
"path": "model/org.eclipse.birt.report.model.tests/test/org/eclipse/birt/report/model/parser/TemplateElementParserTest.java",
"license": "epl-1.0",
"size": 30797
} | [
"com.ibm.icu.util.ULocale",
"org.eclipse.birt.report.model.activity.ActivityStack",
"org.eclipse.birt.report.model.api.CellHandle",
"org.eclipse.birt.report.model.api.DataSetHandle",
"org.eclipse.birt.report.model.api.DesignConfig",
"org.eclipse.birt.report.model.api.DesignEngine",
"org.eclipse.birt.rep... | import com.ibm.icu.util.ULocale; import org.eclipse.birt.report.model.activity.ActivityStack; import org.eclipse.birt.report.model.api.CellHandle; import org.eclipse.birt.report.model.api.DataSetHandle; import org.eclipse.birt.report.model.api.DesignConfig; import org.eclipse.birt.report.model.api.DesignEngine; import ... | import com.ibm.icu.util.*; import org.eclipse.birt.report.model.activity.*; import org.eclipse.birt.report.model.api.*; import org.eclipse.birt.report.model.api.activity.*; import org.eclipse.birt.report.model.api.command.*; import org.eclipse.birt.report.model.elements.*; | [
"com.ibm.icu",
"org.eclipse.birt"
] | com.ibm.icu; org.eclipse.birt; | 2,474,404 |
public void purgeIntentsInteractive(Iterable<Intent> intents) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
intents.forEach(intent -> {
System.out.print(String.format("Id=%s, Key=%s, AppId=%s. Remove? [y/N]: ",
inte... | void function(Iterable<Intent> intents) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); intents.forEach(intent -> { System.out.print(String.format(STR, intent.id(), intent.key(), intent.appId().name())); String response; try { response = br.readLine(); response = response.trim().replace("\n"... | /**
* Purges the intents passed as argument after confirmation is provided
* for each of them.
* If no explicit confirmation is provided, the intent is not purged.
*
* @param intents list of intents to purge
*/ | Purges the intents passed as argument after confirmation is provided for each of them. If no explicit confirmation is provided, the intent is not purged | purgeIntentsInteractive | {
"repo_name": "gkatsikas/onos",
"path": "cli/src/main/java/org/onosproject/cli/net/IntentRemoveCommand.java",
"license": "apache-2.0",
"size": 10272
} | [
"java.io.BufferedReader",
"java.io.InputStreamReader",
"org.onosproject.net.intent.Intent"
] | import java.io.BufferedReader; import java.io.InputStreamReader; import org.onosproject.net.intent.Intent; | import java.io.*; import org.onosproject.net.intent.*; | [
"java.io",
"org.onosproject.net"
] | java.io; org.onosproject.net; | 669,912 |
public Situation getSituation(String id); | Situation function(String id); | /**
* This method returns the situation associated with the supplied id.
*
* @param id The id
* @return The situation, or null if not found
* @throws Exception Failed to get situation
*/ | This method returns the situation associated with the supplied id | getSituation | {
"repo_name": "Governance/rtgov-ui",
"path": "rtgov-ui-situations/src/main/java/org/overlord/rtgov/analytics/situation/store/SituationStore.java",
"license": "apache-2.0",
"size": 3440
} | [
"org.overlord.rtgov.analytics.situation.Situation"
] | import org.overlord.rtgov.analytics.situation.Situation; | import org.overlord.rtgov.analytics.situation.*; | [
"org.overlord.rtgov"
] | org.overlord.rtgov; | 1,092,094 |
EClass getMessage(); | EClass getMessage(); | /**
* Returns the meta object for class '{@link org.eclipse.bpmn2.Message <em>Message</em>}'.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @return the meta object for class '<em>Message</em>'.
* @see org.eclipse.bpmn2.Message
* @generated
*/ | Returns the meta object for class '<code>org.eclipse.bpmn2.Message Message</code>'. | getMessage | {
"repo_name": "lqjack/fixflow",
"path": "modules/fixflow-core/src/main/java/org/eclipse/bpmn2/Bpmn2Package.java",
"license": "apache-2.0",
"size": 1014933
} | [
"org.eclipse.emf.ecore.EClass"
] | import org.eclipse.emf.ecore.EClass; | import org.eclipse.emf.ecore.*; | [
"org.eclipse.emf"
] | org.eclipse.emf; | 1,408,229 |
public static dYamlConfiguration loadConfiguration(InputStream stream) {
if (stream == null) {
throw new IllegalArgumentException("Stream cannot be null");
}
dYamlConfiguration config = new dYamlConfiguration();
try {
config.load(stream);
} ... | static dYamlConfiguration function(InputStream stream) { if (stream == null) { throw new IllegalArgumentException(STR); } dYamlConfiguration config = new dYamlConfiguration(); try { config.load(stream); } catch (IOException ex) { Bukkit.getLogger().log(Level.SEVERE, STR, ex); } catch (InvalidConfigurationException ex) ... | /**
* Creates a new {@link YamlConfiguration}, loading from the given stream.
* <p>
* Any errors loading the Configuration will be logged and then ignored.
* If the specified input is not a valid config, a blank config will be returned.
*
* @param stream Input stream
* @return ... | Creates a new <code>YamlConfiguration</code>, loading from the given stream. Any errors loading the Configuration will be logged and then ignored. If the specified input is not a valid config, a blank config will be returned | loadConfiguration | {
"repo_name": "TheDgtl/iChat",
"path": "src/net/TheDgtl/iChat/dYamlConfiguration.java",
"license": "gpl-3.0",
"size": 4659
} | [
"java.io.IOException",
"java.io.InputStream",
"java.util.logging.Level",
"org.bukkit.Bukkit",
"org.bukkit.configuration.InvalidConfigurationException"
] | import java.io.IOException; import java.io.InputStream; import java.util.logging.Level; import org.bukkit.Bukkit; import org.bukkit.configuration.InvalidConfigurationException; | import java.io.*; import java.util.logging.*; import org.bukkit.*; import org.bukkit.configuration.*; | [
"java.io",
"java.util",
"org.bukkit",
"org.bukkit.configuration"
] | java.io; java.util; org.bukkit; org.bukkit.configuration; | 1,262,084 |
public synchronized GenotypeLikelihoodCalculator getInstance(final int ploidy, final int alleleCount) {
checkPloidyAndMaximumAllele(ploidy, alleleCount);
if (calculateGenotypeCountUsingTables(ploidy, alleleCount) == GENOTYPE_COUNT_OVERFLOW) {
final double largeGenotypeCount = Math.pow(1... | synchronized GenotypeLikelihoodCalculator function(final int ploidy, final int alleleCount) { checkPloidyAndMaximumAllele(ploidy, alleleCount); if (calculateGenotypeCountUsingTables(ploidy, alleleCount) == GENOTYPE_COUNT_OVERFLOW) { final double largeGenotypeCount = Math.pow(10, MathUtils.log10BinomialCoefficient(ploid... | /**
* Returns an instance given its ploidy and the number of alleles.
*
* @param alleleCount the required allele-count.
* @param ploidy the required ploidy-count.
*
* @throws IllegalArgumentException if either {@code ploidy} or {@code alleleCount} is negative, or the resulting number of ge... | Returns an instance given its ploidy and the number of alleles | getInstance | {
"repo_name": "magicDGS/gatk",
"path": "src/main/java/org/broadinstitute/hellbender/tools/walkers/genotyper/GenotypeLikelihoodCalculators.java",
"license": "bsd-3-clause",
"size": 19002
} | [
"org.broadinstitute.hellbender.utils.MathUtils"
] | import org.broadinstitute.hellbender.utils.MathUtils; | import org.broadinstitute.hellbender.utils.*; | [
"org.broadinstitute.hellbender"
] | org.broadinstitute.hellbender; | 557,776 |
public Period set(
@Nullable Object id,
@Nullable Object uid,
int windowIndex,
long durationUs,
long positionInWindowUs,
AdPlaybackState adPlaybackState) {
this.id = id;
this.uid = uid;
this.windowIndex = windowIndex;
this.durationUs = duration... | Period function( @Nullable Object id, @Nullable Object uid, int windowIndex, long durationUs, long positionInWindowUs, AdPlaybackState adPlaybackState) { this.id = id; this.uid = uid; this.windowIndex = windowIndex; this.durationUs = durationUs; this.positionInWindowUs = positionInWindowUs; this.adPlaybackState = adPla... | /**
* Sets the data held by this period.
*
* @param id An identifier for the period. Not necessarily unique. May be null if the ids of the
* period are not required.
* @param uid A unique identifier for the period. May be null if the ids of the period are not
* required.
* @pa... | Sets the data held by this period | set | {
"repo_name": "Telegram-FOSS-Team/Telegram-FOSS",
"path": "TMessagesProj/src/main/java/com/google/android/exoplayer2/Timeline.java",
"license": "gpl-2.0",
"size": 38880
} | [
"androidx.annotation.Nullable",
"com.google.android.exoplayer2.source.ads.AdPlaybackState"
] | import androidx.annotation.Nullable; import com.google.android.exoplayer2.source.ads.AdPlaybackState; | import androidx.annotation.*; import com.google.android.exoplayer2.source.ads.*; | [
"androidx.annotation",
"com.google.android"
] | androidx.annotation; com.google.android; | 1,867,616 |
@Override
public List<String> getWorkflowEngineDocumentIdsToLock() {
return null;
}
| List<String> function() { return null; } | /**
* The default implementation returns no additional ids for the workflow engine to lock prior to processing.
*
* @see org.kuali.rice.krad.document.Document#getWorkflowEngineDocumentIdsToLock()
*/ | The default implementation returns no additional ids for the workflow engine to lock prior to processing | getWorkflowEngineDocumentIdsToLock | {
"repo_name": "mztaylor/rice-git",
"path": "rice-framework/krad-web-framework/src/main/java/org/kuali/rice/krad/document/DocumentBase.java",
"license": "apache-2.0",
"size": 31147
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 572,025 |
private String getSearchAttribute(String attributeName, String filterOperation, String attributeValue,
String delimiter) {
String searchAttribute = null;
if (filterOperation.equalsIgnoreCase(SCIMCommonConstants.CO)) {
searchAttribute = createSearchV... | String function(String attributeName, String filterOperation, String attributeValue, String delimiter) { String searchAttribute = null; if (filterOperation.equalsIgnoreCase(SCIMCommonConstants.CO)) { searchAttribute = createSearchValueForCoOperation(attributeName, filterOperation, attributeValue, delimiter); } else if ... | /**
* Get the search value after appending the delimiters according to the attribute name to be filtered.
*
* @param attributeName Filter attribute name
* @param filterOperation Operator value
* @param attributeValue Search value
* @param delimiter Filter delimiter based on search... | Get the search value after appending the delimiters according to the attribute name to be filtered | getSearchAttribute | {
"repo_name": "wso2-extensions/identity-inbound-provisioning-scim2",
"path": "components/org.wso2.carbon.identity.scim2.common/src/main/java/org/wso2/carbon/identity/scim2/common/impl/SCIMUserManager.java",
"license": "apache-2.0",
"size": 296414
} | [
"org.wso2.carbon.identity.scim2.common.utils.SCIMCommonConstants"
] | import org.wso2.carbon.identity.scim2.common.utils.SCIMCommonConstants; | import org.wso2.carbon.identity.scim2.common.utils.*; | [
"org.wso2.carbon"
] | org.wso2.carbon; | 1,068,226 |
@VisibleForTesting
public RpcMetrics getRpcMetrics() {
return rpcMetrics;
} | RpcMetrics function() { return rpcMetrics; } | /**
* Returns a handle to the rpcMetrics (required in tests)
* @return rpc metrics
*/ | Returns a handle to the rpcMetrics (required in tests) | getRpcMetrics | {
"repo_name": "Bizyroth/hadoop",
"path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ipc/Server.java",
"license": "apache-2.0",
"size": 104789
} | [
"org.apache.hadoop.ipc.metrics.RpcMetrics"
] | import org.apache.hadoop.ipc.metrics.RpcMetrics; | import org.apache.hadoop.ipc.metrics.*; | [
"org.apache.hadoop"
] | org.apache.hadoop; | 2,053,902 |
public static final File[] getDiskDirs() {
return JUnit4CacheTestCase.getDiskDirs();
} | static final File[] function() { return JUnit4CacheTestCase.getDiskDirs(); } | /**
* Return a set of disk directories for persistence tests. These directories will be automatically
* cleaned up during tear down.
*/ | Return a set of disk directories for persistence tests. These directories will be automatically cleaned up during tear down | getDiskDirs | {
"repo_name": "prasi-in/geode",
"path": "geode-core/src/test/java/org/apache/geode/test/dunit/cache/internal/JUnit3CacheTestCase.java",
"license": "apache-2.0",
"size": 7245
} | [
"java.io.File"
] | import java.io.File; | import java.io.*; | [
"java.io"
] | java.io; | 616,208 |
public final Date getDate() {
return mRightEye == null ? mLeftEye.getDate() : mRightEye.getDate();
} | final Date function() { return mRightEye == null ? mLeftEye.getDate() : mRightEye.getDate(); } | /**
* Returns the date of the right photo. (Assumption: both should have the same date.)
*
* @return the date of the right photo.
*/ | Returns the date of the right photo. (Assumption: both should have the same date.) | getDate | {
"repo_name": "jeisfeld/Augendiagnose",
"path": "AugendiagnoseFX/src/de/eisfeldj/augendiagnosefx/util/imagefile/EyePhotoPair.java",
"license": "gpl-2.0",
"size": 3282
} | [
"java.util.Date"
] | import java.util.Date; | import java.util.*; | [
"java.util"
] | java.util; | 1,202,111 |
@Path("/transactions/client")
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_FORM_URLENCODED)
public String getClientTransactions(@FormParam("ID") String ID) {
Connection conn = null;
try {
// This will load the MySQL driver, each DB has its own driver
Class.forNa... | @Path(STR) @Produces(MediaType.APPLICATION_JSON) @Consumes(MediaType.APPLICATION_FORM_URLENCODED) String function(@FormParam("ID") String ID) { Connection conn = null; try { Class.forName(STR); conn = DriverManager.getConnection( STRSQLException: STRSQLState: STRVendorError: STRSELECT * FROM `Transaction` WHERE ClientI... | /**
* Get all transactions made for a specific client, by given ClientID.
*
* @param ID
* @return
*/ | Get all transactions made for a specific client, by given ClientID | getClientTransactions | {
"repo_name": "LawOS/LawOSREST",
"path": "LawOSREST/src/lawos_Rest/LegalRecordsStaff.java",
"license": "gpl-3.0",
"size": 4310
} | [
"java.sql.Connection",
"java.sql.DriverManager",
"javax.ws.rs.Consumes",
"javax.ws.rs.FormParam",
"javax.ws.rs.Path",
"javax.ws.rs.Produces",
"javax.ws.rs.core.MediaType"
] | import java.sql.Connection; import java.sql.DriverManager; import javax.ws.rs.Consumes; import javax.ws.rs.FormParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import javax.ws.rs.core.MediaType; | import java.sql.*; import javax.ws.rs.*; import javax.ws.rs.core.*; | [
"java.sql",
"javax.ws"
] | java.sql; javax.ws; | 430,670 |
protected SeekableInput createSeekableInput(Configuration conf, Path path) throws IOException {
return new FsInput(path, conf);
} | SeekableInput function(Configuration conf, Path path) throws IOException { return new FsInput(path, conf); } | /**
* Creates a seekable input stream to an Avro container file.
*
* @param conf The hadoop configuration.
* @param path The path to the avro container file.
* @throws IOException If there is an error reading from the path.
*/ | Creates a seekable input stream to an Avro container file | createSeekableInput | {
"repo_name": "apache/avro",
"path": "lang/java/mapred/src/main/java/org/apache/avro/mapreduce/AvroRecordReaderBase.java",
"license": "apache-2.0",
"size": 6993
} | [
"java.io.IOException",
"org.apache.avro.file.SeekableInput",
"org.apache.avro.mapred.FsInput",
"org.apache.hadoop.conf.Configuration",
"org.apache.hadoop.fs.Path"
] | import java.io.IOException; import org.apache.avro.file.SeekableInput; import org.apache.avro.mapred.FsInput; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.fs.Path; | import java.io.*; import org.apache.avro.file.*; import org.apache.avro.mapred.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.fs.*; | [
"java.io",
"org.apache.avro",
"org.apache.hadoop"
] | java.io; org.apache.avro; org.apache.hadoop; | 1,379,920 |
public SubResource outboundRule() {
return this.outboundRule;
} | SubResource function() { return this.outboundRule; } | /**
* Get a reference to an outbound rule that uses this backend address pool.
*
* @return the outboundRule value
*/ | Get a reference to an outbound rule that uses this backend address pool | outboundRule | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/network/mgmt-v2019_11_01/src/main/java/com/microsoft/azure/management/network/v2019_11_01/implementation/BackendAddressPoolInner.java",
"license": "mit",
"size": 4923
} | [
"com.microsoft.azure.SubResource"
] | import com.microsoft.azure.SubResource; | import com.microsoft.azure.*; | [
"com.microsoft.azure"
] | com.microsoft.azure; | 2,484,715 |
public Observable<ServiceResponse<Page<CsmUsageQuotaInner>>> listUsagesSinglePageAsync(final String resourceGroupName, final String name, final String filter) {
if (resourceGroupName == null) {
throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.");
... | Observable<ServiceResponse<Page<CsmUsageQuotaInner>>> function(final String resourceGroupName, final String name, final String filter) { if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (name == null) { throw new IllegalArgumentException(STR); } if (this.client.subscriptionId() == null) { ... | /**
* Gets server farm usage information.
* Gets server farm usage information.
*
ServiceResponse<PageImpl<CsmUsageQuotaInner>> * @param resourceGroupName Name of the resource group to which the resource belongs.
ServiceResponse<PageImpl<CsmUsageQuotaInner>> * @param name Name of App Service Plan... | Gets server farm usage information. Gets server farm usage information | listUsagesSinglePageAsync | {
"repo_name": "selvasingh/azure-sdk-for-java",
"path": "sdk/appservice/mgmt-v2018_02_01/src/main/java/com/microsoft/azure/management/appservice/v2018_02_01/implementation/AppServicePlansInner.java",
"license": "mit",
"size": 300795
} | [
"com.microsoft.azure.Page",
"com.microsoft.rest.ServiceResponse"
] | import com.microsoft.azure.Page; import com.microsoft.rest.ServiceResponse; | import com.microsoft.azure.*; import com.microsoft.rest.*; | [
"com.microsoft.azure",
"com.microsoft.rest"
] | com.microsoft.azure; com.microsoft.rest; | 474,641 |
forbiddenProperties = new LinkedHashSet<>(50);
for (SemanticNonPersistentPropertiesExtension extension : semanticNonPersistentProperties) {
forbiddenProperties.addAll(extension.getNonPersistentProperties());
}
} | forbiddenProperties = new LinkedHashSet<>(50); for (SemanticNonPersistentPropertiesExtension extension : semanticNonPersistentProperties) { forbiddenProperties.addAll(extension.getNonPersistentProperties()); } } | /**
* Initialize the cache and logger.
*/ | Initialize the cache and logger | initialize | {
"repo_name": "SirmaITT/conservation-space-1.7.0",
"path": "docker/sirma-platform/platform/seip-parent/platform/domain-model/instance-core/src/main/java/com/sirma/itt/seip/instance/dao/BaseSemanticInstanceDaoImpl.java",
"license": "lgpl-3.0",
"size": 14500
} | [
"com.sirma.itt.seip.instance.properties.SemanticNonPersistentPropertiesExtension",
"java.util.LinkedHashSet"
] | import com.sirma.itt.seip.instance.properties.SemanticNonPersistentPropertiesExtension; import java.util.LinkedHashSet; | import com.sirma.itt.seip.instance.properties.*; import java.util.*; | [
"com.sirma.itt",
"java.util"
] | com.sirma.itt; java.util; | 143,616 |
public List getSavedQueriesByUsername(String userName) throws Exception {
log.debug("Entering SavedQueryManagerImpl.getSavedQueriesByUsername");
return QueryManagerSingleton.instance()
.getSavedQueriesByParty(userName);
} | List function(String userName) throws Exception { log.debug(STR); return QueryManagerSingleton.instance() .getSavedQueriesByParty(userName); } | /**
* Get all SavedQueries from a given user
*
* @param userName
* the username which to return all SavedQueries
*
* @return the List of matching SavedQuery objects, or null if not found.
* @exception Exception
* when anything goes wrong.
*/ | Get all SavedQueries from a given user | getSavedQueriesByUsername | {
"repo_name": "NCIP/camod",
"path": "software/camod/src/gov/nih/nci/camod/service/impl/SavedQueryManagerImpl.java",
"license": "bsd-3-clause",
"size": 22685
} | [
"java.util.List"
] | import java.util.List; | import java.util.*; | [
"java.util"
] | java.util; | 1,584,053 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.