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 Set<IGroupMember> toGroupMembers(List<String> groupNames, String fname) { final Set<IGroupMember> groups = new HashSet<>(); for (String groupName : groupNames) { EntityIdentifier[] gs = GroupService.searchForGroups(groupName, IGroupConstants.IS, IPerson.class)...
Set<IGroupMember> function(List<String> groupNames, String fname) { final Set<IGroupMember> groups = new HashSet<>(); for (String groupName : groupNames) { EntityIdentifier[] gs = GroupService.searchForGroups(groupName, IGroupConstants.IS, IPerson.class); IGroupMember group; if (gs != null && gs.length > 0) { group = G...
/** * Convert a list of group names to a list of groups. * * @param groupNames the list of group names * @return the list of groups. */
Convert a list of group names to a list of groups
toGroupMembers
{ "repo_name": "jhelmer-unicon/uPortal", "path": "uportal-war/src/main/java/org/apereo/portal/io/xml/portlet/PortletDefinitionImporterExporter.java", "license": "apache-2.0", "size": 37454 }
[ "java.util.HashSet", "java.util.List", "java.util.Set", "org.apereo.portal.EntityIdentifier", "org.apereo.portal.groups.IGroupConstants", "org.apereo.portal.groups.IGroupMember", "org.apereo.portal.security.IPerson", "org.apereo.portal.services.GroupService" ]
import java.util.HashSet; import java.util.List; import java.util.Set; import org.apereo.portal.EntityIdentifier; import org.apereo.portal.groups.IGroupConstants; import org.apereo.portal.groups.IGroupMember; import org.apereo.portal.security.IPerson; import org.apereo.portal.services.GroupService;
import java.util.*; import org.apereo.portal.*; import org.apereo.portal.groups.*; import org.apereo.portal.security.*; import org.apereo.portal.services.*;
[ "java.util", "org.apereo.portal" ]
java.util; org.apereo.portal;
2,506,630
public static String queueToString(List<AudioTrack> queue) { StringBuilder str = new StringBuilder(); for (int i = 0; i < queue.size(); i++) { // I hate the way this looks, but Intellij says its faster than string concatenation str.append((i + 1)).append(". [").append(queue.get(i).getInfo().tit...
static String function(List<AudioTrack> queue) { StringBuilder str = new StringBuilder(); for (int i = 0; i < queue.size(); i++) { str.append((i + 1)).append(STR).append(queue.get(i).getInfo().title) .append("](").append(queue.get(i).getInfo().uri) .append(STR).append(queue.get(i).getInfo().author).append("\n"); if (i ...
/** * Formats the currently queued songs for output. * * @param queue List of the AudioTracks currently queued * @return Returns formatted String of the songs */
Formats the currently queued songs for output
queueToString
{ "repo_name": "CorruptComputer/PolizziaHut", "path": "src/main/java/xyz/gupton/nickolas/beepsky/music/MusicHelper.java", "license": "agpl-3.0", "size": 2262 }
[ "com.sedmelluq.discord.lavaplayer.track.AudioTrack", "java.util.List" ]
import com.sedmelluq.discord.lavaplayer.track.AudioTrack; import java.util.List;
import com.sedmelluq.discord.lavaplayer.track.*; import java.util.*;
[ "com.sedmelluq.discord", "java.util" ]
com.sedmelluq.discord; java.util;
621,767
public void compilerOutput(ICompilable compilable, String html); /** * Returns the output that is generated when the given {@link ICompilable}
void function(ICompilable compilable, String html); /** * Returns the output that is generated when the given {@link ICompilable}
/** * Sets the given compiler output to the given {@link ICompilable}. * * @param compilable * @param html */
Sets the given compiler output to the given <code>ICompilable</code>
compilerOutput
{ "repo_name": "bkahlert/api-usability-analyzer", "path": "de.fu_berlin.imp.apiua.diff/src/de/fu_berlin/imp/apiua/diff/services/ICompilationService.java", "license": "mit", "size": 1830 }
[ "de.fu_berlin.imp.apiua.diff.model.ICompilable" ]
import de.fu_berlin.imp.apiua.diff.model.ICompilable;
import de.fu_berlin.imp.apiua.diff.model.*;
[ "de.fu_berlin.imp" ]
de.fu_berlin.imp;
2,897,575
private COSBase parseCOSDictionaryValue() throws IOException { long numOffset = source.getPosition(); COSBase value = parseDirObject(); skipSpaces(); // proceed if the given object is a number and the following is a number as well if (!(value instanceof COSNumber) || !isD...
COSBase function() throws IOException { long numOffset = source.getPosition(); COSBase value = parseDirObject(); skipSpaces(); if (!(value instanceof COSNumber) !isDigit()) { return value; } long genOffset = source.getPosition(); COSBase generationNumber = parseDirObject(); skipSpaces(); readExpectedChar('R'); if (!(va...
/** * This will parse a PDF dictionary value. * * @return The parsed Dictionary object. * * @throws IOException If there is an error parsing the dictionary object. */
This will parse a PDF dictionary value
parseCOSDictionaryValue
{ "repo_name": "kalaspuffar/pdfbox", "path": "pdfbox/src/main/java/org/apache/pdfbox/pdfparser/BaseParser.java", "license": "apache-2.0", "size": 42779 }
[ "java.io.IOException", "org.apache.pdfbox.cos.COSBase", "org.apache.pdfbox.cos.COSInteger", "org.apache.pdfbox.cos.COSNull", "org.apache.pdfbox.cos.COSNumber", "org.apache.pdfbox.cos.COSObjectKey" ]
import java.io.IOException; import org.apache.pdfbox.cos.COSBase; import org.apache.pdfbox.cos.COSInteger; import org.apache.pdfbox.cos.COSNull; import org.apache.pdfbox.cos.COSNumber; import org.apache.pdfbox.cos.COSObjectKey;
import java.io.*; import org.apache.pdfbox.cos.*;
[ "java.io", "org.apache.pdfbox" ]
java.io; org.apache.pdfbox;
2,469,092
void addDom(String instanceId, String parentRef, JSONObject element, int index) { throwIfNotDomThread(); WXDomStatement statement = mDomRegistries.get(instanceId); if (statement == null) { return; } statement.addDom(element, parentRef, index); }
void addDom(String instanceId, String parentRef, JSONObject element, int index) { throwIfNotDomThread(); WXDomStatement statement = mDomRegistries.get(instanceId); if (statement == null) { return; } statement.addDom(element, parentRef, index); }
/** * Invoke {@link WXDomStatement} for adding a dom node to its parent in a specific location. * * @param instanceId {@link com.taobao.weex.WXSDKInstance#mInstanceId} for the instance * @param element the dom object in the form of JSONObject * @param parentRef parent to which the dom is added. * @par...
Invoke <code>WXDomStatement</code> for adding a dom node to its parent in a specific location
addDom
{ "repo_name": "Neeeo/incubator-weex", "path": "android/sdk/src/main/java/com/taobao/weex/dom/WXDomManager.java", "license": "apache-2.0", "size": 25226 }
[ "com.alibaba.fastjson.JSONObject" ]
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.*;
[ "com.alibaba.fastjson" ]
com.alibaba.fastjson;
2,513,086
final ArrayList<List<T>> permutationsResults = new ArrayList<>();
final ArrayList<List<T>> permutationsResults = new ArrayList<>();
/** * Generates permutations of a set of elements * * @param elements set containig elements to calculate permutations * @return the collection of permutations */
Generates permutations of a set of elements
generatePermutations
{ "repo_name": "volmos/combinatory4j", "path": "src/main/java/com/victorolmos/combinatory4j/Combinatory.java", "license": "mit", "size": 7534 }
[ "java.util.ArrayList", "java.util.List" ]
import java.util.ArrayList; import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,777,738
@Override public boolean isOnChain(Sha256Hash blockHash) throws BlockStoreException { boolean onChain; Connection conn = getConnection(); try (PreparedStatement s = conn .prepareStatement("SELECT block_height from Blocks " + "WHERE block_hash_index=? AND block_hash=?")) { s.setLong(1, getHashIndex(bloc...
boolean function(Sha256Hash blockHash) throws BlockStoreException { boolean onChain; Connection conn = getConnection(); try (PreparedStatement s = conn .prepareStatement(STR + STR)) { s.setLong(1, getHashIndex(blockHash)); s.setBytes(2, blockHash.getBytes()); ResultSet r = s.executeQuery(); onChain = (r.next() && r.get...
/** * Check if the block is on the block chain * * @param blockHash * The block to check * @return TRUE if the block is on the block chain * @throws BlockStoreException * Unable to get the block status */
Check if the block is on the block chain
isOnChain
{ "repo_name": "cping/RipplePower", "path": "eclipse/RipplePower/src/org/ripple/power/txns/btc/BlockStoreDataBase.java", "license": "apache-2.0", "size": 97318 }
[ "java.sql.Connection", "java.sql.PreparedStatement", "java.sql.ResultSet", "java.sql.SQLException" ]
import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
2,125,710
public void setDynPriorityChange (BigDecimal DynPriorityChange);
void function (BigDecimal DynPriorityChange);
/** Set Dynamic Priority Change. * Change of priority when Activity is suspended waiting for user */
Set Dynamic Priority Change. Change of priority when Activity is suspended waiting for user
setDynPriorityChange
{ "repo_name": "braully/adempiere", "path": "base/src/org/compiere/model/I_AD_WF_Node.java", "license": "gpl-2.0", "size": 22605 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
48,012
public MapTile getTileBack() { return map.getTile(getCoord().sub_ip(direction.getMoveVector())); }
MapTile function() { return map.getTile(getCoord().sub_ip(direction.getMoveVector())); }
/** * Get tile behind this entity * * @return tile behind */
Get tile behind this entity
getTileBack
{ "repo_name": "MightyPork/tortuga", "path": "src/net/tortuga/level/map/entities/Entity.java", "license": "bsd-2-clause", "size": 27043 }
[ "net.tortuga.level.map.tiles.MapTile" ]
import net.tortuga.level.map.tiles.MapTile;
import net.tortuga.level.map.tiles.*;
[ "net.tortuga.level" ]
net.tortuga.level;
1,126,982
public long rebuild(final OProgressListener iProgressListener) { clear(); long documentIndexed = 0; final boolean intentInstalled = getDatabase().declareIntent(new OIntentMassiveInsert()); acquireExclusiveLock(); try { int documentNum = 0; long documentTotal = 0; for (final Strin...
long function(final OProgressListener iProgressListener) { clear(); long documentIndexed = 0; final boolean intentInstalled = getDatabase().declareIntent(new OIntentMassiveInsert()); acquireExclusiveLock(); try { int documentNum = 0; long documentTotal = 0; for (final String cluster : clustersToIndex) documentTotal += ...
/** * Populates the index with all the existent records. Uses the massive insert intent to speed up and keep the consumed memory low. */
Populates the index with all the existent records. Uses the massive insert intent to speed up and keep the consumed memory low
rebuild
{ "repo_name": "MaDaPHaKa/Orient-object", "path": "core/src/main/java/com/orientechnologies/orient/core/index/OIndexMVRBTreeAbstract.java", "license": "apache-2.0", "size": 24841 }
[ "com.orientechnologies.common.listener.OProgressListener", "com.orientechnologies.orient.core.intent.OIntentMassiveInsert", "com.orientechnologies.orient.core.record.ORecord", "com.orientechnologies.orient.core.record.impl.ODocument", "java.util.Collection" ]
import com.orientechnologies.common.listener.OProgressListener; import com.orientechnologies.orient.core.intent.OIntentMassiveInsert; import com.orientechnologies.orient.core.record.ORecord; import com.orientechnologies.orient.core.record.impl.ODocument; import java.util.Collection;
import com.orientechnologies.common.listener.*; import com.orientechnologies.orient.core.intent.*; import com.orientechnologies.orient.core.record.*; import com.orientechnologies.orient.core.record.impl.*; import java.util.*;
[ "com.orientechnologies.common", "com.orientechnologies.orient", "java.util" ]
com.orientechnologies.common; com.orientechnologies.orient; java.util;
207,082
public void testShell() throws Exception { InetSocketAddress addr = scheduler.server.getListenerAddress(); Configuration conf = new Configuration(); conf.set("mapred.fairscheduler.server.address", "localhost:" + addr.getPort()); FairSchedulerShell shell = new FairSchedulerShell(); shell.setConf(co...
void function() throws Exception { InetSocketAddress addr = scheduler.server.getListenerAddress(); Configuration conf = new Configuration(); conf.set(STR, STR + addr.getPort()); FairSchedulerShell shell = new FairSchedulerShell(); shell.setConf(conf); shell.setFSMaxSlots("tt1", TaskType.MAP, 1); shell.setFSMaxSlots("tt...
/** * Test that {@link FairSchedulerShell} get and set maximum slots correctly. * @throws Exception */
Test that <code>FairSchedulerShell</code> get and set maximum slots correctly
testShell
{ "repo_name": "jchen123/hadoop-20-warehouse-fix", "path": "src/contrib/fairscheduler/src/test/org/apache/hadoop/mapred/TestFairScheduler.java", "license": "apache-2.0", "size": 109598 }
[ "java.net.InetSocketAddress", "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.mapreduce.TaskType" ]
import java.net.InetSocketAddress; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.mapreduce.TaskType;
import java.net.*; import org.apache.hadoop.conf.*; import org.apache.hadoop.mapreduce.*;
[ "java.net", "org.apache.hadoop" ]
java.net; org.apache.hadoop;
1,708,837
public void setMeasure(IQualitativeMeasure pfm) { this.qMeasureType = QMeasureType.UNSUPERVISED; this.qMeasure = pfm; } public LinearSelfConfigurator(ACache source, ACache target) { this(source, target, 0.9, 1); } public LinearSelfConfigurator(ACache source, ACac...
void function(IQualitativeMeasure pfm) { this.qMeasureType = QMeasureType.UNSUPERVISED; this.qMeasure = pfm; } public LinearSelfConfigurator(ACache source, ACache target) { this(source, target, 0.9, 1); } public LinearSelfConfigurator(ACache source, ACache target, double minCoverage, double beta, Map<String, String> me...
/** * Set PFMs based upon name. * if name.equals("reference") using ReferencePseudoMeasures.class: Nikolov/D'Aquin/Motta ESWC 2012. */
Set PFMs based upon name. if name.equals("reference") using ReferencePseudoMeasures.class: Nikolov/D'Aquin/Motta ESWC 2012
setMeasure
{ "repo_name": "AKSW/LIMES-CORE", "path": "limes-core/src/main/java/org/aksw/limes/core/ml/algorithm/euclid/LinearSelfConfigurator.java", "license": "gpl-2.0", "size": 22326 }
[ "java.util.Map", "org.aksw.limes.core.evaluation.qualititativeMeasures.IQualitativeMeasure", "org.aksw.limes.core.io.cache.ACache" ]
import java.util.Map; import org.aksw.limes.core.evaluation.qualititativeMeasures.IQualitativeMeasure; import org.aksw.limes.core.io.cache.ACache;
import java.util.*; import org.aksw.limes.core.evaluation.*; import org.aksw.limes.core.io.cache.*;
[ "java.util", "org.aksw.limes" ]
java.util; org.aksw.limes;
1,993,334
NativeBinarySpec getTestedBinary();
NativeBinarySpec getTestedBinary();
/** * The tested binary. */
The tested binary
getTestedBinary
{ "repo_name": "HenryHarper/Acquire-Reboot", "path": "gradle/src/testing-native/org/gradle/nativeplatform/test/NativeTestSuiteBinarySpec.java", "license": "mit", "size": 2037 }
[ "org.gradle.nativeplatform.NativeBinarySpec" ]
import org.gradle.nativeplatform.NativeBinarySpec;
import org.gradle.nativeplatform.*;
[ "org.gradle.nativeplatform" ]
org.gradle.nativeplatform;
2,329,352
// TODO(bazel-team): support formatting arguments, and more complex Python patterns. public static Appendable formatTo(Appendable buffer, String pattern, List<?> arguments) throws IllegalFormatException { // N.B. MissingFormatWidthException is the only kind of IllegalFormatException // whose construct...
static Appendable function(Appendable buffer, String pattern, List<?> arguments) throws IllegalFormatException { int length = pattern.length(); int argLength = arguments.size(); int i = 0; int a = 0; while (i < length) { int p = pattern.indexOf('%', i); if (p == -1) { append(buffer, pattern, i, length); break; } if (p ...
/** * Perform Python-style string formatting, as per pattern % tuple * Limitations: only %d %s %r %% are supported. * * @param buffer an Appendable to output to. * @param pattern a format string. * @param arguments a list containing positional arguments. * @return the buffer, in fluent style. */
Perform Python-style string formatting, as per pattern % tuple Limitations: only %d %s %r %% are supported
formatTo
{ "repo_name": "vt09/bazel", "path": "src/main/java/com/google/devtools/build/lib/syntax/Printer.java", "license": "apache-2.0", "size": 15522 }
[ "com.google.devtools.build.lib.syntax.SkylarkList", "java.util.IllegalFormatException", "java.util.List", "java.util.MissingFormatWidthException" ]
import com.google.devtools.build.lib.syntax.SkylarkList; import java.util.IllegalFormatException; import java.util.List; import java.util.MissingFormatWidthException;
import com.google.devtools.build.lib.syntax.*; import java.util.*;
[ "com.google.devtools", "java.util" ]
com.google.devtools; java.util;
103,716
private void verify(Document doc) throws Exception { secEngine.processSecurityHeader(doc, null, null, crypto); if (LOG.isDebugEnabled()) { LOG.debug("Verfied and decrypted message:"); String outputString = XMLUtils.prettyDocumentToString(doc); LOG....
void function(Document doc) throws Exception { secEngine.processSecurityHeader(doc, null, null, crypto); if (LOG.isDebugEnabled()) { LOG.debug(STR); String outputString = XMLUtils.prettyDocumentToString(doc); LOG.debug(outputString); } }
/** * Verifies the soap envelope * <p/> * * @param doc * @throws Exception Thrown when there is a problem in verification */
Verifies the soap envelope
verify
{ "repo_name": "clibois/wss4j", "path": "ws-security-dom/src/test/java/org/apache/wss4j/dom/message/NoSoapPrefixSignatureTest.java", "license": "apache-2.0", "size": 3324 }
[ "org.apache.wss4j.common.util.XMLUtils", "org.w3c.dom.Document" ]
import org.apache.wss4j.common.util.XMLUtils; import org.w3c.dom.Document;
import org.apache.wss4j.common.util.*; import org.w3c.dom.*;
[ "org.apache.wss4j", "org.w3c.dom" ]
org.apache.wss4j; org.w3c.dom;
2,914,408
public T caseAccessRelationship(IAccessRelationship object) { return null; }
T function(IAccessRelationship object) { return null; }
/** * Returns the result of interpreting the object as an instance of '<em>Access Relationship</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switc...
Returns the result of interpreting the object as an instance of 'Access Relationship'. This implementation returns null; returning a non-null result will terminate the switch.
caseAccessRelationship
{ "repo_name": "archimatetool/archi", "path": "com.archimatetool.model/src/com/archimatetool/model/util/ArchimateSwitch.java", "license": "mit", "size": 256079 }
[ "com.archimatetool.model.IAccessRelationship" ]
import com.archimatetool.model.IAccessRelationship;
import com.archimatetool.model.*;
[ "com.archimatetool.model" ]
com.archimatetool.model;
2,036,923
public static void w(Throwable thr) { android.util.Log.w(TAG, buildMessage(""), thr); }
static void function(Throwable thr) { android.util.Log.w(TAG, buildMessage(""), thr); }
/** * Send an empty WARN log message and log the exception. * * @param thr An exception to log */
Send an empty WARN log message and log the exception
w
{ "repo_name": "rabbpigPan/smartedu", "path": "src/com/engc/smartedu/support/utils/AppLogger.java", "license": "gpl-3.0", "size": 4565 }
[ "android.util.Log" ]
import android.util.Log;
import android.util.*;
[ "android.util" ]
android.util;
1,392,033
public void getNotificationSettings(NotificationSettingsFormBean formBean) throws BusinessException{ logger.debug("getNotificationSettings - START"); try { List <NotificationSetting> nsl = notificationSettingDao.getSettings(formBean.getProjectDetailId(), formBean.getUserId(), formBean.getO...
void function(NotificationSettingsFormBean formBean) throws BusinessException{ logger.debug(STR); try { List <NotificationSetting> nsl = notificationSettingDao.getSettings(formBean.getProjectDetailId(), formBean.getUserId(), formBean.getOrganizationId()); HashMap<Byte, Byte> statusMap = new HashMap<Byte, Byte>(); for (...
/** * Populates the form bean with the settings from the database based * on the ProjectDetailId, userId and organizationId * @param projectDetailId * @param userId * @param organizationId * @return * @throws BusinessException */
Populates the form bean with the settings from the database based on the ProjectDetailId, userId and organizationId
getNotificationSettings
{ "repo_name": "CodeSphere/termitaria", "path": "TermitariaTS/src/ro/cs/ts/business/BLNotificationSettings.java", "license": "agpl-3.0", "size": 24723 }
[ "java.util.HashMap", "java.util.List", "ro.cs.ts.common.IConstant", "ro.cs.ts.entity.NotificationSetting", "ro.cs.ts.entity.NotificationSettingsFormBean", "ro.cs.ts.exception.BusinessException", "ro.cs.ts.exception.ICodeException" ]
import java.util.HashMap; import java.util.List; import ro.cs.ts.common.IConstant; import ro.cs.ts.entity.NotificationSetting; import ro.cs.ts.entity.NotificationSettingsFormBean; import ro.cs.ts.exception.BusinessException; import ro.cs.ts.exception.ICodeException;
import java.util.*; import ro.cs.ts.common.*; import ro.cs.ts.entity.*; import ro.cs.ts.exception.*;
[ "java.util", "ro.cs.ts" ]
java.util; ro.cs.ts;
2,203,231
public Map<String, String> getTables() { Map<String, String> tables = new HashMap<String, String>(); try { Class<?> clz = this.getClass(); Field[] fields = clz.getDeclaredFields(); for(Field field : fields) { String name = field.getName(); if(name.startsWith("TABLE_")) { String table ...
Map<String, String> function() { Map<String, String> tables = new HashMap<String, String>(); try { Class<?> clz = this.getClass(); Field[] fields = clz.getDeclaredFields(); for(Field field : fields) { String name = field.getName(); if(name.startsWith(STR)) { String table = (String) field.get(this); tables.put(name.repl...
/** * Retrieves the table queries using java reflection. Query variables therefore need to be named * in a specified way in order to be recognized by this method. * @return a Map containing the table name as key and the creation query as value */
Retrieves the table queries using java reflection. Query variables therefore need to be named in a specified way in order to be recognized by this method
getTables
{ "repo_name": "artcodix/droid-memory", "path": "src/main/java/com/artcodix/lib/droidmemory/DatabaseConfiguration.java", "license": "gpl-2.0", "size": 2225 }
[ "java.lang.reflect.Field", "java.util.HashMap", "java.util.Map" ]
import java.lang.reflect.Field; import java.util.HashMap; import java.util.Map;
import java.lang.reflect.*; import java.util.*;
[ "java.lang", "java.util" ]
java.lang; java.util;
1,385,732
public void takeSnapshot(String snapshotName, String table, Map<String, String> options, String... keyspaces) throws IOException { if (table != null) { if (keyspaces.length != 1) { throw new IOException("When specifying the table for a snapshot, you must s...
void function(String snapshotName, String table, Map<String, String> options, String... keyspaces) throws IOException { if (table != null) { if (keyspaces.length != 1) { throw new IOException(STR); } ssProxy.takeSnapshot(snapshotName, options, keyspaces[0] + "." + table); } else ssProxy.takeSnapshot(snapshotName, optio...
/** * Take a snapshot of all the keyspaces, optionally specifying only a specific column family. * * @param snapshotName the name of the snapshot. * @param table the table to snapshot or all on null * @param options Options (skipFlush for now) * @param keyspaces the keyspaces to snapshot ...
Take a snapshot of all the keyspaces, optionally specifying only a specific column family
takeSnapshot
{ "repo_name": "tommystendahl/cassandra", "path": "src/java/org/apache/cassandra/tools/NodeProbe.java", "license": "apache-2.0", "size": 63752 }
[ "java.io.IOException", "java.util.Map" ]
import java.io.IOException; import java.util.Map;
import java.io.*; import java.util.*;
[ "java.io", "java.util" ]
java.io; java.util;
390,936
public Timestamp getAssetServiceDate(); public static final String COLUMNNAME_AssetValueAmt = "AssetValueAmt";
Timestamp function(); public static final String COLUMNNAME_AssetValueAmt = STR;
/** Get In Service Date. * Date when Asset was put into service */
Get In Service Date. Date when Asset was put into service
getAssetServiceDate
{ "repo_name": "geneos/adempiere", "path": "base/src/org/compiere/model/I_A_Asset_Change.java", "license": "gpl-2.0", "size": 25530 }
[ "java.sql.Timestamp" ]
import java.sql.Timestamp;
import java.sql.*;
[ "java.sql" ]
java.sql;
1,797,857
public Date[] getDates() { return getDateArray(DATE); }
Date[] function() { return getDateArray(DATE); }
/** * Returns a list of dates indicating point in time something interesting happened to the * resource. * @return the list of dates or null if no dates are set */
Returns a list of dates indicating point in time something interesting happened to the resource
getDates
{ "repo_name": "apache/xml-graphics-commons", "path": "src/main/java/org/apache/xmlgraphics/xmp/schemas/DublinCoreAdapter.java", "license": "apache-2.0", "size": 11908 }
[ "java.util.Date" ]
import java.util.Date;
import java.util.*;
[ "java.util" ]
java.util;
989,336
public GraphicsNode nodeHitAt(Point2D p) { return (contains(p) ? this : null); } static double EPSILON = 1e-6;
GraphicsNode function(Point2D p) { return (contains(p) ? this : null); } static double EPSILON = 1e-6;
/** * Returns the GraphicsNode containing point p if this node or one of its * children is sensitive to mouse events at p. * * @param p the specified Point2D in the user space */
Returns the GraphicsNode containing point p if this node or one of its children is sensitive to mouse events at p
nodeHitAt
{ "repo_name": "srnsw/xena", "path": "plugins/image/ext/src/batik-1.7/sources/org/apache/batik/gvt/AbstractGraphicsNode.java", "license": "gpl-3.0", "size": 31193 }
[ "java.awt.geom.Point2D" ]
import java.awt.geom.Point2D;
import java.awt.geom.*;
[ "java.awt" ]
java.awt;
2,306,309
DataNode[] listDataNodes() { DataNode[] list = new DataNode[dataNodes.size()]; for (int i = 0; i < dataNodes.size(); i++) { list[i] = dataNodes.get(i).datanode; } return list; }
DataNode[] listDataNodes() { DataNode[] list = new DataNode[dataNodes.size()]; for (int i = 0; i < dataNodes.size(); i++) { list[i] = dataNodes.get(i).datanode; } return list; }
/** * Returns the current set of datanodes */
Returns the current set of datanodes
listDataNodes
{ "repo_name": "Shmuma/hadoop", "path": "src/test/org/apache/hadoop/hdfs/MiniDFSCluster.java", "license": "apache-2.0", "size": 38292 }
[ "org.apache.hadoop.hdfs.server.datanode.DataNode" ]
import org.apache.hadoop.hdfs.server.datanode.DataNode;
import org.apache.hadoop.hdfs.server.datanode.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
2,601,244
private final static ArrayList<String> getRowColAndGapsTrimmed(String s) { if (s.indexOf('|') != -1) s = s.replaceAll("\\|", "]["); ArrayList<String> retList = new ArrayList<String>(Math.max(s.length() >> 2 + 1, 3)); // Aprox return length. int s0 = 0, s1 = 0; // '[' and ']' count. int st = 0; //...
final static ArrayList<String> function(String s) { if (s.indexOf(' ') != -1) s = s.replaceAll(STR, "]["); ArrayList<String> retList = new ArrayList<String>(Math.max(s.length() >> 2 + 1, 3)); int s0 = 0, s1 = 0; int st = 0; for (int i = 0, iSz = s.length(); i < iSz; i++) { char c = s.charAt(i); if (c == '[') { s0++; } ...
/** Parses "AAA[BBB]CCC[DDD]EEE" into {"AAA", "BBB", "CCC", "DDD", "EEE", "FFF"}. Handles empty parts. Will always start and end outside * a [] block so that the number of returned elemets will always be uneven and at least of length 3. * <p> * "|" is interprated as "][". * @param s The string. Might be "" ...
Parses "AAA[BBB]CCC[DDD]EEE" into {"AAA", "BBB", "CCC", "DDD", "EEE", "FFF"}. Handles empty parts. Will always start and end outside a [] block so that the number of returned elemets will always be uneven and at least of length 3. "|" is interprated as "]["
getRowColAndGapsTrimmed
{ "repo_name": "chily299/Citologias", "path": "miglayout-src/net/miginfocom/layout/ConstraintParser.java", "license": "apache-2.0", "size": 50794 }
[ "java.util.ArrayList" ]
import java.util.ArrayList;
import java.util.*;
[ "java.util" ]
java.util;
2,005,090
public static void startActivity(@NonNull final String pkg, @NonNull final String cls, @AnimRes final int enterAnim, @AnimRes final int exitAnim) { Context context = getTopActivityOrApp(); ...
static void function(@NonNull final String pkg, @NonNull final String cls, @AnimRes final int enterAnim, @AnimRes final int exitAnim) { Context context = getTopActivityOrApp(); startActivity(context, null, pkg, cls, getOptionsBundle(context, enterAnim, exitAnim)); if (Build.VERSION.SDK_INT < Build.VERSION_CODES.JELLY_B...
/** * Start the activity. * * @param pkg The name of the package. * @param cls The name of the class. * @param enterAnim A resource ID of the animation resource to use for the * incoming activity. * @param exitAnim A resource ID of the animation resource ...
Start the activity
startActivity
{ "repo_name": "didi/DoraemonKit", "path": "Android/dokit-util/src/main/java/com/didichuxing/doraemonkit/util/ActivityUtils.java", "license": "apache-2.0", "size": 90700 }
[ "android.app.Activity", "android.content.Context", "android.os.Build", "androidx.annotation.AnimRes", "androidx.annotation.NonNull" ]
import android.app.Activity; import android.content.Context; import android.os.Build; import androidx.annotation.AnimRes; import androidx.annotation.NonNull;
import android.app.*; import android.content.*; import android.os.*; import androidx.annotation.*;
[ "android.app", "android.content", "android.os", "androidx.annotation" ]
android.app; android.content; android.os; androidx.annotation;
2,638,846
public String getName(String encoding) throws UnsupportedEncodingException { return new String(response.getPayload(), 3, 16, encoding).trim(); }
String function(String encoding) throws UnsupportedEncodingException { return new String(response.getPayload(), 3, 16, encoding).trim(); }
/** * Returns name of the device decoded using given encoding. Encoding * depends on firmware language and must be specified in the binding * configuration. * * @param encoding * encoding for the text * @return device name * @throws UnsupportedEncodingException * ...
Returns name of the device decoded using given encoding. Encoding depends on firmware language and must be specified in the binding configuration
getName
{ "repo_name": "idserda/openhab", "path": "bundles/binding/org.openhab.binding.satel/src/main/java/org/openhab/binding/satel/command/ReadDeviceInfoCommand.java", "license": "epl-1.0", "size": 4147 }
[ "java.io.UnsupportedEncodingException" ]
import java.io.UnsupportedEncodingException;
import java.io.*;
[ "java.io" ]
java.io;
1,317,190
@Override public int compareTo(final CidsTrigger o) { return 0; }
int function(final CidsTrigger o) { return 0; }
/** * DOCUMENT ME! * * @param o DOCUMENT ME! * * @return DOCUMENT ME! */
DOCUMENT ME
compareTo
{ "repo_name": "cismet/watergis-server", "path": "src/main/java/de/cismet/watergisserver/trigger/SgSuTrigger.java", "license": "lgpl-3.0", "size": 4046 }
[ "de.cismet.cids.trigger.CidsTrigger" ]
import de.cismet.cids.trigger.CidsTrigger;
import de.cismet.cids.trigger.*;
[ "de.cismet.cids" ]
de.cismet.cids;
569,182
public void addConnections(Entity entity, Expression expression) throws ExpressionParserException { // connections should be compound List<Expression> connections = getNested(expression); for (Expression connection : connections) { if (connection.getValue().isCompound()) { throw new Express...
void function(Entity entity, Expression expression) throws ExpressionParserException { List<Expression> connections = getNested(expression); for (Expression connection : connections) { if (connection.getValue().isCompound()) { throw new ExpressionParserException(STR, expression); } Entity destination = context.getOrCre...
/** * Adds connections to other entities. If the entities do not yet exist, * they are created and added so they can be populated later. * @param entity * @param expression * @throws ExpressionParserException */
Adds connections to other entities. If the entities do not yet exist, they are created and added so they can be populated later
addConnections
{ "repo_name": "angelusmetal/adventure", "path": "src/main/java/com/adventure/engine/script/expression/EntityParser.java", "license": "apache-2.0", "size": 3592 }
[ "com.adventure.engine.entity.Entity", "com.adventure.engine.script.syntax.Expression", "java.util.List" ]
import com.adventure.engine.entity.Entity; import com.adventure.engine.script.syntax.Expression; import java.util.List;
import com.adventure.engine.entity.*; import com.adventure.engine.script.syntax.*; import java.util.*;
[ "com.adventure.engine", "java.util" ]
com.adventure.engine; java.util;
1,927,452
@Deprecated public static boolean isJava15() { String javaVersion = System.getProperty("java.version").toLowerCase(Locale.US); return javaVersion.startsWith("1.5"); }
static boolean function() { String javaVersion = System.getProperty(STR).toLowerCase(Locale.US); return javaVersion.startsWith("1.5"); }
/** * Is this Java 1.5 * * @return <tt>true</tt> if its Java 1.5, <tt>false</tt> if its not (for example Java 1.6 or better) * @deprecated will be removed in the near future as Camel now requires JDK1.6+ */
Is this Java 1.5
isJava15
{ "repo_name": "shuliangtao/apache-camel-2.13.0-src", "path": "components/camel-test/src/main/java/org/apache/camel/test/junit4/TestSupport.java", "license": "apache-2.0", "size": 19853 }
[ "java.util.Locale" ]
import java.util.Locale;
import java.util.*;
[ "java.util" ]
java.util;
2,178,996
void handleNavigationOnModified(@NonNull UIGotoContext gotoCtx);
void handleNavigationOnModified(@NonNull UIGotoContext gotoCtx);
/** * Implements page specific code how user can handle navigation on modified screen data. */
Implements page specific code how user can handle navigation on modified screen data
handleNavigationOnModified
{ "repo_name": "fjalvingh/domui", "path": "to.etc.domui/src/main/java/to/etc/domui/dom/html/IPageWithNavigationHandler.java", "license": "lgpl-2.1", "size": 483 }
[ "org.eclipse.jdt.annotation.NonNull", "to.etc.domui.state.UIGotoContext" ]
import org.eclipse.jdt.annotation.NonNull; import to.etc.domui.state.UIGotoContext;
import org.eclipse.jdt.annotation.*; import to.etc.domui.state.*;
[ "org.eclipse.jdt", "to.etc.domui" ]
org.eclipse.jdt; to.etc.domui;
1,422,414
@Test public void testParallelColocatedPropagationOrderPolicyPartition() throws Exception { Integer lnPort = (Integer) vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1)); Integer nyPort = (Integer) vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort)); createCacheInVMs(nyPort, vm2,...
void function() throws Exception { Integer lnPort = (Integer) vm0.invoke(() -> WANTestBase.createFirstLocatorWithDSId(1)); Integer nyPort = (Integer) vm1.invoke(() -> WANTestBase.createFirstRemoteLocator(2, lnPort)); createCacheInVMs(nyPort, vm2, vm3); createReceiverInVMs(vm2, vm3); createCacheInVMs(lnPort, vm4, vm5, v...
/** * Colocated regions using ConcurrentParallelGatewaySender. Normal scenario * * @throws Exception */
Colocated regions using ConcurrentParallelGatewaySender. Normal scenario
testParallelColocatedPropagationOrderPolicyPartition
{ "repo_name": "charliemblack/geode", "path": "geode-wan/src/test/java/org/apache/geode/internal/cache/wan/concurrent/ConcurrentParallelGatewaySenderDUnitTest.java", "license": "apache-2.0", "size": 35594 }
[ "org.apache.geode.cache.wan.GatewaySender", "org.apache.geode.internal.cache.wan.WANTestBase" ]
import org.apache.geode.cache.wan.GatewaySender; import org.apache.geode.internal.cache.wan.WANTestBase;
import org.apache.geode.cache.wan.*; import org.apache.geode.internal.cache.wan.*;
[ "org.apache.geode" ]
org.apache.geode;
2,469,846
Future<GatewayDiagnosticsStatus> getDiagnosticsV2Async(String gatewayId);
Future<GatewayDiagnosticsStatus> getDiagnosticsV2Async(String gatewayId);
/** * The Get Diagnostics V2 operation gets information about the current * virtual network gateway diagnostics session * * @param gatewayId Required. The virtual network gateway Id. * @return The status of a gateway diagnostics operation. */
The Get Diagnostics V2 operation gets information about the current virtual network gateway diagnostics session
getDiagnosticsV2Async
{ "repo_name": "flydream2046/azure-sdk-for-java", "path": "service-management/azure-svc-mgmt-network/src/main/java/com/microsoft/windowsazure/management/network/GatewayOperations.java", "license": "apache-2.0", "size": 159849 }
[ "com.microsoft.windowsazure.management.network.models.GatewayDiagnosticsStatus", "java.util.concurrent.Future" ]
import com.microsoft.windowsazure.management.network.models.GatewayDiagnosticsStatus; import java.util.concurrent.Future;
import com.microsoft.windowsazure.management.network.models.*; import java.util.concurrent.*;
[ "com.microsoft.windowsazure", "java.util" ]
com.microsoft.windowsazure; java.util;
174,868
@Override public Metadata getMetadata() { return null; }
Metadata function() { return null; }
/** * Returns {@code null} since there is no metadata. */
Returns null since there is no metadata
getMetadata
{ "repo_name": "apache/sis", "path": "storage/sis-storage/src/test/java/org/apache/sis/storage/DataStoreMock.java", "license": "apache-2.0", "size": 2636 }
[ "org.opengis.metadata.Metadata" ]
import org.opengis.metadata.Metadata;
import org.opengis.metadata.*;
[ "org.opengis.metadata" ]
org.opengis.metadata;
2,002,649
public static int insertBook(Book book) { Object[] params = new Object[] { book.getTitle(), book.getAuthor(), book.getPrice() }; String SQL = "INSERT INTO BOOKS (TITLE, AUTHOR, PRICE) VALUES (?, ?, ?)"; return Yank.execute(SQL, params); }
static int function(Book book) { Object[] params = new Object[] { book.getTitle(), book.getAuthor(), book.getPrice() }; String SQL = STR; return Yank.execute(SQL, params); }
/** * This method demonstrates: * <ul> * <li>executing an SQL statement with DBProxy.executeSQL</li> * <li>using a prepared statement with corresponding params</li> * </ul> */
This method demonstrates: executing an SQL statement with DBProxy.executeSQL using a prepared statement with corresponding params
insertBook
{ "repo_name": "habibmasuro/XDropWizard", "path": "src/main/java/com/xeiam/xdropwizard/business/BooksDAO.java", "license": "apache-2.0", "size": 4818 }
[ "com.xeiam.yank.Yank" ]
import com.xeiam.yank.Yank;
import com.xeiam.yank.*;
[ "com.xeiam.yank" ]
com.xeiam.yank;
232,463
public Collection values() { throw new UnsupportedOperationException(); } // --------------------------------------------------------- Package Methods
Collection function() { throw new UnsupportedOperationException(); }
/** * <p>The <code>values()</code> method is not supported.</p> */
The <code>values()</code> method is not supported
values
{ "repo_name": "shuliangtao/struts-1.3.10", "path": "src/faces/src/main/java/org/apache/struts/faces/util/MessagesMap.java", "license": "apache-2.0", "size": 6962 }
[ "java.util.Collection" ]
import java.util.Collection;
import java.util.*;
[ "java.util" ]
java.util;
2,391,318
public Map<COSObjectKey, Long> getXrefTable() { return xrefTable; }
Map<COSObjectKey, Long> function() { return xrefTable; }
/** * Returns the xrefTable which is a mapping of ObjectKeys * to byte offsets in the file. * @return mapping of ObjectsKeys to byte offsets */
Returns the xrefTable which is a mapping of ObjectKeys to byte offsets in the file
getXrefTable
{ "repo_name": "kzganesan/PdfBox-Android", "path": "library/src/main/java/org/apache/pdfbox/cos/COSDocument.java", "license": "apache-2.0", "size": 16698 }
[ "java.util.Map" ]
import java.util.Map;
import java.util.*;
[ "java.util" ]
java.util;
1,589,307
public static long getTime(Calendar c, int hour, int minute, int second) { c.clear(Calendar.MILLISECOND); c.set(1970, 0, 1, hour, minute, second); return c.getTimeInMillis(); }
static long function(Calendar c, int hour, int minute, int second) { c.clear(Calendar.MILLISECOND); c.set(1970, 0, 1, hour, minute, second); return c.getTimeInMillis(); }
/** * Get a timestamp for the given hour, minute, and second. The date will * be assumed to be January 1, 1970. * @param c a Calendar to use to help compute the result. The state of the * Calendar will be overwritten. * @param hour the hour, on a 24 hour clock * @param minute the min...
Get a timestamp for the given hour, minute, and second. The date will be assumed to be January 1, 1970
getTime
{ "repo_name": "effrafax/Prefux", "path": "src/main/java/prefux/util/TimeLib.java", "license": "bsd-3-clause", "size": 12295 }
[ "java.util.Calendar" ]
import java.util.Calendar;
import java.util.*;
[ "java.util" ]
java.util;
2,107,077
public static String toWebSiteDisplay(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showAlignmentBlock){ boolean printLegend = true; boolean longHeader = true; boolean showHTML = true; if ( afpChain.getAlgorithmName().equalsIgnoreCase(FatCatFlexible.algorithmName)) { String msg = toFatCat...
static String function(AFPChain afpChain, Atom[] ca1, Atom[] ca2, boolean showAlignmentBlock){ boolean printLegend = true; boolean longHeader = true; boolean showHTML = true; if ( afpChain.getAlgorithmName().equalsIgnoreCase(FatCatFlexible.algorithmName)) { String msg = toFatCatCore(afpChain,ca1,ca2,printLegend,longHea...
/** * Prints the afpChain as a nicely formatted alignment, including alignment * statistics, the aligned sequences themselves, and information about the * superposition. * @param afpChain * @param ca1 * @param ca2 * * @return a String representation as it is used on the RCSB PDB web site for display. ...
Prints the afpChain as a nicely formatted alignment, including alignment statistics, the aligned sequences themselves, and information about the superposition
toWebSiteDisplay
{ "repo_name": "JolantaWojcik/biojavaOwn", "path": "biojava3-structure/src/main/java/org/biojava/bio/structure/align/model/AfpChainWriter.java", "license": "lgpl-2.1", "size": 35619 }
[ "org.biojava.bio.structure.Atom", "org.biojava.bio.structure.align.fatcat.FatCatFlexible", "org.biojava.bio.structure.align.util.AFPAlignmentDisplay" ]
import org.biojava.bio.structure.Atom; import org.biojava.bio.structure.align.fatcat.FatCatFlexible; import org.biojava.bio.structure.align.util.AFPAlignmentDisplay;
import org.biojava.bio.structure.*; import org.biojava.bio.structure.align.fatcat.*; import org.biojava.bio.structure.align.util.*;
[ "org.biojava.bio" ]
org.biojava.bio;
912,901
public void propertyChange(PropertyChangeEvent evt) { //ThumbWinPopupMenu.hideMenu(); } public void mouseClicked(MouseEvent me) {}
void function(PropertyChangeEvent evt) { } public void mouseClicked(MouseEvent me) {}
/** * Hides the menu when the window is closed. * @see PropertyChangeListener#propertyChange(PropertyChangeEvent) */
Hides the menu when the window is closed
propertyChange
{ "repo_name": "knabar/openmicroscopy", "path": "components/insight/SRC/org/openmicroscopy/shoola/agents/dataBrowser/view/ThumbnailWindow.java", "license": "gpl-2.0", "size": 6409 }
[ "java.awt.event.MouseEvent", "java.beans.PropertyChangeEvent" ]
import java.awt.event.MouseEvent; import java.beans.PropertyChangeEvent;
import java.awt.event.*; import java.beans.*;
[ "java.awt", "java.beans" ]
java.awt; java.beans;
2,100,571
public void destroyFlock(FlockInfo info) { throw new SubclassResponsibilityException(); }
void function(FlockInfo info) { throw new SubclassResponsibilityException(); }
/** * Queue destroy of the given flock. The destroy will probably happen later. */
Queue destroy of the given flock. The destroy will probably happen later
destroyFlock
{ "repo_name": "jonesd/udanax-gold2java", "path": "abora-gold/src/generated-sources/translator/info/dgjones/abora/gold/snarf/DiskManager.java", "license": "mit", "size": 23713 }
[ "info.dgjones.abora.gold.java.exception.SubclassResponsibilityException", "info.dgjones.abora.gold.snarf.FlockInfo" ]
import info.dgjones.abora.gold.java.exception.SubclassResponsibilityException; import info.dgjones.abora.gold.snarf.FlockInfo;
import info.dgjones.abora.gold.java.exception.*; import info.dgjones.abora.gold.snarf.*;
[ "info.dgjones.abora" ]
info.dgjones.abora;
2,766,358
Composite container = new Composite(parent, SWT.NULL); container.setLayout(new FormLayout()); return container; }
Composite container = new Composite(parent, SWT.NULL); container.setLayout(new FormLayout()); return container; }
/** * Create contents of the preference page * * @param parent */
Create contents of the preference page
createContents
{ "repo_name": "debabratahazra/OptimaLA", "path": "LogAnalyzer/com.zealcore.se.ui/src/com/zealcore/se/ui/preferences/LogAnalyzer.java", "license": "epl-1.0", "size": 984 }
[ "org.eclipse.swt.layout.FormLayout", "org.eclipse.swt.widgets.Composite" ]
import org.eclipse.swt.layout.FormLayout; import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.layout.*; import org.eclipse.swt.widgets.*;
[ "org.eclipse.swt" ]
org.eclipse.swt;
2,815,331
private Object checkAndGet(boolean inTx, IgniteCache cache, Object key, ReadMode... readModes) { assert readModes != null && readModes.length > 0; if (inTx) return getByReadMode(inTx, cache, key, GET); Object prevVal = null; for (int i = 0; i < readModes.length; i++) {...
Object function(boolean inTx, IgniteCache cache, Object key, ReadMode... readModes) { assert readModes != null && readModes.length > 0; if (inTx) return getByReadMode(inTx, cache, key, GET); Object prevVal = null; for (int i = 0; i < readModes.length; i++) { ReadMode readMode = readModes[i]; Object curVal = getByReadMo...
/** * Checks values obtained with different read modes. * And returns value in case of it's equality for all read modes. * Do not use in tests with writers contention. * * // TODO remove inTx flag in IGNITE-6938 * @param inTx Flag whether current read is inside transaction. * This is ...
Checks values obtained with different read modes. And returns value in case of it's equality for all read modes. Do not use in tests with writers contention. TODO remove inTx flag in IGNITE-6938
checkAndGet
{ "repo_name": "andrey-kuznetsov/ignite", "path": "modules/core/src/test/java/org/apache/ignite/internal/processors/cache/mvcc/CacheMvccTransactionsTest.java", "license": "apache-2.0", "size": 111225 }
[ "org.apache.ignite.IgniteCache" ]
import org.apache.ignite.IgniteCache;
import org.apache.ignite.*;
[ "org.apache.ignite" ]
org.apache.ignite;
792,368
@Test public void testFilters() throws Exception { final byte [] c1 = COLUMNS[1]; ColumnFamilyDescriptor cfd = ColumnFamilyDescriptorBuilder.newBuilder(c0) .setMinVersions(2).setMaxVersions(1000).setTimeToLive(1). setKeepDeletedCells(KeepDeletedCells.FALSE).build(); ColumnFamilyDe...
void function() throws Exception { final byte [] c1 = COLUMNS[1]; ColumnFamilyDescriptor cfd = ColumnFamilyDescriptorBuilder.newBuilder(c0) .setMinVersions(2).setMaxVersions(1000).setTimeToLive(1). setKeepDeletedCells(KeepDeletedCells.FALSE).build(); ColumnFamilyDescriptor cfd2 = ColumnFamilyDescriptorBuilder.newBuilde...
/** * Verify that basic filters still behave correctly with * minimum versions enabled. */
Verify that basic filters still behave correctly with minimum versions enabled
testFilters
{ "repo_name": "mahak/hbase", "path": "hbase-server/src/test/java/org/apache/hadoop/hbase/regionserver/TestMinVersions.java", "license": "apache-2.0", "size": 20287 }
[ "java.util.ArrayList", "java.util.List", "org.apache.hadoop.hbase.HBaseTestingUtil", "org.apache.hadoop.hbase.KeepDeletedCells", "org.apache.hadoop.hbase.TableName", "org.apache.hadoop.hbase.client.ColumnFamilyDescriptor", "org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder", "org.apache.had...
import java.util.ArrayList; import java.util.List; import org.apache.hadoop.hbase.HBaseTestingUtil; import org.apache.hadoop.hbase.KeepDeletedCells; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.ColumnFamilyDescriptor; import org.apache.hadoop.hbase.client.ColumnFamilyDescriptorBuilder...
import java.util.*; import org.apache.hadoop.hbase.*; import org.apache.hadoop.hbase.client.*; import org.apache.hadoop.hbase.filter.*; import org.apache.hadoop.hbase.util.*;
[ "java.util", "org.apache.hadoop" ]
java.util; org.apache.hadoop;
1,719,035
public static Integer getMinute(Timestamp pTime){ Calendar xData = toCalendar(pTime); return xData.get(Calendar.MINUTE); }
static Integer function(Timestamp pTime){ Calendar xData = toCalendar(pTime); return xData.get(Calendar.MINUTE); }
/** * Retorna o minuto a partir de um timestamp * @param pData * @return Ano */
Retorna o minuto a partir de um timestamp
getMinute
{ "repo_name": "dbsoftcombr/dbssdk", "path": "src/main/java/br/com/dbsoft/util/DBSDate.java", "license": "mit", "size": 65869 }
[ "java.sql.Timestamp", "java.util.Calendar" ]
import java.sql.Timestamp; import java.util.Calendar;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
1,605,937
@Deprecated ResultSet getResultSet(Properties info) throws SQLException;
ResultSet getResultSet(Properties info) throws SQLException;
/** * Get ResultSet from the ResultSet Serializable object so that the user can access the data. * * <p>This API is used by spark spark connector from 2.6.0 to 2.8.1. It is deprecated from * sc:2.8.2/jdbc:3.12.12 since Sept 2020. It is safe to remove it after Sept 2022. * * @param info The proxy serve...
Get ResultSet from the ResultSet Serializable object so that the user can access the data. This API is used by spark spark connector from 2.6.0 to 2.8.1. It is deprecated from sc:2.8.2/jdbc:3.12.12 since Sept 2020. It is safe to remove it after Sept 2022
getResultSet
{ "repo_name": "snowflakedb/snowflake-jdbc", "path": "src/main/java/net/snowflake/client/jdbc/SnowflakeResultSetSerializable.java", "license": "apache-2.0", "size": 3993 }
[ "java.sql.ResultSet", "java.sql.SQLException", "java.util.Properties" ]
import java.sql.ResultSet; import java.sql.SQLException; import java.util.Properties;
import java.sql.*; import java.util.*;
[ "java.sql", "java.util" ]
java.sql; java.util;
990,260
protected Object getFormObject(HttpServletRequest req) throws Exception { Form form = this.getClass().getAnnotation(Form.class); Object command, newbie = form.formClass().newInstance(); // as default, assign new instance to command command = newbie; // try to load an existing...
Object function(HttpServletRequest req) throws Exception { Form form = this.getClass().getAnnotation(Form.class); Object command, newbie = form.formClass().newInstance(); command = newbie; if (form.sessionForm()) { String sessionName = this.getSessionAttributeName(form); command = WebUtil.getOrCreateSessionAttribute(re...
/** * Constructs a form object and, if specified, stores it in the session for later use * * @param req web request * @return form object * @throws Exception if object cannot be instantiated */
Constructs a form object and, if specified, stores it in the session for later use
getFormObject
{ "repo_name": "realtybaron/web-form-java", "path": "src/main/java/com/socotech/wf4j/AbstractFormAction.java", "license": "apache-2.0", "size": 24001 }
[ "javax.servlet.http.HttpServletRequest" ]
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.*;
[ "javax.servlet" ]
javax.servlet;
923,923
public File getLastFile() throws FileNotFoundException { File[] files = directory.listFiles(filter); if (files == null || files.length == 0) { throw new FileNotFoundException(); } return files[files.length - 1]; }
File function() throws FileNotFoundException { File[] files = directory.listFiles(filter); if (files == null files.length == 0) { throw new FileNotFoundException(); } return files[files.length - 1]; }
/** * Returns the last matching file. * * @return the matching file or <code>null</code> if no file matches * @throws FileNotFoundException thrown, if the directory does not exist */
Returns the last matching file
getLastFile
{ "repo_name": "cologneintelligence/FitGoodies", "path": "fitgoodies-core/src/main/java/de/cologneintelligence/fitgoodies/file/FileSelector.java", "license": "gpl-3.0", "size": 3260 }
[ "java.io.File", "java.io.FileNotFoundException" ]
import java.io.File; import java.io.FileNotFoundException;
import java.io.*;
[ "java.io" ]
java.io;
472,213
public File getLogFile() { return new File(job.getRootDir(),"scm-polling.log"); } @Extension @Symbol("pollSCM") public static class DescriptorImpl extends TriggerDescriptor {
File function() { return new File(job.getRootDir(),STR); } @Extension @Symbol(STR) public static class DescriptorImpl extends TriggerDescriptor {
/** * Returns the file that records the last/current polling activity. */
Returns the file that records the last/current polling activity
getLogFile
{ "repo_name": "jglick/jenkins", "path": "core/src/main/java/hudson/triggers/SCMTrigger.java", "license": "mit", "size": 24374 }
[ "java.io.File", "org.jenkinsci.Symbol" ]
import java.io.File; import org.jenkinsci.Symbol;
import java.io.*; import org.jenkinsci.*;
[ "java.io", "org.jenkinsci" ]
java.io; org.jenkinsci;
1,312,672
@NotNull List<InputAttribute> getInputAttributes();
List<InputAttribute> getInputAttributes();
/** * Returns the list of input-attribute children. * * @return the list of input-attribute children. */
Returns the list of input-attribute children
getInputAttributes
{ "repo_name": "consulo-trash/consulo-spring", "path": "webflow/src/com/intellij/spring/webflow/model/xml/InputMapper.java", "license": "apache-2.0", "size": 919 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
2,157,793
public Observable<ServiceResponse<OpenShiftManagedClusterInner>> updateTagsWithServiceResponseAsync(String resourceGroupName, String resourceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be nu...
Observable<ServiceResponse<OpenShiftManagedClusterInner>> function(String resourceGroupName, String resourceName) { if (this.client.subscriptionId() == null) { throw new IllegalArgumentException(STR); } if (resourceGroupName == null) { throw new IllegalArgumentException(STR); } if (resourceName == null) { throw new Ill...
/** * Updates tags on an OpenShift managed cluster. * Updates an OpenShift managed cluster with the specified tags. * * @param resourceGroupName The name of the resource group. * @param resourceName The name of the OpenShift managed cluster resource. * @throws IllegalArgumentException thro...
Updates tags on an OpenShift managed cluster. Updates an OpenShift managed cluster with the specified tags
updateTagsWithServiceResponseAsync
{ "repo_name": "selvasingh/azure-sdk-for-java", "path": "sdk/containerservice/mgmt-v2020_07_01/src/main/java/com/microsoft/azure/management/containerservice/v2020_07_01/implementation/OpenShiftManagedClustersInner.java", "license": "mit", "size": 82727 }
[ "com.google.common.reflect.TypeToken", "com.microsoft.azure.management.containerservice.v2020_07_01.TagsObject", "com.microsoft.rest.ServiceResponse", "java.util.Map" ]
import com.google.common.reflect.TypeToken; import com.microsoft.azure.management.containerservice.v2020_07_01.TagsObject; import com.microsoft.rest.ServiceResponse; import java.util.Map;
import com.google.common.reflect.*; import com.microsoft.azure.management.containerservice.v2020_07_01.*; import com.microsoft.rest.*; import java.util.*;
[ "com.google.common", "com.microsoft.azure", "com.microsoft.rest", "java.util" ]
com.google.common; com.microsoft.azure; com.microsoft.rest; java.util;
819,222
public static void main(String args[]) { try { // step 1: creating the document Document doc = new Document(PageSize.A4, 50, 50, 100, 72); // step 2: creating the writer PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream(android.os.Environment.getExternalStorageDirectory() + java.io.Fil...
static void function(String args[]) { try { Document doc = new Document(PageSize.A4, 50, 50, 100, 72); PdfWriter writer = PdfWriter.getInstance(doc, new FileOutputStream(android.os.Environment.getExternalStorageDirectory() + java.io.File.separator + STR + java.io.File.separator + STR)); writer.setPageEvent(new PageNumb...
/** * Generates a document with a header containing Page x of y and with a * Watermark on every page. * * @param args * no arguments needed */
Generates a document with a header containing Page x of y and with a Watermark on every page
main
{ "repo_name": "fc-dream/PDFTestForAndroid", "path": "sample/PDFtest/src/com/lowagie/examples/directcontent/pageevents/PageNumbersWatermark.java", "license": "apache-2.0", "size": 7120 }
[ "com.lowagie.text.Document", "com.lowagie.text.Element", "com.lowagie.text.PageSize", "com.lowagie.text.Paragraph", "com.lowagie.text.pdf.PdfWriter", "java.io.FileOutputStream" ]
import com.lowagie.text.Document; import com.lowagie.text.Element; import com.lowagie.text.PageSize; import com.lowagie.text.Paragraph; import com.lowagie.text.pdf.PdfWriter; import java.io.FileOutputStream;
import com.lowagie.text.*; import com.lowagie.text.pdf.*; import java.io.*;
[ "com.lowagie.text", "java.io" ]
com.lowagie.text; java.io;
2,729,478
public final DataForm getDataForm() { return dataForm; }
final DataForm function() { return dataForm; }
/** * Gets the underlying data form. * * @return The underlying data form. */
Gets the underlying data form
getDataForm
{ "repo_name": "jeozey/XmppServerTester", "path": "xmpp-extensions/src/main/java/rocks/xmpp/extensions/pubsub/model/SubscribeOptions.java", "license": "mit", "size": 15897 }
[ "rocks.xmpp.extensions.data.model.DataForm" ]
import rocks.xmpp.extensions.data.model.DataForm;
import rocks.xmpp.extensions.data.model.*;
[ "rocks.xmpp.extensions" ]
rocks.xmpp.extensions;
733,152
private IScannableDeviceService getDeviceConnector() throws ScanningException { ServiceReference<IScannableDeviceService> ref = context.getServiceReference(IScannableDeviceService.class); return context.getService(ref); }
IScannableDeviceService function() throws ScanningException { ServiceReference<IScannableDeviceService> ref = context.getServiceReference(IScannableDeviceService.class); return context.getService(ref); }
/** * Try to get the connector service or throw an exception * @return */
Try to get the connector service or throw an exception
getDeviceConnector
{ "repo_name": "jacobfilik/scanning", "path": "org.eclipse.scanning.sequencer/src/org/eclipse/scanning/sequencer/RunnableDeviceServiceImpl.java", "license": "epl-1.0", "size": 15360 }
[ "org.eclipse.scanning.api.device.IScannableDeviceService", "org.eclipse.scanning.api.scan.ScanningException", "org.osgi.framework.ServiceReference" ]
import org.eclipse.scanning.api.device.IScannableDeviceService; import org.eclipse.scanning.api.scan.ScanningException; import org.osgi.framework.ServiceReference;
import org.eclipse.scanning.api.device.*; import org.eclipse.scanning.api.scan.*; import org.osgi.framework.*;
[ "org.eclipse.scanning", "org.osgi.framework" ]
org.eclipse.scanning; org.osgi.framework;
2,903,621
public void setSeriesFillPaintType(int series, PaintType paintType, boolean notify) { this.fillPaintList.setPaintType(series, paintType); if (notify) { fireChangeEvent(); } }
void function(int series, PaintType paintType, boolean notify) { this.fillPaintList.setPaintType(series, paintType); if (notify) { fireChangeEvent(); } }
/** * Sets the paint used to fill a series and, if requested, sends a * {@link RendererChangeEvent} to all registered listeners. * * @param series * the series index (zero-based). * @param paintType * the paint (<code>null</code> permitted). * @param notify...
Sets the paint used to fill a series and, if requested, sends a <code>RendererChangeEvent</code> to all registered listeners
setSeriesFillPaintType
{ "repo_name": "djun100/afreechart", "path": "src/org/afree/chart/renderer/AbstractRenderer.java", "license": "lgpl-3.0", "size": 122597 }
[ "org.afree.graphics.PaintType" ]
import org.afree.graphics.PaintType;
import org.afree.graphics.*;
[ "org.afree.graphics" ]
org.afree.graphics;
419,975
return schemaVersion; } /** * Legt den Wert der schemaVersion-Eigenschaft fest. * * @param value * allowed object is * {@link BigDecimal }
return schemaVersion; } /** * Legt den Wert der schemaVersion-Eigenschaft fest. * * @param value * allowed object is * {@link BigDecimal }
/** * Ruft den Wert der schemaVersion-Eigenschaft ab. * * @return * possible object is * {@link BigDecimal } * */
Ruft den Wert der schemaVersion-Eigenschaft ab
getSchemaVersion
{ "repo_name": "SiLeBAT/Other", "path": "de.bund.bfr.epcis/src/de/bund/bfr/epcis/Document.java", "license": "gpl-3.0", "size": 3108 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
1,624,904
public OneResponse diskSaveas(int diskId, String imageName, int snapId) { return diskSaveas(diskId, imageName, "", snapId); }
OneResponse function(int diskId, String imageName, int snapId) { return diskSaveas(diskId, imageName, "", snapId); }
/** * Sets the specified vm's disk to be saved in a new image. * * @param diskId ID of the disk to be saved. * @param imageName Name of the new Image that will be created. * @param snapId ID of the snapshot to save, -1 to use the * current disk image state * @return If an error occurs...
Sets the specified vm's disk to be saved in a new image
diskSaveas
{ "repo_name": "tuxmea/one", "path": "src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java", "license": "apache-2.0", "size": 42818 }
[ "org.opennebula.client.OneResponse" ]
import org.opennebula.client.OneResponse;
import org.opennebula.client.*;
[ "org.opennebula.client" ]
org.opennebula.client;
586,645
public void update(RoleDTO dto) { setPermissions(dto.getPermissions()); }
void function(RoleDTO dto) { setPermissions(dto.getPermissions()); }
/** * Updates this role's permissions with those of the given role. This method does not * update the description or title of a permission. Use {@link #setDescription(Integer, String)} and * {@link #setTitle(Integer, String)} to update the roles international descriptions. * * @param dto r...
Updates this role's permissions with those of the given role. This method does not update the description or title of a permission. Use <code>#setDescription(Integer, String)</code> and <code>#setTitle(Integer, String)</code> to update the roles international descriptions
update
{ "repo_name": "tarique313/nBilling", "path": "src/java/com/sapienter/jbilling/server/user/RoleBL.java", "license": "agpl-3.0", "size": 4429 }
[ "com.sapienter.jbilling.server.user.permisson.db.RoleDTO" ]
import com.sapienter.jbilling.server.user.permisson.db.RoleDTO;
import com.sapienter.jbilling.server.user.permisson.db.*;
[ "com.sapienter.jbilling" ]
com.sapienter.jbilling;
1,471,635
public void setParameterService(ParameterService parameterService) { this.parameterService = parameterService; }
void function(ParameterService parameterService) { this.parameterService = parameterService; }
/** * This method sets the parameterService attribute to the value given. * * @param parameterService The ParameterService to be set. */
This method sets the parameterService attribute to the value given
setParameterService
{ "repo_name": "quikkian-ua-devops/will-financials", "path": "kfs-core/src/main/java/org/kuali/kfs/fp/document/service/impl/DisbursementVoucherTaxServiceImpl.java", "license": "agpl-3.0", "size": 29488 }
[ "org.kuali.kfs.coreservice.framework.parameter.ParameterService" ]
import org.kuali.kfs.coreservice.framework.parameter.ParameterService;
import org.kuali.kfs.coreservice.framework.parameter.*;
[ "org.kuali.kfs" ]
org.kuali.kfs;
617,502
public Schema getMessageSchema(Schema schema, FailureCollector collector) { List<Schema.Field> messageFields = new ArrayList<>(); boolean timeFieldExists = false; boolean keyFieldExists = false; boolean partitionFieldExists = false; for (Schema.Field field : schema.getFields()) { String fie...
Schema function(Schema schema, FailureCollector collector) { List<Schema.Field> messageFields = new ArrayList<>(); boolean timeFieldExists = false; boolean keyFieldExists = false; boolean partitionFieldExists = false; for (Schema.Field field : schema.getFields()) { String fieldName = field.getName(); Schema fieldSchema...
/** * Return the schema. * @param schema * @param collector the failure collector * @return the schema */
Return the schema
getMessageSchema
{ "repo_name": "data-integrations/confluent", "path": "confluent-kafka-plugins/src/main/java/io/cdap/plugin/confluent/streaming/sink/ConfluentStreamingSinkConfig.java", "license": "apache-2.0", "size": 16164 }
[ "com.google.common.base.Strings", "io.cdap.cdap.api.data.schema.Schema", "io.cdap.cdap.etl.api.FailureCollector", "java.util.ArrayList", "java.util.List" ]
import com.google.common.base.Strings; import io.cdap.cdap.api.data.schema.Schema; import io.cdap.cdap.etl.api.FailureCollector; import java.util.ArrayList; import java.util.List;
import com.google.common.base.*; import io.cdap.cdap.api.data.schema.*; import io.cdap.cdap.etl.api.*; import java.util.*;
[ "com.google.common", "io.cdap.cdap", "java.util" ]
com.google.common; io.cdap.cdap; java.util;
2,388,696
@Source("com/google/appinventor/images/delete.png") ImageResource deleteComponent();
@Source(STR) ImageResource deleteComponent();
/** * Designer palette item: Delete Component */
Designer palette item: Delete Component
deleteComponent
{ "repo_name": "codimeo/codi-studio", "path": "appinventor/appengine/src/com/google/appinventor/client/Images.java", "license": "apache-2.0", "size": 13788 }
[ "com.google.gwt.resources.client.ImageResource" ]
import com.google.gwt.resources.client.ImageResource;
import com.google.gwt.resources.client.*;
[ "com.google.gwt" ]
com.google.gwt;
1,823,353
static public void readFile(String path, String encoding, final Promise promise ) { String resolved = normalizePath(path); if(resolved != null) path = resolved; try { byte[] bytes; if(resolved != null && resolved.startsWith(RNFetchBlobConst.FILE_PREFIX_BU...
static void function(String path, String encoding, final Promise promise ) { String resolved = normalizePath(path); if(resolved != null) path = resolved; try { byte[] bytes; if(resolved != null && resolved.startsWith(RNFetchBlobConst.FILE_PREFIX_BUNDLE_ASSET)) { String assetName = path.replace(RNFetchBlobConst.FILE_PRE...
/** * Read file with a buffer that has the same size as the target file. * @param path Path of the file. * @param encoding Encoding of read stream. * @param promise */
Read file with a buffer that has the same size as the target file
readFile
{ "repo_name": "wkh237/react-native-fetch-blob", "path": "android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java", "license": "mit", "size": 34350 }
[ "com.facebook.react.bridge.Promise" ]
import com.facebook.react.bridge.Promise;
import com.facebook.react.bridge.*;
[ "com.facebook.react" ]
com.facebook.react;
681,988
@Test public void testBasicLiteralBoxingUnboxing() { final double value = 123.456; Model model = ModelFactory.createDefaultModel(); Literal obj = model.createTypedLiteral(value); assert obj.getValue().equals(value); assert obj.getString().equals( Double.toString(value) )...
void function() { final double value = 123.456; Model model = ModelFactory.createDefaultModel(); Literal obj = model.createTypedLiteral(value); assert obj.getValue().equals(value); assert obj.getString().equals( Double.toString(value) ); assert obj.getLexicalForm().equals( Double.toString(value) ); assert obj.getDataty...
/** * Tests the literal boxing and unboxing capabilities. */
Tests the literal boxing and unboxing capabilities
testBasicLiteralBoxingUnboxing
{ "repo_name": "Bilal84/rdf-commons", "path": "jena-adapter/src/test/java/org/sindice/rdfcommons/adapter/jena/LiteralSupportTestCase.java", "license": "apache-2.0", "size": 1575 }
[ "com.hp.hpl.jena.rdf.model.Literal", "com.hp.hpl.jena.rdf.model.Model", "com.hp.hpl.jena.rdf.model.ModelFactory" ]
import com.hp.hpl.jena.rdf.model.Literal; import com.hp.hpl.jena.rdf.model.Model; import com.hp.hpl.jena.rdf.model.ModelFactory;
import com.hp.hpl.jena.rdf.model.*;
[ "com.hp.hpl" ]
com.hp.hpl;
382,217
@Nullable EclipseJavaSourceSettings getJavaSourceSettings() throws UnsupportedMethodException; /** * The gradle project that is associated with this project. * Typically, a single Eclipse project corresponds to a single gradle project. * <p> * See {@link HasGradleProject}
EclipseJavaSourceSettings getJavaSourceSettings() throws UnsupportedMethodException; /** * The gradle project that is associated with this project. * Typically, a single Eclipse project corresponds to a single gradle project. * <p> * See {@link HasGradleProject}
/** * Returns the Java source settings for this project. * * @return the settings for Java sources or {@code null} if not a Java element. * @throws UnsupportedMethodException For Gradle versions older than 2.10, where this method is not supported. * @since 2.10 */
Returns the Java source settings for this project
getJavaSourceSettings
{ "repo_name": "lsmaira/gradle", "path": "subprojects/tooling-api/src/main/java/org/gradle/tooling/model/eclipse/EclipseProject.java", "license": "apache-2.0", "size": 4841 }
[ "org.gradle.tooling.model.HasGradleProject", "org.gradle.tooling.model.UnsupportedMethodException" ]
import org.gradle.tooling.model.HasGradleProject; import org.gradle.tooling.model.UnsupportedMethodException;
import org.gradle.tooling.model.*;
[ "org.gradle.tooling" ]
org.gradle.tooling;
39,943
public void toSAX(ContentHandler contentHandler) throws SAXException { for (Iterator i = saxbits.iterator(); i.hasNext();) { SaxBit saxbit = (SaxBit)i.next(); saxbit.send(contentHandler); } } // // Implementation Methods //
void function(ContentHandler contentHandler) throws SAXException { for (Iterator i = saxbits.iterator(); i.hasNext();) { SaxBit saxbit = (SaxBit)i.next(); saxbit.send(contentHandler); } } //
/** * Stream this buffer into the provided content handler. * If contentHandler object implements LexicalHandler, it will get lexical * events as well. */
Stream this buffer into the provided content handler. If contentHandler object implements LexicalHandler, it will get lexical events as well
toSAX
{ "repo_name": "apache/cocoon", "path": "blocks/cocoon-portal/cocoon-portal-api/src/main/java/org/apache/cocoon/portal/util/SaxBuffer.java", "license": "apache-2.0", "size": 13004 }
[ "java.util.Iterator", "org.xml.sax.ContentHandler", "org.xml.sax.SAXException" ]
import java.util.Iterator; import org.xml.sax.ContentHandler; import org.xml.sax.SAXException;
import java.util.*; import org.xml.sax.*;
[ "java.util", "org.xml.sax" ]
java.util; org.xml.sax;
774,943
public void deleteTipoProducto(TipoProducto tipo) throws SQLException, Exception { String sql = "DELETE FROM TIPO_PRODUCTO"; sql += " WHERE TIPO = " + tipo.getTipo(); PreparedStatement prepStmt = conn.prepareStatement(sql); recursos.add(prepStmt); prepStmt.executeQuery(); }
void function(TipoProducto tipo) throws SQLException, Exception { String sql = STR; sql += STR + tipo.getTipo(); PreparedStatement prepStmt = conn.prepareStatement(sql); recursos.add(prepStmt); prepStmt.executeQuery(); }
/** * Metodo que elimina el video que entra como parametro en la base de datos. * @param usuario - el video a borrar. video != null * <b> post: </b> se ha borrado el video en la base de datos en la transaction actual. pendiente que el video master * haga commit para que los cambios bajen a la base de datos. ...
Metodo que elimina el video que entra como parametro en la base de datos
deleteTipoProducto
{ "repo_name": "El-Kabs/Sistrans", "path": "src/dao/DAOTipoProductoRotond.java", "license": "mit", "size": 5249 }
[ "java.sql.PreparedStatement", "java.sql.SQLException" ]
import java.sql.PreparedStatement; import java.sql.SQLException;
import java.sql.*;
[ "java.sql" ]
java.sql;
120,949
void propagateMessage(VoidMessage message, PropagationMode mode) throws IOException;
void propagateMessage(VoidMessage message, PropagationMode mode) throws IOException;
/** * This method will send message to the network, using tree structure * @param message */
This method will send message to the network, using tree structure
propagateMessage
{ "repo_name": "deeplearning4j/deeplearning4j", "path": "nd4j/nd4j-parameter-server-parent/nd4j-parameter-server-node/src/main/java/org/nd4j/parameterserver/distributed/v2/transport/Transport.java", "license": "apache-2.0", "size": 5284 }
[ "java.io.IOException", "org.nd4j.parameterserver.distributed.v2.enums.PropagationMode", "org.nd4j.parameterserver.distributed.v2.messages.VoidMessage" ]
import java.io.IOException; import org.nd4j.parameterserver.distributed.v2.enums.PropagationMode; import org.nd4j.parameterserver.distributed.v2.messages.VoidMessage;
import java.io.*; import org.nd4j.parameterserver.distributed.v2.enums.*; import org.nd4j.parameterserver.distributed.v2.messages.*;
[ "java.io", "org.nd4j.parameterserver" ]
java.io; org.nd4j.parameterserver;
1,756,076
public static final boolean isConversationAbort(byte esmClass) { return isMessageType(esmClass, SMPPConstant.ESMCLS_CONV_ABORT); }
static final boolean function(byte esmClass) { return isMessageType(esmClass, SMPPConstant.ESMCLS_CONV_ABORT); }
/** * Check if the ESM class ANSI-41 Specific bits indicates a conversion abort (Korean CDMA) * * @param esmClass the ESM class to examine * @return {@code true} if the ESM class ANSI-41 Specific bits indicates a conversion abort */
Check if the ESM class ANSI-41 Specific bits indicates a conversion abort (Korean CDMA)
isConversationAbort
{ "repo_name": "opentelecoms-org/jsmpp", "path": "jsmpp/src/main/java/org/jsmpp/bean/DeliverSm.java", "license": "apache-2.0", "size": 13934 }
[ "org.jsmpp.SMPPConstant" ]
import org.jsmpp.SMPPConstant;
import org.jsmpp.*;
[ "org.jsmpp" ]
org.jsmpp;
2,006,463
void rename(@NotNull String name);
void rename(@NotNull String name);
/** * Renames a variable to the provided {@code name}. This method should do nothing if called on properties that have no * explicit name, i.e list values. This method will rename keys if called on properties inside maps. */
Renames a variable to the provided name. This method should do nothing if called on properties that have no explicit name, i.e list values. This method will rename keys if called on properties inside maps
rename
{ "repo_name": "scana/ok-gradle", "path": "plugin/src/main/java/me/scana/okgradle/internal/dsl/api/ext/GradlePropertyModel.java", "license": "apache-2.0", "size": 11805 }
[ "org.jetbrains.annotations.NotNull" ]
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.*;
[ "org.jetbrains.annotations" ]
org.jetbrains.annotations;
673,743
public Status getStatus() { return this.status; }
Status function() { return this.status; }
/** * Returns the status associated to this exception. * * @return The status associated to this exception. */
Returns the status associated to this exception
getStatus
{ "repo_name": "pecko/debrief", "path": "org.mwc.asset.comms/docs/restlet_src/org.restlet/org/restlet/resource/ResourceException.java", "license": "epl-1.0", "size": 5345 }
[ "org.restlet.data.Status" ]
import org.restlet.data.Status;
import org.restlet.data.*;
[ "org.restlet.data" ]
org.restlet.data;
2,747,257
public boolean scheduleNextForCompaction(PartitionId id) { DiskManager diskManager = partitionToDiskManager.get(id); return diskManager != null && diskManager.scheduleNextForCompaction(id); }
boolean function(PartitionId id) { DiskManager diskManager = partitionToDiskManager.get(id); return diskManager != null && diskManager.scheduleNextForCompaction(id); }
/** * Schedules the {@link PartitionId} {@code id} for compaction next. * @param id the {@link PartitionId} of the {@link Store} to compact. * @return {@code true} if the scheduling was successful. {@code false} if not. */
Schedules the <code>PartitionId</code> id for compaction next
scheduleNextForCompaction
{ "repo_name": "vgkholla/ambry", "path": "ambry-store/src/main/java/com.github.ambry.store/StorageManager.java", "license": "apache-2.0", "size": 12091 }
[ "com.github.ambry.clustermap.PartitionId" ]
import com.github.ambry.clustermap.PartitionId;
import com.github.ambry.clustermap.*;
[ "com.github.ambry" ]
com.github.ambry;
1,270,412
public void setPositionToConvert(RoadmapPosition pos) { if (cartesianPos != null || pos.equals(roadmapPos)) setObsolete(); cartesianPos = null; roadmapPos = pos; }
void function(RoadmapPosition pos) { if (cartesianPos != null pos.equals(roadmapPos)) setObsolete(); cartesianPos = null; roadmapPos = pos; }
/** * Set the data for a conversion from roadmap position to local. The result will * be in longitude/latitude format. * * @param pos * the roadmap position */
Set the data for a conversion from roadmap position to local. The result will be in longitude/latitude format
setPositionToConvert
{ "repo_name": "rudhir-upretee/Sumo17_With_Netsim", "path": "tools/contributed/traci4j/src/java/it/polito/appeal/traci/PositionConversionQuery.java", "license": "gpl-3.0", "size": 4669 }
[ "it.polito.appeal.traci.protocol.RoadmapPosition" ]
import it.polito.appeal.traci.protocol.RoadmapPosition;
import it.polito.appeal.traci.protocol.*;
[ "it.polito.appeal" ]
it.polito.appeal;
436,337
public void setORFilters(@Nullable final JSONObjectFilter... orFilters) { setORFilters(StaticUtils.toList(orFilters)); }
void function(@Nullable final JSONObjectFilter... orFilters) { setORFilters(StaticUtils.toList(orFilters)); }
/** * Specifies the set of filters for this OR filter. At least one of these * filters must match a JSON object in order for this OR filter to match that * object. * * @param orFilters The set of filters for this OR filter. At least one * of these filters must match a JSON objec...
Specifies the set of filters for this OR filter. At least one of these filters must match a JSON object in order for this OR filter to match that object
setORFilters
{ "repo_name": "UnboundID/ldapsdk", "path": "src/com/unboundid/ldap/sdk/unboundidds/jsonfilter/ORJSONObjectFilter.java", "license": "gpl-2.0", "size": 12813 }
[ "com.unboundid.util.Nullable", "com.unboundid.util.StaticUtils" ]
import com.unboundid.util.Nullable; import com.unboundid.util.StaticUtils;
import com.unboundid.util.*;
[ "com.unboundid.util" ]
com.unboundid.util;
2,205,290
EAttribute getDefinitions_Exporter();
EAttribute getDefinitions_Exporter();
/** * Returns the meta object for the attribute '{@link org.eclipse.bpmn2.Definitions#getExporter <em>Exporter</em>}'. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the meta object for the attribute '<em>Exporter</em>'. * @see org.eclipse.bpmn2.Definitions#getExporter() * @se...
Returns the meta object for the attribute '<code>org.eclipse.bpmn2.Definitions#getExporter Exporter</code>'.
getDefinitions_Exporter
{ "repo_name": "lqjack/fixflow", "path": "modules/fixflow-core/src/main/java/org/eclipse/bpmn2/Bpmn2Package.java", "license": "apache-2.0", "size": 1014933 }
[ "org.eclipse.emf.ecore.EAttribute" ]
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.*;
[ "org.eclipse.emf" ]
org.eclipse.emf;
1,408,090
private String errorMessage; private long theTimeOut; private boolean xwin = false; private boolean win = false; private boolean mac = false; private File sendpraatXml; private String sOsName; private String sOsArch; private String sUserHome; ...
private String errorMessage; private long theTimeOut; private boolean xwin = false; private boolean win = false; private boolean mac = false; private File sendpraatXml; private String sOsName; private String sOsArch; private String sUserHome; private String sUserDir; private int iPid = -1; private boolean bSendMessageS...
/** * Setter for {@link #verbose}: Whether to use verbose logging or not. * @param newVerbose Whether to use verbose logging or not. */
Setter for <code>#verbose</code>: Whether to use verbose logging or not
setVerbose
{ "repo_name": "nzilbb/jsendpraat", "path": "nzilbb/jsendpraat/SendPraat.java", "license": "gpl-3.0", "size": 51690 }
[ "java.io.File", "java.util.regex.Pattern" ]
import java.io.File; import java.util.regex.Pattern;
import java.io.*; import java.util.regex.*;
[ "java.io", "java.util" ]
java.io; java.util;
1,665,638
public void releaseAsteroid(){ float asteroidX = randy.nextBoolean() ? randy.nextFloat() * range.x : randy.nextFloat() * -range.x; float asteroidY = randy.nextBoolean() ? randy.nextFloat() * range.y : randy.nextFloat() * -range.y; float asteroidZ = randy.nextBoolean() ? randy.next...
void function(){ float asteroidX = randy.nextBoolean() ? randy.nextFloat() * range.x : randy.nextFloat() * -range.x; float asteroidY = randy.nextBoolean() ? randy.nextFloat() * range.y : randy.nextFloat() * -range.y; float asteroidZ = randy.nextBoolean() ? randy.nextFloat() * range.z : randy.nextFloat() * -range.z; flo...
/** * Tells the field to create a new asteroid */
Tells the field to create a new asteroid
releaseAsteroid
{ "repo_name": "TranquilMarmot/spaceout", "path": "src/com/bitwaffle/spaceout/entities/passive/AsteroidField.java", "license": "artistic-2.0", "size": 6722 }
[ "com.bitwaffle.spaceguts.entities.Entities", "com.bitwaffle.spaceguts.util.QuaternionHelper", "com.bitwaffle.spaceout.entities.dynamic.Asteroid", "org.lwjgl.util.vector.Quaternion", "org.lwjgl.util.vector.Vector3f" ]
import com.bitwaffle.spaceguts.entities.Entities; import com.bitwaffle.spaceguts.util.QuaternionHelper; import com.bitwaffle.spaceout.entities.dynamic.Asteroid; import org.lwjgl.util.vector.Quaternion; import org.lwjgl.util.vector.Vector3f;
import com.bitwaffle.spaceguts.entities.*; import com.bitwaffle.spaceguts.util.*; import com.bitwaffle.spaceout.entities.dynamic.*; import org.lwjgl.util.vector.*;
[ "com.bitwaffle.spaceguts", "com.bitwaffle.spaceout", "org.lwjgl.util" ]
com.bitwaffle.spaceguts; com.bitwaffle.spaceout; org.lwjgl.util;
2,691,016
protected void runSyncOnHierarchy(Award parentAward, AwardHierarchy hierarchy, List<AwardSyncChange> changes, SyncType syncType, List<SyncRunnable> runnables) { this.runSyncInThread(parentAward, hierarchy, syncType, changes, runnables); for (AwardHierarchy curHierarchy : hierarchy.getCh...
void function(Award parentAward, AwardHierarchy hierarchy, List<AwardSyncChange> changes, SyncType syncType, List<SyncRunnable> runnables) { this.runSyncInThread(parentAward, hierarchy, syncType, changes, runnables); for (AwardHierarchy curHierarchy : hierarchy.getChildren()) { runSyncOnHierarchy(parentAward, curHierar...
/** * Run the sync recursively down the hierarchy. * @param parentAward * @param hierarchy * @param changes * @param syncType * @param runnables */
Run the sync recursively down the hierarchy
runSyncOnHierarchy
{ "repo_name": "vivantech/kc_fixes", "path": "src/main/java/org/kuali/kra/award/awardhierarchy/sync/service/AwardSyncServiceImpl.java", "license": "apache-2.0", "size": 43448 }
[ "java.util.List", "org.kuali.kra.award.awardhierarchy.AwardHierarchy", "org.kuali.kra.award.awardhierarchy.sync.AwardSyncChange", "org.kuali.kra.award.home.Award" ]
import java.util.List; import org.kuali.kra.award.awardhierarchy.AwardHierarchy; import org.kuali.kra.award.awardhierarchy.sync.AwardSyncChange; import org.kuali.kra.award.home.Award;
import java.util.*; import org.kuali.kra.award.awardhierarchy.*; import org.kuali.kra.award.awardhierarchy.sync.*; import org.kuali.kra.award.home.*;
[ "java.util", "org.kuali.kra" ]
java.util; org.kuali.kra;
2,827,530
@NonNull public NonNullChangeable<ValidationState> getValidationState() { return validationState; }
NonNullChangeable<ValidationState> function() { return validationState; }
/** * Returns current {@link ValidationState} or its successor. Needed to connect with bounded view and react to this state changes. * * @return current validation state. */
Returns current <code>ValidationState</code> or its successor. Needed to connect with bounded view and react to this state changes
getValidationState
{ "repo_name": "TouchInstinct/android-templates", "path": "src/main/java/ru/touchin/templates/validation/validators/Validator.java", "license": "apache-2.0", "size": 4667 }
[ "ru.touchin.roboswag.core.observables.NonNullChangeable", "ru.touchin.templates.validation.ValidationState" ]
import ru.touchin.roboswag.core.observables.NonNullChangeable; import ru.touchin.templates.validation.ValidationState;
import ru.touchin.roboswag.core.observables.*; import ru.touchin.templates.validation.*;
[ "ru.touchin.roboswag", "ru.touchin.templates" ]
ru.touchin.roboswag; ru.touchin.templates;
1,432,544
public ValueBuilder regexReplaceAll(Expression content, String regex, String replacement) { return Builder.regexReplaceAll(content, regex, replacement); }
ValueBuilder function(Expression content, String regex, String replacement) { return Builder.regexReplaceAll(content, regex, replacement); }
/** * Returns an expression value builder that replaces all occurrences of the * regular expression with the given replacement */
Returns an expression value builder that replaces all occurrences of the regular expression with the given replacement
regexReplaceAll
{ "repo_name": "grgrzybek/camel", "path": "camel-core/src/main/java/org/apache/camel/builder/BuilderSupport.java", "license": "apache-2.0", "size": 17579 }
[ "org.apache.camel.Expression" ]
import org.apache.camel.Expression;
import org.apache.camel.*;
[ "org.apache.camel" ]
org.apache.camel;
1,923,796
public void setUp(DrawerLayout drawerLayout) { mFragmentContainerView = getActivity().findViewById(FRAGMENT_NAVIGATION_DRAWER); mDrawerLayout = drawerLayout; // set a custom shadow that overlays the main content when the drawer opens mDrawerLayout.setDrawerShadow(R.drawable.drawer_s...
void function(DrawerLayout drawerLayout) { mFragmentContainerView = getActivity().findViewById(FRAGMENT_NAVIGATION_DRAWER); mDrawerLayout = drawerLayout; mDrawerLayout.setDrawerShadow(R.drawable.drawer_shadow, GravityCompat.START); }
/** * Users of this fragment must call this method to set up the navigation drawer interactions. * * @param drawerLayout The DrawerLayout containing this fragment's UI. */
Users of this fragment must call this method to set up the navigation drawer interactions
setUp
{ "repo_name": "a-v-k/astrid", "path": "src/main/java/org/tasks/ui/NavigationDrawerFragment.java", "license": "gpl-3.0", "size": 9439 }
[ "android.support.v4.view.GravityCompat", "android.support.v4.widget.DrawerLayout" ]
import android.support.v4.view.GravityCompat; import android.support.v4.widget.DrawerLayout;
import android.support.v4.view.*; import android.support.v4.widget.*;
[ "android.support" ]
android.support;
2,764,615
private boolean hasAdministrativeDescendant( OperationContext opContext, Dn name ) throws LdapException { ExprNode filter = new PresenceNode( ADMINISTRATIVE_ROLE_AT ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE ); Search...
boolean function( OperationContext opContext, Dn name ) throws LdapException { ExprNode filter = new PresenceNode( ADMINISTRATIVE_ROLE_AT ); SearchControls controls = new SearchControls(); controls.setSearchScope( SearchControls.SUBTREE_SCOPE ); SearchOperationContext searchOperationContext = new SearchOperationContext...
/** * Checks to see if an entry being renamed has a descendant that is an * administrative point. * * @param name the name of the entry which is used as the search base * @return true if name is an administrative point or one of its descendants * are, false otherwise * @throws Excepti...
Checks to see if an entry being renamed has a descendant that is an administrative point
hasAdministrativeDescendant
{ "repo_name": "drankye/directory-server", "path": "interceptors/subtree/src/main/java/org/apache/directory/server/core/subtree/SubentryInterceptor.java", "license": "apache-2.0", "size": 62937 }
[ "javax.naming.directory.SearchControls", "org.apache.directory.api.ldap.model.exception.LdapException", "org.apache.directory.api.ldap.model.exception.LdapOperationException", "org.apache.directory.api.ldap.model.filter.ExprNode", "org.apache.directory.api.ldap.model.filter.PresenceNode", "org.apache.dire...
import javax.naming.directory.SearchControls; import org.apache.directory.api.ldap.model.exception.LdapException; import org.apache.directory.api.ldap.model.exception.LdapOperationException; import org.apache.directory.api.ldap.model.filter.ExprNode; import org.apache.directory.api.ldap.model.filter.PresenceNode; impor...
import javax.naming.directory.*; import org.apache.directory.api.ldap.model.exception.*; import org.apache.directory.api.ldap.model.filter.*; import org.apache.directory.api.ldap.model.message.*; import org.apache.directory.api.ldap.model.name.*; import org.apache.directory.server.core.api.filtering.*; import org.apach...
[ "javax.naming", "org.apache.directory" ]
javax.naming; org.apache.directory;
2,760,040
SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } private final Duration defaultPollInterval;
SerializerAdapter getSerializerAdapter() { return this.serializerAdapter; } private final Duration defaultPollInterval;
/** * Gets The serializer to serialize an object into a string. * * @return the serializerAdapter value. */
Gets The serializer to serialize an object into a string
getSerializerAdapter
{ "repo_name": "Azure/azure-sdk-for-java", "path": "sdk/resourcemanager/azure-resourcemanager-network/src/main/java/com/azure/resourcemanager/network/implementation/NetworkManagementClientImpl.java", "license": "mit", "size": 182764 }
[ "com.azure.core.util.serializer.SerializerAdapter", "java.time.Duration" ]
import com.azure.core.util.serializer.SerializerAdapter; import java.time.Duration;
import com.azure.core.util.serializer.*; import java.time.*;
[ "com.azure.core", "java.time" ]
com.azure.core; java.time;
1,355,191
// NOTE: we don't use job.getReducerClass() as we don't need to load user class here Configuration conf = job.getConfiguration(); String reducerClass = conf.get(MRJobConfig.REDUCE_CLASS_ATTR); if (reducerClass != null) { conf.set(ReducerWrapper.ATTR_REDUCER_CLASS, reducerClass); job.setReducerCl...
Configuration conf = job.getConfiguration(); String reducerClass = conf.get(MRJobConfig.REDUCE_CLASS_ATTR); if (reducerClass != null) { conf.set(ReducerWrapper.ATTR_REDUCER_CLASS, reducerClass); job.setReducerClass(ReducerWrapper.class); } }
/** * Wraps the mapper defined in the job with this {@link MapperWrapper} if it is defined. * @param job The MapReduce job */
Wraps the mapper defined in the job with this <code>MapperWrapper</code> if it is defined
wrap
{ "repo_name": "chtyim/cdap", "path": "cdap-app-fabric/src/main/java/co/cask/cdap/internal/app/runtime/batch/ReducerWrapper.java", "license": "apache-2.0", "size": 6888 }
[ "org.apache.hadoop.conf.Configuration", "org.apache.hadoop.mapreduce.MRJobConfig" ]
import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.mapreduce.MRJobConfig;
import org.apache.hadoop.conf.*; import org.apache.hadoop.mapreduce.*;
[ "org.apache.hadoop" ]
org.apache.hadoop;
409,101
public static SimpleIsotopePattern[] getIsotopePatterns(String elements, double mergeWidth, double minAbundance) { SilentChemObjectBuilder builder = (SilentChemObjectBuilder) SilentChemObjectBuilder.getInstance(); IMolecularFormula form = MolecularFormulaManipulator.getMajorIsotopeMolecu...
static SimpleIsotopePattern[] function(String elements, double mergeWidth, double minAbundance) { SilentChemObjectBuilder builder = (SilentChemObjectBuilder) SilentChemObjectBuilder.getInstance(); IMolecularFormula form = MolecularFormulaManipulator.getMajorIsotopeMolecularFormula(elements, builder); SimpleIsotopePatte...
/** * Returns an array of isotope patterns for the given string. Every element gets its own isotope * pattern. * * @param elements String of element symbols * @param mergeWidth * @param minAbundance * @return */
Returns an array of isotope patterns for the given string. Every element gets its own isotope pattern
getIsotopePatterns
{ "repo_name": "mzmine/mzmine3", "path": "src/main/java/io/github/mzmine/modules/visualization/spectra/simplespectra/datapointprocessing/isotopes/anyelementdeisotoper/DPPAnyElementIsotopeGrouperTask.java", "license": "gpl-2.0", "size": 11515 }
[ "io.github.mzmine.datamodel.PolarityType", "io.github.mzmine.datamodel.impl.SimpleIsotopePattern", "io.github.mzmine.modules.tools.isotopeprediction.IsotopePatternCalculator", "io.github.mzmine.util.scans.ScanUtils", "org.openscience.cdk.interfaces.IIsotope", "org.openscience.cdk.interfaces.IMolecularForm...
import io.github.mzmine.datamodel.PolarityType; import io.github.mzmine.datamodel.impl.SimpleIsotopePattern; import io.github.mzmine.modules.tools.isotopeprediction.IsotopePatternCalculator; import io.github.mzmine.util.scans.ScanUtils; import org.openscience.cdk.interfaces.IIsotope; import org.openscience.cdk.interfac...
import io.github.mzmine.datamodel.*; import io.github.mzmine.datamodel.impl.*; import io.github.mzmine.modules.tools.isotopeprediction.*; import io.github.mzmine.util.scans.*; import org.openscience.cdk.interfaces.*; import org.openscience.cdk.silent.*; import org.openscience.cdk.tools.manipulator.*;
[ "io.github.mzmine", "org.openscience.cdk" ]
io.github.mzmine; org.openscience.cdk;
561,422
@Override protected JingleTransport getInstance() { return new JingleTransport.RawUdp(); }
JingleTransport function() { return new JingleTransport.RawUdp(); }
/** * Obtain the corresponding TransportNegotiator.RawUdp instance. * * @return a new TransportNegotiator.RawUdp instance */
Obtain the corresponding TransportNegotiator.RawUdp instance
getInstance
{ "repo_name": "vanitasvitae/Smack", "path": "smack-jingle-old/src/main/java/org/jivesoftware/smackx/jingleold/provider/JingleTransportProvider.java", "license": "apache-2.0", "size": 7531 }
[ "org.jivesoftware.smackx.jingleold.packet.JingleTransport" ]
import org.jivesoftware.smackx.jingleold.packet.JingleTransport;
import org.jivesoftware.smackx.jingleold.packet.*;
[ "org.jivesoftware.smackx" ]
org.jivesoftware.smackx;
545,999
private void insertData() { for (int i = 0; i < 3; i++) { DepartmentEntity department = factory.manufacturePojo(DepartmentEntity.class); em.persist(department); departmentData.add(department); } for (int i = 0; i < 3; i++) { E...
void function() { for (int i = 0; i < 3; i++) { DepartmentEntity department = factory.manufacturePojo(DepartmentEntity.class); em.persist(department); departmentData.add(department); } for (int i = 0; i < 3; i++) { EmployeeEntity entity = factory.manufacturePojo(EmployeeEntity.class); entity.setDepartment(departmentDat...
/** * Inserta los datos iniciales para el correcto funcionamiento de las pruebas. * * */
Inserta los datos iniciales para el correcto funcionamiento de las pruebas
insertData
{ "repo_name": "Uniandes-isis2603/company_back", "path": "company-logic/src/test/java/co/edu/uniandes/csw/company/test/logic/EmployeeLogicTest.java", "license": "mit", "size": 7252 }
[ "co.edu.uniandes.csw.company.entities.DepartmentEntity", "co.edu.uniandes.csw.company.entities.EmployeeEntity" ]
import co.edu.uniandes.csw.company.entities.DepartmentEntity; import co.edu.uniandes.csw.company.entities.EmployeeEntity;
import co.edu.uniandes.csw.company.entities.*;
[ "co.edu.uniandes" ]
co.edu.uniandes;
2,737,694
@Test public void testRecordOnRightBorderPasses() throws IllegalStateException, AnalysisConfigurationException { final long rightBorder = TestTimestampFilter.EVENT.getTimestamp(); final long leftBorder = rightBorder - 1; this.createTimestampFilter(leftBorder, rightBorder); Assert.assertTrue(this.sinkPlugin....
void function() throws IllegalStateException, AnalysisConfigurationException { final long rightBorder = TestTimestampFilter.EVENT.getTimestamp(); final long leftBorder = rightBorder - 1; this.createTimestampFilter(leftBorder, rightBorder); Assert.assertTrue(this.sinkPlugin.getList().isEmpty()); this.reader.addObject(Te...
/** * Given a {@link TimestampFilter} selecting {@link AbstractTraceEvent}s within an interval <i>[a,b]</i>, * assert that an event <i>e</i> with <i>e.timestamp == b</i> does pass the filter. * * @throws AnalysisConfigurationException * If the internally assembled analysis configuration is somehow...
Given a <code>TimestampFilter</code> selecting <code>AbstractTraceEvent</code>s within an interval [a,b], assert that an event e with e.timestamp == b does pass the filter
testRecordOnRightBorderPasses
{ "repo_name": "HaStr/kieker", "path": "kieker-analysis/test/kieker/test/analysis/junit/plugin/filter/select/TestTimestampFilter.java", "license": "apache-2.0", "size": 10528 }
[ "org.junit.Assert" ]
import org.junit.Assert;
import org.junit.*;
[ "org.junit" ]
org.junit;
549,814
public void increaseTopicPartitions(String topic, int newPartitionsNum) { PartitionedTopicMetadata metadata = sneakyAdmin(() -> admin().topics().getPartitionedTopicMetadata(topic)); checkArgument( metadata.partitions < newPartitionsNum, "The new partit...
void function(String topic, int newPartitionsNum) { PartitionedTopicMetadata metadata = sneakyAdmin(() -> admin().topics().getPartitionedTopicMetadata(topic)); checkArgument( metadata.partitions < newPartitionsNum, STR); sneakyAdmin(() -> admin().topics().updatePartitionedTopic(topic, newPartitionsNum)); }
/** * Increase the partition number of the topic. * * @param topic The topic name. * @param newPartitionsNum The new partition size which should exceed previous size. */
Increase the partition number of the topic
increaseTopicPartitions
{ "repo_name": "apache/flink", "path": "flink-connectors/flink-connector-pulsar/src/test/java/org/apache/flink/connector/pulsar/testutils/runtime/PulsarRuntimeOperator.java", "license": "apache-2.0", "size": 24208 }
[ "org.apache.flink.connector.pulsar.common.utils.PulsarExceptionUtils", "org.apache.flink.util.Preconditions", "org.apache.pulsar.common.partition.PartitionedTopicMetadata" ]
import org.apache.flink.connector.pulsar.common.utils.PulsarExceptionUtils; import org.apache.flink.util.Preconditions; import org.apache.pulsar.common.partition.PartitionedTopicMetadata;
import org.apache.flink.connector.pulsar.common.utils.*; import org.apache.flink.util.*; import org.apache.pulsar.common.partition.*;
[ "org.apache.flink", "org.apache.pulsar" ]
org.apache.flink; org.apache.pulsar;
1,433,259
public void setSelections(List<String> selections) { this.selections = selections; }
void function(List<String> selections) { this.selections = selections; }
/** * The possible Values * * @param values * Example "8,9,10,Project Manager" */
The possible Values
setSelections
{ "repo_name": "julianommartins/wexqt", "path": "src/main/java/com/ibm/services/tools/wexws/domain/FacetSelection.java", "license": "gpl-3.0", "size": 1759 }
[ "java.util.List" ]
import java.util.List;
import java.util.*;
[ "java.util" ]
java.util;
309,259
private boolean hasShadowedCompulationUnit(ICompilationUnit unit, String swcPath) { List<IDefinition> definitionPromises = unit.getDefinitionPromises(); if (definitionPromises == null || definitionPromises.size() == 0) return false; ASProjectScope scope = getScope(); ...
boolean function(ICompilationUnit unit, String swcPath) { List<IDefinition> definitionPromises = unit.getDefinitionPromises(); if (definitionPromises == null definitionPromises.size() == 0) return false; ASProjectScope scope = getScope(); Set<IDefinition> toDefs = scope.getShadowedDefinitions(definitionPromises.get(0))...
/** * Test if the given unit has any shadowed definitions that live * in the given swc path. * * @param unit * @param swcPath * @return true if a shadowed definition is found, false otherwise. */
Test if the given unit has any shadowed definitions that live in the given swc path
hasShadowedCompulationUnit
{ "repo_name": "greg-dove/flex-falcon", "path": "compiler/src/main/java/org/apache/flex/compiler/internal/projects/FlexProject.java", "license": "apache-2.0", "size": 73716 }
[ "java.util.List", "java.util.Set", "org.apache.flex.compiler.definitions.IDefinition", "org.apache.flex.compiler.internal.scopes.ASProjectScope", "org.apache.flex.compiler.units.ICompilationUnit" ]
import java.util.List; import java.util.Set; import org.apache.flex.compiler.definitions.IDefinition; import org.apache.flex.compiler.internal.scopes.ASProjectScope; import org.apache.flex.compiler.units.ICompilationUnit;
import java.util.*; import org.apache.flex.compiler.definitions.*; import org.apache.flex.compiler.internal.scopes.*; import org.apache.flex.compiler.units.*;
[ "java.util", "org.apache.flex" ]
java.util; org.apache.flex;
994,384
public Class<?>[] findSignatureClasses(String signature[], ClassLoader loader) throws ReflectionException { if (signature == null) return null; final ClassLoader aLoader = loader; final int length= signature.length; final Class<?> t...
Class<?>[] function(String signature[], ClassLoader loader) throws ReflectionException { if (signature == null) return null; final ClassLoader aLoader = loader; final int length= signature.length; final Class<?> tab[]=new Class<?>[length]; if (length == 0) return tab; try { for (int i= 0; i < length; i++) { final Class...
/** * Return an array of Class corresponding to the given signature, using * the specified class loader. */
Return an array of Class corresponding to the given signature, using the specified class loader
findSignatureClasses
{ "repo_name": "md-5/jdk10", "path": "src/java.management/share/classes/com/sun/jmx/mbeanserver/MBeanInstantiator.java", "license": "gpl-2.0", "size": 30051 }
[ "java.lang.System", "javax.management.ReflectionException" ]
import java.lang.System; import javax.management.ReflectionException;
import java.lang.*; import javax.management.*;
[ "java.lang", "javax.management" ]
java.lang; javax.management;
178,529
@Authorized( { PrivilegeConstants.EDIT_PERSONS }) public PersonAddress voidPersonAddress(PersonAddress personAddress, String voidReason);
@Authorized( { PrivilegeConstants.EDIT_PERSONS }) PersonAddress function(PersonAddress personAddress, String voidReason);
/** * Voids the given PersonAddress, effectively deleting the personAddress, from the end-user's * point of view. * * @param personAddress PersonAddress to void * @param voidReason String reason the personAddress is being voided. * @return the newly saved personAddress * @throws APIException * @should ...
Voids the given PersonAddress, effectively deleting the personAddress, from the end-user's point of view
voidPersonAddress
{ "repo_name": "sintjuri/openmrs-core", "path": "api/src/main/java/org/openmrs/api/PersonService.java", "license": "mpl-2.0", "size": 41926 }
[ "org.openmrs.PersonAddress", "org.openmrs.annotation.Authorized", "org.openmrs.util.PrivilegeConstants" ]
import org.openmrs.PersonAddress; import org.openmrs.annotation.Authorized; import org.openmrs.util.PrivilegeConstants;
import org.openmrs.*; import org.openmrs.annotation.*; import org.openmrs.util.*;
[ "org.openmrs", "org.openmrs.annotation", "org.openmrs.util" ]
org.openmrs; org.openmrs.annotation; org.openmrs.util;
420,705
BigDecimal calculateAmountBeforeTax(BigDecimal invoiceAmount);
BigDecimal calculateAmountBeforeTax(BigDecimal invoiceAmount);
/** * calculates the amount before taxes for a normal payment with * withholding taxes * * @param invoiceAmount the invoice amount requested for in the invoice * @return amountB4Vat */
calculates the amount before taxes for a normal payment with withholding taxes
calculateAmountBeforeTax
{ "repo_name": "ghacupha/paycal", "path": "src/main/java/com/babel88/paycal/api/logic/WithholdingTaxPayments.java", "license": "gpl-3.0", "size": 1188 }
[ "java.math.BigDecimal" ]
import java.math.BigDecimal;
import java.math.*;
[ "java.math" ]
java.math;
2,462,134
public final CssMetaData<S, String> createUrlCssMetaData(final String property, final Function<S,StyleableProperty<String>> function, final String initialValue) { return createUrlCssMetaData(property, function, initialValue, false); }
final CssMetaData<S, String> function(final String property, final Function<S,StyleableProperty<String>> function, final String initialValue) { return createUrlCssMetaData(property, function, initialValue, false); }
/** * Create a CssMetaData&lt;S, String&gt; with initial value, and inherit flag defaulting to false. * Here, the String value represents a URL converted from a * <a href="http://www.w3.org/TR/CSS21/syndata.html#uri">CSS</a> url({@literal "<path>"}). * @param property The CSS property name. * @...
Create a CssMetaData&lt;S, String&gt; with initial value, and inherit flag defaulting to false. Here, the String value represents a URL converted from a CSS url("")
createUrlCssMetaData
{ "repo_name": "teamfx/openjfx-10-dev-rt", "path": "modules/javafx.graphics/src/main/java/javafx/css/StyleablePropertyFactory.java", "license": "gpl-2.0", "size": 113819 }
[ "java.util.function.Function" ]
import java.util.function.Function;
import java.util.function.*;
[ "java.util" ]
java.util;
2,398,633
public static void writeAccountsFile (Hashtable accountsTable, String accountsFileName) { Hashtable itemTable = new Hashtable (7); for (Enumeration e = accountsTable.keys(); e.hasMoreElements();) { String name = (String) e.nextElement(); Vector v = (Vector) accountsTable....
static void function (Hashtable accountsTable, String accountsFileName) { Hashtable itemTable = new Hashtable (7); for (Enumeration e = accountsTable.keys(); e.hasMoreElements();) { String name = (String) e.nextElement(); Vector v = (Vector) accountsTable.get(name); for (Enumeration en = v.elements(); en.hasMoreElement...
/** Write the accounts file out to disk. This method will take each entry in the * memory structure and make sure it has a correctly formed "entryKey" field, and * transform the in memory structure to a hashtable(entryKey, ht)of hashtables(name, value) * before writing it out to disk, via the Setting...
Write the accounts file out to disk. This method will take each entry in the memory structure and make sure it has a correctly formed "entryKey" field, and transform the in memory structure to a hashtable(entryKey, ht)of hashtables(name, value) before writing it out to disk, via the SettingFileManager
writeAccountsFile
{ "repo_name": "ihmc/nomads", "path": "util/java/us/ihmc/util/AccountsFileManager.java", "license": "gpl-3.0", "size": 8112 }
[ "java.util.Enumeration", "java.util.Hashtable", "java.util.Vector" ]
import java.util.Enumeration; import java.util.Hashtable; import java.util.Vector;
import java.util.*;
[ "java.util" ]
java.util;
617,330
protected void updateFacingWithBoundingBox(EnumFacing facingDirectionIn) { Validate.notNull(facingDirectionIn); Validate.isTrue(facingDirectionIn.getAxis().isHorizontal()); this.facingDirection = facingDirectionIn; this.prevRotationYaw = this.rotationYaw = (float)(this.facingDire...
void function(EnumFacing facingDirectionIn) { Validate.notNull(facingDirectionIn); Validate.isTrue(facingDirectionIn.getAxis().isHorizontal()); this.facingDirection = facingDirectionIn; this.prevRotationYaw = this.rotationYaw = (float)(this.facingDirection.getHorizontalIndex() * 90); this.updateBoundingBox(); }
/** * Updates facing and bounding box based on it */
Updates facing and bounding box based on it
updateFacingWithBoundingBox
{ "repo_name": "TorchPowered/CraftBloom", "path": "src/net/minecraft/entity/EntityHanging.java", "license": "mit", "size": 9070 }
[ "net.minecraft.util.EnumFacing", "org.apache.commons.lang3.Validate" ]
import net.minecraft.util.EnumFacing; import org.apache.commons.lang3.Validate;
import net.minecraft.util.*; import org.apache.commons.lang3.*;
[ "net.minecraft.util", "org.apache.commons" ]
net.minecraft.util; org.apache.commons;
2,642,231
public CommonTree parse(final CommonTokenStream tokens) throws RecognizerException { if (_log.isDebugEnabled()) { debug("3. Parsing tokens:", tokens.toString()); } try { CobolStructureParser parser = new CobolStructureParserImpl(tokens, ...
CommonTree function(final CommonTokenStream tokens) throws RecognizerException { if (_log.isDebugEnabled()) { debug(STR, tokens.toString()); } try { CobolStructureParser parser = new CobolStructureParserImpl(tokens, getErrorHandler()); cobdata_return parserResult = parser.cobdata(); if (parser.getNumberOfSyntaxErrors()...
/** * Apply Parser to produce an abstract syntax tree from a token stream. * * @param tokens the stream token produced by lexer * @return an antlr abstract syntax tree * @throws RecognizerException if source contains unsupported statements */
Apply Parser to produce an abstract syntax tree from a token stream
parse
{ "repo_name": "raihaan05/legstar-cob2xsd", "path": "src/main/java/com/legstar/cob2xsd/Cob2Xsd.java", "license": "lgpl-2.1", "size": 20885 }
[ "com.legstar.antlr.RecognizerException", "com.legstar.cobol.CobolStructureParser", "com.legstar.cobol.CobolStructureParserImpl", "org.antlr.runtime.CommonTokenStream", "org.antlr.runtime.RecognitionException", "org.antlr.runtime.tree.CommonTree" ]
import com.legstar.antlr.RecognizerException; import com.legstar.cobol.CobolStructureParser; import com.legstar.cobol.CobolStructureParserImpl; import org.antlr.runtime.CommonTokenStream; import org.antlr.runtime.RecognitionException; import org.antlr.runtime.tree.CommonTree;
import com.legstar.antlr.*; import com.legstar.cobol.*; import org.antlr.runtime.*; import org.antlr.runtime.tree.*;
[ "com.legstar.antlr", "com.legstar.cobol", "org.antlr.runtime" ]
com.legstar.antlr; com.legstar.cobol; org.antlr.runtime;
1,503,677
Widget addWidget(Dashboard dashboard, Widget widget);
Widget addWidget(Dashboard dashboard, Widget widget);
/** * Creates a new Widget and adds it to the Dashboard indicated by the dashboardId parameter. * * @param dashboard add widget to this Dashboard * @param widget Widget to add * @return newly created Widget */
Creates a new Widget and adds it to the Dashboard indicated by the dashboardId parameter
addWidget
{ "repo_name": "amitmawkin/Hygieia", "path": "api/src/main/java/com/capitalone/dashboard/service/DashboardService.java", "license": "apache-2.0", "size": 6674 }
[ "com.capitalone.dashboard.model.Dashboard", "com.capitalone.dashboard.model.Widget" ]
import com.capitalone.dashboard.model.Dashboard; import com.capitalone.dashboard.model.Widget;
import com.capitalone.dashboard.model.*;
[ "com.capitalone.dashboard" ]
com.capitalone.dashboard;
32,000
@Override public URL findResource(String mn, String name) throws IOException { URL url = null; if (mn != null) { // find in module ModuleReference mref = nameToModule.get(mn); if (mref != null) { url = findResource(mref, name); } ...
URL function(String mn, String name) throws IOException { URL url = null; if (mn != null) { ModuleReference mref = nameToModule.get(mn); if (mref != null) { url = findResource(mref, name); } } else { url = findResourceOnClassPath(name); } return checkURL(url); }
/** * Returns a URL to a resource of the given name in a module defined to * this class loader. */
Returns a URL to a resource of the given name in a module defined to this class loader
findResource
{ "repo_name": "md-5/jdk10", "path": "src/java.base/share/classes/jdk/internal/loader/BuiltinClassLoader.java", "license": "gpl-2.0", "size": 36800 }
[ "java.io.IOException", "java.lang.module.ModuleReference" ]
import java.io.IOException; import java.lang.module.ModuleReference;
import java.io.*; import java.lang.module.*;
[ "java.io", "java.lang" ]
java.io; java.lang;
305,401
protected void includeTitle(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, ToolConfiguration placement, String skin, String toolContextPath, String toolPathInfo) throws IOException { // TODO: After 2.3 and the background document is modified - this may no // longer be needed // as th...
void function(ActiveTool tool, HttpServletRequest req, HttpServletResponse res, ToolConfiguration placement, String skin, String toolContextPath, String toolPathInfo) throws IOException { res.setContentType(STR); res.addDateHeader(STR, System.currentTimeMillis() - (1000L * 60L * 60L * 24L * 365L)); res.addDateHeader(ST...
/** * Output the content of the title frame for a tool. */
Output the content of the title frame for a tool
includeTitle
{ "repo_name": "eemirtekin/Sakai-10.6-TR", "path": "portal/portal-impl/impl/src/java/org/sakaiproject/portal/charon/CharonPortal.java", "license": "apache-2.0", "size": 92740 }
[ "java.io.IOException", "javax.servlet.http.HttpServletRequest", "javax.servlet.http.HttpServletResponse", "org.sakaiproject.component.cover.ServerConfigurationService", "org.sakaiproject.site.api.ToolConfiguration", "org.sakaiproject.tool.api.ActiveTool", "org.sakaiproject.tool.api.Session", "org.saka...
import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.sakaiproject.component.cover.ServerConfigurationService; import org.sakaiproject.site.api.ToolConfiguration; import org.sakaiproject.tool.api.ActiveTool; import org.sakaiproject.tool.api.S...
import java.io.*; import javax.servlet.http.*; import org.sakaiproject.component.cover.*; import org.sakaiproject.site.api.*; import org.sakaiproject.tool.api.*; import org.sakaiproject.tool.cover.*; import org.sakaiproject.util.*;
[ "java.io", "javax.servlet", "org.sakaiproject.component", "org.sakaiproject.site", "org.sakaiproject.tool", "org.sakaiproject.util" ]
java.io; javax.servlet; org.sakaiproject.component; org.sakaiproject.site; org.sakaiproject.tool; org.sakaiproject.util;
1,922,672