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
private Map<FileHistoryId, List<FileVersion>> collectPurgableFileVersions() { Map<FileHistoryId, List<FileVersion>> purgeFileVersions = new HashMap<FileHistoryId, List<FileVersion>>(); long currentTime = System.currentTimeMillis(); long previousTruncateIntervalTimeMultiplier = 0; for (Map.Entry<Long, T...
Map<FileHistoryId, List<FileVersion>> function() { Map<FileHistoryId, List<FileVersion>> purgeFileVersions = new HashMap<FileHistoryId, List<FileVersion>>(); long currentTime = System.currentTimeMillis(); long previousTruncateIntervalTimeMultiplier = 0; for (Map.Entry<Long, TimeUnit> purgeFileVersionSetting : options.g...
/** * For all time intervals defined in the purge file settings, determine the eligible file * versions to be purged -- namely all but the newest one. * * @see CleanupOperation * @see CleanupOperationOptions#getPurgeFileVersionSettings() * @see FileVersionSqlDao#getFileHistoriesToPurgeInInterval(long, lon...
For all time intervals defined in the purge file settings, determine the eligible file versions to be purged -- namely all but the newest one
collectPurgableFileVersions
{ "repo_name": "syncany/syncany-plugin-gui", "path": "core/syncany-lib/src/main/java/org/syncany/operations/cleanup/CleanupOperation.java", "license": "gpl-3.0", "size": 24961 }
[ "java.util.HashMap", "java.util.List", "java.util.Map", "org.syncany.database.FileVersion", "org.syncany.database.PartialFileHistory", "org.syncany.operations.cleanup.CleanupOperationOptions" ]
import java.util.HashMap; import java.util.List; import java.util.Map; import org.syncany.database.FileVersion; import org.syncany.database.PartialFileHistory; import org.syncany.operations.cleanup.CleanupOperationOptions;
import java.util.*; import org.syncany.database.*; import org.syncany.operations.cleanup.*;
[ "java.util", "org.syncany.database", "org.syncany.operations" ]
java.util; org.syncany.database; org.syncany.operations;
1,780,801
public void debugCr(final Reconciliation reconciliation, final Supplier<?> msgSupplier) { logger.logIfEnabled(FQCN, DEBUG, reconciliation.getMarker(), msgSupplier, (Throwable) null); }
void function(final Reconciliation reconciliation, final Supplier<?> msgSupplier) { logger.logIfEnabled(FQCN, DEBUG, reconciliation.getMarker(), msgSupplier, (Throwable) null); }
/** * Logs a message which is only to be constructed if the logging level is the * {@code DEBUG} level with the specified Marker. * * @param reconciliation The reconciliation * @param msgSupplier A function, which when called, produces the desired log message; * the format depen...
Logs a message which is only to be constructed if the logging level is the DEBUG level with the specified Marker
debugCr
{ "repo_name": "ppatierno/kaas", "path": "operator-common/src/main/java/io/strimzi/operator/common/ReconciliationLogger.java", "license": "apache-2.0", "size": 352724 }
[ "org.apache.logging.log4j.util.Supplier" ]
import org.apache.logging.log4j.util.Supplier;
import org.apache.logging.log4j.util.*;
[ "org.apache.logging" ]
org.apache.logging;
399,527
public static Builder<? extends Table> getBuilder( Header header, WritableFontData tableData) { int tag = header.tag(); if (tag == Tag.cmap) { return CMapTable.Builder.createBuilder(header, tableData); } else if (tag == Tag.head) { return FontHeaderTable.Builder.createBui...
static Builder<? extends Table> function( Header header, WritableFontData tableData) { int tag = header.tag(); if (tag == Tag.cmap) { return CMapTable.Builder.createBuilder(header, tableData); } else if (tag == Tag.head) { return FontHeaderTable.Builder.createBuilder(header, tableData); } else if (tag == Tag.hhea) { re...
/** * Get a builder for the table type specified by the data in the header. * * @param header * the header for the table * @param tableData * the data to be used to build the table from * @return builder for the table specified */
Get a builder for the table type specified by the data in the header
getBuilder
{ "repo_name": "jaredrummler/sfntly", "path": "src/main/java/com/google/typography/font/sfntly/table/Table.java", "license": "apache-2.0", "size": 8890 }
[ "com.google.typography.font.sfntly.Tag", "com.google.typography.font.sfntly.data.WritableFontData", "com.google.typography.font.sfntly.table.bitmap.EbdtTable", "com.google.typography.font.sfntly.table.bitmap.EblcTable", "com.google.typography.font.sfntly.table.bitmap.EbscTable", "com.google.typography.fon...
import com.google.typography.font.sfntly.Tag; import com.google.typography.font.sfntly.data.WritableFontData; import com.google.typography.font.sfntly.table.bitmap.EbdtTable; import com.google.typography.font.sfntly.table.bitmap.EblcTable; import com.google.typography.font.sfntly.table.bitmap.EbscTable; import com.goog...
import com.google.typography.font.sfntly.*; import com.google.typography.font.sfntly.data.*; import com.google.typography.font.sfntly.table.bitmap.*; import com.google.typography.font.sfntly.table.core.*; import com.google.typography.font.sfntly.table.opentype.*; import com.google.typography.font.sfntly.table.truetype....
[ "com.google.typography" ]
com.google.typography;
1,248,194
private synchronized void choosePreferred() { for (Capability capability : Capability.values()) { Platform preferred = findMostPreferred(capability); if (preferred != null) { preferences.put(capability, preferred); capability.initialize(this, preferred...
synchronized void function() { for (Capability capability : Capability.values()) { Platform preferred = findMostPreferred(capability); if (preferred != null) { preferences.put(capability, preferred); capability.initialize(this, preferred); } } if (preferences.containsKey(Capability.CONFIGURATION) && configured.compareA...
/** * Choose preferred platforms and perform necessary initialization. */
Choose preferred platforms and perform necessary initialization
choosePreferred
{ "repo_name": "GitVictim/WorldEdit_wrecked_clone", "path": "worldedit-core/src/main/java/com/sk89q/worldedit/extension/platform/PlatformManager.java", "license": "gpl-3.0", "size": 18136 }
[ "com.sk89q.worldedit.event.platform.ConfigurationLoadEvent" ]
import com.sk89q.worldedit.event.platform.ConfigurationLoadEvent;
import com.sk89q.worldedit.event.platform.*;
[ "com.sk89q.worldedit" ]
com.sk89q.worldedit;
1,440,576
public final AlertDialog initiateScan(Collection<String> desiredBarcodeFormats) { return initiateScan(desiredBarcodeFormats, -1); }
final AlertDialog function(Collection<String> desiredBarcodeFormats) { return initiateScan(desiredBarcodeFormats, -1); }
/** * Initiates a scan, using the default camera, only for a certain set of barcode types, given as strings corresponding * to their names in ZXing's {@code BarcodeFormat} class like "UPC_A". You can supply constants * like {@link #PRODUCT_CODE_TYPES} for example. * * @param desiredBarcode...
Initiates a scan, using the default camera, only for a certain set of barcode types, given as strings corresponding to their names in ZXing's BarcodeFormat class like "UPC_A". You can supply constants like <code>#PRODUCT_CODE_TYPES</code> for example
initiateScan
{ "repo_name": "weichweich/AluShare", "path": "app/src/main/java/edu/kit/tm/pseprak2/alushare/presenter/IntentIntegrator.java", "license": "apache-2.0", "size": 20611 }
[ "android.app.AlertDialog", "java.util.Collection" ]
import android.app.AlertDialog; import java.util.Collection;
import android.app.*; import java.util.*;
[ "android.app", "java.util" ]
android.app; java.util;
1,005,337
public BootableJarCommandBuilder addSecurityProperties(final Map<String, String> properties) { securityProperties.putAll(properties); return this; }
BootableJarCommandBuilder function(final Map<String, String> properties) { securityProperties.putAll(properties); return this; }
/** * Adds all the security properties to be passed to the server. * * @param properties a map of the properties to add, {@code null} values are allowed in the map * * @return the builder */
Adds all the security properties to be passed to the server
addSecurityProperties
{ "repo_name": "luck3y/wildfly-core", "path": "launcher/src/main/java/org/wildfly/core/launcher/BootableJarCommandBuilder.java", "license": "lgpl-2.1", "size": 15976 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,423,615
Observable<ServiceResponse<Void>> getNegativeTenBillionWithServiceResponseAsync();
Observable<ServiceResponse<Void>> getNegativeTenBillionWithServiceResponseAsync();
/** * Get '-10000000000' 64 bit integer value. * * @return the {@link ServiceResponse} object if successful. */
Get '-10000000000' 64 bit integer value
getNegativeTenBillionWithServiceResponseAsync
{ "repo_name": "yugangw-msft/autorest", "path": "src/generator/AutoRest.Java.Tests/src/main/java/fixtures/url/Queries.java", "license": "mit", "size": 53223 }
[ "com.microsoft.rest.ServiceResponse" ]
import com.microsoft.rest.ServiceResponse;
import com.microsoft.rest.*;
[ "com.microsoft.rest" ]
com.microsoft.rest;
1,955,296
@Nonnull default Promise<Void> thenAcceptDelayedAsync(@Nonnull Consumer<? super V> action, long delay, @Nonnull TimeUnit unit) { return thenApplyDelayedAsync(Delegates.consumerToFunction(action), delay, unit); }
default Promise<Void> thenAcceptDelayedAsync(@Nonnull Consumer<? super V> action, long delay, @Nonnull TimeUnit unit) { return thenApplyDelayedAsync(Delegates.consumerToFunction(action), delay, unit); }
/** * Returns a new Promise that, when this promise completes normally, is * executed with this promise's result as the argument to the given * action, after the delay has elapsed. * * @param action the action to perform before completing the returned future * @param delay the delay *...
Returns a new Promise that, when this promise completes normally, is executed with this promise's result as the argument to the given action, after the delay has elapsed
thenAcceptDelayedAsync
{ "repo_name": "lucko/helper", "path": "helper/src/main/java/me/lucko/helper/promise/Promise.java", "license": "mit", "size": 55811 }
[ "java.util.concurrent.TimeUnit", "java.util.function.Consumer", "javax.annotation.Nonnull", "me.lucko.helper.utils.Delegates" ]
import java.util.concurrent.TimeUnit; import java.util.function.Consumer; import javax.annotation.Nonnull; import me.lucko.helper.utils.Delegates;
import java.util.concurrent.*; import java.util.function.*; import javax.annotation.*; import me.lucko.helper.utils.*;
[ "java.util", "javax.annotation", "me.lucko.helper" ]
java.util; javax.annotation; me.lucko.helper;
835,469
public void setFileName(String name) { Log_OC.d(TAG, "OCFile name changin from " + mRemotePath); if (name != null && name.length() > 0 && !name.contains(PATH_SEPARATOR) && !mRemotePath.equals(ROOT_PATH)) { String parent = (new File(getRemotePath())).getParent(); parent = (par...
void function(String name) { Log_OC.d(TAG, STR + mRemotePath); if (name != null && name.length() > 0 && !name.contains(PATH_SEPARATOR) && !mRemotePath.equals(ROOT_PATH)) { String parent = (new File(getRemotePath())).getParent(); parent = (parent.endsWith(PATH_SEPARATOR)) ? parent : parent + PATH_SEPARATOR; mRemotePath ...
/** * Sets the name of the file * <p/> * Does nothing if the new name is null, empty or includes "/" ; or if the file is the root directory */
Sets the name of the file Does nothing if the new name is null, empty or includes "/" ; or if the file is the root directory
setFileName
{ "repo_name": "Maysami/elenoon-drive", "path": "src/com/elenoondrive/android/datamodel/OCFile.java", "license": "gpl-2.0", "size": 15965 }
[ "java.io.File" ]
import java.io.File;
import java.io.*;
[ "java.io" ]
java.io;
895,252
return unify(x, y, new LinkedHashMap<Variable, Term>()); }
return unify(x, y, new LinkedHashMap<Variable, Term>()); }
/** * Returns a Map<Variable, Term> representing the substitution (i.e. a set * of variable/term pairs) or null which is used to indicate a failure to * unify. * * @param x * a variable, constant, list, or compound * @param y * a variable, constant, list, or compound * ...
Returns a Map representing the substitution (i.e. a set of variable/term pairs) or null which is used to indicate a failure to unify
unify
{ "repo_name": "aima-java/aima-java", "path": "aima-core/src/main/java/aima/core/logic/fol/Unifier.java", "license": "mit", "size": 8663 }
[ "java.util.LinkedHashMap" ]
import java.util.LinkedHashMap;
import java.util.*;
[ "java.util" ]
java.util;
1,079,028
public static FloatBuffer clone(FloatBuffer buf) { if (buf == null) { return null; } buf.rewind(); FloatBuffer copy; if (isDirect(buf)) { copy = createFloatBuffer(buf.limit()); } else { copy = FloatBuffer.allocate(buf.lim...
static FloatBuffer function(FloatBuffer buf) { if (buf == null) { return null; } buf.rewind(); FloatBuffer copy; if (isDirect(buf)) { copy = createFloatBuffer(buf.limit()); } else { copy = FloatBuffer.allocate(buf.limit()); } copy.put(buf); return copy; }
/** * Creates a new FloatBuffer with the same contents as the given * FloatBuffer. The new FloatBuffer is separate from the old one and changes * are not reflected across. If you want to reflect changes, consider using * Buffer.duplicate(). * * @param buf * the Float...
Creates a new FloatBuffer with the same contents as the given FloatBuffer. The new FloatBuffer is separate from the old one and changes are not reflected across. If you want to reflect changes, consider using Buffer.duplicate()
clone
{ "repo_name": "zzuegg/jmonkeyengine", "path": "jme3-core/src/main/java/com/jme3/util/BufferUtils.java", "license": "bsd-3-clause", "size": 46413 }
[ "java.nio.FloatBuffer" ]
import java.nio.FloatBuffer;
import java.nio.*;
[ "java.nio" ]
java.nio;
2,546,713
public void setMembers(MembershipStatus members) { this.members = members; }
void function(MembershipStatus members) { this.members = members; }
/** * Changes the membership status of this player. * * @param members The new membership flag. */
Changes the membership status of this player
setMembers
{ "repo_name": "Major-/apollo", "path": "game/src/main/org/apollo/game/model/entity/Player.java", "license": "isc", "size": 24470 }
[ "org.apollo.game.model.entity.setting.MembershipStatus" ]
import org.apollo.game.model.entity.setting.MembershipStatus;
import org.apollo.game.model.entity.setting.*;
[ "org.apollo.game" ]
org.apollo.game;
1,986,336
public static void doMajorCompaction(Connection conn, String tableName) throws Exception { tableName = SchemaUtil.normalizeIdentifier(tableName); // We simply write a marker row, request a major compaction, and then wait until the marker // row is gone PhoenixConnection pco...
static void function(Connection conn, String tableName) throws Exception { tableName = SchemaUtil.normalizeIdentifier(tableName); PhoenixConnection pconn = conn.unwrap(PhoenixConnection.class); PTable table = pconn.getTable(new PTableKey(pconn.getTenantId(), tableName)); ConnectionQueryServices services = conn.unwrap(P...
/** * Runs a major compaction, and then waits until the compaction is complete before returning. * * @param tableName name of the table to be compacted */
Runs a major compaction, and then waits until the compaction is complete before returning
doMajorCompaction
{ "repo_name": "apurtell/phoenix", "path": "phoenix-core/src/test/java/org/apache/phoenix/util/TestUtil.java", "license": "apache-2.0", "size": 60158 }
[ "com.google.common.collect.Lists", "java.sql.Connection", "java.util.List", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.client.Admin", "org.apache.hadoop.hbase.client.Delete", "org.apache.hadoop.hbase.client.Put", "org.apache.hadoop.hbase.client.Result", "org.apache.hadoop.hbase.cl...
import com.google.common.collect.Lists; import java.sql.Connection; import java.util.List; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Admin; import org.apache.hadoop.hbase.client.Delete; import org.apache.hadoop.hbase.client.Put; import org.apache.hadoop.hbase.client.Result; import ...
import com.google.common.collect.*; import java.sql.*; import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.util.*; import org.apache.phoenix.execute.*; import org.apache.phoenix.jdbc.*; import org.apache.phoenix.query.*; import org.apache.phoenix...
[ "com.google.common", "java.sql", "java.util", "org.apache.hadoop", "org.apache.phoenix" ]
com.google.common; java.sql; java.util; org.apache.hadoop; org.apache.phoenix;
827,391
public static void deleteTableRecord(SemGui semGui) { if (GuiUtils.showConfirmDialog("Confermi l'eliminazione delle righe selezionate?", "Conferma")) { DefaultTableModel model = (DefaultTableModel) semGui.getTable().getModel(); int[] rows = semGui.getTable().getSelectedRows(); ...
static void function(SemGui semGui) { if (GuiUtils.showConfirmDialog(STR, STR)) { DefaultTableModel model = (DefaultTableModel) semGui.getTable().getModel(); int[] rows = semGui.getTable().getSelectedRows(); TableTreeNode node = (TableTreeNode) semGui.getModelEditor().getCurrentNode(); if (node != null) { for (int i = ...
/** * Gestisce la cancellazione di un record * * @param semGui frame */
Gestisce la cancellazione di un record
deleteTableRecord
{ "repo_name": "fiohol/theSemProject", "path": "openSem/src/main/java/org/thesemproject/opensem/gui/utils/TablesUtils.java", "license": "apache-2.0", "size": 6913 }
[ "javax.swing.table.DefaultTableModel", "org.thesemproject.opensem.gui.SemGui", "org.thesemproject.opensem.gui.modelEditor.TableTreeNode" ]
import javax.swing.table.DefaultTableModel; import org.thesemproject.opensem.gui.SemGui; import org.thesemproject.opensem.gui.modelEditor.TableTreeNode;
import javax.swing.table.*; import org.thesemproject.opensem.gui.*;
[ "javax.swing", "org.thesemproject.opensem" ]
javax.swing; org.thesemproject.opensem;
2,084,306
@Test public void checkLoadingFromGetPot() { // Local Declarations String separator = System.getProperty("file.separator"); String userDir = System.getProperty("user.home") + separator + "ICETests" + separator + "itemData"; String refFilePath = userDir + separator + "bison_short.input.ref"; String ou...
void function() { String separator = System.getProperty(STR); String userDir = System.getProperty(STR) + separator + STR + separator + STR; String refFilePath = userDir + separator + STR; String outFilePath = userDir + separator + STR; System.setProperty(STR, "on"); MOOSEFileHandler handler = new MOOSEFileHandler(); Ar...
/** * This operation checks the MOOSEFileHandler to make sure that it can load * a MOOSE GetPot file into a TreeComposite. */
This operation checks the MOOSEFileHandler to make sure that it can load a MOOSE GetPot file into a TreeComposite
checkLoadingFromGetPot
{ "repo_name": "gorindn/ice", "path": "tests/org.eclipse.ice.item.test/src/org/eclipse/ice/item/test/moose/MOOSEFileHandlerTester.java", "license": "epl-1.0", "size": 14532 }
[ "java.io.File", "java.io.IOException", "java.io.RandomAccessFile", "java.util.ArrayList", "org.eclipse.ice.datastructures.form.TreeComposite", "org.eclipse.ice.item.utilities.moose.MOOSEFileHandler", "org.junit.Assert" ]
import java.io.File; import java.io.IOException; import java.io.RandomAccessFile; import java.util.ArrayList; import org.eclipse.ice.datastructures.form.TreeComposite; import org.eclipse.ice.item.utilities.moose.MOOSEFileHandler; import org.junit.Assert;
import java.io.*; import java.util.*; import org.eclipse.ice.datastructures.form.*; import org.eclipse.ice.item.utilities.moose.*; import org.junit.*;
[ "java.io", "java.util", "org.eclipse.ice", "org.junit" ]
java.io; java.util; org.eclipse.ice; org.junit;
2,474,558
public static void setupWorkDir(JobConf conf, File workDir) throws IOException { LOG.debug("Fully deleting and re-creating" + workDir); FileUtil.fullyDelete(workDir); if (!workDir.mkdir()) { LOG.debug("Did not recreate " + workDir); } if (DistributedCache.getSymlink(conf)) { URI[]...
static void function(JobConf conf, File workDir) throws IOException { LOG.debug(STR + workDir); FileUtil.fullyDelete(workDir); if (!workDir.mkdir()) { LOG.debug(STR + workDir); } if (DistributedCache.getSymlink(conf)) { URI[] archives = DistributedCache.getCacheArchives(conf); URI[] files = DistributedCache.getCacheFil...
/** * Creates distributed cache symlinks and tmp directory, as appropriate. * Note that when we setup the distributed * cache, we didn't create the symlinks. This is done on a per task basis * by the currently executing task. * * @param conf The job configuration. * @param workDir Working director...
Creates distributed cache symlinks and tmp directory, as appropriate. Note that when we setup the distributed cache, we didn't create the symlinks. This is done on a per task basis by the currently executing task
setupWorkDir
{ "repo_name": "apache/hadoop-mapreduce", "path": "src/java/org/apache/hadoop/mapred/TaskRunner.java", "license": "apache-2.0", "size": 26453 }
[ "java.io.File", "java.io.IOException", "org.apache.hadoop.fs.FileUtil", "org.apache.hadoop.fs.Path", "org.apache.hadoop.mapreduce.filecache.DistributedCache", "org.apache.hadoop.mapreduce.filecache.TrackerDistributedCacheManager", "org.apache.hadoop.util.StringUtils" ]
import java.io.File; import java.io.IOException; import org.apache.hadoop.fs.FileUtil; import org.apache.hadoop.fs.Path; import org.apache.hadoop.mapreduce.filecache.DistributedCache; import org.apache.hadoop.mapreduce.filecache.TrackerDistributedCacheManager; import org.apache.hadoop.util.StringUtils;
import java.io.*; import org.apache.hadoop.fs.*; import org.apache.hadoop.mapreduce.filecache.*; import org.apache.hadoop.util.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
2,695,528
private boolean maybePerformEmptyCompositionWorkaround(CharSequence text) { int selectionStart = Selection.getSelectionStart(mEditable); int selectionEnd = Selection.getSelectionEnd(mEditable); int compositionStart = getComposingSpanStart(mEditable); int compositionEnd = getComposing...
boolean function(CharSequence text) { int selectionStart = Selection.getSelectionStart(mEditable); int selectionEnd = Selection.getSelectionEnd(mEditable); int compositionStart = getComposingSpanStart(mEditable); int compositionEnd = getComposingSpanEnd(mEditable); if (TextUtils.isEmpty(text) && (selectionStart == sele...
/** * This method works around the issue crbug.com/373934 where Blink does not cancel * the composition when we send a commit with the empty text. * * TODO(aurimas) Remove this once crbug.com/373934 is fixed. * * @param text Text that software keyboard requested to commit. * @return W...
This method works around the issue crbug.com/373934 where Blink does not cancel the composition when we send a commit with the empty text. TODO(aurimas) Remove this once crbug.com/373934 is fixed
maybePerformEmptyCompositionWorkaround
{ "repo_name": "PeterWangIntel/chromium-crosswalk", "path": "content/public/android/java/src/org/chromium/content/browser/input/AdapterInputConnection.java", "license": "bsd-3-clause", "size": 27345 }
[ "android.text.Selection", "android.text.TextUtils" ]
import android.text.Selection; import android.text.TextUtils;
import android.text.*;
[ "android.text" ]
android.text;
1,285,757
private ClusterState.Builder randomMetaDataChanges(ClusterState clusterState) { MetaData metaData = clusterState.metaData(); int changesCount = randomIntBetween(1, 10); for (int i = 0; i < changesCount; i++) { switch (randomInt(3)) { case 0: me...
ClusterState.Builder function(ClusterState clusterState) { MetaData metaData = clusterState.metaData(); int changesCount = randomIntBetween(1, 10); for (int i = 0; i < changesCount; i++) { switch (randomInt(3)) { case 0: metaData = randomMetaDataSettings(metaData); break; case 1: metaData = randomIndices(metaData); bre...
/** * Makes random metadata changes */
Makes random metadata changes
randomMetaDataChanges
{ "repo_name": "mapr/elasticsearch", "path": "core/src/test/java/org/elasticsearch/cluster/ClusterStateDiffIT.java", "license": "apache-2.0", "size": 30452 }
[ "org.elasticsearch.cluster.metadata.MetaData" ]
import org.elasticsearch.cluster.metadata.MetaData;
import org.elasticsearch.cluster.metadata.*;
[ "org.elasticsearch.cluster" ]
org.elasticsearch.cluster;
2,822,981
public void setEltGroupName(String eltGroupName, FrameElementGroup eltGrp) throws DuplicateNameException { String oldName = eltGrp.getName(); if ((oldName == null) || ! oldName.equals(eltGroupName)) { // Check whether the requested name is already in use if (getE...
void function(String eltGroupName, FrameElementGroup eltGrp) throws DuplicateNameException { String oldName = eltGrp.getName(); if ((oldName == null) ! oldName.equals(eltGroupName)) { if (getEltGroup(eltGroupName) != null) { throw new DuplicateNameException(); } eltGrp.setName(eltGroupName); } }
/** * Set the name of an element group, throws a duplicate name exception if * the name is already used. */
Set the name of an element group, throws a duplicate name exception if the name is already used
setEltGroupName
{ "repo_name": "cogtool/cogtool", "path": "java/edu/cmu/cs/hcii/cogtool/model/Frame.java", "license": "lgpl-2.1", "size": 61387 }
[ "edu.cmu.cs.hcii.cogtool.util.DuplicateNameException" ]
import edu.cmu.cs.hcii.cogtool.util.DuplicateNameException;
import edu.cmu.cs.hcii.cogtool.util.*;
[ "edu.cmu.cs" ]
edu.cmu.cs;
1,738,778
@Override public Object get(String key) { Bindings bindings = getBindings(ScriptContext.ENGINE_SCOPE); if (bindings != null) { return bindings.get(key); } return null; }
Object function(String key) { Bindings bindings = getBindings(ScriptContext.ENGINE_SCOPE); if (bindings != null) { return bindings.get(key); } return null; }
/** * Gets the value for the specified key in the <code>ENGINE_SCOPE</code> of * the protected <code>context</code> field. * * @return The value for the specified key. * * @throws NullPointerException * if key is null. * @throws IllegalArgumentException * if key is empty. */
Gets the value for the specified key in the <code>ENGINE_SCOPE</code> of the protected <code>context</code> field
get
{ "repo_name": "JEBailey/kasper", "path": "kasper/core/src/main/java/org/_24601/kasper/scripting/KasperScriptEngine.java", "license": "apache-2.0", "size": 5962 }
[ "javax.script.Bindings", "javax.script.ScriptContext" ]
import javax.script.Bindings; import javax.script.ScriptContext;
import javax.script.*;
[ "javax.script" ]
javax.script;
1,009,511
public UniversityDateService getUniversityDateService() { return universityDateService; }
UniversityDateService function() { return universityDateService; }
/** * Gets the injected universityDateService. * * @return Returns the universityDateService. */
Gets the injected universityDateService
getUniversityDateService
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-ld/src/main/java/org/kuali/kfs/module/ld/document/service/impl/SalaryExpenseTransferTransactionAgeServiceImpl.java", "license": "agpl-3.0", "size": 7769 }
[ "org.kuali.kfs.sys.service.UniversityDateService" ]
import org.kuali.kfs.sys.service.UniversityDateService;
import org.kuali.kfs.sys.service.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
1,209,448
public StringProperty getName() { return this.name; }
StringProperty function() { return this.name; }
/** * The image name * * @return the StringProperty. */
The image name
getName
{ "repo_name": "NABUCCO/org.nabucco.framework.base", "path": "org.nabucco.framework.base.facade.datatype/src/main/gen/org/nabucco/framework/base/facade/datatype/extension/schema/ui/widget/ImageWidgetExtension.java", "license": "epl-1.0", "size": 10327 }
[ "org.nabucco.framework.base.facade.datatype.extension.property.StringProperty" ]
import org.nabucco.framework.base.facade.datatype.extension.property.StringProperty;
import org.nabucco.framework.base.facade.datatype.extension.property.*;
[ "org.nabucco.framework" ]
org.nabucco.framework;
2,360,997
protected A_CmsPropertyEditor createEntryEditor( I_CmsPropertyEditorHandler handler, Map<String, CmsXmlContentProperty> propConfig) { if (CmsSitemapView.getInstance().isNavigationMode()) { return new CmsNavModePropertyEditor(propConfig, handler); } else { boo...
A_CmsPropertyEditor function( I_CmsPropertyEditorHandler handler, Map<String, CmsXmlContentProperty> propConfig) { if (CmsSitemapView.getInstance().isNavigationMode()) { return new CmsNavModePropertyEditor(propConfig, handler); } else { boolean isFolder = handler.isFolder(); CmsVfsModePropertyEditor result = new CmsVfs...
/** * Creates the right sitemap entry editor for the current mode.<p> * * @param handler the entry editor handler * @param propConfig the property configuration to use * * @return a sitemap entry editor instance */
Creates the right sitemap entry editor for the current mode
createEntryEditor
{ "repo_name": "victos/opencms-core", "path": "src-gwt/org/opencms/ade/sitemap/client/hoverbar/CmsEditMenuEntry.java", "license": "lgpl-2.1", "size": 8555 }
[ "java.util.Map", "org.opencms.ade.sitemap.client.CmsSitemapView", "org.opencms.ade.sitemap.client.edit.CmsNavModePropertyEditor", "org.opencms.gwt.client.property.CmsVfsModePropertyEditor", "org.opencms.xml.content.CmsXmlContentProperty" ]
import java.util.Map; import org.opencms.ade.sitemap.client.CmsSitemapView; import org.opencms.ade.sitemap.client.edit.CmsNavModePropertyEditor; import org.opencms.gwt.client.property.CmsVfsModePropertyEditor; import org.opencms.xml.content.CmsXmlContentProperty;
import java.util.*; import org.opencms.ade.sitemap.client.*; import org.opencms.ade.sitemap.client.edit.*; import org.opencms.gwt.client.property.*; import org.opencms.xml.content.*;
[ "java.util", "org.opencms.ade", "org.opencms.gwt", "org.opencms.xml" ]
java.util; org.opencms.ade; org.opencms.gwt; org.opencms.xml;
1,173,345
public void addLifecycleListener(LifecycleListener listener) { lifecycle.addLifecycleListener(listener); }
void function(LifecycleListener listener) { lifecycle.addLifecycleListener(listener); }
/** * Add a LifecycleEvent listener to this component. * * @param listener The listener to add */
Add a LifecycleEvent listener to this component
addLifecycleListener
{ "repo_name": "benothman/jboss-web-nio2", "path": "java/org/apache/catalina/core/StandardThreadExecutor.java", "license": "lgpl-3.0", "size": 8842 }
[ "org.apache.catalina.LifecycleListener" ]
import org.apache.catalina.LifecycleListener;
import org.apache.catalina.*;
[ "org.apache.catalina" ]
org.apache.catalina;
477,048
@Uninterruptible public int findBytecodeIndexForInstruction(Offset instructionOffset) { int lg_istr_width; if (!this.isSubArchCompilation()) { lg_istr_width = ArchitectureSpecific.VM_BaselineConstants.LG_INSTRUCTION_WIDTH; } else { lg_istr_width = SubordinateArchitecture.VM_BaselineConstants.LG_INS...
int function(Offset instructionOffset) { int lg_istr_width; if (!this.isSubArchCompilation()) { lg_istr_width = ArchitectureSpecific.VM_BaselineConstants.LG_INSTRUCTION_WIDTH; } else { lg_istr_width = SubordinateArchitecture.VM_BaselineConstants.LG_INSTRUCTION_WIDTH; } Offset instructionIndex = instructionOffset.toWord...
/** * Find bytecode index corresponding to one of this method's * machine instructions. * * Note: This method expects the instructionIndex to refer to the machine * instruction immediately FOLLOWING the bytecode in question. * just like findLineNumberForInstruction. See VM_CompiledMeth...
Find bytecode index corresponding to one of this method's machine instructions. Note: This method expects the instructionIndex to refer to the machine instruction immediately FOLLOWING the bytecode in question. just like findLineNumberForInstruction. See VM_CompiledMethod for rationale all the other methods in this int...
findBytecodeIndexForInstruction
{ "repo_name": "rmcilroy/HeraJVM", "path": "rvm/src/org/jikesrvm/compilers/baseline/VM_BaselineCompiledMethod.java", "license": "epl-1.0", "size": 15206 }
[ "org.jikesrvm.ArchitectureSpecific", "org.jikesrvm.SubordinateArchitecture", "org.vmmagic.unboxed.Offset" ]
import org.jikesrvm.ArchitectureSpecific; import org.jikesrvm.SubordinateArchitecture; import org.vmmagic.unboxed.Offset;
import org.jikesrvm.*; import org.vmmagic.unboxed.*;
[ "org.jikesrvm", "org.vmmagic.unboxed" ]
org.jikesrvm; org.vmmagic.unboxed;
2,513,664
public Spanned getFormattedString() { return out; }
Spanned function() { return out; }
/** * Returns the output destination of the {@code Formatter}. * * @return the output destination of the {@code Formatter}. * @throws FormatterClosedException if the {@code Formatter} has been closed. */
Returns the output destination of the Formatter
getFormattedString
{ "repo_name": "tilal6991/HoloIRC", "path": "android/src/main/java/com/fusionx/lightirc/misc/Formatter.java", "license": "gpl-3.0", "size": 15010 }
[ "android.text.Spanned" ]
import android.text.Spanned;
import android.text.*;
[ "android.text" ]
android.text;
2,319,394
public Vector getSuitableTargets(EventSetDescriptor esd) { Class listenerClass = esd.getListenerType(); // class of the listener Vector targets = new Vector(); for (int i = 0; i < m_inputs.size(); i++) { BeanInstance input = (BeanInstance)m_inputs.elementAt(i); if (listenerClass.isInstance(inp...
Vector function(EventSetDescriptor esd) { Class listenerClass = esd.getListenerType(); Vector targets = new Vector(); for (int i = 0; i < m_inputs.size(); i++) { BeanInstance input = (BeanInstance)m_inputs.elementAt(i); if (listenerClass.isInstance(input.getBean())) { targets.add(input); } } return targets; }
/** * Return a list of input beans capable of receiving the * supplied event * * @param esd the event in question * @return a vector of beans capable of handling the event */
Return a list of input beans capable of receiving the supplied event
getSuitableTargets
{ "repo_name": "dsibournemouth/autoweka", "path": "weka-3.7.7/src/main/java/weka/gui/beans/MetaBean.java", "license": "gpl-3.0", "size": 20385 }
[ "java.beans.EventSetDescriptor", "java.util.Vector" ]
import java.beans.EventSetDescriptor; import java.util.Vector;
import java.beans.*; import java.util.*;
[ "java.beans", "java.util" ]
java.beans; java.util;
1,789,036
public void paintComponent(Graphics g, int width, int height){ int imghei = (int)(RELHEIGHT * height); int imgwid = (int)(RELHEIGHT * width); int leftSpot = (int)(width * LEFTBOUND); int rightSpot = (int)(width*(timeRat*RIGHTBOUND + (1-timeRat)*LEFTBOUND)); Graphics2D g2 = (Graphics2D)g; //print the back...
void function(Graphics g, int width, int height){ int imghei = (int)(RELHEIGHT * height); int imgwid = (int)(RELHEIGHT * width); int leftSpot = (int)(width * LEFTBOUND); int rightSpot = (int)(width*(timeRat*RIGHTBOUND + (1-timeRat)*LEFTBOUND)); Graphics2D g2 = (Graphics2D)g; g2.drawImage(background, 0, 0, width, imghei...
/** * This will paint the keyboard. * @param g The drawing surface. * @param width The width of the drawable surface. * @param height The height of the drawable surface. */
This will paint the keyboard
paintComponent
{ "repo_name": "CAAGE/4wayve", "path": "TimerDisplay.java", "license": "lgpl-3.0", "size": 2195 }
[ "java.awt.Graphics", "java.awt.Graphics2D" ]
import java.awt.Graphics; import java.awt.Graphics2D;
import java.awt.*;
[ "java.awt" ]
java.awt;
2,285,146
public ResponseParser getParser() { if (this.isJson()) { return new JsonResponseParser(); } else if (this.isXml()) { return new XmlResponseParser(); } throw new UnsupportedOperationException(this.contentType + " not a supported content type"); }
ResponseParser function() { if (this.isJson()) { return new JsonResponseParser(); } else if (this.isXml()) { return new XmlResponseParser(); } throw new UnsupportedOperationException(this.contentType + STR); }
/** * Get an appropriate response parser for this response type * * @return a response parser capable of parsing this response body. */
Get an appropriate response parser for this response type
getParser
{ "repo_name": "Forestvap/Twilio-Project", "path": "twilio-java/src/main/java/com/twilio/sdk/TwilioRestResponse.java", "license": "mit", "size": 6026 }
[ "com.twilio.sdk.parser.JsonResponseParser", "com.twilio.sdk.parser.ResponseParser", "com.twilio.sdk.parser.XmlResponseParser" ]
import com.twilio.sdk.parser.JsonResponseParser; import com.twilio.sdk.parser.ResponseParser; import com.twilio.sdk.parser.XmlResponseParser;
import com.twilio.sdk.parser.*;
[ "com.twilio.sdk" ]
com.twilio.sdk;
2,907,089
public static void registerFuel(Block block, int duration) { registerFuel(new ItemStack(block, 1, ItemStackDictionary.WILDCARD_METADATA), duration); }
static void function(Block block, int duration) { registerFuel(new ItemStack(block, 1, ItemStackDictionary.WILDCARD_METADATA), duration); }
/** * Registers a block as a fuel. * * @param block the block * @param duration the fuel's burn time duration (in ticks) */
Registers a block as a fuel
registerFuel
{ "repo_name": "Strikingwolf/OpenModLoader", "path": "src/main/java/xyz/openmodloader/registry/GameRegistry.java", "license": "mit", "size": 9883 }
[ "net.minecraft.block.Block", "net.minecraft.item.ItemStack", "xyz.openmodloader.dictionary.ItemStackDictionary" ]
import net.minecraft.block.Block; import net.minecraft.item.ItemStack; import xyz.openmodloader.dictionary.ItemStackDictionary;
import net.minecraft.block.*; import net.minecraft.item.*; import xyz.openmodloader.dictionary.*;
[ "net.minecraft.block", "net.minecraft.item", "xyz.openmodloader.dictionary" ]
net.minecraft.block; net.minecraft.item; xyz.openmodloader.dictionary;
5,337
Locale getLocale();
Locale getLocale();
/** * <p>Get the locale used by this parser.</p> * * @return the locale */
Get the locale used by this parser
getLocale
{ "repo_name": "luizperes/TStepProject", "path": "app/src/main/java/org/telegram/android/time/DateParser.java", "license": "gpl-2.0", "size": 3702 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
1,389,637
PvmProcessDefinition processDefinition = new ProcessDefinitionBuilder() .createActivity("start") .initial() .behavior(new Automatic()) .transition("embeddedsubprocess") .endActivity() .createActivity("embeddedsubprocess") .scope() .behavior(new EmbeddedSubProces...
PvmProcessDefinition processDefinition = new ProcessDefinitionBuilder() .createActivity("start") .initial() .behavior(new Automatic()) .transition(STR) .endActivity() .createActivity(STR) .scope() .behavior(new EmbeddedSubProcess()) .createActivity(STR) .behavior(new Automatic()) .transition(STR) .endActivity() .create...
/** * +------------------------------+ * | embedded subprocess | * +-----+ | +-----------+ +---------+ | +---+ * |start|-->| |startInside|-->|endInside| |-->|end| * +-----+ | +-----------+ +---------+ | +---+ * +------------------------------+ ...
+------------------------------+ | embedded subprocess | +-----+ | +-----------+ +---------+ | +---+ |start|-->| |startInside|-->|endInside| |-->|end| +-----+ | +-----------+ +---------+ | +---+ +------------------------------+
testEmbeddedSubProcess
{ "repo_name": "motorina0/flowable-engine", "path": "modules/flowable5-test/src/test/java/org/activiti/engine/test/pvm/PvmEmbeddedSubProcessTest.java", "license": "apache-2.0", "size": 13496 }
[ "java.util.ArrayList", "java.util.List", "org.activiti.engine.impl.pvm.ProcessDefinitionBuilder", "org.activiti.engine.impl.pvm.PvmProcessDefinition", "org.activiti.engine.impl.pvm.PvmProcessInstance", "org.activiti.engine.test.pvm.activities.Automatic", "org.activiti.engine.test.pvm.activities.Embedded...
import java.util.ArrayList; import java.util.List; import org.activiti.engine.impl.pvm.ProcessDefinitionBuilder; import org.activiti.engine.impl.pvm.PvmProcessDefinition; import org.activiti.engine.impl.pvm.PvmProcessInstance; import org.activiti.engine.test.pvm.activities.Automatic; import org.activiti.engine.test.pvm...
import java.util.*; import org.activiti.engine.impl.pvm.*; import org.activiti.engine.test.pvm.activities.*;
[ "java.util", "org.activiti.engine" ]
java.util; org.activiti.engine;
688,557
private void checkThisValueSequence(final CompilationTimeStamp timestamp, final Sequence_Value value, final Expected_Value_type expectedValue, final boolean incompleteAllowed, final boolean implicitOmit, final boolean strElem) { Map<String, NamedValue> componentMap = new HashMap<String, NamedValue>(); boolean...
void function(final CompilationTimeStamp timestamp, final Sequence_Value value, final Expected_Value_type expectedValue, final boolean incompleteAllowed, final boolean implicitOmit, final boolean strElem) { Map<String, NamedValue> componentMap = new HashMap<String, NamedValue>(); boolean inSnyc = true; final int nofTyp...
/** * Checks the Sequence_Value kind value against this type. * <p> * Please note, that this function can only be called once we know for sure * that the value is of sequence type. * * @param timestamp the timestamp of the actual semantic check cycle. * @param value the value to be checked * @param expe...
Checks the Sequence_Value kind value against this type. Please note, that this function can only be called once we know for sure that the value is of sequence type
checkThisValueSequence
{ "repo_name": "alovassy/titan.EclipsePlug-ins", "path": "org.eclipse.titan.designer/src/org/eclipse/titan/designer/AST/TTCN3/types/Signature_Type.java", "license": "epl-1.0", "size": 24329 }
[ "java.text.MessageFormat", "java.util.HashMap", "java.util.Map", "org.eclipse.titan.designer.AST", "org.eclipse.titan.designer.parsers.CompilationTimeStamp" ]
import java.text.MessageFormat; import java.util.HashMap; import java.util.Map; import org.eclipse.titan.designer.AST; import org.eclipse.titan.designer.parsers.CompilationTimeStamp;
import java.text.*; import java.util.*; import org.eclipse.titan.designer.*; import org.eclipse.titan.designer.parsers.*;
[ "java.text", "java.util", "org.eclipse.titan" ]
java.text; java.util; org.eclipse.titan;
2,895,534
@Override public HelpCtx getHelpCtx() { return HelpCtx.DEFAULT_HELP; }
HelpCtx function() { return HelpCtx.DEFAULT_HELP; }
/** * Gets the HelpCtx associated with implementing object * * @return HelpCtx or HelpCtx.DEFAULT_HELP */
Gets the HelpCtx associated with implementing object
getHelpCtx
{ "repo_name": "eXcomm/autopsy", "path": "Core/src/org/sleuthkit/autopsy/ingest/RunIngestAction.java", "license": "apache-2.0", "size": 2698 }
[ "org.openide.util.HelpCtx" ]
import org.openide.util.HelpCtx;
import org.openide.util.*;
[ "org.openide.util" ]
org.openide.util;
1,860,626
@Nullable public Pair<TextRange, String> getExpressionAtOffset(@NotNull Project project, @NotNull Document document, int offset, boolean sideEffectsAllowed) { TextRange range = getExpressionRangeAtOffset(project, document, offset, sideEffectsAllowed); if (range == null) { return null; } else {...
Pair<TextRange, String> function(@NotNull Project project, @NotNull Document document, int offset, boolean sideEffectsAllowed) { TextRange range = getExpressionRangeAtOffset(project, document, offset, sideEffectsAllowed); if (range == null) { return null; } else { return Pair.create(range, null); } }
/** * Return text range of expression which can be evaluated. * * @param project project * @param document document * @param offset offset * @param sideEffectsAllowed if this parameter is false, the expression should not have any side effects when evaluated * ...
Return text range of expression which can be evaluated
getExpressionAtOffset
{ "repo_name": "IllusionRom-deprecated/android_platform_tools_idea", "path": "platform/xdebugger-api/src/com/intellij/xdebugger/evaluation/XDebuggerEvaluator.java", "license": "apache-2.0", "size": 5520 }
[ "com.intellij.openapi.editor.Document", "com.intellij.openapi.project.Project", "com.intellij.openapi.util.Pair", "com.intellij.openapi.util.TextRange", "org.jetbrains.annotations.NotNull" ]
import com.intellij.openapi.editor.Document; import com.intellij.openapi.project.Project; import com.intellij.openapi.util.Pair; import com.intellij.openapi.util.TextRange; import org.jetbrains.annotations.NotNull;
import com.intellij.openapi.editor.*; import com.intellij.openapi.project.*; import com.intellij.openapi.util.*; import org.jetbrains.annotations.*;
[ "com.intellij.openapi", "org.jetbrains.annotations" ]
com.intellij.openapi; org.jetbrains.annotations;
2,564,858
public boolean addOrder(T element) { if (this.size() == 0) { super.add(0, element); } else { int index = Collections.binarySearch(this, element, this.comparator); if (index < 0) { index = -(index + 1); } super.add(index, ele...
boolean function(T element) { if (this.size() == 0) { super.add(0, element); } else { int index = Collections.binarySearch(this, element, this.comparator); if (index < 0) { index = -(index + 1); } super.add(index, element); } return true; }
/** * This method adds the element into the list in its sorted position. * * @param <T> element The element to be added. * @return true if the element is added successfully. */
This method adds the element into the list in its sorted position
addOrder
{ "repo_name": "CS2103TAug2014-W15-4J/main", "path": "src/model/SortedArrayList.java", "license": "mit", "size": 3666 }
[ "java.util.Collections" ]
import java.util.Collections;
import java.util.*;
[ "java.util" ]
java.util;
2,856,249
public void hiddenTestOWLLoop() { Model data = FileManager.get().loadModel("file:testing/reasoners/bugs/loop.owl"); InfModel infmodel = ModelFactory.createInfModel(ReasonerRegistry.getOWLReasoner(), data); ((FBRuleInfGraph)infmodel.getGraph()).setTraceOn(true); String baseURI = "http...
void function() { Model data = FileManager.get().loadModel(STR); InfModel infmodel = ModelFactory.createInfModel(ReasonerRegistry.getOWLReasoner(), data); ((FBRuleInfGraph)infmodel.getGraph()).setTraceOn(true); String baseURI = STRCSTRiSTRRSTRCheck that the instance does have an R propertySTR - STRAnd that the type of ...
/** * Test looping on recursive someValuesFrom. */
Test looping on recursive someValuesFrom
hiddenTestOWLLoop
{ "repo_name": "danc86/jena-core", "path": "src/test/java/com/hp/hpl/jena/reasoner/rulesys/test/TestOWLMisc.java", "license": "apache-2.0", "size": 12148 }
[ "com.hp.hpl.jena.rdf.model.InfModel", "com.hp.hpl.jena.rdf.model.Model", "com.hp.hpl.jena.rdf.model.ModelFactory", "com.hp.hpl.jena.reasoner.ReasonerRegistry", "com.hp.hpl.jena.reasoner.rulesys.FBRuleInfGraph", "com.hp.hpl.jena.util.FileManager" ]
import com.hp.hpl.jena.rdf.model.InfModel; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory; import com.hp.hpl.jena.reasoner.ReasonerRegistry; import com.hp.hpl.jena.reasoner.rulesys.FBRuleInfGraph; import com.hp.hpl.jena.util.FileManager;
import com.hp.hpl.jena.rdf.model.*; import com.hp.hpl.jena.reasoner.*; import com.hp.hpl.jena.reasoner.rulesys.*; import com.hp.hpl.jena.util.*;
[ "com.hp.hpl" ]
com.hp.hpl;
2,439,460
public void readData(DataInputStream input) throws IOException;
void function(DataInputStream input) throws IOException;
/** * Reads the data from an input stream into member variables. * * The number of bytes read must be equal to the result of {@link #getNumBytes()}. * @param input stream to read from * @throws IOException */
Reads the data from an input stream into member variables. The number of bytes read must be equal to the result of <code>#getNumBytes()</code>
readData
{ "repo_name": "Sleaker/SpoutPluginAPI", "path": "src/org/getspout/spoutapi/packet/SpoutPacket.java", "license": "lgpl-3.0", "size": 2837 }
[ "java.io.DataInputStream", "java.io.IOException" ]
import java.io.DataInputStream; import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
2,392,547
public void process(CommandLine cl) throws Exception; } public static class HelpCommand implements ClientCommand { HashMap<String, ClientCommand> _commands; public HelpCommand(HashMap<String, ClientCommand> commands) { _commands = commands; }
void function(CommandLine cl) throws Exception; } public static class HelpCommand implements ClientCommand { HashMap<String, ClientCommand> _commands; public HelpCommand(HashMap<String, ClientCommand> commands) { _commands = commands; }
/** * Do the processing * @param cl the arguments to process * @param stormConf the storm configuration to use * @throws Exception on any error */
Do the processing
process
{ "repo_name": "edwardchor/jstorm", "path": "jstorm-on-yarn/src/main/java/com/alibaba/jstorm/yarn/Client.java", "license": "apache-2.0", "size": 4980 }
[ "java.util.HashMap", "org.apache.commons.cli.CommandLine" ]
import java.util.HashMap; import org.apache.commons.cli.CommandLine;
import java.util.*; import org.apache.commons.cli.*;
[ "java.util", "org.apache.commons" ]
java.util; org.apache.commons;
2,317,786
@GET @Path("{organizationId}/clients/{clientId}/versions/{version}/activity") @Produces(MediaType.APPLICATION_JSON) public SearchResultsBean<AuditEntryBean> getClientVersionActivity( @PathParam("organizationId") String organizationId, @PathParam("clientId") String clientId, ...
@Path(STR) @Produces(MediaType.APPLICATION_JSON) SearchResultsBean<AuditEntryBean> function( @PathParam(STR) String organizationId, @PathParam(STR) String clientId, @PathParam(STR) String version, @QueryParam("page") int page, @QueryParam("count") int pageSize) throws ClientVersionNotFoundException, NotAuthorizedExcept...
/** * Use this endpoint to get audit activity information for a single version of the * Client. * @summary Get Client Version Activity * @param organizationId The Organization ID. * @param clientId The Client ID. * @param version The Client version. * @param page Which page of ...
Use this endpoint to get audit activity information for a single version of the Client
getClientVersionActivity
{ "repo_name": "jasonchaffee/apiman", "path": "manager/api/rest/src/main/java/io/apiman/manager/api/rest/contract/IOrganizationResource.java", "license": "apache-2.0", "size": 109599 }
[ "io.apiman.manager.api.beans.audit.AuditEntryBean", "io.apiman.manager.api.beans.search.SearchResultsBean", "io.apiman.manager.api.rest.contract.exceptions.ClientVersionNotFoundException", "io.apiman.manager.api.rest.contract.exceptions.NotAuthorizedException", "javax.ws.rs.Path", "javax.ws.rs.PathParam",...
import io.apiman.manager.api.beans.audit.AuditEntryBean; import io.apiman.manager.api.beans.search.SearchResultsBean; import io.apiman.manager.api.rest.contract.exceptions.ClientVersionNotFoundException; import io.apiman.manager.api.rest.contract.exceptions.NotAuthorizedException; import javax.ws.rs.Path; import javax....
import io.apiman.manager.api.beans.audit.*; import io.apiman.manager.api.beans.search.*; import io.apiman.manager.api.rest.contract.exceptions.*; import javax.ws.rs.*; import javax.ws.rs.core.*;
[ "io.apiman.manager", "javax.ws" ]
io.apiman.manager; javax.ws;
483,371
@Override public void sync(long position) throws IOException { seek(position); // work around an issue where 1.5.4 C stored sync in metadata if ((position == 0) && (getMeta("avro.sync") != null)) { initialize(sin); // re-init to skip header return; } try { ...
void function(long position) throws IOException { seek(position); if ((position == 0) && (getMeta(STR) != null)) { initialize(sin); return; } try { int i=0, b; InputStream in = vin.inputStream(); vin.readFixed(syncBuffer); do { int j = 0; for (; j < SYNC_SIZE; j++) { if (getHeader().sync[j] != syncBuffer[(i+j)%SYNC_SIZ...
/** Move to the next synchronization point after a position. To process a * range of file entires, call this with the starting position, then check * {@link #pastSync(long)} with the end point before each call to {@link * #next()}. */
Move to the next synchronization point after a position. To process a range of file entires, call this with the starting position, then check <code>#pastSync(long)</code> with the end point before each call to {@link
sync
{ "repo_name": "ecatmur/avro", "path": "lang/java/avro/src/main/java/org/apache/avro/file/DataFileReader.java", "license": "apache-2.0", "size": 7991 }
[ "java.io.EOFException", "java.io.IOException", "java.io.InputStream" ]
import java.io.EOFException; import java.io.IOException; import java.io.InputStream;
import java.io.*;
[ "java.io" ]
java.io;
844,507
@Nonnull public static String joinNameDomain(String username, @Nullable String domain) { Preconditions.checkNotNull(username); return (Strings.isNullOrEmpty(domain)) ? username : username + "@" + domain; }
static String function(String username, @Nullable String domain) { Preconditions.checkNotNull(username); return (Strings.isNullOrEmpty(domain)) ? username : username + "@" + domain; }
/** * Joins a username and domain into a string. * * @param username The username. * @param domain The domain, or {@code null} if none. * @return The combined username/domain string. */
Joins a username and domain into a string
joinNameDomain
{ "repo_name": "googlegsa/secmgr", "path": "src/main/java/com/google/enterprise/secmgr/common/IdentityUtil.java", "license": "apache-2.0", "size": 2445 }
[ "com.google.common.base.Preconditions", "com.google.common.base.Strings", "javax.annotation.Nullable" ]
import com.google.common.base.Preconditions; import com.google.common.base.Strings; import javax.annotation.Nullable;
import com.google.common.base.*; import javax.annotation.*;
[ "com.google.common", "javax.annotation" ]
com.google.common; javax.annotation;
471,942
@Override public Collection<? extends EStructuralFeature> getChildrenFeatures(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(XALPackage.eINSTANCE.getAdministrativeAreaType_AddressLine()); childrenFeatures.add(XALPackage.eINSTANCE.getAdministrative...
Collection<? extends EStructuralFeature> function(Object object) { if (childrenFeatures == null) { super.getChildrenFeatures(object); childrenFeatures.add(XALPackage.eINSTANCE.getAdministrativeAreaType_AddressLine()); childrenFeatures.add(XALPackage.eINSTANCE.getAdministrativeAreaType_AdministrativeAreaName()); childre...
/** * This specifies how to implement {@link #getChildren} and is used to deduce an appropriate feature for an * {@link org.eclipse.emf.edit.command.AddCommand}, {@link org.eclipse.emf.edit.command.RemoveCommand} or * {@link org.eclipse.emf.edit.command.MoveCommand} in {@link #createCommand}. * <!-- begin-user-...
This specifies how to implement <code>#getChildren</code> and is used to deduce an appropriate feature for an <code>org.eclipse.emf.edit.command.AddCommand</code>, <code>org.eclipse.emf.edit.command.RemoveCommand</code> or <code>org.eclipse.emf.edit.command.MoveCommand</code> in <code>#createCommand</code>.
getChildrenFeatures
{ "repo_name": "markus1978/citygml4emf", "path": "de.hub.citygml.emf.ecore.edit/src/org/oasis/xAL/provider/AdministrativeAreaTypeItemProvider.java", "license": "apache-2.0", "size": 233584 }
[ "java.util.Collection", "org.eclipse.emf.ecore.EStructuralFeature", "org.oasis.xAL.XALPackage" ]
import java.util.Collection; import org.eclipse.emf.ecore.EStructuralFeature; import org.oasis.xAL.XALPackage;
import java.util.*; import org.eclipse.emf.ecore.*; import org.oasis.*;
[ "java.util", "org.eclipse.emf", "org.oasis" ]
java.util; org.eclipse.emf; org.oasis;
2,414,716
void onInvalidation(K key, Store.ValueHolder<V> valueHolder); } @PluralService interface Provider extends Service {
void onInvalidation(K key, Store.ValueHolder<V> valueHolder); } interface Provider extends Service {
/** * Notification that a mapping was evicted or has expired. * * @param key the mapping's key * @param valueHolder the invalidated mapping's value holder */
Notification that a mapping was evicted or has expired
onInvalidation
{ "repo_name": "akomakom/ehcache3", "path": "core/src/main/java/org/ehcache/core/spi/store/tiering/CachingTier.java", "license": "apache-2.0", "size": 6055 }
[ "org.ehcache.core.spi.store.Store", "org.ehcache.spi.service.Service" ]
import org.ehcache.core.spi.store.Store; import org.ehcache.spi.service.Service;
import org.ehcache.core.spi.store.*; import org.ehcache.spi.service.*;
[ "org.ehcache.core", "org.ehcache.spi" ]
org.ehcache.core; org.ehcache.spi;
460,377
private PreparedStatement updateAtom(RandomVariableAtom atom) { RDBMSPredicateHandle ph = getHandle(atom.getPredicate()); PreparedStatement update = updateStatement.get(atom.getPredicate()); int sqlIndex = 1; Term[] arguments = atom.getArguments(); try { // Update the value for the atom update.set...
PreparedStatement function(RandomVariableAtom atom) { RDBMSPredicateHandle ph = getHandle(atom.getPredicate()); PreparedStatement update = updateStatement.get(atom.getPredicate()); int sqlIndex = 1; Term[] arguments = atom.getArguments(); try { update.setDouble(sqlIndex, atom.getValue()); sqlIndex ++; update.setDouble(...
/** * Helper method to fill in the fields of a PreparedStatement for an update * @param atom */
Helper method to fill in the fields of a PreparedStatement for an update
updateAtom
{ "repo_name": "JackSullivan/psl", "path": "psl-core/src/main/java/edu/umd/cs/psl/database/rdbms/RDBMSDatabase.java", "license": "apache-2.0", "size": 21998 }
[ "edu.umd.cs.psl.model.argument.Attribute", "edu.umd.cs.psl.model.argument.Term", "edu.umd.cs.psl.model.argument.UniqueID", "edu.umd.cs.psl.model.atom.RandomVariableAtom", "java.sql.PreparedStatement", "java.sql.SQLException" ]
import edu.umd.cs.psl.model.argument.Attribute; import edu.umd.cs.psl.model.argument.Term; import edu.umd.cs.psl.model.argument.UniqueID; import edu.umd.cs.psl.model.atom.RandomVariableAtom; import java.sql.PreparedStatement; import java.sql.SQLException;
import edu.umd.cs.psl.model.argument.*; import edu.umd.cs.psl.model.atom.*; import java.sql.*;
[ "edu.umd.cs", "java.sql" ]
edu.umd.cs; java.sql;
2,824,853
public void open() { show(); setVisible(true); moveToFront(); try { setSelected(true); setIcon(false); setMaximum(true); } catch (PropertyVetoException e) { e.printStackTrace(); } }
void function() { show(); setVisible(true); moveToFront(); try { setSelected(true); setIcon(false); setMaximum(true); } catch (PropertyVetoException e) { e.printStackTrace(); } }
/** * se abre la ventana centrada en la pantalla. */
se abre la ventana centrada en la pantalla
open
{ "repo_name": "iriber/miGestionSwing", "path": "src/main/java/com/migestion/swing/view/frames/GenericInternalFrameList.java", "license": "gpl-2.0", "size": 40711 }
[ "java.beans.PropertyVetoException" ]
import java.beans.PropertyVetoException;
import java.beans.*;
[ "java.beans" ]
java.beans;
1,155,315
@Generated @Deprecated @Selector("setAllowsAirPlayVideo:") public native void setAllowsAirPlayVideo(boolean value);
@Selector(STR) native void function(boolean value);
/** * Indicates whether the player allows AirPlay Video playback. The default value is YES. * This property is deprecated. Use AVPlayer's -allowsExternalPlayback instead. */
Indicates whether the player allows AirPlay Video playback. The default value is YES. This property is deprecated. Use AVPlayer's -allowsExternalPlayback instead
setAllowsAirPlayVideo
{ "repo_name": "multi-os-engine/moe-core", "path": "moe.apple/moe.platform.ios/src/main/java/apple/avfoundation/AVPlayer.java", "license": "apache-2.0", "size": 61892 }
[ "org.moe.natj.objc.ann.Selector" ]
import org.moe.natj.objc.ann.Selector;
import org.moe.natj.objc.ann.*;
[ "org.moe.natj" ]
org.moe.natj;
2,354,949
@ServiceMethod(returns = ReturnType.SINGLE) private Mono<PagedResponse<ResourceMetricDefinitionInner>> listMultiRoleMetricDefinitionsSinglePageAsync( String resourceGroupName, String name, Context context) { if (this.client.getEndpoint() == null) { return Mono .error(...
@ServiceMethod(returns = ReturnType.SINGLE) Mono<PagedResponse<ResourceMetricDefinitionInner>> function( String resourceGroupName, String name, Context context) { if (this.client.getEndpoint() == null) { return Mono .error( new IllegalArgumentException( STR)); } if (resourceGroupName == null) { return Mono .error(new I...
/** * Get metric definitions for a multi-role pool of an App Service Environment. * * @param resourceGroupName Name of the resource group to which the resource belongs. * @param name Name of the App Service Environment. * @param context The context to associate with this operation. * @thro...
Get metric definitions for a multi-role pool of an App Service Environment
listMultiRoleMetricDefinitionsSinglePageAsync
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanagerhybrid/azure-resourcemanager-appservice/src/main/java/com/azure/resourcemanager/appservice/implementation/AppServiceEnvironmentsClientImpl.java", "license": "mit", "size": 563770 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.PagedResponse", "com.azure.core.http.rest.PagedResponseBase", "com.azure.core.util.Context", "com.azure.resourcemanager.appservice.fluent.models.ResourceMetricDefinitionInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedResponse; import com.azure.core.http.rest.PagedResponseBase; import com.azure.core.util.Context; import com.azure.resourcemanager.appservice.fluent.models.ResourceMetricDefinitionInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.appservice.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
2,642,938
public static User retrieveMe() throws EasyPostException { return retrieveMe(null); }
static User function() throws EasyPostException { return retrieveMe(null); }
/** * Retrieve your User from the API. * * @return User object. * @throws EasyPostException when the request fails. */
Retrieve your User from the API
retrieveMe
{ "repo_name": "EasyPost/easypost-java", "path": "src/main/java/com/easypost/model/User.java", "license": "mit", "size": 10042 }
[ "com.easypost.exception.EasyPostException" ]
import com.easypost.exception.EasyPostException;
import com.easypost.exception.*;
[ "com.easypost.exception" ]
com.easypost.exception;
2,533,528
@ServiceMethod(returns = ReturnType.SINGLE) Response<ProximityPlacementGroupInner> getByResourceGroupWithResponse( String resourceGroupName, String proximityPlacementGroupName, String includeColocationStatus, Context context);
@ServiceMethod(returns = ReturnType.SINGLE) Response<ProximityPlacementGroupInner> getByResourceGroupWithResponse( String resourceGroupName, String proximityPlacementGroupName, String includeColocationStatus, Context context);
/** * Retrieves information about a proximity placement group . * * @param resourceGroupName The name of the resource group. * @param proximityPlacementGroupName The name of the proximity placement group. * @param includeColocationStatus includeColocationStatus=true enables fetching the colocat...
Retrieves information about a proximity placement group
getByResourceGroupWithResponse
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-compute/src/main/java/com/azure/resourcemanager/compute/fluent/ProximityPlacementGroupsClient.java", "license": "mit", "size": 20219 }
[ "com.azure.core.annotation.ReturnType", "com.azure.core.annotation.ServiceMethod", "com.azure.core.http.rest.Response", "com.azure.core.util.Context", "com.azure.resourcemanager.compute.fluent.models.ProximityPlacementGroupInner" ]
import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; import com.azure.resourcemanager.compute.fluent.models.ProximityPlacementGroupInner;
import com.azure.core.annotation.*; import com.azure.core.http.rest.*; import com.azure.core.util.*; import com.azure.resourcemanager.compute.fluent.models.*;
[ "com.azure.core", "com.azure.resourcemanager" ]
com.azure.core; com.azure.resourcemanager;
1,717,177
public static Test suite() { return new TestSuite(PeriodAxisTests.class); } public PeriodAxisTests(String name) { super(name); }
static Test function() { return new TestSuite(PeriodAxisTests.class); } public PeriodAxisTests(String name) { super(name); }
/** * Returns the tests as a test suite. * * @return The test suite. */
Returns the tests as a test suite
suite
{ "repo_name": "simeshev/parabuild-ci", "path": "3rdparty/jfreechart0921/source/org/jfree/chart/axis/junit/PeriodAxisTests.java", "license": "lgpl-3.0", "size": 5065 }
[ "junit.framework.Test", "junit.framework.TestSuite" ]
import junit.framework.Test; import junit.framework.TestSuite;
import junit.framework.*;
[ "junit.framework" ]
junit.framework;
1,094,734
public static <T> Bound withFunction( SerializableFunction<T, Iterable<DocWriteRequest<?>>> function) { return new Bound<T>().withFunction(function); }
static <T> Bound function( SerializableFunction<T, Iterable<DocWriteRequest<?>>> function) { return new Bound<T>().withFunction(function); }
/** * Returns a transform for writing to Elasticsearch cluster. * * @param function creates IndexRequest required by Elasticsearch client */
Returns a transform for writing to Elasticsearch cluster
withFunction
{ "repo_name": "regadas/scio", "path": "scio-elasticsearch/es7/src/main/java/org/apache/beam/sdk/io/elasticsearch/ElasticsearchIO.java", "license": "apache-2.0", "size": 20126 }
[ "org.apache.beam.sdk.transforms.SerializableFunction", "org.elasticsearch.action.DocWriteRequest" ]
import org.apache.beam.sdk.transforms.SerializableFunction; import org.elasticsearch.action.DocWriteRequest;
import org.apache.beam.sdk.transforms.*; import org.elasticsearch.action.*;
[ "org.apache.beam", "org.elasticsearch.action" ]
org.apache.beam; org.elasticsearch.action;
1,665,882
private BaseMediaChunk discardUpstreamMediaChunksFromIndex(int chunkIndex) { BaseMediaChunk firstRemovedChunk = mediaChunks.get(chunkIndex); Util.removeRange(mediaChunks, chunkIndex, mediaChunks.size()); nextNotifyPrimaryFormatMediaChunkIndex = Math.max(nextNotifyPrimaryFormatMediaChunkIndex, me...
BaseMediaChunk function(int chunkIndex) { BaseMediaChunk firstRemovedChunk = mediaChunks.get(chunkIndex); Util.removeRange(mediaChunks, chunkIndex, mediaChunks.size()); nextNotifyPrimaryFormatMediaChunkIndex = Math.max(nextNotifyPrimaryFormatMediaChunkIndex, mediaChunks.size()); primarySampleQueue.discardUpstreamSample...
/** * Discard upstream media chunks from {@code chunkIndex} and corresponding samples from sample * queues. * * @param chunkIndex The index of the first chunk to discard. * @return The chunk at given index. */
Discard upstream media chunks from chunkIndex and corresponding samples from sample queues
discardUpstreamMediaChunksFromIndex
{ "repo_name": "Jamesits/Moegram", "path": "TMessagesProj/src/main/java/com/google/android/exoplayer2/source/chunk/ChunkSampleStream.java", "license": "gpl-2.0", "size": 30242 }
[ "com.google.android.exoplayer2.source.SampleQueue", "com.google.android.exoplayer2.source.SampleStream", "com.google.android.exoplayer2.util.Util" ]
import com.google.android.exoplayer2.source.SampleQueue; import com.google.android.exoplayer2.source.SampleStream; import com.google.android.exoplayer2.util.Util;
import com.google.android.exoplayer2.source.*; import com.google.android.exoplayer2.util.*;
[ "com.google.android" ]
com.google.android;
1,446,049
public List<String> getCollections() { return collections; }
List<String> function() { return collections; }
/** * <p> * Getter for the field <code>collections</code>. * </p> * * @return a {@link java.util.List} object. */
Getter for the field <code>collections</code>.
getCollections
{ "repo_name": "intranda/goobi-viewer-core", "path": "goobi-viewer-core/src/main/java/io/goobi/viewer/model/viewer/DcSortingList.java", "license": "gpl-2.0", "size": 3875 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
541,687
@Override public Control cloneForSpatial(Spatial spatial) { ForceCharacterControl control = new ForceCharacterControl(collisionShape, stepHeight, forceDamping); control.setCcdMotionThreshold(getCcdMotionThreshold()); control.setCcdSweptSphereRadius(getCcdSweptSphereRadius()); control.setCollideWithGroups(ge...
Control function(Spatial spatial) { ForceCharacterControl control = new ForceCharacterControl(collisionShape, stepHeight, forceDamping); control.setCcdMotionThreshold(getCcdMotionThreshold()); control.setCcdSweptSphereRadius(getCcdSweptSphereRadius()); control.setCollideWithGroups(getCollideWithGroups()); control.setCo...
/** * Utility method for cloning this object to another Spatial. Useful for * controlling many Spatials with the same setup. * * @param spatial * The Spatial which will receive the newly created Control. * @return control The newly created Control, with the same field values as * this. ...
Utility method for cloning this object to another Spatial. Useful for controlling many Spatials with the same setup
cloneForSpatial
{ "repo_name": "GSam/Game-Project", "path": "src/world/ForceCharacterControl.java", "license": "bsd-3-clause", "size": 16242 }
[ "com.jme3.scene.Spatial", "com.jme3.scene.control.Control" ]
import com.jme3.scene.Spatial; import com.jme3.scene.control.Control;
import com.jme3.scene.*; import com.jme3.scene.control.*;
[ "com.jme3.scene" ]
com.jme3.scene;
356,383
protected double asRelativeValue(final InformationLoss<?> infoLoss) { if (model != null && model.getResult() != null && model.getResult().getLattice() != null && model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) { return infoLoss.r...
double function(final InformationLoss<?> infoLoss) { if (model != null && model.getResult() != null && model.getResult().getLattice() != null && model.getResult().getLattice().getBottom() != null && model.getResult().getLattice().getTop() != null) { return infoLoss.relativeTo(model.getResult().getLattice().getLowestSco...
/** * Converts an score into a relative value in percent. * * @param infoLoss * @return */
Converts an score into a relative value in percent
asRelativeValue
{ "repo_name": "kbabioch/arx", "path": "src/gui/org/deidentifier/arx/gui/view/impl/explore/ViewSolutionSpace.java", "license": "apache-2.0", "size": 18384 }
[ "org.deidentifier.arx.metric.InformationLoss" ]
import org.deidentifier.arx.metric.InformationLoss;
import org.deidentifier.arx.metric.*;
[ "org.deidentifier.arx" ]
org.deidentifier.arx;
555,443
TypedQuery<X> setParameter(String name, Date value, TemporalType temporalType);
TypedQuery<X> setParameter(String name, Date value, TemporalType temporalType);
/** * Bind an instance of <code>java.util.Date</code> to a named parameter. * * @param name parameter name * @param value parameter value * @param temporalType temporal type * * @return the same query instance * * @throws IllegalArgumentException if the parameter name does * not correspond to a para...
Bind an instance of <code>java.util.Date</code> to a named parameter
setParameter
{ "repo_name": "jakobk/hibernate-jpa-api-async", "path": "src/main/java/javax/persistence/TypedQuery.java", "license": "bsd-3-clause", "size": 8641 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
1,655,525
private void removeRadioButtonsGeneratedByRule() { // remove from the radio button group for(JRadioButton button : ruleGeneratedRadioButtonList) { initialStatesButtonGroup.remove(button); } // remove from the graphics ruleGeneratedInitStatePanel.removeAll(); }
void function() { for(JRadioButton button : ruleGeneratedRadioButtonList) { initialStatesButtonGroup.remove(button); } ruleGeneratedInitStatePanel.removeAll(); }
/** * Removes all the radio buttons generated by the rule. */
Removes all the radio buttons generated by the rule
removeRadioButtonsGeneratedByRule
{ "repo_name": "KEOpenSource/CAExplorer", "path": "cellularAutomata/graphics/InitialStatesPanel.java", "license": "apache-2.0", "size": 94674 }
[ "javax.swing.JRadioButton" ]
import javax.swing.JRadioButton;
import javax.swing.*;
[ "javax.swing" ]
javax.swing;
1,709,081
boolean checkAndDelete(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, Delete delete) throws IOException;
boolean checkAndDelete(byte[] row, byte[] family, byte[] qualifier, CompareFilter.CompareOp compareOp, byte[] value, Delete delete) throws IOException;
/** * Atomically checks if a row/family/qualifier value matches the expected * value. If it does, it adds the delete. If the passed value is null, the * check is for the lack of column (ie: non-existance) * * @param row to check * @param family column family to check * @param qualifier column qual...
Atomically checks if a row/family/qualifier value matches the expected value. If it does, it adds the delete. If the passed value is null, the check is for the lack of column (ie: non-existance)
checkAndDelete
{ "repo_name": "ibmsoe/hbase", "path": "hbase-client/src/main/java/org/apache/hadoop/hbase/client/Table.java", "license": "apache-2.0", "size": 25576 }
[ "java.io.IOException", "org.apache.hadoop.hbase.filter.CompareFilter" ]
import java.io.IOException; import org.apache.hadoop.hbase.filter.CompareFilter;
import java.io.*; import org.apache.hadoop.hbase.filter.*;
[ "java.io", "org.apache.hadoop" ]
java.io; org.apache.hadoop;
1,410,740
public static boolean conditionValue(GlowLivingEntity entity, String condition) { if (condition.equals("ENTITY_ONFIRE")) { return entity.getFireTicks() > 0; } if (condition.startsWith("ENTITY_KILLER_")) { EntityType type = EntityType.valueOf(condition.substring("ENTIT...
static boolean function(GlowLivingEntity entity, String condition) { if (condition.equals(STR)) { return entity.getFireTicks() > 0; } if (condition.startsWith(STR)) { EntityType type = EntityType.valueOf(condition.substring(STR.length())); return entity.getLastDamager() != null && entity.getLastDamager().getType() == t...
/** * Evaluates a condition for an entity. * * @param entity the entity * @param condition the condition string to evaluate * @return true if the condition is satisfied; false otherwise */
Evaluates a condition for an entity
conditionValue
{ "repo_name": "GlowstoneMC/GlowstonePlusPlus", "path": "src/main/java/net/glowstone/util/loot/LootingUtil.java", "license": "mit", "size": 1821 }
[ "net.glowstone.entity.GlowLivingEntity", "org.bukkit.entity.EntityType" ]
import net.glowstone.entity.GlowLivingEntity; import org.bukkit.entity.EntityType;
import net.glowstone.entity.*; import org.bukkit.entity.*;
[ "net.glowstone.entity", "org.bukkit.entity" ]
net.glowstone.entity; org.bukkit.entity;
1,100,220
@Nonnull public FileIOError getAsIOError (@Nonnull final EFileIOOperation eOperation, @Nonnull final Path aFile1, @Nonnull final Path aFile2) { if (eOperation.getParamCount () < 2) throw new IllegalStateException ("The operation " + eOperation + " expects only one parameter!"); return new FileIOErro...
FileIOError function (@Nonnull final EFileIOOperation eOperation, @Nonnull final Path aFile1, @Nonnull final Path aFile2) { if (eOperation.getParamCount () < 2) throw new IllegalStateException (STR + eOperation + STR); return new FileIOError (eOperation, this, aFile1.toFile (), aFile2.toFile ()); }
/** * Use this error code to create a new {@link FileIOError} instance. * * @param eOperation * The operation carried out. May not be <code>null</code>. * @param aFile1 * The first file on which operation was carried out. May not be * <code>null</code>. * @param aFile2 * ...
Use this error code to create a new <code>FileIOError</code> instance
getAsIOError
{ "repo_name": "phax/ph-commons", "path": "ph-commons/src/main/java/com/helger/commons/io/file/EFileIOErrorCode.java", "license": "apache-2.0", "size": 7476 }
[ "java.nio.file.Path", "javax.annotation.Nonnull" ]
import java.nio.file.Path; import javax.annotation.Nonnull;
import java.nio.file.*; import javax.annotation.*;
[ "java.nio", "javax.annotation" ]
java.nio; javax.annotation;
2,473,491
Future<RequestResult> sendRequestAsync(Message message);
Future<RequestResult> sendRequestAsync(Message message);
/** * Sends a request as specified in the given message and asynchronously waits for the results. * * @param message The request message. * @return The result of the request. */
Sends a request as specified in the given message and asynchronously waits for the results
sendRequestAsync
{ "repo_name": "pablomuri/Engine", "path": "core/core.api/src/main/java/eu/netide/core/api/IBackendManager.java", "license": "epl-1.0", "size": 2833 }
[ "eu.netide.lib.netip.Message", "java.util.concurrent.Future" ]
import eu.netide.lib.netip.Message; import java.util.concurrent.Future;
import eu.netide.lib.netip.*; import java.util.concurrent.*;
[ "eu.netide.lib", "java.util" ]
eu.netide.lib; java.util;
536,863
public JobStatus[] getAllJobs() throws IOException { return jc.getAllJobs(); }
JobStatus[] function() throws IOException { return jc.getAllJobs(); }
/** * Get all the jobs submitted. */
Get all the jobs submitted
getAllJobs
{ "repo_name": "vergilchiu/hive", "path": "shims/0.23/src/main/java/org/apache/hadoop/mapred/WebHCatJTShim23.java", "license": "apache-2.0", "size": 7632 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
1,116,610
protected long logEventPair( String prefix, Optional<String> suffix, long currentMillis, long offsetMs, Collection<EventPair> eventPairs, Optional<Double> progress, Optional<Long> minimum, ImmutableList.Builder<String> lines) { if (eventPairs.isEmpty()) { retu...
long function( String prefix, Optional<String> suffix, long currentMillis, long offsetMs, Collection<EventPair> eventPairs, Optional<Double> progress, Optional<Long> minimum, ImmutableList.Builder<String> lines) { if (eventPairs.isEmpty()) { return UNFINISHED_EVENT_PAIR; } long completedRunTimesMs = getTotalCompletedTi...
/** * Adds a line about a set of start and finished events to lines. * * @param prefix Prefix to print for this event pair. * @param suffix Suffix to print for this event pair. * @param currentMillis The current time in milliseconds. * @param offsetMs Offset to remove from calculated time. Set this to...
Adds a line about a set of start and finished events to lines
logEventPair
{ "repo_name": "clonetwin26/buck", "path": "src/com/facebook/buck/event/listener/AbstractConsoleEventBusListener.java", "license": "apache-2.0", "size": 35318 }
[ "com.google.common.collect.ImmutableList", "java.util.Collection", "java.util.Optional" ]
import com.google.common.collect.ImmutableList; import java.util.Collection; import java.util.Optional;
import com.google.common.collect.*; import java.util.*;
[ "com.google.common", "java.util" ]
com.google.common; java.util;
2,048,348
public static FastDateFormat getDateInstance(int style, Locale locale) { return getDateInstance(style, null, locale); }
static FastDateFormat function(int style, Locale locale) { return getDateInstance(style, null, locale); }
/** * <p>Gets a date formatter instance using the specified style and * locale in the default time zone.</p> * * @param style date style: FULL, LONG, MEDIUM, or SHORT * @param locale optional locale, overrides system locale * @return a localized standard date formatter * @throws Il...
Gets a date formatter instance using the specified style and locale in the default time zone
getDateInstance
{ "repo_name": "mtwain/Easychad", "path": "EasychadProj/src/main/java/ml/easychad/lax/android/FastDateFormat.java", "license": "gpl-2.0", "size": 55985 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,726,573
public void psSetString(PreparedStatement pstmtImpl, int i, String x) throws SQLException { pstmtImpl.setString(i, x); }
void function(PreparedStatement pstmtImpl, int i, String x) throws SQLException { pstmtImpl.setString(i, x); }
/** * Allow for special handling of Oracle prepared statement setString * This method just does the normal setString call, Oracle helper overrides it */
Allow for special handling of Oracle prepared statement setString This method just does the normal setString call, Oracle helper overrides it
psSetString
{ "repo_name": "kgibm/open-liberty", "path": "dev/com.ibm.ws.jdbc/src/com/ibm/ws/rsadapter/impl/DatabaseHelper.java", "license": "epl-1.0", "size": 79143 }
[ "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
529,818
public static RelDataType convertToCalciteType(RelDataTypeFactory typeFactory, TypeProtos.MajorType drillType, boolean isNullable) { SqlTypeName sqlTypeName = getCalciteTypeFromDrillType(drillType.getMinorType()); if (sqlTypeName == SqlTypeName.DECIMAL) { ...
static RelDataType function(RelDataTypeFactory typeFactory, TypeProtos.MajorType drillType, boolean isNullable) { SqlTypeName sqlTypeName = getCalciteTypeFromDrillType(drillType.getMinorType()); if (sqlTypeName == SqlTypeName.DECIMAL) { return typeFactory.createTypeWithNullability( typeFactory.createSqlType(sqlTypeName...
/** * Creates a RelDataType using specified RelDataTypeFactory which corresponds to specified TypeProtos.MajorType. * * @param typeFactory RelDataTypeFactory used to create the RelDataType * @param drillType the given TypeProtos.MajorType * @param isNullable nullability of the resulting type * @ret...
Creates a RelDataType using specified RelDataTypeFactory which corresponds to specified TypeProtos.MajorType
convertToCalciteType
{ "repo_name": "parthchandra/drill", "path": "exec/java-exec/src/main/java/org/apache/drill/exec/planner/sql/TypeInferenceUtils.java", "license": "apache-2.0", "size": 42381 }
[ "org.apache.calcite.rel.type.RelDataType", "org.apache.calcite.rel.type.RelDataTypeFactory", "org.apache.calcite.sql.type.SqlTypeName", "org.apache.drill.common.types.TypeProtos" ]
import org.apache.calcite.rel.type.RelDataType; import org.apache.calcite.rel.type.RelDataTypeFactory; import org.apache.calcite.sql.type.SqlTypeName; import org.apache.drill.common.types.TypeProtos;
import org.apache.calcite.rel.type.*; import org.apache.calcite.sql.type.*; import org.apache.drill.common.types.*;
[ "org.apache.calcite", "org.apache.drill" ]
org.apache.calcite; org.apache.drill;
762,714
@PropertySetter(value = "left", defaultValue = "50%", description = "The left position relative to parent.") public void setLeft(String left) { propertyChange("left", options.left, options.left = left, false); }
@PropertySetter(value = "left", defaultValue = "50%", description = STR) void function(String left) { propertyChange("left", options.left, options.left = left, false); }
/** * Sets the left position relative to parent. * <p> * Default: "50%" * * @param left Left position relative to parent. */
Sets the left position relative to parent. Default: "50%"
setLeft
{ "repo_name": "fujion/fujion-framework", "path": "fujion-spinjs/src/main/java/org/fujion/spinjs/SpinJS.java", "license": "apache-2.0", "size": 14665 }
[ "org.fujion.annotation.Component" ]
import org.fujion.annotation.Component;
import org.fujion.annotation.*;
[ "org.fujion.annotation" ]
org.fujion.annotation;
153,368
public void l2i() throws IOException { i.l2t(); }
void function() throws IOException { i.l2t(); }
/** * Convert long to int * <p>Stack: ..., value=&gt;..., result * @throws IOException */
Convert long to int Stack: ..., value=&gt;..., result
l2i
{ "repo_name": "tvesalainen/bcc", "path": "src/main/java/org/vesalainen/bcc/Assembler.java", "license": "gpl-3.0", "size": 53751 }
[ "java.io.IOException" ]
import java.io.IOException;
import java.io.*;
[ "java.io" ]
java.io;
713,290
public SpecializedBlobClientBuilder blobClient(BlobClientBase blobClient) { pipeline(blobClient.getHttpPipeline()); endpoint(blobClient.getBlobUrl()); serviceVersion(blobClient.getServiceVersion()); this.snapshot = blobClient.getSnapshotId(); this.versionId = blobClient.getVe...
SpecializedBlobClientBuilder function(BlobClientBase blobClient) { pipeline(blobClient.getHttpPipeline()); endpoint(blobClient.getBlobUrl()); serviceVersion(blobClient.getServiceVersion()); this.snapshot = blobClient.getSnapshotId(); this.versionId = blobClient.getVersionId(); this.customerProvidedKey = blobClient.getC...
/** * Configures the builder based on the {@link BlobClientBase}. * * @param blobClient The {@code BlobClientBase} used to configure this builder. * @return the updated SpecializedBlobClientBuilder object. */
Configures the builder based on the <code>BlobClientBase</code>
blobClient
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/storage/azure-storage-blob/src/main/java/com/azure/storage/blob/specialized/SpecializedBlobClientBuilder.java", "license": "mit", "size": 27376 }
[ "com.azure.storage.blob.implementation.models.EncryptionScope" ]
import com.azure.storage.blob.implementation.models.EncryptionScope;
import com.azure.storage.blob.implementation.models.*;
[ "com.azure.storage" ]
com.azure.storage;
1,829,088
public static final Function<Integer[], Period> integerFieldArrayToPeriod(PeriodType periodType) { return new IntegerFieldArrayToPeriod(periodType); }
static final Function<Integer[], Period> function(PeriodType periodType) { return new IntegerFieldArrayToPeriod(periodType); }
/** * <p> * It creates a Period with the specified {@link PeriodType} either: * </p> * <ul> * <li>From an Integer[] representing the hours, minutes, seconds and milliseconds</li> * <li>From an Integer[] representing the years, months, weeks, days, hours, minutes, seconds and millisec...
It creates a Period with the specified <code>PeriodType</code> either: From an Integer[] representing the hours, minutes, seconds and milliseconds From an Integer[] representing the years, months, weeks, days, hours, minutes, seconds and milliseconds
integerFieldArrayToPeriod
{ "repo_name": "op4j/op4j-jodatime", "path": "src/main/java/org/op4j/jodatime/functions/FnPeriod.java", "license": "apache-2.0", "size": 65255 }
[ "org.joda.time.Period", "org.joda.time.PeriodType", "org.op4j.functions.Function" ]
import org.joda.time.Period; import org.joda.time.PeriodType; import org.op4j.functions.Function;
import org.joda.time.*; import org.op4j.functions.*;
[ "org.joda.time", "org.op4j.functions" ]
org.joda.time; org.op4j.functions;
2,278,422
private MembersSetPermissionsResult membersSetAdminPermissions(MembersSetPermissionsArg arg) throws MembersSetAdminPermissionsException, DbxException { try { return client.rpcStyle(client.getHost().api, "2/team/members/set_admin_permissions", ...
MembersSetPermissionsResult function(MembersSetPermissionsArg arg) throws MembersSetAdminPermissionsException, DbxException { try { return client.rpcStyle(client.getHost().api, STR, arg, false, MembersSetPermissionsArg._writer, MembersSetPermissionsResult._reader, MembersSetPermissionsError._reader); } catch (DbxReques...
/** * Updates a team member's permissions. Permission : Team member management */
Updates a team member's permissions. Permission : Team member management
membersSetAdminPermissions
{ "repo_name": "hunchee/dropbox-sdk-java", "path": "src/com/dropbox/core/v2/DbxTeam.java", "license": "mit", "size": 1014346 }
[ "com.dropbox.core.DbxException", "com.dropbox.core.DbxRequestUtil" ]
import com.dropbox.core.DbxException; import com.dropbox.core.DbxRequestUtil;
import com.dropbox.core.*;
[ "com.dropbox.core" ]
com.dropbox.core;
987,634
public boolean forOneArbitraryMatch(final Student pS1, final Student pS2, final IMatchProcessor<? super MoreFriendsThanMatch> processor) { return rawForOneArbitraryMatch(new Object[]{pS1, pS2}, processor); }
boolean function(final Student pS1, final Student pS2, final IMatchProcessor<? super MoreFriendsThanMatch> processor) { return rawForOneArbitraryMatch(new Object[]{pS1, pS2}, processor); }
/** * Executes the given processor on an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters. * Neither determinism nor randomness of selection is guaranteed. * @param pS1 the fixed value of pattern parameter S1, or null if not bound. * @param pS2 the fixed val...
Executes the given processor on an arbitrarily chosen match of the pattern that conforms to the given fixed values of some parameters. Neither determinism nor randomness of selection is guaranteed
forOneArbitraryMatch
{ "repo_name": "tht-krisztian/EMF-IncQuery-Examples", "path": "school/school.incquery/src-gen/school/MoreFriendsThanMatcher.java", "license": "epl-1.0", "size": 12815 }
[ "org.eclipse.incquery.runtime.api.IMatchProcessor" ]
import org.eclipse.incquery.runtime.api.IMatchProcessor;
import org.eclipse.incquery.runtime.api.*;
[ "org.eclipse.incquery" ]
org.eclipse.incquery;
2,718,417
Artifact packSourceFiles( StarlarkActionFactory actions, Artifact outputJar, Artifact outputSourceJar, List<Artifact> sourceFiles, List<Artifact> sourceJars, JavaToolchainProvider javaToolchain, JavaRuntimeInfo hostJavabase) throws EvalException { if (outputJar == n...
Artifact packSourceFiles( StarlarkActionFactory actions, Artifact outputJar, Artifact outputSourceJar, List<Artifact> sourceFiles, List<Artifact> sourceJars, JavaToolchainProvider javaToolchain, JavaRuntimeInfo hostJavabase) throws EvalException { if (outputJar == null && outputSourceJar == null) { throw Starlark.error...
/** * Creates action which creates archive with all source files inside. Takes all filer from * sourceFiles collection and all files from every sourceJars. Name of Artifact generated based on * outputJar. * * @param outputJar name of output Jar artifact. * @param outputSourceJar name of output source ...
Creates action which creates archive with all source files inside. Takes all filer from sourceFiles collection and all files from every sourceJars. Name of Artifact generated based on outputJar
packSourceFiles
{ "repo_name": "werkt/bazel", "path": "src/main/java/com/google/devtools/build/lib/rules/java/JavaInfoBuildHelper.java", "license": "apache-2.0", "size": 18623 }
[ "com.google.devtools.build.lib.actions.ActionRegistry", "com.google.devtools.build.lib.actions.Artifact", "com.google.devtools.build.lib.analysis.starlark.StarlarkActionFactory", "com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder", "com.google.devtools.build.lib.collect.nestedset.Order", "c...
import com.google.devtools.build.lib.actions.ActionRegistry; import com.google.devtools.build.lib.actions.Artifact; import com.google.devtools.build.lib.analysis.starlark.StarlarkActionFactory; import com.google.devtools.build.lib.collect.nestedset.NestedSetBuilder; import com.google.devtools.build.lib.collect.nestedse...
import com.google.devtools.build.lib.actions.*; import com.google.devtools.build.lib.analysis.starlark.*; import com.google.devtools.build.lib.collect.nestedset.*; import com.google.devtools.build.lib.syntax.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
757,370
@SelectProvider(type=AsyncProcessExceptionSqlProvider.class, method="selectByExample") @Results({ @Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column="ASYNC_ID", property="asyncId", jdbcType=JdbcType.BIGINT), @Result(column="UPDATED_AT", property="updat...
@SelectProvider(type=AsyncProcessExceptionSqlProvider.class, method=STR) @Results({ @Result(column="ID", property="id", jdbcType=JdbcType.BIGINT, id=true), @Result(column=STR, property=STR, jdbcType=JdbcType.BIGINT), @Result(column=STR, property=STR, jdbcType=JdbcType.TIMESTAMP), @Result(column=STR, property=STR, jdbcT...
/** * This method was generated by MyBatis Generator. * This method corresponds to the database table ASYNC_PROCESS_EXCEPTION * * @mbggenerated */
This method was generated by MyBatis Generator. This method corresponds to the database table ASYNC_PROCESS_EXCEPTION
selectByExampleWithRowbounds
{ "repo_name": "agwlvssainokuni/springapp", "path": "common/src/generated/java/cherry/common/db/gen/mapper/AsyncProcessExceptionMapper.java", "license": "apache-2.0", "size": 10739 }
[ "java.util.List", "org.apache.ibatis.annotations.Result", "org.apache.ibatis.annotations.Results", "org.apache.ibatis.annotations.SelectProvider", "org.apache.ibatis.session.RowBounds", "org.apache.ibatis.type.JdbcType" ]
import java.util.List; import org.apache.ibatis.annotations.Result; import org.apache.ibatis.annotations.Results; import org.apache.ibatis.annotations.SelectProvider; import org.apache.ibatis.session.RowBounds; import org.apache.ibatis.type.JdbcType;
import java.util.*; import org.apache.ibatis.annotations.*; import org.apache.ibatis.session.*; import org.apache.ibatis.type.*;
[ "java.util", "org.apache.ibatis" ]
java.util; org.apache.ibatis;
709,176
public static void sendDocument(String json, CloseableHttpClient httpClient, String url) throws IOException { final HttpPut httpPut = new HttpPut(url); httpPut.addHeader("Content-Type", NanoHTTPD.MIME_JSON); httpPut.setEntity(new StringEntity( json, ContentType.APPLICATION_JS...
static void function(String json, CloseableHttpClient httpClient, String url) throws IOException { final HttpPut httpPut = new HttpPut(url); httpPut.addHeader(STR, NanoHTTPD.MIME_JSON); httpPut.setEntity(new StringEntity( json, ContentType.APPLICATION_JSON)); try (CloseableHttpResponse response = httpClient.execute(htt...
/** * Send the given document to the given Elasticsearch URL/Index * * Authentication can be provided via the configured {@link HttpClient} instance. * * @param json The json-string to store as document * @param httpClient The HTTP Client that can be used to send metrics. * ...
Send the given document to the given Elasticsearch URL/Index Authentication can be provided via the configured <code>HttpClient</code> instance
sendDocument
{ "repo_name": "centic9/commons-dost", "path": "src/main/java/org/dstadler/commons/metrics/MetricsUtils.java", "license": "bsd-2-clause", "size": 5405 }
[ "java.io.IOException", "java.nio.charset.StandardCharsets", "org.apache.commons.io.IOUtils", "org.apache.http.HttpEntity", "org.apache.http.client.methods.CloseableHttpResponse", "org.apache.http.client.methods.HttpPut", "org.apache.http.entity.ContentType", "org.apache.http.entity.StringEntity", "o...
import java.io.IOException; import java.nio.charset.StandardCharsets; import org.apache.commons.io.IOUtils; import org.apache.http.HttpEntity; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpPut; import org.apache.http.entity.ContentType; import org.apache.http.ent...
import java.io.*; import java.nio.charset.*; import org.apache.commons.io.*; import org.apache.http.*; import org.apache.http.client.methods.*; import org.apache.http.entity.*; import org.apache.http.impl.client.*; import org.apache.http.util.*; import org.dstadler.commons.http.*;
[ "java.io", "java.nio", "org.apache.commons", "org.apache.http", "org.dstadler.commons" ]
java.io; java.nio; org.apache.commons; org.apache.http; org.dstadler.commons;
223,931
public Calendar getRequestTracingExpirationTime() { return this.requestTracingExpirationTime; }
Calendar function() { return this.requestTracingExpirationTime; }
/** * Optional. Time remaining until request tracing expires. * @return The RequestTracingExpirationTime value. */
Optional. Time remaining until request tracing expires
getRequestTracingExpirationTime
{ "repo_name": "southworkscom/azure-sdk-for-java", "path": "resource-management/azure-mgmt-websites/src/main/java/com/microsoft/azure/management/websites/models/WebSiteUpdateConfigurationDetails.java", "license": "apache-2.0", "size": 19422 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
847,798
public void checkValid(CharSequence literal) throws DatatypeException { int len = literal.length(); if (len == 0) { throw newDatatypeException("An ID must not be the empty string."); } for (int i = 0; i < len; i++) { char c = literal.charAt(i); ...
void function(CharSequence literal) throws DatatypeException { int len = literal.length(); if (len == 0) { throw newDatatypeException(STR); } for (int i = 0; i < len; i++) { char c = literal.charAt(i); if (isWhitespace(c)) { throw newDatatypeException(i, STR); } } }
/** * Checks that the value is a proper HTML5 id. * @param literal the value * @param context ignored * @throws DatatypeException if the value isn't valid * @see org.relaxng.datatype.Datatype#checkValid(java.lang.String, org.relaxng.datatype.ValidationContext) */
Checks that the value is a proper HTML5 id
checkValid
{ "repo_name": "dashorst/wicket-stuff-markup-validator", "path": "whattf/src/main/resources/relaxng/datatype/java/src/org/whattf/datatype/Id.java", "license": "apache-2.0", "size": 2508 }
[ "org.relaxng.datatype.DatatypeException" ]
import org.relaxng.datatype.DatatypeException;
import org.relaxng.datatype.*;
[ "org.relaxng.datatype" ]
org.relaxng.datatype;
308,240
public Filter createFilter(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode) { // get filter chain region Rectangle2D filterRegion = SVGUtilities.convertFilterCha...
Filter function(BridgeContext ctx, Element filterElement, Element filteredElement, GraphicsNode filteredNode) { Rectangle2D filterRegion = SVGUtilities.convertFilterChainRegion (filterElement, filteredElement, filteredNode, ctx); if (filterRegion == null) { return null; } Filter sourceGraphic = filteredNode.getGraphics...
/** * Creates a <tt>Filter</tt> according to the specified parameters. * * @param ctx the bridge context to use * @param filterElement the element that defines the filter * @param filteredElement the element that references the filter element * @param filteredNode the graphics node to filt...
Creates a Filter according to the specified parameters
createFilter
{ "repo_name": "sflyphotobooks/crp-batik", "path": "sources/org/apache/batik/bridge/SVGFilterElementBridge.java", "license": "apache-2.0", "size": 10841 }
[ "java.awt.geom.Rectangle2D", "java.util.HashMap", "java.util.Map", "org.apache.batik.ext.awt.image.PadMode", "org.apache.batik.ext.awt.image.renderable.Filter", "org.apache.batik.ext.awt.image.renderable.FilterChainRable", "org.apache.batik.ext.awt.image.renderable.FilterChainRable8Bit", "org.apache.b...
import java.awt.geom.Rectangle2D; import java.util.HashMap; import java.util.Map; import org.apache.batik.ext.awt.image.PadMode; import org.apache.batik.ext.awt.image.renderable.Filter; import org.apache.batik.ext.awt.image.renderable.FilterChainRable; import org.apache.batik.ext.awt.image.renderable.FilterChainRable8B...
import java.awt.geom.*; import java.util.*; import org.apache.batik.ext.awt.image.*; import org.apache.batik.ext.awt.image.renderable.*; import org.apache.batik.gvt.*; import org.w3c.dom.*;
[ "java.awt", "java.util", "org.apache.batik", "org.w3c.dom" ]
java.awt; java.util; org.apache.batik; org.w3c.dom;
1,450,631
public static String getDurationForHumans( long milliseconds ) { if ( milliseconds<2*1000 ) { return milliseconds+" milliseconds"; } else if ( milliseconds<2*60000 ) { return String.format( Locale.US, "%.1f",milliseconds/1000.)+" seconds"; } else if ( milliseconds<2*3...
static String function( long milliseconds ) { if ( milliseconds<2*1000 ) { return milliseconds+STR; } else if ( milliseconds<2*60000 ) { return String.format( Locale.US, "%.1f",milliseconds/1000.)+STR; } else if ( milliseconds<2*3600000 ) { return String.format( Locale.US, "%.1f",milliseconds/60000.)+STR; } else if ( m...
/** * return the duration in a easily-human-consumable form. * @param milliseconds the duration in milliseconds. * @return a duration like "2.6 hours" */
return the duration in a easily-human-consumable form
getDurationForHumans
{ "repo_name": "autoplot/app", "path": "HapiDataSource/src/org/autoplot/hapi/HapiDataSourceEditorPanel.java", "license": "gpl-2.0", "size": 56353 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
758,889
@IgniteSpiConfiguration(optional = true) public TcpDiscoverySpi setTopHistorySize(int topHistSize) { if (topHistSize < DFLT_TOP_HISTORY_SIZE) { U.warn(log, "Topology history size should be greater than or equal to default size. " + "Specified size will not be set [curSize=" +...
@IgniteSpiConfiguration(optional = true) TcpDiscoverySpi function(int topHistSize) { if (topHistSize < DFLT_TOP_HISTORY_SIZE) { U.warn(log, STR + STR + this.topHistSize + STR + topHistSize + STR + DFLT_TOP_HISTORY_SIZE + ']'); return this; } this.topHistSize = topHistSize; return this; }
/** * Sets size of topology snapshots history. Specified size should be greater than or equal to default size * {@link #DFLT_TOP_HISTORY_SIZE}. * * @param topHistSize Size of topology snapshots history. * @return {@code this} for chaining. */
Sets size of topology snapshots history. Specified size should be greater than or equal to default size <code>#DFLT_TOP_HISTORY_SIZE</code>
setTopHistorySize
{ "repo_name": "vadopolski/ignite", "path": "modules/core/src/main/java/org/apache/ignite/spi/discovery/tcp/TcpDiscoverySpi.java", "license": "apache-2.0", "size": 76666 }
[ "org.apache.ignite.internal.util.typedef.internal.U", "org.apache.ignite.spi.IgniteSpiConfiguration" ]
import org.apache.ignite.internal.util.typedef.internal.U; import org.apache.ignite.spi.IgniteSpiConfiguration;
import org.apache.ignite.internal.util.typedef.internal.*; import org.apache.ignite.spi.*;
[ "org.apache.ignite" ]
org.apache.ignite;
1,260,291
public @CheckForNull WaitingItem schedule(AbstractProject p) { return schedule(p, p.getQuietPeriod()); } /** * Schedules a new build with a custom quiet period. * * <p> * Left for backward compatibility with &lt;1.114. * * @since 1.105 * @deprecated as of 1.311 ...
@CheckForNull WaitingItem function(AbstractProject p) { return schedule(p, p.getQuietPeriod()); } /** * Schedules a new build with a custom quiet period. * * <p> * Left for backward compatibility with &lt;1.114. * * @since 1.105 * @deprecated as of 1.311 * Use {@link #schedule(Task, int)}
/** * Schedule a new build for this project. * @see #schedule(Task, int) */
Schedule a new build for this project
schedule
{ "repo_name": "ndeloof/jenkins", "path": "core/src/main/java/hudson/model/Queue.java", "license": "mit", "size": 108592 }
[ "javax.annotation.CheckForNull" ]
import javax.annotation.CheckForNull;
import javax.annotation.*;
[ "javax.annotation" ]
javax.annotation;
4,578
@Test public void whenInvokeAllIsUsed_thenNearCacheIsInvalidated_onDataAdapter() { whenEntryIsChanged_thenNearCacheShouldBeInvalidated(true, DataStructureMethods.INVOKE_ALL); }
void function() { whenEntryIsChanged_thenNearCacheShouldBeInvalidated(true, DataStructureMethods.INVOKE_ALL); }
/** * Checks that the Near Cache is eventually invalidated when {@link DataStructureMethods#INVOKE_ALL} is used. */
Checks that the Near Cache is eventually invalidated when <code>DataStructureMethods#INVOKE_ALL</code> is used
whenInvokeAllIsUsed_thenNearCacheIsInvalidated_onDataAdapter
{ "repo_name": "emrahkocaman/hazelcast", "path": "hazelcast/src/test/java/com/hazelcast/internal/nearcache/AbstractNearCacheBasicTest.java", "license": "apache-2.0", "size": 46469 }
[ "com.hazelcast.internal.adapter.DataStructureAdapter" ]
import com.hazelcast.internal.adapter.DataStructureAdapter;
import com.hazelcast.internal.adapter.*;
[ "com.hazelcast.internal" ]
com.hazelcast.internal;
657,293
private List<QuadTreeData> queryByBoundingBox(final QuadTreeNode node, final Rectangle2D nodeRegion, final Rectangle2D searchRegion) { List<QuadTreeData> matches = new ArrayList<QuadTreeData>(); if (node == null) { return matches; } else if (node.getNodeType() != NodeType.GRAY) { if (no...
List<QuadTreeData> function(final QuadTreeNode node, final Rectangle2D nodeRegion, final Rectangle2D searchRegion) { List<QuadTreeData> matches = new ArrayList<QuadTreeData>(); if (node == null) { return matches; } else if (node.getNodeType() != NodeType.GRAY) { if (node.getNodeType() == NodeType.WHITE) return matches;...
/** * Performs bounding box search. * * @param node * quad tree root node * @param nodeRegion * Rectangle2D representing the rectangular node region * @param searchRegion * Rectangle2D representing the rectangular search region * @return a list of QuadTreeData that ...
Performs bounding box search
queryByBoundingBox
{ "repo_name": "desruisseaux/sis", "path": "storage/sis-storage/src/main/java/org/apache/sis/index/tree/QuadTree.java", "license": "apache-2.0", "size": 19747 }
[ "java.awt.geom.Rectangle2D", "java.util.ArrayList", "java.util.List" ]
import java.awt.geom.Rectangle2D; import java.util.ArrayList; import java.util.List;
import java.awt.geom.*; import java.util.*;
[ "java.awt", "java.util" ]
java.awt; java.util;
1,247,661
public Variant invoke(String actionCommand, String parameter) { return Dispatch.call(this, actionCommand, parameter); }
Variant function(String actionCommand, String parameter) { return Dispatch.call(this, actionCommand, parameter); }
/** * invokes a single parameter call on this dispatch that returns no value * * @param actionCommand * @param parameter * @return a Variant but that may be null for some calls */
invokes a single parameter call on this dispatch that returns no value
invoke
{ "repo_name": "joval/jacob", "path": "src/com/jacob/activeX/ActiveXComponent.java", "license": "lgpl-2.1", "size": 14102 }
[ "com.jacob.com.Dispatch", "com.jacob.com.Variant" ]
import com.jacob.com.Dispatch; import com.jacob.com.Variant;
import com.jacob.com.*;
[ "com.jacob.com" ]
com.jacob.com;
2,480,513
public void updateByteMetrics() { try { for (Optional<Fork> fork : this.forks) { if (fork.isPresent()) { fork.get().updateByteMetrics(); } } } catch (IOException ioe) { LOG.error("Failed to update byte-level metrics for task " + this.taskId, ioe); } }
void function() { try { for (Optional<Fork> fork : this.forks) { if (fork.isPresent()) { fork.get().updateByteMetrics(); } } } catch (IOException ioe) { LOG.error(STR + this.taskId, ioe); } }
/** * Update byte-level metrics. * * <p> * This method is only supposed to be called after the writer commits. * </p> */
Update byte-level metrics. This method is only supposed to be called after the writer commits.
updateByteMetrics
{ "repo_name": "Hanmourang/Gobblin", "path": "gobblin-runtime/src/main/java/gobblin/runtime/Task.java", "license": "apache-2.0", "size": 19087 }
[ "com.google.common.base.Optional", "java.io.IOException" ]
import com.google.common.base.Optional; import java.io.IOException;
import com.google.common.base.*; import java.io.*;
[ "com.google.common", "java.io" ]
com.google.common; java.io;
1,470,729
protected ActionRegistry getActionRegistry() { // one action registry for all editors return parent.getActionRegistry(); }
ActionRegistry function() { return parent.getActionRegistry(); }
/** * Returns a reference to the multi page action registry. */
Returns a reference to the multi page action registry
getActionRegistry
{ "repo_name": "McGill-DP-Group/seg.jUCMNav", "path": "src/seg/jUCMNav/editors/UrnEditor.java", "license": "epl-1.0", "size": 22093 }
[ "org.eclipse.gef.ui.actions.ActionRegistry" ]
import org.eclipse.gef.ui.actions.ActionRegistry;
import org.eclipse.gef.ui.actions.*;
[ "org.eclipse.gef" ]
org.eclipse.gef;
506,586
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) public com.govapps.persistence.model.Concern getConcern(long id) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true) com.govapps.persistence.model.Concern function(long id) throws com.liferay.portal.kernel.exception.PortalException, com.liferay.portal.kernel.exception.SystemException;
/** * Returns the concern with the primary key. * * @param id the primary key of the concern * @return the concern * @throws PortalException if a concern with the primary key could not be found * @throws SystemException if a system exception occurred */
Returns the concern with the primary key
getConcern
{ "repo_name": "fraunhoferfokus/govapps", "path": "concern-portlet/src/main/java/com/govapps/persistence/service/ConcernLocalService.java", "license": "bsd-3-clause", "size": 12775 }
[ "com.liferay.portal.kernel.exception.PortalException", "com.liferay.portal.kernel.exception.SystemException", "com.liferay.portal.kernel.transaction.Propagation", "com.liferay.portal.kernel.transaction.Transactional" ]
import com.liferay.portal.kernel.exception.PortalException; import com.liferay.portal.kernel.exception.SystemException; import com.liferay.portal.kernel.transaction.Propagation; import com.liferay.portal.kernel.transaction.Transactional;
import com.liferay.portal.kernel.exception.*; import com.liferay.portal.kernel.transaction.*;
[ "com.liferay.portal" ]
com.liferay.portal;
2,283,424
public Properties getOptionalProperties() { return optionalProperties; } } public static class DataSourceFactory implements ConnectionFactoryDesc, Serializable { private Properties properties; private String factoryClassname; private static f...
Properties function() { return optionalProperties; } } public static class DataSourceFactory implements ConnectionFactoryDesc, Serializable { private Properties properties; private String factoryClassname; private static final long serialVersionUID = 262880601816358807L; public DataSourceFactory(Properties properties, ...
/** * Returns the properties, if supplied, to use for obtaining a connection via driver manager. * @return properties to obtain a driver manager connection, or null if none supplied */
Returns the properties, if supplied, to use for obtaining a connection via driver manager
getOptionalProperties
{ "repo_name": "b-cuts/esper", "path": "esper/src/main/java/com/espertech/esper/client/ConfigurationDBRef.java", "license": "gpl-2.0", "size": 24575 }
[ "java.io.Serializable", "java.util.Properties" ]
import java.io.Serializable; import java.util.Properties;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,930,159
private APIKey getApplicationKey(int applicationId, String keyType) throws APIManagementException { String consumerKey = apiMgtDAO.getConsumerkeyByApplicationIdAndKeyType(String.valueOf(applicationId), keyType); if (StringUtils.isNotEmpty(consumerKey)) { String consumerKeyStatus = apiMgt...
APIKey function(int applicationId, String keyType) throws APIManagementException { String consumerKey = apiMgtDAO.getConsumerkeyByApplicationIdAndKeyType(String.valueOf(applicationId), keyType); if (StringUtils.isNotEmpty(consumerKey)) { String consumerKeyStatus = apiMgtDAO.getKeyStatusOfApplication(keyType, applicatio...
/** * Returns the key associated with given application id and key type. * * @param applicationId Id of the Application. * @param keyType The type of key. * @return APIKey The key of the application. * @throws APIManagementException */
Returns the key associated with given application id and key type
getApplicationKey
{ "repo_name": "pubudu538/carbon-apimgt", "path": "components/apimgt/org.wso2.carbon.apimgt.impl/src/main/java/org/wso2/carbon/apimgt/impl/AbstractAPIManager.java", "license": "apache-2.0", "size": 165292 }
[ "org.apache.commons.lang3.StringUtils", "org.wso2.carbon.apimgt.api.APIManagementException", "org.wso2.carbon.apimgt.api.model.APIKey", "org.wso2.carbon.apimgt.api.model.AccessTokenInfo", "org.wso2.carbon.apimgt.api.model.KeyManager", "org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo", "org.wso2.ca...
import org.apache.commons.lang3.StringUtils; import org.wso2.carbon.apimgt.api.APIManagementException; import org.wso2.carbon.apimgt.api.model.APIKey; import org.wso2.carbon.apimgt.api.model.AccessTokenInfo; import org.wso2.carbon.apimgt.api.model.KeyManager; import org.wso2.carbon.apimgt.api.model.OAuthApplicationInfo...
import org.apache.commons.lang3.*; import org.wso2.carbon.apimgt.api.*; import org.wso2.carbon.apimgt.api.model.*; import org.wso2.carbon.apimgt.impl.factory.*;
[ "org.apache.commons", "org.wso2.carbon" ]
org.apache.commons; org.wso2.carbon;
223,704
private static void forceOverflowMenuIcon(Activity activity) { try { ViewConfiguration config = ViewConfiguration.get(activity); // This field doesn't exist in 4.4, where the overflow icon is always shown: // https://android.googlesource.com/platform/frameworks/base.git/+...
static void function(Activity activity) { try { ViewConfiguration config = ViewConfiguration.get(activity); Field menuKeyField = ViewConfiguration.class.getDeclaredField(STR); if (menuKeyField != null) { menuKeyField.setAccessible(true); menuKeyField.setBoolean(config, false); } } catch (Exception ex) { } }
/** * Helper function to force the Activity to show the three-dot overflow icon in its ActionBar. * @param activity Activity whose overflow icon will be forced. */
Helper function to force the Activity to show the three-dot overflow icon in its ActionBar
forceOverflowMenuIcon
{ "repo_name": "trujunzhang/IEATTA-ANDROID", "path": "app/src/main/java/org/wikipedia/activity/ThemedActionBarActivity.java", "license": "mit", "size": 3194 }
[ "android.app.Activity", "android.view.ViewConfiguration", "java.lang.reflect.Field" ]
import android.app.Activity; import android.view.ViewConfiguration; import java.lang.reflect.Field;
import android.app.*; import android.view.*; import java.lang.reflect.*;
[ "android.app", "android.view", "java.lang" ]
android.app; android.view; java.lang;
876,227
public void addCancelButton() { Button cancel = new Button("Cancel", super::close); super.add(cancel); _cancelShown = true; } protected ActionListBox _list; protected T _selected; protected boolean _cancelShown;
void function() { Button cancel = new Button(STR, super::close); super.add(cancel); _cancelShown = true; } protected ActionListBox _list; protected T _selected; protected boolean _cancelShown;
/** * Adds a CANCEL-button to the bottom of the list. */
Adds a CANCEL-button to the bottom of the list
addCancelButton
{ "repo_name": "goldsborough/capstone", "path": "source/capstone/ui/ListWidget.java", "license": "mit", "size": 5754 }
[ "com.googlecode.lanterna.gui.component.ActionListBox", "com.googlecode.lanterna.gui.component.Button" ]
import com.googlecode.lanterna.gui.component.ActionListBox; import com.googlecode.lanterna.gui.component.Button;
import com.googlecode.lanterna.gui.component.*;
[ "com.googlecode.lanterna" ]
com.googlecode.lanterna;
432,453
public SAMLSSOServiceProviderDO getServiceProvider(String issuer) throws IdentityException { String path = IdentityRegistryResources.SAML_SSO_SERVICE_PROVIDERS + encodePath(issuer); SAMLSSOServiceProviderDO serviceProviderDO = null; UserRegistry userRegistry = null; String tenantDo...
SAMLSSOServiceProviderDO function(String issuer) throws IdentityException { String path = IdentityRegistryResources.SAML_SSO_SERVICE_PROVIDERS + encodePath(issuer); SAMLSSOServiceProviderDO serviceProviderDO = null; UserRegistry userRegistry = null; String tenantDomain = null; try { userRegistry = (UserRegistry) regist...
/** * Get the service provider * * @param issuer * @return * @throws IdentityException */
Get the service provider
getServiceProvider
{ "repo_name": "JKAUSHALYA/carbon-identity", "path": "components/identity-core/org.wso2.carbon.identity.core/src/main/java/org/wso2/carbon/identity/core/dao/SAMLSSOServiceProviderDAO.java", "license": "apache-2.0", "size": 19495 }
[ "org.wso2.carbon.identity.base.IdentityException", "org.wso2.carbon.identity.core.IdentityRegistryResources", "org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO", "org.wso2.carbon.identity.core.util.IdentityTenantUtil", "org.wso2.carbon.registry.core.exceptions.RegistryException", "org.wso2.car...
import org.wso2.carbon.identity.base.IdentityException; import org.wso2.carbon.identity.core.IdentityRegistryResources; import org.wso2.carbon.identity.core.model.SAMLSSOServiceProviderDO; import org.wso2.carbon.identity.core.util.IdentityTenantUtil; import org.wso2.carbon.registry.core.exceptions.RegistryException; im...
import org.wso2.carbon.identity.base.*; import org.wso2.carbon.identity.core.*; import org.wso2.carbon.identity.core.model.*; import org.wso2.carbon.identity.core.util.*; import org.wso2.carbon.registry.core.exceptions.*; import org.wso2.carbon.registry.core.session.*; import org.wso2.carbon.user.api.*;
[ "org.wso2.carbon" ]
org.wso2.carbon;
2,207,072
azure .eventHubs() .manager() .serviceClient() .getPrivateLinkResources() .getWithResponse("ArunMonocle", "sdk-Namespace-2924", Context.NONE); }
azure .eventHubs() .manager() .serviceClient() .getPrivateLinkResources() .getWithResponse(STR, STR, Context.NONE); }
/** * Sample code: NameSpacePrivateLinkResourcesGet. * * @param azure The entry point for accessing resource management APIs in Azure. */
Sample code: NameSpacePrivateLinkResourcesGet
nameSpacePrivateLinkResourcesGet
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager/src/samples/java/com/azure/resourcemanager/eventhubs/generated/PrivateLinkResourcesGetSamples.java", "license": "mit", "size": 1008 }
[ "com.azure.core.util.Context" ]
import com.azure.core.util.Context;
import com.azure.core.util.*;
[ "com.azure.core" ]
com.azure.core;
1,563,770
public String resolveUrl(String scheme, String path) { return TiUrl.resolve(creationUrl.baseUrl, path, scheme); }
String function(String scheme, String path) { return TiUrl.resolve(creationUrl.baseUrl, path, scheme); }
/** * Resolves the passed in scheme / path, and uses the Proxy's creationUrl if the path is relative. * @param scheme the scheme of Url. * @param path the path of Url. * @return a string representation of URL given its components. * @module.api */
Resolves the passed in scheme / path, and uses the Proxy's creationUrl if the path is relative
resolveUrl
{ "repo_name": "perdona/titanium_mobile", "path": "android/titanium/src/java/org/appcelerator/kroll/KrollProxy.java", "license": "apache-2.0", "size": 41994 }
[ "org.appcelerator.titanium.util.TiUrl" ]
import org.appcelerator.titanium.util.TiUrl;
import org.appcelerator.titanium.util.*;
[ "org.appcelerator.titanium" ]
org.appcelerator.titanium;
1,737,965
public List<CharacterRule> getPVCharacterRules() { String characterRulesString = settingsService.get(SettingsServiceBean.Key.PVCharacterRules.toString()); return PasswordValidatorUtil.getCharacterRules(characterRulesString); }
List<CharacterRule> function() { String characterRulesString = settingsService.get(SettingsServiceBean.Key.PVCharacterRules.toString()); return PasswordValidatorUtil.getCharacterRules(characterRulesString); }
/** * One letter, 2 special characters, etc. Defaults to: * * - one uppercase * * - one lowercase * * - one digit * * - one special character * * TODO: This is more strict than what Dataverse 4.0 shipped with. Consider * keeping the default the same. */
One letter, 2 special characters, etc. Defaults to: - one uppercase - one lowercase - one digit - one special character keeping the default the same
getPVCharacterRules
{ "repo_name": "JayanthyChengan/dataverse", "path": "src/main/java/edu/harvard/iq/dataverse/util/SystemConfig.java", "license": "apache-2.0", "size": 41856 }
[ "edu.harvard.iq.dataverse.settings.SettingsServiceBean", "edu.harvard.iq.dataverse.validation.PasswordValidatorUtil", "java.util.List", "org.passay.CharacterRule" ]
import edu.harvard.iq.dataverse.settings.SettingsServiceBean; import edu.harvard.iq.dataverse.validation.PasswordValidatorUtil; import java.util.List; import org.passay.CharacterRule;
import edu.harvard.iq.dataverse.settings.*; import edu.harvard.iq.dataverse.validation.*; import java.util.*; import org.passay.*;
[ "edu.harvard.iq", "java.util", "org.passay" ]
edu.harvard.iq; java.util; org.passay;
1,604,653
public List<B> findAll(ExtraArgumentsDTO extraArgumentsDTO) { return this.getDao().findAll(extraArgumentsDTO); }
List<B> function(ExtraArgumentsDTO extraArgumentsDTO) { return this.getDao().findAll(extraArgumentsDTO); }
/** * Find all generic. */
Find all generic
findAll
{ "repo_name": "darciopacifico/omr", "path": "modulesOMR/trunk/JazzFramework/src/main/java/br/com/dlp/framework/business/AbstractBusinessImpl.java", "license": "apache-2.0", "size": 6763 }
[ "br.com.dlp.framework.dao.ExtraArgumentsDTO", "java.util.List" ]
import br.com.dlp.framework.dao.ExtraArgumentsDTO; import java.util.List;
import br.com.dlp.framework.dao.*; import java.util.*;
[ "br.com.dlp", "java.util" ]
br.com.dlp; java.util;
911,435
public static MozuUrl getDocumentTypesUrl(Integer pageSize, String responseFields, Integer startIndex) { UrlFormatter formatter = new UrlFormatter("/api/content/documenttypes/?pageSize={pageSize}&startIndex={startIndex}&responseFields={responseFields}"); formatter.formatUrl("pageSize", pageSize); formatter.fo...
static MozuUrl function(Integer pageSize, String responseFields, Integer startIndex) { UrlFormatter formatter = new UrlFormatter(STR); formatter.formatUrl(STR, pageSize); formatter.formatUrl(STR, responseFields); formatter.formatUrl(STR, startIndex); return new MozuUrl(formatter.getResourceUrl(), MozuUrl.UrlLocation.TE...
/** * Get Resource Url for GetDocumentTypes * @param pageSize The number of results to display on each page when creating paged results from a query. The maximum value is 200. * @param responseFields Use this field to include those fields which are not included by default. * @param startIndex When creating page...
Get Resource Url for GetDocumentTypes
getDocumentTypesUrl
{ "repo_name": "eileenzhuang1/mozu-java", "path": "mozu-java-core/src/main/java/com/mozu/api/urls/content/DocumentTypeUrl.java", "license": "mit", "size": 3231 }
[ "com.mozu.api.MozuUrl", "com.mozu.api.utils.UrlFormatter" ]
import com.mozu.api.MozuUrl; import com.mozu.api.utils.UrlFormatter;
import com.mozu.api.*; import com.mozu.api.utils.*;
[ "com.mozu.api" ]
com.mozu.api;
520,097
public static Class<?>[] toClassArray(Collection<Class<?>> collection) { if (collection == null) { return null; } return collection.toArray(new Class<?>[collection.size()]); }
static Class<?>[] function(Collection<Class<?>> collection) { if (collection == null) { return null; } return collection.toArray(new Class<?>[collection.size()]); }
/** * Copy the given Collection into a Class array. The Collection must contain * Class elements only. * * @param collection * the Collection to copy * @return the Class array ({@code null} if the passed-in Collection was * {@code null}) */
Copy the given Collection into a Class array. The Collection must contain Class elements only
toClassArray
{ "repo_name": "HotswapProjects/HotswapAgent", "path": "hotswap-agent-core/src/main/java/org/hotswap/agent/util/spring/util/ClassUtils.java", "license": "gpl-2.0", "size": 55130 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
731,126
boolean allSamePrecendence(int precedence) { boolean allSame = true; int size = size(); for (int index = 0; index < size; index++) { ValueNode valueNode; valueNode = elementAt(index); DataTypeDescriptor valueNodeDTS = valueNode.getTypeServices(); if (valueNodeDTS == null) { ...
boolean allSamePrecendence(int precedence) { boolean allSame = true; int size = size(); for (int index = 0; index < size; index++) { ValueNode valueNode; valueNode = elementAt(index); DataTypeDescriptor valueNodeDTS = valueNode.getTypeServices(); if (valueNodeDTS == null) { return false; } if (precedence != valueNodeDT...
/** * Return whether or not all of the entries in the list have the same * type precendence as the specified value. * * @param precedence The specified precedence. * * @return Whether or not all of the entries in the list have the same * type precendence as the specified value. */
Return whether or not all of the entries in the list have the same type precendence as the specified value
allSamePrecendence
{ "repo_name": "trejkaz/derby", "path": "java/engine/org/apache/derby/impl/sql/compile/ValueNodeList.java", "license": "apache-2.0", "size": 21572 }
[ "org.apache.derby.iapi.types.DataTypeDescriptor" ]
import org.apache.derby.iapi.types.DataTypeDescriptor;
import org.apache.derby.iapi.types.*;
[ "org.apache.derby" ]
org.apache.derby;
1,338,013