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 ServiceFuture<List<DatabaseAccountGetResultsInner>> listByResourceGroupAsync(String resourceGroupName, final ServiceCallback<List<DatabaseAccountGetResultsInner>> serviceCallback) { return ServiceFuture.fromResponse(listByResourceGroupWithServiceResponseAsync(resourceGroupName), serviceCallback); ...
ServiceFuture<List<DatabaseAccountGetResultsInner>> function(String resourceGroupName, final ServiceCallback<List<DatabaseAccountGetResultsInner>> serviceCallback) { return ServiceFuture.fromResponse(listByResourceGroupWithServiceResponseAsync(resourceGroupName), serviceCallback); }
/** * Lists all the Azure Cosmos DB database accounts available under the given resource group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param serviceCallback the async ServiceCallback to handle successful and failed responses. * @return the ...
Lists all the Azure Cosmos DB database accounts available under the given resource group
listByResourceGroupAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/cosmos/mgmt-v2020_04_01/src/main/java/com/microsoft/azure/management/cosmosdb/v2020_04_01/implementation/DatabaseAccountsInner.java", "license": "mit", "size": 153860 }
[ "com.microsoft.rest.ServiceCallback", "com.microsoft.rest.ServiceFuture", "java.util.List" ]
import com.microsoft.rest.ServiceCallback; import com.microsoft.rest.ServiceFuture; import java.util.List;
import com.microsoft.rest.*; import java.util.*;
[ "com.microsoft.rest", "java.util" ]
com.microsoft.rest; java.util;
407,386
public String exportResources( VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, IMetaStore metaStore ) throws KettleException { try { // The object that we're modifying here is a copy of the original! // So let's ...
String function( VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, IMetaStore metaStore ) throws KettleException { try { return gpglocation; } } return null; } catch ( Exception e ) { throw new KettleException( e ); } }
/** * Exports the object to a flat-file system, adding content with filename keys to a set of definitions. The supplied * resource naming interface allows the object to name appropriately without worrying about those parts of the * implementation specific details. * * @param space * The varia...
Exports the object to a flat-file system, adding content with filename keys to a set of definitions. The supplied resource naming interface allows the object to name appropriately without worrying about those parts of the implementation specific details
exportResources
{ "repo_name": "rfellows/pentaho-kettle", "path": "engine/src/org/pentaho/di/job/entries/pgpverify/JobEntryPGPVerify.java", "license": "apache-2.0", "size": 11072 }
[ "java.util.Map", "org.pentaho.di.core.exception.KettleException", "org.pentaho.di.core.variables.VariableSpace", "org.pentaho.di.repository.Repository", "org.pentaho.di.resource.ResourceDefinition", "org.pentaho.di.resource.ResourceNamingInterface", "org.pentaho.metastore.api.IMetaStore" ]
import java.util.Map; import org.pentaho.di.core.exception.KettleException; import org.pentaho.di.core.variables.VariableSpace; import org.pentaho.di.repository.Repository; import org.pentaho.di.resource.ResourceDefinition; import org.pentaho.di.resource.ResourceNamingInterface; import org.pentaho.metastore.api.IMetaSt...
import java.util.*; import org.pentaho.di.core.exception.*; import org.pentaho.di.core.variables.*; import org.pentaho.di.repository.*; import org.pentaho.di.resource.*; import org.pentaho.metastore.api.*;
[ "java.util", "org.pentaho.di", "org.pentaho.metastore" ]
java.util; org.pentaho.di; org.pentaho.metastore;
554,406
private ColorPickerSwatch createColorSwatch(int color, int selectedColor) { ColorPickerSwatch view = new ColorPickerSwatch(getContext(), color, color == selectedColor, mOnSwatchColorSelectedListener); TableRow.LayoutParams params = new TableRow.LayoutParams(mSwatchLength, mSwatchLeng...
ColorPickerSwatch function(int color, int selectedColor) { ColorPickerSwatch view = new ColorPickerSwatch(getContext(), color, color == selectedColor, mOnSwatchColorSelectedListener); TableRow.LayoutParams params = new TableRow.LayoutParams(mSwatchLength, mSwatchLength); params.setMargins(mMarginSize, mMarginSize, mMar...
/** * Creates a color swatch. */
Creates a color swatch
createColorSwatch
{ "repo_name": "jtyang/material-range-bar", "path": "RangeBarSample/src/com/appyvet/rangebarsample/colorpicker/ColorPickerPalette.java", "license": "apache-2.0", "size": 6655 }
[ "android.widget.TableRow" ]
import android.widget.TableRow;
import android.widget.*;
[ "android.widget" ]
android.widget;
1,918,940
public PojoBuilder withName(String pojoPackage, String className) { if (!NamingHelper.isValidJavaClassName(className)) { className = NamingHelper.cleanNameForJava(className); } final String fullyQualifiedClassName = pojoPackage + "." + className; // Initiate package if necessary if (this.pojoPackage ==...
PojoBuilder function(String pojoPackage, String className) { if (!NamingHelper.isValidJavaClassName(className)) { className = NamingHelper.cleanNameForJava(className); } final String fullyQualifiedClassName = pojoPackage + "." + className; if (this.pojoPackage == null) { withPackage(pojoPackage); } if (this.pojo != nul...
/** * Sets this Pojo's name * * @param pojoPackage * The Package used to create POJO * @param className * Class to be created * @return This instance */
Sets this Pojo's name
withName
{ "repo_name": "phoenixnap/springmvc-raml-plugin", "path": "src/main/java/com/phoenixnap/oss/ramlplugin/raml2code/interpreters/PojoBuilder.java", "license": "apache-2.0", "size": 22034 }
[ "com.phoenixnap.oss.ramlplugin.raml2code.helpers.NamingHelper", "com.sun.codemodel.JClassAlreadyExistsException" ]
import com.phoenixnap.oss.ramlplugin.raml2code.helpers.NamingHelper; import com.sun.codemodel.JClassAlreadyExistsException;
import com.phoenixnap.oss.ramlplugin.raml2code.helpers.*; import com.sun.codemodel.*;
[ "com.phoenixnap.oss", "com.sun.codemodel" ]
com.phoenixnap.oss; com.sun.codemodel;
125,206
@Generated @StructureField(order = 2, isGetter = false) public native void setVersion(int value);
@StructureField(order = 2, isGetter = false) native void function(int value);
/** * X.Y.Z is encoded in nibbles xxxx.yy.zz */
X.Y.Z is encoded in nibbles xxxx.yy.zz
setVersion
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/struct/version_min_command.java", "license": "apache-2.0", "size": 2320 }
[ "org.moe.natj.c.ann.StructureField" ]
import org.moe.natj.c.ann.StructureField;
import org.moe.natj.c.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
83,741
EClass getConditionPath();
EClass getConditionPath();
/** * Returns the meta object for class '{@link eu.scasefp7.eclipse.storyboards.ConditionPath <em>Condition Path</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for class '<em>Condition Path</em>'. * @see eu.scasefp7.eclipse.storyboards.ConditionPath * @generated ...
Returns the meta object for class '<code>eu.scasefp7.eclipse.storyboards.ConditionPath Condition Path</code>'.
getConditionPath
{ "repo_name": "LeonoraG/storyboard-creator", "path": "eu.scasefp7.eclipse.storyboards/src/eu/scasefp7/eclipse/storyboards/StoryboardsPackage.java", "license": "apache-2.0", "size": 45560 }
[ "org.eclipse.emf.ecore.EClass" ]
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
249,009
public void startLifeCycle(Extension ext) throws DatabaseException, DatabaseUnsupportedException { ext.init(); ext.databaseOpen(model.getDb()); ext.initModel(model); ext.initXML(model.getSession(), model.getOptionsParam()); ext.initView(view); ExtensionHo...
void function(Extension ext) throws DatabaseException, DatabaseUnsupportedException { ext.init(); ext.databaseOpen(model.getDb()); ext.initModel(model); ext.initXML(model.getSession(), model.getOptionsParam()); ext.initView(view); ExtensionHook extHook = new ExtensionHook(model, view); extensionHooks.put(ext, extHook);...
/** * Initialize a specific Extension * * @param ext the Extension that need to be initialized * @throws DatabaseUnsupportedException * @throws DatabaseException */
Initialize a specific Extension
startLifeCycle
{ "repo_name": "gmaran23/zaproxy", "path": "zap/src/main/java/org/parosproxy/paros/extension/ExtensionLoader.java", "license": "apache-2.0", "size": 58725 }
[ "org.parosproxy.paros.control.Control", "org.parosproxy.paros.control.Proxy", "org.parosproxy.paros.db.DatabaseException", "org.parosproxy.paros.db.DatabaseUnsupportedException" ]
import org.parosproxy.paros.control.Control; import org.parosproxy.paros.control.Proxy; import org.parosproxy.paros.db.DatabaseException; import org.parosproxy.paros.db.DatabaseUnsupportedException;
import org.parosproxy.paros.control.*; import org.parosproxy.paros.db.*;
[ "org.parosproxy.paros" ]
org.parosproxy.paros;
2,136,973
@Override public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof MonthDateFormat)) { return false; } if (!super.equals(obj)) { return false; } MonthDateFormat that = (MonthD...
boolean function(Object obj) { if (obj == this) { return true; } if (!(obj instanceof MonthDateFormat)) { return false; } if (!super.equals(obj)) { return false; } MonthDateFormat that = (MonthDateFormat) obj; if (!Arrays.equals(this.months, that.months)) { return false; } if (!Arrays.equals(this.showYear, that.showYea...
/** * Tests this formatter for equality with an arbitrary object. * * @param obj the object. * * @return A boolean. */
Tests this formatter for equality with an arbitrary object
equals
{ "repo_name": "oskopek/jfreechart-fse", "path": "src/main/java/org/jfree/chart/axis/MonthDateFormat.java", "license": "lgpl-2.1", "size": 9328 }
[ "java.util.Arrays" ]
import java.util.Arrays;
import java.util.*;
[ "java.util" ]
java.util;
396,872
public static Collection<Procedure> getReferencingProcedures(Column catalog_col) throws Exception { Set<Procedure> ret = new HashSet<Procedure>(); Database catalog_db = CatalogUtil.getDatabase(catalog_col.getParent()); // Special Case: ReplicatedColumn if (catalog_col instanceof Rep...
static Collection<Procedure> function(Column catalog_col) throws Exception { Set<Procedure> ret = new HashSet<Procedure>(); Database catalog_db = CatalogUtil.getDatabase(catalog_col.getParent()); if (catalog_col instanceof ReplicatedColumn) { Table catalog_tbl = catalog_col.getParent(); for (Column col : catalog_tbl.ge...
/** * Returns all of the procedures that access/modify the given Column * * @param catalog_col * @return * @throws Exception */
Returns all of the procedures that access/modify the given Column
getReferencingProcedures
{ "repo_name": "gxyang/hstore", "path": "src/frontend/edu/brown/catalog/CatalogUtil.java", "license": "gpl-3.0", "size": 121408 }
[ "edu.brown.catalog.special.ReplicatedColumn", "java.util.Collection", "java.util.HashSet", "java.util.Set", "org.voltdb.catalog.Column", "org.voltdb.catalog.Database", "org.voltdb.catalog.Procedure", "org.voltdb.catalog.Table" ]
import edu.brown.catalog.special.ReplicatedColumn; import java.util.Collection; import java.util.HashSet; import java.util.Set; import org.voltdb.catalog.Column; import org.voltdb.catalog.Database; import org.voltdb.catalog.Procedure; import org.voltdb.catalog.Table;
import edu.brown.catalog.special.*; import java.util.*; import org.voltdb.catalog.*;
[ "edu.brown.catalog", "java.util", "org.voltdb.catalog" ]
edu.brown.catalog; java.util; org.voltdb.catalog;
880,121
protected final StoredNode[] selectAndLock(Txn transaction) throws LockException, PermissionDeniedException, EXistException, XPathException, TriggerException { final java.util.concurrent.locks.Lock globalLock = broker.getBrokerPool().getGlobalUpdateLock(); globalLock.lock(); try { final NodeL...
final StoredNode[] function(Txn transaction) throws LockException, PermissionDeniedException, EXistException, XPathException, TriggerException { final java.util.concurrent.locks.Lock globalLock = broker.getBrokerPool().getGlobalUpdateLock(); globalLock.lock(); try { final NodeList nl = select(docs); final DocumentSet l...
/** * Acquire a lock on all documents processed by this modification. We have * to avoid that node positions change during the operation. * feature trigger_update : * At the same time we leverage on the fact that it's called before * database modification to call the eventual triggers. * * @param transac...
Acquire a lock on all documents processed by this modification. We have to avoid that node positions change during the operation. feature trigger_update : At the same time we leverage on the fact that it's called before database modification to call the eventual triggers
selectAndLock
{ "repo_name": "windauer/exist", "path": "exist-core/src/main/java/org/exist/xupdate/Modification.java", "license": "lgpl-2.1", "size": 13040 }
[ "org.exist.EXistException", "org.exist.collections.triggers.TriggerException", "org.exist.dom.persistent.DocumentImpl", "org.exist.dom.persistent.DocumentSet", "org.exist.dom.persistent.NodeSet", "org.exist.dom.persistent.StoredNode", "org.exist.security.PermissionDeniedException", "org.exist.storage....
import org.exist.EXistException; import org.exist.collections.triggers.TriggerException; import org.exist.dom.persistent.DocumentImpl; import org.exist.dom.persistent.DocumentSet; import org.exist.dom.persistent.NodeSet; import org.exist.dom.persistent.StoredNode; import org.exist.security.PermissionDeniedException; im...
import org.exist.*; import org.exist.collections.triggers.*; import org.exist.dom.persistent.*; import org.exist.security.*; import org.exist.storage.lock.*; import org.exist.storage.txn.*; import org.exist.util.*; import org.exist.xquery.*; import org.w3c.dom.*;
[ "org.exist", "org.exist.collections", "org.exist.dom", "org.exist.security", "org.exist.storage", "org.exist.util", "org.exist.xquery", "org.w3c.dom" ]
org.exist; org.exist.collections; org.exist.dom; org.exist.security; org.exist.storage; org.exist.util; org.exist.xquery; org.w3c.dom;
2,287,232
public void removeBevelHeightListener(final PropertyChangeListener listener) { changes.removePropertyChangeListener("BevelHeight", listener); }
void function(final PropertyChangeListener listener) { changes.removePropertyChangeListener(STR, listener); }
/** * Removes a listener for the BevelHeight property changes. * @param listener the listener to remove. * @see #addBevelHeightListener(java.beans.PropertyChangeListener) */
Removes a listener for the BevelHeight property changes
removeBevelHeightListener
{ "repo_name": "pecko/debrief", "path": "org.mwc.cmap.legacy/src/MWC/GUI/TabPanel/ButtonBase.java", "license": "epl-1.0", "size": 48807 }
[ "java.beans.PropertyChangeListener" ]
import java.beans.PropertyChangeListener;
import java.beans.*;
[ "java.beans" ]
java.beans;
147,016
@Override public void close() throws IOException { // Set the closed bit on this DomainSocket int count; try { count = refCount.setClosed(); } catch (ClosedChannelException e) { // Someone else already closed the DomainSocket. return; } // Wait for all references to go away...
void function() throws IOException { int count; try { count = refCount.setClosed(); } catch (ClosedChannelException e) { return; } boolean didShutdown = false; boolean interrupted = false; while (count > 0) { if (!didShutdown) { try { shutdown0(fd); } catch (IOException e) { LOG.error(STR, e); } didShutdown = true; } t...
/** * Close the Socket. */
Close the Socket
close
{ "repo_name": "JingchengDu/hadoop", "path": "hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/net/unix/DomainSocket.java", "license": "apache-2.0", "size": 18495 }
[ "java.io.IOException", "java.nio.channels.ClosedChannelException" ]
import java.io.IOException; import java.nio.channels.ClosedChannelException;
import java.io.*; import java.nio.channels.*;
[ "java.io", "java.nio" ]
java.io; java.nio;
2,016,507
static double computeAngleBetween(IGeoPoint from, IGeoPoint to) { return distanceRadians(toRadians(from.getLatitude()), toRadians(from.getLongitude()), toRadians(to.getLatitude()), toRadians(to.getLongitude())); }
static double computeAngleBetween(IGeoPoint from, IGeoPoint to) { return distanceRadians(toRadians(from.getLatitude()), toRadians(from.getLongitude()), toRadians(to.getLatitude()), toRadians(to.getLongitude())); }
/** * Returns the angle between two IGeoPoints, in radians. This is the same as the distance * on the unit sphere. */
Returns the angle between two IGeoPoints, in radians. This is the same as the distance on the unit sphere
computeAngleBetween
{ "repo_name": "osmdroid/osmdroid", "path": "osmdroid-geopackage/src/main/java/org/osmdroid/gpkg/overlay/features/SphericalUtil.java", "license": "apache-2.0", "size": 13949 }
[ "java.lang.Math", "org.osmdroid.api.IGeoPoint" ]
import java.lang.Math; import org.osmdroid.api.IGeoPoint;
import java.lang.*; import org.osmdroid.api.*;
[ "java.lang", "org.osmdroid.api" ]
java.lang; org.osmdroid.api;
981,698
public int countFeatures(GeometryEnvelope envelope, String where, String[] whereArgs) { return countFeatures(false, null, envelope, where, whereArgs); }
int function(GeometryEnvelope envelope, String where, String[] whereArgs) { return countFeatures(false, null, envelope, where, whereArgs); }
/** * Count the features within the geometry envelope * * @param envelope * geometry envelope * @param where * where clause * @param whereArgs * where arguments * @return count * @since 3.4.0 */
Count the features within the geometry envelope
countFeatures
{ "repo_name": "ngageoint/geopackage-java", "path": "src/main/java/mil/nga/geopackage/extension/rtree/RTreeIndexTableDao.java", "license": "mit", "size": 349361 }
[ "mil.nga.sf.GeometryEnvelope" ]
import mil.nga.sf.GeometryEnvelope;
import mil.nga.sf.*;
[ "mil.nga.sf" ]
mil.nga.sf;
1,962,382
private Map<Long, RenderingDef> loadRenderingSettings(List<Pixels> pixels) { return loadRenderingSettings(pixels, getCurrentUserId()); }
Map<Long, RenderingDef> function(List<Pixels> pixels) { return loadRenderingSettings(pixels, getCurrentUserId()); }
/** * Retrieves all rendering settings associated with a given set of Pixels. * @param pixels List of Pixels to retrieve settings for. * @return A map of &lt;Pixels.Id,RenderingDef&gt; for the list of Pixels * given. */
Retrieves all rendering settings associated with a given set of Pixels
loadRenderingSettings
{ "repo_name": "jballanc/openmicroscopy", "path": "components/server/src/ome/logic/RenderingSettingsImpl.java", "license": "gpl-2.0", "size": 57280 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
122,713
public static boolean isFileTypeSupported(int fileType, Sequence sequence) { List providers = getMidiFileWriters(); for (int i = 0; i < providers.size(); i++ ) { MidiFileWriter writer = (MidiFileWriter) providers.get(i); if( writer.isFileTypeSupported(fileType,sequence)) { ...
static boolean function(int fileType, Sequence sequence) { List providers = getMidiFileWriters(); for (int i = 0; i < providers.size(); i++ ) { MidiFileWriter writer = (MidiFileWriter) providers.get(i); if( writer.isFileTypeSupported(fileType,sequence)) { return true; } } return false; }
/** * Indicates whether a MIDI file of the file type specified can be written * from the sequence indicated. * @param fileType the file type for which write capabilities * are queried * @param sequence the sequence for which file writing support is queried * @return <code>true</code> if th...
Indicates whether a MIDI file of the file type specified can be written from the sequence indicated
isFileTypeSupported
{ "repo_name": "ohpauleez/soymacchiato", "path": "src/jdk/src/share/classes/javax/sound/midi/MidiSystem.java", "license": "gpl-2.0", "size": 58868 }
[ "java.util.List", "javax.sound.midi.spi.MidiFileWriter" ]
import java.util.List; import javax.sound.midi.spi.MidiFileWriter;
import java.util.*; import javax.sound.midi.spi.*;
[ "java.util", "javax.sound" ]
java.util; javax.sound;
1,039,431
public TldAttributeType<T> removeName() { childNode.removeChildren("name"); return this; }
TldAttributeType<T> function() { childNode.removeChildren("name"); return this; }
/** * Removes the <code>name</code> element * @return the current instance of <code>TldAttributeType<T></code> */
Removes the <code>name</code> element
removeName
{ "repo_name": "forge/javaee-descriptors", "path": "impl/src/main/java/org/jboss/shrinkwrap/descriptor/impl/jsptaglibrary21/TldAttributeTypeImpl.java", "license": "epl-1.0", "size": 15177 }
[ "org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.TldAttributeType" ]
import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.TldAttributeType;
import org.jboss.shrinkwrap.descriptor.api.jsptaglibrary21.*;
[ "org.jboss.shrinkwrap" ]
org.jboss.shrinkwrap;
23,100
public void dialog(Context context, String action, Bundle parameters, final DialogListener listener) { String endpoint = DIALOG_BASE_URL + action; parameters.putString("display", "touch"); parameters.putString("redirect_uri", REDIRECT_URI); if (action.equals(LOGIN)) { ...
void function(Context context, String action, Bundle parameters, final DialogListener listener) { String endpoint = DIALOG_BASE_URL + action; parameters.putString(STR, "touch"); parameters.putString(STR, REDIRECT_URI); if (action.equals(LOGIN)) { parameters.putString("type", STR); parameters.putString(STR, mAppId); } e...
/** * Generate a UI dialog for the request action in the given Android context * with the provided parameters. * * Note that this method is asynchronous and the callback will be invoked in * the original calling thread (not in a background thread). * * @param context * ...
Generate a UI dialog for the request action in the given Android context with the provided parameters. Note that this method is asynchronous and the callback will be invoked in the original calling thread (not in a background thread)
dialog
{ "repo_name": "KalyanChakravarthyV/emr-client", "path": "src/com/facebook/android/Facebook.java", "license": "unlicense", "size": 30176 }
[ "android.content.Context", "android.content.pm.PackageManager", "android.os.Bundle" ]
import android.content.Context; import android.content.pm.PackageManager; import android.os.Bundle;
import android.content.*; import android.content.pm.*; import android.os.*;
[ "android.content", "android.os" ]
android.content; android.os;
2,255,649
public Key min() { if (isEmpty()) throw new NoSuchElementException("called min() with empty symbol table"); return st.firstKey(); }
Key function() { if (isEmpty()) throw new NoSuchElementException(STR); return st.firstKey(); }
/** * Returns the smallest key in this symbol table. * * @return the smallest key in this symbol table * @throws NoSuchElementException if this symbol table is empty */
Returns the smallest key in this symbol table
min
{ "repo_name": "zyearn/algs4", "path": "src/main/java/edu/princeton/cs/algs4/ST.java", "license": "gpl-3.0", "size": 9550 }
[ "java.util.NoSuchElementException" ]
import java.util.NoSuchElementException;
import java.util.*;
[ "java.util" ]
java.util;
333,248
@Test public void testSkyframe() throws Exception { setupDummyRule(); String aoutLabel = "//pkg:a.out"; update(aoutLabel); // However, a ConfiguredTarget was actually produced. ConfiguredTarget target = Iterables.getOnlyElement(getAnalysisResult().getTargetsToBuild()); assertEquals(aoutLab...
void function() throws Exception { setupDummyRule(); String aoutLabel = " update(aoutLabel); ConfiguredTarget target = Iterables.getOnlyElement(getAnalysisResult().getTargetsToBuild()); assertEquals(aoutLabel, target.getLabel().toString()); Artifact aout = Iterables.getOnlyElement( target.getProvider(FileProvider.class...
/** * Smoke test for the Skyframe code path. */
Smoke test for the Skyframe code path
testSkyframe
{ "repo_name": "hhclam/bazel", "path": "src/test/java/com/google/devtools/build/lib/analysis/BuildViewTest.java", "license": "apache-2.0", "size": 35399 }
[ "com.google.common.collect.Iterables", "com.google.devtools.build.lib.actions.Action", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.actions.FailAction", "org.junit.Assert" ]
import com.google.common.collect.Iterables; import com.google.devtools.build.lib.actions.Action; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.actions.FailAction; import org.junit.Assert;
import com.google.common.collect.*; import com.google.devtools.build.lib.actions.*; import org.junit.*;
[ "com.google.common", "com.google.devtools", "org.junit" ]
com.google.common; com.google.devtools; org.junit;
1,718,154
public static void checkNonNegative(final long[] in) throws NotPositiveException { for (int i = 0; i < in.length; i++) { if (in[i] < 0) { throw new NotPositiveException(in[i]); } } }
static void function(final long[] in) throws NotPositiveException { for (int i = 0; i < in.length; i++) { if (in[i] < 0) { throw new NotPositiveException(in[i]); } } }
/** * Check that all entries of the input array are >= 0. * * @param in Array to be tested * @throws NotPositiveException if any array entries are less than 0. * @since 3.1 */
Check that all entries of the input array are >= 0
checkNonNegative
{ "repo_name": "SpoonLabs/astor", "path": "examples/math_2/src/main/java/org/apache/commons/math3/util/MathArrays.java", "license": "gpl-2.0", "size": 59002 }
[ "org.apache.commons.math3.exception.NotPositiveException" ]
import org.apache.commons.math3.exception.NotPositiveException;
import org.apache.commons.math3.exception.*;
[ "org.apache.commons" ]
org.apache.commons;
1,237,310
public void removePhiAtBlock(BasicBlock bb) { phis[bb.getIndex()] = null; } // ------------------------------------------------------------------- // ATTRIBUTES // ------------------------------------------------------------------- protected int var; protected Set definitionBlocks; //index...
void function(BasicBlock bb) { phis[bb.getIndex()] = null; } protected int var; protected Set definitionBlocks; protected LinkedList[] usesOperandBox; protected SSAConstructor ssaConstructor; protected QPhi[] phis;
/** * Remove the phi function for a given basic block * * @param bb the basic block */
Remove the phi function for a given basic block
removePhiAtBlock
{ "repo_name": "tud-stg-lang/caesar-compiler", "path": "src/org/caesarj/compiler/ssa/SSAConstructorInfo.java", "license": "gpl-2.0", "size": 5472 }
[ "java.util.LinkedList", "java.util.Set" ]
import java.util.LinkedList; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
2,468,044
@Ignore @Test public void testDropInvalidConnectionsDerby() throws Exception { // Start Derby server. System.setProperty("derby.drda.startNetworkServer", "true"); System.setProperty("derby.system.home", dbLocation); NetworkServerControl serverControl = new NetworkServerContr...
void function() throws Exception { System.setProperty(STR, "true"); System.setProperty(STR, dbLocation); NetworkServerControl serverControl = new NetworkServerControl(InetAddress.getLocalHost(),1527); serverControl.start(new PrintWriter(System.out, true)); Class.forName(STR); Connection conn = DriverManager.getConnecti...
/** * Note!! Derby keeps something open even after server shutdown. * So it's difficult to get invalid connections. * * Test Drop invalid connections and create new ones. */
Note!! Derby keeps something open even after server shutdown. So it's difficult to get invalid connections. Test Drop invalid connections and create new ones
testDropInvalidConnectionsDerby
{ "repo_name": "mcgilman/nifi", "path": "nifi-nar-bundles/nifi-standard-services/nifi-dbcp-service-bundle/nifi-dbcp-service/src/test/java/org/apache/nifi/dbcp/DBCPServiceTest.java", "license": "apache-2.0", "size": 28145 }
[ "java.io.PrintWriter", "java.net.InetAddress", "java.sql.Connection", "java.sql.DriverManager", "org.apache.derby.drda.NetworkServerControl", "org.junit.Assert" ]
import java.io.PrintWriter; import java.net.InetAddress; import java.sql.Connection; import java.sql.DriverManager; import org.apache.derby.drda.NetworkServerControl; import org.junit.Assert;
import java.io.*; import java.net.*; import java.sql.*; import org.apache.derby.drda.*; import org.junit.*;
[ "java.io", "java.net", "java.sql", "org.apache.derby", "org.junit" ]
java.io; java.net; java.sql; org.apache.derby; org.junit;
1,230,350
protected static List<Class<?>> listOf(final Class<?>... classes) { return Collections.unmodifiableList(Lists.<Class<?>> newArrayList(classes)); }
static List<Class<?>> function(final Class<?>... classes) { return Collections.unmodifiableList(Lists.<Class<?>> newArrayList(classes)); }
/** * Helper for subclasses implementing {@link #getTypes()}. */
Helper for subclasses implementing <code>#getTypes()</code>
listOf
{ "repo_name": "kidaa/isis", "path": "core/metamodel/src/main/java/org/apache/isis/core/commons/config/InstallerAbstract.java", "license": "apache-2.0", "size": 6068 }
[ "com.google.common.collect.Lists", "java.util.Collections", "java.util.List" ]
import com.google.common.collect.Lists; import java.util.Collections; import java.util.List;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
739,405
private synchronized SecretKey getKey(final String keyVersion) throws GeneralSecurityException, IOException { switch (keyVersion) { case VERSION_USER_DEFINED : return getSecretKey(AuthenticationSettings.INSTANCE.getSecretKeyData()); case VERSION_ANDROID_KEY_STORE : ...
synchronized SecretKey function(final String keyVersion) throws GeneralSecurityException, IOException { switch (keyVersion) { case VERSION_USER_DEFINED : return getSecretKey(AuthenticationSettings.INSTANCE.getSecretKeyData()); case VERSION_ANDROID_KEY_STORE : if (mSecretKeyFromAndroidKeyStore != null) { return mSecretK...
/** * Get the saved key. Will only do read operation. * @param keyVersion whether the key is user defined or in Android key store * @return SecretKey * @throws GeneralSecurityException * @throws IOException */
Get the saved key. Will only do read operation
getKey
{ "repo_name": "iambmelt/azure-activedirectory-library-for-android", "path": "adal/src/main/java/com/microsoft/aad/adal/StorageHelper.java", "license": "apache-2.0", "size": 27548 }
[ "java.io.IOException", "java.security.GeneralSecurityException", "javax.crypto.SecretKey" ]
import java.io.IOException; import java.security.GeneralSecurityException; import javax.crypto.SecretKey;
import java.io.*; import java.security.*; import javax.crypto.*;
[ "java.io", "java.security", "javax.crypto" ]
java.io; java.security; javax.crypto;
2,434,986
ActionFuture<ShrinkResponse> shrinkIndex(ShrinkRequest request);
ActionFuture<ShrinkResponse> shrinkIndex(ShrinkRequest request);
/** * Shrinks an index using an explicit request allowing to specify the settings, mappings and aliases of the target index of the index. */
Shrinks an index using an explicit request allowing to specify the settings, mappings and aliases of the target index of the index
shrinkIndex
{ "repo_name": "fernandozhu/elasticsearch", "path": "core/src/main/java/org/elasticsearch/client/IndicesAdminClient.java", "license": "apache-2.0", "size": 31752 }
[ "org.elasticsearch.action.ActionFuture", "org.elasticsearch.action.admin.indices.shrink.ShrinkRequest", "org.elasticsearch.action.admin.indices.shrink.ShrinkResponse" ]
import org.elasticsearch.action.ActionFuture; import org.elasticsearch.action.admin.indices.shrink.ShrinkRequest; import org.elasticsearch.action.admin.indices.shrink.ShrinkResponse;
import org.elasticsearch.action.*; import org.elasticsearch.action.admin.indices.shrink.*;
[ "org.elasticsearch.action" ]
org.elasticsearch.action;
1,821,984
public void convertAfpChain(AFPChain afpChain, Atom[] ca1, Atom[] ca2) { afpChain.setBlockNum(1); //afpChain.setAlignScore(z); Matrix[] m ; if ( r != null ) { m = new Matrix[1]; m[0] = r; } else { m = new Matrix[0]; } Atom[] as ; if ( t != null) { as = new Atom[1]; as...
void function(AFPChain afpChain, Atom[] ca1, Atom[] ca2) { afpChain.setBlockNum(1); Matrix[] m ; if ( r != null ) { m = new Matrix[1]; m[0] = r; } else { m = new Matrix[0]; } Atom[] as ; if ( t != null) { as = new Atom[1]; as[0] = t; } else { as = new Atom[0]; } afpChain.setBlockRotationMatrix(m); afpChain.setBlockShif...
/** copy data from this class into AFPChain container object. * * @param afpChain * @param ca1 * @param ca2 */
copy data from this class into AFPChain container object
convertAfpChain
{ "repo_name": "heuermh/biojava", "path": "biojava-structure/src/main/java/org/biojava/nbio/structure/align/ce/CECalculator.java", "license": "lgpl-2.1", "size": 62271 }
[ "org.biojava.nbio.structure.Atom", "org.biojava.nbio.structure.align.model.AFPChain", "org.biojava.nbio.structure.align.util.AFPAlignmentDisplay", "org.biojava.nbio.structure.jama.Matrix" ]
import org.biojava.nbio.structure.Atom; import org.biojava.nbio.structure.align.model.AFPChain; import org.biojava.nbio.structure.align.util.AFPAlignmentDisplay; import org.biojava.nbio.structure.jama.Matrix;
import org.biojava.nbio.structure.*; import org.biojava.nbio.structure.align.model.*; import org.biojava.nbio.structure.align.util.*; import org.biojava.nbio.structure.jama.*;
[ "org.biojava.nbio" ]
org.biojava.nbio;
1,714,167
List<ItemStack> doHarvest(World world, int x, int y, int z, int fortune);
List<ItemStack> doHarvest(World world, int x, int y, int z, int fortune);
/** * THis is called when the crop farm harvests this crop. The crop farm will do nothing with the crop. * All necessary operations to be performed on the crop should be done in th is method. * @param world * @param x * @param y * @param z * @param fortune * @return A list contai...
THis is called when the crop farm harvests this crop. The crop farm will do nothing with the crop. All necessary operations to be performed on the crop should be done in th is method
doHarvest
{ "repo_name": "HenryLoenwind/AgriCraft", "path": "src/api/java/net/shadowmage/ancientwarfare/api/IAncientWarfareFarmable.java", "license": "mit", "size": 1183 }
[ "java.util.List", "net.minecraft.item.ItemStack", "net.minecraft.world.World" ]
import java.util.List; import net.minecraft.item.ItemStack; import net.minecraft.world.World;
import java.util.*; import net.minecraft.item.*; import net.minecraft.world.*;
[ "java.util", "net.minecraft.item", "net.minecraft.world" ]
java.util; net.minecraft.item; net.minecraft.world;
441,079
@Override @Deprecated public void setImageURI(Uri uri) { init(getContext()); mDraweeHolder.setController(null); super.setImageURI(uri); }
void function(Uri uri) { init(getContext()); mDraweeHolder.setController(null); super.setImageURI(uri); }
/** * Use this method only when using this class as an ordinary ImageView. * @deprecated Use {@link #setController(DraweeController)} instead. */
Use this method only when using this class as an ordinary ImageView
setImageURI
{ "repo_name": "0mok/fresco", "path": "drawee/src/main/java/com/facebook/drawee/view/DraweeView.java", "license": "bsd-3-clause", "size": 7680 }
[ "android.net.Uri" ]
import android.net.Uri;
import android.net.*;
[ "android.net" ]
android.net;
1,301,167
private void processLocationRelevantElements() { // process all nodes that might be converted to a garmin node (tagcount > 0) for (Node node : saver.getNodes().values()) { if (node.getTagCount() > 0) { if (saver.getBoundingBox().contains(node.getLocation())){ processElem(node); if (resultLog.isD...
void function() { for (Node node : saver.getNodes().values()) { if (node.getTagCount() > 0) { if (saver.getBoundingBox().contains(node.getLocation())){ processElem(node); if (resultLog.isDebugEnabled()) resultLog.debug("N", node.getId(), locationTagsToString(node)); } } } for (Way way : saver.getWays().values()) { if (...
/** * Iterate over all elements for which the boundary assignment should be performed. */
Iterate over all elements for which the boundary assignment should be performed
processLocationRelevantElements
{ "repo_name": "balp/mkgmap", "path": "src/uk/me/parabola/mkgmap/reader/osm/LocationHook.java", "license": "gpl-2.0", "size": 7822 }
[ "uk.me.parabola.imgfmt.app.Coord", "uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryQuadTree" ]
import uk.me.parabola.imgfmt.app.Coord; import uk.me.parabola.mkgmap.reader.osm.boundary.BoundaryQuadTree;
import uk.me.parabola.imgfmt.app.*; import uk.me.parabola.mkgmap.reader.osm.boundary.*;
[ "uk.me.parabola" ]
uk.me.parabola;
303,948
protected ValueSpecification resolvePartialSpecification(final ValueSpecification specification, final ComputationTarget target, final CompiledFunctionDefinition function, final Set<ValueRequirement> visited, final Map<ComputationTargetType, ComputationTarget> adjustedTarget, final ValueProperties constraints) ...
ValueSpecification function(final ValueSpecification specification, final ComputationTarget target, final CompiledFunctionDefinition function, final Set<ValueRequirement> visited, final Map<ComputationTargetType, ComputationTarget> adjustedTarget, final ValueProperties constraints) { final Set<ValueRequirement> reqs; t...
/** * Attempts partial resolution of a non-finite specification produced as part of a function's maximal outputs. Requirement chains are followed until a specification is found with finite properties. * * @param specification maximal output specification, non-finite properties, not null * @param target comp...
Attempts partial resolution of a non-finite specification produced as part of a function's maximal outputs. Requirement chains are followed until a specification is found with finite properties
resolvePartialSpecification
{ "repo_name": "DevStreet/FinanceAnalytics", "path": "projects/OG-Engine/src/main/java/com/opengamma/engine/function/resolver/ComputationTargetResults.java", "license": "apache-2.0", "size": 12564 }
[ "com.google.common.collect.Maps", "com.opengamma.engine.ComputationTarget", "com.opengamma.engine.function.CompiledFunctionDefinition", "com.opengamma.engine.target.ComputationTargetType", "com.opengamma.engine.value.ValueProperties", "com.opengamma.engine.value.ValueRequirement", "com.opengamma.engine....
import com.google.common.collect.Maps; import com.opengamma.engine.ComputationTarget; import com.opengamma.engine.function.CompiledFunctionDefinition; import com.opengamma.engine.target.ComputationTargetType; import com.opengamma.engine.value.ValueProperties; import com.opengamma.engine.value.ValueRequirement; import c...
import com.google.common.collect.*; import com.opengamma.engine.*; import com.opengamma.engine.function.*; import com.opengamma.engine.target.*; import com.opengamma.engine.value.*; import java.util.*;
[ "com.google.common", "com.opengamma.engine", "java.util" ]
com.google.common; com.opengamma.engine; java.util;
1,998,125
public static <M, A> Yield<M, A> yield(A a, Supplier<ListT<M, A>> supplier) { return new Yield<>(a, supplier); }
static <M, A> Yield<M, A> function(A a, Supplier<ListT<M, A>> supplier) { return new Yield<>(a, supplier); }
/** * Constructs a {@link Yield} step. * * @param a head value * @param supplier tail supplier * @param <M> nested monadic type * @param <A> element type * @return the {@link Yield} step */
Constructs a <code>Yield</code> step
yield
{ "repo_name": "highj/highj", "path": "src/main/java/org/highj/data/transformer/ListT.java", "license": "mit", "size": 30748 }
[ "java.util.function.Supplier" ]
import java.util.function.Supplier;
import java.util.function.*;
[ "java.util" ]
java.util;
1,558,904
public SearchSourceBuilder facets(byte[] facetsBinary, int facetBinaryOffset, int facetBinaryLength) { return facets(new BytesArray(facetsBinary, facetBinaryOffset, facetBinaryLength)); }
SearchSourceBuilder function(byte[] facetsBinary, int facetBinaryOffset, int facetBinaryLength) { return facets(new BytesArray(facetsBinary, facetBinaryOffset, facetBinaryLength)); }
/** * Sets a raw (xcontent / json) facets. */
Sets a raw (xcontent / json) facets
facets
{ "repo_name": "exercitussolus/yolo", "path": "src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java", "license": "agpl-3.0", "size": 27772 }
[ "org.elasticsearch.common.bytes.BytesArray" ]
import org.elasticsearch.common.bytes.BytesArray;
import org.elasticsearch.common.bytes.*;
[ "org.elasticsearch.common" ]
org.elasticsearch.common;
967,174
public static CommandElement choices(Text key, Map<String, ?> choices) { return choices(key, choices, choices.size() <= 5); }
static CommandElement function(Text key, Map<String, ?> choices) { return choices(key, choices, choices.size() <= 5); }
/** * Return an argument that allows selecting from a limited set of values. * If there are 5 or fewer choices available, the choices will be shown in the command usage. Otherwise, the usage * will only display only the key. To override this behavior, see {@link #choices(Text, Map, boolean)}. * ...
Return an argument that allows selecting from a limited set of values. If there are 5 or fewer choices available, the choices will be shown in the command usage. Otherwise, the usage will only display only the key. To override this behavior, see <code>#choices(Text, Map, boolean)</code>
choices
{ "repo_name": "kashike/SpongeAPI", "path": "src/main/java/org/spongepowered/api/command/args/GenericArguments.java", "license": "mit", "size": 47529 }
[ "java.util.Map", "org.spongepowered.api.text.Text" ]
import java.util.Map; import org.spongepowered.api.text.Text;
import java.util.*; import org.spongepowered.api.text.*;
[ "java.util", "org.spongepowered.api" ]
java.util; org.spongepowered.api;
2,296,375
public Read withQuery(String query) { checkArgument( !Strings.isNullOrEmpty(query), "ElasticsearchIO.read().withQuery(query) called" + " with null or empty query"); return builder().setQuery(query).build(); }
Read function(String query) { checkArgument( !Strings.isNullOrEmpty(query), STR + STR); return builder().setQuery(query).build(); }
/** * Provide a query used while reading from Elasticsearch. * * @param query the query. See <a * href="https://www.elastic.co/guide/en/elasticsearch/reference/2.4/query-dsl.html">Query * DSL</a> * @return the {@link Read} object with query set */
Provide a query used while reading from Elasticsearch
withQuery
{ "repo_name": "dhalperi/beam", "path": "sdks/java/io/elasticsearch/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java", "license": "apache-2.0", "size": 31943 }
[ "com.google.common.base.Preconditions", "com.google.common.base.Strings" ]
import com.google.common.base.Preconditions; import com.google.common.base.Strings;
import com.google.common.base.*;
[ "com.google.common" ]
com.google.common;
1,270,391
public VehicleData getLastRPM() { return lastRPM; }
VehicleData function() { return lastRPM; }
/** * Fetch the last ending rpm data point * @return the last rpm data */
Fetch the last ending rpm data point
getLastRPM
{ "repo_name": "digidotcom/wva_sample", "path": "demo_app/src/main/java/com/digi/android/wva/fragments/ChartFragment.java", "license": "mpl-2.0", "size": 20553 }
[ "com.digi.android.wva.model.VehicleData" ]
import com.digi.android.wva.model.VehicleData;
import com.digi.android.wva.model.*;
[ "com.digi.android" ]
com.digi.android;
2,371,248
private StringBuilder getRemainingRowsInCsvFormat( FeedbackSessionResultsBundle results, Map.Entry<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>> entry, FeedbackQuestionAttributes question, FeedbackQuestionDetails questionDetails, List<Strin...
StringBuilder function( FeedbackSessionResultsBundle results, Map.Entry<FeedbackQuestionAttributes, List<FeedbackResponseAttributes>> entry, FeedbackQuestionAttributes question, FeedbackQuestionDetails questionDetails, List<String> remainingPossibleGivers, List<String> possibleRecipientsForGiver, String prevGiver) { St...
/** * Generate rows of missing responses for the remaining possible givers and recipients. * * If for the prevGiver, possibleRecipientsForGiver is not empty, * the remaining missing responses for the prevGiver will be generated first. * * @param results * @param entry * @param ...
Generate rows of missing responses for the remaining possible givers and recipients. If for the prevGiver, possibleRecipientsForGiver is not empty, the remaining missing responses for the prevGiver will be generated first
getRemainingRowsInCsvFormat
{ "repo_name": "ablyx/teammates", "path": "src/main/java/teammates/logic/core/FeedbackSessionsLogic.java", "license": "gpl-2.0", "size": 118023 }
[ "java.util.List", "java.util.Map" ]
import java.util.List; import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,782,786
protected static boolean stacksEqual(ItemStack stackA, ItemStack stackB, boolean matchNbt) { if (stackA.isEmpty() || stackB.isEmpty() || stackA.getItem() != stackB.getItem()) { return false; } if (matchNbt && !ItemStack.areItemStackTagsEqual(stackA, stackB)) { return...
static boolean function(ItemStack stackA, ItemStack stackB, boolean matchNbt) { if (stackA.isEmpty() stackB.isEmpty() stackA.getItem() != stackB.getItem()) { return false; } if (matchNbt && !ItemStack.areItemStackTagsEqual(stackA, stackB)) { return false; } if (stackA.getHasSubtypes()) { boolean aWildcard = stackA.getI...
/** * Checks if the provided ItemStacks are equal. * Optionally compares NBT values. * * @param stackA The first ItemStack * @param stackB The second ItemStack * @param matchNbt Whether NBT data should be checked as well * @return A boolean indicating whether the stacks are equal....
Checks if the provided ItemStacks are equal. Optionally compares NBT values
stacksEqual
{ "repo_name": "elytra/Teckle", "path": "src/main/java/com/elytradev/teckle/compat/ct/TeckleCTUtils.java", "license": "apache-2.0", "size": 6303 }
[ "net.minecraft.item.ItemStack", "net.minecraftforge.oredict.OreDictionary" ]
import net.minecraft.item.ItemStack; import net.minecraftforge.oredict.OreDictionary;
import net.minecraft.item.*; import net.minecraftforge.oredict.*;
[ "net.minecraft.item", "net.minecraftforge.oredict" ]
net.minecraft.item; net.minecraftforge.oredict;
642,718
@NonNull View getPrimaryView(@NonNull View view);
View getPrimaryView(@NonNull View view);
/** * Returns the primary {@link android.view.View} contained in given {@code View}. * * @param view the parent {@code View}, which contains both the primary and the undo {@link android.view.View}s. */
Returns the primary <code>android.view.View</code> contained in given View
getPrimaryView
{ "repo_name": "XCforandroid/ListViewAnimations", "path": "lib-manipulation/src/main/java/com/nhaarman/listviewanimations/itemmanipulation/swipedismiss/undo/UndoCallback.java", "license": "apache-2.0", "size": 2785 }
[ "android.support.annotation.NonNull", "android.view.View" ]
import android.support.annotation.NonNull; import android.view.View;
import android.support.annotation.*; import android.view.*;
[ "android.support", "android.view" ]
android.support; android.view;
263,529
@NbBundle.Messages({"BlackboardArtifactNode.createSheet.score.name=S", "BlackboardArtifactNode.createSheet.score.displayName=S", "BlackboardArtifactNode.createSheet.notableFile.description=Associated file recognized as notable.", "BlackboardArtifactNode.createSheet.interestingResult.descript...
@NbBundle.Messages({STR, STR, STR, STR, STR, STR, STR}) final void function(Sheet.Set sheetSet, List<Tag> tags) { Pair<Score, String> scoreAndDescription = getScorePropertyAndDescription(); sheetSet.put(new NodeProperty<>(Bundle.BlackboardArtifactNode_createSheet_score_name(), Bundle.BlackboardArtifactNode_createSheet_...
/** * Adds the score property for the artifact represented by this node to the * node property sheet. * * @param sheetSet The property sheet. * @param tags The tags that have been applied to the artifact and its * source content. * * @deprecated Do not use. Th...
Adds the score property for the artifact represented by this node to the node property sheet
addScorePropertyAndDescription
{ "repo_name": "rcordovano/autopsy", "path": "Core/src/org/sleuthkit/autopsy/datamodel/BlackboardArtifactNode.java", "license": "apache-2.0", "size": 80028 }
[ "java.util.List", "java.util.Set", "org.apache.commons.lang3.tuple.Pair", "org.openide.nodes.Sheet", "org.openide.util.NbBundle", "org.sleuthkit.datamodel.Score", "org.sleuthkit.datamodel.Tag" ]
import java.util.List; import java.util.Set; import org.apache.commons.lang3.tuple.Pair; import org.openide.nodes.Sheet; import org.openide.util.NbBundle; import org.sleuthkit.datamodel.Score; import org.sleuthkit.datamodel.Tag;
import java.util.*; import org.apache.commons.lang3.tuple.*; import org.openide.nodes.*; import org.openide.util.*; import org.sleuthkit.datamodel.*;
[ "java.util", "org.apache.commons", "org.openide.nodes", "org.openide.util", "org.sleuthkit.datamodel" ]
java.util; org.apache.commons; org.openide.nodes; org.openide.util; org.sleuthkit.datamodel;
2,412,637
@Test public void testEncodeUriEmptyCharsetType(){ assertEquals(PATH, URIUtil.encodeUri(PATH, "")); }
void function(){ assertEquals(PATH, URIUtil.encodeUri(PATH, "")); }
/** * Test encode uri empty charset type. */
Test encode uri empty charset type
testEncodeUriEmptyCharsetType
{ "repo_name": "venusdrogon/feilong-core", "path": "src/test/java/com/feilong/core/net/uriutiltest/EncodeUriTest.java", "license": "apache-2.0", "size": 3077 }
[ "com.feilong.core.net.URIUtil", "org.junit.Assert" ]
import com.feilong.core.net.URIUtil; import org.junit.Assert;
import com.feilong.core.net.*; import org.junit.*;
[ "com.feilong.core", "org.junit" ]
com.feilong.core; org.junit;
1,054,074
public List<String> getSites() { List<String> sites = new ArrayList<String>(); if (this.sessions == null) { return sites; } synchronized (sessionLock) { sites.addAll(this.sessions.keySet()); } return sites; }
List<String> function() { List<String> sites = new ArrayList<String>(); if (this.sessions == null) { return sites; } synchronized (sessionLock) { sites.addAll(this.sessions.keySet()); } return sites; }
/** * Gets all of the sites with http sessions. * * @return all of the sites with http sessions */
Gets all of the sites with http sessions
getSites
{ "repo_name": "JordanGS/zaproxy", "path": "src/org/zaproxy/zap/extension/httpsessions/ExtensionHttpSessions.java", "license": "apache-2.0", "size": 21610 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,036,448
public Set<String> getClusterNodeLabelNames() { try { readLock.lock(); Set<String> labels = new HashSet<String>(labelCollections.keySet()); labels.remove(NO_LABEL); return Collections.unmodifiableSet(labels); } finally { readLock.unlock(); } }
Set<String> function() { try { readLock.lock(); Set<String> labels = new HashSet<String>(labelCollections.keySet()); labels.remove(NO_LABEL); return Collections.unmodifiableSet(labels); } finally { readLock.unlock(); } }
/** * Get existing valid labels in repository * * @return existing valid labels in repository */
Get existing valid labels in repository
getClusterNodeLabelNames
{ "repo_name": "bitmybytes/hadoop", "path": "hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/nodelabels/CommonNodeLabelsManager.java", "license": "apache-2.0", "size": 36021 }
[ "java.util.Collections", "java.util.HashSet", "java.util.Set" ]
import java.util.Collections; import java.util.HashSet; import java.util.Set;
import java.util.*;
[ "java.util" ]
java.util;
1,263,678
public QueryResponse search(String queryString, int rows, int start) { SolrQuery query = new SolrQuery(); query.set("q", queryString); query.setRows(rows); query.setStart(start); QueryResponse resp = null; try { resp = solrServer.query(query); } catch (SolrServerException e) { log.warn("Search fa...
QueryResponse function(String queryString, int rows, int start) { SolrQuery query = new SolrQuery(); query.set("q", queryString); query.setRows(rows); query.setStart(start); QueryResponse resp = null; try { resp = solrServer.query(query); } catch (SolrServerException e) { log.warn(STR, e); } return resp; }
/** * Default query to fetch the top 10 documents that match the query request. * * @param queryString * @return */
Default query to fetch the top 10 documents that match the query request
search
{ "repo_name": "lanchun/myrobotlab", "path": "src/org/myrobotlab/service/Solr.java", "license": "apache-2.0", "size": 6925 }
[ "org.apache.solr.client.solrj.SolrQuery", "org.apache.solr.client.solrj.SolrServerException", "org.apache.solr.client.solrj.response.QueryResponse" ]
import org.apache.solr.client.solrj.SolrQuery; import org.apache.solr.client.solrj.SolrServerException; import org.apache.solr.client.solrj.response.QueryResponse;
import org.apache.solr.client.solrj.*; import org.apache.solr.client.solrj.response.*;
[ "org.apache.solr" ]
org.apache.solr;
961,364
private IgniteInternalFuture<GridRestResponse> executeCommand( @Nullable UUID destId, UUID clientId, final String cacheName, final Object key, final CacheCommand op) throws IgniteCheckedException { final boolean locExec = destId == null || destId.equals(ctx.localNodeI...
IgniteInternalFuture<GridRestResponse> function( @Nullable UUID destId, UUID clientId, final String cacheName, final Object key, final CacheCommand op) throws IgniteCheckedException { final boolean locExec = destId == null destId.equals(ctx.localNodeId()) ctx.cache().cache(cacheName) != null; if (locExec) { final Ignit...
/** * Executes command on cache. Checks {@code destId} to find if command could be performed locally or routed to a * remote node. * * @param destId Target node Id for the operation. If {@code null} - operation could be executed anywhere. * @param clientId Client ID. * @param cacheName Cac...
Executes command on cache. Checks destId to find if command could be performed locally or routed to a remote node
executeCommand
{ "repo_name": "vadopolski/ignite", "path": "modules/core/src/main/java/org/apache/ignite/internal/processors/rest/handlers/cache/GridCacheCommandHandler.java", "license": "apache-2.0", "size": 58743 }
[ "org.apache.ignite.IgniteCheckedException", "org.apache.ignite.cluster.ClusterGroup", "org.apache.ignite.internal.IgniteInternalFuture", "org.apache.ignite.internal.processors.cache.IgniteInternalCache", "org.apache.ignite.internal.processors.rest.GridRestResponse", "org.apache.ignite.internal.util.typede...
import org.apache.ignite.IgniteCheckedException; import org.apache.ignite.cluster.ClusterGroup; import org.apache.ignite.internal.IgniteInternalFuture; import org.apache.ignite.internal.processors.cache.IgniteInternalCache; import org.apache.ignite.internal.processors.rest.GridRestResponse; import org.apache.ignite.int...
import org.apache.ignite.*; import org.apache.ignite.cluster.*; import org.apache.ignite.internal.*; import org.apache.ignite.internal.processors.cache.*; import org.apache.ignite.internal.processors.rest.*; import org.apache.ignite.internal.util.typedef.*; import org.jetbrains.annotations.*;
[ "org.apache.ignite", "org.jetbrains.annotations" ]
org.apache.ignite; org.jetbrains.annotations;
1,661,959
public void removeImage(String image) throws IOException { removeImage(RemoveImageParams.create(image)); }
void function(String image) throws IOException { removeImage(RemoveImageParams.create(image)); }
/** * Removes docker image. * * @param image * image identifier, either id or name * @throws IOException * when a problem occurs with docker api calls */
Removes docker image
removeImage
{ "repo_name": "gazarenkov/che-sketch", "path": "plugins/plugin-docker/che-plugin-docker-client/src/main/java/org/eclipse/che/plugin/docker/client/DockerConnector.java", "license": "epl-1.0", "size": 68338 }
[ "java.io.IOException", "org.eclipse.che.plugin.docker.client.params.RemoveImageParams" ]
import java.io.IOException; import org.eclipse.che.plugin.docker.client.params.RemoveImageParams;
import java.io.*; import org.eclipse.che.plugin.docker.client.params.*;
[ "java.io", "org.eclipse.che" ]
java.io; org.eclipse.che;
2,864,782
@PUT @Path("nodesource/undeploy") @Produces("application/json") NSState undeployNodeSource(@HeaderParam("sessionid") String sessionId, @FormParam("nodeSourceName") String nodeSourceName, @FormParam("preempt") boolean preempt) throws NotConnectedException, PermissionRestException;
@Path(STR) @Produces(STR) NSState undeployNodeSource(@HeaderParam(STR) String sessionId, @FormParam(STR) String nodeSourceName, @FormParam(STR) boolean preempt) throws NotConnectedException, PermissionRestException;
/** * Un-deploy a node source. * * Remove the nodes of the node source and keep the node source un-deployed. * * @param sessionId current session * @param nodeSourceName the name of the node source to undeploy * @return the result of the action, possibly containing the error message ...
Un-deploy a node source. Remove the nodes of the node source and keep the node source un-deployed
undeployNodeSource
{ "repo_name": "ShatalovYaroslav/scheduling", "path": "rest/rest-api/src/main/java/org/ow2/proactive_grid_cloud_portal/common/RMRestInterface.java", "license": "agpl-3.0", "size": 42551 }
[ "javax.ws.rs.FormParam", "javax.ws.rs.HeaderParam", "javax.ws.rs.Path", "javax.ws.rs.Produces", "org.ow2.proactive.resourcemanager.common.NSState", "org.ow2.proactive.scheduler.common.exception.NotConnectedException", "org.ow2.proactive_grid_cloud_portal.scheduler.exception.PermissionRestException" ]
import javax.ws.rs.FormParam; import javax.ws.rs.HeaderParam; import javax.ws.rs.Path; import javax.ws.rs.Produces; import org.ow2.proactive.resourcemanager.common.NSState; import org.ow2.proactive.scheduler.common.exception.NotConnectedException; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.Permissio...
import javax.ws.rs.*; import org.ow2.proactive.resourcemanager.common.*; import org.ow2.proactive.scheduler.common.exception.*; import org.ow2.proactive_grid_cloud_portal.scheduler.exception.*;
[ "javax.ws", "org.ow2.proactive", "org.ow2.proactive_grid_cloud_portal" ]
javax.ws; org.ow2.proactive; org.ow2.proactive_grid_cloud_portal;
631,177
protected WriteCellStyle headCellStyle(Head head) { return null; }
WriteCellStyle function(Head head) { return null; }
/** * Returns the column width corresponding to each column head * * @param head Nullable * @return */
Returns the column width corresponding to each column head
headCellStyle
{ "repo_name": "alibaba/easyexcel", "path": "src/main/java/com/alibaba/excel/write/style/AbstractVerticalCellStyleStrategy.java", "license": "apache-2.0", "size": 2248 }
[ "com.alibaba.excel.metadata.Head", "com.alibaba.excel.write.metadata.style.WriteCellStyle" ]
import com.alibaba.excel.metadata.Head; import com.alibaba.excel.write.metadata.style.WriteCellStyle;
import com.alibaba.excel.metadata.*; import com.alibaba.excel.write.metadata.style.*;
[ "com.alibaba.excel" ]
com.alibaba.excel;
716,372
@Override public final boolean containsAll(Collection<?> c) { return containsAll(c, MethodFlag.ALL); }
final boolean function(Collection<?> c) { return containsAll(c, MethodFlag.ALL); }
/** * Not supported by this class. */
Not supported by this class
containsAll
{ "repo_name": "chmaruni/SCJ", "path": "Shared/libs_src/Galois-2.0/src/galois/objects/BagBuilder.java", "license": "lgpl-3.0", "size": 12252 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
557,054
public MSignal createSignal(String name, boolean isAbstract) { return new MSignalImpl(name, isAbstract); }
MSignal function(String name, boolean isAbstract) { return new MSignalImpl(name, isAbstract); }
/** * Creates a new signal. * @param name * @return */
Creates a new signal
createSignal
{ "repo_name": "anonymous100001/maxuse", "path": "src/main/org/tzi/use/uml/mm/ModelFactory.java", "license": "gpl-2.0", "size": 4228 }
[ "org.tzi.use.uml.mm.commonbehavior.communications.MSignal", "org.tzi.use.uml.mm.commonbehavior.communications.MSignalImpl" ]
import org.tzi.use.uml.mm.commonbehavior.communications.MSignal; import org.tzi.use.uml.mm.commonbehavior.communications.MSignalImpl;
import org.tzi.use.uml.mm.commonbehavior.communications.*;
[ "org.tzi.use" ]
org.tzi.use;
419,878
public boolean isFirstRowSupported(final Query query);
boolean function(final Query query);
/** * Gets whether this query rewriter is able to write the "First row" query * property to the query string. * * @return whether this query rewriter is able to write the "First row" * query property to the query string. * * @param query For some database engines, the content...
Gets whether this query rewriter is able to write the "First row" query property to the query string
isFirstRowSupported
{ "repo_name": "kaspersorensen/metamodel", "path": "jdbc/src/main/java/org/apache/metamodel/jdbc/dialects/IQueryRewriter.java", "license": "apache-2.0", "size": 5734 }
[ "org.apache.metamodel.query.Query" ]
import org.apache.metamodel.query.Query;
import org.apache.metamodel.query.*;
[ "org.apache.metamodel" ]
org.apache.metamodel;
830,308
protected void doDone(Exchange original, Exchange subExchange, AsyncCallback callback, boolean doneSync, boolean exhaust) { // cleanup any per exchange aggregation strategy removeAggregationStrategyFromExchange(original); if (original.getException() != null) { // multicast us...
void function(Exchange original, Exchange subExchange, AsyncCallback callback, boolean doneSync, boolean exhaust) { removeAggregationStrategyFromExchange(original); if (original.getException() != null) { original.setProperty(Exchange.REDELIVERY_EXHAUSTED, exhaust); } if (subExchange != null) { ExchangeHelper.copyResult...
/** * Common work which must be done when we are done multicasting. * <p/> * This logic applies for both running synchronous and asynchronous as there are multiple exist points * when using the asynchronous routing engine. And therefore we want the logic in one method instead * of being sc...
Common work which must be done when we are done multicasting. This logic applies for both running synchronous and asynchronous as there are multiple exist points when using the asynchronous routing engine. And therefore we want the logic in one method instead of being scattered
doDone
{ "repo_name": "everttigchelaar/camel-svn", "path": "camel-core/src/main/java/org/apache/camel/processor/MulticastProcessor.java", "license": "apache-2.0", "size": 47846 }
[ "org.apache.camel.AsyncCallback", "org.apache.camel.Exchange", "org.apache.camel.util.ExchangeHelper" ]
import org.apache.camel.AsyncCallback; import org.apache.camel.Exchange; import org.apache.camel.util.ExchangeHelper;
import org.apache.camel.*; import org.apache.camel.util.*;
[ "org.apache.camel" ]
org.apache.camel;
1,995,308
private BackOffPolicy createTransactionBackOffPolicy(TransactionRetryProperties config) { UniformRandomBackOffPolicy fastBackOffPolicy = new UniformRandomBackOffPolicy(); fastBackOffPolicy.setMaxBackOffPeriod(config.getFastRetryMaxBackOffPeriod().toMillis()); fastBackOffPolicy.setMinBackOffPeriod(config.g...
BackOffPolicy function(TransactionRetryProperties config) { UniformRandomBackOffPolicy fastBackOffPolicy = new UniformRandomBackOffPolicy(); fastBackOffPolicy.setMaxBackOffPeriod(config.getFastRetryMaxBackOffPeriod().toMillis()); fastBackOffPolicy.setMinBackOffPeriod(config.getFastRetryMinBackOffPeriod().toMillis()); E...
/** * Fast retries with random delay between config.getFastRetryMinBackOffPeriod and * config.getFastRetryMaxBackOffPeriod. Slow retries with exponential back off with initial * config.getSlowRetryInitialInterval delay, multiplied by config.getSlowRetryMultiplier each * attempt. */
Fast retries with random delay between config.getFastRetryMinBackOffPeriod and config.getFastRetryMaxBackOffPeriod. Slow retries with exponential back off with initial config.getSlowRetryInitialInterval delay, multiplied by config.getSlowRetryMultiplier each attempt
createTransactionBackOffPolicy
{ "repo_name": "DataBiosphere/terra-common-lib", "path": "src/main/java/bio/terra/common/retry/transaction/TransactionRetryInterceptorConfiguration.java", "license": "bsd-3-clause", "size": 3507 }
[ "bio.terra.common.retry.CompositeBackOffPolicy", "java.util.LinkedHashMap", "org.springframework.classify.BinaryExceptionClassifier", "org.springframework.retry.backoff.BackOffPolicy", "org.springframework.retry.backoff.ExponentialBackOffPolicy", "org.springframework.retry.backoff.UniformRandomBackOffPoli...
import bio.terra.common.retry.CompositeBackOffPolicy; import java.util.LinkedHashMap; import org.springframework.classify.BinaryExceptionClassifier; import org.springframework.retry.backoff.BackOffPolicy; import org.springframework.retry.backoff.ExponentialBackOffPolicy; import org.springframework.retry.backoff.Uniform...
import bio.terra.common.retry.*; import java.util.*; import org.springframework.classify.*; import org.springframework.retry.backoff.*;
[ "bio.terra.common", "java.util", "org.springframework.classify", "org.springframework.retry" ]
bio.terra.common; java.util; org.springframework.classify; org.springframework.retry;
2,765,595
public void setUserLocalService(UserLocalService userLocalService) { this.userLocalService = userLocalService; }
void function(UserLocalService userLocalService) { this.userLocalService = userLocalService; }
/** * Sets the user local service. * * @param userLocalService the user local service */
Sets the user local service
setUserLocalService
{ "repo_name": "iucn-whp/world-heritage-outlook", "path": "portlets/iucn-dbservice-portlet/docroot/WEB-INF/src/com/iucn/whp/dbservice/service/base/state_lkpLocalServiceBaseImpl.java", "license": "gpl-2.0", "size": 174889 }
[ "com.liferay.portal.service.UserLocalService" ]
import com.liferay.portal.service.UserLocalService;
import com.liferay.portal.service.*;
[ "com.liferay.portal" ]
com.liferay.portal;
1,787,546
@Generated @IsOptional @Selector("resolveCarNameForGetCarPowerLevelStatus:withCompletion:") default void resolveCarNameForGetCarPowerLevelStatusWithCompletion(INGetCarPowerLevelStatusIntent intent, @ObjCBlock(name = "call_resolveCarNameForGetCarPowerLevelStatusWithCompletion") Block_resolveC...
@Selector(STR) default void resolveCarNameForGetCarPowerLevelStatusWithCompletion(INGetCarPowerLevelStatusIntent intent, @ObjCBlock(name = STR) Block_resolveCarNameForGetCarPowerLevelStatusWithCompletion completion) { throw new java.lang.UnsupportedOperationException(); }
/** * Resolution methods - Determine if this intent is ready for the next step (confirmation) * <p> * Called to make sure the app extension is capable of handling this intent in its current form. This method is for validating if the intent needs any further fleshing out. * * @param intent T...
Resolution methods - Determine if this intent is ready for the next step (confirmation) Called to make sure the app extension is capable of handling this intent in its current form. This method is for validating if the intent needs any further fleshing out
resolveCarNameForGetCarPowerLevelStatusWithCompletion
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/intents/protocol/INGetCarPowerLevelStatusIntentHandling.java", "license": "apache-2.0", "size": 5646 }
[ "org.moe.natj.objc.ann.ObjCBlock", "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.ObjCBlock; import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
764,360
public String[] ls(String... vars) { if (vars == null || vars.length == 0) { try { return eval("ls()", TRY_MODE).asStrings(); } catch (REXPMismatchException re) { return new String[0]; } catch (Exception re) { return new Str...
String[] function(String... vars) { if (vars == null vars.length == 0) { try { return eval("ls()", TRY_MODE).asStrings(); } catch (REXPMismatchException re) { return new String[0]; } catch (Exception re) { return new String[] { "?" }; } } else if (vars.length == 1) { try { return eval(buildListPattern(vars[0]), TRY_MOD...
/** * list R variables in R env. matching patterns * * @param vars * R object name patterns * @return list of R objects names */
list R variables in R env. matching patterns
ls
{ "repo_name": "DrewG/mzmine2", "path": "src/main/java/net/sf/mzmine/util/R/Rsession/Rsession.java", "license": "gpl-2.0", "size": 93458 }
[ "org.rosuda.REngine" ]
import org.rosuda.REngine;
import org.rosuda.*;
[ "org.rosuda" ]
org.rosuda;
2,413,372
public void takeActivitySnapshot(final String path) { View decorView = getRecentDecorView(); SnapshotHelper.takeViewSnapshot(decorView, path); }
void function(final String path) { View decorView = getRecentDecorView(); SnapshotHelper.takeViewSnapshot(decorView, path); }
/** * Take an activity snapshot. */
Take an activity snapshot
takeActivitySnapshot
{ "repo_name": "0359xiaodong/Cafe", "path": "testrunner/src/com/baidu/cafe/local/LocalLib.java", "license": "apache-2.0", "size": 84428 }
[ "android.view.View" ]
import android.view.View;
import android.view.*;
[ "android.view" ]
android.view;
2,437,900
private static final int findIgnoreCase(MapElement[] map, CharChunk name, int start, int end) { int a = 0; int b = map.length - 1; // Special cases: -1 and 0 if (b == -1) { return -1; } if (compareIgnoreCase(name, start,...
static final int function(MapElement[] map, CharChunk name, int start, int end) { int a = 0; int b = map.length - 1; if (b == -1) { return -1; } if (compareIgnoreCase(name, start, end, map[0].name) < 0 ) { return -1; } if (b == 0) { return 0; } int i = 0; while (true) { i = (b + a) / 2; int result = compareIgnoreCase(n...
/** * Find a map elemnt given its name in a sorted array of map elements. * This will return the index for the closest inferior or equal item in the * given array. */
Find a map elemnt given its name in a sorted array of map elements. This will return the index for the closest inferior or equal item in the given array
findIgnoreCase
{ "repo_name": "benothman/jboss-web-nio2", "path": "java/org/apache/tomcat/util/http/mapper/Mapper.java", "license": "lgpl-3.0", "size": 48830 }
[ "org.apache.tomcat.util.buf.CharChunk" ]
import org.apache.tomcat.util.buf.CharChunk;
import org.apache.tomcat.util.buf.*;
[ "org.apache.tomcat" ]
org.apache.tomcat;
200,527
public static String[] getReceiverActions(IProject project) throws AndroidException { String[] receiverActions = new String[1]; File androidTargetFile = AndroidUtils.getAndroidTargetPathForProject(project.getLocation().toFile()); TargetDataReader targetDataReader = n...
static String[] function(IProject project) throws AndroidException { String[] receiverActions = new String[1]; File androidTargetFile = AndroidUtils.getAndroidTargetPathForProject(project.getLocation().toFile()); TargetDataReader targetDataReader = new TargetDataReader(androidTargetFile); try { receiverActions = target...
/** * Retrieves all receiver actions from a given {@link IProject}. * @param project The android project. * @return An {@link String} array containing all the receiver actions from the given project. * @throws AndroidException if an error occurred while attempting to get the receiver actions. ...
Retrieves all receiver actions from a given <code>IProject</code>
getReceiverActions
{ "repo_name": "DmitryADP/diff_qc750", "path": "tools/motodev/src/plugins/common/src/com/motorola/studio/android/common/utilities/AndroidUtils.java", "license": "gpl-2.0", "size": 26961 }
[ "com.motorola.studio.android.common.exception.AndroidException", "java.io.File", "java.io.IOException", "org.eclipse.core.resources.IProject" ]
import com.motorola.studio.android.common.exception.AndroidException; import java.io.File; import java.io.IOException; import org.eclipse.core.resources.IProject;
import com.motorola.studio.android.common.exception.*; import java.io.*; import org.eclipse.core.resources.*;
[ "com.motorola.studio", "java.io", "org.eclipse.core" ]
com.motorola.studio; java.io; org.eclipse.core;
2,691,451
@Test public void testGetType() { String result = target.getType(); assertThat(result, is("InPacket")); } /** * Test method for * {@link org.o3project.odenos.core.component.network.packet.InPacket#getHeader()}
void function() { String result = target.getType(); assertThat(result, is(STR)); } /** * Test method for * {@link org.o3project.odenos.core.component.network.packet.InPacket#getHeader()}
/** * Test method for * {@link org.o3project.odenos.core.component.network.packet.InPacket#getType()}. */
Test method for <code>org.o3project.odenos.core.component.network.packet.InPacket#getType()</code>
testGetType
{ "repo_name": "nis-sdn/odenos", "path": "src/test/java/org/o3project/odenos/core/component/network/packet/InPacketTest.java", "license": "apache-2.0", "size": 16352 }
[ "org.hamcrest.CoreMatchers", "org.junit.Assert", "org.junit.Test" ]
import org.hamcrest.CoreMatchers; import org.junit.Assert; import org.junit.Test;
import org.hamcrest.*; import org.junit.*;
[ "org.hamcrest", "org.junit" ]
org.hamcrest; org.junit;
2,886,346
private AssetRecord getAssetRecordByDriverRecord(final List<AssetRecord> assetRecords, final DriverRecord driverRecord) { requireNonNull(assetRecords, message.assetRecordsNonNull()); if (assetRecords.isEmpty()) { throw new IllegalArgumentException(message.assetRecordsNonEmpty...
AssetRecord function(final List<AssetRecord> assetRecords, final DriverRecord driverRecord) { requireNonNull(assetRecords, message.assetRecordsNonNull()); if (assetRecords.isEmpty()) { throw new IllegalArgumentException(message.assetRecordsNonEmpty()); } requireNonNull(driverRecord, message.driverRecordNonNull()); for ...
/** * Retrieves the specific asset record by driver record from the list of * provided asset records * * @param assetRecords * the provided list of driver records * @param driverRecord * the specific driver record * @return the found asset record or null ...
Retrieves the specific asset record by driver record from the list of provided asset records
getAssetRecordByDriverRecord
{ "repo_name": "rohitdubey12/kura", "path": "kura/org.eclipse.kura.asset.provider/src/main/java/org/eclipse/kura/asset/provider/BaseAsset.java", "license": "epl-1.0", "size": 29956 }
[ "java.util.List", "java.util.Map", "java.util.Objects", "org.eclipse.kura.asset.AssetRecord", "org.eclipse.kura.driver.DriverRecord" ]
import java.util.List; import java.util.Map; import java.util.Objects; import org.eclipse.kura.asset.AssetRecord; import org.eclipse.kura.driver.DriverRecord;
import java.util.*; import org.eclipse.kura.asset.*; import org.eclipse.kura.driver.*;
[ "java.util", "org.eclipse.kura" ]
java.util; org.eclipse.kura;
279,374
@Override public Image getTerrainImage(TileType type, int x, int y) { String key; if (type != null) { key = type.getId(); } else { key = unexploredName; } if (( y % 8 <= 2) || ( (x+y) % 2 == 0 )) { // the pattern is mostly visible on ocean...
Image function(TileType type, int x, int y) { String key; if (type != null) { key = type.getId(); } else { key = unexploredName; } if (( y % 8 <= 2) ( (x+y) % 2 == 0 )) { return terrain1.get(key).getImage(); } else { return terrain2.get(key).getImage(); } }
/** * Returns the terrain-image for the given type. * * @param type The type of the terrain-image to return. * @param x The x-coordinate of the location of the tile that is being * drawn. * @param y The x-coordinate of the location of the tile that is being * dr...
Returns the terrain-image for the given type
getTerrainImage
{ "repo_name": "tectronics/reformationofeurope", "path": "src/net/sf/freecol/client/gui/ImageLibrary.java", "license": "gpl-2.0", "size": 54007 }
[ "java.awt.Image", "net.sf.freecol.common.model.TileType" ]
import java.awt.Image; import net.sf.freecol.common.model.TileType;
import java.awt.*; import net.sf.freecol.common.model.*;
[ "java.awt", "net.sf.freecol" ]
java.awt; net.sf.freecol;
878,713
public PropertyCannotBeDefaultInitializedMatch newMatch(final Property pPr) { return PropertyCannotBeDefaultInitializedMatch.newMatch(pPr); }
PropertyCannotBeDefaultInitializedMatch function(final Property pPr) { return PropertyCannotBeDefaultInitializedMatch.newMatch(pPr); }
/** * Returns a new (partial) match. * This can be used e.g. to call the matcher with a partial match. * <p>The returned match will be immutable. Use {@link #newEmptyMatch()} to obtain a mutable match object. * @param pPr the fixed value of pattern parameter pr, or null if not bound. * @return the (...
Returns a new (partial) match. This can be used e.g. to call the matcher with a partial match. The returned match will be immutable. Use <code>#newEmptyMatch()</code> to obtain a mutable match object
newMatch
{ "repo_name": "ELTE-Soft/xUML-RT-Executor", "path": "plugins/hu.eltesoft.modelexecution.validation/src-gen/hu/eltesoft/modelexecution/validation/PropertyCannotBeDefaultInitializedMatcher.java", "license": "epl-1.0", "size": 10892 }
[ "hu.eltesoft.modelexecution.validation.PropertyCannotBeDefaultInitializedMatch", "org.eclipse.uml2.uml.Property" ]
import hu.eltesoft.modelexecution.validation.PropertyCannotBeDefaultInitializedMatch; import org.eclipse.uml2.uml.Property;
import hu.eltesoft.modelexecution.validation.*; import org.eclipse.uml2.uml.*;
[ "hu.eltesoft.modelexecution", "org.eclipse.uml2" ]
hu.eltesoft.modelexecution; org.eclipse.uml2;
703,744
public byte[] getByteArray(String name) throws UnexpectedTagTypeException, TagNotFoundException { return getTag(name, TagByteArray.class).getValue(); }
byte[] function(String name) throws UnexpectedTagTypeException, TagNotFoundException { return getTag(name, TagByteArray.class).getValue(); }
/** * Verifies that the tag of the given name is an byte array tag and gets its value * @param name the tag's name * @return the tag's value * @throws UnexpectedTagTypeException the tag exists, but is not an byte array tag * @throws TagNotFoundException the tag does not exist */
Verifies that the tag of the given name is an byte array tag and gets its value
getByteArray
{ "repo_name": "Evil-Co/NBT-Lib", "path": "src/main/java/com/evilco/mc/nbt/tag/TagCompound.java", "license": "apache-2.0", "size": 11261 }
[ "com.evilco.mc.nbt.error.TagNotFoundException", "com.evilco.mc.nbt.error.UnexpectedTagTypeException" ]
import com.evilco.mc.nbt.error.TagNotFoundException; import com.evilco.mc.nbt.error.UnexpectedTagTypeException;
import com.evilco.mc.nbt.error.*;
[ "com.evilco.mc" ]
com.evilco.mc;
2,804,385
public void skip() { this.setProp(ConfigurationKeys.WORK_UNIT_SKIP_KEY, true); }
void function() { this.setProp(ConfigurationKeys.WORK_UNIT_SKIP_KEY, true); }
/** * This method will allow a work unit to be skipped if needed. */
This method will allow a work unit to be skipped if needed
skip
{ "repo_name": "jinhyukchang/gobblin", "path": "gobblin-api/src/main/java/org/apache/gobblin/source/workunit/WorkUnit.java", "license": "apache-2.0", "size": 11271 }
[ "org.apache.gobblin.configuration.ConfigurationKeys" ]
import org.apache.gobblin.configuration.ConfigurationKeys;
import org.apache.gobblin.configuration.*;
[ "org.apache.gobblin" ]
org.apache.gobblin;
77,759
public io.milton.httpclient.File uploadFile(String newName, File f, ProgressListener listener) throws FileNotFoundException, IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException { Path newPath = path().child(newName); children(); // ensure c...
io.milton.httpclient.File function(String newName, File f, ProgressListener listener) throws FileNotFoundException, IOException, HttpException, NotAuthorizedException, ConflictException, BadRequestException, NotFoundException { Path newPath = path().child(newName); children(); HttpResult result = host().doPut(newPath, ...
/** * Upload a new file * * @param newName * @param f * @param listener * @return * @throws FileNotFoundException * @throws IOException * @throws HttpException * @throws NotAuthorizedException * @throws ConflictException * @throws BadRequestExcepti...
Upload a new file
uploadFile
{ "repo_name": "FullMetal210/milton2", "path": "milton-client/src/main/java/io/milton/httpclient/Folder.java", "license": "agpl-3.0", "size": 14886 }
[ "io.milton.common.LogUtils", "io.milton.common.Path", "io.milton.http.Response", "io.milton.http.exceptions.BadRequestException", "io.milton.http.exceptions.ConflictException", "io.milton.http.exceptions.NotAuthorizedException", "io.milton.http.exceptions.NotFoundException", "java.io.File", "java.io...
import io.milton.common.LogUtils; import io.milton.common.Path; import io.milton.http.Response; import io.milton.http.exceptions.BadRequestException; import io.milton.http.exceptions.ConflictException; import io.milton.http.exceptions.NotAuthorizedException; import io.milton.http.exceptions.NotFoundException; import ja...
import io.milton.common.*; import io.milton.http.*; import io.milton.http.exceptions.*; import java.io.*;
[ "io.milton.common", "io.milton.http", "java.io" ]
io.milton.common; io.milton.http; java.io;
731,325
public String getFormatedMessage(final String key, final Object... arguments) throws ApplicationException { LOG.trace("Invoking getFormatedMessage..."); try { return MessageFormat.format(this.resourceBundle.getString(key), arguments); } catch (NullPointerException | MissingResour...
String function(final String key, final Object... arguments) throws ApplicationException { LOG.trace(STR); try { return MessageFormat.format(this.resourceBundle.getString(key), arguments); } catch (NullPointerException MissingResourceException ClassCastException IllegalArgumentException ex) { LOG.error(ex.getMessage(),...
/** * Gets a string for the given key and formats string with passed arguments. * * @param key - the key for the desired string. * @param arguments - parameters for formatting string. * @exception NullPointerException if key is null. * @exception MissingResourceException if no object for ...
Gets a string for the given key and formats string with passed arguments
getFormatedMessage
{ "repo_name": "SanjayMadnani/com.sanjay.common.common-utils", "path": "common-utils/src/main/java/com/sanjay/common/util/BundleUtil.java", "license": "gpl-2.0", "size": 5107 }
[ "com.sanjay.common.exception.ApplicationException", "com.sanjay.common.exception.ApplicationSeverity", "java.text.MessageFormat", "java.util.MissingResourceException" ]
import com.sanjay.common.exception.ApplicationException; import com.sanjay.common.exception.ApplicationSeverity; import java.text.MessageFormat; import java.util.MissingResourceException;
import com.sanjay.common.exception.*; import java.text.*; import java.util.*;
[ "com.sanjay.common", "java.text", "java.util" ]
com.sanjay.common; java.text; java.util;
428,221
public static int computeBubbleLimit(Node from, Node to) { ArrayList fromList = new ArrayList(10); ArrayList toList = new ArrayList(10); while (from != null) { fromList.add(from); from = ((NodeXBL) from).getXblParentNode(); } while (to != null) { ...
static int function(Node from, Node to) { ArrayList fromList = new ArrayList(10); ArrayList toList = new ArrayList(10); while (from != null) { fromList.add(from); from = ((NodeXBL) from).getXblParentNode(); } while (to != null) { toList.add(to); to = ((NodeXBL) to).getXblParentNode(); } int fromSize = fromList.size(); ...
/** * Determines the number of nodes events should bubble if the * mouse pointer has moved from one element to another. * @param from the element from which the mouse pointer moved * @param to the element to which the mouse pointer moved */
Determines the number of nodes events should bubble if the mouse pointer has moved from one element to another
computeBubbleLimit
{ "repo_name": "Uni-Sol/batik", "path": "sources/org/apache/batik/bridge/svg12/DefaultXBLManager.java", "license": "apache-2.0", "size": 70195 }
[ "java.util.ArrayList", "org.apache.batik.dom.xbl.NodeXBL", "org.w3c.dom.Node" ]
import java.util.ArrayList; import org.apache.batik.dom.xbl.NodeXBL; import org.w3c.dom.Node;
import java.util.*; import org.apache.batik.dom.xbl.*; import org.w3c.dom.*;
[ "java.util", "org.apache.batik", "org.w3c.dom" ]
java.util; org.apache.batik; org.w3c.dom;
2,580,349
public JSONObject put(String key, Map value) throws JSONException { this.put(key, new JSONObject(value)); return this; }
JSONObject function(String key, Map value) throws JSONException { this.put(key, new JSONObject(value)); return this; }
/** * Put a key/value pair in the JSONObject, where the value will be a * JSONObject which is produced from a Map. * @param key A key string. * @param value A Map value. * @return this. * @throws JSONException */
Put a key/value pair in the JSONObject, where the value will be a JSONObject which is produced from a Map
put
{ "repo_name": "jonesgithub/gameapi-java", "path": "src/org/json/JSONObject.java", "license": "mit", "size": 55756 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
481,968
public String getProductNameFromBarcode(String code){ // hacky but it works final String[] result = new String[1]; final String barcode = code; final CountDownLatch latch = new CountDownLatch(1);
String function(String code){ final String[] result = new String[1]; final String barcode = code; final CountDownLatch latch = new CountDownLatch(1);
/** * Retrieves product data from Outpan. To be outside of UI thread, creates * a separate thread. * @param code Barcode to retrieve data for * @return String value with name of product. */
Retrieves product data from Outpan. To be outside of UI thread, creates a separate thread
getProductNameFromBarcode
{ "repo_name": "White0ut/PantryTracker", "path": "app/src/main/java/com/whiteout/pantrytracker/barcode/BarcodeScanner.java", "license": "apache-2.0", "size": 2656 }
[ "java.util.concurrent.CountDownLatch" ]
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.*;
[ "java.util" ]
java.util;
70,377
public Hashtable<String, CalcVariable> getChilds() { return childs; }
Hashtable<String, CalcVariable> function() { return childs; }
/** * return a childs hash * * @return */
return a childs hash
getChilds
{ "repo_name": "minlywang/calc", "path": "src/com/github/minlywang/dsl/calc/core/CalcScope.java", "license": "mit", "size": 2406 }
[ "java.util.Hashtable" ]
import java.util.Hashtable;
import java.util.*;
[ "java.util" ]
java.util;
2,477,460
public static void assertSerializationEquals( final String witness, final Object obj, final int[] skip, final int endCompare) throws Exception { final ByteArrayOutputStream memOut = new ByteArrayOutputStream(); try (final ObjectOutputStream objOut = new ObjectOutputStream(memOut)) { ...
static void function( final String witness, final Object obj, final int[] skip, final int endCompare) throws Exception { final ByteArrayOutputStream memOut = new ByteArrayOutputStream(); try (final ObjectOutputStream objOut = new ObjectOutputStream(memOut)) { objOut.writeObject(obj); } assertStreamEquals(witness, memOu...
/** * Checks the serialization of an object against an file * containing the expected serialization. * * @param witness name of file containing expected serialization. * @param obj object to be serialized. * @param skip positions in serialized stream that should not be comp...
Checks the serialization of an object against an file containing the expected serialization
assertSerializationEquals
{ "repo_name": "codescale/logging-log4j2", "path": "log4j-1.2-api/src/test/java/org/apache/log4j/util/SerializationTestHelper.java", "license": "apache-2.0", "size": 5270 }
[ "java.io.ByteArrayOutputStream", "java.io.ObjectOutputStream" ]
import java.io.ByteArrayOutputStream; import java.io.ObjectOutputStream;
import java.io.*;
[ "java.io" ]
java.io;
1,834,034
void setFontVariant( String fontVariant ) throws SemanticException;
void setFontVariant( String fontVariant ) throws SemanticException;
/** * Sets the variant of the font. The input value is one of constants defined * in <code>DesignChoiceConstants</code>: * <ul> * <li><code>FONT_VARIANT_NORMAL</code> * <li><code>FONT_VARIANT_SMALL_CAPS</code> * </ul> * * @param fontVariant * the new font variant. * @throws SemanticExcep...
Sets the variant of the font. The input value is one of constants defined in <code>DesignChoiceConstants</code>: <code>FONT_VARIANT_NORMAL</code> <code>FONT_VARIANT_SMALL_CAPS</code>
setFontVariant
{ "repo_name": "sguan-actuate/birt", "path": "model/org.eclipse.birt.report.model/src/org/eclipse/birt/report/model/api/simpleapi/IStyle.java", "license": "epl-1.0", "size": 39595 }
[ "org.eclipse.birt.report.model.api.activity.SemanticException" ]
import org.eclipse.birt.report.model.api.activity.SemanticException;
import org.eclipse.birt.report.model.api.activity.*;
[ "org.eclipse.birt" ]
org.eclipse.birt;
1,948,554
public void setTestUser(Long userId) throws Exception { // Make sure we have a valid user. testUser = userManager.getUserInfo(userId); UserInfo.validateUserInfo(testUser); this.userId = userId; }
void function(Long userId) throws Exception { testUser = userManager.getUserInfo(userId); UserInfo.validateUserInfo(testUser); this.userId = userId; }
/** * Change the test user */
Change the test user
setTestUser
{ "repo_name": "hhu94/Synapse-Repository-Services", "path": "services/repository/src/test/java/org/sagebionetworks/repo/web/controller/ServletTestHelper.java", "license": "apache-2.0", "size": 93773 }
[ "org.sagebionetworks.repo.model.UserInfo" ]
import org.sagebionetworks.repo.model.UserInfo;
import org.sagebionetworks.repo.model.*;
[ "org.sagebionetworks.repo" ]
org.sagebionetworks.repo;
631,736
public File createFile(FileType type, String name, User owner) { File file = new File(); file.setType(type); file.setName(name); file.setOwner(owner); file.setShared(owner.getLogin().equals("system") && !name.startsWith("init.")); // Ugh return save(file); }
File function(FileType type, String name, User owner) { File file = new File(); file.setType(type); file.setName(name); file.setOwner(owner); file.setShared(owner.getLogin().equals(STR) && !name.startsWith("init.")); return save(file); }
/** * Create a new file * * @param type * @param name * @param owner * @return The new file */
Create a new file
createFile
{ "repo_name": "powertac/powertac-server", "path": "visualizer2/src/main/java/org/powertac/visualizer/service/FileService.java", "license": "apache-2.0", "size": 3586 }
[ "org.powertac.visualizer.domain.File", "org.powertac.visualizer.domain.User", "org.powertac.visualizer.domain.enumeration.FileType" ]
import org.powertac.visualizer.domain.File; import org.powertac.visualizer.domain.User; import org.powertac.visualizer.domain.enumeration.FileType;
import org.powertac.visualizer.domain.*; import org.powertac.visualizer.domain.enumeration.*;
[ "org.powertac.visualizer" ]
org.powertac.visualizer;
2,292,540
public static AuthzRoles addAllSubgroupsToAuthzRoles(PerunSession sess, AuthzRoles authzRoles, String role) { if (authzRoles == null) return new AuthzRoles(); if (role == null || !authzRoles.hasRole(role)) return authzRoles; Map<String, Set<Integer>> groupRoles = authzRoles.get(role); Set<Integer> groupsIds...
static AuthzRoles function(PerunSession sess, AuthzRoles authzRoles, String role) { if (authzRoles == null) return new AuthzRoles(); if (role == null !authzRoles.hasRole(role)) return authzRoles; Map<String, Set<Integer>> groupRoles = authzRoles.get(role); Set<Integer> groupsIds = groupRoles.get("Group"); Set<Integer> ...
/** * For the given role with association to "Group" add also all subgroups to authzRoles. * If authzRoles is null, return empty AuthzRoles. * If there is no role (given in parameter) or Group object for this role, return not changed authzRoles. * * @param sess perun session * @param authzRoles authzR...
For the given role with association to "Group" add also all subgroups to authzRoles. If authzRoles is null, return empty AuthzRoles. If there is no role (given in parameter) or Group object for this role, return not changed authzRoles
addAllSubgroupsToAuthzRoles
{ "repo_name": "zoraseb/perun", "path": "perun-core/src/main/java/cz/metacentrum/perun/core/blImpl/AuthzResolverBlImpl.java", "license": "bsd-2-clause", "size": 97601 }
[ "cz.metacentrum.perun.core.api.Group", "cz.metacentrum.perun.core.api.PerunSession", "cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException", "cz.metacentrum.perun.core.impl.AuthzRoles", "java.util.HashSet", "java.util.List", "java.util.Map", "java.util.Set" ]
import cz.metacentrum.perun.core.api.Group; import cz.metacentrum.perun.core.api.PerunSession; import cz.metacentrum.perun.core.api.exceptions.GroupNotExistsException; import cz.metacentrum.perun.core.impl.AuthzRoles; import java.util.HashSet; import java.util.List; import java.util.Map; import java.util.Set;
import cz.metacentrum.perun.core.api.*; import cz.metacentrum.perun.core.api.exceptions.*; import cz.metacentrum.perun.core.impl.*; import java.util.*;
[ "cz.metacentrum.perun", "java.util" ]
cz.metacentrum.perun; java.util;
2,626,376
@Test public void testWholeMap() throws Throwable { for (boolean frozen : new boolean[] {false, true}) { createTable(String.format("CREATE TABLE %%s (k int PRIMARY KEY, m %s)", frozen ? "frozen<map<text, ...
void function() throws Throwable { for (boolean frozen : new boolean[] {false, true}) { createTable(String.format(STR, frozen ? STR : STR)); execute(STR); check_applies_map(STR); check_applies_map(STR); check_applies_map(STR); check_applies_map(STR); check_applies_map(STR); check_applies_map(STR); check_applies_map(STR...
/** * Migrated from cql_tests.py:TestCQL.whole_map_conditional_test() */
Migrated from cql_tests.py:TestCQL.whole_map_conditional_test()
testWholeMap
{ "repo_name": "mambocab/cassandra", "path": "test/unit/org/apache/cassandra/cql3/validation/operations/InsertUpdateIfConditionTest.java", "license": "apache-2.0", "size": 91813 }
[ "java.lang.String", "org.apache.cassandra.exceptions.InvalidRequestException", "org.apache.cassandra.exceptions.SyntaxException" ]
import java.lang.String; import org.apache.cassandra.exceptions.InvalidRequestException; import org.apache.cassandra.exceptions.SyntaxException;
import java.lang.*; import org.apache.cassandra.exceptions.*;
[ "java.lang", "org.apache.cassandra" ]
java.lang; org.apache.cassandra;
2,625,661
public void addDependencyDeclarers(AbstractProject upstream, Collection<?> possibleDependecyDeclarers) { for (Object o : possibleDependecyDeclarers) { if (o instanceof DependecyDeclarer) { DependecyDeclarer dd = (DependecyDeclarer) o; dd.buildDependencyGraph(upstr...
void function(AbstractProject upstream, Collection<?> possibleDependecyDeclarers) { for (Object o : possibleDependecyDeclarers) { if (o instanceof DependecyDeclarer) { DependecyDeclarer dd = (DependecyDeclarer) o; dd.buildDependencyGraph(upstream,this); } } }
/** * Lists up {@link DependecyDeclarer} from the collection and let them builds dependencies. */
Lists up <code>DependecyDeclarer</code> from the collection and let them builds dependencies
addDependencyDeclarers
{ "repo_name": "iterate/coding-dojo", "path": "2011-04-26-refactoring_hudson/core/src/main/java/hudson/model/DependencyGraph.java", "license": "apache-2.0", "size": 19552 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
166,639
void print(Doc doc, String jobName) throws PrintException;
void print(Doc doc, String jobName) throws PrintException;
/** * Prints the document. * * @param doc document to print * @throws PrintException is thrown if printing failed */
Prints the document
print
{ "repo_name": "nikhilvibhav/camel", "path": "components/camel-printer/src/main/java/org/apache/camel/component/printer/PrinterOperationsInterface.java", "license": "apache-2.0", "size": 1179 }
[ "javax.print.Doc", "javax.print.PrintException" ]
import javax.print.Doc; import javax.print.PrintException;
import javax.print.*;
[ "javax.print" ]
javax.print;
1,161,867
public void deleteNotification(BigInteger alertId, BigInteger notificationId) throws IOException, TokenExpiredException { String requestUrl = RESOURCE + "/" + alertId.toString() + "/notifications/" + notificationId.toString(); ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.R...
void function(BigInteger alertId, BigInteger notificationId) throws IOException, TokenExpiredException { String requestUrl = RESOURCE + "/" + alertId.toString() + STR + notificationId.toString(); ArgusResponse response = getClient().executeHttpRequest(ArgusHttpClient.RequestType.DELETE, requestUrl, null); assertValidRe...
/** * Deletes the notification for the given alert ID. Associated triggers are not deleted from the alert. * * @param alertId The ID of the alert from which the notification will be deleted. * @param notificationId The ID of the notification to delete. * * @throws IOException...
Deletes the notification for the given alert ID. Associated triggers are not deleted from the alert
deleteNotification
{ "repo_name": "SalesforceEng/Argus", "path": "ArgusSDK/src/main/java/com/salesforce/dva/argus/sdk/AlertService.java", "license": "bsd-3-clause", "size": 23177 }
[ "com.salesforce.dva.argus.sdk.ArgusHttpClient", "com.salesforce.dva.argus.sdk.exceptions.TokenExpiredException", "java.io.IOException", "java.math.BigInteger" ]
import com.salesforce.dva.argus.sdk.ArgusHttpClient; import com.salesforce.dva.argus.sdk.exceptions.TokenExpiredException; import java.io.IOException; import java.math.BigInteger;
import com.salesforce.dva.argus.sdk.*; import com.salesforce.dva.argus.sdk.exceptions.*; import java.io.*; import java.math.*;
[ "com.salesforce.dva", "java.io", "java.math" ]
com.salesforce.dva; java.io; java.math;
1,489,361
@Test public void testAlignment() { Node<String> node; // Tree 1 Node<String> tree1 = new Node<>("A"); node = new Node<>("A1"); node.setChildren(NodeTestUtil.asNodes("A11", "A12", "A14")); tree1.addChild(node); node = new Node<>("A2"); no...
void function() { Node<String> node; Node<String> tree1 = new Node<>("A"); node = new Node<>("A1"); node.setChildren(NodeTestUtil.asNodes("A11", "A12", "A14")); tree1.addChild(node); node = new Node<>("A2"); node.addChild(new Node<>("A21")); tree1.addChild(node); tree1.addChild(new Node<>("A4")); Node<String> tree2 = n...
/** * Tests the alignment. */
Tests the alignment
testAlignment
{ "repo_name": "cyChop/tree-comparer", "path": "tree-comparer-algorithm/src/test/java/org/keyboardplaying/tree/align/TreeAlignerTest.java", "license": "apache-2.0", "size": 4768 }
[ "java.util.Arrays", "org.junit.Assert", "org.keyboardplaying.tree.model.Node", "org.keyboardplaying.tree.model.Variations", "org.keyboardplaying.tree.util.NodeTestUtil" ]
import java.util.Arrays; import org.junit.Assert; import org.keyboardplaying.tree.model.Node; import org.keyboardplaying.tree.model.Variations; import org.keyboardplaying.tree.util.NodeTestUtil;
import java.util.*; import org.junit.*; import org.keyboardplaying.tree.model.*; import org.keyboardplaying.tree.util.*;
[ "java.util", "org.junit", "org.keyboardplaying.tree" ]
java.util; org.junit; org.keyboardplaying.tree;
2,605,543
public void setValidFrom (Timestamp ValidFrom);
void function (Timestamp ValidFrom);
/** Set Valid from. * Valid from including this date (first day) */
Set Valid from. Valid from including this date (first day)
setValidFrom
{ "repo_name": "arthurmelo88/palmetalADP", "path": "adempiere_360/base/src/org/compiere/model/I_AD_Workflow.java", "license": "gpl-2.0", "size": 16722 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
676,613
@Test public void testUpdateChannelBeforeRequest() throws Exception { SingleInputGate inputGate = createInputGate(1); TestingResultPartitionManager partitionManager = new TestingResultPartitionManager(new NoOpResultSubpartitionView()); InputChannel unknown = ...
void function() throws Exception { SingleInputGate inputGate = createInputGate(1); TestingResultPartitionManager partitionManager = new TestingResultPartitionManager(new NoOpResultSubpartitionView()); InputChannel unknown = InputChannelBuilder.newBuilder() .setPartitionManager(partitionManager) .buildUnknownChannel(inp...
/** * Tests that an update channel does not trigger a partition request before the UDF has * requested any partitions. Otherwise, this can lead to races when registering a listener at * the gate (e.g. in UnionInputGate), which can result in missed buffer notifications at the * listener. */
Tests that an update channel does not trigger a partition request before the UDF has requested any partitions. Otherwise, this can lead to races when registering a listener at the gate (e.g. in UnionInputGate), which can result in missed buffer notifications at the listener
testUpdateChannelBeforeRequest
{ "repo_name": "rmetzger/flink", "path": "flink-runtime/src/test/java/org/apache/flink/runtime/io/network/partition/consumer/SingleInputGateTest.java", "license": "apache-2.0", "size": 44517 }
[ "org.apache.flink.runtime.clusterframework.types.ResourceID", "org.apache.flink.runtime.io.network.partition.NoOpResultSubpartitionView", "org.apache.flink.runtime.io.network.partition.ResultPartitionID", "org.apache.flink.runtime.util.NettyShuffleDescriptorBuilder", "org.junit.Assert" ]
import org.apache.flink.runtime.clusterframework.types.ResourceID; import org.apache.flink.runtime.io.network.partition.NoOpResultSubpartitionView; import org.apache.flink.runtime.io.network.partition.ResultPartitionID; import org.apache.flink.runtime.util.NettyShuffleDescriptorBuilder; import org.junit.Assert;
import org.apache.flink.runtime.clusterframework.types.*; import org.apache.flink.runtime.io.network.partition.*; import org.apache.flink.runtime.util.*; import org.junit.*;
[ "org.apache.flink", "org.junit" ]
org.apache.flink; org.junit;
1,828,630
@Override @DoesServiceRequest public void upload(final InputStream sourceStream, final long length, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext) throws StorageException, IOException { assertNoWriteOperationForSnapshot(); if (opCo...
void function(final InputStream sourceStream, final long length, final AccessCondition accessCondition, BlobRequestOptions options, OperationContext opContext) throws StorageException, IOException { assertNoWriteOperationForSnapshot(); if (opContext == null) { opContext = new OperationContext(); } options = BlobRequest...
/** * Uploads the source stream data to the page blob using the specified lease ID, request options, and operation * context. If the blob already exists on the service, it will be overwritten. * * @param sourceStream * An {@link InputStream} object to read from. * @param length...
Uploads the source stream data to the page blob using the specified lease ID, request options, and operation context. If the blob already exists on the service, it will be overwritten
upload
{ "repo_name": "risezhang/azure-storage-cli", "path": "src/main/java/com/microsoft/azure/storage/blob/CloudPageBlob.java", "license": "mit", "size": 49027 }
[ "com.microsoft.azure.storage.AccessCondition", "com.microsoft.azure.storage.Constants", "com.microsoft.azure.storage.OperationContext", "com.microsoft.azure.storage.StorageException", "java.io.IOException", "java.io.InputStream" ]
import com.microsoft.azure.storage.AccessCondition; import com.microsoft.azure.storage.Constants; import com.microsoft.azure.storage.OperationContext; import com.microsoft.azure.storage.StorageException; import java.io.IOException; import java.io.InputStream;
import com.microsoft.azure.storage.*; import java.io.*;
[ "com.microsoft.azure", "java.io" ]
com.microsoft.azure; java.io;
1,584,077
public TableLayoutBuilder row(RowSpec gapRowSpec) { row(); gapRows.put(new Integer(currentRow), gapRowSpec); return this; }
TableLayoutBuilder function(RowSpec gapRowSpec) { row(); gapRows.put(new Integer(currentRow), gapRowSpec); return this; }
/** * Inserts a new row. A gap row with specified RowSpec will be inserted * before this row. */
Inserts a new row. A gap row with specified RowSpec will be inserted before this row
row
{ "repo_name": "springrichclient/springrcp", "path": "spring-richclient-core/src/main/java/org/springframework/richclient/layout/TableLayoutBuilder.java", "license": "apache-2.0", "size": 27078 }
[ "com.jgoodies.forms.layout.RowSpec" ]
import com.jgoodies.forms.layout.RowSpec;
import com.jgoodies.forms.layout.*;
[ "com.jgoodies.forms" ]
com.jgoodies.forms;
679,122
private WorkflowDefinition maintainWorkflow(WorkflowDefinition workflow) throws PersistenceException, VisitorException, SerializationException { // Recursively set state DELETED to all child elements. if (workflow.getDatatypeState() == DatatypeState.DELETED) { workflow.accep...
WorkflowDefinition function(WorkflowDefinition workflow) throws PersistenceException, VisitorException, SerializationException { if (workflow.getDatatypeState() == DatatypeState.DELETED) { workflow.accept(new WorkflowDefinitionStateVisitor(DatatypeState.DELETED)); } this.maintainChildren(workflow); workflow = super.get...
/** * Maintains a workflow definition. * * @param workflow * the workflow to maintain * * @return the maintained workflow * * @throws PersistenceException * @throws VisitorException * @throws SerializationException */
Maintains a workflow definition
maintainWorkflow
{ "repo_name": "NABUCCO/org.nabucco.framework.workflow", "path": "org.nabucco.framework.workflow.impl.service/src/main/man/org/nabucco/framework/workflow/impl/service/definition/maintain/MaintainWorkflowDefinitionServiceHandlerImpl.java", "license": "epl-1.0", "size": 11779 }
[ "org.nabucco.framework.base.facade.datatype.DatatypeState", "org.nabucco.framework.base.facade.datatype.serialization.SerializationException", "org.nabucco.framework.base.facade.datatype.visitor.VisitorException", "org.nabucco.framework.base.facade.exception.persistence.PersistenceException", "org.nabucco.f...
import org.nabucco.framework.base.facade.datatype.DatatypeState; import org.nabucco.framework.base.facade.datatype.serialization.SerializationException; import org.nabucco.framework.base.facade.datatype.visitor.VisitorException; import org.nabucco.framework.base.facade.exception.persistence.PersistenceException; import...
import org.nabucco.framework.base.facade.datatype.*; import org.nabucco.framework.base.facade.datatype.serialization.*; import org.nabucco.framework.base.facade.datatype.visitor.*; import org.nabucco.framework.base.facade.exception.persistence.*; import org.nabucco.framework.workflow.facade.datatype.definition.*; impor...
[ "org.nabucco.framework" ]
org.nabucco.framework;
2,493,702
public Invoker getInvoker() { return this.invoker; }
Invoker function() { return this.invoker; }
/** * Return the original Invoker instance. * * @return The original Invoker instance. */
Return the original Invoker instance
getInvoker
{ "repo_name": "FauxFaux/jdk9-jaxws", "path": "src/java.xml.ws/share/classes/com/sun/xml/internal/ws/api/config/management/EndpointCreationAttributes.java", "license": "gpl-2.0", "size": 3453 }
[ "com.sun.xml.internal.ws.api.server.Invoker" ]
import com.sun.xml.internal.ws.api.server.Invoker;
import com.sun.xml.internal.ws.api.server.*;
[ "com.sun.xml" ]
com.sun.xml;
1,726,046
public E sample() { return sample(new Random()); }
E function() { return sample(new Random()); }
/** * Will return a sample from the counter, will throw exception if any of the * counts are < 0.0 or if the totalCount() <= 0.0 * * @return * * @author aria42 */
Will return a sample from the counter, will throw exception if any of the counts are < 0.0 or if the totalCount() <= 0.0
sample
{ "repo_name": "jpatanooga/Metronome", "path": "src/main/java/tv/floe/metronome/berkley/Counter.java", "license": "apache-2.0", "size": 14013 }
[ "java.util.Random" ]
import java.util.Random;
import java.util.*;
[ "java.util" ]
java.util;
424,906
@RequestMapping(value = "/{eventId}/planning-info", method = RequestMethod.GET) public ResponseEntity<PlanningInfoDto> getPlanningInfo(@PathVariable Long eventId) { LOGGER.debug("[{}] Get planning info for event {}", getUserConnected(), eventId); // get places by date return ResponseEnti...
@RequestMapping(value = STR, method = RequestMethod.GET) ResponseEntity<PlanningInfoDto> function(@PathVariable Long eventId) { LOGGER.debug(STR, getUserConnected(), eventId); return ResponseEntity.ok().body(eventService.getPlanningInfo(eventId, getUserConnectedId())); }
/** * Get planning. */
Get planning
getPlanningInfo
{ "repo_name": "aguillem/festival-manager", "path": "festival-manager-core/src/main/java/com/aguillem/festival/manager/core/rest/controller/EventController.java", "license": "gpl-3.0", "size": 23803 }
[ "com.aguillem.festival.manager.core.dto.planning.PlanningInfoDto", "org.springframework.http.ResponseEntity", "org.springframework.web.bind.annotation.PathVariable", "org.springframework.web.bind.annotation.RequestMapping", "org.springframework.web.bind.annotation.RequestMethod" ]
import com.aguillem.festival.manager.core.dto.planning.PlanningInfoDto; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod;
import com.aguillem.festival.manager.core.dto.planning.*; import org.springframework.http.*; import org.springframework.web.bind.annotation.*;
[ "com.aguillem.festival", "org.springframework.http", "org.springframework.web" ]
com.aguillem.festival; org.springframework.http; org.springframework.web;
2,523,365
public static File getJJTreeOutputDirectory() { String dirName = stringValue("JJTREE_OUTPUT_DIRECTORY"); if ("".equals(dirName)) { return getOutputDirectory(); } else { return new File(dirName); } }
static File function() { String dirName = stringValue(STR); if ("".equals(dirName)) { return getOutputDirectory(); } else { return new File(dirName); } }
/** * Find the output directory to place the generated <code>.jj</code> files * into. If none is configured, use the value of * <code>getOutputDirectory()</code>. * * @return The requested JJTree output directory */
Find the output directory to place the generated <code>.jj</code> files into. If none is configured, use the value of <code>getOutputDirectory()</code>
getJJTreeOutputDirectory
{ "repo_name": "aradzie/javaccng", "path": "javacc/src/main/java/org/javacc/jjtree/JJTreeOptions.java", "license": "bsd-3-clause", "size": 7396 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
535,851
public void setFudgeContext(FudgeContext fudgeContext) { JodaBeanUtils.notNull(fudgeContext, "fudgeContext"); this._fudgeContext = fudgeContext; }
void function(FudgeContext fudgeContext) { JodaBeanUtils.notNull(fudgeContext, STR); this._fudgeContext = fudgeContext; }
/** * Sets the fudge context. * @param fudgeContext the new value of the property, not null */
Sets the fudge context
setFudgeContext
{ "repo_name": "McLeodMoores/starling", "path": "projects/component/src/main/java/com/opengamma/component/factory/engine/SpringViewProcessorComponentFactory.java", "license": "apache-2.0", "size": 39839 }
[ "org.fudgemsg.FudgeContext", "org.joda.beans.JodaBeanUtils" ]
import org.fudgemsg.FudgeContext; import org.joda.beans.JodaBeanUtils;
import org.fudgemsg.*; import org.joda.beans.*;
[ "org.fudgemsg", "org.joda.beans" ]
org.fudgemsg; org.joda.beans;
2,084,090
@CheckReturnValue public static CloudStorageFileSystem forBucket(String bucket, CloudStorageConfiguration config) { checkArgument( !bucket.startsWith(URI_SCHEME + ":"), "Bucket name must not have schema: %s", bucket); return new CloudStorageFileSystem( new CloudStorageFileSystemProvider(), b...
static CloudStorageFileSystem function(String bucket, CloudStorageConfiguration config) { checkArgument( !bucket.startsWith(URI_SCHEME + ":"), STR, bucket); return new CloudStorageFileSystem( new CloudStorageFileSystemProvider(), bucket, checkNotNull(config)); } /** * Returns Google Cloud Storage {@link FileSystem} obj...
/** * Creates new file system instance for {@code bucket}, with customizable settings. * * @see #forBucket(String) */
Creates new file system instance for bucket, with customizable settings
forBucket
{ "repo_name": "shinfan/gcloud-java", "path": "google-cloud-contrib/google-cloud-nio/src/main/java/com/google/cloud/storage/contrib/nio/CloudStorageFileSystem.java", "license": "apache-2.0", "size": 9484 }
[ "com.google.common.base.Preconditions", "java.net.URI", "java.nio.file.FileSystem", "java.nio.file.FileSystems" ]
import com.google.common.base.Preconditions; import java.net.URI; import java.nio.file.FileSystem; import java.nio.file.FileSystems;
import com.google.common.base.*; import java.net.*; import java.nio.file.*;
[ "com.google.common", "java.net", "java.nio" ]
com.google.common; java.net; java.nio;
862,956
@Override public PostgresStatement prepare(Env env, String query) { PostgresStatement stmt = new PostgresStatement((Postgres) validateConnection(env)); stmt.prepare(env, query); return stmt; }
PostgresStatement function(Env env, String query) { PostgresStatement stmt = new PostgresStatement((Postgres) validateConnection(env)); stmt.prepare(env, query); return stmt; }
/** * returns a prepared statement */
returns a prepared statement
prepare
{ "repo_name": "mdaniel/svn-caucho-com-resin", "path": "modules/quercus/src/com/caucho/quercus/lib/db/Postgres.java", "license": "gpl-2.0", "size": 10694 }
[ "com.caucho.quercus.env.Env" ]
import com.caucho.quercus.env.Env;
import com.caucho.quercus.env.*;
[ "com.caucho.quercus" ]
com.caucho.quercus;
2,831,606
@Override protected void onBlockRedstoneWirelessRemoved(World world, int x, int y, int z) { RedstoneEther.getInstance().remReceiver(world, x, y, z, ...
void function(World world, int x, int y, int z) { RedstoneEther.getInstance().remReceiver(world, x, y, z, getFreq(world, x, y, z)); world.notifyBlocksOfNeighborChange(x, y, z, this); }
/** * Is triggered after the Block is removed from the world and before the * TileEntity is removed.<br> * - Remove receiver from ether.<br> * - Notify all neighboring Blocks. */
Is triggered after the Block is removed from the world and before the TileEntity is removed. - Remove receiver from ether. - Notify all neighboring Blocks
onBlockRedstoneWirelessRemoved
{ "repo_name": "SlimeVoid/WirelessRedstone", "path": "src/main/java/net/slimevoid/wirelessredstone/block/BlockRedstoneWirelessR.java", "license": "lgpl-3.0", "size": 12452 }
[ "net.minecraft.world.World", "net.slimevoid.wirelessredstone.ether.RedstoneEther" ]
import net.minecraft.world.World; import net.slimevoid.wirelessredstone.ether.RedstoneEther;
import net.minecraft.world.*; import net.slimevoid.wirelessredstone.ether.*;
[ "net.minecraft.world", "net.slimevoid.wirelessredstone" ]
net.minecraft.world; net.slimevoid.wirelessredstone;
44,431
public java.util.List<fr.lip6.move.pnml.pthlpng.booleans.hlapi.BoolHLAPI> getInput_booleans_BoolHLAPI() { java.util.List<fr.lip6.move.pnml.pthlpng.booleans.hlapi.BoolHLAPI> retour = new ArrayList<fr.lip6.move.pnml.pthlpng.booleans.hlapi.BoolHLAPI>(); for (Sort elemnt : getInput()) { if (elemnt.getClass().equa...
java.util.List<fr.lip6.move.pnml.pthlpng.booleans.hlapi.BoolHLAPI> function() { java.util.List<fr.lip6.move.pnml.pthlpng.booleans.hlapi.BoolHLAPI> retour = new ArrayList<fr.lip6.move.pnml.pthlpng.booleans.hlapi.BoolHLAPI>(); for (Sort elemnt : getInput()) { if (elemnt.getClass().equals(fr.lip6.move.pnml.pthlpng.boolean...
/** * This accessor return a list of encapsulated subelement, only of BoolHLAPI * kind. WARNING : this method can creates a lot of new object in memory. */
This accessor return a list of encapsulated subelement, only of BoolHLAPI kind. WARNING : this method can creates a lot of new object in memory
getInput_booleans_BoolHLAPI
{ "repo_name": "lhillah/pnmlframework", "path": "pnmlFw-PT-HLPNG/src/fr/lip6/move/pnml/pthlpng/booleans/hlapi/ImplyHLAPI.java", "license": "epl-1.0", "size": 69671 }
[ "fr.lip6.move.pnml.pthlpng.terms.Sort", "java.util.ArrayList", "java.util.List" ]
import fr.lip6.move.pnml.pthlpng.terms.Sort; import java.util.ArrayList; import java.util.List;
import fr.lip6.move.pnml.pthlpng.terms.*; import java.util.*;
[ "fr.lip6.move", "java.util" ]
fr.lip6.move; java.util;
1,901,144
public String getSessionSerializationDebug(String id) { ByteStreamCache cache = getCache(); if (cache == null) return null; try { TempOutputStream os = new TempOutputStream(); if (cache.get(id, os)) { InputStream is = os.getInputStream(); StringWriter writer = new S...
String function(String id) { ByteStreamCache cache = getCache(); if (cache == null) return null; try { TempOutputStream os = new TempOutputStream(); if (cache.get(id, os)) { InputStream is = os.getInputStream(); StringWriter writer = new StringWriter(); HessianDebugInputStream dis = new HessianDebugInputStream(is, new ...
/** * Returns a debug string for the session */
Returns a debug string for the session
getSessionSerializationDebug
{ "repo_name": "mdaniel/svn-caucho-com-resin", "path": "modules/resin/src/com/caucho/server/session/SessionManager.java", "license": "gpl-2.0", "size": 48368 }
[ "com.caucho.distcache.ByteStreamCache", "com.caucho.hessian.io.HessianDebugInputStream", "com.caucho.vfs.TempOutputStream", "java.io.InputStream", "java.io.PrintWriter", "java.io.StringWriter", "java.util.logging.Level" ]
import com.caucho.distcache.ByteStreamCache; import com.caucho.hessian.io.HessianDebugInputStream; import com.caucho.vfs.TempOutputStream; import java.io.InputStream; import java.io.PrintWriter; import java.io.StringWriter; import java.util.logging.Level;
import com.caucho.distcache.*; import com.caucho.hessian.io.*; import com.caucho.vfs.*; import java.io.*; import java.util.logging.*;
[ "com.caucho.distcache", "com.caucho.hessian", "com.caucho.vfs", "java.io", "java.util" ]
com.caucho.distcache; com.caucho.hessian; com.caucho.vfs; java.io; java.util;
770,621
public void assertProdErrorMessage() throws Exception { String actual = getAuraErrorMessage().replaceAll("\\s+", " "); Assert.assertEquals("Unable to process your request", actual); }
void function() throws Exception { String actual = getAuraErrorMessage().replaceAll("\\s+", " "); Assert.assertEquals(STR, actual); }
/** * Assert that our error message is the expected production error message. */
Assert that our error message is the expected production error message
assertProdErrorMessage
{ "repo_name": "DebalinaDey/AuraDevelopDeb", "path": "aura/src/test/java/org/auraframework/test/util/AuraUITestingUtil.java", "license": "apache-2.0", "size": 38373 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
1,847,378
public void internalFrameDeactivated(InternalFrameEvent e) { // FIXME: Implement. }
void function(InternalFrameEvent e) { }
/** * This method is called when the JInternalFrame is deactivated. * * @param e The InternalFrameEvent. */
This method is called when the JInternalFrame is deactivated
internalFrameDeactivated
{ "repo_name": "aosm/gcc_40", "path": "libjava/javax/swing/plaf/basic/BasicInternalFrameUI.java", "license": "gpl-2.0", "size": 44949 }
[ "javax.swing.event.InternalFrameEvent" ]
import javax.swing.event.InternalFrameEvent;
import javax.swing.event.*;
[ "javax.swing" ]
javax.swing;
1,097,955
protected void testFileSpecificMetadata(String mimetype, Map<QName, Serializable> properties) { assertEquals( "Property " + ContentModel.PROP_CREATED + " not found for mimetype " + mimetype, "2005-05-26T19:52:58.000Z", DefaultTypeConverter.INSTANCE.convert...
void function(String mimetype, Map<QName, Serializable> properties) { assertEquals( STR + ContentModel.PROP_CREATED + STR + mimetype, STR, DefaultTypeConverter.INSTANCE.convert(String.class, properties.get(ContentModel.PROP_CREATED))); }
/** * We can also return a created date */
We can also return a created date
testFileSpecificMetadata
{ "repo_name": "fxcebx/community-edition", "path": "projects/repository/source/test-java/org/alfresco/repo/content/metadata/PdfBoxMetadataExtracterTest.java", "license": "lgpl-3.0", "size": 3622 }
[ "java.io.Serializable", "java.util.Map", "org.alfresco.model.ContentModel", "org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter", "org.alfresco.service.namespace.QName" ]
import java.io.Serializable; import java.util.Map; import org.alfresco.model.ContentModel; import org.alfresco.service.cmr.repository.datatype.DefaultTypeConverter; import org.alfresco.service.namespace.QName;
import java.io.*; import java.util.*; import org.alfresco.model.*; import org.alfresco.service.cmr.repository.datatype.*; 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;
1,560,787
@Override public void run() { DataExportParams params = new DataExportParams(); params.setDataElements( dataElements ); params.setDataElementOperands( dataElementOperands ); params.setPeriods( queryPeriods ); params.setOrganisationUnits( currentUserOrgUnits ); ...
void function() { DataExportParams params = new DataExportParams(); params.setDataElements( dataElements ); params.setDataElementOperands( dataElementOperands ); params.setPeriods( queryPeriods ); params.setOrganisationUnits( currentUserOrgUnits ); params.setOuMode( DESCENDANTS ); params.setOrgUnitLevel( orgUnitLevel )...
/** * In a separate thread, fetches all the requested data values. */
In a separate thread, fetches all the requested data values
run
{ "repo_name": "dhis2/dhis2-core", "path": "dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/predictor/PredictionDataValueFetcher.java", "license": "bsd-3-clause", "size": 19073 }
[ "org.hisp.dhis.datavalue.DataExportParams" ]
import org.hisp.dhis.datavalue.DataExportParams;
import org.hisp.dhis.datavalue.*;
[ "org.hisp.dhis" ]
org.hisp.dhis;
2,041,484